@six-group/ui-library 0.0.0-insider.ebd822a → 0.0.0-insider.f015905
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/README.md +9 -0
- package/dist/cjs/error-messages-6e8049a4.js +119 -0
- package/dist/cjs/error-messages-6e8049a4.js.map +1 -0
- package/dist/cjs/event-listeners-9fb878f1.js +61 -0
- package/dist/cjs/event-listeners-9fb878f1.js.map +1 -0
- package/dist/cjs/{execution-control-46f388e0.js → execution-control-d728da70.js} +15 -12
- package/dist/cjs/execution-control-d728da70.js.map +1 -0
- package/dist/cjs/focus-visible-e2c9255a.js +47 -0
- package/dist/cjs/focus-visible-e2c9255a.js.map +1 -0
- package/dist/cjs/form-9ebaae7c.js +20 -0
- package/dist/cjs/form-9ebaae7c.js.map +1 -0
- package/dist/cjs/form-control-8d64e974.js +36 -0
- package/dist/cjs/form-control-8d64e974.js.map +1 -0
- package/dist/cjs/{index-2f6daa5b.js → index-d7748d51.js} +587 -480
- package/dist/cjs/index-d7748d51.js.map +1 -0
- package/dist/cjs/index.cjs.js +62 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +3 -12
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/modal-3ce015be.js +52 -0
- package/dist/cjs/modal-3ce015be.js.map +1 -0
- package/dist/cjs/{popover-f743f62b.js → popover-1e7c09f1.js} +109 -101
- package/dist/cjs/popover-1e7c09f1.js.map +1 -0
- package/dist/cjs/popup-e854acda.js +103 -0
- package/dist/cjs/popup-e854acda.js.map +1 -0
- package/dist/cjs/scroll-68033901.js +68 -0
- package/dist/{esm/scroll-180b53fd.js.map → cjs/scroll-68033901.js.map} +1 -1
- package/dist/cjs/six-alert.cjs.entry.js +141 -114
- package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/six-avatar.cjs.entry.js +21 -24
- package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-badge.cjs.entry.js +23 -23
- package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/six-button.cjs.entry.js +94 -92
- package/dist/cjs/six-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-card.cjs.entry.js +8 -8
- package/dist/cjs/six-card.cjs.entry.js.map +1 -1
- package/dist/cjs/six-checkbox_2.cjs.entry.js +190 -0
- package/dist/cjs/six-checkbox_2.cjs.entry.js.map +1 -0
- package/dist/cjs/six-datepicker.cjs.entry.js +875 -980
- package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-details.cjs.entry.js +127 -126
- package/dist/cjs/six-details.cjs.entry.js.map +1 -1
- package/dist/cjs/six-dialog.cjs.entry.js +130 -132
- package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/six-drawer.cjs.entry.js +145 -149
- package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/six-dropdown_2.cjs.entry.js +710 -619
- package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/six-error-page.cjs.entry.js +82 -84
- 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 +34 -34
- 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 +100 -100
- package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/six-footer.cjs.entry.js +8 -8
- package/dist/cjs/six-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/six-group-label.cjs.entry.js +43 -42
- package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
- package/dist/cjs/six-header.cjs.entry.js +172 -135
- 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 +22 -22
- package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/six-input.cjs.entry.js +186 -242
- package/dist/cjs/six-input.cjs.entry.js.map +1 -1
- package/dist/cjs/six-item-picker.cjs.entry.js +413 -336
- 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 +21 -19
- 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 +8 -8
- package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/six-menu-label.cjs.entry.js +8 -8
- package/dist/cjs/six-menu-label.cjs.entry.js.map +1 -1
- package/dist/cjs/six-picto.cjs.entry.js +14 -11
- package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
- package/dist/cjs/six-progress-bar.cjs.entry.js +15 -15
- 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 +104 -113
- package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/six-range.cjs.entry.js +185 -181
- package/dist/cjs/six-range.cjs.entry.js.map +1 -1
- package/dist/cjs/six-root.cjs.entry.js +11 -30
- package/dist/cjs/six-root.cjs.entry.js.map +1 -1
- package/dist/cjs/six-search-field.cjs.entry.js +44 -39
- package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
- package/dist/cjs/six-select.cjs.entry.js +494 -393
- package/dist/cjs/six-select.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js +56 -41
- 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 +176 -155
- package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-spinner.cjs.entry.js +15 -15
- package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
- package/dist/cjs/six-stage-indicator.cjs.entry.js +22 -0
- package/dist/cjs/six-stage-indicator.cjs.entry.js.map +1 -0
- package/dist/cjs/six-switch.cjs.entry.js +107 -95
- package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab-group.cjs.entry.js +226 -213
- package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab-panel.cjs.entry.js +14 -14
- package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab.cjs.entry.js +55 -37
- package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tag.cjs.entry.js +55 -36
- package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/six-textarea.cjs.entry.js +182 -205
- package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tile.cjs.entry.js +75 -78
- package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/six-timepicker.cjs.entry.js +344 -405
- package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tooltip.cjs.entry.js +145 -148
- package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/slot-1b1232a1.js +51 -0
- package/dist/cjs/slot-1b1232a1.js.map +1 -0
- package/dist/cjs/types-d3da200b.js +19 -0
- package/dist/cjs/types-d3da200b.js.map +1 -0
- package/dist/cjs/ui-library.cjs.js +3 -6
- package/dist/cjs/ui-library.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +54 -55
- package/dist/collection/components/six-alert/six-alert.css +5 -1
- package/dist/collection/components/six-alert/six-alert.js +383 -336
- package/dist/collection/components/six-alert/six-alert.js.map +1 -1
- package/dist/collection/components/six-alert/test/six-alert.spec.js +25 -0
- package/dist/collection/components/six-alert/test/six-alert.spec.js.map +1 -0
- package/dist/collection/components/six-avatar/six-avatar.css +2 -2
- package/dist/collection/components/six-avatar/six-avatar.js +112 -115
- package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
- package/dist/collection/components/six-avatar/test/six-avatar.spec.js +26 -0
- package/dist/collection/components/six-avatar/test/six-avatar.spec.js.map +1 -0
- package/dist/collection/components/six-badge/six-badge.css +1 -1
- package/dist/collection/components/six-badge/six-badge.js +91 -91
- package/dist/collection/components/six-badge/six-badge.js.map +1 -1
- package/dist/collection/components/six-badge/test/six-badge.spec.js +20 -0
- package/dist/collection/components/six-badge/test/six-badge.spec.js.map +1 -0
- package/dist/collection/components/six-button/six-button.css +7 -31
- package/dist/collection/components/six-button/six-button.js +450 -440
- package/dist/collection/components/six-button/six-button.js.map +1 -1
- package/dist/collection/components/six-button/test/six-button.spec.js +69 -0
- package/dist/collection/components/six-button/test/six-button.spec.js.map +1 -0
- package/dist/collection/components/six-card/six-card.css +4 -5
- package/dist/collection/components/six-card/six-card.js +16 -16
- package/dist/collection/components/six-card/six-card.js.map +1 -1
- package/dist/collection/components/six-card/test/six-card.spec.js +18 -0
- package/dist/collection/components/six-card/test/six-card.spec.js.map +1 -0
- package/dist/collection/components/six-checkbox/six-checkbox.css +10 -2
- package/dist/collection/components/six-checkbox/six-checkbox.js +426 -517
- package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
- package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js +83 -0
- package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js.map +1 -0
- package/dist/collection/components/six-datepicker/components/day-selection.js +10 -10
- package/dist/collection/components/six-datepicker/components/day-selection.js.map +1 -1
- package/dist/collection/components/six-datepicker/components/month-selection.js +11 -10
- package/dist/collection/components/six-datepicker/components/month-selection.js.map +1 -1
- package/dist/collection/components/six-datepicker/components/year-selection.js +11 -8
- package/dist/collection/components/six-datepicker/components/year-selection.js.map +1 -1
- package/dist/collection/components/six-datepicker/six-date-formats.js +21 -20
- package/dist/collection/components/six-datepicker/six-date-formats.js.map +1 -1
- package/dist/collection/components/six-datepicker/six-datepicker.css +1 -1
- package/dist/collection/components/six-datepicker/six-datepicker.js +1054 -1217
- package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
- package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js +26 -0
- package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js.map +1 -0
- 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 +4 -6
- package/dist/collection/components/six-details/six-details.js +409 -402
- package/dist/collection/components/six-details/six-details.js.map +1 -1
- package/dist/collection/components/six-details/test/six-details.spec.js +36 -0
- package/dist/collection/components/six-details/test/six-details.spec.js.map +1 -0
- package/dist/collection/components/six-dialog/six-dialog.css +2 -2
- package/dist/collection/components/six-dialog/six-dialog.js +362 -356
- package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
- package/dist/collection/components/six-dialog/test/six-dialog.spec.js +34 -0
- package/dist/collection/components/six-dialog/test/six-dialog.spec.js.map +1 -0
- package/dist/collection/components/six-drawer/six-drawer.css +2 -2
- package/dist/collection/components/six-drawer/six-drawer.js +414 -410
- package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
- package/dist/collection/components/six-drawer/test/six-drawer.spec.js +34 -0
- package/dist/collection/components/six-drawer/test/six-drawer.spec.js.map +1 -0
- package/dist/collection/components/six-dropdown/six-dropdown.css +22 -6
- package/dist/collection/components/six-dropdown/six-dropdown.js +984 -868
- package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
- package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +147 -0
- package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +1 -0
- 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 +178 -180
- 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 +240 -0
- package/dist/collection/components/six-error-page/test/six-error-page.spec.js.map +1 -0
- package/dist/collection/components/six-file-list/six-file-list.js +16 -16
- 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 +67 -0
- package/dist/collection/components/six-file-list/test/six-file-list.spec.js.map +1 -0
- package/dist/collection/components/six-file-list-item/six-file-list-item.css +1 -1
- package/dist/collection/components/six-file-list-item/six-file-list-item.js +196 -194
- 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 +169 -0
- package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js.map +1 -0
- package/dist/collection/components/six-file-upload/six-file-upload.css +1 -4
- package/dist/collection/components/six-file-upload/six-file-upload.js +293 -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 +103 -0
- package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +1 -0
- package/dist/collection/components/six-footer/six-footer.css +2 -2
- package/dist/collection/components/six-footer/six-footer.js +16 -16
- package/dist/collection/components/six-footer/six-footer.js.map +1 -1
- package/dist/collection/components/six-footer/test/six-footer.spec.js +21 -0
- package/dist/collection/components/six-footer/test/six-footer.spec.js.map +1 -0
- package/dist/collection/components/six-group-label/six-group-label.css +5 -2
- package/dist/collection/components/six-group-label/six-group-label.js +158 -156
- 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 +45 -0
- package/dist/collection/components/six-group-label/test/six-group-label.spec.js.map +1 -0
- package/dist/collection/components/six-header/six-header.css +6 -2
- package/dist/collection/components/six-header/six-header.js +444 -380
- package/dist/collection/components/six-header/six-header.js.map +1 -1
- package/dist/collection/components/six-header/test/six-header.spec.js +177 -0
- package/dist/collection/components/six-header/test/six-header.spec.js.map +1 -0
- package/dist/collection/components/six-icon/six-icon.css +5 -2
- package/dist/collection/components/six-icon/six-icon.js +72 -72
- package/dist/collection/components/six-icon/six-icon.js.map +1 -1
- package/dist/collection/components/six-icon/test/six-icon.spec.js +20 -0
- package/dist/collection/components/six-icon/test/six-icon.spec.js.map +1 -0
- package/dist/collection/components/six-icon-button/six-icon-button.css +5 -5
- package/dist/collection/components/six-icon-button/six-icon-button.js +133 -133
- 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 +23 -0
- package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js.map +1 -0
- package/dist/collection/components/six-input/six-input.css +15 -3
- package/dist/collection/components/six-input/six-input.js +970 -1107
- package/dist/collection/components/six-input/six-input.js.map +1 -1
- package/dist/collection/components/six-input/test/six-input.spec.js +39 -0
- package/dist/collection/components/six-input/test/six-input.spec.js.map +1 -0
- package/dist/collection/components/six-item-picker/six-item-picker.css +8 -0
- package/dist/collection/components/six-item-picker/six-item-picker.js +739 -658
- 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 +90 -0
- package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js.map +1 -0
- package/dist/collection/components/six-item-picker/types.js +9 -7
- package/dist/collection/components/six-item-picker/types.js.map +1 -1
- package/dist/collection/components/six-language-switcher/six-language-switcher.js +125 -123
- 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 +196 -0
- package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +1 -0
- package/dist/collection/components/six-layout-grid/six-layout-grid.js +56 -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 +18 -0
- package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js.map +1 -0
- package/dist/collection/components/six-main-container/six-main-container.js +42 -42
- 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 +22 -0
- package/dist/collection/components/six-main-container/test/six-main-container.spec.js.map +1 -0
- package/dist/collection/components/six-menu/six-menu.css +8 -7
- package/dist/collection/components/six-menu/six-menu.js +391 -359
- package/dist/collection/components/six-menu/six-menu.js.map +1 -1
- package/dist/collection/components/six-menu/test/six-menu.spec.js +93 -0
- package/dist/collection/components/six-menu/test/six-menu.spec.js.map +1 -0
- package/dist/collection/components/six-menu-divider/six-menu-divider.css +3 -2
- package/dist/collection/components/six-menu-divider/six-menu-divider.js +16 -16
- 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 +18 -0
- package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js.map +1 -0
- package/dist/collection/components/six-menu-item/six-menu-item.css +13 -2
- package/dist/collection/components/six-menu-item/six-menu-item.js +211 -176
- 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 +33 -0
- package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js.map +1 -0
- package/dist/collection/components/six-menu-label/six-menu-label.css +1 -1
- package/dist/collection/components/six-menu-label/six-menu-label.js +16 -16
- 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 +20 -0
- package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js.map +1 -0
- package/dist/collection/components/six-picto/six-picto.js +47 -44
- package/dist/collection/components/six-picto/six-picto.js.map +1 -1
- package/dist/collection/components/six-picto/test/six-picto.spec.js +33 -0
- package/dist/collection/components/six-picto/test/six-picto.spec.js.map +1 -0
- package/dist/collection/components/six-progress-bar/six-progress-bar.css +1 -1
- package/dist/collection/components/six-progress-bar/six-progress-bar.js +65 -65
- 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 +24 -0
- package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js.map +1 -0
- package/dist/collection/components/six-progress-ring/six-progress-ring.css +1 -1
- package/dist/collection/components/six-progress-ring/six-progress-ring.js +100 -99
- 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 +26 -0
- package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js.map +1 -0
- package/dist/collection/components/six-radio/six-radio.css +1 -1
- package/dist/collection/components/six-radio/six-radio.js +323 -388
- package/dist/collection/components/six-radio/six-radio.js.map +1 -1
- package/dist/collection/components/six-radio/test/six-radio.spec.js +63 -0
- package/dist/collection/components/six-radio/test/six-radio.spec.js.map +1 -0
- package/dist/collection/components/six-range/six-range.css +5 -2
- package/dist/collection/components/six-range/six-range.js +572 -591
- package/dist/collection/components/six-range/six-range.js.map +1 -1
- package/dist/collection/components/six-range/test/six-range.spec.js +34 -0
- package/dist/collection/components/six-range/test/six-range.spec.js.map +1 -0
- package/dist/collection/components/six-root/six-root.js +87 -153
- package/dist/collection/components/six-root/six-root.js.map +1 -1
- package/dist/collection/components/six-root/test/six-root.spec.js +36 -0
- package/dist/collection/components/six-root/test/six-root.spec.js.map +1 -0
- package/dist/collection/components/six-search-field/six-search-field.css +1 -1
- package/dist/collection/components/six-search-field/six-search-field.js +172 -166
- 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 +22 -0
- package/dist/collection/components/six-search-field/test/six-search-field.spec.js.map +1 -0
- package/dist/collection/components/six-select/six-select.css +61 -73
- package/dist/collection/components/six-select/six-select.js +1106 -1024
- package/dist/collection/components/six-select/six-select.js.map +1 -1
- package/dist/collection/components/six-select/test/six-select.spec.js +102 -0
- package/dist/collection/components/six-select/test/six-select.spec.js.map +1 -0
- package/dist/collection/components/six-select/test/util.spec.js +81 -0
- package/dist/collection/components/six-select/test/util.spec.js.map +1 -0
- package/dist/collection/components/six-select/util.js +52 -0
- package/dist/collection/components/six-select/util.js.map +1 -0
- package/dist/collection/components/six-sidebar/six-sidebar.css +2 -2
- package/dist/collection/components/six-sidebar/six-sidebar.js +470 -435
- package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -1
- package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js +22 -0
- package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js.map +1 -0
- package/dist/collection/components/six-sidebar-item/six-sidebar-item.css +6 -1
- package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +102 -83
- 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 +50 -0
- package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js.map +1 -0
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +12 -1
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +183 -151
- 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 +53 -0
- package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js.map +1 -0
- package/dist/collection/components/six-spinner/six-spinner.css +1 -1
- package/dist/collection/components/six-spinner/six-spinner.js +48 -47
- package/dist/collection/components/six-spinner/six-spinner.js.map +1 -1
- package/dist/collection/components/six-spinner/test/six-spinner.spec.js +37 -0
- package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +1 -0
- package/dist/collection/components/six-stage-indicator/six-stage-indicator.css +1 -1
- package/dist/collection/components/six-stage-indicator/six-stage-indicator.js +46 -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 +117 -0
- package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js.map +1 -0
- package/dist/collection/components/six-switch/six-switch.css +81 -1
- package/dist/collection/components/six-switch/six-switch.js +389 -378
- package/dist/collection/components/six-switch/six-switch.js.map +1 -1
- package/dist/collection/components/six-switch/test/six-switch.spec.js +73 -0
- package/dist/collection/components/six-switch/test/six-switch.spec.js.map +1 -0
- package/dist/collection/components/six-tab/six-tab.css +55 -6
- package/dist/collection/components/six-tab/six-tab.js +207 -184
- package/dist/collection/components/six-tab/six-tab.js.map +1 -1
- package/dist/collection/components/six-tab-group/six-tab-group.css +1 -32
- package/dist/collection/components/six-tab-group/six-tab-group.js +316 -335
- package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
- package/dist/collection/components/six-tab-panel/six-tab-panel.css +1 -1
- package/dist/collection/components/six-tab-panel/six-tab-panel.js +64 -64
- 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 +20 -0
- package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js.map +1 -0
- package/dist/collection/components/six-tag/six-tag.css +7 -1
- package/dist/collection/components/six-tag/six-tag.js +162 -142
- package/dist/collection/components/six-tag/six-tag.js.map +1 -1
- package/dist/collection/components/six-tag/test/six-tag.spec.js +54 -0
- package/dist/collection/components/six-tag/test/six-tag.spec.js.map +1 -0
- package/dist/collection/components/six-textarea/six-textarea.css +5 -2
- package/dist/collection/components/six-textarea/six-textarea.js +796 -882
- package/dist/collection/components/six-textarea/six-textarea.js.map +1 -1
- package/dist/collection/components/six-textarea/test/six-textarea.spec.js +119 -0
- package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +1 -0
- package/dist/collection/components/six-tile/six-tile.css +2 -2
- package/dist/collection/components/six-tile/six-tile.js +300 -299
- package/dist/collection/components/six-tile/six-tile.js.map +1 -1
- package/dist/collection/components/six-tile/test/six-tile.spec.js +69 -0
- package/dist/collection/components/six-tile/test/six-tile.spec.js.map +1 -0
- package/dist/collection/components/six-timepicker/six-timepicker.css +1 -1
- package/dist/collection/components/six-timepicker/six-timepicker.js +829 -911
- package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
- package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js +496 -0
- package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +1 -0
- package/dist/collection/components/six-tooltip/six-tooltip.css +2 -2
- package/dist/collection/components/six-tooltip/six-tooltip.js +405 -402
- package/dist/collection/components/six-tooltip/six-tooltip.js.map +1 -1
- package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js +28 -0
- package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js.map +1 -0
- package/dist/collection/functional-components/form-control/form-control.js +20 -19
- package/dist/collection/functional-components/form-control/form-control.js.map +1 -1
- package/dist/collection/index.js +2 -1
- package/dist/collection/index.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/alert.js +54 -0
- package/dist/collection/utils/alert.js.map +1 -0
- package/dist/collection/utils/animation.js +34 -0
- package/dist/collection/utils/animation.js.map +1 -0
- package/dist/collection/utils/date-util.js +536 -502
- package/dist/collection/utils/date-util.js.map +1 -1
- package/dist/collection/utils/date-util.spec.js +995 -0
- package/dist/collection/utils/date-util.spec.js.map +1 -0
- package/dist/collection/utils/error-messages.js +112 -0
- package/dist/collection/utils/error-messages.js.map +1 -0
- package/dist/collection/utils/event-listeners.js +53 -37
- package/dist/collection/utils/event-listeners.js.map +1 -1
- package/dist/collection/utils/execution-control.js +14 -13
- 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 +15 -0
- package/dist/collection/utils/form.js.map +1 -0
- package/dist/collection/utils/modal.js +25 -24
- 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 +104 -90
- package/dist/collection/utils/popover.js.map +1 -1
- package/dist/collection/utils/popup.js +95 -0
- package/dist/collection/utils/popup.js.map +1 -0
- package/dist/collection/utils/scroll.js +28 -28
- package/dist/collection/utils/scroll.js.map +1 -1
- package/dist/collection/utils/scroll.spec.js +122 -0
- package/dist/collection/utils/scroll.spec.js.map +1 -0
- package/dist/collection/utils/slot.js +30 -46
- 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 +73 -59
- package/dist/collection/utils/time.util.js.map +1 -1
- package/dist/collection/utils/time.util.spec.js +368 -0
- package/dist/collection/utils/time.util.spec.js.map +1 -0
- package/dist/collection/utils/type-check.js +0 -1
- package/dist/collection/utils/type-check.js.map +1 -1
- package/dist/components/event-listeners.js +53 -37
- package/dist/components/event-listeners.js.map +1 -1
- package/dist/components/execution-control.js +14 -11
- 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 -24
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form.js +18 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +118 -65
- package/dist/components/index.js.map +1 -1
- package/dist/components/modal.js +35 -34
- package/dist/components/modal.js.map +1 -1
- package/dist/components/popover.js +108 -100
- 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/six-alert.d.ts +2 -2
- package/dist/components/six-alert.js +176 -146
- package/dist/components/six-alert.js.map +1 -1
- package/dist/components/six-avatar.d.ts +2 -2
- package/dist/components/six-avatar.js +45 -48
- package/dist/components/six-avatar.js.map +1 -1
- package/dist/components/six-badge.d.ts +2 -2
- package/dist/components/six-badge.js +40 -40
- package/dist/components/six-badge.js.map +1 -1
- package/dist/components/six-button.d.ts +2 -2
- package/dist/components/six-button.js +1 -140
- package/dist/components/six-button.js.map +1 -1
- package/dist/components/six-button2.js +146 -0
- package/dist/components/six-button2.js.map +1 -0
- package/dist/components/six-card.d.ts +2 -2
- package/dist/components/six-card.js +21 -21
- package/dist/components/six-card.js.map +1 -1
- package/dist/components/six-checkbox.d.ts +2 -2
- package/dist/components/six-checkbox.js +1 -186
- package/dist/components/six-checkbox.js.map +1 -1
- package/dist/components/six-checkbox2.js +165 -0
- package/dist/components/six-checkbox2.js.map +1 -0
- package/dist/components/six-datepicker.d.ts +2 -2
- package/dist/components/six-datepicker.js +947 -1045
- 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 -155
- package/dist/components/six-details2.js.map +1 -1
- package/dist/components/six-dialog.d.ts +2 -2
- package/dist/components/six-dialog.js +160 -160
- package/dist/components/six-dialog.js.map +1 -1
- package/dist/components/six-drawer.d.ts +2 -2
- package/dist/components/six-drawer.js +177 -179
- package/dist/components/six-drawer.js.map +1 -1
- package/dist/components/six-dropdown.d.ts +2 -2
- package/dist/components/six-dropdown2.js +549 -448
- 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 -108
- package/dist/components/six-error-page.js.map +1 -1
- package/dist/components/{six-form.d.ts → six-error.d.ts} +4 -4
- 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 +59 -59
- 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 +125 -125
- 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 +21 -21
- 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 -61
- 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 +239 -187
- 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 +38 -38
- package/dist/components/six-icon2.js.map +1 -1
- package/dist/components/six-input.d.ts +2 -2
- package/dist/components/six-input2.js +253 -304
- 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 +458 -375
- 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 +38 -34
- 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 +21 -21
- 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 +98 -73
- 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 +21 -21
- 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 +255 -232
- 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 -26
- 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 +31 -31
- 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 +129 -139
- 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 -218
- package/dist/components/six-range.js.map +1 -1
- package/dist/components/six-root.d.ts +2 -2
- package/dist/components/six-root.js +39 -66
- 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 +79 -66
- 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 +714 -479
- 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 -71
- 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 +201 -178
- package/dist/components/six-sidebar.js.map +1 -1
- package/dist/components/six-spinner.d.ts +2 -2
- package/dist/components/six-spinner2.js +30 -30
- 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 +29 -29
- 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 +144 -122
- 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 +256 -241
- 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 +30 -30
- 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 -67
- package/dist/components/six-tab.js.map +1 -1
- package/dist/components/six-tag.d.ts +2 -2
- package/dist/components/six-tag.js +98 -1
- package/dist/components/six-tag.js.map +1 -1
- package/dist/components/six-textarea.d.ts +2 -2
- package/dist/components/six-textarea.js +231 -246
- 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 -119
- package/dist/components/six-tile.js.map +1 -1
- package/dist/components/six-timepicker.d.ts +2 -2
- package/dist/components/six-timepicker.js +1 -1
- package/dist/components/six-timepicker2.js +508 -515
- package/dist/components/six-timepicker2.js.map +1 -1
- package/dist/components/six-tooltip.d.ts +2 -2
- package/dist/components/six-tooltip2.js +169 -170
- package/dist/components/six-tooltip2.js.map +1 -1
- package/dist/components/slot.js +31 -31
- package/dist/components/slot.js.map +1 -1
- package/dist/components.d.ts +341 -88
- package/dist/components.json +5090 -1056
- package/dist/esm/error-messages-1eaaad23.js +115 -0
- package/dist/esm/error-messages-1eaaad23.js.map +1 -0
- package/dist/esm/event-listeners-706d4309.js +59 -0
- package/dist/esm/event-listeners-706d4309.js.map +1 -0
- package/dist/esm/{execution-control-1a60d709.js → execution-control-2ebaf4ef.js} +15 -12
- package/dist/esm/execution-control-2ebaf4ef.js.map +1 -0
- package/dist/esm/focus-visible-d9dbfeef.js +45 -0
- package/dist/esm/focus-visible-d9dbfeef.js.map +1 -0
- package/dist/esm/form-4b145b7a.js +18 -0
- package/dist/esm/form-4b145b7a.js.map +1 -0
- package/dist/esm/form-control-d403a9cf.js +34 -0
- package/dist/esm/form-control-d403a9cf.js.map +1 -0
- package/dist/esm/{index-5c0f6628.js → index-79d4ef67.js} +587 -480
- package/dist/esm/index-79d4ef67.js.map +1 -0
- package/dist/esm/index.js +56 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +4 -13
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/modal-96526245.js +49 -0
- package/dist/esm/modal-96526245.js.map +1 -0
- package/dist/esm/{popover-bd2c2fca.js → popover-25996e62.js} +109 -101
- package/dist/esm/popover-25996e62.js.map +1 -0
- package/dist/esm/popup-7209e9d5.js +98 -0
- package/dist/esm/popup-7209e9d5.js.map +1 -0
- package/dist/esm/scroll-3e16851e.js +64 -0
- package/dist/esm/scroll-3e16851e.js.map +1 -0
- package/dist/esm/six-alert.entry.js +141 -114
- package/dist/esm/six-alert.entry.js.map +1 -1
- package/dist/esm/six-avatar.entry.js +21 -24
- package/dist/esm/six-avatar.entry.js.map +1 -1
- package/dist/esm/six-badge.entry.js +23 -23
- package/dist/esm/six-badge.entry.js.map +1 -1
- package/dist/esm/six-button.entry.js +94 -92
- package/dist/esm/six-button.entry.js.map +1 -1
- package/dist/esm/six-card.entry.js +8 -8
- package/dist/esm/six-card.entry.js.map +1 -1
- package/dist/esm/six-checkbox_2.entry.js +185 -0
- package/dist/esm/six-checkbox_2.entry.js.map +1 -0
- package/dist/esm/six-datepicker.entry.js +875 -980
- package/dist/esm/six-datepicker.entry.js.map +1 -1
- package/dist/esm/six-details.entry.js +127 -126
- package/dist/esm/six-details.entry.js.map +1 -1
- package/dist/esm/six-dialog.entry.js +130 -132
- package/dist/esm/six-dialog.entry.js.map +1 -1
- package/dist/esm/six-drawer.entry.js +145 -149
- package/dist/esm/six-drawer.entry.js.map +1 -1
- package/dist/esm/six-dropdown_2.entry.js +710 -619
- package/dist/esm/six-dropdown_2.entry.js.map +1 -1
- package/dist/esm/six-error-page.entry.js +82 -84
- 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 +34 -34
- 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 +100 -100
- package/dist/esm/six-file-upload.entry.js.map +1 -1
- package/dist/esm/six-footer.entry.js +8 -8
- package/dist/esm/six-footer.entry.js.map +1 -1
- package/dist/esm/six-group-label.entry.js +43 -42
- package/dist/esm/six-group-label.entry.js.map +1 -1
- package/dist/esm/six-header.entry.js +172 -135
- 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 +22 -22
- package/dist/esm/six-icon.entry.js.map +1 -1
- package/dist/esm/six-input.entry.js +186 -242
- package/dist/esm/six-input.entry.js.map +1 -1
- package/dist/esm/six-item-picker.entry.js +413 -336
- 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 +21 -19
- 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 +8 -8
- package/dist/esm/six-menu-divider.entry.js.map +1 -1
- package/dist/esm/six-menu-label.entry.js +8 -8
- package/dist/esm/six-menu-label.entry.js.map +1 -1
- package/dist/esm/six-picto.entry.js +14 -11
- package/dist/esm/six-picto.entry.js.map +1 -1
- package/dist/esm/six-progress-bar.entry.js +15 -15
- 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 +104 -113
- package/dist/esm/six-radio.entry.js.map +1 -1
- package/dist/esm/six-range.entry.js +185 -181
- package/dist/esm/six-range.entry.js.map +1 -1
- package/dist/esm/six-root.entry.js +11 -30
- package/dist/esm/six-root.entry.js.map +1 -1
- package/dist/esm/six-search-field.entry.js +44 -39
- package/dist/esm/six-search-field.entry.js.map +1 -1
- package/dist/esm/six-select.entry.js +494 -393
- package/dist/esm/six-select.entry.js.map +1 -1
- package/dist/esm/six-sidebar-item-group.entry.js +56 -41
- 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 +176 -155
- package/dist/esm/six-sidebar.entry.js.map +1 -1
- package/dist/esm/six-spinner.entry.js +15 -15
- package/dist/esm/six-spinner.entry.js.map +1 -1
- package/dist/esm/six-stage-indicator.entry.js +18 -0
- package/dist/esm/six-stage-indicator.entry.js.map +1 -0
- package/dist/esm/six-switch.entry.js +107 -95
- package/dist/esm/six-switch.entry.js.map +1 -1
- package/dist/esm/six-tab-group.entry.js +226 -213
- package/dist/esm/six-tab-group.entry.js.map +1 -1
- package/dist/esm/six-tab-panel.entry.js +14 -14
- package/dist/esm/six-tab-panel.entry.js.map +1 -1
- package/dist/esm/six-tab.entry.js +55 -37
- package/dist/esm/six-tab.entry.js.map +1 -1
- package/dist/esm/six-tag.entry.js +55 -36
- package/dist/esm/six-tag.entry.js.map +1 -1
- package/dist/esm/six-textarea.entry.js +182 -205
- package/dist/esm/six-textarea.entry.js.map +1 -1
- package/dist/esm/six-tile.entry.js +75 -78
- package/dist/esm/six-tile.entry.js.map +1 -1
- package/dist/esm/six-timepicker.entry.js +344 -405
- package/dist/esm/six-timepicker.entry.js.map +1 -1
- package/dist/esm/six-tooltip.entry.js +145 -148
- package/dist/esm/six-tooltip.entry.js.map +1 -1
- package/dist/esm/slot-56531341.js +47 -0
- package/dist/esm/slot-56531341.js.map +1 -0
- package/dist/esm/types-a07bb999.js +19 -0
- package/dist/esm/types-a07bb999.js.map +1 -0
- package/dist/esm/ui-library.js +4 -7
- package/dist/esm/ui-library.js.map +1 -1
- package/dist/types/components/six-alert/six-alert.d.ts +47 -42
- package/dist/types/components/six-avatar/six-avatar.d.ts +11 -12
- package/dist/types/components/six-badge/six-badge.d.ts +7 -8
- package/dist/types/components/six-button/six-button.d.ts +48 -49
- package/dist/types/components/six-card/six-card.d.ts +1 -1
- package/dist/types/components/six-checkbox/six-checkbox.d.ts +58 -67
- package/dist/types/components/six-datepicker/components/day-selection.d.ts +9 -5
- package/dist/types/components/six-datepicker/components/month-selection.d.ts +8 -5
- package/dist/types/components/six-datepicker/components/year-selection.d.ts +7 -5
- package/dist/types/components/six-datepicker/six-date-formats.d.ts +20 -20
- package/dist/types/components/six-datepicker/six-datepicker.d.ts +189 -198
- package/dist/types/components/six-details/six-details.d.ts +42 -42
- package/dist/types/components/six-dialog/six-dialog.d.ts +51 -51
- package/dist/types/components/six-drawer/six-drawer.d.ts +58 -59
- package/dist/types/components/six-dropdown/six-dropdown.d.ts +131 -116
- 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 +59 -66
- 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 +112 -129
- package/dist/types/components/six-item-picker/six-item-picker.d.ts +97 -93
- 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 +67 -64
- 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 +27 -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 -49
- package/dist/types/components/six-range/six-range.d.ts +75 -83
- package/dist/types/components/six-root/six-root.d.ts +10 -23
- package/dist/types/components/six-search-field/six-search-field.d.ts +20 -21
- package/dist/types/components/six-select/six-select.d.ts +137 -136
- package/dist/types/components/six-select/util.d.ts +7 -0
- 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 +26 -19
- package/dist/types/components/six-spinner/six-spinner.d.ts +6 -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 -45
- package/dist/types/components/six-tab/six-tab.d.ts +20 -20
- package/dist/types/components/six-tab-group/six-tab-group.d.ts +36 -40
- 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 -14
- package/dist/types/components/six-textarea/six-textarea.d.ts +89 -114
- package/dist/types/components/six-tile/six-tile.d.ts +31 -32
- package/dist/types/components/six-timepicker/six-timepicker.d.ts +156 -170
- package/dist/types/components/six-tooltip/six-tooltip.d.ts +55 -57
- package/dist/types/components.d.ts +731 -469
- package/dist/types/functional-components/form-control/form-control.d.ts +34 -31
- package/dist/types/index.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +49 -5
- package/dist/types/testUtil/delay.d.ts +1 -1
- package/dist/types/types.d.ts +3 -0
- package/dist/types/utils/alert.d.ts +10 -0
- package/dist/types/utils/animation.d.ts +12 -0
- package/dist/types/utils/date-util.d.ts +73 -57
- package/dist/types/utils/error-messages.d.ts +44 -0
- package/dist/types/utils/event-listeners.d.ts +11 -10
- package/dist/types/utils/execution-control.d.ts +1 -3
- package/dist/types/utils/focus-visible.d.ts +2 -2
- package/dist/types/utils/form.d.ts +1 -0
- 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 +22 -22
- package/dist/types/utils/popup.d.ts +9 -0
- package/dist/types/utils/slot.d.ts +2 -8
- package/dist/types/utils/tabbable.d.ts +1 -1
- package/dist/types/utils/time.util.d.ts +18 -9
- package/dist/types/utils/type-check.d.ts +3 -4
- package/dist/types/utils/types.d.ts +1 -1
- package/dist/ui-library/index.esm.js +1 -1
- package/dist/ui-library/index.esm.js.map +1 -1
- package/dist/ui-library/{p-d5633a29.entry.js → p-0440335d.entry.js} +2 -2
- package/dist/ui-library/p-0440335d.entry.js.map +1 -0
- package/dist/ui-library/p-04cc397c.entry.js +2 -0
- package/dist/ui-library/p-04cc397c.entry.js.map +1 -0
- package/dist/ui-library/p-06ba4450.js +2 -0
- package/dist/ui-library/p-06ba4450.js.map +1 -0
- package/dist/ui-library/p-0cebf1d2.js +2 -0
- package/dist/ui-library/p-0cebf1d2.js.map +1 -0
- package/dist/ui-library/p-0edd3091.entry.js +2 -0
- package/dist/ui-library/p-0edd3091.entry.js.map +1 -0
- package/dist/ui-library/p-150b7664.entry.js +2 -0
- package/dist/ui-library/p-150b7664.entry.js.map +1 -0
- package/dist/ui-library/p-1f5840b5.entry.js +2 -0
- package/dist/ui-library/p-1f5840b5.entry.js.map +1 -0
- package/dist/ui-library/p-28cc013e.entry.js +2 -0
- package/dist/ui-library/p-28cc013e.entry.js.map +1 -0
- package/dist/ui-library/p-3424bbc0.entry.js +2 -0
- package/dist/ui-library/p-3424bbc0.entry.js.map +1 -0
- package/dist/ui-library/p-348c68a8.entry.js +2 -0
- package/dist/ui-library/p-348c68a8.entry.js.map +1 -0
- package/dist/ui-library/p-3723ca06.entry.js +2 -0
- package/dist/ui-library/p-3723ca06.entry.js.map +1 -0
- package/dist/ui-library/p-37aeac5e.entry.js +2 -0
- package/dist/ui-library/p-37aeac5e.entry.js.map +1 -0
- package/dist/ui-library/p-3d7fb086.entry.js +2 -0
- package/dist/ui-library/p-3d7fb086.entry.js.map +1 -0
- package/dist/ui-library/{p-19b50b5a.entry.js → p-457f7373.entry.js} +2 -2
- package/dist/ui-library/p-457f7373.entry.js.map +1 -0
- package/dist/ui-library/p-4a667f31.entry.js +2 -0
- package/dist/ui-library/p-4a667f31.entry.js.map +1 -0
- package/dist/ui-library/p-50dae789.entry.js +2 -0
- package/dist/ui-library/p-50dae789.entry.js.map +1 -0
- package/dist/ui-library/p-546e33d9.entry.js +2 -0
- package/dist/ui-library/p-546e33d9.entry.js.map +1 -0
- package/dist/ui-library/{p-73597d13.entry.js → p-5db3a705.entry.js} +2 -2
- package/dist/ui-library/p-5db3a705.entry.js.map +1 -0
- package/dist/ui-library/p-61e66671.js +2 -0
- package/dist/ui-library/p-61e66671.js.map +1 -0
- package/dist/ui-library/p-6296779b.entry.js +2 -0
- package/dist/ui-library/p-6296779b.entry.js.map +1 -0
- package/dist/ui-library/p-64b4755d.entry.js +2 -0
- package/dist/ui-library/p-64b4755d.entry.js.map +1 -0
- package/dist/ui-library/p-6c1b046e.entry.js +2 -0
- package/dist/ui-library/p-6c1b046e.entry.js.map +1 -0
- package/dist/ui-library/p-7115316e.entry.js +2 -0
- package/dist/ui-library/p-7115316e.entry.js.map +1 -0
- package/dist/ui-library/p-73dd493f.entry.js +2 -0
- package/dist/ui-library/p-73dd493f.entry.js.map +1 -0
- package/dist/ui-library/p-7f856f00.js +2 -0
- package/dist/ui-library/p-7f856f00.js.map +1 -0
- package/dist/ui-library/{p-eb8f05a9.js → p-8227aaed.js} +2 -2
- package/dist/ui-library/p-8227aaed.js.map +1 -0
- package/dist/ui-library/p-842b492e.js +2 -0
- package/dist/ui-library/p-842b492e.js.map +1 -0
- package/dist/ui-library/{p-25a3bf57.js → p-862d474e.js} +1 -1
- package/dist/ui-library/p-862d474e.js.map +1 -0
- package/dist/ui-library/p-870b988d.entry.js +2 -0
- package/dist/ui-library/p-870b988d.entry.js.map +1 -0
- package/dist/ui-library/{p-19364560.entry.js → p-884c5cf9.entry.js} +2 -2
- package/dist/ui-library/p-884c5cf9.entry.js.map +1 -0
- package/dist/ui-library/p-8888a367.entry.js +2 -0
- package/dist/ui-library/p-8888a367.entry.js.map +1 -0
- package/dist/ui-library/p-8bfb4bfc.js +2 -0
- package/dist/ui-library/p-8bfb4bfc.js.map +1 -0
- package/dist/ui-library/p-8ced18d8.entry.js +2 -0
- package/dist/ui-library/p-8ced18d8.entry.js.map +1 -0
- package/dist/ui-library/{p-820c23f0.entry.js → p-935c78a7.entry.js} +2 -2
- package/dist/ui-library/p-935c78a7.entry.js.map +1 -0
- package/dist/ui-library/p-961bd001.entry.js +2 -0
- package/dist/ui-library/p-961bd001.entry.js.map +1 -0
- package/dist/ui-library/{p-4f8394d7.js → p-998de05d.js} +2 -2
- package/dist/ui-library/p-998de05d.js.map +1 -0
- package/dist/ui-library/p-9b08068d.entry.js +2 -0
- package/dist/ui-library/p-9b08068d.entry.js.map +1 -0
- package/dist/ui-library/p-9c79341d.entry.js +2 -0
- package/dist/ui-library/p-9c79341d.entry.js.map +1 -0
- package/dist/ui-library/p-a1502802.js +2 -0
- package/dist/ui-library/p-a1502802.js.map +1 -0
- package/dist/ui-library/p-a9c159f2.entry.js +2 -0
- package/dist/ui-library/p-a9c159f2.entry.js.map +1 -0
- package/dist/ui-library/p-ac57ba5c.entry.js +2 -0
- package/dist/ui-library/p-ac57ba5c.entry.js.map +1 -0
- package/dist/ui-library/p-af15381b.js +3 -0
- package/dist/ui-library/p-af15381b.js.map +1 -0
- package/dist/ui-library/p-b1a5f3cd.entry.js +2 -0
- package/dist/ui-library/p-b1a5f3cd.entry.js.map +1 -0
- package/dist/ui-library/p-b385a241.entry.js +2 -0
- package/dist/ui-library/p-b385a241.entry.js.map +1 -0
- package/dist/ui-library/p-b74c5d6b.entry.js +2 -0
- package/dist/ui-library/p-b74c5d6b.entry.js.map +1 -0
- package/dist/ui-library/p-bf2fb53f.entry.js +2 -0
- package/dist/ui-library/p-bf2fb53f.entry.js.map +1 -0
- package/dist/ui-library/p-c2c7370b.entry.js +2 -0
- package/dist/ui-library/p-c2c7370b.entry.js.map +1 -0
- package/dist/ui-library/p-caea1eb6.entry.js +2 -0
- package/dist/ui-library/p-caea1eb6.entry.js.map +1 -0
- package/dist/ui-library/p-d3f5b9a8.entry.js +2 -0
- package/dist/ui-library/p-d3f5b9a8.entry.js.map +1 -0
- package/dist/ui-library/p-d42b18eb.entry.js +2 -0
- package/dist/ui-library/p-d42b18eb.entry.js.map +1 -0
- package/dist/ui-library/p-d95e292e.entry.js +2 -0
- package/dist/ui-library/p-d95e292e.entry.js.map +1 -0
- package/dist/ui-library/p-da7f3dbd.entry.js +2 -0
- package/dist/ui-library/p-da7f3dbd.entry.js.map +1 -0
- package/dist/ui-library/p-dfb89b6a.entry.js +2 -0
- package/dist/ui-library/p-dfb89b6a.entry.js.map +1 -0
- package/dist/ui-library/p-e080d5b6.js +2 -0
- package/dist/ui-library/p-e080d5b6.js.map +1 -0
- package/dist/ui-library/p-e6032375.entry.js +2 -0
- package/dist/ui-library/p-e6032375.entry.js.map +1 -0
- package/dist/ui-library/p-e60d2324.entry.js +2 -0
- package/dist/ui-library/p-e60d2324.entry.js.map +1 -0
- package/dist/ui-library/p-e8298c6e.entry.js +2 -0
- package/dist/ui-library/p-e8298c6e.entry.js.map +1 -0
- package/dist/ui-library/p-ed279165.entry.js +2 -0
- package/dist/ui-library/p-ed279165.entry.js.map +1 -0
- package/dist/ui-library/p-ed61b75c.entry.js +2 -0
- package/dist/ui-library/p-ed61b75c.entry.js.map +1 -0
- package/dist/ui-library/p-f136a6b2.js +2 -0
- package/dist/ui-library/p-f136a6b2.js.map +1 -0
- package/dist/ui-library/p-f1ab3384.entry.js +2 -0
- package/dist/ui-library/p-f1ab3384.entry.js.map +1 -0
- package/dist/ui-library/p-f4ef481c.entry.js +2 -0
- package/dist/ui-library/p-f4ef481c.entry.js.map +1 -0
- package/dist/ui-library/p-f8cbb8da.entry.js +2 -0
- package/dist/ui-library/p-f8cbb8da.entry.js.map +1 -0
- package/dist/ui-library/ui-library.css +1 -10
- package/dist/ui-library/ui-library.esm.js +1 -1
- package/dist/ui-library/ui-library.esm.js.map +1 -1
- package/loader/index.d.ts +1 -1
- package/package.json +20 -21
- package/dist/cjs/event-listeners-74715e62.js +0 -45
- package/dist/cjs/event-listeners-74715e62.js.map +0 -1
- package/dist/cjs/execution-control-46f388e0.js.map +0 -1
- package/dist/cjs/focus-visible-0b352c74.js +0 -47
- package/dist/cjs/focus-visible-0b352c74.js.map +0 -1
- package/dist/cjs/form-control-2c17c573.js +0 -34
- package/dist/cjs/form-control-2c17c573.js.map +0 -1
- package/dist/cjs/index-2f6daa5b.js.map +0 -1
- package/dist/cjs/modal-48d42228.js +0 -51
- package/dist/cjs/modal-48d42228.js.map +0 -1
- package/dist/cjs/popover-f743f62b.js.map +0 -1
- package/dist/cjs/scroll-76e6f5d7.js +0 -69
- package/dist/cjs/scroll-76e6f5d7.js.map +0 -1
- package/dist/cjs/set-attributes_2.cjs.entry.js +0 -71
- package/dist/cjs/set-attributes_2.cjs.entry.js.map +0 -1
- package/dist/cjs/six-checkbox.cjs.entry.js +0 -159
- package/dist/cjs/six-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/six-form.cjs.entry.js +0 -231
- package/dist/cjs/six-form.cjs.entry.js.map +0 -1
- package/dist/cjs/six-menu-item.cjs.entry.js +0 -61
- package/dist/cjs/six-menu-item.cjs.entry.js.map +0 -1
- package/dist/cjs/six-timepicker.types-c19ebff3.js +0 -56
- package/dist/cjs/six-timepicker.types-c19ebff3.js.map +0 -1
- package/dist/cjs/slot-ad537f24.js +0 -52
- package/dist/cjs/slot-ad537f24.js.map +0 -1
- package/dist/cjs/types-64878648.js +0 -17
- package/dist/cjs/types-64878648.js.map +0 -1
- package/dist/collection/components/six-form/six-form.css +0 -11
- package/dist/collection/components/six-form/six-form.js +0 -419
- package/dist/collection/components/six-form/six-form.js.map +0 -1
- package/dist/collection/components/six-timepicker/six-time-format.js +0 -15
- package/dist/collection/components/six-timepicker/six-time-format.js.map +0 -1
- package/dist/collection/components/six-timepicker/six-timepicker.types.js +0 -41
- package/dist/collection/components/six-timepicker/six-timepicker.types.js.map +0 -1
- package/dist/collection/utils/as-array.js +0 -2
- package/dist/collection/utils/as-array.js.map +0 -1
- package/dist/collection/utils/matchers.js +0 -3
- package/dist/collection/utils/matchers.js.map +0 -1
- package/dist/collection/utils/testing.js +0 -39
- package/dist/collection/utils/testing.js.map +0 -1
- package/dist/collection/wrappers/set-attributes/set-attributes.js +0 -72
- package/dist/collection/wrappers/set-attributes/set-attributes.js.map +0 -1
- package/dist/components/set-attributes.d.ts +0 -11
- package/dist/components/set-attributes.js +0 -8
- package/dist/components/set-attributes.js.map +0 -1
- package/dist/components/set-attributes2.js +0 -69
- package/dist/components/set-attributes2.js.map +0 -1
- package/dist/components/six-form.js +0 -252
- package/dist/components/six-form.js.map +0 -1
- package/dist/components/six-tag2.js +0 -77
- package/dist/components/six-tag2.js.map +0 -1
- package/dist/esm/event-listeners-570a24ea.js +0 -43
- package/dist/esm/event-listeners-570a24ea.js.map +0 -1
- package/dist/esm/execution-control-1a60d709.js.map +0 -1
- package/dist/esm/focus-visible-97933ea9.js +0 -45
- package/dist/esm/focus-visible-97933ea9.js.map +0 -1
- package/dist/esm/form-control-3b440ea1.js +0 -32
- package/dist/esm/form-control-3b440ea1.js.map +0 -1
- package/dist/esm/index-5c0f6628.js.map +0 -1
- package/dist/esm/modal-5ebdc320.js +0 -48
- package/dist/esm/modal-5ebdc320.js.map +0 -1
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/popover-bd2c2fca.js.map +0 -1
- package/dist/esm/scroll-180b53fd.js +0 -64
- package/dist/esm/set-attributes_2.entry.js +0 -66
- package/dist/esm/set-attributes_2.entry.js.map +0 -1
- package/dist/esm/six-checkbox.entry.js +0 -155
- package/dist/esm/six-checkbox.entry.js.map +0 -1
- package/dist/esm/six-form.entry.js +0 -227
- package/dist/esm/six-form.entry.js.map +0 -1
- package/dist/esm/six-menu-item.entry.js +0 -57
- package/dist/esm/six-menu-item.entry.js.map +0 -1
- package/dist/esm/six-timepicker.types-e161a447.js +0 -50
- package/dist/esm/six-timepicker.types-e161a447.js.map +0 -1
- package/dist/esm/slot-6f3984c7.js +0 -47
- package/dist/esm/slot-6f3984c7.js.map +0 -1
- package/dist/esm/types-4b10b413.js +0 -17
- package/dist/esm/types-4b10b413.js.map +0 -1
- package/dist/types/components/six-form/six-form.d.ts +0 -69
- package/dist/types/components/six-timepicker/six-time-format.d.ts +0 -13
- package/dist/types/components/six-timepicker/six-timepicker.types.d.ts +0 -36
- package/dist/types/utils/as-array.d.ts +0 -1
- package/dist/types/utils/matchers.d.ts +0 -2
- package/dist/types/utils/popper.d.ts +0 -33
- package/dist/types/utils/testing.d.ts +0 -2
- package/dist/types/wrappers/set-attributes/set-attributes.d.ts +0 -9
- package/dist/ui-library/p-054e12cc.entry.js +0 -2
- package/dist/ui-library/p-054e12cc.entry.js.map +0 -1
- package/dist/ui-library/p-0786fa7c.js +0 -2
- package/dist/ui-library/p-0786fa7c.js.map +0 -1
- package/dist/ui-library/p-097cced4.entry.js +0 -2
- package/dist/ui-library/p-097cced4.entry.js.map +0 -1
- package/dist/ui-library/p-0d79b0c6.entry.js +0 -2
- package/dist/ui-library/p-0d79b0c6.entry.js.map +0 -1
- package/dist/ui-library/p-18e5f772.entry.js +0 -2
- package/dist/ui-library/p-18e5f772.entry.js.map +0 -1
- package/dist/ui-library/p-18ea0c56.js +0 -2
- package/dist/ui-library/p-18ea0c56.js.map +0 -1
- package/dist/ui-library/p-19364560.entry.js.map +0 -1
- package/dist/ui-library/p-19b50b5a.entry.js.map +0 -1
- package/dist/ui-library/p-21859bca.entry.js +0 -2
- package/dist/ui-library/p-21859bca.entry.js.map +0 -1
- package/dist/ui-library/p-25a3bf57.js.map +0 -1
- package/dist/ui-library/p-2e48c8d2.entry.js +0 -2
- package/dist/ui-library/p-2e48c8d2.entry.js.map +0 -1
- package/dist/ui-library/p-308261c4.entry.js +0 -2
- package/dist/ui-library/p-308261c4.entry.js.map +0 -1
- package/dist/ui-library/p-33f7e22b.entry.js +0 -2
- package/dist/ui-library/p-33f7e22b.entry.js.map +0 -1
- package/dist/ui-library/p-4ae91795.entry.js +0 -2
- package/dist/ui-library/p-4ae91795.entry.js.map +0 -1
- package/dist/ui-library/p-4f8394d7.js.map +0 -1
- package/dist/ui-library/p-53a13db5.entry.js +0 -2
- package/dist/ui-library/p-53a13db5.entry.js.map +0 -1
- package/dist/ui-library/p-559c87f0.entry.js +0 -2
- package/dist/ui-library/p-559c87f0.entry.js.map +0 -1
- package/dist/ui-library/p-611e1978.entry.js +0 -2
- package/dist/ui-library/p-611e1978.entry.js.map +0 -1
- package/dist/ui-library/p-63703ba3.entry.js +0 -2
- package/dist/ui-library/p-63703ba3.entry.js.map +0 -1
- package/dist/ui-library/p-6403fd87.entry.js +0 -2
- package/dist/ui-library/p-6403fd87.entry.js.map +0 -1
- package/dist/ui-library/p-6433c0da.entry.js +0 -2
- package/dist/ui-library/p-6433c0da.entry.js.map +0 -1
- package/dist/ui-library/p-6d75f216.entry.js +0 -2
- package/dist/ui-library/p-6d75f216.entry.js.map +0 -1
- package/dist/ui-library/p-73597d13.entry.js.map +0 -1
- package/dist/ui-library/p-79eee01b.js +0 -2
- package/dist/ui-library/p-79eee01b.js.map +0 -1
- package/dist/ui-library/p-7e0cc4ae.entry.js +0 -2
- package/dist/ui-library/p-7e0cc4ae.entry.js.map +0 -1
- package/dist/ui-library/p-820c23f0.entry.js.map +0 -1
- package/dist/ui-library/p-835c3ff7.entry.js +0 -2
- package/dist/ui-library/p-835c3ff7.entry.js.map +0 -1
- package/dist/ui-library/p-8a970a40.entry.js +0 -2
- package/dist/ui-library/p-8a970a40.entry.js.map +0 -1
- package/dist/ui-library/p-90824648.entry.js +0 -2
- package/dist/ui-library/p-90824648.entry.js.map +0 -1
- package/dist/ui-library/p-90dc6af4.entry.js +0 -2
- package/dist/ui-library/p-90dc6af4.entry.js.map +0 -1
- package/dist/ui-library/p-9328e5bc.entry.js +0 -2
- package/dist/ui-library/p-9328e5bc.entry.js.map +0 -1
- package/dist/ui-library/p-97323ad7.entry.js +0 -2
- package/dist/ui-library/p-97323ad7.entry.js.map +0 -1
- package/dist/ui-library/p-9a860acc.js +0 -2
- package/dist/ui-library/p-9a860acc.js.map +0 -1
- package/dist/ui-library/p-9d1d222f.entry.js +0 -2
- package/dist/ui-library/p-9d1d222f.entry.js.map +0 -1
- package/dist/ui-library/p-a1d4f6cf.entry.js +0 -2
- package/dist/ui-library/p-a1d4f6cf.entry.js.map +0 -1
- package/dist/ui-library/p-ac4f4d45.js +0 -3
- package/dist/ui-library/p-ac4f4d45.js.map +0 -1
- package/dist/ui-library/p-af793d04.entry.js +0 -2
- package/dist/ui-library/p-af793d04.entry.js.map +0 -1
- package/dist/ui-library/p-b0e5658f.entry.js +0 -2
- package/dist/ui-library/p-b0e5658f.entry.js.map +0 -1
- package/dist/ui-library/p-b1e66136.js +0 -2
- package/dist/ui-library/p-b1e66136.js.map +0 -1
- package/dist/ui-library/p-b4dfb7cf.js +0 -2
- package/dist/ui-library/p-b4dfb7cf.js.map +0 -1
- package/dist/ui-library/p-b997e43c.entry.js +0 -2
- package/dist/ui-library/p-b997e43c.entry.js.map +0 -1
- package/dist/ui-library/p-baa03951.entry.js +0 -2
- package/dist/ui-library/p-baa03951.entry.js.map +0 -1
- package/dist/ui-library/p-c0cb6436.entry.js +0 -2
- package/dist/ui-library/p-c0cb6436.entry.js.map +0 -1
- package/dist/ui-library/p-c30f9e0b.entry.js +0 -2
- package/dist/ui-library/p-c30f9e0b.entry.js.map +0 -1
- package/dist/ui-library/p-c349d1d4.entry.js +0 -2
- package/dist/ui-library/p-c349d1d4.entry.js.map +0 -1
- package/dist/ui-library/p-c53a63f9.entry.js +0 -2
- package/dist/ui-library/p-c53a63f9.entry.js.map +0 -1
- package/dist/ui-library/p-c640c2d8.entry.js +0 -2
- package/dist/ui-library/p-c640c2d8.entry.js.map +0 -1
- package/dist/ui-library/p-c94d0b07.entry.js +0 -2
- package/dist/ui-library/p-c94d0b07.entry.js.map +0 -1
- package/dist/ui-library/p-d12c6092.js +0 -2
- package/dist/ui-library/p-d12c6092.js.map +0 -1
- package/dist/ui-library/p-d5633a29.entry.js.map +0 -1
- package/dist/ui-library/p-dd3c76f1.entry.js +0 -2
- package/dist/ui-library/p-dd3c76f1.entry.js.map +0 -1
- package/dist/ui-library/p-df655bc9.entry.js +0 -2
- package/dist/ui-library/p-df655bc9.entry.js.map +0 -1
- package/dist/ui-library/p-e19a6c95.entry.js +0 -2
- package/dist/ui-library/p-e19a6c95.entry.js.map +0 -1
- package/dist/ui-library/p-e9e930d2.entry.js +0 -2
- package/dist/ui-library/p-e9e930d2.entry.js.map +0 -1
- package/dist/ui-library/p-eb8f05a9.js.map +0 -1
- package/dist/ui-library/p-edc96efc.entry.js +0 -2
- package/dist/ui-library/p-edc96efc.entry.js.map +0 -1
- package/dist/ui-library/p-f18ba86f.entry.js +0 -2
- package/dist/ui-library/p-f18ba86f.entry.js.map +0 -1
- package/dist/ui-library/p-f4938771.entry.js +0 -2
- package/dist/ui-library/p-f4938771.entry.js.map +0 -1
- package/dist/ui-library/p-f70e2403.entry.js +0 -2
- package/dist/ui-library/p-f70e2403.entry.js.map +0 -1
- package/dist/ui-library/p-f9d345e0.entry.js +0 -2
- package/dist/ui-library/p-f9d345e0.entry.js.map +0 -1
- package/dist/ui-library/p-fed07a1f.entry.js +0 -2
- package/dist/ui-library/p-fed07a1f.entry.js.map +0 -1
- package/dist/ui-library/p-ff0257bf.entry.js +0 -2
- package/dist/ui-library/p-ff0257bf.entry.js.map +0 -1
- package/readme.md +0 -156
|
@@ -1,1271 +1,1108 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
import { createCalendarGrid, day, formatDate, getFirstDayOfTheWeek, hours, i18nDate, isValidDate, isValidDateString, minutes, month, now, seconds, toDate, year, } from
|
|
3
|
-
import { EventListeners } from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { SixTimePropertyName } from '../six-timepicker/six-timepicker.types';
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { createCalendarGrid, day, formatDate, getFirstDayOfTheWeek, hours, i18nDate, isValidDate, isValidDateString, minutes, month, now, rangeAround, removeTime, seconds, toDate, year, } from "../../utils/date-util";
|
|
3
|
+
import { EventListeners } from "../../utils/event-listeners";
|
|
4
|
+
import { debounce, debounceEvent, DEFAULT_DEBOUNCE_FAST } from "../../utils/execution-control";
|
|
5
|
+
import { hasSlot } from "../../utils/slot";
|
|
6
|
+
import { SixDateFormats } from "./six-date-formats";
|
|
7
|
+
import { MonthSelection } from "./components/month-selection";
|
|
8
|
+
import { DaySelection } from "./components/day-selection";
|
|
9
|
+
import { YearSelection } from "./components/year-selection";
|
|
10
|
+
import { adjustPopupForHoisting, adjustPopupForSmallScreens, calcIsDropDownContentUp, movePopup, } from "../../utils/popup";
|
|
12
11
|
const NUMBER_OF_YEARS_SHOWN = 25;
|
|
13
12
|
const MIN_POPUP_HEIGHT = 400;
|
|
14
13
|
var SelectionMode;
|
|
15
14
|
(function (SelectionMode) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
SelectionMode["DAY"] = "day";
|
|
16
|
+
SelectionMode["MONTH"] = "month";
|
|
17
|
+
SelectionMode["YEAR"] = "year";
|
|
19
18
|
})(SelectionMode || (SelectionMode = {}));
|
|
20
|
-
const getYearSelectionAroundYear = (year) => {
|
|
21
|
-
const numberOfElementsPerRow = 5;
|
|
22
|
-
return Array.from(new Array(NUMBER_OF_YEARS_SHOWN).keys())
|
|
23
|
-
.map((n) => n + year - Math.floor(NUMBER_OF_YEARS_SHOWN / 2))
|
|
24
|
-
.reduce((curr, item, index) => {
|
|
25
|
-
if (index % numberOfElementsPerRow === 0) {
|
|
26
|
-
curr.push([]);
|
|
27
|
-
}
|
|
28
|
-
curr[curr.length - 1].push(item);
|
|
29
|
-
return curr;
|
|
30
|
-
}, []);
|
|
31
|
-
};
|
|
32
19
|
/**
|
|
33
20
|
* @since 1.0
|
|
34
21
|
* @status stable
|
|
35
22
|
*
|
|
36
23
|
* @slot - Used to define a footer for the date picker.
|
|
24
|
+
* @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.
|
|
37
25
|
*/
|
|
38
26
|
export class SixDatepicker {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
this.
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
27
|
+
constructor() {
|
|
28
|
+
this.eventListeners = new EventListeners();
|
|
29
|
+
this.previousUnit = () => {
|
|
30
|
+
if (this.selectionMode === SelectionMode.DAY) {
|
|
31
|
+
this.previousMonth();
|
|
32
|
+
}
|
|
33
|
+
else if (this.selectionMode === SelectionMode.MONTH) {
|
|
34
|
+
this.previousYear();
|
|
35
|
+
}
|
|
36
|
+
else if (this.selectionMode === SelectionMode.YEAR) {
|
|
37
|
+
this.previousYearGroup();
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
this.nextUnit = () => {
|
|
41
|
+
if (this.selectionMode === SelectionMode.DAY) {
|
|
42
|
+
this.nextMonth();
|
|
43
|
+
}
|
|
44
|
+
else if (this.selectionMode === SelectionMode.MONTH) {
|
|
45
|
+
this.nextYear();
|
|
46
|
+
}
|
|
47
|
+
else if (this.selectionMode === SelectionMode.YEAR) {
|
|
48
|
+
this.nextYearGroup();
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
this.handleDocumentKeyDown = (event) => {
|
|
52
|
+
var _a;
|
|
53
|
+
const keyboardEvent = event;
|
|
54
|
+
// Close when escape is pressed
|
|
55
|
+
if (this.open && keyboardEvent.key === 'Escape') {
|
|
56
|
+
keyboardEvent.stopPropagation();
|
|
57
|
+
this.closePopup();
|
|
58
|
+
void ((_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.setFocus());
|
|
59
|
+
}
|
|
60
|
+
// Handle tabbing
|
|
61
|
+
if (keyboardEvent.key === 'Tab') {
|
|
62
|
+
this.closePopup();
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
this.handleDocumentMouseDown = (event) => {
|
|
66
|
+
// Close when clicking outside the containing element
|
|
67
|
+
const path = event.composedPath();
|
|
68
|
+
if (!path.includes(this.container)) {
|
|
69
|
+
this.closePopup();
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
this.handleClearClick = async (event) => {
|
|
74
|
+
event.stopPropagation();
|
|
75
|
+
await this.select(undefined);
|
|
76
|
+
this.sixClear.emit();
|
|
77
|
+
};
|
|
78
|
+
this.onTimepickerChange = (sixTimepickerChange) => {
|
|
79
|
+
const time = sixTimepickerChange.detail.value;
|
|
80
|
+
const newDate = new Date();
|
|
81
|
+
if (this.selectedDate != null) {
|
|
82
|
+
newDate.setFullYear(this.selectedDate.getFullYear(), this.selectedDate.getMonth(), this.selectedDate.getDate());
|
|
83
|
+
}
|
|
84
|
+
if (time != null) {
|
|
85
|
+
const hours = time.hours;
|
|
86
|
+
const minutes = time.minutes;
|
|
87
|
+
const seconds = time.seconds;
|
|
88
|
+
if (hours != null) {
|
|
89
|
+
newDate.setHours(hours, minutes, seconds);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
this.updateValue(newDate);
|
|
93
|
+
this.updatePointerDates();
|
|
94
|
+
};
|
|
95
|
+
this.onClickDateCell = (cell) => {
|
|
96
|
+
if (!cell.isDisabled) {
|
|
97
|
+
void this.select(cell.dateString);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
this.onClickMonthCell = (selectedMonth) => {
|
|
101
|
+
const month = i18nDate[this.locale].monthsShort.findIndex((monthShort) => monthShort === selectedMonth);
|
|
102
|
+
this.pointerDate = Object.assign(Object.assign({}, this.pointerDate), { month });
|
|
103
|
+
this.selectionMode = SelectionMode.DAY;
|
|
104
|
+
};
|
|
105
|
+
this.onClickYearCell = (year) => {
|
|
106
|
+
this.pointerDate = Object.assign(Object.assign({}, this.pointerDate), { year });
|
|
107
|
+
this.selectionMode = SelectionMode.DAY;
|
|
108
|
+
};
|
|
109
|
+
this.handleInputChange = (event) => {
|
|
110
|
+
if (this.inputElement == null) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
event.stopPropagation();
|
|
114
|
+
const inputValue = this.inputElement.value;
|
|
115
|
+
if (!isValidDateString(inputValue, this.dateFormat)) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
const inputValueDate = toDate(inputValue, this.dateFormat);
|
|
119
|
+
if (inputValueDate === undefined) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
this.updateIfChanged(inputValueDate);
|
|
123
|
+
const datesOnly = inputValue.replace(/[^\d]/g, '');
|
|
124
|
+
if (datesOnly.length >= 6) {
|
|
125
|
+
const date = toDate(inputValue, this.dateFormat);
|
|
126
|
+
const dateAsString = formatDate(date, this.dateFormat);
|
|
127
|
+
if (isValidDateString(dateAsString, this.dateFormat)) {
|
|
128
|
+
this.selectedDate = toDate(dateAsString, this.dateFormat);
|
|
129
|
+
this.updatePointerDates();
|
|
130
|
+
this.updateValue(this.selectedDate);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
this.handleOnBlur = (event) => {
|
|
135
|
+
var _a, _b;
|
|
136
|
+
// clear the value if the user deleted the date
|
|
137
|
+
if (((_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.value) === '' && isValidDate(this.value)) {
|
|
138
|
+
this.value = undefined;
|
|
139
|
+
this.sixSelect.emit(this.value);
|
|
140
|
+
}
|
|
141
|
+
event.stopPropagation();
|
|
142
|
+
const inputValue = (_b = this.inputElement) === null || _b === void 0 ? void 0 : _b.value;
|
|
143
|
+
const inputValueDate = toDate(inputValue, this.dateFormat);
|
|
144
|
+
const formattedDate = formatDate(this.value, this.dateFormat);
|
|
145
|
+
if (this.inputElement != null && inputValueDate != null && inputValue !== formattedDate) {
|
|
146
|
+
// properly format date if necessary
|
|
147
|
+
this.inputElement.value = formattedDate;
|
|
148
|
+
}
|
|
149
|
+
this.sixBlur.emit(this.value);
|
|
150
|
+
};
|
|
151
|
+
this.pointerDate = SixDatepicker.getCurrentDateAsPointer();
|
|
152
|
+
this.selectionMode = SelectionMode.DAY;
|
|
153
|
+
this.isDropDownContentUp = false;
|
|
154
|
+
this.type = 'date';
|
|
155
|
+
this.locale = 'en';
|
|
156
|
+
this.open = false;
|
|
157
|
+
this.inline = false;
|
|
158
|
+
this.readonly = false;
|
|
159
|
+
this.disabled = false;
|
|
160
|
+
this.allowedDates = () => true;
|
|
161
|
+
this.min = undefined;
|
|
162
|
+
this.max = undefined;
|
|
163
|
+
this.closeOnSelect = this.type === 'date';
|
|
164
|
+
this.placement = undefined;
|
|
165
|
+
this.size = 'medium';
|
|
166
|
+
this.required = false;
|
|
167
|
+
this.defaultDate = undefined;
|
|
168
|
+
this.placeholder = undefined;
|
|
121
169
|
this.value = undefined;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
this.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
this.pointerDate = SixDatepicker.getCurrentDateAsPointer();
|
|
134
|
-
this.selectionMode = SelectionMode.DAY;
|
|
135
|
-
this.isDropDownContentUp = false;
|
|
136
|
-
this.type = 'date';
|
|
137
|
-
this.locale = 'en';
|
|
138
|
-
this.open = false;
|
|
139
|
-
this.inline = false;
|
|
140
|
-
this.readonly = false;
|
|
141
|
-
this.disabled = false;
|
|
142
|
-
this.allowedDates = () => true;
|
|
143
|
-
this.min = null;
|
|
144
|
-
this.max = null;
|
|
145
|
-
this.closeOnSelect = this.type === 'date';
|
|
146
|
-
this.placement = undefined;
|
|
147
|
-
this.size = 'medium';
|
|
148
|
-
this.required = undefined;
|
|
149
|
-
this.defaultDate = undefined;
|
|
150
|
-
this.placeholder = undefined;
|
|
151
|
-
this.value = null;
|
|
152
|
-
this.containingElement = undefined;
|
|
153
|
-
this.dateFormat = SixDateFormats.DDMMYYY_DOT;
|
|
154
|
-
this.debounce = DEFAULT_DEBOUNCE_FAST;
|
|
155
|
-
this.errorOnBlur = false;
|
|
156
|
-
this.errorText = '';
|
|
157
|
-
this.label = '';
|
|
158
|
-
this.name = '';
|
|
159
|
-
this.clearable = false;
|
|
160
|
-
this.iconPosition = 'left';
|
|
161
|
-
this.hoist = false;
|
|
162
|
-
}
|
|
163
|
-
debounceChanged() {
|
|
164
|
-
this.sixSelect = debounceEvent(this.sixSelect, this.debounce);
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Update the native input element when the value changes
|
|
168
|
-
*/
|
|
169
|
-
valueChanged() {
|
|
170
|
-
// map unreadable values to undefined to make the datepicker fault-tolerant
|
|
171
|
-
if (this.isValidValue()) {
|
|
172
|
-
console.warn('Encountered unreadable date, will map to undefined. Received value', this.value);
|
|
173
|
-
this.value = undefined;
|
|
174
|
-
return;
|
|
170
|
+
this.label = '';
|
|
171
|
+
this.errorText = '';
|
|
172
|
+
this.errorTextCount = undefined;
|
|
173
|
+
this.invalid = false;
|
|
174
|
+
this.containingElement = undefined;
|
|
175
|
+
this.dateFormat = SixDateFormats.DDMMYYY_DOT;
|
|
176
|
+
this.debounce = DEFAULT_DEBOUNCE_FAST;
|
|
177
|
+
this.name = '';
|
|
178
|
+
this.clearable = false;
|
|
179
|
+
this.iconPosition = 'left';
|
|
180
|
+
this.hoist = false;
|
|
175
181
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
this.sixSelect.emit(this.value);
|
|
179
|
-
}
|
|
180
|
-
async resizeHandler() {
|
|
181
|
-
this.calcIsDropDownContentUp();
|
|
182
|
-
this.moveOpenHoistedPopup();
|
|
183
|
-
this.adjustPopupPosition();
|
|
184
|
-
}
|
|
185
|
-
async scrollHandler() {
|
|
186
|
-
this.calcIsDropDownContentUp();
|
|
187
|
-
this.moveOpenHoistedPopup();
|
|
188
|
-
}
|
|
189
|
-
get container() {
|
|
190
|
-
return this.containingElement || this.host;
|
|
191
|
-
}
|
|
192
|
-
get firstDateOfBox() {
|
|
193
|
-
const date = new Date(this.pointerDate.year, this.pointerDate.month, 1);
|
|
194
|
-
return getFirstDayOfTheWeek(date);
|
|
195
|
-
}
|
|
196
|
-
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
197
|
-
async reportValidity() {
|
|
198
|
-
return this.inputElement.reportValidity();
|
|
199
|
-
}
|
|
200
|
-
/** Checks for validity. */
|
|
201
|
-
async checkValidity() {
|
|
202
|
-
return this.inputElement.checkValidity();
|
|
203
|
-
}
|
|
204
|
-
/** Sets a custom validation message. If `message` is not empty, the field will be considered invalid. */
|
|
205
|
-
async setCustomValidity(message) {
|
|
206
|
-
await this.inputElement.setCustomValidity(message);
|
|
207
|
-
}
|
|
208
|
-
/** Resets the formcontrol */
|
|
209
|
-
async reset() {
|
|
210
|
-
this.value = this.defaultValue;
|
|
211
|
-
this.inputElement.value = formatDate(this.defaultValue, this.dateFormat);
|
|
212
|
-
await this.inputElement.reset();
|
|
213
|
-
}
|
|
214
|
-
isValidValue() {
|
|
215
|
-
if (this.value === undefined || this.value === null) {
|
|
216
|
-
return false;
|
|
182
|
+
debounceChanged() {
|
|
183
|
+
this.sixSelect = debounceEvent(this.sixSelect, this.debounce);
|
|
217
184
|
}
|
|
218
|
-
|
|
219
|
-
|
|
185
|
+
/**
|
|
186
|
+
* Update the native input element when the value changes
|
|
187
|
+
*/
|
|
188
|
+
valueChanged() {
|
|
189
|
+
if (this.value != null && !isValidDate(this.value)) {
|
|
190
|
+
console.warn('invalid date value: ', this.value);
|
|
191
|
+
this.value = undefined;
|
|
192
|
+
this.sixSelect.emit(this.value);
|
|
193
|
+
}
|
|
194
|
+
this.selectedDate = this.value;
|
|
195
|
+
this.updatePointerDates();
|
|
220
196
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
firstDateOfBox: this.firstDateOfBox,
|
|
226
|
-
allowedDates: this.allowedDates,
|
|
227
|
-
dateFormat: this.dateFormat,
|
|
228
|
-
locale: this.locale,
|
|
229
|
-
selectedDate: this.selectedDate,
|
|
230
|
-
minDate: this.min,
|
|
231
|
-
maxDate: this.max,
|
|
232
|
-
pointerDate: this.pointerDate,
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
calcIsDropDownContentUp() {
|
|
236
|
-
if (!this.inputElement || !this.wrapper) {
|
|
237
|
-
return;
|
|
197
|
+
async resizeHandler() {
|
|
198
|
+
this.updateDropdownDirection();
|
|
199
|
+
this.moveOpenHoistedPopup();
|
|
200
|
+
this.adjustPopupPosition();
|
|
238
201
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
const moreSpaceInTop = inputBoundingRect.y > window.innerHeight / 2;
|
|
243
|
-
this.isDropDownContentUp = moreSpaceInTop && window.innerHeight < inputBoundingRect.bottom + minPopupHeight;
|
|
244
|
-
}
|
|
245
|
-
getMonthStringForIndex(index) {
|
|
246
|
-
return i18nDate[this.locale].months[index];
|
|
247
|
-
}
|
|
248
|
-
previousUnit() {
|
|
249
|
-
if (this.selectionMode === SelectionMode.DAY) {
|
|
250
|
-
this.previousMonth();
|
|
202
|
+
async scrollHandler() {
|
|
203
|
+
this.updateDropdownDirection();
|
|
204
|
+
this.moveOpenHoistedPopup();
|
|
251
205
|
}
|
|
252
|
-
|
|
253
|
-
|
|
206
|
+
moveOpenHoistedPopup() {
|
|
207
|
+
movePopup(this.hoist, this.open, this.popup, this.inputElement, this.wrapper, MIN_POPUP_HEIGHT);
|
|
254
208
|
}
|
|
255
|
-
|
|
256
|
-
|
|
209
|
+
get container() {
|
|
210
|
+
return this.containingElement || this.host;
|
|
257
211
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}
|
|
262
|
-
previousYearGroup() {
|
|
263
|
-
this.pointerDate = Object.assign(Object.assign({}, this.pointerDate), { year: this.pointerDate.year - NUMBER_OF_YEARS_SHOWN });
|
|
264
|
-
}
|
|
265
|
-
previousMonth() {
|
|
266
|
-
if (this.pointerDate.month === 0) {
|
|
267
|
-
this.pointerDate = { year: this.pointerDate.year - 1, month: 11, day: 1, hours: 0, minutes: 0, seconds: 0 };
|
|
212
|
+
get firstDateOfBox() {
|
|
213
|
+
const date = new Date(this.pointerDate.year, this.pointerDate.month, 1);
|
|
214
|
+
return getFirstDayOfTheWeek(date);
|
|
268
215
|
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
day: 1,
|
|
274
|
-
hours: 0,
|
|
275
|
-
minutes: 0,
|
|
276
|
-
seconds: 0,
|
|
277
|
-
};
|
|
216
|
+
/** Sets focus on the datepickers input. */
|
|
217
|
+
async setFocus(options) {
|
|
218
|
+
var _a;
|
|
219
|
+
(_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.setFocus(options);
|
|
278
220
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
221
|
+
get calendarGrid() {
|
|
222
|
+
return createCalendarGrid({
|
|
223
|
+
firstDateOfBox: this.firstDateOfBox,
|
|
224
|
+
allowedDates: this.allowedDates,
|
|
225
|
+
dateFormat: this.dateFormat,
|
|
226
|
+
locale: this.locale,
|
|
227
|
+
selectedDate: this.selectedDate,
|
|
228
|
+
minDate: this.min,
|
|
229
|
+
maxDate: this.max,
|
|
230
|
+
pointerDate: this.pointerDate,
|
|
231
|
+
});
|
|
283
232
|
}
|
|
284
|
-
|
|
285
|
-
|
|
233
|
+
updateDropdownDirection() {
|
|
234
|
+
if (this.inputElement == null || this.wrapper == null) {
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
this.isDropDownContentUp = calcIsDropDownContentUp(this.inputElement, this.wrapper, MIN_POPUP_HEIGHT);
|
|
286
238
|
}
|
|
287
|
-
|
|
288
|
-
|
|
239
|
+
getMonthStringForIndex(index) {
|
|
240
|
+
return i18nDate[this.locale].months[index];
|
|
289
241
|
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
if (this.pointerDate.month === 11) {
|
|
293
|
-
this.pointerDate = { year: this.pointerDate.year + 1, month: 0, day: 1, hours: 0, minutes: 0, seconds: 0 };
|
|
242
|
+
previousYear() {
|
|
243
|
+
this.pointerDate = Object.assign(Object.assign({}, this.pointerDate), { year: this.pointerDate.year - 1 });
|
|
294
244
|
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
year: this.pointerDate.year,
|
|
298
|
-
month: this.pointerDate.month + 1,
|
|
299
|
-
day: 1,
|
|
300
|
-
hours: 0,
|
|
301
|
-
minutes: 0,
|
|
302
|
-
seconds: 0,
|
|
303
|
-
};
|
|
245
|
+
previousYearGroup() {
|
|
246
|
+
this.pointerDate = Object.assign(Object.assign({}, this.pointerDate), { year: this.pointerDate.year - NUMBER_OF_YEARS_SHOWN });
|
|
304
247
|
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
248
|
+
previousMonth() {
|
|
249
|
+
if (this.pointerDate.month === 0) {
|
|
250
|
+
this.pointerDate = { year: this.pointerDate.year - 1, month: 11, day: 1, hours: 0, minutes: 0, seconds: 0 };
|
|
251
|
+
}
|
|
252
|
+
else {
|
|
253
|
+
this.pointerDate = {
|
|
254
|
+
year: this.pointerDate.year,
|
|
255
|
+
month: this.pointerDate.month - 1,
|
|
256
|
+
day: 1,
|
|
257
|
+
hours: 0,
|
|
258
|
+
minutes: 0,
|
|
259
|
+
seconds: 0,
|
|
260
|
+
};
|
|
261
|
+
}
|
|
316
262
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
263
|
+
nextMonth() {
|
|
264
|
+
if (this.pointerDate.month === 11) {
|
|
265
|
+
this.pointerDate = { year: this.pointerDate.year + 1, month: 0, day: 1, hours: 0, minutes: 0, seconds: 0 };
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
this.pointerDate = {
|
|
269
|
+
year: this.pointerDate.year,
|
|
270
|
+
month: this.pointerDate.month + 1,
|
|
271
|
+
day: 1,
|
|
272
|
+
hours: 0,
|
|
273
|
+
minutes: 0,
|
|
274
|
+
seconds: 0,
|
|
275
|
+
};
|
|
276
|
+
}
|
|
330
277
|
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
this.eventListeners.remove(document, 'mousedown', this.handleDocumentMouseDown);
|
|
334
|
-
this.selectionMode = SelectionMode.DAY;
|
|
335
|
-
}
|
|
336
|
-
updatePointerDates() {
|
|
337
|
-
const date = this.getPointerDate();
|
|
338
|
-
if (this.differsFromPointerDate(date)) {
|
|
339
|
-
this.pointerDate = {
|
|
340
|
-
year: year(date),
|
|
341
|
-
month: month(date),
|
|
342
|
-
day: day(date),
|
|
343
|
-
hours: hours(date),
|
|
344
|
-
minutes: minutes(date),
|
|
345
|
-
seconds: seconds(date),
|
|
346
|
-
};
|
|
278
|
+
nextYear() {
|
|
279
|
+
this.pointerDate = Object.assign(Object.assign({}, this.pointerDate), { year: this.pointerDate.year + 1 });
|
|
347
280
|
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
return (this.pointerDate.day !== day(date) ||
|
|
351
|
-
this.pointerDate.month !== month(date) ||
|
|
352
|
-
this.pointerDate.year !== year(date) ||
|
|
353
|
-
this.pointerDate.hours !== hours(date) ||
|
|
354
|
-
this.pointerDate.minutes !== minutes(date) ||
|
|
355
|
-
this.pointerDate.seconds !== seconds(date));
|
|
356
|
-
}
|
|
357
|
-
getPointerDate() {
|
|
358
|
-
if (this.selectedDate !== undefined && this.selectedDate !== null) {
|
|
359
|
-
return this.selectedDate;
|
|
281
|
+
nextYearGroup() {
|
|
282
|
+
this.pointerDate = Object.assign(Object.assign({}, this.pointerDate), { year: this.pointerDate.year + NUMBER_OF_YEARS_SHOWN });
|
|
360
283
|
}
|
|
361
|
-
|
|
362
|
-
|
|
284
|
+
openCalendar() {
|
|
285
|
+
if (!this.open && !this.disabled) {
|
|
286
|
+
this.open = true;
|
|
287
|
+
this.setupEventListenersForOpenPopup();
|
|
288
|
+
}
|
|
363
289
|
}
|
|
364
|
-
|
|
365
|
-
|
|
290
|
+
setupEventListenersForOpenPopup() {
|
|
291
|
+
this.eventListeners.add(document, 'keydown', this.handleDocumentKeyDown);
|
|
292
|
+
this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);
|
|
366
293
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
return;
|
|
294
|
+
closePopup() {
|
|
295
|
+
if (this.inline) {
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
this.open = false;
|
|
299
|
+
this.eventListeners.remove(document, 'keydown', this.handleDocumentKeyDown);
|
|
300
|
+
this.eventListeners.remove(document, 'mousedown', this.handleDocumentMouseDown);
|
|
301
|
+
this.selectionMode = SelectionMode.DAY;
|
|
376
302
|
}
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
303
|
+
updatePointerDates() {
|
|
304
|
+
const date = this.getPointerDate();
|
|
305
|
+
if (this.differsFromPointerDate(date)) {
|
|
306
|
+
this.pointerDate = {
|
|
307
|
+
year: year(date),
|
|
308
|
+
month: month(date),
|
|
309
|
+
day: day(date),
|
|
310
|
+
hours: hours(date),
|
|
311
|
+
minutes: minutes(date),
|
|
312
|
+
seconds: seconds(date),
|
|
313
|
+
};
|
|
314
|
+
}
|
|
385
315
|
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
316
|
+
differsFromPointerDate(date) {
|
|
317
|
+
return (this.pointerDate.day !== day(date) ||
|
|
318
|
+
this.pointerDate.month !== month(date) ||
|
|
319
|
+
this.pointerDate.year !== year(date) ||
|
|
320
|
+
this.pointerDate.hours !== hours(date) ||
|
|
321
|
+
this.pointerDate.minutes !== minutes(date) ||
|
|
322
|
+
this.pointerDate.seconds !== seconds(date));
|
|
390
323
|
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
324
|
+
getPointerDate() {
|
|
325
|
+
if (this.selectedDate !== undefined && this.selectedDate !== null) {
|
|
326
|
+
return this.selectedDate;
|
|
327
|
+
}
|
|
328
|
+
if (this.defaultDate == null) {
|
|
329
|
+
return this.type === 'date' ? removeTime(now()) : now();
|
|
330
|
+
}
|
|
331
|
+
else {
|
|
332
|
+
return toDate(this.defaultDate, this.dateFormat);
|
|
333
|
+
}
|
|
394
334
|
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
this.validateProps();
|
|
398
|
-
this.defaultValue = this.value;
|
|
399
|
-
this.selectedDate = this.value;
|
|
400
|
-
this.updatePointerDates();
|
|
401
|
-
this.updateValue(this.value);
|
|
402
|
-
if (this.inline) {
|
|
403
|
-
this.open = true;
|
|
335
|
+
updateValue(newDate) {
|
|
336
|
+
this.updateIfChanged(newDate);
|
|
404
337
|
}
|
|
405
|
-
|
|
406
|
-
|
|
338
|
+
updateIfChanged(newDate) {
|
|
339
|
+
var _a;
|
|
340
|
+
if (((_a = this.value) === null || _a === void 0 ? void 0 : _a.getTime()) === (newDate === null || newDate === void 0 ? void 0 : newDate.getTime())) {
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
this.value = newDate;
|
|
344
|
+
this.sixSelect.emit(this.value);
|
|
407
345
|
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
346
|
+
/**
|
|
347
|
+
* Selects an option
|
|
348
|
+
*/
|
|
349
|
+
async select(datestring) {
|
|
350
|
+
if (datestring == null) {
|
|
351
|
+
this.updateValue(undefined);
|
|
352
|
+
}
|
|
353
|
+
else {
|
|
354
|
+
const newDate = toDate(datestring, this.dateFormat);
|
|
355
|
+
newDate === null || newDate === void 0 ? void 0 : newDate.setHours(this.pointerDate.hours, this.pointerDate.minutes, this.pointerDate.seconds);
|
|
356
|
+
this.updateValue(newDate);
|
|
357
|
+
}
|
|
358
|
+
this.updatePointerDates();
|
|
359
|
+
if (this.closeOnSelect) {
|
|
360
|
+
this.closePopup();
|
|
361
|
+
}
|
|
412
362
|
}
|
|
413
|
-
|
|
414
|
-
|
|
363
|
+
componentWillLoad() {
|
|
364
|
+
this.selectedDate = this.value;
|
|
365
|
+
this.updatePointerDates();
|
|
366
|
+
this.updateValue(this.value);
|
|
367
|
+
if (this.inline) {
|
|
368
|
+
this.open = true;
|
|
369
|
+
}
|
|
370
|
+
if (this.open) {
|
|
371
|
+
this.setupEventListenersForOpenPopup();
|
|
372
|
+
}
|
|
415
373
|
}
|
|
416
|
-
|
|
417
|
-
|
|
374
|
+
componentDidLoad() {
|
|
375
|
+
if (this.inputElement != null) {
|
|
376
|
+
this.eventListeners.add(this.inputElement, 'six-input-input', debounce(this.handleInputChange, this.debounce));
|
|
377
|
+
this.eventListeners.add(this.inputElement, 'six-input-blur', this.handleOnBlur);
|
|
378
|
+
}
|
|
418
379
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
this.eventListeners.add(this.inputElement, 'six-input-input', debounce(this.handleInputChange, this.debounce));
|
|
422
|
-
this.eventListeners.add(this.inputElement, 'six-input-blur', this.handleOnBlur);
|
|
423
|
-
}
|
|
424
|
-
renderHeader() {
|
|
425
|
-
return (h("header", { class: "datepicker-header", part: "header" }, h("div", { class: "datepicker-header__btn prev", onClick: () => this.previousUnit() }, h("svg", { viewBox: "0 5 13 13", width: "14", height: "23" }, h("path", { d: "M11.67 3.87L9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z" }))), h("div", { class: "datepicker-header__label" }, this.selectionMode === SelectionMode.DAY && (h("div", { onClick: () => (this.selectionMode = SelectionMode.MONTH) }, h("span", { class: "datepicker-header__label-month" }, this.getMonthStringForIndex(this.pointerDate.month)), h("span", null, h("svg", { viewBox: "-3 -4 24 24", width: "20", height: "20" }, h("polyline", { points: "6 9 12 15 18 9" }))))), this.selectionMode !== SelectionMode.YEAR && (h("div", { onClick: () => (this.selectionMode = SelectionMode.YEAR) }, h("span", { class: "datepicker-header__label-year" }, this.pointerDate.year), h("span", null, h("svg", { viewBox: "-3 -4 24 24", width: "20", height: "20" }, h("polyline", { points: "6 9 12 15 18 9" }))))), this.selectionMode === SelectionMode.YEAR && (h("div", null, this.pointerDate.year - Math.floor(NUMBER_OF_YEARS_SHOWN / 2), " \u2013", ' ', this.pointerDate.year + Math.floor(NUMBER_OF_YEARS_SHOWN / 2)))), h("div", { class: "datepicker-header__btn next", onClick: () => this.nextUnit() }, h("svg", { viewBox: "5 5 13 13", width: "14", height: "23" }, h("path", { d: "M5.88 4.12L13.76 12l-7.88 7.88L8 22l10-10L8 2z" })))));
|
|
426
|
-
}
|
|
427
|
-
renderBody() {
|
|
428
|
-
switch (this.selectionMode) {
|
|
429
|
-
case SelectionMode.DAY:
|
|
430
|
-
return (h(DaySelection, { locale: i18nDate[this.locale], calendarGrid: this.calendarGrid, onClickDateCell: this.onClickDateCell }));
|
|
431
|
-
case SelectionMode.MONTH:
|
|
432
|
-
return (h(MonthSelection, { locale: i18nDate[this.locale], selectedDate: this.selectedDate, onClickMonthCell: this.onClickMonthCell }));
|
|
433
|
-
case SelectionMode.YEAR:
|
|
434
|
-
return (h(YearSelection, { selectedDate: this.selectedDate, yearSelection: getYearSelectionAroundYear(this.pointerDate.year), onClickYearCell: this.onClickYearCell }));
|
|
380
|
+
componentDidRender() {
|
|
381
|
+
this.adjustPopupPosition();
|
|
435
382
|
}
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
const icon = hasSlot(this.host, 'custom-icon') ? (h("slot", { name: "custom-icon" })) : (h("six-icon", { size: this.size === 'large' ? 'medium' : this.size }, "today"));
|
|
439
|
-
return (h("span", { slot: "prefix", part: "icon", class: {
|
|
440
|
-
prefix: true,
|
|
441
|
-
'prefix--right': this.iconPosition === 'right',
|
|
442
|
-
} }, icon));
|
|
443
|
-
}
|
|
444
|
-
renderClearable() {
|
|
445
|
-
return (this.clearable && (h("button", { slot: "suffix", class: {
|
|
446
|
-
'datepicker-clear': true,
|
|
447
|
-
'datepicker-clear--right': this.iconPosition === 'left',
|
|
448
|
-
'datepicker-clear--left': this.iconPosition === 'right',
|
|
449
|
-
}, type: "button", onClick: this.handleClearClick, tabindex: "-1" }, h("six-icon", { size: "small" }, "clear"))));
|
|
450
|
-
}
|
|
451
|
-
render() {
|
|
452
|
-
var _a, _b, _c;
|
|
453
|
-
this.adjustPopupPosition();
|
|
454
|
-
return (h("div", { ref: (el) => (this.wrapper = el), class: "datepicker__container" }, h("six-input", { part: "base", value: formatDate(this.value, this.dateFormat), ref: (el) => (this.inputElement = el), placeholder: this.placeholder, readonly: this.readonly, disabled: this.disabled, name: this.name, label: this.label, required: this.required, "error-text": this.errorText, "error-on-blur": this.errorOnBlur, onClick: () => this.openCalendar(), size: this.size, class: { 'input--empty': !this.value } }, this.renderCustomIcon(), this.renderClearable(), hasSlot(this.host, 'error-text') ? (h("span", { slot: "error-text" }, h("slot", { name: "error-text" }))) : null, hasSlot(this.host, 'label') ? (h("span", { slot: "label" }, h("slot", { name: "label" }))) : null), this.open && (h("div", { part: "popup", ref: (el) => (this.popup = el), class: {
|
|
455
|
-
datepicker__popup: true,
|
|
456
|
-
'datepicker__popup--is-up': this.placement ? this.placement === 'top' : this.isDropDownContentUp,
|
|
457
|
-
'datepicker__popup--is-inline': this.inline,
|
|
458
|
-
} }, this.renderHeader(), this.renderBody(), this.type === 'date-time' && (h("six-timepicker", { inline: true, "onSix-timepicker-change-debounced": (event) => this.onTimepickerChange(event), value: ((_a = this.selectedDate) === null || _a === void 0 ? void 0 : _a.getHours()) +
|
|
459
|
-
':' +
|
|
460
|
-
((_b = this.selectedDate) === null || _b === void 0 ? void 0 : _b.getMinutes()) +
|
|
461
|
-
':' +
|
|
462
|
-
((_c = this.selectedDate) === null || _c === void 0 ? void 0 : _c.getSeconds()) })), h("div", { class: "datepicker__footer" }, h("slot", null))))));
|
|
463
|
-
}
|
|
464
|
-
adjustPopupPosition() {
|
|
465
|
-
this.adjustPopupForHoisting();
|
|
466
|
-
this.adjustPopupForSmallScreens();
|
|
467
|
-
}
|
|
468
|
-
/*
|
|
469
|
-
* The position of the hoisted datepicker needs to be correctly calculated since the position changes to fixed.
|
|
470
|
-
* Thus if the user scrolls or adjusts the screen size we need to recalculate the datepicker position.
|
|
471
|
-
*/
|
|
472
|
-
moveOpenHoistedPopup() {
|
|
473
|
-
if (!this.hoist || !this.open) {
|
|
474
|
-
return;
|
|
383
|
+
renderHeader() {
|
|
384
|
+
return (h("header", { class: "datepicker-header", part: "header" }, h("div", { class: "datepicker-header__btn prev", onClick: this.previousUnit }, h("svg", { viewBox: "0 5 13 13", width: "14", height: "23" }, h("path", { d: "M11.67 3.87L9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z" }))), h("div", { class: "datepicker-header__label" }, this.selectionMode === SelectionMode.DAY && (h("div", { onClick: () => (this.selectionMode = SelectionMode.MONTH) }, h("span", { class: "datepicker-header__label-month" }, this.getMonthStringForIndex(this.pointerDate.month)), h("span", null, h("svg", { viewBox: "-3 -4 24 24", width: "20", height: "20" }, h("polyline", { points: "6 9 12 15 18 9" }))))), this.selectionMode !== SelectionMode.YEAR && (h("div", { onClick: () => (this.selectionMode = SelectionMode.YEAR) }, h("span", { class: "datepicker-header__label-year" }, this.pointerDate.year), h("span", null, h("svg", { viewBox: "-3 -4 24 24", width: "20", height: "20" }, h("polyline", { points: "6 9 12 15 18 9" }))))), this.selectionMode === SelectionMode.YEAR && (h("div", null, this.pointerDate.year - Math.floor(NUMBER_OF_YEARS_SHOWN / 2), " \u2013", ' ', this.pointerDate.year + Math.floor(NUMBER_OF_YEARS_SHOWN / 2)))), h("div", { class: "datepicker-header__btn next", onClick: this.nextUnit }, h("svg", { viewBox: "5 5 13 13", width: "14", height: "23" }, h("path", { d: "M5.88 4.12L13.76 12l-7.88 7.88L8 22l10-10L8 2z" })))));
|
|
475
385
|
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
386
|
+
renderBody() {
|
|
387
|
+
switch (this.selectionMode) {
|
|
388
|
+
case SelectionMode.DAY:
|
|
389
|
+
return (h(DaySelection, { locale: i18nDate[this.locale], calendarGrid: this.calendarGrid, onClickDateCell: this.onClickDateCell }));
|
|
390
|
+
case SelectionMode.MONTH:
|
|
391
|
+
return (h(MonthSelection, { locale: i18nDate[this.locale], selectedDate: this.selectedDate, onClickMonthCell: this.onClickMonthCell }));
|
|
392
|
+
case SelectionMode.YEAR:
|
|
393
|
+
return (h(YearSelection, { selectedDate: this.selectedDate, yearSelection: rangeAround(this.pointerDate.year, NUMBER_OF_YEARS_SHOWN), onClickYearCell: this.onClickYearCell }));
|
|
394
|
+
}
|
|
484
395
|
}
|
|
485
|
-
|
|
486
|
-
|
|
396
|
+
renderCustomIcon() {
|
|
397
|
+
const icon = hasSlot(this.host, 'custom-icon') ? (h("slot", { name: "custom-icon" })) : (h("six-icon", { size: this.size === 'large' ? 'medium' : this.size }, "today"));
|
|
398
|
+
return (h("span", { slot: "prefix", part: "icon", class: {
|
|
399
|
+
prefix: true,
|
|
400
|
+
'prefix--right': this.iconPosition === 'right',
|
|
401
|
+
} }, icon));
|
|
487
402
|
}
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
adjustPopupForSmallScreens() {
|
|
495
|
-
// execute after dropdown has been rendered to make sure the popup reference is correctly set
|
|
496
|
-
setTimeout(() => {
|
|
497
|
-
if (!this.popup) {
|
|
498
|
-
return;
|
|
499
|
-
}
|
|
500
|
-
const popupBoundingClientRect = this.popup.getBoundingClientRect();
|
|
501
|
-
const setPopupAsFixPosition = () => {
|
|
502
|
-
// apply screen position to fixed popup
|
|
503
|
-
this.popup.style.position = 'fixed';
|
|
504
|
-
['top', 'left', 'width', 'height'].forEach((property) => {
|
|
505
|
-
this.popup.style[property] = `${popupBoundingClientRect[property]}px`;
|
|
506
|
-
});
|
|
507
|
-
};
|
|
508
|
-
if (popupBoundingClientRect.y < 0 &&
|
|
509
|
-
window.innerHeight - popupBoundingClientRect.height > 0 &&
|
|
510
|
-
Math.abs(popupBoundingClientRect.y) <= popupBoundingClientRect.height) {
|
|
511
|
-
// handle case where popup is cut-off on top but there is still space available
|
|
512
|
-
setPopupAsFixPosition();
|
|
513
|
-
this.popup.style.top = '0px';
|
|
514
|
-
}
|
|
515
|
-
else if (window.innerHeight < popupBoundingClientRect.y + popupBoundingClientRect.height &&
|
|
516
|
-
window.innerHeight > popupBoundingClientRect.height &&
|
|
517
|
-
Math.abs(popupBoundingClientRect.y - window.innerHeight) <= popupBoundingClientRect.height) {
|
|
518
|
-
// handle case where popup is cut-off at the bottom but there is still space available above
|
|
519
|
-
// apply screen position to fixed popup
|
|
520
|
-
setPopupAsFixPosition();
|
|
521
|
-
this.popup.style.top = `${window.innerHeight - popupBoundingClientRect.height}px`;
|
|
522
|
-
}
|
|
523
|
-
if (window.innerWidth < popupBoundingClientRect.x + popupBoundingClientRect.width &&
|
|
524
|
-
window.innerWidth > popupBoundingClientRect.width &&
|
|
525
|
-
Math.abs(popupBoundingClientRect.x - window.innerWidth) <= popupBoundingClientRect.width) {
|
|
526
|
-
// handle case where popup is cut-off to the right
|
|
527
|
-
setPopupAsFixPosition();
|
|
528
|
-
this.popup.style.left = `${window.innerWidth - popupBoundingClientRect.width}px`;
|
|
529
|
-
}
|
|
530
|
-
}, 0);
|
|
531
|
-
}
|
|
532
|
-
/*
|
|
533
|
-
* If the popup is hoisted we popup is hoisted its position will change to fix to not be clipped of by a containing container.
|
|
534
|
-
* To render the popup correctly we render it normally, and then assign this screenposition to the fixed popup
|
|
535
|
-
*/
|
|
536
|
-
adjustPopupForHoisting() {
|
|
537
|
-
if (!this.hoist) {
|
|
538
|
-
return;
|
|
403
|
+
renderClearable() {
|
|
404
|
+
return (this.clearable && (h("button", { slot: "suffix", class: {
|
|
405
|
+
'datepicker-clear': true,
|
|
406
|
+
'datepicker-clear--right': this.iconPosition === 'left',
|
|
407
|
+
'datepicker-clear--left': this.iconPosition === 'right',
|
|
408
|
+
}, type: "button", onClick: this.handleClearClick, tabindex: "-1" }, h("six-icon", { size: "small" }, "clear"))));
|
|
539
409
|
}
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
return
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
const inputBoundingClientRect = this.inputElement.getBoundingClientRect();
|
|
553
|
-
const inputTop = inputBoundingClientRect.top;
|
|
554
|
-
const popupTop = popupBoundingClientRect.top;
|
|
555
|
-
this.calcIsDropDownContentUp();
|
|
556
|
-
// check screen position to check whether the popup should be moved above or below the trigger element
|
|
557
|
-
if (this.isDropDownContentUp && inputTop < popupTop) {
|
|
558
|
-
// move popup above input field if datepicker is at bottom of screen
|
|
559
|
-
this.popup.style.top = `${popupTop - popupBoundingClientRect.height - inputBoundingClientRect.height}px`;
|
|
560
|
-
}
|
|
561
|
-
}, 0);
|
|
562
|
-
}
|
|
563
|
-
connectedCallback() {
|
|
564
|
-
this.handleClearClick = this.handleClearClick.bind(this);
|
|
565
|
-
}
|
|
566
|
-
disconnectedCallback() {
|
|
567
|
-
this.eventListeners.removeAll();
|
|
568
|
-
}
|
|
569
|
-
displayCustomMessage(valid) {
|
|
570
|
-
if (!this.inputElement) {
|
|
571
|
-
return;
|
|
410
|
+
render() {
|
|
411
|
+
var _a, _b, _c;
|
|
412
|
+
this.adjustPopupPosition();
|
|
413
|
+
return (h("div", { ref: (el) => (this.wrapper = el), class: "datepicker__container" }, h("six-input", { part: "base", value: formatDate(this.value, this.dateFormat), ref: (el) => (this.inputElement = el), placeholder: this.placeholder, readonly: this.readonly, disabled: this.disabled, name: this.name, label: this.label, required: this.required, errorText: this.errorText, errorTextCount: this.errorTextCount, invalid: this.invalid, onClick: () => this.openCalendar(), size: this.size, class: { 'input--empty': this.value == null } }, this.renderCustomIcon(), this.renderClearable(), hasSlot(this.host, 'label') ? (h("span", { slot: "label" }, h("slot", { name: "label" }))) : null, hasSlot(this.host, 'error-text') ? (h("span", { slot: "error-text" }, h("slot", { name: "error-text" }))) : null), this.open && (h("div", { part: "popup", ref: (el) => (this.popup = el), class: {
|
|
414
|
+
datepicker__popup: true,
|
|
415
|
+
'datepicker__popup--is-up': this.placement != null ? this.placement === 'top' : this.isDropDownContentUp,
|
|
416
|
+
'datepicker__popup--is-inline': this.inline,
|
|
417
|
+
} }, this.renderHeader(), this.renderBody(), this.type === 'date-time' && (h("six-timepicker", { inline: true, "onSix-timepicker-change-debounced": (event) => this.onTimepickerChange(event), value: ((_a = this.selectedDate) === null || _a === void 0 ? void 0 : _a.getHours()) +
|
|
418
|
+
':' +
|
|
419
|
+
((_b = this.selectedDate) === null || _b === void 0 ? void 0 : _b.getMinutes()) +
|
|
420
|
+
':' +
|
|
421
|
+
((_c = this.selectedDate) === null || _c === void 0 ? void 0 : _c.getSeconds()) })), h("div", { class: "datepicker__footer" }, h("slot", null))))));
|
|
572
422
|
}
|
|
573
|
-
|
|
574
|
-
|
|
423
|
+
adjustPopupPosition() {
|
|
424
|
+
adjustPopupForHoisting(this.hoist, this.popup, this.inputElement, this.wrapper, MIN_POPUP_HEIGHT, (isUp) => (this.isDropDownContentUp = isUp));
|
|
425
|
+
adjustPopupForSmallScreens(this.popup);
|
|
575
426
|
}
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
427
|
+
connectedCallback() {
|
|
428
|
+
this.eventListeners.forward('six-datepicker-select', 'change', this.host);
|
|
429
|
+
this.eventListeners.forward('six-datepicker-blur', 'blur', this.host);
|
|
579
430
|
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
return
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
"resolved": "Date",
|
|
1106
|
-
"references": {
|
|
1107
|
-
"SixDatepickerSelectPayload": {
|
|
1108
|
-
"location": "local",
|
|
1109
|
-
"path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-datepicker/six-datepicker.tsx"
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
}, {
|
|
1114
|
-
"method": "sixClear",
|
|
1115
|
-
"name": "six-datepicker-clear",
|
|
1116
|
-
"bubbles": true,
|
|
1117
|
-
"cancelable": true,
|
|
1118
|
-
"composed": true,
|
|
1119
|
-
"docs": {
|
|
1120
|
-
"tags": [],
|
|
1121
|
-
"text": "Emitted when the clear button is activated."
|
|
1122
|
-
},
|
|
1123
|
-
"complexType": {
|
|
1124
|
-
"original": "EmptyPayload",
|
|
1125
|
-
"resolved": "undefined",
|
|
1126
|
-
"references": {
|
|
1127
|
-
"EmptyPayload": {
|
|
1128
|
-
"location": "import",
|
|
1129
|
-
"path": "../../utils/types"
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
}, {
|
|
1134
|
-
"method": "sixBlur",
|
|
1135
|
-
"name": "six-datepicker-blur",
|
|
1136
|
-
"bubbles": true,
|
|
1137
|
-
"cancelable": true,
|
|
1138
|
-
"composed": true,
|
|
1139
|
-
"docs": {
|
|
1140
|
-
"tags": [],
|
|
1141
|
-
"text": "Emitted when a option got selected."
|
|
1142
|
-
},
|
|
1143
|
-
"complexType": {
|
|
1144
|
-
"original": "SixDatepickerSelectPayload",
|
|
1145
|
-
"resolved": "Date",
|
|
1146
|
-
"references": {
|
|
1147
|
-
"SixDatepickerSelectPayload": {
|
|
1148
|
-
"location": "local",
|
|
1149
|
-
"path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-datepicker/six-datepicker.tsx"
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
}
|
|
1153
|
-
}];
|
|
1154
|
-
}
|
|
1155
|
-
static get methods() {
|
|
1156
|
-
return {
|
|
1157
|
-
"reportValidity": {
|
|
1158
|
-
"complexType": {
|
|
1159
|
-
"signature": "() => Promise<boolean>",
|
|
1160
|
-
"parameters": [],
|
|
1161
|
-
"references": {
|
|
1162
|
-
"Promise": {
|
|
1163
|
-
"location": "global"
|
|
1164
|
-
}
|
|
1165
|
-
},
|
|
1166
|
-
"return": "Promise<boolean>"
|
|
1167
|
-
},
|
|
1168
|
-
"docs": {
|
|
1169
|
-
"text": "Checks for validity and shows the browser's validation message if the control is invalid.",
|
|
1170
|
-
"tags": []
|
|
1171
|
-
}
|
|
1172
|
-
},
|
|
1173
|
-
"checkValidity": {
|
|
1174
|
-
"complexType": {
|
|
1175
|
-
"signature": "() => Promise<boolean>",
|
|
1176
|
-
"parameters": [],
|
|
1177
|
-
"references": {
|
|
1178
|
-
"Promise": {
|
|
1179
|
-
"location": "global"
|
|
1180
|
-
}
|
|
1181
|
-
},
|
|
1182
|
-
"return": "Promise<boolean>"
|
|
1183
|
-
},
|
|
1184
|
-
"docs": {
|
|
1185
|
-
"text": "Checks for validity.",
|
|
1186
|
-
"tags": []
|
|
1187
|
-
}
|
|
1188
|
-
},
|
|
1189
|
-
"setCustomValidity": {
|
|
1190
|
-
"complexType": {
|
|
1191
|
-
"signature": "(message: string) => Promise<void>",
|
|
1192
|
-
"parameters": [{
|
|
1193
|
-
"tags": [],
|
|
1194
|
-
"text": ""
|
|
1195
|
-
}],
|
|
1196
|
-
"references": {
|
|
1197
|
-
"Promise": {
|
|
1198
|
-
"location": "global"
|
|
1199
|
-
}
|
|
1200
|
-
},
|
|
1201
|
-
"return": "Promise<void>"
|
|
1202
|
-
},
|
|
1203
|
-
"docs": {
|
|
1204
|
-
"text": "Sets a custom validation message. If `message` is not empty, the field will be considered invalid.",
|
|
1205
|
-
"tags": []
|
|
1206
|
-
}
|
|
1207
|
-
},
|
|
1208
|
-
"reset": {
|
|
1209
|
-
"complexType": {
|
|
1210
|
-
"signature": "() => Promise<void>",
|
|
1211
|
-
"parameters": [],
|
|
1212
|
-
"references": {
|
|
1213
|
-
"Promise": {
|
|
1214
|
-
"location": "global"
|
|
431
|
+
disconnectedCallback() {
|
|
432
|
+
this.eventListeners.removeAll();
|
|
433
|
+
}
|
|
434
|
+
static getCurrentDateAsPointer() {
|
|
435
|
+
return {
|
|
436
|
+
year: year(now()),
|
|
437
|
+
month: month(now()),
|
|
438
|
+
day: day(now()),
|
|
439
|
+
hours: hours(now()),
|
|
440
|
+
minutes: minutes(now()),
|
|
441
|
+
seconds: seconds(now()),
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
static get is() { return "six-datepicker"; }
|
|
445
|
+
static get encapsulation() { return "shadow"; }
|
|
446
|
+
static get originalStyleUrls() {
|
|
447
|
+
return {
|
|
448
|
+
"$": ["six-datepicker.scss"]
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
static get styleUrls() {
|
|
452
|
+
return {
|
|
453
|
+
"$": ["six-datepicker.css"]
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
static get properties() {
|
|
457
|
+
return {
|
|
458
|
+
"type": {
|
|
459
|
+
"type": "string",
|
|
460
|
+
"mutable": false,
|
|
461
|
+
"complexType": {
|
|
462
|
+
"original": "'date' | 'date-time'",
|
|
463
|
+
"resolved": "\"date\" | \"date-time\"",
|
|
464
|
+
"references": {}
|
|
465
|
+
},
|
|
466
|
+
"required": false,
|
|
467
|
+
"optional": false,
|
|
468
|
+
"docs": {
|
|
469
|
+
"tags": [],
|
|
470
|
+
"text": "Set the type."
|
|
471
|
+
},
|
|
472
|
+
"attribute": "type",
|
|
473
|
+
"reflect": false,
|
|
474
|
+
"defaultValue": "'date'"
|
|
475
|
+
},
|
|
476
|
+
"locale": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"mutable": false,
|
|
479
|
+
"complexType": {
|
|
480
|
+
"original": "'en' | 'de' | 'fr' | 'it' | 'es'",
|
|
481
|
+
"resolved": "\"de\" | \"en\" | \"es\" | \"fr\" | \"it\"",
|
|
482
|
+
"references": {}
|
|
483
|
+
},
|
|
484
|
+
"required": false,
|
|
485
|
+
"optional": false,
|
|
486
|
+
"docs": {
|
|
487
|
+
"tags": [],
|
|
488
|
+
"text": "The language used to render the weekdays and months."
|
|
489
|
+
},
|
|
490
|
+
"attribute": "locale",
|
|
491
|
+
"reflect": false,
|
|
492
|
+
"defaultValue": "'en'"
|
|
493
|
+
},
|
|
494
|
+
"open": {
|
|
495
|
+
"type": "boolean",
|
|
496
|
+
"mutable": true,
|
|
497
|
+
"complexType": {
|
|
498
|
+
"original": "boolean",
|
|
499
|
+
"resolved": "boolean",
|
|
500
|
+
"references": {}
|
|
501
|
+
},
|
|
502
|
+
"required": false,
|
|
503
|
+
"optional": false,
|
|
504
|
+
"docs": {
|
|
505
|
+
"tags": [],
|
|
506
|
+
"text": "Indicates whether or not the calendar dropdown is open on startup. You can use this in lieu of the show/hide methods."
|
|
507
|
+
},
|
|
508
|
+
"attribute": "open",
|
|
509
|
+
"reflect": true,
|
|
510
|
+
"defaultValue": "false"
|
|
511
|
+
},
|
|
512
|
+
"inline": {
|
|
513
|
+
"type": "boolean",
|
|
514
|
+
"mutable": false,
|
|
515
|
+
"complexType": {
|
|
516
|
+
"original": "boolean",
|
|
517
|
+
"resolved": "boolean",
|
|
518
|
+
"references": {}
|
|
519
|
+
},
|
|
520
|
+
"required": false,
|
|
521
|
+
"optional": false,
|
|
522
|
+
"docs": {
|
|
523
|
+
"tags": [],
|
|
524
|
+
"text": "Indicates whether or not the calendar should be shown as an inline (always open) component"
|
|
525
|
+
},
|
|
526
|
+
"attribute": "inline",
|
|
527
|
+
"reflect": true,
|
|
528
|
+
"defaultValue": "false"
|
|
529
|
+
},
|
|
530
|
+
"readonly": {
|
|
531
|
+
"type": "boolean",
|
|
532
|
+
"mutable": false,
|
|
533
|
+
"complexType": {
|
|
534
|
+
"original": "boolean",
|
|
535
|
+
"resolved": "boolean",
|
|
536
|
+
"references": {}
|
|
537
|
+
},
|
|
538
|
+
"required": false,
|
|
539
|
+
"optional": false,
|
|
540
|
+
"docs": {
|
|
541
|
+
"tags": [],
|
|
542
|
+
"text": "If `true` the user can only select a date via the component in the popup, but not directly edit the input field."
|
|
543
|
+
},
|
|
544
|
+
"attribute": "readonly",
|
|
545
|
+
"reflect": false,
|
|
546
|
+
"defaultValue": "false"
|
|
547
|
+
},
|
|
548
|
+
"disabled": {
|
|
549
|
+
"type": "boolean",
|
|
550
|
+
"mutable": false,
|
|
551
|
+
"complexType": {
|
|
552
|
+
"original": "boolean",
|
|
553
|
+
"resolved": "boolean",
|
|
554
|
+
"references": {}
|
|
555
|
+
},
|
|
556
|
+
"required": false,
|
|
557
|
+
"optional": false,
|
|
558
|
+
"docs": {
|
|
559
|
+
"tags": [],
|
|
560
|
+
"text": "If `true` the component is disabled."
|
|
561
|
+
},
|
|
562
|
+
"attribute": "disabled",
|
|
563
|
+
"reflect": false,
|
|
564
|
+
"defaultValue": "false"
|
|
565
|
+
},
|
|
566
|
+
"allowedDates": {
|
|
567
|
+
"type": "unknown",
|
|
568
|
+
"mutable": false,
|
|
569
|
+
"complexType": {
|
|
570
|
+
"original": "(date: Date) => boolean",
|
|
571
|
+
"resolved": "(date: Date) => boolean",
|
|
572
|
+
"references": {
|
|
573
|
+
"Date": {
|
|
574
|
+
"location": "global",
|
|
575
|
+
"id": "global::Date"
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"required": false,
|
|
580
|
+
"optional": false,
|
|
581
|
+
"docs": {
|
|
582
|
+
"tags": [],
|
|
583
|
+
"text": "Callback to determine which date in the datepicker should be selectable.\nthe callback function will get a datestring as an argument, e.g. '2021-07-04'\n\nUsage e.g.:\nconst datepicker = document.getElementById('allowed-date-picker');\ndatepicker.allowedDates = datestring => parseInt(datestring.split('-')[2], 10) % 2 === 0;"
|
|
584
|
+
},
|
|
585
|
+
"defaultValue": "() => true"
|
|
586
|
+
},
|
|
587
|
+
"min": {
|
|
588
|
+
"type": "unknown",
|
|
589
|
+
"mutable": false,
|
|
590
|
+
"complexType": {
|
|
591
|
+
"original": "Date",
|
|
592
|
+
"resolved": "Date | undefined",
|
|
593
|
+
"references": {
|
|
594
|
+
"Date": {
|
|
595
|
+
"location": "global",
|
|
596
|
+
"id": "global::Date"
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
"required": false,
|
|
601
|
+
"optional": true,
|
|
602
|
+
"docs": {
|
|
603
|
+
"tags": [],
|
|
604
|
+
"text": "The minimum datetime allowed. Value must be a date object"
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
"max": {
|
|
608
|
+
"type": "unknown",
|
|
609
|
+
"mutable": false,
|
|
610
|
+
"complexType": {
|
|
611
|
+
"original": "Date",
|
|
612
|
+
"resolved": "Date | undefined",
|
|
613
|
+
"references": {
|
|
614
|
+
"Date": {
|
|
615
|
+
"location": "global",
|
|
616
|
+
"id": "global::Date"
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
"required": false,
|
|
621
|
+
"optional": true,
|
|
622
|
+
"docs": {
|
|
623
|
+
"tags": [],
|
|
624
|
+
"text": "The maximum datetime allowed. Value must be a date object"
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
"closeOnSelect": {
|
|
628
|
+
"type": "boolean",
|
|
629
|
+
"mutable": false,
|
|
630
|
+
"complexType": {
|
|
631
|
+
"original": "boolean",
|
|
632
|
+
"resolved": "boolean",
|
|
633
|
+
"references": {}
|
|
634
|
+
},
|
|
635
|
+
"required": false,
|
|
636
|
+
"optional": false,
|
|
637
|
+
"docs": {
|
|
638
|
+
"tags": [],
|
|
639
|
+
"text": "Closes the datepicker dropdown after selection"
|
|
640
|
+
},
|
|
641
|
+
"attribute": "close-on-select",
|
|
642
|
+
"reflect": false,
|
|
643
|
+
"defaultValue": "this.type === 'date'"
|
|
644
|
+
},
|
|
645
|
+
"placement": {
|
|
646
|
+
"type": "string",
|
|
647
|
+
"mutable": false,
|
|
648
|
+
"complexType": {
|
|
649
|
+
"original": "'top' | 'bottom'",
|
|
650
|
+
"resolved": "\"bottom\" | \"top\" | undefined",
|
|
651
|
+
"references": {}
|
|
652
|
+
},
|
|
653
|
+
"required": false,
|
|
654
|
+
"optional": true,
|
|
655
|
+
"docs": {
|
|
656
|
+
"tags": [],
|
|
657
|
+
"text": "The enforced placement of the dropdown panel."
|
|
658
|
+
},
|
|
659
|
+
"attribute": "placement",
|
|
660
|
+
"reflect": false
|
|
661
|
+
},
|
|
662
|
+
"size": {
|
|
663
|
+
"type": "string",
|
|
664
|
+
"mutable": false,
|
|
665
|
+
"complexType": {
|
|
666
|
+
"original": "'small' | 'medium' | 'large'",
|
|
667
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
668
|
+
"references": {}
|
|
669
|
+
},
|
|
670
|
+
"required": false,
|
|
671
|
+
"optional": false,
|
|
672
|
+
"docs": {
|
|
673
|
+
"tags": [],
|
|
674
|
+
"text": "Datepicker size."
|
|
675
|
+
},
|
|
676
|
+
"attribute": "size",
|
|
677
|
+
"reflect": false,
|
|
678
|
+
"defaultValue": "'medium'"
|
|
679
|
+
},
|
|
680
|
+
"required": {
|
|
681
|
+
"type": "boolean",
|
|
682
|
+
"mutable": false,
|
|
683
|
+
"complexType": {
|
|
684
|
+
"original": "boolean",
|
|
685
|
+
"resolved": "boolean",
|
|
686
|
+
"references": {}
|
|
687
|
+
},
|
|
688
|
+
"required": false,
|
|
689
|
+
"optional": false,
|
|
690
|
+
"docs": {
|
|
691
|
+
"tags": [],
|
|
692
|
+
"text": "Set to true to show an asterisk beneath the label."
|
|
693
|
+
},
|
|
694
|
+
"attribute": "required",
|
|
695
|
+
"reflect": false,
|
|
696
|
+
"defaultValue": "false"
|
|
697
|
+
},
|
|
698
|
+
"defaultDate": {
|
|
699
|
+
"type": "string",
|
|
700
|
+
"mutable": false,
|
|
701
|
+
"complexType": {
|
|
702
|
+
"original": "string",
|
|
703
|
+
"resolved": "string | undefined",
|
|
704
|
+
"references": {}
|
|
705
|
+
},
|
|
706
|
+
"required": false,
|
|
707
|
+
"optional": true,
|
|
708
|
+
"docs": {
|
|
709
|
+
"tags": [],
|
|
710
|
+
"text": "The date to defines where the datepicker popup starts. The prop accepts ISO 8601 date strings (YYYY-MM-DD)."
|
|
711
|
+
},
|
|
712
|
+
"attribute": "default-date",
|
|
713
|
+
"reflect": false
|
|
714
|
+
},
|
|
715
|
+
"placeholder": {
|
|
716
|
+
"type": "string",
|
|
717
|
+
"mutable": false,
|
|
718
|
+
"complexType": {
|
|
719
|
+
"original": "string",
|
|
720
|
+
"resolved": "string | undefined",
|
|
721
|
+
"references": {}
|
|
722
|
+
},
|
|
723
|
+
"required": false,
|
|
724
|
+
"optional": true,
|
|
725
|
+
"docs": {
|
|
726
|
+
"tags": [],
|
|
727
|
+
"text": "The placeholder defines what text to be shown on the input element"
|
|
728
|
+
},
|
|
729
|
+
"attribute": "placeholder",
|
|
730
|
+
"reflect": false
|
|
731
|
+
},
|
|
732
|
+
"value": {
|
|
733
|
+
"type": "unknown",
|
|
734
|
+
"mutable": true,
|
|
735
|
+
"complexType": {
|
|
736
|
+
"original": "Date",
|
|
737
|
+
"resolved": "Date | undefined",
|
|
738
|
+
"references": {
|
|
739
|
+
"Date": {
|
|
740
|
+
"location": "global",
|
|
741
|
+
"id": "global::Date"
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
"required": false,
|
|
746
|
+
"optional": true,
|
|
747
|
+
"docs": {
|
|
748
|
+
"tags": [],
|
|
749
|
+
"text": "The value of the form field, which accepts a date object."
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
"label": {
|
|
753
|
+
"type": "string",
|
|
754
|
+
"mutable": false,
|
|
755
|
+
"complexType": {
|
|
756
|
+
"original": "string",
|
|
757
|
+
"resolved": "string",
|
|
758
|
+
"references": {}
|
|
759
|
+
},
|
|
760
|
+
"required": false,
|
|
761
|
+
"optional": false,
|
|
762
|
+
"docs": {
|
|
763
|
+
"tags": [],
|
|
764
|
+
"text": "The label text."
|
|
765
|
+
},
|
|
766
|
+
"attribute": "label",
|
|
767
|
+
"reflect": false,
|
|
768
|
+
"defaultValue": "''"
|
|
769
|
+
},
|
|
770
|
+
"errorText": {
|
|
771
|
+
"type": "string",
|
|
772
|
+
"mutable": false,
|
|
773
|
+
"complexType": {
|
|
774
|
+
"original": "string | string[]",
|
|
775
|
+
"resolved": "string | string[]",
|
|
776
|
+
"references": {}
|
|
777
|
+
},
|
|
778
|
+
"required": false,
|
|
779
|
+
"optional": false,
|
|
780
|
+
"docs": {
|
|
781
|
+
"tags": [],
|
|
782
|
+
"text": "The error message shown, if `invalid` is set to true."
|
|
783
|
+
},
|
|
784
|
+
"attribute": "error-text",
|
|
785
|
+
"reflect": false,
|
|
786
|
+
"defaultValue": "''"
|
|
787
|
+
},
|
|
788
|
+
"errorTextCount": {
|
|
789
|
+
"type": "number",
|
|
790
|
+
"mutable": false,
|
|
791
|
+
"complexType": {
|
|
792
|
+
"original": "number",
|
|
793
|
+
"resolved": "number | undefined",
|
|
794
|
+
"references": {}
|
|
795
|
+
},
|
|
796
|
+
"required": false,
|
|
797
|
+
"optional": true,
|
|
798
|
+
"docs": {
|
|
799
|
+
"tags": [],
|
|
800
|
+
"text": "The number of error texts to be shown (if the error-text slot isn't used). Defaults to 1"
|
|
801
|
+
},
|
|
802
|
+
"attribute": "error-text-count",
|
|
803
|
+
"reflect": false
|
|
804
|
+
},
|
|
805
|
+
"invalid": {
|
|
806
|
+
"type": "boolean",
|
|
807
|
+
"mutable": false,
|
|
808
|
+
"complexType": {
|
|
809
|
+
"original": "boolean",
|
|
810
|
+
"resolved": "boolean",
|
|
811
|
+
"references": {}
|
|
812
|
+
},
|
|
813
|
+
"required": false,
|
|
814
|
+
"optional": false,
|
|
815
|
+
"docs": {
|
|
816
|
+
"tags": [],
|
|
817
|
+
"text": "If this property is set to true and an error message is provided by `errorText`, the error message is displayed."
|
|
818
|
+
},
|
|
819
|
+
"attribute": "invalid",
|
|
820
|
+
"reflect": true,
|
|
821
|
+
"defaultValue": "false"
|
|
822
|
+
},
|
|
823
|
+
"containingElement": {
|
|
824
|
+
"type": "unknown",
|
|
825
|
+
"mutable": false,
|
|
826
|
+
"complexType": {
|
|
827
|
+
"original": "HTMLElement",
|
|
828
|
+
"resolved": "HTMLElement | undefined",
|
|
829
|
+
"references": {
|
|
830
|
+
"HTMLElement": {
|
|
831
|
+
"location": "global",
|
|
832
|
+
"id": "global::HTMLElement"
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
"required": false,
|
|
837
|
+
"optional": true,
|
|
838
|
+
"docs": {
|
|
839
|
+
"tags": [],
|
|
840
|
+
"text": "The dropdown will close when the user interacts outside of this element (e.g. clicking)."
|
|
841
|
+
}
|
|
842
|
+
},
|
|
843
|
+
"dateFormat": {
|
|
844
|
+
"type": "string",
|
|
845
|
+
"mutable": false,
|
|
846
|
+
"complexType": {
|
|
847
|
+
"original": "SixDateFormats",
|
|
848
|
+
"resolved": "SixDateFormats.DDMMYYYY_DASH | SixDateFormats.DDMMYYYY_DASH_TIME | SixDateFormats.DDMMYYYY_SLASH | SixDateFormats.DDMMYYYY_SLASH_TIME | SixDateFormats.DDMMYYY_DOT | SixDateFormats.DDMMYYY_DOT_TIME | SixDateFormats.DDMMYY_DASH | SixDateFormats.DDMMYY_DASH_TIME | SixDateFormats.DDMMYY_DOT | SixDateFormats.DDMMYY_DOT_TIME | SixDateFormats.DDMMYY_SLASH | SixDateFormats.DDMMYY_SLASH_TIME | SixDateFormats.YYMMDD_DASH | SixDateFormats.YYMMDD_DASH_TIME | SixDateFormats.YYMMDD_SLASH | SixDateFormats.YYMMDD_SLASH_TIME | SixDateFormats.YYYYMMDD_DASH | SixDateFormats.YYYYMMDD_DASH_TIME | SixDateFormats.YYYYMMDD_SLASH | SixDateFormats.YYYYMMDD_SLASH_TIME",
|
|
849
|
+
"references": {
|
|
850
|
+
"SixDateFormats": {
|
|
851
|
+
"location": "import",
|
|
852
|
+
"path": "./six-date-formats",
|
|
853
|
+
"id": "src/components/six-datepicker/six-date-formats.tsx::SixDateFormats"
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
},
|
|
857
|
+
"required": false,
|
|
858
|
+
"optional": false,
|
|
859
|
+
"docs": {
|
|
860
|
+
"tags": [],
|
|
861
|
+
"text": "Define the dateFormat. Valid formats are:\n'dd.mm.yyyy'\n'yyyy-mm-dd'\n'dd-mm-yyyy'\n'dd/mm/yyyy'\n'yyyy/mm/dd'\n'dd.mm.yy'\n'yy-mm-dd'\n'dd-mm-yy'\n'dd/mm/yy'\n'yy/mm/dd'"
|
|
862
|
+
},
|
|
863
|
+
"attribute": "date-format",
|
|
864
|
+
"reflect": false,
|
|
865
|
+
"defaultValue": "SixDateFormats.DDMMYYY_DOT"
|
|
866
|
+
},
|
|
867
|
+
"debounce": {
|
|
868
|
+
"type": "number",
|
|
869
|
+
"mutable": false,
|
|
870
|
+
"complexType": {
|
|
871
|
+
"original": "number",
|
|
872
|
+
"resolved": "number",
|
|
873
|
+
"references": {}
|
|
874
|
+
},
|
|
875
|
+
"required": false,
|
|
876
|
+
"optional": false,
|
|
877
|
+
"docs": {
|
|
878
|
+
"tags": [],
|
|
879
|
+
"text": "Set the amount of time, in milliseconds, to wait to trigger the `dateChange` event after each keystroke."
|
|
880
|
+
},
|
|
881
|
+
"attribute": "debounce",
|
|
882
|
+
"reflect": false,
|
|
883
|
+
"defaultValue": "DEFAULT_DEBOUNCE_FAST"
|
|
884
|
+
},
|
|
885
|
+
"name": {
|
|
886
|
+
"type": "string",
|
|
887
|
+
"mutable": false,
|
|
888
|
+
"complexType": {
|
|
889
|
+
"original": "string",
|
|
890
|
+
"resolved": "string",
|
|
891
|
+
"references": {}
|
|
892
|
+
},
|
|
893
|
+
"required": false,
|
|
894
|
+
"optional": false,
|
|
895
|
+
"docs": {
|
|
896
|
+
"tags": [],
|
|
897
|
+
"text": "The input's name attribute."
|
|
898
|
+
},
|
|
899
|
+
"attribute": "name",
|
|
900
|
+
"reflect": true,
|
|
901
|
+
"defaultValue": "''"
|
|
902
|
+
},
|
|
903
|
+
"clearable": {
|
|
904
|
+
"type": "boolean",
|
|
905
|
+
"mutable": false,
|
|
906
|
+
"complexType": {
|
|
907
|
+
"original": "boolean",
|
|
908
|
+
"resolved": "boolean",
|
|
909
|
+
"references": {}
|
|
910
|
+
},
|
|
911
|
+
"required": false,
|
|
912
|
+
"optional": false,
|
|
913
|
+
"docs": {
|
|
914
|
+
"tags": [],
|
|
915
|
+
"text": "Set to true to add a clear button when the input is populated."
|
|
916
|
+
},
|
|
917
|
+
"attribute": "clearable",
|
|
918
|
+
"reflect": false,
|
|
919
|
+
"defaultValue": "false"
|
|
920
|
+
},
|
|
921
|
+
"iconPosition": {
|
|
922
|
+
"type": "string",
|
|
923
|
+
"mutable": false,
|
|
924
|
+
"complexType": {
|
|
925
|
+
"original": "'left' | 'right'",
|
|
926
|
+
"resolved": "\"left\" | \"right\"",
|
|
927
|
+
"references": {}
|
|
928
|
+
},
|
|
929
|
+
"required": false,
|
|
930
|
+
"optional": false,
|
|
931
|
+
"docs": {
|
|
932
|
+
"tags": [],
|
|
933
|
+
"text": "Set the position of the icon"
|
|
934
|
+
},
|
|
935
|
+
"attribute": "icon-position",
|
|
936
|
+
"reflect": false,
|
|
937
|
+
"defaultValue": "'left'"
|
|
938
|
+
},
|
|
939
|
+
"hoist": {
|
|
940
|
+
"type": "boolean",
|
|
941
|
+
"mutable": false,
|
|
942
|
+
"complexType": {
|
|
943
|
+
"original": "boolean",
|
|
944
|
+
"resolved": "boolean",
|
|
945
|
+
"references": {}
|
|
946
|
+
},
|
|
947
|
+
"required": false,
|
|
948
|
+
"optional": false,
|
|
949
|
+
"docs": {
|
|
950
|
+
"tags": [],
|
|
951
|
+
"text": "Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`."
|
|
952
|
+
},
|
|
953
|
+
"attribute": "hoist",
|
|
954
|
+
"reflect": false,
|
|
955
|
+
"defaultValue": "false"
|
|
1215
956
|
}
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
static get states() {
|
|
960
|
+
return {
|
|
961
|
+
"pointerDate": {},
|
|
962
|
+
"selectionMode": {},
|
|
963
|
+
"isDropDownContentUp": {}
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
static get events() {
|
|
967
|
+
return [{
|
|
968
|
+
"method": "sixSelect",
|
|
969
|
+
"name": "six-datepicker-select",
|
|
970
|
+
"bubbles": true,
|
|
971
|
+
"cancelable": true,
|
|
972
|
+
"composed": true,
|
|
973
|
+
"docs": {
|
|
974
|
+
"tags": [],
|
|
975
|
+
"text": "Emitted when a option got selected."
|
|
976
|
+
},
|
|
977
|
+
"complexType": {
|
|
978
|
+
"original": "SixDatepickerSelectPayload",
|
|
979
|
+
"resolved": "Date | null | undefined",
|
|
980
|
+
"references": {
|
|
981
|
+
"SixDatepickerSelectPayload": {
|
|
982
|
+
"location": "local",
|
|
983
|
+
"path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-datepicker/six-datepicker.tsx",
|
|
984
|
+
"id": "src/components/six-datepicker/six-datepicker.tsx::SixDatepickerSelectPayload"
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
}, {
|
|
989
|
+
"method": "sixClear",
|
|
990
|
+
"name": "six-datepicker-clear",
|
|
991
|
+
"bubbles": true,
|
|
992
|
+
"cancelable": true,
|
|
993
|
+
"composed": true,
|
|
994
|
+
"docs": {
|
|
995
|
+
"tags": [],
|
|
996
|
+
"text": "Emitted when the clear button is activated."
|
|
997
|
+
},
|
|
998
|
+
"complexType": {
|
|
999
|
+
"original": "EmptyPayload",
|
|
1000
|
+
"resolved": "undefined",
|
|
1001
|
+
"references": {
|
|
1002
|
+
"EmptyPayload": {
|
|
1003
|
+
"location": "import",
|
|
1004
|
+
"path": "../../utils/types",
|
|
1005
|
+
"id": "src/utils/types.ts::EmptyPayload"
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
}, {
|
|
1010
|
+
"method": "sixBlur",
|
|
1011
|
+
"name": "six-datepicker-blur",
|
|
1012
|
+
"bubbles": true,
|
|
1013
|
+
"cancelable": true,
|
|
1014
|
+
"composed": true,
|
|
1015
|
+
"docs": {
|
|
1016
|
+
"tags": [],
|
|
1017
|
+
"text": "Emitted when a option got selected."
|
|
1018
|
+
},
|
|
1019
|
+
"complexType": {
|
|
1020
|
+
"original": "SixDatepickerSelectPayload",
|
|
1021
|
+
"resolved": "Date | null | undefined",
|
|
1022
|
+
"references": {
|
|
1023
|
+
"SixDatepickerSelectPayload": {
|
|
1024
|
+
"location": "local",
|
|
1025
|
+
"path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-datepicker/six-datepicker.tsx",
|
|
1026
|
+
"id": "src/components/six-datepicker/six-datepicker.tsx::SixDatepickerSelectPayload"
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
}];
|
|
1031
|
+
}
|
|
1032
|
+
static get methods() {
|
|
1033
|
+
return {
|
|
1034
|
+
"setFocus": {
|
|
1035
|
+
"complexType": {
|
|
1036
|
+
"signature": "(options?: FocusOptions) => Promise<void>",
|
|
1037
|
+
"parameters": [{
|
|
1038
|
+
"name": "options",
|
|
1039
|
+
"type": "FocusOptions | undefined",
|
|
1040
|
+
"docs": ""
|
|
1041
|
+
}],
|
|
1042
|
+
"references": {
|
|
1043
|
+
"Promise": {
|
|
1044
|
+
"location": "global",
|
|
1045
|
+
"id": "global::Promise"
|
|
1046
|
+
},
|
|
1047
|
+
"FocusOptions": {
|
|
1048
|
+
"location": "global",
|
|
1049
|
+
"id": "global::FocusOptions"
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
"return": "Promise<void>"
|
|
1053
|
+
},
|
|
1054
|
+
"docs": {
|
|
1055
|
+
"text": "Sets focus on the datepickers input.",
|
|
1056
|
+
"tags": []
|
|
1057
|
+
}
|
|
1058
|
+
},
|
|
1059
|
+
"select": {
|
|
1060
|
+
"complexType": {
|
|
1061
|
+
"signature": "(datestring?: string) => Promise<void>",
|
|
1062
|
+
"parameters": [{
|
|
1063
|
+
"name": "datestring",
|
|
1064
|
+
"type": "string | undefined",
|
|
1065
|
+
"docs": ""
|
|
1066
|
+
}],
|
|
1067
|
+
"references": {
|
|
1068
|
+
"Promise": {
|
|
1069
|
+
"location": "global",
|
|
1070
|
+
"id": "global::Promise"
|
|
1071
|
+
}
|
|
1072
|
+
},
|
|
1073
|
+
"return": "Promise<void>"
|
|
1074
|
+
},
|
|
1075
|
+
"docs": {
|
|
1076
|
+
"text": "Selects an option",
|
|
1077
|
+
"tags": []
|
|
1078
|
+
}
|
|
1234
1079
|
}
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
}, {
|
|
1263
|
-
"name": "scroll",
|
|
1264
|
-
"method": "scrollHandler",
|
|
1265
|
-
"target": "window",
|
|
1266
|
-
"capture": false,
|
|
1267
|
-
"passive": true
|
|
1268
|
-
}];
|
|
1269
|
-
}
|
|
1080
|
+
};
|
|
1081
|
+
}
|
|
1082
|
+
static get elementRef() { return "host"; }
|
|
1083
|
+
static get watchers() {
|
|
1084
|
+
return [{
|
|
1085
|
+
"propName": "debounce",
|
|
1086
|
+
"methodName": "debounceChanged"
|
|
1087
|
+
}, {
|
|
1088
|
+
"propName": "value",
|
|
1089
|
+
"methodName": "valueChanged"
|
|
1090
|
+
}];
|
|
1091
|
+
}
|
|
1092
|
+
static get listeners() {
|
|
1093
|
+
return [{
|
|
1094
|
+
"name": "resize",
|
|
1095
|
+
"method": "resizeHandler",
|
|
1096
|
+
"target": "window",
|
|
1097
|
+
"capture": false,
|
|
1098
|
+
"passive": true
|
|
1099
|
+
}, {
|
|
1100
|
+
"name": "scroll",
|
|
1101
|
+
"method": "scrollHandler",
|
|
1102
|
+
"target": "window",
|
|
1103
|
+
"capture": false,
|
|
1104
|
+
"passive": true
|
|
1105
|
+
}];
|
|
1106
|
+
}
|
|
1270
1107
|
}
|
|
1271
1108
|
//# sourceMappingURL=six-datepicker.js.map
|