@pine-ds/core 3.22.1 → 3.24.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/floating-ui.dom.js +142 -129
- package/components/floating-ui.dom.js.map +1 -1
- package/components/form.js +14 -1
- package/components/form.js.map +1 -1
- package/components/index.d.ts +2 -0
- package/components/index.js +1 -0
- package/components/index.js.map +1 -1
- package/components/index2.js +1 -1
- package/components/index2.js.map +1 -1
- package/components/mock-pds-modal.js +1 -1
- package/components/pds-alert.js +1 -1
- package/components/pds-alert.js.map +1 -1
- package/components/pds-avatar.js +1 -1
- package/components/pds-avatar.js.map +1 -1
- package/components/pds-checkbox2.js +5 -7
- package/components/pds-checkbox2.js.map +1 -1
- package/components/pds-chip2.js +1 -1
- package/components/pds-chip2.js.map +1 -1
- package/components/pds-combobox.js +46 -41
- package/components/pds-combobox.js.map +1 -1
- package/components/pds-container.d.ts +11 -0
- package/components/pds-container.js +61 -0
- package/components/pds-container.js.map +1 -0
- package/components/pds-copytext.js +1 -1
- package/components/pds-divider.js +1 -1
- package/components/pds-dropdown-menu-item.js +1 -1
- package/components/pds-dropdown-menu-item.js.map +1 -1
- package/components/pds-dropdown-menu-separator.js +1 -1
- package/components/pds-dropdown-menu.js +1 -1
- package/components/pds-filter.js +1 -1
- package/components/pds-filters.js +1 -1
- package/components/pds-image.js +2 -2
- package/components/pds-input.js +4 -2
- package/components/pds-input.js.map +1 -1
- package/components/pds-link2.js +2 -2
- package/components/pds-loader2.js +1 -1
- package/components/pds-modal-content.js +2 -2
- package/components/pds-modal-footer.js +1 -1
- package/components/pds-modal-header.js +1 -1
- package/components/pds-modal.js +3 -3
- package/components/pds-multiselect.js +199 -40
- package/components/pds-multiselect.js.map +1 -1
- package/components/pds-select.js +4 -2
- package/components/pds-select.js.map +1 -1
- package/components/pds-sortable-item.js +1 -1
- package/components/pds-sortable-item.js.map +1 -1
- package/components/pds-sortable.js +98 -93
- package/components/pds-sortable.js.map +1 -1
- package/components/pds-switch.js +5 -7
- package/components/pds-switch.js.map +1 -1
- package/components/pds-textarea.js +8 -6
- package/components/pds-textarea.js.map +1 -1
- package/components/pds-toast.js +3 -3
- package/components/pds-toast.js.map +1 -1
- package/dist/cjs/{floating-ui.dom-Ca6tS7ef.js → floating-ui.dom-BZk7Blsu.js} +144 -131
- package/dist/cjs/floating-ui.dom-BZk7Blsu.js.map +1 -0
- package/dist/cjs/{form-DUqlzovE.js → form-CpM5Z8q7.js} +16 -2
- package/dist/cjs/form-CpM5Z8q7.js.map +1 -0
- package/dist/cjs/{index-D8mNsvM8.js → index-DGBoDsAL.js} +3 -3
- package/dist/cjs/index-DGBoDsAL.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mock-pds-modal.cjs.entry.js +1 -1
- package/dist/cjs/pds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/pds-alert.cjs.entry.js +1 -1
- package/dist/cjs/pds-alert.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
- package/dist/cjs/pds-avatar.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-button.cjs.entry.js +1 -1
- package/dist/cjs/pds-checkbox.cjs.entry.js +6 -8
- package/dist/cjs/pds-checkbox.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-chip.cjs.entry.js +2 -2
- package/dist/cjs/pds-chip.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-combobox.cjs.entry.js +46 -42
- package/dist/cjs/pds-combobox.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-container.cjs.entry.js +37 -0
- package/dist/cjs/pds-container.entry.cjs.js.map +1 -0
- package/dist/cjs/pds-copytext.cjs.entry.js +4 -4
- package/dist/cjs/pds-divider.cjs.entry.js +1 -1
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/pds-dropdown-menu-item.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +1 -1
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js +2 -2
- package/dist/cjs/pds-filter.cjs.entry.js +2 -2
- package/dist/cjs/pds-filters.cjs.entry.js +1 -1
- package/dist/cjs/pds-image.cjs.entry.js +2 -2
- package/dist/cjs/pds-input.cjs.entry.js +5 -3
- package/dist/cjs/pds-input.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-link.cjs.entry.js +3 -3
- package/dist/cjs/pds-loader.cjs.entry.js +1 -1
- package/dist/cjs/pds-modal-content.cjs.entry.js +2 -2
- package/dist/cjs/pds-modal-footer.cjs.entry.js +1 -1
- package/dist/cjs/pds-modal-header.cjs.entry.js +1 -1
- package/dist/cjs/pds-modal.cjs.entry.js +3 -3
- package/dist/cjs/pds-multiselect.cjs.entry.js +187 -38
- package/dist/cjs/pds-multiselect.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/pds-radio.cjs.entry.js +2 -2
- package/dist/cjs/pds-select.cjs.entry.js +5 -3
- package/dist/cjs/pds-select.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-sortable-item.cjs.entry.js +2 -2
- package/dist/cjs/pds-sortable-item.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-sortable.cjs.entry.js +95 -93
- package/dist/cjs/pds-sortable.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-switch.cjs.entry.js +6 -8
- package/dist/cjs/pds-switch.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +1 -1
- package/dist/cjs/pds-text.cjs.entry.js +2 -2
- package/dist/cjs/pds-textarea.cjs.entry.js +9 -7
- package/dist/cjs/pds-textarea.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-toast.cjs.entry.js +3 -3
- package/dist/cjs/pds-toast.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/pine-core.cjs.js +1 -1
- package/dist/cjs/{truncation-tooltip-BGGnm8SZ.js → truncation-tooltip-CVzAha5B.js} +3 -3
- package/dist/cjs/{truncation-tooltip-BGGnm8SZ.js.map → truncation-tooltip-CVzAha5B.js.map} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/pds-alert/pds-alert.js +2 -1
- package/dist/collection/components/pds-alert/pds-alert.js.map +1 -1
- package/dist/collection/components/pds-avatar/pds-avatar.js +3 -1
- package/dist/collection/components/pds-avatar/pds-avatar.js.map +1 -1
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +5 -7
- package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -1
- package/dist/collection/components/pds-chip/pds-chip.js +2 -1
- package/dist/collection/components/pds-chip/pds-chip.js.map +1 -1
- package/dist/collection/components/pds-combobox/pds-combobox.css +5 -0
- package/dist/collection/components/pds-combobox/pds-combobox.js +53 -37
- package/dist/collection/components/pds-combobox/pds-combobox.js.map +1 -1
- package/dist/collection/components/pds-container/pds-container.css +26 -0
- package/dist/collection/components/pds-container/pds-container.js +112 -0
- package/dist/collection/components/pds-container/pds-container.js.map +1 -0
- package/dist/collection/components/pds-container/stories/pds-container.stories.js +89 -0
- package/dist/collection/components/pds-copytext/pds-copytext.js +1 -1
- package/dist/collection/components/pds-divider/pds-divider.js +1 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +4 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js.map +1 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +1 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +1 -1
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +1 -1
- package/dist/collection/components/pds-filters/pds-filters.js +1 -1
- package/dist/collection/components/pds-image/pds-image.js +2 -2
- package/dist/collection/components/pds-input/pds-input.js +4 -2
- package/dist/collection/components/pds-input/pds-input.js.map +1 -1
- package/dist/collection/components/pds-link/pds-link.js +2 -2
- package/dist/collection/components/pds-loader/pds-loader.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +2 -2
- package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal.js +3 -3
- package/dist/collection/components/pds-modal/test/mock-pds-modal.js +1 -1
- package/dist/collection/components/pds-multiselect/multiselect-interface.js.map +1 -1
- package/dist/collection/components/pds-multiselect/pds-multiselect.css +83 -1
- package/dist/collection/components/pds-multiselect/pds-multiselect.js +258 -37
- package/dist/collection/components/pds-multiselect/pds-multiselect.js.map +1 -1
- package/dist/collection/components/pds-multiselect/stories/pds-multiselect.stories.js +226 -0
- package/dist/collection/components/pds-select/pds-select.js +4 -2
- package/dist/collection/components/pds-select/pds-select.js.map +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.css +12 -2
- package/dist/collection/components/pds-sortable/pds-sortable.js +46 -4
- package/dist/collection/components/pds-sortable/pds-sortable.js.map +1 -1
- package/dist/collection/components/pds-sortable/sortable-interface.js.map +1 -1
- package/dist/collection/components/pds-sortable/stories/pds-sortable.stories.js +19 -4
- package/dist/collection/components/pds-switch/pds-switch.js +5 -7
- package/dist/collection/components/pds-switch/pds-switch.js.map +1 -1
- package/dist/collection/components/pds-textarea/pds-textarea.js +8 -6
- package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -1
- package/dist/collection/components/pds-toast/pds-toast.js +6 -3
- package/dist/collection/components/pds-toast/pds-toast.js.map +1 -1
- package/dist/collection/utils/form.js +13 -0
- package/dist/collection/utils/form.js.map +1 -1
- package/dist/docs.json +346 -15
- package/dist/esm/{floating-ui.dom-BO6p966C.js → floating-ui.dom-DDtwbwIl.js} +144 -131
- package/dist/esm/floating-ui.dom-DDtwbwIl.js.map +1 -0
- package/dist/esm/{form-CN-lL5QG.js → form-C3xDZBme.js} +16 -3
- package/dist/esm/form-C3xDZBme.js.map +1 -0
- package/dist/esm/{index-Bmf4Ow_8.js → index-D4ys0pep.js} +3 -3
- package/dist/esm/index-D4ys0pep.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mock-pds-modal.entry.js +1 -1
- package/dist/esm/pds-accordion.entry.js +1 -1
- package/dist/esm/pds-alert.entry.js +1 -1
- package/dist/esm/pds-alert.entry.js.map +1 -1
- package/dist/esm/pds-avatar.entry.js +2 -2
- package/dist/esm/pds-avatar.entry.js.map +1 -1
- package/dist/esm/pds-button.entry.js +1 -1
- package/dist/esm/pds-checkbox.entry.js +6 -8
- package/dist/esm/pds-checkbox.entry.js.map +1 -1
- package/dist/esm/pds-chip.entry.js +2 -2
- package/dist/esm/pds-chip.entry.js.map +1 -1
- package/dist/esm/pds-combobox.entry.js +46 -42
- package/dist/esm/pds-combobox.entry.js.map +1 -1
- package/dist/esm/pds-container.entry.js +35 -0
- package/dist/esm/pds-container.entry.js.map +1 -0
- package/dist/esm/pds-copytext.entry.js +4 -4
- package/dist/esm/pds-divider.entry.js +1 -1
- package/dist/esm/pds-dropdown-menu-item.entry.js +1 -1
- package/dist/esm/pds-dropdown-menu-item.entry.js.map +1 -1
- package/dist/esm/pds-dropdown-menu-separator.entry.js +1 -1
- package/dist/esm/pds-dropdown-menu.entry.js +2 -2
- package/dist/esm/pds-filter.entry.js +2 -2
- package/dist/esm/pds-filters.entry.js +1 -1
- package/dist/esm/pds-image.entry.js +2 -2
- package/dist/esm/pds-input.entry.js +5 -3
- package/dist/esm/pds-input.entry.js.map +1 -1
- package/dist/esm/pds-link.entry.js +3 -3
- package/dist/esm/pds-loader.entry.js +1 -1
- package/dist/esm/pds-modal-content.entry.js +2 -2
- package/dist/esm/pds-modal-footer.entry.js +1 -1
- package/dist/esm/pds-modal-header.entry.js +1 -1
- package/dist/esm/pds-modal.entry.js +3 -3
- package/dist/esm/pds-multiselect.entry.js +187 -38
- package/dist/esm/pds-multiselect.entry.js.map +1 -1
- package/dist/esm/pds-radio-group.entry.js +2 -2
- package/dist/esm/pds-radio.entry.js +2 -2
- package/dist/esm/pds-select.entry.js +5 -3
- package/dist/esm/pds-select.entry.js.map +1 -1
- package/dist/esm/pds-sortable-item.entry.js +2 -2
- package/dist/esm/pds-sortable-item.entry.js.map +1 -1
- package/dist/esm/pds-sortable.entry.js +95 -93
- package/dist/esm/pds-sortable.entry.js.map +1 -1
- package/dist/esm/pds-switch.entry.js +6 -8
- package/dist/esm/pds-switch.entry.js.map +1 -1
- package/dist/esm/pds-table-cell.entry.js +2 -2
- package/dist/esm/pds-table-head-cell.entry.js +1 -1
- package/dist/esm/pds-text.entry.js +2 -2
- package/dist/esm/pds-textarea.entry.js +9 -7
- package/dist/esm/pds-textarea.entry.js.map +1 -1
- package/dist/esm/pds-toast.entry.js +3 -3
- package/dist/esm/pds-toast.entry.js.map +1 -1
- package/dist/esm/pds-tooltip.entry.js +1 -1
- package/dist/esm/pine-core.js +1 -1
- package/dist/esm/{truncation-tooltip-CTHpMbU3.js → truncation-tooltip-Blk4GigP.js} +3 -3
- package/dist/{esm-es5/truncation-tooltip-CTHpMbU3.js.map → esm/truncation-tooltip-Blk4GigP.js.map} +1 -1
- package/dist/esm-es5/floating-ui.dom-DDtwbwIl.js +2 -0
- package/dist/esm-es5/floating-ui.dom-DDtwbwIl.js.map +1 -0
- package/dist/esm-es5/{form-CN-lL5QG.js → form-C3xDZBme.js} +2 -2
- package/dist/esm-es5/form-C3xDZBme.js.map +1 -0
- package/dist/esm-es5/{index-Bmf4Ow_8.js → index-D4ys0pep.js} +1 -1
- package/dist/esm-es5/index-D4ys0pep.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
- package/dist/esm-es5/pds-accordion.entry.js +1 -1
- package/dist/esm-es5/pds-alert.entry.js +1 -1
- package/dist/esm-es5/pds-alert.entry.js.map +1 -1
- package/dist/esm-es5/pds-avatar.entry.js +1 -1
- package/dist/esm-es5/pds-avatar.entry.js.map +1 -1
- package/dist/esm-es5/pds-button.entry.js +1 -1
- package/dist/esm-es5/pds-checkbox.entry.js +1 -1
- package/dist/esm-es5/pds-checkbox.entry.js.map +1 -1
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js.map +1 -1
- package/dist/esm-es5/pds-combobox.entry.js +2 -2
- package/dist/esm-es5/pds-combobox.entry.js.map +1 -1
- package/dist/esm-es5/pds-container.entry.js +2 -0
- package/dist/esm-es5/pds-container.entry.js.map +1 -0
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-divider.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js.map +1 -1
- package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
- package/dist/esm-es5/pds-filter.entry.js +1 -1
- package/dist/esm-es5/pds-filters.entry.js +1 -1
- package/dist/esm-es5/pds-image.entry.js +1 -1
- package/dist/esm-es5/pds-input.entry.js +1 -1
- package/dist/esm-es5/pds-input.entry.js.map +1 -1
- package/dist/esm-es5/pds-link.entry.js +1 -1
- package/dist/esm-es5/pds-loader.entry.js +1 -1
- package/dist/esm-es5/pds-modal-content.entry.js +1 -1
- package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
- package/dist/esm-es5/pds-modal-header.entry.js +1 -1
- package/dist/esm-es5/pds-modal.entry.js +1 -1
- package/dist/esm-es5/pds-multiselect.entry.js +1 -1
- package/dist/esm-es5/pds-multiselect.entry.js.map +1 -1
- package/dist/esm-es5/pds-radio-group.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js +1 -1
- package/dist/esm-es5/pds-select.entry.js +1 -1
- package/dist/esm-es5/pds-select.entry.js.map +1 -1
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
- package/dist/esm-es5/pds-sortable-item.entry.js.map +1 -1
- package/dist/esm-es5/pds-sortable.entry.js +2 -2
- package/dist/esm-es5/pds-sortable.entry.js.map +1 -1
- package/dist/esm-es5/pds-switch.entry.js +1 -1
- package/dist/esm-es5/pds-switch.entry.js.map +1 -1
- package/dist/esm-es5/pds-table-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
- package/dist/esm-es5/pds-text.entry.js +1 -1
- package/dist/esm-es5/pds-textarea.entry.js +1 -1
- package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
- package/dist/esm-es5/pds-toast.entry.js +1 -1
- package/dist/esm-es5/pds-toast.entry.js.map +1 -1
- package/dist/esm-es5/pds-tooltip.entry.js +1 -1
- package/dist/esm-es5/pine-core.js +1 -1
- package/dist/esm-es5/{truncation-tooltip-CTHpMbU3.js → truncation-tooltip-Blk4GigP.js} +2 -2
- package/dist/{esm/truncation-tooltip-CTHpMbU3.js.map → esm-es5/truncation-tooltip-Blk4GigP.js.map} +1 -1
- package/dist/pine-core/p--XSKe449.system.js.map +1 -0
- package/dist/pine-core/p-06921b1a.system.entry.js +2 -0
- package/dist/pine-core/p-06921b1a.system.entry.js.map +1 -0
- package/dist/pine-core/{p-5f63b999.entry.js → p-0e35b09a.entry.js} +2 -2
- package/dist/pine-core/{p-b2a7c2bf.entry.js → p-0f376270.entry.js} +2 -2
- package/dist/pine-core/p-10e0be55.entry.js +2 -0
- package/dist/pine-core/{p-9f09e116.system.entry.js → p-137517ea.system.entry.js} +2 -2
- package/dist/pine-core/{p-203f6e9e.entry.js → p-14ca4f31.entry.js} +2 -2
- package/dist/pine-core/p-1fa303af.entry.js +2 -0
- package/dist/pine-core/p-213d0f72.system.entry.js +2 -0
- package/dist/pine-core/p-213d0f72.system.entry.js.map +1 -0
- package/dist/pine-core/p-23450d7a.system.entry.js +2 -0
- package/dist/pine-core/p-23450d7a.system.entry.js.map +1 -0
- package/dist/pine-core/{p-b6ede995.system.entry.js → p-2483b797.system.entry.js} +2 -2
- package/dist/pine-core/p-29a8ef8a.entry.js +2 -0
- package/dist/pine-core/p-29a8ef8a.entry.js.map +1 -0
- package/dist/pine-core/{p-f179c88f.system.entry.js → p-2f0eb2b5.system.entry.js} +2 -2
- package/dist/pine-core/{p-68f97bdf.entry.js → p-2f6f60d9.entry.js} +2 -2
- package/dist/pine-core/p-3a527283.entry.js +8 -0
- package/dist/pine-core/p-3a527283.entry.js.map +1 -0
- package/dist/pine-core/{p-73be1c83.entry.js → p-3b342c35.entry.js} +2 -2
- package/dist/pine-core/{p-9ba4acdf.system.entry.js → p-3f0a6a75.system.entry.js} +2 -2
- package/dist/pine-core/{p-51d2999d.entry.js → p-426e90cb.entry.js} +2 -2
- package/dist/pine-core/{p-119ccf73.entry.js → p-426f5f57.entry.js} +2 -2
- package/dist/pine-core/p-4591a359.system.entry.js +9 -0
- package/dist/pine-core/p-4591a359.system.entry.js.map +1 -0
- package/dist/pine-core/{p-7737e4e8.system.entry.js → p-4d2e9e8d.system.entry.js} +2 -2
- package/dist/pine-core/p-4f6487b9.system.entry.js +2 -0
- package/dist/pine-core/p-4f6487b9.system.entry.js.map +1 -0
- package/dist/pine-core/{p-DKT0sVlZ.system.js.map → p-5L_gsODn.system.js.map} +1 -1
- package/dist/pine-core/p-66644048.entry.js +2 -0
- package/dist/pine-core/{p-b8f21554.system.entry.js → p-6b456e02.system.entry.js} +2 -2
- package/dist/pine-core/{p-d0504aa8.system.entry.js → p-6be19a23.system.entry.js} +2 -2
- package/dist/pine-core/{p-d8d796ad.system.entry.js → p-6dcd7876.system.entry.js} +2 -2
- package/dist/pine-core/{p-8a53ae6d.system.entry.js → p-712e0d82.system.entry.js} +2 -2
- package/dist/pine-core/p-72a27cb7.system.entry.js +2 -0
- package/dist/pine-core/p-72a27cb7.system.entry.js.map +1 -0
- package/dist/pine-core/{p-3fc8dbc9.system.entry.js → p-75a53dce.system.entry.js} +2 -2
- package/dist/pine-core/{p-2f663747.system.entry.js → p-7dfb5b1f.system.entry.js} +2 -2
- package/dist/pine-core/{p-e9eb3fc3.system.entry.js → p-811e510d.system.entry.js} +2 -2
- package/dist/pine-core/{p-7fc20a77.system.entry.js → p-84b696ce.system.entry.js} +2 -2
- package/dist/pine-core/p-8501bb6b.entry.js +2 -0
- package/dist/pine-core/p-8501bb6b.entry.js.map +1 -0
- package/dist/pine-core/p-8c000d7c.entry.js +2 -0
- package/dist/pine-core/{p-ccdee55a.entry.js → p-8c0fc8ff.entry.js} +2 -2
- package/dist/pine-core/p-8f48fa0b.system.entry.js +2 -0
- package/dist/pine-core/p-8f48fa0b.system.entry.js.map +1 -0
- package/dist/pine-core/{p-18a3b6ba.system.entry.js → p-92df334f.system.entry.js} +2 -2
- package/dist/pine-core/{p-1b0dc99e.system.entry.js → p-93eeca70.system.entry.js} +2 -2
- package/dist/pine-core/p-98e202b8.system.entry.js +2 -0
- package/dist/pine-core/{p-445c5ec5.system.entry.js → p-9947c6cd.system.entry.js} +2 -2
- package/dist/pine-core/{p-1d82417a.entry.js → p-9d2e89e5.entry.js} +2 -2
- package/dist/pine-core/{p-cbf49268.entry.js → p-9ea92b46.entry.js} +2 -2
- package/dist/pine-core/p-9f0f1389.entry.js +2 -0
- package/dist/pine-core/{p-bf712423.entry.js.map → p-9f0f1389.entry.js.map} +1 -1
- package/dist/pine-core/{p-Bch44a-T.system.js → p-B1u-QvFn.system.js} +2 -2
- package/dist/pine-core/p-B1u-QvFn.system.js.map +1 -0
- package/dist/pine-core/{p-BASnRvhy.system.js.map → p-B8OHXU49.system.js.map} +1 -1
- package/dist/pine-core/{p-5hPM5knE.js → p-BNSGedhN.js} +2 -2
- package/dist/pine-core/{p-5hPM5knE.js.map → p-BNSGedhN.js.map} +1 -1
- package/dist/pine-core/p-B_IKQKhn.system.js.map +1 -0
- package/dist/pine-core/{p-CSe1fQxQ.system.js.map → p-Bb4REZL1.system.js.map} +1 -1
- package/dist/pine-core/p-BfOM0dtX.system.js.map +1 -0
- package/dist/pine-core/{p-C1p8XJSR.system.js.map → p-BgNsCT1R.system.js.map} +1 -1
- package/dist/pine-core/p-Bng_-RSY.system.js.map +1 -0
- package/dist/pine-core/{p-dPhHNR2G.system.js.map → p-Bp9jwGLH.system.js.map} +1 -1
- package/dist/pine-core/{p-B9rVdQdy.system.js.map → p-BqPhyc8k.system.js.map} +1 -1
- package/dist/pine-core/p-BrLs99ML.system.js +2 -0
- package/dist/pine-core/p-BrLs99ML.system.js.map +1 -0
- package/dist/pine-core/p-C3xDZBme.js +2 -0
- package/dist/pine-core/p-C3xDZBme.js.map +1 -0
- package/dist/pine-core/{p-CFL53vBy.system.js → p-C62JIZmE.system.js} +1 -1
- package/dist/pine-core/p-C62JIZmE.system.js.map +1 -0
- package/dist/pine-core/{p-DQCerqxZ.system.js.map → p-C6TsH_RJ.system.js.map} +1 -1
- package/dist/pine-core/p-C9msrPdv.system.js.map +1 -0
- package/dist/pine-core/{p-BR9M75xt.system.js.map → p-CI7DD4Gj.system.js.map} +1 -1
- package/dist/pine-core/{p-DXVwADJT.system.js → p-CRCxGYgw.system.js} +2 -2
- package/dist/pine-core/{p-DXVwADJT.system.js.map → p-CRCxGYgw.system.js.map} +1 -1
- package/dist/pine-core/p-CXhVuzyx.system.js.map +1 -0
- package/dist/pine-core/{p-9SGoKSa6.system.js.map → p-CYFz3obB.system.js.map} +1 -1
- package/dist/pine-core/{p-BeJr-4oL.system.js.map → p-CZnOhE0g.system.js.map} +1 -1
- package/dist/pine-core/p-CdMCGjQj.system.js.map +1 -0
- package/dist/pine-core/{p-sgZDP7ET.system.js.map → p-CijIWK3K.system.js.map} +1 -1
- package/dist/pine-core/{p-DZt6ah_A.system.js.map → p-ClPf_JF1.system.js.map} +1 -1
- package/dist/pine-core/{p-Bsen6aos.system.js.map → p-Co9FFVKs.system.js.map} +1 -1
- package/dist/pine-core/{p-CfNEp0k0.system.js.map → p-Cvql9iy1.system.js.map} +1 -1
- package/dist/pine-core/p-CyOICl1j.system.js.map +1 -0
- package/dist/pine-core/{p-DmWm26A6.system.js.map → p-D0GkJmlY.system.js.map} +1 -1
- package/dist/pine-core/{p-Bmf4Ow_8.js → p-D4ys0pep.js} +1 -1
- package/dist/pine-core/p-D4ys0pep.js.map +1 -0
- package/dist/pine-core/p-DDtwbwIl.js +2 -0
- package/dist/pine-core/p-DDtwbwIl.js.map +1 -0
- package/dist/pine-core/p-DLZO3aKG.system.js.map +1 -0
- package/dist/pine-core/p-DO--6n89.system.js.map +1 -0
- package/dist/pine-core/p-DQJGHOVq.system.js.map +1 -0
- package/dist/pine-core/{p-D02u2D7r.system.js.map → p-DkNlmqjM.system.js.map} +1 -1
- package/dist/pine-core/p-Dl-o5ymF.system.js.map +1 -0
- package/dist/pine-core/p-DqfjMab8.system.js.map +1 -0
- package/dist/pine-core/{p-CsWO_n3t.system.js.map → p-DyrMiAYl.system.js.map} +1 -1
- package/dist/pine-core/{p-DzmLlvu3.system.js.map → p-FWsvMskO.system.js.map} +1 -1
- package/dist/pine-core/p-JAVnELnm.system.js +1 -1
- package/dist/pine-core/p-a11c3642.system.entry.js +2 -0
- package/dist/pine-core/{p-08cdf7f2.system.entry.js → p-a55bc143.system.entry.js} +2 -2
- package/dist/pine-core/{p-abb72971.system.entry.js → p-a85e565c.system.entry.js} +2 -2
- package/dist/pine-core/{p-56d0e6f4.entry.js → p-aa331370.entry.js} +2 -2
- package/dist/pine-core/{p-BUtyruql.system.js.map → p-abrage-l.system.js.map} +1 -1
- package/dist/pine-core/p-ac186cd4.system.entry.js +2 -0
- package/dist/pine-core/{p-edbaff73.system.entry.js → p-ae238530.system.entry.js} +2 -2
- package/dist/pine-core/{p-b7f2f9f3.system.entry.js → p-afad45f6.system.entry.js} +2 -2
- package/dist/pine-core/p-b2218fa1.entry.js +2 -0
- package/dist/pine-core/p-b2218fa1.entry.js.map +1 -0
- package/dist/pine-core/{p-36478643.system.entry.js → p-b2a5b6ae.system.entry.js} +2 -2
- package/dist/pine-core/p-b83f79a7.entry.js +2 -0
- package/dist/pine-core/p-b83f79a7.entry.js.map +1 -0
- package/dist/pine-core/{p-Be8OBmYb.system.js.map → p-bkQbPz-z.system.js.map} +1 -1
- package/dist/pine-core/{p-bf157830.entry.js → p-c38eb8e9.entry.js} +2 -2
- package/dist/pine-core/p-ca9da7ea.system.entry.js +2 -0
- package/dist/pine-core/p-ca9da7ea.system.entry.js.map +1 -0
- package/dist/pine-core/{p-5e83f6e3.system.entry.js → p-cb668b61.system.entry.js} +2 -2
- package/dist/pine-core/{p-39cb879d.entry.js → p-ccf46b90.entry.js} +2 -2
- package/dist/pine-core/p-cdd8175e.entry.js +2 -0
- package/dist/pine-core/p-cdd8175e.entry.js.map +1 -0
- package/dist/pine-core/{p-867ef2f1.entry.js → p-ceca2cb1.entry.js} +2 -2
- package/dist/pine-core/{p-9558fa60.entry.js → p-d045b245.entry.js} +2 -2
- package/dist/pine-core/{p-ea721a45.entry.js → p-d0eebd6d.entry.js} +2 -2
- package/dist/pine-core/{p-599a5903.system.entry.js → p-d1313dd6.system.entry.js} +2 -2
- package/dist/pine-core/p-d3e64f4e.system.entry.js +4 -0
- package/dist/pine-core/p-d3e64f4e.system.entry.js.map +1 -0
- package/dist/pine-core/{p-3e2fc38f.entry.js → p-d4844049.entry.js} +2 -2
- package/dist/pine-core/p-d8698ac5.entry.js +3 -0
- package/dist/pine-core/p-d8698ac5.entry.js.map +1 -0
- package/dist/pine-core/p-e0f21c22.entry.js +2 -0
- package/dist/pine-core/{p-9b2cd9fc.entry.js → p-e463b9d3.entry.js} +2 -2
- package/dist/pine-core/{p-5107c129.entry.js → p-e73b5859.entry.js} +2 -2
- package/dist/pine-core/{p-De6wHGVf.system.js.map → p-eUcBQ_fh.system.js.map} +1 -1
- package/dist/pine-core/p-ed447b3e.entry.js +2 -0
- package/dist/pine-core/p-ed447b3e.entry.js.map +1 -0
- package/dist/pine-core/p-f42e65fd.system.entry.js +2 -0
- package/dist/pine-core/{p-46d61c98.system.entry.js.map → p-f42e65fd.system.entry.js.map} +1 -1
- package/dist/pine-core/{p-9c0e22d4.entry.js → p-f74bd712.entry.js} +2 -2
- package/dist/pine-core/p-f84b6b5a.entry.js +2 -0
- package/dist/pine-core/p-f84b6b5a.entry.js.map +1 -0
- package/dist/pine-core/p-fa21e054.system.entry.js +2 -0
- package/dist/pine-core/{p-64c6c4a0.entry.js → p-fa51ae5d.entry.js} +2 -2
- package/dist/pine-core/p-fc830d8b.entry.js +2 -0
- package/dist/pine-core/{p-7c1b1fb8.entry.js.map → p-fc830d8b.entry.js.map} +1 -1
- package/dist/pine-core/{p-CEE11B7K.system.js.map → p-k9PMan7S.system.js.map} +1 -1
- package/dist/pine-core/p-kR80YJVM.system.js.map +1 -0
- package/dist/pine-core/p-uIsnJ30J.system.js.map +1 -0
- package/dist/pine-core/pds-alert.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-avatar.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-checkbox.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-chip.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-combobox.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-container.entry.esm.js.map +1 -0
- package/dist/pine-core/pds-dropdown-menu-item.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-input.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-multiselect.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-select.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-sortable-item.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-sortable.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-switch.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-textarea.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-toast.entry.esm.js.map +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/types/components/pds-alert/pds-alert.d.ts +1 -0
- package/dist/types/components/pds-avatar/pds-avatar.d.ts +2 -0
- package/dist/types/components/pds-chip/pds-chip.d.ts +1 -0
- package/dist/types/components/pds-combobox/pds-combobox.d.ts +9 -1
- package/dist/types/components/pds-container/pds-container.d.ts +22 -0
- package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.d.ts +3 -0
- package/dist/types/components/pds-multiselect/multiselect-interface.d.ts +8 -0
- package/dist/types/components/pds-multiselect/pds-multiselect.d.ts +31 -0
- package/dist/types/components/pds-sortable/pds-sortable.d.ts +8 -1
- package/dist/types/components/pds-sortable/sortable-interface.d.ts +1 -0
- package/dist/types/components/pds-toast/pds-toast.d.ts +3 -0
- package/dist/types/components.d.ts +97 -6
- package/dist/types/utils/form.d.ts +10 -0
- package/dist/vscode.html-data.json +10529 -0
- package/hydrate/index.js +596 -349
- package/hydrate/index.mjs +596 -349
- package/package.json +2 -2
- package/dist/cjs/floating-ui.dom-Ca6tS7ef.js.map +0 -1
- package/dist/cjs/form-DUqlzovE.js.map +0 -1
- package/dist/cjs/index-D8mNsvM8.js.map +0 -1
- package/dist/esm/floating-ui.dom-BO6p966C.js.map +0 -1
- package/dist/esm/form-CN-lL5QG.js.map +0 -1
- package/dist/esm/index-Bmf4Ow_8.js.map +0 -1
- package/dist/esm-es5/floating-ui.dom-BO6p966C.js +0 -2
- package/dist/esm-es5/floating-ui.dom-BO6p966C.js.map +0 -1
- package/dist/esm-es5/form-CN-lL5QG.js.map +0 -1
- package/dist/esm-es5/index-Bmf4Ow_8.js.map +0 -1
- package/dist/pine-core/p-0b3d6527.entry.js +0 -2
- package/dist/pine-core/p-0b3d6527.entry.js.map +0 -1
- package/dist/pine-core/p-221b4348.entry.js +0 -2
- package/dist/pine-core/p-221b4348.entry.js.map +0 -1
- package/dist/pine-core/p-25255ab8.system.entry.js +0 -4
- package/dist/pine-core/p-25255ab8.system.entry.js.map +0 -1
- package/dist/pine-core/p-2a7b94ba.system.entry.js +0 -2
- package/dist/pine-core/p-2a7b94ba.system.entry.js.map +0 -1
- package/dist/pine-core/p-31bfac45.entry.js +0 -2
- package/dist/pine-core/p-3239c67a.entry.js +0 -2
- package/dist/pine-core/p-396d4b63.entry.js +0 -8
- package/dist/pine-core/p-396d4b63.entry.js.map +0 -1
- package/dist/pine-core/p-3fd70f83.entry.js +0 -2
- package/dist/pine-core/p-3fd70f83.entry.js.map +0 -1
- package/dist/pine-core/p-44035cf4.entry.js +0 -3
- package/dist/pine-core/p-44035cf4.entry.js.map +0 -1
- package/dist/pine-core/p-46d61c98.system.entry.js +0 -2
- package/dist/pine-core/p-4c0e71ce.entry.js +0 -2
- package/dist/pine-core/p-4c0e71ce.entry.js.map +0 -1
- package/dist/pine-core/p-4c82bff5.entry.js +0 -2
- package/dist/pine-core/p-79f0b007.entry.js +0 -2
- package/dist/pine-core/p-79f0b007.entry.js.map +0 -1
- package/dist/pine-core/p-7c1b1fb8.entry.js +0 -2
- package/dist/pine-core/p-7da176b4.system.entry.js +0 -9
- package/dist/pine-core/p-7da176b4.system.entry.js.map +0 -1
- package/dist/pine-core/p-8a31ccd4.entry.js +0 -2
- package/dist/pine-core/p-8a31ccd4.entry.js.map +0 -1
- package/dist/pine-core/p-91781a0a.system.entry.js +0 -2
- package/dist/pine-core/p-91781a0a.system.entry.js.map +0 -1
- package/dist/pine-core/p-94a9ff2a.system.entry.js +0 -2
- package/dist/pine-core/p-BB9Md7vT.system.js.map +0 -1
- package/dist/pine-core/p-BGc1L0Ao.system.js.map +0 -1
- package/dist/pine-core/p-BO6p966C.js +0 -2
- package/dist/pine-core/p-BO6p966C.js.map +0 -1
- package/dist/pine-core/p-Bch44a-T.system.js.map +0 -1
- package/dist/pine-core/p-Bmf4Ow_8.js.map +0 -1
- package/dist/pine-core/p-BohZ8Mvm.system.js.map +0 -1
- package/dist/pine-core/p-CEll-OBZ.system.js.map +0 -1
- package/dist/pine-core/p-CFL53vBy.system.js.map +0 -1
- package/dist/pine-core/p-CFqOsbKv.system.js.map +0 -1
- package/dist/pine-core/p-CH2XYz0c.system.js.map +0 -1
- package/dist/pine-core/p-CN-lL5QG.js +0 -2
- package/dist/pine-core/p-CN-lL5QG.js.map +0 -1
- package/dist/pine-core/p-CTDKHxjD.system.js.map +0 -1
- package/dist/pine-core/p-D-iLwshJ.system.js.map +0 -1
- package/dist/pine-core/p-D2eS6fhD.system.js +0 -2
- package/dist/pine-core/p-D2eS6fhD.system.js.map +0 -1
- package/dist/pine-core/p-D497NWkn.system.js.map +0 -1
- package/dist/pine-core/p-DHNujrRT.system.js.map +0 -1
- package/dist/pine-core/p-DcrqbXJe.system.js.map +0 -1
- package/dist/pine-core/p-DdR8iWme.system.js.map +0 -1
- package/dist/pine-core/p-DqO0Rc5m.system.js.map +0 -1
- package/dist/pine-core/p-a553b40b.system.entry.js +0 -2
- package/dist/pine-core/p-a553b40b.system.entry.js.map +0 -1
- package/dist/pine-core/p-af5bf21d.entry.js +0 -2
- package/dist/pine-core/p-bPSIyJOo.system.js.map +0 -1
- package/dist/pine-core/p-ba195382.system.entry.js +0 -2
- package/dist/pine-core/p-bd2329cd.entry.js +0 -2
- package/dist/pine-core/p-bf712423.entry.js +0 -2
- package/dist/pine-core/p-d6139188.system.entry.js +0 -2
- package/dist/pine-core/p-ed5ca877.system.entry.js +0 -2
- package/dist/pine-core/p-ef7d0535.system.entry.js +0 -2
- package/dist/pine-core/p-ef7d0535.system.entry.js.map +0 -1
- package/dist/pine-core/p-f298baeb.system.entry.js +0 -2
- package/dist/pine-core/p-f298baeb.system.entry.js.map +0 -1
- package/dist/pine-core/p-f9c32940.system.entry.js +0 -2
- package/dist/pine-core/p-f9c32940.system.entry.js.map +0 -1
- /package/dist/pine-core/{p-5f63b999.entry.js.map → p-0e35b09a.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b2a7c2bf.entry.js.map → p-0f376270.entry.js.map} +0 -0
- /package/dist/pine-core/{p-31bfac45.entry.js.map → p-10e0be55.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9f09e116.system.entry.js.map → p-137517ea.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-203f6e9e.entry.js.map → p-14ca4f31.entry.js.map} +0 -0
- /package/dist/pine-core/{p-4c82bff5.entry.js.map → p-1fa303af.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b6ede995.system.entry.js.map → p-2483b797.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f179c88f.system.entry.js.map → p-2f0eb2b5.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-68f97bdf.entry.js.map → p-2f6f60d9.entry.js.map} +0 -0
- /package/dist/pine-core/{p-73be1c83.entry.js.map → p-3b342c35.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9ba4acdf.system.entry.js.map → p-3f0a6a75.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-51d2999d.entry.js.map → p-426e90cb.entry.js.map} +0 -0
- /package/dist/pine-core/{p-119ccf73.entry.js.map → p-426f5f57.entry.js.map} +0 -0
- /package/dist/pine-core/{p-7737e4e8.system.entry.js.map → p-4d2e9e8d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3239c67a.entry.js.map → p-66644048.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b8f21554.system.entry.js.map → p-6b456e02.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d0504aa8.system.entry.js.map → p-6be19a23.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d8d796ad.system.entry.js.map → p-6dcd7876.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8a53ae6d.system.entry.js.map → p-712e0d82.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3fc8dbc9.system.entry.js.map → p-75a53dce.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-2f663747.system.entry.js.map → p-7dfb5b1f.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e9eb3fc3.system.entry.js.map → p-811e510d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-7fc20a77.system.entry.js.map → p-84b696ce.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-bd2329cd.entry.js.map → p-8c000d7c.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ccdee55a.entry.js.map → p-8c0fc8ff.entry.js.map} +0 -0
- /package/dist/pine-core/{p-18a3b6ba.system.entry.js.map → p-92df334f.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-1b0dc99e.system.entry.js.map → p-93eeca70.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ed5ca877.system.entry.js.map → p-98e202b8.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-445c5ec5.system.entry.js.map → p-9947c6cd.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-1d82417a.entry.js.map → p-9d2e89e5.entry.js.map} +0 -0
- /package/dist/pine-core/{p-cbf49268.entry.js.map → p-9ea92b46.entry.js.map} +0 -0
- /package/dist/pine-core/{p-94a9ff2a.system.entry.js.map → p-a11c3642.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-08cdf7f2.system.entry.js.map → p-a55bc143.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-abb72971.system.entry.js.map → p-a85e565c.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-56d0e6f4.entry.js.map → p-aa331370.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ba195382.system.entry.js.map → p-ac186cd4.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-edbaff73.system.entry.js.map → p-ae238530.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b7f2f9f3.system.entry.js.map → p-afad45f6.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-36478643.system.entry.js.map → p-b2a5b6ae.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-bf157830.entry.js.map → p-c38eb8e9.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5e83f6e3.system.entry.js.map → p-cb668b61.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-39cb879d.entry.js.map → p-ccf46b90.entry.js.map} +0 -0
- /package/dist/pine-core/{p-867ef2f1.entry.js.map → p-ceca2cb1.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9558fa60.entry.js.map → p-d045b245.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ea721a45.entry.js.map → p-d0eebd6d.entry.js.map} +0 -0
- /package/dist/pine-core/{p-599a5903.system.entry.js.map → p-d1313dd6.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3e2fc38f.entry.js.map → p-d4844049.entry.js.map} +0 -0
- /package/dist/pine-core/{p-af5bf21d.entry.js.map → p-e0f21c22.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9b2cd9fc.entry.js.map → p-e463b9d3.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5107c129.entry.js.map → p-e73b5859.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9c0e22d4.entry.js.map → p-f74bd712.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d6139188.system.entry.js.map → p-fa21e054.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-64c6c4a0.entry.js.map → p-fa51ae5d.entry.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
|
@@ -3497,7 +3497,7 @@ class MockPdsModal {
|
|
|
3497
3497
|
'pds-modal__backdrop': true,
|
|
3498
3498
|
'open': this.open,
|
|
3499
3499
|
};
|
|
3500
|
-
return (hAsync("div", { key: '
|
|
3500
|
+
return (hAsync("div", { key: '6e7f71b339764894e1f17d253fc3c8e0243e4f90', class: backdropClasses }, hAsync("div", { key: '25b2f82c1af743156d152880631d4294dfec68b5', class: modalClasses, role: "dialog", "aria-modal": "true", "aria-labelledby": this.componentId ? `${this.componentId}-heading` : null, part: "modal" }, hAsync("div", { key: '6bc97e805daee5e5dd547fa0b919a05cf1b6a6a1', class: "pds-modal__header" }, hAsync("slot", { key: 'd9e7c248d983e3c055ed7e0aea5a4d5a15dfea12', name: "header" })), hAsync("div", { key: '5608ee069b59cb34dc812bde22f83c6bce7e6904', class: "pds-modal-content" }, hAsync("slot", { key: '6e3e790330598e1bde733350e5e216d269426e51' })), hAsync("div", { key: '381f3c4e1c9c83b0687e1f1484b64334e388d669', class: "pds-modal__footer" }, hAsync("slot", { key: '6e3a3cb64623de59a409072ab9c1bf65af8c2f6c', name: "footer" })))));
|
|
3501
3501
|
}
|
|
3502
3502
|
get el() { return getElement(this); }
|
|
3503
3503
|
static get style() { return pdsModalCss$1; }
|
|
@@ -3519,7 +3519,7 @@ class MockPdsModal {
|
|
|
3519
3519
|
}; }
|
|
3520
3520
|
}
|
|
3521
3521
|
|
|
3522
|
-
/* pds-icons v9.
|
|
3522
|
+
/* pds-icons v9.21.0, ES Modules */
|
|
3523
3523
|
|
|
3524
3524
|
const addCircle = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12m11-5a1 1 0 0 1 1 1v3h3a1 1 0 1 1 0 2h-3v3a1 1 0 1 1-2 0v-3H8a1 1 0 1 1 0-2h3V8a1 1 0 0 1 1-1'/></svg>";
|
|
3525
3525
|
const caretDown = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M5.293 8.293a1 1 0 0 1 1.414 0L12 13.586l5.293-5.293a1 1 0 1 1 1.414 1.414l-6 6a1 1 0 0 1-1.414 0l-6-6a1 1 0 0 1 0-1.414'/></svg>";
|
|
@@ -3595,6 +3595,7 @@ const pdsAlertCss = ":host{--pds-context-link-color:var(--pine-alert-color-link)
|
|
|
3595
3595
|
|
|
3596
3596
|
/**
|
|
3597
3597
|
* @slot actions - Slot for alert actions.
|
|
3598
|
+
* @part dismiss
|
|
3598
3599
|
*/
|
|
3599
3600
|
class PdsAlert {
|
|
3600
3601
|
constructor(hostRef) {
|
|
@@ -3644,7 +3645,7 @@ class PdsAlert {
|
|
|
3644
3645
|
};
|
|
3645
3646
|
// Get the icon name based on the current variant
|
|
3646
3647
|
const iconName = iconMap[this.variant] || iconMap.default;
|
|
3647
|
-
return (hAsync(Host, { key: '
|
|
3648
|
+
return (hAsync(Host, { key: 'b3280d4851c764c63649aa5078f950920290b155', class: "pds-alert", id: this.componentId, variant: this.variant }, hAsync("pds-box", { key: '60b6f666bbf72ed99260a3a97ac27919f4ae2289', class: `pds-alert__container pds-alert__container--${this.variant}`, "background-color": "var(--pds-alert-background)", "border-color": "var(--pds-alert-border-color)", "border-radius": "md", border: true, display: "block" }, hAsync("pds-box", { key: '17a1e9e1dcd92409b762d3c8fec4ea6bb34dfa3a', gap: "sm", display: "flex" }, hAsync("pds-icon", { key: '9866970bfbdee3a09db537d7bd5536bac7b0cba4', class: `pds-alert__icon ${this.small ? 'pds-alert__icon--small' : ''}`, color: "var(--pds-alert-color-icon)", icon: iconName, size: "var(--pds-alert-icon-size)" }), hAsync("pds-box", { key: '751647dc2a27e7c5fa31801ded4d0466e338ce12', class: "pds-alert__content-wrapper", direction: "column", gap: "xs", flex: "grow" }, this.heading && !this.small && (hAsync("pds-text", { key: 'a603335ef15246a638e1a3b2556bf10ac7073d8f', class: "pds-alert__heading", color: "var(--pds-alert-color-text)", size: "h5", tag: "h3", weight: "medium" }, this.heading)), this.renderContent()), this.dismissible && (hAsync("button", { key: '81fe893cb8dab3f93f5f5d9c515a8806e5b7d79b', class: "pds-alert__dismiss", type: "button", part: "dismiss", "aria-label": "Dismiss alert", onClick: this.handleCloseClick }, hAsync("pds-icon", { key: 'de431f51b5597399b702cc6503c6ee7b029b8fe3', icon: "remove", size: "var(--pds-alert-icon-size)", "aria-hidden": "true", color: "var(--pds-alert-color-dismiss)" })))))));
|
|
3648
3649
|
}
|
|
3649
3650
|
get el() { return getElement(this); }
|
|
3650
3651
|
static get style() { return pdsAlertTokensCss + pdsAlertCss; }
|
|
@@ -3668,6 +3669,8 @@ class PdsAlert {
|
|
|
3668
3669
|
const pdsAvatarCss = ":host{display:inline-block}div{--color-background-container:var(--pine-color-background-container-hover);-ms-flex-align:center;align-items:center;background-color:var(--color-background-container);border-radius:var(--border-radius-admin-round, var(--pine-border-radius-full));display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;position:relative}:host(.pds-avatar--admin) div{--border-radius-admin-round:var(--pine-dimension-150);border-radius:var(--border-radius-admin-round)}:host(.pds-avatar--has-image) div{background:transparent}@supports selector(:has){div:has(img){background-color:transparent}}.pds-avatar__button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:var(--pine-dimension-none);border-radius:var(--pine-border-radius-full);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-none)}.pds-avatar__button:focus-visible{outline:var(--pine-outline-focus)}.pds-avatar__badge{background-color:transparent;border:var(--pine-dimension-none);border-color:transparent;border-radius:var(--pine-border-radius-round);inset-block-end:var(--pine-dimension-none);inset-inline-end:var(--pine-dimension-none);position:absolute}img{border-radius:var(--border-radius-admin-round, var(--pine-border-radius-full));height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.pds-avatar__initials{color:var(--pine-color-brand);fill:var(--pine-color-brand);font-size:var(--pine-font-size-085);font-weight:var(--pine-font-weight-semi-bold);height:100%;text-align:center;width:100%}.pds-avatar__initials text{text-anchor:middle}";
|
|
3669
3670
|
|
|
3670
3671
|
/**
|
|
3672
|
+
* @part asset-wrapper
|
|
3673
|
+
* @part button
|
|
3671
3674
|
* @part image - The main image element that represents the avatar component.
|
|
3672
3675
|
*/
|
|
3673
3676
|
class PdsAvatar {
|
|
@@ -3762,7 +3765,7 @@ class PdsAvatar {
|
|
|
3762
3765
|
}
|
|
3763
3766
|
}
|
|
3764
3767
|
render() {
|
|
3765
|
-
return (hAsync(Host, { key: '
|
|
3768
|
+
return (hAsync(Host, { key: '7bdd177a6b7064ed12cabeb21d96b0a0cc6071ae', id: this.componentId, class: Object.assign({}, this.classNames()) }, this.renderAvatar()));
|
|
3766
3769
|
}
|
|
3767
3770
|
static get style() { return pdsAvatarCss; }
|
|
3768
3771
|
static get cmpMeta() { return {
|
|
@@ -4393,6 +4396,19 @@ function exposeTypeProperty(element, type) {
|
|
|
4393
4396
|
configurable: false
|
|
4394
4397
|
});
|
|
4395
4398
|
}
|
|
4399
|
+
/**
|
|
4400
|
+
* Determines if code is running in Stencil's spec test environment.
|
|
4401
|
+
* Stencil's mock-doc logs console.error on any ElementInternals
|
|
4402
|
+
* property access during spec tests. Use this guard to skip
|
|
4403
|
+
* ElementInternals calls in the mock environment.
|
|
4404
|
+
*
|
|
4405
|
+
* Uses __STENCIL_SPEC_TESTS__ (the same env var Stencil's mock-doc checks)
|
|
4406
|
+
* to avoid false positives in downstream consumer test suites.
|
|
4407
|
+
*/
|
|
4408
|
+
const isSpecTest = () => {
|
|
4409
|
+
var _a;
|
|
4410
|
+
return typeof process !== 'undefined' && ((_a = process.env) === null || _a === void 0 ? void 0 : _a.__STENCIL_SPEC_TESTS__) === 'true';
|
|
4411
|
+
};
|
|
4396
4412
|
|
|
4397
4413
|
/**
|
|
4398
4414
|
* Inherit attributes from the host element
|
|
@@ -4540,10 +4556,8 @@ class PdsCheckbox {
|
|
|
4540
4556
|
this.updateFormValue();
|
|
4541
4557
|
}
|
|
4542
4558
|
updateFormValue() {
|
|
4543
|
-
|
|
4544
|
-
if (typeof jest !== 'undefined' || typeof process !== 'undefined' && ((_a = process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) === 'test') {
|
|
4559
|
+
if (isSpecTest())
|
|
4545
4560
|
return;
|
|
4546
|
-
}
|
|
4547
4561
|
if (this.internals && this.internals.setFormValue) {
|
|
4548
4562
|
// For checkboxes, only send the value when checked, otherwise send null
|
|
4549
4563
|
const formValue = this.checked ? (this.value || 'on') : null;
|
|
@@ -4568,9 +4582,9 @@ class PdsCheckbox {
|
|
|
4568
4582
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
4569
4583
|
}
|
|
4570
4584
|
render() {
|
|
4571
|
-
return (hAsync(Host, { key: '
|
|
4572
|
-
hAsync("div", { key: '
|
|
4573
|
-
hAsync("div", { key: '
|
|
4585
|
+
return (hAsync(Host, { key: 'd4a447aba6ffa638b0bf3ed7a5cfd4580168da79', class: this.classNames() }, hAsync("label", { key: '75fcd32809f736f8e4f6af2021f86d2c5b7bc110', htmlFor: this.componentId }, hAsync("input", Object.assign({ key: '5238103a16bc1c6baf92b5802bca17db748a14b2', type: "checkbox", "aria-describedby": assignDescription(this.componentId, this.invalid, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, id: this.componentId, indeterminate: this.indeterminate, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleCheckboxChange, onInput: this.handleInput }, this.inheritedAttributes)), hAsync("span", { key: '0a652dc44e4c35d3a5484065f140a231a0d46424', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), this.helperMessage &&
|
|
4586
|
+
hAsync("div", { key: '76f40eba1d92ffcdb9946c8cc17714bda421a8a7', class: 'pds-checkbox__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
4587
|
+
hAsync("div", { key: 'ad05bf066a91bc934344c3696ec82ec6b9813c07', class: `pds-checkbox__message pds-checkbox__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: '4d3f9dddea4be870323db41a6cc5d69a9be44d7d', icon: danger, size: "small" }), this.errorMessage)));
|
|
4574
4588
|
}
|
|
4575
4589
|
static get formAssociated() { return true; }
|
|
4576
4590
|
get el() { return getElement(this); }
|
|
@@ -4607,6 +4621,7 @@ const pdsChipCss = ":host{--sizing-close:var(--pine-dimension-125);-ms-flex-alig
|
|
|
4607
4621
|
|
|
4608
4622
|
/**
|
|
4609
4623
|
* @slot (default) - The chip's label text.
|
|
4624
|
+
* @part button
|
|
4610
4625
|
*/
|
|
4611
4626
|
class PdsChip {
|
|
4612
4627
|
constructor(hostRef) {
|
|
@@ -4725,7 +4740,7 @@ class PdsChip {
|
|
|
4725
4740
|
return (hAsync(CloseElement, Object.assign({}, closeAttributes(), { onClick: this.handleCloseClick }), hAsync("pds-icon", { icon: remove, size: this.iconSize })));
|
|
4726
4741
|
}
|
|
4727
4742
|
render() {
|
|
4728
|
-
return (hAsync(Host, { key: '
|
|
4743
|
+
return (hAsync(Host, { key: '1d75f8ea7583f53191467b568352664ea0313c79', class: this.classNames(), id: this.componentId }, this.setChipContent(), this.effectiveVariant === 'tag' && this.renderCloseButton()));
|
|
4729
4744
|
}
|
|
4730
4745
|
static get style() { return pdsChipTokensCss + pdsChipCss; }
|
|
4731
4746
|
static get cmpMeta() { return {
|
|
@@ -4768,10 +4783,6 @@ const oppositeSideMap = {
|
|
|
4768
4783
|
bottom: 'top',
|
|
4769
4784
|
top: 'bottom'
|
|
4770
4785
|
};
|
|
4771
|
-
const oppositeAlignmentMap = {
|
|
4772
|
-
start: 'end',
|
|
4773
|
-
end: 'start'
|
|
4774
|
-
};
|
|
4775
4786
|
function clamp(start, value, end) {
|
|
4776
4787
|
return max(start, min(value, end));
|
|
4777
4788
|
}
|
|
@@ -4790,9 +4801,9 @@ function getOppositeAxis(axis) {
|
|
|
4790
4801
|
function getAxisLength(axis) {
|
|
4791
4802
|
return axis === 'y' ? 'height' : 'width';
|
|
4792
4803
|
}
|
|
4793
|
-
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
4794
4804
|
function getSideAxis(placement) {
|
|
4795
|
-
|
|
4805
|
+
const firstChar = placement[0];
|
|
4806
|
+
return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
|
|
4796
4807
|
}
|
|
4797
4808
|
function getAlignmentAxis(placement) {
|
|
4798
4809
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -4815,7 +4826,7 @@ function getExpandedPlacements(placement) {
|
|
|
4815
4826
|
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
4816
4827
|
}
|
|
4817
4828
|
function getOppositeAlignmentPlacement(placement) {
|
|
4818
|
-
return placement.replace(
|
|
4829
|
+
return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
|
|
4819
4830
|
}
|
|
4820
4831
|
const lrPlacement = ['left', 'right'];
|
|
4821
4832
|
const rlPlacement = ['right', 'left'];
|
|
@@ -4846,7 +4857,8 @@ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
|
4846
4857
|
return list;
|
|
4847
4858
|
}
|
|
4848
4859
|
function getOppositePlacement(placement) {
|
|
4849
|
-
|
|
4860
|
+
const side = getSide(placement);
|
|
4861
|
+
return oppositeSideMap[side] + placement.slice(side.length);
|
|
4850
4862
|
}
|
|
4851
4863
|
function expandPaddingObject(padding) {
|
|
4852
4864
|
return {
|
|
@@ -4940,6 +4952,74 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
4940
4952
|
return coords;
|
|
4941
4953
|
}
|
|
4942
4954
|
|
|
4955
|
+
/**
|
|
4956
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
|
4957
|
+
* element is overflowing a given clipping boundary on each side.
|
|
4958
|
+
* - positive = overflowing the boundary by that number of pixels
|
|
4959
|
+
* - negative = how many pixels left before it will overflow
|
|
4960
|
+
* - 0 = lies flush with the boundary
|
|
4961
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
|
4962
|
+
*/
|
|
4963
|
+
async function detectOverflow(state, options) {
|
|
4964
|
+
var _await$platform$isEle;
|
|
4965
|
+
if (options === void 0) {
|
|
4966
|
+
options = {};
|
|
4967
|
+
}
|
|
4968
|
+
const {
|
|
4969
|
+
x,
|
|
4970
|
+
y,
|
|
4971
|
+
platform,
|
|
4972
|
+
rects,
|
|
4973
|
+
elements,
|
|
4974
|
+
strategy
|
|
4975
|
+
} = state;
|
|
4976
|
+
const {
|
|
4977
|
+
boundary = 'clippingAncestors',
|
|
4978
|
+
rootBoundary = 'viewport',
|
|
4979
|
+
elementContext = 'floating',
|
|
4980
|
+
altBoundary = false,
|
|
4981
|
+
padding = 0
|
|
4982
|
+
} = evaluate(options, state);
|
|
4983
|
+
const paddingObject = getPaddingObject(padding);
|
|
4984
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
4985
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
4986
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
4987
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
|
4988
|
+
boundary,
|
|
4989
|
+
rootBoundary,
|
|
4990
|
+
strategy
|
|
4991
|
+
}));
|
|
4992
|
+
const rect = elementContext === 'floating' ? {
|
|
4993
|
+
x,
|
|
4994
|
+
y,
|
|
4995
|
+
width: rects.floating.width,
|
|
4996
|
+
height: rects.floating.height
|
|
4997
|
+
} : rects.reference;
|
|
4998
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
4999
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
5000
|
+
x: 1,
|
|
5001
|
+
y: 1
|
|
5002
|
+
} : {
|
|
5003
|
+
x: 1,
|
|
5004
|
+
y: 1
|
|
5005
|
+
};
|
|
5006
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
5007
|
+
elements,
|
|
5008
|
+
rect,
|
|
5009
|
+
offsetParent,
|
|
5010
|
+
strategy
|
|
5011
|
+
}) : rect);
|
|
5012
|
+
return {
|
|
5013
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
5014
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
5015
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
5016
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
5017
|
+
};
|
|
5018
|
+
}
|
|
5019
|
+
|
|
5020
|
+
// Maximum number of resets that can occur before bailing to avoid infinite reset loops.
|
|
5021
|
+
const MAX_RESET_COUNT = 50;
|
|
5022
|
+
|
|
4943
5023
|
/**
|
|
4944
5024
|
* Computes the `x` and `y` coordinates that will place the floating element
|
|
4945
5025
|
* next to a given reference element.
|
|
@@ -4954,7 +5034,10 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
4954
5034
|
middleware = [],
|
|
4955
5035
|
platform
|
|
4956
5036
|
} = config;
|
|
4957
|
-
const
|
|
5037
|
+
const platformWithDetectOverflow = platform.detectOverflow ? platform : {
|
|
5038
|
+
...platform,
|
|
5039
|
+
detectOverflow
|
|
5040
|
+
};
|
|
4958
5041
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
4959
5042
|
let rects = await platform.getElementRects({
|
|
4960
5043
|
reference,
|
|
@@ -4966,13 +5049,17 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
4966
5049
|
y
|
|
4967
5050
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
4968
5051
|
let statefulPlacement = placement;
|
|
4969
|
-
let middlewareData = {};
|
|
4970
5052
|
let resetCount = 0;
|
|
4971
|
-
|
|
5053
|
+
const middlewareData = {};
|
|
5054
|
+
for (let i = 0; i < middleware.length; i++) {
|
|
5055
|
+
const currentMiddleware = middleware[i];
|
|
5056
|
+
if (!currentMiddleware) {
|
|
5057
|
+
continue;
|
|
5058
|
+
}
|
|
4972
5059
|
const {
|
|
4973
5060
|
name,
|
|
4974
5061
|
fn
|
|
4975
|
-
} =
|
|
5062
|
+
} = currentMiddleware;
|
|
4976
5063
|
const {
|
|
4977
5064
|
x: nextX,
|
|
4978
5065
|
y: nextY,
|
|
@@ -4986,7 +5073,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
4986
5073
|
strategy,
|
|
4987
5074
|
middlewareData,
|
|
4988
5075
|
rects,
|
|
4989
|
-
platform,
|
|
5076
|
+
platform: platformWithDetectOverflow,
|
|
4990
5077
|
elements: {
|
|
4991
5078
|
reference,
|
|
4992
5079
|
floating
|
|
@@ -4994,14 +5081,11 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
4994
5081
|
});
|
|
4995
5082
|
x = nextX != null ? nextX : x;
|
|
4996
5083
|
y = nextY != null ? nextY : y;
|
|
4997
|
-
middlewareData = {
|
|
4998
|
-
...middlewareData,
|
|
4999
|
-
|
|
5000
|
-
...middlewareData[name],
|
|
5001
|
-
...data
|
|
5002
|
-
}
|
|
5084
|
+
middlewareData[name] = {
|
|
5085
|
+
...middlewareData[name],
|
|
5086
|
+
...data
|
|
5003
5087
|
};
|
|
5004
|
-
if (reset && resetCount
|
|
5088
|
+
if (reset && resetCount < MAX_RESET_COUNT) {
|
|
5005
5089
|
resetCount++;
|
|
5006
5090
|
if (typeof reset === 'object') {
|
|
5007
5091
|
if (reset.placement) {
|
|
@@ -5031,71 +5115,6 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
5031
5115
|
};
|
|
5032
5116
|
};
|
|
5033
5117
|
|
|
5034
|
-
/**
|
|
5035
|
-
* Resolves with an object of overflow side offsets that determine how much the
|
|
5036
|
-
* element is overflowing a given clipping boundary on each side.
|
|
5037
|
-
* - positive = overflowing the boundary by that number of pixels
|
|
5038
|
-
* - negative = how many pixels left before it will overflow
|
|
5039
|
-
* - 0 = lies flush with the boundary
|
|
5040
|
-
* @see https://floating-ui.com/docs/detectOverflow
|
|
5041
|
-
*/
|
|
5042
|
-
async function detectOverflow(state, options) {
|
|
5043
|
-
var _await$platform$isEle;
|
|
5044
|
-
if (options === void 0) {
|
|
5045
|
-
options = {};
|
|
5046
|
-
}
|
|
5047
|
-
const {
|
|
5048
|
-
x,
|
|
5049
|
-
y,
|
|
5050
|
-
platform,
|
|
5051
|
-
rects,
|
|
5052
|
-
elements,
|
|
5053
|
-
strategy
|
|
5054
|
-
} = state;
|
|
5055
|
-
const {
|
|
5056
|
-
boundary = 'clippingAncestors',
|
|
5057
|
-
rootBoundary = 'viewport',
|
|
5058
|
-
elementContext = 'floating',
|
|
5059
|
-
altBoundary = false,
|
|
5060
|
-
padding = 0
|
|
5061
|
-
} = evaluate(options, state);
|
|
5062
|
-
const paddingObject = getPaddingObject(padding);
|
|
5063
|
-
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
5064
|
-
const element = elements[altBoundary ? altContext : elementContext];
|
|
5065
|
-
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
5066
|
-
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
|
5067
|
-
boundary,
|
|
5068
|
-
rootBoundary,
|
|
5069
|
-
strategy
|
|
5070
|
-
}));
|
|
5071
|
-
const rect = elementContext === 'floating' ? {
|
|
5072
|
-
x,
|
|
5073
|
-
y,
|
|
5074
|
-
width: rects.floating.width,
|
|
5075
|
-
height: rects.floating.height
|
|
5076
|
-
} : rects.reference;
|
|
5077
|
-
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
5078
|
-
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
5079
|
-
x: 1,
|
|
5080
|
-
y: 1
|
|
5081
|
-
} : {
|
|
5082
|
-
x: 1,
|
|
5083
|
-
y: 1
|
|
5084
|
-
};
|
|
5085
|
-
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
5086
|
-
elements,
|
|
5087
|
-
rect,
|
|
5088
|
-
offsetParent,
|
|
5089
|
-
strategy
|
|
5090
|
-
}) : rect);
|
|
5091
|
-
return {
|
|
5092
|
-
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
5093
|
-
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
5094
|
-
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
5095
|
-
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
5096
|
-
};
|
|
5097
|
-
}
|
|
5098
|
-
|
|
5099
5118
|
/**
|
|
5100
5119
|
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
5101
5120
|
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
@@ -5146,7 +5165,7 @@ const flip$1 = function (options) {
|
|
|
5146
5165
|
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
5147
5166
|
}
|
|
5148
5167
|
const placements = [initialPlacement, ...fallbackPlacements];
|
|
5149
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
5168
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
5150
5169
|
const overflows = [];
|
|
5151
5170
|
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
5152
5171
|
if (checkMainAxis) {
|
|
@@ -5330,7 +5349,8 @@ const shift$1 = function (options) {
|
|
|
5330
5349
|
const {
|
|
5331
5350
|
x,
|
|
5332
5351
|
y,
|
|
5333
|
-
placement
|
|
5352
|
+
placement,
|
|
5353
|
+
platform
|
|
5334
5354
|
} = state;
|
|
5335
5355
|
const {
|
|
5336
5356
|
mainAxis: checkMainAxis = true,
|
|
@@ -5353,7 +5373,7 @@ const shift$1 = function (options) {
|
|
|
5353
5373
|
x,
|
|
5354
5374
|
y
|
|
5355
5375
|
};
|
|
5356
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
5376
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
5357
5377
|
const crossAxis = getSideAxis(getSide(placement));
|
|
5358
5378
|
const mainAxis = getOppositeAxis(crossAxis);
|
|
5359
5379
|
let mainAxisCoord = coords[mainAxis];
|
|
@@ -5417,7 +5437,7 @@ const size$1 = function (options) {
|
|
|
5417
5437
|
apply = () => {},
|
|
5418
5438
|
...detectOverflowOptions
|
|
5419
5439
|
} = evaluate(options, state);
|
|
5420
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
5440
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
5421
5441
|
const side = getSide(placement);
|
|
5422
5442
|
const alignment = getAlignment(placement);
|
|
5423
5443
|
const isYAxis = getSideAxis(placement) === 'y';
|
|
@@ -5520,7 +5540,6 @@ function isShadowRoot(value) {
|
|
|
5520
5540
|
}
|
|
5521
5541
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
5522
5542
|
}
|
|
5523
|
-
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
5524
5543
|
function isOverflowElement(element) {
|
|
5525
5544
|
const {
|
|
5526
5545
|
overflow,
|
|
@@ -5528,32 +5547,35 @@ function isOverflowElement(element) {
|
|
|
5528
5547
|
overflowY,
|
|
5529
5548
|
display
|
|
5530
5549
|
} = getComputedStyle$1(element);
|
|
5531
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) &&
|
|
5550
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
|
|
5532
5551
|
}
|
|
5533
|
-
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
5534
5552
|
function isTableElement(element) {
|
|
5535
|
-
return
|
|
5553
|
+
return /^(table|td|th)$/.test(getNodeName(element));
|
|
5536
5554
|
}
|
|
5537
|
-
const topLayerSelectors = [':popover-open', ':modal'];
|
|
5538
5555
|
function isTopLayer(element) {
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
return
|
|
5542
|
-
} catch (_e) {
|
|
5543
|
-
return false;
|
|
5556
|
+
try {
|
|
5557
|
+
if (element.matches(':popover-open')) {
|
|
5558
|
+
return true;
|
|
5544
5559
|
}
|
|
5545
|
-
})
|
|
5560
|
+
} catch (_e) {
|
|
5561
|
+
// no-op
|
|
5562
|
+
}
|
|
5563
|
+
try {
|
|
5564
|
+
return element.matches(':modal');
|
|
5565
|
+
} catch (_e) {
|
|
5566
|
+
return false;
|
|
5567
|
+
}
|
|
5546
5568
|
}
|
|
5547
|
-
const
|
|
5548
|
-
const
|
|
5549
|
-
const
|
|
5569
|
+
const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
|
|
5570
|
+
const containRe = /paint|layout|strict|content/;
|
|
5571
|
+
const isNotNone = value => !!value && value !== 'none';
|
|
5572
|
+
let isWebKitValue;
|
|
5550
5573
|
function isContainingBlock(elementOrCss) {
|
|
5551
|
-
const webkit = isWebKit();
|
|
5552
5574
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
5553
5575
|
|
|
5554
5576
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
5555
5577
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
5556
|
-
return
|
|
5578
|
+
return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');
|
|
5557
5579
|
}
|
|
5558
5580
|
function getContainingBlock(element) {
|
|
5559
5581
|
let currentNode = getParentNode(element);
|
|
@@ -5568,12 +5590,13 @@ function getContainingBlock(element) {
|
|
|
5568
5590
|
return null;
|
|
5569
5591
|
}
|
|
5570
5592
|
function isWebKit() {
|
|
5571
|
-
if (
|
|
5572
|
-
|
|
5593
|
+
if (isWebKitValue == null) {
|
|
5594
|
+
isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
|
|
5595
|
+
}
|
|
5596
|
+
return isWebKitValue;
|
|
5573
5597
|
}
|
|
5574
|
-
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
5575
5598
|
function isLastTraversableNode(node) {
|
|
5576
|
-
return
|
|
5599
|
+
return /^(html|body|#document)$/.test(getNodeName(node));
|
|
5577
5600
|
}
|
|
5578
5601
|
function getComputedStyle$1(element) {
|
|
5579
5602
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -5629,8 +5652,9 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
5629
5652
|
if (isBody) {
|
|
5630
5653
|
const frameElement = getFrameElement(win);
|
|
5631
5654
|
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
5655
|
+
} else {
|
|
5656
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
5632
5657
|
}
|
|
5633
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
5634
5658
|
}
|
|
5635
5659
|
function getFrameElement(win) {
|
|
5636
5660
|
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
@@ -5807,7 +5831,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
5807
5831
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
5808
5832
|
scroll = getNodeScroll(offsetParent);
|
|
5809
5833
|
}
|
|
5810
|
-
if (
|
|
5834
|
+
if (isOffsetParentAnElement) {
|
|
5811
5835
|
const offsetRect = getBoundingClientRect(offsetParent);
|
|
5812
5836
|
scale = getScale(offsetParent);
|
|
5813
5837
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
@@ -5895,7 +5919,6 @@ function getViewportRect(element, strategy) {
|
|
|
5895
5919
|
};
|
|
5896
5920
|
}
|
|
5897
5921
|
|
|
5898
|
-
const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
|
|
5899
5922
|
// Returns the inner client rect, subtracting scrollbars if present.
|
|
5900
5923
|
function getInnerBoundingClientRect(element, strategy) {
|
|
5901
5924
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
@@ -5960,7 +5983,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
5960
5983
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
5961
5984
|
currentContainingBlockComputedStyle = null;
|
|
5962
5985
|
}
|
|
5963
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle &&
|
|
5986
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === 'absolute' || currentContainingBlockComputedStyle.position === 'fixed') || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
5964
5987
|
if (shouldDropCurrentNode) {
|
|
5965
5988
|
// Drop non-containing blocks.
|
|
5966
5989
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -5985,20 +6008,23 @@ function getClippingRect(_ref) {
|
|
|
5985
6008
|
} = _ref;
|
|
5986
6009
|
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
5987
6010
|
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
5988
|
-
const
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
6011
|
+
const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
|
|
6012
|
+
let top = firstRect.top;
|
|
6013
|
+
let right = firstRect.right;
|
|
6014
|
+
let bottom = firstRect.bottom;
|
|
6015
|
+
let left = firstRect.left;
|
|
6016
|
+
for (let i = 1; i < clippingAncestors.length; i++) {
|
|
6017
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
|
|
6018
|
+
top = max(rect.top, top);
|
|
6019
|
+
right = min(rect.right, right);
|
|
6020
|
+
bottom = min(rect.bottom, bottom);
|
|
6021
|
+
left = max(rect.left, left);
|
|
6022
|
+
}
|
|
5997
6023
|
return {
|
|
5998
|
-
width:
|
|
5999
|
-
height:
|
|
6000
|
-
x:
|
|
6001
|
-
y:
|
|
6024
|
+
width: right - left,
|
|
6025
|
+
height: bottom - top,
|
|
6026
|
+
x: left,
|
|
6027
|
+
y: top
|
|
6002
6028
|
};
|
|
6003
6029
|
}
|
|
6004
6030
|
|
|
@@ -6249,7 +6275,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
6249
6275
|
animationFrame = false
|
|
6250
6276
|
} = options;
|
|
6251
6277
|
const referenceEl = unwrapElement(reference);
|
|
6252
|
-
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
|
6278
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];
|
|
6253
6279
|
ancestors.forEach(ancestor => {
|
|
6254
6280
|
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
6255
6281
|
passive: true
|
|
@@ -6262,7 +6288,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
6262
6288
|
if (elementResize) {
|
|
6263
6289
|
resizeObserver = new ResizeObserver(_ref => {
|
|
6264
6290
|
let [firstEntry] = _ref;
|
|
6265
|
-
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
6291
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
|
|
6266
6292
|
// Prevent update loops when using the `size` middleware.
|
|
6267
6293
|
// https://github.com/floating-ui/floating-ui/issues/1740
|
|
6268
6294
|
resizeObserver.unobserve(floating);
|
|
@@ -6277,7 +6303,9 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
6277
6303
|
if (referenceEl && !animationFrame) {
|
|
6278
6304
|
resizeObserver.observe(referenceEl);
|
|
6279
6305
|
}
|
|
6280
|
-
|
|
6306
|
+
if (floating) {
|
|
6307
|
+
resizeObserver.observe(floating);
|
|
6308
|
+
}
|
|
6281
6309
|
}
|
|
6282
6310
|
let frameId;
|
|
6283
6311
|
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
@@ -6363,7 +6391,7 @@ const computePosition = (reference, floating, options) => {
|
|
|
6363
6391
|
});
|
|
6364
6392
|
};
|
|
6365
6393
|
|
|
6366
|
-
/*! @license DOMPurify 3.3.
|
|
6394
|
+
/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
|
|
6367
6395
|
|
|
6368
6396
|
const {
|
|
6369
6397
|
entries,
|
|
@@ -6661,7 +6689,7 @@ const _createHooksMap = function _createHooksMap() {
|
|
|
6661
6689
|
function createDOMPurify() {
|
|
6662
6690
|
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
6663
6691
|
const DOMPurify = root => createDOMPurify(root);
|
|
6664
|
-
DOMPurify.version = '3.3.
|
|
6692
|
+
DOMPurify.version = '3.3.3';
|
|
6665
6693
|
DOMPurify.removed = [];
|
|
6666
6694
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
6667
6695
|
// Not running in a browser, provide a factory function
|
|
@@ -6956,7 +6984,7 @@ function createDOMPurify() {
|
|
|
6956
6984
|
/* Parse profile info */
|
|
6957
6985
|
if (USE_PROFILES) {
|
|
6958
6986
|
ALLOWED_TAGS = addToSet({}, text);
|
|
6959
|
-
ALLOWED_ATTR =
|
|
6987
|
+
ALLOWED_ATTR = create(null);
|
|
6960
6988
|
if (USE_PROFILES.html === true) {
|
|
6961
6989
|
addToSet(ALLOWED_TAGS, html$1);
|
|
6962
6990
|
addToSet(ALLOWED_ATTR, html);
|
|
@@ -6977,6 +7005,13 @@ function createDOMPurify() {
|
|
|
6977
7005
|
addToSet(ALLOWED_ATTR, xml);
|
|
6978
7006
|
}
|
|
6979
7007
|
}
|
|
7008
|
+
/* Prevent function-based ADD_ATTR / ADD_TAGS from leaking across calls */
|
|
7009
|
+
if (!objectHasOwnProperty(cfg, 'ADD_TAGS')) {
|
|
7010
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = null;
|
|
7011
|
+
}
|
|
7012
|
+
if (!objectHasOwnProperty(cfg, 'ADD_ATTR')) {
|
|
7013
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = null;
|
|
7014
|
+
}
|
|
6980
7015
|
/* Merge configuration parameters */
|
|
6981
7016
|
if (cfg.ADD_TAGS) {
|
|
6982
7017
|
if (typeof cfg.ADD_TAGS === 'function') {
|
|
@@ -7374,6 +7409,10 @@ function createDOMPurify() {
|
|
|
7374
7409
|
*/
|
|
7375
7410
|
// eslint-disable-next-line complexity
|
|
7376
7411
|
const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
|
7412
|
+
/* FORBID_ATTR must always win, even if ADD_ATTR predicate would allow it */
|
|
7413
|
+
if (FORBID_ATTR[lcName]) {
|
|
7414
|
+
return false;
|
|
7415
|
+
}
|
|
7377
7416
|
/* Make sure attribute cannot clobber */
|
|
7378
7417
|
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
|
|
7379
7418
|
return false;
|
|
@@ -7466,7 +7505,7 @@ function createDOMPurify() {
|
|
|
7466
7505
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
7467
7506
|
}
|
|
7468
7507
|
/* Work around a security issue with comments inside attributes */
|
|
7469
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
|
|
7508
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
|
|
7470
7509
|
_removeAttribute(name, currentNode);
|
|
7471
7510
|
continue;
|
|
7472
7511
|
}
|
|
@@ -7738,7 +7777,7 @@ function createDOMPurify() {
|
|
|
7738
7777
|
}
|
|
7739
7778
|
var purify = createDOMPurify();
|
|
7740
7779
|
|
|
7741
|
-
const pdsComboboxCss = ":host{display:block}:host([disabled=true]) .pds-combobox__input-icon{color:var(--pine-color-text-disabled);pointer-events:none}.pds-combobox{position:relative}.pds-combobox__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-combobox__input-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;position:relative;width:100%}.pds-combobox__input{background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body-medium);padding:var(--pine-dimension-xs) var(--pine-dimension-450) var(--pine-dimension-xs) var(--pine-dimension-150);-webkit-transition:border-color 0.2s ease;transition:border-color 0.2s ease;width:100%}.pds-combobox__input:hover:not(:disabled){border-color:var(--pine-color-border-hover)}.pds-combobox__input:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-combobox__input:disabled::-webkit-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-moz-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled:-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:focus-visible{border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input-icon{color:var(--pine-color-text-secondary);pointer-events:none;position:absolute;right:var(--pine-dimension-150);z-index:var(--pine-z-index-raised)}.pds-combobox__listbox{background:var(--pine-color-background-container);border:0;border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);list-style:none;margin:0;min-width:220px;overflow-y:auto;padding:var(--pine-dimension-xs);position:absolute;z-index:var(--pine-z-index-raised)}.pds-combobox__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-125);color:var(--pine-color-text-secondary);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;-webkit-transition:background 0.15s;transition:background 0.15s}.pds-combobox__option[aria-selected=true]{background:var(--pine-color-background-muted)}.pds-combobox__option:focus-visible{outline:0}.pds-combobox__option .pds-combobox__option--layout .pds-combobox__option-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option .pds-combobox__option--chip .pds-combobox__option-chip{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option:last-child{-webkit-margin-after:0;margin-block-end:0}.pds-combobox__option--highlighted,.pds-combobox__option[selected],.pds-combobox__option--selected{background:var(--pine-color-background-muted)}.pds-combobox__option-check{color:currentColor;font-size:var(--pine-dimension-150);-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__group-label{color:var(--pine-color-text-tertiary);cursor:default;font:var(--pine-typography-heading-caption);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-150);margin-block-start:var(--pine-dimension-150);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm);text-transform:uppercase}.pds-combobox__group-label:first-child{-webkit-margin-before:0;margin-block-start:0}.pds-combobox__button-trigger{-ms-flex-align:center;align-items:center;background:var(--color-background-default, var(--pine-color-secondary));border:var(--pine-border);border-radius:var(--pine-border-radius-full);color:var(--color-text-default, var(--pine-color-text-inverse-emphasis));cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;min-height:var(--pine-dimension-450);outline:none;padding:0 var(--pine-dimension-sm);-webkit-transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s, -webkit-box-shadow 0.15s;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__button-trigger .pds-combobox__button-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__button-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__button-trigger:focus-visible{border-color:var(--color-border-focus, var(--pine-color-border));-webkit-box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring));box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring))}.pds-combobox__button-trigger:hover{background:var(--color-background-hover, var(--pine-color-secondary-hover));border-color:var(--color-border-hover, var(--pine-color-border-hover))}.pds-combobox__button-trigger[aria-disabled=true],.pds-combobox__button-trigger:disabled{background:var(--color-background-disabled, var(--pine-color-secondary-disabled));border-color:var(--color-border-disabled, var(--pine-color-border-disabled));color:var(--color-text-disabled, var(--pine-color-text-secondary-disabled));cursor:not-allowed;opacity:0.6}.pds-combobox__button-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__button-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__button-trigger--primary{--color-background-default:var(--pine-color-primary);--color-background-hover:var(--pine-color-primary-hover);--color-background-disabled:var(--pine-color-primary-disabled);--color-border-default:var(--pine-color-primary);--color-border-hover:var(--pine-color-primary-hover);--color-border-disabled:var(--pine-color-primary-disabled);--color-border-focus:var(--pine-color-primary);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-primary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--accent{--color-background-default:var(--pine-color-accent);--color-background-hover:var(--pine-color-accent-hover);--color-background-disabled:var(--pine-color-accent-disabled);--color-border-default:var(--pine-color-accent);--color-border-hover:var(--pine-color-accent-hover);--color-border-disabled:var(--pine-color-accent-disabled);--color-border-focus:var(--pine-color-accent);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-accent-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--secondary{--color-background-default:var(--pine-color-secondary);--color-background-hover:var(--pine-color-secondary-hover);--color-background-disabled:var(--pine-color-secondary-disabled);--color-border-default:var(--pine-color-border);--color-border-hover:var(--pine-color-border-hover);--color-border-disabled:var(--pine-color-border-disabled);--color-border-focus:var(--pine-color-border);--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--destructive{--color-background-default:var(--pine-color-danger);--color-background-hover:var(--pine-color-danger-hover);--color-background-disabled:var(--pine-color-danger-disabled);--color-border-default:var(--pine-color-danger);--color-border-hover:var(--pine-color-danger-hover);--color-border-disabled:var(--pine-color-danger-disabled);--color-border-focus:var(--pine-color-danger);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-danger-disabled);--color-outline:var(--pine-color-focus-ring-danger)}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[data-layout]{border-radius:var(--pine-dimension-125);padding-block:var(--pine-dimension-xs)}.pds-combobox__chip-trigger{-ms-flex-align:center;align-items:center;border-radius:var(--pine-dimension-sm);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;outline:none;padding-block:var(--pine-dimension-025);padding-inline:var(--pine-dimension-150);-webkit-transition:all 0.15s ease;transition:all 0.15s ease;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__chip-trigger .pds-combobox__chip-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__chip-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__chip-trigger:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__chip-trigger[aria-disabled=true]{cursor:not-allowed;opacity:0.6}.pds-combobox__chip-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__chip-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__chip-trigger-icon{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}.pds-combobox__chip-trigger--neutral,.pds-combobox__chip-trigger--accent,.pds-combobox__chip-trigger--success,.pds-combobox__chip-trigger--warning,.pds-combobox__chip-trigger--danger,.pds-combobox__chip-trigger--info{background:var(--chip-bg);border:var(--pine-border-width) solid var(--chip-border);color:var(--chip-text)}.pds-combobox__chip-trigger--neutral:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--accent:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--success:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--warning:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--danger:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--info:hover:not([aria-disabled=true]){background:var(--chip-bg-hover)}.pds-combobox__chip-trigger--neutral:focus-visible,.pds-combobox__chip-trigger--accent:focus-visible,.pds-combobox__chip-trigger--success:focus-visible,.pds-combobox__chip-trigger--warning:focus-visible,.pds-combobox__chip-trigger--danger:focus-visible,.pds-combobox__chip-trigger--info:focus-visible{border-color:var(--chip-border)}.pds-combobox__chip-trigger--neutral{--chip-bg:var(--pine-chip-color-neutral);--chip-bg-hover:var(--pine-chip-color-neutral-hover);--chip-border:var(--pine-chip-color-neutral-hover);--chip-text:var(--pine-color-text-neutral)}.pds-combobox__chip-trigger--accent{--chip-bg:var(--pine-chip-color-accent);--chip-bg-hover:var(--pine-chip-color-accent-hover);--chip-border:var(--pine-chip-color-accent-hover);--chip-text:var(--pine-color-text-accent)}.pds-combobox__chip-trigger--success{--chip-bg:var(--pine-chip-color-success);--chip-bg-hover:var(--pine-chip-color-success-hover);--chip-border:var(--pine-chip-color-success-hover);--chip-text:var(--pine-color-text-success)}.pds-combobox__chip-trigger--warning{--chip-bg:var(--pine-chip-color-warning);--chip-bg-hover:var(--pine-chip-color-warning-hover);--chip-border:var(--pine-chip-color-warning-hover);--chip-text:var(--pine-color-text-warning)}.pds-combobox__chip-trigger--danger{--chip-bg:var(--pine-chip-color-danger);--chip-bg-hover:var(--pine-chip-color-danger-hover);--chip-border:var(--pine-chip-color-danger-hover);--chip-text:var(--pine-color-text-danger)}.pds-combobox__chip-trigger--info{--chip-bg:var(--pine-chip-color-info);--chip-bg-hover:var(--pine-chip-color-info-hover);--chip-border:var(--pine-chip-color-info-hover);--chip-text:var(--pine-color-text-info)}.pds-combobox__chip-trigger--brand{background:-webkit-gradient(linear, left top, right top, from(#FF3E14), to(#6B62F2));background:linear-gradient(90deg, #FF3E14 0%, #6B62F2 100%);border:0;color:var(--pine-color-text-neutral);padding:1px;position:relative}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.9);border-radius:calc(var(--pine-dimension-sm) - 1px);color:var(--pine-color-text-neutral);font-weight:var(--pine-font-weight-medium);padding:var(--pine-dimension-025) var(--pine-dimension-150);position:relative;z-index:1}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-chevron{position:relative;z-index:1}.pds-combobox__chip-trigger--brand:hover:not([aria-disabled=true]) .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.8)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand){padding:var(--pine-dimension-none)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand) .pds-combobox__chip-trigger-label{padding:var(--pine-dimension-025) var(--pine-dimension-150)}.pds-combobox__chip-trigger--large .pds-combobox__chip-trigger-label{font-family:var(--pine-font-family-heading);font-size:var(--pine-font-size-heading-6);font-weight:var(--pine-font-weight-medium);letter-spacing:var(--pine-letter-spacing-heading-6)}.pds-combobox__chip-trigger--dot .pds-combobox__chip-trigger-label::before{border:var(--pine-border-width) solid transparent;border-radius:var(--pine-border-radius-full);content:\"\";display:inline-block;height:var(--pine-dimension-2xs);-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs);width:var(--pine-dimension-2xs)}.pds-combobox__loading{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}.pds-combobox__empty{color:var(--pine-color-text-tertiary);padding:var(--pine-dimension-150) var(--pine-dimension-sm);text-align:center}.pds-combobox__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}";
|
|
7780
|
+
const pdsComboboxCss = ":host{display:block}:host([disabled=true]) .pds-combobox__input-icon{color:var(--pine-color-text-disabled);pointer-events:none}.pds-combobox{position:relative}.pds-combobox__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-combobox__input-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;position:relative;width:100%}.pds-combobox__input{background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body-medium);padding:var(--pine-dimension-xs) var(--pine-dimension-450) var(--pine-dimension-xs) var(--pine-dimension-150);-webkit-transition:border-color 0.2s ease;transition:border-color 0.2s ease;width:100%}.pds-combobox__input:hover:not(:disabled){border-color:var(--pine-color-border-hover)}.pds-combobox__input:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-combobox__input:disabled::-webkit-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-moz-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled:-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:focus-visible{border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input-icon{color:var(--pine-color-text-secondary);pointer-events:none;position:absolute;right:var(--pine-dimension-150);z-index:var(--pine-z-index-raised)}.pds-combobox__listbox{background:var(--pine-color-background-container);border:0;border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);list-style:none;margin:0;min-width:220px;overflow-y:auto;padding:var(--pine-dimension-xs);position:absolute;z-index:var(--pine-z-index-raised)}.pds-combobox__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-125);color:var(--pine-color-text-secondary);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;-webkit-transition:background 0.15s;transition:background 0.15s}.pds-combobox__option[aria-selected=true]{background:var(--pine-color-background-muted)}.pds-combobox__option:focus-visible{outline:0}.pds-combobox__option .pds-combobox__option--layout .pds-combobox__option-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option .pds-combobox__option--chip .pds-combobox__option-chip{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option:last-child{-webkit-margin-after:0;margin-block-end:0}.pds-combobox__option--highlighted,.pds-combobox__option[selected],.pds-combobox__option--selected{background:var(--pine-color-background-muted)}.pds-combobox__option-check{color:currentColor;font-size:var(--pine-dimension-150);-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__group-label{color:var(--pine-color-text-tertiary);cursor:default;font:var(--pine-typography-heading-caption);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-150);margin-block-start:var(--pine-dimension-150);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm);text-transform:uppercase}.pds-combobox__group-label:first-child{-webkit-margin-before:0;margin-block-start:0}.pds-combobox__button-trigger{-ms-flex-align:center;align-items:center;background:var(--color-background-default, var(--pine-color-secondary));border:var(--pine-border);border-radius:var(--pine-border-radius-full);color:var(--color-text-default, var(--pine-color-text-inverse-emphasis));cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;min-height:var(--pine-dimension-450);outline:none;padding:0 var(--pine-dimension-sm);-webkit-transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s, -webkit-box-shadow 0.15s;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__button-trigger .pds-combobox__button-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__button-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__button-trigger:focus-visible{border-color:var(--color-border-focus, var(--pine-color-border));-webkit-box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring));box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring))}.pds-combobox__button-trigger:hover{background:var(--color-background-hover, var(--pine-color-secondary-hover));border-color:var(--color-border-hover, var(--pine-color-border-hover))}.pds-combobox__button-trigger[aria-disabled=true],.pds-combobox__button-trigger:disabled{background:var(--color-background-disabled, var(--pine-color-secondary-disabled));border-color:var(--color-border-disabled, var(--pine-color-border-disabled));color:var(--color-text-disabled, var(--pine-color-text-secondary-disabled));cursor:not-allowed;opacity:0.6}.pds-combobox__button-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__button-trigger--input-shape{border-radius:var(--pine-dimension-125);min-height:var(--pine-dimension-500)}.pds-combobox__button-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__button-trigger--primary{--color-background-default:var(--pine-color-primary);--color-background-hover:var(--pine-color-primary-hover);--color-background-disabled:var(--pine-color-primary-disabled);--color-border-default:var(--pine-color-primary);--color-border-hover:var(--pine-color-primary-hover);--color-border-disabled:var(--pine-color-primary-disabled);--color-border-focus:var(--pine-color-primary);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-primary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--accent{--color-background-default:var(--pine-color-accent);--color-background-hover:var(--pine-color-accent-hover);--color-background-disabled:var(--pine-color-accent-disabled);--color-border-default:var(--pine-color-accent);--color-border-hover:var(--pine-color-accent-hover);--color-border-disabled:var(--pine-color-accent-disabled);--color-border-focus:var(--pine-color-accent);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-accent-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--secondary{--color-background-default:var(--pine-color-secondary);--color-background-hover:var(--pine-color-secondary-hover);--color-background-disabled:var(--pine-color-secondary-disabled);--color-border-default:var(--pine-color-border);--color-border-hover:var(--pine-color-border-hover);--color-border-disabled:var(--pine-color-border-disabled);--color-border-focus:var(--pine-color-border);--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--destructive{--color-background-default:var(--pine-color-danger);--color-background-hover:var(--pine-color-danger-hover);--color-background-disabled:var(--pine-color-danger-disabled);--color-border-default:var(--pine-color-danger);--color-border-hover:var(--pine-color-danger-hover);--color-border-disabled:var(--pine-color-danger-disabled);--color-border-focus:var(--pine-color-danger);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-danger-disabled);--color-outline:var(--pine-color-focus-ring-danger)}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[data-layout]{border-radius:var(--pine-dimension-125);padding-block:var(--pine-dimension-xs)}.pds-combobox__chip-trigger{-ms-flex-align:center;align-items:center;border-radius:var(--pine-dimension-sm);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;outline:none;padding-block:var(--pine-dimension-025);padding-inline:var(--pine-dimension-150);-webkit-transition:all 0.15s ease;transition:all 0.15s ease;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__chip-trigger .pds-combobox__chip-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__chip-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__chip-trigger:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__chip-trigger[aria-disabled=true]{cursor:not-allowed;opacity:0.6}.pds-combobox__chip-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__chip-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__chip-trigger-icon{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}.pds-combobox__chip-trigger--neutral,.pds-combobox__chip-trigger--accent,.pds-combobox__chip-trigger--success,.pds-combobox__chip-trigger--warning,.pds-combobox__chip-trigger--danger,.pds-combobox__chip-trigger--info{background:var(--chip-bg);border:var(--pine-border-width) solid var(--chip-border);color:var(--chip-text)}.pds-combobox__chip-trigger--neutral:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--accent:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--success:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--warning:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--danger:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--info:hover:not([aria-disabled=true]){background:var(--chip-bg-hover)}.pds-combobox__chip-trigger--neutral:focus-visible,.pds-combobox__chip-trigger--accent:focus-visible,.pds-combobox__chip-trigger--success:focus-visible,.pds-combobox__chip-trigger--warning:focus-visible,.pds-combobox__chip-trigger--danger:focus-visible,.pds-combobox__chip-trigger--info:focus-visible{border-color:var(--chip-border)}.pds-combobox__chip-trigger--neutral{--chip-bg:var(--pine-chip-color-neutral);--chip-bg-hover:var(--pine-chip-color-neutral-hover);--chip-border:var(--pine-chip-color-neutral-hover);--chip-text:var(--pine-color-text-neutral)}.pds-combobox__chip-trigger--accent{--chip-bg:var(--pine-chip-color-accent);--chip-bg-hover:var(--pine-chip-color-accent-hover);--chip-border:var(--pine-chip-color-accent-hover);--chip-text:var(--pine-color-text-accent)}.pds-combobox__chip-trigger--success{--chip-bg:var(--pine-chip-color-success);--chip-bg-hover:var(--pine-chip-color-success-hover);--chip-border:var(--pine-chip-color-success-hover);--chip-text:var(--pine-color-text-success)}.pds-combobox__chip-trigger--warning{--chip-bg:var(--pine-chip-color-warning);--chip-bg-hover:var(--pine-chip-color-warning-hover);--chip-border:var(--pine-chip-color-warning-hover);--chip-text:var(--pine-color-text-warning)}.pds-combobox__chip-trigger--danger{--chip-bg:var(--pine-chip-color-danger);--chip-bg-hover:var(--pine-chip-color-danger-hover);--chip-border:var(--pine-chip-color-danger-hover);--chip-text:var(--pine-color-text-danger)}.pds-combobox__chip-trigger--info{--chip-bg:var(--pine-chip-color-info);--chip-bg-hover:var(--pine-chip-color-info-hover);--chip-border:var(--pine-chip-color-info-hover);--chip-text:var(--pine-color-text-info)}.pds-combobox__chip-trigger--brand{background:-webkit-gradient(linear, left top, right top, from(#FF3E14), to(#6B62F2));background:linear-gradient(90deg, #FF3E14 0%, #6B62F2 100%);border:0;color:var(--pine-color-text-neutral);padding:1px;position:relative}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.9);border-radius:calc(var(--pine-dimension-sm) - 1px);color:var(--pine-color-text-neutral);font-weight:var(--pine-font-weight-medium);padding:var(--pine-dimension-025) var(--pine-dimension-150);position:relative;z-index:1}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-chevron{position:relative;z-index:1}.pds-combobox__chip-trigger--brand:hover:not([aria-disabled=true]) .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.8)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand){padding:var(--pine-dimension-none)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand) .pds-combobox__chip-trigger-label{padding:var(--pine-dimension-025) var(--pine-dimension-150)}.pds-combobox__chip-trigger--large .pds-combobox__chip-trigger-label{font-family:var(--pine-font-family-heading);font-size:var(--pine-font-size-heading-6);font-weight:var(--pine-font-weight-medium);letter-spacing:var(--pine-letter-spacing-heading-6)}.pds-combobox__chip-trigger--dot .pds-combobox__chip-trigger-label::before{border:var(--pine-border-width) solid transparent;border-radius:var(--pine-border-radius-full);content:\"\";display:inline-block;height:var(--pine-dimension-2xs);-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs);width:var(--pine-dimension-2xs)}.pds-combobox__loading{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}.pds-combobox__empty{color:var(--pine-color-text-tertiary);padding:var(--pine-dimension-150) var(--pine-dimension-sm);text-align:center}.pds-combobox__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}";
|
|
7742
7781
|
|
|
7743
7782
|
/**
|
|
7744
7783
|
* @slot option - Option elements for the combobox dropdown
|
|
@@ -7781,7 +7820,8 @@ class PdsCombobox {
|
|
|
7781
7820
|
this.dropdownWidth = '236px';
|
|
7782
7821
|
/**
|
|
7783
7822
|
* Visually hides the label text for instances where only the combobox should be displayed.
|
|
7784
|
-
*
|
|
7823
|
+
* The visible `<label>` is omitted (same pattern as `pds-select`) so label spacing does not reserve layout;
|
|
7824
|
+
* the trigger uses `aria-label` so the name stays available to assistive technology.
|
|
7785
7825
|
*/
|
|
7786
7826
|
this.hideLabel = false;
|
|
7787
7827
|
/**
|
|
@@ -7804,6 +7844,12 @@ class PdsCombobox {
|
|
|
7804
7844
|
* @default 'secondary'
|
|
7805
7845
|
*/
|
|
7806
7846
|
this.triggerVariant = 'secondary';
|
|
7847
|
+
/**
|
|
7848
|
+
* The shape of the button trigger. Use 'input' to render the trigger with input-like styling
|
|
7849
|
+
* (subtle border radius, input height) for use in form or filter rows alongside PdsSelect and PdsMultiselect.
|
|
7850
|
+
* @default 'pill'
|
|
7851
|
+
*/
|
|
7852
|
+
this.triggerShape = 'pill';
|
|
7807
7853
|
/**
|
|
7808
7854
|
* The sentiment for the chip trigger. Matches Pine chip sentiments.
|
|
7809
7855
|
* @default 'neutral'
|
|
@@ -8154,14 +8200,7 @@ class PdsCombobox {
|
|
|
8154
8200
|
}
|
|
8155
8201
|
}
|
|
8156
8202
|
// Initialize form value with current value
|
|
8157
|
-
|
|
8158
|
-
try {
|
|
8159
|
-
this.internals.setFormValue((_c = (_b = (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : this.value) !== null && _c !== void 0 ? _c : '');
|
|
8160
|
-
}
|
|
8161
|
-
catch (e) {
|
|
8162
|
-
// ElementInternals.setFormValue not available in unit tests
|
|
8163
|
-
}
|
|
8164
|
-
}
|
|
8203
|
+
this.updateFormValue((_c = (_b = (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : this.value) !== null && _c !== void 0 ? _c : '');
|
|
8165
8204
|
}
|
|
8166
8205
|
disconnectedCallback() {
|
|
8167
8206
|
var _a;
|
|
@@ -8183,14 +8222,7 @@ class PdsCombobox {
|
|
|
8183
8222
|
handleValueChange() {
|
|
8184
8223
|
this.filterOptions();
|
|
8185
8224
|
// Sync with form internals for form association
|
|
8186
|
-
|
|
8187
|
-
try {
|
|
8188
|
-
this.internals.setFormValue(this.value);
|
|
8189
|
-
}
|
|
8190
|
-
catch (e) {
|
|
8191
|
-
// ElementInternals.setFormValue not available in unit tests
|
|
8192
|
-
}
|
|
8193
|
-
}
|
|
8225
|
+
this.updateFormValue(this.value);
|
|
8194
8226
|
// Find and select option that matches the value (for external value changes)
|
|
8195
8227
|
// Only do this if we're not already updating from a selection
|
|
8196
8228
|
if (!this.isUpdatingFromSelection && this.value && this.optionEls.length > 0) {
|
|
@@ -8223,26 +8255,19 @@ class PdsCombobox {
|
|
|
8223
8255
|
this.displayText = this.getOptionLabel(this.selectedOption);
|
|
8224
8256
|
this.value = this.selectedOption.value;
|
|
8225
8257
|
// Update form internals with the actual option value
|
|
8226
|
-
|
|
8227
|
-
try {
|
|
8228
|
-
this.internals.setFormValue(this.selectedOption.value);
|
|
8229
|
-
}
|
|
8230
|
-
catch (e) {
|
|
8231
|
-
// ElementInternals.setFormValue not available in unit tests
|
|
8232
|
-
}
|
|
8233
|
-
}
|
|
8258
|
+
this.updateFormValue(this.selectedOption.value);
|
|
8234
8259
|
}
|
|
8235
8260
|
else {
|
|
8236
8261
|
this.displayText = '';
|
|
8237
8262
|
this.value = '';
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8263
|
+
this.updateFormValue('');
|
|
8264
|
+
}
|
|
8265
|
+
}
|
|
8266
|
+
updateFormValue(value) {
|
|
8267
|
+
if (isSpecTest())
|
|
8268
|
+
return;
|
|
8269
|
+
if (this.internals && this.internals.setFormValue) {
|
|
8270
|
+
this.internals.setFormValue(value);
|
|
8246
8271
|
}
|
|
8247
8272
|
}
|
|
8248
8273
|
clearAsyncFetchState() {
|
|
@@ -8990,11 +9015,17 @@ class PdsCombobox {
|
|
|
8990
9015
|
large: chipProps.large, icon: chipProps.icon, dot: chipProps.dot, class: "pds-combobox__option-chip" }, this.getOptionLabel(option)));
|
|
8991
9016
|
}
|
|
8992
9017
|
render() {
|
|
8993
|
-
const triggerClass =
|
|
8994
|
-
|
|
9018
|
+
const triggerClass = [
|
|
9019
|
+
'pds-combobox__button-trigger',
|
|
9020
|
+
`pds-combobox__button-trigger--${this.triggerVariant}`,
|
|
9021
|
+
this.triggerShape === 'input' && 'pds-combobox__button-trigger--input-shape',
|
|
9022
|
+
]
|
|
9023
|
+
.filter(Boolean)
|
|
9024
|
+
.join(' ');
|
|
9025
|
+
return (hAsync(Host, { key: '6a8f372c89a896d2d7e67661e84053c4c95b93c9' }, hAsync("div", { key: '7b4747885bfa9aaa6e698bf13b6cdf9d4e77b3b1', class: "pds-combobox", tabIndex: -1, onFocusout: this.onComboboxFocusOut, part: "combobox" }, this.label && !this.hideLabel && (hAsync("label", { key: '46acd60080458de682516becc6144b38675a3f2d', htmlFor: this.componentId, class: "pds-combobox__label" }, this.label)), this.trigger === 'input' ? (hAsync("div", { class: "pds-combobox__input-wrapper", style: { width: this.triggerWidth } }, hAsync("input", { ref: el => {
|
|
8995
9026
|
this.inputEl = el;
|
|
8996
9027
|
this.triggerEl = el;
|
|
8997
|
-
}, class: "pds-combobox__input", type: "text", role: "combobox", "aria-autocomplete": "list", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, value: this.displayText, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onClick: this.handleInputClick, onKeyDown: this.handleKeyDown, autocomplete: "off", part: "input" }), hAsync("pds-icon", { icon: "enlarge", "aria-hidden": "true", class: "pds-combobox__input-icon" }))) : this.trigger === 'chip' ? (hAsync("div", { class: this.getChipTriggerClass(), style: { width: this.triggerWidth }, role: "combobox", "aria-haspopup": "listbox", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "chip-trigger" }, this.renderChipTriggerContent())) : (hAsync("div", { class: triggerClass, style: { width: this.triggerWidth }, role: "combobox", "aria-haspopup": "listbox", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "button-trigger" }, this.renderButtonTriggerContent())), hAsync("div", { key: '
|
|
9028
|
+
}, class: "pds-combobox__input", type: "text", role: "combobox", "aria-autocomplete": "list", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, value: this.displayText, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onClick: this.handleInputClick, onKeyDown: this.handleKeyDown, autocomplete: "off", part: "input" }), hAsync("pds-icon", { icon: "enlarge", "aria-hidden": "true", class: "pds-combobox__input-icon" }))) : this.trigger === 'chip' ? (hAsync("div", { class: this.getChipTriggerClass(), style: { width: this.triggerWidth }, role: "combobox", "aria-haspopup": "listbox", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "chip-trigger" }, this.renderChipTriggerContent())) : (hAsync("div", { class: triggerClass, style: { width: this.triggerWidth }, role: "combobox", "aria-haspopup": "listbox", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "button-trigger" }, this.renderButtonTriggerContent())), hAsync("div", { key: '4e4bd7cb7139416f3f59b1c9736a1fad85c09c24', style: { display: 'none' } }, hAsync("slot", { key: '79e4c181d161a56acba68e1f7ca932369e938e10', onSlotchange: () => this.updateOptions() })), this.renderDropdown())));
|
|
8998
9029
|
}
|
|
8999
9030
|
static get formAssociated() { return true; }
|
|
9000
9031
|
get el() { return getElement(this); }
|
|
@@ -9024,6 +9055,7 @@ class PdsCombobox {
|
|
|
9024
9055
|
"trigger": [1],
|
|
9025
9056
|
"triggerWidth": [1, "trigger-width"],
|
|
9026
9057
|
"triggerVariant": [1, "trigger-variant"],
|
|
9058
|
+
"triggerShape": [1, "trigger-shape"],
|
|
9027
9059
|
"chipSentiment": [1, "chip-sentiment"],
|
|
9028
9060
|
"chipLarge": [4, "chip-large"],
|
|
9029
9061
|
"chipIcon": [1, "chip-icon"],
|
|
@@ -9055,6 +9087,52 @@ class PdsCombobox {
|
|
|
9055
9087
|
}; }
|
|
9056
9088
|
}
|
|
9057
9089
|
|
|
9090
|
+
const pdsContainerCss = ":host{display:block;margin-inline:auto;max-width:var(--pine-container-max-width, none);width:100%}:host(.pds-container--sm){--pine-container-max-width:340px}:host(.pds-container--md){--pine-container-max-width:520px}:host(.pds-container--lg){--pine-container-max-width:700px}:host(.pds-container--xl){--pine-container-max-width:1064px}:host(.pds-container--full){--pine-container-max-width:1440px}";
|
|
9091
|
+
|
|
9092
|
+
const NAMED_SIZES = new Set(['sm', 'md', 'lg', 'xl', 'full']);
|
|
9093
|
+
/**
|
|
9094
|
+
* @part container - The inner semantic container element
|
|
9095
|
+
*/
|
|
9096
|
+
class PdsContainer {
|
|
9097
|
+
constructor(hostRef) {
|
|
9098
|
+
registerInstance(this, hostRef);
|
|
9099
|
+
/**
|
|
9100
|
+
* Sets the semantic HTML tag rendered as the inner container element.
|
|
9101
|
+
* @default 'div'
|
|
9102
|
+
*/
|
|
9103
|
+
this.tag = 'div';
|
|
9104
|
+
/**
|
|
9105
|
+
* If `true`, the container is centered horizontally using `margin-inline: auto`.
|
|
9106
|
+
* @default true
|
|
9107
|
+
*/
|
|
9108
|
+
this.centered = true;
|
|
9109
|
+
}
|
|
9110
|
+
render() {
|
|
9111
|
+
const Tag = this.tag;
|
|
9112
|
+
const isNamed = this.size !== undefined && NAMED_SIZES.has(this.size);
|
|
9113
|
+
const customSize = this.size !== undefined && !isNamed ? this.size : undefined;
|
|
9114
|
+
const hostStyle = {};
|
|
9115
|
+
if (customSize)
|
|
9116
|
+
hostStyle['--pine-container-max-width'] = customSize;
|
|
9117
|
+
if (!this.centered)
|
|
9118
|
+
hostStyle['margin-inline'] = '0';
|
|
9119
|
+
return (hAsync(Host, { key: 'b8055b9add2e9abfeaf61f233a0f22e559829eb2', class: { [`pds-container--${this.size}`]: isNamed }, style: Object.keys(hostStyle).length ? hostStyle : undefined }, hAsync(Tag, { key: '8aac62d1a6639063d10b8c51539ca0bc3ca0bae4', part: "container" }, hAsync("slot", { key: '747e55553b7660159ee9d0192ccb8ed29a99f0b0' }))));
|
|
9120
|
+
}
|
|
9121
|
+
static get style() { return pdsContainerCss; }
|
|
9122
|
+
static get cmpMeta() { return {
|
|
9123
|
+
"$flags$": 265,
|
|
9124
|
+
"$tagName$": "pds-container",
|
|
9125
|
+
"$members$": {
|
|
9126
|
+
"size": [1],
|
|
9127
|
+
"tag": [1],
|
|
9128
|
+
"centered": [4]
|
|
9129
|
+
},
|
|
9130
|
+
"$listeners$": undefined,
|
|
9131
|
+
"$lazyBundleId$": "-",
|
|
9132
|
+
"$attrsToReflect$": []
|
|
9133
|
+
}; }
|
|
9134
|
+
}
|
|
9135
|
+
|
|
9058
9136
|
/** CSS class prefix used for truncation tooltip portal elements */
|
|
9059
9137
|
const TOOLTIP_CLASS = 'pds-truncation-tooltip';
|
|
9060
9138
|
/**
|
|
@@ -9385,7 +9463,7 @@ class PdsCopytext {
|
|
|
9385
9463
|
return classNames.join(' ');
|
|
9386
9464
|
}
|
|
9387
9465
|
render() {
|
|
9388
|
-
return (hAsync(Host, { key: '
|
|
9466
|
+
return (hAsync(Host, { key: '43a3870fa4c24416e2e6e99dd7c423a5c32ac91e', class: this.classNames(), id: this.componentId }, hAsync("pds-button", { key: 'f0735d3f245dd7150e88b3dd1a191c3ee86b6293', type: "button", variant: "unstyled", onClick: this.handleClick }, hAsync("span", { key: 'ddf7cf205f9bb11dd4b4111435bb7efc15b0af61', ref: (el) => this.valueSpanEl = el }, this.value), hAsync("pds-icon", { key: '0f35d997eb1766631ac6098bdb12d0aff9813012', icon: copy, size: "16px" }))));
|
|
9389
9467
|
}
|
|
9390
9468
|
get el() { return getElement(this); }
|
|
9391
9469
|
static get watchers() { return {
|
|
@@ -9432,7 +9510,7 @@ class PdsDivider {
|
|
|
9432
9510
|
return classNames.join(' ');
|
|
9433
9511
|
}
|
|
9434
9512
|
render() {
|
|
9435
|
-
return (hAsync(Host, { key: '
|
|
9513
|
+
return (hAsync(Host, { key: 'c3a01882db1119b8397353aaed193813cba0bfb8', id: this.componentId }, hAsync("hr", { key: 'fe20a28dbd2f10cec125df4dbb4ba7a2837628f1', class: this.classNames() })));
|
|
9436
9514
|
}
|
|
9437
9515
|
static get style() { return pdsDividerCss; }
|
|
9438
9516
|
static get cmpMeta() { return {
|
|
@@ -9758,7 +9836,7 @@ class PdsDropdownMenu {
|
|
|
9758
9836
|
}
|
|
9759
9837
|
}
|
|
9760
9838
|
render() {
|
|
9761
|
-
return (hAsync(Host, { key: '
|
|
9839
|
+
return (hAsync(Host, { key: '467662b4b14612153ba10a4d3a6f578edec52d89', id: this.componentId }, hAsync("slot", { key: 'ba1b44fe9276b96fd123694742a34bd7c8717a3d', name: "trigger", onSlotchange: this.handleTriggerSlotChange }), hAsync("pds-box", { key: '8287d0cc6fea80eeb73ca355eb247883d6257c19', "border-radius": "sm", display: "flex", direction: "column", class: "pds-dropdown-menu--panel is-hidden", shadow: "100", role: "menu", "aria-orientation": "vertical", part: "menu-panel" }, hAsync("slot", { key: '5d5aa3cc226fabaadb4572bfa38f9189dbcb55c7', onSlotchange: this.handleSlotChange }))));
|
|
9762
9840
|
}
|
|
9763
9841
|
get host() { return getElement(this); }
|
|
9764
9842
|
static get style() { return pdsDropdownMenuCss; }
|
|
@@ -9778,6 +9856,9 @@ class PdsDropdownMenu {
|
|
|
9778
9856
|
|
|
9779
9857
|
const pdsDropdownMenuItemCss = ":host{cursor:pointer;display:-ms-flexbox;display:flex;width:100%;}:host(.is-disabled){cursor:not-allowed !important;opacity:0.5 !important}:host(.is-disabled) .pds-dropdown-menu-item__content{cursor:not-allowed !important;pointer-events:none !important}.pds-dropdown-menu-item__content{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--pine-dimension-xs);color:var(--pine-color-text);display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;font:var(--pine-typography-body-medium);gap:var(--pine-dimension-xs);margin:calc(var(--pine-border-width) + 2px);padding:var(--pine-dimension-xs);text-align:start;width:100%;}.pds-dropdown-menu-item__content:hover{background-color:var(--pine-color-background-muted);color:var(--pine-color-text-hover)}.pds-dropdown-menu-item__content{}.pds-dropdown-menu-item__content:focus,.pds-dropdown-menu-item__content:focus-visible,.pds-dropdown-menu-item__content.has-focus{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}:host(.destructive) .pds-dropdown-menu-item__content{--pds-context-link-color:var(--pine-color-danger);--pds-context-link-color-hover:var(--pine-color-danger-hover);-ms-flex-align:center;align-items:center;color:var(--pine-color-danger)}:host(.destructive) .pds-dropdown-menu-item__content:hover{background-color:var(--pine-color-danger-disabled);color:var(--pine-color-danger-hover)}:host(.destructive) .pds-dropdown-menu-item__content:focus,:host(.destructive) .pds-dropdown-menu-item__content:focus-visible,:host(.destructive) .pds-dropdown-menu-item__content.has-focus{background-color:var(--pine-color-danger-disabled);outline:var(--pine-outline-focus-danger);outline-offset:var(--pine-border-width)}pds-link::part(link):focus,pds-link::part(link):focus-visible{-webkit-box-shadow:none;box-shadow:none;outline:none}pds-link::part(link){-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);margin:calc(var(--pine-dimension-xs) * -1);padding:var(--pine-dimension-xs);text-decoration:none;width:calc(100% + var(--pine-dimension-xs) * 2)}";
|
|
9780
9858
|
|
|
9859
|
+
/**
|
|
9860
|
+
* @part button
|
|
9861
|
+
*/
|
|
9781
9862
|
class PdsDropdownMenuItem {
|
|
9782
9863
|
constructor(hostRef) {
|
|
9783
9864
|
registerInstance(this, hostRef);
|
|
@@ -9850,7 +9931,7 @@ class PdsDropdownMenuItem {
|
|
|
9850
9931
|
}, tabIndex: this.disabled ? -1 : 0, type: "button", part: "button", onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : null }, hAsync("slot", null)));
|
|
9851
9932
|
}
|
|
9852
9933
|
render() {
|
|
9853
|
-
return (hAsync(Host, { key: '
|
|
9934
|
+
return (hAsync(Host, { key: 'd2a6c182b330dae3738650002a4643c0f1fd3d1a', id: this.componentId, class: { 'is-disabled': this.disabled, 'destructive': !this.disabled && this.destructive }, onClick: () => !this.disabled && this.handleClick(), role: "none", tabIndex: -1, "aria-disabled": this.disabled ? 'true' : null }, this.renderElement()));
|
|
9854
9935
|
}
|
|
9855
9936
|
get host() { return getElement(this); }
|
|
9856
9937
|
static get style() { return pdsDropdownMenuItemCss; }
|
|
@@ -9886,7 +9967,7 @@ class PdsDropdownMenuSeparator {
|
|
|
9886
9967
|
this.disabled = false;
|
|
9887
9968
|
}
|
|
9888
9969
|
render() {
|
|
9889
|
-
return (hAsync(Host, { key: '
|
|
9970
|
+
return (hAsync(Host, { key: '1058ea61d2ad7c311ee162b909df2531f3589e4c', id: this.componentId }, hAsync("hr", { key: 'a8c2f69ef5fba5ea4ea74553fe72544e31eafb1b' })));
|
|
9890
9971
|
}
|
|
9891
9972
|
static get style() { return pdsDropdownMenuSeparatorCss; }
|
|
9892
9973
|
static get cmpMeta() { return {
|
|
@@ -10389,7 +10470,7 @@ class PdsFilter {
|
|
|
10389
10470
|
return null;
|
|
10390
10471
|
}
|
|
10391
10472
|
render() {
|
|
10392
|
-
return (hAsync(Host, { key: '
|
|
10473
|
+
return (hAsync(Host, { key: 'e70f7bf3612c5c8abe7445ba3a4e53391a68de9e', id: this.componentId }, hAsync("button", { key: '2cba723795c43509762f75cb4b6607ce547f7c39', class: this.getTriggerClasses(), type: "button", popoverTarget: this.variant !== 'clear' ? `${this.componentId}-popover` : undefined, popoverTargetAction: this.variant !== 'clear' ? 'toggle' : undefined, onKeyDown: this.variant === 'clear' ? this.handleKeyDown : undefined, onClick: (event) => this.handleClick(event), part: "button", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": this.variant !== 'clear' ? 'true' : undefined, "aria-controls": this.variant !== 'clear' ? `${this.componentId}-popover` : undefined }, hAsync("span", { key: '8244dd35cc74c6f0138be2d3495d94b97f60474f', class: "pds-filter__button-content", part: "button-content" }, this.renderIcon(), this.text && (hAsync("span", { key: 'd97c085d1df1ca13ccaf1f26ca2dac81bdfb105a', class: "pds-filter__button-text", part: "button-text" }, this.text)), this.renderDropdownIcon())), this.variant !== 'clear' && (hAsync("div", { key: '0b9daf4591ea20db06813ce4c39442d69af3fda1', ref: el => this.popoverEl = el, id: `${this.componentId}-popover`, class: "pds-filter__popover", popover: "auto", part: "popover" }, hAsync("slot", { key: 'f4499fe2d5a6a169318fe65cbbc558565c8644f9' })))));
|
|
10393
10474
|
}
|
|
10394
10475
|
get el() { return getElement(this); }
|
|
10395
10476
|
static get style() { return pdsFilterCss; }
|
|
@@ -10421,7 +10502,7 @@ class PdsFilters {
|
|
|
10421
10502
|
registerInstance(this, hostRef);
|
|
10422
10503
|
}
|
|
10423
10504
|
render() {
|
|
10424
|
-
return (hAsync(Host, { key: '
|
|
10505
|
+
return (hAsync(Host, { key: '7007a635d3866781dfd67bd2d3b2dab46d36cffc', id: this.componentId }, hAsync("div", { key: 'e6eb4c76bfb39050aaa01ad297df995de7df484b', class: "pds-filters" }, hAsync("slot", { key: '543c83c7422b3e1e9a2446618fe8119d76478df4' }))));
|
|
10425
10506
|
}
|
|
10426
10507
|
static get style() { return pdsFiltersCss; }
|
|
10427
10508
|
static get cmpMeta() { return {
|
|
@@ -10884,9 +10965,9 @@ class PdsImage {
|
|
|
10884
10965
|
this.loading = 'eager';
|
|
10885
10966
|
}
|
|
10886
10967
|
render() {
|
|
10887
|
-
return (hAsync(Host, { key: '
|
|
10968
|
+
return (hAsync(Host, { key: 'fa205f03d5c378d27a66cbfd520ae2bc7ab9e9df', class: {
|
|
10888
10969
|
'pds-image': true,
|
|
10889
|
-
}, id: this.componentId }, hAsync("img", { key: '
|
|
10970
|
+
}, id: this.componentId }, hAsync("img", { key: '8d03dddf6e924ef8aebea2bf34a32e326bee329a', alt: this.alt, height: this.height, loading: this.loading, sizes: this.sizes, src: this.src, srcset: this.srcset, width: this.width })));
|
|
10890
10971
|
}
|
|
10891
10972
|
static get style() { return pdsImageCss; }
|
|
10892
10973
|
static get cmpMeta() { return {
|
|
@@ -11151,6 +11232,8 @@ class PdsInput {
|
|
|
11151
11232
|
* Updates the form value using ElementInternals API
|
|
11152
11233
|
*/
|
|
11153
11234
|
updateFormValue() {
|
|
11235
|
+
if (isSpecTest())
|
|
11236
|
+
return;
|
|
11154
11237
|
if (this.internals && this.internals.setFormValue) {
|
|
11155
11238
|
const value = this.getValue();
|
|
11156
11239
|
this.internals.setFormValue(value || null);
|
|
@@ -11201,7 +11284,7 @@ class PdsInput {
|
|
|
11201
11284
|
'has-prepend': this.hasPrepend,
|
|
11202
11285
|
'has-append': this.hasAppend,
|
|
11203
11286
|
};
|
|
11204
|
-
return (hAsync(Host, { key: '
|
|
11287
|
+
return (hAsync(Host, { key: 'ecf4cc212e5c3ebc18082b790803e6b2ccb8ca77', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null, "has-prefix": this.hasPrefix ? 'true' : null, "has-suffix": this.hasSuffix ? 'true' : null, "has-prepend": this.hasPrepend ? 'true' : null, "has-append": this.hasAppend ? 'true' : null, "has-action": this.hasAction && !this.hideLabel ? 'true' : null, "full-width": this.fullWidth ? 'true' : null }, hAsync("div", { key: 'acdf92a30068fc04a17816ec6d85295b47e512ee', class: "pds-input" }, label && (hAsync("div", { key: 'cc804ec7ec9bb1e588863bdb636f2cc9d61108e0', class: "pds-input__label-wrapper" }, hAsync("label", { key: 'c6d8e54070422bb9856978d17dc99e6633e98e23', htmlFor: componentId, class: "pds-input__label" }, hAsync("span", { key: 'beee330abe246af7e256c42237d061b1e3ed34fe', class: this.hideLabel ? 'visually-hidden' : '' }, label, this.required && hAsync("span", { key: 'd4b6792646b18514f9c5ab008467ebd8e009efa8', class: "pds-input__required-indicator" }, " *"))), !this.hideLabel && this.renderAction())), hAsync("div", { key: '0c147663fad34fc1fd3b294dbe93dc0618f32664', class: inputWrapperClasses }, this.renderPrepend(), this.renderPrefix(), hAsync("input", Object.assign({ key: 'fcf07f3facc9494a9422ac5a54bbcd1dc083ce28', ref: (input) => (this.nativeInput = input), class: "pds-input__field", "aria-describedby": assignDescription(componentId, invalid, helperMessage), "aria-invalid": invalid ? "true" : undefined, autocomplete: this.autocomplete, disabled: disabled, id: componentId, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, step: this.step, type: this.type, value: value, onInput: this.onInputEvent, onChange: this.onChangeEvent, onBlur: this.onBlurEvent, onFocus: this.onFocusEvent, onKeyDown: this.onKeyDownEvent, onCompositionstart: this.onCompositionStart, onCompositionend: this.onCompositionEnd }, this.inheritedAttributes)), this.renderSuffix(), this.renderAppend()), helperMessage && (hAsync("p", { key: 'dbed2e91b2431beaf630460b5d042f4aa7532665', class: "pds-input__helper-message", id: messageId(componentId, 'helper') }, helperMessage)), errorMessage && (hAsync("p", { key: 'ad14be8e2280b58742486cddba591355ed7d3df6', class: "pds-input__error-message", id: messageId(componentId, 'error') }, hAsync("pds-icon", { key: '0badd7b84d29e826f3ca9bd1ad108823c24e3996', icon: danger, size: "small" }), errorMessage)))));
|
|
11205
11288
|
}
|
|
11206
11289
|
static get formAssociated() { return true; }
|
|
11207
11290
|
get el() { return getElement(this); }
|
|
@@ -11302,8 +11385,8 @@ class PdsLink {
|
|
|
11302
11385
|
const targetValue = this.target || (this.external ? '_blank' : undefined);
|
|
11303
11386
|
const showExternalIcon = this.external;
|
|
11304
11387
|
const relValue = targetValue === '_blank' ? 'noopener noreferrer' : undefined;
|
|
11305
|
-
return (hAsync("a", { key: '
|
|
11306
|
-
hAsync("pds-icon", { key: '
|
|
11388
|
+
return (hAsync("a", { key: '8ab68ceb91a4c7b155a4ae54d2cb421af4d0eec1', class: this.classNames(), download: this.download, href: this.href, id: this.componentId, part: "link", target: targetValue, rel: relValue, style: this.setLinkStyles() }, hAsync("slot", { key: 'b90dc967867a3b765d632c16458236e6e4ccf97e' }, this.href), showExternalIcon &&
|
|
11389
|
+
hAsync("pds-icon", { key: 'ebffdba1a21f7b0f5730608ec5eb88519ee79d1b', icon: launch, size: this.fontSize })));
|
|
11307
11390
|
}
|
|
11308
11391
|
static get style() { return pdsLinkCss; }
|
|
11309
11392
|
static get cmpMeta() { return {
|
|
@@ -11375,7 +11458,7 @@ class PdsLoader {
|
|
|
11375
11458
|
}
|
|
11376
11459
|
}
|
|
11377
11460
|
render() {
|
|
11378
|
-
return (hAsync(Host, { key: '
|
|
11461
|
+
return (hAsync(Host, { key: 'fc312fc9ebf973506190e693cd251f25e37f3d0a', class: `pds-loader ${this.isLoading ? '' : 'pds-loader--hidden'}`, "aria-hidden": !this.isLoading, "aria-busy": this.isLoading, "aria-live": "polite" }, this.variant === 'spinner' && (hAsync("div", { key: 'c9eab32510368d1fd6db7669b3db640c229911f2', class: "pds-loader--spinner" }, hAsync("svg", { key: '359d9f171378064c6121e583efe09eace3377e44', style: this.getSvgStyle(), viewBox: "0 0 200 200", fill: "none", part: "loader-svg" }, hAsync("defs", { key: '263409d92ab95fa34df4e879934e04e6a587f23b' }, hAsync("linearGradient", { key: 'e9b32747efcb60bbebd8734fdd2c2d5a400974c1', id: "spinner-secondHalf" }, hAsync("stop", { key: 'db61c891cf635b72e36a152b944b6c9ce3569be3', offset: "0%", "stop-opacity": "0", "stop-color": "currentColor" }), hAsync("stop", { key: 'fb964af08941ad174ecaf0c329d79e25fff45a9c', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" })), hAsync("linearGradient", { key: '89d815d1f076ffe82d189d51fce14fb48ecb0926', id: "spinner-firstHalf" }, hAsync("stop", { key: '43b753f80ab136d38635a6ab921899fc8fd3a6b2', offset: "0%", "stop-opacity": "1", "stop-color": "currentColor" }), hAsync("stop", { key: '7ce201ac86ae5cd291f8fba22f1e6517d53af025', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" }))), hAsync("g", { key: 'ea7e594df07f7d634fa2142785f0791b21a71d41', class: "pds-loader__spinner-path" }, hAsync("path", { key: '8ac8cead5078716ca9169150be8c0c64ecedc854', stroke: "url(#spinner-secondHalf)", d: "M 4 100 A 96 96 0 0 1 196 100" }), hAsync("path", { key: 'c4ed3d7f386ac59dcb540b369f52925b216ea950', stroke: "url(#spinner-firstHalf)", d: "M 196 100 A 96 96 0 0 1 4 100" }), hAsync("path", { key: 'ecc2e2b7240c23e35af8b9aa049ac45dff43ac9f', stroke: "currentColor", "stroke-linecap": "round", d: "M 4 100 A 96 96 0 0 1 4 98" }))))), this.variant === 'typing' && (hAsync("div", { key: '8cb7180432a6cca86c7fcc2af3f1e05afb751a9d', class: "pds-loader--typing" }, hAsync("span", { key: 'c09247cbcf86fef899f206bee1458a1388cbdd39' }), hAsync("span", { key: '07bdfe8ab1971fa20544022412e2141721111506' }), hAsync("span", { key: '9444f7ed6a13475694e1eda50b891ff63fb91297' }))), hAsync("div", { key: '3b717ff6b9f38f9710ca0556ebbc66bd86b7e1b6', class: `pds-loader__label ${this.showLabel ? '' : 'pds-loader--hidden'}` }, hAsync("slot", { key: 'ab65224fab189a30d0cf18caf086c621cbd78eaa', name: "label" }, "Loading..."))));
|
|
11379
11462
|
}
|
|
11380
11463
|
static get style() { return pdsLoaderCss; }
|
|
11381
11464
|
static get cmpMeta() { return {
|
|
@@ -11632,14 +11715,14 @@ class PdsModal {
|
|
|
11632
11715
|
return thisZIndex === maxZIndex;
|
|
11633
11716
|
}
|
|
11634
11717
|
render() {
|
|
11635
|
-
return (hAsync("dialog", { key: '
|
|
11718
|
+
return (hAsync("dialog", { key: 'cf2710a889d8f0e80a3551088ab38a88dc44ad1e', class: {
|
|
11636
11719
|
'pds-modal__backdrop': true,
|
|
11637
11720
|
'open': this.open
|
|
11638
|
-
}, "aria-modal": "true", "aria-labelledby": `${this.componentId}-heading`, onClick: this.handleBackdropClick }, hAsync("div", { key: '
|
|
11721
|
+
}, "aria-modal": "true", "aria-labelledby": `${this.componentId}-heading`, onClick: this.handleBackdropClick }, hAsync("div", { key: 'a06d017153e67ad38bc1ced56ba22aeade977aaf', class: {
|
|
11639
11722
|
'pds-modal': true,
|
|
11640
11723
|
[`pds-modal--${this.size}`]: true,
|
|
11641
11724
|
'pds-modal--scrollable': this.scrollable
|
|
11642
|
-
}, part: "modal" }, hAsync("slot", { key: '
|
|
11725
|
+
}, part: "modal" }, hAsync("slot", { key: 'd995c586809a4940c091912244a86cb4605a961c' }))));
|
|
11643
11726
|
}
|
|
11644
11727
|
get el() { return getElement(this); }
|
|
11645
11728
|
static get watchers() { return {
|
|
@@ -11842,10 +11925,10 @@ class PdsModalContent {
|
|
|
11842
11925
|
render() {
|
|
11843
11926
|
// Only apply max-height style if it's not 'none'
|
|
11844
11927
|
const styleObj = this.contentMaxHeight !== 'none' ? { maxHeight: this.contentMaxHeight } : {};
|
|
11845
|
-
return (hAsync(Host, { key: '
|
|
11928
|
+
return (hAsync(Host, { key: 'fae42c1fc151e4855cd2c731802c15851473be79' }, hAsync("div", { key: 'feb61d6a7227d8113b931df6280358cd9b4fe583', class: {
|
|
11846
11929
|
'pds-modal-content': true,
|
|
11847
11930
|
[`pds-modal-content--border-${this.border}`]: true
|
|
11848
|
-
}, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: '
|
|
11931
|
+
}, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: '1c9e55ecd1ad353699e5a4590ee04c9005719f6d' }))));
|
|
11849
11932
|
}
|
|
11850
11933
|
get el() { return getElement(this); }
|
|
11851
11934
|
static get style() { return pdsModalContentCss; }
|
|
@@ -11869,7 +11952,7 @@ class PdsModalFooter {
|
|
|
11869
11952
|
registerInstance(this, hostRef);
|
|
11870
11953
|
}
|
|
11871
11954
|
render() {
|
|
11872
|
-
return (hAsync("footer", { key: '
|
|
11955
|
+
return (hAsync("footer", { key: '0fa58ce225ce31a1f40d6ce1d3276e716b36de8d', class: "pds-modal__footer" }, hAsync("slot", { key: 'df0bbdb56c711c7eb34db7181f940de11d4449ef' })));
|
|
11873
11956
|
}
|
|
11874
11957
|
static get style() { return pdsModalFooterCss; }
|
|
11875
11958
|
static get cmpMeta() { return {
|
|
@@ -11889,7 +11972,7 @@ class PdsModalHeader {
|
|
|
11889
11972
|
registerInstance(this, hostRef);
|
|
11890
11973
|
}
|
|
11891
11974
|
render() {
|
|
11892
|
-
return (hAsync("header", { key: '
|
|
11975
|
+
return (hAsync("header", { key: '1a471bd6dfa2b654f5a6ebdf8fb5baef728324b3', class: "pds-modal__header" }, hAsync("slot", { key: '946a365ab3c2ca627d618188890d385c054b4c16' })));
|
|
11893
11976
|
}
|
|
11894
11977
|
static get style() { return pdsModalHeaderCss; }
|
|
11895
11978
|
static get cmpMeta() { return {
|
|
@@ -11902,12 +11985,14 @@ class PdsModalHeader {
|
|
|
11902
11985
|
}; }
|
|
11903
11986
|
}
|
|
11904
11987
|
|
|
11905
|
-
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 0.2s ease, -webkit-box-shadow 0.2s ease;transition:border-color 0.2s ease, -webkit-box-shadow 0.2s ease;transition:border-color 0.2s ease, box-shadow 0.2s ease;transition:border-color 0.2s ease, box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;width:100%}.pds-multiselect__trigger:hover:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-hover)}.pds-multiselect__trigger:focus:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-multiselect__trigger.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid{background-color:var(--pine-color-red-050);border-color:var(--pine-color-border-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid:focus{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-multiselect__trigger-text{color:var(--pine-color-text-strong);-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__trigger-text.pds-multiselect__trigger-text--placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__trigger--disabled .pds-multiselect__trigger-text{color:var(--pine-color-text-disabled)}.pds-multiselect__icon{color:var(--pine-color-icon);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__panel{background:var(--pine-color-background-container);border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute;z-index:var(--pine-z-index-raised)}.pds-multiselect__search{-ms-flex-align:center;align-items:center;-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-multiselect__search pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__search-input{background:transparent;border:var(--pine-dimension-none);color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);min-width:var(--pine-dimension-none);outline:none}.pds-multiselect__search-input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__selected-section{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);padding:var(--pine-dimension-xs)}.pds-multiselect__selected-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.pds-multiselect__selected-item{color:var(--pine-color-text-strong);font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);overflow:hidden;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__listbox{background:transparent;border:var(--pine-dimension-none);-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;margin:var(--pine-dimension-none);overflow-y:auto;padding:var(--pine-dimension-xs)}.pds-multiselect__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-xs);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);-webkit-transition:background 0.15s;transition:background 0.15s}.pds-multiselect__option pds-checkbox{pointer-events:none;width:100%}.pds-multiselect__option:hover,.pds-multiselect__option.pds-multiselect__option--highlighted{background:var(--pine-color-background-muted)}.pds-multiselect__option:focus-visible{outline:var(--pine-dimension-none)}.pds-multiselect__create-option{color:var(--pine-color-text-strong);width:100%}.pds-multiselect__create-option pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__empty,.pds-multiselect__loading{-ms-flex-align:center;align-items:center;color:var(--pine-color-text-muted);display:-ms-flexbox;display:flex;font:var(--pine-typography-body);-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-sm)}.pds-multiselect__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-xs)}.pds-multiselect__helper{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error{-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;font:var(--pine-typography-body-sm);gap:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error pds-icon{-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none);-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.visually-hidden{border:var(--pine-dimension-none);clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:var(--pine-dimension-none);position:absolute;white-space:nowrap;width:1px}";
|
|
11988
|
+
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 0.2s ease, -webkit-box-shadow 0.2s ease;transition:border-color 0.2s ease, -webkit-box-shadow 0.2s ease;transition:border-color 0.2s ease, box-shadow 0.2s ease;transition:border-color 0.2s ease, box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;width:100%}.pds-multiselect__trigger:hover:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-hover)}.pds-multiselect__trigger:focus:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-multiselect__trigger.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid{background-color:var(--pine-color-red-050);border-color:var(--pine-color-border-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid:focus{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-multiselect__trigger-text{color:var(--pine-color-text-strong);-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__trigger-text.pds-multiselect__trigger-text--placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__trigger--disabled .pds-multiselect__trigger-text{color:var(--pine-color-text-disabled)}.pds-multiselect__icon{color:var(--pine-color-icon);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__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-container);border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute;z-index:var(--pine-z-index-raised)}.pds-multiselect__search{-ms-flex-align:center;align-items:center;-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-multiselect__search pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__search-input{background:transparent;border:var(--pine-dimension-none);color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);min-width:var(--pine-dimension-none);outline:none}.pds-multiselect__search-input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__selected-section{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);padding:var(--pine-dimension-xs)}.pds-multiselect__selected-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.pds-multiselect__selected-item{color:var(--pine-color-text-strong);font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);overflow:hidden;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__listbox{background:transparent;border:var(--pine-dimension-none);-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;margin:var(--pine-dimension-none);overflow-y:auto;padding:var(--pine-dimension-xs)}.pds-multiselect__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}";
|
|
11906
11989
|
|
|
11907
11990
|
/**
|
|
11908
11991
|
* @slot (default) - Static option elements for the multiselect
|
|
11909
11992
|
* @slot empty - Custom empty state message when no options match
|
|
11910
11993
|
* @slot loading - Custom loading indicator
|
|
11994
|
+
* @part trigger - The trigger surface that opens the dropdown panel
|
|
11995
|
+
* @part pill-toggle - The chevron button inside the inline pill trigger
|
|
11911
11996
|
*/
|
|
11912
11997
|
class PdsMultiselect {
|
|
11913
11998
|
constructor(hostRef) {
|
|
@@ -11971,6 +12056,26 @@ class PdsMultiselect {
|
|
|
11971
12056
|
* Hides the selected items summary section in the dropdown panel.
|
|
11972
12057
|
*/
|
|
11973
12058
|
this.hideSelectedItems = false;
|
|
12059
|
+
/**
|
|
12060
|
+
* Display mode for selected items outside the dropdown panel.
|
|
12061
|
+
* `'count'` shows "N item(s)" text in the trigger (default). `'pill'` renders
|
|
12062
|
+
* selected items as dismissible pds-chip tags.
|
|
12063
|
+
* @default 'count'
|
|
12064
|
+
*/
|
|
12065
|
+
this.selectedDisplay = 'count';
|
|
12066
|
+
/**
|
|
12067
|
+
* Position of pill chips when `selectedDisplay` is `'pill'`.
|
|
12068
|
+
* `'inline'` places chips inside the trigger; `'below'` places chips in a
|
|
12069
|
+
* flex-wrap row directly below the trigger.
|
|
12070
|
+
* @default 'inline'
|
|
12071
|
+
*/
|
|
12072
|
+
this.pillPosition = 'inline';
|
|
12073
|
+
/**
|
|
12074
|
+
* Maximum chips shown inline before collapsing to a "+N more" badge.
|
|
12075
|
+
* Only applies when `selectedDisplay='pill'` and `pillPosition='inline'`.
|
|
12076
|
+
* @default 3
|
|
12077
|
+
*/
|
|
12078
|
+
this.maxInlinePills = 3;
|
|
11974
12079
|
/**
|
|
11975
12080
|
* If true, the multiselect is required.
|
|
11976
12081
|
*/
|
|
@@ -11992,6 +12097,7 @@ class PdsMultiselect {
|
|
|
11992
12097
|
this.currentPage = 1;
|
|
11993
12098
|
this.hasMore = false;
|
|
11994
12099
|
this.creating = false;
|
|
12100
|
+
this.removalAnnouncement = '';
|
|
11995
12101
|
// Flag to prevent focusout from closing during open transition
|
|
11996
12102
|
this.isOpening = false;
|
|
11997
12103
|
// Flag to suppress dismiss event when panel closes due to selection (not user dismissal)
|
|
@@ -12000,9 +12106,16 @@ class PdsMultiselect {
|
|
|
12000
12106
|
this.initialAsyncFetchTriggered = false;
|
|
12001
12107
|
// Flag to track if value changed during loading and needs resolution after fetch completes
|
|
12002
12108
|
this.pendingUnresolvedFetch = false;
|
|
12003
|
-
this.handleTriggerClick = () => {
|
|
12109
|
+
this.handleTriggerClick = (e) => {
|
|
12004
12110
|
if (this.disabled)
|
|
12005
12111
|
return;
|
|
12112
|
+
// In inline-pill mode, ignore clicks that originated inside a pds-chip.
|
|
12113
|
+
// Chip close-button clicks are handled by handlePillRemove; chip body clicks should not toggle the panel.
|
|
12114
|
+
if (e && this.selectedDisplay === 'pill' && this.pillPosition === 'inline') {
|
|
12115
|
+
const fromChip = e.composedPath().some(el => { var _a; return ((_a = el.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'pds-chip'; });
|
|
12116
|
+
if (fromChip)
|
|
12117
|
+
return;
|
|
12118
|
+
}
|
|
12006
12119
|
if (this.isOpen) {
|
|
12007
12120
|
this.closeDropdown();
|
|
12008
12121
|
}
|
|
@@ -12011,6 +12124,10 @@ class PdsMultiselect {
|
|
|
12011
12124
|
}
|
|
12012
12125
|
};
|
|
12013
12126
|
this.handleTriggerKeyDown = (e) => {
|
|
12127
|
+
// Ignore keydown events that bubbled from child elements (e.g. chip close buttons).
|
|
12128
|
+
// Only handle keys when the trigger itself is the event target.
|
|
12129
|
+
if (e.target !== this.triggerEl)
|
|
12130
|
+
return;
|
|
12014
12131
|
switch (e.key) {
|
|
12015
12132
|
case 'ArrowDown':
|
|
12016
12133
|
case 'ArrowUp':
|
|
@@ -12035,18 +12152,35 @@ class PdsMultiselect {
|
|
|
12035
12152
|
}
|
|
12036
12153
|
};
|
|
12037
12154
|
this.handleSearchInputKeyDown = (e) => {
|
|
12155
|
+
var _a, _b, _c;
|
|
12038
12156
|
const filteredOptions = this.getFilteredOptions();
|
|
12039
12157
|
switch (e.key) {
|
|
12040
|
-
case 'ArrowDown':
|
|
12158
|
+
case 'ArrowDown': {
|
|
12041
12159
|
e.preventDefault();
|
|
12042
|
-
|
|
12043
|
-
|
|
12160
|
+
let nextIndex = this.highlightedIndex + 1;
|
|
12161
|
+
while (nextIndex < filteredOptions.length && ((_a = filteredOptions[nextIndex]) === null || _a === void 0 ? void 0 : _a.disabled)) {
|
|
12162
|
+
nextIndex++;
|
|
12163
|
+
}
|
|
12164
|
+
if (nextIndex < filteredOptions.length) {
|
|
12165
|
+
this.highlightedIndex = nextIndex;
|
|
12166
|
+
this.scrollOptionIntoView();
|
|
12167
|
+
}
|
|
12044
12168
|
break;
|
|
12045
|
-
|
|
12169
|
+
}
|
|
12170
|
+
case 'ArrowUp': {
|
|
12046
12171
|
e.preventDefault();
|
|
12047
|
-
|
|
12048
|
-
|
|
12172
|
+
// Clamp to 0 so ArrowUp from uninitialised state (-1) attempts the first option;
|
|
12173
|
+
// stays at -1 if that option is disabled.
|
|
12174
|
+
let prevIndex = Math.max(this.highlightedIndex - 1, 0);
|
|
12175
|
+
while (prevIndex > 0 && ((_b = filteredOptions[prevIndex]) === null || _b === void 0 ? void 0 : _b.disabled)) {
|
|
12176
|
+
prevIndex--;
|
|
12177
|
+
}
|
|
12178
|
+
if (!((_c = filteredOptions[prevIndex]) === null || _c === void 0 ? void 0 : _c.disabled)) {
|
|
12179
|
+
this.highlightedIndex = prevIndex;
|
|
12180
|
+
this.scrollOptionIntoView();
|
|
12181
|
+
}
|
|
12049
12182
|
break;
|
|
12183
|
+
}
|
|
12050
12184
|
case 'Enter':
|
|
12051
12185
|
e.preventDefault();
|
|
12052
12186
|
if (this.highlightedIndex >= 0) {
|
|
@@ -12086,7 +12220,9 @@ class PdsMultiselect {
|
|
|
12086
12220
|
e.preventDefault(); // Prevent focus change
|
|
12087
12221
|
this.toggleOption(option);
|
|
12088
12222
|
};
|
|
12089
|
-
this.handleOptionMouseEnter = (index) => () => {
|
|
12223
|
+
this.handleOptionMouseEnter = (index, option) => () => {
|
|
12224
|
+
if (option.disabled)
|
|
12225
|
+
return;
|
|
12090
12226
|
this.highlightedIndex = index;
|
|
12091
12227
|
};
|
|
12092
12228
|
this.handleScroll = (e) => {
|
|
@@ -12103,6 +12239,26 @@ class PdsMultiselect {
|
|
|
12103
12239
|
this.debouncedFetchAsyncOptions(this.searchQuery, this.currentPage + 1);
|
|
12104
12240
|
}
|
|
12105
12241
|
};
|
|
12242
|
+
this.handlePillRemove = (item) => () => {
|
|
12243
|
+
var _a, _b;
|
|
12244
|
+
if (this.disabled)
|
|
12245
|
+
return;
|
|
12246
|
+
const optionId = String(item.id);
|
|
12247
|
+
this.value = this.value.filter(v => v !== optionId);
|
|
12248
|
+
this.syncSelectedItems();
|
|
12249
|
+
this.pdsMultiselectChange.emit({ values: this.value, items: this.selectedItems });
|
|
12250
|
+
// Clear first so screen readers re-announce even when the same item is removed twice
|
|
12251
|
+
this.removalAnnouncement = '';
|
|
12252
|
+
queueMicrotask(() => { this.removalAnnouncement = `${item.text} removed`; });
|
|
12253
|
+
this.isClosingViaSelection = true;
|
|
12254
|
+
if (this.isOpen) {
|
|
12255
|
+
(_a = this.searchInputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
12256
|
+
}
|
|
12257
|
+
else {
|
|
12258
|
+
(_b = this.triggerEl) === null || _b === void 0 ? void 0 : _b.focus();
|
|
12259
|
+
}
|
|
12260
|
+
setTimeout(() => { this.isClosingViaSelection = false; }, 0);
|
|
12261
|
+
};
|
|
12106
12262
|
}
|
|
12107
12263
|
connectedCallback() {
|
|
12108
12264
|
// Initialize ElementInternals for form association (only once per element instance)
|
|
@@ -12249,12 +12405,35 @@ class PdsMultiselect {
|
|
|
12249
12405
|
const slot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot:not([name])');
|
|
12250
12406
|
if (!slot)
|
|
12251
12407
|
return;
|
|
12252
|
-
const options =
|
|
12253
|
-
|
|
12254
|
-
|
|
12255
|
-
|
|
12256
|
-
|
|
12257
|
-
|
|
12408
|
+
const options = [];
|
|
12409
|
+
slot.assignedElements({ flatten: true }).forEach(el => {
|
|
12410
|
+
var _a;
|
|
12411
|
+
if (el.tagName === 'OPTGROUP') {
|
|
12412
|
+
const optgroup = el;
|
|
12413
|
+
const groupLabel = optgroup.label;
|
|
12414
|
+
const groupDisabled = optgroup.disabled;
|
|
12415
|
+
optgroup.querySelectorAll('option').forEach((opt) => {
|
|
12416
|
+
var _a;
|
|
12417
|
+
const option = {
|
|
12418
|
+
id: opt.value,
|
|
12419
|
+
text: ((_a = opt.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || opt.value,
|
|
12420
|
+
disabled: opt.disabled || groupDisabled || undefined,
|
|
12421
|
+
};
|
|
12422
|
+
if (groupLabel) {
|
|
12423
|
+
option.group = groupLabel;
|
|
12424
|
+
}
|
|
12425
|
+
options.push(option);
|
|
12426
|
+
});
|
|
12427
|
+
}
|
|
12428
|
+
else if (el.tagName === 'OPTION') {
|
|
12429
|
+
const opt = el;
|
|
12430
|
+
options.push({
|
|
12431
|
+
id: opt.value,
|
|
12432
|
+
text: ((_a = opt.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || opt.value,
|
|
12433
|
+
disabled: opt.disabled || undefined,
|
|
12434
|
+
});
|
|
12435
|
+
}
|
|
12436
|
+
});
|
|
12258
12437
|
// Only update if we actually found options AND we're not using async/external options
|
|
12259
12438
|
// Don't clear internalOptions if slot returns empty (might be mid-DOM-update)
|
|
12260
12439
|
if (options.length > 0 && !this.asyncUrl && !this.options) {
|
|
@@ -12355,6 +12534,8 @@ class PdsMultiselect {
|
|
|
12355
12534
|
}
|
|
12356
12535
|
updateFormValue() {
|
|
12357
12536
|
var _a;
|
|
12537
|
+
if (isSpecTest())
|
|
12538
|
+
return;
|
|
12358
12539
|
if ((_a = this.internals) === null || _a === void 0 ? void 0 : _a.setFormValue) {
|
|
12359
12540
|
// Ensure value is an array before iterating
|
|
12360
12541
|
const valueArray = this.ensureValueArray();
|
|
@@ -12583,7 +12764,9 @@ class PdsMultiselect {
|
|
|
12583
12764
|
positionDropdown() {
|
|
12584
12765
|
if (!this.containerEl || !this.panelEl)
|
|
12585
12766
|
return;
|
|
12586
|
-
|
|
12767
|
+
// In inline pill mode, triggerEl is the small chevron button — use the full-width
|
|
12768
|
+
// wrapper div as the Floating UI reference so the panel aligns with the whole trigger.
|
|
12769
|
+
const referenceEl = this.pillInlineTriggerEl || this.triggerEl || this.containerEl;
|
|
12587
12770
|
const { minWidth, panelWidth } = this;
|
|
12588
12771
|
const updatePosition = () => {
|
|
12589
12772
|
computePosition(referenceEl, this.panelEl, {
|
|
@@ -12627,6 +12810,8 @@ class PdsMultiselect {
|
|
|
12627
12810
|
}
|
|
12628
12811
|
toggleOption(option) {
|
|
12629
12812
|
var _a, _b;
|
|
12813
|
+
if (option.disabled)
|
|
12814
|
+
return;
|
|
12630
12815
|
// Handle create option
|
|
12631
12816
|
if (option.isCreateOption) {
|
|
12632
12817
|
// Prevent multiple create calls while one is in-flight
|
|
@@ -12669,6 +12854,40 @@ class PdsMultiselect {
|
|
|
12669
12854
|
// For keyboard navigation - toggle the option
|
|
12670
12855
|
this.toggleOption(option);
|
|
12671
12856
|
}
|
|
12857
|
+
getGroupedRenderItems(filteredOptions) {
|
|
12858
|
+
const items = [];
|
|
12859
|
+
let currentGroup = null;
|
|
12860
|
+
filteredOptions.forEach((option, index) => {
|
|
12861
|
+
const group = option.group;
|
|
12862
|
+
if (group !== undefined) {
|
|
12863
|
+
if (!currentGroup || currentGroup.group !== group) {
|
|
12864
|
+
currentGroup = { type: 'group', group, options: [] };
|
|
12865
|
+
items.push(currentGroup);
|
|
12866
|
+
}
|
|
12867
|
+
currentGroup.options.push({ option, index });
|
|
12868
|
+
}
|
|
12869
|
+
else {
|
|
12870
|
+
currentGroup = null;
|
|
12871
|
+
items.push({ type: 'option', option, index });
|
|
12872
|
+
}
|
|
12873
|
+
});
|
|
12874
|
+
return items;
|
|
12875
|
+
}
|
|
12876
|
+
renderOption(option, index, valueArray) {
|
|
12877
|
+
const isSelected = valueArray.includes(String(option.id));
|
|
12878
|
+
const isCreateOption = option.isCreateOption;
|
|
12879
|
+
const isDisabled = option.disabled;
|
|
12880
|
+
const isHighlighted = index === this.highlightedIndex && !isCreateOption;
|
|
12881
|
+
const optionId = `${this.componentId}-option-${index}`;
|
|
12882
|
+
const isCreateDisabled = isCreateOption && this.creating;
|
|
12883
|
+
return (hAsync("li", { key: String(option.id), id: optionId, class: {
|
|
12884
|
+
'pds-multiselect__option': true,
|
|
12885
|
+
'pds-multiselect__option--highlighted': isHighlighted,
|
|
12886
|
+
'pds-multiselect__option--selected': isSelected,
|
|
12887
|
+
'pds-multiselect__option--create': isCreateOption,
|
|
12888
|
+
'pds-multiselect__option--disabled': isDisabled || isCreateDisabled,
|
|
12889
|
+
}, 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 ? (hAsync("pds-box", { class: "pds-multiselect__create-option", "align-items": "center", gap: "xs" }, hAsync("pds-icon", { name: "add", size: "small" }), hAsync("pds-text", null, "Add \"", option.text, "\""))) : (hAsync("pds-checkbox", { componentId: `${this.componentId}-checkbox-${index}`, checked: isSelected, label: option.text, disabled: isDisabled, style: { pointerEvents: 'none' } }))));
|
|
12890
|
+
}
|
|
12672
12891
|
renderSelectedItemsList() {
|
|
12673
12892
|
if (this.hideSelectedItems || this.selectedItems.length === 0)
|
|
12674
12893
|
return null;
|
|
@@ -12681,43 +12900,58 @@ class PdsMultiselect {
|
|
|
12681
12900
|
const valueArray = this.ensureValueArray();
|
|
12682
12901
|
const hasSlottedEmpty = !!this.el.querySelector('[slot="empty"]');
|
|
12683
12902
|
const hasSlottedLoading = !!this.el.querySelector('[slot="loading"]');
|
|
12684
|
-
return (hAsync("div", { class: "pds-multiselect__panel", ref: el => (this.panelEl = el), style: { minWidth: this.minWidth } }, hAsync("div", { class: "pds-multiselect__search" }, hAsync("pds-icon", { name: "search", size: "small" }), hAsync("input", { ref: el => (this.searchInputEl = el), type: "text", class: "pds-multiselect__search-input", placeholder: 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(), hAsync("ul", { class: "pds-multiselect__listbox", role: "listbox", "aria-multiselectable": "true", "aria-label": this.label || 'Options', id: `${this.componentId}-listbox`, ref: el => (this.listboxEl = el), style: { maxHeight: this.maxHeight }, onScroll: this.handleScroll }, this.loading && (hAsync("li", { class: "pds-multiselect__loading", role: "presentation" }, hasSlottedLoading ? (hAsync("slot", { name: "loading" })) : (hAsync("pds-loader", { size: "small" })))), !this.loading && filteredOptions.length === 0 && (hAsync("li", { class: "pds-multiselect__empty", role: "presentation" }, hasSlottedEmpty ? (hAsync("slot", { name: "empty" })) : (hAsync("span", null, "No options found")))), filteredOptions.map((
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
const isCreateDisabled = isCreateOption && this.creating;
|
|
12690
|
-
return (hAsync("li", { key: String(option.id), id: optionId, class: {
|
|
12691
|
-
'pds-multiselect__option': true,
|
|
12692
|
-
'pds-multiselect__option--highlighted': isHighlighted,
|
|
12693
|
-
'pds-multiselect__option--selected': isSelected,
|
|
12694
|
-
'pds-multiselect__option--create': isCreateOption,
|
|
12695
|
-
'pds-multiselect__option--disabled': isCreateDisabled,
|
|
12696
|
-
}, role: "option", "aria-selected": isSelected ? 'true' : 'false', "aria-disabled": isCreateDisabled ? 'true' : undefined, "aria-label": isCreateOption ? `Create new tag: ${option.text}` : undefined, "data-index": index, onMouseDown: this.handleOptionMouseDown(option), onMouseEnter: this.handleOptionMouseEnter(index) }, isCreateOption ? (hAsync("pds-box", { class: "pds-multiselect__create-option", "align-items": "center", gap: "xs" }, hAsync("pds-icon", { name: "add", size: "small" }), hAsync("pds-text", null, "Add \"", option.text, "\""))) : (hAsync("pds-checkbox", { componentId: `${this.componentId}-checkbox-${index}`, checked: isSelected, label: option.text, style: { pointerEvents: 'none' } }))));
|
|
12903
|
+
return (hAsync("div", { class: "pds-multiselect__panel", ref: el => (this.panelEl = el), style: { minWidth: this.minWidth } }, hAsync("div", { class: "pds-multiselect__search" }, hAsync("pds-icon", { name: "search", size: "small" }), hAsync("input", { ref: el => (this.searchInputEl = el), type: "text", class: "pds-multiselect__search-input", placeholder: 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(), hAsync("ul", { class: "pds-multiselect__listbox", role: "listbox", "aria-multiselectable": "true", "aria-label": this.label || 'Options', id: `${this.componentId}-listbox`, ref: el => (this.listboxEl = el), style: { maxHeight: this.maxHeight }, onScroll: this.handleScroll }, this.loading && (hAsync("li", { class: "pds-multiselect__loading", role: "presentation" }, hasSlottedLoading ? (hAsync("slot", { name: "loading" })) : (hAsync("pds-loader", { size: "small" })))), !this.loading && filteredOptions.length === 0 && (hAsync("li", { class: "pds-multiselect__empty", role: "presentation" }, hasSlottedEmpty ? (hAsync("slot", { name: "empty" })) : (hAsync("span", null, "No options found")))), this.getGroupedRenderItems(filteredOptions).map((item, itemIndex) => {
|
|
12904
|
+
if (item.type === 'group') {
|
|
12905
|
+
return (hAsync("li", { key: `group-${itemIndex}`, role: "group", "aria-label": item.group, class: "pds-multiselect__group" }, hAsync("span", { class: "pds-multiselect__group-header", "aria-hidden": "true" }, item.group), hAsync("ul", { class: "pds-multiselect__group-list", role: "presentation" }, item.options.map(({ option, index }) => this.renderOption(option, index, valueArray)))));
|
|
12906
|
+
}
|
|
12907
|
+
return this.renderOption(item.option, item.index, valueArray);
|
|
12697
12908
|
}), this.hasMore && !this.loading && (hAsync("li", { class: "pds-multiselect__load-more", role: "presentation" }, hAsync("pds-loader", { size: "small" }))))));
|
|
12698
12909
|
}
|
|
12910
|
+
renderInlinePills() {
|
|
12911
|
+
const hasSelections = this.selectedItems.length > 0;
|
|
12912
|
+
if (!hasSelections) {
|
|
12913
|
+
return (hAsync("span", { class: "pds-multiselect__trigger-text pds-multiselect__trigger-text--placeholder" }, this.placeholder || 'Select...'));
|
|
12914
|
+
}
|
|
12915
|
+
const variant = this.disabled ? 'text' : 'tag';
|
|
12916
|
+
const visibleItems = this.selectedItems.slice(0, Math.max(1, this.maxInlinePills));
|
|
12917
|
+
const overflowCount = this.selectedItems.length - visibleItems.length;
|
|
12918
|
+
return (hAsync("div", { class: "pds-multiselect__pill-list pds-multiselect__pill-list--inline", "aria-label": "Selected items" }, visibleItems.map(item => (hAsync("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 && (hAsync("span", { class: "pds-multiselect__pill-overflow" }, "+", overflowCount))));
|
|
12919
|
+
}
|
|
12920
|
+
renderBelowPills() {
|
|
12921
|
+
if (this.selectedItems.length === 0)
|
|
12922
|
+
return null;
|
|
12923
|
+
const variant = this.disabled ? 'text' : 'tag';
|
|
12924
|
+
return (hAsync("div", { class: "pds-multiselect__pill-list pds-multiselect__pill-list--below", "aria-label": "Selected items" }, this.selectedItems.map(item => (hAsync("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)))));
|
|
12925
|
+
}
|
|
12699
12926
|
getTriggerText() {
|
|
12700
12927
|
const count = this.selectedItems.length;
|
|
12701
|
-
if (count === 0) {
|
|
12928
|
+
if (count === 0 || (this.selectedDisplay === 'pill' && this.pillPosition === 'below')) {
|
|
12702
12929
|
return this.placeholder || 'Select...';
|
|
12703
12930
|
}
|
|
12704
12931
|
return `${count} item${count === 1 ? '' : 's'}`;
|
|
12705
12932
|
}
|
|
12706
12933
|
render() {
|
|
12707
12934
|
const hasSelections = this.selectedItems.length > 0;
|
|
12708
|
-
return (hAsync(Host, { key: '
|
|
12935
|
+
return (hAsync(Host, { key: '086b6d2d199b35110e64ba1da3c12f1a81360581', "aria-disabled": this.disabled ? 'true' : null }, hAsync("div", { key: 'c2faf217a97de056a9111a78e7077025e4ab5ee1', class: "pds-multiselect", onFocusout: this.handleContainerFocusOut }, this.label && (hAsync("label", { key: '0aff86a3a0054aef256bac5c0204dd914a9bd3ae', id: `${this.componentId}-label`, htmlFor: this.componentId, class: {
|
|
12709
12936
|
'pds-multiselect__label': true,
|
|
12710
12937
|
'visually-hidden': this.hideLabel,
|
|
12711
|
-
} }, this.label)), hAsync("div", { key: '
|
|
12938
|
+
} }, this.label)), hAsync("div", { key: '3b92119871dc32bb3c9a559be816bdece2fc30a6', class: "pds-multiselect__wrapper", ref: el => (this.containerEl = el), style: { width: this.triggerWidth } }, this.selectedDisplay === 'pill' && this.pillPosition === 'inline' ? (hAsync("div", { ref: el => (this.pillInlineTriggerEl = el || undefined), part: "trigger", class: {
|
|
12939
|
+
'pds-multiselect__trigger': true,
|
|
12940
|
+
'pds-multiselect__trigger--open': this.isOpen,
|
|
12941
|
+
'pds-multiselect__trigger--disabled': this.disabled,
|
|
12942
|
+
'pds-multiselect__trigger--invalid': this.invalid || !!this.errorMessage,
|
|
12943
|
+
'pds-multiselect__trigger--has-value': hasSelections,
|
|
12944
|
+
'pds-multiselect__trigger--pill-inline': true,
|
|
12945
|
+
}, onClick: this.handleTriggerClick }, this.renderInlinePills(), hAsync("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 }, hAsync("pds-icon", { class: "pds-multiselect__icon", icon: enlarge })))) : (hAsync("button", { ref: el => (this.triggerEl = el), type: "button", part: "trigger", class: {
|
|
12712
12946
|
'pds-multiselect__trigger': true,
|
|
12713
12947
|
'pds-multiselect__trigger--open': this.isOpen,
|
|
12714
12948
|
'pds-multiselect__trigger--disabled': this.disabled,
|
|
12715
12949
|
'pds-multiselect__trigger--invalid': this.invalid || !!this.errorMessage,
|
|
12716
12950
|
'pds-multiselect__trigger--has-value': hasSelections,
|
|
12717
|
-
}, id: this.componentId, disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-describedby": assignDescription(this.componentId, this.invalid || !!this.errorMessage, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid || !!this.errorMessage ? 'true' : undefined, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hAsync("span", {
|
|
12951
|
+
}, id: this.componentId, disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-describedby": assignDescription(this.componentId, this.invalid || !!this.errorMessage, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid || !!this.errorMessage ? 'true' : undefined, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hAsync("span", { class: {
|
|
12718
12952
|
'pds-multiselect__trigger-text': true,
|
|
12719
|
-
'pds-multiselect__trigger-text--placeholder': !hasSelections,
|
|
12720
|
-
} }, this.getTriggerText()), hAsync("pds-icon", {
|
|
12953
|
+
'pds-multiselect__trigger-text--placeholder': !hasSelections || (this.selectedDisplay === 'pill' && this.pillPosition === 'below'),
|
|
12954
|
+
} }, this.getTriggerText()), hAsync("pds-icon", { class: "pds-multiselect__icon", icon: enlarge }))), this.renderDropdown()), this.selectedDisplay === 'pill' && this.pillPosition === 'below' && this.renderBelowPills(), hAsync("span", { key: '07d6a6bf9ccc2fe8bfcf9502a1cd4b7abf5c5e6f', class: "visually-hidden", "aria-live": "polite", "aria-atomic": "true" }, this.removalAnnouncement), this.helperMessage && !(this.errorMessage && this.errorMessage.length > 0) && (hAsync("p", { key: 'a94bb6f31805d31ec3cd5b5f2ca8b1984f4d41d1', class: "pds-multiselect__helper", id: messageId(this.componentId, 'helper') }, this.helperMessage)), this.errorMessage && (hAsync("p", { key: '15afc6b9313e1fe22bd56b00eee1ebcf9e085c2e', class: "pds-multiselect__error", id: messageId(this.componentId, 'error') }, hAsync("pds-icon", { key: '452814577b14ca8f891b101903bd1a7a7e5d8bb1', icon: danger, size: "small" }), this.errorMessage)), hAsync("div", { key: 'd8ce787886e666303759cd2654c78b44269a40ff', style: { display: 'none' } }, hAsync("slot", { key: '8295376fb03b23d44c5baeca9bc967514e433e0f' })))));
|
|
12721
12955
|
}
|
|
12722
12956
|
static get formAssociated() { return true; }
|
|
12723
12957
|
get el() { return getElement(this); }
|
|
@@ -12751,6 +12985,9 @@ class PdsMultiselect {
|
|
|
12751
12985
|
"panelWidth": [1, "panel-width"],
|
|
12752
12986
|
"hideLabel": [4, "hide-label"],
|
|
12753
12987
|
"hideSelectedItems": [4, "hide-selected-items"],
|
|
12988
|
+
"selectedDisplay": [1, "selected-display"],
|
|
12989
|
+
"pillPosition": [1, "pill-position"],
|
|
12990
|
+
"maxInlinePills": [2, "max-inline-pills"],
|
|
12754
12991
|
"errorMessage": [1, "error-message"],
|
|
12755
12992
|
"helperMessage": [1, "helper-message"],
|
|
12756
12993
|
"invalid": [4],
|
|
@@ -12769,6 +13006,7 @@ class PdsMultiselect {
|
|
|
12769
13006
|
"currentPage": [32],
|
|
12770
13007
|
"hasMore": [32],
|
|
12771
13008
|
"creating": [32],
|
|
13009
|
+
"removalAnnouncement": [32],
|
|
12772
13010
|
"setFocus": [64],
|
|
12773
13011
|
"clear": [64]
|
|
12774
13012
|
},
|
|
@@ -13991,6 +14229,8 @@ class PdsSelect {
|
|
|
13991
14229
|
* Updates the form value using ElementInternals API
|
|
13992
14230
|
*/
|
|
13993
14231
|
updateFormValue() {
|
|
14232
|
+
if (isSpecTest())
|
|
14233
|
+
return;
|
|
13994
14234
|
if (this.internals && this.internals.setFormValue) {
|
|
13995
14235
|
const value = this.value;
|
|
13996
14236
|
// Handle multi-select arrays by converting to FormData or comma-separated string
|
|
@@ -14051,7 +14291,7 @@ class PdsSelect {
|
|
|
14051
14291
|
}
|
|
14052
14292
|
render() {
|
|
14053
14293
|
const hasAction = this.el.querySelector('[slot="action"]') !== null;
|
|
14054
|
-
return (hAsync(Host, { key: '
|
|
14294
|
+
return (hAsync(Host, { key: '28292440973cbb60c63a296415a617e05fc9c5ce', "aria-disabled": this.disabled ? 'true' : null, class: this.classNames(), "has-action": hasAction && !this.hideLabel ? 'true' : null }, hAsync("div", { key: '4a0f255ecc75c9fcedfc933c0a728d26918d9a9c', class: "pds-select" }, !this.hideLabel && (hAsync("div", { key: '1f0b2a9ccf4ce2b79d5bb4dd40ff076b415bc6ac', class: "pds-select__label-wrapper" }, hAsync("label", { key: '9e30b1b0266981f73f0821c05e833cb66a3caf3c', htmlFor: this.componentId }, hAsync("span", { key: '7790be41907be6c5e3b460aa84b7ea54773cc14d', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), hasAction && this.renderAction())), hAsync("select", { key: 'd66b39ee412bfbf3c6dfff722cb061f24ba82df6', "aria-label": this.hideLabel ? this.label : undefined, autocomplete: this.autocomplete || undefined, class: "pds-select__field", disabled: this.disabled, id: this.componentId, multiple: this.multiple, name: this.name, onBlur: this.onBlur, onChange: this.onSelectUpdate, onFocus: this.onFocus, onKeyDown: this.onKeyDown, part: "select", required: this.required, ref: (el) => (this.selectEl = el) }), hAsync("div", { key: 'daf4846494666ebade54249c8d925423e71e7d33', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, hAsync("slot", { key: '545f421fd2679d4bb6ee34658f7dd4089ece4f81', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && hAsync("pds-icon", { key: '0b3bcd3ceee6e6b2ab24b52f16f6cbd89ae88322', class: "pds-select__select-icon", icon: enlarge }))));
|
|
14055
14295
|
}
|
|
14056
14296
|
static get formAssociated() { return true; }
|
|
14057
14297
|
get el() { return getElement(this); }
|
|
@@ -14085,111 +14325,94 @@ class PdsSelect {
|
|
|
14085
14325
|
}
|
|
14086
14326
|
|
|
14087
14327
|
/**!
|
|
14088
|
-
* Sortable 1.15.
|
|
14328
|
+
* Sortable 1.15.7
|
|
14089
14329
|
* @author RubaXa <trash@rubaxa.org>
|
|
14090
14330
|
* @author owenm <owen23355@gmail.com>
|
|
14091
14331
|
* @license MIT
|
|
14092
14332
|
*/
|
|
14093
|
-
function
|
|
14094
|
-
|
|
14095
|
-
|
|
14096
|
-
|
|
14097
|
-
|
|
14098
|
-
|
|
14099
|
-
|
|
14100
|
-
});
|
|
14101
|
-
}
|
|
14102
|
-
keys.push.apply(keys, symbols);
|
|
14103
|
-
}
|
|
14104
|
-
return keys;
|
|
14333
|
+
function _defineProperty(e, r, t) {
|
|
14334
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
14335
|
+
value: t,
|
|
14336
|
+
enumerable: true,
|
|
14337
|
+
configurable: true,
|
|
14338
|
+
writable: true
|
|
14339
|
+
}) : e[r] = t, e;
|
|
14105
14340
|
}
|
|
14106
|
-
function
|
|
14107
|
-
|
|
14108
|
-
var
|
|
14109
|
-
|
|
14110
|
-
|
|
14111
|
-
_defineProperty(target, key, source[key]);
|
|
14112
|
-
});
|
|
14113
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
14114
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14115
|
-
} else {
|
|
14116
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
14117
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14118
|
-
});
|
|
14341
|
+
function _extends() {
|
|
14342
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
14343
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
14344
|
+
var t = arguments[e];
|
|
14345
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
14119
14346
|
}
|
|
14347
|
+
return n;
|
|
14348
|
+
}, _extends.apply(null, arguments);
|
|
14349
|
+
}
|
|
14350
|
+
function ownKeys(e, r) {
|
|
14351
|
+
var t = Object.keys(e);
|
|
14352
|
+
if (Object.getOwnPropertySymbols) {
|
|
14353
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
14354
|
+
r && (o = o.filter(function (r) {
|
|
14355
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
14356
|
+
})), t.push.apply(t, o);
|
|
14357
|
+
}
|
|
14358
|
+
return t;
|
|
14359
|
+
}
|
|
14360
|
+
function _objectSpread2(e) {
|
|
14361
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
14362
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
14363
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
14364
|
+
_defineProperty(e, r, t[r]);
|
|
14365
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
14366
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
14367
|
+
});
|
|
14120
14368
|
}
|
|
14121
|
-
return
|
|
14369
|
+
return e;
|
|
14122
14370
|
}
|
|
14123
|
-
function
|
|
14124
|
-
|
|
14125
|
-
|
|
14126
|
-
|
|
14127
|
-
|
|
14128
|
-
|
|
14129
|
-
|
|
14130
|
-
|
|
14131
|
-
_typeof = function (obj) {
|
|
14132
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
14133
|
-
};
|
|
14371
|
+
function _objectWithoutProperties(e, t) {
|
|
14372
|
+
if (null == e) return {};
|
|
14373
|
+
var o,
|
|
14374
|
+
r,
|
|
14375
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
14376
|
+
if (Object.getOwnPropertySymbols) {
|
|
14377
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
14378
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
14134
14379
|
}
|
|
14135
|
-
return
|
|
14380
|
+
return i;
|
|
14136
14381
|
}
|
|
14137
|
-
function
|
|
14138
|
-
if (
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
writable: true
|
|
14144
|
-
});
|
|
14145
|
-
} else {
|
|
14146
|
-
obj[key] = value;
|
|
14382
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
14383
|
+
if (null == r) return {};
|
|
14384
|
+
var t = {};
|
|
14385
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
14386
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
14387
|
+
t[n] = r[n];
|
|
14147
14388
|
}
|
|
14148
|
-
return
|
|
14389
|
+
return t;
|
|
14149
14390
|
}
|
|
14150
|
-
function
|
|
14151
|
-
|
|
14152
|
-
|
|
14153
|
-
|
|
14154
|
-
|
|
14155
|
-
|
|
14156
|
-
|
|
14157
|
-
}
|
|
14158
|
-
}
|
|
14159
|
-
}
|
|
14160
|
-
return target;
|
|
14161
|
-
};
|
|
14162
|
-
return _extends.apply(this, arguments);
|
|
14163
|
-
}
|
|
14164
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
14165
|
-
if (source == null) return {};
|
|
14166
|
-
var target = {};
|
|
14167
|
-
var sourceKeys = Object.keys(source);
|
|
14168
|
-
var key, i;
|
|
14169
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
14170
|
-
key = sourceKeys[i];
|
|
14171
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
14172
|
-
target[key] = source[key];
|
|
14173
|
-
}
|
|
14174
|
-
return target;
|
|
14175
|
-
}
|
|
14176
|
-
function _objectWithoutProperties(source, excluded) {
|
|
14177
|
-
if (source == null) return {};
|
|
14178
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
14179
|
-
var key, i;
|
|
14180
|
-
if (Object.getOwnPropertySymbols) {
|
|
14181
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
14182
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
14183
|
-
key = sourceSymbolKeys[i];
|
|
14184
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
14185
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
14186
|
-
target[key] = source[key];
|
|
14187
|
-
}
|
|
14391
|
+
function _toPrimitive(t, r) {
|
|
14392
|
+
if ("object" != typeof t || !t) return t;
|
|
14393
|
+
var e = t[Symbol.toPrimitive];
|
|
14394
|
+
if (void 0 !== e) {
|
|
14395
|
+
var i = e.call(t, r);
|
|
14396
|
+
if ("object" != typeof i) return i;
|
|
14397
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
14188
14398
|
}
|
|
14189
|
-
return
|
|
14399
|
+
return ("string" === r ? String : Number)(t);
|
|
14400
|
+
}
|
|
14401
|
+
function _toPropertyKey(t) {
|
|
14402
|
+
var i = _toPrimitive(t, "string");
|
|
14403
|
+
return "symbol" == typeof i ? i : i + "";
|
|
14404
|
+
}
|
|
14405
|
+
function _typeof(o) {
|
|
14406
|
+
"@babel/helpers - typeof";
|
|
14407
|
+
|
|
14408
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
14409
|
+
return typeof o;
|
|
14410
|
+
} : function (o) {
|
|
14411
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
14412
|
+
}, _typeof(o);
|
|
14190
14413
|
}
|
|
14191
14414
|
|
|
14192
|
-
var version = "1.15.
|
|
14415
|
+
var version = "1.15.7";
|
|
14193
14416
|
|
|
14194
14417
|
function userAgent(pattern) {
|
|
14195
14418
|
if (typeof window !== 'undefined' && window.navigator) {
|
|
@@ -14232,7 +14455,7 @@ function matches( /**HTMLElement*/el, /**String*/selector) {
|
|
|
14232
14455
|
return false;
|
|
14233
14456
|
}
|
|
14234
14457
|
function getParentOrHost(el) {
|
|
14235
|
-
return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;
|
|
14458
|
+
return el.host && el !== document && el.host.nodeType && el.host !== el ? el.host : el.parentNode;
|
|
14236
14459
|
}
|
|
14237
14460
|
function closest$1( /**HTMLElement*/el, /**String*/selector, /**HTMLElement*/ctx, includeCTX) {
|
|
14238
14461
|
if (el) {
|
|
@@ -16100,8 +16323,11 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
16100
16323
|
_nulling: function _nulling() {
|
|
16101
16324
|
pluginEvent('nulling', this);
|
|
16102
16325
|
rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;
|
|
16103
|
-
|
|
16104
|
-
|
|
16326
|
+
var el = this.el;
|
|
16327
|
+
savedInputChecked.forEach(function (checkEl) {
|
|
16328
|
+
if (el.contains(checkEl)) {
|
|
16329
|
+
checkEl.checked = true;
|
|
16330
|
+
}
|
|
16105
16331
|
});
|
|
16106
16332
|
savedInputChecked.length = lastDx = lastDy = 0;
|
|
16107
16333
|
},
|
|
@@ -16759,7 +16985,12 @@ class PdsSortable {
|
|
|
16759
16985
|
*/
|
|
16760
16986
|
this.border = false;
|
|
16761
16987
|
/**
|
|
16762
|
-
*
|
|
16988
|
+
* Determines whether or not the sortable is disabled.
|
|
16989
|
+
* @defaultValue false
|
|
16990
|
+
*/
|
|
16991
|
+
this.disabled = false;
|
|
16992
|
+
/**
|
|
16993
|
+
* Determines whether `sortable` items should be divided with border.
|
|
16763
16994
|
*/
|
|
16764
16995
|
this.dividers = false;
|
|
16765
16996
|
/**
|
|
@@ -16767,11 +16998,18 @@ class PdsSortable {
|
|
|
16767
16998
|
*/
|
|
16768
16999
|
this.handleType = 'row';
|
|
16769
17000
|
}
|
|
17001
|
+
handleDisabledChange() {
|
|
17002
|
+
var _a;
|
|
17003
|
+
(_a = this.sortableInstance) === null || _a === void 0 ? void 0 : _a.option('disabled', this.disabled);
|
|
17004
|
+
}
|
|
16770
17005
|
classNames() {
|
|
16771
17006
|
const classNames = ['pds-sortable'];
|
|
16772
17007
|
if (this.border) {
|
|
16773
17008
|
classNames.push('pds-sortable--bordered');
|
|
16774
17009
|
}
|
|
17010
|
+
if (this.disabled) {
|
|
17011
|
+
classNames.push('pds-sortable--disabled');
|
|
17012
|
+
}
|
|
16775
17013
|
if (this.dividers) {
|
|
16776
17014
|
classNames.push('pds-sortable--divided');
|
|
16777
17015
|
}
|
|
@@ -16783,6 +17021,7 @@ class PdsSortable {
|
|
|
16783
17021
|
componentDidLoad() {
|
|
16784
17022
|
let sortableOptions = {
|
|
16785
17023
|
animation: 150,
|
|
17024
|
+
disabled: this.disabled,
|
|
16786
17025
|
ghostClass: 'pds-sortable-item--ghost',
|
|
16787
17026
|
dragClass: 'pds-sortable-item--drag',
|
|
16788
17027
|
onEnd: (evt) => {
|
|
@@ -16792,29 +17031,33 @@ class PdsSortable {
|
|
|
16792
17031
|
if (this.handleType === 'handle') {
|
|
16793
17032
|
sortableOptions = Object.assign(Object.assign({}, sortableOptions), { handle: '.pds-sortable-item__handle' });
|
|
16794
17033
|
}
|
|
16795
|
-
Sortable.create(this.el, sortableOptions);
|
|
17034
|
+
this.sortableInstance = Sortable.create(this.el, sortableOptions);
|
|
16796
17035
|
}
|
|
16797
17036
|
render() {
|
|
16798
|
-
return (hAsync(Host, { key: '
|
|
17037
|
+
return (hAsync(Host, { key: '562bfb1ecea0b3a3f246b2e277b71f70d14b854c', class: this.classNames(), id: this.componentId }, hAsync("slot", { key: 'a1ff894a9cd6049e532d2fa744429cec6d97e280' })));
|
|
16799
17038
|
}
|
|
16800
17039
|
get el() { return getElement(this); }
|
|
17040
|
+
static get watchers() { return {
|
|
17041
|
+
"disabled": ["handleDisabledChange"]
|
|
17042
|
+
}; }
|
|
16801
17043
|
static get style() { return pdsSortableCss; }
|
|
16802
17044
|
static get cmpMeta() { return {
|
|
16803
17045
|
"$flags$": 262,
|
|
16804
17046
|
"$tagName$": "pds-sortable",
|
|
16805
17047
|
"$members$": {
|
|
16806
17048
|
"border": [516],
|
|
17049
|
+
"disabled": [516],
|
|
16807
17050
|
"componentId": [1, "component-id"],
|
|
16808
17051
|
"dividers": [516],
|
|
16809
17052
|
"handleType": [1, "handle-type"]
|
|
16810
17053
|
},
|
|
16811
17054
|
"$listeners$": undefined,
|
|
16812
17055
|
"$lazyBundleId$": "-",
|
|
16813
|
-
"$attrsToReflect$": [["border", "border"], ["dividers", "dividers"]]
|
|
17056
|
+
"$attrsToReflect$": [["border", "border"], ["disabled", "disabled"], ["dividers", "dividers"]]
|
|
16814
17057
|
}; }
|
|
16815
17058
|
}
|
|
16816
17059
|
|
|
16817
|
-
const pdsSortableItemCss = ".pds-sortable-item.sc-pds-sortable-item-h{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-block:var(--pine-dimension-xs);padding-inline:var(--pine-dimension-md)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__actions.sc-pds-sortable-item{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-padding-start:var(--pine-dimension-md);padding-inline-start:var(--pine-dimension-md)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{line-height:1;-webkit-margin-end:var(--pine-dimension-md);margin-inline-end:var(--pine-dimension-md)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:first-child{border-start-end-radius:calc(var(--pine-dimension-xs) * 1.25);border-start-start-radius:calc(var(--pine-dimension-xs) * 1.25)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:last-child{border-end-end-radius:calc(var(--pine-dimension-xs) * 1.25);border-end-start-radius:calc(var(--pine-dimension-xs) * 1.25)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h:last-child{-webkit-border-after:0;border-block-end:0}.pds-sortable--handle-type-row .pds-sortable-item.sc-pds-sortable-item-h{cursor:-webkit-grab;cursor:grab}.pds-sortable--handle-type-handle .pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{cursor:-webkit-grab;cursor:grab}.pds-sortable-item.sc-pds-sortable-item-h:hover{background-color:var(--pine-color-background-container-hover)}.pds-sortable-item.sc-pds-sortable-item-h:hover pds-icon.sc-pds-sortable-item{color:var(--pine-color-info)}.pds-sortable-item--drag.sc-pds-sortable-item-h{background-color:var(--pine-color-background-container);border-radius:0;-webkit-box-shadow:var(--pine-box-shadow-400);box-shadow:var(--pine-box-shadow-400);opacity:1}.pds-sortable-item--ghost.sc-pds-sortable-item-h{background-color:var(--pine-color-background-container-hover);border-radius:0}";
|
|
17060
|
+
const pdsSortableItemCss = ".pds-sortable-item.sc-pds-sortable-item-h{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-block:var(--pine-dimension-xs);padding-inline:var(--pine-dimension-md)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__actions.sc-pds-sortable-item{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-padding-start:var(--pine-dimension-md);padding-inline-start:var(--pine-dimension-md)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{line-height:1;-webkit-margin-end:var(--pine-dimension-md);margin-inline-end:var(--pine-dimension-md)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:first-child{border-start-end-radius:calc(var(--pine-dimension-xs) * 1.25);border-start-start-radius:calc(var(--pine-dimension-xs) * 1.25)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:last-child{border-end-end-radius:calc(var(--pine-dimension-xs) * 1.25);border-end-start-radius:calc(var(--pine-dimension-xs) * 1.25)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h:last-child{-webkit-border-after:0;border-block-end:0}.pds-sortable--handle-type-row .pds-sortable-item.sc-pds-sortable-item-h{cursor:-webkit-grab;cursor:grab}.pds-sortable--handle-type-handle .pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{cursor:-webkit-grab;cursor:grab}.pds-sortable--disabled .pds-sortable-item.sc-pds-sortable-item-h{cursor:not-allowed;opacity:0.5}.pds-sortable--disabled .pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{cursor:not-allowed}.pds-sortable--disabled .pds-sortable-item.sc-pds-sortable-item-h:hover{background-color:transparent}.pds-sortable:not(.pds-sortable--disabled) .pds-sortable-item.sc-pds-sortable-item-h:hover{background-color:var(--pine-color-background-container-hover)}.pds-sortable:not(.pds-sortable--disabled) .pds-sortable-item.sc-pds-sortable-item-h:hover pds-icon.sc-pds-sortable-item{color:var(--pine-color-info)}.pds-sortable-item--drag.sc-pds-sortable-item-h{background-color:var(--pine-color-background-container);border-radius:0;-webkit-box-shadow:var(--pine-box-shadow-400);box-shadow:var(--pine-box-shadow-400);opacity:1}.pds-sortable-item--ghost.sc-pds-sortable-item-h{background-color:var(--pine-color-background-container-hover);border-radius:0}";
|
|
16818
17061
|
|
|
16819
17062
|
/**
|
|
16820
17063
|
* @slot sortable-item-actions - Content is placed within the `pds-sortable-item__actions` element as children. This slot is only rendered if `actions` is set to `true`.
|
|
@@ -16920,10 +17163,8 @@ class PdsSwitch {
|
|
|
16920
17163
|
this.updateFormValue();
|
|
16921
17164
|
}
|
|
16922
17165
|
updateFormValue() {
|
|
16923
|
-
|
|
16924
|
-
if (typeof jest !== 'undefined' || typeof process !== 'undefined' && ((_a = process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) === 'test') {
|
|
17166
|
+
if (isSpecTest())
|
|
16925
17167
|
return;
|
|
16926
|
-
}
|
|
16927
17168
|
if (this.internals && this.internals.setFormValue) {
|
|
16928
17169
|
// For switches, only send the value when checked, otherwise send null
|
|
16929
17170
|
const formValue = this.checked ? (this.value || 'on') : null;
|
|
@@ -16948,9 +17189,9 @@ class PdsSwitch {
|
|
|
16948
17189
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
16949
17190
|
}
|
|
16950
17191
|
render() {
|
|
16951
|
-
return (hAsync(Host, { key: '
|
|
16952
|
-
hAsync("div", { key: '
|
|
16953
|
-
hAsync("div", { key: '
|
|
17192
|
+
return (hAsync(Host, { key: '96ee8c40c04e95b461ba2942b740503897a56b27', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, hAsync("label", { key: '441d6854f2c0b02ecf3d874198b3e0636d68c83b', htmlFor: this.componentId }, hAsync("input", Object.assign({ key: 'a26cd5fb407abc20da3e9dcfe0e52333690b783a', "aria-describedby": assignDescription(this.componentId, this.invalid, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, checked: this.checked, class: "pds-switch__input", disabled: this.disabled, id: this.componentId, name: this.name ? this.name : this.componentId, onChange: this.onSwitchUpdate, required: this.required, type: "checkbox", value: this.value }, this.inheritedAttributes)), hAsync("span", { key: '5762c48f481c5c5d7b62e8dab40579a4e7ff290b', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), this.helperMessage &&
|
|
17193
|
+
hAsync("div", { key: '64c14b8833b45b4e9efb2f76faa47f0d24127c91', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
17194
|
+
hAsync("div", { key: 'cecd2e8da713e74b8e6b528b50733015f5d5069b', class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: '3a1c8f87b3909cdad1bc680931f5521ecb77acd6', icon: danger, size: "small" }), this.errorMessage)));
|
|
16954
17195
|
}
|
|
16955
17196
|
static get formAssociated() { return true; }
|
|
16956
17197
|
get el() { return getElement(this); }
|
|
@@ -18305,7 +18546,7 @@ class PdsTextarea {
|
|
|
18305
18546
|
this.setupResizeObserver();
|
|
18306
18547
|
}
|
|
18307
18548
|
// Update ElementInternals validity when maxLength changes
|
|
18308
|
-
if (this.internals && this.internals.setValidity && this.nativeTextarea) {
|
|
18549
|
+
if (!isSpecTest() && this.internals && this.internals.setValidity && this.nativeTextarea) {
|
|
18309
18550
|
const isTooLong = this.nativeTextarea.value.length > (this.maxLength || 0);
|
|
18310
18551
|
this.internals.setValidity({ tooLong: isTooLong }, isTooLong ? 'Value exceeds maxLength' : '', this.nativeTextarea);
|
|
18311
18552
|
}
|
|
@@ -18439,6 +18680,8 @@ class PdsTextarea {
|
|
|
18439
18680
|
* Updates the form value using ElementInternals API
|
|
18440
18681
|
*/
|
|
18441
18682
|
updateFormValue() {
|
|
18683
|
+
if (isSpecTest())
|
|
18684
|
+
return;
|
|
18442
18685
|
if (this.internals && this.internals.setFormValue) {
|
|
18443
18686
|
const value = this.getValue();
|
|
18444
18687
|
this.internals.setFormValue(value || null);
|
|
@@ -18478,10 +18721,10 @@ class PdsTextarea {
|
|
|
18478
18721
|
}
|
|
18479
18722
|
render() {
|
|
18480
18723
|
const value = this.getValue();
|
|
18481
|
-
return (hAsync(Host, { key: '
|
|
18482
|
-
hAsync("div", { key: '
|
|
18483
|
-
hAsync("p", { key: '
|
|
18484
|
-
hAsync("p", { key: '
|
|
18724
|
+
return (hAsync(Host, { key: '09726ef6454fe84a5c8d0ea25c6e8a7a6da128f9', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null, "has-action": this.hasAction && !this.hideLabel ? 'true' : null }, hAsync("div", { key: '6244104f11d26b25a908fbaf13a815988a3c33d9', class: "pds-textarea" }, this.label &&
|
|
18725
|
+
hAsync("div", { key: '5dd7f6caedd7ebf5ecaacf8d111ec5e2426e84ae', class: "pds-textarea__label-wrapper" }, hAsync("label", { key: 'd19f62cd28612423abf0d5696ff1cd88f39d32fe', htmlFor: this.componentId }, hAsync("span", { key: '37f4e9e34ae3205bafa5f1bc8574a98d3a90060d', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), !this.hideLabel && this.renderAction()), hAsync("div", { key: '4c3c8fadc5596630485ee1775f5d87d77c11d95b', class: "pds-textarea__field-wrapper" }, hAsync("textarea", Object.assign({ key: 'a60be5f3d362cb9bcd2ecf5af16ffc467fc8322a', ref: (el) => this.nativeTextarea = el, "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, maxlength: this.maxLength, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onBlur: this.onBlur, onChange: this.onTextareaChange, onFocus: this.onFocus, onInput: this.onInput, onKeyDown: this.onKeyDown }, this.inheritedAttributes), value), this.renderCharacterCounter()), this.helperMessage &&
|
|
18726
|
+
hAsync("p", { key: 'ae03337ef85ac2a3995e967fe671e0ad2c352710', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
|
|
18727
|
+
hAsync("p", { key: 'a2bda9a477e7d2b81862833da43158a626d8cc6f', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, hAsync("pds-icon", { key: '5ac785e8012aeb49dd0b1c5823233671531b0a7a', icon: danger, size: "small" }), this.errorMessage))));
|
|
18485
18728
|
}
|
|
18486
18729
|
static get formAssociated() { return true; }
|
|
18487
18730
|
get el() { return getElement(this); }
|
|
@@ -18524,6 +18767,9 @@ class PdsTextarea {
|
|
|
18524
18767
|
|
|
18525
18768
|
const pdsToastCss = ":host{--animation-duration:0.3s;--animation-timing:cubic-bezier(0.4, 0, 0.2, 1);--padding-inline:var(--pine-dimension-md);--padding-inline-desktop:var(--pine-dimension-2xl);--sizing-height-default:68px;--sizing-min-width:calc(var(--sizing-total-width) - (var(--padding-inline) * 2));--sizing-min-width-desktop:calc(var(--sizing-total-width) - (var(--padding-inline-desktop) * 2));--sizing-total-width:350px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;font:var(--pine-typography-body-medium)}.pds-toast{-ms-flex-align:center;align-items:center;-webkit-animation:pds-toast-animate-in var(--animation-duration) var(--animation-timing);animation:pds-toast-animate-in var(--animation-duration) var(--animation-timing);background-color:var(--pine-color-primary);border-radius:var(--pine-dimension-xs);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);color:var(--pine-color-text-primary);display:-ms-flexbox;display:flex;height:var(--sizing-height-default);-ms-flex-pack:start;justify-content:flex-start;-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs);max-width:90vw;min-width:var(--sizing-min-width);padding:0 var(--padding-inline);position:relative;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}@media screen and (max-width: 767px){.pds-toast{height:36px;max-width:calc(100vw - var(--pine-dimension-2xs) * 2);min-width:auto;padding-inline:var(--pine-dimension-2xs)}}.pds-toast--danger{background-color:var(--pine-color-danger)}.pds-toast--loading .pds-toast__loader{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-webkit-margin-end:var(--pine-dimension-sm);margin-inline-end:var(--pine-dimension-sm);position:relative}.pds-toast--loading .pds-toast__loader-spinner{-webkit-animation:pds-toast-rotate 2s linear infinite;animation:pds-toast-rotate 2s linear infinite;height:20px;width:20px}.pds-toast--loading .pds-toast__loader-path{-webkit-animation:pds-toast-dash 1.5s ease-in-out infinite;animation:pds-toast-dash 1.5s ease-in-out infinite;stroke-dasharray:1, 200;stroke-dashoffset:0;stroke-linecap:round}.pds-toast__icon{color:var(--pine-color-text-primary);display:-ms-inline-flexbox;display:inline-flex;-webkit-margin-end:var(--pine-dimension-sm);margin-inline-end:var(--pine-dimension-sm)}.pds-toast__message{font:var(--pine-typography-body-sm-medium);-webkit-margin-end:auto;margin-inline-end:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-toast__message ::slotted(a){color:var(--pine-color-text-primary);-webkit-margin-start:var(--pine-dimension-xs);margin-inline-start:var(--pine-dimension-xs);opacity:0.7;text-decoration:underline}.pds-toast__message ::slotted(a):hover,.pds-toast__message ::slotted(a):focus-visible{opacity:1}.pds-toast__message ::slotted(a):focus-visible{outline:2px solid var(--pine-color-text-primary);outline-offset:2px}.pds-toast__button{-ms-flex-align:center;align-items:center;background:none;border:0;border-radius:var(--pine-border-radius-full);color:inherit;cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-webkit-margin-start:var(--pine-dimension-md);margin-inline-start:var(--pine-dimension-md);opacity:0.7;padding:0;white-space:nowrap}.pds-toast__button:hover,.pds-toast__button:focus{opacity:1}.pds-toast__button:focus{outline:var(--pine-outline-focus);outline-offset:var(--pine-dimension-2xs)}@-webkit-keyframes pds-toast-animate-in{from{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes pds-toast-animate-in{from{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes pds-toast-animate-out{from{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes pds-toast-animate-out{from{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}}@-webkit-keyframes pds-toast-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes pds-toast-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes pds-toast-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124}}@keyframes pds-toast-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124}}:host([hidden]) .pds-toast,.pds-toast--animating-out{-webkit-animation:pds-toast-animate-out var(--animation-duration) var(--animation-timing) forwards;animation:pds-toast-animate-out var(--animation-duration) var(--animation-timing) forwards;pointer-events:none;}";
|
|
18526
18769
|
|
|
18770
|
+
/**
|
|
18771
|
+
* @part dismiss
|
|
18772
|
+
*/
|
|
18527
18773
|
class PdsToast {
|
|
18528
18774
|
constructor(hostRef) {
|
|
18529
18775
|
registerInstance(this, hostRef);
|
|
@@ -18604,13 +18850,13 @@ class PdsToast {
|
|
|
18604
18850
|
return this.icon && hAsync("pds-icon", { name: this.icon, class: "pds-toast__icon" });
|
|
18605
18851
|
}
|
|
18606
18852
|
render() {
|
|
18607
|
-
return (hAsync(Host, { key: '
|
|
18853
|
+
return (hAsync(Host, { key: '5a626d33e284f1d19498f1a15f91810e6c184116', hidden: !this.isVisible }, hAsync("div", { key: '9e3d7c1ccd5ee162f9cdc6c1ec7ba8b36b2492f0', class: {
|
|
18608
18854
|
'pds-toast': true,
|
|
18609
18855
|
[`pds-toast--${this.type}`]: this.type !== 'default',
|
|
18610
18856
|
'pds-toast--animating-out': this.isAnimatingOut
|
|
18611
|
-
}, role: "alert", "aria-live": "polite" }, this.renderIcon(), hAsync("span", { key: '
|
|
18857
|
+
}, role: "alert", "aria-live": "polite" }, this.renderIcon(), hAsync("span", { key: '07fa7e9da50a3f25ad66f633de05cd62c08963ad', class: "pds-toast__message" }, hAsync("slot", { key: '94b97c868003945d884fe82fc132ccf9c93883d3' })), this.dismissible && (hAsync("button", { key: 'bbb35c6f1a4f2635c29f56d3c71870289c3dd765', type: "button", part: "dismiss", class: "pds-toast__button", onClick: () => {
|
|
18612
18858
|
this.dismiss();
|
|
18613
|
-
}, "aria-label": "Dismiss message" }, hAsync("pds-icon", { key: '
|
|
18859
|
+
}, "aria-label": "Dismiss message" }, hAsync("pds-icon", { key: '5a39aa843a9585f8814b15f334d7eb74cf6e815c', name: "remove" }))))));
|
|
18614
18860
|
}
|
|
18615
18861
|
static get watchers() { return {
|
|
18616
18862
|
"duration": ["handleDurationChange"]
|
|
@@ -18991,6 +19237,7 @@ registerComponents([
|
|
|
18991
19237
|
PdsCheckbox,
|
|
18992
19238
|
PdsChip,
|
|
18993
19239
|
PdsCombobox,
|
|
19240
|
+
PdsContainer,
|
|
18994
19241
|
PdsCopytext,
|
|
18995
19242
|
PdsDivider,
|
|
18996
19243
|
PdsDropdownMenu,
|