@pine-ds/core 3.26.4 → 3.27.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/attributes.js +1 -85
- package/components/closest.js +1 -12
- package/components/floating-ui.dom.js +1 -1631
- package/components/form.js +1 -62
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -54
- package/components/index2.js +1 -20
- package/components/mock-pds-modal.js +1 -119
- package/components/pds-accordion.js +1 -74
- package/components/pds-alert.js +1 -115
- package/components/pds-avatar.js +1 -141
- package/components/pds-box.js +1 -9
- package/components/pds-box2.js +1 -283
- package/components/pds-button.js +1 -9
- package/components/pds-button2.js +1 -250
- package/components/pds-checkbox.js +1 -9
- package/components/pds-checkbox2.js +1 -150
- package/components/pds-chip.js +1 -9
- package/components/pds-chip2.js +1 -167
- package/components/pds-combobox.js +2 -2958
- package/components/pds-container.js +1 -61
- package/components/pds-copytext.js +1 -154
- package/components/pds-divider.js +1 -58
- package/components/pds-dropdown-menu-item.js +1 -128
- package/components/pds-dropdown-menu-separator.js +1 -46
- package/components/pds-dropdown-menu.js +1 -349
- package/components/pds-filter.js +1 -524
- package/components/pds-filters.js +1 -40
- package/components/pds-icon.js +1 -9
- package/components/pds-icon2.js +1 -601
- package/components/pds-image.js +1 -61
- package/components/pds-input.js +1 -372
- package/components/pds-link.js +1 -9
- package/components/pds-link2.js +1 -93
- package/components/pds-loader.js +1 -9
- package/components/pds-loader2.js +1 -79
- package/components/pds-modal-content.js +1 -214
- package/components/pds-modal-footer.js +1 -37
- package/components/pds-modal-header.js +1 -37
- package/components/pds-modal.js +1 -291
- package/components/pds-multiselect.js +1 -1087
- package/components/pds-popover.js +1 -602
- package/components/pds-progress.js +1 -60
- package/components/pds-property.js +1 -57
- package/components/pds-radio-group.js +1 -211
- package/components/pds-radio.js +1 -138
- package/components/pds-row.js +1 -99
- package/components/pds-select.js +1 -291
- package/components/pds-sortable-item.js +1 -67
- package/components/pds-sortable.js +2 -2747
- package/components/pds-switch.js +1 -147
- package/components/pds-tab.js +1 -71
- package/components/pds-table-body.js +1 -38
- package/components/pds-table-cell.js +1 -9
- package/components/pds-table-cell2.js +1 -169
- package/components/pds-table-head-cell.js +1 -9
- package/components/pds-table-head-cell2.js +1 -254
- package/components/pds-table-head.js +1 -102
- package/components/pds-table-row.js +1 -197
- package/components/pds-table.js +1 -291
- package/components/pds-tabpanel.js +1 -48
- package/components/pds-tabs.js +1 -126
- package/components/pds-text.js +1 -9
- package/components/pds-text2.js +1 -110
- package/components/pds-textarea.js +1 -376
- package/components/pds-toast.js +1 -175
- package/components/pds-tooltip.js +1 -362
- package/components/scroll.js +1 -78
- package/components/truncation-tooltip.js +1 -247
- package/components/utils.js +1 -74
- package/dist/cjs/attributes-oNMnBEnP.js +0 -3
- package/dist/cjs/closest-BZXvuB_Y.js +0 -3
- package/dist/cjs/floating-ui.dom-BZk7Blsu.js +0 -3
- package/dist/cjs/form-CpM5Z8q7.js +0 -3
- package/dist/cjs/{index-BUvWX8u2.js → index-DBhfI2Jq.js} +567 -387
- package/dist/cjs/index-DGBoDsAL.js +0 -3
- package/dist/cjs/index.cjs.js +0 -1
- package/dist/cjs/loader.cjs.js +2 -3
- package/dist/cjs/mock-pds-modal.cjs.entry.js +3 -4
- package/dist/cjs/pds-accordion.cjs.entry.js +7 -6
- package/dist/cjs/pds-alert.cjs.entry.js +4 -5
- package/dist/cjs/pds-avatar.cjs.entry.js +3 -4
- package/dist/cjs/pds-box.cjs.entry.js +3 -4
- package/dist/cjs/pds-button.cjs.entry.js +3 -4
- package/dist/cjs/pds-checkbox.cjs.entry.js +9 -6
- package/dist/cjs/pds-chip.cjs.entry.js +4 -5
- package/dist/cjs/pds-combobox.cjs.entry.js +18 -9
- package/dist/cjs/pds-container.cjs.entry.js +3 -4
- package/dist/cjs/pds-copytext.cjs.entry.js +10 -7
- package/dist/cjs/pds-divider.cjs.entry.js +3 -4
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +3 -4
- package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +3 -4
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js +3 -4
- package/dist/cjs/pds-filter.cjs.entry.js +3 -4
- package/dist/cjs/pds-filters.cjs.entry.js +3 -4
- package/dist/cjs/pds-icon.cjs.entry.js +18 -9
- package/dist/cjs/pds-image.cjs.entry.js +3 -4
- package/dist/cjs/pds-input.cjs.entry.js +12 -9
- package/dist/cjs/pds-link.cjs.entry.js +5 -6
- package/dist/cjs/pds-loader.cjs.entry.js +3 -4
- package/dist/cjs/pds-modal-content.cjs.entry.js +3 -4
- package/dist/cjs/pds-modal-footer.cjs.entry.js +3 -4
- package/dist/cjs/pds-modal-header.cjs.entry.js +3 -4
- package/dist/cjs/pds-modal.cjs.entry.js +6 -5
- package/dist/cjs/pds-multiselect.cjs.entry.js +15 -8
- package/dist/cjs/pds-popover.cjs.entry.js +3 -4
- package/dist/cjs/pds-progress.cjs.entry.js +3 -4
- package/dist/cjs/pds-property.cjs.entry.js +3 -4
- package/dist/cjs/pds-radio-group.cjs.entry.js +15 -8
- package/dist/cjs/pds-radio.cjs.entry.js +4 -5
- package/dist/cjs/pds-row.cjs.entry.js +3 -4
- package/dist/cjs/pds-select.cjs.entry.js +13 -10
- package/dist/cjs/pds-sortable-item.cjs.entry.js +4 -5
- package/dist/cjs/pds-sortable.cjs.entry.js +6 -5
- package/dist/cjs/pds-switch.cjs.entry.js +7 -6
- package/dist/cjs/pds-tab.cjs.entry.js +3 -4
- package/dist/cjs/pds-table-body.cjs.entry.js +3 -4
- package/dist/cjs/pds-table-cell.cjs.entry.js +6 -5
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +3 -4
- package/dist/cjs/pds-table-head.cjs.entry.js +3 -4
- package/dist/cjs/pds-table-row.cjs.entry.js +3 -4
- package/dist/cjs/pds-table.cjs.entry.js +3 -4
- package/dist/cjs/pds-tabpanel.cjs.entry.js +3 -4
- package/dist/cjs/pds-tabs.cjs.entry.js +3 -4
- package/dist/cjs/pds-text.cjs.entry.js +46 -6
- package/dist/cjs/pds-textarea.cjs.entry.js +14 -9
- package/dist/cjs/pds-toast.cjs.entry.js +6 -5
- package/dist/cjs/pds-tooltip.cjs.entry.js +6 -5
- package/dist/cjs/pine-core.cjs.js +3 -4
- package/dist/cjs/scroll-2XcoE_6Q.js +0 -3
- package/dist/cjs/truncation-tooltip-CVzAha5B.js +0 -3
- package/dist/cjs/utils-7jx8T2mW.js +0 -3
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/_internal/pds-label/pds-label.js +0 -1
- package/dist/collection/components/pds-accordion/pds-accordion.js +1 -2
- package/dist/collection/components/pds-alert/pds-alert.js +0 -1
- package/dist/collection/components/pds-avatar/pds-avatar.js +0 -1
- package/dist/collection/components/pds-box/pds-box.js +206 -134
- package/dist/collection/components/pds-button/pds-button.css +74 -74
- package/dist/collection/components/pds-button/pds-button.js +2 -2
- package/dist/collection/components/pds-checkbox/checkbox-interface.js +0 -1
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +4 -3
- package/dist/collection/components/pds-chip/pds-chip.js +6 -4
- package/dist/collection/components/pds-combobox/combobox-interface.js +0 -1
- package/dist/collection/components/pds-combobox/pds-combobox.css +3 -0
- package/dist/collection/components/pds-combobox/pds-combobox.js +10 -6
- package/dist/collection/components/pds-container/pds-container.js +0 -1
- package/dist/collection/components/pds-copytext/pds-copytext.js +1 -2
- package/dist/collection/components/pds-divider/pds-divider.js +0 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +0 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +0 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +2 -2
- package/dist/collection/components/pds-filters/pds-filter/filter-interface.js +0 -1
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +8 -5
- package/dist/collection/components/pds-filters/pds-filters.js +0 -1
- package/dist/collection/components/pds-image/pds-image.js +0 -1
- package/dist/collection/components/pds-input/input-interface.js +0 -1
- package/dist/collection/components/pds-input/pds-input.js +5 -4
- package/dist/collection/components/pds-link/pds-link.js +154 -3
- package/dist/collection/components/pds-loader/pds-loader.js +0 -1
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +0 -1
- package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +0 -1
- package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +0 -1
- package/dist/collection/components/pds-modal/pds-modal.js +0 -1
- package/dist/collection/components/pds-modal/test/mock-pds-modal.js +0 -1
- package/dist/collection/components/pds-multiselect/multiselect-interface.js +0 -1
- package/dist/collection/components/pds-multiselect/pds-multiselect.css +1 -0
- package/dist/collection/components/pds-multiselect/pds-multiselect.js +12 -7
- package/dist/collection/components/pds-popover/pds-popover.js +6 -4
- package/dist/collection/components/pds-popover/popover-interface.js +0 -1
- package/dist/collection/components/pds-progress/pds-progress.js +0 -1
- package/dist/collection/components/pds-property/pds-property.js +0 -1
- package/dist/collection/components/pds-radio/pds-radio.js +0 -1
- package/dist/collection/components/pds-radio-group/pds-radio-group.js +2 -2
- package/dist/collection/components/pds-radio-group/radio-group-interface.js +0 -1
- package/dist/collection/components/pds-row/pds-row.js +9 -7
- package/dist/collection/components/pds-select/pds-select.js +2 -3
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -2
- package/dist/collection/components/pds-sortable/pds-sortable.js +2 -2
- package/dist/collection/components/pds-sortable/sortable-interface.js +0 -1
- package/dist/collection/components/pds-switch/pds-switch.js +0 -1
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +0 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +0 -1
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +0 -1
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +0 -1
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +0 -1
- package/dist/collection/components/pds-table/pds-table.css +1 -0
- package/dist/collection/components/pds-table/pds-table.js +0 -1
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +0 -1
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +0 -1
- package/dist/collection/components/pds-tabs/pds-tabs.js +0 -1
- package/dist/collection/components/pds-text/pds-text.js +31 -4
- package/dist/collection/components/pds-textarea/pds-textarea.js +4 -3
- package/dist/collection/components/pds-textarea/textarea-interface.js +0 -1
- package/dist/collection/components/pds-toast/pds-toast.js +0 -1
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
- package/dist/collection/global/pine-ui-global.js +0 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/attributes.js +0 -1
- package/dist/collection/utils/closest.js +0 -1
- package/dist/collection/utils/form.js +0 -1
- package/dist/collection/utils/interfaces.js +0 -1
- package/dist/collection/utils/overlay.js +0 -1
- package/dist/collection/utils/scroll.js +0 -1
- package/dist/collection/utils/test/axe.js +9 -4
- package/dist/collection/utils/truncation-tooltip.js +0 -1
- package/dist/collection/utils/types.js +18 -2
- package/dist/collection/utils/utils.js +0 -1
- package/dist/docs.d.ts +37 -0
- package/dist/docs.json +2335 -1965
- package/dist/esm/attributes-C0M1gTKv.js +0 -3
- package/dist/esm/closest-DnUJodVd.js +0 -3
- package/dist/esm/floating-ui.dom-DDtwbwIl.js +0 -3
- package/dist/esm/form-C3xDZBme.js +0 -3
- package/dist/esm/{index-B2f84Zog.js → index-CaRgVPt7.js} +567 -387
- package/dist/esm/index-D4ys0pep.js +0 -3
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +3 -4
- package/dist/esm/mock-pds-modal.entry.js +3 -4
- package/dist/esm/pds-accordion.entry.js +7 -6
- package/dist/esm/pds-alert.entry.js +4 -5
- package/dist/esm/pds-avatar.entry.js +3 -4
- package/dist/esm/pds-box.entry.js +3 -4
- package/dist/esm/pds-button.entry.js +3 -4
- package/dist/esm/pds-checkbox.entry.js +9 -6
- package/dist/esm/pds-chip.entry.js +4 -5
- package/dist/esm/pds-combobox.entry.js +18 -9
- package/dist/esm/pds-container.entry.js +3 -4
- package/dist/esm/pds-copytext.entry.js +10 -7
- package/dist/esm/pds-divider.entry.js +3 -4
- package/dist/esm/pds-dropdown-menu-item.entry.js +3 -4
- package/dist/esm/pds-dropdown-menu-separator.entry.js +3 -4
- package/dist/esm/pds-dropdown-menu.entry.js +3 -4
- package/dist/esm/pds-filter.entry.js +3 -4
- package/dist/esm/pds-filters.entry.js +3 -4
- package/dist/esm/pds-icon.entry.js +18 -9
- package/dist/esm/pds-image.entry.js +3 -4
- package/dist/esm/pds-input.entry.js +12 -9
- package/dist/esm/pds-link.entry.js +5 -6
- package/dist/esm/pds-loader.entry.js +3 -4
- package/dist/esm/pds-modal-content.entry.js +3 -4
- package/dist/esm/pds-modal-footer.entry.js +3 -4
- package/dist/esm/pds-modal-header.entry.js +3 -4
- package/dist/esm/pds-modal.entry.js +6 -5
- package/dist/esm/pds-multiselect.entry.js +15 -8
- package/dist/esm/pds-popover.entry.js +3 -4
- package/dist/esm/pds-progress.entry.js +3 -4
- package/dist/esm/pds-property.entry.js +3 -4
- package/dist/esm/pds-radio-group.entry.js +15 -8
- package/dist/esm/pds-radio.entry.js +4 -5
- package/dist/esm/pds-row.entry.js +3 -4
- package/dist/esm/pds-select.entry.js +13 -10
- package/dist/esm/pds-sortable-item.entry.js +4 -5
- package/dist/esm/pds-sortable.entry.js +6 -5
- package/dist/esm/pds-switch.entry.js +7 -6
- package/dist/esm/pds-tab.entry.js +3 -4
- package/dist/esm/pds-table-body.entry.js +3 -4
- package/dist/esm/pds-table-cell.entry.js +6 -5
- package/dist/esm/pds-table-head-cell.entry.js +3 -4
- package/dist/esm/pds-table-head.entry.js +3 -4
- package/dist/esm/pds-table-row.entry.js +3 -4
- package/dist/esm/pds-table.entry.js +3 -4
- package/dist/esm/pds-tabpanel.entry.js +3 -4
- package/dist/esm/pds-tabs.entry.js +3 -4
- package/dist/esm/pds-text.entry.js +46 -6
- package/dist/esm/pds-textarea.entry.js +14 -9
- package/dist/esm/pds-toast.entry.js +6 -5
- package/dist/esm/pds-tooltip.entry.js +6 -5
- package/dist/esm/pine-core.js +4 -5
- package/dist/esm/scroll-DtgUQhjl.js +0 -3
- package/dist/esm/truncation-tooltip-Blk4GigP.js +0 -3
- package/dist/esm/utils-tJa4KYNO.js +0 -3
- package/dist/esm-es5/attributes-C0M1gTKv.js +1 -2
- package/dist/esm-es5/closest-DnUJodVd.js +1 -2
- package/dist/esm-es5/floating-ui.dom-DDtwbwIl.js +1 -2
- package/dist/esm-es5/form-C3xDZBme.js +1 -2
- package/dist/esm-es5/index-CaRgVPt7.js +2 -0
- package/dist/esm-es5/index-D4ys0pep.js +1 -2
- package/dist/esm-es5/index.js +0 -2
- package/dist/esm-es5/loader.js +1 -2
- package/dist/esm-es5/mock-pds-modal.entry.js +1 -2
- package/dist/esm-es5/pds-accordion.entry.js +1 -2
- package/dist/esm-es5/pds-alert.entry.js +1 -2
- package/dist/esm-es5/pds-avatar.entry.js +1 -2
- package/dist/esm-es5/pds-box.entry.js +1 -2
- package/dist/esm-es5/pds-button.entry.js +1 -2
- package/dist/esm-es5/pds-checkbox.entry.js +1 -2
- package/dist/esm-es5/pds-chip.entry.js +1 -2
- package/dist/esm-es5/pds-combobox.entry.js +2 -3
- package/dist/esm-es5/pds-container.entry.js +1 -2
- package/dist/esm-es5/pds-copytext.entry.js +1 -2
- package/dist/esm-es5/pds-divider.entry.js +1 -2
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -2
- package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -2
- package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -2
- package/dist/esm-es5/pds-filter.entry.js +1 -2
- package/dist/esm-es5/pds-filters.entry.js +1 -2
- package/dist/esm-es5/pds-icon.entry.js +1 -2
- package/dist/esm-es5/pds-image.entry.js +1 -2
- package/dist/esm-es5/pds-input.entry.js +1 -2
- package/dist/esm-es5/pds-link.entry.js +1 -2
- package/dist/esm-es5/pds-loader.entry.js +1 -2
- package/dist/esm-es5/pds-modal-content.entry.js +1 -2
- package/dist/esm-es5/pds-modal-footer.entry.js +1 -2
- package/dist/esm-es5/pds-modal-header.entry.js +1 -2
- package/dist/esm-es5/pds-modal.entry.js +1 -2
- package/dist/esm-es5/pds-multiselect.entry.js +1 -2
- package/dist/esm-es5/pds-popover.entry.js +1 -2
- package/dist/esm-es5/pds-progress.entry.js +1 -2
- package/dist/esm-es5/pds-property.entry.js +1 -2
- package/dist/esm-es5/pds-radio-group.entry.js +1 -2
- package/dist/esm-es5/pds-radio.entry.js +1 -2
- package/dist/esm-es5/pds-row.entry.js +1 -2
- package/dist/esm-es5/pds-select.entry.js +1 -2
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -2
- package/dist/esm-es5/pds-sortable.entry.js +2 -3
- package/dist/esm-es5/pds-switch.entry.js +1 -2
- package/dist/esm-es5/pds-tab.entry.js +1 -2
- package/dist/esm-es5/pds-table-body.entry.js +1 -2
- package/dist/esm-es5/pds-table-cell.entry.js +1 -2
- package/dist/esm-es5/pds-table-head-cell.entry.js +1 -2
- package/dist/esm-es5/pds-table-head.entry.js +1 -2
- package/dist/esm-es5/pds-table-row.entry.js +1 -2
- package/dist/esm-es5/pds-table.entry.js +1 -2
- package/dist/esm-es5/pds-tabpanel.entry.js +1 -2
- package/dist/esm-es5/pds-tabs.entry.js +1 -2
- package/dist/esm-es5/pds-text.entry.js +1 -2
- package/dist/esm-es5/pds-textarea.entry.js +1 -2
- package/dist/esm-es5/pds-toast.entry.js +1 -2
- package/dist/esm-es5/pds-tooltip.entry.js +1 -2
- package/dist/esm-es5/pine-core.js +1 -2
- package/dist/esm-es5/scroll-DtgUQhjl.js +1 -2
- package/dist/esm-es5/truncation-tooltip-Blk4GigP.js +1 -2
- package/dist/esm-es5/utils-tJa4KYNO.js +1 -2
- package/dist/pine-core/index.esm.js +0 -2
- package/dist/pine-core/p-002c420f.system.entry.js +1 -0
- package/dist/pine-core/p-003f91b1.system.entry.js +1 -0
- package/dist/pine-core/p-006398c3.system.entry.js +1 -0
- package/dist/pine-core/p-01dba061.entry.js +1 -0
- package/dist/pine-core/p-0451fdf7.entry.js +1 -0
- package/dist/pine-core/p-04f8b32a.entry.js +1 -0
- package/dist/pine-core/p-0bf56f61.entry.js +1 -0
- package/dist/pine-core/p-13ec2343.entry.js +1 -0
- package/dist/pine-core/p-190ba1df.entry.js +1 -0
- package/dist/pine-core/p-1e1804ed.system.entry.js +1 -0
- package/dist/pine-core/p-1e3beca4.system.entry.js +1 -0
- package/dist/pine-core/p-20f39b93.system.entry.js +1 -0
- package/dist/pine-core/p-22bfa998.entry.js +1 -0
- package/dist/pine-core/p-27ac77c3.entry.js +1 -0
- package/dist/pine-core/p-2b0cb8c4.system.entry.js +1 -0
- package/dist/pine-core/p-334b7c30.entry.js +1 -0
- package/dist/pine-core/p-3876b9be.entry.js +1 -0
- package/dist/pine-core/p-3a1b7302.system.entry.js +1 -0
- package/dist/pine-core/p-3ad9bcef.system.entry.js +1 -0
- package/dist/pine-core/p-3ba36512.system.entry.js +1 -0
- package/dist/pine-core/p-3f19666c.entry.js +1 -0
- package/dist/pine-core/p-3fa80c5a.system.entry.js +1 -0
- package/dist/pine-core/p-44388b8f.system.entry.js +1 -0
- package/dist/pine-core/p-44f58d33.system.entry.js +1 -0
- package/dist/pine-core/p-46de2438.entry.js +1 -0
- package/dist/pine-core/p-4abec102.system.entry.js +3 -0
- package/dist/pine-core/p-4e49712d.entry.js +1 -0
- package/dist/pine-core/p-52e9ec4f.entry.js +1 -0
- package/dist/pine-core/p-52f7115b.entry.js +1 -0
- package/dist/pine-core/p-5584a56b.entry.js +1 -0
- package/dist/pine-core/p-568bb210.system.entry.js +1 -0
- package/dist/pine-core/p-571d6bef.system.entry.js +1 -0
- package/dist/pine-core/p-587a15ee.system.entry.js +1 -0
- package/dist/pine-core/p-59a5dd77.system.entry.js +1 -0
- package/dist/pine-core/p-59c60e5b.entry.js +1 -0
- package/dist/pine-core/p-5a2df1e2.entry.js +1 -0
- package/dist/pine-core/p-5c6c2f79.system.entry.js +1 -0
- package/dist/pine-core/p-618ba6d5.system.entry.js +1 -0
- package/dist/pine-core/p-638e9cb3.entry.js +1 -0
- package/dist/pine-core/p-63e0d4a5.system.entry.js +1 -0
- package/dist/pine-core/p-65fb166c.system.entry.js +1 -0
- package/dist/pine-core/p-68121613.system.entry.js +1 -0
- package/dist/pine-core/p-6a2373d0.system.entry.js +1 -0
- package/dist/pine-core/p-6c5aacad.entry.js +1 -0
- package/dist/pine-core/p-71ca8845.system.entry.js +1 -0
- package/dist/pine-core/p-7247fb4f.entry.js +2 -0
- package/dist/pine-core/p-73b81009.entry.js +1 -0
- package/dist/pine-core/p-73dd2a2b.entry.js +1 -0
- package/dist/pine-core/p-74e06c8d.system.entry.js +1 -0
- package/dist/pine-core/p-7520a715.system.entry.js +1 -0
- package/dist/pine-core/p-7766e970.entry.js +1 -0
- package/dist/pine-core/p-7874fe2b.entry.js +1 -0
- package/dist/pine-core/p-791d357a.entry.js +1 -0
- package/dist/pine-core/p-7a4da839.entry.js +1 -0
- package/dist/pine-core/p-7aca41d9.system.entry.js +1 -0
- package/dist/pine-core/p-7b71f1bf.system.entry.js +1 -0
- package/dist/pine-core/p-7b954dbf.entry.js +1 -0
- package/dist/pine-core/p-8065c732.entry.js +1 -0
- package/dist/pine-core/p-829c52dc.entry.js +1 -0
- package/dist/pine-core/p-835d9f18.system.entry.js +1 -0
- package/dist/pine-core/p-83eb33d4.entry.js +1 -0
- package/dist/pine-core/p-855dfc31.system.entry.js +1 -0
- package/dist/pine-core/p-889fce8a.entry.js +7 -0
- package/dist/pine-core/p-974bf0c5.entry.js +1 -0
- package/dist/pine-core/p-9865431f.system.entry.js +1 -0
- package/dist/pine-core/p-B1u-QvFn.system.js +1 -2
- package/dist/pine-core/p-BG6uGRQj.system.js +1 -2
- package/dist/pine-core/p-BNSGedhN.js +1 -2
- package/dist/pine-core/p-BhQhw0S3.system.js +1 -2
- package/dist/pine-core/p-BrLs99ML.system.js +1 -2
- package/dist/pine-core/p-C0M1gTKv.js +1 -2
- package/dist/pine-core/p-C3xDZBme.js +1 -2
- package/dist/pine-core/p-C61CFP22.system.js +1 -0
- package/dist/pine-core/p-C62JIZmE.system.js +1 -2
- package/dist/pine-core/p-CRCxGYgw.system.js +1 -2
- package/dist/pine-core/p-CaRgVPt7.js +2 -0
- package/dist/pine-core/p-CdwliqhD.system.js +2 -0
- package/dist/pine-core/p-D4ys0pep.js +1 -2
- package/dist/pine-core/p-DDtwbwIl.js +1 -2
- package/dist/pine-core/p-DVra397g.system.js +1 -2
- package/dist/pine-core/p-DnUJodVd.js +1 -2
- package/dist/pine-core/p-DtgUQhjl.js +1 -2
- package/dist/pine-core/p-YWpyar7R.system.js +1 -2
- package/dist/pine-core/p-a1750a54.entry.js +1 -0
- package/dist/pine-core/p-a659cce1.entry.js +1 -0
- package/dist/pine-core/p-a739bdfa.entry.js +1 -0
- package/dist/pine-core/p-a982ac91.system.entry.js +1 -0
- package/dist/pine-core/p-ab957ace.system.entry.js +1 -0
- package/dist/pine-core/p-ae2b466a.system.entry.js +1 -0
- package/dist/pine-core/p-ae840ec4.entry.js +1 -0
- package/dist/pine-core/p-b0b6acdb.system.entry.js +1 -0
- package/dist/pine-core/p-b1b317a5.entry.js +1 -0
- package/dist/pine-core/p-b88be8be.entry.js +1 -0
- package/dist/pine-core/p-ba88ff60.system.entry.js +1 -0
- package/dist/pine-core/p-babd0607.system.entry.js +1 -0
- package/dist/pine-core/p-bdf18687.entry.js +1 -0
- package/dist/pine-core/p-c273210a.entry.js +1 -0
- package/dist/pine-core/p-c3a99f39.entry.js +1 -0
- package/dist/pine-core/p-ccb889d8.system.entry.js +1 -0
- package/dist/pine-core/p-cce6dcf0.system.entry.js +1 -0
- package/dist/pine-core/p-cce83ef0.entry.js +1 -0
- package/dist/pine-core/p-d09ae46d.system.entry.js +1 -0
- package/dist/pine-core/p-d5c1f85e.system.entry.js +1 -0
- package/dist/pine-core/p-db1572a3.entry.js +1 -0
- package/dist/pine-core/p-e0cfb931.system.entry.js +1 -0
- package/dist/pine-core/p-e291db30.entry.js +1 -0
- package/dist/pine-core/p-e620e492.system.entry.js +1 -0
- package/dist/pine-core/p-e70c9002.entry.js +1 -0
- package/dist/pine-core/p-e77c5c08.system.entry.js +1 -0
- package/dist/pine-core/p-edf4e4eb.system.entry.js +1 -0
- package/dist/pine-core/p-ee6f914c.entry.js +1 -0
- package/dist/pine-core/{p-85e889c3.system.entry.js → p-ef71710b.system.entry.js} +2 -3
- package/dist/pine-core/p-f2315f2a.entry.js +1 -0
- package/dist/pine-core/p-f2cf8e76.entry.js +1 -0
- package/dist/pine-core/p-f366f064.entry.js +1 -0
- package/dist/pine-core/p-f928817f.system.entry.js +1 -0
- package/dist/pine-core/p-fa81009f.system.entry.js +1 -0
- package/dist/pine-core/p-fb68e503.system.entry.js +1 -0
- package/dist/pine-core/p-kYMYDfJY.system.js +1 -2
- package/dist/pine-core/p-tJa4KYNO.js +1 -2
- package/dist/pine-core/pine-core.esm.js +1 -2
- package/dist/pine-core/pine-core.js +1 -1
- package/dist/scripts/vscode-custom-data-generator.js +0 -1
- package/dist/types/components/pds-link/pds-link.d.ts +40 -0
- package/dist/types/components/pds-text/pds-text.d.ts +4 -1
- package/dist/types/components.d.ts +768 -123
- package/dist/types/stencil-public-runtime.d.ts +110 -5
- package/dist/types/utils/test/axe.d.ts +5 -4
- package/dist/types/utils/types.d.ts +2 -0
- package/hydrate/index.d.ts +12 -0
- package/hydrate/index.js +5209 -1055
- package/hydrate/index.mjs +5208 -1056
- package/package.json +11 -11
- package/components/attributes.js.map +0 -1
- package/components/closest.js.map +0 -1
- package/components/floating-ui.dom.js.map +0 -1
- package/components/form.js.map +0 -1
- package/components/index.js.map +0 -1
- package/components/index2.js.map +0 -1
- package/components/mock-pds-modal.js.map +0 -1
- package/components/pds-accordion.js.map +0 -1
- package/components/pds-alert.js.map +0 -1
- package/components/pds-avatar.js.map +0 -1
- package/components/pds-box.js.map +0 -1
- package/components/pds-box2.js.map +0 -1
- package/components/pds-button.js.map +0 -1
- package/components/pds-button2.js.map +0 -1
- package/components/pds-checkbox.js.map +0 -1
- package/components/pds-checkbox2.js.map +0 -1
- package/components/pds-chip.js.map +0 -1
- package/components/pds-chip2.js.map +0 -1
- package/components/pds-combobox.js.map +0 -1
- package/components/pds-container.js.map +0 -1
- package/components/pds-copytext.js.map +0 -1
- package/components/pds-divider.js.map +0 -1
- package/components/pds-dropdown-menu-item.js.map +0 -1
- package/components/pds-dropdown-menu-separator.js.map +0 -1
- package/components/pds-dropdown-menu.js.map +0 -1
- package/components/pds-filter.js.map +0 -1
- package/components/pds-filters.js.map +0 -1
- package/components/pds-icon.js.map +0 -1
- package/components/pds-icon2.js.map +0 -1
- package/components/pds-image.js.map +0 -1
- package/components/pds-input.js.map +0 -1
- package/components/pds-link.js.map +0 -1
- package/components/pds-link2.js.map +0 -1
- package/components/pds-loader.js.map +0 -1
- package/components/pds-loader2.js.map +0 -1
- package/components/pds-modal-content.js.map +0 -1
- package/components/pds-modal-footer.js.map +0 -1
- package/components/pds-modal-header.js.map +0 -1
- package/components/pds-modal.js.map +0 -1
- package/components/pds-multiselect.js.map +0 -1
- package/components/pds-popover.js.map +0 -1
- package/components/pds-progress.js.map +0 -1
- package/components/pds-property.js.map +0 -1
- package/components/pds-radio-group.js.map +0 -1
- package/components/pds-radio.js.map +0 -1
- package/components/pds-row.js.map +0 -1
- package/components/pds-select.js.map +0 -1
- package/components/pds-sortable-item.js.map +0 -1
- package/components/pds-sortable.js.map +0 -1
- package/components/pds-switch.js.map +0 -1
- package/components/pds-tab.js.map +0 -1
- package/components/pds-table-body.js.map +0 -1
- package/components/pds-table-cell.js.map +0 -1
- package/components/pds-table-cell2.js.map +0 -1
- package/components/pds-table-head-cell.js.map +0 -1
- package/components/pds-table-head-cell2.js.map +0 -1
- package/components/pds-table-head.js.map +0 -1
- package/components/pds-table-row.js.map +0 -1
- package/components/pds-table.js.map +0 -1
- package/components/pds-tabpanel.js.map +0 -1
- package/components/pds-tabs.js.map +0 -1
- package/components/pds-text.js.map +0 -1
- package/components/pds-text2.js.map +0 -1
- package/components/pds-textarea.js.map +0 -1
- package/components/pds-toast.js.map +0 -1
- package/components/pds-tooltip.js.map +0 -1
- package/components/scroll.js.map +0 -1
- package/components/truncation-tooltip.js.map +0 -1
- package/components/utils.js.map +0 -1
- package/dist/cjs/attributes-oNMnBEnP.js.map +0 -1
- package/dist/cjs/closest-BZXvuB_Y.js.map +0 -1
- package/dist/cjs/floating-ui.dom-BZk7Blsu.js.map +0 -1
- package/dist/cjs/form-CpM5Z8q7.js.map +0 -1
- package/dist/cjs/index-BUvWX8u2.js.map +0 -1
- package/dist/cjs/index-DGBoDsAL.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/mock-pds-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-accordion.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-alert.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-avatar.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-box.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-button.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-checkbox.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-chip.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-combobox.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-container.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-copytext.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-divider.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-dropdown-menu-item.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-dropdown-menu-separator.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-dropdown-menu.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-filter.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-filters.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-icon.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-image.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-input.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-link.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-loader.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-modal-content.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-modal-footer.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-modal-header.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-multiselect.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-popover.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-progress.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-property.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-radio-group.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-radio.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-row.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-select.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-sortable-item.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-sortable.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-switch.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-tab.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-table-body.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-table-cell.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-table-head-cell.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-table-head.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-table-row.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-table.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-tabpanel.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-tabs.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-text.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-textarea.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-toast.entry.cjs.js.map +0 -1
- package/dist/cjs/pds-tooltip.entry.cjs.js.map +0 -1
- package/dist/cjs/pine-core.cjs.js.map +0 -1
- package/dist/cjs/scroll-2XcoE_6Q.js.map +0 -1
- package/dist/cjs/truncation-tooltip-CVzAha5B.js.map +0 -1
- package/dist/cjs/utils-7jx8T2mW.js.map +0 -1
- package/dist/collection/components/_internal/pds-label/pds-label.js.map +0 -1
- package/dist/collection/components/pds-accordion/pds-accordion.js.map +0 -1
- package/dist/collection/components/pds-alert/pds-alert.js.map +0 -1
- package/dist/collection/components/pds-avatar/pds-avatar.js.map +0 -1
- package/dist/collection/components/pds-box/pds-box.js.map +0 -1
- package/dist/collection/components/pds-button/pds-button.js.map +0 -1
- package/dist/collection/components/pds-checkbox/checkbox-interface.js.map +0 -1
- package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +0 -1
- package/dist/collection/components/pds-chip/pds-chip.js.map +0 -1
- package/dist/collection/components/pds-combobox/combobox-interface.js.map +0 -1
- package/dist/collection/components/pds-combobox/pds-combobox.js.map +0 -1
- package/dist/collection/components/pds-container/pds-container.js.map +0 -1
- package/dist/collection/components/pds-copytext/pds-copytext.js.map +0 -1
- package/dist/collection/components/pds-divider/pds-divider.js.map +0 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js.map +0 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js.map +0 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js.map +0 -1
- package/dist/collection/components/pds-filters/pds-filter/filter-interface.js.map +0 -1
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.js.map +0 -1
- package/dist/collection/components/pds-filters/pds-filters.js.map +0 -1
- package/dist/collection/components/pds-image/pds-image.js.map +0 -1
- package/dist/collection/components/pds-input/input-interface.js.map +0 -1
- package/dist/collection/components/pds-input/pds-input.js.map +0 -1
- package/dist/collection/components/pds-link/pds-link.js.map +0 -1
- package/dist/collection/components/pds-loader/pds-loader.js.map +0 -1
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js.map +0 -1
- package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js.map +0 -1
- package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js.map +0 -1
- package/dist/collection/components/pds-modal/pds-modal.js.map +0 -1
- package/dist/collection/components/pds-modal/test/mock-pds-modal.js.map +0 -1
- package/dist/collection/components/pds-multiselect/multiselect-interface.js.map +0 -1
- package/dist/collection/components/pds-multiselect/pds-multiselect.js.map +0 -1
- package/dist/collection/components/pds-popover/pds-popover.js.map +0 -1
- package/dist/collection/components/pds-popover/popover-interface.js.map +0 -1
- package/dist/collection/components/pds-progress/pds-progress.js.map +0 -1
- package/dist/collection/components/pds-property/pds-property.js.map +0 -1
- package/dist/collection/components/pds-radio/pds-radio.js.map +0 -1
- package/dist/collection/components/pds-radio-group/pds-radio-group.js.map +0 -1
- package/dist/collection/components/pds-radio-group/radio-group-interface.js.map +0 -1
- package/dist/collection/components/pds-row/pds-row.js.map +0 -1
- package/dist/collection/components/pds-select/pds-select.js.map +0 -1
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js.map +0 -1
- package/dist/collection/components/pds-sortable/pds-sortable.js.map +0 -1
- package/dist/collection/components/pds-sortable/sortable-interface.js.map +0 -1
- package/dist/collection/components/pds-switch/pds-switch.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table.js.map +0 -1
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js.map +0 -1
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js.map +0 -1
- package/dist/collection/components/pds-tabs/pds-tabs.js.map +0 -1
- package/dist/collection/components/pds-text/pds-text.js.map +0 -1
- package/dist/collection/components/pds-textarea/pds-textarea.js.map +0 -1
- package/dist/collection/components/pds-textarea/textarea-interface.js.map +0 -1
- package/dist/collection/components/pds-toast/pds-toast.js.map +0 -1
- package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +0 -1
- package/dist/collection/global/pine-ui-global.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/utils/attributes.js.map +0 -1
- package/dist/collection/utils/closest.js.map +0 -1
- package/dist/collection/utils/form.js.map +0 -1
- package/dist/collection/utils/interfaces.js.map +0 -1
- package/dist/collection/utils/overlay.js.map +0 -1
- package/dist/collection/utils/scroll.js.map +0 -1
- package/dist/collection/utils/test/axe.js.map +0 -1
- package/dist/collection/utils/truncation-tooltip.js.map +0 -1
- package/dist/collection/utils/types.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/esm/attributes-C0M1gTKv.js.map +0 -1
- package/dist/esm/closest-DnUJodVd.js.map +0 -1
- package/dist/esm/floating-ui.dom-DDtwbwIl.js.map +0 -1
- package/dist/esm/form-C3xDZBme.js.map +0 -1
- package/dist/esm/index-B2f84Zog.js.map +0 -1
- package/dist/esm/index-D4ys0pep.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/mock-pds-modal.entry.js.map +0 -1
- package/dist/esm/pds-accordion.entry.js.map +0 -1
- package/dist/esm/pds-alert.entry.js.map +0 -1
- package/dist/esm/pds-avatar.entry.js.map +0 -1
- package/dist/esm/pds-box.entry.js.map +0 -1
- package/dist/esm/pds-button.entry.js.map +0 -1
- package/dist/esm/pds-checkbox.entry.js.map +0 -1
- package/dist/esm/pds-chip.entry.js.map +0 -1
- package/dist/esm/pds-combobox.entry.js.map +0 -1
- package/dist/esm/pds-container.entry.js.map +0 -1
- package/dist/esm/pds-copytext.entry.js.map +0 -1
- package/dist/esm/pds-divider.entry.js.map +0 -1
- package/dist/esm/pds-dropdown-menu-item.entry.js.map +0 -1
- package/dist/esm/pds-dropdown-menu-separator.entry.js.map +0 -1
- package/dist/esm/pds-dropdown-menu.entry.js.map +0 -1
- package/dist/esm/pds-filter.entry.js.map +0 -1
- package/dist/esm/pds-filters.entry.js.map +0 -1
- package/dist/esm/pds-icon.entry.js.map +0 -1
- package/dist/esm/pds-image.entry.js.map +0 -1
- package/dist/esm/pds-input.entry.js.map +0 -1
- package/dist/esm/pds-link.entry.js.map +0 -1
- package/dist/esm/pds-loader.entry.js.map +0 -1
- package/dist/esm/pds-modal-content.entry.js.map +0 -1
- package/dist/esm/pds-modal-footer.entry.js.map +0 -1
- package/dist/esm/pds-modal-header.entry.js.map +0 -1
- package/dist/esm/pds-modal.entry.js.map +0 -1
- package/dist/esm/pds-multiselect.entry.js.map +0 -1
- package/dist/esm/pds-popover.entry.js.map +0 -1
- package/dist/esm/pds-progress.entry.js.map +0 -1
- package/dist/esm/pds-property.entry.js.map +0 -1
- package/dist/esm/pds-radio-group.entry.js.map +0 -1
- package/dist/esm/pds-radio.entry.js.map +0 -1
- package/dist/esm/pds-row.entry.js.map +0 -1
- package/dist/esm/pds-select.entry.js.map +0 -1
- package/dist/esm/pds-sortable-item.entry.js.map +0 -1
- package/dist/esm/pds-sortable.entry.js.map +0 -1
- package/dist/esm/pds-switch.entry.js.map +0 -1
- package/dist/esm/pds-tab.entry.js.map +0 -1
- package/dist/esm/pds-table-body.entry.js.map +0 -1
- package/dist/esm/pds-table-cell.entry.js.map +0 -1
- package/dist/esm/pds-table-head-cell.entry.js.map +0 -1
- package/dist/esm/pds-table-head.entry.js.map +0 -1
- package/dist/esm/pds-table-row.entry.js.map +0 -1
- package/dist/esm/pds-table.entry.js.map +0 -1
- package/dist/esm/pds-tabpanel.entry.js.map +0 -1
- package/dist/esm/pds-tabs.entry.js.map +0 -1
- package/dist/esm/pds-text.entry.js.map +0 -1
- package/dist/esm/pds-textarea.entry.js.map +0 -1
- package/dist/esm/pds-toast.entry.js.map +0 -1
- package/dist/esm/pds-tooltip.entry.js.map +0 -1
- package/dist/esm/pine-core.js.map +0 -1
- package/dist/esm/scroll-DtgUQhjl.js.map +0 -1
- package/dist/esm/truncation-tooltip-Blk4GigP.js.map +0 -1
- package/dist/esm/utils-tJa4KYNO.js.map +0 -1
- package/dist/esm-es5/attributes-C0M1gTKv.js.map +0 -1
- package/dist/esm-es5/closest-DnUJodVd.js.map +0 -1
- package/dist/esm-es5/floating-ui.dom-DDtwbwIl.js.map +0 -1
- package/dist/esm-es5/form-C3xDZBme.js.map +0 -1
- package/dist/esm-es5/index-B2f84Zog.js +0 -3
- package/dist/esm-es5/index-B2f84Zog.js.map +0 -1
- package/dist/esm-es5/index-D4ys0pep.js.map +0 -1
- package/dist/esm-es5/index.js.map +0 -1
- package/dist/esm-es5/loader.js.map +0 -1
- package/dist/esm-es5/mock-pds-modal.entry.js.map +0 -1
- package/dist/esm-es5/pds-accordion.entry.js.map +0 -1
- package/dist/esm-es5/pds-alert.entry.js.map +0 -1
- package/dist/esm-es5/pds-avatar.entry.js.map +0 -1
- package/dist/esm-es5/pds-box.entry.js.map +0 -1
- package/dist/esm-es5/pds-button.entry.js.map +0 -1
- package/dist/esm-es5/pds-checkbox.entry.js.map +0 -1
- package/dist/esm-es5/pds-chip.entry.js.map +0 -1
- package/dist/esm-es5/pds-combobox.entry.js.map +0 -1
- package/dist/esm-es5/pds-container.entry.js.map +0 -1
- package/dist/esm-es5/pds-copytext.entry.js.map +0 -1
- package/dist/esm-es5/pds-divider.entry.js.map +0 -1
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js.map +0 -1
- package/dist/esm-es5/pds-dropdown-menu-separator.entry.js.map +0 -1
- package/dist/esm-es5/pds-dropdown-menu.entry.js.map +0 -1
- package/dist/esm-es5/pds-filter.entry.js.map +0 -1
- package/dist/esm-es5/pds-filters.entry.js.map +0 -1
- package/dist/esm-es5/pds-icon.entry.js.map +0 -1
- package/dist/esm-es5/pds-image.entry.js.map +0 -1
- package/dist/esm-es5/pds-input.entry.js.map +0 -1
- package/dist/esm-es5/pds-link.entry.js.map +0 -1
- package/dist/esm-es5/pds-loader.entry.js.map +0 -1
- package/dist/esm-es5/pds-modal-content.entry.js.map +0 -1
- package/dist/esm-es5/pds-modal-footer.entry.js.map +0 -1
- package/dist/esm-es5/pds-modal-header.entry.js.map +0 -1
- package/dist/esm-es5/pds-modal.entry.js.map +0 -1
- package/dist/esm-es5/pds-multiselect.entry.js.map +0 -1
- package/dist/esm-es5/pds-popover.entry.js.map +0 -1
- package/dist/esm-es5/pds-progress.entry.js.map +0 -1
- package/dist/esm-es5/pds-property.entry.js.map +0 -1
- package/dist/esm-es5/pds-radio-group.entry.js.map +0 -1
- package/dist/esm-es5/pds-radio.entry.js.map +0 -1
- package/dist/esm-es5/pds-row.entry.js.map +0 -1
- package/dist/esm-es5/pds-select.entry.js.map +0 -1
- package/dist/esm-es5/pds-sortable-item.entry.js.map +0 -1
- package/dist/esm-es5/pds-sortable.entry.js.map +0 -1
- package/dist/esm-es5/pds-switch.entry.js.map +0 -1
- package/dist/esm-es5/pds-tab.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-body.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-cell.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-head.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-row.entry.js.map +0 -1
- package/dist/esm-es5/pds-table.entry.js.map +0 -1
- package/dist/esm-es5/pds-tabpanel.entry.js.map +0 -1
- package/dist/esm-es5/pds-tabs.entry.js.map +0 -1
- package/dist/esm-es5/pds-text.entry.js.map +0 -1
- package/dist/esm-es5/pds-textarea.entry.js.map +0 -1
- package/dist/esm-es5/pds-toast.entry.js.map +0 -1
- package/dist/esm-es5/pds-tooltip.entry.js.map +0 -1
- package/dist/esm-es5/pine-core.js.map +0 -1
- package/dist/esm-es5/scroll-DtgUQhjl.js.map +0 -1
- package/dist/esm-es5/truncation-tooltip-Blk4GigP.js.map +0 -1
- package/dist/esm-es5/utils-tJa4KYNO.js.map +0 -1
- package/dist/pine-core/index.esm.js.map +0 -1
- package/dist/pine-core/loader.esm.js.map +0 -1
- package/dist/pine-core/mock-pds-modal.entry.esm.js.map +0 -1
- package/dist/pine-core/p-037dbdcd.system.entry.js +0 -2
- package/dist/pine-core/p-037dbdcd.system.entry.js.map +0 -1
- package/dist/pine-core/p-06713f25.entry.js +0 -2
- package/dist/pine-core/p-06713f25.entry.js.map +0 -1
- package/dist/pine-core/p-0977b2dd.entry.js +0 -2
- package/dist/pine-core/p-0977b2dd.entry.js.map +0 -1
- package/dist/pine-core/p-099e9f9b.system.entry.js +0 -2
- package/dist/pine-core/p-099e9f9b.system.entry.js.map +0 -1
- package/dist/pine-core/p-0a7115f0.entry.js +0 -2
- package/dist/pine-core/p-0a7115f0.entry.js.map +0 -1
- package/dist/pine-core/p-0c1ab384.system.entry.js +0 -2
- package/dist/pine-core/p-0c1ab384.system.entry.js.map +0 -1
- package/dist/pine-core/p-0dee7449.system.entry.js +0 -2
- package/dist/pine-core/p-0dee7449.system.entry.js.map +0 -1
- package/dist/pine-core/p-102d0dd6.system.entry.js +0 -2
- package/dist/pine-core/p-102d0dd6.system.entry.js.map +0 -1
- package/dist/pine-core/p-10ebecc5.entry.js +0 -2
- package/dist/pine-core/p-10ebecc5.entry.js.map +0 -1
- package/dist/pine-core/p-1598f3af.entry.js +0 -2
- package/dist/pine-core/p-1598f3af.entry.js.map +0 -1
- package/dist/pine-core/p-1c32102e.system.entry.js +0 -2
- package/dist/pine-core/p-1c32102e.system.entry.js.map +0 -1
- package/dist/pine-core/p-2258b31b.system.entry.js +0 -2
- package/dist/pine-core/p-2258b31b.system.entry.js.map +0 -1
- package/dist/pine-core/p-275fa74c.system.entry.js +0 -2
- package/dist/pine-core/p-275fa74c.system.entry.js.map +0 -1
- package/dist/pine-core/p-27fc0737.system.entry.js +0 -2
- package/dist/pine-core/p-27fc0737.system.entry.js.map +0 -1
- package/dist/pine-core/p-32ad2807.system.entry.js +0 -2
- package/dist/pine-core/p-32ad2807.system.entry.js.map +0 -1
- package/dist/pine-core/p-33544ed1.system.entry.js +0 -2
- package/dist/pine-core/p-33544ed1.system.entry.js.map +0 -1
- package/dist/pine-core/p-34763aae.system.entry.js +0 -2
- package/dist/pine-core/p-34763aae.system.entry.js.map +0 -1
- package/dist/pine-core/p-36070380.system.entry.js +0 -2
- package/dist/pine-core/p-36070380.system.entry.js.map +0 -1
- package/dist/pine-core/p-3625bc45.entry.js +0 -2
- package/dist/pine-core/p-3625bc45.entry.js.map +0 -1
- package/dist/pine-core/p-3b087f24.entry.js +0 -2
- package/dist/pine-core/p-3b087f24.entry.js.map +0 -1
- package/dist/pine-core/p-3f66c070.entry.js +0 -2
- package/dist/pine-core/p-3f66c070.entry.js.map +0 -1
- package/dist/pine-core/p-407aad2b.system.entry.js +0 -2
- package/dist/pine-core/p-407aad2b.system.entry.js.map +0 -1
- package/dist/pine-core/p-44ca9b92.entry.js +0 -2
- package/dist/pine-core/p-44ca9b92.entry.js.map +0 -1
- package/dist/pine-core/p-476db791.entry.js +0 -2
- package/dist/pine-core/p-476db791.entry.js.map +0 -1
- package/dist/pine-core/p-4780403d.system.entry.js +0 -2
- package/dist/pine-core/p-4780403d.system.entry.js.map +0 -1
- package/dist/pine-core/p-48ac6873.entry.js +0 -2
- package/dist/pine-core/p-48ac6873.entry.js.map +0 -1
- package/dist/pine-core/p-4FBDaIH3.system.js.map +0 -1
- package/dist/pine-core/p-4ede20e6.entry.js +0 -2
- package/dist/pine-core/p-4ede20e6.entry.js.map +0 -1
- package/dist/pine-core/p-4f2a48cb.system.entry.js +0 -2
- package/dist/pine-core/p-4f2a48cb.system.entry.js.map +0 -1
- package/dist/pine-core/p-4f440dd4.entry.js +0 -2
- package/dist/pine-core/p-4f440dd4.entry.js.map +0 -1
- package/dist/pine-core/p-4jrX5aRd.system.js.map +0 -1
- package/dist/pine-core/p-51e47e6e.system.entry.js +0 -2
- package/dist/pine-core/p-51e47e6e.system.entry.js.map +0 -1
- package/dist/pine-core/p-52411757.system.entry.js +0 -2
- package/dist/pine-core/p-52411757.system.entry.js.map +0 -1
- package/dist/pine-core/p-557005a0.entry.js +0 -2
- package/dist/pine-core/p-557005a0.entry.js.map +0 -1
- package/dist/pine-core/p-5e117b98.entry.js +0 -2
- package/dist/pine-core/p-5e117b98.entry.js.map +0 -1
- package/dist/pine-core/p-639012b9.system.entry.js +0 -2
- package/dist/pine-core/p-639012b9.system.entry.js.map +0 -1
- package/dist/pine-core/p-643b01ad.entry.js +0 -2
- package/dist/pine-core/p-643b01ad.entry.js.map +0 -1
- package/dist/pine-core/p-6623b257.system.entry.js +0 -2
- package/dist/pine-core/p-6623b257.system.entry.js.map +0 -1
- package/dist/pine-core/p-74ff4d96.system.entry.js +0 -2
- package/dist/pine-core/p-74ff4d96.system.entry.js.map +0 -1
- package/dist/pine-core/p-77327e1b.system.entry.js +0 -2
- package/dist/pine-core/p-77327e1b.system.entry.js.map +0 -1
- package/dist/pine-core/p-774ecbd4.entry.js +0 -2
- package/dist/pine-core/p-774ecbd4.entry.js.map +0 -1
- package/dist/pine-core/p-7926dc93.entry.js +0 -2
- package/dist/pine-core/p-7926dc93.entry.js.map +0 -1
- package/dist/pine-core/p-7a3eccef.entry.js +0 -2
- package/dist/pine-core/p-7a3eccef.entry.js.map +0 -1
- package/dist/pine-core/p-7acb131c.system.entry.js +0 -2
- package/dist/pine-core/p-7acb131c.system.entry.js.map +0 -1
- package/dist/pine-core/p-81a3e32b.entry.js +0 -2
- package/dist/pine-core/p-81a3e32b.entry.js.map +0 -1
- package/dist/pine-core/p-848763b6.system.entry.js +0 -2
- package/dist/pine-core/p-848763b6.system.entry.js.map +0 -1
- package/dist/pine-core/p-85e889c3.system.entry.js.map +0 -1
- package/dist/pine-core/p-8669e0e3.system.entry.js +0 -2
- package/dist/pine-core/p-8669e0e3.system.entry.js.map +0 -1
- package/dist/pine-core/p-8735cb58.entry.js +0 -2
- package/dist/pine-core/p-8735cb58.entry.js.map +0 -1
- package/dist/pine-core/p-8b3aeaf9.system.entry.js +0 -2
- package/dist/pine-core/p-8b3aeaf9.system.entry.js.map +0 -1
- package/dist/pine-core/p-8b7aa53d.entry.js +0 -2
- package/dist/pine-core/p-8b7aa53d.entry.js.map +0 -1
- package/dist/pine-core/p-8c97fcb1.entry.js +0 -2
- package/dist/pine-core/p-8c97fcb1.entry.js.map +0 -1
- package/dist/pine-core/p-8c9f8ca6.entry.js +0 -2
- package/dist/pine-core/p-8c9f8ca6.entry.js.map +0 -1
- package/dist/pine-core/p-904e8d9d.system.entry.js +0 -2
- package/dist/pine-core/p-904e8d9d.system.entry.js.map +0 -1
- package/dist/pine-core/p-91bea052.entry.js +0 -2
- package/dist/pine-core/p-91bea052.entry.js.map +0 -1
- package/dist/pine-core/p-9230df2a.system.entry.js +0 -2
- package/dist/pine-core/p-9230df2a.system.entry.js.map +0 -1
- package/dist/pine-core/p-94a09b06.entry.js +0 -2
- package/dist/pine-core/p-94a09b06.entry.js.map +0 -1
- package/dist/pine-core/p-94d4d1de.entry.js +0 -3
- package/dist/pine-core/p-94d4d1de.entry.js.map +0 -1
- package/dist/pine-core/p-984db3fc.entry.js +0 -2
- package/dist/pine-core/p-984db3fc.entry.js.map +0 -1
- package/dist/pine-core/p-988d1723.system.entry.js +0 -2
- package/dist/pine-core/p-988d1723.system.entry.js.map +0 -1
- package/dist/pine-core/p-98dabbbf.entry.js +0 -2
- package/dist/pine-core/p-98dabbbf.entry.js.map +0 -1
- package/dist/pine-core/p-9a3c9d15.system.entry.js +0 -2
- package/dist/pine-core/p-9a3c9d15.system.entry.js.map +0 -1
- package/dist/pine-core/p-9b3aedeb.system.entry.js +0 -2
- package/dist/pine-core/p-9b3aedeb.system.entry.js.map +0 -1
- package/dist/pine-core/p-9ce56712.system.entry.js +0 -2
- package/dist/pine-core/p-9ce56712.system.entry.js.map +0 -1
- package/dist/pine-core/p-9e48d1ea.system.entry.js +0 -2
- package/dist/pine-core/p-9e48d1ea.system.entry.js.map +0 -1
- package/dist/pine-core/p-9e5c58c6.entry.js +0 -8
- package/dist/pine-core/p-9e5c58c6.entry.js.map +0 -1
- package/dist/pine-core/p-B-I9BXj1.system.js.map +0 -1
- package/dist/pine-core/p-B-nnQT8K.system.js.map +0 -1
- package/dist/pine-core/p-B1u-QvFn.system.js.map +0 -1
- package/dist/pine-core/p-B2f84Zog.js +0 -3
- package/dist/pine-core/p-B2f84Zog.js.map +0 -1
- package/dist/pine-core/p-BC7kndqW.system.js.map +0 -1
- package/dist/pine-core/p-BFAhunk3.system.js.map +0 -1
- package/dist/pine-core/p-BG6uGRQj.system.js.map +0 -1
- package/dist/pine-core/p-BJQiqlL7.system.js.map +0 -1
- package/dist/pine-core/p-BLg534X3.system.js.map +0 -1
- package/dist/pine-core/p-BNSGedhN.js.map +0 -1
- package/dist/pine-core/p-BT-iITx_.system.js.map +0 -1
- package/dist/pine-core/p-BTsajr3h.system.js.map +0 -1
- package/dist/pine-core/p-BcCpTdwz.system.js.map +0 -1
- package/dist/pine-core/p-BhQhw0S3.system.js.map +0 -1
- package/dist/pine-core/p-Bkk7A0W9.system.js.map +0 -1
- package/dist/pine-core/p-BmOvsRx7.system.js.map +0 -1
- package/dist/pine-core/p-BrLs99ML.system.js.map +0 -1
- package/dist/pine-core/p-BtfqzsXS.system.js.map +0 -1
- package/dist/pine-core/p-BvJkwltO.system.js.map +0 -1
- package/dist/pine-core/p-BvV4-w8H.system.js.map +0 -1
- package/dist/pine-core/p-C0M1gTKv.js.map +0 -1
- package/dist/pine-core/p-C3TuSlI7.system.js.map +0 -1
- package/dist/pine-core/p-C3xDZBme.js.map +0 -1
- package/dist/pine-core/p-C5jXV4WJ.system.js.map +0 -1
- package/dist/pine-core/p-C5qxTQb1.system.js.map +0 -1
- package/dist/pine-core/p-C62JIZmE.system.js.map +0 -1
- package/dist/pine-core/p-C6yvFUy3.system.js.map +0 -1
- package/dist/pine-core/p-CCRLZO4N.system.js.map +0 -1
- package/dist/pine-core/p-CD-PjU09.system.js.map +0 -1
- package/dist/pine-core/p-CI-oL5TR.system.js.map +0 -1
- package/dist/pine-core/p-CIbXcB4O.system.js.map +0 -1
- package/dist/pine-core/p-CIe6-SsT.system.js.map +0 -1
- package/dist/pine-core/p-CRCxGYgw.system.js.map +0 -1
- package/dist/pine-core/p-CSVND2Gt.system.js.map +0 -1
- package/dist/pine-core/p-CUEE9EMe.system.js.map +0 -1
- package/dist/pine-core/p-CXImmjF5.system.js.map +0 -1
- package/dist/pine-core/p-C_g3FnvJ.system.js.map +0 -1
- package/dist/pine-core/p-CmNZDo8q.system.js.map +0 -1
- package/dist/pine-core/p-Cn98QWqb.system.js.map +0 -1
- package/dist/pine-core/p-Cqgvmo2o.system.js +0 -2
- package/dist/pine-core/p-Cqgvmo2o.system.js.map +0 -1
- package/dist/pine-core/p-Cu24FhMY.system.js.map +0 -1
- package/dist/pine-core/p-CwEjYXkp.system.js.map +0 -1
- package/dist/pine-core/p-D4ys0pep.js.map +0 -1
- package/dist/pine-core/p-DA3fC_kX.system.js.map +0 -1
- package/dist/pine-core/p-DDtwbwIl.js.map +0 -1
- package/dist/pine-core/p-DG_z5J3G.system.js.map +0 -1
- package/dist/pine-core/p-DL3JCnpO.system.js.map +0 -1
- package/dist/pine-core/p-DSlRwx2e.system.js.map +0 -1
- package/dist/pine-core/p-DVra397g.system.js.map +0 -1
- package/dist/pine-core/p-DYlgS5d7.system.js +0 -3
- package/dist/pine-core/p-DYlgS5d7.system.js.map +0 -1
- package/dist/pine-core/p-DeVgpUr5.system.js.map +0 -1
- package/dist/pine-core/p-DnUJodVd.js.map +0 -1
- package/dist/pine-core/p-DtgUQhjl.js.map +0 -1
- package/dist/pine-core/p-Dxrjs-vy.system.js.map +0 -1
- package/dist/pine-core/p-H7VDsgsr.system.js.map +0 -1
- package/dist/pine-core/p-JwuGXyPc.system.js.map +0 -1
- package/dist/pine-core/p-U1PewsWZ.system.js.map +0 -1
- package/dist/pine-core/p-UILRZV99.system.js.map +0 -1
- package/dist/pine-core/p-V-ORMWaS.system.js.map +0 -1
- package/dist/pine-core/p-W7E5TRNL.system.js.map +0 -1
- package/dist/pine-core/p-YWpyar7R.system.js.map +0 -1
- package/dist/pine-core/p-Yfy85hdp.system.js.map +0 -1
- package/dist/pine-core/p-ZrPaY2bh.system.js.map +0 -1
- package/dist/pine-core/p-a30b386f.entry.js +0 -2
- package/dist/pine-core/p-a30b386f.entry.js.map +0 -1
- package/dist/pine-core/p-a5014407.system.entry.js +0 -2
- package/dist/pine-core/p-a5014407.system.entry.js.map +0 -1
- package/dist/pine-core/p-a695ff4c.system.entry.js +0 -2
- package/dist/pine-core/p-a695ff4c.system.entry.js.map +0 -1
- package/dist/pine-core/p-a8c49f8e.entry.js +0 -2
- package/dist/pine-core/p-a8c49f8e.entry.js.map +0 -1
- package/dist/pine-core/p-ae74a4b6.system.entry.js +0 -2
- package/dist/pine-core/p-ae74a4b6.system.entry.js.map +0 -1
- package/dist/pine-core/p-b1cde22a.entry.js +0 -2
- package/dist/pine-core/p-b1cde22a.entry.js.map +0 -1
- package/dist/pine-core/p-b9340fb1.system.entry.js +0 -2
- package/dist/pine-core/p-b9340fb1.system.entry.js.map +0 -1
- package/dist/pine-core/p-b9fcc3f8.system.entry.js +0 -2
- package/dist/pine-core/p-b9fcc3f8.system.entry.js.map +0 -1
- package/dist/pine-core/p-bIvjoz7p.system.js.map +0 -1
- package/dist/pine-core/p-bc8f61d1.entry.js +0 -2
- package/dist/pine-core/p-bc8f61d1.entry.js.map +0 -1
- package/dist/pine-core/p-bea013d1.entry.js +0 -2
- package/dist/pine-core/p-bea013d1.entry.js.map +0 -1
- package/dist/pine-core/p-c026479a.system.entry.js +0 -2
- package/dist/pine-core/p-c026479a.system.entry.js.map +0 -1
- package/dist/pine-core/p-c9784d20.system.entry.js +0 -4
- package/dist/pine-core/p-c9784d20.system.entry.js.map +0 -1
- package/dist/pine-core/p-c9b06db1.system.entry.js +0 -2
- package/dist/pine-core/p-c9b06db1.system.entry.js.map +0 -1
- package/dist/pine-core/p-cab14421.entry.js +0 -2
- package/dist/pine-core/p-cab14421.entry.js.map +0 -1
- package/dist/pine-core/p-d5fcdcdd.entry.js +0 -2
- package/dist/pine-core/p-d5fcdcdd.entry.js.map +0 -1
- package/dist/pine-core/p-d86e20b5.system.entry.js +0 -2
- package/dist/pine-core/p-d86e20b5.system.entry.js.map +0 -1
- package/dist/pine-core/p-d9354ad3.system.entry.js +0 -2
- package/dist/pine-core/p-d9354ad3.system.entry.js.map +0 -1
- package/dist/pine-core/p-dab76f15.entry.js +0 -2
- package/dist/pine-core/p-dab76f15.entry.js.map +0 -1
- package/dist/pine-core/p-db16d1fe.entry.js +0 -2
- package/dist/pine-core/p-db16d1fe.entry.js.map +0 -1
- package/dist/pine-core/p-db63f83b.system.entry.js +0 -2
- package/dist/pine-core/p-db63f83b.system.entry.js.map +0 -1
- package/dist/pine-core/p-dd3ea74e.system.entry.js +0 -2
- package/dist/pine-core/p-dd3ea74e.system.entry.js.map +0 -1
- package/dist/pine-core/p-ddb48534.entry.js +0 -2
- package/dist/pine-core/p-ddb48534.entry.js.map +0 -1
- package/dist/pine-core/p-de9f43b6.entry.js +0 -2
- package/dist/pine-core/p-de9f43b6.entry.js.map +0 -1
- package/dist/pine-core/p-e25da259.entry.js +0 -2
- package/dist/pine-core/p-e25da259.entry.js.map +0 -1
- package/dist/pine-core/p-e288dc89.system.entry.js +0 -2
- package/dist/pine-core/p-e288dc89.system.entry.js.map +0 -1
- package/dist/pine-core/p-ea5c42b8.system.entry.js +0 -2
- package/dist/pine-core/p-ea5c42b8.system.entry.js.map +0 -1
- package/dist/pine-core/p-ed5d5be6.entry.js +0 -2
- package/dist/pine-core/p-ed5d5be6.entry.js.map +0 -1
- package/dist/pine-core/p-ef081f0f.entry.js +0 -2
- package/dist/pine-core/p-ef081f0f.entry.js.map +0 -1
- package/dist/pine-core/p-f09c5021.entry.js +0 -2
- package/dist/pine-core/p-f09c5021.entry.js.map +0 -1
- package/dist/pine-core/p-f201cf57.entry.js +0 -2
- package/dist/pine-core/p-f201cf57.entry.js.map +0 -1
- package/dist/pine-core/p-f20ab351.entry.js +0 -2
- package/dist/pine-core/p-f20ab351.entry.js.map +0 -1
- package/dist/pine-core/p-f2798581.entry.js +0 -2
- package/dist/pine-core/p-f2798581.entry.js.map +0 -1
- package/dist/pine-core/p-f2ca0cf8.entry.js +0 -2
- package/dist/pine-core/p-f2ca0cf8.entry.js.map +0 -1
- package/dist/pine-core/p-f77fad86.system.entry.js +0 -2
- package/dist/pine-core/p-f77fad86.system.entry.js.map +0 -1
- package/dist/pine-core/p-ff472f7c.system.entry.js +0 -2
- package/dist/pine-core/p-ff472f7c.system.entry.js.map +0 -1
- package/dist/pine-core/p-ff5b2c90.entry.js +0 -2
- package/dist/pine-core/p-ff5b2c90.entry.js.map +0 -1
- package/dist/pine-core/p-g4mFEadi.system.js.map +0 -1
- package/dist/pine-core/p-kYMYDfJY.system.js.map +0 -1
- package/dist/pine-core/p-tJa4KYNO.js.map +0 -1
- package/dist/pine-core/p-vLxlRu4_.system.js.map +0 -1
- package/dist/pine-core/p-ziMh7dwl.system.js.map +0 -1
- package/dist/pine-core/pds-accordion.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-alert.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-avatar.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-box.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-button.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-checkbox.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-chip.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-combobox.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-container.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-copytext.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-divider.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-dropdown-menu-item.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-dropdown-menu-separator.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-dropdown-menu.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-filter.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-filters.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-icon.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-image.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-input.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-link.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-loader.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-modal-content.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-modal-footer.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-modal-header.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-modal.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-multiselect.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-popover.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-progress.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-property.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-radio-group.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-radio.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-row.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-select.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-sortable-item.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-sortable.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-switch.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-tab.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-table-body.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-table-cell.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-table-head-cell.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-table-head.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-table-row.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-table.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-tabpanel.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-tabs.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-text.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-textarea.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-toast.entry.esm.js.map +0 -1
- package/dist/pine-core/pds-tooltip.entry.esm.js.map +0 -1
- package/dist/pine-core/pine-core.esm.js.map +0 -1
- package/dist/scripts/vscode-custom-data-generator.js.map +0 -1
- package/dist/vscode.html-data.json +0 -10551
|
@@ -1,1087 +1 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shift, b as size } from './floating-ui.dom.js';
|
|
3
|
-
import { d as debounceEvent } from './utils.js';
|
|
4
|
-
import { i as isSpecTest, a as assignDescription, m as messageId } from './form.js';
|
|
5
|
-
import { g as enlarge, h as danger } from './index2.js';
|
|
6
|
-
import { d as defineCustomElement$7 } from './pds-box2.js';
|
|
7
|
-
import { d as defineCustomElement$6 } from './pds-checkbox2.js';
|
|
8
|
-
import { d as defineCustomElement$5 } from './pds-chip2.js';
|
|
9
|
-
import { d as defineCustomElement$4 } from './pds-icon2.js';
|
|
10
|
-
import { d as defineCustomElement$3 } from './pds-loader2.js';
|
|
11
|
-
import { d as defineCustomElement$2 } from './pds-text2.js';
|
|
12
|
-
|
|
13
|
-
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-medium);gap:var(--pine-dimension-xs);-ms-flex-pack:justify;justify-content:space-between;letter-spacing:var(--pine-letter-spacing);min-height:var(--pine-dimension-450);padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;text-align:start;-webkit-transition:border-color var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, box-shadow var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) 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__pill-list{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-2xs)}.pds-multiselect__pill-list--inline{-ms-flex:1;flex:1;min-width:0}.pds-multiselect__pill-list--below{-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-multiselect__pill-overflow{color:var(--pine-color-text-muted);font:var(--pine-typography-body-sm-medium);white-space:nowrap}.pds-multiselect__trigger--pill-inline{-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-2xs);min-height:var(--pine-dimension-450);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm)}.pds-multiselect__trigger--pill-inline.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger--pill-inline:focus-within: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--pill-inline.pds-multiselect__trigger--invalid:focus-within{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__pill-toggle{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border-width:0;cursor:pointer;display:-ms-flexbox;display:flex;padding:0}.pds-multiselect__pill-toggle:focus{outline:3px solid transparent}.pds-multiselect__trigger--disabled .pds-multiselect__pill-toggle{cursor:not-allowed;pointer-events:none}.pds-multiselect__panel{background:var(--pine-color-background-overlay);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__group-header{color:var(--pine-color-text-muted);display:block;font:var(--pine-typography-body-sm-medium);letter-spacing:var(--pine-letter-spacing);padding:var(--pine-dimension-sm) var(--pine-dimension-xs) var(--pine-dimension-2xs);text-transform:uppercase}.pds-multiselect__listbox>li:first-child>.pds-multiselect__group-header{-webkit-padding-before:var(--pine-dimension-xs);padding-block-start:var(--pine-dimension-xs)}.pds-multiselect__group-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.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:not(.pds-multiselect__option--disabled),.pds-multiselect__option.pds-multiselect__option--highlighted:not(.pds-multiselect__option--disabled){background:var(--pine-color-background-muted)}.pds-multiselect__option.pds-multiselect__option--disabled{cursor:not-allowed;opacity:0.5}.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}";
|
|
14
|
-
|
|
15
|
-
const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect extends HTMLElement {
|
|
16
|
-
constructor(registerHost) {
|
|
17
|
-
super();
|
|
18
|
-
if (registerHost !== false) {
|
|
19
|
-
this.__registerHost();
|
|
20
|
-
}
|
|
21
|
-
this.__attachShadow();
|
|
22
|
-
this.pdsMultiselectChange = createEvent(this, "pdsMultiselectChange", 7);
|
|
23
|
-
this.pdsMultiselectSearch = createEvent(this, "pdsMultiselectSearch", 7);
|
|
24
|
-
this.pdsMultiselectLoadOptions = createEvent(this, "pdsMultiselectLoadOptions", 7);
|
|
25
|
-
this.pdsMultiselectCreate = createEvent(this, "pdsMultiselectCreate", 7);
|
|
26
|
-
this.pdsMultiselectDismiss = createEvent(this, "pdsMultiselectDismiss", 7);
|
|
27
|
-
/**
|
|
28
|
-
* Placeholder text for the input field.
|
|
29
|
-
*/
|
|
30
|
-
this.placeholder = 'Select...';
|
|
31
|
-
/**
|
|
32
|
-
* Placeholder text for the search input inside the dropdown panel.
|
|
33
|
-
* @default 'Find...'
|
|
34
|
-
*/
|
|
35
|
-
this.searchPlaceholder = 'Find...';
|
|
36
|
-
/**
|
|
37
|
-
* Whether to close the panel after an option is selected.
|
|
38
|
-
* Defaults to `false` (panel stays open for multi-select).
|
|
39
|
-
*/
|
|
40
|
-
this.closePanelOnSelect = false;
|
|
41
|
-
/**
|
|
42
|
-
* Array of selected option values.
|
|
43
|
-
*/
|
|
44
|
-
this.value = [];
|
|
45
|
-
/**
|
|
46
|
-
* Determines whether or not the multiselect is disabled.
|
|
47
|
-
*/
|
|
48
|
-
this.disabled = false;
|
|
49
|
-
/**
|
|
50
|
-
* HTTP method for async requests.
|
|
51
|
-
*/
|
|
52
|
-
this.asyncMethod = 'GET';
|
|
53
|
-
/**
|
|
54
|
-
* Debounce delay in milliseconds for search/fetch.
|
|
55
|
-
*/
|
|
56
|
-
this.debounce = 300;
|
|
57
|
-
/**
|
|
58
|
-
* Timeout in milliseconds for async fetch requests.
|
|
59
|
-
*/
|
|
60
|
-
this.fetchTimeout = 30000;
|
|
61
|
-
/**
|
|
62
|
-
* Maximum height of the dropdown before scrolling.
|
|
63
|
-
*/
|
|
64
|
-
this.maxHeight = '300px';
|
|
65
|
-
/**
|
|
66
|
-
* Width of the trigger button (and reference for dropdown positioning).
|
|
67
|
-
*/
|
|
68
|
-
this.triggerWidth = '100%';
|
|
69
|
-
/**
|
|
70
|
-
* Minimum width of the dropdown panel.
|
|
71
|
-
*/
|
|
72
|
-
this.minWidth = '250px';
|
|
73
|
-
/**
|
|
74
|
-
* Visually hides the label but keeps it accessible.
|
|
75
|
-
*/
|
|
76
|
-
this.hideLabel = false;
|
|
77
|
-
/**
|
|
78
|
-
* Hides the selected items summary section in the dropdown panel.
|
|
79
|
-
*/
|
|
80
|
-
this.hideSelectedItems = false;
|
|
81
|
-
/**
|
|
82
|
-
* Display mode for selected items outside the dropdown panel.
|
|
83
|
-
* `'count'` shows "N item(s)" text in the trigger (default). `'pill'` renders
|
|
84
|
-
* selected items as dismissible pds-chip tags.
|
|
85
|
-
* @default 'count'
|
|
86
|
-
*/
|
|
87
|
-
this.selectedDisplay = 'count';
|
|
88
|
-
/**
|
|
89
|
-
* Position of pill chips when `selectedDisplay` is `'pill'`.
|
|
90
|
-
* `'inline'` places chips inside the trigger; `'below'` places chips in a
|
|
91
|
-
* flex-wrap row directly below the trigger.
|
|
92
|
-
* @default 'inline'
|
|
93
|
-
*/
|
|
94
|
-
this.pillPosition = 'inline';
|
|
95
|
-
/**
|
|
96
|
-
* Maximum chips shown inline before collapsing to a "+N more" badge.
|
|
97
|
-
* Only applies when `selectedDisplay='pill'` and `pillPosition='inline'`.
|
|
98
|
-
* @default 3
|
|
99
|
-
*/
|
|
100
|
-
this.maxInlinePills = 3;
|
|
101
|
-
/**
|
|
102
|
-
* If true, the multiselect is required.
|
|
103
|
-
*/
|
|
104
|
-
this.required = false;
|
|
105
|
-
/**
|
|
106
|
-
* Whether the component is currently loading async options.
|
|
107
|
-
*/
|
|
108
|
-
this.loading = false;
|
|
109
|
-
/**
|
|
110
|
-
* CSRF header name for authenticated requests. Defaults to `X-CSRF-Token`.
|
|
111
|
-
*/
|
|
112
|
-
this.csrfHeaderName = 'X-CSRF-Token';
|
|
113
|
-
// Internal state
|
|
114
|
-
this.isOpen = false;
|
|
115
|
-
this.searchQuery = '';
|
|
116
|
-
this.highlightedIndex = -1;
|
|
117
|
-
this.internalOptions = [];
|
|
118
|
-
this.selectedItems = [];
|
|
119
|
-
this.currentPage = 1;
|
|
120
|
-
this.hasMore = false;
|
|
121
|
-
this.creating = false;
|
|
122
|
-
this.removalAnnouncement = '';
|
|
123
|
-
// Flag to prevent focusout from closing during open transition
|
|
124
|
-
this.isOpening = false;
|
|
125
|
-
// Flag to suppress dismiss event when panel closes due to selection (not user dismissal)
|
|
126
|
-
this.isClosingViaSelection = false;
|
|
127
|
-
// Flag to track if initial async fetch has been triggered (prevents double fetch)
|
|
128
|
-
this.initialAsyncFetchTriggered = false;
|
|
129
|
-
// Flag to track if value changed during loading and needs resolution after fetch completes
|
|
130
|
-
this.pendingUnresolvedFetch = false;
|
|
131
|
-
this.handleTriggerClick = (e) => {
|
|
132
|
-
if (this.disabled)
|
|
133
|
-
return;
|
|
134
|
-
// In inline-pill mode, ignore clicks that originated inside a pds-chip.
|
|
135
|
-
// Chip close-button clicks are handled by handlePillRemove; chip body clicks should not toggle the panel.
|
|
136
|
-
if (e && this.selectedDisplay === 'pill' && this.pillPosition === 'inline') {
|
|
137
|
-
const fromChip = e.composedPath().some(el => { var _a; return ((_a = el.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'pds-chip'; });
|
|
138
|
-
if (fromChip)
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
if (this.isOpen) {
|
|
142
|
-
this.closeDropdown();
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
this.openDropdown();
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
this.handleTriggerKeyDown = (e) => {
|
|
149
|
-
// Ignore keydown events that bubbled from child elements (e.g. chip close buttons).
|
|
150
|
-
// Only handle keys when the trigger itself is the event target.
|
|
151
|
-
if (e.target !== this.triggerEl)
|
|
152
|
-
return;
|
|
153
|
-
switch (e.key) {
|
|
154
|
-
case 'ArrowDown':
|
|
155
|
-
case 'ArrowUp':
|
|
156
|
-
case 'Enter':
|
|
157
|
-
case ' ':
|
|
158
|
-
e.preventDefault();
|
|
159
|
-
if (!this.isOpen) {
|
|
160
|
-
this.openDropdown();
|
|
161
|
-
}
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
this.handleSearchInputChange = (e) => {
|
|
166
|
-
const target = e.target;
|
|
167
|
-
this.searchQuery = target.value;
|
|
168
|
-
this.highlightedIndex = -1;
|
|
169
|
-
// Emit search event for consumer-managed async
|
|
170
|
-
this.pdsMultiselectSearch.emit({ query: this.searchQuery });
|
|
171
|
-
// Fetch from async URL if configured
|
|
172
|
-
if (this.asyncUrl) {
|
|
173
|
-
this.debouncedFetchAsyncOptions(this.searchQuery, 1);
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
|
-
this.handleSearchInputKeyDown = (e) => {
|
|
177
|
-
var _a, _b, _c;
|
|
178
|
-
const filteredOptions = this.getFilteredOptions();
|
|
179
|
-
switch (e.key) {
|
|
180
|
-
case 'ArrowDown': {
|
|
181
|
-
e.preventDefault();
|
|
182
|
-
let nextIndex = this.highlightedIndex + 1;
|
|
183
|
-
while (nextIndex < filteredOptions.length && ((_a = filteredOptions[nextIndex]) === null || _a === void 0 ? void 0 : _a.disabled)) {
|
|
184
|
-
nextIndex++;
|
|
185
|
-
}
|
|
186
|
-
if (nextIndex < filteredOptions.length) {
|
|
187
|
-
this.highlightedIndex = nextIndex;
|
|
188
|
-
this.scrollOptionIntoView();
|
|
189
|
-
}
|
|
190
|
-
break;
|
|
191
|
-
}
|
|
192
|
-
case 'ArrowUp': {
|
|
193
|
-
e.preventDefault();
|
|
194
|
-
// Clamp to 0 so ArrowUp from uninitialised state (-1) attempts the first option;
|
|
195
|
-
// stays at -1 if that option is disabled.
|
|
196
|
-
let prevIndex = Math.max(this.highlightedIndex - 1, 0);
|
|
197
|
-
while (prevIndex > 0 && ((_b = filteredOptions[prevIndex]) === null || _b === void 0 ? void 0 : _b.disabled)) {
|
|
198
|
-
prevIndex--;
|
|
199
|
-
}
|
|
200
|
-
if (!((_c = filteredOptions[prevIndex]) === null || _c === void 0 ? void 0 : _c.disabled)) {
|
|
201
|
-
this.highlightedIndex = prevIndex;
|
|
202
|
-
this.scrollOptionIntoView();
|
|
203
|
-
}
|
|
204
|
-
break;
|
|
205
|
-
}
|
|
206
|
-
case 'Enter':
|
|
207
|
-
e.preventDefault();
|
|
208
|
-
if (this.highlightedIndex >= 0) {
|
|
209
|
-
const option = filteredOptions[this.highlightedIndex];
|
|
210
|
-
if (option) {
|
|
211
|
-
this.selectOption(option);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
break;
|
|
215
|
-
// Escape is handled by the global @Listen('keydown') handler
|
|
216
|
-
case 'Tab':
|
|
217
|
-
this.closeDropdown();
|
|
218
|
-
break;
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
this.handleContainerFocusOut = () => {
|
|
222
|
-
// Use setTimeout to delay the check - this allows click events and focus transitions to complete
|
|
223
|
-
// before we decide to close the dropdown
|
|
224
|
-
setTimeout(() => {
|
|
225
|
-
var _a;
|
|
226
|
-
// Don't close if we're in the middle of opening, already closed,
|
|
227
|
-
// or closing due to a selection (not a user dismissal)
|
|
228
|
-
if (!this.isOpen || this.isOpening || this.isClosingViaSelection)
|
|
229
|
-
return;
|
|
230
|
-
const activeElement = document.activeElement;
|
|
231
|
-
// Check if focus is within our component's shadow root
|
|
232
|
-
const isInShadowRoot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.contains(activeElement);
|
|
233
|
-
// Also check if focus is on the host element itself
|
|
234
|
-
const isOnHost = activeElement === this.el;
|
|
235
|
-
if (!isInShadowRoot && !isOnHost) {
|
|
236
|
-
this.pdsMultiselectDismiss.emit();
|
|
237
|
-
this.closeDropdown();
|
|
238
|
-
}
|
|
239
|
-
}, 0);
|
|
240
|
-
};
|
|
241
|
-
this.handleOptionMouseDown = (option) => (e) => {
|
|
242
|
-
e.preventDefault(); // Prevent focus change
|
|
243
|
-
this.toggleOption(option);
|
|
244
|
-
};
|
|
245
|
-
this.handleOptionMouseEnter = (index, option) => () => {
|
|
246
|
-
if (option.disabled)
|
|
247
|
-
return;
|
|
248
|
-
this.highlightedIndex = index;
|
|
249
|
-
};
|
|
250
|
-
this.handleScroll = (e) => {
|
|
251
|
-
if (!this.asyncUrl || !this.hasMore || this.loading)
|
|
252
|
-
return;
|
|
253
|
-
const target = e.target;
|
|
254
|
-
const scrollBottom = target.scrollHeight - target.scrollTop - target.clientHeight;
|
|
255
|
-
// Load more when near bottom (within 50px)
|
|
256
|
-
if (scrollBottom < 50) {
|
|
257
|
-
this.pdsMultiselectLoadOptions.emit({
|
|
258
|
-
query: this.searchQuery,
|
|
259
|
-
page: this.currentPage + 1,
|
|
260
|
-
});
|
|
261
|
-
this.debouncedFetchAsyncOptions(this.searchQuery, this.currentPage + 1);
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
|
-
this.handlePillRemove = (item) => () => {
|
|
265
|
-
var _a, _b;
|
|
266
|
-
if (this.disabled)
|
|
267
|
-
return;
|
|
268
|
-
const optionId = String(item.id);
|
|
269
|
-
this.value = this.value.filter(v => v !== optionId);
|
|
270
|
-
this.syncSelectedItems();
|
|
271
|
-
this.pdsMultiselectChange.emit({ values: this.value, items: this.selectedItems });
|
|
272
|
-
// Clear first so screen readers re-announce even when the same item is removed twice
|
|
273
|
-
this.removalAnnouncement = '';
|
|
274
|
-
queueMicrotask(() => { this.removalAnnouncement = `${item.text} removed`; });
|
|
275
|
-
this.isClosingViaSelection = true;
|
|
276
|
-
if (this.isOpen) {
|
|
277
|
-
(_a = this.searchInputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
278
|
-
}
|
|
279
|
-
else {
|
|
280
|
-
(_b = this.triggerEl) === null || _b === void 0 ? void 0 : _b.focus();
|
|
281
|
-
}
|
|
282
|
-
setTimeout(() => { this.isClosingViaSelection = false; }, 0);
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
connectedCallback() {
|
|
286
|
-
// Initialize ElementInternals for form association (only once per element instance)
|
|
287
|
-
if (this.el.attachInternals && !this.internals) {
|
|
288
|
-
this.internals = this.el.attachInternals();
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
componentWillLoad() {
|
|
292
|
-
this.originalSearchEmitter = this.pdsMultiselectSearch;
|
|
293
|
-
this.syncSelectedItems();
|
|
294
|
-
}
|
|
295
|
-
componentDidLoad() {
|
|
296
|
-
this.setupDebounce();
|
|
297
|
-
this.setupMutationObserver();
|
|
298
|
-
this.setupSlotChangeListener();
|
|
299
|
-
this.updateFormValue();
|
|
300
|
-
// Ensure preselected values sync after DOM is fully ready
|
|
301
|
-
// This handles cases where slot content loads after initial render (e.g., in docs/MDX)
|
|
302
|
-
requestAnimationFrame(() => {
|
|
303
|
-
this.updateOptionsFromSlot();
|
|
304
|
-
this.syncSelectedItems();
|
|
305
|
-
});
|
|
306
|
-
// If we have preselected values and asyncUrl, fetch options to resolve them
|
|
307
|
-
// This ensures the trigger shows "X items" instead of placeholder on initial render
|
|
308
|
-
if (this.asyncUrl && this.ensureValueArray().length > 0) {
|
|
309
|
-
this.initialAsyncFetchTriggered = true;
|
|
310
|
-
this.fetchOptions('', 1);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
setupSlotChangeListener() {
|
|
314
|
-
var _a;
|
|
315
|
-
const slot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot:not([name])');
|
|
316
|
-
if (slot) {
|
|
317
|
-
slot.addEventListener('slotchange', () => {
|
|
318
|
-
this.updateOptionsFromSlot();
|
|
319
|
-
this.syncSelectedItems();
|
|
320
|
-
});
|
|
321
|
-
// Also call it immediately in case content is already slotted
|
|
322
|
-
this.updateOptionsFromSlot();
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
disconnectedCallback() {
|
|
326
|
-
var _a, _b;
|
|
327
|
-
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
328
|
-
(_b = this.cleanupAutoUpdate) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
329
|
-
this.clearAsyncFetchState();
|
|
330
|
-
}
|
|
331
|
-
setupDebounce() {
|
|
332
|
-
const { pdsMultiselectSearch, debounce, originalSearchEmitter } = this;
|
|
333
|
-
this.pdsMultiselectSearch = debounce === undefined
|
|
334
|
-
? originalSearchEmitter !== null && originalSearchEmitter !== void 0 ? originalSearchEmitter : pdsMultiselectSearch
|
|
335
|
-
: debounceEvent(pdsMultiselectSearch, debounce);
|
|
336
|
-
}
|
|
337
|
-
valueChanged(newValue) {
|
|
338
|
-
// Handle JSON string values (from HTML attributes)
|
|
339
|
-
if (typeof newValue === 'string') {
|
|
340
|
-
try {
|
|
341
|
-
const parsed = JSON.parse(newValue);
|
|
342
|
-
if (Array.isArray(parsed)) {
|
|
343
|
-
this.value = parsed;
|
|
344
|
-
return; // The assignment will trigger this watcher again with the array
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
catch (_a) {
|
|
348
|
-
// Not valid JSON, treat as single value
|
|
349
|
-
this.value = newValue ? [newValue] : [];
|
|
350
|
-
return;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
this.syncSelectedItems();
|
|
354
|
-
this.updateFormValue();
|
|
355
|
-
// If using asyncUrl and some values couldn't be resolved, fetch options
|
|
356
|
-
// This handles programmatic value changes where the options aren't loaded yet
|
|
357
|
-
if (this.asyncUrl) {
|
|
358
|
-
const valueArray = this.ensureValueArray();
|
|
359
|
-
const hasUnresolvedValues = valueArray.length > 0 && this.selectedItems.length < valueArray.length;
|
|
360
|
-
if (hasUnresolvedValues) {
|
|
361
|
-
if (this.loading) {
|
|
362
|
-
// Mark that we need to re-check after current fetch completes
|
|
363
|
-
this.pendingUnresolvedFetch = true;
|
|
364
|
-
}
|
|
365
|
-
else {
|
|
366
|
-
this.fetchOptions('', 1);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
optionsChanged() {
|
|
372
|
-
if (this.options) {
|
|
373
|
-
this.internalOptions = [...this.options];
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
internalOptionsChanged() {
|
|
377
|
-
// Re-sync selected items when options become available
|
|
378
|
-
// This handles the case where value is set before options are loaded (e.g., from slot)
|
|
379
|
-
this.syncSelectedItems();
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* Sets focus on the trigger button.
|
|
383
|
-
*/
|
|
384
|
-
async setFocus() {
|
|
385
|
-
var _a;
|
|
386
|
-
(_a = this.triggerEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
* Clears all selected values and resets the component.
|
|
390
|
-
*/
|
|
391
|
-
async clear() {
|
|
392
|
-
const hadValues = this.value.length > 0 || this.searchQuery !== '';
|
|
393
|
-
this.value = [];
|
|
394
|
-
this.searchQuery = '';
|
|
395
|
-
this.syncSelectedItems();
|
|
396
|
-
this.updateFormValue();
|
|
397
|
-
if (hadValues) {
|
|
398
|
-
this.pdsMultiselectChange.emit({ values: [], items: [] });
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
/**
|
|
402
|
-
* Handle global keyboard events for accessibility.
|
|
403
|
-
* Closes dropdown on Escape key press regardless of focus location.
|
|
404
|
-
*/
|
|
405
|
-
handleWindowKeyDown(event) {
|
|
406
|
-
var _a;
|
|
407
|
-
if (!this.isOpen)
|
|
408
|
-
return;
|
|
409
|
-
if (event.key === 'Escape') {
|
|
410
|
-
event.preventDefault();
|
|
411
|
-
this.pdsMultiselectDismiss.emit();
|
|
412
|
-
this.closeDropdown();
|
|
413
|
-
(_a = this.triggerEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
setupMutationObserver() {
|
|
417
|
-
this.observer = new MutationObserver(() => {
|
|
418
|
-
this.updateOptionsFromSlot();
|
|
419
|
-
});
|
|
420
|
-
this.observer.observe(this.el, {
|
|
421
|
-
childList: true,
|
|
422
|
-
subtree: true,
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
updateOptionsFromSlot() {
|
|
426
|
-
var _a;
|
|
427
|
-
const slot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot:not([name])');
|
|
428
|
-
if (!slot)
|
|
429
|
-
return;
|
|
430
|
-
const options = [];
|
|
431
|
-
slot.assignedElements({ flatten: true }).forEach(el => {
|
|
432
|
-
var _a;
|
|
433
|
-
if (el.tagName === 'OPTGROUP') {
|
|
434
|
-
const optgroup = el;
|
|
435
|
-
const groupLabel = optgroup.label;
|
|
436
|
-
const groupDisabled = optgroup.disabled;
|
|
437
|
-
optgroup.querySelectorAll('option').forEach((opt) => {
|
|
438
|
-
var _a;
|
|
439
|
-
const option = {
|
|
440
|
-
id: opt.value,
|
|
441
|
-
text: ((_a = opt.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || opt.value,
|
|
442
|
-
disabled: opt.disabled || groupDisabled || undefined,
|
|
443
|
-
};
|
|
444
|
-
if (groupLabel) {
|
|
445
|
-
option.group = groupLabel;
|
|
446
|
-
}
|
|
447
|
-
options.push(option);
|
|
448
|
-
});
|
|
449
|
-
}
|
|
450
|
-
else if (el.tagName === 'OPTION') {
|
|
451
|
-
const opt = el;
|
|
452
|
-
options.push({
|
|
453
|
-
id: opt.value,
|
|
454
|
-
text: ((_a = opt.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || opt.value,
|
|
455
|
-
disabled: opt.disabled || undefined,
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
});
|
|
459
|
-
// Only update if we actually found options AND we're not using async/external options
|
|
460
|
-
// Don't clear internalOptions if slot returns empty (might be mid-DOM-update)
|
|
461
|
-
if (options.length > 0 && !this.asyncUrl && !this.options) {
|
|
462
|
-
this.internalOptions = options;
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
clearAsyncFetchState() {
|
|
466
|
-
var _a;
|
|
467
|
-
if (this.fetchDebounceTimer !== undefined) {
|
|
468
|
-
window.clearTimeout(this.fetchDebounceTimer);
|
|
469
|
-
this.fetchDebounceTimer = undefined;
|
|
470
|
-
}
|
|
471
|
-
if (this.fetchTimeoutTimer !== undefined) {
|
|
472
|
-
window.clearTimeout(this.fetchTimeoutTimer);
|
|
473
|
-
this.fetchTimeoutTimer = undefined;
|
|
474
|
-
}
|
|
475
|
-
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
476
|
-
this.abortController = undefined;
|
|
477
|
-
}
|
|
478
|
-
debouncedFetchAsyncOptions(query, page = 1) {
|
|
479
|
-
var _a;
|
|
480
|
-
if (!this.asyncUrl)
|
|
481
|
-
return;
|
|
482
|
-
if (this.fetchDebounceTimer !== undefined) {
|
|
483
|
-
window.clearTimeout(this.fetchDebounceTimer);
|
|
484
|
-
}
|
|
485
|
-
const delay = Math.max(0, (_a = this.debounce) !== null && _a !== void 0 ? _a : 0);
|
|
486
|
-
this.fetchDebounceTimer = window.setTimeout(() => {
|
|
487
|
-
this.fetchDebounceTimer = undefined;
|
|
488
|
-
this.fetchOptions(query, page);
|
|
489
|
-
}, delay);
|
|
490
|
-
}
|
|
491
|
-
syncSelectedItems() {
|
|
492
|
-
// Ensure value is an array (may be string from HTML attribute)
|
|
493
|
-
const valueArray = this.ensureValueArray();
|
|
494
|
-
const allOptions = this.getAllOptions();
|
|
495
|
-
// Map values to options, preserving existing selectedItems for values not yet in options
|
|
496
|
-
const newSelectedItems = [];
|
|
497
|
-
const existingItemsMap = new Map(this.selectedItems.map(item => [String(item.id), item]));
|
|
498
|
-
valueArray.forEach(val => {
|
|
499
|
-
// First try to find in available options
|
|
500
|
-
const option = allOptions.find(opt => String(opt.id) === String(val));
|
|
501
|
-
if (option) {
|
|
502
|
-
newSelectedItems.push(option);
|
|
503
|
-
}
|
|
504
|
-
else if (existingItemsMap.has(String(val))) {
|
|
505
|
-
// If not in options but exists in current selectedItems, preserve it
|
|
506
|
-
// This handles the case where async data hasn't loaded yet or newly created items
|
|
507
|
-
newSelectedItems.push(existingItemsMap.get(String(val)));
|
|
508
|
-
}
|
|
509
|
-
// Note: We don't create placeholders for values without matching options.
|
|
510
|
-
// This ensures selectedItems remains empty until options are actually loaded,
|
|
511
|
-
// which matches the expected behavior for preselected values.
|
|
512
|
-
});
|
|
513
|
-
this.selectedItems = newSelectedItems;
|
|
514
|
-
}
|
|
515
|
-
ensureValueArray() {
|
|
516
|
-
// Handle JSON string values passed via HTML attribute
|
|
517
|
-
if (typeof this.value === 'string') {
|
|
518
|
-
try {
|
|
519
|
-
const parsed = JSON.parse(this.value);
|
|
520
|
-
if (Array.isArray(parsed)) {
|
|
521
|
-
this.value = parsed;
|
|
522
|
-
return parsed;
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
catch (_a) {
|
|
526
|
-
// Not valid JSON, treat as single value
|
|
527
|
-
const singleValue = this.value;
|
|
528
|
-
this.value = singleValue ? [singleValue] : [];
|
|
529
|
-
return this.value;
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
return Array.isArray(this.value) ? this.value : [];
|
|
533
|
-
}
|
|
534
|
-
getAllOptions() {
|
|
535
|
-
return this.options || this.internalOptions;
|
|
536
|
-
}
|
|
537
|
-
getFilteredOptions() {
|
|
538
|
-
const allOptions = this.getAllOptions();
|
|
539
|
-
const query = this.searchQuery.toLowerCase();
|
|
540
|
-
const filtered = allOptions.filter(opt => {
|
|
541
|
-
// Filter by search query only - don't filter out selected items
|
|
542
|
-
if (query) {
|
|
543
|
-
return opt.text.toLowerCase().includes(query);
|
|
544
|
-
}
|
|
545
|
-
return true;
|
|
546
|
-
});
|
|
547
|
-
// Add create option if enabled and no matches found
|
|
548
|
-
if (this.createUrl && this.searchQuery.trim() && filtered.length === 0) {
|
|
549
|
-
return [{
|
|
550
|
-
id: '__create__',
|
|
551
|
-
text: this.searchQuery.trim(),
|
|
552
|
-
isCreateOption: true,
|
|
553
|
-
}];
|
|
554
|
-
}
|
|
555
|
-
return filtered;
|
|
556
|
-
}
|
|
557
|
-
updateFormValue() {
|
|
558
|
-
var _a;
|
|
559
|
-
if (isSpecTest())
|
|
560
|
-
return;
|
|
561
|
-
if ((_a = this.internals) === null || _a === void 0 ? void 0 : _a.setFormValue) {
|
|
562
|
-
// Ensure value is an array before iterating
|
|
563
|
-
const valueArray = this.ensureValueArray();
|
|
564
|
-
// Submit as multiple values with same name (native select multiple behavior)
|
|
565
|
-
const formData = new FormData();
|
|
566
|
-
valueArray.forEach(val => {
|
|
567
|
-
if (this.name) {
|
|
568
|
-
formData.append(this.name, val);
|
|
569
|
-
}
|
|
570
|
-
});
|
|
571
|
-
this.internals.setFormValue(formData);
|
|
572
|
-
// Update validity state for required validation
|
|
573
|
-
if (this.required && valueArray.length === 0) {
|
|
574
|
-
this.internals.setValidity({ valueMissing: true }, 'Please select at least one option.', this.triggerEl);
|
|
575
|
-
}
|
|
576
|
-
else {
|
|
577
|
-
this.internals.setValidity({});
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
getCsrfToken() {
|
|
582
|
-
// Use provided token if available
|
|
583
|
-
if (this.csrfToken) {
|
|
584
|
-
return this.csrfToken;
|
|
585
|
-
}
|
|
586
|
-
// Try to read from meta tag
|
|
587
|
-
const metaTag = document.querySelector('meta[name="csrf-token"]');
|
|
588
|
-
return (metaTag === null || metaTag === void 0 ? void 0 : metaTag.content) || null;
|
|
589
|
-
}
|
|
590
|
-
async fetchOptions(query, page = 1) {
|
|
591
|
-
var _a;
|
|
592
|
-
if (!this.asyncUrl)
|
|
593
|
-
return;
|
|
594
|
-
// Abort any pending request and clear existing timeout
|
|
595
|
-
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
596
|
-
if (this.fetchTimeoutTimer !== undefined) {
|
|
597
|
-
window.clearTimeout(this.fetchTimeoutTimer);
|
|
598
|
-
this.fetchTimeoutTimer = undefined;
|
|
599
|
-
}
|
|
600
|
-
this.abortController = new AbortController();
|
|
601
|
-
this.loading = true;
|
|
602
|
-
// Set up timeout for fetch request
|
|
603
|
-
this.fetchTimeoutTimer = window.setTimeout(() => {
|
|
604
|
-
var _a;
|
|
605
|
-
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
606
|
-
this.fetchTimeoutTimer = undefined;
|
|
607
|
-
}, this.fetchTimeout);
|
|
608
|
-
try {
|
|
609
|
-
// Guard against malformed asyncUrl
|
|
610
|
-
let url;
|
|
611
|
-
try {
|
|
612
|
-
url = new URL(this.asyncUrl, window.location.origin);
|
|
613
|
-
}
|
|
614
|
-
catch (urlError) {
|
|
615
|
-
throw new TypeError(`Invalid asyncUrl: ${this.asyncUrl}`);
|
|
616
|
-
}
|
|
617
|
-
if (this.asyncMethod === 'GET') {
|
|
618
|
-
url.searchParams.set('search', query);
|
|
619
|
-
url.searchParams.set('page', String(page));
|
|
620
|
-
}
|
|
621
|
-
const csrfToken = this.getCsrfToken();
|
|
622
|
-
const headers = {
|
|
623
|
-
'Content-Type': 'application/json',
|
|
624
|
-
'Accept': 'application/json',
|
|
625
|
-
};
|
|
626
|
-
if (csrfToken) {
|
|
627
|
-
const headerName = this.csrfHeaderName || 'X-CSRF-Token';
|
|
628
|
-
headers[headerName] = csrfToken;
|
|
629
|
-
}
|
|
630
|
-
const response = await fetch(url.toString(), Object.assign({ method: this.asyncMethod, signal: this.abortController.signal, headers }, (this.asyncMethod === 'POST' && {
|
|
631
|
-
body: JSON.stringify({ search: query, page }),
|
|
632
|
-
})));
|
|
633
|
-
// Clear timeout on successful response
|
|
634
|
-
if (this.fetchTimeoutTimer !== undefined) {
|
|
635
|
-
window.clearTimeout(this.fetchTimeoutTimer);
|
|
636
|
-
this.fetchTimeoutTimer = undefined;
|
|
637
|
-
}
|
|
638
|
-
if (!response.ok)
|
|
639
|
-
throw new Error('Failed to fetch options');
|
|
640
|
-
const data = await response.json();
|
|
641
|
-
const formattedResults = data.results.map(item => {
|
|
642
|
-
// If formatResult is provided, use it
|
|
643
|
-
if (this.formatResult) {
|
|
644
|
-
return this.formatResult(item);
|
|
645
|
-
}
|
|
646
|
-
// Defensive check: ensure item is an object before spreading
|
|
647
|
-
if (typeof item === 'object' && item !== null) {
|
|
648
|
-
return Object.assign({ id: item.id, text: item.text }, item);
|
|
649
|
-
}
|
|
650
|
-
// Handle primitives by converting to safe shape
|
|
651
|
-
return {
|
|
652
|
-
id: String(item),
|
|
653
|
-
text: String(item),
|
|
654
|
-
};
|
|
655
|
-
});
|
|
656
|
-
if (page === 1) {
|
|
657
|
-
this.internalOptions = formattedResults;
|
|
658
|
-
}
|
|
659
|
-
else {
|
|
660
|
-
this.internalOptions = [...this.internalOptions, ...formattedResults];
|
|
661
|
-
}
|
|
662
|
-
this.hasMore = data.totalCount ? this.internalOptions.length < data.totalCount : false;
|
|
663
|
-
this.currentPage = page;
|
|
664
|
-
}
|
|
665
|
-
catch (error) {
|
|
666
|
-
// Clear timeout on error
|
|
667
|
-
if (this.fetchTimeoutTimer !== undefined) {
|
|
668
|
-
window.clearTimeout(this.fetchTimeoutTimer);
|
|
669
|
-
this.fetchTimeoutTimer = undefined;
|
|
670
|
-
}
|
|
671
|
-
if (error.name !== 'AbortError') {
|
|
672
|
-
console.error('PdsMultiselect: Failed to fetch options', error);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
finally {
|
|
676
|
-
this.loading = false;
|
|
677
|
-
// Check if value changed during loading and still has unresolved values
|
|
678
|
-
if (this.pendingUnresolvedFetch) {
|
|
679
|
-
this.pendingUnresolvedFetch = false;
|
|
680
|
-
const valueArray = this.ensureValueArray();
|
|
681
|
-
const hasUnresolvedValues = valueArray.length > 0 && this.selectedItems.length < valueArray.length;
|
|
682
|
-
if (hasUnresolvedValues) {
|
|
683
|
-
this.fetchOptions('', 1);
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
async createOption(query) {
|
|
689
|
-
if (!this.createUrl || !query.trim())
|
|
690
|
-
return;
|
|
691
|
-
// Reentrancy guard: prevent duplicate POSTs if creation is already in-flight
|
|
692
|
-
if (this.creating)
|
|
693
|
-
return;
|
|
694
|
-
this.creating = true;
|
|
695
|
-
try {
|
|
696
|
-
const url = new URL(this.createUrl, window.location.origin);
|
|
697
|
-
const csrfToken = this.getCsrfToken();
|
|
698
|
-
const headers = {
|
|
699
|
-
'Content-Type': 'application/json',
|
|
700
|
-
'Accept': 'application/json',
|
|
701
|
-
};
|
|
702
|
-
if (csrfToken) {
|
|
703
|
-
const headerName = this.csrfHeaderName || 'X-CSRF-Token';
|
|
704
|
-
headers[headerName] = csrfToken;
|
|
705
|
-
}
|
|
706
|
-
const response = await fetch(url.toString(), {
|
|
707
|
-
method: 'POST',
|
|
708
|
-
headers,
|
|
709
|
-
body: JSON.stringify({ text: query.trim() }),
|
|
710
|
-
});
|
|
711
|
-
if (!response.ok)
|
|
712
|
-
throw new Error('Failed to create option');
|
|
713
|
-
const data = await response.json();
|
|
714
|
-
const newOption = Object.assign({ id: data.id, text: data.text }, data);
|
|
715
|
-
// Add to internal options first
|
|
716
|
-
this.internalOptions = [...this.internalOptions, newOption];
|
|
717
|
-
// Select the new option
|
|
718
|
-
this.value = [...this.value, String(newOption.id)];
|
|
719
|
-
// Sync selected items to update display with new option
|
|
720
|
-
this.syncSelectedItems();
|
|
721
|
-
// Emit create event
|
|
722
|
-
this.pdsMultiselectCreate.emit({
|
|
723
|
-
query: query.trim(),
|
|
724
|
-
newOption,
|
|
725
|
-
});
|
|
726
|
-
// Emit change event with synced items
|
|
727
|
-
this.pdsMultiselectChange.emit({
|
|
728
|
-
values: this.value,
|
|
729
|
-
items: this.selectedItems,
|
|
730
|
-
});
|
|
731
|
-
// Clear search and keep dropdown open
|
|
732
|
-
this.searchQuery = '';
|
|
733
|
-
this.highlightedIndex = -1;
|
|
734
|
-
// Focus back on search input
|
|
735
|
-
requestAnimationFrame(() => {
|
|
736
|
-
var _a;
|
|
737
|
-
(_a = this.searchInputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
738
|
-
});
|
|
739
|
-
}
|
|
740
|
-
catch (error) {
|
|
741
|
-
console.error('PdsMultiselect: Failed to create option', error);
|
|
742
|
-
}
|
|
743
|
-
finally {
|
|
744
|
-
this.creating = false;
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
openDropdown() {
|
|
748
|
-
if (this.disabled)
|
|
749
|
-
return;
|
|
750
|
-
this.isOpening = true;
|
|
751
|
-
this.isOpen = true;
|
|
752
|
-
this.highlightedIndex = -1;
|
|
753
|
-
// Trigger initial fetch if async (skip if already fetching from componentDidLoad)
|
|
754
|
-
if (this.asyncUrl && this.internalOptions.length === 0 && !this.initialAsyncFetchTriggered) {
|
|
755
|
-
this.debouncedFetchAsyncOptions(this.searchQuery, 1);
|
|
756
|
-
}
|
|
757
|
-
// Reset the flag so subsequent opens can fetch if needed
|
|
758
|
-
this.initialAsyncFetchTriggered = false;
|
|
759
|
-
requestAnimationFrame(() => {
|
|
760
|
-
var _a;
|
|
761
|
-
this.positionDropdown();
|
|
762
|
-
// Focus the search input after the panel is positioned
|
|
763
|
-
(_a = this.searchInputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
764
|
-
// Clear the opening flag after focus has moved
|
|
765
|
-
setTimeout(() => {
|
|
766
|
-
this.isOpening = false;
|
|
767
|
-
}, 50);
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
closeDropdown() {
|
|
771
|
-
this.isOpen = false;
|
|
772
|
-
this.highlightedIndex = -1;
|
|
773
|
-
this.searchQuery = '';
|
|
774
|
-
// Reset the selection-close guard after the focusout handler's setTimeout has resolved
|
|
775
|
-
if (this.isClosingViaSelection) {
|
|
776
|
-
setTimeout(() => {
|
|
777
|
-
this.isClosingViaSelection = false;
|
|
778
|
-
}, 0);
|
|
779
|
-
}
|
|
780
|
-
// Clean up auto-update
|
|
781
|
-
if (this.cleanupAutoUpdate) {
|
|
782
|
-
this.cleanupAutoUpdate();
|
|
783
|
-
this.cleanupAutoUpdate = undefined;
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
positionDropdown() {
|
|
787
|
-
if (!this.containerEl || !this.panelEl)
|
|
788
|
-
return;
|
|
789
|
-
// In inline pill mode, triggerEl is the small chevron button — use the full-width
|
|
790
|
-
// wrapper div as the Floating UI reference so the panel aligns with the whole trigger.
|
|
791
|
-
const referenceEl = this.pillInlineTriggerEl || this.triggerEl || this.containerEl;
|
|
792
|
-
const { minWidth, panelWidth } = this;
|
|
793
|
-
const updatePosition = () => {
|
|
794
|
-
computePosition(referenceEl, this.panelEl, {
|
|
795
|
-
placement: 'bottom-start',
|
|
796
|
-
strategy: 'absolute',
|
|
797
|
-
middleware: [
|
|
798
|
-
offset(12),
|
|
799
|
-
flip(),
|
|
800
|
-
shift({ padding: 8 }),
|
|
801
|
-
size({
|
|
802
|
-
apply: ({ rects, elements }) => {
|
|
803
|
-
Object.assign(elements.floating.style, {
|
|
804
|
-
width: panelWidth !== null && panelWidth !== void 0 ? panelWidth : `${rects.reference.width}px`,
|
|
805
|
-
minWidth,
|
|
806
|
-
});
|
|
807
|
-
},
|
|
808
|
-
}),
|
|
809
|
-
],
|
|
810
|
-
}).then(({ x, y }) => {
|
|
811
|
-
if (this.panelEl) {
|
|
812
|
-
this.panelEl.style.left = `${x}px`;
|
|
813
|
-
this.panelEl.style.top = `${y}px`;
|
|
814
|
-
}
|
|
815
|
-
});
|
|
816
|
-
};
|
|
817
|
-
// Initial position
|
|
818
|
-
updatePosition();
|
|
819
|
-
// Set up auto-update for window resize and scroll
|
|
820
|
-
const cleanupAutoUpdate = autoUpdate(referenceEl, this.panelEl, updatePosition);
|
|
821
|
-
this.cleanupAutoUpdate = () => {
|
|
822
|
-
cleanupAutoUpdate();
|
|
823
|
-
this.clearAsyncFetchState();
|
|
824
|
-
};
|
|
825
|
-
}
|
|
826
|
-
scrollOptionIntoView() {
|
|
827
|
-
requestAnimationFrame(() => {
|
|
828
|
-
var _a;
|
|
829
|
-
const highlighted = (_a = this.listboxEl) === null || _a === void 0 ? void 0 : _a.querySelector(`[data-index="${this.highlightedIndex}"]`);
|
|
830
|
-
highlighted === null || highlighted === void 0 ? void 0 : highlighted.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
toggleOption(option) {
|
|
834
|
-
var _a, _b;
|
|
835
|
-
if (option.disabled)
|
|
836
|
-
return;
|
|
837
|
-
// Handle create option
|
|
838
|
-
if (option.isCreateOption) {
|
|
839
|
-
// Prevent multiple create calls while one is in-flight
|
|
840
|
-
if (!this.creating) {
|
|
841
|
-
this.createOption(this.searchQuery);
|
|
842
|
-
}
|
|
843
|
-
return;
|
|
844
|
-
}
|
|
845
|
-
const optionId = String(option.id);
|
|
846
|
-
const isSelected = this.value.includes(optionId);
|
|
847
|
-
if (isSelected) {
|
|
848
|
-
// Remove from selection
|
|
849
|
-
this.value = this.value.filter(v => v !== optionId);
|
|
850
|
-
}
|
|
851
|
-
else {
|
|
852
|
-
// Add to selection
|
|
853
|
-
if (this.maxSelections && this.value.length >= this.maxSelections) {
|
|
854
|
-
return;
|
|
855
|
-
}
|
|
856
|
-
this.value = [...this.value, optionId];
|
|
857
|
-
}
|
|
858
|
-
// Sync selected items to ensure no duplicates and accurate state
|
|
859
|
-
this.syncSelectedItems();
|
|
860
|
-
// Emit change event with synced items
|
|
861
|
-
this.pdsMultiselectChange.emit({
|
|
862
|
-
values: this.value,
|
|
863
|
-
items: this.selectedItems,
|
|
864
|
-
});
|
|
865
|
-
if (this.closePanelOnSelect) {
|
|
866
|
-
this.isClosingViaSelection = true;
|
|
867
|
-
this.closeDropdown();
|
|
868
|
-
(_a = this.triggerEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
869
|
-
}
|
|
870
|
-
else {
|
|
871
|
-
// Keep focus on search input, don't close dropdown
|
|
872
|
-
(_b = this.searchInputEl) === null || _b === void 0 ? void 0 : _b.focus();
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
selectOption(option) {
|
|
876
|
-
// For keyboard navigation - toggle the option
|
|
877
|
-
this.toggleOption(option);
|
|
878
|
-
}
|
|
879
|
-
getGroupedRenderItems(filteredOptions) {
|
|
880
|
-
const items = [];
|
|
881
|
-
let currentGroup = null;
|
|
882
|
-
filteredOptions.forEach((option, index) => {
|
|
883
|
-
const group = option.group;
|
|
884
|
-
if (group !== undefined) {
|
|
885
|
-
if (!currentGroup || currentGroup.group !== group) {
|
|
886
|
-
currentGroup = { type: 'group', group, options: [] };
|
|
887
|
-
items.push(currentGroup);
|
|
888
|
-
}
|
|
889
|
-
currentGroup.options.push({ option, index });
|
|
890
|
-
}
|
|
891
|
-
else {
|
|
892
|
-
currentGroup = null;
|
|
893
|
-
items.push({ type: 'option', option, index });
|
|
894
|
-
}
|
|
895
|
-
});
|
|
896
|
-
return items;
|
|
897
|
-
}
|
|
898
|
-
renderOption(option, index, valueArray) {
|
|
899
|
-
const isSelected = valueArray.includes(String(option.id));
|
|
900
|
-
const isCreateOption = option.isCreateOption;
|
|
901
|
-
const isDisabled = option.disabled;
|
|
902
|
-
const isHighlighted = index === this.highlightedIndex && !isCreateOption;
|
|
903
|
-
const optionId = `${this.componentId}-option-${index}`;
|
|
904
|
-
const isCreateDisabled = isCreateOption && this.creating;
|
|
905
|
-
return (h("li", { key: String(option.id), id: optionId, class: {
|
|
906
|
-
'pds-multiselect__option': true,
|
|
907
|
-
'pds-multiselect__option--highlighted': isHighlighted,
|
|
908
|
-
'pds-multiselect__option--selected': isSelected,
|
|
909
|
-
'pds-multiselect__option--create': isCreateOption,
|
|
910
|
-
'pds-multiselect__option--disabled': isDisabled || isCreateDisabled,
|
|
911
|
-
}, role: "option", "aria-selected": isSelected ? 'true' : 'false', "aria-disabled": isDisabled || isCreateDisabled ? 'true' : undefined, "aria-label": isCreateOption ? `Create new tag: ${option.text}` : undefined, "data-index": index, onMouseDown: this.handleOptionMouseDown(option), onMouseEnter: this.handleOptionMouseEnter(index, option) }, 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, disabled: isDisabled, style: { pointerEvents: 'none' } }))));
|
|
912
|
-
}
|
|
913
|
-
renderSelectedItemsList() {
|
|
914
|
-
if (this.hideSelectedItems || this.selectedItems.length === 0)
|
|
915
|
-
return null;
|
|
916
|
-
return (h("div", { class: "pds-multiselect__selected-section" }, h("ul", { class: "pds-multiselect__selected-list", role: "list" }, this.selectedItems.map(item => (h("li", { key: String(item.id), class: "pds-multiselect__selected-item" }, item.text))))));
|
|
917
|
-
}
|
|
918
|
-
renderDropdown() {
|
|
919
|
-
if (!this.isOpen)
|
|
920
|
-
return null;
|
|
921
|
-
const filteredOptions = this.getFilteredOptions();
|
|
922
|
-
const valueArray = this.ensureValueArray();
|
|
923
|
-
const hasSlottedEmpty = !!this.el.querySelector('[slot="empty"]');
|
|
924
|
-
const hasSlottedLoading = !!this.el.querySelector('[slot="loading"]');
|
|
925
|
-
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: this.searchPlaceholder, 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")))), this.getGroupedRenderItems(filteredOptions).map((item, itemIndex) => {
|
|
926
|
-
if (item.type === 'group') {
|
|
927
|
-
return (h("li", { key: `group-${itemIndex}`, role: "group", "aria-label": item.group, class: "pds-multiselect__group" }, h("span", { class: "pds-multiselect__group-header", "aria-hidden": "true" }, item.group), h("ul", { class: "pds-multiselect__group-list", role: "presentation" }, item.options.map(({ option, index }) => this.renderOption(option, index, valueArray)))));
|
|
928
|
-
}
|
|
929
|
-
return this.renderOption(item.option, item.index, valueArray);
|
|
930
|
-
}), this.hasMore && !this.loading && (h("li", { class: "pds-multiselect__load-more", role: "presentation" }, h("pds-loader", { size: "small" }))))));
|
|
931
|
-
}
|
|
932
|
-
renderInlinePills() {
|
|
933
|
-
const hasSelections = this.selectedItems.length > 0;
|
|
934
|
-
if (!hasSelections) {
|
|
935
|
-
return (h("span", { class: "pds-multiselect__trigger-text pds-multiselect__trigger-text--placeholder" }, this.placeholder || 'Select...'));
|
|
936
|
-
}
|
|
937
|
-
const variant = this.disabled ? 'text' : 'tag';
|
|
938
|
-
const visibleItems = this.selectedItems.slice(0, Math.max(1, this.maxInlinePills));
|
|
939
|
-
const overflowCount = this.selectedItems.length - visibleItems.length;
|
|
940
|
-
return (h("div", { class: "pds-multiselect__pill-list pds-multiselect__pill-list--inline", "aria-label": "Selected items" }, visibleItems.map(item => (h("pds-chip", { key: String(item.id), "component-id": `${this.componentId}-pill-${item.id}`, variant: variant, size: "sm", sentiment: "neutral", onPdsTagCloseClick: this.handlePillRemove(item) }, item.text))), overflowCount > 0 && (h("span", { class: "pds-multiselect__pill-overflow" }, "+", overflowCount))));
|
|
941
|
-
}
|
|
942
|
-
renderBelowPills() {
|
|
943
|
-
if (this.selectedItems.length === 0)
|
|
944
|
-
return null;
|
|
945
|
-
const variant = this.disabled ? 'text' : 'tag';
|
|
946
|
-
return (h("div", { class: "pds-multiselect__pill-list pds-multiselect__pill-list--below", "aria-label": "Selected items" }, this.selectedItems.map(item => (h("pds-chip", { key: String(item.id), "component-id": `${this.componentId}-pill-${item.id}`, variant: variant, size: "md", sentiment: "neutral", onPdsTagCloseClick: this.handlePillRemove(item) }, item.text)))));
|
|
947
|
-
}
|
|
948
|
-
getTriggerText() {
|
|
949
|
-
const count = this.selectedItems.length;
|
|
950
|
-
if (count === 0 || (this.selectedDisplay === 'pill' && this.pillPosition === 'below')) {
|
|
951
|
-
return this.placeholder || 'Select...';
|
|
952
|
-
}
|
|
953
|
-
return `${count} item${count === 1 ? '' : 's'}`;
|
|
954
|
-
}
|
|
955
|
-
render() {
|
|
956
|
-
const hasSelections = this.selectedItems.length > 0;
|
|
957
|
-
return (h(Host, { key: '086b6d2d199b35110e64ba1da3c12f1a81360581', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: 'c2faf217a97de056a9111a78e7077025e4ab5ee1', class: "pds-multiselect", onFocusout: this.handleContainerFocusOut }, this.label && (h("label", { key: '0aff86a3a0054aef256bac5c0204dd914a9bd3ae', id: `${this.componentId}-label`, htmlFor: this.componentId, class: {
|
|
958
|
-
'pds-multiselect__label': true,
|
|
959
|
-
'visually-hidden': this.hideLabel,
|
|
960
|
-
} }, this.label)), h("div", { key: '3b92119871dc32bb3c9a559be816bdece2fc30a6', class: "pds-multiselect__wrapper", ref: el => (this.containerEl = el), style: { width: this.triggerWidth } }, this.selectedDisplay === 'pill' && this.pillPosition === 'inline' ? (h("div", { ref: el => (this.pillInlineTriggerEl = el || undefined), part: "trigger", class: {
|
|
961
|
-
'pds-multiselect__trigger': true,
|
|
962
|
-
'pds-multiselect__trigger--open': this.isOpen,
|
|
963
|
-
'pds-multiselect__trigger--disabled': this.disabled,
|
|
964
|
-
'pds-multiselect__trigger--invalid': this.invalid || !!this.errorMessage,
|
|
965
|
-
'pds-multiselect__trigger--has-value': hasSelections,
|
|
966
|
-
'pds-multiselect__trigger--pill-inline': true,
|
|
967
|
-
}, onClick: this.handleTriggerClick }, this.renderInlinePills(), h("button", { ref: el => (this.triggerEl = el), type: "button", id: this.componentId, part: "pill-toggle", class: "pds-multiselect__pill-toggle", disabled: this.disabled, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-labelledby": this.label ? `${this.componentId}-label` : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": assignDescription(this.componentId, this.invalid || !!this.errorMessage, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid || !!this.errorMessage ? 'true' : undefined, onKeyDown: this.handleTriggerKeyDown }, h("pds-icon", { class: "pds-multiselect__icon", icon: enlarge })))) : (h("button", { ref: el => (this.triggerEl = el), type: "button", part: "trigger", class: {
|
|
968
|
-
'pds-multiselect__trigger': true,
|
|
969
|
-
'pds-multiselect__trigger--open': this.isOpen,
|
|
970
|
-
'pds-multiselect__trigger--disabled': this.disabled,
|
|
971
|
-
'pds-multiselect__trigger--invalid': this.invalid || !!this.errorMessage,
|
|
972
|
-
'pds-multiselect__trigger--has-value': hasSelections,
|
|
973
|
-
}, 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", { class: {
|
|
974
|
-
'pds-multiselect__trigger-text': true,
|
|
975
|
-
'pds-multiselect__trigger-text--placeholder': !hasSelections || (this.selectedDisplay === 'pill' && this.pillPosition === 'below'),
|
|
976
|
-
} }, this.getTriggerText()), h("pds-icon", { class: "pds-multiselect__icon", icon: enlarge }))), this.renderDropdown()), this.selectedDisplay === 'pill' && this.pillPosition === 'below' && this.renderBelowPills(), h("span", { key: '07d6a6bf9ccc2fe8bfcf9502a1cd4b7abf5c5e6f', class: "visually-hidden", "aria-live": "polite", "aria-atomic": "true" }, this.removalAnnouncement), this.helperMessage && !(this.errorMessage && this.errorMessage.length > 0) && (h("p", { key: 'a94bb6f31805d31ec3cd5b5f2ca8b1984f4d41d1', class: "pds-multiselect__helper", id: messageId(this.componentId, 'helper') }, this.helperMessage)), this.errorMessage && (h("p", { key: '15afc6b9313e1fe22bd56b00eee1ebcf9e085c2e', class: "pds-multiselect__error", id: messageId(this.componentId, 'error') }, h("pds-icon", { key: '452814577b14ca8f891b101903bd1a7a7e5d8bb1', icon: danger, size: "small" }), this.errorMessage)), h("div", { key: 'd8ce787886e666303759cd2654c78b44269a40ff', style: { display: 'none' } }, h("slot", { key: '8295376fb03b23d44c5baeca9bc967514e433e0f' })))));
|
|
977
|
-
}
|
|
978
|
-
static get formAssociated() { return true; }
|
|
979
|
-
get el() { return this; }
|
|
980
|
-
static get watchers() { return {
|
|
981
|
-
"debounce": ["setupDebounce"],
|
|
982
|
-
"value": ["valueChanged"],
|
|
983
|
-
"options": ["optionsChanged"],
|
|
984
|
-
"internalOptions": ["internalOptionsChanged"]
|
|
985
|
-
}; }
|
|
986
|
-
static get style() { return pdsMultiselectCss; }
|
|
987
|
-
}, [321, "pds-multiselect", {
|
|
988
|
-
"componentId": [1, "component-id"],
|
|
989
|
-
"label": [1],
|
|
990
|
-
"placeholder": [1],
|
|
991
|
-
"searchPlaceholder": [1, "search-placeholder"],
|
|
992
|
-
"closePanelOnSelect": [4, "close-panel-on-select"],
|
|
993
|
-
"name": [1],
|
|
994
|
-
"value": [1040],
|
|
995
|
-
"disabled": [4],
|
|
996
|
-
"asyncUrl": [1, "async-url"],
|
|
997
|
-
"asyncMethod": [1, "async-method"],
|
|
998
|
-
"debounce": [2],
|
|
999
|
-
"fetchTimeout": [2, "fetch-timeout"],
|
|
1000
|
-
"maxSelections": [2, "max-selections"],
|
|
1001
|
-
"maxHeight": [1, "max-height"],
|
|
1002
|
-
"triggerWidth": [1, "trigger-width"],
|
|
1003
|
-
"minWidth": [1, "min-width"],
|
|
1004
|
-
"panelWidth": [1, "panel-width"],
|
|
1005
|
-
"hideLabel": [4, "hide-label"],
|
|
1006
|
-
"hideSelectedItems": [4, "hide-selected-items"],
|
|
1007
|
-
"selectedDisplay": [1, "selected-display"],
|
|
1008
|
-
"pillPosition": [1, "pill-position"],
|
|
1009
|
-
"maxInlinePills": [2, "max-inline-pills"],
|
|
1010
|
-
"errorMessage": [1, "error-message"],
|
|
1011
|
-
"helperMessage": [1, "helper-message"],
|
|
1012
|
-
"invalid": [4],
|
|
1013
|
-
"required": [4],
|
|
1014
|
-
"loading": [1028],
|
|
1015
|
-
"options": [16],
|
|
1016
|
-
"formatResult": [16],
|
|
1017
|
-
"createUrl": [1, "create-url"],
|
|
1018
|
-
"csrfToken": [1, "csrf-token"],
|
|
1019
|
-
"csrfHeaderName": [1, "csrf-header-name"],
|
|
1020
|
-
"isOpen": [32],
|
|
1021
|
-
"searchQuery": [32],
|
|
1022
|
-
"highlightedIndex": [32],
|
|
1023
|
-
"internalOptions": [32],
|
|
1024
|
-
"selectedItems": [32],
|
|
1025
|
-
"currentPage": [32],
|
|
1026
|
-
"hasMore": [32],
|
|
1027
|
-
"creating": [32],
|
|
1028
|
-
"removalAnnouncement": [32],
|
|
1029
|
-
"setFocus": [64],
|
|
1030
|
-
"clear": [64]
|
|
1031
|
-
}, [[8, "keydown", "handleWindowKeyDown"]], {
|
|
1032
|
-
"debounce": ["setupDebounce"],
|
|
1033
|
-
"value": ["valueChanged"],
|
|
1034
|
-
"options": ["optionsChanged"],
|
|
1035
|
-
"internalOptions": ["internalOptionsChanged"]
|
|
1036
|
-
}]);
|
|
1037
|
-
function defineCustomElement$1() {
|
|
1038
|
-
if (typeof customElements === "undefined") {
|
|
1039
|
-
return;
|
|
1040
|
-
}
|
|
1041
|
-
const components = ["pds-multiselect", "pds-box", "pds-checkbox", "pds-chip", "pds-icon", "pds-loader", "pds-text"];
|
|
1042
|
-
components.forEach(tagName => { switch (tagName) {
|
|
1043
|
-
case "pds-multiselect":
|
|
1044
|
-
if (!customElements.get(tagName)) {
|
|
1045
|
-
customElements.define(tagName, PdsMultiselect$1);
|
|
1046
|
-
}
|
|
1047
|
-
break;
|
|
1048
|
-
case "pds-box":
|
|
1049
|
-
if (!customElements.get(tagName)) {
|
|
1050
|
-
defineCustomElement$7();
|
|
1051
|
-
}
|
|
1052
|
-
break;
|
|
1053
|
-
case "pds-checkbox":
|
|
1054
|
-
if (!customElements.get(tagName)) {
|
|
1055
|
-
defineCustomElement$6();
|
|
1056
|
-
}
|
|
1057
|
-
break;
|
|
1058
|
-
case "pds-chip":
|
|
1059
|
-
if (!customElements.get(tagName)) {
|
|
1060
|
-
defineCustomElement$5();
|
|
1061
|
-
}
|
|
1062
|
-
break;
|
|
1063
|
-
case "pds-icon":
|
|
1064
|
-
if (!customElements.get(tagName)) {
|
|
1065
|
-
defineCustomElement$4();
|
|
1066
|
-
}
|
|
1067
|
-
break;
|
|
1068
|
-
case "pds-loader":
|
|
1069
|
-
if (!customElements.get(tagName)) {
|
|
1070
|
-
defineCustomElement$3();
|
|
1071
|
-
}
|
|
1072
|
-
break;
|
|
1073
|
-
case "pds-text":
|
|
1074
|
-
if (!customElements.get(tagName)) {
|
|
1075
|
-
defineCustomElement$2();
|
|
1076
|
-
}
|
|
1077
|
-
break;
|
|
1078
|
-
} });
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
const PdsMultiselect = PdsMultiselect$1;
|
|
1082
|
-
const defineCustomElement = defineCustomElement$1;
|
|
1083
|
-
|
|
1084
|
-
export { PdsMultiselect, defineCustomElement };
|
|
1085
|
-
//# sourceMappingURL=pds-multiselect.js.map
|
|
1086
|
-
|
|
1087
|
-
//# sourceMappingURL=pds-multiselect.js.map
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as i,createEvent as t,h as s,Host as o,transformTag as n}from"@stencil/core/internal/client";import{a as l,c as r,o as a,f as d,s as p,b as c}from"./floating-ui.dom.js";import{d as h}from"./utils.js";import{i as m,a as u,m as b}from"./form.js";import{g,h as v}from"./index2.js";import{d as _}from"./pds-box2.js";import{d as x}from"./pds-checkbox2.js";import{d as f}from"./pds-chip2.js";import{d as w}from"./pds-icon2.js";import{d as y}from"./pds-loader2.js";import{d as k}from"./pds-text2.js";const O=e(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.pdsMultiselectChange=t(this,"pdsMultiselectChange",7),this.pdsMultiselectSearch=t(this,"pdsMultiselectSearch",7),this.pdsMultiselectLoadOptions=t(this,"pdsMultiselectLoadOptions",7),this.pdsMultiselectCreate=t(this,"pdsMultiselectCreate",7),this.pdsMultiselectDismiss=t(this,"pdsMultiselectDismiss",7),this.placeholder="Select...",this.searchPlaceholder="Find...",this.closePanelOnSelect=!1,this.value=[],this.disabled=!1,this.asyncMethod="GET",this.debounce=300,this.fetchTimeout=3e4,this.maxHeight="300px",this.triggerWidth="100%",this.minWidth="250px",this.hideLabel=!1,this.hideSelectedItems=!1,this.selectedDisplay="count",this.pillPosition="inline",this.maxInlinePills=3,this.required=!1,this.loading=!1,this.csrfHeaderName="X-CSRF-Token",this.isOpen=!1,this.searchQuery="",this.highlightedIndex=-1,this.internalOptions=[],this.selectedItems=[],this.currentPage=1,this.hasMore=!1,this.creating=!1,this.removalAnnouncement="",this.isOpening=!1,this.isClosingViaSelection=!1,this.initialAsyncFetchTriggered=!1,this.pendingUnresolvedFetch=!1,this.handleTriggerClick=e=>{if(!this.disabled){if(e&&"pill"===this.selectedDisplay&&"inline"===this.pillPosition&&e.composedPath().some((e=>{var i;return"pds-chip"===(null===(i=e.tagName)||void 0===i?void 0:i.toLowerCase())})))return;this.isOpen?this.closeDropdown():this.openDropdown()}},this.handleTriggerKeyDown=e=>{if(e.target===this.triggerEl)switch(e.key){case"ArrowDown":case"ArrowUp":case"Enter":case" ":e.preventDefault(),this.isOpen||this.openDropdown()}},this.handleSearchInputChange=e=>{this.searchQuery=e.target.value,this.highlightedIndex=-1,this.pdsMultiselectSearch.emit({query:this.searchQuery}),this.asyncUrl&&this.debouncedFetchAsyncOptions(this.searchQuery,1)},this.handleSearchInputKeyDown=e=>{var i,t,s;const o=this.getFilteredOptions();switch(e.key){case"ArrowDown":{e.preventDefault();let t=this.highlightedIndex+1;for(;t<o.length&&(null===(i=o[t])||void 0===i?void 0:i.disabled);)t++;t<o.length&&(this.highlightedIndex=t,this.scrollOptionIntoView());break}case"ArrowUp":{e.preventDefault();let i=Math.max(this.highlightedIndex-1,0);for(;i>0&&(null===(t=o[i])||void 0===t?void 0:t.disabled);)i--;(null===(s=o[i])||void 0===s?void 0:s.disabled)||(this.highlightedIndex=i,this.scrollOptionIntoView());break}case"Enter":if(e.preventDefault(),this.highlightedIndex>=0){const e=o[this.highlightedIndex];e&&this.selectOption(e)}break;case"Tab":this.closeDropdown()}},this.handleContainerFocusOut=()=>{setTimeout((()=>{var e;if(!this.isOpen||this.isOpening||this.isClosingViaSelection)return;const i=document.activeElement;(null===(e=this.el.shadowRoot)||void 0===e?void 0:e.contains(i))||i===this.el||(this.pdsMultiselectDismiss.emit(),this.closeDropdown())}),0)},this.handleOptionMouseDown=e=>i=>{i.preventDefault(),this.toggleOption(e)},this.handleOptionMouseEnter=(e,i)=>()=>{i.disabled||(this.highlightedIndex=e)},this.handleScroll=e=>{if(!this.asyncUrl||!this.hasMore||this.loading)return;const i=e.target;i.scrollHeight-i.scrollTop-i.clientHeight<50&&(this.pdsMultiselectLoadOptions.emit({query:this.searchQuery,page:this.currentPage+1}),this.debouncedFetchAsyncOptions(this.searchQuery,this.currentPage+1))},this.handlePillRemove=e=>()=>{var i,t;if(this.disabled)return;const s=e.id+"";this.value=this.value.filter((e=>e!==s)),this.syncSelectedItems(),this.pdsMultiselectChange.emit({values:this.value,items:this.selectedItems}),this.removalAnnouncement="",queueMicrotask((()=>{this.removalAnnouncement=e.text+" removed"})),this.isClosingViaSelection=!0,this.isOpen?null===(i=this.searchInputEl)||void 0===i||i.focus():null===(t=this.triggerEl)||void 0===t||t.focus(),setTimeout((()=>{this.isClosingViaSelection=!1}),0)}}connectedCallback(){this.el.attachInternals&&!this.internals&&(this.internals=this.el.attachInternals())}componentWillLoad(){this.originalSearchEmitter=this.pdsMultiselectSearch,this.syncSelectedItems()}componentDidLoad(){this.setupDebounce(),this.setupMutationObserver(),this.setupSlotChangeListener(),this.updateFormValue(),requestAnimationFrame((()=>{this.updateOptionsFromSlot(),this.syncSelectedItems()})),this.asyncUrl&&this.ensureValueArray().length>0&&(this.initialAsyncFetchTriggered=!0,this.fetchOptions("",1))}setupSlotChangeListener(){var e;const i=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])");i&&(i.addEventListener("slotchange",(()=>{this.updateOptionsFromSlot(),this.syncSelectedItems()})),this.updateOptionsFromSlot())}disconnectedCallback(){var e,i;null===(e=this.observer)||void 0===e||e.disconnect(),null===(i=this.cleanupAutoUpdate)||void 0===i||i.call(this),this.clearAsyncFetchState()}setupDebounce(){const{pdsMultiselectSearch:e,debounce:i,originalSearchEmitter:t}=this;this.pdsMultiselectSearch=void 0===i?null!=t?t:e:h(e,i)}valueChanged(e){if("string"==typeof e)try{const i=JSON.parse(e);if(Array.isArray(i))return void(this.value=i)}catch(i){return void(this.value=e?[e]:[])}if(this.syncSelectedItems(),this.updateFormValue(),this.asyncUrl){const e=this.ensureValueArray();e.length>0&&this.selectedItems.length<e.length&&(this.loading?this.pendingUnresolvedFetch=!0:this.fetchOptions("",1))}}optionsChanged(){this.options&&(this.internalOptions=[...this.options])}internalOptionsChanged(){this.syncSelectedItems()}async setFocus(){var e;null===(e=this.triggerEl)||void 0===e||e.focus()}async clear(){const e=this.value.length>0||""!==this.searchQuery;this.value=[],this.searchQuery="",this.syncSelectedItems(),this.updateFormValue(),e&&this.pdsMultiselectChange.emit({values:[],items:[]})}handleWindowKeyDown(e){var i;this.isOpen&&"Escape"===e.key&&(e.preventDefault(),this.pdsMultiselectDismiss.emit(),this.closeDropdown(),null===(i=this.triggerEl)||void 0===i||i.focus())}setupMutationObserver(){this.observer=new MutationObserver((()=>{this.updateOptionsFromSlot()})),this.observer.observe(this.el,{childList:!0,subtree:!0})}updateOptionsFromSlot(){var e;const i=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])");if(!i)return;const t=[];i.assignedElements({flatten:!0}).forEach((e=>{var i;if("OPTGROUP"===e.tagName){const i=e.label,s=e.disabled;e.querySelectorAll("option").forEach((e=>{var o;const n={id:e.value,text:(null===(o=e.textContent)||void 0===o?void 0:o.trim())||e.value,disabled:e.disabled||s||void 0};i&&(n.group=i),t.push(n)}))}else if("OPTION"===e.tagName){const s=e;t.push({id:s.value,text:(null===(i=s.textContent)||void 0===i?void 0:i.trim())||s.value,disabled:s.disabled||void 0})}})),t.length>0&&!this.asyncUrl&&!this.options&&(this.internalOptions=t)}clearAsyncFetchState(){var e;void 0!==this.fetchDebounceTimer&&(window.clearTimeout(this.fetchDebounceTimer),this.fetchDebounceTimer=void 0),void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),null===(e=this.abortController)||void 0===e||e.abort(),this.abortController=void 0}debouncedFetchAsyncOptions(e,i=1){var t;if(!this.asyncUrl)return;void 0!==this.fetchDebounceTimer&&window.clearTimeout(this.fetchDebounceTimer);const s=Math.max(0,null!==(t=this.debounce)&&void 0!==t?t:0);this.fetchDebounceTimer=window.setTimeout((()=>{this.fetchDebounceTimer=void 0,this.fetchOptions(e,i)}),s)}syncSelectedItems(){const e=this.ensureValueArray(),i=this.getAllOptions(),t=[],s=new Map(this.selectedItems.map((e=>[e.id+"",e])));e.forEach((e=>{const o=i.find((i=>i.id+""==e+""));o?t.push(o):s.has(e+"")&&t.push(s.get(e+""))})),this.selectedItems=t}ensureValueArray(){if("string"==typeof this.value)try{const e=JSON.parse(this.value);if(Array.isArray(e))return this.value=e,e}catch(e){const i=this.value;return this.value=i?[i]:[],this.value}return Array.isArray(this.value)?this.value:[]}getAllOptions(){return this.options||this.internalOptions}getFilteredOptions(){const e=this.getAllOptions(),i=this.searchQuery.toLowerCase(),t=e.filter((e=>!i||e.text.toLowerCase().includes(i)));return this.createUrl&&this.searchQuery.trim()&&0===t.length?[{id:"__create__",text:this.searchQuery.trim(),isCreateOption:!0}]:t}updateFormValue(){var e;if(!m()&&(null===(e=this.internals)||void 0===e?void 0:e.setFormValue)){const e=this.ensureValueArray(),i=new FormData;e.forEach((e=>{this.name&&i.append(this.name,e)})),this.internals.setFormValue(i),this.required&&0===e.length?this.internals.setValidity({valueMissing:!0},"Please select at least one option.",this.triggerEl):this.internals.setValidity({})}}getCsrfToken(){if(this.csrfToken)return this.csrfToken;const e=document.querySelector('meta[name="csrf-token"]');return(null==e?void 0:e.content)||null}async fetchOptions(e,i=1){var t;if(this.asyncUrl){null===(t=this.abortController)||void 0===t||t.abort(),void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),this.abortController=new AbortController,this.loading=!0,this.fetchTimeoutTimer=window.setTimeout((()=>{var e;null===(e=this.abortController)||void 0===e||e.abort(),this.fetchTimeoutTimer=void 0}),this.fetchTimeout);try{let t;try{t=new URL(this.asyncUrl,window.location.origin)}catch(e){throw new TypeError("Invalid asyncUrl: "+this.asyncUrl)}"GET"===this.asyncMethod&&(t.searchParams.set("search",e),t.searchParams.set("page",i+""));const s=this.getCsrfToken(),o={"Content-Type":"application/json",Accept:"application/json"};s&&(o[this.csrfHeaderName||"X-CSRF-Token"]=s);const n=await fetch(""+t,Object.assign({method:this.asyncMethod,signal:this.abortController.signal,headers:o},"POST"===this.asyncMethod&&{body:JSON.stringify({search:e,page:i})}));if(void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),!n.ok)throw Error("Failed to fetch options");const l=await n.json(),r=l.results.map((e=>this.formatResult?this.formatResult(e):"object"==typeof e&&null!==e?Object.assign({id:e.id,text:e.text},e):{id:e+"",text:e+""}));this.internalOptions=1===i?r:[...this.internalOptions,...r],this.hasMore=!!l.totalCount&&this.internalOptions.length<l.totalCount,this.currentPage=i}catch(e){void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),"AbortError"!==e.name&&console.error("PdsMultiselect: Failed to fetch options",e)}finally{if(this.loading=!1,this.pendingUnresolvedFetch){this.pendingUnresolvedFetch=!1;const e=this.ensureValueArray();e.length>0&&this.selectedItems.length<e.length&&this.fetchOptions("",1)}}}}async createOption(e){if(this.createUrl&&e.trim()&&!this.creating){this.creating=!0;try{const i=new URL(this.createUrl,window.location.origin),t=this.getCsrfToken(),s={"Content-Type":"application/json",Accept:"application/json"};t&&(s[this.csrfHeaderName||"X-CSRF-Token"]=t);const o=await fetch(""+i,{method:"POST",headers:s,body:JSON.stringify({text:e.trim()})});if(!o.ok)throw Error("Failed to create option");const n=await o.json(),l=Object.assign({id:n.id,text:n.text},n);this.internalOptions=[...this.internalOptions,l],this.value=[...this.value,l.id+""],this.syncSelectedItems(),this.pdsMultiselectCreate.emit({query:e.trim(),newOption:l}),this.pdsMultiselectChange.emit({values:this.value,items:this.selectedItems}),this.searchQuery="",this.highlightedIndex=-1,requestAnimationFrame((()=>{var e;null===(e=this.searchInputEl)||void 0===e||e.focus()}))}catch(e){console.error("PdsMultiselect: Failed to create option",e)}finally{this.creating=!1}}}openDropdown(){this.disabled||(this.isOpening=!0,this.isOpen=!0,this.highlightedIndex=-1,this.asyncUrl&&0===this.internalOptions.length&&!this.initialAsyncFetchTriggered&&this.debouncedFetchAsyncOptions(this.searchQuery,1),this.initialAsyncFetchTriggered=!1,requestAnimationFrame((()=>{var e;this.positionDropdown(),null===(e=this.searchInputEl)||void 0===e||e.focus(),setTimeout((()=>{this.isOpening=!1}),50)})))}closeDropdown(){this.isOpen=!1,this.highlightedIndex=-1,this.searchQuery="",this.isClosingViaSelection&&setTimeout((()=>{this.isClosingViaSelection=!1}),0),this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=void 0)}positionDropdown(){if(!this.containerEl||!this.panelEl)return;const e=this.pillInlineTriggerEl||this.triggerEl||this.containerEl,{minWidth:i,panelWidth:t}=this,s=()=>{r(e,this.panelEl,{placement:"bottom-start",strategy:"absolute",middleware:[a(12),d(),p({padding:8}),c({apply:({rects:e,elements:s})=>{Object.assign(s.floating.style,{width:null!=t?t:e.reference.width+"px",minWidth:i})}})]}).then((({x:e,y:i})=>{this.panelEl&&(this.panelEl.style.left=e+"px",this.panelEl.style.top=i+"px")}))};s();const o=l(e,this.panelEl,s);this.cleanupAutoUpdate=()=>{o(),this.clearAsyncFetchState()}}scrollOptionIntoView(){requestAnimationFrame((()=>{var e;const i=null===(e=this.listboxEl)||void 0===e?void 0:e.querySelector(`[data-index="${this.highlightedIndex}"]`);null==i||i.scrollIntoView({block:"nearest",behavior:"smooth"})}))}toggleOption(e){var i,t;if(e.disabled)return;if(e.isCreateOption)return void(this.creating||this.createOption(this.searchQuery));const s=e.id+"";if(this.value.includes(s))this.value=this.value.filter((e=>e!==s));else{if(this.maxSelections&&this.value.length>=this.maxSelections)return;this.value=[...this.value,s]}this.syncSelectedItems(),this.pdsMultiselectChange.emit({values:this.value,items:this.selectedItems}),this.closePanelOnSelect?(this.isClosingViaSelection=!0,this.closeDropdown(),null===(i=this.triggerEl)||void 0===i||i.focus()):null===(t=this.searchInputEl)||void 0===t||t.focus()}selectOption(e){this.toggleOption(e)}getGroupedRenderItems(e){const i=[];let t=null;return e.forEach(((e,s)=>{const o=e.group;void 0!==o?(t&&t.group===o||(t={type:"group",group:o,options:[]},i.push(t)),t.options.push({option:e,index:s})):(t=null,i.push({type:"option",option:e,index:s}))})),i}renderOption(e,i,t){const o=t.includes(e.id+""),n=e.isCreateOption,l=e.disabled,r=n&&this.creating;return s("li",{key:e.id+"",id:`${this.componentId}-option-${i}`,class:{"pds-multiselect__option":!0,"pds-multiselect__option--highlighted":i===this.highlightedIndex&&!n,"pds-multiselect__option--selected":o,"pds-multiselect__option--create":n,"pds-multiselect__option--disabled":l||r},role:"option","aria-selected":o?"true":"false","aria-disabled":l||r?"true":void 0,"aria-label":n?"Create new tag: "+e.text:void 0,"data-index":i,onMouseDown:this.handleOptionMouseDown(e),onMouseEnter:this.handleOptionMouseEnter(i,e)},n?s("pds-box",{class:"pds-multiselect__create-option","align-items":"center",gap:"xs"},s("pds-icon",{name:"add",size:"small"}),s("pds-text",null,'Add "',e.text,'"')):s("pds-checkbox",{componentId:`${this.componentId}-checkbox-${i}`,checked:o,label:e.text,disabled:l,style:{pointerEvents:"none"}}))}renderSelectedItemsList(){return this.hideSelectedItems||0===this.selectedItems.length?null:s("div",{class:"pds-multiselect__selected-section"},s("ul",{class:"pds-multiselect__selected-list",role:"list"},this.selectedItems.map((e=>s("li",{key:e.id+"",class:"pds-multiselect__selected-item"},e.text)))))}renderDropdown(){if(!this.isOpen)return null;const e=this.getFilteredOptions(),i=this.ensureValueArray(),t=!!this.el.querySelector('[slot="empty"]'),o=!!this.el.querySelector('[slot="loading"]');return s("div",{class:"pds-multiselect__panel",ref:e=>this.panelEl=e,style:{minWidth:this.minWidth}},s("div",{class:"pds-multiselect__search"},s("pds-icon",{name:"search",size:"small"}),s("input",{ref:e=>this.searchInputEl=e,type:"text",class:"pds-multiselect__search-input",placeholder:this.searchPlaceholder,value:this.searchQuery,"aria-label":"Search options","aria-controls":this.componentId+"-listbox","aria-activedescendant":this.highlightedIndex>=0?`${this.componentId}-option-${this.highlightedIndex}`:void 0,role:"combobox","aria-haspopup":"listbox","aria-expanded":"true","aria-autocomplete":"list",autocomplete:"off",onInput:this.handleSearchInputChange,onKeyDown:this.handleSearchInputKeyDown})),this.renderSelectedItemsList(),s("ul",{class:"pds-multiselect__listbox",role:"listbox","aria-multiselectable":"true","aria-label":this.label||"Options",id:this.componentId+"-listbox",ref:e=>this.listboxEl=e,style:{maxHeight:this.maxHeight},onScroll:this.handleScroll},this.loading&&s("li",{class:"pds-multiselect__loading",role:"presentation"},o?s("slot",{name:"loading"}):s("pds-loader",{size:"small"})),!this.loading&&0===e.length&&s("li",{class:"pds-multiselect__empty",role:"presentation"},t?s("slot",{name:"empty"}):s("span",null,"No options found")),this.getGroupedRenderItems(e).map(((e,t)=>"group"===e.type?s("li",{key:"group-"+t,role:"group","aria-label":e.group,class:"pds-multiselect__group"},s("span",{class:"pds-multiselect__group-header","aria-hidden":"true"},e.group),s("ul",{class:"pds-multiselect__group-list",role:"presentation"},e.options.map((({option:e,index:t})=>this.renderOption(e,t,i))))):this.renderOption(e.option,e.index,i))),this.hasMore&&!this.loading&&s("li",{class:"pds-multiselect__load-more",role:"presentation"},s("pds-loader",{size:"small"}))))}renderInlinePills(){if(!(this.selectedItems.length>0))return s("span",{class:"pds-multiselect__trigger-text pds-multiselect__trigger-text--placeholder"},this.placeholder||"Select...");const e=this.disabled?"text":"tag",i=this.selectedItems.slice(0,Math.max(1,this.maxInlinePills)),t=this.selectedItems.length-i.length;return s("div",{class:"pds-multiselect__pill-list pds-multiselect__pill-list--inline","aria-label":"Selected items"},i.map((i=>s("pds-chip",{key:i.id+"","component-id":`${this.componentId}-pill-${i.id}`,variant:e,size:"sm",sentiment:"neutral",onPdsTagCloseClick:this.handlePillRemove(i)},i.text))),t>0&&s("span",{class:"pds-multiselect__pill-overflow"},"+",t))}renderBelowPills(){if(0===this.selectedItems.length)return null;const e=this.disabled?"text":"tag";return s("div",{class:"pds-multiselect__pill-list pds-multiselect__pill-list--below","aria-label":"Selected items"},this.selectedItems.map((i=>s("pds-chip",{key:i.id+"","component-id":`${this.componentId}-pill-${i.id}`,variant:e,size:"md",sentiment:"neutral",onPdsTagCloseClick:this.handlePillRemove(i)},i.text))))}getTriggerText(){const e=this.selectedItems.length;return 0===e||"pill"===this.selectedDisplay&&"below"===this.pillPosition?this.placeholder||"Select...":`${e} item${1===e?"":"s"}`}render(){const e=this.selectedItems.length>0;return s(o,{key:"086b6d2d199b35110e64ba1da3c12f1a81360581","aria-disabled":this.disabled?"true":null},s("div",{key:"c2faf217a97de056a9111a78e7077025e4ab5ee1",class:"pds-multiselect",onFocusout:this.handleContainerFocusOut},this.label&&s("label",{key:"0aff86a3a0054aef256bac5c0204dd914a9bd3ae",id:this.componentId+"-label",htmlFor:this.componentId,class:{"pds-multiselect__label":!0,"visually-hidden":this.hideLabel}},this.label),s("div",{key:"3b92119871dc32bb3c9a559be816bdece2fc30a6",class:"pds-multiselect__wrapper",ref:e=>this.containerEl=e,style:{width:this.triggerWidth}},"pill"===this.selectedDisplay&&"inline"===this.pillPosition?s("div",{ref:e=>this.pillInlineTriggerEl=e||void 0,part:"trigger",class:{"pds-multiselect__trigger":!0,"pds-multiselect__trigger--open":this.isOpen,"pds-multiselect__trigger--disabled":this.disabled,"pds-multiselect__trigger--invalid":this.invalid||!!this.errorMessage,"pds-multiselect__trigger--has-value":e,"pds-multiselect__trigger--pill-inline":!0},onClick:this.handleTriggerClick},this.renderInlinePills(),s("button",{ref:e=>this.triggerEl=e,type:"button",id:this.componentId,part:"pill-toggle",class:"pds-multiselect__pill-toggle",disabled:this.disabled,"aria-expanded":this.isOpen?"true":"false","aria-haspopup":"listbox","aria-labelledby":this.label?this.componentId+"-label":void 0,"aria-required":this.required?"true":void 0,"aria-describedby":u(this.componentId,this.invalid||!!this.errorMessage,this.errorMessage||this.helperMessage),"aria-invalid":this.invalid||this.errorMessage?"true":void 0,onKeyDown:this.handleTriggerKeyDown},s("pds-icon",{class:"pds-multiselect__icon",icon:g}))):s("button",{ref:e=>this.triggerEl=e,type:"button",part:"trigger",class:{"pds-multiselect__trigger":!0,"pds-multiselect__trigger--open":this.isOpen,"pds-multiselect__trigger--disabled":this.disabled,"pds-multiselect__trigger--invalid":this.invalid||!!this.errorMessage,"pds-multiselect__trigger--has-value":e},id:this.componentId,disabled:this.disabled,"aria-required":this.required?"true":void 0,"aria-expanded":this.isOpen?"true":"false","aria-haspopup":"listbox","aria-describedby":u(this.componentId,this.invalid||!!this.errorMessage,this.errorMessage||this.helperMessage),"aria-invalid":this.invalid||this.errorMessage?"true":void 0,onClick:this.handleTriggerClick,onKeyDown:this.handleTriggerKeyDown},s("span",{class:{"pds-multiselect__trigger-text":!0,"pds-multiselect__trigger-text--placeholder":!e||"pill"===this.selectedDisplay&&"below"===this.pillPosition}},this.getTriggerText()),s("pds-icon",{class:"pds-multiselect__icon",icon:g})),this.renderDropdown()),"pill"===this.selectedDisplay&&"below"===this.pillPosition&&this.renderBelowPills(),s("span",{key:"07d6a6bf9ccc2fe8bfcf9502a1cd4b7abf5c5e6f",class:"visually-hidden","aria-live":"polite","aria-atomic":"true"},this.removalAnnouncement),this.helperMessage&&!(this.errorMessage&&this.errorMessage.length>0)&&s("p",{key:"a94bb6f31805d31ec3cd5b5f2ca8b1984f4d41d1",class:"pds-multiselect__helper",id:b(this.componentId,"helper")},this.helperMessage),this.errorMessage&&s("p",{key:"15afc6b9313e1fe22bd56b00eee1ebcf9e085c2e",class:"pds-multiselect__error",id:b(this.componentId,"error")},s("pds-icon",{key:"452814577b14ca8f891b101903bd1a7a7e5d8bb1",icon:v,size:"small"}),this.errorMessage),s("div",{key:"d8ce787886e666303759cd2654c78b44269a40ff",style:{display:"none"}},s("slot",{key:"8295376fb03b23d44c5baeca9bc967514e433e0f"}))))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{debounce:[{setupDebounce:0}],value:[{valueChanged:0}],options:[{optionsChanged:0}],internalOptions:[{internalOptionsChanged:0}]}}static get style(){return":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-medium);gap:var(--pine-dimension-xs);-ms-flex-pack:justify;justify-content:space-between;letter-spacing:var(--pine-letter-spacing);min-height:var(--pine-dimension-450);padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;text-align:start;-webkit-transition:border-color var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, box-shadow var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) 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__pill-list{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-2xs)}.pds-multiselect__pill-list--inline{-ms-flex:1;flex:1;min-width:0}.pds-multiselect__pill-list--below{-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-multiselect__pill-overflow{color:var(--pine-color-text-muted);font:var(--pine-typography-body-sm-medium);white-space:nowrap}.pds-multiselect__trigger--pill-inline{-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-2xs);min-height:var(--pine-dimension-450);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm)}.pds-multiselect__trigger--pill-inline.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger--pill-inline:focus-within: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--pill-inline.pds-multiselect__trigger--invalid:focus-within{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__pill-toggle{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border-width:0;cursor:pointer;display:-ms-flexbox;display:flex;padding:0}.pds-multiselect__pill-toggle:focus{outline:3px solid transparent}.pds-multiselect__trigger--disabled .pds-multiselect__pill-toggle{cursor:not-allowed;pointer-events:none}.pds-multiselect__panel{background:var(--pine-color-background-overlay);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__group-header{color:var(--pine-color-text-muted);display:block;font:var(--pine-typography-body-sm-medium);letter-spacing:var(--pine-letter-spacing);padding:var(--pine-dimension-sm) var(--pine-dimension-xs) var(--pine-dimension-2xs);text-transform:uppercase}.pds-multiselect__listbox>li:first-child>.pds-multiselect__group-header{-webkit-padding-before:var(--pine-dimension-xs);padding-block-start:var(--pine-dimension-xs)}.pds-multiselect__group-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.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:not(.pds-multiselect__option--disabled),.pds-multiselect__option.pds-multiselect__option--highlighted:not(.pds-multiselect__option--disabled){background:var(--pine-color-background-muted)}.pds-multiselect__option.pds-multiselect__option--disabled{cursor:not-allowed;opacity:0.5}.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}"}},[321,"pds-multiselect",{componentId:[1,"component-id"],label:[1],placeholder:[1],searchPlaceholder:[1,"search-placeholder"],closePanelOnSelect:[4,"close-panel-on-select"],name:[1],value:[1040],disabled:[4],asyncUrl:[1,"async-url"],asyncMethod:[1,"async-method"],debounce:[2],fetchTimeout:[2,"fetch-timeout"],maxSelections:[2,"max-selections"],maxHeight:[1,"max-height"],triggerWidth:[1,"trigger-width"],minWidth:[1,"min-width"],panelWidth:[1,"panel-width"],hideLabel:[4,"hide-label"],hideSelectedItems:[4,"hide-selected-items"],selectedDisplay:[1,"selected-display"],pillPosition:[1,"pill-position"],maxInlinePills:[2,"max-inline-pills"],errorMessage:[1,"error-message"],helperMessage:[1,"helper-message"],invalid:[4],required:[4],loading:[1028],options:[16],formatResult:[16],createUrl:[1,"create-url"],csrfToken:[1,"csrf-token"],csrfHeaderName:[1,"csrf-header-name"],isOpen:[32],searchQuery:[32],highlightedIndex:[32],internalOptions:[32],selectedItems:[32],currentPage:[32],hasMore:[32],creating:[32],removalAnnouncement:[32],setFocus:[64],clear:[64]},[[8,"keydown","handleWindowKeyDown"]],{debounce:[{setupDebounce:0}],value:[{valueChanged:0}],options:[{optionsChanged:0}],internalOptions:[{internalOptionsChanged:0}]}]),C=O,S=function(){"undefined"!=typeof customElements&&["pds-multiselect","pds-box","pds-checkbox","pds-chip","pds-icon","pds-loader","pds-text"].forEach((e=>{switch(e){case"pds-multiselect":customElements.get(n(e))||customElements.define(n(e),O);break;case"pds-box":customElements.get(n(e))||_();break;case"pds-checkbox":customElements.get(n(e))||x();break;case"pds-chip":customElements.get(n(e))||f();break;case"pds-icon":customElements.get(n(e))||w();break;case"pds-loader":customElements.get(n(e))||y();break;case"pds-text":customElements.get(n(e))||k()}}))};export{C as PdsMultiselect,S as defineCustomElement}
|