@sixbell-telco/sdk 2.0.1 → 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.
- package/CHANGELOG.md +134 -1
- package/README.md +360 -87
- package/_index.css +0 -3
- package/components/accordion/accordion-item/accordion-item.component.d.ts +3 -4
- package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +28 -1
- package/components/audio-player/src/audio-player.component.d.ts +7 -3
- package/components/audio-player/volume-control/volume-control.component.d.ts +28 -1
- package/components/button/src/button.component.d.ts +46 -1
- package/components/card/card-actions/card-actions.component.d.ts +4 -4
- package/components/card/card-body/card-body.component.d.ts +5 -0
- package/components/card/card-context.d.ts +8 -0
- package/components/card/card-footer/card-footer.component.d.ts +7 -0
- package/components/card/card-header/card-header.component.d.ts +5 -0
- package/components/card/card-header-aside/card-header-aside.component.d.ts +5 -0
- package/components/card/card-section/card-section.component.d.ts +5 -0
- package/components/card/card-section-body/card-section-body.component.d.ts +5 -0
- package/components/card/card-section-footer/card-section-footer.component.d.ts +5 -0
- package/components/card/card-section-group/card-section-group.component.d.ts +16 -0
- package/components/card/card-section-header/card-section-header.component.d.ts +5 -0
- package/components/card/card-section-header-aside/card-section-header-aside.component.d.ts +5 -0
- package/components/card/card-subtitle/card-subtitle.component.d.ts +34 -0
- package/components/card/card-title/card-title.component.d.ts +23 -14
- package/components/card/public-api.d.ts +12 -1
- package/components/card/src/card.component.d.ts +5 -1
- package/components/data-table/actions/actions.component.d.ts +67 -0
- package/components/data-table/actions/actions.types.d.ts +38 -0
- package/components/data-table/data-table-empty-actions/data-table-empty-actions.component.d.ts +5 -0
- package/components/data-table/public-api.d.ts +3 -0
- package/components/data-table/sortable-header/sortable-header.component.d.ts +2 -0
- package/components/data-table/src/data-table.component.d.ts +24 -7
- package/components/dialog/src/dialog.component.d.ts +51 -5
- package/{directives/typography → components/divider}/index.d.ts +1 -1
- package/components/divider/public-api.d.ts +1 -0
- package/components/divider/src/divider.component.d.ts +13 -0
- package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +2 -1
- package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +37 -1
- package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +33 -1
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +33 -1
- package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +53 -2
- package/components/dropdown/src/dropdown.component.d.ts +2 -2
- package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +2 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +33 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +33 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +33 -1
- package/components/dropdown-menu/src/directives/dropdown-menu.directive.d.ts +1 -3
- package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts +2 -1
- package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +33 -1
- package/components/dropdown-menu/src/dropdown-menu-sub-content/dropdown-menu-sub-content.component.d.ts +2 -1
- package/components/dual-list/src/dual-list.component.d.ts +3 -2
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +46 -1
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +33 -2
- package/components/forms/checkbox/src/checkbox.component.d.ts +46 -2
- package/components/forms/combobox/src/combobox.component.d.ts +40 -5
- package/components/forms/date-picker/src/date-picker.component.d.ts +14 -1
- package/components/forms/form-error/src/form-error.component.d.ts +8 -1
- package/components/forms/form-group/README.md +114 -0
- package/components/forms/form-group/index.d.ts +5 -0
- package/components/forms/form-group/public-api.d.ts +1 -0
- package/components/forms/form-group/src/form-group.component.d.ts +150 -0
- package/components/forms/form-item/README.md +17 -0
- package/components/forms/form-item/index.d.ts +5 -0
- package/components/forms/form-item/public-api.d.ts +1 -0
- package/components/forms/form-item/src/form-item.component.d.ts +5 -0
- package/components/forms/input/src/input.component.d.ts +32 -10
- package/components/forms/radio/src/radio.component.d.ts +46 -2
- package/components/forms/range/src/range.component.d.ts +38 -1
- package/components/forms/select/src/select.component.d.ts +40 -5
- package/components/forms/switch/src/switch.component.d.ts +46 -2
- package/components/forms/textarea/src/textarea.component.d.ts +49 -4
- package/components/forms/toggle/src/toggle.component.d.ts +46 -1
- package/components/overlay/overlay-content/overlay-content.component.d.ts +2 -1
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +37 -5
- package/components/overlay/src/overlay.component.d.ts +4 -5
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +46 -1
- package/components/paginator/src/paginator.component.d.ts +7 -1
- package/components/tab/directives/tab-content/tab-content.directive.d.ts +3 -4
- package/components/table/public-api.d.ts +2 -0
- package/components/table/src/table.component.d.ts +72 -7
- package/components/table/table-action/table-action.component.d.ts +2 -6
- package/components/table/table-actions/table-actions.component.d.ts +52 -6
- package/components/table/table-actions/table-actions.types.d.ts +28 -0
- package/components/table/table-empty-actions/table-empty-actions.component.d.ts +5 -0
- package/components/table/table-header-checkbox/table-header-checkbox.component.d.ts +5 -11
- package/components/table/table-row-checkbox/table-row-checkbox.component.d.ts +5 -11
- package/components/{toast → text}/index.d.ts +1 -1
- package/components/text/public-api.d.ts +2 -0
- package/components/text/src/text.component.d.ts +38 -0
- package/components/tooltip/src/tooltip.component.d.ts +10 -1
- package/components/wizard/wizard-marker/wizard-marker.component.d.ts +2 -3
- package/directives/auto-focus/src/auto-focus.directive.d.ts +5 -9
- package/directives/click-outside/src/click-outside.directive.d.ts +1 -3
- package/directives/only-numbers/public-api.d.ts +0 -5
- package/directives/only-numbers/src/only-numbers.directive.d.ts +1 -14
- package/directives/text/index.d.ts +5 -0
- package/directives/text/public-api.d.ts +1 -0
- package/directives/text/src/text.directive.d.ts +87 -0
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +9 -12
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +130 -50
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +10 -11
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +79 -5
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +414 -47
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +236 -59
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +87 -17
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs +44 -0
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +166 -13
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +69 -21
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +283 -16
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +8 -6
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +148 -9
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +69 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +96 -19
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +32 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +12 -5
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs +159 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +20 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +48 -14
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +69 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +57 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +89 -18
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +80 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +112 -11
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +71 -5
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +94 -42
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +113 -24
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +5 -9
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +565 -89
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-text.mjs +308 -0
- package/fesm2022/sixbell-telco-sdk-components-text.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +15 -3
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +15 -15
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +16 -19
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +7 -10
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +11 -31
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs +160 -0
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs +490 -0
- package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +7 -12
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +55 -12
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
- package/package.json +90 -74
- package/utils/formatting/README.md +100 -0
- package/utils/formatting/index.d.ts +5 -0
- package/utils/formatting/public-api.d.ts +9 -0
- package/utils/formatting/src/constants/constants.d.ts +18 -0
- package/utils/formatting/src/models/formatting.d.ts +33 -0
- package/utils/formatting/src/pipes/currency/st-currency.pipe.d.ts +9 -0
- package/utils/formatting/src/pipes/date/st-date.pipe.d.ts +9 -0
- package/utils/formatting/src/pipes/decimal/st-decimal.pipe.d.ts +9 -0
- package/utils/formatting/src/pipes/percent/st-percent.pipe.d.ts +9 -0
- package/utils/formatting/src/service/formatting.service.d.ts +13 -0
- package/utils/formatting/src/utils/date-format/date-format.d.ts +9 -0
- package/utils/formatting/src/utils/number-format/number-format.d.ts +12 -0
- package/utils/logger/README.md +8 -19
- package/utils/runtime-config/README.md +1 -1
- package/utils/theme/README.md +21 -2
- package/utils/theme/src/theme-dom/theme-dom.service.d.ts +2 -3
- package/utils/translation/README.md +40 -10
- package/utils/translation/public-api.d.ts +1 -1
- package/utils/translation/src/constants.d.ts +9 -2
- package/utils/translation/src/models/translation.d.ts +11 -0
- package/utils/translation/src/providers/translation.provider.d.ts +1 -1
- package/utils/translation/src/translation-dom/translation-dom.service.d.ts +2 -3
- package/utils/translation/src/translation.service.d.ts +6 -1
- package/assets/styles/toast.css +0 -63
- package/components/card/card-content/card-content.component.d.ts +0 -30
- package/components/toast/public-api.d.ts +0 -12
- package/components/toast/services/toast.service.d.ts +0 -35
- package/components/toast/toast-message/toast-message.component.d.ts +0 -29
- package/components/toast/toasts-container/toasts-container.component.d.ts +0 -21
- package/directives/typography/public-api.d.ts +0 -1
- package/directives/typography/src/typography.directive.d.ts +0 -68
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +0 -185
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +0 -1
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +0 -126
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +0 -1
|
@@ -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
|
-
*
|
|
7
|
-
*
|
|
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
|
-
* <
|
|
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';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TableEmptyActionsComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableEmptyActionsComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableEmptyActionsComponent, "st-table-empty-actions", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';
|
|
2
2
|
import { TableComponent } from '../src/table.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -17,19 +17,12 @@ import * as i0 from "@angular/core";
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
export declare class TableHeaderCheckboxComponent {
|
|
20
|
-
private table;
|
|
21
20
|
/**
|
|
22
21
|
* Defines the variant styling of the checkbox.
|
|
23
22
|
*
|
|
24
23
|
* @defaultValue 'primary'
|
|
25
24
|
*/
|
|
26
25
|
checkboxVariant: import("@angular/core").InputSignal<CheckboxVariantProps>;
|
|
27
|
-
/**
|
|
28
|
-
* Defines the size of the checkbox.
|
|
29
|
-
*
|
|
30
|
-
* @defaultValue 'md'
|
|
31
|
-
*/
|
|
32
|
-
checkboxSize: import("@angular/core").InputSignal<CheckboxSizeProps>;
|
|
33
26
|
/**
|
|
34
27
|
* Signal that tracks the checked state of the header checkbox.
|
|
35
28
|
*
|
|
@@ -41,7 +34,8 @@ export declare class TableHeaderCheckboxComponent {
|
|
|
41
34
|
*
|
|
42
35
|
* @param table - Reference to the parent {@link TableComponent} to access table-level operations.
|
|
43
36
|
*/
|
|
44
|
-
|
|
37
|
+
readonly table: TableComponent;
|
|
38
|
+
readonly checkboxSize: import("@angular/core").Signal<"xs" | "sm" | "md" | "lg">;
|
|
45
39
|
/**
|
|
46
40
|
* Handles the event when the header checkbox is toggled.
|
|
47
41
|
*
|
|
@@ -50,6 +44,6 @@ export declare class TableHeaderCheckboxComponent {
|
|
|
50
44
|
* @param value - The new checked state (true to select all rows, false to deselect all).
|
|
51
45
|
*/
|
|
52
46
|
handleSelectAll(value: boolean): void;
|
|
53
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderCheckboxComponent,
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderCheckboxComponent, "tr[header-checkbox]", never, { "checkboxVariant": { "alias": "checkboxVariant"; "required": false; "isSignal": true; };
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderCheckboxComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderCheckboxComponent, "tr[header-checkbox]", never, { "checkboxVariant": { "alias": "checkboxVariant"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
55
49
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';
|
|
2
2
|
import { TableComponent } from '../src/table.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -14,19 +14,12 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
16
|
export declare class TableRowCheckboxComponent {
|
|
17
|
-
private table;
|
|
18
17
|
/**
|
|
19
18
|
* Defines the variant styling of the checkbox.
|
|
20
19
|
*
|
|
21
20
|
* @defaultValue 'primary'
|
|
22
21
|
*/
|
|
23
22
|
checkboxVariant: import("@angular/core").InputSignal<CheckboxVariantProps>;
|
|
24
|
-
/**
|
|
25
|
-
* Defines the size of the checkbox.
|
|
26
|
-
*
|
|
27
|
-
* @defaultValue 'md'
|
|
28
|
-
*/
|
|
29
|
-
checkboxSize: import("@angular/core").InputSignal<CheckboxSizeProps>;
|
|
30
23
|
/**
|
|
31
24
|
* Unique identifier for the table row.
|
|
32
25
|
*
|
|
@@ -45,7 +38,8 @@ export declare class TableRowCheckboxComponent {
|
|
|
45
38
|
* @param table - Reference to the parent {@link TableComponent} to access
|
|
46
39
|
* table-level operations for row selection.
|
|
47
40
|
*/
|
|
48
|
-
|
|
41
|
+
readonly table: TableComponent;
|
|
42
|
+
readonly checkboxSize: import("@angular/core").Signal<"xs" | "sm" | "md" | "lg">;
|
|
49
43
|
/**
|
|
50
44
|
* Handles the selection event of the row checkbox.
|
|
51
45
|
*
|
|
@@ -55,6 +49,6 @@ export declare class TableRowCheckboxComponent {
|
|
|
55
49
|
* @param value - The new checked state (true for selected, false for deselected).
|
|
56
50
|
*/
|
|
57
51
|
handleSelect(value: boolean): void;
|
|
58
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowCheckboxComponent,
|
|
59
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableRowCheckboxComponent, "tr[row-checkbox]", never, { "checkboxVariant": { "alias": "checkboxVariant"; "required": false; "isSignal": true; }; "
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowCheckboxComponent, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableRowCheckboxComponent, "tr[row-checkbox]", never, { "checkboxVariant": { "alias": "checkboxVariant"; "required": false; "isSignal": true; }; "identifier": { "alias": "identifier"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
60
54
|
}
|
|
@@ -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
|
+
}
|
|
@@ -60,6 +60,15 @@ export declare class TooltipComponent {
|
|
|
60
60
|
* Text label for simple tooltip content
|
|
61
61
|
*/
|
|
62
62
|
label: import("@angular/core").InputSignal<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Optional icon name to render inside the trigger (mirrors Button API)
|
|
65
|
+
*/
|
|
66
|
+
icon: import("@angular/core").InputSignal<string | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* Icon position relative to content
|
|
69
|
+
* @defaultValue 'left'
|
|
70
|
+
*/
|
|
71
|
+
iconPosition: import("@angular/core").InputSignal<"right" | "left" | null | undefined>;
|
|
63
72
|
/**
|
|
64
73
|
* @internal
|
|
65
74
|
* Reference to custom tooltip content component
|
|
@@ -76,5 +85,5 @@ export declare class TooltipComponent {
|
|
|
76
85
|
*/
|
|
77
86
|
componentClass: import("@angular/core").Signal<string>;
|
|
78
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
79
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "st-tooltip", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, ["customContent"], ["*", "st-tooltip-content"], true, never>;
|
|
88
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "st-tooltip", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; }, {}, ["customContent"], ["*", "st-tooltip-content"], true, never>;
|
|
80
89
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
2
|
import { WizardService, WizardStepStatus } from '../services/wizard.service';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
@@ -23,7 +22,7 @@ import * as i0 from "@angular/core";
|
|
|
23
22
|
* <st-wizard-marker [status]="'in progress'"></st-wizard-marker>
|
|
24
23
|
* ```
|
|
25
24
|
*/
|
|
26
|
-
export declare class WizardMarkerComponent
|
|
25
|
+
export declare class WizardMarkerComponent {
|
|
27
26
|
/** @internal Translation service instance */
|
|
28
27
|
translateService: TranslateService;
|
|
29
28
|
/** @internal Wizard state service */
|
|
@@ -57,7 +56,7 @@ export declare class WizardMarkerComponent implements OnInit {
|
|
|
57
56
|
* Initializes component translations
|
|
58
57
|
* @remarks Loads translated status labels using NGX-Translate
|
|
59
58
|
*/
|
|
60
|
-
|
|
59
|
+
private readonly translationEffect;
|
|
61
60
|
/**
|
|
62
61
|
* Gets the appropriate translated status message
|
|
63
62
|
* @returns {string} Translated status label
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
/**
|
|
4
3
|
* Directive that automatically focuses an element when it becomes visible.
|
|
@@ -37,8 +36,7 @@ import * as i0 from "@angular/core";
|
|
|
37
36
|
*
|
|
38
37
|
* @publicApi
|
|
39
38
|
*/
|
|
40
|
-
export declare class AutofocusDirective
|
|
41
|
-
private readonly elementRef;
|
|
39
|
+
export declare class AutofocusDirective {
|
|
42
40
|
/**
|
|
43
41
|
* Controls whether autofocus should be applied to the element.
|
|
44
42
|
* Set to true to enable autofocus.
|
|
@@ -48,21 +46,19 @@ export declare class AutofocusDirective implements AfterViewInit, OnDestroy {
|
|
|
48
46
|
private readonly isVisible;
|
|
49
47
|
/** Keeps a reference so the afterRenderEffect can be destroyed with the directive */
|
|
50
48
|
private readonly focusAfterRenderRef;
|
|
49
|
+
private readonly destroyRef;
|
|
51
50
|
/** Collection of observers for cleanup */
|
|
52
51
|
private observers;
|
|
53
52
|
/** Interval used for polling visibility */
|
|
54
53
|
private pollingInterval;
|
|
55
54
|
/** Flag to prevent concurrent visibility checks */
|
|
56
55
|
private checkingVisibility;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
* Sets up visibility observers after the view is initialized
|
|
60
|
-
*/
|
|
61
|
-
ngAfterViewInit(): void;
|
|
56
|
+
private readonly elementRef;
|
|
57
|
+
constructor();
|
|
62
58
|
/**
|
|
63
59
|
* Cleans up all observers and timers to prevent memory leaks
|
|
64
60
|
*/
|
|
65
|
-
|
|
61
|
+
private cleanup;
|
|
66
62
|
/**
|
|
67
63
|
* Sets up the IntersectionObserver to detect when the element enters or leaves the viewport
|
|
68
64
|
* @private
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
/**
|
|
4
3
|
* Directive that detects clicks outside of an element and emits an event when they occur.
|
|
@@ -32,7 +31,6 @@ import * as i0 from "@angular/core";
|
|
|
32
31
|
* @publicApi
|
|
33
32
|
*/
|
|
34
33
|
export declare class ClickOutsideDirective {
|
|
35
|
-
private elementRef;
|
|
36
34
|
/**
|
|
37
35
|
* Event emitted when a click occurs outside the element.
|
|
38
36
|
*
|
|
@@ -42,7 +40,7 @@ export declare class ClickOutsideDirective {
|
|
|
42
40
|
* ```
|
|
43
41
|
*/
|
|
44
42
|
outsideClick: import("@angular/core").OutputEmitterRef<void>;
|
|
45
|
-
|
|
43
|
+
private readonly elementRef;
|
|
46
44
|
/**
|
|
47
45
|
* Listens for clicks on the document and determines if they occurred
|
|
48
46
|
* outside the element this directive is attached to.
|
|
@@ -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,20 +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
|
-
constructor();
|
|
27
20
|
blockPaste(event: ClipboardEvent): boolean;
|
|
28
21
|
onKeyPress(event: KeyboardEvent): boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Determines if the numeric-only restriction is enabled.
|
|
31
|
-
* Checks both the new and deprecated inputs for backward compatibility.
|
|
32
|
-
* @private
|
|
33
|
-
*/
|
|
34
|
-
private getEnabled;
|
|
35
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<OnlyNumbersDirective, never>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<OnlyNumbersDirective, "[stOnlyNumbers]
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OnlyNumbersDirective, "[stOnlyNumbers]", never, { "stOnlyNumbers": { "alias": "stOnlyNumbers"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
37
24
|
}
|
|
@@ -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
|
-
import { input, Component,
|
|
3
|
-
import {
|
|
2
|
+
import { input, Component, inject, computed } from '@angular/core';
|
|
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
|
|
|
@@ -15,7 +15,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
15
15
|
args: [{ selector: 'st-accordion', imports: [], template: "<div class=\"join join-vertical w-full\">\n\t<ng-content></ng-content>\n</div>\n" }]
|
|
16
16
|
}] });
|
|
17
17
|
|
|
18
|
-
const accordionItemComponent = cva(['
|
|
18
|
+
const accordionItemComponent = cva(['join-item border-neutral collapse border'], {
|
|
19
19
|
variants: {
|
|
20
20
|
variant: {
|
|
21
21
|
default: [],
|
|
@@ -28,27 +28,24 @@ const accordionItemComponent = cva(['collapse join-item border border-neutral'],
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
class AccordionItemComponent {
|
|
31
|
-
accordion;
|
|
32
31
|
header = input('');
|
|
33
32
|
opened = input(false);
|
|
34
33
|
variant = input();
|
|
35
34
|
name;
|
|
36
35
|
type;
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
accordion = inject(AccordionComponent, { host: true });
|
|
37
|
+
constructor() {
|
|
39
38
|
this.name = this.accordion.name();
|
|
40
39
|
this.type = this.accordion.type() === 'single' ? 'radio' : 'checkbox';
|
|
41
40
|
}
|
|
42
41
|
componentClass = computed(() => cn(accordionItemComponent({ variant: this.variant() })));
|
|
43
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AccordionItemComponent, deps: [
|
|
44
|
-
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
|
|
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 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"] }] });
|
|
45
44
|
}
|
|
46
45
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AccordionItemComponent, decorators: [{
|
|
47
46
|
type: Component,
|
|
48
|
-
args: [{ selector: 'st-accordion-item', imports: [
|
|
49
|
-
}], ctorParameters: () => [
|
|
50
|
-
type: Host
|
|
51
|
-
}] }] });
|
|
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
|
+
}], ctorParameters: () => [] });
|
|
52
49
|
|
|
53
50
|
/**
|
|
54
51
|
* Generated bundle index. Do not edit.
|
|
@@ -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,
|
|
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":"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"}
|