@six-group/ui-library 0.0.0-insider.a358260 → 0.0.0-insider.d16ec8e
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/dist/cjs/{event-listeners-74715e62.js → event-listeners-dd94dcfb.js} +7 -7
- package/dist/cjs/event-listeners-dd94dcfb.js.map +1 -0
- package/dist/cjs/{execution-control-46f388e0.js → execution-control-45c84c46.js} +6 -3
- package/dist/cjs/execution-control-45c84c46.js.map +1 -0
- package/dist/cjs/{focus-visible-0b352c74.js → focus-visible-e0d93a95.js} +3 -3
- package/dist/cjs/focus-visible-e0d93a95.js.map +1 -0
- package/dist/cjs/{form-control-2c17c573.js → form-control-7494488a.js} +10 -9
- package/dist/cjs/form-control-7494488a.js.map +1 -0
- package/dist/cjs/{index-2f6daa5b.js → index-ccf35821.js} +4 -1
- package/dist/cjs/index-ccf35821.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{modal-48d42228.js → modal-21350fb5.js} +4 -3
- package/dist/cjs/modal-21350fb5.js.map +1 -0
- package/dist/cjs/{popover-f743f62b.js → popover-b5e2d5ef.js} +33 -19
- package/dist/cjs/popover-b5e2d5ef.js.map +1 -0
- package/dist/cjs/popup-44836aaf.js +103 -0
- package/dist/cjs/popup-44836aaf.js.map +1 -0
- package/dist/cjs/set-attributes_2.cjs.entry.js +4 -2
- package/dist/cjs/set-attributes_2.cjs.entry.js.map +1 -1
- package/dist/cjs/six-alert.cjs.entry.js +18 -23
- package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/six-avatar.cjs.entry.js +5 -8
- package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-badge.cjs.entry.js +2 -2
- package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/six-button.cjs.entry.js +30 -34
- package/dist/cjs/six-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-card.cjs.entry.js +1 -1
- package/dist/cjs/six-card.cjs.entry.js.map +1 -1
- package/dist/cjs/six-checkbox.cjs.entry.js +5 -4
- package/dist/cjs/six-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/six-datepicker.cjs.entry.js +148 -245
- package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-details.cjs.entry.js +48 -47
- package/dist/cjs/six-details.cjs.entry.js.map +1 -1
- package/dist/cjs/six-dialog.cjs.entry.js +36 -40
- package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/six-drawer.cjs.entry.js +33 -37
- package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/six-dropdown_2.cjs.entry.js +215 -196
- package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/six-error-page.cjs.entry.js +20 -22
- package/dist/cjs/six-error-page.cjs.entry.js.map +1 -1
- package/dist/cjs/six-file-list-item.cjs.entry.js +2 -2
- package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-file-list.cjs.entry.js +1 -1
- package/dist/cjs/six-file-upload.cjs.entry.js +21 -21
- package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/six-footer.cjs.entry.js +1 -1
- package/dist/cjs/six-form.cjs.entry.js +40 -35
- package/dist/cjs/six-form.cjs.entry.js.map +1 -1
- package/dist/cjs/six-group-label.cjs.entry.js +12 -11
- package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
- package/dist/cjs/six-header.cjs.entry.js +66 -44
- package/dist/cjs/six-header.cjs.entry.js.map +1 -1
- package/dist/cjs/six-icon-button.cjs.entry.js +4 -4
- package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-icon.cjs.entry.js +1 -1
- package/dist/cjs/six-input.cjs.entry.js +5 -5
- package/dist/cjs/six-input.cjs.entry.js.map +1 -1
- package/dist/cjs/six-item-picker.cjs.entry.js +59 -78
- package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-language-switcher.cjs.entry.js +2 -2
- package/dist/cjs/six-language-switcher.cjs.entry.js.map +1 -1
- package/dist/cjs/six-layout-grid.cjs.entry.js +5 -3
- package/dist/cjs/six-layout-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/six-main-container.cjs.entry.js +1 -1
- package/dist/cjs/six-main-container.cjs.entry.js.map +1 -1
- package/dist/cjs/six-menu-divider.cjs.entry.js +1 -1
- package/dist/cjs/six-menu-item.cjs.entry.js +9 -7
- package/dist/cjs/six-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-menu-label.cjs.entry.js +1 -1
- package/dist/cjs/six-picto.cjs.entry.js +5 -2
- package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
- package/dist/cjs/six-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/six-progress-ring.cjs.entry.js +4 -4
- package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
- package/dist/cjs/six-radio.cjs.entry.js +1 -1
- package/dist/cjs/six-range.cjs.entry.js +4 -4
- package/dist/cjs/six-root.cjs.entry.js +2 -2
- package/dist/cjs/six-root.cjs.entry.js.map +1 -1
- package/dist/cjs/six-search-field.cjs.entry.js +11 -6
- package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
- package/dist/cjs/six-select.cjs.entry.js +135 -188
- package/dist/cjs/six-select.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js +10 -6
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar-item.cjs.entry.js +1 -1
- package/dist/cjs/six-sidebar.cjs.entry.js +40 -19
- package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-spinner.cjs.entry.js +1 -1
- package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
- package/dist/cjs/six-switch.cjs.entry.js +51 -45
- package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab-group.cjs.entry.js +131 -113
- package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab.cjs.entry.js +5 -3
- package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tag.cjs.entry.js +5 -8
- package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/six-textarea.cjs.entry.js +4 -4
- package/dist/cjs/six-tile.cjs.entry.js +14 -17
- package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/six-timepicker.cjs.entry.js +155 -201
- package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tooltip.cjs.entry.js +54 -57
- package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/{slot-ad537f24.js → slot-bccbdb59.js} +11 -10
- package/dist/cjs/slot-bccbdb59.js.map +1 -0
- package/dist/cjs/ui-library.cjs.js +2 -2
- package/dist/collection/components/six-alert/six-alert.js +17 -22
- package/dist/collection/components/six-alert/six-alert.js.map +1 -1
- package/dist/collection/components/six-avatar/six-avatar.js +4 -7
- package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
- package/dist/collection/components/six-badge/six-badge.js +1 -1
- package/dist/collection/components/six-badge/six-badge.js.map +1 -1
- package/dist/collection/components/six-button/six-button.js +38 -40
- package/dist/collection/components/six-button/six-button.js.map +1 -1
- package/dist/collection/components/six-card/six-card.js +1 -1
- package/dist/collection/components/six-card/six-card.js.map +1 -1
- package/dist/collection/components/six-checkbox/six-checkbox.js +3 -2
- package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
- package/dist/collection/components/six-datepicker/components/day-selection.js +2 -2
- package/dist/collection/components/six-datepicker/components/day-selection.js.map +1 -1
- package/dist/collection/components/six-datepicker/components/month-selection.js +4 -3
- package/dist/collection/components/six-datepicker/components/month-selection.js.map +1 -1
- package/dist/collection/components/six-datepicker/components/year-selection.js +9 -6
- package/dist/collection/components/six-datepicker/components/year-selection.js.map +1 -1
- package/dist/collection/components/six-datepicker/six-datepicker.js +126 -240
- package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
- package/dist/collection/components/six-details/six-details.js +51 -50
- package/dist/collection/components/six-details/six-details.js.map +1 -1
- package/dist/collection/components/six-dialog/six-dialog.js +34 -38
- package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
- package/dist/collection/components/six-drawer/six-drawer.js +31 -35
- package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
- package/dist/collection/components/six-dropdown/six-dropdown.js +185 -173
- package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
- package/dist/collection/components/six-error-page/six-error-page.js +25 -27
- package/dist/collection/components/six-error-page/six-error-page.js.map +1 -1
- package/dist/collection/components/six-file-list-item/six-file-list-item.js +3 -3
- package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
- package/dist/collection/components/six-file-upload/six-file-upload.js +32 -32
- package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
- package/dist/collection/components/six-form/six-form.js +41 -33
- package/dist/collection/components/six-form/six-form.js.map +1 -1
- package/dist/collection/components/six-group-label/six-group-label.js +11 -9
- package/dist/collection/components/six-group-label/six-group-label.js.map +1 -1
- package/dist/collection/components/six-header/six-header.js +64 -42
- package/dist/collection/components/six-header/six-header.js.map +1 -1
- package/dist/collection/components/six-icon-button/six-icon-button.js +8 -8
- package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
- package/dist/collection/components/six-input/six-input.js +16 -16
- package/dist/collection/components/six-input/six-input.js.map +1 -1
- package/dist/collection/components/six-item-picker/six-item-picker.js +65 -84
- package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -1
- package/dist/collection/components/six-language-switcher/six-language-switcher.js +2 -2
- package/dist/collection/components/six-language-switcher/six-language-switcher.js.map +1 -1
- package/dist/collection/components/six-layout-grid/six-layout-grid.js +10 -8
- package/dist/collection/components/six-layout-grid/six-layout-grid.js.map +1 -1
- package/dist/collection/components/six-main-container/six-main-container.js +1 -1
- package/dist/collection/components/six-main-container/six-main-container.js.map +1 -1
- package/dist/collection/components/six-menu/six-menu.js +29 -23
- package/dist/collection/components/six-menu/six-menu.js.map +1 -1
- package/dist/collection/components/six-menu-item/six-menu-item.js +7 -5
- package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
- package/dist/collection/components/six-picto/six-picto.js +5 -2
- package/dist/collection/components/six-picto/six-picto.js.map +1 -1
- package/dist/collection/components/six-progress-ring/six-progress-ring.js +5 -4
- package/dist/collection/components/six-progress-ring/six-progress-ring.js.map +1 -1
- package/dist/collection/components/six-radio/six-radio.js +2 -2
- package/dist/collection/components/six-root/six-root.js +4 -4
- package/dist/collection/components/six-root/six-root.js.map +1 -1
- package/dist/collection/components/six-search-field/six-search-field.js +10 -5
- package/dist/collection/components/six-search-field/six-search-field.js.map +1 -1
- package/dist/collection/components/six-select/six-select.js +139 -146
- package/dist/collection/components/six-select/six-select.js.map +1 -1
- package/dist/collection/components/six-select/util.js.map +1 -1
- package/dist/collection/components/six-sidebar/six-sidebar.js +40 -19
- package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -1
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +12 -8
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
- package/dist/collection/components/six-spinner/six-spinner.js.map +1 -1
- package/dist/collection/components/six-stage-indicator/six-stage-indicator.js +1 -1
- package/dist/collection/components/six-switch/six-switch.js +58 -50
- package/dist/collection/components/six-switch/six-switch.js.map +1 -1
- package/dist/collection/components/six-tab/six-tab.js +5 -3
- package/dist/collection/components/six-tab/six-tab.js.map +1 -1
- package/dist/collection/components/six-tab-group/six-tab-group.js +130 -112
- package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
- package/dist/collection/components/six-tab-panel/six-tab-panel.js +2 -2
- package/dist/collection/components/six-tab-panel/six-tab-panel.js.map +1 -1
- package/dist/collection/components/six-tag/six-tag.js +4 -7
- package/dist/collection/components/six-tag/six-tag.js.map +1 -1
- package/dist/collection/components/six-textarea/six-textarea.js +10 -10
- package/dist/collection/components/six-tile/six-tile.js +17 -20
- package/dist/collection/components/six-tile/six-tile.js.map +1 -1
- package/dist/collection/components/six-timepicker/six-timepicker.js +129 -177
- package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
- package/dist/collection/components/six-tooltip/six-tooltip.js +56 -59
- package/dist/collection/components/six-tooltip/six-tooltip.js.map +1 -1
- package/dist/collection/functional-components/form-control/form-control.js +8 -7
- package/dist/collection/functional-components/form-control/form-control.js.map +1 -1
- package/dist/collection/testUtil/delay.js.map +1 -1
- package/dist/collection/utils/date-util.js +24 -16
- package/dist/collection/utils/date-util.js.map +1 -1
- package/dist/collection/utils/event-listeners.js +6 -6
- package/dist/collection/utils/event-listeners.js.map +1 -1
- package/dist/collection/utils/execution-control.js +5 -4
- package/dist/collection/utils/execution-control.js.map +1 -1
- package/dist/collection/utils/focus-visible.js +2 -2
- package/dist/collection/utils/focus-visible.js.map +1 -1
- package/dist/collection/utils/modal.js +3 -2
- package/dist/collection/utils/modal.js.map +1 -1
- package/dist/collection/utils/popover.js +32 -18
- package/dist/collection/utils/popover.js.map +1 -1
- package/dist/collection/utils/popup.js +95 -0
- package/dist/collection/utils/popup.js.map +1 -0
- package/dist/collection/utils/slot.js +9 -24
- package/dist/collection/utils/slot.js.map +1 -1
- package/dist/collection/utils/tabbable.js +6 -6
- package/dist/collection/utils/tabbable.js.map +1 -1
- package/dist/collection/utils/time.util.js +48 -34
- package/dist/collection/utils/time.util.js.map +1 -1
- package/dist/collection/utils/type-check.js +0 -1
- package/dist/collection/utils/type-check.js.map +1 -1
- package/dist/collection/wrappers/set-attributes/set-attributes.js +3 -1
- package/dist/collection/wrappers/set-attributes/set-attributes.js.map +1 -1
- package/dist/components/event-listeners.js +6 -6
- package/dist/components/event-listeners.js.map +1 -1
- package/dist/components/execution-control.js +5 -2
- package/dist/components/execution-control.js.map +1 -1
- package/dist/components/focus-visible.js +2 -2
- package/dist/components/focus-visible.js.map +1 -1
- package/dist/components/form-control.js +8 -7
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/modal.js +3 -2
- package/dist/components/modal.js.map +1 -1
- package/dist/components/popover.js +32 -18
- package/dist/components/popover.js.map +1 -1
- package/dist/components/set-attributes2.js +3 -1
- package/dist/components/set-attributes2.js.map +1 -1
- package/dist/components/six-alert.js +17 -22
- package/dist/components/six-alert.js.map +1 -1
- package/dist/components/six-avatar.js +4 -7
- package/dist/components/six-avatar.js.map +1 -1
- package/dist/components/six-badge.js +1 -1
- package/dist/components/six-badge.js.map +1 -1
- package/dist/components/six-button.js +28 -32
- package/dist/components/six-button.js.map +1 -1
- package/dist/components/six-card.js.map +1 -1
- package/dist/components/six-checkbox.js +1 -0
- package/dist/components/six-checkbox.js.map +1 -1
- package/dist/components/six-datepicker.js +141 -238
- package/dist/components/six-datepicker.js.map +1 -1
- package/dist/components/six-details2.js +46 -45
- package/dist/components/six-details2.js.map +1 -1
- package/dist/components/six-dialog.js +33 -37
- package/dist/components/six-dialog.js.map +1 -1
- package/dist/components/six-drawer.js +30 -34
- package/dist/components/six-drawer.js.map +1 -1
- package/dist/components/six-dropdown2.js +185 -173
- package/dist/components/six-dropdown2.js.map +1 -1
- package/dist/components/six-error-page.js +19 -21
- package/dist/components/six-error-page.js.map +1 -1
- package/dist/components/six-file-list-item.js +1 -1
- package/dist/components/six-file-list-item.js.map +1 -1
- package/dist/components/six-file-upload.js +20 -20
- package/dist/components/six-file-upload.js.map +1 -1
- package/dist/components/six-form.js +38 -33
- package/dist/components/six-form.js.map +1 -1
- package/dist/components/six-group-label.js +9 -8
- package/dist/components/six-group-label.js.map +1 -1
- package/dist/components/six-header.js +64 -42
- package/dist/components/six-header.js.map +1 -1
- package/dist/components/six-icon-button2.js +2 -2
- package/dist/components/six-icon-button2.js.map +1 -1
- package/dist/components/six-input2.js +1 -1
- package/dist/components/six-input2.js.map +1 -1
- package/dist/components/six-item-picker2.js +56 -75
- package/dist/components/six-item-picker2.js.map +1 -1
- package/dist/components/six-language-switcher.js +1 -1
- package/dist/components/six-language-switcher.js.map +1 -1
- package/dist/components/six-layout-grid.js +5 -3
- package/dist/components/six-layout-grid.js.map +1 -1
- package/dist/components/six-main-container.js.map +1 -1
- package/dist/components/six-menu-item2.js +7 -5
- package/dist/components/six-menu-item2.js.map +1 -1
- package/dist/components/six-menu2.js +25 -18
- package/dist/components/six-menu2.js.map +1 -1
- package/dist/components/six-picto2.js +4 -1
- package/dist/components/six-picto2.js.map +1 -1
- package/dist/components/six-progress-ring.js +3 -3
- package/dist/components/six-progress-ring.js.map +1 -1
- package/dist/components/six-root.js +1 -1
- package/dist/components/six-root.js.map +1 -1
- package/dist/components/six-search-field.js +8 -3
- package/dist/components/six-search-field.js.map +1 -1
- package/dist/components/six-select.js +129 -182
- package/dist/components/six-select.js.map +1 -1
- package/dist/components/six-sidebar-item-group.js +8 -4
- package/dist/components/six-sidebar-item-group.js.map +1 -1
- package/dist/components/six-sidebar.js +39 -18
- package/dist/components/six-sidebar.js.map +1 -1
- package/dist/components/six-spinner2.js.map +1 -1
- package/dist/components/six-switch.js +50 -44
- package/dist/components/six-switch.js.map +1 -1
- package/dist/components/six-tab-group.js +129 -111
- package/dist/components/six-tab-group.js.map +1 -1
- package/dist/components/six-tab-panel.js +1 -1
- package/dist/components/six-tab-panel.js.map +1 -1
- package/dist/components/six-tab.js +4 -2
- package/dist/components/six-tab.js.map +1 -1
- package/dist/components/six-tag2.js +4 -7
- package/dist/components/six-tag2.js.map +1 -1
- package/dist/components/six-tile.js +14 -17
- package/dist/components/six-tile.js.map +1 -1
- package/dist/components/six-timepicker.js +1 -1
- package/dist/components/six-timepicker2.js +241 -239
- package/dist/components/six-timepicker2.js.map +1 -1
- package/dist/components/six-tooltip2.js +52 -55
- package/dist/components/six-tooltip2.js.map +1 -1
- package/dist/components/slot.js +10 -9
- package/dist/components/slot.js.map +1 -1
- package/dist/components.json +348 -166
- package/dist/esm/{event-listeners-570a24ea.js → event-listeners-6b434035.js} +7 -7
- package/dist/esm/event-listeners-6b434035.js.map +1 -0
- package/dist/esm/{execution-control-1a60d709.js → execution-control-72cc50f4.js} +6 -3
- package/dist/esm/execution-control-72cc50f4.js.map +1 -0
- package/dist/esm/{focus-visible-97933ea9.js → focus-visible-fa7129a0.js} +3 -3
- package/dist/esm/focus-visible-fa7129a0.js.map +1 -0
- package/dist/esm/{form-control-3b440ea1.js → form-control-44a50dd6.js} +10 -9
- package/dist/esm/form-control-44a50dd6.js.map +1 -0
- package/dist/esm/{index-5c0f6628.js → index-371fb9d4.js} +4 -2
- package/dist/esm/index-371fb9d4.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{modal-5ebdc320.js → modal-b1d96441.js} +4 -3
- package/dist/esm/modal-b1d96441.js.map +1 -0
- package/dist/esm/{popover-bd2c2fca.js → popover-1aacbae8.js} +33 -19
- package/dist/{cjs/popover-f743f62b.js.map → esm/popover-1aacbae8.js.map} +1 -1
- package/dist/esm/popup-678b8592.js +98 -0
- package/dist/esm/popup-678b8592.js.map +1 -0
- package/dist/esm/set-attributes_2.entry.js +4 -2
- package/dist/esm/set-attributes_2.entry.js.map +1 -1
- package/dist/esm/six-alert.entry.js +18 -23
- package/dist/esm/six-alert.entry.js.map +1 -1
- package/dist/esm/six-avatar.entry.js +5 -8
- package/dist/esm/six-avatar.entry.js.map +1 -1
- package/dist/esm/six-badge.entry.js +2 -2
- package/dist/esm/six-badge.entry.js.map +1 -1
- package/dist/esm/six-button.entry.js +30 -34
- package/dist/esm/six-button.entry.js.map +1 -1
- package/dist/esm/six-card.entry.js +1 -1
- package/dist/esm/six-card.entry.js.map +1 -1
- package/dist/esm/six-checkbox.entry.js +5 -4
- package/dist/esm/six-checkbox.entry.js.map +1 -1
- package/dist/esm/six-datepicker.entry.js +145 -242
- package/dist/esm/six-datepicker.entry.js.map +1 -1
- package/dist/esm/six-details.entry.js +48 -47
- package/dist/esm/six-details.entry.js.map +1 -1
- package/dist/esm/six-dialog.entry.js +36 -40
- package/dist/esm/six-dialog.entry.js.map +1 -1
- package/dist/esm/six-drawer.entry.js +33 -37
- package/dist/esm/six-drawer.entry.js.map +1 -1
- package/dist/esm/six-dropdown_2.entry.js +215 -196
- package/dist/esm/six-dropdown_2.entry.js.map +1 -1
- package/dist/esm/six-error-page.entry.js +20 -22
- package/dist/esm/six-error-page.entry.js.map +1 -1
- package/dist/esm/six-file-list-item.entry.js +2 -2
- package/dist/esm/six-file-list-item.entry.js.map +1 -1
- package/dist/esm/six-file-list.entry.js +1 -1
- package/dist/esm/six-file-upload.entry.js +21 -21
- package/dist/esm/six-file-upload.entry.js.map +1 -1
- package/dist/esm/six-footer.entry.js +1 -1
- package/dist/esm/six-form.entry.js +40 -35
- package/dist/esm/six-form.entry.js.map +1 -1
- package/dist/esm/six-group-label.entry.js +12 -11
- package/dist/esm/six-group-label.entry.js.map +1 -1
- package/dist/esm/six-header.entry.js +66 -44
- package/dist/esm/six-header.entry.js.map +1 -1
- package/dist/esm/six-icon-button.entry.js +4 -4
- package/dist/esm/six-icon-button.entry.js.map +1 -1
- package/dist/esm/six-icon.entry.js +1 -1
- package/dist/esm/six-input.entry.js +5 -5
- package/dist/esm/six-input.entry.js.map +1 -1
- package/dist/esm/six-item-picker.entry.js +59 -78
- package/dist/esm/six-item-picker.entry.js.map +1 -1
- package/dist/esm/six-language-switcher.entry.js +2 -2
- package/dist/esm/six-language-switcher.entry.js.map +1 -1
- package/dist/esm/six-layout-grid.entry.js +5 -3
- package/dist/esm/six-layout-grid.entry.js.map +1 -1
- package/dist/esm/six-main-container.entry.js +1 -1
- package/dist/esm/six-main-container.entry.js.map +1 -1
- package/dist/esm/six-menu-divider.entry.js +1 -1
- package/dist/esm/six-menu-item.entry.js +9 -7
- package/dist/esm/six-menu-item.entry.js.map +1 -1
- package/dist/esm/six-menu-label.entry.js +1 -1
- package/dist/esm/six-picto.entry.js +5 -2
- package/dist/esm/six-picto.entry.js.map +1 -1
- package/dist/esm/six-progress-bar.entry.js +1 -1
- package/dist/esm/six-progress-ring.entry.js +4 -4
- package/dist/esm/six-progress-ring.entry.js.map +1 -1
- package/dist/esm/six-radio.entry.js +1 -1
- package/dist/esm/six-range.entry.js +4 -4
- package/dist/esm/six-root.entry.js +2 -2
- package/dist/esm/six-root.entry.js.map +1 -1
- package/dist/esm/six-search-field.entry.js +11 -6
- package/dist/esm/six-search-field.entry.js.map +1 -1
- package/dist/esm/six-select.entry.js +135 -188
- package/dist/esm/six-select.entry.js.map +1 -1
- package/dist/esm/six-sidebar-item-group.entry.js +10 -6
- package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
- package/dist/esm/six-sidebar-item.entry.js +1 -1
- package/dist/esm/six-sidebar.entry.js +40 -19
- package/dist/esm/six-sidebar.entry.js.map +1 -1
- package/dist/esm/six-spinner.entry.js +1 -1
- package/dist/esm/six-spinner.entry.js.map +1 -1
- package/dist/esm/six-switch.entry.js +51 -45
- package/dist/esm/six-switch.entry.js.map +1 -1
- package/dist/esm/six-tab-group.entry.js +131 -113
- package/dist/esm/six-tab-group.entry.js.map +1 -1
- package/dist/esm/six-tab-panel.entry.js +2 -2
- package/dist/esm/six-tab-panel.entry.js.map +1 -1
- package/dist/esm/six-tab.entry.js +5 -3
- package/dist/esm/six-tab.entry.js.map +1 -1
- package/dist/esm/six-tag.entry.js +5 -8
- package/dist/esm/six-tag.entry.js.map +1 -1
- package/dist/esm/six-textarea.entry.js +4 -4
- package/dist/esm/six-tile.entry.js +14 -17
- package/dist/esm/six-tile.entry.js.map +1 -1
- package/dist/esm/six-timepicker.entry.js +155 -201
- package/dist/esm/six-timepicker.entry.js.map +1 -1
- package/dist/esm/six-tooltip.entry.js +54 -57
- package/dist/esm/six-tooltip.entry.js.map +1 -1
- package/dist/esm/{slot-6f3984c7.js → slot-2e64df19.js} +11 -10
- package/dist/esm/slot-2e64df19.js.map +1 -0
- package/dist/esm/ui-library.js +3 -3
- package/dist/types/components/six-alert/six-alert.d.ts +5 -7
- package/dist/types/components/six-avatar/six-avatar.d.ts +1 -2
- package/dist/types/components/six-badge/six-badge.d.ts +0 -1
- package/dist/types/components/six-button/six-button.d.ts +8 -9
- package/dist/types/components/six-checkbox/six-checkbox.d.ts +1 -1
- package/dist/types/components/six-datepicker/components/day-selection.d.ts +9 -5
- package/dist/types/components/six-datepicker/components/month-selection.d.ts +8 -5
- package/dist/types/components/six-datepicker/components/year-selection.d.ts +7 -5
- package/dist/types/components/six-datepicker/six-datepicker.d.ts +34 -39
- package/dist/types/components/six-details/six-details.d.ts +12 -12
- package/dist/types/components/six-dialog/six-dialog.d.ts +12 -13
- package/dist/types/components/six-drawer/six-drawer.d.ts +12 -13
- package/dist/types/components/six-dropdown/six-dropdown.d.ts +28 -32
- package/dist/types/components/six-error-page/six-error-page.d.ts +1 -1
- package/dist/types/components/six-file-list-item/six-file-list-item.d.ts +3 -3
- package/dist/types/components/six-file-upload/six-file-upload.d.ts +11 -11
- package/dist/types/components/six-form/six-form.d.ts +7 -16
- package/dist/types/components/six-group-label/six-group-label.d.ts +4 -4
- package/dist/types/components/six-header/six-header.d.ts +16 -27
- package/dist/types/components/six-icon-button/six-icon-button.d.ts +4 -4
- package/dist/types/components/six-input/six-input.d.ts +3 -3
- package/dist/types/components/six-item-picker/six-item-picker.d.ts +13 -16
- package/dist/types/components/six-layout-grid/six-layout-grid.d.ts +1 -1
- package/dist/types/components/six-menu/six-menu.d.ts +10 -11
- package/dist/types/components/six-menu-item/six-menu-item.d.ts +6 -6
- package/dist/types/components/six-progress-ring/six-progress-ring.d.ts +2 -2
- package/dist/types/components/six-radio/six-radio.d.ts +1 -1
- package/dist/types/components/six-root/six-root.d.ts +3 -3
- package/dist/types/components/six-search-field/six-search-field.d.ts +4 -5
- package/dist/types/components/six-select/six-select.d.ts +15 -12
- package/dist/types/components/six-sidebar/six-sidebar.d.ts +5 -5
- package/dist/types/components/six-sidebar-item-group/six-sidebar-item-group.d.ts +7 -6
- package/dist/types/components/six-spinner/six-spinner.d.ts +2 -2
- package/dist/types/components/six-switch/six-switch.d.ts +10 -11
- package/dist/types/components/six-tab/six-tab.d.ts +3 -3
- package/dist/types/components/six-tab-group/six-tab-group.d.ts +20 -21
- package/dist/types/components/six-tab-panel/six-tab-panel.d.ts +1 -1
- package/dist/types/components/six-tag/six-tag.d.ts +1 -3
- package/dist/types/components/six-textarea/six-textarea.d.ts +3 -3
- package/dist/types/components/six-tile/six-tile.d.ts +2 -3
- package/dist/types/components/six-timepicker/six-timepicker.d.ts +21 -33
- package/dist/types/components/six-tooltip/six-tooltip.d.ts +19 -21
- package/dist/types/components.d.ts +110 -98
- package/dist/types/functional-components/form-control/form-control.d.ts +5 -4
- package/dist/types/testUtil/delay.d.ts +1 -1
- package/dist/types/utils/date-util.d.ts +17 -10
- package/dist/types/utils/event-listeners.d.ts +1 -1
- package/dist/types/utils/execution-control.d.ts +1 -3
- package/dist/types/utils/modal.d.ts +2 -2
- package/dist/types/utils/popover.d.ts +5 -5
- package/dist/types/utils/popup.d.ts +9 -0
- package/dist/types/utils/slot.d.ts +2 -7
- package/dist/types/utils/tabbable.d.ts +1 -1
- package/dist/types/utils/time.util.d.ts +18 -9
- package/dist/types/utils/type-check.d.ts +3 -4
- package/dist/types/wrappers/set-attributes/set-attributes.d.ts +1 -1
- package/dist/ui-library/p-02d5a6d8.js +2 -0
- package/dist/ui-library/p-02d5a6d8.js.map +1 -0
- package/dist/ui-library/p-053d6de8.entry.js +2 -0
- package/dist/ui-library/p-053d6de8.entry.js.map +1 -0
- package/dist/ui-library/p-0cc08e91.js +2 -0
- package/dist/ui-library/p-0cc08e91.js.map +1 -0
- package/dist/ui-library/{p-a1d4f6cf.entry.js → p-0eee4c41.entry.js} +2 -2
- package/dist/ui-library/p-0eee4c41.entry.js.map +1 -0
- package/dist/ui-library/p-0fe78f9b.js +2 -0
- package/dist/ui-library/p-0fe78f9b.js.map +1 -0
- package/dist/ui-library/{p-ac4f4d45.js → p-187fbba0.js} +3 -3
- package/dist/ui-library/p-187fbba0.js.map +1 -0
- package/dist/ui-library/p-25b42655.entry.js +2 -0
- package/dist/ui-library/p-25b42655.entry.js.map +1 -0
- package/dist/ui-library/p-271ba152.entry.js +2 -0
- package/dist/ui-library/p-271ba152.entry.js.map +1 -0
- package/dist/ui-library/{p-6d75f216.entry.js → p-27c4ee88.entry.js} +2 -2
- package/dist/ui-library/{p-f604e067.entry.js → p-2a36b7d0.entry.js} +2 -2
- package/dist/ui-library/p-2a8ad91b.entry.js +2 -0
- package/dist/ui-library/p-2a8ad91b.entry.js.map +1 -0
- package/dist/ui-library/{p-97cc839c.entry.js → p-30e0cdce.entry.js} +2 -2
- package/dist/ui-library/p-30e0cdce.entry.js.map +1 -0
- package/dist/ui-library/{p-63703ba3.entry.js → p-3a47c8ad.entry.js} +2 -2
- package/dist/ui-library/{p-63703ba3.entry.js.map → p-3a47c8ad.entry.js.map} +1 -1
- package/dist/ui-library/p-3a4815cb.entry.js +2 -0
- package/dist/ui-library/p-3a4815cb.entry.js.map +1 -0
- package/dist/ui-library/p-3b71cac4.entry.js +2 -0
- package/dist/ui-library/p-3b71cac4.entry.js.map +1 -0
- package/dist/ui-library/{p-5a25d6fb.entry.js → p-3d4a2e03.entry.js} +2 -2
- package/dist/ui-library/{p-73597d13.entry.js → p-3e4b9341.entry.js} +2 -2
- package/dist/ui-library/{p-73597d13.entry.js.map → p-3e4b9341.entry.js.map} +1 -1
- package/dist/ui-library/{p-3c635d0a.entry.js → p-41f0b6ff.entry.js} +2 -2
- package/dist/ui-library/p-435242a8.entry.js +2 -0
- package/dist/ui-library/p-435242a8.entry.js.map +1 -0
- package/dist/ui-library/{p-19364560.entry.js → p-5084ca7c.entry.js} +2 -2
- package/dist/ui-library/{p-19364560.entry.js.map → p-5084ca7c.entry.js.map} +1 -1
- package/dist/ui-library/p-5b3e6eb7.entry.js +2 -0
- package/dist/ui-library/p-5b3e6eb7.entry.js.map +1 -0
- package/dist/ui-library/{p-8a970a40.entry.js → p-5c1dd25a.entry.js} +2 -2
- package/dist/ui-library/p-5c1dd25a.entry.js.map +1 -0
- package/dist/ui-library/p-5c60227f.entry.js +2 -0
- package/dist/ui-library/p-5c60227f.entry.js.map +1 -0
- package/dist/ui-library/p-5dc40a6a.entry.js +2 -0
- package/dist/ui-library/p-5dc40a6a.entry.js.map +1 -0
- package/dist/ui-library/{p-dd3c76f1.entry.js → p-649017db.entry.js} +2 -2
- package/dist/ui-library/p-713684c7.entry.js +2 -0
- package/dist/ui-library/p-713684c7.entry.js.map +1 -0
- package/dist/ui-library/{p-c30f9e0b.entry.js → p-73325eec.entry.js} +2 -2
- package/dist/ui-library/p-73325eec.entry.js.map +1 -0
- package/dist/ui-library/p-7639c68e.entry.js +2 -0
- package/dist/ui-library/p-7639c68e.entry.js.map +1 -0
- package/dist/ui-library/p-764f56dd.entry.js +2 -0
- package/dist/ui-library/p-764f56dd.entry.js.map +1 -0
- package/dist/ui-library/{p-e19a6c95.entry.js → p-886a35ee.entry.js} +2 -2
- package/dist/ui-library/p-8cf72af6.js +2 -0
- package/dist/ui-library/p-8cf72af6.js.map +1 -0
- package/dist/ui-library/p-8d6f4311.entry.js +2 -0
- package/dist/ui-library/p-8d6f4311.entry.js.map +1 -0
- package/dist/ui-library/p-90c2dc30.entry.js +2 -0
- package/dist/ui-library/p-90c2dc30.entry.js.map +1 -0
- package/dist/ui-library/{p-97323ad7.entry.js → p-965fa6a6.entry.js} +2 -2
- package/dist/ui-library/p-98234e3f.entry.js +2 -0
- package/dist/ui-library/p-98234e3f.entry.js.map +1 -0
- package/dist/ui-library/{p-820c23f0.entry.js → p-9b9c3afc.entry.js} +2 -2
- package/dist/ui-library/{p-394a2a12.entry.js → p-9c34eab7.entry.js} +2 -2
- package/dist/ui-library/{p-394a2a12.entry.js.map → p-9c34eab7.entry.js.map} +1 -1
- package/dist/ui-library/p-9e0c386f.entry.js +2 -0
- package/dist/ui-library/p-9e0c386f.entry.js.map +1 -0
- package/dist/ui-library/p-9f8b6144.entry.js +2 -0
- package/dist/ui-library/p-9f8b6144.entry.js.map +1 -0
- package/dist/ui-library/p-a3cc0521.entry.js +2 -0
- package/dist/ui-library/p-a3cc0521.entry.js.map +1 -0
- package/dist/ui-library/{p-21859bca.entry.js → p-a5143b8d.entry.js} +2 -2
- package/dist/ui-library/{p-097cced4.entry.js → p-aa6f71e1.entry.js} +2 -2
- package/dist/ui-library/{p-097cced4.entry.js.map → p-aa6f71e1.entry.js.map} +1 -1
- package/dist/ui-library/p-abb98245.entry.js +2 -0
- package/dist/ui-library/p-abb98245.entry.js.map +1 -0
- package/dist/ui-library/p-b183e44f.js +2 -0
- package/dist/ui-library/p-b183e44f.js.map +1 -0
- package/dist/ui-library/{p-19b50b5a.entry.js → p-b27f496f.entry.js} +2 -2
- package/dist/ui-library/p-b27f496f.entry.js.map +1 -0
- package/dist/ui-library/{p-4f8394d7.js → p-ba74863a.js} +2 -2
- package/dist/ui-library/p-ba74863a.js.map +1 -0
- package/dist/ui-library/p-bf4a35ec.js +2 -0
- package/dist/ui-library/p-bf4a35ec.js.map +1 -0
- package/dist/ui-library/{p-d5633a29.entry.js → p-c07adc21.entry.js} +2 -2
- package/dist/ui-library/p-c07adc21.entry.js.map +1 -0
- package/dist/ui-library/p-c700e3eb.entry.js +2 -0
- package/dist/ui-library/p-c700e3eb.entry.js.map +1 -0
- package/dist/ui-library/p-cab99e54.entry.js +2 -0
- package/dist/ui-library/p-cab99e54.entry.js.map +1 -0
- package/dist/ui-library/{p-baa03951.entry.js → p-cf1133a0.entry.js} +2 -2
- package/dist/ui-library/p-cf1d36c0.entry.js +2 -0
- package/dist/ui-library/p-cf1d36c0.entry.js.map +1 -0
- package/dist/ui-library/p-d87a6f4d.js +2 -0
- package/dist/ui-library/p-d87a6f4d.js.map +1 -0
- package/dist/ui-library/{p-c349d1d4.entry.js → p-d8c97778.entry.js} +2 -2
- package/dist/ui-library/p-d8c97778.entry.js.map +1 -0
- package/dist/ui-library/p-deb01174.entry.js +2 -0
- package/dist/ui-library/p-deb01174.entry.js.map +1 -0
- package/dist/ui-library/{p-af793d04.entry.js → p-e5ba13d2.entry.js} +2 -2
- package/dist/ui-library/p-e5ba13d2.entry.js.map +1 -0
- package/dist/ui-library/{p-611e1978.entry.js → p-f29ba9cb.entry.js} +2 -2
- package/dist/ui-library/{p-611e1978.entry.js.map → p-f29ba9cb.entry.js.map} +1 -1
- package/dist/ui-library/{p-9328e5bc.entry.js → p-f66eb76c.entry.js} +2 -2
- package/dist/ui-library/p-f66eb76c.entry.js.map +1 -0
- package/dist/ui-library/p-f974a184.entry.js +2 -0
- package/dist/ui-library/p-f974a184.entry.js.map +1 -0
- package/dist/ui-library/{p-b0e5658f.entry.js → p-fb8d0734.entry.js} +2 -2
- package/dist/ui-library/p-fb8d0734.entry.js.map +1 -0
- package/dist/ui-library/ui-library.esm.js +1 -1
- package/dist/ui-library/ui-library.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/event-listeners-74715e62.js.map +0 -1
- package/dist/cjs/execution-control-46f388e0.js.map +0 -1
- package/dist/cjs/focus-visible-0b352c74.js.map +0 -1
- package/dist/cjs/form-control-2c17c573.js.map +0 -1
- package/dist/cjs/index-2f6daa5b.js.map +0 -1
- package/dist/cjs/modal-48d42228.js.map +0 -1
- package/dist/cjs/six-timepicker.types-c19ebff3.js +0 -56
- package/dist/cjs/six-timepicker.types-c19ebff3.js.map +0 -1
- package/dist/cjs/slot-ad537f24.js.map +0 -1
- package/dist/collection/components/six-timepicker/six-time-format.js +0 -15
- package/dist/collection/components/six-timepicker/six-time-format.js.map +0 -1
- package/dist/collection/components/six-timepicker/six-timepicker.types.js +0 -41
- package/dist/collection/components/six-timepicker/six-timepicker.types.js.map +0 -1
- package/dist/collection/utils/as-array.js +0 -2
- package/dist/collection/utils/as-array.js.map +0 -1
- package/dist/collection/utils/matchers.js +0 -3
- package/dist/collection/utils/matchers.js.map +0 -1
- package/dist/collection/utils/testing.js +0 -39
- package/dist/collection/utils/testing.js.map +0 -1
- package/dist/esm/event-listeners-570a24ea.js.map +0 -1
- package/dist/esm/execution-control-1a60d709.js.map +0 -1
- package/dist/esm/focus-visible-97933ea9.js.map +0 -1
- package/dist/esm/form-control-3b440ea1.js.map +0 -1
- package/dist/esm/index-5c0f6628.js.map +0 -1
- package/dist/esm/modal-5ebdc320.js.map +0 -1
- package/dist/esm/popover-bd2c2fca.js.map +0 -1
- package/dist/esm/six-timepicker.types-e161a447.js +0 -50
- package/dist/esm/six-timepicker.types-e161a447.js.map +0 -1
- package/dist/esm/slot-6f3984c7.js.map +0 -1
- package/dist/types/components/six-timepicker/six-time-format.d.ts +0 -13
- package/dist/types/components/six-timepicker/six-timepicker.types.d.ts +0 -36
- package/dist/types/utils/as-array.d.ts +0 -1
- package/dist/types/utils/matchers.d.ts +0 -2
- package/dist/types/utils/popper.d.ts +0 -33
- package/dist/types/utils/testing.d.ts +0 -2
- package/dist/ui-library/p-054e12cc.entry.js +0 -2
- package/dist/ui-library/p-054e12cc.entry.js.map +0 -1
- package/dist/ui-library/p-0786fa7c.js +0 -2
- package/dist/ui-library/p-0786fa7c.js.map +0 -1
- package/dist/ui-library/p-163f2bb0.entry.js +0 -2
- package/dist/ui-library/p-163f2bb0.entry.js.map +0 -1
- package/dist/ui-library/p-18e5f772.entry.js +0 -2
- package/dist/ui-library/p-18e5f772.entry.js.map +0 -1
- package/dist/ui-library/p-18ea0c56.js +0 -2
- package/dist/ui-library/p-18ea0c56.js.map +0 -1
- package/dist/ui-library/p-19b50b5a.entry.js.map +0 -1
- package/dist/ui-library/p-2e48c8d2.entry.js +0 -2
- package/dist/ui-library/p-2e48c8d2.entry.js.map +0 -1
- package/dist/ui-library/p-308261c4.entry.js +0 -2
- package/dist/ui-library/p-308261c4.entry.js.map +0 -1
- package/dist/ui-library/p-33f7e22b.entry.js +0 -2
- package/dist/ui-library/p-33f7e22b.entry.js.map +0 -1
- package/dist/ui-library/p-4ae91795.entry.js +0 -2
- package/dist/ui-library/p-4ae91795.entry.js.map +0 -1
- package/dist/ui-library/p-4f8394d7.js.map +0 -1
- package/dist/ui-library/p-53a13db5.entry.js +0 -2
- package/dist/ui-library/p-53a13db5.entry.js.map +0 -1
- package/dist/ui-library/p-559c87f0.entry.js +0 -2
- package/dist/ui-library/p-559c87f0.entry.js.map +0 -1
- package/dist/ui-library/p-6403fd87.entry.js +0 -2
- package/dist/ui-library/p-6403fd87.entry.js.map +0 -1
- package/dist/ui-library/p-6433c0da.entry.js +0 -2
- package/dist/ui-library/p-6433c0da.entry.js.map +0 -1
- package/dist/ui-library/p-79eee01b.js +0 -2
- package/dist/ui-library/p-79eee01b.js.map +0 -1
- package/dist/ui-library/p-8a970a40.entry.js.map +0 -1
- package/dist/ui-library/p-90824648.entry.js +0 -2
- package/dist/ui-library/p-90824648.entry.js.map +0 -1
- package/dist/ui-library/p-9328e5bc.entry.js.map +0 -1
- package/dist/ui-library/p-97cc839c.entry.js.map +0 -1
- package/dist/ui-library/p-9a860acc.js +0 -2
- package/dist/ui-library/p-9a860acc.js.map +0 -1
- package/dist/ui-library/p-9d1d222f.entry.js +0 -2
- package/dist/ui-library/p-9d1d222f.entry.js.map +0 -1
- package/dist/ui-library/p-a1d4f6cf.entry.js.map +0 -1
- package/dist/ui-library/p-ac4f4d45.js.map +0 -1
- package/dist/ui-library/p-af793d04.entry.js.map +0 -1
- package/dist/ui-library/p-b0e5658f.entry.js.map +0 -1
- package/dist/ui-library/p-b1e66136.js +0 -2
- package/dist/ui-library/p-b1e66136.js.map +0 -1
- package/dist/ui-library/p-b4dfb7cf.js +0 -2
- package/dist/ui-library/p-b4dfb7cf.js.map +0 -1
- package/dist/ui-library/p-b997e43c.entry.js +0 -2
- package/dist/ui-library/p-b997e43c.entry.js.map +0 -1
- package/dist/ui-library/p-c0cb6436.entry.js +0 -2
- package/dist/ui-library/p-c0cb6436.entry.js.map +0 -1
- package/dist/ui-library/p-c30f9e0b.entry.js.map +0 -1
- package/dist/ui-library/p-c349d1d4.entry.js.map +0 -1
- package/dist/ui-library/p-c53a63f9.entry.js +0 -2
- package/dist/ui-library/p-c53a63f9.entry.js.map +0 -1
- package/dist/ui-library/p-c640c2d8.entry.js +0 -2
- package/dist/ui-library/p-c640c2d8.entry.js.map +0 -1
- package/dist/ui-library/p-c94d0b07.entry.js +0 -2
- package/dist/ui-library/p-c94d0b07.entry.js.map +0 -1
- package/dist/ui-library/p-d12c6092.js +0 -2
- package/dist/ui-library/p-d12c6092.js.map +0 -1
- package/dist/ui-library/p-d5633a29.entry.js.map +0 -1
- package/dist/ui-library/p-df655bc9.entry.js +0 -2
- package/dist/ui-library/p-df655bc9.entry.js.map +0 -1
- package/dist/ui-library/p-f18ba86f.entry.js +0 -2
- package/dist/ui-library/p-f18ba86f.entry.js.map +0 -1
- package/dist/ui-library/p-f4938771.entry.js +0 -2
- package/dist/ui-library/p-f4938771.entry.js.map +0 -1
- package/dist/ui-library/p-f70e2403.entry.js +0 -2
- package/dist/ui-library/p-f70e2403.entry.js.map +0 -1
- package/dist/ui-library/p-f9d345e0.entry.js +0 -2
- package/dist/ui-library/p-f9d345e0.entry.js.map +0 -1
- package/dist/ui-library/p-fed07a1f.entry.js +0 -2
- package/dist/ui-library/p-fed07a1f.entry.js.map +0 -1
- package/dist/ui-library/p-ff0257bf.entry.js +0 -2
- package/dist/ui-library/p-ff0257bf.entry.js.map +0 -1
- /package/dist/ui-library/{p-6d75f216.entry.js.map → p-27c4ee88.entry.js.map} +0 -0
- /package/dist/ui-library/{p-f604e067.entry.js.map → p-2a36b7d0.entry.js.map} +0 -0
- /package/dist/ui-library/{p-5a25d6fb.entry.js.map → p-3d4a2e03.entry.js.map} +0 -0
- /package/dist/ui-library/{p-3c635d0a.entry.js.map → p-41f0b6ff.entry.js.map} +0 -0
- /package/dist/ui-library/{p-dd3c76f1.entry.js.map → p-649017db.entry.js.map} +0 -0
- /package/dist/ui-library/{p-e19a6c95.entry.js.map → p-886a35ee.entry.js.map} +0 -0
- /package/dist/ui-library/{p-97323ad7.entry.js.map → p-965fa6a6.entry.js.map} +0 -0
- /package/dist/ui-library/{p-820c23f0.entry.js.map → p-9b9c3afc.entry.js.map} +0 -0
- /package/dist/ui-library/{p-21859bca.entry.js.map → p-a5143b8d.entry.js.map} +0 -0
- /package/dist/ui-library/{p-baa03951.entry.js.map → p-cf1133a0.entry.js.map} +0 -0
|
@@ -9,7 +9,7 @@ const SixProgressRing$1 = /*@__PURE__*/ proxyCustomElement(class SixProgressRing
|
|
|
9
9
|
this.__attachShadow();
|
|
10
10
|
this.size = 128;
|
|
11
11
|
this.strokeWidth = 4;
|
|
12
|
-
this.percentage =
|
|
12
|
+
this.percentage = 0;
|
|
13
13
|
}
|
|
14
14
|
handlePercentageChange() {
|
|
15
15
|
this.updateProgress();
|
|
@@ -18,9 +18,9 @@ const SixProgressRing$1 = /*@__PURE__*/ proxyCustomElement(class SixProgressRing
|
|
|
18
18
|
this.updateProgress();
|
|
19
19
|
}
|
|
20
20
|
updateProgress() {
|
|
21
|
-
|
|
21
|
+
var _a;
|
|
22
|
+
if (((_a = this.indicator) === null || _a === void 0 ? void 0 : _a.r) == null)
|
|
22
23
|
return;
|
|
23
|
-
}
|
|
24
24
|
const radius = this.indicator.r.baseVal.value;
|
|
25
25
|
const circumference = radius * 2 * Math.PI;
|
|
26
26
|
const offset = circumference - (this.percentage / 100) * circumference;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"six-progress-ring.js","mappings":";;AAAA,MAAM,kBAAkB,GAAG,+uBAA+uB;;MCmB7vBA,iBAAe;;;;;gBAIX,GAAG;uBAGI,CAAC
|
|
1
|
+
{"file":"six-progress-ring.js","mappings":";;AAAA,MAAM,kBAAkB,GAAG,+uBAA+uB;;MCmB7vBA,iBAAe;;;;;gBAIX,GAAG;uBAGI,CAAC;sBAGF,CAAC;;EAGtB,sBAAsB;IACpB,IAAI,CAAC,cAAc,EAAE,CAAC;GACvB;EAED,gBAAgB;IACd,IAAI,CAAC,cAAc,EAAE,CAAC;GACvB;EAEO,cAAc;;IACpB,IAAI,CAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,CAAC,KAAI,IAAI;MAAE,OAAO;IAEtC,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC9C,MAAM,aAAa,GAAG,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;IAC3C,MAAM,MAAM,GAAG,aAAa,GAAG,CAAC,IAAI,CAAC,UAAU,GAAG,GAAG,IAAI,aAAa,CAAC;IAEvE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,eAAe,GAAG,GAAG,aAAa,IAAI,aAAa,EAAE,CAAC;IAC3E,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,gBAAgB,GAAG,GAAG,MAAM,EAAE,CAAC;GACrD;EAED,MAAM;IACJ,QACE,WAAK,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,eAAe,IACpC,WAAK,KAAK,EAAC,sBAAsB,EAAC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,IACnE,cACE,KAAK,EAAC,sBAAsB,kBACd,IAAI,CAAC,WAAW,oBACf,OAAO,EACtB,IAAI,EAAC,aAAa,EAClB,CAAC,EAAE,IAAI,CAAC,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,WAAW,GAAG,CAAC,EACvC,EAAE,EAAE,IAAI,CAAC,IAAI,GAAG,CAAC,EACjB,EAAE,EAAE,IAAI,CAAC,IAAI,GAAG,CAAC,GACjB,EAEF,cACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAsB,CAAC,EACtD,KAAK,EAAC,0BAA0B,kBAClB,IAAI,CAAC,WAAW,oBACf,OAAO,EACtB,IAAI,EAAC,aAAa,EAClB,CAAC,EAAE,IAAI,CAAC,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,WAAW,GAAG,CAAC,EACvC,EAAE,EAAE,IAAI,CAAC,IAAI,GAAG,CAAC,EACjB,EAAE,EAAE,IAAI,CAAC,IAAI,GAAG,CAAC,GACjB,CACE,EAEN,YAAM,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,sBAAsB,IAC7C,eAAQ,CACH,CACH,EACN;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["SixProgressRing"],"sources":["./src/components/six-progress-ring/six-progress-ring.scss?tag=six-progress-ring&encapsulation=shadow","./src/components/six-progress-ring/six-progress-ring.tsx"],"sourcesContent":["@import 'src/global/component';\n\n/**\n * @prop --track-color: The track color.\n * @prop --indicator-color: The indicator color.\n */\n:host {\n --track-color: var(--six-progress-track-color);\n --indicator-color: var(--six-progress-indicator-color);\n\n display: inline-flex;\n}\n\n.progress-ring {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: relative;\n}\n\n.progress-ring__image {\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n}\n\n.progress-ring__track {\n stroke: var(--track-color);\n}\n\n.progress-ring__indicator {\n stroke: var(--indicator-color);\n transition: 0.35s stroke-dashoffset, 0.35s stroke;\n}\n\n.progress-ring__label {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n text-align: center;\n user-select: none;\n font-family: var(--six-font-family);\n}\n","import { Component, h, Prop, Watch } from '@stencil/core';\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - A label to show inside the ring.\n *\n * @part base - The component's base wrapper.\n * @part label - The progress ring label.\n */\n\n@Component({\n tag: 'six-progress-ring',\n styleUrl: 'six-progress-ring.scss',\n shadow: true,\n})\nexport class SixProgressRing {\n private indicator?: SVGCircleElement;\n\n /** The size of the progress ring in pixels. */\n @Prop() size = 128;\n\n /** The stroke width of the progress ring in pixels. */\n @Prop() strokeWidth = 4;\n\n /** The current progress percentage, 0 - 100. */\n @Prop() percentage = 0;\n\n @Watch('percentage')\n handlePercentageChange() {\n this.updateProgress();\n }\n\n componentDidLoad() {\n this.updateProgress();\n }\n\n private updateProgress() {\n if (this.indicator?.r == null) return;\n\n const radius = this.indicator.r.baseVal.value;\n const circumference = radius * 2 * Math.PI;\n const offset = circumference - (this.percentage / 100) * circumference;\n\n this.indicator.style.strokeDasharray = `${circumference} ${circumference}`;\n this.indicator.style.strokeDashoffset = `${offset}`;\n }\n\n render() {\n return (\n <div part=\"base\" class=\"progress-ring\">\n <svg class=\"progress-ring__image\" width={this.size} height={this.size}>\n <circle\n class=\"progress-ring__track\"\n stroke-width={this.strokeWidth}\n stroke-linecap=\"round\"\n fill=\"transparent\"\n r={this.size / 2 - this.strokeWidth * 2}\n cx={this.size / 2}\n cy={this.size / 2}\n />\n\n <circle\n ref={(el) => (this.indicator = el as SVGCircleElement)}\n class=\"progress-ring__indicator\"\n stroke-width={this.strokeWidth}\n stroke-linecap=\"round\"\n fill=\"transparent\"\n r={this.size / 2 - this.strokeWidth * 2}\n cx={this.size / 2}\n cy={this.size / 2}\n />\n </svg>\n\n <span part=\"label\" class=\"progress-ring__label\">\n <slot />\n </span>\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -19,7 +19,7 @@ const SixRoot$1 = /*@__PURE__*/ proxyCustomElement(class SixRoot extends HTMLEle
|
|
|
19
19
|
this.padded = true;
|
|
20
20
|
this.stage = null;
|
|
21
21
|
this.version = '';
|
|
22
|
-
this.collapse =
|
|
22
|
+
this.collapse = false;
|
|
23
23
|
}
|
|
24
24
|
handleCollapsed(collapsed) {
|
|
25
25
|
this.collapsedEvent.emit({ collapsed });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"six-root.js","mappings":";;;;;AAAA,MAAM,UAAU,GAAG,klBAAklB;;MCuBxlBA,SAAO;;;;;;
|
|
1
|
+
{"file":"six-root.js","mappings":";;;;;AAAA,MAAM,UAAU,GAAG,klBAAklB;;MCuBxlBA,SAAO;;;;;;IAoBV,mBAAc,GAAG,IAAI,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC;MACjD,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC;MACnC,IAAI,CAAC,QAAQ,GAAG,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC;KACzC,CAAC,CAAC;sBAnBkB,IAAI;kBAGR,IAAI;iBAGM,IAAI;mBAGb,EAAE;oBAKA,KAAK;;EAQzB,eAAe,CAAC,SAAkB;IAChC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;GACzC;EAED,iBAAiB;IACf,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;GACxC;EAED,oBAAoB;IAClB,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC;GAClC;EAED,MAAM;IACJ,QACE,YAAM,KAAK,EAAC,UAAU,IACpB,cAAQ,IAAI,EAAC,QAAQ,IAClB,IAAI,CAAC,KAAK,IAAI,2BAAqB,KAAK,EAAE,IAAI,CAAC,KAAK,IAAG,IAAI,CAAC,OAAO,CAAuB,EAC3F,YAAM,IAAI,EAAC,QAAQ,GAAG,CACf,EACT,WAAK,KAAK,EAAC,wBAAwB,EAAC,IAAI,EAAC,cAAc,IACrD,sBAAgB,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,IAC7C,YAAM,IAAI,EAAC,cAAc,GAAG,CACb,CACb,EACN,YAAM,IAAI,EAAC,MAAM,IACf,WAAK,KAAK,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE,6BAA6B,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,IAAI,EAAC,WAAW,IACvG,YAAM,IAAI,EAAC,MAAM,GAAG,CAChB,EACN,WAAK,KAAK,EAAC,kBAAkB,IAC3B,YAAM,IAAI,EAAC,QAAQ,GAAG,CAClB,CACD,EACP,WAAK,KAAK,EAAC,yBAAyB,EAAC,IAAI,EAAC,eAAe,IACvD,YAAM,IAAI,EAAC,eAAe,GAAG,CACzB,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["SixRoot"],"sources":["./src/components/six-root/six-root.scss?tag=six-root&encapsulation=shadow","./src/components/six-root/six-root.tsx"],"sourcesContent":["@import 'src/global/mixins/scrollbar';\n\n:host {\n display: block;\n overflow: hidden;\n height: inherit;\n}\n\n.six-root {\n display: grid;\n grid-template: auto 1fr auto / auto 1fr auto;\n height: 100%;\n\n &__container {\n &--padded {\n padding: var(--six-spacing-xxx-large);\n }\n }\n\n &__left-sidebar {\n height: 100%;\n overflow: scroll;\n grid-column: 1 / 2;\n }\n\n &__right-sidebar {\n height: 100%;\n overflow: scroll;\n grid-column: 3 / 4;\n }\n\n nav {\n overflow: hidden;\n }\n}\n\nheader {\n grid-column: 1 / 4;\n position: sticky;\n top: 0;\n z-index: var(--six-z-index-header);\n // border fix\n margin-right: 2px;\n}\n\nmain {\n height: 100%;\n\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n grid-column: 2 / 3;\n overflow: auto;\n}\n\nfooter {\n grid-column: 1 / 4;\n}\n","import { Component, Element, Event, EventEmitter, h, Prop, State, Watch } from '@stencil/core';\nimport { StageType } from '../six-stage-indicator/six-stage-indicator';\n\nexport interface SixRootCollapsedPayload {\n collapsed: boolean;\n}\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot header - Used to define the header component.\n * @slot main - Used to define the components in the main area.\n * @slot left-sidebar - Used to define the sidebar on the left side.\n * @slot right-sidebar - Used to define the sidebar on the right side.\n * @slot footer - Used to define the footer component.\n */\n\n@Component({\n tag: 'six-root',\n styleUrl: 'six-root.scss',\n shadow: true,\n})\nexport class SixRoot {\n @Element() host!: HTMLSixRootElement;\n\n /** Breakpoint for smaller screens when the right sidebar is collapsed by default. */\n @Prop() breakpoint = 1024;\n\n /** Defines whether the content section should be padded */\n @Prop() padded = true;\n\n /** Defines the stage of the application*/\n @Prop() stage: StageType = null;\n\n /** Defines the version of the application*/\n @Prop() version = '';\n\n /** Emitted when display size is updated. */\n @Event({ eventName: 'six-root-collapsed' }) collapsedEvent!: EventEmitter<SixRootCollapsedPayload>;\n\n @State() collapse = false;\n\n private resizeObserver = new ResizeObserver(([host]) => {\n const { width } = host.contentRect;\n this.collapse = width < this.breakpoint;\n });\n\n @Watch('collapse')\n handleCollapsed(collapsed: boolean) {\n this.collapsedEvent.emit({ collapsed });\n }\n\n componentWillLoad() {\n this.resizeObserver.observe(this.host);\n }\n\n disconnectedCallback() {\n this.resizeObserver.disconnect();\n }\n\n render() {\n return (\n <host class=\"six-root\">\n <header part=\"header\">\n {this.stage && <six-stage-indicator stage={this.stage}>{this.version}</six-stage-indicator>}\n <slot name=\"header\" />\n </header>\n <nav class=\"six-root__left-sidebar\" part=\"left-sidebar\">\n <set-attributes value={{ open: !this.collapse }}>\n <slot name=\"left-sidebar\" />\n </set-attributes>\n </nav>\n <main part=\"main\">\n <div class={{ 'six-root__container': true, 'six-root__container--padded': this.padded }} part=\"container\">\n <slot name=\"main\" />\n </div>\n <div class=\"six-root__footer\">\n <slot name=\"footer\" />\n </div>\n </main>\n <nav class=\"six-root__right-sidebar\" part=\"right-sidebar\">\n <slot name=\"right-sidebar\" />\n </nav>\n </host>\n );\n }\n}\n"],"version":3}
|
|
@@ -14,7 +14,9 @@ const SixSearchField$1 = /*@__PURE__*/ proxyCustomElement(class SixSearchField e
|
|
|
14
14
|
this.searchFieldChange = createEvent(this, "six-search-field-change", 7);
|
|
15
15
|
this.eventListeners = new EventListeners();
|
|
16
16
|
this.handleInputChange = () => {
|
|
17
|
-
|
|
17
|
+
if (this.inputElement != null) {
|
|
18
|
+
this.searchFieldChange.emit({ value: this.inputElement.value });
|
|
19
|
+
}
|
|
18
20
|
};
|
|
19
21
|
this.placeholder = undefined;
|
|
20
22
|
this.debounce = DEFAULT_DEBOUNCE_FAST;
|
|
@@ -23,14 +25,17 @@ const SixSearchField$1 = /*@__PURE__*/ proxyCustomElement(class SixSearchField e
|
|
|
23
25
|
this.clearable = false;
|
|
24
26
|
}
|
|
25
27
|
handleValueChange() {
|
|
26
|
-
if (this.inputElement) {
|
|
28
|
+
if (this.inputElement != null) {
|
|
27
29
|
this.inputElement.value = this.value;
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
componentDidLoad() {
|
|
33
|
+
if (this.inputElement == null)
|
|
34
|
+
return;
|
|
31
35
|
this.eventListeners.add(this.inputElement, 'six-input-input', debounce(this.handleInputChange, this.debounce));
|
|
32
36
|
this.eventListeners.add(this.inputElement, 'keydown', (event) => {
|
|
33
|
-
|
|
37
|
+
const keyboardEvent = event;
|
|
38
|
+
if (keyboardEvent.key === 'Enter') {
|
|
34
39
|
// emit immediately
|
|
35
40
|
this.handleInputChange();
|
|
36
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"six-search-field.js","mappings":";;;;;;AAAA,MAAM,iBAAiB,GAAG,iNAAiN;;MCoB9NA,gBAAc;;;;;;
|
|
1
|
+
{"file":"six-search-field.js","mappings":";;;;;;AAAA,MAAM,iBAAiB,GAAG,iNAAiN;;MCoB9NA,gBAAc;;;;;;IAqBjB,mBAAc,GAAG,IAAI,cAAc,EAAE,CAAC;IAEtC,sBAAiB,GAAG;MAC1B,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;QAC7B,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC;OACjE;KACF,CAAC;;oBAtBkC,qBAAqB;oBAGrB,KAAK;iBAGR,EAAE;qBAGf,KAAK;;EAgBzB,iBAAiB;IACf,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;MAC7B,IAAI,CAAC,YAAY,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;KACtC;GACF;EAED,gBAAgB;IACd,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI;MAAE,OAAO;IAEtC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,iBAAiB,EAAE,QAAQ,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/G,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,SAAS,EAAE,CAAC,KAAY;MACjE,MAAM,aAAa,GAAG,KAAsB,CAAC;MAC7C,IAAI,aAAa,CAAC,GAAG,KAAK,OAAO,EAAE;;QAEjC,IAAI,CAAC,iBAAiB,EAAE,CAAC;OAC1B;KACF,CAAC,CAAC;GACJ;EAED,oBAAoB;IAClB,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC;GACjC;EAED,MAAM;IACJ,QACE,WAAK,KAAK,EAAC,YAAY,IACrB,iBACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC,EACrC,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,SAAS,EAAE,IAAI,CAAC,SAAS,IAEzB,gBAAU,KAAK,EAAC,kBAAkB,EAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,IAAI,CAAC,iBAAiB,aAElF,CACD,EACZ,eAAQ,CACJ,EACN;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["SixSearchField"],"sources":["./src/components/six-search-field/six-search-field.scss?tag=six-search-field&encapsulation=shadow","./src/components/six-search-field/six-search-field.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: block;\n}\n\n.search-box {\n z-index: var(--six-z-index-search-field);\n\n &__icon {\n cursor: pointer;\n }\n}\n","import { Component, Event, EventEmitter, h, Prop, Watch } from '@stencil/core';\nimport { debounce, DEFAULT_DEBOUNCE_FAST } from '../../utils/execution-control';\nimport { EventListeners } from '../../utils/event-listeners';\n\nexport interface SixSearchFieldChangePayload {\n value: string;\n}\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the results below the search component.\n */\n\n@Component({\n tag: 'six-search-field',\n styleUrl: 'six-search-field.scss',\n shadow: true,\n})\nexport class SixSearchField {\n /** The input's placeholder text. */\n @Prop() placeholder?: string;\n\n /** Debounce time in milliseconds, default is 300 ms */\n @Prop({ reflect: true }) debounce = DEFAULT_DEBOUNCE_FAST;\n\n /** Set to true to disable the input. */\n @Prop({ reflect: true }) disabled = false;\n\n /** The input's value attribute. */\n @Prop({ reflect: true }) value = '';\n\n /** Set to true to add a clear button when the input is populated. */\n @Prop() clearable = false;\n\n /** Emitted when a search is triggered */\n @Event({ eventName: 'six-search-field-change' }) searchFieldChange!: EventEmitter<SixSearchFieldChangePayload>;\n\n private inputElement?: HTMLSixInputElement;\n\n private eventListeners = new EventListeners();\n\n private handleInputChange = () => {\n if (this.inputElement != null) {\n this.searchFieldChange.emit({ value: this.inputElement.value });\n }\n };\n\n @Watch('value')\n handleValueChange() {\n if (this.inputElement != null) {\n this.inputElement.value = this.value;\n }\n }\n\n componentDidLoad() {\n if (this.inputElement == null) return;\n\n this.eventListeners.add(this.inputElement, 'six-input-input', debounce(this.handleInputChange, this.debounce));\n this.eventListeners.add(this.inputElement, 'keydown', (event: Event) => {\n const keyboardEvent = event as KeyboardEvent;\n if (keyboardEvent.key === 'Enter') {\n // emit immediately\n this.handleInputChange();\n }\n });\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n\n render() {\n return (\n <div class=\"search-box\">\n <six-input\n ref={(el) => (this.inputElement = el)}\n placeholder={this.placeholder}\n value={this.value}\n disabled={this.disabled}\n clearable={this.clearable}\n >\n <six-icon class=\"search-box__icon\" slot=\"prefix\" size=\"small\" onClick={this.handleInputChange}>\n search\n </six-icon>\n </six-input>\n <slot />\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -11,57 +11,12 @@ import { d as defineCustomElement$4 } from './six-menu2.js';
|
|
|
11
11
|
import { d as defineCustomElement$3 } from './six-menu-item2.js';
|
|
12
12
|
import { d as defineCustomElement$2 } from './six-tag2.js';
|
|
13
13
|
|
|
14
|
-
function getValue(value, multiple, menuItems) {
|
|
15
|
-
var _a, _b;
|
|
16
|
-
if (multiple) {
|
|
17
|
-
if (Array.isArray(value)) {
|
|
18
|
-
return getSelectedValues(value, menuItems);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
return getSelectedValuesFromString(value, menuItems);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return (_b = (_a = getSelectedMenuItem(value, menuItems)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : '';
|
|
25
|
-
}
|
|
26
|
-
function isValidValue(value, multiple, menuItems) {
|
|
27
|
-
if (value === '') {
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
if (multiple) {
|
|
31
|
-
if (Array.isArray(value)) {
|
|
32
|
-
if (value.length === 0) {
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
return getSelectedValues(value, menuItems).length === value.length;
|
|
36
|
-
}
|
|
37
|
-
return getSelectedValuesFromString(value, menuItems).length > 0;
|
|
38
|
-
}
|
|
39
|
-
return getSelectedMenuItem(value, menuItems) != null;
|
|
40
|
-
}
|
|
41
|
-
function valueEquals(a, b) {
|
|
42
|
-
if (Array.isArray(a) && Array.isArray(b)) {
|
|
43
|
-
return a.length === b.length && a.every((element, index) => element === b[index]);
|
|
44
|
-
}
|
|
45
|
-
else if (typeof a === 'string' && typeof b === 'string') {
|
|
46
|
-
return a === b;
|
|
47
|
-
}
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
14
|
function isValueEmpty(value) {
|
|
51
15
|
if (Array.isArray(value)) {
|
|
52
16
|
return value.length === 0;
|
|
53
17
|
}
|
|
54
18
|
return value === '';
|
|
55
19
|
}
|
|
56
|
-
function getSelectedValues(values, menuItems) {
|
|
57
|
-
return menuItems.filter((menuItem) => values.includes(menuItem.value)).map((menuItem) => menuItem.value);
|
|
58
|
-
}
|
|
59
|
-
function getSelectedValuesFromString(value, menuItems) {
|
|
60
|
-
return menuItems.filter((menuItem) => value === menuItem.value).map((menuItem) => menuItem.value);
|
|
61
|
-
}
|
|
62
|
-
function getSelectedMenuItem(value, menuItems) {
|
|
63
|
-
return menuItems.find((item) => value === item.value);
|
|
64
|
-
}
|
|
65
20
|
|
|
66
21
|
const sixSelectCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control .form-control__error-text{display:none}.form-control--has-label .form-control__label{display:inline-block;color:var(--six-input-label-color);font-weight:var(--six-font-weight-bold);margin-bottom:var(--six-spacing-x-small)}.form-control--has-label .form-control__label__required::after{color:var(--six-color-danger-800);content:\"*\"}.form-control--has-label.form-control--small .form-control__label{font-size:var(--six-input-label-font-size-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--six-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control_label{font-size:var(--six-input-label-font-size-large)}.form-control--has-help-text .form-control__help-text{display:block;color:var(--six-input-help-text-color);margin-top:var(--six-spacing-x-small)}.form-control--has-help-text .form-control__help-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--has-error-text .form-control__error-text{display:block;color:var(--six-color-danger-800);margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text .form-control__error-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text.form-control--small .form-control__error-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-error-text.form-control--medium .form-control__error-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-error-text.form-control--large .form-control__error-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--disabled .form-control__help-text{color:var(--six-input-help-text-color-disabled)}.form-control--disabled .form-control__label{color:var(--six-input-label-color-disabled)}.form-control--invalid:not(.form-control--disabled) .form-control__label{color:var(--six-input-label-color)}:host{display:block}.select{display:block}.select__box{display:inline-flex;align-items:center;justify-content:start;position:relative;width:100%;font-family:var(--six-font-family);font-weight:var(--six-input-font-weight);font-size:var(--six-input-font-size-medium);letter-spacing:var(--six-input-letter-spacing);background-color:var(--six-input-background-color);border:solid var(--six-border-width) var(--six-input-border-color);vertical-align:middle;overflow:hidden;transition:var(--six-transition-fast) color, var(--six-transition-fast) border, var(--six-transition-fast) box-shadow;cursor:pointer}.select__box--line{border:none;border-bottom:solid var(--six-border-width) var(--six-input-border-color)}.select__box--autocomplete{border:none;overflow:initial}.select:not(.select--disabled) .select__box:hover{background-color:var(--six-input-background-color-hover);color:var(--six-input-color-hover);border-bottom-color:var(--six-input-border-color-hover)}.select:not(.select--disabled) .select__box:hover:not(.select__box--line){border-color:var(--six-input-border-color-hover)}.select:not(.select--disabled) .select__box:focus{background-color:var(--six-input-background-color-focus);outline:none;color:var(--six-input-color-focus);border-bottom-color:var(--six-input-border-color-focus);box-shadow:0 1px 0 0 var(--six-input-border-color-focus)}.select:not(.select--disabled) .select__box:focus:not(.select__box--line){border-color:var(--six-input-border-color-focus);box-shadow:var(--six-input-focus-shadow)}.select--disabled .select__box{background-color:var(--six-input-background-color-disabled);color:var(--six-input-color-disabled);cursor:not-allowed;outline:none}.select--disabled .select__box:not(.select__box--line){border-color:var(--six-input-border-color-disabled)}.select--disabled .select__tags,.select--disabled .select__clear{pointer-events:none}.select--invalid:not(.select--disabled):not(.select--focused) .select__box{border-bottom-color:var(--six-input-border-color-danger)}.select--invalid:not(.select--disabled):not(.select--focused) .select__box:not(.input--line){border-color:var(--six-input-border-color-danger)}.select__label{flex-shrink:1;flex-grow:1;align-items:center;user-select:none;width:0;scrollbar-width:none;-ms-overflow-style:none;overflow-x:auto;overflow-y:hidden;white-space:nowrap}.select__label::-webkit-scrollbar{width:0;height:0}.select__clear{flex-shrink:0;flex-grow:0;display:inline}.select__icon{flex-shrink:0;flex-grow:0;display:inline;transition:var(--six-transition-medium) transform ease}.select--open .select__icon{transform:rotate(-180deg)}.select--placeholder-visible .select__label{color:var(--six-input-placeholder-color)}.select--disabled.select--placeholder-visible .select__label{color:var(--six-input-placeholder-color-disabled)}.select__tags{display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:left;margin-left:var(--six-spacing-xx-small)}.select__hidden-select{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.select__input{position:absolute;top:0;left:0;width:100%;height:100%}.select--small .select__box{border-radius:var(--six-input-border-radius-small);font-size:var(--six-input-font-size-small);min-height:var(--six-height-small)}.select--small .select__box--line{border:none;border-bottom:solid var(--six-border-width) var(--six-input-border-color)}.select--small .select__label{margin:0 var(--six-input-spacing-small)}.select--small .select__clear{margin-right:var(--six-spacing-xxx-small)}.select--small .select__icon{margin-right:var(--six-spacing-x-small)}.select--small .select__tags{padding-bottom:2px}.select--small .select__tags six-tag{padding-top:2px}.select--small .select__tags six-tag:not(:last-of-type){margin-right:var(--six-spacing-xx-small)}.select--small.select--has-tags .select__label{margin-left:0}.select--medium .select__box{border-radius:var(--six-input-border-radius-medium);font-size:var(--six-input-font-size-medium);min-height:var(--six-height-medium)}.select--medium .select__box--line{border:none;border-bottom:solid var(--six-border-width) var(--six-input-border-color)}.select--medium .select__label{margin:0 var(--six-input-spacing-medium)}.select--medium .select__clear{margin-right:var(--six-spacing-xxx-small)}.select--medium .select__icon{margin-right:var(--six-spacing-x-small)}.select--medium .select__tags{padding-bottom:3px}.select--medium .select__tags six-tag{padding-top:3px}.select--medium .select__tags six-tag:not(:last-of-type){margin-right:var(--six-spacing-xx-small)}.select--medium.select--has-tags .select__label{margin-left:0}.select--large .select__box{border-radius:var(--six-input-border-radius-large);font-size:var(--six-input-font-size-large);min-height:var(--six-height-large)}.select--large .select__box--line{border:none;border-bottom:solid var(--six-border-width) var(--six-input-border-color)}.select--large .select__label{margin:0 var(--six-input-spacing-large)}.select--large .select__clear{margin-right:var(--six-spacing-xxx-small)}.select--large .select__icon{margin-right:var(--six-spacing-x-small)}.select--large .select__tags{padding-bottom:4px}.select--large .select__tags six-tag{padding-top:4px}.select--large .select__tags six-tag:not(:last-of-type){margin-right:var(--six-spacing-xx-small)}.select--large.select--has-tags .select__label{margin-left:0}.select--pill.select--small .select__box{border-radius:var(--six-height-small)}.select--pill.select--medium .select__box{border-radius:var(--six-height-medium)}.select--pill.select--large .select__box{border-radius:var(--six-height-large)}.select__menu{max-width:50vw;width:fit-content}.select__menu--filtered{width:100% !important}.select__menu--hidden{display:none}six-icon-button::part(base){padding-top:0;padding-bottom:0}";
|
|
67
22
|
|
|
@@ -114,8 +69,8 @@ const SixSelect$1 = /*@__PURE__*/ proxyCustomElement(class SixSelect extends HTM
|
|
|
114
69
|
this.value = hasDeselectedOptions ? checkedItems : [];
|
|
115
70
|
}
|
|
116
71
|
};
|
|
117
|
-
this.handleKeyDown =
|
|
118
|
-
var _a;
|
|
72
|
+
this.handleKeyDown = (event) => {
|
|
73
|
+
var _a, _b, _c, _d;
|
|
119
74
|
const target = event.target;
|
|
120
75
|
const items = this.getItems();
|
|
121
76
|
const firstItem = items[0];
|
|
@@ -126,8 +81,8 @@ const SixSelect$1 = /*@__PURE__*/ proxyCustomElement(class SixSelect extends HTM
|
|
|
126
81
|
}
|
|
127
82
|
// Tabbing out of the control closes it
|
|
128
83
|
if (event.key === 'Tab') {
|
|
129
|
-
if (this.isOpen
|
|
130
|
-
|
|
84
|
+
if (this.isOpen) {
|
|
85
|
+
(_a = this.dropdown) === null || _a === void 0 ? void 0 : _a.hide();
|
|
131
86
|
}
|
|
132
87
|
return;
|
|
133
88
|
}
|
|
@@ -135,29 +90,46 @@ const SixSelect$1 = /*@__PURE__*/ proxyCustomElement(class SixSelect extends HTM
|
|
|
135
90
|
if (['ArrowDown', 'ArrowUp'].includes(event.key)) {
|
|
136
91
|
event.preventDefault();
|
|
137
92
|
// Show the menu if it's not already open
|
|
138
|
-
if (!this.isOpen
|
|
139
|
-
|
|
93
|
+
if (!this.isOpen) {
|
|
94
|
+
(_b = this.dropdown) === null || _b === void 0 ? void 0 : _b.show();
|
|
140
95
|
}
|
|
141
96
|
// Focus on a menu item
|
|
142
97
|
if (event.key === 'ArrowDown' && firstItem) {
|
|
143
98
|
firstItem.setFocus();
|
|
99
|
+
return;
|
|
144
100
|
}
|
|
145
|
-
|
|
101
|
+
if (event.key === 'ArrowUp' && lastItem) {
|
|
146
102
|
lastItem.setFocus();
|
|
103
|
+
return;
|
|
147
104
|
}
|
|
148
105
|
}
|
|
149
106
|
// All other keys open the menu and initiate type to select
|
|
150
|
-
if (!this.isOpen
|
|
107
|
+
if (!this.isOpen) {
|
|
151
108
|
event.stopPropagation();
|
|
152
109
|
event.preventDefault();
|
|
153
|
-
|
|
154
|
-
|
|
110
|
+
(_c = this.dropdown) === null || _c === void 0 ? void 0 : _c.show();
|
|
111
|
+
(_d = this.menu) === null || _d === void 0 ? void 0 : _d.typeToSelect(event.key);
|
|
155
112
|
}
|
|
156
113
|
};
|
|
157
114
|
this.handleLabelClick = () => {
|
|
158
115
|
var _a;
|
|
159
116
|
(_a = this.box) === null || _a === void 0 ? void 0 : _a.focus();
|
|
160
117
|
};
|
|
118
|
+
this.handleMenuSelect = (event) => {
|
|
119
|
+
const item = event.detail.item;
|
|
120
|
+
const getValue = () => {
|
|
121
|
+
if (this.multiple) {
|
|
122
|
+
return this.value.includes(item.value)
|
|
123
|
+
? this.value.filter((v) => v !== item.value)
|
|
124
|
+
: [...this.value, item.value];
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
return item.value;
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
this.value = getValue();
|
|
131
|
+
this.syncItemsFromValue();
|
|
132
|
+
};
|
|
161
133
|
this.handleMenuShow = (event) => {
|
|
162
134
|
var _a;
|
|
163
135
|
if (this.disabled) {
|
|
@@ -177,7 +149,7 @@ const SixSelect$1 = /*@__PURE__*/ proxyCustomElement(class SixSelect extends HTM
|
|
|
177
149
|
this.hasHelpTextSlot = hasSlot(this.host, 'help-text');
|
|
178
150
|
this.hasErrorTextSlot = hasSlot(this.host, 'error-text');
|
|
179
151
|
this.hasLabelSlot = hasSlot(this.host, 'label');
|
|
180
|
-
this.
|
|
152
|
+
this.syncItemsFromValue();
|
|
181
153
|
};
|
|
182
154
|
this.handleTagInteraction = (event) => {
|
|
183
155
|
// Don't toggle the menu when a tag's clear button is activated
|
|
@@ -224,97 +196,33 @@ const SixSelect$1 = /*@__PURE__*/ proxyCustomElement(class SixSelect extends HTM
|
|
|
224
196
|
this.inputDebounce = DEFAULT_DEBOUNCE_FAST;
|
|
225
197
|
this.options = null;
|
|
226
198
|
this.virtualScroll = false;
|
|
227
|
-
this.defaultValue =
|
|
199
|
+
this.defaultValue = this.multiple ? [] : '';
|
|
228
200
|
}
|
|
229
201
|
handleDisabledChange() {
|
|
230
|
-
|
|
231
|
-
|
|
202
|
+
var _a;
|
|
203
|
+
if (this.disabled && this.isOpen) {
|
|
204
|
+
(_a = this.dropdown) === null || _a === void 0 ? void 0 : _a.hide();
|
|
232
205
|
}
|
|
233
206
|
}
|
|
234
207
|
handleLabelChange() {
|
|
235
208
|
this.handleSlotChange();
|
|
236
209
|
}
|
|
237
210
|
handleMultipleChange() {
|
|
238
|
-
this.
|
|
211
|
+
// Cast to array | string based on `this.multiple`
|
|
212
|
+
const value = this.getValueAsArray();
|
|
213
|
+
this.value = this.multiple ? value : value[0] || '';
|
|
214
|
+
this.syncItemsFromValue();
|
|
239
215
|
}
|
|
240
|
-
handleValueChange(
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
// normalize invalid values. This will re-trigger this watch handler
|
|
244
|
-
if (!isValidValue(newValue, this.multiple, items)) {
|
|
245
|
-
this.value = getValue(newValue, this.multiple, items);
|
|
246
|
-
return;
|
|
216
|
+
handleValueChange() {
|
|
217
|
+
if (this.multiple && !Array.isArray(this.value)) {
|
|
218
|
+
this.value = [];
|
|
247
219
|
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
if (valueEquals(getValue(oldValue, this.multiple, items), getValue(newValue, this.multiple, items))) {
|
|
251
|
-
return;
|
|
220
|
+
if (!this.multiple && typeof this.value !== 'string') {
|
|
221
|
+
this.value = '';
|
|
252
222
|
}
|
|
253
|
-
this.
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
update() {
|
|
257
|
-
var _a;
|
|
258
|
-
const items = this.getItems();
|
|
259
|
-
this.value = getValue(this.value, this.multiple, (_a = this.options) !== null && _a !== void 0 ? _a : items);
|
|
260
|
-
if (!Array.isArray(this.value)) {
|
|
261
|
-
// Sync checked states
|
|
262
|
-
items.forEach((item) => (item.checked = false));
|
|
263
|
-
const item = items.find((item) => this.value.includes(item.value));
|
|
264
|
-
if (item != null) {
|
|
265
|
-
item.checked = true;
|
|
266
|
-
}
|
|
267
|
-
// Sync input element content
|
|
268
|
-
this.displayLabel = this.extractLabelForSelectedItem([this.value], items);
|
|
269
|
-
this.displayTags = [];
|
|
270
|
-
const hasSelection = !isValueEmpty(this.value);
|
|
271
|
-
if (hasSelection) {
|
|
272
|
-
this.touched = true;
|
|
273
|
-
}
|
|
274
|
-
if (this.inputElement && this.touched) {
|
|
275
|
-
if (!this.autocomplete) {
|
|
276
|
-
this.inputElement.value = hasSelection ? this.displayLabel : '';
|
|
277
|
-
}
|
|
278
|
-
else if (hasSelection) {
|
|
279
|
-
this.inputElement.value = this.value;
|
|
280
|
-
}
|
|
281
|
-
this.inputElement.checkValidity().then((valid) => (this.invalid = !valid));
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
else {
|
|
285
|
-
// Sync checked states
|
|
286
|
-
items.forEach((item) => (item.checked = this.value.includes(item.value)));
|
|
287
|
-
// Sync display label
|
|
288
|
-
const checkedItems = [];
|
|
289
|
-
this.value.forEach((val) => items.map((item) => (item.value === val ? checkedItems.push(item) : null)));
|
|
290
|
-
this.displayTags = checkedItems.map((item) => {
|
|
291
|
-
return (h("six-tag", { exportparts: "base:tag", type: "primary", size: this.size, pill: this.pill, clearable: true, onClick: this.handleTagInteraction, onKeyDown: this.handleTagInteraction, "onSix-tag-clear": (event) => {
|
|
292
|
-
event.stopPropagation();
|
|
293
|
-
if (!this.disabled) {
|
|
294
|
-
this.toggleItem(item);
|
|
295
|
-
}
|
|
296
|
-
} }, this.getItemLabel(item)));
|
|
297
|
-
});
|
|
298
|
-
if (this.maxTagsVisible > 0 && this.displayTags.length > this.maxTagsVisible) {
|
|
299
|
-
const total = this.displayTags.length;
|
|
300
|
-
this.displayLabel = '';
|
|
301
|
-
this.displayTags = this.displayTags.slice(0, this.maxTagsVisible);
|
|
302
|
-
this.displayTags.push(h("six-tag", { exportparts: "base:tag", type: "info", size: this.size }, "+", total - this.maxTagsVisible));
|
|
303
|
-
}
|
|
304
|
-
// Sync input element content
|
|
305
|
-
const hasSelection = !isValueEmpty(this.value);
|
|
306
|
-
if (hasSelection) {
|
|
307
|
-
this.touched = true;
|
|
308
|
-
}
|
|
309
|
-
if (this.inputElement && this.touched) {
|
|
310
|
-
if (!this.autocomplete) {
|
|
311
|
-
this.inputElement.value = hasSelection ? this.displayLabel : '';
|
|
312
|
-
}
|
|
313
|
-
else if (hasSelection) {
|
|
314
|
-
this.inputElement.value = this.value.join(',');
|
|
315
|
-
}
|
|
316
|
-
this.inputElement.checkValidity().then((valid) => (this.invalid = !valid));
|
|
317
|
-
}
|
|
223
|
+
this.syncItemsFromValue();
|
|
224
|
+
if (this.input) {
|
|
225
|
+
this.sixChange.emit({ value: this.value, isSelected: true });
|
|
318
226
|
}
|
|
319
227
|
}
|
|
320
228
|
connectedCallback() {
|
|
@@ -326,25 +234,30 @@ const SixSelect$1 = /*@__PURE__*/ proxyCustomElement(class SixSelect extends HTM
|
|
|
326
234
|
}
|
|
327
235
|
componentWillLoad() {
|
|
328
236
|
this.handleSlotChange();
|
|
237
|
+
if (this.multiple && this.value != null) {
|
|
238
|
+
this.value = this.getValueAsArray();
|
|
239
|
+
}
|
|
329
240
|
}
|
|
330
241
|
componentDidLoad() {
|
|
331
|
-
|
|
332
|
-
if (inputElement == null) {
|
|
242
|
+
if (this.input == null)
|
|
333
243
|
return;
|
|
334
|
-
|
|
244
|
+
const input = this.input;
|
|
335
245
|
this.resizeObserver = new ResizeObserver(() => this.resizeMenu());
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
246
|
+
// We need to do an initial sync after the component has rendered, so this will suppress the re-render warning
|
|
247
|
+
requestAnimationFrame(() => this.syncItemsFromValue());
|
|
248
|
+
this.eventListeners.add(this.input, 'invalid', async (event) => {
|
|
249
|
+
if (this.customValidation || (!this.hasErrorTextSlot && this.errorText == null && this.customErrorText == null)) {
|
|
250
|
+
this.customErrorText = await input.getValidationMessage();
|
|
339
251
|
}
|
|
340
252
|
event.preventDefault();
|
|
341
253
|
});
|
|
342
|
-
this.eventListeners.add(
|
|
343
|
-
const enteredValue =
|
|
254
|
+
this.eventListeners.add(input, 'six-input-input', debounce((event) => {
|
|
255
|
+
const enteredValue = input.value;
|
|
344
256
|
this.clearValues();
|
|
345
257
|
this.sixChange.emit({ value: enteredValue, isSelected: false });
|
|
346
258
|
event.stopPropagation();
|
|
347
259
|
}, this.inputDebounce));
|
|
260
|
+
input.value = this.hasSelection() ? this.displayLabel : '';
|
|
348
261
|
}
|
|
349
262
|
disconnectedCallback() {
|
|
350
263
|
var _a;
|
|
@@ -354,29 +267,30 @@ const SixSelect$1 = /*@__PURE__*/ proxyCustomElement(class SixSelect extends HTM
|
|
|
354
267
|
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
355
268
|
async reportValidity() {
|
|
356
269
|
var _a;
|
|
357
|
-
return (_a = this.
|
|
270
|
+
return (_a = this.input) === null || _a === void 0 ? void 0 : _a.reportValidity();
|
|
358
271
|
}
|
|
359
272
|
/** Checks for validity. */
|
|
360
273
|
async checkValidity() {
|
|
361
274
|
var _a;
|
|
362
|
-
return (_a = this.
|
|
275
|
+
return (_a = this.input) === null || _a === void 0 ? void 0 : _a.isValid();
|
|
363
276
|
}
|
|
364
277
|
/** Sets a custom validation message. If `message` is not empty, the field will be considered invalid. */
|
|
365
278
|
async setCustomValidity(message) {
|
|
279
|
+
if (this.input == null)
|
|
280
|
+
return;
|
|
366
281
|
this.customErrorText = '';
|
|
367
282
|
this.customValidation = message !== '';
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
this.invalid = !(await this.inputElement.checkValidity());
|
|
371
|
-
}
|
|
283
|
+
await this.input.setCustomValidity(message);
|
|
284
|
+
this.invalid = !(await this.input.checkValidity());
|
|
372
285
|
}
|
|
373
286
|
/** Resets the formcontrol */
|
|
374
287
|
async reset() {
|
|
375
|
-
|
|
376
|
-
|
|
288
|
+
if (this.input == null)
|
|
289
|
+
return;
|
|
290
|
+
this.value = this.defaultValue;
|
|
377
291
|
this.customErrorText = '';
|
|
378
292
|
this.customValidation = false;
|
|
379
|
-
await
|
|
293
|
+
await this.input.setCustomValidity('');
|
|
380
294
|
this.invalid = false;
|
|
381
295
|
}
|
|
382
296
|
getItemLabel(item) {
|
|
@@ -399,18 +313,59 @@ const SixSelect$1 = /*@__PURE__*/ proxyCustomElement(class SixSelect extends HTM
|
|
|
399
313
|
hasMenuItems() {
|
|
400
314
|
return this.getItems().length > 0;
|
|
401
315
|
}
|
|
316
|
+
getValueAsArray() {
|
|
317
|
+
const values = Array.isArray(this.value) ? this.value : [this.value];
|
|
318
|
+
// enforce that the values are converted to 'string' before the value is compared
|
|
319
|
+
return values.map(String);
|
|
320
|
+
}
|
|
402
321
|
clearValues() {
|
|
403
322
|
var _a;
|
|
404
323
|
this.value = (_a = this.defaultValue) !== null && _a !== void 0 ? _a : (this.multiple ? [] : '');
|
|
405
|
-
this.
|
|
324
|
+
this.syncItemsFromValue();
|
|
406
325
|
}
|
|
407
|
-
|
|
408
|
-
if (this.menu == null || this.box == null)
|
|
326
|
+
resizeMenu() {
|
|
327
|
+
if (this.menu == null || this.box == null)
|
|
409
328
|
return;
|
|
410
|
-
}
|
|
411
329
|
this.menu.style.minWidth = `${this.box.clientWidth}px`;
|
|
412
330
|
if (this.dropdown) {
|
|
413
|
-
|
|
331
|
+
this.dropdown.reposition();
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
async syncItemsFromValue() {
|
|
335
|
+
const items = this.getItems();
|
|
336
|
+
const value = this.getValueAsArray();
|
|
337
|
+
// Sync checked states
|
|
338
|
+
items.forEach((item) => (item.checked = value.includes(item.value)));
|
|
339
|
+
// Sync display label
|
|
340
|
+
if (this.multiple) {
|
|
341
|
+
const checkedItems = [];
|
|
342
|
+
value.forEach((val) => items.map((item) => (item.value === val ? checkedItems.push(item) : null)));
|
|
343
|
+
this.displayTags = checkedItems.map((item) => {
|
|
344
|
+
return (h("six-tag", { exportparts: "base:tag", type: "primary", size: this.size, pill: this.pill, clearable: true, onClick: this.handleTagInteraction, onKeyDown: this.handleTagInteraction, "onSix-tag-clear": (event) => {
|
|
345
|
+
event.stopPropagation();
|
|
346
|
+
if (!this.disabled) {
|
|
347
|
+
item.checked = false;
|
|
348
|
+
this.syncValueFromItems();
|
|
349
|
+
}
|
|
350
|
+
} }, this.getItemLabel(item)));
|
|
351
|
+
});
|
|
352
|
+
if (this.maxTagsVisible > 0 && this.displayTags.length > this.maxTagsVisible) {
|
|
353
|
+
const total = this.displayTags.length;
|
|
354
|
+
this.displayLabel = '';
|
|
355
|
+
this.displayTags = this.displayTags.slice(0, this.maxTagsVisible);
|
|
356
|
+
this.displayTags.push(h("six-tag", { exportparts: "base:tag", type: "info", size: this.size }, "+", total - this.maxTagsVisible));
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
else {
|
|
360
|
+
this.displayLabel = this.extractLabelForSelectedItem(value, items);
|
|
361
|
+
this.displayTags = [];
|
|
362
|
+
}
|
|
363
|
+
if (!isValueEmpty(this.value)) {
|
|
364
|
+
this.touched = true;
|
|
365
|
+
}
|
|
366
|
+
if (this.touched && this.input != null) {
|
|
367
|
+
this.input.value = Array.isArray(this.value) ? this.value.join(',') : this.value;
|
|
368
|
+
this.invalid = !(await this.input.checkValidity());
|
|
414
369
|
}
|
|
415
370
|
}
|
|
416
371
|
extractLabelForSelectedItem(value, items) {
|
|
@@ -424,34 +379,23 @@ const SixSelect$1 = /*@__PURE__*/ proxyCustomElement(class SixSelect extends HTM
|
|
|
424
379
|
const checkedItem = items.find((item) => item.value === value[0]);
|
|
425
380
|
return checkedItem ? this.getItemLabel(checkedItem) : '';
|
|
426
381
|
}
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
const
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
this.value = value.filter((v) => v !== item.value);
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
else {
|
|
440
|
-
if (item.value === value) {
|
|
441
|
-
this.value = '';
|
|
442
|
-
}
|
|
443
|
-
else {
|
|
444
|
-
this.value = item.value;
|
|
445
|
-
}
|
|
446
|
-
}
|
|
382
|
+
syncValueFromItems() {
|
|
383
|
+
const items = this.getItems();
|
|
384
|
+
const checkedItems = items.filter((item) => item.checked);
|
|
385
|
+
const checkedValues = checkedItems.map((item) => item.value);
|
|
386
|
+
this.value = this.multiple
|
|
387
|
+
? this.getValueAsArray().filter((val) => checkedValues.includes(val))
|
|
388
|
+
: checkedValues.length > 0
|
|
389
|
+
? checkedValues[0]
|
|
390
|
+
: '';
|
|
447
391
|
}
|
|
448
392
|
displayError() {
|
|
449
393
|
return this.invalid && (!this.errorOnBlur || (!this.hasFocus && !this.isOpen));
|
|
450
394
|
}
|
|
451
395
|
render() {
|
|
452
396
|
var _a;
|
|
453
|
-
const hasSelection =
|
|
454
|
-
return (h(FormControl, { inputId: this.inputId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, helpTextId: this.helpTextId, helpText: this.helpText, hasHelpTextSlot: this.hasHelpTextSlot, errorTextId: this.errorTextId, errorText: this.customErrorText != null ? this.customErrorText : this.errorText, hasErrorTextSlot: this.hasErrorTextSlot, size: this.size, onLabelClick: this.handleLabelClick, disabled: this.disabled, required: this.required, displayError: this.displayError() }, h("six-dropdown", { part: "base", ref: (el) => (this.dropdown = el), hoist: this.hoist, closeOnSelect: !this.multiple, containingElement: this.host, disableHideOnEnterAndSpace: this.autocomplete, class: {
|
|
397
|
+
const hasSelection = this.hasSelection();
|
|
398
|
+
return (h(FormControl, { inputId: this.inputId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, helpTextId: this.helpTextId, helpText: this.helpText, hasHelpTextSlot: this.hasHelpTextSlot, errorTextId: this.errorTextId, errorText: this.customErrorText != null && this.customErrorText !== '' ? this.customErrorText : this.errorText, hasErrorTextSlot: this.hasErrorTextSlot, size: this.size, onLabelClick: this.handleLabelClick, disabled: this.disabled, required: this.required, displayError: this.displayError() }, h("six-dropdown", { part: "base", ref: (el) => (this.dropdown = el), hoist: this.hoist, closeOnSelect: !this.multiple, containingElement: this.host, disableHideOnEnterAndSpace: this.autocomplete, class: {
|
|
455
399
|
select: true,
|
|
456
400
|
'select--open': this.isOpen,
|
|
457
401
|
'select--empty': ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) === 0,
|
|
@@ -470,14 +414,17 @@ const SixSelect$1 = /*@__PURE__*/ proxyCustomElement(class SixSelect extends HTM
|
|
|
470
414
|
select__box: true,
|
|
471
415
|
'select__box--line': this.line,
|
|
472
416
|
'select__box--autocomplete': this.autocomplete,
|
|
473
|
-
}, role: "combobox", "aria-labelledby": this.labelId, "aria-describedby": this.helpTextId, "aria-haspopup": "true", "aria-expanded": this.isOpen ? 'true' : 'false', tabIndex: this.disabled ? -1 : 0, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown }, h("span", { class: "select__label" }, this.displayTags.length ? (h("span", { part: "tags", class: "select__tags" }, this.displayTags)) : (this.displayLabel || this.placeholder)), this.clearable && hasSelection && (h("six-icon-button", { exportparts: "base:clear-button", class: "select__clear", name: "clear", size: "small", onClick: this.handleClearClick, tabindex: "-1" })), this.hasMenuItems() && (h("span", { part: "icon", class: "select__icon" }, h("six-icon", { size: "medium" }, "expand_more"))), h("six-input", { ref: (el) => (this.
|
|
417
|
+
}, role: "combobox", "aria-labelledby": this.labelId, "aria-describedby": this.helpTextId, "aria-haspopup": "true", "aria-expanded": this.isOpen ? 'true' : 'false', tabIndex: this.disabled ? -1 : 0, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown }, h("span", { class: "select__label" }, this.displayTags.length > 0 ? (h("span", { part: "tags", class: "select__tags" }, this.displayTags)) : (this.displayLabel || this.placeholder)), this.clearable && hasSelection && (h("six-icon-button", { exportparts: "base:clear-button", class: "select__clear", name: "clear", size: "small", onClick: this.handleClearClick, tabindex: "-1" })), this.hasMenuItems() && (h("span", { part: "icon", class: "select__icon" }, h("six-icon", { size: "medium" }, "expand_more"))), h("six-input", { ref: (el) => (this.input = el), class: {
|
|
474
418
|
select__input: true,
|
|
475
419
|
'select__hidden-select': !this.autocomplete,
|
|
476
420
|
}, "aria-hidden": "true", required: this.required, onInvalid: this.handleInvalid, onFocus: this.handleFocus, clearable: this.clearable, placeholder: this.placeholder, pill: this.pill, disabled: this.disabled, size: this.size, tabIndex: -1 })), h("six-menu", { ref: (el) => (this.menu = el), part: "menu", class: {
|
|
477
421
|
select__menu: true,
|
|
478
422
|
'select__menu--filtered': this.filter || this.asyncFilter,
|
|
479
423
|
'select__menu--hidden': !this.hasMenuItems(),
|
|
480
|
-
}, "onSix-menu-item-selected":
|
|
424
|
+
}, "onSix-menu-item-selected": this.handleMenuSelect, items: this.options, virtualScroll: this.virtualScroll, "remove-box-shadow": true }, h("slot", { onSlotchange: this.handleSlotChange })))));
|
|
425
|
+
}
|
|
426
|
+
hasSelection() {
|
|
427
|
+
return this.multiple ? this.value.length > 0 : this.value !== '';
|
|
481
428
|
}
|
|
482
429
|
get host() { return this; }
|
|
483
430
|
static get watchers() { return {
|