genesys-spark-components 4.0.0-beta.35 → 4.0.0-beta.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/cjs/genesys-webcomponents.cjs.js +3 -6
- package/dist/cjs/{get-valid-timezone-39ba3e64.js → get-valid-timezone-5a9231d3.js} +1 -1
- package/dist/cjs/gux-accordion-section.cjs.entry.js +4 -4
- package/dist/cjs/gux-accordion.cjs.entry.js +2 -2
- package/dist/cjs/gux-action-button.cjs.entry.js +8 -8
- package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +3 -3
- package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +8 -8
- package/dist/cjs/gux-all-row-select.cjs.entry.js +5 -5
- package/dist/cjs/gux-announce-beta.cjs.entry.js +3 -3
- package/dist/cjs/gux-badge.cjs.entry.js +5 -5
- package/dist/cjs/gux-blank-state.cjs.entry.js +3 -3
- package/dist/cjs/gux-breadcrumb-item.cjs.entry.js +3 -3
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +5 -5
- package/dist/cjs/gux-button-multi.cjs.entry.js +6 -6
- package/dist/cjs/gux-button-slot.cjs.entry.js +4 -4
- package/dist/cjs/gux-button.cjs.entry.js +3 -3
- package/dist/cjs/gux-calendar-beta.cjs.entry.js +9 -9
- package/dist/cjs/gux-calendar.cjs.entry.js +8 -8
- package/dist/cjs/gux-card.cjs.entry.js +2 -2
- package/dist/cjs/gux-column-manager-item.cjs.entry.js +7 -7
- package/dist/cjs/gux-column-manager.cjs.entry.js +7 -7
- package/dist/cjs/{gux-column-manager.service-8a71e1f3.js → gux-column-manager.service-7f1cc862.js} +2 -2
- package/dist/cjs/gux-content-search.cjs.entry.js +7 -7
- package/dist/cjs/gux-context-menu.cjs.entry.js +9 -9
- package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +7 -7
- package/dist/cjs/gux-create-option.cjs.entry.js +5 -5
- package/dist/cjs/gux-date-beta.cjs.entry.js +5 -5
- package/dist/cjs/gux-date-time-beta.cjs.entry.js +5 -5
- package/dist/cjs/gux-datepicker.cjs.entry.js +10 -10
- package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +5 -5
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +5 -5
- package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +4 -4
- package/dist/cjs/gux-dropdown-multi.cjs.entry.js +11 -11
- package/dist/cjs/gux-dropdown-option.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +15 -15
- package/dist/cjs/gux-flyout-menu.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +10 -10
- package/dist/cjs/gux-form-field-color.cjs.entry.js +13 -13
- package/dist/cjs/{gux-form-field-container-64e8bc38.js → gux-form-field-container-48871f4b.js} +1 -1
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +15 -15
- package/dist/cjs/{gux-form-field-fieldset-container-1abe7d3b.js → gux-form-field-fieldset-container-c0d39bed.js} +1 -1
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-number_3.cjs.entry.js +23 -23
- package/dist/cjs/gux-form-field-phone.cjs.entry.js +14 -14
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +11 -11
- package/dist/cjs/gux-form-field-range.cjs.entry.js +13 -13
- package/dist/cjs/gux-form-field-search.cjs.entry.js +13 -13
- package/dist/cjs/gux-form-field-select.cjs.entry.js +13 -13
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +13 -13
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +13 -13
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +14 -14
- package/dist/cjs/{gux-form-field.service-dd469568.js → gux-form-field.service-704c78c2.js} +5 -5
- package/dist/cjs/gux-icon.cjs.entry.js +3 -3
- package/dist/cjs/gux-inline-alert.cjs.entry.js +5 -5
- package/dist/cjs/gux-list-divider.cjs.entry.js +1 -1
- package/dist/cjs/gux-list-item.cjs.entry.js +3 -3
- package/dist/cjs/gux-list.cjs.entry.js +3 -3
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +9 -9
- package/dist/cjs/gux-loading-message.cjs.entry.js +3 -3
- package/dist/cjs/gux-menu-option.cjs.entry.js +2 -2
- package/dist/cjs/gux-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal.cjs.entry.js +4 -4
- package/dist/cjs/gux-month-calendar.cjs.entry.js +7 -7
- package/dist/cjs/gux-month-list_2.cjs.entry.js +4 -4
- package/dist/cjs/gux-month-picker-beta.cjs.entry.js +9 -9
- package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +3 -3
- package/dist/cjs/gux-option-icon.cjs.entry.js +3 -3
- package/dist/cjs/gux-option-multi.cjs.entry.js +5 -5
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +2 -2
- package/dist/cjs/gux-pagination-buttons-legacy_3.cjs.entry.js +6 -6
- package/dist/cjs/gux-pagination-buttons_3.cjs.entry.js +8 -8
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +5 -5
- package/dist/cjs/gux-pagination-legacy.cjs.entry.js +3 -3
- package/dist/cjs/gux-pagination.cjs.entry.js +4 -4
- package/dist/cjs/gux-phone-input-beta.cjs.entry.js +8 -8
- package/dist/cjs/gux-popover-list.cjs.entry.js +6 -6
- package/dist/cjs/gux-popup.cjs.entry.js +3 -3
- package/dist/cjs/gux-radial-loading.cjs.entry.js +5 -5
- package/dist/cjs/gux-radial-progress.cjs.entry.js +4 -4
- package/dist/cjs/gux-rating.cjs.entry.js +6 -6
- package/dist/cjs/gux-region-icon.cjs.entry.js +2 -2
- package/dist/cjs/gux-row-select.cjs.entry.js +5 -5
- package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +3 -3
- package/dist/cjs/gux-segmented-control-item.cjs.entry.js +5 -5
- package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-skip-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +4 -4
- package/dist/cjs/gux-sort-control.cjs.entry.js +7 -7
- package/dist/cjs/gux-submenu.cjs.entry.js +4 -4
- package/dist/cjs/gux-switch-item.cjs.entry.js +2 -2
- package/dist/cjs/gux-switch-legacy.cjs.entry.js +3 -3
- package/dist/cjs/gux-tab-advanced-legacy.cjs.entry.js +7 -7
- package/dist/cjs/gux-tab-advanced-list-legacy.cjs.entry.js +8 -8
- package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +8 -8
- package/dist/cjs/gux-tab-advanced-panel-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-tab-advanced-panel.cjs.entry.js +2 -2
- package/dist/cjs/gux-tab-advanced.cjs.entry.js +7 -7
- package/dist/cjs/gux-tab-list.cjs.entry.js +6 -6
- package/dist/cjs/gux-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/gux-tab.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-select-menu.cjs.entry.js +8 -8
- package/dist/cjs/gux-table-select-popover.cjs.entry.js +3 -3
- package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +5 -5
- package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +3 -3
- package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +6 -6
- package/dist/cjs/gux-table-toolbar.cjs.entry.js +5 -5
- package/dist/cjs/gux-table.cjs.entry.js +8 -8
- package/dist/cjs/gux-tabs-advanced-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +2 -2
- package/dist/cjs/gux-tabs.cjs.entry.js +2 -2
- package/dist/cjs/gux-tag.cjs.entry.js +5 -5
- package/dist/cjs/gux-text-highlight.cjs.entry.js +2 -2
- package/dist/cjs/gux-time-beta.cjs.entry.js +5 -5
- package/dist/cjs/gux-time-picker.cjs.entry.js +8 -8
- package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +5 -5
- package/dist/cjs/gux-toast.cjs.entry.js +4 -4
- package/dist/cjs/gux-toggle-slider.cjs.entry.js +2 -2
- package/dist/cjs/gux-toggle.cjs.entry.js +5 -5
- package/dist/cjs/gux-tooltip-title.cjs.entry.js +4 -4
- package/dist/cjs/gux-tooltip.cjs.entry.js +7 -7
- package/dist/cjs/gux-truncate.cjs.entry.js +3 -3
- package/dist/cjs/{index-0d0fdb85.js → index-39160f18.js} +155 -39
- package/dist/cjs/{index-9bbde1aa.js → index-ff762de3.js} +2 -2
- package/dist/cjs/loader.cjs.js +3 -12
- package/dist/cjs/{on-click-outside-428f8bbf.js → on-click-outside-a7d87c91.js} +1 -1
- package/dist/cjs/{on-mutation-247f99dd.js → on-mutation-f396cc0e.js} +1 -1
- package/dist/cjs/{on-resize-ee6a4b87.js → on-resize-b4982908.js} +1 -1
- package/dist/cjs/{usage-7e2e71dc.js → usage-dea328c9.js} +6 -6
- package/dist/collection/collection-manifest.json +127 -127
- package/dist/collection/components/beta/gux-announce/gux-announce.js +7 -5
- package/dist/collection/components/beta/gux-announce/tests/gux-announce.e2e.js +18 -0
- package/dist/collection/components/beta/gux-announce/tests/gux-announce.spec.js +19 -0
- package/dist/collection/components/beta/gux-calendar-beta/components/single/gux-calendar.css +14 -15
- package/dist/collection/components/beta/gux-calendar-beta/components/single/gux-calendar.js +9 -9
- package/dist/collection/components/beta/gux-calendar-beta/services/calendar.service.js +1 -1
- package/dist/collection/components/beta/gux-calendar-beta/tests/gux-calendar.e2e.js +202 -0
- package/dist/collection/components/beta/gux-calendar-beta/tests/gux-calendar.spec.js +19 -0
- package/dist/collection/components/beta/gux-date/gux-date.js +9 -7
- package/dist/collection/components/beta/gux-date/tests/gux-date.e2e.js +30 -0
- package/dist/collection/components/beta/gux-date/tests/gux-date.spec.js +30 -0
- package/dist/collection/components/beta/gux-date-time/gux-date-time.js +9 -7
- package/dist/collection/components/beta/gux-date-time/tests/gux-date-time.e2e.js +30 -0
- package/dist/collection/components/beta/gux-date-time/tests/gux-date-time.spec.js +30 -0
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.css +7 -7
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.js +18 -12
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list-item/gux-month-list-item.css +3 -3
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list-item/gux-month-list-item.js +4 -3
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list.js +4 -3
- package/dist/collection/components/beta/gux-month-picker/gux-month-picker.css +5 -5
- package/dist/collection/components/beta/gux-month-picker/gux-month-picker.js +14 -11
- package/dist/collection/components/beta/gux-month-picker/tests/gux-month-picker.e2e.js +18 -0
- package/dist/collection/components/beta/gux-month-picker/tests/gux-month-picker.spec.js +27 -0
- package/dist/collection/components/beta/gux-phone-input/components/gux-region-icon/gux-region-icon.js +3 -3
- package/dist/collection/components/beta/gux-phone-input/components/gux-region-icon/gux-region-select.service.js +1 -1
- package/dist/collection/components/beta/gux-phone-input/gux-phone-input.css +2 -45
- package/dist/collection/components/beta/gux-phone-input/gux-phone-input.js +12 -11
- package/dist/collection/components/beta/gux-phone-input/services/region-map.service.js +1 -1
- package/dist/collection/components/beta/gux-phone-input/tests/gux-phone-input.e2e.js +88 -0
- package/dist/collection/components/beta/gux-screen-reader/gux-screen-reader.js +2 -2
- package/dist/collection/components/beta/gux-screen-reader/tests/gux-screen-reader.e2e.js +16 -0
- package/dist/collection/components/beta/gux-screen-reader/tests/gux-screen-reader.spec.js +17 -0
- package/dist/collection/components/beta/gux-segmented-control/gux-segmented-control-item/gux-segmented-control-item.css +18 -61
- package/dist/collection/components/beta/gux-segmented-control/gux-segmented-control-item/gux-segmented-control-item.js +4 -4
- package/dist/collection/components/beta/gux-segmented-control/gux-segmented-control.js +3 -3
- package/dist/collection/components/beta/gux-segmented-control/tests/gux-segmented-control.e2e.js +108 -0
- package/dist/collection/components/beta/gux-segmented-control/tests/gux-segmented-control.spec.js +126 -0
- package/dist/collection/components/beta/gux-time/gux-time.js +9 -7
- package/dist/collection/components/beta/gux-time/tests/gux-time.e2e.js +30 -0
- package/dist/collection/components/beta/gux-time/tests/gux-time.spec.js +30 -0
- package/dist/collection/components/beta/gux-time-zone-picker/gux-time-zone-picker.js +7 -7
- package/dist/collection/components/beta/gux-time-zone-picker/tests/gux-time-zone-picker.e2e.js +53 -0
- package/dist/collection/components/beta/gux-time-zone-picker/tests/gux-time-zone-picker.spec.js +15 -0
- package/dist/collection/components/legacy/gux-action-toast-legacy/gux-action-toast.css +1 -44
- package/dist/collection/components/legacy/gux-action-toast-legacy/gux-action-toast.js +2 -2
- package/dist/collection/components/legacy/gux-action-toast-legacy/tests/gux-action-toast.e2e.js +26 -0
- package/dist/collection/components/legacy/gux-action-toast-legacy/tests/gux-action-toast.spec.js +28 -0
- package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/dropdown-option/gux-dropdown-option.js +5 -3
- package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/dropdown-option/tests/gux-dropdown-option.spec.js +47 -0
- package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/gux-advanced-dropdown.css +1 -52
- package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/gux-advanced-dropdown.js +11 -9
- package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/tests/gux-advanced-dropdown.e2e.js +149 -0
- package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/tests/gux-advanced-dropdown.spec.js +17 -0
- package/dist/collection/components/legacy/gux-disclosure-button-legacy/gux-disclosure-button.js +7 -6
- package/dist/collection/components/legacy/gux-disclosure-button-legacy/tests/gux-disclosure-button.e2e.js +80 -0
- package/dist/collection/components/legacy/gux-disclosure-button-legacy/tests/gux-disclosure-button.spec.js +82 -0
- package/dist/collection/components/legacy/gux-notification-toast-legacy/gux-notification-toast.css +1 -44
- package/dist/collection/components/legacy/gux-notification-toast-legacy/gux-notification-toast.js +4 -3
- package/dist/collection/components/legacy/gux-notification-toast-legacy/tests/gux-notification-toast.e2e.js +109 -0
- package/dist/collection/components/legacy/gux-notification-toast-legacy/tests/gux-notification-toast.spec.js +99 -0
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/gux-pagination-buttons-legacy.css +14 -14
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/gux-pagination-buttons.js +6 -5
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/tests/gux-pagination-buttons.service.spec.js +138 -0
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/tests/gux-pagination-buttons.spec.js +39 -0
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-item-counts-legacy/gux-pagination-item-counts-legacy.css +3 -3
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-item-counts-legacy/gux-pagination-item-counts.js +3 -3
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-item-counts-legacy/tests/gux-pagination-item-counts.spec.js +30 -0
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-items-per-page-legacy/gux-pagination-items-per-page-legacy.css +3 -3
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-items-per-page-legacy/gux-pagination-items-per-page.js +5 -4
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-items-per-page-legacy/tests/gux-pagination-items-per-page.spec.js +33 -0
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-legacy.css +1 -1
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination.js +8 -5
- package/dist/collection/components/legacy/gux-pagination-legacy/tests/gux-pagination.e2e.js +53 -0
- package/dist/collection/components/legacy/gux-pagination-legacy/tests/gux-pagination.spec.js +65 -0
- package/dist/collection/components/legacy/gux-simple-toast-legacy/gux-simple-toast.js +4 -3
- package/dist/collection/components/legacy/gux-simple-toast-legacy/tests/gux-simple-toast.e2e.js +103 -0
- package/dist/collection/components/legacy/gux-simple-toast-legacy/tests/gux-simple-toast.spec.js +93 -0
- package/dist/collection/components/legacy/gux-switch-legacy/gux-switch-item/gux-switch-item.css +0 -43
- package/dist/collection/components/legacy/gux-switch-legacy/gux-switch-item/gux-switch-item.js +1 -1
- package/dist/collection/components/legacy/gux-switch-legacy/gux-switch.js +5 -4
- package/dist/collection/components/legacy/gux-switch-legacy/tests/gux-switch.e2e.js +87 -0
- package/dist/collection/components/legacy/gux-switch-legacy/tests/gux-switch.spec.js +116 -0
- package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced/gux-tab-advanced.js +12 -9
- package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-list/gux-tab-advanced-list.css +1 -85
- package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-list/gux-tab-advanced-list.js +9 -8
- package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-panel/gux-tab-advanced-panel.css +1 -42
- package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-panel/gux-tab-advanced-panel.js +3 -2
- package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tabs-advanced.js +4 -3
- package/dist/collection/components/legacy/gux-tabs-advanced-legacy/tests/gux-tabs-advanced.e2e.js +216 -0
- package/dist/collection/components/legacy/gux-tabs-advanced-legacy/tests/gux-tabs-advanced.spec.js +73 -0
- package/dist/collection/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.css +4 -94
- package/dist/collection/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.js +7 -5
- package/dist/collection/components/stable/gux-accordion/gux-accordion.js +2 -2
- package/dist/collection/components/stable/gux-accordion/tests/gux-accordion.e2e.js +46 -0
- package/dist/collection/components/stable/gux-accordion/tests/gux-accordion.spec.js +52 -0
- package/dist/collection/components/stable/gux-action-button/gux-action-button.css +1 -1
- package/dist/collection/components/stable/gux-action-button/gux-action-button.js +12 -10
- package/dist/collection/components/stable/gux-action-button/tests/gux-action-button.e2e.js +93 -0
- package/dist/collection/components/stable/gux-action-button/tests/gux-action-button.spec.js +96 -0
- package/dist/collection/components/stable/gux-alert/gux-inline-alert.css +2 -2
- package/dist/collection/components/stable/gux-alert/gux-inline-alert.js +6 -5
- package/dist/collection/components/stable/gux-alert/tests/gux-inline-alert.e2e.js +22 -0
- package/dist/collection/components/stable/gux-alert/tests/gux-inline-alert.spec.js +23 -0
- package/dist/collection/components/stable/gux-badge/gux-badge.css +3 -3
- package/dist/collection/components/stable/gux-badge/gux-badge.js +6 -5
- package/dist/collection/components/stable/gux-badge/tests/gux-badge.e2e.js +38 -0
- package/dist/collection/components/stable/gux-badge/tests/gux-badge.spec.js +39 -0
- package/dist/collection/components/stable/gux-blank-state/gux-blank-state.css +9 -9
- package/dist/collection/components/stable/gux-blank-state/gux-blank-state.js +2 -2
- package/dist/collection/components/stable/gux-blank-state/tests/gux-blank-state.e2e.js +19 -0
- package/dist/collection/components/stable/gux-blank-state/tests/gux-blank-state.spec.js +26 -0
- package/dist/collection/components/stable/gux-breadcrumbs/breadcrumb-item/gux-breadcrumb-item.css +5 -5
- package/dist/collection/components/stable/gux-breadcrumbs/breadcrumb-item/gux-breadcrumb-item.js +2 -2
- package/dist/collection/components/stable/gux-breadcrumbs/gux-breadcrumbs.css +3 -3
- package/dist/collection/components/stable/gux-breadcrumbs/gux-breadcrumbs.js +6 -5
- package/dist/collection/components/stable/gux-breadcrumbs/tests/gux-breadcrumbs.e2e.js +48 -0
- package/dist/collection/components/stable/gux-breadcrumbs/tests/gux-breadcrumbs.spec.js +91 -0
- package/dist/collection/components/stable/gux-button/gux-button.css +9 -50
- package/dist/collection/components/stable/gux-button/gux-button.js +6 -4
- package/dist/collection/components/stable/gux-button/tests/gux-button.e2e.js +131 -0
- package/dist/collection/components/stable/gux-button/tests/gux-button.spec.js +114 -0
- package/dist/collection/components/stable/gux-button-multi/gux-button-multi.css +1 -1
- package/dist/collection/components/stable/gux-button-multi/gux-button-multi.js +8 -7
- package/dist/collection/components/stable/gux-button-multi/tests/gux-button-multi.e2e.js +69 -0
- package/dist/collection/components/stable/gux-button-multi/tests/gux-button-multi.spec.js +16 -0
- package/dist/collection/components/stable/gux-button-slot/gux-button-slot.css +9 -50
- package/dist/collection/components/stable/gux-button-slot/gux-button-slot.js +5 -4
- package/dist/collection/components/stable/gux-button-slot/tests/gux-button-slot.e2e.js +206 -0
- package/dist/collection/components/stable/gux-button-slot/tests/gux-button-slot.spec.js +258 -0
- package/dist/collection/components/stable/gux-calendar/gux-calendar.css +13 -13
- package/dist/collection/components/stable/gux-calendar/gux-calendar.js +23 -15
- package/dist/collection/components/stable/gux-calendar/gux-calendar.service.js +1 -1
- package/dist/collection/components/stable/gux-calendar/tests/gux-calendar.e2e.js +45 -0
- package/dist/collection/components/stable/gux-calendar/tests/gux-calendar.methods.spec.js +233 -0
- package/dist/collection/components/stable/gux-calendar/tests/gux-calendar.service.spec.js +160 -0
- package/dist/collection/components/stable/gux-calendar/tests/gux-calendar.spec.js +31 -0
- package/dist/collection/components/stable/gux-card/gux-card.js +4 -3
- package/dist/collection/components/stable/gux-card/tests/gux-card.e2e.js +16 -0
- package/dist/collection/components/stable/gux-card/tests/gux-card.spec.js +17 -0
- package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.css +1 -54
- package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.js +13 -9
- package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/tests/gux-column-manager-item.service.spec.js +35 -0
- package/dist/collection/components/stable/gux-column-manager/gux-column-manager.js +7 -6
- package/dist/collection/components/stable/gux-column-manager/gux-column-manager.service.js +2 -2
- package/dist/collection/components/stable/gux-content-search/gux-content-search.css +46 -91
- package/dist/collection/components/stable/gux-content-search/gux-content-search.js +8 -7
- package/dist/collection/components/stable/gux-content-search/tests/gux-content-search.e2e.js +542 -0
- package/dist/collection/components/stable/gux-content-search/tests/gux-content-search.spec.js +202 -0
- package/dist/collection/components/stable/gux-context-menu/gux-context-menu.css +2 -2
- package/dist/collection/components/stable/gux-context-menu/gux-context-menu.js +8 -8
- package/dist/collection/components/stable/gux-context-menu/tests/gux-context-menu.e2e.js +78 -0
- package/dist/collection/components/stable/gux-context-menu/tests/gux-context-menu.spec.js +44 -0
- package/dist/collection/components/stable/gux-copy-to-clipboard/gux-copy-to-clipboard.css +3 -3
- package/dist/collection/components/stable/gux-copy-to-clipboard/gux-copy-to-clipboard.js +6 -6
- package/dist/collection/components/stable/gux-copy-to-clipboard/tests/gux-copy-to-clipboard.e2e.js +23 -0
- package/dist/collection/components/stable/gux-copy-to-clipboard/tests/gux-copy-to-clipboard.spec.js +46 -0
- package/dist/collection/components/stable/gux-datepicker/gux-datepicker.css +3 -42
- package/dist/collection/components/stable/gux-datepicker/gux-datepicker.js +14 -12
- package/dist/collection/components/stable/gux-datepicker/tests/gux-datepicker.e2e.js +112 -0
- package/dist/collection/components/stable/gux-datepicker/tests/gux-datepicker.service.spec.js +237 -0
- package/dist/collection/components/stable/gux-datepicker/tests/gux-datepicker.spec.js +36 -0
- package/dist/collection/components/stable/gux-dismiss-button/gux-dismiss-button.css +5 -5
- package/dist/collection/components/stable/gux-dismiss-button/gux-dismiss-button.js +6 -5
- package/dist/collection/components/stable/gux-dismiss-button/tests/gux-dismiss-button.e2e.js +20 -0
- package/dist/collection/components/stable/gux-dismiss-button/tests/gux-dismiss-button.spec.js +22 -0
- package/dist/collection/components/stable/gux-dropdown/gux-dropdown.css +3 -3
- package/dist/collection/components/stable/gux-dropdown/gux-dropdown.js +13 -12
- package/dist/collection/components/stable/gux-dropdown/tests/gux-dropdown.e2e.js +190 -0
- package/dist/collection/components/stable/gux-dropdown/tests/gux-dropdown.spec.js +65 -0
- package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.css +1 -42
- package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.js +3 -3
- package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi.css +5 -48
- package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi.js +14 -12
- package/dist/collection/components/stable/gux-dropdown-multi/tests/gux-dropdown-multi.e2e.js +309 -0
- package/dist/collection/components/stable/gux-dropdown-multi/tests/gux-dropdown-multi.spec.js +24 -0
- package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.css +2 -43
- package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.js +5 -5
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu-option/gux-menu-option.js +4 -3
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu.js +1 -1
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.js +6 -5
- package/dist/collection/components/stable/gux-flyout-menu/tests/gux-flyout-menu.e2e.js +71 -0
- package/dist/collection/components/stable/gux-flyout-menu/tests/gux-flyout-menu.spec.js +52 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.css +1 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.js +9 -9
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/tests/gux-form-field-checkbox.e2e.js +93 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/tests/gux-form-field-checkbox.spec.js +64 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.css +4 -86
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.js +12 -11
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/tests/gux-form-field-color.e2e.js +83 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/tests/gux-form-field-color.spec.js +65 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.css +2 -45
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.js +14 -13
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/tests/gux-form-field-dropdown.e2e.js +196 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/tests/gux-form-field-dropdown.spec.js +188 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.css +5 -87
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +18 -16
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/tests/gux-form-field-number.e2e.js +110 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/tests/gux-form-field-number.spec.js +85 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/gux-form-field-phone.css +2 -45
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/gux-form-field-phone.js +15 -14
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.css +27 -16
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.js +9 -9
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/tests/gux-form-field-radio.e2e.js +101 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/tests/gux-form-field-radio.spec.js +62 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.css +16 -60
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.js +12 -11
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.css +6 -88
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.js +14 -12
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/tests/gux-form-field-search.e2e.js +83 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/tests/gux-form-field-search.spec.js +65 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.css +5 -48
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.js +12 -11
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/tests/gux-form-field-select.e2e.js +95 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/tests/gux-form-field-select.spec.js +80 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.css +9 -91
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.js +14 -12
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/tests/gux-form-field-text-like.e2e.js +171 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/tests/gux-form-field-text-like.spec.js +125 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.css +5 -87
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.js +14 -12
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/tests/gux-form-field-textarea.e2e.js +104 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/tests/gux-form-field-textarea.spec.js +79 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.css +2 -45
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.js +12 -11
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/tests/gux-form-field-time-picker.e2e.js +83 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/tests/gux-form-field-time-picker.spec.js +66 -0
- package/dist/collection/components/stable/gux-form-field/functional-components/functional-components.js +6 -6
- package/dist/collection/components/stable/gux-form-field/functional-components/gux-form-field-container/gux-form-field-container.js +1 -1
- package/dist/collection/components/stable/gux-form-field/functional-components/gux-form-field-error/gux-form-field-error.js +1 -1
- package/dist/collection/components/stable/gux-form-field/functional-components/gux-form-field-fieldset-container/gux-form-field-fieldset-container.js +1 -1
- package/dist/collection/components/stable/gux-form-field/functional-components/gux-form-field-help/gux-form-field-help.js +1 -1
- package/dist/collection/components/stable/gux-form-field/functional-components/gux-form-field-label/gux-form-field-label.js +1 -1
- package/dist/collection/components/stable/gux-form-field/functional-components/gux-form-field-legend-label/gux-form-field-legend-label.js +1 -1
- package/dist/collection/components/stable/gux-form-field/gux-form-field.service.js +4 -4
- package/dist/collection/components/stable/gux-form-field/helper-components/gux-form-field-input-clear-button/gux-form-field-input-clear-button.css +1 -40
- package/dist/collection/components/stable/gux-form-field/helper-components/gux-form-field-input-clear-button/gux-form-field-input-clear-button.js +4 -4
- package/dist/collection/components/stable/gux-form-field/tests/gux-form-field.service.spec.js +19 -0
- package/dist/collection/components/stable/gux-icon/gux-icon.js +6 -5
- package/dist/collection/components/stable/gux-icon/gux-icon.service.js +1 -1
- package/dist/collection/components/stable/gux-icon/tests/gux-icon.e2e.js +11 -0
- package/dist/collection/components/stable/gux-icon/tests/gux-icon.service.spec.js +22 -0
- package/dist/collection/components/stable/gux-icon/tests/gux-icon.spec.js +6 -0
- package/dist/collection/components/stable/gux-list/gux-list-divider/gux-list-divider.js +1 -1
- package/dist/collection/components/stable/gux-list/gux-list-divider/tests/gux-list-divider.spec.js +22 -0
- package/dist/collection/components/stable/gux-list/gux-list-item/gux-list-item.css +9 -9
- package/dist/collection/components/stable/gux-list/gux-list-item/gux-list-item.js +2 -2
- package/dist/collection/components/stable/gux-list/gux-list-item/tests/gux-list-item.spec.js +22 -0
- package/dist/collection/components/stable/gux-list/gux-list.js +11 -7
- package/dist/collection/components/stable/gux-list/tests/gux-list.e2e.js +20 -0
- package/dist/collection/components/stable/gux-list/tests/gux-list.spec.js +23 -0
- package/dist/collection/components/stable/gux-listbox/gux-listbox.css +2 -2
- package/dist/collection/components/stable/gux-listbox/gux-listbox.js +12 -10
- package/dist/collection/components/stable/gux-listbox/options/gux-option/gux-option.css +7 -7
- package/dist/collection/components/stable/gux-listbox/options/gux-option/gux-option.js +2 -2
- package/dist/collection/components/stable/gux-listbox/options/gux-option-icon/gux-option-icon.css +7 -7
- package/dist/collection/components/stable/gux-listbox/options/gux-option-icon/gux-option-icon.js +2 -2
- package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.css +8 -8
- package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.js +6 -5
- package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.css +1 -1
- package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.js +12 -10
- package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.css +4 -4
- package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.js +4 -4
- package/dist/collection/components/stable/gux-loading-message/gux-loading-message.css +6 -6
- package/dist/collection/components/stable/gux-loading-message/gux-loading-message.js +2 -2
- package/dist/collection/components/stable/gux-loading-message/tests/gux-loading-message.e2e.js +14 -0
- package/dist/collection/components/stable/gux-loading-message/tests/gux-loading-message.spec.js +27 -0
- package/dist/collection/components/stable/gux-modal/gux-modal.css +14 -57
- package/dist/collection/components/stable/gux-modal/gux-modal.js +5 -4
- package/dist/collection/components/stable/gux-modal/tests/gux-modal.e2e.js +300 -0
- package/dist/collection/components/stable/gux-modal/tests/gux-modal.spec.js +200 -0
- package/dist/collection/components/stable/gux-page-loading-spinner/gux-page-loading-spinner.js +2 -2
- package/dist/collection/components/stable/gux-page-loading-spinner/tests/gux-page-loading-spinner.e2e.js +33 -0
- package/dist/collection/components/stable/gux-page-loading-spinner/tests/gux-page-loading-spinner.spec.js +12 -0
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.css +8 -8
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.js +7 -6
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.css +1 -1
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.js +6 -6
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/tests/gux-pagination-buttons.service.spec.js +129 -0
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/tests/gux-pagination-buttons.spec.js +32 -0
- package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.css +3 -3
- package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.js +3 -3
- package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/tests/gux-pagination-item-counts.spec.js +30 -0
- package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.css +3 -3
- package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.js +5 -4
- package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/tests/gux-pagination-items-per-page.spec.js +37 -0
- package/dist/collection/components/stable/gux-pagination/gux-pagination.css +1 -1
- package/dist/collection/components/stable/gux-pagination/gux-pagination.js +9 -6
- package/dist/collection/components/stable/gux-pagination/tests/gux-pagination.e2e.js +97 -0
- package/dist/collection/components/stable/gux-pagination/tests/gux-pagination.spec.js +116 -0
- package/dist/collection/components/stable/gux-pagination-cursor/gux-pagination-cursor.css +6 -6
- package/dist/collection/components/stable/gux-pagination-cursor/gux-pagination-cursor.js +8 -6
- package/dist/collection/components/stable/gux-pagination-cursor/tests/gux-pagination-cursor.e2e.js +66 -0
- package/dist/collection/components/stable/gux-pagination-cursor/tests/gux-pagination-cursor.spec.js +67 -0
- package/dist/collection/components/stable/gux-popover/gux-popover.css +6 -6
- package/dist/collection/components/stable/gux-popover/gux-popover.js +8 -7
- package/dist/collection/components/stable/gux-popover/tests/gux-popover.e2e.js +60 -0
- package/dist/collection/components/stable/gux-popover/tests/gux-popover.spec.js +54 -0
- package/dist/collection/components/stable/gux-popover-list/gux-popover-list.css +1 -1
- package/dist/collection/components/stable/gux-popover-list/gux-popover-list.js +7 -6
- package/dist/collection/components/stable/gux-popover-list/tests/gux-popover-list.e2e.js +59 -0
- package/dist/collection/components/stable/gux-popover-list/tests/gux-popover-list.spec.js +53 -0
- package/dist/collection/components/stable/gux-popup/gux-popup.css +1 -1
- package/dist/collection/components/stable/gux-popup/gux-popup.js +2 -2
- package/dist/collection/components/stable/gux-popup/tests/gux-popup.e2e.js +29 -0
- package/dist/collection/components/stable/gux-popup/tests/gux-popup.spec.js +41 -0
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.css +31 -31
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.functional.js +2 -2
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.js +7 -6
- package/dist/collection/components/stable/gux-radial-loading/tests/gux-radial-loading.e2e.js +33 -0
- package/dist/collection/components/stable/gux-radial-loading/tests/gux-radial-loading.spec.js +33 -0
- package/dist/collection/components/stable/gux-radial-progress/gux-radial-progress.css +3 -3
- package/dist/collection/components/stable/gux-radial-progress/gux-radial-progress.functional.js +2 -2
- package/dist/collection/components/stable/gux-radial-progress/gux-radial-progress.js +5 -5
- package/dist/collection/components/stable/gux-radial-progress/tests/gux-radial-progress.e2e.js +58 -0
- package/dist/collection/components/stable/gux-radial-progress/tests/gux-radial-progress.service.spec.js +36 -0
- package/dist/collection/components/stable/gux-radial-progress/tests/gux-radial-progress.spec.js +61 -0
- package/dist/collection/components/stable/gux-rating/gux-rating.css +2 -2
- package/dist/collection/components/stable/gux-rating/gux-rating.js +5 -5
- package/dist/collection/components/stable/gux-rating/tests/gux-rating.e2e.js +208 -0
- package/dist/collection/components/stable/gux-rating/tests/gux-rating.spec.js +40 -0
- package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.js +1 -1
- package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-list.js +4 -4
- package/dist/collection/components/stable/gux-skip-navigation-list/tests/gux-skip-navigation-list.e2e.js +24 -0
- package/dist/collection/components/stable/gux-skip-navigation-list/tests/gux-skip-navigation-list.spec.js +29 -0
- package/dist/collection/components/stable/gux-table/gux-all-row-select/gux-all-row-select.js +6 -5
- package/dist/collection/components/stable/gux-table/gux-all-row-select/tests/gux-all-row-select.spec.js +11 -0
- package/dist/collection/components/stable/gux-table/gux-row-select/gux-row-select.js +4 -4
- package/dist/collection/components/stable/gux-table/gux-row-select/tests/gux-row-select.spec.js +11 -0
- package/dist/collection/components/stable/gux-table/gux-sort-control/gux-sort-control.css +1 -1
- package/dist/collection/components/stable/gux-table/gux-sort-control/gux-sort-control.js +8 -7
- package/dist/collection/components/stable/gux-table/gux-sort-control/tests/gux-sort-control.e2e.js +56 -0
- package/dist/collection/components/stable/gux-table/gux-sort-control/tests/gux-sort-control.spec.js +48 -0
- package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.css +3 -42
- package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.js +6 -6
- package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-popover/gux-table-header-popover.js +4 -4
- package/dist/collection/components/stable/gux-table/gux-table-select-menu/tests/gux-table-select-menu.spec.js +24 -0
- package/dist/collection/components/stable/gux-table/gux-table.css +1 -44
- package/dist/collection/components/stable/gux-table/gux-table.js +14 -10
- package/dist/collection/components/stable/gux-table/tests/gux-table.e2e.js +540 -0
- package/dist/collection/components/stable/gux-table/tests/gux-table.spec.js +32 -0
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-action/gux-table-toolbar-action.js +9 -7
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-action/tests/gux-table-toolbar-action.e2e.js +53 -0
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-action/tests/gux-table-toolbar-action.spec.js +54 -0
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-custom-action/gux-table-toolbar-custom-action.js +5 -4
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-custom-action/tests/gux-table-toolbar-custom-action.e2e.js +33 -0
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-custom-action/tests/gux-table-toolbar-custom-action.spec.js +34 -0
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-menu-button/gux-table-toolbar-menu-button.js +6 -6
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar.js +7 -7
- package/dist/collection/components/stable/gux-table-toolbar/tests/gux-table-toolbar.e2e.js +46 -0
- package/dist/collection/components/stable/gux-table-toolbar/tests/gux-table-toolbar.spec.js +63 -0
- package/dist/collection/components/stable/gux-tabs/gux-tab/gux-tab.js +7 -4
- package/dist/collection/components/stable/gux-tabs/gux-tab/tests/gux-tab.e2e.js +15 -0
- package/dist/collection/components/stable/gux-tabs/gux-tab/tests/gux-tab.spec.js +16 -0
- package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.css +0 -1
- package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.js +7 -6
- package/dist/collection/components/stable/gux-tabs/gux-tab-list/tests/gux-tab-list.e2e.js +15 -0
- package/dist/collection/components/stable/gux-tabs/gux-tab-list/tests/gux-tab-list.spec.js +16 -0
- package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.css +1 -42
- package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.js +3 -2
- package/dist/collection/components/stable/gux-tabs/gux-tab-panel/tests/gux-tab-panel.e2e.js +15 -0
- package/dist/collection/components/stable/gux-tabs/gux-tab-panel/tests/gux-tab-panel.spec.js +16 -0
- package/dist/collection/components/stable/gux-tabs/gux-tabs.js +8 -5
- package/dist/collection/components/stable/gux-tabs/tests/gux-tabs.e2e.js +141 -0
- package/dist/collection/components/stable/gux-tabs/tests/gux-tabs.spec.js +57 -0
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.js +12 -9
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.css +1 -85
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.js +9 -8
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-panel/gux-tab-advanced-panel.css +1 -42
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-panel/gux-tab-advanced-panel.js +3 -2
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tabs-advanced.js +4 -3
- package/dist/collection/components/stable/gux-tabs-advanced/tests/gux-tabs-advanced.e2e.js +217 -0
- package/dist/collection/components/stable/gux-tabs-advanced/tests/gux-tabs-advanced.spec.js +73 -0
- package/dist/collection/components/stable/gux-tag/gux-tag.css +22 -25
- package/dist/collection/components/stable/gux-tag/gux-tag.js +6 -5
- package/dist/collection/components/stable/gux-tag/tests/gux-tag.e2e.js +135 -0
- package/dist/collection/components/stable/gux-tag/tests/gux-tag.spec.js +130 -0
- package/dist/collection/components/stable/gux-text-highlight/gux-text-highlight.js +5 -4
- package/dist/collection/components/stable/gux-text-highlight/tests/gux-text-highlight.e2e.js +147 -0
- package/dist/collection/components/stable/gux-text-highlight/tests/gux-text-hightlight.spec.js +149 -0
- package/dist/collection/components/stable/gux-time-picker/gux-time-picker.css +13 -11
- package/dist/collection/components/stable/gux-time-picker/gux-time-picker.js +16 -12
- package/dist/collection/components/stable/gux-time-picker/gux-time-picker.service.js +1 -1
- package/dist/collection/components/stable/gux-time-picker/tests/gux-time-picker.e2e.js +41 -0
- package/dist/collection/components/stable/gux-time-picker/tests/gux-time-picker.service.spec.js +698 -0
- package/dist/collection/components/stable/gux-time-picker/tests/gux-time-picker.spec.js +14 -0
- package/dist/collection/components/stable/gux-toast/gux-toast.css +5 -5
- package/dist/collection/components/stable/gux-toast/gux-toast.js +5 -4
- package/dist/collection/components/stable/gux-toast/tests/gux-toast.e2e.js +121 -0
- package/dist/collection/components/stable/gux-toast/tests/gux-toast.spec.js +111 -0
- package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.css +1 -42
- package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.js +1 -1
- package/dist/collection/components/stable/gux-toggle/gux-toggle.js +7 -6
- package/dist/collection/components/stable/gux-toggle/tests/gux-toggle.e2e.js +147 -0
- package/dist/collection/components/stable/gux-toggle/tests/gux-toggle.spec.js +126 -0
- package/dist/collection/components/stable/gux-tooltip/gux-tooltip.css +12 -12
- package/dist/collection/components/stable/gux-tooltip/gux-tooltip.js +14 -10
- package/dist/collection/components/stable/gux-tooltip/tests/gux-tooltip.e2e.js +33 -0
- package/dist/collection/components/stable/gux-tooltip/tests/gux-tooltip.spec.js +55 -0
- package/dist/collection/components/stable/gux-tooltip-title/gux-tooltip-title.js +8 -6
- package/dist/collection/components/stable/gux-truncate/gux-truncate.js +8 -6
- package/dist/collection/components/stable/gux-truncate/tests/gux-truncate.e2e.js +32 -0
- package/dist/collection/components/stable/gux-truncate/tests/gux-truncate.spec.js +27 -0
- package/dist/collection/i18n/DateTimeFormatter.js +1 -1
- package/dist/collection/i18n/fetchResources.js +1 -1
- package/dist/collection/i18n/index.js +5 -5
- package/dist/collection/test/e2eTestUtils.js +2 -2
- package/dist/collection/test/specTestUtils.js +8 -0
- package/dist/collection/utils/date/from-iso-time-string.spec.js +13 -0
- package/dist/collection/utils/date/get-valid-timezone.js +1 -1
- package/dist/collection/utils/date/get-valid-timezone.spec.js +38 -0
- package/dist/collection/utils/date/iso-dates.spec.js +170 -0
- package/dist/collection/utils/date/year-month-values.spec.js +81 -0
- package/dist/collection/utils/decorator/on-click-outside.js +1 -1
- package/dist/collection/utils/decorator/on-mutation.js +1 -1
- package/dist/collection/utils/decorator/on-resize.js +1 -1
- package/dist/collection/utils/dom/event-is-from.spec.js +29 -0
- package/dist/collection/utils/dom/manipulate-elements-classes.spec.js +104 -0
- package/dist/collection/utils/dom/on-input-disabled-state-change.js +1 -1
- package/dist/collection/utils/dom/random-html-id.spec.js +14 -0
- package/dist/collection/utils/dom/set-input-value.js +1 -1
- package/dist/collection/utils/dom/when-event-is-from.spec.js +37 -0
- package/dist/collection/utils/string/search.spec.js +40 -0
- package/dist/collection/utils/tracking/usage.js +1 -1
- package/dist/collection/utils/tracking/usage.spec.js +121 -0
- package/dist/deploy-info.json +3 -3
- package/dist/esm/genesys-webcomponents.js +4 -7
- package/dist/esm/{get-valid-timezone-4b39f118.js → get-valid-timezone-3781bfa2.js} +1 -1
- package/dist/esm/gux-accordion-section.entry.js +4 -4
- package/dist/esm/gux-accordion.entry.js +2 -2
- package/dist/esm/gux-action-button.entry.js +8 -8
- package/dist/esm/gux-action-toast-legacy.entry.js +3 -3
- package/dist/esm/gux-advanced-dropdown-legacy.entry.js +8 -8
- package/dist/esm/gux-all-row-select.entry.js +5 -5
- package/dist/esm/gux-announce-beta.entry.js +3 -3
- package/dist/esm/gux-badge.entry.js +5 -5
- package/dist/esm/gux-blank-state.entry.js +3 -3
- package/dist/esm/gux-breadcrumb-item.entry.js +3 -3
- package/dist/esm/gux-breadcrumbs.entry.js +5 -5
- package/dist/esm/gux-button-multi.entry.js +6 -6
- package/dist/esm/gux-button-slot.entry.js +4 -4
- package/dist/esm/gux-button.entry.js +3 -3
- package/dist/esm/gux-calendar-beta.entry.js +9 -9
- package/dist/esm/gux-calendar.entry.js +8 -8
- package/dist/esm/gux-card.entry.js +2 -2
- package/dist/esm/gux-column-manager-item.entry.js +7 -7
- package/dist/esm/gux-column-manager.entry.js +7 -7
- package/dist/esm/{gux-column-manager.service-a9ea5c54.js → gux-column-manager.service-4f5bf4c4.js} +2 -2
- package/dist/esm/gux-content-search.entry.js +7 -7
- package/dist/esm/gux-context-menu.entry.js +9 -9
- package/dist/esm/gux-copy-to-clipboard.entry.js +7 -7
- package/dist/esm/gux-create-option.entry.js +5 -5
- package/dist/esm/gux-date-beta.entry.js +5 -5
- package/dist/esm/gux-date-time-beta.entry.js +5 -5
- package/dist/esm/gux-datepicker.entry.js +10 -10
- package/dist/esm/gux-disclosure-button-legacy.entry.js +5 -5
- package/dist/esm/gux-dismiss-button.entry.js +5 -5
- package/dist/esm/gux-dropdown-multi-tag.entry.js +4 -4
- package/dist/esm/gux-dropdown-multi.entry.js +11 -11
- package/dist/esm/gux-dropdown-option.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +15 -15
- package/dist/esm/gux-flyout-menu.entry.js +5 -5
- package/dist/esm/gux-form-field-checkbox.entry.js +10 -10
- package/dist/esm/gux-form-field-color.entry.js +13 -13
- package/dist/esm/{gux-form-field-container-0d93fc18.js → gux-form-field-container-0628b63c.js} +1 -1
- package/dist/esm/gux-form-field-dropdown.entry.js +15 -15
- package/dist/esm/{gux-form-field-fieldset-container-02a0becc.js → gux-form-field-fieldset-container-863690e1.js} +1 -1
- package/dist/esm/gux-form-field-input-clear-button.entry.js +5 -5
- package/dist/esm/gux-form-field-number_3.entry.js +23 -23
- package/dist/esm/gux-form-field-phone.entry.js +14 -14
- package/dist/esm/gux-form-field-radio.entry.js +11 -11
- package/dist/esm/gux-form-field-range.entry.js +13 -13
- package/dist/esm/gux-form-field-search.entry.js +13 -13
- package/dist/esm/gux-form-field-select.entry.js +13 -13
- package/dist/esm/gux-form-field-text-like.entry.js +13 -13
- package/dist/esm/gux-form-field-textarea.entry.js +13 -13
- package/dist/esm/gux-form-field-time-picker.entry.js +14 -14
- package/dist/esm/{gux-form-field.service-5f03e905.js → gux-form-field.service-1b918b11.js} +5 -5
- package/dist/esm/gux-icon.entry.js +3 -3
- package/dist/esm/gux-inline-alert.entry.js +5 -5
- package/dist/esm/gux-list-divider.entry.js +1 -1
- package/dist/esm/gux-list-item.entry.js +3 -3
- package/dist/esm/gux-list.entry.js +3 -3
- package/dist/esm/gux-listbox-multi.entry.js +9 -9
- package/dist/esm/gux-loading-message.entry.js +3 -3
- package/dist/esm/gux-menu-option.entry.js +2 -2
- package/dist/esm/gux-menu.entry.js +1 -1
- package/dist/esm/gux-modal.entry.js +4 -4
- package/dist/esm/gux-month-calendar.entry.js +7 -7
- package/dist/esm/gux-month-list_2.entry.js +4 -4
- package/dist/esm/gux-month-picker-beta.entry.js +9 -9
- package/dist/esm/gux-notification-toast-legacy.entry.js +3 -3
- package/dist/esm/gux-option-icon.entry.js +3 -3
- package/dist/esm/gux-option-multi.entry.js +5 -5
- package/dist/esm/gux-page-loading-spinner.entry.js +2 -2
- package/dist/esm/gux-pagination-buttons-legacy_3.entry.js +6 -6
- package/dist/esm/gux-pagination-buttons_3.entry.js +8 -8
- package/dist/esm/gux-pagination-cursor.entry.js +5 -5
- package/dist/esm/gux-pagination-legacy.entry.js +3 -3
- package/dist/esm/gux-pagination.entry.js +4 -4
- package/dist/esm/gux-phone-input-beta.entry.js +8 -8
- package/dist/esm/gux-popover-list.entry.js +6 -6
- package/dist/esm/gux-popup.entry.js +3 -3
- package/dist/esm/gux-radial-loading.entry.js +5 -5
- package/dist/esm/gux-radial-progress.entry.js +4 -4
- package/dist/esm/gux-rating.entry.js +6 -6
- package/dist/esm/gux-region-icon.entry.js +2 -2
- package/dist/esm/gux-row-select.entry.js +5 -5
- package/dist/esm/gux-screen-reader-beta.entry.js +2 -2
- package/dist/esm/gux-segmented-control-beta.entry.js +3 -3
- package/dist/esm/gux-segmented-control-item.entry.js +5 -5
- package/dist/esm/gux-simple-toast-legacy.entry.js +2 -2
- package/dist/esm/gux-skip-navigation-item.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-list.entry.js +4 -4
- package/dist/esm/gux-sort-control.entry.js +7 -7
- package/dist/esm/gux-submenu.entry.js +4 -4
- package/dist/esm/gux-switch-item.entry.js +2 -2
- package/dist/esm/gux-switch-legacy.entry.js +3 -3
- package/dist/esm/gux-tab-advanced-legacy.entry.js +7 -7
- package/dist/esm/gux-tab-advanced-list-legacy.entry.js +8 -8
- package/dist/esm/gux-tab-advanced-list.entry.js +8 -8
- package/dist/esm/gux-tab-advanced-panel-legacy.entry.js +2 -2
- package/dist/esm/gux-tab-advanced-panel.entry.js +2 -2
- package/dist/esm/gux-tab-advanced.entry.js +7 -7
- package/dist/esm/gux-tab-list.entry.js +6 -6
- package/dist/esm/gux-tab-panel.entry.js +2 -2
- package/dist/esm/gux-tab.entry.js +1 -1
- package/dist/esm/gux-table-select-menu.entry.js +8 -8
- package/dist/esm/gux-table-select-popover.entry.js +3 -3
- package/dist/esm/gux-table-toolbar-action.entry.js +5 -5
- package/dist/esm/gux-table-toolbar-custom-action.entry.js +3 -3
- package/dist/esm/gux-table-toolbar-menu-button.entry.js +6 -6
- package/dist/esm/gux-table-toolbar.entry.js +5 -5
- package/dist/esm/gux-table.entry.js +8 -8
- package/dist/esm/gux-tabs-advanced-legacy.entry.js +2 -2
- package/dist/esm/gux-tabs-advanced.entry.js +2 -2
- package/dist/esm/gux-tabs.entry.js +2 -2
- package/dist/esm/gux-tag.entry.js +5 -5
- package/dist/esm/gux-text-highlight.entry.js +2 -2
- package/dist/esm/gux-time-beta.entry.js +5 -5
- package/dist/esm/gux-time-picker.entry.js +8 -8
- package/dist/esm/gux-time-zone-picker-beta.entry.js +5 -5
- package/dist/esm/gux-toast.entry.js +4 -4
- package/dist/esm/gux-toggle-slider.entry.js +2 -2
- package/dist/esm/gux-toggle.entry.js +5 -5
- package/dist/esm/gux-tooltip-title.entry.js +4 -4
- package/dist/esm/gux-tooltip.entry.js +7 -7
- package/dist/esm/gux-truncate.entry.js +3 -3
- package/dist/esm/{index-0b66fe2c.js → index-a0eec33a.js} +155 -39
- package/dist/esm/{index-694d55cf.js → index-e5ccc024.js} +2 -2
- package/dist/esm/loader.js +4 -13
- package/dist/esm/{on-click-outside-bc432a79.js → on-click-outside-e696f632.js} +1 -1
- package/dist/esm/{on-mutation-8c8b2331.js → on-mutation-c1be3c74.js} +1 -1
- package/dist/esm/{on-resize-7177429a.js → on-resize-c9e31879.js} +1 -1
- package/dist/esm/{usage-cd252d08.js → usage-9db89e81.js} +6 -6
- package/dist/genesys-webcomponents/genesys-webcomponents.css +2 -2
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/p-03c3a43a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-a2cc1e97.entry.js → p-0443695b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b1c23548.entry.js → p-04e7b0a5.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-05102bf4.entry.js +1 -0
- package/dist/genesys-webcomponents/p-07abb8df.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-8e9bfb5c.entry.js → p-0e1a0eef.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fab9ff54.entry.js → p-0e9b22e4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-97d57a71.entry.js → p-0fb8a131.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c985b725.entry.js → p-15e52200.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-16101c87.entry.js +1 -0
- package/dist/genesys-webcomponents/p-170e10d8.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-dfb9c511.entry.js → p-18901baf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e1030da3.entry.js → p-20e0415d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e401da19.entry.js → p-2187b61f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5bbffb5a.entry.js → p-22590862.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-2339dbe7.entry.js +1 -0
- package/dist/genesys-webcomponents/p-23e0e71f.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-bf36d208.entry.js → p-23fdc919.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-67652427.entry.js → p-24aaca86.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9571e673.entry.js → p-275190eb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-23ef4850.entry.js → p-290db8e8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2c9c3cea.entry.js → p-2c325bd9.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-2d2f6a98.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-197d4153.entry.js → p-2e88df19.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-32a36f06.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-3d3fea51.entry.js → p-354af9aa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c686d5f6.entry.js → p-38c797a5.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3aa647fd.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-605734cc.js → p-3c614740.js} +1 -1
- package/dist/genesys-webcomponents/p-3c951a20.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-13dd4c6b.js → p-3d745319.js} +1 -1
- package/dist/genesys-webcomponents/{p-c3d5a975.entry.js → p-3fe16f20.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2b46c949.entry.js → p-4303e91c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7c826e42.entry.js → p-4338a137.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-457dce75.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c743441a.entry.js → p-47417e1a.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-478e3b1c.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-ebfa2805.entry.js → p-48d0d172.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-39151f6f.entry.js → p-49fa664f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6bff9eb3.entry.js → p-4a579180.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4ef7f5b0.entry.js +1 -0
- package/dist/genesys-webcomponents/p-511eb62e.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-deee079e.js → p-52e27c60.js} +1 -1
- package/dist/genesys-webcomponents/p-53a1d44e.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-1fd76470.entry.js → p-5463e134.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-06a92400.entry.js → p-550c0768.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-57c82db9.entry.js → p-581afbbd.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-5d15381f.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-6a08f78f.entry.js → p-644b750b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-75146c5b.entry.js → p-645bf22d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-45baa064.entry.js → p-64f97f86.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5a94a9bf.entry.js → p-67bf8797.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-69d045af.entry.js +1 -0
- package/dist/genesys-webcomponents/p-6c5bcc19.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-16570da1.entry.js → p-6c72ef03.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8f781185.entry.js → p-6eaaa7d4.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-71ea12be.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-ebede868.entry.js → p-7293caff.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1e4c80e5.entry.js → p-741109b2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-98f69d35.entry.js → p-74330868.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2176b2e3.entry.js → p-75c18eb2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-29bb65b6.entry.js → p-77b466cc.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-77db656b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-8920a5e5.js → p-7a100b8c.js} +1 -1
- package/dist/genesys-webcomponents/{p-c6d8e1d8.entry.js → p-7c4e5b42.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f242ce05.entry.js → p-7e0bec76.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-44835bc5.entry.js → p-7e22896f.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-801d58d0.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-5f96b474.entry.js → p-80e52443.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e078f4fa.entry.js → p-82ff960a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f34ce7dc.js → p-8801741a.js} +1 -1
- package/dist/genesys-webcomponents/p-8897f0c8.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-359d6b16.entry.js → p-88ebf763.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9d18d475.js → p-8c362857.js} +1 -1
- package/dist/genesys-webcomponents/{p-e511fb43.entry.js → p-8e2f5120.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a733f4ca.js → p-9383fa8e.js} +1 -1
- package/dist/genesys-webcomponents/{p-d01970f7.entry.js → p-93d5c18d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-078d3c75.entry.js → p-947008c7.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-96a2defd.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-831456f4.entry.js → p-9894c33e.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-992542c8.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-0ca229eb.entry.js → p-9b14db2e.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-9c69a37d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-fbc9566f.entry.js → p-9c7f235d.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-9cc0c717.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b6ec024f.entry.js → p-a110a467.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-a1151219.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-4a6ae41e.js → p-a285abaf.js} +1 -1
- package/dist/genesys-webcomponents/{p-b3c9fd06.js → p-a3bc3236.js} +1 -1
- package/dist/genesys-webcomponents/{p-280ec994.entry.js → p-a6dbce60.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-334e3b2c.entry.js → p-a96bc06c.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-aa66df62.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d9a38f04.entry.js → p-adecb65e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d3a38337.entry.js → p-b09ed8fd.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b14af97c.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-a9b8c730.entry.js → p-b3fd4623.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-782c1b84.entry.js → p-b4a578d1.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b4e0bdda.entry.js +1 -0
- package/dist/genesys-webcomponents/p-b56fd34a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-39e12286.entry.js → p-b80c59ad.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-bb8382c8.entry.js +1 -0
- package/dist/genesys-webcomponents/p-bc151fdb.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d2012304.entry.js → p-bf3640cf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c27e3e55.entry.js → p-c1253f5b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9be45fa0.entry.js → p-c183e212.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c2352a62.entry.js +1 -0
- package/dist/genesys-webcomponents/p-c4a77eda.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c609ed18.entry.js → p-c4f9d3c7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f6f9039b.entry.js → p-c7a90b16.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c88906c4.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-7a24829d.entry.js → p-c9788b0b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ca39b814.entry.js +1 -0
- package/dist/genesys-webcomponents/p-cae769d3.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f6913d5e.entry.js → p-cefecb77.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5229c638.entry.js → p-e121f417.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c94a287d.entry.js → p-e653b8d2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-41617814.entry.js → p-e93b4a73.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-e9803c6d.entry.js +1 -0
- package/dist/genesys-webcomponents/p-ea3298b3.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-3fc64f89.entry.js → p-eba5e8e8.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ed724d66.js +2 -0
- package/dist/genesys-webcomponents/p-ee2ab42a.entry.js +1 -0
- package/dist/genesys-webcomponents/p-f0ad551b.entry.js +1 -0
- package/dist/genesys-webcomponents/p-f1d85fd3.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-83f26f44.entry.js → p-f34da37c.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f3ac7576.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-211cc1db.js → p-fd5e59f5.js} +1 -1
- package/dist/genesys-webcomponents/scss/style-reset-focusable.scss +44 -5
- package/dist/genesys-webcomponents/scss/style-reset-typography.scss +12 -7
- package/dist/loader/index.d.ts +1 -1
- package/dist/stencil-wrapper.js +6 -6
- package/dist/types/stencil-public-runtime.d.ts +19 -5
- package/dist/types/stencil-wrapper.d.ts +2 -2
- package/dist/types/test/specTestUtils.d.ts +2 -0
- package/package.json +6 -6
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/genesys-webcomponents/p-0249b669.entry.js +0 -1
- package/dist/genesys-webcomponents/p-0d276dc9.entry.js +0 -1
- package/dist/genesys-webcomponents/p-2795474f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3031a578.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3493b6c1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3d15a15a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3d6b25da.entry.js +0 -1
- package/dist/genesys-webcomponents/p-409a2aed.entry.js +0 -1
- package/dist/genesys-webcomponents/p-45bcb54b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-53c4a7f7.entry.js +0 -1
- package/dist/genesys-webcomponents/p-5676eed0.entry.js +0 -1
- package/dist/genesys-webcomponents/p-572aec19.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6081375f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-62456443.entry.js +0 -1
- package/dist/genesys-webcomponents/p-66cc767b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6a62e7d1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6b0dc655.entry.js +0 -1
- package/dist/genesys-webcomponents/p-7adb14d8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-7b3f06e0.entry.js +0 -1
- package/dist/genesys-webcomponents/p-7c5d3642.entry.js +0 -1
- package/dist/genesys-webcomponents/p-7cecc169.entry.js +0 -1
- package/dist/genesys-webcomponents/p-7d26b2e1.js +0 -2
- package/dist/genesys-webcomponents/p-7fa0ebcf.entry.js +0 -1
- package/dist/genesys-webcomponents/p-8691acc1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-8cfed8ab.entry.js +0 -1
- package/dist/genesys-webcomponents/p-8ef5755c.entry.js +0 -1
- package/dist/genesys-webcomponents/p-906dfed6.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9381f1a8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-94f2e2a4.entry.js +0 -1
- package/dist/genesys-webcomponents/p-95a4e80e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-95fcbe0c.entry.js +0 -1
- package/dist/genesys-webcomponents/p-993b03b1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a871a9cd.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a95fbd3b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ac40bdc8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ad9c8e01.entry.js +0 -1
- package/dist/genesys-webcomponents/p-b5ee1c41.entry.js +0 -1
- package/dist/genesys-webcomponents/p-baffeea7.entry.js +0 -1
- package/dist/genesys-webcomponents/p-cae7ee62.entry.js +0 -1
- package/dist/genesys-webcomponents/p-d3c907fc.entry.js +0 -1
- package/dist/genesys-webcomponents/p-d5e44599.entry.js +0 -1
- package/dist/genesys-webcomponents/p-dab7466b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-e4d54add.entry.js +0 -1
- package/dist/genesys-webcomponents/p-e7cab774.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ef910e9b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-f246861a.entry.js +0 -1
- package/dist/genesys-webcomponents/scss/focus.scss +0 -48
- package/dist/genesys-webcomponents/scss/typography.scss +0 -127
- /package/dist/cjs/{after-next-render-a09f528a.js → after-next-render-a023ef47.js} +0 -0
- /package/dist/cjs/{capitalize-first-letter-8e2f04e5.js → capitalize-first-letter-251c82ed.js} +0 -0
- /package/dist/cjs/{clamp-1bb96117.js → clamp-a9926a57.js} +0 -0
- /package/dist/cjs/{en-14558544.js → en-5507bf0d.js} +0 -0
- /package/dist/cjs/{en-d1b32383.js → en-807a354e.js} +0 -0
- /package/dist/cjs/{en-eb56dc17.js → en-85604f0f.js} +0 -0
- /package/dist/cjs/{en-2a12d7c4.js → en-f88c1935.js} +0 -0
- /package/dist/cjs/{event-is-from-ad1044f2.js → event-is-from-f3f1cfde.js} +0 -0
- /package/dist/cjs/{find-element-by-id-ecf0efa3.js → find-element-by-id-9c3e0b1b.js} +0 -0
- /package/dist/cjs/{floating-ui.dom.esm-2ed3685b.js → floating-ui.dom.esm-793074c6.js} +0 -0
- /package/dist/cjs/{get-closest-element-ab4b2eee.js → get-closest-element-26894e5a.js} +0 -0
- /package/dist/cjs/{get-slot-097ade01.js → get-slot-395a67ef.js} +0 -0
- /package/dist/cjs/{get-slot-text-content-30aa5492.js → get-slot-text-content-c4306c7a.js} +0 -0
- /package/dist/cjs/{gux-list.service-763539a2.js → gux-list.service-4beaa394.js} +0 -0
- /package/dist/cjs/{gux-listbox.service-93102b5b.js → gux-listbox.service-b1068596.js} +0 -0
- /package/dist/cjs/{gux-menu.common-cf9d53f7.js → gux-menu.common-d41b2fac.js} +0 -0
- /package/dist/cjs/{has-slot-2e73d6e7.js → has-slot-429f8b9e.js} +0 -0
- /package/dist/cjs/{iso-dates-f78ffb80.js → iso-dates-d0cd4802.js} +0 -0
- /package/dist/cjs/{log-error-d46c02b7.js → log-error-8a92241e.js} +0 -0
- /package/dist/cjs/{on-attribute-change-37556263.js → on-attribute-change-4db59350.js} +0 -0
- /package/dist/cjs/{on-input-disabled-state-change-d66fb86b.js → on-input-disabled-state-change-005e5b3e.js} +0 -0
- /package/dist/cjs/{on-mutation-8f8a4460.js → on-mutation-ef917473.js} +0 -0
- /package/dist/cjs/{prevent-browser-validation-styling-d21b1a56.js → prevent-browser-validation-styling-15142963.js} +0 -0
- /package/dist/cjs/{random-html-id-b86b61c0.js → random-html-id-32ef8847.js} +0 -0
- /package/dist/cjs/{simulate-native-event-fe3e62da.js → simulate-native-event-8209a457.js} +0 -0
- /package/dist/cjs/{when-event-is-from-69b5ca13.js → when-event-is-from-20e89254.js} +0 -0
- /package/dist/cjs/{year-month-values-f387f8d8.js → year-month-values-6028ce26.js} +0 -0
- /package/dist/collection/components/beta/gux-phone-input/components/gux-region-icon/sprite-utils/{generate-sprites.js → sprites.generated.js} +0 -0
- /package/dist/esm/{after-next-render-ed0f7dcd.js → after-next-render-84ec18ad.js} +0 -0
- /package/dist/esm/{capitalize-first-letter-d2512ec0.js → capitalize-first-letter-45fad3db.js} +0 -0
- /package/dist/esm/{clamp-6bdb0367.js → clamp-51db64df.js} +0 -0
- /package/dist/esm/{en-5ed282a0.js → en-1f9d79e6.js} +0 -0
- /package/dist/esm/{en-6c4aef39.js → en-98371f99.js} +0 -0
- /package/dist/esm/{en-46223eb1.js → en-b0526f2a.js} +0 -0
- /package/dist/esm/{en-5b8ff4c7.js → en-bf740e9b.js} +0 -0
- /package/dist/esm/{event-is-from-90b69768.js → event-is-from-e25c5a22.js} +0 -0
- /package/dist/esm/{find-element-by-id-7c5f4fbf.js → find-element-by-id-a3c82a2d.js} +0 -0
- /package/dist/esm/{floating-ui.dom.esm-c86d3efa.js → floating-ui.dom.esm-813bb04f.js} +0 -0
- /package/dist/esm/{get-closest-element-1597503c.js → get-closest-element-66f63212.js} +0 -0
- /package/dist/esm/{get-slot-52d073f3.js → get-slot-55aade31.js} +0 -0
- /package/dist/esm/{get-slot-text-content-2e086993.js → get-slot-text-content-189d6edf.js} +0 -0
- /package/dist/esm/{gux-list.service-a878b7e3.js → gux-list.service-693f4ba7.js} +0 -0
- /package/dist/esm/{gux-listbox.service-a8319b51.js → gux-listbox.service-f2b6e01a.js} +0 -0
- /package/dist/esm/{gux-menu.common-a8b63e91.js → gux-menu.common-e59a1b12.js} +0 -0
- /package/dist/esm/{has-slot-062ae63a.js → has-slot-d06c74d9.js} +0 -0
- /package/dist/esm/{iso-dates-a7c704a4.js → iso-dates-5bcd3209.js} +0 -0
- /package/dist/esm/{log-error-e0bbd04a.js → log-error-0b15023e.js} +0 -0
- /package/dist/esm/{on-attribute-change-5fd8da7c.js → on-attribute-change-b91132e6.js} +0 -0
- /package/dist/esm/{on-input-disabled-state-change-3ea76372.js → on-input-disabled-state-change-e6bc912f.js} +0 -0
- /package/dist/esm/{on-mutation-d500715c.js → on-mutation-a2b7cdad.js} +0 -0
- /package/dist/esm/{prevent-browser-validation-styling-d16c3f4c.js → prevent-browser-validation-styling-8c459589.js} +0 -0
- /package/dist/esm/{random-html-id-8e3f658c.js → random-html-id-3354d85c.js} +0 -0
- /package/dist/esm/{simulate-native-event-ac69961f.js → simulate-native-event-bca7a1c9.js} +0 -0
- /package/dist/esm/{when-event-is-from-18667084.js → when-event-is-from-6154bd60.js} +0 -0
- /package/dist/esm/{year-month-values-1b64c204.js → year-month-values-6ffe871f.js} +0 -0
- /package/dist/genesys-webcomponents/{p-955a1e6a.js → p-08874a83.js} +0 -0
- /package/dist/genesys-webcomponents/{p-8a133b9b.js → p-0962dd7a.js} +0 -0
- /package/dist/genesys-webcomponents/{p-3f5341ea.js → p-16f3da0d.js} +0 -0
- /package/dist/genesys-webcomponents/{p-c10e41a9.js → p-28f55159.js} +0 -0
- /package/dist/genesys-webcomponents/{p-93904222.js → p-31cd1b9a.js} +0 -0
- /package/dist/genesys-webcomponents/{p-08bc2e6b.js → p-324b23f3.js} +0 -0
- /package/dist/genesys-webcomponents/{p-2c3d934a.js → p-363466e3.js} +0 -0
- /package/dist/genesys-webcomponents/{p-d176c2ae.js → p-373c5d93.js} +0 -0
- /package/dist/genesys-webcomponents/{p-cbcbd1bb.js → p-3ea0d493.js} +0 -0
- /package/dist/genesys-webcomponents/{p-1aa11396.js → p-408d5857.js} +0 -0
- /package/dist/genesys-webcomponents/{p-3701eff0.js → p-4e030b49.js} +0 -0
- /package/dist/genesys-webcomponents/{p-4f26144b.js → p-533d7842.js} +0 -0
- /package/dist/genesys-webcomponents/{p-6a8e1026.js → p-5844e8c2.js} +0 -0
- /package/dist/genesys-webcomponents/{p-82ffe3cc.js → p-5d7d5695.js} +0 -0
- /package/dist/genesys-webcomponents/{p-3e6097e5.js → p-693c1709.js} +0 -0
- /package/dist/genesys-webcomponents/{p-2bc35259.js → p-705311af.js} +0 -0
- /package/dist/genesys-webcomponents/{p-55cf6d81.js → p-71e00140.js} +0 -0
- /package/dist/genesys-webcomponents/{p-9dd4b14a.js → p-7b08c759.js} +0 -0
- /package/dist/genesys-webcomponents/{p-76ff3e75.js → p-8b703092.js} +0 -0
- /package/dist/genesys-webcomponents/{p-251befef.js → p-9125cc36.js} +0 -0
- /package/dist/genesys-webcomponents/{p-d0805f56.js → p-9d734bbd.js} +0 -0
- /package/dist/genesys-webcomponents/{p-4e2b5bcf.js → p-a5937ee9.js} +0 -0
- /package/dist/genesys-webcomponents/{p-417354e9.js → p-aa9ff6ba.js} +0 -0
- /package/dist/genesys-webcomponents/{p-abb9b5f7.js → p-c7328d42.js} +0 -0
- /package/dist/genesys-webcomponents/{p-29e8b184.js → p-dbb0ac25.js} +0 -0
- /package/dist/genesys-webcomponents/{p-aa2f9991.js → p-dd53013c.js} +0 -0
- /package/dist/genesys-webcomponents/{p-091f51f6.js → p-ffaadf62.js} +0 -0
- /package/dist/types/components/beta/gux-phone-input/components/gux-region-icon/sprite-utils/{generate-sprites.d.ts → sprites.generated.d.ts} +0 -0
package/dist/collection/components/stable/gux-time-picker/tests/gux-time-picker.service.spec.js
ADDED
@@ -0,0 +1,698 @@
|
|
1
|
+
import { getTimeDisplayValues, getLocaleClockType, incrementHour, incrementMinute, getDisplayValue, getValue, getHourDisplayValue, getMinuteDisplayValue, isAm, getHoursPattern, getMinutesPattern, getValidValueHourChange, getValidValueMinuteChange } from "../gux-time-picker.service";
|
2
|
+
describe('gux-time-picker.service', () => {
|
3
|
+
describe('#getTimeDisplayValues', () => {
|
4
|
+
[
|
5
|
+
{
|
6
|
+
minuteInterval: 15,
|
7
|
+
clockType: '24h',
|
8
|
+
expectedOutput: [
|
9
|
+
'00:00',
|
10
|
+
'00:15',
|
11
|
+
'00:30',
|
12
|
+
'00:45',
|
13
|
+
'01:00',
|
14
|
+
'01:15',
|
15
|
+
'01:30',
|
16
|
+
'01:45',
|
17
|
+
'02:00',
|
18
|
+
'02:15',
|
19
|
+
'02:30',
|
20
|
+
'02:45',
|
21
|
+
'03:00',
|
22
|
+
'03:15',
|
23
|
+
'03:30',
|
24
|
+
'03:45',
|
25
|
+
'04:00',
|
26
|
+
'04:15',
|
27
|
+
'04:30',
|
28
|
+
'04:45',
|
29
|
+
'05:00',
|
30
|
+
'05:15',
|
31
|
+
'05:30',
|
32
|
+
'05:45',
|
33
|
+
'06:00',
|
34
|
+
'06:15',
|
35
|
+
'06:30',
|
36
|
+
'06:45',
|
37
|
+
'07:00',
|
38
|
+
'07:15',
|
39
|
+
'07:30',
|
40
|
+
'07:45',
|
41
|
+
'08:00',
|
42
|
+
'08:15',
|
43
|
+
'08:30',
|
44
|
+
'08:45',
|
45
|
+
'09:00',
|
46
|
+
'09:15',
|
47
|
+
'09:30',
|
48
|
+
'09:45',
|
49
|
+
'10:00',
|
50
|
+
'10:15',
|
51
|
+
'10:30',
|
52
|
+
'10:45',
|
53
|
+
'11:00',
|
54
|
+
'11:15',
|
55
|
+
'11:30',
|
56
|
+
'11:45',
|
57
|
+
'12:00',
|
58
|
+
'12:15',
|
59
|
+
'12:30',
|
60
|
+
'12:45',
|
61
|
+
'13:00',
|
62
|
+
'13:15',
|
63
|
+
'13:30',
|
64
|
+
'13:45',
|
65
|
+
'14:00',
|
66
|
+
'14:15',
|
67
|
+
'14:30',
|
68
|
+
'14:45',
|
69
|
+
'15:00',
|
70
|
+
'15:15',
|
71
|
+
'15:30',
|
72
|
+
'15:45',
|
73
|
+
'16:00',
|
74
|
+
'16:15',
|
75
|
+
'16:30',
|
76
|
+
'16:45',
|
77
|
+
'17:00',
|
78
|
+
'17:15',
|
79
|
+
'17:30',
|
80
|
+
'17:45',
|
81
|
+
'18:00',
|
82
|
+
'18:15',
|
83
|
+
'18:30',
|
84
|
+
'18:45',
|
85
|
+
'19:00',
|
86
|
+
'19:15',
|
87
|
+
'19:30',
|
88
|
+
'19:45',
|
89
|
+
'20:00',
|
90
|
+
'20:15',
|
91
|
+
'20:30',
|
92
|
+
'20:45',
|
93
|
+
'21:00',
|
94
|
+
'21:15',
|
95
|
+
'21:30',
|
96
|
+
'21:45',
|
97
|
+
'22:00',
|
98
|
+
'22:15',
|
99
|
+
'22:30',
|
100
|
+
'22:45',
|
101
|
+
'23:00',
|
102
|
+
'23:15',
|
103
|
+
'23:30',
|
104
|
+
'23:45'
|
105
|
+
]
|
106
|
+
},
|
107
|
+
{
|
108
|
+
minuteInterval: 30,
|
109
|
+
clockType: '24h',
|
110
|
+
expectedOutput: [
|
111
|
+
'00:00',
|
112
|
+
'00:30',
|
113
|
+
'01:00',
|
114
|
+
'01:30',
|
115
|
+
'02:00',
|
116
|
+
'02:30',
|
117
|
+
'03:00',
|
118
|
+
'03:30',
|
119
|
+
'04:00',
|
120
|
+
'04:30',
|
121
|
+
'05:00',
|
122
|
+
'05:30',
|
123
|
+
'06:00',
|
124
|
+
'06:30',
|
125
|
+
'07:00',
|
126
|
+
'07:30',
|
127
|
+
'08:00',
|
128
|
+
'08:30',
|
129
|
+
'09:00',
|
130
|
+
'09:30',
|
131
|
+
'10:00',
|
132
|
+
'10:30',
|
133
|
+
'11:00',
|
134
|
+
'11:30',
|
135
|
+
'12:00',
|
136
|
+
'12:30',
|
137
|
+
'13:00',
|
138
|
+
'13:30',
|
139
|
+
'14:00',
|
140
|
+
'14:30',
|
141
|
+
'15:00',
|
142
|
+
'15:30',
|
143
|
+
'16:00',
|
144
|
+
'16:30',
|
145
|
+
'17:00',
|
146
|
+
'17:30',
|
147
|
+
'18:00',
|
148
|
+
'18:30',
|
149
|
+
'19:00',
|
150
|
+
'19:30',
|
151
|
+
'20:00',
|
152
|
+
'20:30',
|
153
|
+
'21:00',
|
154
|
+
'21:30',
|
155
|
+
'22:00',
|
156
|
+
'22:30',
|
157
|
+
'23:00',
|
158
|
+
'23:30'
|
159
|
+
]
|
160
|
+
},
|
161
|
+
{
|
162
|
+
minuteInterval: 60,
|
163
|
+
clockType: '24h',
|
164
|
+
expectedOutput: [
|
165
|
+
'00:00',
|
166
|
+
'01:00',
|
167
|
+
'02:00',
|
168
|
+
'03:00',
|
169
|
+
'04:00',
|
170
|
+
'05:00',
|
171
|
+
'06:00',
|
172
|
+
'07:00',
|
173
|
+
'08:00',
|
174
|
+
'09:00',
|
175
|
+
'10:00',
|
176
|
+
'11:00',
|
177
|
+
'12:00',
|
178
|
+
'13:00',
|
179
|
+
'14:00',
|
180
|
+
'15:00',
|
181
|
+
'16:00',
|
182
|
+
'17:00',
|
183
|
+
'18:00',
|
184
|
+
'19:00',
|
185
|
+
'20:00',
|
186
|
+
'21:00',
|
187
|
+
'22:00',
|
188
|
+
'23:00'
|
189
|
+
]
|
190
|
+
},
|
191
|
+
{
|
192
|
+
minuteInterval: 15,
|
193
|
+
clockType: '12h',
|
194
|
+
expectedOutput: [
|
195
|
+
'12:00',
|
196
|
+
'12:15',
|
197
|
+
'12:30',
|
198
|
+
'12:45',
|
199
|
+
'1:00',
|
200
|
+
'1:15',
|
201
|
+
'1:30',
|
202
|
+
'1:45',
|
203
|
+
'2:00',
|
204
|
+
'2:15',
|
205
|
+
'2:30',
|
206
|
+
'2:45',
|
207
|
+
'3:00',
|
208
|
+
'3:15',
|
209
|
+
'3:30',
|
210
|
+
'3:45',
|
211
|
+
'4:00',
|
212
|
+
'4:15',
|
213
|
+
'4:30',
|
214
|
+
'4:45',
|
215
|
+
'5:00',
|
216
|
+
'5:15',
|
217
|
+
'5:30',
|
218
|
+
'5:45',
|
219
|
+
'6:00',
|
220
|
+
'6:15',
|
221
|
+
'6:30',
|
222
|
+
'6:45',
|
223
|
+
'7:00',
|
224
|
+
'7:15',
|
225
|
+
'7:30',
|
226
|
+
'7:45',
|
227
|
+
'8:00',
|
228
|
+
'8:15',
|
229
|
+
'8:30',
|
230
|
+
'8:45',
|
231
|
+
'9:00',
|
232
|
+
'9:15',
|
233
|
+
'9:30',
|
234
|
+
'9:45',
|
235
|
+
'10:00',
|
236
|
+
'10:15',
|
237
|
+
'10:30',
|
238
|
+
'10:45',
|
239
|
+
'11:00',
|
240
|
+
'11:15',
|
241
|
+
'11:30',
|
242
|
+
'11:45'
|
243
|
+
]
|
244
|
+
},
|
245
|
+
{
|
246
|
+
minuteInterval: 30,
|
247
|
+
clockType: '12h',
|
248
|
+
expectedOutput: [
|
249
|
+
'12:00',
|
250
|
+
'12:30',
|
251
|
+
'1:00',
|
252
|
+
'1:30',
|
253
|
+
'2:00',
|
254
|
+
'2:30',
|
255
|
+
'3:00',
|
256
|
+
'3:30',
|
257
|
+
'4:00',
|
258
|
+
'4:30',
|
259
|
+
'5:00',
|
260
|
+
'5:30',
|
261
|
+
'6:00',
|
262
|
+
'6:30',
|
263
|
+
'7:00',
|
264
|
+
'7:30',
|
265
|
+
'8:00',
|
266
|
+
'8:30',
|
267
|
+
'9:00',
|
268
|
+
'9:30',
|
269
|
+
'10:00',
|
270
|
+
'10:30',
|
271
|
+
'11:00',
|
272
|
+
'11:30'
|
273
|
+
]
|
274
|
+
},
|
275
|
+
{
|
276
|
+
minuteInterval: 60,
|
277
|
+
clockType: '12h',
|
278
|
+
expectedOutput: [
|
279
|
+
'12:00',
|
280
|
+
'1:00',
|
281
|
+
'2:00',
|
282
|
+
'3:00',
|
283
|
+
'4:00',
|
284
|
+
'5:00',
|
285
|
+
'6:00',
|
286
|
+
'7:00',
|
287
|
+
'8:00',
|
288
|
+
'9:00',
|
289
|
+
'10:00',
|
290
|
+
'11:00'
|
291
|
+
]
|
292
|
+
}
|
293
|
+
].forEach(({ minuteInterval, clockType, expectedOutput }) => {
|
294
|
+
it(`should work as expected for ${clockType} with ${minuteInterval} minute intervals`, async () => {
|
295
|
+
expect(getTimeDisplayValues(minuteInterval, clockType)).toStrictEqual(expectedOutput);
|
296
|
+
});
|
297
|
+
});
|
298
|
+
});
|
299
|
+
describe('#getLocaleClockType', () => {
|
300
|
+
[
|
301
|
+
{ locale: 'ar' },
|
302
|
+
{ locale: 'cs' },
|
303
|
+
{ locale: 'da' },
|
304
|
+
{ locale: 'de' },
|
305
|
+
{ locale: 'en' },
|
306
|
+
{ locale: 'es-es' },
|
307
|
+
{ locale: 'es' },
|
308
|
+
{ locale: 'fi' },
|
309
|
+
{ locale: 'fr-ca' },
|
310
|
+
{ locale: 'fr' },
|
311
|
+
{ locale: 'he' },
|
312
|
+
{ locale: 'it' },
|
313
|
+
{ locale: 'ja' },
|
314
|
+
{ locale: 'ko' },
|
315
|
+
{ locale: 'nl' },
|
316
|
+
{ locale: 'no' },
|
317
|
+
{ locale: 'pl' },
|
318
|
+
{ locale: 'pt-br' },
|
319
|
+
{ locale: 'pt-pt' },
|
320
|
+
{ locale: 'ru' },
|
321
|
+
{ locale: 'sv' },
|
322
|
+
{ locale: 'th' },
|
323
|
+
{ locale: 'tr' },
|
324
|
+
{ locale: 'uk' },
|
325
|
+
{ locale: 'zh-cn' },
|
326
|
+
{ locale: 'zh-tw' }
|
327
|
+
].forEach(({ locale }) => {
|
328
|
+
it(`should work as expected for "${locale}"`, async () => {
|
329
|
+
const element = document.createElement('div');
|
330
|
+
element.setAttribute('lang', locale);
|
331
|
+
// This test is purposefully not testing what clock type is returned because that is something that can change https://github.com/nodejs/node/issues/44454#issuecomment-1238246509
|
332
|
+
expect(getLocaleClockType(element)).toEqual(expect.stringMatching(/^12h$|^24h$/));
|
333
|
+
});
|
334
|
+
});
|
335
|
+
});
|
336
|
+
describe('#incrementHour', () => {
|
337
|
+
[
|
338
|
+
{ input: '00:00', delta: 1, expectedOutput: '01:00' },
|
339
|
+
{ input: '00:00', delta: -1, expectedOutput: '23:00' },
|
340
|
+
{ input: '00:00', delta: 12, expectedOutput: '12:00' },
|
341
|
+
{ input: '23:00', delta: 1, expectedOutput: '00:00' },
|
342
|
+
{ input: '23:00', delta: -1, expectedOutput: '22:00' },
|
343
|
+
{ input: '23:00', delta: 12, expectedOutput: '11:00' }
|
344
|
+
].forEach(({ input, delta, expectedOutput }) => {
|
345
|
+
it(`should work as expected for "${input}" and delta "${delta}"`, async () => {
|
346
|
+
expect(incrementHour(input, delta)).toBe(expectedOutput);
|
347
|
+
});
|
348
|
+
});
|
349
|
+
});
|
350
|
+
describe('#incrementMinute', () => {
|
351
|
+
[
|
352
|
+
{ input: '00:00', delta: 1, step: 1, expectedOutput: '00:01' },
|
353
|
+
{ input: '00:00', delta: -1, step: 1, expectedOutput: '00:59' },
|
354
|
+
{ input: '00:00', delta: 1, step: 5, expectedOutput: '00:05' },
|
355
|
+
{ input: '00:00', delta: -1, step: 5, expectedOutput: '00:55' },
|
356
|
+
{ input: '00:00', delta: 1, step: 10, expectedOutput: '00:10' },
|
357
|
+
{ input: '00:00', delta: -1, step: 10, expectedOutput: '00:50' },
|
358
|
+
{ input: '00:00', delta: 1, step: 15, expectedOutput: '00:15' },
|
359
|
+
{ input: '00:00', delta: -1, step: 15, expectedOutput: '00:45' },
|
360
|
+
{ input: '00:00', delta: 1, step: 20, expectedOutput: '00:20' },
|
361
|
+
{ input: '00:00', delta: -1, step: 20, expectedOutput: '00:40' },
|
362
|
+
{ input: '00:00', delta: 1, step: 30, expectedOutput: '00:30' },
|
363
|
+
{ input: '00:00', delta: -1, step: 30, expectedOutput: '00:30' },
|
364
|
+
{ input: '00:00', delta: 1, step: 60, expectedOutput: '00:00' },
|
365
|
+
{ input: '00:00', delta: -1, step: 60, expectedOutput: '00:00' },
|
366
|
+
{ input: '00:59', delta: 1, step: 1, expectedOutput: '00:00' },
|
367
|
+
{ input: '00:59', delta: -1, step: 1, expectedOutput: '00:58' },
|
368
|
+
{ input: '00:59', delta: 1, step: 5, expectedOutput: '00:00' },
|
369
|
+
{ input: '00:59', delta: -1, step: 5, expectedOutput: '00:55' },
|
370
|
+
{ input: '00:59', delta: 1, step: 10, expectedOutput: '00:00' },
|
371
|
+
{ input: '00:59', delta: -1, step: 10, expectedOutput: '00:50' },
|
372
|
+
{ input: '00:59', delta: 1, step: 15, expectedOutput: '00:00' },
|
373
|
+
{ input: '00:59', delta: -1, step: 15, expectedOutput: '00:45' },
|
374
|
+
{ input: '00:59', delta: 1, step: 20, expectedOutput: '00:00' },
|
375
|
+
{ input: '00:59', delta: -1, step: 20, expectedOutput: '00:40' },
|
376
|
+
{ input: '00:59', delta: 1, step: 30, expectedOutput: '00:00' },
|
377
|
+
{ input: '00:59', delta: -1, step: 30, expectedOutput: '00:30' },
|
378
|
+
{ input: '00:59', delta: 1, step: 60, expectedOutput: '00:00' },
|
379
|
+
{ input: '00:59', delta: -1, step: 60, expectedOutput: '00:00' },
|
380
|
+
{ input: '00:01', delta: 1, step: 1, expectedOutput: '00:02' },
|
381
|
+
{ input: '00:01', delta: -1, step: 1, expectedOutput: '00:00' },
|
382
|
+
{ input: '00:01', delta: 1, step: 5, expectedOutput: '00:05' },
|
383
|
+
{ input: '00:01', delta: -1, step: 5, expectedOutput: '00:00' },
|
384
|
+
{ input: '00:01', delta: 1, step: 10, expectedOutput: '00:10' },
|
385
|
+
{ input: '00:01', delta: -1, step: 10, expectedOutput: '00:00' },
|
386
|
+
{ input: '00:01', delta: 1, step: 15, expectedOutput: '00:15' },
|
387
|
+
{ input: '00:01', delta: -1, step: 15, expectedOutput: '00:00' },
|
388
|
+
{ input: '00:01', delta: 1, step: 20, expectedOutput: '00:20' },
|
389
|
+
{ input: '00:01', delta: -1, step: 20, expectedOutput: '00:00' },
|
390
|
+
{ input: '00:01', delta: 1, step: 30, expectedOutput: '00:30' },
|
391
|
+
{ input: '00:01', delta: -1, step: 30, expectedOutput: '00:00' },
|
392
|
+
{ input: '00:01', delta: 1, step: 60, expectedOutput: '00:00' },
|
393
|
+
{ input: '00:01', delta: -1, step: 60, expectedOutput: '00:00' }
|
394
|
+
].forEach(({ input, delta, step, expectedOutput }) => {
|
395
|
+
it(`should work as expected for "${input}", step "${step}" and delta "${delta}"`, async () => {
|
396
|
+
expect(incrementMinute(input, delta, step)).toBe(expectedOutput);
|
397
|
+
});
|
398
|
+
});
|
399
|
+
});
|
400
|
+
describe('#getDisplayValue', () => {
|
401
|
+
[
|
402
|
+
{ input: '00:00', clockType: '24h', expectedOutput: '00:00' },
|
403
|
+
{ input: '00:00', clockType: '12h', expectedOutput: '12:00' },
|
404
|
+
{ input: '12:00', clockType: '24h', expectedOutput: '12:00' },
|
405
|
+
{ input: '12:00', clockType: '12h', expectedOutput: '12:00' },
|
406
|
+
{ input: '20:00', clockType: '24h', expectedOutput: '20:00' },
|
407
|
+
{ input: '20:00', clockType: '12h', expectedOutput: '8:00' }
|
408
|
+
].forEach(({ input, clockType, expectedOutput }) => {
|
409
|
+
it(`should work as expected for "${input}" and clockType "${clockType}"`, async () => {
|
410
|
+
expect(getDisplayValue(input, clockType)).toBe(expectedOutput);
|
411
|
+
});
|
412
|
+
});
|
413
|
+
});
|
414
|
+
describe('#getValue', () => {
|
415
|
+
[
|
416
|
+
{ input: '00:00', clockType: '24h', expectedOutput: '00:00' },
|
417
|
+
{ input: '12:00', clockType: '24h', expectedOutput: '12:00' },
|
418
|
+
{ input: '12:00', clockType: '12h', isAm: true, expectedOutput: '00:00' },
|
419
|
+
{
|
420
|
+
input: '12:00',
|
421
|
+
clockType: '12h',
|
422
|
+
isAm: false,
|
423
|
+
expectedOutput: '12:00'
|
424
|
+
},
|
425
|
+
{ input: '1:00', clockType: '12h', isAm: true, expectedOutput: '01:00' },
|
426
|
+
{ input: '1:00', clockType: '12h', isAm: false, expectedOutput: '13:00' },
|
427
|
+
{ input: '11:00', clockType: '12h', isAm: true, expectedOutput: '11:00' },
|
428
|
+
{ input: '11:00', clockType: '12h', isAm: false, expectedOutput: '23:00' }
|
429
|
+
].forEach(({ input, clockType, isAm, expectedOutput }) => {
|
430
|
+
it(`should work as expected for "${input}", clockType "${clockType}" and isAm "${isAm ? 'true' : 'false'}"`, async () => {
|
431
|
+
expect(getValue(input, clockType, isAm)).toBe(expectedOutput);
|
432
|
+
});
|
433
|
+
});
|
434
|
+
});
|
435
|
+
describe('#getHourDisplayValue', () => {
|
436
|
+
[
|
437
|
+
{ input: '00:00', clockType: '24h', expectedOutput: '00' },
|
438
|
+
{ input: '00:00', clockType: '12h', expectedOutput: '12' },
|
439
|
+
{ input: '12:00', clockType: '24h', expectedOutput: '12' },
|
440
|
+
{ input: '12:00', clockType: '12h', expectedOutput: '12' },
|
441
|
+
{ input: '20:00', clockType: '24h', expectedOutput: '20' },
|
442
|
+
{ input: '20:00', clockType: '12h', expectedOutput: '8' }
|
443
|
+
].forEach(({ input, clockType, expectedOutput }) => {
|
444
|
+
it(`should work as expected for "${input}" and clockType "${clockType}"`, async () => {
|
445
|
+
expect(getHourDisplayValue(input, clockType)).toBe(expectedOutput);
|
446
|
+
});
|
447
|
+
});
|
448
|
+
});
|
449
|
+
describe('#getMinuteDisplayValue', () => {
|
450
|
+
[
|
451
|
+
{ input: '00:00', expectedOutput: '00' },
|
452
|
+
{ input: '00:15', expectedOutput: '15' },
|
453
|
+
{ input: '00:30', expectedOutput: '30' },
|
454
|
+
{ input: '00:59', expectedOutput: '59' }
|
455
|
+
].forEach(({ input, expectedOutput }) => {
|
456
|
+
it(`should work as expected for "${input}"`, async () => {
|
457
|
+
expect(getMinuteDisplayValue(input)).toBe(expectedOutput);
|
458
|
+
});
|
459
|
+
});
|
460
|
+
});
|
461
|
+
describe('#isAm', () => {
|
462
|
+
[
|
463
|
+
{ input: '00:00', expectedOutput: true },
|
464
|
+
{ input: '11:15', expectedOutput: true },
|
465
|
+
{ input: '12:30', expectedOutput: false },
|
466
|
+
{ input: '23:59', expectedOutput: false }
|
467
|
+
].forEach(({ input, expectedOutput }) => {
|
468
|
+
it(`should work as expected for "${input}"`, async () => {
|
469
|
+
expect(isAm(input)).toBe(expectedOutput);
|
470
|
+
});
|
471
|
+
});
|
472
|
+
});
|
473
|
+
describe('#getHoursPattern', () => {
|
474
|
+
[
|
475
|
+
{ input: '24h', expectedOutput: '^([01]?[0-9]|2[0-3])$' },
|
476
|
+
{ input: '12h', expectedOutput: '^(0?[1-9]|1[012])$' }
|
477
|
+
].forEach(({ input, expectedOutput }) => {
|
478
|
+
it(`should work as expected for "${input}"`, async () => {
|
479
|
+
expect(getHoursPattern(input)).toBe(expectedOutput);
|
480
|
+
});
|
481
|
+
});
|
482
|
+
});
|
483
|
+
describe('#getMinutesPattern', () => {
|
484
|
+
it(`should work as expected"`, async () => {
|
485
|
+
expect(getMinutesPattern()).toBe('^[0-5][0-9]$');
|
486
|
+
});
|
487
|
+
});
|
488
|
+
describe('#getValidValueHourChange', () => {
|
489
|
+
const element = document.createElement('input');
|
490
|
+
element.type = 'text';
|
491
|
+
element.selectionStart = 2;
|
492
|
+
[
|
493
|
+
{
|
494
|
+
input: '00:00',
|
495
|
+
clockType: '24h',
|
496
|
+
change: 'Backspace',
|
497
|
+
hourInputTime: '00',
|
498
|
+
expectedOutput: '00:00'
|
499
|
+
},
|
500
|
+
{
|
501
|
+
input: '00:00',
|
502
|
+
clockType: '24h',
|
503
|
+
change: '5',
|
504
|
+
hourInputTime: '00',
|
505
|
+
expectedOutput: '05:00'
|
506
|
+
},
|
507
|
+
{
|
508
|
+
input: '00:00',
|
509
|
+
clockType: '24h',
|
510
|
+
change: '9',
|
511
|
+
hourInputTime: '00',
|
512
|
+
expectedOutput: '09:00'
|
513
|
+
},
|
514
|
+
{
|
515
|
+
input: '00:00',
|
516
|
+
clockType: '24h',
|
517
|
+
change: '0',
|
518
|
+
hourInputTime: '00',
|
519
|
+
expectedOutput: '00:00'
|
520
|
+
},
|
521
|
+
{
|
522
|
+
input: '10:00',
|
523
|
+
clockType: '24h',
|
524
|
+
change: '5',
|
525
|
+
hourInputTime: '10',
|
526
|
+
expectedOutput: '05:00'
|
527
|
+
},
|
528
|
+
{
|
529
|
+
input: '11:00',
|
530
|
+
clockType: '24h',
|
531
|
+
change: '9',
|
532
|
+
hourInputTime: '11',
|
533
|
+
expectedOutput: '19:00'
|
534
|
+
},
|
535
|
+
{
|
536
|
+
input: '12:00',
|
537
|
+
clockType: '24h',
|
538
|
+
change: '0',
|
539
|
+
hourInputTime: '12',
|
540
|
+
expectedOutput: '20:00'
|
541
|
+
},
|
542
|
+
{
|
543
|
+
input: '15:00',
|
544
|
+
clockType: '24h',
|
545
|
+
change: '3',
|
546
|
+
hourInputTime: '15',
|
547
|
+
expectedOutput: '03:00'
|
548
|
+
},
|
549
|
+
{
|
550
|
+
input: '18:00',
|
551
|
+
clockType: '24h',
|
552
|
+
change: '9',
|
553
|
+
hourInputTime: '18',
|
554
|
+
expectedOutput: '09:00'
|
555
|
+
},
|
556
|
+
{
|
557
|
+
input: '21:00',
|
558
|
+
clockType: '24h',
|
559
|
+
change: '3',
|
560
|
+
hourInputTime: '21',
|
561
|
+
expectedOutput: '13:00'
|
562
|
+
},
|
563
|
+
{
|
564
|
+
input: '10:00',
|
565
|
+
clockType: '12h',
|
566
|
+
change: '5',
|
567
|
+
hourInputTime: '10',
|
568
|
+
expectedOutput: '05:00'
|
569
|
+
},
|
570
|
+
{
|
571
|
+
input: '11:00',
|
572
|
+
clockType: '12h',
|
573
|
+
change: '9',
|
574
|
+
hourInputTime: '11',
|
575
|
+
expectedOutput: '09:00'
|
576
|
+
},
|
577
|
+
{
|
578
|
+
input: '12:00',
|
579
|
+
clockType: '12h',
|
580
|
+
change: '0',
|
581
|
+
hourInputTime: '12',
|
582
|
+
expectedOutput: '12:00'
|
583
|
+
}
|
584
|
+
].forEach(({ input, clockType, change, hourInputTime, expectedOutput }) => {
|
585
|
+
it(`should work as expected for "${input}", change "${change}"`, async () => {
|
586
|
+
element.setAttribute('value', hourInputTime);
|
587
|
+
expect(getValidValueHourChange(input, clockType, change, element.selectionStart, element.value.length)).toBe(expectedOutput);
|
588
|
+
});
|
589
|
+
});
|
590
|
+
});
|
591
|
+
describe('#getValidValueMinuteChange', () => {
|
592
|
+
[
|
593
|
+
{
|
594
|
+
input: '00:05',
|
595
|
+
change: 'Backspace',
|
596
|
+
selectionStart: 2,
|
597
|
+
expectedOutput: '00:00'
|
598
|
+
},
|
599
|
+
{
|
600
|
+
input: '00:05',
|
601
|
+
change: 'Backspace',
|
602
|
+
selectionStart: 1,
|
603
|
+
expectedOutput: '00:05'
|
604
|
+
},
|
605
|
+
{
|
606
|
+
input: '00:00',
|
607
|
+
change: '5',
|
608
|
+
selectionStart: 2,
|
609
|
+
expectedOutput: '00:05'
|
610
|
+
},
|
611
|
+
{
|
612
|
+
input: '00:32',
|
613
|
+
change: '9',
|
614
|
+
selectionStart: 2,
|
615
|
+
expectedOutput: '00:29'
|
616
|
+
},
|
617
|
+
{
|
618
|
+
input: '00:28',
|
619
|
+
change: '0',
|
620
|
+
selectionStart: 2,
|
621
|
+
expectedOutput: '00:00'
|
622
|
+
},
|
623
|
+
{
|
624
|
+
input: '00:28',
|
625
|
+
change: '6',
|
626
|
+
selectionStart: 2,
|
627
|
+
expectedOutput: '00:06'
|
628
|
+
},
|
629
|
+
{
|
630
|
+
input: '00:32',
|
631
|
+
change: '9',
|
632
|
+
selectionStart: 1,
|
633
|
+
expectedOutput: '00:39'
|
634
|
+
},
|
635
|
+
{
|
636
|
+
input: '00:28',
|
637
|
+
change: '3',
|
638
|
+
selectionStart: 1,
|
639
|
+
expectedOutput: '00:23'
|
640
|
+
},
|
641
|
+
{
|
642
|
+
input: '00:32',
|
643
|
+
change: '9',
|
644
|
+
selectionStart: 0,
|
645
|
+
expectedOutput: '00:09'
|
646
|
+
},
|
647
|
+
{
|
648
|
+
input: '00:28',
|
649
|
+
change: '3',
|
650
|
+
selectionStart: 0,
|
651
|
+
expectedOutput: '00:38'
|
652
|
+
}
|
653
|
+
].forEach(({ input, change, selectionStart, expectedOutput }) => {
|
654
|
+
it(`should work as expected for "${input}", change "${change}" and selectionStart "${selectionStart}"`, async () => {
|
655
|
+
expect(getValidValueMinuteChange(input, change, selectionStart)).toBe(expectedOutput);
|
656
|
+
});
|
657
|
+
});
|
658
|
+
});
|
659
|
+
describe('#getValidHourChange, prevent backspace if there is a leading zero in 12hour clock', () => {
|
660
|
+
const element = document.createElement('input');
|
661
|
+
element.type = 'text';
|
662
|
+
[
|
663
|
+
{
|
664
|
+
input: '09:00',
|
665
|
+
change: 'Backspace',
|
666
|
+
clockType: '12h',
|
667
|
+
hourInputTime: '09',
|
668
|
+
expectedOutput: '09:00'
|
669
|
+
},
|
670
|
+
{
|
671
|
+
input: '02:00',
|
672
|
+
change: 'Backspace',
|
673
|
+
clockType: '12h',
|
674
|
+
hourInputTime: '02',
|
675
|
+
expectedOutput: '02:00'
|
676
|
+
},
|
677
|
+
{
|
678
|
+
input: '03:00',
|
679
|
+
change: 'Backspace',
|
680
|
+
clockType: '12h',
|
681
|
+
hourInputTime: '03',
|
682
|
+
expectedOutput: '03:00'
|
683
|
+
},
|
684
|
+
{
|
685
|
+
input: '04:00',
|
686
|
+
change: 'Backspace',
|
687
|
+
clockType: '12h',
|
688
|
+
hourInputTime: '04',
|
689
|
+
expectedOutput: '04:00'
|
690
|
+
}
|
691
|
+
].forEach(({ input, change, clockType, hourInputTime, expectedOutput }) => {
|
692
|
+
it(`should prevent a ${change} when there is a leading zero on a 12 hour input`, async () => {
|
693
|
+
element.setAttribute('value', hourInputTime);
|
694
|
+
expect(getValidValueHourChange(input, clockType, change, element.selectionStart, element.value.length)).toBe(expectedOutput);
|
695
|
+
});
|
696
|
+
});
|
697
|
+
});
|
698
|
+
});
|