BREAKING CHANGE(decorators): Migrate to TC39 standard decorators (accessor) across components, update tsconfig and bump dependencies

This commit is contained in:
2025-11-17 13:27:11 +00:00
parent 70c29c778c
commit 92f69e2aa6
75 changed files with 2142 additions and 1901 deletions

View File

@@ -190,7 +190,7 @@ export class DeesIcon extends DeesElement {
toAttribute: (value: TIconKey): string => value
}
})
public iconFA?: TIconKey;
accessor iconFA: TIconKey | undefined = undefined;
/**
* The preferred icon property. Use format "fa:iconName" or "lucide:iconName"
@@ -203,16 +203,16 @@ export class DeesIcon extends DeesElement {
toAttribute: (value: IconWithPrefix): string => value
}
})
public icon?: IconWithPrefix;
accessor icon: IconWithPrefix | undefined = undefined;
@property({ type: Number })
public iconSize: number;
accessor iconSize: number;
@property({ type: String })
public color: string = 'currentColor';
accessor color: string = 'currentColor';
@property({ type: Number })
public strokeWidth: number = 2;
accessor strokeWidth: number = 2;
// For tracking when we need to re-render
private lastIcon: IconWithPrefix | TIconKey | null = null;