@sixbell-telco/sdk 0.10.1 → 0.12.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 +72 -0
- package/README.md +30 -280
- package/_index.css +452 -0
- package/assets/styles/combobox.css +197 -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 +1 -0
- package/components/audio-player/volume-control/volume-control.component.d.ts +2 -2
- package/components/avatar/src/avatar.component.d.ts +1 -1
- package/components/badge/src/badge.component.d.ts +69 -7
- package/components/button/src/button.component.d.ts +23 -9
- 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 -2
- 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 +6 -6
- 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 +3 -3
- package/components/forms/datepicker/src/datepicker.component.d.ts +2 -2
- package/components/forms/form-error/src/form-error.component.d.ts +8 -1
- 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 +139 -13
- 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 +3 -3
- 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 +6 -6
- 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/src/table.component.d.ts +15 -11
- 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/wizard-actions/wizard-actions.component.d.ts +1 -1
- package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +20 -20
- 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/only-numbers.directive.d.ts +9 -0
- 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 +71 -50
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +7 -7
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +92 -47
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +35 -28
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +194 -32
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +7 -7
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +201 -30
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +18 -16
- 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 +20 -20
- 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 +12 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +221 -122
- 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 +190 -65
- 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 +229 -80
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +56 -243
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs +14 -15
- 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 +12 -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 +34 -39
- 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 +32 -34
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +50 -48
- 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 +111 -9
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +59 -59
- 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 +14 -13
- 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 +51 -147
- 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 -105
- package/esm2022/components/audio-player/track-info/track-info.component.mjs +0 -18
- 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 -149
- 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 -77
- 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 -182
- 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 -57
- 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 -184
- 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 -115
- 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 -188
- 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 -25
- 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 -202
- 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 -162
- 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 -168
- 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 -42
- 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 -137
- 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 -283
- package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +0 -67
- package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +0 -72
- 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 -5
- package/esm2022/components/wizard/services/wizard.service.mjs +0 -312
- package/esm2022/components/wizard/sixbell-telco-sdk-components-wizard.mjs +0 -5
- package/esm2022/components/wizard/wizard-actions/wizard-actions.component.mjs +0 -22
- package/esm2022/components/wizard/wizard-content/wizard-content.component.mjs +0 -84
- package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +0 -111
- package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +0 -126
- package/esm2022/components/wizard/wizard-sub-step/wizard-sub-step.component.mjs +0 -121
- package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +0 -173
- 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 -118
- 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 -122
- 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 { input, signal,
|
|
3
|
+
import { input, signal, Host, ChangeDetectionStrategy, Component, output, computed, contentChild, contentChildren, effect } from '@angular/core';
|
|
4
4
|
import { TranslatePipe } from '@ngx-translate/core';
|
|
5
5
|
import { SelectComponent } from '@sixbell-telco/sdk/components/forms/select';
|
|
6
6
|
import { IconComponent } from '@sixbell-telco/sdk/components/icon';
|
|
@@ -64,12 +64,12 @@ class TableHeaderCheckboxComponent {
|
|
|
64
64
|
handleSelectAll(value) {
|
|
65
65
|
this.table.handleToggleAll(value);
|
|
66
66
|
}
|
|
67
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
68
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
67
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableHeaderCheckboxComponent, deps: [{ token: TableComponent, host: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
68
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: TableHeaderCheckboxComponent, isStandalone: true, selector: "tr[header-checkbox]", inputs: { checkboxVariant: { classPropertyName: "checkboxVariant", publicName: "checkboxVariant", isSignal: true, isRequired: false, transformFunction: null }, checkboxSize: { classPropertyName: "checkboxSize", publicName: "checkboxSize", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<th class=\"w-6\">\n\t<st-checkbox [(value)]=\"checked\" (valueUpdated)=\"handleSelectAll($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\" />\n</th>\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: CheckboxComponent, selector: "st-checkbox", inputs: ["variant", "size", "label", "name", "value", "disabled"], outputs: ["valueChange", "valueUpdated", "disabledChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
69
69
|
}
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableHeaderCheckboxComponent, decorators: [{
|
|
71
71
|
type: Component,
|
|
72
|
-
args: [{ selector: 'tr[header-checkbox]',
|
|
72
|
+
args: [{ selector: 'tr[header-checkbox]', imports: [CheckboxComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<th class=\"w-6\">\n\t<st-checkbox [(value)]=\"checked\" (valueUpdated)=\"handleSelectAll($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\" />\n</th>\n<ng-content></ng-content>\n" }]
|
|
73
73
|
}], ctorParameters: () => [{ type: TableComponent, decorators: [{
|
|
74
74
|
type: Host
|
|
75
75
|
}] }] });
|
|
@@ -132,12 +132,12 @@ class TableRowCheckboxComponent {
|
|
|
132
132
|
handleSelect(value) {
|
|
133
133
|
this.table.handleToggleCheckbox(value, this.identifier());
|
|
134
134
|
}
|
|
135
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
136
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
135
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableRowCheckboxComponent, deps: [{ token: TableComponent, host: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
136
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: TableRowCheckboxComponent, isStandalone: true, selector: "tr[row-checkbox]", inputs: { checkboxVariant: { classPropertyName: "checkboxVariant", publicName: "checkboxVariant", isSignal: true, isRequired: false, transformFunction: null }, checkboxSize: { classPropertyName: "checkboxSize", publicName: "checkboxSize", isSignal: true, isRequired: false, transformFunction: null }, identifier: { classPropertyName: "identifier", publicName: "identifier", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<td>\n\t<st-checkbox [(value)]=\"checked\" (valueUpdated)=\"handleSelect($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\"></st-checkbox>\n</td>\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: CheckboxComponent, selector: "st-checkbox", inputs: ["variant", "size", "label", "name", "value", "disabled"], outputs: ["valueChange", "valueUpdated", "disabledChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
137
137
|
}
|
|
138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableRowCheckboxComponent, decorators: [{
|
|
139
139
|
type: Component,
|
|
140
|
-
args: [{ selector: 'tr[row-checkbox]',
|
|
140
|
+
args: [{ selector: 'tr[row-checkbox]', imports: [CheckboxComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<td>\n\t<st-checkbox [(value)]=\"checked\" (valueUpdated)=\"handleSelect($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\"></st-checkbox>\n</td>\n<ng-content></ng-content>\n" }]
|
|
141
141
|
}], ctorParameters: () => [{ type: TableComponent, decorators: [{
|
|
142
142
|
type: Host
|
|
143
143
|
}] }] });
|
|
@@ -149,10 +149,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
|
|
|
149
149
|
const tableContent = cva(['table', 'relative border-separate border-spacing-0', '[&_th]:bg-neutral [&_th]:text-neutral-content', '[&_th]:px-4', '[&_td]:px-4'], {
|
|
150
150
|
variants: {
|
|
151
151
|
size: {
|
|
152
|
-
xs: ['table-xs', '[&
|
|
153
|
-
sm: ['table-sm', '[&
|
|
154
|
-
md: ['table-md', '[&
|
|
155
|
-
lg: ['table-lg', '[&
|
|
152
|
+
xs: ['table-xs', '[&_th]:leading-normal', '[&_td]:leading-tight'],
|
|
153
|
+
sm: ['table-sm', '[&_th]:leading-normal', '[&_td]:leading-tight'],
|
|
154
|
+
md: ['table-md', '[&_th]:leading-normal', '[&_td]:leading-tight'],
|
|
155
|
+
lg: ['table-lg', '[&_th]:leading-normal', '[&_td]:leading-tight'],
|
|
156
|
+
xl: ['table-lg', '[&_th]:leading-normal', '[&_td]:leading-tight'],
|
|
156
157
|
},
|
|
157
158
|
},
|
|
158
159
|
compoundVariants: [],
|
|
@@ -266,9 +267,9 @@ class TableComponent {
|
|
|
266
267
|
*/
|
|
267
268
|
maxSize = input(7);
|
|
268
269
|
/** Event emitted when page changes */
|
|
269
|
-
|
|
270
|
+
pageChanged = output();
|
|
270
271
|
/** Event emitted when page size changes */
|
|
271
|
-
|
|
272
|
+
pageSizeChanged = output();
|
|
272
273
|
/**
|
|
273
274
|
* Show items per page selector
|
|
274
275
|
* @defaultValue true
|
|
@@ -299,7 +300,7 @@ class TableComponent {
|
|
|
299
300
|
*/
|
|
300
301
|
handlePageChange(page) {
|
|
301
302
|
this.handleToggleAll(false);
|
|
302
|
-
this.
|
|
303
|
+
this.pageChanged.emit(page);
|
|
303
304
|
}
|
|
304
305
|
/**
|
|
305
306
|
* Handles page size changes
|
|
@@ -307,54 +308,55 @@ class TableComponent {
|
|
|
307
308
|
*/
|
|
308
309
|
handlePageSizeChange(size) {
|
|
309
310
|
this.handleToggleAll(false);
|
|
310
|
-
this.
|
|
311
|
+
this.pageSizeChanged.emit(size);
|
|
311
312
|
}
|
|
312
313
|
/**
|
|
313
314
|
* @internal
|
|
314
315
|
* Computes table element classes based on current configuration
|
|
315
316
|
*/
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
});
|
|
324
|
-
}
|
|
317
|
+
tableClass = computed(() => cn(tableContent({
|
|
318
|
+
size: this.size(),
|
|
319
|
+
}), {
|
|
320
|
+
'table-pin-rows': this.pinRows(),
|
|
321
|
+
'table-pin-cols': this.pinColumns(),
|
|
322
|
+
'table-zebra': this.zebra(),
|
|
323
|
+
}));
|
|
325
324
|
/**
|
|
326
325
|
* @internal
|
|
327
326
|
* Computes table container classes based on height input
|
|
328
327
|
*/
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
}));
|
|
333
|
-
}
|
|
328
|
+
tableContainerClass = computed(() => cn(tableContainer({
|
|
329
|
+
containerHeight: this.height(),
|
|
330
|
+
})));
|
|
334
331
|
/**
|
|
335
332
|
* @internal
|
|
336
333
|
* Computes outer container classes based on size
|
|
337
334
|
*/
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
335
|
+
containerClass = computed(() => cn('flex flex-col gap-3 rounded-box border border-solid border-neutral pb-3', {
|
|
336
|
+
'gap-3 pb-3': this.size() === 'xs' || this.size() === 'sm' || this.size() === 'md',
|
|
337
|
+
'gap-4 pb-4': this.size() === 'lg',
|
|
338
|
+
'gap-5 pb-5': this.size() === 'xl',
|
|
339
|
+
}));
|
|
340
|
+
/**
|
|
341
|
+
* @internal
|
|
342
|
+
* Computes typography variant for paginator text based on table size
|
|
343
|
+
*/
|
|
344
|
+
paginatorTextSize = computed(() => {
|
|
345
345
|
switch (this.size()) {
|
|
346
346
|
case 'xs':
|
|
347
347
|
return 'body-xxs';
|
|
348
348
|
case 'sm':
|
|
349
|
-
return 'body-xxs';
|
|
350
|
-
case 'md':
|
|
351
349
|
return 'body-xs';
|
|
350
|
+
case 'md':
|
|
351
|
+
return 'body-sm';
|
|
352
352
|
case 'lg':
|
|
353
|
-
return 'body
|
|
353
|
+
return 'body';
|
|
354
|
+
case 'xl':
|
|
355
|
+
return 'body';
|
|
354
356
|
default:
|
|
355
357
|
return 'body-xs';
|
|
356
358
|
}
|
|
357
|
-
}
|
|
359
|
+
});
|
|
358
360
|
/** @internal Reference to header checkbox component */
|
|
359
361
|
header = contentChild(TableHeaderCheckboxComponent, { descendants: true });
|
|
360
362
|
/** @internal List of row checkbox components */
|
|
@@ -362,10 +364,10 @@ class TableComponent {
|
|
|
362
364
|
/** @internal Track selected row identifiers */
|
|
363
365
|
identifiers = signal(new Set());
|
|
364
366
|
/** Event emitted with array of selected item identifiers */
|
|
365
|
-
|
|
367
|
+
checkedItems = output();
|
|
366
368
|
/** @internal Sync checkbox state with output */
|
|
367
369
|
checkEffect = effect(() => {
|
|
368
|
-
this.
|
|
370
|
+
this.checkedItems.emit(Array.from(this.identifiers()));
|
|
369
371
|
});
|
|
370
372
|
/**
|
|
371
373
|
* Toggle all row checkboxes
|
|
@@ -404,12 +406,12 @@ class TableComponent {
|
|
|
404
406
|
this.identifiers.set(new Set());
|
|
405
407
|
this.header()?.checked.set(false);
|
|
406
408
|
}
|
|
407
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
408
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
409
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
410
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: TableComponent, isStandalone: true, selector: "st-table", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, pinRows: { classPropertyName: "pinRows", publicName: "pinRows", isSignal: true, isRequired: false, transformFunction: null }, pinColumns: { classPropertyName: "pinColumns", publicName: "pinColumns", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, showItemsPerPage: { classPropertyName: "showItemsPerPage", publicName: "showItemsPerPage", isSignal: true, isRequired: false, transformFunction: null }, showEntries: { classPropertyName: "showEntries", publicName: "showEntries", isSignal: true, isRequired: false, transformFunction: null }, showPagination: { classPropertyName: "showPagination", publicName: "showPagination", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged", checkedItems: "checkedItems" }, queries: [{ propertyName: "header", first: true, predicate: TableHeaderCheckboxComponent, descendants: true, isSignal: true }, { propertyName: "rows", predicate: TableRowCheckboxComponent, descendants: true, isSignal: true }], ngImport: i0, template: "@let total = totalItems();\n@let dataVar = data();\n@let containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let showItemsPerPageVar = showItemsPerPage();\n@let paginationVar = pagination();\n@let showPaginationVar = showPagination();\n@let paginatorTypeVar = paginatorType();\n@let maxSizeVar = maxSize();\n@let showEntriesVar = showEntries();\n\n@if (total > 0 || dataVar.length > 0) {\n\t<div [class]=\"containerClassVar\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClassVar\">\n\t\t\t<table [class]=\"tableClassVar\">\n\t\t\t\t<ng-content select=\"thead\" class=\"[&_tr]:\\hover\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t<!-- Divider -->\n\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t<!-- Pagination info -->\n\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.entriesByPage' | translate }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"paginationVar.id\" (pageChanged)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t{{ 'sdk.table.entriesRange' | translate: { range: paginationRange(), total: total } }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"rounded-box border-neutral grid h-full place-content-center gap-4 border border-solid p-6\">\n\t\t<div>\n\t\t\t<div class=\"text-info grid place-content-center\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.emptyListMessage' | translate }}</span>\n\t\t</div>\n\t</div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginatorComponent, selector: "st-paginator", inputs: ["paginatorId", "maxSize", "type", "pages", "currentPage"], outputs: ["pageChanged", "currentPageChange"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: SelectComponent, selector: "st-select", inputs: ["variant", "size", "ghost", "name", "placeholder", "label", "value", "options", "emptyOptionText", "trackBy", "key", "parentForm", "formControlName", "disabled"], outputs: ["valueChange", "blurred", "disabledChange", "valueUpdated"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
409
411
|
}
|
|
410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableComponent, decorators: [{
|
|
411
413
|
type: Component,
|
|
412
|
-
args: [{ selector: 'st-table',
|
|
414
|
+
args: [{ selector: 'st-table', imports: [CommonModule, PaginatorComponent, TypographyDirective, SelectComponent, IconComponent, TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let total = totalItems();\n@let dataVar = data();\n@let containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let showItemsPerPageVar = showItemsPerPage();\n@let paginationVar = pagination();\n@let showPaginationVar = showPagination();\n@let paginatorTypeVar = paginatorType();\n@let maxSizeVar = maxSize();\n@let showEntriesVar = showEntries();\n\n@if (total > 0 || dataVar.length > 0) {\n\t<div [class]=\"containerClassVar\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClassVar\">\n\t\t\t<table [class]=\"tableClassVar\">\n\t\t\t\t<ng-content select=\"thead\" class=\"[&_tr]:\\hover\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t<!-- Divider -->\n\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t<!-- Pagination info -->\n\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.entriesByPage' | translate }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"paginationVar.id\" (pageChanged)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t{{ 'sdk.table.entriesRange' | translate: { range: paginationRange(), total: total } }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"rounded-box border-neutral grid h-full place-content-center gap-4 border border-solid p-6\">\n\t\t<div>\n\t\t\t<div class=\"text-info grid place-content-center\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.emptyListMessage' | translate }}</span>\n\t\t</div>\n\t</div>\n}\n" }]
|
|
413
415
|
}] });
|
|
414
416
|
|
|
415
417
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-table.mjs","sources":["../../../projects/sdk/components/table/table-header-checkbox/table-header-checkbox.component.ts","../../../projects/sdk/components/table/table-header-checkbox/table-header-checkbox.component.html","../../../projects/sdk/components/table/table-row-checkbox/table-row-checkbox.component.ts","../../../projects/sdk/components/table/table-row-checkbox/table-row-checkbox.component.html","../../../projects/sdk/components/table/src/table.component.ts","../../../projects/sdk/components/table/src/table.component.html","../../../projects/sdk/components/table/sixbell-telco-sdk-components-table.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Host, input, signal } from '@angular/core';\nimport { CheckboxComponent, CheckboxSizeProps, CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';\nimport { TableComponent } from '../src/table.component';\n\n/**\n * Header checkbox component for the table.\n *\n * This component renders a checkbox within a table header row,\n * allowing users to select or deselect all rows in the table.\n *\n * @remarks\n * Utilizes Angular's dependency injection to access the parent {@link TableComponent}\n * and propagate the checkbox state changes.\n *\n * @example\n * ```html\n * <tr header-checkbox></tr>\n * ```\n */\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'tr[header-checkbox]',\n\tstandalone: true,\n\timports: [CheckboxComponent],\n\ttemplateUrl: './table-header-checkbox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableHeaderCheckboxComponent {\n\t/**\n\t * Defines the variant styling of the checkbox.\n\t *\n\t * @defaultValue 'primary'\n\t */\n\tcheckboxVariant = input<CheckboxVariantProps>('primary');\n\n\t/**\n\t * Defines the size of the checkbox.\n\t *\n\t * @defaultValue 'md'\n\t */\n\tcheckboxSize = input<CheckboxSizeProps>('md');\n\n\t/**\n\t * Signal that tracks the checked state of the header checkbox.\n\t *\n\t * @defaultValue false\n\t */\n\tchecked = signal<boolean>(false);\n\n\t/**\n\t * Creates an instance of TableHeaderCheckboxComponent.\n\t *\n\t * @param table - Reference to the parent {@link TableComponent} to access table-level operations.\n\t */\n\tconstructor(@Host() private table: TableComponent) {}\n\n\t/**\n\t * Handles the event when the header checkbox is toggled.\n\t *\n\t * This method notifies the parent table component to either select or deselect all rows.\n\t *\n\t * @param value - The new checked state (true to select all rows, false to deselect all).\n\t */\n\thandleSelectAll(value: boolean) {\n\t\tthis.table.handleToggleAll(value);\n\t}\n}\n","<th class=\"w-6\">\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelectAll($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\" />\n</th>\n<ng-content></ng-content>\n","import { ChangeDetectionStrategy, Component, Host, input, signal } from '@angular/core';\nimport { CheckboxComponent, CheckboxSizeProps, CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';\nimport { TableComponent } from '../src/table.component';\n\n/**\n * Row checkbox component for table row selection.\n *\n * This component renders a checkbox within a table row,\n * enabling individual row selection. It interacts with the parent\n * {@link TableComponent} to update the selection state.\n *\n * @example\n * ```html\n * <tr row-checkbox [identifier]=\"rowId\"></tr>\n * ```\n */\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'tr[row-checkbox]',\n\tstandalone: true,\n\timports: [CheckboxComponent],\n\ttemplateUrl: './table-row-checkbox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableRowCheckboxComponent {\n\t/**\n\t * Defines the variant styling of the checkbox.\n\t *\n\t * @defaultValue 'primary'\n\t */\n\tcheckboxVariant = input<CheckboxVariantProps>('primary');\n\n\t/**\n\t * Defines the size of the checkbox.\n\t *\n\t * @defaultValue 'md'\n\t */\n\tcheckboxSize = input<CheckboxSizeProps>('md');\n\n\t/**\n\t * Unique identifier for the table row.\n\t *\n\t * This input is required to track the specific row in the table.\n\t */\n\tidentifier = input.required();\n\n\t/**\n\t * Signal that tracks the checked state of the row checkbox.\n\t *\n\t * @defaultValue false\n\t */\n\tchecked = signal<boolean>(false);\n\n\t/**\n\t * Creates an instance of TableRowCheckboxComponent.\n\t *\n\t * @param table - Reference to the parent {@link TableComponent} to access\n\t * table-level operations for row selection.\n\t */\n\tconstructor(@Host() private table: TableComponent) {}\n\n\t/**\n\t * Handles the selection event of the row checkbox.\n\t *\n\t * This method notifies the parent table component to update the selection state\n\t * for the corresponding row, based on the checkbox's new value.\n\t *\n\t * @param value - The new checked state (true for selected, false for deselected).\n\t */\n\thandleSelect(value: boolean) {\n\t\tthis.table.handleToggleCheckbox(value, this.identifier());\n\t}\n}\n","<td>\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelect($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\"></st-checkbox>\n</td>\n<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, effect, input, output, signal } from '@angular/core';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { SelectComponent } from '@sixbell-telco/sdk/components/forms/select';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matInfoOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { PaginatorComponent } from '@sixbell-telco/sdk/components/paginator';\nimport { TypographyDirective, TypographyVariantProps } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\nimport { TableHeaderCheckboxComponent } from '../table-header-checkbox/table-header-checkbox.component';\nimport { TableRowCheckboxComponent } from '../table-row-checkbox/table-row-checkbox.component';\n\n/** Type definition for pagination display variants */\nexport type PaginationType = 'default' | 'dots';\n\n/**\n * @internal\n * Generates base table classes with size variants\n */\nexport const tableContent = cva(\n\t['table', 'relative border-separate border-spacing-0', '[&_th]:bg-neutral [&_th]:text-neutral-content', '[&_th]:px-4', '[&_td]:px-4'],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\txs: ['table-xs', '[&_td]:text-[0.823rem]', '[&_th]:text-[0.823rem]', '[&_th]:leading-normal', '[&_td]:leading-tight'],\n\t\t\t\tsm: ['table-sm', '[&_td]:text-[0.878rem]', '[&_th]:text-[0.878rem]', '[&_th]:leading-normal', '[&_td]:leading-tight'],\n\t\t\t\tmd: ['table-md', '[&_td]:text-[0.937rem]', '[&_th]:text-[0.937rem]', '[&_th]:leading-normal', '[&_td]:leading-tight'],\n\t\t\t\tlg: ['table-lg', '[&_td]:text-base', '[&_th]:text-base', '[&_th]:leading-normal', '[&_td]:leading-tight'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\tsize: 'sm',\n\t\t},\n\t},\n);\n\n/** Possible table size variants */\nexport type TableContentSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\n/**\n * @internal\n * Generates table container classes with height variants\n */\nexport const tableContainer = cva(['overflow-y-auto rounded-t-box overscroll-contain'], {\n\tvariants: {\n\t\tcontainerHeight: {\n\t\t\tauto: ['h-auto'],\n\t\t\tfull: ['h-full'],\n\t\t\tsm: ['max-h-72 h-full'],\n\t\t\tmd: ['max-h-80 h-full'],\n\t\t\tlg: ['max-h-96 h-full'],\n\t\t\txl: ['max-h-[36rem] h-full'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tcontainerHeight: 'auto',\n\t},\n});\n\n/** Possible table container height values */\nexport type TableContainerHeightProps = 'auto' | 'full' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Configuration object for table styling variants */\nexport type TableVariantProps = {\n\tsize?: TableContentSizeProps;\n\tcontainerHeight?: TableContainerHeightProps;\n};\n\n/**\n * @internal\n * Combines table content and container classes\n */\nexport const tableComponent = ({ size, containerHeight }: TableVariantProps = {}) => cx(tableContent({ size }), tableContainer({ containerHeight }));\n\n/** Pagination configuration structure */\nexport type TablePagination = {\n\tid: string;\n\tcurrentPage: number;\n\titemsPerPage: number;\n\tsearch: string;\n};\n\n/**\n * A feature-rich data table component with sorting, pagination, and row selection\n *\n * @remarks\n * Integrates with Tailwind CSS for styling and supports responsive layouts.\n * Includes built-in pagination controls and checkbox selection functionality.\n *\n * @example\n * ```html\n * <st-table\n * [data]=\"users\"\n * [totalItems]=\"100\"\n * [pagination]=\"{ currentPage: 1, itemsPerPage: 10 }\"\n * (onPageChange)=\"handlePageChange($event)\"\n * size=\"md\"\n * height=\"lg\"\n * zebra\n * >\n * <!-- Table columns and content -->\n * </st-table>\n * ```\n */\n@Component({\n\tselector: 'st-table',\n\tstandalone: true,\n\timports: [CommonModule, PaginatorComponent, TypographyDirective, SelectComponent, IconComponent, TranslatePipe],\n\ttemplateUrl: './table.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableComponent {\n\t/**\n\t * Table size variant\n\t * @defaultValue 'sm'\n\t */\n\tsize = input<TableContentSizeProps>();\n\n\t/**\n\t * Table container height preset\n\t * @defaultValue 'auto'\n\t */\n\theight = input<TableContainerHeightProps>();\n\n\t/**\n\t * Enable sticky header row\n\t * @defaultValue false\n\t */\n\tpinRows = input<boolean>(false);\n\n\t/**\n\t * Enable sticky first column\n\t * @defaultValue false\n\t */\n\tpinColumns = input<boolean>(false);\n\n\t/**\n\t * Apply zebra-striping to rows\n\t * @defaultValue false\n\t */\n\tzebra = input<boolean>(false);\n\n\t/**\n\t * Pagination control display variant\n\t * @defaultValue 'default'\n\t */\n\tpaginatorType = input<PaginationType>('default');\n\n\t/** @internal Info icon reference */\n\tinfoIcon = matInfoOutline;\n\n\t/**\n\t * Array of data items to display\n\t * @defaultValue []\n\t */\n\tdata = input<unknown[]>([]);\n\n\t/**\n\t * Total number of items across all pages\n\t * @defaultValue 0\n\t */\n\ttotalItems = input<number>(0);\n\n\t/**\n\t * Pagination configuration\n\t * @defaultValue { id: 'paginator', currentPage: 1, itemsPerPage: 10, search: '' }\n\t */\n\tpagination = input<TablePagination>({\n\t\tid: 'paginator',\n\t\tcurrentPage: 1,\n\t\titemsPerPage: 10,\n\t\tsearch: '',\n\t});\n\n\t/**\n\t * Maximum number of pagination buttons to display\n\t * @defaultValue 7\n\t */\n\tmaxSize = input<number>(7);\n\n\t/** Event emitted when page changes */\n\tonPageChange = output<number>();\n\n\t/** Event emitted when page size changes */\n\tonPageSizeChange = output<number>();\n\n\t/**\n\t * Show items per page selector\n\t * @defaultValue true\n\t */\n\tshowItemsPerPage = input<boolean>(true);\n\n\t/**\n\t * Show entries count display\n\t * @defaultValue true\n\t */\n\tshowEntries = input<boolean>(true);\n\n\t/**\n\t * Show pagination controls\n\t * @defaultValue true\n\t */\n\tshowPagination = input<boolean>(true);\n\n\t/**\n\t * Computed display range for current page entries\n\t * @example \"1-10\" of 100 entries\n\t */\n\tpaginationRange = computed(() => {\n\t\tconst start = this.pagination().currentPage * this.pagination().itemsPerPage - this.pagination().itemsPerPage + 1;\n\t\tconst end = Math.min(this.pagination().currentPage * this.pagination().itemsPerPage, this.totalItems());\n\t\treturn `${start}-${end}`;\n\t});\n\n\t/**\n\t * Handles page navigation events\n\t * @param page - New page number\n\t */\n\thandlePageChange(page: number) {\n\t\tthis.handleToggleAll(false);\n\t\tthis.onPageChange.emit(page);\n\t}\n\n\t/**\n\t * Handles page size changes\n\t * @param size - New items per page value\n\t */\n\thandlePageSizeChange(size: number) {\n\t\tthis.handleToggleAll(false);\n\t\tthis.onPageSizeChange.emit(size);\n\t}\n\n\t/**\n\t * @internal\n\t * Computes table element classes based on current configuration\n\t */\n\tget tableClass() {\n\t\treturn cn(\n\t\t\ttableContent({\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'table-pin-rows': this.pinRows(),\n\t\t\t\t'table-pin-cols': this.pinColumns(),\n\t\t\t\t'table-zebra': this.zebra(),\n\t\t\t},\n\t\t);\n\t}\n\n\t/**\n\t * @internal\n\t * Computes table container classes based on height input\n\t */\n\tget tableContainerClass() {\n\t\treturn cn(\n\t\t\ttableContainer({\n\t\t\t\tcontainerHeight: this.height(),\n\t\t\t}),\n\t\t);\n\t}\n\n\t/**\n\t * @internal\n\t * Computes outer container classes based on size\n\t */\n\tget containerClass() {\n\t\treturn cn('flex flex-col gap-3 rounded-box border border-solid border-neutral pb-3', {\n\t\t\t'gap-3 pb-3': this.size() === 'xs' || this.size() === 'sm' || this.size() === 'md',\n\t\t\t'gap-4 pb-4': this.size() === 'lg',\n\t\t});\n\t}\n\n\tget paginatorTextSize(): TypographyVariantProps {\n\t\tswitch (this.size()) {\n\t\t\tcase 'xs':\n\t\t\t\treturn 'body-xxs';\n\t\t\tcase 'sm':\n\t\t\t\treturn 'body-xxs';\n\t\t\tcase 'md':\n\t\t\t\treturn 'body-xs';\n\t\t\tcase 'lg':\n\t\t\t\treturn 'body-xs';\n\t\t\tdefault:\n\t\t\t\treturn 'body-xs';\n\t\t}\n\t}\n\n\t/** @internal Reference to header checkbox component */\n\theader = contentChild(TableHeaderCheckboxComponent, { descendants: true });\n\n\t/** @internal List of row checkbox components */\n\trows = contentChildren(TableRowCheckboxComponent, { descendants: true });\n\n\t/** @internal Track selected row identifiers */\n\tidentifiers = signal<Set<unknown>>(new Set());\n\n\t/** Event emitted with array of selected item identifiers */\n\tonCheck = output<unknown[]>();\n\n\t/** @internal Sync checkbox state with output */\n\tcheckEffect = effect(() => {\n\t\tthis.onCheck.emit(Array.from(this.identifiers()));\n\t});\n\n\t/**\n\t * Toggle all row checkboxes\n\t * @param value - Whether to check or uncheck all rows\n\t */\n\thandleToggleAll(value: boolean) {\n\t\tif (!value) {\n\t\t\tthis.clearList();\n\t\t}\n\n\t\tthis.rows().forEach((row) => {\n\t\t\trow.checked.set(value);\n\t\t\tif (value) {\n\t\t\t\tthis.identifiers.update((items) => new Set(items).add(row.identifier()));\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Handle individual checkbox toggle\n\t * @param value - Checkbox state\n\t * @param identifier - Unique row identifier\n\t */\n\thandleToggleCheckbox(value: boolean, identifier: unknown) {\n\t\tif (value) {\n\t\t\tthis.identifiers.update((items) => new Set(items).add(identifier));\n\t\t} else {\n\t\t\tthis.header()?.checked.set(false);\n\t\t\tthis.identifiers.update((items) => {\n\t\t\t\titems.delete(identifier);\n\t\t\t\treturn new Set(items);\n\t\t\t});\n\t\t}\n\t}\n\n\t/** @internal Clear all selections */\n\tprivate clearList() {\n\t\tthis.identifiers.set(new Set());\n\t\tthis.header()?.checked.set(false);\n\t}\n}\n","@let total = totalItems();\n@if (total > 0 || data().length > 0) {\n\t<div [class]=\"containerClass\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClass\">\n\t\t\t<table [class]=\"tableClass\">\n\t\t\t\t<ng-content select=\"thead\" class=\"[&_tr]:\\hover\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t<!-- Divider -->\n\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t<!-- Pagination info -->\n\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t@if (showItemsPerPage()) {\n\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(onChange)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSize\" [tyColor]=\"'inherit'\">{{ 'sdk.table.entriesByPage' | translate }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t@if (showPagination()) {\n\t\t\t\t\t\t@if (paginatorType() === 'default') {\n\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t[paginatorId]=\"pagination().id\"\n\t\t\t\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\t\t\t\t(onPageChange)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t} @else if (paginatorType() === 'dots') {\n\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"pagination().id\" (onPageChange)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t@if (showEntries()) {\n\t\t\t\t\t\t@if (!showItemsPerPage() && !showPagination()) {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSize\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSize\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t{{ 'sdk.table.entriesRange' | translate: { range: paginationRange(), total: total } }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"grid h-full place-content-center gap-4 rounded-box border border-solid border-neutral p-6\">\n\t\t<div>\n\t\t\t<div class=\"grid place-content-center text-info\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [tyVariant]=\"paginatorTextSize\" [tyColor]=\"'inherit'\">{{ 'sdk.table.emptyListMessage' | translate }}</span>\n\t\t</div>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.TableComponent"],"mappings":";;;;;;;;;;;;;AAIA;;;;;;;;;;;;;;AAcG;MASU,4BAA4B,CAAA;AA2BZ,IAAA,KAAA,CAAA;AA1B5B;;;;AAIG;AAC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AAC,EAE9F,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,k+FAAA,EAAA,CAAA;;;AEhHhD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-table.mjs","sources":["../../../projects/sdk/components/table/table-header-checkbox/table-header-checkbox.component.ts","../../../projects/sdk/components/table/table-header-checkbox/table-header-checkbox.component.html","../../../projects/sdk/components/table/table-row-checkbox/table-row-checkbox.component.ts","../../../projects/sdk/components/table/table-row-checkbox/table-row-checkbox.component.html","../../../projects/sdk/components/table/src/table.component.ts","../../../projects/sdk/components/table/src/table.component.html","../../../projects/sdk/components/table/sixbell-telco-sdk-components-table.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Host, input, signal } from '@angular/core';\nimport { CheckboxComponent, CheckboxSizeProps, CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';\nimport { TableComponent } from '../src/table.component';\n\n/**\n * Header checkbox component for the table.\n *\n * This component renders a checkbox within a table header row,\n * allowing users to select or deselect all rows in the table.\n *\n * @remarks\n * Utilizes Angular's dependency injection to access the parent {@link TableComponent}\n * and propagate the checkbox state changes.\n *\n * @example\n * ```html\n * <tr header-checkbox></tr>\n * ```\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'tr[header-checkbox]',\n imports: [CheckboxComponent],\n templateUrl: './table-header-checkbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TableHeaderCheckboxComponent {\n\t/**\n\t * Defines the variant styling of the checkbox.\n\t *\n\t * @defaultValue 'primary'\n\t */\n\tcheckboxVariant = input<CheckboxVariantProps>('primary');\n\n\t/**\n\t * Defines the size of the checkbox.\n\t *\n\t * @defaultValue 'md'\n\t */\n\tcheckboxSize = input<CheckboxSizeProps>('md');\n\n\t/**\n\t * Signal that tracks the checked state of the header checkbox.\n\t *\n\t * @defaultValue false\n\t */\n\tchecked = signal<boolean>(false);\n\n\t/**\n\t * Creates an instance of TableHeaderCheckboxComponent.\n\t *\n\t * @param table - Reference to the parent {@link TableComponent} to access table-level operations.\n\t */\n\tconstructor(@Host() private table: TableComponent) {}\n\n\t/**\n\t * Handles the event when the header checkbox is toggled.\n\t *\n\t * This method notifies the parent table component to either select or deselect all rows.\n\t *\n\t * @param value - The new checked state (true to select all rows, false to deselect all).\n\t */\n\thandleSelectAll(value: boolean) {\n\t\tthis.table.handleToggleAll(value);\n\t}\n}\n","<th class=\"w-6\">\n\t<st-checkbox [(value)]=\"checked\" (valueUpdated)=\"handleSelectAll($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\" />\n</th>\n<ng-content></ng-content>\n","import { ChangeDetectionStrategy, Component, Host, input, signal } from '@angular/core';\nimport { CheckboxComponent, CheckboxSizeProps, CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';\nimport { TableComponent } from '../src/table.component';\n\n/**\n * Row checkbox component for table row selection.\n *\n * This component renders a checkbox within a table row,\n * enabling individual row selection. It interacts with the parent\n * {@link TableComponent} to update the selection state.\n *\n * @example\n * ```html\n * <tr row-checkbox [identifier]=\"rowId\"></tr>\n * ```\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'tr[row-checkbox]',\n imports: [CheckboxComponent],\n templateUrl: './table-row-checkbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TableRowCheckboxComponent {\n\t/**\n\t * Defines the variant styling of the checkbox.\n\t *\n\t * @defaultValue 'primary'\n\t */\n\tcheckboxVariant = input<CheckboxVariantProps>('primary');\n\n\t/**\n\t * Defines the size of the checkbox.\n\t *\n\t * @defaultValue 'md'\n\t */\n\tcheckboxSize = input<CheckboxSizeProps>('md');\n\n\t/**\n\t * Unique identifier for the table row.\n\t *\n\t * This input is required to track the specific row in the table.\n\t */\n\tidentifier = input.required();\n\n\t/**\n\t * Signal that tracks the checked state of the row checkbox.\n\t *\n\t * @defaultValue false\n\t */\n\tchecked = signal<boolean>(false);\n\n\t/**\n\t * Creates an instance of TableRowCheckboxComponent.\n\t *\n\t * @param table - Reference to the parent {@link TableComponent} to access\n\t * table-level operations for row selection.\n\t */\n\tconstructor(@Host() private table: TableComponent) {}\n\n\t/**\n\t * Handles the selection event of the row checkbox.\n\t *\n\t * This method notifies the parent table component to update the selection state\n\t * for the corresponding row, based on the checkbox's new value.\n\t *\n\t * @param value - The new checked state (true for selected, false for deselected).\n\t */\n\thandleSelect(value: boolean) {\n\t\tthis.table.handleToggleCheckbox(value, this.identifier());\n\t}\n}\n","<td>\n\t<st-checkbox [(value)]=\"checked\" (valueUpdated)=\"handleSelect($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\"></st-checkbox>\n</td>\n<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, effect, input, output, signal } from '@angular/core';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { SelectComponent } from '@sixbell-telco/sdk/components/forms/select';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matInfoOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { PaginatorComponent } from '@sixbell-telco/sdk/components/paginator';\nimport { TypographyDirective, TypographyVariantProps } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\nimport { TableHeaderCheckboxComponent } from '../table-header-checkbox/table-header-checkbox.component';\nimport { TableRowCheckboxComponent } from '../table-row-checkbox/table-row-checkbox.component';\n\n/** Type definition for pagination display variants */\nexport type PaginationType = 'default' | 'dots';\n\n/**\n * @internal\n * Generates base table classes with size variants\n */\nexport const tableContent = cva(\n\t['table', 'relative border-separate border-spacing-0', '[&_th]:bg-neutral [&_th]:text-neutral-content', '[&_th]:px-4', '[&_td]:px-4'],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\txs: ['table-xs', '[&_th]:leading-normal', '[&_td]:leading-tight'],\n\t\t\t\tsm: ['table-sm', '[&_th]:leading-normal', '[&_td]:leading-tight'],\n\t\t\t\tmd: ['table-md', '[&_th]:leading-normal', '[&_td]:leading-tight'],\n\t\t\t\tlg: ['table-lg', '[&_th]:leading-normal', '[&_td]:leading-tight'],\n\t\t\t\txl: ['table-lg', '[&_th]:leading-normal', '[&_td]:leading-tight'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\tsize: 'sm',\n\t\t},\n\t},\n);\n\n/** Possible table size variants */\nexport type TableContentSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/**\n * @internal\n * Generates table container classes with height variants\n */\nexport const tableContainer = cva(['overflow-y-auto rounded-t-box overscroll-contain'], {\n\tvariants: {\n\t\tcontainerHeight: {\n\t\t\tauto: ['h-auto'],\n\t\t\tfull: ['h-full'],\n\t\t\tsm: ['max-h-72 h-full'],\n\t\t\tmd: ['max-h-80 h-full'],\n\t\t\tlg: ['max-h-96 h-full'],\n\t\t\txl: ['max-h-[36rem] h-full'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tcontainerHeight: 'auto',\n\t},\n});\n\n/** Possible table container height values */\nexport type TableContainerHeightProps = 'auto' | 'full' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Configuration object for table styling variants */\nexport type TableVariantProps = {\n\tsize?: TableContentSizeProps;\n\tcontainerHeight?: TableContainerHeightProps;\n};\n\n/**\n * @internal\n * Combines table content and container classes\n */\nexport const tableComponent = ({ size, containerHeight }: TableVariantProps = {}) => cx(tableContent({ size }), tableContainer({ containerHeight }));\n\n/** Pagination configuration structure */\nexport type TablePagination = {\n\tid: string;\n\tcurrentPage: number;\n\titemsPerPage: number;\n\tsearch: string;\n};\n\n/**\n * A feature-rich data table component with sorting, pagination, and row selection\n *\n * @remarks\n * Integrates with Tailwind CSS for styling and supports responsive layouts.\n * Includes built-in pagination controls and checkbox selection functionality.\n *\n * @example\n * ```html\n * <st-table\n * [data]=\"users\"\n * [totalItems]=\"100\"\n * [pagination]=\"{ currentPage: 1, itemsPerPage: 10 }\"\n * (onPageChange)=\"handlePageChange($event)\"\n * size=\"md\"\n * height=\"lg\"\n * zebra\n * >\n * <!-- Table columns and content -->\n * </st-table>\n * ```\n */\n@Component({\n\tselector: 'st-table',\n\timports: [CommonModule, PaginatorComponent, TypographyDirective, SelectComponent, IconComponent, TranslatePipe],\n\ttemplateUrl: './table.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableComponent {\n\t/**\n\t * Table size variant\n\t * @defaultValue 'sm'\n\t */\n\tsize = input<TableContentSizeProps>();\n\n\t/**\n\t * Table container height preset\n\t * @defaultValue 'auto'\n\t */\n\theight = input<TableContainerHeightProps>();\n\n\t/**\n\t * Enable sticky header row\n\t * @defaultValue false\n\t */\n\tpinRows = input<boolean>(false);\n\n\t/**\n\t * Enable sticky first column\n\t * @defaultValue false\n\t */\n\tpinColumns = input<boolean>(false);\n\n\t/**\n\t * Apply zebra-striping to rows\n\t * @defaultValue false\n\t */\n\tzebra = input<boolean>(false);\n\n\t/**\n\t * Pagination control display variant\n\t * @defaultValue 'default'\n\t */\n\tpaginatorType = input<PaginationType>('default');\n\n\t/** @internal Info icon reference */\n\tinfoIcon = matInfoOutline;\n\n\t/**\n\t * Array of data items to display\n\t * @defaultValue []\n\t */\n\tdata = input<unknown[]>([]);\n\n\t/**\n\t * Total number of items across all pages\n\t * @defaultValue 0\n\t */\n\ttotalItems = input<number>(0);\n\n\t/**\n\t * Pagination configuration\n\t * @defaultValue { id: 'paginator', currentPage: 1, itemsPerPage: 10, search: '' }\n\t */\n\tpagination = input<TablePagination>({\n\t\tid: 'paginator',\n\t\tcurrentPage: 1,\n\t\titemsPerPage: 10,\n\t\tsearch: '',\n\t});\n\n\t/**\n\t * Maximum number of pagination buttons to display\n\t * @defaultValue 7\n\t */\n\tmaxSize = input<number>(7);\n\n\t/** Event emitted when page changes */\n\tpageChanged = output<number>();\n\n\t/** Event emitted when page size changes */\n\tpageSizeChanged = output<number>();\n\n\t/**\n\t * Show items per page selector\n\t * @defaultValue true\n\t */\n\tshowItemsPerPage = input<boolean>(true);\n\n\t/**\n\t * Show entries count display\n\t * @defaultValue true\n\t */\n\tshowEntries = input<boolean>(true);\n\n\t/**\n\t * Show pagination controls\n\t * @defaultValue true\n\t */\n\tshowPagination = input<boolean>(true);\n\n\t/**\n\t * Computed display range for current page entries\n\t * @example \"1-10\" of 100 entries\n\t */\n\tpaginationRange = computed(() => {\n\t\tconst start = this.pagination().currentPage * this.pagination().itemsPerPage - this.pagination().itemsPerPage + 1;\n\t\tconst end = Math.min(this.pagination().currentPage * this.pagination().itemsPerPage, this.totalItems());\n\t\treturn `${start}-${end}`;\n\t});\n\n\t/**\n\t * Handles page navigation events\n\t * @param page - New page number\n\t */\n\thandlePageChange(page: number) {\n\t\tthis.handleToggleAll(false);\n\t\tthis.pageChanged.emit(page);\n\t}\n\n\t/**\n\t * Handles page size changes\n\t * @param size - New items per page value\n\t */\n\thandlePageSizeChange(size: number) {\n\t\tthis.handleToggleAll(false);\n\t\tthis.pageSizeChanged.emit(size);\n\t}\n\n\t/**\n\t * @internal\n\t * Computes table element classes based on current configuration\n\t */\n\ttableClass = computed(() =>\n\t\tcn(\n\t\t\ttableContent({\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'table-pin-rows': this.pinRows(),\n\t\t\t\t'table-pin-cols': this.pinColumns(),\n\t\t\t\t'table-zebra': this.zebra(),\n\t\t\t},\n\t\t),\n\t);\n\n\t/**\n\t * @internal\n\t * Computes table container classes based on height input\n\t */\n\ttableContainerClass = computed(() =>\n\t\tcn(\n\t\t\ttableContainer({\n\t\t\t\tcontainerHeight: this.height(),\n\t\t\t}),\n\t\t),\n\t);\n\n\t/**\n\t * @internal\n\t * Computes outer container classes based on size\n\t */\n\tcontainerClass = computed(() =>\n\t\tcn('flex flex-col gap-3 rounded-box border border-solid border-neutral pb-3', {\n\t\t\t'gap-3 pb-3': this.size() === 'xs' || this.size() === 'sm' || this.size() === 'md',\n\t\t\t'gap-4 pb-4': this.size() === 'lg',\n\t\t\t'gap-5 pb-5': this.size() === 'xl',\n\t\t}),\n\t);\n\n\t/**\n\t * @internal\n\t * Computes typography variant for paginator text based on table size\n\t */\n\tpaginatorTextSize = computed<TypographyVariantProps>(() => {\n\t\tswitch (this.size()) {\n\t\t\tcase 'xs':\n\t\t\t\treturn 'body-xxs';\n\t\t\tcase 'sm':\n\t\t\t\treturn 'body-xs';\n\t\t\tcase 'md':\n\t\t\t\treturn 'body-sm';\n\t\t\tcase 'lg':\n\t\t\t\treturn 'body';\n\t\t\tcase 'xl':\n\t\t\t\treturn 'body';\n\t\t\tdefault:\n\t\t\t\treturn 'body-xs';\n\t\t}\n\t});\n\n\t/** @internal Reference to header checkbox component */\n\theader = contentChild(TableHeaderCheckboxComponent, { descendants: true });\n\n\t/** @internal List of row checkbox components */\n\trows = contentChildren(TableRowCheckboxComponent, { descendants: true });\n\n\t/** @internal Track selected row identifiers */\n\tidentifiers = signal<Set<unknown>>(new Set());\n\n\t/** Event emitted with array of selected item identifiers */\n\tcheckedItems = output<unknown[]>();\n\n\t/** @internal Sync checkbox state with output */\n\tcheckEffect = effect(() => {\n\t\tthis.checkedItems.emit(Array.from(this.identifiers()));\n\t});\n\n\t/**\n\t * Toggle all row checkboxes\n\t * @param value - Whether to check or uncheck all rows\n\t */\n\thandleToggleAll(value: boolean) {\n\t\tif (!value) {\n\t\t\tthis.clearList();\n\t\t}\n\n\t\tthis.rows().forEach((row) => {\n\t\t\trow.checked.set(value);\n\t\t\tif (value) {\n\t\t\t\tthis.identifiers.update((items) => new Set(items).add(row.identifier()));\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Handle individual checkbox toggle\n\t * @param value - Checkbox state\n\t * @param identifier - Unique row identifier\n\t */\n\thandleToggleCheckbox(value: boolean, identifier: unknown) {\n\t\tif (value) {\n\t\t\tthis.identifiers.update((items) => new Set(items).add(identifier));\n\t\t} else {\n\t\t\tthis.header()?.checked.set(false);\n\t\t\tthis.identifiers.update((items) => {\n\t\t\t\titems.delete(identifier);\n\t\t\t\treturn new Set(items);\n\t\t\t});\n\t\t}\n\t}\n\n\t/** @internal Clear all selections */\n\tprivate clearList() {\n\t\tthis.identifiers.set(new Set());\n\t\tthis.header()?.checked.set(false);\n\t}\n}\n","@let total = totalItems();\n@let dataVar = data();\n@let containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let showItemsPerPageVar = showItemsPerPage();\n@let paginationVar = pagination();\n@let showPaginationVar = showPagination();\n@let paginatorTypeVar = paginatorType();\n@let maxSizeVar = maxSize();\n@let showEntriesVar = showEntries();\n\n@if (total > 0 || dataVar.length > 0) {\n\t<div [class]=\"containerClassVar\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClassVar\">\n\t\t\t<table [class]=\"tableClassVar\">\n\t\t\t\t<ng-content select=\"thead\" class=\"[&_tr]:\\hover\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t<!-- Divider -->\n\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t<!-- Pagination info -->\n\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.entriesByPage' | translate }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"paginationVar.id\" (pageChanged)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t{{ 'sdk.table.entriesRange' | translate: { range: paginationRange(), total: total } }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"rounded-box border-neutral grid h-full place-content-center gap-4 border border-solid p-6\">\n\t\t<div>\n\t\t\t<div class=\"text-info grid place-content-center\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.emptyListMessage' | translate }}</span>\n\t\t</div>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.TableComponent"],"mappings":";;;;;;;;;;;;;AAIA;;;;;;;;;;;;;;AAcG;MAQU,4BAA4B,CAAA;AA2BZ,IAAA,KAAA;AA1B5B;;;;AAIG;AACH,IAAA,eAAe,GAAG,KAAK,CAAuB,SAAS,CAAC;AAExD;;;;AAIG;AACH,IAAA,YAAY,GAAG,KAAK,CAAoB,IAAI,CAAC;AAE7C;;;;AAIG;AACH,IAAA,OAAO,GAAG,MAAM,CAAU,KAAK,CAAC;AAEhC;;;;AAIG;AACH,IAAA,WAAA,CAA4B,KAAqB,EAAA;QAArB,IAAK,CAAA,KAAA,GAAL,KAAK;;AAEjC;;;;;;AAMG;AACH,IAAA,eAAe,CAAC,KAAc,EAAA;AAC7B,QAAA,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC;;uGArCtB,4BAA4B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,cAAA,EAAA,IAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,EAAA,eAAA,EAAA,EAAA,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;2FAIlG,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,WACX,CAAC,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,CAAC,EAE9F,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,s8GAAA,EAAA;;;AEhHhD;;AAEG;;;;"}
|
|
@@ -62,10 +62,10 @@ class ToastService {
|
|
|
62
62
|
expand() {
|
|
63
63
|
this.expandedSignal.set(true);
|
|
64
64
|
}
|
|
65
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
66
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
65
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
66
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ToastService, providedIn: 'root' });
|
|
67
67
|
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ToastService, decorators: [{
|
|
69
69
|
type: Injectable,
|
|
70
70
|
args: [{
|
|
71
71
|
providedIn: 'root',
|
|
@@ -95,52 +95,36 @@ class ToastMessageComponent {
|
|
|
95
95
|
toast = input.required();
|
|
96
96
|
toastAmount = input.required();
|
|
97
97
|
toastIndex = input.required();
|
|
98
|
-
|
|
98
|
+
clicked = output();
|
|
99
99
|
iconCheckCircle = matCheckCircleOutline;
|
|
100
100
|
iconWarning = matWarningOutline;
|
|
101
101
|
iconError = matErrorOutline;
|
|
102
102
|
iconInfo = matInfoOutline;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
103
|
+
componentClass = computed(() => {
|
|
104
|
+
const toast = this.toast();
|
|
105
|
+
const classes = this.classes();
|
|
106
|
+
switch (toast.type) {
|
|
107
|
+
case this.types.SUCCESS:
|
|
108
|
+
return cn(toastComponent({ variant: 'success', class: classes }));
|
|
109
|
+
case this.types.ERROR:
|
|
110
|
+
return cn(toastComponent({ variant: 'error', class: classes }));
|
|
111
|
+
case this.types.WARNING:
|
|
112
|
+
return cn(toastComponent({ variant: 'warning', class: classes }));
|
|
113
|
+
case this.types.INFO:
|
|
114
|
+
return cn(toastComponent({ variant: 'info', class: classes }));
|
|
115
|
+
default:
|
|
116
|
+
return cn(toastComponent({ variant: 'info', class: classes }));
|
|
109
117
|
}
|
|
110
|
-
|
|
111
|
-
return cn(toastComponent({
|
|
112
|
-
variant: 'error',
|
|
113
|
-
class: this.classes(),
|
|
114
|
-
}));
|
|
115
|
-
}
|
|
116
|
-
else if (this.toast().type === this.types.INFO) {
|
|
117
|
-
return cn(toastComponent({
|
|
118
|
-
variant: 'info',
|
|
119
|
-
class: this.classes(),
|
|
120
|
-
}));
|
|
121
|
-
}
|
|
122
|
-
else if (this.toast().type === this.types.WARNING) {
|
|
123
|
-
return cn(toastComponent({
|
|
124
|
-
variant: 'warning',
|
|
125
|
-
class: this.classes(),
|
|
126
|
-
}));
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
return cn(toastComponent({
|
|
130
|
-
variant: 'info',
|
|
131
|
-
class: this.classes(),
|
|
132
|
-
}));
|
|
133
|
-
}
|
|
134
|
-
}
|
|
118
|
+
});
|
|
135
119
|
handleClose() {
|
|
136
|
-
this.
|
|
120
|
+
this.clicked.emit(this.toast());
|
|
137
121
|
}
|
|
138
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
139
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
122
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ToastMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
123
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: ToastMessageComponent, isStandalone: true, selector: "st-toast-message", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, toast: { classPropertyName: "toast", publicName: "toast", isSignal: true, isRequired: true, transformFunction: null }, toastAmount: { classPropertyName: "toastAmount", publicName: "toastAmount", isSignal: true, isRequired: true, transformFunction: null }, toastIndex: { classPropertyName: "toastIndex", publicName: "toastIndex", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { clicked: "clicked" }, ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<li\n\t[class]=\"componentClass()\"\n\t[ngClass]=\"{\n\t\t'animate-toast-slide-out bottom-0': toast().animate === 'leave' && toastAmount() > 1,\n\t\t'animate-slide-out': toast().animate === 'leave' && toastAmount() === 1,\n\t\t'animate-fade-out': toast().animate === 'leave' && toastAmount() > 1 && toastIndex() === 0,\n\t\t'animate-slide-in': toast().animate === 'enter',\n\t}\"\n\t(click)=\"handleClose()\"\n\trole=\"button\"\n\ttabindex=\"0\"\n>\n\t<div class=\"flex flex-1 items-center justify-center\">\n\t\t@if (this.toast().type === this.types.SUCCESS) {\n\t\t\t<st-icon [icon]=\"iconCheckCircle\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.WARNING) {\n\t\t\t<st-icon [icon]=\"iconWarning\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.ERROR) {\n\t\t\t<st-icon [icon]=\"iconError\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.INFO) {\n\t\t\t<st-icon [icon]=\"iconInfo\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t}\n\t</div>\n\t<div class=\"flex-4\">\n\t\t<div class=\"grid grid-rows-[min-content_1fr]\">\n\t\t\t<div typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'semibold'\">{{ toast().title }}</div>\n\t\t\t<div typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">\n\t\t\t\t{{ toast().message }}\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</li>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
140
124
|
}
|
|
141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ToastMessageComponent, decorators: [{
|
|
142
126
|
type: Component,
|
|
143
|
-
args: [{ selector: 'st-toast-message',
|
|
127
|
+
args: [{ selector: 'st-toast-message', imports: [TypographyDirective, IconComponent, NgClass], template: "<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<li\n\t[class]=\"componentClass()\"\n\t[ngClass]=\"{\n\t\t'animate-toast-slide-out bottom-0': toast().animate === 'leave' && toastAmount() > 1,\n\t\t'animate-slide-out': toast().animate === 'leave' && toastAmount() === 1,\n\t\t'animate-fade-out': toast().animate === 'leave' && toastAmount() > 1 && toastIndex() === 0,\n\t\t'animate-slide-in': toast().animate === 'enter',\n\t}\"\n\t(click)=\"handleClose()\"\n\trole=\"button\"\n\ttabindex=\"0\"\n>\n\t<div class=\"flex flex-1 items-center justify-center\">\n\t\t@if (this.toast().type === this.types.SUCCESS) {\n\t\t\t<st-icon [icon]=\"iconCheckCircle\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.WARNING) {\n\t\t\t<st-icon [icon]=\"iconWarning\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.ERROR) {\n\t\t\t<st-icon [icon]=\"iconError\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.INFO) {\n\t\t\t<st-icon [icon]=\"iconInfo\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t}\n\t</div>\n\t<div class=\"flex-4\">\n\t\t<div class=\"grid grid-rows-[min-content_1fr]\">\n\t\t\t<div typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'semibold'\">{{ toast().title }}</div>\n\t\t\t<div typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">\n\t\t\t\t{{ toast().message }}\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</li>\n" }]
|
|
144
128
|
}] });
|
|
145
129
|
|
|
146
130
|
class ToastsContainerComponent {
|
|
@@ -171,12 +155,12 @@ class ToastsContainerComponent {
|
|
|
171
155
|
getToastIndex(toast) {
|
|
172
156
|
return this.toastService.toasts().findIndex((t) => t.id === toast.id);
|
|
173
157
|
}
|
|
174
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
175
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
158
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ToastsContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
159
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: ToastsContainerComponent, isStandalone: true, selector: "st-toasts-container", ngImport: i0, template: "<section class=\"fixed bottom-2 right-4 z-10\">\n\t<ol\n\t\tclass=\"toast-container group flex min-w-[400px] flex-col gap-2\"\n\t\t[ngClass]=\"containerClasses()\"\n\t\t[attr.aria-expanded]=\"toastService.expanded()\"\n\t\t(mouseenter)=\"handleExpand()\"\n\t\t(mouseleave)=\"handleCollapse()\"\n\t>\n\t\t@for (toast of toastService.toasts(); track toast.id) {\n\t\t\t<st-toast-message\n\t\t\t\t[toast]=\"toast\"\n\t\t\t\t[toastIndex]=\"getToastIndex(toast)\"\n\t\t\t\t[toastAmount]=\"toastService.toasts().length\"\n\t\t\t\t(clicked)=\"handleRemove($event)\"\n\t\t\t/>\n\t\t}\n\t</ol>\n</section>\n", dependencies: [{ kind: "component", type: ToastMessageComponent, selector: "st-toast-message", inputs: ["variant", "classes", "toast", "toastAmount", "toastIndex"], outputs: ["clicked"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
176
160
|
}
|
|
177
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ToastsContainerComponent, decorators: [{
|
|
178
162
|
type: Component,
|
|
179
|
-
args: [{ selector: 'st-toasts-container',
|
|
163
|
+
args: [{ selector: 'st-toasts-container', imports: [ToastMessageComponent, NgClass], template: "<section class=\"fixed bottom-2 right-4 z-10\">\n\t<ol\n\t\tclass=\"toast-container group flex min-w-[400px] flex-col gap-2\"\n\t\t[ngClass]=\"containerClasses()\"\n\t\t[attr.aria-expanded]=\"toastService.expanded()\"\n\t\t(mouseenter)=\"handleExpand()\"\n\t\t(mouseleave)=\"handleCollapse()\"\n\t>\n\t\t@for (toast of toastService.toasts(); track toast.id) {\n\t\t\t<st-toast-message\n\t\t\t\t[toast]=\"toast\"\n\t\t\t\t[toastIndex]=\"getToastIndex(toast)\"\n\t\t\t\t[toastAmount]=\"toastService.toasts().length\"\n\t\t\t\t(clicked)=\"handleRemove($event)\"\n\t\t\t/>\n\t\t}\n\t</ol>\n</section>\n" }]
|
|
180
164
|
}] });
|
|
181
165
|
|
|
182
166
|
/**
|