@six-group/ui-library 0.0.0-insider.a8d68c7 → 0.0.0-insider.a9875a1
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/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/{esm/form-0b9c11cd.js.map → cjs/form-9ebaae7c.js.map} +1 -1
- package/dist/cjs/form-control-f9bc25dd.js +36 -0
- package/dist/cjs/form-control-f9bc25dd.js.map +1 -0
- package/dist/cjs/{index-2f6daa5b.js → index-3baddcdc.js} +724 -180
- package/dist/cjs/index-3baddcdc.js.map +1 -0
- package/dist/cjs/index.cjs.js +96 -81
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +3 -12
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/modal-3ce015be.js +52 -0
- package/dist/cjs/modal-3ce015be.js.map +1 -0
- package/dist/cjs/{popover-8885d50f.js → popover-1e7c09f1.js} +99 -99
- 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/set-attributes_2.cjs.entry.js +50 -50
- package/dist/cjs/set-attributes_2.cjs.entry.js.map +1 -1
- package/dist/cjs/six-alert.cjs.entry.js +109 -109
- package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/six-avatar.cjs.entry.js +20 -20
- package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-badge.cjs.entry.js +22 -22
- package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/six-button.cjs.entry.js +95 -95
- package/dist/cjs/six-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-card.cjs.entry.js +7 -7
- package/dist/cjs/six-card.cjs.entry.js.map +1 -1
- package/dist/cjs/six-checkbox.cjs.entry.js +110 -115
- package/dist/cjs/six-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/six-datepicker.cjs.entry.js +834 -837
- package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-details.cjs.entry.js +127 -127
- package/dist/cjs/six-details.cjs.entry.js.map +1 -1
- package/dist/cjs/six-dialog.cjs.entry.js +128 -128
- package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/six-drawer.cjs.entry.js +146 -146
- package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/six-dropdown_2.cjs.entry.js +634 -634
- package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/six-error-page.cjs.entry.js +82 -82
- package/dist/cjs/six-error-page.cjs.entry.js.map +1 -1
- package/dist/cjs/six-error.cjs.entry.js +21 -0
- package/dist/cjs/six-error.cjs.entry.js.map +1 -0
- package/dist/cjs/six-file-list-item.cjs.entry.js +33 -33
- package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-file-list.cjs.entry.js +7 -7
- package/dist/cjs/six-file-list.cjs.entry.js.map +1 -1
- package/dist/cjs/six-file-upload.cjs.entry.js +98 -98
- package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/six-footer.cjs.entry.js +7 -7
- package/dist/cjs/six-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/six-group-label.cjs.entry.js +43 -43
- package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
- package/dist/cjs/six-header.cjs.entry.js +168 -155
- package/dist/cjs/six-header.cjs.entry.js.map +1 -1
- package/dist/cjs/six-icon-button.cjs.entry.js +32 -32
- package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-icon.cjs.entry.js +22 -22
- package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/six-input.cjs.entry.js +190 -187
- package/dist/cjs/six-input.cjs.entry.js.map +1 -1
- package/dist/cjs/six-item-picker.cjs.entry.js +405 -309
- package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-language-switcher.cjs.entry.js +46 -46
- package/dist/cjs/six-language-switcher.cjs.entry.js.map +1 -1
- package/dist/cjs/six-layout-grid.cjs.entry.js +20 -20
- package/dist/cjs/six-layout-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/six-main-container.cjs.entry.js +9 -9
- package/dist/cjs/six-main-container.cjs.entry.js.map +1 -1
- package/dist/cjs/six-menu-divider.cjs.entry.js +7 -7
- package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/six-menu-item.cjs.entry.js +49 -49
- package/dist/cjs/six-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-menu-label.cjs.entry.js +7 -7
- package/dist/cjs/six-menu-label.cjs.entry.js.map +1 -1
- package/dist/cjs/six-picto.cjs.entry.js +14 -14
- package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
- package/dist/cjs/six-progress-bar.cjs.entry.js +14 -14
- package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-progress-ring.cjs.entry.js +29 -29
- package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
- package/dist/cjs/six-radio.cjs.entry.js +103 -111
- package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/six-range.cjs.entry.js +180 -177
- package/dist/cjs/six-range.cjs.entry.js.map +1 -1
- package/dist/cjs/six-root.cjs.entry.js +30 -30
- package/dist/cjs/six-root.cjs.entry.js.map +1 -1
- package/dist/cjs/six-search-field.cjs.entry.js +43 -43
- package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
- package/dist/cjs/six-select.cjs.entry.js +364 -360
- package/dist/cjs/six-select.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js +56 -45
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar-item.cjs.entry.js +17 -15
- package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar.cjs.entry.js +173 -173
- package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-spinner.cjs.entry.js +14 -14
- package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
- package/dist/cjs/six-switch.cjs.entry.js +107 -87
- package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab-group.cjs.entry.js +230 -235
- package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab-panel.cjs.entry.js +13 -13
- package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab.cjs.entry.js +55 -39
- package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tag.cjs.entry.js +55 -33
- package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/six-textarea.cjs.entry.js +182 -183
- package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tile.cjs.entry.js +76 -76
- package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/six-timepicker.cjs.entry.js +347 -352
- package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tooltip.cjs.entry.js +148 -148
- package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/slot-9821749e.js +53 -0
- package/dist/cjs/slot-9821749e.js.map +1 -0
- package/dist/cjs/types-0a6d66f6.js +17 -0
- package/dist/cjs/types-0a6d66f6.js.map +1 -0
- package/dist/cjs/ui-library.cjs.js +3 -6
- package/dist/cjs/ui-library.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +55 -54
- package/dist/collection/components/six-alert/six-alert.js +339 -332
- 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.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.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 +5 -30
- package/dist/collection/components/six-button/six-button.js +449 -444
- 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.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 +9 -1
- package/dist/collection/components/six-checkbox/six-checkbox.js +423 -420
- 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 +20 -20
- package/dist/collection/components/six-datepicker/six-date-formats.js.map +1 -1
- package/dist/collection/components/six-datepicker/six-datepicker.js +1060 -1035
- 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 +3 -1
- 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.js +359 -351
- 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.js +414 -406
- 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 +2 -1
- package/dist/collection/components/six-dropdown/six-dropdown.js +897 -885
- package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
- package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +122 -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.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.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.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 +4 -1
- 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.js +421 -400
- package/dist/collection/components/six-header/six-header.js.map +1 -1
- package/dist/collection/components/six-header/test/six-header.spec.js +141 -0
- package/dist/collection/components/six-header/test/six-header.spec.js.map +1 -0
- package/dist/collection/components/six-icon/six-icon.css +7 -0
- 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 +4 -4
- 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 +5 -2
- package/dist/collection/components/six-input/six-input.js +947 -913
- 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 +7 -7
- package/dist/collection/components/six-item-picker/types.js.map +1 -1
- package/dist/collection/components/six-language-switcher/six-language-switcher.js +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.js +369 -365
- 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.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.js +182 -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.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.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.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.js +322 -340
- 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 +4 -1
- package/dist/collection/components/six-range/six-range.js +567 -540
- 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 +153 -151
- package/dist/collection/components/six-root/six-root.js.map +1 -1
- package/dist/collection/components/six-root/test/six-root.spec.js +43 -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.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 +10 -10
- package/dist/collection/components/six-select/six-select.js +939 -911
- package/dist/collection/components/six-select/six-select.js.map +1 -1
- package/dist/collection/components/six-select/test/six-select.spec.js +86 -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.js +466 -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 +11 -0
- 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.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.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 +4 -1
- package/dist/collection/components/six-switch/six-switch.js +388 -341
- 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 +54 -5
- package/dist/collection/components/six-tab/six-tab.js +206 -186
- package/dist/collection/components/six-tab/six-tab.js.map +1 -1
- package/dist/collection/components/six-tab-group/six-tab-group.css +0 -31
- package/dist/collection/components/six-tab-group/six-tab-group.js +319 -357
- package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
- package/dist/collection/components/six-tab-panel/six-tab-panel.js +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 +6 -0
- 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 +4 -1
- package/dist/collection/components/six-textarea/six-textarea.js +787 -760
- 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.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.js +831 -813
- 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 +1 -1
- 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 -18
- package/dist/collection/functional-components/form-control/form-control.js.map +1 -1
- package/dist/collection/testUtil/delay.js +1 -1
- package/dist/collection/testUtil/delay.js.map +1 -1
- package/dist/collection/utils/animation.js +34 -0
- package/dist/collection/utils/animation.js.map +1 -0
- package/dist/collection/utils/date-util.js +501 -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 +95 -81
- package/dist/collection/utils/error-messages.js.map +1 -1
- package/dist/collection/utils/event-listeners.js +51 -51
- package/dist/collection/utils/event-listeners.js.map +1 -1
- package/dist/collection/utils/execution-control.js +14 -14
- package/dist/collection/utils/execution-control.js.map +1 -1
- package/dist/collection/utils/focus-visible.js +28 -28
- package/dist/collection/utils/focus-visible.js.map +1 -1
- package/dist/collection/utils/form.js +12 -12
- package/dist/collection/utils/form.js.map +1 -1
- package/dist/collection/utils/modal.js +25 -25
- package/dist/collection/utils/modal.js.map +1 -1
- package/dist/collection/utils/offset.js +4 -4
- package/dist/collection/utils/offset.js.map +1 -1
- package/dist/collection/utils/popover.js +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 -28
- package/dist/collection/utils/slot.js.map +1 -1
- package/dist/collection/utils/support.js +10 -10
- package/dist/collection/utils/support.js.map +1 -1
- package/dist/collection/utils/tabbable.js +17 -17
- package/dist/collection/utils/tabbable.js.map +1 -1
- package/dist/collection/utils/time.util.js +72 -72
- package/dist/collection/utils/time.util.js.map +1 -1
- package/dist/collection/utils/time.util.spec.js +368 -0
- package/dist/collection/utils/time.util.spec.js.map +1 -0
- package/dist/collection/wrappers/set-attributes/set-attributes.js +66 -66
- package/dist/collection/wrappers/set-attributes/set-attributes.js.map +1 -1
- package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js +16 -0
- package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js.map +1 -0
- package/dist/components/event-listeners.js +51 -51
- package/dist/components/event-listeners.js.map +1 -1
- package/dist/components/execution-control.js +14 -14
- package/dist/components/execution-control.js.map +1 -1
- package/dist/components/focus-visible.js +28 -28
- package/dist/components/focus-visible.js.map +1 -1
- package/dist/components/form-control.js +26 -23
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form.js +12 -12
- package/dist/components/form.js.map +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +159 -143
- package/dist/components/index.js.map +1 -1
- package/dist/components/modal.js +35 -35
- package/dist/components/modal.js.map +1 -1
- package/dist/components/popover.js +98 -98
- package/dist/components/popover.js.map +1 -1
- package/dist/components/scroll.js +32 -32
- package/dist/components/scroll.js.map +1 -1
- package/dist/components/set-attributes.d.ts +2 -2
- package/dist/components/set-attributes2.js +58 -56
- package/dist/components/set-attributes2.js.map +1 -1
- package/dist/components/six-alert.d.ts +2 -2
- package/dist/components/six-alert.js +144 -141
- package/dist/components/six-alert.js.map +1 -1
- package/dist/components/six-avatar.d.ts +2 -2
- package/dist/components/six-avatar.js +44 -44
- package/dist/components/six-avatar.js.map +1 -1
- package/dist/components/six-badge.d.ts +2 -2
- package/dist/components/six-badge.js +39 -39
- package/dist/components/six-badge.js.map +1 -1
- package/dist/components/six-button.d.ts +2 -2
- package/dist/components/six-button.js +132 -132
- package/dist/components/six-button.js.map +1 -1
- package/dist/components/six-card.d.ts +2 -2
- package/dist/components/six-card.js +20 -20
- package/dist/components/six-card.js.map +1 -1
- package/dist/components/six-checkbox.d.ts +2 -2
- package/dist/components/six-checkbox.js +147 -140
- package/dist/components/six-checkbox.js.map +1 -1
- package/dist/components/six-datepicker.d.ts +2 -2
- package/dist/components/six-datepicker.js +905 -898
- package/dist/components/six-datepicker.js.map +1 -1
- package/dist/components/six-details.d.ts +2 -2
- package/dist/components/six-details2.js +158 -156
- package/dist/components/six-details2.js.map +1 -1
- package/dist/components/six-dialog.d.ts +2 -2
- package/dist/components/six-dialog.js +158 -156
- package/dist/components/six-dialog.js.map +1 -1
- package/dist/components/six-drawer.d.ts +2 -2
- package/dist/components/six-drawer.js +178 -176
- package/dist/components/six-drawer.js.map +1 -1
- package/dist/components/six-dropdown.d.ts +2 -2
- package/dist/components/six-dropdown2.js +473 -460
- package/dist/components/six-dropdown2.js.map +1 -1
- package/dist/components/six-error-page.d.ts +2 -2
- package/dist/components/six-error-page.js +106 -106
- package/dist/components/six-error-page.js.map +1 -1
- package/dist/components/six-error.d.ts +11 -0
- package/dist/components/six-error.js +8 -0
- package/dist/components/six-error.js.map +1 -0
- package/dist/components/six-error2.js +32 -0
- package/dist/components/six-error2.js.map +1 -0
- package/dist/components/six-file-list-item.d.ts +2 -2
- package/dist/components/six-file-list-item.js +58 -58
- package/dist/components/six-file-list-item.js.map +1 -1
- package/dist/components/six-file-list.d.ts +2 -2
- package/dist/components/six-file-list.js +20 -20
- package/dist/components/six-file-list.js.map +1 -1
- package/dist/components/six-file-upload.d.ts +2 -2
- package/dist/components/six-file-upload.js +123 -123
- package/dist/components/six-file-upload.js.map +1 -1
- package/dist/components/six-footer.d.ts +2 -2
- package/dist/components/six-footer.js +20 -20
- package/dist/components/six-footer.js.map +1 -1
- package/dist/components/six-group-label.d.ts +2 -2
- package/dist/components/six-group-label.js +71 -62
- package/dist/components/six-group-label.js.map +1 -1
- package/dist/components/six-header.d.ts +2 -2
- package/dist/components/six-header.js +227 -206
- package/dist/components/six-header.js.map +1 -1
- package/dist/components/six-icon-button.d.ts +2 -2
- package/dist/components/six-icon-button2.js +55 -55
- package/dist/components/six-icon-button2.js.map +1 -1
- package/dist/components/six-icon.d.ts +2 -2
- package/dist/components/six-icon2.js +38 -38
- package/dist/components/six-icon2.js.map +1 -1
- package/dist/components/six-input.d.ts +2 -2
- package/dist/components/six-input2.js +255 -239
- package/dist/components/six-input2.js.map +1 -1
- package/dist/components/six-item-picker.d.ts +2 -2
- package/dist/components/six-item-picker2.js +448 -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 +64 -62
- package/dist/components/six-language-switcher.js.map +1 -1
- package/dist/components/six-layout-grid.d.ts +2 -2
- package/dist/components/six-layout-grid.js +37 -35
- package/dist/components/six-layout-grid.js.map +1 -1
- package/dist/components/six-main-container.d.ts +2 -2
- package/dist/components/six-main-container.js +24 -24
- package/dist/components/six-main-container.js.map +1 -1
- package/dist/components/six-menu-divider.d.ts +2 -2
- package/dist/components/six-menu-divider.js +20 -20
- package/dist/components/six-menu-divider.js.map +1 -1
- package/dist/components/six-menu-item.d.ts +2 -2
- package/dist/components/six-menu-item2.js +74 -74
- package/dist/components/six-menu-item2.js.map +1 -1
- package/dist/components/six-menu-label.d.ts +2 -2
- package/dist/components/six-menu-label.js +20 -20
- package/dist/components/six-menu-label.js.map +1 -1
- package/dist/components/six-menu.d.ts +2 -2
- package/dist/components/six-menu2.js +218 -218
- package/dist/components/six-menu2.js.map +1 -1
- package/dist/components/six-picto.d.ts +2 -2
- package/dist/components/six-picto2.js +29 -29
- package/dist/components/six-picto2.js.map +1 -1
- package/dist/components/six-progress-bar.d.ts +2 -2
- package/dist/components/six-progress-bar.js +30 -30
- package/dist/components/six-progress-bar.js.map +1 -1
- package/dist/components/six-progress-ring.d.ts +2 -2
- package/dist/components/six-progress-ring.js +48 -46
- package/dist/components/six-progress-ring.js.map +1 -1
- package/dist/components/six-radio.d.ts +2 -2
- package/dist/components/six-radio.js +127 -133
- package/dist/components/six-radio.js.map +1 -1
- package/dist/components/six-range.d.ts +2 -2
- package/dist/components/six-range.js +233 -215
- package/dist/components/six-range.js.map +1 -1
- package/dist/components/six-root.d.ts +2 -2
- package/dist/components/six-root.js +66 -64
- package/dist/components/six-root.js.map +1 -1
- package/dist/components/six-search-field.d.ts +2 -2
- package/dist/components/six-search-field.js +78 -70
- package/dist/components/six-search-field.js.map +1 -1
- package/dist/components/six-select.d.ts +2 -2
- package/dist/components/six-select.js +468 -443
- package/dist/components/six-select.js.map +1 -1
- package/dist/components/six-sidebar-item-group.d.ts +2 -2
- package/dist/components/six-sidebar-item-group.js +87 -75
- package/dist/components/six-sidebar-item-group.js.map +1 -1
- package/dist/components/six-sidebar-item.d.ts +2 -2
- package/dist/components/six-sidebar-item.js +35 -32
- package/dist/components/six-sidebar-item.js.map +1 -1
- package/dist/components/six-sidebar.d.ts +2 -2
- package/dist/components/six-sidebar.js +198 -196
- package/dist/components/six-sidebar.js.map +1 -1
- package/dist/components/six-spinner.d.ts +2 -2
- package/dist/components/six-spinner2.js +29 -29
- package/dist/components/six-spinner2.js.map +1 -1
- package/dist/components/six-stage-indicator.d.ts +2 -2
- package/dist/components/six-stage-indicator2.js +28 -28
- package/dist/components/six-stage-indicator2.js.map +1 -1
- package/dist/components/six-switch.d.ts +2 -2
- package/dist/components/six-switch.js +142 -110
- package/dist/components/six-switch.js.map +1 -1
- package/dist/components/six-tab-group.d.ts +2 -2
- package/dist/components/six-tab-group.js +260 -263
- package/dist/components/six-tab-group.js.map +1 -1
- package/dist/components/six-tab-panel.d.ts +2 -2
- package/dist/components/six-tab-panel.js +29 -29
- package/dist/components/six-tab-panel.js.map +1 -1
- package/dist/components/six-tab.d.ts +2 -2
- package/dist/components/six-tab.js +85 -69
- package/dist/components/six-tab.js.map +1 -1
- package/dist/components/six-tag.d.ts +2 -2
- package/dist/components/six-tag2.js +91 -63
- package/dist/components/six-tag2.js.map +1 -1
- package/dist/components/six-textarea.d.ts +2 -2
- package/dist/components/six-textarea.js +236 -223
- package/dist/components/six-textarea.js.map +1 -1
- package/dist/components/six-tile.d.ts +2 -2
- package/dist/components/six-tile.js +116 -116
- package/dist/components/six-tile.js.map +1 -1
- package/dist/components/six-timepicker.d.ts +2 -2
- package/dist/components/six-timepicker2.js +490 -486
- package/dist/components/six-timepicker2.js.map +1 -1
- package/dist/components/six-tooltip.d.ts +2 -2
- package/dist/components/six-tooltip2.js +172 -170
- package/dist/components/six-tooltip2.js.map +1 -1
- package/dist/components/slot.js +28 -28
- package/dist/components/slot.js.map +1 -1
- package/dist/components.d.ts +361 -88
- package/dist/components.json +4178 -120
- 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-6b30894f.js +34 -0
- package/dist/esm/form-control-6b30894f.js.map +1 -0
- package/dist/esm/{index-5c0f6628.js → index-17d8173e.js} +724 -180
- package/dist/esm/index-17d8173e.js.map +1 -0
- package/dist/esm/index.js +96 -82
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +4 -13
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/modal-96526245.js +49 -0
- package/dist/esm/modal-96526245.js.map +1 -0
- package/dist/esm/{popover-2e72e7d8.js → popover-25996e62.js} +99 -99
- 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/set-attributes_2.entry.js +50 -50
- package/dist/esm/set-attributes_2.entry.js.map +1 -1
- package/dist/esm/six-alert.entry.js +109 -109
- package/dist/esm/six-alert.entry.js.map +1 -1
- package/dist/esm/six-avatar.entry.js +20 -20
- package/dist/esm/six-avatar.entry.js.map +1 -1
- package/dist/esm/six-badge.entry.js +22 -22
- package/dist/esm/six-badge.entry.js.map +1 -1
- package/dist/esm/six-button.entry.js +95 -95
- package/dist/esm/six-button.entry.js.map +1 -1
- package/dist/esm/six-card.entry.js +7 -7
- package/dist/esm/six-card.entry.js.map +1 -1
- package/dist/esm/six-checkbox.entry.js +110 -115
- package/dist/esm/six-checkbox.entry.js.map +1 -1
- package/dist/esm/six-datepicker.entry.js +834 -837
- package/dist/esm/six-datepicker.entry.js.map +1 -1
- package/dist/esm/six-details.entry.js +127 -127
- package/dist/esm/six-details.entry.js.map +1 -1
- package/dist/esm/six-dialog.entry.js +128 -128
- package/dist/esm/six-dialog.entry.js.map +1 -1
- package/dist/esm/six-drawer.entry.js +146 -146
- package/dist/esm/six-drawer.entry.js.map +1 -1
- package/dist/esm/six-dropdown_2.entry.js +634 -634
- package/dist/esm/six-dropdown_2.entry.js.map +1 -1
- package/dist/esm/six-error-page.entry.js +82 -82
- package/dist/esm/six-error-page.entry.js.map +1 -1
- package/dist/esm/six-error.entry.js +17 -0
- package/dist/esm/six-error.entry.js.map +1 -0
- package/dist/esm/six-file-list-item.entry.js +33 -33
- package/dist/esm/six-file-list-item.entry.js.map +1 -1
- package/dist/esm/six-file-list.entry.js +7 -7
- package/dist/esm/six-file-list.entry.js.map +1 -1
- package/dist/esm/six-file-upload.entry.js +98 -98
- package/dist/esm/six-file-upload.entry.js.map +1 -1
- package/dist/esm/six-footer.entry.js +7 -7
- package/dist/esm/six-footer.entry.js.map +1 -1
- package/dist/esm/six-group-label.entry.js +43 -43
- package/dist/esm/six-group-label.entry.js.map +1 -1
- package/dist/esm/six-header.entry.js +168 -155
- package/dist/esm/six-header.entry.js.map +1 -1
- package/dist/esm/six-icon-button.entry.js +32 -32
- package/dist/esm/six-icon-button.entry.js.map +1 -1
- package/dist/esm/six-icon.entry.js +22 -22
- package/dist/esm/six-icon.entry.js.map +1 -1
- package/dist/esm/six-input.entry.js +190 -187
- package/dist/esm/six-input.entry.js.map +1 -1
- package/dist/esm/six-item-picker.entry.js +405 -309
- package/dist/esm/six-item-picker.entry.js.map +1 -1
- package/dist/esm/six-language-switcher.entry.js +46 -46
- package/dist/esm/six-language-switcher.entry.js.map +1 -1
- package/dist/esm/six-layout-grid.entry.js +20 -20
- package/dist/esm/six-layout-grid.entry.js.map +1 -1
- package/dist/esm/six-main-container.entry.js +9 -9
- package/dist/esm/six-main-container.entry.js.map +1 -1
- package/dist/esm/six-menu-divider.entry.js +7 -7
- package/dist/esm/six-menu-divider.entry.js.map +1 -1
- package/dist/esm/six-menu-item.entry.js +49 -49
- package/dist/esm/six-menu-item.entry.js.map +1 -1
- package/dist/esm/six-menu-label.entry.js +7 -7
- package/dist/esm/six-menu-label.entry.js.map +1 -1
- package/dist/esm/six-picto.entry.js +14 -14
- package/dist/esm/six-picto.entry.js.map +1 -1
- package/dist/esm/six-progress-bar.entry.js +14 -14
- package/dist/esm/six-progress-bar.entry.js.map +1 -1
- package/dist/esm/six-progress-ring.entry.js +29 -29
- package/dist/esm/six-progress-ring.entry.js.map +1 -1
- package/dist/esm/six-radio.entry.js +103 -111
- package/dist/esm/six-radio.entry.js.map +1 -1
- package/dist/esm/six-range.entry.js +180 -177
- package/dist/esm/six-range.entry.js.map +1 -1
- package/dist/esm/six-root.entry.js +30 -30
- package/dist/esm/six-root.entry.js.map +1 -1
- package/dist/esm/six-search-field.entry.js +43 -43
- package/dist/esm/six-search-field.entry.js.map +1 -1
- package/dist/esm/six-select.entry.js +364 -360
- package/dist/esm/six-select.entry.js.map +1 -1
- package/dist/esm/six-sidebar-item-group.entry.js +56 -45
- package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
- package/dist/esm/six-sidebar-item.entry.js +17 -15
- package/dist/esm/six-sidebar-item.entry.js.map +1 -1
- package/dist/esm/six-sidebar.entry.js +173 -173
- package/dist/esm/six-sidebar.entry.js.map +1 -1
- package/dist/esm/six-spinner.entry.js +14 -14
- package/dist/esm/six-spinner.entry.js.map +1 -1
- package/dist/esm/six-switch.entry.js +107 -87
- package/dist/esm/six-switch.entry.js.map +1 -1
- package/dist/esm/six-tab-group.entry.js +230 -235
- package/dist/esm/six-tab-group.entry.js.map +1 -1
- package/dist/esm/six-tab-panel.entry.js +13 -13
- package/dist/esm/six-tab-panel.entry.js.map +1 -1
- package/dist/esm/six-tab.entry.js +55 -39
- package/dist/esm/six-tab.entry.js.map +1 -1
- package/dist/esm/six-tag.entry.js +55 -33
- package/dist/esm/six-tag.entry.js.map +1 -1
- package/dist/esm/six-textarea.entry.js +182 -183
- package/dist/esm/six-textarea.entry.js.map +1 -1
- package/dist/esm/six-tile.entry.js +76 -76
- package/dist/esm/six-tile.entry.js.map +1 -1
- package/dist/esm/six-timepicker.entry.js +347 -352
- package/dist/esm/six-timepicker.entry.js.map +1 -1
- package/dist/esm/six-tooltip.entry.js +148 -148
- package/dist/esm/six-tooltip.entry.js.map +1 -1
- package/dist/esm/slot-41bc439a.js +48 -0
- package/dist/esm/slot-41bc439a.js.map +1 -0
- package/dist/esm/types-07748c42.js +17 -0
- package/dist/esm/types-07748c42.js.map +1 -0
- package/dist/esm/ui-library.js +4 -7
- package/dist/esm/ui-library.js.map +1 -1
- package/dist/types/components/six-alert/six-alert.d.ts +40 -40
- package/dist/types/components/six-avatar/six-avatar.d.ts +11 -11
- package/dist/types/components/six-badge/six-badge.d.ts +7 -7
- package/dist/types/components/six-button/six-button.d.ts +48 -48
- package/dist/types/components/six-card/six-card.d.ts +1 -1
- package/dist/types/components/six-checkbox/six-checkbox.d.ts +58 -59
- package/dist/types/components/six-datepicker/components/day-selection.d.ts +3 -3
- package/dist/types/components/six-datepicker/components/month-selection.d.ts +3 -3
- package/dist/types/components/six-datepicker/components/year-selection.d.ts +3 -3
- package/dist/types/components/six-datepicker/six-date-formats.d.ts +20 -20
- package/dist/types/components/six-datepicker/six-datepicker.d.ts +188 -186
- package/dist/types/components/six-details/six-details.d.ts +42 -42
- package/dist/types/components/six-dialog/six-dialog.d.ts +50 -50
- package/dist/types/components/six-drawer/six-drawer.d.ts +58 -58
- package/dist/types/components/six-dropdown/six-dropdown.d.ts +112 -112
- package/dist/types/components/six-error/six-error.d.ts +9 -0
- package/dist/types/components/six-error-page/six-error-page.d.ts +25 -25
- package/dist/types/components/six-file-list/six-file-list.d.ts +1 -1
- package/dist/types/components/six-file-list-item/six-file-list-item.d.ts +23 -23
- package/dist/types/components/six-file-upload/six-file-upload.d.ts +33 -33
- package/dist/types/components/six-footer/six-footer.d.ts +1 -1
- package/dist/types/components/six-group-label/six-group-label.d.ts +22 -22
- package/dist/types/components/six-header/six-header.d.ts +57 -55
- package/dist/types/components/six-icon/six-icon.d.ts +5 -5
- package/dist/types/components/six-icon-button/six-icon-button.d.ts +18 -18
- package/dist/types/components/six-input/six-input.d.ts +108 -103
- package/dist/types/components/six-item-picker/six-item-picker.d.ts +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 +63 -63
- package/dist/types/components/six-menu-divider/six-menu-divider.d.ts +1 -1
- package/dist/types/components/six-menu-item/six-menu-item.d.ts +21 -21
- package/dist/types/components/six-menu-label/six-menu-label.d.ts +1 -1
- package/dist/types/components/six-picto/six-picto.d.ts +6 -6
- package/dist/types/components/six-progress-bar/six-progress-bar.d.ts +5 -5
- package/dist/types/components/six-progress-ring/six-progress-ring.d.ts +11 -11
- package/dist/types/components/six-radio/six-radio.d.ts +38 -43
- package/dist/types/components/six-range/six-range.d.ts +75 -72
- package/dist/types/components/six-root/six-root.d.ts +18 -18
- package/dist/types/components/six-search-field/six-search-field.d.ts +20 -20
- package/dist/types/components/six-select/six-select.d.ts +122 -119
- package/dist/types/components/six-select/util.d.ts +1 -1
- package/dist/types/components/six-sidebar/six-sidebar.d.ts +45 -45
- package/dist/types/components/six-sidebar-item/six-sidebar-item.d.ts +12 -7
- package/dist/types/components/six-sidebar-item-group/six-sidebar-item-group.d.ts +25 -19
- package/dist/types/components/six-spinner/six-spinner.d.ts +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 -42
- package/dist/types/components/six-tab/six-tab.d.ts +20 -20
- package/dist/types/components/six-tab-group/six-tab-group.d.ts +35 -38
- package/dist/types/components/six-tab-panel/six-tab-panel.d.ts +7 -7
- package/dist/types/components/six-tag/six-tag.d.ts +20 -12
- package/dist/types/components/six-textarea/six-textarea.d.ts +89 -86
- package/dist/types/components/six-tile/six-tile.d.ts +31 -31
- package/dist/types/components/six-timepicker/six-timepicker.d.ts +154 -151
- package/dist/types/components/six-tooltip/six-tooltip.d.ts +55 -55
- package/dist/types/components.d.ts +505 -24
- package/dist/types/functional-components/form-control/form-control.d.ts +32 -28
- package/dist/types/stencil-public-runtime.d.ts +49 -5
- package/dist/types/utils/animation.d.ts +12 -0
- package/dist/types/utils/date-util.d.ts +50 -50
- package/dist/types/utils/error-messages.d.ts +26 -25
- package/dist/types/utils/event-listeners.d.ts +11 -11
- package/dist/types/utils/focus-visible.d.ts +2 -2
- package/dist/types/utils/modal.d.ts +8 -8
- package/dist/types/utils/offset.d.ts +2 -2
- package/dist/types/utils/popover.d.ts +21 -21
- package/dist/types/utils/time.util.d.ts +6 -6
- package/dist/types/utils/types.d.ts +1 -1
- package/dist/types/wrappers/set-attributes/set-attributes.d.ts +7 -7
- package/dist/ui-library/index.esm.js +1 -1
- package/dist/ui-library/index.esm.js.map +1 -1
- package/dist/ui-library/{p-0cc08e91.js → p-06ba4450.js} +1 -1
- package/dist/ui-library/p-06ba4450.js.map +1 -0
- package/dist/ui-library/{p-25a3bf57.js → p-0861899a.js} +1 -1
- package/dist/ui-library/p-0861899a.js.map +1 -0
- package/dist/ui-library/p-0a81b42c.entry.js +2 -0
- package/dist/ui-library/p-0a81b42c.entry.js.map +1 -0
- package/dist/ui-library/p-0beec94f.js +3 -0
- package/dist/ui-library/p-0beec94f.js.map +1 -0
- package/dist/ui-library/p-0e7332db.entry.js +2 -0
- package/dist/ui-library/p-0e7332db.entry.js.map +1 -0
- package/dist/ui-library/{p-097cced4.entry.js → p-178f5782.entry.js} +2 -2
- package/dist/ui-library/p-178f5782.entry.js.map +1 -0
- package/dist/ui-library/p-19a61686.entry.js +2 -0
- package/dist/ui-library/p-19a61686.entry.js.map +1 -0
- package/dist/ui-library/{p-73597d13.entry.js → p-1d0c5929.entry.js} +2 -2
- package/dist/ui-library/p-1d0c5929.entry.js.map +1 -0
- package/dist/ui-library/{p-03a145f5.entry.js → p-23c02c98.entry.js} +2 -2
- package/dist/ui-library/p-23c02c98.entry.js.map +1 -0
- package/dist/ui-library/{p-686b12ec.entry.js → p-28221447.entry.js} +2 -2
- package/dist/ui-library/p-28221447.entry.js.map +1 -0
- package/dist/ui-library/p-2eed9d8d.entry.js +2 -0
- package/dist/ui-library/p-2eed9d8d.entry.js.map +1 -0
- package/dist/ui-library/{p-8e0b6b7e.entry.js → p-3187bc23.entry.js} +2 -2
- package/dist/ui-library/p-3187bc23.entry.js.map +1 -0
- package/dist/ui-library/{p-502ff3d3.entry.js → p-32e1a5ab.entry.js} +2 -2
- package/dist/ui-library/p-32e1a5ab.entry.js.map +1 -0
- package/dist/ui-library/{p-bd8f8eef.entry.js → p-32fed3c7.entry.js} +2 -2
- package/dist/ui-library/p-32fed3c7.entry.js.map +1 -0
- package/dist/ui-library/{p-baa03951.entry.js → p-3d54ecf2.entry.js} +2 -2
- package/dist/ui-library/p-3d54ecf2.entry.js.map +1 -0
- package/dist/ui-library/p-4229f7e8.entry.js +2 -0
- package/dist/ui-library/p-4229f7e8.entry.js.map +1 -0
- package/dist/ui-library/p-479d8087.entry.js +2 -0
- package/dist/ui-library/p-479d8087.entry.js.map +1 -0
- package/dist/ui-library/{p-ef3936e5.entry.js → p-49aa8d1e.entry.js} +2 -2
- package/dist/ui-library/p-49aa8d1e.entry.js.map +1 -0
- package/dist/ui-library/{p-cdcde4cd.entry.js → p-58661675.entry.js} +2 -2
- package/dist/ui-library/p-58661675.entry.js.map +1 -0
- package/dist/ui-library/p-5d43ea07.entry.js +2 -0
- package/dist/ui-library/p-5d43ea07.entry.js.map +1 -0
- package/dist/ui-library/p-6907a7dc.js +2 -0
- package/dist/ui-library/p-6907a7dc.js.map +1 -0
- package/dist/ui-library/p-6aa2929a.entry.js +2 -0
- package/dist/ui-library/p-6aa2929a.entry.js.map +1 -0
- package/dist/ui-library/p-7432d409.entry.js +2 -0
- package/dist/ui-library/p-7432d409.entry.js.map +1 -0
- package/dist/ui-library/{p-28be55f0.entry.js → p-74a714c0.entry.js} +2 -2
- package/dist/ui-library/p-74a714c0.entry.js.map +1 -0
- package/dist/ui-library/{p-5a34c93e.entry.js → p-76825395.entry.js} +2 -2
- package/dist/ui-library/p-76825395.entry.js.map +1 -0
- package/dist/ui-library/{p-0b2c6348.js → p-7f856f00.js} +1 -1
- package/dist/ui-library/p-7f856f00.js.map +1 -0
- package/dist/ui-library/{p-820c23f0.entry.js → p-816f857d.entry.js} +2 -2
- package/dist/ui-library/p-816f857d.entry.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-4d408fb4.js → p-842b492e.js} +1 -1
- package/dist/ui-library/p-842b492e.js.map +1 -0
- package/dist/ui-library/p-882fbf6f.entry.js +2 -0
- package/dist/ui-library/p-882fbf6f.entry.js.map +1 -0
- package/dist/ui-library/{p-3929b0af.entry.js → p-88fd4973.entry.js} +2 -2
- package/dist/ui-library/p-88fd4973.entry.js.map +1 -0
- package/dist/ui-library/{p-66180e89.entry.js → p-8b750c9e.entry.js} +2 -2
- package/dist/ui-library/p-8b750c9e.entry.js.map +1 -0
- package/dist/ui-library/{p-60621dc6.js → p-8bfb4bfc.js} +1 -1
- package/dist/ui-library/p-8bfb4bfc.js.map +1 -0
- package/dist/ui-library/p-911eb578.entry.js +2 -0
- package/dist/ui-library/p-911eb578.entry.js.map +1 -0
- package/dist/ui-library/p-93fcda4a.entry.js +2 -0
- package/dist/ui-library/p-93fcda4a.entry.js.map +1 -0
- package/dist/ui-library/{p-9461417e.entry.js → p-981b3228.entry.js} +2 -2
- package/dist/ui-library/p-981b3228.entry.js.map +1 -0
- package/dist/ui-library/{p-ba74863a.js → p-998de05d.js} +1 -1
- package/dist/ui-library/p-998de05d.js.map +1 -0
- package/dist/ui-library/{p-09779e47.entry.js → p-9b1ff147.entry.js} +2 -2
- package/dist/ui-library/p-9b1ff147.entry.js.map +1 -0
- package/dist/ui-library/p-a0658b26.entry.js +2 -0
- package/dist/ui-library/p-a0658b26.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-a4e4620c.entry.js +2 -0
- package/dist/ui-library/p-a4e4620c.entry.js.map +1 -0
- package/dist/ui-library/{p-6d75f216.entry.js → p-ada23fe3.entry.js} +2 -2
- package/dist/ui-library/p-ada23fe3.entry.js.map +1 -0
- package/dist/ui-library/{p-a1d4f6cf.entry.js → p-b5ac1219.entry.js} +2 -2
- package/dist/ui-library/p-b5ac1219.entry.js.map +1 -0
- package/dist/ui-library/{p-72ca96e1.entry.js → p-ba247565.entry.js} +2 -2
- package/dist/ui-library/p-ba247565.entry.js.map +1 -0
- package/dist/ui-library/p-bdb79948.entry.js +2 -0
- package/dist/ui-library/p-bdb79948.entry.js.map +1 -0
- package/dist/ui-library/p-bee65dd9.entry.js +2 -0
- package/dist/ui-library/p-bee65dd9.entry.js.map +1 -0
- package/dist/ui-library/p-c07b1240.entry.js +2 -0
- package/dist/ui-library/p-c07b1240.entry.js.map +1 -0
- package/dist/ui-library/p-c12a94ce.entry.js +2 -0
- package/dist/ui-library/p-c12a94ce.entry.js.map +1 -0
- package/dist/ui-library/{p-dcd7c547.entry.js → p-c1675a45.entry.js} +2 -2
- package/dist/ui-library/p-c1675a45.entry.js.map +1 -0
- package/dist/ui-library/{p-912092c0.entry.js → p-c2df8c27.entry.js} +2 -2
- package/dist/ui-library/p-c2df8c27.entry.js.map +1 -0
- package/dist/ui-library/p-c86aa5b3.entry.js +2 -0
- package/dist/ui-library/p-c86aa5b3.entry.js.map +1 -0
- package/dist/ui-library/{p-afcbe9da.entry.js → p-cd35b3c6.entry.js} +2 -2
- package/dist/ui-library/p-cd35b3c6.entry.js.map +1 -0
- package/dist/ui-library/{p-63703ba3.entry.js → p-ce373da5.entry.js} +2 -2
- package/dist/ui-library/p-ce373da5.entry.js.map +1 -0
- package/dist/ui-library/p-d2cf4280.entry.js +2 -0
- package/dist/ui-library/p-d2cf4280.entry.js.map +1 -0
- package/dist/ui-library/{p-e8feb81f.entry.js → p-d310a6dd.entry.js} +2 -2
- package/dist/ui-library/p-d310a6dd.entry.js.map +1 -0
- package/dist/ui-library/{p-21859bca.entry.js → p-dfb6bff6.entry.js} +2 -2
- package/dist/ui-library/p-dfb6bff6.entry.js.map +1 -0
- package/dist/ui-library/{p-445ba5b8.entry.js → p-ee71e3a3.entry.js} +2 -2
- package/dist/ui-library/p-ee71e3a3.entry.js.map +1 -0
- package/dist/ui-library/{p-97323ad7.entry.js → p-ef317d69.entry.js} +2 -2
- package/dist/ui-library/p-ef317d69.entry.js.map +1 -0
- package/dist/ui-library/p-f136a6b2.js +2 -0
- package/dist/ui-library/p-f136a6b2.js.map +1 -0
- package/dist/ui-library/p-f385f1c2.entry.js +2 -0
- package/dist/ui-library/p-f385f1c2.entry.js.map +1 -0
- package/dist/ui-library/{p-d6798d35.entry.js → p-f73a6bdc.entry.js} +2 -2
- package/dist/ui-library/p-f73a6bdc.entry.js.map +1 -0
- package/dist/ui-library/{p-d87a6f4d.js → p-faa04bb5.js} +1 -1
- package/dist/ui-library/p-faa04bb5.js.map +1 -0
- package/dist/ui-library/p-fcd57e0a.entry.js +2 -0
- package/dist/ui-library/p-fcd57e0a.entry.js.map +1 -0
- package/dist/ui-library/ui-library.css +2 -2
- package/dist/ui-library/ui-library.esm.js +1 -1
- package/dist/ui-library/ui-library.esm.js.map +1 -1
- package/loader/index.d.ts +1 -1
- package/package.json +16 -14
- package/dist/cjs/event-listeners-b835dfae.js +0 -61
- package/dist/cjs/event-listeners-b835dfae.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-8cbd4e0e.js +0 -20
- package/dist/cjs/form-8cbd4e0e.js.map +0 -1
- package/dist/cjs/form-control-8df00a52.js +0 -33
- package/dist/cjs/form-control-8df00a52.js.map +0 -1
- package/dist/cjs/index-2f6daa5b.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-8885d50f.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/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/esm/event-listeners-535f3ad1.js +0 -59
- package/dist/esm/event-listeners-535f3ad1.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-0b9c11cd.js +0 -18
- package/dist/esm/form-control-785c5f79.js +0 -31
- package/dist/esm/form-control-785c5f79.js.map +0 -1
- package/dist/esm/index-5c0f6628.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-2e72e7d8.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/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/ui-library/p-0045a402.entry.js +0 -2
- package/dist/ui-library/p-0045a402.entry.js.map +0 -1
- package/dist/ui-library/p-0108fe92.entry.js +0 -2
- package/dist/ui-library/p-0108fe92.entry.js.map +0 -1
- package/dist/ui-library/p-03a145f5.entry.js.map +0 -1
- package/dist/ui-library/p-087fdd96.entry.js +0 -2
- package/dist/ui-library/p-087fdd96.entry.js.map +0 -1
- package/dist/ui-library/p-09779e47.entry.js.map +0 -1
- package/dist/ui-library/p-097cced4.entry.js.map +0 -1
- package/dist/ui-library/p-0b2c6348.js.map +0 -1
- package/dist/ui-library/p-0cc08e91.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-21859bca.entry.js.map +0 -1
- package/dist/ui-library/p-25a3bf57.js.map +0 -1
- package/dist/ui-library/p-2761f908.js +0 -2
- package/dist/ui-library/p-2761f908.js.map +0 -1
- package/dist/ui-library/p-28be55f0.entry.js.map +0 -1
- package/dist/ui-library/p-3929b0af.entry.js.map +0 -1
- package/dist/ui-library/p-445ba5b8.entry.js.map +0 -1
- package/dist/ui-library/p-4d408fb4.js.map +0 -1
- package/dist/ui-library/p-502ff3d3.entry.js.map +0 -1
- package/dist/ui-library/p-5a34c93e.entry.js.map +0 -1
- package/dist/ui-library/p-60621dc6.js.map +0 -1
- package/dist/ui-library/p-63703ba3.entry.js.map +0 -1
- package/dist/ui-library/p-66180e89.entry.js.map +0 -1
- package/dist/ui-library/p-686b12ec.entry.js.map +0 -1
- package/dist/ui-library/p-6d75f216.entry.js.map +0 -1
- package/dist/ui-library/p-71035abf.entry.js +0 -2
- package/dist/ui-library/p-71035abf.entry.js.map +0 -1
- package/dist/ui-library/p-724e154d.entry.js +0 -2
- package/dist/ui-library/p-724e154d.entry.js.map +0 -1
- package/dist/ui-library/p-72ca96e1.entry.js.map +0 -1
- package/dist/ui-library/p-73597d13.entry.js.map +0 -1
- package/dist/ui-library/p-778cf804.entry.js +0 -2
- package/dist/ui-library/p-778cf804.entry.js.map +0 -1
- package/dist/ui-library/p-820c23f0.entry.js.map +0 -1
- package/dist/ui-library/p-87032e26.entry.js +0 -2
- package/dist/ui-library/p-87032e26.entry.js.map +0 -1
- package/dist/ui-library/p-8cf72af6.js.map +0 -1
- package/dist/ui-library/p-8e0b6b7e.entry.js.map +0 -1
- package/dist/ui-library/p-912092c0.entry.js.map +0 -1
- package/dist/ui-library/p-92ca6a84.entry.js +0 -2
- package/dist/ui-library/p-92ca6a84.entry.js.map +0 -1
- package/dist/ui-library/p-9337cdd6.entry.js +0 -2
- package/dist/ui-library/p-9337cdd6.entry.js.map +0 -1
- package/dist/ui-library/p-9461417e.entry.js.map +0 -1
- package/dist/ui-library/p-97323ad7.entry.js.map +0 -1
- package/dist/ui-library/p-a1d4f6cf.entry.js.map +0 -1
- package/dist/ui-library/p-a844cb72.entry.js +0 -2
- package/dist/ui-library/p-a844cb72.entry.js.map +0 -1
- package/dist/ui-library/p-ac4f4d45.js +0 -3
- package/dist/ui-library/p-ac4f4d45.js.map +0 -1
- package/dist/ui-library/p-afcbe9da.entry.js.map +0 -1
- package/dist/ui-library/p-b2bf4ac8.entry.js +0 -2
- package/dist/ui-library/p-b2bf4ac8.entry.js.map +0 -1
- package/dist/ui-library/p-b3bff992.entry.js +0 -2
- package/dist/ui-library/p-b3bff992.entry.js.map +0 -1
- package/dist/ui-library/p-b4547fb5.entry.js +0 -2
- package/dist/ui-library/p-b4547fb5.entry.js.map +0 -1
- package/dist/ui-library/p-ba74863a.js.map +0 -1
- package/dist/ui-library/p-baa03951.entry.js.map +0 -1
- package/dist/ui-library/p-bd8f8eef.entry.js.map +0 -1
- package/dist/ui-library/p-c57f16af.entry.js +0 -2
- package/dist/ui-library/p-c57f16af.entry.js.map +0 -1
- package/dist/ui-library/p-c5cdba08.entry.js +0 -2
- package/dist/ui-library/p-c5cdba08.entry.js.map +0 -1
- package/dist/ui-library/p-c87810b0.entry.js +0 -2
- package/dist/ui-library/p-c87810b0.entry.js.map +0 -1
- package/dist/ui-library/p-cdcde4cd.entry.js.map +0 -1
- package/dist/ui-library/p-d6798d35.entry.js.map +0 -1
- package/dist/ui-library/p-d87a6f4d.js.map +0 -1
- package/dist/ui-library/p-dc3f5996.entry.js +0 -2
- package/dist/ui-library/p-dc3f5996.entry.js.map +0 -1
- package/dist/ui-library/p-dcd7c547.entry.js.map +0 -1
- package/dist/ui-library/p-dd3c76f1.entry.js +0 -2
- package/dist/ui-library/p-dd3c76f1.entry.js.map +0 -1
- package/dist/ui-library/p-e07b3f0c.entry.js +0 -2
- package/dist/ui-library/p-e07b3f0c.entry.js.map +0 -1
- package/dist/ui-library/p-e19a6c95.entry.js +0 -2
- package/dist/ui-library/p-e19a6c95.entry.js.map +0 -1
- package/dist/ui-library/p-e8feb81f.entry.js.map +0 -1
- package/dist/ui-library/p-eb8f05a9.js.map +0 -1
- package/dist/ui-library/p-ef3936e5.entry.js.map +0 -1
- package/dist/ui-library/p-f0dd77e1.entry.js +0 -2
- package/dist/ui-library/p-f0dd77e1.entry.js.map +0 -1
- package/readme.md +0 -156
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'ui-library';
|
|
2
|
+
const BUILD = /* ui-library */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Virtual DOM patching algorithm based on Snabbdom by
|
|
@@ -31,6 +32,13 @@ const uniqueTime = (key, measureText) => {
|
|
|
31
32
|
}
|
|
32
33
|
};
|
|
33
34
|
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
35
|
+
/**
|
|
36
|
+
* Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
|
|
37
|
+
*
|
|
38
|
+
* Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
|
|
39
|
+
* support as of Stencil v4.
|
|
40
|
+
*/
|
|
41
|
+
const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
|
|
34
42
|
/**
|
|
35
43
|
* Default style mode id
|
|
36
44
|
*/
|
|
@@ -110,13 +118,13 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
110
118
|
};
|
|
111
119
|
walk(children);
|
|
112
120
|
if (vnodeData) {
|
|
113
|
-
// normalize class / classname attributes
|
|
114
121
|
if (vnodeData.key) {
|
|
115
122
|
key = vnodeData.key;
|
|
116
123
|
}
|
|
117
124
|
if (vnodeData.name) {
|
|
118
125
|
slotName = vnodeData.name;
|
|
119
126
|
}
|
|
127
|
+
// normalize class / className attributes
|
|
120
128
|
{
|
|
121
129
|
const classData = vnodeData.className || vnodeData.class;
|
|
122
130
|
if (classData) {
|
|
@@ -324,9 +332,9 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
324
332
|
}
|
|
325
333
|
styles.set(scopeId, style);
|
|
326
334
|
};
|
|
327
|
-
const addStyle = (styleContainerNode, cmpMeta, mode
|
|
335
|
+
const addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
328
336
|
var _a;
|
|
329
|
-
|
|
337
|
+
const scopeId = getScopeId(cmpMeta);
|
|
330
338
|
const style = styles.get(scopeId);
|
|
331
339
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
332
340
|
// so the fallback is to always use the document for the root node in those cases
|
|
@@ -341,11 +349,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
341
349
|
}
|
|
342
350
|
if (!appliedStyles.has(scopeId)) {
|
|
343
351
|
{
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
styleElm = doc.createElement('style');
|
|
347
|
-
styleElm.innerHTML = style;
|
|
348
|
-
}
|
|
352
|
+
styleElm = doc.createElement('style');
|
|
353
|
+
styleElm.innerHTML = style;
|
|
349
354
|
// Apply CSP nonce to the style tag if it exists
|
|
350
355
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
351
356
|
if (nonce != null) {
|
|
@@ -353,6 +358,10 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
353
358
|
}
|
|
354
359
|
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
355
360
|
}
|
|
361
|
+
// Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
|
|
362
|
+
if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
|
|
363
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
364
|
+
}
|
|
356
365
|
if (appliedStyles) {
|
|
357
366
|
appliedStyles.add(scopeId);
|
|
358
367
|
}
|
|
@@ -370,7 +379,6 @@ const attachStyles = (hostRef) => {
|
|
|
370
379
|
const flags = cmpMeta.$flags$;
|
|
371
380
|
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
372
381
|
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
373
|
-
// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
|
|
374
382
|
if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
|
|
375
383
|
// only required when we're NOT using native shadow dom (slot)
|
|
376
384
|
// or this browser doesn't support native shadow dom
|
|
@@ -396,6 +404,21 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
|
396
404
|
*
|
|
397
405
|
* Modified for Stencil's compiler and vdom
|
|
398
406
|
*/
|
|
407
|
+
/**
|
|
408
|
+
* When running a VDom render set properties present on a VDom node onto the
|
|
409
|
+
* corresponding HTML element.
|
|
410
|
+
*
|
|
411
|
+
* Note that this function has special functionality for the `class`,
|
|
412
|
+
* `style`, `key`, and `ref` attributes, as well as event handlers (like
|
|
413
|
+
* `onClick`, etc). All others are just passed through as-is.
|
|
414
|
+
*
|
|
415
|
+
* @param elm the HTMLElement onto which attributes should be set
|
|
416
|
+
* @param memberName the name of the attribute to set
|
|
417
|
+
* @param oldValue the old value for the attribute
|
|
418
|
+
* @param newValue the new value for the attribute
|
|
419
|
+
* @param isSvg whether we're in an svg context or not
|
|
420
|
+
* @param flags bitflags for Vdom variables
|
|
421
|
+
*/
|
|
399
422
|
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
400
423
|
if (oldValue !== newValue) {
|
|
401
424
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -472,11 +495,19 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
472
495
|
// except for the first character, we keep the event name case
|
|
473
496
|
memberName = ln[2] + memberName.slice(3);
|
|
474
497
|
}
|
|
475
|
-
if (oldValue) {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
498
|
+
if (oldValue || newValue) {
|
|
499
|
+
// Need to account for "capture" events.
|
|
500
|
+
// If the event name ends with "Capture", we'll update the name to remove
|
|
501
|
+
// the "Capture" suffix and make sure the event listener is setup to handle the capture event.
|
|
502
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
503
|
+
// Make sure we only replace the last instance of "Capture"
|
|
504
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, '');
|
|
505
|
+
if (oldValue) {
|
|
506
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
507
|
+
}
|
|
508
|
+
if (newValue) {
|
|
509
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
510
|
+
}
|
|
480
511
|
}
|
|
481
512
|
}
|
|
482
513
|
else {
|
|
@@ -498,7 +529,11 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
498
529
|
elm[memberName] = newValue;
|
|
499
530
|
}
|
|
500
531
|
}
|
|
501
|
-
catch (e) {
|
|
532
|
+
catch (e) {
|
|
533
|
+
/**
|
|
534
|
+
* in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
|
|
535
|
+
*/
|
|
536
|
+
}
|
|
502
537
|
}
|
|
503
538
|
if (newValue == null || newValue === false) {
|
|
504
539
|
if (newValue !== false || elm.getAttribute(memberName) === '') {
|
|
@@ -517,7 +552,14 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
517
552
|
}
|
|
518
553
|
};
|
|
519
554
|
const parseClassListRegex = /\s/;
|
|
555
|
+
/**
|
|
556
|
+
* Parsed a string of classnames into an array
|
|
557
|
+
* @param value className string, e.g. "foo bar baz"
|
|
558
|
+
* @returns list of classes, e.g. ["foo", "bar", "baz"]
|
|
559
|
+
*/
|
|
520
560
|
const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
|
|
561
|
+
const CAPTURE_EVENT_SUFFIX = 'Capture';
|
|
562
|
+
const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
|
|
521
563
|
const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
522
564
|
// if the element passed in is a shadow root, which is a document fragment
|
|
523
565
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
@@ -551,6 +593,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
551
593
|
* @returns the newly created node
|
|
552
594
|
*/
|
|
553
595
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
596
|
+
var _a;
|
|
554
597
|
// tslint:disable-next-line: prefer-const
|
|
555
598
|
const newVNode = newParentVNode.$children$[childIndex];
|
|
556
599
|
let i = 0;
|
|
@@ -629,6 +672,8 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
629
672
|
if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
|
|
630
673
|
// remember the content reference comment
|
|
631
674
|
elm['s-sr'] = true;
|
|
675
|
+
// Persist the name of the slot that this slot was going to be projected into.
|
|
676
|
+
elm['s-fs'] = (_a = newVNode.$attrs$) === null || _a === void 0 ? void 0 : _a.slot;
|
|
632
677
|
// remember the content reference comment
|
|
633
678
|
elm['s-cr'] = contentRef;
|
|
634
679
|
// remember the slot name, or empty string for default slot
|
|
@@ -645,6 +690,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
645
690
|
return elm;
|
|
646
691
|
};
|
|
647
692
|
const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
693
|
+
var _a;
|
|
648
694
|
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
649
695
|
const oldSlotChildNodes = parentElm.childNodes;
|
|
650
696
|
for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
|
|
@@ -657,9 +703,17 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
657
703
|
parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
|
|
658
704
|
// remove the old original location comment entirely
|
|
659
705
|
// later on the patch function will know what to do
|
|
660
|
-
// and move this to the correct spot
|
|
706
|
+
// and move this to the correct spot if need be
|
|
661
707
|
childNode['s-ol'].remove();
|
|
662
708
|
childNode['s-ol'] = undefined;
|
|
709
|
+
// Reset so we can correctly move the node around again.
|
|
710
|
+
childNode['s-sh'] = undefined;
|
|
711
|
+
// When putting an element node back in its original location,
|
|
712
|
+
// we need to reset the `slot` attribute back to the value it originally had
|
|
713
|
+
// so we can correctly relocate it again in the future
|
|
714
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
715
|
+
childNode.setAttribute('slot', (_a = childNode['s-sn']) !== null && _a !== void 0 ? _a : '');
|
|
716
|
+
}
|
|
663
717
|
checkSlotRelocate = true;
|
|
664
718
|
}
|
|
665
719
|
if (recursive) {
|
|
@@ -709,30 +763,31 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
709
763
|
* @param vnodes a list of virtual DOM nodes to remove
|
|
710
764
|
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
711
765
|
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
712
|
-
* @param vnode a VNode
|
|
713
|
-
* @param elm an element
|
|
714
766
|
*/
|
|
715
|
-
const removeVnodes = (vnodes, startIdx, endIdx
|
|
716
|
-
for (
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
elm['s-ol']
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
767
|
+
const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
768
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
769
|
+
const vnode = vnodes[index];
|
|
770
|
+
if (vnode) {
|
|
771
|
+
const elm = vnode.$elm$;
|
|
772
|
+
nullifyVNodeRefs(vnode);
|
|
773
|
+
if (elm) {
|
|
774
|
+
{
|
|
775
|
+
// we're removing this element
|
|
776
|
+
// so it's possible we need to show slot fallback content now
|
|
777
|
+
checkSlotFallbackVisibility = true;
|
|
778
|
+
if (elm['s-ol']) {
|
|
779
|
+
// remove the original location comment
|
|
780
|
+
elm['s-ol'].remove();
|
|
781
|
+
}
|
|
782
|
+
else {
|
|
783
|
+
// it's possible that child nodes of the node
|
|
784
|
+
// that's being removed are slot nodes
|
|
785
|
+
putBackInOriginalLocation(elm, true);
|
|
786
|
+
}
|
|
732
787
|
}
|
|
788
|
+
// remove the vnode's element from the dom
|
|
789
|
+
elm.remove();
|
|
733
790
|
}
|
|
734
|
-
// remove the vnode's element from the dom
|
|
735
|
-
elm.remove();
|
|
736
791
|
}
|
|
737
792
|
}
|
|
738
793
|
};
|
|
@@ -1082,42 +1137,53 @@ const patch = (oldVNode, newVNode) => {
|
|
|
1082
1137
|
elm.data = text;
|
|
1083
1138
|
}
|
|
1084
1139
|
};
|
|
1140
|
+
/**
|
|
1141
|
+
* Adjust the `.hidden` property as-needed on any nodes in a DOM subtree which
|
|
1142
|
+
* are slot fallbacks nodes.
|
|
1143
|
+
*
|
|
1144
|
+
* A slot fallback node should be visible by default. Then, it should be
|
|
1145
|
+
* conditionally hidden if:
|
|
1146
|
+
*
|
|
1147
|
+
* - it has a sibling with a `slot` property set to its slot name or if
|
|
1148
|
+
* - it is a default fallback slot node, in which case we hide if it has any
|
|
1149
|
+
* content
|
|
1150
|
+
*
|
|
1151
|
+
* @param elm the element of interest
|
|
1152
|
+
*/
|
|
1085
1153
|
const updateFallbackSlotVisibility = (elm) => {
|
|
1086
|
-
// tslint:disable-next-line: prefer-const
|
|
1087
1154
|
const childNodes = elm.childNodes;
|
|
1088
|
-
|
|
1089
|
-
let i;
|
|
1090
|
-
let ilen;
|
|
1091
|
-
let j;
|
|
1092
|
-
let slotNameAttr;
|
|
1093
|
-
let nodeType;
|
|
1094
|
-
for (i = 0, ilen = childNodes.length; i < ilen; i++) {
|
|
1095
|
-
childNode = childNodes[i];
|
|
1155
|
+
for (const childNode of childNodes) {
|
|
1096
1156
|
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1097
1157
|
if (childNode['s-sr']) {
|
|
1098
1158
|
// this is a slot fallback node
|
|
1099
1159
|
// get the slot name for this slot reference node
|
|
1100
|
-
|
|
1160
|
+
const slotName = childNode['s-sn'];
|
|
1101
1161
|
// by default always show a fallback slot node
|
|
1102
1162
|
// then hide it if there are other slots in the light dom
|
|
1103
1163
|
childNode.hidden = false;
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1164
|
+
// we need to check all of its sibling nodes in order to see if
|
|
1165
|
+
// `childNode` should be hidden
|
|
1166
|
+
for (const siblingNode of childNodes) {
|
|
1167
|
+
// Don't check the node against itself
|
|
1168
|
+
if (siblingNode !== childNode) {
|
|
1169
|
+
if (siblingNode['s-hn'] !== childNode['s-hn'] || slotName !== '') {
|
|
1170
|
+
// this sibling node is from a different component OR is a named
|
|
1171
|
+
// fallback slot node
|
|
1172
|
+
if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
|
|
1173
|
+
(slotName === siblingNode.getAttribute('slot') || slotName === siblingNode['s-sn'])) {
|
|
1174
|
+
childNode.hidden = true;
|
|
1175
|
+
break;
|
|
1176
|
+
}
|
|
1111
1177
|
}
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1178
|
+
else {
|
|
1179
|
+
// this is a default fallback slot node
|
|
1180
|
+
// any element or text node (with content)
|
|
1181
|
+
// should hide the default fallback slot node
|
|
1182
|
+
if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ ||
|
|
1183
|
+
(siblingNode.nodeType === 3 /* NODE_TYPE.TextNode */ && siblingNode.textContent.trim() !== '')) {
|
|
1184
|
+
childNode.hidden = true;
|
|
1185
|
+
break;
|
|
1186
|
+
}
|
|
1121
1187
|
}
|
|
1122
1188
|
}
|
|
1123
1189
|
}
|
|
@@ -1127,45 +1193,67 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
1127
1193
|
}
|
|
1128
1194
|
}
|
|
1129
1195
|
};
|
|
1196
|
+
/**
|
|
1197
|
+
* Component-global information about nodes which are either currently being
|
|
1198
|
+
* relocated or will be shortly.
|
|
1199
|
+
*/
|
|
1130
1200
|
const relocateNodes = [];
|
|
1131
|
-
|
|
1201
|
+
/**
|
|
1202
|
+
* Mark the contents of a slot for relocation via adding references to them to
|
|
1203
|
+
* the {@link relocateNodes} data structure. The actual work of relocating them
|
|
1204
|
+
* will then be handled in {@link renderVdom}.
|
|
1205
|
+
*
|
|
1206
|
+
* @param elm a render node whose child nodes need to be relocated
|
|
1207
|
+
*/
|
|
1208
|
+
const markSlotContentForRelocation = (elm) => {
|
|
1132
1209
|
// tslint:disable-next-line: prefer-const
|
|
1133
|
-
let childNode;
|
|
1134
1210
|
let node;
|
|
1135
1211
|
let hostContentNodes;
|
|
1136
|
-
let slotNameAttr;
|
|
1137
|
-
let relocateNodeData;
|
|
1138
1212
|
let j;
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
for (; i < ilen; i++) {
|
|
1143
|
-
childNode = childNodes[i];
|
|
1213
|
+
for (const childNode of elm.childNodes) {
|
|
1214
|
+
// we need to find child nodes which are slot references so we can then try
|
|
1215
|
+
// to match them up with nodes that need to be relocated
|
|
1144
1216
|
if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
|
|
1145
|
-
// first
|
|
1146
|
-
//
|
|
1217
|
+
// first get the content reference comment node ('s-cr'), then we get
|
|
1218
|
+
// its parent, which is where all the host content is now
|
|
1147
1219
|
hostContentNodes = node.parentNode.childNodes;
|
|
1148
|
-
|
|
1220
|
+
const slotName = childNode['s-sn'];
|
|
1221
|
+
// iterate through all the nodes under the location where the host was
|
|
1222
|
+
// originally rendered
|
|
1149
1223
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1150
1224
|
node = hostContentNodes[j];
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1225
|
+
// check that the node is not a content reference node or a node
|
|
1226
|
+
// reference and then check that the host name does not match that of
|
|
1227
|
+
// childNode.
|
|
1228
|
+
// In addition, check that the slot either has not already been relocated, or
|
|
1229
|
+
// that its current location's host is not childNode's host. This is essentially
|
|
1230
|
+
// a check so that we don't try to relocate (and then hide) a node that is already
|
|
1231
|
+
// where it should be.
|
|
1232
|
+
if (!node['s-cn'] &&
|
|
1233
|
+
!node['s-nr'] &&
|
|
1234
|
+
node['s-hn'] !== childNode['s-hn'] &&
|
|
1235
|
+
(!BUILD.experimentalSlotFixes )) {
|
|
1236
|
+
// if `node` is located in the slot that `childNode` refers to (via the
|
|
1237
|
+
// `'s-sn'` property) then we need to relocate it from it's current spot
|
|
1238
|
+
// (under the host element parent) to the right slot location
|
|
1239
|
+
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1156
1240
|
// it's possible we've already decided to relocate this node
|
|
1157
|
-
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1241
|
+
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1158
1242
|
// made some changes to slots
|
|
1159
1243
|
// let's make sure we also double check
|
|
1160
1244
|
// fallbacks are correctly hidden or shown
|
|
1161
1245
|
checkSlotFallbackVisibility = true;
|
|
1162
|
-
|
|
1246
|
+
// ensure that the slot-name attr is correct
|
|
1247
|
+
node['s-sn'] = node['s-sn'] || slotName;
|
|
1163
1248
|
if (relocateNodeData) {
|
|
1164
|
-
|
|
1165
|
-
//
|
|
1249
|
+
relocateNodeData.$nodeToRelocate$['s-sh'] = childNode['s-hn'];
|
|
1250
|
+
// we marked this node for relocation previously but didn't find
|
|
1251
|
+
// out the slot reference node to which it needs to be relocated
|
|
1252
|
+
// so write it down now!
|
|
1166
1253
|
relocateNodeData.$slotRefNode$ = childNode;
|
|
1167
1254
|
}
|
|
1168
1255
|
else {
|
|
1256
|
+
node['s-sh'] = childNode['s-hn'];
|
|
1169
1257
|
// add to our list of nodes to relocate
|
|
1170
1258
|
relocateNodes.push({
|
|
1171
1259
|
$slotRefNode$: childNode,
|
|
@@ -1184,8 +1272,10 @@ const relocateSlotContent = (elm) => {
|
|
|
1184
1272
|
}
|
|
1185
1273
|
}
|
|
1186
1274
|
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
1187
|
-
//
|
|
1188
|
-
//
|
|
1275
|
+
// the node is not found within the slot (`childNode`) that we're
|
|
1276
|
+
// currently looking at, so we stick it into `relocateNodes` to
|
|
1277
|
+
// handle later. If we never find a home for this element then
|
|
1278
|
+
// we'll need to hide it
|
|
1189
1279
|
relocateNodes.push({
|
|
1190
1280
|
$nodeToRelocate$: node,
|
|
1191
1281
|
});
|
|
@@ -1193,30 +1283,48 @@ const relocateSlotContent = (elm) => {
|
|
|
1193
1283
|
}
|
|
1194
1284
|
}
|
|
1195
1285
|
}
|
|
1286
|
+
// if we're dealing with any type of element (capable of itself being a
|
|
1287
|
+
// slot reference or containing one) then we recur
|
|
1196
1288
|
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1197
|
-
|
|
1289
|
+
markSlotContentForRelocation(childNode);
|
|
1198
1290
|
}
|
|
1199
1291
|
}
|
|
1200
1292
|
};
|
|
1201
|
-
|
|
1293
|
+
/**
|
|
1294
|
+
* Check whether a node is located in a given named slot.
|
|
1295
|
+
*
|
|
1296
|
+
* @param nodeToRelocate the node of interest
|
|
1297
|
+
* @param slotName the slot name to check
|
|
1298
|
+
* @returns whether the node is located in the slot or not
|
|
1299
|
+
*/
|
|
1300
|
+
const isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
1202
1301
|
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1203
|
-
if (nodeToRelocate.getAttribute('slot') === null &&
|
|
1302
|
+
if (nodeToRelocate.getAttribute('slot') === null && slotName === '') {
|
|
1303
|
+
// if the node doesn't have a slot attribute, and the slot we're checking
|
|
1304
|
+
// is not a named slot, then we assume the node should be within the slot
|
|
1204
1305
|
return true;
|
|
1205
1306
|
}
|
|
1206
|
-
if (nodeToRelocate.getAttribute('slot') ===
|
|
1307
|
+
if (nodeToRelocate.getAttribute('slot') === slotName) {
|
|
1207
1308
|
return true;
|
|
1208
1309
|
}
|
|
1209
1310
|
return false;
|
|
1210
1311
|
}
|
|
1211
|
-
if (nodeToRelocate['s-sn'] ===
|
|
1312
|
+
if (nodeToRelocate['s-sn'] === slotName) {
|
|
1212
1313
|
return true;
|
|
1213
1314
|
}
|
|
1214
|
-
return
|
|
1315
|
+
return slotName === '';
|
|
1215
1316
|
};
|
|
1216
|
-
|
|
1317
|
+
/**
|
|
1318
|
+
* 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
|
|
1319
|
+
* them with `null`. This signals that the DOM element corresponding to the VDom
|
|
1320
|
+
* node has been removed from the DOM.
|
|
1321
|
+
*
|
|
1322
|
+
* @param vNode a virtual DOM node
|
|
1323
|
+
*/
|
|
1324
|
+
const nullifyVNodeRefs = (vNode) => {
|
|
1217
1325
|
{
|
|
1218
1326
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
1219
|
-
vNode.$children$ && vNode.$children$.map(
|
|
1327
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
1220
1328
|
}
|
|
1221
1329
|
};
|
|
1222
1330
|
/**
|
|
@@ -1230,17 +1338,45 @@ const callNodeRefs = (vNode) => {
|
|
|
1230
1338
|
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
1231
1339
|
* the DOM node into which it should be rendered.
|
|
1232
1340
|
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
1341
|
+
* @param isInitialLoad whether or not this is the first call after page load
|
|
1233
1342
|
*/
|
|
1234
|
-
const renderVdom = (hostRef, renderFnResults) => {
|
|
1343
|
+
const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1344
|
+
var _a, _b;
|
|
1235
1345
|
const hostElm = hostRef.$hostElement$;
|
|
1236
1346
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1237
1347
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1348
|
+
// if `renderFnResults` is a Host node then we can use it directly. If not,
|
|
1349
|
+
// we need to call `h` again to wrap the children of our component in a
|
|
1350
|
+
// 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
|
|
1351
|
+
// implicitly that the top-level vdom node is 1) an only child and 2)
|
|
1352
|
+
// contains attrs that need to be set on the host element.
|
|
1238
1353
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
1239
1354
|
hostTagName = hostElm.tagName;
|
|
1240
1355
|
if (cmpMeta.$attrsToReflect$) {
|
|
1241
1356
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
1242
1357
|
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
1243
1358
|
}
|
|
1359
|
+
// On the first render and *only* on the first render we want to check for
|
|
1360
|
+
// any attributes set on the host element which are also set on the vdom
|
|
1361
|
+
// node. If we find them, we override the value on the VDom node attrs with
|
|
1362
|
+
// the value from the host element, which allows developers building apps
|
|
1363
|
+
// with Stencil components to override e.g. the `role` attribute on a
|
|
1364
|
+
// component even if it's already set on the `Host`.
|
|
1365
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
1366
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
1367
|
+
// We have a special implementation in `setAccessor` for `style` and
|
|
1368
|
+
// `class` which reconciles values coming from the VDom with values
|
|
1369
|
+
// already present on the DOM element, so we don't want to override those
|
|
1370
|
+
// attributes on the VDom tree with values from the host element if they
|
|
1371
|
+
// are present.
|
|
1372
|
+
//
|
|
1373
|
+
// Likewise, `ref` and `key` are special internal values for the Stencil
|
|
1374
|
+
// runtime and we don't want to override those either.
|
|
1375
|
+
if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
|
|
1376
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1244
1380
|
rootVnode.$tag$ = null;
|
|
1245
1381
|
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
1246
1382
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -1261,43 +1397,48 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1261
1397
|
// the disconnectCallback from working
|
|
1262
1398
|
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
1263
1399
|
if (checkSlotRelocate) {
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
let orgLocationNode;
|
|
1268
|
-
let parentNodeRef;
|
|
1269
|
-
let insertBeforeNode;
|
|
1270
|
-
let refNode;
|
|
1271
|
-
let i = 0;
|
|
1272
|
-
for (; i < relocateNodes.length; i++) {
|
|
1273
|
-
relocateData = relocateNodes[i];
|
|
1274
|
-
nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1400
|
+
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1401
|
+
for (const relocateData of relocateNodes) {
|
|
1402
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1275
1403
|
if (!nodeToRelocate['s-ol']) {
|
|
1276
1404
|
// add a reference node marking this node's original location
|
|
1277
1405
|
// keep a reference to this node for later lookups
|
|
1278
|
-
orgLocationNode =
|
|
1279
|
-
doc.createTextNode('');
|
|
1406
|
+
const orgLocationNode = doc.createTextNode('');
|
|
1280
1407
|
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
1281
1408
|
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
1282
1409
|
}
|
|
1283
1410
|
}
|
|
1284
|
-
for (
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
if (
|
|
1288
|
-
|
|
1289
|
-
//
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1411
|
+
for (const relocateData of relocateNodes) {
|
|
1412
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1413
|
+
const slotRefNode = relocateData.$slotRefNode$;
|
|
1414
|
+
if (slotRefNode) {
|
|
1415
|
+
const parentNodeRef = slotRefNode.parentNode;
|
|
1416
|
+
// When determining where to insert content, the most simple case would be
|
|
1417
|
+
// to relocate the node immediately following the slot reference node. We do this
|
|
1418
|
+
// by getting a reference to the node immediately following the slot reference node
|
|
1419
|
+
// since we will use `insertBefore` to manipulate the DOM.
|
|
1420
|
+
//
|
|
1421
|
+
// If there is no node immediately following the slot reference node, then we will just
|
|
1422
|
+
// end up appending the node as the last child of the parent.
|
|
1423
|
+
let insertBeforeNode = slotRefNode.nextSibling;
|
|
1424
|
+
// If the node we're currently planning on inserting the new node before is an element,
|
|
1425
|
+
// we need to do some additional checks to make sure we're inserting the node in the correct order.
|
|
1426
|
+
// The use case here would be that we have multiple nodes being relocated to the same slot. So, we want
|
|
1427
|
+
// to make sure they get inserted into their new how in the same order they were declared in their original location.
|
|
1428
|
+
//
|
|
1429
|
+
// TODO(STENCIL-914): Remove `experimentalSlotFixes` check
|
|
1430
|
+
{
|
|
1431
|
+
let orgLocationNode = (_a = nodeToRelocate['s-ol']) === null || _a === void 0 ? void 0 : _a.previousSibling;
|
|
1432
|
+
while (orgLocationNode) {
|
|
1433
|
+
let refNode = (_b = orgLocationNode['s-nr']) !== null && _b !== void 0 ? _b : null;
|
|
1434
|
+
if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
|
|
1435
|
+
refNode = refNode.nextSibling;
|
|
1436
|
+
if (!refNode || !refNode['s-nr']) {
|
|
1437
|
+
insertBeforeNode = refNode;
|
|
1438
|
+
break;
|
|
1439
|
+
}
|
|
1300
1440
|
}
|
|
1441
|
+
orgLocationNode = orgLocationNode.previousSibling;
|
|
1301
1442
|
}
|
|
1302
1443
|
}
|
|
1303
1444
|
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
@@ -1307,10 +1448,13 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1307
1448
|
// has a different next sibling or parent relocated
|
|
1308
1449
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1309
1450
|
if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
|
|
1310
|
-
// probably a component in the index.html that doesn't have
|
|
1451
|
+
// probably a component in the index.html that doesn't have its hostname set
|
|
1311
1452
|
nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
|
|
1312
1453
|
}
|
|
1313
|
-
//
|
|
1454
|
+
// Add it back to the dom but in its new home
|
|
1455
|
+
// If we get to this point and `insertBeforeNode` is `null`, that means
|
|
1456
|
+
// we're just going to append the node as the last child of the parent. Passing
|
|
1457
|
+
// `null` as the second arg here will trigger that behavior.
|
|
1314
1458
|
parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
|
|
1315
1459
|
}
|
|
1316
1460
|
}
|
|
@@ -1353,27 +1497,93 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
1353
1497
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1354
1498
|
return writeTask(dispatch) ;
|
|
1355
1499
|
};
|
|
1500
|
+
/**
|
|
1501
|
+
* Dispatch initial-render and update lifecycle hooks, enqueuing calls to
|
|
1502
|
+
* component lifecycle methods like `componentWillLoad` as well as
|
|
1503
|
+
* {@link updateComponent}, which will kick off the virtual DOM re-render.
|
|
1504
|
+
*
|
|
1505
|
+
* @param hostRef a reference to a host DOM node
|
|
1506
|
+
* @param isInitialLoad whether we're on the initial load or not
|
|
1507
|
+
* @returns an empty Promise which is used to enqueue a series of operations for
|
|
1508
|
+
* the component
|
|
1509
|
+
*/
|
|
1356
1510
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1357
1511
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
1358
1512
|
const instance = hostRef.$lazyInstance$ ;
|
|
1359
|
-
|
|
1513
|
+
// We're going to use this variable together with `enqueue` to implement a
|
|
1514
|
+
// little promise-based queue. We start out with it `undefined`. When we add
|
|
1515
|
+
// the first function to the queue we'll set this variable to be that
|
|
1516
|
+
// function's return value. When we attempt to add subsequent values to the
|
|
1517
|
+
// queue we'll check that value and, if it was a `Promise`, we'll then chain
|
|
1518
|
+
// the new function off of that `Promise` using `.then()`. This will give our
|
|
1519
|
+
// queue two nice properties:
|
|
1520
|
+
//
|
|
1521
|
+
// 1. If all functions added to the queue are synchronous they'll be called
|
|
1522
|
+
// synchronously right away.
|
|
1523
|
+
// 2. If all functions added to the queue are asynchronous they'll all be
|
|
1524
|
+
// called in order after `dispatchHooks` exits.
|
|
1525
|
+
let maybePromise;
|
|
1360
1526
|
if (isInitialLoad) {
|
|
1361
1527
|
{
|
|
1362
1528
|
hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
|
|
1363
1529
|
if (hostRef.$queuedListeners$) {
|
|
1364
1530
|
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1365
|
-
hostRef.$queuedListeners$ =
|
|
1531
|
+
hostRef.$queuedListeners$ = undefined;
|
|
1366
1532
|
}
|
|
1367
1533
|
}
|
|
1368
1534
|
{
|
|
1369
|
-
|
|
1535
|
+
// If `componentWillLoad` returns a `Promise` then we want to wait on
|
|
1536
|
+
// whatever's going on in that `Promise` before we launch into
|
|
1537
|
+
// rendering the component, doing other lifecycle stuff, etc. So
|
|
1538
|
+
// in that case we assign the returned promise to the variable we
|
|
1539
|
+
// declared above to hold a possible 'queueing' Promise
|
|
1540
|
+
maybePromise = safeCall(instance, 'componentWillLoad');
|
|
1370
1541
|
}
|
|
1371
1542
|
}
|
|
1372
1543
|
endSchedule();
|
|
1373
|
-
return
|
|
1544
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1374
1545
|
};
|
|
1546
|
+
/**
|
|
1547
|
+
* This function uses a Promise to implement a simple first-in, first-out queue
|
|
1548
|
+
* of functions to be called.
|
|
1549
|
+
*
|
|
1550
|
+
* The queue is ordered on the basis of the first argument. If it's
|
|
1551
|
+
* `undefined`, then nothing is on the queue yet, so the provided function can
|
|
1552
|
+
* be called synchronously (although note that this function may return a
|
|
1553
|
+
* `Promise`). The idea is that then the return value of that enqueueing
|
|
1554
|
+
* operation is kept around, so that if it was a `Promise` then subsequent
|
|
1555
|
+
* functions can be enqueued by calling this function again with that `Promise`
|
|
1556
|
+
* as the first argument.
|
|
1557
|
+
*
|
|
1558
|
+
* @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
|
|
1559
|
+
* @param fn a function to enqueue
|
|
1560
|
+
* @returns either a `Promise` or the return value of the provided function
|
|
1561
|
+
*/
|
|
1562
|
+
const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
|
|
1563
|
+
/**
|
|
1564
|
+
* Check that a value is a `Promise`. To check, we first see if the value is an
|
|
1565
|
+
* instance of the `Promise` global. In a few circumstances, in particular if
|
|
1566
|
+
* the global has been overwritten, this is could be misleading, so we also do
|
|
1567
|
+
* a little 'duck typing' check to see if the `.then` property of the value is
|
|
1568
|
+
* defined and a function.
|
|
1569
|
+
*
|
|
1570
|
+
* @param maybePromise it might be a promise!
|
|
1571
|
+
* @returns whether it is or not
|
|
1572
|
+
*/
|
|
1573
|
+
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
|
1574
|
+
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
|
1575
|
+
/**
|
|
1576
|
+
* Update a component given reference to its host elements and so on.
|
|
1577
|
+
*
|
|
1578
|
+
* @param hostRef an object containing references to the element's host node,
|
|
1579
|
+
* VDom nodes, and other metadata
|
|
1580
|
+
* @param instance a reference to the underlying host element where it will be
|
|
1581
|
+
* rendered
|
|
1582
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
1583
|
+
* the first render cycle
|
|
1584
|
+
*/
|
|
1375
1585
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
1376
|
-
|
|
1586
|
+
var _a;
|
|
1377
1587
|
const elm = hostRef.$hostElement$;
|
|
1378
1588
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
1379
1589
|
const rc = elm['s-rc'];
|
|
@@ -1383,7 +1593,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1383
1593
|
}
|
|
1384
1594
|
const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
|
|
1385
1595
|
{
|
|
1386
|
-
callRender(hostRef, instance);
|
|
1596
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
1387
1597
|
}
|
|
1388
1598
|
if (rc) {
|
|
1389
1599
|
// ok, so turns out there are some child host elements
|
|
@@ -1395,7 +1605,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1395
1605
|
endRender();
|
|
1396
1606
|
endUpdate();
|
|
1397
1607
|
{
|
|
1398
|
-
const childrenPromises = elm['s-p'];
|
|
1608
|
+
const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
|
|
1399
1609
|
const postUpdate = () => postUpdateComponent(hostRef);
|
|
1400
1610
|
if (childrenPromises.length === 0) {
|
|
1401
1611
|
postUpdate();
|
|
@@ -1407,8 +1617,24 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1407
1617
|
}
|
|
1408
1618
|
}
|
|
1409
1619
|
};
|
|
1410
|
-
|
|
1620
|
+
/**
|
|
1621
|
+
* Handle making the call to the VDom renderer with the proper context given
|
|
1622
|
+
* various build variables
|
|
1623
|
+
*
|
|
1624
|
+
* @param hostRef an object containing references to the element's host node,
|
|
1625
|
+
* VDom nodes, and other metadata
|
|
1626
|
+
* @param instance a reference to the underlying host element where it will be
|
|
1627
|
+
* rendered
|
|
1628
|
+
* @param elm the Host element for the component
|
|
1629
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
1630
|
+
* @returns an empty promise
|
|
1631
|
+
*/
|
|
1632
|
+
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
1411
1633
|
try {
|
|
1634
|
+
/**
|
|
1635
|
+
* minification optimization: `allRenderFn` is `true` if all components have a `render`
|
|
1636
|
+
* method, so we can call the method immediately. If not, check before calling it.
|
|
1637
|
+
*/
|
|
1412
1638
|
instance = instance.render() ;
|
|
1413
1639
|
{
|
|
1414
1640
|
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
@@ -1422,7 +1648,7 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
1422
1648
|
// or we need to update the css class/attrs on the host element
|
|
1423
1649
|
// DOM WRITE!
|
|
1424
1650
|
{
|
|
1425
|
-
renderVdom(hostRef, instance);
|
|
1651
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
1426
1652
|
}
|
|
1427
1653
|
}
|
|
1428
1654
|
}
|
|
@@ -1491,6 +1717,16 @@ const appDidLoad = (who) => {
|
|
|
1491
1717
|
}
|
|
1492
1718
|
nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
|
|
1493
1719
|
};
|
|
1720
|
+
/**
|
|
1721
|
+
* Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
|
|
1722
|
+
* e.g. custom element node. If a build figures out that e.g. no component
|
|
1723
|
+
* has a `componentDidLoad` method, the instance method gets removed from the
|
|
1724
|
+
* output bundle and this function returns `undefined`.
|
|
1725
|
+
* @param instance any object that may or may not contain methods
|
|
1726
|
+
* @param method method name
|
|
1727
|
+
* @param arg single arbitrary argument
|
|
1728
|
+
* @returns result of method call if it exists, otherwise `undefined`
|
|
1729
|
+
*/
|
|
1494
1730
|
const safeCall = (instance, method, arg) => {
|
|
1495
1731
|
if (instance && instance[method]) {
|
|
1496
1732
|
try {
|
|
@@ -1502,9 +1738,6 @@ const safeCall = (instance, method, arg) => {
|
|
|
1502
1738
|
}
|
|
1503
1739
|
return undefined;
|
|
1504
1740
|
};
|
|
1505
|
-
const then = (promise, thenFn) => {
|
|
1506
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1507
|
-
};
|
|
1508
1741
|
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1509
1742
|
;
|
|
1510
1743
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
@@ -1561,13 +1794,14 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1561
1794
|
* @returns a reference to the same constructor passed in (but now mutated)
|
|
1562
1795
|
*/
|
|
1563
1796
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1797
|
+
var _a;
|
|
1798
|
+
const prototype = Cstr.prototype;
|
|
1564
1799
|
if (cmpMeta.$members$) {
|
|
1565
1800
|
if (Cstr.watchers) {
|
|
1566
1801
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1567
1802
|
}
|
|
1568
1803
|
// It's better to have a const than two Object.entries()
|
|
1569
1804
|
const members = Object.entries(cmpMeta.$members$);
|
|
1570
|
-
const prototype = Cstr.prototype;
|
|
1571
1805
|
members.map(([memberName, [memberFlags]]) => {
|
|
1572
1806
|
if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
|
|
1573
1807
|
((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
|
|
@@ -1590,16 +1824,18 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1590
1824
|
// proxyComponent - method
|
|
1591
1825
|
Object.defineProperty(prototype, memberName, {
|
|
1592
1826
|
value(...args) {
|
|
1827
|
+
var _a;
|
|
1593
1828
|
const ref = getHostRef(this);
|
|
1594
|
-
return ref.$onInstancePromise
|
|
1829
|
+
return (_a = ref === null || ref === void 0 ? void 0 : ref.$onInstancePromise$) === null || _a === void 0 ? void 0 : _a.then(() => { var _a; return (_a = ref.$lazyInstance$) === null || _a === void 0 ? void 0 : _a[memberName](...args); });
|
|
1595
1830
|
},
|
|
1596
1831
|
});
|
|
1597
1832
|
}
|
|
1598
1833
|
});
|
|
1599
1834
|
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
1600
1835
|
const attrNameToPropName = new Map();
|
|
1601
|
-
prototype.attributeChangedCallback = function (attrName,
|
|
1836
|
+
prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
|
|
1602
1837
|
plt.jmp(() => {
|
|
1838
|
+
var _a;
|
|
1603
1839
|
const propName = attrNameToPropName.get(attrName);
|
|
1604
1840
|
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
1605
1841
|
// in the case where an attribute was set inline.
|
|
@@ -1621,12 +1857,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1621
1857
|
// customElements.define('my-component', MyComponent);
|
|
1622
1858
|
// </script>
|
|
1623
1859
|
// ```
|
|
1624
|
-
// In this case if we do not
|
|
1860
|
+
// In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1625
1861
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1626
1862
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1627
|
-
// the connectedCallback attempts to
|
|
1863
|
+
// the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
|
|
1628
1864
|
//
|
|
1629
|
-
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/
|
|
1865
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
|
|
1630
1866
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1631
1867
|
//
|
|
1632
1868
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
@@ -1646,31 +1882,72 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1646
1882
|
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1647
1883
|
return;
|
|
1648
1884
|
}
|
|
1885
|
+
else if (propName == null) {
|
|
1886
|
+
// At this point we should know this is not a "member", so we can treat it like watching an attribute
|
|
1887
|
+
// on a vanilla web component
|
|
1888
|
+
const hostRef = getHostRef(this);
|
|
1889
|
+
const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
|
|
1890
|
+
// We only want to trigger the callback(s) if:
|
|
1891
|
+
// 1. The instance is ready
|
|
1892
|
+
// 2. The watchers are ready
|
|
1893
|
+
// 3. The value has changed
|
|
1894
|
+
if (flags &&
|
|
1895
|
+
!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
|
|
1896
|
+
flags & 128 /* HOST_FLAGS.isWatchReady */ &&
|
|
1897
|
+
newValue !== oldValue) {
|
|
1898
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1899
|
+
const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
|
|
1900
|
+
entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
|
|
1901
|
+
if (instance[callbackName] != null) {
|
|
1902
|
+
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
|
1903
|
+
}
|
|
1904
|
+
});
|
|
1905
|
+
}
|
|
1906
|
+
return;
|
|
1907
|
+
}
|
|
1649
1908
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1650
1909
|
});
|
|
1651
1910
|
};
|
|
1652
|
-
//
|
|
1653
|
-
//
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1911
|
+
// Create an array of attributes to observe
|
|
1912
|
+
// This list in comprised of all strings used within a `@Watch()` decorator
|
|
1913
|
+
// on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
|
|
1914
|
+
// As such, there is no way to guarantee type-safety here that a user hasn't entered
|
|
1915
|
+
// an invalid attribute.
|
|
1916
|
+
Cstr.observedAttributes = Array.from(new Set([
|
|
1917
|
+
...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
|
|
1918
|
+
...members
|
|
1919
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
|
|
1920
|
+
.map(([propName, m]) => {
|
|
1921
|
+
var _a;
|
|
1922
|
+
const attrName = m[1] || propName;
|
|
1923
|
+
attrNameToPropName.set(attrName, propName);
|
|
1924
|
+
if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
|
|
1925
|
+
(_a = cmpMeta.$attrsToReflect$) === null || _a === void 0 ? void 0 : _a.push([propName, attrName]);
|
|
1926
|
+
}
|
|
1927
|
+
return attrName;
|
|
1928
|
+
}),
|
|
1929
|
+
]));
|
|
1664
1930
|
}
|
|
1665
1931
|
}
|
|
1666
1932
|
return Cstr;
|
|
1667
1933
|
};
|
|
1668
|
-
|
|
1934
|
+
/**
|
|
1935
|
+
* Initialize a Stencil component given a reference to its host element, its
|
|
1936
|
+
* runtime bookkeeping data structure, runtime metadata about the component,
|
|
1937
|
+
* and (optionally) an HMR version ID.
|
|
1938
|
+
*
|
|
1939
|
+
* @param elm a host element
|
|
1940
|
+
* @param hostRef the element's runtime bookkeeping object
|
|
1941
|
+
* @param cmpMeta runtime metadata for the Stencil component
|
|
1942
|
+
* @param hmrVersionId an (optional) HMR version ID
|
|
1943
|
+
*/
|
|
1944
|
+
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1945
|
+
let Cstr;
|
|
1669
1946
|
// initializeComponent
|
|
1670
1947
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1948
|
+
// Let the runtime know that the component has been initialized
|
|
1949
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1671
1950
|
{
|
|
1672
|
-
// we haven't initialized this element yet
|
|
1673
|
-
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1674
1951
|
// lazy loaded components
|
|
1675
1952
|
// request the component's implementation to be
|
|
1676
1953
|
// wired up with the host element
|
|
@@ -1762,7 +2039,7 @@ const connectedCallback = (elm) => {
|
|
|
1762
2039
|
// if the slot polyfill is required we'll need to put some nodes
|
|
1763
2040
|
// in here to act as original content anchors as we move nodes around
|
|
1764
2041
|
// host element has been connected to the DOM
|
|
1765
|
-
if ((// TODO(STENCIL-
|
|
2042
|
+
if ((// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
1766
2043
|
cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
|
|
1767
2044
|
setContentReference(elm);
|
|
1768
2045
|
}
|
|
@@ -1803,7 +2080,12 @@ const connectedCallback = (elm) => {
|
|
|
1803
2080
|
// since they would have been removed when disconnected
|
|
1804
2081
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1805
2082
|
// fire off connectedCallback() on component instance
|
|
1806
|
-
|
|
2083
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
|
|
2084
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
2085
|
+
}
|
|
2086
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
2087
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
2088
|
+
}
|
|
1807
2089
|
}
|
|
1808
2090
|
endConnected();
|
|
1809
2091
|
}
|
|
@@ -1819,18 +2101,25 @@ const setContentReference = (elm) => {
|
|
|
1819
2101
|
contentRefElm['s-cn'] = true;
|
|
1820
2102
|
elm.insertBefore(contentRefElm, elm.firstChild);
|
|
1821
2103
|
};
|
|
1822
|
-
const
|
|
2104
|
+
const disconnectInstance = (instance) => {
|
|
2105
|
+
{
|
|
2106
|
+
safeCall(instance, 'disconnectedCallback');
|
|
2107
|
+
}
|
|
2108
|
+
};
|
|
2109
|
+
const disconnectedCallback = async (elm) => {
|
|
1823
2110
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1824
2111
|
const hostRef = getHostRef(elm);
|
|
1825
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1826
2112
|
{
|
|
1827
2113
|
if (hostRef.$rmListeners$) {
|
|
1828
2114
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1829
2115
|
hostRef.$rmListeners$ = undefined;
|
|
1830
2116
|
}
|
|
1831
2117
|
}
|
|
1832
|
-
{
|
|
1833
|
-
|
|
2118
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
|
|
2119
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
2120
|
+
}
|
|
2121
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
2122
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1834
2123
|
}
|
|
1835
2124
|
}
|
|
1836
2125
|
};
|
|
@@ -1842,20 +2131,27 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1842
2131
|
const customElements = win.customElements;
|
|
1843
2132
|
const head = doc.head;
|
|
1844
2133
|
const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
|
|
1845
|
-
const
|
|
2134
|
+
const dataStyles = /*@__PURE__*/ doc.createElement('style');
|
|
1846
2135
|
const deferredConnectedCallbacks = [];
|
|
1847
2136
|
let appLoadFallback;
|
|
1848
2137
|
let isBootstrapping = true;
|
|
1849
2138
|
Object.assign(plt, options);
|
|
1850
2139
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
2140
|
+
let hasSlotRelocation = false;
|
|
1851
2141
|
lazyBundles.map((lazyBundle) => {
|
|
1852
2142
|
lazyBundle[1].map((compactMeta) => {
|
|
2143
|
+
var _a;
|
|
1853
2144
|
const cmpMeta = {
|
|
1854
2145
|
$flags$: compactMeta[0],
|
|
1855
2146
|
$tagName$: compactMeta[1],
|
|
1856
2147
|
$members$: compactMeta[2],
|
|
1857
2148
|
$listeners$: compactMeta[3],
|
|
1858
2149
|
};
|
|
2150
|
+
// Check if we are using slots outside the shadow DOM in this component.
|
|
2151
|
+
// We'll use this information later to add styles for `slot-fb` elements
|
|
2152
|
+
if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
|
|
2153
|
+
hasSlotRelocation = true;
|
|
2154
|
+
}
|
|
1859
2155
|
{
|
|
1860
2156
|
cmpMeta.$members$ = compactMeta[2];
|
|
1861
2157
|
}
|
|
@@ -1866,7 +2162,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1866
2162
|
cmpMeta.$attrsToReflect$ = [];
|
|
1867
2163
|
}
|
|
1868
2164
|
{
|
|
1869
|
-
cmpMeta.$watchers$ = {};
|
|
2165
|
+
cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
|
|
1870
2166
|
}
|
|
1871
2167
|
const tagName = cmpMeta.$tagName$;
|
|
1872
2168
|
const HostElement = class extends HTMLElement {
|
|
@@ -1915,15 +2211,23 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1915
2211
|
}
|
|
1916
2212
|
});
|
|
1917
2213
|
});
|
|
2214
|
+
// Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
|
|
2215
|
+
if (hasSlotRelocation) {
|
|
2216
|
+
dataStyles.innerHTML += SLOT_FB_CSS;
|
|
2217
|
+
}
|
|
2218
|
+
// Add hydration styles
|
|
1918
2219
|
{
|
|
1919
|
-
|
|
1920
|
-
|
|
2220
|
+
dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
|
|
2221
|
+
}
|
|
2222
|
+
// If we have styles, add them to the DOM
|
|
2223
|
+
if (dataStyles.innerHTML.length) {
|
|
2224
|
+
dataStyles.setAttribute('data-styles', '');
|
|
2225
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1921
2226
|
// Apply CSP nonce to the style tag if it exists
|
|
1922
2227
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1923
2228
|
if (nonce != null) {
|
|
1924
|
-
|
|
2229
|
+
dataStyles.setAttribute('nonce', nonce);
|
|
1925
2230
|
}
|
|
1926
|
-
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1927
2231
|
}
|
|
1928
2232
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1929
2233
|
isBootstrapping = false;
|
|
@@ -1979,13 +2283,40 @@ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !==
|
|
|
1979
2283
|
* @returns void
|
|
1980
2284
|
*/
|
|
1981
2285
|
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
2286
|
+
/**
|
|
2287
|
+
* A WeakMap mapping runtime component references to their corresponding host reference
|
|
2288
|
+
* instances.
|
|
2289
|
+
*/
|
|
1982
2290
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
2291
|
+
/**
|
|
2292
|
+
* Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
|
|
2293
|
+
*
|
|
2294
|
+
* @param ref the runtime ref of interest
|
|
2295
|
+
* @returns the Host reference (if found) or undefined
|
|
2296
|
+
*/
|
|
1983
2297
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
2298
|
+
/**
|
|
2299
|
+
* Register a lazy instance with the {@link hostRefs} object so it's
|
|
2300
|
+
* corresponding {@link d.HostRef} can be retrieved later.
|
|
2301
|
+
*
|
|
2302
|
+
* @param lazyInstance the lazy instance of interest
|
|
2303
|
+
* @param hostRef that instances `HostRef` object
|
|
2304
|
+
* @returns a reference to the host ref WeakMap
|
|
2305
|
+
*/
|
|
1984
2306
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
1985
|
-
|
|
2307
|
+
/**
|
|
2308
|
+
* Register a host element for a Stencil component, setting up various metadata
|
|
2309
|
+
* and callbacks based on {@link BUILD} flags as well as the component's runtime
|
|
2310
|
+
* metadata.
|
|
2311
|
+
*
|
|
2312
|
+
* @param hostElement the host element to register
|
|
2313
|
+
* @param cmpMeta runtime metadata for that component
|
|
2314
|
+
* @returns a reference to the host ref WeakMap
|
|
2315
|
+
*/
|
|
2316
|
+
const registerHost = (hostElement, cmpMeta) => {
|
|
1986
2317
|
const hostRef = {
|
|
1987
2318
|
$flags$: 0,
|
|
1988
|
-
$hostElement$:
|
|
2319
|
+
$hostElement$: hostElement,
|
|
1989
2320
|
$cmpMeta$: cmpMeta,
|
|
1990
2321
|
$instanceValues$: new Map(),
|
|
1991
2322
|
};
|
|
@@ -1994,11 +2325,11 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1994
2325
|
}
|
|
1995
2326
|
{
|
|
1996
2327
|
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1997
|
-
|
|
1998
|
-
|
|
2328
|
+
hostElement['s-p'] = [];
|
|
2329
|
+
hostElement['s-rc'] = [];
|
|
1999
2330
|
}
|
|
2000
|
-
addHostEventListeners(
|
|
2001
|
-
return hostRefs.set(
|
|
2331
|
+
addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
|
|
2332
|
+
return hostRefs.set(hostElement, hostRef);
|
|
2002
2333
|
};
|
|
2003
2334
|
const isMemberInElement = (elm, memberName) => memberName in elm;
|
|
2004
2335
|
const consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -2011,7 +2342,220 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2011
2342
|
if (module) {
|
|
2012
2343
|
return module[exportName];
|
|
2013
2344
|
}
|
|
2014
|
-
|
|
2345
|
+
|
|
2346
|
+
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
2347
|
+
const processMod = importedModule => {
|
|
2348
|
+
cmpModules.set(bundleId, importedModule);
|
|
2349
|
+
return importedModule[exportName];
|
|
2350
|
+
}
|
|
2351
|
+
switch(bundleId) {
|
|
2352
|
+
|
|
2353
|
+
case 'six-alert':
|
|
2354
|
+
return import(
|
|
2355
|
+
/* webpackMode: "lazy" */
|
|
2356
|
+
'./six-alert.entry.js').then(processMod, consoleError);
|
|
2357
|
+
case 'six-avatar':
|
|
2358
|
+
return import(
|
|
2359
|
+
/* webpackMode: "lazy" */
|
|
2360
|
+
'./six-avatar.entry.js').then(processMod, consoleError);
|
|
2361
|
+
case 'six-badge':
|
|
2362
|
+
return import(
|
|
2363
|
+
/* webpackMode: "lazy" */
|
|
2364
|
+
'./six-badge.entry.js').then(processMod, consoleError);
|
|
2365
|
+
case 'six-button':
|
|
2366
|
+
return import(
|
|
2367
|
+
/* webpackMode: "lazy" */
|
|
2368
|
+
'./six-button.entry.js').then(processMod, consoleError);
|
|
2369
|
+
case 'six-card':
|
|
2370
|
+
return import(
|
|
2371
|
+
/* webpackMode: "lazy" */
|
|
2372
|
+
'./six-card.entry.js').then(processMod, consoleError);
|
|
2373
|
+
case 'six-checkbox':
|
|
2374
|
+
return import(
|
|
2375
|
+
/* webpackMode: "lazy" */
|
|
2376
|
+
'./six-checkbox.entry.js').then(processMod, consoleError);
|
|
2377
|
+
case 'six-datepicker':
|
|
2378
|
+
return import(
|
|
2379
|
+
/* webpackMode: "lazy" */
|
|
2380
|
+
'./six-datepicker.entry.js').then(processMod, consoleError);
|
|
2381
|
+
case 'six-dialog':
|
|
2382
|
+
return import(
|
|
2383
|
+
/* webpackMode: "lazy" */
|
|
2384
|
+
'./six-dialog.entry.js').then(processMod, consoleError);
|
|
2385
|
+
case 'six-drawer':
|
|
2386
|
+
return import(
|
|
2387
|
+
/* webpackMode: "lazy" */
|
|
2388
|
+
'./six-drawer.entry.js').then(processMod, consoleError);
|
|
2389
|
+
case 'six-error-page':
|
|
2390
|
+
return import(
|
|
2391
|
+
/* webpackMode: "lazy" */
|
|
2392
|
+
'./six-error-page.entry.js').then(processMod, consoleError);
|
|
2393
|
+
case 'six-file-list':
|
|
2394
|
+
return import(
|
|
2395
|
+
/* webpackMode: "lazy" */
|
|
2396
|
+
'./six-file-list.entry.js').then(processMod, consoleError);
|
|
2397
|
+
case 'six-file-list-item':
|
|
2398
|
+
return import(
|
|
2399
|
+
/* webpackMode: "lazy" */
|
|
2400
|
+
'./six-file-list-item.entry.js').then(processMod, consoleError);
|
|
2401
|
+
case 'six-file-upload':
|
|
2402
|
+
return import(
|
|
2403
|
+
/* webpackMode: "lazy" */
|
|
2404
|
+
'./six-file-upload.entry.js').then(processMod, consoleError);
|
|
2405
|
+
case 'six-footer':
|
|
2406
|
+
return import(
|
|
2407
|
+
/* webpackMode: "lazy" */
|
|
2408
|
+
'./six-footer.entry.js').then(processMod, consoleError);
|
|
2409
|
+
case 'six-group-label':
|
|
2410
|
+
return import(
|
|
2411
|
+
/* webpackMode: "lazy" */
|
|
2412
|
+
'./six-group-label.entry.js').then(processMod, consoleError);
|
|
2413
|
+
case 'six-header':
|
|
2414
|
+
return import(
|
|
2415
|
+
/* webpackMode: "lazy" */
|
|
2416
|
+
'./six-header.entry.js').then(processMod, consoleError);
|
|
2417
|
+
case 'six-language-switcher':
|
|
2418
|
+
return import(
|
|
2419
|
+
/* webpackMode: "lazy" */
|
|
2420
|
+
'./six-language-switcher.entry.js').then(processMod, consoleError);
|
|
2421
|
+
case 'six-layout-grid':
|
|
2422
|
+
return import(
|
|
2423
|
+
/* webpackMode: "lazy" */
|
|
2424
|
+
'./six-layout-grid.entry.js').then(processMod, consoleError);
|
|
2425
|
+
case 'six-main-container':
|
|
2426
|
+
return import(
|
|
2427
|
+
/* webpackMode: "lazy" */
|
|
2428
|
+
'./six-main-container.entry.js').then(processMod, consoleError);
|
|
2429
|
+
case 'six-menu-divider':
|
|
2430
|
+
return import(
|
|
2431
|
+
/* webpackMode: "lazy" */
|
|
2432
|
+
'./six-menu-divider.entry.js').then(processMod, consoleError);
|
|
2433
|
+
case 'six-menu-label':
|
|
2434
|
+
return import(
|
|
2435
|
+
/* webpackMode: "lazy" */
|
|
2436
|
+
'./six-menu-label.entry.js').then(processMod, consoleError);
|
|
2437
|
+
case 'six-progress-bar':
|
|
2438
|
+
return import(
|
|
2439
|
+
/* webpackMode: "lazy" */
|
|
2440
|
+
'./six-progress-bar.entry.js').then(processMod, consoleError);
|
|
2441
|
+
case 'six-progress-ring':
|
|
2442
|
+
return import(
|
|
2443
|
+
/* webpackMode: "lazy" */
|
|
2444
|
+
'./six-progress-ring.entry.js').then(processMod, consoleError);
|
|
2445
|
+
case 'six-radio':
|
|
2446
|
+
return import(
|
|
2447
|
+
/* webpackMode: "lazy" */
|
|
2448
|
+
'./six-radio.entry.js').then(processMod, consoleError);
|
|
2449
|
+
case 'six-range':
|
|
2450
|
+
return import(
|
|
2451
|
+
/* webpackMode: "lazy" */
|
|
2452
|
+
'./six-range.entry.js').then(processMod, consoleError);
|
|
2453
|
+
case 'six-root':
|
|
2454
|
+
return import(
|
|
2455
|
+
/* webpackMode: "lazy" */
|
|
2456
|
+
'./six-root.entry.js').then(processMod, consoleError);
|
|
2457
|
+
case 'six-search-field':
|
|
2458
|
+
return import(
|
|
2459
|
+
/* webpackMode: "lazy" */
|
|
2460
|
+
'./six-search-field.entry.js').then(processMod, consoleError);
|
|
2461
|
+
case 'six-select':
|
|
2462
|
+
return import(
|
|
2463
|
+
/* webpackMode: "lazy" */
|
|
2464
|
+
'./six-select.entry.js').then(processMod, consoleError);
|
|
2465
|
+
case 'six-sidebar':
|
|
2466
|
+
return import(
|
|
2467
|
+
/* webpackMode: "lazy" */
|
|
2468
|
+
'./six-sidebar.entry.js').then(processMod, consoleError);
|
|
2469
|
+
case 'six-sidebar-item':
|
|
2470
|
+
return import(
|
|
2471
|
+
/* webpackMode: "lazy" */
|
|
2472
|
+
'./six-sidebar-item.entry.js').then(processMod, consoleError);
|
|
2473
|
+
case 'six-sidebar-item-group':
|
|
2474
|
+
return import(
|
|
2475
|
+
/* webpackMode: "lazy" */
|
|
2476
|
+
'./six-sidebar-item-group.entry.js').then(processMod, consoleError);
|
|
2477
|
+
case 'six-switch':
|
|
2478
|
+
return import(
|
|
2479
|
+
/* webpackMode: "lazy" */
|
|
2480
|
+
'./six-switch.entry.js').then(processMod, consoleError);
|
|
2481
|
+
case 'six-tab':
|
|
2482
|
+
return import(
|
|
2483
|
+
/* webpackMode: "lazy" */
|
|
2484
|
+
'./six-tab.entry.js').then(processMod, consoleError);
|
|
2485
|
+
case 'six-tab-group':
|
|
2486
|
+
return import(
|
|
2487
|
+
/* webpackMode: "lazy" */
|
|
2488
|
+
'./six-tab-group.entry.js').then(processMod, consoleError);
|
|
2489
|
+
case 'six-tab-panel':
|
|
2490
|
+
return import(
|
|
2491
|
+
/* webpackMode: "lazy" */
|
|
2492
|
+
'./six-tab-panel.entry.js').then(processMod, consoleError);
|
|
2493
|
+
case 'six-textarea':
|
|
2494
|
+
return import(
|
|
2495
|
+
/* webpackMode: "lazy" */
|
|
2496
|
+
'./six-textarea.entry.js').then(processMod, consoleError);
|
|
2497
|
+
case 'six-tile':
|
|
2498
|
+
return import(
|
|
2499
|
+
/* webpackMode: "lazy" */
|
|
2500
|
+
'./six-tile.entry.js').then(processMod, consoleError);
|
|
2501
|
+
case 'set-attributes_2':
|
|
2502
|
+
return import(
|
|
2503
|
+
/* webpackMode: "lazy" */
|
|
2504
|
+
'./set-attributes_2.entry.js').then(processMod, consoleError);
|
|
2505
|
+
case 'six-details':
|
|
2506
|
+
return import(
|
|
2507
|
+
/* webpackMode: "lazy" */
|
|
2508
|
+
'./six-details.entry.js').then(processMod, consoleError);
|
|
2509
|
+
case 'six-picto':
|
|
2510
|
+
return import(
|
|
2511
|
+
/* webpackMode: "lazy" */
|
|
2512
|
+
'./six-picto.entry.js').then(processMod, consoleError);
|
|
2513
|
+
case 'six-spinner':
|
|
2514
|
+
return import(
|
|
2515
|
+
/* webpackMode: "lazy" */
|
|
2516
|
+
'./six-spinner.entry.js').then(processMod, consoleError);
|
|
2517
|
+
case 'six-tag':
|
|
2518
|
+
return import(
|
|
2519
|
+
/* webpackMode: "lazy" */
|
|
2520
|
+
'./six-tag.entry.js').then(processMod, consoleError);
|
|
2521
|
+
case 'six-timepicker':
|
|
2522
|
+
return import(
|
|
2523
|
+
/* webpackMode: "lazy" */
|
|
2524
|
+
'./six-timepicker.entry.js').then(processMod, consoleError);
|
|
2525
|
+
case 'six-dropdown_2':
|
|
2526
|
+
return import(
|
|
2527
|
+
/* webpackMode: "lazy" */
|
|
2528
|
+
'./six-dropdown_2.entry.js').then(processMod, consoleError);
|
|
2529
|
+
case 'six-item-picker':
|
|
2530
|
+
return import(
|
|
2531
|
+
/* webpackMode: "lazy" */
|
|
2532
|
+
'./six-item-picker.entry.js').then(processMod, consoleError);
|
|
2533
|
+
case 'six-tooltip':
|
|
2534
|
+
return import(
|
|
2535
|
+
/* webpackMode: "lazy" */
|
|
2536
|
+
'./six-tooltip.entry.js').then(processMod, consoleError);
|
|
2537
|
+
case 'six-menu-item':
|
|
2538
|
+
return import(
|
|
2539
|
+
/* webpackMode: "lazy" */
|
|
2540
|
+
'./six-menu-item.entry.js').then(processMod, consoleError);
|
|
2541
|
+
case 'six-input':
|
|
2542
|
+
return import(
|
|
2543
|
+
/* webpackMode: "lazy" */
|
|
2544
|
+
'./six-input.entry.js').then(processMod, consoleError);
|
|
2545
|
+
case 'six-icon-button':
|
|
2546
|
+
return import(
|
|
2547
|
+
/* webpackMode: "lazy" */
|
|
2548
|
+
'./six-icon-button.entry.js').then(processMod, consoleError);
|
|
2549
|
+
case 'six-error':
|
|
2550
|
+
return import(
|
|
2551
|
+
/* webpackMode: "lazy" */
|
|
2552
|
+
'./six-error.entry.js').then(processMod, consoleError);
|
|
2553
|
+
case 'six-icon':
|
|
2554
|
+
return import(
|
|
2555
|
+
/* webpackMode: "lazy" */
|
|
2556
|
+
'./six-icon.entry.js').then(processMod, consoleError);
|
|
2557
|
+
}
|
|
2558
|
+
}
|
|
2015
2559
|
return import(
|
|
2016
2560
|
/* @vite-ignore */
|
|
2017
2561
|
/* webpackInclude: /\.entry\.js$/ */
|
|
@@ -2086,9 +2630,9 @@ const flush = () => {
|
|
|
2086
2630
|
}
|
|
2087
2631
|
}
|
|
2088
2632
|
};
|
|
2089
|
-
const nextTick =
|
|
2633
|
+
const nextTick = (cb) => promiseResolve().then(cb);
|
|
2090
2634
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
2091
2635
|
|
|
2092
2636
|
export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
2093
2637
|
|
|
2094
|
-
//# sourceMappingURL=index-
|
|
2638
|
+
//# sourceMappingURL=index-17d8173e.js.map
|