@sixbell-telco/sdk 4.1.2 → 4.3.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 +102 -1
- package/README.md +98 -66
- package/_index.css +2 -1498
- 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 +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 +1 -1
- package/components/dropdown-menu/README.md +1 -1
- 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 +1 -1
- 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 +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/dropdown-menu-chevron/dropdown-menu-chevron.component.d.ts +1 -1
- package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +3 -3
- package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +1 -1
- 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 +1 -0
- package/components/forms/combobox/src/combobox.component.d.ts +29 -7
- package/components/forms/date-picker/src/date-picker.component.d.ts +21 -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/README.md +2 -0
- package/components/forms/input/src/input.component.d.ts +41 -7
- package/components/forms/radio/src/radio.component.d.ts +1 -1
- package/components/forms/range/src/range.component.d.ts +26 -4
- package/components/forms/select/README.md +1 -0
- package/components/forms/select/src/select.component.d.ts +28 -5
- package/components/forms/switch/src/switch.component.d.ts +1 -1
- package/components/forms/textarea/src/textarea.component.d.ts +20 -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 +1 -1
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +1 -1
- package/components/overlay/src/overlay.component.d.ts +1 -1
- 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 +22 -5
- package/components/tooltip/src/tooltip.component.d.ts +36 -4
- 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 +16 -16
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +17 -17
- 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 +80 -25
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +28 -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 +62 -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 +38 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +60 -15
- 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 +36 -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 +3 -3
- 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 +156 -25
- 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 +43 -35
- 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-theme.mjs +242 -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-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 +11 -10
- package/layouts/src/app-layout/app-layout.component.d.ts +11 -8
- package/layouts/src/layout.config.d.ts +1 -1
- package/layouts/src/navbar/navbar.component.d.ts +5 -5
- package/layouts/src/page-banner/page-banner.component.d.ts +6 -1
- 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 +63 -23
- package/src/_index.css +1616 -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/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 +61 -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
|
@@ -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\tselector: 'st-accordion',\n\timports: [],\n\ttemplateUrl: './accordion.component.html',\n})\nexport class AccordionComponent {\n\tname = input('accordion');\n\ttype = input<'default' | 'single'>('default');\n}\n","<div class=\"join join-vertical w-full\">\n\t<ng-content></ng-content>\n</div>\n","import { Component, computed, inject, input } from '@angular/core';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { AccordionComponent } from '../src/accordion.component';\n\nexport const accordionItemComponent = cva(['join-item border-neutral collapse border'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: [],\n\t\t\tarrow: ['collapse-arrow'],\n\t\t\tplus: ['collapse-plus'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'default',\n\t},\n});\n\nexport type AccordionVariantProps = 'default' | 'arrow' | 'plus' | null | undefined;\n\nexport type AccordionItemProps = {\n\tvariant?: AccordionVariantProps;\n};\n\n@Component({\n\tselector: 'st-accordion-item',\n\timports: [TextDirective],\n\ttemplateUrl: './accordion-item.component.html',\n})\nexport class AccordionItemComponent {\n\theader = input('');\n\topened = input(false);\n\n\tvariant = input<AccordionVariantProps>();\n\tname: string;\n\ttype: string;\n\n\tprivate readonly accordion = inject(AccordionComponent, { host: true });\n\n\tconstructor() {\n\t\tthis.name = this.accordion.name();\n\t\tthis.type = this.accordion.type() === 'single' ? 'radio' : 'checkbox';\n\t}\n\n\tcomponentClass = computed(() => cn(accordionItemComponent({ variant: this.variant() })));\n}\n","<div [class]=\"componentClass()\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<div stText=\"7\">\n\t\t\t{{ header() }}\n\t\t</div>\n\t</div>\n\t<div class=\"collapse-content\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAOa,kBAAkB,CAAA;AAC9B,IAAA,IAAI,GAAG,KAAK,CAAC,WAAW,CAAC;AACzB,IAAA,IAAI,GAAG,KAAK,CAAuB,SAAS,CAAC;wGAFjC,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,kBAAkB,8TCP/B,kFAGA,EAAA,CAAA;;4FDIa,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,WACf,EAAE,EAAA,QAAA,EAAA,kFAAA,EAAA;;;MEEC,sBAAsB,GAAG,GAAG,CAAC,CAAC,0CAA0C,CAAC,EAAE;AACvF,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE,EAAE;YACX,KAAK,EAAE,CAAC,gBAAgB,CAAC;YACzB,IAAI,EAAE,CAAC,eAAe,CAAC;AACvB,SAAA;AACD,KAAA;AACD,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,SAAS;AAClB,KAAA;AACD,CAAA;MAaY,sBAAsB,CAAA;AAClC,IAAA,MAAM,GAAG,KAAK,CAAC,EAAE,CAAC;
|
|
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\tselector: 'st-accordion',\n\timports: [],\n\ttemplateUrl: './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 { booleanAttribute, 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, { transform: booleanAttribute });\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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"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, booleanAttribute, output, signal, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { heroXCircle, heroExclamationTriangle, heroCheckCircle, heroInformationCircle, heroXMark } from '@ng-icons/heroicons/outline';
|
|
4
|
+
import { ButtonComponent } from '@sixbell-telco/sdk/components/button';
|
|
5
|
+
import { IconComponent } from '@sixbell-telco/sdk/components/icon';
|
|
6
|
+
import { TextDirective } from '@sixbell-telco/sdk/directives/text';
|
|
7
|
+
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
8
|
+
import { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';
|
|
9
|
+
import { cva } from 'class-variance-authority';
|
|
10
|
+
|
|
11
|
+
const DISMISS_LABEL = { key: 'sdk.alert.dismiss', fallback: 'Dismiss alert' };
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
* Soft status callout classes. Body text stays on `base-content`; the icon and title read the
|
|
15
|
+
* `--color-<status>-strong` token so they meet 4.5:1 on the soft tint.
|
|
16
|
+
*/
|
|
17
|
+
const alertComponent = cva(['alert', 'alert-soft', 'flex', 'w-full', 'items-start', 'gap-3', 'text-base-content'], {
|
|
18
|
+
variants: {
|
|
19
|
+
variant: {
|
|
20
|
+
info: ['alert-info'],
|
|
21
|
+
success: ['alert-success'],
|
|
22
|
+
warning: ['alert-warning'],
|
|
23
|
+
error: ['alert-error'],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
variant: 'info',
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
const accentClass = cva([], {
|
|
31
|
+
variants: {
|
|
32
|
+
variant: {
|
|
33
|
+
info: ['text-info-strong'],
|
|
34
|
+
success: ['text-success-strong'],
|
|
35
|
+
warning: ['text-warning-strong'],
|
|
36
|
+
error: ['text-error-strong'],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
defaultVariants: {
|
|
40
|
+
variant: 'info',
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
const VARIANT_ICONS = {
|
|
44
|
+
info: heroInformationCircle,
|
|
45
|
+
success: heroCheckCircle,
|
|
46
|
+
warning: heroExclamationTriangle,
|
|
47
|
+
error: heroXCircle,
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Inline status callout: icon, optional heading, projected body, optional actions and dismiss.
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* The host is the live region. `info`, `success` and `warning` use `role="status"` (polite);
|
|
54
|
+
* `error` uses `role="alert"` (assertive), and `assertive` forces `role="alert"` for any variant.
|
|
55
|
+
* Set `id` to reference the callout from a control's `aria-describedby`.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```html
|
|
59
|
+
* <st-alert variant="warning" heading="Pending distribution groups">
|
|
60
|
+
* Add at least one rule before publishing.
|
|
61
|
+
* <st-alert-actions>
|
|
62
|
+
* <st-button variant="warning" size="sm" [outline]="true">Review</st-button>
|
|
63
|
+
* </st-alert-actions>
|
|
64
|
+
* </st-alert>
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
class AlertComponent {
|
|
68
|
+
/**
|
|
69
|
+
* Status of the callout
|
|
70
|
+
* @defaultValue 'info'
|
|
71
|
+
*/
|
|
72
|
+
variant = input('info');
|
|
73
|
+
/** Short heading rendered above the projected body. Nothing is rendered when empty. */
|
|
74
|
+
heading = input('');
|
|
75
|
+
/** Id set on the host, so a control can point at the callout with `aria-describedby`. */
|
|
76
|
+
id = input(null);
|
|
77
|
+
/**
|
|
78
|
+
* Show the status icon
|
|
79
|
+
* @defaultValue true
|
|
80
|
+
*/
|
|
81
|
+
showIcon = input(true, { transform: booleanAttribute });
|
|
82
|
+
/** Icon override (an SVG string from `@sixbell-telco/sdk/components/icon/*`). Defaults to the variant icon. */
|
|
83
|
+
icon = input();
|
|
84
|
+
/**
|
|
85
|
+
* Render a close button that hides the callout and emits `dismissed`
|
|
86
|
+
* @defaultValue false
|
|
87
|
+
*/
|
|
88
|
+
dismissible = input(false, { transform: booleanAttribute });
|
|
89
|
+
/**
|
|
90
|
+
* Announce with `role="alert"` whatever the variant
|
|
91
|
+
* @defaultValue false
|
|
92
|
+
*/
|
|
93
|
+
assertive = input(false, { transform: booleanAttribute });
|
|
94
|
+
/** Additional classes merged onto the host */
|
|
95
|
+
class = input('');
|
|
96
|
+
/** Emits after the close button hides the callout */
|
|
97
|
+
dismissed = output();
|
|
98
|
+
translateLabel = injectLabelTranslator();
|
|
99
|
+
/** @internal */
|
|
100
|
+
isDismissed = signal(false);
|
|
101
|
+
/** @internal */
|
|
102
|
+
dismissIcon = heroXMark;
|
|
103
|
+
/** @internal */
|
|
104
|
+
dismissLabel = computed(() => this.translateLabel(DISMISS_LABEL));
|
|
105
|
+
/** @internal */
|
|
106
|
+
role = computed(() => (this.assertive() || this.variant() === 'error' ? 'alert' : 'status'));
|
|
107
|
+
/** @internal */
|
|
108
|
+
resolvedIcon = computed(() => this.icon() || VARIANT_ICONS[this.variant() ?? 'info']);
|
|
109
|
+
/** @internal */
|
|
110
|
+
accentClass = computed(() => accentClass({ variant: this.variant() }));
|
|
111
|
+
/** @internal */
|
|
112
|
+
componentClass = computed(() => cn(alertComponent({ variant: this.variant() }), this.class()));
|
|
113
|
+
/** Hides the callout and emits `dismissed`. */
|
|
114
|
+
dismiss() {
|
|
115
|
+
this.isDismissed.set(true);
|
|
116
|
+
this.dismissed.emit();
|
|
117
|
+
}
|
|
118
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
119
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: AlertComponent, isStandalone: true, selector: "st-alert", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, assertive: { classPropertyName: "assertive", publicName: "assertive", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dismissed: "dismissed" }, host: { properties: { "class": "componentClass()", "attr.id": "id() || null", "attr.role": "role()", "attr.hidden": "isDismissed() ? \"\" : null" } }, ngImport: i0, template: "@let headingVar = heading();\n@if (showIcon()) {\n\t<span class=\"flex shrink-0 pt-0.5\" [class]=\"accentClass()\">\n\t\t<st-icon [icon]=\"resolvedIcon()\" size=\"sm\"></st-icon>\n\t</span>\n}\n<div class=\"flex min-w-0 flex-1 flex-col gap-0.5 self-center\">\n\t@if (headingVar) {\n\t\t<p stText=\"7\" stTextWeight=\"semibold\" [stTextClass]=\"accentClass()\">{{ headingVar }}</p>\n\t}\n\t<div stText=\"7\" class=\"empty:hidden\"><ng-content /></div>\n</div>\n<ng-content select=\"st-alert-actions\" />\n@if (dismissible()) {\n\t<st-button\n\t\tclass=\"-my-1 shrink-0\"\n\t\tsize=\"sm\"\n\t\t[ghost]=\"true\"\n\t\t[circle]=\"true\"\n\t\t[icon]=\"dismissIcon\"\n\t\t[ariaLabel]=\"dismissLabel()\"\n\t\t(clicked)=\"dismiss()\"\n\t/>\n}\n", dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDescribedBy", "ariaControls"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
120
|
+
}
|
|
121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AlertComponent, decorators: [{
|
|
122
|
+
type: Component,
|
|
123
|
+
args: [{ selector: 'st-alert', imports: [IconComponent, ButtonComponent, TextDirective], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
124
|
+
'[class]': 'componentClass()',
|
|
125
|
+
'[attr.id]': 'id() || null',
|
|
126
|
+
'[attr.role]': 'role()',
|
|
127
|
+
'[attr.hidden]': 'isDismissed() ? "" : null',
|
|
128
|
+
}, template: "@let headingVar = heading();\n@if (showIcon()) {\n\t<span class=\"flex shrink-0 pt-0.5\" [class]=\"accentClass()\">\n\t\t<st-icon [icon]=\"resolvedIcon()\" size=\"sm\"></st-icon>\n\t</span>\n}\n<div class=\"flex min-w-0 flex-1 flex-col gap-0.5 self-center\">\n\t@if (headingVar) {\n\t\t<p stText=\"7\" stTextWeight=\"semibold\" [stTextClass]=\"accentClass()\">{{ headingVar }}</p>\n\t}\n\t<div stText=\"7\" class=\"empty:hidden\"><ng-content /></div>\n</div>\n<ng-content select=\"st-alert-actions\" />\n@if (dismissible()) {\n\t<st-button\n\t\tclass=\"-my-1 shrink-0\"\n\t\tsize=\"sm\"\n\t\t[ghost]=\"true\"\n\t\t[circle]=\"true\"\n\t\t[icon]=\"dismissIcon\"\n\t\t[ariaLabel]=\"dismissLabel()\"\n\t\t(clicked)=\"dismiss()\"\n\t/>\n}\n" }]
|
|
129
|
+
}] });
|
|
130
|
+
/** Action area of `st-alert`, aligned after the body. */
|
|
131
|
+
class AlertActionsComponent {
|
|
132
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AlertActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
133
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: AlertActionsComponent, isStandalone: true, selector: "st-alert-actions", host: { classAttribute: "flex shrink-0 flex-wrap items-center gap-2 self-center" }, ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
134
|
+
}
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AlertActionsComponent, decorators: [{
|
|
136
|
+
type: Component,
|
|
137
|
+
args: [{
|
|
138
|
+
selector: 'st-alert-actions',
|
|
139
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
140
|
+
template: '<ng-content />',
|
|
141
|
+
host: {
|
|
142
|
+
class: 'flex shrink-0 flex-wrap items-center gap-2 self-center',
|
|
143
|
+
},
|
|
144
|
+
}]
|
|
145
|
+
}] });
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Generated bundle index. Do not edit.
|
|
149
|
+
*/
|
|
150
|
+
|
|
151
|
+
export { AlertActionsComponent, AlertComponent, alertComponent };
|
|
152
|
+
//# sourceMappingURL=sixbell-telco-sdk-components-alert.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-alert.mjs","sources":["../../../projects/sdk/components/alert/src/alert.component.ts","../../../projects/sdk/components/alert/src/alert.component.html","../../../projects/sdk/components/alert/sixbell-telco-sdk-components-alert.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input, output, signal } from '@angular/core';\nimport { heroCheckCircle, heroExclamationTriangle, heroInformationCircle, heroXCircle, heroXMark } from '@ng-icons/heroicons/outline';\nimport { ButtonComponent } from '@sixbell-telco/sdk/components/button';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { cva } from 'class-variance-authority';\n\nconst DISMISS_LABEL = { key: 'sdk.alert.dismiss', fallback: 'Dismiss alert' };\n\n/**\n * @internal\n * Soft status callout classes. Body text stays on `base-content`; the icon and title read the\n * `--color-<status>-strong` token so they meet 4.5:1 on the soft tint.\n */\nexport const alertComponent = cva(['alert', 'alert-soft', 'flex', 'w-full', 'items-start', 'gap-3', 'text-base-content'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tinfo: ['alert-info'],\n\t\t\tsuccess: ['alert-success'],\n\t\t\twarning: ['alert-warning'],\n\t\t\terror: ['alert-error'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'info',\n\t},\n});\n\nconst accentClass = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tinfo: ['text-info-strong'],\n\t\t\tsuccess: ['text-success-strong'],\n\t\t\twarning: ['text-warning-strong'],\n\t\t\terror: ['text-error-strong'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'info',\n\t},\n});\n\n/** Status of the callout */\nexport type AlertVariantProps = 'info' | 'success' | 'warning' | 'error' | null | undefined;\n\nconst VARIANT_ICONS: Record<NonNullable<AlertVariantProps>, string> = {\n\tinfo: heroInformationCircle,\n\tsuccess: heroCheckCircle,\n\twarning: heroExclamationTriangle,\n\terror: heroXCircle,\n};\n\n/**\n * Inline status callout: icon, optional heading, projected body, optional actions and dismiss.\n *\n * @remarks\n * The host is the live region. `info`, `success` and `warning` use `role=\"status\"` (polite);\n * `error` uses `role=\"alert\"` (assertive), and `assertive` forces `role=\"alert\"` for any variant.\n * Set `id` to reference the callout from a control's `aria-describedby`.\n *\n * @example\n * ```html\n * <st-alert variant=\"warning\" heading=\"Pending distribution groups\">\n * Add at least one rule before publishing.\n * <st-alert-actions>\n * <st-button variant=\"warning\" size=\"sm\" [outline]=\"true\">Review</st-button>\n * </st-alert-actions>\n * </st-alert>\n * ```\n */\n@Component({\n\tselector: 'st-alert',\n\timports: [IconComponent, ButtonComponent, TextDirective],\n\ttemplateUrl: './alert.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'[class]': 'componentClass()',\n\t\t'[attr.id]': 'id() || null',\n\t\t'[attr.role]': 'role()',\n\t\t'[attr.hidden]': 'isDismissed() ? \"\" : null',\n\t},\n})\nexport class AlertComponent {\n\t/**\n\t * Status of the callout\n\t * @defaultValue 'info'\n\t */\n\tvariant = input<AlertVariantProps>('info');\n\n\t/** Short heading rendered above the projected body. Nothing is rendered when empty. */\n\theading = input<string>('');\n\n\t/** Id set on the host, so a control can point at the callout with `aria-describedby`. */\n\tid = input<string | null>(null);\n\n\t/**\n\t * Show the status icon\n\t * @defaultValue true\n\t */\n\tshowIcon = input(true, { transform: booleanAttribute });\n\n\t/** Icon override (an SVG string from `@sixbell-telco/sdk/components/icon/*`). Defaults to the variant icon. */\n\ticon = input<string | null | undefined>();\n\n\t/**\n\t * Render a close button that hides the callout and emits `dismissed`\n\t * @defaultValue false\n\t */\n\tdismissible = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Announce with `role=\"alert\"` whatever the variant\n\t * @defaultValue false\n\t */\n\tassertive = input(false, { transform: booleanAttribute });\n\n\t/** Additional classes merged onto the host */\n\tclass = input<string>('');\n\n\t/** Emits after the close button hides the callout */\n\tdismissed = output<void>();\n\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal */\n\tprotected readonly isDismissed = signal(false);\n\n\t/** @internal */\n\tprotected readonly dismissIcon = heroXMark;\n\n\t/** @internal */\n\tprotected readonly dismissLabel = computed(() => this.translateLabel(DISMISS_LABEL));\n\n\t/** @internal */\n\treadonly role = computed(() => (this.assertive() || this.variant() === 'error' ? 'alert' : 'status'));\n\n\t/** @internal */\n\tprotected readonly resolvedIcon = computed(() => this.icon() || VARIANT_ICONS[this.variant() ?? 'info']);\n\n\t/** @internal */\n\tprotected readonly accentClass = computed(() => accentClass({ variant: this.variant() }));\n\n\t/** @internal */\n\treadonly componentClass = computed(() => cn(alertComponent({ variant: this.variant() }), this.class()));\n\n\t/** Hides the callout and emits `dismissed`. */\n\tdismiss(): void {\n\t\tthis.isDismissed.set(true);\n\t\tthis.dismissed.emit();\n\t}\n}\n\n/** Action area of `st-alert`, aligned after the body. */\n@Component({\n\tselector: 'st-alert-actions',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: '<ng-content />',\n\thost: {\n\t\tclass: 'flex shrink-0 flex-wrap items-center gap-2 self-center',\n\t},\n})\nexport class AlertActionsComponent {}\n","@let headingVar = heading();\n@if (showIcon()) {\n\t<span class=\"flex shrink-0 pt-0.5\" [class]=\"accentClass()\">\n\t\t<st-icon [icon]=\"resolvedIcon()\" size=\"sm\"></st-icon>\n\t</span>\n}\n<div class=\"flex min-w-0 flex-1 flex-col gap-0.5 self-center\">\n\t@if (headingVar) {\n\t\t<p stText=\"7\" stTextWeight=\"semibold\" [stTextClass]=\"accentClass()\">{{ headingVar }}</p>\n\t}\n\t<div stText=\"7\" class=\"empty:hidden\"><ng-content /></div>\n</div>\n<ng-content select=\"st-alert-actions\" />\n@if (dismissible()) {\n\t<st-button\n\t\tclass=\"-my-1 shrink-0\"\n\t\tsize=\"sm\"\n\t\t[ghost]=\"true\"\n\t\t[circle]=\"true\"\n\t\t[icon]=\"dismissIcon\"\n\t\t[ariaLabel]=\"dismissLabel()\"\n\t\t(clicked)=\"dismiss()\"\n\t/>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommonModule } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, signal, computed, Injectable, input, output, ChangeDetectionStrategy, Component, viewChild, DestroyRef, model, effect, untracked } from '@angular/core';
|
|
3
|
+
import { inject, signal, computed, Injectable, input, booleanAttribute, output, ChangeDetectionStrategy, Component, viewChild, DestroyRef, model, effect, untracked } from '@angular/core';
|
|
4
4
|
import { matPlayArrow, matPause, matSkipPrevious, matSkipNext } from '@ng-icons/material-icons/baseline';
|
|
5
5
|
import { ButtonComponent } from '@sixbell-telco/sdk/components/button';
|
|
6
6
|
import { IconComponent } from '@sixbell-telco/sdk/components/icon';
|
|
@@ -225,14 +225,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
225
225
|
class ButtonPlayComponent {
|
|
226
226
|
audioService = inject(AudioPlayerService);
|
|
227
227
|
variant = input();
|
|
228
|
-
ghost = input(false);
|
|
229
|
-
outline = input(false);
|
|
230
|
-
circle = input(false);
|
|
231
|
-
square = input(false);
|
|
232
|
-
glass = input(false);
|
|
228
|
+
ghost = input(false, { transform: booleanAttribute });
|
|
229
|
+
outline = input(false, { transform: booleanAttribute });
|
|
230
|
+
circle = input(false, { transform: booleanAttribute });
|
|
231
|
+
square = input(false, { transform: booleanAttribute });
|
|
232
|
+
glass = input(false, { transform: booleanAttribute });
|
|
233
233
|
size = input();
|
|
234
|
-
shadow = input(false);
|
|
235
|
-
asButton = input(false);
|
|
234
|
+
shadow = input(false, { transform: booleanAttribute });
|
|
235
|
+
asButton = input(false, { transform: booleanAttribute });
|
|
236
236
|
isHovered = signal(false);
|
|
237
237
|
trackIndex = input.required();
|
|
238
238
|
togglePlay = output();
|
|
@@ -291,7 +291,7 @@ class ButtonPlayComponent {
|
|
|
291
291
|
this.togglePlay.emit();
|
|
292
292
|
}
|
|
293
293
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ButtonPlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
294
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ButtonPlayComponent, isStandalone: true, selector: "st-button-play", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, ghost: { classPropertyName: "ghost", publicName: "ghost", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null }, circle: { classPropertyName: "circle", publicName: "circle", isSignal: true, isRequired: false, transformFunction: null }, square: { classPropertyName: "square", publicName: "square", isSignal: true, isRequired: false, transformFunction: null }, glass: { classPropertyName: "glass", publicName: "glass", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, asButton: { classPropertyName: "asButton", publicName: "asButton", isSignal: true, isRequired: false, transformFunction: null }, trackIndex: { classPropertyName: "trackIndex", publicName: "trackIndex", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { togglePlay: "togglePlay" }, ngImport: i0, template: "@let waveBarsVar = waveBarsClass();\n@let iconClassVar = iconClass();\n@let iconVar = icon();\n\n@if (!asButton()) {\n\t<div\n\t\tclass=\"audio-play-thumbnail from-primary to-primary-gradient rounded-box relative grid h-10 min-h-10 w-10 min-w-10 place-content-center bg-linear-to-br text-lg text-white\"\n\t\t(mouseenter)=\"handleHover(true)\"\n\t\t(mouseleave)=\"handleHover(false)\"\n\t>\n\t\t<st-icon [icon]=\"iconMusicNote\"></st-icon>\n\n\t\t<div [class]=\"buttonClass()\">\n\t\t\t<st-button [circle]=\"true\" size=\"sm\" [shadow]=\"true\" variant=\"secondary\" [ariaLabel]=\"label()\" (click)=\"handleTogglePlay()\">\n\t\t\t\t<div class=\"relative h-full w-full\">\n\t\t\t\t\t<div [class]=\"waveBarsVar\">\n\t\t\t\t\t\t<div class=\"flex h-full w-full items-center justify-between\">\n\t\t\t\t\t\t\t@for (bar of waveBars; track $index) {\n\t\t\t\t\t\t\t\t<div [class]=\"bar.class\" [style.--i]=\"bar.delay\"></div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div [class]=\"iconClassVar\">\n\t\t\t\t\t\t<st-icon [icon]=\"iconVar\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</st-button>\n\t\t</div>\n\t</div>\n} @else {\n\t<st-button\n\t\t[variant]=\"variant()\"\n\t\t[ghost]=\"ghost()\"\n\t\t[outline]=\"outline()\"\n\t\t[circle]=\"circle()\"\n\t\t[square]=\"square()\"\n\t\t[glass]=\"glass()\"\n\t\t[size]=\"size()\"\n\t\t[shadow]=\"shadow()\"\n\t\t[ariaLabel]=\"label()\"\n\t\t(click)=\"handleTogglePlay()\"\n\t\t(mouseenter)=\"handleHover(true)\"\n\t\t(mouseleave)=\"handleHover(false)\"\n\t>\n\t\t<div class=\"relative h-full w-full\">\n\t\t\t<div [class]=\"waveBarsVar\">\n\t\t\t\t<div class=\"flex h-full w-full items-center justify-between\">\n\t\t\t\t\t@for (bar of waveBars; track $index) {\n\t\t\t\t\t\t<div [class]=\"bar.class\" [style.--i]=\"bar.delay\"></div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div [class]=\"iconClassVar\">\n\t\t\t\t<st-icon [icon]=\"iconVar\"></st-icon>\n\t\t\t</div>\n\t\t</div>\n\t</st-button>\n}\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
294
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ButtonPlayComponent, isStandalone: true, selector: "st-button-play", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, ghost: { classPropertyName: "ghost", publicName: "ghost", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null }, circle: { classPropertyName: "circle", publicName: "circle", isSignal: true, isRequired: false, transformFunction: null }, square: { classPropertyName: "square", publicName: "square", isSignal: true, isRequired: false, transformFunction: null }, glass: { classPropertyName: "glass", publicName: "glass", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, asButton: { classPropertyName: "asButton", publicName: "asButton", isSignal: true, isRequired: false, transformFunction: null }, trackIndex: { classPropertyName: "trackIndex", publicName: "trackIndex", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { togglePlay: "togglePlay" }, ngImport: i0, template: "@let waveBarsVar = waveBarsClass();\n@let iconClassVar = iconClass();\n@let iconVar = icon();\n\n@if (!asButton()) {\n\t<div\n\t\tclass=\"audio-play-thumbnail from-primary to-primary-gradient rounded-box relative grid h-10 min-h-10 w-10 min-w-10 place-content-center bg-linear-to-br text-lg text-white\"\n\t\t(mouseenter)=\"handleHover(true)\"\n\t\t(mouseleave)=\"handleHover(false)\"\n\t>\n\t\t<st-icon [icon]=\"iconMusicNote\"></st-icon>\n\n\t\t<div [class]=\"buttonClass()\">\n\t\t\t<st-button [circle]=\"true\" size=\"sm\" [shadow]=\"true\" variant=\"secondary\" [ariaLabel]=\"label()\" (click)=\"handleTogglePlay()\">\n\t\t\t\t<div class=\"relative h-full w-full\">\n\t\t\t\t\t<div [class]=\"waveBarsVar\">\n\t\t\t\t\t\t<div class=\"flex h-full w-full items-center justify-between\">\n\t\t\t\t\t\t\t@for (bar of waveBars; track $index) {\n\t\t\t\t\t\t\t\t<div [class]=\"bar.class\" [style.--i]=\"bar.delay\"></div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div [class]=\"iconClassVar\">\n\t\t\t\t\t\t<st-icon [icon]=\"iconVar\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</st-button>\n\t\t</div>\n\t</div>\n} @else {\n\t<st-button\n\t\t[variant]=\"variant()\"\n\t\t[ghost]=\"ghost()\"\n\t\t[outline]=\"outline()\"\n\t\t[circle]=\"circle()\"\n\t\t[square]=\"square()\"\n\t\t[glass]=\"glass()\"\n\t\t[size]=\"size()\"\n\t\t[shadow]=\"shadow()\"\n\t\t[ariaLabel]=\"label()\"\n\t\t(click)=\"handleTogglePlay()\"\n\t\t(mouseenter)=\"handleHover(true)\"\n\t\t(mouseleave)=\"handleHover(false)\"\n\t>\n\t\t<div class=\"relative h-full w-full\">\n\t\t\t<div [class]=\"waveBarsVar\">\n\t\t\t\t<div class=\"flex h-full w-full items-center justify-between\">\n\t\t\t\t\t@for (bar of waveBars; track $index) {\n\t\t\t\t\t\t<div [class]=\"bar.class\" [style.--i]=\"bar.delay\"></div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div [class]=\"iconClassVar\">\n\t\t\t\t<st-icon [icon]=\"iconVar\"></st-icon>\n\t\t\t</div>\n\t\t</div>\n\t</st-button>\n}\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDescribedBy", "ariaControls"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
295
295
|
}
|
|
296
296
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ButtonPlayComponent, decorators: [{
|
|
297
297
|
type: Component,
|
|
@@ -304,7 +304,7 @@ class AudioTimelineComponent {
|
|
|
304
304
|
* Stop event propagation for activation events
|
|
305
305
|
* @defaultValue false
|
|
306
306
|
*/
|
|
307
|
-
stopPropagation = input(false);
|
|
307
|
+
stopPropagation = input(false, { transform: booleanAttribute });
|
|
308
308
|
/**
|
|
309
309
|
* Event emitted on click
|
|
310
310
|
*/
|
|
@@ -416,7 +416,7 @@ class VolumeControlComponent {
|
|
|
416
416
|
* Stop event propagation for activation events
|
|
417
417
|
* @defaultValue false
|
|
418
418
|
*/
|
|
419
|
-
stopPropagation = input(false);
|
|
419
|
+
stopPropagation = input(false, { transform: booleanAttribute });
|
|
420
420
|
/**
|
|
421
421
|
* Event emitted on click
|
|
422
422
|
*/
|
|
@@ -514,7 +514,7 @@ class VolumeControlComponent {
|
|
|
514
514
|
this.audioService.setMuted(!this.audioService.isMuted());
|
|
515
515
|
}
|
|
516
516
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: VolumeControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
517
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: VolumeControlComponent, isStandalone: true, selector: "st-volume-control", inputs: { stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked", pointerDown: "pointerDown", triggered: "triggered" }, host: { listeners: { "document:mousemove": "onVolumeDrag($event)", "document:touchmove": "onVolumeDrag($event)", "document:mouseup": "stopVolumeDrag()", "document:touchend": "stopVolumeDrag()" } }, viewQueries: [{ propertyName: "volumeTimeline", first: true, predicate: ["volumeTimeline"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<!-- Volume Control -->\n<div class=\"flex items-center justify-end gap-2\">\n\t<!-- Mute/Unmute Button -->\n\t<st-button [ghost]=\"true\" size=\"sm\" [circle]=\"true\" [ariaLabel]=\"muteLabel()\" (click)=\"toggleMute()\">\n\t\t@if (audioService.volume() === 0) {\n\t\t\t<st-icon [icon]=\"iconVolumeMute\" size=\"sm\"></st-icon>\n\t\t} @else if (audioService.volume() > 0.5) {\n\t\t\t<st-icon [icon]=\"iconVolumeUp\" size=\"sm\"></st-icon>\n\t\t} @else {\n\t\t\t<st-icon [icon]=\"iconVolumeDown\" size=\"sm\"></st-icon>\n\t\t}\n\t</st-button>\n\n\t<!-- Custom Volume Progress Bar -->\n\t<div\n\t\t[class]=\"volumeTimelineClass()\"\n\t\t(click)=\"handleClick($event)\"\n\t\t#volumeTimeline\n\t\t(mouseenter)=\"handleVolumeHover(true)\"\n\t\t(mouseleave)=\"handleVolumeHover(false)\"\n\t>\n\t\t<!-- Volume Progress Bar Background -->\n\t\t<div class=\"bg-primary absolute h-full rounded-full\" [style.width]=\"audioService.volume() * 100 + '%'\"></div>\n\n\t\t<!-- Draggable Volume Circle -->\n\t\t<div\n\t\t\t[style.left]=\"'calc(' + audioService.volume() * 100 + '% - ' + (audioService.volume() === 1 ? '6px' : '3px') + ')'\"\n\t\t\t[class]=\"volumeTimelineCircleClass()\"\n\t\t\t#volumeCircle\n\t\t\t(pointerdown)=\"handlePointerDown($event); startVolumeDrag($event)\"\n\t\t></div>\n\t</div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
517
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: VolumeControlComponent, isStandalone: true, selector: "st-volume-control", inputs: { stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked", pointerDown: "pointerDown", triggered: "triggered" }, host: { listeners: { "document:mousemove": "onVolumeDrag($event)", "document:touchmove": "onVolumeDrag($event)", "document:mouseup": "stopVolumeDrag()", "document:touchend": "stopVolumeDrag()" } }, viewQueries: [{ propertyName: "volumeTimeline", first: true, predicate: ["volumeTimeline"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<!-- Volume Control -->\n<div class=\"flex items-center justify-end gap-2\">\n\t<!-- Mute/Unmute Button -->\n\t<st-button [ghost]=\"true\" size=\"sm\" [circle]=\"true\" [ariaLabel]=\"muteLabel()\" (click)=\"toggleMute()\">\n\t\t@if (audioService.volume() === 0) {\n\t\t\t<st-icon [icon]=\"iconVolumeMute\" size=\"sm\"></st-icon>\n\t\t} @else if (audioService.volume() > 0.5) {\n\t\t\t<st-icon [icon]=\"iconVolumeUp\" size=\"sm\"></st-icon>\n\t\t} @else {\n\t\t\t<st-icon [icon]=\"iconVolumeDown\" size=\"sm\"></st-icon>\n\t\t}\n\t</st-button>\n\n\t<!-- Custom Volume Progress Bar -->\n\t<div\n\t\t[class]=\"volumeTimelineClass()\"\n\t\t(click)=\"handleClick($event)\"\n\t\t#volumeTimeline\n\t\t(mouseenter)=\"handleVolumeHover(true)\"\n\t\t(mouseleave)=\"handleVolumeHover(false)\"\n\t>\n\t\t<!-- Volume Progress Bar Background -->\n\t\t<div class=\"bg-primary absolute h-full rounded-full\" [style.width]=\"audioService.volume() * 100 + '%'\"></div>\n\n\t\t<!-- Draggable Volume Circle -->\n\t\t<div\n\t\t\t[style.left]=\"'calc(' + audioService.volume() * 100 + '% - ' + (audioService.volume() === 1 ? '6px' : '3px') + ')'\"\n\t\t\t[class]=\"volumeTimelineCircleClass()\"\n\t\t\t#volumeCircle\n\t\t\t(pointerdown)=\"handlePointerDown($event); startVolumeDrag($event)\"\n\t\t></div>\n\t</div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDescribedBy", "ariaControls"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
518
518
|
}
|
|
519
519
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: VolumeControlComponent, decorators: [{
|
|
520
520
|
type: Component,
|
|
@@ -530,10 +530,10 @@ class AudioPlayerComponent {
|
|
|
530
530
|
audioPlayerService = inject(AudioPlayerService);
|
|
531
531
|
destroyRef = inject(DestroyRef);
|
|
532
532
|
variant = input('default');
|
|
533
|
-
shadow = input(false);
|
|
533
|
+
shadow = input(false, { transform: booleanAttribute });
|
|
534
534
|
opened = model(false);
|
|
535
535
|
tracks = input([]);
|
|
536
|
-
showTrackList = input(false);
|
|
536
|
+
showTrackList = input(false, { transform: booleanAttribute });
|
|
537
537
|
currentTrackIndex = model(-1);
|
|
538
538
|
currentTrack = computed(() => {
|
|
539
539
|
const tracks = this.tracks();
|
|
@@ -638,7 +638,7 @@ class AudioPlayerComponent {
|
|
|
638
638
|
this.opened.set(false);
|
|
639
639
|
}
|
|
640
640
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AudioPlayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
641
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: AudioPlayerComponent, isStandalone: true, selector: "st-audio-player", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, tracks: { classPropertyName: "tracks", publicName: "tracks", isSignal: true, isRequired: false, transformFunction: null }, showTrackList: { classPropertyName: "showTrackList", publicName: "showTrackList", isSignal: true, isRequired: false, transformFunction: null }, currentTrackIndex: { classPropertyName: "currentTrackIndex", publicName: "currentTrackIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "openedChange", currentTrackIndex: "currentTrackIndexChange" }, ngImport: i0, template: "<div class=\"flex w-full flex-col gap-4\">\n\t<!-- Track List -->\n\t@if (showTrackList()) {\n\t\t<div class=\"rounded-box border-neutral shadow-main mb-4 border\">\n\t\t\t<div class=\"p-4\">\n\t\t\t\t<h4 stText=\"4\">{{ 'sdk.audioPlayer.trackListTitle' | translate }}</h4>\n\t\t\t\t<div class=\"max-h-[300px] space-y-2 overflow-y-auto\">\n\t\t\t\t\t@for (track of tracks(); track $index; let i = $index) {\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"rounded-field hover:bg-base-300 flex cursor-pointer items-center gap-2 p-2\"\n\t\t\t\t\t\t\t[class.bg-base-300]=\"audioPlayerService.currentTrackIndex() === i\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<st-button-play [trackIndex]=\"i\" (click)=\"handleOpen()\"> </st-button-play>\n\t\t\t\t\t\t\t<div class=\"flex-1\">\n\t\t\t\t\t\t\t\t<div stText=\"7\">{{ track.title }}</div>\n\t\t\t\t\t\t\t\t<div stText=\"8\">{{ track.description }}</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t}\n\n\t<div [class]=\"playerClass()\" (animationend)=\"handleAnimationEnd($event)\" (animationstart)=\"handleAnimationStart($event)\">\n\t\t<!-- close button -->\n\t\t@if (variant() === 'fixed') {\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"group/close btn btn-ghost btn-square btn-primary btn-xs absolute top-1 right-1 grid place-content-center gap-0 hover:cursor-pointer\"\n\t\t\t\t(click)=\"handleClose()\"\n\t\t\t\t[attr.aria-label]=\"labels().close\"\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclass=\"bg-primary group-hover/close:bg-primary-content group-active/close:bg-primary-content group-focus-within/close:bg-primary-content relative h-0.5 w-4 translate-y-0.5 rounded-full transition-transform duration-300 ease-in-out group-focus-within/close:rotate-45 group-hover/close:rotate-45 group-active/close:rotate-45\"\n\t\t\t\t></div>\n\t\t\t\t<div\n\t\t\t\t\tclass=\"bg-primary group-hover/close:bg-primary-content group-active/close:bg-primary-content group-focus-within/close:bg-primary-content h-0.5 w-4 rounded-full transition-transform duration-300 ease-in-out group-focus-within/close:-rotate-45 group-hover/close:-rotate-45 group-active/close:-rotate-45\"\n\t\t\t\t></div>\n\t\t\t</button>\n\t\t}\n\n\t\t<!-- track info -->\n\t\t<div class=\"min-w-0\">\n\t\t\t<!-- Added min-w-0 to prevent overflow -->\n\t\t\t<st-track-info [currentTrack]=\"currentTrack()\"></st-track-info>\n\t\t</div>\n\n\t\t<div class=\"min-w-0\">\n\t\t\t<!-- Center section -->\n\t\t\t<!-- Your controls content -->\n\t\t\t<div class=\"grid items-center\">\n\t\t\t\t<!-- Controls -->\n\t\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t\t<st-button (click)=\"previous()\" [ghost]=\"true\" [circle]=\"true\" size=\"sm\" [ariaLabel]=\"labels().previous\">\n\t\t\t\t\t\t<st-icon [icon]=\"iconSkipPrevious\" size=\"sm\"></st-icon>\n\t\t\t\t\t</st-button>\n\n\t\t\t\t\t<st-button (click)=\"togglePlay()\" variant=\"primary\" [circle]=\"true\" size=\"sm\" [shadow]=\"true\" [ariaLabel]=\"labels().playPause\">\n\t\t\t\t\t\t<st-icon [icon]=\"audioPlayerService.isPlaying() ? iconPause : iconPlay\" size=\"sm\"></st-icon>\n\t\t\t\t\t</st-button>\n\n\t\t\t\t\t<st-button (click)=\"next()\" [ghost]=\"true\" [circle]=\"true\" size=\"sm\" [ariaLabel]=\"labels().next\">\n\t\t\t\t\t\t<st-icon [icon]=\"iconSkipNext\" size=\"sm\"></st-icon>\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- Progress Bar -->\n\t\t\t\t<st-timeline (triggered)=\"handleInteraction()\"></st-timeline>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<!-- Volume Control -->\n\t\t<div class=\"min-w-0 justify-self-end\">\n\t\t\t<!-- Right-aligned -->\n\t\t\t<st-volume-control (triggered)=\"handleInteraction()\"></st-volume-control>\n\t\t</div>\n\t</div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: VolumeControlComponent, selector: "st-volume-control", inputs: ["stopPropagation"], outputs: ["clicked", "pointerDown", "triggered"] }, { kind: "component", type: TrackInfoComponent, selector: "st-track-info", inputs: ["currentTrack"] }, { kind: "component", type: AudioTimelineComponent, selector: "st-timeline", inputs: ["stopPropagation"], outputs: ["clicked", "pointerDown", "triggered"] }, { kind: "component", type: ButtonPlayComponent, selector: "st-button-play", inputs: ["variant", "ghost", "outline", "circle", "square", "glass", "size", "shadow", "asButton", "trackIndex"], outputs: ["togglePlay"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
641
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: AudioPlayerComponent, isStandalone: true, selector: "st-audio-player", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, tracks: { classPropertyName: "tracks", publicName: "tracks", isSignal: true, isRequired: false, transformFunction: null }, showTrackList: { classPropertyName: "showTrackList", publicName: "showTrackList", isSignal: true, isRequired: false, transformFunction: null }, currentTrackIndex: { classPropertyName: "currentTrackIndex", publicName: "currentTrackIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "openedChange", currentTrackIndex: "currentTrackIndexChange" }, ngImport: i0, template: "<div class=\"flex w-full flex-col gap-4\">\n\t<!-- Track List -->\n\t@if (showTrackList()) {\n\t\t<div class=\"rounded-box border-neutral shadow-main mb-4 border\">\n\t\t\t<div class=\"p-4\">\n\t\t\t\t<h4 stText=\"4\">{{ 'sdk.audioPlayer.trackListTitle' | translate }}</h4>\n\t\t\t\t<div class=\"max-h-[300px] space-y-2 overflow-y-auto\">\n\t\t\t\t\t@for (track of tracks(); track $index; let i = $index) {\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"rounded-field hover:bg-base-300 flex cursor-pointer items-center gap-2 p-2\"\n\t\t\t\t\t\t\t[class.bg-base-300]=\"audioPlayerService.currentTrackIndex() === i\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<st-button-play [trackIndex]=\"i\" (click)=\"handleOpen()\"> </st-button-play>\n\t\t\t\t\t\t\t<div class=\"flex-1\">\n\t\t\t\t\t\t\t\t<div stText=\"7\">{{ track.title }}</div>\n\t\t\t\t\t\t\t\t<div stText=\"8\">{{ track.description }}</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t}\n\n\t<div [class]=\"playerClass()\" (animationend)=\"handleAnimationEnd($event)\" (animationstart)=\"handleAnimationStart($event)\">\n\t\t<!-- close button -->\n\t\t@if (variant() === 'fixed') {\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"group/close btn btn-ghost btn-square btn-primary btn-xs absolute top-1 right-1 grid place-content-center gap-0 hover:cursor-pointer\"\n\t\t\t\t(click)=\"handleClose()\"\n\t\t\t\t[attr.aria-label]=\"labels().close\"\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclass=\"bg-primary group-hover/close:bg-primary-content group-active/close:bg-primary-content group-focus-within/close:bg-primary-content relative h-0.5 w-4 translate-y-0.5 rounded-full transition-transform duration-300 ease-in-out group-focus-within/close:rotate-45 group-hover/close:rotate-45 group-active/close:rotate-45\"\n\t\t\t\t></div>\n\t\t\t\t<div\n\t\t\t\t\tclass=\"bg-primary group-hover/close:bg-primary-content group-active/close:bg-primary-content group-focus-within/close:bg-primary-content h-0.5 w-4 rounded-full transition-transform duration-300 ease-in-out group-focus-within/close:-rotate-45 group-hover/close:-rotate-45 group-active/close:-rotate-45\"\n\t\t\t\t></div>\n\t\t\t</button>\n\t\t}\n\n\t\t<!-- track info -->\n\t\t<div class=\"min-w-0\">\n\t\t\t<!-- Added min-w-0 to prevent overflow -->\n\t\t\t<st-track-info [currentTrack]=\"currentTrack()\"></st-track-info>\n\t\t</div>\n\n\t\t<div class=\"min-w-0\">\n\t\t\t<!-- Center section -->\n\t\t\t<!-- Your controls content -->\n\t\t\t<div class=\"grid items-center\">\n\t\t\t\t<!-- Controls -->\n\t\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t\t<st-button (click)=\"previous()\" [ghost]=\"true\" [circle]=\"true\" size=\"sm\" [ariaLabel]=\"labels().previous\">\n\t\t\t\t\t\t<st-icon [icon]=\"iconSkipPrevious\" size=\"sm\"></st-icon>\n\t\t\t\t\t</st-button>\n\n\t\t\t\t\t<st-button (click)=\"togglePlay()\" variant=\"primary\" [circle]=\"true\" size=\"sm\" [shadow]=\"true\" [ariaLabel]=\"labels().playPause\">\n\t\t\t\t\t\t<st-icon [icon]=\"audioPlayerService.isPlaying() ? iconPause : iconPlay\" size=\"sm\"></st-icon>\n\t\t\t\t\t</st-button>\n\n\t\t\t\t\t<st-button (click)=\"next()\" [ghost]=\"true\" [circle]=\"true\" size=\"sm\" [ariaLabel]=\"labels().next\">\n\t\t\t\t\t\t<st-icon [icon]=\"iconSkipNext\" size=\"sm\"></st-icon>\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- Progress Bar -->\n\t\t\t\t<st-timeline (triggered)=\"handleInteraction()\"></st-timeline>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<!-- Volume Control -->\n\t\t<div class=\"min-w-0 justify-self-end\">\n\t\t\t<!-- Right-aligned -->\n\t\t\t<st-volume-control (triggered)=\"handleInteraction()\"></st-volume-control>\n\t\t</div>\n\t</div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDescribedBy", "ariaControls"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: VolumeControlComponent, selector: "st-volume-control", inputs: ["stopPropagation"], outputs: ["clicked", "pointerDown", "triggered"] }, { kind: "component", type: TrackInfoComponent, selector: "st-track-info", inputs: ["currentTrack"] }, { kind: "component", type: AudioTimelineComponent, selector: "st-timeline", inputs: ["stopPropagation"], outputs: ["clicked", "pointerDown", "triggered"] }, { kind: "component", type: ButtonPlayComponent, selector: "st-button-play", inputs: ["variant", "ghost", "outline", "circle", "square", "glass", "size", "shadow", "asButton", "trackIndex"], outputs: ["togglePlay"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
642
642
|
}
|
|
643
643
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AudioPlayerComponent, decorators: [{
|
|
644
644
|
type: Component,
|