genesys-spark-components 4.0.0-beta.45 → 4.0.0-beta.47
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/genesys-webcomponents.cjs.js +1 -1
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-all-row-select.cjs.entry.js +2 -2
- package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-badge.cjs.entry.js +1 -1
- package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
- package/dist/cjs/gux-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
- package/dist/cjs/gux-card.cjs.entry.js +1 -1
- package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
- package/dist/cjs/gux-content-search.cjs.entry.js +4 -4
- package/dist/cjs/gux-context-menu.cjs.entry.js +2 -2
- package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
- package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
- package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +8 -4
- package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-number_3.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +2 -1
- package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal-legacy.cjs.entry.js +85 -0
- package/dist/cjs/gux-modal.cjs.entry.js +26 -50
- package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
- package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
- package/dist/cjs/gux-rating.cjs.entry.js +1 -1
- package/dist/cjs/gux-region-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-row-select.cjs.entry.js +2 -2
- package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/gux-table.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs.cjs.entry.js +3 -6
- package/dist/cjs/gux-tag.cjs.entry.js +1 -1
- package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
- package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/index-75c9f0d9.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-c3a491a4.js → usage-0cb60b56.js} +2 -2
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/legacy/gux-modal-legacy/gux-modal-legacy.css +122 -0
- package/dist/collection/components/legacy/gux-modal-legacy/gux-modal-legacy.js +181 -0
- package/dist/collection/components/legacy/gux-modal-legacy/gux-modal-legacy.types.js +1 -0
- package/dist/collection/components/legacy/gux-modal-legacy/tests/gux-modal-legacy.e2e.js +301 -0
- package/dist/collection/components/legacy/gux-modal-legacy/tests/gux-modal-legacy.spec.js +200 -0
- package/dist/collection/components/stable/gux-button-multi/tests/gux-button-multi.e2e.js +10 -3
- package/dist/collection/components/stable/gux-content-search/gux-content-search.css +17 -4
- package/dist/collection/components/stable/gux-content-search/gux-content-search.js +2 -2
- package/dist/collection/components/stable/gux-content-search/tests/gux-content-search.e2e.js +5 -0
- package/dist/collection/components/stable/gux-context-menu/gux-context-menu.css +1 -0
- package/dist/collection/components/stable/gux-context-menu/tests/gux-context-menu.e2e.js +9 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.css +8 -4
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.js +28 -2
- package/dist/collection/components/stable/gux-list/tests/gux-list.e2e.js +8 -1
- package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.js +1 -0
- package/dist/collection/components/stable/gux-modal/gux-modal.css +20 -54
- package/dist/collection/components/stable/gux-modal/gux-modal.js +64 -100
- package/dist/collection/components/stable/gux-modal/tests/gux-modal.e2e.js +119 -134
- package/dist/collection/components/stable/gux-modal/tests/gux-modal.spec.js +28 -88
- package/dist/collection/components/stable/gux-popup/tests/gux-popup.e2e.js +13 -1
- package/dist/collection/components/stable/gux-table/gux-all-row-select/gux-all-row-select.css +4 -7
- package/dist/collection/components/stable/gux-table/gux-all-row-select/gux-all-row-select.js +1 -1
- package/dist/collection/components/stable/gux-table/gux-row-select/gux-row-select.css +4 -7
- package/dist/collection/components/stable/gux-table/gux-row-select/gux-row-select.js +1 -1
- package/dist/collection/components/stable/gux-tabs/gux-tabs.css +5 -8
- package/dist/collection/components/stable/gux-tabs/gux-tabs.js +1 -22
- package/dist/collection/components/stable/gux-tabs-advanced/tests/gux-tabs-advanced.e2e.js +5 -0
- package/dist/component-specs.json +25 -7
- package/dist/deploy-info.json +3 -3
- package/dist/esm/genesys-webcomponents.js +1 -1
- package/dist/esm/gux-accordion.entry.js +1 -1
- package/dist/esm/gux-action-button.entry.js +1 -1
- package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
- package/dist/esm/gux-all-row-select.entry.js +2 -2
- package/dist/esm/gux-announce-beta.entry.js +1 -1
- package/dist/esm/gux-badge.entry.js +1 -1
- package/dist/esm/gux-blank-state.entry.js +1 -1
- package/dist/esm/gux-breadcrumbs.entry.js +1 -1
- package/dist/esm/gux-button-multi.entry.js +1 -1
- package/dist/esm/gux-button-slot.entry.js +1 -1
- package/dist/esm/gux-button.entry.js +1 -1
- package/dist/esm/gux-calendar.entry.js +1 -1
- package/dist/esm/gux-card.entry.js +1 -1
- package/dist/esm/gux-column-manager.entry.js +1 -1
- package/dist/esm/gux-content-search.entry.js +4 -4
- package/dist/esm/gux-context-menu.entry.js +2 -2
- package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
- package/dist/esm/gux-date-beta.entry.js +1 -1
- package/dist/esm/gux-date-time-beta.entry.js +1 -1
- package/dist/esm/gux-datepicker.entry.js +1 -1
- package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
- package/dist/esm/gux-dismiss-button.entry.js +1 -1
- package/dist/esm/gux-dropdown-multi.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +1 -1
- package/dist/esm/gux-flyout-menu.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox.entry.js +8 -4
- package/dist/esm/gux-form-field-color.entry.js +1 -1
- package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
- package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
- package/dist/esm/gux-form-field-number_3.entry.js +1 -1
- package/dist/esm/gux-form-field-phone.entry.js +1 -1
- package/dist/esm/gux-form-field-radio.entry.js +1 -1
- package/dist/esm/gux-form-field-range.entry.js +1 -1
- package/dist/esm/gux-form-field-search.entry.js +1 -1
- package/dist/esm/gux-form-field-select.entry.js +1 -1
- package/dist/esm/gux-form-field-text-like.entry.js +1 -1
- package/dist/esm/gux-form-field-textarea.entry.js +1 -1
- package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
- package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
- package/dist/esm/gux-icon.entry.js +1 -1
- package/dist/esm/gux-inline-alert.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +1 -1
- package/dist/esm/gux-listbox-multi.entry.js +2 -1
- package/dist/esm/gux-loading-message.entry.js +1 -1
- package/dist/esm/gux-modal-legacy.entry.js +81 -0
- package/dist/esm/gux-modal.entry.js +26 -50
- package/dist/esm/gux-month-picker-beta.entry.js +1 -1
- package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
- package/dist/esm/gux-pagination-cursor.entry.js +1 -1
- package/dist/esm/gux-pagination-legacy.entry.js +1 -1
- package/dist/esm/gux-pagination.entry.js +1 -1
- package/dist/esm/gux-phone-input-beta.entry.js +1 -1
- package/dist/esm/gux-popover-list.entry.js +1 -1
- package/dist/esm/gux-radial-loading.entry.js +1 -1
- package/dist/esm/gux-radial-progress.entry.js +1 -1
- package/dist/esm/gux-rating.entry.js +1 -1
- package/dist/esm/gux-region-icon.entry.js +1 -1
- package/dist/esm/gux-row-select.entry.js +2 -2
- package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
- package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
- package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
- package/dist/esm/gux-sort-control.entry.js +1 -1
- package/dist/esm/gux-switch-legacy.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
- package/dist/esm/gux-table-toolbar.entry.js +1 -1
- package/dist/esm/gux-table.entry.js +1 -1
- package/dist/esm/gux-tabs-advanced.entry.js +1 -1
- package/dist/esm/gux-tabs.entry.js +3 -6
- package/dist/esm/gux-tag.entry.js +1 -1
- package/dist/esm/gux-text-highlight.entry.js +1 -1
- package/dist/esm/gux-time-beta.entry.js +1 -1
- package/dist/esm/gux-time-picker.entry.js +1 -1
- package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
- package/dist/esm/gux-toast.entry.js +1 -1
- package/dist/esm/gux-toggle.entry.js +1 -1
- package/dist/esm/gux-tooltip.entry.js +1 -1
- package/dist/esm/index-39e65a0a.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-82907a65.js → usage-5789b84e.js} +2 -2
- package/dist/genesys-webcomponents/genesys-webcomponents.css +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/{p-dd25e9aa.entry.js → p-017b2a26.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1b1b15b4.entry.js → p-02c0ad2c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3ec2684f.entry.js → p-030c2905.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a1b7e099.entry.js → p-03472378.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-afbf776e.entry.js → p-041605ee.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f8299225.entry.js → p-042ab51f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-16bb762b.entry.js → p-04b36426.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-be5b66c4.entry.js → p-09e6a6da.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2a7519cc.entry.js → p-0ed02a07.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-731229ce.entry.js → p-11e8f856.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-139161c6.entry.js → p-1e0ed2ef.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c7246368.entry.js → p-1e5e9c08.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f2a12de0.entry.js → p-2107d304.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c8033f35.entry.js → p-25165b93.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-eca7b2c0.entry.js → p-2c521953.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0a557023.entry.js → p-2c5573df.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c9741796.entry.js → p-2d1b4156.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1b50175e.entry.js → p-3813e134.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cce0882e.entry.js → p-3ab4cf65.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dbb72837.entry.js → p-3c1fc3a2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-09a9da63.entry.js → p-3c58171a.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-433b4556.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f03b7352.entry.js → p-43f07bab.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c1650aee.entry.js → p-4673acec.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-85190e50.entry.js → p-47355571.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fd416b7c.entry.js → p-47a4739c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4eb5ee9d.entry.js → p-4898901d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-964c6dae.entry.js → p-4db2c319.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-523eae58.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-39829b4e.entry.js → p-575f08d0.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-58c30fbe.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b87a4bc1.entry.js → p-5e7aab95.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e09b104f.entry.js → p-6141b01d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-760e43cf.js → p-62379b65.js} +1 -1
- package/dist/genesys-webcomponents/{p-e458df40.entry.js → p-6bc5840b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-037a8164.entry.js → p-71f91757.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a369c6cc.entry.js → p-73fea227.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f70f5608.entry.js → p-74e54c3a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8a529f84.entry.js → p-763e4d78.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cdd065c6.entry.js → p-779200fc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5646d3e7.entry.js → p-77cdf7e0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-537ee507.entry.js → p-79e24d27.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9dc0570d.entry.js → p-7f85b076.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8822579a.entry.js → p-7f90f26c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a937eed2.entry.js → p-84ed11ef.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9da6900d.entry.js → p-853ae7ba.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0a460241.entry.js → p-88a5be5f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-55d8bebc.entry.js → p-91ad9189.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-530395d9.entry.js → p-92b3cf3e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e522bb12.entry.js → p-932b0736.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b29c7e72.entry.js → p-975515ed.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6d0df7b9.entry.js → p-a33a7c42.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f092a3b7.entry.js → p-a5b5e967.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ee401ac5.entry.js → p-a670378d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c0074d04.entry.js → p-a94706ed.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d850ba66.entry.js → p-ad6e6f47.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-291a53ef.entry.js → p-af9d713a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3198ecce.entry.js → p-b048cb05.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-501079c3.entry.js → p-b1ea6554.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b269fa15.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c3cd4db2.entry.js → p-b94bd4c0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-65f12043.entry.js → p-bb77f4cd.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-bffbe775.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-31bd23d5.entry.js → p-c1f94949.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-944ebc5c.entry.js → p-c40fe584.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1d35044a.entry.js → p-c5f146dc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b433daf1.entry.js → p-c631a9fb.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c703c485.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-95d9dd21.entry.js → p-c9de9c12.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-92923aed.entry.js → p-cb0b1b15.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4599ed40.entry.js → p-cc592cf0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-15d3baba.entry.js → p-cfe73514.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5e2db611.entry.js → p-de5c30dc.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-e02e891f.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-ae0dd216.entry.js → p-e6b38860.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c3a04a6f.entry.js → p-e906d496.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7344d05f.entry.js → p-f046f4af.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-acb51582.entry.js → p-f504292a.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f64cac0b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-dce938df.entry.js → p-fa22e0f1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a44da61b.entry.js → p-fd80fe62.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d091861f.entry.js → p-fe60733a.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/legacy/gux-modal-legacy/gux-modal-legacy.d.ts +37 -0
- package/dist/types/components/legacy/gux-modal-legacy/gux-modal-legacy.types.d.ts +1 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.d.ts +2 -0
- package/dist/types/components/stable/gux-modal/gux-modal.d.ts +8 -21
- package/dist/types/components/stable/gux-tabs/gux-tabs.d.ts +0 -4
- package/dist/types/components.d.ts +38 -11
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +2 -2
- package/dist/genesys-webcomponents/p-0a0752be.entry.js +0 -1
- package/dist/genesys-webcomponents/p-774043ee.entry.js +0 -1
- package/dist/genesys-webcomponents/p-8da77afa.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9431d863.entry.js +0 -1
- package/dist/genesys-webcomponents/p-b3f8bae5.entry.js +0 -1
- package/dist/genesys-webcomponents/p-d453c288.entry.js +0 -1
- package/dist/genesys-webcomponents/p-f1c1c4fe.entry.js +0 -1
@@ -8,11 +8,11 @@ describe('gux-modal', () => {
|
|
8
8
|
<gux-modal lang="en" size="small">
|
9
9
|
<div slot="title">Modal Title</div>
|
10
10
|
<div slot="content">This contains the modal content.</div>
|
11
|
-
<div slot="
|
12
|
-
<gux-button>Cancel</gux-button>
|
11
|
+
<div slot="start-align-buttons">
|
12
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
13
13
|
</div>
|
14
|
-
<div slot="
|
15
|
-
<gux-button accent="primary">Accept</gux-button>
|
14
|
+
<div slot="end-align-buttons">
|
15
|
+
<gux-button-slot accent="primary"><button>Accept</button></gux-button-slot>
|
16
16
|
</div>
|
17
17
|
</gux-modal>
|
18
18
|
`
|
@@ -23,11 +23,11 @@ describe('gux-modal', () => {
|
|
23
23
|
<gux-modal lang="en" size="medium">
|
24
24
|
<div slot="title">Modal Title</div>
|
25
25
|
<div slot="content">This contains the modal content.</div>
|
26
|
-
<div slot="
|
27
|
-
<gux-button>Cancel</gux-button>
|
26
|
+
<div slot="start-align-buttons">
|
27
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
28
28
|
</div>
|
29
|
-
<div slot="
|
30
|
-
<gux-button accent="primary">Accept</gux-button>
|
29
|
+
<div slot="end-align-buttons">
|
30
|
+
<gux-button-slot accent="primary"><button>Accept</button></gux-button-slot>
|
31
31
|
</div>
|
32
32
|
</gux-modal>
|
33
33
|
`
|
@@ -38,11 +38,11 @@ describe('gux-modal', () => {
|
|
38
38
|
<gux-modal lang="en" size="large">
|
39
39
|
<div slot="title">Modal Title</div>
|
40
40
|
<div slot="content">This contains the modal content.</div>
|
41
|
-
<div slot="
|
42
|
-
<gux-button>Cancel</gux-button>
|
41
|
+
<div slot="start-align-buttons">
|
42
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
43
43
|
</div>
|
44
|
-
<div slot="
|
45
|
-
<gux-button accent="primary">Accept</gux-button>
|
44
|
+
<div slot="end-align-buttons">
|
45
|
+
<gux-button-slot accent="primary"><button>Accept</button></gux-button-slot>
|
46
46
|
</div>
|
47
47
|
</gux-modal>
|
48
48
|
`
|
@@ -52,11 +52,11 @@ describe('gux-modal', () => {
|
|
52
52
|
html: `
|
53
53
|
<gux-modal lang="en" size="large">
|
54
54
|
<div slot="content">This contains the modal content.</div>
|
55
|
-
<div slot="
|
56
|
-
<gux-button>Cancel</gux-button>
|
55
|
+
<div slot="start-align-buttons">
|
56
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
57
57
|
</div>
|
58
|
-
<div slot="
|
59
|
-
<gux-button accent="primary">Accept</gux-button>
|
58
|
+
<div slot="end-align-buttons">
|
59
|
+
<gux-button-slot accent="primary"><button>Accept</button></gux-button-slot>
|
60
60
|
</div>
|
61
61
|
</gux-modal>
|
62
62
|
`
|
@@ -76,8 +76,8 @@ describe('gux-modal', () => {
|
|
76
76
|
<gux-modal lang="en" size="small">
|
77
77
|
<div slot="title">Modal Title</div>
|
78
78
|
<div slot="content">This contains the modal content.</div>
|
79
|
-
<div slot="
|
80
|
-
<gux-button>Cancel</gux-button>
|
79
|
+
<div slot="start-align-buttons">
|
80
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
81
81
|
</div>
|
82
82
|
</gux-modal>
|
83
83
|
`
|
@@ -88,8 +88,8 @@ describe('gux-modal', () => {
|
|
88
88
|
<gux-modal lang="en" size="small">
|
89
89
|
<div slot="title">Modal Title</div>
|
90
90
|
<div slot="content">This contains the modal content.</div>
|
91
|
-
<div slot="
|
92
|
-
<gux-button accent="primary">Accept</gux-button>
|
91
|
+
<div slot="end-align-buttons">
|
92
|
+
<gux-button-slot accent="primary"><button>Accept</button></gux-button-slot>
|
93
93
|
</div>
|
94
94
|
</gux-modal>
|
95
95
|
`
|
@@ -100,11 +100,11 @@ describe('gux-modal', () => {
|
|
100
100
|
<gux-modal lang="en">
|
101
101
|
<div slot="title">Modal Title</div>
|
102
102
|
<div slot="content">This contains the modal content.</div>
|
103
|
-
<div slot="
|
104
|
-
<gux-button>Cancel</gux-button>
|
103
|
+
<div slot="start-align-buttons">
|
104
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
105
105
|
</div>
|
106
|
-
<div slot="
|
107
|
-
<gux-button accent="primary">Accept</gux-button>
|
106
|
+
<div slot="end-align-buttons">
|
107
|
+
<gux-button-slot accent="primary"><button>Accept</button></gux-button-slot>
|
108
108
|
</div>
|
109
109
|
</gux-modal>
|
110
110
|
`
|
@@ -124,171 +124,156 @@ describe('gux-modal', () => {
|
|
124
124
|
describe('dismiss', () => {
|
125
125
|
it('click dismiss button', async () => {
|
126
126
|
const html = `
|
127
|
-
<gux-
|
127
|
+
<gux-button id="openModalButton" onclick="document.getElementById('example1').showModal()">
|
128
|
+
Open
|
129
|
+
</gux-button>
|
130
|
+
<gux-modal id="example1" lang="en" size="small">
|
128
131
|
<div slot="title">Modal Title</div>
|
129
132
|
<div slot="content">This contains the modal content.</div>
|
130
|
-
<div slot="
|
131
|
-
<gux-button>Cancel</gux-button>
|
133
|
+
<div slot="start-align-buttons">
|
134
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
132
135
|
</div>
|
133
|
-
<div slot="
|
134
|
-
<gux-button accent="primary">Accept</gux-button>
|
136
|
+
<div slot="end-align-buttons">
|
137
|
+
<gux-button-slot accent="primary"><button>Accept</button></gux-button-slot>
|
135
138
|
</div>
|
136
139
|
</gux-modal>
|
137
140
|
`;
|
138
141
|
const page = await newSparkE2EPage({ html });
|
139
142
|
const element = await page.find('gux-modal');
|
140
|
-
const
|
141
|
-
|
142
|
-
const guxdismissSpy = await page.spyOnEvent('guxdismiss');
|
143
|
-
const clickSpy = await page.spyOnEvent('click');
|
144
|
-
expect(guxdismissSpy).not.toHaveReceivedEvent();
|
145
|
-
expect(clickSpy).not.toHaveReceivedEvent();
|
146
|
-
expect(await page.find('gux-modal')).not.toBeNull();
|
147
|
-
await dismissButton.click();
|
143
|
+
const openModalButton = await page.find('#openModalButton');
|
144
|
+
await openModalButton.click();
|
148
145
|
await page.waitForChanges();
|
149
|
-
expect(guxdismissSpy).toHaveReceivedEvent();
|
150
|
-
expect(clickSpy).not.toHaveReceivedEvent();
|
151
|
-
expect(await page.find('gux-modal')).toBeNull();
|
152
|
-
});
|
153
|
-
it('click dismiss button and prevent default', async () => {
|
154
|
-
const html = `
|
155
|
-
<gux-modal lang="en" size="small">
|
156
|
-
<div slot="title">Modal Title</div>
|
157
|
-
<div slot="content">This contains the modal content.</div>
|
158
|
-
<div slot="left-align-buttons">
|
159
|
-
<gux-button>Cancel</gux-button>
|
160
|
-
</div>
|
161
|
-
<div slot="right-align-buttons">
|
162
|
-
<gux-button accent="primary">Accept</gux-button>
|
163
|
-
</div>
|
164
|
-
</gux-modal>
|
165
|
-
`;
|
166
|
-
const page = await newSparkE2EPage({ html });
|
167
|
-
const element = await page.find('gux-modal');
|
168
146
|
const dismissButtonElement = await element.find('pierce/gux-dismiss-button');
|
169
147
|
const dismissButton = await dismissButtonElement.find('pierce/button');
|
170
148
|
const guxdismissSpy = await page.spyOnEvent('guxdismiss');
|
171
149
|
const clickSpy = await page.spyOnEvent('click');
|
172
|
-
await page.evaluate(() => {
|
173
|
-
document.addEventListener('guxdismiss', event => {
|
174
|
-
event.preventDefault();
|
175
|
-
});
|
176
|
-
});
|
177
|
-
expect(guxdismissSpy).not.toHaveReceivedEvent();
|
178
|
-
expect(clickSpy).not.toHaveReceivedEvent();
|
179
|
-
expect(await page.find('gux-modal')).not.toBeNull();
|
180
150
|
await dismissButton.click();
|
181
151
|
await page.waitForChanges();
|
182
152
|
expect(guxdismissSpy).toHaveReceivedEvent();
|
183
|
-
expect(clickSpy).
|
153
|
+
expect(clickSpy).toHaveReceivedEvent();
|
184
154
|
expect(await page.find('gux-modal')).not.toBeNull();
|
185
155
|
});
|
186
156
|
it('escape key dismiss', async () => {
|
187
157
|
const html = `
|
188
|
-
<gux-
|
158
|
+
<gux-button id="openModalButton" onclick="document.getElementById('example1').showModal()">
|
159
|
+
Open
|
160
|
+
</gux-button>
|
161
|
+
<gux-modal id="example1" lang="en" size="small">
|
189
162
|
<div slot="title">Modal Title</div>
|
190
163
|
<div slot="content">This contains the modal content.</div>
|
191
|
-
<div slot="
|
192
|
-
<gux-button>Cancel</gux-button>
|
164
|
+
<div slot="start-align-buttons">
|
165
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
193
166
|
</div>
|
194
|
-
<div slot="
|
195
|
-
<gux-button accent="primary">Accept</gux-button>
|
167
|
+
<div slot="end-align-buttons">
|
168
|
+
<gux-button-slot accent="primary"><button>Accept</button></gux-button-slot>
|
196
169
|
</div>
|
197
170
|
</gux-modal>
|
198
171
|
`;
|
199
172
|
const page = await newSparkE2EPage({ html });
|
200
|
-
const
|
173
|
+
const openModalButton = await page.find('#openModalButton');
|
174
|
+
await openModalButton.click();
|
175
|
+
await page.waitForChanges();
|
201
176
|
const guxdismissSpy = await page.spyOnEvent('guxdismiss');
|
202
177
|
expect(guxdismissSpy).not.toHaveReceivedEvent();
|
203
|
-
|
178
|
+
await page.waitForSelector('pierce/dialog', {
|
179
|
+
visible: true
|
180
|
+
});
|
204
181
|
await page.keyboard.down('Escape');
|
205
182
|
await page.waitForChanges();
|
206
183
|
expect(guxdismissSpy).toHaveReceivedEvent();
|
207
|
-
|
184
|
+
await page.waitForSelector('pierce/dialog', {
|
185
|
+
visible: false
|
186
|
+
});
|
208
187
|
});
|
209
188
|
});
|
210
189
|
describe('focus', () => {
|
211
|
-
const focusModalHtml = (props = '') => `
|
212
|
-
<gux-modal lang="en" size="small" trap-focus="true" ${props}>
|
213
|
-
<div slot="title">Modal Title</div>
|
214
|
-
<div slot="content">This contains the modal content.</div>
|
215
|
-
<div slot="left-align-buttons">
|
216
|
-
<gux-button id="cancel-button">Cancel</gux-button>
|
217
|
-
</div>
|
218
|
-
<div slot="right-align-buttons">
|
219
|
-
<gux-button id="accept-button" accent="primary">Accept</gux-button>
|
220
|
-
</div>
|
221
|
-
</gux-modal>
|
222
|
-
`;
|
223
|
-
const modalContainerHtml = `
|
224
|
-
<div id="modal-container"></div>
|
225
|
-
<button id="other-button">Do Nothing</button>
|
226
|
-
<button id="modal-trigger">Open Modal</button>
|
227
|
-
`;
|
228
|
-
const setupContainerPage = async (modalHtml) => {
|
229
|
-
const page = await newSparkE2EPage({ html: modalContainerHtml });
|
230
|
-
await page.evaluate(html => {
|
231
|
-
var _a;
|
232
|
-
(_a = document
|
233
|
-
.getElementById('modal-trigger')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', () => {
|
234
|
-
if (document.getElementById('modal-container'))
|
235
|
-
document.getElementById('modal-container').innerHTML = html;
|
236
|
-
});
|
237
|
-
}, modalHtml);
|
238
|
-
return page;
|
239
|
-
};
|
240
190
|
const getFocusedElementText = (page) => page.evaluate(() => document.activeElement.textContent);
|
241
191
|
const getFocusedShadowElementText = (page) => page.evaluate(() => document.querySelector('gux-modal').shadowRoot.activeElement
|
242
192
|
.textContent);
|
243
193
|
const getFocusedShadowElementTagName = (page) => page.evaluate(() => document.querySelector('gux-modal').shadowRoot.activeElement.tagName);
|
244
|
-
it('focuses the dismiss button by
|
245
|
-
const
|
246
|
-
|
194
|
+
it('focuses the dismiss button by default ', async () => {
|
195
|
+
const html = `
|
196
|
+
<gux-button id="openModalButton" onclick="document.getElementById('example1').showModal()">
|
197
|
+
Open
|
198
|
+
</gux-button>
|
199
|
+
<gux-modal id="example1" lang="en" size="small">
|
200
|
+
<div slot="title">Modal Title</div>
|
201
|
+
<div slot="content">This contains the modal content.</div>
|
202
|
+
<div slot="start-align-buttons">
|
203
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
204
|
+
</div>
|
205
|
+
<div slot="end-align-buttons">
|
206
|
+
<gux-button-slot accent="primary"><button>Accept</button></gux-button-slot>
|
207
|
+
</div>
|
208
|
+
</gux-modal>
|
209
|
+
`;
|
210
|
+
const page = await newSparkE2EPage({ html });
|
211
|
+
await page.click('#openModalButton');
|
247
212
|
await page.waitForChanges();
|
248
|
-
|
213
|
+
await page.waitForSelector('pierce/dialog', {
|
214
|
+
visible: true
|
215
|
+
});
|
249
216
|
expect(await getFocusedShadowElementText(page)).toBe('');
|
250
217
|
expect(await getFocusedShadowElementTagName(page)).toBe('GUX-DISMISS-BUTTON');
|
251
218
|
});
|
252
219
|
test('can focus a specific focusable element', async () => {
|
253
|
-
const
|
254
|
-
|
220
|
+
const html = `
|
221
|
+
<gux-button id="openModalButton" onclick="document.getElementById('example1').showModal()">
|
222
|
+
Open
|
223
|
+
</gux-button>
|
224
|
+
<gux-modal id="example1" lang="en" size="small">
|
225
|
+
<div slot="title">Modal Title</div>
|
226
|
+
<div slot="content">This contains the modal content.</div>
|
227
|
+
<div slot="start-align-buttons">
|
228
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
229
|
+
</div>
|
230
|
+
<div slot="end-align-buttons">
|
231
|
+
<gux-button-slot accent="primary"><button autofocus>Accept</button></gux-button-slot>
|
232
|
+
</div>
|
233
|
+
</gux-modal>
|
234
|
+
`;
|
235
|
+
const page = await newSparkE2EPage({ html });
|
236
|
+
await page.click('#openModalButton');
|
255
237
|
await page.waitForChanges();
|
256
|
-
|
238
|
+
await page.waitForSelector('pierce/dialog', {
|
239
|
+
visible: true
|
240
|
+
});
|
257
241
|
expect(await getFocusedElementText(page)).toBe('Accept');
|
258
242
|
});
|
259
243
|
test('focuses the dismiss button if there are no other focusable elements', async () => {
|
260
|
-
const
|
261
|
-
<gux-
|
244
|
+
const html = `
|
245
|
+
<gux-button id="openModalButton" onclick="document.getElementById('example1').showModal()">
|
246
|
+
Open
|
247
|
+
</gux-button>
|
248
|
+
<gux-modal id="example1" lang="en" size="small">
|
262
249
|
<div slot="content">This contains the modal content.</div>
|
263
250
|
</gux-modal>
|
264
|
-
|
265
|
-
await
|
266
|
-
await page.
|
267
|
-
expect(await page.find('gux-modal')).not.toBeNull();
|
268
|
-
expect(await getFocusedShadowElementText(page)).toBe('');
|
269
|
-
expect(await getFocusedShadowElementTagName(page)).toBe('GUX-DISMISS-BUTTON');
|
270
|
-
});
|
271
|
-
test('traps focus in the modal', async () => {
|
272
|
-
const page = await setupContainerPage(focusModalHtml());
|
273
|
-
await page.click('#modal-trigger');
|
251
|
+
`;
|
252
|
+
const page = await newSparkE2EPage({ html });
|
253
|
+
await page.click('#openModalButton');
|
274
254
|
await page.waitForChanges();
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
expect(await getFocusedElementText(page)).toBe('Cancel');
|
279
|
-
await page.keyboard.press('Tab');
|
280
|
-
expect(await getFocusedElementText(page)).toBe('Accept');
|
281
|
-
await page.keyboard.press('Tab');
|
282
|
-
expect(await getFocusedShadowElementText(page)).toBe('');
|
283
|
-
expect(await getFocusedShadowElementTagName(page)).toBe('GUX-DISMISS-BUTTON');
|
284
|
-
await page.keyboard.down('Shift');
|
285
|
-
await page.keyboard.press('Tab');
|
255
|
+
await page.waitForSelector('pierce/dialog', {
|
256
|
+
visible: true
|
257
|
+
});
|
286
258
|
expect(await getFocusedShadowElementText(page)).toBe('');
|
287
259
|
expect(await getFocusedShadowElementTagName(page)).toBe('GUX-DISMISS-BUTTON');
|
288
260
|
});
|
289
261
|
test('returns focus to the originally focused element when the modal closes', async () => {
|
290
|
-
const
|
291
|
-
|
262
|
+
const html = `
|
263
|
+
<gux-button id="openModalButton" onclick="document.getElementById('example1').showModal()">Open Modal</gux-button>
|
264
|
+
<gux-modal id="example1" lang="en" size="small">
|
265
|
+
<div slot="title">Modal Title</div>
|
266
|
+
<div slot="content">This contains the modal content.</div>
|
267
|
+
<div slot="start-align-buttons">
|
268
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
269
|
+
</div>
|
270
|
+
<div slot="end-align-buttons">
|
271
|
+
<gux-button-slot accent="primary"><button>Accept</button></gux-button-slot>
|
272
|
+
</div>
|
273
|
+
</gux-modal>
|
274
|
+
`;
|
275
|
+
const page = await newSparkE2EPage({ html });
|
276
|
+
await page.click('#openModalButton');
|
292
277
|
await page.waitForChanges();
|
293
278
|
expect(await getFocusedShadowElementText(page)).toBe('');
|
294
279
|
expect(await getFocusedShadowElementTagName(page)).toBe('GUX-DISMISS-BUTTON');
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { newSpecPage } from "../../../../test/specTestUtils";
|
2
2
|
import { GuxButton } from "../../gux-button/gux-button";
|
3
3
|
import { GuxModal } from "../gux-modal";
|
4
|
-
import { GuxDismissButton } from "
|
4
|
+
import { GuxDismissButton } from "../../gux-dismiss-button/gux-dismiss-button";
|
5
5
|
const components = [GuxButton, GuxModal, GuxDismissButton];
|
6
6
|
const language = 'en';
|
7
7
|
describe('gux-modal', () => {
|
@@ -13,11 +13,11 @@ describe('gux-modal', () => {
|
|
13
13
|
<gux-modal size="small">
|
14
14
|
<div slot="title">Modal Title</div>
|
15
15
|
<div slot="content">This contains the modal content.</div>
|
16
|
-
<div slot="
|
17
|
-
<gux-button>Cancel</gux-button>
|
16
|
+
<div slot="start-align-buttons">
|
17
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
18
18
|
</div>
|
19
|
-
<div slot="
|
20
|
-
<gux-button accent='primary'>Accept</gux-button>
|
19
|
+
<div slot="end-align-buttons">
|
20
|
+
<gux-button-slot accent='primary'><button>Accept</button></gux-button-slot>
|
21
21
|
</div>
|
22
22
|
</gux-modal>
|
23
23
|
`
|
@@ -28,11 +28,11 @@ describe('gux-modal', () => {
|
|
28
28
|
<gux-modal size="medium">
|
29
29
|
<div slot="title">Modal Title</div>
|
30
30
|
<div slot="content">This contains the modal content.</div>
|
31
|
-
<div slot="
|
32
|
-
<gux-button>Cancel</gux-button>
|
31
|
+
<div slot="start-align-buttons">
|
32
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
33
33
|
</div>
|
34
|
-
<div slot="
|
35
|
-
<gux-button accent='primary'>Accept</gux-button>
|
34
|
+
<div slot="end-align-buttons">
|
35
|
+
<gux-button-slot accent='primary'><button>Accept</button></gux-button-slot>
|
36
36
|
</div>
|
37
37
|
</gux-modal>
|
38
38
|
`
|
@@ -43,11 +43,11 @@ describe('gux-modal', () => {
|
|
43
43
|
<gux-modal size="large">
|
44
44
|
<div slot="title">Modal Title</div>
|
45
45
|
<div slot="content">This contains the modal content.</div>
|
46
|
-
<div slot="
|
47
|
-
<gux-button>Cancel</gux-button>
|
46
|
+
<div slot="start-align-buttons">
|
47
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
48
48
|
</div>
|
49
|
-
<div slot="
|
50
|
-
<gux-button accent='primary'>Accept</gux-button>
|
49
|
+
<div slot="end-align-buttons">
|
50
|
+
<gux-button-slot accent='primary'><button>Accept</button></gux-button-slot>
|
51
51
|
</div>
|
52
52
|
</gux-modal>
|
53
53
|
`
|
@@ -57,11 +57,11 @@ describe('gux-modal', () => {
|
|
57
57
|
html: `
|
58
58
|
<gux-modal size="large">
|
59
59
|
<div slot="content">This contains the modal content.</div>
|
60
|
-
<div slot="
|
61
|
-
<gux-button>Cancel</gux-button>
|
60
|
+
<div slot="start-align-buttons">
|
61
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
62
62
|
</div>
|
63
|
-
<div slot="
|
64
|
-
<gux-button accent='primary'>Accept</gux-button>
|
63
|
+
<div slot="end-align-buttons">
|
64
|
+
<gux-button-slot accent='primary'><button>Accept</button></gux-button-slot>
|
65
65
|
</div>
|
66
66
|
</gux-modal>
|
67
67
|
`
|
@@ -81,8 +81,8 @@ describe('gux-modal', () => {
|
|
81
81
|
<gux-modal size="small">
|
82
82
|
<div slot="title">Modal Title</div>
|
83
83
|
<div slot="content">This contains the modal content.</div>
|
84
|
-
<div slot="
|
85
|
-
<gux-button>Cancel</gux-button>
|
84
|
+
<div slot="start-align-buttons">
|
85
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
86
86
|
</div>
|
87
87
|
</gux-modal>
|
88
88
|
`
|
@@ -93,8 +93,8 @@ describe('gux-modal', () => {
|
|
93
93
|
<gux-modal size="small">
|
94
94
|
<div slot="title">Modal Title</div>
|
95
95
|
<div slot="content">This contains the modal content.</div>
|
96
|
-
<div slot="
|
97
|
-
<gux-button accent='primary'>Accept</gux-button>
|
96
|
+
<div slot="end-align-buttons">
|
97
|
+
<gux-button-slot accent='primary'><button>Accept</button></gux-button-slot>
|
98
98
|
</div>
|
99
99
|
</gux-modal>
|
100
100
|
`
|
@@ -105,11 +105,11 @@ describe('gux-modal', () => {
|
|
105
105
|
<gux-modal initial-focus="#cancelButton">
|
106
106
|
<div slot="title">Modal Title</div>
|
107
107
|
<div slot="content">This contains the modal content.</div>
|
108
|
-
<div slot="
|
108
|
+
<div slot="start-align-buttons">
|
109
109
|
<gux-button id="cancelButton">Cancel</gux-button>
|
110
110
|
</div>
|
111
|
-
<div slot="
|
112
|
-
<gux-button accent='primary'>Accept</gux-button>
|
111
|
+
<div slot="end-align-buttons">
|
112
|
+
<gux-button-slot accent='primary'><button>Accept</button></gux-button-slot>
|
113
113
|
</div>
|
114
114
|
</gux-modal>
|
115
115
|
`
|
@@ -120,11 +120,11 @@ describe('gux-modal', () => {
|
|
120
120
|
<gux-modal>
|
121
121
|
<div slot="title">Modal Title</div>
|
122
122
|
<div slot="content">This contains the modal content.</div>
|
123
|
-
<div slot="
|
124
|
-
<gux-button>Cancel</gux-button>
|
123
|
+
<div slot="start-align-buttons">
|
124
|
+
<gux-button-slot><button>Cancel</button></gux-button-slot>
|
125
125
|
</div>
|
126
|
-
<div slot="
|
127
|
-
<gux-button accent='primary'>Accept</gux-button>
|
126
|
+
<div slot="end-align-buttons">
|
127
|
+
<gux-button-slot accent='primary'><button>Accept</button></gux-button-slot>
|
128
128
|
</div>
|
129
129
|
</gux-modal>
|
130
130
|
`
|
@@ -134,67 +134,7 @@ describe('gux-modal', () => {
|
|
134
134
|
const page = await newSpecPage({ components, html, language });
|
135
135
|
expect(page.rootInstance).toBeInstanceOf(GuxModal);
|
136
136
|
expect(page.root).toMatchSnapshot();
|
137
|
-
page.rootInstance.hidden = true;
|
138
|
-
await page.waitForChanges();
|
139
|
-
expect(page.root).toMatchSnapshot();
|
140
|
-
// Disconnect so that the focus trap is properly cleaned up
|
141
|
-
page.root.remove();
|
142
|
-
});
|
143
|
-
});
|
144
|
-
});
|
145
|
-
describe('dismiss', () => {
|
146
|
-
it('click dismiss button', async () => {
|
147
|
-
const html = `
|
148
|
-
<gux-modal size="small">
|
149
|
-
<div slot="title">Modal Title</div>
|
150
|
-
<div slot="content">This contains the modal content.</div>
|
151
|
-
<div slot="left-align-buttons">
|
152
|
-
<gux-button>Cancel</gux-button>
|
153
|
-
</div>
|
154
|
-
<div slot="right-align-buttons">
|
155
|
-
<gux-button accent='primary'>Accept</gux-button>
|
156
|
-
</div>
|
157
|
-
</gux-modal>
|
158
|
-
`;
|
159
|
-
const page = await newSpecPage({ components, html, language });
|
160
|
-
const element = page.root;
|
161
|
-
const dismissButton = page.root.shadowRoot.querySelector('gux-dismiss-button');
|
162
|
-
const guxdismissSpy = jest.fn();
|
163
|
-
const clickSpy = jest.fn();
|
164
|
-
const elementRemoveSpy = jest.spyOn(element, 'remove');
|
165
|
-
page.win.addEventListener('guxdismiss', guxdismissSpy);
|
166
|
-
page.win.addEventListener('click', clickSpy);
|
167
|
-
dismissButton.click();
|
168
|
-
await page.waitForChanges();
|
169
|
-
expect(guxdismissSpy).toHaveBeenCalled();
|
170
|
-
expect(clickSpy).not.toHaveBeenCalled();
|
171
|
-
expect(elementRemoveSpy).toBeCalledWith();
|
172
|
-
page.root.remove();
|
173
|
-
});
|
174
|
-
it('click dismiss button and prevent default', async () => {
|
175
|
-
const html = `
|
176
|
-
<gux-modal size="small">
|
177
|
-
<div slot="title">Modal Title</div>
|
178
|
-
<div slot="content">This contains the modal content.</div>
|
179
|
-
<div slot="left-align-buttons">
|
180
|
-
<gux-button>Cancel</gux-button>
|
181
|
-
</div>
|
182
|
-
<div slot="right-align-buttons">
|
183
|
-
<gux-button accent='primary'>Accept</gux-button>
|
184
|
-
</div>
|
185
|
-
</gux-modal>
|
186
|
-
`;
|
187
|
-
const page = await newSpecPage({ components, html, language });
|
188
|
-
const element = page.root;
|
189
|
-
const dismissButton = page.root.shadowRoot.querySelector('gux-dismiss-button');
|
190
|
-
const elementRemoveSpy = jest.spyOn(element, 'remove');
|
191
|
-
page.win.addEventListener('guxdismiss', (event) => {
|
192
|
-
event.preventDefault();
|
193
137
|
});
|
194
|
-
dismissButton.click();
|
195
|
-
await page.waitForChanges();
|
196
|
-
expect(elementRemoveSpy).not.toBeCalled();
|
197
|
-
page.root.remove();
|
198
138
|
});
|
199
139
|
});
|
200
140
|
});
|
@@ -1,4 +1,16 @@
|
|
1
1
|
import { newSparkE2EPage, a11yCheck } from "../../../../test/e2eTestUtils";
|
2
|
+
const axeExclusions = [
|
3
|
+
{
|
4
|
+
issueId: 'aria-required-children',
|
5
|
+
target: 'gux-list',
|
6
|
+
exclusionReason: 'To be addressed in COMUI-2391. New violation picked up after upgrading from axe-core v4.4.2 to v4.8.2'
|
7
|
+
},
|
8
|
+
{
|
9
|
+
issueId: 'color-contrast',
|
10
|
+
target: 'gux-button,.gux-secondary',
|
11
|
+
exclusionReason: 'To be addressed in COMUI-2391. New violation picked up after upgrading from axe-core v4.4.2 to v4.8.2'
|
12
|
+
}
|
13
|
+
];
|
2
14
|
function getGuxPopupHtml(expanded, disabled) {
|
3
15
|
return `
|
4
16
|
<gux-popup ${expanded ? 'expanded' : ''} ${disabled ? 'disabled' : ''}>
|
@@ -22,7 +34,7 @@ describe('gux-popup', () => {
|
|
22
34
|
const html = getGuxPopupHtml(expanded, disabled);
|
23
35
|
const page = await newSparkE2EPage({ html });
|
24
36
|
const element = await page.find('gux-popup');
|
25
|
-
await a11yCheck(page);
|
37
|
+
await a11yCheck(page, axeExclusions);
|
26
38
|
expect(element.outerHTML).toMatchSnapshot();
|
27
39
|
});
|
28
40
|
});
|
package/dist/collection/components/stable/gux-table/gux-all-row-select/gux-all-row-select.js
CHANGED
@@ -19,7 +19,7 @@ export class GuxAllRowSelect {
|
|
19
19
|
this.i18n = await buildI18nForComponent(this.root, tableResources, 'gux-table');
|
20
20
|
}
|
21
21
|
render() {
|
22
|
-
return (h("gux-form-field-checkbox",
|
22
|
+
return (h("gux-form-field-checkbox", { "label-position": "screenreader" }, h("input", { ref: el => (this.inputElement = el), slot: "input", id: this.id, type: "checkbox", checked: this.selected }), h("label", { slot: "label", htmlFor: this.id }, "\u200B", h("span", null, this.i18n('selectAllTableRows')))));
|
23
23
|
}
|
24
24
|
static get is() { return "gux-all-row-select"; }
|
25
25
|
static get encapsulation() { return "shadow"; }
|
@@ -16,7 +16,7 @@ export class GuxRowSelect {
|
|
16
16
|
this.i18n = await buildI18nForComponent(this.root, tableResources, 'gux-table');
|
17
17
|
}
|
18
18
|
render() {
|
19
|
-
return (h("gux-form-field-checkbox",
|
19
|
+
return (h("gux-form-field-checkbox", { "label-position": "screenreader" }, h("input", { ref: el => (this.inputElement = el), slot: "input", id: this.id, type: "checkbox", checked: this.selected, disabled: this.disabled }), h("label", { slot: "label", htmlFor: this.id }, "\u200B", h("span", null, this.i18n('selectTableRow')))));
|
20
20
|
}
|
21
21
|
static get is() { return "gux-row-select"; }
|
22
22
|
static get encapsulation() { return "shadow"; }
|