@sixbell-telco/sdk 0.71.0 → 1.0.1
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 +307 -26
- package/README.md +285 -224
- package/_index.css +452 -0
- package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -1
- package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +2 -2
- package/components/audio-player/button-play/button-play.component.d.ts +6 -6
- package/components/audio-player/services/audio.service.d.ts +1 -0
- package/components/audio-player/src/audio-player.component.d.ts +14 -8
- package/components/audio-player/volume-control/volume-control.component.d.ts +2 -2
- package/components/avatar/src/avatar.component.d.ts +116 -8
- package/components/badge/src/badge.component.d.ts +69 -7
- package/components/button/src/button.component.d.ts +120 -8
- package/components/card/card-actions/card-actions.component.d.ts +29 -1
- package/components/card/card-content/card-content.component.d.ts +25 -0
- package/components/card/card-title/card-title.component.d.ts +22 -0
- package/components/card/src/card.component.d.ts +90 -5
- package/components/countdown/src/countdown.component.d.ts +2 -6
- package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +35 -2
- package/components/dropdown/src/dropdown.component.d.ts +151 -9
- package/components/dual-list/src/dual-list.component.d.ts +7 -8
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +254 -0
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +209 -0
- package/components/file-upload/index.d.ts +5 -0
- package/components/file-upload/public-api.d.ts +4 -0
- package/components/file-upload/shared/types/file-upload.d.ts +8 -0
- package/components/forms/checkbox/src/checkbox.component.d.ts +68 -5
- package/components/forms/combobox/src/combobox.component.d.ts +476 -39
- package/components/forms/datepicker/src/datepicker.component.d.ts +2 -2
- package/components/forms/form-error/src/form-error.component.d.ts +2 -2
- package/components/forms/input/input-content/input-content.component.d.ts +8 -0
- package/components/forms/input/public-api.d.ts +1 -0
- package/components/forms/input/src/input.component.d.ts +148 -25
- package/components/forms/radio/src/radio.component.d.ts +83 -7
- package/components/forms/range/src/range.component.d.ts +101 -6
- package/components/forms/select/src/select.component.d.ts +316 -24
- package/components/forms/switch/src/switch.component.d.ts +74 -7
- package/components/forms/textarea/src/textarea.component.d.ts +172 -16
- package/components/forms/toggle/src/toggle.component.d.ts +3 -3
- package/components/icon/src/icon.component.d.ts +5 -5
- package/components/link/src/link.component.d.ts +1 -1
- package/components/modal/modal-actions/modal-actions.component.d.ts +1 -1
- package/components/modal/src/modal.component.d.ts +10 -10
- package/components/notification/src/notification.component.d.ts +2 -3
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +64 -15
- package/components/paginator/src/paginator.component.d.ts +93 -2
- package/components/product-card/src/product-card.component.d.ts +7 -8
- package/components/progress/src/progress.component.d.ts +59 -4
- package/components/tab/directives/tab-content/tab-content.directive.d.ts +1 -1
- package/components/tab/directives/tab-header/tab-header.directive.d.ts +1 -1
- package/components/tab/src/tab.component.d.ts +3 -3
- package/components/table/public-api.d.ts +2 -0
- package/components/table/src/table.component.d.ts +160 -14
- package/components/table/table-action/table-action.component.d.ts +49 -0
- package/components/table/table-actions/table-actions.component.d.ts +25 -0
- package/components/table/table-header-checkbox/table-header-checkbox.component.d.ts +42 -0
- package/components/table/table-row-checkbox/table-row-checkbox.component.d.ts +46 -0
- package/components/toast/toast-message/toast-message.component.d.ts +3 -3
- package/components/tooltip/public-api.d.ts +1 -0
- package/components/tooltip/src/tooltip.component.d.ts +66 -5
- package/components/tooltip/tooltip-content/tooltip-content.component.d.ts +38 -0
- package/components/wizard/public-api.d.ts +2 -3
- package/components/wizard/services/wizard.service.d.ts +221 -0
- package/components/wizard/wizard-actions/wizard-actions.component.d.ts +8 -0
- package/components/wizard/wizard-content/wizard-content.component.d.ts +67 -13
- package/components/wizard/wizard-marker/wizard-marker.component.d.ts +81 -6
- package/components/wizard/wizard-step/wizard-step.component.d.ts +76 -9
- package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +91 -9
- package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +152 -16
- package/directives/auto-focus/index.d.ts +5 -0
- package/directives/auto-focus/public-api.d.ts +1 -0
- package/directives/auto-focus/src/autofocus.directive.d.ts +93 -0
- package/directives/click-outside/src/click-outside.directive.d.ts +48 -3
- package/directives/only-numbers/index.d.ts +5 -0
- package/directives/only-numbers/public-api.d.ts +1 -0
- package/directives/only-numbers/src/just-numbers.directive.d.ts +9 -0
- package/directives/typography/src/typography.directive.d.ts +47 -1
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +10 -12
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +119 -69
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +109 -19
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +92 -46
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +153 -34
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +195 -33
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +8 -11
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +197 -26
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +30 -18
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +706 -0
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +85 -25
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +996 -113
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +11 -11
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +13 -12
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +221 -121
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +98 -26
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +117 -25
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +671 -74
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +95 -45
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +236 -75
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +74 -258
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs +23 -14
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +16 -16
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs +39 -36
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +16 -9
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +189 -59
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +35 -43
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +60 -12
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +33 -35
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +403 -58
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +28 -44
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +112 -10
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +897 -161
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +206 -0
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +54 -11
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +52 -0
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +66 -15
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-cn.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-generators-uuid.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs.map +1 -1
- package/package.json +49 -145
- package/sixbell-telco-sdk-1.0.1.tgz +0 -0
- package/_index.scss +0 -146
- package/assets/styles/combobox.scss +0 -454
- package/components/file-upload/file-dropzone/index.d.ts +0 -5
- package/components/file-upload/file-dropzone/public-api.d.ts +0 -1
- package/components/file-upload/file-dropzone/src/file-dropzone.component.d.ts +0 -68
- package/components/file-upload/file-uploader/index.d.ts +0 -5
- package/components/file-upload/file-uploader/public-api.d.ts +0 -1
- package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +0 -46
- package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +0 -43
- package/esm2022/components/accordion/public-api.mjs +0 -3
- package/esm2022/components/accordion/sixbell-telco-sdk-components-accordion.mjs +0 -5
- package/esm2022/components/accordion/src/accordion.component.mjs +0 -13
- package/esm2022/components/audio-player/audio-timeline/audio-timeline.component.mjs +0 -76
- package/esm2022/components/audio-player/button-play/button-play.component.mjs +0 -71
- package/esm2022/components/audio-player/public-api.mjs +0 -4
- package/esm2022/components/audio-player/services/audio.service.mjs +0 -189
- package/esm2022/components/audio-player/sixbell-telco-sdk-components-audio-player.mjs +0 -5
- package/esm2022/components/audio-player/src/audio-player.component.mjs +0 -84
- package/esm2022/components/audio-player/track-info/track-info.component.mjs +0 -17
- package/esm2022/components/audio-player/volume-control/volume-control.component.mjs +0 -83
- package/esm2022/components/avatar/public-api.mjs +0 -2
- package/esm2022/components/avatar/sixbell-telco-sdk-components-avatar.mjs +0 -5
- package/esm2022/components/avatar/src/avatar.component.mjs +0 -59
- package/esm2022/components/badge/public-api.mjs +0 -2
- package/esm2022/components/badge/sixbell-telco-sdk-components-badge.mjs +0 -5
- package/esm2022/components/badge/src/badge.component.mjs +0 -76
- package/esm2022/components/button/public-api.mjs +0 -2
- package/esm2022/components/button/sixbell-telco-sdk-components-button.mjs +0 -5
- package/esm2022/components/button/src/button.component.mjs +0 -84
- package/esm2022/components/card/card-actions/card-actions.component.mjs +0 -22
- package/esm2022/components/card/card-content/card-content.component.mjs +0 -12
- package/esm2022/components/card/card-title/card-title.component.mjs +0 -12
- package/esm2022/components/card/public-api.mjs +0 -5
- package/esm2022/components/card/sixbell-telco-sdk-components-card.mjs +0 -5
- package/esm2022/components/card/src/card.component.mjs +0 -32
- package/esm2022/components/countdown/public-api.mjs +0 -2
- package/esm2022/components/countdown/sixbell-telco-sdk-components-countdown.mjs +0 -5
- package/esm2022/components/countdown/src/countdown.component.mjs +0 -60
- package/esm2022/components/dropdown/dropdown-item/dropdown-item.component.mjs +0 -24
- package/esm2022/components/dropdown/public-api.mjs +0 -3
- package/esm2022/components/dropdown/sixbell-telco-sdk-components-dropdown.mjs +0 -5
- package/esm2022/components/dropdown/src/dropdown.component.mjs +0 -127
- package/esm2022/components/dual-list/public-api.mjs +0 -2
- package/esm2022/components/dual-list/sixbell-telco-sdk-components-dual-list.mjs +0 -5
- package/esm2022/components/dual-list/src/dual-list.component.mjs +0 -174
- package/esm2022/components/file-upload/file-dropzone/public-api.mjs +0 -2
- package/esm2022/components/file-upload/file-dropzone/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +0 -5
- package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +0 -232
- package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.constants.mjs +0 -7
- package/esm2022/components/file-upload/file-uploader/public-api.mjs +0 -2
- package/esm2022/components/file-upload/file-uploader/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +0 -5
- package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +0 -114
- package/esm2022/components/forms/checkbox/public-api.mjs +0 -2
- package/esm2022/components/forms/checkbox/sixbell-telco-sdk-components-forms-checkbox.mjs +0 -5
- package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +0 -94
- package/esm2022/components/forms/combobox/public-api.mjs +0 -2
- package/esm2022/components/forms/combobox/sixbell-telco-sdk-components-forms-combobox.mjs +0 -5
- package/esm2022/components/forms/combobox/src/combobox.component.mjs +0 -165
- package/esm2022/components/forms/datepicker/public-api.mjs +0 -3
- package/esm2022/components/forms/datepicker/sixbell-telco-sdk-components-forms-datepicker.mjs +0 -5
- package/esm2022/components/forms/datepicker/src/datepicker-format-month.pipe.mjs +0 -20
- package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +0 -190
- package/esm2022/components/forms/form-error/public-api.mjs +0 -2
- package/esm2022/components/forms/form-error/sixbell-telco-sdk-components-forms-form-error.mjs +0 -5
- package/esm2022/components/forms/form-error/src/form-error.component.mjs +0 -32
- package/esm2022/components/forms/input/public-api.mjs +0 -2
- package/esm2022/components/forms/input/sixbell-telco-sdk-components-forms-input.mjs +0 -5
- package/esm2022/components/forms/input/src/input.component.mjs +0 -201
- package/esm2022/components/forms/radio/public-api.mjs +0 -2
- package/esm2022/components/forms/radio/sixbell-telco-sdk-components-forms-radio.mjs +0 -5
- package/esm2022/components/forms/radio/src/radio.component.mjs +0 -96
- package/esm2022/components/forms/range/public-api.mjs +0 -2
- package/esm2022/components/forms/range/sixbell-telco-sdk-components-forms-range.mjs +0 -5
- package/esm2022/components/forms/range/src/range.component.mjs +0 -103
- package/esm2022/components/forms/select/public-api.mjs +0 -2
- package/esm2022/components/forms/select/sixbell-telco-sdk-components-forms-select.mjs +0 -5
- package/esm2022/components/forms/select/src/select.component.mjs +0 -138
- package/esm2022/components/forms/switch/public-api.mjs +0 -2
- package/esm2022/components/forms/switch/sixbell-telco-sdk-components-forms-switch.mjs +0 -5
- package/esm2022/components/forms/switch/src/switch.component.mjs +0 -108
- package/esm2022/components/forms/textarea/public-api.mjs +0 -2
- package/esm2022/components/forms/textarea/sixbell-telco-sdk-components-forms-textarea.mjs +0 -5
- package/esm2022/components/forms/textarea/src/textarea.component.mjs +0 -167
- package/esm2022/components/forms/toggle/public-api.mjs +0 -2
- package/esm2022/components/forms/toggle/sixbell-telco-sdk-components-forms-toggle.mjs +0 -5
- package/esm2022/components/forms/toggle/src/toggle.component.mjs +0 -404
- package/esm2022/components/icon/heroicons/mini/public-api.mjs +0 -2
- package/esm2022/components/icon/heroicons/mini/sixbell-telco-sdk-components-icon-heroicons-mini.mjs +0 -5
- package/esm2022/components/icon/heroicons/outline/public-api.mjs +0 -2
- package/esm2022/components/icon/heroicons/outline/sixbell-telco-sdk-components-icon-heroicons-outline.mjs +0 -5
- package/esm2022/components/icon/heroicons/solid/public-api.mjs +0 -2
- package/esm2022/components/icon/heroicons/solid/sixbell-telco-sdk-components-icon-heroicons-solid.mjs +0 -5
- package/esm2022/components/icon/ionicons/public-api.mjs +0 -2
- package/esm2022/components/icon/ionicons/sixbell-telco-sdk-components-icon-ionicons.mjs +0 -5
- package/esm2022/components/icon/material/baseline/public-api.mjs +0 -2
- package/esm2022/components/icon/material/baseline/sixbell-telco-sdk-components-icon-material-baseline.mjs +0 -5
- package/esm2022/components/icon/material/outline/public-api.mjs +0 -2
- package/esm2022/components/icon/material/outline/sixbell-telco-sdk-components-icon-material-outline.mjs +0 -5
- package/esm2022/components/icon/material/round/public-api.mjs +0 -2
- package/esm2022/components/icon/material/round/sixbell-telco-sdk-components-icon-material-round.mjs +0 -5
- package/esm2022/components/icon/material/sharp/public-api.mjs +0 -2
- package/esm2022/components/icon/material/sharp/sixbell-telco-sdk-components-icon-material-sharp.mjs +0 -5
- package/esm2022/components/icon/public-api.mjs +0 -2
- package/esm2022/components/icon/sixbell-telco-sdk-components-icon.mjs +0 -5
- package/esm2022/components/icon/src/icon.component.mjs +0 -41
- package/esm2022/components/link/public-api.mjs +0 -2
- package/esm2022/components/link/sixbell-telco-sdk-components-link.mjs +0 -5
- package/esm2022/components/link/src/link.component.mjs +0 -63
- package/esm2022/components/modal/modal-actions/modal-actions.component.mjs +0 -22
- package/esm2022/components/modal/modal-content/modal-content.component.mjs +0 -12
- package/esm2022/components/modal/modal-title/modal-title.component.mjs +0 -13
- package/esm2022/components/modal/public-api.mjs +0 -5
- package/esm2022/components/modal/sixbell-telco-sdk-components-modal.mjs +0 -5
- package/esm2022/components/modal/src/modal.component.mjs +0 -154
- package/esm2022/components/notification/public-api.mjs +0 -2
- package/esm2022/components/notification/sixbell-telco-sdk-components-notification.mjs +0 -5
- package/esm2022/components/notification/src/notification.component.mjs +0 -55
- package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +0 -113
- package/esm2022/components/paginator/public-api.mjs +0 -3
- package/esm2022/components/paginator/sixbell-telco-sdk-components-paginator.mjs +0 -5
- package/esm2022/components/paginator/src/paginator.component.mjs +0 -52
- package/esm2022/components/product-card/directives/product-card-actions.directive.mjs +0 -15
- package/esm2022/components/product-card/directives/product-card-content.directive.mjs +0 -15
- package/esm2022/components/product-card/directives/product-card-header.directive.mjs +0 -15
- package/esm2022/components/product-card/public-api.mjs +0 -5
- package/esm2022/components/product-card/sixbell-telco-sdk-components-product-card.mjs +0 -5
- package/esm2022/components/product-card/src/product-card.component.mjs +0 -140
- package/esm2022/components/progress/public-api.mjs +0 -2
- package/esm2022/components/progress/sixbell-telco-sdk-components-progress.mjs +0 -5
- package/esm2022/components/progress/src/progress.component.mjs +0 -43
- package/esm2022/components/tab/directives/tab-content/tab-content.directive.mjs +0 -51
- package/esm2022/components/tab/directives/tab-header/tab-header.directive.mjs +0 -56
- package/esm2022/components/tab/public-api.mjs +0 -4
- package/esm2022/components/tab/sixbell-telco-sdk-components-tab.mjs +0 -5
- package/esm2022/components/tab/src/tab.component.mjs +0 -42
- package/esm2022/components/table/public-api.mjs +0 -4
- package/esm2022/components/table/sixbell-telco-sdk-components-table.mjs +0 -5
- package/esm2022/components/table/src/table.component.mjs +0 -143
- package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +0 -25
- package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +0 -26
- package/esm2022/components/toast/public-api.mjs +0 -4
- package/esm2022/components/toast/services/toast.service.mjs +0 -67
- package/esm2022/components/toast/sixbell-telco-sdk-components-toast.mjs +0 -5
- package/esm2022/components/toast/toast-message/toast-message.component.mjs +0 -80
- package/esm2022/components/toast/toasts-container/toasts-container.component.mjs +0 -41
- package/esm2022/components/tooltip/public-api.mjs +0 -2
- package/esm2022/components/tooltip/sixbell-telco-sdk-components-tooltip.mjs +0 -5
- package/esm2022/components/tooltip/src/tooltip.component.mjs +0 -45
- package/esm2022/components/wizard/public-api.mjs +0 -6
- package/esm2022/components/wizard/sixbell-telco-sdk-components-wizard.mjs +0 -5
- package/esm2022/components/wizard/wizard-content/wizard-content.component.mjs +0 -30
- package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +0 -24
- package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +0 -44
- package/esm2022/components/wizard/wizard-sub-step/wizard-sub-step.component.mjs +0 -34
- package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +0 -88
- package/esm2022/directives/click-outside/public-api.mjs +0 -2
- package/esm2022/directives/click-outside/sixbell-telco-sdk-directives-click-outside.mjs +0 -5
- package/esm2022/directives/click-outside/src/click-outside.directive.mjs +0 -30
- package/esm2022/directives/typography/public-api.mjs +0 -2
- package/esm2022/directives/typography/sixbell-telco-sdk-directives-typography.mjs +0 -5
- package/esm2022/directives/typography/src/typography.directive.mjs +0 -68
- package/esm2022/public_api.mjs +0 -2
- package/esm2022/sixbell-telco-sdk.mjs +0 -5
- package/esm2022/utils/cn/public-api.mjs +0 -2
- package/esm2022/utils/cn/sixbell-telco-sdk-utils-cn.mjs +0 -5
- package/esm2022/utils/cn/src/cn.mjs +0 -6
- package/esm2022/utils/generators/uuid/public-api.mjs +0 -2
- package/esm2022/utils/generators/uuid/sixbell-telco-sdk-utils-generators-uuid.mjs +0 -5
- package/esm2022/utils/generators/uuid/src/uuid.mjs +0 -5
- package/esm2022/utils/pipes/extract-extension/public-api.mjs +0 -2
- package/esm2022/utils/pipes/extract-extension/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +0 -5
- package/esm2022/utils/pipes/extract-extension/src/extract-extension.mjs +0 -30
- package/esm2022/utils/pipes/time/public-api.mjs +0 -2
- package/esm2022/utils/pipes/time/sixbell-telco-sdk-utils-pipes-time.mjs +0 -5
- package/esm2022/utils/pipes/time/src/time.pipe.mjs +0 -19
- package/esm2022/utils/pipes/to-bytes-extesion/public-api.mjs +0 -2
- package/esm2022/utils/pipes/to-bytes-extesion/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +0 -5
- package/esm2022/utils/pipes/to-bytes-extesion/src/to-bytes.pipe.mjs +0 -29
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +0 -245
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +0 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +0 -121
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +0 -1
- /package/assets/styles/{toast.scss → toast.css} +0 -0
- /package/components/file-upload/{file-dropzone/src/file-dropzone.constants.d.ts → shared/const/file-upload.constants.d.ts} +0 -0
|
@@ -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,
|
|
3
|
+
import { inject, signal, computed, Injectable, input, output, ChangeDetectionStrategy, Component, viewChild, HostListener, model, effect } 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';
|
|
@@ -8,6 +8,7 @@ import { heroMusicalNoteMini } from '@sixbell-telco/sdk/components/icon/heroicon
|
|
|
8
8
|
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
9
9
|
import { HttpClient } from '@angular/common/http';
|
|
10
10
|
import { firstValueFrom } from 'rxjs';
|
|
11
|
+
import { TranslatePipe } from '@ngx-translate/core';
|
|
11
12
|
import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
|
|
12
13
|
import { TimePipe } from '@sixbell-telco/sdk/utils/pipes/time';
|
|
13
14
|
import { matVolumeUpOutline, matVolumeDownOutline, matVolumeMuteOutline } from '@ng-icons/material-icons/outline';
|
|
@@ -97,10 +98,29 @@ class AudioPlayerService {
|
|
|
97
98
|
this._isInitializing.set(false);
|
|
98
99
|
}
|
|
99
100
|
}
|
|
101
|
+
init() {
|
|
102
|
+
this.audio = new Audio();
|
|
103
|
+
this.setupAudioListeners();
|
|
104
|
+
this.restoreVolumeSettings();
|
|
105
|
+
}
|
|
100
106
|
cleanup() {
|
|
107
|
+
this.audio.pause();
|
|
108
|
+
this.audio.src = '';
|
|
101
109
|
this.objectUrls.forEach((url) => URL.revokeObjectURL(url));
|
|
102
110
|
this.objectUrls.clear();
|
|
103
|
-
|
|
111
|
+
// reset signals
|
|
112
|
+
this._tracks.set([]);
|
|
113
|
+
this._currentTrackIndex.set(-1);
|
|
114
|
+
this._isPlaying.set(false);
|
|
115
|
+
this._duration.set(0);
|
|
116
|
+
this._currentTime.set(0);
|
|
117
|
+
this._volume.set(1);
|
|
118
|
+
this._isMuted.set(false);
|
|
119
|
+
this._lastVolume.set(1);
|
|
120
|
+
this._isBuffering.set(false);
|
|
121
|
+
this._isInitializing.set(false);
|
|
122
|
+
this._autoPlayNext.set(false);
|
|
123
|
+
this._error.set(null);
|
|
104
124
|
}
|
|
105
125
|
async togglePlay() {
|
|
106
126
|
if (!this.checkIfTrackIsLoaded())
|
|
@@ -189,10 +209,10 @@ class AudioPlayerService {
|
|
|
189
209
|
checkIfTrackIsLoaded() {
|
|
190
210
|
return this.audio.src !== '';
|
|
191
211
|
}
|
|
192
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
193
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
212
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AudioPlayerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
213
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AudioPlayerService, providedIn: 'root' });
|
|
194
214
|
}
|
|
195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AudioPlayerService, decorators: [{
|
|
196
216
|
type: Injectable,
|
|
197
217
|
args: [{ providedIn: 'root' }]
|
|
198
218
|
}], ctorParameters: () => [] });
|
|
@@ -210,7 +230,7 @@ class ButtonPlayComponent {
|
|
|
210
230
|
asButton = input(false);
|
|
211
231
|
isHovered = signal(false);
|
|
212
232
|
trackIndex = input.required();
|
|
213
|
-
|
|
233
|
+
togglePlay = output();
|
|
214
234
|
iconMusicNote = heroMusicalNoteMini;
|
|
215
235
|
iconPlay = matPlayArrow;
|
|
216
236
|
iconPause = matPause;
|
|
@@ -221,24 +241,24 @@ class ButtonPlayComponent {
|
|
|
221
241
|
{ delay: '0.3s', class: 'h-3/5 animate-wave w-[2px] rounded-full bg-current' },
|
|
222
242
|
{ delay: '0.4s', class: 'h-1/5 animate-wave w-[2px] rounded-full bg-current' },
|
|
223
243
|
];
|
|
224
|
-
|
|
225
|
-
return cn('absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 opacity-0 transition-opacity duration-200 inline-flex items-center justify-center', {
|
|
244
|
+
buttonClass = computed(() => {
|
|
245
|
+
return cn('absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 opacity-0 transition-opacity duration-200 inline-flex items-center justify-center align-top', {
|
|
226
246
|
'opacity-100': (this.audioService.isPlaying() && this.trackIndex() === this.audioService.currentTrackIndex()) || this.isHovered(),
|
|
227
247
|
});
|
|
228
|
-
}
|
|
229
|
-
|
|
248
|
+
});
|
|
249
|
+
waveBarsClass = computed(() => {
|
|
230
250
|
return cn('h-6 w-6 opacity-0 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity duration-200', {
|
|
231
251
|
'opacity-100': this.audioService.isPlaying() && this.trackIndex() === this.audioService.currentTrackIndex() && !this.isHovered(),
|
|
232
252
|
});
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
return cn('opacity-0 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity duration-200 inline-flex items-center justify-center', {
|
|
253
|
+
});
|
|
254
|
+
iconClass = computed(() => {
|
|
255
|
+
return cn('opacity-0 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity duration-200 inline-flex items-center justify-center align-top text-lg', {
|
|
236
256
|
'opacity-100': !this.audioService.isPlaying() || this.trackIndex() !== this.audioService.currentTrackIndex() || this.isHovered(),
|
|
237
257
|
});
|
|
238
|
-
}
|
|
239
|
-
|
|
258
|
+
});
|
|
259
|
+
icon = computed(() => {
|
|
240
260
|
return this.audioService.isPlaying() && this.trackIndex() === this.audioService.currentTrackIndex() ? this.iconPause : this.iconPlay;
|
|
241
|
-
}
|
|
261
|
+
});
|
|
242
262
|
handleHover(isHovered) {
|
|
243
263
|
this.isHovered.set(isHovered);
|
|
244
264
|
}
|
|
@@ -249,14 +269,14 @@ class ButtonPlayComponent {
|
|
|
249
269
|
else {
|
|
250
270
|
await this.audioService.togglePlay();
|
|
251
271
|
}
|
|
252
|
-
this.
|
|
272
|
+
this.togglePlay.emit();
|
|
253
273
|
}
|
|
254
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
255
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
274
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ButtonPlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
275
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", 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=\"from-primary to-primary-gradient relative grid h-10 min-h-10 w-10 min-w-10 place-content-center rounded-sm 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\" (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(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"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
256
276
|
}
|
|
257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ButtonPlayComponent, decorators: [{
|
|
258
278
|
type: Component,
|
|
259
|
-
args: [{ selector: 'st-button-play',
|
|
279
|
+
args: [{ selector: 'st-button-play', imports: [IconComponent, CommonModule, ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let waveBarsVar = waveBarsClass();\n@let iconClassVar = iconClass();\n@let iconVar = icon();\n\n@if (!asButton()) {\n\t<div\n\t\tclass=\"from-primary to-primary-gradient relative grid h-10 min-h-10 w-10 min-w-10 place-content-center rounded-sm 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\" (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(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" }]
|
|
260
280
|
}] });
|
|
261
281
|
|
|
262
282
|
class AudioTimelineComponent {
|
|
@@ -264,12 +284,8 @@ class AudioTimelineComponent {
|
|
|
264
284
|
audioService = inject(AudioPlayerService);
|
|
265
285
|
isDragging = signal(false);
|
|
266
286
|
isHovered = signal(false);
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}
|
|
270
|
-
get timelineCircleClass() {
|
|
271
|
-
return cn('transition-opacity duration-200 absolute top-1/2 h-3 w-3 -translate-y-1/2 transform cursor-grab rounded-full bg-tertiary shadow-main', this.isHovered() || this.isDragging() ? 'opacity-100' : 'opacity-0');
|
|
272
|
-
}
|
|
287
|
+
timelineClass = computed(() => cn('relative h-1 w-full cursor-pointer rounded-full bg-neutral ', { 'h-[6px]': this.isHovered() || this.isDragging() }));
|
|
288
|
+
timelineCircleClass = computed(() => cn('transition-opacity duration-200 absolute top-1/2 h-3 w-3 -translate-y-1/2 transform cursor-grab rounded-full bg-tertiary shadow-main', this.isHovered() || this.isDragging() ? 'opacity-100' : 'opacity-0'));
|
|
273
289
|
// Handle timeline hover
|
|
274
290
|
handleTimelineHover(isHovered) {
|
|
275
291
|
this.isHovered.set(isHovered);
|
|
@@ -308,12 +324,12 @@ class AudioTimelineComponent {
|
|
|
308
324
|
this.updateProgress(event);
|
|
309
325
|
}
|
|
310
326
|
}
|
|
311
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
312
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
327
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AudioTimelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
328
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: AudioTimelineComponent, isStandalone: true, selector: "st-timeline", host: { listeners: { "document:mousemove": "onDrag($event)", "document:touchmove": "onDrag($event)", "document:mouseup": "stopDrag()", "document:touchend": "stopDrag()" } }, viewQueries: [{ propertyName: "timeline", first: true, predicate: ["timeline"], 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<!-- Progress Bar -->\n<div class=\"grid w-full grid-cols-[1fr_5fr_1fr] items-center gap-4\">\n\t<!-- Current Time Display -->\n\t<div class=\"text-tertiary inline-flex min-h-5 items-center justify-end align-top select-none\">\n\t\t@if (!audioService.isInitializing()) {\n\t\t\t@if (audioService.isBuffering()) {\n\t\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t\t} @else {\n\t\t\t\t<span typography tyVariant=\"body-xxs\">{{ audioService.currentTime() | time }}</span>\n\t\t\t}\n\t\t}\n\t</div>\n\n\t<div [class]=\"timelineClass()\" (click)=\"seek($event)\" #timeline (mouseenter)=\"handleTimelineHover(true)\" (mouseleave)=\"handleTimelineHover(false)\">\n\t\t<!-- Progress Bar Background -->\n\t\t<div class=\"bg-primary absolute h-full rounded-full\" [style.width]=\"(audioService.currentTime() / audioService.duration()) * 100 + '%'\"></div>\n\n\t\t<!-- Draggable Circle -->\n\t\t<div\n\t\t\t[style.left]=\"\n\t\t\t\t'calc(' +\n\t\t\t\t(audioService.currentTime() / audioService.duration()) * 100 +\n\t\t\t\t'% - ' +\n\t\t\t\t(audioService.currentTime() / audioService.duration() === 1 ? '6px' : '3px') +\n\t\t\t\t')'\n\t\t\t\"\n\t\t\t[class]=\"timelineCircleClass()\"\n\t\t\t#circle\n\t\t\t(mousedown)=\"startDrag($event)\"\n\t\t\t(touchstart)=\"startDrag($event)\"\n\t\t></div>\n\t</div>\n\n\t<!-- Total Time Display -->\n\t<div class=\"text-tertiary inline-flex min-h-5 items-center justify-start align-top select-none\">\n\t\t@if (audioService.isInitializing()) {\n\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t} @else {\n\t\t\t<span typography tyVariant=\"body-xxs\">{{ audioService.duration() | time }}</span>\n\t\t}\n\t</div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: TimePipe, name: "time" }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
313
329
|
}
|
|
314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
330
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AudioTimelineComponent, decorators: [{
|
|
315
331
|
type: Component,
|
|
316
|
-
args: [{ selector: 'st-timeline',
|
|
332
|
+
args: [{ selector: 'st-timeline', imports: [CommonModule, TimePipe, TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<!-- Progress Bar -->\n<div class=\"grid w-full grid-cols-[1fr_5fr_1fr] items-center gap-4\">\n\t<!-- Current Time Display -->\n\t<div class=\"text-tertiary inline-flex min-h-5 items-center justify-end align-top select-none\">\n\t\t@if (!audioService.isInitializing()) {\n\t\t\t@if (audioService.isBuffering()) {\n\t\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t\t} @else {\n\t\t\t\t<span typography tyVariant=\"body-xxs\">{{ audioService.currentTime() | time }}</span>\n\t\t\t}\n\t\t}\n\t</div>\n\n\t<div [class]=\"timelineClass()\" (click)=\"seek($event)\" #timeline (mouseenter)=\"handleTimelineHover(true)\" (mouseleave)=\"handleTimelineHover(false)\">\n\t\t<!-- Progress Bar Background -->\n\t\t<div class=\"bg-primary absolute h-full rounded-full\" [style.width]=\"(audioService.currentTime() / audioService.duration()) * 100 + '%'\"></div>\n\n\t\t<!-- Draggable Circle -->\n\t\t<div\n\t\t\t[style.left]=\"\n\t\t\t\t'calc(' +\n\t\t\t\t(audioService.currentTime() / audioService.duration()) * 100 +\n\t\t\t\t'% - ' +\n\t\t\t\t(audioService.currentTime() / audioService.duration() === 1 ? '6px' : '3px') +\n\t\t\t\t')'\n\t\t\t\"\n\t\t\t[class]=\"timelineCircleClass()\"\n\t\t\t#circle\n\t\t\t(mousedown)=\"startDrag($event)\"\n\t\t\t(touchstart)=\"startDrag($event)\"\n\t\t></div>\n\t</div>\n\n\t<!-- Total Time Display -->\n\t<div class=\"text-tertiary inline-flex min-h-5 items-center justify-start align-top select-none\">\n\t\t@if (audioService.isInitializing()) {\n\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t} @else {\n\t\t\t<span typography tyVariant=\"body-xxs\">{{ audioService.duration() | time }}</span>\n\t\t}\n\t</div>\n</div>\n" }]
|
|
317
333
|
}], propDecorators: { onDrag: [{
|
|
318
334
|
type: HostListener,
|
|
319
335
|
args: ['document:mousemove', ['$event']]
|
|
@@ -331,12 +347,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
|
|
|
331
347
|
class TrackInfoComponent {
|
|
332
348
|
currentTrack = input();
|
|
333
349
|
iconMusicNote = heroMusicalNoteMini;
|
|
334
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
335
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
350
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TrackInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
351
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: TrackInfoComponent, isStandalone: true, selector: "st-track-info", inputs: { currentTrack: { classPropertyName: "currentTrack", publicName: "currentTrack", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"relative flex max-w-80 items-center gap-4 overflow-x-hidden whitespace-nowrap\">\n\t<div class=\"flex items-center gap-3\">\n\t\t<!-- Album/Track Icon -->\n\t\t<div class=\"from-primary to-primary-gradient grid h-12 min-h-12 w-12 min-w-12 place-content-center rounded-sm bg-linear-to-br text-white\">\n\t\t\t<st-icon [icon]=\"iconMusicNote\" size=\"md\"></st-icon>\n\t\t</div>\n\n\t\t<!-- Track Info -->\n\t\t@let currentTrackVar = this.currentTrack();\n\t\t<div class=\"min-w-0 flex-1\">\n\t\t\t<p typography tyVariant=\"body\" tyFontWeight=\"medium\" tyColor=\"base\">\n\t\t\t\t{{ currentTrackVar?.title ?? 'sdk.audioPlayer.trackInfo.title' | translate }}\n\t\t\t</p>\n\t\t\t<p typography tyVariant=\"body-sm\" tyFontWeight=\"normal\" tyColor=\"base\">\n\t\t\t\t{{ currentTrackVar?.description ?? 'sdk.audioPlayer.trackInfo.description' | translate }}\n\t\t\t</p>\n\t\t</div>\n\t</div>\n\t<div class=\"from-base-200 pointer-events-none absolute inset-y-0 right-0 w-12 bg-linear-to-l to-transparent\"></div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
336
352
|
}
|
|
337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TrackInfoComponent, decorators: [{
|
|
338
354
|
type: Component,
|
|
339
|
-
args: [{ selector: 'st-track-info',
|
|
355
|
+
args: [{ selector: 'st-track-info', imports: [IconComponent, CommonModule, TypographyDirective, TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"relative flex max-w-80 items-center gap-4 overflow-x-hidden whitespace-nowrap\">\n\t<div class=\"flex items-center gap-3\">\n\t\t<!-- Album/Track Icon -->\n\t\t<div class=\"from-primary to-primary-gradient grid h-12 min-h-12 w-12 min-w-12 place-content-center rounded-sm bg-linear-to-br text-white\">\n\t\t\t<st-icon [icon]=\"iconMusicNote\" size=\"md\"></st-icon>\n\t\t</div>\n\n\t\t<!-- Track Info -->\n\t\t@let currentTrackVar = this.currentTrack();\n\t\t<div class=\"min-w-0 flex-1\">\n\t\t\t<p typography tyVariant=\"body\" tyFontWeight=\"medium\" tyColor=\"base\">\n\t\t\t\t{{ currentTrackVar?.title ?? 'sdk.audioPlayer.trackInfo.title' | translate }}\n\t\t\t</p>\n\t\t\t<p typography tyVariant=\"body-sm\" tyFontWeight=\"normal\" tyColor=\"base\">\n\t\t\t\t{{ currentTrackVar?.description ?? 'sdk.audioPlayer.trackInfo.description' | translate }}\n\t\t\t</p>\n\t\t</div>\n\t</div>\n\t<div class=\"from-base-200 pointer-events-none absolute inset-y-0 right-0 w-12 bg-linear-to-l to-transparent\"></div>\n</div>\n" }]
|
|
340
356
|
}] });
|
|
341
357
|
|
|
342
358
|
class VolumeControlComponent {
|
|
@@ -347,12 +363,14 @@ class VolumeControlComponent {
|
|
|
347
363
|
iconVolumeUp = matVolumeUpOutline;
|
|
348
364
|
iconVolumeDown = matVolumeDownOutline;
|
|
349
365
|
iconVolumeMute = matVolumeMuteOutline;
|
|
350
|
-
|
|
351
|
-
return cn('relative h-1 w-20 cursor-pointer rounded-full bg-neutral', {
|
|
352
|
-
|
|
353
|
-
|
|
366
|
+
volumeTimelineClass = computed(() => {
|
|
367
|
+
return cn('relative h-1 w-20 cursor-pointer rounded-full bg-neutral', {
|
|
368
|
+
'h-[6px]': this.isVolumeHovered() || this.isVolumeDragging(),
|
|
369
|
+
});
|
|
370
|
+
});
|
|
371
|
+
volumeTimelineCircleClass = computed(() => {
|
|
354
372
|
return cn('absolute top-1/2 h-3 w-3 -translate-y-1/2 transform cursor-grab rounded-full bg-tertiary shadow-main transition-opacity duration-200', this.isVolumeHovered() || this.isVolumeDragging() ? 'opacity-100' : 'opacity-0');
|
|
355
|
-
}
|
|
373
|
+
});
|
|
356
374
|
// Handle volume hover
|
|
357
375
|
handleVolumeHover(isHovered) {
|
|
358
376
|
this.isVolumeHovered.set(isHovered);
|
|
@@ -394,12 +412,12 @@ class VolumeControlComponent {
|
|
|
394
412
|
toggleMute() {
|
|
395
413
|
this.audioService.setMuted(!this.audioService.isMuted());
|
|
396
414
|
}
|
|
397
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
398
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
415
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: VolumeControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
416
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: VolumeControlComponent, isStandalone: true, selector: "st-volume-control", 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\" (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)=\"seekVolume($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(mousedown)=\"startVolumeDrag($event)\"\n\t\t\t(touchstart)=\"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"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
399
417
|
}
|
|
400
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: VolumeControlComponent, decorators: [{
|
|
401
419
|
type: Component,
|
|
402
|
-
args: [{ selector: 'st-volume-control',
|
|
420
|
+
args: [{ selector: 'st-volume-control', imports: [IconComponent, CommonModule, ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, 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\" (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)=\"seekVolume($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(mousedown)=\"startVolumeDrag($event)\"\n\t\t\t(touchstart)=\"startVolumeDrag($event)\"\n\t\t></div>\n\t</div>\n</div>\n" }]
|
|
403
421
|
}], propDecorators: { onVolumeDrag: [{
|
|
404
422
|
type: HostListener,
|
|
405
423
|
args: ['document:mousemove', ['$event']]
|
|
@@ -415,43 +433,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
|
|
|
415
433
|
}] } });
|
|
416
434
|
|
|
417
435
|
class AudioPlayerComponent {
|
|
436
|
+
audioPlayerService = inject(AudioPlayerService);
|
|
418
437
|
variant = input('default');
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
currentTrackIndex = model(-1);
|
|
438
|
+
shadow = input(false);
|
|
439
|
+
opened = model(false);
|
|
422
440
|
tracks = input([]);
|
|
423
441
|
showTrackList = input(false);
|
|
442
|
+
currentTrackIndex = model(-1);
|
|
443
|
+
currentTrack = computed(() => {
|
|
444
|
+
const tracks = this.tracks();
|
|
445
|
+
return this.currentTrackIndex() >= 0 && tracks ? tracks[this.currentTrackIndex()] : undefined;
|
|
446
|
+
});
|
|
424
447
|
iconSkipPrevious = matSkipPrevious;
|
|
425
448
|
iconSkipNext = matSkipNext;
|
|
426
449
|
iconPlay = matPlayArrow;
|
|
427
450
|
iconPause = matPause;
|
|
428
451
|
iconMusicNote = heroMusicalNoteMini;
|
|
429
|
-
|
|
430
|
-
|
|
452
|
+
offScreen = signal(false);
|
|
453
|
+
playerClass = computed(() => cn('grid w-full grid-cols-[minmax(0,1fr)_minmax(0,2fr)_minmax(0,1fr)] items-center gap-4 relative translate-y-0', {
|
|
454
|
+
'shadow-main': this.shadow(),
|
|
455
|
+
}, {
|
|
456
|
+
'fixed bottom-0 left-0 bg-base-200 p-4 z-50 border-t border-neutral transform transition-transform duration-300': this.variant() === 'fixed',
|
|
457
|
+
}, {
|
|
458
|
+
'animate-fade-in-up animate-steps-modern animate-duration-300': this.opened() && this.variant() === 'fixed',
|
|
459
|
+
}, {
|
|
460
|
+
'animate-fade-out-down animate-steps-modern animate-duration-300': !this.opened() && this.variant() === 'fixed',
|
|
461
|
+
}, {
|
|
462
|
+
'invisible pointer-events-none -z-10 fixed bottom-5': this.offScreen() && this.variant() === 'fixed',
|
|
463
|
+
}));
|
|
431
464
|
constructor() {
|
|
432
465
|
// Sync tracks with service
|
|
433
466
|
effect(() => {
|
|
434
467
|
this.audioPlayerService.setTracks(this.tracks());
|
|
435
|
-
}
|
|
468
|
+
});
|
|
436
469
|
// One-way sync from service to component
|
|
437
470
|
effect(() => {
|
|
438
471
|
this.currentTrackIndex.set(this.audioPlayerService.currentTrackIndex());
|
|
439
|
-
}, { allowSignalWrites: true });
|
|
440
|
-
}
|
|
441
|
-
get playerClass() {
|
|
442
|
-
return cn('grid w-full grid-cols-[2fr_3fr_1fr] items-center gap-4', {
|
|
443
|
-
'shadow-main': this.shadow(),
|
|
444
|
-
}, {
|
|
445
|
-
'fixed bottom-0 left-0 bg-base-200 p-4 z-50 border-t border-neutral': this.variant() === 'fixed',
|
|
446
|
-
}, {
|
|
447
|
-
'animate-fade-in-up animate-steps-modern animate-duration-300': this.opened() && this.variant() === 'fixed',
|
|
448
|
-
}, {
|
|
449
|
-
'animate-fade-out-down animate-steps-modern animate-duration-300': !this.opened() && this.variant() === 'fixed',
|
|
450
472
|
});
|
|
451
473
|
}
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
474
|
+
entering = signal(false);
|
|
475
|
+
leaving = signal(false);
|
|
476
|
+
handleAnimationEnd(event) {
|
|
477
|
+
if (this.variant() !== 'fixed')
|
|
478
|
+
return;
|
|
479
|
+
if (event.animationName === 'fade-out-down' && !this.opened()) {
|
|
480
|
+
this.offScreen.set(true);
|
|
481
|
+
this.leaving.set(false);
|
|
482
|
+
}
|
|
483
|
+
if (event.animationName === 'fade-in-up' && this.opened()) {
|
|
484
|
+
this.entering.set(false);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
handleAnimationStart(event) {
|
|
488
|
+
if (this.variant() !== 'fixed')
|
|
489
|
+
return;
|
|
490
|
+
if (event.animationName === 'fade-in-up' && this.opened()) {
|
|
491
|
+
this.offScreen.set(false);
|
|
492
|
+
this.entering.set(true);
|
|
493
|
+
}
|
|
494
|
+
if (event.animationName === 'fade-out-down' && !this.opened()) {
|
|
495
|
+
this.leaving.set(true);
|
|
496
|
+
}
|
|
455
497
|
}
|
|
456
498
|
// Simplify methods to call service
|
|
457
499
|
async playTrack(index) {
|
|
@@ -466,15 +508,21 @@ class AudioPlayerComponent {
|
|
|
466
508
|
async next() {
|
|
467
509
|
await this.audioPlayerService.next();
|
|
468
510
|
}
|
|
511
|
+
handleOpen() {
|
|
512
|
+
this.opened.set(true);
|
|
513
|
+
}
|
|
514
|
+
handleClose() {
|
|
515
|
+
this.opened.set(false);
|
|
516
|
+
}
|
|
469
517
|
ngOnDestroy() {
|
|
470
518
|
this.audioPlayerService.cleanup();
|
|
471
519
|
}
|
|
472
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
473
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
520
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AudioPlayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
521
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", 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 typography tyVariant=\"h4\">{{ '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 typography tyVariant=\"body\">{{ track.title }}</div>\n\t\t\t\t\t\t\t\t<div typography tyVariant=\"body-sm\">{{ 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<div\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\ttabindex=\"0\"\n\t\t\t\t(click)=\"handleClose()\"\n\t\t\t\t(keydown.enter)=\"handleClose()\"\n\t\t\t\taria-label=\"Close player\"\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</div>\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\">\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()\" [circle]=\"true\" size=\"sm\" [shadow]=\"true\">\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\">\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></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></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"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: VolumeControlComponent, selector: "st-volume-control" }, { kind: "component", type: TrackInfoComponent, selector: "st-track-info", inputs: ["currentTrack"] }, { kind: "component", type: AudioTimelineComponent, selector: "st-timeline" }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
474
522
|
}
|
|
475
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AudioPlayerComponent, decorators: [{
|
|
476
524
|
type: Component,
|
|
477
|
-
args: [{ selector: 'st-audio-player',
|
|
525
|
+
args: [{ selector: 'st-audio-player', imports: [
|
|
478
526
|
CommonModule,
|
|
479
527
|
ButtonComponent,
|
|
480
528
|
TypographyDirective,
|
|
@@ -482,7 +530,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
|
|
|
482
530
|
TrackInfoComponent,
|
|
483
531
|
AudioTimelineComponent,
|
|
484
532
|
ButtonPlayComponent,
|
|
485
|
-
|
|
533
|
+
TranslatePipe,
|
|
534
|
+
IconComponent,
|
|
535
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, 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 typography tyVariant=\"h4\">{{ '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 typography tyVariant=\"body\">{{ track.title }}</div>\n\t\t\t\t\t\t\t\t<div typography tyVariant=\"body-sm\">{{ 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<div\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\ttabindex=\"0\"\n\t\t\t\t(click)=\"handleClose()\"\n\t\t\t\t(keydown.enter)=\"handleClose()\"\n\t\t\t\taria-label=\"Close player\"\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</div>\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\">\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()\" [circle]=\"true\" size=\"sm\" [shadow]=\"true\">\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\">\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></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></st-volume-control>\n\t\t</div>\n\t</div>\n</div>\n" }]
|
|
486
536
|
}], ctorParameters: () => [] });
|
|
487
537
|
|
|
488
538
|
/**
|