genesys-spark-components 3.36.0 → 3.36.1
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 +7 -0
- package/dist/build/stencil-wrapper.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 +1 -1
- 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-form-field-time-picker.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 +1 -1
- 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-picker-beta.cjs.entry.js +1 -1
- 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-screen-reader-beta.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 +3 -4
- 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/{usage-tracking-99b156cd.js → usage-tracking-a6188439.js} +1 -1
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tabs-advanced.js +2 -3
- package/dist/deploy-info.json +3 -3
- 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 +1 -1
- 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-form-field-time-picker.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 +1 -1
- 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-picker-beta.entry.js +1 -1
- 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-screen-reader-beta.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 +3 -4
- 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/{usage-tracking-bb4785c5.js → usage-tracking-6be62f77.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/{p-48b0d6e5.entry.js → p-00eede2d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dd4940ff.entry.js → p-07f4f0e9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1873cc7a.entry.js → p-0e6912b4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6445a0db.entry.js → p-163e2190.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-41100aa4.entry.js → p-182358a2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-194443d9.entry.js → p-1f5c9f03.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-548920c4.entry.js → p-1f754501.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c7d73996.entry.js → p-28dd060c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f5e6d3e1.entry.js → p-2b007505.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cad776bc.entry.js → p-2b1854f7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ee26fc89.entry.js → p-2c5eca19.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b6f77eb6.entry.js → p-2dda4a3f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d909fad9.entry.js → p-332c509a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a40558a9.entry.js → p-3360d74c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-89d559de.entry.js → p-38b76a80.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-853a519a.entry.js → p-3cfbc00a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9b8d1dce.entry.js → p-3e077c57.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6dd9b208.entry.js → p-425bb15d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9fee2605.entry.js → p-42993a3b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e1162d97.entry.js → p-448cfae5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7c4280c4.entry.js → p-4dae51d0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-29b35936.entry.js → p-4ff908d5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3b3f19f4.entry.js → p-5056640e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-55c2d310.entry.js → p-541e0224.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-13eecb75.entry.js → p-55923102.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5183d718.entry.js → p-566fdbf3.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-58658cbf.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c80bb82e.entry.js → p-5b6f8ae0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9ee58d79.entry.js → p-602fe726.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5747ec26.entry.js → p-61aab330.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-eff72e49.entry.js → p-677606e8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-629cf474.entry.js → p-67827a8d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7fc994ea.entry.js → p-6898d83b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a755bf7b.entry.js → p-69fff4f0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-75b86bdb.entry.js → p-6c0d0af1.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-6e792cdf.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-aec74037.js → p-6f28cce9.js} +1 -1
- package/dist/genesys-webcomponents/{p-68a56cb7.entry.js → p-6f97851d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f37f7c7c.entry.js → p-74254549.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e26ef3dd.entry.js → p-74e2641c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a38b8855.entry.js → p-75045357.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b6db4de4.entry.js → p-75d0163d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9da77971.entry.js → p-771a2de9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-30d60a0d.entry.js → p-7b670fc8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-44947cea.entry.js → p-833251dc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-089b4918.entry.js → p-86e7eff2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d3e61575.entry.js → p-891e0988.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f53d3af1.entry.js → p-8aa557f1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dd96c10d.entry.js → p-8eebfc66.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c17f60e7.entry.js → p-8eff861a.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-908202b4.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-03f3732a.entry.js → p-91a01fa2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c60d2706.entry.js → p-93911092.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1398d685.entry.js → p-a068abe2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2adbf417.entry.js → p-a3a88254.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-a44ed3c5.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c07aa9e7.entry.js → p-aad728b0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-84ea5a9f.entry.js → p-b090a6c2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-88712755.entry.js → p-b1519da2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-298daff6.entry.js → p-b28d3344.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-59cf135d.entry.js → p-b572c034.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7a382002.entry.js → p-ba8b30a1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-256a1d9f.entry.js → p-bdc85bfc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fb1dbe59.entry.js → p-c84925c7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5734a4b0.entry.js → p-ce03a7e8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-97383285.entry.js → p-ce290d11.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a6aceb4a.entry.js → p-ce88ca91.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d09f35c6.entry.js → p-cf8625c8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-88c13ca0.entry.js → p-d314b832.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-259826dd.entry.js → p-d3b78dd1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-34283260.entry.js → p-d50fea7a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-07a5329f.entry.js → p-d7599fe4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7088d2bd.entry.js → p-d79073bf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ea75618e.entry.js → p-d895a9b9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3c9ff259.entry.js → p-de3ec2bc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-de9219fe.entry.js → p-e8491e55.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8e81188d.entry.js → p-f2266c1b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f36da6e7.entry.js +1 -0
- package/dist/genesys-webcomponents/p-f4f088c7.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-693083ca.entry.js → p-f753965f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-96173b9f.entry.js → p-f760103e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-418374a8.entry.js → p-f7b565f4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-987d1521.entry.js → p-f7c45ab1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-82cbc649.entry.js → p-f811dfb5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-30037e37.entry.js → p-f869eef5.entry.js} +1 -1
- package/dist/types/build/stencil-wrapper.d.ts +1 -1
- package/package.json +1 -1
- package/dist/genesys-webcomponents/p-0ff62f00.entry.js +0 -1
- package/dist/genesys-webcomponents/p-11fe11e7.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9d586db2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-bb6253b1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-bc4c0e7e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-cae66313.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,f as e,h as i,g as o}from"./p-7a1d01cb.js";import{b as n}from"./p-c35bd7c8.js";import{c as r,o as s}from"./p-3f5341ea.js";import{O as a}from"./p-939b6e89.js";import{a as l}from"./p-e2bea786.js";import{p as u}from"./p-c10e41a9.js";import{s as p}from"./p-8fe7daff.js";import{s as c}from"./p-d176c2ae.js";import{h}from"./p-08bc2e6b.js";import{h as x,c as
|
|
1
|
+
import{r as t,f as e,h as i,g as o}from"./p-7a1d01cb.js";import{b as n}from"./p-c35bd7c8.js";import{c as r,o as s}from"./p-3f5341ea.js";import{O as a}from"./p-939b6e89.js";import{a as l}from"./p-e2bea786.js";import{p as u}from"./p-c10e41a9.js";import{s as p}from"./p-8fe7daff.js";import{s as c}from"./p-d176c2ae.js";import{h}from"./p-08bc2e6b.js";import{h as x,c as f,G as g,a as d,v as b,g as m}from"./p-7a3b06ab.js";import{G as w,a as v}from"./p-b6ea91fa.js";import{t as y}from"./p-6f28cce9.js";import"./p-8a133b9b.js";import"./p-cbcbd1bb.js";import"./p-3184268e.js";const j={increment:"Increment",decrement:"Decrement"};const k=class{constructor(e){t(this,e),this.computedLabelPosition="above",this.hasContent=!1,this.hasError=!1,this.hasHelp=!1}onMutation(){this.hasError=h(this.root,"error"),this.hasHelp=h(this.root,"help")}async guxForceUpdate(){this.hasContent=x(this.input),this.hasError=h(this.root,"error"),this.hasHelp=h(this.root,"help"),e(this.root)}async componentWillLoad(){this.getI18nValue=await n(this.root,j),this.setInput(),this.setLabel(),this.hasError=h(this.root,"error"),this.hasHelp=h(this.root,"help"),y(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){const t=this.clearable&&this.hasContent&&!this.disabled;return i(v,{labelPosition:this.computedLabelPosition},i(w,{position:this.computedLabelPosition,required:this.required},i("slot",{name:"label",onSlotchange:()=>this.setLabel()})),i("div",{class:"gux-input-and-error-container"},i("div",{class:{"gux-input":!0,"gux-input-error":this.hasError},part:"input-section"},i("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-clear":t}},i("slot",{name:"input",onSlotchange:()=>this.setInput()}),t&&i("gux-form-field-input-clear-button",{onClick:()=>f(this.input)})),this.renderStepButtons(this.input,this.getI18nValue,this.disabled)),i(g,{show:this.hasError},i("slot",{name:"error"})),i(d,{show:!this.hasError&&this.hasHelp},i("slot",{name:"help"}))))}get variant(){const t=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.clearable?"clearable":"unclearable"}-${t}`}setInput(){this.input=this.root.querySelector('input[type="number"][slot="input"]'),this.hasContent=x(this.input),u(this.input),this.input.addEventListener("input",(()=>{this.hasContent=x(this.input)})),this.disabled=r(this.input),this.required=this.input.required,this.disabledObserver=s(this.input,(t=>{this.disabled=t})),this.requiredObserver=l(this.input,(t=>{this.required=t})),b(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=m(this.label,this.labelPosition)}renderStepButtons(t,e,o){return i("div",{class:"gux-step-buttons-container"},i("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:e("increment"),disabled:o,onClick:()=>this.stepUp(t)},i("gux-icon",{"icon-name":"chevron-small-up",decorative:!0})),i("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:e("decrement"),disabled:o,onClick:()=>this.stepDown(t)},i("gux-icon",{"icon-name":"chevron-small-down",decorative:!0})))}stepDown(t){""===t.value?p(t,t.min||"0",!1):(t.stepDown(),this.simulateNativeInputAndChangeEvents(t))}stepUp(t){""===t.value?p(t,t.min||"0",!1):(t.stepUp(),this.simulateNativeInputAndChangeEvents(t))}simulateNativeInputAndChangeEvents(t){c(t,"input"),c(t,"change")}get root(){return o(this)}};(function(t,e,i,o){var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);r>3&&s&&Object.defineProperty(e,i,s)})([a({childList:!0,subtree:!0})],k.prototype,"onMutation",null),k.style=".gux-form-field-container{margin:var(--gux-form-field-container-margin-top, 16px) 0 var(--gux-form-field-container-margin-bottom, 16px) 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;font-weight:400;line-height:20px;color:#6b7585}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:12px;color:#2e394c;text-align:right;text-overflow:ellipsis;background-color:#f6f7f9;border:none;outline:none}::slotted(input)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;width:100%}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:center;order:0;width:100%;height:32px;padding:4px 12px;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-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container.gux-clear{padding-right:0}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:#ea0b0b}.gux-step-buttons-container{flex:0 1 16px;align-self:auto;order:0;margin:0 4px}.gux-step-buttons-container .gux-step-button{flex:0 1 auto;align-self:auto;order:0;padding:2px;color:#596373;background:transparent;border:none}.gux-step-buttons-container .gux-step-button:not(:disabled):focus,.gux-step-buttons-container .gux-step-button:not(:disabled):hover{color:#2a60c8;cursor:pointer}.gux-step-buttons-container .gux-step-button gux-icon{width:10px;height:10px}";export{k as gux_form_field_number}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as o,g as s}from"./p-7a1d01cb.js";import{t as n}from"./p-
|
|
1
|
+
import{r as t,c as i,h as o,g as s}from"./p-7a1d01cb.js";import{t as n}from"./p-6f28cce9.js";import{O as e}from"./p-f77f86a9.js";import{b as a}from"./p-c35bd7c8.js";import"./p-8a133b9b.js";const c={actionButtonDropdown:"Dropdown for {buttonTitle}"};const h=class{constructor(o){t(this,o),this.open=i(this,"open",7),this.close=i(this,"close",7),this.actionClick=i(this,"actionClick",7),this.moveFocusDelay=100,this.type="button",this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const i=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,i.includes(this.actionListElement)&&this.dropdownButton.focus();break;case"Tab":this.isOpen=!1;break;case"ArrowDown":t.preventDefault(),i.includes(this.dropdownButton)&&(this.isOpen=!0,setTimeout((()=>{this.actionListElement.setFocusOnFirstItem()}),this.moveFocusDelay));break;case"Enter":i.includes(this.dropdownButton)&&(this.isOpen=!0,setTimeout((()=>{this.actionListElement.setFocusOnFirstItem()}),this.moveFocusDelay))}}handleKeyup(t){const i=t.composedPath();switch(t.key){case" ":i.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,setTimeout((()=>{this.actionListElement.setFocusOnFirstItem()}),this.moveFocusDelay))}}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():this.close.emit()}onClickOutside(t){null===t.relatedTarget&&(this.isOpen=!1)}toggle(){this.disabled||(this.isOpen=!this.isOpen)}onActionClick(){this.disabled||(this.isOpen=!1,this.actionClick.emit())}async componentWillLoad(){n(this.root,{variant:this.type}),this.i18n=await a(this.root,c)}render(){return o("div",{class:"gux-action-button-container"},o("gux-popup",{expanded:this.isOpen,disabled:this.disabled},o("div",{slot:"target",class:"gux-action-button-container"},o("gux-button-slot-beta",{class:"gux-action-button",accent:this.accent},o("button",{type:this.type,disabled:this.disabled,onClick:()=>this.onActionClick()},this.text)),o("gux-button-slot-beta",{class:"gux-dropdown-button",accent:this.accent},o("button",{type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onClick:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),"aria-label":this.i18n("actionButtonDropdown",{buttonTitle:this.text})},o("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),o("gux-action-list-legacy",{slot:"popup",ref:t=>this.actionListElement=t},o("slot",null))))}get root(){return s(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,i,o,s){var n,e=arguments.length,a=e<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,s);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(a=(e<3?n(a):e>3?n(i,o,a):n(i,o))||a);e>3&&a&&Object.defineProperty(i,o,a)})([e({triggerEvents:"click"})],h.prototype,"onClickOutside",null),h.style=":host{display:block;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-action-button-container{min-width:128px}.gux-action-button-container>*{vertical-align:middle}.gux-action-button-container .gux-action-button{width:calc(100% - 33px);margin-right:1px}.gux-action-button-container .gux-action-button button{width:100%;max-width:none;text-align:center;border-top-right-radius:0;border-bottom-right-radius:0}.gux-action-button-container .gux-dropdown-button button{width:32px;min-width:0;padding:0;border-top-left-radius:0;border-bottom-left-radius:0}.gux-action-button-container .gux-dropdown-button button gux-icon{width:16px;height:16px}";export{h as gux_action_button_legacy}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as o,g as r}from"./p-7a1d01cb.js";import{h as
|
|
1
|
+
import{r as e,h as o,g as r}from"./p-7a1d01cb.js";import{h as n}from"./p-08bc2e6b.js";import{t as a}from"./p-6f28cce9.js";const t=class{constructor(o){e(this,o)}componentWillLoad(){a(this.root)}renderOptionalSlot(e){if(n(this.root,e))switch(e){case"header":return o("header",{class:"gux-panel-header"},o("slot",{name:`${e}`}));case"body":return o("div",{class:"gux-panel-body"},o("slot",{name:`${e}`}));case"footer":return o("footer",{class:"gux-panel-footer"},o("slot",{name:`${e}`}))}}render(){return o("section",{class:"gux-panel-container"},this.renderOptionalSlot("header"),this.renderOptionalSlot("body"),this.renderOptionalSlot("footer"))}get root(){return r(this)}};t.style=".gux-panel-container{box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:8px 15px;color:#2e394c;background-color:#fdfdfd;border:1px solid #e2e6ee}.gux-panel-container .gux-panel-header,.gux-panel-container .gux-panel-body,.gux-panel-container .gux-panel-footer{box-sizing:border-box;width:100%}.gux-panel-container .gux-panel-header{flex-shrink:0;padding:0 8px;border-bottom:1px solid #e2e6ee}.gux-panel-container .gux-panel-body{flex-grow:1;padding:8px;overflow-y:auto}.gux-panel-container .gux-panel-footer{flex-shrink:0;padding:12px 8px;border-top:1px solid #e2e6ee}";export{t as gux_panel_frame_legacy}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as i,g as o}from"./p-7a1d01cb.js";import{c as l,o as s}from"./p-3f5341ea.js";import{O as r}from"./p-939b6e89.js";import{p as a}from"./p-c10e41a9.js";import{h as n}from"./p-08bc2e6b.js";import{G as d,a as p,v as c}from"./p-7a3b06ab.js";import{t as f}from"./p-
|
|
1
|
+
import{r as e,h as t,H as i,g as o}from"./p-7a1d01cb.js";import{c as l,o as s}from"./p-3f5341ea.js";import{O as r}from"./p-939b6e89.js";import{p as a}from"./p-c10e41a9.js";import{h as n}from"./p-08bc2e6b.js";import{G as d,a as p,v as c}from"./p-7a3b06ab.js";import{t as f}from"./p-6f28cce9.js";import"./p-cbcbd1bb.js";import"./p-3184268e.js";import"./p-8fe7daff.js";import"./p-d176c2ae.js";const g=class{constructor(t){e(this,t),this.hasError=!1,this.hasHelp=!1}onMutation(){this.hasError=n(this.root,"error"),this.hasHelp=n(this.root,"help")}componentWillLoad(){this.setInput(),this.hasError=n(this.root,"error"),this.hasHelp=n(this.root,"help"),f(this.root)}disconnectedCallback(){this.disabledObserver.disconnect()}render(){return t(i,{class:{"gux-input-error":this.hasError,"gux-disabled":this.disabled}},t("div",{class:"gux-form-field-container"},t("div",{class:"gux-input-label"},t("div",{class:"gux-input"},t("slot",{name:"input",onSlotchange:()=>this.setInput()})),t("div",{class:"gux-label"},t("slot",{name:"label"}),t(d,{show:this.hasError},t("slot",{name:"error"})),t(p,{show:!this.hasError&&this.hasHelp},t("slot",{name:"help"}))))))}setInput(){this.input=this.root.querySelector('input[type="radio"][slot="input"]'),a(this.input),this.disabled=l(this.input),this.disabledObserver=s(this.input,(e=>{this.disabled=e})),c(this.root,this.input)}get root(){return o(this)}};(function(e,t,i,o){var l,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(l=e[a])&&(r=(s<3?l(r):s>3?l(t,i,r):l(t,i))||r);s>3&&r&&Object.defineProperty(t,i,r)})([r({childList:!0,subtree:!0})],g.prototype,"onMutation",null),g.style=".gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;font-weight:400;line-height:20px;color:#6b7585}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block;color:#2e394c}:host(.gux-disabled){cursor:not-allowed;opacity:0.5}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}.gux-input-label{display:flex;flex-direction:row}.gux-input-label .gux-label{display:flex;flex-direction:column}::slotted(input[type='radio']){display:inline-grid;width:16px;height:16px;margin:4px;text-align:center;vertical-align:middle;cursor:pointer;border:0;-webkit-appearance:none;appearance:none;outline:none}::slotted(input[type='radio'])::before{grid-area:1;content:'';border-radius:50%}::slotted(input[type='radio']:focus-within)::before{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}::slotted(input[type='radio']:not(:checked))::before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.062C5.239 3.062 3 5.273 3 8s2.239 4.938 5 4.938c2.762 0 5-2.211 5-4.938s-2.238-4.938-5-4.938zm0 9a4 4 0 1 1 0-8 4 4 0 0 1 0 8z' fill-rule='evenodd' clip-rule='evenodd' fill='%2377828f'/%3E%3C/svg%3E\")}::slotted(input[type='radio']:not(:checked):not(:disabled):hover)::before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.062C5.239 3.062 3 5.273 3 8s2.239 4.938 5 4.938c2.762 0 5-2.211 5-4.938s-2.238-4.938-5-4.938zm0 9a4 4 0 1 1 0-8 4 4 0 0 1 0 8z' fill-rule='evenodd' clip-rule='evenodd' fill='%232a60c8'/%3E%3C/svg%3E\")}::slotted(input[type='radio']:checked)::before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8.026 5.262a2.8 2.8 0 1 0 .001 5.601 2.8 2.8 0 0 0-.001-5.601zm0-2.2c-2.761 0-5 2.211-5 4.938s2.239 4.938 5 4.938c2.762 0 5-2.211 5-4.938s-2.238-4.938-5-4.938zm0 9a4 4 0 1 1 0-8 4 4 0 0 1 0 8z' fill='%232a60c8'/%3E%3C/svg%3E\")}::slotted(input[type='radio']:disabled)::before{cursor:not-allowed;opacity:0.5}::slotted(label){display:inline-block;font-size:12px;line-height:24px;vertical-align:middle}";export{g as gux_form_field_radio}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as e,g as n}from"./p-7a1d01cb.js";import{t as c}from"./p-6f28cce9.js";function t(o,e,n){const c=function(o,e){return e.find((e=>e.slotName===o))}(o,n);null==c||c.ref.classList[e]("gux-opened")}const r=class{constructor(e){o(this,e),this.sections=[],this.headingLevel=null,this.arrowPosition="default"}async open(o){t(o,"add",this.sections)}async close(o){t(o,"remove",this.sections)}async toggle(o){t(o,"toggle",this.sections)}componentWillLoad(){c(this.root),this.sections=function(o){const e=Array.from(o.children),n=[];return e.forEach((o=>{const e=o.getAttribute("slot");o.hidden=!Boolean(e),e&&n.push({slotName:e,ref:null})})),n}(this.root)}render(){return e("div",{class:"gux-accordion"},this.sections.map((o=>e("section",{class:"gux-section",onKeyDown:e=>function(o,e,n){let c;switch(o.key){case"ArrowUp":c=function(o,e){const n=e.findIndex((e=>e.slotName===o));return n<=0?e[e.length-1].ref:e[n-1].ref}(e,n);break;case"ArrowDown":c=function(o,e){const n=e.findIndex((e=>e.slotName===o));return n>=e.length-1?e[0].ref:e[n+1].ref}(e,n);break;case"End":c=function(o){return o[this.sections.length-1].ref}(n);break;case"Home":c=function(o){return o[0].ref}(n)}var t;c&&(t=c,t.querySelector(".gux-header-button")).focus()}(e,o.slotName,this.sections),ref:e=>o.ref=e},e("div",{"aria-role":"heading","aria-level":this.headingLevel,class:"gux-header"},e("button",{class:"gux-header-button",type:"button",onClick:()=>this.toggle(o.slotName)},e("div",{class:"gux-text"},o.slotName),"beside-text"===this.arrowPosition?null:e("div",{class:"gux-spacer"}),e("div",{class:"gux-toggle-arrow"},e("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),e("div",{class:"gux-content"},e("slot",{name:o.slotName}))))))}get root(){return n(this)}};r.style="gux-accordion-legacy .gux-accordion{padding:0;margin:0;background-color:#fdfdfd}gux-accordion-legacy .gux-accordion .gux-section{color:#2e394c}gux-accordion-legacy .gux-accordion .gux-section .gux-header{box-sizing:border-box;height:40px;border-top:1px solid #e2e6ee}gux-accordion-legacy .gux-accordion .gux-section .gux-header .gux-header-button{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:0 16px;margin:0;color:#2e394c;cursor:pointer;background:none;border:none}gux-accordion-legacy .gux-accordion .gux-section .gux-header .gux-header-button .gux-text{flex:0 1 auto;align-self:auto;padding-right:8px;font-family:inherit;font-size:inherit;font-weight:bold;text-align:left}gux-accordion-legacy .gux-accordion .gux-section .gux-header .gux-header-button .gux-spacer{flex:1 1 auto;align-self:auto}gux-accordion-legacy .gux-accordion .gux-section .gux-header .gux-header-button .gux-toggle-arrow{flex:0 1 auto;align-items:center;align-self:auto;color:#6b7585;transition:transform 0.5s ease;transform-origin:center}gux-accordion-legacy .gux-accordion .gux-section .gux-header .gux-header-button .gux-toggle-arrow gux-icon{width:20px;height:20px}gux-accordion-legacy .gux-accordion .gux-section .gux-header:hover .gux-toggle-arrow{color:#2e394c}gux-accordion-legacy .gux-accordion .gux-section .gux-content{box-sizing:border-box;display:none;padding:16px}gux-accordion-legacy .gux-accordion .gux-section.gux-opened .gux-header{border-bottom:1px solid #e2e6ee}gux-accordion-legacy .gux-accordion .gux-section.gux-opened .gux-header .gux-toggle-arrow{transform:rotate(-180deg)}gux-accordion-legacy .gux-accordion .gux-section.gux-opened .gux-content{display:block}gux-accordion-legacy .gux-accordion .gux-section:last-of-type .gux-header{border-bottom:1px solid #e2e6ee}gux-accordion-legacy .gux-accordion .gux-section:last-of-type .gux-content{border-bottom:1px solid #e2e6ee}";export{r as gux_accordion_legacy}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=[function(e){const[t,n,...o]=e.split(".");return{name:"spark-library",metadata:{fullVersion:`${t}.${n}.${o.join(".")}`,majorVersion:t,minorVersion:`${t}.${n}`}}}("3.36.
|
|
1
|
+
const e=[function(e){const[t,n,...o]=e.split(".");return{name:"spark-library",metadata:{fullVersion:`${t}.${n}.${o.join(".")}`,majorVersion:t,minorVersion:`${t}.${n}`}}}("3.36.1")];function t(){const n=window.newrelic;if(n){for(let o=0;o<20;o++){if(0==e.length)return void setTimeout(t,3e4);const o=e.shift();n.addPageAction(o.name,Object.assign(Object.assign({},o.metadata),{queueDepth:e.length}))}setTimeout(t,3e4)}}let n=!1;function o(o,i){window.newrelic&&(n||(n=!0,t()),document.contains(o)&&e.push({name:"spark-component",metadata:Object.assign(Object.assign({},i),{component:o.tagName.toLowerCase(),version:"3.36.1"})}))}export{o as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,g as i}from"./p-7a1d01cb.js";import{O as s}from"./p-f77f86a9.js";import{s as n}from"./p-d176c2ae.js";import{a as o}from"./p-091f51f6.js";import{g as r,b as c}from"./p-c35bd7c8.js";import{t as a}from"./p-
|
|
1
|
+
import{r as t,h as e,g as i}from"./p-7a1d01cb.js";import{O as s}from"./p-f77f86a9.js";import{s as n}from"./p-d176c2ae.js";import{a as o}from"./p-091f51f6.js";import{g as r,b as c}from"./p-c35bd7c8.js";import{t as a}from"./p-6f28cce9.js";import"./p-8a133b9b.js";const u={am:"AM","time-separator":":",clockButton:"Toggle suggested times",hoursInput:"Input hours",minutesInput:"Input minutes",pm:"PM",timeOptionsState:"Time options open: {state}",toggleAmPM:"{amOrPm} selected, click to toggle"};function p(t,e){const[i,s]=t.split(":");return`${((parseInt(i,10)+e+24)%24).toString().padStart(2,"0")}:${s}`}function h(t,e){const[i,s]=t.split(":");return`${i}:${((parseInt(s,10)+e+60)%60).toString().padStart(2,"0")}`}function l(t,e){const[i,s]=t.split(":");return"12h"===e?`${(parseInt(i,10)%12||12).toString()}:${s}`:`${i}:${s}`}function g(t,e,i){const[s,n]=t.split(":");return"12h"===e?i?`${(parseInt(s,10)%12).toString().padStart(2,"0")}:${n}`:`${(parseInt(s,10)%12+12).toString().padStart(2,"0")}:${n}`:`${s}:${n}`}function x(t,e){const[i]=l(t,e).split(":");return i}function m(t){const[,e]=t.split(":");return e}function d(t){const[e]=t.split(":");return parseInt(e,10)<12}function b(t){return"12h"===t?"^(0?[1-9]|1[012])$":"^([01]?[0-9]|2[0-3])$"}const f=class{constructor(e){t(this,e),this.value="00:00",this.interval=60,this.disabled=!1,this.required=!1,this.hasError=!1,this.expanded=!1}onFocus(){this.valueLastChange=this.value}onBlur(){this.valueLastChange!==this.value&&n(this.root,"change")}onClickOutside(){this.expanded=!1}handleKeydown(t){switch(t.key){case"Escape":case"Tab":this.expanded=!1}}async componentWillLoad(){a(this.root),this.i18n=await c(this.root,u),this.clockType=this.clockType||function(t){const e=r(t),i=new Date("January 19, 1975 15:00:00 UTC+00:00"),s=new Intl.DateTimeFormat(e,{timeStyle:"short",timeZone:"UTC"}).format(i);return new RegExp(".*15.*").test(s)?"24h":"12h"}(this.root)}updateValue(t,e=!1){t!==this.value&&(this.value=t,n(this.root,"input"),e&&this.valueLastChange!==this.value&&(n(this.root,"change"),this.valueLastChange=this.value))}focusFirstItemInPopupList(){o((()=>{this.listElement.guxFocusFirstItem()}))}toggleDropdown(){this.expanded=!this.expanded,this.expanded&&this.focusFirstItemInPopupList()}handleClickDropdownValue(t){const e=g(t,this.clockType,d(this.value));this.updateValue(e,!0),this.clockButton.focus(),this.expanded=!1}onHourKeyDown(t){switch(t.key){case"Tab":case"ArrowLeft":case"ArrowRight":case"Escape":break;case"ArrowDown":t.preventDefault(),this.updateValue(p(this.value,-1));break;case"ArrowUp":t.preventDefault(),this.updateValue(p(this.value,1));break;case"Backspace":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":t.preventDefault(),this.updateValue(function(t,e,i,s){const[n,o]=l(t,e).split(":");let r=n;return r="Backspace"===i?r.split("").filter(((t,e)=>e!==s-1)).join("").padStart(2,"0"):parseInt(r.slice(0,s)+i+r.slice(s+1),10).toString().slice(-2).padStart(2,"0"),new RegExp(b(e)).test(r)||(r="12h"===e?i:i.padStart(2,"0")),g(`${r}:${o}`,e,d(t))}(this.value,this.clockType,t.key,this.hourInputElement.selectionStart));break;default:t.preventDefault()}}onMinuteKeyDown(t){switch(t.key){case"Tab":case"ArrowLeft":case"ArrowRight":case"Escape":break;case"ArrowDown":t.preventDefault(),this.updateValue(h(this.value,-1));break;case"ArrowUp":t.preventDefault(),this.updateValue(h(this.value,1));break;case"Backspace":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":t.preventDefault(),this.updateValue(function(t,e,i){const[s,n]=t.split(":");let o=n;return o="Backspace"===e?o.split("").filter(((t,e)=>e!==i-1)).join("").padStart(2,"0"):(o.slice(0,i)+e+o.slice(i+1)).slice(-2).padStart(2,"0"),new RegExp("^[0-5][0-9]$").test(o)||(o=e.padStart(2,"0")),`${s}:${o}`}(this.value,t.key,this.minuteInputElement.selectionStart));break;default:t.preventDefault()}}onAmPmButtonKeyDown(t){switch(t.key){case"ArrowDown":case"ArrowUp":this.toggleAmPm(t)}}onListKeyDown(t){switch(t.key){case"Escape":this.expanded=!1,this.clockButton.focus()}}toggleAmPm(t){t.preventDefault(),this.updateValue(p(this.value,12),!0)}getAmPmString(){return d(this.value)?this.i18n("am"):this.i18n("pm")}renderNumberInput(){return e("div",null,e("input",{class:"gux-input-time-hours",type:"text",disabled:this.disabled,value:x(this.value,this.clockType),onKeyDown:t=>this.onHourKeyDown(t),"aria-label":this.i18n("hoursInput"),pattern:b(this.clockType),ref:t=>this.hourInputElement=t}),e("span",{class:"gux-time-separator"},this.i18n("time-separator")),e("input",{class:"gux-input-time-minutes",type:"text",disabled:this.disabled,value:m(this.value),onKeyDown:t=>this.onMinuteKeyDown(t),"aria-label":this.i18n("minutesInput"),pattern:"^[0-5][0-9]$",ref:t=>this.minuteInputElement=t}))}renderAmPmSelector(){if("12h"===this.clockType)return e("button",{class:"gux-input-time-am-pm-selector",type:"button",disabled:this.disabled,"aria-label":this.i18n("toggleAmPM",{amOrPm:this.getAmPmString()}),onClick:t=>this.toggleAmPm(t),onKeyDown:t=>this.onAmPmButtonKeyDown(t)},this.getAmPmString())}renderClockButton(){return e("button",{class:{"gux-clock-button":!0,"gux-active":this.expanded},type:"button",disabled:this.disabled,"aria-label":this.i18n("clockButton"),"aria-expanded":this.expanded.toString(),onClick:this.toggleDropdown.bind(this),ref:t=>this.clockButton=t},e("gux-icon",{decorative:!0,"icon-name":"clock-outline"}))}renderTimeListItems(){return function(t,e){const i=[0,15,30,45].filter((e=>Number.isInteger(e/t))).map((t=>String(t).padStart(2,"0")));return("12h"===e?["12","1","2","3","4","5","6","7","8","9","10","11"]:Array.from(Array(24).keys()).map((t=>String(t).padStart(2,"0")))).reduce(((t,e)=>t.concat(i.map((t=>`${e}:${t}`)))),[])}(this.interval,this.clockType).map((t=>e("gux-list-item",{onClick:()=>this.handleClickDropdownValue(t)},t)))}renderTarget(){return e("div",{class:"gux-input-time",slot:"target"},this.renderNumberInput(),this.renderAmPmSelector(),this.renderClockButton())}renderPopup(){return e("div",{slot:"popup",class:"gux-list-container",onKeyDown:t=>this.onListKeyDown(t)},e("gux-list",{ref:t=>this.listElement=t},this.renderTimeListItems()))}render(){return e("gux-popup",{class:{"gux-time-picker":!0,"gux-error":this.hasError},expanded:this.expanded,disabled:this.disabled},this.renderTarget(),this.renderPopup())}get root(){return i(this)}};(function(t,e,i,s){var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);o>3&&r&&Object.defineProperty(e,i,r)})([s({triggerEvents:"mousedown"})],f.prototype,"onClickOutside",null),f.style=".gux-time-picker{position:relative;display:inline-block}.gux-time-picker.gux-error .gux-input-time{border-color:#ea0b0b}.gux-time-picker .gux-input-time{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;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-time-picker .gux-input-time input{flex:1 1 auto;align-self:auto;order:0;width:20px;padding:0;font-size:12px;color:#2e394c;text-align:center;text-align:left;background-color:#f6f7f9;border:none;outline:none}.gux-time-picker .gux-input-time input.gux-input-time-hours{text-align:right}.gux-time-picker .gux-input-time input::placeholder{color:#596373;opacity:1}.gux-time-picker .gux-input-time .gux-input-time-am-pm-selector{padding:0 0 0 8px;font-size:12px;font-weight:bold;color:#2e394c;background:transparent;border:none;outline:none}.gux-time-picker .gux-input-time .gux-input-time-am-pm-selector:not(:disabled):hover{color:#2a60c8;cursor:pointer}.gux-time-picker .gux-input-time .gux-input-time-am-pm-selector:focus-visible{color:#2a60c8}.gux-time-picker .gux-input-time .gux-clock-button{flex:0 1 auto;align-self:auto;order:0;padding:0 0 0 8px;color:#596373;background:transparent;border:none}.gux-time-picker .gux-input-time .gux-clock-button.gux-active:not(:disabled){color:#2a60c8;cursor:pointer}.gux-time-picker .gux-input-time .gux-clock-button.gux-active:not(:disabled):hover{color:#2a60c8 !important;cursor:pointer}.gux-time-picker .gux-input-time .gux-clock-button:not(:disabled):hover{color:#2e394c;cursor:pointer}.gux-time-picker .gux-input-time .gux-clock-button:focus{border:none;outline:none}.gux-time-picker .gux-input-time .gux-clock-button:focus-visible gux-icon{outline:none;box-shadow:0 0 0 1px transparent, 0 0 0 2px #aac9ff;border-radius:2px}.gux-time-picker .gux-input-time .gux-clock-button gux-icon{width:16px;height:16px}.gux-time-picker .gux-list-container{max-height:150px;padding:8px 0;margin:0;overflow-y:scroll;list-style:none;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}";export{f as gux_time_picker_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o,g as s}from"./p-7a1d01cb.js";import{t as r}from"./p-
|
|
1
|
+
import{r as t,h as o,g as s}from"./p-7a1d01cb.js";import{t as r}from"./p-6f28cce9.js";const e=class{constructor(o){t(this,o)}componentWillLoad(){r(this.root)}render(){return o("span",{class:"gux-sr-only"},o("slot",null))}get root(){return s(this)}};e.style=".gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}";export{e as gux_screen_reader_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,f as e,h as i,g as s,c as o,H as n}from"./p-7a1d01cb.js";import{O as r}from"./p-f77f86a9.js";import{b as a}from"./p-c35bd7c8.js";import{s as d}from"./p-d176c2ae.js";import{o as l,c as u}from"./p-3f5341ea.js";import{b as h}from"./p-091f51f6.js";import{t as c}from"./p-aec74037.js";import{g as x,s as g,c as p,a as f,b,h as m,d as w,e as v,f as y,i as F,j,m as k,o as A}from"./p-adf414b8.js";import{w as C}from"./p-76ff3e75.js";import{r as E}from"./p-cbcbd1bb.js";import"./p-8a133b9b.js";const L={filterResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown"};const O=class{constructor(e){t(this,e),this.disabled=!1,this.required=!1,this.filterable=!1,this.hasError=!1,this.expanded=!1,this.filter=""}focusSelectedItemAfterRender(t){t&&this.listboxElement&&h((()=>{this.listboxElement.focus(),this.filterable&&this.filterElement.focus()})),t||(this.filter="")}validateValue(t){void 0!==t?this.getOptionElementByValue(t)?this.listboxElement.value=t:this.value=void 0:this.listboxElement&&(this.listboxElement.value=t)}onKeydown(t){switch(t.key){case"Escape":return this.filterable&&document.activeElement===this.listboxElement?this.filterElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.filterElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("focusFieldButton")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0))}}onInternallistboxoptionsupdated(t){t.stopPropagation(),e(this.root)}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t)}onClickOutside(){this.collapseListbox("noFocusChange")}async componentWillLoad(){c(this.root),this.i18n=await a(this.root,L),this.listboxElement=this.root.querySelector("gux-listbox"),this.validateValue(this.value),l(this.root,(()=>{e(this.root)}))}componentDidLoad(){this.listboxElement.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),this.listboxElement.addEventListener("change",(t=>{t.stopPropagation()}))}componentWillRender(){this.validateValue(this.value),this.listboxElement.filter=this.filter}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}getOptionElementByValue(t){const e=this.root.querySelectorAll("gux-option");return Array.from(e).find((e=>e.value===t))}fieldButtonClick(){this.expanded=!this.expanded}filterInput(t){t.stopPropagation(),this.filter=this.filterElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.filterable&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.filterable&&document.activeElement===this.listboxElement}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){switch(t.key){case"ArrowDown":return t.stopImmediatePropagation(),void this.listboxElement.focus();case"Enter":return this.listboxElement.guxSelectActive(),void t.preventDefault()}}filterKeyup(t){switch(t.key){case" ":return void t.preventDefault()}}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,d(this.root,"input"),d(this.root,"change")),this.collapseListbox("focusFieldButton")}getSuggestionText(t){const e=t.length;if(e>0){const i=x(this.listboxElement,t);if(i)return i.textContent.trim().substring(e)}return""}renderTargetDisplay(){const t=this.getOptionElementByValue(this.value);return t?i("div",{class:"gux-selected-option"},t.textContent):i("div",{class:"gux-placeholder"},this.placeholder||this.i18n("noSelection"))}renderFilterInputField(){if(this.expanded&&this.filterable)return i("div",{class:"gux-field gux-input-field"},i("div",{class:"gux-field-content"},i("div",{class:"gux-filter"},i("div",{class:"gux-filter-display"},i("span",{class:"gux-filter-text"},this.filter),i("span",{class:"gux-filter-suggestion"},this.getSuggestionText(this.filter))),i("div",{class:"input-and-dropdown-button"},i("input",{onClick:this.fieldButtonClick.bind(this),class:"gux-filter-input",type:"text","aria-label":this.i18n("filterResults"),ref:t=>this.filterElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this)})))))}renderPopup(){return i("div",{slot:"popup",class:"gux-listbox-container"},i("slot",null))}renderTarget(){return i("div",{class:{"gux-target-container-expanded":this.expanded&&this.filterable,"gux-target-container-collapsed":!(this.expanded&&this.filterable),"gux-error":this.hasError},slot:"target"},this.renderFilterInputField(),i("button",{type:"button",class:"gux-field gux-field-button",disabled:u(this.root),onClick:this.fieldButtonClick.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),i("gux-icon",{class:{"gux-expand-icon":!0},"screenreader-text":this.i18n("dropdown"),iconName:"chevron-small-down"})))}renderTargetContent(){if(!this.expanded||!this.filterable)return i("div",{class:"gux-field-content"},this.renderTargetDisplay())}render(){return i("gux-popup",{expanded:this.expanded,disabled:this.disabled},this.renderTarget(),this.renderPopup())}get root(){return s(this)}static get watchers(){return{expanded:["focusSelectedItemAfterRender"],value:["validateValue"]}}};(function(t,e,i,s){var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);n>3&&r&&Object.defineProperty(e,i,r)})([r({triggerEvents:"mousedown"})],O.prototype,"onClickOutside",null),O.style=":host{color:#2e394c}.gux-field,.gux-target-container-expanded{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:6px 8px 6px 6px;font-family:inherit;font-size:12px;line-height:1.6667;cursor:pointer;background-color:#f6f7f9}.gux-error.gux-target-container-collapsed .gux-field-button,.gux-error.gux-target-container-expanded{border-color:#ea0b0b}.gux-field.gux-input-field{height:30px}.gux-field .gux-field-content{display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;min-width:0;height:100%}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;padding-left:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter{position:relative;height:100%}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;width:100%;color:transparent;caret-color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:#596373}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:#596373}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;width:16px;height:16px;padding-left:8px;color:#596373}.gux-target-container-expanded{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-expanded:focus-within{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-target-container-expanded .gux-filter-input{background-color:inherit;border:none}.gux-target-container-expanded .gux-filter-input:focus{border:none;outline:none}.gux-target-container-expanded .gux-field-button{width:auto;height:30px;padding:0 0 0 8px;margin:0;background:inherit;border:none;outline:none;box-shadow:none}.gux-target-container-expanded .gux-field-button:focus{outline:none}.gux-target-container-collapsed .gux-field-button{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-collapsed .gux-field-button:focus{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-listbox-container{box-sizing:border-box;margin:0;color:#2e394c}";const R={noMatches:"No matches"},S=class{constructor(e){t(this,e),this.internallistboxoptionsupdated=o(this,"internallistboxoptionsupdated",7),this.filter="",this.selectedValues=[],this.listboxOptions=[]}onFocus(){g(this.root)}onBlur(){p(this.root)}onKeydown(t){switch(t.key){case"Enter":return t.preventDefault(),void F(this.root,(t=>this.updateValue(t)));case"ArrowDown":return t.preventDefault(),void(v(this.root)?(t.stopPropagation(),y(this.root)):b(this.root));case"ArrowUp":return t.preventDefault(),void(m(this.root)?(t.stopPropagation(),w(this.root)):f(this.root));case"Home":return t.preventDefault(),void b(this.root);case"End":return t.preventDefault(),void f(this.root);case" ":return void t.preventDefault()}1!==t.key.length||j(this.root,t.key)}onKeyup(t){switch(t.key){case" ":return void F(this.root,(t=>this.updateValue(t)))}}onMousemove(){p(this.root)}onClick(t){C("gux-option",t,(t=>{A(t,(t=>this.updateValue(t)))}))}async guxSelectActive(){F(this.root,(t=>this.updateValue(t)))}setListboxOptions(){this.value&&(this.selectedValues=this.value.split(",")),this.listboxOptions=Array.from(this.root.children),this.internallistboxoptionsupdated.emit()}updateValue(t){this.value!==t&&(this.value=t),d(this.root,"input"),d(this.root,"change")}async componentWillLoad(){c(this.root),this.i18n=await a(this.root,R),this.setListboxOptions()}componentWillRender(){this.listboxOptions.forEach((t=>{t.selected=t.value===this.value,t.filtered=!k(t,this.filter)})),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((t=>!t.filtered)).length,this.filter&&b(this.root)}renderAllListboxOptionsFiltered(){if(this.allListboxOptionsFiltered)return i("div",{class:"gux-no-matches"},this.i18n("noMatches"))}render(){return i(n,{role:"listbox",tabindex:0},i("slot",{onSlotchange:()=>this.setListboxOptions()}),this.renderAllListboxOptionsFiltered())}get root(){return s(this)}};S.style=":host{box-sizing:border-box;display:block;max-height:20rem;padding:8px 0;margin:0;overflow-y:auto;color:#2e394c;background:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;outline:none}:host(:focus){outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-no-matches{box-sizing:border-box;height:32px;padding:8px 16px;color:#2e394c}";const B=class{constructor(e){t(this,e),this.active=!1,this.selected=!1,this.disabled=!1,this.filtered=!1,this.hovered=!1}onmouseenter(){this.hovered=!0}onMouseleave(){this.hovered=!1}componentWillLoad(){this.root.id=this.root.id||E("gux-option")}getAriaSelected(){return!this.disabled&&(this.selected?"true":"false")}render(){return i(n,{role:"option",class:{"gux-active":this.active,"gux-disabled":this.disabled,"gux-filtered":this.filtered,"gux-hovered":this.hovered,"gux-selected":this.selected},"aria-selected":this.getAriaSelected(),"aria-disabled":this.disabled.toString()},i("slot",null))}get root(){return s(this)}};B.style="gux-option{box-sizing:border-box;display:flex;min-height:32px;padding:8px 16px;color:#2e394c;word-wrap:break-word;cursor:pointer}gux-option.gux-disabled{pointer-events:none;cursor:default;opacity:0.5}gux-option.gux-selected{background:#deeaff}gux-option.gux-active,gux-option.gux-hovered:not(:disabled){color:#fdfdfd;background:#2a60c8}gux-option.gux-filtered{display:none}";export{O as gux_dropdown,S as gux_listbox,B as gux_option}
|
|
1
|
+
import{r as t,f as e,h as i,g as s,c as o,H as n}from"./p-7a1d01cb.js";import{O as r}from"./p-f77f86a9.js";import{b as a}from"./p-c35bd7c8.js";import{s as d}from"./p-d176c2ae.js";import{o as l,c as u}from"./p-3f5341ea.js";import{b as h}from"./p-091f51f6.js";import{t as c}from"./p-6f28cce9.js";import{g as x,s as g,c as p,a as f,b,h as m,d as w,e as v,f as y,i as F,j,m as k,o as A}from"./p-adf414b8.js";import{w as C}from"./p-76ff3e75.js";import{r as E}from"./p-cbcbd1bb.js";import"./p-8a133b9b.js";const L={filterResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown"};const O=class{constructor(e){t(this,e),this.disabled=!1,this.required=!1,this.filterable=!1,this.hasError=!1,this.expanded=!1,this.filter=""}focusSelectedItemAfterRender(t){t&&this.listboxElement&&h((()=>{this.listboxElement.focus(),this.filterable&&this.filterElement.focus()})),t||(this.filter="")}validateValue(t){void 0!==t?this.getOptionElementByValue(t)?this.listboxElement.value=t:this.value=void 0:this.listboxElement&&(this.listboxElement.value=t)}onKeydown(t){switch(t.key){case"Escape":return this.filterable&&document.activeElement===this.listboxElement?this.filterElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.filterElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("focusFieldButton")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0))}}onInternallistboxoptionsupdated(t){t.stopPropagation(),e(this.root)}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t)}onClickOutside(){this.collapseListbox("noFocusChange")}async componentWillLoad(){c(this.root),this.i18n=await a(this.root,L),this.listboxElement=this.root.querySelector("gux-listbox"),this.validateValue(this.value),l(this.root,(()=>{e(this.root)}))}componentDidLoad(){this.listboxElement.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),this.listboxElement.addEventListener("change",(t=>{t.stopPropagation()}))}componentWillRender(){this.validateValue(this.value),this.listboxElement.filter=this.filter}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}getOptionElementByValue(t){const e=this.root.querySelectorAll("gux-option");return Array.from(e).find((e=>e.value===t))}fieldButtonClick(){this.expanded=!this.expanded}filterInput(t){t.stopPropagation(),this.filter=this.filterElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.filterable&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.filterable&&document.activeElement===this.listboxElement}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){switch(t.key){case"ArrowDown":return t.stopImmediatePropagation(),void this.listboxElement.focus();case"Enter":return this.listboxElement.guxSelectActive(),void t.preventDefault()}}filterKeyup(t){switch(t.key){case" ":return void t.preventDefault()}}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,d(this.root,"input"),d(this.root,"change")),this.collapseListbox("focusFieldButton")}getSuggestionText(t){const e=t.length;if(e>0){const i=x(this.listboxElement,t);if(i)return i.textContent.trim().substring(e)}return""}renderTargetDisplay(){const t=this.getOptionElementByValue(this.value);return t?i("div",{class:"gux-selected-option"},t.textContent):i("div",{class:"gux-placeholder"},this.placeholder||this.i18n("noSelection"))}renderFilterInputField(){if(this.expanded&&this.filterable)return i("div",{class:"gux-field gux-input-field"},i("div",{class:"gux-field-content"},i("div",{class:"gux-filter"},i("div",{class:"gux-filter-display"},i("span",{class:"gux-filter-text"},this.filter),i("span",{class:"gux-filter-suggestion"},this.getSuggestionText(this.filter))),i("div",{class:"input-and-dropdown-button"},i("input",{onClick:this.fieldButtonClick.bind(this),class:"gux-filter-input",type:"text","aria-label":this.i18n("filterResults"),ref:t=>this.filterElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this)})))))}renderPopup(){return i("div",{slot:"popup",class:"gux-listbox-container"},i("slot",null))}renderTarget(){return i("div",{class:{"gux-target-container-expanded":this.expanded&&this.filterable,"gux-target-container-collapsed":!(this.expanded&&this.filterable),"gux-error":this.hasError},slot:"target"},this.renderFilterInputField(),i("button",{type:"button",class:"gux-field gux-field-button",disabled:u(this.root),onClick:this.fieldButtonClick.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),i("gux-icon",{class:{"gux-expand-icon":!0},"screenreader-text":this.i18n("dropdown"),iconName:"chevron-small-down"})))}renderTargetContent(){if(!this.expanded||!this.filterable)return i("div",{class:"gux-field-content"},this.renderTargetDisplay())}render(){return i("gux-popup",{expanded:this.expanded,disabled:this.disabled},this.renderTarget(),this.renderPopup())}get root(){return s(this)}static get watchers(){return{expanded:["focusSelectedItemAfterRender"],value:["validateValue"]}}};(function(t,e,i,s){var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);n>3&&r&&Object.defineProperty(e,i,r)})([r({triggerEvents:"mousedown"})],O.prototype,"onClickOutside",null),O.style=":host{color:#2e394c}.gux-field,.gux-target-container-expanded{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:6px 8px 6px 6px;font-family:inherit;font-size:12px;line-height:1.6667;cursor:pointer;background-color:#f6f7f9}.gux-error.gux-target-container-collapsed .gux-field-button,.gux-error.gux-target-container-expanded{border-color:#ea0b0b}.gux-field.gux-input-field{height:30px}.gux-field .gux-field-content{display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;min-width:0;height:100%}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;padding-left:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter{position:relative;height:100%}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;width:100%;color:transparent;caret-color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:#596373}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:#596373}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;width:16px;height:16px;padding-left:8px;color:#596373}.gux-target-container-expanded{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-expanded:focus-within{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-target-container-expanded .gux-filter-input{background-color:inherit;border:none}.gux-target-container-expanded .gux-filter-input:focus{border:none;outline:none}.gux-target-container-expanded .gux-field-button{width:auto;height:30px;padding:0 0 0 8px;margin:0;background:inherit;border:none;outline:none;box-shadow:none}.gux-target-container-expanded .gux-field-button:focus{outline:none}.gux-target-container-collapsed .gux-field-button{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-collapsed .gux-field-button:focus{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-listbox-container{box-sizing:border-box;margin:0;color:#2e394c}";const R={noMatches:"No matches"},S=class{constructor(e){t(this,e),this.internallistboxoptionsupdated=o(this,"internallistboxoptionsupdated",7),this.filter="",this.selectedValues=[],this.listboxOptions=[]}onFocus(){g(this.root)}onBlur(){p(this.root)}onKeydown(t){switch(t.key){case"Enter":return t.preventDefault(),void F(this.root,(t=>this.updateValue(t)));case"ArrowDown":return t.preventDefault(),void(v(this.root)?(t.stopPropagation(),y(this.root)):b(this.root));case"ArrowUp":return t.preventDefault(),void(m(this.root)?(t.stopPropagation(),w(this.root)):f(this.root));case"Home":return t.preventDefault(),void b(this.root);case"End":return t.preventDefault(),void f(this.root);case" ":return void t.preventDefault()}1!==t.key.length||j(this.root,t.key)}onKeyup(t){switch(t.key){case" ":return void F(this.root,(t=>this.updateValue(t)))}}onMousemove(){p(this.root)}onClick(t){C("gux-option",t,(t=>{A(t,(t=>this.updateValue(t)))}))}async guxSelectActive(){F(this.root,(t=>this.updateValue(t)))}setListboxOptions(){this.value&&(this.selectedValues=this.value.split(",")),this.listboxOptions=Array.from(this.root.children),this.internallistboxoptionsupdated.emit()}updateValue(t){this.value!==t&&(this.value=t),d(this.root,"input"),d(this.root,"change")}async componentWillLoad(){c(this.root),this.i18n=await a(this.root,R),this.setListboxOptions()}componentWillRender(){this.listboxOptions.forEach((t=>{t.selected=t.value===this.value,t.filtered=!k(t,this.filter)})),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((t=>!t.filtered)).length,this.filter&&b(this.root)}renderAllListboxOptionsFiltered(){if(this.allListboxOptionsFiltered)return i("div",{class:"gux-no-matches"},this.i18n("noMatches"))}render(){return i(n,{role:"listbox",tabindex:0},i("slot",{onSlotchange:()=>this.setListboxOptions()}),this.renderAllListboxOptionsFiltered())}get root(){return s(this)}};S.style=":host{box-sizing:border-box;display:block;max-height:20rem;padding:8px 0;margin:0;overflow-y:auto;color:#2e394c;background:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;outline:none}:host(:focus){outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-no-matches{box-sizing:border-box;height:32px;padding:8px 16px;color:#2e394c}";const B=class{constructor(e){t(this,e),this.active=!1,this.selected=!1,this.disabled=!1,this.filtered=!1,this.hovered=!1}onmouseenter(){this.hovered=!0}onMouseleave(){this.hovered=!1}componentWillLoad(){this.root.id=this.root.id||E("gux-option")}getAriaSelected(){return!this.disabled&&(this.selected?"true":"false")}render(){return i(n,{role:"option",class:{"gux-active":this.active,"gux-disabled":this.disabled,"gux-filtered":this.filtered,"gux-hovered":this.hovered,"gux-selected":this.selected},"aria-selected":this.getAriaSelected(),"aria-disabled":this.disabled.toString()},i("slot",null))}get root(){return s(this)}};B.style="gux-option{box-sizing:border-box;display:flex;min-height:32px;padding:8px 16px;color:#2e394c;word-wrap:break-word;cursor:pointer}gux-option.gux-disabled{pointer-events:none;cursor:default;opacity:0.5}gux-option.gux-selected{background:#deeaff}gux-option.gux-active,gux-option.gux-hovered:not(:disabled){color:#fdfdfd;background:#2a60c8}gux-option.gux-filtered{display:none}";export{O as gux_dropdown,S as gux_listbox,B as gux_option}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i,r as c,h as e,g as a}from"./p-7a1d01cb.js";import{t as o}from"./p-aec74037.js";import{l as t}from"./p-3184268e.js";const r={"ic-agent":"agent",consultant:"agent","ic-agent-group":"agent-group","pc-user":"user","ic-person":"user",customer:"user",interactions:"user-interactions","interaction-sound":"user-interactions","add-user":"user-add","ic-contact-add":"user-add","pc-group":"user-group","ic-people":"user-group","ic-group":"user-group",users:"user-group","ic-contact-id":"user-contact-id",contact:"user-contact-id","person-circle":"user-circle",directory:"user-directory","multi-agent-lines":"user-directory","ic-cobrowse":"cobrowse",screenshare:"cobrowse","ic-face-happy":"face-happy","ic-face-neutral":"face-neutral","ic-face-sad":"face-sad","ic-face-happy-solid":"face-happy-solid","ic-face-sad-solid":"face-sad-solid","cc-custom-default":"cjv-custom-default","cc-web-session":"cjv-web-session","cc-delivery":"cjv-delivery","cc-policy-contract":"cjv-policy-contract","cc-generic-application":"cjv-generic-application","cc-finance-invoice":"cjv-finance-invoice","beyond-logo":"product-logo-beyond","ic-special-g-brandmark":"product-logo-g","logo-genesys":"product-logo-g","interactions-alpha":"toolbar-interactions","interactions-off-alpha":"toolbar-interactions-disable",assist:"toolbar-assist","assist-off":"toolbar-assist-disable","chat-alpha":"toolbar-chat","chat-off-alpha":"toolbar-chat-disable","phone-alpha":"toolbar-phone","phone-off-alpha":"toolbar-phone-disable","phone-active-1":"toolbar-phone-active-1","phone-active-2":"toolbar-phone-active-2","phone-active-3":"toolbar-phone-active-3","video-alpha":"toolbar-video","video-off-alpha":"toolbar-video-disable","apps-alpha":"toolbar-apps",apps:"toolbar-apps-disable","favs-alpha":"toolbar-favourite","inbox-alpha":"toolbar-inbox",question:"toolbar-help","ic-phone":"phone","notification-phone":"phone","ic-phone-forward":"phone-forward","call-forward":"phone-forward","call-forward-alpha":"phone-forward","ic-phone-bell":"phone-bell","phone-ring":"phone-bell","ic-phone-voice":"phone-voice","call-volume":"phone-voice","ic-phone-disabled":"phone-disable","ic-phone-disable":"phone-disable","phone-off":"phone-disable","cc-disconnected-system":"phone-disable","cc-disconnected":"phone-disable","ic-phone-hold":"phone-hold","call-history":"phone-call-history","outbound-call":"phone-outbound","cc-outbound-call":"phone-outbound","missed-call":"phone-missed-call","cc-missed-inbound":"phone-missed-call",callback:"phone-callback",hangup:"phone-hangup","ic-phone-hang-up":"phone-hangup","ic-voicemail":"voicemail","ic-dialpad":"phone-dialpad","ic-phone-dail":"phone-dialpad",dialpad:"phone-dialpad","ic-status-call-dialing":"phone-dialpad","ic-status-chat":"chat","ic-chat":"chat","ic-chat-oval":"chat","notification-chat":"chat","cc-webchat-bot":"chat","cc-webchat-missed":"chat","ic-text-detail":"chat","iic-chat-oval-close":"chat-close","iic-chat-end":"chat-close","ic-chat-disable":"chat-disable","chat-off":"chat-disable","ic-chat-oval-multi":"chat-multi","ic-chat-multi":"chat-multi","chat-alert":"chat-bell","ic-email":"message-email","ic-status-email":"message-email","ic-cx-24-flat-mail":"message-email",envelope:"message-email","notification-email":"message-email","reply-standard":"message-reply","forward-standard":"message-forward","ic-attach":"attachment",paperclip:"attachment","ic-video":"video","ic-video-disable":"video-disable","video-off":"video-disable","ic-audio-rec":"microphone",mic:"microphone","ic-audio-rec-disable":"microphone-disable","mic-off":"microphone-disable","mic-talking":"microphone-talking","ic-audio-yes":"volume-up","ic-audio-no":"volume-none","volume-off-alt":"volume-none","ic-audio-disable":"volume-disable","volume-off":"volume-disable","ic-audio-music":"music","ic-control-skip-left":"control-skip-left",backward:"control-skip-left","ic-control-skip-right":"control-skip-right",forward:"control-skip-right","ic-control-backward":"control-start","fast-backward":"control-start","ic-control-forward":"control-end","fast-forward":"control-end","ic-slide-fwd":"control-slide-forward","step-forward":"control-slide-forward","ic-slide-back":"control-slide-back","step-backward":"control-slide-back",play:"control-play","ic-24-control-play-solid":"control-play","ic-control-stop":"control-stop",stop:"control-stop",pause:"control-pause","ic-24-control=pause-solid":"control-pause","ic-generic-pc":"device-pc",monitor:"device-pc","ic-video-cam-1":"webcam","ic-videocam-2":"webcam","ic-video-cam-1-disable":"webcam-disable","ic-videocam-2-disable":"webcam-disable","ic-sms-cancel":"sms-close","sms-cancel":"sms-close","ic-sms-message":"sms","sms-message":"sms","ic-generic-laptop":"device-laptop","ic-generic-tablet":"device-tablet","ic-camera":"device-camera","ic-host":"device-server","ic-phones":"device-cellphone","ic-generic-mobile-phone":"device-headphones","ic-folder":"folder","ic-folder-open":"folder-open","ic-folder-add":"folder-add","file-o":"file","ic-page-single":"file","ic-doc-list":"file","ic-doc-generic":"file","files-o":"file-all","ic-page-multi":"file-all","ic-doc-all":"file-all","ic-doc-report-b":"file-report",image:"file-image-landscape","ic-picture":"file-image-landscape","ic-doc-detail":"file-text",preview:"file-preview","ic-page-search":"file-preview",unassign:"upload","ic-upload":"upload","ic-download":"download",feedback:"comments","comment-ellipsis":"comments","comment-ellipsis-off":"comments-disable","ic-thumbs-up":"thumbs-up","ic-thumbs-down":"thumbs-down","ic-24-graph-edit":"edit","ic-graph-edit":"edit","ic-pencil":"edit","ic-multiples":"clone","ic-clone":"clone","ic-copy":"copy","ic-paste":"paste","ic-clipboard":"clipboard",scissors:"cut","ic-cut":"cut","ic-trash":"delete","ic-refresh-with-feedback":"refresh","ic-reload":"refresh","ic-refresh":"refresh","ic-reset":"reset","pop-out":"window-popout","ic-outbound":"window-popout","ic-exit-full-screen":"window-contract","screen-small":"window-contract","ic-window-contract":"window-contract","ic-full-screen":"window-fullscreen","screen-full":"window-fullscreen","ic-window-expand":"window-fullscreen","ic-drag-out":"window-drag-out","ic-actual-size":"actual-size","ic-app-generic":"app-generic","ic-app-chart":"app-chart","ic-app-layout":"app-layout",template:"app-layout","ic-biz-attribute":"app-table","ic-app-table":"app-table","ic-circle-add":"add-circle","plus-circle":"add-circle","ic-timeline":"timeline",history:"timeline","ic-clock":"clock-outline","ic-clock-b":"clock","ic-quotes":"quote-right","robot-head":"bot","robot-circle":"bot",education:"skills","ic-skills":"skills","ic-campaign":"campaign","ic-actionable":"bolt","ic-palette":"palette","ic-tenant":"tenant",cube:"tenant","ic-lunch":"lunch",cubes:"configuration","ic-configuration":"configuration","ic-stamp":"stamp","ic-ivr":"record","ic-follow":"follow","paint-bucket":"paint","ic-dash":"dash","ic-generic":"generic",signal:"low-bandwidth","ic-settings-gear":"settings","ic-settings-gears":"settings",cog:"settings","reset-view":"settings","ic-dashtab-settings":"settings",cogs:"settings","ic-locked":"lock","ic-secure":"lock","pause-secure":"lock","ic-link":"link","ic-unlocked":"unlock","ic-unlinked":"unlink","link-broken":"unlink","ic-certificate":"certificate","ic-access":"key","ic-sun-default":"sun","ic-moon-default":"moon","ic-app-all":"view-all","ic-cells":"view-cells","customize-columns":"view-cells","ic-view-lists":"view-lists","ic-view-list":"view-list",list:"view-list","ic-view-stacked":"view-stacked","stacked-mode":"view-stacked","ic-view-grid":"view-grid","grid-mode":"view-grid","ic-video-roster":"view-roster","ic-inspect":"inspect",eye:"inspect","ic-status-monitored-yes":"inspect","ic-inspect-disable":"inspect-disable",hide:"inspect-disable",whistle:"coaching","ic-rss":"rss","ic-rss-square":"rss","ic-twitter":"twitter","ic-twitter-square":"twitter","twitter-white-on-blue":"twitter","ic-facebook-square":"facebook","ic-linkedin-square":"linkedin","ic-share":"share","ic-sharethis":"share","viber-icon":"viber","at-thin":"at","ic-arrow-up":"arrow-up","long-up-arrow":"arrow-up","ic-arrow-down":"arrow-down","ic-arrow-left":"arrow-left","ic-arrow-right":"arrow-right","ic-escalate":"arrow-up-right","ic-out-small":"arrow-up-left","ic-in-small":"arrow-down-right","ic-iw-arrow-outline-in":"arrow-down-right","ic-chevron-left":"chevron-left","ic-chevron-right":"chevron-right","ic-transfer":"transfer",exchange:"transfer","ic-bar-graph-variable-1":"graph-bar-horizontal","ic-graph-barline":"graph-bar-horizontal","ic-24-graph-bar":"graph-bar-horizontal","ic-graph-bar":"graph-bar-horizontal","ic-graph-stack":"graph-bar-horizontal","ic-24-graph-stack":"graph-bar-horizontal","ic-bar-graph-variable-2":"graph-bar-vertical","ic-24-graph-bar-verticalertical":"graph-bar-vertical","ic-24-graph-stack-vertical":"graph-bar-vertical","ic-graph-line":"graph-line","ic-graph-chart":"graph-chart","ic-graph-spark":"graph-spark","ic-pie-chart":"graph-pie","ic-pin-time":"pin-location","ic-pin":"pin-location",marker:"pin-location","thumbtack-on":"pin","ic-pinned":"pin","ic-server":"server","ic-globe":"globe","ic-home":"home",house:"home","ic-cloud-b":"cloud","up-cloud":"cloud","ic-cloud-a":"cloud-outline","ic-site":"site",building:"site","ic-search":"search","magnifying-glass":"search","ic-calendar-generic":"calendar","ic-calendar-month":"calendar","ic-calendar-month-highlight":"calendar","ic-calendar-day":"calendar","calendar-days":"calendar","calendar-range":"calendar","ic-select-no":"checkbox","ic-checkbox":"checkbox","ic-checkbox-tick":"checkbox-active","ic-checkbox-tick-lock":"checkbox-active","ic-checklist-tick-lock":"checkbox-active","check-square":"checkbox-active","ic-select-yes":"checkbox-partial","ic-radio":"radio","ic-radio-active":"radio-active","radio-button":"radio-active","ic-add":"add",plus:"add","ic-iw-circle-no-add":"add","ic-close":"close","close-x":"close",remove:"close","ic-arrow-solid-up":"arrow-solid-up","ic-expand-up":"arrow-solid-up","caret-up":"arrow-solid-up","ic-search-previous":"arrow-solid-up","chevron-circle-up":"arrow-solid-up","ic-arrow-solid-down":"arrow-solid-down","ic-expand-down":"arrow-solid-down","caret-down":"arrow-solid-down","ic-search-next":"arrow-solid-down","chevron-circle-down":"arrow-solid-down","ic-arrow-solid-left":"arrow-solid-left","ic-expand-left":"arrow-solid-left","caret-left":"arrow-solid-left","ic-control-left":"arrow-solid-left","chevron-circle-left":"arrow-solid-left","ic-arrow-solid-right":"arrow-solid-right","ic-expand-right":"arrow-solid-right","caret-right":"arrow-solid-right","ic-control-right":"arrow-solid-right","chevron-circle-right":"arrow-solid-right","ic-dropdown-arrow":"chevron-small-down","ic-iw-circle-no-chevron-down":"chevron-small-down","ic-arrow-accordian":"chevron-small-down","ic-iw-circle-no-chevron-up":"chevron-small-up","ic-chevron-small-left":"chevron-small-left","angle-left":"chevron-small-left","ic-chevron-small-right":"chevron-small-right","angle-right":"chevron-small-right","ic-arrow-left-dbl":"chevron-double-left","ic-disclosure-left":"chevron-double-left","ic-arrow-right-dbl":"chevron-double-right","ic-arrow-disclosure":"chevron-double-right","ic-stars":"rating-active","favs-full":"rating-active",favs:"rating-active",star:"rating-active","ic-star-outline":"rating","ic-star-half":"rating-partial","ic-tick":"checkmark","ic-small-checkmark":"checkmark",check:"checkmark","ic-campaign-done":"checkmark","ic-more":"menu-kebab-vertical","ellipsis-v":"menu-kebab-vertical","ellipsis-h":"manu-kebab-h","ic-filter":"filter","ic-menu-hamburger":"menu",bars:"menu","ic-alert-checkmark":"alert-success","ic-login-checkmark":"alert-success","check-circle":"alert-success","ic-alert-triangle":"alert-warning-triangle","ic-alert-octo":"alert-warning-octogon","ic-alert-circle":"alert-warning-octogon","ic-iw-done-and-stop":"alert-warning-octogon",warning:"alert-warning-octogon","ic-tag":"tag","ic-tag-stat-remove":"tag-remove","ic-tag-stat-add":"tag-add","chevron-circle-collapse-double":"collapse","chevron-circle-expand-double":"expand","ic-grip-horizontal":"grab-horizontal","ic-grab":"grab-horizontal","ic-grip-vertical":"grab-vertical","ic-grab-verticalertical":"grab-vertical","sign-out":"logout","ic-out":"logout","ic-export":"logout","ic-status-call-ringing":"bell",bell2:"bell","ic-bell":"bell","ic-bug":"bug","ic-alert-info":"alert-info","ic-login-info":"alert-info","info-thick":"alert-info","ic-zoom-in":"zoom-in","magnifying-glass-plus":"zoom-in","ic-zoom-out":"zoom-out","magnifying-glass-minus":"zoom-out"},l=["add-user","align-center","align-left","align-right","angle-down","angle-left","angle-right","angle-up","apps-alpha","apps","arrow-s","arrows-h","arrows-v","assist-off","assist","backward","bandage","bars","bell2","beyond-logo","bold","border-dashed","border-dotted","border-solid","btmleft","btmright","btn-group-choose","building","button","calendar-days","calendar-dots-day","calendar-dots-month","calendar-dots-week","calendar-range","call-forward-alpha","call-forward","call-history","call-volume","callback","caret-down","caret-left","caret-right","caret-up","cc-custom-default","cc-delivery","cc-disconnected-system","cc-disconnected","cc-finance-invoice","cc-generic-application","cc-inbound-queue","cc-inbound","cc-missed-inbound","cc-outbound-call","cc-policy-contract","cc-web-session","cc-webchat-bot","cc-webchat-missed","chat-alert-muted","chat-alert","chat-alpha","chat-off-alpha","chat-off","check-circle","check-square","check","chevron-circle-collapse-double","chevron-circle-down","chevron-circle-expand-double","chevron-circle-left","chevron-circle-right","chevron-circle-up","chevron-down","chevron-up","circle","close-preview","close-x","cog","comet","comment-ellipsis-off","comment-ellipsis","consultant","contact","cube","cubes","customer","customize-columns","dialpad","diamond","directory","drop-down","ellipsis-h","ellipsis-v","envelope","eye","fast-backward","fast-forward","favs-alpha","favs-full","favs","feedback","file-o","files-o","forward","genesys-logo-full","hangup","history","horz-container","house","ic-24-control-pause-solid","ic-24-control-pause","ic-24-control-play-solid","ic-24-control-play","ic-24-control-stop","ic-24-graph-bar-stack-vertical","ic-24-graph-bar-verticalertical","ic-24-graph-bar","ic-24-graph-edit","ic-24-graph-grid-cell","ic-24-graph-grid","ic-24-graph-line","ic-24-graph-stack","ic-24-graph-variable-2","ic-48-adjacent","ic-48-all","ic-48-control-pause","ic-48-control-play","ic-48-incoming","ic-48-outgoing","ic-access","ic-actionable-disable","ic-actionable-notset","ic-actionable","ic-add-bold","ic-add","ic-adjust","ic-agent-add","ic-agent-edit","ic-agent-group","ic-agent-like","ic-agent-offline","ic-agent-ready-partial","ic-agent-ready","ic-agent-search","ic-agent-time","ic-agent-unavailable","ic-agent","ic-aix","ic-alert-checkmark","ic-alert-circle","ic-alert-info","ic-alert-octo","ic-alert-triangle","ic-app-all","ic-app-chart","ic-app-generic","ic-app-layout","ic-app-table","ic-archive","ic-arrow-accordion","ic-arrow-disclosure","ic-arrow-down","ic-arrow-left-dbl","ic-arrow-left","ic-arrow-popover","ic-arrow-right-dbl","ic-arrow-right","ic-arrow-solid-down","ic-arrow-solid-left","ic-arrow-solid-right","ic-arrow-solid-up","ic-arrow-up","ic-attach","ic-audio-disable","ic-audio-music","ic-audio-no","ic-audio-rec-disable","ic-audio-rec","ic-audio-voice-disable","ic-audio-voice","ic-audio-yes","ic-autoscroll-off","ic-bar-graph-variable-1","ic-bar-graph-variable-2","ic-bell","ic-bezier","ic-biz-attribute-disable","ic-biz-attribute","ic-blocks","ic-book-address","ic-book-open-details","ic-break","ic-briefcase","ic-budget","ic-bug","ic-calculator","ic-calendar-day","ic-calendar-generic","ic-calendar-media-voice","ic-calendar-month-highlight","ic-calendar-month","ic-camera","ic-campaign-disable","ic-campaign-done","ic-campaign-schedule","ic-campaign-stop","ic-campaign","ic-cart","ic-cells","ic-certificate","ic-chat-add","ic-chat-disable","ic-chat-edit-disable","ic-chat-edit","ic-chat-end","ic-chat-forward","ic-chat-frown","ic-chat-multi","ic-chat-oval-close","ic-chat-oval-multi","ic-chat-oval-transfer","ic-chat-oval","ic-chat-smile","ic-chat-video","ic-chat","ic-checkbox-tick-lock","ic-checkbox-tick","ic-checkbox","ic-checklist-tick-lock","ic-checkmark-bold","ic-chevron-left","ic-chevron-right","ic-chevron-small-collapse-all","ic-chevron-small-expand-all","ic-chevron-small-left","ic-chevron-small-right","ic-circle-add","ic-circle-arrow-down","ic-circle-arrow-left","ic-circle-arrow-right","ic-circle-arrow-up","ic-circle-close","ic-circle-expand-down","ic-circle-expand-left","ic-circle-expand-right","ic-circle-expand-up","ic-cleanup","ic-clip-approve","ic-clip-exchange","ic-clip-list","ic-clipboard","ic-clock-b","ic-clock-stopwatch","ic-clock-timezone","ic-clock","ic-clone","ic-close-bold","ic-close","ic-cloud-a","ic-cloud-b","ic-cm-96-cloud","ic-cm-96-desktop","ic-cm-96-network","ic-cm-96-outbound","ic-cm-96-server-add","ic-cm-96-server","ic-cm-96-tenant","ic-cm-96-user","ic-cm-96-voice","ic-cobrowse-chat","ic-cobrowse-disable","ic-cobrowse-end","ic-cobrowse","ic-code","ic-collapse","ic-column-direction-active","ic-column-direction","ic-comment-corner","ic-conference-all-channels","ic-configuration-disable","ic-configuration","ic-contact-add","ic-contact-assign","ic-contact-delete","ic-contact-id-fetch","ic-contact-id","ic-contact-switch","ic-contract-a","ic-contract-b","ic-contract-c","ic-contract-d","ic-control-backward","ic-control-forward","ic-control-left","ic-control-right","ic-control-skip-left","ic-control-skip-next","ic-control-skip-previous","ic-control-skip-right","ic-control-stop","ic-copy","ic-credit-card","ic-cs-mobile","ic-cs-social","ic-cs-web","ic-currency-dollar-sign","ic-cut","ic-cx-24-flat-agent","ic-cx-24-flat-avatar","ic-cx-24-flat-cal","ic-cx-24-flat-chat","ic-cx-24-flat-cobrowse","ic-cx-24-flat-consult","ic-cx-24-flat-inbound","ic-cx-24-flat-lock","ic-cx-24-flat-mail","ic-cx-24-flat-offer","ic-cx-24-flat-outbound","ic-cx-24-flat-pref","ic-cx-24-flat-search","ic-cx-24-flat-survey","ic-cx-24-flat-vid","ic-cx-24-flat-vm","ic-dash","ic-dashtab-dash","ic-dashtab-settings","ic-dashtab-xwidget","ic-dialpad","ic-disclosure-left","ic-doc-add","ic-doc-alert-b","ic-doc-all-save","ic-doc-all","ic-doc-detail-add","ic-doc-detail","ic-doc-form-b","ic-doc-forward","ic-doc-generic-b","ic-doc-generic","ic-doc-list-b","ic-doc-list","ic-doc-no","ic-doc-phone-call","ic-doc-report-b","ic-doc-save","ic-doc-segmentation-b","ic-doc-yes-b","ic-doc-yes","ic-document-scenario","ic-double-down","ic-double-up","ic-download","ic-drag-out","ic-dropdown-arrow","ic-email-delete","ic-email-forward","ic-email-move-to-folder","ic-email-reply-all","ic-email-reply","ic-email-resend","ic-email-send","ic-email-transfer","ic-email","ic-enterprise-extension","ic-error-bold","ic-escalate-from","ic-escalate-to","ic-escalate","ic-event-cluster-mini","ic-event-cluster","ic-exit-full-screen","ic-expand-down","ic-expand-left","ic-expand-right","ic-expand-up","ic-expand","ic-export","ic-face-happy","ic-face-neutral","ic-face-sad","ic-face-solid-happy","ic-face-solid-sad","ic-face-unknown","ic-facebook-square","ic-file-folder-drawer","ic-files","ic-film-broadcast","ic-film","ic-filter","ic-finger-pointing","ic-folder-add","ic-folder-disabled","ic-folder-media","ic-folder-move","ic-folder-open-in","ic-folder-open-out","ic-folder-open","ic-folder-progress","ic-folder","ic-follow-disable","ic-follow","ic-font-bold","ic-font-decrease","ic-font-increase","ic-font-italic","ic-font-style","ic-font-underline","ic-full-screen","ic-gear-add","ic-gear-remove","ic-generic-disable","ic-generic-laptop","ic-generic-mobile-phone","ic-generic-pc","ic-generic-tablet","ic-generic","ic-globe","ic-google-plus-circle","ic-grab-verticalertical","ic-grab","ic-graph-bar","ic-graph-barline","ic-graph-bubble","ic-graph-chart","ic-graph-column","ic-graph-edit","ic-graph-grid","ic-graph-line","ic-graph-spark","ic-graph-stack","ic-grip-horizontal","ic-grip-vertical","ic-group","ic-help","ic-home","ic-host","ic-hp","ic-import","ic-in-small","ic-in","ic-inbound","ic-insert-block-left","ic-insert-block-right","ic-inspect-chat-disable","ic-inspect-chat","ic-inspect-disable","ic-inspect-phone-disable","ic-inspect-phone","ic-inspect-star","ic-inspect","ic-ivr-disable","ic-ivr","ic-iw-24-line-help","ic-iw-24-line-notification","ic-iw-24-line-teamcommunicator","ic-iw-24-line-voicemail","ic-iw-active-circle-callback","ic-iw-active-circle-campaign","ic-iw-active-circle-chat-round","ic-iw-active-circle-chat-square","ic-iw-active-circle-doc","ic-iw-active-circle-email","ic-iw-active-circle-facebook","ic-iw-active-circle-globe","ic-iw-active-circle-media","ic-iw-active-circle-phone-cancel","ic-iw-active-circle-phone-conf-susp","ic-iw-active-circle-phone-conf","ic-iw-active-circle-phone-dial","ic-iw-active-circle-phone-pause","ic-iw-active-circle-phone-play","ic-iw-active-circle-phone-susp","ic-iw-active-circle-phone-voice","ic-iw-active-circle-question","ic-iw-active-circle-rss","ic-iw-active-circle-twitter","ic-iw-active-circle-voice-chat","ic-iw-active-circle-voice","ic-iw-active-square-view","ic-iw-arrow-outline-in","ic-iw-circle-no-add","ic-iw-circle-no-chevron-down","ic-iw-circle-no-chevron-up","ic-iw-circle-yes-add","ic-iw-circle-yes-chevron-down","ic-iw-circle-yes-chevron-up","ic-iw-control-circle-back","ic-iw-control-circle-fwd","ic-iw-control-circle-home","ic-iw-control-circle-play","ic-iw-control-circle-stop","ic-iw-done-and-stop","ic-iw-history","ic-iw-in-progress","ic-iw-inspect-email","ic-iw-inspect-voice-cancel","ic-iw-inspect-voice","ic-iw-monitor-chat","ic-iw-monitor-voice","ic-iw-queue","ic-iw-routing-point","ic-iw-save-as","ic-iw-save","ic-iw-square-facebook-email","ic-iw-square-facebook-no","ic-iw-square-facebook-transfer","ic-iw-square-facebook-workbin","ic-iw-square-rss-transfer","ic-iw-square-rss-workbin","ic-iw-square-twitter-follow","ic-iw-square-twitter-no","ic-iw-square-twitter-transfer","ic-iw-square-twitter-workbin","ic-iw-video-suspend","ic-iw-video-thumb-cancel","ic-iw-video-thumb-show","ic-iw-video-thumb-swap","ic-iw-voice-inspect-cancel","ic-iw-voice-inspect","ic-key-dot-dashed","ic-link","ic-linkedin-square","ic-linux","ic-list-bullets","ic-list-numbers","ic-locked","ic-login-checkmark","ic-login-error","ic-login-info","ic-lunch","ic-measure-growing","ic-measure-point-in-time","ic-measure-sliding","ic-measure-today","ic-menu-hamburger","ic-merge","ic-mini-close","ic-minimize","ic-moon-default","ic-more","ic-ms","ic-multiples","ic-network","ic-note-add","ic-note","ic-notebook","ic-number-sign","ic-open-book","ic-out-small","ic-out","ic-outbound","ic-page-multi","ic-page-search","ic-page-single","ic-palette","ic-parameter-group","ic-parameter","ic-paste","ic-pc-mobile-phone","ic-pencil","ic-people-chat","ic-people","ic-person","ic-phone-add","ic-phone-bell","ic-phone-chat-media","ic-phone-conference","ic-phone-decline","ic-phone-dial","ic-phone-disabled","ic-phone-forward","ic-phone-hang-up","ic-phone-hold","ic-phone-incoming","ic-phone-pause","ic-phone-rec-pause","ic-phone-rec-resume","ic-phone-rec-stop","ic-phone-rec","ic-phone-voice-retrieve","ic-phone-voice","ic-phone","ic-phones","ic-picture","ic-pie-chart","ic-pin-alert","ic-pin-check","ic-pin-solid-add","ic-pin-solid-remove","ic-pin-solid","ic-pin-text","ic-pin-time","ic-pin-zoom-in","ic-pin-zoom-out","ic-pin","ic-pinned","ic-pinterest-circle","ic-play-list","ic-pointing-in-hand","ic-printer","ic-progress-bar","ic-quotes","ic-radio-active","ic-radio","ic-rebuild","ic-redo","ic-refresh-with-feedback","ic-refresh","ic-reload","ic-remember","ic-reset","ic-rewind-five-seconds","ic-routing","ic-rss-square","ic-rss","ic-screen-rec-pause","ic-screen-rec-record","ic-screen-rec-resume","ic-screen-rec-stop","ic-scrubber","ic-search-next","ic-search-previous","ic-search","ic-searched-term","ic-secure","ic-segmentation","ic-select-no","ic-select-yes","ic-select","ic-server-add","ic-server","ic-settings-gear","ic-settings-gears","ic-settings-sliders","ic-share","ic-sharethis","ic-shrinkage","ic-shuffle","ic-site-disable","ic-site","ic-skills","ic-slide-back","ic-slide-fwd","ic-small-checkmark","ic-small-close","ic-small-plus","ic-sms-cancel","ic-sms-message","ic-sms-reply","ic-sms-transfer","ic-solaris","ic-sort-left-right","ic-sort-up-down","ic-special-g-brandmark","ic-stamp","ic-star-edit","ic-star-half","ic-star-outline","ic-stars-add","ic-stars-lock","ic-stars-remove","ic-stars","ic-status-aftercallwork","ic-status-available-no","ic-status-available-yes","ic-status-bad","ic-status-call-dialing","ic-status-call-inbound","ic-status-call-internal","ic-status-call-outbound","ic-status-call-ringing","ic-status-chat","ic-status-email","ic-status-good","ic-status-hook-off","ic-status-hook-on","ic-status-interaction","ic-status-logged-off","ic-status-logged-on","ic-status-monitored-no","ic-status-monitored-yes","ic-status-onhold","ic-status-queue-empty","ic-status-queue-full","ic-status-queue-part-full","ic-status-ready-blocked","ic-status-ready-no","ic-status-ready-partial","ic-status-ready-yes","ic-status-unknown","ic-sun-default","ic-superviser-chat-cancel","ic-supervisor-cancel","ic-supervisor-chat","ic-supervisor-voice-cancel","ic-supervisor-voice","ic-supervisor","ic-swap","ic-switch-disable","ic-switch","ic-symbol-man","ic-symbol-woman","ic-tag-stat-add","ic-tag-stat-remove","ic-tag","ic-target","ic-team-communicator-team-communicator","ic-team-communicator","ic-tenant-disable","ic-tenant","ic-text-centered","ic-text-detail","ic-text-generic","ic-text-indent-left","ic-text-indent-right","ic-text-justify-center","ic-text-justify-full","ic-text-justify-left","ic-text-justify-right","ic-text-spelling","ic-thumbs-down","ic-thumbs-up","ic-tick","ic-timeline","ic-toggle-off","ic-toggle-on","ic-toggle","ic-training","ic-transfer-all-channels","ic-transfer-common","ic-transfer","ic-trash","ic-tree-branch","ic-twitter-square","ic-twitter","ic-undo","ic-unlocked","ic-unmerge","ic-upload","ic-video-add","ic-video-disable","ic-video-end","ic-video-forward","ic-video-pause","ic-video-roster","ic-video-voice","ic-video","ic-videocam-1-disable","ic-videocam-1","ic-videocam-2-disable","ic-videocam-2","ic-view-details-bottom","ic-view-details-right","ic-view-grid","ic-view-list","ic-view-lists","ic-view-stacked","ic-view-tree","ic-voicemail","ic-window-contract","ic-window-expand","ic-zoom-in","ic-zoom-out","image","inbox-alpha","input","interaction-sound","interactions-alpha","interactions-off-alpha","interactions","italic","justify-center","justify-left","justify-right","layers","link-broken","list-square","listbox","logo-genesys","magnifying-glass-minus","magnifying-glass-plus","magnifying-glass","marker","mic-off","mic-talking","mic","minus-circle","missed-call","mixer","monitor","move-file","multi-agent-lines","notification-chat","notification-email","notification-phone","notification-score-chat","notification-score-email","notification-score-phone","numeric-spinner","organization","outbound-call","paint-bucket","paperclip","pause-secure","pause","pc-group","pc-user","pencil-square","person-circle","phone-active-1","phone-active-2","phone-active-3","phone-alpha","phone-off-alpha","phone-off","phone-picker","phone-ring-muted","phone-ring","pixel-unit","play","plus-circle","plus","pop-out","preview","progress-pie","puzzle","question-with-screen","question","radio-button","repeat","reset-view","resize-handle","robot-circle","robot-head","scissors","screen-full","screen-small","screenshare","scripter-inverse","sign-out","sitemap","sms-message","sort-numeric-asc","star","steal","step-backward","step-forward","stop","template","text","thumbtack-off","thumbtack-on","topleft","topright","trashcan","triangle","twitter-white-on-blue","underline","undo","vert-container","viber-icon","video-alpha","video-off-alpha","video-off","volume-off-alt","volume-off","warning","whistle","wrap-up-code"],n=new Map;function s(i){return r[i]?r[i]:l.includes(i)?`legacy/${i}`:i}async function d(c){const e=function(i){return i.replace("/","-")}(c),a=await n.get(e);if(a)return a;const o=async function(c){const e=await fetch(i(`./icons/${c}.svg`));if(200===e.status)return e.text();throw new Error(`[gux-icon] fetching failed for icon "${c}" with status "${e.statusText} (${e.status})".`)}(c).then((i=>i)).catch((i=>(setTimeout((()=>{throw i}),0),d("unknown"))));return n.set(e,o),o}function p(i,c){i||c||t("gux-icon","No screenreader-text provided. Either provide a localized screenreader-text property or set `decorative` to true.")}const h=class{constructor(i){c(this,i),this.decorative=!1,this.screenreaderText=""}async prepIcon(i){if(i){const c=s(i);this.baseSvgHtml=await d(c),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}}watchDecorative(i){p(i,this.screenreaderText),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}watchScreenreaderText(i){p(this.decorative,i),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}async componentWillLoad(){o(this.root,{variant:s(this.iconName)}),await this.prepIcon(this.iconName)}componentDidLoad(){p(this.decorative,this.screenreaderText)}getSvgWithAriaAttributes(i){const c=(new DOMParser).parseFromString(i,"image/svg+xml").firstChild;return c.setAttribute("aria-hidden",this.decorative?String(this.decorative):"false"),this.screenreaderText?c.setAttribute("aria-label",this.screenreaderText):c.removeAttribute("aria-label"),c.outerHTML}render(){return this.svgHtml&&e("div",{class:"gux-icon-container",innerHTML:this.svgHtml})}static get assetsDirs(){return["icons"]}get root(){return a(this)}static get watchers(){return{iconName:["prepIcon"],decorative:["watchDecorative"],screenreaderText:["watchScreenreaderText"]}}};h.style=":host{display:inline-flex;width:1em;height:1em}.gux-icon-container{display:flex;align-items:center;justify-content:center;width:100%}.gux-icon-container svg{width:100%;max-width:100%;height:100%;max-height:100%;fill:currentcolor}";export{h as gux_icon}
|
|
1
|
+
import{a as i,r as c,h as e,g as a}from"./p-7a1d01cb.js";import{t as o}from"./p-6f28cce9.js";import{l as t}from"./p-3184268e.js";const r={"ic-agent":"agent",consultant:"agent","ic-agent-group":"agent-group","pc-user":"user","ic-person":"user",customer:"user",interactions:"user-interactions","interaction-sound":"user-interactions","add-user":"user-add","ic-contact-add":"user-add","pc-group":"user-group","ic-people":"user-group","ic-group":"user-group",users:"user-group","ic-contact-id":"user-contact-id",contact:"user-contact-id","person-circle":"user-circle",directory:"user-directory","multi-agent-lines":"user-directory","ic-cobrowse":"cobrowse",screenshare:"cobrowse","ic-face-happy":"face-happy","ic-face-neutral":"face-neutral","ic-face-sad":"face-sad","ic-face-happy-solid":"face-happy-solid","ic-face-sad-solid":"face-sad-solid","cc-custom-default":"cjv-custom-default","cc-web-session":"cjv-web-session","cc-delivery":"cjv-delivery","cc-policy-contract":"cjv-policy-contract","cc-generic-application":"cjv-generic-application","cc-finance-invoice":"cjv-finance-invoice","beyond-logo":"product-logo-beyond","ic-special-g-brandmark":"product-logo-g","logo-genesys":"product-logo-g","interactions-alpha":"toolbar-interactions","interactions-off-alpha":"toolbar-interactions-disable",assist:"toolbar-assist","assist-off":"toolbar-assist-disable","chat-alpha":"toolbar-chat","chat-off-alpha":"toolbar-chat-disable","phone-alpha":"toolbar-phone","phone-off-alpha":"toolbar-phone-disable","phone-active-1":"toolbar-phone-active-1","phone-active-2":"toolbar-phone-active-2","phone-active-3":"toolbar-phone-active-3","video-alpha":"toolbar-video","video-off-alpha":"toolbar-video-disable","apps-alpha":"toolbar-apps",apps:"toolbar-apps-disable","favs-alpha":"toolbar-favourite","inbox-alpha":"toolbar-inbox",question:"toolbar-help","ic-phone":"phone","notification-phone":"phone","ic-phone-forward":"phone-forward","call-forward":"phone-forward","call-forward-alpha":"phone-forward","ic-phone-bell":"phone-bell","phone-ring":"phone-bell","ic-phone-voice":"phone-voice","call-volume":"phone-voice","ic-phone-disabled":"phone-disable","ic-phone-disable":"phone-disable","phone-off":"phone-disable","cc-disconnected-system":"phone-disable","cc-disconnected":"phone-disable","ic-phone-hold":"phone-hold","call-history":"phone-call-history","outbound-call":"phone-outbound","cc-outbound-call":"phone-outbound","missed-call":"phone-missed-call","cc-missed-inbound":"phone-missed-call",callback:"phone-callback",hangup:"phone-hangup","ic-phone-hang-up":"phone-hangup","ic-voicemail":"voicemail","ic-dialpad":"phone-dialpad","ic-phone-dail":"phone-dialpad",dialpad:"phone-dialpad","ic-status-call-dialing":"phone-dialpad","ic-status-chat":"chat","ic-chat":"chat","ic-chat-oval":"chat","notification-chat":"chat","cc-webchat-bot":"chat","cc-webchat-missed":"chat","ic-text-detail":"chat","iic-chat-oval-close":"chat-close","iic-chat-end":"chat-close","ic-chat-disable":"chat-disable","chat-off":"chat-disable","ic-chat-oval-multi":"chat-multi","ic-chat-multi":"chat-multi","chat-alert":"chat-bell","ic-email":"message-email","ic-status-email":"message-email","ic-cx-24-flat-mail":"message-email",envelope:"message-email","notification-email":"message-email","reply-standard":"message-reply","forward-standard":"message-forward","ic-attach":"attachment",paperclip:"attachment","ic-video":"video","ic-video-disable":"video-disable","video-off":"video-disable","ic-audio-rec":"microphone",mic:"microphone","ic-audio-rec-disable":"microphone-disable","mic-off":"microphone-disable","mic-talking":"microphone-talking","ic-audio-yes":"volume-up","ic-audio-no":"volume-none","volume-off-alt":"volume-none","ic-audio-disable":"volume-disable","volume-off":"volume-disable","ic-audio-music":"music","ic-control-skip-left":"control-skip-left",backward:"control-skip-left","ic-control-skip-right":"control-skip-right",forward:"control-skip-right","ic-control-backward":"control-start","fast-backward":"control-start","ic-control-forward":"control-end","fast-forward":"control-end","ic-slide-fwd":"control-slide-forward","step-forward":"control-slide-forward","ic-slide-back":"control-slide-back","step-backward":"control-slide-back",play:"control-play","ic-24-control-play-solid":"control-play","ic-control-stop":"control-stop",stop:"control-stop",pause:"control-pause","ic-24-control=pause-solid":"control-pause","ic-generic-pc":"device-pc",monitor:"device-pc","ic-video-cam-1":"webcam","ic-videocam-2":"webcam","ic-video-cam-1-disable":"webcam-disable","ic-videocam-2-disable":"webcam-disable","ic-sms-cancel":"sms-close","sms-cancel":"sms-close","ic-sms-message":"sms","sms-message":"sms","ic-generic-laptop":"device-laptop","ic-generic-tablet":"device-tablet","ic-camera":"device-camera","ic-host":"device-server","ic-phones":"device-cellphone","ic-generic-mobile-phone":"device-headphones","ic-folder":"folder","ic-folder-open":"folder-open","ic-folder-add":"folder-add","file-o":"file","ic-page-single":"file","ic-doc-list":"file","ic-doc-generic":"file","files-o":"file-all","ic-page-multi":"file-all","ic-doc-all":"file-all","ic-doc-report-b":"file-report",image:"file-image-landscape","ic-picture":"file-image-landscape","ic-doc-detail":"file-text",preview:"file-preview","ic-page-search":"file-preview",unassign:"upload","ic-upload":"upload","ic-download":"download",feedback:"comments","comment-ellipsis":"comments","comment-ellipsis-off":"comments-disable","ic-thumbs-up":"thumbs-up","ic-thumbs-down":"thumbs-down","ic-24-graph-edit":"edit","ic-graph-edit":"edit","ic-pencil":"edit","ic-multiples":"clone","ic-clone":"clone","ic-copy":"copy","ic-paste":"paste","ic-clipboard":"clipboard",scissors:"cut","ic-cut":"cut","ic-trash":"delete","ic-refresh-with-feedback":"refresh","ic-reload":"refresh","ic-refresh":"refresh","ic-reset":"reset","pop-out":"window-popout","ic-outbound":"window-popout","ic-exit-full-screen":"window-contract","screen-small":"window-contract","ic-window-contract":"window-contract","ic-full-screen":"window-fullscreen","screen-full":"window-fullscreen","ic-window-expand":"window-fullscreen","ic-drag-out":"window-drag-out","ic-actual-size":"actual-size","ic-app-generic":"app-generic","ic-app-chart":"app-chart","ic-app-layout":"app-layout",template:"app-layout","ic-biz-attribute":"app-table","ic-app-table":"app-table","ic-circle-add":"add-circle","plus-circle":"add-circle","ic-timeline":"timeline",history:"timeline","ic-clock":"clock-outline","ic-clock-b":"clock","ic-quotes":"quote-right","robot-head":"bot","robot-circle":"bot",education:"skills","ic-skills":"skills","ic-campaign":"campaign","ic-actionable":"bolt","ic-palette":"palette","ic-tenant":"tenant",cube:"tenant","ic-lunch":"lunch",cubes:"configuration","ic-configuration":"configuration","ic-stamp":"stamp","ic-ivr":"record","ic-follow":"follow","paint-bucket":"paint","ic-dash":"dash","ic-generic":"generic",signal:"low-bandwidth","ic-settings-gear":"settings","ic-settings-gears":"settings",cog:"settings","reset-view":"settings","ic-dashtab-settings":"settings",cogs:"settings","ic-locked":"lock","ic-secure":"lock","pause-secure":"lock","ic-link":"link","ic-unlocked":"unlock","ic-unlinked":"unlink","link-broken":"unlink","ic-certificate":"certificate","ic-access":"key","ic-sun-default":"sun","ic-moon-default":"moon","ic-app-all":"view-all","ic-cells":"view-cells","customize-columns":"view-cells","ic-view-lists":"view-lists","ic-view-list":"view-list",list:"view-list","ic-view-stacked":"view-stacked","stacked-mode":"view-stacked","ic-view-grid":"view-grid","grid-mode":"view-grid","ic-video-roster":"view-roster","ic-inspect":"inspect",eye:"inspect","ic-status-monitored-yes":"inspect","ic-inspect-disable":"inspect-disable",hide:"inspect-disable",whistle:"coaching","ic-rss":"rss","ic-rss-square":"rss","ic-twitter":"twitter","ic-twitter-square":"twitter","twitter-white-on-blue":"twitter","ic-facebook-square":"facebook","ic-linkedin-square":"linkedin","ic-share":"share","ic-sharethis":"share","viber-icon":"viber","at-thin":"at","ic-arrow-up":"arrow-up","long-up-arrow":"arrow-up","ic-arrow-down":"arrow-down","ic-arrow-left":"arrow-left","ic-arrow-right":"arrow-right","ic-escalate":"arrow-up-right","ic-out-small":"arrow-up-left","ic-in-small":"arrow-down-right","ic-iw-arrow-outline-in":"arrow-down-right","ic-chevron-left":"chevron-left","ic-chevron-right":"chevron-right","ic-transfer":"transfer",exchange:"transfer","ic-bar-graph-variable-1":"graph-bar-horizontal","ic-graph-barline":"graph-bar-horizontal","ic-24-graph-bar":"graph-bar-horizontal","ic-graph-bar":"graph-bar-horizontal","ic-graph-stack":"graph-bar-horizontal","ic-24-graph-stack":"graph-bar-horizontal","ic-bar-graph-variable-2":"graph-bar-vertical","ic-24-graph-bar-verticalertical":"graph-bar-vertical","ic-24-graph-stack-vertical":"graph-bar-vertical","ic-graph-line":"graph-line","ic-graph-chart":"graph-chart","ic-graph-spark":"graph-spark","ic-pie-chart":"graph-pie","ic-pin-time":"pin-location","ic-pin":"pin-location",marker:"pin-location","thumbtack-on":"pin","ic-pinned":"pin","ic-server":"server","ic-globe":"globe","ic-home":"home",house:"home","ic-cloud-b":"cloud","up-cloud":"cloud","ic-cloud-a":"cloud-outline","ic-site":"site",building:"site","ic-search":"search","magnifying-glass":"search","ic-calendar-generic":"calendar","ic-calendar-month":"calendar","ic-calendar-month-highlight":"calendar","ic-calendar-day":"calendar","calendar-days":"calendar","calendar-range":"calendar","ic-select-no":"checkbox","ic-checkbox":"checkbox","ic-checkbox-tick":"checkbox-active","ic-checkbox-tick-lock":"checkbox-active","ic-checklist-tick-lock":"checkbox-active","check-square":"checkbox-active","ic-select-yes":"checkbox-partial","ic-radio":"radio","ic-radio-active":"radio-active","radio-button":"radio-active","ic-add":"add",plus:"add","ic-iw-circle-no-add":"add","ic-close":"close","close-x":"close",remove:"close","ic-arrow-solid-up":"arrow-solid-up","ic-expand-up":"arrow-solid-up","caret-up":"arrow-solid-up","ic-search-previous":"arrow-solid-up","chevron-circle-up":"arrow-solid-up","ic-arrow-solid-down":"arrow-solid-down","ic-expand-down":"arrow-solid-down","caret-down":"arrow-solid-down","ic-search-next":"arrow-solid-down","chevron-circle-down":"arrow-solid-down","ic-arrow-solid-left":"arrow-solid-left","ic-expand-left":"arrow-solid-left","caret-left":"arrow-solid-left","ic-control-left":"arrow-solid-left","chevron-circle-left":"arrow-solid-left","ic-arrow-solid-right":"arrow-solid-right","ic-expand-right":"arrow-solid-right","caret-right":"arrow-solid-right","ic-control-right":"arrow-solid-right","chevron-circle-right":"arrow-solid-right","ic-dropdown-arrow":"chevron-small-down","ic-iw-circle-no-chevron-down":"chevron-small-down","ic-arrow-accordian":"chevron-small-down","ic-iw-circle-no-chevron-up":"chevron-small-up","ic-chevron-small-left":"chevron-small-left","angle-left":"chevron-small-left","ic-chevron-small-right":"chevron-small-right","angle-right":"chevron-small-right","ic-arrow-left-dbl":"chevron-double-left","ic-disclosure-left":"chevron-double-left","ic-arrow-right-dbl":"chevron-double-right","ic-arrow-disclosure":"chevron-double-right","ic-stars":"rating-active","favs-full":"rating-active",favs:"rating-active",star:"rating-active","ic-star-outline":"rating","ic-star-half":"rating-partial","ic-tick":"checkmark","ic-small-checkmark":"checkmark",check:"checkmark","ic-campaign-done":"checkmark","ic-more":"menu-kebab-vertical","ellipsis-v":"menu-kebab-vertical","ellipsis-h":"manu-kebab-h","ic-filter":"filter","ic-menu-hamburger":"menu",bars:"menu","ic-alert-checkmark":"alert-success","ic-login-checkmark":"alert-success","check-circle":"alert-success","ic-alert-triangle":"alert-warning-triangle","ic-alert-octo":"alert-warning-octogon","ic-alert-circle":"alert-warning-octogon","ic-iw-done-and-stop":"alert-warning-octogon",warning:"alert-warning-octogon","ic-tag":"tag","ic-tag-stat-remove":"tag-remove","ic-tag-stat-add":"tag-add","chevron-circle-collapse-double":"collapse","chevron-circle-expand-double":"expand","ic-grip-horizontal":"grab-horizontal","ic-grab":"grab-horizontal","ic-grip-vertical":"grab-vertical","ic-grab-verticalertical":"grab-vertical","sign-out":"logout","ic-out":"logout","ic-export":"logout","ic-status-call-ringing":"bell",bell2:"bell","ic-bell":"bell","ic-bug":"bug","ic-alert-info":"alert-info","ic-login-info":"alert-info","info-thick":"alert-info","ic-zoom-in":"zoom-in","magnifying-glass-plus":"zoom-in","ic-zoom-out":"zoom-out","magnifying-glass-minus":"zoom-out"},l=["add-user","align-center","align-left","align-right","angle-down","angle-left","angle-right","angle-up","apps-alpha","apps","arrow-s","arrows-h","arrows-v","assist-off","assist","backward","bandage","bars","bell2","beyond-logo","bold","border-dashed","border-dotted","border-solid","btmleft","btmright","btn-group-choose","building","button","calendar-days","calendar-dots-day","calendar-dots-month","calendar-dots-week","calendar-range","call-forward-alpha","call-forward","call-history","call-volume","callback","caret-down","caret-left","caret-right","caret-up","cc-custom-default","cc-delivery","cc-disconnected-system","cc-disconnected","cc-finance-invoice","cc-generic-application","cc-inbound-queue","cc-inbound","cc-missed-inbound","cc-outbound-call","cc-policy-contract","cc-web-session","cc-webchat-bot","cc-webchat-missed","chat-alert-muted","chat-alert","chat-alpha","chat-off-alpha","chat-off","check-circle","check-square","check","chevron-circle-collapse-double","chevron-circle-down","chevron-circle-expand-double","chevron-circle-left","chevron-circle-right","chevron-circle-up","chevron-down","chevron-up","circle","close-preview","close-x","cog","comet","comment-ellipsis-off","comment-ellipsis","consultant","contact","cube","cubes","customer","customize-columns","dialpad","diamond","directory","drop-down","ellipsis-h","ellipsis-v","envelope","eye","fast-backward","fast-forward","favs-alpha","favs-full","favs","feedback","file-o","files-o","forward","genesys-logo-full","hangup","history","horz-container","house","ic-24-control-pause-solid","ic-24-control-pause","ic-24-control-play-solid","ic-24-control-play","ic-24-control-stop","ic-24-graph-bar-stack-vertical","ic-24-graph-bar-verticalertical","ic-24-graph-bar","ic-24-graph-edit","ic-24-graph-grid-cell","ic-24-graph-grid","ic-24-graph-line","ic-24-graph-stack","ic-24-graph-variable-2","ic-48-adjacent","ic-48-all","ic-48-control-pause","ic-48-control-play","ic-48-incoming","ic-48-outgoing","ic-access","ic-actionable-disable","ic-actionable-notset","ic-actionable","ic-add-bold","ic-add","ic-adjust","ic-agent-add","ic-agent-edit","ic-agent-group","ic-agent-like","ic-agent-offline","ic-agent-ready-partial","ic-agent-ready","ic-agent-search","ic-agent-time","ic-agent-unavailable","ic-agent","ic-aix","ic-alert-checkmark","ic-alert-circle","ic-alert-info","ic-alert-octo","ic-alert-triangle","ic-app-all","ic-app-chart","ic-app-generic","ic-app-layout","ic-app-table","ic-archive","ic-arrow-accordion","ic-arrow-disclosure","ic-arrow-down","ic-arrow-left-dbl","ic-arrow-left","ic-arrow-popover","ic-arrow-right-dbl","ic-arrow-right","ic-arrow-solid-down","ic-arrow-solid-left","ic-arrow-solid-right","ic-arrow-solid-up","ic-arrow-up","ic-attach","ic-audio-disable","ic-audio-music","ic-audio-no","ic-audio-rec-disable","ic-audio-rec","ic-audio-voice-disable","ic-audio-voice","ic-audio-yes","ic-autoscroll-off","ic-bar-graph-variable-1","ic-bar-graph-variable-2","ic-bell","ic-bezier","ic-biz-attribute-disable","ic-biz-attribute","ic-blocks","ic-book-address","ic-book-open-details","ic-break","ic-briefcase","ic-budget","ic-bug","ic-calculator","ic-calendar-day","ic-calendar-generic","ic-calendar-media-voice","ic-calendar-month-highlight","ic-calendar-month","ic-camera","ic-campaign-disable","ic-campaign-done","ic-campaign-schedule","ic-campaign-stop","ic-campaign","ic-cart","ic-cells","ic-certificate","ic-chat-add","ic-chat-disable","ic-chat-edit-disable","ic-chat-edit","ic-chat-end","ic-chat-forward","ic-chat-frown","ic-chat-multi","ic-chat-oval-close","ic-chat-oval-multi","ic-chat-oval-transfer","ic-chat-oval","ic-chat-smile","ic-chat-video","ic-chat","ic-checkbox-tick-lock","ic-checkbox-tick","ic-checkbox","ic-checklist-tick-lock","ic-checkmark-bold","ic-chevron-left","ic-chevron-right","ic-chevron-small-collapse-all","ic-chevron-small-expand-all","ic-chevron-small-left","ic-chevron-small-right","ic-circle-add","ic-circle-arrow-down","ic-circle-arrow-left","ic-circle-arrow-right","ic-circle-arrow-up","ic-circle-close","ic-circle-expand-down","ic-circle-expand-left","ic-circle-expand-right","ic-circle-expand-up","ic-cleanup","ic-clip-approve","ic-clip-exchange","ic-clip-list","ic-clipboard","ic-clock-b","ic-clock-stopwatch","ic-clock-timezone","ic-clock","ic-clone","ic-close-bold","ic-close","ic-cloud-a","ic-cloud-b","ic-cm-96-cloud","ic-cm-96-desktop","ic-cm-96-network","ic-cm-96-outbound","ic-cm-96-server-add","ic-cm-96-server","ic-cm-96-tenant","ic-cm-96-user","ic-cm-96-voice","ic-cobrowse-chat","ic-cobrowse-disable","ic-cobrowse-end","ic-cobrowse","ic-code","ic-collapse","ic-column-direction-active","ic-column-direction","ic-comment-corner","ic-conference-all-channels","ic-configuration-disable","ic-configuration","ic-contact-add","ic-contact-assign","ic-contact-delete","ic-contact-id-fetch","ic-contact-id","ic-contact-switch","ic-contract-a","ic-contract-b","ic-contract-c","ic-contract-d","ic-control-backward","ic-control-forward","ic-control-left","ic-control-right","ic-control-skip-left","ic-control-skip-next","ic-control-skip-previous","ic-control-skip-right","ic-control-stop","ic-copy","ic-credit-card","ic-cs-mobile","ic-cs-social","ic-cs-web","ic-currency-dollar-sign","ic-cut","ic-cx-24-flat-agent","ic-cx-24-flat-avatar","ic-cx-24-flat-cal","ic-cx-24-flat-chat","ic-cx-24-flat-cobrowse","ic-cx-24-flat-consult","ic-cx-24-flat-inbound","ic-cx-24-flat-lock","ic-cx-24-flat-mail","ic-cx-24-flat-offer","ic-cx-24-flat-outbound","ic-cx-24-flat-pref","ic-cx-24-flat-search","ic-cx-24-flat-survey","ic-cx-24-flat-vid","ic-cx-24-flat-vm","ic-dash","ic-dashtab-dash","ic-dashtab-settings","ic-dashtab-xwidget","ic-dialpad","ic-disclosure-left","ic-doc-add","ic-doc-alert-b","ic-doc-all-save","ic-doc-all","ic-doc-detail-add","ic-doc-detail","ic-doc-form-b","ic-doc-forward","ic-doc-generic-b","ic-doc-generic","ic-doc-list-b","ic-doc-list","ic-doc-no","ic-doc-phone-call","ic-doc-report-b","ic-doc-save","ic-doc-segmentation-b","ic-doc-yes-b","ic-doc-yes","ic-document-scenario","ic-double-down","ic-double-up","ic-download","ic-drag-out","ic-dropdown-arrow","ic-email-delete","ic-email-forward","ic-email-move-to-folder","ic-email-reply-all","ic-email-reply","ic-email-resend","ic-email-send","ic-email-transfer","ic-email","ic-enterprise-extension","ic-error-bold","ic-escalate-from","ic-escalate-to","ic-escalate","ic-event-cluster-mini","ic-event-cluster","ic-exit-full-screen","ic-expand-down","ic-expand-left","ic-expand-right","ic-expand-up","ic-expand","ic-export","ic-face-happy","ic-face-neutral","ic-face-sad","ic-face-solid-happy","ic-face-solid-sad","ic-face-unknown","ic-facebook-square","ic-file-folder-drawer","ic-files","ic-film-broadcast","ic-film","ic-filter","ic-finger-pointing","ic-folder-add","ic-folder-disabled","ic-folder-media","ic-folder-move","ic-folder-open-in","ic-folder-open-out","ic-folder-open","ic-folder-progress","ic-folder","ic-follow-disable","ic-follow","ic-font-bold","ic-font-decrease","ic-font-increase","ic-font-italic","ic-font-style","ic-font-underline","ic-full-screen","ic-gear-add","ic-gear-remove","ic-generic-disable","ic-generic-laptop","ic-generic-mobile-phone","ic-generic-pc","ic-generic-tablet","ic-generic","ic-globe","ic-google-plus-circle","ic-grab-verticalertical","ic-grab","ic-graph-bar","ic-graph-barline","ic-graph-bubble","ic-graph-chart","ic-graph-column","ic-graph-edit","ic-graph-grid","ic-graph-line","ic-graph-spark","ic-graph-stack","ic-grip-horizontal","ic-grip-vertical","ic-group","ic-help","ic-home","ic-host","ic-hp","ic-import","ic-in-small","ic-in","ic-inbound","ic-insert-block-left","ic-insert-block-right","ic-inspect-chat-disable","ic-inspect-chat","ic-inspect-disable","ic-inspect-phone-disable","ic-inspect-phone","ic-inspect-star","ic-inspect","ic-ivr-disable","ic-ivr","ic-iw-24-line-help","ic-iw-24-line-notification","ic-iw-24-line-teamcommunicator","ic-iw-24-line-voicemail","ic-iw-active-circle-callback","ic-iw-active-circle-campaign","ic-iw-active-circle-chat-round","ic-iw-active-circle-chat-square","ic-iw-active-circle-doc","ic-iw-active-circle-email","ic-iw-active-circle-facebook","ic-iw-active-circle-globe","ic-iw-active-circle-media","ic-iw-active-circle-phone-cancel","ic-iw-active-circle-phone-conf-susp","ic-iw-active-circle-phone-conf","ic-iw-active-circle-phone-dial","ic-iw-active-circle-phone-pause","ic-iw-active-circle-phone-play","ic-iw-active-circle-phone-susp","ic-iw-active-circle-phone-voice","ic-iw-active-circle-question","ic-iw-active-circle-rss","ic-iw-active-circle-twitter","ic-iw-active-circle-voice-chat","ic-iw-active-circle-voice","ic-iw-active-square-view","ic-iw-arrow-outline-in","ic-iw-circle-no-add","ic-iw-circle-no-chevron-down","ic-iw-circle-no-chevron-up","ic-iw-circle-yes-add","ic-iw-circle-yes-chevron-down","ic-iw-circle-yes-chevron-up","ic-iw-control-circle-back","ic-iw-control-circle-fwd","ic-iw-control-circle-home","ic-iw-control-circle-play","ic-iw-control-circle-stop","ic-iw-done-and-stop","ic-iw-history","ic-iw-in-progress","ic-iw-inspect-email","ic-iw-inspect-voice-cancel","ic-iw-inspect-voice","ic-iw-monitor-chat","ic-iw-monitor-voice","ic-iw-queue","ic-iw-routing-point","ic-iw-save-as","ic-iw-save","ic-iw-square-facebook-email","ic-iw-square-facebook-no","ic-iw-square-facebook-transfer","ic-iw-square-facebook-workbin","ic-iw-square-rss-transfer","ic-iw-square-rss-workbin","ic-iw-square-twitter-follow","ic-iw-square-twitter-no","ic-iw-square-twitter-transfer","ic-iw-square-twitter-workbin","ic-iw-video-suspend","ic-iw-video-thumb-cancel","ic-iw-video-thumb-show","ic-iw-video-thumb-swap","ic-iw-voice-inspect-cancel","ic-iw-voice-inspect","ic-key-dot-dashed","ic-link","ic-linkedin-square","ic-linux","ic-list-bullets","ic-list-numbers","ic-locked","ic-login-checkmark","ic-login-error","ic-login-info","ic-lunch","ic-measure-growing","ic-measure-point-in-time","ic-measure-sliding","ic-measure-today","ic-menu-hamburger","ic-merge","ic-mini-close","ic-minimize","ic-moon-default","ic-more","ic-ms","ic-multiples","ic-network","ic-note-add","ic-note","ic-notebook","ic-number-sign","ic-open-book","ic-out-small","ic-out","ic-outbound","ic-page-multi","ic-page-search","ic-page-single","ic-palette","ic-parameter-group","ic-parameter","ic-paste","ic-pc-mobile-phone","ic-pencil","ic-people-chat","ic-people","ic-person","ic-phone-add","ic-phone-bell","ic-phone-chat-media","ic-phone-conference","ic-phone-decline","ic-phone-dial","ic-phone-disabled","ic-phone-forward","ic-phone-hang-up","ic-phone-hold","ic-phone-incoming","ic-phone-pause","ic-phone-rec-pause","ic-phone-rec-resume","ic-phone-rec-stop","ic-phone-rec","ic-phone-voice-retrieve","ic-phone-voice","ic-phone","ic-phones","ic-picture","ic-pie-chart","ic-pin-alert","ic-pin-check","ic-pin-solid-add","ic-pin-solid-remove","ic-pin-solid","ic-pin-text","ic-pin-time","ic-pin-zoom-in","ic-pin-zoom-out","ic-pin","ic-pinned","ic-pinterest-circle","ic-play-list","ic-pointing-in-hand","ic-printer","ic-progress-bar","ic-quotes","ic-radio-active","ic-radio","ic-rebuild","ic-redo","ic-refresh-with-feedback","ic-refresh","ic-reload","ic-remember","ic-reset","ic-rewind-five-seconds","ic-routing","ic-rss-square","ic-rss","ic-screen-rec-pause","ic-screen-rec-record","ic-screen-rec-resume","ic-screen-rec-stop","ic-scrubber","ic-search-next","ic-search-previous","ic-search","ic-searched-term","ic-secure","ic-segmentation","ic-select-no","ic-select-yes","ic-select","ic-server-add","ic-server","ic-settings-gear","ic-settings-gears","ic-settings-sliders","ic-share","ic-sharethis","ic-shrinkage","ic-shuffle","ic-site-disable","ic-site","ic-skills","ic-slide-back","ic-slide-fwd","ic-small-checkmark","ic-small-close","ic-small-plus","ic-sms-cancel","ic-sms-message","ic-sms-reply","ic-sms-transfer","ic-solaris","ic-sort-left-right","ic-sort-up-down","ic-special-g-brandmark","ic-stamp","ic-star-edit","ic-star-half","ic-star-outline","ic-stars-add","ic-stars-lock","ic-stars-remove","ic-stars","ic-status-aftercallwork","ic-status-available-no","ic-status-available-yes","ic-status-bad","ic-status-call-dialing","ic-status-call-inbound","ic-status-call-internal","ic-status-call-outbound","ic-status-call-ringing","ic-status-chat","ic-status-email","ic-status-good","ic-status-hook-off","ic-status-hook-on","ic-status-interaction","ic-status-logged-off","ic-status-logged-on","ic-status-monitored-no","ic-status-monitored-yes","ic-status-onhold","ic-status-queue-empty","ic-status-queue-full","ic-status-queue-part-full","ic-status-ready-blocked","ic-status-ready-no","ic-status-ready-partial","ic-status-ready-yes","ic-status-unknown","ic-sun-default","ic-superviser-chat-cancel","ic-supervisor-cancel","ic-supervisor-chat","ic-supervisor-voice-cancel","ic-supervisor-voice","ic-supervisor","ic-swap","ic-switch-disable","ic-switch","ic-symbol-man","ic-symbol-woman","ic-tag-stat-add","ic-tag-stat-remove","ic-tag","ic-target","ic-team-communicator-team-communicator","ic-team-communicator","ic-tenant-disable","ic-tenant","ic-text-centered","ic-text-detail","ic-text-generic","ic-text-indent-left","ic-text-indent-right","ic-text-justify-center","ic-text-justify-full","ic-text-justify-left","ic-text-justify-right","ic-text-spelling","ic-thumbs-down","ic-thumbs-up","ic-tick","ic-timeline","ic-toggle-off","ic-toggle-on","ic-toggle","ic-training","ic-transfer-all-channels","ic-transfer-common","ic-transfer","ic-trash","ic-tree-branch","ic-twitter-square","ic-twitter","ic-undo","ic-unlocked","ic-unmerge","ic-upload","ic-video-add","ic-video-disable","ic-video-end","ic-video-forward","ic-video-pause","ic-video-roster","ic-video-voice","ic-video","ic-videocam-1-disable","ic-videocam-1","ic-videocam-2-disable","ic-videocam-2","ic-view-details-bottom","ic-view-details-right","ic-view-grid","ic-view-list","ic-view-lists","ic-view-stacked","ic-view-tree","ic-voicemail","ic-window-contract","ic-window-expand","ic-zoom-in","ic-zoom-out","image","inbox-alpha","input","interaction-sound","interactions-alpha","interactions-off-alpha","interactions","italic","justify-center","justify-left","justify-right","layers","link-broken","list-square","listbox","logo-genesys","magnifying-glass-minus","magnifying-glass-plus","magnifying-glass","marker","mic-off","mic-talking","mic","minus-circle","missed-call","mixer","monitor","move-file","multi-agent-lines","notification-chat","notification-email","notification-phone","notification-score-chat","notification-score-email","notification-score-phone","numeric-spinner","organization","outbound-call","paint-bucket","paperclip","pause-secure","pause","pc-group","pc-user","pencil-square","person-circle","phone-active-1","phone-active-2","phone-active-3","phone-alpha","phone-off-alpha","phone-off","phone-picker","phone-ring-muted","phone-ring","pixel-unit","play","plus-circle","plus","pop-out","preview","progress-pie","puzzle","question-with-screen","question","radio-button","repeat","reset-view","resize-handle","robot-circle","robot-head","scissors","screen-full","screen-small","screenshare","scripter-inverse","sign-out","sitemap","sms-message","sort-numeric-asc","star","steal","step-backward","step-forward","stop","template","text","thumbtack-off","thumbtack-on","topleft","topright","trashcan","triangle","twitter-white-on-blue","underline","undo","vert-container","viber-icon","video-alpha","video-off-alpha","video-off","volume-off-alt","volume-off","warning","whistle","wrap-up-code"],n=new Map;function s(i){return r[i]?r[i]:l.includes(i)?`legacy/${i}`:i}async function d(c){const e=function(i){return i.replace("/","-")}(c),a=await n.get(e);if(a)return a;const o=async function(c){const e=await fetch(i(`./icons/${c}.svg`));if(200===e.status)return e.text();throw new Error(`[gux-icon] fetching failed for icon "${c}" with status "${e.statusText} (${e.status})".`)}(c).then((i=>i)).catch((i=>(setTimeout((()=>{throw i}),0),d("unknown"))));return n.set(e,o),o}function p(i,c){i||c||t("gux-icon","No screenreader-text provided. Either provide a localized screenreader-text property or set `decorative` to true.")}const h=class{constructor(i){c(this,i),this.decorative=!1,this.screenreaderText=""}async prepIcon(i){if(i){const c=s(i);this.baseSvgHtml=await d(c),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}}watchDecorative(i){p(i,this.screenreaderText),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}watchScreenreaderText(i){p(this.decorative,i),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}async componentWillLoad(){o(this.root,{variant:s(this.iconName)}),await this.prepIcon(this.iconName)}componentDidLoad(){p(this.decorative,this.screenreaderText)}getSvgWithAriaAttributes(i){const c=(new DOMParser).parseFromString(i,"image/svg+xml").firstChild;return c.setAttribute("aria-hidden",this.decorative?String(this.decorative):"false"),this.screenreaderText?c.setAttribute("aria-label",this.screenreaderText):c.removeAttribute("aria-label"),c.outerHTML}render(){return this.svgHtml&&e("div",{class:"gux-icon-container",innerHTML:this.svgHtml})}static get assetsDirs(){return["icons"]}get root(){return a(this)}static get watchers(){return{iconName:["prepIcon"],decorative:["watchDecorative"],screenreaderText:["watchScreenreaderText"]}}};h.style=":host{display:inline-flex;width:1em;height:1em}.gux-icon-container{display:flex;align-items:center;justify-content:center;width:100%}.gux-icon-container svg{width:100%;max-width:100%;height:100%;max-height:100%;fill:currentcolor}";export{h as gux_icon}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,f as e,d as i,h,H as o,g as l}from"./p-7a1d01cb.js";import{b as a}from"./p-c35bd7c8.js";import{w as r}from"./p-76ff3e75.js";import{r as n}from"./p-cbcbd1bb.js";import{t as c}from"./p-aec74037.js";import{t as b}from"./p-e310debb.js";import"./p-8a133b9b.js";const u=class{constructor(i){t(this,i),this.guxselectionchanged=s(this,"guxselectionchanged",7),this.guxsortchanged=s(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>e(this))),this.tableId=n("gux-table"),this.columnsWidths={},this.tableWidth=this.getElementComputedWidth(this.slottedTable),this.isVerticalScroll=!1,this.isHorizontalScroll=!1,this.isScrolledToFirstCell=!0,this.isScrolledToLastCell=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1}async componentWillLoad(){c(this.root),this.i18n=await a(this.root,b)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSelectableRows(),this.checkHorizontalScroll(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{i((()=>{this.checkHorizontalScroll(),this.checkVerticalScroll(),this.updateScrollState(),this.scaleColumnWidths()}))}))),this.resizeObserver&&(this.resizeObserver.observe(this.tableContainer),this.resizeObserver.observe(this.slottedTable)),this.slotObserver.observe(this.slottedTable,{subtree:!0,childList:!0})}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.unobserve(this.tableContainer),this.resizeObserver.unobserve(this.slottedTable)),this.resizableColumns&&document.getElementById(`${this.tableId}-resizable-styles`).remove()}onScroll(){this.updateScrollState()}onInternalAllRowSelectChange(t){t.stopPropagation(),this.handleSelectAllRows()}onInternalRowSelectChange(t){t.stopPropagation(),this.handleRowSelection(t.target)}onMouseMove(t){this.resizableColumns&&this.updateResizeState(t)}onMouseDown(t){this.resizableColumns&&this.maybeStartResizing(t)}onMouseUp(){this.resizableColumns&&this.stopResizing()}get tableContainer(){return this.root.shadowRoot.querySelector(".gux-table-container")}get slottedTable(){return this.root.querySelector('table[slot="data"]')}get tableRows(){return Array.from(this.slottedTable.querySelectorAll("tbody tr"))}get tableColumns(){return Array.from(this.slottedTable.querySelectorAll("thead th"))}get rowCheckboxes(){return Array.from(this.slottedTable.querySelectorAll("tbody tr td gux-row-select"))}get selectAllCheckbox(){return this.slottedTable.querySelector("thead tr th gux-all-row-select")}async getSelected(){return this.getSelectedInternal()}getSelectedInternal(){return{selectedRowIds:Array.from(this.rowCheckboxes).filter((t=>t.selected)).map((t=>t.closest("tr").getAttribute("data-row-id")))}}prepareSelectableRows(){this.rowCheckboxes.forEach((t=>{this.updateRowSelection(t)})),this.updateSelectAllBoxState()}updateSelectAllBoxState(){const t=this.selectAllCheckbox;if(t){const s=this.rowCheckboxes,e=s.filter((t=>0==t.hasAttribute("disabled"))),i=e.filter((t=>t.selected)),h=Boolean(s.length),o=i.length===e.length,l=0===i.length;t.selected=h&&o,t.setIndeterminate(h&&!o&&!l)}}handleSelectAllRows(){const t=this.selectAllCheckbox;this.rowCheckboxes.forEach((s=>{s.hasAttribute("disabled")||(s.selected=t.selected,this.updateRowSelection(s))})),this.emitSelectionEvent()}handleRowSelection(t){this.updateRowSelection(t),this.updateSelectAllBoxState(),this.emitSelectionEvent()}emitSelectionEvent(){this.guxselectionchanged.emit(this.getSelectedInternal())}updateRowSelection(t){const s=t.closest("tr");t.selected?s.setAttribute("data-selected-row",""):s.removeAttribute("data-selected-row")}nextColumn(){const t=this.tableColumns,s=this.tableContainer.getBoundingClientRect();let e=(t.find((t=>t.getBoundingClientRect().right>s.right))||t[t.length-1]).getBoundingClientRect().right-s.right;e>s.width&&(e=.9*s.width),this.tableContainer.scrollLeft+=Math.ceil(e),this.updateScrollState()}previousColumn(){const t=this.tableColumns,s=this.tableContainer.getBoundingClientRect(),e=(t.reverse().find((t=>t.getBoundingClientRect().left<s.left))||t[0]).getBoundingClientRect();let i=s.left-e.left;i>s.width&&(i=.9*s.width),this.tableContainer.scrollLeft+=-Math.ceil(i),this.updateScrollState()}updateScrollState(){const t=this.tableContainer.scrollLeft,s=this.tableContainer.scrollWidth-this.tableContainer.clientWidth;this.isScrolledToFirstCell=0===t,this.isScrolledToLastCell=s-t-this.tableScrollbarConstant<=0}checkHorizontalScroll(){const t=this.slottedTable.getBoundingClientRect().width,s=this.root.getBoundingClientRect().width;this.isHorizontalScroll=t>s}checkVerticalScroll(){const t=this.tableContainer;this.isVerticalScroll=t.scrollHeight>t.clientHeight}get tableScrollbarConstant(){const t=this.tableContainer;return t?t.offsetWidth-t.clientWidth:0}prepareResizableColumns(){const t=document.createElement("style");t.id=`${this.tableId}-resizable-styles`,document.querySelector("head").appendChild(t);const s=this.calculateColumnWidths(this.tableColumns);this.tableWidth=this.getElementComputedWidth(this.slottedTable),s.slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.setResizableColumnsStyles()}scaleColumnWidths(){if(!this.columnResizeState&&this.resizableColumns){const t=this.calculateColumnWidths(this.tableColumns),s=this.tableWidth,e=this.getElementComputedWidth(this.slottedTable);t.map((t=>Object.assign(Object.assign({},t),{width:this.calcScaledColWidth(t.width,s,e)}))).slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.tableWidth=e,this.setResizableColumnsStyles()}}calcScaledColWidth(t,s,e){const i=Math.round(t/s*e);return Math.max(i,1)}updateResizeState(t){if(this.columnResizeState){const s=this.columnResizeState.resizableColumn.dataset.columnName,e=Math.max(this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX),1),i=this.calculateColumnWidths(this.tableColumns).map((t=>t.name===s?Object.assign(Object.assign({},t),{width:e}):t));this.columnsWidths[s]=i.find((t=>t.name===s)).width,this.setResizableColumnsStyles(),this.tableWidth=this.getElementComputedWidth(this.slottedTable)}else this.columnResizeHover=!1,r("th",t,(s=>{this.tableColumns.length-1!==s.cellIndex&&this.isInResizeZone(t,s)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){r("th",t,(s=>{this.isInResizeZone(t,s)&&(this.columnResizeState={resizableColumn:s,columnResizeMouseStartX:t.pageX,resizableColumnInitialWidth:this.getElementComputedWidth(s)})}))}stopResizing(){this.columnResizeState&&(this.columnResizeState=null)}isInResizeZone(t,s){return s.getBoundingClientRect().right-t.clientX<3}getElementComputedWidth(t){return t.clientWidth-parseInt(window.getComputedStyle(t).paddingLeft)-parseInt(window.getComputedStyle(t).paddingRight)}calculateColumnWidths(t){return t.map((t=>({name:t.dataset.columnName,width:this.getElementComputedWidth(t)})))}setResizableColumnsStyles(){const t=document.getElementById(`${this.tableId}-resizable-styles`);let s="";Object.keys(this.columnsWidths).forEach((t=>{s+=`[gs-table-id=${this.tableId}] th[data-column-name="${t}"]{\n width:${String(this.columnsWidths[t])};\n min-width:${String(this.columnsWidths[t])};\n }`})),t.innerHTML=s}get isTableEmpty(){return!this.root.children[0]||this.tableRows.length<1}get tableContainerClasses(){return{"gux-table-container":!0,"gux-column-resizing":Boolean(this.columnResizeState),"gux-column-resizing-hover":this.columnResizeHover}}render(){return h(o,{"gs-table-id":this.tableId,"gs-v-scroll":this.isVerticalScroll,"gs-h-scroll":this.isHorizontalScroll,"gs-obj-table":this.objectTable,"gs-compact":this.compact},h("div",{class:"gux-table"},h("div",{tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},h("slot",{name:"data"})),this.isHorizontalScroll&&h("gux-button-slot-beta",{accent:"secondary"},h("button",{class:"gux-table-scroll-left",disabled:this.isScrolledToFirstCell,onClick:!this.isScrolledToFirstCell&&this.previousColumn.bind(this)},h("gux-icon",{"icon-name":"chevron-left","screenreader-text":this.i18n("scrollLeft")}))),this.isHorizontalScroll&&h("gux-button-slot-beta",{accent:"secondary",style:{marginRight:`${this.tableScrollbarConstant}px`}},h("button",{class:"gux-table-scroll-right",disabled:this.isScrolledToLastCell,style:{marginRight:`${this.tableScrollbarConstant}px`},onClick:!this.isScrolledToLastCell&&this.nextColumn.bind(this)},h("gux-icon",{"icon-name":"chevron-right","screenreader-text":this.i18n("scrollRight")}))),this.isTableEmpty&&h("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return l(this)}};u.style=":host{display:block;isolation:isolate}:host .gux-table{position:relative;height:inherit}:host .gux-table .gux-table-scroll-left,:host .gux-table .gux-table-scroll-right{position:absolute;top:0;z-index:1;display:flex;align-items:center;justify-content:center;width:24px;min-width:0;height:40px;padding:0;color:#2e394c;cursor:pointer;border-radius:4px}:host .gux-table .gux-table-scroll-left gux-icon,:host .gux-table .gux-table-scroll-right gux-icon{width:8px;height:8px}:host .gux-table .gux-table-scroll-left{border-top-left-radius:0;border-bottom-left-radius:0}:host .gux-table .gux-table-scroll-right{right:0;border-top-right-radius:0;border-bottom-right-radius:0}:host .gux-table .gux-table-container{width:100%;max-height:100%;overflow-x:hidden;scrollbar-color:rgba(32, 41, 55, 0.24) #fdfdfd;scrollbar-width:thin}:host .gux-table .gux-table-container::-webkit-scrollbar{width:4px}:host .gux-table .gux-table-container::-webkit-scrollbar-track{background:#fdfdfd}:host .gux-table .gux-table-container::-webkit-scrollbar-thumb{background:rgba(32, 41, 55, 0.24)}:host .gux-table .gux-table-container::-webkit-scrollbar-thumb:hover{background:rgba(32, 41, 55, 0.48)}:host .gux-table .gux-table-container.gux-column-resizing-hover,:host .gux-table .gux-table-container.gux-column-resizing{cursor:col-resize}:host .gux-empty-table{display:flex;align-items:center;justify-content:center;height:150px;color:#596373;background:#fdfdfd;font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}";export{u as gux_table_beta}
|
|
1
|
+
import{r as t,c as s,f as e,d as i,h,H as o,g as l}from"./p-7a1d01cb.js";import{b as a}from"./p-c35bd7c8.js";import{w as r}from"./p-76ff3e75.js";import{r as n}from"./p-cbcbd1bb.js";import{t as c}from"./p-6f28cce9.js";import{t as b}from"./p-e310debb.js";import"./p-8a133b9b.js";const u=class{constructor(i){t(this,i),this.guxselectionchanged=s(this,"guxselectionchanged",7),this.guxsortchanged=s(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>e(this))),this.tableId=n("gux-table"),this.columnsWidths={},this.tableWidth=this.getElementComputedWidth(this.slottedTable),this.isVerticalScroll=!1,this.isHorizontalScroll=!1,this.isScrolledToFirstCell=!0,this.isScrolledToLastCell=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1}async componentWillLoad(){c(this.root),this.i18n=await a(this.root,b)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSelectableRows(),this.checkHorizontalScroll(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{i((()=>{this.checkHorizontalScroll(),this.checkVerticalScroll(),this.updateScrollState(),this.scaleColumnWidths()}))}))),this.resizeObserver&&(this.resizeObserver.observe(this.tableContainer),this.resizeObserver.observe(this.slottedTable)),this.slotObserver.observe(this.slottedTable,{subtree:!0,childList:!0})}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.unobserve(this.tableContainer),this.resizeObserver.unobserve(this.slottedTable)),this.resizableColumns&&document.getElementById(`${this.tableId}-resizable-styles`).remove()}onScroll(){this.updateScrollState()}onInternalAllRowSelectChange(t){t.stopPropagation(),this.handleSelectAllRows()}onInternalRowSelectChange(t){t.stopPropagation(),this.handleRowSelection(t.target)}onMouseMove(t){this.resizableColumns&&this.updateResizeState(t)}onMouseDown(t){this.resizableColumns&&this.maybeStartResizing(t)}onMouseUp(){this.resizableColumns&&this.stopResizing()}get tableContainer(){return this.root.shadowRoot.querySelector(".gux-table-container")}get slottedTable(){return this.root.querySelector('table[slot="data"]')}get tableRows(){return Array.from(this.slottedTable.querySelectorAll("tbody tr"))}get tableColumns(){return Array.from(this.slottedTable.querySelectorAll("thead th"))}get rowCheckboxes(){return Array.from(this.slottedTable.querySelectorAll("tbody tr td gux-row-select"))}get selectAllCheckbox(){return this.slottedTable.querySelector("thead tr th gux-all-row-select")}async getSelected(){return this.getSelectedInternal()}getSelectedInternal(){return{selectedRowIds:Array.from(this.rowCheckboxes).filter((t=>t.selected)).map((t=>t.closest("tr").getAttribute("data-row-id")))}}prepareSelectableRows(){this.rowCheckboxes.forEach((t=>{this.updateRowSelection(t)})),this.updateSelectAllBoxState()}updateSelectAllBoxState(){const t=this.selectAllCheckbox;if(t){const s=this.rowCheckboxes,e=s.filter((t=>0==t.hasAttribute("disabled"))),i=e.filter((t=>t.selected)),h=Boolean(s.length),o=i.length===e.length,l=0===i.length;t.selected=h&&o,t.setIndeterminate(h&&!o&&!l)}}handleSelectAllRows(){const t=this.selectAllCheckbox;this.rowCheckboxes.forEach((s=>{s.hasAttribute("disabled")||(s.selected=t.selected,this.updateRowSelection(s))})),this.emitSelectionEvent()}handleRowSelection(t){this.updateRowSelection(t),this.updateSelectAllBoxState(),this.emitSelectionEvent()}emitSelectionEvent(){this.guxselectionchanged.emit(this.getSelectedInternal())}updateRowSelection(t){const s=t.closest("tr");t.selected?s.setAttribute("data-selected-row",""):s.removeAttribute("data-selected-row")}nextColumn(){const t=this.tableColumns,s=this.tableContainer.getBoundingClientRect();let e=(t.find((t=>t.getBoundingClientRect().right>s.right))||t[t.length-1]).getBoundingClientRect().right-s.right;e>s.width&&(e=.9*s.width),this.tableContainer.scrollLeft+=Math.ceil(e),this.updateScrollState()}previousColumn(){const t=this.tableColumns,s=this.tableContainer.getBoundingClientRect(),e=(t.reverse().find((t=>t.getBoundingClientRect().left<s.left))||t[0]).getBoundingClientRect();let i=s.left-e.left;i>s.width&&(i=.9*s.width),this.tableContainer.scrollLeft+=-Math.ceil(i),this.updateScrollState()}updateScrollState(){const t=this.tableContainer.scrollLeft,s=this.tableContainer.scrollWidth-this.tableContainer.clientWidth;this.isScrolledToFirstCell=0===t,this.isScrolledToLastCell=s-t-this.tableScrollbarConstant<=0}checkHorizontalScroll(){const t=this.slottedTable.getBoundingClientRect().width,s=this.root.getBoundingClientRect().width;this.isHorizontalScroll=t>s}checkVerticalScroll(){const t=this.tableContainer;this.isVerticalScroll=t.scrollHeight>t.clientHeight}get tableScrollbarConstant(){const t=this.tableContainer;return t?t.offsetWidth-t.clientWidth:0}prepareResizableColumns(){const t=document.createElement("style");t.id=`${this.tableId}-resizable-styles`,document.querySelector("head").appendChild(t);const s=this.calculateColumnWidths(this.tableColumns);this.tableWidth=this.getElementComputedWidth(this.slottedTable),s.slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.setResizableColumnsStyles()}scaleColumnWidths(){if(!this.columnResizeState&&this.resizableColumns){const t=this.calculateColumnWidths(this.tableColumns),s=this.tableWidth,e=this.getElementComputedWidth(this.slottedTable);t.map((t=>Object.assign(Object.assign({},t),{width:this.calcScaledColWidth(t.width,s,e)}))).slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.tableWidth=e,this.setResizableColumnsStyles()}}calcScaledColWidth(t,s,e){const i=Math.round(t/s*e);return Math.max(i,1)}updateResizeState(t){if(this.columnResizeState){const s=this.columnResizeState.resizableColumn.dataset.columnName,e=Math.max(this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX),1),i=this.calculateColumnWidths(this.tableColumns).map((t=>t.name===s?Object.assign(Object.assign({},t),{width:e}):t));this.columnsWidths[s]=i.find((t=>t.name===s)).width,this.setResizableColumnsStyles(),this.tableWidth=this.getElementComputedWidth(this.slottedTable)}else this.columnResizeHover=!1,r("th",t,(s=>{this.tableColumns.length-1!==s.cellIndex&&this.isInResizeZone(t,s)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){r("th",t,(s=>{this.isInResizeZone(t,s)&&(this.columnResizeState={resizableColumn:s,columnResizeMouseStartX:t.pageX,resizableColumnInitialWidth:this.getElementComputedWidth(s)})}))}stopResizing(){this.columnResizeState&&(this.columnResizeState=null)}isInResizeZone(t,s){return s.getBoundingClientRect().right-t.clientX<3}getElementComputedWidth(t){return t.clientWidth-parseInt(window.getComputedStyle(t).paddingLeft)-parseInt(window.getComputedStyle(t).paddingRight)}calculateColumnWidths(t){return t.map((t=>({name:t.dataset.columnName,width:this.getElementComputedWidth(t)})))}setResizableColumnsStyles(){const t=document.getElementById(`${this.tableId}-resizable-styles`);let s="";Object.keys(this.columnsWidths).forEach((t=>{s+=`[gs-table-id=${this.tableId}] th[data-column-name="${t}"]{\n width:${String(this.columnsWidths[t])};\n min-width:${String(this.columnsWidths[t])};\n }`})),t.innerHTML=s}get isTableEmpty(){return!this.root.children[0]||this.tableRows.length<1}get tableContainerClasses(){return{"gux-table-container":!0,"gux-column-resizing":Boolean(this.columnResizeState),"gux-column-resizing-hover":this.columnResizeHover}}render(){return h(o,{"gs-table-id":this.tableId,"gs-v-scroll":this.isVerticalScroll,"gs-h-scroll":this.isHorizontalScroll,"gs-obj-table":this.objectTable,"gs-compact":this.compact},h("div",{class:"gux-table"},h("div",{tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},h("slot",{name:"data"})),this.isHorizontalScroll&&h("gux-button-slot-beta",{accent:"secondary"},h("button",{class:"gux-table-scroll-left",disabled:this.isScrolledToFirstCell,onClick:!this.isScrolledToFirstCell&&this.previousColumn.bind(this)},h("gux-icon",{"icon-name":"chevron-left","screenreader-text":this.i18n("scrollLeft")}))),this.isHorizontalScroll&&h("gux-button-slot-beta",{accent:"secondary",style:{marginRight:`${this.tableScrollbarConstant}px`}},h("button",{class:"gux-table-scroll-right",disabled:this.isScrolledToLastCell,style:{marginRight:`${this.tableScrollbarConstant}px`},onClick:!this.isScrolledToLastCell&&this.nextColumn.bind(this)},h("gux-icon",{"icon-name":"chevron-right","screenreader-text":this.i18n("scrollRight")}))),this.isTableEmpty&&h("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return l(this)}};u.style=":host{display:block;isolation:isolate}:host .gux-table{position:relative;height:inherit}:host .gux-table .gux-table-scroll-left,:host .gux-table .gux-table-scroll-right{position:absolute;top:0;z-index:1;display:flex;align-items:center;justify-content:center;width:24px;min-width:0;height:40px;padding:0;color:#2e394c;cursor:pointer;border-radius:4px}:host .gux-table .gux-table-scroll-left gux-icon,:host .gux-table .gux-table-scroll-right gux-icon{width:8px;height:8px}:host .gux-table .gux-table-scroll-left{border-top-left-radius:0;border-bottom-left-radius:0}:host .gux-table .gux-table-scroll-right{right:0;border-top-right-radius:0;border-bottom-right-radius:0}:host .gux-table .gux-table-container{width:100%;max-height:100%;overflow-x:hidden;scrollbar-color:rgba(32, 41, 55, 0.24) #fdfdfd;scrollbar-width:thin}:host .gux-table .gux-table-container::-webkit-scrollbar{width:4px}:host .gux-table .gux-table-container::-webkit-scrollbar-track{background:#fdfdfd}:host .gux-table .gux-table-container::-webkit-scrollbar-thumb{background:rgba(32, 41, 55, 0.24)}:host .gux-table .gux-table-container::-webkit-scrollbar-thumb:hover{background:rgba(32, 41, 55, 0.48)}:host .gux-table .gux-table-container.gux-column-resizing-hover,:host .gux-table .gux-table-container.gux-column-resizing{cursor:col-resize}:host .gux-empty-table{display:flex;align-items:center;justify-content:center;height:150px;color:#596373;background:#fdfdfd;font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}";export{u as gux_table_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,d as t,h as n,g as i}from"./p-7a1d01cb.js";import{t as a}from"./p-
|
|
1
|
+
import{r as e,d as t,h as n,g as i}from"./p-7a1d01cb.js";import{t as a}from"./p-6f28cce9.js";import{O as o}from"./p-a9504f06.js";const s=class{constructor(t){e(this,t)}onResize(){this.setBlankStateSize()}componentWillLoad(){a(this.root)}componentDidLoad(){this.setBlankStateSize()}setBlankStateSize(){t((()=>{const e=this.root.clientWidth;this.blankStateSize=e<=160?"small":e<=300?"medium":"large"}))}render(){return n("div",{class:{"gux-container":!0,[`gux-${this.blankStateSize}`]:!0}},n("slot",{name:"image"}),n("div",{class:"gux-message-container"},n("slot",{name:"primary-message"})),n("div",{class:"gux-guidance-container"},n("slot",{name:"additional-guidance"})),n("gux-button-slot-beta",{accent:"primary"},n("slot",{name:"call-to-action"})))}get root(){return i(this)}};(function(e,t,n,i){var a,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var g=e.length-1;g>=0;g--)(a=e[g])&&(s=(o<3?a(s):o>3?a(t,n,s):a(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)})([o()],s.prototype,"onResize",null),s.style=":host{display:flex;flex-direction:column;align-items:center;justify-content:center}.gux-container{display:flex;flex-direction:column;align-items:center;justify-content:center}.gux-container ::slotted(gux-icon){width:48px;height:48px;color:#c8cfda}.gux-container slot[name='primary-message']{color:#364154;text-align:center;font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:14px;line-height:20px}.gux-container slot[name='additional-guidance']{color:#364154;text-align:center;font-family:Roboto, sans-serif;font-weight:400;font-size:11px;line-height:16px}.gux-container.gux-small .gux-message-container,.gux-container.gux-medium .gux-message-container{padding:8px 0 4px}.gux-container.gux-small .gux-guidance-container,.gux-container.gux-medium .gux-guidance-container{padding-bottom:8px}.gux-container.gux-large .gux-message-container{padding:16px 0 4px}.gux-container.gux-large .gux-message-container slot[name='primary-message']{font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:24px;line-height:32px}.gux-container.gux-large .gux-guidance-container{padding-bottom:16px}.gux-container.gux-large .gux-guidance-container slot[name='additional-guidance']{font-family:Roboto, sans-serif;font-weight:400;font-size:14px;line-height:24px}";export{s as gux_blank_state_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,H as o,g as a}from"./p-7a1d01cb.js";import{t as n}from"./p-
|
|
1
|
+
import{r as t,h as e,H as o,g as a}from"./p-7a1d01cb.js";import{t as n}from"./p-6f28cce9.js";const i=class{constructor(e){t(this,e)}componentWillLoad(){n(this.root)}render(){return e(o,null,e("div",{class:"gux-header"},e("div",{class:"gux-icon"},e("slot",{name:"icon"})),e("div",{class:"gux-title"},e("slot",{name:"title"}))),e("div",{class:"gux-message"},e("slot",{name:"message"})),e("div",{class:"gux-action-buttons"},e("div",{class:"gux-positive-button"},e("slot",{name:"positive-button"})),e("div",{class:"gux-negative-button"},e("slot",{name:"negative-button"}))))}get root(){return a(this)}};i.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start;width:270px;padding:20px 24px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-header{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:flex-start;order:0;font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}.gux-header .gux-icon{flex:0 1 auto;align-self:auto;order:0;color:#1da8b3}.gux-header .gux-icon ::slotted(gux-icon){width:32px !important;height:32px !important}.gux-header .gux-title{flex:1 1 auto;align-self:auto;order:0;margin:0 0 0 8px}.gux-message{flex:0 1 auto;align-self:auto;order:0;margin:16px 0;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-message ::slotted(dl){display:flex;flex-direction:row;flex-wrap:wrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;align-self:auto;justify-content:space-between;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;align-self:auto;justify-content:space-between;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}";export{i as gux_action_toast}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,f as i,h as e,g as o}from"./p-7a1d01cb.js";import{c as r,o as s}from"./p-3f5341ea.js";import{O as n}from"./p-939b6e89.js";import{a}from"./p-e2bea786.js";import{p as l}from"./p-c10e41a9.js";import{h as p}from"./p-08bc2e6b.js";import{h,s as f,c as u,G as x,a as
|
|
1
|
+
import{r as t,f as i,h as e,g as o}from"./p-7a1d01cb.js";import{c as r,o as s}from"./p-3f5341ea.js";import{O as n}from"./p-939b6e89.js";import{a}from"./p-e2bea786.js";import{p as l}from"./p-c10e41a9.js";import{h as p}from"./p-08bc2e6b.js";import{h,s as f,c as u,G as x,a as c,v as g,g as d}from"./p-7a3b06ab.js";import{G as m,a as b}from"./p-b6ea91fa.js";import{t as w}from"./p-6f28cce9.js";import"./p-cbcbd1bb.js";import"./p-3184268e.js";import"./p-8fe7daff.js";import"./p-d176c2ae.js";const y=class{constructor(i){t(this,i),this.computedLabelPosition="above",this.hasContent=!1,this.hasError=!1,this.hasHelp=!1}onMutation(){this.hasError=p(this.root,"error"),this.hasHelp=p(this.root,"help")}async guxForceUpdate(){this.hasContent=h(this.input),this.hasError=p(this.root,"error"),this.hasHelp=p(this.root,"help"),i(this.root)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=p(this.root,"error"),this.hasHelp=p(this.root,"help"),this.hasPrefix=Boolean(this.root.querySelector('[slot="prefix"]')),this.hasSuffix=Boolean(this.root.querySelector('[slot="suffix"]')),this.hasPrefix&&f(this.root,this.input,"prefix"),this.hasSuffix&&f(this.root,this.input,"suffix"),w(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){return e(b,{labelPosition:this.computedLabelPosition},e(m,{position:this.computedLabelPosition,required:this.required},e("slot",{name:"label",onSlotchange:()=>this.setLabel()})),e("div",{class:"gux-input-and-error-container"},e("div",{class:{"gux-input":!0,"gux-input-error":this.hasError}},e("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-has-prefix":this.hasPrefix,"gux-has-suffix":this.hasSuffix}},e("slot",{name:"prefix"}),e("slot",{name:"input"}),e("slot",{name:"suffix"}),this.clearable&&this.hasContent&&!this.disabled&&e("gux-form-field-input-clear-button",{onClick:()=>u(this.input)}))),e(x,{show:this.hasError},e("slot",{name:"error"})),e(c,{show:!this.hasError&&this.hasHelp},e("slot",{name:"help"}))))}get variant(){const t=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.input.getAttribute("type")}-${this.clearable?"clearable":"unclearable"}-${t}`}setInput(){this.input=this.root.querySelector('input[type="email"][slot="input"], input[type="password"][slot="input"], input[type="text"][slot="input"]'),this.hasContent=h(this.input),l(this.input),this.input.addEventListener("input",(()=>{this.hasContent=h(this.input)})),this.disabled=r(this.input),this.required=this.input.required,this.disabledObserver=s(this.input,(t=>{this.disabled=t})),this.requiredObserver=a(this.input,(t=>{this.required=t})),g(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=d(this.label,this.labelPosition)}get root(){return o(this)}};(function(t,i,e,o){var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,e,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);s>3&&n&&Object.defineProperty(i,e,n)})([n({childList:!0,subtree:!0})],y.prototype,"onMutation",null),y.style=".gux-form-field-container{margin:var(--gux-form-field-container-margin-top, 16px) 0 var(--gux-form-field-container-margin-bottom, 16px) 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;font-weight:400;line-height:20px;color:#6b7585}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:12px;color:#2e394c;text-overflow:ellipsis;background-color:#f6f7f9;border:none;outline:none}::slotted(input)::placeholder{color:#596373;opacity:1}slot[name='prefix'],slot[name='suffix']{color:#2e394c;white-space:nowrap}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:4px 8px 4px 12px;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-input-and-error-container .gux-input .gux-input-container.gux-has-suffix:not(.gux-input-and-error-container .gux-input .gux-input-container.gux-has-prefix) ::slotted(input){text-align:right}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:#ea0b0b}";export{y as gux_form_field_text_like}
|