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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-262c2e3a.js');
|
|
6
|
-
const usageTracking = require('./usage-tracking-
|
|
6
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
7
7
|
const randomHtmlId = require('./random-html-id-b86b61c0.js');
|
|
8
8
|
const index$1 = require('./index-13101536.js');
|
|
9
9
|
const isoDates = require('./iso-dates-f78ffb80.js');
|
|
@@ -143,7 +143,7 @@ function getIntervalRange(format, intervalLetter) {
|
|
|
143
143
|
return { selectionStart, selectionEnd };
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
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}";
|
|
146
|
+
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}";
|
|
147
147
|
|
|
148
148
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
149
149
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -160,13 +160,16 @@ const GuxDatepicker = class {
|
|
|
160
160
|
index.registerInstance(this, hostRef);
|
|
161
161
|
this.input = index.createEvent(this, "input", 7);
|
|
162
162
|
this.yearFormat = 'yyyy';
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
/**
|
|
164
|
+
* Indicates if the user is selecting the range with the mouse.
|
|
165
|
+
* This prevents other events from processing on the input range.
|
|
166
|
+
*/
|
|
167
|
+
this.isSelectingRangeWithMouse = false;
|
|
165
168
|
this.lastYear = new Date().getFullYear();
|
|
166
169
|
this.startInputId = randomHtmlId.randomHTMLId('gux-datepicker');
|
|
167
170
|
this.endInputId = randomHtmlId.randomHTMLId('gux-datepicker');
|
|
168
171
|
/**
|
|
169
|
-
* The datepicker label (can be a single label, or two
|
|
172
|
+
* The datepicker label (can be a single label, or two separated by a comma if it's a range datepicker)
|
|
170
173
|
*/
|
|
171
174
|
this.label = '';
|
|
172
175
|
/**
|
|
@@ -196,11 +199,14 @@ const GuxDatepicker = class {
|
|
|
196
199
|
/**
|
|
197
200
|
* The datepicker current value
|
|
198
201
|
*/
|
|
199
|
-
this.
|
|
202
|
+
this.formattedValue = '';
|
|
200
203
|
/**
|
|
201
204
|
* The datepicker current value
|
|
202
205
|
*/
|
|
203
|
-
this.
|
|
206
|
+
this.toFormattedValue = '';
|
|
207
|
+
/**
|
|
208
|
+
* Uses styling to control visibility of the calendar element
|
|
209
|
+
*/
|
|
204
210
|
this.active = false;
|
|
205
211
|
}
|
|
206
212
|
watchValue() {
|
|
@@ -227,7 +233,7 @@ const GuxDatepicker = class {
|
|
|
227
233
|
this.yearFormat = 'yy';
|
|
228
234
|
}
|
|
229
235
|
this.intervalOrder = getIntervalOrder(newFormat);
|
|
230
|
-
this.lastIntervalRange =
|
|
236
|
+
this.lastIntervalRange = this.initialIntervalRange;
|
|
231
237
|
}
|
|
232
238
|
watchActiveCalendar(active) {
|
|
233
239
|
if (active === true) {
|
|
@@ -237,7 +243,7 @@ const GuxDatepicker = class {
|
|
|
237
243
|
}
|
|
238
244
|
}
|
|
239
245
|
onKeyDown(event) {
|
|
240
|
-
if (this.
|
|
246
|
+
if (this.isInputFieldEvent(event)) {
|
|
241
247
|
this.focusedField = this.getInputFieldFromEvent(event);
|
|
242
248
|
switch (event.key) {
|
|
243
249
|
case 'Enter':
|
|
@@ -246,8 +252,7 @@ const GuxDatepicker = class {
|
|
|
246
252
|
this.active = false;
|
|
247
253
|
break;
|
|
248
254
|
case 'Tab':
|
|
249
|
-
|
|
250
|
-
this.setRange();
|
|
255
|
+
// Allow default behavior of tabbing to the next element - the calendar toggle button
|
|
251
256
|
break;
|
|
252
257
|
case 'ArrowDown':
|
|
253
258
|
event.preventDefault();
|
|
@@ -275,12 +280,14 @@ const GuxDatepicker = class {
|
|
|
275
280
|
}
|
|
276
281
|
default:
|
|
277
282
|
event.preventDefault();
|
|
278
|
-
this.
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
283
|
+
if (!this.isSelectingRangeWithMouse) {
|
|
284
|
+
this.setIntervalRange({
|
|
285
|
+
selectionStart: this.focusedField.selectionStart,
|
|
286
|
+
selectionEnd: this.focusedField.selectionEnd
|
|
287
|
+
});
|
|
288
|
+
this.updateIntervalValue(event);
|
|
289
|
+
this.setCursorRange();
|
|
290
|
+
}
|
|
284
291
|
break;
|
|
285
292
|
}
|
|
286
293
|
}
|
|
@@ -304,23 +311,9 @@ const GuxDatepicker = class {
|
|
|
304
311
|
}
|
|
305
312
|
}
|
|
306
313
|
}
|
|
307
|
-
onFocusIn(event) {
|
|
308
|
-
if (this.isFocusedFieldEvent(event)) {
|
|
309
|
-
if (!this.isSelectingRange) {
|
|
310
|
-
this.focusedField = this.getInputFieldFromEvent(event);
|
|
311
|
-
this.setRange();
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
onFocusOut(event) {
|
|
316
|
-
const composedPath = event.composedPath();
|
|
317
|
-
if (!composedPath.includes(this.root)) {
|
|
318
|
-
this.lastIntervalRange = getIntervalRange(this.format, getIntervalLetter(this.format, 0));
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
314
|
onMouseDown(event) {
|
|
322
|
-
if (this.
|
|
323
|
-
this.
|
|
315
|
+
if (this.isInputFieldEvent(event)) {
|
|
316
|
+
this.isSelectingRangeWithMouse = true;
|
|
324
317
|
}
|
|
325
318
|
const composedPath = event.composedPath();
|
|
326
319
|
const inDatepicker = composedPath.includes(this.datepickerElement);
|
|
@@ -329,22 +322,35 @@ const GuxDatepicker = class {
|
|
|
329
322
|
this.active = inDatepicker;
|
|
330
323
|
}
|
|
331
324
|
}
|
|
332
|
-
onMouseUp(event) {
|
|
333
|
-
event.preventDefault();
|
|
334
|
-
if (this.isSelectingRange && this.isFocusedFieldEvent(event)) {
|
|
335
|
-
this.focusedField = this.getInputFieldFromEvent(event);
|
|
336
|
-
this.lastIntervalRange = getIntervalRange(this.format, getIntervalLetter(this.format, this.focusedField.selectionStart));
|
|
337
|
-
this.setRange();
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
325
|
onClickOutside() {
|
|
341
326
|
this.active = false;
|
|
342
327
|
}
|
|
343
|
-
|
|
328
|
+
/********* Event Handlers **********/
|
|
329
|
+
onInputFocusIn(event) {
|
|
330
|
+
this.focusedField = this.getInputFieldFromEvent(event);
|
|
331
|
+
if (!this.isSelectingRangeWithMouse) {
|
|
332
|
+
// When focusing the input the Safari browser will fight for control of the cursor unless it is done asynchronously
|
|
333
|
+
setTimeout(() => this.setRange());
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
onInputFocusOut() {
|
|
337
|
+
this.lastIntervalRange = this.initialIntervalRange;
|
|
338
|
+
}
|
|
339
|
+
onInputMouseUp(event) {
|
|
340
|
+
event.preventDefault();
|
|
341
|
+
this.lastIntervalRange = getIntervalRange(this.format, getIntervalLetter(this.format, this.focusedField.selectionStart));
|
|
342
|
+
this.setRange();
|
|
343
|
+
this.isSelectingRangeWithMouse = false;
|
|
344
|
+
}
|
|
345
|
+
/******** Other Methods **********/
|
|
346
|
+
isInputFieldEvent(event) {
|
|
344
347
|
const composedPath = event.composedPath();
|
|
345
348
|
return (composedPath.includes(this.inputElement) ||
|
|
346
349
|
composedPath.includes(this.toInputElement));
|
|
347
350
|
}
|
|
351
|
+
get initialIntervalRange() {
|
|
352
|
+
return getIntervalRange(this.format, getIntervalLetter(this.format, 0));
|
|
353
|
+
}
|
|
348
354
|
getInputFieldFromEvent(event) {
|
|
349
355
|
const composedPath = event.composedPath();
|
|
350
356
|
return composedPath[0];
|
|
@@ -384,9 +390,9 @@ const GuxDatepicker = class {
|
|
|
384
390
|
]);
|
|
385
391
|
}
|
|
386
392
|
stringToDate(stringDate) {
|
|
387
|
-
const
|
|
388
|
-
const formatItems = this.format.toLowerCase().split(
|
|
389
|
-
const dateItems = stringDate.split(
|
|
393
|
+
const formatSeparator = getFormatSeparator(this.format);
|
|
394
|
+
const formatItems = this.format.toLowerCase().split(formatSeparator);
|
|
395
|
+
const dateItems = stringDate.split(formatSeparator);
|
|
390
396
|
const year = parseInt(dateItems[formatItems.indexOf(this.yearFormat)], 10);
|
|
391
397
|
const month = parseInt(dateItems[formatItems.indexOf('mm')], 10) - 1;
|
|
392
398
|
const day = parseInt(dateItems[formatItems.indexOf('dd')], 10);
|
|
@@ -404,9 +410,9 @@ const GuxDatepicker = class {
|
|
|
404
410
|
inputEvent.stopPropagation(); // Don't let both events bubble.
|
|
405
411
|
this.input.emit(this.value);
|
|
406
412
|
this.updateDate();
|
|
407
|
-
this.inputElement.value = this.
|
|
413
|
+
this.inputElement.value = this.formattedValue;
|
|
408
414
|
if (this.mode === "range" /* Range */) {
|
|
409
|
-
this.toInputElement.value = this.
|
|
415
|
+
this.toInputElement.value = this.toFormattedValue;
|
|
410
416
|
}
|
|
411
417
|
if (document.activeElement !== this.inputElement ||
|
|
412
418
|
document.activeElement !== this.toInputElement) {
|
|
@@ -430,7 +436,6 @@ const GuxDatepicker = class {
|
|
|
430
436
|
this.input.emit(this.value);
|
|
431
437
|
}
|
|
432
438
|
setRange() {
|
|
433
|
-
this.isSelectingRange = false;
|
|
434
439
|
this.setIntervalRange(this.lastIntervalRange);
|
|
435
440
|
this.setCursorRange();
|
|
436
441
|
}
|
|
@@ -492,24 +497,29 @@ const GuxDatepicker = class {
|
|
|
492
497
|
if (this.mode === "range" /* Range */) {
|
|
493
498
|
const [from, to] = isoDates.fromIsoDateRange(this.value);
|
|
494
499
|
const { map: map1, regexp: regexp1 } = this.getMapAndRegexFromField(from);
|
|
495
|
-
this.
|
|
500
|
+
this.formattedValue = this.format.replace(regexp1, match => {
|
|
496
501
|
return map1[match];
|
|
497
502
|
});
|
|
498
503
|
const { map: map2, regexp: regexp2 } = this.getMapAndRegexFromField(to);
|
|
499
|
-
this.
|
|
504
|
+
this.toFormattedValue = this.format.replace(regexp2, match => {
|
|
500
505
|
return map2[match];
|
|
501
506
|
});
|
|
502
507
|
}
|
|
503
508
|
else {
|
|
504
509
|
const dateValue = isoDates.fromIsoDate(this.value);
|
|
505
510
|
const { map: map3, regexp: regexp3 } = this.getMapAndRegexFromField(dateValue);
|
|
506
|
-
this.
|
|
511
|
+
this.formattedValue = this.format.replace(regexp3, match => {
|
|
507
512
|
return map3[match];
|
|
508
513
|
});
|
|
509
514
|
}
|
|
510
515
|
}
|
|
516
|
+
/** Selects a range of the input text based on the intervalRange property. */
|
|
511
517
|
setCursorRange() {
|
|
512
518
|
if (this.intervalRange) {
|
|
519
|
+
// If the selection is the same as what you are trying to set, setSelectionRange will deselect it.
|
|
520
|
+
// To prevent this, the line below sets the selection to the full field before setting the range we actually want.
|
|
521
|
+
this.focusedField.setSelectionRange(0, 100);
|
|
522
|
+
// Select the range we want
|
|
513
523
|
this.focusedField.setSelectionRange(this.intervalRange.selectionStart, this.intervalRange.selectionEnd);
|
|
514
524
|
}
|
|
515
525
|
}
|
|
@@ -582,9 +592,9 @@ const GuxDatepicker = class {
|
|
|
582
592
|
this.numberOfMonths = 2;
|
|
583
593
|
}
|
|
584
594
|
}
|
|
595
|
+
this.updateDate();
|
|
585
596
|
}
|
|
586
597
|
componentDidLoad() {
|
|
587
|
-
this.updateDate();
|
|
588
598
|
this.popperInstance = popper.createPopper(this.datepickerElement, this.calendarElement, {
|
|
589
599
|
modifiers: [
|
|
590
600
|
{
|
|
@@ -598,28 +608,30 @@ const GuxDatepicker = class {
|
|
|
598
608
|
});
|
|
599
609
|
}
|
|
600
610
|
componentDidUpdate() {
|
|
601
|
-
|
|
611
|
+
var _a;
|
|
612
|
+
(_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.forceUpdate();
|
|
602
613
|
}
|
|
603
614
|
disconnectedCallback() {
|
|
604
|
-
|
|
615
|
+
var _a;
|
|
616
|
+
(_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
605
617
|
}
|
|
606
618
|
renderCalendarToggleButton() {
|
|
607
619
|
return (index.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 }, index.h("gux-icon", { decorative: true, "icon-name": "calendar" })));
|
|
608
620
|
}
|
|
609
621
|
renderCalendar() {
|
|
610
|
-
return (index.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 }));
|
|
622
|
+
return (index.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 }));
|
|
611
623
|
}
|
|
612
624
|
renderStartDateField() {
|
|
613
625
|
return (index.h("div", { class: "gux-datepicker-field" }, index.h("label", { htmlFor: this.startInputId, class: {
|
|
614
626
|
'gux-datepicker-field-label': true,
|
|
615
627
|
'gux-sr-only': this.mode === "single" /* Single */ && !this.label
|
|
616
|
-
} }, this.getCalendarLabels()[0]), index.h("div", { class: "gux-datepicker-field-input" }, index.h("div", { class: "gux-datepicker-field-text-input" }, index.h("input", { id: this.startInputId, type: "text", ref: (el) => (this.inputElement = el), value: this.
|
|
628
|
+
} }, this.getCalendarLabels()[0]), index.h("div", { class: "gux-datepicker-field-input" }, index.h("div", { class: "gux-datepicker-field-text-input" }, index.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())));
|
|
617
629
|
}
|
|
618
630
|
renderEndDateField() {
|
|
619
631
|
if (this.mode === "single" /* Single */) {
|
|
620
632
|
return null;
|
|
621
633
|
}
|
|
622
|
-
return (index.h("div", { class: "gux-datepicker-field" }, index.h("label", { htmlFor: this.endInputId, class: "gux-datepicker-field-label" }, this.getCalendarLabels()[1]), index.h("div", { class: "gux-datepicker-field-input" }, index.h("div", { class: "gux-datepicker-field-text-input" }, index.h("input", { id: this.endInputId, type: "text", ref: (el) => (this.toInputElement = el), value: this.
|
|
634
|
+
return (index.h("div", { class: "gux-datepicker-field" }, index.h("label", { htmlFor: this.endInputId, class: "gux-datepicker-field-label" }, this.getCalendarLabels()[1]), index.h("div", { class: "gux-datepicker-field-input" }, index.h("div", { class: "gux-datepicker-field-text-input" }, index.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()))));
|
|
623
635
|
}
|
|
624
636
|
render() {
|
|
625
637
|
return (index.h("div", { class: {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-262c2e3a.js');
|
|
6
6
|
const randomHtmlId = require('./random-html-id-b86b61c0.js');
|
|
7
|
-
const usageTracking = require('./usage-tracking-
|
|
7
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
8
8
|
const index$1 = require('./index-13101536.js');
|
|
9
9
|
require('./get-closest-element-ab4b2eee.js');
|
|
10
10
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-262c2e3a.js');
|
|
6
|
-
const usageTracking = require('./usage-tracking-
|
|
6
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
7
7
|
const index$1 = require('./index-13101536.js');
|
|
8
8
|
require('./get-closest-element-ab4b2eee.js');
|
|
9
9
|
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-262c2e3a.js');
|
|
6
6
|
const onClickOutside = require('./on-click-outside-0d16a176.js');
|
|
7
7
|
const whenEventIsFrom = require('./when-event-is-from-69b5ca13.js');
|
|
8
|
-
const usageTracking = require('./usage-tracking-
|
|
8
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
9
9
|
const onMutation = require('./on-mutation-230d7667.js');
|
|
10
10
|
|
|
11
11
|
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}";
|
|
@@ -6,7 +6,7 @@ const index = require('./index-262c2e3a.js');
|
|
|
6
6
|
const onClickOutside = require('./on-click-outside-0d16a176.js');
|
|
7
7
|
const index$1 = require('./index-13101536.js');
|
|
8
8
|
const simulateNativeEvent = require('./simulate-native-event-fe3e62da.js');
|
|
9
|
-
const usageTracking = require('./usage-tracking-
|
|
9
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
10
10
|
const guxListbox_service = require('./gux-listbox.service-d394da79.js');
|
|
11
11
|
require('./get-closest-element-ab4b2eee.js');
|
|
12
12
|
|
|
@@ -7,7 +7,7 @@ const onClickOutside = require('./on-click-outside-0d16a176.js');
|
|
|
7
7
|
const index$1 = require('./index-13101536.js');
|
|
8
8
|
const simulateNativeEvent = require('./simulate-native-event-fe3e62da.js');
|
|
9
9
|
const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66fb86b.js');
|
|
10
|
-
const usageTracking = require('./usage-tracking-
|
|
10
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
11
11
|
const guxListbox_service = require('./gux-listbox.service-d394da79.js');
|
|
12
12
|
const whenEventIsFrom = require('./when-event-is-from-69b5ca13.js');
|
|
13
13
|
const randomHtmlId = require('./random-html-id-b86b61c0.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-262c2e3a.js');
|
|
6
|
-
const usageTracking = require('./usage-tracking-
|
|
6
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
7
7
|
|
|
8
8
|
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}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-262c2e3a.js');
|
|
6
|
-
const usageTracking = require('./usage-tracking-
|
|
6
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
7
7
|
const guxMenu_common = require('./gux-menu.common-6a6c2b85.js');
|
|
8
8
|
const popper = require('./popper-11d5f714.js');
|
|
9
9
|
|
|
@@ -6,7 +6,7 @@ const index = require('./index-262c2e3a.js');
|
|
|
6
6
|
const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66fb86b.js');
|
|
7
7
|
const onMutation = require('./on-mutation-230d7667.js');
|
|
8
8
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
9
|
-
const usageTracking = require('./usage-tracking-
|
|
9
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
10
10
|
const guxFormField_service = require('./gux-form-field.service-c1cdde0e.js');
|
|
11
11
|
require('./random-html-id-b86b61c0.js');
|
|
12
12
|
require('./log-error-a57681bf.js');
|
|
@@ -7,7 +7,7 @@ const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66
|
|
|
7
7
|
const onMutation = require('./on-mutation-230d7667.js');
|
|
8
8
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
9
9
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
10
|
-
const usageTracking = require('./usage-tracking-
|
|
10
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
11
11
|
const guxFormFieldLabel = require('./gux-form-field-label-bc36c597.js');
|
|
12
12
|
const guxFormField_service = require('./gux-form-field.service-c1cdde0e.js');
|
|
13
13
|
require('./random-html-id-b86b61c0.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-262c2e3a.js');
|
|
|
6
6
|
const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66fb86b.js');
|
|
7
7
|
const onMutation = require('./on-mutation-230d7667.js');
|
|
8
8
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
9
|
-
const usageTracking = require('./usage-tracking-
|
|
9
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
10
10
|
const guxFormFieldLabel = require('./gux-form-field-label-bc36c597.js');
|
|
11
11
|
const guxFormField_service = require('./gux-form-field.service-c1cdde0e.js');
|
|
12
12
|
require('./random-html-id-b86b61c0.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-262c2e3a.js');
|
|
6
|
-
const usageTracking = require('./usage-tracking-
|
|
6
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
7
7
|
const index$1 = require('./index-13101536.js');
|
|
8
8
|
require('./get-closest-element-ab4b2eee.js');
|
|
9
9
|
|
|
@@ -8,7 +8,7 @@ const randomHtmlId = require('./random-html-id-b86b61c0.js');
|
|
|
8
8
|
const logError = require('./log-error-a57681bf.js');
|
|
9
9
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
10
10
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
11
|
-
const usageTracking = require('./usage-tracking-
|
|
11
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
12
12
|
|
|
13
13
|
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}";
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@ const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66
|
|
|
8
8
|
const onMutation = require('./on-mutation-230d7667.js');
|
|
9
9
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
10
10
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
11
|
-
const usageTracking = require('./usage-tracking-
|
|
11
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
12
12
|
const setInputValue = require('./set-input-value-610d7da3.js');
|
|
13
13
|
const simulateNativeEvent = require('./simulate-native-event-fe3e62da.js');
|
|
14
14
|
const guxFormFieldLabel = require('./gux-form-field-label-bc36c597.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-262c2e3a.js');
|
|
|
6
6
|
const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66fb86b.js');
|
|
7
7
|
const onMutation = require('./on-mutation-230d7667.js');
|
|
8
8
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
9
|
-
const usageTracking = require('./usage-tracking-
|
|
9
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
10
10
|
const guxFormField_service = require('./gux-form-field.service-c1cdde0e.js');
|
|
11
11
|
require('./random-html-id-b86b61c0.js');
|
|
12
12
|
require('./log-error-a57681bf.js');
|
|
@@ -7,7 +7,7 @@ const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66
|
|
|
7
7
|
const onMutation = require('./on-mutation-230d7667.js');
|
|
8
8
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
9
9
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
10
|
-
const usageTracking = require('./usage-tracking-
|
|
10
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
11
11
|
const guxFormFieldLabel = require('./gux-form-field-label-bc36c597.js');
|
|
12
12
|
const guxFormField_service = require('./gux-form-field.service-c1cdde0e.js');
|
|
13
13
|
require('./random-html-id-b86b61c0.js');
|
|
@@ -7,7 +7,7 @@ const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66
|
|
|
7
7
|
const onMutation = require('./on-mutation-230d7667.js');
|
|
8
8
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
9
9
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
10
|
-
const usageTracking = require('./usage-tracking-
|
|
10
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
11
11
|
const guxFormFieldLabel = require('./gux-form-field-label-bc36c597.js');
|
|
12
12
|
const guxFormField_service = require('./gux-form-field.service-c1cdde0e.js');
|
|
13
13
|
require('./random-html-id-b86b61c0.js');
|
|
@@ -7,7 +7,7 @@ const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66
|
|
|
7
7
|
const onMutation = require('./on-mutation-230d7667.js');
|
|
8
8
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
9
9
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
10
|
-
const usageTracking = require('./usage-tracking-
|
|
10
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
11
11
|
const guxFormFieldLabel = require('./gux-form-field-label-bc36c597.js');
|
|
12
12
|
const guxFormField_service = require('./gux-form-field.service-c1cdde0e.js');
|
|
13
13
|
require('./random-html-id-b86b61c0.js');
|
|
@@ -7,7 +7,7 @@ const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66
|
|
|
7
7
|
const onMutation = require('./on-mutation-230d7667.js');
|
|
8
8
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
9
9
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
10
|
-
const usageTracking = require('./usage-tracking-
|
|
10
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
11
11
|
const guxFormFieldLabel = require('./gux-form-field-label-bc36c597.js');
|
|
12
12
|
const guxFormField_service = require('./gux-form-field.service-c1cdde0e.js');
|
|
13
13
|
require('./random-html-id-b86b61c0.js');
|
|
@@ -7,7 +7,7 @@ const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66
|
|
|
7
7
|
const onMutation = require('./on-mutation-230d7667.js');
|
|
8
8
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
9
9
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
10
|
-
const usageTracking = require('./usage-tracking-
|
|
10
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
11
11
|
const guxFormFieldLabel = require('./gux-form-field-label-bc36c597.js');
|
|
12
12
|
const guxFormField_service = require('./gux-form-field.service-c1cdde0e.js');
|
|
13
13
|
require('./random-html-id-b86b61c0.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-262c2e3a.js');
|
|
6
|
-
const usageTracking = require('./usage-tracking-
|
|
6
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
7
7
|
const logError = require('./log-error-a57681bf.js');
|
|
8
8
|
|
|
9
9
|
const iconNameMap = {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-262c2e3a.js');
|
|
6
|
-
const usageTracking = require('./usage-tracking-
|
|
6
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
7
7
|
|
|
8
8
|
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%}";
|
|
9
9
|
|
|
@@ -3,55 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-262c2e3a.js');
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const validFocusableItems = ['gux-list-item'];
|
|
9
|
-
function getRootChildren(root) {
|
|
10
|
-
const slot = root.querySelector('slot');
|
|
11
|
-
return slot ? slot.assignedElements() : Array.from(root.children);
|
|
12
|
-
}
|
|
13
|
-
function getGuxListFocusableItems(root) {
|
|
14
|
-
return getRootChildren(root).filter(cv => {
|
|
15
|
-
if (validFocusableItems.includes(cv.tagName.toLowerCase())) {
|
|
16
|
-
return !cv.disabled;
|
|
17
|
-
}
|
|
18
|
-
return false;
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function getCurrentFocusIndex(root) {
|
|
22
|
-
return getGuxListFocusableItems(root).findIndex(cv => cv.matches(':focus-within'));
|
|
23
|
-
}
|
|
24
|
-
function focusMove(root, delta) {
|
|
25
|
-
const currentFocusIndex = getCurrentFocusIndex(root);
|
|
26
|
-
const maxIndex = getGuxListFocusableItems(root).length;
|
|
27
|
-
focusIndex(root, (currentFocusIndex + delta) % maxIndex);
|
|
28
|
-
}
|
|
29
|
-
function focusIndex(root, focusIndex) {
|
|
30
|
-
var _a;
|
|
31
|
-
const items = getGuxListFocusableItems(root);
|
|
32
|
-
while (focusIndex < 0) {
|
|
33
|
-
focusIndex += items.length;
|
|
34
|
-
}
|
|
35
|
-
(_a = items[focusIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
36
|
-
}
|
|
37
|
-
function getLastChildIndex(root) {
|
|
38
|
-
return getGuxListFocusableItems(root).length - 1;
|
|
39
|
-
}
|
|
40
|
-
function first(root) {
|
|
41
|
-
focusIndex(root, 0);
|
|
42
|
-
}
|
|
43
|
-
function last(root) {
|
|
44
|
-
focusIndex(root, getLastChildIndex(root));
|
|
45
|
-
}
|
|
46
|
-
function next(root) {
|
|
47
|
-
focusMove(root, 1);
|
|
48
|
-
}
|
|
49
|
-
function previous(root) {
|
|
50
|
-
focusMove(root, -1);
|
|
51
|
-
}
|
|
6
|
+
const guxList_service = require('./gux-list.service-59f2b3e7.js');
|
|
7
|
+
const usageTracking = require('./usage-tracking-a1b34de9.js');
|
|
52
8
|
|
|
53
9
|
const guxListCss = ":host{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start}";
|
|
54
10
|
|
|
11
|
+
const validFocusableItems = ['gux-list-item'];
|
|
55
12
|
const GuxList = class {
|
|
56
13
|
constructor(hostRef) {
|
|
57
14
|
index.registerInstance(this, hostRef);
|
|
@@ -63,25 +20,25 @@ const GuxList = class {
|
|
|
63
20
|
switch (event.key) {
|
|
64
21
|
case 'ArrowUp':
|
|
65
22
|
event.preventDefault();
|
|
66
|
-
previous(this.root);
|
|
23
|
+
guxList_service.previous(this.root, validFocusableItems);
|
|
67
24
|
break;
|
|
68
25
|
case 'Home':
|
|
69
26
|
event.preventDefault();
|
|
70
|
-
first(this.root);
|
|
27
|
+
guxList_service.first(this.root, validFocusableItems);
|
|
71
28
|
break;
|
|
72
29
|
case 'ArrowDown':
|
|
73
30
|
event.preventDefault();
|
|
74
|
-
next(this.root);
|
|
31
|
+
guxList_service.next(this.root, validFocusableItems);
|
|
75
32
|
break;
|
|
76
33
|
case 'End':
|
|
77
34
|
event.preventDefault();
|
|
78
|
-
last(this.root);
|
|
35
|
+
guxList_service.last(this.root, validFocusableItems);
|
|
79
36
|
break;
|
|
80
37
|
}
|
|
81
38
|
}
|
|
82
39
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
83
40
|
async guxFocusFirstItem() {
|
|
84
|
-
first(this.root);
|
|
41
|
+
guxList_service.first(this.root, validFocusableItems);
|
|
85
42
|
}
|
|
86
43
|
renderFocusTarget() {
|
|
87
44
|
return (index.h("span", { tabindex: "-1" }));
|