@pine-ds/core 3.22.1 → 3.23.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/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-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-popover.js +1 -1
- package/components/pds-progress.js +1 -1
- package/components/pds-property.js +1 -1
- package/components/pds-radio-group.js +3 -3
- package/components/pds-radio.js +3 -3
- package/components/pds-row.js +1 -1
- package/components/pds-select.js +4 -2
- package/components/pds-select.js.map +1 -1
- package/components/pds-sortable-item.js +2 -2
- 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-tab.js +3 -3
- package/components/pds-table-body.js +1 -1
- package/components/pds-table-cell2.js +2 -2
- package/components/pds-table-head-cell2.js +2 -2
- package/components/pds-table-head.js +1 -1
- package/components/pds-table-row.js +1 -1
- package/components/pds-tabpanel.js +1 -1
- package/components/pds-tabs.js +1 -1
- package/components/pds-text2.js +1 -1
- package/components/pds-textarea.js +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/components/pds-tooltip.js +2 -2
- 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-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-popover.cjs.entry.js +1 -1
- package/dist/cjs/pds-progress.cjs.entry.js +1 -1
- package/dist/cjs/pds-property.cjs.entry.js +1 -1
- package/dist/cjs/pds-radio-group.cjs.entry.js +5 -5
- package/dist/cjs/pds-radio.cjs.entry.js +5 -5
- package/dist/cjs/pds-row.cjs.entry.js +1 -1
- 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 +3 -3
- 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-tab.cjs.entry.js +3 -3
- package/dist/cjs/pds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-cell.cjs.entry.js +4 -4
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +3 -3
- package/dist/cjs/pds-table-head.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-row.cjs.entry.js +1 -1
- package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
- package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
- package/dist/cjs/pds-text.cjs.entry.js +3 -3
- 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 +3 -3
- 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/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-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-popover/pds-popover.js +1 -1
- package/dist/collection/components/pds-progress/pds-progress.js +1 -1
- package/dist/collection/components/pds-property/pds-property.js +1 -1
- package/dist/collection/components/pds-radio/pds-radio.js +3 -3
- package/dist/collection/components/pds-radio-group/pds-radio-group.js +3 -3
- package/dist/collection/components/pds-row/pds-row.js +1 -1
- package/dist/collection/components/pds-select/pds-select.js +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-item/pds-sortable-item.js +1 -1
- 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-table/pds-table-body/pds-table-body.js +1 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
- package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
- package/dist/collection/components/pds-text/pds-text.js +1 -1
- package/dist/collection/components/pds-textarea/pds-textarea.js +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/components/pds-tooltip/pds-tooltip.js +2 -2
- package/dist/collection/utils/form.js +13 -0
- package/dist/collection/utils/form.js.map +1 -1
- package/dist/docs.json +222 -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-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-popover.entry.js +1 -1
- package/dist/esm/pds-progress.entry.js +1 -1
- package/dist/esm/pds-property.entry.js +1 -1
- package/dist/esm/pds-radio-group.entry.js +5 -5
- package/dist/esm/pds-radio.entry.js +5 -5
- package/dist/esm/pds-row.entry.js +1 -1
- 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 +3 -3
- 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-tab.entry.js +3 -3
- package/dist/esm/pds-table-body.entry.js +1 -1
- package/dist/esm/pds-table-cell.entry.js +4 -4
- package/dist/esm/pds-table-head-cell.entry.js +3 -3
- package/dist/esm/pds-table-head.entry.js +1 -1
- package/dist/esm/pds-table-row.entry.js +1 -1
- package/dist/esm/pds-tabpanel.entry.js +1 -1
- package/dist/esm/pds-tabs.entry.js +1 -1
- package/dist/esm/pds-text.entry.js +3 -3
- 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 +3 -3
- 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-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-popover.entry.js +1 -1
- package/dist/esm-es5/pds-progress.entry.js +1 -1
- package/dist/esm-es5/pds-property.entry.js +1 -1
- package/dist/esm-es5/pds-radio-group.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js +1 -1
- package/dist/esm-es5/pds-row.entry.js +1 -1
- package/dist/esm-es5/pds-select.entry.js +1 -1
- package/dist/esm-es5/pds-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-tab.entry.js +1 -1
- package/dist/esm-es5/pds-table-body.entry.js +1 -1
- package/dist/esm-es5/pds-table-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-head.entry.js +1 -1
- package/dist/esm-es5/pds-table-row.entry.js +1 -1
- package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
- package/dist/esm-es5/pds-tabs.entry.js +1 -1
- package/dist/esm-es5/pds-text.entry.js +1 -1
- package/dist/esm-es5/pds-textarea.entry.js +1 -1
- package/dist/esm-es5/pds-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-0582a3b3.entry.js +2 -0
- package/dist/pine-core/{p-e9eb3fc3.system.entry.js → p-0d7eddea.system.entry.js} +2 -2
- package/dist/pine-core/{p-b416cb4b.system.entry.js → p-0f990fae.system.entry.js} +2 -2
- package/dist/pine-core/{p-edbaff73.system.entry.js → p-13f28e2a.system.entry.js} +2 -2
- package/dist/pine-core/{p-838452e0.entry.js → p-14cceca6.entry.js} +2 -2
- package/dist/pine-core/{p-ea721a45.entry.js → p-16b7a61d.entry.js} +2 -2
- package/dist/pine-core/{p-5e83f6e3.system.entry.js → p-16bf3993.system.entry.js} +2 -2
- package/dist/pine-core/{p-9606f567.system.entry.js → p-182b5617.system.entry.js} +2 -2
- package/dist/pine-core/p-1855322f.entry.js +2 -0
- package/dist/pine-core/p-244f0325.system.entry.js +2 -0
- package/dist/pine-core/p-244f0325.system.entry.js.map +1 -0
- package/dist/pine-core/{p-8b7246ea.system.entry.js → p-2a185f0b.system.entry.js} +2 -2
- package/dist/pine-core/{p-c73ef42b.entry.js → p-32e54df7.entry.js} +2 -2
- package/dist/pine-core/{p-68f97bdf.entry.js → p-33e8d130.entry.js} +2 -2
- package/dist/pine-core/p-3XkugpdY.system.js.map +1 -0
- package/dist/pine-core/{p-1b0dc99e.system.entry.js → p-3e96ea38.system.entry.js} +2 -2
- package/dist/pine-core/{p-64c6c4a0.entry.js → p-3f8e9f3f.entry.js} +2 -2
- package/dist/pine-core/p-40734388.entry.js +2 -0
- package/dist/pine-core/p-40734388.entry.js.map +1 -0
- package/dist/pine-core/p-41382eb3.system.entry.js +2 -0
- package/dist/pine-core/p-41382eb3.system.entry.js.map +1 -0
- package/dist/pine-core/p-4175a61c.system.entry.js +2 -0
- package/dist/pine-core/{p-73be1c83.entry.js → p-46e11e20.entry.js} +2 -2
- package/dist/pine-core/p-48a646d8.entry.js +8 -0
- package/dist/pine-core/p-48a646d8.entry.js.map +1 -0
- package/dist/pine-core/{p-ed5ca877.system.entry.js → p-48a6762b.system.entry.js} +2 -2
- package/dist/pine-core/p-499dcb3b.system.entry.js +2 -0
- package/dist/pine-core/p-499dcb3b.system.entry.js.map +1 -0
- package/dist/pine-core/{p-3fc8dbc9.system.entry.js → p-4c7055bb.system.entry.js} +2 -2
- package/dist/pine-core/{p-7737e4e8.system.entry.js → p-4d2e9e8d.system.entry.js} +2 -2
- package/dist/pine-core/{p-18a3b6ba.system.entry.js → p-519d9af1.system.entry.js} +2 -2
- package/dist/pine-core/{p-f81b0dbb.system.entry.js → p-52d1a7a1.system.entry.js} +2 -2
- package/dist/pine-core/{p-9558fa60.entry.js → p-536451ee.entry.js} +2 -2
- package/dist/pine-core/p-5453ff49.system.entry.js +2 -0
- package/dist/pine-core/{p-3e2fc38f.entry.js → p-583c3ac5.entry.js} +2 -2
- package/dist/pine-core/{p-DKT0sVlZ.system.js.map → p-59--X9ih.system.js.map} +1 -1
- package/dist/pine-core/p-5KztFcgn.system.js.map +1 -0
- package/dist/pine-core/p-5f391ebf.entry.js +2 -0
- package/dist/pine-core/p-61943627.system.entry.js +2 -0
- package/dist/pine-core/p-61943627.system.entry.js.map +1 -0
- package/dist/pine-core/{p-bf157830.entry.js → p-645564d9.entry.js} +2 -2
- package/dist/pine-core/{p-2883cb69.system.entry.js → p-67b78dd8.system.entry.js} +2 -2
- package/dist/pine-core/{p-f179c88f.system.entry.js → p-6939924a.system.entry.js} +2 -2
- package/dist/pine-core/p-74392e33.system.entry.js +2 -0
- package/dist/pine-core/{p-766e52a3.entry.js → p-75dc3a1f.entry.js} +2 -2
- package/dist/pine-core/p-773d1b8d.entry.js +2 -0
- package/dist/pine-core/p-773d1b8d.entry.js.map +1 -0
- package/dist/pine-core/{p-8a53ae6d.system.entry.js → p-781bdbf7.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-9c0e22d4.entry.js → p-82f9a81a.entry.js} +2 -2
- package/dist/pine-core/{p-6c25dfc3.entry.js → p-8f3d6de0.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-902818eb.system.entry.js +2 -0
- package/dist/pine-core/{p-d8d796ad.system.entry.js → p-91200079.system.entry.js} +2 -2
- package/dist/pine-core/{p-b2a7c2bf.entry.js → p-95af50ed.entry.js} +2 -2
- package/dist/pine-core/p-96c4106f.entry.js +2 -0
- package/dist/pine-core/p-96c4106f.entry.js.map +1 -0
- package/dist/pine-core/{p-51d2999d.entry.js → p-98b493e5.entry.js} +2 -2
- package/dist/pine-core/{p-b8f21554.system.entry.js → p-98d82bf0.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-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-ClY6yIBF.system.js.map → p-B5fynusC.system.js.map} +1 -1
- package/dist/pine-core/{p-BUtyruql.system.js.map → p-BMoAGblt.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-9SGoKSa6.system.js.map → p-BOuxAvbi.system.js.map} +1 -1
- package/dist/pine-core/p-BOuz9091.system.js.map +1 -0
- package/dist/pine-core/{p-2DR2iuEU.system.js.map → p-BQsz2Ppb.system.js.map} +1 -1
- package/dist/pine-core/{p-Bsen6aos.system.js.map → p-BR1tCsTx.system.js.map} +1 -1
- package/dist/pine-core/{p-sgZDP7ET.system.js.map → p-BR9D7jOC.system.js.map} +1 -1
- package/dist/pine-core/p-BTrLNF2B.system.js.map +1 -0
- package/dist/pine-core/{p-DFWnxG_e.system.js.map → p-BUEOyE3W.system.js.map} +1 -1
- package/dist/pine-core/{p-CSe1fQxQ.system.js.map → p-Bb4REZL1.system.js.map} +1 -1
- package/dist/pine-core/{p-B5CyjPYU.system.js.map → p-Be6iza_Y.system.js.map} +1 -1
- package/dist/pine-core/p-BpespFXE.system.js.map +1 -0
- 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-C2pSDIG-.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-C4-dix13.system.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-CfNEp0k0.system.js.map → p-CG-bCfvj.system.js.map} +1 -1
- package/dist/pine-core/p-CHDzBR_K.system.js.map +1 -0
- package/dist/pine-core/{p-CUv9KdhN.system.js.map → p-CI57amJO.system.js.map} +1 -1
- package/dist/pine-core/{p-DenbFuEN.system.js.map → p-CP845yj_.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-De6wHGVf.system.js.map → p-CYraaUrg.system.js.map} +1 -1
- package/dist/pine-core/{p-BR9M75xt.system.js.map → p-CjvjDEg9.system.js.map} +1 -1
- package/dist/pine-core/{p-BASnRvhy.system.js.map → p-Cw6YcRuA.system.js.map} +1 -1
- package/dist/pine-core/p-CyOICl1j.system.js.map +1 -0
- package/dist/pine-core/{p-Be8OBmYb.system.js.map → p-D32r9DeF.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-DAxrTjDa.system.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-BqkabXR7.system.js.map → p-DMF-DSOl.system.js.map} +1 -1
- package/dist/pine-core/{p-CsWO_n3t.system.js.map → p-DNbBVaLv.system.js.map} +1 -1
- package/dist/pine-core/{p-B036z4h-.system.js.map → p-DOdbcaFd.system.js.map} +1 -1
- package/dist/pine-core/{p-8tpU1leU.system.js.map → p-DZLD6m8S.system.js.map} +1 -1
- package/dist/pine-core/{p-DmWm26A6.system.js.map → p-Dp80V3ht.system.js.map} +1 -1
- package/dist/pine-core/{p-B9rVdQdy.system.js.map → p-Dq_WxIls.system.js.map} +1 -1
- package/dist/pine-core/{p-DZt6ah_A.system.js.map → p-DwSw16ZT.system.js.map} +1 -1
- package/dist/pine-core/{p-dPhHNR2G.system.js.map → p-IEIIi5zq.system.js.map} +1 -1
- package/dist/pine-core/p-JAVnELnm.system.js +1 -1
- package/dist/pine-core/{p-BeJr-4oL.system.js.map → p-KVyVRPM1.system.js.map} +1 -1
- package/dist/pine-core/{p-CEE11B7K.system.js.map → p-Ob6d9Y86.system.js.map} +1 -1
- package/dist/pine-core/{p-P65hM6YU.system.js.map → p-PMiwIPVl.system.js.map} +1 -1
- package/dist/pine-core/{p-DzmLlvu3.system.js.map → p-WysX4rk5.system.js.map} +1 -1
- package/dist/pine-core/{p-439e3343.entry.js → p-a1d58592.entry.js} +2 -2
- package/dist/pine-core/p-a3543531.entry.js +2 -0
- package/dist/pine-core/{p-6cbad264.entry.js.map → p-a3543531.entry.js.map} +1 -1
- package/dist/pine-core/{p-08cdf7f2.system.entry.js → p-a55bc143.system.entry.js} +2 -2
- package/dist/pine-core/p-a61e92c3.system.entry.js +2 -0
- package/dist/pine-core/p-a61e92c3.system.entry.js.map +1 -0
- package/dist/pine-core/{p-9b2cd9fc.entry.js → p-a6b01b1e.entry.js} +2 -2
- package/dist/pine-core/{p-88eb4f6c.entry.js → p-a720a925.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-445c5ec5.system.entry.js → p-ab2c2298.system.entry.js} +2 -2
- package/dist/pine-core/{p-7fc20a77.system.entry.js → p-adbe19c7.system.entry.js} +2 -2
- package/dist/pine-core/{p-36478643.system.entry.js → p-b2a5b6ae.system.entry.js} +2 -2
- package/dist/pine-core/p-b3c50d38.entry.js +2 -0
- package/dist/pine-core/{p-7c1b1fb8.entry.js.map → p-b3c50d38.entry.js.map} +1 -1
- package/dist/pine-core/p-b6465152.entry.js +2 -0
- package/dist/pine-core/p-b6465152.entry.js.map +1 -0
- package/dist/pine-core/{p-599a5903.system.entry.js → p-bc462592.system.entry.js} +2 -2
- package/dist/pine-core/{p-9ba4acdf.system.entry.js → p-bc7a4275.system.entry.js} +2 -2
- package/dist/pine-core/{p-9f09e116.system.entry.js → p-c6682c9d.system.entry.js} +2 -2
- package/dist/pine-core/p-c6dd00b1.entry.js +2 -0
- package/dist/pine-core/{p-1951d49e.entry.js → p-c78a7729.entry.js} +2 -2
- package/dist/pine-core/{p-ccdee55a.entry.js → p-c9ced0ee.entry.js} +2 -2
- package/dist/pine-core/{p-bf712423.entry.js → p-caf01891.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-b7f2f9f3.system.entry.js → p-ce47aaaa.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-5f63b999.entry.js → p-d5d9cf28.entry.js} +2 -2
- package/dist/pine-core/{p-b3ee3c4c.system.entry.js → p-d6c72b79.system.entry.js} +2 -2
- package/dist/pine-core/p-d845fd1d.system.entry.js +2 -0
- 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-3e45826f.system.entry.js → p-e017b42e.system.entry.js} +2 -2
- package/dist/pine-core/{p-d0504aa8.system.entry.js → p-e1402563.system.entry.js} +2 -2
- package/dist/pine-core/{p-119ccf73.entry.js → p-e47524a6.entry.js} +2 -2
- package/dist/pine-core/p-e6097fd3.entry.js +2 -0
- package/dist/pine-core/{p-5107c129.entry.js → p-e73b5859.entry.js} +2 -2
- package/dist/pine-core/p-e776269e.system.entry.js +2 -0
- package/dist/pine-core/{p-46d61c98.system.entry.js.map → p-e776269e.system.entry.js.map} +1 -1
- package/dist/pine-core/{p-C1p8XJSR.system.js.map → p-e7dY1RIu.system.js.map} +1 -1
- package/dist/pine-core/{p-72ca815d.system.entry.js → p-ed125c22.system.entry.js} +2 -2
- package/dist/pine-core/{p-b6ede995.system.entry.js → p-eec6b183.system.entry.js} +2 -2
- package/dist/pine-core/{p-867ef2f1.entry.js → p-f352e850.entry.js} +2 -2
- package/dist/pine-core/p-f86fbde7.entry.js +2 -0
- package/dist/pine-core/p-f86fbde7.entry.js.map +1 -0
- package/dist/pine-core/p-fa4c5b6b.system.entry.js +9 -0
- package/dist/pine-core/p-fa4c5b6b.system.entry.js.map +1 -0
- package/dist/pine-core/{p-203f6e9e.entry.js → p-fa62518b.entry.js} +2 -2
- package/dist/pine-core/p-fc0df65c.entry.js +2 -0
- package/dist/pine-core/p-fe2ba477.entry.js +2 -0
- package/dist/pine-core/p-kR80YJVM.system.js.map +1 -0
- package/dist/pine-core/{p-D02u2D7r.system.js.map → p-ssoi7rVs.system.js.map} +1 -1
- 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-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-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 +56 -6
- package/dist/types/utils/form.d.ts +10 -0
- package/dist/vscode.html-data.json +10479 -0
- package/hydrate/index.js +575 -375
- package/hydrate/index.mjs +575 -375
- 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-50a439b5.entry.js +0 -2
- package/dist/pine-core/p-65d0032c.system.entry.js +0 -2
- package/dist/pine-core/p-6cbad264.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-c91fd600.entry.js +0 -2
- package/dist/pine-core/p-d6139188.system.entry.js +0 -2
- package/dist/pine-core/p-d62a5444.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-bd2329cd.entry.js.map → p-0582a3b3.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e9eb3fc3.system.entry.js.map → p-0d7eddea.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b416cb4b.system.entry.js.map → p-0f990fae.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-edbaff73.system.entry.js.map → p-13f28e2a.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-838452e0.entry.js.map → p-14cceca6.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ea721a45.entry.js.map → p-16b7a61d.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5e83f6e3.system.entry.js.map → p-16bf3993.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9606f567.system.entry.js.map → p-182b5617.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-4c82bff5.entry.js.map → p-1855322f.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8b7246ea.system.entry.js.map → p-2a185f0b.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c73ef42b.entry.js.map → p-32e54df7.entry.js.map} +0 -0
- /package/dist/pine-core/{p-68f97bdf.entry.js.map → p-33e8d130.entry.js.map} +0 -0
- /package/dist/pine-core/{p-1b0dc99e.system.entry.js.map → p-3e96ea38.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-64c6c4a0.entry.js.map → p-3f8e9f3f.entry.js.map} +0 -0
- /package/dist/pine-core/{p-94a9ff2a.system.entry.js.map → p-4175a61c.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-73be1c83.entry.js.map → p-46e11e20.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ed5ca877.system.entry.js.map → p-48a6762b.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3fc8dbc9.system.entry.js.map → p-4c7055bb.system.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-18a3b6ba.system.entry.js.map → p-519d9af1.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f81b0dbb.system.entry.js.map → p-52d1a7a1.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9558fa60.entry.js.map → p-536451ee.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d62a5444.system.entry.js.map → p-5453ff49.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3e2fc38f.entry.js.map → p-583c3ac5.entry.js.map} +0 -0
- /package/dist/pine-core/{p-31bfac45.entry.js.map → p-5f391ebf.entry.js.map} +0 -0
- /package/dist/pine-core/{p-bf157830.entry.js.map → p-645564d9.entry.js.map} +0 -0
- /package/dist/pine-core/{p-2883cb69.system.entry.js.map → p-67b78dd8.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f179c88f.system.entry.js.map → p-6939924a.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-65d0032c.system.entry.js.map → p-74392e33.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-766e52a3.entry.js.map → p-75dc3a1f.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8a53ae6d.system.entry.js.map → p-781bdbf7.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-9c0e22d4.entry.js.map → p-82f9a81a.entry.js.map} +0 -0
- /package/dist/pine-core/{p-6c25dfc3.entry.js.map → p-8f3d6de0.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ba195382.system.entry.js.map → p-902818eb.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d8d796ad.system.entry.js.map → p-91200079.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b2a7c2bf.entry.js.map → p-95af50ed.entry.js.map} +0 -0
- /package/dist/pine-core/{p-51d2999d.entry.js.map → p-98b493e5.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b8f21554.system.entry.js.map → p-98d82bf0.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-439e3343.entry.js.map → p-a1d58592.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-9b2cd9fc.entry.js.map → p-a6b01b1e.entry.js.map} +0 -0
- /package/dist/pine-core/{p-88eb4f6c.entry.js.map → p-a720a925.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-445c5ec5.system.entry.js.map → p-ab2c2298.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-7fc20a77.system.entry.js.map → p-adbe19c7.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-599a5903.system.entry.js.map → p-bc462592.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9ba4acdf.system.entry.js.map → p-bc7a4275.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9f09e116.system.entry.js.map → p-c6682c9d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-af5bf21d.entry.js.map → p-c6dd00b1.entry.js.map} +0 -0
- /package/dist/pine-core/{p-1951d49e.entry.js.map → p-c78a7729.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ccdee55a.entry.js.map → p-c9ced0ee.entry.js.map} +0 -0
- /package/dist/pine-core/{p-bf712423.entry.js.map → p-caf01891.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-b7f2f9f3.system.entry.js.map → p-ce47aaaa.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5f63b999.entry.js.map → p-d5d9cf28.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b3ee3c4c.system.entry.js.map → p-d6c72b79.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d6139188.system.entry.js.map → p-d845fd1d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3e45826f.system.entry.js.map → p-e017b42e.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d0504aa8.system.entry.js.map → p-e1402563.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-119ccf73.entry.js.map → p-e47524a6.entry.js.map} +0 -0
- /package/dist/pine-core/{p-50a439b5.entry.js.map → p-e6097fd3.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-72ca815d.system.entry.js.map → p-ed125c22.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b6ede995.system.entry.js.map → p-eec6b183.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-867ef2f1.entry.js.map → p-f352e850.entry.js.map} +0 -0
- /package/dist/pine-core/{p-203f6e9e.entry.js.map → p-fa62518b.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c91fd600.entry.js.map → p-fc0df65c.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3239c67a.entry.js.map → p-fe2ba477.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -3499,7 +3499,7 @@ class MockPdsModal {
|
|
|
3499
3499
|
'pds-modal__backdrop': true,
|
|
3500
3500
|
'open': this.open,
|
|
3501
3501
|
};
|
|
3502
|
-
return (hAsync("div", { key: '
|
|
3502
|
+
return (hAsync("div", { key: 'a9af87a2a7f3372c8ead8895f843e940fb660df6', class: backdropClasses }, hAsync("div", { key: '16e645db5bf6cab63426ee487a9a3c697e40d735', class: modalClasses, role: "dialog", "aria-modal": "true", "aria-labelledby": this.componentId ? `${this.componentId}-heading` : null, part: "modal" }, hAsync("div", { key: '9910f078afa449794c3ea0c038f89b8ce86fa710', class: "pds-modal__header" }, hAsync("slot", { key: '7678643a9a73ef4809d0b09926b6b2d487bab212', name: "header" })), hAsync("div", { key: '1ef5dd8e0fe4e5b0cd3538423ca4fa2011110d9e', class: "pds-modal-content" }, hAsync("slot", { key: '3cde3240571bdeda56fc39904a45baa1c0ae09f1' })), hAsync("div", { key: 'ff9aa1820a4084ccfd0115a9f42894e875e1cdcb', class: "pds-modal__footer" }, hAsync("slot", { key: 'ce497a94226973b12c74cbbceb175d7d478ba971', name: "footer" })))));
|
|
3503
3503
|
}
|
|
3504
3504
|
get el() { return getElement(this); }
|
|
3505
3505
|
static get style() { return pdsModalCss$1; }
|
|
@@ -3521,7 +3521,7 @@ class MockPdsModal {
|
|
|
3521
3521
|
}; }
|
|
3522
3522
|
}
|
|
3523
3523
|
|
|
3524
|
-
/* pds-icons v9.
|
|
3524
|
+
/* pds-icons v9.21.0, ES Modules */
|
|
3525
3525
|
|
|
3526
3526
|
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>";
|
|
3527
3527
|
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>";
|
|
@@ -3597,6 +3597,7 @@ const pdsAlertCss = ":host{--pds-context-link-color:var(--pine-alert-color-link)
|
|
|
3597
3597
|
|
|
3598
3598
|
/**
|
|
3599
3599
|
* @slot actions - Slot for alert actions.
|
|
3600
|
+
* @part dismiss
|
|
3600
3601
|
*/
|
|
3601
3602
|
class PdsAlert {
|
|
3602
3603
|
constructor(hostRef) {
|
|
@@ -3646,7 +3647,7 @@ class PdsAlert {
|
|
|
3646
3647
|
};
|
|
3647
3648
|
// Get the icon name based on the current variant
|
|
3648
3649
|
const iconName = iconMap[this.variant] || iconMap.default;
|
|
3649
|
-
return (hAsync(Host, { key: '
|
|
3650
|
+
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)" })))))));
|
|
3650
3651
|
}
|
|
3651
3652
|
get el() { return getElement(this); }
|
|
3652
3653
|
static get style() { return pdsAlertTokensCss + pdsAlertCss; }
|
|
@@ -3670,6 +3671,8 @@ class PdsAlert {
|
|
|
3670
3671
|
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}";
|
|
3671
3672
|
|
|
3672
3673
|
/**
|
|
3674
|
+
* @part asset-wrapper
|
|
3675
|
+
* @part button
|
|
3673
3676
|
* @part image - The main image element that represents the avatar component.
|
|
3674
3677
|
*/
|
|
3675
3678
|
class PdsAvatar {
|
|
@@ -3764,7 +3767,7 @@ class PdsAvatar {
|
|
|
3764
3767
|
}
|
|
3765
3768
|
}
|
|
3766
3769
|
render() {
|
|
3767
|
-
return (hAsync(Host, { key: '
|
|
3770
|
+
return (hAsync(Host, { key: '7bdd177a6b7064ed12cabeb21d96b0a0cc6071ae', id: this.componentId, class: Object.assign({}, this.classNames()) }, this.renderAvatar()));
|
|
3768
3771
|
}
|
|
3769
3772
|
static get style() { return pdsAvatarCss; }
|
|
3770
3773
|
static get cmpMeta() { return {
|
|
@@ -4395,6 +4398,19 @@ function exposeTypeProperty(element, type) {
|
|
|
4395
4398
|
configurable: false
|
|
4396
4399
|
});
|
|
4397
4400
|
}
|
|
4401
|
+
/**
|
|
4402
|
+
* Determines if code is running in Stencil's spec test environment.
|
|
4403
|
+
* Stencil's mock-doc logs console.error on any ElementInternals
|
|
4404
|
+
* property access during spec tests. Use this guard to skip
|
|
4405
|
+
* ElementInternals calls in the mock environment.
|
|
4406
|
+
*
|
|
4407
|
+
* Uses __STENCIL_SPEC_TESTS__ (the same env var Stencil's mock-doc checks)
|
|
4408
|
+
* to avoid false positives in downstream consumer test suites.
|
|
4409
|
+
*/
|
|
4410
|
+
const isSpecTest = () => {
|
|
4411
|
+
var _a;
|
|
4412
|
+
return typeof process !== 'undefined' && ((_a = process.env) === null || _a === void 0 ? void 0 : _a.__STENCIL_SPEC_TESTS__) === 'true';
|
|
4413
|
+
};
|
|
4398
4414
|
|
|
4399
4415
|
/**
|
|
4400
4416
|
* Inherit attributes from the host element
|
|
@@ -4542,10 +4558,8 @@ class PdsCheckbox {
|
|
|
4542
4558
|
this.updateFormValue();
|
|
4543
4559
|
}
|
|
4544
4560
|
updateFormValue() {
|
|
4545
|
-
|
|
4546
|
-
if (typeof jest !== 'undefined' || typeof process !== 'undefined' && ((_a = process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) === 'test') {
|
|
4561
|
+
if (isSpecTest())
|
|
4547
4562
|
return;
|
|
4548
|
-
}
|
|
4549
4563
|
if (this.internals && this.internals.setFormValue) {
|
|
4550
4564
|
// For checkboxes, only send the value when checked, otherwise send null
|
|
4551
4565
|
const formValue = this.checked ? (this.value || 'on') : null;
|
|
@@ -4570,9 +4584,9 @@ class PdsCheckbox {
|
|
|
4570
4584
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
4571
4585
|
}
|
|
4572
4586
|
render() {
|
|
4573
|
-
return (hAsync(Host, { key: '
|
|
4574
|
-
hAsync("div", { key: '
|
|
4575
|
-
hAsync("div", { key: '
|
|
4587
|
+
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 &&
|
|
4588
|
+
hAsync("div", { key: '76f40eba1d92ffcdb9946c8cc17714bda421a8a7', class: 'pds-checkbox__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
4589
|
+
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)));
|
|
4576
4590
|
}
|
|
4577
4591
|
static get formAssociated() { return true; }
|
|
4578
4592
|
get el() { return getElement(this); }
|
|
@@ -4609,6 +4623,7 @@ const pdsChipCss = ":host{--sizing-close:var(--pine-dimension-125);-ms-flex-alig
|
|
|
4609
4623
|
|
|
4610
4624
|
/**
|
|
4611
4625
|
* @slot (default) - The chip's label text.
|
|
4626
|
+
* @part button
|
|
4612
4627
|
*/
|
|
4613
4628
|
class PdsChip {
|
|
4614
4629
|
constructor(hostRef) {
|
|
@@ -4727,7 +4742,7 @@ class PdsChip {
|
|
|
4727
4742
|
return (hAsync(CloseElement, Object.assign({}, closeAttributes(), { onClick: this.handleCloseClick }), hAsync("pds-icon", { icon: remove, size: this.iconSize })));
|
|
4728
4743
|
}
|
|
4729
4744
|
render() {
|
|
4730
|
-
return (hAsync(Host, { key: '
|
|
4745
|
+
return (hAsync(Host, { key: '1d75f8ea7583f53191467b568352664ea0313c79', class: this.classNames(), id: this.componentId }, this.setChipContent(), this.effectiveVariant === 'tag' && this.renderCloseButton()));
|
|
4731
4746
|
}
|
|
4732
4747
|
static get style() { return pdsChipTokensCss + pdsChipCss; }
|
|
4733
4748
|
static get cmpMeta() { return {
|
|
@@ -4770,10 +4785,6 @@ const oppositeSideMap = {
|
|
|
4770
4785
|
bottom: 'top',
|
|
4771
4786
|
top: 'bottom'
|
|
4772
4787
|
};
|
|
4773
|
-
const oppositeAlignmentMap = {
|
|
4774
|
-
start: 'end',
|
|
4775
|
-
end: 'start'
|
|
4776
|
-
};
|
|
4777
4788
|
function clamp(start, value, end) {
|
|
4778
4789
|
return max(start, min(value, end));
|
|
4779
4790
|
}
|
|
@@ -4792,9 +4803,9 @@ function getOppositeAxis(axis) {
|
|
|
4792
4803
|
function getAxisLength(axis) {
|
|
4793
4804
|
return axis === 'y' ? 'height' : 'width';
|
|
4794
4805
|
}
|
|
4795
|
-
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
4796
4806
|
function getSideAxis(placement) {
|
|
4797
|
-
|
|
4807
|
+
const firstChar = placement[0];
|
|
4808
|
+
return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
|
|
4798
4809
|
}
|
|
4799
4810
|
function getAlignmentAxis(placement) {
|
|
4800
4811
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -4817,7 +4828,7 @@ function getExpandedPlacements(placement) {
|
|
|
4817
4828
|
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
4818
4829
|
}
|
|
4819
4830
|
function getOppositeAlignmentPlacement(placement) {
|
|
4820
|
-
return placement.replace(
|
|
4831
|
+
return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
|
|
4821
4832
|
}
|
|
4822
4833
|
const lrPlacement = ['left', 'right'];
|
|
4823
4834
|
const rlPlacement = ['right', 'left'];
|
|
@@ -4848,7 +4859,8 @@ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
|
4848
4859
|
return list;
|
|
4849
4860
|
}
|
|
4850
4861
|
function getOppositePlacement(placement) {
|
|
4851
|
-
|
|
4862
|
+
const side = getSide(placement);
|
|
4863
|
+
return oppositeSideMap[side] + placement.slice(side.length);
|
|
4852
4864
|
}
|
|
4853
4865
|
function expandPaddingObject(padding) {
|
|
4854
4866
|
return {
|
|
@@ -4942,6 +4954,74 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
4942
4954
|
return coords;
|
|
4943
4955
|
}
|
|
4944
4956
|
|
|
4957
|
+
/**
|
|
4958
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
|
4959
|
+
* element is overflowing a given clipping boundary on each side.
|
|
4960
|
+
* - positive = overflowing the boundary by that number of pixels
|
|
4961
|
+
* - negative = how many pixels left before it will overflow
|
|
4962
|
+
* - 0 = lies flush with the boundary
|
|
4963
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
|
4964
|
+
*/
|
|
4965
|
+
async function detectOverflow(state, options) {
|
|
4966
|
+
var _await$platform$isEle;
|
|
4967
|
+
if (options === void 0) {
|
|
4968
|
+
options = {};
|
|
4969
|
+
}
|
|
4970
|
+
const {
|
|
4971
|
+
x,
|
|
4972
|
+
y,
|
|
4973
|
+
platform,
|
|
4974
|
+
rects,
|
|
4975
|
+
elements,
|
|
4976
|
+
strategy
|
|
4977
|
+
} = state;
|
|
4978
|
+
const {
|
|
4979
|
+
boundary = 'clippingAncestors',
|
|
4980
|
+
rootBoundary = 'viewport',
|
|
4981
|
+
elementContext = 'floating',
|
|
4982
|
+
altBoundary = false,
|
|
4983
|
+
padding = 0
|
|
4984
|
+
} = evaluate(options, state);
|
|
4985
|
+
const paddingObject = getPaddingObject(padding);
|
|
4986
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
4987
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
4988
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
4989
|
+
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))),
|
|
4990
|
+
boundary,
|
|
4991
|
+
rootBoundary,
|
|
4992
|
+
strategy
|
|
4993
|
+
}));
|
|
4994
|
+
const rect = elementContext === 'floating' ? {
|
|
4995
|
+
x,
|
|
4996
|
+
y,
|
|
4997
|
+
width: rects.floating.width,
|
|
4998
|
+
height: rects.floating.height
|
|
4999
|
+
} : rects.reference;
|
|
5000
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
5001
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
5002
|
+
x: 1,
|
|
5003
|
+
y: 1
|
|
5004
|
+
} : {
|
|
5005
|
+
x: 1,
|
|
5006
|
+
y: 1
|
|
5007
|
+
};
|
|
5008
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
5009
|
+
elements,
|
|
5010
|
+
rect,
|
|
5011
|
+
offsetParent,
|
|
5012
|
+
strategy
|
|
5013
|
+
}) : rect);
|
|
5014
|
+
return {
|
|
5015
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
5016
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
5017
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
5018
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
5019
|
+
};
|
|
5020
|
+
}
|
|
5021
|
+
|
|
5022
|
+
// Maximum number of resets that can occur before bailing to avoid infinite reset loops.
|
|
5023
|
+
const MAX_RESET_COUNT = 50;
|
|
5024
|
+
|
|
4945
5025
|
/**
|
|
4946
5026
|
* Computes the `x` and `y` coordinates that will place the floating element
|
|
4947
5027
|
* next to a given reference element.
|
|
@@ -4956,7 +5036,10 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
4956
5036
|
middleware = [],
|
|
4957
5037
|
platform
|
|
4958
5038
|
} = config;
|
|
4959
|
-
const
|
|
5039
|
+
const platformWithDetectOverflow = platform.detectOverflow ? platform : {
|
|
5040
|
+
...platform,
|
|
5041
|
+
detectOverflow
|
|
5042
|
+
};
|
|
4960
5043
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
4961
5044
|
let rects = await platform.getElementRects({
|
|
4962
5045
|
reference,
|
|
@@ -4968,13 +5051,17 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
4968
5051
|
y
|
|
4969
5052
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
4970
5053
|
let statefulPlacement = placement;
|
|
4971
|
-
let middlewareData = {};
|
|
4972
5054
|
let resetCount = 0;
|
|
4973
|
-
|
|
5055
|
+
const middlewareData = {};
|
|
5056
|
+
for (let i = 0; i < middleware.length; i++) {
|
|
5057
|
+
const currentMiddleware = middleware[i];
|
|
5058
|
+
if (!currentMiddleware) {
|
|
5059
|
+
continue;
|
|
5060
|
+
}
|
|
4974
5061
|
const {
|
|
4975
5062
|
name,
|
|
4976
5063
|
fn
|
|
4977
|
-
} =
|
|
5064
|
+
} = currentMiddleware;
|
|
4978
5065
|
const {
|
|
4979
5066
|
x: nextX,
|
|
4980
5067
|
y: nextY,
|
|
@@ -4988,7 +5075,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
4988
5075
|
strategy,
|
|
4989
5076
|
middlewareData,
|
|
4990
5077
|
rects,
|
|
4991
|
-
platform,
|
|
5078
|
+
platform: platformWithDetectOverflow,
|
|
4992
5079
|
elements: {
|
|
4993
5080
|
reference,
|
|
4994
5081
|
floating
|
|
@@ -4996,14 +5083,11 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
4996
5083
|
});
|
|
4997
5084
|
x = nextX != null ? nextX : x;
|
|
4998
5085
|
y = nextY != null ? nextY : y;
|
|
4999
|
-
middlewareData = {
|
|
5000
|
-
...middlewareData,
|
|
5001
|
-
|
|
5002
|
-
...middlewareData[name],
|
|
5003
|
-
...data
|
|
5004
|
-
}
|
|
5086
|
+
middlewareData[name] = {
|
|
5087
|
+
...middlewareData[name],
|
|
5088
|
+
...data
|
|
5005
5089
|
};
|
|
5006
|
-
if (reset && resetCount
|
|
5090
|
+
if (reset && resetCount < MAX_RESET_COUNT) {
|
|
5007
5091
|
resetCount++;
|
|
5008
5092
|
if (typeof reset === 'object') {
|
|
5009
5093
|
if (reset.placement) {
|
|
@@ -5033,71 +5117,6 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
5033
5117
|
};
|
|
5034
5118
|
};
|
|
5035
5119
|
|
|
5036
|
-
/**
|
|
5037
|
-
* Resolves with an object of overflow side offsets that determine how much the
|
|
5038
|
-
* element is overflowing a given clipping boundary on each side.
|
|
5039
|
-
* - positive = overflowing the boundary by that number of pixels
|
|
5040
|
-
* - negative = how many pixels left before it will overflow
|
|
5041
|
-
* - 0 = lies flush with the boundary
|
|
5042
|
-
* @see https://floating-ui.com/docs/detectOverflow
|
|
5043
|
-
*/
|
|
5044
|
-
async function detectOverflow(state, options) {
|
|
5045
|
-
var _await$platform$isEle;
|
|
5046
|
-
if (options === void 0) {
|
|
5047
|
-
options = {};
|
|
5048
|
-
}
|
|
5049
|
-
const {
|
|
5050
|
-
x,
|
|
5051
|
-
y,
|
|
5052
|
-
platform,
|
|
5053
|
-
rects,
|
|
5054
|
-
elements,
|
|
5055
|
-
strategy
|
|
5056
|
-
} = state;
|
|
5057
|
-
const {
|
|
5058
|
-
boundary = 'clippingAncestors',
|
|
5059
|
-
rootBoundary = 'viewport',
|
|
5060
|
-
elementContext = 'floating',
|
|
5061
|
-
altBoundary = false,
|
|
5062
|
-
padding = 0
|
|
5063
|
-
} = evaluate(options, state);
|
|
5064
|
-
const paddingObject = getPaddingObject(padding);
|
|
5065
|
-
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
5066
|
-
const element = elements[altBoundary ? altContext : elementContext];
|
|
5067
|
-
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
5068
|
-
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))),
|
|
5069
|
-
boundary,
|
|
5070
|
-
rootBoundary,
|
|
5071
|
-
strategy
|
|
5072
|
-
}));
|
|
5073
|
-
const rect = elementContext === 'floating' ? {
|
|
5074
|
-
x,
|
|
5075
|
-
y,
|
|
5076
|
-
width: rects.floating.width,
|
|
5077
|
-
height: rects.floating.height
|
|
5078
|
-
} : rects.reference;
|
|
5079
|
-
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
5080
|
-
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
5081
|
-
x: 1,
|
|
5082
|
-
y: 1
|
|
5083
|
-
} : {
|
|
5084
|
-
x: 1,
|
|
5085
|
-
y: 1
|
|
5086
|
-
};
|
|
5087
|
-
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
5088
|
-
elements,
|
|
5089
|
-
rect,
|
|
5090
|
-
offsetParent,
|
|
5091
|
-
strategy
|
|
5092
|
-
}) : rect);
|
|
5093
|
-
return {
|
|
5094
|
-
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
5095
|
-
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
5096
|
-
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
5097
|
-
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
5098
|
-
};
|
|
5099
|
-
}
|
|
5100
|
-
|
|
5101
5120
|
/**
|
|
5102
5121
|
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
5103
5122
|
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
@@ -5148,7 +5167,7 @@ const flip$1 = function (options) {
|
|
|
5148
5167
|
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
5149
5168
|
}
|
|
5150
5169
|
const placements = [initialPlacement, ...fallbackPlacements];
|
|
5151
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
5170
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
5152
5171
|
const overflows = [];
|
|
5153
5172
|
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
5154
5173
|
if (checkMainAxis) {
|
|
@@ -5332,7 +5351,8 @@ const shift$1 = function (options) {
|
|
|
5332
5351
|
const {
|
|
5333
5352
|
x,
|
|
5334
5353
|
y,
|
|
5335
|
-
placement
|
|
5354
|
+
placement,
|
|
5355
|
+
platform
|
|
5336
5356
|
} = state;
|
|
5337
5357
|
const {
|
|
5338
5358
|
mainAxis: checkMainAxis = true,
|
|
@@ -5355,7 +5375,7 @@ const shift$1 = function (options) {
|
|
|
5355
5375
|
x,
|
|
5356
5376
|
y
|
|
5357
5377
|
};
|
|
5358
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
5378
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
5359
5379
|
const crossAxis = getSideAxis(getSide(placement));
|
|
5360
5380
|
const mainAxis = getOppositeAxis(crossAxis);
|
|
5361
5381
|
let mainAxisCoord = coords[mainAxis];
|
|
@@ -5419,7 +5439,7 @@ const size$1 = function (options) {
|
|
|
5419
5439
|
apply = () => {},
|
|
5420
5440
|
...detectOverflowOptions
|
|
5421
5441
|
} = evaluate(options, state);
|
|
5422
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
5442
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
5423
5443
|
const side = getSide(placement);
|
|
5424
5444
|
const alignment = getAlignment(placement);
|
|
5425
5445
|
const isYAxis = getSideAxis(placement) === 'y';
|
|
@@ -5522,7 +5542,6 @@ function isShadowRoot(value) {
|
|
|
5522
5542
|
}
|
|
5523
5543
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
5524
5544
|
}
|
|
5525
|
-
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
5526
5545
|
function isOverflowElement(element) {
|
|
5527
5546
|
const {
|
|
5528
5547
|
overflow,
|
|
@@ -5530,32 +5549,35 @@ function isOverflowElement(element) {
|
|
|
5530
5549
|
overflowY,
|
|
5531
5550
|
display
|
|
5532
5551
|
} = getComputedStyle$1(element);
|
|
5533
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) &&
|
|
5552
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
|
|
5534
5553
|
}
|
|
5535
|
-
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
5536
5554
|
function isTableElement(element) {
|
|
5537
|
-
return
|
|
5555
|
+
return /^(table|td|th)$/.test(getNodeName(element));
|
|
5538
5556
|
}
|
|
5539
|
-
const topLayerSelectors = [':popover-open', ':modal'];
|
|
5540
5557
|
function isTopLayer(element) {
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
return
|
|
5544
|
-
} catch (_e) {
|
|
5545
|
-
return false;
|
|
5558
|
+
try {
|
|
5559
|
+
if (element.matches(':popover-open')) {
|
|
5560
|
+
return true;
|
|
5546
5561
|
}
|
|
5547
|
-
})
|
|
5562
|
+
} catch (_e) {
|
|
5563
|
+
// no-op
|
|
5564
|
+
}
|
|
5565
|
+
try {
|
|
5566
|
+
return element.matches(':modal');
|
|
5567
|
+
} catch (_e) {
|
|
5568
|
+
return false;
|
|
5569
|
+
}
|
|
5548
5570
|
}
|
|
5549
|
-
const
|
|
5550
|
-
const
|
|
5551
|
-
const
|
|
5571
|
+
const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
|
|
5572
|
+
const containRe = /paint|layout|strict|content/;
|
|
5573
|
+
const isNotNone = value => !!value && value !== 'none';
|
|
5574
|
+
let isWebKitValue;
|
|
5552
5575
|
function isContainingBlock(elementOrCss) {
|
|
5553
|
-
const webkit = isWebKit();
|
|
5554
5576
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
5555
5577
|
|
|
5556
5578
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
5557
5579
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
5558
|
-
return
|
|
5580
|
+
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 || '');
|
|
5559
5581
|
}
|
|
5560
5582
|
function getContainingBlock(element) {
|
|
5561
5583
|
let currentNode = getParentNode(element);
|
|
@@ -5570,12 +5592,13 @@ function getContainingBlock(element) {
|
|
|
5570
5592
|
return null;
|
|
5571
5593
|
}
|
|
5572
5594
|
function isWebKit() {
|
|
5573
|
-
if (
|
|
5574
|
-
|
|
5595
|
+
if (isWebKitValue == null) {
|
|
5596
|
+
isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
|
|
5597
|
+
}
|
|
5598
|
+
return isWebKitValue;
|
|
5575
5599
|
}
|
|
5576
|
-
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
5577
5600
|
function isLastTraversableNode(node) {
|
|
5578
|
-
return
|
|
5601
|
+
return /^(html|body|#document)$/.test(getNodeName(node));
|
|
5579
5602
|
}
|
|
5580
5603
|
function getComputedStyle$1(element) {
|
|
5581
5604
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -5631,8 +5654,9 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
5631
5654
|
if (isBody) {
|
|
5632
5655
|
const frameElement = getFrameElement(win);
|
|
5633
5656
|
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
5657
|
+
} else {
|
|
5658
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
5634
5659
|
}
|
|
5635
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
5636
5660
|
}
|
|
5637
5661
|
function getFrameElement(win) {
|
|
5638
5662
|
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
@@ -5809,7 +5833,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
5809
5833
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
5810
5834
|
scroll = getNodeScroll(offsetParent);
|
|
5811
5835
|
}
|
|
5812
|
-
if (
|
|
5836
|
+
if (isOffsetParentAnElement) {
|
|
5813
5837
|
const offsetRect = getBoundingClientRect(offsetParent);
|
|
5814
5838
|
scale = getScale(offsetParent);
|
|
5815
5839
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
@@ -5897,7 +5921,6 @@ function getViewportRect(element, strategy) {
|
|
|
5897
5921
|
};
|
|
5898
5922
|
}
|
|
5899
5923
|
|
|
5900
|
-
const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
|
|
5901
5924
|
// Returns the inner client rect, subtracting scrollbars if present.
|
|
5902
5925
|
function getInnerBoundingClientRect(element, strategy) {
|
|
5903
5926
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
@@ -5962,7 +5985,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
5962
5985
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
5963
5986
|
currentContainingBlockComputedStyle = null;
|
|
5964
5987
|
}
|
|
5965
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle &&
|
|
5988
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === 'absolute' || currentContainingBlockComputedStyle.position === 'fixed') || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
5966
5989
|
if (shouldDropCurrentNode) {
|
|
5967
5990
|
// Drop non-containing blocks.
|
|
5968
5991
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -5987,20 +6010,23 @@ function getClippingRect(_ref) {
|
|
|
5987
6010
|
} = _ref;
|
|
5988
6011
|
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
5989
6012
|
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
5990
|
-
const
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
6013
|
+
const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
|
|
6014
|
+
let top = firstRect.top;
|
|
6015
|
+
let right = firstRect.right;
|
|
6016
|
+
let bottom = firstRect.bottom;
|
|
6017
|
+
let left = firstRect.left;
|
|
6018
|
+
for (let i = 1; i < clippingAncestors.length; i++) {
|
|
6019
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
|
|
6020
|
+
top = max(rect.top, top);
|
|
6021
|
+
right = min(rect.right, right);
|
|
6022
|
+
bottom = min(rect.bottom, bottom);
|
|
6023
|
+
left = max(rect.left, left);
|
|
6024
|
+
}
|
|
5999
6025
|
return {
|
|
6000
|
-
width:
|
|
6001
|
-
height:
|
|
6002
|
-
x:
|
|
6003
|
-
y:
|
|
6026
|
+
width: right - left,
|
|
6027
|
+
height: bottom - top,
|
|
6028
|
+
x: left,
|
|
6029
|
+
y: top
|
|
6004
6030
|
};
|
|
6005
6031
|
}
|
|
6006
6032
|
|
|
@@ -6251,7 +6277,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
6251
6277
|
animationFrame = false
|
|
6252
6278
|
} = options;
|
|
6253
6279
|
const referenceEl = unwrapElement(reference);
|
|
6254
|
-
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
|
6280
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];
|
|
6255
6281
|
ancestors.forEach(ancestor => {
|
|
6256
6282
|
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
6257
6283
|
passive: true
|
|
@@ -6264,7 +6290,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
6264
6290
|
if (elementResize) {
|
|
6265
6291
|
resizeObserver = new ResizeObserver(_ref => {
|
|
6266
6292
|
let [firstEntry] = _ref;
|
|
6267
|
-
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
6293
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
|
|
6268
6294
|
// Prevent update loops when using the `size` middleware.
|
|
6269
6295
|
// https://github.com/floating-ui/floating-ui/issues/1740
|
|
6270
6296
|
resizeObserver.unobserve(floating);
|
|
@@ -6279,7 +6305,9 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
6279
6305
|
if (referenceEl && !animationFrame) {
|
|
6280
6306
|
resizeObserver.observe(referenceEl);
|
|
6281
6307
|
}
|
|
6282
|
-
|
|
6308
|
+
if (floating) {
|
|
6309
|
+
resizeObserver.observe(floating);
|
|
6310
|
+
}
|
|
6283
6311
|
}
|
|
6284
6312
|
let frameId;
|
|
6285
6313
|
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
@@ -6365,7 +6393,7 @@ const computePosition = (reference, floating, options) => {
|
|
|
6365
6393
|
});
|
|
6366
6394
|
};
|
|
6367
6395
|
|
|
6368
|
-
/*! @license DOMPurify 3.3.
|
|
6396
|
+
/*! @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 */
|
|
6369
6397
|
|
|
6370
6398
|
const {
|
|
6371
6399
|
entries,
|
|
@@ -6663,7 +6691,7 @@ const _createHooksMap = function _createHooksMap() {
|
|
|
6663
6691
|
function createDOMPurify() {
|
|
6664
6692
|
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
6665
6693
|
const DOMPurify = root => createDOMPurify(root);
|
|
6666
|
-
DOMPurify.version = '3.3.
|
|
6694
|
+
DOMPurify.version = '3.3.3';
|
|
6667
6695
|
DOMPurify.removed = [];
|
|
6668
6696
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
6669
6697
|
// Not running in a browser, provide a factory function
|
|
@@ -6958,7 +6986,7 @@ function createDOMPurify() {
|
|
|
6958
6986
|
/* Parse profile info */
|
|
6959
6987
|
if (USE_PROFILES) {
|
|
6960
6988
|
ALLOWED_TAGS = addToSet({}, text);
|
|
6961
|
-
ALLOWED_ATTR =
|
|
6989
|
+
ALLOWED_ATTR = create(null);
|
|
6962
6990
|
if (USE_PROFILES.html === true) {
|
|
6963
6991
|
addToSet(ALLOWED_TAGS, html$1);
|
|
6964
6992
|
addToSet(ALLOWED_ATTR, html);
|
|
@@ -6979,6 +7007,13 @@ function createDOMPurify() {
|
|
|
6979
7007
|
addToSet(ALLOWED_ATTR, xml);
|
|
6980
7008
|
}
|
|
6981
7009
|
}
|
|
7010
|
+
/* Prevent function-based ADD_ATTR / ADD_TAGS from leaking across calls */
|
|
7011
|
+
if (!objectHasOwnProperty(cfg, 'ADD_TAGS')) {
|
|
7012
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = null;
|
|
7013
|
+
}
|
|
7014
|
+
if (!objectHasOwnProperty(cfg, 'ADD_ATTR')) {
|
|
7015
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = null;
|
|
7016
|
+
}
|
|
6982
7017
|
/* Merge configuration parameters */
|
|
6983
7018
|
if (cfg.ADD_TAGS) {
|
|
6984
7019
|
if (typeof cfg.ADD_TAGS === 'function') {
|
|
@@ -7376,6 +7411,10 @@ function createDOMPurify() {
|
|
|
7376
7411
|
*/
|
|
7377
7412
|
// eslint-disable-next-line complexity
|
|
7378
7413
|
const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
|
7414
|
+
/* FORBID_ATTR must always win, even if ADD_ATTR predicate would allow it */
|
|
7415
|
+
if (FORBID_ATTR[lcName]) {
|
|
7416
|
+
return false;
|
|
7417
|
+
}
|
|
7379
7418
|
/* Make sure attribute cannot clobber */
|
|
7380
7419
|
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
|
|
7381
7420
|
return false;
|
|
@@ -7468,7 +7507,7 @@ function createDOMPurify() {
|
|
|
7468
7507
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
7469
7508
|
}
|
|
7470
7509
|
/* Work around a security issue with comments inside attributes */
|
|
7471
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
|
|
7510
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
|
|
7472
7511
|
_removeAttribute(name, currentNode);
|
|
7473
7512
|
continue;
|
|
7474
7513
|
}
|
|
@@ -7740,7 +7779,7 @@ function createDOMPurify() {
|
|
|
7740
7779
|
}
|
|
7741
7780
|
var purify = createDOMPurify();
|
|
7742
7781
|
|
|
7743
|
-
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)}";
|
|
7782
|
+
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)}";
|
|
7744
7783
|
|
|
7745
7784
|
/**
|
|
7746
7785
|
* @slot option - Option elements for the combobox dropdown
|
|
@@ -7783,7 +7822,8 @@ class PdsCombobox {
|
|
|
7783
7822
|
this.dropdownWidth = '236px';
|
|
7784
7823
|
/**
|
|
7785
7824
|
* Visually hides the label text for instances where only the combobox should be displayed.
|
|
7786
|
-
*
|
|
7825
|
+
* The visible `<label>` is omitted (same pattern as `pds-select`) so label spacing does not reserve layout;
|
|
7826
|
+
* the trigger uses `aria-label` so the name stays available to assistive technology.
|
|
7787
7827
|
*/
|
|
7788
7828
|
this.hideLabel = false;
|
|
7789
7829
|
/**
|
|
@@ -7806,6 +7846,12 @@ class PdsCombobox {
|
|
|
7806
7846
|
* @default 'secondary'
|
|
7807
7847
|
*/
|
|
7808
7848
|
this.triggerVariant = 'secondary';
|
|
7849
|
+
/**
|
|
7850
|
+
* The shape of the button trigger. Use 'input' to render the trigger with input-like styling
|
|
7851
|
+
* (subtle border radius, input height) for use in form or filter rows alongside PdsSelect and PdsMultiselect.
|
|
7852
|
+
* @default 'pill'
|
|
7853
|
+
*/
|
|
7854
|
+
this.triggerShape = 'pill';
|
|
7809
7855
|
/**
|
|
7810
7856
|
* The sentiment for the chip trigger. Matches Pine chip sentiments.
|
|
7811
7857
|
* @default 'neutral'
|
|
@@ -8156,14 +8202,7 @@ class PdsCombobox {
|
|
|
8156
8202
|
}
|
|
8157
8203
|
}
|
|
8158
8204
|
// Initialize form value with current value
|
|
8159
|
-
|
|
8160
|
-
try {
|
|
8161
|
-
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 : '');
|
|
8162
|
-
}
|
|
8163
|
-
catch (e) {
|
|
8164
|
-
// ElementInternals.setFormValue not available in unit tests
|
|
8165
|
-
}
|
|
8166
|
-
}
|
|
8205
|
+
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 : '');
|
|
8167
8206
|
}
|
|
8168
8207
|
disconnectedCallback() {
|
|
8169
8208
|
var _a;
|
|
@@ -8185,14 +8224,7 @@ class PdsCombobox {
|
|
|
8185
8224
|
handleValueChange() {
|
|
8186
8225
|
this.filterOptions();
|
|
8187
8226
|
// Sync with form internals for form association
|
|
8188
|
-
|
|
8189
|
-
try {
|
|
8190
|
-
this.internals.setFormValue(this.value);
|
|
8191
|
-
}
|
|
8192
|
-
catch (e) {
|
|
8193
|
-
// ElementInternals.setFormValue not available in unit tests
|
|
8194
|
-
}
|
|
8195
|
-
}
|
|
8227
|
+
this.updateFormValue(this.value);
|
|
8196
8228
|
// Find and select option that matches the value (for external value changes)
|
|
8197
8229
|
// Only do this if we're not already updating from a selection
|
|
8198
8230
|
if (!this.isUpdatingFromSelection && this.value && this.optionEls.length > 0) {
|
|
@@ -8225,26 +8257,19 @@ class PdsCombobox {
|
|
|
8225
8257
|
this.displayText = this.getOptionLabel(this.selectedOption);
|
|
8226
8258
|
this.value = this.selectedOption.value;
|
|
8227
8259
|
// Update form internals with the actual option value
|
|
8228
|
-
|
|
8229
|
-
try {
|
|
8230
|
-
this.internals.setFormValue(this.selectedOption.value);
|
|
8231
|
-
}
|
|
8232
|
-
catch (e) {
|
|
8233
|
-
// ElementInternals.setFormValue not available in unit tests
|
|
8234
|
-
}
|
|
8235
|
-
}
|
|
8260
|
+
this.updateFormValue(this.selectedOption.value);
|
|
8236
8261
|
}
|
|
8237
8262
|
else {
|
|
8238
8263
|
this.displayText = '';
|
|
8239
8264
|
this.value = '';
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8265
|
+
this.updateFormValue('');
|
|
8266
|
+
}
|
|
8267
|
+
}
|
|
8268
|
+
updateFormValue(value) {
|
|
8269
|
+
if (isSpecTest())
|
|
8270
|
+
return;
|
|
8271
|
+
if (this.internals && this.internals.setFormValue) {
|
|
8272
|
+
this.internals.setFormValue(value);
|
|
8248
8273
|
}
|
|
8249
8274
|
}
|
|
8250
8275
|
clearAsyncFetchState() {
|
|
@@ -8992,11 +9017,17 @@ class PdsCombobox {
|
|
|
8992
9017
|
large: chipProps.large, icon: chipProps.icon, dot: chipProps.dot, class: "pds-combobox__option-chip" }, this.getOptionLabel(option)));
|
|
8993
9018
|
}
|
|
8994
9019
|
render() {
|
|
8995
|
-
const triggerClass =
|
|
8996
|
-
|
|
9020
|
+
const triggerClass = [
|
|
9021
|
+
'pds-combobox__button-trigger',
|
|
9022
|
+
`pds-combobox__button-trigger--${this.triggerVariant}`,
|
|
9023
|
+
this.triggerShape === 'input' && 'pds-combobox__button-trigger--input-shape',
|
|
9024
|
+
]
|
|
9025
|
+
.filter(Boolean)
|
|
9026
|
+
.join(' ');
|
|
9027
|
+
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 => {
|
|
8997
9028
|
this.inputEl = el;
|
|
8998
9029
|
this.triggerEl = el;
|
|
8999
|
-
}, 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: '
|
|
9030
|
+
}, 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())));
|
|
9000
9031
|
}
|
|
9001
9032
|
static get formAssociated() { return true; }
|
|
9002
9033
|
get el() { return getElement(this); }
|
|
@@ -9026,6 +9057,7 @@ class PdsCombobox {
|
|
|
9026
9057
|
"trigger": [1],
|
|
9027
9058
|
"triggerWidth": [1, "trigger-width"],
|
|
9028
9059
|
"triggerVariant": [1, "trigger-variant"],
|
|
9060
|
+
"triggerShape": [1, "trigger-shape"],
|
|
9029
9061
|
"chipSentiment": [1, "chip-sentiment"],
|
|
9030
9062
|
"chipLarge": [4, "chip-large"],
|
|
9031
9063
|
"chipIcon": [1, "chip-icon"],
|
|
@@ -9387,7 +9419,7 @@ class PdsCopytext {
|
|
|
9387
9419
|
return classNames.join(' ');
|
|
9388
9420
|
}
|
|
9389
9421
|
render() {
|
|
9390
|
-
return (hAsync(Host, { key: '
|
|
9422
|
+
return (hAsync(Host, { key: '782932e4b45129ffc8e55852060bdf0104563e2f', class: this.classNames(), id: this.componentId }, hAsync("pds-button", { key: '87c8cd8bfc2bd6fb4f5e2f1e72f48b98ca05116b', type: "button", variant: "unstyled", onClick: this.handleClick }, hAsync("span", { key: '02bb0538feebdd008c5ae7329c9bbf575920eef9', ref: (el) => this.valueSpanEl = el }, this.value), hAsync("pds-icon", { key: 'e21547ada488242583549b3f4431b6c652752365', icon: copy, size: "16px" }))));
|
|
9391
9423
|
}
|
|
9392
9424
|
get el() { return getElement(this); }
|
|
9393
9425
|
static get watchers() { return {
|
|
@@ -9434,7 +9466,7 @@ class PdsDivider {
|
|
|
9434
9466
|
return classNames.join(' ');
|
|
9435
9467
|
}
|
|
9436
9468
|
render() {
|
|
9437
|
-
return (hAsync(Host, { key: '
|
|
9469
|
+
return (hAsync(Host, { key: 'ff38715a9610e1812c2f9fc948c4f19bc1266b3c', id: this.componentId }, hAsync("hr", { key: 'd67a971d8be8f1739066013213787cf50a06319f', class: this.classNames() })));
|
|
9438
9470
|
}
|
|
9439
9471
|
static get style() { return pdsDividerCss; }
|
|
9440
9472
|
static get cmpMeta() { return {
|
|
@@ -9760,7 +9792,7 @@ class PdsDropdownMenu {
|
|
|
9760
9792
|
}
|
|
9761
9793
|
}
|
|
9762
9794
|
render() {
|
|
9763
|
-
return (hAsync(Host, { key: '
|
|
9795
|
+
return (hAsync(Host, { key: '36db1447aedd341d0692a63b7ade9d4b6a2ce915', id: this.componentId }, hAsync("slot", { key: '6e66d5227b9432a2c4721f9278b15cb6d85c0dda', name: "trigger", onSlotchange: this.handleTriggerSlotChange }), hAsync("pds-box", { key: '4376cc05df741766135ad3f64c48949a7768c977', "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: '10e185fcdad6cb38abb6317b302ff457e4cc77e3', onSlotchange: this.handleSlotChange }))));
|
|
9764
9796
|
}
|
|
9765
9797
|
get host() { return getElement(this); }
|
|
9766
9798
|
static get style() { return pdsDropdownMenuCss; }
|
|
@@ -9780,6 +9812,9 @@ class PdsDropdownMenu {
|
|
|
9780
9812
|
|
|
9781
9813
|
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)}";
|
|
9782
9814
|
|
|
9815
|
+
/**
|
|
9816
|
+
* @part button
|
|
9817
|
+
*/
|
|
9783
9818
|
class PdsDropdownMenuItem {
|
|
9784
9819
|
constructor(hostRef) {
|
|
9785
9820
|
registerInstance(this, hostRef);
|
|
@@ -9852,7 +9887,7 @@ class PdsDropdownMenuItem {
|
|
|
9852
9887
|
}, 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)));
|
|
9853
9888
|
}
|
|
9854
9889
|
render() {
|
|
9855
|
-
return (hAsync(Host, { key: '
|
|
9890
|
+
return (hAsync(Host, { key: 'f580ec794a1e06c5384ac88ba935515f28a3e0f9', 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()));
|
|
9856
9891
|
}
|
|
9857
9892
|
get host() { return getElement(this); }
|
|
9858
9893
|
static get style() { return pdsDropdownMenuItemCss; }
|
|
@@ -9888,7 +9923,7 @@ class PdsDropdownMenuSeparator {
|
|
|
9888
9923
|
this.disabled = false;
|
|
9889
9924
|
}
|
|
9890
9925
|
render() {
|
|
9891
|
-
return (hAsync(Host, { key: '
|
|
9926
|
+
return (hAsync(Host, { key: 'a8480ce2974db190161dab43a7af75520019d5d1', id: this.componentId }, hAsync("hr", { key: 'a8296c39676d4270f8519ce59af85dcde35586ec' })));
|
|
9892
9927
|
}
|
|
9893
9928
|
static get style() { return pdsDropdownMenuSeparatorCss; }
|
|
9894
9929
|
static get cmpMeta() { return {
|
|
@@ -10391,7 +10426,7 @@ class PdsFilter {
|
|
|
10391
10426
|
return null;
|
|
10392
10427
|
}
|
|
10393
10428
|
render() {
|
|
10394
|
-
return (hAsync(Host, { key: '
|
|
10429
|
+
return (hAsync(Host, { key: '490e62f7906de343b3944be884321007172e6b66', id: this.componentId }, hAsync("button", { key: '060673c00c7b8043fb1ce52d6eeb79fb663c560f', 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: '1a307b1f1e0fded0fe3fa934e20e62998fc82c82', class: "pds-filter__button-content", part: "button-content" }, this.renderIcon(), this.text && (hAsync("span", { key: '11a7ff15dfb2cd13f9d4a75255881dda260e88d2', class: "pds-filter__button-text", part: "button-text" }, this.text)), this.renderDropdownIcon())), this.variant !== 'clear' && (hAsync("div", { key: 'bde162f9cf0d0a69debe7adb2e7261d8713806c0', ref: el => this.popoverEl = el, id: `${this.componentId}-popover`, class: "pds-filter__popover", popover: "auto", part: "popover" }, hAsync("slot", { key: '9d41d268bdeab03d6e875a4a6bf322a40b50536b' })))));
|
|
10395
10430
|
}
|
|
10396
10431
|
get el() { return getElement(this); }
|
|
10397
10432
|
static get style() { return pdsFilterCss; }
|
|
@@ -10423,7 +10458,7 @@ class PdsFilters {
|
|
|
10423
10458
|
registerInstance(this, hostRef);
|
|
10424
10459
|
}
|
|
10425
10460
|
render() {
|
|
10426
|
-
return (hAsync(Host, { key: '
|
|
10461
|
+
return (hAsync(Host, { key: '2b5ed6a2d395f77f2ccc82f09cc197e055206cbd', id: this.componentId }, hAsync("div", { key: '8458c2a1cbdf872c2a2d51ca9fbb971528abb951', class: "pds-filters" }, hAsync("slot", { key: '732105a40f10ec5b2a4ea596ad840d13575e1760' }))));
|
|
10427
10462
|
}
|
|
10428
10463
|
static get style() { return pdsFiltersCss; }
|
|
10429
10464
|
static get cmpMeta() { return {
|
|
@@ -10886,9 +10921,9 @@ class PdsImage {
|
|
|
10886
10921
|
this.loading = 'eager';
|
|
10887
10922
|
}
|
|
10888
10923
|
render() {
|
|
10889
|
-
return (hAsync(Host, { key: '
|
|
10924
|
+
return (hAsync(Host, { key: '7ec6d6855757a2c0c9352f61e9eda7b3d6560eb7', class: {
|
|
10890
10925
|
'pds-image': true,
|
|
10891
|
-
}, id: this.componentId }, hAsync("img", { key: '
|
|
10926
|
+
}, id: this.componentId }, hAsync("img", { key: 'a22c91e0560dc85d603022975aa8f71b2406e34d', alt: this.alt, height: this.height, loading: this.loading, sizes: this.sizes, src: this.src, srcset: this.srcset, width: this.width })));
|
|
10892
10927
|
}
|
|
10893
10928
|
static get style() { return pdsImageCss; }
|
|
10894
10929
|
static get cmpMeta() { return {
|
|
@@ -11153,6 +11188,8 @@ class PdsInput {
|
|
|
11153
11188
|
* Updates the form value using ElementInternals API
|
|
11154
11189
|
*/
|
|
11155
11190
|
updateFormValue() {
|
|
11191
|
+
if (isSpecTest())
|
|
11192
|
+
return;
|
|
11156
11193
|
if (this.internals && this.internals.setFormValue) {
|
|
11157
11194
|
const value = this.getValue();
|
|
11158
11195
|
this.internals.setFormValue(value || null);
|
|
@@ -11203,7 +11240,7 @@ class PdsInput {
|
|
|
11203
11240
|
'has-prepend': this.hasPrepend,
|
|
11204
11241
|
'has-append': this.hasAppend,
|
|
11205
11242
|
};
|
|
11206
|
-
return (hAsync(Host, { key: '
|
|
11243
|
+
return (hAsync(Host, { key: '2d3ea3af8894fbf4b454d08928e26946722a5b4d', "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: 'fb01fe320faa3cce646d6b54435e4e12da38cf07', class: "pds-input" }, label && (hAsync("div", { key: '3ed35d66308e2c8d38bcedccd6b0f739872ae45e', class: "pds-input__label-wrapper" }, hAsync("label", { key: 'd82f20db4527a790ed6801a9de225e6eebe6d8b5', htmlFor: componentId, class: "pds-input__label" }, hAsync("span", { key: '5ad15bcb3d8ae37f9a62c4cb56a5159e3c754592', class: this.hideLabel ? 'visually-hidden' : '' }, label, this.required && hAsync("span", { key: '034d94201f2720374b1e40e9258def810ea228a0', class: "pds-input__required-indicator" }, " *"))), !this.hideLabel && this.renderAction())), hAsync("div", { key: 'ad6129ba1817039c163d574b3246bca929ebf978', class: inputWrapperClasses }, this.renderPrepend(), this.renderPrefix(), hAsync("input", Object.assign({ key: '92806f252756f9ca56dfed69f34e8e599b459261', 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: 'a7bfdb402e433815f7520cb1a9154abf33366f4e', class: "pds-input__helper-message", id: messageId(componentId, 'helper') }, helperMessage)), errorMessage && (hAsync("p", { key: 'fb7d5892e2b9b636a8441128e77436eea9429746', class: "pds-input__error-message", id: messageId(componentId, 'error') }, hAsync("pds-icon", { key: '5fa138752a9473272a2ae8f15db8707d07638986', icon: danger, size: "small" }), errorMessage)))));
|
|
11207
11244
|
}
|
|
11208
11245
|
static get formAssociated() { return true; }
|
|
11209
11246
|
get el() { return getElement(this); }
|
|
@@ -11304,8 +11341,8 @@ class PdsLink {
|
|
|
11304
11341
|
const targetValue = this.target || (this.external ? '_blank' : undefined);
|
|
11305
11342
|
const showExternalIcon = this.external;
|
|
11306
11343
|
const relValue = targetValue === '_blank' ? 'noopener noreferrer' : undefined;
|
|
11307
|
-
return (hAsync("a", { key: '
|
|
11308
|
-
hAsync("pds-icon", { key: '
|
|
11344
|
+
return (hAsync("a", { key: 'c593ea2b55716a74678666aca7fa470bfa330461', class: this.classNames(), download: this.download, href: this.href, id: this.componentId, part: "link", target: targetValue, rel: relValue, style: this.setLinkStyles() }, hAsync("slot", { key: 'fed9931e87ed95bd21669c7130c8918165c14268' }, this.href), showExternalIcon &&
|
|
11345
|
+
hAsync("pds-icon", { key: '6c7528674ce5ebc54d6f7de6c499acce1f144ad5', icon: launch, size: this.fontSize })));
|
|
11309
11346
|
}
|
|
11310
11347
|
static get style() { return pdsLinkCss; }
|
|
11311
11348
|
static get cmpMeta() { return {
|
|
@@ -11377,7 +11414,7 @@ class PdsLoader {
|
|
|
11377
11414
|
}
|
|
11378
11415
|
}
|
|
11379
11416
|
render() {
|
|
11380
|
-
return (hAsync(Host, { key: '
|
|
11417
|
+
return (hAsync(Host, { key: '2e5d99368f9bd7cfb2538bac7d692a24e4d68d28', 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: 'd7f19e0a958ff7c1d8660d2953a52d312e997b96', class: "pds-loader--spinner" }, hAsync("svg", { key: '5466e9962d446fd72d0c2aaafe23f2777701a14b', style: this.getSvgStyle(), viewBox: "0 0 200 200", fill: "none", part: "loader-svg" }, hAsync("defs", { key: '98f48ae144302815a664d023740c2235401b2eea' }, hAsync("linearGradient", { key: 'f20f259b01bce14659b18f31b8df220080d71c1e', id: "spinner-secondHalf" }, hAsync("stop", { key: 'dfdf8dfb28fcde737fd735f64eec4aef7d81720a', offset: "0%", "stop-opacity": "0", "stop-color": "currentColor" }), hAsync("stop", { key: 'cec59a32faa2763d39e0a14b92c42a1f6f8ae42b', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" })), hAsync("linearGradient", { key: 'ce5b7cafdb77f025a6b6accd198f217ca6b57fb7', id: "spinner-firstHalf" }, hAsync("stop", { key: '4673e0ae636ab5efedb5072b1b72953f6e4d3361', offset: "0%", "stop-opacity": "1", "stop-color": "currentColor" }), hAsync("stop", { key: 'd162a037043f8fab180c740a128c79170d135567', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" }))), hAsync("g", { key: 'bf40b165d28ec48dbc87a7ed8a612c64768a9a64', class: "pds-loader__spinner-path" }, hAsync("path", { key: 'ef3d785b614b3f5ce56aa6ea830b8d3a97681e94', stroke: "url(#spinner-secondHalf)", d: "M 4 100 A 96 96 0 0 1 196 100" }), hAsync("path", { key: '325fdf3fd39ea5a3a78720ae6ec28f787a83635d', stroke: "url(#spinner-firstHalf)", d: "M 196 100 A 96 96 0 0 1 4 100" }), hAsync("path", { key: '54aacdbe457bc81ceaf24f3f8b69d2ddad50c1f0', stroke: "currentColor", "stroke-linecap": "round", d: "M 4 100 A 96 96 0 0 1 4 98" }))))), this.variant === 'typing' && (hAsync("div", { key: '6c3e7d46a75a0393f2851a57ba245b480d855bf4', class: "pds-loader--typing" }, hAsync("span", { key: '4910de2c7c51e25e6c738521122cc24634916829' }), hAsync("span", { key: '71252eb90437cfff9d85d06ac2c7c233e8986037' }), hAsync("span", { key: 'ba1b08887da6a476cc1fa0c5cb4e07d4a88e62f1' }))), hAsync("div", { key: 'e8cc5e9cd5b092c9deb0aa566b1f76ab3d6413b6', class: `pds-loader__label ${this.showLabel ? '' : 'pds-loader--hidden'}` }, hAsync("slot", { key: '725804cab3306daa27e70510b5a11946063c3b84', name: "label" }, "Loading..."))));
|
|
11381
11418
|
}
|
|
11382
11419
|
static get style() { return pdsLoaderCss; }
|
|
11383
11420
|
static get cmpMeta() { return {
|
|
@@ -11634,14 +11671,14 @@ class PdsModal {
|
|
|
11634
11671
|
return thisZIndex === maxZIndex;
|
|
11635
11672
|
}
|
|
11636
11673
|
render() {
|
|
11637
|
-
return (hAsync("dialog", { key: '
|
|
11674
|
+
return (hAsync("dialog", { key: '357b1570ff9153bb04abc883bd471d0454eca862', class: {
|
|
11638
11675
|
'pds-modal__backdrop': true,
|
|
11639
11676
|
'open': this.open
|
|
11640
|
-
}, "aria-modal": "true", "aria-labelledby": `${this.componentId}-heading`, onClick: this.handleBackdropClick }, hAsync("div", { key: '
|
|
11677
|
+
}, "aria-modal": "true", "aria-labelledby": `${this.componentId}-heading`, onClick: this.handleBackdropClick }, hAsync("div", { key: '89576c6aa19ffd87dfc3b527a242503093af4ec3', class: {
|
|
11641
11678
|
'pds-modal': true,
|
|
11642
11679
|
[`pds-modal--${this.size}`]: true,
|
|
11643
11680
|
'pds-modal--scrollable': this.scrollable
|
|
11644
|
-
}, part: "modal" }, hAsync("slot", { key: '
|
|
11681
|
+
}, part: "modal" }, hAsync("slot", { key: '071ad7101f66fb01854191436ec95a212ea6ee73' }))));
|
|
11645
11682
|
}
|
|
11646
11683
|
get el() { return getElement(this); }
|
|
11647
11684
|
static get watchers() { return {
|
|
@@ -11844,10 +11881,10 @@ class PdsModalContent {
|
|
|
11844
11881
|
render() {
|
|
11845
11882
|
// Only apply max-height style if it's not 'none'
|
|
11846
11883
|
const styleObj = this.contentMaxHeight !== 'none' ? { maxHeight: this.contentMaxHeight } : {};
|
|
11847
|
-
return (hAsync(Host, { key: '
|
|
11884
|
+
return (hAsync(Host, { key: '7da94c2c06a773fd5634c58481d856fda63246f9' }, hAsync("div", { key: '9e4c6ec64bf18fdd117e51c21de87a9a8175f99c', class: {
|
|
11848
11885
|
'pds-modal-content': true,
|
|
11849
11886
|
[`pds-modal-content--border-${this.border}`]: true
|
|
11850
|
-
}, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: '
|
|
11887
|
+
}, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: 'dbfa4f683ba8832662ed10a7fe2f89f353484593' }))));
|
|
11851
11888
|
}
|
|
11852
11889
|
get el() { return getElement(this); }
|
|
11853
11890
|
static get style() { return pdsModalContentCss; }
|
|
@@ -11871,7 +11908,7 @@ class PdsModalFooter {
|
|
|
11871
11908
|
registerInstance(this, hostRef);
|
|
11872
11909
|
}
|
|
11873
11910
|
render() {
|
|
11874
|
-
return (hAsync("footer", { key: '
|
|
11911
|
+
return (hAsync("footer", { key: 'd7297c60bccc1d3e9cca3b2eb8bbefdc71ac2375', class: "pds-modal__footer" }, hAsync("slot", { key: 'e807b2a702525e1c30f051ee23f1b25518248ff0' })));
|
|
11875
11912
|
}
|
|
11876
11913
|
static get style() { return pdsModalFooterCss; }
|
|
11877
11914
|
static get cmpMeta() { return {
|
|
@@ -11891,7 +11928,7 @@ class PdsModalHeader {
|
|
|
11891
11928
|
registerInstance(this, hostRef);
|
|
11892
11929
|
}
|
|
11893
11930
|
render() {
|
|
11894
|
-
return (hAsync("header", { key: '
|
|
11931
|
+
return (hAsync("header", { key: '78ac9253a737c94deaaa03157fdb0ba6c6e53ad4', class: "pds-modal__header" }, hAsync("slot", { key: '0593ae721aeee01272b64d9cd7ccc317180ff386' })));
|
|
11895
11932
|
}
|
|
11896
11933
|
static get style() { return pdsModalHeaderCss; }
|
|
11897
11934
|
static get cmpMeta() { return {
|
|
@@ -11904,12 +11941,14 @@ class PdsModalHeader {
|
|
|
11904
11941
|
}; }
|
|
11905
11942
|
}
|
|
11906
11943
|
|
|
11907
|
-
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}";
|
|
11944
|
+
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}";
|
|
11908
11945
|
|
|
11909
11946
|
/**
|
|
11910
11947
|
* @slot (default) - Static option elements for the multiselect
|
|
11911
11948
|
* @slot empty - Custom empty state message when no options match
|
|
11912
11949
|
* @slot loading - Custom loading indicator
|
|
11950
|
+
* @part trigger - The trigger surface that opens the dropdown panel
|
|
11951
|
+
* @part pill-toggle - The chevron button inside the inline pill trigger
|
|
11913
11952
|
*/
|
|
11914
11953
|
class PdsMultiselect {
|
|
11915
11954
|
constructor(hostRef) {
|
|
@@ -11973,6 +12012,26 @@ class PdsMultiselect {
|
|
|
11973
12012
|
* Hides the selected items summary section in the dropdown panel.
|
|
11974
12013
|
*/
|
|
11975
12014
|
this.hideSelectedItems = false;
|
|
12015
|
+
/**
|
|
12016
|
+
* Display mode for selected items outside the dropdown panel.
|
|
12017
|
+
* `'count'` shows "N item(s)" text in the trigger (default). `'pill'` renders
|
|
12018
|
+
* selected items as dismissible pds-chip tags.
|
|
12019
|
+
* @default 'count'
|
|
12020
|
+
*/
|
|
12021
|
+
this.selectedDisplay = 'count';
|
|
12022
|
+
/**
|
|
12023
|
+
* Position of pill chips when `selectedDisplay` is `'pill'`.
|
|
12024
|
+
* `'inline'` places chips inside the trigger; `'below'` places chips in a
|
|
12025
|
+
* flex-wrap row directly below the trigger.
|
|
12026
|
+
* @default 'inline'
|
|
12027
|
+
*/
|
|
12028
|
+
this.pillPosition = 'inline';
|
|
12029
|
+
/**
|
|
12030
|
+
* Maximum chips shown inline before collapsing to a "+N more" badge.
|
|
12031
|
+
* Only applies when `selectedDisplay='pill'` and `pillPosition='inline'`.
|
|
12032
|
+
* @default 3
|
|
12033
|
+
*/
|
|
12034
|
+
this.maxInlinePills = 3;
|
|
11976
12035
|
/**
|
|
11977
12036
|
* If true, the multiselect is required.
|
|
11978
12037
|
*/
|
|
@@ -11994,6 +12053,7 @@ class PdsMultiselect {
|
|
|
11994
12053
|
this.currentPage = 1;
|
|
11995
12054
|
this.hasMore = false;
|
|
11996
12055
|
this.creating = false;
|
|
12056
|
+
this.removalAnnouncement = '';
|
|
11997
12057
|
// Flag to prevent focusout from closing during open transition
|
|
11998
12058
|
this.isOpening = false;
|
|
11999
12059
|
// Flag to suppress dismiss event when panel closes due to selection (not user dismissal)
|
|
@@ -12002,9 +12062,16 @@ class PdsMultiselect {
|
|
|
12002
12062
|
this.initialAsyncFetchTriggered = false;
|
|
12003
12063
|
// Flag to track if value changed during loading and needs resolution after fetch completes
|
|
12004
12064
|
this.pendingUnresolvedFetch = false;
|
|
12005
|
-
this.handleTriggerClick = () => {
|
|
12065
|
+
this.handleTriggerClick = (e) => {
|
|
12006
12066
|
if (this.disabled)
|
|
12007
12067
|
return;
|
|
12068
|
+
// In inline-pill mode, ignore clicks that originated inside a pds-chip.
|
|
12069
|
+
// Chip close-button clicks are handled by handlePillRemove; chip body clicks should not toggle the panel.
|
|
12070
|
+
if (e && this.selectedDisplay === 'pill' && this.pillPosition === 'inline') {
|
|
12071
|
+
const fromChip = e.composedPath().some(el => { var _a; return ((_a = el.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'pds-chip'; });
|
|
12072
|
+
if (fromChip)
|
|
12073
|
+
return;
|
|
12074
|
+
}
|
|
12008
12075
|
if (this.isOpen) {
|
|
12009
12076
|
this.closeDropdown();
|
|
12010
12077
|
}
|
|
@@ -12013,6 +12080,10 @@ class PdsMultiselect {
|
|
|
12013
12080
|
}
|
|
12014
12081
|
};
|
|
12015
12082
|
this.handleTriggerKeyDown = (e) => {
|
|
12083
|
+
// Ignore keydown events that bubbled from child elements (e.g. chip close buttons).
|
|
12084
|
+
// Only handle keys when the trigger itself is the event target.
|
|
12085
|
+
if (e.target !== this.triggerEl)
|
|
12086
|
+
return;
|
|
12016
12087
|
switch (e.key) {
|
|
12017
12088
|
case 'ArrowDown':
|
|
12018
12089
|
case 'ArrowUp':
|
|
@@ -12037,18 +12108,35 @@ class PdsMultiselect {
|
|
|
12037
12108
|
}
|
|
12038
12109
|
};
|
|
12039
12110
|
this.handleSearchInputKeyDown = (e) => {
|
|
12111
|
+
var _a, _b, _c;
|
|
12040
12112
|
const filteredOptions = this.getFilteredOptions();
|
|
12041
12113
|
switch (e.key) {
|
|
12042
|
-
case 'ArrowDown':
|
|
12114
|
+
case 'ArrowDown': {
|
|
12043
12115
|
e.preventDefault();
|
|
12044
|
-
|
|
12045
|
-
|
|
12116
|
+
let nextIndex = this.highlightedIndex + 1;
|
|
12117
|
+
while (nextIndex < filteredOptions.length && ((_a = filteredOptions[nextIndex]) === null || _a === void 0 ? void 0 : _a.disabled)) {
|
|
12118
|
+
nextIndex++;
|
|
12119
|
+
}
|
|
12120
|
+
if (nextIndex < filteredOptions.length) {
|
|
12121
|
+
this.highlightedIndex = nextIndex;
|
|
12122
|
+
this.scrollOptionIntoView();
|
|
12123
|
+
}
|
|
12046
12124
|
break;
|
|
12047
|
-
|
|
12125
|
+
}
|
|
12126
|
+
case 'ArrowUp': {
|
|
12048
12127
|
e.preventDefault();
|
|
12049
|
-
|
|
12050
|
-
|
|
12128
|
+
// Clamp to 0 so ArrowUp from uninitialised state (-1) attempts the first option;
|
|
12129
|
+
// stays at -1 if that option is disabled.
|
|
12130
|
+
let prevIndex = Math.max(this.highlightedIndex - 1, 0);
|
|
12131
|
+
while (prevIndex > 0 && ((_b = filteredOptions[prevIndex]) === null || _b === void 0 ? void 0 : _b.disabled)) {
|
|
12132
|
+
prevIndex--;
|
|
12133
|
+
}
|
|
12134
|
+
if (!((_c = filteredOptions[prevIndex]) === null || _c === void 0 ? void 0 : _c.disabled)) {
|
|
12135
|
+
this.highlightedIndex = prevIndex;
|
|
12136
|
+
this.scrollOptionIntoView();
|
|
12137
|
+
}
|
|
12051
12138
|
break;
|
|
12139
|
+
}
|
|
12052
12140
|
case 'Enter':
|
|
12053
12141
|
e.preventDefault();
|
|
12054
12142
|
if (this.highlightedIndex >= 0) {
|
|
@@ -12088,7 +12176,9 @@ class PdsMultiselect {
|
|
|
12088
12176
|
e.preventDefault(); // Prevent focus change
|
|
12089
12177
|
this.toggleOption(option);
|
|
12090
12178
|
};
|
|
12091
|
-
this.handleOptionMouseEnter = (index) => () => {
|
|
12179
|
+
this.handleOptionMouseEnter = (index, option) => () => {
|
|
12180
|
+
if (option.disabled)
|
|
12181
|
+
return;
|
|
12092
12182
|
this.highlightedIndex = index;
|
|
12093
12183
|
};
|
|
12094
12184
|
this.handleScroll = (e) => {
|
|
@@ -12105,6 +12195,26 @@ class PdsMultiselect {
|
|
|
12105
12195
|
this.debouncedFetchAsyncOptions(this.searchQuery, this.currentPage + 1);
|
|
12106
12196
|
}
|
|
12107
12197
|
};
|
|
12198
|
+
this.handlePillRemove = (item) => () => {
|
|
12199
|
+
var _a, _b;
|
|
12200
|
+
if (this.disabled)
|
|
12201
|
+
return;
|
|
12202
|
+
const optionId = String(item.id);
|
|
12203
|
+
this.value = this.value.filter(v => v !== optionId);
|
|
12204
|
+
this.syncSelectedItems();
|
|
12205
|
+
this.pdsMultiselectChange.emit({ values: this.value, items: this.selectedItems });
|
|
12206
|
+
// Clear first so screen readers re-announce even when the same item is removed twice
|
|
12207
|
+
this.removalAnnouncement = '';
|
|
12208
|
+
queueMicrotask(() => { this.removalAnnouncement = `${item.text} removed`; });
|
|
12209
|
+
this.isClosingViaSelection = true;
|
|
12210
|
+
if (this.isOpen) {
|
|
12211
|
+
(_a = this.searchInputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
12212
|
+
}
|
|
12213
|
+
else {
|
|
12214
|
+
(_b = this.triggerEl) === null || _b === void 0 ? void 0 : _b.focus();
|
|
12215
|
+
}
|
|
12216
|
+
setTimeout(() => { this.isClosingViaSelection = false; }, 0);
|
|
12217
|
+
};
|
|
12108
12218
|
}
|
|
12109
12219
|
connectedCallback() {
|
|
12110
12220
|
// Initialize ElementInternals for form association (only once per element instance)
|
|
@@ -12251,12 +12361,35 @@ class PdsMultiselect {
|
|
|
12251
12361
|
const slot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot:not([name])');
|
|
12252
12362
|
if (!slot)
|
|
12253
12363
|
return;
|
|
12254
|
-
const options =
|
|
12255
|
-
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
|
|
12364
|
+
const options = [];
|
|
12365
|
+
slot.assignedElements({ flatten: true }).forEach(el => {
|
|
12366
|
+
var _a;
|
|
12367
|
+
if (el.tagName === 'OPTGROUP') {
|
|
12368
|
+
const optgroup = el;
|
|
12369
|
+
const groupLabel = optgroup.label;
|
|
12370
|
+
const groupDisabled = optgroup.disabled;
|
|
12371
|
+
optgroup.querySelectorAll('option').forEach((opt) => {
|
|
12372
|
+
var _a;
|
|
12373
|
+
const option = {
|
|
12374
|
+
id: opt.value,
|
|
12375
|
+
text: ((_a = opt.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || opt.value,
|
|
12376
|
+
disabled: opt.disabled || groupDisabled || undefined,
|
|
12377
|
+
};
|
|
12378
|
+
if (groupLabel) {
|
|
12379
|
+
option.group = groupLabel;
|
|
12380
|
+
}
|
|
12381
|
+
options.push(option);
|
|
12382
|
+
});
|
|
12383
|
+
}
|
|
12384
|
+
else if (el.tagName === 'OPTION') {
|
|
12385
|
+
const opt = el;
|
|
12386
|
+
options.push({
|
|
12387
|
+
id: opt.value,
|
|
12388
|
+
text: ((_a = opt.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || opt.value,
|
|
12389
|
+
disabled: opt.disabled || undefined,
|
|
12390
|
+
});
|
|
12391
|
+
}
|
|
12392
|
+
});
|
|
12260
12393
|
// Only update if we actually found options AND we're not using async/external options
|
|
12261
12394
|
// Don't clear internalOptions if slot returns empty (might be mid-DOM-update)
|
|
12262
12395
|
if (options.length > 0 && !this.asyncUrl && !this.options) {
|
|
@@ -12357,6 +12490,8 @@ class PdsMultiselect {
|
|
|
12357
12490
|
}
|
|
12358
12491
|
updateFormValue() {
|
|
12359
12492
|
var _a;
|
|
12493
|
+
if (isSpecTest())
|
|
12494
|
+
return;
|
|
12360
12495
|
if ((_a = this.internals) === null || _a === void 0 ? void 0 : _a.setFormValue) {
|
|
12361
12496
|
// Ensure value is an array before iterating
|
|
12362
12497
|
const valueArray = this.ensureValueArray();
|
|
@@ -12585,7 +12720,9 @@ class PdsMultiselect {
|
|
|
12585
12720
|
positionDropdown() {
|
|
12586
12721
|
if (!this.containerEl || !this.panelEl)
|
|
12587
12722
|
return;
|
|
12588
|
-
|
|
12723
|
+
// In inline pill mode, triggerEl is the small chevron button — use the full-width
|
|
12724
|
+
// wrapper div as the Floating UI reference so the panel aligns with the whole trigger.
|
|
12725
|
+
const referenceEl = this.pillInlineTriggerEl || this.triggerEl || this.containerEl;
|
|
12589
12726
|
const { minWidth, panelWidth } = this;
|
|
12590
12727
|
const updatePosition = () => {
|
|
12591
12728
|
computePosition(referenceEl, this.panelEl, {
|
|
@@ -12629,6 +12766,8 @@ class PdsMultiselect {
|
|
|
12629
12766
|
}
|
|
12630
12767
|
toggleOption(option) {
|
|
12631
12768
|
var _a, _b;
|
|
12769
|
+
if (option.disabled)
|
|
12770
|
+
return;
|
|
12632
12771
|
// Handle create option
|
|
12633
12772
|
if (option.isCreateOption) {
|
|
12634
12773
|
// Prevent multiple create calls while one is in-flight
|
|
@@ -12671,6 +12810,40 @@ class PdsMultiselect {
|
|
|
12671
12810
|
// For keyboard navigation - toggle the option
|
|
12672
12811
|
this.toggleOption(option);
|
|
12673
12812
|
}
|
|
12813
|
+
getGroupedRenderItems(filteredOptions) {
|
|
12814
|
+
const items = [];
|
|
12815
|
+
let currentGroup = null;
|
|
12816
|
+
filteredOptions.forEach((option, index) => {
|
|
12817
|
+
const group = option.group;
|
|
12818
|
+
if (group !== undefined) {
|
|
12819
|
+
if (!currentGroup || currentGroup.group !== group) {
|
|
12820
|
+
currentGroup = { type: 'group', group, options: [] };
|
|
12821
|
+
items.push(currentGroup);
|
|
12822
|
+
}
|
|
12823
|
+
currentGroup.options.push({ option, index });
|
|
12824
|
+
}
|
|
12825
|
+
else {
|
|
12826
|
+
currentGroup = null;
|
|
12827
|
+
items.push({ type: 'option', option, index });
|
|
12828
|
+
}
|
|
12829
|
+
});
|
|
12830
|
+
return items;
|
|
12831
|
+
}
|
|
12832
|
+
renderOption(option, index, valueArray) {
|
|
12833
|
+
const isSelected = valueArray.includes(String(option.id));
|
|
12834
|
+
const isCreateOption = option.isCreateOption;
|
|
12835
|
+
const isDisabled = option.disabled;
|
|
12836
|
+
const isHighlighted = index === this.highlightedIndex && !isCreateOption;
|
|
12837
|
+
const optionId = `${this.componentId}-option-${index}`;
|
|
12838
|
+
const isCreateDisabled = isCreateOption && this.creating;
|
|
12839
|
+
return (hAsync("li", { key: String(option.id), id: optionId, class: {
|
|
12840
|
+
'pds-multiselect__option': true,
|
|
12841
|
+
'pds-multiselect__option--highlighted': isHighlighted,
|
|
12842
|
+
'pds-multiselect__option--selected': isSelected,
|
|
12843
|
+
'pds-multiselect__option--create': isCreateOption,
|
|
12844
|
+
'pds-multiselect__option--disabled': isDisabled || isCreateDisabled,
|
|
12845
|
+
}, 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' } }))));
|
|
12846
|
+
}
|
|
12674
12847
|
renderSelectedItemsList() {
|
|
12675
12848
|
if (this.hideSelectedItems || this.selectedItems.length === 0)
|
|
12676
12849
|
return null;
|
|
@@ -12683,43 +12856,58 @@ class PdsMultiselect {
|
|
|
12683
12856
|
const valueArray = this.ensureValueArray();
|
|
12684
12857
|
const hasSlottedEmpty = !!this.el.querySelector('[slot="empty"]');
|
|
12685
12858
|
const hasSlottedLoading = !!this.el.querySelector('[slot="loading"]');
|
|
12686
|
-
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((
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
|
|
12690
|
-
|
|
12691
|
-
const isCreateDisabled = isCreateOption && this.creating;
|
|
12692
|
-
return (hAsync("li", { key: String(option.id), id: optionId, class: {
|
|
12693
|
-
'pds-multiselect__option': true,
|
|
12694
|
-
'pds-multiselect__option--highlighted': isHighlighted,
|
|
12695
|
-
'pds-multiselect__option--selected': isSelected,
|
|
12696
|
-
'pds-multiselect__option--create': isCreateOption,
|
|
12697
|
-
'pds-multiselect__option--disabled': isCreateDisabled,
|
|
12698
|
-
}, 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' } }))));
|
|
12859
|
+
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) => {
|
|
12860
|
+
if (item.type === 'group') {
|
|
12861
|
+
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)))));
|
|
12862
|
+
}
|
|
12863
|
+
return this.renderOption(item.option, item.index, valueArray);
|
|
12699
12864
|
}), this.hasMore && !this.loading && (hAsync("li", { class: "pds-multiselect__load-more", role: "presentation" }, hAsync("pds-loader", { size: "small" }))))));
|
|
12700
12865
|
}
|
|
12866
|
+
renderInlinePills() {
|
|
12867
|
+
const hasSelections = this.selectedItems.length > 0;
|
|
12868
|
+
if (!hasSelections) {
|
|
12869
|
+
return (hAsync("span", { class: "pds-multiselect__trigger-text pds-multiselect__trigger-text--placeholder" }, this.placeholder || 'Select...'));
|
|
12870
|
+
}
|
|
12871
|
+
const variant = this.disabled ? 'text' : 'tag';
|
|
12872
|
+
const visibleItems = this.selectedItems.slice(0, Math.max(1, this.maxInlinePills));
|
|
12873
|
+
const overflowCount = this.selectedItems.length - visibleItems.length;
|
|
12874
|
+
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))));
|
|
12875
|
+
}
|
|
12876
|
+
renderBelowPills() {
|
|
12877
|
+
if (this.selectedItems.length === 0)
|
|
12878
|
+
return null;
|
|
12879
|
+
const variant = this.disabled ? 'text' : 'tag';
|
|
12880
|
+
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)))));
|
|
12881
|
+
}
|
|
12701
12882
|
getTriggerText() {
|
|
12702
12883
|
const count = this.selectedItems.length;
|
|
12703
|
-
if (count === 0) {
|
|
12884
|
+
if (count === 0 || (this.selectedDisplay === 'pill' && this.pillPosition === 'below')) {
|
|
12704
12885
|
return this.placeholder || 'Select...';
|
|
12705
12886
|
}
|
|
12706
12887
|
return `${count} item${count === 1 ? '' : 's'}`;
|
|
12707
12888
|
}
|
|
12708
12889
|
render() {
|
|
12709
12890
|
const hasSelections = this.selectedItems.length > 0;
|
|
12710
|
-
return (hAsync(Host, { key: '
|
|
12891
|
+
return (hAsync(Host, { key: '50f06d8e7a23c17ff0169048d220aa78e4e60d91', "aria-disabled": this.disabled ? 'true' : null }, hAsync("div", { key: 'f85448744cf889fd999579fe2849fd7902254e3d', class: "pds-multiselect", onFocusout: this.handleContainerFocusOut }, this.label && (hAsync("label", { key: '54143c890e3fea07626705fab5b87d0da2abf485', id: `${this.componentId}-label`, htmlFor: this.componentId, class: {
|
|
12711
12892
|
'pds-multiselect__label': true,
|
|
12712
12893
|
'visually-hidden': this.hideLabel,
|
|
12713
|
-
} }, this.label)), hAsync("div", { key: '
|
|
12894
|
+
} }, this.label)), hAsync("div", { key: 'ad35b02bcf540a5fd197d8012cb060d10682b0a2', 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: {
|
|
12895
|
+
'pds-multiselect__trigger': true,
|
|
12896
|
+
'pds-multiselect__trigger--open': this.isOpen,
|
|
12897
|
+
'pds-multiselect__trigger--disabled': this.disabled,
|
|
12898
|
+
'pds-multiselect__trigger--invalid': this.invalid || !!this.errorMessage,
|
|
12899
|
+
'pds-multiselect__trigger--has-value': hasSelections,
|
|
12900
|
+
'pds-multiselect__trigger--pill-inline': true,
|
|
12901
|
+
}, 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: {
|
|
12714
12902
|
'pds-multiselect__trigger': true,
|
|
12715
12903
|
'pds-multiselect__trigger--open': this.isOpen,
|
|
12716
12904
|
'pds-multiselect__trigger--disabled': this.disabled,
|
|
12717
12905
|
'pds-multiselect__trigger--invalid': this.invalid || !!this.errorMessage,
|
|
12718
12906
|
'pds-multiselect__trigger--has-value': hasSelections,
|
|
12719
|
-
}, 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", {
|
|
12907
|
+
}, 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: {
|
|
12720
12908
|
'pds-multiselect__trigger-text': true,
|
|
12721
|
-
'pds-multiselect__trigger-text--placeholder': !hasSelections,
|
|
12722
|
-
} }, this.getTriggerText()), hAsync("pds-icon", {
|
|
12909
|
+
'pds-multiselect__trigger-text--placeholder': !hasSelections || (this.selectedDisplay === 'pill' && this.pillPosition === 'below'),
|
|
12910
|
+
} }, this.getTriggerText()), hAsync("pds-icon", { class: "pds-multiselect__icon", icon: enlarge }))), this.renderDropdown()), this.selectedDisplay === 'pill' && this.pillPosition === 'below' && this.renderBelowPills(), hAsync("span", { key: '547ab819abb5193040ddf71d725bf97fc3cb80b6', class: "visually-hidden", "aria-live": "polite", "aria-atomic": "true" }, this.removalAnnouncement), this.helperMessage && !(this.errorMessage && this.errorMessage.length > 0) && (hAsync("p", { key: '063fadcda29637c338ed8ab49ef95c57750ff7ba', class: "pds-multiselect__helper", id: messageId(this.componentId, 'helper') }, this.helperMessage)), this.errorMessage && (hAsync("p", { key: '6aabb3cd4b8334f87a4eecc38ba43ff4980fb8af', class: "pds-multiselect__error", id: messageId(this.componentId, 'error') }, hAsync("pds-icon", { key: '6fa6e1eeb8625a90e149a46a1d49742979b37881', icon: danger, size: "small" }), this.errorMessage)), hAsync("div", { key: '0a84dfe166c5cc0f93840825e238d3f7baf932e4', style: { display: 'none' } }, hAsync("slot", { key: 'a4e97c2063b358aca5db8dd6ccb8a8d860c26a4a' })))));
|
|
12723
12911
|
}
|
|
12724
12912
|
static get formAssociated() { return true; }
|
|
12725
12913
|
get el() { return getElement(this); }
|
|
@@ -12753,6 +12941,9 @@ class PdsMultiselect {
|
|
|
12753
12941
|
"panelWidth": [1, "panel-width"],
|
|
12754
12942
|
"hideLabel": [4, "hide-label"],
|
|
12755
12943
|
"hideSelectedItems": [4, "hide-selected-items"],
|
|
12944
|
+
"selectedDisplay": [1, "selected-display"],
|
|
12945
|
+
"pillPosition": [1, "pill-position"],
|
|
12946
|
+
"maxInlinePills": [2, "max-inline-pills"],
|
|
12756
12947
|
"errorMessage": [1, "error-message"],
|
|
12757
12948
|
"helperMessage": [1, "helper-message"],
|
|
12758
12949
|
"invalid": [4],
|
|
@@ -12771,6 +12962,7 @@ class PdsMultiselect {
|
|
|
12771
12962
|
"currentPage": [32],
|
|
12772
12963
|
"hasMore": [32],
|
|
12773
12964
|
"creating": [32],
|
|
12965
|
+
"removalAnnouncement": [32],
|
|
12774
12966
|
"setFocus": [64],
|
|
12775
12967
|
"clear": [64]
|
|
12776
12968
|
},
|
|
@@ -13340,7 +13532,7 @@ class PdsPopover {
|
|
|
13340
13532
|
}, 16); // ~1 frame at 60fps
|
|
13341
13533
|
}
|
|
13342
13534
|
render() {
|
|
13343
|
-
return (hAsync(Host, { key: '
|
|
13535
|
+
return (hAsync(Host, { key: 'd312e00194a5d296119964bb6ba5e5cd9c6fb825', id: this.componentId }, hAsync("span", { key: '4b57221f1c1c824f02ecf4ac0d032ae4b6b0e138', class: "pds-popover__trigger-wrapper" }, hAsync("slot", { key: 'b0f3e0f1839c651047f1a096738b2a41296dccea', name: "trigger", onSlotchange: this.handleTriggerSlotChange })), hAsync("div", { key: 'a06b4503b5ce9f15186bc517bd0a867171546e9b', class: "pds-popover__content-slot-wrapper" }, hAsync("slot", { key: '9377f9b88c194c517c4630e67d85bc1574dfb1e8', onSlotchange: this.handleContentSlotChange }))));
|
|
13344
13536
|
}
|
|
13345
13537
|
get el() { return getElement(this); }
|
|
13346
13538
|
static get style() { return pdsPopoverCss; }
|
|
@@ -13390,7 +13582,7 @@ class PdsProgress {
|
|
|
13390
13582
|
this.showPercent = false;
|
|
13391
13583
|
}
|
|
13392
13584
|
render() {
|
|
13393
|
-
return (hAsync(Host, { key: '
|
|
13585
|
+
return (hAsync(Host, { key: '8f1f16b8ef5269affbb07a00731775b1740b865d', class: this.animated ? { 'is-animated': this.animated } : '' }, hAsync("div", { key: '2e7a7d679953150523367357eeefea3e8ebc7349', class: "pds-progress" }, hAsync("label", { key: '67b2aef063ace81ceabf8c66a5039ee2ffd2d041', class: "pds-progress__label", htmlFor: this.componentId }, this.label), hAsync("progress", { key: '759351c283ae43848e2ee3c298ae27de1e9b58db', id: this.componentId, max: "100", style: this.fillColor ? { '--color-progress-fill': this.fillColor } : {}, value: this.percent })), this.showPercent && hAsync("div", { key: '5f2e7309fe5207785a69c93df4e877182dc37f67', class: "pds-progress__percentage" }, this.percent, "%")));
|
|
13394
13586
|
}
|
|
13395
13587
|
static get style() { return pdsProgressCss; }
|
|
13396
13588
|
static get cmpMeta() { return {
|
|
@@ -13424,7 +13616,7 @@ class PdsProperty {
|
|
|
13424
13616
|
this.icon = 'star';
|
|
13425
13617
|
}
|
|
13426
13618
|
render() {
|
|
13427
|
-
return (hAsync(Host, { key: '
|
|
13619
|
+
return (hAsync(Host, { key: '3bcfbe6d24bd61cabddf12bf674cf3aecf77c353', id: this.componentId }, hAsync("pds-box", { key: '189d28c1025a9825b35034f9726a3f15d40d9cb3', "align-items": "center", gap: "xs" }, hAsync("pds-icon", { key: '456413d57cf086bdf21f7693b208906ca25d1166', icon: this.icon, size: "var(--pine-dimension-sm)", "aria-hidden": "true" }), hAsync("slot", { key: 'c5eaefd892ce4f29ff7938783acdcfc4a5494632' }))));
|
|
13428
13620
|
}
|
|
13429
13621
|
static get style() { return pdsPropertyCss; }
|
|
13430
13622
|
static get cmpMeta() { return {
|
|
@@ -13525,11 +13717,11 @@ class PdsRadio {
|
|
|
13525
13717
|
}
|
|
13526
13718
|
render() {
|
|
13527
13719
|
const renderLabelAndMessages = () => [
|
|
13528
|
-
hAsync("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, hAsync("input", { key: '
|
|
13720
|
+
hAsync("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, hAsync("input", { key: '9d5e14d349c2328a3a374bdf2e09fd70409f2350', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, type: "radio", id: this.componentId, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleRadioChange, class: this.hasImage() ? 'visually-hidden' : '' }), hAsync("span", { key: '88a3dcfd25892e6ddba621deab94e349ec75739e', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)),
|
|
13529
13721
|
this.helperMessage && (hAsync("div", { key: `${this.componentId}-helper`, class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage)),
|
|
13530
|
-
this.errorMessage && (hAsync("div", { key: `${this.componentId}-error`, class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: '
|
|
13722
|
+
this.errorMessage && (hAsync("div", { key: `${this.componentId}-error`, class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: '0056232c82cf0d09db6b845e05d951954582ccc1', icon: danger, size: "small" }), this.errorMessage))
|
|
13531
13723
|
];
|
|
13532
|
-
return (hAsync(Host, { key: '
|
|
13724
|
+
return (hAsync(Host, { key: '3748a4cb1365b3deeb98d5294352d2a12546372c', class: this.classNames() }, this.hasImage() && (hAsync("div", { key: '2eefe091ac70c9cb147b7ed102c524aefc13691f', class: "pds-radio__image-container", part: "image-container" }, hAsync("slot", { key: '58ad9ed18ada05e2ba9267332c73b28ab055ccb7', name: "image", onSlotchange: () => (this._hasImage = this.hasImageSlot()) }))), this.hasImage() ? (hAsync("div", { class: "pds-radio__content-wrapper" }, renderLabelAndMessages())) : (renderLabelAndMessages())));
|
|
13533
13725
|
}
|
|
13534
13726
|
get el() { return getElement(this); }
|
|
13535
13727
|
static get style() { return labelCss$3 + pdsRadioCss; }
|
|
@@ -13704,13 +13896,13 @@ class PdsRadioGroup {
|
|
|
13704
13896
|
render() {
|
|
13705
13897
|
const gapValue = this.getGapValue();
|
|
13706
13898
|
const ariaDescribedBy = this.getAriaDescribedBy();
|
|
13707
|
-
return (hAsync(Host, { key: '
|
|
13899
|
+
return (hAsync(Host, { key: '14e4da42fa14f79d3baae62fc4759462fb00cec8', class: this.classNames(), id: this._groupId, role: "group", "aria-describedby": ariaDescribedBy, style: {
|
|
13708
13900
|
'--pds-radio-group-gap': gapValue,
|
|
13709
|
-
} }, this.groupLabel && (hAsync("div", { key: '
|
|
13901
|
+
} }, this.groupLabel && (hAsync("div", { key: '0564bc27ff5d15ad7f3ad37d737ee9be8216cfbf', class: "pds-radio-group__label" }, this.groupLabel)), hAsync("div", { key: '72dcfa6dc3b9e6f8837a380575da213d026fdaca', class: {
|
|
13710
13902
|
'pds-radio-group__radios': true,
|
|
13711
13903
|
'pds-radio-group__radios--row': this.direction === 'row',
|
|
13712
13904
|
'pds-radio-group__radios--column': this.direction === 'column',
|
|
13713
|
-
} }, hAsync("slot", { key: '
|
|
13905
|
+
} }, hAsync("slot", { key: '98a1251c95ff936e8da1c1838f69ed98be15ae60', onSlotchange: () => this.updateChildRadios() })), this.helperMessage && (hAsync("div", { key: '3667b47f8b0f42058f16135bb51943055705d415', class: "pds-radio-group__message", id: messageId(this._groupId, 'helper') }, this.helperMessage)), this.errorMessage && (hAsync("div", { key: '1fe7dafd6ed81b74114c6b8901ec70b6527f1c00', class: "pds-radio-group__message pds-radio-group__message--error", id: messageId(this._groupId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: 'c8e5099b271ad88836758cbd8baa911a720ceb5a', icon: danger, size: "small" }), this.errorMessage))));
|
|
13714
13906
|
}
|
|
13715
13907
|
get el() { return getElement(this); }
|
|
13716
13908
|
static get watchers() { return {
|
|
@@ -13800,7 +13992,7 @@ class PdsRow {
|
|
|
13800
13992
|
})), (this.minHeight && {
|
|
13801
13993
|
'min-height': this.minHeight,
|
|
13802
13994
|
}));
|
|
13803
|
-
return hAsync(Host, { key: '
|
|
13995
|
+
return hAsync(Host, { key: '837ddbdce43bb90e52421dac32f77a0fc80f8d07', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
|
|
13804
13996
|
}
|
|
13805
13997
|
static get style() { return pdsRowCss; }
|
|
13806
13998
|
static get cmpMeta() { return {
|
|
@@ -13993,6 +14185,8 @@ class PdsSelect {
|
|
|
13993
14185
|
* Updates the form value using ElementInternals API
|
|
13994
14186
|
*/
|
|
13995
14187
|
updateFormValue() {
|
|
14188
|
+
if (isSpecTest())
|
|
14189
|
+
return;
|
|
13996
14190
|
if (this.internals && this.internals.setFormValue) {
|
|
13997
14191
|
const value = this.value;
|
|
13998
14192
|
// Handle multi-select arrays by converting to FormData or comma-separated string
|
|
@@ -14053,7 +14247,7 @@ class PdsSelect {
|
|
|
14053
14247
|
}
|
|
14054
14248
|
render() {
|
|
14055
14249
|
const hasAction = this.el.querySelector('[slot="action"]') !== null;
|
|
14056
|
-
return (hAsync(Host, { key: '
|
|
14250
|
+
return (hAsync(Host, { key: 'ef2484adb6e3091a6f55ed462b81e431580951c8', "aria-disabled": this.disabled ? 'true' : null, class: this.classNames(), "has-action": hasAction && !this.hideLabel ? 'true' : null }, hAsync("div", { key: '6de51120bac23144c0c727fbcfeef73b542ba750', class: "pds-select" }, !this.hideLabel && (hAsync("div", { key: '6e36271c09c160e2930eb1c4bcbd5b5dc7a3de6c', class: "pds-select__label-wrapper" }, hAsync("label", { key: '6a1d061a3ea1a01c58e412c59369eda7c2b771bd', htmlFor: this.componentId }, hAsync("span", { key: 'c32a97fc1167f15074f44ca3e1f4f410e3cc88a6', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), hasAction && this.renderAction())), hAsync("select", { key: '77d63c6ea36a1132c4b642724aea6fd25db0355a', "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: '71d8b7155c6b97396826c6769de4a2045727d43b', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, hAsync("slot", { key: '8153aee437a68c53ef9e38ddc009985296e80ed2', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && hAsync("pds-icon", { key: '435d67dfdce140fd5cc1b1d9d47bccf73be97def', class: "pds-select__select-icon", icon: enlarge }))));
|
|
14057
14251
|
}
|
|
14058
14252
|
static get formAssociated() { return true; }
|
|
14059
14253
|
get el() { return getElement(this); }
|
|
@@ -14087,111 +14281,94 @@ class PdsSelect {
|
|
|
14087
14281
|
}
|
|
14088
14282
|
|
|
14089
14283
|
/**!
|
|
14090
|
-
* Sortable 1.15.
|
|
14284
|
+
* Sortable 1.15.7
|
|
14091
14285
|
* @author RubaXa <trash@rubaxa.org>
|
|
14092
14286
|
* @author owenm <owen23355@gmail.com>
|
|
14093
14287
|
* @license MIT
|
|
14094
14288
|
*/
|
|
14095
|
-
function
|
|
14096
|
-
|
|
14097
|
-
|
|
14098
|
-
|
|
14099
|
-
|
|
14100
|
-
|
|
14101
|
-
|
|
14102
|
-
});
|
|
14103
|
-
}
|
|
14104
|
-
keys.push.apply(keys, symbols);
|
|
14105
|
-
}
|
|
14106
|
-
return keys;
|
|
14289
|
+
function _defineProperty(e, r, t) {
|
|
14290
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
14291
|
+
value: t,
|
|
14292
|
+
enumerable: true,
|
|
14293
|
+
configurable: true,
|
|
14294
|
+
writable: true
|
|
14295
|
+
}) : e[r] = t, e;
|
|
14107
14296
|
}
|
|
14108
|
-
function
|
|
14109
|
-
|
|
14110
|
-
var
|
|
14111
|
-
|
|
14112
|
-
|
|
14113
|
-
_defineProperty(target, key, source[key]);
|
|
14114
|
-
});
|
|
14115
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
14116
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14117
|
-
} else {
|
|
14118
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
14119
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14120
|
-
});
|
|
14297
|
+
function _extends() {
|
|
14298
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
14299
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
14300
|
+
var t = arguments[e];
|
|
14301
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
14121
14302
|
}
|
|
14303
|
+
return n;
|
|
14304
|
+
}, _extends.apply(null, arguments);
|
|
14305
|
+
}
|
|
14306
|
+
function ownKeys(e, r) {
|
|
14307
|
+
var t = Object.keys(e);
|
|
14308
|
+
if (Object.getOwnPropertySymbols) {
|
|
14309
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
14310
|
+
r && (o = o.filter(function (r) {
|
|
14311
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
14312
|
+
})), t.push.apply(t, o);
|
|
14313
|
+
}
|
|
14314
|
+
return t;
|
|
14315
|
+
}
|
|
14316
|
+
function _objectSpread2(e) {
|
|
14317
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
14318
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
14319
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
14320
|
+
_defineProperty(e, r, t[r]);
|
|
14321
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
14322
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
14323
|
+
});
|
|
14122
14324
|
}
|
|
14123
|
-
return
|
|
14325
|
+
return e;
|
|
14124
14326
|
}
|
|
14125
|
-
function
|
|
14126
|
-
|
|
14127
|
-
|
|
14128
|
-
|
|
14129
|
-
|
|
14130
|
-
|
|
14131
|
-
|
|
14132
|
-
|
|
14133
|
-
_typeof = function (obj) {
|
|
14134
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
14135
|
-
};
|
|
14327
|
+
function _objectWithoutProperties(e, t) {
|
|
14328
|
+
if (null == e) return {};
|
|
14329
|
+
var o,
|
|
14330
|
+
r,
|
|
14331
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
14332
|
+
if (Object.getOwnPropertySymbols) {
|
|
14333
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
14334
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
14136
14335
|
}
|
|
14137
|
-
return
|
|
14336
|
+
return i;
|
|
14138
14337
|
}
|
|
14139
|
-
function
|
|
14140
|
-
if (
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
writable: true
|
|
14146
|
-
});
|
|
14147
|
-
} else {
|
|
14148
|
-
obj[key] = value;
|
|
14338
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
14339
|
+
if (null == r) return {};
|
|
14340
|
+
var t = {};
|
|
14341
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
14342
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
14343
|
+
t[n] = r[n];
|
|
14149
14344
|
}
|
|
14150
|
-
return
|
|
14345
|
+
return t;
|
|
14151
14346
|
}
|
|
14152
|
-
function
|
|
14153
|
-
|
|
14154
|
-
|
|
14155
|
-
|
|
14156
|
-
|
|
14157
|
-
|
|
14158
|
-
|
|
14159
|
-
}
|
|
14160
|
-
}
|
|
14161
|
-
}
|
|
14162
|
-
return target;
|
|
14163
|
-
};
|
|
14164
|
-
return _extends.apply(this, arguments);
|
|
14165
|
-
}
|
|
14166
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
14167
|
-
if (source == null) return {};
|
|
14168
|
-
var target = {};
|
|
14169
|
-
var sourceKeys = Object.keys(source);
|
|
14170
|
-
var key, i;
|
|
14171
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
14172
|
-
key = sourceKeys[i];
|
|
14173
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
14174
|
-
target[key] = source[key];
|
|
14175
|
-
}
|
|
14176
|
-
return target;
|
|
14177
|
-
}
|
|
14178
|
-
function _objectWithoutProperties(source, excluded) {
|
|
14179
|
-
if (source == null) return {};
|
|
14180
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
14181
|
-
var key, i;
|
|
14182
|
-
if (Object.getOwnPropertySymbols) {
|
|
14183
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
14184
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
14185
|
-
key = sourceSymbolKeys[i];
|
|
14186
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
14187
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
14188
|
-
target[key] = source[key];
|
|
14189
|
-
}
|
|
14347
|
+
function _toPrimitive(t, r) {
|
|
14348
|
+
if ("object" != typeof t || !t) return t;
|
|
14349
|
+
var e = t[Symbol.toPrimitive];
|
|
14350
|
+
if (void 0 !== e) {
|
|
14351
|
+
var i = e.call(t, r);
|
|
14352
|
+
if ("object" != typeof i) return i;
|
|
14353
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
14190
14354
|
}
|
|
14191
|
-
return
|
|
14355
|
+
return ("string" === r ? String : Number)(t);
|
|
14356
|
+
}
|
|
14357
|
+
function _toPropertyKey(t) {
|
|
14358
|
+
var i = _toPrimitive(t, "string");
|
|
14359
|
+
return "symbol" == typeof i ? i : i + "";
|
|
14360
|
+
}
|
|
14361
|
+
function _typeof(o) {
|
|
14362
|
+
"@babel/helpers - typeof";
|
|
14363
|
+
|
|
14364
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
14365
|
+
return typeof o;
|
|
14366
|
+
} : function (o) {
|
|
14367
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
14368
|
+
}, _typeof(o);
|
|
14192
14369
|
}
|
|
14193
14370
|
|
|
14194
|
-
var version = "1.15.
|
|
14371
|
+
var version = "1.15.7";
|
|
14195
14372
|
|
|
14196
14373
|
function userAgent(pattern) {
|
|
14197
14374
|
if (typeof window !== 'undefined' && window.navigator) {
|
|
@@ -14234,7 +14411,7 @@ function matches( /**HTMLElement*/el, /**String*/selector) {
|
|
|
14234
14411
|
return false;
|
|
14235
14412
|
}
|
|
14236
14413
|
function getParentOrHost(el) {
|
|
14237
|
-
return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;
|
|
14414
|
+
return el.host && el !== document && el.host.nodeType && el.host !== el ? el.host : el.parentNode;
|
|
14238
14415
|
}
|
|
14239
14416
|
function closest$1( /**HTMLElement*/el, /**String*/selector, /**HTMLElement*/ctx, includeCTX) {
|
|
14240
14417
|
if (el) {
|
|
@@ -16102,8 +16279,11 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
16102
16279
|
_nulling: function _nulling() {
|
|
16103
16280
|
pluginEvent('nulling', this);
|
|
16104
16281
|
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;
|
|
16105
|
-
|
|
16106
|
-
|
|
16282
|
+
var el = this.el;
|
|
16283
|
+
savedInputChecked.forEach(function (checkEl) {
|
|
16284
|
+
if (el.contains(checkEl)) {
|
|
16285
|
+
checkEl.checked = true;
|
|
16286
|
+
}
|
|
16107
16287
|
});
|
|
16108
16288
|
savedInputChecked.length = lastDx = lastDy = 0;
|
|
16109
16289
|
},
|
|
@@ -16761,7 +16941,12 @@ class PdsSortable {
|
|
|
16761
16941
|
*/
|
|
16762
16942
|
this.border = false;
|
|
16763
16943
|
/**
|
|
16764
|
-
*
|
|
16944
|
+
* Determines whether or not the sortable is disabled.
|
|
16945
|
+
* @defaultValue false
|
|
16946
|
+
*/
|
|
16947
|
+
this.disabled = false;
|
|
16948
|
+
/**
|
|
16949
|
+
* Determines whether `sortable` items should be divided with border.
|
|
16765
16950
|
*/
|
|
16766
16951
|
this.dividers = false;
|
|
16767
16952
|
/**
|
|
@@ -16769,11 +16954,18 @@ class PdsSortable {
|
|
|
16769
16954
|
*/
|
|
16770
16955
|
this.handleType = 'row';
|
|
16771
16956
|
}
|
|
16957
|
+
handleDisabledChange() {
|
|
16958
|
+
var _a;
|
|
16959
|
+
(_a = this.sortableInstance) === null || _a === void 0 ? void 0 : _a.option('disabled', this.disabled);
|
|
16960
|
+
}
|
|
16772
16961
|
classNames() {
|
|
16773
16962
|
const classNames = ['pds-sortable'];
|
|
16774
16963
|
if (this.border) {
|
|
16775
16964
|
classNames.push('pds-sortable--bordered');
|
|
16776
16965
|
}
|
|
16966
|
+
if (this.disabled) {
|
|
16967
|
+
classNames.push('pds-sortable--disabled');
|
|
16968
|
+
}
|
|
16777
16969
|
if (this.dividers) {
|
|
16778
16970
|
classNames.push('pds-sortable--divided');
|
|
16779
16971
|
}
|
|
@@ -16785,6 +16977,7 @@ class PdsSortable {
|
|
|
16785
16977
|
componentDidLoad() {
|
|
16786
16978
|
let sortableOptions = {
|
|
16787
16979
|
animation: 150,
|
|
16980
|
+
disabled: this.disabled,
|
|
16788
16981
|
ghostClass: 'pds-sortable-item--ghost',
|
|
16789
16982
|
dragClass: 'pds-sortable-item--drag',
|
|
16790
16983
|
onEnd: (evt) => {
|
|
@@ -16794,29 +16987,33 @@ class PdsSortable {
|
|
|
16794
16987
|
if (this.handleType === 'handle') {
|
|
16795
16988
|
sortableOptions = Object.assign(Object.assign({}, sortableOptions), { handle: '.pds-sortable-item__handle' });
|
|
16796
16989
|
}
|
|
16797
|
-
Sortable.create(this.el, sortableOptions);
|
|
16990
|
+
this.sortableInstance = Sortable.create(this.el, sortableOptions);
|
|
16798
16991
|
}
|
|
16799
16992
|
render() {
|
|
16800
|
-
return (hAsync(Host, { key: '
|
|
16993
|
+
return (hAsync(Host, { key: '2b3845733aa8acd1de1d9c49b3840320fbc87dd4', class: this.classNames(), id: this.componentId }, hAsync("slot", { key: 'd8659231eab11d8a4b89f6f3404268ca1d1c7dca' })));
|
|
16801
16994
|
}
|
|
16802
16995
|
get el() { return getElement(this); }
|
|
16996
|
+
static get watchers() { return {
|
|
16997
|
+
"disabled": ["handleDisabledChange"]
|
|
16998
|
+
}; }
|
|
16803
16999
|
static get style() { return pdsSortableCss; }
|
|
16804
17000
|
static get cmpMeta() { return {
|
|
16805
17001
|
"$flags$": 262,
|
|
16806
17002
|
"$tagName$": "pds-sortable",
|
|
16807
17003
|
"$members$": {
|
|
16808
17004
|
"border": [516],
|
|
17005
|
+
"disabled": [516],
|
|
16809
17006
|
"componentId": [1, "component-id"],
|
|
16810
17007
|
"dividers": [516],
|
|
16811
17008
|
"handleType": [1, "handle-type"]
|
|
16812
17009
|
},
|
|
16813
17010
|
"$listeners$": undefined,
|
|
16814
17011
|
"$lazyBundleId$": "-",
|
|
16815
|
-
"$attrsToReflect$": [["border", "border"], ["dividers", "dividers"]]
|
|
17012
|
+
"$attrsToReflect$": [["border", "border"], ["disabled", "disabled"], ["dividers", "dividers"]]
|
|
16816
17013
|
}; }
|
|
16817
17014
|
}
|
|
16818
17015
|
|
|
16819
|
-
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}";
|
|
17016
|
+
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}";
|
|
16820
17017
|
|
|
16821
17018
|
/**
|
|
16822
17019
|
* @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`.
|
|
@@ -16844,7 +17041,7 @@ class PdsSortableItem {
|
|
|
16844
17041
|
}
|
|
16845
17042
|
}
|
|
16846
17043
|
render() {
|
|
16847
|
-
return (hAsync(Host, { key: '
|
|
17044
|
+
return (hAsync(Host, { key: '99cd4e5a8a48c524569a8380b2cf214096627928', class: "pds-sortable-item", id: this.componentId }, this.showHandle && (hAsync("div", { key: '4507fcd9135439cc12a95890f82a4355ee1c2487', class: "pds-sortable-item__handle" }, hAsync("pds-icon", { key: '42b4c87bd56d40c625016c7c09bcf9696b1be829', icon: handle }))), hAsync("slot", { key: '47a7d6b1bc399e3044eee9f669d40cf9c24faf76' }), this.enableActions && (hAsync("div", { key: 'a617251b75698f53f90c260e55cee260e44e1a8c', class: "pds-sortable-item__actions" }, hAsync("slot", { key: '74b891acaa77245d37f39a37586365185dc3de1d', name: "sortable-item-actions" })))));
|
|
16848
17045
|
}
|
|
16849
17046
|
get el() { return getElement(this); }
|
|
16850
17047
|
static get style() { return pdsSortableItemCss; }
|
|
@@ -16922,10 +17119,8 @@ class PdsSwitch {
|
|
|
16922
17119
|
this.updateFormValue();
|
|
16923
17120
|
}
|
|
16924
17121
|
updateFormValue() {
|
|
16925
|
-
|
|
16926
|
-
if (typeof jest !== 'undefined' || typeof process !== 'undefined' && ((_a = process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) === 'test') {
|
|
17122
|
+
if (isSpecTest())
|
|
16927
17123
|
return;
|
|
16928
|
-
}
|
|
16929
17124
|
if (this.internals && this.internals.setFormValue) {
|
|
16930
17125
|
// For switches, only send the value when checked, otherwise send null
|
|
16931
17126
|
const formValue = this.checked ? (this.value || 'on') : null;
|
|
@@ -16950,9 +17145,9 @@ class PdsSwitch {
|
|
|
16950
17145
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
16951
17146
|
}
|
|
16952
17147
|
render() {
|
|
16953
|
-
return (hAsync(Host, { key: '
|
|
16954
|
-
hAsync("div", { key: '
|
|
16955
|
-
hAsync("div", { key: '
|
|
17148
|
+
return (hAsync(Host, { key: '44d1401d7a2a2001d75d62a498d12d6a3373aec6', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, hAsync("label", { key: '476d358c612e0ba5d6898171e25a6aee7e29bd74', htmlFor: this.componentId }, hAsync("input", Object.assign({ key: 'afb21f7167b09ae8e84170565260fa1791309981', "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: 'e517faec437110731f9c07fe0bad77923123bdf1', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), this.helperMessage &&
|
|
17149
|
+
hAsync("div", { key: '676f75e0738f3a95049a35f0887e935fd365f164', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
17150
|
+
hAsync("div", { key: '5c93d19c9599a7b06dc03f7be2cdbe585c64ebdb', class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: '11fbe6ef41fe639ae8cdf9369884a53602dd5f1f', icon: danger, size: "small" }), this.errorMessage)));
|
|
16956
17151
|
}
|
|
16957
17152
|
static get formAssociated() { return true; }
|
|
16958
17153
|
get el() { return getElement(this); }
|
|
@@ -17013,9 +17208,9 @@ class PdsTab {
|
|
|
17013
17208
|
return classes.filter(Boolean).join(' ');
|
|
17014
17209
|
}
|
|
17015
17210
|
render() {
|
|
17016
|
-
const availabilityTabEdgeInlineStart = (hAsync("span", { key: '
|
|
17017
|
-
const availabilityTabEdgeInlineEnd = (hAsync("span", { key: '
|
|
17018
|
-
return (hAsync(Host, { key: '
|
|
17211
|
+
const availabilityTabEdgeInlineStart = (hAsync("span", { key: 'f960b1ef212d0df8cdb2ade77b4cac8ade1d0233', class: "pds-tab-edge", role: "presentation" }));
|
|
17212
|
+
const availabilityTabEdgeInlineEnd = (hAsync("span", { key: '07551a0482c3f4eb206e09e7b24b2ceacbd4f770', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
|
|
17213
|
+
return (hAsync(Host, { key: '986020fd62dbb4bd5c495523de307e5891281ccf', variant: this.variant, slot: "tabs", index: this.index }, hAsync("button", { key: 'a3266df8aa33e59e66564db8475adc821b3d7e71', role: "tab", id: this.parentComponentId + "__" + this.name, "aria-controls": this.parentComponentId + "__" + this.name + "-panel", tabindex: this.disabled ? "-1" : (this.selected ? "0" : "-1"), "aria-selected": this.selected ? "true" : "false", "aria-disabled": this.disabled ? "true" : null, disabled: this.disabled, class: this.classNames(), onClick: this.onTabClick.bind(this, this.index, this.parentComponentId) }, this.variant === "availability" && availabilityTabEdgeInlineStart, this.variant === "availability" && availabilityTabEdgeInlineEnd, hAsync("div", { key: 'ef72242d658212d4ea20a69167a99ba8f587f964', class: "pds-tab__content" }, hAsync("slot", { key: '836e85c75266e858cce627a6a3de058a84937e41' })))));
|
|
17019
17214
|
}
|
|
17020
17215
|
get el() { return getElement(this); }
|
|
17021
17216
|
static get style() { return pdsTabCss; }
|
|
@@ -17314,7 +17509,7 @@ class PdsTableBody {
|
|
|
17314
17509
|
registerInstance(this, hostRef);
|
|
17315
17510
|
}
|
|
17316
17511
|
render() {
|
|
17317
|
-
return (hAsync(Host, { key: '
|
|
17512
|
+
return (hAsync(Host, { key: '109c20cf255df58dac0491ab4e82dfbb6bac96c5', role: "rowgroup", part: "body" }, hAsync("slot", { key: 'e6bbfe380395df15bcc35107d5f3220dc817a374' })));
|
|
17318
17513
|
}
|
|
17319
17514
|
static get style() { return pdsTableBodyCss; }
|
|
17320
17515
|
static get cmpMeta() { return {
|
|
@@ -17452,11 +17647,11 @@ class PdsTableCell {
|
|
|
17452
17647
|
return classNames.join(' ');
|
|
17453
17648
|
}
|
|
17454
17649
|
render() {
|
|
17455
|
-
return (hAsync(Host, { key: '
|
|
17650
|
+
return (hAsync(Host, { key: '43707f930d90feb1364b9860a5dbc955049ff990', class: this.classNames(), role: "gridcell", part: "cell", tabIndex: this.truncate ? 0 : undefined, style: this.tableRef &&
|
|
17456
17651
|
this.tableRef.fixedColumn &&
|
|
17457
17652
|
this.tableRef.selectable
|
|
17458
17653
|
? { '--fixed-cell-position': '40px' }
|
|
17459
|
-
: {} }, hAsync("slot", { key: '
|
|
17654
|
+
: {} }, hAsync("slot", { key: 'c4eca6f7dbf2e32e217cbfb170aba12a02acb50d' })));
|
|
17460
17655
|
}
|
|
17461
17656
|
get hostElement() { return getElement(this); }
|
|
17462
17657
|
static get watchers() { return {
|
|
@@ -17531,7 +17726,7 @@ class PdsTableHead {
|
|
|
17531
17726
|
}
|
|
17532
17727
|
}
|
|
17533
17728
|
render() {
|
|
17534
|
-
return (hAsync(Host, { key: '
|
|
17729
|
+
return (hAsync(Host, { key: '51122f82508bc7572f932c58a87823ef36705047', role: "row", part: "head" }, this.tableRef && this.tableRef.selectable && (hAsync("pds-table-head-cell", { key: '8df08f916dbec551db5e6af62638ef3de1aaa4a2', part: this.tableRef.selectable ? 'checkbox-cell' : '' }, !this.tableRef.disableSelectAll && (hAsync("pds-checkbox", { key: 'c87c00d23d3a639c2a478ac1797b06f375179042', componentId: this.generateUniqueId(), indeterminate: this.indeterminate, onInput: this.handleInput, label: "Select All Rows", hideLabel: true, checked: this.isSelected, part: "select-all-checkbox" })))), hAsync("slot", { key: '262bcd23f0258941235845fa12518e0aacaa8e55' })));
|
|
17535
17730
|
}
|
|
17536
17731
|
get hostElement() { return getElement(this); }
|
|
17537
17732
|
static get style() { return pdsTableHeadCss; }
|
|
@@ -17752,11 +17947,11 @@ class PdsTableHeadCell {
|
|
|
17752
17947
|
return classNames.join(' ');
|
|
17753
17948
|
}
|
|
17754
17949
|
render() {
|
|
17755
|
-
return (hAsync(Host, { key: '
|
|
17950
|
+
return (hAsync(Host, { key: '8996942725c06b81a067c103510adea405b8fabb', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, part: "head-cell", style: this.tableRef &&
|
|
17756
17951
|
this.tableRef.fixedColumn &&
|
|
17757
17952
|
this.tableRef.selectable
|
|
17758
17953
|
? { '--fixed-cell-position': '40px' }
|
|
17759
|
-
: {} }, hAsync("slot", { key: '
|
|
17954
|
+
: {} }, hAsync("slot", { key: 'ac103029fda6afad34db0c3978548f126bb4d2a6' }), this.sortable && this.isActive && (hAsync("pds-icon", { key: '411adf3421f5f7524a995042af3f9411a321a944', icon: this.sortingDirection === 'asc' ? upSmall : downSmall, part: "sort-icon" }))));
|
|
17760
17955
|
}
|
|
17761
17956
|
get hostElement() { return getElement(this); }
|
|
17762
17957
|
static get style() { return pdsTableHeadCellCss; }
|
|
@@ -17922,7 +18117,7 @@ class PdsTableRow {
|
|
|
17922
18117
|
}
|
|
17923
18118
|
}
|
|
17924
18119
|
render() {
|
|
17925
|
-
return (hAsync(Host, { key: '
|
|
18120
|
+
return (hAsync(Host, { key: '18321a22227ab1aaa558542bbc66d66378b79375', class: this.classNames(), role: "row", part: "row" }, this.tableRef && this.tableRef.selectable && (hAsync("pds-table-cell", { key: 'bf0e90ee491224817ed7ae33c5c5cfa1da31a7aa', part: this.tableRef.fixedColumn ? 'checkbox-cell' : 'checkbox-cell', class: this.tableRef.selectable ? 'has-checkbox' : '' }, hAsync("pds-checkbox", { key: 'f3dcd96601cbe822727d831827530051478046cf', componentId: this.generateUniqueId(), onPdsCheckboxChange: this.handleCheckboxChange, indeterminate: this.indeterminate, label: "Select Row", hideLabel: true, checked: this.isSelected, part: "row-checkbox" }))), hAsync("slot", { key: '11d1c549eb27db0909b180979bec66cc4f548de7' })));
|
|
17926
18121
|
}
|
|
17927
18122
|
get hostElement() { return getElement(this); }
|
|
17928
18123
|
static get style() { return pdsTableRowCss; }
|
|
@@ -17953,7 +18148,7 @@ class PdsTabpanel {
|
|
|
17953
18148
|
this.selected = false; // eslint-disable-line @stencil-community/strict-mutable
|
|
17954
18149
|
}
|
|
17955
18150
|
render() {
|
|
17956
|
-
return (hAsync(Host, { key: '
|
|
18151
|
+
return (hAsync(Host, { key: '56e6a4e6523ca571c047797a17f98d0620a8655a', slot: "tabpanels" }, hAsync("div", { key: '5abd0817b24fcc354f8c5ae3ee0465aea5daaf7d', role: "tabpanel", id: this.parentComponentId + "__" + this.name + '-panel', tabindex: "0", "aria-labelledby": this.parentComponentId + "__" + this.name, class: this.selected ? "pds-tabpanel is-active" : "pds-tabpanel" }, hAsync("slot", { key: '3fbcc5dcdc675de6923234d53f7877cf8ebd3586' }))));
|
|
17957
18152
|
}
|
|
17958
18153
|
get el() { return getElement(this); }
|
|
17959
18154
|
static get style() { return pdsTabpanelCss; }
|
|
@@ -18065,7 +18260,7 @@ class PdsTabs {
|
|
|
18065
18260
|
this.passPropsToChildren();
|
|
18066
18261
|
}
|
|
18067
18262
|
render() {
|
|
18068
|
-
return (hAsync(Host, { key: '
|
|
18263
|
+
return (hAsync(Host, { key: '9776af8309f3c013f5b313a645ba2edc67cdab6b', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, hAsync("div", { key: '3d6ab06d67b4b45649bc045907b9a4aaa009fe47', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel, part: "tab-list" }, hAsync("slot", { key: '6e0edeb91ba3ed94a951fc452b89d1f61acfea54', name: "tabs" })), hAsync("slot", { key: '9d62f9b411d18637d9a1f079d569d2c283aae4f7', name: "tabpanels" })));
|
|
18069
18264
|
}
|
|
18070
18265
|
get el() { return getElement(this); }
|
|
18071
18266
|
static get style() { return pdsTabsCss; }
|
|
@@ -18152,7 +18347,7 @@ class PdsText {
|
|
|
18152
18347
|
? `pds-text--decoration-${this.decoration}`
|
|
18153
18348
|
: ''}
|
|
18154
18349
|
`;
|
|
18155
|
-
return (hAsync(Tag, { key: '
|
|
18350
|
+
return (hAsync(Tag, { key: 'a7cf1fb996a4029573943f525a110f0ead195ad3', ref: (el) => (this.contentEl = el), style: this.color && setColor(this.color), class: typeClasses, part: "content", tabIndex: this.truncate ? 0 : undefined }, hAsync("slot", { key: '5a6b694ac85ca92bd94c29c73b976c16cac44781' })));
|
|
18156
18351
|
}
|
|
18157
18352
|
get el() { return getElement(this); }
|
|
18158
18353
|
static get watchers() { return {
|
|
@@ -18307,7 +18502,7 @@ class PdsTextarea {
|
|
|
18307
18502
|
this.setupResizeObserver();
|
|
18308
18503
|
}
|
|
18309
18504
|
// Update ElementInternals validity when maxLength changes
|
|
18310
|
-
if (this.internals && this.internals.setValidity && this.nativeTextarea) {
|
|
18505
|
+
if (!isSpecTest() && this.internals && this.internals.setValidity && this.nativeTextarea) {
|
|
18311
18506
|
const isTooLong = this.nativeTextarea.value.length > (this.maxLength || 0);
|
|
18312
18507
|
this.internals.setValidity({ tooLong: isTooLong }, isTooLong ? 'Value exceeds maxLength' : '', this.nativeTextarea);
|
|
18313
18508
|
}
|
|
@@ -18441,6 +18636,8 @@ class PdsTextarea {
|
|
|
18441
18636
|
* Updates the form value using ElementInternals API
|
|
18442
18637
|
*/
|
|
18443
18638
|
updateFormValue() {
|
|
18639
|
+
if (isSpecTest())
|
|
18640
|
+
return;
|
|
18444
18641
|
if (this.internals && this.internals.setFormValue) {
|
|
18445
18642
|
const value = this.getValue();
|
|
18446
18643
|
this.internals.setFormValue(value || null);
|
|
@@ -18480,10 +18677,10 @@ class PdsTextarea {
|
|
|
18480
18677
|
}
|
|
18481
18678
|
render() {
|
|
18482
18679
|
const value = this.getValue();
|
|
18483
|
-
return (hAsync(Host, { key: '
|
|
18484
|
-
hAsync("div", { key: '
|
|
18485
|
-
hAsync("p", { key: '
|
|
18486
|
-
hAsync("p", { key: '
|
|
18680
|
+
return (hAsync(Host, { key: '3d47132201223429519807348c47df3aa051bf40', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null, "has-action": this.hasAction && !this.hideLabel ? 'true' : null }, hAsync("div", { key: '6e82ddb0df1368cae8f031a85edea469d4ac017d', class: "pds-textarea" }, this.label &&
|
|
18681
|
+
hAsync("div", { key: '34b43e0de0a1e3731970740157bce3cc32f1d062', class: "pds-textarea__label-wrapper" }, hAsync("label", { key: '0ce392058b43701520fae3473fc45a08a3e249b9', htmlFor: this.componentId }, hAsync("span", { key: '8f4f4390d5fd5ef359b739dc27726eebf5c3d806', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), !this.hideLabel && this.renderAction()), hAsync("div", { key: '9d68043524998e90e07bfd57957dadac0656e972', class: "pds-textarea__field-wrapper" }, hAsync("textarea", Object.assign({ key: '28de8bbcc85e484bc6aaaac0d4f69e80b7cbd67f', 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 &&
|
|
18682
|
+
hAsync("p", { key: 'b3eae1b73f8d8c4df0a227ca5763962527408766', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
|
|
18683
|
+
hAsync("p", { key: 'df92fc473847bd009b1e19e56ff4587c303a4403', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, hAsync("pds-icon", { key: '109b8d6705740513e6632c4a57e9996aa25f1729', icon: danger, size: "small" }), this.errorMessage))));
|
|
18487
18684
|
}
|
|
18488
18685
|
static get formAssociated() { return true; }
|
|
18489
18686
|
get el() { return getElement(this); }
|
|
@@ -18526,6 +18723,9 @@ class PdsTextarea {
|
|
|
18526
18723
|
|
|
18527
18724
|
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;}";
|
|
18528
18725
|
|
|
18726
|
+
/**
|
|
18727
|
+
* @part dismiss
|
|
18728
|
+
*/
|
|
18529
18729
|
class PdsToast {
|
|
18530
18730
|
constructor(hostRef) {
|
|
18531
18731
|
registerInstance(this, hostRef);
|
|
@@ -18606,13 +18806,13 @@ class PdsToast {
|
|
|
18606
18806
|
return this.icon && hAsync("pds-icon", { name: this.icon, class: "pds-toast__icon" });
|
|
18607
18807
|
}
|
|
18608
18808
|
render() {
|
|
18609
|
-
return (hAsync(Host, { key: '
|
|
18809
|
+
return (hAsync(Host, { key: 'c5334a7b7c5c711b5199648296ef135908e764f9', hidden: !this.isVisible }, hAsync("div", { key: 'fde78b6b46b4b4c2382d84363a0776708802e1ff', class: {
|
|
18610
18810
|
'pds-toast': true,
|
|
18611
18811
|
[`pds-toast--${this.type}`]: this.type !== 'default',
|
|
18612
18812
|
'pds-toast--animating-out': this.isAnimatingOut
|
|
18613
|
-
}, role: "alert", "aria-live": "polite" }, this.renderIcon(), hAsync("span", { key: '
|
|
18813
|
+
}, role: "alert", "aria-live": "polite" }, this.renderIcon(), hAsync("span", { key: 'fcf8dab1c1fbae1931877d51d2c0bbdf2a560559', class: "pds-toast__message" }, hAsync("slot", { key: '8c13032c06bb06fe54c9809b004f79458751d4c6' })), this.dismissible && (hAsync("button", { key: '36a4442139bdf1f15bed18570360feef7d820434', type: "button", part: "dismiss", class: "pds-toast__button", onClick: () => {
|
|
18614
18814
|
this.dismiss();
|
|
18615
|
-
}, "aria-label": "Dismiss message" }, hAsync("pds-icon", { key: '
|
|
18815
|
+
}, "aria-label": "Dismiss message" }, hAsync("pds-icon", { key: '21a9ab8088241e91e30d1cc0dd3fddd99fa893bd', name: "remove" }))))));
|
|
18616
18816
|
}
|
|
18617
18817
|
static get watchers() { return {
|
|
18618
18818
|
"duration": ["handleDurationChange"]
|
|
@@ -18952,9 +19152,9 @@ class PdsTooltip {
|
|
|
18952
19152
|
}
|
|
18953
19153
|
render() {
|
|
18954
19154
|
const hostId = this.componentId || undefined;
|
|
18955
|
-
return (hAsync(Host, { key: '
|
|
19155
|
+
return (hAsync(Host, { key: '1ac048fb5e323db27ac875ea987251e92a58853b', id: hostId, class: { 'pds-tooltip--is-open': this.opened } }, hAsync("span", { key: '37b52157f53e8394befb80edb15c510377425df8', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide,
|
|
18956
19156
|
/* focusin/out bubble; ensure keyboard users see tooltips */
|
|
18957
|
-
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, hAsync("slot", { key: '
|
|
19157
|
+
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, hAsync("slot", { key: '8b47c6349a370b92c908cf74d4ccd452cbba54fb' })), hAsync("div", { key: 'abb222fd6be2e43c899ff9fb39f7a766dd8a7b87', class: "pds-tooltip__content-slot-wrapper", hidden: true }, hAsync("slot", { key: '7e868254fcb0257e6cff0f1b47c4bdcfe690b105', name: "content" }))));
|
|
18958
19158
|
}
|
|
18959
19159
|
get el() { return getElement(this); }
|
|
18960
19160
|
static get watchers() { return {
|