@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.mjs
CHANGED
|
@@ -3497,7 +3497,7 @@ class MockPdsModal {
|
|
|
3497
3497
|
'pds-modal__backdrop': true,
|
|
3498
3498
|
'open': this.open,
|
|
3499
3499
|
};
|
|
3500
|
-
return (hAsync("div", { key: '
|
|
3500
|
+
return (hAsync("div", { key: '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" })))));
|
|
3501
3501
|
}
|
|
3502
3502
|
get el() { return getElement(this); }
|
|
3503
3503
|
static get style() { return pdsModalCss$1; }
|
|
@@ -3519,7 +3519,7 @@ class MockPdsModal {
|
|
|
3519
3519
|
}; }
|
|
3520
3520
|
}
|
|
3521
3521
|
|
|
3522
|
-
/* pds-icons v9.
|
|
3522
|
+
/* pds-icons v9.21.0, ES Modules */
|
|
3523
3523
|
|
|
3524
3524
|
const addCircle = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12m11-5a1 1 0 0 1 1 1v3h3a1 1 0 1 1 0 2h-3v3a1 1 0 1 1-2 0v-3H8a1 1 0 1 1 0-2h3V8a1 1 0 0 1 1-1'/></svg>";
|
|
3525
3525
|
const caretDown = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M5.293 8.293a1 1 0 0 1 1.414 0L12 13.586l5.293-5.293a1 1 0 1 1 1.414 1.414l-6 6a1 1 0 0 1-1.414 0l-6-6a1 1 0 0 1 0-1.414'/></svg>";
|
|
@@ -3595,6 +3595,7 @@ const pdsAlertCss = ":host{--pds-context-link-color:var(--pine-alert-color-link)
|
|
|
3595
3595
|
|
|
3596
3596
|
/**
|
|
3597
3597
|
* @slot actions - Slot for alert actions.
|
|
3598
|
+
* @part dismiss
|
|
3598
3599
|
*/
|
|
3599
3600
|
class PdsAlert {
|
|
3600
3601
|
constructor(hostRef) {
|
|
@@ -3644,7 +3645,7 @@ class PdsAlert {
|
|
|
3644
3645
|
};
|
|
3645
3646
|
// Get the icon name based on the current variant
|
|
3646
3647
|
const iconName = iconMap[this.variant] || iconMap.default;
|
|
3647
|
-
return (hAsync(Host, { key: '
|
|
3648
|
+
return (hAsync(Host, { key: 'b3280d4851c764c63649aa5078f950920290b155', class: "pds-alert", id: this.componentId, variant: this.variant }, hAsync("pds-box", { key: '60b6f666bbf72ed99260a3a97ac27919f4ae2289', class: `pds-alert__container pds-alert__container--${this.variant}`, "background-color": "var(--pds-alert-background)", "border-color": "var(--pds-alert-border-color)", "border-radius": "md", border: true, display: "block" }, hAsync("pds-box", { key: '17a1e9e1dcd92409b762d3c8fec4ea6bb34dfa3a', gap: "sm", display: "flex" }, hAsync("pds-icon", { key: '9866970bfbdee3a09db537d7bd5536bac7b0cba4', class: `pds-alert__icon ${this.small ? 'pds-alert__icon--small' : ''}`, color: "var(--pds-alert-color-icon)", icon: iconName, size: "var(--pds-alert-icon-size)" }), hAsync("pds-box", { key: '751647dc2a27e7c5fa31801ded4d0466e338ce12', class: "pds-alert__content-wrapper", direction: "column", gap: "xs", flex: "grow" }, this.heading && !this.small && (hAsync("pds-text", { key: 'a603335ef15246a638e1a3b2556bf10ac7073d8f', class: "pds-alert__heading", color: "var(--pds-alert-color-text)", size: "h5", tag: "h3", weight: "medium" }, this.heading)), this.renderContent()), this.dismissible && (hAsync("button", { key: '81fe893cb8dab3f93f5f5d9c515a8806e5b7d79b', class: "pds-alert__dismiss", type: "button", part: "dismiss", "aria-label": "Dismiss alert", onClick: this.handleCloseClick }, hAsync("pds-icon", { key: 'de431f51b5597399b702cc6503c6ee7b029b8fe3', icon: "remove", size: "var(--pds-alert-icon-size)", "aria-hidden": "true", color: "var(--pds-alert-color-dismiss)" })))))));
|
|
3648
3649
|
}
|
|
3649
3650
|
get el() { return getElement(this); }
|
|
3650
3651
|
static get style() { return pdsAlertTokensCss + pdsAlertCss; }
|
|
@@ -3668,6 +3669,8 @@ class PdsAlert {
|
|
|
3668
3669
|
const pdsAvatarCss = ":host{display:inline-block}div{--color-background-container:var(--pine-color-background-container-hover);-ms-flex-align:center;align-items:center;background-color:var(--color-background-container);border-radius:var(--border-radius-admin-round, var(--pine-border-radius-full));display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;position:relative}:host(.pds-avatar--admin) div{--border-radius-admin-round:var(--pine-dimension-150);border-radius:var(--border-radius-admin-round)}:host(.pds-avatar--has-image) div{background:transparent}@supports selector(:has){div:has(img){background-color:transparent}}.pds-avatar__button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:var(--pine-dimension-none);border-radius:var(--pine-border-radius-full);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-none)}.pds-avatar__button:focus-visible{outline:var(--pine-outline-focus)}.pds-avatar__badge{background-color:transparent;border:var(--pine-dimension-none);border-color:transparent;border-radius:var(--pine-border-radius-round);inset-block-end:var(--pine-dimension-none);inset-inline-end:var(--pine-dimension-none);position:absolute}img{border-radius:var(--border-radius-admin-round, var(--pine-border-radius-full));height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.pds-avatar__initials{color:var(--pine-color-brand);fill:var(--pine-color-brand);font-size:var(--pine-font-size-085);font-weight:var(--pine-font-weight-semi-bold);height:100%;text-align:center;width:100%}.pds-avatar__initials text{text-anchor:middle}";
|
|
3669
3670
|
|
|
3670
3671
|
/**
|
|
3672
|
+
* @part asset-wrapper
|
|
3673
|
+
* @part button
|
|
3671
3674
|
* @part image - The main image element that represents the avatar component.
|
|
3672
3675
|
*/
|
|
3673
3676
|
class PdsAvatar {
|
|
@@ -3762,7 +3765,7 @@ class PdsAvatar {
|
|
|
3762
3765
|
}
|
|
3763
3766
|
}
|
|
3764
3767
|
render() {
|
|
3765
|
-
return (hAsync(Host, { key: '
|
|
3768
|
+
return (hAsync(Host, { key: '7bdd177a6b7064ed12cabeb21d96b0a0cc6071ae', id: this.componentId, class: Object.assign({}, this.classNames()) }, this.renderAvatar()));
|
|
3766
3769
|
}
|
|
3767
3770
|
static get style() { return pdsAvatarCss; }
|
|
3768
3771
|
static get cmpMeta() { return {
|
|
@@ -4393,6 +4396,19 @@ function exposeTypeProperty(element, type) {
|
|
|
4393
4396
|
configurable: false
|
|
4394
4397
|
});
|
|
4395
4398
|
}
|
|
4399
|
+
/**
|
|
4400
|
+
* Determines if code is running in Stencil's spec test environment.
|
|
4401
|
+
* Stencil's mock-doc logs console.error on any ElementInternals
|
|
4402
|
+
* property access during spec tests. Use this guard to skip
|
|
4403
|
+
* ElementInternals calls in the mock environment.
|
|
4404
|
+
*
|
|
4405
|
+
* Uses __STENCIL_SPEC_TESTS__ (the same env var Stencil's mock-doc checks)
|
|
4406
|
+
* to avoid false positives in downstream consumer test suites.
|
|
4407
|
+
*/
|
|
4408
|
+
const isSpecTest = () => {
|
|
4409
|
+
var _a;
|
|
4410
|
+
return typeof process !== 'undefined' && ((_a = process.env) === null || _a === void 0 ? void 0 : _a.__STENCIL_SPEC_TESTS__) === 'true';
|
|
4411
|
+
};
|
|
4396
4412
|
|
|
4397
4413
|
/**
|
|
4398
4414
|
* Inherit attributes from the host element
|
|
@@ -4540,10 +4556,8 @@ class PdsCheckbox {
|
|
|
4540
4556
|
this.updateFormValue();
|
|
4541
4557
|
}
|
|
4542
4558
|
updateFormValue() {
|
|
4543
|
-
|
|
4544
|
-
if (typeof jest !== 'undefined' || typeof process !== 'undefined' && ((_a = process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) === 'test') {
|
|
4559
|
+
if (isSpecTest())
|
|
4545
4560
|
return;
|
|
4546
|
-
}
|
|
4547
4561
|
if (this.internals && this.internals.setFormValue) {
|
|
4548
4562
|
// For checkboxes, only send the value when checked, otherwise send null
|
|
4549
4563
|
const formValue = this.checked ? (this.value || 'on') : null;
|
|
@@ -4568,9 +4582,9 @@ class PdsCheckbox {
|
|
|
4568
4582
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
4569
4583
|
}
|
|
4570
4584
|
render() {
|
|
4571
|
-
return (hAsync(Host, { key: '
|
|
4572
|
-
hAsync("div", { key: '
|
|
4573
|
-
hAsync("div", { key: '
|
|
4585
|
+
return (hAsync(Host, { key: 'd4a447aba6ffa638b0bf3ed7a5cfd4580168da79', class: this.classNames() }, hAsync("label", { key: '75fcd32809f736f8e4f6af2021f86d2c5b7bc110', htmlFor: this.componentId }, hAsync("input", Object.assign({ key: '5238103a16bc1c6baf92b5802bca17db748a14b2', type: "checkbox", "aria-describedby": assignDescription(this.componentId, this.invalid, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, id: this.componentId, indeterminate: this.indeterminate, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleCheckboxChange, onInput: this.handleInput }, this.inheritedAttributes)), hAsync("span", { key: '0a652dc44e4c35d3a5484065f140a231a0d46424', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), this.helperMessage &&
|
|
4586
|
+
hAsync("div", { key: '76f40eba1d92ffcdb9946c8cc17714bda421a8a7', class: 'pds-checkbox__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
4587
|
+
hAsync("div", { key: 'ad05bf066a91bc934344c3696ec82ec6b9813c07', class: `pds-checkbox__message pds-checkbox__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: '4d3f9dddea4be870323db41a6cc5d69a9be44d7d', icon: danger, size: "small" }), this.errorMessage)));
|
|
4574
4588
|
}
|
|
4575
4589
|
static get formAssociated() { return true; }
|
|
4576
4590
|
get el() { return getElement(this); }
|
|
@@ -4607,6 +4621,7 @@ const pdsChipCss = ":host{--sizing-close:var(--pine-dimension-125);-ms-flex-alig
|
|
|
4607
4621
|
|
|
4608
4622
|
/**
|
|
4609
4623
|
* @slot (default) - The chip's label text.
|
|
4624
|
+
* @part button
|
|
4610
4625
|
*/
|
|
4611
4626
|
class PdsChip {
|
|
4612
4627
|
constructor(hostRef) {
|
|
@@ -4725,7 +4740,7 @@ class PdsChip {
|
|
|
4725
4740
|
return (hAsync(CloseElement, Object.assign({}, closeAttributes(), { onClick: this.handleCloseClick }), hAsync("pds-icon", { icon: remove, size: this.iconSize })));
|
|
4726
4741
|
}
|
|
4727
4742
|
render() {
|
|
4728
|
-
return (hAsync(Host, { key: '
|
|
4743
|
+
return (hAsync(Host, { key: '1d75f8ea7583f53191467b568352664ea0313c79', class: this.classNames(), id: this.componentId }, this.setChipContent(), this.effectiveVariant === 'tag' && this.renderCloseButton()));
|
|
4729
4744
|
}
|
|
4730
4745
|
static get style() { return pdsChipTokensCss + pdsChipCss; }
|
|
4731
4746
|
static get cmpMeta() { return {
|
|
@@ -4768,10 +4783,6 @@ const oppositeSideMap = {
|
|
|
4768
4783
|
bottom: 'top',
|
|
4769
4784
|
top: 'bottom'
|
|
4770
4785
|
};
|
|
4771
|
-
const oppositeAlignmentMap = {
|
|
4772
|
-
start: 'end',
|
|
4773
|
-
end: 'start'
|
|
4774
|
-
};
|
|
4775
4786
|
function clamp(start, value, end) {
|
|
4776
4787
|
return max(start, min(value, end));
|
|
4777
4788
|
}
|
|
@@ -4790,9 +4801,9 @@ function getOppositeAxis(axis) {
|
|
|
4790
4801
|
function getAxisLength(axis) {
|
|
4791
4802
|
return axis === 'y' ? 'height' : 'width';
|
|
4792
4803
|
}
|
|
4793
|
-
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
4794
4804
|
function getSideAxis(placement) {
|
|
4795
|
-
|
|
4805
|
+
const firstChar = placement[0];
|
|
4806
|
+
return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
|
|
4796
4807
|
}
|
|
4797
4808
|
function getAlignmentAxis(placement) {
|
|
4798
4809
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -4815,7 +4826,7 @@ function getExpandedPlacements(placement) {
|
|
|
4815
4826
|
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
4816
4827
|
}
|
|
4817
4828
|
function getOppositeAlignmentPlacement(placement) {
|
|
4818
|
-
return placement.replace(
|
|
4829
|
+
return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
|
|
4819
4830
|
}
|
|
4820
4831
|
const lrPlacement = ['left', 'right'];
|
|
4821
4832
|
const rlPlacement = ['right', 'left'];
|
|
@@ -4846,7 +4857,8 @@ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
|
4846
4857
|
return list;
|
|
4847
4858
|
}
|
|
4848
4859
|
function getOppositePlacement(placement) {
|
|
4849
|
-
|
|
4860
|
+
const side = getSide(placement);
|
|
4861
|
+
return oppositeSideMap[side] + placement.slice(side.length);
|
|
4850
4862
|
}
|
|
4851
4863
|
function expandPaddingObject(padding) {
|
|
4852
4864
|
return {
|
|
@@ -4940,6 +4952,74 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
4940
4952
|
return coords;
|
|
4941
4953
|
}
|
|
4942
4954
|
|
|
4955
|
+
/**
|
|
4956
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
|
4957
|
+
* element is overflowing a given clipping boundary on each side.
|
|
4958
|
+
* - positive = overflowing the boundary by that number of pixels
|
|
4959
|
+
* - negative = how many pixels left before it will overflow
|
|
4960
|
+
* - 0 = lies flush with the boundary
|
|
4961
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
|
4962
|
+
*/
|
|
4963
|
+
async function detectOverflow(state, options) {
|
|
4964
|
+
var _await$platform$isEle;
|
|
4965
|
+
if (options === void 0) {
|
|
4966
|
+
options = {};
|
|
4967
|
+
}
|
|
4968
|
+
const {
|
|
4969
|
+
x,
|
|
4970
|
+
y,
|
|
4971
|
+
platform,
|
|
4972
|
+
rects,
|
|
4973
|
+
elements,
|
|
4974
|
+
strategy
|
|
4975
|
+
} = state;
|
|
4976
|
+
const {
|
|
4977
|
+
boundary = 'clippingAncestors',
|
|
4978
|
+
rootBoundary = 'viewport',
|
|
4979
|
+
elementContext = 'floating',
|
|
4980
|
+
altBoundary = false,
|
|
4981
|
+
padding = 0
|
|
4982
|
+
} = evaluate(options, state);
|
|
4983
|
+
const paddingObject = getPaddingObject(padding);
|
|
4984
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
4985
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
4986
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
4987
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
|
4988
|
+
boundary,
|
|
4989
|
+
rootBoundary,
|
|
4990
|
+
strategy
|
|
4991
|
+
}));
|
|
4992
|
+
const rect = elementContext === 'floating' ? {
|
|
4993
|
+
x,
|
|
4994
|
+
y,
|
|
4995
|
+
width: rects.floating.width,
|
|
4996
|
+
height: rects.floating.height
|
|
4997
|
+
} : rects.reference;
|
|
4998
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
4999
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
5000
|
+
x: 1,
|
|
5001
|
+
y: 1
|
|
5002
|
+
} : {
|
|
5003
|
+
x: 1,
|
|
5004
|
+
y: 1
|
|
5005
|
+
};
|
|
5006
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
5007
|
+
elements,
|
|
5008
|
+
rect,
|
|
5009
|
+
offsetParent,
|
|
5010
|
+
strategy
|
|
5011
|
+
}) : rect);
|
|
5012
|
+
return {
|
|
5013
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
5014
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
5015
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
5016
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
5017
|
+
};
|
|
5018
|
+
}
|
|
5019
|
+
|
|
5020
|
+
// Maximum number of resets that can occur before bailing to avoid infinite reset loops.
|
|
5021
|
+
const MAX_RESET_COUNT = 50;
|
|
5022
|
+
|
|
4943
5023
|
/**
|
|
4944
5024
|
* Computes the `x` and `y` coordinates that will place the floating element
|
|
4945
5025
|
* next to a given reference element.
|
|
@@ -4954,7 +5034,10 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
4954
5034
|
middleware = [],
|
|
4955
5035
|
platform
|
|
4956
5036
|
} = config;
|
|
4957
|
-
const
|
|
5037
|
+
const platformWithDetectOverflow = platform.detectOverflow ? platform : {
|
|
5038
|
+
...platform,
|
|
5039
|
+
detectOverflow
|
|
5040
|
+
};
|
|
4958
5041
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
4959
5042
|
let rects = await platform.getElementRects({
|
|
4960
5043
|
reference,
|
|
@@ -4966,13 +5049,17 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
4966
5049
|
y
|
|
4967
5050
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
4968
5051
|
let statefulPlacement = placement;
|
|
4969
|
-
let middlewareData = {};
|
|
4970
5052
|
let resetCount = 0;
|
|
4971
|
-
|
|
5053
|
+
const middlewareData = {};
|
|
5054
|
+
for (let i = 0; i < middleware.length; i++) {
|
|
5055
|
+
const currentMiddleware = middleware[i];
|
|
5056
|
+
if (!currentMiddleware) {
|
|
5057
|
+
continue;
|
|
5058
|
+
}
|
|
4972
5059
|
const {
|
|
4973
5060
|
name,
|
|
4974
5061
|
fn
|
|
4975
|
-
} =
|
|
5062
|
+
} = currentMiddleware;
|
|
4976
5063
|
const {
|
|
4977
5064
|
x: nextX,
|
|
4978
5065
|
y: nextY,
|
|
@@ -4986,7 +5073,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
4986
5073
|
strategy,
|
|
4987
5074
|
middlewareData,
|
|
4988
5075
|
rects,
|
|
4989
|
-
platform,
|
|
5076
|
+
platform: platformWithDetectOverflow,
|
|
4990
5077
|
elements: {
|
|
4991
5078
|
reference,
|
|
4992
5079
|
floating
|
|
@@ -4994,14 +5081,11 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
4994
5081
|
});
|
|
4995
5082
|
x = nextX != null ? nextX : x;
|
|
4996
5083
|
y = nextY != null ? nextY : y;
|
|
4997
|
-
middlewareData = {
|
|
4998
|
-
...middlewareData,
|
|
4999
|
-
|
|
5000
|
-
...middlewareData[name],
|
|
5001
|
-
...data
|
|
5002
|
-
}
|
|
5084
|
+
middlewareData[name] = {
|
|
5085
|
+
...middlewareData[name],
|
|
5086
|
+
...data
|
|
5003
5087
|
};
|
|
5004
|
-
if (reset && resetCount
|
|
5088
|
+
if (reset && resetCount < MAX_RESET_COUNT) {
|
|
5005
5089
|
resetCount++;
|
|
5006
5090
|
if (typeof reset === 'object') {
|
|
5007
5091
|
if (reset.placement) {
|
|
@@ -5031,71 +5115,6 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
5031
5115
|
};
|
|
5032
5116
|
};
|
|
5033
5117
|
|
|
5034
|
-
/**
|
|
5035
|
-
* Resolves with an object of overflow side offsets that determine how much the
|
|
5036
|
-
* element is overflowing a given clipping boundary on each side.
|
|
5037
|
-
* - positive = overflowing the boundary by that number of pixels
|
|
5038
|
-
* - negative = how many pixels left before it will overflow
|
|
5039
|
-
* - 0 = lies flush with the boundary
|
|
5040
|
-
* @see https://floating-ui.com/docs/detectOverflow
|
|
5041
|
-
*/
|
|
5042
|
-
async function detectOverflow(state, options) {
|
|
5043
|
-
var _await$platform$isEle;
|
|
5044
|
-
if (options === void 0) {
|
|
5045
|
-
options = {};
|
|
5046
|
-
}
|
|
5047
|
-
const {
|
|
5048
|
-
x,
|
|
5049
|
-
y,
|
|
5050
|
-
platform,
|
|
5051
|
-
rects,
|
|
5052
|
-
elements,
|
|
5053
|
-
strategy
|
|
5054
|
-
} = state;
|
|
5055
|
-
const {
|
|
5056
|
-
boundary = 'clippingAncestors',
|
|
5057
|
-
rootBoundary = 'viewport',
|
|
5058
|
-
elementContext = 'floating',
|
|
5059
|
-
altBoundary = false,
|
|
5060
|
-
padding = 0
|
|
5061
|
-
} = evaluate(options, state);
|
|
5062
|
-
const paddingObject = getPaddingObject(padding);
|
|
5063
|
-
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
5064
|
-
const element = elements[altBoundary ? altContext : elementContext];
|
|
5065
|
-
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
5066
|
-
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
|
5067
|
-
boundary,
|
|
5068
|
-
rootBoundary,
|
|
5069
|
-
strategy
|
|
5070
|
-
}));
|
|
5071
|
-
const rect = elementContext === 'floating' ? {
|
|
5072
|
-
x,
|
|
5073
|
-
y,
|
|
5074
|
-
width: rects.floating.width,
|
|
5075
|
-
height: rects.floating.height
|
|
5076
|
-
} : rects.reference;
|
|
5077
|
-
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
5078
|
-
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
5079
|
-
x: 1,
|
|
5080
|
-
y: 1
|
|
5081
|
-
} : {
|
|
5082
|
-
x: 1,
|
|
5083
|
-
y: 1
|
|
5084
|
-
};
|
|
5085
|
-
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
5086
|
-
elements,
|
|
5087
|
-
rect,
|
|
5088
|
-
offsetParent,
|
|
5089
|
-
strategy
|
|
5090
|
-
}) : rect);
|
|
5091
|
-
return {
|
|
5092
|
-
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
5093
|
-
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
5094
|
-
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
5095
|
-
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
5096
|
-
};
|
|
5097
|
-
}
|
|
5098
|
-
|
|
5099
5118
|
/**
|
|
5100
5119
|
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
5101
5120
|
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
@@ -5146,7 +5165,7 @@ const flip$1 = function (options) {
|
|
|
5146
5165
|
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
5147
5166
|
}
|
|
5148
5167
|
const placements = [initialPlacement, ...fallbackPlacements];
|
|
5149
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
5168
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
5150
5169
|
const overflows = [];
|
|
5151
5170
|
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
5152
5171
|
if (checkMainAxis) {
|
|
@@ -5330,7 +5349,8 @@ const shift$1 = function (options) {
|
|
|
5330
5349
|
const {
|
|
5331
5350
|
x,
|
|
5332
5351
|
y,
|
|
5333
|
-
placement
|
|
5352
|
+
placement,
|
|
5353
|
+
platform
|
|
5334
5354
|
} = state;
|
|
5335
5355
|
const {
|
|
5336
5356
|
mainAxis: checkMainAxis = true,
|
|
@@ -5353,7 +5373,7 @@ const shift$1 = function (options) {
|
|
|
5353
5373
|
x,
|
|
5354
5374
|
y
|
|
5355
5375
|
};
|
|
5356
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
5376
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
5357
5377
|
const crossAxis = getSideAxis(getSide(placement));
|
|
5358
5378
|
const mainAxis = getOppositeAxis(crossAxis);
|
|
5359
5379
|
let mainAxisCoord = coords[mainAxis];
|
|
@@ -5417,7 +5437,7 @@ const size$1 = function (options) {
|
|
|
5417
5437
|
apply = () => {},
|
|
5418
5438
|
...detectOverflowOptions
|
|
5419
5439
|
} = evaluate(options, state);
|
|
5420
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
5440
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
5421
5441
|
const side = getSide(placement);
|
|
5422
5442
|
const alignment = getAlignment(placement);
|
|
5423
5443
|
const isYAxis = getSideAxis(placement) === 'y';
|
|
@@ -5520,7 +5540,6 @@ function isShadowRoot(value) {
|
|
|
5520
5540
|
}
|
|
5521
5541
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
5522
5542
|
}
|
|
5523
|
-
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
5524
5543
|
function isOverflowElement(element) {
|
|
5525
5544
|
const {
|
|
5526
5545
|
overflow,
|
|
@@ -5528,32 +5547,35 @@ function isOverflowElement(element) {
|
|
|
5528
5547
|
overflowY,
|
|
5529
5548
|
display
|
|
5530
5549
|
} = getComputedStyle$1(element);
|
|
5531
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) &&
|
|
5550
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
|
|
5532
5551
|
}
|
|
5533
|
-
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
5534
5552
|
function isTableElement(element) {
|
|
5535
|
-
return
|
|
5553
|
+
return /^(table|td|th)$/.test(getNodeName(element));
|
|
5536
5554
|
}
|
|
5537
|
-
const topLayerSelectors = [':popover-open', ':modal'];
|
|
5538
5555
|
function isTopLayer(element) {
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
return
|
|
5542
|
-
} catch (_e) {
|
|
5543
|
-
return false;
|
|
5556
|
+
try {
|
|
5557
|
+
if (element.matches(':popover-open')) {
|
|
5558
|
+
return true;
|
|
5544
5559
|
}
|
|
5545
|
-
})
|
|
5560
|
+
} catch (_e) {
|
|
5561
|
+
// no-op
|
|
5562
|
+
}
|
|
5563
|
+
try {
|
|
5564
|
+
return element.matches(':modal');
|
|
5565
|
+
} catch (_e) {
|
|
5566
|
+
return false;
|
|
5567
|
+
}
|
|
5546
5568
|
}
|
|
5547
|
-
const
|
|
5548
|
-
const
|
|
5549
|
-
const
|
|
5569
|
+
const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
|
|
5570
|
+
const containRe = /paint|layout|strict|content/;
|
|
5571
|
+
const isNotNone = value => !!value && value !== 'none';
|
|
5572
|
+
let isWebKitValue;
|
|
5550
5573
|
function isContainingBlock(elementOrCss) {
|
|
5551
|
-
const webkit = isWebKit();
|
|
5552
5574
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
5553
5575
|
|
|
5554
5576
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
5555
5577
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
5556
|
-
return
|
|
5578
|
+
return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');
|
|
5557
5579
|
}
|
|
5558
5580
|
function getContainingBlock(element) {
|
|
5559
5581
|
let currentNode = getParentNode(element);
|
|
@@ -5568,12 +5590,13 @@ function getContainingBlock(element) {
|
|
|
5568
5590
|
return null;
|
|
5569
5591
|
}
|
|
5570
5592
|
function isWebKit() {
|
|
5571
|
-
if (
|
|
5572
|
-
|
|
5593
|
+
if (isWebKitValue == null) {
|
|
5594
|
+
isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
|
|
5595
|
+
}
|
|
5596
|
+
return isWebKitValue;
|
|
5573
5597
|
}
|
|
5574
|
-
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
5575
5598
|
function isLastTraversableNode(node) {
|
|
5576
|
-
return
|
|
5599
|
+
return /^(html|body|#document)$/.test(getNodeName(node));
|
|
5577
5600
|
}
|
|
5578
5601
|
function getComputedStyle$1(element) {
|
|
5579
5602
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -5629,8 +5652,9 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
5629
5652
|
if (isBody) {
|
|
5630
5653
|
const frameElement = getFrameElement(win);
|
|
5631
5654
|
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
5655
|
+
} else {
|
|
5656
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
5632
5657
|
}
|
|
5633
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
5634
5658
|
}
|
|
5635
5659
|
function getFrameElement(win) {
|
|
5636
5660
|
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
@@ -5807,7 +5831,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
5807
5831
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
5808
5832
|
scroll = getNodeScroll(offsetParent);
|
|
5809
5833
|
}
|
|
5810
|
-
if (
|
|
5834
|
+
if (isOffsetParentAnElement) {
|
|
5811
5835
|
const offsetRect = getBoundingClientRect(offsetParent);
|
|
5812
5836
|
scale = getScale(offsetParent);
|
|
5813
5837
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
@@ -5895,7 +5919,6 @@ function getViewportRect(element, strategy) {
|
|
|
5895
5919
|
};
|
|
5896
5920
|
}
|
|
5897
5921
|
|
|
5898
|
-
const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
|
|
5899
5922
|
// Returns the inner client rect, subtracting scrollbars if present.
|
|
5900
5923
|
function getInnerBoundingClientRect(element, strategy) {
|
|
5901
5924
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
@@ -5960,7 +5983,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
5960
5983
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
5961
5984
|
currentContainingBlockComputedStyle = null;
|
|
5962
5985
|
}
|
|
5963
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle &&
|
|
5986
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === 'absolute' || currentContainingBlockComputedStyle.position === 'fixed') || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
5964
5987
|
if (shouldDropCurrentNode) {
|
|
5965
5988
|
// Drop non-containing blocks.
|
|
5966
5989
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -5985,20 +6008,23 @@ function getClippingRect(_ref) {
|
|
|
5985
6008
|
} = _ref;
|
|
5986
6009
|
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
5987
6010
|
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
5988
|
-
const
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
6011
|
+
const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
|
|
6012
|
+
let top = firstRect.top;
|
|
6013
|
+
let right = firstRect.right;
|
|
6014
|
+
let bottom = firstRect.bottom;
|
|
6015
|
+
let left = firstRect.left;
|
|
6016
|
+
for (let i = 1; i < clippingAncestors.length; i++) {
|
|
6017
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
|
|
6018
|
+
top = max(rect.top, top);
|
|
6019
|
+
right = min(rect.right, right);
|
|
6020
|
+
bottom = min(rect.bottom, bottom);
|
|
6021
|
+
left = max(rect.left, left);
|
|
6022
|
+
}
|
|
5997
6023
|
return {
|
|
5998
|
-
width:
|
|
5999
|
-
height:
|
|
6000
|
-
x:
|
|
6001
|
-
y:
|
|
6024
|
+
width: right - left,
|
|
6025
|
+
height: bottom - top,
|
|
6026
|
+
x: left,
|
|
6027
|
+
y: top
|
|
6002
6028
|
};
|
|
6003
6029
|
}
|
|
6004
6030
|
|
|
@@ -6249,7 +6275,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
6249
6275
|
animationFrame = false
|
|
6250
6276
|
} = options;
|
|
6251
6277
|
const referenceEl = unwrapElement(reference);
|
|
6252
|
-
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
|
6278
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];
|
|
6253
6279
|
ancestors.forEach(ancestor => {
|
|
6254
6280
|
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
6255
6281
|
passive: true
|
|
@@ -6262,7 +6288,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
6262
6288
|
if (elementResize) {
|
|
6263
6289
|
resizeObserver = new ResizeObserver(_ref => {
|
|
6264
6290
|
let [firstEntry] = _ref;
|
|
6265
|
-
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
6291
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
|
|
6266
6292
|
// Prevent update loops when using the `size` middleware.
|
|
6267
6293
|
// https://github.com/floating-ui/floating-ui/issues/1740
|
|
6268
6294
|
resizeObserver.unobserve(floating);
|
|
@@ -6277,7 +6303,9 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
6277
6303
|
if (referenceEl && !animationFrame) {
|
|
6278
6304
|
resizeObserver.observe(referenceEl);
|
|
6279
6305
|
}
|
|
6280
|
-
|
|
6306
|
+
if (floating) {
|
|
6307
|
+
resizeObserver.observe(floating);
|
|
6308
|
+
}
|
|
6281
6309
|
}
|
|
6282
6310
|
let frameId;
|
|
6283
6311
|
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
@@ -6363,7 +6391,7 @@ const computePosition = (reference, floating, options) => {
|
|
|
6363
6391
|
});
|
|
6364
6392
|
};
|
|
6365
6393
|
|
|
6366
|
-
/*! @license DOMPurify 3.3.
|
|
6394
|
+
/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
|
|
6367
6395
|
|
|
6368
6396
|
const {
|
|
6369
6397
|
entries,
|
|
@@ -6661,7 +6689,7 @@ const _createHooksMap = function _createHooksMap() {
|
|
|
6661
6689
|
function createDOMPurify() {
|
|
6662
6690
|
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
6663
6691
|
const DOMPurify = root => createDOMPurify(root);
|
|
6664
|
-
DOMPurify.version = '3.3.
|
|
6692
|
+
DOMPurify.version = '3.3.3';
|
|
6665
6693
|
DOMPurify.removed = [];
|
|
6666
6694
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
6667
6695
|
// Not running in a browser, provide a factory function
|
|
@@ -6956,7 +6984,7 @@ function createDOMPurify() {
|
|
|
6956
6984
|
/* Parse profile info */
|
|
6957
6985
|
if (USE_PROFILES) {
|
|
6958
6986
|
ALLOWED_TAGS = addToSet({}, text);
|
|
6959
|
-
ALLOWED_ATTR =
|
|
6987
|
+
ALLOWED_ATTR = create(null);
|
|
6960
6988
|
if (USE_PROFILES.html === true) {
|
|
6961
6989
|
addToSet(ALLOWED_TAGS, html$1);
|
|
6962
6990
|
addToSet(ALLOWED_ATTR, html);
|
|
@@ -6977,6 +7005,13 @@ function createDOMPurify() {
|
|
|
6977
7005
|
addToSet(ALLOWED_ATTR, xml);
|
|
6978
7006
|
}
|
|
6979
7007
|
}
|
|
7008
|
+
/* Prevent function-based ADD_ATTR / ADD_TAGS from leaking across calls */
|
|
7009
|
+
if (!objectHasOwnProperty(cfg, 'ADD_TAGS')) {
|
|
7010
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = null;
|
|
7011
|
+
}
|
|
7012
|
+
if (!objectHasOwnProperty(cfg, 'ADD_ATTR')) {
|
|
7013
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = null;
|
|
7014
|
+
}
|
|
6980
7015
|
/* Merge configuration parameters */
|
|
6981
7016
|
if (cfg.ADD_TAGS) {
|
|
6982
7017
|
if (typeof cfg.ADD_TAGS === 'function') {
|
|
@@ -7374,6 +7409,10 @@ function createDOMPurify() {
|
|
|
7374
7409
|
*/
|
|
7375
7410
|
// eslint-disable-next-line complexity
|
|
7376
7411
|
const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
|
7412
|
+
/* FORBID_ATTR must always win, even if ADD_ATTR predicate would allow it */
|
|
7413
|
+
if (FORBID_ATTR[lcName]) {
|
|
7414
|
+
return false;
|
|
7415
|
+
}
|
|
7377
7416
|
/* Make sure attribute cannot clobber */
|
|
7378
7417
|
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
|
|
7379
7418
|
return false;
|
|
@@ -7466,7 +7505,7 @@ function createDOMPurify() {
|
|
|
7466
7505
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
7467
7506
|
}
|
|
7468
7507
|
/* Work around a security issue with comments inside attributes */
|
|
7469
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
|
|
7508
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
|
|
7470
7509
|
_removeAttribute(name, currentNode);
|
|
7471
7510
|
continue;
|
|
7472
7511
|
}
|
|
@@ -7738,7 +7777,7 @@ function createDOMPurify() {
|
|
|
7738
7777
|
}
|
|
7739
7778
|
var purify = createDOMPurify();
|
|
7740
7779
|
|
|
7741
|
-
const pdsComboboxCss = ":host{display:block}:host([disabled=true]) .pds-combobox__input-icon{color:var(--pine-color-text-disabled);pointer-events:none}.pds-combobox{position:relative}.pds-combobox__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-combobox__input-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;position:relative;width:100%}.pds-combobox__input{background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body-medium);padding:var(--pine-dimension-xs) var(--pine-dimension-450) var(--pine-dimension-xs) var(--pine-dimension-150);-webkit-transition:border-color 0.2s ease;transition:border-color 0.2s ease;width:100%}.pds-combobox__input:hover:not(:disabled){border-color:var(--pine-color-border-hover)}.pds-combobox__input:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-combobox__input:disabled::-webkit-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-moz-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled:-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:focus-visible{border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input-icon{color:var(--pine-color-text-secondary);pointer-events:none;position:absolute;right:var(--pine-dimension-150);z-index:var(--pine-z-index-raised)}.pds-combobox__listbox{background:var(--pine-color-background-container);border:0;border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);list-style:none;margin:0;min-width:220px;overflow-y:auto;padding:var(--pine-dimension-xs);position:absolute;z-index:var(--pine-z-index-raised)}.pds-combobox__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-125);color:var(--pine-color-text-secondary);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;-webkit-transition:background 0.15s;transition:background 0.15s}.pds-combobox__option[aria-selected=true]{background:var(--pine-color-background-muted)}.pds-combobox__option:focus-visible{outline:0}.pds-combobox__option .pds-combobox__option--layout .pds-combobox__option-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option .pds-combobox__option--chip .pds-combobox__option-chip{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option:last-child{-webkit-margin-after:0;margin-block-end:0}.pds-combobox__option--highlighted,.pds-combobox__option[selected],.pds-combobox__option--selected{background:var(--pine-color-background-muted)}.pds-combobox__option-check{color:currentColor;font-size:var(--pine-dimension-150);-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__group-label{color:var(--pine-color-text-tertiary);cursor:default;font:var(--pine-typography-heading-caption);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-150);margin-block-start:var(--pine-dimension-150);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm);text-transform:uppercase}.pds-combobox__group-label:first-child{-webkit-margin-before:0;margin-block-start:0}.pds-combobox__button-trigger{-ms-flex-align:center;align-items:center;background:var(--color-background-default, var(--pine-color-secondary));border:var(--pine-border);border-radius:var(--pine-border-radius-full);color:var(--color-text-default, var(--pine-color-text-inverse-emphasis));cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;min-height:var(--pine-dimension-450);outline:none;padding:0 var(--pine-dimension-sm);-webkit-transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s, -webkit-box-shadow 0.15s;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__button-trigger .pds-combobox__button-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__button-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__button-trigger:focus-visible{border-color:var(--color-border-focus, var(--pine-color-border));-webkit-box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring));box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring))}.pds-combobox__button-trigger:hover{background:var(--color-background-hover, var(--pine-color-secondary-hover));border-color:var(--color-border-hover, var(--pine-color-border-hover))}.pds-combobox__button-trigger[aria-disabled=true],.pds-combobox__button-trigger:disabled{background:var(--color-background-disabled, var(--pine-color-secondary-disabled));border-color:var(--color-border-disabled, var(--pine-color-border-disabled));color:var(--color-text-disabled, var(--pine-color-text-secondary-disabled));cursor:not-allowed;opacity:0.6}.pds-combobox__button-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__button-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__button-trigger--primary{--color-background-default:var(--pine-color-primary);--color-background-hover:var(--pine-color-primary-hover);--color-background-disabled:var(--pine-color-primary-disabled);--color-border-default:var(--pine-color-primary);--color-border-hover:var(--pine-color-primary-hover);--color-border-disabled:var(--pine-color-primary-disabled);--color-border-focus:var(--pine-color-primary);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-primary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--accent{--color-background-default:var(--pine-color-accent);--color-background-hover:var(--pine-color-accent-hover);--color-background-disabled:var(--pine-color-accent-disabled);--color-border-default:var(--pine-color-accent);--color-border-hover:var(--pine-color-accent-hover);--color-border-disabled:var(--pine-color-accent-disabled);--color-border-focus:var(--pine-color-accent);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-accent-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--secondary{--color-background-default:var(--pine-color-secondary);--color-background-hover:var(--pine-color-secondary-hover);--color-background-disabled:var(--pine-color-secondary-disabled);--color-border-default:var(--pine-color-border);--color-border-hover:var(--pine-color-border-hover);--color-border-disabled:var(--pine-color-border-disabled);--color-border-focus:var(--pine-color-border);--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--destructive{--color-background-default:var(--pine-color-danger);--color-background-hover:var(--pine-color-danger-hover);--color-background-disabled:var(--pine-color-danger-disabled);--color-border-default:var(--pine-color-danger);--color-border-hover:var(--pine-color-danger-hover);--color-border-disabled:var(--pine-color-danger-disabled);--color-border-focus:var(--pine-color-danger);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-danger-disabled);--color-outline:var(--pine-color-focus-ring-danger)}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[data-layout]{border-radius:var(--pine-dimension-125);padding-block:var(--pine-dimension-xs)}.pds-combobox__chip-trigger{-ms-flex-align:center;align-items:center;border-radius:var(--pine-dimension-sm);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;outline:none;padding-block:var(--pine-dimension-025);padding-inline:var(--pine-dimension-150);-webkit-transition:all 0.15s ease;transition:all 0.15s ease;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__chip-trigger .pds-combobox__chip-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__chip-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__chip-trigger:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__chip-trigger[aria-disabled=true]{cursor:not-allowed;opacity:0.6}.pds-combobox__chip-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__chip-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__chip-trigger-icon{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}.pds-combobox__chip-trigger--neutral,.pds-combobox__chip-trigger--accent,.pds-combobox__chip-trigger--success,.pds-combobox__chip-trigger--warning,.pds-combobox__chip-trigger--danger,.pds-combobox__chip-trigger--info{background:var(--chip-bg);border:var(--pine-border-width) solid var(--chip-border);color:var(--chip-text)}.pds-combobox__chip-trigger--neutral:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--accent:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--success:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--warning:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--danger:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--info:hover:not([aria-disabled=true]){background:var(--chip-bg-hover)}.pds-combobox__chip-trigger--neutral:focus-visible,.pds-combobox__chip-trigger--accent:focus-visible,.pds-combobox__chip-trigger--success:focus-visible,.pds-combobox__chip-trigger--warning:focus-visible,.pds-combobox__chip-trigger--danger:focus-visible,.pds-combobox__chip-trigger--info:focus-visible{border-color:var(--chip-border)}.pds-combobox__chip-trigger--neutral{--chip-bg:var(--pine-chip-color-neutral);--chip-bg-hover:var(--pine-chip-color-neutral-hover);--chip-border:var(--pine-chip-color-neutral-hover);--chip-text:var(--pine-color-text-neutral)}.pds-combobox__chip-trigger--accent{--chip-bg:var(--pine-chip-color-accent);--chip-bg-hover:var(--pine-chip-color-accent-hover);--chip-border:var(--pine-chip-color-accent-hover);--chip-text:var(--pine-color-text-accent)}.pds-combobox__chip-trigger--success{--chip-bg:var(--pine-chip-color-success);--chip-bg-hover:var(--pine-chip-color-success-hover);--chip-border:var(--pine-chip-color-success-hover);--chip-text:var(--pine-color-text-success)}.pds-combobox__chip-trigger--warning{--chip-bg:var(--pine-chip-color-warning);--chip-bg-hover:var(--pine-chip-color-warning-hover);--chip-border:var(--pine-chip-color-warning-hover);--chip-text:var(--pine-color-text-warning)}.pds-combobox__chip-trigger--danger{--chip-bg:var(--pine-chip-color-danger);--chip-bg-hover:var(--pine-chip-color-danger-hover);--chip-border:var(--pine-chip-color-danger-hover);--chip-text:var(--pine-color-text-danger)}.pds-combobox__chip-trigger--info{--chip-bg:var(--pine-chip-color-info);--chip-bg-hover:var(--pine-chip-color-info-hover);--chip-border:var(--pine-chip-color-info-hover);--chip-text:var(--pine-color-text-info)}.pds-combobox__chip-trigger--brand{background:-webkit-gradient(linear, left top, right top, from(#FF3E14), to(#6B62F2));background:linear-gradient(90deg, #FF3E14 0%, #6B62F2 100%);border:0;color:var(--pine-color-text-neutral);padding:1px;position:relative}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.9);border-radius:calc(var(--pine-dimension-sm) - 1px);color:var(--pine-color-text-neutral);font-weight:var(--pine-font-weight-medium);padding:var(--pine-dimension-025) var(--pine-dimension-150);position:relative;z-index:1}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-chevron{position:relative;z-index:1}.pds-combobox__chip-trigger--brand:hover:not([aria-disabled=true]) .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.8)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand){padding:var(--pine-dimension-none)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand) .pds-combobox__chip-trigger-label{padding:var(--pine-dimension-025) var(--pine-dimension-150)}.pds-combobox__chip-trigger--large .pds-combobox__chip-trigger-label{font-family:var(--pine-font-family-heading);font-size:var(--pine-font-size-heading-6);font-weight:var(--pine-font-weight-medium);letter-spacing:var(--pine-letter-spacing-heading-6)}.pds-combobox__chip-trigger--dot .pds-combobox__chip-trigger-label::before{border:var(--pine-border-width) solid transparent;border-radius:var(--pine-border-radius-full);content:\"\";display:inline-block;height:var(--pine-dimension-2xs);-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs);width:var(--pine-dimension-2xs)}.pds-combobox__loading{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}.pds-combobox__empty{color:var(--pine-color-text-tertiary);padding:var(--pine-dimension-150) var(--pine-dimension-sm);text-align:center}.pds-combobox__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}";
|
|
7780
|
+
const pdsComboboxCss = ":host{display:block}:host([disabled=true]) .pds-combobox__input-icon{color:var(--pine-color-text-disabled);pointer-events:none}.pds-combobox{position:relative}.pds-combobox__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-combobox__input-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;position:relative;width:100%}.pds-combobox__input{background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body-medium);padding:var(--pine-dimension-xs) var(--pine-dimension-450) var(--pine-dimension-xs) var(--pine-dimension-150);-webkit-transition:border-color 0.2s ease;transition:border-color 0.2s ease;width:100%}.pds-combobox__input:hover:not(:disabled){border-color:var(--pine-color-border-hover)}.pds-combobox__input:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-combobox__input:disabled::-webkit-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-moz-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled:-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:focus-visible{border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input-icon{color:var(--pine-color-text-secondary);pointer-events:none;position:absolute;right:var(--pine-dimension-150);z-index:var(--pine-z-index-raised)}.pds-combobox__listbox{background:var(--pine-color-background-container);border:0;border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);list-style:none;margin:0;min-width:220px;overflow-y:auto;padding:var(--pine-dimension-xs);position:absolute;z-index:var(--pine-z-index-raised)}.pds-combobox__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-125);color:var(--pine-color-text-secondary);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;-webkit-transition:background 0.15s;transition:background 0.15s}.pds-combobox__option[aria-selected=true]{background:var(--pine-color-background-muted)}.pds-combobox__option:focus-visible{outline:0}.pds-combobox__option .pds-combobox__option--layout .pds-combobox__option-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option .pds-combobox__option--chip .pds-combobox__option-chip{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option:last-child{-webkit-margin-after:0;margin-block-end:0}.pds-combobox__option--highlighted,.pds-combobox__option[selected],.pds-combobox__option--selected{background:var(--pine-color-background-muted)}.pds-combobox__option-check{color:currentColor;font-size:var(--pine-dimension-150);-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__group-label{color:var(--pine-color-text-tertiary);cursor:default;font:var(--pine-typography-heading-caption);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-150);margin-block-start:var(--pine-dimension-150);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm);text-transform:uppercase}.pds-combobox__group-label:first-child{-webkit-margin-before:0;margin-block-start:0}.pds-combobox__button-trigger{-ms-flex-align:center;align-items:center;background:var(--color-background-default, var(--pine-color-secondary));border:var(--pine-border);border-radius:var(--pine-border-radius-full);color:var(--color-text-default, var(--pine-color-text-inverse-emphasis));cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;min-height:var(--pine-dimension-450);outline:none;padding:0 var(--pine-dimension-sm);-webkit-transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s, -webkit-box-shadow 0.15s;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__button-trigger .pds-combobox__button-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__button-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__button-trigger:focus-visible{border-color:var(--color-border-focus, var(--pine-color-border));-webkit-box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring));box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring))}.pds-combobox__button-trigger:hover{background:var(--color-background-hover, var(--pine-color-secondary-hover));border-color:var(--color-border-hover, var(--pine-color-border-hover))}.pds-combobox__button-trigger[aria-disabled=true],.pds-combobox__button-trigger:disabled{background:var(--color-background-disabled, var(--pine-color-secondary-disabled));border-color:var(--color-border-disabled, var(--pine-color-border-disabled));color:var(--color-text-disabled, var(--pine-color-text-secondary-disabled));cursor:not-allowed;opacity:0.6}.pds-combobox__button-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__button-trigger--input-shape{border-radius:var(--pine-dimension-125);min-height:var(--pine-dimension-500)}.pds-combobox__button-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__button-trigger--primary{--color-background-default:var(--pine-color-primary);--color-background-hover:var(--pine-color-primary-hover);--color-background-disabled:var(--pine-color-primary-disabled);--color-border-default:var(--pine-color-primary);--color-border-hover:var(--pine-color-primary-hover);--color-border-disabled:var(--pine-color-primary-disabled);--color-border-focus:var(--pine-color-primary);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-primary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--accent{--color-background-default:var(--pine-color-accent);--color-background-hover:var(--pine-color-accent-hover);--color-background-disabled:var(--pine-color-accent-disabled);--color-border-default:var(--pine-color-accent);--color-border-hover:var(--pine-color-accent-hover);--color-border-disabled:var(--pine-color-accent-disabled);--color-border-focus:var(--pine-color-accent);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-accent-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--secondary{--color-background-default:var(--pine-color-secondary);--color-background-hover:var(--pine-color-secondary-hover);--color-background-disabled:var(--pine-color-secondary-disabled);--color-border-default:var(--pine-color-border);--color-border-hover:var(--pine-color-border-hover);--color-border-disabled:var(--pine-color-border-disabled);--color-border-focus:var(--pine-color-border);--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--destructive{--color-background-default:var(--pine-color-danger);--color-background-hover:var(--pine-color-danger-hover);--color-background-disabled:var(--pine-color-danger-disabled);--color-border-default:var(--pine-color-danger);--color-border-hover:var(--pine-color-danger-hover);--color-border-disabled:var(--pine-color-danger-disabled);--color-border-focus:var(--pine-color-danger);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-danger-disabled);--color-outline:var(--pine-color-focus-ring-danger)}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[data-layout]{border-radius:var(--pine-dimension-125);padding-block:var(--pine-dimension-xs)}.pds-combobox__chip-trigger{-ms-flex-align:center;align-items:center;border-radius:var(--pine-dimension-sm);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;outline:none;padding-block:var(--pine-dimension-025);padding-inline:var(--pine-dimension-150);-webkit-transition:all 0.15s ease;transition:all 0.15s ease;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__chip-trigger .pds-combobox__chip-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__chip-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__chip-trigger:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__chip-trigger[aria-disabled=true]{cursor:not-allowed;opacity:0.6}.pds-combobox__chip-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__chip-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__chip-trigger-icon{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}.pds-combobox__chip-trigger--neutral,.pds-combobox__chip-trigger--accent,.pds-combobox__chip-trigger--success,.pds-combobox__chip-trigger--warning,.pds-combobox__chip-trigger--danger,.pds-combobox__chip-trigger--info{background:var(--chip-bg);border:var(--pine-border-width) solid var(--chip-border);color:var(--chip-text)}.pds-combobox__chip-trigger--neutral:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--accent:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--success:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--warning:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--danger:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--info:hover:not([aria-disabled=true]){background:var(--chip-bg-hover)}.pds-combobox__chip-trigger--neutral:focus-visible,.pds-combobox__chip-trigger--accent:focus-visible,.pds-combobox__chip-trigger--success:focus-visible,.pds-combobox__chip-trigger--warning:focus-visible,.pds-combobox__chip-trigger--danger:focus-visible,.pds-combobox__chip-trigger--info:focus-visible{border-color:var(--chip-border)}.pds-combobox__chip-trigger--neutral{--chip-bg:var(--pine-chip-color-neutral);--chip-bg-hover:var(--pine-chip-color-neutral-hover);--chip-border:var(--pine-chip-color-neutral-hover);--chip-text:var(--pine-color-text-neutral)}.pds-combobox__chip-trigger--accent{--chip-bg:var(--pine-chip-color-accent);--chip-bg-hover:var(--pine-chip-color-accent-hover);--chip-border:var(--pine-chip-color-accent-hover);--chip-text:var(--pine-color-text-accent)}.pds-combobox__chip-trigger--success{--chip-bg:var(--pine-chip-color-success);--chip-bg-hover:var(--pine-chip-color-success-hover);--chip-border:var(--pine-chip-color-success-hover);--chip-text:var(--pine-color-text-success)}.pds-combobox__chip-trigger--warning{--chip-bg:var(--pine-chip-color-warning);--chip-bg-hover:var(--pine-chip-color-warning-hover);--chip-border:var(--pine-chip-color-warning-hover);--chip-text:var(--pine-color-text-warning)}.pds-combobox__chip-trigger--danger{--chip-bg:var(--pine-chip-color-danger);--chip-bg-hover:var(--pine-chip-color-danger-hover);--chip-border:var(--pine-chip-color-danger-hover);--chip-text:var(--pine-color-text-danger)}.pds-combobox__chip-trigger--info{--chip-bg:var(--pine-chip-color-info);--chip-bg-hover:var(--pine-chip-color-info-hover);--chip-border:var(--pine-chip-color-info-hover);--chip-text:var(--pine-color-text-info)}.pds-combobox__chip-trigger--brand{background:-webkit-gradient(linear, left top, right top, from(#FF3E14), to(#6B62F2));background:linear-gradient(90deg, #FF3E14 0%, #6B62F2 100%);border:0;color:var(--pine-color-text-neutral);padding:1px;position:relative}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.9);border-radius:calc(var(--pine-dimension-sm) - 1px);color:var(--pine-color-text-neutral);font-weight:var(--pine-font-weight-medium);padding:var(--pine-dimension-025) var(--pine-dimension-150);position:relative;z-index:1}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-chevron{position:relative;z-index:1}.pds-combobox__chip-trigger--brand:hover:not([aria-disabled=true]) .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.8)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand){padding:var(--pine-dimension-none)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand) .pds-combobox__chip-trigger-label{padding:var(--pine-dimension-025) var(--pine-dimension-150)}.pds-combobox__chip-trigger--large .pds-combobox__chip-trigger-label{font-family:var(--pine-font-family-heading);font-size:var(--pine-font-size-heading-6);font-weight:var(--pine-font-weight-medium);letter-spacing:var(--pine-letter-spacing-heading-6)}.pds-combobox__chip-trigger--dot .pds-combobox__chip-trigger-label::before{border:var(--pine-border-width) solid transparent;border-radius:var(--pine-border-radius-full);content:\"\";display:inline-block;height:var(--pine-dimension-2xs);-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs);width:var(--pine-dimension-2xs)}.pds-combobox__loading{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}.pds-combobox__empty{color:var(--pine-color-text-tertiary);padding:var(--pine-dimension-150) var(--pine-dimension-sm);text-align:center}.pds-combobox__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}";
|
|
7742
7781
|
|
|
7743
7782
|
/**
|
|
7744
7783
|
* @slot option - Option elements for the combobox dropdown
|
|
@@ -7781,7 +7820,8 @@ class PdsCombobox {
|
|
|
7781
7820
|
this.dropdownWidth = '236px';
|
|
7782
7821
|
/**
|
|
7783
7822
|
* Visually hides the label text for instances where only the combobox should be displayed.
|
|
7784
|
-
*
|
|
7823
|
+
* The visible `<label>` is omitted (same pattern as `pds-select`) so label spacing does not reserve layout;
|
|
7824
|
+
* the trigger uses `aria-label` so the name stays available to assistive technology.
|
|
7785
7825
|
*/
|
|
7786
7826
|
this.hideLabel = false;
|
|
7787
7827
|
/**
|
|
@@ -7804,6 +7844,12 @@ class PdsCombobox {
|
|
|
7804
7844
|
* @default 'secondary'
|
|
7805
7845
|
*/
|
|
7806
7846
|
this.triggerVariant = 'secondary';
|
|
7847
|
+
/**
|
|
7848
|
+
* The shape of the button trigger. Use 'input' to render the trigger with input-like styling
|
|
7849
|
+
* (subtle border radius, input height) for use in form or filter rows alongside PdsSelect and PdsMultiselect.
|
|
7850
|
+
* @default 'pill'
|
|
7851
|
+
*/
|
|
7852
|
+
this.triggerShape = 'pill';
|
|
7807
7853
|
/**
|
|
7808
7854
|
* The sentiment for the chip trigger. Matches Pine chip sentiments.
|
|
7809
7855
|
* @default 'neutral'
|
|
@@ -8154,14 +8200,7 @@ class PdsCombobox {
|
|
|
8154
8200
|
}
|
|
8155
8201
|
}
|
|
8156
8202
|
// Initialize form value with current value
|
|
8157
|
-
|
|
8158
|
-
try {
|
|
8159
|
-
this.internals.setFormValue((_c = (_b = (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : this.value) !== null && _c !== void 0 ? _c : '');
|
|
8160
|
-
}
|
|
8161
|
-
catch (e) {
|
|
8162
|
-
// ElementInternals.setFormValue not available in unit tests
|
|
8163
|
-
}
|
|
8164
|
-
}
|
|
8203
|
+
this.updateFormValue((_c = (_b = (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : this.value) !== null && _c !== void 0 ? _c : '');
|
|
8165
8204
|
}
|
|
8166
8205
|
disconnectedCallback() {
|
|
8167
8206
|
var _a;
|
|
@@ -8183,14 +8222,7 @@ class PdsCombobox {
|
|
|
8183
8222
|
handleValueChange() {
|
|
8184
8223
|
this.filterOptions();
|
|
8185
8224
|
// Sync with form internals for form association
|
|
8186
|
-
|
|
8187
|
-
try {
|
|
8188
|
-
this.internals.setFormValue(this.value);
|
|
8189
|
-
}
|
|
8190
|
-
catch (e) {
|
|
8191
|
-
// ElementInternals.setFormValue not available in unit tests
|
|
8192
|
-
}
|
|
8193
|
-
}
|
|
8225
|
+
this.updateFormValue(this.value);
|
|
8194
8226
|
// Find and select option that matches the value (for external value changes)
|
|
8195
8227
|
// Only do this if we're not already updating from a selection
|
|
8196
8228
|
if (!this.isUpdatingFromSelection && this.value && this.optionEls.length > 0) {
|
|
@@ -8223,26 +8255,19 @@ class PdsCombobox {
|
|
|
8223
8255
|
this.displayText = this.getOptionLabel(this.selectedOption);
|
|
8224
8256
|
this.value = this.selectedOption.value;
|
|
8225
8257
|
// Update form internals with the actual option value
|
|
8226
|
-
|
|
8227
|
-
try {
|
|
8228
|
-
this.internals.setFormValue(this.selectedOption.value);
|
|
8229
|
-
}
|
|
8230
|
-
catch (e) {
|
|
8231
|
-
// ElementInternals.setFormValue not available in unit tests
|
|
8232
|
-
}
|
|
8233
|
-
}
|
|
8258
|
+
this.updateFormValue(this.selectedOption.value);
|
|
8234
8259
|
}
|
|
8235
8260
|
else {
|
|
8236
8261
|
this.displayText = '';
|
|
8237
8262
|
this.value = '';
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8263
|
+
this.updateFormValue('');
|
|
8264
|
+
}
|
|
8265
|
+
}
|
|
8266
|
+
updateFormValue(value) {
|
|
8267
|
+
if (isSpecTest())
|
|
8268
|
+
return;
|
|
8269
|
+
if (this.internals && this.internals.setFormValue) {
|
|
8270
|
+
this.internals.setFormValue(value);
|
|
8246
8271
|
}
|
|
8247
8272
|
}
|
|
8248
8273
|
clearAsyncFetchState() {
|
|
@@ -8990,11 +9015,17 @@ class PdsCombobox {
|
|
|
8990
9015
|
large: chipProps.large, icon: chipProps.icon, dot: chipProps.dot, class: "pds-combobox__option-chip" }, this.getOptionLabel(option)));
|
|
8991
9016
|
}
|
|
8992
9017
|
render() {
|
|
8993
|
-
const triggerClass =
|
|
8994
|
-
|
|
9018
|
+
const triggerClass = [
|
|
9019
|
+
'pds-combobox__button-trigger',
|
|
9020
|
+
`pds-combobox__button-trigger--${this.triggerVariant}`,
|
|
9021
|
+
this.triggerShape === 'input' && 'pds-combobox__button-trigger--input-shape',
|
|
9022
|
+
]
|
|
9023
|
+
.filter(Boolean)
|
|
9024
|
+
.join(' ');
|
|
9025
|
+
return (hAsync(Host, { key: '6a8f372c89a896d2d7e67661e84053c4c95b93c9' }, hAsync("div", { key: '7b4747885bfa9aaa6e698bf13b6cdf9d4e77b3b1', class: "pds-combobox", tabIndex: -1, onFocusout: this.onComboboxFocusOut, part: "combobox" }, this.label && !this.hideLabel && (hAsync("label", { key: '46acd60080458de682516becc6144b38675a3f2d', htmlFor: this.componentId, class: "pds-combobox__label" }, this.label)), this.trigger === 'input' ? (hAsync("div", { class: "pds-combobox__input-wrapper", style: { width: this.triggerWidth } }, hAsync("input", { ref: el => {
|
|
8995
9026
|
this.inputEl = el;
|
|
8996
9027
|
this.triggerEl = el;
|
|
8997
|
-
}, class: "pds-combobox__input", type: "text", role: "combobox", "aria-autocomplete": "list", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, value: this.displayText, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onClick: this.handleInputClick, onKeyDown: this.handleKeyDown, autocomplete: "off", part: "input" }), hAsync("pds-icon", { icon: "enlarge", "aria-hidden": "true", class: "pds-combobox__input-icon" }))) : this.trigger === 'chip' ? (hAsync("div", { class: this.getChipTriggerClass(), style: { width: this.triggerWidth }, role: "combobox", "aria-haspopup": "listbox", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "chip-trigger" }, this.renderChipTriggerContent())) : (hAsync("div", { class: triggerClass, style: { width: this.triggerWidth }, role: "combobox", "aria-haspopup": "listbox", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "button-trigger" }, this.renderButtonTriggerContent())), hAsync("div", { key: '
|
|
9028
|
+
}, class: "pds-combobox__input", type: "text", role: "combobox", "aria-autocomplete": "list", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, value: this.displayText, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onClick: this.handleInputClick, onKeyDown: this.handleKeyDown, autocomplete: "off", part: "input" }), hAsync("pds-icon", { icon: "enlarge", "aria-hidden": "true", class: "pds-combobox__input-icon" }))) : this.trigger === 'chip' ? (hAsync("div", { class: this.getChipTriggerClass(), style: { width: this.triggerWidth }, role: "combobox", "aria-haspopup": "listbox", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "chip-trigger" }, this.renderChipTriggerContent())) : (hAsync("div", { class: triggerClass, style: { width: this.triggerWidth }, role: "combobox", "aria-haspopup": "listbox", "aria-controls": "pds-combobox-listbox", "aria-activedescendant": this.isOpen && this.highlightedIndex >= 0 ? `pds-combobox-option-${this.highlightedIndex}` : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "button-trigger" }, this.renderButtonTriggerContent())), hAsync("div", { key: '4e4bd7cb7139416f3f59b1c9736a1fad85c09c24', style: { display: 'none' } }, hAsync("slot", { key: '79e4c181d161a56acba68e1f7ca932369e938e10', onSlotchange: () => this.updateOptions() })), this.renderDropdown())));
|
|
8998
9029
|
}
|
|
8999
9030
|
static get formAssociated() { return true; }
|
|
9000
9031
|
get el() { return getElement(this); }
|
|
@@ -9024,6 +9055,7 @@ class PdsCombobox {
|
|
|
9024
9055
|
"trigger": [1],
|
|
9025
9056
|
"triggerWidth": [1, "trigger-width"],
|
|
9026
9057
|
"triggerVariant": [1, "trigger-variant"],
|
|
9058
|
+
"triggerShape": [1, "trigger-shape"],
|
|
9027
9059
|
"chipSentiment": [1, "chip-sentiment"],
|
|
9028
9060
|
"chipLarge": [4, "chip-large"],
|
|
9029
9061
|
"chipIcon": [1, "chip-icon"],
|
|
@@ -9385,7 +9417,7 @@ class PdsCopytext {
|
|
|
9385
9417
|
return classNames.join(' ');
|
|
9386
9418
|
}
|
|
9387
9419
|
render() {
|
|
9388
|
-
return (hAsync(Host, { key: '
|
|
9420
|
+
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" }))));
|
|
9389
9421
|
}
|
|
9390
9422
|
get el() { return getElement(this); }
|
|
9391
9423
|
static get watchers() { return {
|
|
@@ -9432,7 +9464,7 @@ class PdsDivider {
|
|
|
9432
9464
|
return classNames.join(' ');
|
|
9433
9465
|
}
|
|
9434
9466
|
render() {
|
|
9435
|
-
return (hAsync(Host, { key: '
|
|
9467
|
+
return (hAsync(Host, { key: 'ff38715a9610e1812c2f9fc948c4f19bc1266b3c', id: this.componentId }, hAsync("hr", { key: 'd67a971d8be8f1739066013213787cf50a06319f', class: this.classNames() })));
|
|
9436
9468
|
}
|
|
9437
9469
|
static get style() { return pdsDividerCss; }
|
|
9438
9470
|
static get cmpMeta() { return {
|
|
@@ -9758,7 +9790,7 @@ class PdsDropdownMenu {
|
|
|
9758
9790
|
}
|
|
9759
9791
|
}
|
|
9760
9792
|
render() {
|
|
9761
|
-
return (hAsync(Host, { key: '
|
|
9793
|
+
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 }))));
|
|
9762
9794
|
}
|
|
9763
9795
|
get host() { return getElement(this); }
|
|
9764
9796
|
static get style() { return pdsDropdownMenuCss; }
|
|
@@ -9778,6 +9810,9 @@ class PdsDropdownMenu {
|
|
|
9778
9810
|
|
|
9779
9811
|
const pdsDropdownMenuItemCss = ":host{cursor:pointer;display:-ms-flexbox;display:flex;width:100%;}:host(.is-disabled){cursor:not-allowed !important;opacity:0.5 !important}:host(.is-disabled) .pds-dropdown-menu-item__content{cursor:not-allowed !important;pointer-events:none !important}.pds-dropdown-menu-item__content{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--pine-dimension-xs);color:var(--pine-color-text);display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;font:var(--pine-typography-body-medium);gap:var(--pine-dimension-xs);margin:calc(var(--pine-border-width) + 2px);padding:var(--pine-dimension-xs);text-align:start;width:100%;}.pds-dropdown-menu-item__content:hover{background-color:var(--pine-color-background-muted);color:var(--pine-color-text-hover)}.pds-dropdown-menu-item__content{}.pds-dropdown-menu-item__content:focus,.pds-dropdown-menu-item__content:focus-visible,.pds-dropdown-menu-item__content.has-focus{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}:host(.destructive) .pds-dropdown-menu-item__content{--pds-context-link-color:var(--pine-color-danger);--pds-context-link-color-hover:var(--pine-color-danger-hover);-ms-flex-align:center;align-items:center;color:var(--pine-color-danger)}:host(.destructive) .pds-dropdown-menu-item__content:hover{background-color:var(--pine-color-danger-disabled);color:var(--pine-color-danger-hover)}:host(.destructive) .pds-dropdown-menu-item__content:focus,:host(.destructive) .pds-dropdown-menu-item__content:focus-visible,:host(.destructive) .pds-dropdown-menu-item__content.has-focus{background-color:var(--pine-color-danger-disabled);outline:var(--pine-outline-focus-danger);outline-offset:var(--pine-border-width)}pds-link::part(link):focus,pds-link::part(link):focus-visible{-webkit-box-shadow:none;box-shadow:none;outline:none}pds-link::part(link){-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);margin:calc(var(--pine-dimension-xs) * -1);padding:var(--pine-dimension-xs);text-decoration:none;width:calc(100% + var(--pine-dimension-xs) * 2)}";
|
|
9780
9812
|
|
|
9813
|
+
/**
|
|
9814
|
+
* @part button
|
|
9815
|
+
*/
|
|
9781
9816
|
class PdsDropdownMenuItem {
|
|
9782
9817
|
constructor(hostRef) {
|
|
9783
9818
|
registerInstance(this, hostRef);
|
|
@@ -9850,7 +9885,7 @@ class PdsDropdownMenuItem {
|
|
|
9850
9885
|
}, tabIndex: this.disabled ? -1 : 0, type: "button", part: "button", onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : null }, hAsync("slot", null)));
|
|
9851
9886
|
}
|
|
9852
9887
|
render() {
|
|
9853
|
-
return (hAsync(Host, { key: '
|
|
9888
|
+
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()));
|
|
9854
9889
|
}
|
|
9855
9890
|
get host() { return getElement(this); }
|
|
9856
9891
|
static get style() { return pdsDropdownMenuItemCss; }
|
|
@@ -9886,7 +9921,7 @@ class PdsDropdownMenuSeparator {
|
|
|
9886
9921
|
this.disabled = false;
|
|
9887
9922
|
}
|
|
9888
9923
|
render() {
|
|
9889
|
-
return (hAsync(Host, { key: '
|
|
9924
|
+
return (hAsync(Host, { key: 'a8480ce2974db190161dab43a7af75520019d5d1', id: this.componentId }, hAsync("hr", { key: 'a8296c39676d4270f8519ce59af85dcde35586ec' })));
|
|
9890
9925
|
}
|
|
9891
9926
|
static get style() { return pdsDropdownMenuSeparatorCss; }
|
|
9892
9927
|
static get cmpMeta() { return {
|
|
@@ -10389,7 +10424,7 @@ class PdsFilter {
|
|
|
10389
10424
|
return null;
|
|
10390
10425
|
}
|
|
10391
10426
|
render() {
|
|
10392
|
-
return (hAsync(Host, { key: '
|
|
10427
|
+
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' })))));
|
|
10393
10428
|
}
|
|
10394
10429
|
get el() { return getElement(this); }
|
|
10395
10430
|
static get style() { return pdsFilterCss; }
|
|
@@ -10421,7 +10456,7 @@ class PdsFilters {
|
|
|
10421
10456
|
registerInstance(this, hostRef);
|
|
10422
10457
|
}
|
|
10423
10458
|
render() {
|
|
10424
|
-
return (hAsync(Host, { key: '
|
|
10459
|
+
return (hAsync(Host, { key: '2b5ed6a2d395f77f2ccc82f09cc197e055206cbd', id: this.componentId }, hAsync("div", { key: '8458c2a1cbdf872c2a2d51ca9fbb971528abb951', class: "pds-filters" }, hAsync("slot", { key: '732105a40f10ec5b2a4ea596ad840d13575e1760' }))));
|
|
10425
10460
|
}
|
|
10426
10461
|
static get style() { return pdsFiltersCss; }
|
|
10427
10462
|
static get cmpMeta() { return {
|
|
@@ -10884,9 +10919,9 @@ class PdsImage {
|
|
|
10884
10919
|
this.loading = 'eager';
|
|
10885
10920
|
}
|
|
10886
10921
|
render() {
|
|
10887
|
-
return (hAsync(Host, { key: '
|
|
10922
|
+
return (hAsync(Host, { key: '7ec6d6855757a2c0c9352f61e9eda7b3d6560eb7', class: {
|
|
10888
10923
|
'pds-image': true,
|
|
10889
|
-
}, id: this.componentId }, hAsync("img", { key: '
|
|
10924
|
+
}, 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 })));
|
|
10890
10925
|
}
|
|
10891
10926
|
static get style() { return pdsImageCss; }
|
|
10892
10927
|
static get cmpMeta() { return {
|
|
@@ -11151,6 +11186,8 @@ class PdsInput {
|
|
|
11151
11186
|
* Updates the form value using ElementInternals API
|
|
11152
11187
|
*/
|
|
11153
11188
|
updateFormValue() {
|
|
11189
|
+
if (isSpecTest())
|
|
11190
|
+
return;
|
|
11154
11191
|
if (this.internals && this.internals.setFormValue) {
|
|
11155
11192
|
const value = this.getValue();
|
|
11156
11193
|
this.internals.setFormValue(value || null);
|
|
@@ -11201,7 +11238,7 @@ class PdsInput {
|
|
|
11201
11238
|
'has-prepend': this.hasPrepend,
|
|
11202
11239
|
'has-append': this.hasAppend,
|
|
11203
11240
|
};
|
|
11204
|
-
return (hAsync(Host, { key: '
|
|
11241
|
+
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)))));
|
|
11205
11242
|
}
|
|
11206
11243
|
static get formAssociated() { return true; }
|
|
11207
11244
|
get el() { return getElement(this); }
|
|
@@ -11302,8 +11339,8 @@ class PdsLink {
|
|
|
11302
11339
|
const targetValue = this.target || (this.external ? '_blank' : undefined);
|
|
11303
11340
|
const showExternalIcon = this.external;
|
|
11304
11341
|
const relValue = targetValue === '_blank' ? 'noopener noreferrer' : undefined;
|
|
11305
|
-
return (hAsync("a", { key: '
|
|
11306
|
-
hAsync("pds-icon", { key: '
|
|
11342
|
+
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 &&
|
|
11343
|
+
hAsync("pds-icon", { key: '6c7528674ce5ebc54d6f7de6c499acce1f144ad5', icon: launch, size: this.fontSize })));
|
|
11307
11344
|
}
|
|
11308
11345
|
static get style() { return pdsLinkCss; }
|
|
11309
11346
|
static get cmpMeta() { return {
|
|
@@ -11375,7 +11412,7 @@ class PdsLoader {
|
|
|
11375
11412
|
}
|
|
11376
11413
|
}
|
|
11377
11414
|
render() {
|
|
11378
|
-
return (hAsync(Host, { key: '
|
|
11415
|
+
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..."))));
|
|
11379
11416
|
}
|
|
11380
11417
|
static get style() { return pdsLoaderCss; }
|
|
11381
11418
|
static get cmpMeta() { return {
|
|
@@ -11632,14 +11669,14 @@ class PdsModal {
|
|
|
11632
11669
|
return thisZIndex === maxZIndex;
|
|
11633
11670
|
}
|
|
11634
11671
|
render() {
|
|
11635
|
-
return (hAsync("dialog", { key: '
|
|
11672
|
+
return (hAsync("dialog", { key: '357b1570ff9153bb04abc883bd471d0454eca862', class: {
|
|
11636
11673
|
'pds-modal__backdrop': true,
|
|
11637
11674
|
'open': this.open
|
|
11638
|
-
}, "aria-modal": "true", "aria-labelledby": `${this.componentId}-heading`, onClick: this.handleBackdropClick }, hAsync("div", { key: '
|
|
11675
|
+
}, "aria-modal": "true", "aria-labelledby": `${this.componentId}-heading`, onClick: this.handleBackdropClick }, hAsync("div", { key: '89576c6aa19ffd87dfc3b527a242503093af4ec3', class: {
|
|
11639
11676
|
'pds-modal': true,
|
|
11640
11677
|
[`pds-modal--${this.size}`]: true,
|
|
11641
11678
|
'pds-modal--scrollable': this.scrollable
|
|
11642
|
-
}, part: "modal" }, hAsync("slot", { key: '
|
|
11679
|
+
}, part: "modal" }, hAsync("slot", { key: '071ad7101f66fb01854191436ec95a212ea6ee73' }))));
|
|
11643
11680
|
}
|
|
11644
11681
|
get el() { return getElement(this); }
|
|
11645
11682
|
static get watchers() { return {
|
|
@@ -11842,10 +11879,10 @@ class PdsModalContent {
|
|
|
11842
11879
|
render() {
|
|
11843
11880
|
// Only apply max-height style if it's not 'none'
|
|
11844
11881
|
const styleObj = this.contentMaxHeight !== 'none' ? { maxHeight: this.contentMaxHeight } : {};
|
|
11845
|
-
return (hAsync(Host, { key: '
|
|
11882
|
+
return (hAsync(Host, { key: '7da94c2c06a773fd5634c58481d856fda63246f9' }, hAsync("div", { key: '9e4c6ec64bf18fdd117e51c21de87a9a8175f99c', class: {
|
|
11846
11883
|
'pds-modal-content': true,
|
|
11847
11884
|
[`pds-modal-content--border-${this.border}`]: true
|
|
11848
|
-
}, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: '
|
|
11885
|
+
}, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: 'dbfa4f683ba8832662ed10a7fe2f89f353484593' }))));
|
|
11849
11886
|
}
|
|
11850
11887
|
get el() { return getElement(this); }
|
|
11851
11888
|
static get style() { return pdsModalContentCss; }
|
|
@@ -11869,7 +11906,7 @@ class PdsModalFooter {
|
|
|
11869
11906
|
registerInstance(this, hostRef);
|
|
11870
11907
|
}
|
|
11871
11908
|
render() {
|
|
11872
|
-
return (hAsync("footer", { key: '
|
|
11909
|
+
return (hAsync("footer", { key: 'd7297c60bccc1d3e9cca3b2eb8bbefdc71ac2375', class: "pds-modal__footer" }, hAsync("slot", { key: 'e807b2a702525e1c30f051ee23f1b25518248ff0' })));
|
|
11873
11910
|
}
|
|
11874
11911
|
static get style() { return pdsModalFooterCss; }
|
|
11875
11912
|
static get cmpMeta() { return {
|
|
@@ -11889,7 +11926,7 @@ class PdsModalHeader {
|
|
|
11889
11926
|
registerInstance(this, hostRef);
|
|
11890
11927
|
}
|
|
11891
11928
|
render() {
|
|
11892
|
-
return (hAsync("header", { key: '
|
|
11929
|
+
return (hAsync("header", { key: '78ac9253a737c94deaaa03157fdb0ba6c6e53ad4', class: "pds-modal__header" }, hAsync("slot", { key: '0593ae721aeee01272b64d9cd7ccc317180ff386' })));
|
|
11893
11930
|
}
|
|
11894
11931
|
static get style() { return pdsModalHeaderCss; }
|
|
11895
11932
|
static get cmpMeta() { return {
|
|
@@ -11902,12 +11939,14 @@ class PdsModalHeader {
|
|
|
11902
11939
|
}; }
|
|
11903
11940
|
}
|
|
11904
11941
|
|
|
11905
|
-
const pdsMultiselectCss = ":host{display:block}:host([aria-disabled=true]) .pds-multiselect__trigger{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}:host([aria-disabled=true]) .pds-multiselect__icon{color:var(--pine-color-text-disabled)}.pds-multiselect{position:relative}.pds-multiselect__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-multiselect__wrapper{position:relative}.pds-multiselect__trigger{-ms-flex-align:center;align-items:center;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);gap:var(--pine-dimension-xs);-ms-flex-pack:justify;justify-content:space-between;letter-spacing:var(--pine-letter-spacing);min-height:var(--pine-dimension-450);padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;text-align:start;-webkit-transition:border-color 0.2s ease, -webkit-box-shadow 0.2s ease;transition:border-color 0.2s ease, -webkit-box-shadow 0.2s ease;transition:border-color 0.2s ease, box-shadow 0.2s ease;transition:border-color 0.2s ease, box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;width:100%}.pds-multiselect__trigger:hover:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-hover)}.pds-multiselect__trigger:focus:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-multiselect__trigger.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid{background-color:var(--pine-color-red-050);border-color:var(--pine-color-border-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid:focus{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-multiselect__trigger-text{color:var(--pine-color-text-strong);-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__trigger-text.pds-multiselect__trigger-text--placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__trigger--disabled .pds-multiselect__trigger-text{color:var(--pine-color-text-disabled)}.pds-multiselect__icon{color:var(--pine-color-icon);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__panel{background:var(--pine-color-background-container);border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute;z-index:var(--pine-z-index-raised)}.pds-multiselect__search{-ms-flex-align:center;align-items:center;-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-multiselect__search pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__search-input{background:transparent;border:var(--pine-dimension-none);color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);min-width:var(--pine-dimension-none);outline:none}.pds-multiselect__search-input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__selected-section{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);padding:var(--pine-dimension-xs)}.pds-multiselect__selected-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.pds-multiselect__selected-item{color:var(--pine-color-text-strong);font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);overflow:hidden;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__listbox{background:transparent;border:var(--pine-dimension-none);-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;margin:var(--pine-dimension-none);overflow-y:auto;padding:var(--pine-dimension-xs)}.pds-multiselect__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-xs);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);-webkit-transition:background 0.15s;transition:background 0.15s}.pds-multiselect__option pds-checkbox{pointer-events:none;width:100%}.pds-multiselect__option:hover,.pds-multiselect__option.pds-multiselect__option--highlighted{background:var(--pine-color-background-muted)}.pds-multiselect__option:focus-visible{outline:var(--pine-dimension-none)}.pds-multiselect__create-option{color:var(--pine-color-text-strong);width:100%}.pds-multiselect__create-option pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__empty,.pds-multiselect__loading{-ms-flex-align:center;align-items:center;color:var(--pine-color-text-muted);display:-ms-flexbox;display:flex;font:var(--pine-typography-body);-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-sm)}.pds-multiselect__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-xs)}.pds-multiselect__helper{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error{-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;font:var(--pine-typography-body-sm);gap:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error pds-icon{-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none);-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.visually-hidden{border:var(--pine-dimension-none);clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:var(--pine-dimension-none);position:absolute;white-space:nowrap;width:1px}";
|
|
11942
|
+
const pdsMultiselectCss = ":host{display:block}:host([aria-disabled=true]) .pds-multiselect__trigger{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}:host([aria-disabled=true]) .pds-multiselect__icon{color:var(--pine-color-text-disabled)}.pds-multiselect{position:relative}.pds-multiselect__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-multiselect__wrapper{position:relative}.pds-multiselect__trigger{-ms-flex-align:center;align-items:center;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);gap:var(--pine-dimension-xs);-ms-flex-pack:justify;justify-content:space-between;letter-spacing:var(--pine-letter-spacing);min-height:var(--pine-dimension-450);padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;text-align:start;-webkit-transition:border-color 0.2s ease, -webkit-box-shadow 0.2s ease;transition:border-color 0.2s ease, -webkit-box-shadow 0.2s ease;transition:border-color 0.2s ease, box-shadow 0.2s ease;transition:border-color 0.2s ease, box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;width:100%}.pds-multiselect__trigger:hover:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-hover)}.pds-multiselect__trigger:focus:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-multiselect__trigger.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid{background-color:var(--pine-color-red-050);border-color:var(--pine-color-border-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid:focus{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-multiselect__trigger-text{color:var(--pine-color-text-strong);-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__trigger-text.pds-multiselect__trigger-text--placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__trigger--disabled .pds-multiselect__trigger-text{color:var(--pine-color-text-disabled)}.pds-multiselect__icon{color:var(--pine-color-icon);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__pill-list{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-2xs)}.pds-multiselect__pill-list--inline{-ms-flex:1;flex:1;min-width:0}.pds-multiselect__pill-list--below{-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-multiselect__pill-overflow{color:var(--pine-color-text-muted);font:var(--pine-typography-body-sm-medium);white-space:nowrap}.pds-multiselect__trigger--pill-inline{-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-2xs);min-height:var(--pine-dimension-450);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm)}.pds-multiselect__trigger--pill-inline.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger--pill-inline:focus-within:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-multiselect__trigger--pill-inline.pds-multiselect__trigger--invalid:focus-within{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__pill-toggle{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border-width:0;cursor:pointer;display:-ms-flexbox;display:flex;padding:0}.pds-multiselect__pill-toggle:focus{outline:3px solid transparent}.pds-multiselect__trigger--disabled .pds-multiselect__pill-toggle{cursor:not-allowed;pointer-events:none}.pds-multiselect__panel{background:var(--pine-color-background-container);border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute;z-index:var(--pine-z-index-raised)}.pds-multiselect__search{-ms-flex-align:center;align-items:center;-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-multiselect__search pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__search-input{background:transparent;border:var(--pine-dimension-none);color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);min-width:var(--pine-dimension-none);outline:none}.pds-multiselect__search-input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__selected-section{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);padding:var(--pine-dimension-xs)}.pds-multiselect__selected-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.pds-multiselect__selected-item{color:var(--pine-color-text-strong);font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);overflow:hidden;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__listbox{background:transparent;border:var(--pine-dimension-none);-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;margin:var(--pine-dimension-none);overflow-y:auto;padding:var(--pine-dimension-xs)}.pds-multiselect__group-header{color:var(--pine-color-text-muted);display:block;font:var(--pine-typography-body-sm-medium);letter-spacing:var(--pine-letter-spacing);padding:var(--pine-dimension-sm) var(--pine-dimension-xs) var(--pine-dimension-2xs);text-transform:uppercase}.pds-multiselect__listbox>li:first-child>.pds-multiselect__group-header{-webkit-padding-before:var(--pine-dimension-xs);padding-block-start:var(--pine-dimension-xs)}.pds-multiselect__group-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.pds-multiselect__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-xs);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);-webkit-transition:background 0.15s;transition:background 0.15s}.pds-multiselect__option pds-checkbox{pointer-events:none;width:100%}.pds-multiselect__option:hover:not(.pds-multiselect__option--disabled),.pds-multiselect__option.pds-multiselect__option--highlighted:not(.pds-multiselect__option--disabled){background:var(--pine-color-background-muted)}.pds-multiselect__option.pds-multiselect__option--disabled{cursor:not-allowed;opacity:0.5}.pds-multiselect__option:focus-visible{outline:var(--pine-dimension-none)}.pds-multiselect__create-option{color:var(--pine-color-text-strong);width:100%}.pds-multiselect__create-option pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__empty,.pds-multiselect__loading{-ms-flex-align:center;align-items:center;color:var(--pine-color-text-muted);display:-ms-flexbox;display:flex;font:var(--pine-typography-body);-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-sm)}.pds-multiselect__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-xs)}.pds-multiselect__helper{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error{-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;font:var(--pine-typography-body-sm);gap:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error pds-icon{-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none);-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.visually-hidden{border:var(--pine-dimension-none);clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:var(--pine-dimension-none);position:absolute;white-space:nowrap;width:1px}";
|
|
11906
11943
|
|
|
11907
11944
|
/**
|
|
11908
11945
|
* @slot (default) - Static option elements for the multiselect
|
|
11909
11946
|
* @slot empty - Custom empty state message when no options match
|
|
11910
11947
|
* @slot loading - Custom loading indicator
|
|
11948
|
+
* @part trigger - The trigger surface that opens the dropdown panel
|
|
11949
|
+
* @part pill-toggle - The chevron button inside the inline pill trigger
|
|
11911
11950
|
*/
|
|
11912
11951
|
class PdsMultiselect {
|
|
11913
11952
|
constructor(hostRef) {
|
|
@@ -11971,6 +12010,26 @@ class PdsMultiselect {
|
|
|
11971
12010
|
* Hides the selected items summary section in the dropdown panel.
|
|
11972
12011
|
*/
|
|
11973
12012
|
this.hideSelectedItems = false;
|
|
12013
|
+
/**
|
|
12014
|
+
* Display mode for selected items outside the dropdown panel.
|
|
12015
|
+
* `'count'` shows "N item(s)" text in the trigger (default). `'pill'` renders
|
|
12016
|
+
* selected items as dismissible pds-chip tags.
|
|
12017
|
+
* @default 'count'
|
|
12018
|
+
*/
|
|
12019
|
+
this.selectedDisplay = 'count';
|
|
12020
|
+
/**
|
|
12021
|
+
* Position of pill chips when `selectedDisplay` is `'pill'`.
|
|
12022
|
+
* `'inline'` places chips inside the trigger; `'below'` places chips in a
|
|
12023
|
+
* flex-wrap row directly below the trigger.
|
|
12024
|
+
* @default 'inline'
|
|
12025
|
+
*/
|
|
12026
|
+
this.pillPosition = 'inline';
|
|
12027
|
+
/**
|
|
12028
|
+
* Maximum chips shown inline before collapsing to a "+N more" badge.
|
|
12029
|
+
* Only applies when `selectedDisplay='pill'` and `pillPosition='inline'`.
|
|
12030
|
+
* @default 3
|
|
12031
|
+
*/
|
|
12032
|
+
this.maxInlinePills = 3;
|
|
11974
12033
|
/**
|
|
11975
12034
|
* If true, the multiselect is required.
|
|
11976
12035
|
*/
|
|
@@ -11992,6 +12051,7 @@ class PdsMultiselect {
|
|
|
11992
12051
|
this.currentPage = 1;
|
|
11993
12052
|
this.hasMore = false;
|
|
11994
12053
|
this.creating = false;
|
|
12054
|
+
this.removalAnnouncement = '';
|
|
11995
12055
|
// Flag to prevent focusout from closing during open transition
|
|
11996
12056
|
this.isOpening = false;
|
|
11997
12057
|
// Flag to suppress dismiss event when panel closes due to selection (not user dismissal)
|
|
@@ -12000,9 +12060,16 @@ class PdsMultiselect {
|
|
|
12000
12060
|
this.initialAsyncFetchTriggered = false;
|
|
12001
12061
|
// Flag to track if value changed during loading and needs resolution after fetch completes
|
|
12002
12062
|
this.pendingUnresolvedFetch = false;
|
|
12003
|
-
this.handleTriggerClick = () => {
|
|
12063
|
+
this.handleTriggerClick = (e) => {
|
|
12004
12064
|
if (this.disabled)
|
|
12005
12065
|
return;
|
|
12066
|
+
// In inline-pill mode, ignore clicks that originated inside a pds-chip.
|
|
12067
|
+
// Chip close-button clicks are handled by handlePillRemove; chip body clicks should not toggle the panel.
|
|
12068
|
+
if (e && this.selectedDisplay === 'pill' && this.pillPosition === 'inline') {
|
|
12069
|
+
const fromChip = e.composedPath().some(el => { var _a; return ((_a = el.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'pds-chip'; });
|
|
12070
|
+
if (fromChip)
|
|
12071
|
+
return;
|
|
12072
|
+
}
|
|
12006
12073
|
if (this.isOpen) {
|
|
12007
12074
|
this.closeDropdown();
|
|
12008
12075
|
}
|
|
@@ -12011,6 +12078,10 @@ class PdsMultiselect {
|
|
|
12011
12078
|
}
|
|
12012
12079
|
};
|
|
12013
12080
|
this.handleTriggerKeyDown = (e) => {
|
|
12081
|
+
// Ignore keydown events that bubbled from child elements (e.g. chip close buttons).
|
|
12082
|
+
// Only handle keys when the trigger itself is the event target.
|
|
12083
|
+
if (e.target !== this.triggerEl)
|
|
12084
|
+
return;
|
|
12014
12085
|
switch (e.key) {
|
|
12015
12086
|
case 'ArrowDown':
|
|
12016
12087
|
case 'ArrowUp':
|
|
@@ -12035,18 +12106,35 @@ class PdsMultiselect {
|
|
|
12035
12106
|
}
|
|
12036
12107
|
};
|
|
12037
12108
|
this.handleSearchInputKeyDown = (e) => {
|
|
12109
|
+
var _a, _b, _c;
|
|
12038
12110
|
const filteredOptions = this.getFilteredOptions();
|
|
12039
12111
|
switch (e.key) {
|
|
12040
|
-
case 'ArrowDown':
|
|
12112
|
+
case 'ArrowDown': {
|
|
12041
12113
|
e.preventDefault();
|
|
12042
|
-
|
|
12043
|
-
|
|
12114
|
+
let nextIndex = this.highlightedIndex + 1;
|
|
12115
|
+
while (nextIndex < filteredOptions.length && ((_a = filteredOptions[nextIndex]) === null || _a === void 0 ? void 0 : _a.disabled)) {
|
|
12116
|
+
nextIndex++;
|
|
12117
|
+
}
|
|
12118
|
+
if (nextIndex < filteredOptions.length) {
|
|
12119
|
+
this.highlightedIndex = nextIndex;
|
|
12120
|
+
this.scrollOptionIntoView();
|
|
12121
|
+
}
|
|
12044
12122
|
break;
|
|
12045
|
-
|
|
12123
|
+
}
|
|
12124
|
+
case 'ArrowUp': {
|
|
12046
12125
|
e.preventDefault();
|
|
12047
|
-
|
|
12048
|
-
|
|
12126
|
+
// Clamp to 0 so ArrowUp from uninitialised state (-1) attempts the first option;
|
|
12127
|
+
// stays at -1 if that option is disabled.
|
|
12128
|
+
let prevIndex = Math.max(this.highlightedIndex - 1, 0);
|
|
12129
|
+
while (prevIndex > 0 && ((_b = filteredOptions[prevIndex]) === null || _b === void 0 ? void 0 : _b.disabled)) {
|
|
12130
|
+
prevIndex--;
|
|
12131
|
+
}
|
|
12132
|
+
if (!((_c = filteredOptions[prevIndex]) === null || _c === void 0 ? void 0 : _c.disabled)) {
|
|
12133
|
+
this.highlightedIndex = prevIndex;
|
|
12134
|
+
this.scrollOptionIntoView();
|
|
12135
|
+
}
|
|
12049
12136
|
break;
|
|
12137
|
+
}
|
|
12050
12138
|
case 'Enter':
|
|
12051
12139
|
e.preventDefault();
|
|
12052
12140
|
if (this.highlightedIndex >= 0) {
|
|
@@ -12086,7 +12174,9 @@ class PdsMultiselect {
|
|
|
12086
12174
|
e.preventDefault(); // Prevent focus change
|
|
12087
12175
|
this.toggleOption(option);
|
|
12088
12176
|
};
|
|
12089
|
-
this.handleOptionMouseEnter = (index) => () => {
|
|
12177
|
+
this.handleOptionMouseEnter = (index, option) => () => {
|
|
12178
|
+
if (option.disabled)
|
|
12179
|
+
return;
|
|
12090
12180
|
this.highlightedIndex = index;
|
|
12091
12181
|
};
|
|
12092
12182
|
this.handleScroll = (e) => {
|
|
@@ -12103,6 +12193,26 @@ class PdsMultiselect {
|
|
|
12103
12193
|
this.debouncedFetchAsyncOptions(this.searchQuery, this.currentPage + 1);
|
|
12104
12194
|
}
|
|
12105
12195
|
};
|
|
12196
|
+
this.handlePillRemove = (item) => () => {
|
|
12197
|
+
var _a, _b;
|
|
12198
|
+
if (this.disabled)
|
|
12199
|
+
return;
|
|
12200
|
+
const optionId = String(item.id);
|
|
12201
|
+
this.value = this.value.filter(v => v !== optionId);
|
|
12202
|
+
this.syncSelectedItems();
|
|
12203
|
+
this.pdsMultiselectChange.emit({ values: this.value, items: this.selectedItems });
|
|
12204
|
+
// Clear first so screen readers re-announce even when the same item is removed twice
|
|
12205
|
+
this.removalAnnouncement = '';
|
|
12206
|
+
queueMicrotask(() => { this.removalAnnouncement = `${item.text} removed`; });
|
|
12207
|
+
this.isClosingViaSelection = true;
|
|
12208
|
+
if (this.isOpen) {
|
|
12209
|
+
(_a = this.searchInputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
12210
|
+
}
|
|
12211
|
+
else {
|
|
12212
|
+
(_b = this.triggerEl) === null || _b === void 0 ? void 0 : _b.focus();
|
|
12213
|
+
}
|
|
12214
|
+
setTimeout(() => { this.isClosingViaSelection = false; }, 0);
|
|
12215
|
+
};
|
|
12106
12216
|
}
|
|
12107
12217
|
connectedCallback() {
|
|
12108
12218
|
// Initialize ElementInternals for form association (only once per element instance)
|
|
@@ -12249,12 +12359,35 @@ class PdsMultiselect {
|
|
|
12249
12359
|
const slot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot:not([name])');
|
|
12250
12360
|
if (!slot)
|
|
12251
12361
|
return;
|
|
12252
|
-
const options =
|
|
12253
|
-
|
|
12254
|
-
|
|
12255
|
-
|
|
12256
|
-
|
|
12257
|
-
|
|
12362
|
+
const options = [];
|
|
12363
|
+
slot.assignedElements({ flatten: true }).forEach(el => {
|
|
12364
|
+
var _a;
|
|
12365
|
+
if (el.tagName === 'OPTGROUP') {
|
|
12366
|
+
const optgroup = el;
|
|
12367
|
+
const groupLabel = optgroup.label;
|
|
12368
|
+
const groupDisabled = optgroup.disabled;
|
|
12369
|
+
optgroup.querySelectorAll('option').forEach((opt) => {
|
|
12370
|
+
var _a;
|
|
12371
|
+
const option = {
|
|
12372
|
+
id: opt.value,
|
|
12373
|
+
text: ((_a = opt.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || opt.value,
|
|
12374
|
+
disabled: opt.disabled || groupDisabled || undefined,
|
|
12375
|
+
};
|
|
12376
|
+
if (groupLabel) {
|
|
12377
|
+
option.group = groupLabel;
|
|
12378
|
+
}
|
|
12379
|
+
options.push(option);
|
|
12380
|
+
});
|
|
12381
|
+
}
|
|
12382
|
+
else if (el.tagName === 'OPTION') {
|
|
12383
|
+
const opt = el;
|
|
12384
|
+
options.push({
|
|
12385
|
+
id: opt.value,
|
|
12386
|
+
text: ((_a = opt.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || opt.value,
|
|
12387
|
+
disabled: opt.disabled || undefined,
|
|
12388
|
+
});
|
|
12389
|
+
}
|
|
12390
|
+
});
|
|
12258
12391
|
// Only update if we actually found options AND we're not using async/external options
|
|
12259
12392
|
// Don't clear internalOptions if slot returns empty (might be mid-DOM-update)
|
|
12260
12393
|
if (options.length > 0 && !this.asyncUrl && !this.options) {
|
|
@@ -12355,6 +12488,8 @@ class PdsMultiselect {
|
|
|
12355
12488
|
}
|
|
12356
12489
|
updateFormValue() {
|
|
12357
12490
|
var _a;
|
|
12491
|
+
if (isSpecTest())
|
|
12492
|
+
return;
|
|
12358
12493
|
if ((_a = this.internals) === null || _a === void 0 ? void 0 : _a.setFormValue) {
|
|
12359
12494
|
// Ensure value is an array before iterating
|
|
12360
12495
|
const valueArray = this.ensureValueArray();
|
|
@@ -12583,7 +12718,9 @@ class PdsMultiselect {
|
|
|
12583
12718
|
positionDropdown() {
|
|
12584
12719
|
if (!this.containerEl || !this.panelEl)
|
|
12585
12720
|
return;
|
|
12586
|
-
|
|
12721
|
+
// In inline pill mode, triggerEl is the small chevron button — use the full-width
|
|
12722
|
+
// wrapper div as the Floating UI reference so the panel aligns with the whole trigger.
|
|
12723
|
+
const referenceEl = this.pillInlineTriggerEl || this.triggerEl || this.containerEl;
|
|
12587
12724
|
const { minWidth, panelWidth } = this;
|
|
12588
12725
|
const updatePosition = () => {
|
|
12589
12726
|
computePosition(referenceEl, this.panelEl, {
|
|
@@ -12627,6 +12764,8 @@ class PdsMultiselect {
|
|
|
12627
12764
|
}
|
|
12628
12765
|
toggleOption(option) {
|
|
12629
12766
|
var _a, _b;
|
|
12767
|
+
if (option.disabled)
|
|
12768
|
+
return;
|
|
12630
12769
|
// Handle create option
|
|
12631
12770
|
if (option.isCreateOption) {
|
|
12632
12771
|
// Prevent multiple create calls while one is in-flight
|
|
@@ -12669,6 +12808,40 @@ class PdsMultiselect {
|
|
|
12669
12808
|
// For keyboard navigation - toggle the option
|
|
12670
12809
|
this.toggleOption(option);
|
|
12671
12810
|
}
|
|
12811
|
+
getGroupedRenderItems(filteredOptions) {
|
|
12812
|
+
const items = [];
|
|
12813
|
+
let currentGroup = null;
|
|
12814
|
+
filteredOptions.forEach((option, index) => {
|
|
12815
|
+
const group = option.group;
|
|
12816
|
+
if (group !== undefined) {
|
|
12817
|
+
if (!currentGroup || currentGroup.group !== group) {
|
|
12818
|
+
currentGroup = { type: 'group', group, options: [] };
|
|
12819
|
+
items.push(currentGroup);
|
|
12820
|
+
}
|
|
12821
|
+
currentGroup.options.push({ option, index });
|
|
12822
|
+
}
|
|
12823
|
+
else {
|
|
12824
|
+
currentGroup = null;
|
|
12825
|
+
items.push({ type: 'option', option, index });
|
|
12826
|
+
}
|
|
12827
|
+
});
|
|
12828
|
+
return items;
|
|
12829
|
+
}
|
|
12830
|
+
renderOption(option, index, valueArray) {
|
|
12831
|
+
const isSelected = valueArray.includes(String(option.id));
|
|
12832
|
+
const isCreateOption = option.isCreateOption;
|
|
12833
|
+
const isDisabled = option.disabled;
|
|
12834
|
+
const isHighlighted = index === this.highlightedIndex && !isCreateOption;
|
|
12835
|
+
const optionId = `${this.componentId}-option-${index}`;
|
|
12836
|
+
const isCreateDisabled = isCreateOption && this.creating;
|
|
12837
|
+
return (hAsync("li", { key: String(option.id), id: optionId, class: {
|
|
12838
|
+
'pds-multiselect__option': true,
|
|
12839
|
+
'pds-multiselect__option--highlighted': isHighlighted,
|
|
12840
|
+
'pds-multiselect__option--selected': isSelected,
|
|
12841
|
+
'pds-multiselect__option--create': isCreateOption,
|
|
12842
|
+
'pds-multiselect__option--disabled': isDisabled || isCreateDisabled,
|
|
12843
|
+
}, 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' } }))));
|
|
12844
|
+
}
|
|
12672
12845
|
renderSelectedItemsList() {
|
|
12673
12846
|
if (this.hideSelectedItems || this.selectedItems.length === 0)
|
|
12674
12847
|
return null;
|
|
@@ -12681,43 +12854,58 @@ class PdsMultiselect {
|
|
|
12681
12854
|
const valueArray = this.ensureValueArray();
|
|
12682
12855
|
const hasSlottedEmpty = !!this.el.querySelector('[slot="empty"]');
|
|
12683
12856
|
const hasSlottedLoading = !!this.el.querySelector('[slot="loading"]');
|
|
12684
|
-
return (hAsync("div", { class: "pds-multiselect__panel", ref: el => (this.panelEl = el), style: { minWidth: this.minWidth } }, hAsync("div", { class: "pds-multiselect__search" }, hAsync("pds-icon", { name: "search", size: "small" }), hAsync("input", { ref: el => (this.searchInputEl = el), type: "text", class: "pds-multiselect__search-input", placeholder: this.searchPlaceholder, value: this.searchQuery, "aria-label": "Search options", "aria-controls": `${this.componentId}-listbox`, "aria-activedescendant": this.highlightedIndex >= 0 ? `${this.componentId}-option-${this.highlightedIndex}` : undefined, role: "combobox", "aria-haspopup": "listbox", "aria-expanded": "true", "aria-autocomplete": "list", autocomplete: "off", onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchInputKeyDown })), this.renderSelectedItemsList(), hAsync("ul", { class: "pds-multiselect__listbox", role: "listbox", "aria-multiselectable": "true", "aria-label": this.label || 'Options', id: `${this.componentId}-listbox`, ref: el => (this.listboxEl = el), style: { maxHeight: this.maxHeight }, onScroll: this.handleScroll }, this.loading && (hAsync("li", { class: "pds-multiselect__loading", role: "presentation" }, hasSlottedLoading ? (hAsync("slot", { name: "loading" })) : (hAsync("pds-loader", { size: "small" })))), !this.loading && filteredOptions.length === 0 && (hAsync("li", { class: "pds-multiselect__empty", role: "presentation" }, hasSlottedEmpty ? (hAsync("slot", { name: "empty" })) : (hAsync("span", null, "No options found")))), filteredOptions.map((
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
const isCreateDisabled = isCreateOption && this.creating;
|
|
12690
|
-
return (hAsync("li", { key: String(option.id), id: optionId, class: {
|
|
12691
|
-
'pds-multiselect__option': true,
|
|
12692
|
-
'pds-multiselect__option--highlighted': isHighlighted,
|
|
12693
|
-
'pds-multiselect__option--selected': isSelected,
|
|
12694
|
-
'pds-multiselect__option--create': isCreateOption,
|
|
12695
|
-
'pds-multiselect__option--disabled': isCreateDisabled,
|
|
12696
|
-
}, role: "option", "aria-selected": isSelected ? 'true' : 'false', "aria-disabled": isCreateDisabled ? 'true' : undefined, "aria-label": isCreateOption ? `Create new tag: ${option.text}` : undefined, "data-index": index, onMouseDown: this.handleOptionMouseDown(option), onMouseEnter: this.handleOptionMouseEnter(index) }, isCreateOption ? (hAsync("pds-box", { class: "pds-multiselect__create-option", "align-items": "center", gap: "xs" }, hAsync("pds-icon", { name: "add", size: "small" }), hAsync("pds-text", null, "Add \"", option.text, "\""))) : (hAsync("pds-checkbox", { componentId: `${this.componentId}-checkbox-${index}`, checked: isSelected, label: option.text, style: { pointerEvents: 'none' } }))));
|
|
12857
|
+
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) => {
|
|
12858
|
+
if (item.type === 'group') {
|
|
12859
|
+
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)))));
|
|
12860
|
+
}
|
|
12861
|
+
return this.renderOption(item.option, item.index, valueArray);
|
|
12697
12862
|
}), this.hasMore && !this.loading && (hAsync("li", { class: "pds-multiselect__load-more", role: "presentation" }, hAsync("pds-loader", { size: "small" }))))));
|
|
12698
12863
|
}
|
|
12864
|
+
renderInlinePills() {
|
|
12865
|
+
const hasSelections = this.selectedItems.length > 0;
|
|
12866
|
+
if (!hasSelections) {
|
|
12867
|
+
return (hAsync("span", { class: "pds-multiselect__trigger-text pds-multiselect__trigger-text--placeholder" }, this.placeholder || 'Select...'));
|
|
12868
|
+
}
|
|
12869
|
+
const variant = this.disabled ? 'text' : 'tag';
|
|
12870
|
+
const visibleItems = this.selectedItems.slice(0, Math.max(1, this.maxInlinePills));
|
|
12871
|
+
const overflowCount = this.selectedItems.length - visibleItems.length;
|
|
12872
|
+
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))));
|
|
12873
|
+
}
|
|
12874
|
+
renderBelowPills() {
|
|
12875
|
+
if (this.selectedItems.length === 0)
|
|
12876
|
+
return null;
|
|
12877
|
+
const variant = this.disabled ? 'text' : 'tag';
|
|
12878
|
+
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)))));
|
|
12879
|
+
}
|
|
12699
12880
|
getTriggerText() {
|
|
12700
12881
|
const count = this.selectedItems.length;
|
|
12701
|
-
if (count === 0) {
|
|
12882
|
+
if (count === 0 || (this.selectedDisplay === 'pill' && this.pillPosition === 'below')) {
|
|
12702
12883
|
return this.placeholder || 'Select...';
|
|
12703
12884
|
}
|
|
12704
12885
|
return `${count} item${count === 1 ? '' : 's'}`;
|
|
12705
12886
|
}
|
|
12706
12887
|
render() {
|
|
12707
12888
|
const hasSelections = this.selectedItems.length > 0;
|
|
12708
|
-
return (hAsync(Host, { key: '
|
|
12889
|
+
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: {
|
|
12709
12890
|
'pds-multiselect__label': true,
|
|
12710
12891
|
'visually-hidden': this.hideLabel,
|
|
12711
|
-
} }, this.label)), hAsync("div", { key: '
|
|
12892
|
+
} }, 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: {
|
|
12893
|
+
'pds-multiselect__trigger': true,
|
|
12894
|
+
'pds-multiselect__trigger--open': this.isOpen,
|
|
12895
|
+
'pds-multiselect__trigger--disabled': this.disabled,
|
|
12896
|
+
'pds-multiselect__trigger--invalid': this.invalid || !!this.errorMessage,
|
|
12897
|
+
'pds-multiselect__trigger--has-value': hasSelections,
|
|
12898
|
+
'pds-multiselect__trigger--pill-inline': true,
|
|
12899
|
+
}, onClick: this.handleTriggerClick }, this.renderInlinePills(), hAsync("button", { ref: el => (this.triggerEl = el), type: "button", id: this.componentId, part: "pill-toggle", class: "pds-multiselect__pill-toggle", disabled: this.disabled, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-labelledby": this.label ? `${this.componentId}-label` : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": assignDescription(this.componentId, this.invalid || !!this.errorMessage, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid || !!this.errorMessage ? 'true' : undefined, onKeyDown: this.handleTriggerKeyDown }, hAsync("pds-icon", { class: "pds-multiselect__icon", icon: enlarge })))) : (hAsync("button", { ref: el => (this.triggerEl = el), type: "button", part: "trigger", class: {
|
|
12712
12900
|
'pds-multiselect__trigger': true,
|
|
12713
12901
|
'pds-multiselect__trigger--open': this.isOpen,
|
|
12714
12902
|
'pds-multiselect__trigger--disabled': this.disabled,
|
|
12715
12903
|
'pds-multiselect__trigger--invalid': this.invalid || !!this.errorMessage,
|
|
12716
12904
|
'pds-multiselect__trigger--has-value': hasSelections,
|
|
12717
|
-
}, id: this.componentId, disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-describedby": assignDescription(this.componentId, this.invalid || !!this.errorMessage, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid || !!this.errorMessage ? 'true' : undefined, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hAsync("span", {
|
|
12905
|
+
}, id: this.componentId, disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-describedby": assignDescription(this.componentId, this.invalid || !!this.errorMessage, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid || !!this.errorMessage ? 'true' : undefined, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hAsync("span", { class: {
|
|
12718
12906
|
'pds-multiselect__trigger-text': true,
|
|
12719
|
-
'pds-multiselect__trigger-text--placeholder': !hasSelections,
|
|
12720
|
-
} }, this.getTriggerText()), hAsync("pds-icon", {
|
|
12907
|
+
'pds-multiselect__trigger-text--placeholder': !hasSelections || (this.selectedDisplay === 'pill' && this.pillPosition === 'below'),
|
|
12908
|
+
} }, 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' })))));
|
|
12721
12909
|
}
|
|
12722
12910
|
static get formAssociated() { return true; }
|
|
12723
12911
|
get el() { return getElement(this); }
|
|
@@ -12751,6 +12939,9 @@ class PdsMultiselect {
|
|
|
12751
12939
|
"panelWidth": [1, "panel-width"],
|
|
12752
12940
|
"hideLabel": [4, "hide-label"],
|
|
12753
12941
|
"hideSelectedItems": [4, "hide-selected-items"],
|
|
12942
|
+
"selectedDisplay": [1, "selected-display"],
|
|
12943
|
+
"pillPosition": [1, "pill-position"],
|
|
12944
|
+
"maxInlinePills": [2, "max-inline-pills"],
|
|
12754
12945
|
"errorMessage": [1, "error-message"],
|
|
12755
12946
|
"helperMessage": [1, "helper-message"],
|
|
12756
12947
|
"invalid": [4],
|
|
@@ -12769,6 +12960,7 @@ class PdsMultiselect {
|
|
|
12769
12960
|
"currentPage": [32],
|
|
12770
12961
|
"hasMore": [32],
|
|
12771
12962
|
"creating": [32],
|
|
12963
|
+
"removalAnnouncement": [32],
|
|
12772
12964
|
"setFocus": [64],
|
|
12773
12965
|
"clear": [64]
|
|
12774
12966
|
},
|
|
@@ -13338,7 +13530,7 @@ class PdsPopover {
|
|
|
13338
13530
|
}, 16); // ~1 frame at 60fps
|
|
13339
13531
|
}
|
|
13340
13532
|
render() {
|
|
13341
|
-
return (hAsync(Host, { key: '
|
|
13533
|
+
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 }))));
|
|
13342
13534
|
}
|
|
13343
13535
|
get el() { return getElement(this); }
|
|
13344
13536
|
static get style() { return pdsPopoverCss; }
|
|
@@ -13388,7 +13580,7 @@ class PdsProgress {
|
|
|
13388
13580
|
this.showPercent = false;
|
|
13389
13581
|
}
|
|
13390
13582
|
render() {
|
|
13391
|
-
return (hAsync(Host, { key: '
|
|
13583
|
+
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, "%")));
|
|
13392
13584
|
}
|
|
13393
13585
|
static get style() { return pdsProgressCss; }
|
|
13394
13586
|
static get cmpMeta() { return {
|
|
@@ -13422,7 +13614,7 @@ class PdsProperty {
|
|
|
13422
13614
|
this.icon = 'star';
|
|
13423
13615
|
}
|
|
13424
13616
|
render() {
|
|
13425
|
-
return (hAsync(Host, { key: '
|
|
13617
|
+
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' }))));
|
|
13426
13618
|
}
|
|
13427
13619
|
static get style() { return pdsPropertyCss; }
|
|
13428
13620
|
static get cmpMeta() { return {
|
|
@@ -13523,11 +13715,11 @@ class PdsRadio {
|
|
|
13523
13715
|
}
|
|
13524
13716
|
render() {
|
|
13525
13717
|
const renderLabelAndMessages = () => [
|
|
13526
|
-
hAsync("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, hAsync("input", { key: '
|
|
13718
|
+
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)),
|
|
13527
13719
|
this.helperMessage && (hAsync("div", { key: `${this.componentId}-helper`, class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage)),
|
|
13528
|
-
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: '
|
|
13720
|
+
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))
|
|
13529
13721
|
];
|
|
13530
|
-
return (hAsync(Host, { key: '
|
|
13722
|
+
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())));
|
|
13531
13723
|
}
|
|
13532
13724
|
get el() { return getElement(this); }
|
|
13533
13725
|
static get style() { return labelCss$3 + pdsRadioCss; }
|
|
@@ -13702,13 +13894,13 @@ class PdsRadioGroup {
|
|
|
13702
13894
|
render() {
|
|
13703
13895
|
const gapValue = this.getGapValue();
|
|
13704
13896
|
const ariaDescribedBy = this.getAriaDescribedBy();
|
|
13705
|
-
return (hAsync(Host, { key: '
|
|
13897
|
+
return (hAsync(Host, { key: '14e4da42fa14f79d3baae62fc4759462fb00cec8', class: this.classNames(), id: this._groupId, role: "group", "aria-describedby": ariaDescribedBy, style: {
|
|
13706
13898
|
'--pds-radio-group-gap': gapValue,
|
|
13707
|
-
} }, this.groupLabel && (hAsync("div", { key: '
|
|
13899
|
+
} }, this.groupLabel && (hAsync("div", { key: '0564bc27ff5d15ad7f3ad37d737ee9be8216cfbf', class: "pds-radio-group__label" }, this.groupLabel)), hAsync("div", { key: '72dcfa6dc3b9e6f8837a380575da213d026fdaca', class: {
|
|
13708
13900
|
'pds-radio-group__radios': true,
|
|
13709
13901
|
'pds-radio-group__radios--row': this.direction === 'row',
|
|
13710
13902
|
'pds-radio-group__radios--column': this.direction === 'column',
|
|
13711
|
-
} }, hAsync("slot", { key: '
|
|
13903
|
+
} }, 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))));
|
|
13712
13904
|
}
|
|
13713
13905
|
get el() { return getElement(this); }
|
|
13714
13906
|
static get watchers() { return {
|
|
@@ -13798,7 +13990,7 @@ class PdsRow {
|
|
|
13798
13990
|
})), (this.minHeight && {
|
|
13799
13991
|
'min-height': this.minHeight,
|
|
13800
13992
|
}));
|
|
13801
|
-
return hAsync(Host, { key: '
|
|
13993
|
+
return hAsync(Host, { key: '837ddbdce43bb90e52421dac32f77a0fc80f8d07', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
|
|
13802
13994
|
}
|
|
13803
13995
|
static get style() { return pdsRowCss; }
|
|
13804
13996
|
static get cmpMeta() { return {
|
|
@@ -13991,6 +14183,8 @@ class PdsSelect {
|
|
|
13991
14183
|
* Updates the form value using ElementInternals API
|
|
13992
14184
|
*/
|
|
13993
14185
|
updateFormValue() {
|
|
14186
|
+
if (isSpecTest())
|
|
14187
|
+
return;
|
|
13994
14188
|
if (this.internals && this.internals.setFormValue) {
|
|
13995
14189
|
const value = this.value;
|
|
13996
14190
|
// Handle multi-select arrays by converting to FormData or comma-separated string
|
|
@@ -14051,7 +14245,7 @@ class PdsSelect {
|
|
|
14051
14245
|
}
|
|
14052
14246
|
render() {
|
|
14053
14247
|
const hasAction = this.el.querySelector('[slot="action"]') !== null;
|
|
14054
|
-
return (hAsync(Host, { key: '
|
|
14248
|
+
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 }))));
|
|
14055
14249
|
}
|
|
14056
14250
|
static get formAssociated() { return true; }
|
|
14057
14251
|
get el() { return getElement(this); }
|
|
@@ -14085,111 +14279,94 @@ class PdsSelect {
|
|
|
14085
14279
|
}
|
|
14086
14280
|
|
|
14087
14281
|
/**!
|
|
14088
|
-
* Sortable 1.15.
|
|
14282
|
+
* Sortable 1.15.7
|
|
14089
14283
|
* @author RubaXa <trash@rubaxa.org>
|
|
14090
14284
|
* @author owenm <owen23355@gmail.com>
|
|
14091
14285
|
* @license MIT
|
|
14092
14286
|
*/
|
|
14093
|
-
function
|
|
14094
|
-
|
|
14095
|
-
|
|
14096
|
-
|
|
14097
|
-
|
|
14098
|
-
|
|
14099
|
-
|
|
14100
|
-
});
|
|
14101
|
-
}
|
|
14102
|
-
keys.push.apply(keys, symbols);
|
|
14103
|
-
}
|
|
14104
|
-
return keys;
|
|
14287
|
+
function _defineProperty(e, r, t) {
|
|
14288
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
14289
|
+
value: t,
|
|
14290
|
+
enumerable: true,
|
|
14291
|
+
configurable: true,
|
|
14292
|
+
writable: true
|
|
14293
|
+
}) : e[r] = t, e;
|
|
14105
14294
|
}
|
|
14106
|
-
function
|
|
14107
|
-
|
|
14108
|
-
var
|
|
14109
|
-
|
|
14110
|
-
|
|
14111
|
-
_defineProperty(target, key, source[key]);
|
|
14112
|
-
});
|
|
14113
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
14114
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14115
|
-
} else {
|
|
14116
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
14117
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14118
|
-
});
|
|
14295
|
+
function _extends() {
|
|
14296
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
14297
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
14298
|
+
var t = arguments[e];
|
|
14299
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
14119
14300
|
}
|
|
14301
|
+
return n;
|
|
14302
|
+
}, _extends.apply(null, arguments);
|
|
14303
|
+
}
|
|
14304
|
+
function ownKeys(e, r) {
|
|
14305
|
+
var t = Object.keys(e);
|
|
14306
|
+
if (Object.getOwnPropertySymbols) {
|
|
14307
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
14308
|
+
r && (o = o.filter(function (r) {
|
|
14309
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
14310
|
+
})), t.push.apply(t, o);
|
|
14311
|
+
}
|
|
14312
|
+
return t;
|
|
14313
|
+
}
|
|
14314
|
+
function _objectSpread2(e) {
|
|
14315
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
14316
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
14317
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
14318
|
+
_defineProperty(e, r, t[r]);
|
|
14319
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
14320
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
14321
|
+
});
|
|
14120
14322
|
}
|
|
14121
|
-
return
|
|
14323
|
+
return e;
|
|
14122
14324
|
}
|
|
14123
|
-
function
|
|
14124
|
-
|
|
14125
|
-
|
|
14126
|
-
|
|
14127
|
-
|
|
14128
|
-
|
|
14129
|
-
|
|
14130
|
-
|
|
14131
|
-
_typeof = function (obj) {
|
|
14132
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
14133
|
-
};
|
|
14325
|
+
function _objectWithoutProperties(e, t) {
|
|
14326
|
+
if (null == e) return {};
|
|
14327
|
+
var o,
|
|
14328
|
+
r,
|
|
14329
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
14330
|
+
if (Object.getOwnPropertySymbols) {
|
|
14331
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
14332
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
14134
14333
|
}
|
|
14135
|
-
return
|
|
14334
|
+
return i;
|
|
14136
14335
|
}
|
|
14137
|
-
function
|
|
14138
|
-
if (
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
writable: true
|
|
14144
|
-
});
|
|
14145
|
-
} else {
|
|
14146
|
-
obj[key] = value;
|
|
14336
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
14337
|
+
if (null == r) return {};
|
|
14338
|
+
var t = {};
|
|
14339
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
14340
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
14341
|
+
t[n] = r[n];
|
|
14147
14342
|
}
|
|
14148
|
-
return
|
|
14343
|
+
return t;
|
|
14149
14344
|
}
|
|
14150
|
-
function
|
|
14151
|
-
|
|
14152
|
-
|
|
14153
|
-
|
|
14154
|
-
|
|
14155
|
-
|
|
14156
|
-
|
|
14157
|
-
}
|
|
14158
|
-
}
|
|
14159
|
-
}
|
|
14160
|
-
return target;
|
|
14161
|
-
};
|
|
14162
|
-
return _extends.apply(this, arguments);
|
|
14163
|
-
}
|
|
14164
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
14165
|
-
if (source == null) return {};
|
|
14166
|
-
var target = {};
|
|
14167
|
-
var sourceKeys = Object.keys(source);
|
|
14168
|
-
var key, i;
|
|
14169
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
14170
|
-
key = sourceKeys[i];
|
|
14171
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
14172
|
-
target[key] = source[key];
|
|
14173
|
-
}
|
|
14174
|
-
return target;
|
|
14175
|
-
}
|
|
14176
|
-
function _objectWithoutProperties(source, excluded) {
|
|
14177
|
-
if (source == null) return {};
|
|
14178
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
14179
|
-
var key, i;
|
|
14180
|
-
if (Object.getOwnPropertySymbols) {
|
|
14181
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
14182
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
14183
|
-
key = sourceSymbolKeys[i];
|
|
14184
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
14185
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
14186
|
-
target[key] = source[key];
|
|
14187
|
-
}
|
|
14345
|
+
function _toPrimitive(t, r) {
|
|
14346
|
+
if ("object" != typeof t || !t) return t;
|
|
14347
|
+
var e = t[Symbol.toPrimitive];
|
|
14348
|
+
if (void 0 !== e) {
|
|
14349
|
+
var i = e.call(t, r);
|
|
14350
|
+
if ("object" != typeof i) return i;
|
|
14351
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
14188
14352
|
}
|
|
14189
|
-
return
|
|
14353
|
+
return ("string" === r ? String : Number)(t);
|
|
14354
|
+
}
|
|
14355
|
+
function _toPropertyKey(t) {
|
|
14356
|
+
var i = _toPrimitive(t, "string");
|
|
14357
|
+
return "symbol" == typeof i ? i : i + "";
|
|
14358
|
+
}
|
|
14359
|
+
function _typeof(o) {
|
|
14360
|
+
"@babel/helpers - typeof";
|
|
14361
|
+
|
|
14362
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
14363
|
+
return typeof o;
|
|
14364
|
+
} : function (o) {
|
|
14365
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
14366
|
+
}, _typeof(o);
|
|
14190
14367
|
}
|
|
14191
14368
|
|
|
14192
|
-
var version = "1.15.
|
|
14369
|
+
var version = "1.15.7";
|
|
14193
14370
|
|
|
14194
14371
|
function userAgent(pattern) {
|
|
14195
14372
|
if (typeof window !== 'undefined' && window.navigator) {
|
|
@@ -14232,7 +14409,7 @@ function matches( /**HTMLElement*/el, /**String*/selector) {
|
|
|
14232
14409
|
return false;
|
|
14233
14410
|
}
|
|
14234
14411
|
function getParentOrHost(el) {
|
|
14235
|
-
return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;
|
|
14412
|
+
return el.host && el !== document && el.host.nodeType && el.host !== el ? el.host : el.parentNode;
|
|
14236
14413
|
}
|
|
14237
14414
|
function closest$1( /**HTMLElement*/el, /**String*/selector, /**HTMLElement*/ctx, includeCTX) {
|
|
14238
14415
|
if (el) {
|
|
@@ -16100,8 +16277,11 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
16100
16277
|
_nulling: function _nulling() {
|
|
16101
16278
|
pluginEvent('nulling', this);
|
|
16102
16279
|
rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;
|
|
16103
|
-
|
|
16104
|
-
|
|
16280
|
+
var el = this.el;
|
|
16281
|
+
savedInputChecked.forEach(function (checkEl) {
|
|
16282
|
+
if (el.contains(checkEl)) {
|
|
16283
|
+
checkEl.checked = true;
|
|
16284
|
+
}
|
|
16105
16285
|
});
|
|
16106
16286
|
savedInputChecked.length = lastDx = lastDy = 0;
|
|
16107
16287
|
},
|
|
@@ -16759,7 +16939,12 @@ class PdsSortable {
|
|
|
16759
16939
|
*/
|
|
16760
16940
|
this.border = false;
|
|
16761
16941
|
/**
|
|
16762
|
-
*
|
|
16942
|
+
* Determines whether or not the sortable is disabled.
|
|
16943
|
+
* @defaultValue false
|
|
16944
|
+
*/
|
|
16945
|
+
this.disabled = false;
|
|
16946
|
+
/**
|
|
16947
|
+
* Determines whether `sortable` items should be divided with border.
|
|
16763
16948
|
*/
|
|
16764
16949
|
this.dividers = false;
|
|
16765
16950
|
/**
|
|
@@ -16767,11 +16952,18 @@ class PdsSortable {
|
|
|
16767
16952
|
*/
|
|
16768
16953
|
this.handleType = 'row';
|
|
16769
16954
|
}
|
|
16955
|
+
handleDisabledChange() {
|
|
16956
|
+
var _a;
|
|
16957
|
+
(_a = this.sortableInstance) === null || _a === void 0 ? void 0 : _a.option('disabled', this.disabled);
|
|
16958
|
+
}
|
|
16770
16959
|
classNames() {
|
|
16771
16960
|
const classNames = ['pds-sortable'];
|
|
16772
16961
|
if (this.border) {
|
|
16773
16962
|
classNames.push('pds-sortable--bordered');
|
|
16774
16963
|
}
|
|
16964
|
+
if (this.disabled) {
|
|
16965
|
+
classNames.push('pds-sortable--disabled');
|
|
16966
|
+
}
|
|
16775
16967
|
if (this.dividers) {
|
|
16776
16968
|
classNames.push('pds-sortable--divided');
|
|
16777
16969
|
}
|
|
@@ -16783,6 +16975,7 @@ class PdsSortable {
|
|
|
16783
16975
|
componentDidLoad() {
|
|
16784
16976
|
let sortableOptions = {
|
|
16785
16977
|
animation: 150,
|
|
16978
|
+
disabled: this.disabled,
|
|
16786
16979
|
ghostClass: 'pds-sortable-item--ghost',
|
|
16787
16980
|
dragClass: 'pds-sortable-item--drag',
|
|
16788
16981
|
onEnd: (evt) => {
|
|
@@ -16792,29 +16985,33 @@ class PdsSortable {
|
|
|
16792
16985
|
if (this.handleType === 'handle') {
|
|
16793
16986
|
sortableOptions = Object.assign(Object.assign({}, sortableOptions), { handle: '.pds-sortable-item__handle' });
|
|
16794
16987
|
}
|
|
16795
|
-
Sortable.create(this.el, sortableOptions);
|
|
16988
|
+
this.sortableInstance = Sortable.create(this.el, sortableOptions);
|
|
16796
16989
|
}
|
|
16797
16990
|
render() {
|
|
16798
|
-
return (hAsync(Host, { key: '
|
|
16991
|
+
return (hAsync(Host, { key: '2b3845733aa8acd1de1d9c49b3840320fbc87dd4', class: this.classNames(), id: this.componentId }, hAsync("slot", { key: 'd8659231eab11d8a4b89f6f3404268ca1d1c7dca' })));
|
|
16799
16992
|
}
|
|
16800
16993
|
get el() { return getElement(this); }
|
|
16994
|
+
static get watchers() { return {
|
|
16995
|
+
"disabled": ["handleDisabledChange"]
|
|
16996
|
+
}; }
|
|
16801
16997
|
static get style() { return pdsSortableCss; }
|
|
16802
16998
|
static get cmpMeta() { return {
|
|
16803
16999
|
"$flags$": 262,
|
|
16804
17000
|
"$tagName$": "pds-sortable",
|
|
16805
17001
|
"$members$": {
|
|
16806
17002
|
"border": [516],
|
|
17003
|
+
"disabled": [516],
|
|
16807
17004
|
"componentId": [1, "component-id"],
|
|
16808
17005
|
"dividers": [516],
|
|
16809
17006
|
"handleType": [1, "handle-type"]
|
|
16810
17007
|
},
|
|
16811
17008
|
"$listeners$": undefined,
|
|
16812
17009
|
"$lazyBundleId$": "-",
|
|
16813
|
-
"$attrsToReflect$": [["border", "border"], ["dividers", "dividers"]]
|
|
17010
|
+
"$attrsToReflect$": [["border", "border"], ["disabled", "disabled"], ["dividers", "dividers"]]
|
|
16814
17011
|
}; }
|
|
16815
17012
|
}
|
|
16816
17013
|
|
|
16817
|
-
const pdsSortableItemCss = ".pds-sortable-item.sc-pds-sortable-item-h{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-block:var(--pine-dimension-xs);padding-inline:var(--pine-dimension-md)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__actions.sc-pds-sortable-item{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-padding-start:var(--pine-dimension-md);padding-inline-start:var(--pine-dimension-md)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{line-height:1;-webkit-margin-end:var(--pine-dimension-md);margin-inline-end:var(--pine-dimension-md)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:first-child{border-start-end-radius:calc(var(--pine-dimension-xs) * 1.25);border-start-start-radius:calc(var(--pine-dimension-xs) * 1.25)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:last-child{border-end-end-radius:calc(var(--pine-dimension-xs) * 1.25);border-end-start-radius:calc(var(--pine-dimension-xs) * 1.25)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h:last-child{-webkit-border-after:0;border-block-end:0}.pds-sortable--handle-type-row .pds-sortable-item.sc-pds-sortable-item-h{cursor:-webkit-grab;cursor:grab}.pds-sortable--handle-type-handle .pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{cursor:-webkit-grab;cursor:grab}.pds-sortable-item.sc-pds-sortable-item-h:hover{background-color:var(--pine-color-background-container-hover)}.pds-sortable-item.sc-pds-sortable-item-h:hover pds-icon.sc-pds-sortable-item{color:var(--pine-color-info)}.pds-sortable-item--drag.sc-pds-sortable-item-h{background-color:var(--pine-color-background-container);border-radius:0;-webkit-box-shadow:var(--pine-box-shadow-400);box-shadow:var(--pine-box-shadow-400);opacity:1}.pds-sortable-item--ghost.sc-pds-sortable-item-h{background-color:var(--pine-color-background-container-hover);border-radius:0}";
|
|
17014
|
+
const pdsSortableItemCss = ".pds-sortable-item.sc-pds-sortable-item-h{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-block:var(--pine-dimension-xs);padding-inline:var(--pine-dimension-md)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__actions.sc-pds-sortable-item{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-padding-start:var(--pine-dimension-md);padding-inline-start:var(--pine-dimension-md)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{line-height:1;-webkit-margin-end:var(--pine-dimension-md);margin-inline-end:var(--pine-dimension-md)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:first-child{border-start-end-radius:calc(var(--pine-dimension-xs) * 1.25);border-start-start-radius:calc(var(--pine-dimension-xs) * 1.25)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:last-child{border-end-end-radius:calc(var(--pine-dimension-xs) * 1.25);border-end-start-radius:calc(var(--pine-dimension-xs) * 1.25)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h:last-child{-webkit-border-after:0;border-block-end:0}.pds-sortable--handle-type-row .pds-sortable-item.sc-pds-sortable-item-h{cursor:-webkit-grab;cursor:grab}.pds-sortable--handle-type-handle .pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{cursor:-webkit-grab;cursor:grab}.pds-sortable--disabled .pds-sortable-item.sc-pds-sortable-item-h{cursor:not-allowed;opacity:0.5}.pds-sortable--disabled .pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{cursor:not-allowed}.pds-sortable--disabled .pds-sortable-item.sc-pds-sortable-item-h:hover{background-color:transparent}.pds-sortable:not(.pds-sortable--disabled) .pds-sortable-item.sc-pds-sortable-item-h:hover{background-color:var(--pine-color-background-container-hover)}.pds-sortable:not(.pds-sortable--disabled) .pds-sortable-item.sc-pds-sortable-item-h:hover pds-icon.sc-pds-sortable-item{color:var(--pine-color-info)}.pds-sortable-item--drag.sc-pds-sortable-item-h{background-color:var(--pine-color-background-container);border-radius:0;-webkit-box-shadow:var(--pine-box-shadow-400);box-shadow:var(--pine-box-shadow-400);opacity:1}.pds-sortable-item--ghost.sc-pds-sortable-item-h{background-color:var(--pine-color-background-container-hover);border-radius:0}";
|
|
16818
17015
|
|
|
16819
17016
|
/**
|
|
16820
17017
|
* @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`.
|
|
@@ -16842,7 +17039,7 @@ class PdsSortableItem {
|
|
|
16842
17039
|
}
|
|
16843
17040
|
}
|
|
16844
17041
|
render() {
|
|
16845
|
-
return (hAsync(Host, { key: '
|
|
17042
|
+
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" })))));
|
|
16846
17043
|
}
|
|
16847
17044
|
get el() { return getElement(this); }
|
|
16848
17045
|
static get style() { return pdsSortableItemCss; }
|
|
@@ -16920,10 +17117,8 @@ class PdsSwitch {
|
|
|
16920
17117
|
this.updateFormValue();
|
|
16921
17118
|
}
|
|
16922
17119
|
updateFormValue() {
|
|
16923
|
-
|
|
16924
|
-
if (typeof jest !== 'undefined' || typeof process !== 'undefined' && ((_a = process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) === 'test') {
|
|
17120
|
+
if (isSpecTest())
|
|
16925
17121
|
return;
|
|
16926
|
-
}
|
|
16927
17122
|
if (this.internals && this.internals.setFormValue) {
|
|
16928
17123
|
// For switches, only send the value when checked, otherwise send null
|
|
16929
17124
|
const formValue = this.checked ? (this.value || 'on') : null;
|
|
@@ -16948,9 +17143,9 @@ class PdsSwitch {
|
|
|
16948
17143
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
16949
17144
|
}
|
|
16950
17145
|
render() {
|
|
16951
|
-
return (hAsync(Host, { key: '
|
|
16952
|
-
hAsync("div", { key: '
|
|
16953
|
-
hAsync("div", { key: '
|
|
17146
|
+
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 &&
|
|
17147
|
+
hAsync("div", { key: '676f75e0738f3a95049a35f0887e935fd365f164', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
17148
|
+
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)));
|
|
16954
17149
|
}
|
|
16955
17150
|
static get formAssociated() { return true; }
|
|
16956
17151
|
get el() { return getElement(this); }
|
|
@@ -17011,9 +17206,9 @@ class PdsTab {
|
|
|
17011
17206
|
return classes.filter(Boolean).join(' ');
|
|
17012
17207
|
}
|
|
17013
17208
|
render() {
|
|
17014
|
-
const availabilityTabEdgeInlineStart = (hAsync("span", { key: '
|
|
17015
|
-
const availabilityTabEdgeInlineEnd = (hAsync("span", { key: '
|
|
17016
|
-
return (hAsync(Host, { key: '
|
|
17209
|
+
const availabilityTabEdgeInlineStart = (hAsync("span", { key: 'f960b1ef212d0df8cdb2ade77b4cac8ade1d0233', class: "pds-tab-edge", role: "presentation" }));
|
|
17210
|
+
const availabilityTabEdgeInlineEnd = (hAsync("span", { key: '07551a0482c3f4eb206e09e7b24b2ceacbd4f770', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
|
|
17211
|
+
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' })))));
|
|
17017
17212
|
}
|
|
17018
17213
|
get el() { return getElement(this); }
|
|
17019
17214
|
static get style() { return pdsTabCss; }
|
|
@@ -17312,7 +17507,7 @@ class PdsTableBody {
|
|
|
17312
17507
|
registerInstance(this, hostRef);
|
|
17313
17508
|
}
|
|
17314
17509
|
render() {
|
|
17315
|
-
return (hAsync(Host, { key: '
|
|
17510
|
+
return (hAsync(Host, { key: '109c20cf255df58dac0491ab4e82dfbb6bac96c5', role: "rowgroup", part: "body" }, hAsync("slot", { key: 'e6bbfe380395df15bcc35107d5f3220dc817a374' })));
|
|
17316
17511
|
}
|
|
17317
17512
|
static get style() { return pdsTableBodyCss; }
|
|
17318
17513
|
static get cmpMeta() { return {
|
|
@@ -17450,11 +17645,11 @@ class PdsTableCell {
|
|
|
17450
17645
|
return classNames.join(' ');
|
|
17451
17646
|
}
|
|
17452
17647
|
render() {
|
|
17453
|
-
return (hAsync(Host, { key: '
|
|
17648
|
+
return (hAsync(Host, { key: '43707f930d90feb1364b9860a5dbc955049ff990', class: this.classNames(), role: "gridcell", part: "cell", tabIndex: this.truncate ? 0 : undefined, style: this.tableRef &&
|
|
17454
17649
|
this.tableRef.fixedColumn &&
|
|
17455
17650
|
this.tableRef.selectable
|
|
17456
17651
|
? { '--fixed-cell-position': '40px' }
|
|
17457
|
-
: {} }, hAsync("slot", { key: '
|
|
17652
|
+
: {} }, hAsync("slot", { key: 'c4eca6f7dbf2e32e217cbfb170aba12a02acb50d' })));
|
|
17458
17653
|
}
|
|
17459
17654
|
get hostElement() { return getElement(this); }
|
|
17460
17655
|
static get watchers() { return {
|
|
@@ -17529,7 +17724,7 @@ class PdsTableHead {
|
|
|
17529
17724
|
}
|
|
17530
17725
|
}
|
|
17531
17726
|
render() {
|
|
17532
|
-
return (hAsync(Host, { key: '
|
|
17727
|
+
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' })));
|
|
17533
17728
|
}
|
|
17534
17729
|
get hostElement() { return getElement(this); }
|
|
17535
17730
|
static get style() { return pdsTableHeadCss; }
|
|
@@ -17750,11 +17945,11 @@ class PdsTableHeadCell {
|
|
|
17750
17945
|
return classNames.join(' ');
|
|
17751
17946
|
}
|
|
17752
17947
|
render() {
|
|
17753
|
-
return (hAsync(Host, { key: '
|
|
17948
|
+
return (hAsync(Host, { key: '8996942725c06b81a067c103510adea405b8fabb', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, part: "head-cell", style: this.tableRef &&
|
|
17754
17949
|
this.tableRef.fixedColumn &&
|
|
17755
17950
|
this.tableRef.selectable
|
|
17756
17951
|
? { '--fixed-cell-position': '40px' }
|
|
17757
|
-
: {} }, hAsync("slot", { key: '
|
|
17952
|
+
: {} }, hAsync("slot", { key: 'ac103029fda6afad34db0c3978548f126bb4d2a6' }), this.sortable && this.isActive && (hAsync("pds-icon", { key: '411adf3421f5f7524a995042af3f9411a321a944', icon: this.sortingDirection === 'asc' ? upSmall : downSmall, part: "sort-icon" }))));
|
|
17758
17953
|
}
|
|
17759
17954
|
get hostElement() { return getElement(this); }
|
|
17760
17955
|
static get style() { return pdsTableHeadCellCss; }
|
|
@@ -17920,7 +18115,7 @@ class PdsTableRow {
|
|
|
17920
18115
|
}
|
|
17921
18116
|
}
|
|
17922
18117
|
render() {
|
|
17923
|
-
return (hAsync(Host, { key: '
|
|
18118
|
+
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' })));
|
|
17924
18119
|
}
|
|
17925
18120
|
get hostElement() { return getElement(this); }
|
|
17926
18121
|
static get style() { return pdsTableRowCss; }
|
|
@@ -17951,7 +18146,7 @@ class PdsTabpanel {
|
|
|
17951
18146
|
this.selected = false; // eslint-disable-line @stencil-community/strict-mutable
|
|
17952
18147
|
}
|
|
17953
18148
|
render() {
|
|
17954
|
-
return (hAsync(Host, { key: '
|
|
18149
|
+
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' }))));
|
|
17955
18150
|
}
|
|
17956
18151
|
get el() { return getElement(this); }
|
|
17957
18152
|
static get style() { return pdsTabpanelCss; }
|
|
@@ -18063,7 +18258,7 @@ class PdsTabs {
|
|
|
18063
18258
|
this.passPropsToChildren();
|
|
18064
18259
|
}
|
|
18065
18260
|
render() {
|
|
18066
|
-
return (hAsync(Host, { key: '
|
|
18261
|
+
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" })));
|
|
18067
18262
|
}
|
|
18068
18263
|
get el() { return getElement(this); }
|
|
18069
18264
|
static get style() { return pdsTabsCss; }
|
|
@@ -18150,7 +18345,7 @@ class PdsText {
|
|
|
18150
18345
|
? `pds-text--decoration-${this.decoration}`
|
|
18151
18346
|
: ''}
|
|
18152
18347
|
`;
|
|
18153
|
-
return (hAsync(Tag, { key: '
|
|
18348
|
+
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' })));
|
|
18154
18349
|
}
|
|
18155
18350
|
get el() { return getElement(this); }
|
|
18156
18351
|
static get watchers() { return {
|
|
@@ -18305,7 +18500,7 @@ class PdsTextarea {
|
|
|
18305
18500
|
this.setupResizeObserver();
|
|
18306
18501
|
}
|
|
18307
18502
|
// Update ElementInternals validity when maxLength changes
|
|
18308
|
-
if (this.internals && this.internals.setValidity && this.nativeTextarea) {
|
|
18503
|
+
if (!isSpecTest() && this.internals && this.internals.setValidity && this.nativeTextarea) {
|
|
18309
18504
|
const isTooLong = this.nativeTextarea.value.length > (this.maxLength || 0);
|
|
18310
18505
|
this.internals.setValidity({ tooLong: isTooLong }, isTooLong ? 'Value exceeds maxLength' : '', this.nativeTextarea);
|
|
18311
18506
|
}
|
|
@@ -18439,6 +18634,8 @@ class PdsTextarea {
|
|
|
18439
18634
|
* Updates the form value using ElementInternals API
|
|
18440
18635
|
*/
|
|
18441
18636
|
updateFormValue() {
|
|
18637
|
+
if (isSpecTest())
|
|
18638
|
+
return;
|
|
18442
18639
|
if (this.internals && this.internals.setFormValue) {
|
|
18443
18640
|
const value = this.getValue();
|
|
18444
18641
|
this.internals.setFormValue(value || null);
|
|
@@ -18478,10 +18675,10 @@ class PdsTextarea {
|
|
|
18478
18675
|
}
|
|
18479
18676
|
render() {
|
|
18480
18677
|
const value = this.getValue();
|
|
18481
|
-
return (hAsync(Host, { key: '
|
|
18482
|
-
hAsync("div", { key: '
|
|
18483
|
-
hAsync("p", { key: '
|
|
18484
|
-
hAsync("p", { key: '
|
|
18678
|
+
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 &&
|
|
18679
|
+
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 &&
|
|
18680
|
+
hAsync("p", { key: 'b3eae1b73f8d8c4df0a227ca5763962527408766', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
|
|
18681
|
+
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))));
|
|
18485
18682
|
}
|
|
18486
18683
|
static get formAssociated() { return true; }
|
|
18487
18684
|
get el() { return getElement(this); }
|
|
@@ -18524,6 +18721,9 @@ class PdsTextarea {
|
|
|
18524
18721
|
|
|
18525
18722
|
const pdsToastCss = ":host{--animation-duration:0.3s;--animation-timing:cubic-bezier(0.4, 0, 0.2, 1);--padding-inline:var(--pine-dimension-md);--padding-inline-desktop:var(--pine-dimension-2xl);--sizing-height-default:68px;--sizing-min-width:calc(var(--sizing-total-width) - (var(--padding-inline) * 2));--sizing-min-width-desktop:calc(var(--sizing-total-width) - (var(--padding-inline-desktop) * 2));--sizing-total-width:350px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;font:var(--pine-typography-body-medium)}.pds-toast{-ms-flex-align:center;align-items:center;-webkit-animation:pds-toast-animate-in var(--animation-duration) var(--animation-timing);animation:pds-toast-animate-in var(--animation-duration) var(--animation-timing);background-color:var(--pine-color-primary);border-radius:var(--pine-dimension-xs);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);color:var(--pine-color-text-primary);display:-ms-flexbox;display:flex;height:var(--sizing-height-default);-ms-flex-pack:start;justify-content:flex-start;-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs);max-width:90vw;min-width:var(--sizing-min-width);padding:0 var(--padding-inline);position:relative;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}@media screen and (max-width: 767px){.pds-toast{height:36px;max-width:calc(100vw - var(--pine-dimension-2xs) * 2);min-width:auto;padding-inline:var(--pine-dimension-2xs)}}.pds-toast--danger{background-color:var(--pine-color-danger)}.pds-toast--loading .pds-toast__loader{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-webkit-margin-end:var(--pine-dimension-sm);margin-inline-end:var(--pine-dimension-sm);position:relative}.pds-toast--loading .pds-toast__loader-spinner{-webkit-animation:pds-toast-rotate 2s linear infinite;animation:pds-toast-rotate 2s linear infinite;height:20px;width:20px}.pds-toast--loading .pds-toast__loader-path{-webkit-animation:pds-toast-dash 1.5s ease-in-out infinite;animation:pds-toast-dash 1.5s ease-in-out infinite;stroke-dasharray:1, 200;stroke-dashoffset:0;stroke-linecap:round}.pds-toast__icon{color:var(--pine-color-text-primary);display:-ms-inline-flexbox;display:inline-flex;-webkit-margin-end:var(--pine-dimension-sm);margin-inline-end:var(--pine-dimension-sm)}.pds-toast__message{font:var(--pine-typography-body-sm-medium);-webkit-margin-end:auto;margin-inline-end:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-toast__message ::slotted(a){color:var(--pine-color-text-primary);-webkit-margin-start:var(--pine-dimension-xs);margin-inline-start:var(--pine-dimension-xs);opacity:0.7;text-decoration:underline}.pds-toast__message ::slotted(a):hover,.pds-toast__message ::slotted(a):focus-visible{opacity:1}.pds-toast__message ::slotted(a):focus-visible{outline:2px solid var(--pine-color-text-primary);outline-offset:2px}.pds-toast__button{-ms-flex-align:center;align-items:center;background:none;border:0;border-radius:var(--pine-border-radius-full);color:inherit;cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-webkit-margin-start:var(--pine-dimension-md);margin-inline-start:var(--pine-dimension-md);opacity:0.7;padding:0;white-space:nowrap}.pds-toast__button:hover,.pds-toast__button:focus{opacity:1}.pds-toast__button:focus{outline:var(--pine-outline-focus);outline-offset:var(--pine-dimension-2xs)}@-webkit-keyframes pds-toast-animate-in{from{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes pds-toast-animate-in{from{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes pds-toast-animate-out{from{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes pds-toast-animate-out{from{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}}@-webkit-keyframes pds-toast-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes pds-toast-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes pds-toast-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124}}@keyframes pds-toast-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124}}:host([hidden]) .pds-toast,.pds-toast--animating-out{-webkit-animation:pds-toast-animate-out var(--animation-duration) var(--animation-timing) forwards;animation:pds-toast-animate-out var(--animation-duration) var(--animation-timing) forwards;pointer-events:none;}";
|
|
18526
18723
|
|
|
18724
|
+
/**
|
|
18725
|
+
* @part dismiss
|
|
18726
|
+
*/
|
|
18527
18727
|
class PdsToast {
|
|
18528
18728
|
constructor(hostRef) {
|
|
18529
18729
|
registerInstance(this, hostRef);
|
|
@@ -18604,13 +18804,13 @@ class PdsToast {
|
|
|
18604
18804
|
return this.icon && hAsync("pds-icon", { name: this.icon, class: "pds-toast__icon" });
|
|
18605
18805
|
}
|
|
18606
18806
|
render() {
|
|
18607
|
-
return (hAsync(Host, { key: '
|
|
18807
|
+
return (hAsync(Host, { key: 'c5334a7b7c5c711b5199648296ef135908e764f9', hidden: !this.isVisible }, hAsync("div", { key: 'fde78b6b46b4b4c2382d84363a0776708802e1ff', class: {
|
|
18608
18808
|
'pds-toast': true,
|
|
18609
18809
|
[`pds-toast--${this.type}`]: this.type !== 'default',
|
|
18610
18810
|
'pds-toast--animating-out': this.isAnimatingOut
|
|
18611
|
-
}, role: "alert", "aria-live": "polite" }, this.renderIcon(), hAsync("span", { key: '
|
|
18811
|
+
}, 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: () => {
|
|
18612
18812
|
this.dismiss();
|
|
18613
|
-
}, "aria-label": "Dismiss message" }, hAsync("pds-icon", { key: '
|
|
18813
|
+
}, "aria-label": "Dismiss message" }, hAsync("pds-icon", { key: '21a9ab8088241e91e30d1cc0dd3fddd99fa893bd', name: "remove" }))))));
|
|
18614
18814
|
}
|
|
18615
18815
|
static get watchers() { return {
|
|
18616
18816
|
"duration": ["handleDurationChange"]
|
|
@@ -18950,9 +19150,9 @@ class PdsTooltip {
|
|
|
18950
19150
|
}
|
|
18951
19151
|
render() {
|
|
18952
19152
|
const hostId = this.componentId || undefined;
|
|
18953
|
-
return (hAsync(Host, { key: '
|
|
19153
|
+
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,
|
|
18954
19154
|
/* focusin/out bubble; ensure keyboard users see tooltips */
|
|
18955
|
-
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, hAsync("slot", { key: '
|
|
19155
|
+
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" }))));
|
|
18956
19156
|
}
|
|
18957
19157
|
get el() { return getElement(this); }
|
|
18958
19158
|
static get watchers() { return {
|