genesys-spark-components 3.20.3 → 3.21.2
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 +11 -0
- 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-badge-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-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 +2 -2
- package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
- package/dist/cjs/gux-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +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-notification-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
- package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
- package/dist/cjs/gux-rating.cjs.entry.js +1 -1
- package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-simple-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-list-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gux-tag-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-text-label-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-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-0f5c0932.js → usage-tracking-e72bf0b3.js} +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.css +2 -2
- 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-badge-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-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 +2 -2
- package/dist/esm/gux-form-field-select.entry.js +1 -1
- package/dist/esm/gux-form-field-text-like.entry.js +1 -1
- package/dist/esm/gux-form-field-textarea.entry.js +1 -1
- package/dist/esm/gux-icon.entry.js +1 -1
- package/dist/esm/gux-list-item-legacy_2.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +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-notification-toast.entry.js +1 -1
- package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
- package/dist/esm/gux-pagination-beta.entry.js +1 -1
- package/dist/esm/gux-pagination-cursor.entry.js +1 -1
- package/dist/esm/gux-pagination.entry.js +1 -1
- package/dist/esm/gux-panel-frame-legacy.entry.js +1 -1
- package/dist/esm/gux-popover-list.entry.js +1 -1
- package/dist/esm/gux-popover.entry.js +1 -1
- package/dist/esm/gux-radial-loading.entry.js +1 -1
- package/dist/esm/gux-radial-progress.entry.js +1 -1
- package/dist/esm/gux-rating.entry.js +1 -1
- package/dist/esm/gux-side-panel-legacy.entry.js +1 -1
- package/dist/esm/gux-simple-toast.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-list-beta.entry.js +1 -1
- package/dist/esm/gux-sort-control.entry.js +1 -1
- package/dist/esm/gux-switch.entry.js +1 -1
- package/dist/esm/gux-table-beta.entry.js +1 -1
- package/dist/esm/gux-tabs-advanced.entry.js +1 -1
- package/dist/esm/gux-tabs-legacy.entry.js +1 -1
- package/dist/esm/gux-tabs.entry.js +1 -1
- package/dist/esm/gux-tag-beta.entry.js +1 -1
- package/dist/esm/gux-text-highlight.entry.js +1 -1
- package/dist/esm/gux-text-label-legacy.entry.js +1 -1
- package/dist/esm/gux-time-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-8b81b292.js → usage-tracking-b3041444.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/{p-d230c7c8.entry.js → p-004cc94d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-72b06986.entry.js → p-0108a5d3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9ef2276c.entry.js → p-03ce0655.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-94018645.entry.js → p-0b0e4ed1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d39e1c64.entry.js → p-0c9e1fdc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e5570b88.entry.js → p-14607153.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c56ce00c.entry.js → p-15e00103.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ae9d05e5.entry.js → p-168bffb3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e27a42dd.entry.js → p-171b5eed.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-195596dc.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-9687c71d.entry.js → p-1cd38c5e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4ba72ff6.entry.js → p-1f3a89b6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1359863e.js → p-210346ca.js} +1 -1
- package/dist/genesys-webcomponents/{p-6c98ab03.entry.js → p-22860f16.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-42aeec72.entry.js → p-29b37ee8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-01822bb4.entry.js → p-29ed4720.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-09bfc21d.entry.js → p-2aad8b3e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6cd5c6c4.entry.js → p-3050d8c2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-503c4879.entry.js → p-312a2e5f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-62ad8022.entry.js → p-333ee191.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-988db0e7.entry.js → p-34c7bb18.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-482c39e4.entry.js → p-3c628108.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b8ff8c6a.entry.js → p-3c62f2b4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-eca2b8d0.entry.js → p-41b1a208.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f9bf2f70.entry.js → p-47a9f4fa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ce734a73.entry.js → p-4925bb1e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f5fe7e3d.entry.js → p-4c359a75.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1e11ea88.entry.js → p-4c3d7f1a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1fbd764e.entry.js → p-4c8a91e2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f7049b9f.entry.js → p-4db7bc3d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-eee790b7.entry.js → p-4fab536d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b3a75a31.entry.js → p-5083b35b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dabe7822.entry.js → p-51981dd5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-82f66355.entry.js → p-5961bbe0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-700fe9c6.entry.js → p-59620b45.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a052fd93.entry.js → p-5a34d19b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c93b0a53.entry.js → p-62fb2bed.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5b4df61e.entry.js → p-632b030d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a8d0a920.entry.js → p-6a48c82a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6090f7e9.entry.js → p-71f03e74.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-54618d9c.entry.js → p-745f607c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3e167185.entry.js → p-75569a3f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d75c700e.entry.js → p-7d059e52.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c61ed5d0.entry.js → p-7d2017ba.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ca710a01.entry.js → p-885ab587.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ed99d720.entry.js → p-88c5dbae.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-92fe7621.entry.js → p-89312a5b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5b4ad315.entry.js → p-9955ea54.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7dd86cf4.entry.js → p-a153bf9e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f96fb66d.entry.js → p-a494608f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-13d3145a.entry.js → p-a77a84db.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c67cf5f8.entry.js → p-adaa58fe.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-88c07e4a.entry.js → p-af079a12.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9396b879.entry.js → p-af2ff726.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-be8182af.entry.js → p-b36d7160.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7ce61228.entry.js → p-b6042663.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bccb0a6f.entry.js → p-c3d2a7e1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dab291a4.entry.js → p-c485c1a2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-21ab881b.entry.js → p-c62520b3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2aa1cae4.entry.js → p-c65ba4b3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a52efdea.entry.js → p-c6c7dd96.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f4c06e1d.entry.js → p-ca780a60.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ec3033c4.entry.js → p-cb9f87eb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8944b9ab.entry.js → p-d146ad68.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c6c27769.entry.js → p-d3f7c2ef.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-af676b61.entry.js → p-d8ce7ab8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-68700ad6.entry.js → p-d9acd7a6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ac9c7732.entry.js → p-e2165156.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-e62fed26.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-18f66839.entry.js → p-ea4d5a41.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ee3c63ce.entry.js → p-f4018e1f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-103b59b3.entry.js → p-f4a3b520.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1ee3b700.entry.js → p-f6b8bed9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d5aae1f5.entry.js → p-f81564e0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-47e3eef7.entry.js → p-f8496c4d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-58203e43.entry.js → p-f85a72e3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9bdde7dc.entry.js → p-f9502222.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/package.json +1 -1
- package/dist/genesys-webcomponents/p-75688974.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ca04abdd.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as n,g as a}from"./p-74b510cb.js";import{t as e}from"./p-
|
|
1
|
+
import{r as t,c as i,h as n,g as a}from"./p-74b510cb.js";import{t as e}from"./p-210346ca.js";const s=class{constructor(n){t(this,n),this.guxpaginationchange=i(this,"guxpaginationchange",7),this.currentPage=1,this.totalItems=0,this.itemsPerPage=25,this.layout="full"}setPage(t){if(t<0)return void this.setPage(this.totalPages>0?1:0);const i=this.calculatTotalPages();t>i?this.setPage(i):(this.currentPage=t,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage}))}calculatTotalPages(){return Math.ceil(this.totalItems/this.itemsPerPage)}calculateCurrentPage(){return Math.max(this.totalPages>0?1:0,Math.min(this.currentPage,this.totalPages))}handleInternalitemsperpagechange(t){this.itemsPerPage=t.detail,this.setPage(1)}handleInternalcurrentpagechange(t){this.setPage(t.detail)}getPaginationInfoElement(t){if("expanded"===t)return null;const i=[n("gux-pagination-item-counts",{"total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage})];return"full"===t&&i.push(n("gux-pagination-items-per-page",{"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),n("div",{class:"gux-pagination-info"},i)}componentWillLoad(){e(this.root,{variant:this.layout})}componentWillRender(){this.totalPages=this.calculatTotalPages(),this.currentPage=this.calculateCurrentPage()}render(){return n("div",{class:"gux-pagination-container"},this.getPaginationInfoElement(this.layout),n("div",{class:"gux-pagination-change"},n("gux-pagination-buttons",{layout:this.layout,"current-page":this.currentPage,"total-pages":this.totalPages,onInternalcurrentpagechange:this.handleInternalcurrentpagechange.bind(this)})))}get root(){return a(this)}};s.style=":host{display:block;border-top:1px solid #e2e6ee}.gux-pagination-container{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:space-between;height:32px;margin-top:12px}.gux-pagination-container .gux-pagination-info{display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:flex-start;order:0}.gux-pagination-container .gux-pagination-info>*{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change{flex:1 1 auto;align-self:auto;order:0;margin-left:16px}.gux-pagination-container .gux-pagination-change:first-child{margin-left:0}";export{s as gux_pagination}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as a,H as i,g as h}from"./p-74b510cb.js";import{t as c}from"./p-
|
|
1
|
+
import{r as t,c as s,h as a,H as i,g as h}from"./p-74b510cb.js";import{t as c}from"./p-210346ca.js";const n=class{constructor(a){t(this,a),this.guxactivetabchange=s(this,"guxactivetabchange",7),this.tabPanels=[]}watchActiveTab(t){this.guxactivetabchange.emit(t)}onInternalActivateTabPanel(t){t.stopPropagation(),this.activateTab(t.detail,this.tabList,this.tabPanels)}async guxActivate(t){this.activateTab(t,this.tabList,this.tabPanels)}onSlotchange(){const[t,s]=Array.from(this.root.shadowRoot.querySelectorAll("slot"));this.tabList=t.assignedElements()[0],this.tabPanels=s.assignedElements(),this.activateTab(this.activeTab,this.tabList,this.tabPanels)}activateTab(t,s,a){this.activeTab=t||s.querySelector("gux-tab-advanced").getAttribute("tab-id"),s.guxSetActive(this.activeTab),a.forEach((t=>{t.guxSetActive(t.tabId===this.activeTab)}))}componentWillLoad(){c(this.root)}render(){return a(i,null,a("div",{class:"gux-tabs"},a("slot",{name:"tab-list"}),a("div",null,a("slot",{onSlotchange:this.onSlotchange.bind(this)}))))}get root(){return h(this)}static get watchers(){return{activeTab:["watchActiveTab"]}}};n.style="gux-tabs-advanced{-custom-noop:noop}";export{n as gux_tabs_advanced}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,H as s,g as o}from"./p-74b510cb.js";import{r as h}from"./p-cbcbd1bb.js";import{t as e}from"./p-
|
|
1
|
+
import{r as t,h as i,H as s,g as o}from"./p-74b510cb.js";import{r as h}from"./p-cbcbd1bb.js";import{t as e}from"./p-210346ca.js";import{c as r}from"./p-4c66f794.js";const a=class{constructor(i){t(this,i),this.mouseenterHandler=()=>this.show(),this.mouseleaveHandler=()=>this.hide(),this.focusinHandler=()=>this.show(),this.focusoutHandler=()=>this.hide(),this.id=h("gux-tooltip"),this.placement="bottom-start",this.isShown=!1}handleKeyDown(t){"Escape"===t.key&&this.isShown&&this.hide()}async showTooltip(){this.show()}async hideTooltip(){this.hide()}show(){this.popperInstance.forceUpdate(),this.delayTimeout=setTimeout((()=>{this.isShown=!0}),750)}hide(){clearTimeout(this.delayTimeout),this.isShown=!1}getForElement(){this.forElement=this.for?document.getElementById(this.for):this.root.parentElement}logForAttributeError(){console.error(`gux-tooltip: invalid element supplied to 'for': "${this.for}"`)}connectedCallback(){this.getForElement(),this.forElement?(this.forElement.setAttribute("aria-describedby",this.id),this.popperInstance=r(this.forElement,this.root,{modifiers:[{name:"offset",options:{offset:[0,16]}}],placement:this.placement,strategy:"fixed"}),this.forElement.addEventListener("mouseenter",this.mouseenterHandler),this.forElement.addEventListener("mouseleave",this.mouseleaveHandler),this.forElement.addEventListener("focusin",this.focusinHandler),this.forElement.addEventListener("focusout",this.focusoutHandler)):this.logForAttributeError()}componentWillLoad(){e(this.root)}disconnectedCallback(){this.forElement.removeAttribute("aria-describedby"),this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null),this.forElement.removeEventListener("mouseenter",this.mouseenterHandler),this.forElement.removeEventListener("mouseleave",this.mouseleaveHandler),this.forElement.removeEventListener("focusin",this.focusinHandler),this.forElement.removeEventListener("focusout",this.focusoutHandler)}render(){return i(s,{id:this.id,class:{"gux-show":this.isShown},role:"tooltip"},i("slot",null))}get root(){return o(this)}};a.style=":host{z-index:1;box-sizing:border-box;max-width:250px;padding:6px 12px;font-size:12px;color:#2e394c;pointer-events:none;visibility:hidden !important;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24);opacity:0;transition:opacity 0.25s ease-in-out}:host(.gux-show){visibility:visible !important;opacity:1}";export{a as gux_tooltip}
|
package/dist/stencil-wrapper.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { defineCustomElements } from '../dist/loader';
|
|
8
8
|
// Value templated out during build process (see scripts/wrap-stencil.js)
|
|
9
|
-
const CDN_URL = 'https://app.mypurecloud.com/spark-components/build-assets/3.
|
|
9
|
+
const CDN_URL = 'https://app.mypurecloud.com/spark-components/build-assets/3.21.1-141/genesys-webcomponents/';
|
|
10
10
|
export function registerElements() {
|
|
11
11
|
if (CDN_URL) {
|
|
12
12
|
defineCustomElements(window, { resourcesUrl: CDN_URL });
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,h as s,g as t}from"./p-74b510cb.js";import{t as e}from"./p-1359863e.js";const n=class{constructor(s){r(this,s)}componentWillLoad(){e(this.root)}render(){return s("gux-radial-loading",{class:"gux-spinner","screenreader-text":this.screenreaderText,context:"full-page"})}get root(){return t(this)}};n.style=":host{display:flex}.gux-spinner{margin:auto}";export{n as gux_page_loading_spinner}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t,h as i,H as o,g as e}from"./p-74b510cb.js";import{s as h,c as r,a,b as n,h as c,d,e as l,f as u,i as p,j as b,o as m}from"./p-3770c1e9.js";import{b as x}from"./p-cf43f0c3.js";import{w as f}from"./p-76ff3e75.js";import{s as g}from"./p-d176c2ae.js";import{t as v}from"./p-1359863e.js";import"./p-8a133b9b.js";const w={noMatches:"No matches"},j=class{constructor(i){s(this,i),this.internallistboxoptionsupdated=t(this,"internallistboxoptionsupdated",7),this.filter="",this.selectedValues=[],this.listboxOptions=[]}onFocus(){h(this.root)}onBlur(){r(this.root)}onKeydown(s){switch(s.key){case"Enter":return s.preventDefault(),void p(this.root,(s=>this.updateValue(s)));case"ArrowDown":return s.preventDefault(),void(l(this.root)?(s.stopPropagation(),u(this.root)):n(this.root));case"ArrowUp":return s.preventDefault(),void(c(this.root)?(s.stopPropagation(),d(this.root)):a(this.root));case"Home":return s.preventDefault(),void n(this.root);case"End":return s.preventDefault(),void a(this.root);case" ":return void s.preventDefault()}1!==s.key.length||b(this.root,s.key)}onKeyup(s){switch(s.key){case" ":return void p(this.root,(s=>this.updateValue(s)))}}onMousemove(){r(this.root)}onClick(s){f("gux-option-multi",s,(s=>{m(s,(s=>this.updateValue(s)))}))}validateValue(){this.selectedValues=this.value?this.value.split(","):[]}async guxSelectActive(){p(this.root,(s=>this.updateValue(s)))}setListboxOptions(){this.value&&(this.selectedValues=this.value.split(",")),this.listboxOptions=Array.from(this.root.children),this.internallistboxoptionsupdated.emit()}updateValue(s){if(this.selectedValues.includes(s))this.selectedValues=this.selectedValues.filter((t=>t!==s)),this.value=this.selectedValues.join(",");else{const t=[...this.selectedValues,s];this.selectedValues=t,this.value=this.selectedValues.join(",")}g(this.root,"input"),g(this.root,"change")}async componentWillLoad(){v(this.root),this.i18n=await x(this.root,w),this.setListboxOptions()}componentWillRender(){this.listboxOptions.forEach((s=>{s.selected=this.selectedValues.includes(s.value),s.filtered=!s.textContent.toLowerCase().startsWith(this.filter.toLowerCase())})),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((s=>!s.filtered)).length}renderAllListboxOptionsFiltered(){if(this.allListboxOptionsFiltered)return i("div",{class:"gux-no-matches"},this.i18n("noMatches"))}render(){return i(o,{role:"listbox","aria-multiselectable":"true",tabindex:0},i("slot",{onSlotchange:()=>this.setListboxOptions()}),this.renderAllListboxOptionsFiltered())}get root(){return e(this)}static get watchers(){return{value:["validateValue"]}}};j.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}";export{j as gux_listbox_multi}
|