@six-group/ui-library 0.0.0-insider.b2db78f → 0.0.0-insider.b42b8b1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/animation-ZgWV0fC6.js +54 -0
- package/dist/cjs/animation-ZgWV0fC6.js.map +1 -0
- package/dist/cjs/{form-control-BHd-Z4ot.js → form-control-CX8QRq9v.js} +5 -5
- package/dist/cjs/form-control-CX8QRq9v.js.map +1 -0
- package/dist/cjs/{index-B_stPhJp.js → index-C8rK7OAe.js} +38 -8
- package/dist/cjs/index-C8rK7OAe.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/six-alert.cjs.entry.js +1 -1
- package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/six-alert.entry.cjs.js.map +1 -1
- package/dist/cjs/six-avatar.cjs.entry.js +3 -3
- package/dist/cjs/six-badge.cjs.entry.js +3 -3
- package/dist/cjs/six-button.cjs.entry.js +3 -3
- package/dist/cjs/six-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-button.entry.cjs.js.map +1 -1
- package/dist/cjs/six-card.cjs.entry.js +2 -2
- package/dist/cjs/six-checkbox.six-menu-item.entry.cjs.js.map +1 -1
- package/dist/cjs/six-checkbox_2.cjs.entry.js +4 -4
- package/dist/cjs/six-checkbox_2.cjs.entry.js.map +1 -1
- package/dist/cjs/six-date.cjs.entry.js +24 -22
- package/dist/cjs/six-date.cjs.entry.js.map +1 -1
- package/dist/cjs/six-date.entry.cjs.js.map +1 -1
- package/dist/cjs/six-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-datepicker.entry.cjs.js.map +1 -1
- package/dist/cjs/six-details.cjs.entry.js +4 -4
- package/dist/cjs/six-dialog.cjs.entry.js +16 -10
- package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/six-dialog.entry.cjs.js.map +1 -1
- package/dist/cjs/six-drawer.cjs.entry.js +16 -10
- package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/six-drawer.entry.cjs.js.map +1 -1
- package/dist/cjs/six-dropdown.six-menu.entry.cjs.js.map +1 -1
- package/dist/cjs/six-dropdown_2.cjs.entry.js +8 -8
- package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/six-error-page.cjs.entry.js +1 -1
- package/dist/cjs/six-error.cjs.entry.js +1 -1
- package/dist/cjs/six-file-list-item.cjs.entry.js +3 -3
- package/dist/cjs/six-file-list.cjs.entry.js +1 -1
- package/dist/cjs/six-file-upload.cjs.entry.js +14 -10
- package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/six-file-upload.entry.cjs.js.map +1 -1
- package/dist/cjs/six-footer.cjs.entry.js +1 -1
- package/dist/cjs/six-group-label.cjs.entry.js +2 -2
- package/dist/cjs/six-header-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/six-header-item.cjs.entry.js +1 -1
- package/dist/cjs/six-header-menu-button.cjs.entry.js +1 -1
- package/dist/cjs/six-header.cjs.entry.js +1 -1
- package/dist/cjs/six-header.cjs.entry.js.map +1 -1
- package/dist/cjs/six-header.entry.cjs.js.map +1 -1
- package/dist/cjs/six-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/six-icon.cjs.entry.js +1 -1
- package/dist/cjs/six-input.cjs.entry.js +5 -5
- package/dist/cjs/six-input.cjs.entry.js.map +1 -1
- package/dist/cjs/six-input.entry.cjs.js.map +1 -1
- package/dist/cjs/six-item-picker.cjs.entry.js +1 -1
- package/dist/cjs/six-language-switcher.cjs.entry.js +2 -2
- package/dist/cjs/six-layout-grid.cjs.entry.js +1 -1
- package/dist/cjs/six-logo.cjs.entry.js +1 -1
- package/dist/cjs/six-main-container.cjs.entry.js +1 -1
- package/dist/cjs/six-menu-divider.cjs.entry.js +1 -1
- package/dist/cjs/six-menu-label.cjs.entry.js +1 -1
- package/dist/cjs/six-picto.cjs.entry.js +7 -23
- package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
- package/dist/cjs/six-picto.entry.cjs.js.map +1 -1
- package/dist/cjs/six-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-progress-bar.entry.cjs.js.map +1 -1
- package/dist/cjs/six-progress-ring.cjs.entry.js +1 -1
- package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
- package/dist/cjs/six-progress-ring.entry.cjs.js.map +1 -1
- package/dist/cjs/six-radio.cjs.entry.js +1 -1
- package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/six-radio.entry.cjs.js.map +1 -1
- package/dist/cjs/six-range.cjs.entry.js +2 -2
- package/dist/cjs/six-range.cjs.entry.js.map +1 -1
- package/dist/cjs/six-range.entry.cjs.js.map +1 -1
- package/dist/cjs/six-root.cjs.entry.js +1 -1
- package/dist/cjs/six-search-field.cjs.entry.js +2 -2
- package/dist/cjs/six-select.cjs.entry.js +17 -9
- package/dist/cjs/six-select.cjs.entry.js.map +1 -1
- package/dist/cjs/six-select.entry.cjs.js.map +1 -1
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js +1 -1
- package/dist/cjs/six-sidebar-item.cjs.entry.js +1 -1
- package/dist/cjs/six-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/six-spinner.cjs.entry.js +1 -1
- package/dist/cjs/six-stage-indicator.cjs.entry.js +1 -1
- package/dist/cjs/six-switch.cjs.entry.js +2 -2
- package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/six-switch.entry.cjs.js.map +1 -1
- package/dist/cjs/six-tab-group.cjs.entry.js +5 -38
- package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab-group.entry.cjs.js.map +1 -1
- package/dist/cjs/six-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/six-tab.cjs.entry.js +4 -4
- package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab.entry.cjs.js.map +1 -1
- package/dist/cjs/six-tag.cjs.entry.js +1 -1
- package/dist/cjs/six-textarea.cjs.entry.js +2 -2
- package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/six-textarea.entry.cjs.js.map +1 -1
- package/dist/cjs/six-tile.cjs.entry.js +1 -1
- package/dist/cjs/six-timepicker.cjs.entry.js +1 -1
- package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-timepicker.entry.cjs.js.map +1 -1
- package/dist/cjs/six-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/ui-library.cjs.js +3 -3
- package/dist/cjs/ui-library.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/six-alert/six-alert.js +4 -4
- package/dist/collection/components/six-avatar/six-avatar.js +6 -6
- package/dist/collection/components/six-badge/six-badge.js +5 -5
- package/dist/collection/components/six-button/six-button.js +16 -16
- package/dist/collection/components/six-card/six-card.js +1 -1
- package/dist/collection/components/six-checkbox/six-checkbox.js +12 -12
- package/dist/collection/components/six-date/iso-date.js +2 -2
- package/dist/collection/components/six-date/iso-date.js.map +1 -1
- package/dist/collection/components/six-date/six-date.js +42 -59
- package/dist/collection/components/six-date/six-date.js.map +1 -1
- package/dist/collection/components/six-datepicker/six-datepicker.js +27 -22
- package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
- package/dist/collection/components/six-details/six-details.js +11 -11
- package/dist/collection/components/six-dialog/six-dialog.js +26 -20
- package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
- package/dist/collection/components/six-drawer/six-drawer.js +28 -22
- package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
- package/dist/collection/components/six-dropdown/six-dropdown.js +21 -19
- package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
- package/dist/collection/components/six-error-page/six-error-page.js +5 -4
- package/dist/collection/components/six-error-page/six-error-page.js.map +1 -1
- package/dist/collection/components/six-file-list-item/six-file-list-item.js +8 -8
- package/dist/collection/components/six-file-upload/six-file-upload.js +23 -19
- package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
- package/dist/collection/components/six-group-label/six-group-label.js +5 -5
- package/dist/collection/components/six-header/six-header.js +2 -2
- package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js +2 -2
- package/dist/collection/components/six-header-item/six-header-item.js +1 -1
- package/dist/collection/components/six-header-menu-button/six-header-menu-button.js +5 -5
- package/dist/collection/components/six-icon/six-icon.js +2 -2
- package/dist/collection/components/six-icon-button/six-icon-button.js +8 -8
- package/dist/collection/components/six-input/six-input.js +33 -33
- package/dist/collection/components/six-item-picker/six-item-picker.js +14 -13
- package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -1
- package/dist/collection/components/six-language-switcher/six-language-switcher.js +3 -2
- package/dist/collection/components/six-language-switcher/six-language-switcher.js.map +1 -1
- package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
- package/dist/collection/components/six-logo/six-logo.js +1 -1
- package/dist/collection/components/six-main-container/six-main-container.js +1 -1
- package/dist/collection/components/six-menu/six-menu.js +9 -8
- package/dist/collection/components/six-menu/six-menu.js.map +1 -1
- package/dist/collection/components/six-menu-item/six-menu-item.js +4 -4
- package/dist/collection/components/six-picto/six-picto.css +1193 -0
- package/dist/collection/components/six-picto/six-picto.js +6 -27
- package/dist/collection/components/six-picto/six-picto.js.map +1 -1
- package/dist/collection/components/six-progress-bar/six-progress-bar.js +2 -2
- package/dist/collection/components/six-progress-ring/six-progress-ring.js +3 -3
- package/dist/collection/components/six-radio/six-radio.js +5 -5
- package/dist/collection/components/six-range/six-range.js +14 -13
- package/dist/collection/components/six-range/six-range.js.map +1 -1
- package/dist/collection/components/six-root/six-root.js +3 -3
- package/dist/collection/components/six-search-field/six-search-field.js +6 -6
- package/dist/collection/components/six-select/six-select.js +42 -33
- package/dist/collection/components/six-select/six-select.js.map +1 -1
- package/dist/collection/components/six-sidebar/six-sidebar.js +4 -4
- package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +5 -5
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +6 -6
- package/dist/collection/components/six-spinner/six-spinner.js +2 -2
- package/dist/collection/components/six-stage-indicator/six-stage-indicator.js +1 -1
- package/dist/collection/components/six-switch/six-switch.js +9 -9
- package/dist/collection/components/six-tab/six-tab.css +12 -0
- package/dist/collection/components/six-tab/six-tab.js +6 -6
- package/dist/collection/components/six-tab/six-tab.js.map +1 -1
- package/dist/collection/components/six-tab-group/six-tab-group.js +4 -4
- 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 +2 -2
- package/dist/collection/components/six-tag/six-tag.js +4 -4
- package/dist/collection/components/six-textarea/six-textarea.js +22 -22
- package/dist/collection/components/six-tile/six-tile.js +7 -7
- package/dist/collection/components/six-timepicker/six-timepicker.js +23 -23
- package/dist/collection/components/six-tooltip/six-tooltip.js +7 -7
- package/dist/collection/functional-components/form-control/form-control.js +2 -2
- package/dist/collection/functional-components/form-control/form-control.js.map +1 -1
- package/dist/collection/utils/animation.js +13 -0
- package/dist/collection/utils/animation.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DwZ0ygip.js → p-9aUb96SZ.js} +16 -16
- package/dist/components/p-9aUb96SZ.js.map +1 -0
- package/dist/components/{p-BPj4WRz2.js → p-BB2rei7y.js} +3 -3
- package/dist/components/{p-BPj4WRz2.js.map → p-BB2rei7y.js.map} +1 -1
- package/dist/components/{p-B72cH-mu.js → p-BR2t7cws.js} +5 -5
- package/dist/components/{p-B72cH-mu.js.map → p-BR2t7cws.js.map} +1 -1
- package/dist/components/{p-Bga8smgq.js → p-BSHZAiyG.js} +3 -3
- package/dist/components/{p-Bga8smgq.js.map → p-BSHZAiyG.js.map} +1 -1
- package/dist/components/{p-ByetrMwd.js → p-BUN8hFmL.js} +6 -6
- package/dist/components/p-BUN8hFmL.js.map +1 -0
- package/dist/components/{p-DAOD-npI.js → p-C28WDWgL.js} +6 -6
- package/dist/components/{p-DAOD-npI.js.map → p-C28WDWgL.js.map} +1 -1
- package/dist/components/{p-ltzGzaAu.js → p-CKhg9ibv.js} +3 -3
- package/dist/components/{p-ltzGzaAu.js.map → p-CKhg9ibv.js.map} +1 -1
- package/dist/components/{p-BUw6MZZI.js → p-CSL17OWk.js} +10 -10
- package/dist/components/{p-BUw6MZZI.js.map → p-CSL17OWk.js.map} +1 -1
- package/dist/components/{p-su5lTFPV.js → p-CWKq6Dyt.js} +3 -3
- package/dist/components/{p-su5lTFPV.js.map → p-CWKq6Dyt.js.map} +1 -1
- package/dist/components/{p-C4Shm3wX.js → p-Cfyrva2T.js} +7 -7
- package/dist/components/p-Cfyrva2T.js.map +1 -0
- package/dist/components/{p-CS9Rg27-.js → p-Cosz73fX.js} +4 -4
- package/dist/components/{p-CS9Rg27-.js.map → p-Cosz73fX.js.map} +1 -1
- package/dist/components/{p-C733XVqS.js → p-Cs1jspzx.js} +7 -7
- package/dist/components/{p-C733XVqS.js.map → p-Cs1jspzx.js.map} +1 -1
- package/dist/components/{p-g7aZB0FM.js → p-Cs6mMfx-.js} +3 -3
- package/dist/components/{p-g7aZB0FM.js.map → p-Cs6mMfx-.js.map} +1 -1
- package/dist/components/{p-BAe7gBEi.js → p-D512q9rn.js} +52 -9
- package/dist/components/p-D512q9rn.js.map +1 -0
- package/dist/components/{p-Cc_nfyAl.js → p-DIkvCBxr.js} +5 -5
- package/dist/components/p-DIkvCBxr.js.map +1 -0
- package/dist/components/p-DYlDF9Rw.js +45 -0
- package/dist/components/p-DYlDF9Rw.js.map +1 -0
- package/dist/components/{p-Ce-a0l4Q.js → p-DnLdSdN5.js} +8 -8
- package/dist/components/{p-Ce-a0l4Q.js.map → p-DnLdSdN5.js.map} +1 -1
- package/dist/components/{p-BFrSuO7n.js → p-DsGIkEDB.js} +9 -9
- package/dist/components/p-DsGIkEDB.js.map +1 -0
- package/dist/components/{p-DYN2qwe6.js → p-DyYwMIDQ.js} +4 -4
- package/dist/components/{p-DYN2qwe6.js.map → p-DyYwMIDQ.js.map} +1 -1
- package/dist/components/p-SLlDVtvF.js +51 -0
- package/dist/components/p-SLlDVtvF.js.map +1 -0
- package/dist/components/six-alert.js +3 -3
- package/dist/components/six-alert.js.map +1 -1
- package/dist/components/six-avatar.js +4 -4
- package/dist/components/six-badge.js +3 -3
- package/dist/components/six-button.js +1 -1
- package/dist/components/six-card.js +2 -2
- package/dist/components/six-checkbox.js +1 -1
- package/dist/components/six-date.js +29 -28
- package/dist/components/six-date.js.map +1 -1
- package/dist/components/six-datepicker.js +9 -9
- package/dist/components/six-datepicker.js.map +1 -1
- package/dist/components/six-details.js +1 -1
- package/dist/components/six-dialog.js +18 -12
- package/dist/components/six-dialog.js.map +1 -1
- package/dist/components/six-drawer.js +18 -12
- package/dist/components/six-drawer.js.map +1 -1
- package/dist/components/six-dropdown.js +1 -1
- package/dist/components/six-error-page.js +3 -3
- package/dist/components/six-error.js +1 -1
- package/dist/components/six-file-list-item.js +4 -4
- package/dist/components/six-file-list.js +1 -1
- package/dist/components/six-file-upload.js +17 -13
- package/dist/components/six-file-upload.js.map +1 -1
- package/dist/components/six-footer.js +1 -1
- package/dist/components/six-group-label.js +3 -3
- package/dist/components/six-header-dropdown-item.js +8 -8
- package/dist/components/six-header-item.js +1 -1
- package/dist/components/six-header-menu-button.js +3 -3
- package/dist/components/six-header.js +1 -1
- package/dist/components/six-header.js.map +1 -1
- package/dist/components/six-icon-button.js +1 -1
- package/dist/components/six-icon.js +1 -1
- package/dist/components/six-input.js +1 -1
- package/dist/components/six-item-picker.js +1 -1
- package/dist/components/six-language-switcher.js +2 -2
- package/dist/components/six-layout-grid.js +1 -1
- package/dist/components/six-logo.js +1 -1
- package/dist/components/six-main-container.js +1 -1
- package/dist/components/six-menu-divider.js +1 -1
- package/dist/components/six-menu-item.js +1 -1
- package/dist/components/six-menu-label.js +1 -1
- package/dist/components/six-menu.js +1 -1
- package/dist/components/six-picto.js +1 -1
- package/dist/components/six-progress-bar.js +1 -1
- package/dist/components/six-progress-bar.js.map +1 -1
- package/dist/components/six-progress-ring.js +1 -1
- package/dist/components/six-progress-ring.js.map +1 -1
- package/dist/components/six-radio.js +1 -1
- package/dist/components/six-radio.js.map +1 -1
- package/dist/components/six-range.js +4 -4
- package/dist/components/six-range.js.map +1 -1
- package/dist/components/six-root.js +3 -3
- package/dist/components/six-search-field.js +6 -6
- package/dist/components/six-select.js +29 -21
- package/dist/components/six-select.js.map +1 -1
- package/dist/components/six-sidebar-item-group.js +3 -3
- package/dist/components/six-sidebar-item.js +2 -2
- package/dist/components/six-sidebar.js +1 -1
- package/dist/components/six-spinner.js +1 -1
- package/dist/components/six-stage-indicator.js +1 -1
- package/dist/components/six-switch.js +3 -3
- package/dist/components/six-switch.js.map +1 -1
- package/dist/components/six-tab-group.js +6 -39
- package/dist/components/six-tab-group.js.map +1 -1
- package/dist/components/six-tab-panel.js +1 -1
- package/dist/components/six-tab.js +6 -6
- package/dist/components/six-tab.js.map +1 -1
- package/dist/components/six-tag.js +5 -5
- package/dist/components/six-textarea.js +3 -3
- package/dist/components/six-textarea.js.map +1 -1
- package/dist/components/six-tile.js +4 -4
- package/dist/components/six-timepicker.js +1 -1
- package/dist/components/six-tooltip.js +1 -1
- package/dist/components.json +1879 -354
- package/dist/esm/animation-SLlDVtvF.js +51 -0
- package/dist/esm/animation-SLlDVtvF.js.map +1 -0
- package/dist/esm/{execution-control-ltzGzaAu.js → execution-control-CKhg9ibv.js} +3 -3
- package/dist/esm/{execution-control-ltzGzaAu.js.map → execution-control-CKhg9ibv.js.map} +1 -1
- package/dist/esm/{form-control-_dvMXnmg.js → form-control-DI6V1ZhR.js} +5 -5
- package/dist/esm/form-control-DI6V1ZhR.js.map +1 -0
- package/dist/esm/{index-BF09Gr5y.js → index-JoG9I7EO.js} +38 -8
- package/dist/esm/index-JoG9I7EO.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/six-alert.entry.js +1 -1
- package/dist/esm/six-alert.entry.js.map +1 -1
- package/dist/esm/six-avatar.entry.js +3 -3
- package/dist/esm/six-badge.entry.js +3 -3
- package/dist/esm/six-button.entry.js +3 -3
- package/dist/esm/six-button.entry.js.map +1 -1
- package/dist/esm/six-card.entry.js +2 -2
- package/dist/esm/six-checkbox.six-menu-item.entry.js.map +1 -1
- package/dist/esm/six-checkbox_2.entry.js +4 -4
- package/dist/esm/six-checkbox_2.entry.js.map +1 -1
- package/dist/esm/six-date.entry.js +24 -22
- package/dist/esm/six-date.entry.js.map +1 -1
- package/dist/esm/six-datepicker.entry.js +2 -2
- package/dist/esm/six-datepicker.entry.js.map +1 -1
- package/dist/esm/six-details.entry.js +4 -4
- package/dist/esm/six-dialog.entry.js +16 -10
- package/dist/esm/six-dialog.entry.js.map +1 -1
- package/dist/esm/six-drawer.entry.js +16 -10
- package/dist/esm/six-drawer.entry.js.map +1 -1
- package/dist/esm/six-dropdown.six-menu.entry.js.map +1 -1
- package/dist/esm/six-dropdown_2.entry.js +9 -9
- package/dist/esm/six-dropdown_2.entry.js.map +1 -1
- package/dist/esm/six-error-page.entry.js +1 -1
- package/dist/esm/six-error.entry.js +1 -1
- package/dist/esm/six-file-list-item.entry.js +3 -3
- package/dist/esm/six-file-list.entry.js +1 -1
- package/dist/esm/six-file-upload.entry.js +14 -10
- package/dist/esm/six-file-upload.entry.js.map +1 -1
- package/dist/esm/six-footer.entry.js +1 -1
- package/dist/esm/six-group-label.entry.js +2 -2
- package/dist/esm/six-header-dropdown-item.entry.js +1 -1
- package/dist/esm/six-header-item.entry.js +1 -1
- package/dist/esm/six-header-menu-button.entry.js +1 -1
- package/dist/esm/six-header.entry.js +1 -1
- package/dist/esm/six-header.entry.js.map +1 -1
- package/dist/esm/six-icon-button.entry.js +1 -1
- package/dist/esm/six-icon.entry.js +1 -1
- package/dist/esm/six-input.entry.js +5 -5
- package/dist/esm/six-input.entry.js.map +1 -1
- package/dist/esm/six-item-picker.entry.js +2 -2
- package/dist/esm/six-language-switcher.entry.js +2 -2
- package/dist/esm/six-layout-grid.entry.js +1 -1
- package/dist/esm/six-logo.entry.js +1 -1
- package/dist/esm/six-main-container.entry.js +1 -1
- package/dist/esm/six-menu-divider.entry.js +1 -1
- package/dist/esm/six-menu-label.entry.js +1 -1
- package/dist/esm/six-picto.entry.js +7 -23
- package/dist/esm/six-picto.entry.js.map +1 -1
- package/dist/esm/six-progress-bar.entry.js +1 -1
- package/dist/esm/six-progress-bar.entry.js.map +1 -1
- package/dist/esm/six-progress-ring.entry.js +1 -1
- package/dist/esm/six-progress-ring.entry.js.map +1 -1
- package/dist/esm/six-radio.entry.js +1 -1
- package/dist/esm/six-radio.entry.js.map +1 -1
- package/dist/esm/six-range.entry.js +2 -2
- package/dist/esm/six-range.entry.js.map +1 -1
- package/dist/esm/six-root.entry.js +1 -1
- package/dist/esm/six-search-field.entry.js +3 -3
- package/dist/esm/six-select.entry.js +19 -11
- package/dist/esm/six-select.entry.js.map +1 -1
- package/dist/esm/six-sidebar-item-group.entry.js +1 -1
- package/dist/esm/six-sidebar-item.entry.js +1 -1
- package/dist/esm/six-sidebar.entry.js +1 -1
- package/dist/esm/six-spinner.entry.js +1 -1
- package/dist/esm/six-stage-indicator.entry.js +1 -1
- package/dist/esm/six-switch.entry.js +2 -2
- package/dist/esm/six-switch.entry.js.map +1 -1
- package/dist/esm/six-tab-group.entry.js +4 -37
- package/dist/esm/six-tab-group.entry.js.map +1 -1
- package/dist/esm/six-tab-panel.entry.js +1 -1
- package/dist/esm/six-tab.entry.js +4 -4
- package/dist/esm/six-tab.entry.js.map +1 -1
- package/dist/esm/six-tag.entry.js +2 -2
- package/dist/esm/six-textarea.entry.js +2 -2
- package/dist/esm/six-textarea.entry.js.map +1 -1
- package/dist/esm/six-tile.entry.js +1 -1
- package/dist/esm/six-timepicker.entry.js +2 -2
- package/dist/esm/six-timepicker.entry.js.map +1 -1
- package/dist/esm/six-tooltip.entry.js +1 -1
- package/dist/esm/ui-library.js +4 -4
- package/dist/esm/ui-library.js.map +1 -1
- package/dist/types/components/six-date/six-date.d.ts +9 -7
- package/dist/types/components/six-dialog/six-dialog.d.ts +10 -2
- package/dist/types/components/six-drawer/six-drawer.d.ts +10 -2
- package/dist/types/components/six-file-upload/six-file-upload.d.ts +2 -6
- package/dist/types/components/six-picto/six-picto.d.ts +0 -2
- package/dist/types/components/six-select/six-select.d.ts +1 -0
- package/dist/types/components.d.ts +626 -20
- package/dist/types/stencil-public-runtime.d.ts +21 -0
- package/dist/types/utils/animation.d.ts +4 -0
- package/dist/ui-library/p-01243b2e.entry.js +2 -0
- package/dist/ui-library/p-01243b2e.entry.js.map +1 -0
- package/dist/ui-library/{p-220ffc25.entry.js → p-09de2bda.entry.js} +2 -2
- package/dist/ui-library/p-09de2bda.entry.js.map +1 -0
- package/dist/ui-library/p-0eb90caf.entry.js +2 -0
- package/dist/ui-library/p-0eb90caf.entry.js.map +1 -0
- package/dist/ui-library/{p-83806640.entry.js → p-14f79bfc.entry.js} +2 -2
- package/dist/ui-library/p-14f79bfc.entry.js.map +1 -0
- package/dist/ui-library/{p-f22b0f49.entry.js → p-174dd242.entry.js} +2 -2
- package/dist/ui-library/p-18e755bc.entry.js +2 -0
- package/dist/ui-library/p-18e755bc.entry.js.map +1 -0
- package/dist/ui-library/{p-bf10bd79.entry.js → p-194037e9.entry.js} +2 -2
- package/dist/ui-library/{p-03ac847d.entry.js → p-1cfa2df4.entry.js} +2 -2
- package/dist/ui-library/{p-16fefaf7.entry.js → p-22ad3353.entry.js} +2 -2
- package/dist/ui-library/{p-e2460554.entry.js → p-25ff87fe.entry.js} +2 -2
- package/dist/ui-library/{p-314df297.entry.js → p-285666de.entry.js} +2 -2
- package/dist/ui-library/{p-0f7aff92.entry.js → p-29d79fe3.entry.js} +2 -2
- package/dist/ui-library/{p-abe6f5c4.entry.js → p-2a245a37.entry.js} +2 -2
- package/dist/ui-library/{p-9a7aa0d7.entry.js → p-2a82de6c.entry.js} +2 -2
- package/dist/ui-library/{p-35ebd705.entry.js → p-2fb16281.entry.js} +2 -2
- package/dist/ui-library/{p-91511258.entry.js → p-31c5f8fa.entry.js} +2 -2
- package/dist/ui-library/{p-15d09aea.entry.js → p-336610a9.entry.js} +2 -2
- package/dist/ui-library/p-336610a9.entry.js.map +1 -0
- package/dist/ui-library/{p-2db80aaf.entry.js → p-362ff192.entry.js} +2 -2
- package/dist/ui-library/{p-33b2003b.entry.js → p-371ef302.entry.js} +2 -2
- package/dist/ui-library/p-371ef302.entry.js.map +1 -0
- package/dist/ui-library/p-39109b96.entry.js +2 -0
- package/dist/ui-library/p-39109b96.entry.js.map +1 -0
- package/dist/ui-library/{p-7722c3c9.entry.js → p-3d49deae.entry.js} +2 -2
- package/dist/ui-library/p-3dc98466.entry.js +2 -0
- package/dist/ui-library/p-3dc98466.entry.js.map +1 -0
- package/dist/ui-library/{p-c72c0d32.entry.js → p-4152b371.entry.js} +2 -2
- package/dist/ui-library/{p-8496e1cd.entry.js → p-494546c8.entry.js} +2 -2
- package/dist/ui-library/{p-d9224c76.entry.js → p-4f52c56f.entry.js} +2 -2
- package/dist/ui-library/p-4f52c56f.entry.js.map +1 -0
- package/dist/ui-library/{p-5003f61b.entry.js → p-54490d28.entry.js} +2 -2
- package/dist/ui-library/p-56e172e0.entry.js +2 -0
- package/dist/ui-library/p-56e172e0.entry.js.map +1 -0
- package/dist/ui-library/{p-07dbfe1d.entry.js → p-5b52d097.entry.js} +2 -2
- package/dist/ui-library/{p-080bf19c.entry.js → p-65e53a1b.entry.js} +2 -2
- package/dist/ui-library/p-6607d03a.entry.js +2 -0
- package/dist/ui-library/p-6607d03a.entry.js.map +1 -0
- package/dist/ui-library/{p-4e183258.entry.js → p-6dd3f54c.entry.js} +2 -2
- package/dist/ui-library/p-6dd3f54c.entry.js.map +1 -0
- package/dist/ui-library/{p-f1e48369.entry.js → p-811ce2a0.entry.js} +2 -2
- package/dist/ui-library/p-811ce2a0.entry.js.map +1 -0
- package/dist/ui-library/p-83d5fa7c.entry.js +2 -0
- package/dist/ui-library/p-83d5fa7c.entry.js.map +1 -0
- package/dist/ui-library/{p-d601b41b.entry.js → p-850aff56.entry.js} +2 -2
- package/dist/ui-library/{p-dfd0956a.entry.js → p-8884a48b.entry.js} +2 -2
- package/dist/ui-library/{p-041c4b5d.entry.js → p-91c195d3.entry.js} +2 -2
- package/dist/ui-library/{p-a4f39b82.entry.js → p-9ec79195.entry.js} +2 -2
- package/dist/ui-library/{p-ltzGzaAu.js → p-CKhg9ibv.js} +2 -2
- package/dist/ui-library/{p-ltzGzaAu.js.map → p-CKhg9ibv.js.map} +1 -1
- package/dist/ui-library/p-Dg9366Gk.js +2 -0
- package/dist/ui-library/p-Dg9366Gk.js.map +1 -0
- package/dist/ui-library/p-JoG9I7EO.js +3 -0
- package/dist/ui-library/p-JoG9I7EO.js.map +1 -0
- package/dist/ui-library/p-SLlDVtvF.js +2 -0
- package/dist/ui-library/p-SLlDVtvF.js.map +1 -0
- package/dist/ui-library/{p-eed32256.entry.js → p-a43843d6.entry.js} +2 -2
- package/dist/ui-library/{p-2bac7418.entry.js → p-a4b523ed.entry.js} +2 -2
- package/dist/ui-library/p-a4b523ed.entry.js.map +1 -0
- package/dist/ui-library/{p-6183f4c8.entry.js → p-ab043a8c.entry.js} +2 -2
- package/dist/ui-library/{p-dc9badb8.entry.js → p-b37d9771.entry.js} +2 -2
- package/dist/ui-library/p-b6244904.entry.js +2 -0
- package/dist/ui-library/p-b6244904.entry.js.map +1 -0
- package/dist/ui-library/{p-4d714149.entry.js → p-c47f11e4.entry.js} +2 -2
- package/dist/ui-library/p-c47f11e4.entry.js.map +1 -0
- package/dist/ui-library/{p-f8dccfa9.entry.js → p-c90a59fc.entry.js} +2 -2
- package/dist/ui-library/p-cea7f777.entry.js +2 -0
- package/dist/ui-library/{p-9deb70a3.entry.js → p-d36ec323.entry.js} +2 -2
- package/dist/ui-library/{p-367d2873.entry.js → p-dc2109d2.entry.js} +2 -2
- package/dist/ui-library/{p-9656e941.entry.js → p-e85be7d2.entry.js} +2 -2
- package/dist/ui-library/{p-7cdda567.entry.js → p-e92df84a.entry.js} +2 -2
- package/dist/ui-library/p-e92df84a.entry.js.map +1 -0
- package/dist/ui-library/{p-fac22819.entry.js → p-ea61b009.entry.js} +2 -2
- package/dist/ui-library/p-ea61b009.entry.js.map +1 -0
- package/dist/ui-library/{p-696590b3.entry.js → p-ed6625e6.entry.js} +2 -2
- package/dist/ui-library/{p-8e5b7dbb.entry.js → p-ee980a0f.entry.js} +2 -2
- package/dist/ui-library/p-ee980a0f.entry.js.map +1 -0
- package/dist/ui-library/{p-894dd0f7.entry.js → p-f4dd7b57.entry.js} +2 -2
- package/dist/ui-library/p-f4dd7b57.entry.js.map +1 -0
- package/dist/ui-library/{p-a747beba.entry.js → p-f6423fca.entry.js} +2 -2
- package/dist/ui-library/{p-e516182e.entry.js → p-fe7d3665.entry.js} +2 -2
- package/dist/ui-library/six-alert.entry.esm.js.map +1 -1
- package/dist/ui-library/six-button.entry.esm.js.map +1 -1
- package/dist/ui-library/six-checkbox.six-menu-item.entry.esm.js.map +1 -1
- package/dist/ui-library/six-date.entry.esm.js.map +1 -1
- package/dist/ui-library/six-datepicker.entry.esm.js.map +1 -1
- package/dist/ui-library/six-dialog.entry.esm.js.map +1 -1
- package/dist/ui-library/six-drawer.entry.esm.js.map +1 -1
- package/dist/ui-library/six-dropdown.six-menu.entry.esm.js.map +1 -1
- package/dist/ui-library/six-file-upload.entry.esm.js.map +1 -1
- package/dist/ui-library/six-header.entry.esm.js.map +1 -1
- package/dist/ui-library/six-input.entry.esm.js.map +1 -1
- package/dist/ui-library/six-picto.entry.esm.js.map +1 -1
- package/dist/ui-library/six-progress-bar.entry.esm.js.map +1 -1
- package/dist/ui-library/six-progress-ring.entry.esm.js.map +1 -1
- package/dist/ui-library/six-radio.entry.esm.js.map +1 -1
- package/dist/ui-library/six-range.entry.esm.js.map +1 -1
- package/dist/ui-library/six-select.entry.esm.js.map +1 -1
- package/dist/ui-library/six-switch.entry.esm.js.map +1 -1
- package/dist/ui-library/six-tab-group.entry.esm.js.map +1 -1
- package/dist/ui-library/six-tab.entry.esm.js.map +1 -1
- package/dist/ui-library/six-textarea.entry.esm.js.map +1 -1
- package/dist/ui-library/six-timepicker.entry.esm.js.map +1 -1
- package/dist/ui-library/ui-library.esm.js +1 -1
- package/dist/ui-library/ui-library.esm.js.map +1 -1
- package/package.json +5 -5
- package/dist/cjs/form-control-BHd-Z4ot.js.map +0 -1
- package/dist/cjs/index-B_stPhJp.js.map +0 -1
- package/dist/collection/assets/pictograms/TPP.svg +0 -1
- package/dist/collection/assets/pictograms/agile.svg +0 -1
- package/dist/collection/assets/pictograms/ai.svg +0 -1
- package/dist/collection/assets/pictograms/airplane.svg +0 -1
- package/dist/collection/assets/pictograms/alert.svg +0 -1
- package/dist/collection/assets/pictograms/ambulance.svg +0 -1
- package/dist/collection/assets/pictograms/analyse.svg +0 -1
- package/dist/collection/assets/pictograms/anchor.svg +0 -1
- package/dist/collection/assets/pictograms/apple.svg +0 -1
- package/dist/collection/assets/pictograms/arrow-down.svg +0 -1
- package/dist/collection/assets/pictograms/arrow-right.svg +0 -1
- package/dist/collection/assets/pictograms/arrow-up.svg +0 -1
- package/dist/collection/assets/pictograms/astronaut-outline.svg +0 -1
- package/dist/collection/assets/pictograms/augmented-reality.svg +0 -1
- package/dist/collection/assets/pictograms/backoffice.svg +0 -1
- package/dist/collection/assets/pictograms/bank.svg +0 -1
- package/dist/collection/assets/pictograms/banknote.svg +0 -1
- package/dist/collection/assets/pictograms/barcode.svg +0 -1
- package/dist/collection/assets/pictograms/battery.svg +0 -1
- package/dist/collection/assets/pictograms/beacon.svg +0 -1
- package/dist/collection/assets/pictograms/beat.svg +0 -1
- package/dist/collection/assets/pictograms/bee.svg +0 -1
- package/dist/collection/assets/pictograms/bell.svg +0 -1
- package/dist/collection/assets/pictograms/berlin.svg +0 -1
- package/dist/collection/assets/pictograms/big-data.svg +0 -1
- package/dist/collection/assets/pictograms/bilateral.svg +0 -1
- package/dist/collection/assets/pictograms/bill.svg +0 -1
- package/dist/collection/assets/pictograms/binoculars.svg +0 -1
- package/dist/collection/assets/pictograms/block.svg +0 -1
- package/dist/collection/assets/pictograms/blockchain.svg +0 -1
- package/dist/collection/assets/pictograms/bluetooth.svg +0 -1
- package/dist/collection/assets/pictograms/bone.svg +0 -1
- package/dist/collection/assets/pictograms/book.svg +0 -1
- package/dist/collection/assets/pictograms/bottle.svg +0 -1
- package/dist/collection/assets/pictograms/buggy.svg +0 -1
- package/dist/collection/assets/pictograms/bull-bear.svg +0 -1
- package/dist/collection/assets/pictograms/business.svg +0 -1
- package/dist/collection/assets/pictograms/cake.svg +0 -1
- package/dist/collection/assets/pictograms/calculator.svg +0 -1
- package/dist/collection/assets/pictograms/calendar.svg +0 -1
- package/dist/collection/assets/pictograms/cam.svg +0 -1
- package/dist/collection/assets/pictograms/cap.svg +0 -1
- package/dist/collection/assets/pictograms/capsule.svg +0 -1
- package/dist/collection/assets/pictograms/car.svg +0 -1
- package/dist/collection/assets/pictograms/carabiner.svg +0 -1
- package/dist/collection/assets/pictograms/card.svg +0 -1
- package/dist/collection/assets/pictograms/cash-machine.svg +0 -1
- package/dist/collection/assets/pictograms/cash-register.svg +0 -1
- package/dist/collection/assets/pictograms/cash.svg +0 -1
- package/dist/collection/assets/pictograms/cashless.svg +0 -1
- package/dist/collection/assets/pictograms/check.svg +0 -1
- package/dist/collection/assets/pictograms/cheveron-right.svg +0 -1
- package/dist/collection/assets/pictograms/chf-eur.svg +0 -1
- package/dist/collection/assets/pictograms/cleaning.svg +0 -1
- package/dist/collection/assets/pictograms/click-collect.svg +0 -1
- package/dist/collection/assets/pictograms/click-return.svg +0 -1
- package/dist/collection/assets/pictograms/client-receipt.svg +0 -1
- package/dist/collection/assets/pictograms/clientesyusuarios.svg +0 -1
- package/dist/collection/assets/pictograms/clock.svg +0 -1
- package/dist/collection/assets/pictograms/cloud.svg +0 -1
- package/dist/collection/assets/pictograms/coffee.svg +0 -1
- package/dist/collection/assets/pictograms/coins.svg +0 -1
- package/dist/collection/assets/pictograms/configuracion-de-servicio.svg +0 -1
- package/dist/collection/assets/pictograms/connectivity.svg +0 -1
- package/dist/collection/assets/pictograms/contactless.svg +0 -1
- package/dist/collection/assets/pictograms/copy.svg +0 -1
- package/dist/collection/assets/pictograms/cornet.svg +0 -1
- package/dist/collection/assets/pictograms/cost-reduction.svg +0 -1
- package/dist/collection/assets/pictograms/coupon.svg +0 -1
- package/dist/collection/assets/pictograms/croissant.svg +0 -1
- package/dist/collection/assets/pictograms/crowdfunding.svg +0 -1
- package/dist/collection/assets/pictograms/crown.svg +0 -1
- package/dist/collection/assets/pictograms/cryptocurrency.svg +0 -1
- package/dist/collection/assets/pictograms/crystal-ball.svg +0 -1
- package/dist/collection/assets/pictograms/cup.svg +0 -1
- package/dist/collection/assets/pictograms/cupcake.svg +0 -1
- package/dist/collection/assets/pictograms/currency.svg +0 -1
- package/dist/collection/assets/pictograms/cyber-security.svg +0 -1
- package/dist/collection/assets/pictograms/data-mapping.svg +0 -1
- package/dist/collection/assets/pictograms/desktop.svg +0 -1
- package/dist/collection/assets/pictograms/diamond.svg +0 -1
- package/dist/collection/assets/pictograms/disc.svg +0 -1
- package/dist/collection/assets/pictograms/diversify.svg +0 -1
- package/dist/collection/assets/pictograms/dna.svg +0 -1
- package/dist/collection/assets/pictograms/dog.svg +0 -1
- package/dist/collection/assets/pictograms/download.svg +0 -1
- package/dist/collection/assets/pictograms/drop-zone.svg +0 -1
- package/dist/collection/assets/pictograms/drop.svg +0 -1
- package/dist/collection/assets/pictograms/dumbbell.svg +0 -1
- package/dist/collection/assets/pictograms/dws.svg +0 -1
- package/dist/collection/assets/pictograms/ear.svg +0 -1
- package/dist/collection/assets/pictograms/ecommerce.svg +0 -1
- package/dist/collection/assets/pictograms/ethernet.svg +0 -1
- package/dist/collection/assets/pictograms/eur-dollar.svg +0 -1
- package/dist/collection/assets/pictograms/exchange.svg +0 -1
- package/dist/collection/assets/pictograms/exclamation.svg +0 -1
- package/dist/collection/assets/pictograms/external-link.svg +0 -1
- package/dist/collection/assets/pictograms/extinguisher.svg +0 -1
- package/dist/collection/assets/pictograms/factory.svg +0 -1
- package/dist/collection/assets/pictograms/fax.svg +0 -1
- package/dist/collection/assets/pictograms/fence.svg +0 -1
- package/dist/collection/assets/pictograms/file-text.svg +0 -1
- package/dist/collection/assets/pictograms/file.svg +0 -1
- package/dist/collection/assets/pictograms/find-in-page.svg +0 -1
- package/dist/collection/assets/pictograms/fingerprint.svg +0 -1
- package/dist/collection/assets/pictograms/flag.svg +0 -1
- package/dist/collection/assets/pictograms/flash.svg +0 -1
- package/dist/collection/assets/pictograms/flexibility.svg +0 -1
- package/dist/collection/assets/pictograms/flipchart.svg +0 -1
- package/dist/collection/assets/pictograms/flower.svg +0 -1
- package/dist/collection/assets/pictograms/focus.svg +0 -1
- package/dist/collection/assets/pictograms/foreign-exchange.svg +0 -1
- package/dist/collection/assets/pictograms/fraud-free.svg +0 -1
- package/dist/collection/assets/pictograms/funnel.svg +0 -1
- package/dist/collection/assets/pictograms/gamepad.svg +0 -1
- package/dist/collection/assets/pictograms/gears.svg +0 -1
- package/dist/collection/assets/pictograms/generic.svg +0 -1
- package/dist/collection/assets/pictograms/genie.svg +0 -1
- package/dist/collection/assets/pictograms/gestion-de-fallidos.svg +0 -1
- package/dist/collection/assets/pictograms/gestion-de-instrucciones.svg +0 -1
- package/dist/collection/assets/pictograms/gestion-de-pago.svg +0 -1
- package/dist/collection/assets/pictograms/gift.svg +0 -1
- package/dist/collection/assets/pictograms/giftcard.svg +0 -1
- package/dist/collection/assets/pictograms/glass.svg +0 -1
- package/dist/collection/assets/pictograms/glasses.svg +0 -1
- package/dist/collection/assets/pictograms/global.svg +0 -1
- package/dist/collection/assets/pictograms/gprs-lan.svg +0 -1
- package/dist/collection/assets/pictograms/gprs.svg +0 -1
- package/dist/collection/assets/pictograms/guide.svg +0 -1
- package/dist/collection/assets/pictograms/hacker-security.svg +0 -1
- package/dist/collection/assets/pictograms/hand.svg +0 -1
- package/dist/collection/assets/pictograms/handshake.svg +0 -1
- package/dist/collection/assets/pictograms/happy.svg +0 -1
- package/dist/collection/assets/pictograms/hashtag.svg +0 -1
- package/dist/collection/assets/pictograms/headphones.svg +0 -1
- package/dist/collection/assets/pictograms/heart.svg +0 -1
- package/dist/collection/assets/pictograms/home.svg +0 -1
- package/dist/collection/assets/pictograms/identity-management.svg +0 -1
- package/dist/collection/assets/pictograms/info.svg +0 -1
- package/dist/collection/assets/pictograms/international-connectivity.svg +0 -1
- package/dist/collection/assets/pictograms/iot.svg +0 -1
- package/dist/collection/assets/pictograms/key.svg +0 -1
- package/dist/collection/assets/pictograms/lab.svg +0 -1
- package/dist/collection/assets/pictograms/labyrinth.svg +0 -1
- package/dist/collection/assets/pictograms/laptop-outline.svg +0 -1
- package/dist/collection/assets/pictograms/leaf.svg +0 -1
- package/dist/collection/assets/pictograms/lightbulb.svg +0 -1
- package/dist/collection/assets/pictograms/lighthouse.svg +0 -1
- package/dist/collection/assets/pictograms/like.svg +0 -1
- package/dist/collection/assets/pictograms/lines.svg +0 -1
- package/dist/collection/assets/pictograms/liquid.svg +0 -1
- package/dist/collection/assets/pictograms/lock.svg +0 -1
- package/dist/collection/assets/pictograms/london.svg +0 -1
- package/dist/collection/assets/pictograms/lounge.svg +0 -1
- package/dist/collection/assets/pictograms/lunch-learn.svg +0 -1
- package/dist/collection/assets/pictograms/machine-learning.svg +0 -1
- package/dist/collection/assets/pictograms/mail-copy.svg +0 -1
- package/dist/collection/assets/pictograms/mail.svg +0 -1
- package/dist/collection/assets/pictograms/map-marker.svg +0 -1
- package/dist/collection/assets/pictograms/map.svg +0 -1
- package/dist/collection/assets/pictograms/markets.svg +0 -1
- package/dist/collection/assets/pictograms/megaphone.svg +0 -1
- package/dist/collection/assets/pictograms/menu.svg +0 -1
- package/dist/collection/assets/pictograms/micro-payments.svg +0 -1
- package/dist/collection/assets/pictograms/microphone.svg +0 -1
- package/dist/collection/assets/pictograms/minus.svg +0 -1
- package/dist/collection/assets/pictograms/mobile-payment.svg +0 -1
- package/dist/collection/assets/pictograms/mobile-terminal.svg +0 -1
- package/dist/collection/assets/pictograms/monitoring.svg +0 -1
- package/dist/collection/assets/pictograms/more.svg +0 -1
- package/dist/collection/assets/pictograms/mountain.svg +0 -1
- package/dist/collection/assets/pictograms/movie-camera.svg +0 -1
- package/dist/collection/assets/pictograms/navigation.svg +0 -1
- package/dist/collection/assets/pictograms/no-smoking.svg +0 -1
- package/dist/collection/assets/pictograms/office.svg +0 -1
- package/dist/collection/assets/pictograms/outsorcing.svg +0 -1
- package/dist/collection/assets/pictograms/package.svg +0 -1
- package/dist/collection/assets/pictograms/paddle.svg +0 -1
- package/dist/collection/assets/pictograms/paninoteca.svg +0 -1
- package/dist/collection/assets/pictograms/paragraph.svg +0 -1
- package/dist/collection/assets/pictograms/paris.svg +0 -1
- package/dist/collection/assets/pictograms/parking.svg +0 -1
- package/dist/collection/assets/pictograms/pause.svg +0 -1
- package/dist/collection/assets/pictograms/pay-points.svg +0 -1
- package/dist/collection/assets/pictograms/pencil.svg +0 -1
- package/dist/collection/assets/pictograms/person-business.svg +0 -1
- package/dist/collection/assets/pictograms/person-callcenter.svg +0 -1
- package/dist/collection/assets/pictograms/person-client.svg +0 -1
- package/dist/collection/assets/pictograms/person-group.svg +0 -1
- package/dist/collection/assets/pictograms/person.svg +0 -1
- package/dist/collection/assets/pictograms/pet.svg +0 -1
- package/dist/collection/assets/pictograms/piechart.svg +0 -1
- package/dist/collection/assets/pictograms/pig.svg +0 -1
- package/dist/collection/assets/pictograms/piggy-bank.svg +0 -1
- package/dist/collection/assets/pictograms/planet.svg +0 -1
- package/dist/collection/assets/pictograms/play.svg +0 -1
- package/dist/collection/assets/pictograms/plus.svg +0 -1
- package/dist/collection/assets/pictograms/popsicle.svg +0 -1
- package/dist/collection/assets/pictograms/printer.svg +0 -1
- package/dist/collection/assets/pictograms/privacy.svg +0 -1
- package/dist/collection/assets/pictograms/process.svg +0 -1
- package/dist/collection/assets/pictograms/projector.svg +0 -1
- package/dist/collection/assets/pictograms/psp.svg +0 -1
- package/dist/collection/assets/pictograms/punch-card.svg +0 -1
- package/dist/collection/assets/pictograms/puzzle.svg +0 -1
- package/dist/collection/assets/pictograms/qr-scanner.svg +0 -1
- package/dist/collection/assets/pictograms/qr.svg +0 -1
- package/dist/collection/assets/pictograms/question.svg +0 -1
- package/dist/collection/assets/pictograms/rabbit.svg +0 -1
- package/dist/collection/assets/pictograms/rain.svg +0 -1
- package/dist/collection/assets/pictograms/realtime.svg +0 -1
- package/dist/collection/assets/pictograms/recurring-payments.svg +0 -1
- package/dist/collection/assets/pictograms/relaxing.svg +0 -1
- package/dist/collection/assets/pictograms/reporting.svg +0 -1
- package/dist/collection/assets/pictograms/responsive-design.svg +0 -1
- package/dist/collection/assets/pictograms/robo-advisor.svg +0 -1
- package/dist/collection/assets/pictograms/robotics.svg +0 -1
- package/dist/collection/assets/pictograms/rock.svg +0 -1
- package/dist/collection/assets/pictograms/rocket.svg +0 -1
- package/dist/collection/assets/pictograms/rss.svg +0 -1
- package/dist/collection/assets/pictograms/sad.svg +0 -1
- package/dist/collection/assets/pictograms/sailboat.svg +0 -1
- package/dist/collection/assets/pictograms/scales.svg +0 -1
- package/dist/collection/assets/pictograms/screen.svg +0 -1
- package/dist/collection/assets/pictograms/seal.svg +0 -1
- package/dist/collection/assets/pictograms/search.svg +0 -1
- package/dist/collection/assets/pictograms/sentiment-dissatisfied.svg +0 -1
- package/dist/collection/assets/pictograms/server.svg +0 -1
- package/dist/collection/assets/pictograms/service-center.svg +0 -1
- package/dist/collection/assets/pictograms/sextant.svg +0 -1
- package/dist/collection/assets/pictograms/share.svg +0 -1
- package/dist/collection/assets/pictograms/shield.svg +0 -1
- package/dist/collection/assets/pictograms/shop.svg +0 -1
- package/dist/collection/assets/pictograms/shopping-cart-chf.svg +0 -1
- package/dist/collection/assets/pictograms/shopping-cart-download.svg +0 -1
- package/dist/collection/assets/pictograms/shopping-cart.svg +0 -1
- package/dist/collection/assets/pictograms/signal.svg +0 -1
- package/dist/collection/assets/pictograms/simple-integration.svg +0 -1
- package/dist/collection/assets/pictograms/skull.svg +0 -1
- package/dist/collection/assets/pictograms/smoking.svg +0 -1
- package/dist/collection/assets/pictograms/snow.svg +0 -1
- package/dist/collection/assets/pictograms/snowflake.svg +0 -1
- package/dist/collection/assets/pictograms/snowman.svg +0 -1
- package/dist/collection/assets/pictograms/soc.svg +0 -1
- package/dist/collection/assets/pictograms/social-days.svg +0 -1
- package/dist/collection/assets/pictograms/social-trading.svg +0 -1
- package/dist/collection/assets/pictograms/softwarepackage.svg +0 -1
- package/dist/collection/assets/pictograms/sound.svg +0 -1
- package/dist/collection/assets/pictograms/speechbubble.svg +0 -1
- package/dist/collection/assets/pictograms/spirit.svg +0 -1
- package/dist/collection/assets/pictograms/split.svg +0 -1
- package/dist/collection/assets/pictograms/stability.svg +0 -1
- package/dist/collection/assets/pictograms/stairs.svg +0 -1
- package/dist/collection/assets/pictograms/star.svg +0 -1
- package/dist/collection/assets/pictograms/statistic.svg +0 -1
- package/dist/collection/assets/pictograms/stock.svg +0 -1
- package/dist/collection/assets/pictograms/stocks.svg +0 -1
- package/dist/collection/assets/pictograms/stop.svg +0 -1
- package/dist/collection/assets/pictograms/stopwatch.svg +0 -1
- package/dist/collection/assets/pictograms/storage.svg +0 -1
- package/dist/collection/assets/pictograms/success.svg +0 -1
- package/dist/collection/assets/pictograms/suitcase.svg +0 -1
- package/dist/collection/assets/pictograms/sun.svg +0 -1
- package/dist/collection/assets/pictograms/surveillance.svg +0 -1
- package/dist/collection/assets/pictograms/swiss.svg +0 -1
- package/dist/collection/assets/pictograms/tablet.svg +0 -1
- package/dist/collection/assets/pictograms/tachometer.svg +0 -1
- package/dist/collection/assets/pictograms/target.svg +0 -1
- package/dist/collection/assets/pictograms/telephone.svg +0 -1
- package/dist/collection/assets/pictograms/telescope.svg +0 -1
- package/dist/collection/assets/pictograms/temperature.svg +0 -1
- package/dist/collection/assets/pictograms/terminal.svg +0 -1
- package/dist/collection/assets/pictograms/ticket.svg +0 -1
- package/dist/collection/assets/pictograms/tin.svg +0 -1
- package/dist/collection/assets/pictograms/tokenization.svg +0 -1
- package/dist/collection/assets/pictograms/tool.svg +0 -1
- package/dist/collection/assets/pictograms/touch.svg +0 -1
- package/dist/collection/assets/pictograms/train.svg +0 -1
- package/dist/collection/assets/pictograms/trash.svg +0 -1
- package/dist/collection/assets/pictograms/umbrella.svg +0 -1
- package/dist/collection/assets/pictograms/unlock.svg +0 -1
- package/dist/collection/assets/pictograms/upload.svg +0 -1
- package/dist/collection/assets/pictograms/usb.svg +0 -1
- package/dist/collection/assets/pictograms/viena.svg +0 -1
- package/dist/collection/assets/pictograms/viking.svg +0 -1
- package/dist/collection/assets/pictograms/visibility.svg +0 -1
- package/dist/collection/assets/pictograms/wallet.svg +0 -1
- package/dist/collection/assets/pictograms/warning.svg +0 -1
- package/dist/collection/assets/pictograms/way-up.svg +0 -1
- package/dist/collection/assets/pictograms/wc-handicap.svg +0 -1
- package/dist/collection/assets/pictograms/wc-men.svg +0 -1
- package/dist/collection/assets/pictograms/wc-woman.svg +0 -1
- package/dist/collection/assets/pictograms/wearables.svg +0 -1
- package/dist/collection/assets/pictograms/webshop.svg +0 -1
- package/dist/collection/assets/pictograms/wlan-bluetooth.svg +0 -1
- package/dist/collection/assets/pictograms/wlan.svg +0 -1
- package/dist/collection/assets/pictograms/x.svg +0 -1
- package/dist/collection/assets/pictograms/zurich.svg +0 -1
- package/dist/components/p-BAe7gBEi.js.map +0 -1
- package/dist/components/p-BFrSuO7n.js.map +0 -1
- package/dist/components/p-ByetrMwd.js.map +0 -1
- package/dist/components/p-C4Shm3wX.js.map +0 -1
- package/dist/components/p-Cc_nfyAl.js.map +0 -1
- package/dist/components/p-DK3EH5_F.js +0 -62
- package/dist/components/p-DK3EH5_F.js.map +0 -1
- package/dist/components/p-DwZ0ygip.js.map +0 -1
- package/dist/esm/form-control-_dvMXnmg.js.map +0 -1
- package/dist/esm/index-BF09Gr5y.js.map +0 -1
- package/dist/ui-library/assets/pictograms/TPP.svg +0 -1
- package/dist/ui-library/assets/pictograms/agile.svg +0 -1
- package/dist/ui-library/assets/pictograms/ai.svg +0 -1
- package/dist/ui-library/assets/pictograms/airplane.svg +0 -1
- package/dist/ui-library/assets/pictograms/alert.svg +0 -1
- package/dist/ui-library/assets/pictograms/ambulance.svg +0 -1
- package/dist/ui-library/assets/pictograms/analyse.svg +0 -1
- package/dist/ui-library/assets/pictograms/anchor.svg +0 -1
- package/dist/ui-library/assets/pictograms/apple.svg +0 -1
- package/dist/ui-library/assets/pictograms/arrow-down.svg +0 -1
- package/dist/ui-library/assets/pictograms/arrow-right.svg +0 -1
- package/dist/ui-library/assets/pictograms/arrow-up.svg +0 -1
- package/dist/ui-library/assets/pictograms/astronaut-outline.svg +0 -1
- package/dist/ui-library/assets/pictograms/augmented-reality.svg +0 -1
- package/dist/ui-library/assets/pictograms/backoffice.svg +0 -1
- package/dist/ui-library/assets/pictograms/bank.svg +0 -1
- package/dist/ui-library/assets/pictograms/banknote.svg +0 -1
- package/dist/ui-library/assets/pictograms/barcode.svg +0 -1
- package/dist/ui-library/assets/pictograms/battery.svg +0 -1
- package/dist/ui-library/assets/pictograms/beacon.svg +0 -1
- package/dist/ui-library/assets/pictograms/beat.svg +0 -1
- package/dist/ui-library/assets/pictograms/bee.svg +0 -1
- package/dist/ui-library/assets/pictograms/bell.svg +0 -1
- package/dist/ui-library/assets/pictograms/berlin.svg +0 -1
- package/dist/ui-library/assets/pictograms/big-data.svg +0 -1
- package/dist/ui-library/assets/pictograms/bilateral.svg +0 -1
- package/dist/ui-library/assets/pictograms/bill.svg +0 -1
- package/dist/ui-library/assets/pictograms/binoculars.svg +0 -1
- package/dist/ui-library/assets/pictograms/block.svg +0 -1
- package/dist/ui-library/assets/pictograms/blockchain.svg +0 -1
- package/dist/ui-library/assets/pictograms/bluetooth.svg +0 -1
- package/dist/ui-library/assets/pictograms/bone.svg +0 -1
- package/dist/ui-library/assets/pictograms/book.svg +0 -1
- package/dist/ui-library/assets/pictograms/bottle.svg +0 -1
- package/dist/ui-library/assets/pictograms/buggy.svg +0 -1
- package/dist/ui-library/assets/pictograms/bull-bear.svg +0 -1
- package/dist/ui-library/assets/pictograms/business.svg +0 -1
- package/dist/ui-library/assets/pictograms/cake.svg +0 -1
- package/dist/ui-library/assets/pictograms/calculator.svg +0 -1
- package/dist/ui-library/assets/pictograms/calendar.svg +0 -1
- package/dist/ui-library/assets/pictograms/cam.svg +0 -1
- package/dist/ui-library/assets/pictograms/cap.svg +0 -1
- package/dist/ui-library/assets/pictograms/capsule.svg +0 -1
- package/dist/ui-library/assets/pictograms/car.svg +0 -1
- package/dist/ui-library/assets/pictograms/carabiner.svg +0 -1
- package/dist/ui-library/assets/pictograms/card.svg +0 -1
- package/dist/ui-library/assets/pictograms/cash-machine.svg +0 -1
- package/dist/ui-library/assets/pictograms/cash-register.svg +0 -1
- package/dist/ui-library/assets/pictograms/cash.svg +0 -1
- package/dist/ui-library/assets/pictograms/cashless.svg +0 -1
- package/dist/ui-library/assets/pictograms/check.svg +0 -1
- package/dist/ui-library/assets/pictograms/cheveron-right.svg +0 -1
- package/dist/ui-library/assets/pictograms/chf-eur.svg +0 -1
- package/dist/ui-library/assets/pictograms/cleaning.svg +0 -1
- package/dist/ui-library/assets/pictograms/click-collect.svg +0 -1
- package/dist/ui-library/assets/pictograms/click-return.svg +0 -1
- package/dist/ui-library/assets/pictograms/client-receipt.svg +0 -1
- package/dist/ui-library/assets/pictograms/clientesyusuarios.svg +0 -1
- package/dist/ui-library/assets/pictograms/clock.svg +0 -1
- package/dist/ui-library/assets/pictograms/cloud.svg +0 -1
- package/dist/ui-library/assets/pictograms/coffee.svg +0 -1
- package/dist/ui-library/assets/pictograms/coins.svg +0 -1
- package/dist/ui-library/assets/pictograms/configuracion-de-servicio.svg +0 -1
- package/dist/ui-library/assets/pictograms/connectivity.svg +0 -1
- package/dist/ui-library/assets/pictograms/contactless.svg +0 -1
- package/dist/ui-library/assets/pictograms/copy.svg +0 -1
- package/dist/ui-library/assets/pictograms/cornet.svg +0 -1
- package/dist/ui-library/assets/pictograms/cost-reduction.svg +0 -1
- package/dist/ui-library/assets/pictograms/coupon.svg +0 -1
- package/dist/ui-library/assets/pictograms/croissant.svg +0 -1
- package/dist/ui-library/assets/pictograms/crowdfunding.svg +0 -1
- package/dist/ui-library/assets/pictograms/crown.svg +0 -1
- package/dist/ui-library/assets/pictograms/cryptocurrency.svg +0 -1
- package/dist/ui-library/assets/pictograms/crystal-ball.svg +0 -1
- package/dist/ui-library/assets/pictograms/cup.svg +0 -1
- package/dist/ui-library/assets/pictograms/cupcake.svg +0 -1
- package/dist/ui-library/assets/pictograms/currency.svg +0 -1
- package/dist/ui-library/assets/pictograms/cyber-security.svg +0 -1
- package/dist/ui-library/assets/pictograms/data-mapping.svg +0 -1
- package/dist/ui-library/assets/pictograms/desktop.svg +0 -1
- package/dist/ui-library/assets/pictograms/diamond.svg +0 -1
- package/dist/ui-library/assets/pictograms/disc.svg +0 -1
- package/dist/ui-library/assets/pictograms/diversify.svg +0 -1
- package/dist/ui-library/assets/pictograms/dna.svg +0 -1
- package/dist/ui-library/assets/pictograms/dog.svg +0 -1
- package/dist/ui-library/assets/pictograms/download.svg +0 -1
- package/dist/ui-library/assets/pictograms/drop-zone.svg +0 -1
- package/dist/ui-library/assets/pictograms/drop.svg +0 -1
- package/dist/ui-library/assets/pictograms/dumbbell.svg +0 -1
- package/dist/ui-library/assets/pictograms/dws.svg +0 -1
- package/dist/ui-library/assets/pictograms/ear.svg +0 -1
- package/dist/ui-library/assets/pictograms/ecommerce.svg +0 -1
- package/dist/ui-library/assets/pictograms/ethernet.svg +0 -1
- package/dist/ui-library/assets/pictograms/eur-dollar.svg +0 -1
- package/dist/ui-library/assets/pictograms/exchange.svg +0 -1
- package/dist/ui-library/assets/pictograms/exclamation.svg +0 -1
- package/dist/ui-library/assets/pictograms/external-link.svg +0 -1
- package/dist/ui-library/assets/pictograms/extinguisher.svg +0 -1
- package/dist/ui-library/assets/pictograms/factory.svg +0 -1
- package/dist/ui-library/assets/pictograms/fax.svg +0 -1
- package/dist/ui-library/assets/pictograms/fence.svg +0 -1
- package/dist/ui-library/assets/pictograms/file-text.svg +0 -1
- package/dist/ui-library/assets/pictograms/file.svg +0 -1
- package/dist/ui-library/assets/pictograms/find-in-page.svg +0 -1
- package/dist/ui-library/assets/pictograms/fingerprint.svg +0 -1
- package/dist/ui-library/assets/pictograms/flag.svg +0 -1
- package/dist/ui-library/assets/pictograms/flash.svg +0 -1
- package/dist/ui-library/assets/pictograms/flexibility.svg +0 -1
- package/dist/ui-library/assets/pictograms/flipchart.svg +0 -1
- package/dist/ui-library/assets/pictograms/flower.svg +0 -1
- package/dist/ui-library/assets/pictograms/focus.svg +0 -1
- package/dist/ui-library/assets/pictograms/foreign-exchange.svg +0 -1
- package/dist/ui-library/assets/pictograms/fraud-free.svg +0 -1
- package/dist/ui-library/assets/pictograms/funnel.svg +0 -1
- package/dist/ui-library/assets/pictograms/gamepad.svg +0 -1
- package/dist/ui-library/assets/pictograms/gears.svg +0 -1
- package/dist/ui-library/assets/pictograms/generic.svg +0 -1
- package/dist/ui-library/assets/pictograms/genie.svg +0 -1
- package/dist/ui-library/assets/pictograms/gestion-de-fallidos.svg +0 -1
- package/dist/ui-library/assets/pictograms/gestion-de-instrucciones.svg +0 -1
- package/dist/ui-library/assets/pictograms/gestion-de-pago.svg +0 -1
- package/dist/ui-library/assets/pictograms/gift.svg +0 -1
- package/dist/ui-library/assets/pictograms/giftcard.svg +0 -1
- package/dist/ui-library/assets/pictograms/glass.svg +0 -1
- package/dist/ui-library/assets/pictograms/glasses.svg +0 -1
- package/dist/ui-library/assets/pictograms/global.svg +0 -1
- package/dist/ui-library/assets/pictograms/gprs-lan.svg +0 -1
- package/dist/ui-library/assets/pictograms/gprs.svg +0 -1
- package/dist/ui-library/assets/pictograms/guide.svg +0 -1
- package/dist/ui-library/assets/pictograms/hacker-security.svg +0 -1
- package/dist/ui-library/assets/pictograms/hand.svg +0 -1
- package/dist/ui-library/assets/pictograms/handshake.svg +0 -1
- package/dist/ui-library/assets/pictograms/happy.svg +0 -1
- package/dist/ui-library/assets/pictograms/hashtag.svg +0 -1
- package/dist/ui-library/assets/pictograms/headphones.svg +0 -1
- package/dist/ui-library/assets/pictograms/heart.svg +0 -1
- package/dist/ui-library/assets/pictograms/home.svg +0 -1
- package/dist/ui-library/assets/pictograms/identity-management.svg +0 -1
- package/dist/ui-library/assets/pictograms/info.svg +0 -1
- package/dist/ui-library/assets/pictograms/international-connectivity.svg +0 -1
- package/dist/ui-library/assets/pictograms/iot.svg +0 -1
- package/dist/ui-library/assets/pictograms/key.svg +0 -1
- package/dist/ui-library/assets/pictograms/lab.svg +0 -1
- package/dist/ui-library/assets/pictograms/labyrinth.svg +0 -1
- package/dist/ui-library/assets/pictograms/laptop-outline.svg +0 -1
- package/dist/ui-library/assets/pictograms/leaf.svg +0 -1
- package/dist/ui-library/assets/pictograms/lightbulb.svg +0 -1
- package/dist/ui-library/assets/pictograms/lighthouse.svg +0 -1
- package/dist/ui-library/assets/pictograms/like.svg +0 -1
- package/dist/ui-library/assets/pictograms/lines.svg +0 -1
- package/dist/ui-library/assets/pictograms/liquid.svg +0 -1
- package/dist/ui-library/assets/pictograms/lock.svg +0 -1
- package/dist/ui-library/assets/pictograms/london.svg +0 -1
- package/dist/ui-library/assets/pictograms/lounge.svg +0 -1
- package/dist/ui-library/assets/pictograms/lunch-learn.svg +0 -1
- package/dist/ui-library/assets/pictograms/machine-learning.svg +0 -1
- package/dist/ui-library/assets/pictograms/mail-copy.svg +0 -1
- package/dist/ui-library/assets/pictograms/mail.svg +0 -1
- package/dist/ui-library/assets/pictograms/map-marker.svg +0 -1
- package/dist/ui-library/assets/pictograms/map.svg +0 -1
- package/dist/ui-library/assets/pictograms/markets.svg +0 -1
- package/dist/ui-library/assets/pictograms/megaphone.svg +0 -1
- package/dist/ui-library/assets/pictograms/menu.svg +0 -1
- package/dist/ui-library/assets/pictograms/micro-payments.svg +0 -1
- package/dist/ui-library/assets/pictograms/microphone.svg +0 -1
- package/dist/ui-library/assets/pictograms/minus.svg +0 -1
- package/dist/ui-library/assets/pictograms/mobile-payment.svg +0 -1
- package/dist/ui-library/assets/pictograms/mobile-terminal.svg +0 -1
- package/dist/ui-library/assets/pictograms/monitoring.svg +0 -1
- package/dist/ui-library/assets/pictograms/more.svg +0 -1
- package/dist/ui-library/assets/pictograms/mountain.svg +0 -1
- package/dist/ui-library/assets/pictograms/movie-camera.svg +0 -1
- package/dist/ui-library/assets/pictograms/navigation.svg +0 -1
- package/dist/ui-library/assets/pictograms/no-smoking.svg +0 -1
- package/dist/ui-library/assets/pictograms/office.svg +0 -1
- package/dist/ui-library/assets/pictograms/outsorcing.svg +0 -1
- package/dist/ui-library/assets/pictograms/package.svg +0 -1
- package/dist/ui-library/assets/pictograms/paddle.svg +0 -1
- package/dist/ui-library/assets/pictograms/paninoteca.svg +0 -1
- package/dist/ui-library/assets/pictograms/paragraph.svg +0 -1
- package/dist/ui-library/assets/pictograms/paris.svg +0 -1
- package/dist/ui-library/assets/pictograms/parking.svg +0 -1
- package/dist/ui-library/assets/pictograms/pause.svg +0 -1
- package/dist/ui-library/assets/pictograms/pay-points.svg +0 -1
- package/dist/ui-library/assets/pictograms/pencil.svg +0 -1
- package/dist/ui-library/assets/pictograms/person-business.svg +0 -1
- package/dist/ui-library/assets/pictograms/person-callcenter.svg +0 -1
- package/dist/ui-library/assets/pictograms/person-client.svg +0 -1
- package/dist/ui-library/assets/pictograms/person-group.svg +0 -1
- package/dist/ui-library/assets/pictograms/person.svg +0 -1
- package/dist/ui-library/assets/pictograms/pet.svg +0 -1
- package/dist/ui-library/assets/pictograms/piechart.svg +0 -1
- package/dist/ui-library/assets/pictograms/pig.svg +0 -1
- package/dist/ui-library/assets/pictograms/piggy-bank.svg +0 -1
- package/dist/ui-library/assets/pictograms/planet.svg +0 -1
- package/dist/ui-library/assets/pictograms/play.svg +0 -1
- package/dist/ui-library/assets/pictograms/plus.svg +0 -1
- package/dist/ui-library/assets/pictograms/popsicle.svg +0 -1
- package/dist/ui-library/assets/pictograms/printer.svg +0 -1
- package/dist/ui-library/assets/pictograms/privacy.svg +0 -1
- package/dist/ui-library/assets/pictograms/process.svg +0 -1
- package/dist/ui-library/assets/pictograms/projector.svg +0 -1
- package/dist/ui-library/assets/pictograms/psp.svg +0 -1
- package/dist/ui-library/assets/pictograms/punch-card.svg +0 -1
- package/dist/ui-library/assets/pictograms/puzzle.svg +0 -1
- package/dist/ui-library/assets/pictograms/qr-scanner.svg +0 -1
- package/dist/ui-library/assets/pictograms/qr.svg +0 -1
- package/dist/ui-library/assets/pictograms/question.svg +0 -1
- package/dist/ui-library/assets/pictograms/rabbit.svg +0 -1
- package/dist/ui-library/assets/pictograms/rain.svg +0 -1
- package/dist/ui-library/assets/pictograms/realtime.svg +0 -1
- package/dist/ui-library/assets/pictograms/recurring-payments.svg +0 -1
- package/dist/ui-library/assets/pictograms/relaxing.svg +0 -1
- package/dist/ui-library/assets/pictograms/reporting.svg +0 -1
- package/dist/ui-library/assets/pictograms/responsive-design.svg +0 -1
- package/dist/ui-library/assets/pictograms/robo-advisor.svg +0 -1
- package/dist/ui-library/assets/pictograms/robotics.svg +0 -1
- package/dist/ui-library/assets/pictograms/rock.svg +0 -1
- package/dist/ui-library/assets/pictograms/rocket.svg +0 -1
- package/dist/ui-library/assets/pictograms/rss.svg +0 -1
- package/dist/ui-library/assets/pictograms/sad.svg +0 -1
- package/dist/ui-library/assets/pictograms/sailboat.svg +0 -1
- package/dist/ui-library/assets/pictograms/scales.svg +0 -1
- package/dist/ui-library/assets/pictograms/screen.svg +0 -1
- package/dist/ui-library/assets/pictograms/seal.svg +0 -1
- package/dist/ui-library/assets/pictograms/search.svg +0 -1
- package/dist/ui-library/assets/pictograms/sentiment-dissatisfied.svg +0 -1
- package/dist/ui-library/assets/pictograms/server.svg +0 -1
- package/dist/ui-library/assets/pictograms/service-center.svg +0 -1
- package/dist/ui-library/assets/pictograms/sextant.svg +0 -1
- package/dist/ui-library/assets/pictograms/share.svg +0 -1
- package/dist/ui-library/assets/pictograms/shield.svg +0 -1
- package/dist/ui-library/assets/pictograms/shop.svg +0 -1
- package/dist/ui-library/assets/pictograms/shopping-cart-chf.svg +0 -1
- package/dist/ui-library/assets/pictograms/shopping-cart-download.svg +0 -1
- package/dist/ui-library/assets/pictograms/shopping-cart.svg +0 -1
- package/dist/ui-library/assets/pictograms/signal.svg +0 -1
- package/dist/ui-library/assets/pictograms/simple-integration.svg +0 -1
- package/dist/ui-library/assets/pictograms/skull.svg +0 -1
- package/dist/ui-library/assets/pictograms/smoking.svg +0 -1
- package/dist/ui-library/assets/pictograms/snow.svg +0 -1
- package/dist/ui-library/assets/pictograms/snowflake.svg +0 -1
- package/dist/ui-library/assets/pictograms/snowman.svg +0 -1
- package/dist/ui-library/assets/pictograms/soc.svg +0 -1
- package/dist/ui-library/assets/pictograms/social-days.svg +0 -1
- package/dist/ui-library/assets/pictograms/social-trading.svg +0 -1
- package/dist/ui-library/assets/pictograms/softwarepackage.svg +0 -1
- package/dist/ui-library/assets/pictograms/sound.svg +0 -1
- package/dist/ui-library/assets/pictograms/speechbubble.svg +0 -1
- package/dist/ui-library/assets/pictograms/spirit.svg +0 -1
- package/dist/ui-library/assets/pictograms/split.svg +0 -1
- package/dist/ui-library/assets/pictograms/stability.svg +0 -1
- package/dist/ui-library/assets/pictograms/stairs.svg +0 -1
- package/dist/ui-library/assets/pictograms/star.svg +0 -1
- package/dist/ui-library/assets/pictograms/statistic.svg +0 -1
- package/dist/ui-library/assets/pictograms/stock.svg +0 -1
- package/dist/ui-library/assets/pictograms/stocks.svg +0 -1
- package/dist/ui-library/assets/pictograms/stop.svg +0 -1
- package/dist/ui-library/assets/pictograms/stopwatch.svg +0 -1
- package/dist/ui-library/assets/pictograms/storage.svg +0 -1
- package/dist/ui-library/assets/pictograms/success.svg +0 -1
- package/dist/ui-library/assets/pictograms/suitcase.svg +0 -1
- package/dist/ui-library/assets/pictograms/sun.svg +0 -1
- package/dist/ui-library/assets/pictograms/surveillance.svg +0 -1
- package/dist/ui-library/assets/pictograms/swiss.svg +0 -1
- package/dist/ui-library/assets/pictograms/tablet.svg +0 -1
- package/dist/ui-library/assets/pictograms/tachometer.svg +0 -1
- package/dist/ui-library/assets/pictograms/target.svg +0 -1
- package/dist/ui-library/assets/pictograms/telephone.svg +0 -1
- package/dist/ui-library/assets/pictograms/telescope.svg +0 -1
- package/dist/ui-library/assets/pictograms/temperature.svg +0 -1
- package/dist/ui-library/assets/pictograms/terminal.svg +0 -1
- package/dist/ui-library/assets/pictograms/ticket.svg +0 -1
- package/dist/ui-library/assets/pictograms/tin.svg +0 -1
- package/dist/ui-library/assets/pictograms/tokenization.svg +0 -1
- package/dist/ui-library/assets/pictograms/tool.svg +0 -1
- package/dist/ui-library/assets/pictograms/touch.svg +0 -1
- package/dist/ui-library/assets/pictograms/train.svg +0 -1
- package/dist/ui-library/assets/pictograms/trash.svg +0 -1
- package/dist/ui-library/assets/pictograms/umbrella.svg +0 -1
- package/dist/ui-library/assets/pictograms/unlock.svg +0 -1
- package/dist/ui-library/assets/pictograms/upload.svg +0 -1
- package/dist/ui-library/assets/pictograms/usb.svg +0 -1
- package/dist/ui-library/assets/pictograms/viena.svg +0 -1
- package/dist/ui-library/assets/pictograms/viking.svg +0 -1
- package/dist/ui-library/assets/pictograms/visibility.svg +0 -1
- package/dist/ui-library/assets/pictograms/wallet.svg +0 -1
- package/dist/ui-library/assets/pictograms/warning.svg +0 -1
- package/dist/ui-library/assets/pictograms/way-up.svg +0 -1
- package/dist/ui-library/assets/pictograms/wc-handicap.svg +0 -1
- package/dist/ui-library/assets/pictograms/wc-men.svg +0 -1
- package/dist/ui-library/assets/pictograms/wc-woman.svg +0 -1
- package/dist/ui-library/assets/pictograms/wearables.svg +0 -1
- package/dist/ui-library/assets/pictograms/webshop.svg +0 -1
- package/dist/ui-library/assets/pictograms/wlan-bluetooth.svg +0 -1
- package/dist/ui-library/assets/pictograms/wlan.svg +0 -1
- package/dist/ui-library/assets/pictograms/x.svg +0 -1
- package/dist/ui-library/assets/pictograms/zurich.svg +0 -1
- package/dist/ui-library/p-15d09aea.entry.js.map +0 -1
- package/dist/ui-library/p-1dfee586.entry.js +0 -2
- package/dist/ui-library/p-1dfee586.entry.js.map +0 -1
- package/dist/ui-library/p-220ffc25.entry.js.map +0 -1
- package/dist/ui-library/p-2bac7418.entry.js.map +0 -1
- package/dist/ui-library/p-2f001f2b.entry.js +0 -2
- package/dist/ui-library/p-2f001f2b.entry.js.map +0 -1
- package/dist/ui-library/p-33b2003b.entry.js.map +0 -1
- package/dist/ui-library/p-3aeff13e.entry.js +0 -2
- package/dist/ui-library/p-3aeff13e.entry.js.map +0 -1
- package/dist/ui-library/p-4d714149.entry.js.map +0 -1
- package/dist/ui-library/p-4e183258.entry.js.map +0 -1
- package/dist/ui-library/p-54c4de63.entry.js +0 -2
- package/dist/ui-library/p-54c4de63.entry.js.map +0 -1
- package/dist/ui-library/p-7b269878.entry.js +0 -2
- package/dist/ui-library/p-7b269878.entry.js.map +0 -1
- package/dist/ui-library/p-7b9de402.entry.js +0 -2
- package/dist/ui-library/p-7cdda567.entry.js.map +0 -1
- package/dist/ui-library/p-83806640.entry.js.map +0 -1
- package/dist/ui-library/p-894dd0f7.entry.js.map +0 -1
- package/dist/ui-library/p-8e5b7dbb.entry.js.map +0 -1
- package/dist/ui-library/p-BF09Gr5y.js +0 -3
- package/dist/ui-library/p-BF09Gr5y.js.map +0 -1
- package/dist/ui-library/p-b45553e9.entry.js +0 -2
- package/dist/ui-library/p-b45553e9.entry.js.map +0 -1
- package/dist/ui-library/p-b4bb8b5d.entry.js +0 -2
- package/dist/ui-library/p-b4bb8b5d.entry.js.map +0 -1
- package/dist/ui-library/p-c32c5ff0.entry.js +0 -2
- package/dist/ui-library/p-c32c5ff0.entry.js.map +0 -1
- package/dist/ui-library/p-d9224c76.entry.js.map +0 -1
- package/dist/ui-library/p-f1e48369.entry.js.map +0 -1
- package/dist/ui-library/p-fac22819.entry.js.map +0 -1
- package/dist/ui-library/p-fb60d596.entry.js +0 -2
- package/dist/ui-library/p-fb60d596.entry.js.map +0 -1
- package/dist/ui-library/p-tWZJdnMN.js +0 -2
- package/dist/ui-library/p-tWZJdnMN.js.map +0 -1
- /package/dist/ui-library/{p-f22b0f49.entry.js.map → p-174dd242.entry.js.map} +0 -0
- /package/dist/ui-library/{p-bf10bd79.entry.js.map → p-194037e9.entry.js.map} +0 -0
- /package/dist/ui-library/{p-03ac847d.entry.js.map → p-1cfa2df4.entry.js.map} +0 -0
- /package/dist/ui-library/{p-16fefaf7.entry.js.map → p-22ad3353.entry.js.map} +0 -0
- /package/dist/ui-library/{p-e2460554.entry.js.map → p-25ff87fe.entry.js.map} +0 -0
- /package/dist/ui-library/{p-314df297.entry.js.map → p-285666de.entry.js.map} +0 -0
- /package/dist/ui-library/{p-0f7aff92.entry.js.map → p-29d79fe3.entry.js.map} +0 -0
- /package/dist/ui-library/{p-abe6f5c4.entry.js.map → p-2a245a37.entry.js.map} +0 -0
- /package/dist/ui-library/{p-9a7aa0d7.entry.js.map → p-2a82de6c.entry.js.map} +0 -0
- /package/dist/ui-library/{p-35ebd705.entry.js.map → p-2fb16281.entry.js.map} +0 -0
- /package/dist/ui-library/{p-91511258.entry.js.map → p-31c5f8fa.entry.js.map} +0 -0
- /package/dist/ui-library/{p-2db80aaf.entry.js.map → p-362ff192.entry.js.map} +0 -0
- /package/dist/ui-library/{p-7722c3c9.entry.js.map → p-3d49deae.entry.js.map} +0 -0
- /package/dist/ui-library/{p-c72c0d32.entry.js.map → p-4152b371.entry.js.map} +0 -0
- /package/dist/ui-library/{p-8496e1cd.entry.js.map → p-494546c8.entry.js.map} +0 -0
- /package/dist/ui-library/{p-5003f61b.entry.js.map → p-54490d28.entry.js.map} +0 -0
- /package/dist/ui-library/{p-07dbfe1d.entry.js.map → p-5b52d097.entry.js.map} +0 -0
- /package/dist/ui-library/{p-080bf19c.entry.js.map → p-65e53a1b.entry.js.map} +0 -0
- /package/dist/ui-library/{p-d601b41b.entry.js.map → p-850aff56.entry.js.map} +0 -0
- /package/dist/ui-library/{p-dfd0956a.entry.js.map → p-8884a48b.entry.js.map} +0 -0
- /package/dist/ui-library/{p-041c4b5d.entry.js.map → p-91c195d3.entry.js.map} +0 -0
- /package/dist/ui-library/{p-a4f39b82.entry.js.map → p-9ec79195.entry.js.map} +0 -0
- /package/dist/ui-library/{p-eed32256.entry.js.map → p-a43843d6.entry.js.map} +0 -0
- /package/dist/ui-library/{p-6183f4c8.entry.js.map → p-ab043a8c.entry.js.map} +0 -0
- /package/dist/ui-library/{p-dc9badb8.entry.js.map → p-b37d9771.entry.js.map} +0 -0
- /package/dist/ui-library/{p-f8dccfa9.entry.js.map → p-c90a59fc.entry.js.map} +0 -0
- /package/dist/ui-library/{p-7b9de402.entry.js.map → p-cea7f777.entry.js.map} +0 -0
- /package/dist/ui-library/{p-9deb70a3.entry.js.map → p-d36ec323.entry.js.map} +0 -0
- /package/dist/ui-library/{p-367d2873.entry.js.map → p-dc2109d2.entry.js.map} +0 -0
- /package/dist/ui-library/{p-9656e941.entry.js.map → p-e85be7d2.entry.js.map} +0 -0
- /package/dist/ui-library/{p-696590b3.entry.js.map → p-ed6625e6.entry.js.map} +0 -0
- /package/dist/ui-library/{p-a747beba.entry.js.map → p-f6423fca.entry.js.map} +0 -0
- /package/dist/ui-library/{p-e516182e.entry.js.map → p-fe7d3665.entry.js.map} +0 -0
|
@@ -138,15 +138,15 @@ export class SixDetails {
|
|
|
138
138
|
}
|
|
139
139
|
render() {
|
|
140
140
|
const summaryIcon = this.hasContent && (this.summaryIcon || 'expand_more');
|
|
141
|
-
return (h("div", { key: '
|
|
141
|
+
return (h("div", { key: 'faed14eb237bca80205f5d2f3c03e0aa2be2aa8a', ref: (el) => (this.details = el), part: "base", class: {
|
|
142
142
|
details: true,
|
|
143
143
|
'details--open': this.open,
|
|
144
144
|
'details--disabled': this.disabled,
|
|
145
145
|
inline: this.inline,
|
|
146
|
-
} }, h("header", { key: '
|
|
146
|
+
} }, h("header", { key: '1be614a46a9bc877348438b591d2da153332c7ae', ref: (el) => (this.header = el), part: "header", id: `${this.componentId}-header`, class: "details__header", role: "button", "aria-expanded": this.open ? 'true' : 'false', "aria-controls": `${this.componentId}-content`, "aria-disabled": this.disabled ? 'true' : 'false', tabIndex: this.disabled ? -1 : 0, onClick: this.handleSummaryClick, onKeyDown: this.handleSummaryKeyDown }, h("div", { key: '9734b67556eec1f335043935761a19a11aa831eb', part: "summary", class: "details__summary" }, h("slot", { key: '91c5af23a7938f1f199d3c54ddaca3e669f3b80e', name: "summary" }, this.summary)), h("span", { key: 'e624c2b720729d51128024eabbc5416033931f36', part: "summary-icon", class: {
|
|
147
147
|
'details__summary-icon': true,
|
|
148
148
|
'details__summary-icon--animate': this.animateSummaryIcon,
|
|
149
|
-
} }, h("slot", { key: '
|
|
149
|
+
} }, h("slot", { key: 'cf6e43a08611306c4eee490042630b1a417df109', name: "summary-icon", onSlotchange: () => (this.animateSummaryIcon = false) }, summaryIcon && h("six-icon", { key: '6d28327bc4a439706ce71ad64056697f1b4c8448', size: this.summaryIconSize }, summaryIcon)))), h("div", { key: '21dc33a99a72f2eb639f35d48e7fa3369eb2d081', ref: (el) => (this.body = el), class: "details__body", onTransitionEnd: this.handleBodyTransitionEnd }, h("div", { key: 'c517d961bbc8f7ef4a21a5826b839c2eae98dd13', part: "content", id: `${this.componentId}-content`, class: "details__content", role: "region", "aria-labelledby": `${this.componentId}-header` }, h("slot", { key: 'e9e601dc421a3c31976f7ddf5b9bc681bbe6b8c1' })))));
|
|
150
150
|
}
|
|
151
151
|
static get is() { return "six-details"; }
|
|
152
152
|
static get encapsulation() { return "shadow"; }
|
|
@@ -164,6 +164,7 @@ export class SixDetails {
|
|
|
164
164
|
return {
|
|
165
165
|
"open": {
|
|
166
166
|
"type": "boolean",
|
|
167
|
+
"attribute": "open",
|
|
167
168
|
"mutable": true,
|
|
168
169
|
"complexType": {
|
|
169
170
|
"original": "boolean",
|
|
@@ -178,12 +179,12 @@ export class SixDetails {
|
|
|
178
179
|
},
|
|
179
180
|
"getter": false,
|
|
180
181
|
"setter": false,
|
|
181
|
-
"attribute": "open",
|
|
182
182
|
"reflect": true,
|
|
183
183
|
"defaultValue": "false"
|
|
184
184
|
},
|
|
185
185
|
"summary": {
|
|
186
186
|
"type": "string",
|
|
187
|
+
"attribute": "summary",
|
|
187
188
|
"mutable": false,
|
|
188
189
|
"complexType": {
|
|
189
190
|
"original": "string",
|
|
@@ -198,12 +199,12 @@ export class SixDetails {
|
|
|
198
199
|
},
|
|
199
200
|
"getter": false,
|
|
200
201
|
"setter": false,
|
|
201
|
-
"attribute": "summary",
|
|
202
202
|
"reflect": false,
|
|
203
203
|
"defaultValue": "''"
|
|
204
204
|
},
|
|
205
205
|
"summaryIcon": {
|
|
206
206
|
"type": "string",
|
|
207
|
+
"attribute": "summary-icon",
|
|
207
208
|
"mutable": false,
|
|
208
209
|
"complexType": {
|
|
209
210
|
"original": "string",
|
|
@@ -218,11 +219,11 @@ export class SixDetails {
|
|
|
218
219
|
},
|
|
219
220
|
"getter": false,
|
|
220
221
|
"setter": false,
|
|
221
|
-
"attribute": "summary-icon",
|
|
222
222
|
"reflect": false
|
|
223
223
|
},
|
|
224
224
|
"summaryIconSize": {
|
|
225
225
|
"type": "string",
|
|
226
|
+
"attribute": "summary-icon-size",
|
|
226
227
|
"mutable": false,
|
|
227
228
|
"complexType": {
|
|
228
229
|
"original": "| 'inherit'\n | 'xSmall'\n | 'small'\n | 'medium'\n | 'large'\n | 'xLarge'\n | 'xxLarge'\n | 'xxxLarge'",
|
|
@@ -237,12 +238,12 @@ export class SixDetails {
|
|
|
237
238
|
},
|
|
238
239
|
"getter": false,
|
|
239
240
|
"setter": false,
|
|
240
|
-
"attribute": "summary-icon-size",
|
|
241
241
|
"reflect": true,
|
|
242
242
|
"defaultValue": "'inherit'"
|
|
243
243
|
},
|
|
244
244
|
"disabled": {
|
|
245
245
|
"type": "boolean",
|
|
246
|
+
"attribute": "disabled",
|
|
246
247
|
"mutable": false,
|
|
247
248
|
"complexType": {
|
|
248
249
|
"original": "boolean",
|
|
@@ -257,12 +258,12 @@ export class SixDetails {
|
|
|
257
258
|
},
|
|
258
259
|
"getter": false,
|
|
259
260
|
"setter": false,
|
|
260
|
-
"attribute": "disabled",
|
|
261
261
|
"reflect": false,
|
|
262
262
|
"defaultValue": "false"
|
|
263
263
|
},
|
|
264
264
|
"inline": {
|
|
265
265
|
"type": "boolean",
|
|
266
|
+
"attribute": "inline",
|
|
266
267
|
"mutable": false,
|
|
267
268
|
"complexType": {
|
|
268
269
|
"original": "boolean",
|
|
@@ -277,12 +278,12 @@ export class SixDetails {
|
|
|
277
278
|
},
|
|
278
279
|
"getter": false,
|
|
279
280
|
"setter": false,
|
|
280
|
-
"attribute": "inline",
|
|
281
281
|
"reflect": false,
|
|
282
282
|
"defaultValue": "false"
|
|
283
283
|
},
|
|
284
284
|
"selectableEmpty": {
|
|
285
285
|
"type": "boolean",
|
|
286
|
+
"attribute": "selectable-empty",
|
|
286
287
|
"mutable": false,
|
|
287
288
|
"complexType": {
|
|
288
289
|
"original": "boolean",
|
|
@@ -297,12 +298,12 @@ export class SixDetails {
|
|
|
297
298
|
},
|
|
298
299
|
"getter": false,
|
|
299
300
|
"setter": false,
|
|
300
|
-
"attribute": "selectable-empty",
|
|
301
301
|
"reflect": false,
|
|
302
302
|
"defaultValue": "false"
|
|
303
303
|
},
|
|
304
304
|
"hasContent": {
|
|
305
305
|
"type": "boolean",
|
|
306
|
+
"attribute": "has-content",
|
|
306
307
|
"mutable": false,
|
|
307
308
|
"complexType": {
|
|
308
309
|
"original": "boolean",
|
|
@@ -317,7 +318,6 @@ export class SixDetails {
|
|
|
317
318
|
},
|
|
318
319
|
"getter": false,
|
|
319
320
|
"setter": false,
|
|
320
|
-
"attribute": "has-content",
|
|
321
321
|
"reflect": false,
|
|
322
322
|
"defaultValue": "true"
|
|
323
323
|
}
|
|
@@ -2,6 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { lockBodyScrolling, unlockBodyScrolling } from "../../utils/scroll";
|
|
3
3
|
import { hasSlot } from "../../utils/slot";
|
|
4
4
|
import Modal from "../../utils/modal";
|
|
5
|
+
import { animateTo } from "../../utils/animation";
|
|
5
6
|
let id = 0;
|
|
6
7
|
/**
|
|
7
8
|
* @since 1.0
|
|
@@ -43,18 +44,15 @@ export class SixDialog {
|
|
|
43
44
|
*/
|
|
44
45
|
this.noHeader = false;
|
|
45
46
|
this.handleCloseClick = () => {
|
|
46
|
-
this.
|
|
47
|
+
this.preventClose('close-button');
|
|
47
48
|
};
|
|
48
49
|
this.handleKeyDown = (event) => {
|
|
49
50
|
if (event.key === 'Escape') {
|
|
50
|
-
this.
|
|
51
|
+
this.preventClose('keyboard');
|
|
51
52
|
}
|
|
52
53
|
};
|
|
53
54
|
this.handleOverlayClick = () => {
|
|
54
|
-
|
|
55
|
-
if (!sixOverlayDismiss.defaultPrevented) {
|
|
56
|
-
this.hide();
|
|
57
|
-
}
|
|
55
|
+
this.preventClose('overlay');
|
|
58
56
|
};
|
|
59
57
|
this.handleSlotChange = () => {
|
|
60
58
|
this.hasFooter = hasSlot(this.host, 'footer');
|
|
@@ -130,13 +128,21 @@ export class SixDialog {
|
|
|
130
128
|
this.modal.deactivate();
|
|
131
129
|
unlockBodyScrolling(this.host);
|
|
132
130
|
}
|
|
131
|
+
preventClose(source) {
|
|
132
|
+
const sixRequestClose = this.sixRequestClose.emit({ source });
|
|
133
|
+
if (sixRequestClose.defaultPrevented && this.panel) {
|
|
134
|
+
animateTo(this.panel, [{ scale: 1 }, { scale: 1.01 }, { scale: 1 }], { duration: 250 });
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
this.hide();
|
|
138
|
+
}
|
|
133
139
|
render() {
|
|
134
|
-
return (h("div", { key: '
|
|
140
|
+
return (h("div", { key: 'b97915d5076bb83782212b61b1f65f694fd84b63', ref: (el) => (this.dialog = el), part: "base", class: {
|
|
135
141
|
dialog: true,
|
|
136
142
|
'dialog--open': this.open,
|
|
137
143
|
'dialog--visible': this.isVisible,
|
|
138
144
|
'dialog--has-footer': this.hasFooter,
|
|
139
|
-
}, onKeyDown: this.handleKeyDown, onTransitionEnd: this.handleTransitionEnd }, h("div", { key: '
|
|
145
|
+
}, onKeyDown: this.handleKeyDown, onTransitionEnd: this.handleTransitionEnd }, h("div", { key: '153379e70061e86842f65f3588329dc9c6d592db', part: "overlay", class: "dialog__overlay", onClick: this.handleOverlayClick }), h("div", { key: 'd0b78c413a70eeb6e6cbf75be7829a7d1f2ad715', ref: (el) => (this.panel = el), part: "panel", class: "dialog__panel", role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? 'false' : 'true', "aria-label": this.noHeader ? this.label : null, "aria-labelledby": !this.noHeader ? `${this.componentId}-title` : null, tabIndex: 0 }, !this.noHeader && (h("header", { key: '94e7d993356ea718e1ed87d4fe9e1d3faf0574f8', part: "header", class: "dialog__header" }, h("span", { key: '600591c9266dda80c457f41c54c92a8134d89bb8', part: "title", class: "dialog__title", id: `${this.componentId}-title` }, h("slot", { key: '4ad2904648821134ce3851682768b01086a68359', name: "label" }, this.label || String.fromCharCode(65279))), h("six-icon-button", { key: '4d793b14b41f7d9c43d5f9949cba6bfe7c6a442c', exportparts: "base:close-button", class: "dialog__close", name: "close", onClick: this.handleCloseClick }))), h("div", { key: '729f6cc36802fccf46958b2c259213aa9369fb94', part: "body", class: "dialog__body" }, h("slot", { key: 'ba299ae12ba958c705a807639aee911167997b38' })), h("footer", { key: '92cb57fa4c4dc066a49dd259832e43be619cc945', part: "footer", class: "dialog__footer" }, h("slot", { key: '63ea68abef52d91c04608ad1bf6d508a31012ed9', name: "footer", onSlotchange: this.handleSlotChange })))));
|
|
140
146
|
}
|
|
141
147
|
static get is() { return "six-dialog"; }
|
|
142
148
|
static get encapsulation() { return "shadow"; }
|
|
@@ -154,6 +160,7 @@ export class SixDialog {
|
|
|
154
160
|
return {
|
|
155
161
|
"open": {
|
|
156
162
|
"type": "boolean",
|
|
163
|
+
"attribute": "open",
|
|
157
164
|
"mutable": true,
|
|
158
165
|
"complexType": {
|
|
159
166
|
"original": "boolean",
|
|
@@ -168,12 +175,12 @@ export class SixDialog {
|
|
|
168
175
|
},
|
|
169
176
|
"getter": false,
|
|
170
177
|
"setter": false,
|
|
171
|
-
"attribute": "open",
|
|
172
178
|
"reflect": true,
|
|
173
179
|
"defaultValue": "false"
|
|
174
180
|
},
|
|
175
181
|
"label": {
|
|
176
182
|
"type": "string",
|
|
183
|
+
"attribute": "label",
|
|
177
184
|
"mutable": false,
|
|
178
185
|
"complexType": {
|
|
179
186
|
"original": "string",
|
|
@@ -188,12 +195,12 @@ export class SixDialog {
|
|
|
188
195
|
},
|
|
189
196
|
"getter": false,
|
|
190
197
|
"setter": false,
|
|
191
|
-
"attribute": "label",
|
|
192
198
|
"reflect": false,
|
|
193
199
|
"defaultValue": "''"
|
|
194
200
|
},
|
|
195
201
|
"noHeader": {
|
|
196
202
|
"type": "boolean",
|
|
203
|
+
"attribute": "no-header",
|
|
197
204
|
"mutable": false,
|
|
198
205
|
"complexType": {
|
|
199
206
|
"original": "boolean",
|
|
@@ -208,7 +215,6 @@ export class SixDialog {
|
|
|
208
215
|
},
|
|
209
216
|
"getter": false,
|
|
210
217
|
"setter": false,
|
|
211
|
-
"attribute": "no-header",
|
|
212
218
|
"reflect": false,
|
|
213
219
|
"defaultValue": "false"
|
|
214
220
|
}
|
|
@@ -327,23 +333,23 @@ export class SixDialog {
|
|
|
327
333
|
}
|
|
328
334
|
}
|
|
329
335
|
}, {
|
|
330
|
-
"method": "
|
|
331
|
-
"name": "six-dialog-
|
|
336
|
+
"method": "sixRequestClose",
|
|
337
|
+
"name": "six-dialog-request-close",
|
|
332
338
|
"bubbles": true,
|
|
333
339
|
"cancelable": true,
|
|
334
340
|
"composed": true,
|
|
335
341
|
"docs": {
|
|
336
342
|
"tags": [],
|
|
337
|
-
"text": "Emitted when the overlay
|
|
343
|
+
"text": "Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or\npressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing\nthe drawer will result in destructive behavior such as data loss."
|
|
338
344
|
},
|
|
339
345
|
"complexType": {
|
|
340
|
-
"original": "
|
|
341
|
-
"resolved": "
|
|
346
|
+
"original": "SixDialogRequestClose",
|
|
347
|
+
"resolved": "SixDialogRequestClose",
|
|
342
348
|
"references": {
|
|
343
|
-
"
|
|
344
|
-
"location": "
|
|
345
|
-
"path": "
|
|
346
|
-
"id": "src/
|
|
349
|
+
"SixDialogRequestClose": {
|
|
350
|
+
"location": "local",
|
|
351
|
+
"path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-dialog/six-dialog.tsx",
|
|
352
|
+
"id": "src/components/six-dialog/six-dialog.tsx::SixDialogRequestClose"
|
|
347
353
|
}
|
|
348
354
|
}
|
|
349
355
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"six-dialog.js","sourceRoot":"","sources":["../../../src/components/six-dialog/six-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACvG,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAGtC,IA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CAAC,KAAK,CAAC,CACpC,CACF;oBACP,wEACE,WAAW,EAAC,mBAAmB,EAC/B,KAAK,EAAC,eAAe,EACrB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,IAAI,CAAC,gBAAgB,GAC9B,CACK,CACV;gBAED,4DAAK,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,cAAc;oBACnC,8DAAQ,CACJ;gBAEN,+DAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,gBAAgB;oBAC1C,6DAAM,IAAI,EAAC,QAAQ,EAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,GAAI,CACpD,CACL,CACF,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { lockBodyScrolling, unlockBodyScrolling } from '../../utils/scroll';\nimport { hasSlot } from '../../utils/slot';\nimport Modal from '../../utils/modal';\nimport { EmptyPayload } from '../../utils/types';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The dialog's content.\n * @slot label - The dialog's label. Alternatively, you can use the label prop.\n * @slot footer - The dialog's footer, usually one or more buttons representing various options.\n *\n * @part base - The component's base wrapper.\n * @part overlay - The overlay.\n * @part panel - The dialog panel (where the dialog and its content is rendered).\n * @part header - The dialog header.\n * @part title - The dialog title.\n * @part close-button - The close button.\n * @part body - The dialog body.\n * @part footer - The dialog footer.\n *\n */\n@Component({\n tag: 'six-dialog',\n styleUrl: 'six-dialog.scss',\n shadow: true,\n})\nexport class SixDialog {\n private componentId = `dialog-${++id}`;\n private dialog?: HTMLElement;\n private modal?: Modal;\n private panel?: HTMLElement;\n private willShow = false;\n private willHide = false;\n\n @Element() host!: HTMLSixDialogElement;\n\n @State() hasFooter = false;\n @State() isVisible = false;\n\n /** Indicates whether the dialog is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /**\n * The dialog's label as displayed in the header. You should always include a relevant label even when using\n * `no-header`, as it is required for proper accessibility.\n */\n @Prop() label = '';\n\n /**\n * Set to true to disable the header. This will also remove the default close button, so please ensure you provide an\n * easy, accessible way for users to dismiss the dialog.\n */\n @Prop() noHeader = false;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n /** Emitted when the dialog opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-dialog-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dialog opens and all transitions are complete. */\n @Event({ eventName: 'six-dialog-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the dialog closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-dialog-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dialog closes and all transitions are complete. */\n @Event({ eventName: 'six-dialog-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the dialog opens and the panel gains focus. Calling `event.preventDefault()` will prevent focus and\n * allow you to set it on a different element in the dialog, such as an input or button.\n */\n @Event({ eventName: 'six-dialog-initial-focus' }) sixInitialFocus!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the overlay is clicked. Calling `event.preventDefault()` will prevent the dialog from closing. */\n @Event({ eventName: 'six-dialog-overlay-dismiss' }) sixOverlayDismiss!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.modal = new Modal(this.host, {\n onFocusOut: () => this.panel?.focus(),\n });\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n componentDidLoad() {\n // Show on init if open\n if (this.open) {\n this.show();\n }\n }\n\n disconnectedCallback() {\n unlockBodyScrolling(this.host);\n }\n\n /** Shows the dialog */\n @Method()\n async show() {\n if (this.willShow || this.modal == null || this.panel == null || this.dialog == null) {\n return;\n }\n const panel = this.panel;\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.willShow = true;\n this.isVisible = true;\n this.open = true;\n this.modal.activate();\n\n lockBodyScrolling(this.host);\n\n if (this.open) {\n requestAnimationFrame(() => {\n const sixInitialFocus = this.sixInitialFocus.emit();\n if (!sixInitialFocus.defaultPrevented) {\n panel.focus({ preventScroll: true });\n }\n });\n }\n }\n\n /** Hides the dialog */\n @Method()\n async hide() {\n if (this.willHide || this.modal == null) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n this.willHide = true;\n this.open = false;\n this.modal.deactivate();\n\n unlockBodyScrolling(this.host);\n }\n\n private handleCloseClick = () => {\n this.hide();\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n this.hide();\n }\n };\n\n private handleOverlayClick = () => {\n const sixOverlayDismiss = this.sixOverlayDismiss.emit();\n\n if (!sixOverlayDismiss.defaultPrevented) {\n this.hide();\n }\n };\n\n private handleSlotChange = () => {\n this.hasFooter = hasSlot(this.host, 'footer');\n };\n\n private handleTransitionEnd = (event: TransitionEvent) => {\n const target = event.target as HTMLElement;\n\n // Ensure we only emit one event when the target element is no longer visible\n if (event.propertyName === 'opacity' && target.classList.contains('dialog__panel')) {\n this.isVisible = this.open;\n this.willShow = false;\n this.willHide = false;\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n }\n };\n\n render() {\n return (\n <div\n ref={(el) => (this.dialog = el)}\n part=\"base\"\n class={{\n dialog: true,\n 'dialog--open': this.open,\n 'dialog--visible': this.isVisible,\n 'dialog--has-footer': this.hasFooter,\n }}\n onKeyDown={this.handleKeyDown}\n onTransitionEnd={this.handleTransitionEnd}\n >\n <div part=\"overlay\" class=\"dialog__overlay\" onClick={this.handleOverlayClick} />\n\n <div\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n class=\"dialog__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-hidden={this.open ? 'false' : 'true'}\n aria-label={this.noHeader ? this.label : null}\n aria-labelledby={!this.noHeader ? `${this.componentId}-title` : null}\n tabIndex={0}\n >\n {!this.noHeader && (\n <header part=\"header\" class=\"dialog__header\">\n <span part=\"title\" class=\"dialog__title\" id={`${this.componentId}-title`}>\n <slot name=\"label\">\n {/* If there's no label, use an invisible character to prevent the heading from collapsing */}\n {this.label || String.fromCharCode(65279)}\n </slot>\n </span>\n <six-icon-button\n exportparts=\"base:close-button\"\n class=\"dialog__close\"\n name=\"close\"\n onClick={this.handleCloseClick}\n />\n </header>\n )}\n\n <div part=\"body\" class=\"dialog__body\">\n <slot />\n </div>\n\n <footer part=\"footer\" class=\"dialog__footer\">\n <slot name=\"footer\" onSlotchange={this.handleSlotChange} />\n </footer>\n </div>\n </div>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"six-dialog.js","sourceRoot":"","sources":["../../../src/components/six-dialog/six-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACvG,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CA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AAC,CAAC,GAAG,IAAI,CAAC,WAAW,QAAQ,CAAC,CAAC,CAAC,IAAI,EACpE,QAAQ,EAAE,CAAC;gBAEV,CAAC,IAAI,CAAC,QAAQ,IAAI,CACjB,+DAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,gBAAgB;oBAC1C,6DAAM,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,eAAe,EAAC,EAAE,EAAE,GAAG,IAAI,CAAC,WAAW,QAAQ;wBACtE,6DAAM,IAAI,EAAC,OAAO,IAEf,IAAI,CAAC,KAAK,IAAI,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CACpC,CACF;oBACP,wEACE,WAAW,EAAC,mBAAmB,EAC/B,KAAK,EAAC,eAAe,EACrB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,IAAI,CAAC,gBAAgB,GAC9B,CACK,CACV;gBAED,4DAAK,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,cAAc;oBACnC,8DAAQ,CACJ;gBAEN,+DAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,gBAAgB;oBAC1C,6DAAM,IAAI,EAAC,QAAQ,EAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,GAAI,CACpD,CACL,CACF,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { lockBodyScrolling, unlockBodyScrolling } from '../../utils/scroll';\nimport { hasSlot } from '../../utils/slot';\nimport Modal from '../../utils/modal';\nimport { EmptyPayload } from '../../utils/types';\nimport { animateTo } from '../../utils/animation';\n\nexport interface SixDialogRequestClose {\n source: 'close-button' | 'keyboard' | 'overlay';\n}\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The dialog's content.\n * @slot label - The dialog's label. Alternatively, you can use the label prop.\n * @slot footer - The dialog's footer, usually one or more buttons representing various options.\n *\n * @part base - The component's base wrapper.\n * @part overlay - The overlay.\n * @part panel - The dialog panel (where the dialog and its content is rendered).\n * @part header - The dialog header.\n * @part title - The dialog title.\n * @part close-button - The close button.\n * @part body - The dialog body.\n * @part footer - The dialog footer.\n *\n */\n@Component({\n tag: 'six-dialog',\n styleUrl: 'six-dialog.scss',\n shadow: true,\n})\nexport class SixDialog {\n private componentId = `dialog-${++id}`;\n private dialog?: HTMLElement;\n private modal?: Modal;\n private panel?: HTMLElement;\n private willShow = false;\n private willHide = false;\n\n @Element() host!: HTMLSixDialogElement;\n\n @State() hasFooter = false;\n @State() isVisible = false;\n\n /** Indicates whether the dialog is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /**\n * The dialog's label as displayed in the header. You should always include a relevant label even when using\n * `no-header`, as it is required for proper accessibility.\n */\n @Prop() label = '';\n\n /**\n * Set to true to disable the header. This will also remove the default close button, so please ensure you provide an\n * easy, accessible way for users to dismiss the dialog.\n */\n @Prop() noHeader = false;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n /** Emitted when the dialog opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-dialog-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dialog opens and all transitions are complete. */\n @Event({ eventName: 'six-dialog-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the dialog closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-dialog-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dialog closes and all transitions are complete. */\n @Event({ eventName: 'six-dialog-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the dialog opens and the panel gains focus. Calling `event.preventDefault()` will prevent focus and\n * allow you to set it on a different element in the dialog, such as an input or button.\n */\n @Event({ eventName: 'six-dialog-initial-focus' }) sixInitialFocus!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or\n * pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing\n * the drawer will result in destructive behavior such as data loss.\n */\n @Event({ eventName: 'six-dialog-request-close' }) sixRequestClose!: EventEmitter<SixDialogRequestClose>;\n\n connectedCallback() {\n this.modal = new Modal(this.host, {\n onFocusOut: () => this.panel?.focus(),\n });\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n componentDidLoad() {\n // Show on init if open\n if (this.open) {\n this.show();\n }\n }\n\n disconnectedCallback() {\n unlockBodyScrolling(this.host);\n }\n\n /** Shows the dialog */\n @Method()\n async show() {\n if (this.willShow || this.modal == null || this.panel == null || this.dialog == null) {\n return;\n }\n const panel = this.panel;\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.willShow = true;\n this.isVisible = true;\n this.open = true;\n this.modal.activate();\n\n lockBodyScrolling(this.host);\n\n if (this.open) {\n requestAnimationFrame(() => {\n const sixInitialFocus = this.sixInitialFocus.emit();\n if (!sixInitialFocus.defaultPrevented) {\n panel.focus({ preventScroll: true });\n }\n });\n }\n }\n\n /** Hides the dialog */\n @Method()\n async hide() {\n if (this.willHide || this.modal == null) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n this.willHide = true;\n this.open = false;\n this.modal.deactivate();\n\n unlockBodyScrolling(this.host);\n }\n\n private handleCloseClick = () => {\n this.preventClose('close-button');\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n this.preventClose('keyboard');\n }\n };\n\n private handleOverlayClick = () => {\n this.preventClose('overlay');\n };\n\n private preventClose(source: 'close-button' | 'keyboard' | 'overlay') {\n const sixRequestClose = this.sixRequestClose.emit({ source });\n\n if (sixRequestClose.defaultPrevented && this.panel) {\n animateTo(this.panel, [{ scale: 1 }, { scale: 1.01 }, { scale: 1 }], { duration: 250 });\n return;\n }\n\n this.hide();\n }\n\n private handleSlotChange = () => {\n this.hasFooter = hasSlot(this.host, 'footer');\n };\n\n private handleTransitionEnd = (event: TransitionEvent) => {\n const target = event.target as HTMLElement;\n\n // Ensure we only emit one event when the target element is no longer visible\n if (event.propertyName === 'opacity' && target.classList.contains('dialog__panel')) {\n this.isVisible = this.open;\n this.willShow = false;\n this.willHide = false;\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n }\n };\n\n render() {\n return (\n <div\n ref={(el) => (this.dialog = el)}\n part=\"base\"\n class={{\n dialog: true,\n 'dialog--open': this.open,\n 'dialog--visible': this.isVisible,\n 'dialog--has-footer': this.hasFooter,\n }}\n onKeyDown={this.handleKeyDown}\n onTransitionEnd={this.handleTransitionEnd}\n >\n <div part=\"overlay\" class=\"dialog__overlay\" onClick={this.handleOverlayClick} />\n\n <div\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n class=\"dialog__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-hidden={this.open ? 'false' : 'true'}\n aria-label={this.noHeader ? this.label : null}\n aria-labelledby={!this.noHeader ? `${this.componentId}-title` : null}\n tabIndex={0}\n >\n {!this.noHeader && (\n <header part=\"header\" class=\"dialog__header\">\n <span part=\"title\" class=\"dialog__title\" id={`${this.componentId}-title`}>\n <slot name=\"label\">\n {/* If there's no label, use an invisible character to prevent the heading from collapsing */}\n {this.label || String.fromCharCode(65279)}\n </slot>\n </span>\n <six-icon-button\n exportparts=\"base:close-button\"\n class=\"dialog__close\"\n name=\"close\"\n onClick={this.handleCloseClick}\n />\n </header>\n )}\n\n <div part=\"body\" class=\"dialog__body\">\n <slot />\n </div>\n\n <footer part=\"footer\" class=\"dialog__footer\">\n <slot name=\"footer\" onSlotchange={this.handleSlotChange} />\n </footer>\n </div>\n </div>\n );\n }\n}\n"]}
|
|
@@ -2,6 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { lockBodyScrolling, unlockBodyScrolling } from "../../utils/scroll";
|
|
3
3
|
import { hasSlot } from "../../utils/slot";
|
|
4
4
|
import Modal from "../../utils/modal";
|
|
5
|
+
import { animateTo } from "../../utils/animation";
|
|
5
6
|
let id = 0;
|
|
6
7
|
/**
|
|
7
8
|
* @since 1.0
|
|
@@ -49,18 +50,15 @@ export class SixDrawer {
|
|
|
49
50
|
*/
|
|
50
51
|
this.noHeader = false;
|
|
51
52
|
this.handleCloseClick = () => {
|
|
52
|
-
this.
|
|
53
|
+
this.preventClose('close-button');
|
|
53
54
|
};
|
|
54
55
|
this.handleKeyDown = (event) => {
|
|
55
56
|
if (event.key === 'Escape') {
|
|
56
|
-
this.
|
|
57
|
+
this.preventClose('keyboard');
|
|
57
58
|
}
|
|
58
59
|
};
|
|
59
60
|
this.handleOverlayClick = () => {
|
|
60
|
-
|
|
61
|
-
if (!sixOverlayDismiss.defaultPrevented) {
|
|
62
|
-
this.hide();
|
|
63
|
-
}
|
|
61
|
+
this.preventClose('overlay');
|
|
64
62
|
};
|
|
65
63
|
this.handleSlotChange = () => {
|
|
66
64
|
this.hasFooter = hasSlot(this.host, 'footer');
|
|
@@ -138,6 +136,14 @@ export class SixDrawer {
|
|
|
138
136
|
this.modal.deactivate();
|
|
139
137
|
unlockBodyScrolling(this.host);
|
|
140
138
|
}
|
|
139
|
+
preventClose(source) {
|
|
140
|
+
const sixRequestClose = this.sixRequestClose.emit({ source });
|
|
141
|
+
if (sixRequestClose.defaultPrevented && this.panel) {
|
|
142
|
+
animateTo(this.panel, [{ scale: 1 }, { scale: 1.01 }, { scale: 1 }], { duration: 250 });
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
this.hide();
|
|
146
|
+
}
|
|
141
147
|
resetTransitionVariables() {
|
|
142
148
|
this.isVisible = this.open;
|
|
143
149
|
this.willShow = false;
|
|
@@ -145,7 +151,7 @@ export class SixDrawer {
|
|
|
145
151
|
this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();
|
|
146
152
|
}
|
|
147
153
|
render() {
|
|
148
|
-
return (h("div", { key: '
|
|
154
|
+
return (h("div", { key: '17d045e1a06aa424bc59f7316525df73ae031227', ref: (el) => (this.drawer = el), part: "base", class: {
|
|
149
155
|
drawer: true,
|
|
150
156
|
'drawer--open': this.open,
|
|
151
157
|
'drawer--visible': this.isVisible,
|
|
@@ -156,7 +162,7 @@ export class SixDrawer {
|
|
|
156
162
|
'drawer--contained': this.contained,
|
|
157
163
|
'drawer--fixed': !this.contained,
|
|
158
164
|
'drawer--has-footer': this.hasFooter,
|
|
159
|
-
}, onKeyDown: this.handleKeyDown, onTransitionEnd: this.handleTransitionEnd }, h("div", { key: '
|
|
165
|
+
}, onKeyDown: this.handleKeyDown, onTransitionEnd: this.handleTransitionEnd }, h("div", { key: '804fcb75cc49156bfcb6af8958a40c33c20f8202', part: "overlay", class: "drawer__overlay", onClick: this.handleOverlayClick, tabIndex: -1 }), h("div", { key: 'e5095b200d370fe98163b3f0fa2bbf42ece7fa5f', ref: (el) => (this.panel = el), part: "panel", class: "drawer__panel", role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? 'false' : 'true', "aria-label": this.noHeader ? this.label : null, "aria-labelledby": !this.noHeader ? `${this.componentId}-title` : null, tabIndex: 0 }, !this.noHeader && (h("header", { key: 'c479cfa062277a6f1cf0f7433cff73e94139faea', part: "header", class: "drawer__header" }, h("span", { key: '8d60e0eb1cecc9c8f2091b5b8c9aefaa2aac3c91', part: "title", class: "drawer__title", id: `${this.componentId}-title` }, h("slot", { key: '26c5fb0feb42c9db7625e98f10cd5cbd0acfd742', name: "label" }, this.label || String.fromCharCode(65279))), h("six-icon-button", { key: '454ee7cea511b470ae224c6559ee99f10e9cf095', exportparts: "base:close-button", class: "drawer__close", name: "close", onClick: this.handleCloseClick }))), h("div", { key: '4f07be9128e7d2a292298b3e22ec0e5105adc3f3', part: "body", class: "drawer__body" }, h("slot", { key: '856a4bd2ee8dacc8b6124d87d8e501a8bd8c3f23' })), h("footer", { key: '721ca11e6b5470d2170d9bc929ba2d973faf9117', part: "footer", class: "drawer__footer" }, h("slot", { key: 'afb8d35c7fee0fa3e9833ea1b381c2d81f8cb5b0', name: "footer", onSlotchange: this.handleSlotChange })))));
|
|
160
166
|
}
|
|
161
167
|
static get is() { return "six-drawer"; }
|
|
162
168
|
static get encapsulation() { return "shadow"; }
|
|
@@ -174,6 +180,7 @@ export class SixDrawer {
|
|
|
174
180
|
return {
|
|
175
181
|
"open": {
|
|
176
182
|
"type": "boolean",
|
|
183
|
+
"attribute": "open",
|
|
177
184
|
"mutable": true,
|
|
178
185
|
"complexType": {
|
|
179
186
|
"original": "boolean",
|
|
@@ -188,12 +195,12 @@ export class SixDrawer {
|
|
|
188
195
|
},
|
|
189
196
|
"getter": false,
|
|
190
197
|
"setter": false,
|
|
191
|
-
"attribute": "open",
|
|
192
198
|
"reflect": true,
|
|
193
199
|
"defaultValue": "false"
|
|
194
200
|
},
|
|
195
201
|
"label": {
|
|
196
202
|
"type": "string",
|
|
203
|
+
"attribute": "label",
|
|
197
204
|
"mutable": false,
|
|
198
205
|
"complexType": {
|
|
199
206
|
"original": "string",
|
|
@@ -208,12 +215,12 @@ export class SixDrawer {
|
|
|
208
215
|
},
|
|
209
216
|
"getter": false,
|
|
210
217
|
"setter": false,
|
|
211
|
-
"attribute": "label",
|
|
212
218
|
"reflect": false,
|
|
213
219
|
"defaultValue": "''"
|
|
214
220
|
},
|
|
215
221
|
"placement": {
|
|
216
222
|
"type": "string",
|
|
223
|
+
"attribute": "placement",
|
|
217
224
|
"mutable": false,
|
|
218
225
|
"complexType": {
|
|
219
226
|
"original": "'top' | 'right' | 'bottom' | 'left'",
|
|
@@ -228,12 +235,12 @@ export class SixDrawer {
|
|
|
228
235
|
},
|
|
229
236
|
"getter": false,
|
|
230
237
|
"setter": false,
|
|
231
|
-
"attribute": "placement",
|
|
232
238
|
"reflect": false,
|
|
233
239
|
"defaultValue": "'right'"
|
|
234
240
|
},
|
|
235
241
|
"contained": {
|
|
236
242
|
"type": "boolean",
|
|
243
|
+
"attribute": "contained",
|
|
237
244
|
"mutable": false,
|
|
238
245
|
"complexType": {
|
|
239
246
|
"original": "boolean",
|
|
@@ -248,12 +255,12 @@ export class SixDrawer {
|
|
|
248
255
|
},
|
|
249
256
|
"getter": false,
|
|
250
257
|
"setter": false,
|
|
251
|
-
"attribute": "contained",
|
|
252
258
|
"reflect": false,
|
|
253
259
|
"defaultValue": "false"
|
|
254
260
|
},
|
|
255
261
|
"noHeader": {
|
|
256
262
|
"type": "boolean",
|
|
263
|
+
"attribute": "no-header",
|
|
257
264
|
"mutable": false,
|
|
258
265
|
"complexType": {
|
|
259
266
|
"original": "boolean",
|
|
@@ -268,7 +275,6 @@ export class SixDrawer {
|
|
|
268
275
|
},
|
|
269
276
|
"getter": false,
|
|
270
277
|
"setter": false,
|
|
271
|
-
"attribute": "no-header",
|
|
272
278
|
"reflect": false,
|
|
273
279
|
"defaultValue": "false"
|
|
274
280
|
}
|
|
@@ -387,23 +393,23 @@ export class SixDrawer {
|
|
|
387
393
|
}
|
|
388
394
|
}
|
|
389
395
|
}, {
|
|
390
|
-
"method": "
|
|
391
|
-
"name": "six-drawer-
|
|
396
|
+
"method": "sixRequestClose",
|
|
397
|
+
"name": "six-drawer-request-close",
|
|
392
398
|
"bubbles": true,
|
|
393
399
|
"cancelable": true,
|
|
394
400
|
"composed": true,
|
|
395
401
|
"docs": {
|
|
396
402
|
"tags": [],
|
|
397
|
-
"text": "Emitted when the overlay
|
|
403
|
+
"text": "Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or\npressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing\nthe drawer will result in destructive behavior such as data loss."
|
|
398
404
|
},
|
|
399
405
|
"complexType": {
|
|
400
|
-
"original": "
|
|
401
|
-
"resolved": "
|
|
406
|
+
"original": "SixDrawerRequestClose",
|
|
407
|
+
"resolved": "SixDrawerRequestClose",
|
|
402
408
|
"references": {
|
|
403
|
-
"
|
|
404
|
-
"location": "
|
|
405
|
-
"path": "
|
|
406
|
-
"id": "src/
|
|
409
|
+
"SixDrawerRequestClose": {
|
|
410
|
+
"location": "local",
|
|
411
|
+
"path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-drawer/six-drawer.tsx",
|
|
412
|
+
"id": "src/components/six-drawer/six-drawer.tsx::SixDrawerRequestClose"
|
|
407
413
|
}
|
|
408
414
|
}
|
|
409
415
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"six-drawer.js","sourceRoot":"","sources":["../../../src/components/six-drawer/six-drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACvG,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAGtC,IAAI,EAAE,GAAG,CAAC,CAAC;AAEX;;;;;;;;;;;;;;;;;;GAkBG;AAOH,MAAM,OAAO,SAAS;IALtB;QAMU,gBAAW,GAAG,UAAU,EAAE,EAAE,EAAE,CAAC;QAI/B,aAAQ,GAAG,KAAK,CAAC;QACjB,aAAQ,GAAG,KAAK,CAAC;QAIhB,cAAS,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":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { lockBodyScrolling, unlockBodyScrolling } from '../../utils/scroll';\nimport { hasSlot } from '../../utils/slot';\nimport Modal from '../../utils/modal';\nimport { EmptyPayload } from '../../utils/types';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The drawer's content.\n * @slot label - The drawer's label. Alternatively, you can use the label prop.\n * @slot footer - The drawer's footer, usually one or more buttons representing various options.\n *\n * @part base - The component's base wrapper.\n * @part overlay - The overlay.\n * @part panel - The drawer panel (where the drawer and its content is rendered).\n * @part header - The drawer header.\n * @part title - The drawer title.\n * @part close-button - The close button.\n * @part body - The drawer body.\n * @part footer - The drawer footer.\n */\n\n@Component({\n tag: 'six-drawer',\n styleUrl: 'six-drawer.scss',\n shadow: true,\n})\nexport class SixDrawer {\n private componentId = `drawer-${++id}`;\n private drawer?: HTMLElement;\n private modal?: Modal;\n private panel?: HTMLElement;\n private willShow = false;\n private willHide = false;\n\n @Element() host!: HTMLSixDrawerElement;\n\n @State() hasFooter = false;\n @State() isVisible = false;\n\n /** Indicates whether the drawer is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /**\n * The drawer's label as displayed in the header. You should always include a relevant label even when using\n * `no-header`, as it is required for proper accessibility.\n */\n @Prop() label = '';\n\n /** The direction from which the drawer will open. */\n @Prop() placement: 'top' | 'right' | 'bottom' | 'left' = 'right';\n\n /**\n * By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\n * its parent element, set this prop and add `position: relative` to the parent.\n */\n @Prop() contained = false;\n\n /**\n * Removes the header. This will also remove the default close button, so please ensure you provide an easy,\n * accessible way for users to dismiss the drawer.\n */\n @Prop() noHeader = false;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n /** Emitted when the drawer opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-drawer-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the drawer opens and all transitions are complete. */\n @Event({ eventName: 'six-drawer-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the drawer closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-drawer-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the drawer closes and all transitions are complete. */\n @Event({ eventName: 'six-drawer-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the drawer opens and the panel gains focus. Calling `event.preventDefault()` will prevent focus and\n * allow you to set it on a different element in the drawer, such as an input or button.\n */\n @Event({ eventName: 'six-drawer-initial-focus' }) sixInitialFocus!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the overlay is clicked. Calling `event.preventDefault()` will prevent the drawer from closing. */\n @Event({ eventName: 'six-drawer-overlay-dismiss' }) sixOverlayDismiss!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.modal = new Modal(this.host, {\n onFocusOut: () => (this.contained ? null : this.panel?.focus()),\n });\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n\n // Show on init if open\n if (this.open) {\n this.show();\n // if the sidebar is open by default we need to manually reset the\n // transition variables since there will be no transition event\n this.resetTransitionVariables();\n }\n }\n\n disconnectedCallback() {\n unlockBodyScrolling(this.host);\n }\n\n /** Shows the drawer */\n @Method()\n async show() {\n if (this.willShow || this.modal == null || this.panel == null || this.drawer == null) {\n return;\n }\n const panel = this.panel;\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.willShow = true;\n this.isVisible = true;\n this.open = true;\n\n // Lock body scrolling only if the drawer isn't contained\n if (!this.contained) {\n this.modal.activate();\n lockBodyScrolling(this.host);\n }\n\n if (this.open) {\n // Wait for the next frame before setting initial focus so the dialog is technically visible\n requestAnimationFrame(() => {\n const sixInitialFocus = this.sixInitialFocus.emit();\n if (!sixInitialFocus.defaultPrevented) {\n panel.focus({ preventScroll: true });\n }\n });\n }\n }\n\n /** Hides the drawer */\n @Method()\n async hide() {\n if (this.willHide || this.modal == null) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n this.willHide = true;\n this.open = false;\n this.modal.deactivate();\n\n unlockBodyScrolling(this.host);\n }\n\n private handleCloseClick = () => {\n this.hide();\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n this.hide();\n }\n };\n\n private handleOverlayClick = () => {\n const sixOverlayDismiss = this.sixOverlayDismiss.emit();\n\n if (!sixOverlayDismiss.defaultPrevented) {\n this.hide();\n }\n };\n\n private handleSlotChange = () => {\n this.hasFooter = hasSlot(this.host, 'footer');\n };\n\n private handleTransitionEnd = (event: TransitionEvent) => {\n const target = event.target as HTMLElement;\n\n // Ensure we only emit one event when the target element is no longer visible\n if (event.propertyName === 'transform' && target.classList.contains('drawer__panel')) {\n this.resetTransitionVariables();\n }\n };\n\n private resetTransitionVariables() {\n this.isVisible = this.open;\n this.willShow = false;\n this.willHide = false;\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n }\n\n render() {\n return (\n <div\n ref={(el) => (this.drawer = el)}\n part=\"base\"\n class={{\n drawer: true,\n 'drawer--open': this.open,\n 'drawer--visible': this.isVisible,\n 'drawer--top': this.placement === 'top',\n 'drawer--right': this.placement === 'right',\n 'drawer--bottom': this.placement === 'bottom',\n 'drawer--left': this.placement === 'left',\n 'drawer--contained': this.contained,\n 'drawer--fixed': !this.contained,\n 'drawer--has-footer': this.hasFooter,\n }}\n onKeyDown={this.handleKeyDown}\n onTransitionEnd={this.handleTransitionEnd}\n >\n <div part=\"overlay\" class=\"drawer__overlay\" onClick={this.handleOverlayClick} tabIndex={-1} />\n\n <div\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n class=\"drawer__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-hidden={this.open ? 'false' : 'true'}\n aria-label={this.noHeader ? this.label : null}\n aria-labelledby={!this.noHeader ? `${this.componentId}-title` : null}\n tabIndex={0}\n >\n {!this.noHeader && (\n <header part=\"header\" class=\"drawer__header\">\n <span part=\"title\" class=\"drawer__title\" id={`${this.componentId}-title`}>\n <slot name=\"label\">\n {/* If there's no label, use an invisible character to prevent the heading from collapsing */}\n {this.label || String.fromCharCode(65279)}\n </slot>\n </span>\n <six-icon-button\n exportparts=\"base:close-button\"\n class=\"drawer__close\"\n name=\"close\"\n onClick={this.handleCloseClick}\n />\n </header>\n )}\n\n <div part=\"body\" class=\"drawer__body\">\n <slot />\n </div>\n\n <footer part=\"footer\" class=\"drawer__footer\">\n <slot name=\"footer\" onSlotchange={this.handleSlotChange} />\n </footer>\n </div>\n </div>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"six-drawer.js","sourceRoot":"","sources":["../../../src/components/six-drawer/six-drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACvG,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAMlD,IAAI,EAAE,GAAG,CAAC,CAAC;AAEX;;;;;;;;;;;;;;;;;;GAkBG;AAOH,MAAM,OAAO,SAAS;IALtB;QAMU,gBAAW,GAAG,UAAU,EAAE,EAAE,EAAE,CAAC;QAI/B,aAAQ,GAAG,KAAK,CAAC;QACjB,aAAQ,GAAG,KAAK,CAAC;QAIhB,cAAS,GAAG,KAAK,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { lockBodyScrolling, unlockBodyScrolling } from '../../utils/scroll';\nimport { hasSlot } from '../../utils/slot';\nimport Modal from '../../utils/modal';\nimport { EmptyPayload } from '../../utils/types';\nimport { animateTo } from '../../utils/animation';\n\nexport interface SixDrawerRequestClose {\n source: 'close-button' | 'keyboard' | 'overlay';\n}\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The drawer's content.\n * @slot label - The drawer's label. Alternatively, you can use the label prop.\n * @slot footer - The drawer's footer, usually one or more buttons representing various options.\n *\n * @part base - The component's base wrapper.\n * @part overlay - The overlay.\n * @part panel - The drawer panel (where the drawer and its content is rendered).\n * @part header - The drawer header.\n * @part title - The drawer title.\n * @part close-button - The close button.\n * @part body - The drawer body.\n * @part footer - The drawer footer.\n */\n\n@Component({\n tag: 'six-drawer',\n styleUrl: 'six-drawer.scss',\n shadow: true,\n})\nexport class SixDrawer {\n private componentId = `drawer-${++id}`;\n private drawer?: HTMLElement;\n private modal?: Modal;\n private panel?: HTMLElement;\n private willShow = false;\n private willHide = false;\n\n @Element() host!: HTMLSixDrawerElement;\n\n @State() hasFooter = false;\n @State() isVisible = false;\n\n /** Indicates whether the drawer is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /**\n * The drawer's label as displayed in the header. You should always include a relevant label even when using\n * `no-header`, as it is required for proper accessibility.\n */\n @Prop() label = '';\n\n /** The direction from which the drawer will open. */\n @Prop() placement: 'top' | 'right' | 'bottom' | 'left' = 'right';\n\n /**\n * By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\n * its parent element, set this prop and add `position: relative` to the parent.\n */\n @Prop() contained = false;\n\n /**\n * Removes the header. This will also remove the default close button, so please ensure you provide an easy,\n * accessible way for users to dismiss the drawer.\n */\n @Prop() noHeader = false;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n /** Emitted when the drawer opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-drawer-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the drawer opens and all transitions are complete. */\n @Event({ eventName: 'six-drawer-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the drawer closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-drawer-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the drawer closes and all transitions are complete. */\n @Event({ eventName: 'six-drawer-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the drawer opens and the panel gains focus. Calling `event.preventDefault()` will prevent focus and\n * allow you to set it on a different element in the drawer, such as an input or button.\n */\n @Event({ eventName: 'six-drawer-initial-focus' }) sixInitialFocus!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or\n * pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing\n * the drawer will result in destructive behavior such as data loss.\n */\n @Event({ eventName: 'six-drawer-request-close' }) sixRequestClose!: EventEmitter<SixDrawerRequestClose>;\n\n connectedCallback() {\n this.modal = new Modal(this.host, {\n onFocusOut: () => (this.contained ? null : this.panel?.focus()),\n });\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n\n // Show on init if open\n if (this.open) {\n this.show();\n // if the sidebar is open by default we need to manually reset the\n // transition variables since there will be no transition event\n this.resetTransitionVariables();\n }\n }\n\n disconnectedCallback() {\n unlockBodyScrolling(this.host);\n }\n\n /** Shows the drawer */\n @Method()\n async show() {\n if (this.willShow || this.modal == null || this.panel == null || this.drawer == null) {\n return;\n }\n const panel = this.panel;\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.willShow = true;\n this.isVisible = true;\n this.open = true;\n\n // Lock body scrolling only if the drawer isn't contained\n if (!this.contained) {\n this.modal.activate();\n lockBodyScrolling(this.host);\n }\n\n if (this.open) {\n // Wait for the next frame before setting initial focus so the dialog is technically visible\n requestAnimationFrame(() => {\n const sixInitialFocus = this.sixInitialFocus.emit();\n if (!sixInitialFocus.defaultPrevented) {\n panel.focus({ preventScroll: true });\n }\n });\n }\n }\n\n /** Hides the drawer */\n @Method()\n async hide() {\n if (this.willHide || this.modal == null) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n this.willHide = true;\n this.open = false;\n this.modal.deactivate();\n\n unlockBodyScrolling(this.host);\n }\n\n private handleCloseClick = () => {\n this.preventClose('close-button');\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n this.preventClose('keyboard');\n }\n };\n\n private handleOverlayClick = () => {\n this.preventClose('overlay');\n };\n\n private preventClose(source: 'close-button' | 'keyboard' | 'overlay') {\n const sixRequestClose = this.sixRequestClose.emit({ source });\n\n if (sixRequestClose.defaultPrevented && this.panel) {\n animateTo(this.panel, [{ scale: 1 }, { scale: 1.01 }, { scale: 1 }], { duration: 250 });\n return;\n }\n\n this.hide();\n }\n\n private handleSlotChange = () => {\n this.hasFooter = hasSlot(this.host, 'footer');\n };\n\n private handleTransitionEnd = (event: TransitionEvent) => {\n const target = event.target as HTMLElement;\n\n // Ensure we only emit one event when the target element is no longer visible\n if (event.propertyName === 'transform' && target.classList.contains('drawer__panel')) {\n this.resetTransitionVariables();\n }\n };\n\n private resetTransitionVariables() {\n this.isVisible = this.open;\n this.willShow = false;\n this.willHide = false;\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n }\n\n render() {\n return (\n <div\n ref={(el) => (this.drawer = el)}\n part=\"base\"\n class={{\n drawer: true,\n 'drawer--open': this.open,\n 'drawer--visible': this.isVisible,\n 'drawer--top': this.placement === 'top',\n 'drawer--right': this.placement === 'right',\n 'drawer--bottom': this.placement === 'bottom',\n 'drawer--left': this.placement === 'left',\n 'drawer--contained': this.contained,\n 'drawer--fixed': !this.contained,\n 'drawer--has-footer': this.hasFooter,\n }}\n onKeyDown={this.handleKeyDown}\n onTransitionEnd={this.handleTransitionEnd}\n >\n <div part=\"overlay\" class=\"drawer__overlay\" onClick={this.handleOverlayClick} tabIndex={-1} />\n\n <div\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n class=\"drawer__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-hidden={this.open ? 'false' : 'true'}\n aria-label={this.noHeader ? this.label : null}\n aria-labelledby={!this.noHeader ? `${this.componentId}-title` : null}\n tabIndex={0}\n >\n {!this.noHeader && (\n <header part=\"header\" class=\"drawer__header\">\n <span part=\"title\" class=\"drawer__title\" id={`${this.componentId}-title`}>\n <slot name=\"label\">\n {/* If there's no label, use an invisible character to prevent the heading from collapsing */}\n {this.label || String.fromCharCode(65279)}\n </slot>\n </span>\n <six-icon-button\n exportparts=\"base:close-button\"\n class=\"drawer__close\"\n name=\"close\"\n onClick={this.handleCloseClick}\n />\n </header>\n )}\n\n <div part=\"body\" class=\"drawer__body\">\n <slot />\n </div>\n\n <footer part=\"footer\" class=\"drawer__footer\">\n <slot name=\"footer\" onSlotchange={this.handleSlotChange} />\n </footer>\n </div>\n </div>\n );\n }\n}\n"]}
|