@sixbell-telco/sdk 0.2.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/README.md +96 -55
  3. package/_index.scss +0 -2
  4. package/assets/styles/combobox.scss +17 -17
  5. package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -2
  6. package/components/avatar/src/avatar.component.d.ts +11 -18
  7. package/components/button/src/button.component.d.ts +22 -41
  8. package/components/card/card-actions/card-actions.component.d.ts +8 -0
  9. package/components/card/card-content/card-content.component.d.ts +5 -0
  10. package/components/card/card-title/card-title.component.d.ts +5 -0
  11. package/components/card/public-api.d.ts +3 -0
  12. package/components/card/src/card.component.d.ts +19 -20
  13. package/components/countdown/src/countdown.component.d.ts +6 -1
  14. package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +10 -0
  15. package/components/dropdown/public-api.d.ts +1 -0
  16. package/components/dropdown/src/dropdown.component.d.ts +24 -42
  17. package/components/dual-list/src/dual-list.component.d.ts +11 -60
  18. package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +2 -5
  19. package/components/forms/checkbox/src/checkbox.component.d.ts +2 -3
  20. package/components/forms/input/src/input.component.d.ts +7 -8
  21. package/components/forms/radio/src/radio.component.d.ts +2 -6
  22. package/components/forms/select/src/select.component.d.ts +5 -8
  23. package/components/forms/textarea/src/textarea.component.d.ts +5 -11
  24. package/components/link/src/link.component.d.ts +18 -45
  25. package/components/modal/modal-actions/modal-actions.component.d.ts +8 -0
  26. package/components/modal/modal-content/modal-content.component.d.ts +5 -0
  27. package/components/modal/modal-title/modal-title.component.d.ts +5 -0
  28. package/components/modal/public-api.d.ts +3 -0
  29. package/components/modal/src/modal.component.d.ts +10 -14
  30. package/components/product-card/src/product-card.component.d.ts +5 -9
  31. package/components/tab/src/tab.component.d.ts +1 -2
  32. package/components/table/src/table.component.d.ts +14 -19
  33. package/directives/click-outside/index.d.ts +5 -0
  34. package/directives/click-outside/public-api.d.ts +1 -0
  35. package/directives/click-outside/src/click-outside.directive.d.ts +10 -0
  36. package/directives/typography/src/typography.directive.d.ts +3 -4
  37. package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +5 -6
  38. package/esm2022/components/avatar/src/avatar.component.mjs +27 -43
  39. package/esm2022/components/button/src/button.component.mjs +43 -118
  40. package/esm2022/components/card/card-actions/card-actions.component.mjs +22 -0
  41. package/esm2022/components/card/card-content/card-content.component.mjs +12 -0
  42. package/esm2022/components/card/card-title/card-title.component.mjs +12 -0
  43. package/esm2022/components/card/public-api.mjs +4 -1
  44. package/esm2022/components/card/src/card.component.mjs +20 -45
  45. package/esm2022/components/countdown/src/countdown.component.mjs +10 -3
  46. package/esm2022/components/dropdown/dropdown-item/dropdown-item.component.mjs +24 -0
  47. package/esm2022/components/dropdown/public-api.mjs +2 -1
  48. package/esm2022/components/dropdown/src/dropdown.component.mjs +65 -101
  49. package/esm2022/components/dual-list/src/dual-list.component.mjs +23 -63
  50. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +3 -3
  51. package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +3 -7
  52. package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +9 -8
  53. package/esm2022/components/forms/combobox/src/combobox.component.mjs +3 -3
  54. package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +2 -2
  55. package/esm2022/components/forms/form-error/src/form-error.component.mjs +3 -3
  56. package/esm2022/components/forms/input/src/input.component.mjs +51 -45
  57. package/esm2022/components/forms/radio/src/radio.component.mjs +5 -18
  58. package/esm2022/components/forms/range/src/range.component.mjs +3 -3
  59. package/esm2022/components/forms/select/src/select.component.mjs +24 -34
  60. package/esm2022/components/forms/switch/src/switch.component.mjs +3 -3
  61. package/esm2022/components/forms/textarea/src/textarea.component.mjs +35 -48
  62. package/esm2022/components/forms/toggle/src/toggle.component.mjs +3 -3
  63. package/esm2022/components/link/src/link.component.mjs +27 -183
  64. package/esm2022/components/modal/modal-actions/modal-actions.component.mjs +22 -0
  65. package/esm2022/components/modal/modal-content/modal-content.component.mjs +12 -0
  66. package/esm2022/components/modal/modal-title/modal-title.component.mjs +13 -0
  67. package/esm2022/components/modal/public-api.mjs +4 -1
  68. package/esm2022/components/modal/src/modal.component.mjs +29 -32
  69. package/esm2022/components/notification/src/notification.component.mjs +2 -5
  70. package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +24 -24
  71. package/esm2022/components/product-card/src/product-card.component.mjs +5 -14
  72. package/esm2022/components/progress/src/progress.component.mjs +3 -3
  73. package/esm2022/components/tab/src/tab.component.mjs +2 -4
  74. package/esm2022/components/table/src/table.component.mjs +35 -40
  75. package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +3 -3
  76. package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +1 -1
  77. package/esm2022/components/toast/toast-message/toast-message.component.mjs +4 -4
  78. package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +4 -4
  79. package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +3 -3
  80. package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +3 -3
  81. package/esm2022/directives/click-outside/public-api.mjs +2 -0
  82. package/esm2022/directives/click-outside/sixbell-telco-sdk-directives-click-outside.mjs +5 -0
  83. package/esm2022/directives/click-outside/src/click-outside.directive.mjs +30 -0
  84. package/esm2022/directives/typography/src/typography.directive.mjs +19 -18
  85. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +4 -5
  86. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  87. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +26 -42
  88. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  89. package/fesm2022/sixbell-telco-sdk-components-button.mjs +43 -118
  90. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  91. package/fesm2022/sixbell-telco-sdk-components-card.mjs +57 -46
  92. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  93. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +9 -2
  94. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
  95. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +86 -101
  96. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  97. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +21 -61
  98. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  99. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +2 -2
  100. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
  101. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +2 -6
  102. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
  103. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +8 -7
  104. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  105. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
  106. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  107. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +1 -1
  108. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
  109. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
  110. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  111. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +51 -45
  112. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  113. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +4 -17
  114. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  115. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +2 -2
  116. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  117. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +23 -33
  118. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  119. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
  120. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  121. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +34 -47
  122. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  123. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +2 -2
  124. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  125. package/fesm2022/sixbell-telco-sdk-components-link.mjs +27 -183
  126. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  127. package/fesm2022/sixbell-telco-sdk-components-modal.mjs +67 -32
  128. package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
  129. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +1 -4
  130. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  131. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +23 -23
  132. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  133. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +4 -13
  134. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  135. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +2 -2
  136. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  137. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +1 -3
  138. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  139. package/fesm2022/sixbell-telco-sdk-components-table.mjs +37 -42
  140. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  141. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +3 -3
  142. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  143. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +7 -7
  144. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  145. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +37 -0
  146. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -0
  147. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +18 -17
  148. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
  149. package/package.json +13 -7
@@ -1,62 +1,35 @@
1
- import { OnInit } from '@angular/core';
2
1
  import { Router } from '@angular/router';
3
- import { TypographyVariantProps } from '@sixbell-telco/sdk/directives/typography';
4
2
  import * as i0 from "@angular/core";
5
3
  export type Route = {
6
4
  label: string;
7
5
  path: string;
8
6
  };
9
- export declare const linkContainer: (props?: ({
10
- variant?: "primary" | "secondary" | "accent" | "success" | "info" | "warning" | "error" | "btn-primary" | "btn-secondary" | "btn-warning" | "btn-error" | "btn-collapsable-primary" | null | undefined;
11
- shape?: "round-none" | "round-sm" | "round-md" | "round-lg" | null | undefined;
12
- padding?: "none" | "sm" | "md" | "lg" | null | undefined;
13
- alignment?: "center" | "left" | "right" | "between" | null | undefined;
14
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
15
- export type LinkContainerVariantProps = 'primary' | 'secondary' | 'accent' | 'success' | 'info' | 'warning' | 'error' | 'btn-primary' | 'btn-secondary' | 'btn-warning' | 'btn-error' | 'btn-collapsable-primary';
16
- export type LinkContainerShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg';
17
- export type LinkContainerPaddingProps = 'none' | 'sm' | 'md' | 'lg';
18
- export type LinkContainerAlignmentProps = 'center' | 'left' | 'right' | 'between';
19
- export declare const linkIcon: (props?: ({
7
+ export declare const linkComponent: (props?: ({
8
+ variant?: "primary" | "secondary" | "tertiary" | "accent" | "success" | "info" | "warning" | "error" | null | undefined;
20
9
  iconPosition?: "left" | "right" | null | undefined;
21
10
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
22
- export type LinkIconPositionProps = 'left' | 'right';
11
+ export type LinkVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'success' | 'info' | 'warning' | 'error' | null | undefined;
12
+ export type LinkIconPositionProps = 'left' | 'right' | null | undefined;
23
13
  export type LinkProps = {
24
- variant?: LinkContainerVariantProps;
25
- shape?: LinkContainerShapeProps;
26
- padding?: LinkContainerPaddingProps;
27
- alignment?: LinkContainerAlignmentProps;
14
+ variant?: LinkVariantProps;
28
15
  iconPosition?: LinkIconPositionProps;
29
16
  };
30
- export declare const linkComponent: ({ variant, shape, padding, alignment, iconPosition }?: LinkProps) => string;
31
- export declare class LinkComponent implements OnInit {
17
+ export declare class LinkComponent {
32
18
  private router;
33
- variant: import("@angular/core").InputSignal<LinkContainerVariantProps | undefined>;
34
- shape: import("@angular/core").InputSignal<LinkContainerShapeProps | undefined>;
35
- padding: import("@angular/core").InputSignal<LinkContainerPaddingProps | undefined>;
36
- alignment: import("@angular/core").InputSignal<LinkContainerAlignmentProps | undefined>;
37
- iconPosition: import("@angular/core").InputSignal<LinkIconPositionProps | undefined>;
38
- fontSize: import("@angular/core").InputSignal<TypographyVariantProps>;
39
- containerClasses: import("@angular/core").InputSignal<string>;
40
- iconClasses: import("@angular/core").InputSignal<string>;
41
- label: import("@angular/core").InputSignal<string>;
19
+ variant: import("@angular/core").InputSignal<LinkVariantProps>;
42
20
  icon: import("@angular/core").InputSignal<string | undefined>;
43
- fallbackIcon: string;
44
- iconArrowRight: string;
45
- opened: boolean;
46
- activeClasses: string;
47
- route: import("@angular/core").InputSignal<Route | undefined>;
48
- childrenRoutes: import("@angular/core").InputSignal<Route[] | undefined>;
49
- routerLinkActiveOptions: import("@angular/core").InputSignal<{
21
+ iconPosition: import("@angular/core").InputSignal<LinkIconPositionProps>;
22
+ label: import("@angular/core").InputSignal<string>;
23
+ routerLink: import("@angular/core").InputSignal<string | any[] | import("@angular/router").UrlTree | null | undefined>;
24
+ routerLinkOptions: import("@angular/core").InputSignal<{
50
25
  exact: boolean;
51
- }>;
26
+ } | import("@angular/router").IsActiveMatchOptions>;
27
+ routerLinkActive: import("@angular/core").InputSignal<string | string[]>;
28
+ queryParams: import("@angular/core").InputSignal<import("@angular/router").Params | null | undefined>;
29
+ queryParamsHandling: import("@angular/core").InputSignal<import("@angular/router").QueryParamsHandling | null | undefined>;
30
+ fragment: import("@angular/core").InputSignal<string | undefined>;
52
31
  constructor(router: Router);
53
- get containerClass(): string;
54
- get iconClass(): string;
55
- get dropdownClass(): string;
56
- get isOpenedClass(): string;
57
- ngOnInit(): void;
58
- updateOpenedState(currentPath: string): void;
59
- toggle(): void;
32
+ get componentClass(): string;
60
33
  static ɵfac: i0.ɵɵFactoryDeclaration<LinkComponent, never>;
61
- static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "st-link", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "fontSize": { "alias": "fontSize"; "required": false; "isSignal": true; }; "containerClasses": { "alias": "containerClasses"; "required": false; "isSignal": true; }; "iconClasses": { "alias": "iconClasses"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "route": { "alias": "route"; "required": false; "isSignal": true; }; "childrenRoutes": { "alias": "childrenRoutes"; "required": false; "isSignal": true; }; "routerLinkActiveOptions": { "alias": "routerLinkActiveOptions"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "st-link", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "routerLinkOptions": { "alias": "routerLinkOptions"; "required": false; "isSignal": true; }; "routerLinkActive": { "alias": "routerLinkActive"; "required": false; "isSignal": true; }; "queryParams": { "alias": "queryParams"; "required": false; "isSignal": true; }; "queryParamsHandling": { "alias": "queryParamsHandling"; "required": false; "isSignal": true; }; "fragment": { "alias": "fragment"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
62
35
  }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export type ModalActionsAligmentProps = 'left' | 'right' | 'center';
3
+ export declare class ModalActionsComponent {
4
+ alignment: import("@angular/core").InputSignal<ModalActionsAligmentProps>;
5
+ get componentClass(): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalActionsComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalActionsComponent, "st-modal-actions", never, { "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
8
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ModalContentComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalContentComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalContentComponent, "st-modal-content", never, {}, {}, never, ["*"], true, never>;
5
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ModalTitleComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalTitleComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalTitleComponent, "st-modal-title", never, {}, {}, never, ["*"], true, never>;
5
+ }
@@ -1 +1,4 @@
1
+ export * from './modal-actions/modal-actions.component';
2
+ export * from './modal-content/modal-content.component';
3
+ export * from './modal-title/modal-title.component';
1
4
  export * from './src/modal.component';
@@ -1,36 +1,32 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare const modalComponent: (props?: ({
4
- variant?: "primary" | null | undefined;
5
- shape?: "round-sm" | "round-md" | "round-lg" | null | undefined;
6
- padding?: "none" | "sm" | "md" | "lg" | null | undefined;
7
4
  width?: "full" | "fit" | null | undefined;
5
+ aligment?: "center" | "top" | "bottom" | null | undefined;
8
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
- export type ModalVariantProps = 'primary' | null | undefined;
10
- export type ModalShapeProps = 'round-sm' | 'round-md' | 'round-lg' | null | undefined;
11
7
  export type ModalPaddingProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;
12
8
  export type ModalWidthProps = 'full' | 'fit' | null | undefined;
9
+ export type ModalAlignmentProps = 'top' | 'center' | 'bottom' | null | undefined;
13
10
  export type ModalProps = {
14
- variant?: ModalVariantProps;
15
- shape?: ModalShapeProps;
16
11
  padding?: ModalPaddingProps;
17
12
  width?: ModalWidthProps;
13
+ alignment?: ModalAlignmentProps;
18
14
  };
19
15
  export declare class ModalComponent {
20
- variant: import("@angular/core").InputSignal<ModalVariantProps>;
21
- shape: import("@angular/core").InputSignal<ModalShapeProps>;
22
- padding: import("@angular/core").InputSignal<ModalPaddingProps>;
23
16
  width: import("@angular/core").InputSignal<ModalWidthProps>;
24
- classes: import("@angular/core").InputSignal<string>;
25
- label: import("@angular/core").InputSignal<string>;
17
+ alignment: import("@angular/core").InputSignal<ModalAlignmentProps>;
26
18
  modalId: import("@angular/core").InputSignal<string>;
27
19
  onClickOutside: import("@angular/core").OutputEmitterRef<void>;
20
+ iconClose: string;
28
21
  dialog: import("@angular/core").Signal<ElementRef<HTMLDialogElement> | undefined>;
29
- opened: import("@angular/core").InputSignal<boolean>;
22
+ opened: import("@angular/core").ModelSignal<boolean>;
30
23
  openedEffect: import("@angular/core").EffectRef;
31
24
  get componentClass(): string;
25
+ get modalClass(): string;
32
26
  handleOpen(): void;
33
27
  handleClose(): void;
28
+ handleCloseClick(): void;
29
+ handleCancelClick(event: Event): void;
34
30
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "st-modal", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "modalId": { "alias": "modalId"; "required": true; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; }, { "onClickOutside": "onClickOutside"; }, never, ["*"], true, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "st-modal", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "modalId": { "alias": "modalId"; "required": true; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; }, { "onClickOutside": "onClickOutside"; "opened": "openedChange"; }, never, ["st-modal-title", "st-modal-content", "st-modal-actions"], true, never>;
36
32
  }
@@ -3,21 +3,19 @@ import { ProductCardContentDirective } from '../directives/product-card-content.
3
3
  import { ProductCardHeaderDirective } from '../directives/product-card-header.directive';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare const productCardContainer: (props?: ({
6
- shadow?: "none" | "primary" | "secondary" | null | undefined;
6
+ shadow?: "none" | "primary" | null | undefined;
7
7
  height?: "fit" | "auto" | "full" | "min-content" | "max-content" | null | undefined;
8
8
  width?: "fit" | "auto" | "full" | "min-content" | "max-content" | null | undefined;
9
- shape?: "round-sm" | "round-md" | "round-lg" | null | undefined;
10
9
  size?: "sm" | "md" | null | undefined;
11
10
  figurePosition?: "top" | "bottom" | "side" | null | undefined;
12
11
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
- export type ProductCardContainerShadowProps = 'none' | 'primary' | 'secondary' | null | undefined;
12
+ export type ProductCardContainerShadowProps = 'none' | 'primary' | null | undefined;
14
13
  export type ProductCardContainerHeightProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | null | undefined;
15
14
  export type ProductCardContainerWidthProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | null | undefined;
16
- export type ProductCardContainerShapeProps = 'round-sm' | 'round-md' | 'round-lg' | null | undefined;
17
15
  export type ProductCardContainerSizeProps = 'sm' | 'md' | null | undefined;
18
16
  export type ProductCardContainerFigurePositionProps = 'top' | 'bottom' | 'side' | null | undefined;
19
17
  export declare const productCardFigure: (props?: ({
20
- figureBackground?: "none" | "primary" | "secondary" | "image" | "warning" | "error" | "neutral" | null | undefined;
18
+ figureBackground?: "none" | "primary" | "image" | "secondary" | "warning" | "error" | "neutral" | null | undefined;
21
19
  figureAlignment?: "auto" | "center" | "start" | "end" | null | undefined;
22
20
  figurePaddingY?: "none" | "sm" | "md" | "lg" | null | undefined;
23
21
  figurePaddingX?: "none" | "sm" | "md" | "lg" | null | undefined;
@@ -30,7 +28,6 @@ export type ProductCardVariantProps = {
30
28
  shadow?: ProductCardContainerShadowProps;
31
29
  height?: ProductCardContainerHeightProps;
32
30
  width?: ProductCardContainerWidthProps;
33
- shape?: ProductCardContainerShapeProps;
34
31
  size?: ProductCardContainerSizeProps;
35
32
  figureBackground?: ProductCardFigureBackgroundProps;
36
33
  figurePosition?: ProductCardContainerFigurePositionProps;
@@ -38,12 +35,11 @@ export type ProductCardVariantProps = {
38
35
  figurePaddingY?: ProductCardFigurePaddingYProps;
39
36
  figurePaddingX?: ProductCardFigurePaddingXProps;
40
37
  };
41
- export declare const productCardComponent: ({ shadow, height, width, shape, size, figureBackground, figurePosition, figureAlignment, figurePaddingY, figurePaddingX, }?: ProductCardVariantProps) => string;
38
+ export declare const productCardComponent: ({ shadow, height, width, size, figureBackground, figurePosition, figureAlignment, figurePaddingY, figurePaddingX, }?: ProductCardVariantProps) => string;
42
39
  export declare class ProductCardComponent {
43
40
  shadow: import("@angular/core").InputSignal<ProductCardContainerShadowProps>;
44
41
  height: import("@angular/core").InputSignal<ProductCardContainerHeightProps>;
45
42
  width: import("@angular/core").InputSignal<ProductCardContainerWidthProps>;
46
- shape: import("@angular/core").InputSignal<ProductCardContainerShapeProps>;
47
43
  size: import("@angular/core").InputSignal<ProductCardContainerSizeProps>;
48
44
  figurePosition: import("@angular/core").InputSignal<ProductCardContainerFigurePositionProps>;
49
45
  figureBackground: import("@angular/core").InputSignal<ProductCardFigureBackgroundProps>;
@@ -67,5 +63,5 @@ export declare class ProductCardComponent {
67
63
  get titleClass(): string;
68
64
  get actionsClass(): string;
69
65
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductCardComponent, never>;
70
- static ɵcmp: i0.ɵɵComponentDeclaration<ProductCardComponent, "st-product-card", never, { "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "figurePosition": { "alias": "figurePosition"; "required": false; "isSignal": true; }; "figureBackground": { "alias": "figureBackground"; "required": false; "isSignal": true; }; "figureAlignment": { "alias": "figureAlignment"; "required": false; "isSignal": true; }; "figurePaddingY": { "alias": "figurePaddingY"; "required": false; "isSignal": true; }; "figurePaddingX": { "alias": "figurePaddingX"; "required": false; "isSignal": true; }; "containerClasses": { "alias": "containerClasses"; "required": false; "isSignal": true; }; "titleClasses": { "alias": "titleClasses"; "required": false; "isSignal": true; }; "actionsClasses": { "alias": "actionsClasses"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, ["header", "content", "actions"], never, true, never>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProductCardComponent, "st-product-card", never, { "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "figurePosition": { "alias": "figurePosition"; "required": false; "isSignal": true; }; "figureBackground": { "alias": "figureBackground"; "required": false; "isSignal": true; }; "figureAlignment": { "alias": "figureAlignment"; "required": false; "isSignal": true; }; "figurePaddingY": { "alias": "figurePaddingY"; "required": false; "isSignal": true; }; "figurePaddingX": { "alias": "figurePaddingX"; "required": false; "isSignal": true; }; "containerClasses": { "alias": "containerClasses"; "required": false; "isSignal": true; }; "titleClasses": { "alias": "titleClasses"; "required": false; "isSignal": true; }; "actionsClasses": { "alias": "actionsClasses"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, ["header", "content", "actions"], never, true, never>;
71
67
  }
@@ -18,10 +18,9 @@ export type TabProps = {
18
18
  export declare class TabComponent {
19
19
  variant: import("@angular/core").InputSignal<TabVariantProps>;
20
20
  size: import("@angular/core").InputSignal<TabSizeProps>;
21
- classes: import("@angular/core").InputSignal<string>;
22
21
  disabled: import("@angular/core").InputSignal<boolean>;
23
22
  active: import("@angular/core").InputSignal<boolean>;
24
23
  get componentClass(): string;
25
24
  static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "st-tab", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "st-tab", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
27
26
  }
@@ -3,27 +3,18 @@ import { TableRowCheckboxComponent } from '../table-row-checkbox/table-row-check
3
3
  import * as i0 from "@angular/core";
4
4
  export type PaginationType = 'default' | 'dots';
5
5
  export declare const tableContent: (props?: ({
6
- variant?: "default" | "zebra" | null | undefined;
7
6
  size?: "xs" | "sm" | "md" | "lg" | null | undefined;
8
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
- export type TableContentVariantProps = 'default' | 'zebra' | null | undefined;
10
8
  export type TableContentSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;
11
9
  export declare const tableContainer: (props?: ({
12
- containerShadow?: "none" | "secondary" | null | undefined;
13
- containerHeight?: "sm" | "md" | "lg" | "auto" | "full" | null | undefined;
14
- containerShape?: "round-sm" | "round-md" | "round-lg" | null | undefined;
10
+ containerHeight?: "sm" | "md" | "lg" | "auto" | "full" | "xl" | null | undefined;
15
11
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
- export type TableContainerShadowProps = 'none' | 'secondary' | null | undefined;
17
- export type TableContainerHeightProps = 'auto' | 'full' | 'sm' | 'md' | 'lg' | null | undefined;
18
- export type TableContainerShapeProps = 'round-sm' | 'round-md' | 'round-lg' | null | undefined;
12
+ export type TableContainerHeightProps = 'auto' | 'full' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;
19
13
  export type TableVariantProps = {
20
14
  size?: TableContentSizeProps;
21
- variant?: TableContentVariantProps;
22
15
  containerHeight?: TableContainerHeightProps;
23
- containerShadow?: TableContainerShadowProps;
24
- containerShape?: TableContainerShapeProps;
25
16
  };
26
- export declare const tableComponent: ({ size, variant, containerHeight, containerShadow, containerShape }?: TableVariantProps) => string;
17
+ export declare const tableComponent: ({ size, containerHeight }?: TableVariantProps) => string;
27
18
  export type TablePagination = {
28
19
  id: string;
29
20
  currentPage: number;
@@ -31,14 +22,16 @@ export type TablePagination = {
31
22
  search: string;
32
23
  };
33
24
  export declare class TableComponent {
34
- variant: import("@angular/core").InputSignal<TableContentVariantProps>;
35
25
  size: import("@angular/core").InputSignal<TableContentSizeProps>;
36
26
  height: import("@angular/core").InputSignal<TableContainerHeightProps>;
37
- shadow: import("@angular/core").InputSignal<TableContainerShadowProps>;
38
- shape: import("@angular/core").InputSignal<TableContainerShapeProps>;
39
- contentClasses: import("@angular/core").InputSignal<string>;
40
- containerClasses: import("@angular/core").InputSignal<string>;
27
+ pinRows: import("@angular/core").InputSignal<boolean>;
28
+ pinColumns: import("@angular/core").InputSignal<boolean>;
29
+ zebra: import("@angular/core").InputSignal<boolean>;
41
30
  paginatorType: import("@angular/core").InputSignal<PaginationType>;
31
+ labelEntriesByPage: import("@angular/core").InputSignal<string>;
32
+ labelShowEntriesOf: import("@angular/core").InputSignal<string>;
33
+ labelShowEntries: import("@angular/core").InputSignal<string>;
34
+ infoIcon: string;
42
35
  data: import("@angular/core").InputSignal<unknown[]>;
43
36
  totalItems: import("@angular/core").InputSignal<number>;
44
37
  error: import("@angular/core").InputSignal<string>;
@@ -48,10 +41,12 @@ export declare class TableComponent {
48
41
  onPageSizeChange: import("@angular/core").OutputEmitterRef<number>;
49
42
  showItemsPerPage: import("@angular/core").InputSignal<boolean>;
50
43
  showEntries: import("@angular/core").InputSignal<boolean>;
44
+ showPagination: import("@angular/core").InputSignal<boolean>;
51
45
  paginationRange: import("@angular/core").Signal<string>;
52
46
  handlePageChange(page: number): void;
53
47
  handlePageSizeChange(size: number): void;
54
- get contentClass(): string;
48
+ get tableClass(): string;
49
+ get tableContainerClass(): string;
55
50
  get containerClass(): string;
56
51
  header: import("@angular/core").Signal<TableHeaderCheckboxComponent | undefined>;
57
52
  rows: import("@angular/core").Signal<readonly TableRowCheckboxComponent[]>;
@@ -62,5 +57,5 @@ export declare class TableComponent {
62
57
  handleToggleCheckbox(value: boolean, identifier: unknown): void;
63
58
  private clearList;
64
59
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
65
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "st-table", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "contentClasses": { "alias": "contentClasses"; "required": false; "isSignal": true; }; "containerClasses": { "alias": "containerClasses"; "required": false; "isSignal": true; }; "paginatorType": { "alias": "paginatorType"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "showItemsPerPage": { "alias": "showItemsPerPage"; "required": false; "isSignal": true; }; "showEntries": { "alias": "showEntries"; "required": false; "isSignal": true; }; }, { "onPageChange": "onPageChange"; "onPageSizeChange": "onPageSizeChange"; "onCheck": "onCheck"; }, ["header", "rows"], ["thead", "tbody"], true, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "st-table", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "pinRows": { "alias": "pinRows"; "required": false; "isSignal": true; }; "pinColumns": { "alias": "pinColumns"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "paginatorType": { "alias": "paginatorType"; "required": false; "isSignal": true; }; "labelEntriesByPage": { "alias": "labelEntriesByPage"; "required": false; "isSignal": true; }; "labelShowEntriesOf": { "alias": "labelShowEntriesOf"; "required": false; "isSignal": true; }; "labelShowEntries": { "alias": "labelShowEntries"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "showItemsPerPage": { "alias": "showItemsPerPage"; "required": false; "isSignal": true; }; "showEntries": { "alias": "showEntries"; "required": false; "isSignal": true; }; "showPagination": { "alias": "showPagination"; "required": false; "isSignal": true; }; }, { "onPageChange": "onPageChange"; "onPageSizeChange": "onPageSizeChange"; "onCheck": "onCheck"; }, ["header", "rows"], ["thead", "tbody"], true, never>;
66
61
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@sixbell-telco/sdk/directives/click-outside" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './src/click-outside.directive';
@@ -0,0 +1,10 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ClickOutsideDirective {
4
+ private elementRef;
5
+ clickOutside: import("@angular/core").OutputEmitterRef<void>;
6
+ constructor(elementRef: ElementRef);
7
+ onClickOutside(event: MouseEvent): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[clickOutside]", never, {}, { "clickOutside": "clickOutside"; }, never, never, true, never>;
10
+ }
@@ -1,6 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
- export type TypographyVariantProps = 'h1-xl' | 'h1' | 'h2' | 'h3' | 'body' | 'body-sm' | 'body-xs' | null | undefined;
3
- export type TypographyColorProps = 'white' | 'black' | 'primary' | 'inherit' | null | undefined;
2
+ export type TypographyVariantProps = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body' | 'body-sm' | 'body-xs' | 'inherit' | null | undefined;
3
+ export type TypographyColorProps = 'base' | 'base-placeholder' | 'inherit' | null | undefined;
4
4
  export type TypographyFontWeightProps = 'bold' | 'semibold' | 'medium' | 'normal' | 'inherit' | null | undefined;
5
5
  export type TypographyProps = {
6
6
  variant?: TypographyVariantProps;
@@ -11,10 +11,9 @@ export declare class TypographyDirective {
11
11
  variant: import("@angular/core").InputSignal<TypographyVariantProps>;
12
12
  color: import("@angular/core").InputSignal<TypographyColorProps>;
13
13
  fontWeight: import("@angular/core").InputSignal<TypographyFontWeightProps>;
14
- classes: import("@angular/core").InputSignal<string>;
15
14
  private element;
16
15
  private renderer;
17
16
  classListEffect: import("@angular/core").EffectRef;
18
17
  static ɵfac: i0.ɵɵFactoryDeclaration<TypographyDirective, never>;
19
- static ɵdir: i0.ɵɵDirectiveDeclaration<TypographyDirective, "[typography]", never, { "variant": { "alias": "typographyVariant"; "required": false; "isSignal": true; }; "color": { "alias": "typographyColor"; "required": false; "isSignal": true; }; "fontWeight": { "alias": "typographyFontWeight"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TypographyDirective, "[typography]", never, { "variant": { "alias": "tyVariant"; "required": false; "isSignal": true; }; "color": { "alias": "tyColor"; "required": false; "isSignal": true; }; "fontWeight": { "alias": "tyFontWeight"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
20
19
  }
@@ -4,7 +4,7 @@ import { cn } from '@sixbell-telco/sdk/utils/cn';
4
4
  import { cva } from 'class-variance-authority';
5
5
  import * as i0 from "@angular/core";
6
6
  import * as i1 from "../src/accordion.component";
7
- export const accordionItemComponent = cva(['collapse join-item border border-secondary'], {
7
+ export const accordionItemComponent = cva(['collapse join-item border border-neutral'], {
8
8
  variants: {
9
9
  variant: {
10
10
  default: [],
@@ -21,7 +21,6 @@ export class AccordionItemComponent {
21
21
  header = input('');
22
22
  opened = input(false);
23
23
  variant = input();
24
- classes = input('');
25
24
  name;
26
25
  type;
27
26
  constructor(accordion) {
@@ -30,15 +29,15 @@ export class AccordionItemComponent {
30
29
  this.type = this.accordion.type() === 'single' ? 'radio' : 'checkbox';
31
30
  }
32
31
  get componentClass() {
33
- return cn(accordionItemComponent({ variant: this.variant() }), this.classes());
32
+ return cn(accordionItemComponent({ variant: this.variant() }));
34
33
  }
35
34
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AccordionItemComponent, deps: [{ token: i1.AccordionComponent, host: true }], target: i0.ɵɵFactoryTarget.Component });
36
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: AccordionItemComponent, isStandalone: true, selector: "st-accordion-item", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"componentClass\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t{{ header() }}\n\t\t</span>\n\t</div>\n\t<div class=\"collapse-content\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }] });
35
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: AccordionItemComponent, isStandalone: true, selector: "st-accordion-item", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"componentClass\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<div typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t\t{{ header() }}\n\t\t</div>\n\t</div>\n\t<div class=\"collapse-content\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight"] }] });
37
36
  }
38
37
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AccordionItemComponent, decorators: [{
39
38
  type: Component,
40
- args: [{ selector: 'st-accordion-item', standalone: true, imports: [TypographyDirective], template: "<div [class]=\"componentClass\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t{{ header() }}\n\t\t</span>\n\t</div>\n\t<div class=\"collapse-content\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n" }]
39
+ args: [{ selector: 'st-accordion-item', standalone: true, imports: [TypographyDirective], template: "<div [class]=\"componentClass\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<div typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t\t{{ header() }}\n\t\t</div>\n\t</div>\n\t<div class=\"collapse-content\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n" }]
41
40
  }], ctorParameters: () => [{ type: i1.AccordionComponent, decorators: [{
42
41
  type: Host
43
42
  }] }] });
44
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9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5cdFx0PG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuXHQ8L2Rpdj5cbjwvZGl2PlxuIl19
@@ -4,72 +4,56 @@ import { cn } from '@sixbell-telco/sdk/utils/cn';
4
4
  // import { formatTitleCase } from '@shared/utils/formaters/title-case';
5
5
  import { cva } from 'class-variance-authority';
6
6
  import * as i0 from "@angular/core";
7
- export const avatarComponent = cva([], {
7
+ export const avatarComponent = cva(['border-neutral-secondary bg-secondary'], {
8
8
  variants: {
9
- variant: {
10
- primary: [
11
- 'btn',
12
- 'btn-circle',
13
- 'btn-outline',
14
- 'text-neutral',
15
- 'border-ring',
16
- 'bg-secondary-muted',
17
- 'hover:text-neutral',
18
- 'active:hover:text-neutral-content',
19
- 'hover:border-ring-accent',
20
- 'hover:bg-secondary-muted',
21
- 'active:hover:bg-ring-accent',
22
- 'active:focus:border-ring-accent',
23
- ],
24
- },
25
9
  shape: {
26
- 'round-xs': ['rounded-btn-xs'],
27
- 'round-sm': ['rounded-btn-sm'],
28
- 'round-md': ['rounded-btn-md'],
29
- 'round-lg': ['rounded-btn-lg'],
10
+ square: ['rounded-btn'],
11
+ rounded: ['rounded-full'],
30
12
  },
31
13
  size: {
32
- auto: [],
14
+ xs: ['w-6', 'text-xs', 'border'],
15
+ sm: ['w-8', 'text-sm', 'border'],
16
+ md: ['w-12', 'text-base', 'border-2'],
17
+ lg: ['w-16', 'text-lg', 'border-2'],
18
+ xl: ['w-32', 'text-5xl', 'border-4'],
33
19
  },
34
20
  },
35
21
  compoundVariants: [],
36
22
  defaultVariants: {
37
- variant: 'primary',
38
- shape: 'round-lg',
39
- size: 'auto',
23
+ shape: 'square',
24
+ size: 'sm',
40
25
  },
41
26
  });
42
27
  export class AvatarComponent {
43
- variant = input();
44
28
  shape = input();
45
29
  size = input();
46
- classes = input('');
47
- type = input('quick');
30
+ shadow = input(false);
48
31
  user = input.required();
49
- disabled = input(false);
32
+ image = input('');
33
+ showNameAndRole = input(false);
50
34
  get initials() {
51
35
  return `${this.user().firstName[0].toUpperCase()}${this.user().lastName[0].toUpperCase()}`;
52
36
  }
53
37
  get componentClass() {
54
- return cn(avatarComponent({ variant: this.variant(), shape: this.shape(), size: this.size(), class: this.classes() }));
55
- }
56
- get profile() {
57
- return this.formatTitleCase(this.user().profile);
38
+ return cn(avatarComponent({ shape: this.shape(), size: this.size() }));
58
39
  }
59
- get client() {
60
- return this.formatTitleCase(this.user().client);
40
+ get containerClass() {
41
+ return cn('avatar', { placeholder: !this.image(), 'shadow-main': this.shadow() });
61
42
  }
62
- formatTitleCase(value) {
63
- return value
64
- .split(' ')
65
- .map((word) => word[0].toUpperCase() + word.slice(1))
66
- .join(' ');
43
+ get nameAndRoleTextSizeClass() {
44
+ return cn({
45
+ 'text-xs': this.size() === 'xs',
46
+ 'text-sm': this.size() === 'sm',
47
+ 'text-base': this.size() === 'md',
48
+ 'text-lg': this.size() === 'lg',
49
+ 'text-5xl': this.size() === 'xl',
50
+ });
67
51
  }
68
52
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
69
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: AvatarComponent, isStandalone: true, selector: "st-avatar", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (type() === 'quick') {\n\t<button [class]=\"componentClass\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'semibold'\">{{ initials }}</span>\n\t</button>\n}\n\n@if (type() === 'profile') {\n\t<div class=\"flex items-center gap-2\">\n\t\t<button [class]=\"componentClass\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'semibold'\">{{ initials }}</span>\n\t\t</button>\n\t\t<div class=\"max-w-36\">\n\t\t\t<p class=\"space-x-1 truncate\">\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">Perfil:</span>\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ profile }}</span>\n\t\t\t</p>\n\t\t\t<p class=\"space-x-1 truncate\">\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">Cliente:</span>\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ client }}</span>\n\t\t\t</p>\n\t\t</div>\n\t</div>\n}\n", styles: [""], dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }] });
53
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: AvatarComponent, isStandalone: true, selector: "st-avatar", inputs: { shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: true, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, showNameAndRole: { classPropertyName: "showNameAndRole", publicName: "showNameAndRole", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"inline-flex items-center justify-start gap-3\">\n\t@let imageVar = image();\n\t@if (imageVar) {\n\t\t<div [class]=\"containerClass\">\n\t\t\t<div [class]=\"componentClass\">\n\t\t\t\t<img [src]=\"image()\" alt=\"avatar image\" />\n\t\t\t</div>\n\t\t</div>\n\t} @else {\n\t\t<div [class]=\"containerClass\">\n\t\t\t<div [class]=\"componentClass\">\n\t\t\t\t<span typography [tyVariant]=\"'inherit'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ initials }}</span>\n\t\t\t</div>\n\t\t</div>\n\t}\n\t@let showNameAndRolVar = showNameAndRole();\n\t@let userVar = user();\n\t@if (showNameAndRolVar) {\n\t\t<div [class]=\"nameAndRoleTextSizeClass\">\n\t\t\t<div>\n\t\t\t\t<span typography [tyVariant]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">{{ userVar.firstName }} {{ userVar.lastName }}</span>\n\t\t\t</div>\n\t\t\t<div class=\"space-x-1\" typography [tyVariant]=\"'inherit'\">{{ userVar.role }}</div>\n\t\t</div>\n\t}\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight"] }] });
70
54
  }
71
55
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AvatarComponent, decorators: [{
72
56
  type: Component,
73
- args: [{ selector: 'st-avatar', standalone: true, imports: [TypographyDirective], template: "@if (type() === 'quick') {\n\t<button [class]=\"componentClass\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'semibold'\">{{ initials }}</span>\n\t</button>\n}\n\n@if (type() === 'profile') {\n\t<div class=\"flex items-center gap-2\">\n\t\t<button [class]=\"componentClass\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'semibold'\">{{ initials }}</span>\n\t\t</button>\n\t\t<div class=\"max-w-36\">\n\t\t\t<p class=\"space-x-1 truncate\">\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">Perfil:</span>\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ profile }}</span>\n\t\t\t</p>\n\t\t\t<p class=\"space-x-1 truncate\">\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">Cliente:</span>\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ client }}</span>\n\t\t\t</p>\n\t\t</div>\n\t</div>\n}\n" }]
57
+ args: [{ selector: 'st-avatar', standalone: true, imports: [TypographyDirective], template: "<div class=\"inline-flex items-center justify-start gap-3\">\n\t@let imageVar = image();\n\t@if (imageVar) {\n\t\t<div [class]=\"containerClass\">\n\t\t\t<div [class]=\"componentClass\">\n\t\t\t\t<img [src]=\"image()\" alt=\"avatar image\" />\n\t\t\t</div>\n\t\t</div>\n\t} @else {\n\t\t<div [class]=\"containerClass\">\n\t\t\t<div [class]=\"componentClass\">\n\t\t\t\t<span typography [tyVariant]=\"'inherit'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ initials }}</span>\n\t\t\t</div>\n\t\t</div>\n\t}\n\t@let showNameAndRolVar = showNameAndRole();\n\t@let userVar = user();\n\t@if (showNameAndRolVar) {\n\t\t<div [class]=\"nameAndRoleTextSizeClass\">\n\t\t\t<div>\n\t\t\t\t<span typography [tyVariant]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">{{ userVar.firstName }} {{ userVar.lastName }}</span>\n\t\t\t</div>\n\t\t\t<div class=\"space-x-1\" typography [tyVariant]=\"'inherit'\">{{ userVar.role }}</div>\n\t\t</div>\n\t}\n</div>\n" }]
74
58
  }] });
75
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXZhdGFyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Nkay9jb21wb25lbnRzL2F2YXRhci9zcmMvYXZhdGFyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Nkay9jb21wb25lbnRzL2F2YXRhci9zcmMvYXZhdGFyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2pELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLDBDQUEwQyxDQUFDO0FBQy9FLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUNqRCx3RUFBd0U7QUFDeEUsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLDBCQUEwQixDQUFDOztBQVkvQyxNQUFNLENBQUMsTUFBTSxlQUFlLEdBQUcsR0FBRyxDQUFDLEVBQUUsRUFBRTtJQUN0QyxRQUFRLEVBQUU7UUFDVCxPQUFPLEVBQUU7WUFDUixPQUFPLEVBQUU7Z0JBQ1IsS0FBSztnQkFDTCxZQUFZO2dCQUNaLGFBQWE7Z0JBQ2IsY0FBYztnQkFDZCxhQUFhO2dCQUNiLG9CQUFvQjtnQkFDcEIsb0JBQW9CO2dCQUNwQixtQ0FBbUM7Z0JBQ25D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