@pine-ds/core 3.14.2 → 3.15.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/components/index2.js +1 -1
- package/components/index2.js.map +1 -1
- package/components/mock-pds-modal.js +1 -1
- package/components/pds-chip2.js +50 -3
- package/components/pds-chip2.js.map +1 -1
- package/components/pds-combobox.js +245 -12
- package/components/pds-combobox.js.map +1 -1
- package/components/pds-copytext.js +1 -1
- package/components/pds-divider.js +1 -1
- package/components/pds-dropdown-menu-item.js +10 -2
- package/components/pds-dropdown-menu-item.js.map +1 -1
- package/components/pds-dropdown-menu-separator.js +1 -1
- package/components/pds-dropdown-menu.js +1 -1
- package/components/pds-filter.js +1 -1
- package/components/pds-filters.js +1 -1
- package/components/pds-image.js +2 -2
- package/components/pds-input.js +1 -1
- package/components/pds-link2.js +7 -2
- package/components/pds-link2.js.map +1 -1
- package/components/pds-loader2.js +1 -1
- package/components/pds-modal-content.js +2 -2
- package/components/pds-modal-footer.js +1 -1
- package/components/pds-modal-header.js +1 -1
- package/components/pds-modal.js +3 -3
- package/components/pds-multiselect.js +204 -37
- package/components/pds-multiselect.js.map +1 -1
- package/components/pds-popover.js +1 -1
- package/components/pds-progress.js +1 -1
- package/components/pds-property.js +1 -1
- package/components/pds-radio-group.js +3 -3
- package/components/pds-radio.js +3 -3
- package/components/pds-row.js +1 -1
- package/components/pds-select.js +1 -1
- package/components/pds-sortable-item.js +1 -1
- package/components/pds-sortable.js +1 -1
- package/components/pds-switch.js +3 -3
- package/components/pds-tab.js +3 -3
- package/components/pds-table-body.js +1 -1
- package/components/pds-table-cell2.js +3 -3
- package/components/pds-table-cell2.js.map +1 -1
- package/components/pds-table-head-cell2.js +2 -2
- package/components/pds-table-head.js +1 -1
- package/components/pds-table-row.js +2 -2
- package/components/pds-table-row.js.map +1 -1
- package/components/pds-tabpanel.js +1 -1
- package/components/pds-tabs.js +1 -1
- package/components/pds-text2.js +1 -1
- package/components/pds-textarea.js +4 -4
- package/components/pds-toast.js +3 -3
- package/components/pds-tooltip.js +2 -2
- package/dist/cjs/{index-BA--jsiy.js → index-DkQebouX.js} +3 -3
- package/dist/cjs/index-DkQebouX.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mock-pds-modal.cjs.entry.js +1 -1
- package/dist/cjs/pds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/pds-avatar.cjs.entry.js +1 -1
- package/dist/cjs/pds-button.cjs.entry.js +1 -1
- package/dist/cjs/pds-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/pds-chip.cjs.entry.js +47 -3
- package/dist/cjs/pds-chip.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-combobox.cjs.entry.js +221 -6
- package/dist/cjs/pds-combobox.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-copytext.cjs.entry.js +2 -2
- package/dist/cjs/pds-divider.cjs.entry.js +1 -1
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +8 -2
- package/dist/cjs/pds-dropdown-menu-item.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +1 -1
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js +1 -1
- package/dist/cjs/pds-filter.cjs.entry.js +2 -2
- package/dist/cjs/pds-filters.cjs.entry.js +1 -1
- package/dist/cjs/pds-image.cjs.entry.js +2 -2
- package/dist/cjs/pds-input.cjs.entry.js +2 -2
- package/dist/cjs/pds-link.cjs.entry.js +7 -3
- package/dist/cjs/pds-link.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-loader.cjs.entry.js +1 -1
- package/dist/cjs/pds-modal-content.cjs.entry.js +2 -2
- package/dist/cjs/pds-modal-footer.cjs.entry.js +1 -1
- package/dist/cjs/pds-modal-header.cjs.entry.js +1 -1
- package/dist/cjs/pds-modal.cjs.entry.js +3 -3
- package/dist/cjs/pds-multiselect.cjs.entry.js +183 -32
- package/dist/cjs/pds-multiselect.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-popover.cjs.entry.js +1 -1
- package/dist/cjs/pds-progress.cjs.entry.js +1 -1
- package/dist/cjs/pds-property.cjs.entry.js +1 -1
- package/dist/cjs/pds-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/pds-radio.cjs.entry.js +4 -4
- package/dist/cjs/pds-row.cjs.entry.js +1 -1
- package/dist/cjs/pds-select.cjs.entry.js +2 -2
- package/dist/cjs/pds-sortable-item.cjs.entry.js +2 -2
- package/dist/cjs/pds-sortable.cjs.entry.js +1 -1
- package/dist/cjs/pds-switch.cjs.entry.js +4 -4
- package/dist/cjs/pds-tab.cjs.entry.js +3 -3
- package/dist/cjs/pds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-cell.cjs.entry.js +3 -3
- package/dist/cjs/pds-table-cell.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +3 -3
- package/dist/cjs/pds-table-head.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-row.cjs.entry.js +2 -2
- package/dist/cjs/pds-table-row.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
- package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
- package/dist/cjs/pds-text.cjs.entry.js +1 -1
- package/dist/cjs/pds-textarea.cjs.entry.js +5 -5
- package/dist/cjs/pds-toast.cjs.entry.js +3 -3
- package/dist/cjs/pds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/pine-core.cjs.js +1 -1
- package/dist/collection/components/pds-chip/pds-chip.css +4 -3
- package/dist/collection/components/pds-chip/pds-chip.js +102 -1
- package/dist/collection/components/pds-chip/pds-chip.js.map +1 -1
- package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +38 -0
- package/dist/collection/components/pds-combobox/combobox-interface.js +2 -0
- package/dist/collection/components/pds-combobox/combobox-interface.js.map +1 -0
- package/dist/collection/components/pds-combobox/pds-combobox.css +20 -0
- package/dist/collection/components/pds-combobox/pds-combobox.js +415 -6
- package/dist/collection/components/pds-combobox/pds-combobox.js.map +1 -1
- package/dist/collection/components/pds-copytext/pds-copytext.js +1 -1
- package/dist/collection/components/pds-divider/pds-divider.js +1 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +53 -2
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js.map +1 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +1 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +1 -1
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +1 -1
- package/dist/collection/components/pds-filters/pds-filters.js +1 -1
- package/dist/collection/components/pds-image/pds-image.js +2 -2
- package/dist/collection/components/pds-input/pds-input.js +1 -1
- package/dist/collection/components/pds-link/pds-link.js +34 -2
- package/dist/collection/components/pds-link/pds-link.js.map +1 -1
- package/dist/collection/components/pds-loader/pds-loader.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +2 -2
- package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal.js +3 -3
- package/dist/collection/components/pds-modal/test/mock-pds-modal.js +1 -1
- package/dist/collection/components/pds-multiselect/multiselect-interface.js.map +1 -1
- package/dist/collection/components/pds-multiselect/pds-multiselect.css +9 -0
- package/dist/collection/components/pds-multiselect/pds-multiselect.js +261 -31
- package/dist/collection/components/pds-multiselect/pds-multiselect.js.map +1 -1
- package/dist/collection/components/pds-multiselect/stories/pds-multiselect.stories.js +41 -0
- package/dist/collection/components/pds-popover/pds-popover.js +1 -1
- package/dist/collection/components/pds-progress/pds-progress.js +1 -1
- package/dist/collection/components/pds-property/pds-property.js +1 -1
- package/dist/collection/components/pds-radio/pds-radio.js +3 -3
- package/dist/collection/components/pds-radio-group/pds-radio-group.js +3 -3
- package/dist/collection/components/pds-row/pds-row.js +1 -1
- package/dist/collection/components/pds-select/pds-select.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
- package/dist/collection/components/pds-switch/pds-switch.js +3 -3
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.css +1 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.css +1 -1
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
- package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
- package/dist/collection/components/pds-text/pds-text.js +1 -1
- package/dist/collection/components/pds-textarea/pds-textarea.js +4 -4
- package/dist/collection/components/pds-toast/pds-toast.js +3 -3
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
- package/dist/docs.json +615 -7
- package/dist/esm/{index-DY8eSueV.js → index-D094LgxJ.js} +3 -3
- package/dist/esm/index-D094LgxJ.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mock-pds-modal.entry.js +1 -1
- package/dist/esm/pds-accordion.entry.js +1 -1
- package/dist/esm/pds-avatar.entry.js +1 -1
- package/dist/esm/pds-button.entry.js +1 -1
- package/dist/esm/pds-checkbox.entry.js +1 -1
- package/dist/esm/pds-chip.entry.js +47 -3
- package/dist/esm/pds-chip.entry.js.map +1 -1
- package/dist/esm/pds-combobox.entry.js +221 -6
- package/dist/esm/pds-combobox.entry.js.map +1 -1
- package/dist/esm/pds-copytext.entry.js +2 -2
- package/dist/esm/pds-divider.entry.js +1 -1
- package/dist/esm/pds-dropdown-menu-item.entry.js +8 -2
- package/dist/esm/pds-dropdown-menu-item.entry.js.map +1 -1
- package/dist/esm/pds-dropdown-menu-separator.entry.js +1 -1
- package/dist/esm/pds-dropdown-menu.entry.js +1 -1
- package/dist/esm/pds-filter.entry.js +2 -2
- package/dist/esm/pds-filters.entry.js +1 -1
- package/dist/esm/pds-image.entry.js +2 -2
- package/dist/esm/pds-input.entry.js +2 -2
- package/dist/esm/pds-link.entry.js +7 -3
- package/dist/esm/pds-link.entry.js.map +1 -1
- package/dist/esm/pds-loader.entry.js +1 -1
- package/dist/esm/pds-modal-content.entry.js +2 -2
- package/dist/esm/pds-modal-footer.entry.js +1 -1
- package/dist/esm/pds-modal-header.entry.js +1 -1
- package/dist/esm/pds-modal.entry.js +3 -3
- package/dist/esm/pds-multiselect.entry.js +183 -32
- package/dist/esm/pds-multiselect.entry.js.map +1 -1
- package/dist/esm/pds-popover.entry.js +1 -1
- package/dist/esm/pds-progress.entry.js +1 -1
- package/dist/esm/pds-property.entry.js +1 -1
- package/dist/esm/pds-radio-group.entry.js +4 -4
- package/dist/esm/pds-radio.entry.js +4 -4
- package/dist/esm/pds-row.entry.js +1 -1
- package/dist/esm/pds-select.entry.js +2 -2
- package/dist/esm/pds-sortable-item.entry.js +2 -2
- package/dist/esm/pds-sortable.entry.js +1 -1
- package/dist/esm/pds-switch.entry.js +4 -4
- package/dist/esm/pds-tab.entry.js +3 -3
- package/dist/esm/pds-table-body.entry.js +1 -1
- package/dist/esm/pds-table-cell.entry.js +3 -3
- package/dist/esm/pds-table-cell.entry.js.map +1 -1
- package/dist/esm/pds-table-head-cell.entry.js +3 -3
- package/dist/esm/pds-table-head.entry.js +1 -1
- package/dist/esm/pds-table-row.entry.js +2 -2
- package/dist/esm/pds-table-row.entry.js.map +1 -1
- package/dist/esm/pds-tabpanel.entry.js +1 -1
- package/dist/esm/pds-tabs.entry.js +1 -1
- package/dist/esm/pds-text.entry.js +1 -1
- package/dist/esm/pds-textarea.entry.js +5 -5
- package/dist/esm/pds-toast.entry.js +3 -3
- package/dist/esm/pds-tooltip.entry.js +2 -2
- package/dist/esm/pine-core.js +1 -1
- package/dist/esm-es5/{index-DY8eSueV.js → index-D094LgxJ.js} +1 -1
- package/dist/esm-es5/index-D094LgxJ.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
- package/dist/esm-es5/pds-accordion.entry.js +1 -1
- package/dist/esm-es5/pds-avatar.entry.js +1 -1
- package/dist/esm-es5/pds-button.entry.js +1 -1
- package/dist/esm-es5/pds-checkbox.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js.map +1 -1
- package/dist/esm-es5/pds-combobox.entry.js +2 -2
- package/dist/esm-es5/pds-combobox.entry.js.map +1 -1
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-divider.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js.map +1 -1
- package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
- package/dist/esm-es5/pds-filter.entry.js +1 -1
- package/dist/esm-es5/pds-filters.entry.js +1 -1
- package/dist/esm-es5/pds-image.entry.js +1 -1
- package/dist/esm-es5/pds-input.entry.js +1 -1
- package/dist/esm-es5/pds-link.entry.js +1 -1
- package/dist/esm-es5/pds-link.entry.js.map +1 -1
- package/dist/esm-es5/pds-loader.entry.js +1 -1
- package/dist/esm-es5/pds-modal-content.entry.js +1 -1
- package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
- package/dist/esm-es5/pds-modal-header.entry.js +1 -1
- package/dist/esm-es5/pds-modal.entry.js +1 -1
- package/dist/esm-es5/pds-multiselect.entry.js +1 -1
- package/dist/esm-es5/pds-multiselect.entry.js.map +1 -1
- package/dist/esm-es5/pds-popover.entry.js +1 -1
- package/dist/esm-es5/pds-progress.entry.js +1 -1
- package/dist/esm-es5/pds-property.entry.js +1 -1
- package/dist/esm-es5/pds-radio-group.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js +1 -1
- package/dist/esm-es5/pds-row.entry.js +1 -1
- package/dist/esm-es5/pds-select.entry.js +1 -1
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
- package/dist/esm-es5/pds-sortable.entry.js +1 -1
- package/dist/esm-es5/pds-switch.entry.js +1 -1
- package/dist/esm-es5/pds-tab.entry.js +1 -1
- package/dist/esm-es5/pds-table-body.entry.js +1 -1
- package/dist/esm-es5/pds-table-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-cell.entry.js.map +1 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-head.entry.js +1 -1
- package/dist/esm-es5/pds-table-row.entry.js +1 -1
- package/dist/esm-es5/pds-table-row.entry.js.map +1 -1
- package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
- package/dist/esm-es5/pds-tabs.entry.js +1 -1
- package/dist/esm-es5/pds-text.entry.js +1 -1
- package/dist/esm-es5/pds-textarea.entry.js +1 -1
- package/dist/esm-es5/pds-toast.entry.js +1 -1
- package/dist/esm-es5/pds-tooltip.entry.js +1 -1
- package/dist/esm-es5/pine-core.js +1 -1
- package/dist/pine-core/{p-d6302edd.entry.js → p-003884fd.entry.js} +2 -2
- package/dist/pine-core/{p-9e7cd072.system.entry.js → p-0270ebee.system.entry.js} +2 -2
- package/dist/pine-core/p-06046885.entry.js +3 -0
- package/dist/pine-core/p-06046885.entry.js.map +1 -0
- package/dist/pine-core/{p-063afa19.system.entry.js → p-09ff71ad.system.entry.js} +2 -2
- package/dist/pine-core/{p-c68bceb1.entry.js → p-0ac54273.entry.js} +2 -2
- package/dist/pine-core/{p-ac56273a.system.entry.js → p-0c2f13c3.system.entry.js} +2 -2
- package/dist/pine-core/{p-c7c00a27.entry.js → p-119ccf73.entry.js} +2 -2
- package/dist/pine-core/{p-87eb8d4b.system.entry.js → p-13105538.system.entry.js} +2 -2
- package/dist/pine-core/{p-c24d11c7.entry.js → p-1951d49e.entry.js} +2 -2
- package/dist/pine-core/p-1971d358.entry.js +2 -0
- package/dist/pine-core/{p-9c928c44.entry.js.map → p-1971d358.entry.js.map} +1 -1
- package/dist/pine-core/p-19fef546.system.entry.js +4 -0
- package/dist/pine-core/p-19fef546.system.entry.js.map +1 -0
- package/dist/pine-core/{p-6d2da3ca.system.entry.js → p-1e77124d.system.entry.js} +2 -2
- package/dist/pine-core/{p-f69d3fd6.entry.js → p-220cbe98.entry.js} +2 -2
- package/dist/pine-core/{p-9d6b6ff3.system.entry.js → p-226e45be.system.entry.js} +2 -2
- package/dist/pine-core/{p-90615423.system.entry.js → p-2883cb69.system.entry.js} +2 -2
- package/dist/pine-core/{p-31168da5.entry.js → p-2d21bc31.entry.js} +2 -2
- package/dist/pine-core/p-31bfac45.entry.js +2 -0
- package/dist/pine-core/{p-a3cdff85.entry.js → p-35e91ecb.entry.js} +2 -2
- package/dist/pine-core/{p-2537aacb.entry.js → p-3815f565.entry.js} +2 -2
- package/dist/pine-core/{p-a99e8caf.entry.js → p-396d4b63.entry.js} +2 -2
- package/dist/pine-core/{p-9bb6cc3d.entry.js → p-3b0a4abe.entry.js} +2 -2
- package/dist/pine-core/{p-5b9110fe.entry.js → p-3cd53462.entry.js} +2 -2
- package/dist/pine-core/{p-a5b24b1d.system.entry.js → p-3e45826f.system.entry.js} +2 -2
- package/dist/pine-core/{p-12360e47.entry.js → p-425144ae.entry.js} +2 -2
- package/dist/pine-core/p-425144ae.entry.js.map +1 -0
- package/dist/pine-core/p-48ed8147.entry.js +2 -0
- package/dist/pine-core/p-48ed8147.entry.js.map +1 -0
- package/dist/pine-core/{p-5b3ac18e.system.entry.js → p-4a42e114.system.entry.js} +2 -2
- package/dist/pine-core/p-4c2809cb.entry.js +2 -0
- package/dist/pine-core/p-4c2809cb.entry.js.map +1 -0
- package/dist/pine-core/p-4c82bff5.entry.js +2 -0
- package/dist/pine-core/{p-a07b8e45.system.entry.js → p-4e24be57.system.entry.js} +2 -2
- package/dist/pine-core/p-50a439b5.entry.js +2 -0
- package/dist/pine-core/{p-3440138d.entry.js → p-5162baee.entry.js} +2 -2
- package/dist/pine-core/{p-426e90cb.entry.js → p-51d2999d.entry.js} +2 -2
- package/dist/pine-core/{p-ba623ced.entry.js → p-563b640d.entry.js} +2 -2
- package/dist/pine-core/{p-d1313dd6.system.entry.js → p-599a5903.system.entry.js} +2 -2
- package/dist/pine-core/{p-YqHO7iPZ.system.js.map → p-5O8bhSdk.system.js.map} +1 -1
- package/dist/pine-core/{p-5f2865df.entry.js → p-5ef5f6b3.entry.js} +2 -2
- package/dist/pine-core/p-65d0032c.system.entry.js +2 -0
- package/dist/pine-core/{p-2f6f60d9.entry.js → p-68f97bdf.entry.js} +2 -2
- package/dist/pine-core/p-6918b378.system.entry.js +2 -0
- package/dist/pine-core/{p-5e92aa34.system.entry.js.map → p-6918b378.system.entry.js.map} +1 -1
- package/dist/pine-core/{p-e6dc2297.entry.js → p-694cfe69.entry.js} +2 -2
- package/dist/pine-core/{p-bddc9c5a.entry.js → p-6c25dfc3.entry.js} +2 -2
- package/dist/pine-core/{p-9ada659b.entry.js → p-6cbad264.entry.js} +2 -2
- package/dist/pine-core/{p-4d9eee67.system.entry.js → p-72ca815d.system.entry.js} +2 -2
- package/dist/pine-core/{p-63269b89.entry.js → p-766e52a3.entry.js} +2 -2
- package/dist/pine-core/{p-d41112ad.entry.js → p-795e1727.entry.js} +2 -2
- package/dist/pine-core/p-795e1727.entry.js.map +1 -0
- package/dist/pine-core/{p-e8cf15d7.system.entry.js → p-7a6f11bd.system.entry.js} +2 -2
- package/dist/pine-core/{p-c292e5da.system.entry.js → p-7d7dce2c.system.entry.js} +2 -2
- package/dist/pine-core/{p-137b3289.system.entry.js → p-7da176b4.system.entry.js} +2 -2
- package/dist/pine-core/p-8KFA3I5T.system.js.map +1 -0
- package/dist/pine-core/{p-757c7b80.entry.js → p-8e40c9ef.entry.js} +2 -2
- package/dist/pine-core/{p-rcUX-rt5.system.js.map → p-8tpU1leU.system.js.map} +1 -1
- package/dist/pine-core/p-93d0be59.entry.js +2 -0
- package/dist/pine-core/{p-9eccf7b9.entry.js.map → p-93d0be59.entry.js.map} +1 -1
- package/dist/pine-core/p-94a9ff2a.system.entry.js +2 -0
- package/dist/pine-core/{p-ccab748a.entry.js → p-957647f9.entry.js} +2 -2
- package/dist/pine-core/{p-02f48157.system.entry.js → p-9606f567.system.entry.js} +2 -2
- package/dist/pine-core/{p-475bb340.entry.js → p-9660a2c2.entry.js} +2 -2
- package/dist/pine-core/{p-3f0a6a75.system.entry.js → p-9ba4acdf.system.entry.js} +2 -2
- package/dist/pine-core/{p-7dd74fe2.system.entry.js → p-9d9a5ca8.system.entry.js} +2 -2
- package/dist/pine-core/{p-LM0mZTib.system.js.map → p-9eQIEVii.system.js.map} +1 -1
- package/dist/pine-core/{p-htODgUCV.system.js.map → p-B036z4h-.system.js.map} +1 -1
- package/dist/pine-core/{p-B8OHXU49.system.js.map → p-BASnRvhy.system.js.map} +1 -1
- package/dist/pine-core/{p-4EbKXnVN.system.js.map → p-BK1BTkTt.system.js.map} +1 -1
- package/dist/pine-core/{p-CI7DD4Gj.system.js.map → p-BR9M75xt.system.js.map} +1 -1
- package/dist/pine-core/{p-bs74TBAh.system.js.map → p-BRn0ywk1.system.js.map} +1 -1
- package/dist/pine-core/{p-bkQbPz-z.system.js.map → p-Be8OBmYb.system.js.map} +1 -1
- package/dist/pine-core/p-BpZTjdau.system.js.map +1 -0
- package/dist/pine-core/{p-BJtTt670.system.js.map → p-BqkabXR7.system.js.map} +1 -1
- package/dist/pine-core/{p-DFXWnbHE.system.js.map → p-BssHFst4.system.js.map} +1 -1
- package/dist/pine-core/{p-CP48ADFM.system.js → p-BxVkyfaO.system.js} +1 -1
- package/dist/pine-core/p-BxVkyfaO.system.js.map +1 -0
- package/dist/pine-core/{p-BTe59phF.system.js.map → p-CE8RZXT8.system.js.map} +1 -1
- package/dist/pine-core/{p-Cun139qe.system.js.map → p-CJ4Gf3Nx.system.js.map} +1 -1
- package/dist/pine-core/{p-Ct9csNdF.system.js.map → p-CUv9KdhN.system.js.map} +1 -1
- package/dist/pine-core/{p-C48G0LPH.system.js.map → p-CcDv1OdF.system.js.map} +1 -1
- package/dist/pine-core/{p-BHjZufAO.system.js.map → p-CjQwwLdV.system.js.map} +1 -1
- package/dist/pine-core/{p-BA95hFrH.system.js.map → p-ClY6yIBF.system.js.map} +1 -1
- package/dist/pine-core/{p-Bn36FPag.system.js.map → p-D-iLwshJ.system.js.map} +1 -1
- package/dist/pine-core/{p-DkNlmqjM.system.js.map → p-D02u2D7r.system.js.map} +1 -1
- package/dist/pine-core/{p-DY8eSueV.js → p-D094LgxJ.js} +1 -1
- package/dist/pine-core/p-D094LgxJ.js.map +1 -0
- package/dist/pine-core/{p-CR01VmO6.system.js.map → p-D3Ug1A-l.system.js.map} +1 -1
- package/dist/pine-core/{p-j0609tLE.system.js.map → p-DFWnxG_e.system.js.map} +1 -1
- package/dist/pine-core/{p-DbNPEZgc.system.js.map → p-DFY2-W9M.system.js.map} +1 -1
- package/dist/pine-core/{p-5L_gsODn.system.js.map → p-DKT0sVlZ.system.js.map} +1 -1
- package/dist/pine-core/{p-Cn_QqTXg.system.js.map → p-DXoBK65z.system.js.map} +1 -1
- package/dist/pine-core/{p-Civ2VHC7.system.js.map → p-DY97YDUU.system.js.map} +1 -1
- package/dist/pine-core/{p-ClPf_JF1.system.js.map → p-DZt6ah_A.system.js.map} +1 -1
- package/dist/pine-core/{p-eUcBQ_fh.system.js.map → p-De6wHGVf.system.js.map} +1 -1
- package/dist/pine-core/p-DgtQU13G.system.js.map +1 -0
- package/dist/pine-core/{p-CpyTw2IQ.system.js.map → p-DmWm26A6.system.js.map} +1 -1
- package/dist/pine-core/p-Dtx30lCy.system.js.map +1 -0
- package/dist/pine-core/{p-CP2nsJcg.system.js.map → p-GH_AtkdO.system.js.map} +1 -1
- package/dist/pine-core/p-JAVnELnm.system.js +1 -1
- package/dist/pine-core/{p-CSLo9qKS.system.js.map → p-P65hM6YU.system.js.map} +1 -1
- package/dist/pine-core/{p-DwQewDCV.system.js.map → p-PZw10cnm.system.js.map} +1 -1
- package/dist/pine-core/{p-CmquVvkz.system.js.map → p-Ri89mw0-.system.js.map} +1 -1
- package/dist/pine-core/p-ZUqfslIz.system.js.map +1 -0
- package/dist/pine-core/{p-8f2a5a4c.system.entry.js → p-a24c75c2.system.entry.js} +2 -2
- package/dist/pine-core/{p-5040a872.entry.js → p-ad8fe96c.entry.js} +2 -2
- package/dist/pine-core/p-aeb2f6ac.system.entry.js +2 -0
- package/dist/pine-core/{p-4c23c75b.system.entry.js.map → p-aeb2f6ac.system.entry.js.map} +1 -1
- package/dist/pine-core/p-af5bf21d.entry.js +2 -0
- package/dist/pine-core/{p-325b3b0d.system.entry.js → p-b09bde5c.system.entry.js} +2 -2
- package/dist/pine-core/{p-7b5c8248.system.entry.js → p-b3ee3c4c.system.entry.js} +2 -2
- package/dist/pine-core/{p-cac3128b.system.entry.js → p-b46f66e8.system.entry.js} +2 -2
- package/dist/pine-core/p-b46f66e8.system.entry.js.map +1 -0
- package/dist/pine-core/{p-4d85945b.system.entry.js → p-b6ede995.system.entry.js} +2 -2
- package/dist/pine-core/p-b98a04cd.system.entry.js +2 -0
- package/dist/pine-core/p-b98a04cd.system.entry.js.map +1 -0
- package/dist/pine-core/p-ba195382.system.entry.js +2 -0
- package/dist/pine-core/{p-205ec2ac.system.entry.js → p-bc4b1749.system.entry.js} +2 -2
- package/dist/pine-core/{p-70aa35fc.system.entry.js → p-bce9f17d.system.entry.js} +2 -2
- package/dist/pine-core/{p-ac240034.system.entry.js → p-bd18b9bf.system.entry.js} +2 -2
- package/dist/pine-core/p-bd2329cd.entry.js +2 -0
- package/dist/pine-core/p-bf712423.entry.js +2 -0
- package/dist/pine-core/{p-9f0f1389.entry.js.map → p-bf712423.entry.js.map} +1 -1
- package/dist/pine-core/{p-154a32f4.entry.js → p-bfac5114.entry.js} +2 -2
- package/dist/pine-core/{p-4f1cRPxE.system.js.map → p-bw-OZgCg.system.js.map} +1 -1
- package/dist/pine-core/{p-bc85016b.entry.js → p-c73ef42b.entry.js} +2 -2
- package/dist/pine-core/p-c91fd600.entry.js +2 -0
- package/dist/pine-core/{p-f47d6724.entry.js → p-caff29fb.entry.js} +2 -2
- package/dist/pine-core/{p-8fdb10c4.system.entry.js → p-cb8c24ad.system.entry.js} +2 -2
- package/dist/pine-core/{p-8c0fc8ff.entry.js → p-ccdee55a.entry.js} +2 -2
- package/dist/pine-core/{p-ab3b6e0c.entry.js → p-d0366fba.entry.js} +2 -2
- package/dist/pine-core/{p-6be19a23.system.entry.js → p-d0504aa8.system.entry.js} +2 -2
- package/dist/pine-core/{p-8b201c9a.system.entry.js → p-d2b2caa2.system.entry.js} +2 -2
- package/dist/pine-core/p-d6139188.system.entry.js +2 -0
- package/dist/pine-core/p-d62a5444.system.entry.js +2 -0
- package/dist/pine-core/{p-daa36570.system.entry.js → p-d83d6fce.system.entry.js} +2 -2
- package/dist/pine-core/{p-6dcd7876.system.entry.js → p-d8d796ad.system.entry.js} +2 -2
- package/dist/pine-core/{p-9b3794cd.entry.js → p-e1815c34.entry.js} +2 -2
- package/dist/pine-core/{p-811e510d.system.entry.js → p-e9eb3fc3.system.entry.js} +2 -2
- package/dist/pine-core/p-eT6pKhWF.system.js.map +1 -0
- package/dist/pine-core/{p-d9693048.entry.js → p-ea8aba18.entry.js} +2 -2
- package/dist/pine-core/{p-6e862168.system.entry.js → p-ef56bc80.system.entry.js} +2 -2
- package/dist/pine-core/p-ef56bc80.system.entry.js.map +1 -0
- package/dist/pine-core/{p-51114c2b.system.entry.js → p-f00f70bf.system.entry.js} +2 -2
- package/dist/pine-core/{p-2fe330d0.system.entry.js → p-f0df10c7.system.entry.js} +2 -2
- package/dist/pine-core/p-f0df10c7.system.entry.js.map +1 -0
- package/dist/pine-core/{p-932283cf.system.entry.js → p-fce519e3.system.entry.js} +2 -2
- package/dist/pine-core/{p-0sPVsRFU.system.js.map → p-g2zH2UyI.system.js.map} +1 -1
- package/dist/pine-core/p-h_fnwqV_.system.js.map +1 -0
- package/dist/pine-core/{p-ztsUkqit.system.js.map → p-igLtCO20.system.js.map} +1 -1
- package/dist/pine-core/{p-CboCokff.system.js.map → p-kYQszSpu.system.js.map} +1 -1
- package/dist/pine-core/{p-BCKPcTKX.system.js.map → p-ljGHaVPv.system.js.map} +1 -1
- package/dist/pine-core/{p-CijIWK3K.system.js.map → p-sgZDP7ET.system.js.map} +1 -1
- package/dist/pine-core/pds-chip.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-combobox.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-dropdown-menu-item.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-link.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-multiselect.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-table-cell.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-table-row.entry.esm.js.map +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/types/components/pds-chip/pds-chip.d.ts +18 -0
- package/dist/types/components/pds-combobox/combobox-interface.d.ts +23 -0
- package/dist/types/components/pds-combobox/pds-combobox.d.ts +64 -0
- package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.d.ts +13 -0
- package/dist/types/components/pds-link/pds-link.d.ts +8 -0
- package/dist/types/components/pds-multiselect/multiselect-interface.d.ts +10 -0
- package/dist/types/components/pds-multiselect/pds-multiselect.d.ts +21 -1
- package/dist/types/components.d.ts +167 -2
- package/dist/vscode.html-data.json +170 -5
- package/hydrate/index.js +544 -103
- package/hydrate/index.mjs +544 -103
- package/package.json +2 -2
- package/dist/cjs/index-BA--jsiy.js.map +0 -1
- package/dist/esm/index-DY8eSueV.js.map +0 -1
- package/dist/esm-es5/index-DY8eSueV.js.map +0 -1
- package/dist/pine-core/p-10dbe3e2.entry.js +0 -2
- package/dist/pine-core/p-10dbe3e2.entry.js.map +0 -1
- package/dist/pine-core/p-10e0be55.entry.js +0 -2
- package/dist/pine-core/p-12360e47.entry.js.map +0 -1
- package/dist/pine-core/p-1fa303af.entry.js +0 -2
- package/dist/pine-core/p-2fe330d0.system.entry.js.map +0 -1
- package/dist/pine-core/p-30ea3668.system.entry.js +0 -2
- package/dist/pine-core/p-3c04c17e.system.entry.js +0 -2
- package/dist/pine-core/p-3c04c17e.system.entry.js.map +0 -1
- package/dist/pine-core/p-4alPHnzl.system.js.map +0 -1
- package/dist/pine-core/p-4c23c75b.system.entry.js +0 -2
- package/dist/pine-core/p-5e92aa34.system.entry.js +0 -2
- package/dist/pine-core/p-622f1342.system.entry.js +0 -4
- package/dist/pine-core/p-622f1342.system.entry.js.map +0 -1
- package/dist/pine-core/p-6e862168.system.entry.js.map +0 -1
- package/dist/pine-core/p-78ee2e08.system.entry.js +0 -2
- package/dist/pine-core/p-8c000d7c.entry.js +0 -2
- package/dist/pine-core/p-8eb1c168.entry.js +0 -2
- package/dist/pine-core/p-9c928c44.entry.js +0 -2
- package/dist/pine-core/p-9eccf7b9.entry.js +0 -2
- package/dist/pine-core/p-9f0f1389.entry.js +0 -2
- package/dist/pine-core/p-B0Otb6kF.system.js.map +0 -1
- package/dist/pine-core/p-BSRmAvMC.system.js.map +0 -1
- package/dist/pine-core/p-CG5jdxoZ.system.js.map +0 -1
- package/dist/pine-core/p-CP48ADFM.system.js.map +0 -1
- package/dist/pine-core/p-DY8eSueV.js.map +0 -1
- package/dist/pine-core/p-DieNsvcz.system.js.map +0 -1
- package/dist/pine-core/p-Lk6DnEPT.system.js.map +0 -1
- package/dist/pine-core/p-a11c3642.system.entry.js +0 -2
- package/dist/pine-core/p-aPfTGFhq.system.js.map +0 -1
- package/dist/pine-core/p-ac186cd4.system.entry.js +0 -2
- package/dist/pine-core/p-b41465b8.entry.js +0 -3
- package/dist/pine-core/p-b41465b8.entry.js.map +0 -1
- package/dist/pine-core/p-bff9fb8e.entry.js +0 -2
- package/dist/pine-core/p-bff9fb8e.entry.js.map +0 -1
- package/dist/pine-core/p-cac3128b.system.entry.js.map +0 -1
- package/dist/pine-core/p-d41112ad.entry.js.map +0 -1
- package/dist/pine-core/p-e0f21c22.entry.js +0 -2
- package/dist/pine-core/p-eb026745.entry.js +0 -2
- package/dist/pine-core/p-fa21e054.system.entry.js +0 -2
- /package/dist/pine-core/{p-d6302edd.entry.js.map → p-003884fd.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9e7cd072.system.entry.js.map → p-0270ebee.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-063afa19.system.entry.js.map → p-09ff71ad.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c68bceb1.entry.js.map → p-0ac54273.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ac56273a.system.entry.js.map → p-0c2f13c3.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c7c00a27.entry.js.map → p-119ccf73.entry.js.map} +0 -0
- /package/dist/pine-core/{p-87eb8d4b.system.entry.js.map → p-13105538.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c24d11c7.entry.js.map → p-1951d49e.entry.js.map} +0 -0
- /package/dist/pine-core/{p-6d2da3ca.system.entry.js.map → p-1e77124d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f69d3fd6.entry.js.map → p-220cbe98.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9d6b6ff3.system.entry.js.map → p-226e45be.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-90615423.system.entry.js.map → p-2883cb69.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-31168da5.entry.js.map → p-2d21bc31.entry.js.map} +0 -0
- /package/dist/pine-core/{p-10e0be55.entry.js.map → p-31bfac45.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a3cdff85.entry.js.map → p-35e91ecb.entry.js.map} +0 -0
- /package/dist/pine-core/{p-2537aacb.entry.js.map → p-3815f565.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a99e8caf.entry.js.map → p-396d4b63.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9bb6cc3d.entry.js.map → p-3b0a4abe.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5b9110fe.entry.js.map → p-3cd53462.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a5b24b1d.system.entry.js.map → p-3e45826f.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5b3ac18e.system.entry.js.map → p-4a42e114.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-1fa303af.entry.js.map → p-4c82bff5.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a07b8e45.system.entry.js.map → p-4e24be57.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8eb1c168.entry.js.map → p-50a439b5.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3440138d.entry.js.map → p-5162baee.entry.js.map} +0 -0
- /package/dist/pine-core/{p-426e90cb.entry.js.map → p-51d2999d.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ba623ced.entry.js.map → p-563b640d.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d1313dd6.system.entry.js.map → p-599a5903.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5f2865df.entry.js.map → p-5ef5f6b3.entry.js.map} +0 -0
- /package/dist/pine-core/{p-78ee2e08.system.entry.js.map → p-65d0032c.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-2f6f60d9.entry.js.map → p-68f97bdf.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e6dc2297.entry.js.map → p-694cfe69.entry.js.map} +0 -0
- /package/dist/pine-core/{p-bddc9c5a.entry.js.map → p-6c25dfc3.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9ada659b.entry.js.map → p-6cbad264.entry.js.map} +0 -0
- /package/dist/pine-core/{p-4d9eee67.system.entry.js.map → p-72ca815d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-63269b89.entry.js.map → p-766e52a3.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e8cf15d7.system.entry.js.map → p-7a6f11bd.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c292e5da.system.entry.js.map → p-7d7dce2c.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-137b3289.system.entry.js.map → p-7da176b4.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-757c7b80.entry.js.map → p-8e40c9ef.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a11c3642.system.entry.js.map → p-94a9ff2a.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ccab748a.entry.js.map → p-957647f9.entry.js.map} +0 -0
- /package/dist/pine-core/{p-02f48157.system.entry.js.map → p-9606f567.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-475bb340.entry.js.map → p-9660a2c2.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3f0a6a75.system.entry.js.map → p-9ba4acdf.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-7dd74fe2.system.entry.js.map → p-9d9a5ca8.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8f2a5a4c.system.entry.js.map → p-a24c75c2.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5040a872.entry.js.map → p-ad8fe96c.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e0f21c22.entry.js.map → p-af5bf21d.entry.js.map} +0 -0
- /package/dist/pine-core/{p-325b3b0d.system.entry.js.map → p-b09bde5c.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-7b5c8248.system.entry.js.map → p-b3ee3c4c.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-4d85945b.system.entry.js.map → p-b6ede995.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ac186cd4.system.entry.js.map → p-ba195382.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-205ec2ac.system.entry.js.map → p-bc4b1749.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-70aa35fc.system.entry.js.map → p-bce9f17d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ac240034.system.entry.js.map → p-bd18b9bf.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8c000d7c.entry.js.map → p-bd2329cd.entry.js.map} +0 -0
- /package/dist/pine-core/{p-154a32f4.entry.js.map → p-bfac5114.entry.js.map} +0 -0
- /package/dist/pine-core/{p-bc85016b.entry.js.map → p-c73ef42b.entry.js.map} +0 -0
- /package/dist/pine-core/{p-eb026745.entry.js.map → p-c91fd600.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f47d6724.entry.js.map → p-caff29fb.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8fdb10c4.system.entry.js.map → p-cb8c24ad.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8c0fc8ff.entry.js.map → p-ccdee55a.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ab3b6e0c.entry.js.map → p-d0366fba.entry.js.map} +0 -0
- /package/dist/pine-core/{p-6be19a23.system.entry.js.map → p-d0504aa8.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8b201c9a.system.entry.js.map → p-d2b2caa2.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-fa21e054.system.entry.js.map → p-d6139188.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-30ea3668.system.entry.js.map → p-d62a5444.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-daa36570.system.entry.js.map → p-d83d6fce.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-6dcd7876.system.entry.js.map → p-d8d796ad.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9b3794cd.entry.js.map → p-e1815c34.entry.js.map} +0 -0
- /package/dist/pine-core/{p-811e510d.system.entry.js.map → p-e9eb3fc3.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d9693048.entry.js.map → p-ea8aba18.entry.js.map} +0 -0
- /package/dist/pine-core/{p-51114c2b.system.entry.js.map → p-f00f70bf.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-932283cf.system.entry.js.map → p-fce519e3.system.entry.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
|
@@ -3497,7 +3497,7 @@ class MockPdsModal {
|
|
|
3497
3497
|
'pds-modal__backdrop': true,
|
|
3498
3498
|
'open': this.open,
|
|
3499
3499
|
};
|
|
3500
|
-
return (hAsync("div", { key: '
|
|
3500
|
+
return (hAsync("div", { key: '932c22f17088b6cd5efa34563533b10192ba01c5', class: backdropClasses }, hAsync("div", { key: '476cc7428d5fa0b1cb3cdc7a2942e446cf80fe32', class: modalClasses, role: "dialog", "aria-modal": "true", "aria-labelledby": this.componentId ? `${this.componentId}-heading` : null }, hAsync("div", { key: '7b08398565a4bca4e14b570064ff7bf705c2b664', class: "pds-modal__header" }, hAsync("slot", { key: '25be59059e0fe45210283755c71d9dd64f6d7e14', name: "header" })), hAsync("div", { key: '21b2eb295db0a8fe40a16f5d4816129498220958', class: "pds-modal-content" }, hAsync("slot", { key: '86e2ae4bfb4f1df345958d44c0ab50597d6ca099' })), hAsync("div", { key: '73a2af8f314185e9d72c899f6b7958287e568766', class: "pds-modal__footer" }, hAsync("slot", { key: '26b239609b484949e0e8f64248d2725588ccd6e0', name: "footer" })))));
|
|
3501
3501
|
}
|
|
3502
3502
|
get el() { return getElement(this); }
|
|
3503
3503
|
static get style() { return pdsModalCss$1; }
|
|
@@ -3519,7 +3519,7 @@ class MockPdsModal {
|
|
|
3519
3519
|
}; }
|
|
3520
3520
|
}
|
|
3521
3521
|
|
|
3522
|
-
/* pds-icons v9.
|
|
3522
|
+
/* pds-icons v9.15.0, ES Modules */
|
|
3523
3523
|
|
|
3524
3524
|
const addCircle = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12m11-5a1 1 0 0 1 1 1v3h3a1 1 0 1 1 0 2h-3v3a1 1 0 1 1-2 0v-3H8a1 1 0 1 1 0-2h3V8a1 1 0 0 1 1-1'/></svg>";
|
|
3525
3525
|
const caretDown = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M5.293 8.293a1 1 0 0 1 1.414 0L12 13.586l5.293-5.293a1 1 0 1 1 1.414 1.414l-6 6a1 1 0 0 1-1.414 0l-6-6a1 1 0 0 1 0-1.414'/></svg>";
|
|
@@ -4593,7 +4593,7 @@ class PdsCheckbox {
|
|
|
4593
4593
|
|
|
4594
4594
|
const pdsChipTokensCss = ":host{--pine-chip-color-accent:var(--pine-color-purple-100);--pine-chip-color-accent-hover:var(--pine-color-purple-300);--pine-chip-color-accent-dot:var(--pine-color-purple-600);--pine-chip-color-danger:var(--pine-color-red-100);--pine-chip-color-danger-hover:var(--pine-color-red-300);--pine-chip-color-danger-dot:var(--pine-color-red-600);--pine-chip-color-info:var(--pine-color-blue-100);--pine-chip-color-info-hover:var(--pine-color-blue-300);--pine-chip-color-info-dot:var(--pine-color-blue-600);--pine-chip-color-neutral:var(--pine-color-grey-100);--pine-chip-color-neutral-hover:var(--pine-color-grey-300);--pine-chip-color-neutral-dot:var(--pine-color-grey-600);--pine-chip-color-success:var(--pine-color-green-100);--pine-chip-color-success-hover:var(--pine-color-green-300);--pine-chip-color-success-dot:var(--pine-color-green-600);--pine-chip-color-warning:var(--pine-color-yellow-100);--pine-chip-color-warning-hover:var(--pine-color-yellow-300);--pine-chip-color-warning-dot:var(--pine-color-yellow-600)}";
|
|
4595
4595
|
|
|
4596
|
-
const pdsChipCss = ":host{--sizing-close:var(--pine-dimension-125);-ms-flex-align:center;align-items:center;border-radius:var(--pine-dimension-sm);display:-ms-inline-flexbox;display:inline-flex;padding-block:var(--pine-dimension-025);padding-inline:var(--pine-dimension-
|
|
4596
|
+
const pdsChipCss = ":host{--sizing-close:var(--pine-dimension-125);-ms-flex-align:center;align-items:center;border-radius:var(--pine-dimension-sm);display:-ms-inline-flexbox;display:inline-flex;padding-block:var(--pine-dimension-025);padding-inline:var(--pine-dimension-100)}:host(.pds-chip--accent){background:var(--pine-chip-color-accent);border:var(--pine-border-width) solid var(--pine-chip-color-accent-hover)}:host(.pds-chip--accent) .pds-chip__dot{background:var(--pine-chip-color-accent-dot)}:host(.pds-chip--accent) .pds-chip__label,:host(.pds-chip--accent) .pds-chip__button,:host(.pds-chip--accent) .pds-chip__close{color:var(--pine-color-text-accent);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--accent) .pds-chip__close:hover{background:var(--pine-chip-color-accent-hover)}:host(.pds-chip--accent.pds-chip--dropdown:hover){background:var(--pine-chip-color-accent-hover)}:host(.pds-chip--danger){background:var(--pine-chip-color-danger);border:var(--pine-border-width) solid var(--pine-chip-color-danger-hover)}:host(.pds-chip--danger) .pds-chip__dot{background:var(--pine-chip-color-danger-dot)}:host(.pds-chip--danger) .pds-chip__label,:host(.pds-chip--danger) .pds-chip__button,:host(.pds-chip--danger) .pds-chip__close{color:var(--pine-color-text-danger);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--danger) .pds-chip__close:hover{background:var(--pine-chip-color-danger-hover)}:host(.pds-chip--danger.pds-chip--dropdown:hover){background:var(--pine-chip-color-danger-hover)}:host(.pds-chip--info){background:var(--pine-chip-color-info);border:var(--pine-border-width) solid var(--pine-chip-color-info-hover)}:host(.pds-chip--info) .pds-chip__dot{background:var(--pine-chip-color-info-dot)}:host(.pds-chip--info) .pds-chip__label,:host(.pds-chip--info) .pds-chip__button,:host(.pds-chip--info) .pds-chip__close{color:var(--pine-color-text-info);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--info) .pds-chip__close:hover{background:var(--pine-chip-color-info-hover)}:host(.pds-chip--info.pds-chip--dropdown:hover){background:var(--pine-chip-color-info-hover)}:host(.pds-chip--neutral){background:var(--pine-chip-color-neutral);border:var(--pine-border-width) solid var(--pine-chip-color-neutral-hover)}:host(.pds-chip--neutral) .pds-chip__dot{background:var(--pine-chip-color-neutral-dot)}:host(.pds-chip--neutral) .pds-chip__label,:host(.pds-chip--neutral) .pds-chip__button,:host(.pds-chip--neutral) .pds-chip__close{color:var(--pine-color-grey-900);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--neutral) .pds-chip__close:hover{background:var(--pine-chip-color-neutral-hover)}:host(.pds-chip--neutral.pds-chip--dropdown:hover){background:var(--pine-chip-color-neutral-hover)}:host(.pds-chip--success){background:var(--pine-chip-color-success);border:var(--pine-border-width) solid var(--pine-chip-color-success-hover)}:host(.pds-chip--success) .pds-chip__dot{background:var(--pine-chip-color-success-dot)}:host(.pds-chip--success) .pds-chip__label,:host(.pds-chip--success) .pds-chip__button,:host(.pds-chip--success) .pds-chip__close{color:var(--pine-color-text-success);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--success) .pds-chip__close:hover{background:var(--pine-chip-color-success-hover)}:host(.pds-chip--success.pds-chip--dropdown:hover){background:var(--pine-chip-color-success-hover)}:host(.pds-chip--warning){background:var(--pine-chip-color-warning);border:var(--pine-border-width) solid var(--pine-chip-color-warning-hover)}:host(.pds-chip--warning) .pds-chip__dot{background:var(--pine-chip-color-warning-dot)}:host(.pds-chip--warning) .pds-chip__label,:host(.pds-chip--warning) .pds-chip__button,:host(.pds-chip--warning) .pds-chip__close{color:var(--pine-color-text-warning);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--warning) .pds-chip__close:hover{background:var(--pine-chip-color-warning-hover)}:host(.pds-chip--warning.pds-chip--dropdown:hover){background:var(--pine-chip-color-warning-hover)}.pds-chip__dot{border:var(--pine-border-width) solid transparent;border-radius:var(--pine-border-radius-full);display:inline-block;height:var(--pine-dimension-2xs);-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs);width:var(--pine-dimension-2xs)}.pds-chip__label{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.pds-chip__label pds-icon{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}.pds-chip__label,.pds-chip__button{font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}:host(.pds-chip--dropdown){padding:var(--pine-dimension-none)}.pds-chip__button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:var(--pine-dimension-none);border-radius:var(--pine-dimension-sm);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-025) var(--pine-dimension-100)}.pds-chip__button:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-chip__button pds-icon:first-child{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}.pds-chip__button pds-icon:last-child{-webkit-margin-end:calc(var(--pine-dimension-025) * -1);margin-inline-end:calc(var(--pine-dimension-025) * -1);-webkit-margin-start:var(--pine-dimension-2xs);margin-inline-start:var(--pine-dimension-2xs)}.pds-chip__close{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--pine-border-radius-full);-webkit-box-sizing:border-box;box-sizing:border-box;height:var(--sizing-close);-webkit-margin-end:calc(var(--pine-dimension-xs) * -1);margin-inline-end:calc(var(--pine-dimension-xs) * -1);-webkit-margin-start:var(--pine-dimension-2xs);margin-inline-start:var(--pine-dimension-2xs);padding:var(--sizing-close);position:relative;width:var(--sizing-close)}.pds-chip__close pds-icon{left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.pds-chip__close:focus-visible{outline:var(--pine-outline-focus)}:host(.pds-chip--large){padding-block:var(--pine-dimension-025);padding-inline:var(--pine-dimension-150)}:host(.pds-chip--large) .pds-chip__label,:host(.pds-chip--large) .pds-chip__button{font-family:var(--pine-font-family-heading);font-size:var(--pine-font-size-heading-6);font-weight:var(--pine-font-weight-medium);letter-spacing:var(--pine-letter-spacing-heading-6)}:host(.pds-chip--large.pds-chip--dropdown){padding:var(--pine-dimension-none)}:host(.pds-chip--large.pds-chip--dropdown) .pds-chip__button{padding:var(--pine-dimension-025) var(--pine-dimension-150)}:host(.pds-chip--brand){background:-webkit-gradient(linear, left top, right top, from(#FF3E14), to(#6B62F2));background:linear-gradient(90deg, #FF3E14 0%, #6B62F2 100%);border:0;padding:1px;position:relative}:host(.pds-chip--brand) .pds-chip__label{background:rgba(255, 255, 255, 0.9);border-radius:calc(var(--pine-dimension-sm) - 1px);color:var(--pine-color-grey-900);font-weight:var(--pine-font-weight-medium);padding:var(--pine-dimension-025) var(--pine-dimension-100);position:relative;z-index:var(--pine-z-index-raised)}:host(.pds-chip--brand) .pds-chip__label pds-icon{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}:host(.pds-chip--brand) .pds-chip__button,:host(.pds-chip--brand) .pds-chip__close{color:var(--pine-color-grey-900);font-weight:var(--pine-font-weight-medium);position:relative;z-index:var(--pine-z-index-raised)}:host(.pds-chip--brand) .pds-chip__button pds-icon:first-child{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}:host(.pds-chip--brand) .pds-chip__close:hover{background:rgba(255, 255, 255, 0.8)}";
|
|
4597
4597
|
|
|
4598
4598
|
/**
|
|
4599
4599
|
* @slot (default) - The chip's label text.
|
|
@@ -4658,8 +4658,52 @@ class PdsChip {
|
|
|
4658
4658
|
const chipContent = isDropdown ? (hAsync("button", { class: "pds-chip__button", type: "button" }, this.icon && hAsync("pds-icon", { icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && hAsync("i", { class: "pds-chip__dot", "aria-hidden": "true" }), hAsync("slot", null), hAsync("pds-icon", { icon: downSmall, size: this.iconSize, "aria-hidden": "true" }))) : (hAsync("span", { class: "pds-chip__label" }, this.icon && hAsync("pds-icon", { icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && hAsync("i", { class: "pds-chip__dot", "aria-hidden": "true" }), hAsync("slot", null)));
|
|
4659
4659
|
return chipContent;
|
|
4660
4660
|
}
|
|
4661
|
+
renderCloseButton() {
|
|
4662
|
+
const CloseElement = this.removeUrl ? 'a' : 'button';
|
|
4663
|
+
const closeAttributes = () => {
|
|
4664
|
+
if (this.removeUrl) {
|
|
4665
|
+
// Link attributes
|
|
4666
|
+
const linkAttrs = {
|
|
4667
|
+
class: 'pds-chip__close',
|
|
4668
|
+
href: this.removeUrl,
|
|
4669
|
+
'aria-label': 'Remove',
|
|
4670
|
+
};
|
|
4671
|
+
// Add target if specified
|
|
4672
|
+
if (this.removeTarget) {
|
|
4673
|
+
linkAttrs.target = this.removeTarget;
|
|
4674
|
+
}
|
|
4675
|
+
// Add HTTP method attributes if specified
|
|
4676
|
+
if (this.removeHttpMethod) {
|
|
4677
|
+
linkAttrs['data-method'] = this.removeHttpMethod;
|
|
4678
|
+
linkAttrs['data-turbo-method'] = this.removeHttpMethod;
|
|
4679
|
+
}
|
|
4680
|
+
// Build rel attribute by collecting all required values
|
|
4681
|
+
const relValues = [];
|
|
4682
|
+
// Add noopener noreferrer if target is _blank
|
|
4683
|
+
if (this.removeTarget === '_blank') {
|
|
4684
|
+
relValues.push('noopener', 'noreferrer');
|
|
4685
|
+
}
|
|
4686
|
+
// Add nofollow for non-GET methods (best practice)
|
|
4687
|
+
if (this.removeHttpMethod && this.removeHttpMethod !== 'get') {
|
|
4688
|
+
relValues.push('nofollow');
|
|
4689
|
+
}
|
|
4690
|
+
// Set rel attribute if we have any values
|
|
4691
|
+
if (relValues.length > 0) {
|
|
4692
|
+
linkAttrs.rel = relValues.join(' ');
|
|
4693
|
+
}
|
|
4694
|
+
return linkAttrs;
|
|
4695
|
+
}
|
|
4696
|
+
// Button attributes
|
|
4697
|
+
return {
|
|
4698
|
+
class: 'pds-chip__close',
|
|
4699
|
+
type: 'button',
|
|
4700
|
+
'aria-label': 'Remove',
|
|
4701
|
+
};
|
|
4702
|
+
};
|
|
4703
|
+
return (hAsync(CloseElement, Object.assign({}, closeAttributes(), { onClick: this.handleCloseClick }), hAsync("pds-icon", { icon: remove, size: this.iconSize })));
|
|
4704
|
+
}
|
|
4661
4705
|
render() {
|
|
4662
|
-
return (hAsync(Host, { key: '
|
|
4706
|
+
return (hAsync(Host, { key: '9e2fb58ed2e55db3bda912cd672e8bde757e6638', class: this.classNames(), id: this.componentId }, this.setChipContent(), this.effectiveVariant === 'tag' && this.renderCloseButton()));
|
|
4663
4707
|
}
|
|
4664
4708
|
static get style() { return pdsChipTokensCss + pdsChipCss; }
|
|
4665
4709
|
static get cmpMeta() { return {
|
|
@@ -4671,7 +4715,10 @@ class PdsChip {
|
|
|
4671
4715
|
"icon": [1],
|
|
4672
4716
|
"large": [4],
|
|
4673
4717
|
"sentiment": [1],
|
|
4674
|
-
"variant": [1]
|
|
4718
|
+
"variant": [1],
|
|
4719
|
+
"removeUrl": [1, "remove-url"],
|
|
4720
|
+
"removeHttpMethod": [1, "remove-http-method"],
|
|
4721
|
+
"removeTarget": [1, "remove-target"]
|
|
4675
4722
|
},
|
|
4676
4723
|
"$listeners$": undefined,
|
|
4677
4724
|
"$lazyBundleId$": "-",
|
|
@@ -7668,16 +7715,20 @@ function createDOMPurify() {
|
|
|
7668
7715
|
}
|
|
7669
7716
|
var purify = createDOMPurify();
|
|
7670
7717
|
|
|
7671
|
-
const pdsComboboxCss = ":host{display:block}:host([disabled=true]) .pds-combobox__input-icon{color:var(--pine-color-text-disabled);pointer-events:none}.pds-combobox{position:relative}.pds-combobox__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-combobox__input-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;position:relative;width:100%}.pds-combobox__input{background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body-medium);padding:var(--pine-dimension-xs) var(--pine-dimension-450) var(--pine-dimension-xs) var(--pine-dimension-150);-webkit-transition:border-color 0.2s ease;transition:border-color 0.2s ease;width:100%}.pds-combobox__input:hover:not(:disabled){border-color:var(--pine-color-border-hover)}.pds-combobox__input:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-combobox__input:disabled::-webkit-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-moz-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled:-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:focus-visible{border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input-icon{color:var(--pine-color-text-secondary);pointer-events:none;position:absolute;right:var(--pine-dimension-150);z-index:var(--pine-z-index-raised)}.pds-combobox__listbox{background:var(--pine-color-background-container);border:0;border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);list-style:none;margin:0;min-width:220px;overflow-y:auto;padding:var(--pine-dimension-xs);position:absolute;z-index:var(--pine-z-index-raised)}.pds-combobox__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-125);color:var(--pine-color-text-secondary);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;-webkit-transition:background 0.15s;transition:background 0.15s}.pds-combobox__option[aria-selected=true]{background:var(--pine-color-background-muted)}.pds-combobox__option:focus-visible{outline:0}.pds-combobox__option .pds-combobox__option--layout .pds-combobox__option-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option .pds-combobox__option--chip .pds-combobox__option-chip{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option:last-child{-webkit-margin-after:0;margin-block-end:0}.pds-combobox__option--highlighted,.pds-combobox__option[selected],.pds-combobox__option--selected{background:var(--pine-color-background-muted)}.pds-combobox__option-check{color:currentColor;font-size:var(--pine-dimension-150);-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__group-label{color:var(--pine-color-text-tertiary);cursor:default;font:var(--pine-typography-heading-caption);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-150);margin-block-start:var(--pine-dimension-150);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm);text-transform:uppercase}.pds-combobox__group-label:first-child{-webkit-margin-before:0;margin-block-start:0}.pds-combobox__button-trigger{-ms-flex-align:center;align-items:center;background:var(--color-background-default, var(--pine-color-secondary));border:var(--pine-border);border-radius:var(--pine-border-radius-full);color:var(--color-text-default, var(--pine-color-text-inverse-emphasis));cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;min-height:var(--pine-dimension-450);outline:none;padding:0 var(--pine-dimension-sm);-webkit-transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s, -webkit-box-shadow 0.15s;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__button-trigger .pds-combobox__button-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__button-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__button-trigger:focus-visible{border-color:var(--color-border-focus, var(--pine-color-border));-webkit-box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring));box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring))}.pds-combobox__button-trigger:hover{background:var(--color-background-hover, var(--pine-color-secondary-hover));border-color:var(--color-border-hover, var(--pine-color-border-hover))}.pds-combobox__button-trigger[aria-disabled=true],.pds-combobox__button-trigger:disabled{background:var(--color-background-disabled, var(--pine-color-secondary-disabled));border-color:var(--color-border-disabled, var(--pine-color-border-disabled));color:var(--color-text-disabled, var(--pine-color-text-secondary-disabled));cursor:not-allowed;opacity:0.6}.pds-combobox__button-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__button-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__button-trigger--primary{--color-background-default:var(--pine-color-primary);--color-background-hover:var(--pine-color-primary-hover);--color-background-disabled:var(--pine-color-primary-disabled);--color-border-default:var(--pine-color-primary);--color-border-hover:var(--pine-color-primary-hover);--color-border-disabled:var(--pine-color-primary-disabled);--color-border-focus:var(--pine-color-primary);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-primary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--accent{--color-background-default:var(--pine-color-accent);--color-background-hover:var(--pine-color-accent-hover);--color-background-disabled:var(--pine-color-accent-disabled);--color-border-default:var(--pine-color-accent);--color-border-hover:var(--pine-color-accent-hover);--color-border-disabled:var(--pine-color-accent-disabled);--color-border-focus:var(--pine-color-accent);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-accent-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--secondary{--color-background-default:var(--pine-color-secondary);--color-background-hover:var(--pine-color-secondary-hover);--color-background-disabled:var(--pine-color-secondary-disabled);--color-border-default:var(--pine-color-border);--color-border-hover:var(--pine-color-border-hover);--color-border-disabled:var(--pine-color-border-disabled);--color-border-focus:var(--pine-color-border);--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--destructive{--color-background-default:var(--pine-color-danger);--color-background-hover:var(--pine-color-danger-hover);--color-background-disabled:var(--pine-color-danger-disabled);--color-border-default:var(--pine-color-danger);--color-border-hover:var(--pine-color-danger-hover);--color-border-disabled:var(--pine-color-danger-disabled);--color-border-focus:var(--pine-color-danger);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-danger-disabled);--color-outline:var(--pine-color-focus-ring-danger)}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[data-layout]{border-radius:var(--pine-dimension-125);padding-block:var(--pine-dimension-xs)}.pds-combobox__chip-trigger{-ms-flex-align:center;align-items:center;border-radius:var(--pine-dimension-sm);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;outline:none;padding-block:var(--pine-dimension-025);padding-inline:var(--pine-dimension-150);-webkit-transition:all 0.15s ease;transition:all 0.15s ease;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__chip-trigger .pds-combobox__chip-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__chip-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__chip-trigger:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__chip-trigger[aria-disabled=true]{cursor:not-allowed;opacity:0.6}.pds-combobox__chip-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__chip-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__chip-trigger-icon{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}.pds-combobox__chip-trigger--neutral,.pds-combobox__chip-trigger--accent,.pds-combobox__chip-trigger--success,.pds-combobox__chip-trigger--warning,.pds-combobox__chip-trigger--danger,.pds-combobox__chip-trigger--info{background:var(--chip-bg);border:var(--pine-border-width) solid var(--chip-border);color:var(--chip-text)}.pds-combobox__chip-trigger--neutral:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--accent:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--success:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--warning:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--danger:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--info:hover:not([aria-disabled=true]){background:var(--chip-bg-hover)}.pds-combobox__chip-trigger--neutral:focus-visible,.pds-combobox__chip-trigger--accent:focus-visible,.pds-combobox__chip-trigger--success:focus-visible,.pds-combobox__chip-trigger--warning:focus-visible,.pds-combobox__chip-trigger--danger:focus-visible,.pds-combobox__chip-trigger--info:focus-visible{border-color:var(--chip-border)}.pds-combobox__chip-trigger--neutral{--chip-bg:var(--pine-chip-color-neutral);--chip-bg-hover:var(--pine-chip-color-neutral-hover);--chip-border:var(--pine-chip-color-neutral-hover);--chip-text:var(--pine-color-text-neutral)}.pds-combobox__chip-trigger--accent{--chip-bg:var(--pine-chip-color-accent);--chip-bg-hover:var(--pine-chip-color-accent-hover);--chip-border:var(--pine-chip-color-accent-hover);--chip-text:var(--pine-color-text-accent)}.pds-combobox__chip-trigger--success{--chip-bg:var(--pine-chip-color-success);--chip-bg-hover:var(--pine-chip-color-success-hover);--chip-border:var(--pine-chip-color-success-hover);--chip-text:var(--pine-color-text-success)}.pds-combobox__chip-trigger--warning{--chip-bg:var(--pine-chip-color-warning);--chip-bg-hover:var(--pine-chip-color-warning-hover);--chip-border:var(--pine-chip-color-warning-hover);--chip-text:var(--pine-color-text-warning)}.pds-combobox__chip-trigger--danger{--chip-bg:var(--pine-chip-color-danger);--chip-bg-hover:var(--pine-chip-color-danger-hover);--chip-border:var(--pine-chip-color-danger-hover);--chip-text:var(--pine-color-text-danger)}.pds-combobox__chip-trigger--info{--chip-bg:var(--pine-chip-color-info);--chip-bg-hover:var(--pine-chip-color-info-hover);--chip-border:var(--pine-chip-color-info-hover);--chip-text:var(--pine-color-text-info)}.pds-combobox__chip-trigger--brand{background:-webkit-gradient(linear, left top, right top, from(#FF3E14), to(#6B62F2));background:linear-gradient(90deg, #FF3E14 0%, #6B62F2 100%);border:0;color:var(--pine-color-text-neutral);padding:1px;position:relative}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.9);border-radius:calc(var(--pine-dimension-sm) - 1px);color:var(--pine-color-text-neutral);font-weight:var(--pine-font-weight-medium);padding:var(--pine-dimension-025) var(--pine-dimension-150);position:relative;z-index:1}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-chevron{position:relative;z-index:1}.pds-combobox__chip-trigger--brand:hover:not([aria-disabled=true]) .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.8)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand){padding:var(--pine-dimension-none)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand) .pds-combobox__chip-trigger-label{padding:var(--pine-dimension-025) var(--pine-dimension-150)}.pds-combobox__chip-trigger--large .pds-combobox__chip-trigger-label{font-family:var(--pine-font-family-heading);font-size:var(--pine-font-size-heading-6);font-weight:var(--pine-font-weight-medium);letter-spacing:var(--pine-letter-spacing-heading-6)}.pds-combobox__chip-trigger--dot .pds-combobox__chip-trigger-label::before{border:var(--pine-border-width) solid transparent;border-radius:var(--pine-border-radius-full);content:\"\";display:inline-block;height:var(--pine-dimension-2xs);-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs);width:var(--pine-dimension-2xs)}";
|
|
7718
|
+
const pdsComboboxCss = ":host{display:block}:host([disabled=true]) .pds-combobox__input-icon{color:var(--pine-color-text-disabled);pointer-events:none}.pds-combobox{position:relative}.pds-combobox__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-combobox__input-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;position:relative;width:100%}.pds-combobox__input{background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body-medium);padding:var(--pine-dimension-xs) var(--pine-dimension-450) var(--pine-dimension-xs) var(--pine-dimension-150);-webkit-transition:border-color 0.2s ease;transition:border-color 0.2s ease;width:100%}.pds-combobox__input:hover:not(:disabled){border-color:var(--pine-color-border-hover)}.pds-combobox__input:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-combobox__input:disabled::-webkit-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-moz-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled:-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:focus-visible{border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input-icon{color:var(--pine-color-text-secondary);pointer-events:none;position:absolute;right:var(--pine-dimension-150);z-index:var(--pine-z-index-raised)}.pds-combobox__listbox{background:var(--pine-color-background-container);border:0;border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);list-style:none;margin:0;min-width:220px;overflow-y:auto;padding:var(--pine-dimension-xs);position:absolute;z-index:var(--pine-z-index-raised)}.pds-combobox__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-125);color:var(--pine-color-text-secondary);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;-webkit-transition:background 0.15s;transition:background 0.15s}.pds-combobox__option[aria-selected=true]{background:var(--pine-color-background-muted)}.pds-combobox__option:focus-visible{outline:0}.pds-combobox__option .pds-combobox__option--layout .pds-combobox__option-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option .pds-combobox__option--chip .pds-combobox__option-chip{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option:last-child{-webkit-margin-after:0;margin-block-end:0}.pds-combobox__option--highlighted,.pds-combobox__option[selected],.pds-combobox__option--selected{background:var(--pine-color-background-muted)}.pds-combobox__option-check{color:currentColor;font-size:var(--pine-dimension-150);-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__group-label{color:var(--pine-color-text-tertiary);cursor:default;font:var(--pine-typography-heading-caption);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-150);margin-block-start:var(--pine-dimension-150);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm);text-transform:uppercase}.pds-combobox__group-label:first-child{-webkit-margin-before:0;margin-block-start:0}.pds-combobox__button-trigger{-ms-flex-align:center;align-items:center;background:var(--color-background-default, var(--pine-color-secondary));border:var(--pine-border);border-radius:var(--pine-border-radius-full);color:var(--color-text-default, var(--pine-color-text-inverse-emphasis));cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;min-height:var(--pine-dimension-450);outline:none;padding:0 var(--pine-dimension-sm);-webkit-transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s, -webkit-box-shadow 0.15s;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__button-trigger .pds-combobox__button-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__button-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__button-trigger:focus-visible{border-color:var(--color-border-focus, var(--pine-color-border));-webkit-box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring));box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring))}.pds-combobox__button-trigger:hover{background:var(--color-background-hover, var(--pine-color-secondary-hover));border-color:var(--color-border-hover, var(--pine-color-border-hover))}.pds-combobox__button-trigger[aria-disabled=true],.pds-combobox__button-trigger:disabled{background:var(--color-background-disabled, var(--pine-color-secondary-disabled));border-color:var(--color-border-disabled, var(--pine-color-border-disabled));color:var(--color-text-disabled, var(--pine-color-text-secondary-disabled));cursor:not-allowed;opacity:0.6}.pds-combobox__button-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__button-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__button-trigger--primary{--color-background-default:var(--pine-color-primary);--color-background-hover:var(--pine-color-primary-hover);--color-background-disabled:var(--pine-color-primary-disabled);--color-border-default:var(--pine-color-primary);--color-border-hover:var(--pine-color-primary-hover);--color-border-disabled:var(--pine-color-primary-disabled);--color-border-focus:var(--pine-color-primary);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-primary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--accent{--color-background-default:var(--pine-color-accent);--color-background-hover:var(--pine-color-accent-hover);--color-background-disabled:var(--pine-color-accent-disabled);--color-border-default:var(--pine-color-accent);--color-border-hover:var(--pine-color-accent-hover);--color-border-disabled:var(--pine-color-accent-disabled);--color-border-focus:var(--pine-color-accent);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-accent-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--secondary{--color-background-default:var(--pine-color-secondary);--color-background-hover:var(--pine-color-secondary-hover);--color-background-disabled:var(--pine-color-secondary-disabled);--color-border-default:var(--pine-color-border);--color-border-hover:var(--pine-color-border-hover);--color-border-disabled:var(--pine-color-border-disabled);--color-border-focus:var(--pine-color-border);--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--destructive{--color-background-default:var(--pine-color-danger);--color-background-hover:var(--pine-color-danger-hover);--color-background-disabled:var(--pine-color-danger-disabled);--color-border-default:var(--pine-color-danger);--color-border-hover:var(--pine-color-danger-hover);--color-border-disabled:var(--pine-color-danger-disabled);--color-border-focus:var(--pine-color-danger);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-danger-disabled);--color-outline:var(--pine-color-focus-ring-danger)}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[data-layout]{border-radius:var(--pine-dimension-125);padding-block:var(--pine-dimension-xs)}.pds-combobox__chip-trigger{-ms-flex-align:center;align-items:center;border-radius:var(--pine-dimension-sm);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;outline:none;padding-block:var(--pine-dimension-025);padding-inline:var(--pine-dimension-150);-webkit-transition:all 0.15s ease;transition:all 0.15s ease;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__chip-trigger .pds-combobox__chip-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__chip-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__chip-trigger:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__chip-trigger[aria-disabled=true]{cursor:not-allowed;opacity:0.6}.pds-combobox__chip-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__chip-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__chip-trigger-icon{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}.pds-combobox__chip-trigger--neutral,.pds-combobox__chip-trigger--accent,.pds-combobox__chip-trigger--success,.pds-combobox__chip-trigger--warning,.pds-combobox__chip-trigger--danger,.pds-combobox__chip-trigger--info{background:var(--chip-bg);border:var(--pine-border-width) solid var(--chip-border);color:var(--chip-text)}.pds-combobox__chip-trigger--neutral:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--accent:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--success:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--warning:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--danger:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--info:hover:not([aria-disabled=true]){background:var(--chip-bg-hover)}.pds-combobox__chip-trigger--neutral:focus-visible,.pds-combobox__chip-trigger--accent:focus-visible,.pds-combobox__chip-trigger--success:focus-visible,.pds-combobox__chip-trigger--warning:focus-visible,.pds-combobox__chip-trigger--danger:focus-visible,.pds-combobox__chip-trigger--info:focus-visible{border-color:var(--chip-border)}.pds-combobox__chip-trigger--neutral{--chip-bg:var(--pine-chip-color-neutral);--chip-bg-hover:var(--pine-chip-color-neutral-hover);--chip-border:var(--pine-chip-color-neutral-hover);--chip-text:var(--pine-color-text-neutral)}.pds-combobox__chip-trigger--accent{--chip-bg:var(--pine-chip-color-accent);--chip-bg-hover:var(--pine-chip-color-accent-hover);--chip-border:var(--pine-chip-color-accent-hover);--chip-text:var(--pine-color-text-accent)}.pds-combobox__chip-trigger--success{--chip-bg:var(--pine-chip-color-success);--chip-bg-hover:var(--pine-chip-color-success-hover);--chip-border:var(--pine-chip-color-success-hover);--chip-text:var(--pine-color-text-success)}.pds-combobox__chip-trigger--warning{--chip-bg:var(--pine-chip-color-warning);--chip-bg-hover:var(--pine-chip-color-warning-hover);--chip-border:var(--pine-chip-color-warning-hover);--chip-text:var(--pine-color-text-warning)}.pds-combobox__chip-trigger--danger{--chip-bg:var(--pine-chip-color-danger);--chip-bg-hover:var(--pine-chip-color-danger-hover);--chip-border:var(--pine-chip-color-danger-hover);--chip-text:var(--pine-color-text-danger)}.pds-combobox__chip-trigger--info{--chip-bg:var(--pine-chip-color-info);--chip-bg-hover:var(--pine-chip-color-info-hover);--chip-border:var(--pine-chip-color-info-hover);--chip-text:var(--pine-color-text-info)}.pds-combobox__chip-trigger--brand{background:-webkit-gradient(linear, left top, right top, from(#FF3E14), to(#6B62F2));background:linear-gradient(90deg, #FF3E14 0%, #6B62F2 100%);border:0;color:var(--pine-color-text-neutral);padding:1px;position:relative}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.9);border-radius:calc(var(--pine-dimension-sm) - 1px);color:var(--pine-color-text-neutral);font-weight:var(--pine-font-weight-medium);padding:var(--pine-dimension-025) var(--pine-dimension-150);position:relative;z-index:1}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-chevron{position:relative;z-index:1}.pds-combobox__chip-trigger--brand:hover:not([aria-disabled=true]) .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.8)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand){padding:var(--pine-dimension-none)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand) .pds-combobox__chip-trigger-label{padding:var(--pine-dimension-025) var(--pine-dimension-150)}.pds-combobox__chip-trigger--large .pds-combobox__chip-trigger-label{font-family:var(--pine-font-family-heading);font-size:var(--pine-font-size-heading-6);font-weight:var(--pine-font-weight-medium);letter-spacing:var(--pine-letter-spacing-heading-6)}.pds-combobox__chip-trigger--dot .pds-combobox__chip-trigger-label::before{border:var(--pine-border-width) solid transparent;border-radius:var(--pine-border-radius-full);content:\"\";display:inline-block;height:var(--pine-dimension-2xs);-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs);width:var(--pine-dimension-2xs)}.pds-combobox__loading{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}.pds-combobox__empty{color:var(--pine-color-text-tertiary);padding:var(--pine-dimension-150) var(--pine-dimension-sm);text-align:center}.pds-combobox__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}";
|
|
7672
7719
|
|
|
7673
7720
|
/**
|
|
7674
7721
|
* @slot option - Option elements for the combobox dropdown
|
|
7675
7722
|
* @slot trigger-content - Custom content for the button trigger when customTriggerContent is true
|
|
7723
|
+
* @slot empty - Custom empty state message when no options match
|
|
7724
|
+
* @slot loading - Custom loading indicator
|
|
7676
7725
|
*/
|
|
7677
7726
|
class PdsCombobox {
|
|
7678
7727
|
constructor(hostRef) {
|
|
7679
7728
|
registerInstance(this, hostRef);
|
|
7680
7729
|
this.pdsComboboxChange = createEvent(this, "pdsComboboxChange");
|
|
7730
|
+
this.pdsComboboxSearch = createEvent(this, "pdsComboboxSearch");
|
|
7731
|
+
this.pdsComboboxLoadOptions = createEvent(this, "pdsComboboxLoadOptions");
|
|
7681
7732
|
/**
|
|
7682
7733
|
* Enable custom layout content for options. Options with data-layout attribute will render their HTML content.
|
|
7683
7734
|
* ⚠️ Security Warning: Only use with trusted content. Basic XSS protection is applied, but avoid user-generated content.
|
|
@@ -7749,6 +7800,22 @@ class PdsCombobox {
|
|
|
7749
7800
|
* The value of the combobox input.
|
|
7750
7801
|
*/
|
|
7751
7802
|
this.value = '';
|
|
7803
|
+
/**
|
|
7804
|
+
* HTTP method for async requests.
|
|
7805
|
+
*/
|
|
7806
|
+
this.asyncMethod = 'GET';
|
|
7807
|
+
/**
|
|
7808
|
+
* Debounce delay in milliseconds for search/fetch.
|
|
7809
|
+
*/
|
|
7810
|
+
this.debounce = 300;
|
|
7811
|
+
/**
|
|
7812
|
+
* Timeout in milliseconds for async fetch requests.
|
|
7813
|
+
*/
|
|
7814
|
+
this.fetchTimeout = 30000;
|
|
7815
|
+
/**
|
|
7816
|
+
* Whether the component is currently loading async options.
|
|
7817
|
+
*/
|
|
7818
|
+
this.loading = false;
|
|
7752
7819
|
/**
|
|
7753
7820
|
* Internal state for the display text shown in the input/trigger
|
|
7754
7821
|
*/
|
|
@@ -7777,6 +7844,18 @@ class PdsCombobox {
|
|
|
7777
7844
|
* Internal state to track chip properties for automatic rendering
|
|
7778
7845
|
*/
|
|
7779
7846
|
this.selectedOptionChipProps = null;
|
|
7847
|
+
/**
|
|
7848
|
+
* Internal state for async options.
|
|
7849
|
+
*/
|
|
7850
|
+
this.internalOptions = [];
|
|
7851
|
+
/**
|
|
7852
|
+
* Internal state for current page (pagination).
|
|
7853
|
+
*/
|
|
7854
|
+
this.currentPage = 1;
|
|
7855
|
+
/**
|
|
7856
|
+
* Internal state for hasMore (pagination).
|
|
7857
|
+
*/
|
|
7858
|
+
this.hasMore = false;
|
|
7780
7859
|
this.optionEls = [];
|
|
7781
7860
|
this.allItems = [];
|
|
7782
7861
|
this.isUpdatingFromSelection = false;
|
|
@@ -7785,6 +7864,12 @@ class PdsCombobox {
|
|
|
7785
7864
|
this.displayText = target.value;
|
|
7786
7865
|
this.isOpen = true;
|
|
7787
7866
|
this.filterOptions();
|
|
7867
|
+
// Emit search event for consumer-managed async
|
|
7868
|
+
this.pdsComboboxSearch.emit({ query: this.displayText });
|
|
7869
|
+
// Fetch from async URL if configured
|
|
7870
|
+
if (this.asyncUrl) {
|
|
7871
|
+
this.debouncedFetchAsyncOptions(this.displayText, 1);
|
|
7872
|
+
}
|
|
7788
7873
|
setTimeout(() => this.openDropdownPositioning(), 0);
|
|
7789
7874
|
};
|
|
7790
7875
|
this.handleInputClick = () => {
|
|
@@ -7792,6 +7877,10 @@ class PdsCombobox {
|
|
|
7792
7877
|
if (!this.isOpen) {
|
|
7793
7878
|
this.isOpen = true;
|
|
7794
7879
|
this.filterOptions();
|
|
7880
|
+
// Trigger initial fetch if async and no options loaded yet
|
|
7881
|
+
if (this.asyncUrl && this.internalOptions.length === 0) {
|
|
7882
|
+
this.debouncedFetchAsyncOptions(this.displayText, 1);
|
|
7883
|
+
}
|
|
7795
7884
|
this.setInitialHighlightedIndex();
|
|
7796
7885
|
setTimeout(() => this.openDropdownPositioning(), 0);
|
|
7797
7886
|
}
|
|
@@ -7931,6 +8020,10 @@ class PdsCombobox {
|
|
|
7931
8020
|
this.isOpen = !this.isOpen;
|
|
7932
8021
|
if (this.isOpen) {
|
|
7933
8022
|
this.filterOptions();
|
|
8023
|
+
// Trigger initial fetch if async and no options loaded yet
|
|
8024
|
+
if (this.asyncUrl && this.internalOptions.length === 0) {
|
|
8025
|
+
this.debouncedFetchAsyncOptions(this.displayText, 1);
|
|
8026
|
+
}
|
|
7934
8027
|
// Set highlighted index and prepare for keyboard navigation
|
|
7935
8028
|
this.setInitialHighlightedIndex();
|
|
7936
8029
|
// For button trigger, prepare for arrow-key navigation mode
|
|
@@ -7998,6 +8091,20 @@ class PdsCombobox {
|
|
|
7998
8091
|
}
|
|
7999
8092
|
}
|
|
8000
8093
|
};
|
|
8094
|
+
this.handleScroll = (e) => {
|
|
8095
|
+
if (!this.asyncUrl || !this.hasMore || this.loading)
|
|
8096
|
+
return;
|
|
8097
|
+
const target = e.target;
|
|
8098
|
+
const scrollBottom = target.scrollHeight - target.scrollTop - target.clientHeight;
|
|
8099
|
+
// Load more when near bottom (within 50px)
|
|
8100
|
+
if (scrollBottom < 50) {
|
|
8101
|
+
this.pdsComboboxLoadOptions.emit({
|
|
8102
|
+
query: this.displayText,
|
|
8103
|
+
page: this.currentPage + 1,
|
|
8104
|
+
});
|
|
8105
|
+
this.debouncedFetchAsyncOptions(this.displayText, this.currentPage + 1);
|
|
8106
|
+
}
|
|
8107
|
+
};
|
|
8001
8108
|
}
|
|
8002
8109
|
connectedCallback() {
|
|
8003
8110
|
// Initialize ElementInternals for form association (only once per element instance)
|
|
@@ -8006,10 +8113,12 @@ class PdsCombobox {
|
|
|
8006
8113
|
}
|
|
8007
8114
|
}
|
|
8008
8115
|
componentWillLoad() {
|
|
8116
|
+
this.originalSearchEmitter = this.pdsComboboxSearch;
|
|
8009
8117
|
this.updateOptions();
|
|
8010
8118
|
}
|
|
8011
8119
|
componentDidLoad() {
|
|
8012
8120
|
var _a, _b, _c;
|
|
8121
|
+
this.setupDebounce();
|
|
8013
8122
|
// Check for value-based preselection if no option is selected yet
|
|
8014
8123
|
if (!this.selectedOption && this.value && this.optionEls.length > 0) {
|
|
8015
8124
|
const matchingOption = this.optionEls.find(opt => opt.value === this.value);
|
|
@@ -8031,6 +8140,23 @@ class PdsCombobox {
|
|
|
8031
8140
|
}
|
|
8032
8141
|
}
|
|
8033
8142
|
}
|
|
8143
|
+
disconnectedCallback() {
|
|
8144
|
+
var _a;
|
|
8145
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
8146
|
+
this.clearAsyncFetchState();
|
|
8147
|
+
}
|
|
8148
|
+
setupDebounce() {
|
|
8149
|
+
const { pdsComboboxSearch, debounce, originalSearchEmitter } = this;
|
|
8150
|
+
this.pdsComboboxSearch = debounce === undefined
|
|
8151
|
+
? originalSearchEmitter !== null && originalSearchEmitter !== void 0 ? originalSearchEmitter : pdsComboboxSearch
|
|
8152
|
+
: debounceEvent(pdsComboboxSearch, debounce);
|
|
8153
|
+
}
|
|
8154
|
+
optionsChanged() {
|
|
8155
|
+
if (this.options) {
|
|
8156
|
+
this.internalOptions = [...this.options];
|
|
8157
|
+
this.updateOptionsFromAsync();
|
|
8158
|
+
}
|
|
8159
|
+
}
|
|
8034
8160
|
handleValueChange() {
|
|
8035
8161
|
this.filterOptions();
|
|
8036
8162
|
// Sync with form internals for form association
|
|
@@ -8096,8 +8222,141 @@ class PdsCombobox {
|
|
|
8096
8222
|
}
|
|
8097
8223
|
}
|
|
8098
8224
|
}
|
|
8225
|
+
clearAsyncFetchState() {
|
|
8226
|
+
var _a;
|
|
8227
|
+
if (this.fetchDebounceTimer !== undefined) {
|
|
8228
|
+
window.clearTimeout(this.fetchDebounceTimer);
|
|
8229
|
+
this.fetchDebounceTimer = undefined;
|
|
8230
|
+
}
|
|
8231
|
+
if (this.fetchTimeoutTimer !== undefined) {
|
|
8232
|
+
window.clearTimeout(this.fetchTimeoutTimer);
|
|
8233
|
+
this.fetchTimeoutTimer = undefined;
|
|
8234
|
+
}
|
|
8235
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
8236
|
+
this.abortController = undefined;
|
|
8237
|
+
}
|
|
8238
|
+
debouncedFetchAsyncOptions(query, page = 1) {
|
|
8239
|
+
var _a;
|
|
8240
|
+
if (!this.asyncUrl)
|
|
8241
|
+
return;
|
|
8242
|
+
if (this.fetchDebounceTimer !== undefined) {
|
|
8243
|
+
window.clearTimeout(this.fetchDebounceTimer);
|
|
8244
|
+
}
|
|
8245
|
+
const delay = Math.max(0, (_a = this.debounce) !== null && _a !== void 0 ? _a : 0);
|
|
8246
|
+
this.fetchDebounceTimer = window.setTimeout(() => {
|
|
8247
|
+
this.fetchDebounceTimer = undefined;
|
|
8248
|
+
this.fetchOptions(query, page);
|
|
8249
|
+
}, delay);
|
|
8250
|
+
}
|
|
8251
|
+
async fetchOptions(query, page = 1) {
|
|
8252
|
+
var _a;
|
|
8253
|
+
if (!this.asyncUrl)
|
|
8254
|
+
return;
|
|
8255
|
+
// Abort any pending request and clear existing timeout
|
|
8256
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
8257
|
+
if (this.fetchTimeoutTimer !== undefined) {
|
|
8258
|
+
window.clearTimeout(this.fetchTimeoutTimer);
|
|
8259
|
+
this.fetchTimeoutTimer = undefined;
|
|
8260
|
+
}
|
|
8261
|
+
this.abortController = new AbortController();
|
|
8262
|
+
this.loading = true;
|
|
8263
|
+
// Set up timeout for fetch request
|
|
8264
|
+
this.fetchTimeoutTimer = window.setTimeout(() => {
|
|
8265
|
+
var _a;
|
|
8266
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
8267
|
+
this.fetchTimeoutTimer = undefined;
|
|
8268
|
+
}, this.fetchTimeout);
|
|
8269
|
+
try {
|
|
8270
|
+
// Guard against malformed asyncUrl
|
|
8271
|
+
let url;
|
|
8272
|
+
try {
|
|
8273
|
+
url = new URL(this.asyncUrl, window.location.origin);
|
|
8274
|
+
}
|
|
8275
|
+
catch (urlError) {
|
|
8276
|
+
throw new TypeError(`Invalid asyncUrl: ${this.asyncUrl}`);
|
|
8277
|
+
}
|
|
8278
|
+
if (this.asyncMethod === 'GET') {
|
|
8279
|
+
url.searchParams.set('search', query);
|
|
8280
|
+
url.searchParams.set('page', String(page));
|
|
8281
|
+
}
|
|
8282
|
+
const response = await fetch(url.toString(), Object.assign({ method: this.asyncMethod, signal: this.abortController.signal, headers: {
|
|
8283
|
+
'Content-Type': 'application/json',
|
|
8284
|
+
'Accept': 'application/json',
|
|
8285
|
+
} }, (this.asyncMethod === 'POST' && {
|
|
8286
|
+
body: JSON.stringify({ search: query, page }),
|
|
8287
|
+
})));
|
|
8288
|
+
// Clear timeout on successful response
|
|
8289
|
+
if (this.fetchTimeoutTimer !== undefined) {
|
|
8290
|
+
window.clearTimeout(this.fetchTimeoutTimer);
|
|
8291
|
+
this.fetchTimeoutTimer = undefined;
|
|
8292
|
+
}
|
|
8293
|
+
if (!response.ok)
|
|
8294
|
+
throw new Error('Failed to fetch options');
|
|
8295
|
+
const data = await response.json();
|
|
8296
|
+
const formattedResults = data.results.map(item => {
|
|
8297
|
+
// If formatResult is provided, use it
|
|
8298
|
+
if (this.formatResult) {
|
|
8299
|
+
return this.formatResult(item);
|
|
8300
|
+
}
|
|
8301
|
+
// Defensive check: ensure item is an object before spreading
|
|
8302
|
+
if (typeof item === 'object' && item !== null) {
|
|
8303
|
+
return Object.assign({ id: item.id, text: item.text }, item);
|
|
8304
|
+
}
|
|
8305
|
+
// Handle primitives by converting to safe shape
|
|
8306
|
+
return {
|
|
8307
|
+
id: String(item),
|
|
8308
|
+
text: String(item),
|
|
8309
|
+
};
|
|
8310
|
+
});
|
|
8311
|
+
if (page === 1) {
|
|
8312
|
+
this.internalOptions = formattedResults;
|
|
8313
|
+
}
|
|
8314
|
+
else {
|
|
8315
|
+
this.internalOptions = [...this.internalOptions, ...formattedResults];
|
|
8316
|
+
}
|
|
8317
|
+
this.hasMore = data.totalCount ? this.internalOptions.length < data.totalCount : false;
|
|
8318
|
+
this.currentPage = page;
|
|
8319
|
+
// Update DOM options from async data
|
|
8320
|
+
this.updateOptionsFromAsync();
|
|
8321
|
+
}
|
|
8322
|
+
catch (error) {
|
|
8323
|
+
// Clear timeout on error
|
|
8324
|
+
if (this.fetchTimeoutTimer !== undefined) {
|
|
8325
|
+
window.clearTimeout(this.fetchTimeoutTimer);
|
|
8326
|
+
this.fetchTimeoutTimer = undefined;
|
|
8327
|
+
}
|
|
8328
|
+
if (error.name !== 'AbortError') {
|
|
8329
|
+
console.error('PdsCombobox: Failed to fetch options', error);
|
|
8330
|
+
}
|
|
8331
|
+
}
|
|
8332
|
+
finally {
|
|
8333
|
+
this.loading = false;
|
|
8334
|
+
}
|
|
8335
|
+
}
|
|
8336
|
+
updateOptionsFromAsync() {
|
|
8337
|
+
if (!this.asyncUrl && !this.options)
|
|
8338
|
+
return;
|
|
8339
|
+
// Clear existing slot-based options when using async
|
|
8340
|
+
this.optionEls = [];
|
|
8341
|
+
this.allItems = [];
|
|
8342
|
+
// Create option elements from async data
|
|
8343
|
+
const asyncOptions = this.options || this.internalOptions;
|
|
8344
|
+
asyncOptions.forEach(opt => {
|
|
8345
|
+
const optionEl = document.createElement('option');
|
|
8346
|
+
optionEl.value = String(opt.id);
|
|
8347
|
+
optionEl.textContent = opt.text;
|
|
8348
|
+
this.optionEls.push(optionEl);
|
|
8349
|
+
this.allItems.push(optionEl);
|
|
8350
|
+
});
|
|
8351
|
+
this.filterOptions();
|
|
8352
|
+
}
|
|
8099
8353
|
updateOptions() {
|
|
8100
8354
|
var _a;
|
|
8355
|
+
// Skip slot-based options if using async
|
|
8356
|
+
if (this.asyncUrl || this.options) {
|
|
8357
|
+
this.updateOptionsFromAsync();
|
|
8358
|
+
return;
|
|
8359
|
+
}
|
|
8101
8360
|
// Get all elements from the slot
|
|
8102
8361
|
const slot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot[name="option"], slot:not([name])');
|
|
8103
8362
|
if (slot) {
|
|
@@ -8552,12 +8811,14 @@ class PdsCombobox {
|
|
|
8552
8811
|
this.pdsComboboxChange.emit({ value: option.value });
|
|
8553
8812
|
}
|
|
8554
8813
|
renderDropdown() {
|
|
8555
|
-
if (!this.isOpen
|
|
8814
|
+
if (!this.isOpen) {
|
|
8556
8815
|
return null;
|
|
8557
8816
|
}
|
|
8817
|
+
const hasSlottedEmpty = !!this.el.querySelector('[slot="empty"]');
|
|
8818
|
+
const hasSlottedLoading = !!this.el.querySelector('[slot="loading"]');
|
|
8558
8819
|
let optionIndex = 0;
|
|
8559
8820
|
const selectableOptions = this.filteredItems.filter(item => item.tagName === 'OPTION');
|
|
8560
|
-
return (hAsync("ul", { class: "pds-combobox__listbox", role: "listbox", id: "pds-combobox-listbox", "aria-label": this.label || 'Options', "aria-multiselectable": "false", ref: el => (this.listboxEl = el) }, this.filteredItems.map((item, itemIdx) => {
|
|
8821
|
+
return (hAsync("ul", { class: "pds-combobox__listbox", role: "listbox", id: "pds-combobox-listbox", "aria-label": this.label || 'Options', "aria-multiselectable": "false", ref: el => (this.listboxEl = el), onScroll: this.handleScroll }, this.loading && (hAsync("li", { class: "pds-combobox__loading", role: "presentation" }, hasSlottedLoading ? (hAsync("slot", { name: "loading" })) : (hAsync("pds-loader", { size: "small" })))), !this.loading && this.filteredItems.length === 0 && (hAsync("li", { class: "pds-combobox__empty", role: "presentation" }, hasSlottedEmpty ? (hAsync("slot", { name: "empty" })) : (hAsync("span", null, "No options found")))), this.filteredItems.map((item, itemIdx) => {
|
|
8561
8822
|
if (item.tagName === 'OPTGROUP') {
|
|
8562
8823
|
const optgroup = item;
|
|
8563
8824
|
return (hAsync("li", { key: `optgroup-${itemIdx}`, class: "pds-combobox__group-label", role: "presentation", "aria-label": optgroup.label }, optgroup.label));
|
|
@@ -8581,7 +8842,7 @@ class PdsCombobox {
|
|
|
8581
8842
|
}, "data-option-index": currentOptionIndex, onMouseDown: this.onOptionMouseDown, onClick: this.onOptionClick, onMouseEnter: this.onOptionMouseEnter, onKeyDown: this.onOptionKeyDown }, isLayout ? (hAsync("pds-box", { class: "pds-combobox__option-layout-wrapper", innerHTML: this.getOptionLayoutContent(option) })) : isChip ? (this.renderOptionChip(option)) : (this.getOptionLabel(option)), isSelected && hAsync("pds-icon", { icon: "check", size: "regular", class: "pds-combobox__option-check" })));
|
|
8582
8843
|
}
|
|
8583
8844
|
return null;
|
|
8584
|
-
})));
|
|
8845
|
+
}), this.hasMore && !this.loading && (hAsync("li", { class: "pds-combobox__load-more", role: "presentation" }, hAsync("pds-loader", { size: "small" })))));
|
|
8585
8846
|
}
|
|
8586
8847
|
// Helper method to render the caret icon
|
|
8587
8848
|
renderCaretIcon() {
|
|
@@ -8699,14 +8960,16 @@ class PdsCombobox {
|
|
|
8699
8960
|
}
|
|
8700
8961
|
render() {
|
|
8701
8962
|
const triggerClass = `pds-combobox__button-trigger pds-combobox__button-trigger--${this.triggerVariant}`;
|
|
8702
|
-
return (hAsync(Host, { key: '
|
|
8963
|
+
return (hAsync(Host, { key: '969d61af2b58a33d582259df5fe62a4d509a9f7b' }, hAsync("div", { key: '2af78eb8fd340e6f7a05f86ed3ed17dbe2c066e3', class: "pds-combobox", tabIndex: -1, onFocusout: this.onComboboxFocusOut }, this.label && (hAsync("label", { key: '9c85e41decaeb8403fad2217a90c5f2aaf659651', htmlFor: this.componentId, class: "pds-combobox__label" }, hAsync("span", { key: '578de8ce9fa07ce8f14b8b689c9fa8ee91495b83', class: this.hideLabel ? 'visually-hidden' : '' }, this.label))), this.trigger === 'input' ? (hAsync("div", { class: "pds-combobox__input-wrapper", style: { width: this.triggerWidth } }, hAsync("input", { ref: el => {
|
|
8703
8964
|
this.inputEl = el;
|
|
8704
8965
|
this.triggerEl = el;
|
|
8705
|
-
}, class: "pds-combobox__input", type: "text", role: "combobox", "aria-autocomplete": "list", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, value: this.displayText, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onClick: this.handleInputClick, onKeyDown: this.handleKeyDown, autocomplete: "off", part: "input" }), hAsync("pds-icon", { icon: "enlarge", "aria-hidden": "true", class: "pds-combobox__input-icon" }))) : this.trigger === 'chip' ? (hAsync("div", { class: this.getChipTriggerClass(), style: { width: this.triggerWidth }, role: "combobox", "aria-haspopup": "listbox", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "chip-trigger" }, this.renderChipTriggerContent())) : (hAsync("div", { class: triggerClass, style: { width: this.triggerWidth }, role: "combobox", "aria-haspopup": "listbox", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "button-trigger" }, this.renderButtonTriggerContent())), hAsync("div", { key: '
|
|
8966
|
+
}, class: "pds-combobox__input", type: "text", role: "combobox", "aria-autocomplete": "list", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, value: this.displayText, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onClick: this.handleInputClick, onKeyDown: this.handleKeyDown, autocomplete: "off", part: "input" }), hAsync("pds-icon", { icon: "enlarge", "aria-hidden": "true", class: "pds-combobox__input-icon" }))) : this.trigger === 'chip' ? (hAsync("div", { class: this.getChipTriggerClass(), style: { width: this.triggerWidth }, role: "combobox", "aria-haspopup": "listbox", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "chip-trigger" }, this.renderChipTriggerContent())) : (hAsync("div", { class: triggerClass, style: { width: this.triggerWidth }, role: "combobox", "aria-haspopup": "listbox", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "button-trigger" }, this.renderButtonTriggerContent())), hAsync("div", { key: '9805336062fc35dfa0465f0b85916c02b96ad10e', style: { display: 'none' } }, hAsync("slot", { key: 'cef42fb8fe2f73e2d44ed8258f805407a87628a2', onSlotchange: () => this.updateOptions() })), this.renderDropdown())));
|
|
8706
8967
|
}
|
|
8707
8968
|
static get formAssociated() { return true; }
|
|
8708
8969
|
get el() { return getElement(this); }
|
|
8709
8970
|
static get watchers() { return {
|
|
8971
|
+
"debounce": ["setupDebounce"],
|
|
8972
|
+
"options": ["optionsChanged"],
|
|
8710
8973
|
"value": ["handleValueChange"],
|
|
8711
8974
|
"selectedOption": ["handleSelectedOptionChange"]
|
|
8712
8975
|
}; }
|
|
@@ -8735,6 +8998,13 @@ class PdsCombobox {
|
|
|
8735
8998
|
"chipIcon": [1, "chip-icon"],
|
|
8736
8999
|
"chipDot": [4, "chip-dot"],
|
|
8737
9000
|
"value": [1025],
|
|
9001
|
+
"asyncUrl": [1, "async-url"],
|
|
9002
|
+
"asyncMethod": [1, "async-method"],
|
|
9003
|
+
"debounce": [2],
|
|
9004
|
+
"fetchTimeout": [2, "fetch-timeout"],
|
|
9005
|
+
"loading": [1028],
|
|
9006
|
+
"options": [16],
|
|
9007
|
+
"formatResult": [16],
|
|
8738
9008
|
"displayText": [32],
|
|
8739
9009
|
"filteredItems": [32],
|
|
8740
9010
|
"highlightedIndex": [32],
|
|
@@ -8742,6 +9012,9 @@ class PdsCombobox {
|
|
|
8742
9012
|
"selectedOption": [32],
|
|
8743
9013
|
"selectedOptionLayoutContent": [32],
|
|
8744
9014
|
"selectedOptionChipProps": [32],
|
|
9015
|
+
"internalOptions": [32],
|
|
9016
|
+
"currentPage": [32],
|
|
9017
|
+
"hasMore": [32],
|
|
8745
9018
|
"setFocus": [64],
|
|
8746
9019
|
"getSelectedValue": [64]
|
|
8747
9020
|
},
|
|
@@ -8801,7 +9074,7 @@ class PdsCopytext {
|
|
|
8801
9074
|
return classNames.join(' ');
|
|
8802
9075
|
}
|
|
8803
9076
|
render() {
|
|
8804
|
-
return (hAsync(Host, { key: '
|
|
9077
|
+
return (hAsync(Host, { key: 'a2922d7401e2fab4c49824354321abf49c0ee6ee', class: this.classNames(), id: this.componentId }, hAsync("pds-button", { key: '7a783ada0778a25b5f46e549353a6b454ac5001e', type: "button", variant: "unstyled", onClick: this.handleClick }, hAsync("span", { key: 'a14fbee0958bfe08abc9ebaebd71e0cfe3ab0e8f' }, this.value), hAsync("pds-icon", { key: '5134fd11dcfb2a05779818d51561fbe4c4fbf00a', icon: copy, size: "16px" }))));
|
|
8805
9078
|
}
|
|
8806
9079
|
static get style() { return pdsCopytextCss; }
|
|
8807
9080
|
static get cmpMeta() { return {
|
|
@@ -8843,7 +9116,7 @@ class PdsDivider {
|
|
|
8843
9116
|
return classNames.join(' ');
|
|
8844
9117
|
}
|
|
8845
9118
|
render() {
|
|
8846
|
-
return (hAsync(Host, { key: '
|
|
9119
|
+
return (hAsync(Host, { key: 'a8c82df92793442a9b55a4ed6fb27b2052aead2e', id: this.componentId }, hAsync("hr", { key: '3811a84dc36aa129606b4d2ee88ae101a1aa57be', class: this.classNames() })));
|
|
8847
9120
|
}
|
|
8848
9121
|
static get style() { return pdsDividerCss; }
|
|
8849
9122
|
static get cmpMeta() { return {
|
|
@@ -9126,7 +9399,7 @@ class PdsDropdownMenu {
|
|
|
9126
9399
|
}
|
|
9127
9400
|
}
|
|
9128
9401
|
render() {
|
|
9129
|
-
return (hAsync(Host, { key: '
|
|
9402
|
+
return (hAsync(Host, { key: 'bedd78a69e84f10abb3c714c02227fa76e255a35', id: this.componentId }, hAsync("slot", { key: 'd2bf56037a85679a677470d04865823966ca19d6', name: "trigger", onSlotchange: this.handleTriggerSlotChange }), hAsync("pds-box", { key: '64f56896103bb6cca6c71020d3d37c375d300c40', "border-radius": "sm", display: "flex", direction: "column", class: "pds-dropdown-menu--panel is-hidden", shadow: "100", role: "menu", "aria-orientation": "vertical", part: "menu-panel" }, hAsync("slot", { key: '0303160562f74fe9d32cc020c4539a7c8fc288a9', onSlotchange: this.handleSlotChange }))));
|
|
9130
9403
|
}
|
|
9131
9404
|
get host() { return getElement(this); }
|
|
9132
9405
|
static get style() { return pdsDropdownMenuCss; }
|
|
@@ -9160,6 +9433,12 @@ class PdsDropdownMenuItem {
|
|
|
9160
9433
|
* @defaultValue false
|
|
9161
9434
|
*/
|
|
9162
9435
|
this.disabled = false;
|
|
9436
|
+
/**
|
|
9437
|
+
* Determines whether the link should open in a new tab and display an external icon.
|
|
9438
|
+
* This is a simpler alternative to using `target="_blank"` for the common case.
|
|
9439
|
+
* @defaultValue false
|
|
9440
|
+
*/
|
|
9441
|
+
this.external = false;
|
|
9163
9442
|
this.hasFocus = false;
|
|
9164
9443
|
this.handleFocus = () => {
|
|
9165
9444
|
this.hasFocus = true;
|
|
@@ -9201,7 +9480,7 @@ class PdsDropdownMenuItem {
|
|
|
9201
9480
|
}
|
|
9202
9481
|
renderElement() {
|
|
9203
9482
|
if (this.href !== undefined) {
|
|
9204
|
-
return (hAsync("pds-link", { href: this.disabled ? null : this.href, class: {
|
|
9483
|
+
return (hAsync("pds-link", { href: this.disabled ? null : this.href, external: this.external, target: this.target, class: {
|
|
9205
9484
|
'pds-dropdown-menu-item__content': true,
|
|
9206
9485
|
'has-focus': this.hasFocus
|
|
9207
9486
|
}, tabIndex: this.disabled ? -1 : 0, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, "aria-disabled": this.disabled ? 'true' : null }, hAsync("slot", null)));
|
|
@@ -9212,7 +9491,7 @@ class PdsDropdownMenuItem {
|
|
|
9212
9491
|
}, tabIndex: this.disabled ? -1 : 0, type: "button", onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : null }, hAsync("slot", null)));
|
|
9213
9492
|
}
|
|
9214
9493
|
render() {
|
|
9215
|
-
return (hAsync(Host, { key: '
|
|
9494
|
+
return (hAsync(Host, { key: '81fce1eaf2020b0e524dbbe0d872f29771b3a0f9', id: this.componentId, class: { 'is-disabled': this.disabled, 'destructive': !this.disabled && this.destructive }, onClick: () => !this.disabled && this.handleClick(), role: "none", tabIndex: -1, "aria-disabled": this.disabled ? 'true' : null }, this.renderElement()));
|
|
9216
9495
|
}
|
|
9217
9496
|
get host() { return getElement(this); }
|
|
9218
9497
|
static get style() { return pdsDropdownMenuItemCss; }
|
|
@@ -9224,6 +9503,8 @@ class PdsDropdownMenuItem {
|
|
|
9224
9503
|
"destructive": [4],
|
|
9225
9504
|
"disabled": [4],
|
|
9226
9505
|
"href": [1],
|
|
9506
|
+
"external": [4],
|
|
9507
|
+
"target": [1],
|
|
9227
9508
|
"hasFocus": [32],
|
|
9228
9509
|
"clickItem": [64]
|
|
9229
9510
|
},
|
|
@@ -9245,7 +9526,7 @@ class PdsDropdownMenuSeparator {
|
|
|
9245
9526
|
this.disabled = false;
|
|
9246
9527
|
}
|
|
9247
9528
|
render() {
|
|
9248
|
-
return (hAsync(Host, { key: '
|
|
9529
|
+
return (hAsync(Host, { key: '6b1f9e89c6b19a03780e70b92b23cfa6731b0789', id: this.componentId }, hAsync("hr", { key: '22fa602eac4dca3750cc8f2cb3751e2cc2f124d5' })));
|
|
9249
9530
|
}
|
|
9250
9531
|
static get style() { return pdsDropdownMenuSeparatorCss; }
|
|
9251
9532
|
static get cmpMeta() { return {
|
|
@@ -9748,7 +10029,7 @@ class PdsFilter {
|
|
|
9748
10029
|
return null;
|
|
9749
10030
|
}
|
|
9750
10031
|
render() {
|
|
9751
|
-
return (hAsync(Host, { key: '
|
|
10032
|
+
return (hAsync(Host, { key: '23f2a8055dc95fa68f9e609ba868d7fb0d9ebe02', id: this.componentId }, hAsync("button", { key: '001aaafe4e838b0320f1b737677849f7ab43f9c6', class: this.getTriggerClasses(), type: "button", popoverTarget: this.variant !== 'clear' ? `${this.componentId}-popover` : undefined, popoverTargetAction: this.variant !== 'clear' ? 'toggle' : undefined, onKeyDown: this.variant === 'clear' ? this.handleKeyDown : undefined, onClick: (event) => this.handleClick(event), part: "button", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": this.variant !== 'clear' ? 'true' : undefined, "aria-controls": this.variant !== 'clear' ? `${this.componentId}-popover` : undefined }, hAsync("span", { key: 'ce57ff517a5c16a488ef1936194cf9a74c796717', class: "pds-filter__button-content", part: "button-content" }, this.renderIcon(), this.text && (hAsync("span", { key: '0060cc3942b5244e7279bf9228272d17d7f9ae16', class: "pds-filter__button-text", part: "button-text" }, this.text)), this.renderDropdownIcon())), this.variant !== 'clear' && (hAsync("div", { key: '449ded0baa7c3d4e021fd4225cf70c33a3823ee1', ref: el => this.popoverEl = el, id: `${this.componentId}-popover`, class: "pds-filter__popover", popover: "auto", part: "popover" }, hAsync("slot", { key: '3b4201f9c9ec017e8be7fdbeaeceeb92548cb489' })))));
|
|
9752
10033
|
}
|
|
9753
10034
|
get el() { return getElement(this); }
|
|
9754
10035
|
static get style() { return pdsFilterCss; }
|
|
@@ -9780,7 +10061,7 @@ class PdsFilters {
|
|
|
9780
10061
|
registerInstance(this, hostRef);
|
|
9781
10062
|
}
|
|
9782
10063
|
render() {
|
|
9783
|
-
return (hAsync(Host, { key: '
|
|
10064
|
+
return (hAsync(Host, { key: 'fdd0275d0b34944d423bd88f8c9b25dfa1f9da77', id: this.componentId }, hAsync("div", { key: 'd60ce50c5951187a1e4f1c0632c8eb62dd6bc2eb', class: "pds-filters" }, hAsync("slot", { key: 'bd233afd707070df3dbae5d774a92a8e99d5c672' }))));
|
|
9784
10065
|
}
|
|
9785
10066
|
static get style() { return pdsFiltersCss; }
|
|
9786
10067
|
static get cmpMeta() { return {
|
|
@@ -10243,9 +10524,9 @@ class PdsImage {
|
|
|
10243
10524
|
this.loading = 'eager';
|
|
10244
10525
|
}
|
|
10245
10526
|
render() {
|
|
10246
|
-
return (hAsync(Host, { key: '
|
|
10527
|
+
return (hAsync(Host, { key: '29d9305557c4deec8bde9ff6a13d18054f49b2df', class: {
|
|
10247
10528
|
'pds-image': true,
|
|
10248
|
-
}, id: this.componentId }, hAsync("img", { key: '
|
|
10529
|
+
}, id: this.componentId }, hAsync("img", { key: 'a09337659118e56d1ee4668cd3c33b21573d8945', alt: this.alt, height: this.height, loading: this.loading, sizes: this.sizes, src: this.src, srcset: this.srcset, width: this.width })));
|
|
10249
10530
|
}
|
|
10250
10531
|
static get style() { return pdsImageCss; }
|
|
10251
10532
|
static get cmpMeta() { return {
|
|
@@ -10533,7 +10814,7 @@ class PdsInput {
|
|
|
10533
10814
|
'has-prepend': this.hasPrepend,
|
|
10534
10815
|
'has-append': this.hasAppend,
|
|
10535
10816
|
};
|
|
10536
|
-
return (hAsync(Host, { key: '
|
|
10817
|
+
return (hAsync(Host, { key: 'ff25f2310e8d1755534fe3f27b391447d6014f76', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null, "has-prefix": this.hasPrefix ? 'true' : null, "has-suffix": this.hasSuffix ? 'true' : null, "has-prepend": this.hasPrepend ? 'true' : null, "has-append": this.hasAppend ? 'true' : null, "has-action": this.hasAction && !this.hideLabel ? 'true' : null, "full-width": this.fullWidth ? 'true' : null }, hAsync("div", { key: 'e337c4a828eb7641a41caffec2508fa9b12a2eeb', class: "pds-input" }, label && (hAsync("div", { key: '8df0800a08156e1755ae7460ad7ddd51a1301f27', class: "pds-input__label-wrapper" }, hAsync("label", { key: 'ed2978d0c9b841bfa8f929ab7072461b231ab5b2', htmlFor: componentId, class: "pds-input__label" }, hAsync("span", { key: '23ab3abd0ecff326110cbde065d3a3cb733ec832', class: this.hideLabel ? 'visually-hidden' : '' }, label, this.required && hAsync("span", { key: '1bdafb028b48e37c9999db0c8f2d1718f8566e05', class: "pds-input__required-indicator" }, " *"))), !this.hideLabel && this.renderAction())), hAsync("div", { key: 'e06ba19e8d40271345e27f791efb79817cc723f7', class: inputWrapperClasses }, this.renderPrepend(), this.renderPrefix(), hAsync("input", Object.assign({ key: 'd7a2d70a03130a431b527f5bf75888d1db55bd5e', ref: (input) => (this.nativeInput = input), class: "pds-input__field", "aria-describedby": assignDescription(componentId, invalid, helperMessage), "aria-invalid": invalid ? "true" : undefined, autocomplete: this.autocomplete, disabled: disabled, id: componentId, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, step: this.step, type: this.type, value: value, onInput: this.onInputEvent, onChange: this.onChangeEvent, onBlur: this.onBlurEvent, onFocus: this.onFocusEvent, onKeyDown: this.onKeyDownEvent, onCompositionstart: this.onCompositionStart, onCompositionend: this.onCompositionEnd }, this.inheritedAttributes)), this.renderSuffix(), this.renderAppend()), helperMessage && (hAsync("p", { key: 'd0f58791f013578fc34f36711a95b4f2e655bcda', class: "pds-input__helper-message", id: messageId(componentId, 'helper') }, helperMessage)), errorMessage && (hAsync("p", { key: 'b511338e9c05cfb4c9363a9227c8e208b9f645e1', class: "pds-input__error-message", id: messageId(componentId, 'error') }, hAsync("pds-icon", { key: '4eaaf16d77e23486aad12369919cd4e03768ff3a', icon: danger, size: "small" }), errorMessage)))));
|
|
10537
10818
|
}
|
|
10538
10819
|
static get formAssociated() { return true; }
|
|
10539
10820
|
get el() { return getElement(this); }
|
|
@@ -10595,6 +10876,7 @@ class PdsLink {
|
|
|
10595
10876
|
/**
|
|
10596
10877
|
* Determines whether the link should open in a new tab.
|
|
10597
10878
|
* @defaultValue false
|
|
10879
|
+
* @deprecated Consider using the `target` prop for more control. This prop will be maintained for backward compatibility.
|
|
10598
10880
|
*/
|
|
10599
10881
|
this.external = false;
|
|
10600
10882
|
/**
|
|
@@ -10630,8 +10912,11 @@ class PdsLink {
|
|
|
10630
10912
|
return linkStyles;
|
|
10631
10913
|
}
|
|
10632
10914
|
render() {
|
|
10633
|
-
|
|
10634
|
-
|
|
10915
|
+
const targetValue = this.target || (this.external ? '_blank' : undefined);
|
|
10916
|
+
const showExternalIcon = this.external;
|
|
10917
|
+
const relValue = targetValue === '_blank' ? 'noopener noreferrer' : undefined;
|
|
10918
|
+
return (hAsync("a", { key: '8c8c1f148aa53b20d232d9ad94d58333aa66553b', class: this.classNames(), href: this.href, id: this.componentId, part: "link", target: targetValue, rel: relValue, style: this.setLinkStyles() }, hAsync("slot", { key: '9a803b0086b0c665f62ff9702d6a5c41c868c874' }, this.href), showExternalIcon &&
|
|
10919
|
+
hAsync("pds-icon", { key: 'f9c752a279e427d2caa6771cf19a989622cd2110', icon: launch, size: this.fontSize })));
|
|
10635
10920
|
}
|
|
10636
10921
|
static get style() { return pdsLinkCss; }
|
|
10637
10922
|
static get cmpMeta() { return {
|
|
@@ -10641,6 +10926,7 @@ class PdsLink {
|
|
|
10641
10926
|
"color": [1],
|
|
10642
10927
|
"componentId": [1, "component-id"],
|
|
10643
10928
|
"external": [4],
|
|
10929
|
+
"target": [1],
|
|
10644
10930
|
"variant": [1],
|
|
10645
10931
|
"fontSize": [1, "font-size"],
|
|
10646
10932
|
"href": [1]
|
|
@@ -10701,7 +10987,7 @@ class PdsLoader {
|
|
|
10701
10987
|
}
|
|
10702
10988
|
}
|
|
10703
10989
|
render() {
|
|
10704
|
-
return (hAsync(Host, { key: '
|
|
10990
|
+
return (hAsync(Host, { key: '61277416b64876978e3a486089ace6099a4d53ab', class: `pds-loader ${this.isLoading ? '' : 'pds-loader--hidden'}`, "aria-hidden": !this.isLoading, "aria-busy": this.isLoading, "aria-live": "polite" }, this.variant === 'spinner' && (hAsync("div", { key: '2d5ea354090ab57de7ccf428ef206a9b5f6bbfa5', class: "pds-loader--spinner" }, hAsync("svg", { key: 'c5d3c41728cf5c5f77c329a16fb33570c68acb4a', style: this.getSvgStyle(), viewBox: "0 0 200 200", fill: "none", part: "loader-svg" }, hAsync("defs", { key: 'c5a70952409540684bcee4953fee99be2be84ff8' }, hAsync("linearGradient", { key: '08244568caee27a1e792208bed88dbfeac8868da', id: "spinner-secondHalf" }, hAsync("stop", { key: 'bfa2a7ad30c6906eb2f579f078b86f2808c86b63', offset: "0%", "stop-opacity": "0", "stop-color": "currentColor" }), hAsync("stop", { key: 'de4248657470249842d2982387d1dd877d979629', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" })), hAsync("linearGradient", { key: 'a9fefdd80496823f85c57df01978f813382af6f0', id: "spinner-firstHalf" }, hAsync("stop", { key: '0375649f9281bb076c8fbb5a7c905e53420debf2', offset: "0%", "stop-opacity": "1", "stop-color": "currentColor" }), hAsync("stop", { key: '08fe3406e36aab96022c23f79cb00b04f4621985', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" }))), hAsync("g", { key: '3e68617229aae3af082116fa2419fc6bc4c2e16c', class: "pds-loader__spinner-path" }, hAsync("path", { key: '1dbc7029a7b85a3b79705f82e4502bb6072f06c6', stroke: "url(#spinner-secondHalf)", d: "M 4 100 A 96 96 0 0 1 196 100" }), hAsync("path", { key: 'd2d86b183102b6e160fd0de5d2a20f75a166403b', stroke: "url(#spinner-firstHalf)", d: "M 196 100 A 96 96 0 0 1 4 100" }), hAsync("path", { key: 'b763168f03f87f8b58984497d3f3e051edafaf85', stroke: "currentColor", "stroke-linecap": "round", d: "M 4 100 A 96 96 0 0 1 4 98" }))))), this.variant === 'typing' && (hAsync("div", { key: '31a5842f69fef05f50abed593bbed3ff911df363', class: "pds-loader--typing" }, hAsync("span", { key: '5509c283cfc10a263b8ddc7a1d27e46749f2fdd3' }), hAsync("span", { key: '5907f51aac92a7d4bceb5d517a8fbb73971c2517' }), hAsync("span", { key: 'd59fa47f064313465ed75f53f48330bd15109aa2' }))), hAsync("div", { key: '7d64218cf923abfb88ec31306dd6cd52d310a64a', class: `pds-loader__label ${this.showLabel ? '' : 'pds-loader--hidden'}` }, hAsync("slot", { key: 'b20eba32674f09889b6b5e1d9c7cf99d3ae9781d', name: "label" }, "Loading..."))));
|
|
10705
10991
|
}
|
|
10706
10992
|
static get style() { return pdsLoaderCss; }
|
|
10707
10993
|
static get cmpMeta() { return {
|
|
@@ -10958,14 +11244,14 @@ class PdsModal {
|
|
|
10958
11244
|
return thisZIndex === maxZIndex;
|
|
10959
11245
|
}
|
|
10960
11246
|
render() {
|
|
10961
|
-
return (hAsync("dialog", { key: '
|
|
11247
|
+
return (hAsync("dialog", { key: '22ca55ddcc3aaf6e1158940d1fec23c9622b7810', class: {
|
|
10962
11248
|
'pds-modal__backdrop': true,
|
|
10963
11249
|
'open': this.open
|
|
10964
|
-
}, "aria-modal": "true", "aria-labelledby": `${this.componentId}-heading`, onClick: this.handleBackdropClick }, hAsync("div", { key: '
|
|
11250
|
+
}, "aria-modal": "true", "aria-labelledby": `${this.componentId}-heading`, onClick: this.handleBackdropClick }, hAsync("div", { key: '456929b5fa8ee7297fc11ffee1441a698cb2f3bc', class: {
|
|
10965
11251
|
'pds-modal': true,
|
|
10966
11252
|
[`pds-modal--${this.size}`]: true,
|
|
10967
11253
|
'pds-modal--scrollable': this.scrollable
|
|
10968
|
-
} }, hAsync("slot", { key: '
|
|
11254
|
+
} }, hAsync("slot", { key: 'f6981ab3a8c5b13a48d4e791979760e1cf8a28a4' }))));
|
|
10969
11255
|
}
|
|
10970
11256
|
get el() { return getElement(this); }
|
|
10971
11257
|
static get watchers() { return {
|
|
@@ -11168,10 +11454,10 @@ class PdsModalContent {
|
|
|
11168
11454
|
render() {
|
|
11169
11455
|
// Only apply max-height style if it's not 'none'
|
|
11170
11456
|
const styleObj = this.contentMaxHeight !== 'none' ? { maxHeight: this.contentMaxHeight } : {};
|
|
11171
|
-
return (hAsync(Host, { key: '
|
|
11457
|
+
return (hAsync(Host, { key: 'cc73d441bd68ac6b75d49a328f56d1e19cf7aab4' }, hAsync("div", { key: '57ce9c0da2cf15fb95ee7979c61cf62d5b2537de', class: {
|
|
11172
11458
|
'pds-modal-content': true,
|
|
11173
11459
|
[`pds-modal-content--border-${this.border}`]: true
|
|
11174
|
-
}, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: '
|
|
11460
|
+
}, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: 'be716d459c32e9ecf2c1ef3c591ff66675f793fb' }))));
|
|
11175
11461
|
}
|
|
11176
11462
|
get el() { return getElement(this); }
|
|
11177
11463
|
static get style() { return pdsModalContentCss; }
|
|
@@ -11195,7 +11481,7 @@ class PdsModalFooter {
|
|
|
11195
11481
|
registerInstance(this, hostRef);
|
|
11196
11482
|
}
|
|
11197
11483
|
render() {
|
|
11198
|
-
return (hAsync("footer", { key: '
|
|
11484
|
+
return (hAsync("footer", { key: '0151a48b62b1a35f7327434413a158a0a2c6a73c', class: "pds-modal__footer" }, hAsync("slot", { key: '3d153a1ac1bb4fdbaefb6f5d17f8adce377576af' })));
|
|
11199
11485
|
}
|
|
11200
11486
|
static get style() { return pdsModalFooterCss; }
|
|
11201
11487
|
static get cmpMeta() { return {
|
|
@@ -11215,7 +11501,7 @@ class PdsModalHeader {
|
|
|
11215
11501
|
registerInstance(this, hostRef);
|
|
11216
11502
|
}
|
|
11217
11503
|
render() {
|
|
11218
|
-
return (hAsync("header", { key: '
|
|
11504
|
+
return (hAsync("header", { key: '0fa58ce225ce31a1f40d6ce1d3276e716b36de8d', class: "pds-modal__header" }, hAsync("slot", { key: 'df0bbdb56c711c7eb34db7181f940de11d4449ef' })));
|
|
11219
11505
|
}
|
|
11220
11506
|
static get style() { return pdsModalHeaderCss; }
|
|
11221
11507
|
static get cmpMeta() { return {
|
|
@@ -11228,7 +11514,7 @@ class PdsModalHeader {
|
|
|
11228
11514
|
}; }
|
|
11229
11515
|
}
|
|
11230
11516
|
|
|
11231
|
-
const pdsMultiselectCss = ":host{display:block}:host([aria-disabled=true]) .pds-multiselect__trigger{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}:host([aria-disabled=true]) .pds-multiselect__icon{color:var(--pine-color-text-disabled)}.pds-multiselect{position:relative}.pds-multiselect__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-multiselect__wrapper{position:relative}.pds-multiselect__trigger{-ms-flex-align:center;align-items:center;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body);gap:var(--pine-dimension-xs);-ms-flex-pack:justify;justify-content:space-between;letter-spacing:var(--pine-letter-spacing);min-height:var(--pine-dimension-550);padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;text-align:start;-webkit-transition:border-color 0.2s ease, -webkit-box-shadow 0.2s ease;transition:border-color 0.2s ease, -webkit-box-shadow 0.2s ease;transition:border-color 0.2s ease, box-shadow 0.2s ease;transition:border-color 0.2s ease, box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;width:100%}.pds-multiselect__trigger:hover:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-hover)}.pds-multiselect__trigger:focus:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-multiselect__trigger.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid{background-color:var(--pine-color-red-050);border-color:var(--pine-color-border-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid:focus{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-multiselect__trigger-text{color:var(--pine-color-text-strong);-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__trigger-text.pds-multiselect__trigger-text--placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__trigger--disabled .pds-multiselect__trigger-text{color:var(--pine-color-text-disabled)}.pds-multiselect__icon{color:var(--pine-color-icon);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__panel{background:var(--pine-color-background-container);border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute;z-index:var(--pine-z-index-raised)}.pds-multiselect__search{-ms-flex-align:center;align-items:center;-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-multiselect__search pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__search-input{background:transparent;border:var(--pine-dimension-none);color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);min-width:var(--pine-dimension-none);outline:none}.pds-multiselect__search-input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__selected-section{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);padding:var(--pine-dimension-xs)}.pds-multiselect__selected-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.pds-multiselect__selected-item{color:var(--pine-color-text-strong);font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);overflow:hidden;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__listbox{background:transparent;border:var(--pine-dimension-none);-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;margin:var(--pine-dimension-none);overflow-y:auto;padding:var(--pine-dimension-xs)}.pds-multiselect__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-xs);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);-webkit-transition:background 0.15s;transition:background 0.15s}.pds-multiselect__option pds-checkbox{pointer-events:none;width:100%}.pds-multiselect__option:hover,.pds-multiselect__option.pds-multiselect__option--highlighted{background:var(--pine-color-background-muted)}.pds-multiselect__option:focus-visible{outline:var(--pine-dimension-none)}.pds-multiselect__empty,.pds-multiselect__loading{-ms-flex-align:center;align-items:center;color:var(--pine-color-text-muted);display:-ms-flexbox;display:flex;font:var(--pine-typography-body);-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-sm)}.pds-multiselect__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-xs)}.pds-multiselect__helper{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error{-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;font:var(--pine-typography-body-sm);gap:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error pds-icon{-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none);-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.visually-hidden{border:var(--pine-dimension-none);clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:var(--pine-dimension-none);position:absolute;white-space:nowrap;width:1px}";
|
|
11517
|
+
const pdsMultiselectCss = ":host{display:block}:host([aria-disabled=true]) .pds-multiselect__trigger{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}:host([aria-disabled=true]) .pds-multiselect__icon{color:var(--pine-color-text-disabled)}.pds-multiselect{position:relative}.pds-multiselect__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-multiselect__wrapper{position:relative}.pds-multiselect__trigger{-ms-flex-align:center;align-items:center;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body);gap:var(--pine-dimension-xs);-ms-flex-pack:justify;justify-content:space-between;letter-spacing:var(--pine-letter-spacing);min-height:var(--pine-dimension-550);padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;text-align:start;-webkit-transition:border-color 0.2s ease, -webkit-box-shadow 0.2s ease;transition:border-color 0.2s ease, -webkit-box-shadow 0.2s ease;transition:border-color 0.2s ease, box-shadow 0.2s ease;transition:border-color 0.2s ease, box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;width:100%}.pds-multiselect__trigger:hover:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-hover)}.pds-multiselect__trigger:focus:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-multiselect__trigger.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid{background-color:var(--pine-color-red-050);border-color:var(--pine-color-border-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid:focus{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-multiselect__trigger-text{color:var(--pine-color-text-strong);-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__trigger-text.pds-multiselect__trigger-text--placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__trigger--disabled .pds-multiselect__trigger-text{color:var(--pine-color-text-disabled)}.pds-multiselect__icon{color:var(--pine-color-icon);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__panel{background:var(--pine-color-background-container);border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute;z-index:var(--pine-z-index-raised)}.pds-multiselect__search{-ms-flex-align:center;align-items:center;-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-multiselect__search pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__search-input{background:transparent;border:var(--pine-dimension-none);color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);min-width:var(--pine-dimension-none);outline:none}.pds-multiselect__search-input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__selected-section{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);padding:var(--pine-dimension-xs)}.pds-multiselect__selected-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.pds-multiselect__selected-item{color:var(--pine-color-text-strong);font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);overflow:hidden;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__listbox{background:transparent;border:var(--pine-dimension-none);-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;margin:var(--pine-dimension-none);overflow-y:auto;padding:var(--pine-dimension-xs)}.pds-multiselect__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-xs);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);-webkit-transition:background 0.15s;transition:background 0.15s}.pds-multiselect__option pds-checkbox{pointer-events:none;width:100%}.pds-multiselect__option:hover,.pds-multiselect__option.pds-multiselect__option--highlighted{background:var(--pine-color-background-muted)}.pds-multiselect__option:focus-visible{outline:var(--pine-dimension-none)}.pds-multiselect__create-option{color:var(--pine-color-text-strong);width:100%}.pds-multiselect__create-option pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__empty,.pds-multiselect__loading{-ms-flex-align:center;align-items:center;color:var(--pine-color-text-muted);display:-ms-flexbox;display:flex;font:var(--pine-typography-body);-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-sm)}.pds-multiselect__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-xs)}.pds-multiselect__helper{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error{-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;font:var(--pine-typography-body-sm);gap:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error pds-icon{-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none);-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.visually-hidden{border:var(--pine-dimension-none);clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:var(--pine-dimension-none);position:absolute;white-space:nowrap;width:1px}";
|
|
11232
11518
|
|
|
11233
11519
|
/**
|
|
11234
11520
|
* @slot (default) - Static option elements for the multiselect
|
|
@@ -11241,6 +11527,7 @@ class PdsMultiselect {
|
|
|
11241
11527
|
this.pdsMultiselectChange = createEvent(this, "pdsMultiselectChange");
|
|
11242
11528
|
this.pdsMultiselectSearch = createEvent(this, "pdsMultiselectSearch");
|
|
11243
11529
|
this.pdsMultiselectLoadOptions = createEvent(this, "pdsMultiselectLoadOptions");
|
|
11530
|
+
this.pdsMultiselectCreate = createEvent(this, "pdsMultiselectCreate");
|
|
11244
11531
|
/**
|
|
11245
11532
|
* Placeholder text for the input field.
|
|
11246
11533
|
*/
|
|
@@ -11261,6 +11548,10 @@ class PdsMultiselect {
|
|
|
11261
11548
|
* Debounce delay in milliseconds for search/fetch.
|
|
11262
11549
|
*/
|
|
11263
11550
|
this.debounce = 300;
|
|
11551
|
+
/**
|
|
11552
|
+
* Timeout in milliseconds for async fetch requests.
|
|
11553
|
+
*/
|
|
11554
|
+
this.fetchTimeout = 30000;
|
|
11264
11555
|
/**
|
|
11265
11556
|
* Maximum height of the dropdown before scrolling.
|
|
11266
11557
|
*/
|
|
@@ -11293,6 +11584,7 @@ class PdsMultiselect {
|
|
|
11293
11584
|
this.selectedItems = [];
|
|
11294
11585
|
this.currentPage = 1;
|
|
11295
11586
|
this.hasMore = false;
|
|
11587
|
+
this.creating = false;
|
|
11296
11588
|
// Flag to prevent focusout from closing during open transition
|
|
11297
11589
|
this.isOpening = false;
|
|
11298
11590
|
this.handleTriggerClick = () => {
|
|
@@ -11525,6 +11817,10 @@ class PdsMultiselect {
|
|
|
11525
11817
|
window.clearTimeout(this.fetchDebounceTimer);
|
|
11526
11818
|
this.fetchDebounceTimer = undefined;
|
|
11527
11819
|
}
|
|
11820
|
+
if (this.fetchTimeoutTimer !== undefined) {
|
|
11821
|
+
window.clearTimeout(this.fetchTimeoutTimer);
|
|
11822
|
+
this.fetchTimeoutTimer = undefined;
|
|
11823
|
+
}
|
|
11528
11824
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
11529
11825
|
this.abortController = undefined;
|
|
11530
11826
|
}
|
|
@@ -11545,9 +11841,25 @@ class PdsMultiselect {
|
|
|
11545
11841
|
// Ensure value is an array (may be string from HTML attribute)
|
|
11546
11842
|
const valueArray = this.ensureValueArray();
|
|
11547
11843
|
const allOptions = this.getAllOptions();
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
|
|
11844
|
+
// Map values to options, preserving existing selectedItems for values not yet in options
|
|
11845
|
+
const newSelectedItems = [];
|
|
11846
|
+
const existingItemsMap = new Map(this.selectedItems.map(item => [String(item.id), item]));
|
|
11847
|
+
valueArray.forEach(val => {
|
|
11848
|
+
// First try to find in available options
|
|
11849
|
+
const option = allOptions.find(opt => String(opt.id) === String(val));
|
|
11850
|
+
if (option) {
|
|
11851
|
+
newSelectedItems.push(option);
|
|
11852
|
+
}
|
|
11853
|
+
else if (existingItemsMap.has(String(val))) {
|
|
11854
|
+
// If not in options but exists in current selectedItems, preserve it
|
|
11855
|
+
// This handles the case where async data hasn't loaded yet or newly created items
|
|
11856
|
+
newSelectedItems.push(existingItemsMap.get(String(val)));
|
|
11857
|
+
}
|
|
11858
|
+
// Note: We don't create placeholders for values without matching options.
|
|
11859
|
+
// This ensures selectedItems remains empty until options are actually loaded,
|
|
11860
|
+
// which matches the expected behavior for preselected values.
|
|
11861
|
+
});
|
|
11862
|
+
this.selectedItems = newSelectedItems;
|
|
11551
11863
|
}
|
|
11552
11864
|
ensureValueArray() {
|
|
11553
11865
|
// Handle JSON string values passed via HTML attribute
|
|
@@ -11574,13 +11886,22 @@ class PdsMultiselect {
|
|
|
11574
11886
|
getFilteredOptions() {
|
|
11575
11887
|
const allOptions = this.getAllOptions();
|
|
11576
11888
|
const query = this.searchQuery.toLowerCase();
|
|
11577
|
-
|
|
11889
|
+
const filtered = allOptions.filter(opt => {
|
|
11578
11890
|
// Filter by search query only - don't filter out selected items
|
|
11579
11891
|
if (query) {
|
|
11580
11892
|
return opt.text.toLowerCase().includes(query);
|
|
11581
11893
|
}
|
|
11582
11894
|
return true;
|
|
11583
11895
|
});
|
|
11896
|
+
// Add create option if enabled and no matches found
|
|
11897
|
+
if (this.createUrl && this.searchQuery.trim() && filtered.length === 0) {
|
|
11898
|
+
return [{
|
|
11899
|
+
id: '__create__',
|
|
11900
|
+
text: this.searchQuery.trim(),
|
|
11901
|
+
isCreateOption: true,
|
|
11902
|
+
}];
|
|
11903
|
+
}
|
|
11904
|
+
return filtered;
|
|
11584
11905
|
}
|
|
11585
11906
|
updateFormValue() {
|
|
11586
11907
|
var _a;
|
|
@@ -11604,33 +11925,79 @@ class PdsMultiselect {
|
|
|
11604
11925
|
}
|
|
11605
11926
|
}
|
|
11606
11927
|
}
|
|
11928
|
+
getCsrfToken() {
|
|
11929
|
+
// Use provided token if available
|
|
11930
|
+
if (this.csrfToken) {
|
|
11931
|
+
return this.csrfToken;
|
|
11932
|
+
}
|
|
11933
|
+
// Try to read from meta tag
|
|
11934
|
+
const metaTag = document.querySelector('meta[name="csrf-token"]');
|
|
11935
|
+
return (metaTag === null || metaTag === void 0 ? void 0 : metaTag.content) || null;
|
|
11936
|
+
}
|
|
11607
11937
|
async fetchOptions(query, page = 1) {
|
|
11608
11938
|
var _a;
|
|
11609
11939
|
if (!this.asyncUrl)
|
|
11610
11940
|
return;
|
|
11941
|
+
// Abort any pending request and clear existing timeout
|
|
11611
11942
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
11943
|
+
if (this.fetchTimeoutTimer !== undefined) {
|
|
11944
|
+
window.clearTimeout(this.fetchTimeoutTimer);
|
|
11945
|
+
this.fetchTimeoutTimer = undefined;
|
|
11946
|
+
}
|
|
11612
11947
|
this.abortController = new AbortController();
|
|
11613
11948
|
this.loading = true;
|
|
11949
|
+
// Set up timeout for fetch request
|
|
11950
|
+
this.fetchTimeoutTimer = window.setTimeout(() => {
|
|
11951
|
+
var _a;
|
|
11952
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
11953
|
+
this.fetchTimeoutTimer = undefined;
|
|
11954
|
+
}, this.fetchTimeout);
|
|
11614
11955
|
try {
|
|
11615
|
-
|
|
11956
|
+
// Guard against malformed asyncUrl
|
|
11957
|
+
let url;
|
|
11958
|
+
try {
|
|
11959
|
+
url = new URL(this.asyncUrl, window.location.origin);
|
|
11960
|
+
}
|
|
11961
|
+
catch (urlError) {
|
|
11962
|
+
throw new TypeError(`Invalid asyncUrl: ${this.asyncUrl}`);
|
|
11963
|
+
}
|
|
11616
11964
|
if (this.asyncMethod === 'GET') {
|
|
11617
11965
|
url.searchParams.set('search', query);
|
|
11618
11966
|
url.searchParams.set('page', String(page));
|
|
11619
11967
|
}
|
|
11620
|
-
const
|
|
11621
|
-
|
|
11622
|
-
|
|
11623
|
-
|
|
11968
|
+
const csrfToken = this.getCsrfToken();
|
|
11969
|
+
const headers = {
|
|
11970
|
+
'Content-Type': 'application/json',
|
|
11971
|
+
'Accept': 'application/json',
|
|
11972
|
+
};
|
|
11973
|
+
if (csrfToken) {
|
|
11974
|
+
headers['X-CSRF-Token'] = csrfToken;
|
|
11975
|
+
}
|
|
11976
|
+
const response = await fetch(url.toString(), Object.assign({ method: this.asyncMethod, signal: this.abortController.signal, headers }, (this.asyncMethod === 'POST' && {
|
|
11624
11977
|
body: JSON.stringify({ search: query, page }),
|
|
11625
11978
|
})));
|
|
11979
|
+
// Clear timeout on successful response
|
|
11980
|
+
if (this.fetchTimeoutTimer !== undefined) {
|
|
11981
|
+
window.clearTimeout(this.fetchTimeoutTimer);
|
|
11982
|
+
this.fetchTimeoutTimer = undefined;
|
|
11983
|
+
}
|
|
11626
11984
|
if (!response.ok)
|
|
11627
11985
|
throw new Error('Failed to fetch options');
|
|
11628
11986
|
const data = await response.json();
|
|
11629
11987
|
const formattedResults = data.results.map(item => {
|
|
11988
|
+
// If formatResult is provided, use it
|
|
11630
11989
|
if (this.formatResult) {
|
|
11631
11990
|
return this.formatResult(item);
|
|
11632
11991
|
}
|
|
11633
|
-
|
|
11992
|
+
// Defensive check: ensure item is an object before spreading
|
|
11993
|
+
if (typeof item === 'object' && item !== null) {
|
|
11994
|
+
return Object.assign({ id: item.id, text: item.text }, item);
|
|
11995
|
+
}
|
|
11996
|
+
// Handle primitives by converting to safe shape
|
|
11997
|
+
return {
|
|
11998
|
+
id: String(item),
|
|
11999
|
+
text: String(item),
|
|
12000
|
+
};
|
|
11634
12001
|
});
|
|
11635
12002
|
if (page === 1) {
|
|
11636
12003
|
this.internalOptions = formattedResults;
|
|
@@ -11642,6 +12009,11 @@ class PdsMultiselect {
|
|
|
11642
12009
|
this.currentPage = page;
|
|
11643
12010
|
}
|
|
11644
12011
|
catch (error) {
|
|
12012
|
+
// Clear timeout on error
|
|
12013
|
+
if (this.fetchTimeoutTimer !== undefined) {
|
|
12014
|
+
window.clearTimeout(this.fetchTimeoutTimer);
|
|
12015
|
+
this.fetchTimeoutTimer = undefined;
|
|
12016
|
+
}
|
|
11645
12017
|
if (error.name !== 'AbortError') {
|
|
11646
12018
|
console.error('PdsMultiselect: Failed to fetch options', error);
|
|
11647
12019
|
}
|
|
@@ -11650,6 +12022,64 @@ class PdsMultiselect {
|
|
|
11650
12022
|
this.loading = false;
|
|
11651
12023
|
}
|
|
11652
12024
|
}
|
|
12025
|
+
async createOption(query) {
|
|
12026
|
+
if (!this.createUrl || !query.trim())
|
|
12027
|
+
return;
|
|
12028
|
+
// Reentrancy guard: prevent duplicate POSTs if creation is already in-flight
|
|
12029
|
+
if (this.creating)
|
|
12030
|
+
return;
|
|
12031
|
+
this.creating = true;
|
|
12032
|
+
try {
|
|
12033
|
+
const url = new URL(this.createUrl, window.location.origin);
|
|
12034
|
+
const csrfToken = this.getCsrfToken();
|
|
12035
|
+
const headers = {
|
|
12036
|
+
'Content-Type': 'application/json',
|
|
12037
|
+
'Accept': 'application/json',
|
|
12038
|
+
};
|
|
12039
|
+
if (csrfToken) {
|
|
12040
|
+
headers['X-CSRF-Token'] = csrfToken;
|
|
12041
|
+
}
|
|
12042
|
+
const response = await fetch(url.toString(), {
|
|
12043
|
+
method: 'POST',
|
|
12044
|
+
headers,
|
|
12045
|
+
body: JSON.stringify({ text: query.trim() }),
|
|
12046
|
+
});
|
|
12047
|
+
if (!response.ok)
|
|
12048
|
+
throw new Error('Failed to create option');
|
|
12049
|
+
const data = await response.json();
|
|
12050
|
+
const newOption = Object.assign({ id: data.id, text: data.text }, data);
|
|
12051
|
+
// Add to internal options first
|
|
12052
|
+
this.internalOptions = [...this.internalOptions, newOption];
|
|
12053
|
+
// Select the new option
|
|
12054
|
+
this.value = [...this.value, String(newOption.id)];
|
|
12055
|
+
// Sync selected items to update display with new option
|
|
12056
|
+
this.syncSelectedItems();
|
|
12057
|
+
// Emit create event
|
|
12058
|
+
this.pdsMultiselectCreate.emit({
|
|
12059
|
+
query: query.trim(),
|
|
12060
|
+
newOption,
|
|
12061
|
+
});
|
|
12062
|
+
// Emit change event with synced items
|
|
12063
|
+
this.pdsMultiselectChange.emit({
|
|
12064
|
+
values: this.value,
|
|
12065
|
+
items: this.selectedItems,
|
|
12066
|
+
});
|
|
12067
|
+
// Clear search and keep dropdown open
|
|
12068
|
+
this.searchQuery = '';
|
|
12069
|
+
this.highlightedIndex = -1;
|
|
12070
|
+
// Focus back on search input
|
|
12071
|
+
requestAnimationFrame(() => {
|
|
12072
|
+
var _a;
|
|
12073
|
+
(_a = this.searchInputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
12074
|
+
});
|
|
12075
|
+
}
|
|
12076
|
+
catch (error) {
|
|
12077
|
+
console.error('PdsMultiselect: Failed to create option', error);
|
|
12078
|
+
}
|
|
12079
|
+
finally {
|
|
12080
|
+
this.creating = false;
|
|
12081
|
+
}
|
|
12082
|
+
}
|
|
11653
12083
|
openDropdown() {
|
|
11654
12084
|
if (this.disabled)
|
|
11655
12085
|
return;
|
|
@@ -11728,30 +12158,33 @@ class PdsMultiselect {
|
|
|
11728
12158
|
}
|
|
11729
12159
|
toggleOption(option) {
|
|
11730
12160
|
var _a;
|
|
12161
|
+
// Handle create option
|
|
12162
|
+
if (option.isCreateOption) {
|
|
12163
|
+
// Prevent multiple create calls while one is in-flight
|
|
12164
|
+
if (!this.creating) {
|
|
12165
|
+
this.createOption(this.searchQuery);
|
|
12166
|
+
}
|
|
12167
|
+
return;
|
|
12168
|
+
}
|
|
11731
12169
|
const isSelected = this.value.includes(String(option.id));
|
|
11732
12170
|
if (isSelected) {
|
|
11733
12171
|
// Remove from selection
|
|
11734
|
-
|
|
11735
|
-
this.value = newValue;
|
|
11736
|
-
const newSelectedItems = this.selectedItems.filter(item => String(item.id) !== String(option.id));
|
|
11737
|
-
this.pdsMultiselectChange.emit({
|
|
11738
|
-
values: newValue,
|
|
11739
|
-
items: newSelectedItems,
|
|
11740
|
-
});
|
|
12172
|
+
this.value = this.value.filter(v => v !== String(option.id));
|
|
11741
12173
|
}
|
|
11742
12174
|
else {
|
|
11743
12175
|
// Add to selection
|
|
11744
12176
|
if (this.maxSelections && this.value.length >= this.maxSelections) {
|
|
11745
12177
|
return;
|
|
11746
12178
|
}
|
|
11747
|
-
|
|
11748
|
-
this.value = newValue;
|
|
11749
|
-
const newSelectedItems = [...this.selectedItems, option];
|
|
11750
|
-
this.pdsMultiselectChange.emit({
|
|
11751
|
-
values: newValue,
|
|
11752
|
-
items: newSelectedItems,
|
|
11753
|
-
});
|
|
12179
|
+
this.value = [...this.value, String(option.id)];
|
|
11754
12180
|
}
|
|
12181
|
+
// Sync selected items to ensure no duplicates and accurate state
|
|
12182
|
+
this.syncSelectedItems();
|
|
12183
|
+
// Emit change event with synced items
|
|
12184
|
+
this.pdsMultiselectChange.emit({
|
|
12185
|
+
values: this.value,
|
|
12186
|
+
items: this.selectedItems,
|
|
12187
|
+
});
|
|
11755
12188
|
// Keep focus on search input, don't close dropdown
|
|
11756
12189
|
(_a = this.searchInputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
11757
12190
|
}
|
|
@@ -11773,13 +12206,17 @@ class PdsMultiselect {
|
|
|
11773
12206
|
const hasSlottedLoading = !!this.el.querySelector('[slot="loading"]');
|
|
11774
12207
|
return (hAsync("div", { class: "pds-multiselect__panel", ref: el => (this.panelEl = el), style: { minWidth: this.minWidth } }, hAsync("div", { class: "pds-multiselect__search" }, hAsync("pds-icon", { name: "search", size: "small" }), hAsync("input", { ref: el => (this.searchInputEl = el), type: "text", class: "pds-multiselect__search-input", placeholder: "Find...", value: this.searchQuery, "aria-label": "Search options", "aria-controls": `${this.componentId}-listbox`, "aria-activedescendant": this.highlightedIndex >= 0 ? `${this.componentId}-option-${this.highlightedIndex}` : undefined, role: "combobox", "aria-haspopup": "listbox", "aria-expanded": "true", "aria-autocomplete": "list", autocomplete: "off", onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchInputKeyDown })), this.renderSelectedItemsList(), hAsync("ul", { class: "pds-multiselect__listbox", role: "listbox", "aria-multiselectable": "true", "aria-label": this.label || 'Options', id: `${this.componentId}-listbox`, ref: el => (this.listboxEl = el), style: { maxHeight: this.maxHeight }, onScroll: this.handleScroll }, this.loading && (hAsync("li", { class: "pds-multiselect__loading", role: "presentation" }, hasSlottedLoading ? (hAsync("slot", { name: "loading" })) : (hAsync("pds-loader", { size: "small" })))), !this.loading && filteredOptions.length === 0 && (hAsync("li", { class: "pds-multiselect__empty", role: "presentation" }, hasSlottedEmpty ? (hAsync("slot", { name: "empty" })) : (hAsync("span", null, "No options found")))), filteredOptions.map((option, index) => {
|
|
11775
12208
|
const isSelected = valueArray.includes(String(option.id));
|
|
11776
|
-
const
|
|
12209
|
+
const isCreateOption = option.isCreateOption;
|
|
12210
|
+
const isHighlighted = index === this.highlightedIndex && !isCreateOption;
|
|
11777
12211
|
const optionId = `${this.componentId}-option-${index}`;
|
|
12212
|
+
const isCreateDisabled = isCreateOption && this.creating;
|
|
11778
12213
|
return (hAsync("li", { key: String(option.id), id: optionId, class: {
|
|
11779
12214
|
'pds-multiselect__option': true,
|
|
11780
12215
|
'pds-multiselect__option--highlighted': isHighlighted,
|
|
11781
12216
|
'pds-multiselect__option--selected': isSelected,
|
|
11782
|
-
|
|
12217
|
+
'pds-multiselect__option--create': isCreateOption,
|
|
12218
|
+
'pds-multiselect__option--disabled': isCreateDisabled,
|
|
12219
|
+
}, role: "option", "aria-selected": isSelected ? 'true' : 'false', "aria-disabled": isCreateDisabled ? 'true' : undefined, "aria-label": isCreateOption ? `Create new tag: ${option.text}` : undefined, "data-index": index, onMouseDown: this.handleOptionMouseDown(option), onMouseEnter: this.handleOptionMouseEnter(index) }, isCreateOption ? (hAsync("pds-box", { class: "pds-multiselect__create-option", "align-items": "center", gap: "xs" }, hAsync("pds-icon", { name: "add", size: "small" }), hAsync("pds-text", null, "Add \"", option.text, "\""))) : (hAsync("pds-checkbox", { componentId: `${this.componentId}-checkbox-${index}`, checked: isSelected, label: option.text, style: { pointerEvents: 'none' } }))));
|
|
11783
12220
|
}), this.hasMore && !this.loading && (hAsync("li", { class: "pds-multiselect__load-more", role: "presentation" }, hAsync("pds-loader", { size: "small" }))))));
|
|
11784
12221
|
}
|
|
11785
12222
|
getTriggerText() {
|
|
@@ -11791,19 +12228,19 @@ class PdsMultiselect {
|
|
|
11791
12228
|
}
|
|
11792
12229
|
render() {
|
|
11793
12230
|
const hasSelections = this.selectedItems.length > 0;
|
|
11794
|
-
return (hAsync(Host, { key: '
|
|
12231
|
+
return (hAsync(Host, { key: '5eabf872bf4e4f109106c0dd7f9fc8ea48e8c0c0', "aria-disabled": this.disabled ? 'true' : null }, hAsync("div", { key: '2623280ddbb4e116da4dbf0fe9123b5f06f0da0c', class: "pds-multiselect" }, this.label && (hAsync("label", { key: 'ec644a7af54ca4dcdece849c6df692fae268b445', htmlFor: this.componentId, class: {
|
|
11795
12232
|
'pds-multiselect__label': true,
|
|
11796
12233
|
'visually-hidden': this.hideLabel,
|
|
11797
|
-
} }, this.label)), hAsync("div", { key: '
|
|
12234
|
+
} }, this.label)), hAsync("div", { key: 'ae08d5be617ee801a730fd9289146e82f2df8258', class: "pds-multiselect__wrapper", ref: el => (this.containerEl = el), onFocusout: this.handleContainerFocusOut, style: { width: this.triggerWidth } }, hAsync("button", { key: 'c4639d573de4bb7963f848284057afcf9cc65cb9', ref: el => (this.triggerEl = el), type: "button", class: {
|
|
11798
12235
|
'pds-multiselect__trigger': true,
|
|
11799
12236
|
'pds-multiselect__trigger--open': this.isOpen,
|
|
11800
12237
|
'pds-multiselect__trigger--disabled': this.disabled,
|
|
11801
12238
|
'pds-multiselect__trigger--invalid': this.invalid || !!this.errorMessage,
|
|
11802
12239
|
'pds-multiselect__trigger--has-value': hasSelections,
|
|
11803
|
-
}, id: this.componentId, disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-describedby": assignDescription(this.componentId, this.invalid || !!this.errorMessage, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid || !!this.errorMessage ? 'true' : undefined, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hAsync("span", { key: '
|
|
12240
|
+
}, id: this.componentId, disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-describedby": assignDescription(this.componentId, this.invalid || !!this.errorMessage, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid || !!this.errorMessage ? 'true' : undefined, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hAsync("span", { key: 'b16da29ea9a98d6672813d9c142ef63135b12dca', class: {
|
|
11804
12241
|
'pds-multiselect__trigger-text': true,
|
|
11805
12242
|
'pds-multiselect__trigger-text--placeholder': !hasSelections,
|
|
11806
|
-
} }, this.getTriggerText()), hAsync("pds-icon", { key: '
|
|
12243
|
+
} }, this.getTriggerText()), hAsync("pds-icon", { key: '4e86739529355331c9fa6b95b63f223d5a315ad5', class: "pds-multiselect__icon", icon: enlarge })), this.renderDropdown()), this.helperMessage && !(this.errorMessage && this.errorMessage.length > 0) && (hAsync("p", { key: '34cd42ddb1725546ce367699ef520e37d24cae25', class: "pds-multiselect__helper", id: messageId(this.componentId, 'helper') }, this.helperMessage)), this.errorMessage && (hAsync("p", { key: '0eada43d1bcb44ea7b95927dd3f799aff6cc6b3a', class: "pds-multiselect__error", id: messageId(this.componentId, 'error') }, hAsync("pds-icon", { key: '546dcc24794d274d73b3de867b79123b6f0069fc', icon: danger, size: "small" }), this.errorMessage)), hAsync("div", { key: '3921e646c9e3638077c016e7cb28a19adaa302f0', style: { display: 'none' } }, hAsync("slot", { key: '3923872eaae0a59da8c4a5b9801abf41ae9a3c3d' })))));
|
|
11807
12244
|
}
|
|
11808
12245
|
static get formAssociated() { return true; }
|
|
11809
12246
|
get el() { return getElement(this); }
|
|
@@ -11827,6 +12264,7 @@ class PdsMultiselect {
|
|
|
11827
12264
|
"asyncUrl": [1, "async-url"],
|
|
11828
12265
|
"asyncMethod": [1, "async-method"],
|
|
11829
12266
|
"debounce": [2],
|
|
12267
|
+
"fetchTimeout": [2, "fetch-timeout"],
|
|
11830
12268
|
"maxSelections": [2, "max-selections"],
|
|
11831
12269
|
"maxHeight": [1, "max-height"],
|
|
11832
12270
|
"triggerWidth": [1, "trigger-width"],
|
|
@@ -11840,6 +12278,8 @@ class PdsMultiselect {
|
|
|
11840
12278
|
"loading": [1028],
|
|
11841
12279
|
"options": [16],
|
|
11842
12280
|
"formatResult": [16],
|
|
12281
|
+
"createUrl": [1, "create-url"],
|
|
12282
|
+
"csrfToken": [1, "csrf-token"],
|
|
11843
12283
|
"isOpen": [32],
|
|
11844
12284
|
"searchQuery": [32],
|
|
11845
12285
|
"highlightedIndex": [32],
|
|
@@ -11847,6 +12287,7 @@ class PdsMultiselect {
|
|
|
11847
12287
|
"selectedItems": [32],
|
|
11848
12288
|
"currentPage": [32],
|
|
11849
12289
|
"hasMore": [32],
|
|
12290
|
+
"creating": [32],
|
|
11850
12291
|
"setFocus": [64]
|
|
11851
12292
|
},
|
|
11852
12293
|
"$listeners$": [[8, "keydown", "handleWindowKeyDown"]],
|
|
@@ -12415,7 +12856,7 @@ class PdsPopover {
|
|
|
12415
12856
|
}, 16); // ~1 frame at 60fps
|
|
12416
12857
|
}
|
|
12417
12858
|
render() {
|
|
12418
|
-
return (hAsync(Host, { key: '
|
|
12859
|
+
return (hAsync(Host, { key: '835196832cb0dcec61f0bc6e5f4df08038335d5a', id: this.componentId }, hAsync("span", { key: 'e4aadaa17ce565e00f5e038a92aae8957b22be64', class: "pds-popover__trigger-wrapper" }, hAsync("slot", { key: '97fe58bed551bed9f3159faa430ef54fd09d2412', name: "trigger", onSlotchange: this.handleTriggerSlotChange })), hAsync("div", { key: '8d1330a58ff77182100fb40afa78ee89ccd3146f', class: "pds-popover__content-slot-wrapper" }, hAsync("slot", { key: '5d1136682ba7bff4a4c904fb8310443e9feb9e5b', onSlotchange: this.handleContentSlotChange }))));
|
|
12419
12860
|
}
|
|
12420
12861
|
get el() { return getElement(this); }
|
|
12421
12862
|
static get style() { return pdsPopoverCss; }
|
|
@@ -12465,7 +12906,7 @@ class PdsProgress {
|
|
|
12465
12906
|
this.showPercent = false;
|
|
12466
12907
|
}
|
|
12467
12908
|
render() {
|
|
12468
|
-
return (hAsync(Host, { key: '
|
|
12909
|
+
return (hAsync(Host, { key: '23b8b17a11e6537d1f73cd435c66e779267c6909', class: this.animated ? { 'is-animated': this.animated } : '' }, hAsync("div", { key: '6bf201015c284f26b2bb794237aef8d4e4d532ee', class: "pds-progress" }, hAsync("label", { key: '7e144a90c1fde70e58095bda2e23b250529a8114', class: "pds-progress__label", htmlFor: this.componentId }, this.label), hAsync("progress", { key: 'ebf00485c3c7523e184fcc022e2bcc325a13458f', id: this.componentId, max: "100", style: this.fillColor ? { '--color-progress-fill': this.fillColor } : {}, value: this.percent })), this.showPercent && hAsync("div", { key: '6f37bd88ccb9228b0d0ca4d934a2d3cff0026533', class: "pds-progress__percentage" }, this.percent, "%")));
|
|
12469
12910
|
}
|
|
12470
12911
|
static get style() { return pdsProgressCss; }
|
|
12471
12912
|
static get cmpMeta() { return {
|
|
@@ -12499,7 +12940,7 @@ class PdsProperty {
|
|
|
12499
12940
|
this.icon = 'star';
|
|
12500
12941
|
}
|
|
12501
12942
|
render() {
|
|
12502
|
-
return (hAsync(Host, { key: '
|
|
12943
|
+
return (hAsync(Host, { key: '947e0adfc46ab267b4a5f3e3da5dedcd8ab64d3e', id: this.componentId }, hAsync("pds-box", { key: 'bc6fbd4eaa162a7d9ff6348d74bf15f71e776db6', "align-items": "center", gap: "xs" }, hAsync("pds-icon", { key: '5d703e9afd94761aae842c82c7b5e9223b63b894', icon: this.icon, size: "var(--pine-dimension-sm)", "aria-hidden": "true" }), hAsync("slot", { key: 'e5e02fb21c783f7e4027591e99cd966981babc04' }))));
|
|
12503
12944
|
}
|
|
12504
12945
|
static get style() { return pdsPropertyCss; }
|
|
12505
12946
|
static get cmpMeta() { return {
|
|
@@ -12600,11 +13041,11 @@ class PdsRadio {
|
|
|
12600
13041
|
}
|
|
12601
13042
|
render() {
|
|
12602
13043
|
const renderLabelAndMessages = () => [
|
|
12603
|
-
hAsync("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, hAsync("input", { key: '
|
|
13044
|
+
hAsync("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, hAsync("input", { key: '75aca490be2db050f66ddd9cb45ce122bea4db53', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, type: "radio", id: this.componentId, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleRadioChange, class: this.hasImage() ? 'visually-hidden' : '' }), hAsync("span", { key: '1bbc7398d3be35e301526b0f842274a3f1db4457', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)),
|
|
12604
13045
|
this.helperMessage && (hAsync("div", { key: `${this.componentId}-helper`, class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage)),
|
|
12605
|
-
this.errorMessage && (hAsync("div", { key: `${this.componentId}-error`, class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: '
|
|
13046
|
+
this.errorMessage && (hAsync("div", { key: `${this.componentId}-error`, class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: 'e1a1228fa52e68623098f09493d93aa03d2e65c4', icon: danger, size: "small" }), this.errorMessage))
|
|
12606
13047
|
];
|
|
12607
|
-
return (hAsync(Host, { key: '
|
|
13048
|
+
return (hAsync(Host, { key: '60fabeef5778fd30e46cfd23d05684e1743bc57f', class: this.classNames() }, this.hasImage() && (hAsync("div", { key: '9ba3e60182a68cc8e996623cf46e17001ff451f6', class: "pds-radio__image-container", part: "image-container" }, hAsync("slot", { key: 'bf8927129eb68ee7ed07a1f8f8727f013254e133', name: "image", onSlotchange: () => (this._hasImage = this.hasImageSlot()) }))), this.hasImage() ? (hAsync("div", { class: "pds-radio__content-wrapper" }, renderLabelAndMessages())) : (renderLabelAndMessages())));
|
|
12608
13049
|
}
|
|
12609
13050
|
get el() { return getElement(this); }
|
|
12610
13051
|
static get style() { return labelCss$3 + pdsRadioCss; }
|
|
@@ -12779,13 +13220,13 @@ class PdsRadioGroup {
|
|
|
12779
13220
|
render() {
|
|
12780
13221
|
const gapValue = this.getGapValue();
|
|
12781
13222
|
const ariaDescribedBy = this.getAriaDescribedBy();
|
|
12782
|
-
return (hAsync(Host, { key: '
|
|
13223
|
+
return (hAsync(Host, { key: '53949e8e878887189482a13e0402402b8ee79c46', class: this.classNames(), id: this._groupId, role: "group", "aria-describedby": ariaDescribedBy, style: {
|
|
12783
13224
|
'--pds-radio-group-gap': gapValue,
|
|
12784
|
-
} }, this.groupLabel && (hAsync("div", { key: '
|
|
13225
|
+
} }, this.groupLabel && (hAsync("div", { key: '9aa547ff0b60d1eb78ab6806c552391c119c6511', class: "pds-radio-group__label" }, this.groupLabel)), hAsync("div", { key: '5bad4f6d4c685eca8a97b574511f21b93bdf4821', class: {
|
|
12785
13226
|
'pds-radio-group__radios': true,
|
|
12786
13227
|
'pds-radio-group__radios--row': this.direction === 'row',
|
|
12787
13228
|
'pds-radio-group__radios--column': this.direction === 'column',
|
|
12788
|
-
} }, hAsync("slot", { key: '
|
|
13229
|
+
} }, hAsync("slot", { key: 'ffd76f30b308f124e1df925b2fe354ffb80f59bc', onSlotchange: () => this.updateChildRadios() })), this.helperMessage && (hAsync("div", { key: 'ea8995384b1e1c1e98d01d704bd969a97bfd2b2a', class: "pds-radio-group__message", id: messageId(this._groupId, 'helper') }, this.helperMessage)), this.errorMessage && (hAsync("div", { key: '30726bc368c7ad2820ae4cb43faf0a45e94a51e8', class: "pds-radio-group__message pds-radio-group__message--error", id: messageId(this._groupId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: 'acc00b6e36ead10cc5cc01033ad0f619bd75f5da', icon: danger, size: "small" }), this.errorMessage))));
|
|
12789
13230
|
}
|
|
12790
13231
|
get el() { return getElement(this); }
|
|
12791
13232
|
static get watchers() { return {
|
|
@@ -12875,7 +13316,7 @@ class PdsRow {
|
|
|
12875
13316
|
})), (this.minHeight && {
|
|
12876
13317
|
'min-height': this.minHeight,
|
|
12877
13318
|
}));
|
|
12878
|
-
return hAsync(Host, { key: '
|
|
13319
|
+
return hAsync(Host, { key: '7d99184153a86e5d7d2c90fce98e05e9c4a36b81', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
|
|
12879
13320
|
}
|
|
12880
13321
|
static get style() { return pdsRowCss; }
|
|
12881
13322
|
static get cmpMeta() { return {
|
|
@@ -13128,7 +13569,7 @@ class PdsSelect {
|
|
|
13128
13569
|
}
|
|
13129
13570
|
render() {
|
|
13130
13571
|
const hasAction = this.el.querySelector('[slot="action"]') !== null;
|
|
13131
|
-
return (hAsync(Host, { key: '
|
|
13572
|
+
return (hAsync(Host, { key: 'd36bddf20910ae21ba2209bbf7e3f13b1ce9c3bf', "aria-disabled": this.disabled ? 'true' : null, class: this.classNames(), "has-action": hasAction && !this.hideLabel ? 'true' : null }, hAsync("div", { key: '72fe6ee352834fbd6e8f5f9d9e96b1be232f2988', class: "pds-select" }, !this.hideLabel && (hAsync("div", { key: 'c2894f7ec00402425f74f1145d449da13d870161', class: "pds-select__label-wrapper" }, hAsync("label", { key: '4f6277c3f7b40f3d52995231cb49824e58ebae1b', htmlFor: this.componentId }, hAsync("span", { key: 'f1b0cf90091843c1a994699263905f811888d4bd', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), hasAction && this.renderAction())), hAsync("select", { key: '727c1644e8ea5afc194e33e29e9730d6b08c3784', "aria-label": this.hideLabel ? this.label : undefined, autocomplete: this.autocomplete || undefined, class: "pds-select__field", disabled: this.disabled, id: this.componentId, multiple: this.multiple, name: this.name, onBlur: this.onBlur, onChange: this.onSelectUpdate, onFocus: this.onFocus, onKeyDown: this.onKeyDown, part: "select", required: this.required, ref: (el) => (this.selectEl = el) }), hAsync("div", { key: 'd7c0c3f3b765b13c6dc34a9c5c13bbcfd081a274', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, hAsync("slot", { key: '2305afcacb082c0d5faca8b77295919f8d9c9e0b', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && hAsync("pds-icon", { key: '4a1d6ced0ffc14ae17763d116a85324e5a6c7ce5', class: "pds-select__select-icon", icon: enlarge }))));
|
|
13132
13573
|
}
|
|
13133
13574
|
static get formAssociated() { return true; }
|
|
13134
13575
|
get el() { return getElement(this); }
|
|
@@ -15872,7 +16313,7 @@ class PdsSortable {
|
|
|
15872
16313
|
Sortable.create(this.el, sortableOptions);
|
|
15873
16314
|
}
|
|
15874
16315
|
render() {
|
|
15875
|
-
return (hAsync(Host, { key: '
|
|
16316
|
+
return (hAsync(Host, { key: '98083e17bb18c5adde8b4c0c387daa28ca2bda91', class: this.classNames(), id: this.componentId }, hAsync("slot", { key: '4ffcd0844153824c3509e42f5636c5851dc7fcbe' })));
|
|
15876
16317
|
}
|
|
15877
16318
|
get el() { return getElement(this); }
|
|
15878
16319
|
static get style() { return pdsSortableCss; }
|
|
@@ -15919,7 +16360,7 @@ class PdsSortableItem {
|
|
|
15919
16360
|
}
|
|
15920
16361
|
}
|
|
15921
16362
|
render() {
|
|
15922
|
-
return (hAsync(Host, { key: '
|
|
16363
|
+
return (hAsync(Host, { key: '631a0c1150226256cdb47d1a7bc6635144bb56d0', class: "pds-sortable-item", id: this.componentId }, this.showHandle && (hAsync("div", { key: 'bdb6ff779a5d750b75d404521bc91cad02176ea8', class: "pds-sortable-item__handle" }, hAsync("pds-icon", { key: '144f4b6fe33a3a3a864ac48041fc93935fbf99c3', icon: handle }))), hAsync("slot", { key: 'cdddce9c5fa3fde34481c41c46c5f6504e33a358' }), this.enableActions && (hAsync("div", { key: '527e1d22f20223a850dbd956dea4db93878fd9f9', class: "pds-sortable-item__actions" }, hAsync("slot", { key: '85ea35dbfdf0393721471dd229e80e9e57f58230', name: "sortable-item-actions" })))));
|
|
15923
16364
|
}
|
|
15924
16365
|
get el() { return getElement(this); }
|
|
15925
16366
|
static get style() { return pdsSortableItemCss; }
|
|
@@ -16025,9 +16466,9 @@ class PdsSwitch {
|
|
|
16025
16466
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
16026
16467
|
}
|
|
16027
16468
|
render() {
|
|
16028
|
-
return (hAsync(Host, { key: '
|
|
16029
|
-
hAsync("div", { key: '
|
|
16030
|
-
hAsync("div", { key: '
|
|
16469
|
+
return (hAsync(Host, { key: 'e26422622075f925f0df3dbc2f5ea8223aed9902', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, hAsync("label", { key: 'b63cdac80d3cd55bc4845979f15b382c92883cf5', htmlFor: this.componentId }, hAsync("input", Object.assign({ key: '910a7f6cd2093a6062c57c63600bb1721c147c75', "aria-describedby": assignDescription(this.componentId, this.invalid, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, checked: this.checked, class: "pds-switch__input", disabled: this.disabled, id: this.componentId, name: this.name ? this.name : this.componentId, onChange: this.onSwitchUpdate, required: this.required, type: "checkbox", value: this.value }, this.inheritedAttributes)), hAsync("span", { key: '45661afcaba7852a6ddf6ebbf4606502bc8b72e2', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), this.helperMessage &&
|
|
16470
|
+
hAsync("div", { key: 'be3a6fbf3938b7846ca3a9e6eef54d6ee25391fa', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
16471
|
+
hAsync("div", { key: 'a5944169798ae8531f9e6414deac2c3631339b0a', class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: '5b864b6ac441c9bd71dc22dbc9722c87c1b781e6', icon: danger, size: "small" }), this.errorMessage)));
|
|
16031
16472
|
}
|
|
16032
16473
|
static get formAssociated() { return true; }
|
|
16033
16474
|
get el() { return getElement(this); }
|
|
@@ -16088,9 +16529,9 @@ class PdsTab {
|
|
|
16088
16529
|
return classes.filter(Boolean).join(' ');
|
|
16089
16530
|
}
|
|
16090
16531
|
render() {
|
|
16091
|
-
const availabilityTabEdgeInlineStart = (hAsync("span", { key: '
|
|
16092
|
-
const availabilityTabEdgeInlineEnd = (hAsync("span", { key: '
|
|
16093
|
-
return (hAsync(Host, { key: '
|
|
16532
|
+
const availabilityTabEdgeInlineStart = (hAsync("span", { key: '934d84846bd84471047f9ab7503e5bb151426cbc', class: "pds-tab-edge", role: "presentation" }));
|
|
16533
|
+
const availabilityTabEdgeInlineEnd = (hAsync("span", { key: 'e35b9da7b312ed95dab7bf803c40a22b3485ee05', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
|
|
16534
|
+
return (hAsync(Host, { key: '310188521230d3e16cff23b857769c4b5d04fd8d', variant: this.variant, slot: "tabs", index: this.index }, hAsync("button", { key: '9df38c2aa1fa29487fdce62ce7dc5f67df6bcde1', role: "tab", id: this.parentComponentId + "__" + this.name, "aria-controls": this.parentComponentId + "__" + this.name + "-panel", tabindex: this.disabled ? "-1" : (this.selected ? "0" : "-1"), "aria-selected": this.selected ? "true" : "false", "aria-disabled": this.disabled ? "true" : null, disabled: this.disabled, class: this.classNames(), onClick: this.onTabClick.bind(this, this.index, this.parentComponentId) }, this.variant === "availability" && availabilityTabEdgeInlineStart, this.variant === "availability" && availabilityTabEdgeInlineEnd, hAsync("div", { key: '4936599dd547f236880ea9a0ccabc4b50836d1d5', class: "pds-tab__content" }, hAsync("slot", { key: '567388faf912bb307676cea9a4626ce9669087dd' })))));
|
|
16094
16535
|
}
|
|
16095
16536
|
get el() { return getElement(this); }
|
|
16096
16537
|
static get style() { return pdsTabCss; }
|
|
@@ -16378,7 +16819,7 @@ class PdsTableBody {
|
|
|
16378
16819
|
registerInstance(this, hostRef);
|
|
16379
16820
|
}
|
|
16380
16821
|
render() {
|
|
16381
|
-
return (hAsync(Host, { key: '
|
|
16822
|
+
return (hAsync(Host, { key: '457fc5406a1fe67055038398e03bfad97a393747', role: "rowgroup", part: "body" }, hAsync("slot", { key: '5950bced36f7ba590f34173149cf8663ba76103b' })));
|
|
16382
16823
|
}
|
|
16383
16824
|
static get style() { return pdsTableBodyCss; }
|
|
16384
16825
|
static get cmpMeta() { return {
|
|
@@ -16391,7 +16832,7 @@ class PdsTableBody {
|
|
|
16391
16832
|
}; }
|
|
16392
16833
|
}
|
|
16393
16834
|
|
|
16394
|
-
const pdsTableCellCss = ":host{--box-shadow-fixed:3px 3px 6px -2px rgba(0, 0, 0, 0.2);color:var(--pine-color-text);display:table-cell;font-family:var(--pine-font-family-body);font-size:var(--pine-font-size);font-weight:var(--pine-font-weight-regular);inset-inline-start:var(--pine-dimension-none);letter-spacing:var(--pine-letter-spacing);line-height:var(--pine-line-height-body);padding:var(--pine-dimension-sm);vertical-align:
|
|
16835
|
+
const pdsTableCellCss = ":host{--box-shadow-fixed:3px 3px 6px -2px rgba(0, 0, 0, 0.2);color:var(--pine-color-text);display:table-cell;font-family:var(--pine-font-family-body);font-size:var(--pine-font-size);font-weight:var(--pine-font-weight-regular);inset-inline-start:var(--pine-dimension-none);letter-spacing:var(--pine-letter-spacing);line-height:var(--pine-line-height-body);padding:var(--pine-dimension-sm);vertical-align:middle}:host(.is-compact){padding-block:var(--pine-dimension-2xs)}:host(.is-fixed){background:var(--pine-color-background-container);left:0;position:-webkit-sticky;position:sticky;z-index:var(--pine-z-index-raised)}:host(.has-scrolled.is-fixed){-webkit-box-shadow:var(--box-shadow-fixed);box-shadow:var(--box-shadow-fixed)}:host(.is-truncated){max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.has-checkbox){vertical-align:middle;width:16px}:host(.pds-table-cell--align-start){text-align:start}:host(.pds-table-cell--align-center){text-align:center}:host(.pds-table-cell--align-end){text-align:end}:host(.pds-table-cell--align-justify){text-align:justify}";
|
|
16395
16836
|
|
|
16396
16837
|
class PdsTableCell {
|
|
16397
16838
|
constructor(hostRef) {
|
|
@@ -16489,11 +16930,11 @@ class PdsTableCell {
|
|
|
16489
16930
|
return classNames.join(' ');
|
|
16490
16931
|
}
|
|
16491
16932
|
render() {
|
|
16492
|
-
return (hAsync(Host, { key: '
|
|
16933
|
+
return (hAsync(Host, { key: 'f57b6f8173976a6ad0cc9eb5bf655ba930c45280', class: this.classNames(), role: "gridcell", part: "cell", style: this.tableRef &&
|
|
16493
16934
|
this.tableRef.fixedColumn &&
|
|
16494
16935
|
this.tableRef.selectable
|
|
16495
16936
|
? { '--fixed-cell-position': '40px' }
|
|
16496
|
-
: {} }, hAsync("slot", { key: '
|
|
16937
|
+
: {} }, hAsync("slot", { key: '0cc35b066fdb46eed1516d5b6eb86b77f0d4d2b5' })));
|
|
16497
16938
|
}
|
|
16498
16939
|
get hostElement() { return getElement(this); }
|
|
16499
16940
|
static get style() { return pdsTableCellCss; }
|
|
@@ -16565,7 +17006,7 @@ class PdsTableHead {
|
|
|
16565
17006
|
}
|
|
16566
17007
|
}
|
|
16567
17008
|
render() {
|
|
16568
|
-
return (hAsync(Host, { key: '
|
|
17009
|
+
return (hAsync(Host, { key: 'd5d5906bdb23794b911ecd5904a4cc58aa5380d6', role: "row", part: "head" }, this.tableRef && this.tableRef.selectable && (hAsync("pds-table-head-cell", { key: '85df57fb4371e4fba855e16ce62c8329b49e08cf', part: this.tableRef.selectable ? 'checkbox-cell' : '' }, hAsync("pds-checkbox", { key: '92e95501de3644d068fb015b669329db14a4dd9b', componentId: this.generateUniqueId(), indeterminate: this.indeterminate, onInput: this.handleInput, label: "Select All Rows", hideLabel: true, checked: this.isSelected, part: "select-all-checkbox" }))), hAsync("slot", { key: 'b51c670f2e59fb07d4b97ca201a0d28d5c2c9570' })));
|
|
16569
17010
|
}
|
|
16570
17011
|
get hostElement() { return getElement(this); }
|
|
16571
17012
|
static get style() { return pdsTableHeadCss; }
|
|
@@ -16786,11 +17227,11 @@ class PdsTableHeadCell {
|
|
|
16786
17227
|
return classNames.join(' ');
|
|
16787
17228
|
}
|
|
16788
17229
|
render() {
|
|
16789
|
-
return (hAsync(Host, { key: '
|
|
17230
|
+
return (hAsync(Host, { key: 'a0196e242282574b969375a4767950ffd7a1e5b8', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, part: "head-cell", style: this.tableRef &&
|
|
16790
17231
|
this.tableRef.fixedColumn &&
|
|
16791
17232
|
this.tableRef.selectable
|
|
16792
17233
|
? { '--fixed-cell-position': '40px' }
|
|
16793
|
-
: {} }, hAsync("slot", { key: '
|
|
17234
|
+
: {} }, hAsync("slot", { key: '90f6d190ed912276fb8ff5607a80b592d1884d71' }), this.sortable && this.isActive && (hAsync("pds-icon", { key: '128bd50d5163ea1690a66a4bef227480a0076f39', icon: this.sortingDirection === 'asc' ? upSmall : downSmall, part: "sort-icon" }))));
|
|
16794
17235
|
}
|
|
16795
17236
|
get hostElement() { return getElement(this); }
|
|
16796
17237
|
static get style() { return pdsTableHeadCellCss; }
|
|
@@ -16815,7 +17256,7 @@ class PdsTableHeadCell {
|
|
|
16815
17256
|
}; }
|
|
16816
17257
|
}
|
|
16817
17258
|
|
|
16818
|
-
const pdsTableRowCss = ":host{--color-background-interactive:var(--pine-color-
|
|
17259
|
+
const pdsTableRowCss = ":host{--color-background-interactive:var(--pine-color-background-subtle);border-color:inherit;display:table-row;vertical-align:inherit}:host::part(checkbox-cell){background-color:var(--pine-color-background-container);inset-inline-start:var(--pine-dimension-none);position:-webkit-sticky;position:sticky;z-index:var(--pine-z-index-raised)}:host(:hover),:host(:hover)::part(checkbox-cell),:host(:hover) ::slotted(pds-table-cell),:host(.is-selected),:host(.is-selected)::part(checkbox-cell),:host(.is-selected) ::slotted(pds-table-cell){background:var(--color-background-interactive)}:host(.has-divider) ::slotted(pds-table-cell),:host(.has-divider) pds-table-cell{-webkit-border-after:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-end:var(--pine-border-width-thin) solid var(--pine-color-border-subtle)}:host(.has-divider.is-last-row) ::slotted(pds-table-cell),:host(.has-divider.is-last-row) pds-table-cell{-webkit-border-after:0;border-block-end:0}";
|
|
16819
17260
|
|
|
16820
17261
|
class PdsTableRow {
|
|
16821
17262
|
constructor(hostRef) {
|
|
@@ -16956,7 +17397,7 @@ class PdsTableRow {
|
|
|
16956
17397
|
}
|
|
16957
17398
|
}
|
|
16958
17399
|
render() {
|
|
16959
|
-
return (hAsync(Host, { key: '
|
|
17400
|
+
return (hAsync(Host, { key: 'ad282466c93a2f9bc15dd466bdc4c6ac4e408042', class: this.classNames(), role: "row", part: "row" }, this.tableRef && this.tableRef.selectable && (hAsync("pds-table-cell", { key: '19d88e362f07c3ce546356c1abdf7027e6701b3a', part: this.tableRef.fixedColumn ? 'checkbox-cell' : 'checkbox-cell', class: this.tableRef.selectable ? 'has-checkbox' : '' }, hAsync("pds-checkbox", { key: 'e65963f7e2e6ac78f911451dd09a3f21e38ead45', componentId: this.generateUniqueId(), onClick: this.handleClick, indeterminate: this.indeterminate, label: "Select Row", hideLabel: true, checked: this.isSelected, part: "row-checkbox" }))), hAsync("slot", { key: 'c17d0098092adbc45d84b3e497b6023e344eb260' })));
|
|
16960
17401
|
}
|
|
16961
17402
|
get hostElement() { return getElement(this); }
|
|
16962
17403
|
static get style() { return pdsTableRowCss; }
|
|
@@ -16987,7 +17428,7 @@ class PdsTabpanel {
|
|
|
16987
17428
|
this.selected = false; // eslint-disable-line @stencil-community/strict-mutable
|
|
16988
17429
|
}
|
|
16989
17430
|
render() {
|
|
16990
|
-
return (hAsync(Host, { key: '
|
|
17431
|
+
return (hAsync(Host, { key: '6ba83ea71c899d61f67884780731591a05aa1894', slot: "tabpanels" }, hAsync("div", { key: 'abaa610f7a68a3977303e08f1221976ae2840272', role: "tabpanel", id: this.parentComponentId + "__" + this.name + '-panel', tabindex: "0", "aria-labelledby": this.parentComponentId + "__" + this.name, class: this.selected ? "pds-tabpanel is-active" : "pds-tabpanel" }, hAsync("slot", { key: 'b80ecc1380f424d545b31843b53de1b2854e9f28' }))));
|
|
16991
17432
|
}
|
|
16992
17433
|
get el() { return getElement(this); }
|
|
16993
17434
|
static get style() { return pdsTabpanelCss; }
|
|
@@ -17099,7 +17540,7 @@ class PdsTabs {
|
|
|
17099
17540
|
this.passPropsToChildren();
|
|
17100
17541
|
}
|
|
17101
17542
|
render() {
|
|
17102
|
-
return (hAsync(Host, { key: '
|
|
17543
|
+
return (hAsync(Host, { key: '213dfbe8f2828b430ab81dce23f43c2137206861', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, hAsync("div", { key: '68989e852e2eeed180f91e5ac901c4318d6c0d70', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel, part: "tab-list" }, hAsync("slot", { key: '4a06996745c049fdaf830460e8d57caefd50900b', name: "tabs" })), hAsync("slot", { key: 'e0558392bff0955defb133b36dd4e7360f33acce', name: "tabpanels" })));
|
|
17103
17544
|
}
|
|
17104
17545
|
get el() { return getElement(this); }
|
|
17105
17546
|
static get style() { return pdsTabsCss; }
|
|
@@ -17142,7 +17583,7 @@ class PdsText {
|
|
|
17142
17583
|
${this.weight !== undefined && this.weight.trim() !== '' ? `pds-text--weight-${this.weight}` : ''}
|
|
17143
17584
|
${this.decoration !== undefined && this.decoration.trim() !== '' ? `pds-text--decoration-${this.decoration}` : ''}
|
|
17144
17585
|
`;
|
|
17145
|
-
return (hAsync(Tag, { key: '
|
|
17586
|
+
return (hAsync(Tag, { key: '3332211f473c2e8eeb79214352939df07a51fec1', style: this.color && setColor(this.color), class: typeClasses, part: "content" }, hAsync("slot", { key: 'd73ebe8fdf9f78d16aca70161bdc27138286328d' })));
|
|
17146
17587
|
}
|
|
17147
17588
|
get el() { return getElement(this); }
|
|
17148
17589
|
static get style() { return pdsTextCss; }
|
|
@@ -17467,10 +17908,10 @@ class PdsTextarea {
|
|
|
17467
17908
|
}
|
|
17468
17909
|
render() {
|
|
17469
17910
|
const value = this.getValue();
|
|
17470
|
-
return (hAsync(Host, { key: '
|
|
17471
|
-
hAsync("div", { key: '
|
|
17472
|
-
hAsync("p", { key: '
|
|
17473
|
-
hAsync("p", { key: '
|
|
17911
|
+
return (hAsync(Host, { key: '3930616df94105a62fc1d837bda9a03526ab1f8d', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null, "has-action": this.hasAction && !this.hideLabel ? 'true' : null }, hAsync("div", { key: 'da1befdef1050646ebcd8dd27b93d8dc8d777a15', class: "pds-textarea" }, this.label &&
|
|
17912
|
+
hAsync("div", { key: '4140a3852e9f3f7d490457b9c8d0d15ab04ea4c2', class: "pds-textarea__label-wrapper" }, hAsync("label", { key: '7a38d1b5f394e0304252827c11ca5fc89c22abf9', htmlFor: this.componentId }, hAsync("span", { key: 'da9a2cff7f0cf25d027de8cf05feae97a89e38d9', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), !this.hideLabel && this.renderAction()), hAsync("div", { key: '443e7d2fc01781ae0808c4212ba29887545c1225', class: "pds-textarea__field-wrapper" }, hAsync("textarea", Object.assign({ key: '41c0cb685f60fec270102fb67a73d4c341033c6e', ref: (el) => this.nativeTextarea = el, "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, maxlength: this.maxLength, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onBlur: this.onBlur, onChange: this.onTextareaChange, onFocus: this.onFocus, onInput: this.onInput, onKeyDown: this.onKeyDown }, this.inheritedAttributes), value), this.renderCharacterCounter()), this.helperMessage &&
|
|
17913
|
+
hAsync("p", { key: '3bfc2cc6ff60ef1e54feec57c3b1194342ec6d45', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
|
|
17914
|
+
hAsync("p", { key: 'cb288096c3398103b8458b09576fabb7154c9867', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, hAsync("pds-icon", { key: '3274739f2dcea054a9df861f8ac5dd97f8267b4c', icon: danger, size: "small" }), this.errorMessage))));
|
|
17474
17915
|
}
|
|
17475
17916
|
static get formAssociated() { return true; }
|
|
17476
17917
|
get el() { return getElement(this); }
|
|
@@ -17593,13 +18034,13 @@ class PdsToast {
|
|
|
17593
18034
|
return this.icon && hAsync("pds-icon", { name: this.icon, class: "pds-toast__icon" });
|
|
17594
18035
|
}
|
|
17595
18036
|
render() {
|
|
17596
|
-
return (hAsync(Host, { key: '
|
|
18037
|
+
return (hAsync(Host, { key: '321c06e28eefaf088bf4dfad01f0db68778e99b5', hidden: !this.isVisible }, hAsync("div", { key: '540e3256517b8822cda1cf5aae6da42d8e6fbe65', class: {
|
|
17597
18038
|
'pds-toast': true,
|
|
17598
18039
|
[`pds-toast--${this.type}`]: this.type !== 'default',
|
|
17599
18040
|
'pds-toast--animating-out': this.isAnimatingOut
|
|
17600
|
-
}, role: "alert", "aria-live": "polite" }, this.renderIcon(), hAsync("span", { key: '
|
|
18041
|
+
}, role: "alert", "aria-live": "polite" }, this.renderIcon(), hAsync("span", { key: 'd558a8b71aac4cc37536b793dd75625ffa3d970e', class: "pds-toast__message" }, hAsync("slot", { key: 'a208456409cafbe0f8fbba2d2de3e26e73ed412f' })), this.dismissible && (hAsync("button", { key: 'd044574effe52f5d355714ba91f69b32da8bda05', type: "button", class: "pds-toast__button", onClick: () => {
|
|
17601
18042
|
this.dismiss();
|
|
17602
|
-
}, "aria-label": "Dismiss message" }, hAsync("pds-icon", { key: '
|
|
18043
|
+
}, "aria-label": "Dismiss message" }, hAsync("pds-icon", { key: 'f3dbfd6e2201feb6852b1bd976ed64b72deef4ee', name: "remove" }))))));
|
|
17603
18044
|
}
|
|
17604
18045
|
static get watchers() { return {
|
|
17605
18046
|
"duration": ["handleDurationChange"]
|
|
@@ -17939,9 +18380,9 @@ class PdsTooltip {
|
|
|
17939
18380
|
}
|
|
17940
18381
|
render() {
|
|
17941
18382
|
const hostId = this.componentId || undefined;
|
|
17942
|
-
return (hAsync(Host, { key: '
|
|
18383
|
+
return (hAsync(Host, { key: '4e6188e03c2f1d33e571b96a3006a585840716bd', id: hostId, class: { 'pds-tooltip--is-open': this.opened } }, hAsync("span", { key: '0b82d180295421c32548577fb2038422b8ebd3be', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide,
|
|
17943
18384
|
/* focusin/out bubble; ensure keyboard users see tooltips */
|
|
17944
|
-
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, hAsync("slot", { key: '
|
|
18385
|
+
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, hAsync("slot", { key: '661014ee46b11bcc906e7b64ef8c8a5739d459f0' })), hAsync("div", { key: '1861ce9b260f5f7d2eb0a1f337dadd63a0dfee97', class: "pds-tooltip__content-slot-wrapper", hidden: true }, hAsync("slot", { key: '963fb263c72fba432c2b672a2c3e85ca524f2b67', name: "content" }))));
|
|
17945
18386
|
}
|
|
17946
18387
|
get el() { return getElement(this); }
|
|
17947
18388
|
static get watchers() { return {
|