@pine-ds/core 4.1.0 → 4.2.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/index.d.ts +8 -0
- package/components/index.js +1 -1
- package/components/mock-pds-modal.js +1 -1
- package/components/pds-chip2.js +1 -1
- package/components/pds-copytext.js +1 -1
- package/components/pds-drawer-content.d.ts +11 -0
- package/components/pds-drawer-content.js +1 -0
- package/components/pds-drawer-footer.d.ts +11 -0
- package/components/pds-drawer-footer.js +1 -0
- package/components/pds-drawer-header.d.ts +11 -0
- package/components/pds-drawer-header.js +1 -0
- package/components/pds-drawer.d.ts +11 -0
- package/components/pds-drawer.js +1 -0
- package/components/pds-dropdown-menu-item.js +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 +1 -1
- package/components/pds-input.js +1 -1
- package/components/pds-link2.js +1 -1
- package/components/pds-loader2.js +1 -1
- package/components/pds-modal-content.js +1 -1
- package/components/pds-modal-footer.js +1 -1
- package/components/pds-modal-header.js +1 -1
- package/components/pds-modal.js +1 -1
- package/components/pds-modal2.js +1 -0
- package/components/pds-multiselect.js +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 +1 -1
- package/components/pds-radio.js +1 -1
- package/components/pds-row.js +1 -1
- package/components/pds-select.js +1 -1
- package/components/pds-sortable-item.js +1 -1
- package/components/pds-sortable.js +2 -2
- package/components/pds-switch.js +1 -1
- package/components/pds-table-body.js +1 -1
- package/components/pds-table-cell2.js +1 -1
- package/components/pds-table-head-cell2.js +1 -1
- 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 +1 -1
- package/components/pds-toast.js +1 -1
- package/components/pds-tooltip.js +1 -1
- package/components/truncation-tooltip.js +1 -1
- package/dist/cjs/{index-BMV0nzMk.js → index-Bu3NXpbK.js} +1 -1
- package/dist/cjs/index.cjs.js +20 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mock-pds-modal.cjs.entry.js +1 -1
- package/dist/cjs/pds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/pds-avatar.cjs.entry.js +1 -1
- package/dist/cjs/pds-button.cjs.entry.js +1 -1
- package/dist/cjs/pds-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/pds-chip.cjs.entry.js +17 -8
- package/dist/cjs/pds-copytext.cjs.entry.js +7 -3
- package/dist/cjs/pds-drawer-content.cjs.entry.js +23 -0
- package/dist/cjs/pds-drawer-footer.cjs.entry.js +23 -0
- package/dist/cjs/pds-drawer-header.cjs.entry.js +23 -0
- package/dist/cjs/pds-drawer.cjs.entry.js +137 -0
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +1 -1
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js +1 -1
- package/dist/cjs/pds-filter.cjs.entry.js +2 -2
- package/dist/cjs/pds-filters.cjs.entry.js +1 -1
- package/dist/cjs/pds-image.cjs.entry.js +2 -2
- package/dist/cjs/pds-input.cjs.entry.js +3 -3
- 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 +141 -10
- package/dist/cjs/pds-multiselect.cjs.entry.js +4 -4
- package/dist/cjs/pds-popover.cjs.entry.js +1 -1
- package/dist/cjs/pds-progress.cjs.entry.js +1 -1
- package/dist/cjs/pds-property.cjs.entry.js +1 -1
- package/dist/cjs/pds-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/pds-radio.cjs.entry.js +4 -4
- package/dist/cjs/pds-row.cjs.entry.js +1 -1
- package/dist/cjs/pds-select.cjs.entry.js +2 -2
- package/dist/cjs/pds-sortable-item.cjs.entry.js +2 -2
- package/dist/cjs/pds-sortable.cjs.entry.js +1 -1
- package/dist/cjs/pds-switch.cjs.entry.js +5 -5
- package/dist/cjs/pds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-cell.cjs.entry.js +3 -3
- package/dist/cjs/pds-table-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 +5 -23
- package/dist/cjs/pds-textarea.cjs.entry.js +5 -5
- package/dist/cjs/pds-toast.cjs.entry.js +3 -3
- package/dist/cjs/pds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/pine-core.cjs.js +1 -1
- package/dist/cjs/{truncation-tooltip-CVzAha5B.js → truncation-tooltip-Bps7_rUy.js} +51 -1
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/pds-chip/pds-chip.js +15 -6
- package/dist/collection/components/pds-copytext/pds-copytext.js +5 -1
- package/dist/collection/components/pds-drawer/pds-drawer-content/pds-drawer-content.css +22 -0
- package/dist/collection/components/pds-drawer/pds-drawer-content/pds-drawer-content.js +29 -0
- package/dist/collection/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.css +15 -0
- package/dist/collection/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.js +23 -0
- package/dist/collection/components/pds-drawer/pds-drawer-header/pds-drawer-header.css +15 -0
- package/dist/collection/components/pds-drawer/pds-drawer-header/pds-drawer-header.js +23 -0
- package/dist/collection/components/pds-drawer/pds-drawer.css +36 -0
- package/dist/collection/components/pds-drawer/pds-drawer.js +362 -0
- package/dist/collection/components/pds-drawer/stories/pds-drawer.stories.js +72 -0
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +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 +2 -2
- 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 +164 -10
- package/dist/collection/components/pds-modal/test/mock-pds-modal.js +1 -1
- package/dist/collection/components/pds-multiselect/pds-multiselect.js +3 -3
- package/dist/collection/components/pds-popover/pds-popover.js +1 -1
- package/dist/collection/components/pds-progress/pds-progress.js +1 -1
- package/dist/collection/components/pds-property/pds-property.js +1 -1
- package/dist/collection/components/pds-radio/pds-radio.js +3 -3
- package/dist/collection/components/pds-radio-group/pds-radio-group.js +3 -3
- package/dist/collection/components/pds-row/pds-row.js +1 -1
- package/dist/collection/components/pds-select/pds-select.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
- package/dist/collection/components/pds-switch/pds-switch.css +1 -1
- package/dist/collection/components/pds-switch/pds-switch.js +3 -3
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +3 -3
- 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-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 +2 -2
- package/dist/collection/components/pds-textarea/pds-textarea.js +4 -4
- package/dist/collection/components/pds-toast/pds-toast.js +3 -3
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/test/reduced-motion.js +78 -0
- package/dist/collection/utils/truncation-tooltip.js +51 -1
- package/dist/docs.json +385 -5
- package/dist/esm/{index-Bu9gFIxM.js → index-DdPaBxPo.js} +1 -1
- package/dist/esm/index.js +19 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mock-pds-modal.entry.js +1 -1
- package/dist/esm/pds-accordion.entry.js +1 -1
- package/dist/esm/pds-avatar.entry.js +1 -1
- package/dist/esm/pds-button.entry.js +1 -1
- package/dist/esm/pds-checkbox.entry.js +1 -1
- package/dist/esm/pds-chip.entry.js +17 -8
- package/dist/esm/pds-copytext.entry.js +7 -3
- package/dist/esm/pds-drawer-content.entry.js +21 -0
- package/dist/esm/pds-drawer-footer.entry.js +21 -0
- package/dist/esm/pds-drawer-header.entry.js +21 -0
- package/dist/esm/pds-drawer.entry.js +135 -0
- package/dist/esm/pds-dropdown-menu-item.entry.js +1 -1
- package/dist/esm/pds-dropdown-menu-separator.entry.js +1 -1
- package/dist/esm/pds-dropdown-menu.entry.js +1 -1
- package/dist/esm/pds-filter.entry.js +2 -2
- package/dist/esm/pds-filters.entry.js +1 -1
- package/dist/esm/pds-image.entry.js +2 -2
- package/dist/esm/pds-input.entry.js +3 -3
- 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 +141 -10
- package/dist/esm/pds-multiselect.entry.js +4 -4
- package/dist/esm/pds-popover.entry.js +1 -1
- package/dist/esm/pds-progress.entry.js +1 -1
- package/dist/esm/pds-property.entry.js +1 -1
- package/dist/esm/pds-radio-group.entry.js +4 -4
- package/dist/esm/pds-radio.entry.js +4 -4
- package/dist/esm/pds-row.entry.js +1 -1
- package/dist/esm/pds-select.entry.js +2 -2
- package/dist/esm/pds-sortable-item.entry.js +2 -2
- package/dist/esm/pds-sortable.entry.js +1 -1
- package/dist/esm/pds-switch.entry.js +5 -5
- package/dist/esm/pds-table-body.entry.js +1 -1
- package/dist/esm/pds-table-cell.entry.js +3 -3
- package/dist/esm/pds-table-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 -21
- package/dist/esm/pds-textarea.entry.js +5 -5
- package/dist/esm/pds-toast.entry.js +3 -3
- package/dist/esm/pds-tooltip.entry.js +2 -2
- package/dist/esm/pine-core.js +1 -1
- package/dist/esm/{truncation-tooltip-Blk4GigP.js → truncation-tooltip-CdtEBn_5.js} +51 -1
- package/dist/esm-es5/index.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
- package/dist/esm-es5/pds-accordion.entry.js +1 -1
- package/dist/esm-es5/pds-avatar.entry.js +1 -1
- package/dist/esm-es5/pds-button.entry.js +1 -1
- package/dist/esm-es5/pds-checkbox.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-drawer-content.entry.js +1 -0
- package/dist/esm-es5/pds-drawer-footer.entry.js +1 -0
- package/dist/esm-es5/pds-drawer-header.entry.js +1 -0
- package/dist/esm-es5/pds-drawer.entry.js +1 -0
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
- package/dist/esm-es5/pds-filter.entry.js +1 -1
- package/dist/esm-es5/pds-filters.entry.js +1 -1
- package/dist/esm-es5/pds-image.entry.js +1 -1
- package/dist/esm-es5/pds-input.entry.js +1 -1
- package/dist/esm-es5/pds-link.entry.js +1 -1
- package/dist/esm-es5/pds-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-popover.entry.js +1 -1
- package/dist/esm-es5/pds-progress.entry.js +1 -1
- package/dist/esm-es5/pds-property.entry.js +1 -1
- package/dist/esm-es5/pds-radio-group.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js +1 -1
- package/dist/esm-es5/pds-row.entry.js +1 -1
- package/dist/esm-es5/pds-select.entry.js +1 -1
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
- package/dist/esm-es5/pds-sortable.entry.js +1 -1
- package/dist/esm-es5/pds-switch.entry.js +1 -1
- package/dist/esm-es5/pds-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-toast.entry.js +1 -1
- package/dist/esm-es5/pds-tooltip.entry.js +1 -1
- package/dist/esm-es5/pine-core.js +1 -1
- package/dist/esm-es5/truncation-tooltip-CdtEBn_5.js +1 -0
- package/dist/pine-core/index.esm.js +1 -0
- package/dist/pine-core/p-02a47ebb.entry.js +1 -0
- package/dist/pine-core/{p-6089d811.entry.js → p-049681fc.entry.js} +1 -1
- package/dist/pine-core/p-053b0898.system.entry.js +1 -0
- package/dist/pine-core/{p-b0531455.entry.js → p-09413b07.entry.js} +1 -1
- package/dist/pine-core/{p-ba8bd9dc.system.entry.js → p-0ab735aa.system.entry.js} +1 -1
- package/dist/pine-core/p-12182cab.entry.js +1 -0
- package/dist/pine-core/p-15d3a4bc.system.entry.js +1 -0
- package/dist/pine-core/{p-bba759f8.system.entry.js → p-1614c000.system.entry.js} +1 -1
- package/dist/pine-core/{p-c0753d9f.entry.js → p-17dc3f87.entry.js} +1 -1
- package/dist/pine-core/p-18a59cdd.system.entry.js +1 -0
- package/dist/pine-core/{p-c713ffc6.system.entry.js → p-1e2a9b5d.system.entry.js} +1 -1
- package/dist/pine-core/{p-ce63f726.system.entry.js → p-1f307e59.system.entry.js} +1 -1
- package/dist/pine-core/{p-056667f0.entry.js → p-2016c878.entry.js} +1 -1
- package/dist/pine-core/{p-bfa640f4.system.entry.js → p-2eb8d697.system.entry.js} +1 -1
- package/dist/pine-core/{p-af4a24d9.entry.js → p-31e1722e.entry.js} +1 -1
- package/dist/pine-core/{p-63f5f66f.system.entry.js → p-324a7ae4.system.entry.js} +1 -1
- package/dist/pine-core/{p-d157a33a.entry.js → p-32f10aa9.entry.js} +1 -1
- package/dist/pine-core/p-33c0f3c9.system.entry.js +1 -0
- package/dist/pine-core/{p-b17fa86a.system.entry.js → p-3464b456.system.entry.js} +1 -1
- package/dist/pine-core/{p-902b3e8b.system.entry.js → p-34e38037.system.entry.js} +1 -1
- package/dist/pine-core/{p-8e6a8a8e.entry.js → p-3605a5f5.entry.js} +1 -1
- package/dist/pine-core/{p-65557500.entry.js → p-376f8286.entry.js} +1 -1
- package/dist/pine-core/{p-0e89a189.entry.js → p-3873f55b.entry.js} +1 -1
- package/dist/pine-core/{p-a7eabc0c.system.entry.js → p-3c229a00.system.entry.js} +1 -1
- package/dist/pine-core/{p-46f0dda5.system.entry.js → p-3c4236a8.system.entry.js} +1 -1
- package/dist/pine-core/{p-afd07d5b.entry.js → p-3e0c6384.entry.js} +1 -1
- package/dist/pine-core/p-3eca0b00.entry.js +1 -0
- package/dist/pine-core/{p-0fcda1ec.entry.js → p-3f12afb1.entry.js} +1 -1
- package/dist/pine-core/p-43338f77.system.entry.js +1 -0
- package/dist/pine-core/{p-463eb0e6.system.entry.js → p-4661259e.system.entry.js} +1 -1
- package/dist/pine-core/{p-92c79ed4.system.entry.js → p-4d388957.system.entry.js} +1 -1
- package/dist/pine-core/{p-3050c66f.entry.js → p-51b8490d.entry.js} +1 -1
- package/dist/pine-core/{p-e16dfb32.system.entry.js → p-51dff5af.system.entry.js} +1 -1
- package/dist/pine-core/p-53a4852e.system.entry.js +1 -0
- package/dist/pine-core/{p-d54af26c.system.entry.js → p-56b34569.system.entry.js} +1 -1
- package/dist/pine-core/{p-cf72e9b1.system.entry.js → p-5772f260.system.entry.js} +1 -1
- package/dist/pine-core/{p-9fd1e8f4.system.entry.js → p-585ad368.system.entry.js} +1 -1
- package/dist/pine-core/p-591fbff5.entry.js +1 -0
- package/dist/pine-core/{p-2fd71a0c.entry.js → p-5aea1082.entry.js} +1 -1
- package/dist/pine-core/{p-460aa66f.system.entry.js → p-5dd393cd.system.entry.js} +1 -1
- package/dist/pine-core/p-613a64f1.entry.js +1 -0
- package/dist/pine-core/{p-e450eb27.system.entry.js → p-630f33d6.system.entry.js} +1 -1
- package/dist/pine-core/{p-33de0eb7.system.entry.js → p-63686e2a.system.entry.js} +1 -1
- package/dist/pine-core/{p-2d4b9253.entry.js → p-6f7a7d55.entry.js} +1 -1
- package/dist/pine-core/p-6fd863e5.system.entry.js +1 -0
- package/dist/pine-core/{p-8702635d.system.entry.js → p-76286a68.system.entry.js} +1 -1
- package/dist/pine-core/p-78fd593d.system.entry.js +1 -0
- package/dist/pine-core/{p-ae296598.entry.js → p-7e2b934d.entry.js} +1 -1
- package/dist/pine-core/p-7e44106e.entry.js +1 -0
- package/dist/pine-core/p-84ade640.entry.js +1 -0
- package/dist/pine-core/{p-eb4058ed.system.entry.js → p-869ed1c0.system.entry.js} +1 -1
- package/dist/pine-core/{p-9b68669f.entry.js → p-8be301b6.entry.js} +1 -1
- package/dist/pine-core/{p-08151143.system.entry.js → p-8cc270f0.system.entry.js} +1 -1
- package/dist/pine-core/p-8cea0d7a.system.entry.js +1 -0
- package/dist/pine-core/{p-3b9e77b3.entry.js → p-8eef80d5.entry.js} +1 -1
- package/dist/pine-core/{p-b255d3b7.entry.js → p-957dbb0c.entry.js} +1 -1
- package/dist/pine-core/p-B2nn1gSd.js +1 -0
- package/dist/pine-core/{p-CRCxGYgw.system.js → p-B2qvvB3q.system.js} +1 -1
- package/dist/pine-core/p-Dr-FzkdE.system.js +1 -1
- package/dist/pine-core/p-G3CPPJEt.system.js +1 -0
- package/dist/pine-core/{p-ce79321b.system.entry.js → p-a11a9c40.system.entry.js} +1 -1
- package/dist/pine-core/p-a4a58477.entry.js +1 -0
- package/dist/pine-core/{p-9a7294e7.system.entry.js → p-a98bf89f.system.entry.js} +1 -1
- package/dist/pine-core/{p-aecaff12.entry.js → p-ac0098fd.entry.js} +1 -1
- package/dist/pine-core/{p-228a9068.system.entry.js → p-b32e3174.system.entry.js} +1 -1
- package/dist/pine-core/{p-2af19aa7.entry.js → p-b923a70b.entry.js} +1 -1
- package/dist/pine-core/p-be4a6cc2.entry.js +1 -0
- package/dist/pine-core/{p-d804d37b.system.entry.js → p-be819bff.system.entry.js} +1 -1
- package/dist/pine-core/{p-85434de8.system.entry.js → p-c0b3f2c1.system.entry.js} +1 -1
- package/dist/pine-core/p-c1f8a187.entry.js +1 -0
- package/dist/pine-core/{p-4d6944aa.entry.js → p-c5ce6dea.entry.js} +1 -1
- package/dist/pine-core/{p-97198cb6.system.entry.js → p-c8bffb08.system.entry.js} +1 -1
- package/dist/pine-core/p-cf24ed1e.system.entry.js +1 -0
- package/dist/pine-core/{p-9487ff20.system.entry.js → p-d0d2a886.system.entry.js} +1 -1
- package/dist/pine-core/{p-f3683be8.entry.js → p-d12ef40d.entry.js} +1 -1
- package/dist/pine-core/{p-aa208514.entry.js → p-d21739eb.entry.js} +1 -1
- package/dist/pine-core/p-d280741f.entry.js +1 -0
- package/dist/pine-core/p-d43db3ba.entry.js +1 -0
- package/dist/pine-core/{p-1e952dbb.entry.js → p-d46adf7d.entry.js} +1 -1
- package/dist/pine-core/{p-7a1971ec.entry.js → p-d7865297.entry.js} +1 -1
- package/dist/pine-core/{p-226232a7.system.entry.js → p-d9ffb2d9.system.entry.js} +1 -1
- package/dist/pine-core/p-db5703f2.entry.js +1 -0
- package/dist/pine-core/p-dd6d9807.system.entry.js +1 -0
- package/dist/pine-core/p-e0da17aa.system.entry.js +1 -0
- package/dist/pine-core/{p-4923a3fe.entry.js → p-e3600c53.entry.js} +1 -1
- package/dist/pine-core/{p-a9e54964.entry.js → p-e3a7d2db.entry.js} +1 -1
- package/dist/pine-core/{p-04a30a2d.system.entry.js → p-e3cd4627.system.entry.js} +1 -1
- package/dist/pine-core/{p-1649dd61.system.entry.js → p-e410b0d8.system.entry.js} +1 -1
- package/dist/pine-core/p-e5bbe8cc.entry.js +1 -0
- package/dist/pine-core/{p-4dad0878.entry.js → p-e95225cf.entry.js} +1 -1
- package/dist/pine-core/{p-544ccf67.entry.js → p-ed297f3e.entry.js} +1 -1
- package/dist/pine-core/{p-fcf91f14.system.entry.js → p-f21aea90.system.entry.js} +1 -1
- package/dist/pine-core/{p-a3c4c0ee.entry.js → p-f7a5062f.entry.js} +1 -1
- package/dist/pine-core/p-f94667b5.entry.js +1 -0
- package/dist/pine-core/p-fbf5f315.entry.js +1 -0
- package/dist/pine-core/{p-7c18e9e8.system.entry.js → p-fec298bb.system.entry.js} +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/types/components/pds-drawer/pds-drawer-content/pds-drawer-content.d.ts +11 -0
- package/dist/types/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.d.ts +5 -0
- package/dist/types/components/pds-drawer/pds-drawer-header/pds-drawer-header.d.ts +5 -0
- package/dist/types/components/pds-drawer/pds-drawer.d.ts +78 -0
- package/dist/types/components/pds-modal/pds-modal.d.ts +38 -0
- package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +2 -1
- package/dist/types/components/pds-text/pds-text.d.ts +2 -1
- package/dist/types/components.d.ts +228 -4
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/test/reduced-motion.d.ts +30 -0
- package/dist/types/utils/truncation-tooltip.d.ts +12 -0
- package/dist/vscode.html-data.json +139 -2
- package/hydrate/index.js +538 -101
- package/hydrate/index.mjs +538 -101
- package/package.json +7 -3
- package/dist/esm-es5/truncation-tooltip-Blk4GigP.js +0 -1
- package/dist/pine-core/p-0d73d473.entry.js +0 -1
- package/dist/pine-core/p-1ba361cb.entry.js +0 -1
- package/dist/pine-core/p-210f0994.system.entry.js +0 -1
- package/dist/pine-core/p-2e214db6.entry.js +0 -1
- package/dist/pine-core/p-3cdc1a5b.entry.js +0 -1
- package/dist/pine-core/p-4faff617.entry.js +0 -1
- package/dist/pine-core/p-50e0f726.system.entry.js +0 -1
- package/dist/pine-core/p-520f7a5b.entry.js +0 -1
- package/dist/pine-core/p-53999cd6.system.entry.js +0 -1
- package/dist/pine-core/p-5c239f0a.entry.js +0 -1
- package/dist/pine-core/p-611f68b7.system.entry.js +0 -1
- package/dist/pine-core/p-897fe88c.entry.js +0 -1
- package/dist/pine-core/p-9507eb49.system.entry.js +0 -1
- package/dist/pine-core/p-BNSGedhN.js +0 -1
- package/dist/pine-core/p-YWpyar7R.system.js +0 -1
- package/dist/pine-core/p-a53222f7.entry.js +0 -1
- package/dist/pine-core/p-a8ab4d9b.entry.js +0 -1
- package/dist/pine-core/p-b52deffb.entry.js +0 -1
- package/dist/pine-core/p-b6c2090f.system.entry.js +0 -1
- package/dist/pine-core/p-d27ef352.system.entry.js +0 -1
- package/dist/pine-core/p-e11795db.system.entry.js +0 -1
- package/dist/pine-core/p-f09ce49e.entry.js +0 -1
- /package/dist/esm-es5/{index-Bu9gFIxM.js → index-DdPaBxPo.js} +0 -0
- /package/dist/pine-core/{p-Bjc6fc_Y.system.js → p--Llh7wKm.system.js} +0 -0
- /package/dist/pine-core/{p-Bu9gFIxM.js → p-DdPaBxPo.js} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -5530,7 +5530,7 @@ class MockPdsModal {
|
|
|
5530
5530
|
'pds-modal__backdrop': true,
|
|
5531
5531
|
'open': this.open,
|
|
5532
5532
|
};
|
|
5533
|
-
return (hAsync("div", { key: '
|
|
5533
|
+
return (hAsync("div", { key: '1207382ec39e45f95449791cd9fbf3ad54a17564', class: backdropClasses }, hAsync("div", { key: '865cff8feaf031750e6763d60580f9060dfc0c91', class: modalClasses, role: "dialog", "aria-modal": "true", "aria-labelledby": this.componentId ? `${this.componentId}-heading` : null, part: "modal" }, hAsync("div", { key: 'b49ba7c717999b53578056ad35c4ec270dbdfd01', class: "pds-modal__header" }, hAsync("slot", { key: '2c06b0f0c4692f1991eb389a73b751d38796c1cf', name: "header" })), hAsync("div", { key: 'ca0e6f324db12de5bd0c21b53bf888ab44c0d34c', class: "pds-modal-content" }, hAsync("slot", { key: 'cef74e83f58195b574f9a290f748cecb2561668e' })), hAsync("div", { key: '65518e197e80fa0cd8ea8cbbd9bb10a064e251ca', class: "pds-modal__footer" }, hAsync("slot", { key: '8cd72b932b7c4d31cf9ecb8f0c37d9a5b5ca7594', name: "footer" })))));
|
|
5534
5534
|
}
|
|
5535
5535
|
get el() { return getElement(this); }
|
|
5536
5536
|
static get style() { return pdsModalCss$1(); }
|
|
@@ -5552,7 +5552,7 @@ class MockPdsModal {
|
|
|
5552
5552
|
}; }
|
|
5553
5553
|
}
|
|
5554
5554
|
|
|
5555
|
-
/* pds-icons v10.4.
|
|
5555
|
+
/* pds-icons v10.4.3, ES Modules */
|
|
5556
5556
|
|
|
5557
5557
|
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>";
|
|
5558
5558
|
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>";
|
|
@@ -8422,10 +8422,12 @@ function isOverflowing(el) {
|
|
|
8422
8422
|
* will display a tooltip showing the full text content. The tooltip is
|
|
8423
8423
|
* rendered as a portal on document.body and positioned with Floating UI.
|
|
8424
8424
|
*
|
|
8425
|
+
* Also owns the element's `tabindex` while it is clipped — see syncTabIndex.
|
|
8426
|
+
*
|
|
8425
8427
|
* @returns A cleanup function that removes all listeners, observers, and DOM elements.
|
|
8426
8428
|
*/
|
|
8427
8429
|
function setupTruncationTooltip(options) {
|
|
8428
|
-
const { hostEl, contentEl, getTooltipText, placement = 'top' } = options;
|
|
8430
|
+
const { hostEl, contentEl, getTooltipText, placement = 'top', manageTabIndex = true } = options;
|
|
8429
8431
|
injectStyles();
|
|
8430
8432
|
let portalEl = null;
|
|
8431
8433
|
let isHovering = false;
|
|
@@ -8434,6 +8436,34 @@ function setupTruncationTooltip(options) {
|
|
|
8434
8436
|
let hideTimeout = null;
|
|
8435
8437
|
let resizeObserver = null;
|
|
8436
8438
|
let resizeDebounce = null;
|
|
8439
|
+
let ownsTabIndex = false;
|
|
8440
|
+
let disposed = false;
|
|
8441
|
+
/**
|
|
8442
|
+
* The tab stop exists only to give the tooltip a focusable anchor, so it
|
|
8443
|
+
* belongs on the element while the text is actually clipped and not a moment
|
|
8444
|
+
* longer. Deriving it from the caller's prop instead leaves a dead stop on
|
|
8445
|
+
* every element that opted into truncation but happens to fit — in a row of
|
|
8446
|
+
* chips that doubles the tab stops, half of them landing on a span with no
|
|
8447
|
+
* role, no name of its own, and nothing to reveal.
|
|
8448
|
+
*
|
|
8449
|
+
* Ownership is tracked rather than inferred from the value: if the consumer
|
|
8450
|
+
* already put a tabindex on the element (a roving -1, say), that is theirs
|
|
8451
|
+
* and we never touch it.
|
|
8452
|
+
*/
|
|
8453
|
+
function syncTabIndex() {
|
|
8454
|
+
if (!manageTabIndex)
|
|
8455
|
+
return;
|
|
8456
|
+
if (isOverflowing(contentEl)) {
|
|
8457
|
+
if (!ownsTabIndex && contentEl.hasAttribute('tabindex'))
|
|
8458
|
+
return;
|
|
8459
|
+
ownsTabIndex = true;
|
|
8460
|
+
contentEl.setAttribute('tabindex', '0');
|
|
8461
|
+
}
|
|
8462
|
+
else if (ownsTabIndex) {
|
|
8463
|
+
ownsTabIndex = false;
|
|
8464
|
+
contentEl.removeAttribute('tabindex');
|
|
8465
|
+
}
|
|
8466
|
+
}
|
|
8437
8467
|
// Use ResizeObserver to re-evaluate overflow when the element resizes
|
|
8438
8468
|
// Debounced to prevent performance issues during rapid window resizing
|
|
8439
8469
|
if (typeof ResizeObserver !== 'undefined') {
|
|
@@ -8443,6 +8473,7 @@ function setupTruncationTooltip(options) {
|
|
|
8443
8473
|
}
|
|
8444
8474
|
resizeDebounce = setTimeout(() => {
|
|
8445
8475
|
resizeDebounce = null;
|
|
8476
|
+
syncTabIndex();
|
|
8446
8477
|
// If tooltip is showing but text no longer overflows, hide it
|
|
8447
8478
|
if (portalEl && portalEl.isConnected && !isOverflowing(contentEl)) {
|
|
8448
8479
|
hideTooltip();
|
|
@@ -8451,6 +8482,18 @@ function setupTruncationTooltip(options) {
|
|
|
8451
8482
|
});
|
|
8452
8483
|
resizeObserver.observe(contentEl);
|
|
8453
8484
|
}
|
|
8485
|
+
// Measure now so the common case is right on the first paint, rather than
|
|
8486
|
+
// waiting out the observer's debounce.
|
|
8487
|
+
syncTabIndex();
|
|
8488
|
+
// A web font swapping in changes scrollWidth without changing the clipped
|
|
8489
|
+
// box's size, so ResizeObserver never fires for it — the element would keep
|
|
8490
|
+
// whatever the fallback font measured. Re-measure once the fonts settle.
|
|
8491
|
+
if (typeof document !== 'undefined' && document.fonts !== undefined) {
|
|
8492
|
+
document.fonts.ready.then(() => {
|
|
8493
|
+
if (!disposed)
|
|
8494
|
+
syncTabIndex();
|
|
8495
|
+
});
|
|
8496
|
+
}
|
|
8454
8497
|
function createPortal() {
|
|
8455
8498
|
if (portalEl)
|
|
8456
8499
|
return;
|
|
@@ -8582,6 +8625,7 @@ function setupTruncationTooltip(options) {
|
|
|
8582
8625
|
hostEl.addEventListener('focusout', handleFocusOut);
|
|
8583
8626
|
// Return cleanup function
|
|
8584
8627
|
return () => {
|
|
8628
|
+
disposed = true;
|
|
8585
8629
|
cancelHideTimeout();
|
|
8586
8630
|
if (resizeDebounce) {
|
|
8587
8631
|
clearTimeout(resizeDebounce);
|
|
@@ -8590,6 +8634,12 @@ function setupTruncationTooltip(options) {
|
|
|
8590
8634
|
if (resizeObserver) {
|
|
8591
8635
|
resizeObserver.disconnect();
|
|
8592
8636
|
}
|
|
8637
|
+
// Hand the element back as we found it — truncation may simply have been
|
|
8638
|
+
// turned off, in which case the element outlives this teardown.
|
|
8639
|
+
if (ownsTabIndex) {
|
|
8640
|
+
ownsTabIndex = false;
|
|
8641
|
+
contentEl.removeAttribute('tabindex');
|
|
8642
|
+
}
|
|
8593
8643
|
hostEl.removeEventListener('mouseenter', handleMouseEnter);
|
|
8594
8644
|
hostEl.removeEventListener('mouseleave', handleMouseLeave);
|
|
8595
8645
|
hostEl.removeEventListener('focusin', handleFocusIn);
|
|
@@ -8663,6 +8713,11 @@ class PdsChip {
|
|
|
8663
8713
|
hostEl: this.el,
|
|
8664
8714
|
contentEl: this.labelTextEl,
|
|
8665
8715
|
getTooltipText: () => this.el.textContent || '',
|
|
8716
|
+
// The dropdown variant's label span already sits inside
|
|
8717
|
+
// `<button class="pds-chip__button">`, which is already focusable and
|
|
8718
|
+
// bubbles focusin to the host — a tabindex on the span too would nest
|
|
8719
|
+
// a second tab stop inside the button.
|
|
8720
|
+
manageTabIndex: this.effectiveVariant !== 'dropdown',
|
|
8666
8721
|
});
|
|
8667
8722
|
this.tooltipBoundEl = this.labelTextEl;
|
|
8668
8723
|
}
|
|
@@ -8713,11 +8768,15 @@ class PdsChip {
|
|
|
8713
8768
|
// node — and a plain `<pds-chip>Some text</pds-chip>` slots text with no
|
|
8714
8769
|
// wrapping element. Wrapping the slot itself in an internal span gives
|
|
8715
8770
|
// maxWidth something to ellipsize regardless of what's slotted.
|
|
8716
|
-
// A focus-triggered tooltip needs a focusable anchor
|
|
8717
|
-
//
|
|
8718
|
-
//
|
|
8719
|
-
|
|
8720
|
-
|
|
8771
|
+
// A focus-triggered tooltip needs a focusable anchor, but the label span
|
|
8772
|
+
// only earns a tab stop while its text is actually clipped — a chip whose
|
|
8773
|
+
// label fits has nothing to reveal. setupTruncationTooltip owns that
|
|
8774
|
+
// tabindex off the measurement for every variant except dropdown: its
|
|
8775
|
+
// label span already sits inside `<button class="pds-chip__button">`,
|
|
8776
|
+
// which is already focusable and bubbles focusin to the host, so
|
|
8777
|
+
// initTruncationTooltip passes `manageTabIndex: false` there to avoid
|
|
8778
|
+
// nesting a second tab stop inside the button.
|
|
8779
|
+
const chipContent = isDropdown ? (hAsync("button", { class: "pds-chip__button", type: "button", part: "button" }, this.icon && hAsync("pds-icon", { icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && hAsync("i", { class: "pds-chip__dot", "aria-hidden": "true" }), hAsync("span", { class: "pds-chip__label-text", ref: (el) => (this.labelTextEl = el) }, hAsync("slot", null)), hAsync("pds-icon", { icon: downSmall, size: this.iconSize, "aria-hidden": "true" }))) : (hAsync("span", { class: "pds-chip__label" }, this.icon && hAsync("pds-icon", { icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && hAsync("i", { class: "pds-chip__dot", "aria-hidden": "true" }), hAsync("span", { class: "pds-chip__label-text", ref: (el) => (this.labelTextEl = el) }, hAsync("slot", null))));
|
|
8721
8780
|
return chipContent;
|
|
8722
8781
|
}
|
|
8723
8782
|
get hostStyles() {
|
|
@@ -8773,7 +8832,7 @@ class PdsChip {
|
|
|
8773
8832
|
return (hAsync(CloseElement, Object.assign({}, closeAttributes(), { onClick: this.handleCloseClick }), hAsync("pds-icon", { icon: remove, size: this.iconSize })));
|
|
8774
8833
|
}
|
|
8775
8834
|
render() {
|
|
8776
|
-
return (hAsync(Host, { key: '
|
|
8835
|
+
return (hAsync(Host, { key: '3b796c1340ac4e37569bf7904dbed05ba6938e4b', class: this.classNames(), id: this.componentId, style: this.hostStyles }, this.setChipContent(), this.effectiveVariant === 'tag' && this.renderCloseButton()));
|
|
8777
8836
|
}
|
|
8778
8837
|
get el() { return getElement(this); }
|
|
8779
8838
|
static get style() { return pdsChipTokensCss() + pdsChipCss(); }
|
|
@@ -11868,6 +11927,10 @@ class PdsCopytext {
|
|
|
11868
11927
|
hostEl: this.el,
|
|
11869
11928
|
contentEl: this.valueSpanEl,
|
|
11870
11929
|
getTooltipText: () => this.value || '',
|
|
11930
|
+
// valueSpanEl already sits inside the `<pds-button>` below, which is
|
|
11931
|
+
// already focusable and bubbles focusin to the host — a tabindex on
|
|
11932
|
+
// the span too would nest a second tab stop inside the button.
|
|
11933
|
+
manageTabIndex: false,
|
|
11871
11934
|
});
|
|
11872
11935
|
}
|
|
11873
11936
|
}
|
|
@@ -11891,7 +11954,7 @@ class PdsCopytext {
|
|
|
11891
11954
|
return classNames.join(' ');
|
|
11892
11955
|
}
|
|
11893
11956
|
render() {
|
|
11894
|
-
return (hAsync(Host, { key: '
|
|
11957
|
+
return (hAsync(Host, { key: '6e3ff4eb0dc42e57156a162196a06a675cac6f91', class: this.classNames(), id: this.componentId }, hAsync("pds-button", { key: '749a8dde35eb3c70941229d11dc6477aaf717ed1', type: "button", variant: "unstyled", onClick: this.handleClick }, hAsync("span", { key: '7f457a164f3ae76a37814d37d7b5e3fce86bd803', ref: (el) => this.valueSpanEl = el }, this.value), hAsync("pds-icon", { key: '0ff6dad44148c23ee9d693e82880598b91b0630e', "aria-hidden": "true", icon: copy, size: "16px" }))));
|
|
11895
11958
|
}
|
|
11896
11959
|
get el() { return getElement(this); }
|
|
11897
11960
|
static get watchers() { return {
|
|
@@ -11970,6 +12033,270 @@ class PdsDivider {
|
|
|
11970
12033
|
}; }
|
|
11971
12034
|
}
|
|
11972
12035
|
|
|
12036
|
+
/**
|
|
12037
|
+
* Unwraps a stale copy of a light-DOM (`shadow: false`) component's own wrapper,
|
|
12038
|
+
* left behind when a page-cache (Turbo, browser bfcache) reconnect nests a
|
|
12039
|
+
* component's previous render inside its freshly rendered one. Call from
|
|
12040
|
+
* `componentDidRender` with the element that directly contains the rendered
|
|
12041
|
+
* `<slot>` and the selector that identifies "another one of me." Unwraps in
|
|
12042
|
+
* place (move-then-remove) so nested content is never lost.
|
|
12043
|
+
*
|
|
12044
|
+
* `contentSelector` is only needed when the wrapper itself further nests a
|
|
12045
|
+
* separate content element (e.g. pds-tab's `<a class="pds-tab">` wrapping a
|
|
12046
|
+
* `.pds-tab__content` div) — omit it when the wrapper's own children are the
|
|
12047
|
+
* slotted content (e.g. pds-tabpanel's `.pds-tabpanel` div).
|
|
12048
|
+
*/
|
|
12049
|
+
function unwrapReconnectedContent(container, selector, contentSelector) {
|
|
12050
|
+
var _a;
|
|
12051
|
+
if (container === null)
|
|
12052
|
+
return;
|
|
12053
|
+
let stale = container.firstElementChild;
|
|
12054
|
+
while (stale === null || stale === void 0 ? void 0 : stale.matches(selector)) {
|
|
12055
|
+
const source = contentSelector !== undefined ? ((_a = stale.querySelector(contentSelector)) !== null && _a !== void 0 ? _a : stale) : stale;
|
|
12056
|
+
Array.from(source.childNodes).forEach((node) => container.insertBefore(node, stale));
|
|
12057
|
+
stale.remove();
|
|
12058
|
+
stale = container.firstElementChild;
|
|
12059
|
+
}
|
|
12060
|
+
}
|
|
12061
|
+
|
|
12062
|
+
const pdsDrawerCss = () => `.pds-drawer__modal>.pds-modal__backdrop{-ms-flex-align:stretch;align-items:stretch;background-color:transparent;pointer-events:none}@supports ((-webkit-backdrop-filter: blur(3px)) or (backdrop-filter: blur(3px))){.pds-drawer__modal>.pds-modal__backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}}.pds-drawer__modal>.pds-modal__backdrop>.pds-modal{border-radius:0;height:100%;margin:0;max-height:100%;max-width:100%;pointer-events:auto;width:var(--pds-drawer-width, 500px)}.pds-drawer{display:contents}.pds-drawer.pds-drawer--end .pds-drawer__modal>.pds-modal__backdrop{-ms-flex-pack:end;justify-content:flex-end}.pds-drawer.pds-drawer--start .pds-drawer__modal>.pds-modal__backdrop{-ms-flex-pack:start;justify-content:flex-start}.pds-drawer.pds-drawer--sm{--pds-drawer-width:360px}.pds-drawer.pds-drawer--md{--pds-drawer-width:500px}`;
|
|
12063
|
+
|
|
12064
|
+
// Known selectors for content Pine components portal to document.body rather
|
|
12065
|
+
// than rendering in place — pds-popover, pds-tooltip, pds-combobox's dropdown.
|
|
12066
|
+
// A pointerdown landing on one of these is not "outside" the drawer in the
|
|
12067
|
+
// sense light dismiss cares about: it belongs to an overlay something inside
|
|
12068
|
+
// the drawer opened, even though it is not a DOM descendant of the drawer.
|
|
12069
|
+
const PORTALED_OVERLAY_SELECTOR = '.pds-popover, .pds-tooltip, .pds-combobox-dropdown-portal';
|
|
12070
|
+
/**
|
|
12071
|
+
* A non-modal side panel composed from `pds-modal`.
|
|
12072
|
+
*
|
|
12073
|
+
* Unlike `pds-modal`, the page stays interactive while a drawer is open: no
|
|
12074
|
+
* dimming, no blur, no scroll lock, no click blocking. `pds-drawer` renders a
|
|
12075
|
+
* `pds-modal` internally with `disableTopLayer` always on and its backdrop
|
|
12076
|
+
* suppressed, and adds the edge, width and dismiss behavior a side panel
|
|
12077
|
+
* needs on top. It does not reimplement focus, Escape or dialog semantics —
|
|
12078
|
+
* those come from `pds-modal` unchanged.
|
|
12079
|
+
*/
|
|
12080
|
+
class PdsDrawer {
|
|
12081
|
+
constructor(hostRef) {
|
|
12082
|
+
registerInstance(this, hostRef);
|
|
12083
|
+
this.pdsDrawerOpen = createEvent(this, "pdsDrawerOpen");
|
|
12084
|
+
this.pdsDrawerClose = createEvent(this, "pdsDrawerClose");
|
|
12085
|
+
/**
|
|
12086
|
+
* Whether the drawer is open
|
|
12087
|
+
* @default false
|
|
12088
|
+
*/
|
|
12089
|
+
this.open = false;
|
|
12090
|
+
/**
|
|
12091
|
+
* Which edge of the viewport the drawer is docked to. Logical, so this is
|
|
12092
|
+
* free under RTL — `end` is the inline-end edge regardless of direction.
|
|
12093
|
+
* @default 'end'
|
|
12094
|
+
*/
|
|
12095
|
+
this.side = 'end';
|
|
12096
|
+
/**
|
|
12097
|
+
* The drawer's width.
|
|
12098
|
+
* @default 'md'
|
|
12099
|
+
*/
|
|
12100
|
+
this.size = 'md';
|
|
12101
|
+
/**
|
|
12102
|
+
* Whether the drawer content should be scrollable
|
|
12103
|
+
* @default true
|
|
12104
|
+
*/
|
|
12105
|
+
this.scrollable = true;
|
|
12106
|
+
/**
|
|
12107
|
+
* Whether the drawer can be dismissed with a pointerdown outside it.
|
|
12108
|
+
* Replaces `pds-modal`'s `backdropDismiss` — there is no backdrop to click.
|
|
12109
|
+
* This also gates Escape, matching how `backdropDismiss` gates Escape on
|
|
12110
|
+
* `pds-modal` today: setting this to `false` means the close button is the
|
|
12111
|
+
* only way out.
|
|
12112
|
+
*
|
|
12113
|
+
* A trigger outside the drawer should only ever set `open` to `true` and
|
|
12114
|
+
* leave closing to the drawer itself. A toggle-style trigger (`open =
|
|
12115
|
+
* !open`) fights light dismiss: clicking it while open closes the drawer
|
|
12116
|
+
* on `pointerdown`, then the trigger's own click handler re-opens it.
|
|
12117
|
+
* @default true
|
|
12118
|
+
*/
|
|
12119
|
+
this.lightDismiss = true;
|
|
12120
|
+
/**
|
|
12121
|
+
* Whether to move focus into the drawer when it opens. `auto` is right for
|
|
12122
|
+
* a drawer opened by a direct user action (a click, a deep link the user
|
|
12123
|
+
* just navigated to). Set to `none` for a drawer that can open from a
|
|
12124
|
+
* background event while the user is mid-task elsewhere on the page —
|
|
12125
|
+
* moving focus there would interrupt them, and the page stays live under
|
|
12126
|
+
* a non-modal drawer, so it is a genuine data-entry risk, not just an
|
|
12127
|
+
* annoyance.
|
|
12128
|
+
* @default 'auto'
|
|
12129
|
+
*/
|
|
12130
|
+
this.initialFocus = 'auto';
|
|
12131
|
+
}
|
|
12132
|
+
// Unwraps a nested pds-modal left by a page-cache (Turbo, bfcache) reconnect
|
|
12133
|
+
// — the same bug class fixed for pds-modal-header/-content/-footer. Every
|
|
12134
|
+
// render wraps the slotted content in a fresh, marked pds-modal; a reconnect
|
|
12135
|
+
// that restores a prior render's pds-modal in our light DOM ends up with
|
|
12136
|
+
// that stale one nested inside the new one's content.
|
|
12137
|
+
//
|
|
12138
|
+
// The container has to be the inner `.pds-modal` content div, not the
|
|
12139
|
+
// `<pds-modal>` tag itself — that tag's first child is always its own
|
|
12140
|
+
// rendered `dialog.pds-modal__backdrop`, never another `<pds-modal>`, so a
|
|
12141
|
+
// bare-tag check there never matches. The `.pds-drawer__modal` marker on
|
|
12142
|
+
// the staleness selector (rather than the bare `pds-modal` tag) keeps this
|
|
12143
|
+
// from also unwrapping a consumer's own nested pds-modal, like a confirm
|
|
12144
|
+
// dialog placed first in the drawer's content — only a stale copy of our
|
|
12145
|
+
// own wrapper carries that class.
|
|
12146
|
+
componentDidRender() {
|
|
12147
|
+
unwrapReconnectedContent(this.el.querySelector('pds-modal.pds-drawer__modal .pds-modal'), 'pds-modal.pds-drawer__modal', '.pds-modal');
|
|
12148
|
+
}
|
|
12149
|
+
// pds-modal closes itself (Escape, light dismiss, a consumer's close
|
|
12150
|
+
// button toggling its own `open`) and only updates its own `open` prop —
|
|
12151
|
+
// mirror that back onto ours so a consumer's binding stays correct, and
|
|
12152
|
+
// re-emit as our own event rather than leaking pds-modal's event name.
|
|
12153
|
+
// Both events bubble, so a nested pds-modal (a confirm dialog inside the
|
|
12154
|
+
// drawer's own content) would otherwise trigger these too — only react to
|
|
12155
|
+
// our own direct inner modal.
|
|
12156
|
+
handleModalClose(e) {
|
|
12157
|
+
if (e.target !== this.modalEl)
|
|
12158
|
+
return;
|
|
12159
|
+
this.open = false;
|
|
12160
|
+
this.pdsDrawerClose.emit();
|
|
12161
|
+
}
|
|
12162
|
+
handleModalOpen(e) {
|
|
12163
|
+
if (e.target !== this.modalEl)
|
|
12164
|
+
return;
|
|
12165
|
+
this.pdsDrawerOpen.emit();
|
|
12166
|
+
}
|
|
12167
|
+
// Light dismiss: a pointerdown anywhere outside the drawer closes it. This
|
|
12168
|
+
// has to be a listener of our own, not pds-modal's backdrop-click handler —
|
|
12169
|
+
// the backdrop is pointer-events:none out here (see pds-drawer.scss) so the
|
|
12170
|
+
// page underneath stays genuinely clickable, which means a click there
|
|
12171
|
+
// never reaches pds-modal's backdrop element at all.
|
|
12172
|
+
handleOutsidePointerDown(e) {
|
|
12173
|
+
if (!this.lightDismiss || !this.open)
|
|
12174
|
+
return;
|
|
12175
|
+
const target = e.target;
|
|
12176
|
+
if (!target)
|
|
12177
|
+
return;
|
|
12178
|
+
if (this.el.contains(target))
|
|
12179
|
+
return;
|
|
12180
|
+
if (target.closest(PORTALED_OVERLAY_SELECTOR))
|
|
12181
|
+
return;
|
|
12182
|
+
// A sibling pds-modal — e.g. a confirm dialog opened from inside the
|
|
12183
|
+
// drawer but mounted at the document root rather than nested in our own
|
|
12184
|
+
// content — is neither a descendant of the drawer nor on the portaled
|
|
12185
|
+
// list above, so without this it reads as "outside" and a click inside
|
|
12186
|
+
// it (or on its own backdrop) would close the drawer underneath it. That
|
|
12187
|
+
// modal already owns its own dismiss semantics; defer to them instead.
|
|
12188
|
+
if (target.closest('pds-modal'))
|
|
12189
|
+
return;
|
|
12190
|
+
this.open = false;
|
|
12191
|
+
}
|
|
12192
|
+
render() {
|
|
12193
|
+
return (hAsync(Host, { key: '66e16ca7704243e8bb98002f042fa073ec43c38b', class: {
|
|
12194
|
+
'pds-drawer': true,
|
|
12195
|
+
[`pds-drawer--${this.side}`]: true,
|
|
12196
|
+
[`pds-drawer--${this.size}`]: true,
|
|
12197
|
+
} }, hAsync("pds-modal", { key: 'b52b8cb1892d52113920ab27344d9a969e6365b6', class: "pds-drawer__modal", ref: (el) => (this.modalEl = el), componentId: this.componentId, open: this.open, scrollable: this.scrollable, disableTopLayer: true, backdropDismiss: this.lightDismiss, disableInitialFocus: this.initialFocus === 'none' }, hAsync("slot", { key: 'c9ce43ca12a06c550bd130a0fa7572dec22c9c92' }))));
|
|
12198
|
+
}
|
|
12199
|
+
get el() { return getElement(this); }
|
|
12200
|
+
static get style() { return pdsDrawerCss(); }
|
|
12201
|
+
static get cmpMeta() { return {
|
|
12202
|
+
"$flags$": 260,
|
|
12203
|
+
"$tagName$": "pds-drawer",
|
|
12204
|
+
"$members$": {
|
|
12205
|
+
"componentId": [1, "component-id"],
|
|
12206
|
+
"open": [1028],
|
|
12207
|
+
"side": [1],
|
|
12208
|
+
"size": [1],
|
|
12209
|
+
"scrollable": [4],
|
|
12210
|
+
"lightDismiss": [4, "light-dismiss"],
|
|
12211
|
+
"initialFocus": [1, "initial-focus"]
|
|
12212
|
+
},
|
|
12213
|
+
"$listeners$": [[0, "pdsModalClose", "handleModalClose"], [0, "pdsModalOpen", "handleModalOpen"], [5, "pointerdown", "handleOutsidePointerDown"]],
|
|
12214
|
+
"$lazyBundleId$": "-",
|
|
12215
|
+
"$attrsToReflect$": []
|
|
12216
|
+
}; }
|
|
12217
|
+
}
|
|
12218
|
+
|
|
12219
|
+
const pdsDrawerContentCss = () => `pds-drawer-content{display:block;-ms-flex:1 1 auto;flex:1 1 auto;min-height:0;width:100%}.pds-drawer-content{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;height:100%;padding:var(--pine-dimension-md);width:100%}.pds-modal--scrollable pds-drawer-content{overflow-y:auto}.pds-modal:not(.pds-modal--scrollable) pds-drawer-content{overflow-y:visible}`;
|
|
12220
|
+
|
|
12221
|
+
/**
|
|
12222
|
+
* Fills the drawer panel's height by default — unlike `pds-modal-content`,
|
|
12223
|
+
* which caps itself against the viewport for a centered, possibly-shorter
|
|
12224
|
+
* modal, a drawer panel is already edge-to-edge, so its content can simply
|
|
12225
|
+
* flex to fill whatever space the header and footer leave.
|
|
12226
|
+
*/
|
|
12227
|
+
class PdsDrawerContent {
|
|
12228
|
+
constructor(hostRef) {
|
|
12229
|
+
registerInstance(this, hostRef);
|
|
12230
|
+
}
|
|
12231
|
+
// Unwraps a nested .pds-drawer-content left by a page-cache (Turbo, bfcache) reconnect.
|
|
12232
|
+
componentDidRender() {
|
|
12233
|
+
unwrapReconnectedContent(this.el.querySelector('.pds-drawer-content'), '.pds-drawer-content');
|
|
12234
|
+
}
|
|
12235
|
+
render() {
|
|
12236
|
+
return (hAsync("div", { key: '432db626c93ab42365ec1af83562eec7ae1c4674', class: "pds-drawer-content" }, hAsync("slot", { key: '901ab074f31726023add709a4953bddb43842de2' })));
|
|
12237
|
+
}
|
|
12238
|
+
get el() { return getElement(this); }
|
|
12239
|
+
static get style() { return pdsDrawerContentCss(); }
|
|
12240
|
+
static get cmpMeta() { return {
|
|
12241
|
+
"$flags$": 260,
|
|
12242
|
+
"$tagName$": "pds-drawer-content",
|
|
12243
|
+
"$members$": undefined,
|
|
12244
|
+
"$listeners$": undefined,
|
|
12245
|
+
"$lazyBundleId$": "-",
|
|
12246
|
+
"$attrsToReflect$": []
|
|
12247
|
+
}; }
|
|
12248
|
+
}
|
|
12249
|
+
|
|
12250
|
+
const pdsDrawerFooterCss = () => `pds-drawer-footer{display:block;-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.pds-drawer__footer{-webkit-border-before:1px solid var(--pine-color-border-subtle);border-block-start:1px solid var(--pine-color-border-subtle);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;gap:var(--pine-dimension-sm);-ms-flex-pack:end;justify-content:flex-end;padding:var(--pine-dimension-md);width:100%}`;
|
|
12251
|
+
|
|
12252
|
+
class PdsDrawerFooter {
|
|
12253
|
+
constructor(hostRef) {
|
|
12254
|
+
registerInstance(this, hostRef);
|
|
12255
|
+
}
|
|
12256
|
+
// Unwraps a nested .pds-drawer__footer left by a page-cache (Turbo, bfcache) reconnect.
|
|
12257
|
+
componentDidRender() {
|
|
12258
|
+
unwrapReconnectedContent(this.el.querySelector('.pds-drawer__footer'), '.pds-drawer__footer');
|
|
12259
|
+
}
|
|
12260
|
+
render() {
|
|
12261
|
+
return (hAsync("footer", { key: '71cb35f7b1ccba9e4187eb8942771741f13510dc', class: "pds-drawer__footer" }, hAsync("slot", { key: '28927c76ee8194c44f416ee5d4e9ea2e0376bf5a' })));
|
|
12262
|
+
}
|
|
12263
|
+
get el() { return getElement(this); }
|
|
12264
|
+
static get style() { return pdsDrawerFooterCss(); }
|
|
12265
|
+
static get cmpMeta() { return {
|
|
12266
|
+
"$flags$": 260,
|
|
12267
|
+
"$tagName$": "pds-drawer-footer",
|
|
12268
|
+
"$members$": undefined,
|
|
12269
|
+
"$listeners$": undefined,
|
|
12270
|
+
"$lazyBundleId$": "-",
|
|
12271
|
+
"$attrsToReflect$": []
|
|
12272
|
+
}; }
|
|
12273
|
+
}
|
|
12274
|
+
|
|
12275
|
+
const pdsDrawerHeaderCss = () => `pds-drawer-header{display:block;-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.pds-drawer__header{-ms-flex-align:center;align-items:center;-webkit-border-after:1px solid var(--pine-color-border-subtle);border-block-end:1px solid var(--pine-color-border-subtle);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--pine-dimension-md);width:100%}`;
|
|
12276
|
+
|
|
12277
|
+
class PdsDrawerHeader {
|
|
12278
|
+
constructor(hostRef) {
|
|
12279
|
+
registerInstance(this, hostRef);
|
|
12280
|
+
}
|
|
12281
|
+
// Unwraps a nested .pds-drawer__header left by a page-cache (Turbo, bfcache) reconnect.
|
|
12282
|
+
componentDidRender() {
|
|
12283
|
+
unwrapReconnectedContent(this.el.querySelector('.pds-drawer__header'), '.pds-drawer__header');
|
|
12284
|
+
}
|
|
12285
|
+
render() {
|
|
12286
|
+
return (hAsync("header", { key: '48d0585e0e20c9d3142635f0fc0184c0803413b8', class: "pds-drawer__header" }, hAsync("slot", { key: '14d9d0bde0116c81892140b22a2b6e9a2b1d969f' })));
|
|
12287
|
+
}
|
|
12288
|
+
get el() { return getElement(this); }
|
|
12289
|
+
static get style() { return pdsDrawerHeaderCss(); }
|
|
12290
|
+
static get cmpMeta() { return {
|
|
12291
|
+
"$flags$": 260,
|
|
12292
|
+
"$tagName$": "pds-drawer-header",
|
|
12293
|
+
"$members$": undefined,
|
|
12294
|
+
"$listeners$": undefined,
|
|
12295
|
+
"$lazyBundleId$": "-",
|
|
12296
|
+
"$attrsToReflect$": []
|
|
12297
|
+
}; }
|
|
12298
|
+
}
|
|
12299
|
+
|
|
11973
12300
|
const pdsDropdownMenuCss = () => `:host{display:block}.is-hidden{display:none}.pds-dropdown-menu--panel{background-color:var(--pine-color-background-overlay);border-radius:var(--pine-dimension-xs);left:var(--pine-dimension-none);min-width:170px;padding:var(--pine-dimension-xs);position:fixed;z-index:var(--pine-z-index-overlay)}:host-context([data-theme=dark]) .pds-dropdown-menu--panel{border:var(--pine-border)}::slotted(a),::slotted(button){-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) !important;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pine-color-text) !important;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;font:var(--pine-typography-body-medium) !important;gap:var(--pine-dimension-xs);margin:calc(var(--pine-border-width) + 2px) !important;padding:var(--pine-dimension-xs) !important;text-align:start;text-decoration:none !important;width:calc(100% - (var(--pine-border-width) + 2px) * 2)}::slotted(.destructive){color:var(--pine-color-danger) !important}::slotted([aria-disabled=true]),::slotted([disabled]:not([disabled=false])){cursor:not-allowed;opacity:0.5;pointer-events:none}`;
|
|
11974
12301
|
|
|
11975
12302
|
/**
|
|
@@ -12279,7 +12606,7 @@ class PdsDropdownMenu {
|
|
|
12279
12606
|
}
|
|
12280
12607
|
}
|
|
12281
12608
|
render() {
|
|
12282
|
-
return (hAsync(Host, { key: '
|
|
12609
|
+
return (hAsync(Host, { key: '7907da6a04530d01bbbd0256f0b609fa53e0a774', id: this.componentId }, hAsync("slot", { key: '2bf060c4dec082d4175a7cde759221fd4b20d706', name: "trigger", onSlotchange: this.handleTriggerSlotChange }), hAsync("pds-box", { key: '0d81eddee58fda631eb6a39cba0e7ad0d69c02d8', "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: '831485d66af711edc9491078827455762795bb64', onSlotchange: this.handleSlotChange }))));
|
|
12283
12610
|
}
|
|
12284
12611
|
get host() { return getElement(this); }
|
|
12285
12612
|
static get style() { return pdsDropdownMenuCss(); }
|
|
@@ -12374,7 +12701,7 @@ class PdsDropdownMenuItem {
|
|
|
12374
12701
|
}, 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)));
|
|
12375
12702
|
}
|
|
12376
12703
|
render() {
|
|
12377
|
-
return (hAsync(Host, { key: '
|
|
12704
|
+
return (hAsync(Host, { key: '2fd3c925ba2f1ead6d0a23c44ac87449e8dad521', 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()));
|
|
12378
12705
|
}
|
|
12379
12706
|
get host() { return getElement(this); }
|
|
12380
12707
|
static get style() { return pdsDropdownMenuItemCss(); }
|
|
@@ -12410,7 +12737,7 @@ class PdsDropdownMenuSeparator {
|
|
|
12410
12737
|
this.disabled = false;
|
|
12411
12738
|
}
|
|
12412
12739
|
render() {
|
|
12413
|
-
return (hAsync(Host, { key: '
|
|
12740
|
+
return (hAsync(Host, { key: 'f55fc3b23a6ccb94a7ce865189e5d65abdd97d8c', id: this.componentId }, hAsync("hr", { key: '784a1480881a27aec69c0a2b0afd06f103912544' })));
|
|
12414
12741
|
}
|
|
12415
12742
|
static get style() { return pdsDropdownMenuSeparatorCss(); }
|
|
12416
12743
|
static get cmpMeta() { return {
|
|
@@ -12990,7 +13317,7 @@ class PdsFilter {
|
|
|
12990
13317
|
return null;
|
|
12991
13318
|
}
|
|
12992
13319
|
render() {
|
|
12993
|
-
return (hAsync(Host, { key: '
|
|
13320
|
+
return (hAsync(Host, { key: 'bd03de5e8461e3aba4d6f014e2d64d9aada0c0e1', id: this.componentId }, hAsync("button", { key: 'f35cb4aec14b1ed3b61d33c412cbfc89ba19cba3', 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: 'b3635542048ac52d290917260181d7313eddaff2', class: "pds-filter__button-content", part: "button-content" }, this.renderIcon(), this.text && (hAsync("span", { key: '0c5ef7f7655ddbee33a695703ce192f082b21bf1', class: "pds-filter__button-text", part: "button-text" }, this.text)), this.renderDropdownIcon())), this.variant !== 'clear' && (hAsync("div", { key: 'e75c75d8e9e4596d7f0642e4e1f91deae3f2b9fa', ref: el => this.popoverEl = el, id: `${this.componentId}-popover`, class: "pds-filter__popover", popover: "auto", part: "popover" }, hAsync("slot", { key: 'bef66af716be823ed3ac36d39a4532785df07f6b' })))));
|
|
12994
13321
|
}
|
|
12995
13322
|
get el() { return getElement(this); }
|
|
12996
13323
|
static get style() { return pdsFilterCss(); }
|
|
@@ -13022,7 +13349,7 @@ class PdsFilters {
|
|
|
13022
13349
|
registerInstance(this, hostRef);
|
|
13023
13350
|
}
|
|
13024
13351
|
render() {
|
|
13025
|
-
return (hAsync(Host, { key: '
|
|
13352
|
+
return (hAsync(Host, { key: '492357b36ec8ca8552f76aea6a4e4baf01ee92d5', id: this.componentId }, hAsync("div", { key: 'fbf56c5452b4b0627a95008a601ccd6ace59417c', class: "pds-filters" }, hAsync("slot", { key: 'c0e1d6b7b86ff39425d26dc75bf950283a371f71' }))));
|
|
13026
13353
|
}
|
|
13027
13354
|
static get style() { return pdsFiltersCss(); }
|
|
13028
13355
|
static get cmpMeta() { return {
|
|
@@ -13495,9 +13822,9 @@ class PdsImage {
|
|
|
13495
13822
|
this.loading = 'eager';
|
|
13496
13823
|
}
|
|
13497
13824
|
render() {
|
|
13498
|
-
return (hAsync(Host, { key: '
|
|
13825
|
+
return (hAsync(Host, { key: '0c0f463a1b616ccc485b8086a0210c5d9d2b065c', class: {
|
|
13499
13826
|
'pds-image': true,
|
|
13500
|
-
}, id: this.componentId }, hAsync("img", { key: '
|
|
13827
|
+
}, id: this.componentId }, hAsync("img", { key: '2ac4ef66ebbb39d488ce68f06b590a5fad180811', alt: this.alt, height: this.height, loading: this.loading, sizes: this.sizes, src: this.src, srcset: this.srcset, width: this.width })));
|
|
13501
13828
|
}
|
|
13502
13829
|
static get style() { return pdsImageCss(); }
|
|
13503
13830
|
static get cmpMeta() { return {
|
|
@@ -13814,10 +14141,10 @@ class PdsInput {
|
|
|
13814
14141
|
'has-prepend': this.hasPrepend,
|
|
13815
14142
|
'has-append': this.hasAppend,
|
|
13816
14143
|
};
|
|
13817
|
-
return (hAsync(Host, { key: '
|
|
14144
|
+
return (hAsync(Host, { key: 'b67b80853cbf1f1e84c3ce6d2ff7e63f480c5b8d', "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: '27a60a963cfa1a96391b55800eba27743a2527f4', class: "pds-input" }, label && (hAsync("div", { key: '3f8ce2b254feea4b6fe9ea74318f1e6c27a75927', class: {
|
|
13818
14145
|
'pds-input__label-wrapper': true,
|
|
13819
14146
|
'visually-hidden': this.hideLabel,
|
|
13820
|
-
} }, hAsync("label", { key: '
|
|
14147
|
+
} }, hAsync("label", { key: '1c290cde5a9100b11fe3059725866506d089e834', htmlFor: componentId, class: "pds-input__label" }, hAsync("span", { key: '2ebc8dafa48d6d855be5b8e1aa3bdd417d6250f3' }, label, this.required && hAsync("span", { key: '73f7d22b13739daff6aa104c140208c5b1a86d10', class: "pds-input__required-indicator" }, " *"))), !this.hideLabel && this.renderAction())), hAsync("div", { key: '4ea0b3335abbdf920ca064aa5866a060ef18c2ad', class: inputWrapperClasses }, this.renderPrepend(), this.renderPrefix(), hAsync("input", Object.assign({ key: '4acf340fdcf40968e9c46b6a240f8a9008998c11', ref: (input) => (this.nativeInput = input), class: "pds-input__field", "aria-describedby": assignDescription(componentId, invalid, helperMessage, errorMessage), "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: 'f1969fe3a5f3aba65f44fcdaddd5a12d90db7fb1', class: "pds-input__helper-message", id: messageId(componentId, 'helper') }, helperMessage)), errorMessage && (hAsync("p", { key: 'd4df1ceff95d5db7f2d927e9fcb848444570f9a2', class: "pds-input__error-message", id: messageId(componentId, 'error') }, hAsync("pds-icon", { key: 'f69182919903aab42b7641d9a0082861f551a214', "aria-hidden": "true", icon: danger, size: "small" }), errorMessage)))));
|
|
13821
14148
|
}
|
|
13822
14149
|
static get formAssociated() { return true; }
|
|
13823
14150
|
get el() { return getElement(this); }
|
|
@@ -13929,8 +14256,8 @@ class PdsLink {
|
|
|
13929
14256
|
const targetValue = this.target || (this.external ? '_blank' : undefined);
|
|
13930
14257
|
const showExternalIcon = this.external;
|
|
13931
14258
|
const relValue = targetValue === '_blank' ? 'noopener noreferrer' : undefined;
|
|
13932
|
-
return (hAsync("a", { key: '
|
|
13933
|
-
hAsync("pds-icon", { key: '
|
|
14259
|
+
return (hAsync("a", { key: '9e2d6cc4f2697bd11db4fd7ddd6f9e42ef28cf8c', class: this.classNames(), download: this.download, href: this.href, id: this.componentId, part: "link", "aria-current": this.active ? 'page' : undefined, target: targetValue, rel: relValue, style: this.setLinkStyles(), "data-turbo": this.turbo || undefined, "data-turbo-frame": this.turboFrame || undefined, "data-turbo-action": this.turboAction || undefined, "data-turbo-method": this.turboMethod || undefined, "data-turbo-confirm": this.turboConfirm || undefined, "data-turbo-stream": this.turboStream || undefined, "data-turbo-prefetch": this.turboPrefetch || undefined, "data-turbo-preload": this.turboPreload || undefined }, hAsync("slot", { key: 'f48dd74f1921400553845ea3b03720749b1a6737' }, this.href), showExternalIcon &&
|
|
14260
|
+
hAsync("pds-icon", { key: '299d4f31ec32b614fd9f4d1c19acae63ee7a9169', icon: launch, size: this.fontSize })));
|
|
13934
14261
|
}
|
|
13935
14262
|
static get style() { return pdsLinkCss(); }
|
|
13936
14263
|
static get cmpMeta() { return {
|
|
@@ -14011,7 +14338,7 @@ class PdsLoader {
|
|
|
14011
14338
|
}
|
|
14012
14339
|
}
|
|
14013
14340
|
render() {
|
|
14014
|
-
return (hAsync(Host, { key: '
|
|
14341
|
+
return (hAsync(Host, { key: 'ce5b09477f57aad1a09ce3a38b81b64f673944b2', 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: 'd193dfdaa527debff73705cef65e3d7f7a9a69ae', class: "pds-loader--spinner" }, hAsync("svg", { key: 'c881ff2ee1d5d92ac55300bd13e9d066f7a3970f', style: this.getSvgStyle(), viewBox: "0 0 200 200", fill: "none", part: "loader-svg" }, hAsync("defs", { key: '998920cdc820cc4e60df39bda5707e0b6bd5d0fe' }, hAsync("linearGradient", { key: '02028f6ac070703f8b96b1723c4d2c07670e73bb', id: "spinner-secondHalf" }, hAsync("stop", { key: 'b3120c2a597d8f646e791b1ac09a262486fb29cc', offset: "0%", "stop-opacity": "0", "stop-color": "currentColor" }), hAsync("stop", { key: '932056b587b5e3191952506d9411c68375af6620', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" })), hAsync("linearGradient", { key: '14540856cb968c220f71537c012a8c415d39af85', id: "spinner-firstHalf" }, hAsync("stop", { key: 'c94d634b1dffa0c5301b8cb2c0b6e81fdb34429e', offset: "0%", "stop-opacity": "1", "stop-color": "currentColor" }), hAsync("stop", { key: 'b6477c000c01728a60a7fd8e182f24da4b554128', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" }))), hAsync("g", { key: '810f7c7bcd8e33bd2bed70932ed174eef48ae711', class: "pds-loader__spinner-path" }, hAsync("path", { key: '4e54f348c563cca7e14790a34a58dacbda452824', stroke: "url(#spinner-secondHalf)", d: "M 4 100 A 96 96 0 0 1 196 100" }), hAsync("path", { key: '3968c60f27ec619aabc74a278026abdd94d4510f', stroke: "url(#spinner-firstHalf)", d: "M 196 100 A 96 96 0 0 1 4 100" }), hAsync("path", { key: '171fe08e0aec1f207704a0395388ccc57ea045d4', stroke: "currentColor", "stroke-linecap": "round", d: "M 4 100 A 96 96 0 0 1 4 98" }))))), this.variant === 'typing' && (hAsync("div", { key: '60cf0b871807eb49ce73d3e63f00f5914c9c9eec', class: "pds-loader--typing" }, hAsync("span", { key: 'dfbdcc1fe558803d39caa56bb57763269c061661' }), hAsync("span", { key: '0c343f36a8d71bdc07306b3c879016686da94199' }), hAsync("span", { key: 'f2a30e560ef0c9ac26c596dbaad33eeb0e4f7ff3' }))), hAsync("div", { key: '0fa18b15a3962df872fd28136caf258cd09cafdb', class: `pds-loader__label ${this.showLabel ? '' : 'pds-loader--hidden'}` }, hAsync("slot", { key: 'e8eabec0c6d24d3ad962ecee9e0ed6e0e0b4adc0', name: "label" }, "Loading..."))));
|
|
14015
14342
|
}
|
|
14016
14343
|
static get style() { return pdsLoaderCss(); }
|
|
14017
14344
|
static get cmpMeta() { return {
|
|
@@ -14029,32 +14356,6 @@ class PdsLoader {
|
|
|
14029
14356
|
}; }
|
|
14030
14357
|
}
|
|
14031
14358
|
|
|
14032
|
-
/**
|
|
14033
|
-
* Unwraps a stale copy of a light-DOM (`shadow: false`) component's own wrapper,
|
|
14034
|
-
* left behind when a page-cache (Turbo, browser bfcache) reconnect nests a
|
|
14035
|
-
* component's previous render inside its freshly rendered one. Call from
|
|
14036
|
-
* `componentDidRender` with the element that directly contains the rendered
|
|
14037
|
-
* `<slot>` and the selector that identifies "another one of me." Unwraps in
|
|
14038
|
-
* place (move-then-remove) so nested content is never lost.
|
|
14039
|
-
*
|
|
14040
|
-
* `contentSelector` is only needed when the wrapper itself further nests a
|
|
14041
|
-
* separate content element (e.g. pds-tab's `<a class="pds-tab">` wrapping a
|
|
14042
|
-
* `.pds-tab__content` div) — omit it when the wrapper's own children are the
|
|
14043
|
-
* slotted content (e.g. pds-tabpanel's `.pds-tabpanel` div).
|
|
14044
|
-
*/
|
|
14045
|
-
function unwrapReconnectedContent(container, selector, contentSelector) {
|
|
14046
|
-
var _a;
|
|
14047
|
-
if (container === null)
|
|
14048
|
-
return;
|
|
14049
|
-
let stale = container.firstElementChild;
|
|
14050
|
-
while (stale === null || stale === void 0 ? void 0 : stale.matches(selector)) {
|
|
14051
|
-
const source = contentSelector !== undefined ? ((_a = stale.querySelector(contentSelector)) !== null && _a !== void 0 ? _a : stale) : stale;
|
|
14052
|
-
Array.from(source.childNodes).forEach((node) => container.insertBefore(node, stale));
|
|
14053
|
-
stale.remove();
|
|
14054
|
-
stale = container.firstElementChild;
|
|
14055
|
-
}
|
|
14056
|
-
}
|
|
14057
|
-
|
|
14058
14359
|
const pdsModalCss = () => `.pds-modal__backdrop{-ms-flex-align:start;align-items:flex-start;background-color:rgba(0, 0, 0, 0.4);border:0;display:-ms-flexbox;display:flex;height:100%;inset:0;-ms-flex-pack:center;justify-content:center;margin:0;max-height:100%;max-width:100%;opacity:0;padding:0;position:fixed;-webkit-transition:opacity var(--pine-motion-duration-base) var(--pine-motion-easing-in), visibility var(--pine-motion-duration-base) var(--pine-motion-easing-in);transition:opacity var(--pine-motion-duration-base) var(--pine-motion-easing-in), visibility var(--pine-motion-duration-base) var(--pine-motion-easing-in);visibility:hidden;width:100%;z-index:var(--pine-z-index-modal)}@supports ((-webkit-backdrop-filter: blur(3px)) or (backdrop-filter: blur(3px))){.pds-modal__backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}}pds-modal .pds-modal__backdrop{z-index:var(--pine-z-index-priority)}.pds-modal__backdrop::-webkit-backdrop{background:transparent}.pds-modal__backdrop::-ms-backdrop{background:transparent}.pds-modal__backdrop::backdrop{background:transparent}.pds-modal__backdrop.open{opacity:1;-webkit-transition-timing-function:var(--pine-motion-easing-out);transition-timing-function:var(--pine-motion-easing-out);visibility:visible}.pds-modal{background:var(--pine-color-background-overlay);border-radius:var(--pine-dimension-sm);-webkit-box-shadow:var(--pine-box-shadow-400);box-shadow:var(--pine-box-shadow-400);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:var(--pine-dimension-md);max-height:none;width:100%}.pds-modal.pds-modal--scrollable{max-height:calc(100vh - (5vh + 96px))}@supports (height: 100dvh){.pds-modal.pds-modal--scrollable{max-height:calc(100dvh - (5dvh + 96px))}}@media (min-width: 992px){.pds-modal{-webkit-margin-before:6vh;margin-block-start:6vh}@supports (height: 100dvh){.pds-modal{-webkit-margin-before:6dvh;margin-block-start:6dvh}}}@media (min-width: 1200px){.pds-modal{-webkit-margin-before:8vh;margin-block-start:8vh}@supports (height: 100dvh){.pds-modal{-webkit-margin-before:8dvh;margin-block-start:8dvh}}}.pds-modal--sm{max-width:520px}.pds-modal--md{max-width:700px}.pds-modal--lg{max-width:900px}.pds-modal--fullscreen{border-radius:0;height:100%;margin:0;max-height:100vh;max-width:100%}@supports (height: 100dvh){.pds-modal--fullscreen{max-height:100dvh}}.pds-modal--fullscreen.pds-modal--scrollable{max-height:100vh}@supports (height: 100dvh){.pds-modal--fullscreen.pds-modal--scrollable{max-height:100dvh}}.pds-modal--fullscreen .pds-modal-content{-ms-flex:1;flex:1}.pds-modal--scrollable pds-modal-content{-webkit-border-after:1px solid transparent;border-block-end:1px solid transparent;-webkit-border-before:1px solid transparent;border-block-start:1px solid transparent;overflow-y:auto}.pds-modal:not(.pds-modal--scrollable) pds-modal-content{overflow-y:visible}`;
|
|
14059
14360
|
|
|
14060
14361
|
class PdsModal {
|
|
@@ -14093,6 +14394,19 @@ class PdsModal {
|
|
|
14093
14394
|
* @default false
|
|
14094
14395
|
*/
|
|
14095
14396
|
this.disableTopLayer = false;
|
|
14397
|
+
/**
|
|
14398
|
+
* Whether to skip moving focus into the modal when it opens — both our own
|
|
14399
|
+
* `setInitialFocus()` and the browser's native "dialog focusing steps",
|
|
14400
|
+
* which move focus into the dialog as soon as `show()`/`showModal()` is
|
|
14401
|
+
* called regardless of application code. Focus return on close is
|
|
14402
|
+
* unaffected either way. For a modal opened by something other than a
|
|
14403
|
+
* direct user click — a redirect, a deep link, a background event —
|
|
14404
|
+
* stealing focus on open can interrupt whatever the user was already
|
|
14405
|
+
* doing. Default `false` preserves today's behavior for every existing
|
|
14406
|
+
* consumer.
|
|
14407
|
+
* @default false
|
|
14408
|
+
*/
|
|
14409
|
+
this.disableInitialFocus = false;
|
|
14096
14410
|
/**
|
|
14097
14411
|
* Stores the list of focusable elements in the modal
|
|
14098
14412
|
*/
|
|
@@ -14109,16 +14423,41 @@ class PdsModal {
|
|
|
14109
14423
|
}
|
|
14110
14424
|
};
|
|
14111
14425
|
this.handleKeyDown = (e) => {
|
|
14426
|
+
var _a, _b, _c;
|
|
14112
14427
|
// If the modal is not open, don't handle any keyboard events
|
|
14113
14428
|
if (!this.open)
|
|
14114
14429
|
return;
|
|
14115
14430
|
// Handle Escape key to close the modal
|
|
14116
14431
|
if (e.key === 'Escape') {
|
|
14117
|
-
//
|
|
14118
|
-
//
|
|
14119
|
-
//
|
|
14120
|
-
|
|
14121
|
-
|
|
14432
|
+
// Every open pds-modal shares this document-level listener for the
|
|
14433
|
+
// same keydown event. Whichever one runs first can synchronously move
|
|
14434
|
+
// focus (hideModal() restores it), which would make a later instance's
|
|
14435
|
+
// own read of document.activeElement reflect that side effect instead
|
|
14436
|
+
// of where focus actually was when the key was pressed — stacking two
|
|
14437
|
+
// sibling modals closing on one Escape instead of just the top one.
|
|
14438
|
+
// That alone isn't enough, though: isStackedAboveOverlay's `:modal`
|
|
14439
|
+
// check reads LIVE top-layer state, and hideModal()'s close() clears it
|
|
14440
|
+
// synchronously — so whichever sibling's listener runs first (DOM
|
|
14441
|
+
// order, not z-index) can close itself and erase the very evidence a
|
|
14442
|
+
// later listener needs to recognize it was stacked above. Snapshot that
|
|
14443
|
+
// determination too, in the same first-listener-wins block, before any
|
|
14444
|
+
// instance has had a chance to act on this keypress.
|
|
14445
|
+
const eventSnapshot = e;
|
|
14446
|
+
if (!('__pdsActiveElementAtEscape' in eventSnapshot)) {
|
|
14447
|
+
const activeAtDispatch = document.activeElement;
|
|
14448
|
+
eventSnapshot.__pdsActiveElementAtEscape = activeAtDispatch;
|
|
14449
|
+
const topLayerDialog = (_a = activeAtDispatch === null || activeAtDispatch === void 0 ? void 0 : activeAtDispatch.closest('dialog')) !== null && _a !== void 0 ? _a : null;
|
|
14450
|
+
eventSnapshot.__pdsTopLayerDialogAtEscape = topLayerDialog;
|
|
14451
|
+
eventSnapshot.__pdsTopLayerDialogWasModalAtEscape = !!(topLayerDialog && topLayerDialog.matches(':modal'));
|
|
14452
|
+
}
|
|
14453
|
+
// Leave Escape to a genuinely stacked-above overlay (disableTopLayer's
|
|
14454
|
+
// reason for existing) — not just to anything outside this modal.
|
|
14455
|
+
const active = eventSnapshot.__pdsActiveElementAtEscape;
|
|
14456
|
+
if (this.disableTopLayer &&
|
|
14457
|
+
active &&
|
|
14458
|
+
active !== document.body &&
|
|
14459
|
+
!this.el.contains(active) &&
|
|
14460
|
+
this.isStackedAboveOverlay(active, (_b = eventSnapshot.__pdsTopLayerDialogAtEscape) !== null && _b !== void 0 ? _b : null, (_c = eventSnapshot.__pdsTopLayerDialogWasModalAtEscape) !== null && _c !== void 0 ? _c : false)) {
|
|
14122
14461
|
return;
|
|
14123
14462
|
}
|
|
14124
14463
|
// Always prevent native dialog close behavior
|
|
@@ -14166,6 +14505,16 @@ class PdsModal {
|
|
|
14166
14505
|
this.modalRef = this.el.querySelector('.pds-modal__backdrop');
|
|
14167
14506
|
// Add keyboard event listener
|
|
14168
14507
|
document.addEventListener('keydown', this.handleKeyDown);
|
|
14508
|
+
// @Watch('open') only fires on a later change, not the prop's initial
|
|
14509
|
+
// value — a modal mounted with `open` already true (static markup, or a
|
|
14510
|
+
// framework passing it on first render) would otherwise never call
|
|
14511
|
+
// show()/showModal(): the panel still appears, since that's driven by the
|
|
14512
|
+
// `open` CSS class, but the native <dialog> itself was never opened, so
|
|
14513
|
+
// there's no top-layer promotion, no dialog focusing steps, and no
|
|
14514
|
+
// focusable-elements list or previousActiveElement captured.
|
|
14515
|
+
if (this.open) {
|
|
14516
|
+
this.showModal();
|
|
14517
|
+
}
|
|
14169
14518
|
}
|
|
14170
14519
|
// Unwraps a nested dialog.pds-modal__backdrop left by a page-cache (Turbo, bfcache) reconnect.
|
|
14171
14520
|
componentDidRender() {
|
|
@@ -14271,8 +14620,39 @@ class PdsModal {
|
|
|
14271
14620
|
// Update focusable elements and set initial focus
|
|
14272
14621
|
// Using a longer timeout to ensure all components are fully rendered
|
|
14273
14622
|
setTimeout(() => {
|
|
14623
|
+
var _a, _b;
|
|
14274
14624
|
this.updateFocusableElements();
|
|
14275
|
-
this.
|
|
14625
|
+
if (this.disableInitialFocus) {
|
|
14626
|
+
// show()/showModal() also move focus into the dialog natively (the
|
|
14627
|
+
// HTML spec's "dialog focusing steps") — that native step isn't
|
|
14628
|
+
// necessarily done by the time this task runs either, so counter it
|
|
14629
|
+
// here, in the same deferred slot setInitialFocus() below uses for
|
|
14630
|
+
// the same reason, rather than racing it synchronously above.
|
|
14631
|
+
//
|
|
14632
|
+
// disableInitialFocus exists for a drawer that can open in the
|
|
14633
|
+
// background while the user is mid-task elsewhere — by the time
|
|
14634
|
+
// this runs, they may have already clicked into something of
|
|
14635
|
+
// their own outside the dialog. Only act if focus is still where
|
|
14636
|
+
// the native steps (or nothing) left it, so that isn't stolen.
|
|
14637
|
+
const activeElement = document.activeElement;
|
|
14638
|
+
const focusAlreadyClaimedElsewhere = activeElement !== null && activeElement !== document.body && !((_a = this.modalRef) === null || _a === void 0 ? void 0 : _a.contains(activeElement));
|
|
14639
|
+
if (!focusAlreadyClaimedElsewhere) {
|
|
14640
|
+
if (this.previousActiveElement !== document.body && typeof ((_b = this.previousActiveElement) === null || _b === void 0 ? void 0 : _b.focus) === 'function') {
|
|
14641
|
+
this.previousActiveElement.focus();
|
|
14642
|
+
}
|
|
14643
|
+
else if (activeElement instanceof HTMLElement) {
|
|
14644
|
+
// Nothing was focused before opening (previousActiveElement is
|
|
14645
|
+
// body), so there's nothing to restore focus to — body.focus()
|
|
14646
|
+
// would be a no-op and leave focus wherever the native focusing
|
|
14647
|
+
// steps put it, inside the dialog. Blur that instead so focus
|
|
14648
|
+
// ends up nowhere, matching the state before opening.
|
|
14649
|
+
activeElement.blur();
|
|
14650
|
+
}
|
|
14651
|
+
}
|
|
14652
|
+
}
|
|
14653
|
+
else {
|
|
14654
|
+
this.setInitialFocus();
|
|
14655
|
+
}
|
|
14276
14656
|
this.pdsModalOpen.emit();
|
|
14277
14657
|
}, 100);
|
|
14278
14658
|
}
|
|
@@ -14287,10 +14667,22 @@ class PdsModal {
|
|
|
14287
14667
|
async hideModal() {
|
|
14288
14668
|
if (this.modalRef) {
|
|
14289
14669
|
try {
|
|
14670
|
+
// Capture before close(): with the async task queue, a prop change
|
|
14671
|
+
// that triggers hideModal() (e.g. light dismiss setting `open` false
|
|
14672
|
+
// on a pointerdown elsewhere) doesn't run until the next frame — by
|
|
14673
|
+
// then the browser has already moved focus to whatever the user's
|
|
14674
|
+
// click actually landed on. Restoring previousActiveElement in that
|
|
14675
|
+
// case would steal focus back from a real new destination; only
|
|
14676
|
+
// restore it when focus is still inside the modal (or nowhere, i.e.
|
|
14677
|
+
// document.body), meaning nothing else has claimed it since.
|
|
14678
|
+
const activeElement = document.activeElement;
|
|
14679
|
+
const focusAlreadyMovedElsewhere = activeElement !== null && activeElement !== document.body && !this.modalRef.contains(activeElement);
|
|
14290
14680
|
this.modalRef.close();
|
|
14291
14681
|
this.open = false;
|
|
14292
14682
|
// Restore focus to the element that was focused before the modal was opened
|
|
14293
|
-
if (
|
|
14683
|
+
if (!focusAlreadyMovedElsewhere &&
|
|
14684
|
+
this.previousActiveElement &&
|
|
14685
|
+
typeof this.previousActiveElement.focus === 'function') {
|
|
14294
14686
|
this.previousActiveElement.focus();
|
|
14295
14687
|
}
|
|
14296
14688
|
this.pdsModalClose.emit();
|
|
@@ -14307,6 +14699,46 @@ class PdsModal {
|
|
|
14307
14699
|
const backdrop = modal.querySelector('.pds-modal__backdrop');
|
|
14308
14700
|
return backdrop ? parseInt(getComputedStyle(backdrop).zIndex, 10) : -1;
|
|
14309
14701
|
}
|
|
14702
|
+
/**
|
|
14703
|
+
* Whether `active` sits inside a surface actually stacked above this modal.
|
|
14704
|
+
*
|
|
14705
|
+
* Used to decide whether an Escape keypress belongs to that surface instead
|
|
14706
|
+
* of this modal. Focus being merely *outside* this modal is not enough on
|
|
14707
|
+
* its own: in `disableTopLayer` mode the page stays interactive (that's the
|
|
14708
|
+
* point of a non-modal usage like a drawer), so focus will routinely be on
|
|
14709
|
+
* ordinary page content while the modal is open, and that must not be
|
|
14710
|
+
* mistaken for "an overlay owns Escape."
|
|
14711
|
+
*
|
|
14712
|
+
* Two ways a surface can be above: it is itself promoted to the browser's
|
|
14713
|
+
* top layer (a regular `showModal()` dialog, which paints above everything
|
|
14714
|
+
* outside the top layer regardless of z-index — a sibling pds-modal opened
|
|
14715
|
+
* over a `disableTopLayer` drawer typically shares the exact same z-index
|
|
14716
|
+
* token, so a numeric comparison alone would miss it), or it has a higher
|
|
14717
|
+
* z-index than this modal's own backdrop (a `disableTopLayer` overlay, or
|
|
14718
|
+
* anything else deliberately raised above it).
|
|
14719
|
+
*
|
|
14720
|
+
* `topLayerDialog` / `topLayerDialogWasModal` come pre-snapshotted from the
|
|
14721
|
+
* keydown event (see handleKeyDown) rather than being re-derived here: by
|
|
14722
|
+
* the time a later sibling modal's listener runs, an earlier one may have
|
|
14723
|
+
* already closed itself, which clears `:modal` — reading it live here would
|
|
14724
|
+
* lose that evidence depending on listener order.
|
|
14725
|
+
*/
|
|
14726
|
+
isStackedAboveOverlay(active, topLayerDialog, topLayerDialogWasModal) {
|
|
14727
|
+
if (topLayerDialog && topLayerDialog !== this.modalRef && topLayerDialogWasModal) {
|
|
14728
|
+
return true;
|
|
14729
|
+
}
|
|
14730
|
+
const ownZIndex = this.getBackdropZIndex(this.el);
|
|
14731
|
+
let node = active;
|
|
14732
|
+
while (node && node !== document.body) {
|
|
14733
|
+
const style = getComputedStyle(node);
|
|
14734
|
+
const zIndex = parseInt(style.zIndex, 10);
|
|
14735
|
+
if (style.position !== 'static' && !isNaN(zIndex) && zIndex > ownZIndex) {
|
|
14736
|
+
return true;
|
|
14737
|
+
}
|
|
14738
|
+
node = node.parentElement;
|
|
14739
|
+
}
|
|
14740
|
+
return false;
|
|
14741
|
+
}
|
|
14310
14742
|
/**
|
|
14311
14743
|
* Checks if this modal is the innermost (highest z-index) modal
|
|
14312
14744
|
*/
|
|
@@ -14328,14 +14760,14 @@ class PdsModal {
|
|
|
14328
14760
|
return thisZIndex === maxZIndex;
|
|
14329
14761
|
}
|
|
14330
14762
|
render() {
|
|
14331
|
-
return (hAsync("dialog", { key: '
|
|
14763
|
+
return (hAsync("dialog", { key: 'f35044ec9bca1189069faf083c824d8144800053', class: {
|
|
14332
14764
|
'pds-modal__backdrop': true,
|
|
14333
14765
|
'open': this.open
|
|
14334
|
-
}, "aria-modal": this.disableTopLayer ? 'false' : 'true', "aria-labelledby": `${this.componentId}-heading`, onClick: this.handleBackdropClick }, hAsync("div", { key: '
|
|
14766
|
+
}, "aria-modal": this.disableTopLayer ? 'false' : 'true', "aria-labelledby": `${this.componentId}-heading`, onClick: this.handleBackdropClick }, hAsync("div", { key: '99a53b36e160ac14dfd6d598aeaa94114855dacc', class: {
|
|
14335
14767
|
'pds-modal': true,
|
|
14336
14768
|
[`pds-modal--${this.size}`]: true,
|
|
14337
14769
|
'pds-modal--scrollable': this.scrollable
|
|
14338
|
-
}, part: "modal" }, hAsync("slot", { key: '
|
|
14770
|
+
}, part: "modal" }, hAsync("slot", { key: 'cfee7bdf3620d606b1d3130f4ebed4caa83084f1' }))));
|
|
14339
14771
|
}
|
|
14340
14772
|
get el() { return getElement(this); }
|
|
14341
14773
|
static get watchers() { return {
|
|
@@ -14354,6 +14786,7 @@ class PdsModal {
|
|
|
14354
14786
|
"size": [1],
|
|
14355
14787
|
"scrollable": [4],
|
|
14356
14788
|
"disableTopLayer": [4, "disable-top-layer"],
|
|
14789
|
+
"disableInitialFocus": [4, "disable-initial-focus"],
|
|
14357
14790
|
"focusableElementsArray": [32],
|
|
14358
14791
|
"showModal": [64],
|
|
14359
14792
|
"hideModal": [64]
|
|
@@ -14545,10 +14978,10 @@ class PdsModalContent {
|
|
|
14545
14978
|
render() {
|
|
14546
14979
|
// Only apply max-height style if it's not 'none'
|
|
14547
14980
|
const styleObj = this.contentMaxHeight !== 'none' ? { maxHeight: this.contentMaxHeight } : {};
|
|
14548
|
-
return (hAsync(Host, { key: '
|
|
14981
|
+
return (hAsync(Host, { key: '7bd0f26425c71e4551ae21e38d57d2124dabfc50' }, hAsync("div", { key: '120e6947e734e44883af975991781f338acd7dbc', class: {
|
|
14549
14982
|
'pds-modal-content': true,
|
|
14550
14983
|
[`pds-modal-content--border-${this.border}`]: true
|
|
14551
|
-
}, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: '
|
|
14984
|
+
}, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: '6f2c8d44a69df8ecc1214e00604023274cee2790' }))));
|
|
14552
14985
|
}
|
|
14553
14986
|
get el() { return getElement(this); }
|
|
14554
14987
|
static get style() { return pdsModalContentCss(); }
|
|
@@ -14576,7 +15009,7 @@ class PdsModalFooter {
|
|
|
14576
15009
|
unwrapReconnectedContent(this.el.querySelector('.pds-modal__footer'), '.pds-modal__footer');
|
|
14577
15010
|
}
|
|
14578
15011
|
render() {
|
|
14579
|
-
return (hAsync("footer", { key: '
|
|
15012
|
+
return (hAsync("footer", { key: 'f344716ed1fbd77b447e10c9b78565918dc17be0', class: "pds-modal__footer" }, hAsync("slot", { key: 'ba85cf6f7f56c8f8a8ff6d24c5fa647722140fda' })));
|
|
14580
15013
|
}
|
|
14581
15014
|
get el() { return getElement(this); }
|
|
14582
15015
|
static get style() { return pdsModalFooterCss(); }
|
|
@@ -14601,7 +15034,7 @@ class PdsModalHeader {
|
|
|
14601
15034
|
unwrapReconnectedContent(this.el.querySelector('.pds-modal__header'), '.pds-modal__header');
|
|
14602
15035
|
}
|
|
14603
15036
|
render() {
|
|
14604
|
-
return (hAsync("header", { key: '
|
|
15037
|
+
return (hAsync("header", { key: '0490ac7854089dad4666e2a6509ae730f805f97f', class: "pds-modal__header" }, hAsync("slot", { key: 'b76e5a970d3f17411b9e9e5debd981298f2290d1' })));
|
|
14605
15038
|
}
|
|
14606
15039
|
get el() { return getElement(this); }
|
|
14607
15040
|
static get style() { return pdsModalHeaderCss(); }
|
|
@@ -15700,10 +16133,10 @@ class PdsMultiselect {
|
|
|
15700
16133
|
}
|
|
15701
16134
|
render() {
|
|
15702
16135
|
const hasSelections = this.selectedItems.length > 0;
|
|
15703
|
-
return (hAsync(Host, { key: '
|
|
16136
|
+
return (hAsync(Host, { key: '5d4de9ca729d5bfb63a8a73f8f40328b9ab48f57', "aria-disabled": this.disabled ? 'true' : null }, hAsync("div", { key: '2b5e1e01caaa4a6540a67e2638a20072e9f706cb', class: "pds-multiselect", onFocusout: this.handleContainerFocusOut }, this.label && (hAsync("label", { key: 'f23b840feb4e243d90b3a9913dab1b238e7c497d', id: `${this.componentId}-label`, htmlFor: this.componentId, class: {
|
|
15704
16137
|
'pds-multiselect__label': true,
|
|
15705
16138
|
'visually-hidden': this.hideLabel,
|
|
15706
|
-
} }, this.label)), hAsync("div", { key: '
|
|
16139
|
+
} }, this.label)), hAsync("div", { key: '2e1f89d6f06332e957858c0eea34fca1a9629921', 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: {
|
|
15707
16140
|
'pds-multiselect__trigger': true,
|
|
15708
16141
|
'pds-multiselect__trigger--open': this.isOpen,
|
|
15709
16142
|
'pds-multiselect__trigger--disabled': this.disabled,
|
|
@@ -15719,7 +16152,7 @@ class PdsMultiselect {
|
|
|
15719
16152
|
}, 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.helperMessage, this.errorMessage), "aria-invalid": this.invalid || !!this.errorMessage ? 'true' : undefined, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hAsync("span", { class: {
|
|
15720
16153
|
'pds-multiselect__trigger-text': true,
|
|
15721
16154
|
'pds-multiselect__trigger-text--placeholder': !hasSelections || (this.selectedDisplay === 'pill' && this.pillPosition === 'below'),
|
|
15722
|
-
} }, this.getTriggerText()), hAsync("pds-icon", { class: "pds-multiselect__icon", icon: enlarge }))), this.renderDropdown()), this.selectedDisplay === 'pill' && this.pillPosition === 'below' && this.renderBelowPills(), hAsync("span", { key: '
|
|
16155
|
+
} }, this.getTriggerText()), hAsync("pds-icon", { class: "pds-multiselect__icon", icon: enlarge }))), this.renderDropdown()), this.selectedDisplay === 'pill' && this.pillPosition === 'below' && this.renderBelowPills(), hAsync("span", { key: '3d2e201157ce16abbcd12fa9254ced7f2b562a8f', class: "visually-hidden", "aria-live": "polite", "aria-atomic": "true" }, this.removalAnnouncement), this.helperMessage && !(this.errorMessage && this.errorMessage.length > 0) && (hAsync("p", { key: '3bbf405df2e72ae730529f28273b003b3332e980', class: "pds-multiselect__helper", id: messageId(this.componentId, 'helper') }, this.helperMessage)), this.errorMessage && (hAsync("p", { key: 'ef4a27162b00b14c3c9dfcb695f311961f2f56e5', class: "pds-multiselect__error", id: messageId(this.componentId, 'error') }, hAsync("pds-icon", { key: '99fb12375e2d660018276091bf8014b9bc9a672e', icon: danger, size: "small" }), this.errorMessage)), hAsync("div", { key: '8fc6369015e8d04d1dec582007733eb5db6776f5', style: { display: 'none' } }, hAsync("slot", { key: 'a808ecb0f4b2c00fca478cda5c0054c6aba29a8d' })))));
|
|
15723
16156
|
}
|
|
15724
16157
|
static get formAssociated() { return true; }
|
|
15725
16158
|
get el() { return getElement(this); }
|
|
@@ -16363,7 +16796,7 @@ class PdsPopover {
|
|
|
16363
16796
|
}, 16); // ~1 frame at 60fps
|
|
16364
16797
|
}
|
|
16365
16798
|
render() {
|
|
16366
|
-
return (hAsync(Host, { key: '
|
|
16799
|
+
return (hAsync(Host, { key: '760428c178ed92dfc35293181b7cef8fac3b4e26', id: this.componentId }, hAsync("span", { key: 'd12a6a33dcf0fe6f3b61972ae8e5ac604263b2ac', class: "pds-popover__trigger-wrapper" }, hAsync("slot", { key: 'd975e355a3acb9bc6d95202ec177f631bddb43bf', name: "trigger", onSlotchange: this.handleTriggerSlotChange })), hAsync("div", { key: 'f99ae2d97c75ed8ec63fbd0a859f8b7b9f78f0d2', class: "pds-popover__content-slot-wrapper" }, hAsync("slot", { key: 'd1620c57d993496045fc3c47b55cdd0c1d07b36c', onSlotchange: this.handleContentSlotChange }))));
|
|
16367
16800
|
}
|
|
16368
16801
|
get el() { return getElement(this); }
|
|
16369
16802
|
static get style() { return pdsPopoverCss(); }
|
|
@@ -16413,7 +16846,7 @@ class PdsProgress {
|
|
|
16413
16846
|
this.showPercent = false;
|
|
16414
16847
|
}
|
|
16415
16848
|
render() {
|
|
16416
|
-
return (hAsync(Host, { key: '
|
|
16849
|
+
return (hAsync(Host, { key: '0ae02615ceeb094270d4d385d27dc1e539984e88', class: this.animated ? { 'is-animated': this.animated } : '' }, hAsync("div", { key: '8da2f2a5b260cb19cda3021cc9289bde18fff9fc', class: "pds-progress" }, hAsync("label", { key: 'a84106244fafed602c1f14b63d83b16f123732f4', class: "pds-progress__label", htmlFor: this.componentId }, this.label), hAsync("progress", { key: '82fb1a46fb2e7c89d5b4ed4e8e3efa590c896d0d', id: this.componentId, max: "100", style: this.fillColor ? { '--color-progress-fill': this.fillColor } : {}, value: this.percent })), this.showPercent && hAsync("div", { key: '36d041d1c5e656ac0864999200f48e15e53aa3f3', class: "pds-progress__percentage" }, this.percent, "%")));
|
|
16417
16850
|
}
|
|
16418
16851
|
static get style() { return pdsProgressCss(); }
|
|
16419
16852
|
static get cmpMeta() { return {
|
|
@@ -16447,7 +16880,7 @@ class PdsProperty {
|
|
|
16447
16880
|
this.icon = 'star';
|
|
16448
16881
|
}
|
|
16449
16882
|
render() {
|
|
16450
|
-
return (hAsync(Host, { key: '
|
|
16883
|
+
return (hAsync(Host, { key: '1ce4509363c6c40c76d7d6c17335721b348abf04', id: this.componentId }, hAsync("pds-box", { key: '8c6f5dd171e0383640aa550ccbe1b20e74de5b07', "align-items": "center", gap: "xs" }, hAsync("pds-icon", { key: '31c19e7ff0c466f2fe54ad2d2366929311f01364', icon: this.icon, size: "var(--pine-dimension-sm)", "aria-hidden": "true" }), hAsync("slot", { key: 'b5ddb877ef6f3239992a892c7990bbd4fcfa77ae' }))));
|
|
16451
16884
|
}
|
|
16452
16885
|
static get style() { return pdsPropertyCss(); }
|
|
16453
16886
|
static get cmpMeta() { return {
|
|
@@ -16560,11 +16993,11 @@ class PdsRadio {
|
|
|
16560
16993
|
}
|
|
16561
16994
|
render() {
|
|
16562
16995
|
const renderLabelAndMessages = () => [
|
|
16563
|
-
hAsync("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, hAsync("input", { key: '
|
|
16996
|
+
hAsync("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, hAsync("input", { key: 'faa2d815e03f6b05108af0e7934101b2d5f71c59', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage, this.errorMessage), "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: '22df3067667a7815e03dca45e4ef49d0e1caadcc', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)),
|
|
16564
16997
|
this.helperMessage && (hAsync("div", { key: `${this.componentId}-helper`, class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage)),
|
|
16565
|
-
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: '
|
|
16998
|
+
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: '6dac17ccd12d558d3b25ffb77c55d160a619d6ab', icon: danger, size: "small" }), this.errorMessage))
|
|
16566
16999
|
];
|
|
16567
|
-
return (hAsync(Host, { key: '
|
|
17000
|
+
return (hAsync(Host, { key: 'b464057b9e8d5de710183803c7d5e825316b3c3b', class: this.classNames() }, this.hasImage() && (hAsync("div", { key: '692b2681221596cdf4bf6a21574edb2373d5127b', class: "pds-radio__image-container", part: "image-container" }, hAsync("slot", { key: 'd68951b5b671863d582ad1a98543a51832966b36', name: "image", onSlotchange: () => (this._hasImage = this.hasImageSlot()) }))), this.hasImage() ? (hAsync("div", { class: "pds-radio__content-wrapper" }, renderLabelAndMessages())) : (renderLabelAndMessages())));
|
|
16568
17001
|
}
|
|
16569
17002
|
get el() { return getElement(this); }
|
|
16570
17003
|
static get style() { return labelCss$3() + pdsRadioCss(); }
|
|
@@ -16755,13 +17188,13 @@ class PdsRadioGroup {
|
|
|
16755
17188
|
render() {
|
|
16756
17189
|
const gapValue = this.getGapValue();
|
|
16757
17190
|
const ariaDescribedBy = this.getAriaDescribedBy();
|
|
16758
|
-
return (hAsync(Host, { key: '
|
|
17191
|
+
return (hAsync(Host, { key: '048d4676df7c31a9ab08e4d4fc2b93866c1241fd', class: this.classNames(), id: this._groupId, role: "group", "aria-describedby": ariaDescribedBy, style: {
|
|
16759
17192
|
'--pds-radio-group-gap': gapValue,
|
|
16760
|
-
} }, this.groupLabel && (hAsync("div", { key: '
|
|
17193
|
+
} }, this.groupLabel && (hAsync("div", { key: '414363733d6053517bb63888fb9813af6554d4df', class: "pds-radio-group__label" }, this.groupLabel)), hAsync("div", { key: 'd368dc474bf76f5cf7d633e59f929060fbf60b83', class: {
|
|
16761
17194
|
'pds-radio-group__radios': true,
|
|
16762
17195
|
'pds-radio-group__radios--row': this.direction === 'row',
|
|
16763
17196
|
'pds-radio-group__radios--column': this.direction === 'column',
|
|
16764
|
-
} }, hAsync("slot", { key: '
|
|
17197
|
+
} }, hAsync("slot", { key: '210e1ba8d276c2832017ea7bf3d03348aa46106a', onSlotchange: () => this.updateChildRadios() })), this.helperMessage && (hAsync("div", { key: '06015935856640afdcddfcd8833a3a0659c58698', class: "pds-radio-group__message", id: messageId(this._groupId, 'helper') }, this.helperMessage)), this.errorMessage && (hAsync("div", { key: '44256d9a050feda9651f90093a298a12d9e97250', class: "pds-radio-group__message pds-radio-group__message--error", id: messageId(this._groupId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: '2b3aa1ffaa0f6a3ad0ce83d2becfcfdcc2f56fbc', icon: danger, size: "small" }), this.errorMessage))));
|
|
16765
17198
|
}
|
|
16766
17199
|
get el() { return getElement(this); }
|
|
16767
17200
|
static get watchers() { return {
|
|
@@ -16859,7 +17292,7 @@ class PdsRow {
|
|
|
16859
17292
|
})), (this.minHeight && {
|
|
16860
17293
|
'min-height': this.minHeight,
|
|
16861
17294
|
}));
|
|
16862
|
-
return hAsync(Host, { key: '
|
|
17295
|
+
return hAsync(Host, { key: '556bb00908d60df442b1fae17e28e54353f85f20', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
|
|
16863
17296
|
}
|
|
16864
17297
|
static get style() { return pdsRowCss(); }
|
|
16865
17298
|
static get cmpMeta() { return {
|
|
@@ -17119,7 +17552,7 @@ class PdsSelect {
|
|
|
17119
17552
|
}
|
|
17120
17553
|
render() {
|
|
17121
17554
|
const hasAction = this.el.querySelector('[slot="action"]') !== null;
|
|
17122
|
-
return (hAsync(Host, { key: '
|
|
17555
|
+
return (hAsync(Host, { key: '6b240f3f91bcbdc52f019b0b6c57afda91abcbc9', "aria-disabled": this.disabled ? 'true' : null, class: this.classNames(), "has-action": hasAction && !this.hideLabel ? 'true' : null }, hAsync("div", { key: '5bcacb3b861b69d4b2a16b917bad3d7c356eab13', class: "pds-select" }, !this.hideLabel && (hAsync("div", { key: '4707b7b50a9e3144316f6c3e8b78767aee56553e', class: "pds-select__label-wrapper" }, hAsync("label", { key: '89992c65158f26fef606b4f613baf139e9fe17c8', htmlFor: this.componentId }, hAsync("span", { key: '8f05323646aca793a80310515b1cc6e0e8597736', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), hasAction && this.renderAction())), hAsync("select", { key: '8381fe48cce4c6ec32ae2c0dd16bc3e188fbfda0', "aria-describedby": assignDescription(this.componentId, this.isInvalid(), this.helperMessage, this.errorMessage), "aria-invalid": this.isInvalid() ? 'true' : undefined, "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: 'c05f059e3c4e21d304ac1da08613d2b2d84aa342', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, hAsync("slot", { key: 'b52f06405693803c0d2309e97f2611598cac7b70', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && hAsync("pds-icon", { key: 'e1e7af5249a928402a3c5dfe418f695b4e1fa7d4', "aria-hidden": "true", class: "pds-select__select-icon", icon: enlarge }))));
|
|
17123
17556
|
}
|
|
17124
17557
|
static get formAssociated() { return true; }
|
|
17125
17558
|
get el() { return getElement(this); }
|
|
@@ -19866,7 +20299,7 @@ class PdsSortable {
|
|
|
19866
20299
|
this.sortableInstance = Sortable.create(this.el, sortableOptions);
|
|
19867
20300
|
}
|
|
19868
20301
|
render() {
|
|
19869
|
-
return (hAsync(Host, { key: '
|
|
20302
|
+
return (hAsync(Host, { key: '235879c63aa8e55ea819fd3bcdb30ef56dd2c0b3', class: this.classNames(), id: this.componentId }, hAsync("slot", { key: '28cb6ef1a3b1f7de15f1f2728ffa625c879890dc' })));
|
|
19870
20303
|
}
|
|
19871
20304
|
get el() { return getElement(this); }
|
|
19872
20305
|
static get watchers() { return {
|
|
@@ -19932,7 +20365,7 @@ class PdsSortableItem {
|
|
|
19932
20365
|
}
|
|
19933
20366
|
}
|
|
19934
20367
|
render() {
|
|
19935
|
-
return (hAsync(Host, { key: '
|
|
20368
|
+
return (hAsync(Host, { key: '07dcd36e87b8fcfae7ff5f33a7bd8d44322fcbb3', class: "pds-sortable-item", id: this.componentId }, this.showHandle && (hAsync("div", { key: 'cb2de083316c50beb63d700288c9091d01a99240', class: "pds-sortable-item__handle" }, hAsync("pds-icon", { key: '90906fe69419f1a240aa976e7024872577d00bd3', "aria-hidden": "true", icon: handle }))), hAsync("slot", { key: 'a6969eb7d575919db12f98e3fc5d82708128be8e' }), this.enableActions && (hAsync("div", { key: '5688ea0ead3c2adba9e21a7fa327adc6fdbc71b1', class: "pds-sortable-item__actions" }, hAsync("slot", { key: 'f62b4ecf0c92edae854e9b3ca5e9da6a5051f77d', name: "sortable-item-actions" })))));
|
|
19936
20369
|
}
|
|
19937
20370
|
get el() { return getElement(this); }
|
|
19938
20371
|
static get style() { return pdsSortableItemCss(); }
|
|
@@ -19952,7 +20385,7 @@ class PdsSortableItem {
|
|
|
19952
20385
|
|
|
19953
20386
|
const labelCss$1 = () => `:host{display:inline-block}:host([aria-disabled=true]) label{color:var(--pine-color-text-label-disabled)}:host([aria-readonly=true]) label{color:var(--pine-color-text-label-readonly)}label{color:var(--pine-color-text-label);font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}`;
|
|
19954
20387
|
|
|
19955
|
-
const pdsSwitchCss = () => `:host{--sizing-input-toggle-size:calc(var(--pine-dimension-250) - (var(--pine-dimension-025) * 2));--pine-dimension-025:2px;--spacing-message-inline:calc(var(--pine-dimension-450) + var(--pine-dimension-150));--number-transition-timing:
|
|
20388
|
+
const pdsSwitchCss = () => `:host{--sizing-input-toggle-size:calc(var(--pine-dimension-250) - (var(--pine-dimension-025) * 2));--pine-dimension-025:2px;--spacing-message-inline:calc(var(--pine-dimension-450) + var(--pine-dimension-150));--number-transition-timing:var(--pine-motion-duration-fast) ease-out;-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-flow:row wrap;flex-flow:row wrap;position:relative}:host(.pds-switch--error){color:var(--pine-color-text-message-danger)}:host(.pds-switch--error) input,:host(.pds-switch--error) input:checked,:host(.pds-switch--error) input:hover:not(:disabled):not(:checked){background-color:var(--pine-color-danger)}:host(.pds-switch--error) input:focus-visible:not(:disabled):not(:checked){outline-color:var(--pine-color-focus-ring-danger)}:host(.pds-switch--error) label{color:var(--color-text-error)}input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--pine-color-neutral);border:0;border-radius:var(--pine-dimension-sm);cursor:pointer;display:inline-block;-ms-flex-negative:0;flex-shrink:0;height:var(--pine-dimension-250);margin:0;padding:0;position:relative;-webkit-transition:var(--number-transition-timing);transition:var(--number-transition-timing);-webkit-transition-property:background, border, color;transition-property:background, border, color;width:var(--pine-dimension-450)}input::after{background:var(--pine-color-secondary);border-radius:var(--pine-border-radius-full);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);content:"";display:block;height:var(--sizing-input-toggle-size);inset-block-start:50%;inset-inline-start:var(--pine-dimension-025);position:absolute;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:inset-inline-start var(--number-transition-timing);transition:inset-inline-start var(--number-transition-timing);width:var(--sizing-input-toggle-size)}label{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-150)}.pds-switch--error label{color:inherit}.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}.pds-switch__message{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm-medium);-webkit-margin-before:var(--pine-dimension-xs);margin-block-start:var(--pine-dimension-xs);-webkit-margin-start:var(--spacing-message-inline);margin-inline-start:var(--spacing-message-inline);width:100%}.pds-switch__message+.pds-switch__message{-webkit-margin-before:var(--spacing-message-inline);margin-block-start:var(--spacing-message-inline)}.pds-switch__message--error{color:inherit;display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-switch__message--error pds-icon{-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}input:disabled{background-color:var(--pine-color-neutral-disabled);cursor:not-allowed}input:disabled~label{cursor:initial}input:disabled:hover::after{background-color:var(--pine-color-secondary)}input:disabled .pds-switch__message{color:initial}input:hover:not(:disabled){background-color:var(--pine-color-neutral-hover)}input:focus-visible:not(:disabled){outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}input:checked::after{inset-inline-start:calc(100% - var(--sizing-input-toggle-size) - var(--pine-dimension-025))}input:checked:not(:disabled){background-color:currentColor;color:var(--pine-color-accent)}input:checked:not(:disabled):hover{border-color:currentColor;color:var(--pine-color-accent-hover)}`;
|
|
19956
20389
|
|
|
19957
20390
|
class PdsSwitch {
|
|
19958
20391
|
constructor(hostRef) {
|
|
@@ -20036,9 +20469,9 @@ class PdsSwitch {
|
|
|
20036
20469
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
20037
20470
|
}
|
|
20038
20471
|
render() {
|
|
20039
|
-
return (hAsync(Host, { key: '
|
|
20040
|
-
hAsync("div", { key: '
|
|
20041
|
-
hAsync("div", { key: '
|
|
20472
|
+
return (hAsync(Host, { key: '0f7a97cc04485d5ead92f1d9e1deff176bef7859', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, hAsync("label", { key: 'bb8d0849e8ac5fd63d83f30d892bb195c7ed984c', htmlFor: this.componentId }, hAsync("input", Object.assign({ key: 'd4f1c469ed61e5511fb4fef2b587b7320b7b8d10', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage, this.errorMessage), "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: 'a902c71c77d143e5930f18ab3f37d3442d9190e3', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), this.helperMessage &&
|
|
20473
|
+
hAsync("div", { key: '3802a9cc1068caa4955634be3c728f283dedab16', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
20474
|
+
hAsync("div", { key: 'be0d4094af7f9c59be32faf42aed585ec92fd730', class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: 'f0f342b703fc5db7a4b03891ed5101e0ebcde47e', icon: danger, size: "small" }), this.errorMessage)));
|
|
20042
20475
|
}
|
|
20043
20476
|
static get formAssociated() { return true; }
|
|
20044
20477
|
get el() { return getElement(this); }
|
|
@@ -20448,7 +20881,7 @@ class PdsTableBody {
|
|
|
20448
20881
|
registerInstance(this, hostRef);
|
|
20449
20882
|
}
|
|
20450
20883
|
render() {
|
|
20451
|
-
return (hAsync(Host, { key: '
|
|
20884
|
+
return (hAsync(Host, { key: '38b6b6121a4652e5b98f2ff22721e687ae401437', role: "rowgroup", part: "body" }, hAsync("slot", { key: '7ce84ac64307b9e19a8b4b72efe3e8eab34f99bf' })));
|
|
20452
20885
|
}
|
|
20453
20886
|
static get style() { return pdsTableBodyCss(); }
|
|
20454
20887
|
static get cmpMeta() { return {
|
|
@@ -20586,11 +21019,11 @@ class PdsTableCell {
|
|
|
20586
21019
|
return classNames.join(' ');
|
|
20587
21020
|
}
|
|
20588
21021
|
render() {
|
|
20589
|
-
return (hAsync(Host, { key: '
|
|
21022
|
+
return (hAsync(Host, { key: '1c37f341c8171d322d60647b25bfa92fdd9ea339', class: this.classNames(), role: "gridcell", part: "cell", style: this.tableRef &&
|
|
20590
21023
|
this.tableRef.fixedColumn &&
|
|
20591
21024
|
this.tableRef.selectable
|
|
20592
21025
|
? { '--fixed-cell-position': '40px' }
|
|
20593
|
-
: {} }, hAsync("slot", { key: '
|
|
21026
|
+
: {} }, hAsync("slot", { key: '339b2217df131c58d76258f581a53c0bd46cbd03' })));
|
|
20594
21027
|
}
|
|
20595
21028
|
get hostElement() { return getElement(this); }
|
|
20596
21029
|
static get watchers() { return {
|
|
@@ -20667,7 +21100,7 @@ class PdsTableHead {
|
|
|
20667
21100
|
}
|
|
20668
21101
|
}
|
|
20669
21102
|
render() {
|
|
20670
|
-
return (hAsync(Host, { key: '
|
|
21103
|
+
return (hAsync(Host, { key: '5815389e77b61a323dd4430625b0917a7428bf02', role: "row", part: "head" }, this.tableRef && this.tableRef.selectable && (hAsync("pds-table-head-cell", { key: '161fdced5a7c7cd13a62fb7c1ed96e82ad2dbfd0', part: this.tableRef.selectable ? 'checkbox-cell' : '' }, !this.tableRef.disableSelectAll && (hAsync("pds-checkbox", { key: 'd6e90d844d314ef347ffb4db8b360ba36887c311', 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: '1dd5dd37d4fca230000a6eb4b96fee87e4e67802' })));
|
|
20671
21104
|
}
|
|
20672
21105
|
get hostElement() { return getElement(this); }
|
|
20673
21106
|
static get style() { return pdsTableHeadCss(); }
|
|
@@ -20888,11 +21321,11 @@ class PdsTableHeadCell {
|
|
|
20888
21321
|
return classNames.join(' ');
|
|
20889
21322
|
}
|
|
20890
21323
|
render() {
|
|
20891
|
-
return (hAsync(Host, { key: '
|
|
21324
|
+
return (hAsync(Host, { key: 'c30192a432bbd8868326fc7ed4199b98a33991ff', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, part: "head-cell", style: this.tableRef &&
|
|
20892
21325
|
this.tableRef.fixedColumn &&
|
|
20893
21326
|
this.tableRef.selectable
|
|
20894
21327
|
? { '--fixed-cell-position': '40px' }
|
|
20895
|
-
: {} }, hAsync("slot", { key: '
|
|
21328
|
+
: {} }, hAsync("slot", { key: 'e725a7e576f6bc56d385c8cb0822ce255544fbcb' }), this.sortable && this.isActive && (hAsync("pds-icon", { key: '52068d114bfadcd6d4e02c86e703349bc7833716', icon: this.sortingDirection === 'asc' ? upSmall : downSmall, part: "sort-icon" }))));
|
|
20896
21329
|
}
|
|
20897
21330
|
get hostElement() { return getElement(this); }
|
|
20898
21331
|
static get style() { return pdsTableHeadCellCss(); }
|
|
@@ -21058,7 +21491,7 @@ class PdsTableRow {
|
|
|
21058
21491
|
}
|
|
21059
21492
|
}
|
|
21060
21493
|
render() {
|
|
21061
|
-
return (hAsync(Host, { key: '
|
|
21494
|
+
return (hAsync(Host, { key: '4188f670137051d35cf73a5ca86566f65c3eca09', class: this.classNames(), role: "row", part: "row" }, this.tableRef && this.tableRef.selectable && (hAsync("pds-table-cell", { key: '122ff6ec96ea4857b863f9283bd46946dc403bff', part: this.tableRef.fixedColumn ? 'checkbox-cell' : 'checkbox-cell', class: this.tableRef.selectable ? 'has-checkbox' : '' }, hAsync("pds-checkbox", { key: '9997b31c86190fe8f25ba4d1b42b8753facbba70', componentId: this.generateUniqueId(), onPdsCheckboxChange: this.handleCheckboxChange, indeterminate: this.indeterminate, label: "Select Row", hideLabel: true, checked: this.isSelected, part: "row-checkbox" }))), hAsync("slot", { key: 'f9bc0700386b11a35f78d639118351675ab7150d' })));
|
|
21062
21495
|
}
|
|
21063
21496
|
get hostElement() { return getElement(this); }
|
|
21064
21497
|
static get style() { return pdsTableRowCss(); }
|
|
@@ -21098,7 +21531,7 @@ class PdsTabpanel {
|
|
|
21098
21531
|
unwrapReconnectedContent(this.el.querySelector('.pds-tabpanel'), '.pds-tabpanel');
|
|
21099
21532
|
}
|
|
21100
21533
|
render() {
|
|
21101
|
-
return (hAsync(Host, { key: '
|
|
21534
|
+
return (hAsync(Host, { key: 'e1dd3a854d6ceffff0688afb7ed02f3d56ae9333', slot: "tabpanels", class: this.stretch && this.selected ? "pds-tabpanel--stretch-active" : undefined }, hAsync("div", { key: '381a763bc540659c8944ff48ccc1a41ad94dc087', 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: 'bdb11c6e68f701cf91fda68db5122bb9dfe7d894' }))));
|
|
21102
21535
|
}
|
|
21103
21536
|
get el() { return getElement(this); }
|
|
21104
21537
|
static get style() { return pdsTabpanelCss(); }
|
|
@@ -21282,7 +21715,7 @@ class PdsTabs {
|
|
|
21282
21715
|
// Navigation mode: a <nav> landmark of links (aria-current marks the current
|
|
21283
21716
|
// page). Panel mode: the ARIA tablist of role=tab buttons over tabpanels.
|
|
21284
21717
|
const tabList = this.isNav ? (hAsync("nav", { class: "pds-tabs__tablist", "aria-label": this.tablistLabel || undefined, part: "tab-list" }, hAsync("slot", { name: "tabs" }))) : (hAsync("div", { class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel, part: "tab-list" }, hAsync("slot", { name: "tabs" })));
|
|
21285
|
-
return (hAsync(Host, { key: '
|
|
21718
|
+
return (hAsync(Host, { key: 'f9d0e94dcacd7b94691368f08eb77b45475c0a35', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, tabList, hAsync("slot", { key: '93c605b2bd4b8ad3dcd8f494a82fd30833e8b300', name: "tabpanels" })));
|
|
21286
21719
|
}
|
|
21287
21720
|
get el() { return getElement(this); }
|
|
21288
21721
|
static get style() { return pdsTabsCss(); }
|
|
@@ -21408,7 +21841,7 @@ class PdsText {
|
|
|
21408
21841
|
? `pds-text--decoration-${this.decoration}`
|
|
21409
21842
|
: ''}
|
|
21410
21843
|
`;
|
|
21411
|
-
return (hAsync(Tag, { key: '
|
|
21844
|
+
return (hAsync(Tag, { key: 'cf597479ded618a0674d68fd726b828d88c0e642', ref: (el) => (this.contentEl = el), style: this.color && setColor(this.color), class: typeClasses, part: "content" }, hAsync("slot", { key: 'f9c163be5662522b012bca6b0a23cfe00860e474' })));
|
|
21412
21845
|
}
|
|
21413
21846
|
get el() { return getElement(this); }
|
|
21414
21847
|
static get watchers() { return {
|
|
@@ -21749,10 +22182,10 @@ class PdsTextarea {
|
|
|
21749
22182
|
}
|
|
21750
22183
|
render() {
|
|
21751
22184
|
const value = this.getValue();
|
|
21752
|
-
return (hAsync(Host, { key: '
|
|
21753
|
-
hAsync("div", { key: '
|
|
21754
|
-
hAsync("p", { key: '
|
|
21755
|
-
hAsync("p", { key: '
|
|
22185
|
+
return (hAsync(Host, { key: '838d12ba686fb041996c44522d3fd30e1b56c610', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null, "has-action": this.hasAction && !this.hideLabel ? 'true' : null }, hAsync("div", { key: 'bd3eef138a5c8f2cd4e48c007561bb1b12f4e575', class: "pds-textarea" }, this.label &&
|
|
22186
|
+
hAsync("div", { key: 'f83f23b17cd157d48bb5c0c5067ca5f611d73529', class: "pds-textarea__label-wrapper" }, hAsync("label", { key: '896b7b495ad6f7deb8d4738e623f0676f0a98c1f', htmlFor: this.componentId }, hAsync("span", { key: '02b06db969467f6c4e83e0f713bee0be76f8dfff', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), !this.hideLabel && this.renderAction()), hAsync("div", { key: '15c5964576e73db36cee4a9ca868c28571250a27', class: "pds-textarea__field-wrapper" }, hAsync("textarea", Object.assign({ key: '4493797e03322993a8cbe5530a18a9ef984b9796', ref: (el) => this.nativeTextarea = el, "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage, this.errorMessage), "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 &&
|
|
22187
|
+
hAsync("p", { key: '9c8794ec733a3ece5eaeac74ef6a1ebb223558c3', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
|
|
22188
|
+
hAsync("p", { key: 'c4b9be66c3f3c39ddf495708f0f03cfda03e7fc6', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, hAsync("pds-icon", { key: 'c117b8d62c055382f5d43caa7f2cb880796c495b', icon: danger, size: "small" }), this.errorMessage))));
|
|
21756
22189
|
}
|
|
21757
22190
|
static get formAssociated() { return true; }
|
|
21758
22191
|
get el() { return getElement(this); }
|
|
@@ -21926,13 +22359,13 @@ class PdsToast {
|
|
|
21926
22359
|
return this.icon && hAsync("pds-icon", { name: this.icon, class: "pds-toast__icon" });
|
|
21927
22360
|
}
|
|
21928
22361
|
render() {
|
|
21929
|
-
return (hAsync(Host, { key: '
|
|
22362
|
+
return (hAsync(Host, { key: 'a1ec97158a6665aa25b58b1954b4b5c622590615', hidden: !this.isVisible }, hAsync("div", { key: 'd9b01164364c76512852a260cede50000b73a563', class: {
|
|
21930
22363
|
'pds-toast': true,
|
|
21931
22364
|
[`pds-toast--${this.type}`]: this.type !== 'default',
|
|
21932
22365
|
'pds-toast--animating-out': this.isAnimatingOut
|
|
21933
|
-
}, role: "alert", "aria-live": "polite" }, this.renderIcon(), hAsync("span", { key: '
|
|
22366
|
+
}, role: "alert", "aria-live": "polite" }, this.renderIcon(), hAsync("span", { key: '1f581c7c29ea3fc795dfca061d3575c5a9895b3c', class: "pds-toast__message" }, hAsync("slot", { key: '645b31eae3be23de63ab2562234caf0be2510645' })), this.dismissible && (hAsync("button", { key: '44a62b304468c0fca0b8d490ad9c8b5932176ac9', type: "button", part: "dismiss", class: "pds-toast__button", onClick: () => {
|
|
21934
22367
|
this.dismiss();
|
|
21935
|
-
}, "aria-label": this.dismissLabel }, hAsync("pds-icon", { key: '
|
|
22368
|
+
}, "aria-label": this.dismissLabel }, hAsync("pds-icon", { key: 'fde63f279f696d9f02875cc1beee3542c97f0c7e', name: "remove" }))))));
|
|
21936
22369
|
}
|
|
21937
22370
|
get el() { return getElement(this); }
|
|
21938
22371
|
static get watchers() { return {
|
|
@@ -22306,9 +22739,9 @@ class PdsTooltip {
|
|
|
22306
22739
|
}
|
|
22307
22740
|
render() {
|
|
22308
22741
|
const hostId = this.componentId || undefined;
|
|
22309
|
-
return (hAsync(Host, { key: '
|
|
22742
|
+
return (hAsync(Host, { key: 'a4f25d10de27757ab2551af0e5b8a53336bf8cb4', id: hostId, class: { 'pds-tooltip--is-open': this.opened } }, hAsync("span", { key: '5e9f9afbecbb335ad68b02edf999d2ec62f31a8e', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide,
|
|
22310
22743
|
/* focusin/out bubble; ensure keyboard users see tooltips */
|
|
22311
|
-
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, hAsync("slot", { key: '
|
|
22744
|
+
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, hAsync("slot", { key: 'e142f4f09406b7bd3d1ce9005f624b91cf7ec176' })), hAsync("div", { key: 'ebe0faae0af623477486dbba56c24bc3e0a6bc66', class: "pds-tooltip__content-slot-wrapper", hidden: true }, hAsync("slot", { key: '833d31509ba48f10cd0b5eb2f5e8dc509854c25e', name: "content" }))));
|
|
22312
22745
|
}
|
|
22313
22746
|
get el() { return getElement(this); }
|
|
22314
22747
|
static get watchers() { return {
|
|
@@ -22352,6 +22785,10 @@ registerComponents([
|
|
|
22352
22785
|
PdsContainer,
|
|
22353
22786
|
PdsCopytext,
|
|
22354
22787
|
PdsDivider,
|
|
22788
|
+
PdsDrawer,
|
|
22789
|
+
PdsDrawerContent,
|
|
22790
|
+
PdsDrawerFooter,
|
|
22791
|
+
PdsDrawerHeader,
|
|
22355
22792
|
PdsDropdownMenu,
|
|
22356
22793
|
PdsDropdownMenuItem,
|
|
22357
22794
|
PdsDropdownMenuSeparator,
|