@six-group/ui-library 0.0.0-insider.f8b41df → 0.0.0-insider.faf050a
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-9fb878f1.js +61 -0
- package/dist/cjs/event-listeners-9fb878f1.js.map +1 -0
- package/dist/cjs/{execution-control-b4707294.js → execution-control-d728da70.js} +15 -15
- package/dist/cjs/{execution-control-b4707294.js.map → execution-control-d728da70.js.map} +1 -1
- package/dist/cjs/focus-visible-e2c9255a.js +47 -0
- package/dist/cjs/{focus-visible-ae2470dd.js.map → focus-visible-e2c9255a.js.map} +1 -1
- package/dist/cjs/form-9ebaae7c.js +20 -0
- package/dist/cjs/{form-2df8c5bb.js.map → form-9ebaae7c.js.map} +1 -1
- package/dist/cjs/form-control-f9bc25dd.js +36 -0
- package/dist/cjs/form-control-f9bc25dd.js.map +1 -0
- package/dist/{esm/index-8a74f992.js → cjs/index-3baddcdc.js} +572 -341
- package/dist/cjs/index-3baddcdc.js.map +1 -0
- package/dist/cjs/index.cjs.js +96 -81
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/modal-3ce015be.js +52 -0
- package/dist/cjs/modal-3ce015be.js.map +1 -0
- package/dist/cjs/{popover-2df7e154.js → popover-1e7c09f1.js} +99 -99
- package/dist/cjs/popover-1e7c09f1.js.map +1 -0
- package/dist/cjs/popup-40a9adbb.js +103 -0
- package/dist/cjs/{popup-f1d9910f.js.map → popup-40a9adbb.js.map} +1 -1
- package/dist/cjs/scroll-68033901.js +68 -0
- package/dist/cjs/scroll-68033901.js.map +1 -0
- package/dist/cjs/set-attributes_2.cjs.entry.js +50 -50
- package/dist/cjs/set-attributes_2.cjs.entry.js.map +1 -1
- package/dist/cjs/six-alert.cjs.entry.js +109 -109
- package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/six-avatar.cjs.entry.js +20 -20
- package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-badge.cjs.entry.js +22 -22
- package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/six-button.cjs.entry.js +95 -95
- package/dist/cjs/six-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-card.cjs.entry.js +7 -7
- package/dist/cjs/six-card.cjs.entry.js.map +1 -1
- package/dist/cjs/six-checkbox.cjs.entry.js +111 -108
- package/dist/cjs/six-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/six-datepicker.cjs.entry.js +833 -838
- package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-details.cjs.entry.js +127 -127
- package/dist/cjs/six-details.cjs.entry.js.map +1 -1
- package/dist/cjs/six-dialog.cjs.entry.js +128 -128
- package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/six-drawer.cjs.entry.js +146 -146
- package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/six-dropdown_2.cjs.entry.js +634 -634
- package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/six-error-page.cjs.entry.js +82 -82
- package/dist/cjs/six-error-page.cjs.entry.js.map +1 -1
- package/dist/cjs/six-error.cjs.entry.js +21 -0
- package/dist/cjs/six-error.cjs.entry.js.map +1 -0
- package/dist/cjs/six-file-list-item.cjs.entry.js +33 -33
- package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-file-list.cjs.entry.js +7 -7
- package/dist/cjs/six-file-list.cjs.entry.js.map +1 -1
- package/dist/cjs/six-file-upload.cjs.entry.js +98 -98
- package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/six-footer.cjs.entry.js +7 -7
- package/dist/cjs/six-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/six-group-label.cjs.entry.js +43 -43
- package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
- package/dist/cjs/six-header.cjs.entry.js +155 -155
- package/dist/cjs/six-header.cjs.entry.js.map +1 -1
- package/dist/cjs/six-icon-button.cjs.entry.js +32 -32
- package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-icon.cjs.entry.js +21 -21
- package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/six-input.cjs.entry.js +190 -187
- package/dist/cjs/six-input.cjs.entry.js.map +1 -1
- package/dist/cjs/six-item-picker.cjs.entry.js +307 -307
- package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-language-switcher.cjs.entry.js +46 -46
- package/dist/cjs/six-language-switcher.cjs.entry.js.map +1 -1
- package/dist/cjs/six-layout-grid.cjs.entry.js +20 -20
- package/dist/cjs/six-layout-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/six-main-container.cjs.entry.js +9 -9
- package/dist/cjs/six-main-container.cjs.entry.js.map +1 -1
- package/dist/cjs/six-menu-divider.cjs.entry.js +7 -7
- package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/six-menu-item.cjs.entry.js +49 -49
- package/dist/cjs/six-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-menu-label.cjs.entry.js +7 -7
- package/dist/cjs/six-menu-label.cjs.entry.js.map +1 -1
- package/dist/cjs/six-picto.cjs.entry.js +14 -14
- package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
- package/dist/cjs/six-progress-bar.cjs.entry.js +14 -14
- package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-progress-ring.cjs.entry.js +29 -29
- package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
- package/dist/cjs/six-radio.cjs.entry.js +103 -103
- package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/six-range.cjs.entry.js +180 -177
- package/dist/cjs/six-range.cjs.entry.js.map +1 -1
- package/dist/cjs/six-root.cjs.entry.js +30 -30
- package/dist/cjs/six-root.cjs.entry.js.map +1 -1
- package/dist/cjs/six-search-field.cjs.entry.js +43 -43
- package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
- package/dist/cjs/six-select.cjs.entry.js +365 -362
- package/dist/cjs/six-select.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js +56 -45
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar-item.cjs.entry.js +17 -15
- package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar.cjs.entry.js +173 -173
- package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-spinner.cjs.entry.js +14 -14
- package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
- package/dist/cjs/six-switch.cjs.entry.js +107 -89
- package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab-group.cjs.entry.js +230 -235
- package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab-panel.cjs.entry.js +13 -13
- package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab.cjs.entry.js +55 -39
- package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tag.cjs.entry.js +54 -32
- package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/six-textarea.cjs.entry.js +181 -178
- package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tile.cjs.entry.js +76 -76
- package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/six-timepicker.cjs.entry.js +347 -352
- package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tooltip.cjs.entry.js +148 -148
- package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/slot-9821749e.js +53 -0
- package/dist/cjs/slot-9821749e.js.map +1 -0
- package/dist/cjs/types-0a6d66f6.js +17 -0
- package/dist/cjs/{types-47199040.js.map → types-0a6d66f6.js.map} +1 -1
- package/dist/cjs/ui-library.cjs.js +3 -3
- package/dist/cjs/ui-library.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/six-alert/six-alert.js +338 -338
- package/dist/collection/components/six-alert/six-alert.js.map +1 -1
- package/dist/collection/components/six-alert/test/six-alert.spec.js +7 -7
- package/dist/collection/components/six-alert/test/six-alert.spec.js.map +1 -1
- package/dist/collection/components/six-avatar/six-avatar.js +111 -111
- package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
- package/dist/collection/components/six-avatar/test/six-avatar.spec.js +7 -7
- package/dist/collection/components/six-avatar/test/six-avatar.spec.js.map +1 -1
- package/dist/collection/components/six-badge/six-badge.js +90 -90
- package/dist/collection/components/six-badge/six-badge.js.map +1 -1
- package/dist/collection/components/six-badge/test/six-badge.spec.js +7 -7
- package/dist/collection/components/six-badge/test/six-badge.spec.js.map +1 -1
- package/dist/collection/components/six-button/six-button.css +5 -30
- package/dist/collection/components/six-button/six-button.js +446 -446
- package/dist/collection/components/six-button/six-button.js.map +1 -1
- package/dist/collection/components/six-button/test/six-button.spec.js +44 -44
- package/dist/collection/components/six-button/test/six-button.spec.js.map +1 -1
- package/dist/collection/components/six-card/six-card.js +15 -15
- package/dist/collection/components/six-card/six-card.js.map +1 -1
- package/dist/collection/components/six-card/test/six-card.spec.js +7 -7
- package/dist/collection/components/six-card/test/six-card.spec.js.map +1 -1
- package/dist/collection/components/six-checkbox/six-checkbox.css +4 -1
- package/dist/collection/components/six-checkbox/six-checkbox.js +420 -399
- package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
- package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js +19 -15
- package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js.map +1 -1
- package/dist/collection/components/six-datepicker/components/day-selection.js +8 -8
- package/dist/collection/components/six-datepicker/components/day-selection.js.map +1 -1
- package/dist/collection/components/six-datepicker/components/month-selection.js +8 -8
- package/dist/collection/components/six-datepicker/components/month-selection.js.map +1 -1
- package/dist/collection/components/six-datepicker/components/year-selection.js +8 -8
- package/dist/collection/components/six-datepicker/components/year-selection.js.map +1 -1
- package/dist/collection/components/six-datepicker/six-date-formats.js +20 -20
- package/dist/collection/components/six-datepicker/six-date-formats.js.map +1 -1
- package/dist/collection/components/six-datepicker/six-datepicker.js +1050 -1039
- package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
- package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js +8 -8
- package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js.map +1 -1
- package/dist/collection/components/six-datepicker/test/six-datepicker.test-helpers.js +14 -14
- package/dist/collection/components/six-datepicker/test/six-datepicker.test-helpers.js.map +1 -1
- package/dist/collection/components/six-details/six-details.css +3 -1
- package/dist/collection/components/six-details/six-details.js +410 -410
- package/dist/collection/components/six-details/six-details.js.map +1 -1
- package/dist/collection/components/six-details/test/six-details.spec.js +7 -7
- package/dist/collection/components/six-details/test/six-details.spec.js.map +1 -1
- package/dist/collection/components/six-dialog/six-dialog.js +354 -354
- package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
- package/dist/collection/components/six-dialog/test/six-dialog.spec.js +7 -7
- package/dist/collection/components/six-dialog/test/six-dialog.spec.js.map +1 -1
- package/dist/collection/components/six-drawer/six-drawer.js +409 -409
- package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
- package/dist/collection/components/six-drawer/test/six-drawer.spec.js +8 -8
- package/dist/collection/components/six-drawer/test/six-drawer.spec.js.map +1 -1
- package/dist/collection/components/six-dropdown/six-dropdown.css +2 -1
- package/dist/collection/components/six-dropdown/six-dropdown.js +891 -891
- package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
- package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +38 -38
- package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +1 -1
- package/dist/collection/components/six-error/six-error.css +5 -0
- package/dist/collection/components/six-error/six-error.js +25 -0
- package/dist/collection/components/six-error/six-error.js.map +1 -0
- package/dist/collection/components/six-error-page/six-error-page.js +177 -177
- package/dist/collection/components/six-error-page/six-error-page.js.map +1 -1
- package/dist/collection/components/six-error-page/test/six-error-page.spec.js +77 -77
- package/dist/collection/components/six-error-page/test/six-error-page.spec.js.map +1 -1
- package/dist/collection/components/six-file-list/six-file-list.js +15 -15
- package/dist/collection/components/six-file-list/six-file-list.js.map +1 -1
- package/dist/collection/components/six-file-list/test/six-file-list.spec.js +16 -16
- package/dist/collection/components/six-file-list/test/six-file-list.spec.js.map +1 -1
- package/dist/collection/components/six-file-list-item/six-file-list-item.js +195 -195
- package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
- package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js +42 -42
- package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js.map +1 -1
- package/dist/collection/components/six-file-upload/six-file-upload.js +291 -291
- package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
- package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +27 -27
- package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +1 -1
- package/dist/collection/components/six-footer/six-footer.js +15 -15
- package/dist/collection/components/six-footer/six-footer.js.map +1 -1
- package/dist/collection/components/six-footer/test/six-footer.spec.js +7 -7
- package/dist/collection/components/six-footer/test/six-footer.spec.js.map +1 -1
- package/dist/collection/components/six-group-label/six-group-label.css +4 -1
- package/dist/collection/components/six-group-label/six-group-label.js +155 -155
- package/dist/collection/components/six-group-label/six-group-label.js.map +1 -1
- package/dist/collection/components/six-group-label/test/six-group-label.spec.js +15 -13
- package/dist/collection/components/six-group-label/test/six-group-label.spec.js.map +1 -1
- package/dist/collection/components/six-header/six-header.js +406 -406
- package/dist/collection/components/six-header/six-header.js.map +1 -1
- package/dist/collection/components/six-header/test/six-header.spec.js +28 -28
- package/dist/collection/components/six-header/test/six-header.spec.js.map +1 -1
- package/dist/collection/components/six-icon/six-icon.js +71 -71
- package/dist/collection/components/six-icon/six-icon.js.map +1 -1
- package/dist/collection/components/six-icon/test/six-icon.spec.js +7 -7
- package/dist/collection/components/six-icon/test/six-icon.spec.js.map +1 -1
- package/dist/collection/components/six-icon-button/six-icon-button.css +4 -4
- package/dist/collection/components/six-icon-button/six-icon-button.js +131 -131
- package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
- package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js +7 -7
- package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js.map +1 -1
- package/dist/collection/components/six-input/six-input.css +4 -1
- package/dist/collection/components/six-input/six-input.js +942 -919
- package/dist/collection/components/six-input/six-input.js.map +1 -1
- package/dist/collection/components/six-input/test/six-input.spec.js +10 -8
- package/dist/collection/components/six-input/test/six-input.spec.js.map +1 -1
- package/dist/collection/components/six-item-picker/six-item-picker.js +630 -630
- package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -1
- package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js +25 -25
- package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js.map +1 -1
- package/dist/collection/components/six-item-picker/types.js +7 -7
- package/dist/collection/components/six-item-picker/types.js.map +1 -1
- package/dist/collection/components/six-language-switcher/six-language-switcher.js +124 -124
- package/dist/collection/components/six-language-switcher/six-language-switcher.js.map +1 -1
- package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +79 -79
- package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +1 -1
- package/dist/collection/components/six-layout-grid/six-layout-grid.js +54 -54
- package/dist/collection/components/six-layout-grid/six-layout-grid.js.map +1 -1
- package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js +7 -7
- package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js.map +1 -1
- package/dist/collection/components/six-main-container/six-main-container.js +41 -41
- package/dist/collection/components/six-main-container/six-main-container.js.map +1 -1
- package/dist/collection/components/six-main-container/test/six-main-container.spec.js +7 -7
- package/dist/collection/components/six-main-container/test/six-main-container.spec.js.map +1 -1
- package/dist/collection/components/six-menu/six-menu.js +365 -365
- package/dist/collection/components/six-menu/six-menu.js.map +1 -1
- package/dist/collection/components/six-menu/test/six-menu.spec.js +35 -35
- package/dist/collection/components/six-menu/test/six-menu.spec.js.map +1 -1
- package/dist/collection/components/six-menu-divider/six-menu-divider.js +15 -15
- package/dist/collection/components/six-menu-divider/six-menu-divider.js.map +1 -1
- package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js +7 -7
- package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js.map +1 -1
- package/dist/collection/components/six-menu-item/six-menu-item.js +180 -180
- package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
- package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js +7 -7
- package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js.map +1 -1
- package/dist/collection/components/six-menu-label/six-menu-label.js +15 -15
- package/dist/collection/components/six-menu-label/six-menu-label.js.map +1 -1
- package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js +7 -7
- package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js.map +1 -1
- package/dist/collection/components/six-picto/six-picto.js +46 -46
- package/dist/collection/components/six-picto/six-picto.js.map +1 -1
- package/dist/collection/components/six-picto/test/six-picto.spec.js +13 -13
- package/dist/collection/components/six-picto/test/six-picto.spec.js.map +1 -1
- package/dist/collection/components/six-progress-bar/six-progress-bar.js +64 -64
- package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
- package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js +7 -7
- package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js.map +1 -1
- package/dist/collection/components/six-progress-ring/six-progress-ring.js +100 -100
- package/dist/collection/components/six-progress-ring/six-progress-ring.js.map +1 -1
- package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js +7 -7
- package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js.map +1 -1
- package/dist/collection/components/six-radio/six-radio.js +320 -320
- package/dist/collection/components/six-radio/six-radio.js.map +1 -1
- package/dist/collection/components/six-radio/test/six-radio.spec.js +13 -13
- package/dist/collection/components/six-radio/test/six-radio.spec.js.map +1 -1
- package/dist/collection/components/six-range/six-range.css +4 -1
- package/dist/collection/components/six-range/six-range.js +563 -542
- package/dist/collection/components/six-range/six-range.js.map +1 -1
- package/dist/collection/components/six-range/test/six-range.spec.js +11 -9
- package/dist/collection/components/six-range/test/six-range.spec.js.map +1 -1
- package/dist/collection/components/six-root/six-root.js +152 -152
- package/dist/collection/components/six-root/six-root.js.map +1 -1
- package/dist/collection/components/six-root/test/six-root.spec.js +10 -10
- package/dist/collection/components/six-root/test/six-root.spec.js.map +1 -1
- package/dist/collection/components/six-search-field/six-search-field.js +169 -169
- package/dist/collection/components/six-search-field/six-search-field.js.map +1 -1
- package/dist/collection/components/six-search-field/test/six-search-field.spec.js +7 -7
- package/dist/collection/components/six-search-field/test/six-search-field.spec.js.map +1 -1
- package/dist/collection/components/six-select/six-select.css +4 -1
- package/dist/collection/components/six-select/six-select.js +933 -912
- package/dist/collection/components/six-select/six-select.js.map +1 -1
- package/dist/collection/components/six-select/test/six-select.spec.js +22 -18
- package/dist/collection/components/six-select/test/six-select.spec.js.map +1 -1
- package/dist/collection/components/six-select/test/util.spec.js +73 -73
- package/dist/collection/components/six-select/test/util.spec.js.map +1 -1
- package/dist/collection/components/six-select/util.js +34 -34
- package/dist/collection/components/six-select/util.js.map +1 -1
- package/dist/collection/components/six-sidebar/six-sidebar.js +464 -464
- package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -1
- package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js +7 -7
- package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js.map +1 -1
- package/dist/collection/components/six-sidebar-item/six-sidebar-item.css +6 -1
- package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +101 -82
- package/dist/collection/components/six-sidebar-item/six-sidebar-item.js.map +1 -1
- package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js +19 -19
- package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js.map +1 -1
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +11 -0
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +180 -152
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
- package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js +16 -16
- package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js.map +1 -1
- package/dist/collection/components/six-spinner/six-spinner.js +46 -46
- package/dist/collection/components/six-spinner/six-spinner.js.map +1 -1
- package/dist/collection/components/six-spinner/test/six-spinner.spec.js +13 -13
- package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +1 -1
- package/dist/collection/components/six-stage-indicator/six-stage-indicator.js +45 -45
- package/dist/collection/components/six-stage-indicator/six-stage-indicator.js.map +1 -1
- package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js +37 -37
- package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js.map +1 -1
- package/dist/collection/components/six-switch/six-switch.css +4 -1
- package/dist/collection/components/six-switch/six-switch.js +385 -344
- package/dist/collection/components/six-switch/six-switch.js.map +1 -1
- package/dist/collection/components/six-switch/test/six-switch.spec.js +19 -15
- package/dist/collection/components/six-switch/test/six-switch.spec.js.map +1 -1
- package/dist/collection/components/six-tab/six-tab.css +54 -5
- package/dist/collection/components/six-tab/six-tab.js +205 -189
- package/dist/collection/components/six-tab/six-tab.js.map +1 -1
- package/dist/collection/components/six-tab-group/six-tab-group.css +0 -31
- package/dist/collection/components/six-tab-group/six-tab-group.js +317 -358
- 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 +63 -63
- package/dist/collection/components/six-tab-panel/six-tab-panel.js.map +1 -1
- package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js +7 -7
- package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js.map +1 -1
- package/dist/collection/components/six-tag/six-tag.js +161 -139
- package/dist/collection/components/six-tag/six-tag.js.map +1 -1
- package/dist/collection/components/six-tag/test/six-tag.spec.js +24 -12
- package/dist/collection/components/six-tag/test/six-tag.spec.js.map +1 -1
- package/dist/collection/components/six-textarea/six-textarea.css +4 -1
- package/dist/collection/components/six-textarea/six-textarea.js +784 -763
- package/dist/collection/components/six-textarea/six-textarea.js.map +1 -1
- package/dist/collection/components/six-textarea/test/six-textarea.spec.js +97 -95
- package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +1 -1
- package/dist/collection/components/six-tile/six-tile.js +298 -298
- package/dist/collection/components/six-tile/six-tile.js.map +1 -1
- package/dist/collection/components/six-tile/test/six-tile.spec.js +14 -14
- package/dist/collection/components/six-tile/test/six-tile.spec.js.map +1 -1
- package/dist/collection/components/six-timepicker/six-timepicker.js +824 -812
- package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
- package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js +170 -170
- package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +1 -1
- package/dist/collection/components/six-tooltip/six-tooltip.css +1 -1
- package/dist/collection/components/six-tooltip/six-tooltip.js +407 -407
- package/dist/collection/components/six-tooltip/six-tooltip.js.map +1 -1
- package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js +7 -7
- package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js.map +1 -1
- package/dist/collection/functional-components/form-control/form-control.js +19 -17
- package/dist/collection/functional-components/form-control/form-control.js.map +1 -1
- package/dist/collection/testUtil/delay.js +1 -1
- package/dist/collection/testUtil/delay.js.map +1 -1
- package/dist/collection/utils/animation.js +34 -0
- package/dist/collection/utils/animation.js.map +1 -0
- package/dist/collection/utils/date-util.js +500 -500
- package/dist/collection/utils/date-util.js.map +1 -1
- package/dist/collection/utils/date-util.spec.js +984 -984
- package/dist/collection/utils/date-util.spec.js.map +1 -1
- package/dist/collection/utils/error-messages.js +95 -81
- package/dist/collection/utils/error-messages.js.map +1 -1
- package/dist/collection/utils/event-listeners.js +51 -51
- package/dist/collection/utils/event-listeners.js.map +1 -1
- package/dist/collection/utils/execution-control.js +14 -14
- package/dist/collection/utils/execution-control.js.map +1 -1
- package/dist/collection/utils/focus-visible.js +28 -28
- package/dist/collection/utils/focus-visible.js.map +1 -1
- package/dist/collection/utils/form.js +12 -12
- package/dist/collection/utils/form.js.map +1 -1
- package/dist/collection/utils/modal.js +25 -25
- package/dist/collection/utils/modal.js.map +1 -1
- package/dist/collection/utils/offset.js +4 -4
- package/dist/collection/utils/offset.js.map +1 -1
- package/dist/collection/utils/popover.js +99 -99
- package/dist/collection/utils/popover.js.map +1 -1
- package/dist/collection/utils/popup.js +71 -71
- package/dist/collection/utils/popup.js.map +1 -1
- package/dist/collection/utils/scroll.js +27 -27
- package/dist/collection/utils/scroll.js.map +1 -1
- package/dist/collection/utils/scroll.spec.js +116 -116
- package/dist/collection/utils/scroll.spec.js.map +1 -1
- package/dist/collection/utils/slot.js +28 -28
- package/dist/collection/utils/slot.js.map +1 -1
- package/dist/collection/utils/support.js +10 -10
- package/dist/collection/utils/support.js.map +1 -1
- package/dist/collection/utils/tabbable.js +17 -17
- package/dist/collection/utils/tabbable.js.map +1 -1
- package/dist/collection/utils/time.util.js +72 -72
- package/dist/collection/utils/time.util.js.map +1 -1
- package/dist/collection/utils/time.util.spec.js +353 -353
- package/dist/collection/utils/time.util.spec.js.map +1 -1
- package/dist/collection/wrappers/set-attributes/set-attributes.js +65 -65
- package/dist/collection/wrappers/set-attributes/set-attributes.js.map +1 -1
- package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js +7 -7
- package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js.map +1 -1
- package/dist/components/event-listeners.js +51 -51
- package/dist/components/event-listeners.js.map +1 -1
- package/dist/components/execution-control.js +14 -14
- package/dist/components/execution-control.js.map +1 -1
- package/dist/components/focus-visible.js +28 -28
- package/dist/components/focus-visible.js.map +1 -1
- package/dist/components/form-control.js +26 -23
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form.js +12 -12
- package/dist/components/form.js.map +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +159 -143
- package/dist/components/index.js.map +1 -1
- package/dist/components/modal.js +35 -35
- package/dist/components/modal.js.map +1 -1
- package/dist/components/popover.js +98 -98
- package/dist/components/popover.js.map +1 -1
- package/dist/components/scroll.js +32 -32
- package/dist/components/scroll.js.map +1 -1
- package/dist/components/set-attributes.d.ts +2 -2
- package/dist/components/set-attributes2.js +58 -56
- package/dist/components/set-attributes2.js.map +1 -1
- package/dist/components/six-alert.d.ts +2 -2
- package/dist/components/six-alert.js +144 -141
- package/dist/components/six-alert.js.map +1 -1
- package/dist/components/six-avatar.d.ts +2 -2
- package/dist/components/six-avatar.js +44 -44
- package/dist/components/six-avatar.js.map +1 -1
- package/dist/components/six-badge.d.ts +2 -2
- package/dist/components/six-badge.js +39 -39
- package/dist/components/six-badge.js.map +1 -1
- package/dist/components/six-button.d.ts +2 -2
- package/dist/components/six-button.js +132 -132
- package/dist/components/six-button.js.map +1 -1
- package/dist/components/six-card.d.ts +2 -2
- package/dist/components/six-card.js +20 -20
- package/dist/components/six-card.js.map +1 -1
- package/dist/components/six-checkbox.d.ts +2 -2
- package/dist/components/six-checkbox.js +148 -132
- package/dist/components/six-checkbox.js.map +1 -1
- package/dist/components/six-datepicker.d.ts +2 -2
- package/dist/components/six-datepicker.js +904 -899
- package/dist/components/six-datepicker.js.map +1 -1
- package/dist/components/six-details.d.ts +2 -2
- package/dist/components/six-details2.js +158 -156
- package/dist/components/six-details2.js.map +1 -1
- package/dist/components/six-dialog.d.ts +2 -2
- package/dist/components/six-dialog.js +158 -156
- package/dist/components/six-dialog.js.map +1 -1
- package/dist/components/six-drawer.d.ts +2 -2
- package/dist/components/six-drawer.js +178 -176
- package/dist/components/six-drawer.js.map +1 -1
- package/dist/components/six-dropdown.d.ts +2 -2
- package/dist/components/six-dropdown2.js +473 -460
- package/dist/components/six-dropdown2.js.map +1 -1
- package/dist/components/six-error-page.d.ts +2 -2
- package/dist/components/six-error-page.js +106 -106
- package/dist/components/six-error-page.js.map +1 -1
- package/dist/components/six-error.d.ts +11 -0
- package/dist/components/six-error.js +8 -0
- package/dist/components/six-error.js.map +1 -0
- package/dist/components/six-error2.js +32 -0
- package/dist/components/six-error2.js.map +1 -0
- package/dist/components/six-file-list-item.d.ts +2 -2
- package/dist/components/six-file-list-item.js +58 -58
- package/dist/components/six-file-list-item.js.map +1 -1
- package/dist/components/six-file-list.d.ts +2 -2
- package/dist/components/six-file-list.js +20 -20
- package/dist/components/six-file-list.js.map +1 -1
- package/dist/components/six-file-upload.d.ts +2 -2
- package/dist/components/six-file-upload.js +123 -123
- package/dist/components/six-file-upload.js.map +1 -1
- package/dist/components/six-footer.d.ts +2 -2
- package/dist/components/six-footer.js +20 -20
- package/dist/components/six-footer.js.map +1 -1
- package/dist/components/six-group-label.d.ts +2 -2
- package/dist/components/six-group-label.js +71 -62
- package/dist/components/six-group-label.js.map +1 -1
- package/dist/components/six-header.d.ts +2 -2
- package/dist/components/six-header.js +214 -206
- package/dist/components/six-header.js.map +1 -1
- package/dist/components/six-icon-button.d.ts +2 -2
- package/dist/components/six-icon-button2.js +55 -55
- package/dist/components/six-icon-button2.js.map +1 -1
- package/dist/components/six-icon.d.ts +2 -2
- package/dist/components/six-icon2.js +37 -37
- package/dist/components/six-icon2.js.map +1 -1
- package/dist/components/six-input.d.ts +2 -2
- package/dist/components/six-input2.js +255 -239
- package/dist/components/six-input2.js.map +1 -1
- package/dist/components/six-item-picker.d.ts +2 -2
- package/dist/components/six-item-picker2.js +350 -346
- package/dist/components/six-item-picker2.js.map +1 -1
- package/dist/components/six-language-switcher.d.ts +2 -2
- package/dist/components/six-language-switcher.js +64 -62
- package/dist/components/six-language-switcher.js.map +1 -1
- package/dist/components/six-layout-grid.d.ts +2 -2
- package/dist/components/six-layout-grid.js +37 -35
- package/dist/components/six-layout-grid.js.map +1 -1
- package/dist/components/six-main-container.d.ts +2 -2
- package/dist/components/six-main-container.js +24 -24
- package/dist/components/six-main-container.js.map +1 -1
- package/dist/components/six-menu-divider.d.ts +2 -2
- package/dist/components/six-menu-divider.js +20 -20
- package/dist/components/six-menu-divider.js.map +1 -1
- package/dist/components/six-menu-item.d.ts +2 -2
- package/dist/components/six-menu-item2.js +74 -74
- package/dist/components/six-menu-item2.js.map +1 -1
- package/dist/components/six-menu-label.d.ts +2 -2
- package/dist/components/six-menu-label.js +20 -20
- package/dist/components/six-menu-label.js.map +1 -1
- package/dist/components/six-menu.d.ts +2 -2
- package/dist/components/six-menu2.js +218 -218
- package/dist/components/six-menu2.js.map +1 -1
- package/dist/components/six-picto.d.ts +2 -2
- package/dist/components/six-picto2.js +29 -29
- package/dist/components/six-picto2.js.map +1 -1
- package/dist/components/six-progress-bar.d.ts +2 -2
- package/dist/components/six-progress-bar.js +30 -30
- package/dist/components/six-progress-bar.js.map +1 -1
- package/dist/components/six-progress-ring.d.ts +2 -2
- package/dist/components/six-progress-ring.js +48 -46
- package/dist/components/six-progress-ring.js.map +1 -1
- package/dist/components/six-radio.d.ts +2 -2
- package/dist/components/six-radio.js +127 -124
- package/dist/components/six-radio.js.map +1 -1
- package/dist/components/six-range.d.ts +2 -2
- package/dist/components/six-range.js +233 -215
- package/dist/components/six-range.js.map +1 -1
- package/dist/components/six-root.d.ts +2 -2
- package/dist/components/six-root.js +66 -64
- package/dist/components/six-root.js.map +1 -1
- package/dist/components/six-search-field.d.ts +2 -2
- package/dist/components/six-search-field.js +78 -70
- package/dist/components/six-search-field.js.map +1 -1
- package/dist/components/six-select.d.ts +2 -2
- package/dist/components/six-select.js +469 -445
- package/dist/components/six-select.js.map +1 -1
- package/dist/components/six-sidebar-item-group.d.ts +2 -2
- package/dist/components/six-sidebar-item-group.js +87 -75
- package/dist/components/six-sidebar-item-group.js.map +1 -1
- package/dist/components/six-sidebar-item.d.ts +2 -2
- package/dist/components/six-sidebar-item.js +35 -32
- package/dist/components/six-sidebar-item.js.map +1 -1
- package/dist/components/six-sidebar.d.ts +2 -2
- package/dist/components/six-sidebar.js +198 -196
- package/dist/components/six-sidebar.js.map +1 -1
- package/dist/components/six-spinner.d.ts +2 -2
- package/dist/components/six-spinner2.js +29 -29
- package/dist/components/six-spinner2.js.map +1 -1
- package/dist/components/six-stage-indicator.d.ts +2 -2
- package/dist/components/six-stage-indicator2.js +28 -28
- package/dist/components/six-stage-indicator2.js.map +1 -1
- package/dist/components/six-switch.d.ts +2 -2
- package/dist/components/six-switch.js +142 -112
- package/dist/components/six-switch.js.map +1 -1
- package/dist/components/six-tab-group.d.ts +2 -2
- package/dist/components/six-tab-group.js +260 -263
- package/dist/components/six-tab-group.js.map +1 -1
- package/dist/components/six-tab-panel.d.ts +2 -2
- package/dist/components/six-tab-panel.js +29 -29
- package/dist/components/six-tab-panel.js.map +1 -1
- package/dist/components/six-tab.d.ts +2 -2
- package/dist/components/six-tab.js +85 -69
- package/dist/components/six-tab.js.map +1 -1
- package/dist/components/six-tag.d.ts +2 -2
- package/dist/components/six-tag2.js +90 -62
- package/dist/components/six-tag2.js.map +1 -1
- package/dist/components/six-textarea.d.ts +2 -2
- package/dist/components/six-textarea.js +235 -218
- package/dist/components/six-textarea.js.map +1 -1
- package/dist/components/six-tile.d.ts +2 -2
- package/dist/components/six-tile.js +116 -116
- package/dist/components/six-tile.js.map +1 -1
- package/dist/components/six-timepicker.d.ts +2 -2
- package/dist/components/six-timepicker2.js +490 -486
- package/dist/components/six-timepicker2.js.map +1 -1
- package/dist/components/six-tooltip.d.ts +2 -2
- package/dist/components/six-tooltip2.js +172 -170
- package/dist/components/six-tooltip2.js.map +1 -1
- package/dist/components/slot.js +28 -28
- package/dist/components/slot.js.map +1 -1
- package/dist/components.json +475 -57
- package/dist/esm/event-listeners-706d4309.js +59 -0
- package/dist/esm/event-listeners-706d4309.js.map +1 -0
- package/dist/esm/{execution-control-e0892a05.js → execution-control-2ebaf4ef.js} +15 -15
- package/dist/esm/{execution-control-e0892a05.js.map → execution-control-2ebaf4ef.js.map} +1 -1
- package/dist/esm/focus-visible-d9dbfeef.js +45 -0
- package/dist/esm/{focus-visible-fc6ac671.js.map → focus-visible-d9dbfeef.js.map} +1 -1
- package/dist/esm/form-4b145b7a.js +18 -0
- package/dist/esm/{form-81252534.js.map → form-4b145b7a.js.map} +1 -1
- package/dist/esm/form-control-6b30894f.js +34 -0
- package/dist/esm/form-control-6b30894f.js.map +1 -0
- package/dist/{cjs/index-900437fc.js → esm/index-17d8173e.js} +543 -370
- package/dist/esm/index-17d8173e.js.map +1 -0
- package/dist/esm/index.js +96 -82
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/modal-96526245.js +49 -0
- package/dist/esm/modal-96526245.js.map +1 -0
- package/dist/esm/{popover-136d1f73.js → popover-25996e62.js} +99 -99
- package/dist/esm/popover-25996e62.js.map +1 -0
- package/dist/esm/popup-e8049817.js +98 -0
- package/dist/esm/{popup-7f89a001.js.map → popup-e8049817.js.map} +1 -1
- package/dist/esm/scroll-3e16851e.js +64 -0
- package/dist/esm/{scroll-3fb087a2.js.map → scroll-3e16851e.js.map} +1 -1
- package/dist/esm/set-attributes_2.entry.js +50 -50
- package/dist/esm/set-attributes_2.entry.js.map +1 -1
- package/dist/esm/six-alert.entry.js +109 -109
- package/dist/esm/six-alert.entry.js.map +1 -1
- package/dist/esm/six-avatar.entry.js +20 -20
- package/dist/esm/six-avatar.entry.js.map +1 -1
- package/dist/esm/six-badge.entry.js +22 -22
- package/dist/esm/six-badge.entry.js.map +1 -1
- package/dist/esm/six-button.entry.js +95 -95
- package/dist/esm/six-button.entry.js.map +1 -1
- package/dist/esm/six-card.entry.js +7 -7
- package/dist/esm/six-card.entry.js.map +1 -1
- package/dist/esm/six-checkbox.entry.js +111 -108
- package/dist/esm/six-checkbox.entry.js.map +1 -1
- package/dist/esm/six-datepicker.entry.js +833 -838
- package/dist/esm/six-datepicker.entry.js.map +1 -1
- package/dist/esm/six-details.entry.js +127 -127
- package/dist/esm/six-details.entry.js.map +1 -1
- package/dist/esm/six-dialog.entry.js +128 -128
- package/dist/esm/six-dialog.entry.js.map +1 -1
- package/dist/esm/six-drawer.entry.js +146 -146
- package/dist/esm/six-drawer.entry.js.map +1 -1
- package/dist/esm/six-dropdown_2.entry.js +634 -634
- package/dist/esm/six-dropdown_2.entry.js.map +1 -1
- package/dist/esm/six-error-page.entry.js +82 -82
- package/dist/esm/six-error-page.entry.js.map +1 -1
- package/dist/esm/six-error.entry.js +17 -0
- package/dist/esm/six-error.entry.js.map +1 -0
- package/dist/esm/six-file-list-item.entry.js +33 -33
- package/dist/esm/six-file-list-item.entry.js.map +1 -1
- package/dist/esm/six-file-list.entry.js +7 -7
- package/dist/esm/six-file-list.entry.js.map +1 -1
- package/dist/esm/six-file-upload.entry.js +98 -98
- package/dist/esm/six-file-upload.entry.js.map +1 -1
- package/dist/esm/six-footer.entry.js +7 -7
- package/dist/esm/six-footer.entry.js.map +1 -1
- package/dist/esm/six-group-label.entry.js +43 -43
- package/dist/esm/six-group-label.entry.js.map +1 -1
- package/dist/esm/six-header.entry.js +155 -155
- package/dist/esm/six-header.entry.js.map +1 -1
- package/dist/esm/six-icon-button.entry.js +32 -32
- package/dist/esm/six-icon-button.entry.js.map +1 -1
- package/dist/esm/six-icon.entry.js +21 -21
- package/dist/esm/six-icon.entry.js.map +1 -1
- package/dist/esm/six-input.entry.js +190 -187
- package/dist/esm/six-input.entry.js.map +1 -1
- package/dist/esm/six-item-picker.entry.js +307 -307
- package/dist/esm/six-item-picker.entry.js.map +1 -1
- package/dist/esm/six-language-switcher.entry.js +46 -46
- package/dist/esm/six-language-switcher.entry.js.map +1 -1
- package/dist/esm/six-layout-grid.entry.js +20 -20
- package/dist/esm/six-layout-grid.entry.js.map +1 -1
- package/dist/esm/six-main-container.entry.js +9 -9
- package/dist/esm/six-main-container.entry.js.map +1 -1
- package/dist/esm/six-menu-divider.entry.js +7 -7
- package/dist/esm/six-menu-divider.entry.js.map +1 -1
- package/dist/esm/six-menu-item.entry.js +49 -49
- package/dist/esm/six-menu-item.entry.js.map +1 -1
- package/dist/esm/six-menu-label.entry.js +7 -7
- package/dist/esm/six-menu-label.entry.js.map +1 -1
- package/dist/esm/six-picto.entry.js +14 -14
- package/dist/esm/six-picto.entry.js.map +1 -1
- package/dist/esm/six-progress-bar.entry.js +14 -14
- package/dist/esm/six-progress-bar.entry.js.map +1 -1
- package/dist/esm/six-progress-ring.entry.js +29 -29
- package/dist/esm/six-progress-ring.entry.js.map +1 -1
- package/dist/esm/six-radio.entry.js +103 -103
- package/dist/esm/six-radio.entry.js.map +1 -1
- package/dist/esm/six-range.entry.js +180 -177
- package/dist/esm/six-range.entry.js.map +1 -1
- package/dist/esm/six-root.entry.js +30 -30
- package/dist/esm/six-root.entry.js.map +1 -1
- package/dist/esm/six-search-field.entry.js +43 -43
- package/dist/esm/six-search-field.entry.js.map +1 -1
- package/dist/esm/six-select.entry.js +365 -362
- package/dist/esm/six-select.entry.js.map +1 -1
- package/dist/esm/six-sidebar-item-group.entry.js +56 -45
- package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
- package/dist/esm/six-sidebar-item.entry.js +17 -15
- package/dist/esm/six-sidebar-item.entry.js.map +1 -1
- package/dist/esm/six-sidebar.entry.js +173 -173
- package/dist/esm/six-sidebar.entry.js.map +1 -1
- package/dist/esm/six-spinner.entry.js +14 -14
- package/dist/esm/six-spinner.entry.js.map +1 -1
- package/dist/esm/six-switch.entry.js +107 -89
- package/dist/esm/six-switch.entry.js.map +1 -1
- package/dist/esm/six-tab-group.entry.js +230 -235
- package/dist/esm/six-tab-group.entry.js.map +1 -1
- package/dist/esm/six-tab-panel.entry.js +13 -13
- package/dist/esm/six-tab-panel.entry.js.map +1 -1
- package/dist/esm/six-tab.entry.js +55 -39
- package/dist/esm/six-tab.entry.js.map +1 -1
- package/dist/esm/six-tag.entry.js +54 -32
- package/dist/esm/six-tag.entry.js.map +1 -1
- package/dist/esm/six-textarea.entry.js +181 -178
- package/dist/esm/six-textarea.entry.js.map +1 -1
- package/dist/esm/six-tile.entry.js +76 -76
- package/dist/esm/six-tile.entry.js.map +1 -1
- package/dist/esm/six-timepicker.entry.js +347 -352
- package/dist/esm/six-timepicker.entry.js.map +1 -1
- package/dist/esm/six-tooltip.entry.js +148 -148
- package/dist/esm/six-tooltip.entry.js.map +1 -1
- package/dist/esm/slot-41bc439a.js +48 -0
- package/dist/esm/slot-41bc439a.js.map +1 -0
- package/dist/esm/types-07748c42.js +17 -0
- package/dist/esm/{types-59b455aa.js.map → types-07748c42.js.map} +1 -1
- package/dist/esm/ui-library.js +4 -4
- package/dist/esm/ui-library.js.map +1 -1
- package/dist/types/components/six-alert/six-alert.d.ts +40 -40
- package/dist/types/components/six-avatar/six-avatar.d.ts +11 -11
- package/dist/types/components/six-badge/six-badge.d.ts +7 -7
- package/dist/types/components/six-button/six-button.d.ts +48 -48
- package/dist/types/components/six-card/six-card.d.ts +1 -1
- package/dist/types/components/six-checkbox/six-checkbox.d.ts +58 -55
- package/dist/types/components/six-datepicker/components/day-selection.d.ts +3 -3
- package/dist/types/components/six-datepicker/components/month-selection.d.ts +3 -3
- package/dist/types/components/six-datepicker/components/year-selection.d.ts +3 -3
- package/dist/types/components/six-datepicker/six-date-formats.d.ts +20 -20
- package/dist/types/components/six-datepicker/six-datepicker.d.ts +188 -186
- package/dist/types/components/six-details/six-details.d.ts +42 -42
- package/dist/types/components/six-dialog/six-dialog.d.ts +50 -50
- package/dist/types/components/six-drawer/six-drawer.d.ts +58 -58
- package/dist/types/components/six-dropdown/six-dropdown.d.ts +112 -112
- package/dist/types/components/six-error/six-error.d.ts +9 -0
- package/dist/types/components/six-error-page/six-error-page.d.ts +25 -25
- package/dist/types/components/six-file-list/six-file-list.d.ts +1 -1
- package/dist/types/components/six-file-list-item/six-file-list-item.d.ts +23 -23
- package/dist/types/components/six-file-upload/six-file-upload.d.ts +33 -33
- package/dist/types/components/six-footer/six-footer.d.ts +1 -1
- package/dist/types/components/six-group-label/six-group-label.d.ts +22 -22
- package/dist/types/components/six-header/six-header.d.ts +55 -55
- package/dist/types/components/six-icon/six-icon.d.ts +5 -5
- package/dist/types/components/six-icon-button/six-icon-button.d.ts +18 -18
- package/dist/types/components/six-input/six-input.d.ts +108 -103
- package/dist/types/components/six-item-picker/six-item-picker.d.ts +88 -88
- package/dist/types/components/six-item-picker/types.d.ts +7 -7
- package/dist/types/components/six-language-switcher/six-language-switcher.d.ts +15 -15
- package/dist/types/components/six-layout-grid/six-layout-grid.d.ts +6 -6
- package/dist/types/components/six-main-container/six-main-container.d.ts +4 -4
- package/dist/types/components/six-menu/six-menu.d.ts +63 -63
- package/dist/types/components/six-menu-divider/six-menu-divider.d.ts +1 -1
- package/dist/types/components/six-menu-item/six-menu-item.d.ts +21 -21
- package/dist/types/components/six-menu-label/six-menu-label.d.ts +1 -1
- package/dist/types/components/six-picto/six-picto.d.ts +6 -6
- package/dist/types/components/six-progress-bar/six-progress-bar.d.ts +5 -5
- package/dist/types/components/six-progress-ring/six-progress-ring.d.ts +11 -11
- package/dist/types/components/six-radio/six-radio.d.ts +38 -38
- package/dist/types/components/six-range/six-range.d.ts +75 -72
- package/dist/types/components/six-root/six-root.d.ts +18 -18
- package/dist/types/components/six-search-field/six-search-field.d.ts +20 -20
- package/dist/types/components/six-select/six-select.d.ts +122 -119
- package/dist/types/components/six-select/util.d.ts +1 -1
- package/dist/types/components/six-sidebar/six-sidebar.d.ts +45 -45
- package/dist/types/components/six-sidebar-item/six-sidebar-item.d.ts +12 -7
- package/dist/types/components/six-sidebar-item-group/six-sidebar-item-group.d.ts +25 -19
- package/dist/types/components/six-spinner/six-spinner.d.ts +5 -5
- package/dist/types/components/six-stage-indicator/six-stage-indicator.d.ts +3 -3
- package/dist/types/components/six-switch/six-switch.d.ts +49 -42
- package/dist/types/components/six-tab/six-tab.d.ts +20 -20
- package/dist/types/components/six-tab-group/six-tab-group.d.ts +35 -38
- package/dist/types/components/six-tab-panel/six-tab-panel.d.ts +7 -7
- package/dist/types/components/six-tag/six-tag.d.ts +20 -12
- package/dist/types/components/six-textarea/six-textarea.d.ts +89 -86
- package/dist/types/components/six-tile/six-tile.d.ts +31 -31
- package/dist/types/components/six-timepicker/six-timepicker.d.ts +154 -151
- package/dist/types/components/six-tooltip/six-tooltip.d.ts +55 -55
- package/dist/types/components.d.ts +505 -16
- package/dist/types/functional-components/form-control/form-control.d.ts +32 -28
- package/dist/types/stencil-public-runtime.d.ts +34 -3
- package/dist/types/utils/animation.d.ts +12 -0
- package/dist/types/utils/date-util.d.ts +50 -50
- package/dist/types/utils/error-messages.d.ts +26 -25
- package/dist/types/utils/event-listeners.d.ts +11 -11
- package/dist/types/utils/focus-visible.d.ts +2 -2
- package/dist/types/utils/modal.d.ts +8 -8
- package/dist/types/utils/offset.d.ts +2 -2
- package/dist/types/utils/popover.d.ts +21 -21
- package/dist/types/utils/time.util.d.ts +6 -6
- package/dist/types/utils/types.d.ts +1 -1
- package/dist/types/wrappers/set-attributes/set-attributes.d.ts +7 -7
- package/dist/ui-library/index.esm.js +1 -1
- package/dist/ui-library/index.esm.js.map +1 -1
- package/dist/ui-library/{p-5654e4c7.js → p-06ba4450.js} +1 -1
- package/dist/ui-library/{p-0f510624.js → p-0861899a.js} +1 -1
- package/dist/ui-library/p-0a81b42c.entry.js +2 -0
- package/dist/ui-library/p-0a81b42c.entry.js.map +1 -0
- package/dist/ui-library/p-0beec94f.js +3 -0
- package/dist/ui-library/p-0beec94f.js.map +1 -0
- package/dist/ui-library/{p-ae601a0f.entry.js → p-100d5a25.entry.js} +2 -2
- package/dist/ui-library/{p-613283a7.entry.js → p-178f5782.entry.js} +2 -2
- package/dist/ui-library/p-19a61686.entry.js +2 -0
- package/dist/ui-library/p-19a61686.entry.js.map +1 -0
- package/dist/ui-library/{p-ac099e6b.entry.js → p-1d0c5929.entry.js} +2 -2
- package/dist/ui-library/{p-37557787.entry.js → p-23c02c98.entry.js} +2 -2
- package/dist/ui-library/{p-7afafb9d.entry.js → p-2f9f2532.entry.js} +2 -2
- package/dist/ui-library/{p-ee950ce2.entry.js → p-3187bc23.entry.js} +2 -2
- package/dist/ui-library/{p-19ed7a4c.entry.js → p-32e1a5ab.entry.js} +2 -2
- package/dist/ui-library/{p-3cc5addb.entry.js → p-3d54ecf2.entry.js} +2 -2
- package/dist/ui-library/p-4229f7e8.entry.js +2 -0
- package/dist/ui-library/p-4229f7e8.entry.js.map +1 -0
- package/dist/ui-library/p-479d8087.entry.js +2 -0
- package/dist/ui-library/p-479d8087.entry.js.map +1 -0
- package/dist/ui-library/{p-411ed539.entry.js → p-49aa8d1e.entry.js} +2 -2
- package/dist/ui-library/{p-a0f290d0.entry.js → p-58661675.entry.js} +2 -2
- package/dist/ui-library/p-5d43ea07.entry.js +2 -0
- package/dist/ui-library/p-5d43ea07.entry.js.map +1 -0
- package/dist/ui-library/p-6907a7dc.js +2 -0
- package/dist/ui-library/p-6907a7dc.js.map +1 -0
- package/dist/ui-library/p-6aa2929a.entry.js +2 -0
- package/dist/ui-library/p-6aa2929a.entry.js.map +1 -0
- package/dist/ui-library/{p-264d4ea8.entry.js → p-7432d409.entry.js} +2 -2
- package/dist/ui-library/{p-5af44076.entry.js → p-74a714c0.entry.js} +2 -2
- package/dist/ui-library/{p-cdaed936.entry.js → p-76825395.entry.js} +2 -2
- package/dist/ui-library/{p-0fdb185d.js → p-7f856f00.js} +1 -1
- package/dist/ui-library/{p-dfed33c5.entry.js → p-816f857d.entry.js} +2 -2
- package/dist/ui-library/{p-1f18768a.js → p-8227aaed.js} +2 -2
- package/dist/ui-library/{p-8c0971e0.js → p-842b492e.js} +1 -1
- package/dist/ui-library/p-882fbf6f.entry.js +2 -0
- package/dist/ui-library/p-882fbf6f.entry.js.map +1 -0
- package/dist/ui-library/{p-9c1be3fb.entry.js → p-88fd4973.entry.js} +2 -2
- package/dist/ui-library/{p-330a4988.entry.js → p-8b750c9e.entry.js} +2 -2
- package/dist/ui-library/{p-7d95def3.js → p-8bfb4bfc.js} +1 -1
- package/dist/ui-library/p-911eb578.entry.js +2 -0
- package/dist/ui-library/p-911eb578.entry.js.map +1 -0
- package/dist/ui-library/p-93fcda4a.entry.js +2 -0
- package/dist/ui-library/p-93fcda4a.entry.js.map +1 -0
- package/dist/ui-library/{p-99e24daf.entry.js → p-981b3228.entry.js} +2 -2
- package/dist/ui-library/{p-99e24daf.entry.js.map → p-981b3228.entry.js.map} +1 -1
- package/dist/ui-library/{p-9ace84c7.js → p-998de05d.js} +1 -1
- package/dist/ui-library/{p-a55c7258.entry.js → p-9b1ff147.entry.js} +2 -2
- package/dist/ui-library/{p-698bb2c8.js → p-a1502802.js} +1 -1
- package/dist/ui-library/p-a21f8d06.entry.js +2 -0
- package/dist/ui-library/p-a21f8d06.entry.js.map +1 -0
- package/dist/ui-library/{p-95fbdd0b.entry.js → p-a2461274.entry.js} +2 -2
- package/dist/ui-library/p-a4e4620c.entry.js +2 -0
- package/dist/ui-library/p-a4e4620c.entry.js.map +1 -0
- package/dist/ui-library/{p-a6a9ee96.entry.js → p-ada23fe3.entry.js} +2 -2
- package/dist/ui-library/{p-cd67da3d.entry.js → p-b5ac1219.entry.js} +2 -2
- package/dist/ui-library/{p-c03ebf7d.entry.js → p-ba247565.entry.js} +2 -2
- package/dist/ui-library/p-bdb79948.entry.js +2 -0
- package/dist/ui-library/p-bdb79948.entry.js.map +1 -0
- package/dist/ui-library/p-c021a9c9.entry.js +2 -0
- package/dist/ui-library/p-c021a9c9.entry.js.map +1 -0
- package/dist/ui-library/p-c07b1240.entry.js +2 -0
- package/dist/ui-library/{p-d367f4f9.entry.js.map → p-c07b1240.entry.js.map} +1 -1
- package/dist/ui-library/p-c12a94ce.entry.js +2 -0
- package/dist/ui-library/p-c12a94ce.entry.js.map +1 -0
- package/dist/ui-library/{p-b351f889.entry.js → p-c1675a45.entry.js} +2 -2
- package/dist/ui-library/{p-724875b0.entry.js → p-c2df8c27.entry.js} +2 -2
- package/dist/ui-library/p-c86aa5b3.entry.js +2 -0
- package/dist/ui-library/p-c86aa5b3.entry.js.map +1 -0
- package/dist/ui-library/{p-91b51800.entry.js → p-cd35b3c6.entry.js} +2 -2
- package/dist/ui-library/p-d2cf4280.entry.js +2 -0
- package/dist/ui-library/p-d2cf4280.entry.js.map +1 -0
- package/dist/ui-library/{p-13b43e04.entry.js → p-d310a6dd.entry.js} +2 -2
- package/dist/ui-library/{p-7e3ad38a.entry.js → p-d6838141.entry.js} +2 -2
- package/dist/ui-library/{p-ed381ad9.entry.js → p-dc908cbb.entry.js} +2 -2
- package/dist/ui-library/p-dc908cbb.entry.js.map +1 -0
- package/dist/ui-library/{p-346f9557.entry.js → p-dfb6bff6.entry.js} +2 -2
- package/dist/ui-library/{p-878226a0.entry.js → p-ee71e3a3.entry.js} +2 -2
- package/dist/ui-library/{p-1d5ee1a0.entry.js → p-ef317d69.entry.js} +2 -2
- package/dist/ui-library/{p-59210f0b.js → p-f2ef23c4.js} +1 -1
- package/dist/ui-library/p-f385f1c2.entry.js +2 -0
- package/dist/ui-library/p-f385f1c2.entry.js.map +1 -0
- package/dist/ui-library/{p-9b354f5d.entry.js → p-f73a6bdc.entry.js} +2 -2
- package/dist/ui-library/{p-15559d38.js → p-faa04bb5.js} +1 -1
- package/dist/ui-library/p-fcd57e0a.entry.js +2 -0
- package/dist/ui-library/p-fcd57e0a.entry.js.map +1 -0
- package/dist/ui-library/ui-library.css +2 -2
- 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 -12
- package/dist/cjs/event-listeners-fdfe838c.js +0 -61
- package/dist/cjs/event-listeners-fdfe838c.js.map +0 -1
- package/dist/cjs/focus-visible-ae2470dd.js +0 -47
- package/dist/cjs/form-2df8c5bb.js +0 -20
- package/dist/cjs/form-control-d369af14.js +0 -33
- package/dist/cjs/form-control-d369af14.js.map +0 -1
- package/dist/cjs/index-900437fc.js.map +0 -1
- package/dist/cjs/modal-d5f074c7.js +0 -52
- package/dist/cjs/modal-d5f074c7.js.map +0 -1
- package/dist/cjs/popover-2df7e154.js.map +0 -1
- package/dist/cjs/popup-f1d9910f.js +0 -103
- package/dist/cjs/scroll-03678de1.js +0 -69
- package/dist/cjs/scroll-03678de1.js.map +0 -1
- package/dist/cjs/slot-6e6a400f.js +0 -53
- package/dist/cjs/slot-6e6a400f.js.map +0 -1
- package/dist/cjs/types-47199040.js +0 -17
- package/dist/collection/components/six-tab/test/six-tab.spec.js +0 -20
- package/dist/collection/components/six-tab/test/six-tab.spec.js.map +0 -1
- package/dist/collection/components/six-tab-group/test/six-tab-group.spec.js +0 -45
- package/dist/collection/components/six-tab-group/test/six-tab-group.spec.js.map +0 -1
- package/dist/esm/event-listeners-f6e5b0ab.js +0 -59
- package/dist/esm/event-listeners-f6e5b0ab.js.map +0 -1
- package/dist/esm/focus-visible-fc6ac671.js +0 -45
- package/dist/esm/form-81252534.js +0 -18
- package/dist/esm/form-control-32cb533f.js +0 -31
- package/dist/esm/form-control-32cb533f.js.map +0 -1
- package/dist/esm/index-8a74f992.js.map +0 -1
- package/dist/esm/modal-7d32e141.js +0 -49
- package/dist/esm/modal-7d32e141.js.map +0 -1
- package/dist/esm/popover-136d1f73.js.map +0 -1
- package/dist/esm/popup-7f89a001.js +0 -98
- package/dist/esm/scroll-3fb087a2.js +0 -64
- package/dist/esm/slot-ad36df3a.js +0 -48
- package/dist/esm/slot-ad36df3a.js.map +0 -1
- package/dist/esm/types-59b455aa.js +0 -17
- package/dist/ui-library/p-02981b91.entry.js +0 -2
- package/dist/ui-library/p-02981b91.entry.js.map +0 -1
- package/dist/ui-library/p-1256cc0a.entry.js +0 -2
- package/dist/ui-library/p-1256cc0a.entry.js.map +0 -1
- package/dist/ui-library/p-21b3b321.entry.js +0 -2
- package/dist/ui-library/p-21b3b321.entry.js.map +0 -1
- package/dist/ui-library/p-29ac3d7d.entry.js +0 -2
- package/dist/ui-library/p-29ac3d7d.entry.js.map +0 -1
- package/dist/ui-library/p-314b2096.entry.js +0 -2
- package/dist/ui-library/p-314b2096.entry.js.map +0 -1
- package/dist/ui-library/p-3d9de119.entry.js +0 -2
- package/dist/ui-library/p-3d9de119.entry.js.map +0 -1
- package/dist/ui-library/p-4705a51e.entry.js +0 -2
- package/dist/ui-library/p-4705a51e.entry.js.map +0 -1
- package/dist/ui-library/p-4abed9df.entry.js +0 -2
- package/dist/ui-library/p-4abed9df.entry.js.map +0 -1
- package/dist/ui-library/p-5d6b7353.entry.js +0 -2
- package/dist/ui-library/p-5d6b7353.entry.js.map +0 -1
- package/dist/ui-library/p-6153045b.js +0 -3
- package/dist/ui-library/p-6153045b.js.map +0 -1
- package/dist/ui-library/p-6197fe2f.entry.js +0 -2
- package/dist/ui-library/p-6197fe2f.entry.js.map +0 -1
- package/dist/ui-library/p-72254eef.entry.js +0 -2
- package/dist/ui-library/p-72254eef.entry.js.map +0 -1
- package/dist/ui-library/p-83864cfe.entry.js +0 -2
- package/dist/ui-library/p-83864cfe.entry.js.map +0 -1
- package/dist/ui-library/p-9f0b43f9.entry.js +0 -2
- package/dist/ui-library/p-9f0b43f9.entry.js.map +0 -1
- package/dist/ui-library/p-b550a258.entry.js +0 -2
- package/dist/ui-library/p-b550a258.entry.js.map +0 -1
- package/dist/ui-library/p-bf87464b.entry.js +0 -2
- package/dist/ui-library/p-bf87464b.entry.js.map +0 -1
- package/dist/ui-library/p-d367f4f9.entry.js +0 -2
- package/dist/ui-library/p-d42c2025.js +0 -2
- package/dist/ui-library/p-d42c2025.js.map +0 -1
- package/dist/ui-library/p-ed381ad9.entry.js.map +0 -1
- package/dist/ui-library/p-ee8342e1.entry.js +0 -2
- package/dist/ui-library/p-ee8342e1.entry.js.map +0 -1
- package/dist/ui-library/p-ff90ffd1.entry.js +0 -2
- package/dist/ui-library/p-ff90ffd1.entry.js.map +0 -1
- /package/dist/ui-library/{p-5654e4c7.js.map → p-06ba4450.js.map} +0 -0
- /package/dist/ui-library/{p-0f510624.js.map → p-0861899a.js.map} +0 -0
- /package/dist/ui-library/{p-ae601a0f.entry.js.map → p-100d5a25.entry.js.map} +0 -0
- /package/dist/ui-library/{p-613283a7.entry.js.map → p-178f5782.entry.js.map} +0 -0
- /package/dist/ui-library/{p-ac099e6b.entry.js.map → p-1d0c5929.entry.js.map} +0 -0
- /package/dist/ui-library/{p-37557787.entry.js.map → p-23c02c98.entry.js.map} +0 -0
- /package/dist/ui-library/{p-7afafb9d.entry.js.map → p-2f9f2532.entry.js.map} +0 -0
- /package/dist/ui-library/{p-ee950ce2.entry.js.map → p-3187bc23.entry.js.map} +0 -0
- /package/dist/ui-library/{p-19ed7a4c.entry.js.map → p-32e1a5ab.entry.js.map} +0 -0
- /package/dist/ui-library/{p-3cc5addb.entry.js.map → p-3d54ecf2.entry.js.map} +0 -0
- /package/dist/ui-library/{p-411ed539.entry.js.map → p-49aa8d1e.entry.js.map} +0 -0
- /package/dist/ui-library/{p-a0f290d0.entry.js.map → p-58661675.entry.js.map} +0 -0
- /package/dist/ui-library/{p-264d4ea8.entry.js.map → p-7432d409.entry.js.map} +0 -0
- /package/dist/ui-library/{p-5af44076.entry.js.map → p-74a714c0.entry.js.map} +0 -0
- /package/dist/ui-library/{p-cdaed936.entry.js.map → p-76825395.entry.js.map} +0 -0
- /package/dist/ui-library/{p-0fdb185d.js.map → p-7f856f00.js.map} +0 -0
- /package/dist/ui-library/{p-dfed33c5.entry.js.map → p-816f857d.entry.js.map} +0 -0
- /package/dist/ui-library/{p-1f18768a.js.map → p-8227aaed.js.map} +0 -0
- /package/dist/ui-library/{p-8c0971e0.js.map → p-842b492e.js.map} +0 -0
- /package/dist/ui-library/{p-9c1be3fb.entry.js.map → p-88fd4973.entry.js.map} +0 -0
- /package/dist/ui-library/{p-330a4988.entry.js.map → p-8b750c9e.entry.js.map} +0 -0
- /package/dist/ui-library/{p-7d95def3.js.map → p-8bfb4bfc.js.map} +0 -0
- /package/dist/ui-library/{p-9ace84c7.js.map → p-998de05d.js.map} +0 -0
- /package/dist/ui-library/{p-a55c7258.entry.js.map → p-9b1ff147.entry.js.map} +0 -0
- /package/dist/ui-library/{p-698bb2c8.js.map → p-a1502802.js.map} +0 -0
- /package/dist/ui-library/{p-95fbdd0b.entry.js.map → p-a2461274.entry.js.map} +0 -0
- /package/dist/ui-library/{p-a6a9ee96.entry.js.map → p-ada23fe3.entry.js.map} +0 -0
- /package/dist/ui-library/{p-cd67da3d.entry.js.map → p-b5ac1219.entry.js.map} +0 -0
- /package/dist/ui-library/{p-c03ebf7d.entry.js.map → p-ba247565.entry.js.map} +0 -0
- /package/dist/ui-library/{p-b351f889.entry.js.map → p-c1675a45.entry.js.map} +0 -0
- /package/dist/ui-library/{p-724875b0.entry.js.map → p-c2df8c27.entry.js.map} +0 -0
- /package/dist/ui-library/{p-91b51800.entry.js.map → p-cd35b3c6.entry.js.map} +0 -0
- /package/dist/ui-library/{p-13b43e04.entry.js.map → p-d310a6dd.entry.js.map} +0 -0
- /package/dist/ui-library/{p-7e3ad38a.entry.js.map → p-d6838141.entry.js.map} +0 -0
- /package/dist/ui-library/{p-346f9557.entry.js.map → p-dfb6bff6.entry.js.map} +0 -0
- /package/dist/ui-library/{p-878226a0.entry.js.map → p-ee71e3a3.entry.js.map} +0 -0
- /package/dist/ui-library/{p-1d5ee1a0.entry.js.map → p-ef317d69.entry.js.map} +0 -0
- /package/dist/ui-library/{p-59210f0b.js.map → p-f2ef23c4.js.map} +0 -0
- /package/dist/ui-library/{p-9b354f5d.entry.js.map → p-f73a6bdc.entry.js.map} +0 -0
- /package/dist/ui-library/{p-15559d38.js.map → p-faa04bb5.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"six-item-picker.js","sourceRoot":"","sources":["../../../src/components/six-item-picker/six-item-picker.tsx"],"names":[],"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Prop, State, Watch } from '@stencil/core';\nimport { ItemPickerPaddingDirection, ItemPickerType } from './types';\nimport { debounce, DEFAULT_DEBOUNCE_FAST, DEFAULT_DEBOUNCE_INSANELY_FAST } from '../../utils/execution-control';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { TimePeriod } from '../../utils/time.util';\n\ninterface Alphabet {\n alphabet: string[];\n letterIndexes: Record<string, number>;\n}\n\nconst uppercaseLetters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\nconst upperAndLowercaseLetters = [...uppercaseLetters].flatMap((c) => [c, c.toLowerCase()]);\nconst ALPHABET: Alphabet = {\n alphabet: upperAndLowercaseLetters,\n letterIndexes: Object.fromEntries(upperAndLowercaseLetters.map((c, i) => [c, i])),\n};\nconst CAPITAL_ALPHABET: Alphabet = {\n alphabet: [...uppercaseLetters].flatMap((c) => [c]),\n letterIndexes: Object.fromEntries([...uppercaseLetters].map((c, i) => [c, i])),\n};\nconst LOWERCASE_ALPHABET: Alphabet = {\n alphabet: [...uppercaseLetters.toLowerCase()].flatMap((c) => [c]),\n letterIndexes: Object.fromEntries([...uppercaseLetters.toLowerCase()].map((c, i) => [c, i])),\n};\n\nconst createItemIndexes = (arr: string[]): Record<string, number> => {\n return Object.fromEntries([...arr].map((c, i) => [c, i]));\n};\n\nconst TAG = `[SIX-ITEM-PICKER]`;\n\nconst subtract = (a: number, b: number) => a - b;\nconst add = (a: number, b: number) => a + b;\n\nexport type SixItemPickerChangePayload = number | string | boolean | TimePeriod;\n\nconst DEBOUNCE_ITEM_PICKER_LISTENER = 'debounced-item-picker';\n\n/**\n * @since 2.0.0\n * @status experimental\n * @part container - The whole component container\n * @part up - The up button\n * @part content - The content area\n * @part down - The down button\n *\n */\n@Component({\n tag: 'six-item-picker',\n styleUrl: 'six-item-picker.scss',\n shadow: true,\n})\nexport class SixItemPicker {\n private readonly eventListeners = new EventListeners();\n\n @Element() host!: HTMLSixItemPickerElement;\n\n /** The item picker's value attribute. */\n @Prop({ mutable: true, reflect: true }) value: number | string = '';\n\n /** The type of items you want to rotate through. */\n @Prop() type: ItemPickerType = ItemPickerType.NUMBER;\n\n /** The minimum value allowed to pick. */\n @Prop({ reflect: true, mutable: true }) min?: number | string;\n\n /** The maximum value allowed to pick. */\n @Prop({ reflect: true, mutable: true }) max?: number | string;\n\n /** Define whether the picker should to a roundtrip i.e. start at max when reaching min and vice versa. */\n @Prop({ reflect: true }) roundtrip = true;\n\n /** Defines how many steps should be taken when navigating */\n @Prop({ reflect: true }) step = 1;\n\n /** Defines a custom list of items you can iterate through */\n @Prop() items?: string[];\n\n /** Defines whether the items should be padded */\n @Prop() padded = false;\n\n /** Defines the length of the padded area */\n @Prop() paddingLength = 2;\n\n /** Defines the character used for padding */\n @Prop() paddingChar = '0';\n\n /** Defines whether the padding should be before or after the value. You can either use 'before' or 'after'. By default,\n * before is selected */\n @Prop() paddingDirection: ItemPickerPaddingDirection = ItemPickerPaddingDirection.BEFORE;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger faster switching between items.\n */\n @Prop() timeout = DEFAULT_DEBOUNCE_FAST;\n\n /**\n * Set the amount of time, in milliseconds, to wait between switching to next item when mouse button is held pressed.\n */\n @Prop() interval = DEFAULT_DEBOUNCE_INSANELY_FAST;\n\n /**\n * Emitted when the item picker's value changes\n */\n @Event({ eventName: 'six-item-picker-change' }) sixChange!: EventEmitter<SixItemPickerChangePayload>;\n\n /**\n * Emitted when the item picker's value changes, but debounced\n */\n @Event({ eventName: 'six-item-picker-change-debounced' })\n sixChangeDebounced!: EventEmitter<SixItemPickerChangePayload>;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger the `six-item-picker-change-debounced` event.\n * If you want your change debounce event to not trigger when keeping the nav button pressed before, make sure debounce\n * is a bit bigger than timeout, otherwise keeping the button pressed will trigger the event twice: once you click\n * (and keep pressed) and once you release\n */\n @Prop() debounce = DEFAULT_DEBOUNCE_FAST;\n\n @Watch('value')\n handleValueChange() {\n this.setup();\n }\n\n @Watch('debounce')\n protected debounceChanged() {\n this.eventListeners.removeByIdentifier(DEBOUNCE_ITEM_PICKER_LISTENER);\n this.eventListeners.add(\n this.host,\n 'six-item-picker-change',\n debounce(this.handleSixItemPickerChangeDebounced, this.debounce),\n DEBOUNCE_ITEM_PICKER_LISTENER\n );\n }\n\n @Watch('items')\n handleSetChange() {\n this.setup();\n this.min = this._items[0];\n this.max = this.getLastStringItem();\n }\n\n @State() _items: string[] = [];\n @State() _itemIndexes: Record<string, number> = {};\n\n // used for fast increasing when keeping the mouse button held down\n private _timeoutNext!: ReturnType<typeof setTimeout>;\n private _intervalNext!: ReturnType<typeof setInterval>;\n\n private _timeoutPrev!: ReturnType<typeof setTimeout>;\n private _intervalPrev!: ReturnType<typeof setInterval>;\n\n componentWillLoad() {\n this.setup();\n }\n\n componentDidLoad() {\n this.eventListeners.add(\n this.host,\n 'six-item-picker-change',\n debounce(this.handleSixItemPickerChangeDebounced, this.debounce),\n DEBOUNCE_ITEM_PICKER_LISTENER\n );\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n\n private handleSixItemPickerChangeDebounced = () => {\n this.sixChangeDebounced.emit(this.value);\n };\n\n private setup() {\n if (this.isNumber()) {\n this.setupNumberItems();\n } else {\n this.setUpStringItems();\n }\n }\n\n private setupNumberItems() {\n if (this.isInvalidNumber()) {\n console.warn(`${TAG} Expected number but value is not a number: \"${this.value}\"`);\n console.info(`${TAG} Will set value to either minimum or if not provided to zero.`);\n this.value = this.min ?? 0;\n }\n }\n\n private setUpStringItems() {\n this._items = this.getStringItems();\n this._itemIndexes = this.getItemIndexes();\n const itemsMissValue = this._items.find((i) => String(i) === String(this.value)) === undefined;\n if (itemsMissValue) {\n console.warn(`${TAG} Expected item from item set but value was not found in set: \"${this.value}\"`);\n console.info(`${TAG} Will set value to either minimum or if not provided to \"${this._items[0]}\".`);\n this.value = this._items[0];\n }\n\n if (this.min === undefined) {\n if (!this.roundtrip) {\n console.warn(`${TAG} Expected a min value`);\n console.info(`${TAG} Will set min value to ${this._items[0]}`);\n }\n this.min = this._items[0];\n }\n\n if (this.max === undefined) {\n const maxItem = this.getLastStringItem();\n if (!this.roundtrip) {\n console.warn(`${TAG} Expected a min value if roundtrip is enabled`);\n console.info(`${TAG} Will set min value to ${maxItem}`);\n }\n this.max = maxItem;\n }\n }\n\n private getLastStringItem() {\n return this._items[this._items.length - 1];\n }\n\n private getStringItems(): string[] {\n switch (this.type) {\n case ItemPickerType.NUMBER:\n console.warn(`${TAG}: unexpected type ${this.type}`);\n return [];\n case ItemPickerType.LETTER:\n return ALPHABET.alphabet;\n case ItemPickerType.CAPITAL_LETTER:\n return CAPITAL_ALPHABET.alphabet;\n case ItemPickerType.LOWER_LETTER:\n return LOWERCASE_ALPHABET.alphabet;\n case ItemPickerType.CUSTOM:\n if (this.items == null || this.items.length === 0) {\n console.warn(`${TAG}: no items defined for type ${this.type}`);\n return [];\n }\n return this.items;\n }\n }\n\n private getItemIndexes(): Record<string, number> {\n switch (this.type) {\n case ItemPickerType.NUMBER:\n console.warn(`${TAG}: unexpected type ${this.type}`);\n return {};\n case ItemPickerType.LETTER:\n return ALPHABET.letterIndexes;\n case ItemPickerType.CAPITAL_LETTER:\n return CAPITAL_ALPHABET.letterIndexes;\n case ItemPickerType.LOWER_LETTER:\n return LOWERCASE_ALPHABET.letterIndexes;\n case ItemPickerType.CUSTOM:\n return createItemIndexes(this._items);\n }\n }\n\n private previousItem() {\n if (this.isNumber()) {\n this.previousNumber();\n } else {\n this.previousStringItem();\n }\n\n this.sixChange.emit(this.value);\n }\n\n private previousNumber() {\n this.changeValue({\n isNextItemAllowed: () => !this.isPreviousNumberDisabled(),\n getNextItem: () => Number(this.value) - this.step,\n getRoundtripItem: () => Number(this.max),\n isRoundtripPossible: () => this.max === undefined && this.roundtrip,\n });\n }\n\n private previousStringItem() {\n const value = String(this.value);\n const minLetter = String(this.min);\n\n this.changeValue({\n isNextItemAllowed: () =>\n minLetter === undefined || this.getStringItemIndex(value) > this.getStringItemIndex(minLetter),\n getNextItem: () => this.getNextItemByOperation(subtract),\n getRoundtripItem: () => String(this.max),\n isRoundtripPossible: () => this.max == null && this.roundtrip,\n });\n }\n\n private nextItem() {\n if (this.isNumber()) {\n this.nextNumber();\n } else {\n this.nextStringItem();\n }\n\n this.sixChange.emit(this.value);\n }\n\n private nextNumber() {\n this.changeValue({\n isNextItemAllowed: () => !this.isNextNumberDisabled(),\n getNextItem: () => Number(this.value) + this.step,\n getRoundtripItem: () => Number(this.min),\n isRoundtripPossible: () => this.min === undefined && this.roundtrip,\n });\n }\n\n private getStringItemIndex(char: string): number {\n return this._itemIndexes[char];\n }\n\n private nextStringItem() {\n const value = String(this.value);\n const maxLetter = String(this.max);\n\n this.changeValue({\n isNextItemAllowed: () =>\n maxLetter === undefined || this.getStringItemIndex(value) < this.getStringItemIndex(maxLetter),\n getNextItem: () => this.getNextItemByOperation(add),\n getRoundtripItem: () => String(this.min),\n isRoundtripPossible: () => this.min === undefined && this.roundtrip,\n });\n }\n\n private getNextItemByOperation(operation: (a: number, b: number) => number) {\n const value = String(this.value);\n const nextIndexCandidate = operation(this.getStringItemIndex(value), this.step);\n const numberOfItems = this._items.length;\n const nextIndex = ((nextIndexCandidate % numberOfItems) + numberOfItems) % numberOfItems;\n return this._items[nextIndex];\n }\n\n private changeValue(params: {\n getNextItem: () => number | string;\n isNextItemAllowed: () => boolean;\n getRoundtripItem: () => number | string;\n isRoundtripPossible: () => boolean;\n }) {\n if (params.isNextItemAllowed()) {\n this.value = params.getNextItem();\n return;\n }\n\n if (params.isRoundtripPossible()) {\n console.error(\n `${TAG} Item picker is expected to perform a roundtrip, but either max or min value is missing so a roundtrip is not possible`\n );\n return;\n }\n\n if (this.roundtrip) {\n this.value = params.getRoundtripItem();\n return;\n }\n\n console.warn(\n `${TAG} Roundtrip is not allowed, but was still triggered, please report this issue to the developer of six-item-picker`\n );\n }\n\n private isNumber() {\n return this.type === ItemPickerType.NUMBER;\n }\n\n private isInvalidNumber() {\n return this.value === '' || isNaN(this.value as number);\n }\n\n private isNextDisabled() {\n if (this.roundtrip) {\n return false;\n }\n\n if (this.isNumber()) {\n return this.isNextNumberDisabled();\n } else {\n return this._itemIndexes[String(this.value)] + this.step > this._itemIndexes[String(this.max)];\n }\n }\n\n private isNextNumberDisabled() {\n return Number(this.value) + this.step > Number(this.max ?? Infinity);\n }\n\n private isPrevDisabled() {\n if (this.roundtrip) {\n return false;\n }\n\n if (this.isNumber()) {\n return this.isPreviousNumberDisabled();\n } else {\n return this._itemIndexes[String(this.value)] - this.step < this._itemIndexes[String(this.min)];\n }\n }\n\n private isPreviousNumberDisabled() {\n return Number(this.value) - this.step < Number(this.min ?? -Infinity);\n }\n\n private onMouseDownNext() {\n if (this.isNextDisabled()) {\n return;\n }\n\n this.nextItem();\n\n this._timeoutNext = setTimeout(() => {\n this._intervalNext = setInterval(() => {\n this.nextItem();\n }, this.interval);\n }, this.timeout);\n }\n\n private onMouseUpNext() {\n clearTimeout(this._timeoutNext);\n clearInterval(this._intervalNext);\n }\n\n private onMouseDownPrev() {\n if (this.isPrevDisabled()) {\n return;\n }\n\n this.previousItem();\n\n this._timeoutPrev = setTimeout(() => {\n this._intervalPrev = setInterval(() => {\n this.previousItem();\n }, this.interval);\n }, this.timeout);\n }\n\n private onMouseUpPrev() {\n clearTimeout(this._timeoutPrev);\n clearInterval(this._intervalPrev);\n }\n\n private getFormattedValue() {\n if (this.value === undefined || this.value === null) {\n return this.value;\n }\n\n if (!this.padded) {\n return this.value;\n }\n\n if (this.paddingDirection === ItemPickerPaddingDirection.BEFORE) {\n return String(this.value).padStart(this.paddingLength, this.paddingChar);\n } else if (this.paddingDirection === ItemPickerPaddingDirection.AFTER) {\n return String(this.value).padEnd(this.paddingLength, this.paddingChar);\n }\n\n return this.value;\n }\n\n render() {\n return (\n <div part=\"container\" class=\"item_picker__container\">\n <div\n part=\"up\"\n class={{\n item_picker__btn: true,\n 'item_picker__btn--disabled': this.isNextDisabled(),\n }}\n onMouseDown={() => this.onMouseDownNext()}\n onMouseUp={() => this.onMouseUpNext()}\n >\n <six-icon size=\"large\">expand_less</six-icon>\n </div>\n <div part=\"content\" class=\"item_picker__content\">\n {this.getFormattedValue()}\n </div>\n <div\n part=\"down\"\n class={{\n item_picker__btn: true,\n 'item_picker__btn--disabled': this.isPrevDisabled(),\n }}\n onMouseDown={() => this.onMouseDownPrev()}\n onMouseUp={() => this.onMouseUpPrev()}\n >\n <six-icon size=\"large\">expand_more</six-icon>\n </div>\n </div>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"six-item-picker.js","sourceRoot":"","sources":["../../../src/components/six-item-picker/six-item-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAChH,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAQ7D,MAAM,gBAAgB,GAAG,4BAA4B,CAAC;AACtD,MAAM,wBAAwB,GAAG,CAAC,GAAG,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC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4B,EAAE,IAAI,CAAC,cAAc,EAAE;iBACpD,EACD,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,EACzC,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE;gBAErC,gBAAU,IAAI,EAAC,OAAO,kBAAuB,CACzC;YACN,WAAK,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,sBAAsB,IAC7C,IAAI,CAAC,iBAAiB,EAAE,CACrB;YACN,WACE,IAAI,EAAC,MAAM,EACX,KAAK,EAAE;oBACL,gBAAgB,EAAE,IAAI;oBACtB,4BAA4B,EAAE,IAAI,CAAC,cAAc,EAAE;iBACpD,EACD,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,EACzC,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE;gBAErC,gBAAU,IAAI,EAAC,OAAO,kBAAuB,CACzC,CACF,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Prop, State, Watch } from '@stencil/core';\nimport { ItemPickerPaddingDirection, ItemPickerType } from './types';\nimport { debounce, DEFAULT_DEBOUNCE_FAST, DEFAULT_DEBOUNCE_INSANELY_FAST } from '../../utils/execution-control';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { TimePeriod } from '../../utils/time.util';\n\ninterface Alphabet {\n alphabet: string[];\n letterIndexes: Record<string, number>;\n}\n\nconst uppercaseLetters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\nconst upperAndLowercaseLetters = [...uppercaseLetters].flatMap((c) => [c, c.toLowerCase()]);\nconst ALPHABET: Alphabet = {\n alphabet: upperAndLowercaseLetters,\n letterIndexes: Object.fromEntries(upperAndLowercaseLetters.map((c, i) => [c, i])),\n};\nconst CAPITAL_ALPHABET: Alphabet = {\n alphabet: [...uppercaseLetters].flatMap((c) => [c]),\n letterIndexes: Object.fromEntries([...uppercaseLetters].map((c, i) => [c, i])),\n};\nconst LOWERCASE_ALPHABET: Alphabet = {\n alphabet: [...uppercaseLetters.toLowerCase()].flatMap((c) => [c]),\n letterIndexes: Object.fromEntries([...uppercaseLetters.toLowerCase()].map((c, i) => [c, i])),\n};\n\nconst createItemIndexes = (arr: string[]): Record<string, number> => {\n return Object.fromEntries([...arr].map((c, i) => [c, i]));\n};\n\nconst TAG = `[SIX-ITEM-PICKER]`;\n\nconst subtract = (a: number, b: number) => a - b;\nconst add = (a: number, b: number) => a + b;\n\nexport type SixItemPickerChangePayload = number | string | boolean | TimePeriod;\n\nconst DEBOUNCE_ITEM_PICKER_LISTENER = 'debounced-item-picker';\n\n/**\n * @since 2.0.0\n * @status experimental\n * @part container - The whole component container\n * @part up - The up button\n * @part content - The content area\n * @part down - The down button\n *\n */\n@Component({\n tag: 'six-item-picker',\n styleUrl: 'six-item-picker.scss',\n shadow: true,\n})\nexport class SixItemPicker {\n private readonly eventListeners = new EventListeners();\n\n @Element() host!: HTMLSixItemPickerElement;\n\n /** The item picker's value attribute. */\n @Prop({ mutable: true, reflect: true }) value: number | string = '';\n\n /** The type of items you want to rotate through. */\n @Prop() type: ItemPickerType = ItemPickerType.NUMBER;\n\n /** The minimum value allowed to pick. */\n @Prop({ reflect: true, mutable: true }) min?: number | string;\n\n /** The maximum value allowed to pick. */\n @Prop({ reflect: true, mutable: true }) max?: number | string;\n\n /** Define whether the picker should to a roundtrip i.e. start at max when reaching min and vice versa. */\n @Prop({ reflect: true }) roundtrip = true;\n\n /** Defines how many steps should be taken when navigating */\n @Prop({ reflect: true }) step = 1;\n\n /** Defines a custom list of items you can iterate through */\n @Prop() items?: string[];\n\n /** Defines whether the items should be padded */\n @Prop() padded = false;\n\n /** Defines the length of the padded area */\n @Prop() paddingLength = 2;\n\n /** Defines the character used for padding */\n @Prop() paddingChar = '0';\n\n /** Defines whether the padding should be before or after the value. You can either use 'before' or 'after'. By default,\n * before is selected */\n @Prop() paddingDirection: ItemPickerPaddingDirection = ItemPickerPaddingDirection.BEFORE;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger faster switching between items.\n */\n @Prop() timeout = DEFAULT_DEBOUNCE_FAST;\n\n /**\n * Set the amount of time, in milliseconds, to wait between switching to next item when mouse button is held pressed.\n */\n @Prop() interval = DEFAULT_DEBOUNCE_INSANELY_FAST;\n\n /**\n * Emitted when the item picker's value changes\n */\n @Event({ eventName: 'six-item-picker-change' }) sixChange!: EventEmitter<SixItemPickerChangePayload>;\n\n /**\n * Emitted when the item picker's value changes, but debounced\n */\n @Event({ eventName: 'six-item-picker-change-debounced' })\n sixChangeDebounced!: EventEmitter<SixItemPickerChangePayload>;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger the `six-item-picker-change-debounced` event.\n * If you want your change debounce event to not trigger when keeping the nav button pressed before, make sure debounce\n * is a bit bigger than timeout, otherwise keeping the button pressed will trigger the event twice: once you click\n * (and keep pressed) and once you release\n */\n @Prop() debounce = DEFAULT_DEBOUNCE_FAST;\n\n @Watch('value')\n handleValueChange() {\n this.setup();\n }\n\n @Watch('debounce')\n protected debounceChanged() {\n this.eventListeners.removeByIdentifier(DEBOUNCE_ITEM_PICKER_LISTENER);\n this.eventListeners.add(\n this.host,\n 'six-item-picker-change',\n debounce(this.handleSixItemPickerChangeDebounced, this.debounce),\n DEBOUNCE_ITEM_PICKER_LISTENER\n );\n }\n\n @Watch('items')\n handleSetChange() {\n this.setup();\n this.min = this._items[0];\n this.max = this.getLastStringItem();\n }\n\n @State() _items: string[] = [];\n @State() _itemIndexes: Record<string, number> = {};\n\n // used for fast increasing when keeping the mouse button held down\n private _timeoutNext!: ReturnType<typeof setTimeout>;\n private _intervalNext!: ReturnType<typeof setInterval>;\n\n private _timeoutPrev!: ReturnType<typeof setTimeout>;\n private _intervalPrev!: ReturnType<typeof setInterval>;\n\n componentWillLoad() {\n this.setup();\n }\n\n componentDidLoad() {\n this.eventListeners.add(\n this.host,\n 'six-item-picker-change',\n debounce(this.handleSixItemPickerChangeDebounced, this.debounce),\n DEBOUNCE_ITEM_PICKER_LISTENER\n );\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n\n private handleSixItemPickerChangeDebounced = () => {\n this.sixChangeDebounced.emit(this.value);\n };\n\n private setup() {\n if (this.isNumber()) {\n this.setupNumberItems();\n } else {\n this.setUpStringItems();\n }\n }\n\n private setupNumberItems() {\n if (this.isInvalidNumber()) {\n console.warn(`${TAG} Expected number but value is not a number: \"${this.value}\"`);\n console.info(`${TAG} Will set value to either minimum or if not provided to zero.`);\n this.value = this.min ?? 0;\n }\n }\n\n private setUpStringItems() {\n this._items = this.getStringItems();\n this._itemIndexes = this.getItemIndexes();\n const itemsMissValue = this._items.find((i) => String(i) === String(this.value)) === undefined;\n if (itemsMissValue) {\n console.warn(`${TAG} Expected item from item set but value was not found in set: \"${this.value}\"`);\n console.info(`${TAG} Will set value to either minimum or if not provided to \"${this._items[0]}\".`);\n this.value = this._items[0];\n }\n\n if (this.min === undefined) {\n if (!this.roundtrip) {\n console.warn(`${TAG} Expected a min value`);\n console.info(`${TAG} Will set min value to ${this._items[0]}`);\n }\n this.min = this._items[0];\n }\n\n if (this.max === undefined) {\n const maxItem = this.getLastStringItem();\n if (!this.roundtrip) {\n console.warn(`${TAG} Expected a min value if roundtrip is enabled`);\n console.info(`${TAG} Will set min value to ${maxItem}`);\n }\n this.max = maxItem;\n }\n }\n\n private getLastStringItem() {\n return this._items[this._items.length - 1];\n }\n\n private getStringItems(): string[] {\n switch (this.type) {\n case ItemPickerType.NUMBER:\n console.warn(`${TAG}: unexpected type ${this.type}`);\n return [];\n case ItemPickerType.LETTER:\n return ALPHABET.alphabet;\n case ItemPickerType.CAPITAL_LETTER:\n return CAPITAL_ALPHABET.alphabet;\n case ItemPickerType.LOWER_LETTER:\n return LOWERCASE_ALPHABET.alphabet;\n case ItemPickerType.CUSTOM:\n if (this.items == null || this.items.length === 0) {\n console.warn(`${TAG}: no items defined for type ${this.type}`);\n return [];\n }\n return this.items;\n }\n }\n\n private getItemIndexes(): Record<string, number> {\n switch (this.type) {\n case ItemPickerType.NUMBER:\n console.warn(`${TAG}: unexpected type ${this.type}`);\n return {};\n case ItemPickerType.LETTER:\n return ALPHABET.letterIndexes;\n case ItemPickerType.CAPITAL_LETTER:\n return CAPITAL_ALPHABET.letterIndexes;\n case ItemPickerType.LOWER_LETTER:\n return LOWERCASE_ALPHABET.letterIndexes;\n case ItemPickerType.CUSTOM:\n return createItemIndexes(this._items);\n }\n }\n\n private previousItem() {\n if (this.isNumber()) {\n this.previousNumber();\n } else {\n this.previousStringItem();\n }\n\n this.sixChange.emit(this.value);\n }\n\n private previousNumber() {\n this.changeValue({\n isNextItemAllowed: () => !this.isPreviousNumberDisabled(),\n getNextItem: () => Number(this.value) - this.step,\n getRoundtripItem: () => Number(this.max),\n isRoundtripPossible: () => this.max === undefined && this.roundtrip,\n });\n }\n\n private previousStringItem() {\n const value = String(this.value);\n const minLetter = String(this.min);\n\n this.changeValue({\n isNextItemAllowed: () =>\n minLetter === undefined || this.getStringItemIndex(value) > this.getStringItemIndex(minLetter),\n getNextItem: () => this.getNextItemByOperation(subtract),\n getRoundtripItem: () => String(this.max),\n isRoundtripPossible: () => this.max == null && this.roundtrip,\n });\n }\n\n private nextItem() {\n if (this.isNumber()) {\n this.nextNumber();\n } else {\n this.nextStringItem();\n }\n\n this.sixChange.emit(this.value);\n }\n\n private nextNumber() {\n this.changeValue({\n isNextItemAllowed: () => !this.isNextNumberDisabled(),\n getNextItem: () => Number(this.value) + this.step,\n getRoundtripItem: () => Number(this.min),\n isRoundtripPossible: () => this.min === undefined && this.roundtrip,\n });\n }\n\n private getStringItemIndex(char: string): number {\n return this._itemIndexes[char];\n }\n\n private nextStringItem() {\n const value = String(this.value);\n const maxLetter = String(this.max);\n\n this.changeValue({\n isNextItemAllowed: () =>\n maxLetter === undefined || this.getStringItemIndex(value) < this.getStringItemIndex(maxLetter),\n getNextItem: () => this.getNextItemByOperation(add),\n getRoundtripItem: () => String(this.min),\n isRoundtripPossible: () => this.min === undefined && this.roundtrip,\n });\n }\n\n private getNextItemByOperation(operation: (a: number, b: number) => number) {\n const value = String(this.value);\n const nextIndexCandidate = operation(this.getStringItemIndex(value), this.step);\n const numberOfItems = this._items.length;\n const nextIndex = ((nextIndexCandidate % numberOfItems) + numberOfItems) % numberOfItems;\n return this._items[nextIndex];\n }\n\n private changeValue(params: {\n getNextItem: () => number | string;\n isNextItemAllowed: () => boolean;\n getRoundtripItem: () => number | string;\n isRoundtripPossible: () => boolean;\n }) {\n if (params.isNextItemAllowed()) {\n this.value = params.getNextItem();\n return;\n }\n\n if (params.isRoundtripPossible()) {\n console.error(\n `${TAG} Item picker is expected to perform a roundtrip, but either max or min value is missing so a roundtrip is not possible`\n );\n return;\n }\n\n if (this.roundtrip) {\n this.value = params.getRoundtripItem();\n return;\n }\n\n console.warn(\n `${TAG} Roundtrip is not allowed, but was still triggered, please report this issue to the developer of six-item-picker`\n );\n }\n\n private isNumber() {\n return this.type === ItemPickerType.NUMBER;\n }\n\n private isInvalidNumber() {\n return this.value === '' || isNaN(this.value as number);\n }\n\n private isNextDisabled() {\n if (this.roundtrip) {\n return false;\n }\n\n if (this.isNumber()) {\n return this.isNextNumberDisabled();\n } else {\n return this._itemIndexes[String(this.value)] + this.step > this._itemIndexes[String(this.max)];\n }\n }\n\n private isNextNumberDisabled() {\n return Number(this.value) + this.step > Number(this.max ?? Infinity);\n }\n\n private isPrevDisabled() {\n if (this.roundtrip) {\n return false;\n }\n\n if (this.isNumber()) {\n return this.isPreviousNumberDisabled();\n } else {\n return this._itemIndexes[String(this.value)] - this.step < this._itemIndexes[String(this.min)];\n }\n }\n\n private isPreviousNumberDisabled() {\n return Number(this.value) - this.step < Number(this.min ?? -Infinity);\n }\n\n private onMouseDownNext() {\n if (this.isNextDisabled()) {\n return;\n }\n\n this.nextItem();\n\n this._timeoutNext = setTimeout(() => {\n this._intervalNext = setInterval(() => {\n this.nextItem();\n }, this.interval);\n }, this.timeout);\n }\n\n private onMouseUpNext() {\n clearTimeout(this._timeoutNext);\n clearInterval(this._intervalNext);\n }\n\n private onMouseDownPrev() {\n if (this.isPrevDisabled()) {\n return;\n }\n\n this.previousItem();\n\n this._timeoutPrev = setTimeout(() => {\n this._intervalPrev = setInterval(() => {\n this.previousItem();\n }, this.interval);\n }, this.timeout);\n }\n\n private onMouseUpPrev() {\n clearTimeout(this._timeoutPrev);\n clearInterval(this._intervalPrev);\n }\n\n private getFormattedValue() {\n if (this.value === undefined || this.value === null) {\n return this.value;\n }\n\n if (!this.padded) {\n return this.value;\n }\n\n if (this.paddingDirection === ItemPickerPaddingDirection.BEFORE) {\n return String(this.value).padStart(this.paddingLength, this.paddingChar);\n } else if (this.paddingDirection === ItemPickerPaddingDirection.AFTER) {\n return String(this.value).padEnd(this.paddingLength, this.paddingChar);\n }\n\n return this.value;\n }\n\n render() {\n return (\n <div part=\"container\" class=\"item_picker__container\">\n <div\n part=\"up\"\n class={{\n item_picker__btn: true,\n 'item_picker__btn--disabled': this.isNextDisabled(),\n }}\n onMouseDown={() => this.onMouseDownNext()}\n onMouseUp={() => this.onMouseUpNext()}\n >\n <six-icon size=\"large\">expand_less</six-icon>\n </div>\n <div part=\"content\" class=\"item_picker__content\">\n {this.getFormattedValue()}\n </div>\n <div\n part=\"down\"\n class={{\n item_picker__btn: true,\n 'item_picker__btn--disabled': this.isPrevDisabled(),\n }}\n onMouseDown={() => this.onMouseDownPrev()}\n onMouseUp={() => this.onMouseUpPrev()}\n >\n <six-icon size=\"large\">expand_more</six-icon>\n </div>\n </div>\n );\n }\n}\n"]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { newSpecPage } from "@stencil/core/testing";
|
|
2
2
|
import { SixItemPicker } from "../six-item-picker";
|
|
3
3
|
describe('six-item-picker', () => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
it('should render default', async () => {
|
|
5
|
+
// given
|
|
6
|
+
const page = await newSpecPage({
|
|
7
|
+
components: [SixItemPicker],
|
|
8
|
+
html: `<six-item-picker></six-item-picker>`,
|
|
9
|
+
});
|
|
10
|
+
// then
|
|
11
|
+
expect(page.root).toEqualHtml(`
|
|
12
12
|
<six-item-picker roundtrip="" step="1" value="0">
|
|
13
13
|
<mock:shadow-root>
|
|
14
14
|
<div class="item_picker__container" part="container">
|
|
@@ -28,15 +28,15 @@ describe('six-item-picker', () => {
|
|
|
28
28
|
</div>
|
|
29
29
|
</mock:shadow-root>
|
|
30
30
|
</six-item-picker>`);
|
|
31
|
-
});
|
|
32
|
-
it('should render number picker with correct attributes', async () => {
|
|
33
|
-
// given
|
|
34
|
-
const page = await newSpecPage({
|
|
35
|
-
components: [SixItemPicker],
|
|
36
|
-
html: `<six-item-picker value="5" step="5" min="3" max="13" roundtrip="false"></six-item-picker>`,
|
|
37
31
|
});
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
it('should render number picker with correct attributes', async () => {
|
|
33
|
+
// given
|
|
34
|
+
const page = await newSpecPage({
|
|
35
|
+
components: [SixItemPicker],
|
|
36
|
+
html: `<six-item-picker value="5" step="5" min="3" max="13" roundtrip="false"></six-item-picker>`,
|
|
37
|
+
});
|
|
38
|
+
// then
|
|
39
|
+
expect(page.root).toEqualHtml(`
|
|
40
40
|
<six-item-picker max="13" min="3" roundtrip="false" step="5" value="5">
|
|
41
41
|
<mock:shadow-root>
|
|
42
42
|
<div class="item_picker__container" part="container">
|
|
@@ -57,15 +57,15 @@ describe('six-item-picker', () => {
|
|
|
57
57
|
</mock:shadow-root>
|
|
58
58
|
</six-item-picker>
|
|
59
59
|
`);
|
|
60
|
-
});
|
|
61
|
-
it('should render letter picker with correct attributes', async () => {
|
|
62
|
-
// given
|
|
63
|
-
const page = await newSpecPage({
|
|
64
|
-
components: [SixItemPicker],
|
|
65
|
-
html: `<six-item-picker type="letter" roundtrip="false" min="c" max="k" value="d"></six-item-picker>`,
|
|
66
60
|
});
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
it('should render letter picker with correct attributes', async () => {
|
|
62
|
+
// given
|
|
63
|
+
const page = await newSpecPage({
|
|
64
|
+
components: [SixItemPicker],
|
|
65
|
+
html: `<six-item-picker type="letter" roundtrip="false" min="c" max="k" value="d"></six-item-picker>`,
|
|
66
|
+
});
|
|
67
|
+
// then
|
|
68
|
+
expect(page.root).toEqualHtml(`
|
|
69
69
|
<six-item-picker max="k" min="c" roundtrip="false" step="1" type="letter" value="d">
|
|
70
70
|
<mock:shadow-root>
|
|
71
71
|
<div class="item_picker__container" part="container">
|
|
@@ -85,6 +85,6 @@ describe('six-item-picker', () => {
|
|
|
85
85
|
</div>
|
|
86
86
|
</mock:shadow-root>
|
|
87
87
|
</six-item-picker>`);
|
|
88
|
-
|
|
88
|
+
});
|
|
89
89
|
});
|
|
90
90
|
//# sourceMappingURL=six-item-picker.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"six-item-picker.spec.js","sourceRoot":"","sources":["../../../../src/components/six-item-picker/test/six-item-picker.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;
|
|
1
|
+
{"version":3,"file":"six-item-picker.spec.js","sourceRoot":"","sources":["../../../../src/components/six-item-picker/test/six-item-picker.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,uBAAuB,EAAE,KAAK,IAAI,EAAE;QACrC,QAAQ;QACR,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,aAAa,CAAC;YAC3B,IAAI,EAAE,qCAAqC;SAC5C,CAAC,CAAC;QAEH,OAAO;QACP,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;mBAmBf,CAAC,CAAC;IACnB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE,KAAK,IAAI,EAAE;QACnE,QAAQ;QACR,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,aAAa,CAAC;YAC3B,IAAI,EAAE,2FAA2F;SAClG,CAAC,CAAC;QAEH,OAAO;QACP,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;KAoB7B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE,KAAK,IAAI,EAAE;QACnE,QAAQ;QACR,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,aAAa,CAAC;YAC3B,IAAI,EAAE,+FAA+F;SACtG,CAAC,CAAC;QAEH,OAAO;QACP,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;mBAmBf,CAAC,CAAC;IACnB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { SixItemPicker } from '../six-item-picker';\n\ndescribe('six-item-picker', () => {\n it('should render default', async () => {\n // given\n const page = await newSpecPage({\n components: [SixItemPicker],\n html: `<six-item-picker></six-item-picker>`,\n });\n\n // then\n expect(page.root).toEqualHtml(`\n<six-item-picker roundtrip=\"\" step=\"1\" value=\"0\">\n <mock:shadow-root>\n <div class=\"item_picker__container\" part=\"container\">\n <div class=\"item_picker__btn\" part=\"up\">\n <six-icon size=\"large\">\n expand_less\n </six-icon>\n </div>\n <div class=\"item_picker__content\" part=\"content\">\n 0\n </div>\n <div class=\"item_picker__btn\" part=\"down\">\n <six-icon size=\"large\">\n expand_more\n </six-icon>\n </div>\n </div>\n </mock:shadow-root>\n</six-item-picker>`);\n });\n\n it('should render number picker with correct attributes', async () => {\n // given\n const page = await newSpecPage({\n components: [SixItemPicker],\n html: `<six-item-picker value=\"5\" step=\"5\" min=\"3\" max=\"13\" roundtrip=\"false\"></six-item-picker>`,\n });\n\n // then\n expect(page.root).toEqualHtml(`\n<six-item-picker max=\"13\" min=\"3\" roundtrip=\"false\" step=\"5\" value=\"5\">\n <mock:shadow-root>\n <div class=\"item_picker__container\" part=\"container\">\n <div class=\"item_picker__btn\" part=\"up\">\n <six-icon size=\"large\">\n expand_less\n </six-icon>\n </div>\n <div class=\"item_picker__content\" part=\"content\">\n 5\n </div>\n <div class=\"item_picker__btn item_picker__btn--disabled\" part=\"down\">\n <six-icon size=\"large\">\n expand_more\n </six-icon>\n </div>\n </div>\n </mock:shadow-root>\n</six-item-picker>\n `);\n });\n\n it('should render letter picker with correct attributes', async () => {\n // given\n const page = await newSpecPage({\n components: [SixItemPicker],\n html: `<six-item-picker type=\"letter\" roundtrip=\"false\" min=\"c\" max=\"k\" value=\"d\"></six-item-picker>`,\n });\n\n // then\n expect(page.root).toEqualHtml(`\n<six-item-picker max=\"k\" min=\"c\" roundtrip=\"false\" step=\"1\" type=\"letter\" value=\"d\">\n <mock:shadow-root>\n <div class=\"item_picker__container\" part=\"container\">\n <div class=\"item_picker__btn\" part=\"up\">\n <six-icon size=\"large\">\n expand_less\n </six-icon>\n </div>\n <div class=\"item_picker__content\" part=\"content\">\n d\n </div>\n <div class=\"item_picker__btn\" part=\"down\">\n <six-icon size=\"large\">\n expand_more\n </six-icon>\n </div>\n </div>\n </mock:shadow-root>\n</six-item-picker>`);\n });\n});\n"]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export var ItemPickerType;
|
|
2
2
|
(function (ItemPickerType) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
ItemPickerType["NUMBER"] = "number";
|
|
4
|
+
ItemPickerType["LETTER"] = "letter";
|
|
5
|
+
ItemPickerType["CAPITAL_LETTER"] = "capital-letter";
|
|
6
|
+
ItemPickerType["LOWER_LETTER"] = "lower-letter";
|
|
7
|
+
ItemPickerType["CUSTOM"] = "custom";
|
|
8
8
|
})(ItemPickerType || (ItemPickerType = {}));
|
|
9
9
|
export var ItemPickerPaddingDirection;
|
|
10
10
|
(function (ItemPickerPaddingDirection) {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
ItemPickerPaddingDirection["BEFORE"] = "before";
|
|
12
|
+
ItemPickerPaddingDirection["AFTER"] = "after";
|
|
13
13
|
})(ItemPickerPaddingDirection || (ItemPickerPaddingDirection = {}));
|
|
14
14
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/six-item-picker/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/six-item-picker/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,mCAAiB,CAAA;AACnB,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB;AAED,MAAM,CAAN,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,+CAAiB,CAAA;IACjB,6CAAe,CAAA;AACjB,CAAC,EAHW,0BAA0B,KAA1B,0BAA0B,QAGrC","sourcesContent":["export enum ItemPickerType {\n NUMBER = 'number',\n LETTER = 'letter',\n CAPITAL_LETTER = 'capital-letter',\n LOWER_LETTER = 'lower-letter',\n CUSTOM = 'custom',\n}\n\nexport enum ItemPickerPaddingDirection {\n BEFORE = 'before',\n AFTER = 'after',\n}\n"]}
|
|
@@ -8,134 +8,134 @@ const DEFAULT_LANGUAGES = ['EN', 'DE', 'ES'];
|
|
|
8
8
|
* @part separator - The separator between the language labels
|
|
9
9
|
*/
|
|
10
10
|
export class SixLanguageSwitcher {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
handleChangesLanguages(newValue) {
|
|
25
|
-
if (!Array.isArray(newValue)) {
|
|
26
|
-
throw new Error('languages is expected to be an array');
|
|
11
|
+
constructor() {
|
|
12
|
+
this.handleLanguageSwitching = (newLanguage, languageValue) => () => {
|
|
13
|
+
if (languageValue !== undefined) {
|
|
14
|
+
this.sixChange.emit(languageValue);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
this.sixChange.emit(newLanguage);
|
|
18
|
+
}
|
|
19
|
+
this.selected = newLanguage;
|
|
20
|
+
};
|
|
21
|
+
this.selected = undefined;
|
|
22
|
+
this.languages = DEFAULT_LANGUAGES;
|
|
27
23
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
handleChangesLanguages(newValue) {
|
|
25
|
+
if (!Array.isArray(newValue)) {
|
|
26
|
+
throw new Error('languages is expected to be an array');
|
|
27
|
+
}
|
|
28
|
+
this.updateSelectedLanguage();
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
this.selected = selectedLanguage;
|
|
39
|
-
this.sixChange.emit(this.selected);
|
|
30
|
+
componentWillLoad() {
|
|
31
|
+
if (this.selected === undefined) {
|
|
32
|
+
this.updateSelectedLanguage();
|
|
33
|
+
}
|
|
40
34
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
updateSelectedLanguage() {
|
|
36
|
+
const selectedLanguage = this.languages[0];
|
|
37
|
+
if (typeof selectedLanguage === 'string') {
|
|
38
|
+
this.selected = selectedLanguage;
|
|
39
|
+
this.sixChange.emit(this.selected);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
this.selected = selectedLanguage.key;
|
|
43
|
+
this.sixChange.emit(selectedLanguage.value);
|
|
44
|
+
}
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"defaultValue": "DEFAULT_LANGUAGES"
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
static get events() {
|
|
111
|
-
return [{
|
|
112
|
-
"method": "sixChange",
|
|
113
|
-
"name": "six-language-switcher-change",
|
|
114
|
-
"bubbles": true,
|
|
115
|
-
"cancelable": true,
|
|
116
|
-
"composed": true,
|
|
117
|
-
"docs": {
|
|
118
|
-
"tags": [],
|
|
119
|
-
"text": "Emitted when the language switchers value changes"
|
|
120
|
-
},
|
|
121
|
-
"complexType": {
|
|
122
|
-
"original": "SixLanguageSwitcherChangePayload",
|
|
123
|
-
"resolved": "string",
|
|
124
|
-
"references": {
|
|
125
|
-
"SixLanguageSwitcherChangePayload": {
|
|
126
|
-
"location": "local",
|
|
127
|
-
"path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-language-switcher/six-language-switcher.tsx",
|
|
128
|
-
"id": "src/components/six-language-switcher/six-language-switcher.tsx::SixLanguageSwitcherChangePayload"
|
|
46
|
+
render() {
|
|
47
|
+
return (h("div", { part: "container", class: "language-switcher__container" }, this.languages.map((lang, index) => {
|
|
48
|
+
const language = typeof lang === 'string' ? lang : lang.key;
|
|
49
|
+
return (h("div", { onClick: this.handleLanguageSwitching(language, typeof lang === 'string' ? lang : lang.value) }, h("span", { part: "label", class: {
|
|
50
|
+
'language-switcher__label': true,
|
|
51
|
+
'language-switcher__label--selected': this.selected === language,
|
|
52
|
+
} }, language), index < this.languages.length - 1 && (h("span", { part: "separator", class: "language-switcher__separator" }, "/"))));
|
|
53
|
+
})));
|
|
54
|
+
}
|
|
55
|
+
static get is() { return "six-language-switcher"; }
|
|
56
|
+
static get encapsulation() { return "shadow"; }
|
|
57
|
+
static get originalStyleUrls() {
|
|
58
|
+
return {
|
|
59
|
+
"$": ["six-language-switcher.scss"]
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
static get styleUrls() {
|
|
63
|
+
return {
|
|
64
|
+
"$": ["six-language-switcher.css"]
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
static get properties() {
|
|
68
|
+
return {
|
|
69
|
+
"selected": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"mutable": true,
|
|
72
|
+
"complexType": {
|
|
73
|
+
"original": "string",
|
|
74
|
+
"resolved": "string | undefined",
|
|
75
|
+
"references": {}
|
|
76
|
+
},
|
|
77
|
+
"required": false,
|
|
78
|
+
"optional": true,
|
|
79
|
+
"docs": {
|
|
80
|
+
"tags": [],
|
|
81
|
+
"text": "The language which should be shown as selected"
|
|
82
|
+
},
|
|
83
|
+
"attribute": "selected",
|
|
84
|
+
"reflect": true
|
|
85
|
+
},
|
|
86
|
+
"languages": {
|
|
87
|
+
"type": "unknown",
|
|
88
|
+
"mutable": false,
|
|
89
|
+
"complexType": {
|
|
90
|
+
"original": "string[] | SixLanguageSwitcherInput[]",
|
|
91
|
+
"resolved": "SixLanguageSwitcherInput[] | string[]",
|
|
92
|
+
"references": {
|
|
93
|
+
"SixLanguageSwitcherInput": {
|
|
94
|
+
"location": "local",
|
|
95
|
+
"path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-language-switcher/six-language-switcher.tsx",
|
|
96
|
+
"id": "src/components/six-language-switcher/six-language-switcher.tsx::SixLanguageSwitcherInput"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"required": false,
|
|
101
|
+
"optional": false,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [],
|
|
104
|
+
"text": "The languages which should be selectable options."
|
|
105
|
+
},
|
|
106
|
+
"defaultValue": "DEFAULT_LANGUAGES"
|
|
129
107
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
static get events() {
|
|
111
|
+
return [{
|
|
112
|
+
"method": "sixChange",
|
|
113
|
+
"name": "six-language-switcher-change",
|
|
114
|
+
"bubbles": true,
|
|
115
|
+
"cancelable": true,
|
|
116
|
+
"composed": true,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [],
|
|
119
|
+
"text": "Emitted when the language switchers value changes"
|
|
120
|
+
},
|
|
121
|
+
"complexType": {
|
|
122
|
+
"original": "SixLanguageSwitcherChangePayload",
|
|
123
|
+
"resolved": "string",
|
|
124
|
+
"references": {
|
|
125
|
+
"SixLanguageSwitcherChangePayload": {
|
|
126
|
+
"location": "local",
|
|
127
|
+
"path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-language-switcher/six-language-switcher.tsx",
|
|
128
|
+
"id": "src/components/six-language-switcher/six-language-switcher.tsx::SixLanguageSwitcherChangePayload"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}];
|
|
133
|
+
}
|
|
134
|
+
static get watchers() {
|
|
135
|
+
return [{
|
|
136
|
+
"propName": "languages",
|
|
137
|
+
"methodName": "handleChangesLanguages"
|
|
138
|
+
}];
|
|
139
|
+
}
|
|
140
140
|
}
|
|
141
141
|
//# sourceMappingURL=six-language-switcher.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"six-language-switcher.js","sourceRoot":"","sources":["../../../src/components/six-language-switcher/six-language-switcher.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAa/E,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAE7C;;;;;;GAMG;AAMH,MAAM,OAAO,mBAAmB;;
|
|
1
|
+
{"version":3,"file":"six-language-switcher.js","sourceRoot":"","sources":["../../../src/components/six-language-switcher/six-language-switcher.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAa/E,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAE7C;;;;;;GAMG;AAMH,MAAM,OAAO,mBAAmB;;QAqCtB,4BAAuB,GAAG,CAAC,WAAmB,EAAE,aAAsB,EAAE,EAAE,CAAC,GAAG,EAAE;YACtF,IAAI,aAAa,KAAK,SAAS,EAAE;gBAC/B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aACpC;iBAAM;gBACL,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAClC;YACD,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC;QAC9B,CAAC,CAAC;;yBAvCyD,iBAAiB;;IAG5E,sBAAsB,CAAC,QAAkB;QACvC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;SACzD;QAED,IAAI,CAAC,sBAAsB,EAAE,CAAC;IAChC,CAAC;IAMD,iBAAiB;QACf,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;YAC/B,IAAI,CAAC,sBAAsB,EAAE,CAAC;SAC/B;IACH,CAAC;IAEO,sBAAsB;QAC5B,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;QAC3C,IAAI,OAAO,gBAAgB,KAAK,QAAQ,EAAE;YACxC,IAAI,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status experimental\n **/\n\nexport interface SixLanguageSwitcherInput {\n key: string;\n value: string;\n}\nexport type SixLanguageSwitcherChangePayload = string;\n\nconst DEFAULT_LANGUAGES = ['EN', 'DE', 'ES'];\n\n/*\n * @since 2.2.0\n * @status experimental\n * @part container - The whole component container\n * @part label - The language label\n * @part separator - The separator between the language labels\n */\n@Component({\n tag: 'six-language-switcher',\n styleUrl: 'six-language-switcher.scss',\n shadow: true,\n})\nexport class SixLanguageSwitcher {\n /** The language which should be shown as selected */\n @Prop({ mutable: true, reflect: true }) selected?: string;\n\n /** The languages which should be selectable options. */\n @Prop() languages: string[] | SixLanguageSwitcherInput[] = DEFAULT_LANGUAGES;\n\n @Watch('languages')\n handleChangesLanguages(newValue: string[]) {\n if (!Array.isArray(newValue)) {\n throw new Error('languages is expected to be an array');\n }\n\n this.updateSelectedLanguage();\n }\n /**\n * Emitted when the language switchers value changes\n */\n @Event({ eventName: 'six-language-switcher-change' }) sixChange!: EventEmitter<SixLanguageSwitcherChangePayload>;\n\n componentWillLoad() {\n if (this.selected === undefined) {\n this.updateSelectedLanguage();\n }\n }\n\n private updateSelectedLanguage() {\n const selectedLanguage = this.languages[0];\n if (typeof selectedLanguage === 'string') {\n this.selected = selectedLanguage;\n this.sixChange.emit(this.selected);\n } else {\n this.selected = selectedLanguage.key;\n this.sixChange.emit(selectedLanguage.value);\n }\n }\n\n private handleLanguageSwitching = (newLanguage: string, languageValue?: string) => () => {\n if (languageValue !== undefined) {\n this.sixChange.emit(languageValue);\n } else {\n this.sixChange.emit(newLanguage);\n }\n this.selected = newLanguage;\n };\n\n render() {\n return (\n <div part=\"container\" class=\"language-switcher__container\">\n {this.languages.map((lang, index) => {\n const language = typeof lang === 'string' ? lang : lang.key;\n return (\n <div onClick={this.handleLanguageSwitching(language, typeof lang === 'string' ? lang : lang.value)}>\n <span\n part=\"label\"\n class={{\n 'language-switcher__label': true,\n 'language-switcher__label--selected': this.selected === language,\n }}\n >\n {language}\n </span>\n {index < this.languages.length - 1 && (\n <span part=\"separator\" class=\"language-switcher__separator\">\n /\n </span>\n )}\n </div>\n );\n })}\n </div>\n );\n }\n}\n"]}
|