@sixbell-telco/sdk 4.2.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +108 -1
- package/README.md +98 -66
- package/_index.css +2 -1586
- package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -1
- package/components/alert/README.md +27 -0
- package/components/alert/index.d.ts +5 -0
- package/components/alert/public-api.d.ts +1 -0
- package/components/alert/src/alert.component.d.ts +85 -0
- package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +1 -1
- package/components/audio-player/button-play/button-play.component.d.ts +7 -7
- package/components/audio-player/src/audio-player.component.d.ts +2 -2
- package/components/audio-player/volume-control/volume-control.component.d.ts +1 -1
- package/components/avatar/README.md +1 -0
- package/components/avatar/src/avatar.component.d.ts +2 -2
- package/components/badge/src/badge.component.d.ts +4 -4
- package/components/button/README.md +5 -4
- package/components/button/src/button.component.d.ts +38 -16
- package/components/card/README.md +2 -0
- package/components/card/card-footer/card-footer.component.d.ts +37 -2
- package/components/card/card-section-group/card-section-group.component.d.ts +1 -1
- package/components/card/src/card.component.d.ts +6 -6
- package/components/countdown/src/countdown.component.d.ts +4 -4
- package/components/data-table/README.md +26 -0
- package/components/data-table/expandable/expandable.component.d.ts +4 -4
- package/components/data-table/sortable-header/sortable-header.component.d.ts +1 -1
- package/components/data-table/src/data-table.component.d.ts +15 -8
- package/components/data-table/sub-component-toggle/sub-component-toggle.component.d.ts +1 -1
- package/components/description-list/README.md +27 -0
- package/components/description-list/index.d.ts +5 -0
- package/components/description-list/public-api.d.ts +1 -0
- package/components/description-list/src/description-list.component.d.ts +90 -0
- package/components/dialog/README.md +10 -6
- package/components/dialog/dialog-actions/dialog-actions.component.d.ts +4 -0
- package/components/dialog/src/dialog.component.d.ts +27 -6
- package/components/dialog/src/fullscreen-block-scroll-strategy.d.ts +31 -0
- package/components/divider/src/divider.component.d.ts +1 -1
- package/components/dropdown/README.md +2 -2
- package/components/dropdown/dropdown-chevron/dropdown-chevron.component.d.ts +1 -1
- package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +1 -1
- package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +4 -4
- package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +5 -5
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +5 -5
- package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +11 -14
- package/components/dropdown-menu/README.md +2 -2
- package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +6 -2
- package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +3 -3
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +4 -4
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +4 -4
- package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +3 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +3 -1
- package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +2 -1
- package/components/dropdown-menu/dropdown-menu-chevron/dropdown-menu-chevron.component.d.ts +1 -1
- package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts +2 -0
- package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +3 -3
- package/components/dropdown-menu/src/dropdown-menu-sub-content/dropdown-menu-sub-content.component.d.ts +2 -0
- package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +2 -1
- package/components/dropdown-menu/src/dropdown-menu-trigger/dropdown-menu-trigger.component.d.ts +1 -0
- package/components/empty-state/README.md +40 -0
- package/components/empty-state/index.d.ts +5 -0
- package/components/empty-state/public-api.d.ts +1 -0
- package/components/empty-state/src/empty-state.component.d.ts +73 -0
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +4 -4
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +2 -2
- package/components/forms/checkbox/src/checkbox.component.d.ts +1 -1
- package/components/forms/combobox/README.md +2 -1
- package/components/forms/combobox/src/combobox.component.d.ts +31 -18
- package/components/forms/date-picker/src/date-picker.component.d.ts +16 -9
- package/components/forms/form-hint/README.md +29 -0
- package/components/forms/form-hint/index.d.ts +5 -0
- package/components/forms/form-hint/public-api.d.ts +1 -0
- package/components/forms/form-hint/src/form-hint.component.d.ts +38 -0
- package/components/forms/form-item/src/form-item.component.d.ts +45 -1
- package/components/forms/input/src/input.component.d.ts +15 -8
- package/components/forms/radio/src/radio.component.d.ts +1 -1
- package/components/forms/range/src/range.component.d.ts +18 -4
- package/components/forms/select/README.md +2 -1
- package/components/forms/select/src/select.component.d.ts +30 -16
- package/components/forms/switch/src/switch.component.d.ts +1 -1
- package/components/forms/textarea/src/textarea.component.d.ts +12 -5
- package/components/forms/toggle/src/toggle.component.d.ts +1 -1
- package/components/notification/src/notification.component.d.ts +1 -1
- package/components/overlay/README.md +7 -2
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +1 -1
- package/components/overlay/src/overlay.component.d.ts +10 -9
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +3 -3
- package/components/progress/src/progress.component.d.ts +1 -1
- package/components/segmented-button/README.md +57 -0
- package/components/segmented-button/index.d.ts +5 -0
- package/components/segmented-button/public-api.d.ts +1 -0
- package/components/segmented-button/src/segmented-button.component.d.ts +110 -0
- package/components/sonner/toaster/src/toaster.component.d.ts +3 -3
- package/components/tab/src/tab.component.d.ts +2 -2
- package/components/table/README.md +51 -3
- package/components/table/public-api.d.ts +1 -0
- package/components/table/src/table.component.d.ts +20 -13
- package/components/table/table-action/table-action.component.d.ts +14 -3
- package/components/table/table-actions/table-actions.component.d.ts +12 -1
- package/components/table/tokens/README.md +7 -0
- package/components/table/tokens/index.d.ts +5 -0
- package/components/table/tokens/public-api.d.ts +1 -0
- package/components/table/tokens/table-empty-state.d.ts +6 -0
- package/components/tooltip/README.md +25 -7
- package/components/tooltip/src/tooltip.component.d.ts +44 -12
- package/components/tree/README.md +73 -0
- package/components/tree/index.d.ts +5 -0
- package/components/tree/public-api.d.ts +1 -0
- package/components/tree/src/tree.component.d.ts +180 -0
- package/components/wizard/README.md +9 -0
- package/components/wizard/wizard-content/wizard-content.component.d.ts +1 -1
- package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +15 -6
- package/directives/auto-focus/src/auto-focus.directive.d.ts +1 -1
- package/directives/only-numbers/src/only-numbers.directive.d.ts +1 -1
- package/directives/truncate/README.md +49 -0
- package/directives/truncate/index.d.ts +5 -0
- package/directives/truncate/public-api.d.ts +1 -0
- package/directives/truncate/src/truncate-popover.component.d.ts +11 -0
- package/directives/truncate/src/truncate.directive.d.ts +96 -0
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs +152 -0
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +15 -15
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +53 -19
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +61 -14
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +34 -33
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-description-list.mjs +200 -0
- package/fesm2022/sixbell-telco-sdk-components-description-list.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +128 -17
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +33 -24
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +7 -3
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +25 -14
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +43 -72
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-empty-state.mjs +131 -0
- package/fesm2022/sixbell-telco-sdk-components-empty-state.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +9 -9
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +104 -72
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +23 -12
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-hint.mjs +81 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-hint.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +45 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +27 -13
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +29 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +84 -56
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +27 -22
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +41 -79
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs +329 -0
- package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table-tokens.mjs +14 -0
- package/fesm2022/sixbell-telco-sdk-components-table-tokens.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +63 -32
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +187 -75
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs +478 -0
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +18 -9
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs +339 -0
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-layouts.mjs +69 -41
- package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs +15 -2
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs +87 -2
- package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-popover-motion.mjs +186 -0
- package/fesm2022/sixbell-telco-sdk-utils-popover-motion.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +234 -4
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-translation-testing.mjs +203 -0
- package/fesm2022/sixbell-telco-sdk-utils-translation-testing.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +129 -14
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-unsaved-changes.mjs +150 -0
- package/fesm2022/sixbell-telco-sdk-utils-unsaved-changes.mjs.map +1 -0
- package/i18n/sdk/en.json +224 -0
- package/i18n/sdk/es.json +224 -0
- package/i18n/sdk/pt.json +224 -0
- package/layouts/README.md +18 -11
- package/layouts/public-api.d.ts +1 -1
- package/layouts/src/app-layout/app-layout.component.d.ts +11 -8
- package/layouts/src/layout.config.d.ts +1 -1
- package/layouts/src/menu/menu-active.d.ts +2 -1
- package/layouts/src/menu/menu-url.d.ts +2 -0
- package/layouts/src/navbar/navbar.component.d.ts +5 -5
- package/layouts/src/page-banner/page-banner.component.d.ts +19 -2
- package/layouts/src/side-menu/side-menu.component.d.ts +2 -2
- package/layouts/src/user-menu/user-menu.component.d.ts +5 -5
- package/package.json +64 -20
- package/src/_index.css +1701 -0
- package/utils/mfe/README.md +1 -0
- package/utils/mfe/src/hoist-property-rules.d.ts +13 -0
- package/utils/mfe/src/mfe-shadow-shell.component.d.ts +3 -0
- package/utils/popover-motion/README.md +38 -0
- package/utils/popover-motion/index.d.ts +5 -0
- package/utils/popover-motion/public-api.d.ts +2 -0
- package/utils/popover-motion/src/popover-menu-motion.d.ts +37 -0
- package/utils/popover-motion/src/popover-motion.d.ts +31 -0
- package/utils/theme/README.md +94 -1
- package/utils/theme/public-api.d.ts +2 -1
- package/utils/theme/src/models/theme.d.ts +32 -0
- package/utils/theme/src/overlay/theme-overlay.d.ts +33 -0
- package/utils/theme/src/providers/theme.provider.types.d.ts +7 -0
- package/utils/translation/README.md +63 -0
- package/utils/translation/src/translation.service.d.ts +24 -0
- package/utils/translation/testing/index.d.ts +5 -0
- package/utils/translation/testing/public-api.d.ts +2 -0
- package/utils/translation/testing/src/translation-testing.d.ts +96 -0
- package/utils/unsaved-changes/README.md +33 -0
- package/utils/unsaved-changes/index.d.ts +5 -0
- package/utils/unsaved-changes/public-api.d.ts +1 -0
- package/utils/unsaved-changes/src/unsaved-changes-dialog.component.d.ts +24 -0
- package/utils/unsaved-changes/src/unsaved-changes.d.ts +50 -0
|
@@ -54,7 +54,7 @@ export declare class DataTableExpandableHeaderCellComponent<T extends RowData> {
|
|
|
54
54
|
/**
|
|
55
55
|
* Whether this column can be sorted
|
|
56
56
|
*/
|
|
57
|
-
readonly canSort: import("@angular/core").
|
|
57
|
+
readonly canSort: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
58
58
|
/**
|
|
59
59
|
* Current sort state of the column
|
|
60
60
|
*/
|
|
@@ -67,7 +67,7 @@ export declare class DataTableExpandableHeaderCellComponent<T extends RowData> {
|
|
|
67
67
|
* Set `aria-sort` on the closest column header while the column is sorted
|
|
68
68
|
* @defaultValue true
|
|
69
69
|
*/
|
|
70
|
-
readonly syncHeaderAriaSort: import("@angular/core").
|
|
70
|
+
readonly syncHeaderAriaSort: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
71
71
|
constructor();
|
|
72
72
|
/**
|
|
73
73
|
* Get the table instance from context
|
|
@@ -119,11 +119,11 @@ export declare class DataTableSubToggleCellComponent {
|
|
|
119
119
|
/**
|
|
120
120
|
* Whether the sub-component is currently expanded
|
|
121
121
|
*/
|
|
122
|
-
readonly isExpanded: import("@angular/core").
|
|
122
|
+
readonly isExpanded: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
123
123
|
/**
|
|
124
124
|
* Whether this row can toggle a sub-component
|
|
125
125
|
*/
|
|
126
|
-
readonly canToggleSubComponent: import("@angular/core").
|
|
126
|
+
readonly canToggleSubComponent: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
127
127
|
/**
|
|
128
128
|
* Event emitted when toggle is clicked
|
|
129
129
|
*/
|
|
@@ -45,7 +45,7 @@ export declare class DataTableSortableHeaderComponent {
|
|
|
45
45
|
* Set `aria-sort` on the closest column header while the column is sorted
|
|
46
46
|
* @defaultValue true
|
|
47
47
|
*/
|
|
48
|
-
readonly syncHeaderAriaSort: import("@angular/core").
|
|
48
|
+
readonly syncHeaderAriaSort: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
49
49
|
constructor();
|
|
50
50
|
/** @internal */
|
|
51
51
|
readonly iconDefaultSort = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z\"></path></svg>";
|
|
@@ -75,7 +75,7 @@ export declare class DataTableContainerComponent {
|
|
|
75
75
|
* The empty states are not shown while loading.
|
|
76
76
|
* @defaultValue false
|
|
77
77
|
*/
|
|
78
|
-
loading: import("@angular/core").
|
|
78
|
+
loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
79
79
|
/**
|
|
80
80
|
* Number of skeleton rows shown while loading. Defaults to the page size (`pagination.itemsPerPage`).
|
|
81
81
|
* @defaultValue null
|
|
@@ -86,7 +86,7 @@ export declare class DataTableContainerComponent {
|
|
|
86
86
|
* layered over each cell's own background, so zebra rows and pinned first-column cells follow it
|
|
87
87
|
* @defaultValue true
|
|
88
88
|
*/
|
|
89
|
-
rowHover: import("@angular/core").
|
|
89
|
+
rowHover: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
90
90
|
private readonly skeleton;
|
|
91
91
|
/** @internal */
|
|
92
92
|
readonly skeletonRows: import("@angular/core").Signal<number[]>;
|
|
@@ -98,26 +98,32 @@ export declare class DataTableContainerComponent {
|
|
|
98
98
|
readonly showNoData: import("@angular/core").Signal<boolean>;
|
|
99
99
|
/** @internal */
|
|
100
100
|
readonly showNoResults: import("@angular/core").Signal<boolean>;
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
* A projected `st-empty-state` replaces the built-in "no data" and "no results" blocks.
|
|
104
|
+
* Only a direct child counts, the same nodes `<ng-content select="st-empty-state">` projects.
|
|
105
|
+
*/
|
|
106
|
+
readonly customEmptyState: import("@angular/core").Signal<unknown>;
|
|
101
107
|
/**
|
|
102
108
|
* Enable sticky header row
|
|
103
109
|
* @defaultValue false
|
|
104
110
|
*/
|
|
105
|
-
pinRows: import("@angular/core").
|
|
111
|
+
pinRows: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
106
112
|
/**
|
|
107
113
|
* Enable sticky first column
|
|
108
114
|
* @defaultValue false
|
|
109
115
|
*/
|
|
110
|
-
pinColumns: import("@angular/core").
|
|
116
|
+
pinColumns: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
111
117
|
/**
|
|
112
118
|
* Apply zebra-striping to rows
|
|
113
119
|
* @defaultValue false
|
|
114
120
|
*/
|
|
115
|
-
zebra: import("@angular/core").
|
|
121
|
+
zebra: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
116
122
|
/**
|
|
117
123
|
* Show row dividers (borders) between rows
|
|
118
124
|
* @defaultValue false
|
|
119
125
|
*/
|
|
120
|
-
bordered: import("@angular/core").
|
|
126
|
+
bordered: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
121
127
|
/**
|
|
122
128
|
* Pagination control display variant
|
|
123
129
|
* @defaultValue 'default'
|
|
@@ -143,9 +149,10 @@ export declare class DataTableContainerComponent {
|
|
|
143
149
|
/** Event emitted when page size changes */
|
|
144
150
|
pageSizeChanged: import("@angular/core").OutputEmitterRef<number>;
|
|
145
151
|
readonly ENTRIES: readonly [5, 10, 20, 50, 100];
|
|
152
|
+
private readonly translateLabel;
|
|
146
153
|
readonly entriesPerPageOptions: import("@angular/core").Signal<{
|
|
147
154
|
value: 10 | 5 | 20 | 50 | 100;
|
|
148
|
-
text:
|
|
155
|
+
text: string;
|
|
149
156
|
}[]>;
|
|
150
157
|
/**
|
|
151
158
|
* Computed total number of pages for the internal paginator.
|
|
@@ -212,5 +219,5 @@ export declare class DataTableContainerComponent {
|
|
|
212
219
|
*/
|
|
213
220
|
readonly containerClass: import("@angular/core").Signal<string>;
|
|
214
221
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableContainerComponent, never>;
|
|
215
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableContainerComponent, "st-data-table", never, { "noDataIcon": { "alias": "noDataIcon"; "required": false; "isSignal": true; }; "noResultsIcon": { "alias": "noResultsIcon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingRows": { "alias": "loadingRows"; "required": false; "isSignal": true; }; "rowHover": { "alias": "rowHover"; "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; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "paginatorType": { "alias": "paginatorType"; "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; }; "hasActiveFiltersCallback": { "alias": "hasActiveFiltersCallback"; "required": false; "isSignal": true; }; }, { "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; },
|
|
222
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableContainerComponent, "st-data-table", never, { "noDataIcon": { "alias": "noDataIcon"; "required": false; "isSignal": true; }; "noResultsIcon": { "alias": "noResultsIcon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingRows": { "alias": "loadingRows"; "required": false; "isSignal": true; }; "rowHover": { "alias": "rowHover"; "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; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "paginatorType": { "alias": "paginatorType"; "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; }; "hasActiveFiltersCallback": { "alias": "hasActiveFiltersCallback"; "required": false; "isSignal": true; }; }, { "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; }, ["customEmptyState"], ["st-empty-state", "st-data-table-empty-actions", "caption, colgroup", "thead", "*"], true, never>;
|
|
216
223
|
}
|
|
@@ -17,7 +17,7 @@ export declare class DataTableSubComponentToggleCellComponent<T extends RowData>
|
|
|
17
17
|
/** Emits the row id when the toggle is pressed */
|
|
18
18
|
readonly toggled: import("@angular/core").OutputEmitterRef<string>;
|
|
19
19
|
/** Whether this row has a sub-component to show */
|
|
20
|
-
readonly canToggleSubComponent: import("@angular/core").
|
|
20
|
+
readonly canToggleSubComponent: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
21
21
|
readonly iconChevronDown = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6l-6-6l1.41-1.41z\"></path></svg>";
|
|
22
22
|
readonly iconInfo = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z\"></path></svg>";
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableSubComponentToggleCellComponent<any>, never>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Description List
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/description-list`
|
|
4
|
+
|
|
5
|
+
Selectors: `st-description-list`, `div[st-description-item]`
|
|
6
|
+
|
|
7
|
+
Read-only key/value grid for detail pages and view mode, rendered as a semantic `<dl>` with `<dt>` / `<dd>` pairs.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-description-list>
|
|
13
|
+
<div st-description-item label="Code" [value]="table.code" [copyable]="true"></div>
|
|
14
|
+
<div st-description-item label="Type">
|
|
15
|
+
<st-badge size="sm" variant="primary" [soft]="true">{{ table.type }}</st-badge>
|
|
16
|
+
</div>
|
|
17
|
+
</st-description-list>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Notes
|
|
21
|
+
|
|
22
|
+
- `st-description-list` inputs: `columns` (`1` | `2` | `3`, default `2`; one column below `md`, `3` reaches three columns at `lg`), `divided` (default `true`), `class`.
|
|
23
|
+
- `div[st-description-item]` inputs: `label` (required), `value` (when `undefined`, projected content is used), `placeholder` (default `—`), `copyable`, `divided` (row override).
|
|
24
|
+
- An empty value shows `—` and is announced as "No value" (`sdk.descriptionList.empty`). The copy button is named "Copy <label>" (`sdk.descriptionList.copy`) and announces `sdk.descriptionList.copied`.
|
|
25
|
+
- Items are `<div>` elements so the DOM stays `dl > div > dt + dd`.
|
|
26
|
+
- Long values wrap. One-line truncation with a full-text popover will come from the `stTruncate` directive in a follow-up.
|
|
27
|
+
- Replaces the `app-detail-field` copies in consumer apps.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/description-list.component';
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* Responsive grid: one column below `md`, then the requested count.
|
|
5
|
+
*/
|
|
6
|
+
export declare const descriptionListComponent: (props?: ({
|
|
7
|
+
columns?: 2 | 1 | 3 | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
/** Column count from `md` up (`3` reaches three columns at `lg`). Mobile is always one column. */
|
|
10
|
+
export type DescriptionListColumnsProps = 1 | 2 | 3 | null | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Read-only key/value grid rendered as a semantic `<dl>`. Each `div[st-description-item]` is a
|
|
13
|
+
* `<div>` holding one `<dt>` / `<dd>` pair.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```html
|
|
17
|
+
* <st-description-list>
|
|
18
|
+
* <div st-description-item label="Code" [value]="table.code" [copyable]="true"></div>
|
|
19
|
+
* <div st-description-item label="Owner">
|
|
20
|
+
* <st-badge size="sm" variant="primary" [soft]="true">{{ table.owner }}</st-badge>
|
|
21
|
+
* </div>
|
|
22
|
+
* </st-description-list>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare class DescriptionListComponent {
|
|
26
|
+
/**
|
|
27
|
+
* Columns from `md` up; one column on mobile
|
|
28
|
+
* @defaultValue 2
|
|
29
|
+
*/
|
|
30
|
+
columns: import("@angular/core").InputSignal<DescriptionListColumnsProps>;
|
|
31
|
+
/**
|
|
32
|
+
* Draw a separator under every row
|
|
33
|
+
* @defaultValue true
|
|
34
|
+
*/
|
|
35
|
+
divided: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
36
|
+
/** Additional classes merged onto the `<dl>` */
|
|
37
|
+
class: import("@angular/core").InputSignal<string>;
|
|
38
|
+
/** @internal */
|
|
39
|
+
readonly componentClass: import("@angular/core").Signal<string>;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DescriptionListComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DescriptionListComponent, "st-description-list", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "divided": { "alias": "divided"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* One label/value row of `st-description-list`.
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
* The value comes from `value`, or from projected content when `value` is not set.
|
|
48
|
+
* An empty value shows "—" (announced as "No value").
|
|
49
|
+
*/
|
|
50
|
+
export declare class DescriptionItemComponent {
|
|
51
|
+
private readonly list;
|
|
52
|
+
private readonly translateLabel;
|
|
53
|
+
private copiedTimer;
|
|
54
|
+
/** Term shown in the `<dt>` */
|
|
55
|
+
label: import("@angular/core").InputSignal<string>;
|
|
56
|
+
/** Value shown in the `<dd>`. When `undefined`, projected content is shown instead. */
|
|
57
|
+
value: import("@angular/core").InputSignal<string | number | null | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* Text shown for an empty value
|
|
60
|
+
* @defaultValue '—'
|
|
61
|
+
*/
|
|
62
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Render a copy button that writes the value to the clipboard
|
|
65
|
+
* @defaultValue false
|
|
66
|
+
*/
|
|
67
|
+
copyable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
68
|
+
/** Override of the list's `divided` setting for this row */
|
|
69
|
+
divided: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
70
|
+
private readonly valueSlot;
|
|
71
|
+
/** @internal */
|
|
72
|
+
protected readonly copied: import("@angular/core").WritableSignal<boolean>;
|
|
73
|
+
/** @internal */
|
|
74
|
+
protected readonly copyIcon: import("@angular/core").Signal<"<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" style=\"stroke-width:var(--ng-icon__stroke-width, 1.5)\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m4.5 12.75 6 6 9-13.5\"></path></svg>" | "<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" style=\"stroke-width:var(--ng-icon__stroke-width, 1.5)\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z\"></path></svg>">;
|
|
75
|
+
/** @internal */
|
|
76
|
+
protected readonly copyLabel: import("@angular/core").Signal<string>;
|
|
77
|
+
/** @internal */
|
|
78
|
+
protected readonly emptyLabel: import("@angular/core").Signal<string>;
|
|
79
|
+
/** @internal Whether `value` drives the row (otherwise projected content does). */
|
|
80
|
+
protected readonly usesValueInput: import("@angular/core").Signal<boolean>;
|
|
81
|
+
/** @internal */
|
|
82
|
+
protected readonly displayValue: import("@angular/core").Signal<string>;
|
|
83
|
+
/** @internal */
|
|
84
|
+
readonly rowClass: import("@angular/core").Signal<string>;
|
|
85
|
+
constructor();
|
|
86
|
+
/** Copies the value (or the projected text) to the clipboard. */
|
|
87
|
+
copy(): Promise<void>;
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DescriptionItemComponent, never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DescriptionItemComponent, "div[st-description-item]", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "copyable": { "alias": "copyable"; "required": false; "isSignal": true; }; "divided": { "alias": "divided"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
90
|
+
}
|
|
@@ -9,17 +9,21 @@ Modal overlay with title, content, and actions.
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
```html
|
|
12
|
-
<st-dialog [(opened)]="open">
|
|
13
|
-
<st-dialog-title>
|
|
14
|
-
<st-dialog-content
|
|
15
|
-
<st-dialog-actions
|
|
16
|
-
<st-button variant="
|
|
12
|
+
<st-dialog [(opened)]="open" width="lg">
|
|
13
|
+
<st-dialog-title>Edit contact</st-dialog-title>
|
|
14
|
+
<st-dialog-content>…</st-dialog-content>
|
|
15
|
+
<st-dialog-actions>
|
|
16
|
+
<st-button variant="secondary" (triggered)="open.set(false)">Cancel</st-button>
|
|
17
|
+
<st-button variant="primary" (triggered)="save()">Save</st-button>
|
|
17
18
|
</st-dialog-actions>
|
|
18
19
|
</st-dialog>
|
|
19
20
|
```
|
|
20
21
|
|
|
21
22
|
## Notes
|
|
22
23
|
|
|
23
|
-
- `width` is `'sm'` | `'md'` | `'lg'` | `'xl'`. Outputs: `closed`, `clickOutside`.
|
|
24
|
+
- `width` is `'xs'` | `'sm'` | `'md'` | `'lg'` | `'xl'` | `'2xl'` | `'3xl'` | `'4xl'` | `'5xl'` (16rem to 64rem), default `'lg'` (32rem). Set it by purpose: form or action `lg`, delete confirm `xl` (or `2xl` with a full-row table), upload `xl`. The dialog never grows wider than the viewport minus 2rem. Outputs: `closed`, `clickOutside`.
|
|
25
|
+
- `st-dialog-actions` aligns right by default: put the dismiss action first and the confirm action last.
|
|
26
|
+
- `fullscreenOnMobile` (default `true`): below the `sm` breakpoint (640px) the dialog fills the screen (full width and `100dvh`, no radius); the content scrolls and the actions stay visible. Set `[fullscreenOnMobile]="false"` for a short confirm that should stay a centered card on phones. While full-screen, the page behind is scroll-locked (CDK block strategy); wider viewports and opted-out dialogs keep the page scroll so a sticky navbar does not jump. The lock sets `position: fixed`, `width: 100%` and `overflow-y: scroll` inline on `<html>` as well as the `cdk-global-scrollblock` class, so it also works when the host page does not load the SDK stylesheet (for example a host that loads it only inside an MFE child's shadow root); the previous inline values come back on close. The focus trap and `prefers-reduced-motion` handling are unchanged.
|
|
27
|
+
- The title and subtitle keep clear of the close button (✕), so long titles wrap before it; no local `pe-*` padding is needed.
|
|
24
28
|
- Prefer `(triggered)` on close controls.
|
|
25
29
|
- The close button is named by the `sdk.dialog.close` translation key, and falls back to "Close dialog" when no translation service or key is available.
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export type ModalActionsAligmentProps = 'left' | 'right' | 'center';
|
|
3
3
|
export declare class DialogActionsComponent {
|
|
4
|
+
/**
|
|
5
|
+
* Horizontal alignment of the actions. Dialog actions sit at the bottom right, dismiss first and confirm last.
|
|
6
|
+
* @defaultValue 'right'
|
|
7
|
+
*/
|
|
4
8
|
alignment: import("@angular/core").InputSignal<ModalActionsAligmentProps>;
|
|
5
9
|
componentClass: import("@angular/core").Signal<string>;
|
|
6
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogActionsComponent, never>;
|
|
@@ -12,6 +12,7 @@ export type DialogYPosition = 'top' | 'center' | 'bottom';
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const dialogComponent: (props?: ({
|
|
14
14
|
width?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | null | undefined;
|
|
15
|
+
fullscreenOnMobile?: boolean | null | undefined;
|
|
15
16
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
17
|
/** Possible width values for the dialog component */
|
|
17
18
|
export type DialogWidthProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | null | undefined;
|
|
@@ -20,6 +21,7 @@ type AnimationState = 'closed' | 'open';
|
|
|
20
21
|
/** Configuration properties for the dialog component */
|
|
21
22
|
export type DialogProps = {
|
|
22
23
|
width?: DialogWidthProps;
|
|
24
|
+
fullscreenOnMobile?: boolean;
|
|
23
25
|
};
|
|
24
26
|
/**
|
|
25
27
|
* A customizable dialog component using Angular CDK Dialog for declarative usage
|
|
@@ -33,15 +35,14 @@ export type DialogProps = {
|
|
|
33
35
|
* <st-dialog
|
|
34
36
|
* [(opened)]="isDialogOpen"
|
|
35
37
|
* width="lg"
|
|
36
|
-
* alignment="center"
|
|
37
38
|
* (closed)="handleDialogClosed()">
|
|
38
39
|
* <st-dialog-title>Confirm Action</st-dialog-title>
|
|
39
40
|
* <st-dialog-content>
|
|
40
41
|
* Are you sure you want to proceed?
|
|
41
42
|
* </st-dialog-content>
|
|
42
43
|
* <st-dialog-actions>
|
|
43
|
-
* <st-button (click)="confirmAction()">Confirm</st-button>
|
|
44
44
|
* <st-button variant="secondary" (click)="closeDialog()">Cancel</st-button>
|
|
45
|
+
* <st-button variant="primary" (click)="confirmAction()">Confirm</st-button>
|
|
45
46
|
* </st-dialog-actions>
|
|
46
47
|
* </st-dialog>
|
|
47
48
|
* ```
|
|
@@ -61,10 +62,17 @@ export declare class DialogComponent {
|
|
|
61
62
|
protected readonly closeLabel: import("@angular/core").Signal<string>;
|
|
62
63
|
private readonly contentEffect;
|
|
63
64
|
/**
|
|
64
|
-
* Specifies the
|
|
65
|
-
* @defaultValue '
|
|
65
|
+
* Specifies the width of the dialog
|
|
66
|
+
* @defaultValue 'lg'
|
|
66
67
|
*/
|
|
67
68
|
width: import("@angular/core").InputSignal<DialogWidthProps>;
|
|
69
|
+
/**
|
|
70
|
+
* Below the `sm` breakpoint (640px) the dialog fills the screen: full width and height, no radius,
|
|
71
|
+
* the content scrolls and the actions stay visible. Set it to `false` for a short confirm that should
|
|
72
|
+
* stay a centered card on phones.
|
|
73
|
+
* @defaultValue true
|
|
74
|
+
*/
|
|
75
|
+
fullscreenOnMobile: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
68
76
|
/**
|
|
69
77
|
* Controls the horizontal positioning of the dialog (x-axis)
|
|
70
78
|
* @defaultValue 'center'
|
|
@@ -88,7 +96,7 @@ export declare class DialogComponent {
|
|
|
88
96
|
* Stop event propagation for activation events
|
|
89
97
|
* @defaultValue false
|
|
90
98
|
*/
|
|
91
|
-
stopPropagation: import("@angular/core").
|
|
99
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
92
100
|
/**
|
|
93
101
|
* Event emitted on click
|
|
94
102
|
*/
|
|
@@ -113,6 +121,8 @@ export declare class DialogComponent {
|
|
|
113
121
|
private readonly dialog;
|
|
114
122
|
/** @internal CDK Overlay service for positioning */
|
|
115
123
|
private readonly overlay;
|
|
124
|
+
/** @internal */
|
|
125
|
+
private readonly document;
|
|
116
126
|
/** @internal Reference to the dialog template */
|
|
117
127
|
dialogTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
118
128
|
/** @internal Reference to the current open dialog */
|
|
@@ -137,6 +147,11 @@ export declare class DialogComponent {
|
|
|
137
147
|
* @internal
|
|
138
148
|
*/
|
|
139
149
|
componentClass: import("@angular/core").Signal<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Classes for the content region: it takes the free height and scrolls in the full-screen layout
|
|
152
|
+
* @internal
|
|
153
|
+
*/
|
|
154
|
+
contentClass: import("@angular/core").Signal<"max-sm:min-h-0 max-sm:flex-1 max-sm:overflow-y-auto max-sm:overscroll-contain" | "">;
|
|
140
155
|
/** @internal Handles open/close state changes */
|
|
141
156
|
openedEffect: import("@angular/core").EffectRef;
|
|
142
157
|
/**
|
|
@@ -150,6 +165,12 @@ export declare class DialogComponent {
|
|
|
150
165
|
* @internal
|
|
151
166
|
*/
|
|
152
167
|
private openDialog;
|
|
168
|
+
/**
|
|
169
|
+
* A full-screen dialog locks the page scroll below `sm`, where it covers the page anyway. Elsewhere the
|
|
170
|
+
* page keeps its scroll (noop), because the block strategy fixes the root and makes a sticky navbar jump.
|
|
171
|
+
* @internal
|
|
172
|
+
*/
|
|
173
|
+
private createScrollStrategy;
|
|
153
174
|
/**
|
|
154
175
|
* Public method to close the dialog
|
|
155
176
|
* Can be called directly from parent components or child components
|
|
@@ -197,6 +218,6 @@ export declare class DialogComponent {
|
|
|
197
218
|
*/
|
|
198
219
|
handleKeyDownSpace(event: Event): void;
|
|
199
220
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
200
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "st-dialog", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "xPosition": { "alias": "xPosition"; "required": false; "isSignal": true; }; "yPosition": { "alias": "yPosition"; "required": false; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "opened": "openedChange"; "closed": "closed"; "clickOutside": "clickOutside"; "clicked": "clicked"; "pointerDown": "pointerDown"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; }, ["titleComponent", "subTitleComponent"], ["st-dialog-title", "st-dialog-sub-title", "st-dialog-content", "st-dialog-actions"], true, never>;
|
|
221
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "st-dialog", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "fullscreenOnMobile": { "alias": "fullscreenOnMobile"; "required": false; "isSignal": true; }; "xPosition": { "alias": "xPosition"; "required": false; "isSignal": true; }; "yPosition": { "alias": "yPosition"; "required": false; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "opened": "openedChange"; "closed": "closed"; "clickOutside": "clickOutside"; "clicked": "clicked"; "pointerDown": "pointerDown"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; }, ["titleComponent", "subTitleComponent"], ["st-dialog-title", "st-dialog-sub-title", "st-dialog-content", "st-dialog-actions"], true, never>;
|
|
201
222
|
}
|
|
202
223
|
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OverlayRef, ScrollStrategy } from '@angular/cdk/overlay';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* Matches Tailwind's `max-sm` variant: the range where a `fullscreenOnMobile` dialog fills the screen.
|
|
5
|
+
*/
|
|
6
|
+
export declare const FULLSCREEN_DIALOG_MEDIA = "(width < 40rem)";
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
* Locks the page scroll with the CDK block strategy only while the media query matches, and follows
|
|
10
|
+
* viewport changes while the dialog is open. Wider viewports keep the page as is, so a sticky navbar
|
|
11
|
+
* behind the backdrop does not jump.
|
|
12
|
+
*
|
|
13
|
+
* The CDK strategy only sets the class and the `top`/`left` offsets; the lock itself comes from the
|
|
14
|
+
* `.cdk-global-scrollblock` rule in the global stylesheet. A host that loads the SDK styles only inside a
|
|
15
|
+
* child's shadow root would not have that rule, so the same declarations are applied inline on the root.
|
|
16
|
+
*/
|
|
17
|
+
export declare class FullscreenBlockScrollStrategy implements ScrollStrategy {
|
|
18
|
+
private readonly block;
|
|
19
|
+
private readonly media;
|
|
20
|
+
private readonly root;
|
|
21
|
+
private readonly onChange;
|
|
22
|
+
private previousStyles;
|
|
23
|
+
constructor(block: ScrollStrategy, media: MediaQueryList | null, root: HTMLElement | null);
|
|
24
|
+
attach(overlayRef: OverlayRef): void;
|
|
25
|
+
enable(): void;
|
|
26
|
+
disable(): void;
|
|
27
|
+
detach(): void;
|
|
28
|
+
private sync;
|
|
29
|
+
private lock;
|
|
30
|
+
private unlock;
|
|
31
|
+
}
|
|
@@ -11,7 +11,7 @@ export declare class DividerComponent {
|
|
|
11
11
|
orientation: import("@angular/core").InputSignal<DividerOrientation>;
|
|
12
12
|
placement: import("@angular/core").InputSignal<DividerPlacement>;
|
|
13
13
|
variant: import("@angular/core").InputSignal<DividerVariant>;
|
|
14
|
-
withMargin: import("@angular/core").
|
|
14
|
+
withMargin: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
15
|
componentClass: import("@angular/core").Signal<string>;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DividerComponent, never>;
|
|
17
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<DividerComponent, "st-divider", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "withMargin": { "alias": "withMargin"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
@@ -4,14 +4,14 @@ Import: `@sixbell-telco/sdk/components/dropdown`
|
|
|
4
4
|
|
|
5
5
|
Selectors: `st-dropdown`, `st-dropdown-trigger`, `st-dropdown-content`, `st-dropdown-item`, `st-dropdown-chevron`
|
|
6
6
|
|
|
7
|
-
Menu attached to a trigger.
|
|
7
|
+
Menu attached to a trigger. Opens and closes with the shared popover motion (`popover-motion` in `_index.css`); the panel's `data-side` is the side the CDK placed it on. `offsetY` defaults to a 4px gap (mirrored when a fallback flips the panel); pass `[offsetY]="0"` for a flush panel.
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
```html
|
|
12
12
|
<st-dropdown>
|
|
13
13
|
<st-dropdown-trigger>
|
|
14
|
-
<st-button>
|
|
14
|
+
<st-button variant="tertiary" [outline]="true">Actions <st-dropdown-chevron></st-dropdown-chevron></st-button>
|
|
15
15
|
</st-dropdown-trigger>
|
|
16
16
|
<st-dropdown-content>
|
|
17
17
|
<st-dropdown-item (triggered)="onEdit()">Edit</st-dropdown-item>
|
|
@@ -30,7 +30,7 @@ export declare class DropdownChevronComponent {
|
|
|
30
30
|
/**
|
|
31
31
|
* Position relative to content
|
|
32
32
|
*/
|
|
33
|
-
position: import("@angular/core").InputSignal<"
|
|
33
|
+
position: import("@angular/core").InputSignal<"right" | "left">;
|
|
34
34
|
/**
|
|
35
35
|
* Whether the chevron is open (rotated)
|
|
36
36
|
* Derives from the parent trigger's isOpen signal
|
|
@@ -29,7 +29,7 @@ export declare class DropdownContentComponent {
|
|
|
29
29
|
/** Size variant */
|
|
30
30
|
size: import("@angular/core").InputSignal<"xs" | "sm" | "md" | "lg" | "xl">;
|
|
31
31
|
/** Whether to apply shadow */
|
|
32
|
-
shadow: import("@angular/core").
|
|
32
|
+
shadow: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
33
33
|
/** Event emitted when close is requested */
|
|
34
34
|
closeRequested: import("@angular/core").OutputEmitterRef<void>;
|
|
35
35
|
/**
|
|
@@ -26,7 +26,7 @@ export declare class DropdownItemComponent {
|
|
|
26
26
|
/**
|
|
27
27
|
* Whether the menu item is active
|
|
28
28
|
*/
|
|
29
|
-
active: import("@angular/core").
|
|
29
|
+
active: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
30
30
|
/**
|
|
31
31
|
* Custom CSS classes
|
|
32
32
|
*/
|
|
@@ -35,12 +35,12 @@ export declare class DropdownItemComponent {
|
|
|
35
35
|
* Whether the item is disabled
|
|
36
36
|
* @defaultValue false
|
|
37
37
|
*/
|
|
38
|
-
disabled: import("@angular/core").
|
|
38
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
39
39
|
/**
|
|
40
40
|
* Whether to close the dropdown when the item is selected
|
|
41
41
|
* @defaultValue true
|
|
42
42
|
*/
|
|
43
|
-
closeOnSelect: import("@angular/core").
|
|
43
|
+
closeOnSelect: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
44
44
|
/**
|
|
45
45
|
* Event emitted when the item is selected
|
|
46
46
|
*/
|
|
@@ -49,7 +49,7 @@ export declare class DropdownItemComponent {
|
|
|
49
49
|
* Stop event propagation for activation events
|
|
50
50
|
* @defaultValue false
|
|
51
51
|
*/
|
|
52
|
-
stopPropagation: import("@angular/core").
|
|
52
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
53
53
|
/**
|
|
54
54
|
* Event emitted on click
|
|
55
55
|
*/
|
|
@@ -8,11 +8,11 @@ export declare class DropdownItemCheckboxComponent {
|
|
|
8
8
|
/**
|
|
9
9
|
* Whether the checkbox is checked
|
|
10
10
|
*/
|
|
11
|
-
checked: import("@angular/core").
|
|
11
|
+
checked: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
12
|
/**
|
|
13
13
|
* Whether the menu item is disabled
|
|
14
14
|
*/
|
|
15
|
-
disabled: import("@angular/core").
|
|
15
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
16
16
|
/**
|
|
17
17
|
* Custom indicator character or text
|
|
18
18
|
*/
|
|
@@ -20,7 +20,7 @@ export declare class DropdownItemCheckboxComponent {
|
|
|
20
20
|
/**
|
|
21
21
|
* Whether to show the indicator
|
|
22
22
|
*/
|
|
23
|
-
showIndicator: import("@angular/core").
|
|
23
|
+
showIndicator: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
24
24
|
/**
|
|
25
25
|
* Custom CSS classes
|
|
26
26
|
*/
|
|
@@ -29,7 +29,7 @@ export declare class DropdownItemCheckboxComponent {
|
|
|
29
29
|
* Whether to close the dropdown when the item is selected
|
|
30
30
|
* @defaultValue true
|
|
31
31
|
*/
|
|
32
|
-
closeOnSelect: import("@angular/core").
|
|
32
|
+
closeOnSelect: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
33
33
|
/**
|
|
34
34
|
* Emitted when the checkbox state changes
|
|
35
35
|
*/
|
|
@@ -42,7 +42,7 @@ export declare class DropdownItemCheckboxComponent {
|
|
|
42
42
|
* Stop event propagation for activation events
|
|
43
43
|
* @defaultValue false
|
|
44
44
|
*/
|
|
45
|
-
stopPropagation: import("@angular/core").
|
|
45
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
46
46
|
/**
|
|
47
47
|
* Event emitted on click
|
|
48
48
|
*/
|
|
@@ -8,7 +8,7 @@ export declare class DropdownItemRadioComponent {
|
|
|
8
8
|
/**
|
|
9
9
|
* Whether the radio is checked
|
|
10
10
|
*/
|
|
11
|
-
checked: import("@angular/core").
|
|
11
|
+
checked: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
12
|
/**
|
|
13
13
|
* The value of this radio item
|
|
14
14
|
*/
|
|
@@ -16,7 +16,7 @@ export declare class DropdownItemRadioComponent {
|
|
|
16
16
|
/**
|
|
17
17
|
* Whether the menu item is disabled
|
|
18
18
|
*/
|
|
19
|
-
disabled: import("@angular/core").
|
|
19
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
20
|
/**
|
|
21
21
|
* Custom indicator character or text
|
|
22
22
|
*/
|
|
@@ -24,7 +24,7 @@ export declare class DropdownItemRadioComponent {
|
|
|
24
24
|
/**
|
|
25
25
|
* Whether to show the indicator
|
|
26
26
|
*/
|
|
27
|
-
showIndicator: import("@angular/core").
|
|
27
|
+
showIndicator: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
28
28
|
/**
|
|
29
29
|
* Custom CSS classes
|
|
30
30
|
*/
|
|
@@ -33,7 +33,7 @@ export declare class DropdownItemRadioComponent {
|
|
|
33
33
|
* Whether to close the dropdown when the item is selected
|
|
34
34
|
* @defaultValue true
|
|
35
35
|
*/
|
|
36
|
-
closeOnSelect: import("@angular/core").
|
|
36
|
+
closeOnSelect: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
37
37
|
/**
|
|
38
38
|
* Emitted when the radio state changes
|
|
39
39
|
*/
|
|
@@ -46,7 +46,7 @@ export declare class DropdownItemRadioComponent {
|
|
|
46
46
|
* Stop event propagation for activation events
|
|
47
47
|
* @defaultValue false
|
|
48
48
|
*/
|
|
49
|
-
stopPropagation: import("@angular/core").
|
|
49
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
50
50
|
/**
|
|
51
51
|
* Event emitted on click
|
|
52
52
|
*/
|