@sixbell-telco/sdk 2.1.0 → 3.0.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 (146) hide show
  1. package/CHANGELOG.md +70 -1
  2. package/README.md +323 -84
  3. package/_index.css +0 -3
  4. package/components/card/card-actions/card-actions.component.d.ts +4 -4
  5. package/components/card/card-body/card-body.component.d.ts +5 -0
  6. package/components/card/card-context.d.ts +8 -0
  7. package/components/card/card-footer/card-footer.component.d.ts +7 -0
  8. package/components/card/card-header/card-header.component.d.ts +5 -0
  9. package/components/card/card-header-aside/card-header-aside.component.d.ts +5 -0
  10. package/components/card/card-section/card-section.component.d.ts +5 -0
  11. package/components/card/card-section-body/card-section-body.component.d.ts +5 -0
  12. package/components/card/card-section-footer/card-section-footer.component.d.ts +5 -0
  13. package/components/card/card-section-group/card-section-group.component.d.ts +16 -0
  14. package/components/card/card-section-header/card-section-header.component.d.ts +5 -0
  15. package/components/card/card-section-header-aside/card-section-header-aside.component.d.ts +5 -0
  16. package/components/card/card-subtitle/card-subtitle.component.d.ts +34 -0
  17. package/components/card/card-title/card-title.component.d.ts +23 -14
  18. package/components/card/public-api.d.ts +12 -1
  19. package/components/card/src/card.component.d.ts +5 -1
  20. package/components/data-table/actions/actions.component.d.ts +67 -0
  21. package/components/data-table/actions/actions.types.d.ts +38 -0
  22. package/components/data-table/public-api.d.ts +2 -0
  23. package/components/data-table/sortable-header/sortable-header.component.d.ts +2 -0
  24. package/components/data-table/src/data-table.component.d.ts +14 -5
  25. package/{directives/typography → components/divider}/index.d.ts +1 -1
  26. package/components/divider/public-api.d.ts +1 -0
  27. package/components/divider/src/divider.component.d.ts +13 -0
  28. package/components/forms/date-picker/src/date-picker.component.d.ts +3 -0
  29. package/components/forms/form-error/src/form-error.component.d.ts +8 -1
  30. package/components/forms/input/src/input.component.d.ts +1 -12
  31. package/components/forms/textarea/src/textarea.component.d.ts +1 -6
  32. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +10 -1
  33. package/components/paginator/src/paginator.component.d.ts +7 -1
  34. package/components/table/public-api.d.ts +1 -0
  35. package/components/table/src/table.component.d.ts +37 -4
  36. package/components/table/table-action/table-action.component.d.ts +2 -6
  37. package/components/table/table-actions/table-actions.component.d.ts +52 -6
  38. package/components/table/table-actions/table-actions.types.d.ts +28 -0
  39. package/components/{toast → text}/index.d.ts +1 -1
  40. package/components/text/public-api.d.ts +2 -0
  41. package/components/text/src/text.component.d.ts +38 -0
  42. package/directives/only-numbers/public-api.d.ts +0 -5
  43. package/directives/only-numbers/src/only-numbers.directive.d.ts +1 -13
  44. package/directives/text/index.d.ts +5 -0
  45. package/directives/text/public-api.d.ts +1 -0
  46. package/directives/text/src/text.directive.d.ts +87 -0
  47. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +3 -3
  48. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  49. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +9 -9
  50. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  51. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +10 -11
  52. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  53. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +3 -3
  54. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  55. package/fesm2022/sixbell-telco-sdk-components-button.mjs +2 -2
  56. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  57. package/fesm2022/sixbell-telco-sdk-components-card.mjs +414 -47
  58. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  59. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +202 -51
  60. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
  61. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +5 -5
  62. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
  63. package/fesm2022/sixbell-telco-sdk-components-divider.mjs +44 -0
  64. package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -0
  65. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +4 -4
  66. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  67. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +6 -6
  68. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
  69. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +2 -2
  70. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  71. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
  72. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  73. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +21 -5
  74. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
  75. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +12 -5
  76. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  77. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +3 -15
  78. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  79. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +2 -2
  80. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  81. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +2 -2
  82. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
  84. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  85. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
  86. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  87. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +5 -11
  88. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  89. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +4 -4
  90. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  91. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +2 -2
  92. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  93. package/fesm2022/sixbell-telco-sdk-components-link.mjs +3 -3
  94. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  95. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +46 -18
  96. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  97. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +3 -3
  98. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  99. package/fesm2022/sixbell-telco-sdk-components-table.mjs +439 -47
  100. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  101. package/fesm2022/sixbell-telco-sdk-components-text.mjs +308 -0
  102. package/fesm2022/sixbell-telco-sdk-components-text.mjs.map +1 -0
  103. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +12 -12
  104. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  105. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +5 -22
  106. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
  107. package/fesm2022/sixbell-telco-sdk-directives-text.mjs +160 -0
  108. package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -0
  109. package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs +490 -0
  110. package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs.map +1 -0
  111. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +49 -1
  112. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
  113. package/package.json +86 -78
  114. package/utils/formatting/README.md +100 -0
  115. package/utils/formatting/index.d.ts +5 -0
  116. package/utils/formatting/public-api.d.ts +9 -0
  117. package/utils/formatting/src/constants/constants.d.ts +18 -0
  118. package/utils/formatting/src/models/formatting.d.ts +33 -0
  119. package/utils/formatting/src/pipes/currency/st-currency.pipe.d.ts +9 -0
  120. package/utils/formatting/src/pipes/date/st-date.pipe.d.ts +9 -0
  121. package/utils/formatting/src/pipes/decimal/st-decimal.pipe.d.ts +9 -0
  122. package/utils/formatting/src/pipes/percent/st-percent.pipe.d.ts +9 -0
  123. package/utils/formatting/src/service/formatting.service.d.ts +13 -0
  124. package/utils/formatting/src/utils/date-format/date-format.d.ts +9 -0
  125. package/utils/formatting/src/utils/number-format/number-format.d.ts +12 -0
  126. package/utils/logger/README.md +8 -19
  127. package/utils/runtime-config/README.md +1 -1
  128. package/utils/theme/README.md +21 -2
  129. package/utils/translation/README.md +40 -10
  130. package/utils/translation/public-api.d.ts +1 -1
  131. package/utils/translation/src/constants.d.ts +9 -2
  132. package/utils/translation/src/models/translation.d.ts +11 -0
  133. package/utils/translation/src/providers/translation.provider.d.ts +1 -1
  134. package/utils/translation/src/translation.service.d.ts +6 -1
  135. package/assets/styles/toast.css +0 -63
  136. package/components/card/card-content/card-content.component.d.ts +0 -30
  137. package/components/toast/public-api.d.ts +0 -12
  138. package/components/toast/services/toast.service.d.ts +0 -35
  139. package/components/toast/toast-message/toast-message.component.d.ts +0 -70
  140. package/components/toast/toasts-container/toasts-container.component.d.ts +0 -21
  141. package/directives/typography/public-api.d.ts +0 -1
  142. package/directives/typography/src/typography.directive.d.ts +0 -68
  143. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +0 -250
  144. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +0 -1
  145. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +0 -126
  146. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +0 -1
@@ -1,6 +1,7 @@
1
1
  export * from './src/table.component';
2
2
  export * from './table-action/table-action.component';
3
3
  export * from './table-actions/table-actions.component';
4
+ export * from './table-actions/table-actions.types';
4
5
  export * from './table-empty-actions/table-empty-actions.component';
5
6
  export * from './table-header-checkbox/table-header-checkbox.component';
6
7
  export * from './table-row-checkbox/table-row-checkbox.component';
@@ -1,9 +1,35 @@
1
- import { Pagination, PaginationType } from '@sixbell-telco/sdk/components/paginator';
2
- import { TypographyVariantProps } from '@sixbell-telco/sdk/directives/typography';
1
+ import { ButtonSizeProps } from '@sixbell-telco/sdk/components/button';
2
+ import { CheckboxSizeProps } from '@sixbell-telco/sdk/components/forms/checkbox';
3
+ import { SelectSizeProps } from '@sixbell-telco/sdk/components/forms/select';
4
+ import { IconSizeProps } from '@sixbell-telco/sdk/components/icon';
5
+ import { Pagination, PaginationType, PaginatorSizeProps } from '@sixbell-telco/sdk/components/paginator';
6
+ import { TextPreset } from '@sixbell-telco/sdk/directives/text';
3
7
  import { TranslateService } from '@sixbell-telco/sdk/utils/translation';
8
+ import { TableActionsSizeProps } from '../table-actions/table-actions.types';
4
9
  import { TableHeaderCheckboxComponent } from '../table-header-checkbox/table-header-checkbox.component';
5
10
  import { TableRowCheckboxComponent } from '../table-row-checkbox/table-row-checkbox.component';
6
11
  import * as i0 from "@angular/core";
12
+ export type TableResolvedSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
13
+ export interface TableSizeTokens {
14
+ headerPreset: TextPreset;
15
+ bodyPreset: TextPreset;
16
+ footerPreset: TextPreset;
17
+ selectSize: SelectSizeProps;
18
+ paginatorSize: PaginatorSizeProps;
19
+ checkboxSize: CheckboxSizeProps;
20
+ actionSize: TableActionsSizeProps;
21
+ sortableButtonSize: ButtonSizeProps;
22
+ sortableIconSize: IconSizeProps;
23
+ }
24
+ export interface TableFooterLayoutTokens {
25
+ wrapper: string[];
26
+ divider: string[];
27
+ content: string[];
28
+ }
29
+ export declare function resolveTableSize(size: TableContentSizeProps): TableResolvedSize;
30
+ export declare function getTableSizeTokens(size: TableContentSizeProps): TableSizeTokens;
31
+ export declare function getTableFooterLayoutTokens(size: TableContentSizeProps): TableFooterLayoutTokens;
32
+ export declare function getTableHierarchyTypographyClasses(size: TableResolvedSize): string[];
7
33
  /** Type definition for pagination display variants */
8
34
  /**
9
35
  * @internal
@@ -209,11 +235,18 @@ export declare class TableComponent {
209
235
  * Computes outer container classes based on size
210
236
  */
211
237
  containerClass: import("@angular/core").Signal<string>;
238
+ readonly sizeTokens: import("@angular/core").Signal<TableSizeTokens>;
239
+ readonly footerLayoutTokens: import("@angular/core").Signal<TableFooterLayoutTokens>;
212
240
  /**
213
241
  * @internal
214
242
  * Computes typography variant for paginator text based on table size
215
243
  */
216
- paginatorTextSize: import("@angular/core").Signal<TypographyVariantProps>;
244
+ paginatorTextSize: import("@angular/core").Signal<TextPreset>;
245
+ footerSelectSize: import("@angular/core").Signal<SelectSizeProps>;
246
+ footerPaginatorSize: import("@angular/core").Signal<PaginatorSizeProps>;
247
+ footerWrapperClass: import("@angular/core").Signal<string>;
248
+ footerDividerClass: import("@angular/core").Signal<string>;
249
+ footerContentClass: import("@angular/core").Signal<string>;
217
250
  /** @internal Reference to header checkbox component */
218
251
  header: import("@angular/core").Signal<TableHeaderCheckboxComponent | undefined>;
219
252
  /** @internal List of row checkbox components */
@@ -238,5 +271,5 @@ export declare class TableComponent {
238
271
  /** @internal Clear all selections */
239
272
  private clearList;
240
273
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
241
- 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; }; "noDataIcon": { "alias": "noDataIcon"; "required": false; "isSignal": true; }; "noResultsIcon": { "alias": "noResultsIcon"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "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; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "hasActiveFiltersCallback": { "alias": "hasActiveFiltersCallback"; "required": false; "isSignal": true; }; "allowHeaderOverflow": { "alias": "allowHeaderOverflow"; "required": false; "isSignal": true; }; }, { "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; "checkedItems": "checkedItems"; }, ["header", "rows"], ["st-table-empty-actions", "thead", "tbody"], true, never>;
274
+ 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; }; "noDataIcon": { "alias": "noDataIcon"; "required": false; "isSignal": true; }; "noResultsIcon": { "alias": "noResultsIcon"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "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; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "hasActiveFiltersCallback": { "alias": "hasActiveFiltersCallback"; "required": false; "isSignal": true; }; "allowHeaderOverflow": { "alias": "allowHeaderOverflow"; "required": false; "isSignal": true; }; }, { "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; "checkedItems": "checkedItems"; }, ["header", "rows"], ["st-table-empty-actions", "thead", "tbody", "tfoot"], true, never>;
242
275
  }
@@ -1,4 +1,5 @@
1
1
  import { ButtonSizeProps, ButtonVariantProps } from '@sixbell-telco/sdk/components/button';
2
+ import { TextPreset } from '@sixbell-telco/sdk/directives/text';
2
3
  import * as i0 from "@angular/core";
3
4
  export type ModalActionsAligmentProps = 'left' | 'right' | 'center';
4
5
  /**
@@ -36,14 +37,9 @@ export declare class TableActionComponent {
36
37
  size: import("@angular/core").InputSignal<ButtonSizeProps>;
37
38
  /**
38
39
  * Computes CSS classes for the table action text size based on the current size setting.
39
- *
40
- * @returns A string of CSS classes determined by the component's size:
41
- * - 'xs' size: applies 'text-[0.6875rem]' class
42
- * - 'sm' size: applies 'text-xs' class
43
- * - 'md' size: applies 'text-sm' class
44
- * - 'lg' or 'xl' size: applies 'text-lg' class
45
40
  */
46
41
  tableActionClass: import("@angular/core").Signal<string>;
42
+ textPreset: import("@angular/core").Signal<TextPreset>;
47
43
  static ɵfac: i0.ɵɵFactoryDeclaration<TableActionComponent, never>;
48
44
  static ɵcmp: i0.ɵɵComponentDeclaration<TableActionComponent, "st-table-action", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
49
45
  }
@@ -1,25 +1,71 @@
1
+ import { TableActionConfig, TableActionsMode, TableActionsSizeProps } from './table-actions.types';
1
2
  import * as i0 from "@angular/core";
2
3
  /**
3
4
  * Component to render a container for table actions.
4
5
  *
5
6
  * @remarks
6
- * This component is a simple container for action buttons or other interactive elements
7
- * within a table. It provides basic styling and layout.
7
+ * Supports three modes of operation:
8
+ * 1. **ng-content (backward compatible)**: When no `actions` input is provided, renders projected content.
9
+ * 2. **Inline mode**: When `actions` is provided and `mode` is `'inline'`, renders action buttons in a row.
10
+ * 3. **Dropdown mode**: When `actions` is provided and `mode` is `'dropdown'`, renders a kebab menu.
8
11
  *
9
12
  * @example
10
13
  * ```html
14
+ * <!-- ng-content mode (backward compatible) -->
11
15
  * <st-table-actions>
12
- * <button>Action 1</button>
13
- * <button>Action 2</button>
16
+ * <st-table-action [icon]="editIcon" tooltip="Edit" />
14
17
  * </st-table-actions>
18
+ *
19
+ * <!-- Data-driven inline mode -->
20
+ * <st-table-actions [actions]="myActions" (actionTriggered)="onAction($event)" />
21
+ *
22
+ * <!-- Data-driven dropdown mode -->
23
+ * <st-table-actions [actions]="myActions" mode="dropdown" (actionTriggered)="onAction($event)" />
15
24
  * ```
16
25
  */
17
26
  export declare class TableActionsComponent {
27
+ /**
28
+ * Array of action configurations. When provided, renders actions data-driven.
29
+ * When empty or not provided, falls back to ng-content projection.
30
+ */
31
+ actions: import("@angular/core").InputSignal<TableActionConfig[]>;
32
+ /**
33
+ * Rendering mode for the actions.
34
+ * - `'inline'`: Renders action buttons in a row (default).
35
+ * - `'dropdown'`: Renders a kebab menu that opens a dropdown with action items.
36
+ * @defaultValue 'inline'
37
+ */
38
+ mode: import("@angular/core").InputSignal<TableActionsMode>;
39
+ /**
40
+ * Size for action buttons and the dropdown trigger.
41
+ * @defaultValue 'md'
42
+ */
43
+ size: import("@angular/core").InputSignal<TableActionsSizeProps>;
44
+ /**
45
+ * Icon for the dropdown trigger button.
46
+ * @defaultValue matMoreVert (Material vertical dots icon)
47
+ */
48
+ triggerIcon: import("@angular/core").InputSignal<string>;
49
+ /**
50
+ * Emitted when a data-driven action is triggered/clicked.
51
+ * Emits the full `TableActionConfig` of the triggered action.
52
+ */
53
+ actionTriggered: import("@angular/core").OutputEmitterRef<TableActionConfig>;
18
54
  /**
19
55
  * @internal
20
- * Computed class string for the table actions container.
56
+ * Computed class string for the table actions container (inline mode and ng-content fallback).
21
57
  */
22
58
  componentClass: import("@angular/core").Signal<string>;
59
+ /**
60
+ * @internal
61
+ * Whether the component should use data-driven rendering.
62
+ */
63
+ hasActions: import("@angular/core").Signal<boolean>;
64
+ /**
65
+ * @internal
66
+ * Handle action click for data-driven mode.
67
+ */
68
+ onActionClick(action: TableActionConfig): void;
23
69
  static ɵfac: i0.ɵɵFactoryDeclaration<TableActionsComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<TableActionsComponent, "st-table-actions", never, {}, {}, never, ["*"], true, never>;
70
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableActionsComponent, "st-table-actions", never, { "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "triggerIcon": { "alias": "triggerIcon"; "required": false; "isSignal": true; }; }, { "actionTriggered": "actionTriggered"; }, never, ["*"], true, never>;
25
71
  }
@@ -0,0 +1,28 @@
1
+ import { ButtonVariantProps } from '@sixbell-telco/sdk/components/button';
2
+ /**
3
+ * Configuration for a single table action.
4
+ */
5
+ export interface TableActionConfig {
6
+ /** Unique identifier for the action. */
7
+ id: string;
8
+ /** SVG icon string (from ng-icons). */
9
+ icon?: string;
10
+ /** Display label (supports i18n translation keys). */
11
+ label?: string;
12
+ /** Tooltip text for inline mode (supports i18n translation keys). */
13
+ tooltip?: string;
14
+ /** Button variant style. */
15
+ variant?: ButtonVariantProps;
16
+ /** Whether the action is disabled. */
17
+ disabled?: boolean;
18
+ }
19
+ /**
20
+ * Rendering mode for table actions.
21
+ * - `inline`: Renders action buttons in a row (default).
22
+ * - `dropdown`: Renders a kebab menu (3-dot) that opens a dropdown with action items.
23
+ */
24
+ export type TableActionsMode = 'inline' | 'dropdown';
25
+ /**
26
+ * Size options for table actions.
27
+ */
28
+ export type TableActionsSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
- /// <amd-module name="@sixbell-telco/sdk/components/toast" />
4
+ /// <amd-module name="@sixbell-telco/sdk/components/text" />
5
5
  export * from './public-api';
@@ -0,0 +1,2 @@
1
+ export { TextColor, TextLineClamp, TextOverflow, TextPreset, TextWeight } from '@sixbell-telco/sdk/directives/text';
2
+ export { TextComponent, TextTag } from './src/text.component';
@@ -0,0 +1,38 @@
1
+ import { TextColor, TextLineClamp, TextOverflow, TextPreset, TextWeight } from '@sixbell-telco/sdk/directives/text';
2
+ import * as i0 from "@angular/core";
3
+ /** Supported HTML tags for the text component */
4
+ export type TextTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div' | 'label';
5
+ /**
6
+ * A polymorphic text component that renders the correct semantic HTML tag
7
+ * and delegates typography styling to the `TextDirective`.
8
+ *
9
+ * Use the `as` input to select the HTML tag. All typography inputs
10
+ * (`preset`, `weight`, `color`, `overflow`) are forwarded to the inner `TextDirective`.
11
+ *
12
+ * @example
13
+ * ```html
14
+ * <st-text as="h1" preset="1">Hero Title</st-text>
15
+ * <st-text as="p" preset="7" weight="bold" class="mb-4">Body text</st-text>
16
+ * <st-text as="span" preset="9" color="primary" class="uppercase">Label</st-text>
17
+ * ```
18
+ *
19
+ * @publicApi
20
+ */
21
+ export declare class TextComponent {
22
+ /** HTML tag to render. Consumers use `as` in templates. @defaultValue 'p' */
23
+ tag: import("@angular/core").InputSignal<TextTag>;
24
+ /** Text preset (1 = largest, 10 = smallest). @defaultValue '7' */
25
+ preset: import("@angular/core").InputSignal<TextPreset>;
26
+ /** Override the preset's default font weight. */
27
+ weight: import("@angular/core").InputSignal<TextWeight>;
28
+ /** Text color variant. @defaultValue 'base' */
29
+ color: import("@angular/core").InputSignal<TextColor>;
30
+ /** Text overflow handling. @defaultValue 'clip' */
31
+ overflow: import("@angular/core").InputSignal<TextOverflow>;
32
+ /** Line clamp — limits visible text to a given number of lines. */
33
+ lineClamp: import("@angular/core").InputSignal<TextLineClamp>;
34
+ /** @internal Static classes captured from the host element before the first render. */
35
+ protected readonly hostStaticClasses: any;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextComponent, "st-text", never, { "tag": { "alias": "as"; "required": false; "isSignal": true; }; "preset": { "alias": "preset"; "required": false; "isSignal": true; }; "weight": { "alias": "weight"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "overflow": { "alias": "overflow"; "required": false; "isSignal": true; }; "lineClamp": { "alias": "lineClamp"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
38
+ }
@@ -1,6 +1 @@
1
1
  export { OnlyNumbersDirective } from './src/only-numbers.directive';
2
- /**
3
- * @deprecated Use `OnlyNumbersDirective` instead.
4
- * This alias is maintained for backward compatibility and will be removed in a future major version.
5
- */
6
- export { OnlyNumbersDirective as JustNumbersDirective } from './src/only-numbers.directive';
@@ -3,7 +3,6 @@ import * as i0 from "@angular/core";
3
3
  * Directive that restricts input to numeric characters only.
4
4
  *
5
5
  * Use the `stOnlyNumbers` selector to enable numeric-only input restriction.
6
- * For backward compatibility, the `stJustNumbers` selector is also supported but is deprecated.
7
6
  *
8
7
  * @example
9
8
  * ```html
@@ -18,19 +17,8 @@ export declare class OnlyNumbersDirective {
18
17
  * @default false
19
18
  */
20
19
  stOnlyNumbers: import("@angular/core").InputSignal<boolean>;
21
- /**
22
- * @deprecated Use `stOnlyNumbers` input instead.
23
- * This input is maintained for backward compatibility and will be removed in a future major version.
24
- */
25
- justNumbers: import("@angular/core").InputSignal<boolean>;
26
20
  blockPaste(event: ClipboardEvent): boolean;
27
21
  onKeyPress(event: KeyboardEvent): boolean;
28
- /**
29
- * Determines if the numeric-only restriction is enabled.
30
- * Checks both the new and deprecated inputs for backward compatibility.
31
- * @private
32
- */
33
- private getEnabled;
34
22
  static ɵfac: i0.ɵɵFactoryDeclaration<OnlyNumbersDirective, never>;
35
- static ɵdir: i0.ɵɵDirectiveDeclaration<OnlyNumbersDirective, "[stOnlyNumbers], [stJustNumbers]", never, { "stOnlyNumbers": { "alias": "stOnlyNumbers"; "required": false; "isSignal": true; }; "justNumbers": { "alias": "justNumbers"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OnlyNumbersDirective, "[stOnlyNumbers]", never, { "stOnlyNumbers": { "alias": "stOnlyNumbers"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
36
24
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@sixbell-telco/sdk/directives/text" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './src/text.directive';
@@ -0,0 +1,87 @@
1
+ import * as i0 from "@angular/core";
2
+ /** Numbered text preset (1 = largest, 10 = smallest) */
3
+ export type TextPreset = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | null | undefined;
4
+ /** Font weight options for text */
5
+ export type TextWeight = 'bold' | 'semibold' | 'medium' | 'normal' | 'light' | 'inherit' | null | undefined;
6
+ /** Text color variants */
7
+ export type TextColor = 'base' | 'base-placeholder' | 'primary' | 'secondary' | 'accent' | 'inherit' | null | undefined;
8
+ /** Text overflow handling methods */
9
+ export type TextOverflow = 'clip' | 'ellipsis' | 'truncate' | null | undefined;
10
+ /** Line clamp options (number of visible lines) */
11
+ export type TextLineClamp = '1' | '2' | '3' | '4' | '5' | '6' | 'none' | null | undefined;
12
+ /** Configuration object for text styles */
13
+ export type TextProps = {
14
+ preset?: TextPreset;
15
+ weight?: TextWeight;
16
+ color?: TextColor;
17
+ overflow?: TextOverflow;
18
+ lineClamp?: TextLineClamp;
19
+ };
20
+ /**
21
+ * A directive for applying consistent, preset-based typography styles using Tailwind CSS.
22
+ *
23
+ * Uses a numbered preset system (1-10) based on a Major Second scale (1.125 ratio, 14px base).
24
+ * Each preset bundles sensible defaults for font-size, line-height, letter-spacing, and font-weight.
25
+ * Weight, color, and overflow can be overridden independently.
26
+ *
27
+ * External Tailwind classes on the host element are automatically merged via `tailwind-merge`,
28
+ * so they override conflicting directive defaults (e.g., `class="text-error"` overrides the
29
+ * default `text-base-content` color).
30
+ *
31
+ * @example
32
+ * ```html
33
+ * <!-- Basic: preset for styling, HTML tag for semantics -->
34
+ * <h2 stText="3">Section Title</h2>
35
+ *
36
+ * <!-- External class overrides directive default color -->
37
+ * <h1 stText="1" class="mb-4 text-primary">Hero Title</h1>
38
+ *
39
+ * <!-- Explicit directive color -->
40
+ * <p stText="7" stTextWeight="bold" stTextColor="primary">Body text</p>
41
+ *
42
+ * <!-- Small label -->
43
+ * <span stText="9" class="uppercase tracking-wider">Label</span>
44
+ * ```
45
+ *
46
+ * @publicApi
47
+ */
48
+ export declare class TextDirective {
49
+ /**
50
+ * Text preset (1 = largest, 10 = smallest).
51
+ * Each preset bundles defaults for font-size, line-height, letter-spacing, and font-weight.
52
+ * @defaultValue '7' (14px body text)
53
+ */
54
+ stText: import("@angular/core").InputSignal<TextPreset>;
55
+ /**
56
+ * Override the preset default font weight.
57
+ * @defaultValue 'normal' (preset default weight)
58
+ */
59
+ stTextWeight: import("@angular/core").InputSignal<TextWeight>;
60
+ /**
61
+ * Text color variant.
62
+ * @defaultValue 'inherit' (text-inherit)
63
+ */
64
+ stTextColor: import("@angular/core").InputSignal<TextColor>;
65
+ /**
66
+ * Text overflow handling.
67
+ * @defaultValue 'clip'
68
+ */
69
+ stTextOverflow: import("@angular/core").InputSignal<TextOverflow>;
70
+ /**
71
+ * Line clamp — limits visible text to a given number of lines.
72
+ * When not set, no line-clamp class is applied.
73
+ */
74
+ stTextLineClamp: import("@angular/core").InputSignal<TextLineClamp>;
75
+ /**
76
+ * Extra CSS classes merged after directive classes via `tailwind-merge`.
77
+ * Useful for programmatic overrides (e.g., forwarded from a wrapper component).
78
+ * Conflicting utilities in `stTextClass` win over directive defaults.
79
+ */
80
+ stTextClass: import("@angular/core").InputSignal<string>;
81
+ /** @internal Static classes captured from the host element before the first render. */
82
+ private readonly hostStaticClasses;
83
+ /** @internal Computed CSS class string merged via host binding */
84
+ protected computedClasses: import("@angular/core").Signal<string>;
85
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextDirective, never>;
86
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TextDirective, "[stText]", never, { "stText": { "alias": "stText"; "required": false; "isSignal": true; }; "stTextWeight": { "alias": "stTextWeight"; "required": false; "isSignal": true; }; "stTextColor": { "alias": "stTextColor"; "required": false; "isSignal": true; }; "stTextOverflow": { "alias": "stTextOverflow"; "required": false; "isSignal": true; }; "stTextLineClamp": { "alias": "stTextLineClamp"; "required": false; "isSignal": true; }; "stTextClass": { "alias": "stTextClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
87
+ }
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, Component, inject, computed } from '@angular/core';
3
- import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
3
+ import { TextDirective } from '@sixbell-telco/sdk/directives/text';
4
4
  import { cn } from '@sixbell-telco/sdk/utils/cn';
5
5
  import { cva } from 'class-variance-authority';
6
6
 
@@ -40,11 +40,11 @@ class AccordionItemComponent {
40
40
  }
41
41
  componentClass = computed(() => cn(accordionItemComponent({ variant: this.variant() })));
42
42
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AccordionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
43
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", 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", "tyTextOverflow"] }] });
43
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", 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 stText=\"7\">\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: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }] });
44
44
  }
45
45
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AccordionItemComponent, decorators: [{
46
46
  type: Component,
47
- args: [{ selector: 'st-accordion-item', 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" }]
47
+ args: [{ selector: 'st-accordion-item', imports: [TextDirective], template: "<div [class]=\"componentClass()\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<div stText=\"7\">\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" }]
48
48
  }], ctorParameters: () => [] });
49
49
 
50
50
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-accordion.mjs","sources":["../../../projects/sdk/components/accordion/src/accordion.component.ts","../../../projects/sdk/components/accordion/src/accordion.component.html","../../../projects/sdk/components/accordion/accordion-item/accordion-item.component.ts","../../../projects/sdk/components/accordion/accordion-item/accordion-item.component.html","../../../projects/sdk/components/accordion/sixbell-telco-sdk-components-accordion.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\n\n@Component({\n selector: 'st-accordion',\n imports: [],\n templateUrl: './accordion.component.html'\n})\nexport class AccordionComponent {\n\tname = input('accordion');\n\ttype = input<'default' | 'single'>('default');\n}\n","<div class=\"join join-vertical w-full\">\n\t<ng-content></ng-content>\n</div>\n","import { Component, computed, inject, input } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { AccordionComponent } from '../src/accordion.component';\n\nexport const accordionItemComponent = cva(['join-item border-neutral collapse border'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: [],\n\t\t\tarrow: ['collapse-arrow'],\n\t\t\tplus: ['collapse-plus'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'default',\n\t},\n});\n\nexport type AccordionVariantProps = 'default' | 'arrow' | 'plus' | null | undefined;\n\nexport type AccordionItemProps = {\n\tvariant?: AccordionVariantProps;\n};\n\n@Component({\n\tselector: 'st-accordion-item',\n\timports: [TypographyDirective],\n\ttemplateUrl: './accordion-item.component.html',\n})\nexport class AccordionItemComponent {\n\theader = input('');\n\topened = input(false);\n\n\tvariant = input<AccordionVariantProps>();\n\tname: string;\n\ttype: string;\n\n\tprivate readonly accordion = inject(AccordionComponent, { host: true });\n\n\tconstructor() {\n\t\tthis.name = this.accordion.name();\n\t\tthis.type = this.accordion.type() === 'single' ? 'radio' : 'checkbox';\n\t}\n\n\tcomponentClass = computed(() => cn(accordionItemComponent({ variant: this.variant() })));\n}\n","<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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAOa,kBAAkB,CAAA;AAC9B,IAAA,IAAI,GAAG,KAAK,CAAC,WAAW,CAAC;AACzB,IAAA,IAAI,GAAG,KAAK,CAAuB,SAAS,CAAC;uGAFjC,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kBAAkB,8TCP/B,kFAGA,EAAA,CAAA;;2FDIa,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,SAAS;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AAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC9BnC,8WAWA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDgBW,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,SAAA,EAAA,cAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAGjB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBALlC,SAAS;+BACC,mBAAmB,EAAA,OAAA,EACpB,CAAC,mBAAmB,CAAC,EAAA,QAAA,EAAA,8WAAA,EAAA;;;AE3B/B;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-accordion.mjs","sources":["../../../projects/sdk/components/accordion/src/accordion.component.ts","../../../projects/sdk/components/accordion/src/accordion.component.html","../../../projects/sdk/components/accordion/accordion-item/accordion-item.component.ts","../../../projects/sdk/components/accordion/accordion-item/accordion-item.component.html","../../../projects/sdk/components/accordion/sixbell-telco-sdk-components-accordion.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\n\n@Component({\n selector: 'st-accordion',\n imports: [],\n templateUrl: './accordion.component.html'\n})\nexport class AccordionComponent {\n\tname = input('accordion');\n\ttype = input<'default' | 'single'>('default');\n}\n","<div class=\"join join-vertical w-full\">\n\t<ng-content></ng-content>\n</div>\n","import { Component, computed, inject, input } from '@angular/core';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { AccordionComponent } from '../src/accordion.component';\n\nexport const accordionItemComponent = cva(['join-item border-neutral collapse border'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: [],\n\t\t\tarrow: ['collapse-arrow'],\n\t\t\tplus: ['collapse-plus'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'default',\n\t},\n});\n\nexport type AccordionVariantProps = 'default' | 'arrow' | 'plus' | null | undefined;\n\nexport type AccordionItemProps = {\n\tvariant?: AccordionVariantProps;\n};\n\n@Component({\n\tselector: 'st-accordion-item',\n\timports: [TextDirective],\n\ttemplateUrl: './accordion-item.component.html',\n})\nexport class AccordionItemComponent {\n\theader = input('');\n\topened = input(false);\n\n\tvariant = input<AccordionVariantProps>();\n\tname: string;\n\ttype: string;\n\n\tprivate readonly accordion = inject(AccordionComponent, { host: true });\n\n\tconstructor() {\n\t\tthis.name = this.accordion.name();\n\t\tthis.type = this.accordion.type() === 'single' ? 'radio' : 'checkbox';\n\t}\n\n\tcomponentClass = computed(() => cn(accordionItemComponent({ variant: this.variant() })));\n}\n","<div [class]=\"componentClass()\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<div stText=\"7\">\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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAOa,kBAAkB,CAAA;AAC9B,IAAA,IAAI,GAAG,KAAK,CAAC,WAAW,CAAC;AACzB,IAAA,IAAI,GAAG,KAAK,CAAuB,SAAS,CAAC;uGAFjC,kBAAkB,EAAA,IAAA,EAAA,EAAA,E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