@six-group/ui-library 0.0.0-insider.a358260 → 0.0.0-insider.cd0cd0d
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 +9 -47
- 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 +28 -87
- 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 +17 -23
- package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/six-range.cjs.entry.js +6 -44
- 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 +129 -222
- 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 +27 -76
- 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 +20 -128
- 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 +77 -274
- 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 +21 -76
- package/dist/collection/components/six-radio/six-radio.js.map +1 -1
- package/dist/collection/components/six-range/six-range.js +27 -119
- 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 +165 -294
- 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.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 +72 -207
- 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 +7 -50
- 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 +30 -98
- 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 +19 -28
- package/dist/components/six-radio.js.map +1 -1
- package/dist/components/six-range.js +8 -50
- 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 +129 -228
- 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 +29 -84
- 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 +494 -891
- 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 +9 -47
- 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 +28 -87
- 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 +17 -23
- package/dist/esm/six-radio.entry.js.map +1 -1
- package/dist/esm/six-range.entry.js +6 -44
- 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 +129 -222
- 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 +27 -76
- 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 +5 -17
- 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 +9 -35
- 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 +5 -10
- package/dist/types/components/six-range/six-range.d.ts +6 -21
- 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 +19 -31
- 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 +9 -28
- 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 +190 -417
- 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-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-3c635d0a.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-18e9f8b8.entry.js +2 -0
- package/dist/ui-library/p-18e9f8b8.entry.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-a49ae60a.entry.js +2 -0
- package/dist/ui-library/p-a49ae60a.entry.js.map +1 -0
- 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-97cc839c.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 +2 -2
- 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-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-394a2a12.entry.js +0 -2
- package/dist/ui-library/p-394a2a12.entry.js.map +0 -1
- package/dist/ui-library/p-3c635d0a.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-5a25d6fb.entry.js +0 -2
- package/dist/ui-library/p-5a25d6fb.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-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-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-f604e067.entry.js +0 -2
- package/dist/ui-library/p-f604e067.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,7 +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 {
|
|
6
|
+
import { isValueEmpty } from './util';
|
|
7
7
|
let id = 0;
|
|
8
8
|
/**
|
|
9
9
|
* @since 1.0
|
|
@@ -33,8 +33,6 @@ export class SixSelect {
|
|
|
33
33
|
this.helpTextId = `select-help-text-${id}`;
|
|
34
34
|
this.errorTextId = `select-error-text-${id}`;
|
|
35
35
|
this.touched = false;
|
|
36
|
-
this.customErrorText = '';
|
|
37
|
-
this.customValidation = false;
|
|
38
36
|
this.eventListeners = new EventListeners();
|
|
39
37
|
this.handleBlur = () => {
|
|
40
38
|
this.hasFocus = false;
|
|
@@ -44,9 +42,6 @@ export class SixSelect {
|
|
|
44
42
|
this.hasFocus = true;
|
|
45
43
|
this.sixFocus.emit();
|
|
46
44
|
};
|
|
47
|
-
this.handleInvalid = () => {
|
|
48
|
-
this.invalid = true;
|
|
49
|
-
};
|
|
50
45
|
this.handleClearClick = (event) => {
|
|
51
46
|
event.stopPropagation();
|
|
52
47
|
this.clearValues();
|
|
@@ -68,8 +63,8 @@ export class SixSelect {
|
|
|
68
63
|
this.value = hasDeselectedOptions ? checkedItems : [];
|
|
69
64
|
}
|
|
70
65
|
};
|
|
71
|
-
this.handleKeyDown =
|
|
72
|
-
var _a;
|
|
66
|
+
this.handleKeyDown = (event) => {
|
|
67
|
+
var _a, _b, _c, _d;
|
|
73
68
|
const target = event.target;
|
|
74
69
|
const items = this.getItems();
|
|
75
70
|
const firstItem = items[0];
|
|
@@ -80,8 +75,8 @@ export class SixSelect {
|
|
|
80
75
|
}
|
|
81
76
|
// Tabbing out of the control closes it
|
|
82
77
|
if (event.key === 'Tab') {
|
|
83
|
-
if (this.isOpen
|
|
84
|
-
|
|
78
|
+
if (this.isOpen) {
|
|
79
|
+
(_a = this.dropdown) === null || _a === void 0 ? void 0 : _a.hide();
|
|
85
80
|
}
|
|
86
81
|
return;
|
|
87
82
|
}
|
|
@@ -89,29 +84,46 @@ export class SixSelect {
|
|
|
89
84
|
if (['ArrowDown', 'ArrowUp'].includes(event.key)) {
|
|
90
85
|
event.preventDefault();
|
|
91
86
|
// Show the menu if it's not already open
|
|
92
|
-
if (!this.isOpen
|
|
93
|
-
|
|
87
|
+
if (!this.isOpen) {
|
|
88
|
+
(_b = this.dropdown) === null || _b === void 0 ? void 0 : _b.show();
|
|
94
89
|
}
|
|
95
90
|
// Focus on a menu item
|
|
96
91
|
if (event.key === 'ArrowDown' && firstItem) {
|
|
97
92
|
firstItem.setFocus();
|
|
93
|
+
return;
|
|
98
94
|
}
|
|
99
|
-
|
|
95
|
+
if (event.key === 'ArrowUp' && lastItem) {
|
|
100
96
|
lastItem.setFocus();
|
|
97
|
+
return;
|
|
101
98
|
}
|
|
102
99
|
}
|
|
103
100
|
// All other keys open the menu and initiate type to select
|
|
104
|
-
if (!this.isOpen
|
|
101
|
+
if (!this.isOpen) {
|
|
105
102
|
event.stopPropagation();
|
|
106
103
|
event.preventDefault();
|
|
107
|
-
|
|
108
|
-
|
|
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);
|
|
109
106
|
}
|
|
110
107
|
};
|
|
111
108
|
this.handleLabelClick = () => {
|
|
112
109
|
var _a;
|
|
113
110
|
(_a = this.box) === null || _a === void 0 ? void 0 : _a.focus();
|
|
114
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
|
+
};
|
|
115
127
|
this.handleMenuShow = (event) => {
|
|
116
128
|
var _a;
|
|
117
129
|
if (this.disabled) {
|
|
@@ -129,9 +141,8 @@ export class SixSelect {
|
|
|
129
141
|
};
|
|
130
142
|
this.handleSlotChange = () => {
|
|
131
143
|
this.hasHelpTextSlot = hasSlot(this.host, 'help-text');
|
|
132
|
-
this.hasErrorTextSlot = hasSlot(this.host, 'error-text');
|
|
133
144
|
this.hasLabelSlot = hasSlot(this.host, 'label');
|
|
134
|
-
this.
|
|
145
|
+
this.syncItemsFromValue();
|
|
135
146
|
};
|
|
136
147
|
this.handleTagInteraction = (event) => {
|
|
137
148
|
// Don't toggle the menu when a tag's clear button is activated
|
|
@@ -148,7 +159,6 @@ export class SixSelect {
|
|
|
148
159
|
};
|
|
149
160
|
this.hasFocus = false;
|
|
150
161
|
this.hasHelpTextSlot = false;
|
|
151
|
-
this.hasErrorTextSlot = false;
|
|
152
162
|
this.hasLabelSlot = false;
|
|
153
163
|
this.isOpen = false;
|
|
154
164
|
this.displayLabel = '';
|
|
@@ -164,111 +174,45 @@ export class SixSelect {
|
|
|
164
174
|
this.hoist = false;
|
|
165
175
|
this.value = '';
|
|
166
176
|
this.pill = false;
|
|
167
|
-
this.label = '';
|
|
168
177
|
this.helpText = '';
|
|
169
|
-
this.errorText = '';
|
|
170
178
|
this.required = false;
|
|
171
179
|
this.clearable = false;
|
|
180
|
+
this.label = '';
|
|
181
|
+
this.errorText = '';
|
|
172
182
|
this.invalid = false;
|
|
173
183
|
this.line = false;
|
|
174
|
-
this.errorOnBlur = false;
|
|
175
184
|
this.filter = false;
|
|
176
185
|
this.asyncFilter = false;
|
|
177
186
|
this.autocomplete = false;
|
|
178
187
|
this.inputDebounce = DEFAULT_DEBOUNCE_FAST;
|
|
179
188
|
this.options = null;
|
|
180
189
|
this.virtualScroll = false;
|
|
181
|
-
this.defaultValue = undefined;
|
|
182
190
|
}
|
|
183
191
|
handleDisabledChange() {
|
|
184
|
-
|
|
185
|
-
|
|
192
|
+
var _a;
|
|
193
|
+
if (this.disabled && this.isOpen) {
|
|
194
|
+
(_a = this.dropdown) === null || _a === void 0 ? void 0 : _a.hide();
|
|
186
195
|
}
|
|
187
196
|
}
|
|
188
197
|
handleLabelChange() {
|
|
189
198
|
this.handleSlotChange();
|
|
190
199
|
}
|
|
191
200
|
handleMultipleChange() {
|
|
192
|
-
this.
|
|
201
|
+
// Cast to array | string based on `this.multiple`
|
|
202
|
+
const value = this.getValueAsArray();
|
|
203
|
+
this.value = this.multiple ? value : value[0] || '';
|
|
204
|
+
this.syncItemsFromValue();
|
|
193
205
|
}
|
|
194
|
-
handleValueChange(
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
// normalize invalid values. This will re-trigger this watch handler
|
|
198
|
-
if (!isValidValue(newValue, this.multiple, items)) {
|
|
199
|
-
this.value = getValue(newValue, this.multiple, items);
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
// avoid re-triggering if old and new values are equal. Needed because
|
|
203
|
-
// watch does a shallow comparison only.
|
|
204
|
-
if (valueEquals(getValue(oldValue, this.multiple, items), getValue(newValue, this.multiple, items))) {
|
|
205
|
-
return;
|
|
206
|
+
async handleValueChange() {
|
|
207
|
+
if (this.multiple && !Array.isArray(this.value)) {
|
|
208
|
+
this.value = [];
|
|
206
209
|
}
|
|
207
|
-
this.
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
update() {
|
|
211
|
-
var _a;
|
|
212
|
-
const items = this.getItems();
|
|
213
|
-
this.value = getValue(this.value, this.multiple, (_a = this.options) !== null && _a !== void 0 ? _a : items);
|
|
214
|
-
if (!Array.isArray(this.value)) {
|
|
215
|
-
// Sync checked states
|
|
216
|
-
items.forEach((item) => (item.checked = false));
|
|
217
|
-
const item = items.find((item) => this.value.includes(item.value));
|
|
218
|
-
if (item != null) {
|
|
219
|
-
item.checked = true;
|
|
220
|
-
}
|
|
221
|
-
// Sync input element content
|
|
222
|
-
this.displayLabel = this.extractLabelForSelectedItem([this.value], items);
|
|
223
|
-
this.displayTags = [];
|
|
224
|
-
const hasSelection = !isValueEmpty(this.value);
|
|
225
|
-
if (hasSelection) {
|
|
226
|
-
this.touched = true;
|
|
227
|
-
}
|
|
228
|
-
if (this.inputElement && this.touched) {
|
|
229
|
-
if (!this.autocomplete) {
|
|
230
|
-
this.inputElement.value = hasSelection ? this.displayLabel : '';
|
|
231
|
-
}
|
|
232
|
-
else if (hasSelection) {
|
|
233
|
-
this.inputElement.value = this.value;
|
|
234
|
-
}
|
|
235
|
-
this.inputElement.checkValidity().then((valid) => (this.invalid = !valid));
|
|
236
|
-
}
|
|
210
|
+
if (!this.multiple && typeof this.value !== 'string') {
|
|
211
|
+
this.value = '';
|
|
237
212
|
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
// Sync display label
|
|
242
|
-
const checkedItems = [];
|
|
243
|
-
this.value.forEach((val) => items.map((item) => (item.value === val ? checkedItems.push(item) : null)));
|
|
244
|
-
this.displayTags = checkedItems.map((item) => {
|
|
245
|
-
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) => {
|
|
246
|
-
event.stopPropagation();
|
|
247
|
-
if (!this.disabled) {
|
|
248
|
-
this.toggleItem(item);
|
|
249
|
-
}
|
|
250
|
-
} }, this.getItemLabel(item)));
|
|
251
|
-
});
|
|
252
|
-
if (this.maxTagsVisible > 0 && this.displayTags.length > this.maxTagsVisible) {
|
|
253
|
-
const total = this.displayTags.length;
|
|
254
|
-
this.displayLabel = '';
|
|
255
|
-
this.displayTags = this.displayTags.slice(0, this.maxTagsVisible);
|
|
256
|
-
this.displayTags.push(h("six-tag", { exportparts: "base:tag", type: "info", size: this.size }, "+", total - this.maxTagsVisible));
|
|
257
|
-
}
|
|
258
|
-
// Sync input element content
|
|
259
|
-
const hasSelection = !isValueEmpty(this.value);
|
|
260
|
-
if (hasSelection) {
|
|
261
|
-
this.touched = true;
|
|
262
|
-
}
|
|
263
|
-
if (this.inputElement && this.touched) {
|
|
264
|
-
if (!this.autocomplete) {
|
|
265
|
-
this.inputElement.value = hasSelection ? this.displayLabel : '';
|
|
266
|
-
}
|
|
267
|
-
else if (hasSelection) {
|
|
268
|
-
this.inputElement.value = this.value.join(',');
|
|
269
|
-
}
|
|
270
|
-
this.inputElement.checkValidity().then((valid) => (this.invalid = !valid));
|
|
271
|
-
}
|
|
213
|
+
await this.syncItemsFromValue();
|
|
214
|
+
if (this.input) {
|
|
215
|
+
this.sixChange.emit({ value: this.value, isSelected: true });
|
|
272
216
|
}
|
|
273
217
|
}
|
|
274
218
|
connectedCallback() {
|
|
@@ -277,61 +221,41 @@ export class SixSelect {
|
|
|
277
221
|
console.error('Options must be defined when using virtual scrolling');
|
|
278
222
|
}
|
|
279
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);
|
|
280
227
|
}
|
|
281
228
|
componentWillLoad() {
|
|
282
229
|
this.handleSlotChange();
|
|
230
|
+
if (this.multiple && this.value != null) {
|
|
231
|
+
this.value = this.getValueAsArray();
|
|
232
|
+
}
|
|
283
233
|
}
|
|
284
234
|
componentDidLoad() {
|
|
285
|
-
|
|
286
|
-
if (inputElement == null) {
|
|
235
|
+
if (this.input == null)
|
|
287
236
|
return;
|
|
288
|
-
|
|
237
|
+
const input = this.input;
|
|
289
238
|
this.resizeObserver = new ResizeObserver(() => this.resizeMenu());
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
event.preventDefault();
|
|
295
|
-
});
|
|
296
|
-
this.eventListeners.add(inputElement, 'six-input-input', debounce((event) => {
|
|
297
|
-
const enteredValue = inputElement.value;
|
|
239
|
+
// We need to do an initial sync after the component has rendered, so this will suppress the re-render warning
|
|
240
|
+
requestAnimationFrame(() => this.syncItemsFromValue());
|
|
241
|
+
this.eventListeners.add(input, 'six-input-input', debounce((event) => {
|
|
242
|
+
const enteredValue = input.value;
|
|
298
243
|
this.clearValues();
|
|
299
244
|
this.sixChange.emit({ value: enteredValue, isSelected: false });
|
|
300
245
|
event.stopPropagation();
|
|
301
246
|
}, this.inputDebounce));
|
|
247
|
+
input.value = this.hasSelection() ? this.displayLabel : '';
|
|
302
248
|
}
|
|
303
249
|
disconnectedCallback() {
|
|
304
250
|
var _a;
|
|
305
251
|
(_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.removeEventListener('slotchange', this.handleSlotChange);
|
|
306
252
|
this.eventListeners.removeAll();
|
|
307
253
|
}
|
|
308
|
-
/**
|
|
309
|
-
async
|
|
254
|
+
/** Sets focus on the select. */
|
|
255
|
+
async setFocus(options) {
|
|
310
256
|
var _a;
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
/** Checks for validity. */
|
|
314
|
-
async checkValidity() {
|
|
315
|
-
var _a;
|
|
316
|
-
return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.isValid();
|
|
317
|
-
}
|
|
318
|
-
/** Sets a custom validation message. If `message` is not empty, the field will be considered invalid. */
|
|
319
|
-
async setCustomValidity(message) {
|
|
320
|
-
this.customErrorText = '';
|
|
321
|
-
this.customValidation = message !== '';
|
|
322
|
-
if (this.inputElement != null) {
|
|
323
|
-
await this.inputElement.setCustomValidity(message);
|
|
324
|
-
this.invalid = !(await this.inputElement.checkValidity());
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
/** Resets the formcontrol */
|
|
328
|
-
async reset() {
|
|
329
|
-
var _a;
|
|
330
|
-
this.clearValues();
|
|
331
|
-
this.customErrorText = '';
|
|
332
|
-
this.customValidation = false;
|
|
333
|
-
await ((_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.setCustomValidity(''));
|
|
334
|
-
this.invalid = false;
|
|
257
|
+
this.hasFocus = true;
|
|
258
|
+
(_a = this.box) === null || _a === void 0 ? void 0 : _a.focus(options);
|
|
335
259
|
}
|
|
336
260
|
getItemLabel(item) {
|
|
337
261
|
var _a, _b;
|
|
@@ -353,18 +277,57 @@ export class SixSelect {
|
|
|
353
277
|
hasMenuItems() {
|
|
354
278
|
return this.getItems().length > 0;
|
|
355
279
|
}
|
|
280
|
+
getValueAsArray() {
|
|
281
|
+
const values = Array.isArray(this.value) ? this.value : [this.value];
|
|
282
|
+
// enforce that the values are converted to 'string' before the value is compared
|
|
283
|
+
return values.map(String);
|
|
284
|
+
}
|
|
356
285
|
clearValues() {
|
|
357
|
-
|
|
358
|
-
this.
|
|
359
|
-
this.update();
|
|
286
|
+
this.value = this.multiple ? [] : '';
|
|
287
|
+
this.syncItemsFromValue();
|
|
360
288
|
}
|
|
361
|
-
|
|
362
|
-
if (this.menu == null || this.box == null)
|
|
289
|
+
resizeMenu() {
|
|
290
|
+
if (this.menu == null || this.box == null)
|
|
363
291
|
return;
|
|
364
|
-
}
|
|
365
292
|
this.menu.style.minWidth = `${this.box.clientWidth}px`;
|
|
366
293
|
if (this.dropdown) {
|
|
367
|
-
|
|
294
|
+
this.dropdown.reposition();
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
async syncItemsFromValue() {
|
|
298
|
+
const items = this.getItems();
|
|
299
|
+
const value = this.getValueAsArray();
|
|
300
|
+
// Sync checked states
|
|
301
|
+
items.forEach((item) => (item.checked = value.includes(item.value)));
|
|
302
|
+
// Sync display label
|
|
303
|
+
if (this.multiple) {
|
|
304
|
+
const checkedItems = [];
|
|
305
|
+
value.forEach((val) => items.map((item) => (item.value === val ? checkedItems.push(item) : null)));
|
|
306
|
+
this.displayTags = checkedItems.map((item) => {
|
|
307
|
+
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) => {
|
|
308
|
+
event.stopPropagation();
|
|
309
|
+
if (!this.disabled) {
|
|
310
|
+
item.checked = false;
|
|
311
|
+
this.syncValueFromItems();
|
|
312
|
+
}
|
|
313
|
+
} }, this.getItemLabel(item)));
|
|
314
|
+
});
|
|
315
|
+
if (this.maxTagsVisible > 0 && this.displayTags.length > this.maxTagsVisible) {
|
|
316
|
+
const total = this.displayTags.length;
|
|
317
|
+
this.displayLabel = '';
|
|
318
|
+
this.displayTags = this.displayTags.slice(0, this.maxTagsVisible);
|
|
319
|
+
this.displayTags.push(h("six-tag", { exportparts: "base:tag", type: "info", size: this.size }, "+", total - this.maxTagsVisible));
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
this.displayLabel = this.extractLabelForSelectedItem(value, items);
|
|
324
|
+
this.displayTags = [];
|
|
325
|
+
}
|
|
326
|
+
if (!isValueEmpty(this.value)) {
|
|
327
|
+
this.touched = true;
|
|
328
|
+
}
|
|
329
|
+
if (this.touched && this.input != null) {
|
|
330
|
+
this.input.value = Array.isArray(this.value) ? this.value.join(',') : this.value;
|
|
368
331
|
}
|
|
369
332
|
}
|
|
370
333
|
extractLabelForSelectedItem(value, items) {
|
|
@@ -378,34 +341,20 @@ export class SixSelect {
|
|
|
378
341
|
const checkedItem = items.find((item) => item.value === value[0]);
|
|
379
342
|
return checkedItem ? this.getItemLabel(checkedItem) : '';
|
|
380
343
|
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
const
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
this.value = value.filter((v) => v !== item.value);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
else {
|
|
394
|
-
if (item.value === value) {
|
|
395
|
-
this.value = '';
|
|
396
|
-
}
|
|
397
|
-
else {
|
|
398
|
-
this.value = item.value;
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
displayError() {
|
|
403
|
-
return this.invalid && (!this.errorOnBlur || (!this.hasFocus && !this.isOpen));
|
|
344
|
+
syncValueFromItems() {
|
|
345
|
+
const items = this.getItems();
|
|
346
|
+
const checkedItems = items.filter((item) => item.checked);
|
|
347
|
+
const checkedValues = checkedItems.map((item) => item.value);
|
|
348
|
+
this.value = this.multiple
|
|
349
|
+
? this.getValueAsArray().filter((val) => checkedValues.includes(val))
|
|
350
|
+
: checkedValues.length > 0
|
|
351
|
+
? checkedValues[0]
|
|
352
|
+
: '';
|
|
404
353
|
}
|
|
405
354
|
render() {
|
|
406
355
|
var _a;
|
|
407
|
-
const hasSelection =
|
|
408
|
-
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.
|
|
356
|
+
const hasSelection = this.hasSelection();
|
|
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: {
|
|
409
358
|
select: true,
|
|
410
359
|
'select--open': this.isOpen,
|
|
411
360
|
'select--empty': ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) === 0,
|
|
@@ -424,14 +373,17 @@ export class SixSelect {
|
|
|
424
373
|
select__box: true,
|
|
425
374
|
'select__box--line': this.line,
|
|
426
375
|
'select__box--autocomplete': this.autocomplete,
|
|
427
|
-
}, 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.
|
|
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: {
|
|
428
377
|
select__input: true,
|
|
429
378
|
'select__hidden-select': !this.autocomplete,
|
|
430
|
-
}, "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: {
|
|
431
380
|
select__menu: true,
|
|
432
381
|
'select__menu--filtered': this.filter || this.asyncFilter,
|
|
433
382
|
'select__menu--hidden': !this.hasMenuItems(),
|
|
434
|
-
}, "onSix-menu-item-selected":
|
|
383
|
+
}, "onSix-menu-item-selected": this.handleMenuSelect, items: this.options, virtualScroll: this.virtualScroll, "remove-box-shadow": true }, h("slot", { onSlotchange: this.handleSlotChange })))));
|
|
384
|
+
}
|
|
385
|
+
hasSelection() {
|
|
386
|
+
return this.multiple ? this.value.length > 0 : this.value !== '';
|
|
435
387
|
}
|
|
436
388
|
static get is() { return "six-select"; }
|
|
437
389
|
static get encapsulation() { return "shadow"; }
|
|
@@ -542,7 +494,7 @@ export class SixSelect {
|
|
|
542
494
|
"mutable": false,
|
|
543
495
|
"complexType": {
|
|
544
496
|
"original": "string",
|
|
545
|
-
"resolved": "string",
|
|
497
|
+
"resolved": "string | undefined",
|
|
546
498
|
"references": {}
|
|
547
499
|
},
|
|
548
500
|
"required": false,
|
|
@@ -644,24 +596,6 @@ export class SixSelect {
|
|
|
644
596
|
"reflect": false,
|
|
645
597
|
"defaultValue": "false"
|
|
646
598
|
},
|
|
647
|
-
"label": {
|
|
648
|
-
"type": "string",
|
|
649
|
-
"mutable": false,
|
|
650
|
-
"complexType": {
|
|
651
|
-
"original": "string",
|
|
652
|
-
"resolved": "string",
|
|
653
|
-
"references": {}
|
|
654
|
-
},
|
|
655
|
-
"required": false,
|
|
656
|
-
"optional": false,
|
|
657
|
-
"docs": {
|
|
658
|
-
"tags": [],
|
|
659
|
-
"text": "The select's label. Alternatively, you can use the label slot."
|
|
660
|
-
},
|
|
661
|
-
"attribute": "label",
|
|
662
|
-
"reflect": false,
|
|
663
|
-
"defaultValue": "''"
|
|
664
|
-
},
|
|
665
599
|
"helpText": {
|
|
666
600
|
"type": "string",
|
|
667
601
|
"mutable": false,
|
|
@@ -680,25 +614,25 @@ export class SixSelect {
|
|
|
680
614
|
"reflect": false,
|
|
681
615
|
"defaultValue": "''"
|
|
682
616
|
},
|
|
683
|
-
"
|
|
684
|
-
"type": "
|
|
617
|
+
"required": {
|
|
618
|
+
"type": "boolean",
|
|
685
619
|
"mutable": false,
|
|
686
620
|
"complexType": {
|
|
687
|
-
"original": "
|
|
688
|
-
"resolved": "
|
|
621
|
+
"original": "boolean",
|
|
622
|
+
"resolved": "boolean",
|
|
689
623
|
"references": {}
|
|
690
624
|
},
|
|
691
625
|
"required": false,
|
|
692
626
|
"optional": false,
|
|
693
627
|
"docs": {
|
|
694
628
|
"tags": [],
|
|
695
|
-
"text": "
|
|
629
|
+
"text": "Set to true to show an asterisk beneath the label."
|
|
696
630
|
},
|
|
697
|
-
"attribute": "
|
|
631
|
+
"attribute": "required",
|
|
698
632
|
"reflect": false,
|
|
699
|
-
"defaultValue": "
|
|
633
|
+
"defaultValue": "false"
|
|
700
634
|
},
|
|
701
|
-
"
|
|
635
|
+
"clearable": {
|
|
702
636
|
"type": "boolean",
|
|
703
637
|
"mutable": false,
|
|
704
638
|
"complexType": {
|
|
@@ -710,49 +644,49 @@ export class SixSelect {
|
|
|
710
644
|
"optional": false,
|
|
711
645
|
"docs": {
|
|
712
646
|
"tags": [],
|
|
713
|
-
"text": "
|
|
647
|
+
"text": "Set to true to add a clear button when the select is populated."
|
|
714
648
|
},
|
|
715
|
-
"attribute": "
|
|
649
|
+
"attribute": "clearable",
|
|
716
650
|
"reflect": false,
|
|
717
651
|
"defaultValue": "false"
|
|
718
652
|
},
|
|
719
|
-
"
|
|
720
|
-
"type": "
|
|
653
|
+
"label": {
|
|
654
|
+
"type": "string",
|
|
721
655
|
"mutable": false,
|
|
722
656
|
"complexType": {
|
|
723
|
-
"original": "
|
|
724
|
-
"resolved": "
|
|
657
|
+
"original": "string",
|
|
658
|
+
"resolved": "string",
|
|
725
659
|
"references": {}
|
|
726
660
|
},
|
|
727
661
|
"required": false,
|
|
728
662
|
"optional": false,
|
|
729
663
|
"docs": {
|
|
730
664
|
"tags": [],
|
|
731
|
-
"text": "
|
|
665
|
+
"text": "The label text."
|
|
732
666
|
},
|
|
733
|
-
"attribute": "
|
|
667
|
+
"attribute": "label",
|
|
734
668
|
"reflect": false,
|
|
735
|
-
"defaultValue": "
|
|
669
|
+
"defaultValue": "''"
|
|
736
670
|
},
|
|
737
|
-
"
|
|
738
|
-
"type": "
|
|
739
|
-
"mutable":
|
|
671
|
+
"errorText": {
|
|
672
|
+
"type": "string",
|
|
673
|
+
"mutable": false,
|
|
740
674
|
"complexType": {
|
|
741
|
-
"original": "
|
|
742
|
-
"resolved": "
|
|
675
|
+
"original": "string",
|
|
676
|
+
"resolved": "string",
|
|
743
677
|
"references": {}
|
|
744
678
|
},
|
|
745
679
|
"required": false,
|
|
746
680
|
"optional": false,
|
|
747
681
|
"docs": {
|
|
748
682
|
"tags": [],
|
|
749
|
-
"text": "
|
|
683
|
+
"text": "The error message shown, if `invalid` is set to true."
|
|
750
684
|
},
|
|
751
|
-
"attribute": "
|
|
685
|
+
"attribute": "error-text",
|
|
752
686
|
"reflect": false,
|
|
753
|
-
"defaultValue": "
|
|
687
|
+
"defaultValue": "''"
|
|
754
688
|
},
|
|
755
|
-
"
|
|
689
|
+
"invalid": {
|
|
756
690
|
"type": "boolean",
|
|
757
691
|
"mutable": false,
|
|
758
692
|
"complexType": {
|
|
@@ -764,13 +698,13 @@ export class SixSelect {
|
|
|
764
698
|
"optional": false,
|
|
765
699
|
"docs": {
|
|
766
700
|
"tags": [],
|
|
767
|
-
"text": "
|
|
701
|
+
"text": "If this property is set to true and an error message is provided by `errorText`, the error message is displayed."
|
|
768
702
|
},
|
|
769
|
-
"attribute": "
|
|
770
|
-
"reflect":
|
|
703
|
+
"attribute": "invalid",
|
|
704
|
+
"reflect": true,
|
|
771
705
|
"defaultValue": "false"
|
|
772
706
|
},
|
|
773
|
-
"
|
|
707
|
+
"line": {
|
|
774
708
|
"type": "boolean",
|
|
775
709
|
"mutable": false,
|
|
776
710
|
"complexType": {
|
|
@@ -782,9 +716,9 @@ export class SixSelect {
|
|
|
782
716
|
"optional": false,
|
|
783
717
|
"docs": {
|
|
784
718
|
"tags": [],
|
|
785
|
-
"text": "Set to
|
|
719
|
+
"text": "Set to render as line"
|
|
786
720
|
},
|
|
787
|
-
"attribute": "
|
|
721
|
+
"attribute": "line",
|
|
788
722
|
"reflect": false,
|
|
789
723
|
"defaultValue": "false"
|
|
790
724
|
},
|
|
@@ -865,7 +799,7 @@ export class SixSelect {
|
|
|
865
799
|
"mutable": false,
|
|
866
800
|
"complexType": {
|
|
867
801
|
"original": "SixMenuItemData[] | null",
|
|
868
|
-
"resolved": "SixMenuItemData[]",
|
|
802
|
+
"resolved": "SixMenuItemData[] | null",
|
|
869
803
|
"references": {
|
|
870
804
|
"SixMenuItemData": {
|
|
871
805
|
"location": "import",
|
|
@@ -898,23 +832,6 @@ export class SixSelect {
|
|
|
898
832
|
"attribute": "virtual-scroll",
|
|
899
833
|
"reflect": false,
|
|
900
834
|
"defaultValue": "false"
|
|
901
|
-
},
|
|
902
|
-
"defaultValue": {
|
|
903
|
-
"type": "string",
|
|
904
|
-
"mutable": false,
|
|
905
|
-
"complexType": {
|
|
906
|
-
"original": "string | string[] | undefined",
|
|
907
|
-
"resolved": "string | string[]",
|
|
908
|
-
"references": {}
|
|
909
|
-
},
|
|
910
|
-
"required": false,
|
|
911
|
-
"optional": false,
|
|
912
|
-
"docs": {
|
|
913
|
-
"tags": [],
|
|
914
|
-
"text": "The default value the select will be reverted to when reset is executed"
|
|
915
|
-
},
|
|
916
|
-
"attribute": "default-value",
|
|
917
|
-
"reflect": false
|
|
918
835
|
}
|
|
919
836
|
};
|
|
920
837
|
}
|
|
@@ -922,7 +839,6 @@ export class SixSelect {
|
|
|
922
839
|
return {
|
|
923
840
|
"hasFocus": {},
|
|
924
841
|
"hasHelpTextSlot": {},
|
|
925
|
-
"hasErrorTextSlot": {},
|
|
926
842
|
"hasLabelSlot": {},
|
|
927
843
|
"isOpen": {},
|
|
928
844
|
"displayLabel": {},
|
|
@@ -994,41 +910,9 @@ export class SixSelect {
|
|
|
994
910
|
}
|
|
995
911
|
static get methods() {
|
|
996
912
|
return {
|
|
997
|
-
"
|
|
913
|
+
"setFocus": {
|
|
998
914
|
"complexType": {
|
|
999
|
-
"signature": "() => Promise<
|
|
1000
|
-
"parameters": [],
|
|
1001
|
-
"references": {
|
|
1002
|
-
"Promise": {
|
|
1003
|
-
"location": "global"
|
|
1004
|
-
}
|
|
1005
|
-
},
|
|
1006
|
-
"return": "Promise<boolean>"
|
|
1007
|
-
},
|
|
1008
|
-
"docs": {
|
|
1009
|
-
"text": "Checks for validity and shows the browser's validation message if the control is invalid.",
|
|
1010
|
-
"tags": []
|
|
1011
|
-
}
|
|
1012
|
-
},
|
|
1013
|
-
"checkValidity": {
|
|
1014
|
-
"complexType": {
|
|
1015
|
-
"signature": "() => Promise<boolean>",
|
|
1016
|
-
"parameters": [],
|
|
1017
|
-
"references": {
|
|
1018
|
-
"Promise": {
|
|
1019
|
-
"location": "global"
|
|
1020
|
-
}
|
|
1021
|
-
},
|
|
1022
|
-
"return": "Promise<boolean>"
|
|
1023
|
-
},
|
|
1024
|
-
"docs": {
|
|
1025
|
-
"text": "Checks for validity.",
|
|
1026
|
-
"tags": []
|
|
1027
|
-
}
|
|
1028
|
-
},
|
|
1029
|
-
"setCustomValidity": {
|
|
1030
|
-
"complexType": {
|
|
1031
|
-
"signature": "(message: string) => Promise<void>",
|
|
915
|
+
"signature": "(options?: FocusOptions) => Promise<void>",
|
|
1032
916
|
"parameters": [{
|
|
1033
917
|
"tags": [],
|
|
1034
918
|
"text": ""
|
|
@@ -1036,28 +920,15 @@ export class SixSelect {
|
|
|
1036
920
|
"references": {
|
|
1037
921
|
"Promise": {
|
|
1038
922
|
"location": "global"
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
"return": "Promise<void>"
|
|
1042
|
-
},
|
|
1043
|
-
"docs": {
|
|
1044
|
-
"text": "Sets a custom validation message. If `message` is not empty, the field will be considered invalid.",
|
|
1045
|
-
"tags": []
|
|
1046
|
-
}
|
|
1047
|
-
},
|
|
1048
|
-
"reset": {
|
|
1049
|
-
"complexType": {
|
|
1050
|
-
"signature": "() => Promise<void>",
|
|
1051
|
-
"parameters": [],
|
|
1052
|
-
"references": {
|
|
1053
|
-
"Promise": {
|
|
923
|
+
},
|
|
924
|
+
"FocusOptions": {
|
|
1054
925
|
"location": "global"
|
|
1055
926
|
}
|
|
1056
927
|
},
|
|
1057
928
|
"return": "Promise<void>"
|
|
1058
929
|
},
|
|
1059
930
|
"docs": {
|
|
1060
|
-
"text": "
|
|
931
|
+
"text": "Sets focus on the select.",
|
|
1061
932
|
"tags": []
|
|
1062
933
|
}
|
|
1063
934
|
}
|