genesys-spark-components 3.28.0 → 3.29.0
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/CHANGELOG.md +20 -0
- package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
- package/dist/cjs/gux-accordion-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-list-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-badge-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-blank-state-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-slot-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
- package/dist/cjs/gux-card-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-copy-to-clipboard-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-datepicker.cjs.entry.js +69 -57
- package/dist/cjs/gux-disclosure-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-multi-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
- package/dist/cjs/gux-error-message-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-number.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
- package/dist/cjs/gux-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +8 -51
- package/dist/cjs/gux-list.service-59f2b3e7.js +51 -0
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-loading-message-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal.cjs.entry.js +1 -1
- package/dist/cjs/gux-month-calendar.cjs.entry.js +137 -0
- package/dist/cjs/gux-month-list_2.cjs.entry.js +89 -0
- package/dist/cjs/gux-month-picker-beta.cjs.entry.js +222 -0
- package/dist/cjs/gux-notification-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
- package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
- package/dist/cjs/gux-rating.cjs.entry.js +1 -1
- package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-simple-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-list-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gux-tag-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-text-label-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
- package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +1 -1
- package/dist/cjs/index-262c2e3a.js +16 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-tracking-8a0a56ad.js → usage-tracking-a1b34de9.js} +1 -1
- package/dist/cjs/year-month-values-080373aa.js +24 -0
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.css +78 -0
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.js +237 -0
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list-item/gux-month-list-item.css +52 -0
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list-item/gux-month-list-item.js +110 -0
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list.css +8 -0
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list.js +80 -0
- package/dist/collection/components/beta/gux-month-picker/gux-month-picker.css +58 -0
- package/dist/collection/components/beta/gux-month-picker/gux-month-picker.js +313 -0
- package/dist/collection/components/stable/gux-datepicker/gux-datepicker.css +5 -0
- package/dist/collection/components/stable/gux-datepicker/gux-datepicker.js +70 -76
- package/dist/collection/components/stable/gux-list/gux-list.js +6 -5
- package/dist/collection/components/stable/gux-list/gux-list.service.js +19 -20
- package/dist/collection/utils/date/year-month-values.js +13 -0
- package/dist/collection/utils/dom/after-render.js +3 -0
- package/dist/deploy-info.json +3 -3
- package/dist/esm/genesys-webcomponents.js +1 -1
- package/dist/esm/gux-accordion-legacy.entry.js +1 -1
- package/dist/esm/gux-accordion.entry.js +1 -1
- package/dist/esm/gux-action-button-legacy.entry.js +1 -1
- package/dist/esm/gux-action-button.entry.js +1 -1
- package/dist/esm/gux-action-list-legacy.entry.js +1 -1
- package/dist/esm/gux-action-toast.entry.js +1 -1
- package/dist/esm/gux-advanced-dropdown.entry.js +1 -1
- package/dist/esm/gux-announce-beta.entry.js +1 -1
- package/dist/esm/gux-badge-beta.entry.js +1 -1
- package/dist/esm/gux-blank-state-beta.entry.js +1 -1
- package/dist/esm/gux-breadcrumbs.entry.js +1 -1
- package/dist/esm/gux-button-multi-legacy.entry.js +1 -1
- package/dist/esm/gux-button-multi.entry.js +1 -1
- package/dist/esm/gux-button-slot-beta.entry.js +1 -1
- package/dist/esm/gux-button.entry.js +1 -1
- package/dist/esm/gux-calendar.entry.js +1 -1
- package/dist/esm/gux-card-beta.entry.js +1 -1
- package/dist/esm/gux-chart-column-beta.entry.js +1 -1
- package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
- package/dist/esm/gux-chart-line-beta.entry.js +1 -1
- package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
- package/dist/esm/gux-command-palette-legacy.entry.js +1 -1
- package/dist/esm/gux-content-search.entry.js +1 -1
- package/dist/esm/gux-copy-to-clipboard-beta.entry.js +1 -1
- package/dist/esm/gux-date-beta.entry.js +1 -1
- package/dist/esm/gux-date-time-beta.entry.js +1 -1
- package/dist/esm/gux-datepicker.entry.js +69 -57
- package/dist/esm/gux-disclosure-button.entry.js +1 -1
- package/dist/esm/gux-dismiss-button.entry.js +1 -1
- package/dist/esm/gux-dropdown-legacy.entry.js +1 -1
- package/dist/esm/gux-dropdown-multi-beta.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +1 -1
- package/dist/esm/gux-error-message-beta.entry.js +1 -1
- package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
- package/dist/esm/gux-form-field-color.entry.js +1 -1
- package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
- package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
- package/dist/esm/gux-form-field-legacy.entry.js +1 -1
- package/dist/esm/gux-form-field-number.entry.js +1 -1
- package/dist/esm/gux-form-field-radio.entry.js +1 -1
- package/dist/esm/gux-form-field-range.entry.js +1 -1
- package/dist/esm/gux-form-field-search.entry.js +1 -1
- package/dist/esm/gux-form-field-select.entry.js +1 -1
- package/dist/esm/gux-form-field-text-like.entry.js +1 -1
- package/dist/esm/gux-form-field-textarea.entry.js +1 -1
- package/dist/esm/gux-icon.entry.js +1 -1
- package/dist/esm/gux-list-item-legacy_2.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +8 -51
- package/dist/esm/gux-list.service-66b8540f.js +45 -0
- package/dist/esm/gux-listbox-multi.entry.js +1 -1
- package/dist/esm/gux-loading-message-beta.entry.js +1 -1
- package/dist/esm/gux-modal.entry.js +1 -1
- package/dist/esm/gux-month-calendar.entry.js +133 -0
- package/dist/esm/gux-month-list_2.entry.js +84 -0
- package/dist/esm/gux-month-picker-beta.entry.js +218 -0
- package/dist/esm/gux-notification-toast.entry.js +1 -1
- package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
- package/dist/esm/gux-pagination-beta.entry.js +1 -1
- package/dist/esm/gux-pagination-cursor.entry.js +1 -1
- package/dist/esm/gux-pagination.entry.js +1 -1
- package/dist/esm/gux-panel-frame-legacy.entry.js +1 -1
- package/dist/esm/gux-popover-list.entry.js +1 -1
- package/dist/esm/gux-popover.entry.js +1 -1
- package/dist/esm/gux-radial-loading.entry.js +1 -1
- package/dist/esm/gux-radial-progress.entry.js +1 -1
- package/dist/esm/gux-rating.entry.js +1 -1
- package/dist/esm/gux-side-panel-legacy.entry.js +1 -1
- package/dist/esm/gux-simple-toast.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-list-beta.entry.js +1 -1
- package/dist/esm/gux-sort-control.entry.js +1 -1
- package/dist/esm/gux-switch.entry.js +1 -1
- package/dist/esm/gux-table-beta.entry.js +1 -1
- package/dist/esm/gux-tabs-advanced.entry.js +1 -1
- package/dist/esm/gux-tabs-legacy.entry.js +1 -1
- package/dist/esm/gux-tabs.entry.js +1 -1
- package/dist/esm/gux-tag-beta.entry.js +1 -1
- package/dist/esm/gux-text-highlight.entry.js +1 -1
- package/dist/esm/gux-text-label-legacy.entry.js +1 -1
- package/dist/esm/gux-time-beta.entry.js +1 -1
- package/dist/esm/gux-time-picker-beta.entry.js +1 -1
- package/dist/esm/gux-toggle.entry.js +1 -1
- package/dist/esm/gux-tooltip.entry.js +1 -1
- package/dist/esm/gux-visualization-beta.entry.js +1 -1
- package/dist/esm/index-74e605ae.js +16 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-tracking-3d95bf43.js → usage-tracking-3a58b2cb.js} +1 -1
- package/dist/esm/year-month-values-8f78277c.js +19 -0
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ar.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.cs.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.da.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.de.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es-es.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fi.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr-ca.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.he.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.it.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ja.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ko.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.nl.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.no.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pl.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pt-br.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pt-pt.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ru.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.sv.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.th.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.tr.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-cn.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-tw.json +1 -1
- package/dist/genesys-webcomponents/{p-c2f5b66a.entry.js → p-0309337a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-822f8307.entry.js → p-05d8867d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0e0fa72e.entry.js → p-097ebac8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-34781a4f.entry.js → p-0ac85f85.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8f9f2533.entry.js → p-0f3b197c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6c1bcb81.entry.js → p-1193eea0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0ff9b746.entry.js → p-14252d82.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-810975bf.entry.js → p-147f5ce5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-837ea1c7.entry.js → p-155a7a20.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-62bcdee5.entry.js → p-1665f72d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1046fc7a.entry.js → p-1717f300.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d2146baf.entry.js → p-186ab617.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a058d86c.entry.js → p-1bab4f2d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-07ce561d.entry.js → p-22c9f5fc.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-25ea189a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-1ab4904a.entry.js → p-26fd3d6f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3bc907d4.entry.js → p-3110951a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d2a740bf.entry.js → p-321ef965.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3834e291.js +1 -0
- package/dist/genesys-webcomponents/{p-18ef9c4e.entry.js → p-41627e97.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8fdf5e4f.entry.js → p-43d4998c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8da6820a.entry.js → p-45b2e9ab.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-48ba3e1f.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-a8fe0379.entry.js → p-4a276707.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-60e959f5.entry.js → p-4aed9d1d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bc20e015.entry.js → p-4d0dfe2f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-993b8f68.entry.js → p-4d0fab65.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-74e58da4.entry.js → p-4f514bc3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cb525f80.entry.js → p-50c1f2be.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-10b92544.entry.js → p-52c0ef2c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b94f03eb.entry.js → p-5563cdd3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3990f966.entry.js → p-5669156b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9466559c.entry.js → p-598a1c4b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-076be569.entry.js → p-5aab9b69.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2e7e448e.entry.js → p-5bd6e8e7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-15351905.entry.js → p-6029a142.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d7a43fbb.entry.js → p-669a61ca.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-70e587ff.entry.js → p-6bf45984.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3d0d3a6e.entry.js → p-6e435cd2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-56a38cf7.entry.js → p-6f42eb51.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-604af472.entry.js → p-6f4bd858.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7c1c3ea0.entry.js → p-714f65a0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f94f4dd9.entry.js → p-71ea36d7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-522c74ec.entry.js → p-74ee2e23.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ce593131.entry.js → p-76ea901a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1ba094ac.entry.js → p-7789513a.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-79a47484.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-ca461392.entry.js → p-7effb09b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ebff89b2.entry.js → p-8009fdc9.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-813cb992.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f8c4e528.entry.js → p-83cc0e17.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e48d3310.entry.js → p-8b1a96cc.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8d32b63a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-49c15d86.entry.js → p-8da54237.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2d26c660.entry.js → p-8e106004.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2117da6e.js → p-967a5d2e.js} +1 -1
- package/dist/genesys-webcomponents/{p-2eec7bb3.entry.js → p-99898e32.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-86613e69.entry.js → p-9b2607c2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d85e0ef6.entry.js → p-a6466fec.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f338c957.entry.js → p-b0b469b7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bc813cdd.entry.js → p-b1a0e8f9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a6b2b359.entry.js → p-b3fc31d2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b08472d5.entry.js → p-b5ff9be4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-30a2191b.entry.js → p-b6db9f14.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a512fad8.entry.js → p-b72ece98.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6b418d99.entry.js → p-bd5c79d9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-80b9fb4f.entry.js → p-c136bc23.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7e018abd.entry.js → p-c5ab5608.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ec64efaf.entry.js → p-cb53f5b2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-81e83db1.entry.js → p-cbad82d5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fe117b7f.entry.js → p-ccb85246.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-db4ad4a2.entry.js → p-cfc03ea4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5d8f6b2d.entry.js → p-d0d09c10.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bc6633ac.entry.js → p-d695f246.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5154e024.entry.js → p-de6ad54f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-64788936.entry.js → p-df4c45b5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3d517313.entry.js → p-e6eba280.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ed9247cf.entry.js → p-e84f7077.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ea91ae27.js +1 -0
- package/dist/genesys-webcomponents/{p-797be44d.entry.js → p-eab68d2f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3da8813c.entry.js → p-eb9310a8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8facd0ec.entry.js → p-ee80c3b5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-31540340.entry.js → p-f0b4112d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5c64137d.entry.js → p-f4450927.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-97afe8f5.entry.js → p-f858d163.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-24b58841.entry.js → p-fb9ae052.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b5876605.entry.js → p-ffe85168.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.d.ts +45 -0
- package/dist/types/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list-item/gux-month-list-item.d.ts +12 -0
- package/dist/types/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list.d.ts +8 -0
- package/dist/types/components/beta/gux-month-picker/gux-month-picker.d.ts +49 -0
- package/dist/types/components/stable/gux-datepicker/gux-datepicker.d.ts +19 -9
- package/dist/types/components/stable/gux-list/gux-list.service.d.ts +5 -4
- package/dist/types/components.d.ts +116 -2
- package/dist/types/utils/date/year-month-values.d.ts +8 -0
- package/dist/types/utils/dom/after-render.d.ts +1 -0
- package/package.json +1 -1
- package/dist/genesys-webcomponents/p-559635b7.entry.js +0 -1
- package/dist/genesys-webcomponents/p-99374ffa.entry.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-74e605ae.js';
|
|
2
|
-
import { t as trackComponent } from './usage-tracking-
|
|
2
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
3
3
|
import { r as randomHTMLId } from './random-html-id-8e3f658c.js';
|
|
4
4
|
import { b as buildI18nForComponent } from './index-b8a25b60.js';
|
|
5
5
|
import { f as fromIsoDate, a as asIsoDateRange, b as asIsoDate, c as fromIsoDateRange } from './iso-dates-a7c704a4.js';
|
|
@@ -139,7 +139,7 @@ function getIntervalRange(format, intervalLetter) {
|
|
|
139
139
|
return { selectionStart, selectionEnd };
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
const guxDatepickerCss = ":host{display:block}.gux-datepicker{display:inline-block}.gux-datepicker.gux-disabled{pointer-events:none;cursor:default}.gux-datepicker.gux-disabled .gux-datepicker-field .gux-datepicker-field-input{opacity:0.5}.gux-datepicker .gux-datepicker-field{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-content:flex-start;align-items:center;justify-content:flex-start}.gux-datepicker .gux-datepicker-field~.gux-datepicker-field{margin-left:20px}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-label{flex:0 1 auto;align-self:auto;order:0;margin-right:8px;font-size:12px;font-weight:bold;line-height:20px}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input{position:relative;flex:0 1 auto;align-self:auto;order:0;margin:4px 0}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:4px;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:4px 8px 4px 8px;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input{flex:1 1 auto;align-self:auto;order:0;width:100px;overflow:hidden;color:#2e394c;background-color:#f6f7f9;border:none;outline:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::placeholder{color:#596373;opacity:1}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-search-cancel-button,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-search-results-button,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button{flex:0 1 auto;align-self:auto;order:0;padding:2px;color:#596373;background:transparent;border:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):focus,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):hover{color:#2e394c;cursor:pointer}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button gux-icon{width:16px;height:16px}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input gux-calendar{z-index:var(--gux-zindex-popup, 1);display:none}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button{color:#2a60c8}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):focus,.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):hover{color:#2a60c8}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input gux-calendar{display:block}.gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";
|
|
142
|
+
const guxDatepickerCss = ":host{display:block}.gux-datepicker{display:inline-block}.gux-datepicker.gux-disabled{pointer-events:none;cursor:default}.gux-datepicker.gux-disabled .gux-datepicker-field .gux-datepicker-field-input{opacity:0.5}.gux-datepicker .gux-datepicker-field{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-content:flex-start;align-items:center;justify-content:flex-start}.gux-datepicker .gux-datepicker-field~.gux-datepicker-field{margin-left:20px}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-label{flex:0 1 auto;align-self:auto;order:0;margin-right:8px;font-size:12px;font-weight:bold;line-height:20px}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input{position:relative;flex:0 1 auto;align-self:auto;order:0;margin:4px 0}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:4px;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:4px 8px 4px 8px;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input{flex:1 1 auto;align-self:auto;order:0;width:100px;overflow:hidden;color:#2e394c;background-color:#f6f7f9;border:none;outline:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::placeholder{color:#596373;opacity:1}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-search-cancel-button,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-search-results-button,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button{flex:0 1 auto;align-self:auto;order:0;padding:2px;color:#596373;background:transparent;border:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):focus,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):hover{color:#2e394c;cursor:pointer}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button gux-icon{width:16px;height:16px}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input gux-calendar{z-index:var(--gux-zindex-popup, 1);display:none}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button{color:#2a60c8}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):focus,.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):hover{color:#2a60c8}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input gux-calendar{display:block}.gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";
|
|
143
143
|
|
|
144
144
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
145
145
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -156,13 +156,16 @@ const GuxDatepicker = class {
|
|
|
156
156
|
registerInstance(this, hostRef);
|
|
157
157
|
this.input = createEvent(this, "input", 7);
|
|
158
158
|
this.yearFormat = 'yyyy';
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
/**
|
|
160
|
+
* Indicates if the user is selecting the range with the mouse.
|
|
161
|
+
* This prevents other events from processing on the input range.
|
|
162
|
+
*/
|
|
163
|
+
this.isSelectingRangeWithMouse = false;
|
|
161
164
|
this.lastYear = new Date().getFullYear();
|
|
162
165
|
this.startInputId = randomHTMLId('gux-datepicker');
|
|
163
166
|
this.endInputId = randomHTMLId('gux-datepicker');
|
|
164
167
|
/**
|
|
165
|
-
* The datepicker label (can be a single label, or two
|
|
168
|
+
* The datepicker label (can be a single label, or two separated by a comma if it's a range datepicker)
|
|
166
169
|
*/
|
|
167
170
|
this.label = '';
|
|
168
171
|
/**
|
|
@@ -192,11 +195,14 @@ const GuxDatepicker = class {
|
|
|
192
195
|
/**
|
|
193
196
|
* The datepicker current value
|
|
194
197
|
*/
|
|
195
|
-
this.
|
|
198
|
+
this.formattedValue = '';
|
|
196
199
|
/**
|
|
197
200
|
* The datepicker current value
|
|
198
201
|
*/
|
|
199
|
-
this.
|
|
202
|
+
this.toFormattedValue = '';
|
|
203
|
+
/**
|
|
204
|
+
* Uses styling to control visibility of the calendar element
|
|
205
|
+
*/
|
|
200
206
|
this.active = false;
|
|
201
207
|
}
|
|
202
208
|
watchValue() {
|
|
@@ -223,7 +229,7 @@ const GuxDatepicker = class {
|
|
|
223
229
|
this.yearFormat = 'yy';
|
|
224
230
|
}
|
|
225
231
|
this.intervalOrder = getIntervalOrder(newFormat);
|
|
226
|
-
this.lastIntervalRange =
|
|
232
|
+
this.lastIntervalRange = this.initialIntervalRange;
|
|
227
233
|
}
|
|
228
234
|
watchActiveCalendar(active) {
|
|
229
235
|
if (active === true) {
|
|
@@ -233,7 +239,7 @@ const GuxDatepicker = class {
|
|
|
233
239
|
}
|
|
234
240
|
}
|
|
235
241
|
onKeyDown(event) {
|
|
236
|
-
if (this.
|
|
242
|
+
if (this.isInputFieldEvent(event)) {
|
|
237
243
|
this.focusedField = this.getInputFieldFromEvent(event);
|
|
238
244
|
switch (event.key) {
|
|
239
245
|
case 'Enter':
|
|
@@ -242,8 +248,7 @@ const GuxDatepicker = class {
|
|
|
242
248
|
this.active = false;
|
|
243
249
|
break;
|
|
244
250
|
case 'Tab':
|
|
245
|
-
|
|
246
|
-
this.setRange();
|
|
251
|
+
// Allow default behavior of tabbing to the next element - the calendar toggle button
|
|
247
252
|
break;
|
|
248
253
|
case 'ArrowDown':
|
|
249
254
|
event.preventDefault();
|
|
@@ -271,12 +276,14 @@ const GuxDatepicker = class {
|
|
|
271
276
|
}
|
|
272
277
|
default:
|
|
273
278
|
event.preventDefault();
|
|
274
|
-
this.
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
279
|
+
if (!this.isSelectingRangeWithMouse) {
|
|
280
|
+
this.setIntervalRange({
|
|
281
|
+
selectionStart: this.focusedField.selectionStart,
|
|
282
|
+
selectionEnd: this.focusedField.selectionEnd
|
|
283
|
+
});
|
|
284
|
+
this.updateIntervalValue(event);
|
|
285
|
+
this.setCursorRange();
|
|
286
|
+
}
|
|
280
287
|
break;
|
|
281
288
|
}
|
|
282
289
|
}
|
|
@@ -300,23 +307,9 @@ const GuxDatepicker = class {
|
|
|
300
307
|
}
|
|
301
308
|
}
|
|
302
309
|
}
|
|
303
|
-
onFocusIn(event) {
|
|
304
|
-
if (this.isFocusedFieldEvent(event)) {
|
|
305
|
-
if (!this.isSelectingRange) {
|
|
306
|
-
this.focusedField = this.getInputFieldFromEvent(event);
|
|
307
|
-
this.setRange();
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
onFocusOut(event) {
|
|
312
|
-
const composedPath = event.composedPath();
|
|
313
|
-
if (!composedPath.includes(this.root)) {
|
|
314
|
-
this.lastIntervalRange = getIntervalRange(this.format, getIntervalLetter(this.format, 0));
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
310
|
onMouseDown(event) {
|
|
318
|
-
if (this.
|
|
319
|
-
this.
|
|
311
|
+
if (this.isInputFieldEvent(event)) {
|
|
312
|
+
this.isSelectingRangeWithMouse = true;
|
|
320
313
|
}
|
|
321
314
|
const composedPath = event.composedPath();
|
|
322
315
|
const inDatepicker = composedPath.includes(this.datepickerElement);
|
|
@@ -325,22 +318,35 @@ const GuxDatepicker = class {
|
|
|
325
318
|
this.active = inDatepicker;
|
|
326
319
|
}
|
|
327
320
|
}
|
|
328
|
-
onMouseUp(event) {
|
|
329
|
-
event.preventDefault();
|
|
330
|
-
if (this.isSelectingRange && this.isFocusedFieldEvent(event)) {
|
|
331
|
-
this.focusedField = this.getInputFieldFromEvent(event);
|
|
332
|
-
this.lastIntervalRange = getIntervalRange(this.format, getIntervalLetter(this.format, this.focusedField.selectionStart));
|
|
333
|
-
this.setRange();
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
321
|
onClickOutside() {
|
|
337
322
|
this.active = false;
|
|
338
323
|
}
|
|
339
|
-
|
|
324
|
+
/********* Event Handlers **********/
|
|
325
|
+
onInputFocusIn(event) {
|
|
326
|
+
this.focusedField = this.getInputFieldFromEvent(event);
|
|
327
|
+
if (!this.isSelectingRangeWithMouse) {
|
|
328
|
+
// When focusing the input the Safari browser will fight for control of the cursor unless it is done asynchronously
|
|
329
|
+
setTimeout(() => this.setRange());
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
onInputFocusOut() {
|
|
333
|
+
this.lastIntervalRange = this.initialIntervalRange;
|
|
334
|
+
}
|
|
335
|
+
onInputMouseUp(event) {
|
|
336
|
+
event.preventDefault();
|
|
337
|
+
this.lastIntervalRange = getIntervalRange(this.format, getIntervalLetter(this.format, this.focusedField.selectionStart));
|
|
338
|
+
this.setRange();
|
|
339
|
+
this.isSelectingRangeWithMouse = false;
|
|
340
|
+
}
|
|
341
|
+
/******** Other Methods **********/
|
|
342
|
+
isInputFieldEvent(event) {
|
|
340
343
|
const composedPath = event.composedPath();
|
|
341
344
|
return (composedPath.includes(this.inputElement) ||
|
|
342
345
|
composedPath.includes(this.toInputElement));
|
|
343
346
|
}
|
|
347
|
+
get initialIntervalRange() {
|
|
348
|
+
return getIntervalRange(this.format, getIntervalLetter(this.format, 0));
|
|
349
|
+
}
|
|
344
350
|
getInputFieldFromEvent(event) {
|
|
345
351
|
const composedPath = event.composedPath();
|
|
346
352
|
return composedPath[0];
|
|
@@ -380,9 +386,9 @@ const GuxDatepicker = class {
|
|
|
380
386
|
]);
|
|
381
387
|
}
|
|
382
388
|
stringToDate(stringDate) {
|
|
383
|
-
const
|
|
384
|
-
const formatItems = this.format.toLowerCase().split(
|
|
385
|
-
const dateItems = stringDate.split(
|
|
389
|
+
const formatSeparator = getFormatSeparator(this.format);
|
|
390
|
+
const formatItems = this.format.toLowerCase().split(formatSeparator);
|
|
391
|
+
const dateItems = stringDate.split(formatSeparator);
|
|
386
392
|
const year = parseInt(dateItems[formatItems.indexOf(this.yearFormat)], 10);
|
|
387
393
|
const month = parseInt(dateItems[formatItems.indexOf('mm')], 10) - 1;
|
|
388
394
|
const day = parseInt(dateItems[formatItems.indexOf('dd')], 10);
|
|
@@ -400,9 +406,9 @@ const GuxDatepicker = class {
|
|
|
400
406
|
inputEvent.stopPropagation(); // Don't let both events bubble.
|
|
401
407
|
this.input.emit(this.value);
|
|
402
408
|
this.updateDate();
|
|
403
|
-
this.inputElement.value = this.
|
|
409
|
+
this.inputElement.value = this.formattedValue;
|
|
404
410
|
if (this.mode === "range" /* Range */) {
|
|
405
|
-
this.toInputElement.value = this.
|
|
411
|
+
this.toInputElement.value = this.toFormattedValue;
|
|
406
412
|
}
|
|
407
413
|
if (document.activeElement !== this.inputElement ||
|
|
408
414
|
document.activeElement !== this.toInputElement) {
|
|
@@ -426,7 +432,6 @@ const GuxDatepicker = class {
|
|
|
426
432
|
this.input.emit(this.value);
|
|
427
433
|
}
|
|
428
434
|
setRange() {
|
|
429
|
-
this.isSelectingRange = false;
|
|
430
435
|
this.setIntervalRange(this.lastIntervalRange);
|
|
431
436
|
this.setCursorRange();
|
|
432
437
|
}
|
|
@@ -488,24 +493,29 @@ const GuxDatepicker = class {
|
|
|
488
493
|
if (this.mode === "range" /* Range */) {
|
|
489
494
|
const [from, to] = fromIsoDateRange(this.value);
|
|
490
495
|
const { map: map1, regexp: regexp1 } = this.getMapAndRegexFromField(from);
|
|
491
|
-
this.
|
|
496
|
+
this.formattedValue = this.format.replace(regexp1, match => {
|
|
492
497
|
return map1[match];
|
|
493
498
|
});
|
|
494
499
|
const { map: map2, regexp: regexp2 } = this.getMapAndRegexFromField(to);
|
|
495
|
-
this.
|
|
500
|
+
this.toFormattedValue = this.format.replace(regexp2, match => {
|
|
496
501
|
return map2[match];
|
|
497
502
|
});
|
|
498
503
|
}
|
|
499
504
|
else {
|
|
500
505
|
const dateValue = fromIsoDate(this.value);
|
|
501
506
|
const { map: map3, regexp: regexp3 } = this.getMapAndRegexFromField(dateValue);
|
|
502
|
-
this.
|
|
507
|
+
this.formattedValue = this.format.replace(regexp3, match => {
|
|
503
508
|
return map3[match];
|
|
504
509
|
});
|
|
505
510
|
}
|
|
506
511
|
}
|
|
512
|
+
/** Selects a range of the input text based on the intervalRange property. */
|
|
507
513
|
setCursorRange() {
|
|
508
514
|
if (this.intervalRange) {
|
|
515
|
+
// If the selection is the same as what you are trying to set, setSelectionRange will deselect it.
|
|
516
|
+
// To prevent this, the line below sets the selection to the full field before setting the range we actually want.
|
|
517
|
+
this.focusedField.setSelectionRange(0, 100);
|
|
518
|
+
// Select the range we want
|
|
509
519
|
this.focusedField.setSelectionRange(this.intervalRange.selectionStart, this.intervalRange.selectionEnd);
|
|
510
520
|
}
|
|
511
521
|
}
|
|
@@ -578,9 +588,9 @@ const GuxDatepicker = class {
|
|
|
578
588
|
this.numberOfMonths = 2;
|
|
579
589
|
}
|
|
580
590
|
}
|
|
591
|
+
this.updateDate();
|
|
581
592
|
}
|
|
582
593
|
componentDidLoad() {
|
|
583
|
-
this.updateDate();
|
|
584
594
|
this.popperInstance = createPopper(this.datepickerElement, this.calendarElement, {
|
|
585
595
|
modifiers: [
|
|
586
596
|
{
|
|
@@ -594,28 +604,30 @@ const GuxDatepicker = class {
|
|
|
594
604
|
});
|
|
595
605
|
}
|
|
596
606
|
componentDidUpdate() {
|
|
597
|
-
|
|
607
|
+
var _a;
|
|
608
|
+
(_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.forceUpdate();
|
|
598
609
|
}
|
|
599
610
|
disconnectedCallback() {
|
|
600
|
-
|
|
611
|
+
var _a;
|
|
612
|
+
(_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
601
613
|
}
|
|
602
614
|
renderCalendarToggleButton() {
|
|
603
615
|
return (h("button", { class: "gux-calendar-toggle-button", type: "button", onClick: () => this.toggleCalendar(), "aria-expanded": this.active.toString(), "aria-label": this.i18n('toggleCalendar'), disabled: this.disabled }, h("gux-icon", { decorative: true, "icon-name": "calendar" })));
|
|
604
616
|
}
|
|
605
617
|
renderCalendar() {
|
|
606
|
-
return (h("gux-calendar", { ref: (el) => (this.calendarElement = el), value: this.value, mode: this.mode, onInput: (event) => this.onCalendarSelect(event), minDate: this.minDate, maxDate: this.maxDate, numberOfMonths: this.numberOfMonths }));
|
|
618
|
+
return (h("gux-calendar", { tabIndex: -1, ref: (el) => (this.calendarElement = el), value: this.value, mode: this.mode, onInput: (event) => this.onCalendarSelect(event), minDate: this.minDate, maxDate: this.maxDate, numberOfMonths: this.numberOfMonths }));
|
|
607
619
|
}
|
|
608
620
|
renderStartDateField() {
|
|
609
621
|
return (h("div", { class: "gux-datepicker-field" }, h("label", { htmlFor: this.startInputId, class: {
|
|
610
622
|
'gux-datepicker-field-label': true,
|
|
611
623
|
'gux-sr-only': this.mode === "single" /* Single */ && !this.label
|
|
612
|
-
} }, this.getCalendarLabels()[0]), h("div", { class: "gux-datepicker-field-input" }, h("div", { class: "gux-datepicker-field-text-input" }, h("input", { id: this.startInputId, type: "text", ref: (el) => (this.inputElement = el), value: this.
|
|
624
|
+
} }, this.getCalendarLabels()[0]), h("div", { class: "gux-datepicker-field-input" }, h("div", { class: "gux-datepicker-field-text-input" }, h("input", { id: this.startInputId, type: "text", onClick: e => this.onInputMouseUp(e), onFocusin: e => this.onInputFocusIn(e), onFocusout: () => this.onInputFocusOut(), ref: (el) => (this.inputElement = el), value: this.formattedValue, disabled: this.disabled }), this.renderCalendarToggleButton()), this.renderCalendar())));
|
|
613
625
|
}
|
|
614
626
|
renderEndDateField() {
|
|
615
627
|
if (this.mode === "single" /* Single */) {
|
|
616
628
|
return null;
|
|
617
629
|
}
|
|
618
|
-
return (h("div", { class: "gux-datepicker-field" }, h("label", { htmlFor: this.endInputId, class: "gux-datepicker-field-label" }, this.getCalendarLabels()[1]), h("div", { class: "gux-datepicker-field-input" }, h("div", { class: "gux-datepicker-field-text-input" }, h("input", { id: this.endInputId, type: "text", ref: (el) => (this.toInputElement = el), value: this.
|
|
630
|
+
return (h("div", { class: "gux-datepicker-field" }, h("label", { htmlFor: this.endInputId, class: "gux-datepicker-field-label" }, this.getCalendarLabels()[1]), h("div", { class: "gux-datepicker-field-input" }, h("div", { class: "gux-datepicker-field-text-input" }, h("input", { id: this.endInputId, type: "text", ref: (el) => (this.toInputElement = el), onMouseUp: e => this.onInputMouseUp(e), onFocusin: e => this.onInputFocusIn(e), onFocusout: () => this.onInputFocusOut(), value: this.toFormattedValue, disabled: this.disabled }), this.renderCalendarToggleButton()))));
|
|
619
631
|
}
|
|
620
632
|
render() {
|
|
621
633
|
return (h("div", { class: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-74e605ae.js';
|
|
2
2
|
import { r as randomHTMLId } from './random-html-id-8e3f658c.js';
|
|
3
|
-
import { t as trackComponent } from './usage-tracking-
|
|
3
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
4
4
|
import { b as buildI18nForComponent } from './index-b8a25b60.js';
|
|
5
5
|
import './get-closest-element-1597503c.js';
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-74e605ae.js';
|
|
2
|
-
import { t as trackComponent } from './usage-tracking-
|
|
2
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
3
3
|
import { b as buildI18nForComponent } from './index-b8a25b60.js';
|
|
4
4
|
import './get-closest-element-1597503c.js';
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-74e605ae.js';
|
|
2
2
|
import { O as OnClickOutside } from './on-click-outside-36dcc9e4.js';
|
|
3
3
|
import { w as whenEventIsFrom } from './when-event-is-from-18667084.js';
|
|
4
|
-
import { t as trackComponent } from './usage-tracking-
|
|
4
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
5
5
|
import { O as OnMutation } from './on-mutation-26225065.js';
|
|
6
6
|
|
|
7
7
|
const guxDropdownCss = "gux-dropdown-legacy .gux-hidden{display:none}gux-dropdown-legacy div.gux-dropdown{position:relative;margin:4px 0}gux-dropdown-legacy div.gux-dropdown.gux-disabled{pointer-events:none;cursor:default;opacity:0.5}gux-dropdown-legacy div.gux-dropdown .gux-select-field{position:relative;width:100%;height:32px}gux-dropdown-legacy div.gux-dropdown .gux-select-field .gux-filter-suggestion{position:absolute;box-sizing:border-box;width:100%;height:32px;padding:6px 25px 6px 14px;overflow:hidden;font-size:12px;line-height:1.6667;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}gux-dropdown-legacy div.gux-dropdown .gux-select-field .gux-filter-suggestion .gux-filter-text{color:#2e394c}gux-dropdown-legacy div.gux-dropdown .gux-select-field .gux-filter-suggestion .gux-filter-typeahead{color:#596373}gux-dropdown-legacy div.gux-dropdown .gux-select-field gux-input-text-like>div{margin:0}gux-dropdown-legacy div.gux-dropdown .gux-select-field gux-input-text-like input{width:100%;padding-right:25px;font-size:12px;text-overflow:ellipsis;cursor:pointer;background-color:transparent}gux-dropdown-legacy div.gux-dropdown .gux-select-field gux-input-text-like.gux-unclearable button{display:none}gux-dropdown-legacy div.gux-dropdown .gux-select-field button.gux-dropdown-indicator{position:absolute;top:1px;right:3px;bottom:0;display:block;overflow:hidden;pointer-events:none;cursor:pointer;background:none;border:none;outline:none}gux-dropdown-legacy div.gux-dropdown .gux-select-field button.gux-dropdown-indicator gux-icon{width:16px;height:16px;color:#596373}gux-dropdown-legacy div.gux-dropdown .gux-select-field:hover button.gux-dropdown-indicator gux-icon,gux-dropdown-legacy div.gux-dropdown .gux-select-field:focus-within button.gux-dropdown-indicator gux-icon{color:#2e394c}gux-dropdown-legacy div.gux-dropdown .gux-options{position:absolute;z-index:var(--gux-zindex-popup, 1);display:none;width:100%;padding:8px 0;margin-top:2px;overflow-y:auto;color:#2e394c;background:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}gux-dropdown-legacy div.gux-dropdown .gux-options.gux-opened{display:block}gux-dropdown-legacy div.gux-dropdown .gux-options>gux-option-legacy{position:relative;display:flex;height:32px;padding:0 16px;line-height:32px;cursor:pointer}gux-dropdown-legacy div.gux-dropdown .gux-options>gux-option-legacy>div{position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}gux-dropdown-legacy div.gux-dropdown .gux-options>gux-option-legacy>div .gux-filter-suggestion{position:absolute}gux-dropdown-legacy div.gux-dropdown .gux-options>gux-option-legacy[disabled]{pointer-events:none;cursor:default;opacity:0.5}gux-dropdown-legacy div.gux-dropdown .gux-options>gux-option-legacy.gux-filtered{display:none}gux-dropdown-legacy div.gux-dropdown .gux-options>gux-option-legacy:not([disabled])[selected]{color:#2e394c;background:#deeaff}gux-dropdown-legacy div.gux-dropdown .gux-options>gux-option-legacy:not([disabled]):hover,gux-dropdown-legacy div.gux-dropdown .gux-options>gux-option-legacy:not([disabled]):focus{color:#fdfdfd;background:#2a60c8}gux-dropdown-legacy div.gux-dropdown.gux-page .gux-select-field{height:48px}gux-dropdown-legacy div.gux-dropdown.gux-page .gux-select-field .gux-filter-suggestion{height:48px;padding:2px 25px 4px 11px;overflow:hidden;line-height:1.6667;white-space:nowrap;font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:24px;line-height:32px}gux-dropdown-legacy div.gux-dropdown.gux-page .gux-select-field gux-input-text-like div.gux-input-container{height:48px}gux-dropdown-legacy div.gux-dropdown.gux-page .gux-select-field gux-input-text-like input{font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:24px;line-height:32px;height:48px;line-height:1.6667;color:transparent;border:none;border-bottom:2px solid transparent;caret-color:#2e394c}gux-dropdown-legacy div.gux-dropdown.gux-page .gux-select-field gux-input-text-like input:focus{border:none;border-bottom:2px solid rgba(117, 168, 255, 0.5);box-shadow:none}gux-dropdown-legacy div.gux-dropdown.gux-page.gux-active .gux-select-field gux-input-text-like input:focus{border-bottom:1px solid #2a60c8}gux-dropdown-legacy div.gux-dropdown.gux-palette .gux-select-field{height:52px}gux-dropdown-legacy div.gux-dropdown.gux-palette .gux-select-field .gux-filter-suggestion{height:52px;padding:9px 25px 4px 11px;overflow:hidden;line-height:1.6667;white-space:nowrap;font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}gux-dropdown-legacy div.gux-dropdown.gux-palette .gux-select-field gux-input-text-like div.gux-input-container{height:52px}gux-dropdown-legacy div.gux-dropdown.gux-palette .gux-select-field gux-input-text-like input{font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px;height:52px;line-height:1.6667;border:none;border-bottom:2px solid transparent}gux-dropdown-legacy div.gux-dropdown.gux-palette .gux-select-field gux-input-text-like input:focus{border:none;border-bottom:2px solid rgba(117, 168, 255, 0.5);box-shadow:none}gux-dropdown-legacy div.gux-dropdown.gux-palette.gux-active .gux-select-field gux-input-text-like input:focus{border-bottom:1px solid #2a60c8}gux-dropdown-legacy:hover gux-icon,gux-dropdown-legacy:focus gux-icon{color:#2e394c}.gux-dropdown-light-theme div.gux-dropdown .gux-select-field .gux-filter-suggestion{color:#596373}.gux-dropdown-light-theme div.gux-dropdown .gux-select-field gux-input-text-like input{color:transparent;caret-color:#2e394c;border-color:#6b7585}.gux-dropdown-light-theme div.gux-dropdown .gux-select-field button.gux-dropdown-indicator{color:#596373}.gux-dropdown-light-theme div.gux-dropdown.gux-page .gux-select-field .gux-filter-suggestion{color:#8a97ad;background-color:#fdfdfd}.gux-dropdown-light-theme div.gux-dropdown.gux-page .gux-select-field gux-input-text-like input{border-bottom:1px solid #6b7585}.gux-dropdown-light-theme div.gux-dropdown.gux-page.gux-active gux-input-text-like input{border-bottom:1px solid #75a8ff}.gux-dropdown-light-theme div.gux-dropdown.gux-palette .gux-select-field .gux-filter-suggestion{color:#8a97ad;background-color:#fdfdfd}.gux-dropdown-light-theme div.gux-dropdown.gux-palette .gux-select-field gux-input-text-like input{border-bottom:1px solid #6b7585}.gux-dropdown-light-theme div.gux-dropdown.gux-palette.gux-active gux-input-text-like input{border-bottom:1px solid #75a8ff}gux-dropdown-legacy div.gux-dropdown .gux-select-field .gux-filter-suggestion{color:#596373}gux-dropdown-legacy div.gux-dropdown .gux-select-field gux-input-text-like input{color:transparent;caret-color:#2e394c;border-color:#6b7585}gux-dropdown-legacy div.gux-dropdown .gux-select-field button.gux-dropdown-indicator{color:#596373}gux-dropdown-legacy div.gux-dropdown.gux-page .gux-select-field .gux-filter-suggestion{color:#8a97ad;background-color:#fdfdfd}gux-dropdown-legacy div.gux-dropdown.gux-page .gux-select-field gux-input-text-like input{border-bottom:1px solid #6b7585}gux-dropdown-legacy div.gux-dropdown.gux-page.gux-active gux-input-text-like input{border-bottom:1px solid #75a8ff}gux-dropdown-legacy div.gux-dropdown.gux-palette .gux-select-field .gux-filter-suggestion{color:#8a97ad;background-color:#fdfdfd}gux-dropdown-legacy div.gux-dropdown.gux-palette .gux-select-field gux-input-text-like input{border-bottom:1px solid #6b7585}gux-dropdown-legacy div.gux-dropdown.gux-palette.gux-active gux-input-text-like input{border-bottom:1px solid #75a8ff}";
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, f as forceUpdate, h, g as getElement } from './i
|
|
|
2
2
|
import { O as OnClickOutside } from './on-click-outside-36dcc9e4.js';
|
|
3
3
|
import { b as buildI18nForComponent } from './index-b8a25b60.js';
|
|
4
4
|
import { s as simulateNativeEvent } from './simulate-native-event-ac69961f.js';
|
|
5
|
-
import { t as trackComponent } from './usage-tracking-
|
|
5
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
6
6
|
import { g as getSearchOption } from './gux-listbox.service-3541a2f7.js';
|
|
7
7
|
import './get-closest-element-1597503c.js';
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@ import { O as OnClickOutside } from './on-click-outside-36dcc9e4.js';
|
|
|
3
3
|
import { b as buildI18nForComponent } from './index-b8a25b60.js';
|
|
4
4
|
import { s as simulateNativeEvent } from './simulate-native-event-ac69961f.js';
|
|
5
5
|
import { o as onInputDisabledStateChange, c as calculateInputDisabledState } from './on-input-disabled-state-change-3ea76372.js';
|
|
6
|
-
import { t as trackComponent } from './usage-tracking-
|
|
6
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
7
7
|
import { g as getSearchOption, s as setInitialActiveOption, c as clearActiveOptions, a as setLastOptionActive, b as setFirstOptionActive, h as hasPreviousOption, d as setPreviousOptionActive, e as hasNextOption, f as setNextOptionActive, i as actOnActiveOption, j as goToOption, o as onClickedOption } from './gux-listbox.service-3541a2f7.js';
|
|
8
8
|
import { w as whenEventIsFrom } from './when-event-is-from-18667084.js';
|
|
9
9
|
import { r as randomHTMLId } from './random-html-id-8e3f658c.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-74e605ae.js';
|
|
2
|
-
import { t as trackComponent } from './usage-tracking-
|
|
2
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
3
3
|
|
|
4
4
|
const guxErrorMessageBetaCss = ".gux-container{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;font-size:11px;color:#2e394c}.gux-container gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin:0 4px;color:#ea0b0b}.gux-container .gux-message{flex:0 1 auto;align-self:auto;order:0}";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-74e605ae.js';
|
|
2
|
-
import { t as trackComponent } from './usage-tracking-
|
|
2
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
3
3
|
import { m as moveFocusDelay, h as hideDelay } from './gux-menu.common-60ab04e4.js';
|
|
4
4
|
import { c as createPopper } from './popper-f860750c.js';
|
|
5
5
|
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-74
|
|
|
2
2
|
import { c as calculateInputDisabledState, o as onInputDisabledStateChange } from './on-input-disabled-state-change-3ea76372.js';
|
|
3
3
|
import { O as OnMutation } from './on-mutation-26225065.js';
|
|
4
4
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
5
|
-
import { t as trackComponent } from './usage-tracking-
|
|
5
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
6
6
|
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds } from './gux-form-field.service-debdaed0.js';
|
|
7
7
|
import './random-html-id-8e3f658c.js';
|
|
8
8
|
import './log-error-b1a1a086.js';
|
|
@@ -3,7 +3,7 @@ import { c as calculateInputDisabledState, o as onInputDisabledStateChange } fro
|
|
|
3
3
|
import { O as OnMutation } from './on-mutation-26225065.js';
|
|
4
4
|
import { a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
5
5
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
6
|
-
import { t as trackComponent } from './usage-tracking-
|
|
6
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
7
7
|
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-92550ff3.js';
|
|
8
8
|
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-debdaed0.js';
|
|
9
9
|
import './random-html-id-8e3f658c.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, g as getElement } from './index-74e605ae.js';
|
|
|
2
2
|
import { c as calculateInputDisabledState, o as onInputDisabledStateChange } from './on-input-disabled-state-change-3ea76372.js';
|
|
3
3
|
import { O as OnMutation } from './on-mutation-26225065.js';
|
|
4
4
|
import { a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
5
|
-
import { t as trackComponent } from './usage-tracking-
|
|
5
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
6
6
|
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-92550ff3.js';
|
|
7
7
|
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-debdaed0.js';
|
|
8
8
|
import './random-html-id-8e3f658c.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-74e605ae.js';
|
|
2
|
-
import { t as trackComponent } from './usage-tracking-
|
|
2
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
3
3
|
import { b as buildI18nForComponent } from './index-b8a25b60.js';
|
|
4
4
|
import './get-closest-element-1597503c.js';
|
|
5
5
|
|
|
@@ -4,7 +4,7 @@ import { r as randomHTMLId } from './random-html-id-8e3f658c.js';
|
|
|
4
4
|
import { l as logError } from './log-error-b1a1a086.js';
|
|
5
5
|
import { a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
6
6
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
7
|
-
import { t as trackComponent } from './usage-tracking-
|
|
7
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
8
8
|
|
|
9
9
|
const guxFormFieldCss = "gux-form-field-legacy{display:block;color:#2e394c}gux-form-field-legacy .gux-label-and-input-and-error-container{margin:16px 0}gux-form-field-legacy .gux-label-and-input-and-error-container label{font-size:12px;font-weight:bold;line-height:20px}gux-form-field-legacy .gux-label-and-input-and-error-container input,gux-form-field-legacy .gux-label-and-input-and-error-container select{width:100%;font-size:12px}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-container input{overflow:hidden;text-overflow:ellipsis}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error .gux-input-container{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error textarea{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error .gux-input-color-main-element{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-and-error-container{flex-grow:1}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside{display:flex;flex-direction:row}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside .gux-label-container{position:relative;top:7px;width:fit-content;min-width:45px;margin-right:8px}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-range,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-select,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-text-like,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-search{flex:1 1 auto}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-screenreader label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}gux-form-field-legacy .gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}gux-form-field-legacy .gux-error{display:none;margin:4px 0}gux-form-field-legacy .gux-error.gux-show{display:block}";
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ import { c as calculateInputDisabledState, o as onInputDisabledStateChange } fro
|
|
|
4
4
|
import { O as OnMutation } from './on-mutation-26225065.js';
|
|
5
5
|
import { a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
6
6
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
7
|
-
import { t as trackComponent } from './usage-tracking-
|
|
7
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
8
8
|
import { s as setInputValue } from './set-input-value-5adeaccc.js';
|
|
9
9
|
import { s as simulateNativeEvent } from './simulate-native-event-ac69961f.js';
|
|
10
10
|
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-92550ff3.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-74
|
|
|
2
2
|
import { c as calculateInputDisabledState, o as onInputDisabledStateChange } from './on-input-disabled-state-change-3ea76372.js';
|
|
3
3
|
import { O as OnMutation } from './on-mutation-26225065.js';
|
|
4
4
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
5
|
-
import { t as trackComponent } from './usage-tracking-
|
|
5
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
6
6
|
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds } from './gux-form-field.service-debdaed0.js';
|
|
7
7
|
import './random-html-id-8e3f658c.js';
|
|
8
8
|
import './log-error-b1a1a086.js';
|
|
@@ -3,7 +3,7 @@ import { c as calculateInputDisabledState, o as onInputDisabledStateChange } fro
|
|
|
3
3
|
import { O as OnMutation } from './on-mutation-26225065.js';
|
|
4
4
|
import { a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
5
5
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
6
|
-
import { t as trackComponent } from './usage-tracking-
|
|
6
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
7
7
|
import { a as GuxFormFieldContainer, G as GuxFormFieldLabel } from './gux-form-field-label-92550ff3.js';
|
|
8
8
|
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-debdaed0.js';
|
|
9
9
|
import './random-html-id-8e3f658c.js';
|
|
@@ -3,7 +3,7 @@ import { c as calculateInputDisabledState, o as onInputDisabledStateChange } fro
|
|
|
3
3
|
import { O as OnMutation } from './on-mutation-26225065.js';
|
|
4
4
|
import { a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
5
5
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
6
|
-
import { t as trackComponent } from './usage-tracking-
|
|
6
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
7
7
|
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-92550ff3.js';
|
|
8
8
|
import { h as hasErrorSlot, c as clearInput, G as GuxFormFieldError, a as hasContent, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-debdaed0.js';
|
|
9
9
|
import './random-html-id-8e3f658c.js';
|
|
@@ -3,7 +3,7 @@ import { c as calculateInputDisabledState, o as onInputDisabledStateChange } fro
|
|
|
3
3
|
import { O as OnMutation } from './on-mutation-26225065.js';
|
|
4
4
|
import { a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
5
5
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
6
|
-
import { t as trackComponent } from './usage-tracking-
|
|
6
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
7
7
|
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-92550ff3.js';
|
|
8
8
|
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-debdaed0.js';
|
|
9
9
|
import './random-html-id-8e3f658c.js';
|
|
@@ -3,7 +3,7 @@ import { c as calculateInputDisabledState, o as onInputDisabledStateChange } fro
|
|
|
3
3
|
import { O as OnMutation } from './on-mutation-26225065.js';
|
|
4
4
|
import { a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
5
5
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
6
|
-
import { t as trackComponent } from './usage-tracking-
|
|
6
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
7
7
|
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-92550ff3.js';
|
|
8
8
|
import { h as hasErrorSlot, a as hasContent, s as setSlotAriaDescribedby, c as clearInput, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-debdaed0.js';
|
|
9
9
|
import './random-html-id-8e3f658c.js';
|
|
@@ -3,7 +3,7 @@ import { c as calculateInputDisabledState, o as onInputDisabledStateChange } fro
|
|
|
3
3
|
import { O as OnMutation } from './on-mutation-26225065.js';
|
|
4
4
|
import { a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
5
5
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
6
|
-
import { t as trackComponent } from './usage-tracking-
|
|
6
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
7
7
|
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-92550ff3.js';
|
|
8
8
|
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-debdaed0.js';
|
|
9
9
|
import './random-html-id-8e3f658c.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as getAssetPath, r as registerInstance, h, g as getElement } from './index-74e605ae.js';
|
|
2
|
-
import { t as trackComponent } from './usage-tracking-
|
|
2
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
3
3
|
import { l as logError } from './log-error-b1a1a086.js';
|
|
4
4
|
|
|
5
5
|
const iconNameMap = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-74e605ae.js';
|
|
2
|
-
import { t as trackComponent } from './usage-tracking-
|
|
2
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
3
3
|
|
|
4
4
|
const guxListItemCss = ":host:focus .gux-list-item,:host:active .gux-list-item,:host:hover:not([disabled]) .gux-list-item{color:#fdfdfd;background:#2a60c8}:host(:focus) .gux-list-item,:host(:active) .gux-list-item,:host(:hover:not([disabled])) .gux-list-item{color:#fdfdfd;background:#2a60c8}:host([disabled]) .gux-list-item{pointer-events:none;cursor:default;opacity:0.5}.gux-list-item{display:flex;height:max-content;padding:0 16px;line-height:32px;word-wrap:break-word;cursor:pointer}.gux-list-item .gux-text{width:100%}";
|
|
5
5
|
|
|
@@ -1,53 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-74e605ae.js';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const validFocusableItems = ['gux-list-item'];
|
|
5
|
-
function getRootChildren(root) {
|
|
6
|
-
const slot = root.querySelector('slot');
|
|
7
|
-
return slot ? slot.assignedElements() : Array.from(root.children);
|
|
8
|
-
}
|
|
9
|
-
function getGuxListFocusableItems(root) {
|
|
10
|
-
return getRootChildren(root).filter(cv => {
|
|
11
|
-
if (validFocusableItems.includes(cv.tagName.toLowerCase())) {
|
|
12
|
-
return !cv.disabled;
|
|
13
|
-
}
|
|
14
|
-
return false;
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
function getCurrentFocusIndex(root) {
|
|
18
|
-
return getGuxListFocusableItems(root).findIndex(cv => cv.matches(':focus-within'));
|
|
19
|
-
}
|
|
20
|
-
function focusMove(root, delta) {
|
|
21
|
-
const currentFocusIndex = getCurrentFocusIndex(root);
|
|
22
|
-
const maxIndex = getGuxListFocusableItems(root).length;
|
|
23
|
-
focusIndex(root, (currentFocusIndex + delta) % maxIndex);
|
|
24
|
-
}
|
|
25
|
-
function focusIndex(root, focusIndex) {
|
|
26
|
-
var _a;
|
|
27
|
-
const items = getGuxListFocusableItems(root);
|
|
28
|
-
while (focusIndex < 0) {
|
|
29
|
-
focusIndex += items.length;
|
|
30
|
-
}
|
|
31
|
-
(_a = items[focusIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
32
|
-
}
|
|
33
|
-
function getLastChildIndex(root) {
|
|
34
|
-
return getGuxListFocusableItems(root).length - 1;
|
|
35
|
-
}
|
|
36
|
-
function first(root) {
|
|
37
|
-
focusIndex(root, 0);
|
|
38
|
-
}
|
|
39
|
-
function last(root) {
|
|
40
|
-
focusIndex(root, getLastChildIndex(root));
|
|
41
|
-
}
|
|
42
|
-
function next(root) {
|
|
43
|
-
focusMove(root, 1);
|
|
44
|
-
}
|
|
45
|
-
function previous(root) {
|
|
46
|
-
focusMove(root, -1);
|
|
47
|
-
}
|
|
2
|
+
import { l as last, n as next, f as first, p as previous } from './gux-list.service-66b8540f.js';
|
|
3
|
+
import { t as trackComponent } from './usage-tracking-3a58b2cb.js';
|
|
48
4
|
|
|
49
5
|
const guxListCss = ":host{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start}";
|
|
50
6
|
|
|
7
|
+
const validFocusableItems = ['gux-list-item'];
|
|
51
8
|
const GuxList = class {
|
|
52
9
|
constructor(hostRef) {
|
|
53
10
|
registerInstance(this, hostRef);
|
|
@@ -59,25 +16,25 @@ const GuxList = class {
|
|
|
59
16
|
switch (event.key) {
|
|
60
17
|
case 'ArrowUp':
|
|
61
18
|
event.preventDefault();
|
|
62
|
-
previous(this.root);
|
|
19
|
+
previous(this.root, validFocusableItems);
|
|
63
20
|
break;
|
|
64
21
|
case 'Home':
|
|
65
22
|
event.preventDefault();
|
|
66
|
-
first(this.root);
|
|
23
|
+
first(this.root, validFocusableItems);
|
|
67
24
|
break;
|
|
68
25
|
case 'ArrowDown':
|
|
69
26
|
event.preventDefault();
|
|
70
|
-
next(this.root);
|
|
27
|
+
next(this.root, validFocusableItems);
|
|
71
28
|
break;
|
|
72
29
|
case 'End':
|
|
73
30
|
event.preventDefault();
|
|
74
|
-
last(this.root);
|
|
31
|
+
last(this.root, validFocusableItems);
|
|
75
32
|
break;
|
|
76
33
|
}
|
|
77
34
|
}
|
|
78
35
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
79
36
|
async guxFocusFirstItem() {
|
|
80
|
-
first(this.root);
|
|
37
|
+
first(this.root, validFocusableItems);
|
|
81
38
|
}
|
|
82
39
|
renderFocusTarget() {
|
|
83
40
|
return (h("span", { tabindex: "-1" }));
|