genesys-spark-components 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4924 -0
- package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
- package/dist/cjs/gux-accordion-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-action-button.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/gux-all-row-select.cjs.entry.js +2 -2
- package/dist/cjs/gux-badge-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +2 -2
- 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 +2 -2
- 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 +133 -0
- package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-content-search.cjs.entry.js +2 -2
- package/dist/cjs/gux-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/gux-disclosure-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +2 -2
- 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-input-clear-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-number.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
- package/dist/cjs/gux-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-input-checkbox_7.cjs.entry.js +1 -1
- package/dist/cjs/gux-input-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-input-text-like.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-modal.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 +115 -0
- package/dist/cjs/gux-pagination-buttons-beta_3.cjs.entry.js +258 -0
- package/dist/cjs/gux-pagination-buttons_3.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +2 -2
- 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 +2 -2
- 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-row-select.cjs.entry.js +2 -2
- 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-switch.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +2 -2
- package/dist/cjs/gux-tab-advanced.cjs.entry.js +2 -2
- package/dist/cjs/gux-tab-list.cjs.entry.js +2 -2
- package/dist/cjs/gux-tab.cjs.entry.js +2 -0
- package/dist/cjs/gux-table-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gux-tag-beta.cjs.entry.js +2 -2
- 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-picker-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-toggle.cjs.entry.js +2 -2
- package/dist/cjs/gux-tooltip_2.cjs.entry.js +3 -1
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +2 -2
- package/dist/cjs/{index-608364a8.js → index-2202ad01.js} +5 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-tracking-85436ff1.js → usage-tracking-53d21391.js} +1 -1
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.css +4 -0
- package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +344 -0
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-beta.css +39 -0
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-beta.js +225 -0
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-beta.types.js +1 -0
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-button-beta.service.js +91 -0
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.css +77 -0
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.js +154 -0
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.css +9 -0
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.js +102 -0
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.css +25 -0
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.js +85 -0
- package/dist/collection/components/beta/gux-table/gux-all-row-select/gux-all-row-select.js +1 -1
- package/dist/collection/components/beta/gux-table/gux-row-select/gux-row-select.js +1 -1
- package/dist/collection/components/stable/gux-tabs/gux-tab/gux-tab.js +2 -0
- package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.js +1 -1
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.js +1 -1
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.js +1 -1
- package/dist/collection/components/stable/gux-tooltip-title/gux-tooltip-title.js +2 -0
- package/dist/collection/i18n/index.js +5 -8
- package/dist/deploy-info.json +3 -3
- package/dist/esm/genesys-webcomponents.js +1 -1
- package/dist/esm/gux-accordion-legacy.entry.js +1 -1
- package/dist/esm/gux-accordion.entry.js +1 -1
- package/dist/esm/gux-action-button-legacy.entry.js +2 -2
- package/dist/esm/gux-action-button.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/gux-all-row-select.entry.js +2 -2
- package/dist/esm/gux-badge-beta.entry.js +2 -2
- package/dist/esm/gux-breadcrumbs.entry.js +2 -2
- 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 +2 -2
- 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 +129 -0
- package/dist/esm/gux-command-palette-legacy.entry.js +2 -2
- package/dist/esm/gux-content-search.entry.js +2 -2
- package/dist/esm/gux-datepicker.entry.js +2 -2
- package/dist/esm/gux-disclosure-button.entry.js +2 -2
- package/dist/esm/gux-dismiss-button.entry.js +2 -2
- package/dist/esm/gux-dropdown-legacy.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +2 -2
- 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-input-clear-button.entry.js +2 -2
- package/dist/esm/gux-form-field-legacy.entry.js +1 -1
- package/dist/esm/gux-form-field-number.entry.js +2 -2
- package/dist/esm/gux-form-field-radio.entry.js +1 -1
- package/dist/esm/gux-form-field-range.entry.js +1 -1
- package/dist/esm/gux-form-field-search.entry.js +1 -1
- package/dist/esm/gux-form-field-select.entry.js +1 -1
- package/dist/esm/gux-form-field-text-like.entry.js +1 -1
- package/dist/esm/gux-form-field-textarea.entry.js +1 -1
- package/dist/esm/gux-icon.entry.js +1 -1
- package/dist/esm/gux-input-checkbox_7.entry.js +1 -1
- package/dist/esm/gux-input-search.entry.js +1 -1
- package/dist/esm/gux-input-text-like.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-modal.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 +111 -0
- package/dist/esm/gux-pagination-buttons-beta_3.entry.js +252 -0
- package/dist/esm/gux-pagination-buttons_3.entry.js +1 -1
- package/dist/esm/gux-pagination-cursor.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/gux-radial-progress.entry.js +1 -1
- package/dist/esm/gux-rating.entry.js +1 -1
- package/dist/esm/gux-row-select.entry.js +2 -2
- 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-switch.entry.js +1 -1
- package/dist/esm/gux-tab-advanced-list.entry.js +2 -2
- package/dist/esm/gux-tab-advanced.entry.js +2 -2
- package/dist/esm/gux-tab-list.entry.js +2 -2
- package/dist/esm/gux-tab.entry.js +2 -0
- package/dist/esm/gux-table-beta.entry.js +2 -2
- package/dist/esm/gux-tabs-advanced.entry.js +1 -1
- package/dist/esm/gux-tabs-legacy.entry.js +2 -2
- package/dist/esm/gux-tabs.entry.js +1 -1
- package/dist/esm/gux-tag-beta.entry.js +2 -2
- 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-picker-beta.entry.js +2 -2
- package/dist/esm/gux-toggle.entry.js +2 -2
- package/dist/esm/gux-tooltip_2.entry.js +3 -1
- package/dist/esm/gux-visualization-beta.entry.js +2 -2
- package/dist/esm/{index-eb3999c5.js → index-5bfcdeb1.js} +5 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-tracking-27c65ae8.js → usage-tracking-51697c05.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ar.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.cs.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.da.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.de.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es-es.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fi.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr-ca.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.it.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ja.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ko.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.nl.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.no.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pl.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pt-br.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ru.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.sv.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.th.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.tr.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-cn.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-tw.json +1 -1
- package/dist/genesys-webcomponents/{p-2f9715c3.entry.js → p-029337ed.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7a5f74d9.entry.js → p-0657bb17.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a5558019.entry.js → p-0769a6d9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-44afce2f.entry.js → p-0e778f56.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-14cd0c82.entry.js → p-12d27bc7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ffbb5862.entry.js → p-1312bc4b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-33520bfe.entry.js → p-13a7eb59.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-890b51d6.entry.js → p-15964b3a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-42454428.js → p-1bba8576.js} +1 -1
- package/dist/genesys-webcomponents/{p-8e12c97b.entry.js → p-1c57ad87.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-44738ee4.entry.js → p-1cd8af37.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-201c4e67.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d1d0b481.entry.js → p-22d6e306.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-22f6880d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-6bb22291.entry.js → p-23b66369.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-14a51c35.js → p-2548bdad.js} +1 -1
- package/dist/genesys-webcomponents/{p-78184d06.entry.js → p-30095062.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f2034144.entry.js → p-3160cd26.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3b335640.entry.js → p-3753e5bf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f3737156.entry.js → p-3aa02e38.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e2d7c903.entry.js → p-40b404e4.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-421513fb.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-5594f37c.entry.js → p-42d912d4.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4402a21b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-28463de4.entry.js → p-47b43bb0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-09ea55ec.entry.js → p-4a191fdf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dd761341.entry.js → p-4b3e2f4d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a41c00c6.entry.js → p-4b9a1290.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-881f55eb.entry.js → p-4cb5c8d4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-64ad2a25.entry.js → p-4d83e96e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9d490492.entry.js → p-51919256.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-592506ac.entry.js → p-541f1383.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-00c3054a.entry.js → p-5535d4ed.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-5d2b22a6.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-9ce6088b.entry.js → p-5e3c1579.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5b6f7cc8.entry.js → p-5f7759a8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dd814ad8.entry.js → p-5f9dc418.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a0503797.entry.js → p-604b978b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-de858ae0.entry.js → p-608ee12d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f89942a1.entry.js → p-612d3b4c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cfcab586.entry.js → p-62046104.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-65de98a6.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d0485040.entry.js → p-67d2bac0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4636daf4.entry.js → p-68ee84bf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-eb4661f4.entry.js → p-6d9ba55a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-893f0cc2.entry.js → p-7b4c2f8b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a456d7ca.entry.js → p-80c489ef.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-71438869.entry.js → p-8ad470a9.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8bcf179a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-69fe4ffe.entry.js → p-8df52df5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2a624729.entry.js → p-8e0974b7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-abc59192.entry.js → p-93cf1b7e.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-947b7fe3.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-8fbf07eb.entry.js → p-9ea979d4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-07200fbe.entry.js → p-aa078b1d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bb2c9b20.entry.js → p-b3bdfcc9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fcf8b41d.entry.js → p-b5762726.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-de5eede1.entry.js → p-b9911d1a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-832a8286.entry.js → p-ba4e06bc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a39c9746.entry.js → p-badab913.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-aa2aa002.entry.js → p-bb12b2dc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-93cc18db.entry.js → p-bde629e7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5d92c782.entry.js → p-be911be7.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c150db37.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-53e5fbc4.entry.js → p-c3524a32.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9e1fbc6e.entry.js → p-ce0c292e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-82cca429.entry.js → p-d748b223.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-22ce535d.entry.js → p-d9bcb92f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0d625862.entry.js → p-d9cbc341.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-80ac23f3.entry.js → p-e17d08a7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-80ab0f16.entry.js → p-ed20a20e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6f7aa738.entry.js → p-edb68d93.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-036fd850.entry.js → p-ee19896a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cc959b74.entry.js → p-ef83b43e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6d93d05c.entry.js → p-f0ae8bb8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e6be1cdd.entry.js → p-f6242c65.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-21ed1b6f.entry.js → p-f7f7374c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5b3f61b3.entry.js → p-f992d937.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a73fa450.entry.js → p-f9f89217.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0aefcf19.entry.js → p-faa78d1f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-406c1ecb.entry.js → p-fe70aa84.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.d.ts +52 -0
- package/dist/types/components/beta/gux-pagination-beta/gux-pagination-beta.d.ts +43 -0
- package/dist/types/components/beta/gux-pagination-beta/gux-pagination-beta.types.d.ts +2 -0
- package/dist/types/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-button-beta.service.d.ts +9 -0
- package/dist/types/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.d.ts +23 -0
- package/dist/types/components/beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.d.ts +13 -0
- package/dist/types/components/beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.d.ts +13 -0
- package/dist/types/components.d.ts +221 -0
- package/dist/types/i18n/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/genesys-webcomponents/p-155a1000.entry.js +0 -1
- package/dist/genesys-webcomponents/p-4bff75ab.entry.js +0 -1
- package/dist/genesys-webcomponents/p-64d6f1fa.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9bdbd2da.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ae53d4d6.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c3c3c607.entry.js +0 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
gux-pagination-buttons-beta {
|
|
2
|
+
color: #2e394c;
|
|
3
|
+
}
|
|
4
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
flex-wrap: nowrap;
|
|
8
|
+
align-content: stretch;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: flex-end;
|
|
11
|
+
}
|
|
12
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container > div {
|
|
13
|
+
flex: 0 1 auto;
|
|
14
|
+
align-self: auto;
|
|
15
|
+
order: 0;
|
|
16
|
+
}
|
|
17
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-group {
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
}
|
|
20
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-group gux-button-slot-beta:not(:first-of-type) {
|
|
21
|
+
margin-left: 8px;
|
|
22
|
+
}
|
|
23
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-input-container {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
flex-wrap: nowrap;
|
|
27
|
+
align-content: stretch;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
margin: 0 16px;
|
|
31
|
+
}
|
|
32
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-input-container > div {
|
|
33
|
+
flex: 0 1 auto;
|
|
34
|
+
align-self: auto;
|
|
35
|
+
order: 0;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
}
|
|
38
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-input-container .gux-pagination-buttons-input {
|
|
39
|
+
width: 60px;
|
|
40
|
+
margin: 0 8px;
|
|
41
|
+
}
|
|
42
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-input-container .gux-pagination-buttons-input input {
|
|
43
|
+
width: inherit;
|
|
44
|
+
text-align: center;
|
|
45
|
+
}
|
|
46
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: row;
|
|
49
|
+
flex-wrap: nowrap;
|
|
50
|
+
align-content: stretch;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
}
|
|
54
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current,
|
|
55
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-target {
|
|
56
|
+
height: 32px;
|
|
57
|
+
padding: 0 8px;
|
|
58
|
+
margin: 0;
|
|
59
|
+
background: inherit;
|
|
60
|
+
border: none;
|
|
61
|
+
}
|
|
62
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current:focus-visible,
|
|
63
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-target:focus-visible {
|
|
64
|
+
border: 3px solid #aac9ff;
|
|
65
|
+
border-radius: 5px;
|
|
66
|
+
outline: none;
|
|
67
|
+
}
|
|
68
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current {
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
}
|
|
71
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-target {
|
|
72
|
+
color: #2a60c8;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
}
|
|
75
|
+
gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-spacer {
|
|
76
|
+
width: 8px;
|
|
77
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { Component, Element, Event, h, Prop } from '@stencil/core';
|
|
2
|
+
import { buildI18nForComponent } from '../../../../i18n';
|
|
3
|
+
import paginationResources from './i18n/en.json';
|
|
4
|
+
import { GuxPaginationButtonsService } from './gux-pagination-button-beta.service';
|
|
5
|
+
export class GuxPaginationButtonsBeta {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.layout = 'advanced';
|
|
8
|
+
}
|
|
9
|
+
get onFirstPage() {
|
|
10
|
+
return this.currentPage <= 1;
|
|
11
|
+
}
|
|
12
|
+
get onLastPage() {
|
|
13
|
+
return this.currentPage >= this.totalPages;
|
|
14
|
+
}
|
|
15
|
+
handleClickFirst() {
|
|
16
|
+
this.internalcurrentpagechange.emit(1);
|
|
17
|
+
}
|
|
18
|
+
handleClickPrevious() {
|
|
19
|
+
this.internalcurrentpagechange.emit(this.currentPage - 1);
|
|
20
|
+
}
|
|
21
|
+
handleClickNext() {
|
|
22
|
+
this.internalcurrentpagechange.emit(this.currentPage + 1);
|
|
23
|
+
}
|
|
24
|
+
handleClickLast() {
|
|
25
|
+
this.internalcurrentpagechange.emit(this.totalPages);
|
|
26
|
+
}
|
|
27
|
+
handleClickPage(pageNumber) {
|
|
28
|
+
this.internalcurrentpagechange.emit(pageNumber);
|
|
29
|
+
}
|
|
30
|
+
getPageListEnteries(currentPage, totalPages) {
|
|
31
|
+
return GuxPaginationButtonsService.getPageList(currentPage, totalPages).reduce((acc, cv) => {
|
|
32
|
+
if (cv.current) {
|
|
33
|
+
return acc.concat((h("button", { class: "gux-pagination-buttons-list-current" }, cv.display)));
|
|
34
|
+
}
|
|
35
|
+
return acc.concat((h("button", { class: "gux-pagination-buttons-list-target", onClick: () => this.handleClickPage(cv.pageNumber) }, cv.display)));
|
|
36
|
+
}, []);
|
|
37
|
+
}
|
|
38
|
+
getSmallPagePicker() {
|
|
39
|
+
return (h("div", { class: 'gux-pagination-buttons-spacer' }));
|
|
40
|
+
}
|
|
41
|
+
getFullPagePicker() {
|
|
42
|
+
return (h("div", { class: "gux-pagination-buttons-list-container" }, this.getPageListEnteries(this.currentPage, this.totalPages)));
|
|
43
|
+
}
|
|
44
|
+
getPagePicker(layout) {
|
|
45
|
+
if (layout === 'simple') {
|
|
46
|
+
return this.getSmallPagePicker();
|
|
47
|
+
}
|
|
48
|
+
return this.getFullPagePicker();
|
|
49
|
+
}
|
|
50
|
+
async componentWillLoad() {
|
|
51
|
+
this.i18n = await buildI18nForComponent(this.root, paginationResources);
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
return (h("div", { class: `gux-pagination-buttons-container gux-${this.layout}` },
|
|
55
|
+
h("div", { class: "gux-pagination-buttons-group" },
|
|
56
|
+
h("gux-button-slot-beta", { accent: "secondary" },
|
|
57
|
+
h("button", { title: this.i18n('first'), disabled: this.onFirstPage, onClick: this.handleClickFirst.bind(this) },
|
|
58
|
+
h("gux-icon", { decorative: true, "icon-name": "chevron-double-left" }))),
|
|
59
|
+
h("gux-button-slot-beta", { accent: "secondary" },
|
|
60
|
+
h("button", { title: this.i18n('previous'), disabled: this.onFirstPage, onClick: this.handleClickPrevious.bind(this) },
|
|
61
|
+
h("gux-icon", { decorative: true, "icon-name": "chevron-small-left" })))),
|
|
62
|
+
this.getPagePicker(this.layout),
|
|
63
|
+
h("div", { class: "gux-pagination-buttons-group" },
|
|
64
|
+
h("gux-button-slot-beta", { accent: "secondary" },
|
|
65
|
+
h("button", { title: this.i18n('next'), disabled: this.onLastPage, onClick: this.handleClickNext.bind(this) },
|
|
66
|
+
h("gux-icon", { decorative: true, "icon-name": "chevron-small-right" }))),
|
|
67
|
+
h("gux-button-slot-beta", { accent: "secondary" },
|
|
68
|
+
h("button", { title: this.i18n('last'), disabled: this.onLastPage, onClick: this.handleClickLast.bind(this) },
|
|
69
|
+
h("gux-icon", { decorative: true, "icon-name": "chevron-double-right" }))))));
|
|
70
|
+
}
|
|
71
|
+
static get is() { return "gux-pagination-buttons-beta"; }
|
|
72
|
+
static get originalStyleUrls() { return {
|
|
73
|
+
"$": ["gux-pagination-buttons-beta.less"]
|
|
74
|
+
}; }
|
|
75
|
+
static get styleUrls() { return {
|
|
76
|
+
"$": ["gux-pagination-buttons-beta.css"]
|
|
77
|
+
}; }
|
|
78
|
+
static get properties() { return {
|
|
79
|
+
"currentPage": {
|
|
80
|
+
"type": "number",
|
|
81
|
+
"mutable": false,
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "number",
|
|
84
|
+
"resolved": "number",
|
|
85
|
+
"references": {}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": false,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": ""
|
|
92
|
+
},
|
|
93
|
+
"attribute": "current-page",
|
|
94
|
+
"reflect": false
|
|
95
|
+
},
|
|
96
|
+
"totalPages": {
|
|
97
|
+
"type": "number",
|
|
98
|
+
"mutable": false,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "number",
|
|
101
|
+
"resolved": "number",
|
|
102
|
+
"references": {}
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": false,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [],
|
|
108
|
+
"text": ""
|
|
109
|
+
},
|
|
110
|
+
"attribute": "total-pages",
|
|
111
|
+
"reflect": false
|
|
112
|
+
},
|
|
113
|
+
"layout": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"mutable": false,
|
|
116
|
+
"complexType": {
|
|
117
|
+
"original": "GuxPaginationLayoutBeta",
|
|
118
|
+
"resolved": "\"advanced\" | \"simple\"",
|
|
119
|
+
"references": {
|
|
120
|
+
"GuxPaginationLayoutBeta": {
|
|
121
|
+
"location": "import",
|
|
122
|
+
"path": "../gux-pagination-beta.types"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"required": false,
|
|
127
|
+
"optional": false,
|
|
128
|
+
"docs": {
|
|
129
|
+
"tags": [],
|
|
130
|
+
"text": ""
|
|
131
|
+
},
|
|
132
|
+
"attribute": "layout",
|
|
133
|
+
"reflect": false,
|
|
134
|
+
"defaultValue": "'advanced'"
|
|
135
|
+
}
|
|
136
|
+
}; }
|
|
137
|
+
static get events() { return [{
|
|
138
|
+
"method": "internalcurrentpagechange",
|
|
139
|
+
"name": "internalcurrentpagechange",
|
|
140
|
+
"bubbles": false,
|
|
141
|
+
"cancelable": true,
|
|
142
|
+
"composed": true,
|
|
143
|
+
"docs": {
|
|
144
|
+
"tags": [],
|
|
145
|
+
"text": ""
|
|
146
|
+
},
|
|
147
|
+
"complexType": {
|
|
148
|
+
"original": "number",
|
|
149
|
+
"resolved": "number",
|
|
150
|
+
"references": {}
|
|
151
|
+
}
|
|
152
|
+
}]; }
|
|
153
|
+
static get elementRef() { return "root"; }
|
|
154
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
gux-pagination-item-counts-beta {
|
|
2
|
+
color: #2e394c;
|
|
3
|
+
}
|
|
4
|
+
gux-pagination-item-counts-beta .gux-pagination-item-counts-container {
|
|
5
|
+
white-space: nowrap;
|
|
6
|
+
}
|
|
7
|
+
gux-pagination-item-counts-beta .gux-pagination-item-counts-container .gux-pagination-item-counts-range {
|
|
8
|
+
font-weight: bold;
|
|
9
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Component, Element, h, Prop } from '@stencil/core';
|
|
2
|
+
import { buildI18nForComponent } from '../../../../i18n';
|
|
3
|
+
import paginationResources from './i18n/en.json';
|
|
4
|
+
export class GuxPaginationItemCountsBeta {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.totalItems = 0;
|
|
7
|
+
this.currentPage = 0;
|
|
8
|
+
this.itemsPerPage = 25;
|
|
9
|
+
}
|
|
10
|
+
get firstItem() {
|
|
11
|
+
if (this.totalItems < 1) {
|
|
12
|
+
return 0;
|
|
13
|
+
}
|
|
14
|
+
return (this.currentPage - 1) * this.itemsPerPage + 1;
|
|
15
|
+
}
|
|
16
|
+
get lastItem() {
|
|
17
|
+
if (this.totalItems < 1) {
|
|
18
|
+
return 0;
|
|
19
|
+
}
|
|
20
|
+
return Math.min(this.currentPage * this.itemsPerPage, this.totalItems);
|
|
21
|
+
}
|
|
22
|
+
async componentWillLoad() {
|
|
23
|
+
this.i18n = await buildI18nForComponent(this.root, paginationResources);
|
|
24
|
+
}
|
|
25
|
+
getPaginationItemCountsRange() {
|
|
26
|
+
if (this.totalItems) {
|
|
27
|
+
return (h("span", null, this.i18n('totalItems', { totalItems: this.totalItems })));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return (h("div", { class: "gux-pagination-item-counts-container" },
|
|
32
|
+
h("span", { class: "gux-pagination-item-counts-range" }, this.i18n('itemCountDisplay', {
|
|
33
|
+
firstItem: this.firstItem,
|
|
34
|
+
lastItem: this.lastItem
|
|
35
|
+
})),
|
|
36
|
+
this.getPaginationItemCountsRange()));
|
|
37
|
+
}
|
|
38
|
+
static get is() { return "gux-pagination-item-counts-beta"; }
|
|
39
|
+
static get originalStyleUrls() { return {
|
|
40
|
+
"$": ["gux-pagination-item-counts-beta.less"]
|
|
41
|
+
}; }
|
|
42
|
+
static get styleUrls() { return {
|
|
43
|
+
"$": ["gux-pagination-item-counts-beta.css"]
|
|
44
|
+
}; }
|
|
45
|
+
static get properties() { return {
|
|
46
|
+
"totalItems": {
|
|
47
|
+
"type": "number",
|
|
48
|
+
"mutable": false,
|
|
49
|
+
"complexType": {
|
|
50
|
+
"original": "number",
|
|
51
|
+
"resolved": "number",
|
|
52
|
+
"references": {}
|
|
53
|
+
},
|
|
54
|
+
"required": false,
|
|
55
|
+
"optional": false,
|
|
56
|
+
"docs": {
|
|
57
|
+
"tags": [],
|
|
58
|
+
"text": ""
|
|
59
|
+
},
|
|
60
|
+
"attribute": "total-items",
|
|
61
|
+
"reflect": false,
|
|
62
|
+
"defaultValue": "0"
|
|
63
|
+
},
|
|
64
|
+
"currentPage": {
|
|
65
|
+
"type": "number",
|
|
66
|
+
"mutable": false,
|
|
67
|
+
"complexType": {
|
|
68
|
+
"original": "number",
|
|
69
|
+
"resolved": "number",
|
|
70
|
+
"references": {}
|
|
71
|
+
},
|
|
72
|
+
"required": false,
|
|
73
|
+
"optional": false,
|
|
74
|
+
"docs": {
|
|
75
|
+
"tags": [],
|
|
76
|
+
"text": ""
|
|
77
|
+
},
|
|
78
|
+
"attribute": "current-page",
|
|
79
|
+
"reflect": false,
|
|
80
|
+
"defaultValue": "0"
|
|
81
|
+
},
|
|
82
|
+
"itemsPerPage": {
|
|
83
|
+
"type": "number",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "number",
|
|
87
|
+
"resolved": "number",
|
|
88
|
+
"references": {}
|
|
89
|
+
},
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": false,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": ""
|
|
95
|
+
},
|
|
96
|
+
"attribute": "items-per-page",
|
|
97
|
+
"reflect": false,
|
|
98
|
+
"defaultValue": "25"
|
|
99
|
+
}
|
|
100
|
+
}; }
|
|
101
|
+
static get elementRef() { return "root"; }
|
|
102
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
gux-pagination-items-per-page-beta {
|
|
2
|
+
color: #2e394c;
|
|
3
|
+
}
|
|
4
|
+
gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
flex-wrap: nowrap;
|
|
8
|
+
align-content: stretch;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
}
|
|
12
|
+
gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container > div {
|
|
13
|
+
flex: 0 1 auto;
|
|
14
|
+
align-self: auto;
|
|
15
|
+
order: 0;
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
}
|
|
18
|
+
gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container .gux-pagination-items-per-page-picker {
|
|
19
|
+
margin: 0 8px 0 16px;
|
|
20
|
+
}
|
|
21
|
+
gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container gux-dropdown div.gux-dropdown .gux-options.gux-opened {
|
|
22
|
+
bottom: 100%;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column-reverse;
|
|
25
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Component, Element, Event, h, Listen, Prop } from '@stencil/core';
|
|
2
|
+
import { buildI18nForComponent } from '../../../../i18n';
|
|
3
|
+
import paginationResources from './i18n/en.json';
|
|
4
|
+
export class GuxPaginationItemsPerPageBeta {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.itemsPerPage = 25;
|
|
7
|
+
}
|
|
8
|
+
handleChange(event) {
|
|
9
|
+
event.stopPropagation();
|
|
10
|
+
const newItemsPerPageValue = parseInt(this.dropdownElement.value, 10);
|
|
11
|
+
this.internalitemsperpagechange.emit(newItemsPerPageValue);
|
|
12
|
+
}
|
|
13
|
+
async componentWillLoad() {
|
|
14
|
+
this.i18n = await buildI18nForComponent(this.root, paginationResources);
|
|
15
|
+
}
|
|
16
|
+
getDropdown() {
|
|
17
|
+
return (h("gux-dropdown", { ref: el => (this.dropdownElement = el), value: `${this.itemsPerPage}` },
|
|
18
|
+
h("gux-listbox", { "aria-label": this.i18n('itemsPerPage') },
|
|
19
|
+
h("gux-option", { value: "25" }, "25"),
|
|
20
|
+
h("gux-option", { value: "50" }, "50"),
|
|
21
|
+
h("gux-option", { value: "75" }, "75"),
|
|
22
|
+
h("gux-option", { value: "100" }, "100"))));
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return (h("div", { class: "gux-pagination-items-per-page-container" },
|
|
26
|
+
h("div", { class: "gux-pagination-items-per-page-picker" }, this.getDropdown()),
|
|
27
|
+
h("div", null, this.i18n('perPage'))));
|
|
28
|
+
}
|
|
29
|
+
static get is() { return "gux-pagination-items-per-page-beta"; }
|
|
30
|
+
static get originalStyleUrls() { return {
|
|
31
|
+
"$": ["gux-pagination-items-per-page-beta.less"]
|
|
32
|
+
}; }
|
|
33
|
+
static get styleUrls() { return {
|
|
34
|
+
"$": ["gux-pagination-items-per-page-beta.css"]
|
|
35
|
+
}; }
|
|
36
|
+
static get properties() { return {
|
|
37
|
+
"itemsPerPage": {
|
|
38
|
+
"type": "number",
|
|
39
|
+
"mutable": false,
|
|
40
|
+
"complexType": {
|
|
41
|
+
"original": "GuxItemsPerPage",
|
|
42
|
+
"resolved": "100 | 25 | 50 | 75",
|
|
43
|
+
"references": {
|
|
44
|
+
"GuxItemsPerPage": {
|
|
45
|
+
"location": "import",
|
|
46
|
+
"path": "../gux-pagination-beta.types"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"required": false,
|
|
51
|
+
"optional": false,
|
|
52
|
+
"docs": {
|
|
53
|
+
"tags": [],
|
|
54
|
+
"text": ""
|
|
55
|
+
},
|
|
56
|
+
"attribute": "items-per-page",
|
|
57
|
+
"reflect": false,
|
|
58
|
+
"defaultValue": "25"
|
|
59
|
+
}
|
|
60
|
+
}; }
|
|
61
|
+
static get events() { return [{
|
|
62
|
+
"method": "internalitemsperpagechange",
|
|
63
|
+
"name": "internalitemsperpagechange",
|
|
64
|
+
"bubbles": false,
|
|
65
|
+
"cancelable": true,
|
|
66
|
+
"composed": true,
|
|
67
|
+
"docs": {
|
|
68
|
+
"tags": [],
|
|
69
|
+
"text": ""
|
|
70
|
+
},
|
|
71
|
+
"complexType": {
|
|
72
|
+
"original": "number",
|
|
73
|
+
"resolved": "number",
|
|
74
|
+
"references": {}
|
|
75
|
+
}
|
|
76
|
+
}]; }
|
|
77
|
+
static get elementRef() { return "root"; }
|
|
78
|
+
static get listeners() { return [{
|
|
79
|
+
"name": "change",
|
|
80
|
+
"method": "handleChange",
|
|
81
|
+
"target": undefined,
|
|
82
|
+
"capture": false,
|
|
83
|
+
"passive": false
|
|
84
|
+
}]; }
|
|
85
|
+
}
|
|
@@ -18,7 +18,7 @@ export class GuxAllRowSelect {
|
|
|
18
18
|
this.inputElement.indeterminate = indeterminate;
|
|
19
19
|
}
|
|
20
20
|
async componentWillLoad() {
|
|
21
|
-
this.i18n = await buildI18nForComponent(this.root, tableResources);
|
|
21
|
+
this.i18n = await buildI18nForComponent(this.root, tableResources, 'gux-table');
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
24
|
return (h("gux-form-field-checkbox", null,
|
|
@@ -14,7 +14,7 @@ export class GuxRowSelect {
|
|
|
14
14
|
this.internalrowselectchange.emit();
|
|
15
15
|
}
|
|
16
16
|
async componentWillLoad() {
|
|
17
|
-
this.i18n = await buildI18nForComponent(this.root, tableResources);
|
|
17
|
+
this.i18n = await buildI18nForComponent(this.root, tableResources, 'gux-table');
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
20
|
return (h("gux-form-field-checkbox", null,
|
|
@@ -13,9 +13,11 @@ export class GuxTab {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
onFocusin() {
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
16
17
|
void this.tooltipTitleElement.setShowTooltip();
|
|
17
18
|
}
|
|
18
19
|
onFocusout() {
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
19
21
|
void this.tooltipTitleElement.setHideTooltip();
|
|
20
22
|
}
|
|
21
23
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
@@ -152,7 +152,7 @@ export class GuxTabList {
|
|
|
152
152
|
}
|
|
153
153
|
async componentWillLoad() {
|
|
154
154
|
this.setTabTriggers();
|
|
155
|
-
this.i18n = await buildI18nForComponent(this.root, tabsResources);
|
|
155
|
+
this.i18n = await buildI18nForComponent(this.root, tabsResources, 'gux-tabs');
|
|
156
156
|
}
|
|
157
157
|
componentDidLoad() {
|
|
158
158
|
if (!this.resizeObserver && window.ResizeObserver) {
|
package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.js
CHANGED
|
@@ -108,7 +108,7 @@ export class GuxTabAdvanced {
|
|
|
108
108
|
}, this.moveFocusDelay);
|
|
109
109
|
}
|
|
110
110
|
async componentWillLoad() {
|
|
111
|
-
this.i18n = await buildI18nForComponent(this.root, tabsResources);
|
|
111
|
+
this.i18n = await buildI18nForComponent(this.root, tabsResources, 'gux-tabs-advanced');
|
|
112
112
|
}
|
|
113
113
|
componentDidLoad() {
|
|
114
114
|
this.tabTitle = this.root
|
|
@@ -364,7 +364,7 @@ export class GuxTabAdvancedList {
|
|
|
364
364
|
}
|
|
365
365
|
async componentWillLoad() {
|
|
366
366
|
this.setTabTriggers();
|
|
367
|
-
this.i18n = await buildI18nForComponent(this.root, tabsResources);
|
|
367
|
+
this.i18n = await buildI18nForComponent(this.root, tabsResources, 'gux-tabs-advanced');
|
|
368
368
|
}
|
|
369
369
|
componentDidLoad() {
|
|
370
370
|
if (this.allowSort && !this.sortableInstance) {
|
|
@@ -28,12 +28,14 @@ export class GuxTooltipTitle {
|
|
|
28
28
|
async setShowTooltip() {
|
|
29
29
|
if (this.tooltipElement) {
|
|
30
30
|
this.showTooltip = true;
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
31
32
|
await this.tooltipElement.showTooltip();
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
async setHideTooltip() {
|
|
35
36
|
if (this.tooltipElement) {
|
|
36
37
|
this.showTooltip = false;
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
37
39
|
await this.tooltipElement.hideTooltip();
|
|
38
40
|
}
|
|
39
41
|
}
|
|
@@ -5,12 +5,12 @@ import locales from './locales.json';
|
|
|
5
5
|
import * as startOfWeekDataUntyped from './start-of-week.json';
|
|
6
6
|
import { getClosestElement } from '../utils/dom/get-closest-element';
|
|
7
7
|
const DEFAULT_LOCALE = 'en';
|
|
8
|
-
export async function buildI18nForComponent(component, defaultResources) {
|
|
8
|
+
export async function buildI18nForComponent(component, defaultResources, parentComponent) {
|
|
9
9
|
let resources = defaultResources;
|
|
10
10
|
let locale = 'en';
|
|
11
11
|
if (component !== undefined) {
|
|
12
12
|
locale = getDesiredLocale(component);
|
|
13
|
-
resources = await getComponentI18nResources(component, defaultResources, locale);
|
|
13
|
+
resources = await getComponentI18nResources(component, defaultResources, locale, parentComponent);
|
|
14
14
|
}
|
|
15
15
|
const intlFormats = Object.entries(resources).reduce((map, [key, val]) => {
|
|
16
16
|
map.set(key, new IntlMessageFormat(val, locale));
|
|
@@ -30,10 +30,9 @@ export async function buildI18nForComponent(component, defaultResources) {
|
|
|
30
30
|
return i18nString;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
export async function getComponentI18nResources(component, defaultResources, locale) {
|
|
34
|
-
const componentName =
|
|
35
|
-
.toLocaleLowerCase()
|
|
36
|
-
.replace(/-beta$/, '');
|
|
33
|
+
export async function getComponentI18nResources(component, defaultResources, locale, parentComponent) {
|
|
34
|
+
const componentName = parentComponent ||
|
|
35
|
+
component.tagName.toLocaleLowerCase().replace(/-beta$/, '');
|
|
37
36
|
let resources;
|
|
38
37
|
if (component['i18n-resources']) {
|
|
39
38
|
resources = component['i18n-resources'];
|
|
@@ -61,7 +60,6 @@ export function getDesiredLocale(element) {
|
|
|
61
60
|
return lang;
|
|
62
61
|
}
|
|
63
62
|
else {
|
|
64
|
-
console.error(`gux: No translation locale found for ${locale}, defaulting to '${DEFAULT_LOCALE}'`);
|
|
65
63
|
return DEFAULT_LOCALE;
|
|
66
64
|
}
|
|
67
65
|
}
|
|
@@ -71,7 +69,6 @@ function findLocaleInDom(element) {
|
|
|
71
69
|
return closestElement.lang.toLowerCase();
|
|
72
70
|
}
|
|
73
71
|
else {
|
|
74
|
-
console.error(`gux: No language specified on page, defaulting to '${DEFAULT_LOCALE}'`, element.tagName);
|
|
75
72
|
return DEFAULT_LOCALE;
|
|
76
73
|
}
|
|
77
74
|
}
|
package/dist/deploy-info.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spark-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"ecosystem": "pc",
|
|
5
5
|
"team": "Core UI",
|
|
6
6
|
"indexFiles": [],
|
|
7
|
-
"build": "
|
|
8
|
-
"buildDate": "2022-06-
|
|
7
|
+
"build": "32",
|
|
8
|
+
"buildDate": "2022-06-13T18:22:37.673964Z"
|
|
9
9
|
}
|