genesys-spark-components 4.0.0-beta.40 → 4.0.0-beta.41
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-announce-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-badge.cjs.entry.js +4 -3
- 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 +4 -3
- package/dist/cjs/gux-button.cjs.entry.js +33 -18
- 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-item.cjs.entry.js +1 -2
- package/dist/cjs/gux-column-manager.cjs.entry.js +4 -4
- package/dist/cjs/gux-content-search.cjs.entry.js +2 -2
- package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
- 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 +2 -2
- 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 +4 -4
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-color.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/gux-form-field-phone.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-range.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-search.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-select.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/gux-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-inline-alert.cjs.entry.js +2 -2
- package/dist/cjs/gux-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
- package/dist/cjs/gux-menu-option.cjs.entry.js +8 -1
- package/dist/cjs/gux-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal.cjs.entry.js +1 -1
- 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 +436 -378
- 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-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-submenu.cjs.entry.js +8 -13
- package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-select-menu.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 +1 -1
- package/dist/cjs/gux-tag.cjs.entry.js +1 -1
- package/dist/cjs/gux-text-highlight.cjs.entry.js +2 -2
- 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 +145 -47
- package/dist/cjs/gux-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle-slider.cjs.entry.js +5 -3
- package/dist/cjs/gux-toggle.cjs.entry.js +2 -2
- package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/index-39160f18.js +4 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{on-attribute-change-4db59350.js → on-attribute-change-9b2d8c85.js} +0 -13
- package/dist/cjs/{usage-9feecec4.js → usage-7bd0f4a2.js} +1 -2
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/beta/gux-phone-input/gux-phone-input.js +334 -143
- package/dist/collection/components/beta/gux-phone-input/gux-phone.types.js +1 -0
- package/dist/collection/components/beta/gux-phone-input/services/RegionCountryCodeMap.js +0 -249
- package/dist/collection/components/beta/gux-phone-input/services/region-map.service.js +3 -3
- package/dist/collection/components/beta/gux-phone-input/tests/gux-phone-input.e2e.js +50 -38
- package/dist/collection/components/beta/gux-time-zone-picker/tests/gux-time-zone-picker.e2e.js +3 -3
- package/dist/collection/components/stable/gux-alert/gux-inline-alert.css +1 -1
- package/dist/collection/components/stable/gux-badge/gux-badge.css +2 -2
- package/dist/collection/components/stable/gux-button/gux-button.css +4 -1
- package/dist/collection/components/stable/gux-button/gux-button.js +36 -16
- package/dist/collection/components/stable/gux-button-slot/gux-button-slot.css +6 -0
- package/dist/collection/components/stable/gux-button-slot/gux-button-slot.js +19 -1
- package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.css +11 -3
- package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.js +0 -1
- package/dist/collection/components/stable/gux-column-manager/gux-column-manager.css +7 -5
- package/dist/collection/components/stable/gux-dismiss-button/gux-dismiss-button.css +2 -2
- package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.js +3 -3
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu-option/gux-menu-option.css +5 -5
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu-option/gux-menu-option.js +14 -0
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu.css +1 -1
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu.js +1 -0
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.css +8 -8
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.js +8 -12
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.css +5 -14
- package/dist/collection/components/stable/gux-radial-progress/gux-radial-progress.css +1 -4
- package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.js +1 -1
- package/dist/collection/components/stable/gux-table/tests/gux-table.e2e.js +7 -4
- package/dist/collection/components/stable/gux-tabs/gux-tab/gux-tab.css +21 -20
- package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.css +4 -4
- package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.css +1 -1
- package/dist/collection/components/stable/gux-tabs/tests/gux-tabs.e2e.js +1 -2
- package/dist/collection/components/stable/gux-text-highlight/gux-text-highlight.css +4 -1
- package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.css +81 -19
- package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.js +4 -2
- package/dist/collection/components/stable/gux-toggle/gux-toggle.css +18 -6
- package/dist/component-specs.json +5 -4
- 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-announce-beta.entry.js +1 -1
- package/dist/esm/gux-badge.entry.js +4 -3
- 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 +4 -3
- package/dist/esm/gux-button.entry.js +33 -18
- package/dist/esm/gux-calendar.entry.js +1 -1
- package/dist/esm/gux-card.entry.js +1 -1
- package/dist/esm/gux-column-manager-item.entry.js +1 -2
- package/dist/esm/gux-column-manager.entry.js +4 -4
- package/dist/esm/gux-content-search.entry.js +2 -2
- package/dist/esm/gux-context-menu.entry.js +1 -1
- 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 +2 -2
- 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 +4 -4
- package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
- package/dist/esm/gux-form-field-color.entry.js +2 -2
- package/dist/esm/gux-form-field-dropdown.entry.js +2 -2
- package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
- package/dist/esm/gux-form-field-number_3.entry.js +2 -2
- package/dist/esm/gux-form-field-phone.entry.js +2 -2
- package/dist/esm/gux-form-field-radio.entry.js +1 -1
- package/dist/esm/gux-form-field-range.entry.js +2 -2
- package/dist/esm/gux-form-field-search.entry.js +2 -2
- package/dist/esm/gux-form-field-select.entry.js +2 -2
- package/dist/esm/gux-form-field-text-like.entry.js +2 -2
- package/dist/esm/gux-form-field-textarea.entry.js +2 -2
- package/dist/esm/gux-form-field-time-picker.entry.js +2 -2
- package/dist/esm/gux-icon.entry.js +1 -1
- package/dist/esm/gux-inline-alert.entry.js +2 -2
- package/dist/esm/gux-list.entry.js +1 -1
- package/dist/esm/gux-listbox-multi.entry.js +1 -1
- package/dist/esm/gux-loading-message.entry.js +1 -1
- package/dist/esm/gux-menu-option.entry.js +8 -1
- package/dist/esm/gux-menu.entry.js +1 -1
- package/dist/esm/gux-modal.entry.js +1 -1
- 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 +436 -378
- 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-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-submenu.entry.js +8 -13
- package/dist/esm/gux-switch-legacy.entry.js +1 -1
- package/dist/esm/gux-tab-list.entry.js +1 -1
- package/dist/esm/gux-tab-panel.entry.js +1 -1
- package/dist/esm/gux-tab.entry.js +1 -1
- package/dist/esm/gux-table-select-menu.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 +1 -1
- package/dist/esm/gux-tag.entry.js +1 -1
- package/dist/esm/gux-text-highlight.entry.js +2 -2
- 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 +145 -47
- package/dist/esm/gux-toast.entry.js +1 -1
- package/dist/esm/gux-toggle-slider.entry.js +5 -3
- package/dist/esm/gux-toggle.entry.js +2 -2
- package/dist/esm/gux-tooltip.entry.js +1 -1
- package/dist/esm/index-a0eec33a.js +4 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{on-attribute-change-b91132e6.js → on-attribute-change-42a46627.js} +1 -13
- package/dist/esm/{usage-fb76486b.js → usage-d6681f18.js} +1 -2
- package/dist/genesys-webcomponents/genesys-webcomponents.css +3 -3
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
- package/dist/genesys-webcomponents/{p-ad5a9495.entry.js → p-07976cff.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7deeb046.entry.js → p-09453413.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-85a97fdd.entry.js → p-0bb16852.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-17b43bc4.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-a811a043.entry.js → p-18e3fe76.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7463fc52.entry.js → p-1d721625.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7e6b5a72.entry.js → p-1dece006.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b716c999.entry.js → p-22f7b058.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e97e4344.entry.js → p-28c70a30.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e491bcac.entry.js → p-32454e23.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f254a399.entry.js → p-3336925d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-04b1029f.entry.js → p-3465ba68.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d5f9129a.entry.js → p-35174acd.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-37a6cf93.entry.js +1 -0
- package/dist/genesys-webcomponents/p-37bfd195.js +1 -0
- package/dist/genesys-webcomponents/p-38bad8d2.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d89f8435.entry.js → p-38c781a4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-298d37f4.entry.js → p-3af115ad.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b1239813.entry.js → p-3c4047d1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-283d98ec.entry.js → p-3cc59add.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-888e521b.js → p-3cf08509.js} +1 -1
- package/dist/genesys-webcomponents/{p-d7625bff.entry.js → p-3ea3a764.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0714156f.entry.js → p-402b6233.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0681e196.entry.js → p-432bb1ce.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-62bec424.entry.js → p-4b7e6ef2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-22041782.entry.js → p-4dee44f2.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4e890707.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-94c44b6b.entry.js → p-52054142.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-946d3b24.entry.js → p-530c362b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1d35e592.entry.js → p-5b36dd80.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4c8af50f.entry.js → p-5dad03e8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-882b432e.entry.js → p-5f316b49.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ee292004.entry.js → p-6236f519.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-53e99e1c.entry.js → p-681b7fcf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0f20be96.entry.js → p-6b815f9c.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-6d04e8cd.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-59674f9b.entry.js → p-6dc75dce.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2767eedd.entry.js → p-6debb4e2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3bca88f0.entry.js → p-700878bf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-723cdd66.entry.js → p-707129d2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-66642f70.entry.js → p-7a40b615.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-79f33755.entry.js → p-7af593fb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ff028bc8.entry.js → p-7b98f591.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-7e9074e8.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-959d205b.entry.js → p-81a7dfc0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-092af550.entry.js → p-834ede94.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-49abdc36.entry.js → p-83b2133c.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-87c75c0c.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c74273f5.entry.js → p-8df4a700.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8ff2c1fe.entry.js +1 -0
- package/dist/genesys-webcomponents/p-93608d93.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-e6ba3486.entry.js → p-967772db.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-da1c6815.entry.js → p-970339d2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5edbbaa2.entry.js → p-9e79e6a9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-079a3314.entry.js → p-9f83906b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e05782d1.entry.js → p-a712590a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a1151219.entry.js → p-a7341016.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ac85575f.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-0023db21.entry.js → p-aeb23536.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-93296fc2.entry.js → p-b1aff517.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b09ed8fd.entry.js → p-b48cf7fd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cda8804c.entry.js → p-b6271f28.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-34f39f9d.entry.js → p-b67960df.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7ae89101.entry.js → p-b6d1e2e1.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b6fb5b65.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-8cde9be1.entry.js → p-b8755c5a.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-bb1ee297.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-2e0206ad.entry.js → p-cc724d95.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-d264a043.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c1d6b950.entry.js → p-d2a6a92d.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-d967c7e7.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-5f2d702e.entry.js → p-da6e6f64.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a5f41d6c.entry.js → p-dadc097d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f6cdabee.entry.js → p-dc897b48.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b83c0fce.entry.js → p-df01c156.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-06a051e2.entry.js → p-e3fc7d7d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4fc6e77b.entry.js → p-e604265e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bc151fdb.entry.js → p-e71c94cc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-895e3e22.entry.js → p-e8261f28.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9dfd5bd0.entry.js → p-e99f4472.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fb229e19.entry.js → p-eb8434c9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-703abdff.entry.js → p-ee473cc9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-89ef8747.entry.js → p-ee643cb5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-759d93b2.entry.js → p-f2c2a915.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c8193aef.entry.js → p-f327dc53.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c8d42dd7.entry.js → p-f5540a5d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-88b39a07.entry.js → p-fb683f3e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8a67c5ac.entry.js → p-fbb62dfa.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/beta/gux-phone-input/gux-phone-input.d.ts +31 -16
- package/dist/types/components/beta/gux-phone-input/gux-phone.types.d.ts +11 -0
- package/dist/types/components/beta/gux-phone-input/services/RegionCountryCodeMap.d.ts +0 -3
- package/dist/types/components/beta/gux-phone-input/services/region-map.service.d.ts +1 -5
- package/dist/types/components/stable/gux-button/gux-button.d.ts +5 -0
- package/dist/types/components/stable/gux-button-slot/gux-button-slot.d.ts +1 -0
- package/dist/types/components/stable/gux-flyout-menu/gux-menu/gux-menu-option/gux-menu-option.d.ts +1 -0
- package/dist/types/components.d.ts +22 -45
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +1 -2
- package/dist/cjs/gux-table-select-popover.cjs.entry.js +0 -1893
- package/dist/collection/components/beta/gux-phone-input/components/gux-region-icon/gux-region-select.service.js +0 -25
- package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-popover/gux-table-header-popover.js +0 -171
- package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-popover/gux-table-select-popover.css +0 -12
- package/dist/esm/gux-table-select-popover.entry.js +0 -1889
- package/dist/genesys-webcomponents/p-041433c6.entry.js +0 -1
- package/dist/genesys-webcomponents/p-0439dede.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3b9f7f34.entry.js +0 -1
- package/dist/genesys-webcomponents/p-457dce75.entry.js +0 -1
- package/dist/genesys-webcomponents/p-4e030b49.js +0 -1
- package/dist/genesys-webcomponents/p-644b750b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-655abec1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-69153f39.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6c72ef03.entry.js +0 -1
- package/dist/genesys-webcomponents/p-992542c8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9d684bc6.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a1c693e2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-e3342cc2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-e7d70a06.entry.js +0 -1
- package/dist/genesys-webcomponents/p-e841c083.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ea41620e.entry.js +0 -1
- package/dist/types/components/beta/gux-phone-input/components/gux-region-icon/gux-region-select.service.d.ts +0 -1
- package/dist/types/components/stable/gux-table/gux-table-select-menu/gux-table-select-popover/gux-table-header-popover.d.ts +0 -32
@@ -246,252 +246,3 @@ export const regionCountryCodeMap = {
|
|
246
246
|
ZM: '+260',
|
247
247
|
ZW: '+263'
|
248
248
|
};
|
249
|
-
// Turn region keys of above map to a union string type of those keys
|
250
|
-
const regions = [
|
251
|
-
'AD',
|
252
|
-
'AE',
|
253
|
-
'AF',
|
254
|
-
'AG',
|
255
|
-
'AI',
|
256
|
-
'AL',
|
257
|
-
'AM',
|
258
|
-
'AO',
|
259
|
-
'AR',
|
260
|
-
'AS',
|
261
|
-
'AT',
|
262
|
-
'AU',
|
263
|
-
'AW',
|
264
|
-
'AX',
|
265
|
-
'AZ',
|
266
|
-
'BA',
|
267
|
-
'BB',
|
268
|
-
'BD',
|
269
|
-
'BE',
|
270
|
-
'BF',
|
271
|
-
'BG',
|
272
|
-
'BH',
|
273
|
-
'BI',
|
274
|
-
'BJ',
|
275
|
-
'BL',
|
276
|
-
'BM',
|
277
|
-
'BN',
|
278
|
-
'BO',
|
279
|
-
'BQ',
|
280
|
-
'BR',
|
281
|
-
'BS',
|
282
|
-
'BT',
|
283
|
-
'BV',
|
284
|
-
'BW',
|
285
|
-
'BY',
|
286
|
-
'BZ',
|
287
|
-
'CA',
|
288
|
-
'CC',
|
289
|
-
'CD',
|
290
|
-
'CF',
|
291
|
-
'CG',
|
292
|
-
'CH',
|
293
|
-
'CI',
|
294
|
-
'CK',
|
295
|
-
'CL',
|
296
|
-
'CM',
|
297
|
-
'CN',
|
298
|
-
'CO',
|
299
|
-
'CR',
|
300
|
-
'CU',
|
301
|
-
'CV',
|
302
|
-
'CW',
|
303
|
-
'CX',
|
304
|
-
'CY',
|
305
|
-
'CZ',
|
306
|
-
'DE',
|
307
|
-
'DJ',
|
308
|
-
'DK',
|
309
|
-
'DM',
|
310
|
-
'DO',
|
311
|
-
'DZ',
|
312
|
-
'EC',
|
313
|
-
'EE',
|
314
|
-
'EG',
|
315
|
-
'EH',
|
316
|
-
'ER',
|
317
|
-
'ES',
|
318
|
-
'ET',
|
319
|
-
'FI',
|
320
|
-
'FJ',
|
321
|
-
'FK',
|
322
|
-
'FM',
|
323
|
-
'FO',
|
324
|
-
'FR',
|
325
|
-
'GA',
|
326
|
-
'GB',
|
327
|
-
'GD',
|
328
|
-
'GE',
|
329
|
-
'GF',
|
330
|
-
'GG',
|
331
|
-
'GH',
|
332
|
-
'GI',
|
333
|
-
'GL',
|
334
|
-
'GM',
|
335
|
-
'GN',
|
336
|
-
'GP',
|
337
|
-
'GQ',
|
338
|
-
'GR',
|
339
|
-
'GS',
|
340
|
-
'GT',
|
341
|
-
'GU',
|
342
|
-
'GW',
|
343
|
-
'GY',
|
344
|
-
'HK',
|
345
|
-
'HN',
|
346
|
-
'HR',
|
347
|
-
'HT',
|
348
|
-
'HU',
|
349
|
-
'ID',
|
350
|
-
'IE',
|
351
|
-
'IL',
|
352
|
-
'IM',
|
353
|
-
'IN',
|
354
|
-
'IO',
|
355
|
-
'IQ',
|
356
|
-
'IR',
|
357
|
-
'IS',
|
358
|
-
'IT',
|
359
|
-
'JE',
|
360
|
-
'JM',
|
361
|
-
'JO',
|
362
|
-
'JP',
|
363
|
-
'KE',
|
364
|
-
'KG',
|
365
|
-
'KH',
|
366
|
-
'KI',
|
367
|
-
'KM',
|
368
|
-
'KN',
|
369
|
-
'KP',
|
370
|
-
'KR',
|
371
|
-
'KW',
|
372
|
-
'KY',
|
373
|
-
'KZ',
|
374
|
-
'LA',
|
375
|
-
'LB',
|
376
|
-
'LC',
|
377
|
-
'LI',
|
378
|
-
'LK',
|
379
|
-
'LR',
|
380
|
-
'LS',
|
381
|
-
'LT',
|
382
|
-
'LU',
|
383
|
-
'LV',
|
384
|
-
'LY',
|
385
|
-
'MA',
|
386
|
-
'MC',
|
387
|
-
'MD',
|
388
|
-
'ME',
|
389
|
-
'MF',
|
390
|
-
'MG',
|
391
|
-
'MH',
|
392
|
-
'MK',
|
393
|
-
'ML',
|
394
|
-
'MM',
|
395
|
-
'MN',
|
396
|
-
'MO',
|
397
|
-
'MP',
|
398
|
-
'MQ',
|
399
|
-
'MR',
|
400
|
-
'MS',
|
401
|
-
'MT',
|
402
|
-
'MU',
|
403
|
-
'MV',
|
404
|
-
'MW',
|
405
|
-
'MX',
|
406
|
-
'MY',
|
407
|
-
'MZ',
|
408
|
-
'NA',
|
409
|
-
'NC',
|
410
|
-
'NE',
|
411
|
-
'NF',
|
412
|
-
'NG',
|
413
|
-
'NI',
|
414
|
-
'NL',
|
415
|
-
'NO',
|
416
|
-
'NP',
|
417
|
-
'NR',
|
418
|
-
'NU',
|
419
|
-
'NZ',
|
420
|
-
'OM',
|
421
|
-
'PA',
|
422
|
-
'PE',
|
423
|
-
'PF',
|
424
|
-
'PG',
|
425
|
-
'PH',
|
426
|
-
'PK',
|
427
|
-
'PL',
|
428
|
-
'PM',
|
429
|
-
'PN',
|
430
|
-
'PR',
|
431
|
-
'PS',
|
432
|
-
'PT',
|
433
|
-
'PW',
|
434
|
-
'PY',
|
435
|
-
'QA',
|
436
|
-
'RE',
|
437
|
-
'RO',
|
438
|
-
'RS',
|
439
|
-
'RU',
|
440
|
-
'RW',
|
441
|
-
'SA',
|
442
|
-
'SB',
|
443
|
-
'SC',
|
444
|
-
'SD',
|
445
|
-
'SE',
|
446
|
-
'SG',
|
447
|
-
'SH',
|
448
|
-
'SI',
|
449
|
-
'SJ',
|
450
|
-
'SK',
|
451
|
-
'SL',
|
452
|
-
'SM',
|
453
|
-
'SN',
|
454
|
-
'SO',
|
455
|
-
'SR',
|
456
|
-
'SS',
|
457
|
-
'ST',
|
458
|
-
'SV',
|
459
|
-
'SX',
|
460
|
-
'SY',
|
461
|
-
'SZ',
|
462
|
-
'TC',
|
463
|
-
'TD',
|
464
|
-
'TG',
|
465
|
-
'TH',
|
466
|
-
'TJ',
|
467
|
-
'TK',
|
468
|
-
'TL',
|
469
|
-
'TM',
|
470
|
-
'TN',
|
471
|
-
'TO',
|
472
|
-
'TR',
|
473
|
-
'TT',
|
474
|
-
'TV',
|
475
|
-
'TW',
|
476
|
-
'TZ',
|
477
|
-
'UA',
|
478
|
-
'UG',
|
479
|
-
'US',
|
480
|
-
'UY',
|
481
|
-
'UZ',
|
482
|
-
'VA',
|
483
|
-
'VC',
|
484
|
-
'VE',
|
485
|
-
'VG',
|
486
|
-
'VI',
|
487
|
-
'VN',
|
488
|
-
'VU',
|
489
|
-
'WF',
|
490
|
-
'WS',
|
491
|
-
'XK',
|
492
|
-
'YE',
|
493
|
-
'YT',
|
494
|
-
'ZA',
|
495
|
-
'ZM',
|
496
|
-
'ZW'
|
497
|
-
];
|
@@ -3,12 +3,12 @@ export function getRegionObjects(locale, i18n, phoneUtil) {
|
|
3
3
|
let regionObjects = [];
|
4
4
|
for (const [key, val] of Object.entries(regionCountryCodeMap)) {
|
5
5
|
regionObjects.push({
|
6
|
-
|
6
|
+
alpha2Code: key,
|
7
7
|
name: i18n(key),
|
8
|
-
|
8
|
+
dialCode: val
|
9
9
|
});
|
10
10
|
}
|
11
|
-
regionObjects = regionObjects.filter(r => phoneUtil.getSupportedRegions().includes(r.
|
11
|
+
regionObjects = regionObjects.filter(r => phoneUtil.getSupportedRegions().includes(r.alpha2Code));
|
12
12
|
regionObjects.sort((a, b) => a.name.localeCompare(b.name, locale));
|
13
13
|
return regionObjects;
|
14
14
|
}
|
@@ -17,8 +17,12 @@ describe('gux-phone-input', () => {
|
|
17
17
|
html: `<gux-phone-input-beta value="+13175971660"></gux-phone-input-beta>`
|
18
18
|
},
|
19
19
|
{
|
20
|
-
description: 'should render with format',
|
20
|
+
description: 'should render with e164 format',
|
21
21
|
html: `<gux-phone-input-beta phone-number-format="E164"></gux-phone-input-beta>`
|
22
|
+
},
|
23
|
+
{
|
24
|
+
description: 'should render with international format',
|
25
|
+
html: `<gux-phone-input-beta phone-number-format="INTERNATIONAL"></gux-phone-input-beta>`
|
22
26
|
}
|
23
27
|
].forEach(({ description, html }) => {
|
24
28
|
it(description, async () => {
|
@@ -28,61 +32,69 @@ describe('gux-phone-input', () => {
|
|
28
32
|
await a11yCheck(page);
|
29
33
|
});
|
30
34
|
});
|
31
|
-
it('open country dropdown and select option', async () => {
|
32
|
-
const page = await newSparkE2EPage({
|
33
|
-
html: `<gux-phone-input-beta></gux-phone-input-beta>`
|
34
|
-
});
|
35
|
-
const dropdownButton = await page.find('pierce/.gux-field-button');
|
36
|
-
const inputField = await page.find('pierce/#tel-input');
|
37
|
-
const inputEventSpy = await page.spyOnEvent('input');
|
38
|
-
await dropdownButton.press('Enter');
|
39
|
-
expect(dropdownButton.getAttribute('aria-expanded')).toBe('true');
|
40
|
-
await page.waitForChanges();
|
41
|
-
await a11yCheck(page);
|
42
|
-
await page.keyboard.press('ArrowDown');
|
43
|
-
await page.keyboard.press('Enter');
|
44
|
-
await page.waitForChanges();
|
45
|
-
expect(await inputField.getProperty('value')).toBe('+93');
|
46
|
-
expect(inputEventSpy).toHaveReceivedEventDetail('+93');
|
47
|
-
expect(dropdownButton.getAttribute('aria-expanded')).toBe('false');
|
48
|
-
});
|
49
35
|
});
|
50
|
-
it('
|
36
|
+
it('open country dropdown and select option with value not starting with +', async () => {
|
51
37
|
const page = await newSparkE2EPage({
|
52
|
-
html: `<gux-phone-input-beta
|
38
|
+
html: `<gux-phone-input-beta></gux-phone-input-beta>`
|
53
39
|
});
|
54
40
|
const dropdownButton = await page.find('pierce/.gux-field-button');
|
55
|
-
await
|
41
|
+
const inputField = await page.find('pierce/#tel-input');
|
42
|
+
const component = await page.find('gux-phone-input-beta');
|
43
|
+
await inputField.press('1');
|
44
|
+
await dropdownButton.press('Enter');
|
45
|
+
expect(dropdownButton.getAttribute('aria-expanded')).toBe('true');
|
56
46
|
await page.waitForChanges();
|
57
|
-
|
58
|
-
|
47
|
+
await a11yCheck(page);
|
48
|
+
await page.keyboard.press('ArrowDown');
|
49
|
+
await page.keyboard.press('Enter');
|
50
|
+
await page.waitForChanges();
|
51
|
+
const region = await component.callMethod('getRegion');
|
52
|
+
expect(region.alpha2Code).toBe('AF');
|
53
|
+
expect(await component.getProperty('value')).toBe('1');
|
54
|
+
expect(dropdownButton.getAttribute('aria-expanded')).toBe('false');
|
59
55
|
});
|
60
|
-
it('
|
56
|
+
it('open country dropdown and select option with value starting with +', async () => {
|
61
57
|
const page = await newSparkE2EPage({
|
62
58
|
html: `<gux-phone-input-beta></gux-phone-input-beta>`
|
63
59
|
});
|
64
60
|
const dropdownButton = await page.find('pierce/.gux-field-button');
|
65
61
|
const inputField = await page.find('pierce/#tel-input');
|
66
|
-
await
|
62
|
+
const component = await page.find('gux-phone-input-beta');
|
63
|
+
await inputField.press('+');
|
64
|
+
await inputField.press('1');
|
65
|
+
await dropdownButton.press('Enter');
|
66
|
+
expect(dropdownButton.getAttribute('aria-expanded')).toBe('true');
|
67
67
|
await page.waitForChanges();
|
68
|
-
await
|
68
|
+
await a11yCheck(page);
|
69
|
+
await page.keyboard.press('ArrowDown');
|
70
|
+
await page.keyboard.press('Enter');
|
69
71
|
await page.waitForChanges();
|
70
|
-
const
|
71
|
-
expect(
|
72
|
+
const region = await component.callMethod('getRegion');
|
73
|
+
expect(region.alpha2Code).toBe('AD');
|
74
|
+
expect(await component.getProperty('value')).toBe('+376');
|
75
|
+
expect(dropdownButton.getAttribute('aria-expanded')).toBe('false');
|
76
|
+
});
|
77
|
+
it('region is set when initialized with value', async () => {
|
78
|
+
const page = await newSparkE2EPage({
|
79
|
+
html: `<gux-phone-input-beta value="+13175971660"></gux-phone-input-beta>`
|
80
|
+
});
|
81
|
+
const dropdownButtonIcon = await page.find('pierce/.gux-field-button gux-region-icon');
|
82
|
+
const component = await page.find('gux-phone-input-beta');
|
83
|
+
const region = await component.callMethod('getRegion');
|
84
|
+
expect(region.alpha2Code).toBe('US');
|
85
|
+
expect(dropdownButtonIcon.getAttribute('screenreader-text')).toBe('United States');
|
72
86
|
});
|
73
|
-
it('
|
87
|
+
it('region is set when typing in country code', async () => {
|
74
88
|
const page = await newSparkE2EPage({
|
75
|
-
html: `<gux-phone-input-beta></gux-phone-input-beta
|
76
|
-
<input type="text" id="focus-input">`
|
89
|
+
html: `<gux-phone-input-beta></gux-phone-input-beta>`
|
77
90
|
});
|
78
|
-
const
|
91
|
+
const dropdownButton = await page.find('pierce/.gux-field-button');
|
79
92
|
const inputField = await page.find('pierce/#tel-input');
|
80
|
-
|
81
|
-
await inputField.focus();
|
82
|
-
await inputField.type('+1317');
|
93
|
+
await inputField.type('+41');
|
83
94
|
await page.waitForChanges();
|
84
|
-
|
95
|
+
await dropdownButton.click();
|
85
96
|
await page.waitForChanges();
|
86
|
-
|
97
|
+
const selected = await page.find('pierce/.gux-selected');
|
98
|
+
expect(selected.textContent).toEqual('Switzerland+41');
|
87
99
|
});
|
88
100
|
});
|
package/dist/collection/components/beta/gux-time-zone-picker/tests/gux-time-zone-picker.e2e.js
CHANGED
@@ -24,7 +24,7 @@ describe('gux-time-zone-picker-beta', () => {
|
|
24
24
|
await openWithClick(page);
|
25
25
|
await a11yCheck(page);
|
26
26
|
let visibleItems = await unfilteredOptions(page);
|
27
|
-
expect(visibleItems.length).toBe(
|
27
|
+
expect(visibleItems.length).toBe(565);
|
28
28
|
await page.keyboard.press('a');
|
29
29
|
await page.keyboard.press('d');
|
30
30
|
await page.keyboard.press('a');
|
@@ -40,14 +40,14 @@ describe('gux-time-zone-picker-beta', () => {
|
|
40
40
|
await openWithClick(page);
|
41
41
|
await a11yCheck(page);
|
42
42
|
let visibleItems = await unfilteredOptions(page);
|
43
|
-
expect(visibleItems.length).toBe(
|
43
|
+
expect(visibleItems.length).toBe(565);
|
44
44
|
await page.keyboard.press('e');
|
45
45
|
await page.keyboard.press('t');
|
46
46
|
await page.keyboard.press('c');
|
47
47
|
await page.keyboard.press('/');
|
48
48
|
await page.waitForChanges();
|
49
49
|
visibleItems = await unfilteredOptions(page);
|
50
|
-
expect(visibleItems.length).toBe(
|
50
|
+
expect(visibleItems.length).toBe(29);
|
51
51
|
expect(visibleItems[0].textContent).toBe('Etc/GMT (UTC+00:00)');
|
52
52
|
});
|
53
53
|
});
|
@@ -36,10 +36,10 @@
|
|
36
36
|
align-items: center;
|
37
37
|
justify-content: center;
|
38
38
|
height: var(--gse-ui-badge-height);
|
39
|
-
padding:
|
39
|
+
padding: 2px 12px;
|
40
40
|
font-family: var(--gse-ui-badge-text-fontFamily);
|
41
41
|
font-size: var(--gse-ui-badge-text-fontSize);
|
42
|
-
font-weight: var(--gse-ui-badge-text-fontWeight
|
42
|
+
font-weight: var(--gse-ui-badge-text-fontWeight);
|
43
43
|
line-height: var(--gse-ui-badge-text-lineHeight);
|
44
44
|
border-radius: var(--gse-ui-badge-borderRadius);
|
45
45
|
}
|
@@ -18,7 +18,7 @@
|
|
18
18
|
}
|
19
19
|
|
20
20
|
::slotted(*) {
|
21
|
-
padding-left:
|
21
|
+
padding-left: var(--gse-core-spacing-3xs);
|
22
22
|
vertical-align: middle;
|
23
23
|
}
|
24
24
|
|
@@ -45,6 +45,9 @@ button {
|
|
45
45
|
border: none;
|
46
46
|
border-radius: var(--gse-ui-button-borderRadius);
|
47
47
|
}
|
48
|
+
button.gux-icon-only {
|
49
|
+
padding: var(--gse-ui-button-paddingIconOnly);
|
50
|
+
}
|
48
51
|
button[disabled] {
|
49
52
|
cursor: default;
|
50
53
|
opacity: var(--gse-ui-button-disabled-opacity);
|
@@ -9,32 +9,47 @@ export class GuxButton {
|
|
9
9
|
this.guxTitle = undefined;
|
10
10
|
this.disabled = false;
|
11
11
|
this.accent = 'secondary';
|
12
|
+
this.iconOnly = undefined;
|
13
|
+
}
|
14
|
+
connectedCallback() {
|
15
|
+
this.slotChanged();
|
12
16
|
}
|
13
17
|
componentWillLoad() {
|
14
18
|
trackComponent(this.root, { variant: this.accent });
|
15
|
-
this.makeSlotContentDisableable();
|
16
19
|
}
|
17
20
|
render() {
|
18
|
-
return (h("button", { type: this.type, title: this.guxTitle, disabled: this.disabled, class:
|
21
|
+
return (h("button", { type: this.type, title: this.guxTitle, disabled: this.disabled, class: {
|
22
|
+
[`gux-${this.accent}`]: true,
|
23
|
+
'gux-icon-only': this.iconOnly
|
24
|
+
} }, h("slot", { onSlotchange: this.slotChanged.bind(this) })));
|
25
|
+
}
|
26
|
+
stopEventIfDisabled(event) {
|
27
|
+
if (this.disabled) {
|
28
|
+
event.stopImmediatePropagation();
|
29
|
+
event.stopPropagation();
|
30
|
+
event.preventDefault();
|
31
|
+
}
|
19
32
|
}
|
20
33
|
makeSlotContentDisableable() {
|
21
|
-
this.root.shadowRoot.addEventListener('click', (event) =>
|
22
|
-
if (this.disabled) {
|
23
|
-
event.stopImmediatePropagation();
|
24
|
-
event.stopPropagation();
|
25
|
-
event.preventDefault();
|
26
|
-
}
|
27
|
-
});
|
34
|
+
this.root.shadowRoot.addEventListener('click', (event) => this.stopEventIfDisabled(event));
|
28
35
|
Array.from(this.root.children).forEach(slotElement => {
|
29
|
-
slotElement.addEventListener('click', (event) =>
|
30
|
-
if (this.disabled) {
|
31
|
-
event.stopImmediatePropagation();
|
32
|
-
event.stopPropagation();
|
33
|
-
event.preventDefault();
|
34
|
-
}
|
35
|
-
});
|
36
|
+
slotElement.addEventListener('click', (event) => this.stopEventIfDisabled(event));
|
36
37
|
});
|
37
38
|
}
|
39
|
+
hasIconOnly() {
|
40
|
+
const children = Array.from(this.root.children);
|
41
|
+
if (children.length === 1) {
|
42
|
+
const child = children[0];
|
43
|
+
if (child.tagName === 'GUX-ICON') {
|
44
|
+
return true;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
return false;
|
48
|
+
}
|
49
|
+
slotChanged() {
|
50
|
+
this.makeSlotContentDisableable();
|
51
|
+
this.iconOnly = this.hasIconOnly();
|
52
|
+
}
|
38
53
|
static get is() { return "gux-button"; }
|
39
54
|
static get encapsulation() { return "shadow"; }
|
40
55
|
static get delegatesFocus() { return true; }
|
@@ -135,5 +150,10 @@ export class GuxButton {
|
|
135
150
|
}
|
136
151
|
};
|
137
152
|
}
|
153
|
+
static get states() {
|
154
|
+
return {
|
155
|
+
"iconOnly": {}
|
156
|
+
};
|
157
|
+
}
|
138
158
|
static get elementRef() { return "root"; }
|
139
159
|
}
|
@@ -25,6 +25,12 @@
|
|
25
25
|
border-radius: var(--gse-ui-button-borderRadius);
|
26
26
|
}
|
27
27
|
|
28
|
+
:host([icon-only]) ::slotted(input[type=button]),
|
29
|
+
:host([icon-only]) ::slotted(input[type=submit]),
|
30
|
+
:host([icon-only]) ::slotted(button) {
|
31
|
+
padding: var(--gse-ui-button-paddingIconOnly);
|
32
|
+
}
|
33
|
+
|
28
34
|
::slotted(input[type=button][disabled]),
|
29
35
|
::slotted(input[type=submit][disabled]),
|
30
36
|
::slotted(button[disabled]) {
|
@@ -7,6 +7,7 @@ import { logError } from "../../../utils/error/log-error";
|
|
7
7
|
export class GuxButtonSlot {
|
8
8
|
constructor() {
|
9
9
|
this.accent = 'secondary';
|
10
|
+
this.iconOnly = undefined;
|
10
11
|
}
|
11
12
|
validateSlotContent() {
|
12
13
|
let slottedElement = this.root.children[0];
|
@@ -31,7 +32,7 @@ export class GuxButtonSlot {
|
|
31
32
|
this.validateSlotContent();
|
32
33
|
}
|
33
34
|
render() {
|
34
|
-
return (h(Host, { accent: this.accent }, h("slot", null)));
|
35
|
+
return (h(Host, { accent: this.accent, "icon-only": this.iconOnly }, h("slot", null)));
|
35
36
|
}
|
36
37
|
static get is() { return "gux-button-slot"; }
|
37
38
|
static get encapsulation() { return "shadow"; }
|
@@ -70,6 +71,23 @@ export class GuxButtonSlot {
|
|
70
71
|
"attribute": "accent",
|
71
72
|
"reflect": false,
|
72
73
|
"defaultValue": "'secondary'"
|
74
|
+
},
|
75
|
+
"iconOnly": {
|
76
|
+
"type": "boolean",
|
77
|
+
"mutable": false,
|
78
|
+
"complexType": {
|
79
|
+
"original": "boolean",
|
80
|
+
"resolved": "boolean",
|
81
|
+
"references": {}
|
82
|
+
},
|
83
|
+
"required": false,
|
84
|
+
"optional": false,
|
85
|
+
"docs": {
|
86
|
+
"tags": [],
|
87
|
+
"text": ""
|
88
|
+
},
|
89
|
+
"attribute": "icon-only",
|
90
|
+
"reflect": false
|
73
91
|
}
|
74
92
|
};
|
75
93
|
}
|
@@ -1,3 +1,6 @@
|
|
1
|
+
/**
|
2
|
+
* @prop --gse-ui-dataTableItems-editColumn-editColumnItem-gap
|
3
|
+
*/
|
1
4
|
:host([gs-reorder-indicator=above]) .gux-container {
|
2
5
|
border-top-color: #aac9ff;
|
3
6
|
}
|
@@ -10,6 +13,7 @@
|
|
10
13
|
display: flex;
|
11
14
|
flex-direction: row;
|
12
15
|
flex-wrap: nowrap;
|
16
|
+
gap: var(--gse-ui-dataTableItems-editColumn-editColumnItem-gap);
|
13
17
|
align-content: stretch;
|
14
18
|
align-items: center;
|
15
19
|
justify-content: flex-start;
|
@@ -33,11 +37,14 @@
|
|
33
37
|
flex: 0 1 auto;
|
34
38
|
align-self: auto;
|
35
39
|
order: 0;
|
36
|
-
margin-right: 4px;
|
37
40
|
color: #596373;
|
38
41
|
cursor: grab;
|
39
42
|
border-radius: 4px;
|
40
43
|
}
|
44
|
+
.gux-container .gux-reorder gux-icon {
|
45
|
+
width: var(--gse-ui-icon-size-sm);
|
46
|
+
height: var(--gse-ui-icon-size-sm);
|
47
|
+
}
|
41
48
|
.gux-container .gux-reorder.gux-reordering:focus-visible gux-icon {
|
42
49
|
color: #2a60c8;
|
43
50
|
}
|
@@ -59,8 +66,9 @@
|
|
59
66
|
}
|
60
67
|
.gux-container .gux-select gux-text-highlight {
|
61
68
|
position: absolute;
|
62
|
-
top:
|
63
|
-
left:
|
69
|
+
top: 0;
|
70
|
+
left: 31px;
|
71
|
+
color: transparent;
|
64
72
|
pointer-events: none;
|
65
73
|
}
|
66
74
|
|
@@ -1,6 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* @prop --gse-ui-dataTableItems-editColumn-editColumnContent-gap
|
3
|
+
* @prop --gse-ui-dataTableItems-editColumn-editColumnContent-padding
|
4
|
+
*/
|
1
5
|
.gux-container {
|
2
6
|
width: 320px;
|
3
7
|
min-width: 320px;
|
8
|
+
padding: var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding);
|
4
9
|
}
|
5
10
|
.gux-container .gux-search gux-content-search {
|
6
11
|
width: 100%;
|
@@ -13,11 +18,8 @@
|
|
13
18
|
-webkit-appearance: none;
|
14
19
|
}
|
15
20
|
.gux-container .gux-select {
|
16
|
-
padding:
|
17
|
-
margin:
|
18
|
-
color: #596373;
|
19
|
-
background-color: #f6f7f9;
|
20
|
-
border-radius: 4px;
|
21
|
+
padding: var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding);
|
22
|
+
margin-left: 24px;
|
21
23
|
}
|
22
24
|
|
23
25
|
.gux-sr-only:not(:focus):not(:active) {
|