@pine-ds/core 3.14.2-dev.0 → 3.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +152 -16
- 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 +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 +132 -11
- 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 +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 +191 -10
- 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.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 +588 -3
- 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 +132 -11
- 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 +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-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-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-4ed357a4.entry.js +2 -0
- package/dist/pine-core/p-4ed357a4.entry.js.map +1 -0
- 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-4c23c75b.system.entry.js → p-63a669c9.system.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-9eccf7b9.entry.js → p-88dd25dd.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-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-CWPG1B5Z.system.js.map +1 -0
- 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-Lk6DnEPT.system.js.map → p-DwXA2Glx.system.js.map} +1 -1
- 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-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-ae359dc7.system.entry.js +2 -0
- package/dist/pine-core/p-ae359dc7.system.entry.js.map +1 -0
- 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-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/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 +16 -1
- package/dist/types/components.d.ts +159 -2
- package/hydrate/index.js +491 -81
- package/hydrate/index.mjs +491 -81
- 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-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-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-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/vscode.html-data.json +0 -10178
- /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-4c23c75b.system.entry.js.map → p-63a669c9.system.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-9eccf7b9.entry.js.map → p-88dd25dd.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
|
@@ -3,11 +3,13 @@ import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shi
|
|
|
3
3
|
import { d as debounceEvent } from './utils.js';
|
|
4
4
|
import { a as assignDescription, m as messageId } from './form.js';
|
|
5
5
|
import { g as enlarge, h as danger } from './index2.js';
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
6
|
+
import { d as defineCustomElement$6 } from './pds-box2.js';
|
|
7
|
+
import { d as defineCustomElement$5 } from './pds-checkbox2.js';
|
|
8
|
+
import { d as defineCustomElement$4 } from './pds-icon2.js';
|
|
9
|
+
import { d as defineCustomElement$3 } from './pds-loader2.js';
|
|
10
|
+
import { d as defineCustomElement$2 } from './pds-text2.js';
|
|
9
11
|
|
|
10
|
-
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}";
|
|
12
|
+
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}";
|
|
11
13
|
|
|
12
14
|
const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect extends HTMLElement {
|
|
13
15
|
constructor(registerHost) {
|
|
@@ -19,6 +21,7 @@ const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect e
|
|
|
19
21
|
this.pdsMultiselectChange = createEvent(this, "pdsMultiselectChange", 7);
|
|
20
22
|
this.pdsMultiselectSearch = createEvent(this, "pdsMultiselectSearch", 7);
|
|
21
23
|
this.pdsMultiselectLoadOptions = createEvent(this, "pdsMultiselectLoadOptions", 7);
|
|
24
|
+
this.pdsMultiselectCreate = createEvent(this, "pdsMultiselectCreate", 7);
|
|
22
25
|
/**
|
|
23
26
|
* Placeholder text for the input field.
|
|
24
27
|
*/
|
|
@@ -39,6 +42,10 @@ const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect e
|
|
|
39
42
|
* Debounce delay in milliseconds for search/fetch.
|
|
40
43
|
*/
|
|
41
44
|
this.debounce = 300;
|
|
45
|
+
/**
|
|
46
|
+
* Timeout in milliseconds for async fetch requests.
|
|
47
|
+
*/
|
|
48
|
+
this.fetchTimeout = 30000;
|
|
42
49
|
/**
|
|
43
50
|
* Maximum height of the dropdown before scrolling.
|
|
44
51
|
*/
|
|
@@ -71,6 +78,7 @@ const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect e
|
|
|
71
78
|
this.selectedItems = [];
|
|
72
79
|
this.currentPage = 1;
|
|
73
80
|
this.hasMore = false;
|
|
81
|
+
this.creating = false;
|
|
74
82
|
// Flag to prevent focusout from closing during open transition
|
|
75
83
|
this.isOpening = false;
|
|
76
84
|
this.handleTriggerClick = () => {
|
|
@@ -303,6 +311,10 @@ const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect e
|
|
|
303
311
|
window.clearTimeout(this.fetchDebounceTimer);
|
|
304
312
|
this.fetchDebounceTimer = undefined;
|
|
305
313
|
}
|
|
314
|
+
if (this.fetchTimeoutTimer !== undefined) {
|
|
315
|
+
window.clearTimeout(this.fetchTimeoutTimer);
|
|
316
|
+
this.fetchTimeoutTimer = undefined;
|
|
317
|
+
}
|
|
306
318
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
307
319
|
this.abortController = undefined;
|
|
308
320
|
}
|
|
@@ -352,13 +364,22 @@ const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect e
|
|
|
352
364
|
getFilteredOptions() {
|
|
353
365
|
const allOptions = this.getAllOptions();
|
|
354
366
|
const query = this.searchQuery.toLowerCase();
|
|
355
|
-
|
|
367
|
+
const filtered = allOptions.filter(opt => {
|
|
356
368
|
// Filter by search query only - don't filter out selected items
|
|
357
369
|
if (query) {
|
|
358
370
|
return opt.text.toLowerCase().includes(query);
|
|
359
371
|
}
|
|
360
372
|
return true;
|
|
361
373
|
});
|
|
374
|
+
// Add create option if enabled and no matches found
|
|
375
|
+
if (this.createUrl && this.searchQuery.trim() && filtered.length === 0) {
|
|
376
|
+
return [{
|
|
377
|
+
id: '__create__',
|
|
378
|
+
text: this.searchQuery.trim(),
|
|
379
|
+
isCreateOption: true,
|
|
380
|
+
}];
|
|
381
|
+
}
|
|
382
|
+
return filtered;
|
|
362
383
|
}
|
|
363
384
|
updateFormValue() {
|
|
364
385
|
var _a;
|
|
@@ -386,11 +407,29 @@ const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect e
|
|
|
386
407
|
var _a;
|
|
387
408
|
if (!this.asyncUrl)
|
|
388
409
|
return;
|
|
410
|
+
// Abort any pending request and clear existing timeout
|
|
389
411
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
412
|
+
if (this.fetchTimeoutTimer !== undefined) {
|
|
413
|
+
window.clearTimeout(this.fetchTimeoutTimer);
|
|
414
|
+
this.fetchTimeoutTimer = undefined;
|
|
415
|
+
}
|
|
390
416
|
this.abortController = new AbortController();
|
|
391
417
|
this.loading = true;
|
|
418
|
+
// Set up timeout for fetch request
|
|
419
|
+
this.fetchTimeoutTimer = window.setTimeout(() => {
|
|
420
|
+
var _a;
|
|
421
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
422
|
+
this.fetchTimeoutTimer = undefined;
|
|
423
|
+
}, this.fetchTimeout);
|
|
392
424
|
try {
|
|
393
|
-
|
|
425
|
+
// Guard against malformed asyncUrl
|
|
426
|
+
let url;
|
|
427
|
+
try {
|
|
428
|
+
url = new URL(this.asyncUrl, window.location.origin);
|
|
429
|
+
}
|
|
430
|
+
catch (urlError) {
|
|
431
|
+
throw new TypeError(`Invalid asyncUrl: ${this.asyncUrl}`);
|
|
432
|
+
}
|
|
394
433
|
if (this.asyncMethod === 'GET') {
|
|
395
434
|
url.searchParams.set('search', query);
|
|
396
435
|
url.searchParams.set('page', String(page));
|
|
@@ -401,14 +440,28 @@ const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect e
|
|
|
401
440
|
} }, (this.asyncMethod === 'POST' && {
|
|
402
441
|
body: JSON.stringify({ search: query, page }),
|
|
403
442
|
})));
|
|
443
|
+
// Clear timeout on successful response
|
|
444
|
+
if (this.fetchTimeoutTimer !== undefined) {
|
|
445
|
+
window.clearTimeout(this.fetchTimeoutTimer);
|
|
446
|
+
this.fetchTimeoutTimer = undefined;
|
|
447
|
+
}
|
|
404
448
|
if (!response.ok)
|
|
405
449
|
throw new Error('Failed to fetch options');
|
|
406
450
|
const data = await response.json();
|
|
407
451
|
const formattedResults = data.results.map(item => {
|
|
452
|
+
// If formatResult is provided, use it
|
|
408
453
|
if (this.formatResult) {
|
|
409
454
|
return this.formatResult(item);
|
|
410
455
|
}
|
|
411
|
-
|
|
456
|
+
// Defensive check: ensure item is an object before spreading
|
|
457
|
+
if (typeof item === 'object' && item !== null) {
|
|
458
|
+
return Object.assign({ id: item.id, text: item.text }, item);
|
|
459
|
+
}
|
|
460
|
+
// Handle primitives by converting to safe shape
|
|
461
|
+
return {
|
|
462
|
+
id: String(item),
|
|
463
|
+
text: String(item),
|
|
464
|
+
};
|
|
412
465
|
});
|
|
413
466
|
if (page === 1) {
|
|
414
467
|
this.internalOptions = formattedResults;
|
|
@@ -420,6 +473,11 @@ const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect e
|
|
|
420
473
|
this.currentPage = page;
|
|
421
474
|
}
|
|
422
475
|
catch (error) {
|
|
476
|
+
// Clear timeout on error
|
|
477
|
+
if (this.fetchTimeoutTimer !== undefined) {
|
|
478
|
+
window.clearTimeout(this.fetchTimeoutTimer);
|
|
479
|
+
this.fetchTimeoutTimer = undefined;
|
|
480
|
+
}
|
|
423
481
|
if (error.name !== 'AbortError') {
|
|
424
482
|
console.error('PdsMultiselect: Failed to fetch options', error);
|
|
425
483
|
}
|
|
@@ -428,6 +486,59 @@ const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect e
|
|
|
428
486
|
this.loading = false;
|
|
429
487
|
}
|
|
430
488
|
}
|
|
489
|
+
async createOption(query) {
|
|
490
|
+
if (!this.createUrl || !query.trim())
|
|
491
|
+
return;
|
|
492
|
+
// Reentrancy guard: prevent duplicate POSTs if creation is already in-flight
|
|
493
|
+
if (this.creating)
|
|
494
|
+
return;
|
|
495
|
+
this.creating = true;
|
|
496
|
+
try {
|
|
497
|
+
const url = new URL(this.createUrl, window.location.origin);
|
|
498
|
+
const response = await fetch(url.toString(), {
|
|
499
|
+
method: 'POST',
|
|
500
|
+
headers: {
|
|
501
|
+
'Content-Type': 'application/json',
|
|
502
|
+
'Accept': 'application/json',
|
|
503
|
+
},
|
|
504
|
+
body: JSON.stringify({ text: query.trim() }),
|
|
505
|
+
});
|
|
506
|
+
if (!response.ok)
|
|
507
|
+
throw new Error('Failed to create option');
|
|
508
|
+
const data = await response.json();
|
|
509
|
+
const newOption = Object.assign({ id: data.id, text: data.text }, data);
|
|
510
|
+
// Add to internal options
|
|
511
|
+
this.internalOptions = [...this.internalOptions, newOption];
|
|
512
|
+
// Select the new option
|
|
513
|
+
this.value = [...this.value, String(newOption.id)];
|
|
514
|
+
// Sync selected items
|
|
515
|
+
this.syncSelectedItems();
|
|
516
|
+
// Emit create event
|
|
517
|
+
this.pdsMultiselectCreate.emit({
|
|
518
|
+
query: query.trim(),
|
|
519
|
+
newOption,
|
|
520
|
+
});
|
|
521
|
+
// Emit change event
|
|
522
|
+
this.pdsMultiselectChange.emit({
|
|
523
|
+
values: this.value,
|
|
524
|
+
items: this.selectedItems,
|
|
525
|
+
});
|
|
526
|
+
// Clear search and keep dropdown open
|
|
527
|
+
this.searchQuery = '';
|
|
528
|
+
this.highlightedIndex = -1;
|
|
529
|
+
// Focus back on search input
|
|
530
|
+
requestAnimationFrame(() => {
|
|
531
|
+
var _a;
|
|
532
|
+
(_a = this.searchInputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
catch (error) {
|
|
536
|
+
console.error('PdsMultiselect: Failed to create option', error);
|
|
537
|
+
}
|
|
538
|
+
finally {
|
|
539
|
+
this.creating = false;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
431
542
|
openDropdown() {
|
|
432
543
|
if (this.disabled)
|
|
433
544
|
return;
|
|
@@ -506,6 +617,14 @@ const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect e
|
|
|
506
617
|
}
|
|
507
618
|
toggleOption(option) {
|
|
508
619
|
var _a;
|
|
620
|
+
// Handle create option
|
|
621
|
+
if (option.isCreateOption) {
|
|
622
|
+
// Prevent multiple create calls while one is in-flight
|
|
623
|
+
if (!this.creating) {
|
|
624
|
+
this.createOption(this.searchQuery);
|
|
625
|
+
}
|
|
626
|
+
return;
|
|
627
|
+
}
|
|
509
628
|
const isSelected = this.value.includes(String(option.id));
|
|
510
629
|
if (isSelected) {
|
|
511
630
|
// Remove from selection
|
|
@@ -551,13 +670,17 @@ const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect e
|
|
|
551
670
|
const hasSlottedLoading = !!this.el.querySelector('[slot="loading"]');
|
|
552
671
|
return (h("div", { class: "pds-multiselect__panel", ref: el => (this.panelEl = el), style: { minWidth: this.minWidth } }, h("div", { class: "pds-multiselect__search" }, h("pds-icon", { name: "search", size: "small" }), h("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(), h("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 && (h("li", { class: "pds-multiselect__loading", role: "presentation" }, hasSlottedLoading ? (h("slot", { name: "loading" })) : (h("pds-loader", { size: "small" })))), !this.loading && filteredOptions.length === 0 && (h("li", { class: "pds-multiselect__empty", role: "presentation" }, hasSlottedEmpty ? (h("slot", { name: "empty" })) : (h("span", null, "No options found")))), filteredOptions.map((option, index) => {
|
|
553
672
|
const isSelected = valueArray.includes(String(option.id));
|
|
554
|
-
const
|
|
673
|
+
const isCreateOption = option.isCreateOption;
|
|
674
|
+
const isHighlighted = index === this.highlightedIndex && !isCreateOption;
|
|
555
675
|
const optionId = `${this.componentId}-option-${index}`;
|
|
676
|
+
const isCreateDisabled = isCreateOption && this.creating;
|
|
556
677
|
return (h("li", { key: String(option.id), id: optionId, class: {
|
|
557
678
|
'pds-multiselect__option': true,
|
|
558
679
|
'pds-multiselect__option--highlighted': isHighlighted,
|
|
559
680
|
'pds-multiselect__option--selected': isSelected,
|
|
560
|
-
|
|
681
|
+
'pds-multiselect__option--create': isCreateOption,
|
|
682
|
+
'pds-multiselect__option--disabled': isCreateDisabled,
|
|
683
|
+
}, 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 ? (h("pds-box", { class: "pds-multiselect__create-option", "align-items": "center", gap: "xs" }, h("pds-icon", { name: "add", size: "small" }), h("pds-text", null, "Add \"", option.text, "\""))) : (h("pds-checkbox", { componentId: `${this.componentId}-checkbox-${index}`, checked: isSelected, label: option.text, style: { pointerEvents: 'none' } }))));
|
|
561
684
|
}), this.hasMore && !this.loading && (h("li", { class: "pds-multiselect__load-more", role: "presentation" }, h("pds-loader", { size: "small" }))))));
|
|
562
685
|
}
|
|
563
686
|
getTriggerText() {
|
|
@@ -569,19 +692,19 @@ const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect e
|
|
|
569
692
|
}
|
|
570
693
|
render() {
|
|
571
694
|
const hasSelections = this.selectedItems.length > 0;
|
|
572
|
-
return (h(Host, { key: '
|
|
695
|
+
return (h(Host, { key: 'b03d0709427e89ae3971d2f1fdc42a6e6616e428', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: 'd71fc5ec468c6c54bafe93307a6b3e65c0fe5b81', class: "pds-multiselect" }, this.label && (h("label", { key: 'c15deeec84eac043bb7c8813327d0f942b892734', htmlFor: this.componentId, class: {
|
|
573
696
|
'pds-multiselect__label': true,
|
|
574
697
|
'visually-hidden': this.hideLabel,
|
|
575
|
-
} }, this.label)), h("div", { key: '
|
|
698
|
+
} }, this.label)), h("div", { key: 'f256795c69fd40f9c717d8c884d897032d3c4f49', class: "pds-multiselect__wrapper", ref: el => (this.containerEl = el), onFocusout: this.handleContainerFocusOut, style: { width: this.triggerWidth } }, h("button", { key: '131f3141229ee14418737010615e9e1f2f430c4f', ref: el => (this.triggerEl = el), type: "button", class: {
|
|
576
699
|
'pds-multiselect__trigger': true,
|
|
577
700
|
'pds-multiselect__trigger--open': this.isOpen,
|
|
578
701
|
'pds-multiselect__trigger--disabled': this.disabled,
|
|
579
702
|
'pds-multiselect__trigger--invalid': this.invalid || !!this.errorMessage,
|
|
580
703
|
'pds-multiselect__trigger--has-value': hasSelections,
|
|
581
|
-
}, 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 }, h("span", { key: '
|
|
704
|
+
}, 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 }, h("span", { key: '3e61f1728014a97a193b6fa6158f21abd0d169c3', class: {
|
|
582
705
|
'pds-multiselect__trigger-text': true,
|
|
583
706
|
'pds-multiselect__trigger-text--placeholder': !hasSelections,
|
|
584
|
-
} }, this.getTriggerText()), h("pds-icon", { key: '
|
|
707
|
+
} }, this.getTriggerText()), h("pds-icon", { key: '13bc74c492bf7ead5a77e42e92002b45389f1906', class: "pds-multiselect__icon", icon: enlarge })), this.renderDropdown()), this.helperMessage && !(this.errorMessage && this.errorMessage.length > 0) && (h("p", { key: '53d6219eb3b910a277b5025be11d2d0a742c0ee1', class: "pds-multiselect__helper", id: messageId(this.componentId, 'helper') }, this.helperMessage)), this.errorMessage && (h("p", { key: '475fd9c02f8cc3cdd1f1911b3e71dce32e2f1743', class: "pds-multiselect__error", id: messageId(this.componentId, 'error') }, h("pds-icon", { key: 'ab6fdb8a743caa1712fc30532c0c2b6099703564', icon: danger, size: "small" }), this.errorMessage)), h("div", { key: '64d5db05c6b0e04a6cbf899ccc30ee479c23e9d6', style: { display: 'none' } }, h("slot", { key: '378ceb06d78d5542ca40ed4852bb582da514028c' })))));
|
|
585
708
|
}
|
|
586
709
|
static get formAssociated() { return true; }
|
|
587
710
|
get el() { return this; }
|
|
@@ -602,6 +725,7 @@ const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect e
|
|
|
602
725
|
"asyncUrl": [1, "async-url"],
|
|
603
726
|
"asyncMethod": [1, "async-method"],
|
|
604
727
|
"debounce": [2],
|
|
728
|
+
"fetchTimeout": [2, "fetch-timeout"],
|
|
605
729
|
"maxSelections": [2, "max-selections"],
|
|
606
730
|
"maxHeight": [1, "max-height"],
|
|
607
731
|
"triggerWidth": [1, "trigger-width"],
|
|
@@ -615,6 +739,7 @@ const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect e
|
|
|
615
739
|
"loading": [1028],
|
|
616
740
|
"options": [16],
|
|
617
741
|
"formatResult": [16],
|
|
742
|
+
"createUrl": [1, "create-url"],
|
|
618
743
|
"isOpen": [32],
|
|
619
744
|
"searchQuery": [32],
|
|
620
745
|
"highlightedIndex": [32],
|
|
@@ -622,6 +747,7 @@ const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect e
|
|
|
622
747
|
"selectedItems": [32],
|
|
623
748
|
"currentPage": [32],
|
|
624
749
|
"hasMore": [32],
|
|
750
|
+
"creating": [32],
|
|
625
751
|
"setFocus": [64]
|
|
626
752
|
}, [[8, "keydown", "handleWindowKeyDown"]], {
|
|
627
753
|
"debounce": ["setupDebounce"],
|
|
@@ -633,24 +759,34 @@ function defineCustomElement$1() {
|
|
|
633
759
|
if (typeof customElements === "undefined") {
|
|
634
760
|
return;
|
|
635
761
|
}
|
|
636
|
-
const components = ["pds-multiselect", "pds-checkbox", "pds-icon", "pds-loader"];
|
|
762
|
+
const components = ["pds-multiselect", "pds-box", "pds-checkbox", "pds-icon", "pds-loader", "pds-text"];
|
|
637
763
|
components.forEach(tagName => { switch (tagName) {
|
|
638
764
|
case "pds-multiselect":
|
|
639
765
|
if (!customElements.get(tagName)) {
|
|
640
766
|
customElements.define(tagName, PdsMultiselect$1);
|
|
641
767
|
}
|
|
642
768
|
break;
|
|
769
|
+
case "pds-box":
|
|
770
|
+
if (!customElements.get(tagName)) {
|
|
771
|
+
defineCustomElement$6();
|
|
772
|
+
}
|
|
773
|
+
break;
|
|
643
774
|
case "pds-checkbox":
|
|
644
775
|
if (!customElements.get(tagName)) {
|
|
645
|
-
defineCustomElement$
|
|
776
|
+
defineCustomElement$5();
|
|
646
777
|
}
|
|
647
778
|
break;
|
|
648
779
|
case "pds-icon":
|
|
649
780
|
if (!customElements.get(tagName)) {
|
|
650
|
-
defineCustomElement$
|
|
781
|
+
defineCustomElement$4();
|
|
651
782
|
}
|
|
652
783
|
break;
|
|
653
784
|
case "pds-loader":
|
|
785
|
+
if (!customElements.get(tagName)) {
|
|
786
|
+
defineCustomElement$3();
|
|
787
|
+
}
|
|
788
|
+
break;
|
|
789
|
+
case "pds-text":
|
|
654
790
|
if (!customElements.get(tagName)) {
|
|
655
791
|
defineCustomElement$2();
|
|
656
792
|
}
|