@six-group/ui-library 0.0.0-insider.9277796 → 0.0.0-insider.a8d68c7
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-b835dfae.js +61 -0
- package/dist/cjs/event-listeners-b835dfae.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-8cbd4e0e.js +20 -0
- package/dist/cjs/form-8cbd4e0e.js.map +1 -0
- package/dist/cjs/{form-control-2c17c573.js → form-control-8df00a52.js} +9 -10
- package/dist/cjs/form-control-8df00a52.js.map +1 -0
- package/dist/cjs/index.cjs.js +94 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- 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-8885d50f.js} +39 -31
- package/dist/cjs/popover-8885d50f.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 +3 -1
- package/dist/cjs/set-attributes_2.cjs.entry.js.map +1 -1
- package/dist/cjs/six-alert.cjs.entry.js +17 -22
- package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/six-avatar.cjs.entry.js +4 -7
- package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-badge.cjs.entry.js +1 -1
- package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/six-button.cjs.entry.js +35 -33
- package/dist/cjs/six-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-card.cjs.entry.js.map +1 -1
- package/dist/cjs/six-checkbox.cjs.entry.js +48 -75
- package/dist/cjs/six-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/six-datepicker.cjs.entry.js +150 -278
- package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-details.cjs.entry.js +47 -46
- package/dist/cjs/six-details.cjs.entry.js.map +1 -1
- package/dist/cjs/six-dialog.cjs.entry.js +35 -39
- package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/six-drawer.cjs.entry.js +32 -36
- package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/six-dropdown_2.cjs.entry.js +214 -195
- package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/six-error-page.cjs.entry.js +19 -21
- package/dist/cjs/six-error-page.cjs.entry.js.map +1 -1
- package/dist/cjs/six-file-list-item.cjs.entry.js +1 -1
- package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-file-upload.cjs.entry.js +20 -20
- package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/six-group-label.cjs.entry.js +11 -10
- package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
- package/dist/cjs/six-header.cjs.entry.js +65 -43
- package/dist/cjs/six-header.cjs.entry.js.map +1 -1
- package/dist/cjs/six-icon-button.cjs.entry.js +3 -3
- package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-input.cjs.entry.js +93 -126
- package/dist/cjs/six-input.cjs.entry.js.map +1 -1
- package/dist/cjs/six-item-picker.cjs.entry.js +58 -77
- package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-language-switcher.cjs.entry.js +1 -1
- package/dist/cjs/six-language-switcher.cjs.entry.js.map +1 -1
- package/dist/cjs/six-layout-grid.cjs.entry.js +4 -2
- package/dist/cjs/six-layout-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/six-main-container.cjs.entry.js.map +1 -1
- package/dist/cjs/six-menu-item.cjs.entry.js +8 -6
- package/dist/cjs/six-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-picto.cjs.entry.js +4 -1
- package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
- package/dist/cjs/six-progress-ring.cjs.entry.js +3 -3
- package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
- package/dist/cjs/six-radio.cjs.entry.js +59 -60
- package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/six-range.cjs.entry.js +106 -105
- package/dist/cjs/six-range.cjs.entry.js.map +1 -1
- package/dist/cjs/six-root.cjs.entry.js +1 -1
- package/dist/cjs/six-root.cjs.entry.js.map +1 -1
- package/dist/cjs/six-search-field.cjs.entry.js +10 -5
- package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
- package/dist/cjs/six-select.cjs.entry.js +185 -219
- package/dist/cjs/six-select.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js +9 -5
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar.cjs.entry.js +39 -18
- package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
- package/dist/cjs/six-switch.cjs.entry.js +54 -62
- package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab-group.cjs.entry.js +130 -112
- package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab.cjs.entry.js +4 -2
- package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tag.cjs.entry.js +4 -7
- package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/six-textarea.cjs.entry.js +87 -109
- package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tile.cjs.entry.js +13 -16
- package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/six-timepicker.cjs.entry.js +157 -213
- package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tooltip.cjs.entry.js +53 -56
- 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 +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- 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 +44 -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 +64 -159
- 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 +186 -376
- 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-group-label/six-group-label.js +12 -10
- 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 +163 -347
- 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 +66 -114
- package/dist/collection/components/six-radio/six-radio.js.map +1 -1
- package/dist/collection/components/six-range/six-range.js +133 -180
- package/dist/collection/components/six-range/six-range.js.map +1 -1
- 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 +215 -336
- package/dist/collection/components/six-select/six-select.js.map +1 -1
- package/dist/collection/components/six-select/util.js +52 -0
- package/dist/collection/components/six-select/util.js.map +1 -0
- 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.css +77 -0
- package/dist/collection/components/six-switch/six-switch.js +96 -133
- 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 +149 -270
- package/dist/collection/components/six-textarea/six-textarea.js.map +1 -1
- 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 +153 -254
- 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 -9
- package/dist/collection/functional-components/form-control/form-control.js.map +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/testUtil/delay.js.map +1 -1
- package/dist/collection/utils/date-util.js +25 -16
- package/dist/collection/utils/date-util.js.map +1 -1
- package/dist/collection/utils/error-messages.js +91 -0
- package/dist/collection/utils/error-messages.js.map +1 -0
- package/dist/collection/utils/event-listeners.js +22 -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/form.js +15 -0
- package/dist/collection/utils/form.js.map +1 -0
- 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 +22 -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 -9
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form.js +18 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/index.js +92 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/modal.js +3 -2
- package/dist/components/modal.js.map +1 -1
- package/dist/components/popover.js +38 -30
- 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 +34 -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 +46 -78
- package/dist/components/six-checkbox.js.map +1 -1
- package/dist/components/six-datepicker.js +150 -281
- 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-group-label.js +10 -9
- 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 +95 -137
- 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-radio.js +61 -65
- package/dist/components/six-radio.js.map +1 -1
- package/dist/components/six-range.js +108 -111
- package/dist/components/six-range.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 +186 -226
- 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 +58 -68
- 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-textarea.js +89 -117
- package/dist/components/six-textarea.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 +247 -258
- 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 +527 -914
- package/dist/esm/event-listeners-535f3ad1.js +59 -0
- package/dist/esm/event-listeners-535f3ad1.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-0b9c11cd.js +18 -0
- package/dist/esm/form-0b9c11cd.js.map +1 -0
- package/dist/esm/{form-control-3b440ea1.js → form-control-785c5f79.js} +9 -10
- package/dist/esm/form-control-785c5f79.js.map +1 -0
- package/dist/esm/index.js +91 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- 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-2e72e7d8.js} +39 -31
- package/dist/esm/popover-2e72e7d8.js.map +1 -0
- 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 +3 -1
- package/dist/esm/set-attributes_2.entry.js.map +1 -1
- package/dist/esm/six-alert.entry.js +17 -22
- package/dist/esm/six-alert.entry.js.map +1 -1
- package/dist/esm/six-avatar.entry.js +4 -7
- package/dist/esm/six-avatar.entry.js.map +1 -1
- package/dist/esm/six-badge.entry.js +1 -1
- package/dist/esm/six-badge.entry.js.map +1 -1
- package/dist/esm/six-button.entry.js +35 -33
- package/dist/esm/six-button.entry.js.map +1 -1
- package/dist/esm/six-card.entry.js.map +1 -1
- package/dist/esm/six-checkbox.entry.js +48 -75
- package/dist/esm/six-checkbox.entry.js.map +1 -1
- package/dist/esm/six-datepicker.entry.js +148 -276
- package/dist/esm/six-datepicker.entry.js.map +1 -1
- package/dist/esm/six-details.entry.js +47 -46
- package/dist/esm/six-details.entry.js.map +1 -1
- package/dist/esm/six-dialog.entry.js +35 -39
- package/dist/esm/six-dialog.entry.js.map +1 -1
- package/dist/esm/six-drawer.entry.js +32 -36
- package/dist/esm/six-drawer.entry.js.map +1 -1
- package/dist/esm/six-dropdown_2.entry.js +214 -195
- package/dist/esm/six-dropdown_2.entry.js.map +1 -1
- package/dist/esm/six-error-page.entry.js +19 -21
- package/dist/esm/six-error-page.entry.js.map +1 -1
- package/dist/esm/six-file-list-item.entry.js +1 -1
- package/dist/esm/six-file-list-item.entry.js.map +1 -1
- package/dist/esm/six-file-upload.entry.js +20 -20
- package/dist/esm/six-file-upload.entry.js.map +1 -1
- package/dist/esm/six-group-label.entry.js +11 -10
- package/dist/esm/six-group-label.entry.js.map +1 -1
- package/dist/esm/six-header.entry.js +65 -43
- package/dist/esm/six-header.entry.js.map +1 -1
- package/dist/esm/six-icon-button.entry.js +3 -3
- package/dist/esm/six-icon-button.entry.js.map +1 -1
- package/dist/esm/six-input.entry.js +93 -126
- package/dist/esm/six-input.entry.js.map +1 -1
- package/dist/esm/six-item-picker.entry.js +58 -77
- package/dist/esm/six-item-picker.entry.js.map +1 -1
- package/dist/esm/six-language-switcher.entry.js +1 -1
- package/dist/esm/six-language-switcher.entry.js.map +1 -1
- package/dist/esm/six-layout-grid.entry.js +4 -2
- package/dist/esm/six-layout-grid.entry.js.map +1 -1
- package/dist/esm/six-main-container.entry.js.map +1 -1
- package/dist/esm/six-menu-item.entry.js +8 -6
- package/dist/esm/six-menu-item.entry.js.map +1 -1
- package/dist/esm/six-picto.entry.js +4 -1
- package/dist/esm/six-picto.entry.js.map +1 -1
- package/dist/esm/six-progress-ring.entry.js +3 -3
- package/dist/esm/six-progress-ring.entry.js.map +1 -1
- package/dist/esm/six-radio.entry.js +59 -60
- package/dist/esm/six-radio.entry.js.map +1 -1
- package/dist/esm/six-range.entry.js +106 -105
- package/dist/esm/six-range.entry.js.map +1 -1
- package/dist/esm/six-root.entry.js +1 -1
- package/dist/esm/six-root.entry.js.map +1 -1
- package/dist/esm/six-search-field.entry.js +10 -5
- package/dist/esm/six-search-field.entry.js.map +1 -1
- package/dist/esm/six-select.entry.js +185 -219
- package/dist/esm/six-select.entry.js.map +1 -1
- package/dist/esm/six-sidebar-item-group.entry.js +9 -5
- package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
- package/dist/esm/six-sidebar.entry.js +39 -18
- package/dist/esm/six-sidebar.entry.js.map +1 -1
- package/dist/esm/six-spinner.entry.js.map +1 -1
- package/dist/esm/six-switch.entry.js +55 -63
- package/dist/esm/six-switch.entry.js.map +1 -1
- package/dist/esm/six-tab-group.entry.js +130 -112
- package/dist/esm/six-tab-group.entry.js.map +1 -1
- package/dist/esm/six-tab-panel.entry.js +1 -1
- package/dist/esm/six-tab-panel.entry.js.map +1 -1
- package/dist/esm/six-tab.entry.js +4 -2
- package/dist/esm/six-tab.entry.js.map +1 -1
- package/dist/esm/six-tag.entry.js +4 -7
- package/dist/esm/six-tag.entry.js.map +1 -1
- package/dist/esm/six-textarea.entry.js +87 -109
- package/dist/esm/six-textarea.entry.js.map +1 -1
- package/dist/esm/six-tile.entry.js +13 -16
- package/dist/esm/six-tile.entry.js.map +1 -1
- package/dist/esm/six-timepicker.entry.js +157 -213
- package/dist/esm/six-timepicker.entry.js.map +1 -1
- package/dist/esm/six-tooltip.entry.js +53 -56
- 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 +1 -1
- 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 +23 -31
- 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 +41 -52
- 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-group-label/six-group-label.d.ts +5 -5
- 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 +32 -67
- 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 +14 -20
- package/dist/types/components/six-range/six-range.d.ts +27 -38
- 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 +41 -58
- package/dist/types/components/six-select/util.d.ts +7 -0
- 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 +18 -21
- 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 +27 -55
- package/dist/types/components/six-tile/six-tile.d.ts +2 -3
- package/dist/types/components/six-timepicker/six-timepicker.d.ts +26 -43
- package/dist/types/components/six-tooltip/six-tooltip.d.ts +19 -21
- package/dist/types/components.d.ts +209 -444
- package/dist/types/functional-components/form-control/form-control.d.ts +5 -6
- package/dist/types/index.d.ts +1 -0
- package/dist/types/testUtil/delay.d.ts +1 -1
- package/dist/types/types.d.ts +2 -0
- package/dist/types/utils/date-util.d.ts +18 -10
- package/dist/types/utils/error-messages.d.ts +42 -0
- package/dist/types/utils/event-listeners.d.ts +2 -1
- package/dist/types/utils/execution-control.d.ts +1 -3
- package/dist/types/utils/form.d.ts +1 -0
- 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/index.esm.js +1 -1
- package/dist/ui-library/index.esm.js.map +1 -1
- package/dist/ui-library/p-0045a402.entry.js +2 -0
- package/dist/ui-library/p-0045a402.entry.js.map +1 -0
- package/dist/ui-library/p-0108fe92.entry.js +2 -0
- package/dist/ui-library/p-0108fe92.entry.js.map +1 -0
- package/dist/ui-library/p-03a145f5.entry.js +2 -0
- package/dist/ui-library/p-03a145f5.entry.js.map +1 -0
- package/dist/ui-library/{p-7e0cc4ae.entry.js → p-087fdd96.entry.js} +2 -2
- package/dist/ui-library/p-087fdd96.entry.js.map +1 -0
- package/dist/ui-library/p-09779e47.entry.js +2 -0
- package/dist/ui-library/p-09779e47.entry.js.map +1 -0
- package/dist/ui-library/p-097cced4.entry.js.map +1 -1
- package/dist/ui-library/p-0b2c6348.js +2 -0
- package/dist/ui-library/p-0b2c6348.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-0fe78f9b.js +2 -0
- package/dist/ui-library/p-0fe78f9b.js.map +1 -0
- package/dist/ui-library/p-2761f908.js +2 -0
- package/dist/ui-library/p-2761f908.js.map +1 -0
- package/dist/ui-library/{p-19b50b5a.entry.js → p-28be55f0.entry.js} +2 -2
- package/dist/ui-library/p-28be55f0.entry.js.map +1 -0
- package/dist/ui-library/{p-c349d1d4.entry.js → p-3929b0af.entry.js} +2 -2
- package/dist/ui-library/p-3929b0af.entry.js.map +1 -0
- package/dist/ui-library/{p-9328e5bc.entry.js → p-445ba5b8.entry.js} +2 -2
- package/dist/ui-library/p-445ba5b8.entry.js.map +1 -0
- package/dist/ui-library/p-4d408fb4.js +2 -0
- package/dist/ui-library/p-4d408fb4.js.map +1 -0
- package/dist/ui-library/p-502ff3d3.entry.js +2 -0
- package/dist/ui-library/p-502ff3d3.entry.js.map +1 -0
- package/dist/ui-library/p-5a34c93e.entry.js +2 -0
- package/dist/ui-library/p-5a34c93e.entry.js.map +1 -0
- package/dist/ui-library/p-60621dc6.js +2 -0
- package/dist/ui-library/p-60621dc6.js.map +1 -0
- package/dist/ui-library/p-63703ba3.entry.js.map +1 -1
- package/dist/ui-library/p-66180e89.entry.js +2 -0
- package/dist/ui-library/p-66180e89.entry.js.map +1 -0
- package/dist/ui-library/p-686b12ec.entry.js +2 -0
- package/dist/ui-library/p-686b12ec.entry.js.map +1 -0
- package/dist/ui-library/p-71035abf.entry.js +2 -0
- package/dist/ui-library/p-71035abf.entry.js.map +1 -0
- package/dist/ui-library/{p-8a970a40.entry.js → p-724e154d.entry.js} +2 -2
- package/dist/ui-library/p-724e154d.entry.js.map +1 -0
- package/dist/ui-library/p-72ca96e1.entry.js +2 -0
- package/dist/ui-library/p-72ca96e1.entry.js.map +1 -0
- package/dist/ui-library/p-73597d13.entry.js.map +1 -1
- package/dist/ui-library/{p-c30f9e0b.entry.js → p-778cf804.entry.js} +2 -2
- package/dist/ui-library/p-778cf804.entry.js.map +1 -0
- package/dist/ui-library/p-87032e26.entry.js +2 -0
- package/dist/ui-library/p-87032e26.entry.js.map +1 -0
- package/dist/ui-library/p-8cf72af6.js +2 -0
- package/dist/ui-library/p-8cf72af6.js.map +1 -0
- package/dist/ui-library/p-8e0b6b7e.entry.js +2 -0
- package/dist/ui-library/p-8e0b6b7e.entry.js.map +1 -0
- package/dist/ui-library/p-912092c0.entry.js +2 -0
- package/dist/ui-library/p-912092c0.entry.js.map +1 -0
- package/dist/ui-library/p-92ca6a84.entry.js +2 -0
- package/dist/ui-library/p-92ca6a84.entry.js.map +1 -0
- package/dist/ui-library/{p-d5633a29.entry.js → p-9337cdd6.entry.js} +2 -2
- package/dist/ui-library/p-9337cdd6.entry.js.map +1 -0
- package/dist/ui-library/p-9461417e.entry.js +2 -0
- package/dist/ui-library/p-9461417e.entry.js.map +1 -0
- package/dist/ui-library/p-a1d4f6cf.entry.js.map +1 -1
- package/dist/ui-library/{p-611e1978.entry.js → p-a844cb72.entry.js} +2 -2
- package/dist/ui-library/{p-611e1978.entry.js.map → p-a844cb72.entry.js.map} +1 -1
- package/dist/ui-library/p-afcbe9da.entry.js +2 -0
- package/dist/ui-library/p-afcbe9da.entry.js.map +1 -0
- package/dist/ui-library/{p-0d79b0c6.entry.js → p-b2bf4ac8.entry.js} +2 -2
- package/dist/ui-library/p-b2bf4ac8.entry.js.map +1 -0
- package/dist/ui-library/{p-90dc6af4.entry.js → p-b3bff992.entry.js} +2 -2
- package/dist/ui-library/p-b3bff992.entry.js.map +1 -0
- package/dist/ui-library/p-b4547fb5.entry.js +2 -0
- package/dist/ui-library/p-b4547fb5.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-bd8f8eef.entry.js +2 -0
- package/dist/ui-library/p-bd8f8eef.entry.js.map +1 -0
- package/dist/ui-library/p-c57f16af.entry.js +2 -0
- package/dist/ui-library/p-c57f16af.entry.js.map +1 -0
- package/dist/ui-library/p-c5cdba08.entry.js +2 -0
- package/dist/ui-library/p-c5cdba08.entry.js.map +1 -0
- package/dist/ui-library/p-c87810b0.entry.js +2 -0
- package/dist/ui-library/p-c87810b0.entry.js.map +1 -0
- package/dist/ui-library/{p-af793d04.entry.js → p-cdcde4cd.entry.js} +2 -2
- package/dist/ui-library/p-cdcde4cd.entry.js.map +1 -0
- package/dist/ui-library/p-d6798d35.entry.js +2 -0
- package/dist/ui-library/p-d6798d35.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-dc3f5996.entry.js +2 -0
- package/dist/ui-library/p-dc3f5996.entry.js.map +1 -0
- package/dist/ui-library/p-dcd7c547.entry.js +2 -0
- package/dist/ui-library/p-dcd7c547.entry.js.map +1 -0
- package/dist/ui-library/p-e07b3f0c.entry.js +2 -0
- package/dist/ui-library/p-e07b3f0c.entry.js.map +1 -0
- package/dist/ui-library/{p-19364560.entry.js → p-e8feb81f.entry.js} +2 -2
- package/dist/ui-library/{p-19364560.entry.js.map → p-e8feb81f.entry.js.map} +1 -1
- package/dist/ui-library/p-ef3936e5.entry.js +2 -0
- package/dist/ui-library/p-ef3936e5.entry.js.map +1 -0
- package/dist/ui-library/p-f0dd77e1.entry.js +2 -0
- package/dist/ui-library/p-f0dd77e1.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 +14 -15
- package/dist/cjs/event-listeners-74715e62.js +0 -45
- 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/modal-48d42228.js.map +0 -1
- package/dist/cjs/popover-f743f62b.js.map +0 -1
- package/dist/cjs/six-form.cjs.entry.js +0 -231
- package/dist/cjs/six-form.cjs.entry.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-form/six-form.css +0 -11
- package/dist/collection/components/six-form/six-form.js +0 -419
- package/dist/collection/components/six-form/six-form.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/components/six-form.d.ts +0 -11
- package/dist/components/six-form.js +0 -252
- package/dist/components/six-form.js.map +0 -1
- package/dist/esm/event-listeners-570a24ea.js +0 -43
- 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/modal-5ebdc320.js.map +0 -1
- package/dist/esm/popover-bd2c2fca.js.map +0 -1
- package/dist/esm/six-form.entry.js +0 -227
- package/dist/esm/six-form.entry.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-form/six-form.d.ts +0 -69
- 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-0d79b0c6.entry.js.map +0 -1
- package/dist/ui-library/p-14f20bbb.entry.js +0 -2
- package/dist/ui-library/p-14f20bbb.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-7e0cc4ae.entry.js.map +0 -1
- package/dist/ui-library/p-835c3ff7.entry.js +0 -2
- package/dist/ui-library/p-835c3ff7.entry.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-90dc6af4.entry.js.map +0 -1
- package/dist/ui-library/p-9328e5bc.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-af793d04.entry.js.map +0 -1
- package/dist/ui-library/p-b0e5658f.entry.js +0 -2
- 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-edc96efc.entry.js +0 -2
- package/dist/ui-library/p-edc96efc.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
|
@@ -3,6 +3,7 @@ import { getTextContent, hasSlot } from '../../utils/slot';
|
|
|
3
3
|
import FormControl from '../../functional-components/form-control/form-control';
|
|
4
4
|
import { EventListeners } from '../../utils/event-listeners';
|
|
5
5
|
import { debounce, DEFAULT_DEBOUNCE_FAST } from '../../utils/execution-control';
|
|
6
|
+
import { isValueEmpty } from './util';
|
|
6
7
|
let id = 0;
|
|
7
8
|
/**
|
|
8
9
|
* @since 1.0
|
|
@@ -31,12 +32,133 @@ export class SixSelect {
|
|
|
31
32
|
this.labelId = `select-label-${id}`;
|
|
32
33
|
this.helpTextId = `select-help-text-${id}`;
|
|
33
34
|
this.errorTextId = `select-error-text-${id}`;
|
|
34
|
-
this.
|
|
35
|
-
this.customValidation = false;
|
|
35
|
+
this.touched = false;
|
|
36
36
|
this.eventListeners = new EventListeners();
|
|
37
|
+
this.handleBlur = () => {
|
|
38
|
+
this.hasFocus = false;
|
|
39
|
+
this.sixBlur.emit();
|
|
40
|
+
};
|
|
41
|
+
this.handleFocus = () => {
|
|
42
|
+
this.hasFocus = true;
|
|
43
|
+
this.sixFocus.emit();
|
|
44
|
+
};
|
|
45
|
+
this.handleClearClick = (event) => {
|
|
46
|
+
event.stopPropagation();
|
|
47
|
+
this.clearValues();
|
|
48
|
+
};
|
|
49
|
+
this.handleSelectAll = (event) => {
|
|
50
|
+
const nonFilteredItems = this.getItems().filter((item) => item.style.display !== 'none');
|
|
51
|
+
const keyName = event.key;
|
|
52
|
+
const keyCode = event.code;
|
|
53
|
+
if (keyName === 'Control') {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (this.isOpen && this.multiple && keyCode === 'KeyA' && event.ctrlKey) {
|
|
57
|
+
event.preventDefault();
|
|
58
|
+
const hasDeselectedOptions = nonFilteredItems.some((opt) => !opt.disabled && !opt.checked);
|
|
59
|
+
nonFilteredItems
|
|
60
|
+
.filter((option) => !option.disabled)
|
|
61
|
+
.forEach((option) => (option.checked = hasDeselectedOptions));
|
|
62
|
+
const checkedItems = nonFilteredItems.filter((option) => option.checked).map((option) => option.value);
|
|
63
|
+
this.value = hasDeselectedOptions ? checkedItems : [];
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
this.handleKeyDown = (event) => {
|
|
67
|
+
var _a, _b, _c, _d;
|
|
68
|
+
const target = event.target;
|
|
69
|
+
const items = this.getItems();
|
|
70
|
+
const firstItem = items[0];
|
|
71
|
+
const lastItem = items[items.length - 1];
|
|
72
|
+
// Ignore key presses on tags
|
|
73
|
+
if (target.tagName.toLowerCase() === 'six-tag') {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
// Tabbing out of the control closes it
|
|
77
|
+
if (event.key === 'Tab') {
|
|
78
|
+
if (this.isOpen) {
|
|
79
|
+
(_a = this.dropdown) === null || _a === void 0 ? void 0 : _a.hide();
|
|
80
|
+
}
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
// Up/down opens the menu
|
|
84
|
+
if (['ArrowDown', 'ArrowUp'].includes(event.key)) {
|
|
85
|
+
event.preventDefault();
|
|
86
|
+
// Show the menu if it's not already open
|
|
87
|
+
if (!this.isOpen) {
|
|
88
|
+
(_b = this.dropdown) === null || _b === void 0 ? void 0 : _b.show();
|
|
89
|
+
}
|
|
90
|
+
// Focus on a menu item
|
|
91
|
+
if (event.key === 'ArrowDown' && firstItem) {
|
|
92
|
+
firstItem.setFocus();
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
if (event.key === 'ArrowUp' && lastItem) {
|
|
96
|
+
lastItem.setFocus();
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
// All other keys open the menu and initiate type to select
|
|
101
|
+
if (!this.isOpen) {
|
|
102
|
+
event.stopPropagation();
|
|
103
|
+
event.preventDefault();
|
|
104
|
+
(_c = this.dropdown) === null || _c === void 0 ? void 0 : _c.show();
|
|
105
|
+
(_d = this.menu) === null || _d === void 0 ? void 0 : _d.typeToSelect(event.key);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
this.handleLabelClick = () => {
|
|
109
|
+
var _a;
|
|
110
|
+
(_a = this.box) === null || _a === void 0 ? void 0 : _a.focus();
|
|
111
|
+
};
|
|
112
|
+
this.handleMenuSelect = (event) => {
|
|
113
|
+
const item = event.detail.item;
|
|
114
|
+
const getValue = () => {
|
|
115
|
+
if (this.multiple) {
|
|
116
|
+
return this.value.includes(item.value)
|
|
117
|
+
? this.value.filter((v) => v !== item.value)
|
|
118
|
+
: [...this.value, item.value];
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
return item.value;
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
this.value = getValue();
|
|
125
|
+
this.syncItemsFromValue();
|
|
126
|
+
};
|
|
127
|
+
this.handleMenuShow = (event) => {
|
|
128
|
+
var _a;
|
|
129
|
+
if (this.disabled) {
|
|
130
|
+
event.preventDefault();
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
this.resizeMenu();
|
|
134
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.host);
|
|
135
|
+
this.isOpen = true;
|
|
136
|
+
};
|
|
137
|
+
this.handleMenuHide = () => {
|
|
138
|
+
var _a;
|
|
139
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.unobserve(this.host);
|
|
140
|
+
this.isOpen = false;
|
|
141
|
+
};
|
|
142
|
+
this.handleSlotChange = () => {
|
|
143
|
+
this.hasHelpTextSlot = hasSlot(this.host, 'help-text');
|
|
144
|
+
this.hasLabelSlot = hasSlot(this.host, 'label');
|
|
145
|
+
this.syncItemsFromValue();
|
|
146
|
+
};
|
|
147
|
+
this.handleTagInteraction = (event) => {
|
|
148
|
+
// Don't toggle the menu when a tag's clear button is activated
|
|
149
|
+
const path = event.composedPath();
|
|
150
|
+
const clearButton = path.find((el) => {
|
|
151
|
+
if (el instanceof HTMLElement) {
|
|
152
|
+
const element = el;
|
|
153
|
+
return element.classList.contains('tag__clear');
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
if (clearButton) {
|
|
157
|
+
event.stopPropagation();
|
|
158
|
+
}
|
|
159
|
+
};
|
|
37
160
|
this.hasFocus = false;
|
|
38
161
|
this.hasHelpTextSlot = false;
|
|
39
|
-
this.hasErrorTextSlot = false;
|
|
40
162
|
this.hasLabelSlot = false;
|
|
41
163
|
this.isOpen = false;
|
|
42
164
|
this.displayLabel = '';
|
|
@@ -52,25 +174,24 @@ export class SixSelect {
|
|
|
52
174
|
this.hoist = false;
|
|
53
175
|
this.value = '';
|
|
54
176
|
this.pill = false;
|
|
55
|
-
this.label = '';
|
|
56
177
|
this.helpText = '';
|
|
57
|
-
this.errorText = '';
|
|
58
178
|
this.required = false;
|
|
59
179
|
this.clearable = false;
|
|
180
|
+
this.label = '';
|
|
181
|
+
this.errorText = '';
|
|
60
182
|
this.invalid = false;
|
|
61
183
|
this.line = false;
|
|
62
|
-
this.errorOnBlur = false;
|
|
63
184
|
this.filter = false;
|
|
64
185
|
this.asyncFilter = false;
|
|
65
186
|
this.autocomplete = false;
|
|
66
187
|
this.inputDebounce = DEFAULT_DEBOUNCE_FAST;
|
|
67
188
|
this.options = null;
|
|
68
189
|
this.virtualScroll = false;
|
|
69
|
-
this.defaultValue = undefined;
|
|
70
190
|
}
|
|
71
191
|
handleDisabledChange() {
|
|
192
|
+
var _a;
|
|
72
193
|
if (this.disabled && this.isOpen) {
|
|
73
|
-
this.dropdown.hide();
|
|
194
|
+
(_a = this.dropdown) === null || _a === void 0 ? void 0 : _a.hide();
|
|
74
195
|
}
|
|
75
196
|
}
|
|
76
197
|
handleLabelChange() {
|
|
@@ -82,89 +203,69 @@ export class SixSelect {
|
|
|
82
203
|
this.value = this.multiple ? value : value[0] || '';
|
|
83
204
|
this.syncItemsFromValue();
|
|
84
205
|
}
|
|
85
|
-
handleValueChange() {
|
|
86
|
-
this.
|
|
206
|
+
async handleValueChange() {
|
|
207
|
+
if (this.multiple && !Array.isArray(this.value)) {
|
|
208
|
+
this.value = [];
|
|
209
|
+
}
|
|
210
|
+
if (!this.multiple && typeof this.value !== 'string') {
|
|
211
|
+
this.value = '';
|
|
212
|
+
}
|
|
213
|
+
await this.syncItemsFromValue();
|
|
87
214
|
if (this.input) {
|
|
88
215
|
this.sixChange.emit({ value: this.value, isSelected: true });
|
|
89
216
|
}
|
|
90
217
|
}
|
|
91
218
|
connectedCallback() {
|
|
219
|
+
var _a;
|
|
92
220
|
if (this.virtualScroll && this.options === null) {
|
|
93
221
|
console.error('Options must be defined when using virtual scrolling');
|
|
94
222
|
}
|
|
95
|
-
|
|
96
|
-
this.
|
|
97
|
-
this.
|
|
98
|
-
this.
|
|
99
|
-
this.handleSelectAll = this.handleSelectAll.bind(this);
|
|
100
|
-
this.handleLabelClick = this.handleLabelClick.bind(this);
|
|
101
|
-
this.handleMenuHide = this.handleMenuHide.bind(this);
|
|
102
|
-
this.handleMenuShow = this.handleMenuShow.bind(this);
|
|
103
|
-
this.handleMenuSelect = this.handleMenuSelect.bind(this);
|
|
104
|
-
this.handleSlotChange = this.handleSlotChange.bind(this);
|
|
105
|
-
this.handleInvalid = this.handleInvalid.bind(this);
|
|
106
|
-
this.handleTagInteraction = this.handleTagInteraction.bind(this);
|
|
107
|
-
this.host.shadowRoot.addEventListener('slotchange', this.handleSlotChange);
|
|
223
|
+
(_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.addEventListener('slotchange', this.handleSlotChange);
|
|
224
|
+
this.eventListeners.forward('six-select-change', 'change', this.host);
|
|
225
|
+
this.eventListeners.forward('six-select-blur', 'blur', this.host);
|
|
226
|
+
this.eventListeners.forward('six-select-focus', 'focus', this.host);
|
|
108
227
|
}
|
|
109
228
|
componentWillLoad() {
|
|
110
229
|
this.handleSlotChange();
|
|
111
|
-
if (this.multiple && this.value) {
|
|
230
|
+
if (this.multiple && this.value != null) {
|
|
112
231
|
this.value = this.getValueAsArray();
|
|
113
232
|
}
|
|
114
233
|
}
|
|
115
234
|
componentDidLoad() {
|
|
235
|
+
if (this.input == null)
|
|
236
|
+
return;
|
|
237
|
+
const input = this.input;
|
|
116
238
|
this.resizeObserver = new ResizeObserver(() => this.resizeMenu());
|
|
117
239
|
// We need to do an initial sync after the component has rendered, so this will suppress the re-render warning
|
|
118
240
|
requestAnimationFrame(() => this.syncItemsFromValue());
|
|
119
|
-
this.eventListeners.add(
|
|
120
|
-
|
|
121
|
-
this.customErrorText = await this.input.getValidationMessage();
|
|
122
|
-
}
|
|
123
|
-
event.preventDefault();
|
|
124
|
-
});
|
|
125
|
-
this.eventListeners.add(this.input, 'six-input-input', debounce((event) => {
|
|
126
|
-
const enteredValue = this.input.value;
|
|
241
|
+
this.eventListeners.add(input, 'six-input-input', debounce((event) => {
|
|
242
|
+
const enteredValue = input.value;
|
|
127
243
|
this.clearValues();
|
|
128
244
|
this.sixChange.emit({ value: enteredValue, isSelected: false });
|
|
129
245
|
event.stopPropagation();
|
|
130
246
|
}, this.inputDebounce));
|
|
131
|
-
|
|
247
|
+
input.value = this.hasSelection() ? this.displayLabel : '';
|
|
132
248
|
}
|
|
133
249
|
disconnectedCallback() {
|
|
134
|
-
|
|
250
|
+
var _a;
|
|
251
|
+
(_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.removeEventListener('slotchange', this.handleSlotChange);
|
|
135
252
|
this.eventListeners.removeAll();
|
|
136
253
|
}
|
|
137
|
-
/**
|
|
138
|
-
async
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
async checkValidity() {
|
|
143
|
-
return this.input.isValid();
|
|
144
|
-
}
|
|
145
|
-
/** Sets a custom validation message. If `message` is not empty, the field will be considered invalid. */
|
|
146
|
-
async setCustomValidity(message) {
|
|
147
|
-
this.customErrorText = '';
|
|
148
|
-
this.customValidation = message !== '';
|
|
149
|
-
this.input.setCustomValidity(message);
|
|
150
|
-
this.invalid = !this.input.checkValidity();
|
|
151
|
-
}
|
|
152
|
-
/** Resets the formcontrol */
|
|
153
|
-
async reset() {
|
|
154
|
-
this.clearValues();
|
|
155
|
-
this.customErrorText = '';
|
|
156
|
-
this.customValidation = false;
|
|
157
|
-
this.input.setCustomValidity('');
|
|
158
|
-
this.invalid = false;
|
|
254
|
+
/** Sets focus on the select. */
|
|
255
|
+
async setFocus(options) {
|
|
256
|
+
var _a;
|
|
257
|
+
this.hasFocus = true;
|
|
258
|
+
(_a = this.box) === null || _a === void 0 ? void 0 : _a.focus(options);
|
|
159
259
|
}
|
|
160
260
|
getItemLabel(item) {
|
|
161
|
-
|
|
162
|
-
|
|
261
|
+
var _a, _b;
|
|
262
|
+
const slot = (_a = item.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot:not([name])');
|
|
263
|
+
if (slot != null) {
|
|
163
264
|
return getTextContent(slot);
|
|
164
265
|
}
|
|
165
266
|
else {
|
|
166
267
|
// bugfix/COMSLI-203-six-select-value-is-not-updated-if-the-slot-is-changed
|
|
167
|
-
return item.textContent;
|
|
268
|
+
return (_b = item.textContent) !== null && _b !== void 0 ? _b : '';
|
|
168
269
|
}
|
|
169
270
|
}
|
|
170
271
|
getItems() {
|
|
@@ -176,154 +277,26 @@ export class SixSelect {
|
|
|
176
277
|
hasMenuItems() {
|
|
177
278
|
return this.getItems().length > 0;
|
|
178
279
|
}
|
|
179
|
-
|
|
180
|
-
const values = this.
|
|
280
|
+
getValueAsArray() {
|
|
281
|
+
const values = Array.isArray(this.value) ? this.value : [this.value];
|
|
181
282
|
// enforce that the values are converted to 'string' before the value is compared
|
|
182
283
|
return values.map(String);
|
|
183
284
|
}
|
|
184
|
-
getValueAsArray() {
|
|
185
|
-
return Array.isArray(this.value) ? this.value : [this.value];
|
|
186
|
-
}
|
|
187
|
-
handleBlur() {
|
|
188
|
-
this.hasFocus = false;
|
|
189
|
-
this.sixBlur.emit();
|
|
190
|
-
}
|
|
191
|
-
handleFocus() {
|
|
192
|
-
this.hasFocus = true;
|
|
193
|
-
this.sixFocus.emit();
|
|
194
|
-
}
|
|
195
|
-
handleInvalid() {
|
|
196
|
-
this.invalid = true;
|
|
197
|
-
}
|
|
198
|
-
handleClearClick(event) {
|
|
199
|
-
event.stopPropagation();
|
|
200
|
-
this.clearValues();
|
|
201
|
-
}
|
|
202
285
|
clearValues() {
|
|
203
|
-
|
|
204
|
-
this.value = (_a = this.defaultValue) !== null && _a !== void 0 ? _a : (this.multiple ? [] : '');
|
|
286
|
+
this.value = this.multiple ? [] : '';
|
|
205
287
|
this.syncItemsFromValue();
|
|
206
288
|
}
|
|
207
|
-
handleSelectAll(event) {
|
|
208
|
-
const nonFilteredItems = this.getItems().filter((item) => item.style.display !== 'none');
|
|
209
|
-
const keyName = event.key;
|
|
210
|
-
const keyCode = event.code;
|
|
211
|
-
if (keyName === 'Control') {
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
if (this.isOpen && this.multiple && keyCode === 'KeyA' && event.ctrlKey) {
|
|
215
|
-
event.preventDefault();
|
|
216
|
-
const hasDeselectedOptions = nonFilteredItems.some((opt) => !opt.disabled && !opt.checked);
|
|
217
|
-
nonFilteredItems
|
|
218
|
-
.filter((option) => !option.disabled)
|
|
219
|
-
.forEach((option) => (option.checked = hasDeselectedOptions));
|
|
220
|
-
const checkedItems = nonFilteredItems.filter((option) => option.checked).map((option) => option.value);
|
|
221
|
-
this.value = hasDeselectedOptions ? checkedItems : [];
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
handleKeyDown(event) {
|
|
225
|
-
const target = event.target;
|
|
226
|
-
const items = this.getItems();
|
|
227
|
-
const firstItem = items[0];
|
|
228
|
-
const lastItem = items[items.length - 1];
|
|
229
|
-
// Ignore key presses on tags
|
|
230
|
-
if (target.tagName.toLowerCase() === 'six-tag') {
|
|
231
|
-
return;
|
|
232
|
-
}
|
|
233
|
-
// Tabbing out of the control closes it
|
|
234
|
-
if (event.key === 'Tab') {
|
|
235
|
-
if (this.isOpen) {
|
|
236
|
-
this.dropdown.hide();
|
|
237
|
-
}
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
// Up/down opens the menu
|
|
241
|
-
if (['ArrowDown', 'ArrowUp'].includes(event.key)) {
|
|
242
|
-
event.preventDefault();
|
|
243
|
-
// Show the menu if it's not already open
|
|
244
|
-
if (!this.isOpen) {
|
|
245
|
-
this.dropdown.show();
|
|
246
|
-
}
|
|
247
|
-
// Focus on a menu item
|
|
248
|
-
if (event.key === 'ArrowDown' && firstItem) {
|
|
249
|
-
firstItem.setFocus();
|
|
250
|
-
return;
|
|
251
|
-
}
|
|
252
|
-
if (event.key === 'ArrowUp' && lastItem) {
|
|
253
|
-
lastItem.setFocus();
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
// All other keys open the menu and initiate type to select
|
|
258
|
-
if (!this.isOpen) {
|
|
259
|
-
event.stopPropagation();
|
|
260
|
-
event.preventDefault();
|
|
261
|
-
this.dropdown.show();
|
|
262
|
-
this.menu.typeToSelect(event.key);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
handleLabelClick() {
|
|
266
|
-
this.box.focus();
|
|
267
|
-
}
|
|
268
|
-
handleMenuSelect(event) {
|
|
269
|
-
const item = event.detail.item;
|
|
270
|
-
if (this.multiple) {
|
|
271
|
-
if (this.value == null || this.value === '') {
|
|
272
|
-
this.value = [];
|
|
273
|
-
}
|
|
274
|
-
else if (!Array.isArray(this.value)) {
|
|
275
|
-
this.value = [this.value];
|
|
276
|
-
}
|
|
277
|
-
this.value = this.value.includes(item.value)
|
|
278
|
-
? this.value.filter((v) => v !== item.value)
|
|
279
|
-
: [...this.value, item.value];
|
|
280
|
-
}
|
|
281
|
-
else {
|
|
282
|
-
this.value = item.value;
|
|
283
|
-
}
|
|
284
|
-
this.syncItemsFromValue();
|
|
285
|
-
}
|
|
286
|
-
handleMenuShow(event) {
|
|
287
|
-
if (this.disabled) {
|
|
288
|
-
event.preventDefault();
|
|
289
|
-
return;
|
|
290
|
-
}
|
|
291
|
-
this.resizeMenu();
|
|
292
|
-
this.resizeObserver.observe(this.host);
|
|
293
|
-
this.isOpen = true;
|
|
294
|
-
}
|
|
295
|
-
handleMenuHide() {
|
|
296
|
-
this.resizeObserver.unobserve(this.host);
|
|
297
|
-
this.isOpen = false;
|
|
298
|
-
}
|
|
299
|
-
handleSlotChange() {
|
|
300
|
-
this.hasHelpTextSlot = hasSlot(this.host, 'help-text');
|
|
301
|
-
this.hasErrorTextSlot = hasSlot(this.host, 'error-text');
|
|
302
|
-
this.hasLabelSlot = hasSlot(this.host, 'label');
|
|
303
|
-
this.syncItemsFromValue();
|
|
304
|
-
}
|
|
305
|
-
handleTagInteraction(event) {
|
|
306
|
-
// Don't toggle the menu when a tag's clear button is activated
|
|
307
|
-
const path = event.composedPath();
|
|
308
|
-
const clearButton = path.find((el) => {
|
|
309
|
-
if (el instanceof HTMLElement) {
|
|
310
|
-
const element = el;
|
|
311
|
-
return element.classList.contains('tag__clear');
|
|
312
|
-
}
|
|
313
|
-
});
|
|
314
|
-
if (clearButton) {
|
|
315
|
-
event.stopPropagation();
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
289
|
resizeMenu() {
|
|
290
|
+
if (this.menu == null || this.box == null)
|
|
291
|
+
return;
|
|
319
292
|
this.menu.style.minWidth = `${this.box.clientWidth}px`;
|
|
320
293
|
if (this.dropdown) {
|
|
321
294
|
this.dropdown.reposition();
|
|
322
295
|
}
|
|
323
296
|
}
|
|
324
|
-
syncItemsFromValue() {
|
|
297
|
+
async syncItemsFromValue() {
|
|
325
298
|
const items = this.getItems();
|
|
326
|
-
const value = this.
|
|
299
|
+
const value = this.getValueAsArray();
|
|
327
300
|
// Sync checked states
|
|
328
301
|
items.forEach((item) => (item.checked = value.includes(item.value)));
|
|
329
302
|
// Sync display label
|
|
@@ -350,18 +323,11 @@ export class SixSelect {
|
|
|
350
323
|
this.displayLabel = this.extractLabelForSelectedItem(value, items);
|
|
351
324
|
this.displayTags = [];
|
|
352
325
|
}
|
|
353
|
-
|
|
354
|
-
if (hasSelection) {
|
|
326
|
+
if (!isValueEmpty(this.value)) {
|
|
355
327
|
this.touched = true;
|
|
356
328
|
}
|
|
357
|
-
if (this.
|
|
358
|
-
|
|
359
|
-
this.input.value = hasSelection ? this.displayLabel : '';
|
|
360
|
-
}
|
|
361
|
-
else if (hasSelection) {
|
|
362
|
-
this.input.value = Array.isArray(this.value) ? this.value.join(',') : this.value;
|
|
363
|
-
}
|
|
364
|
-
this.invalid = !this.input.checkValidity();
|
|
329
|
+
if (this.touched && this.input != null) {
|
|
330
|
+
this.input.value = Array.isArray(this.value) ? this.value.join(',') : this.value;
|
|
365
331
|
}
|
|
366
332
|
}
|
|
367
333
|
extractLabelForSelectedItem(value, items) {
|
|
@@ -380,18 +346,15 @@ export class SixSelect {
|
|
|
380
346
|
const checkedItems = items.filter((item) => item.checked);
|
|
381
347
|
const checkedValues = checkedItems.map((item) => item.value);
|
|
382
348
|
this.value = this.multiple
|
|
383
|
-
? this.
|
|
349
|
+
? this.getValueAsArray().filter((val) => checkedValues.includes(val))
|
|
384
350
|
: checkedValues.length > 0
|
|
385
351
|
? checkedValues[0]
|
|
386
352
|
: '';
|
|
387
353
|
}
|
|
388
|
-
displayError() {
|
|
389
|
-
return this.invalid && (!this.errorOnBlur || (!this.hasFocus && !this.isOpen));
|
|
390
|
-
}
|
|
391
354
|
render() {
|
|
392
355
|
var _a;
|
|
393
356
|
const hasSelection = this.hasSelection();
|
|
394
|
-
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.
|
|
357
|
+
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.errorText, size: this.size, onLabelClick: this.handleLabelClick, disabled: this.disabled, required: this.required, displayError: this.invalid }, h("six-dropdown", { part: "base", ref: (el) => (this.dropdown = el), hoist: this.hoist, closeOnSelect: !this.multiple, containingElement: this.host, disableHideOnEnterAndSpace: this.autocomplete, class: {
|
|
395
358
|
select: true,
|
|
396
359
|
'select--open': this.isOpen,
|
|
397
360
|
'select--empty': ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) === 0,
|
|
@@ -410,20 +373,17 @@ export class SixSelect {
|
|
|
410
373
|
select__box: true,
|
|
411
374
|
'select__box--line': this.line,
|
|
412
375
|
'select__box--autocomplete': this.autocomplete,
|
|
413
|
-
}, 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.input = el), class: {
|
|
376
|
+
}, 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: {
|
|
414
377
|
select__input: true,
|
|
415
378
|
'select__hidden-select': !this.autocomplete,
|
|
416
|
-
}, "aria-hidden": "true", required: this.required,
|
|
379
|
+
}, "aria-hidden": "true", required: this.required, 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: {
|
|
417
380
|
select__menu: true,
|
|
418
381
|
'select__menu--filtered': this.filter || this.asyncFilter,
|
|
419
382
|
'select__menu--hidden': !this.hasMenuItems(),
|
|
420
383
|
}, "onSix-menu-item-selected": this.handleMenuSelect, items: this.options, virtualScroll: this.virtualScroll, "remove-box-shadow": true }, h("slot", { onSlotchange: this.handleSlotChange })))));
|
|
421
384
|
}
|
|
422
385
|
hasSelection() {
|
|
423
|
-
|
|
424
|
-
return Array.isArray(this.value) ? this.value.length > 0 : false;
|
|
425
|
-
}
|
|
426
|
-
return this.value !== '';
|
|
386
|
+
return this.multiple ? this.value.length > 0 : this.value !== '';
|
|
427
387
|
}
|
|
428
388
|
static get is() { return "six-select"; }
|
|
429
389
|
static get encapsulation() { return "shadow"; }
|
|
@@ -534,11 +494,11 @@ export class SixSelect {
|
|
|
534
494
|
"mutable": false,
|
|
535
495
|
"complexType": {
|
|
536
496
|
"original": "string",
|
|
537
|
-
"resolved": "string",
|
|
497
|
+
"resolved": "string | undefined",
|
|
538
498
|
"references": {}
|
|
539
499
|
},
|
|
540
500
|
"required": false,
|
|
541
|
-
"optional":
|
|
501
|
+
"optional": true,
|
|
542
502
|
"docs": {
|
|
543
503
|
"tags": [],
|
|
544
504
|
"text": "The filter's placeholder text."
|
|
@@ -636,24 +596,6 @@ export class SixSelect {
|
|
|
636
596
|
"reflect": false,
|
|
637
597
|
"defaultValue": "false"
|
|
638
598
|
},
|
|
639
|
-
"label": {
|
|
640
|
-
"type": "string",
|
|
641
|
-
"mutable": false,
|
|
642
|
-
"complexType": {
|
|
643
|
-
"original": "string",
|
|
644
|
-
"resolved": "string",
|
|
645
|
-
"references": {}
|
|
646
|
-
},
|
|
647
|
-
"required": false,
|
|
648
|
-
"optional": false,
|
|
649
|
-
"docs": {
|
|
650
|
-
"tags": [],
|
|
651
|
-
"text": "The select's label. Alternatively, you can use the label slot."
|
|
652
|
-
},
|
|
653
|
-
"attribute": "label",
|
|
654
|
-
"reflect": false,
|
|
655
|
-
"defaultValue": "''"
|
|
656
|
-
},
|
|
657
599
|
"helpText": {
|
|
658
600
|
"type": "string",
|
|
659
601
|
"mutable": false,
|
|
@@ -672,25 +614,25 @@ export class SixSelect {
|
|
|
672
614
|
"reflect": false,
|
|
673
615
|
"defaultValue": "''"
|
|
674
616
|
},
|
|
675
|
-
"
|
|
676
|
-
"type": "
|
|
617
|
+
"required": {
|
|
618
|
+
"type": "boolean",
|
|
677
619
|
"mutable": false,
|
|
678
620
|
"complexType": {
|
|
679
|
-
"original": "
|
|
680
|
-
"resolved": "
|
|
621
|
+
"original": "boolean",
|
|
622
|
+
"resolved": "boolean",
|
|
681
623
|
"references": {}
|
|
682
624
|
},
|
|
683
625
|
"required": false,
|
|
684
626
|
"optional": false,
|
|
685
627
|
"docs": {
|
|
686
628
|
"tags": [],
|
|
687
|
-
"text": "
|
|
629
|
+
"text": "Set to true to show an asterisk beneath the label."
|
|
688
630
|
},
|
|
689
|
-
"attribute": "
|
|
631
|
+
"attribute": "required",
|
|
690
632
|
"reflect": false,
|
|
691
|
-
"defaultValue": "
|
|
633
|
+
"defaultValue": "false"
|
|
692
634
|
},
|
|
693
|
-
"
|
|
635
|
+
"clearable": {
|
|
694
636
|
"type": "boolean",
|
|
695
637
|
"mutable": false,
|
|
696
638
|
"complexType": {
|
|
@@ -702,49 +644,49 @@ export class SixSelect {
|
|
|
702
644
|
"optional": false,
|
|
703
645
|
"docs": {
|
|
704
646
|
"tags": [],
|
|
705
|
-
"text": "
|
|
647
|
+
"text": "Set to true to add a clear button when the select is populated."
|
|
706
648
|
},
|
|
707
|
-
"attribute": "
|
|
649
|
+
"attribute": "clearable",
|
|
708
650
|
"reflect": false,
|
|
709
651
|
"defaultValue": "false"
|
|
710
652
|
},
|
|
711
|
-
"
|
|
712
|
-
"type": "
|
|
653
|
+
"label": {
|
|
654
|
+
"type": "string",
|
|
713
655
|
"mutable": false,
|
|
714
656
|
"complexType": {
|
|
715
|
-
"original": "
|
|
716
|
-
"resolved": "
|
|
657
|
+
"original": "string",
|
|
658
|
+
"resolved": "string",
|
|
717
659
|
"references": {}
|
|
718
660
|
},
|
|
719
661
|
"required": false,
|
|
720
662
|
"optional": false,
|
|
721
663
|
"docs": {
|
|
722
664
|
"tags": [],
|
|
723
|
-
"text": "
|
|
665
|
+
"text": "The label text."
|
|
724
666
|
},
|
|
725
|
-
"attribute": "
|
|
667
|
+
"attribute": "label",
|
|
726
668
|
"reflect": false,
|
|
727
|
-
"defaultValue": "
|
|
669
|
+
"defaultValue": "''"
|
|
728
670
|
},
|
|
729
|
-
"
|
|
730
|
-
"type": "
|
|
731
|
-
"mutable":
|
|
671
|
+
"errorText": {
|
|
672
|
+
"type": "string",
|
|
673
|
+
"mutable": false,
|
|
732
674
|
"complexType": {
|
|
733
|
-
"original": "
|
|
734
|
-
"resolved": "
|
|
675
|
+
"original": "string",
|
|
676
|
+
"resolved": "string",
|
|
735
677
|
"references": {}
|
|
736
678
|
},
|
|
737
679
|
"required": false,
|
|
738
680
|
"optional": false,
|
|
739
681
|
"docs": {
|
|
740
682
|
"tags": [],
|
|
741
|
-
"text": "
|
|
683
|
+
"text": "The error message shown, if `invalid` is set to true."
|
|
742
684
|
},
|
|
743
|
-
"attribute": "
|
|
685
|
+
"attribute": "error-text",
|
|
744
686
|
"reflect": false,
|
|
745
|
-
"defaultValue": "
|
|
687
|
+
"defaultValue": "''"
|
|
746
688
|
},
|
|
747
|
-
"
|
|
689
|
+
"invalid": {
|
|
748
690
|
"type": "boolean",
|
|
749
691
|
"mutable": false,
|
|
750
692
|
"complexType": {
|
|
@@ -756,13 +698,13 @@ export class SixSelect {
|
|
|
756
698
|
"optional": false,
|
|
757
699
|
"docs": {
|
|
758
700
|
"tags": [],
|
|
759
|
-
"text": "
|
|
701
|
+
"text": "If this property is set to true and an error message is provided by `errorText`, the error message is displayed."
|
|
760
702
|
},
|
|
761
|
-
"attribute": "
|
|
762
|
-
"reflect":
|
|
703
|
+
"attribute": "invalid",
|
|
704
|
+
"reflect": true,
|
|
763
705
|
"defaultValue": "false"
|
|
764
706
|
},
|
|
765
|
-
"
|
|
707
|
+
"line": {
|
|
766
708
|
"type": "boolean",
|
|
767
709
|
"mutable": false,
|
|
768
710
|
"complexType": {
|
|
@@ -774,9 +716,9 @@ export class SixSelect {
|
|
|
774
716
|
"optional": false,
|
|
775
717
|
"docs": {
|
|
776
718
|
"tags": [],
|
|
777
|
-
"text": "Set to
|
|
719
|
+
"text": "Set to render as line"
|
|
778
720
|
},
|
|
779
|
-
"attribute": "
|
|
721
|
+
"attribute": "line",
|
|
780
722
|
"reflect": false,
|
|
781
723
|
"defaultValue": "false"
|
|
782
724
|
},
|
|
@@ -857,7 +799,7 @@ export class SixSelect {
|
|
|
857
799
|
"mutable": false,
|
|
858
800
|
"complexType": {
|
|
859
801
|
"original": "SixMenuItemData[] | null",
|
|
860
|
-
"resolved": "SixMenuItemData[]",
|
|
802
|
+
"resolved": "SixMenuItemData[] | null",
|
|
861
803
|
"references": {
|
|
862
804
|
"SixMenuItemData": {
|
|
863
805
|
"location": "import",
|
|
@@ -890,23 +832,6 @@ export class SixSelect {
|
|
|
890
832
|
"attribute": "virtual-scroll",
|
|
891
833
|
"reflect": false,
|
|
892
834
|
"defaultValue": "false"
|
|
893
|
-
},
|
|
894
|
-
"defaultValue": {
|
|
895
|
-
"type": "string",
|
|
896
|
-
"mutable": false,
|
|
897
|
-
"complexType": {
|
|
898
|
-
"original": "string | string[] | undefined",
|
|
899
|
-
"resolved": "string | string[]",
|
|
900
|
-
"references": {}
|
|
901
|
-
},
|
|
902
|
-
"required": false,
|
|
903
|
-
"optional": false,
|
|
904
|
-
"docs": {
|
|
905
|
-
"tags": [],
|
|
906
|
-
"text": "The default value the select will be reverted to when reset is executed"
|
|
907
|
-
},
|
|
908
|
-
"attribute": "default-value",
|
|
909
|
-
"reflect": false
|
|
910
835
|
}
|
|
911
836
|
};
|
|
912
837
|
}
|
|
@@ -914,7 +839,6 @@ export class SixSelect {
|
|
|
914
839
|
return {
|
|
915
840
|
"hasFocus": {},
|
|
916
841
|
"hasHelpTextSlot": {},
|
|
917
|
-
"hasErrorTextSlot": {},
|
|
918
842
|
"hasLabelSlot": {},
|
|
919
843
|
"isOpen": {},
|
|
920
844
|
"displayLabel": {},
|
|
@@ -986,41 +910,9 @@ export class SixSelect {
|
|
|
986
910
|
}
|
|
987
911
|
static get methods() {
|
|
988
912
|
return {
|
|
989
|
-
"
|
|
913
|
+
"setFocus": {
|
|
990
914
|
"complexType": {
|
|
991
|
-
"signature": "() => Promise<
|
|
992
|
-
"parameters": [],
|
|
993
|
-
"references": {
|
|
994
|
-
"Promise": {
|
|
995
|
-
"location": "global"
|
|
996
|
-
}
|
|
997
|
-
},
|
|
998
|
-
"return": "Promise<boolean>"
|
|
999
|
-
},
|
|
1000
|
-
"docs": {
|
|
1001
|
-
"text": "Checks for validity and shows the browser's validation message if the control is invalid.",
|
|
1002
|
-
"tags": []
|
|
1003
|
-
}
|
|
1004
|
-
},
|
|
1005
|
-
"checkValidity": {
|
|
1006
|
-
"complexType": {
|
|
1007
|
-
"signature": "() => Promise<boolean>",
|
|
1008
|
-
"parameters": [],
|
|
1009
|
-
"references": {
|
|
1010
|
-
"Promise": {
|
|
1011
|
-
"location": "global"
|
|
1012
|
-
}
|
|
1013
|
-
},
|
|
1014
|
-
"return": "Promise<boolean>"
|
|
1015
|
-
},
|
|
1016
|
-
"docs": {
|
|
1017
|
-
"text": "Checks for validity.",
|
|
1018
|
-
"tags": []
|
|
1019
|
-
}
|
|
1020
|
-
},
|
|
1021
|
-
"setCustomValidity": {
|
|
1022
|
-
"complexType": {
|
|
1023
|
-
"signature": "(message: string) => Promise<void>",
|
|
915
|
+
"signature": "(options?: FocusOptions) => Promise<void>",
|
|
1024
916
|
"parameters": [{
|
|
1025
917
|
"tags": [],
|
|
1026
918
|
"text": ""
|
|
@@ -1028,28 +920,15 @@ export class SixSelect {
|
|
|
1028
920
|
"references": {
|
|
1029
921
|
"Promise": {
|
|
1030
922
|
"location": "global"
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
"return": "Promise<void>"
|
|
1034
|
-
},
|
|
1035
|
-
"docs": {
|
|
1036
|
-
"text": "Sets a custom validation message. If `message` is not empty, the field will be considered invalid.",
|
|
1037
|
-
"tags": []
|
|
1038
|
-
}
|
|
1039
|
-
},
|
|
1040
|
-
"reset": {
|
|
1041
|
-
"complexType": {
|
|
1042
|
-
"signature": "() => Promise<void>",
|
|
1043
|
-
"parameters": [],
|
|
1044
|
-
"references": {
|
|
1045
|
-
"Promise": {
|
|
923
|
+
},
|
|
924
|
+
"FocusOptions": {
|
|
1046
925
|
"location": "global"
|
|
1047
926
|
}
|
|
1048
927
|
},
|
|
1049
928
|
"return": "Promise<void>"
|
|
1050
929
|
},
|
|
1051
930
|
"docs": {
|
|
1052
|
-
"text": "
|
|
931
|
+
"text": "Sets focus on the select.",
|
|
1053
932
|
"tags": []
|
|
1054
933
|
}
|
|
1055
934
|
}
|