@six-group/ui-library 0.0.0-insider.d16ec8e → 0.0.0-insider.d833923
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/error-messages-6e8049a4.js +119 -0
- package/dist/cjs/error-messages-6e8049a4.js.map +1 -0
- package/dist/cjs/event-listeners-9fb878f1.js +61 -0
- package/dist/cjs/event-listeners-9fb878f1.js.map +1 -0
- package/dist/cjs/{execution-control-45c84c46.js → execution-control-d728da70.js} +15 -15
- package/dist/cjs/execution-control-d728da70.js.map +1 -0
- package/dist/cjs/focus-visible-e2c9255a.js +47 -0
- package/dist/cjs/focus-visible-e2c9255a.js.map +1 -0
- package/dist/cjs/form-9ebaae7c.js +20 -0
- package/dist/cjs/form-9ebaae7c.js.map +1 -0
- package/dist/cjs/form-control-b6ca8224.js +36 -0
- package/dist/cjs/form-control-b6ca8224.js.map +1 -0
- package/dist/cjs/{index-ccf35821.js → index-5bfcf88b.js} +627 -490
- package/dist/cjs/index-5bfcf88b.js.map +1 -0
- package/dist/cjs/index.cjs.js +62 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +6 -13
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/modal-bd7fc5bc.js +35 -0
- package/dist/cjs/modal-bd7fc5bc.js.map +1 -0
- package/dist/cjs/{popover-b5e2d5ef.js → popover-1e7c09f1.js} +105 -111
- package/dist/cjs/popover-1e7c09f1.js.map +1 -0
- package/dist/cjs/popup-e854acda.js +103 -0
- package/dist/cjs/popup-e854acda.js.map +1 -0
- package/dist/cjs/scroll-68033901.js +68 -0
- package/dist/{esm/scroll-180b53fd.js.map → cjs/scroll-68033901.js.map} +1 -1
- package/dist/cjs/six-alert.cjs.entry.js +144 -111
- package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/six-avatar.cjs.entry.js +23 -22
- package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-badge.cjs.entry.js +25 -24
- package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/six-button.cjs.entry.js +97 -90
- package/dist/cjs/six-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-card.cjs.entry.js +10 -9
- package/dist/cjs/six-card.cjs.entry.js.map +1 -1
- package/dist/cjs/six-checkbox_2.cjs.entry.js +192 -0
- package/dist/cjs/six-checkbox_2.cjs.entry.js.map +1 -0
- package/dist/cjs/six-datepicker.cjs.entry.js +864 -871
- package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-details.cjs.entry.js +129 -128
- package/dist/cjs/six-details.cjs.entry.js.map +1 -1
- package/dist/cjs/six-dialog.cjs.entry.js +115 -131
- package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/six-drawer.cjs.entry.js +132 -149
- package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/six-dropdown_2.cjs.entry.js +713 -639
- package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/six-error-page.cjs.entry.js +84 -83
- package/dist/cjs/six-error-page.cjs.entry.js.map +1 -1
- package/dist/cjs/six-error.cjs.entry.js +22 -0
- package/dist/cjs/six-error.cjs.entry.js.map +1 -0
- package/dist/cjs/six-file-list-item.cjs.entry.js +36 -35
- package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-file-list.cjs.entry.js +9 -8
- package/dist/cjs/six-file-list.cjs.entry.js.map +1 -1
- package/dist/cjs/six-file-upload.cjs.entry.js +101 -100
- package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/six-footer.cjs.entry.js +10 -9
- package/dist/cjs/six-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/six-group-label.cjs.entry.js +45 -44
- package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
- package/dist/cjs/six-header.cjs.entry.js +173 -157
- package/dist/cjs/six-header.cjs.entry.js.map +1 -1
- package/dist/cjs/six-icon-button.cjs.entry.js +34 -33
- package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-icon.cjs.entry.js +24 -23
- package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/six-input.cjs.entry.js +189 -242
- package/dist/cjs/six-input.cjs.entry.js.map +1 -1
- package/dist/cjs/six-item-picker.cjs.entry.js +407 -310
- package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-language-switcher.cjs.entry.js +49 -48
- package/dist/cjs/six-language-switcher.cjs.entry.js.map +1 -1
- package/dist/cjs/six-layout-grid.cjs.entry.js +22 -21
- package/dist/cjs/six-layout-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/six-main-container.cjs.entry.js +11 -10
- package/dist/cjs/six-main-container.cjs.entry.js.map +1 -1
- package/dist/cjs/six-menu-divider.cjs.entry.js +10 -9
- package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/six-menu-label.cjs.entry.js +10 -9
- package/dist/cjs/six-menu-label.cjs.entry.js.map +1 -1
- package/dist/cjs/six-picto.cjs.entry.js +16 -15
- package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
- package/dist/cjs/six-progress-bar.cjs.entry.js +17 -16
- package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-progress-ring.cjs.entry.js +32 -31
- package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
- package/dist/cjs/six-radio.cjs.entry.js +105 -118
- package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/six-range.cjs.entry.js +200 -224
- package/dist/cjs/six-range.cjs.entry.js.map +1 -1
- package/dist/cjs/six-root.cjs.entry.js +13 -31
- package/dist/cjs/six-root.cjs.entry.js.map +1 -1
- package/dist/cjs/six-search-field.cjs.entry.js +46 -45
- package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
- package/dist/cjs/six-select.cjs.entry.js +498 -402
- package/dist/cjs/six-select.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js +58 -46
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar-item.cjs.entry.js +19 -16
- package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar.cjs.entry.js +176 -175
- package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-spinner.cjs.entry.js +17 -16
- package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
- package/dist/cjs/six-stage-indicator.cjs.entry.js +23 -0
- package/dist/cjs/six-stage-indicator.cjs.entry.js.map +1 -0
- package/dist/cjs/six-switch.cjs.entry.js +108 -101
- package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab-group.cjs.entry.js +256 -235
- package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab-panel.cjs.entry.js +16 -15
- package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab.cjs.entry.js +57 -40
- package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tag.cjs.entry.js +57 -34
- package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/six-textarea.cjs.entry.js +184 -229
- package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tile.cjs.entry.js +79 -78
- package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/six-timepicker.cjs.entry.js +350 -364
- package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tooltip.cjs.entry.js +150 -149
- package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/slot-1b1232a1.js +51 -0
- package/dist/cjs/slot-1b1232a1.js.map +1 -0
- package/dist/cjs/types-d3da200b.js +19 -0
- package/dist/cjs/types-d3da200b.js.map +1 -0
- package/dist/cjs/ui-library.cjs.js +6 -7
- package/dist/cjs/ui-library.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +54 -55
- package/dist/collection/components/six-alert/six-alert.css +5 -1
- package/dist/collection/components/six-alert/six-alert.js +383 -331
- package/dist/collection/components/six-alert/six-alert.js.map +1 -1
- package/dist/collection/components/six-alert/test/six-alert.spec.js +25 -0
- package/dist/collection/components/six-alert/test/six-alert.spec.js.map +1 -0
- package/dist/collection/components/six-avatar/six-avatar.css +2 -2
- package/dist/collection/components/six-avatar/six-avatar.js +112 -112
- package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
- package/dist/collection/components/six-avatar/test/six-avatar.spec.js +26 -0
- package/dist/collection/components/six-avatar/test/six-avatar.spec.js.map +1 -0
- package/dist/collection/components/six-badge/six-badge.css +1 -1
- package/dist/collection/components/six-badge/six-badge.js +91 -91
- package/dist/collection/components/six-badge/six-badge.js.map +1 -1
- package/dist/collection/components/six-badge/test/six-badge.spec.js +20 -0
- package/dist/collection/components/six-badge/test/six-badge.spec.js.map +1 -0
- package/dist/collection/components/six-button/six-button.css +7 -31
- package/dist/collection/components/six-button/six-button.js +450 -438
- package/dist/collection/components/six-button/six-button.js.map +1 -1
- package/dist/collection/components/six-button/test/six-button.spec.js +69 -0
- package/dist/collection/components/six-button/test/six-button.spec.js.map +1 -0
- package/dist/collection/components/six-card/six-card.css +4 -5
- package/dist/collection/components/six-card/six-card.js +16 -16
- package/dist/collection/components/six-card/six-card.js.map +1 -1
- package/dist/collection/components/six-card/test/six-card.spec.js +18 -0
- package/dist/collection/components/six-card/test/six-card.spec.js.map +1 -0
- package/dist/collection/components/six-checkbox/six-checkbox.css +10 -2
- package/dist/collection/components/six-checkbox/six-checkbox.js +422 -527
- package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
- package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js +83 -0
- package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js.map +1 -0
- package/dist/collection/components/six-datepicker/components/day-selection.js +9 -9
- package/dist/collection/components/six-datepicker/components/day-selection.js.map +1 -1
- package/dist/collection/components/six-datepicker/components/month-selection.js +10 -10
- package/dist/collection/components/six-datepicker/components/month-selection.js.map +1 -1
- package/dist/collection/components/six-datepicker/components/year-selection.js +10 -10
- package/dist/collection/components/six-datepicker/components/year-selection.js.map +1 -1
- package/dist/collection/components/six-datepicker/six-date-formats.js +21 -20
- package/dist/collection/components/six-datepicker/six-date-formats.js.map +1 -1
- package/dist/collection/components/six-datepicker/six-datepicker.css +1 -1
- package/dist/collection/components/six-datepicker/six-datepicker.js +1058 -1107
- package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
- package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js +26 -0
- package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js.map +1 -0
- package/dist/collection/components/six-datepicker/test/six-datepicker.test-helpers.js +14 -14
- package/dist/collection/components/six-datepicker/test/six-datepicker.test-helpers.js.map +1 -1
- package/dist/collection/components/six-details/six-details.css +4 -6
- package/dist/collection/components/six-details/six-details.js +412 -406
- package/dist/collection/components/six-details/six-details.js.map +1 -1
- package/dist/collection/components/six-details/test/six-details.spec.js +36 -0
- package/dist/collection/components/six-details/test/six-details.spec.js.map +1 -0
- package/dist/collection/components/six-dialog/six-dialog.css +2 -2
- package/dist/collection/components/six-dialog/six-dialog.js +344 -354
- package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
- package/dist/collection/components/six-dialog/test/six-dialog.spec.js +34 -0
- package/dist/collection/components/six-dialog/test/six-dialog.spec.js.map +1 -0
- package/dist/collection/components/six-drawer/six-drawer.css +2 -2
- package/dist/collection/components/six-drawer/six-drawer.js +397 -408
- package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
- package/dist/collection/components/six-drawer/test/six-drawer.spec.js +34 -0
- package/dist/collection/components/six-drawer/test/six-drawer.spec.js.map +1 -0
- package/dist/collection/components/six-dropdown/six-dropdown.css +22 -6
- package/dist/collection/components/six-dropdown/six-dropdown.js +988 -884
- package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
- package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +147 -0
- package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +1 -0
- package/dist/collection/components/six-error/six-error.css +5 -0
- package/dist/collection/components/six-error/six-error.js +25 -0
- package/dist/collection/components/six-error/six-error.js.map +1 -0
- package/dist/collection/components/six-error-page/six-error-page.js +178 -178
- package/dist/collection/components/six-error-page/six-error-page.js.map +1 -1
- package/dist/collection/components/six-error-page/test/six-error-page.spec.js +240 -0
- package/dist/collection/components/six-error-page/test/six-error-page.spec.js.map +1 -0
- package/dist/collection/components/six-file-list/six-file-list.js +16 -16
- package/dist/collection/components/six-file-list/six-file-list.js.map +1 -1
- package/dist/collection/components/six-file-list/test/six-file-list.spec.js +67 -0
- package/dist/collection/components/six-file-list/test/six-file-list.spec.js.map +1 -0
- package/dist/collection/components/six-file-list-item/six-file-list-item.css +1 -1
- package/dist/collection/components/six-file-list-item/six-file-list-item.js +196 -194
- package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
- package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js +169 -0
- package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js.map +1 -0
- package/dist/collection/components/six-file-upload/six-file-upload.css +1 -4
- package/dist/collection/components/six-file-upload/six-file-upload.js +292 -290
- package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
- package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +103 -0
- package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +1 -0
- package/dist/collection/components/six-footer/six-footer.css +2 -2
- package/dist/collection/components/six-footer/six-footer.js +16 -16
- package/dist/collection/components/six-footer/six-footer.js.map +1 -1
- package/dist/collection/components/six-footer/test/six-footer.spec.js +21 -0
- package/dist/collection/components/six-footer/test/six-footer.spec.js.map +1 -0
- package/dist/collection/components/six-group-label/six-group-label.css +5 -2
- package/dist/collection/components/six-group-label/six-group-label.js +158 -158
- package/dist/collection/components/six-group-label/six-group-label.js.map +1 -1
- package/dist/collection/components/six-group-label/test/six-group-label.spec.js +45 -0
- package/dist/collection/components/six-group-label/test/six-group-label.spec.js.map +1 -0
- package/dist/collection/components/six-header/six-header.css +6 -2
- package/dist/collection/components/six-header/six-header.js +442 -400
- package/dist/collection/components/six-header/six-header.js.map +1 -1
- package/dist/collection/components/six-header/test/six-header.spec.js +177 -0
- package/dist/collection/components/six-header/test/six-header.spec.js.map +1 -0
- package/dist/collection/components/six-icon/six-icon.css +5 -2
- package/dist/collection/components/six-icon/six-icon.js +72 -72
- package/dist/collection/components/six-icon/six-icon.js.map +1 -1
- package/dist/collection/components/six-icon/test/six-icon.spec.js +20 -0
- package/dist/collection/components/six-icon/test/six-icon.spec.js.map +1 -0
- package/dist/collection/components/six-icon-button/six-icon-button.css +5 -5
- package/dist/collection/components/six-icon-button/six-icon-button.js +133 -133
- package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
- package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js +23 -0
- package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js.map +1 -0
- package/dist/collection/components/six-input/six-input.css +15 -3
- package/dist/collection/components/six-input/six-input.js +971 -1106
- package/dist/collection/components/six-input/six-input.js.map +1 -1
- package/dist/collection/components/six-input/test/six-input.spec.js +39 -0
- package/dist/collection/components/six-input/test/six-input.spec.js.map +1 -0
- package/dist/collection/components/six-item-picker/six-item-picker.css +8 -0
- package/dist/collection/components/six-item-picker/six-item-picker.js +731 -631
- package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -1
- package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js +90 -0
- package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js.map +1 -0
- package/dist/collection/components/six-item-picker/types.js +9 -7
- package/dist/collection/components/six-item-picker/types.js.map +1 -1
- package/dist/collection/components/six-language-switcher/six-language-switcher.css +3 -2
- package/dist/collection/components/six-language-switcher/six-language-switcher.js +125 -123
- package/dist/collection/components/six-language-switcher/six-language-switcher.js.map +1 -1
- package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +196 -0
- package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +1 -0
- package/dist/collection/components/six-layout-grid/six-layout-grid.js +55 -55
- package/dist/collection/components/six-layout-grid/six-layout-grid.js.map +1 -1
- package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js +18 -0
- package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js.map +1 -0
- package/dist/collection/components/six-main-container/six-main-container.js +42 -42
- package/dist/collection/components/six-main-container/six-main-container.js.map +1 -1
- package/dist/collection/components/six-main-container/test/six-main-container.spec.js +22 -0
- package/dist/collection/components/six-main-container/test/six-main-container.spec.js.map +1 -0
- package/dist/collection/components/six-menu/six-menu.css +8 -7
- package/dist/collection/components/six-menu/six-menu.js +392 -366
- package/dist/collection/components/six-menu/six-menu.js.map +1 -1
- package/dist/collection/components/six-menu/test/six-menu.spec.js +93 -0
- package/dist/collection/components/six-menu/test/six-menu.spec.js.map +1 -0
- package/dist/collection/components/six-menu-divider/six-menu-divider.css +3 -2
- package/dist/collection/components/six-menu-divider/six-menu-divider.js +16 -16
- package/dist/collection/components/six-menu-divider/six-menu-divider.js.map +1 -1
- package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js +18 -0
- package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js.map +1 -0
- package/dist/collection/components/six-menu-item/six-menu-item.css +13 -2
- package/dist/collection/components/six-menu-item/six-menu-item.js +211 -178
- package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
- package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js +33 -0
- package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js.map +1 -0
- package/dist/collection/components/six-menu-label/six-menu-label.css +1 -1
- package/dist/collection/components/six-menu-label/six-menu-label.js +16 -16
- package/dist/collection/components/six-menu-label/six-menu-label.js.map +1 -1
- package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js +20 -0
- package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js.map +1 -0
- package/dist/collection/components/six-picto/six-picto.js +47 -47
- package/dist/collection/components/six-picto/six-picto.js.map +1 -1
- package/dist/collection/components/six-picto/test/six-picto.spec.js +33 -0
- package/dist/collection/components/six-picto/test/six-picto.spec.js.map +1 -0
- package/dist/collection/components/six-progress-bar/six-progress-bar.css +1 -1
- package/dist/collection/components/six-progress-bar/six-progress-bar.js +65 -65
- package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
- package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js +24 -0
- package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js.map +1 -0
- package/dist/collection/components/six-progress-ring/six-progress-ring.css +1 -1
- package/dist/collection/components/six-progress-ring/six-progress-ring.js +101 -101
- package/dist/collection/components/six-progress-ring/six-progress-ring.js.map +1 -1
- package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js +26 -0
- package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js.map +1 -0
- package/dist/collection/components/six-radio/six-radio.css +1 -1
- package/dist/collection/components/six-radio/six-radio.js +323 -395
- package/dist/collection/components/six-radio/six-radio.js.map +1 -1
- package/dist/collection/components/six-radio/test/six-radio.spec.js +63 -0
- package/dist/collection/components/six-radio/test/six-radio.spec.js.map +1 -0
- package/dist/collection/components/six-range/six-range.css +6 -3
- package/dist/collection/components/six-range/six-range.js +575 -629
- package/dist/collection/components/six-range/six-range.js.map +1 -1
- package/dist/collection/components/six-range/test/six-range.spec.js +34 -0
- package/dist/collection/components/six-range/test/six-range.spec.js.map +1 -0
- package/dist/collection/components/six-root/six-root.js +85 -151
- package/dist/collection/components/six-root/six-root.js.map +1 -1
- package/dist/collection/components/six-root/test/six-root.spec.js +36 -0
- package/dist/collection/components/six-root/test/six-root.spec.js.map +1 -0
- package/dist/collection/components/six-search-field/six-search-field.css +1 -1
- package/dist/collection/components/six-search-field/six-search-field.js +172 -171
- package/dist/collection/components/six-search-field/six-search-field.js.map +1 -1
- package/dist/collection/components/six-search-field/test/six-search-field.spec.js +22 -0
- package/dist/collection/components/six-search-field/test/six-search-field.spec.js.map +1 -0
- package/dist/collection/components/six-select/six-select.css +61 -73
- package/dist/collection/components/six-select/six-select.js +1108 -1027
- package/dist/collection/components/six-select/six-select.js.map +1 -1
- package/dist/collection/components/six-select/test/six-select.spec.js +102 -0
- package/dist/collection/components/six-select/test/six-select.spec.js.map +1 -0
- package/dist/collection/components/six-select/test/util.spec.js +81 -0
- package/dist/collection/components/six-select/test/util.spec.js.map +1 -0
- package/dist/collection/components/six-select/util.js +34 -34
- package/dist/collection/components/six-select/util.js.map +1 -1
- package/dist/collection/components/six-sidebar/six-sidebar.css +2 -2
- package/dist/collection/components/six-sidebar/six-sidebar.js +468 -454
- package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -1
- package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js +22 -0
- package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js.map +1 -0
- package/dist/collection/components/six-sidebar-item/six-sidebar-item.css +6 -1
- package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +102 -83
- package/dist/collection/components/six-sidebar-item/six-sidebar-item.js.map +1 -1
- package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js +50 -0
- package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js.map +1 -0
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +12 -1
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +182 -154
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
- package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js +53 -0
- package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js.map +1 -0
- package/dist/collection/components/six-spinner/six-spinner.css +1 -1
- package/dist/collection/components/six-spinner/six-spinner.js +48 -47
- package/dist/collection/components/six-spinner/six-spinner.js.map +1 -1
- package/dist/collection/components/six-spinner/test/six-spinner.spec.js +37 -0
- package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +1 -0
- package/dist/collection/components/six-stage-indicator/six-stage-indicator.css +1 -1
- package/dist/collection/components/six-stage-indicator/six-stage-indicator.js +46 -45
- package/dist/collection/components/six-stage-indicator/six-stage-indicator.js.map +1 -1
- package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js +117 -0
- package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js.map +1 -0
- package/dist/collection/components/six-switch/six-switch.css +81 -1
- package/dist/collection/components/six-switch/six-switch.js +388 -385
- package/dist/collection/components/six-switch/six-switch.js.map +1 -1
- package/dist/collection/components/six-switch/test/six-switch.spec.js +73 -0
- package/dist/collection/components/six-switch/test/six-switch.spec.js.map +1 -0
- package/dist/collection/components/six-tab/six-tab.css +55 -6
- package/dist/collection/components/six-tab/six-tab.js +207 -186
- package/dist/collection/components/six-tab/six-tab.js.map +1 -1
- package/dist/collection/components/six-tab-group/six-tab-group.css +1 -32
- package/dist/collection/components/six-tab-group/six-tab-group.js +345 -356
- package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
- package/dist/collection/components/six-tab-panel/six-tab-panel.css +1 -1
- package/dist/collection/components/six-tab-panel/six-tab-panel.js +64 -64
- package/dist/collection/components/six-tab-panel/six-tab-panel.js.map +1 -1
- package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js +20 -0
- package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js.map +1 -0
- package/dist/collection/components/six-tag/six-tag.css +7 -1
- package/dist/collection/components/six-tag/six-tag.js +162 -139
- package/dist/collection/components/six-tag/six-tag.js.map +1 -1
- package/dist/collection/components/six-tag/test/six-tag.spec.js +54 -0
- package/dist/collection/components/six-tag/test/six-tag.spec.js.map +1 -0
- package/dist/collection/components/six-textarea/six-textarea.css +5 -2
- package/dist/collection/components/six-textarea/six-textarea.js +793 -889
- package/dist/collection/components/six-textarea/six-textarea.js.map +1 -1
- package/dist/collection/components/six-textarea/test/six-textarea.spec.js +119 -0
- package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +1 -0
- package/dist/collection/components/six-tile/six-tile.css +2 -2
- package/dist/collection/components/six-tile/six-tile.js +300 -296
- package/dist/collection/components/six-tile/six-tile.js.map +1 -1
- package/dist/collection/components/six-tile/test/six-tile.spec.js +69 -0
- package/dist/collection/components/six-tile/test/six-tile.spec.js.map +1 -0
- package/dist/collection/components/six-timepicker/six-timepicker.css +1 -1
- package/dist/collection/components/six-timepicker/six-timepicker.js +829 -863
- package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
- package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js +496 -0
- package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +1 -0
- package/dist/collection/components/six-tooltip/six-tooltip.css +2 -2
- package/dist/collection/components/six-tooltip/six-tooltip.js +409 -403
- package/dist/collection/components/six-tooltip/six-tooltip.js.map +1 -1
- package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js +28 -0
- package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js.map +1 -0
- package/dist/collection/functional-components/form-control/form-control.js +20 -20
- package/dist/collection/functional-components/form-control/form-control.js.map +1 -1
- package/dist/collection/index.js +2 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/testUtil/delay.js +1 -1
- package/dist/collection/testUtil/delay.js.map +1 -1
- package/dist/collection/utils/alert.js +54 -0
- package/dist/collection/utils/alert.js.map +1 -0
- package/dist/collection/utils/animation.js +34 -0
- package/dist/collection/utils/animation.js.map +1 -0
- package/dist/collection/utils/date-util.js +527 -501
- package/dist/collection/utils/date-util.js.map +1 -1
- package/dist/collection/utils/date-util.spec.js +995 -0
- package/dist/collection/utils/date-util.spec.js.map +1 -0
- package/dist/collection/utils/error-messages.js +112 -0
- package/dist/collection/utils/error-messages.js.map +1 -0
- package/dist/collection/utils/event-listeners.js +52 -36
- package/dist/collection/utils/event-listeners.js.map +1 -1
- package/dist/collection/utils/execution-control.js +14 -14
- package/dist/collection/utils/execution-control.js.map +1 -1
- package/dist/collection/utils/focus-visible.js +28 -28
- package/dist/collection/utils/focus-visible.js.map +1 -1
- package/dist/collection/utils/form.js +15 -0
- package/dist/collection/utils/form.js.map +1 -0
- package/dist/collection/utils/modal.js +25 -25
- package/dist/collection/utils/modal.js.map +1 -1
- package/dist/collection/utils/offset.js +4 -4
- package/dist/collection/utils/offset.js.map +1 -1
- package/dist/collection/utils/popover.js +100 -100
- package/dist/collection/utils/popover.js.map +1 -1
- package/dist/collection/utils/popup.js +71 -71
- package/dist/collection/utils/popup.js.map +1 -1
- package/dist/collection/utils/scroll.js +28 -28
- package/dist/collection/utils/scroll.js.map +1 -1
- package/dist/collection/utils/scroll.spec.js +122 -0
- package/dist/collection/utils/scroll.spec.js.map +1 -0
- package/dist/collection/utils/slot.js +28 -29
- package/dist/collection/utils/slot.js.map +1 -1
- package/dist/collection/utils/tabbable.js +17 -17
- package/dist/collection/utils/tabbable.js.map +1 -1
- package/dist/collection/utils/time.util.js +72 -72
- package/dist/collection/utils/time.util.js.map +1 -1
- package/dist/collection/utils/time.util.spec.js +368 -0
- package/dist/collection/utils/time.util.spec.js.map +1 -0
- package/dist/components/event-listeners.js +52 -36
- package/dist/components/event-listeners.js.map +1 -1
- package/dist/components/execution-control.js +14 -14
- package/dist/components/execution-control.js.map +1 -1
- package/dist/components/focus-visible.js +28 -28
- package/dist/components/focus-visible.js.map +1 -1
- package/dist/components/form-control.js +26 -25
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form.js +18 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +118 -65
- package/dist/components/index.js.map +1 -1
- package/dist/components/modal.js +26 -42
- package/dist/components/modal.js.map +1 -1
- package/dist/components/popover.js +104 -110
- package/dist/components/popover.js.map +1 -1
- package/dist/components/scroll.js +32 -32
- package/dist/components/scroll.js.map +1 -1
- package/dist/components/six-alert.d.ts +2 -2
- package/dist/components/six-alert.js +178 -142
- package/dist/components/six-alert.js.map +1 -1
- package/dist/components/six-avatar.d.ts +2 -2
- package/dist/components/six-avatar.js +46 -45
- package/dist/components/six-avatar.js.map +1 -1
- package/dist/components/six-badge.d.ts +2 -2
- package/dist/components/six-badge.js +41 -40
- package/dist/components/six-badge.js.map +1 -1
- package/dist/components/six-button.d.ts +2 -2
- package/dist/components/six-button.js +1 -136
- package/dist/components/six-button.js.map +1 -1
- package/dist/components/six-button2.js +147 -0
- package/dist/components/six-button2.js.map +1 -0
- package/dist/components/six-card.d.ts +2 -2
- package/dist/components/six-card.js +22 -21
- package/dist/components/six-card.js.map +1 -1
- package/dist/components/six-checkbox.d.ts +2 -2
- package/dist/components/six-checkbox.js +1 -198
- package/dist/components/six-checkbox.js.map +1 -1
- package/dist/components/six-checkbox2.js +166 -0
- package/dist/components/six-checkbox2.js.map +1 -0
- package/dist/components/six-datepicker.d.ts +2 -2
- package/dist/components/six-datepicker.js +934 -934
- package/dist/components/six-datepicker.js.map +1 -1
- package/dist/components/six-details.d.ts +2 -2
- package/dist/components/six-details2.js +159 -156
- package/dist/components/six-details2.js.map +1 -1
- package/dist/components/six-dialog.d.ts +2 -2
- package/dist/components/six-dialog.js +145 -159
- package/dist/components/six-dialog.js.map +1 -1
- package/dist/components/six-drawer.d.ts +2 -2
- package/dist/components/six-drawer.js +164 -179
- package/dist/components/six-drawer.js.map +1 -1
- package/dist/components/six-dropdown.d.ts +2 -2
- package/dist/components/six-dropdown2.js +554 -464
- package/dist/components/six-dropdown2.js.map +1 -1
- package/dist/components/six-error-page.d.ts +2 -2
- package/dist/components/six-error-page.js +107 -106
- package/dist/components/six-error-page.js.map +1 -1
- package/dist/components/{six-form.d.ts → six-error.d.ts} +4 -4
- package/dist/components/six-error.js +8 -0
- package/dist/components/six-error.js.map +1 -0
- package/dist/components/six-error2.js +33 -0
- package/dist/components/six-error2.js.map +1 -0
- package/dist/components/six-file-list-item.d.ts +2 -2
- package/dist/components/six-file-list-item.js +60 -59
- package/dist/components/six-file-list-item.js.map +1 -1
- package/dist/components/six-file-list.d.ts +2 -2
- package/dist/components/six-file-list.js +21 -20
- package/dist/components/six-file-list.js.map +1 -1
- package/dist/components/six-file-upload.d.ts +2 -2
- package/dist/components/six-file-upload.js +125 -124
- package/dist/components/six-file-upload.js.map +1 -1
- package/dist/components/six-footer.d.ts +2 -2
- package/dist/components/six-footer.js +22 -21
- package/dist/components/six-footer.js.map +1 -1
- package/dist/components/six-group-label.d.ts +2 -2
- package/dist/components/six-group-label.js +72 -62
- package/dist/components/six-group-label.js.map +1 -1
- package/dist/components/six-header.d.ts +2 -2
- package/dist/components/six-header.js +238 -207
- package/dist/components/six-header.js.map +1 -1
- package/dist/components/six-icon-button.d.ts +2 -2
- package/dist/components/six-icon-button2.js +56 -55
- package/dist/components/six-icon-button2.js.map +1 -1
- package/dist/components/six-icon.d.ts +2 -2
- package/dist/components/six-icon2.js +39 -38
- package/dist/components/six-icon2.js.map +1 -1
- package/dist/components/six-input.d.ts +2 -2
- package/dist/components/six-input2.js +255 -303
- package/dist/components/six-input2.js.map +1 -1
- package/dist/components/six-item-picker.d.ts +2 -2
- package/dist/components/six-item-picker2.js +451 -348
- package/dist/components/six-item-picker2.js.map +1 -1
- package/dist/components/six-language-switcher.d.ts +2 -2
- package/dist/components/six-language-switcher.js +66 -63
- package/dist/components/six-language-switcher.js.map +1 -1
- package/dist/components/six-layout-grid.d.ts +2 -2
- package/dist/components/six-layout-grid.js +38 -35
- package/dist/components/six-layout-grid.js.map +1 -1
- package/dist/components/six-main-container.d.ts +2 -2
- package/dist/components/six-main-container.js +25 -24
- package/dist/components/six-main-container.js.map +1 -1
- package/dist/components/six-menu-divider.d.ts +2 -2
- package/dist/components/six-menu-divider.js +22 -21
- package/dist/components/six-menu-divider.js.map +1 -1
- package/dist/components/six-menu-item.d.ts +2 -2
- package/dist/components/six-menu-item2.js +99 -75
- package/dist/components/six-menu-item2.js.map +1 -1
- package/dist/components/six-menu-label.d.ts +2 -2
- package/dist/components/six-menu-label.js +22 -21
- package/dist/components/six-menu-label.js.map +1 -1
- package/dist/components/six-menu.d.ts +2 -2
- package/dist/components/six-menu2.js +237 -220
- package/dist/components/six-menu2.js.map +1 -1
- package/dist/components/six-picto.d.ts +2 -2
- package/dist/components/six-picto2.js +30 -29
- package/dist/components/six-picto2.js.map +1 -1
- package/dist/components/six-progress-bar.d.ts +2 -2
- package/dist/components/six-progress-bar.js +32 -31
- package/dist/components/six-progress-bar.js.map +1 -1
- package/dist/components/six-progress-ring.d.ts +2 -2
- package/dist/components/six-progress-ring.js +50 -47
- package/dist/components/six-progress-ring.js.map +1 -1
- package/dist/components/six-radio.d.ts +2 -2
- package/dist/components/six-radio.js +129 -143
- package/dist/components/six-radio.js.map +1 -1
- package/dist/components/six-range.d.ts +2 -2
- package/dist/components/six-range.js +234 -247
- package/dist/components/six-range.js.map +1 -1
- package/dist/components/six-root.d.ts +2 -2
- package/dist/components/six-root.js +40 -66
- package/dist/components/six-root.js.map +1 -1
- package/dist/components/six-search-field.d.ts +2 -2
- package/dist/components/six-search-field.js +80 -71
- package/dist/components/six-search-field.js.map +1 -1
- package/dist/components/six-select.d.ts +2 -2
- package/dist/components/six-select.js +714 -484
- package/dist/components/six-select.js.map +1 -1
- package/dist/components/six-sidebar-item-group.d.ts +2 -2
- package/dist/components/six-sidebar-item-group.js +88 -75
- package/dist/components/six-sidebar-item-group.js.map +1 -1
- package/dist/components/six-sidebar-item.d.ts +2 -2
- package/dist/components/six-sidebar-item.js +36 -32
- package/dist/components/six-sidebar-item.js.map +1 -1
- package/dist/components/six-sidebar.d.ts +2 -2
- package/dist/components/six-sidebar.js +200 -197
- package/dist/components/six-sidebar.js.map +1 -1
- package/dist/components/six-spinner.d.ts +2 -2
- package/dist/components/six-spinner2.js +31 -30
- package/dist/components/six-spinner2.js.map +1 -1
- package/dist/components/six-stage-indicator.d.ts +2 -2
- package/dist/components/six-stage-indicator2.js +30 -29
- package/dist/components/six-stage-indicator2.js.map +1 -1
- package/dist/components/six-switch.d.ts +2 -2
- package/dist/components/six-switch.js +144 -127
- package/dist/components/six-switch.js.map +1 -1
- package/dist/components/six-tab-group.d.ts +2 -2
- package/dist/components/six-tab-group.js +286 -262
- package/dist/components/six-tab-group.js.map +1 -1
- package/dist/components/six-tab-panel.d.ts +2 -2
- package/dist/components/six-tab-panel.js +31 -30
- package/dist/components/six-tab-panel.js.map +1 -1
- package/dist/components/six-tab.d.ts +2 -2
- package/dist/components/six-tab.js +86 -69
- package/dist/components/six-tab.js.map +1 -1
- package/dist/components/six-tag.d.ts +2 -2
- package/dist/components/six-tag.js +99 -1
- package/dist/components/six-tag.js.map +1 -1
- package/dist/components/six-textarea.d.ts +2 -2
- package/dist/components/six-textarea.js +227 -264
- package/dist/components/six-textarea.js.map +1 -1
- package/dist/components/six-tile.d.ts +2 -2
- package/dist/components/six-tile.js +118 -117
- package/dist/components/six-tile.js.map +1 -1
- package/dist/components/six-timepicker.d.ts +2 -2
- package/dist/components/six-timepicker2.js +492 -500
- package/dist/components/six-timepicker2.js.map +1 -1
- package/dist/components/six-tooltip.d.ts +2 -2
- package/dist/components/six-tooltip2.js +173 -170
- package/dist/components/six-tooltip2.js.map +1 -1
- package/dist/components/slot.js +29 -30
- package/dist/components/slot.js.map +1 -1
- package/dist/components.d.ts +341 -88
- package/dist/components.json +4739 -895
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/error-messages-1eaaad23.js +115 -0
- package/dist/esm/error-messages-1eaaad23.js.map +1 -0
- package/dist/esm/event-listeners-706d4309.js +59 -0
- package/dist/esm/event-listeners-706d4309.js.map +1 -0
- package/dist/esm/{execution-control-72cc50f4.js → execution-control-2ebaf4ef.js} +15 -15
- package/dist/esm/execution-control-2ebaf4ef.js.map +1 -0
- package/dist/esm/focus-visible-d9dbfeef.js +45 -0
- package/dist/esm/focus-visible-d9dbfeef.js.map +1 -0
- package/dist/esm/form-4b145b7a.js +18 -0
- package/dist/esm/form-4b145b7a.js.map +1 -0
- package/dist/esm/form-control-5d3cf9d4.js +34 -0
- package/dist/esm/form-control-5d3cf9d4.js.map +1 -0
- package/dist/esm/{index-371fb9d4.js → index-d415464d.js} +628 -490
- package/dist/esm/index-d415464d.js.map +1 -0
- package/dist/esm/index.js +56 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +8 -15
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/modal-6c1288e3.js +33 -0
- package/dist/esm/modal-6c1288e3.js.map +1 -0
- package/dist/esm/{popover-1aacbae8.js → popover-25996e62.js} +105 -111
- package/dist/esm/popover-25996e62.js.map +1 -0
- package/dist/esm/popup-7209e9d5.js +98 -0
- package/dist/esm/popup-7209e9d5.js.map +1 -0
- package/dist/esm/scroll-3e16851e.js +64 -0
- package/dist/esm/scroll-3e16851e.js.map +1 -0
- package/dist/esm/six-alert.entry.js +144 -111
- package/dist/esm/six-alert.entry.js.map +1 -1
- package/dist/esm/six-avatar.entry.js +23 -22
- package/dist/esm/six-avatar.entry.js.map +1 -1
- package/dist/esm/six-badge.entry.js +25 -24
- package/dist/esm/six-badge.entry.js.map +1 -1
- package/dist/esm/six-button.entry.js +97 -90
- package/dist/esm/six-button.entry.js.map +1 -1
- package/dist/esm/six-card.entry.js +10 -9
- package/dist/esm/six-card.entry.js.map +1 -1
- package/dist/esm/six-checkbox_2.entry.js +187 -0
- package/dist/esm/six-checkbox_2.entry.js.map +1 -0
- package/dist/esm/six-datepicker.entry.js +864 -871
- package/dist/esm/six-datepicker.entry.js.map +1 -1
- package/dist/esm/six-details.entry.js +129 -128
- package/dist/esm/six-details.entry.js.map +1 -1
- package/dist/esm/six-dialog.entry.js +115 -131
- package/dist/esm/six-dialog.entry.js.map +1 -1
- package/dist/esm/six-drawer.entry.js +132 -149
- package/dist/esm/six-drawer.entry.js.map +1 -1
- package/dist/esm/six-dropdown_2.entry.js +713 -639
- package/dist/esm/six-dropdown_2.entry.js.map +1 -1
- package/dist/esm/six-error-page.entry.js +84 -83
- package/dist/esm/six-error-page.entry.js.map +1 -1
- package/dist/esm/six-error.entry.js +18 -0
- package/dist/esm/six-error.entry.js.map +1 -0
- package/dist/esm/six-file-list-item.entry.js +36 -35
- package/dist/esm/six-file-list-item.entry.js.map +1 -1
- package/dist/esm/six-file-list.entry.js +9 -8
- package/dist/esm/six-file-list.entry.js.map +1 -1
- package/dist/esm/six-file-upload.entry.js +101 -100
- package/dist/esm/six-file-upload.entry.js.map +1 -1
- package/dist/esm/six-footer.entry.js +10 -9
- package/dist/esm/six-footer.entry.js.map +1 -1
- package/dist/esm/six-group-label.entry.js +45 -44
- package/dist/esm/six-group-label.entry.js.map +1 -1
- package/dist/esm/six-header.entry.js +173 -157
- package/dist/esm/six-header.entry.js.map +1 -1
- package/dist/esm/six-icon-button.entry.js +34 -33
- package/dist/esm/six-icon-button.entry.js.map +1 -1
- package/dist/esm/six-icon.entry.js +24 -23
- package/dist/esm/six-icon.entry.js.map +1 -1
- package/dist/esm/six-input.entry.js +189 -242
- package/dist/esm/six-input.entry.js.map +1 -1
- package/dist/esm/six-item-picker.entry.js +407 -310
- package/dist/esm/six-item-picker.entry.js.map +1 -1
- package/dist/esm/six-language-switcher.entry.js +49 -48
- package/dist/esm/six-language-switcher.entry.js.map +1 -1
- package/dist/esm/six-layout-grid.entry.js +22 -21
- package/dist/esm/six-layout-grid.entry.js.map +1 -1
- package/dist/esm/six-main-container.entry.js +11 -10
- package/dist/esm/six-main-container.entry.js.map +1 -1
- package/dist/esm/six-menu-divider.entry.js +10 -9
- package/dist/esm/six-menu-divider.entry.js.map +1 -1
- package/dist/esm/six-menu-label.entry.js +10 -9
- package/dist/esm/six-menu-label.entry.js.map +1 -1
- package/dist/esm/six-picto.entry.js +16 -15
- package/dist/esm/six-picto.entry.js.map +1 -1
- package/dist/esm/six-progress-bar.entry.js +17 -16
- package/dist/esm/six-progress-bar.entry.js.map +1 -1
- package/dist/esm/six-progress-ring.entry.js +32 -31
- package/dist/esm/six-progress-ring.entry.js.map +1 -1
- package/dist/esm/six-radio.entry.js +105 -118
- package/dist/esm/six-radio.entry.js.map +1 -1
- package/dist/esm/six-range.entry.js +200 -224
- package/dist/esm/six-range.entry.js.map +1 -1
- package/dist/esm/six-root.entry.js +13 -31
- package/dist/esm/six-root.entry.js.map +1 -1
- package/dist/esm/six-search-field.entry.js +46 -45
- package/dist/esm/six-search-field.entry.js.map +1 -1
- package/dist/esm/six-select.entry.js +498 -402
- package/dist/esm/six-select.entry.js.map +1 -1
- package/dist/esm/six-sidebar-item-group.entry.js +58 -46
- package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
- package/dist/esm/six-sidebar-item.entry.js +19 -16
- package/dist/esm/six-sidebar-item.entry.js.map +1 -1
- package/dist/esm/six-sidebar.entry.js +176 -175
- package/dist/esm/six-sidebar.entry.js.map +1 -1
- package/dist/esm/six-spinner.entry.js +17 -16
- package/dist/esm/six-spinner.entry.js.map +1 -1
- package/dist/esm/six-stage-indicator.entry.js +19 -0
- package/dist/esm/six-stage-indicator.entry.js.map +1 -0
- package/dist/esm/six-switch.entry.js +108 -101
- package/dist/esm/six-switch.entry.js.map +1 -1
- package/dist/esm/six-tab-group.entry.js +256 -235
- package/dist/esm/six-tab-group.entry.js.map +1 -1
- package/dist/esm/six-tab-panel.entry.js +16 -15
- package/dist/esm/six-tab-panel.entry.js.map +1 -1
- package/dist/esm/six-tab.entry.js +57 -40
- package/dist/esm/six-tab.entry.js.map +1 -1
- package/dist/esm/six-tag.entry.js +57 -34
- package/dist/esm/six-tag.entry.js.map +1 -1
- package/dist/esm/six-textarea.entry.js +184 -229
- package/dist/esm/six-textarea.entry.js.map +1 -1
- package/dist/esm/six-tile.entry.js +79 -78
- package/dist/esm/six-tile.entry.js.map +1 -1
- package/dist/esm/six-timepicker.entry.js +350 -364
- package/dist/esm/six-timepicker.entry.js.map +1 -1
- package/dist/esm/six-tooltip.entry.js +150 -149
- package/dist/esm/six-tooltip.entry.js.map +1 -1
- package/dist/esm/slot-56531341.js +47 -0
- package/dist/esm/slot-56531341.js.map +1 -0
- package/dist/esm/types-a07bb999.js +19 -0
- package/dist/esm/types-a07bb999.js.map +1 -0
- package/dist/esm/ui-library.js +7 -8
- package/dist/esm/ui-library.js.map +1 -1
- package/dist/types/components/six-alert/six-alert.d.ts +47 -40
- package/dist/types/components/six-avatar/six-avatar.d.ts +11 -11
- package/dist/types/components/six-badge/six-badge.d.ts +7 -7
- package/dist/types/components/six-button/six-button.d.ts +48 -48
- package/dist/types/components/six-card/six-card.d.ts +1 -1
- package/dist/types/components/six-checkbox/six-checkbox.d.ts +58 -71
- package/dist/types/components/six-datepicker/components/day-selection.d.ts +3 -3
- package/dist/types/components/six-datepicker/components/month-selection.d.ts +3 -3
- package/dist/types/components/six-datepicker/components/year-selection.d.ts +3 -3
- package/dist/types/components/six-datepicker/six-date-formats.d.ts +20 -20
- package/dist/types/components/six-datepicker/six-datepicker.d.ts +188 -192
- package/dist/types/components/six-details/six-details.d.ts +42 -42
- package/dist/types/components/six-dialog/six-dialog.d.ts +51 -50
- package/dist/types/components/six-drawer/six-drawer.d.ts +58 -58
- package/dist/types/components/six-dropdown/six-dropdown.d.ts +131 -112
- package/dist/types/components/six-error/six-error.d.ts +9 -0
- package/dist/types/components/six-error-page/six-error-page.d.ts +25 -25
- package/dist/types/components/six-file-list/six-file-list.d.ts +1 -1
- package/dist/types/components/six-file-list-item/six-file-list-item.d.ts +23 -23
- package/dist/types/components/six-file-upload/six-file-upload.d.ts +33 -33
- package/dist/types/components/six-footer/six-footer.d.ts +1 -1
- package/dist/types/components/six-group-label/six-group-label.d.ts +22 -22
- package/dist/types/components/six-header/six-header.d.ts +59 -55
- package/dist/types/components/six-icon/six-icon.d.ts +5 -5
- package/dist/types/components/six-icon-button/six-icon-button.d.ts +18 -18
- package/dist/types/components/six-input/six-input.d.ts +112 -129
- package/dist/types/components/six-item-picker/six-item-picker.d.ts +95 -88
- package/dist/types/components/six-item-picker/types.d.ts +7 -7
- package/dist/types/components/six-language-switcher/six-language-switcher.d.ts +15 -15
- package/dist/types/components/six-layout-grid/six-layout-grid.d.ts +6 -6
- package/dist/types/components/six-main-container/six-main-container.d.ts +4 -4
- package/dist/types/components/six-menu/six-menu.d.ts +67 -63
- package/dist/types/components/six-menu-divider/six-menu-divider.d.ts +1 -1
- package/dist/types/components/six-menu-item/six-menu-item.d.ts +27 -21
- package/dist/types/components/six-menu-label/six-menu-label.d.ts +1 -1
- package/dist/types/components/six-picto/six-picto.d.ts +6 -6
- package/dist/types/components/six-progress-bar/six-progress-bar.d.ts +5 -5
- package/dist/types/components/six-progress-ring/six-progress-ring.d.ts +11 -11
- package/dist/types/components/six-radio/six-radio.d.ts +38 -48
- package/dist/types/components/six-range/six-range.d.ts +77 -87
- package/dist/types/components/six-root/six-root.d.ts +8 -21
- package/dist/types/components/six-search-field/six-search-field.d.ts +20 -20
- package/dist/types/components/six-select/six-select.d.ts +137 -134
- package/dist/types/components/six-select/util.d.ts +1 -1
- package/dist/types/components/six-sidebar/six-sidebar.d.ts +45 -45
- package/dist/types/components/six-sidebar-item/six-sidebar-item.d.ts +12 -7
- package/dist/types/components/six-sidebar-item-group/six-sidebar-item-group.d.ts +25 -19
- package/dist/types/components/six-spinner/six-spinner.d.ts +6 -5
- package/dist/types/components/six-stage-indicator/six-stage-indicator.d.ts +3 -3
- package/dist/types/components/six-switch/six-switch.d.ts +49 -44
- package/dist/types/components/six-tab/six-tab.d.ts +20 -20
- package/dist/types/components/six-tab-group/six-tab-group.d.ts +38 -38
- package/dist/types/components/six-tab-panel/six-tab-panel.d.ts +7 -7
- package/dist/types/components/six-tag/six-tag.d.ts +20 -12
- package/dist/types/components/six-textarea/six-textarea.d.ts +89 -105
- package/dist/types/components/six-tile/six-tile.d.ts +31 -31
- package/dist/types/components/six-timepicker/six-timepicker.d.ts +154 -156
- package/dist/types/components/six-tooltip/six-tooltip.d.ts +55 -55
- package/dist/types/components.d.ts +626 -372
- package/dist/types/functional-components/form-control/form-control.d.ts +32 -30
- package/dist/types/index.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +49 -5
- package/dist/types/types.d.ts +3 -0
- package/dist/types/utils/alert.d.ts +10 -0
- package/dist/types/utils/animation.d.ts +12 -0
- package/dist/types/utils/date-util.d.ts +59 -50
- package/dist/types/utils/error-messages.d.ts +44 -0
- package/dist/types/utils/event-listeners.d.ts +11 -10
- package/dist/types/utils/focus-visible.d.ts +2 -2
- package/dist/types/utils/form.d.ts +1 -0
- package/dist/types/utils/modal.d.ts +8 -8
- package/dist/types/utils/offset.d.ts +2 -2
- package/dist/types/utils/popover.d.ts +21 -21
- package/dist/types/utils/slot.d.ts +0 -1
- package/dist/types/utils/time.util.d.ts +6 -6
- package/dist/types/utils/types.d.ts +1 -1
- package/dist/ui-library/index.esm.js +1 -1
- package/dist/ui-library/index.esm.js.map +1 -1
- package/dist/ui-library/p-00c784f9.entry.js +2 -0
- package/dist/ui-library/p-00c784f9.entry.js.map +1 -0
- package/dist/ui-library/{p-0cc08e91.js → p-06ba4450.js} +1 -1
- package/dist/ui-library/p-06ba4450.js.map +1 -0
- package/dist/ui-library/p-0a71815c.entry.js +2 -0
- package/dist/ui-library/p-0a71815c.entry.js.map +1 -0
- package/dist/ui-library/p-0cebf1d2.js +2 -0
- package/dist/ui-library/p-0cebf1d2.js.map +1 -0
- package/dist/ui-library/p-195619ed.entry.js +2 -0
- package/dist/ui-library/p-195619ed.entry.js.map +1 -0
- package/dist/ui-library/p-254d32bf.entry.js +2 -0
- package/dist/ui-library/p-254d32bf.entry.js.map +1 -0
- package/dist/ui-library/p-25b9dacc.entry.js +2 -0
- package/dist/ui-library/p-25b9dacc.entry.js.map +1 -0
- package/dist/ui-library/p-29b50eae.entry.js +2 -0
- package/dist/ui-library/p-29b50eae.entry.js.map +1 -0
- package/dist/ui-library/p-2b7e2bcb.entry.js +2 -0
- package/dist/ui-library/p-2b7e2bcb.entry.js.map +1 -0
- package/dist/ui-library/p-2e7312fc.entry.js +2 -0
- package/dist/ui-library/p-2e7312fc.entry.js.map +1 -0
- package/dist/ui-library/p-2f586b01.entry.js +2 -0
- package/dist/ui-library/p-2f586b01.entry.js.map +1 -0
- package/dist/ui-library/p-35510b9d.entry.js +2 -0
- package/dist/ui-library/p-35510b9d.entry.js.map +1 -0
- package/dist/ui-library/p-3f84b852.entry.js +2 -0
- package/dist/ui-library/p-3f84b852.entry.js.map +1 -0
- package/dist/ui-library/p-46817c94.entry.js +2 -0
- package/dist/ui-library/p-46817c94.entry.js.map +1 -0
- package/dist/ui-library/p-51530e6d.entry.js +2 -0
- package/dist/ui-library/p-51530e6d.entry.js.map +1 -0
- package/dist/ui-library/p-57d3562c.entry.js +2 -0
- package/dist/ui-library/p-57d3562c.entry.js.map +1 -0
- package/dist/ui-library/p-5b8a5a21.entry.js +2 -0
- package/dist/ui-library/p-5b8a5a21.entry.js.map +1 -0
- package/dist/ui-library/p-5cde0403.entry.js +2 -0
- package/dist/ui-library/p-5cde0403.entry.js.map +1 -0
- package/dist/ui-library/p-5ea7ffad.entry.js +2 -0
- package/dist/ui-library/p-5ea7ffad.entry.js.map +1 -0
- package/dist/ui-library/p-651293e7.js +2 -0
- package/dist/ui-library/p-651293e7.js.map +1 -0
- package/dist/ui-library/p-65b32e2b.entry.js +2 -0
- package/dist/ui-library/p-65b32e2b.entry.js.map +1 -0
- package/dist/ui-library/p-6741b418.entry.js +2 -0
- package/dist/ui-library/p-6741b418.entry.js.map +1 -0
- package/dist/ui-library/p-6adcd790.entry.js +2 -0
- package/dist/ui-library/p-6adcd790.entry.js.map +1 -0
- package/dist/ui-library/{p-5084ca7c.entry.js → p-6bf442d5.entry.js} +2 -2
- package/dist/ui-library/p-6bf442d5.entry.js.map +1 -0
- package/dist/ui-library/p-6ee48e81.js +2 -0
- package/dist/ui-library/p-6ee48e81.js.map +1 -0
- package/dist/ui-library/p-7130a678.entry.js +2 -0
- package/dist/ui-library/p-7130a678.entry.js.map +1 -0
- package/dist/ui-library/p-71a4a398.entry.js +2 -0
- package/dist/ui-library/p-71a4a398.entry.js.map +1 -0
- package/dist/ui-library/p-7254e090.entry.js +2 -0
- package/dist/ui-library/p-7254e090.entry.js.map +1 -0
- package/dist/ui-library/{p-bf4a35ec.js → p-7f856f00.js} +1 -1
- package/dist/ui-library/p-7f856f00.js.map +1 -0
- package/dist/ui-library/{p-eb8f05a9.js → p-8227aaed.js} +2 -2
- package/dist/ui-library/p-8227aaed.js.map +1 -0
- package/dist/ui-library/p-842b492e.js +2 -0
- package/dist/ui-library/p-842b492e.js.map +1 -0
- package/dist/ui-library/{p-25a3bf57.js → p-862d474e.js} +1 -1
- package/dist/ui-library/p-862d474e.js.map +1 -0
- package/dist/ui-library/p-8af4ae3e.entry.js +2 -0
- package/dist/ui-library/p-8af4ae3e.entry.js.map +1 -0
- package/dist/ui-library/p-8bfb4bfc.js +2 -0
- package/dist/ui-library/p-8bfb4bfc.js.map +1 -0
- package/dist/ui-library/p-957a36f7.entry.js +2 -0
- package/dist/ui-library/p-957a36f7.entry.js.map +1 -0
- package/dist/ui-library/p-9a4cc473.entry.js +2 -0
- package/dist/ui-library/p-9a4cc473.entry.js.map +1 -0
- package/dist/ui-library/p-9ddaa7e2.entry.js +2 -0
- package/dist/ui-library/p-9ddaa7e2.entry.js.map +1 -0
- package/dist/ui-library/p-9e0f0562.entry.js +2 -0
- package/dist/ui-library/p-9e0f0562.entry.js.map +1 -0
- package/dist/ui-library/p-9e14b37a.entry.js +2 -0
- package/dist/ui-library/p-9e14b37a.entry.js.map +1 -0
- package/dist/ui-library/p-9effba13.entry.js +2 -0
- package/dist/ui-library/p-9effba13.entry.js.map +1 -0
- package/dist/ui-library/p-a0e324ad.entry.js +2 -0
- package/dist/ui-library/p-a0e324ad.entry.js.map +1 -0
- package/dist/ui-library/{p-8cf72af6.js → p-a1502802.js} +1 -1
- package/dist/ui-library/p-a1502802.js.map +1 -0
- package/dist/ui-library/p-a31dfc45.entry.js +2 -0
- package/dist/ui-library/p-a31dfc45.entry.js.map +1 -0
- package/dist/ui-library/p-a4e3f4e5.entry.js +2 -0
- package/dist/ui-library/p-a4e3f4e5.entry.js.map +1 -0
- package/dist/ui-library/p-a627f6e0.entry.js +2 -0
- package/dist/ui-library/p-a627f6e0.entry.js.map +1 -0
- package/dist/ui-library/p-a69ba529.entry.js +2 -0
- package/dist/ui-library/p-a69ba529.entry.js.map +1 -0
- package/dist/ui-library/p-a995283c.entry.js +2 -0
- package/dist/ui-library/p-a995283c.entry.js.map +1 -0
- package/dist/ui-library/p-b4f81f97.entry.js +2 -0
- package/dist/ui-library/p-b4f81f97.entry.js.map +1 -0
- package/dist/ui-library/p-b863dcc4.entry.js +2 -0
- package/dist/ui-library/p-b863dcc4.entry.js.map +1 -0
- package/dist/ui-library/p-bca7a8c8.entry.js +2 -0
- package/dist/ui-library/p-bca7a8c8.entry.js.map +1 -0
- package/dist/ui-library/p-c46013f4.entry.js +2 -0
- package/dist/ui-library/p-c46013f4.entry.js.map +1 -0
- package/dist/ui-library/p-cec88a79.entry.js +2 -0
- package/dist/ui-library/p-cec88a79.entry.js.map +1 -0
- package/dist/ui-library/p-d15331e7.entry.js +2 -0
- package/dist/ui-library/p-d15331e7.entry.js.map +1 -0
- package/dist/ui-library/p-d668844e.entry.js +2 -0
- package/dist/ui-library/p-d668844e.entry.js.map +1 -0
- package/dist/ui-library/p-e080d5b6.js +2 -0
- package/dist/ui-library/p-e080d5b6.js.map +1 -0
- package/dist/ui-library/p-e1255160.js +2 -0
- package/dist/ui-library/p-e1255160.js.map +1 -0
- package/dist/ui-library/p-e5c08d9f.entry.js +2 -0
- package/dist/ui-library/p-e5c08d9f.entry.js.map +1 -0
- package/dist/ui-library/p-e6db01a9.entry.js +2 -0
- package/dist/ui-library/p-e6db01a9.entry.js.map +1 -0
- package/dist/ui-library/p-e8d5a789.js +3 -0
- package/dist/ui-library/p-e8d5a789.js.map +1 -0
- package/dist/ui-library/p-f136a6b2.js +2 -0
- package/dist/ui-library/p-f136a6b2.js.map +1 -0
- package/dist/ui-library/p-f1dcaab0.entry.js +2 -0
- package/dist/ui-library/p-f1dcaab0.entry.js.map +1 -0
- package/dist/ui-library/p-f2320c65.entry.js +2 -0
- package/dist/ui-library/p-f2320c65.entry.js.map +1 -0
- package/dist/ui-library/p-f4c61910.entry.js +2 -0
- package/dist/ui-library/p-f4c61910.entry.js.map +1 -0
- package/dist/ui-library/p-fe483fc6.entry.js +2 -0
- package/dist/ui-library/p-fe483fc6.entry.js.map +1 -0
- package/dist/ui-library/ui-library.css +1 -10
- package/dist/ui-library/ui-library.esm.js +1 -1
- package/dist/ui-library/ui-library.esm.js.map +1 -1
- package/loader/index.d.ts +1 -1
- package/package.json +23 -24
- package/dist/cjs/event-listeners-dd94dcfb.js +0 -45
- package/dist/cjs/event-listeners-dd94dcfb.js.map +0 -1
- package/dist/cjs/execution-control-45c84c46.js.map +0 -1
- package/dist/cjs/focus-visible-e0d93a95.js +0 -47
- package/dist/cjs/focus-visible-e0d93a95.js.map +0 -1
- package/dist/cjs/form-control-7494488a.js +0 -35
- package/dist/cjs/form-control-7494488a.js.map +0 -1
- package/dist/cjs/index-ccf35821.js.map +0 -1
- package/dist/cjs/modal-21350fb5.js +0 -52
- package/dist/cjs/modal-21350fb5.js.map +0 -1
- package/dist/cjs/popover-b5e2d5ef.js.map +0 -1
- package/dist/cjs/popup-44836aaf.js +0 -103
- package/dist/cjs/popup-44836aaf.js.map +0 -1
- package/dist/cjs/scroll-76e6f5d7.js +0 -69
- package/dist/cjs/scroll-76e6f5d7.js.map +0 -1
- package/dist/cjs/set-attributes_2.cjs.entry.js +0 -73
- package/dist/cjs/set-attributes_2.cjs.entry.js.map +0 -1
- package/dist/cjs/six-checkbox.cjs.entry.js +0 -171
- package/dist/cjs/six-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/six-form.cjs.entry.js +0 -236
- package/dist/cjs/six-form.cjs.entry.js.map +0 -1
- package/dist/cjs/six-menu-item.cjs.entry.js +0 -63
- package/dist/cjs/six-menu-item.cjs.entry.js.map +0 -1
- package/dist/cjs/slot-bccbdb59.js +0 -53
- package/dist/cjs/slot-bccbdb59.js.map +0 -1
- package/dist/cjs/types-64878648.js +0 -17
- package/dist/cjs/types-64878648.js.map +0 -1
- package/dist/collection/components/six-form/six-form.css +0 -11
- package/dist/collection/components/six-form/six-form.js +0 -427
- package/dist/collection/components/six-form/six-form.js.map +0 -1
- package/dist/collection/utils/support.js +0 -16
- package/dist/collection/utils/support.js.map +0 -1
- package/dist/collection/wrappers/set-attributes/set-attributes.js +0 -74
- package/dist/collection/wrappers/set-attributes/set-attributes.js.map +0 -1
- package/dist/components/set-attributes.d.ts +0 -11
- package/dist/components/set-attributes.js +0 -8
- package/dist/components/set-attributes.js.map +0 -1
- package/dist/components/set-attributes2.js +0 -71
- package/dist/components/set-attributes2.js.map +0 -1
- package/dist/components/six-form.js +0 -257
- package/dist/components/six-form.js.map +0 -1
- package/dist/components/six-tag2.js +0 -74
- package/dist/components/six-tag2.js.map +0 -1
- package/dist/esm/event-listeners-6b434035.js +0 -43
- package/dist/esm/event-listeners-6b434035.js.map +0 -1
- package/dist/esm/execution-control-72cc50f4.js.map +0 -1
- package/dist/esm/focus-visible-fa7129a0.js +0 -45
- package/dist/esm/focus-visible-fa7129a0.js.map +0 -1
- package/dist/esm/form-control-44a50dd6.js +0 -33
- package/dist/esm/form-control-44a50dd6.js.map +0 -1
- package/dist/esm/index-371fb9d4.js.map +0 -1
- package/dist/esm/modal-b1d96441.js +0 -49
- package/dist/esm/modal-b1d96441.js.map +0 -1
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/popover-1aacbae8.js.map +0 -1
- package/dist/esm/popup-678b8592.js +0 -98
- package/dist/esm/popup-678b8592.js.map +0 -1
- package/dist/esm/scroll-180b53fd.js +0 -64
- package/dist/esm/set-attributes_2.entry.js +0 -68
- package/dist/esm/set-attributes_2.entry.js.map +0 -1
- package/dist/esm/six-checkbox.entry.js +0 -167
- package/dist/esm/six-checkbox.entry.js.map +0 -1
- package/dist/esm/six-form.entry.js +0 -232
- package/dist/esm/six-form.entry.js.map +0 -1
- package/dist/esm/six-menu-item.entry.js +0 -59
- package/dist/esm/six-menu-item.entry.js.map +0 -1
- package/dist/esm/slot-2e64df19.js +0 -48
- package/dist/esm/slot-2e64df19.js.map +0 -1
- package/dist/esm/types-4b10b413.js +0 -17
- package/dist/esm/types-4b10b413.js.map +0 -1
- package/dist/types/components/six-form/six-form.d.ts +0 -60
- package/dist/types/utils/support.d.ts +0 -1
- package/dist/types/wrappers/set-attributes/set-attributes.d.ts +0 -9
- package/dist/ui-library/p-02d5a6d8.js +0 -2
- package/dist/ui-library/p-02d5a6d8.js.map +0 -1
- package/dist/ui-library/p-053d6de8.entry.js +0 -2
- package/dist/ui-library/p-053d6de8.entry.js.map +0 -1
- package/dist/ui-library/p-0cc08e91.js.map +0 -1
- package/dist/ui-library/p-0eee4c41.entry.js +0 -2
- package/dist/ui-library/p-0eee4c41.entry.js.map +0 -1
- package/dist/ui-library/p-0fe78f9b.js +0 -2
- package/dist/ui-library/p-0fe78f9b.js.map +0 -1
- package/dist/ui-library/p-187fbba0.js +0 -3
- package/dist/ui-library/p-187fbba0.js.map +0 -1
- package/dist/ui-library/p-25a3bf57.js.map +0 -1
- package/dist/ui-library/p-25b42655.entry.js +0 -2
- package/dist/ui-library/p-25b42655.entry.js.map +0 -1
- package/dist/ui-library/p-271ba152.entry.js +0 -2
- package/dist/ui-library/p-271ba152.entry.js.map +0 -1
- package/dist/ui-library/p-27c4ee88.entry.js +0 -2
- package/dist/ui-library/p-27c4ee88.entry.js.map +0 -1
- package/dist/ui-library/p-2a36b7d0.entry.js +0 -2
- package/dist/ui-library/p-2a36b7d0.entry.js.map +0 -1
- package/dist/ui-library/p-2a8ad91b.entry.js +0 -2
- package/dist/ui-library/p-2a8ad91b.entry.js.map +0 -1
- package/dist/ui-library/p-30e0cdce.entry.js +0 -2
- package/dist/ui-library/p-30e0cdce.entry.js.map +0 -1
- package/dist/ui-library/p-3a47c8ad.entry.js +0 -2
- package/dist/ui-library/p-3a47c8ad.entry.js.map +0 -1
- package/dist/ui-library/p-3a4815cb.entry.js +0 -2
- package/dist/ui-library/p-3a4815cb.entry.js.map +0 -1
- package/dist/ui-library/p-3b71cac4.entry.js +0 -2
- package/dist/ui-library/p-3b71cac4.entry.js.map +0 -1
- package/dist/ui-library/p-3d4a2e03.entry.js +0 -2
- package/dist/ui-library/p-3d4a2e03.entry.js.map +0 -1
- package/dist/ui-library/p-3e4b9341.entry.js +0 -2
- package/dist/ui-library/p-3e4b9341.entry.js.map +0 -1
- package/dist/ui-library/p-41f0b6ff.entry.js +0 -2
- package/dist/ui-library/p-41f0b6ff.entry.js.map +0 -1
- package/dist/ui-library/p-435242a8.entry.js +0 -2
- package/dist/ui-library/p-435242a8.entry.js.map +0 -1
- package/dist/ui-library/p-5084ca7c.entry.js.map +0 -1
- package/dist/ui-library/p-5b3e6eb7.entry.js +0 -2
- package/dist/ui-library/p-5b3e6eb7.entry.js.map +0 -1
- package/dist/ui-library/p-5c1dd25a.entry.js +0 -2
- package/dist/ui-library/p-5c1dd25a.entry.js.map +0 -1
- package/dist/ui-library/p-5c60227f.entry.js +0 -2
- package/dist/ui-library/p-5c60227f.entry.js.map +0 -1
- package/dist/ui-library/p-5dc40a6a.entry.js +0 -2
- package/dist/ui-library/p-5dc40a6a.entry.js.map +0 -1
- package/dist/ui-library/p-649017db.entry.js +0 -2
- package/dist/ui-library/p-649017db.entry.js.map +0 -1
- package/dist/ui-library/p-713684c7.entry.js +0 -2
- package/dist/ui-library/p-713684c7.entry.js.map +0 -1
- package/dist/ui-library/p-73325eec.entry.js +0 -2
- package/dist/ui-library/p-73325eec.entry.js.map +0 -1
- package/dist/ui-library/p-7639c68e.entry.js +0 -2
- package/dist/ui-library/p-7639c68e.entry.js.map +0 -1
- package/dist/ui-library/p-764f56dd.entry.js +0 -2
- package/dist/ui-library/p-764f56dd.entry.js.map +0 -1
- package/dist/ui-library/p-886a35ee.entry.js +0 -2
- package/dist/ui-library/p-886a35ee.entry.js.map +0 -1
- package/dist/ui-library/p-8cf72af6.js.map +0 -1
- package/dist/ui-library/p-8d6f4311.entry.js +0 -2
- package/dist/ui-library/p-8d6f4311.entry.js.map +0 -1
- package/dist/ui-library/p-90c2dc30.entry.js +0 -2
- package/dist/ui-library/p-90c2dc30.entry.js.map +0 -1
- package/dist/ui-library/p-965fa6a6.entry.js +0 -2
- package/dist/ui-library/p-965fa6a6.entry.js.map +0 -1
- package/dist/ui-library/p-98234e3f.entry.js +0 -2
- package/dist/ui-library/p-98234e3f.entry.js.map +0 -1
- package/dist/ui-library/p-9b9c3afc.entry.js +0 -2
- package/dist/ui-library/p-9b9c3afc.entry.js.map +0 -1
- package/dist/ui-library/p-9c34eab7.entry.js +0 -2
- package/dist/ui-library/p-9c34eab7.entry.js.map +0 -1
- package/dist/ui-library/p-9e0c386f.entry.js +0 -2
- package/dist/ui-library/p-9e0c386f.entry.js.map +0 -1
- package/dist/ui-library/p-9f8b6144.entry.js +0 -2
- package/dist/ui-library/p-9f8b6144.entry.js.map +0 -1
- package/dist/ui-library/p-a3cc0521.entry.js +0 -2
- package/dist/ui-library/p-a3cc0521.entry.js.map +0 -1
- package/dist/ui-library/p-a5143b8d.entry.js +0 -2
- package/dist/ui-library/p-a5143b8d.entry.js.map +0 -1
- package/dist/ui-library/p-aa6f71e1.entry.js +0 -2
- package/dist/ui-library/p-aa6f71e1.entry.js.map +0 -1
- package/dist/ui-library/p-abb98245.entry.js +0 -2
- package/dist/ui-library/p-abb98245.entry.js.map +0 -1
- package/dist/ui-library/p-b183e44f.js +0 -2
- package/dist/ui-library/p-b183e44f.js.map +0 -1
- package/dist/ui-library/p-b27f496f.entry.js +0 -2
- package/dist/ui-library/p-b27f496f.entry.js.map +0 -1
- package/dist/ui-library/p-ba74863a.js +0 -2
- package/dist/ui-library/p-ba74863a.js.map +0 -1
- package/dist/ui-library/p-bf4a35ec.js.map +0 -1
- package/dist/ui-library/p-c07adc21.entry.js +0 -2
- package/dist/ui-library/p-c07adc21.entry.js.map +0 -1
- package/dist/ui-library/p-c700e3eb.entry.js +0 -2
- package/dist/ui-library/p-c700e3eb.entry.js.map +0 -1
- package/dist/ui-library/p-cab99e54.entry.js +0 -2
- package/dist/ui-library/p-cab99e54.entry.js.map +0 -1
- package/dist/ui-library/p-cf1133a0.entry.js +0 -2
- package/dist/ui-library/p-cf1133a0.entry.js.map +0 -1
- package/dist/ui-library/p-cf1d36c0.entry.js +0 -2
- package/dist/ui-library/p-cf1d36c0.entry.js.map +0 -1
- package/dist/ui-library/p-d87a6f4d.js +0 -2
- package/dist/ui-library/p-d87a6f4d.js.map +0 -1
- package/dist/ui-library/p-d8c97778.entry.js +0 -2
- package/dist/ui-library/p-d8c97778.entry.js.map +0 -1
- package/dist/ui-library/p-deb01174.entry.js +0 -2
- package/dist/ui-library/p-deb01174.entry.js.map +0 -1
- package/dist/ui-library/p-e5ba13d2.entry.js +0 -2
- package/dist/ui-library/p-e5ba13d2.entry.js.map +0 -1
- package/dist/ui-library/p-eb8f05a9.js.map +0 -1
- package/dist/ui-library/p-f29ba9cb.entry.js +0 -2
- package/dist/ui-library/p-f29ba9cb.entry.js.map +0 -1
- package/dist/ui-library/p-f66eb76c.entry.js +0 -2
- package/dist/ui-library/p-f66eb76c.entry.js.map +0 -1
- package/dist/ui-library/p-f974a184.entry.js +0 -2
- package/dist/ui-library/p-f974a184.entry.js.map +0 -1
- package/dist/ui-library/p-fb8d0734.entry.js +0 -2
- package/dist/ui-library/p-fb8d0734.entry.js.map +0 -1
- package/readme.md +0 -156
|
@@ -1,177 +1,193 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { E as EventListeners } from './event-listeners-
|
|
3
|
-
import { g as getSlot, h as hasSlot } from './slot-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d415464d.js';
|
|
2
|
+
import { E as EventListeners } from './event-listeners-706d4309.js';
|
|
3
|
+
import { g as getSlot, h as hasSlot } from './slot-56531341.js';
|
|
4
4
|
|
|
5
|
-
const sixHeaderCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:
|
|
5
|
+
const sixHeaderCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:block;user-select:none;--search-border-width:1px}::slotted(six-search-field){position:absolute;margin-left:var(--search-border-width);width:calc(100% - 2 * var(--search-border-width))}.six-header{display:flex;width:100%;height:3.75rem;background-color:var(--six-header-background-color);align-items:center;flex-wrap:wrap;box-shadow:var(--six-shadow-medium);border-bottom:var(--six-header-border-with) solid var(--six-header-border-color)}.six-header__logo{width:6rem;margin-top:0.15rem}.six-header__logo--clickable{cursor:pointer}.six-header__placeholder{flex:1}.six-header__menu,.six-header__logo,.six-header__custom,.six-header__search,.six-header__notification,.six-header__app-switcher,.six-header__profile{height:calc(100% - 0.25rem - 1px);padding:0 1.25rem;display:flex;align-items:center;border-bottom:solid 0.25rem transparent}.six-header__menu--open,.six-header__logo--open,.six-header__custom--open,.six-header__search--open,.six-header__notification--open,.six-header__app-switcher--open,.six-header__profile--open{border-bottom:solid 0.25rem var(--six-header-border-color-open)}.six-header__app-switcher-dropdown{display:flex;align-items:center}.six-header__selected-app{cursor:pointer;font-size:0.9rem;font-weight:600;padding-right:0;padding-left:0.3rem}.six-header__selected-app:hover{color:var(--six-header-selected-app-color-hover)}.six-header__search-field{opacity:0;transform:scale(0.9);transition:var(--six-transition-fast) opacity, var(--six-transition-fast) transform;display:none}.six-header__search-field--visible{opacity:1;transform:none;display:block}.six-header__search-field--shift-content.six-header__search-field--visible{height:2.65rem;transition:var(--six-transition-fast) height}.six-header__search-field--shift-content:not(.six-header__search-field--visible){height:0;transition:var(--six-transition-fast) height}";
|
|
6
|
+
const SixHeaderStyle0 = sixHeaderCss;
|
|
6
7
|
|
|
7
8
|
var Section;
|
|
8
9
|
(function (Section) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
Section[Section["None"] = 0] = "None";
|
|
11
|
+
Section[Section["Search"] = 1] = "Search";
|
|
12
|
+
Section[Section["AppSwitcher"] = 2] = "AppSwitcher";
|
|
13
|
+
Section[Section["Profile"] = 3] = "Profile";
|
|
13
14
|
})(Section || (Section = {}));
|
|
14
15
|
var Slot;
|
|
15
16
|
(function (Slot) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
Slot["Search"] = "search-field";
|
|
18
|
+
Slot["Notifications"] = "notifications";
|
|
19
|
+
Slot["AppSwitcher"] = "app-switcher-menu";
|
|
20
|
+
Slot["Profile"] = "profile-menu";
|
|
21
|
+
Slot["Logo"] = "logo";
|
|
21
22
|
})(Slot || (Slot = {}));
|
|
22
23
|
const SixHeader = class {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
handleOpenSearchChange() {
|
|
75
|
-
this.computeSearchOpenState();
|
|
76
|
-
}
|
|
77
|
-
/** Sets open state for search */
|
|
78
|
-
async setSearchOpenState(openState) {
|
|
79
|
-
if (this.selectedSection === Section.Search && !openState) {
|
|
80
|
-
this.selectedSection = Section.None;
|
|
24
|
+
constructor(hostRef) {
|
|
25
|
+
registerInstance(this, hostRef);
|
|
26
|
+
this.sixAppNameClicked = createEvent(this, "six-header-app-name-clicked", 7);
|
|
27
|
+
this.sixAppSwitcherSelect = createEvent(this, "six-header-app-switcher-select", 7);
|
|
28
|
+
this.sixProfileSelect = createEvent(this, "six-header-profile-select", 7);
|
|
29
|
+
this.sixHamburgerClick = createEvent(this, "six-header-hamburger-menu-clicked", 7);
|
|
30
|
+
this.sixLogoClick = createEvent(this, "six-header-logo-clicked", 7);
|
|
31
|
+
this.sixSearchFieldToggle = createEvent(this, "six-header-search-field-toggle", 7);
|
|
32
|
+
this.eventListeners = new EventListeners();
|
|
33
|
+
this.setupMenu = (el) => {
|
|
34
|
+
if (el == null)
|
|
35
|
+
return;
|
|
36
|
+
this.eventListeners.add(el, 'click', () => this.sixHamburgerClick.emit());
|
|
37
|
+
};
|
|
38
|
+
this.setupLogo = (el) => {
|
|
39
|
+
if (!this.clickableLogo || el == null)
|
|
40
|
+
return;
|
|
41
|
+
this.eventListeners.add(el, 'click', () => this.sixLogoClick.emit());
|
|
42
|
+
};
|
|
43
|
+
this.setupProfile = (el) => {
|
|
44
|
+
if (el == null)
|
|
45
|
+
return;
|
|
46
|
+
this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.Profile));
|
|
47
|
+
this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));
|
|
48
|
+
this.eventListeners.add(el, 'six-menu-item-selected', (event) => {
|
|
49
|
+
const { name, item } = event.detail;
|
|
50
|
+
this.sixProfileSelect.emit({ selectedLabel: item.innerText, name, item });
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
this.setupAppSwitcher = (el) => {
|
|
54
|
+
if (el == null)
|
|
55
|
+
return;
|
|
56
|
+
this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.AppSwitcher));
|
|
57
|
+
this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));
|
|
58
|
+
this.eventListeners.add(el, 'six-menu-item-selected', (event) => {
|
|
59
|
+
const { name, item } = event.detail;
|
|
60
|
+
this.selectedApp = item.innerText;
|
|
61
|
+
this.sixAppSwitcherSelect.emit({ selectedLabel: item.innerText, name, item });
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
this.appNameClicked = () => this.sixAppNameClicked.emit();
|
|
65
|
+
this.computeSearchOpenState = () => {
|
|
66
|
+
this.selectedSection = this.openSearch ? Section.Search : Section.None;
|
|
67
|
+
};
|
|
68
|
+
this.shiftContent = false;
|
|
69
|
+
this.hideHamburgerMenu = false;
|
|
70
|
+
this.openHamburgerMenu = false;
|
|
71
|
+
this.openSearch = false;
|
|
72
|
+
this.clickableLogo = false;
|
|
73
|
+
this.selectedApp = undefined;
|
|
74
|
+
this.selectedSection = undefined;
|
|
81
75
|
}
|
|
82
|
-
|
|
83
|
-
|
|
76
|
+
handleOpenSearchChange() {
|
|
77
|
+
this.computeSearchOpenState();
|
|
84
78
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
79
|
+
/** Sets open state for search */
|
|
80
|
+
async setSearchOpenState(openState) {
|
|
81
|
+
if (this.selectedSection === Section.Search && !openState) {
|
|
82
|
+
this.selectedSection = Section.None;
|
|
83
|
+
}
|
|
84
|
+
else if (openState && this.selectedSection !== Section.Search) {
|
|
85
|
+
this.selectedSection = Section.Search;
|
|
86
|
+
}
|
|
93
87
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
return value === this.selectedSection;
|
|
98
|
-
}
|
|
99
|
-
selectSection(section) {
|
|
100
|
-
return () => (this.selectedSection = section);
|
|
101
|
-
}
|
|
102
|
-
toggleSearch() {
|
|
103
|
-
const visible = this.selectedSection !== Section.Search;
|
|
104
|
-
this.selectedSection = this.selectedSection === Section.Search ? Section.None : Section.Search;
|
|
105
|
-
this.sixSearchFieldToggle.emit({ visible });
|
|
106
|
-
if (this.selectedSection === Section.Search) {
|
|
107
|
-
// setFocus deferred due to https://github.com/ionic-team/stencil/issues/3772
|
|
108
|
-
setTimeout(async () => {
|
|
109
|
-
var _a, _b;
|
|
110
|
-
const slot = getSlot(this.host, Slot.Search);
|
|
111
|
-
(_b = (_a = slot === null || slot === void 0 ? void 0 : slot.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('six-input')) === null || _b === void 0 ? void 0 : _b.setFocus();
|
|
112
|
-
}, 50);
|
|
88
|
+
/** Get open state for search */
|
|
89
|
+
async getIsSearchOpen() {
|
|
90
|
+
return this.selectedSection === Section.Search;
|
|
113
91
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
[Slot.AppSwitcher]: hasSlot(this.host, Slot.AppSwitcher),
|
|
120
|
-
[Slot.Profile]: hasSlot(this.host, Slot.Profile),
|
|
121
|
-
[Slot.Logo]: hasSlot(this.host, Slot.Logo),
|
|
122
|
-
};
|
|
123
|
-
if (this.hasSlot(Slot.AppSwitcher)) {
|
|
124
|
-
this.selectedApp = this.getSelectedApp();
|
|
92
|
+
hasSlot(slot) {
|
|
93
|
+
if (this.slots == null) {
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
return this.slots[slot];
|
|
125
97
|
}
|
|
126
|
-
|
|
127
|
-
|
|
98
|
+
isSectionSelected(value) {
|
|
99
|
+
return value === this.selectedSection;
|
|
128
100
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
var _a;
|
|
132
|
-
// there are more concise ways to select the first checked menu item, but this is one that works for jest
|
|
133
|
-
const element = getSlot(this.host, Slot.AppSwitcher);
|
|
134
|
-
if (element == null) {
|
|
135
|
-
return undefined;
|
|
101
|
+
selectSection(section) {
|
|
102
|
+
return () => (this.selectedSection = section);
|
|
136
103
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
104
|
+
toggleSearch() {
|
|
105
|
+
const visible = this.selectedSection !== Section.Search;
|
|
106
|
+
this.selectedSection = this.selectedSection === Section.Search ? Section.None : Section.Search;
|
|
107
|
+
this.sixSearchFieldToggle.emit({ visible });
|
|
108
|
+
if (this.selectedSection === Section.Search) {
|
|
109
|
+
// setFocus deferred due to https://github.com/ionic-team/stencil/issues/3772
|
|
110
|
+
setTimeout(async () => {
|
|
111
|
+
var _a, _b;
|
|
112
|
+
const slot = getSlot(this.host, Slot.Search);
|
|
113
|
+
(_b = (_a = slot === null || slot === void 0 ? void 0 : slot.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('six-input')) === null || _b === void 0 ? void 0 : _b.setFocus();
|
|
114
|
+
}, 50);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
componentWillLoad() {
|
|
118
|
+
this.slots = {
|
|
119
|
+
[Slot.Search]: hasSlot(this.host, Slot.Search),
|
|
120
|
+
[Slot.Notifications]: hasSlot(this.host, Slot.Notifications),
|
|
121
|
+
[Slot.AppSwitcher]: hasSlot(this.host, Slot.AppSwitcher),
|
|
122
|
+
[Slot.Profile]: hasSlot(this.host, Slot.Profile),
|
|
123
|
+
[Slot.Logo]: hasSlot(this.host, Slot.Logo),
|
|
124
|
+
};
|
|
125
|
+
if (this.hasSlot(Slot.AppSwitcher)) {
|
|
126
|
+
this.updateSelectedApp();
|
|
127
|
+
}
|
|
128
|
+
if (this.hasSlot(Slot.Search)) {
|
|
129
|
+
this.computeSearchOpenState();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
connectedCallback() {
|
|
133
|
+
const appSwitcherSlot = getSlot(this.host, Slot.AppSwitcher);
|
|
134
|
+
if (appSwitcherSlot) {
|
|
135
|
+
this.mutationObserver = new MutationObserver((mutations) => {
|
|
136
|
+
if (mutations.some((mutation) => mutation.type === 'childList' || mutation.type === 'attributes')) {
|
|
137
|
+
this.updateSelectedApp();
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
this.mutationObserver.observe(appSwitcherSlot, { attributes: true, childList: true, subtree: true });
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
updateSelectedApp() {
|
|
144
|
+
var _a;
|
|
145
|
+
// there are more concise ways to select the first checked menu item, but this is one that works for jest
|
|
146
|
+
const element = getSlot(this.host, Slot.AppSwitcher);
|
|
147
|
+
if (element == null) {
|
|
148
|
+
return undefined;
|
|
149
|
+
}
|
|
150
|
+
const items = Array.from(element.querySelectorAll('six-menu-item'));
|
|
151
|
+
const firstCheckedMenuItem = items.find((item) => item.hasAttribute('checked') && item.getAttribute('checked') !== 'false');
|
|
152
|
+
this.selectedApp = (_a = firstCheckedMenuItem === null || firstCheckedMenuItem === void 0 ? void 0 : firstCheckedMenuItem.textContent) !== null && _a !== void 0 ? _a : undefined;
|
|
153
|
+
}
|
|
154
|
+
disconnectedCallback() {
|
|
155
|
+
var _a;
|
|
156
|
+
this.eventListeners.removeAll();
|
|
157
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
158
|
+
}
|
|
159
|
+
render() {
|
|
160
|
+
const hamburgerMenu = !this.hideHamburgerMenu && (h("section", { key: 'fb78ad479f72a484bd7f7d976106628ad2801f63', class: "six-header__menu" }, h("six-icon-button", { key: '80bf31342d363b5fe1cff6bede3796dda10110cf', name: this.openHamburgerMenu ? 'menu_open' : 'menu', ref: this.setupMenu })));
|
|
161
|
+
const search = this.hasSlot(Slot.Search) && (h("section", { key: '6c31756cf58b9804ef66af83ff96db81d480827b', class: {
|
|
162
|
+
'six-header__search': true,
|
|
163
|
+
'six-header__search--open': this.isSectionSelected(Section.Search),
|
|
164
|
+
} }, h("six-icon-button", { key: '3af9901f916fcdef235232075784a8e174516df5', name: "search", onClick: () => this.toggleSearch(), "data-testid": "search-trigger" })));
|
|
165
|
+
const notifications = this.hasSlot(Slot.Notifications) && (h("section", { key: 'f987048f9a787006209195e08e1410287173b1db', class: "six-header__notification" }, h("slot", { key: '6b868840d2c5da71d144fe70ee3d788a9058946e', name: Slot.Notifications })));
|
|
166
|
+
const appSwitcher = this.hasSlot(Slot.AppSwitcher) && (h("section", { key: '319335bd8baedff666831f02b1e069e90594caff', class: {
|
|
167
|
+
'six-header__app-switcher': true,
|
|
168
|
+
'six-header__app-switcher--open': this.isSectionSelected(Section.AppSwitcher),
|
|
169
|
+
} }, h("six-dropdown", { key: 'dbc3e051599e7f5c17e0c5fd21ecf0ec94d38ddc', distance: 13, skidding: 20, placement: "bottom-end", ref: this.setupAppSwitcher }, h("div", { key: '8f67ad4d5658a003177364f11188b26edc09b8b3', slot: "trigger", class: "six-header__app-switcher-dropdown" }, h("a", { key: '62748cf2060348ccc971ae61b0768a5771f6cd5c', onClick: this.appNameClicked, class: "six-header__selected-app" }, this.selectedApp), h("six-icon-button", { key: '2e8c73e6e9b72bf98985d3cd4d5ba92519edbeb2', name: "apps" })), h("slot", { key: '70056ce4c0154a5122854377ad16549fba8c7a1e', name: Slot.AppSwitcher }))));
|
|
170
|
+
const profile = this.hasSlot(Slot.Profile) && (h("section", { key: '98a2ec4173e732e113a904dd0e6eea123f0957f4', class: {
|
|
171
|
+
'six-header__profile': true,
|
|
172
|
+
'six-header__profile--open': this.isSectionSelected(Section.Profile),
|
|
173
|
+
} }, h("six-dropdown", { key: '8b60c2141215c35e9115fb233eaa3e7884459bd9', distance: 17, skidding: 20, placement: "bottom-end", ref: this.setupProfile }, h("slot", { key: '745751f79e8580a192104b4a9893544a7d51fb9b', name: "profile-avatar", slot: "trigger" }), h("slot", { key: '51954bfd0865bf952797e7b29d777dcf2d262278', name: "profile-menu" }))));
|
|
174
|
+
const logo = this.hasSlot(Slot.Logo) ? (h("section", null, h("slot", { name: "logo" }))) : (h("section", { class: {
|
|
175
|
+
'six-header__logo': true,
|
|
176
|
+
'six-header__logo--clickable': this.clickableLogo,
|
|
177
|
+
}, ref: this.setupLogo }, h("svg", { height: "20", viewBox: "0 0 90 26", xmlns: "http://www.w3.org/2000/svg" }, h("title", null, "SIX"), h("g", { fill: "#DE3919", "fill-rule": "nonzero" }, h("path", { d: "m22.798 3.869c1.82-2.168 4.549-3.545 7.6-3.545h6.807v4.961h-6.807c-1.526 0-2.89.689-3.8 1.771l-12.19 14.526c-1.82 2.166-4.549 3.545-7.6 3.545h-6.808v-4.961h6.808c1.525 0 2.889-.689 3.799-1.773l12.191-14.525" }), h("path", { d: "m42.16.324h5.21v24.806h-5.21z" }), h("path", { d: "m66.743 3.869l4.195 4.999 4.195-4.999c1.819-2.168 4.549-3.545 7.6-3.545h6.806v4.961h-6.806c-1.526 0-2.89.689-3.8 1.771l-4.758 5.669 4.758 5.669c.91 1.084 2.274 1.773 3.8 1.773h6.806v4.961h-6.806c-3.051 0-5.781-1.379-7.6-3.545l-4.195-4.999-4.195 4.999c-1.82 2.166-4.55 3.545-7.6 3.545h-6.807v-4.961h6.807c1.525 0 2.889-.689 3.799-1.773l4.758-5.669-4.758-5.669c-.91-1.083-2.274-1.771-3.799-1.771h-6.807v-4.961h6.807c3.05 0 5.78 1.378 7.6 3.545" })))));
|
|
178
|
+
return (h(Host, { key: '0b346dcbc076e01148e9dfcfb357e4e2ee6afdae' }, h("header", { key: '9a9e22af30dc5b5f057a9e78aa505d4e221e0572', class: "six-header" }, hamburgerMenu, logo, h("section", { key: '2a8cefbeb528e2a658604aadc3c0e14ac3f2475d', class: "six-header__placeholder" }), h("section", { key: 'c581467ed29411e73495453aa221e6778beb785f', class: "six-header__custom" }, h("slot", { key: 'a7852b67ff9c6364df2b05c4865f5776a83e412b' })), search, notifications, appSwitcher, profile), h("div", { key: 'a1c39c872a97b466805a5edf86f918513772f440', class: {
|
|
179
|
+
'six-header__search-field': true,
|
|
180
|
+
'six-header__search-field--visible': this.isSectionSelected(Section.Search),
|
|
181
|
+
'six-header__search-field--shift-content': this.shiftContent,
|
|
182
|
+
} }, h("slot", { key: 'df9347b8759b1793909cf1de124872f4444928b6', name: Slot.Search }))));
|
|
183
|
+
}
|
|
184
|
+
static get assetsDirs() { return ["assets"]; }
|
|
185
|
+
get host() { return getElement(this); }
|
|
186
|
+
static get watchers() { return {
|
|
187
|
+
"openSearch": ["handleOpenSearchChange"]
|
|
188
|
+
}; }
|
|
173
189
|
};
|
|
174
|
-
SixHeader.style =
|
|
190
|
+
SixHeader.style = SixHeaderStyle0;
|
|
175
191
|
|
|
176
192
|
export { SixHeader as six_header };
|
|
177
193
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"six-header.entry.js","mappings":";;;;AAAA,MAAM,YAAY,GAAG,02DAA02D;;ACqB/3D,IAAK,OAKJ;AALD,WAAK,OAAO;EACV,qCAAI,CAAA;EACJ,yCAAM,CAAA;EACN,mDAAW,CAAA;EACX,2CAAO,CAAA;AACT,CAAC,EALI,OAAO,KAAP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ET,MAAM,EAEN,aAAa,EAEb,WAAW,EAEX,OAAO,CACD,EAET,WACE,KAAK,EAAE;QACL,0BAA0B,EAAE,IAAI;QAChC,mCAAmC,EAAE,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC;QAC3E,yCAAyC,EAAE,IAAI,CAAC,YAAY;OAC7D,IAED,YAAM,IAAI,EAAE,IAAI,CAAC,MAAM,GAAI,CACvB,CACD,EACP;GACH;;;;;;;;;;;","names":[],"sources":["./src/components/six-header/six-header.scss?tag=six-header&encapsulation=shadow","./src/components/six-header/six-header.tsx"],"sourcesContent":["@import 'src/global/component';\n\n$header-height: 3.75rem;\n$border-height: 0.25rem;\n\n:host {\n display: block;\n user-select: none;\n --search-border-width: 1px;\n}\n\n::slotted(six-search-field) {\n position: absolute;\n margin-left: var(--search-border-width);\n width: calc(100% - 2 * var(--search-border-width));\n}\n\n.six-header {\n display: flex;\n width: 100%;\n height: $header-height;\n background-color: var(--six-header-background-color);\n align-items: center;\n flex-wrap: wrap;\n box-shadow: var(--six-shadow-x-large);\n border-bottom: var(--six-header-border-with) solid var(--six-header-border-color);\n\n &__logo {\n width: 6rem;\n margin-top: 0.15rem;\n\n &--clickable {\n cursor: pointer;\n }\n }\n\n &__placeholder {\n flex: 1;\n }\n\n &__menu,\n &__logo,\n &__custom,\n &__search,\n &__notification,\n &__app-switcher,\n &__profile {\n height: calc(100% - #{$border-height} - 1px);\n padding: 0 1.25rem;\n display: flex;\n align-items: center;\n border-bottom: solid $border-height transparent;\n\n &--open {\n border-bottom: solid $border-height var(--six-header-border-color-open);\n }\n }\n\n &__selected-app {\n cursor: pointer;\n font-size: 0.9rem;\n font-weight: 600;\n padding-right: 0;\n padding-left: 0.3rem;\n &:hover {\n color: var(--six-header-selected-app-color-hover);\n }\n }\n\n &__search-field {\n opacity: 0;\n transform: scale(0.9);\n transition: var(--six-transition-fast) opacity, var(--six-transition-fast) transform;\n display: none;\n\n &--visible {\n opacity: 1;\n transform: none;\n display: block;\n }\n\n &--shift-content.six-header__search-field--visible {\n height: 2.65rem;\n transition: var(--six-transition-fast) height;\n }\n\n &--shift-content:not(.six-header__search-field--visible) {\n height: 0;\n transition: var(--six-transition-fast) height;\n }\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { getSlot, hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\n\nexport interface SixHeaderAppSwitcherSelectPayload {\n selectedLabel: string;\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nexport interface SixHeaderProfileSelectPayload {\n selectedLabel: string;\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nexport interface SixHeaderSearchFieldToggle {\n visible: boolean;\n}\n\nenum Section {\n None,\n Search,\n AppSwitcher,\n Profile,\n}\n\nenum Slot {\n Search = 'search-field',\n Notifications = 'notifications',\n AppSwitcher = 'app-switcher-menu',\n Profile = 'profile-menu',\n Logo = 'logo',\n}\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define a custom component that is included in the header.\n * @slot search-field - Used to define the search field component in the header.\n * @slot notifications - Used to define the notification component in the header.\n * @slot app-switcher-menu - Used to define the application switcher menu in the header.\n * @slot profile-menu - Used to define the profile menu in the header.\n * @slot profile-avatar - Used to define the avator in the header.\n */\n\n@Component({\n tag: 'six-header',\n styleUrl: 'six-header.scss',\n shadow: true,\n assetsDirs: ['assets'],\n})\nexport class SixHeader {\n /** Indicates if content should be shifted down when search field is visible. */\n @Prop() shiftContent = false;\n\n /** Set the hamburger menu icon to open or closed state */\n @Prop() openHamburgerMenu = false;\n\n /** Set the header search to be in an open or closed state */\n @Prop() openSearch = false;\n\n /** Set whether the logo should be clickable */\n @Prop() clickableLogo = false;\n\n @Watch('openSearch')\n handleOpenSearchChange() {\n this.computeSearchOpenState();\n }\n\n /** Sets open state for search */\n @Method()\n async setSearchOpenState(openState: boolean) {\n if (this.selectedSection === Section.Search && !openState) {\n this.selectedSection = Section.None;\n } else if (openState && this.selectedSection !== Section.Search) {\n this.selectedSection = Section.Search;\n }\n }\n\n /** Get open state for search */\n @Method()\n async getIsSearchOpen() {\n return this.selectedSection === Section.Search;\n }\n\n /** Emitted when the name of the selected app is clicked. */\n @Event({ eventName: 'six-header-app-name-clicked' }) sixAppNameClicked!: EventEmitter<EmptyPayload>;\n\n /** Emitted when a menu item is in the app switcher menu is selected. */\n @Event({ eventName: 'six-header-app-switcher-select' })\n sixAppSwitcherSelect!: EventEmitter<SixHeaderAppSwitcherSelectPayload>;\n\n /** Emitted when a menu item is in the profile menu is selected. */\n @Event({ eventName: 'six-header-profile-select' }) sixProfileSelect!: EventEmitter<SixHeaderProfileSelectPayload>;\n\n /** Emitted when the hamburger menu is clicked. */\n @Event({ eventName: 'six-header-hamburger-menu-clicked' }) sixHamburgerClick!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the header logo is clicked. */\n @Event({ eventName: 'six-header-logo-clicked' }) sixLogoClick!: EventEmitter<EmptyPayload>;\n\n /** Emitted when search field is toggled. */\n @Event({ eventName: 'six-header-search-field-toggle' })\n sixSearchFieldToggle!: EventEmitter<SixHeaderSearchFieldToggle>;\n\n @Element() host!: HTMLSixHeaderElement;\n\n private eventListeners = new EventListeners();\n\n private slots?: Record<Slot, boolean>;\n\n @State() selectedApp?: string;\n @State() selectedSection?: Section;\n\n private hasSlot(slot: Slot): boolean {\n if (this.slots == null) {\n return false;\n }\n return this.slots[slot];\n }\n\n private isSectionSelected(value: Section) {\n return value === this.selectedSection;\n }\n\n private selectSection(section: Section) {\n return () => (this.selectedSection = section);\n }\n\n private toggleSearch() {\n const visible = this.selectedSection !== Section.Search;\n this.selectedSection = this.selectedSection === Section.Search ? Section.None : Section.Search;\n this.sixSearchFieldToggle.emit({ visible });\n if (this.selectedSection === Section.Search) {\n // setFocus deferred due to https://github.com/ionic-team/stencil/issues/3772\n setTimeout(async () => {\n const slot = getSlot(this.host, Slot.Search);\n slot?.shadowRoot?.querySelector('six-input')?.setFocus();\n }, 50);\n }\n }\n\n private setupMenu = (el?: HTMLSixIconButtonElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'click', () => this.sixHamburgerClick.emit());\n };\n\n private setupLogo = (el?: HTMLElement) => {\n if (!this.clickableLogo || el == null) return;\n\n this.eventListeners.add(el, 'click', () => this.sixLogoClick.emit());\n };\n\n private setupProfile = (el?: HTMLSixDropdownElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.Profile));\n this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));\n this.eventListeners.add(el, 'six-menu-item-selected', (event: Event) => {\n const { name, item } = (event as CustomEvent).detail;\n this.sixProfileSelect.emit({ selectedLabel: item.innerText, name, item });\n });\n };\n\n private setupAppSwitcher = (el?: HTMLSixDropdownElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.AppSwitcher));\n this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));\n this.eventListeners.add(el, 'six-menu-item-selected', (event: Event) => {\n const { name, item } = (event as CustomEvent).detail;\n this.selectedApp = item.innerText;\n this.sixAppSwitcherSelect.emit({ selectedLabel: item.innerText, name, item });\n });\n };\n\n private appNameClicked = () => this.sixAppNameClicked.emit();\n\n private computeSearchOpenState = () => {\n this.selectedSection = this.openSearch ? Section.Search : Section.None;\n };\n\n componentWillLoad() {\n this.slots = {\n [Slot.Search]: hasSlot(this.host, Slot.Search),\n [Slot.Notifications]: hasSlot(this.host, Slot.Notifications),\n [Slot.AppSwitcher]: hasSlot(this.host, Slot.AppSwitcher),\n [Slot.Profile]: hasSlot(this.host, Slot.Profile),\n [Slot.Logo]: hasSlot(this.host, Slot.Logo),\n };\n\n if (this.hasSlot(Slot.AppSwitcher)) {\n this.selectedApp = this.getSelectedApp();\n }\n\n if (this.hasSlot(Slot.Search)) {\n this.computeSearchOpenState();\n }\n }\n\n private getSelectedApp(): string | undefined {\n // there are more concise ways to select the first checked menu item, but this is one that works for jest\n const element = getSlot(this.host, Slot.AppSwitcher);\n if (element == null) {\n return undefined;\n }\n const items = Array.from(element.querySelectorAll('six-menu-item'));\n const firstCheckedMenuItem = items.find((item: HTMLElement) => item.hasAttribute('checked'));\n return firstCheckedMenuItem?.textContent ?? undefined;\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n\n render() {\n const search = this.hasSlot(Slot.Search) && (\n <section\n class={{\n 'six-header__search': true,\n 'six-header__search--open': this.isSectionSelected(Section.Search),\n }}\n >\n <six-icon-button name=\"search\" onClick={() => this.toggleSearch()} data-testid=\"search-trigger\" />\n </section>\n );\n\n const notifications = this.hasSlot(Slot.Notifications) && (\n <section class=\"six-header__notification\">\n <slot name={Slot.Notifications} />\n </section>\n );\n\n const appSwitcher = this.hasSlot(Slot.AppSwitcher) && (\n <section\n class={{\n 'six-header__app-switcher': true,\n 'six-header__app-switcher--open': this.isSectionSelected(Section.AppSwitcher),\n }}\n >\n <a onClick={this.appNameClicked} class=\"six-header__selected-app\">\n {this.selectedApp}\n </a>\n <six-dropdown distance={13} skidding={20} placement=\"bottom-end\" ref={this.setupAppSwitcher}>\n <six-icon-button name=\"apps\" slot=\"trigger\" />\n <slot name={Slot.AppSwitcher} />\n </six-dropdown>\n </section>\n );\n\n const profile = this.hasSlot(Slot.Profile) && (\n <section\n class={{\n 'six-header__profile': true,\n 'six-header__profile--open': this.isSectionSelected(Section.Profile),\n }}\n >\n <six-dropdown distance={17} skidding={20} placement=\"bottom-end\" ref={this.setupProfile}>\n <slot name=\"profile-avatar\" slot=\"trigger\" />\n <slot name=\"profile-menu\" />\n </six-dropdown>\n </section>\n );\n\n const logo = this.hasSlot(Slot.Logo) ? (\n <section>\n <slot name=\"logo\" />\n </section>\n ) : (\n <section\n class={{\n 'six-header__logo': true,\n 'six-header__logo--clickable': this.clickableLogo,\n }}\n ref={this.setupLogo}\n >\n <svg height=\"20\" viewBox=\"0 0 90 26\" xmlns=\"http://www.w3.org/2000/svg\">\n <title>SIX</title>\n <g fill=\"#DE3919\" fill-rule=\"nonzero\">\n <path d=\"m22.798 3.869c1.82-2.168 4.549-3.545 7.6-3.545h6.807v4.961h-6.807c-1.526 0-2.89.689-3.8 1.771l-12.19 14.526c-1.82 2.166-4.549 3.545-7.6 3.545h-6.808v-4.961h6.808c1.525 0 2.889-.689 3.799-1.773l12.191-14.525\" />\n <path d=\"m42.16.324h5.21v24.806h-5.21z\" />\n <path d=\"m66.743 3.869l4.195 4.999 4.195-4.999c1.819-2.168 4.549-3.545 7.6-3.545h6.806v4.961h-6.806c-1.526 0-2.89.689-3.8 1.771l-4.758 5.669 4.758 5.669c.91 1.084 2.274 1.773 3.8 1.773h6.806v4.961h-6.806c-3.051 0-5.781-1.379-7.6-3.545l-4.195-4.999-4.195 4.999c-1.82 2.166-4.55 3.545-7.6 3.545h-6.807v-4.961h6.807c1.525 0 2.889-.689 3.799-1.773l4.758-5.669-4.758-5.669c-.91-1.083-2.274-1.771-3.799-1.771h-6.807v-4.961h6.807c3.05 0 5.78 1.378 7.6 3.545\" />\n </g>\n </svg>\n </section>\n );\n\n return (\n <Host>\n <header class=\"six-header\">\n <section class=\"six-header__menu\">\n <six-icon-button name={this.openHamburgerMenu ? 'menu_open' : 'menu'} ref={this.setupMenu} />\n </section>\n\n {logo}\n\n <section class=\"six-header__placeholder\" />\n\n <section class=\"six-header__custom\">\n <slot />\n </section>\n\n {search}\n\n {notifications}\n\n {appSwitcher}\n\n {profile}\n </header>\n\n <div\n class={{\n 'six-header__search-field': true,\n 'six-header__search-field--visible': this.isSectionSelected(Section.Search),\n 'six-header__search-field--shift-content': this.shiftContent,\n }}\n >\n <slot name={Slot.Search} />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"six-header.entry.js","mappings":";;;;AAAA,MAAM,YAAY,GAAG,+6DAA+6D,CAAC;AACr8D,wBAAe,YAAY;;ACoB3B,IAAK,O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;KACH;;;;;;;;;;;","names":[],"sources":["src/components/six-header/six-header.scss?tag=six-header&encapsulation=shadow","src/components/six-header/six-header.tsx"],"sourcesContent":["@import 'src/global/component';\n\n$header-height: 3.75rem;\n$border-height: 0.25rem;\n\n:host {\n display: block;\n user-select: none;\n --search-border-width: 1px;\n}\n\n::slotted(six-search-field) {\n position: absolute;\n margin-left: var(--search-border-width);\n width: calc(100% - 2 * var(--search-border-width));\n}\n\n.six-header {\n display: flex;\n width: 100%;\n height: $header-height;\n background-color: var(--six-header-background-color);\n align-items: center;\n flex-wrap: wrap;\n box-shadow: var(--six-shadow-medium);\n border-bottom: var(--six-header-border-with) solid var(--six-header-border-color);\n\n &__logo {\n width: 6rem;\n margin-top: 0.15rem;\n\n &--clickable {\n cursor: pointer;\n }\n }\n\n &__placeholder {\n flex: 1;\n }\n\n &__menu,\n &__logo,\n &__custom,\n &__search,\n &__notification,\n &__app-switcher,\n &__profile {\n height: calc(100% - #{$border-height} - 1px);\n padding: 0 1.25rem;\n display: flex;\n align-items: center;\n border-bottom: solid $border-height transparent;\n\n &--open {\n border-bottom: solid $border-height var(--six-header-border-color-open);\n }\n }\n\n &__app-switcher-dropdown {\n display: flex;\n align-items: center;\n }\n\n &__selected-app {\n cursor: pointer;\n font-size: 0.9rem;\n font-weight: 600;\n padding-right: 0;\n padding-left: 0.3rem;\n &:hover {\n color: var(--six-header-selected-app-color-hover);\n }\n }\n\n &__search-field {\n opacity: 0;\n transform: scale(0.9);\n transition: var(--six-transition-fast) opacity, var(--six-transition-fast) transform;\n display: none;\n\n &--visible {\n opacity: 1;\n transform: none;\n display: block;\n }\n\n &--shift-content.six-header__search-field--visible {\n height: 2.65rem;\n transition: var(--six-transition-fast) height;\n }\n\n &--shift-content:not(.six-header__search-field--visible) {\n height: 0;\n transition: var(--six-transition-fast) height;\n }\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { getSlot, hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\n\nexport interface SixHeaderAppSwitcherSelectPayload {\n selectedLabel: string;\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nexport interface SixHeaderProfileSelectPayload {\n selectedLabel: string;\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nexport interface SixHeaderSearchFieldToggle {\n visible: boolean;\n}\n\nenum Section {\n None,\n Search,\n AppSwitcher,\n Profile,\n}\n\nenum Slot {\n Search = 'search-field',\n Notifications = 'notifications',\n AppSwitcher = 'app-switcher-menu',\n Profile = 'profile-menu',\n Logo = 'logo',\n}\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define a custom component that is included in the header.\n * @slot search-field - Used to define the search field component in the header.\n * @slot notifications - Used to define the notification component in the header.\n * @slot app-switcher-menu - Used to define the application switcher menu in the header.\n * @slot profile-menu - Used to define the profile menu in the header.\n * @slot profile-avatar - Used to define the avator in the header.\n */\n\n@Component({\n tag: 'six-header',\n styleUrl: 'six-header.scss',\n shadow: true,\n assetsDirs: ['assets'],\n})\nexport class SixHeader {\n /** Indicates if content should be shifted down when search field is visible. */\n @Prop() shiftContent = false;\n\n /** Set whether the hamburger menu should be visible or not */\n @Prop() hideHamburgerMenu = false;\n\n /** Set the hamburger menu icon to open or closed state */\n @Prop() openHamburgerMenu = false;\n\n /** Set the header search to be in an open or closed state */\n @Prop() openSearch = false;\n\n /** Set whether the logo should be clickable */\n @Prop() clickableLogo = false;\n\n @Watch('openSearch')\n handleOpenSearchChange() {\n this.computeSearchOpenState();\n }\n\n /** Sets open state for search */\n @Method()\n async setSearchOpenState(openState: boolean) {\n if (this.selectedSection === Section.Search && !openState) {\n this.selectedSection = Section.None;\n } else if (openState && this.selectedSection !== Section.Search) {\n this.selectedSection = Section.Search;\n }\n }\n\n /** Get open state for search */\n @Method()\n async getIsSearchOpen() {\n return this.selectedSection === Section.Search;\n }\n\n /** Emitted when the name of the selected app is clicked. */\n @Event({ eventName: 'six-header-app-name-clicked' }) sixAppNameClicked!: EventEmitter<EmptyPayload>;\n\n /** Emitted when a menu item is in the app switcher menu is selected. */\n @Event({ eventName: 'six-header-app-switcher-select' })\n sixAppSwitcherSelect!: EventEmitter<SixHeaderAppSwitcherSelectPayload>;\n\n /** Emitted when a menu item is in the profile menu is selected. */\n @Event({ eventName: 'six-header-profile-select' }) sixProfileSelect!: EventEmitter<SixHeaderProfileSelectPayload>;\n\n /** Emitted when the hamburger menu is clicked. */\n @Event({ eventName: 'six-header-hamburger-menu-clicked' }) sixHamburgerClick!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the header logo is clicked. */\n @Event({ eventName: 'six-header-logo-clicked' }) sixLogoClick!: EventEmitter<EmptyPayload>;\n\n /** Emitted when search field is toggled. */\n @Event({ eventName: 'six-header-search-field-toggle' })\n sixSearchFieldToggle!: EventEmitter<SixHeaderSearchFieldToggle>;\n\n @Element() host!: HTMLSixHeaderElement;\n\n private eventListeners = new EventListeners();\n\n private slots?: Record<Slot, boolean>;\n\n private mutationObserver?: MutationObserver;\n\n @State() selectedApp?: string;\n @State() selectedSection?: Section;\n\n private hasSlot(slot: Slot): boolean {\n if (this.slots == null) {\n return false;\n }\n return this.slots[slot];\n }\n\n private isSectionSelected(value: Section) {\n return value === this.selectedSection;\n }\n\n private selectSection(section: Section) {\n return () => (this.selectedSection = section);\n }\n\n private toggleSearch() {\n const visible = this.selectedSection !== Section.Search;\n this.selectedSection = this.selectedSection === Section.Search ? Section.None : Section.Search;\n this.sixSearchFieldToggle.emit({ visible });\n if (this.selectedSection === Section.Search) {\n // setFocus deferred due to https://github.com/ionic-team/stencil/issues/3772\n setTimeout(async () => {\n const slot = getSlot(this.host, Slot.Search);\n slot?.shadowRoot?.querySelector('six-input')?.setFocus();\n }, 50);\n }\n }\n\n private setupMenu = (el?: HTMLSixIconButtonElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'click', () => this.sixHamburgerClick.emit());\n };\n\n private setupLogo = (el?: HTMLElement) => {\n if (!this.clickableLogo || el == null) return;\n\n this.eventListeners.add(el, 'click', () => this.sixLogoClick.emit());\n };\n\n private setupProfile = (el?: HTMLSixDropdownElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.Profile));\n this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));\n this.eventListeners.add(el, 'six-menu-item-selected', (event: Event) => {\n const { name, item } = (event as CustomEvent).detail;\n this.sixProfileSelect.emit({ selectedLabel: item.innerText, name, item });\n });\n };\n\n private setupAppSwitcher = (el?: HTMLSixDropdownElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.AppSwitcher));\n this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));\n this.eventListeners.add(el, 'six-menu-item-selected', (event: Event) => {\n const { name, item } = (event as CustomEvent).detail;\n this.selectedApp = item.innerText;\n this.sixAppSwitcherSelect.emit({ selectedLabel: item.innerText, name, item });\n });\n };\n\n private appNameClicked = () => this.sixAppNameClicked.emit();\n\n private computeSearchOpenState = () => {\n this.selectedSection = this.openSearch ? Section.Search : Section.None;\n };\n\n componentWillLoad() {\n this.slots = {\n [Slot.Search]: hasSlot(this.host, Slot.Search),\n [Slot.Notifications]: hasSlot(this.host, Slot.Notifications),\n [Slot.AppSwitcher]: hasSlot(this.host, Slot.AppSwitcher),\n [Slot.Profile]: hasSlot(this.host, Slot.Profile),\n [Slot.Logo]: hasSlot(this.host, Slot.Logo),\n };\n\n if (this.hasSlot(Slot.AppSwitcher)) {\n this.updateSelectedApp();\n }\n\n if (this.hasSlot(Slot.Search)) {\n this.computeSearchOpenState();\n }\n }\n\n connectedCallback() {\n const appSwitcherSlot = getSlot(this.host, Slot.AppSwitcher);\n if (appSwitcherSlot) {\n this.mutationObserver = new MutationObserver((mutations) => {\n if (mutations.some((mutation) => mutation.type === 'childList' || mutation.type === 'attributes')) {\n this.updateSelectedApp();\n }\n });\n this.mutationObserver.observe(appSwitcherSlot, { attributes: true, childList: true, subtree: true });\n }\n }\n\n private updateSelectedApp() {\n // there are more concise ways to select the first checked menu item, but this is one that works for jest\n const element = getSlot(this.host, Slot.AppSwitcher);\n if (element == null) {\n return undefined;\n }\n const items = Array.from(element.querySelectorAll('six-menu-item'));\n const firstCheckedMenuItem = items.find(\n (item) => item.hasAttribute('checked') && item.getAttribute('checked') !== 'false'\n );\n this.selectedApp = firstCheckedMenuItem?.textContent ?? undefined;\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n this.mutationObserver?.disconnect();\n }\n\n render() {\n const hamburgerMenu = !this.hideHamburgerMenu && (\n <section class=\"six-header__menu\">\n <six-icon-button name={this.openHamburgerMenu ? 'menu_open' : 'menu'} ref={this.setupMenu} />\n </section>\n );\n\n const search = this.hasSlot(Slot.Search) && (\n <section\n class={{\n 'six-header__search': true,\n 'six-header__search--open': this.isSectionSelected(Section.Search),\n }}\n >\n <six-icon-button name=\"search\" onClick={() => this.toggleSearch()} data-testid=\"search-trigger\" />\n </section>\n );\n\n const notifications = this.hasSlot(Slot.Notifications) && (\n <section class=\"six-header__notification\">\n <slot name={Slot.Notifications} />\n </section>\n );\n\n const appSwitcher = this.hasSlot(Slot.AppSwitcher) && (\n <section\n class={{\n 'six-header__app-switcher': true,\n 'six-header__app-switcher--open': this.isSectionSelected(Section.AppSwitcher),\n }}\n >\n <six-dropdown distance={13} skidding={20} placement=\"bottom-end\" ref={this.setupAppSwitcher}>\n <div slot=\"trigger\" class=\"six-header__app-switcher-dropdown\">\n <a onClick={this.appNameClicked} class=\"six-header__selected-app\">\n {this.selectedApp}\n </a>\n <six-icon-button name=\"apps\" />\n </div>\n <slot name={Slot.AppSwitcher} />\n </six-dropdown>\n </section>\n );\n\n const profile = this.hasSlot(Slot.Profile) && (\n <section\n class={{\n 'six-header__profile': true,\n 'six-header__profile--open': this.isSectionSelected(Section.Profile),\n }}\n >\n <six-dropdown distance={17} skidding={20} placement=\"bottom-end\" ref={this.setupProfile}>\n <slot name=\"profile-avatar\" slot=\"trigger\" />\n <slot name=\"profile-menu\" />\n </six-dropdown>\n </section>\n );\n\n const logo = this.hasSlot(Slot.Logo) ? (\n <section>\n <slot name=\"logo\" />\n </section>\n ) : (\n <section\n class={{\n 'six-header__logo': true,\n 'six-header__logo--clickable': this.clickableLogo,\n }}\n ref={this.setupLogo}\n >\n <svg height=\"20\" viewBox=\"0 0 90 26\" xmlns=\"http://www.w3.org/2000/svg\">\n <title>SIX</title>\n <g fill=\"#DE3919\" fill-rule=\"nonzero\">\n <path d=\"m22.798 3.869c1.82-2.168 4.549-3.545 7.6-3.545h6.807v4.961h-6.807c-1.526 0-2.89.689-3.8 1.771l-12.19 14.526c-1.82 2.166-4.549 3.545-7.6 3.545h-6.808v-4.961h6.808c1.525 0 2.889-.689 3.799-1.773l12.191-14.525\" />\n <path d=\"m42.16.324h5.21v24.806h-5.21z\" />\n <path d=\"m66.743 3.869l4.195 4.999 4.195-4.999c1.819-2.168 4.549-3.545 7.6-3.545h6.806v4.961h-6.806c-1.526 0-2.89.689-3.8 1.771l-4.758 5.669 4.758 5.669c.91 1.084 2.274 1.773 3.8 1.773h6.806v4.961h-6.806c-3.051 0-5.781-1.379-7.6-3.545l-4.195-4.999-4.195 4.999c-1.82 2.166-4.55 3.545-7.6 3.545h-6.807v-4.961h6.807c1.525 0 2.889-.689 3.799-1.773l4.758-5.669-4.758-5.669c-.91-1.083-2.274-1.771-3.799-1.771h-6.807v-4.961h6.807c3.05 0 5.78 1.378 7.6 3.545\" />\n </g>\n </svg>\n </section>\n );\n\n return (\n <Host>\n <header class=\"six-header\">\n {hamburgerMenu}\n\n {logo}\n\n <section class=\"six-header__placeholder\" />\n\n <section class=\"six-header__custom\">\n <slot />\n </section>\n\n {search}\n\n {notifications}\n\n {appSwitcher}\n\n {profile}\n </header>\n\n <div\n class={{\n 'six-header__search-field': true,\n 'six-header__search-field--visible': this.isSectionSelected(Section.Search),\n 'six-header__search-field--shift-content': this.shiftContent,\n }}\n >\n <slot name={Slot.Search} />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { f as focusVisible } from './focus-visible-
|
|
1
|
+
import { r as registerInstance, h } from './index-d415464d.js';
|
|
2
|
+
import { f as focusVisible } from './focus-visible-d9dbfeef.js';
|
|
3
3
|
|
|
4
|
-
const sixIconButtonCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:
|
|
4
|
+
const sixIconButtonCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:inline-block}.icon-button{flex:0 0 auto;display:flex;align-items:center;background:none;border:none;border-radius:var(--six-border-radius-medium);font-size:inherit;color:var(--six-input-icon-color);padding:var(--six-spacing-x-small);cursor:pointer;transition:var(--six-transition-medium) color;-webkit-appearance:none}.icon-button:hover:not(.icon-button--disabled),.icon-button:focus:not(.icon-button--disabled){color:var(--six-input-icon-color-hover)}.icon-button:active:not(.icon-button--disabled){color:var(--six-input-icon-color)}.icon-button:focus{outline:none}.icon-button:focus-visible{outline:var(--six-focus-ring);outline-offset:var(--six-focus-ring-offset)}.icon-button--disabled{opacity:0.5;pointer-events:none}.icon-button-wrapper--disabled{cursor:not-allowed}.icon-button ::slotted(six-badge){position:absolute;top:0;right:0;pointer-events:none}.icon-button six-icon[size=xLarge]+::slotted(six-badge){transform:translateY(40%) translateX(-35%)}.icon-button six-icon[size=large]+::slotted(six-badge){transform:translateY(20%) translateX(-20%)}.icon-button six-icon[size=medium]+::slotted(six-badge){transform:translateY(10%) translateX(50%)}.icon-button six-icon[size=xSmall]+::slotted(six-badge){transform:translateY(-25%) translateX(25%)}";
|
|
5
|
+
const SixIconButtonStyle0 = sixIconButtonCss;
|
|
5
6
|
|
|
6
7
|
const SixIconButton = class {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
componentDidLoad() {
|
|
22
|
-
if (this.button != null) {
|
|
23
|
-
focusVisible.observe(this.button);
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.handleClickEvent = (event) => {
|
|
11
|
+
if (this.disabled) {
|
|
12
|
+
event.preventDefault();
|
|
13
|
+
event.stopPropagation();
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
this.name = undefined;
|
|
17
|
+
this.size = 'medium';
|
|
18
|
+
this.label = undefined;
|
|
19
|
+
this.disabled = false;
|
|
20
|
+
this.html = undefined;
|
|
24
21
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
componentDidLoad() {
|
|
23
|
+
if (this.button != null) {
|
|
24
|
+
focusVisible.observe(this.button);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
disconnectedCallback() {
|
|
28
|
+
if (this.button != null) {
|
|
29
|
+
focusVisible.unobserve(this.button);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
const html = this.html && h("span", { key: 'bfb9af923285a1777c5a5d8778e272f20ca40598', innerHTML: this.html });
|
|
34
|
+
return (h("div", { key: 'a3f095fc9301d35108ce5d63fc441acadbdb0471', onClick: this.handleClickEvent, class: { 'icon-button-wrapper--disabled': this.disabled } }, h("button", { key: '303ab00da89e28557367f1b4e6593efb2b115388', ref: (el) => (this.button = el), part: "base", disabled: this.disabled, class: {
|
|
35
|
+
'icon-button': true,
|
|
36
|
+
'icon-button--disabled': this.disabled,
|
|
37
|
+
}, type: "button", "aria-label": this.label }, h("six-icon", { key: 'cbc8dfda4a2d1ee148521c30d4694fd83c49fa40', "aria-hidden": "true", size: this.size }, this.name), h("slot", { key: 'fda137701d73e4429ccca013e52a08b06bbca748' }), html)));
|
|
29
38
|
}
|
|
30
|
-
}
|
|
31
|
-
render() {
|
|
32
|
-
const html = this.html && h("span", { innerHTML: this.html });
|
|
33
|
-
return (h("div", { onClick: this.handleClickEvent, class: { 'icon-button-wrapper--disabled': this.disabled } }, h("button", { ref: (el) => (this.button = el), part: "base", disabled: this.disabled, class: {
|
|
34
|
-
'icon-button': true,
|
|
35
|
-
'icon-button--disabled': this.disabled,
|
|
36
|
-
}, type: "button", "aria-label": this.label }, h("six-icon", { "aria-hidden": "true", size: this.size }, this.name), h("slot", null), html)));
|
|
37
|
-
}
|
|
38
39
|
};
|
|
39
|
-
SixIconButton.style =
|
|
40
|
+
SixIconButton.style = SixIconButtonStyle0;
|
|
40
41
|
|
|
41
42
|
export { SixIconButton as six_icon_button };
|
|
42
43
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"six-icon-button.entry.js","mappings":";;;AAAA,MAAM,gBAAgB,GAAG,
|
|
1
|
+
{"file":"six-icon-button.entry.js","mappings":";;;AAAA,MAAM,gBAAgB,GAAG,61CAA61C,CAAC;AACv3C,4BAAe,gBAAgB;;MCgBlB,aAAa;;;QA2DhB,qBAAgB,GAAG,CAAC,KAAY;YACtC,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,KAAK,CAAC,eAAe,EAAE,CAAC;aACzB;SACF,CAAC;;oBAzD2G,QAAQ;;wBASjF,KAAK;;;IAKzC,gBAAgB;QACd,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACvB,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACnC;KACF;IAED,oBAAoB;QAClB,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACvB,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACrC;KACF;IAED,MAAM;QACJ,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,6DAAM,SAAS,EAAE,IAAI,CAAC,IAAI,GAAI,CAAC;QAEzD,QACE,4DAAK,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,KAAK,EAAE,EAAE,+BAA+B,EAAE,IAAI,CAAC,QAAQ,EAAE,IAC5F,+DACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC,EAC/B,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE;gBACL,aAAa,EAAE,IAAI;gBACnB,uBAAuB,EAAE,IAAI,CAAC,QAAQ;aACvC,EACD,IAAI,EAAC,QAAQ,gBACD,IAAI,CAAC,KAAK,IAEtB,gFAAsB,MAAM,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,IACzC,IAAI,CAAC,IAAI,CACD,EACX,8DAAQ,EACP,IAAI,CACE,CACL,EACN;KACH;;;;;;","names":[],"sources":["src/components/six-icon-button/six-icon-button.scss?tag=six-icon-button&encapsulation=shadow","src/components/six-icon-button/six-icon-button.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: inline-block;\n}\n\n.icon-button {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n background: none;\n border: none;\n border-radius: var(--six-border-radius-medium);\n font-size: inherit;\n color: var(--six-input-icon-color);\n padding: var(--six-spacing-x-small);\n cursor: pointer;\n transition: var(--six-transition-medium) color;\n -webkit-appearance: none;\n\n &:hover:not(.icon-button--disabled),\n &:focus:not(.icon-button--disabled) {\n color: var(--six-input-icon-color-hover);\n }\n\n &:active:not(.icon-button--disabled) {\n color: var(--six-input-icon-color);\n }\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: var(--six-focus-ring);\n outline-offset: var(--six-focus-ring-offset);\n }\n}\n\n.icon-button--disabled {\n opacity: 0.5;\n pointer-events: none;\n}\n\n.icon-button-wrapper--disabled {\n cursor: not-allowed;\n}\n\n.icon-button ::slotted(six-badge) {\n position: absolute;\n top: 0;\n right: 0;\n pointer-events: none;\n}\n\n.icon-button six-icon[size='xLarge'] + ::slotted(six-badge) {\n transform: translateY(40%) translateX(-35%);\n}\n\n.icon-button six-icon[size='large'] + ::slotted(six-badge) {\n transform: translateY(20%) translateX(-20%);\n}\n\n// TODO: tx4u9 should be adjusted for all sizes after design team\n.icon-button six-icon[size='medium'] + ::slotted(six-badge) {\n transform: translateY(10%) translateX(50%);\n}\n\n.icon-button six-icon[size='small'] + ::slotted(six-badge) {\n // no translation necessary\n}\n\n.icon-button six-icon[size='xSmall'] + ::slotted(six-badge) {\n transform: translateY(-25%) translateX(25%);\n}\n","import { Component, h, Prop } from '@stencil/core';\nimport { focusVisible } from '../../utils/focus-visible';\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 * @part base - The component's base wrapper.\n */\n\n@Component({\n tag: 'six-icon-button',\n styleUrl: 'six-icon-button.scss',\n shadow: true,\n})\nexport class SixIconButton {\n private button?: HTMLButtonElement;\n\n /** The name of the icon to draw. */\n @Prop({ reflect: true }) name?: string;\n\n /** The icon's size. */\n @Prop({ reflect: true }) size: 'xSmall' | 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge' | 'xxxLarge' = 'medium';\n\n /**\n * A description that gets read by screen readers and other assistive devices. For optimal accessibility, you should\n * always include a label that describes what the icon button does.\n */\n @Prop({ reflect: true }) label?: string;\n\n /** Set to true to disable the button. */\n @Prop({ reflect: true }) disabled = false;\n\n /** HTML symbol code or entity. */\n @Prop({ reflect: true }) html?: string;\n\n componentDidLoad() {\n if (this.button != null) {\n focusVisible.observe(this.button);\n }\n }\n\n disconnectedCallback() {\n if (this.button != null) {\n focusVisible.unobserve(this.button);\n }\n }\n\n render() {\n const html = this.html && <span innerHTML={this.html} />;\n\n return (\n <div onClick={this.handleClickEvent} class={{ 'icon-button-wrapper--disabled': this.disabled }}>\n <button\n ref={(el) => (this.button = el)}\n part=\"base\"\n disabled={this.disabled}\n class={{\n 'icon-button': true,\n 'icon-button--disabled': this.disabled,\n }}\n type=\"button\"\n aria-label={this.label}\n >\n <six-icon aria-hidden=\"true\" size={this.size}>\n {this.name}\n </six-icon>\n <slot />\n {html}\n </button>\n </div>\n );\n }\n\n private handleClickEvent = (event: Event) => {\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n }\n };\n}\n"],"version":3}
|