@six-group/ui-library 4.2.6 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{form-control-de259450.js → form-control-b39f1df5.js} +2 -2
- package/dist/cjs/{form-control-de259450.js.map → form-control-b39f1df5.js.map} +1 -1
- package/dist/cjs/index-417a06c8.js +1948 -0
- package/dist/cjs/index-417a06c8.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/six-alert.cjs.entry.js +2 -2
- package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/six-avatar.cjs.entry.js +3 -3
- package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-badge.cjs.entry.js +3 -3
- package/dist/cjs/six-button.cjs.entry.js +4 -4
- package/dist/cjs/six-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-card.cjs.entry.js +2 -2
- package/dist/cjs/{six-checkbox_2.cjs.entry.js → six-checkbox.cjs.entry.js} +5 -69
- package/dist/cjs/six-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/six-datepicker.cjs.entry.js +4 -4
- package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-details.cjs.entry.js +4 -4
- package/dist/cjs/six-details.cjs.entry.js.map +1 -1
- package/dist/cjs/six-dialog.cjs.entry.js +3 -3
- package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/six-drawer.cjs.entry.js +3 -3
- package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/{six-dropdown_2.cjs.entry.js → six-dropdown_3.cjs.entry.js} +73 -9
- package/dist/cjs/six-dropdown_3.cjs.entry.js.map +1 -0
- package/dist/cjs/six-error-page.cjs.entry.js +2 -2
- package/dist/cjs/six-error.cjs.entry.js +2 -2
- package/dist/cjs/six-file-list-item.cjs.entry.js +3 -3
- package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-file-list.cjs.entry.js +2 -2
- package/dist/cjs/six-file-upload.cjs.entry.js +6 -9
- package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/six-footer.cjs.entry.js +2 -2
- package/dist/cjs/six-group-label.cjs.entry.js +3 -3
- package/dist/cjs/six-header-dropdown-item.cjs.entry.js +45 -0
- package/dist/cjs/six-header-dropdown-item.cjs.entry.js.map +1 -0
- package/dist/cjs/six-header-item_2.cjs.entry.js +47 -0
- package/dist/cjs/six-header-item_2.cjs.entry.js.map +1 -0
- package/dist/cjs/six-header-menu-button.cjs.entry.js +23 -0
- package/dist/cjs/six-header-menu-button.cjs.entry.js.map +1 -0
- package/dist/cjs/six-header.cjs.entry.js +40 -31
- package/dist/cjs/six-header.cjs.entry.js.map +1 -1
- package/dist/cjs/six-icon-button.cjs.entry.js +11 -5
- package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-icon.cjs.entry.js +3 -3
- package/dist/cjs/six-input.cjs.entry.js +5 -5
- package/dist/cjs/six-input.cjs.entry.js.map +1 -1
- package/dist/cjs/six-item-picker.cjs.entry.js +4 -4
- package/dist/cjs/six-language-switcher.cjs.entry.js +2 -2
- package/dist/cjs/six-layout-grid.cjs.entry.js +2 -2
- package/dist/cjs/six-main-container.cjs.entry.js +2 -2
- package/dist/cjs/six-menu-divider.cjs.entry.js +2 -2
- package/dist/cjs/six-menu-label.cjs.entry.js +2 -2
- package/dist/cjs/six-picto.cjs.entry.js +2 -2
- package/dist/cjs/six-progress-bar.cjs.entry.js +4 -4
- package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-progress-ring.cjs.entry.js +2 -2
- package/dist/cjs/six-radio.cjs.entry.js +3 -3
- package/dist/cjs/six-range.cjs.entry.js +4 -4
- package/dist/cjs/six-range.cjs.entry.js.map +1 -1
- package/dist/cjs/six-root.cjs.entry.js +2 -2
- package/dist/cjs/six-root.cjs.entry.js.map +1 -1
- package/dist/cjs/six-search-field.cjs.entry.js +2 -2
- package/dist/cjs/six-select.cjs.entry.js +8 -8
- package/dist/cjs/six-select.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js +3 -3
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar-item.cjs.entry.js +4 -4
- package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/six-spinner.cjs.entry.js +1 -1
- package/dist/cjs/six-stage-indicator.cjs.entry.js +1 -1
- package/dist/cjs/six-switch.cjs.entry.js +4 -4
- package/dist/cjs/six-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/six-tab.cjs.entry.js +3 -3
- package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tag.cjs.entry.js +3 -3
- package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/six-textarea.cjs.entry.js +4 -4
- package/dist/cjs/six-tile.cjs.entry.js +6 -6
- package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/six-timepicker.cjs.entry.js +3 -3
- package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/ui-library.cjs.js +10 -10
- package/dist/cjs/ui-library.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +6 -2
- package/dist/collection/components/six-alert/six-alert.js +1 -1
- package/dist/collection/components/six-alert/six-alert.js.map +1 -1
- package/dist/collection/components/six-avatar/six-avatar.js +2 -2
- package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
- package/dist/collection/components/six-badge/six-badge.js +2 -2
- package/dist/collection/components/six-button/six-button.css +0 -4
- package/dist/collection/components/six-button/six-button.js +2 -2
- package/dist/collection/components/six-button/six-button.js.map +1 -1
- package/dist/collection/components/six-card/six-card.js +1 -1
- package/dist/collection/components/six-checkbox/six-checkbox.js +2 -2
- package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
- package/dist/collection/components/six-datepicker/six-datepicker.js +3 -3
- package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
- package/dist/collection/components/six-details/six-details.js +3 -3
- package/dist/collection/components/six-details/six-details.js.map +1 -1
- package/dist/collection/components/six-dialog/six-dialog.js +2 -2
- package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
- package/dist/collection/components/six-drawer/six-drawer.js +2 -2
- package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
- package/dist/collection/components/six-dropdown/six-dropdown.js +5 -5
- package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
- package/dist/collection/components/six-error/six-error.js +1 -1
- package/dist/collection/components/six-error-page/six-error-page.js +1 -1
- package/dist/collection/components/six-file-list/six-file-list.js +1 -1
- package/dist/collection/components/six-file-list-item/six-file-list-item.js +2 -2
- package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
- package/dist/collection/components/six-file-upload/six-file-upload.js +5 -8
- package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
- package/dist/collection/components/six-footer/six-footer.js +1 -1
- package/dist/collection/components/six-group-label/six-group-label.js +1 -1
- package/dist/collection/components/six-header/six-header.css +5 -29
- package/dist/collection/components/six-header/six-header.js +115 -47
- package/dist/collection/components/six-header/six-header.js.map +1 -1
- package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.css +15 -0
- package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js +53 -0
- package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js.map +1 -0
- package/dist/collection/components/six-header-item/six-header-item.css +15 -0
- package/dist/collection/components/six-header-item/six-header-item.js +51 -0
- package/dist/collection/components/six-header-item/six-header-item.js.map +1 -0
- package/dist/collection/components/six-header-menu-button/six-header-menu-button.css +27 -0
- package/dist/collection/components/six-header-menu-button/six-header-menu-button.js +48 -0
- package/dist/collection/components/six-header-menu-button/six-header-menu-button.js.map +1 -0
- package/dist/collection/components/six-icon/six-icon.js +2 -2
- package/dist/collection/components/six-icon-button/six-icon-button.css +2 -1
- package/dist/collection/components/six-icon-button/six-icon-button.js +60 -3
- package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
- package/dist/collection/components/six-input/six-input.js +4 -4
- package/dist/collection/components/six-input/six-input.js.map +1 -1
- package/dist/collection/components/six-item-picker/six-item-picker.js +3 -3
- package/dist/collection/components/six-language-switcher/six-language-switcher.js +1 -1
- package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
- package/dist/collection/components/six-logo/six-logo.css +18 -0
- package/dist/collection/components/six-logo/six-logo.js +54 -0
- package/dist/collection/components/six-logo/six-logo.js.map +1 -0
- package/dist/collection/components/six-main-container/six-main-container.js +1 -1
- package/dist/collection/components/six-menu/six-menu.js +2 -2
- package/dist/collection/components/six-menu/six-menu.js.map +1 -1
- package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
- package/dist/collection/components/six-menu-item/six-menu-item.js +2 -2
- package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
- package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
- package/dist/collection/components/six-picto/six-picto.js +1 -1
- package/dist/collection/components/six-progress-bar/six-progress-bar.js +3 -3
- package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
- package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
- package/dist/collection/components/six-radio/six-radio.js +2 -2
- package/dist/collection/components/six-range/six-range.js +2 -2
- package/dist/collection/components/six-range/six-range.js.map +1 -1
- package/dist/collection/components/six-root/six-root.js +1 -1
- package/dist/collection/components/six-root/six-root.js.map +1 -1
- package/dist/collection/components/six-search-field/six-search-field.js +1 -1
- package/dist/collection/components/six-select/six-select.js +6 -6
- package/dist/collection/components/six-select/six-select.js.map +1 -1
- package/dist/collection/components/six-sidebar/six-sidebar.js +2 -2
- package/dist/collection/components/six-sidebar-item/six-sidebar-item.css +7 -0
- package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +7 -0
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +1 -1
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
- package/dist/collection/components/six-switch/six-switch.js +2 -2
- package/dist/collection/components/six-tab/six-tab.js +2 -2
- package/dist/collection/components/six-tab/six-tab.js.map +1 -1
- package/dist/collection/components/six-tab-group/six-tab-group.js +2 -2
- package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
- package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
- package/dist/collection/components/six-tag/six-tag.js +2 -2
- package/dist/collection/components/six-tag/six-tag.js.map +1 -1
- package/dist/collection/components/six-textarea/six-textarea.js +4 -4
- package/dist/collection/components/six-tile/six-tile.js +5 -5
- package/dist/collection/components/six-tile/six-tile.js.map +1 -1
- package/dist/collection/components/six-timepicker/six-timepicker.js +2 -2
- package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
- package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
- package/dist/collection/files/noto-sans-cyrillic-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-900-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-900-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-900-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
- package/dist/components/index.js +8 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/six-alert.js +1 -1
- package/dist/components/six-alert.js.map +1 -1
- package/dist/components/six-avatar.js +2 -2
- package/dist/components/six-avatar.js.map +1 -1
- package/dist/components/six-badge.js +2 -2
- package/dist/components/six-button2.js +3 -3
- package/dist/components/six-button2.js.map +1 -1
- package/dist/components/six-card.js +1 -1
- package/dist/components/six-checkbox2.js +2 -2
- package/dist/components/six-checkbox2.js.map +1 -1
- package/dist/components/six-datepicker.js +3 -3
- package/dist/components/six-datepicker.js.map +1 -1
- package/dist/components/six-details2.js +3 -3
- package/dist/components/six-details2.js.map +1 -1
- package/dist/components/six-dialog.js +2 -2
- package/dist/components/six-dialog.js.map +1 -1
- package/dist/components/six-drawer.js +2 -2
- package/dist/components/six-drawer.js.map +1 -1
- package/dist/components/six-dropdown2.js +5 -5
- package/dist/components/six-dropdown2.js.map +1 -1
- package/dist/components/six-error-page.js +1 -1
- package/dist/components/six-error2.js +1 -1
- package/dist/components/six-file-list-item.js +2 -2
- package/dist/components/six-file-list-item.js.map +1 -1
- package/dist/components/six-file-list.js +1 -1
- package/dist/components/six-file-upload.js +5 -8
- package/dist/components/six-file-upload.js.map +1 -1
- package/dist/components/six-footer.js +1 -1
- package/dist/components/six-group-label.js +1 -1
- package/dist/components/six-header-dropdown-item.d.ts +11 -0
- package/dist/components/six-header-dropdown-item.js +103 -0
- package/dist/components/six-header-dropdown-item.js.map +1 -0
- package/dist/components/six-header-item.d.ts +11 -0
- package/dist/components/six-header-item.js +8 -0
- package/dist/components/six-header-item.js.map +1 -0
- package/dist/components/six-header-item2.js +39 -0
- package/dist/components/six-header-item2.js.map +1 -0
- package/dist/components/six-header-menu-button.d.ts +11 -0
- package/dist/components/six-header-menu-button.js +57 -0
- package/dist/components/six-header-menu-button.js.map +1 -0
- package/dist/components/six-header.js +64 -42
- package/dist/components/six-header.js.map +1 -1
- package/dist/components/six-icon-button2.js +14 -5
- package/dist/components/six-icon-button2.js.map +1 -1
- package/dist/components/six-icon2.js +2 -2
- package/dist/components/six-input2.js +3 -3
- package/dist/components/six-input2.js.map +1 -1
- package/dist/components/six-item-picker2.js +3 -3
- package/dist/components/six-language-switcher.js +1 -1
- package/dist/components/six-layout-grid.js +1 -1
- package/dist/components/six-logo.d.ts +11 -0
- package/dist/components/six-logo.js +8 -0
- package/dist/components/six-logo.js.map +1 -0
- package/dist/components/six-logo2.js +42 -0
- package/dist/components/six-logo2.js.map +1 -0
- package/dist/components/six-main-container.js +1 -1
- package/dist/components/six-menu-divider.js +1 -1
- package/dist/components/six-menu-item2.js +2 -2
- package/dist/components/six-menu-item2.js.map +1 -1
- package/dist/components/six-menu-label.js +1 -1
- package/dist/components/six-menu2.js +2 -2
- package/dist/components/six-menu2.js.map +1 -1
- package/dist/components/six-picto2.js +1 -1
- package/dist/components/six-progress-bar.js +3 -3
- package/dist/components/six-progress-bar.js.map +1 -1
- package/dist/components/six-progress-ring.js +1 -1
- package/dist/components/six-radio.js +2 -2
- package/dist/components/six-range.js +2 -2
- package/dist/components/six-range.js.map +1 -1
- package/dist/components/six-root.js +1 -1
- package/dist/components/six-root.js.map +1 -1
- package/dist/components/six-search-field.js +1 -1
- package/dist/components/six-select.js +6 -6
- package/dist/components/six-select.js.map +1 -1
- package/dist/components/six-sidebar-item-group.js +2 -2
- package/dist/components/six-sidebar-item-group.js.map +1 -1
- package/dist/components/six-sidebar-item.js +3 -3
- package/dist/components/six-sidebar-item.js.map +1 -1
- package/dist/components/six-sidebar.js +2 -2
- package/dist/components/six-switch.js +2 -2
- package/dist/components/six-tab-group.js +2 -2
- package/dist/components/six-tab-group.js.map +1 -1
- package/dist/components/six-tab-panel.js +1 -1
- package/dist/components/six-tab.js +2 -2
- package/dist/components/six-tab.js.map +1 -1
- package/dist/components/six-tag.js +2 -2
- package/dist/components/six-tag.js.map +1 -1
- package/dist/components/six-textarea.js +2 -2
- package/dist/components/six-tile.js +5 -5
- package/dist/components/six-tile.js.map +1 -1
- package/dist/components/six-timepicker2.js +2 -2
- package/dist/components/six-timepicker2.js.map +1 -1
- package/dist/components/six-tooltip2.js +2 -2
- package/dist/components.d.ts +34 -0
- package/dist/components.json +477 -32
- package/dist/esm/{form-control-30c5bd8b.js → form-control-ad1710bf.js} +2 -2
- package/dist/esm/{form-control-30c5bd8b.js.map → form-control-ad1710bf.js.map} +1 -1
- package/dist/esm/index-a7bee415.js +1919 -0
- package/dist/esm/index-a7bee415.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/six-alert.entry.js +2 -2
- package/dist/esm/six-alert.entry.js.map +1 -1
- package/dist/esm/six-avatar.entry.js +3 -3
- package/dist/esm/six-avatar.entry.js.map +1 -1
- package/dist/esm/six-badge.entry.js +3 -3
- package/dist/esm/six-button.entry.js +4 -4
- package/dist/esm/six-button.entry.js.map +1 -1
- package/dist/esm/six-card.entry.js +2 -2
- package/dist/esm/{six-checkbox_2.entry.js → six-checkbox.entry.js} +7 -70
- package/dist/esm/six-checkbox.entry.js.map +1 -0
- package/dist/esm/six-datepicker.entry.js +4 -4
- package/dist/esm/six-datepicker.entry.js.map +1 -1
- package/dist/esm/six-details.entry.js +4 -4
- package/dist/esm/six-details.entry.js.map +1 -1
- package/dist/esm/six-dialog.entry.js +3 -3
- package/dist/esm/six-dialog.entry.js.map +1 -1
- package/dist/esm/six-drawer.entry.js +3 -3
- package/dist/esm/six-drawer.entry.js.map +1 -1
- package/dist/esm/{six-dropdown_2.entry.js → six-dropdown_3.entry.js} +73 -10
- package/dist/esm/six-dropdown_3.entry.js.map +1 -0
- package/dist/esm/six-error-page.entry.js +2 -2
- package/dist/esm/six-error.entry.js +2 -2
- package/dist/esm/six-file-list-item.entry.js +3 -3
- package/dist/esm/six-file-list-item.entry.js.map +1 -1
- package/dist/esm/six-file-list.entry.js +2 -2
- package/dist/esm/six-file-upload.entry.js +6 -9
- package/dist/esm/six-file-upload.entry.js.map +1 -1
- package/dist/esm/six-footer.entry.js +2 -2
- package/dist/esm/six-group-label.entry.js +3 -3
- package/dist/esm/six-header-dropdown-item.entry.js +41 -0
- package/dist/esm/six-header-dropdown-item.entry.js.map +1 -0
- package/dist/esm/six-header-item_2.entry.js +42 -0
- package/dist/esm/six-header-item_2.entry.js.map +1 -0
- package/dist/esm/six-header-menu-button.entry.js +19 -0
- package/dist/esm/six-header-menu-button.entry.js.map +1 -0
- package/dist/esm/six-header.entry.js +40 -31
- package/dist/esm/six-header.entry.js.map +1 -1
- package/dist/esm/six-icon-button.entry.js +11 -5
- package/dist/esm/six-icon-button.entry.js.map +1 -1
- package/dist/esm/six-icon.entry.js +3 -3
- package/dist/esm/six-input.entry.js +5 -5
- package/dist/esm/six-input.entry.js.map +1 -1
- package/dist/esm/six-item-picker.entry.js +4 -4
- package/dist/esm/six-language-switcher.entry.js +2 -2
- package/dist/esm/six-layout-grid.entry.js +2 -2
- package/dist/esm/six-main-container.entry.js +2 -2
- package/dist/esm/six-menu-divider.entry.js +2 -2
- package/dist/esm/six-menu-label.entry.js +2 -2
- package/dist/esm/six-picto.entry.js +2 -2
- package/dist/esm/six-progress-bar.entry.js +4 -4
- package/dist/esm/six-progress-bar.entry.js.map +1 -1
- package/dist/esm/six-progress-ring.entry.js +2 -2
- package/dist/esm/six-radio.entry.js +3 -3
- package/dist/esm/six-range.entry.js +4 -4
- package/dist/esm/six-range.entry.js.map +1 -1
- package/dist/esm/six-root.entry.js +2 -2
- package/dist/esm/six-root.entry.js.map +1 -1
- package/dist/esm/six-search-field.entry.js +2 -2
- package/dist/esm/six-select.entry.js +8 -8
- package/dist/esm/six-select.entry.js.map +1 -1
- package/dist/esm/six-sidebar-item-group.entry.js +3 -3
- package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
- package/dist/esm/six-sidebar-item.entry.js +4 -4
- package/dist/esm/six-sidebar-item.entry.js.map +1 -1
- package/dist/esm/six-sidebar.entry.js +3 -3
- package/dist/esm/six-spinner.entry.js +1 -1
- package/dist/esm/six-stage-indicator.entry.js +1 -1
- package/dist/esm/six-switch.entry.js +4 -4
- package/dist/esm/six-tab-group.entry.js +3 -3
- package/dist/esm/six-tab-group.entry.js.map +1 -1
- package/dist/esm/six-tab-panel.entry.js +2 -2
- package/dist/esm/six-tab.entry.js +3 -3
- package/dist/esm/six-tab.entry.js.map +1 -1
- package/dist/esm/six-tag.entry.js +3 -3
- package/dist/esm/six-tag.entry.js.map +1 -1
- package/dist/esm/six-textarea.entry.js +4 -4
- package/dist/esm/six-tile.entry.js +6 -6
- package/dist/esm/six-tile.entry.js.map +1 -1
- package/dist/esm/six-timepicker.entry.js +3 -3
- package/dist/esm/six-timepicker.entry.js.map +1 -1
- package/dist/esm/six-tooltip.entry.js +3 -3
- package/dist/esm/ui-library.js +11 -11
- package/dist/esm/ui-library.js.map +1 -1
- package/dist/types/components/six-file-upload/six-file-upload.d.ts +1 -1
- package/dist/types/components/six-header/six-header.d.ts +79 -18
- package/dist/types/components/six-header-dropdown-item/six-header-dropdown-item.d.ts +13 -0
- package/dist/types/components/six-header-item/six-header-item.d.ts +15 -0
- package/dist/types/components/six-header-menu-button/six-header-menu-button.d.ts +11 -0
- package/dist/types/components/six-icon-button/six-icon-button.d.ts +6 -0
- package/dist/types/components/six-logo/six-logo.d.ts +9 -0
- package/dist/types/components.d.ts +197 -5
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/dist/types/utils/type-check.d.ts +1 -1
- package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-900-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-900-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
- package/dist/ui-library/index.esm.js.map +1 -1
- package/dist/ui-library/{p-d42f1ea9.entry.js → p-03acec96.entry.js} +2 -2
- package/dist/ui-library/{p-d42f1ea9.entry.js.map → p-03acec96.entry.js.map} +1 -1
- package/dist/ui-library/p-06ba4450.js.map +1 -1
- package/dist/ui-library/{p-b7c68f74.entry.js → p-06d562b7.entry.js} +2 -2
- package/dist/ui-library/{p-b7c68f74.entry.js.map → p-06d562b7.entry.js.map} +1 -1
- package/dist/ui-library/p-07b6203f.entry.js +2 -0
- package/dist/ui-library/{p-7c18b8ca.entry.js.map → p-07b6203f.entry.js.map} +1 -1
- package/dist/ui-library/{p-2386627e.entry.js → p-0a6b6429.entry.js} +2 -2
- package/dist/ui-library/{p-2386627e.entry.js.map → p-0a6b6429.entry.js.map} +1 -1
- package/dist/ui-library/p-0cebf1d2.js.map +1 -1
- package/dist/ui-library/p-14d09601.entry.js +2 -0
- package/dist/ui-library/{p-11344bb8.entry.js.map → p-14d09601.entry.js.map} +1 -1
- package/dist/ui-library/{p-45b0748e.entry.js → p-171df3ad.entry.js} +2 -2
- package/dist/ui-library/{p-45b0748e.entry.js.map → p-171df3ad.entry.js.map} +1 -1
- package/dist/ui-library/p-1cc3b56d.entry.js +2 -0
- package/dist/ui-library/{p-36d5f98a.entry.js.map → p-1cc3b56d.entry.js.map} +1 -1
- package/dist/ui-library/{p-7bdd1116.entry.js → p-1cd09d9b.entry.js} +2 -2
- package/dist/ui-library/{p-7bdd1116.entry.js.map → p-1cd09d9b.entry.js.map} +1 -1
- package/dist/ui-library/{p-416b0439.entry.js → p-1f7a0cb5.entry.js} +2 -2
- package/dist/ui-library/{p-416b0439.entry.js.map → p-1f7a0cb5.entry.js.map} +1 -1
- package/dist/ui-library/p-2355c444.entry.js +2 -0
- package/dist/ui-library/{p-347e568f.entry.js.map → p-2355c444.entry.js.map} +1 -1
- package/dist/ui-library/p-281ffc35.entry.js +2 -0
- package/dist/ui-library/p-281ffc35.entry.js.map +1 -0
- package/dist/ui-library/{p-c62893e5.entry.js → p-2ad904a7.entry.js} +2 -2
- package/dist/ui-library/{p-c62893e5.entry.js.map → p-2ad904a7.entry.js.map} +1 -1
- package/dist/ui-library/{p-b5acf54d.entry.js → p-30000e86.entry.js} +2 -2
- package/dist/ui-library/{p-b5acf54d.entry.js.map → p-30000e86.entry.js.map} +1 -1
- package/dist/ui-library/{p-4d89932f.entry.js → p-42cd3588.entry.js} +2 -2
- package/dist/ui-library/{p-4d89932f.entry.js.map → p-42cd3588.entry.js.map} +1 -1
- package/dist/ui-library/p-48118ce8.js +3 -0
- package/dist/ui-library/p-48118ce8.js.map +1 -0
- package/dist/ui-library/{p-b335ed9c.entry.js → p-49019d6c.entry.js} +2 -2
- package/dist/ui-library/{p-b335ed9c.entry.js.map → p-49019d6c.entry.js.map} +1 -1
- package/dist/ui-library/{p-c6464bfe.entry.js → p-4d72b179.entry.js} +2 -2
- package/dist/ui-library/{p-c6464bfe.entry.js.map → p-4d72b179.entry.js.map} +1 -1
- package/dist/ui-library/{p-d9586999.entry.js → p-4de4ee7a.entry.js} +2 -2
- package/dist/ui-library/{p-d9586999.entry.js.map → p-4de4ee7a.entry.js.map} +1 -1
- package/dist/ui-library/p-4edde816.entry.js +2 -0
- package/dist/ui-library/p-4edde816.entry.js.map +1 -0
- package/dist/ui-library/p-4f129bb3.entry.js +2 -0
- package/dist/ui-library/p-4f129bb3.entry.js.map +1 -0
- package/dist/ui-library/{p-3b5a76ea.entry.js → p-53867d77.entry.js} +2 -2
- package/dist/ui-library/{p-3b5a76ea.entry.js.map → p-53867d77.entry.js.map} +1 -1
- package/dist/ui-library/p-57ea4cb7.entry.js +2 -0
- package/dist/ui-library/p-57ea4cb7.entry.js.map +1 -0
- package/dist/ui-library/{p-a398e3eb.entry.js → p-5ece7986.entry.js} +2 -2
- package/dist/ui-library/{p-a398e3eb.entry.js.map → p-5ece7986.entry.js.map} +1 -1
- package/dist/ui-library/p-5f491974.entry.js +2 -0
- package/dist/ui-library/p-5f491974.entry.js.map +1 -0
- package/dist/ui-library/{p-b60c20aa.entry.js → p-5fc9cd7b.entry.js} +2 -2
- package/dist/ui-library/{p-b60c20aa.entry.js.map → p-5fc9cd7b.entry.js.map} +1 -1
- package/dist/ui-library/{p-4bc7bbdb.entry.js → p-618bf750.entry.js} +2 -2
- package/dist/ui-library/{p-4bc7bbdb.entry.js.map → p-618bf750.entry.js.map} +1 -1
- package/dist/ui-library/{p-63acceb6.entry.js → p-62a1f514.entry.js} +2 -2
- package/dist/ui-library/{p-63acceb6.entry.js.map → p-62a1f514.entry.js.map} +1 -1
- package/dist/ui-library/p-651293e7.js.map +1 -1
- package/dist/ui-library/p-6513b8ce.entry.js +2 -0
- package/dist/ui-library/{p-189602e4.entry.js.map → p-6513b8ce.entry.js.map} +1 -1
- package/dist/ui-library/{p-47c84904.entry.js → p-6795e0a9.entry.js} +2 -2
- package/dist/ui-library/{p-47c84904.entry.js.map → p-6795e0a9.entry.js.map} +1 -1
- package/dist/ui-library/p-6ec126f7.entry.js +2 -0
- package/dist/ui-library/{p-9cb83369.entry.js.map → p-6ec126f7.entry.js.map} +1 -1
- package/dist/ui-library/p-705e3612.entry.js +2 -0
- package/dist/ui-library/p-705e3612.entry.js.map +1 -0
- package/dist/ui-library/{p-06ba653e.entry.js → p-70fac778.entry.js} +2 -2
- package/dist/ui-library/{p-06ba653e.entry.js.map → p-70fac778.entry.js.map} +1 -1
- package/dist/ui-library/{p-037afc74.entry.js → p-7afdff5c.entry.js} +2 -2
- package/dist/ui-library/p-7afdff5c.entry.js.map +1 -0
- package/dist/ui-library/{p-4963f03c.entry.js → p-7eb9ae75.entry.js} +2 -2
- package/dist/ui-library/{p-4963f03c.entry.js.map → p-7eb9ae75.entry.js.map} +1 -1
- package/dist/ui-library/p-7f856f00.js.map +1 -1
- package/dist/ui-library/p-8227aaed.js.map +1 -1
- package/dist/ui-library/p-842b492e.js.map +1 -1
- package/dist/ui-library/p-862d474e.js.map +1 -1
- package/dist/ui-library/{p-6f9153be.entry.js → p-870139dc.entry.js} +2 -2
- package/dist/ui-library/{p-6f9153be.entry.js.map → p-870139dc.entry.js.map} +1 -1
- package/dist/ui-library/p-8bfb4bfc.js.map +1 -1
- package/dist/ui-library/{p-605bdd81.js → p-a04460e3.js} +2 -2
- package/dist/ui-library/{p-605bdd81.js.map → p-a04460e3.js.map} +1 -1
- package/dist/ui-library/p-a1502802.js.map +1 -1
- package/dist/ui-library/{p-07c8de65.entry.js → p-a20a702a.entry.js} +2 -2
- package/dist/ui-library/{p-07c8de65.entry.js.map → p-a20a702a.entry.js.map} +1 -1
- package/dist/ui-library/p-adc65fc8.entry.js +2 -0
- package/dist/ui-library/p-adc65fc8.entry.js.map +1 -0
- package/dist/ui-library/{p-0c129b61.entry.js → p-afb15ea4.entry.js} +2 -2
- package/dist/ui-library/{p-0c129b61.entry.js.map → p-afb15ea4.entry.js.map} +1 -1
- package/dist/ui-library/p-b361d5da.entry.js +2 -0
- package/dist/ui-library/{p-32e421a3.entry.js.map → p-b361d5da.entry.js.map} +1 -1
- package/dist/ui-library/{p-99f6fe01.entry.js → p-bfb398c6.entry.js} +2 -2
- package/dist/ui-library/{p-99f6fe01.entry.js.map → p-bfb398c6.entry.js.map} +1 -1
- package/dist/ui-library/{p-d88b9c16.entry.js → p-cd65e3b2.entry.js} +2 -2
- package/dist/ui-library/{p-d88b9c16.entry.js.map → p-cd65e3b2.entry.js.map} +1 -1
- package/dist/ui-library/{p-a9e009af.entry.js → p-cd79700c.entry.js} +2 -2
- package/dist/ui-library/{p-a9e009af.entry.js.map → p-cd79700c.entry.js.map} +1 -1
- package/dist/ui-library/{p-419ed003.entry.js → p-cdc9224d.entry.js} +2 -2
- package/dist/ui-library/{p-419ed003.entry.js.map → p-cdc9224d.entry.js.map} +1 -1
- package/dist/ui-library/p-cdc94cd6.entry.js +2 -0
- package/dist/ui-library/p-cdc94cd6.entry.js.map +1 -0
- package/dist/ui-library/{p-8f1d3461.entry.js → p-d46acf21.entry.js} +2 -2
- package/dist/ui-library/{p-8f1d3461.entry.js.map → p-d46acf21.entry.js.map} +1 -1
- package/dist/ui-library/p-d67b8482.entry.js +2 -0
- package/dist/ui-library/{p-030fa1fa.entry.js.map → p-d67b8482.entry.js.map} +1 -1
- package/dist/ui-library/{p-1adc26f2.entry.js → p-db193a32.entry.js} +2 -2
- package/dist/ui-library/{p-1adc26f2.entry.js.map → p-db193a32.entry.js.map} +1 -1
- package/dist/ui-library/p-e080d5b6.js.map +1 -1
- package/dist/ui-library/p-e1255160.js.map +1 -1
- package/dist/ui-library/{p-fe89a7c4.entry.js → p-e1529ef6.entry.js} +2 -2
- package/dist/ui-library/{p-fe89a7c4.entry.js.map → p-e1529ef6.entry.js.map} +1 -1
- package/dist/ui-library/{p-e9b8ad98.entry.js → p-e181944f.entry.js} +2 -2
- package/dist/ui-library/{p-e9b8ad98.entry.js.map → p-e181944f.entry.js.map} +1 -1
- package/dist/ui-library/{p-d1a2f84b.entry.js → p-e6efc08a.entry.js} +2 -2
- package/dist/ui-library/{p-d1a2f84b.entry.js.map → p-e6efc08a.entry.js.map} +1 -1
- package/dist/ui-library/p-ea854ec5.entry.js +2 -0
- package/dist/ui-library/p-ea854ec5.entry.js.map +1 -0
- package/dist/ui-library/{p-63ee5e7e.entry.js → p-f12b22bc.entry.js} +2 -2
- package/dist/ui-library/{p-63ee5e7e.entry.js.map → p-f12b22bc.entry.js.map} +1 -1
- package/dist/ui-library/p-f136a6b2.js.map +1 -1
- package/dist/ui-library/p-f9a1f6ab.entry.js +2 -0
- package/dist/ui-library/p-f9a1f6ab.entry.js.map +1 -0
- package/dist/ui-library/{p-cf109cbf.entry.js → p-ffce31da.entry.js} +2 -2
- package/dist/ui-library/{p-cf109cbf.entry.js.map → p-ffce31da.entry.js.map} +1 -1
- package/dist/ui-library/ui-library.css +1 -1
- package/dist/ui-library/ui-library.esm.js +1 -1
- package/dist/ui-library/ui-library.esm.js.map +1 -1
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/package.json +6 -18
- package/dist/cjs/index-1f707a55.js +0 -2718
- package/dist/cjs/index-1f707a55.js.map +0 -1
- package/dist/cjs/six-checkbox_2.cjs.entry.js.map +0 -1
- package/dist/cjs/six-dropdown_2.cjs.entry.js.map +0 -1
- package/dist/collection/components/six-alert/test/six-alert.spec.js +0 -25
- package/dist/collection/components/six-alert/test/six-alert.spec.js.map +0 -1
- package/dist/collection/components/six-avatar/test/six-avatar.spec.js +0 -26
- package/dist/collection/components/six-avatar/test/six-avatar.spec.js.map +0 -1
- package/dist/collection/components/six-badge/test/six-badge.spec.js +0 -20
- package/dist/collection/components/six-badge/test/six-badge.spec.js.map +0 -1
- package/dist/collection/components/six-button/test/six-button.spec.js +0 -69
- package/dist/collection/components/six-button/test/six-button.spec.js.map +0 -1
- package/dist/collection/components/six-card/test/six-card.spec.js +0 -18
- package/dist/collection/components/six-card/test/six-card.spec.js.map +0 -1
- package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js +0 -83
- package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js.map +0 -1
- package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js +0 -26
- package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js.map +0 -1
- package/dist/collection/components/six-details/test/six-details.spec.js +0 -36
- package/dist/collection/components/six-details/test/six-details.spec.js.map +0 -1
- package/dist/collection/components/six-dialog/test/six-dialog.spec.js +0 -34
- package/dist/collection/components/six-dialog/test/six-dialog.spec.js.map +0 -1
- package/dist/collection/components/six-drawer/test/six-drawer.spec.js +0 -34
- package/dist/collection/components/six-drawer/test/six-drawer.spec.js.map +0 -1
- package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +0 -147
- package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +0 -1
- package/dist/collection/components/six-error-page/test/six-error-page.spec.js +0 -240
- package/dist/collection/components/six-error-page/test/six-error-page.spec.js.map +0 -1
- package/dist/collection/components/six-file-list/test/six-file-list.spec.js +0 -67
- package/dist/collection/components/six-file-list/test/six-file-list.spec.js.map +0 -1
- package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js +0 -169
- package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js.map +0 -1
- package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +0 -266
- package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +0 -1
- package/dist/collection/components/six-footer/test/six-footer.spec.js +0 -21
- package/dist/collection/components/six-footer/test/six-footer.spec.js.map +0 -1
- package/dist/collection/components/six-group-label/test/six-group-label.spec.js +0 -45
- package/dist/collection/components/six-group-label/test/six-group-label.spec.js.map +0 -1
- package/dist/collection/components/six-icon/test/six-icon.spec.js +0 -20
- package/dist/collection/components/six-icon/test/six-icon.spec.js.map +0 -1
- package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js +0 -23
- package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js.map +0 -1
- package/dist/collection/components/six-input/test/six-input.spec.js +0 -39
- package/dist/collection/components/six-input/test/six-input.spec.js.map +0 -1
- package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js +0 -90
- package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js.map +0 -1
- package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +0 -196
- package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +0 -1
- package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js +0 -18
- package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js.map +0 -1
- package/dist/collection/components/six-main-container/test/six-main-container.spec.js +0 -22
- package/dist/collection/components/six-main-container/test/six-main-container.spec.js.map +0 -1
- package/dist/collection/components/six-menu/test/six-menu.spec.js +0 -93
- package/dist/collection/components/six-menu/test/six-menu.spec.js.map +0 -1
- package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js +0 -18
- package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js.map +0 -1
- package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js +0 -33
- package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js.map +0 -1
- package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js +0 -20
- package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js.map +0 -1
- package/dist/collection/components/six-picto/test/six-picto.spec.js +0 -33
- package/dist/collection/components/six-picto/test/six-picto.spec.js.map +0 -1
- package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js +0 -24
- package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js.map +0 -1
- package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js +0 -26
- package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js.map +0 -1
- package/dist/collection/components/six-radio/test/six-radio.spec.js +0 -63
- package/dist/collection/components/six-radio/test/six-radio.spec.js.map +0 -1
- package/dist/collection/components/six-range/test/six-range.spec.js +0 -34
- package/dist/collection/components/six-range/test/six-range.spec.js.map +0 -1
- package/dist/collection/components/six-root/test/six-root.spec.js +0 -36
- package/dist/collection/components/six-root/test/six-root.spec.js.map +0 -1
- package/dist/collection/components/six-search-field/test/six-search-field.spec.js +0 -22
- package/dist/collection/components/six-search-field/test/six-search-field.spec.js.map +0 -1
- package/dist/collection/components/six-select/test/six-select.spec.js +0 -102
- package/dist/collection/components/six-select/test/six-select.spec.js.map +0 -1
- package/dist/collection/components/six-select/test/util.spec.js +0 -103
- package/dist/collection/components/six-select/test/util.spec.js.map +0 -1
- package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js +0 -22
- package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js.map +0 -1
- package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js +0 -50
- package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js.map +0 -1
- package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js +0 -53
- package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js.map +0 -1
- package/dist/collection/components/six-spinner/test/six-spinner.spec.js +0 -37
- package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +0 -1
- package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js +0 -117
- package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js.map +0 -1
- package/dist/collection/components/six-switch/test/six-switch.spec.js +0 -73
- package/dist/collection/components/six-switch/test/six-switch.spec.js.map +0 -1
- package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js +0 -20
- package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js.map +0 -1
- package/dist/collection/components/six-tag/test/six-tag.spec.js +0 -54
- package/dist/collection/components/six-tag/test/six-tag.spec.js.map +0 -1
- package/dist/collection/components/six-textarea/test/six-textarea.spec.js +0 -119
- package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +0 -1
- package/dist/collection/components/six-tile/test/six-tile.spec.js +0 -69
- package/dist/collection/components/six-tile/test/six-tile.spec.js.map +0 -1
- package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js +0 -496
- package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +0 -1
- package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js +0 -28
- package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js.map +0 -1
- package/dist/collection/files/file-list.json +0 -308
- package/dist/collection/files/noto-sans-all-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-900-normal.woff +0 -0
- package/dist/collection/utils/date-util.spec.js +0 -995
- package/dist/collection/utils/date-util.spec.js.map +0 -1
- package/dist/collection/utils/scroll.spec.js +0 -122
- package/dist/collection/utils/scroll.spec.js.map +0 -1
- package/dist/collection/utils/time.util.spec.js +0 -368
- package/dist/collection/utils/time.util.spec.js.map +0 -1
- package/dist/esm/index-5390c1d6.js +0 -2689
- package/dist/esm/index-5390c1d6.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/six-checkbox_2.entry.js.map +0 -1
- package/dist/esm/six-dropdown_2.entry.js.map +0 -1
- package/dist/ui-library/files/file-list.json +0 -308
- package/dist/ui-library/files/noto-sans-all-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-900-normal.woff +0 -0
- package/dist/ui-library/p-030fa1fa.entry.js +0 -2
- package/dist/ui-library/p-037afc74.entry.js.map +0 -1
- package/dist/ui-library/p-047d02ad.entry.js +0 -2
- package/dist/ui-library/p-047d02ad.entry.js.map +0 -1
- package/dist/ui-library/p-05eb1bab.js +0 -3
- package/dist/ui-library/p-05eb1bab.js.map +0 -1
- package/dist/ui-library/p-11344bb8.entry.js +0 -2
- package/dist/ui-library/p-14e5fccc.entry.js +0 -2
- package/dist/ui-library/p-14e5fccc.entry.js.map +0 -1
- package/dist/ui-library/p-189602e4.entry.js +0 -2
- package/dist/ui-library/p-32e421a3.entry.js +0 -2
- package/dist/ui-library/p-347e568f.entry.js +0 -2
- package/dist/ui-library/p-36d5f98a.entry.js +0 -2
- package/dist/ui-library/p-37433242.entry.js +0 -2
- package/dist/ui-library/p-37433242.entry.js.map +0 -1
- package/dist/ui-library/p-6b40c40c.entry.js +0 -2
- package/dist/ui-library/p-6b40c40c.entry.js.map +0 -1
- package/dist/ui-library/p-7c18b8ca.entry.js +0 -2
- package/dist/ui-library/p-96d441e9.entry.js +0 -2
- package/dist/ui-library/p-96d441e9.entry.js.map +0 -1
- package/dist/ui-library/p-9cb83369.entry.js +0 -2
- package/dist/ui-library/p-e14d78e9.entry.js +0 -2
- package/dist/ui-library/p-e14d78e9.entry.js.map +0 -1
- package/dist/ui-library/p-ebbe9bdc.entry.js +0 -2
- package/dist/ui-library/p-ebbe9bdc.entry.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isString","value","isNil","i18nDate","en","months","monthsShort","monthsShortGrouped","weekdays","weekdaysShort","weekdaysMin","de","fr","it","es","now","Date","removeTime","date","getFullYear","getMonth","getDate","isValidDate","isNaN","getTime","toString","year","Error","month","day","hours","getHours","minutes","getMinutes","seconds","getSeconds","getFirstDayOfTheWeek","weekdayDiff","setDate","getDay","isSameYear","a","b","isSameMonth","isSameDay","isSameWeek","isValidDateString","datestring","format","length","getDateParts","toDate","isInRange","minDate","maxDate","lookAhead","iFormat","match","increment","followingCharacterMatches","charAt","hasProperLength","formatNumber","len","num","String","formatDate","output","FORMATTING_TOKENS","TWO_NUMERICS_REGEX","FOUR_NUMERICS_REGEX","NON_NUMERIC_REGEX","YEAR","MONTH","DAY","HOUR","MINUTE","SECOND","parseFlags","addParseFlag","token","regex","callback","tokens","Array","isArray","func","input","parseInt","forEach","key","cent","Math","floor","getFullInputArray","backupDate","result","backupArr","useBackup","i","undefined","createDate","hour","minute","second","isFinite","setFullYear","makeParser","dateString","mark","parseTo","word","replace","indexOf","substr","parser","exec","obj","Object","assign","getCleanDateString","dirtyDateString","separator","split","map","s","join","inputArray","e","NaN","createCalendarGrid","calendarGridArguments","firstDateOfBox","allowedDates","dateFormat","selectedDate","pointerDate","weekDatePointer","dayDatePointer","calendar","row","display","label","isToday","isSelected","isDisabled","isOutdated","rangeAround","number","range","itemsPerGroup","keys","n","reduce","curr","item","index","push","SixDateFormats","MonthSelection","monthSelectionParams","locale","isSelectedMonth","_a","findIndex","m","h","class","part","onClick","onClickMonthCell","DaySelection","daySelectionParams","weekday","calendarGrid","cell","onClickDateCell","YearSelection","yearSelectionParams","yearSelection","onClickYearCell","sixDatepickerCss","SixDatepickerStyle0","NUMBER_OF_YEARS_SHOWN","MIN_POPUP_HEIGHT","SelectionMode","SixDatepicker","this","eventListeners","EventListeners","previousUnit","selectionMode","previousMonth","previousYear","previousYearGroup","nextUnit","nextMonth","nextYear","nextYearGroup","handleDocumentKeyDown","event","keyboardEvent","open","stopPropagation","closePopup","inputElement","setFocus","handleDocumentMouseDown","path","composedPath","includes","container","handleClearClick","async","select","sixClear","emit","onTimepickerChange","sixTimepickerChange","time","detail","newDate","setHours","updateValue","updatePointerDates","selectedMonth","monthShort","handleInputChange","inputValue","inputValueDate","updateIfChanged","datesOnly","dateAsString","handleOnBlur","sixSelect","currentDate","_b","_c","sixBlur","getCurrentDateAsPointer","type","DDMMYYY_DOT","DEFAULT_DEBOUNCE_FAST","debounceChanged","debounceEvent","debounce","valueChanged","console","warn","resizeHandler","updateDropdownDirection","moveOpenHoistedPopup","adjustPopupPosition","scrollHandler","movePopup","hoist","popup","wrapper","containingElement","host","options","min","max","isDropDownContentUp","calcIsDropDownContentUp","getMonthStringForIndex","openCalendar","disabled","setupEventListenersForOpenPopup","add","document","inline","remove","getPointerDate","differsFromPointerDate","defaultDate","closeOnSelect","componentWillLoad","componentDidLoad","componentDidRender","renderHeader","viewBox","width","height","d","points","renderBody","renderCustomIcon","icon","hasSlot","name","size","slot","prefix","iconPosition","renderClearable","clearable","tabindex","render","ref","el","placeholder","readonly","required","errorText","errorTextCount","invalid","datepicker__popup","placement","adjustPopupForHoisting","isUp","adjustPopupForSmallScreens","connectedCallback","forward","disconnectedCallback","removeAll"],"sources":["src/utils/type-check.ts","src/utils/date-util.ts","src/components/six-datepicker/six-date-formats.tsx","src/components/six-datepicker/components/month-selection.tsx","src/components/six-datepicker/components/day-selection.tsx","src/components/six-datepicker/components/year-selection.tsx","src/components/six-datepicker/six-datepicker.scss?tag=six-datepicker&encapsulation=shadow","src/components/six-datepicker/six-datepicker.tsx"],"sourcesContent":["export const isString = (value: unknown): value is string => typeof value === 'string';\n\n// only use '==' instead of '===' to also catch undefined and void\nexport const isNil = (value: unknown): value is undefined | null => value == null;\n\nexport const isDate = (value: unknown): value is Date => value instanceof Date;\n","/* eslint-disable */\n// @ts-nocheck\n\nimport { isDate, isNil, isString } from './type-check';\nimport { SixDateFormats } from '../components/six-datepicker/six-date-formats';\nimport { CalendarCell } from '../components/six-datepicker/six-datepicker';\n\nexport type DateLocale = typeof i18nDate.en;\nexport const i18nDate = {\n en: {\n months: [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n ],\n monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n monthsShortGrouped: [\n ['Jan', 'Feb', 'Mar', 'Apr'],\n ['May', 'Jun', 'Jul', 'Aug'],\n ['Sep', 'Oct', 'Nov', 'Dec'],\n ],\n weekdays: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],\n weekdaysShort: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],\n weekdaysMin: ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'],\n },\n de: {\n months: [\n 'Januar',\n 'Februar',\n 'März',\n 'April',\n 'Mai',\n 'Juni',\n 'Juli',\n 'August',\n 'September',\n 'Oktober',\n 'November',\n 'Dezember',\n ],\n monthsShort: ['Jan.', 'Feb.', 'März', 'Apr.', 'Mai', 'Juni', 'Juli', 'Aug.', 'Sep.', 'Okt.', 'Nov.', 'Dez.'],\n monthsShortGrouped: [\n ['Jan.', 'Feb.', 'März', 'Apr.'],\n ['Mai', 'Juni', 'Juli', 'Aug.'],\n ['Sep.', 'Okt.', 'Nov.', 'Dez.'],\n ],\n weekdays: ['Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag', 'Sonntag'],\n weekdaysShort: ['Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.', 'So.'],\n weekdaysMin: ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'],\n },\n fr: {\n months: [\n 'janvier',\n 'février',\n 'mars',\n 'avril',\n 'mai',\n 'juin',\n 'juillet',\n 'août',\n 'septembre',\n 'octobre',\n 'novembre',\n 'décembre',\n ],\n monthsShort: ['janv.', 'févr.', 'mars', 'avr.', 'mai', 'juin', 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'],\n monthsShortGrouped: [\n ['janv.', 'févr.', 'mars', 'avr.'],\n ['mai', 'juin', 'juil.', 'août'],\n ['sept.', 'oct.', 'nov.', 'déc.'],\n ],\n weekdays: ['lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi', 'dimanche'],\n weekdaysShort: ['lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.', 'dim.'],\n weekdaysMin: ['lu', 'ma', 'me', 'je', 've', 'sa', 'di'],\n },\n it: {\n months: [\n 'gennaio',\n 'febbraio',\n 'marzo',\n 'aprile',\n 'maggio',\n 'giugno',\n 'luglio',\n 'agosto',\n 'settembre',\n 'ottobre',\n 'novembre',\n 'dicembre',\n ],\n monthsShort: ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'],\n monthsShortGrouped: [\n ['gen', 'feb', 'mar', 'apr'],\n ['mag', 'giu', 'lug', 'ago'],\n ['set', 'ott', 'nov', 'dic'],\n ],\n weekdays: ['lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato', 'domenica'],\n weekdaysShort: ['lun', 'mar', 'mer', 'gio', 'ven', 'sab', 'dom'],\n weekdaysMin: ['lu', 'ma', 'me', 'gi', 've', 'sa', 'do'],\n },\n es: {\n months: [\n 'enero',\n 'febrero',\n 'marzo',\n 'abril',\n 'mayo',\n 'junio',\n 'julio',\n 'agosto',\n 'septiembre',\n 'octubre',\n 'noviembre',\n 'diciembre',\n ],\n monthsShort: ['ene', 'feb', 'mar', 'abr', 'may', 'jun', 'jul', 'ago', 'sep', 'oct', 'nov', 'dic'],\n monthsShortGrouped: [\n ['ene', 'feb', 'mar', 'abr'],\n ['may', 'jun', 'jul', 'ago'],\n ['sep', 'oct', 'nov', 'dic'],\n ],\n weekdays: ['lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado', 'domingo'],\n weekdaysShort: ['lun', 'mar', 'mié', 'jue', 'vie', 'sáb', 'dom'],\n weekdaysMin: ['lu', 'ma', 'mi', 'ju', 'vi', 'sa', 'do'],\n },\n};\n\n/**\n * Returns a JS Date instance of the exact moment\n *\n * ```typescript\n * const date = now()\n * // Wed Mar 10 2021 20:30:32 GMT+0100 (Central European Standard Time)\n * ```\n */\nexport const now = () => new Date();\n\nexport const removeTime = (date: Date) => new Date(date.getFullYear(), date.getMonth(), date.getDate());\n\nexport const pad = (value: number) => String(value).padStart(2, '0');\n\n/**\n * Returns `true` if the given date is valid\n */\nexport const isValidDate = (value: unknown): boolean => {\n return value instanceof Date && !isNaN(value.getTime()) && new Date(value).toString() !== 'Invalid Date';\n};\n\n/**\n * Returns the year number of the given date\n *\n * ```typescript\n * year(new Date(2020, 0, 1)) // 2020\n * ```\n */\nexport const year = (date: Date | undefined): number => {\n if (date && isValidDate(date)) {\n return date.getFullYear();\n }\n throw new Error('Not a valid date');\n};\n\n/**\n * Returns the month number of the given date\n *\n * ```typescript\n * month(new Date(2020, 0, 1)) // 0\n * ```\n */\nexport const month = (date: Date | undefined): number => {\n if (date && isValidDate(date)) {\n return date.getMonth();\n }\n throw new Error('Not a valid date');\n};\n\n/**\n * Returns the day number of the given date\n *\n * ```typescript\n * day(new Date(2020, 0, 1)) // 1\n * ```\n */\nexport const day = (date: Date | undefined): number => {\n if (date && isValidDate(date)) {\n return date.getDate();\n }\n throw new Error('Not a valid date');\n};\n\n/**\n * Returns the hours of the given date\n */\nexport const hours = (date: Date | undefined): number => {\n if (date && isValidDate(date)) {\n return date.getHours();\n }\n throw new Error('Not a valid date');\n};\n\n/**\n * Returns the minutes of the given date\n */\nexport const minutes = (date: Date | undefined): number => {\n if (date && isValidDate(date)) {\n return date.getMinutes();\n }\n throw new Error('Not a valid date');\n};\n\n/**\n * Returns the seconds of the given date\n */\nexport const seconds = (date: Date | undefined): number => {\n if (date && isValidDate(date)) {\n return date.getSeconds();\n }\n throw new Error('Not a valid date');\n};\n\n/**\n * Returns the first day of the week of the given date.\n */\nexport const getFirstDayOfTheWeek = (date: Date) => {\n const weekdayDiff = [6, 0, 1, 2, 3, 4, 5];\n const day = new Date(date);\n day.setDate(day.getDate() - weekdayDiff[day.getDay()]);\n return day;\n};\n\n/**\n * Returns `true` when the year of the dates are the same\n */\nexport const isSameYear = (a: Date | undefined, b: Date | undefined) => a?.getFullYear() === b?.getFullYear();\n\n/**\n * Returns `true` when the month of the dates are the same\n */\nexport const isSameMonth = (a: Date | undefined, b: Date | undefined) =>\n isSameYear(a, b) && a?.getMonth() === b?.getMonth();\n\n/**\n * Returns `true` when the day of the dates are the same\n */\nexport const isSameDay = (a: Date | undefined, b: Date | undefined) =>\n isSameMonth(a, b) && a?.getDate() === b?.getDate();\n\n/**\n * Returns `true` when the week of the dates are the same\n */\nexport const isSameWeek = (a: Date, b: Date) => isSameDay(getFirstDayOfTheWeek(a), getFirstDayOfTheWeek(b));\n\nconst localDatetime = (date: Date) => new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));\n\n/**\n * Returns the ISO string `yyyy-mm-dd` of the given date\n *\n * ```typescript\n * isoString(new Date(2020, 0, 13)) // '2020-01-13'\n * ```\n */\nexport const isoString = (date: Date | undefined): string => {\n if (isNil(date) || Date.toString() === 'Invalid Date') {\n return '';\n }\n\n return `${year(date)}-${pad(month(date) + 1)}-${pad(day(date))}`;\n};\n\n/**\n * Returns the ISO string `yyyy-mm-dd` of the given parameters year, month and day\n *\n * ```typescript\n * newDateString(2020, 0, 13) // '2020-01-13'\n * or\n * newDateString(new Date(2020, 0, 13)) // '2020-01-13'\n * ```\n */\nexport const newDateString = (yearOrDate: Date | number, month?: number, day?: number): string => {\n let date;\n if (isDate(yearOrDate)) {\n date = localDatetime(yearOrDate);\n } else {\n date = new Date(Date.UTC(yearOrDate, (month as number) - 1, day as number));\n }\n\n return isoString(date);\n};\n\n/**\n * Returns `true` if the given datestring is valid\n */\nexport const isValidDateString = (datestring: string | undefined, format: string) => {\n if (!isString(datestring) || !isString(format)) {\n return false;\n }\n\n if (datestring.length < 6 || format.length < 6) {\n return false;\n }\n\n const { day, month } = getDateParts(datestring, format);\n\n if (day > 31 || month > 11 || day <= 0 || month < 0) {\n return false;\n }\n\n const date = toDate(datestring, format);\n\n if (isNil(date)) {\n return false;\n }\n\n return date.toString() !== 'Invalid Date';\n};\n\n/**\n * Returns `true` when the given date is not smaller than the minDate and not bigger than the maxDate.\n *\n * ```typescript\n * isInRange(new Date(2020, 1, 1), new Date(2020, 0, 1), new Date(2020, 2, 1)) // true\n * ```\n */\nexport const isInRange = (date: Date | undefined, minDate: Date | undefined, maxDate: Date | undefined): boolean => {\n if (!date) {\n return true;\n }\n\n if (minDate && date < minDate) {\n return false;\n }\n\n if (maxDate && maxDate < date) {\n return false;\n }\n\n return true;\n};\n\nconst validateTwoDates = (\n first: any,\n second: Date | string | undefined,\n validateFn: (irst: Date, second: Date) => boolean\n) => {\n if (isNil(first) && isNil(second)) {\n return false;\n }\n\n const _first: Date = new Date(first as string | Date);\n const _second: Date = new Date(second as string | Date);\n\n if (!isValidDate(_first) || !isValidDate(_second)) {\n return false;\n }\n\n return validateFn(_first, _second);\n};\n\n/**\n * Returns `true` when the given date is not smaller than the before date.\n *\n * ```typescript\n * isBefore(new Date(2020, 1, 1), new Date(2020, 3, 1)) // true\n * ```\n */\nexport const isBefore = (date: any, beforeDate: Date | string | undefined): boolean =>\n validateTwoDates(date, beforeDate, (first, second) => first < second);\n\n/**\n * Returns `true` when the given date is not smaller than the before date.\n *\n * ```typescript\n * isAfter(new Date(2020, 5, 1), new Date(2020, 3, 1)) // true\n * ```\n */\nexport const isAfter = (date: any, afterDate: Date | string | undefined): boolean =>\n validateTwoDates(date, afterDate, (first, second) => first > second);\n\n/**\n * Increases the year of a date and retunrs the result\n *\n * ```typescript\n * increaseYear(new Date(2020, 0, 1), 1) // 2021\n * ```\n */\nexport const increaseYear = (date: Date, years: number): number => year(date) + years;\n\n/**\n * Decreases the year of a date and retunrs the result\n *\n * ```typescript\n * decreaseYear(new Date(2020, 0, 1), 1) // 2019\n * ```\n */\nexport const decreaseYear = (date: Date, years: number): number => year(date) - years;\n\nconst lookAhead = (iFormat: number, format: string, match: string, length = 2) => {\n const increment = length - 1;\n const followingCharacterMatches = format.charAt(iFormat + increment) === match;\n const hasProperLength = iFormat + increment < format.length;\n return hasProperLength && followingCharacterMatches;\n};\n\nconst formatNumber = (value, len) => {\n let num = String(value);\n\n while (num.length < len) {\n num = '0' + num;\n }\n\n return num;\n};\n\nexport const formatDate = (date: Date | undefined | null, format: string): string => {\n if (date == null) {\n return '';\n }\n\n let output = '';\n\n for (let iFormat = 0; iFormat < format.length; iFormat++) {\n switch (format.charAt(iFormat)) {\n case 'd':\n if (lookAhead(iFormat, format, 'd')) {\n output += formatNumber(date.getDate(), 2);\n iFormat++;\n } else {\n output += String(date.getDate());\n }\n break;\n case 'm':\n if (lookAhead(iFormat, format, 'm')) {\n output += formatNumber(date.getMonth() + 1, 2);\n iFormat++;\n } else {\n output += String(date.getMonth() + 1);\n }\n break;\n case 'y':\n if (lookAhead(iFormat, format, 'y', 4)) {\n iFormat += 3;\n output += date.getFullYear();\n } else {\n output += (date.getFullYear() % 100 < 10 ? '0' : '') + (date.getFullYear() % 100);\n iFormat++;\n }\n break;\n case 'h':\n if (lookAhead(iFormat, format, 'h')) {\n output += formatNumber(date.getHours(), 2);\n iFormat++;\n } else {\n output += String(date.getHours());\n }\n break;\n case 'M':\n if (lookAhead(iFormat, format, 'M')) {\n output += formatNumber(date.getMinutes(), 2);\n iFormat++;\n } else {\n output += String(date.getMinutes());\n }\n break;\n case 's':\n if (lookAhead(iFormat, format, 's')) {\n output += formatNumber(date.getSeconds(), 2);\n iFormat++;\n } else {\n output += String(date.getSeconds());\n }\n break;\n default:\n output += format.charAt(iFormat);\n }\n }\n return output;\n};\n\nconst daylightSavingAdjust = (date): Date => {\n if (!date) {\n return null;\n }\n\n date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);\n\n return date;\n};\n\nconst getDaysCountInMonth = (month: number, year: number) =>\n 32 - daylightSavingAdjust(new Date(year, month, 32)).getDate();\n\nexport const parseDate = (value: any, format: string, locale: string): Date => {\n if (format == null || value == null) {\n throw 'Invalid arguments';\n }\n\n value = typeof value === 'object' ? value.toString() : value + '';\n if (value === '') {\n return null;\n }\n\n let iFormat;\n let dim;\n let extra;\n let iValue = 0;\n let shortYearCutoff = 100;\n let year = -1;\n let month = -1;\n let day = -1;\n let doy = -1;\n let literal = false;\n let date: Date;\n let lookAhead = (match: string, len = 2) => {\n const increment = len - 1;\n let matches = iFormat + increment < format.length && format.charAt(iFormat + increment) === match;\n if (matches) {\n iFormat += increment;\n }\n return matches;\n };\n let getNumber = (match, len = 2) => {\n let isDoubled = lookAhead(match, len),\n size = match === '@' ? 14 : match === '!' ? 20 : match === 'y' && isDoubled ? 4 : match === 'o' ? 3 : 2,\n minSize = match === 'y' ? size : 1,\n digits = new RegExp('^\\\\d{' + minSize + ',' + size + '}'),\n num = value.substring(iValue).match(digits);\n if (!num) {\n throw 'Missing number at position ' + iValue;\n }\n iValue += num[0].length;\n return parseInt(num[0], 10);\n };\n let getName = (match, shortNames, longNames) => {\n let index = -1;\n let arr = lookAhead(match) ? longNames : shortNames;\n let names = [];\n\n for (let i = 0; i < arr.length; i++) {\n names.push([i, arr[i]]);\n }\n names.sort((a, b) => {\n return -(a[1].length - b[1].length);\n });\n\n for (let i = 0; i < names.length; i++) {\n let name = names[i][1];\n if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {\n index = names[i][0];\n iValue += name.length;\n break;\n }\n }\n\n if (index !== -1) {\n return index + 1;\n } else {\n throw 'Unknown name at position ' + iValue;\n }\n };\n let checkLiteral = () => {\n if (value.charAt(iValue) !== format.charAt(iFormat)) {\n throw 'Unexpected literal at position ' + iValue;\n }\n iValue++;\n };\n\n for (iFormat = 0; iFormat < format.length; iFormat++) {\n if (literal) {\n if (format.charAt(iFormat) === \"'\" && !lookAhead(\"'\")) {\n literal = false;\n } else {\n checkLiteral();\n }\n } else {\n switch (format.charAt(iFormat)) {\n case 'd':\n day = getNumber('d');\n break;\n case 'D':\n getName('D', i18nDate[locale].weekdaysShort, i18nDate[locale].weekdays);\n break;\n case 'm':\n month = getNumber('m');\n break;\n case 'M':\n month = getName('M', i18nDate[locale].monthsShort, i18nDate[locale].months);\n break;\n case 'y':\n year = getNumber('y', 4);\n break;\n default:\n checkLiteral();\n }\n }\n }\n\n if (iValue < value.length) {\n extra = value.substr(iValue);\n if (!/^\\s+/.test(extra)) {\n throw 'Extra/unparsed characters found in date: ' + extra;\n }\n }\n\n if (year === -1) {\n year = new Date().getFullYear();\n } else if (year < 100) {\n year += new Date().getFullYear() - (new Date().getFullYear() % 100) + (year <= shortYearCutoff ? 0 : -100);\n }\n\n if (doy > -1) {\n month = 1;\n day = doy;\n do {\n dim = getDaysCountInMonth(year, month - 1);\n if (day <= dim) {\n break;\n }\n month++;\n day -= dim;\n } while (true);\n }\n\n date = daylightSavingAdjust(new Date(year, month - 1, day));\n if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {\n throw 'Invalid date'; // E.g. 31/02/00\n }\n\n return date;\n};\n\nconst FORMATTING_TOKENS = /(\\[[^\\[]*\\])|(mm|dd|yyyy|yy|hh|MM|ss|.)/g;\n\nconst TWO_NUMERICS_REGEX = /\\d\\d/; // 00 - 99\nconst FOUR_NUMERICS_REGEX = /\\d{4}/; // 0000 - 9999\nconst NON_NUMERIC_REGEX = /[^0-9]/g;\n\nconst YEAR = 'year';\nconst MONTH = 'month';\nconst DAY = 'day';\nconst HOUR = 'hour';\nconst MINUTE = 'minute';\nconst SECOND = 'second';\n\ninterface ParseFlagMark {\n year: number;\n month: number;\n day: number;\n hour: number;\n minute: number;\n second: number;\n date: Date;\n}\n\ntype ParseFlagCallBackReturn = any;\n\ntype ParseFlagRegExp = RegExp | ((locale: any) => RegExp);\ntype ParseFlagCallBack = (input: string) => ParseFlagCallBackReturn;\n\ninterface ParseFlag {\n [key: string]: [ParseFlagRegExp, ParseFlagCallBack];\n}\n\nconst parseFlags: ParseFlag = {};\n\nconst addParseFlag = (token: string | string[], regex: ParseFlagRegExp, callback) => {\n const tokens = Array.isArray(token) ? token : [token];\n let func: ParseFlagCallBack;\n if (typeof callback === 'string') {\n func = (input) => {\n const value = parseInt(input, 10);\n return { [callback]: value };\n };\n } else {\n func = callback;\n }\n tokens.forEach((key) => {\n parseFlags[key] = [regex, func];\n });\n};\n\naddParseFlag('yy', TWO_NUMERICS_REGEX, (input) => {\n const year = new Date().getFullYear();\n const cent = Math.floor(year / 100);\n let value = parseInt(input, 10);\n value = (value > 68 ? cent - 1 : cent) * 100 + value;\n return { [YEAR]: value };\n});\naddParseFlag('yyyy', FOUR_NUMERICS_REGEX, YEAR);\naddParseFlag('mm', TWO_NUMERICS_REGEX, (input) => ({ [MONTH]: parseInt(input, 10) - 1 }));\naddParseFlag('dd', TWO_NUMERICS_REGEX, DAY);\naddParseFlag('hh', TWO_NUMERICS_REGEX, HOUR);\naddParseFlag('MM', TWO_NUMERICS_REGEX, MINUTE);\naddParseFlag('ss', TWO_NUMERICS_REGEX, SECOND);\n\ntype DateArgs = [number, number, number, number, number, number];\n\nconst getFullInputArray = (input: Array<number | undefined>, backupDate = new Date()) => {\n const result: DateArgs = [0, 0, 1, 0, 0, 0];\n const backupArr = [\n backupDate.getFullYear(),\n backupDate.getMonth(),\n backupDate.getDate(),\n backupDate.getHours(),\n backupDate.getMinutes(),\n backupDate.getSeconds(),\n ];\n\n let useBackup = true;\n for (let i = 0; i < 7; i++) {\n if (input[i] === undefined) {\n result[i] = useBackup ? backupArr[i] : result[i];\n } else {\n result[i] = input[i]!;\n useBackup = false;\n }\n }\n return result;\n};\n\nconst createDate = (year: number, month: number, day: number, hour: number, minute: number, second: number): Date => {\n if (!(year < 100 && year >= 0)) {\n return new Date(year, month, day, hour, minute, second);\n }\n\n const date = new Date(year + 400, month, day, hour, minute, second);\n if (isFinite(date.getFullYear())) {\n date.setFullYear(year);\n }\n return date;\n};\n\nconst makeParser = (dateString: string, format: string) => {\n const tokens = format.match(FORMATTING_TOKENS);\n if (!tokens) {\n throw new Error();\n }\n const { length } = tokens;\n let mark: Partial<ParseFlagMark> = {};\n for (let i = 0; i < length; i += 1) {\n const token = tokens[i];\n const parseTo = parseFlags[token];\n if (!parseTo) {\n const word = token.replace(/^\\[|\\]$/g, '');\n if (dateString.indexOf(word) === 0) {\n dateString = dateString.substr(word.length);\n } else {\n throw new Error('not match');\n }\n } else {\n const regex = parseTo[0] as RegExp;\n const parser = parseTo[1];\n const value = (regex.exec(dateString) || [])[0];\n const obj = parser(value);\n mark = { ...mark, ...obj };\n dateString = dateString.replace(value, '');\n }\n }\n return mark;\n};\n\nconst getCleanDateString = (dirtyDateString: string, format: string) => {\n if (dirtyDateString.length === format.length) {\n return dirtyDateString;\n }\n\n const separator = dirtyDateString.match(NON_NUMERIC_REGEX)[0];\n\n // pad signle digits to follow supported dateformats\n return dirtyDateString\n .split(separator)\n .map((s) => (s.length === 1 ? '0' + s : s))\n .join(separator);\n};\n\nconst getDateParts: (dirtyDateString: string, format: string) => Partial<ParseFlagMark> = (\n dirtyDateString: string,\n format: string\n) => {\n const dateString = getCleanDateString(dirtyDateString, format);\n\n return makeParser(dateString, format);\n};\n\nexport const toDate = (dirtyDateString: string | undefined, format: string): Date | undefined => {\n try {\n const { backupDate = new Date() } = {};\n const { year, month, day, hour, minute, second, date } = getDateParts(dirtyDateString, format);\n if (date != null) {\n return date;\n }\n const inputArray = [year, month, day, hour, minute, second];\n const result = getFullInputArray(inputArray, backupDate);\n return createDate(...result);\n } catch (e) {\n return new Date(NaN);\n }\n};\n\nexport interface PointerDate {\n year: number;\n month: number;\n day: number;\n hours: number;\n minutes: number;\n seconds: number;\n}\n\nexport interface CalendarGridArgs {\n firstDateOfBox: Date;\n minDate?: Date;\n maxDate?: Date;\n dateFormat: SixDateFormats;\n pointerDate: { month: number; year: number; day: number };\n allowedDates: (date: Date) => boolean;\n locale: 'en' | 'de' | 'fr' | 'it' | 'es';\n selectedDate?: Date;\n}\n\nexport const createCalendarGrid: (calendarGridArguments: CalendarGridArgs) => CalendarCell[][] = (\n calendarGridArguments: CalendarGridArgs\n) => {\n const { firstDateOfBox, allowedDates, dateFormat, selectedDate, minDate, maxDate, pointerDate } =\n calendarGridArguments;\n\n const weekDatePointer = new Date(firstDateOfBox);\n const dayDatePointer = new Date(firstDateOfBox);\n\n let calendar: CalendarCell[][] = [];\n\n do {\n let row: CalendarCell[] = [];\n do {\n row = [\n ...row,\n {\n date: new Date(dayDatePointer),\n display: formatDate(dayDatePointer, dateFormat),\n dateString: formatDate(dayDatePointer, dateFormat),\n label: day(dayDatePointer).toString(),\n isToday: isSameDay(dayDatePointer, now()),\n isSelected: selectedDate && isSameDay(dayDatePointer, selectedDate),\n isDisabled: !allowedDates(dayDatePointer) || !isInRange(dayDatePointer, minDate, maxDate),\n isOutdated: pointerDate.month !== dayDatePointer.getMonth() || !isInRange(dayDatePointer, minDate, maxDate),\n },\n ];\n dayDatePointer.setDate(dayDatePointer.getDate() + 1);\n } while (isSameWeek(dayDatePointer, weekDatePointer));\n calendar = [...calendar, row];\n weekDatePointer.setDate(weekDatePointer.getDate() + 7);\n } while (isSameMonth(new Date(pointerDate.year, pointerDate.month, pointerDate.day), dayDatePointer));\n return calendar;\n};\n\n/**\n * Returns a range of numbers around the given number grouped into buckets of 5.\n * @param number the given number around which you want to get the other numbers\n * @param range range of numbers to include in the result\n */\nexport function rangeAround(number: number, range: number): number[][] {\n const itemsPerGroup = 5;\n return [...Array(range).keys()]\n .map((n) => n + number - Math.floor(range / 2))\n .reduce((curr, item, index) => {\n if (index % itemsPerGroup === 0) {\n curr.push([]);\n }\n curr[curr.length - 1].push(item);\n return curr;\n }, [] as number[][]);\n}\n","// eslint-disable-next-line @stencil-community/ban-exported-const-enums\nexport enum SixDateFormats {\n DDMMYYY_DOT = 'dd.mm.yyyy',\n YYYYMMDD_DASH = 'yyyy-mm-dd',\n DDMMYYYY_DASH = 'dd-mm-yyyy',\n DDMMYYYY_SLASH = 'dd/mm/yyyy',\n YYYYMMDD_SLASH = 'yyyy/mm/dd',\n DDMMYY_DOT = 'dd.mm.yy',\n YYMMDD_DASH = 'yy-mm-dd',\n DDMMYY_DASH = 'dd-mm-yy',\n DDMMYY_SLASH = 'dd/mm/yy',\n YYMMDD_SLASH = 'yy/mm/dd',\n\n DDMMYYY_DOT_TIME = 'dd.mm.yyyy hh:MM:ss',\n YYYYMMDD_DASH_TIME = 'yyyy-mm-dd hh:MM:ss',\n DDMMYYYY_DASH_TIME = 'dd-mm-yyyy hh:MM:ss',\n DDMMYYYY_SLASH_TIME = 'dd/mm/yyyy hh:MM:ss',\n YYYYMMDD_SLASH_TIME = 'yyyy/mm/dd hh:MM:ss',\n DDMMYY_DOT_TIME = 'dd.mm.yy hh:MM:ss',\n YYMMDD_DASH_TIME = 'yy-mm-dd hh:MM:ss',\n DDMMYY_DASH_TIME = 'dd-mm-yy hh:MM:ss',\n DDMMYY_SLASH_TIME = 'dd/mm/yy hh:MM:ss',\n YYMMDD_SLASH_TIME = 'yy/mm/dd hh:MM:ss',\n}\n","import { h } from '@stencil/core';\nimport { DateLocale, now } from '../../../utils/date-util';\n\ninterface MonthSelectionParams {\n locale: DateLocale;\n selectedDate?: Date;\n onClickMonthCell: (month: string) => void;\n}\nexport const MonthSelection = (monthSelectionParams: MonthSelectionParams) => {\n const locale = monthSelectionParams.locale;\n const isToday = (value: string) => locale.monthsShort[now().getMonth()] === value;\n\n const isSelectedMonth = (value: string) =>\n monthSelectionParams.selectedDate?.getMonth() === locale.monthsShort.findIndex((m) => m === value);\n\n return (\n <table class=\"datepicker-table\" part=\"month-selection\">\n <tbody>\n {locale.monthsShortGrouped.map((row: string[]) => (\n <tr class=\"datepicker-table__row\">\n {row.map((month) => (\n <td\n onClick={() => monthSelectionParams.onClickMonthCell(month)}\n class={{\n 'datepicker-table__cell': true,\n 'datepicker-table__cell--is-today': isToday(month),\n 'datepicker-table__cell--is-selected': isSelectedMonth(month),\n }}\n >\n {month}\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n );\n};\n","import { h } from '@stencil/core';\nimport { DateLocale } from '../../../utils/date-util';\nimport { CalendarCell } from '../six-datepicker';\n\ninterface DaySelectionParams {\n locale: DateLocale;\n calendarGrid: CalendarCell[][];\n onClickDateCell: (cell: CalendarCell) => void;\n}\nexport const DaySelection = (daySelectionParams: DaySelectionParams) => {\n return (\n <table class=\"datepicker-table\" part=\"day-selection\">\n <thead part=\"weekday-header\">\n {daySelectionParams.locale.weekdaysMin.map((weekday) => (\n <th class=\"datepicker__cell\">{weekday}</th>\n ))}\n </thead>\n <tbody>\n {daySelectionParams.calendarGrid.map((row) => (\n <tr class=\"datepicker-table__row\">\n {row.map((cell) => (\n <td\n data-date={cell.dateString}\n onClick={() => daySelectionParams.onClickDateCell(cell)}\n class={{\n 'datepicker-table__cell': true,\n 'datepicker-table__cell--is-today': cell.isToday,\n 'datepicker-table__cell--is-selected': cell.isSelected,\n 'datepicker-table__cell--is-outdated': cell.isOutdated,\n 'datepicker-table__cell--is-disabled': cell.isDisabled,\n 'datepicker-table__cell--is-selectable': !cell.isDisabled,\n }}\n >\n {cell.label}\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n );\n};\n","import { now } from '../../../utils/date-util';\nimport { h } from '@stencil/core';\n\ninterface YearSelectionParams {\n selectedDate?: Date;\n yearSelection: number[][];\n onClickYearCell: (year: number) => void;\n}\nexport const YearSelection = (yearSelectionParams: YearSelectionParams) => {\n return (\n <table class=\"datepicker-table\" part=\"year-selection\">\n <tbody>\n {yearSelectionParams.yearSelection.map((row) => (\n <tr class=\"datepicker-table__row\">\n {row.map((year) => (\n <td\n onClick={() => yearSelectionParams.onClickYearCell(year)}\n class={{\n 'datepicker-table__cell': true,\n 'datepicker-table__cell--is-today': now().getFullYear() === year,\n 'datepicker-table__cell--is-selected': yearSelectionParams.selectedDate?.getFullYear() === year,\n }}\n >\n {year}\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n );\n};\n","@import 'src/global/component';\n\n:host {\n display: block;\n font-family: var(--six-font-family);\n}\n\n.datepicker {\n &__container {\n position: relative;\n }\n\n &__popup {\n min-width: 400px;\n background-color: white;\n padding: 0.5em 0.5em 1.5em;\n box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%);\n user-select: none;\n position: absolute;\n z-index: var(--six-z-index-dropdown);\n right: 0;\n left: 0;\n\n &--is-up {\n bottom: 100%;\n // fix problem where you would need to jump around with the cursor when switching months and\n // its a dropup since not all months have the same height\n min-height: 382px;\n }\n\n &--is-inline {\n position: initial;\n box-shadow: none;\n border: 1px solid var(--six-color-web-rock-400);\n }\n }\n}\n\n.datepicker-header {\n display: flex;\n justify-content: space-between;\n border-bottom: 1px solid var(--six-color-web-rock-400);\n padding: 0.5em;\n margin-bottom: 1em;\n\n & svg {\n fill: var(--six-color-web-rock-900);\n stroke: none;\n }\n\n &__btn {\n cursor: pointer;\n width: 2.5em;\n height: 2.5em;\n display: flex;\n vertical-align: middle;\n align-items: center;\n justify-content: center;\n\n &:hover {\n background-color: var(--six-color-web-rock-100);\n border-radius: 100%;\n }\n }\n\n &__label {\n display: flex;\n\n & > div {\n cursor: pointer;\n padding: 0.5em;\n display: flex;\n vertical-align: middle;\n align-items: center;\n justify-content: center;\n\n &:hover {\n background-color: var(--six-color-web-rock-100);\n }\n }\n }\n}\n\n.datepicker-table {\n width: 100%;\n\n &__cell {\n text-align: center;\n width: 2.5rem;\n height: 2.5rem;\n cursor: pointer;\n\n &:hover {\n background-color: var(--six-color-web-rock-100);\n }\n\n &--is-today {\n border: 1px solid var(--six-color-web-rock-400);\n }\n\n &--is-selected {\n background-color: var(--six-color-red);\n color: var(--six-color-white);\n }\n\n &--is-disabled {\n background-color: var(--six-color-web-rock-200);\n cursor: initial;\n\n &:hover {\n background-color: var(--six-color-web-rock-200);\n }\n }\n\n &--is-outdated {\n color: var(--six-color-web-rock-400);\n }\n }\n}\n\n// Clearable\n.datepicker-clear {\n display: inline-flex;\n align-items: center;\n font-size: inherit;\n color: var(--six-input-icon-color);\n border: none;\n background: none;\n padding: 0;\n transition: var(--six-transition-fast) color;\n cursor: pointer;\n\n &:hover {\n color: var(--six-input-icon-color-hover);\n }\n\n &:focus {\n outline: none;\n }\n\n &--right {\n right: 0;\n position: absolute;\n }\n\n &--left {\n right: 35px;\n position: absolute;\n }\n}\n\n.input--empty .datepicker-clear {\n visibility: hidden;\n}\n\n// Icon position\n.prefix {\n cursor: pointer;\n\n &--right {\n right: 0;\n display: inline-flex;\n position: absolute;\n font-size: inherit;\n color: var(--six-input-icon-color);\n border: none;\n background: none;\n margin-right: var(--six-input-spacing-medium);\n transition: var(--six-transition-fast) color;\n }\n}\n\n// time-picker\nsix-timepicker::part(popup) {\n border: none;\n padding: 0.5em 0.5em 0;\n min-height: 0;\n}\n","import { Component, Element, Event, EventEmitter, h, Listen, Method, Prop, State, Watch } from '@stencil/core';\nimport {\n createCalendarGrid,\n day,\n formatDate,\n getFirstDayOfTheWeek,\n hours,\n i18nDate,\n isValidDate,\n isValidDateString,\n minutes,\n month,\n now,\n PointerDate,\n rangeAround,\n removeTime,\n seconds,\n toDate,\n year,\n} from '../../utils/date-util';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { debounce, debounceEvent, DEFAULT_DEBOUNCE_FAST } from '../../utils/execution-control';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { SixDateFormats } from './six-date-formats';\nimport { MonthSelection } from './components/month-selection';\nimport { DaySelection } from './components/day-selection';\nimport { YearSelection } from './components/year-selection';\nimport { SixTimepickerChange } from '../six-timepicker/six-timepicker';\nimport {\n adjustPopupForHoisting,\n adjustPopupForSmallScreens,\n calcIsDropDownContentUp,\n movePopup,\n} from '../../utils/popup';\n\nconst NUMBER_OF_YEARS_SHOWN = 25;\n\nconst MIN_POPUP_HEIGHT = 400;\n\nexport type SixDatepickerSelectPayload = Date | undefined | null;\n\nexport interface CalendarCell {\n date: Date;\n dateString: string;\n display: string;\n isDisabled: boolean;\n isOutdated: boolean;\n isSelected: boolean;\n isToday: boolean;\n label: string;\n}\n\nenum SelectionMode {\n DAY = 'day',\n MONTH = 'month',\n YEAR = 'year',\n}\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define a footer for the date picker.\n * @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.\n */\n@Component({\n tag: 'six-datepicker',\n styleUrl: 'six-datepicker.scss',\n shadow: true,\n})\nexport class SixDatepicker {\n private eventListeners = new EventListeners();\n private inputElement?: HTMLSixInputElement;\n private popup?: HTMLElement;\n private wrapper?: HTMLElement;\n private selectedDate?: Date;\n\n @Element() host!: HTMLSixDatepickerElement;\n\n @State() private pointerDate = SixDatepicker.getCurrentDateAsPointer();\n @State() selectionMode: SelectionMode = SelectionMode.DAY;\n @State() isDropDownContentUp = false;\n\n /**\n * Set the type.\n */\n @Prop() type: 'date' | 'date-time' = 'date';\n\n /**\n * The language used to render the weekdays and months.\n */\n @Prop() locale: 'en' | 'de' | 'fr' | 'it' | 'es' = 'en';\n\n /** Indicates whether or not the calendar dropdown is open on startup. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** Indicates whether or not the calendar should be shown as an inline (always open) component */\n @Prop({ reflect: true }) inline = false;\n\n /**\n * If `true` the user can only select a date via the component in the popup, but not directly edit the input field.\n */\n @Prop() readonly = false;\n\n /**\n * If `true` the component is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Callback to determine which date in the datepicker should be selectable.\n * the callback function will get a datestring as an argument, e.g. '2021-07-04'\n *\n * Usage e.g.:\n * const datepicker = document.getElementById('allowed-date-picker');\n * datepicker.allowedDates = datestring => parseInt(datestring.split('-')[2], 10) % 2 === 0;\n */\n @Prop() allowedDates: (date: Date) => boolean = () => true;\n\n /**\n * The minimum datetime allowed. Value must be a date object\n */\n @Prop() min?: Date;\n\n /**\n * The maximum datetime allowed. Value must be a date object\n */\n @Prop() max?: Date;\n\n /**\n * Closes the datepicker dropdown after selection\n */\n @Prop() closeOnSelect = this.type === 'date';\n\n /**\n * The enforced placement of the dropdown panel.\n */\n @Prop() placement?: 'top' | 'bottom';\n\n /** Datepicker size. */\n @Prop() size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /**\n * The date to defines where the datepicker popup starts. The prop accepts ISO 8601 date strings (YYYY-MM-DD).\n */\n @Prop() defaultDate?: string;\n\n /**\n * The placeholder defines what text to be shown on the input element\n */\n @Prop() placeholder?: string;\n\n /**\n * The value of the form field, which accepts a date object.\n */\n @Prop({ mutable: true }) value?: Date;\n\n /** The label text. */\n @Prop() label = '';\n\n /** The error message shown, if `invalid` is set to true. */\n @Prop() errorText: string | string[] = '';\n\n /** The number of error texts to be shown (if the error-text slot isn't used). Defaults to 1 */\n @Prop() errorTextCount?: number;\n\n /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */\n @Prop({ reflect: true }) invalid = false;\n\n /** The dropdown will close when the user interacts outside of this element (e.g. clicking). */\n @Prop() containingElement?: HTMLElement;\n\n /** 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'\n * */\n @Prop() dateFormat: SixDateFormats = SixDateFormats.DDMMYYY_DOT;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger the `dateChange` event after each keystroke.\n */\n @Prop() debounce = DEFAULT_DEBOUNCE_FAST;\n\n /** The input's name attribute. */\n @Prop({ reflect: true }) name = '';\n\n /** Set to true to add a clear button when the input is populated. */\n @Prop() clearable = false;\n\n /** Set the position of the icon */\n @Prop() iconPosition: 'left' | 'right' = 'left';\n\n /**\n * Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n * `overflow: auto|scroll`.\n */\n @Prop() hoist = false;\n\n @Watch('debounce')\n protected debounceChanged() {\n this.sixSelect = debounceEvent(this.sixSelect, this.debounce);\n }\n\n /**\n * Update the native input element when the value changes\n */\n @Watch('value')\n protected valueChanged() {\n if (this.value != null && !isValidDate(this.value)) {\n console.warn('invalid date value: ', this.value);\n this.value = undefined;\n this.sixSelect.emit(this.value);\n }\n this.selectedDate = this.value;\n this.updatePointerDates();\n }\n\n /**\n * Emitted when a option got selected.\n */\n @Event({ eventName: 'six-datepicker-select' }) sixSelect!: EventEmitter<SixDatepickerSelectPayload>;\n\n /**\n * Emitted when the clear button is activated.\n */\n @Event({ eventName: 'six-datepicker-clear' }) sixClear!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when a option got selected.\n */\n @Event({ eventName: 'six-datepicker-blur' }) sixBlur!: EventEmitter<SixDatepickerSelectPayload>;\n\n @Listen('resize', { target: 'window' })\n async resizeHandler() {\n this.updateDropdownDirection();\n this.moveOpenHoistedPopup();\n this.adjustPopupPosition();\n }\n\n @Listen('scroll', { target: 'window' })\n async scrollHandler() {\n this.updateDropdownDirection();\n this.moveOpenHoistedPopup();\n }\n\n private moveOpenHoistedPopup() {\n movePopup(this.hoist, this.open, this.popup, this.inputElement, this.wrapper, MIN_POPUP_HEIGHT);\n }\n\n get container() {\n return this.containingElement || this.host;\n }\n\n get firstDateOfBox(): Date {\n const date = new Date(this.pointerDate.year, this.pointerDate.month, 1);\n return getFirstDayOfTheWeek(date);\n }\n\n /** Sets focus on the datepickers input. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.inputElement?.setFocus(options);\n }\n\n get calendarGrid() {\n return createCalendarGrid({\n firstDateOfBox: this.firstDateOfBox,\n allowedDates: this.allowedDates,\n dateFormat: this.dateFormat,\n locale: this.locale,\n selectedDate: this.selectedDate,\n minDate: this.min,\n maxDate: this.max,\n pointerDate: this.pointerDate,\n });\n }\n\n private updateDropdownDirection() {\n if (this.inputElement == null || this.wrapper == null) {\n return;\n }\n this.isDropDownContentUp = calcIsDropDownContentUp(this.inputElement, this.wrapper, MIN_POPUP_HEIGHT);\n }\n\n private getMonthStringForIndex(index: number) {\n return i18nDate[this.locale].months[index];\n }\n\n private previousUnit = () => {\n if (this.selectionMode === SelectionMode.DAY) {\n this.previousMonth();\n } else if (this.selectionMode === SelectionMode.MONTH) {\n this.previousYear();\n } else if (this.selectionMode === SelectionMode.YEAR) {\n this.previousYearGroup();\n }\n };\n\n private previousYear() {\n this.pointerDate = { ...this.pointerDate, year: this.pointerDate.year - 1 };\n }\n\n private previousYearGroup() {\n this.pointerDate = { ...this.pointerDate, year: this.pointerDate.year - NUMBER_OF_YEARS_SHOWN };\n }\n\n private previousMonth() {\n if (this.pointerDate.month === 0) {\n this.pointerDate = { year: this.pointerDate.year - 1, month: 11, day: 1, hours: 0, minutes: 0, seconds: 0 };\n } else {\n this.pointerDate = {\n year: this.pointerDate.year,\n month: this.pointerDate.month - 1,\n day: 1,\n hours: 0,\n minutes: 0,\n seconds: 0,\n };\n }\n }\n\n private nextUnit = () => {\n if (this.selectionMode === SelectionMode.DAY) {\n this.nextMonth();\n } else if (this.selectionMode === SelectionMode.MONTH) {\n this.nextYear();\n } else if (this.selectionMode === SelectionMode.YEAR) {\n this.nextYearGroup();\n }\n };\n\n private nextMonth() {\n if (this.pointerDate.month === 11) {\n this.pointerDate = { year: this.pointerDate.year + 1, month: 0, day: 1, hours: 0, minutes: 0, seconds: 0 };\n } else {\n this.pointerDate = {\n year: this.pointerDate.year,\n month: this.pointerDate.month + 1,\n day: 1,\n hours: 0,\n minutes: 0,\n seconds: 0,\n };\n }\n }\n\n private nextYear() {\n this.pointerDate = { ...this.pointerDate, year: this.pointerDate.year + 1 };\n }\n\n private nextYearGroup() {\n this.pointerDate = { ...this.pointerDate, year: this.pointerDate.year + NUMBER_OF_YEARS_SHOWN };\n }\n\n private openCalendar() {\n if (!this.open && !this.disabled) {\n this.open = true;\n this.setupEventListenersForOpenPopup();\n }\n }\n\n private setupEventListenersForOpenPopup() {\n this.eventListeners.add(document, 'keydown', this.handleDocumentKeyDown);\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n }\n\n private handleDocumentKeyDown = (event: Event) => {\n const keyboardEvent = event as KeyboardEvent;\n // Close when escape is pressed\n if (this.open && keyboardEvent.key === 'Escape') {\n keyboardEvent.stopPropagation();\n this.closePopup();\n void this.inputElement?.setFocus();\n }\n\n // Handle tabbing\n if (keyboardEvent.key === 'Tab') {\n this.closePopup();\n }\n };\n\n private handleDocumentMouseDown = (event: Event) => {\n // Close when clicking outside the containing element\n const path = event.composedPath() as EventTarget[];\n if (!path.includes(this.container)) {\n this.closePopup();\n return;\n }\n };\n\n private handleClearClick = async (event: MouseEvent) => {\n event.stopPropagation();\n await this.select(undefined);\n this.sixClear.emit();\n };\n\n private closePopup() {\n if (this.inline) {\n return;\n }\n\n this.open = false;\n this.eventListeners.remove(document, 'keydown', this.handleDocumentKeyDown);\n this.eventListeners.remove(document, 'mousedown', this.handleDocumentMouseDown);\n this.selectionMode = SelectionMode.DAY;\n }\n\n private updatePointerDates() {\n const date = this.getPointerDate();\n if (this.differsFromPointerDate(date)) {\n this.pointerDate = {\n year: year(date),\n month: month(date),\n day: day(date),\n hours: hours(date),\n minutes: minutes(date),\n seconds: seconds(date),\n };\n }\n }\n\n private differsFromPointerDate(date?: Date): boolean {\n return (\n this.pointerDate.day !== day(date) ||\n this.pointerDate.month !== month(date) ||\n this.pointerDate.year !== year(date) ||\n this.pointerDate.hours !== hours(date) ||\n this.pointerDate.minutes !== minutes(date) ||\n this.pointerDate.seconds !== seconds(date)\n );\n }\n\n private getPointerDate(): Date | undefined {\n if (this.selectedDate !== undefined && this.selectedDate !== null) {\n return this.selectedDate;\n }\n if (this.defaultDate == null) {\n return this.type === 'date' ? removeTime(now()) : now();\n } else {\n return toDate(this.defaultDate, this.dateFormat);\n }\n }\n\n private updateValue(newDate?: Date) {\n this.updateIfChanged(newDate);\n }\n\n private updateIfChanged(newDate?: Date) {\n if (this.value?.getTime() === newDate?.getTime()) {\n return;\n }\n this.value = newDate;\n this.sixSelect.emit(this.value);\n }\n\n /**\n * Selects an option\n */\n @Method()\n async select(datestring?: string) {\n if (datestring == null) {\n this.updateValue(undefined);\n } else {\n const newDate = toDate(datestring, this.dateFormat);\n newDate?.setHours(this.pointerDate.hours, this.pointerDate.minutes, this.pointerDate.seconds);\n this.updateValue(newDate);\n }\n\n this.updatePointerDates();\n\n if (this.closeOnSelect) {\n this.closePopup();\n }\n }\n\n private onTimepickerChange = (sixTimepickerChange: CustomEvent<SixTimepickerChange>) => {\n const time = sixTimepickerChange.detail.value;\n const newDate = new Date();\n\n if (this.selectedDate != null) {\n newDate.setFullYear(this.selectedDate.getFullYear(), this.selectedDate.getMonth(), this.selectedDate.getDate());\n }\n\n if (time != null) {\n const hours = time.hours;\n const minutes = time.minutes;\n const seconds = time.seconds;\n if (hours != null) {\n newDate.setHours(hours, minutes, seconds);\n }\n }\n\n this.updateValue(newDate);\n this.updatePointerDates();\n };\n\n private onClickDateCell = (cell: CalendarCell) => {\n if (!cell.isDisabled) {\n void this.select(cell.dateString);\n }\n };\n\n private onClickMonthCell = (selectedMonth: string) => {\n const month = i18nDate[this.locale].monthsShort.findIndex((monthShort) => monthShort === selectedMonth);\n this.pointerDate = { ...this.pointerDate, month };\n this.selectionMode = SelectionMode.DAY;\n };\n\n private onClickYearCell = (year: number) => {\n this.pointerDate = { ...this.pointerDate, year };\n this.selectionMode = SelectionMode.DAY;\n };\n\n private handleInputChange = (event: Event) => {\n if (this.inputElement == null) {\n return;\n }\n event.stopPropagation();\n\n const inputValue = this.inputElement.value;\n if (!isValidDateString(inputValue, this.dateFormat)) {\n return;\n }\n\n const inputValueDate = toDate(inputValue, this.dateFormat);\n\n if (inputValueDate === undefined) {\n return;\n }\n\n this.updateIfChanged(inputValueDate);\n const datesOnly = inputValue.replace(/[^\\d]/g, '');\n if (datesOnly.length >= 6) {\n const date = toDate(inputValue, this.dateFormat);\n const dateAsString = formatDate(date, this.dateFormat);\n if (isValidDateString(dateAsString, this.dateFormat)) {\n this.selectedDate = toDate(dateAsString, this.dateFormat);\n this.updatePointerDates();\n this.updateValue(this.selectedDate);\n }\n }\n };\n\n private handleOnBlur = (event: Event) => {\n event.stopPropagation();\n\n // clear the value if the user deleted the date\n if (this.inputElement?.value === '' && isValidDate(this.value)) {\n this.value = undefined;\n this.sixSelect.emit(this.value);\n }\n\n const currentDate = toDate(this.inputElement?.value, this.dateFormat);\n if (isValidDate(currentDate) && this.value?.getTime() !== currentDate?.getTime()) {\n // Set the value if the input field's value has changed. This can happen if the blur occurs\n // before the change event had a chance to fire due to its debouncing.\n this.value = currentDate;\n }\n if (this.inputElement != null) {\n this.inputElement.value = formatDate(this.value, this.dateFormat);\n }\n this.sixBlur.emit(this.value);\n };\n\n componentWillLoad() {\n this.selectedDate = this.value;\n this.updatePointerDates();\n this.updateValue(this.value);\n\n if (this.inline) {\n this.open = true;\n }\n\n if (this.open) {\n this.setupEventListenersForOpenPopup();\n }\n }\n\n componentDidLoad() {\n if (this.inputElement != null) {\n this.eventListeners.add(this.inputElement, 'six-input-input', debounce(this.handleInputChange, this.debounce));\n this.eventListeners.add(this.inputElement, 'six-input-blur', this.handleOnBlur);\n }\n }\n\n componentDidRender() {\n this.adjustPopupPosition();\n }\n\n private renderHeader() {\n return (\n <header class=\"datepicker-header\" part=\"header\">\n <div class=\"datepicker-header__btn prev\" onClick={this.previousUnit}>\n <svg viewBox=\"0 5 13 13\" width=\"14\" height=\"23\">\n <path d=\"M11.67 3.87L9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z\" />\n </svg>\n </div>\n\n <div class=\"datepicker-header__label\">\n {this.selectionMode === SelectionMode.DAY && (\n <div onClick={() => (this.selectionMode = SelectionMode.MONTH)}>\n <span class=\"datepicker-header__label-month\">{this.getMonthStringForIndex(this.pointerDate.month)}</span>\n <span>\n <svg viewBox=\"-3 -4 24 24\" width=\"20\" height=\"20\">\n <polyline points=\"6 9 12 15 18 9\" />\n </svg>\n </span>\n </div>\n )}\n\n {this.selectionMode !== SelectionMode.YEAR && (\n <div onClick={() => (this.selectionMode = SelectionMode.YEAR)}>\n <span class=\"datepicker-header__label-year\">{this.pointerDate.year}</span>\n <span>\n <svg viewBox=\"-3 -4 24 24\" width=\"20\" height=\"20\">\n <polyline points=\"6 9 12 15 18 9\" />\n </svg>\n </span>\n </div>\n )}\n\n {this.selectionMode === SelectionMode.YEAR && (\n <div>\n {this.pointerDate.year - Math.floor(NUMBER_OF_YEARS_SHOWN / 2)} –{' '}\n {this.pointerDate.year + Math.floor(NUMBER_OF_YEARS_SHOWN / 2)}\n </div>\n )}\n </div>\n\n <div class=\"datepicker-header__btn next\" onClick={this.nextUnit}>\n <svg viewBox=\"5 5 13 13\" width=\"14\" height=\"23\">\n <path d=\"M5.88 4.12L13.76 12l-7.88 7.88L8 22l10-10L8 2z\" />\n </svg>\n </div>\n </header>\n );\n }\n\n private renderBody() {\n switch (this.selectionMode) {\n case SelectionMode.DAY:\n return (\n <DaySelection\n locale={i18nDate[this.locale]}\n calendarGrid={this.calendarGrid}\n onClickDateCell={this.onClickDateCell}\n />\n );\n case SelectionMode.MONTH:\n return (\n <MonthSelection\n locale={i18nDate[this.locale]}\n selectedDate={this.selectedDate}\n onClickMonthCell={this.onClickMonthCell}\n />\n );\n case SelectionMode.YEAR:\n return (\n <YearSelection\n selectedDate={this.selectedDate}\n yearSelection={rangeAround(this.pointerDate.year, NUMBER_OF_YEARS_SHOWN)}\n onClickYearCell={this.onClickYearCell}\n />\n );\n }\n }\n\n private renderCustomIcon() {\n const icon = hasSlot(this.host, 'custom-icon') ? (\n <slot name=\"custom-icon\"></slot>\n ) : (\n <six-icon size={this.size === 'large' ? 'medium' : this.size}>today</six-icon>\n );\n\n return (\n <span\n slot=\"prefix\"\n part=\"icon\"\n class={{\n prefix: true,\n 'prefix--right': this.iconPosition === 'right',\n }}\n >\n {icon}\n </span>\n );\n }\n\n private renderClearable() {\n return (\n this.clearable && (\n <button\n slot=\"suffix\"\n class={{\n 'datepicker-clear': true,\n 'datepicker-clear--right': this.iconPosition === 'left',\n 'datepicker-clear--left': this.iconPosition === 'right',\n }}\n type=\"button\"\n onClick={this.handleClearClick}\n tabindex=\"-1\"\n >\n <six-icon size=\"small\">clear</six-icon>\n </button>\n )\n );\n }\n\n render() {\n this.adjustPopupPosition();\n\n return (\n <div ref={(el) => (this.wrapper = el)} class=\"datepicker__container\">\n <six-input\n part=\"base\"\n value={formatDate(this.value, this.dateFormat)}\n ref={(el) => (this.inputElement = el)}\n placeholder={this.placeholder}\n readonly={this.readonly}\n disabled={this.disabled}\n name={this.name}\n label={this.label}\n required={this.required}\n errorText={this.errorText}\n errorTextCount={this.errorTextCount}\n invalid={this.invalid}\n onClick={() => this.openCalendar()}\n size={this.size}\n class={{ 'input--empty': this.value == null }}\n >\n {this.renderCustomIcon()}\n {this.renderClearable()}\n {hasSlot(this.host, 'label') ? (\n <span slot=\"label\">\n <slot name=\"label\" />\n </span>\n ) : null}\n {hasSlot(this.host, 'error-text') ? (\n <span slot=\"error-text\">\n <slot name=\"error-text\"></slot>\n </span>\n ) : null}\n </six-input>\n {this.open && (\n <div\n part=\"popup\"\n ref={(el) => (this.popup = el)}\n class={{\n datepicker__popup: true,\n 'datepicker__popup--is-up': this.placement != null ? this.placement === 'top' : this.isDropDownContentUp,\n 'datepicker__popup--is-inline': this.inline,\n }}\n >\n {this.renderHeader()}\n {this.renderBody()}\n {this.type === 'date-time' && (\n <six-timepicker\n debounce={this.debounce}\n inline={true}\n onSix-timepicker-change-debounced={(event) => this.onTimepickerChange(event)}\n value={\n this.selectedDate?.getHours() +\n ':' +\n this.selectedDate?.getMinutes() +\n ':' +\n this.selectedDate?.getSeconds()\n }\n ></six-timepicker>\n )}\n <div class=\"datepicker__footer\">\n <slot />\n </div>\n </div>\n )}\n </div>\n );\n }\n\n private adjustPopupPosition() {\n adjustPopupForHoisting(\n this.hoist,\n this.popup,\n this.inputElement,\n this.wrapper,\n MIN_POPUP_HEIGHT,\n (isUp) => (this.isDropDownContentUp = isUp)\n );\n adjustPopupForSmallScreens(this.popup);\n }\n\n connectedCallback() {\n this.eventListeners.forward('six-datepicker-select', 'change', this.host);\n this.eventListeners.forward('six-datepicker-blur', 'blur', this.host);\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n\n private static getCurrentDateAsPointer(): PointerDate {\n return {\n year: year(now()),\n month: month(now()),\n day: day(now()),\n hours: hours(now()),\n minutes: minutes(now()),\n seconds: seconds(now()),\n };\n }\n}\n"],"mappings":"kOAAO,MAAMA,EAAYC,UAA2CA,IAAU,SAGvE,MAAMC,EAAS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ped","weekdays","weekdaysShort","weekdaysMin","de","fr","it","es","now","Date","removeTime","date","getFullYear","getMonth","getDate","isValidDate","isNaN","getTime","toString","year","Error","month","day","hours","getHours","minutes","getMinutes","seconds","getSeconds","getFirstDayOfTheWeek","weekdayDiff","setDate","getDay","isSameYear","a","b","isSameMonth","isSameDay","isSameWeek","isValidDateString","datestring","format","length","getDateParts","toDate","isInRange","minDate","maxDate","lookAhead","iFormat","match","increment","followingCharacterMatches","charAt","hasProperLength","formatNumber","len","num","String","formatDate","output","FORMATTING_TOKENS","TWO_NUMERICS_REGEX","FOUR_NUMERICS_REGEX","NON_NUMERIC_REGEX","YEAR","MONTH","DAY","HOUR","MINUTE","SECOND","parseFlags","addParseFlag","token","regex","callback","tokens","Array","isArray","func","input","parseInt","forEach","key","cent","Math","floor","getFullInputArray","backupDate","result","backupArr","useBackup","i","undefined","createDate","hour","minute","second","isFinite","setFullYear","makeParser","dateString","mark","parseTo","word","replace","indexOf","substr","parser","exec","obj","Object","assign","getCleanDateString","dirtyDateString","separator","split","map","s","join","inputArray","e","NaN","createCalendarGrid","calendarGridArguments","firstDateOfBox","allowedDates","dateFormat","selectedDate","pointerDate","weekDatePointer","dayDatePointer","calendar","row","display","label","isToday","isSelected","isDisabled","isOutdated","rangeAround","number","range","itemsPerGroup","keys","n","reduce","curr","item","index","push","SixDateFormats","MonthSelection","monthSelectionParams","locale","isSelectedMonth","_a","findIndex","m","h","class","part","onClick","onClickMonthCell","DaySelection","daySelectionParams","weekday","calendarGrid","cell","onClickDateCell","YearSelection","yearSelectionParams","yearSelection","onClickYearCell","sixDatepickerCss","SixDatepickerStyle0","NUMBER_OF_YEARS_SHOWN","MIN_POPUP_HEIGHT","SelectionMode","SixDatepicker","this","eventListeners","EventListeners","previousUnit","selectionMode","previousMonth","previousYear","previousYearGroup","nextUnit","nextMonth","nextYear","nextYearGroup","handleDocumentKeyDown","event","keyboardEvent","open","stopPropagation","closePopup","inputElement","setFocus","handleDocumentMouseDown","path","composedPath","includes","container","handleClearClick","async","select","sixClear","emit","onTimepickerChange","sixTimepickerChange","time","detail","newDate","setHours","updateValue","updatePointerDates","selectedMonth","monthShort","handleInputChange","inputValue","inputValueDate","updateIfChanged","datesOnly","dateAsString","handleOnBlur","sixSelect","currentDate","_b","_c","sixBlur","getCurrentDateAsPointer","type","DDMMYYY_DOT","DEFAULT_DEBOUNCE_FAST","debounceChanged","debounceEvent","debounce","valueChanged","console","warn","resizeHandler","updateDropdownDirection","moveOpenHoistedPopup","adjustPopupPosition","scrollHandler","movePopup","hoist","popup","wrapper","containingElement","host","options","min","max","isDropDownContentUp","calcIsDropDownContentUp","getMonthStringForIndex","openCalendar","disabled","setupEventListenersForOpenPopup","add","document","inline","remove","getPointerDate","differsFromPointerDate","defaultDate","closeOnSelect","componentWillLoad","componentDidLoad","componentDidRender","renderHeader","viewBox","width","height","d","points","renderBody","renderCustomIcon","icon","hasSlot","name","size","slot","prefix","iconPosition","renderClearable","clearable","tabindex","render","ref","el","placeholder","readonly","required","errorText","errorTextCount","invalid","datepicker__popup","placement","adjustPopupForHoisting","isUp","adjustPopupForSmallScreens","connectedCallback","forward","disconnectedCallback","removeAll"],"sources":["src/utils/type-check.ts","src/utils/date-util.ts","src/components/six-datepicker/six-date-formats.tsx","src/components/six-datepicker/components/month-selection.tsx","src/components/six-datepicker/components/day-selection.tsx","src/components/six-datepicker/components/year-selection.tsx","src/components/six-datepicker/six-datepicker.scss?tag=six-datepicker&encapsulation=shadow","src/components/six-datepicker/six-datepicker.tsx"],"sourcesContent":["export const isString = (value: unknown): value is string => typeof value === 'string';\n\n// only use '==' instead of '===' to also catch undefined and void\nexport const isNil = (value: unknown): value is undefined | null => value == null;\n\nexport const isDate = (value: unknown): value is Date => value instanceof Date;\n","/* eslint-disable */\n// @ts-nocheck\n\nimport { isDate, isNil, isString } from './type-check';\nimport { SixDateFormats } from '../components/six-datepicker/six-date-formats';\nimport { CalendarCell } from '../components/six-datepicker/six-datepicker';\n\nexport type DateLocale = typeof i18nDate.en;\nexport const i18nDate = {\n en: {\n months: [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n ],\n monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n monthsShortGrouped: [\n ['Jan', 'Feb', 'Mar', 'Apr'],\n ['May', 'Jun', 'Jul', 'Aug'],\n ['Sep', 'Oct', 'Nov', 'Dec'],\n ],\n weekdays: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],\n weekdaysShort: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],\n weekdaysMin: ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'],\n },\n de: {\n months: [\n 'Januar',\n 'Februar',\n 'März',\n 'April',\n 'Mai',\n 'Juni',\n 'Juli',\n 'August',\n 'September',\n 'Oktober',\n 'November',\n 'Dezember',\n ],\n monthsShort: ['Jan.', 'Feb.', 'März', 'Apr.', 'Mai', 'Juni', 'Juli', 'Aug.', 'Sep.', 'Okt.', 'Nov.', 'Dez.'],\n monthsShortGrouped: [\n ['Jan.', 'Feb.', 'März', 'Apr.'],\n ['Mai', 'Juni', 'Juli', 'Aug.'],\n ['Sep.', 'Okt.', 'Nov.', 'Dez.'],\n ],\n weekdays: ['Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag', 'Sonntag'],\n weekdaysShort: ['Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.', 'So.'],\n weekdaysMin: ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'],\n },\n fr: {\n months: [\n 'janvier',\n 'février',\n 'mars',\n 'avril',\n 'mai',\n 'juin',\n 'juillet',\n 'août',\n 'septembre',\n 'octobre',\n 'novembre',\n 'décembre',\n ],\n monthsShort: ['janv.', 'févr.', 'mars', 'avr.', 'mai', 'juin', 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'],\n monthsShortGrouped: [\n ['janv.', 'févr.', 'mars', 'avr.'],\n ['mai', 'juin', 'juil.', 'août'],\n ['sept.', 'oct.', 'nov.', 'déc.'],\n ],\n weekdays: ['lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi', 'dimanche'],\n weekdaysShort: ['lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.', 'dim.'],\n weekdaysMin: ['lu', 'ma', 'me', 'je', 've', 'sa', 'di'],\n },\n it: {\n months: [\n 'gennaio',\n 'febbraio',\n 'marzo',\n 'aprile',\n 'maggio',\n 'giugno',\n 'luglio',\n 'agosto',\n 'settembre',\n 'ottobre',\n 'novembre',\n 'dicembre',\n ],\n monthsShort: ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'],\n monthsShortGrouped: [\n ['gen', 'feb', 'mar', 'apr'],\n ['mag', 'giu', 'lug', 'ago'],\n ['set', 'ott', 'nov', 'dic'],\n ],\n weekdays: ['lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato', 'domenica'],\n weekdaysShort: ['lun', 'mar', 'mer', 'gio', 'ven', 'sab', 'dom'],\n weekdaysMin: ['lu', 'ma', 'me', 'gi', 've', 'sa', 'do'],\n },\n es: {\n months: [\n 'enero',\n 'febrero',\n 'marzo',\n 'abril',\n 'mayo',\n 'junio',\n 'julio',\n 'agosto',\n 'septiembre',\n 'octubre',\n 'noviembre',\n 'diciembre',\n ],\n monthsShort: ['ene', 'feb', 'mar', 'abr', 'may', 'jun', 'jul', 'ago', 'sep', 'oct', 'nov', 'dic'],\n monthsShortGrouped: [\n ['ene', 'feb', 'mar', 'abr'],\n ['may', 'jun', 'jul', 'ago'],\n ['sep', 'oct', 'nov', 'dic'],\n ],\n weekdays: ['lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado', 'domingo'],\n weekdaysShort: ['lun', 'mar', 'mié', 'jue', 'vie', 'sáb', 'dom'],\n weekdaysMin: ['lu', 'ma', 'mi', 'ju', 'vi', 'sa', 'do'],\n },\n};\n\n/**\n * Returns a JS Date instance of the exact moment\n *\n * ```typescript\n * const date = now()\n * // Wed Mar 10 2021 20:30:32 GMT+0100 (Central European Standard Time)\n * ```\n */\nexport const now = () => new Date();\n\nexport const removeTime = (date: Date) => new Date(date.getFullYear(), date.getMonth(), date.getDate());\n\nexport const pad = (value: number) => String(value).padStart(2, '0');\n\n/**\n * Returns `true` if the given date is valid\n */\nexport const isValidDate = (value: unknown): boolean => {\n return value instanceof Date && !isNaN(value.getTime()) && new Date(value).toString() !== 'Invalid Date';\n};\n\n/**\n * Returns the year number of the given date\n *\n * ```typescript\n * year(new Date(2020, 0, 1)) // 2020\n * ```\n */\nexport const year = (date: Date | undefined): number => {\n if (date && isValidDate(date)) {\n return date.getFullYear();\n }\n throw new Error('Not a valid date');\n};\n\n/**\n * Returns the month number of the given date\n *\n * ```typescript\n * month(new Date(2020, 0, 1)) // 0\n * ```\n */\nexport const month = (date: Date | undefined): number => {\n if (date && isValidDate(date)) {\n return date.getMonth();\n }\n throw new Error('Not a valid date');\n};\n\n/**\n * Returns the day number of the given date\n *\n * ```typescript\n * day(new Date(2020, 0, 1)) // 1\n * ```\n */\nexport const day = (date: Date | undefined): number => {\n if (date && isValidDate(date)) {\n return date.getDate();\n }\n throw new Error('Not a valid date');\n};\n\n/**\n * Returns the hours of the given date\n */\nexport const hours = (date: Date | undefined): number => {\n if (date && isValidDate(date)) {\n return date.getHours();\n }\n throw new Error('Not a valid date');\n};\n\n/**\n * Returns the minutes of the given date\n */\nexport const minutes = (date: Date | undefined): number => {\n if (date && isValidDate(date)) {\n return date.getMinutes();\n }\n throw new Error('Not a valid date');\n};\n\n/**\n * Returns the seconds of the given date\n */\nexport const seconds = (date: Date | undefined): number => {\n if (date && isValidDate(date)) {\n return date.getSeconds();\n }\n throw new Error('Not a valid date');\n};\n\n/**\n * Returns the first day of the week of the given date.\n */\nexport const getFirstDayOfTheWeek = (date: Date) => {\n const weekdayDiff = [6, 0, 1, 2, 3, 4, 5];\n const day = new Date(date);\n day.setDate(day.getDate() - weekdayDiff[day.getDay()]);\n return day;\n};\n\n/**\n * Returns `true` when the year of the dates are the same\n */\nexport const isSameYear = (a: Date | undefined, b: Date | undefined) => a?.getFullYear() === b?.getFullYear();\n\n/**\n * Returns `true` when the month of the dates are the same\n */\nexport const isSameMonth = (a: Date | undefined, b: Date | undefined) =>\n isSameYear(a, b) && a?.getMonth() === b?.getMonth();\n\n/**\n * Returns `true` when the day of the dates are the same\n */\nexport const isSameDay = (a: Date | undefined, b: Date | undefined) =>\n isSameMonth(a, b) && a?.getDate() === b?.getDate();\n\n/**\n * Returns `true` when the week of the dates are the same\n */\nexport const isSameWeek = (a: Date, b: Date) => isSameDay(getFirstDayOfTheWeek(a), getFirstDayOfTheWeek(b));\n\nconst localDatetime = (date: Date) => new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));\n\n/**\n * Returns the ISO string `yyyy-mm-dd` of the given date\n *\n * ```typescript\n * isoString(new Date(2020, 0, 13)) // '2020-01-13'\n * ```\n */\nexport const isoString = (date: Date | undefined): string => {\n if (isNil(date) || Date.toString() === 'Invalid Date') {\n return '';\n }\n\n return `${year(date)}-${pad(month(date) + 1)}-${pad(day(date))}`;\n};\n\n/**\n * Returns the ISO string `yyyy-mm-dd` of the given parameters year, month and day\n *\n * ```typescript\n * newDateString(2020, 0, 13) // '2020-01-13'\n * or\n * newDateString(new Date(2020, 0, 13)) // '2020-01-13'\n * ```\n */\nexport const newDateString = (yearOrDate: Date | number, month?: number, day?: number): string => {\n let date;\n if (isDate(yearOrDate)) {\n date = localDatetime(yearOrDate);\n } else {\n date = new Date(Date.UTC(yearOrDate, (month as number) - 1, day as number));\n }\n\n return isoString(date);\n};\n\n/**\n * Returns `true` if the given datestring is valid\n */\nexport const isValidDateString = (datestring: string | undefined, format: string) => {\n if (!isString(datestring) || !isString(format)) {\n return false;\n }\n\n if (datestring.length < 6 || format.length < 6) {\n return false;\n }\n\n const { day, month } = getDateParts(datestring, format);\n\n if (day > 31 || month > 11 || day <= 0 || month < 0) {\n return false;\n }\n\n const date = toDate(datestring, format);\n\n if (isNil(date)) {\n return false;\n }\n\n return date.toString() !== 'Invalid Date';\n};\n\n/**\n * Returns `true` when the given date is not smaller than the minDate and not bigger than the maxDate.\n *\n * ```typescript\n * isInRange(new Date(2020, 1, 1), new Date(2020, 0, 1), new Date(2020, 2, 1)) // true\n * ```\n */\nexport const isInRange = (date: Date | undefined, minDate: Date | undefined, maxDate: Date | undefined): boolean => {\n if (!date) {\n return true;\n }\n\n if (minDate && date < minDate) {\n return false;\n }\n\n if (maxDate && maxDate < date) {\n return false;\n }\n\n return true;\n};\n\nconst validateTwoDates = (\n first: any,\n second: Date | string | undefined,\n validateFn: (irst: Date, second: Date) => boolean\n) => {\n if (isNil(first) && isNil(second)) {\n return false;\n }\n\n const _first: Date = new Date(first as string | Date);\n const _second: Date = new Date(second as string | Date);\n\n if (!isValidDate(_first) || !isValidDate(_second)) {\n return false;\n }\n\n return validateFn(_first, _second);\n};\n\n/**\n * Returns `true` when the given date is not smaller than the before date.\n *\n * ```typescript\n * isBefore(new Date(2020, 1, 1), new Date(2020, 3, 1)) // true\n * ```\n */\nexport const isBefore = (date: any, beforeDate: Date | string | undefined): boolean =>\n validateTwoDates(date, beforeDate, (first, second) => first < second);\n\n/**\n * Returns `true` when the given date is not smaller than the before date.\n *\n * ```typescript\n * isAfter(new Date(2020, 5, 1), new Date(2020, 3, 1)) // true\n * ```\n */\nexport const isAfter = (date: any, afterDate: Date | string | undefined): boolean =>\n validateTwoDates(date, afterDate, (first, second) => first > second);\n\n/**\n * Increases the year of a date and retunrs the result\n *\n * ```typescript\n * increaseYear(new Date(2020, 0, 1), 1) // 2021\n * ```\n */\nexport const increaseYear = (date: Date, years: number): number => year(date) + years;\n\n/**\n * Decreases the year of a date and retunrs the result\n *\n * ```typescript\n * decreaseYear(new Date(2020, 0, 1), 1) // 2019\n * ```\n */\nexport const decreaseYear = (date: Date, years: number): number => year(date) - years;\n\nconst lookAhead = (iFormat: number, format: string, match: string, length = 2) => {\n const increment = length - 1;\n const followingCharacterMatches = format.charAt(iFormat + increment) === match;\n const hasProperLength = iFormat + increment < format.length;\n return hasProperLength && followingCharacterMatches;\n};\n\nconst formatNumber = (value, len) => {\n let num = String(value);\n\n while (num.length < len) {\n num = '0' + num;\n }\n\n return num;\n};\n\nexport const formatDate = (date: Date | undefined | null, format: string): string => {\n if (date == null) {\n return '';\n }\n\n let output = '';\n\n for (let iFormat = 0; iFormat < format.length; iFormat++) {\n switch (format.charAt(iFormat)) {\n case 'd':\n if (lookAhead(iFormat, format, 'd')) {\n output += formatNumber(date.getDate(), 2);\n iFormat++;\n } else {\n output += String(date.getDate());\n }\n break;\n case 'm':\n if (lookAhead(iFormat, format, 'm')) {\n output += formatNumber(date.getMonth() + 1, 2);\n iFormat++;\n } else {\n output += String(date.getMonth() + 1);\n }\n break;\n case 'y':\n if (lookAhead(iFormat, format, 'y', 4)) {\n iFormat += 3;\n output += date.getFullYear();\n } else {\n output += (date.getFullYear() % 100 < 10 ? '0' : '') + (date.getFullYear() % 100);\n iFormat++;\n }\n break;\n case 'h':\n if (lookAhead(iFormat, format, 'h')) {\n output += formatNumber(date.getHours(), 2);\n iFormat++;\n } else {\n output += String(date.getHours());\n }\n break;\n case 'M':\n if (lookAhead(iFormat, format, 'M')) {\n output += formatNumber(date.getMinutes(), 2);\n iFormat++;\n } else {\n output += String(date.getMinutes());\n }\n break;\n case 's':\n if (lookAhead(iFormat, format, 's')) {\n output += formatNumber(date.getSeconds(), 2);\n iFormat++;\n } else {\n output += String(date.getSeconds());\n }\n break;\n default:\n output += format.charAt(iFormat);\n }\n }\n return output;\n};\n\nconst daylightSavingAdjust = (date): Date => {\n if (!date) {\n return null;\n }\n\n date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);\n\n return date;\n};\n\nconst getDaysCountInMonth = (month: number, year: number) =>\n 32 - daylightSavingAdjust(new Date(year, month, 32)).getDate();\n\nexport const parseDate = (value: any, format: string, locale: string): Date => {\n if (format == null || value == null) {\n throw 'Invalid arguments';\n }\n\n value = typeof value === 'object' ? value.toString() : value + '';\n if (value === '') {\n return null;\n }\n\n let iFormat;\n let dim;\n let extra;\n let iValue = 0;\n let shortYearCutoff = 100;\n let year = -1;\n let month = -1;\n let day = -1;\n let doy = -1;\n let literal = false;\n let date: Date;\n let lookAhead = (match: string, len = 2) => {\n const increment = len - 1;\n let matches = iFormat + increment < format.length && format.charAt(iFormat + increment) === match;\n if (matches) {\n iFormat += increment;\n }\n return matches;\n };\n let getNumber = (match, len = 2) => {\n let isDoubled = lookAhead(match, len),\n size = match === '@' ? 14 : match === '!' ? 20 : match === 'y' && isDoubled ? 4 : match === 'o' ? 3 : 2,\n minSize = match === 'y' ? size : 1,\n digits = new RegExp('^\\\\d{' + minSize + ',' + size + '}'),\n num = value.substring(iValue).match(digits);\n if (!num) {\n throw 'Missing number at position ' + iValue;\n }\n iValue += num[0].length;\n return parseInt(num[0], 10);\n };\n let getName = (match, shortNames, longNames) => {\n let index = -1;\n let arr = lookAhead(match) ? longNames : shortNames;\n let names = [];\n\n for (let i = 0; i < arr.length; i++) {\n names.push([i, arr[i]]);\n }\n names.sort((a, b) => {\n return -(a[1].length - b[1].length);\n });\n\n for (let i = 0; i < names.length; i++) {\n let name = names[i][1];\n if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {\n index = names[i][0];\n iValue += name.length;\n break;\n }\n }\n\n if (index !== -1) {\n return index + 1;\n } else {\n throw 'Unknown name at position ' + iValue;\n }\n };\n let checkLiteral = () => {\n if (value.charAt(iValue) !== format.charAt(iFormat)) {\n throw 'Unexpected literal at position ' + iValue;\n }\n iValue++;\n };\n\n for (iFormat = 0; iFormat < format.length; iFormat++) {\n if (literal) {\n if (format.charAt(iFormat) === \"'\" && !lookAhead(\"'\")) {\n literal = false;\n } else {\n checkLiteral();\n }\n } else {\n switch (format.charAt(iFormat)) {\n case 'd':\n day = getNumber('d');\n break;\n case 'D':\n getName('D', i18nDate[locale].weekdaysShort, i18nDate[locale].weekdays);\n break;\n case 'm':\n month = getNumber('m');\n break;\n case 'M':\n month = getName('M', i18nDate[locale].monthsShort, i18nDate[locale].months);\n break;\n case 'y':\n year = getNumber('y', 4);\n break;\n default:\n checkLiteral();\n }\n }\n }\n\n if (iValue < value.length) {\n extra = value.substr(iValue);\n if (!/^\\s+/.test(extra)) {\n throw 'Extra/unparsed characters found in date: ' + extra;\n }\n }\n\n if (year === -1) {\n year = new Date().getFullYear();\n } else if (year < 100) {\n year += new Date().getFullYear() - (new Date().getFullYear() % 100) + (year <= shortYearCutoff ? 0 : -100);\n }\n\n if (doy > -1) {\n month = 1;\n day = doy;\n do {\n dim = getDaysCountInMonth(year, month - 1);\n if (day <= dim) {\n break;\n }\n month++;\n day -= dim;\n } while (true);\n }\n\n date = daylightSavingAdjust(new Date(year, month - 1, day));\n if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {\n throw 'Invalid date'; // E.g. 31/02/00\n }\n\n return date;\n};\n\nconst FORMATTING_TOKENS = /(\\[[^\\[]*\\])|(mm|dd|yyyy|yy|hh|MM|ss|.)/g;\n\nconst TWO_NUMERICS_REGEX = /\\d\\d/; // 00 - 99\nconst FOUR_NUMERICS_REGEX = /\\d{4}/; // 0000 - 9999\nconst NON_NUMERIC_REGEX = /[^0-9]/g;\n\nconst YEAR = 'year';\nconst MONTH = 'month';\nconst DAY = 'day';\nconst HOUR = 'hour';\nconst MINUTE = 'minute';\nconst SECOND = 'second';\n\ninterface ParseFlagMark {\n year: number;\n month: number;\n day: number;\n hour: number;\n minute: number;\n second: number;\n date: Date;\n}\n\ntype ParseFlagCallBackReturn = any;\n\ntype ParseFlagRegExp = RegExp | ((locale: any) => RegExp);\ntype ParseFlagCallBack = (input: string) => ParseFlagCallBackReturn;\n\ninterface ParseFlag {\n [key: string]: [ParseFlagRegExp, ParseFlagCallBack];\n}\n\nconst parseFlags: ParseFlag = {};\n\nconst addParseFlag = (token: string | string[], regex: ParseFlagRegExp, callback) => {\n const tokens = Array.isArray(token) ? token : [token];\n let func: ParseFlagCallBack;\n if (typeof callback === 'string') {\n func = (input) => {\n const value = parseInt(input, 10);\n return { [callback]: value };\n };\n } else {\n func = callback;\n }\n tokens.forEach((key) => {\n parseFlags[key] = [regex, func];\n });\n};\n\naddParseFlag('yy', TWO_NUMERICS_REGEX, (input) => {\n const year = new Date().getFullYear();\n const cent = Math.floor(year / 100);\n let value = parseInt(input, 10);\n value = (value > 68 ? cent - 1 : cent) * 100 + value;\n return { [YEAR]: value };\n});\naddParseFlag('yyyy', FOUR_NUMERICS_REGEX, YEAR);\naddParseFlag('mm', TWO_NUMERICS_REGEX, (input) => ({ [MONTH]: parseInt(input, 10) - 1 }));\naddParseFlag('dd', TWO_NUMERICS_REGEX, DAY);\naddParseFlag('hh', TWO_NUMERICS_REGEX, HOUR);\naddParseFlag('MM', TWO_NUMERICS_REGEX, MINUTE);\naddParseFlag('ss', TWO_NUMERICS_REGEX, SECOND);\n\ntype DateArgs = [number, number, number, number, number, number];\n\nconst getFullInputArray = (input: Array<number | undefined>, backupDate = new Date()) => {\n const result: DateArgs = [0, 0, 1, 0, 0, 0];\n const backupArr = [\n backupDate.getFullYear(),\n backupDate.getMonth(),\n backupDate.getDate(),\n backupDate.getHours(),\n backupDate.getMinutes(),\n backupDate.getSeconds(),\n ];\n\n let useBackup = true;\n for (let i = 0; i < 7; i++) {\n if (input[i] === undefined) {\n result[i] = useBackup ? backupArr[i] : result[i];\n } else {\n result[i] = input[i]!;\n useBackup = false;\n }\n }\n return result;\n};\n\nconst createDate = (year: number, month: number, day: number, hour: number, minute: number, second: number): Date => {\n if (!(year < 100 && year >= 0)) {\n return new Date(year, month, day, hour, minute, second);\n }\n\n const date = new Date(year + 400, month, day, hour, minute, second);\n if (isFinite(date.getFullYear())) {\n date.setFullYear(year);\n }\n return date;\n};\n\nconst makeParser = (dateString: string, format: string) => {\n const tokens = format.match(FORMATTING_TOKENS);\n if (!tokens) {\n throw new Error();\n }\n const { length } = tokens;\n let mark: Partial<ParseFlagMark> = {};\n for (let i = 0; i < length; i += 1) {\n const token = tokens[i];\n const parseTo = parseFlags[token];\n if (!parseTo) {\n const word = token.replace(/^\\[|\\]$/g, '');\n if (dateString.indexOf(word) === 0) {\n dateString = dateString.substr(word.length);\n } else {\n throw new Error('not match');\n }\n } else {\n const regex = parseTo[0] as RegExp;\n const parser = parseTo[1];\n const value = (regex.exec(dateString) || [])[0];\n const obj = parser(value);\n mark = { ...mark, ...obj };\n dateString = dateString.replace(value, '');\n }\n }\n return mark;\n};\n\nconst getCleanDateString = (dirtyDateString: string, format: string) => {\n if (dirtyDateString.length === format.length) {\n return dirtyDateString;\n }\n\n const separator = dirtyDateString.match(NON_NUMERIC_REGEX)[0];\n\n // pad signle digits to follow supported dateformats\n return dirtyDateString\n .split(separator)\n .map((s) => (s.length === 1 ? '0' + s : s))\n .join(separator);\n};\n\nconst getDateParts: (dirtyDateString: string, format: string) => Partial<ParseFlagMark> = (\n dirtyDateString: string,\n format: string\n) => {\n const dateString = getCleanDateString(dirtyDateString, format);\n\n return makeParser(dateString, format);\n};\n\nexport const toDate = (dirtyDateString: string | undefined, format: string): Date | undefined => {\n try {\n const { backupDate = new Date() } = {};\n const { year, month, day, hour, minute, second, date } = getDateParts(dirtyDateString, format);\n if (date != null) {\n return date;\n }\n const inputArray = [year, month, day, hour, minute, second];\n const result = getFullInputArray(inputArray, backupDate);\n return createDate(...result);\n } catch (e) {\n return new Date(NaN);\n }\n};\n\nexport interface PointerDate {\n year: number;\n month: number;\n day: number;\n hours: number;\n minutes: number;\n seconds: number;\n}\n\nexport interface CalendarGridArgs {\n firstDateOfBox: Date;\n minDate?: Date;\n maxDate?: Date;\n dateFormat: SixDateFormats;\n pointerDate: { month: number; year: number; day: number };\n allowedDates: (date: Date) => boolean;\n locale: 'en' | 'de' | 'fr' | 'it' | 'es';\n selectedDate?: Date;\n}\n\nexport const createCalendarGrid: (calendarGridArguments: CalendarGridArgs) => CalendarCell[][] = (\n calendarGridArguments: CalendarGridArgs\n) => {\n const { firstDateOfBox, allowedDates, dateFormat, selectedDate, minDate, maxDate, pointerDate } =\n calendarGridArguments;\n\n const weekDatePointer = new Date(firstDateOfBox);\n const dayDatePointer = new Date(firstDateOfBox);\n\n let calendar: CalendarCell[][] = [];\n\n do {\n let row: CalendarCell[] = [];\n do {\n row = [\n ...row,\n {\n date: new Date(dayDatePointer),\n display: formatDate(dayDatePointer, dateFormat),\n dateString: formatDate(dayDatePointer, dateFormat),\n label: day(dayDatePointer).toString(),\n isToday: isSameDay(dayDatePointer, now()),\n isSelected: selectedDate && isSameDay(dayDatePointer, selectedDate),\n isDisabled: !allowedDates(dayDatePointer) || !isInRange(dayDatePointer, minDate, maxDate),\n isOutdated: pointerDate.month !== dayDatePointer.getMonth() || !isInRange(dayDatePointer, minDate, maxDate),\n },\n ];\n dayDatePointer.setDate(dayDatePointer.getDate() + 1);\n } while (isSameWeek(dayDatePointer, weekDatePointer));\n calendar = [...calendar, row];\n weekDatePointer.setDate(weekDatePointer.getDate() + 7);\n } while (isSameMonth(new Date(pointerDate.year, pointerDate.month, pointerDate.day), dayDatePointer));\n return calendar;\n};\n\n/**\n * Returns a range of numbers around the given number grouped into buckets of 5.\n * @param number the given number around which you want to get the other numbers\n * @param range range of numbers to include in the result\n */\nexport function rangeAround(number: number, range: number): number[][] {\n const itemsPerGroup = 5;\n return [...Array(range).keys()]\n .map((n) => n + number - Math.floor(range / 2))\n .reduce((curr, item, index) => {\n if (index % itemsPerGroup === 0) {\n curr.push([]);\n }\n curr[curr.length - 1].push(item);\n return curr;\n }, [] as number[][]);\n}\n","// eslint-disable-next-line @stencil-community/ban-exported-const-enums\nexport enum SixDateFormats {\n DDMMYYY_DOT = 'dd.mm.yyyy',\n YYYYMMDD_DASH = 'yyyy-mm-dd',\n DDMMYYYY_DASH = 'dd-mm-yyyy',\n DDMMYYYY_SLASH = 'dd/mm/yyyy',\n YYYYMMDD_SLASH = 'yyyy/mm/dd',\n DDMMYY_DOT = 'dd.mm.yy',\n YYMMDD_DASH = 'yy-mm-dd',\n DDMMYY_DASH = 'dd-mm-yy',\n DDMMYY_SLASH = 'dd/mm/yy',\n YYMMDD_SLASH = 'yy/mm/dd',\n\n DDMMYYY_DOT_TIME = 'dd.mm.yyyy hh:MM:ss',\n YYYYMMDD_DASH_TIME = 'yyyy-mm-dd hh:MM:ss',\n DDMMYYYY_DASH_TIME = 'dd-mm-yyyy hh:MM:ss',\n DDMMYYYY_SLASH_TIME = 'dd/mm/yyyy hh:MM:ss',\n YYYYMMDD_SLASH_TIME = 'yyyy/mm/dd hh:MM:ss',\n DDMMYY_DOT_TIME = 'dd.mm.yy hh:MM:ss',\n YYMMDD_DASH_TIME = 'yy-mm-dd hh:MM:ss',\n DDMMYY_DASH_TIME = 'dd-mm-yy hh:MM:ss',\n DDMMYY_SLASH_TIME = 'dd/mm/yy hh:MM:ss',\n YYMMDD_SLASH_TIME = 'yy/mm/dd hh:MM:ss',\n}\n","import { h } from '@stencil/core';\nimport { DateLocale, now } from '../../../utils/date-util';\n\ninterface MonthSelectionParams {\n locale: DateLocale;\n selectedDate?: Date;\n onClickMonthCell: (month: string) => void;\n}\nexport const MonthSelection = (monthSelectionParams: MonthSelectionParams) => {\n const locale = monthSelectionParams.locale;\n const isToday = (value: string) => locale.monthsShort[now().getMonth()] === value;\n\n const isSelectedMonth = (value: string) =>\n monthSelectionParams.selectedDate?.getMonth() === locale.monthsShort.findIndex((m) => m === value);\n\n return (\n <table class=\"datepicker-table\" part=\"month-selection\">\n <tbody>\n {locale.monthsShortGrouped.map((row: string[]) => (\n <tr class=\"datepicker-table__row\">\n {row.map((month) => (\n <td\n onClick={() => monthSelectionParams.onClickMonthCell(month)}\n class={{\n 'datepicker-table__cell': true,\n 'datepicker-table__cell--is-today': isToday(month),\n 'datepicker-table__cell--is-selected': isSelectedMonth(month),\n }}\n >\n {month}\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n );\n};\n","import { h } from '@stencil/core';\nimport { DateLocale } from '../../../utils/date-util';\nimport { CalendarCell } from '../six-datepicker';\n\ninterface DaySelectionParams {\n locale: DateLocale;\n calendarGrid: CalendarCell[][];\n onClickDateCell: (cell: CalendarCell) => void;\n}\nexport const DaySelection = (daySelectionParams: DaySelectionParams) => {\n return (\n <table class=\"datepicker-table\" part=\"day-selection\">\n <thead part=\"weekday-header\">\n {daySelectionParams.locale.weekdaysMin.map((weekday) => (\n <th class=\"datepicker__cell\">{weekday}</th>\n ))}\n </thead>\n <tbody>\n {daySelectionParams.calendarGrid.map((row) => (\n <tr class=\"datepicker-table__row\">\n {row.map((cell) => (\n <td\n data-date={cell.dateString}\n onClick={() => daySelectionParams.onClickDateCell(cell)}\n class={{\n 'datepicker-table__cell': true,\n 'datepicker-table__cell--is-today': cell.isToday,\n 'datepicker-table__cell--is-selected': cell.isSelected,\n 'datepicker-table__cell--is-outdated': cell.isOutdated,\n 'datepicker-table__cell--is-disabled': cell.isDisabled,\n 'datepicker-table__cell--is-selectable': !cell.isDisabled,\n }}\n >\n {cell.label}\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n );\n};\n","import { now } from '../../../utils/date-util';\nimport { h } from '@stencil/core';\n\ninterface YearSelectionParams {\n selectedDate?: Date;\n yearSelection: number[][];\n onClickYearCell: (year: number) => void;\n}\nexport const YearSelection = (yearSelectionParams: YearSelectionParams) => {\n return (\n <table class=\"datepicker-table\" part=\"year-selection\">\n <tbody>\n {yearSelectionParams.yearSelection.map((row) => (\n <tr class=\"datepicker-table__row\">\n {row.map((year) => (\n <td\n onClick={() => yearSelectionParams.onClickYearCell(year)}\n class={{\n 'datepicker-table__cell': true,\n 'datepicker-table__cell--is-today': now().getFullYear() === year,\n 'datepicker-table__cell--is-selected': yearSelectionParams.selectedDate?.getFullYear() === year,\n }}\n >\n {year}\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n );\n};\n","@import 'src/global/component';\n\n:host {\n display: block;\n font-family: var(--six-font-family);\n}\n\n.datepicker {\n &__container {\n position: relative;\n }\n\n &__popup {\n min-width: 400px;\n background-color: white;\n padding: 0.5em 0.5em 1.5em;\n box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%);\n user-select: none;\n position: absolute;\n z-index: var(--six-z-index-dropdown);\n right: 0;\n left: 0;\n\n &--is-up {\n bottom: 100%;\n // fix problem where you would need to jump around with the cursor when switching months and\n // its a dropup since not all months have the same height\n min-height: 382px;\n }\n\n &--is-inline {\n position: initial;\n box-shadow: none;\n border: 1px solid var(--six-color-web-rock-400);\n }\n }\n}\n\n.datepicker-header {\n display: flex;\n justify-content: space-between;\n border-bottom: 1px solid var(--six-color-web-rock-400);\n padding: 0.5em;\n margin-bottom: 1em;\n\n & svg {\n fill: var(--six-color-web-rock-900);\n stroke: none;\n }\n\n &__btn {\n cursor: pointer;\n width: 2.5em;\n height: 2.5em;\n display: flex;\n vertical-align: middle;\n align-items: center;\n justify-content: center;\n\n &:hover {\n background-color: var(--six-color-web-rock-100);\n border-radius: 100%;\n }\n }\n\n &__label {\n display: flex;\n\n & > div {\n cursor: pointer;\n padding: 0.5em;\n display: flex;\n vertical-align: middle;\n align-items: center;\n justify-content: center;\n\n &:hover {\n background-color: var(--six-color-web-rock-100);\n }\n }\n }\n}\n\n.datepicker-table {\n width: 100%;\n\n &__cell {\n text-align: center;\n width: 2.5rem;\n height: 2.5rem;\n cursor: pointer;\n\n &:hover {\n background-color: var(--six-color-web-rock-100);\n }\n\n &--is-today {\n border: 1px solid var(--six-color-web-rock-400);\n }\n\n &--is-selected {\n background-color: var(--six-color-red);\n color: var(--six-color-white);\n }\n\n &--is-disabled {\n background-color: var(--six-color-web-rock-200);\n cursor: initial;\n\n &:hover {\n background-color: var(--six-color-web-rock-200);\n }\n }\n\n &--is-outdated {\n color: var(--six-color-web-rock-400);\n }\n }\n}\n\n// Clearable\n.datepicker-clear {\n display: inline-flex;\n align-items: center;\n font-size: inherit;\n color: var(--six-input-icon-color);\n border: none;\n background: none;\n padding: 0;\n transition: var(--six-transition-fast) color;\n cursor: pointer;\n\n &:hover {\n color: var(--six-input-icon-color-hover);\n }\n\n &:focus {\n outline: none;\n }\n\n &--right {\n right: 0;\n position: absolute;\n }\n\n &--left {\n right: 35px;\n position: absolute;\n }\n}\n\n.input--empty .datepicker-clear {\n visibility: hidden;\n}\n\n// Icon position\n.prefix {\n cursor: pointer;\n\n &--right {\n right: 0;\n display: inline-flex;\n position: absolute;\n font-size: inherit;\n color: var(--six-input-icon-color);\n border: none;\n background: none;\n margin-right: var(--six-input-spacing-medium);\n transition: var(--six-transition-fast) color;\n }\n}\n\n// time-picker\nsix-timepicker::part(popup) {\n border: none;\n padding: 0.5em 0.5em 0;\n min-height: 0;\n}\n","import { Component, Element, Event, EventEmitter, h, Listen, Method, Prop, State, Watch } from '@stencil/core';\nimport {\n createCalendarGrid,\n day,\n formatDate,\n getFirstDayOfTheWeek,\n hours,\n i18nDate,\n isValidDate,\n isValidDateString,\n minutes,\n month,\n now,\n PointerDate,\n rangeAround,\n removeTime,\n seconds,\n toDate,\n year,\n} from '../../utils/date-util';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { debounce, debounceEvent, DEFAULT_DEBOUNCE_FAST } from '../../utils/execution-control';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { SixDateFormats } from './six-date-formats';\nimport { MonthSelection } from './components/month-selection';\nimport { DaySelection } from './components/day-selection';\nimport { YearSelection } from './components/year-selection';\nimport { SixTimepickerChange } from '../six-timepicker/six-timepicker';\nimport {\n adjustPopupForHoisting,\n adjustPopupForSmallScreens,\n calcIsDropDownContentUp,\n movePopup,\n} from '../../utils/popup';\n\nconst NUMBER_OF_YEARS_SHOWN = 25;\n\nconst MIN_POPUP_HEIGHT = 400;\n\nexport type SixDatepickerSelectPayload = Date | undefined | null;\n\nexport interface CalendarCell {\n date: Date;\n dateString: string;\n display: string;\n isDisabled: boolean;\n isOutdated: boolean;\n isSelected: boolean;\n isToday: boolean;\n label: string;\n}\n\nenum SelectionMode {\n DAY = 'day',\n MONTH = 'month',\n YEAR = 'year',\n}\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define a footer for the date picker.\n * @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.\n */\n@Component({\n tag: 'six-datepicker',\n styleUrl: 'six-datepicker.scss',\n shadow: true,\n})\nexport class SixDatepicker {\n private eventListeners = new EventListeners();\n private inputElement?: HTMLSixInputElement;\n private popup?: HTMLElement;\n private wrapper?: HTMLElement;\n private selectedDate?: Date;\n\n @Element() host!: HTMLSixDatepickerElement;\n\n @State() private pointerDate = SixDatepicker.getCurrentDateAsPointer();\n @State() selectionMode: SelectionMode = SelectionMode.DAY;\n @State() isDropDownContentUp = false;\n\n /**\n * Set the type.\n */\n @Prop() type: 'date' | 'date-time' = 'date';\n\n /**\n * The language used to render the weekdays and months.\n */\n @Prop() locale: 'en' | 'de' | 'fr' | 'it' | 'es' = 'en';\n\n /** Indicates whether or not the calendar dropdown is open on startup. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** Indicates whether or not the calendar should be shown as an inline (always open) component */\n @Prop({ reflect: true }) inline = false;\n\n /**\n * If `true` the user can only select a date via the component in the popup, but not directly edit the input field.\n */\n @Prop() readonly = false;\n\n /**\n * If `true` the component is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Callback to determine which date in the datepicker should be selectable.\n * the callback function will get a datestring as an argument, e.g. '2021-07-04'\n *\n * Usage e.g.:\n * const datepicker = document.getElementById('allowed-date-picker');\n * datepicker.allowedDates = datestring => parseInt(datestring.split('-')[2], 10) % 2 === 0;\n */\n @Prop() allowedDates: (date: Date) => boolean = () => true;\n\n /**\n * The minimum datetime allowed. Value must be a date object\n */\n @Prop() min?: Date;\n\n /**\n * The maximum datetime allowed. Value must be a date object\n */\n @Prop() max?: Date;\n\n /**\n * Closes the datepicker dropdown after selection\n */\n @Prop() closeOnSelect = this.type === 'date';\n\n /**\n * The enforced placement of the dropdown panel.\n */\n @Prop() placement?: 'top' | 'bottom';\n\n /** Datepicker size. */\n @Prop() size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /**\n * The date to defines where the datepicker popup starts. The prop accepts ISO 8601 date strings (YYYY-MM-DD).\n */\n @Prop() defaultDate?: string;\n\n /**\n * The placeholder defines what text to be shown on the input element\n */\n @Prop() placeholder?: string;\n\n /**\n * The value of the form field, which accepts a date object.\n */\n @Prop({ mutable: true }) value?: Date;\n\n /** The label text. */\n @Prop() label = '';\n\n /** The error message shown, if `invalid` is set to true. */\n @Prop() errorText: string | string[] = '';\n\n /** The number of error texts to be shown (if the error-text slot isn't used). Defaults to 1 */\n @Prop() errorTextCount?: number;\n\n /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */\n @Prop({ reflect: true }) invalid = false;\n\n /** The dropdown will close when the user interacts outside of this element (e.g. clicking). */\n @Prop() containingElement?: HTMLElement;\n\n /** 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'\n * */\n @Prop() dateFormat: SixDateFormats = SixDateFormats.DDMMYYY_DOT;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger the `dateChange` event after each keystroke.\n */\n @Prop() debounce = DEFAULT_DEBOUNCE_FAST;\n\n /** The input's name attribute. */\n @Prop({ reflect: true }) name = '';\n\n /** Set to true to add a clear button when the input is populated. */\n @Prop() clearable = false;\n\n /** Set the position of the icon */\n @Prop() iconPosition: 'left' | 'right' = 'left';\n\n /**\n * Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n * `overflow: auto|scroll`.\n */\n @Prop() hoist = false;\n\n @Watch('debounce')\n protected debounceChanged() {\n this.sixSelect = debounceEvent(this.sixSelect, this.debounce);\n }\n\n /**\n * Update the native input element when the value changes\n */\n @Watch('value')\n protected valueChanged() {\n if (this.value != null && !isValidDate(this.value)) {\n console.warn('invalid date value: ', this.value);\n this.value = undefined;\n this.sixSelect.emit(this.value);\n }\n this.selectedDate = this.value;\n this.updatePointerDates();\n }\n\n /**\n * Emitted when a option got selected.\n */\n @Event({ eventName: 'six-datepicker-select' }) sixSelect!: EventEmitter<SixDatepickerSelectPayload>;\n\n /**\n * Emitted when the clear button is activated.\n */\n @Event({ eventName: 'six-datepicker-clear' }) sixClear!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when a option got selected.\n */\n @Event({ eventName: 'six-datepicker-blur' }) sixBlur!: EventEmitter<SixDatepickerSelectPayload>;\n\n @Listen('resize', { target: 'window' })\n async resizeHandler() {\n this.updateDropdownDirection();\n this.moveOpenHoistedPopup();\n this.adjustPopupPosition();\n }\n\n @Listen('scroll', { target: 'window' })\n async scrollHandler() {\n this.updateDropdownDirection();\n this.moveOpenHoistedPopup();\n }\n\n private moveOpenHoistedPopup() {\n movePopup(this.hoist, this.open, this.popup, this.inputElement, this.wrapper, MIN_POPUP_HEIGHT);\n }\n\n get container() {\n return this.containingElement || this.host;\n }\n\n get firstDateOfBox(): Date {\n const date = new Date(this.pointerDate.year, this.pointerDate.month, 1);\n return getFirstDayOfTheWeek(date);\n }\n\n /** Sets focus on the datepickers input. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.inputElement?.setFocus(options);\n }\n\n get calendarGrid() {\n return createCalendarGrid({\n firstDateOfBox: this.firstDateOfBox,\n allowedDates: this.allowedDates,\n dateFormat: this.dateFormat,\n locale: this.locale,\n selectedDate: this.selectedDate,\n minDate: this.min,\n maxDate: this.max,\n pointerDate: this.pointerDate,\n });\n }\n\n private updateDropdownDirection() {\n if (this.inputElement == null || this.wrapper == null) {\n return;\n }\n this.isDropDownContentUp = calcIsDropDownContentUp(this.inputElement, this.wrapper, MIN_POPUP_HEIGHT);\n }\n\n private getMonthStringForIndex(index: number) {\n return i18nDate[this.locale].months[index];\n }\n\n private previousUnit = () => {\n if (this.selectionMode === SelectionMode.DAY) {\n this.previousMonth();\n } else if (this.selectionMode === SelectionMode.MONTH) {\n this.previousYear();\n } else if (this.selectionMode === SelectionMode.YEAR) {\n this.previousYearGroup();\n }\n };\n\n private previousYear() {\n this.pointerDate = { ...this.pointerDate, year: this.pointerDate.year - 1 };\n }\n\n private previousYearGroup() {\n this.pointerDate = { ...this.pointerDate, year: this.pointerDate.year - NUMBER_OF_YEARS_SHOWN };\n }\n\n private previousMonth() {\n if (this.pointerDate.month === 0) {\n this.pointerDate = { year: this.pointerDate.year - 1, month: 11, day: 1, hours: 0, minutes: 0, seconds: 0 };\n } else {\n this.pointerDate = {\n year: this.pointerDate.year,\n month: this.pointerDate.month - 1,\n day: 1,\n hours: 0,\n minutes: 0,\n seconds: 0,\n };\n }\n }\n\n private nextUnit = () => {\n if (this.selectionMode === SelectionMode.DAY) {\n this.nextMonth();\n } else if (this.selectionMode === SelectionMode.MONTH) {\n this.nextYear();\n } else if (this.selectionMode === SelectionMode.YEAR) {\n this.nextYearGroup();\n }\n };\n\n private nextMonth() {\n if (this.pointerDate.month === 11) {\n this.pointerDate = { year: this.pointerDate.year + 1, month: 0, day: 1, hours: 0, minutes: 0, seconds: 0 };\n } else {\n this.pointerDate = {\n year: this.pointerDate.year,\n month: this.pointerDate.month + 1,\n day: 1,\n hours: 0,\n minutes: 0,\n seconds: 0,\n };\n }\n }\n\n private nextYear() {\n this.pointerDate = { ...this.pointerDate, year: this.pointerDate.year + 1 };\n }\n\n private nextYearGroup() {\n this.pointerDate = { ...this.pointerDate, year: this.pointerDate.year + NUMBER_OF_YEARS_SHOWN };\n }\n\n private openCalendar() {\n if (!this.open && !this.disabled) {\n this.open = true;\n this.setupEventListenersForOpenPopup();\n }\n }\n\n private setupEventListenersForOpenPopup() {\n this.eventListeners.add(document, 'keydown', this.handleDocumentKeyDown);\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n }\n\n private handleDocumentKeyDown = (event: Event) => {\n const keyboardEvent = event as KeyboardEvent;\n // Close when escape is pressed\n if (this.open && keyboardEvent.key === 'Escape') {\n keyboardEvent.stopPropagation();\n this.closePopup();\n void this.inputElement?.setFocus();\n }\n\n // Handle tabbing\n if (keyboardEvent.key === 'Tab') {\n this.closePopup();\n }\n };\n\n private handleDocumentMouseDown = (event: Event) => {\n // Close when clicking outside the containing element\n const path = event.composedPath() as EventTarget[];\n if (!path.includes(this.container)) {\n this.closePopup();\n return;\n }\n };\n\n private handleClearClick = async (event: MouseEvent) => {\n event.stopPropagation();\n await this.select(undefined);\n this.sixClear.emit();\n };\n\n private closePopup() {\n if (this.inline) {\n return;\n }\n\n this.open = false;\n this.eventListeners.remove(document, 'keydown', this.handleDocumentKeyDown);\n this.eventListeners.remove(document, 'mousedown', this.handleDocumentMouseDown);\n this.selectionMode = SelectionMode.DAY;\n }\n\n private updatePointerDates() {\n const date = this.getPointerDate();\n if (this.differsFromPointerDate(date)) {\n this.pointerDate = {\n year: year(date),\n month: month(date),\n day: day(date),\n hours: hours(date),\n minutes: minutes(date),\n seconds: seconds(date),\n };\n }\n }\n\n private differsFromPointerDate(date?: Date): boolean {\n return (\n this.pointerDate.day !== day(date) ||\n this.pointerDate.month !== month(date) ||\n this.pointerDate.year !== year(date) ||\n this.pointerDate.hours !== hours(date) ||\n this.pointerDate.minutes !== minutes(date) ||\n this.pointerDate.seconds !== seconds(date)\n );\n }\n\n private getPointerDate(): Date | undefined {\n if (this.selectedDate !== undefined && this.selectedDate !== null) {\n return this.selectedDate;\n }\n if (this.defaultDate == null) {\n return this.type === 'date' ? removeTime(now()) : now();\n } else {\n return toDate(this.defaultDate, this.dateFormat);\n }\n }\n\n private updateValue(newDate?: Date) {\n this.updateIfChanged(newDate);\n }\n\n private updateIfChanged(newDate?: Date) {\n if (this.value?.getTime() === newDate?.getTime()) {\n return;\n }\n this.value = newDate;\n this.sixSelect.emit(this.value);\n }\n\n /**\n * Selects an option\n */\n @Method()\n async select(datestring?: string) {\n if (datestring == null) {\n this.updateValue(undefined);\n } else {\n const newDate = toDate(datestring, this.dateFormat);\n newDate?.setHours(this.pointerDate.hours, this.pointerDate.minutes, this.pointerDate.seconds);\n this.updateValue(newDate);\n }\n\n this.updatePointerDates();\n\n if (this.closeOnSelect) {\n this.closePopup();\n }\n }\n\n private onTimepickerChange = (sixTimepickerChange: CustomEvent<SixTimepickerChange>) => {\n const time = sixTimepickerChange.detail.value;\n const newDate = new Date();\n\n if (this.selectedDate != null) {\n newDate.setFullYear(this.selectedDate.getFullYear(), this.selectedDate.getMonth(), this.selectedDate.getDate());\n }\n\n if (time != null) {\n const hours = time.hours;\n const minutes = time.minutes;\n const seconds = time.seconds;\n if (hours != null) {\n newDate.setHours(hours, minutes, seconds);\n }\n }\n\n this.updateValue(newDate);\n this.updatePointerDates();\n };\n\n private onClickDateCell = (cell: CalendarCell) => {\n if (!cell.isDisabled) {\n void this.select(cell.dateString);\n }\n };\n\n private onClickMonthCell = (selectedMonth: string) => {\n const month = i18nDate[this.locale].monthsShort.findIndex((monthShort) => monthShort === selectedMonth);\n this.pointerDate = { ...this.pointerDate, month };\n this.selectionMode = SelectionMode.DAY;\n };\n\n private onClickYearCell = (year: number) => {\n this.pointerDate = { ...this.pointerDate, year };\n this.selectionMode = SelectionMode.DAY;\n };\n\n private handleInputChange = (event: Event) => {\n if (this.inputElement == null) {\n return;\n }\n event.stopPropagation();\n\n const inputValue = this.inputElement.value;\n if (!isValidDateString(inputValue, this.dateFormat)) {\n return;\n }\n\n const inputValueDate = toDate(inputValue, this.dateFormat);\n\n if (inputValueDate === undefined) {\n return;\n }\n\n this.updateIfChanged(inputValueDate);\n const datesOnly = inputValue.replace(/[^\\d]/g, '');\n if (datesOnly.length >= 6) {\n const date = toDate(inputValue, this.dateFormat);\n const dateAsString = formatDate(date, this.dateFormat);\n if (isValidDateString(dateAsString, this.dateFormat)) {\n this.selectedDate = toDate(dateAsString, this.dateFormat);\n this.updatePointerDates();\n this.updateValue(this.selectedDate);\n }\n }\n };\n\n private handleOnBlur = (event: Event) => {\n event.stopPropagation();\n\n // clear the value if the user deleted the date\n if (this.inputElement?.value === '' && isValidDate(this.value)) {\n this.value = undefined;\n this.sixSelect.emit(this.value);\n }\n\n const currentDate = toDate(this.inputElement?.value, this.dateFormat);\n if (isValidDate(currentDate) && this.value?.getTime() !== currentDate?.getTime()) {\n // Set the value if the input field's value has changed. This can happen if the blur occurs\n // before the change event had a chance to fire due to its debouncing.\n this.value = currentDate;\n }\n if (this.inputElement != null) {\n this.inputElement.value = formatDate(this.value, this.dateFormat);\n }\n this.sixBlur.emit(this.value);\n };\n\n componentWillLoad() {\n this.selectedDate = this.value;\n this.updatePointerDates();\n this.updateValue(this.value);\n\n if (this.inline) {\n this.open = true;\n }\n\n if (this.open) {\n this.setupEventListenersForOpenPopup();\n }\n }\n\n componentDidLoad() {\n if (this.inputElement != null) {\n this.eventListeners.add(this.inputElement, 'six-input-input', debounce(this.handleInputChange, this.debounce));\n this.eventListeners.add(this.inputElement, 'six-input-blur', this.handleOnBlur);\n }\n }\n\n componentDidRender() {\n this.adjustPopupPosition();\n }\n\n private renderHeader() {\n return (\n <header class=\"datepicker-header\" part=\"header\">\n <div class=\"datepicker-header__btn prev\" onClick={this.previousUnit}>\n <svg viewBox=\"0 5 13 13\" width=\"14\" height=\"23\">\n <path d=\"M11.67 3.87L9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z\" />\n </svg>\n </div>\n\n <div class=\"datepicker-header__label\">\n {this.selectionMode === SelectionMode.DAY && (\n <div onClick={() => (this.selectionMode = SelectionMode.MONTH)}>\n <span class=\"datepicker-header__label-month\">{this.getMonthStringForIndex(this.pointerDate.month)}</span>\n <span>\n <svg viewBox=\"-3 -4 24 24\" width=\"20\" height=\"20\">\n <polyline points=\"6 9 12 15 18 9\" />\n </svg>\n </span>\n </div>\n )}\n\n {this.selectionMode !== SelectionMode.YEAR && (\n <div onClick={() => (this.selectionMode = SelectionMode.YEAR)}>\n <span class=\"datepicker-header__label-year\">{this.pointerDate.year}</span>\n <span>\n <svg viewBox=\"-3 -4 24 24\" width=\"20\" height=\"20\">\n <polyline points=\"6 9 12 15 18 9\" />\n </svg>\n </span>\n </div>\n )}\n\n {this.selectionMode === SelectionMode.YEAR && (\n <div>\n {this.pointerDate.year - Math.floor(NUMBER_OF_YEARS_SHOWN / 2)} –{' '}\n {this.pointerDate.year + Math.floor(NUMBER_OF_YEARS_SHOWN / 2)}\n </div>\n )}\n </div>\n\n <div class=\"datepicker-header__btn next\" onClick={this.nextUnit}>\n <svg viewBox=\"5 5 13 13\" width=\"14\" height=\"23\">\n <path d=\"M5.88 4.12L13.76 12l-7.88 7.88L8 22l10-10L8 2z\" />\n </svg>\n </div>\n </header>\n );\n }\n\n private renderBody() {\n switch (this.selectionMode) {\n case SelectionMode.DAY:\n return (\n <DaySelection\n locale={i18nDate[this.locale]}\n calendarGrid={this.calendarGrid}\n onClickDateCell={this.onClickDateCell}\n />\n );\n case SelectionMode.MONTH:\n return (\n <MonthSelection\n locale={i18nDate[this.locale]}\n selectedDate={this.selectedDate}\n onClickMonthCell={this.onClickMonthCell}\n />\n );\n case SelectionMode.YEAR:\n return (\n <YearSelection\n selectedDate={this.selectedDate}\n yearSelection={rangeAround(this.pointerDate.year, NUMBER_OF_YEARS_SHOWN)}\n onClickYearCell={this.onClickYearCell}\n />\n );\n }\n }\n\n private renderCustomIcon() {\n const icon = hasSlot(this.host, 'custom-icon') ? (\n <slot name=\"custom-icon\"></slot>\n ) : (\n <six-icon size={this.size === 'large' ? 'medium' : this.size}>today</six-icon>\n );\n\n return (\n <span\n slot=\"prefix\"\n part=\"icon\"\n class={{\n prefix: true,\n 'prefix--right': this.iconPosition === 'right',\n }}\n >\n {icon}\n </span>\n );\n }\n\n private renderClearable() {\n return (\n this.clearable && (\n <button\n slot=\"suffix\"\n class={{\n 'datepicker-clear': true,\n 'datepicker-clear--right': this.iconPosition === 'left',\n 'datepicker-clear--left': this.iconPosition === 'right',\n }}\n type=\"button\"\n onClick={this.handleClearClick}\n tabindex=\"-1\"\n >\n <six-icon size=\"small\">clear</six-icon>\n </button>\n )\n );\n }\n\n render() {\n this.adjustPopupPosition();\n\n return (\n <div ref={(el) => (this.wrapper = el)} class=\"datepicker__container\">\n <six-input\n part=\"base\"\n value={formatDate(this.value, this.dateFormat)}\n ref={(el) => (this.inputElement = el)}\n placeholder={this.placeholder}\n readonly={this.readonly}\n disabled={this.disabled}\n name={this.name}\n label={this.label}\n required={this.required}\n errorText={this.errorText}\n errorTextCount={this.errorTextCount}\n invalid={this.invalid}\n onClick={() => this.openCalendar()}\n size={this.size}\n class={{ 'input--empty': this.value == null }}\n >\n {this.renderCustomIcon()}\n {this.renderClearable()}\n {hasSlot(this.host, 'label') ? (\n <span slot=\"label\">\n <slot name=\"label\" />\n </span>\n ) : null}\n {hasSlot(this.host, 'error-text') ? (\n <span slot=\"error-text\">\n <slot name=\"error-text\"></slot>\n </span>\n ) : null}\n </six-input>\n {this.open && (\n <div\n part=\"popup\"\n ref={(el) => (this.popup = el)}\n class={{\n datepicker__popup: true,\n 'datepicker__popup--is-up': this.placement != null ? this.placement === 'top' : this.isDropDownContentUp,\n 'datepicker__popup--is-inline': this.inline,\n }}\n >\n {this.renderHeader()}\n {this.renderBody()}\n {this.type === 'date-time' && (\n <six-timepicker\n debounce={this.debounce}\n inline={true}\n onSix-timepicker-change-debounced={(event) => this.onTimepickerChange(event)}\n value={\n this.selectedDate?.getHours() +\n ':' +\n this.selectedDate?.getMinutes() +\n ':' +\n this.selectedDate?.getSeconds()\n }\n ></six-timepicker>\n )}\n <div class=\"datepicker__footer\">\n <slot />\n </div>\n </div>\n )}\n </div>\n );\n }\n\n private adjustPopupPosition() {\n adjustPopupForHoisting(\n this.hoist,\n this.popup,\n this.inputElement,\n this.wrapper,\n MIN_POPUP_HEIGHT,\n (isUp) => (this.isDropDownContentUp = isUp)\n );\n adjustPopupForSmallScreens(this.popup);\n }\n\n connectedCallback() {\n this.eventListeners.forward('six-datepicker-select', 'change', this.host);\n this.eventListeners.forward('six-datepicker-blur', 'blur', this.host);\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n\n private static getCurrentDateAsPointer(): PointerDate {\n return {\n year: year(now()),\n month: month(now()),\n day: day(now()),\n hours: hours(now()),\n minutes: minutes(now()),\n seconds: seconds(now()),\n };\n }\n}\n"],"mappings":"kOAAO,MAAMA,EAAYC,UAA2CA,IAAU,SAGvE,MAAMC,EAASD,GAA8CA,GAAS,KCKtE,MAAME,EAAW,CACtBC,GAAI,CACFC,OAAQ,CACN,UACA,WACA,QACA,QACA,MACA,OACA,OACA,SACA,YACA,UACA,WACA,YAEFC,YAAa,CAAC,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,OAC3FC,mBAAoB,CAClB,CAAC,MAAO,MAAO,MAAO,OACtB,CAAC,MAAO,MAAO,MAAO,OACtB,CAAC,MAAO,MAAO,MAAO,QAExBC,SAAU,CAAC,SAAU,UAAW,YAAa,WAAY,SAAU,WAAY,UAC/EC,cAAe,CAAC,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,OAC1DC,YAAa,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,OAEpDC,GAAI,CACFN,OAAQ,CACN,SACA,UACA,OACA,QACA,MACA,OACA,OACA,SACA,YACA,UACA,WACA,YAEFC,YAAa,CAAC,OAAQ,OAAQ,OAAQ,OAAQ,MAAO,OAAQ,OAAQ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AY,MAAAsG,SAAA,SAAAA,EAAE1M,gBAIzBmI,EAAA,OAAA5E,IAAA,2CAAK6E,MAAM,sBACTD,EAAA,QAAA5E,IAAA,+C,CAQJ,mBAAAkK,GACNyD,EACE1H,KAAKoE,MACLpE,KAAKqE,MACLrE,KAAKkB,aACLlB,KAAKsE,QACLzE,IACC8H,GAAU3H,KAAK4E,oBAAsB+C,IAExCC,EAA2B5H,KAAKqE,M,CAGlC,iBAAAwD,GACE7H,KAAKC,eAAe6H,QAAQ,wBAAyB,SAAU9H,KAAKwE,MACpExE,KAAKC,eAAe6H,QAAQ,sBAAuB,OAAQ9H,KAAKwE,K,CAGlE,oBAAAuD,GACE/H,KAAKC,eAAe+H,W,CAGd,8BAAO5E,GACb,MAAO,CACLrN,KAAMA,EAAKX,KACXa,MAAOA,EAAMb,KACbc,IAAKA,EAAId,KACTe,MAAOA,EAAMf,KACbiB,QAASA,EAAQjB,KACjBmB,QAASA,EAAQnB,K","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as t,h as
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as t,h as a,g as s}from"./p-48118ce8.js";import{u as e,l as o}from"./p-8227aaed.js";import{h as l}from"./p-0cebf1d2.js";import{M as r}from"./p-651293e7.js";const n=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{--width:31rem;display:contents}.dialog{display:flex;align-items:center;justify-content:center;position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--six-z-index-dialog);color:var(--six-color-web-rock-900)}.dialog:not(.dialog--visible){position:absolute;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;pointer-events:none;visibility:hidden}.dialog__panel{display:flex;flex-direction:column;z-index:2;width:var(--width);max-width:calc(100% - var(--six-spacing-xx-large));max-height:calc(100% - var(--six-spacing-xx-large));background-color:var(--six-panel-background-color);border-radius:var(--six-border-radius-medium);box-shadow:var(--six-shadow-large);opacity:0;transform:scale(0.8);transition:var(--six-transition-medium) opacity, var(--six-transition-medium) transform}.dialog__panel:focus{outline:none}@media screen and (max-width: 420px){.dialog__panel{max-height:80vh}}.dialog--open .dialog__panel{display:flex;opacity:1;transform:none}.dialog__header{flex:0 0 auto;display:flex}.dialog__title{flex:1 1 auto;font-size:var(--six-font-size-x-large);font-weight:var(--six-font-weight-bold);line-height:var(--six-line-height-dense);padding:var(--six-spacing-large) var(--six-spacing-large) var(--six-spacing-small)}.dialog__close{flex:0 0 auto;display:flex;align-items:center;font-size:var(--six-font-size-x-large);padding:0 var(--six-spacing-x-small)}.dialog__body{flex:1 1 auto;padding:var(--six-spacing-small) var(--six-spacing-large) var(--six-spacing-large);overflow:auto;-webkit-overflow-scrolling:touch}.dialog__footer{flex:0 0 auto;text-align:right;padding:var(--six-spacing-large)}.dialog__footer ::slotted(six-button:not(:first-of-type)){margin-left:var(--six-spacing-xx-small)}.dialog:not(.dialog--has-footer) .dialog__footer{display:none}.dialog__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--six-overlay-background-color);opacity:0;transition:var(--six-transition-medium) opacity}.dialog--open .dialog__overlay{opacity:0.8}";const d=n;let h=0;const c=class{constructor(a){i(this,a);this.sixShow=t(this,"six-dialog-show",7);this.sixAfterShow=t(this,"six-dialog-after-show",7);this.sixHide=t(this,"six-dialog-hide",7);this.sixAfterHide=t(this,"six-dialog-after-hide",7);this.sixInitialFocus=t(this,"six-dialog-initial-focus",7);this.sixOverlayDismiss=t(this,"six-dialog-overlay-dismiss",7);this.componentId=`dialog-${++h}`;this.willShow=false;this.willHide=false;this.handleCloseClick=()=>{this.hide()};this.handleKeyDown=i=>{if(i.key==="Escape"){this.hide()}};this.handleOverlayClick=()=>{const i=this.sixOverlayDismiss.emit();if(!i.defaultPrevented){this.hide()}};this.handleSlotChange=()=>{this.hasFooter=l(this.host,"footer")};this.handleTransitionEnd=i=>{const t=i.target;if(i.propertyName==="opacity"&&t.classList.contains("dialog__panel")){this.isVisible=this.open;this.willShow=false;this.willHide=false;this.open?this.sixAfterShow.emit():this.sixAfterHide.emit()}};this.hasFooter=false;this.isVisible=false;this.open=false;this.label="";this.noHeader=false}handleOpenChange(){this.open?this.show():this.hide()}connectedCallback(){this.modal=new r(this.host,{onFocusOut:()=>{var i;return(i=this.panel)===null||i===void 0?void 0:i.focus()}})}componentWillLoad(){this.handleSlotChange()}componentDidLoad(){if(this.open){this.show()}}disconnectedCallback(){e(this.host)}async show(){if(this.willShow||this.modal==null||this.panel==null||this.dialog==null){return}const i=this.panel;const t=this.sixShow.emit();if(t.defaultPrevented){this.open=false;return}this.willShow=true;this.isVisible=true;this.open=true;this.modal.activate();o(this.host);if(this.open){requestAnimationFrame((()=>{const t=this.sixInitialFocus.emit();if(!t.defaultPrevented){i.focus({preventScroll:true})}}))}}async hide(){if(this.willHide||this.modal==null){return}const i=this.sixHide.emit();if(i.defaultPrevented){this.open=true;return}this.willHide=true;this.open=false;this.modal.deactivate();e(this.host)}render(){return a("div",{key:"6f14cb488875cc193db6e577ba338514a548f938",ref:i=>this.dialog=i,part:"base",class:{dialog:true,"dialog--open":this.open,"dialog--visible":this.isVisible,"dialog--has-footer":this.hasFooter},onKeyDown:this.handleKeyDown,onTransitionEnd:this.handleTransitionEnd},a("div",{key:"a68c26974993aae32b5af10726994d49673c548e",part:"overlay",class:"dialog__overlay",onClick:this.handleOverlayClick}),a("div",{key:"d65b34ab367b255e11ec0153c5bbef8dea9b37bc",ref:i=>this.panel=i,part:"panel",class:"dialog__panel",role:"dialog","aria-modal":"true","aria-hidden":this.open?"false":"true","aria-label":this.noHeader?this.label:null,"aria-labelledby":!this.noHeader?`${this.componentId}-title`:null,tabIndex:0},!this.noHeader&&a("header",{key:"9134f6b97e1115ee8a4921ce8a43b7fff93cc9a4",part:"header",class:"dialog__header"},a("span",{key:"f373bc7278c75661c420cdd4cff713965988fa73",part:"title",class:"dialog__title",id:`${this.componentId}-title`},a("slot",{key:"23e17699f04a560f79127127eed5e2d93ef0a40d",name:"label"},this.label||String.fromCharCode(65279))),a("six-icon-button",{key:"f0cbdbbd0d99ae5307d0aaa7e543346549ac59b9",exportparts:"base:close-button",class:"dialog__close",name:"close",onClick:this.handleCloseClick})),a("div",{key:"7cef3cee366fa1b5dd2666e2cd38591092e599ec",part:"body",class:"dialog__body"},a("slot",{key:"f5547ca08f289964e90e1897de2c662cf2ef4ecf"})),a("footer",{key:"6fd4cc4b379881d0d773dcb7c169319ebbd1cc86",part:"footer",class:"dialog__footer"},a("slot",{key:"f16e994808340a7c7d92069769af0f191fcbaf19",name:"footer",onSlotchange:this.handleSlotChange}))))}get host(){return s(this)}static get watchers(){return{open:["handleOpenChange"]}}};c.style=d;export{c as six_dialog};
|
|
2
|
+
//# sourceMappingURL=p-bfb398c6.entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["sixDialogCss","SixDialogStyle0","id","SixDialog","this","componentId","willShow","willHide","handleCloseClick","hide","handleKeyDown","event","key","handleOverlayClick","sixOverlayDismiss","emit","defaultPrevented","handleSlotChange","hasFooter","hasSlot","host","handleTransitionEnd","target","propertyName","classList","contains","isVisible","open","sixAfterShow","sixAfterHide","handleOpenChange","show","connectedCallback","modal","Modal","onFocusOut","_a","panel","focus","componentWillLoad","componentDidLoad","disconnectedCallback","unlockBodyScrolling","dialog","sixShow","activate","lockBodyScrolling","requestAnimationFrame","sixInitialFocus","preventScroll","sixHide","deactivate","render","h","ref","el","part","class","onKeyDown","onTransitionEnd","onClick","role","noHeader","label","tabIndex","name","String","fromCharCode","exportparts","onSlotchange"],"sources":["src/components/six-dialog/six-dialog.scss?tag=six-dialog&encapsulation=shadow","src/components/six-dialog/six-dialog.tsx"],"sourcesContent":["@import 'src/global/component';\n@import 'src/global/mixins/hidden';\n\n/**\n * @prop --width: The preferred width of the dialog. Note that the dialog will shrink to accommodate smaller screens.\n */\n:host {\n --width: 31rem;\n\n display: contents;\n}\n\n.dialog {\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: var(--six-z-index-dialog);\n color: var(--six-color-web-rock-900);\n\n &:not(.dialog--visible) {\n @include hidden;\n }\n}\n\n.dialog__panel {\n display: flex;\n flex-direction: column;\n z-index: 2;\n width: var(--width);\n max-width: calc(100% - var(--six-spacing-xx-large));\n max-height: calc(100% - var(--six-spacing-xx-large));\n background-color: var(--six-panel-background-color);\n border-radius: var(--six-border-radius-medium);\n box-shadow: var(--six-shadow-large);\n opacity: 0;\n transform: scale(0.8);\n transition: var(--six-transition-medium) opacity, var(--six-transition-medium) transform;\n\n &:focus {\n outline: none;\n }\n}\n\n// Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone)\n@media screen and (max-width: 420px) {\n .dialog__panel {\n max-height: 80vh;\n }\n}\n\n.dialog--open .dialog__panel {\n display: flex;\n opacity: 1;\n transform: none;\n}\n\n.dialog__header {\n flex: 0 0 auto;\n display: flex;\n}\n\n.dialog__title {\n flex: 1 1 auto;\n font-size: var(--six-font-size-x-large);\n font-weight: var(--six-font-weight-bold);\n line-height: var(--six-line-height-dense);\n padding: var(--six-spacing-large) var(--six-spacing-large) var(--six-spacing-small);\n}\n\n.dialog__close {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: var(--six-font-size-x-large);\n padding: 0 var(--six-spacing-x-small);\n}\n\n.dialog__body {\n flex: 1 1 auto;\n padding: var(--six-spacing-small) var(--six-spacing-large) var(--six-spacing-large);\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n}\n\n.dialog__footer {\n flex: 0 0 auto;\n text-align: right;\n padding: var(--six-spacing-large);\n\n ::slotted(six-button:not(:first-of-type)) {\n margin-left: var(--six-spacing-xx-small);\n }\n}\n\n.dialog:not(.dialog--has-footer) .dialog__footer {\n display: none;\n}\n\n.dialog__overlay {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: var(--six-overlay-background-color);\n opacity: 0;\n transition: var(--six-transition-medium) opacity;\n}\n\n.dialog--open .dialog__overlay {\n opacity: 0.8;\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { lockBodyScrolling, unlockBodyScrolling } from '../../utils/scroll';\nimport { hasSlot } from '../../utils/slot';\nimport Modal from '../../utils/modal';\nimport { EmptyPayload } from '../../utils/types';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The dialog's content.\n * @slot label - The dialog's label. Alternatively, you can use the label prop.\n * @slot footer - The dialog's footer, usually one or more buttons representing various options.\n *\n * @part base - The component's base wrapper.\n * @part overlay - The overlay.\n * @part panel - The dialog panel (where the dialog and its content is rendered).\n * @part header - The dialog header.\n * @part title - The dialog title.\n * @part close-button - The close button.\n * @part body - The dialog body.\n * @part footer - The dialog footer.\n *\n */\n@Component({\n tag: 'six-dialog',\n styleUrl: 'six-dialog.scss',\n shadow: true,\n})\nexport class SixDialog {\n private componentId = `dialog-${++id}`;\n private dialog?: HTMLElement;\n private modal?: Modal;\n private panel?: HTMLElement;\n private willShow = false;\n private willHide = false;\n\n @Element() host!: HTMLSixDialogElement;\n\n @State() hasFooter = false;\n @State() isVisible = false;\n\n /** Indicates whether the dialog is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /**\n * The dialog's label as displayed in the header. You should always include a relevant label even when using\n * `no-header`, as it is required for proper accessibility.\n */\n @Prop() label = '';\n\n /**\n * Set to true to disable the header. This will also remove the default close button, so please ensure you provide an\n * easy, accessible way for users to dismiss the dialog.\n */\n @Prop() noHeader = false;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n /** Emitted when the dialog opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-dialog-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dialog opens and all transitions are complete. */\n @Event({ eventName: 'six-dialog-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the dialog closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-dialog-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dialog closes and all transitions are complete. */\n @Event({ eventName: 'six-dialog-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the dialog opens and the panel gains focus. Calling `event.preventDefault()` will prevent focus and\n * allow you to set it on a different element in the dialog, such as an input or button.\n */\n @Event({ eventName: 'six-dialog-initial-focus' }) sixInitialFocus!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the overlay is clicked. Calling `event.preventDefault()` will prevent the dialog from closing. */\n @Event({ eventName: 'six-dialog-overlay-dismiss' }) sixOverlayDismiss!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.modal = new Modal(this.host, {\n onFocusOut: () => this.panel?.focus(),\n });\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n componentDidLoad() {\n // Show on init if open\n if (this.open) {\n this.show();\n }\n }\n\n disconnectedCallback() {\n unlockBodyScrolling(this.host);\n }\n\n /** Shows the dialog */\n @Method()\n async show() {\n if (this.willShow || this.modal == null || this.panel == null || this.dialog == null) {\n return;\n }\n const panel = this.panel;\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.willShow = true;\n this.isVisible = true;\n this.open = true;\n this.modal.activate();\n\n lockBodyScrolling(this.host);\n\n if (this.open) {\n requestAnimationFrame(() => {\n const sixInitialFocus = this.sixInitialFocus.emit();\n if (!sixInitialFocus.defaultPrevented) {\n panel.focus({ preventScroll: true });\n }\n });\n }\n }\n\n /** Hides the dialog */\n @Method()\n async hide() {\n if (this.willHide || this.modal == null) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n this.willHide = true;\n this.open = false;\n this.modal.deactivate();\n\n unlockBodyScrolling(this.host);\n }\n\n private handleCloseClick = () => {\n this.hide();\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n this.hide();\n }\n };\n\n private handleOverlayClick = () => {\n const sixOverlayDismiss = this.sixOverlayDismiss.emit();\n\n if (!sixOverlayDismiss.defaultPrevented) {\n this.hide();\n }\n };\n\n private handleSlotChange = () => {\n this.hasFooter = hasSlot(this.host, 'footer');\n };\n\n private handleTransitionEnd = (event: TransitionEvent) => {\n const target = event.target as HTMLElement;\n\n // Ensure we only emit one event when the target element is no longer visible\n if (event.propertyName === 'opacity' && target.classList.contains('dialog__panel')) {\n this.isVisible = this.open;\n this.willShow = false;\n this.willHide = false;\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n }\n };\n\n render() {\n return (\n <div\n ref={(el) => (this.dialog = el)}\n part=\"base\"\n class={{\n dialog: true,\n 'dialog--open': this.open,\n 'dialog--visible': this.isVisible,\n 'dialog--has-footer': this.hasFooter,\n }}\n onKeyDown={this.handleKeyDown}\n onTransitionEnd={this.handleTransitionEnd}\n >\n <div part=\"overlay\" class=\"dialog__overlay\" onClick={this.handleOverlayClick} />\n\n <div\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n class=\"dialog__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-hidden={this.open ? 'false' : 'true'}\n aria-label={this.noHeader ? this.label : null}\n aria-labelledby={!this.noHeader ? `${this.componentId}-title` : null}\n tabIndex={0}\n >\n {!this.noHeader && (\n <header part=\"header\" class=\"dialog__header\">\n <span part=\"title\" class=\"dialog__title\" id={`${this.componentId}-title`}>\n <slot name=\"label\">\n {/* If there's no label, use an invisible character to prevent the heading from collapsing */}\n {this.label || String.fromCharCode(65279)}\n </slot>\n </span>\n <six-icon-button\n exportparts=\"base:close-button\"\n class=\"dialog__close\"\n name=\"close\"\n onClick={this.handleCloseClick}\n />\n </header>\n )}\n\n <div part=\"body\" class=\"dialog__body\">\n <slot />\n </div>\n\n <footer part=\"footer\" class=\"dialog__footer\">\n <slot name=\"footer\" onSlotchange={this.handleSlotChange} />\n </footer>\n </div>\n </div>\n );\n }\n}\n"],"mappings":"4KAAA,MAAMA,EAAe,mkEACrB,MAAAC,EAAeD,ECKf,IAAIE,EAAK,E,MA2BIC,EAAS,M,2UACZC,KAAAC,YAAc,YAAYH,IAI1BE,KAAAE,SAAW,MACXF,KAAAG,SAAW,MAwHXH,KAAAI,iBAAmB,KACzBJ,KAAKK,MAAM,EAGLL,KAAAM,cAAiBC,IACvB,GAAIA,EAAMC,MAAQ,SAAU,CAC1BR,KAAKK,M,GAIDL,KAAAS,mBAAqB,KAC3B,MAAMC,EAAoBV,KAAKU,kBAAkBC,OAEjD,IAAKD,EAAkBE,iBAAkB,CACvCZ,KAAKK,M,GAIDL,KAAAa,iBAAmB,KACzBb,KAAKc,UAAYC,EAAQf,KAAKgB,KAAM,SAAS,EAGvChB,KAAAiB,oBAAuBV,IAC7B,MAAMW,EAASX,EAAMW,OAGrB,GAAIX,EAAMY,eAAiB,WAAaD,EAAOE,UAAUC,SAAS,iBAAkB,CAClFrB,KAAKsB,UAAYtB,KAAKuB,KACtBvB,KAAKE,SAAW,MAChBF,KAAKG,SAAW,MAChBH,KAAKuB,KAAOvB,KAAKwB,aAAab,OAASX,KAAKyB,aAAad,M,kBAlJxC,M,eACA,M,UAG0B,M,WAM/B,G,cAMG,K,CAGnB,gBAAAe,GACE1B,KAAKuB,KAAOvB,KAAK2B,OAAS3B,KAAKK,M,CAwBjC,iBAAAuB,GACE5B,KAAK6B,MAAQ,IAAIC,EAAM9B,KAAKgB,KAAM,CAChCe,WAAY,SAAAC,EAAM,OAAAA,EAAAhC,KAAKiC,SAAK,MAAAD,SAAA,SAAAA,EAAEE,OAAO,G,CAIzC,iBAAAC,GACEnC,KAAKa,kB,CAGP,gBAAAuB,GAEE,GAAIpC,KAAKuB,KAAM,CAC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AAMC,GAAQnD,KAAKiC,MAAQkB,EAC3BC,KAAK,QACLC,MAAM,gBACNI,KAAK,SAAQ,aACF,OAAM,cACJzD,KAAKuB,KAAO,QAAU,OAAM,aAC7BvB,KAAK0D,SAAW1D,KAAK2D,MAAQ,KAAI,mBAC3B3D,KAAK0D,SAAW,GAAG1D,KAAKC,oBAAsB,KAChE2D,SAAU,IAER5D,KAAK0D,UACLT,EAAA,UAAQG,KAAK,SAASC,MAAM,kBAC1BJ,EAAA,QAAMG,KAAK,QAAQC,MAAM,gBAAgBvD,GAAI,GAAGE,KAAKC,qBACnDgD,EAAA,QAAMY,KAAK,SAER7D,KAAK2D,OAASG,OAAOC,aAAa,SAGvCd,EAAA,mBACEe,YAAY,oBACZX,MAAM,gBACNQ,KAAK,QACLL,QAASxD,KAAKI,oBAKpB6C,EAAA,OAAAzC,IAAA,2CAAK4C,KAAK,OAAOC,MAAM,gBACrBJ,EAAA,QAAAzC,IAAA,8CAGFyC,EAAA,UAAAzC,IAAA,2CAAQ4C,KAAK,SAASC,MAAM,kBAC1BJ,EAAA,QAAAzC,IAAA,2CAAMqD,KAAK,SAASI,aAAcjE,KAAKa,qB"}
|
|
1
|
+
{"version":3,"names":["sixDialogCss","SixDialogStyle0","id","SixDialog","this","componentId","willShow","willHide","handleCloseClick","hide","handleKeyDown","event","key","handleOverlayClick","sixOverlayDismiss","emit","defaultPrevented","handleSlotChange","hasFooter","hasSlot","host","handleTransitionEnd","target","propertyName","classList","contains","isVisible","open","sixAfterShow","sixAfterHide","handleOpenChange","show","connectedCallback","modal","Modal","onFocusOut","_a","panel","focus","componentWillLoad","componentDidLoad","disconnectedCallback","unlockBodyScrolling","dialog","sixShow","activate","lockBodyScrolling","requestAnimationFrame","sixInitialFocus","preventScroll","sixHide","deactivate","render","h","ref","el","part","class","onKeyDown","onTransitionEnd","onClick","role","noHeader","label","tabIndex","name","String","fromCharCode","exportparts","onSlotchange"],"sources":["src/components/six-dialog/six-dialog.scss?tag=six-dialog&encapsulation=shadow","src/components/six-dialog/six-dialog.tsx"],"sourcesContent":["@import 'src/global/component';\n@import 'src/global/mixins/hidden';\n\n/**\n * @prop --width: The preferred width of the dialog. Note that the dialog will shrink to accommodate smaller screens.\n */\n:host {\n --width: 31rem;\n\n display: contents;\n}\n\n.dialog {\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: var(--six-z-index-dialog);\n color: var(--six-color-web-rock-900);\n\n &:not(.dialog--visible) {\n @include hidden;\n }\n}\n\n.dialog__panel {\n display: flex;\n flex-direction: column;\n z-index: 2;\n width: var(--width);\n max-width: calc(100% - var(--six-spacing-xx-large));\n max-height: calc(100% - var(--six-spacing-xx-large));\n background-color: var(--six-panel-background-color);\n border-radius: var(--six-border-radius-medium);\n box-shadow: var(--six-shadow-large);\n opacity: 0;\n transform: scale(0.8);\n transition: var(--six-transition-medium) opacity, var(--six-transition-medium) transform;\n\n &:focus {\n outline: none;\n }\n}\n\n// Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone)\n@media screen and (max-width: 420px) {\n .dialog__panel {\n max-height: 80vh;\n }\n}\n\n.dialog--open .dialog__panel {\n display: flex;\n opacity: 1;\n transform: none;\n}\n\n.dialog__header {\n flex: 0 0 auto;\n display: flex;\n}\n\n.dialog__title {\n flex: 1 1 auto;\n font-size: var(--six-font-size-x-large);\n font-weight: var(--six-font-weight-bold);\n line-height: var(--six-line-height-dense);\n padding: var(--six-spacing-large) var(--six-spacing-large) var(--six-spacing-small);\n}\n\n.dialog__close {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: var(--six-font-size-x-large);\n padding: 0 var(--six-spacing-x-small);\n}\n\n.dialog__body {\n flex: 1 1 auto;\n padding: var(--six-spacing-small) var(--six-spacing-large) var(--six-spacing-large);\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n}\n\n.dialog__footer {\n flex: 0 0 auto;\n text-align: right;\n padding: var(--six-spacing-large);\n\n ::slotted(six-button:not(:first-of-type)) {\n margin-left: var(--six-spacing-xx-small);\n }\n}\n\n.dialog:not(.dialog--has-footer) .dialog__footer {\n display: none;\n}\n\n.dialog__overlay {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: var(--six-overlay-background-color);\n opacity: 0;\n transition: var(--six-transition-medium) opacity;\n}\n\n.dialog--open .dialog__overlay {\n opacity: 0.8;\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { lockBodyScrolling, unlockBodyScrolling } from '../../utils/scroll';\nimport { hasSlot } from '../../utils/slot';\nimport Modal from '../../utils/modal';\nimport { EmptyPayload } from '../../utils/types';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The dialog's content.\n * @slot label - The dialog's label. Alternatively, you can use the label prop.\n * @slot footer - The dialog's footer, usually one or more buttons representing various options.\n *\n * @part base - The component's base wrapper.\n * @part overlay - The overlay.\n * @part panel - The dialog panel (where the dialog and its content is rendered).\n * @part header - The dialog header.\n * @part title - The dialog title.\n * @part close-button - The close button.\n * @part body - The dialog body.\n * @part footer - The dialog footer.\n *\n */\n@Component({\n tag: 'six-dialog',\n styleUrl: 'six-dialog.scss',\n shadow: true,\n})\nexport class SixDialog {\n private componentId = `dialog-${++id}`;\n private dialog?: HTMLElement;\n private modal?: Modal;\n private panel?: HTMLElement;\n private willShow = false;\n private willHide = false;\n\n @Element() host!: HTMLSixDialogElement;\n\n @State() hasFooter = false;\n @State() isVisible = false;\n\n /** Indicates whether the dialog is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /**\n * The dialog's label as displayed in the header. You should always include a relevant label even when using\n * `no-header`, as it is required for proper accessibility.\n */\n @Prop() label = '';\n\n /**\n * Set to true to disable the header. This will also remove the default close button, so please ensure you provide an\n * easy, accessible way for users to dismiss the dialog.\n */\n @Prop() noHeader = false;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n /** Emitted when the dialog opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-dialog-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dialog opens and all transitions are complete. */\n @Event({ eventName: 'six-dialog-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the dialog closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-dialog-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dialog closes and all transitions are complete. */\n @Event({ eventName: 'six-dialog-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the dialog opens and the panel gains focus. Calling `event.preventDefault()` will prevent focus and\n * allow you to set it on a different element in the dialog, such as an input or button.\n */\n @Event({ eventName: 'six-dialog-initial-focus' }) sixInitialFocus!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the overlay is clicked. Calling `event.preventDefault()` will prevent the dialog from closing. */\n @Event({ eventName: 'six-dialog-overlay-dismiss' }) sixOverlayDismiss!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.modal = new Modal(this.host, {\n onFocusOut: () => this.panel?.focus(),\n });\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n componentDidLoad() {\n // Show on init if open\n if (this.open) {\n this.show();\n }\n }\n\n disconnectedCallback() {\n unlockBodyScrolling(this.host);\n }\n\n /** Shows the dialog */\n @Method()\n async show() {\n if (this.willShow || this.modal == null || this.panel == null || this.dialog == null) {\n return;\n }\n const panel = this.panel;\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.willShow = true;\n this.isVisible = true;\n this.open = true;\n this.modal.activate();\n\n lockBodyScrolling(this.host);\n\n if (this.open) {\n requestAnimationFrame(() => {\n const sixInitialFocus = this.sixInitialFocus.emit();\n if (!sixInitialFocus.defaultPrevented) {\n panel.focus({ preventScroll: true });\n }\n });\n }\n }\n\n /** Hides the dialog */\n @Method()\n async hide() {\n if (this.willHide || this.modal == null) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n this.willHide = true;\n this.open = false;\n this.modal.deactivate();\n\n unlockBodyScrolling(this.host);\n }\n\n private handleCloseClick = () => {\n this.hide();\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n this.hide();\n }\n };\n\n private handleOverlayClick = () => {\n const sixOverlayDismiss = this.sixOverlayDismiss.emit();\n\n if (!sixOverlayDismiss.defaultPrevented) {\n this.hide();\n }\n };\n\n private handleSlotChange = () => {\n this.hasFooter = hasSlot(this.host, 'footer');\n };\n\n private handleTransitionEnd = (event: TransitionEvent) => {\n const target = event.target as HTMLElement;\n\n // Ensure we only emit one event when the target element is no longer visible\n if (event.propertyName === 'opacity' && target.classList.contains('dialog__panel')) {\n this.isVisible = this.open;\n this.willShow = false;\n this.willHide = false;\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n }\n };\n\n render() {\n return (\n <div\n ref={(el) => (this.dialog = el)}\n part=\"base\"\n class={{\n dialog: true,\n 'dialog--open': this.open,\n 'dialog--visible': this.isVisible,\n 'dialog--has-footer': this.hasFooter,\n }}\n onKeyDown={this.handleKeyDown}\n onTransitionEnd={this.handleTransitionEnd}\n >\n <div part=\"overlay\" class=\"dialog__overlay\" onClick={this.handleOverlayClick} />\n\n <div\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n class=\"dialog__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-hidden={this.open ? 'false' : 'true'}\n aria-label={this.noHeader ? this.label : null}\n aria-labelledby={!this.noHeader ? `${this.componentId}-title` : null}\n tabIndex={0}\n >\n {!this.noHeader && (\n <header part=\"header\" class=\"dialog__header\">\n <span part=\"title\" class=\"dialog__title\" id={`${this.componentId}-title`}>\n <slot name=\"label\">\n {/* If there's no label, use an invisible character to prevent the heading from collapsing */}\n {this.label || String.fromCharCode(65279)}\n </slot>\n </span>\n <six-icon-button\n exportparts=\"base:close-button\"\n class=\"dialog__close\"\n name=\"close\"\n onClick={this.handleCloseClick}\n />\n </header>\n )}\n\n <div part=\"body\" class=\"dialog__body\">\n <slot />\n </div>\n\n <footer part=\"footer\" class=\"dialog__footer\">\n <slot name=\"footer\" onSlotchange={this.handleSlotChange} />\n </footer>\n </div>\n </div>\n );\n }\n}\n"],"mappings":"4KAAA,MAAMA,EAAe,mkEACrB,MAAAC,EAAeD,ECKf,IAAIE,EAAK,E,MA2BIC,EAAS,M,2UACZC,KAAAC,YAAc,YAAYH,IAI1BE,KAAAE,SAAW,MACXF,KAAAG,SAAW,MAwHXH,KAAAI,iBAAmB,KACzBJ,KAAKK,MAAM,EAGLL,KAAAM,cAAiBC,IACvB,GAAIA,EAAMC,MAAQ,SAAU,CAC1BR,KAAKK,M,GAIDL,KAAAS,mBAAqB,KAC3B,MAAMC,EAAoBV,KAAKU,kBAAkBC,OAEjD,IAAKD,EAAkBE,iBAAkB,CACvCZ,KAAKK,M,GAIDL,KAAAa,iBAAmB,KACzBb,KAAKc,UAAYC,EAAQf,KAAKgB,KAAM,SAAS,EAGvChB,KAAAiB,oBAAuBV,IAC7B,MAAMW,EAASX,EAAMW,OAGrB,GAAIX,EAAMY,eAAiB,WAAaD,EAAOE,UAAUC,SAAS,iBAAkB,CAClFrB,KAAKsB,UAAYtB,KAAKuB,KACtBvB,KAAKE,SAAW,MAChBF,KAAKG,SAAW,MAChBH,KAAKuB,KAAOvB,KAAKwB,aAAab,OAASX,KAAKyB,aAAad,M,kBAlJxC,M,eACA,M,UAG0B,M,WAM/B,G,cAMG,K,CAGnB,gBAAAe,GACE1B,KAAKuB,KAAOvB,KAAK2B,OAAS3B,KAAKK,M,CAwBjC,iBAAAuB,GACE5B,KAAK6B,MAAQ,IAAIC,EAA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AsBtB,KAAKc,WAE7BwC,UAAWtD,KAAKM,cAChBiD,gBAAiBvD,KAAKiB,qBAEtBgC,EAAA,OAAAzC,IAAA,2CAAK4C,KAAK,UAAUC,MAAM,kBAAkBG,QAASxD,KAAKS,qBAE1DwC,EAAA,OAAAzC,IAAA,2CACE0C,IAAMC,GAAQnD,KAAKiC,MAAQkB,EAC3BC,KAAK,QACLC,MAAM,gBACNI,KAAK,SAAQ,aACF,OAAM,cACJzD,KAAKuB,KAAO,QAAU,OAAM,aAC7BvB,KAAK0D,SAAW1D,KAAK2D,MAAQ,KAAI,mBAC3B3D,KAAK0D,SAAW,GAAG1D,KAAKC,oBAAsB,KAChE2D,SAAU,IAER5D,KAAK0D,UACLT,EAAA,UAAAzC,IAAA,2CAAQ4C,KAAK,SAASC,MAAM,kBAC1BJ,EAAA,QAAAzC,IAAA,2CAAM4C,KAAK,QAAQC,MAAM,gBAAgBvD,GAAI,GAAGE,KAAKC,qBACnDgD,EAAA,QAAAzC,IAAA,2CAAMqD,KAAK,SAER7D,KAAK2D,OAASG,OAAOC,aAAa,SAGvCd,EAAA,mBAAAzC,IAAA,2CACEwD,YAAY,oBACZX,MAAM,gBACNQ,KAAK,QACLL,QAASxD,KAAKI,oBAKpB6C,EAAA,OAAAzC,IAAA,2CAAK4C,KAAK,OAAOC,MAAM,gBACrBJ,EAAA,QAAAzC,IAAA,8CAGFyC,EAAA,UAAAzC,IAAA,2CAAQ4C,KAAK,SAASC,MAAM,kBAC1BJ,EAAA,QAAAzC,IAAA,2CAAMqD,KAAK,SAASI,aAAcjE,KAAKa,qB","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,c as i,h as e}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as s,c as i,h as e}from"./p-48118ce8.js";import{D as t,a}from"./p-a1502802.js";import{E as h}from"./p-8bfb4bfc.js";const o=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:block}.search-box{z-index:var(--six-z-index-search-field)}.search-box__icon{cursor:pointer}";const c=o;const r=class{constructor(e){s(this,e);this.searchFieldChange=i(this,"six-search-field-change",7);this.eventListeners=new h;this.handleInputChange=()=>{if(this.inputElement!=null){this.searchFieldChange.emit({value:this.inputElement.value})}};this.placeholder=undefined;this.debounce=t;this.disabled=false;this.value="";this.clearable=false}handleValueChange(){if(this.inputElement!=null){this.inputElement.value=this.value}}componentDidLoad(){if(this.inputElement==null)return;this.eventListeners.add(this.inputElement,"six-input-input",a(this.handleInputChange,this.debounce));this.eventListeners.add(this.inputElement,"keydown",(s=>{const i=s;if(i.key==="Enter"){this.handleInputChange()}}))}disconnectedCallback(){this.eventListeners.removeAll()}render(){return e("div",{key:"108d928d1c28a1a37c0a6f00661e44ff921a7434",class:"search-box"},e("six-input",{key:"bd4002eab9d4077b70b0f3e730127a8cadad1d63",ref:s=>this.inputElement=s,placeholder:this.placeholder,value:this.value,disabled:this.disabled,clearable:this.clearable},e("six-icon",{key:"900c6d660cf833c2a3068e608c947694e6b95ff6",class:"search-box__icon",slot:"prefix",size:"small",onClick:this.handleInputChange},"search")),e("slot",{key:"7f834e95d2cbb6207c4a580099e6f62240cb587f"}))}static get watchers(){return{value:["handleValueChange"]}}};r.style=c;export{r as six_search_field};
|
|
2
|
+
//# sourceMappingURL=p-cd65e3b2.entry.js.map
|