@pine-ds/core 3.9.0 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/attributes.js.map +1 -1
- package/components/form.js.map +1 -1
- package/components/index.js +1 -1
- package/components/index2.js +1 -1
- package/components/index2.js.map +1 -1
- package/components/mock-pds-modal.js +5 -3
- package/components/mock-pds-modal.js.map +1 -1
- package/components/pds-accordion.js +5 -3
- package/components/pds-accordion.js.map +1 -1
- package/components/pds-alert.js +5 -3
- package/components/pds-alert.js.map +1 -1
- package/components/pds-avatar.js +5 -3
- package/components/pds-avatar.js.map +1 -1
- package/components/pds-box2.js +5 -3
- package/components/pds-box2.js.map +1 -1
- package/components/pds-button2.js +15 -4
- package/components/pds-button2.js.map +1 -1
- package/components/pds-checkbox2.js +5 -3
- package/components/pds-checkbox2.js.map +1 -1
- package/components/pds-chip2.js +5 -3
- package/components/pds-chip2.js.map +1 -1
- package/components/pds-combobox.js +5 -3
- package/components/pds-combobox.js.map +1 -1
- package/components/pds-copytext.js +5 -3
- package/components/pds-copytext.js.map +1 -1
- package/components/pds-divider.js +5 -3
- package/components/pds-divider.js.map +1 -1
- package/components/pds-dropdown-menu-item.js +5 -3
- package/components/pds-dropdown-menu-item.js.map +1 -1
- package/components/pds-dropdown-menu-separator.js +5 -3
- package/components/pds-dropdown-menu-separator.js.map +1 -1
- package/components/pds-dropdown-menu.js +6 -4
- package/components/pds-dropdown-menu.js.map +1 -1
- package/components/pds-filter.js +5 -3
- package/components/pds-filter.js.map +1 -1
- package/components/pds-filters.js +5 -3
- package/components/pds-filters.js.map +1 -1
- package/components/pds-icon2.js +5 -3
- package/components/pds-icon2.js.map +1 -1
- package/components/pds-image.js +5 -3
- package/components/pds-image.js.map +1 -1
- package/components/pds-input.js +5 -3
- package/components/pds-input.js.map +1 -1
- package/components/pds-link2.js +5 -3
- package/components/pds-link2.js.map +1 -1
- package/components/pds-loader2.js +5 -3
- package/components/pds-loader2.js.map +1 -1
- package/components/pds-modal-content.js +7 -5
- package/components/pds-modal-content.js.map +1 -1
- package/components/pds-modal-footer.js +5 -3
- package/components/pds-modal-footer.js.map +1 -1
- package/components/pds-modal-header.js +5 -3
- package/components/pds-modal-header.js.map +1 -1
- package/components/pds-modal.js +5 -3
- package/components/pds-modal.js.map +1 -1
- package/components/pds-popover.js +437 -90
- package/components/pds-popover.js.map +1 -1
- package/components/pds-progress.js +6 -4
- package/components/pds-progress.js.map +1 -1
- package/components/pds-property.js +6 -4
- package/components/pds-property.js.map +1 -1
- package/components/pds-radio.js +8 -6
- package/components/pds-radio.js.map +1 -1
- package/components/pds-row.js +6 -4
- package/components/pds-row.js.map +1 -1
- package/components/pds-select.js +6 -4
- package/components/pds-select.js.map +1 -1
- package/components/pds-sortable-item.js +6 -4
- package/components/pds-sortable-item.js.map +1 -1
- package/components/pds-sortable.js +6 -4
- package/components/pds-sortable.js.map +1 -1
- package/components/pds-switch.js +8 -6
- package/components/pds-switch.js.map +1 -1
- package/components/pds-tab.js +8 -6
- package/components/pds-tab.js.map +1 -1
- package/components/pds-table-body.js +6 -4
- package/components/pds-table-body.js.map +1 -1
- package/components/pds-table-cell2.js +7 -5
- package/components/pds-table-cell2.js.map +1 -1
- package/components/pds-table-head-cell2.js +7 -5
- package/components/pds-table-head-cell2.js.map +1 -1
- package/components/pds-table-head.js +6 -4
- package/components/pds-table-head.js.map +1 -1
- package/components/pds-table-row.js +6 -4
- package/components/pds-table-row.js.map +1 -1
- package/components/pds-table.js +5 -3
- package/components/pds-table.js.map +1 -1
- package/components/pds-tabpanel.js +6 -4
- package/components/pds-tabpanel.js.map +1 -1
- package/components/pds-tabs.js +6 -4
- package/components/pds-tabs.js.map +1 -1
- package/components/pds-text2.js +6 -4
- package/components/pds-text2.js.map +1 -1
- package/components/pds-textarea.js +9 -7
- package/components/pds-textarea.js.map +1 -1
- package/components/pds-toast.js +8 -6
- package/components/pds-toast.js.map +1 -1
- package/components/pds-tooltip.js +7 -5
- package/components/pds-tooltip.js.map +1 -1
- package/components/utils.js.map +1 -1
- package/dist/cjs/attributes-oNMnBEnP.js.map +1 -1
- package/dist/cjs/form-hmpgbT1I.js.map +1 -1
- package/dist/cjs/{index-DDTyvZD7.js → index-2Lf0E1JO.js} +505 -182
- package/dist/cjs/index-2Lf0E1JO.js.map +1 -0
- package/dist/cjs/{index-DtnvzYhe.js → index-B17J2UZb.js} +3 -3
- package/dist/cjs/index-B17J2UZb.js.map +1 -0
- package/dist/cjs/index.cjs.js +0 -4
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/mock-pds-modal.cjs.entry.js +1 -3
- package/dist/cjs/pds-accordion.cjs.entry.js +2 -4
- package/dist/cjs/pds-alert.cjs.entry.js +1 -3
- package/dist/cjs/pds-avatar.cjs.entry.js +2 -4
- package/dist/cjs/pds-box.cjs.entry.js +1 -3
- package/dist/cjs/pds-button.cjs.entry.js +11 -5
- package/dist/cjs/pds-button.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-checkbox.cjs.entry.js +2 -4
- package/dist/cjs/pds-chip.cjs.entry.js +2 -4
- package/dist/cjs/pds-combobox.cjs.entry.js +1 -3
- package/dist/cjs/pds-copytext.cjs.entry.js +2 -4
- package/dist/cjs/pds-divider.cjs.entry.js +1 -3
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +1 -3
- package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +1 -3
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js +2 -4
- package/dist/cjs/pds-dropdown-menu.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-filter.cjs.entry.js +2 -4
- package/dist/cjs/pds-filters.cjs.entry.js +1 -3
- package/dist/cjs/pds-icon.cjs.entry.js +1 -3
- package/dist/cjs/pds-image.cjs.entry.js +1 -3
- package/dist/cjs/pds-input.cjs.entry.js +2 -4
- package/dist/cjs/pds-link.cjs.entry.js +2 -4
- package/dist/cjs/pds-loader.cjs.entry.js +1 -3
- package/dist/cjs/pds-modal-content.cjs.entry.js +3 -5
- package/dist/cjs/pds-modal-content.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-modal-footer.cjs.entry.js +1 -3
- package/dist/cjs/pds-modal-header.cjs.entry.js +1 -3
- package/dist/cjs/pds-modal.cjs.entry.js +1 -3
- package/dist/cjs/pds-popover.cjs.entry.js +432 -88
- package/dist/cjs/pds-popover.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-progress.cjs.entry.js +2 -4
- package/dist/cjs/pds-property.cjs.entry.js +2 -4
- package/dist/cjs/pds-radio.cjs.entry.js +5 -7
- package/dist/cjs/pds-row.cjs.entry.js +2 -4
- package/dist/cjs/pds-select.cjs.entry.js +3 -5
- package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -5
- package/dist/cjs/pds-sortable.cjs.entry.js +2 -4
- package/dist/cjs/pds-sortable.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-switch.cjs.entry.js +5 -7
- package/dist/cjs/pds-tab.cjs.entry.js +4 -6
- package/dist/cjs/pds-table-body.cjs.entry.js +2 -4
- package/dist/cjs/pds-table-cell.cjs.entry.js +3 -5
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +4 -6
- package/dist/cjs/pds-table-head.cjs.entry.js +2 -4
- package/dist/cjs/pds-table-row.cjs.entry.js +2 -4
- package/dist/cjs/pds-table.cjs.entry.js +1 -3
- package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -4
- package/dist/cjs/pds-tabs.cjs.entry.js +2 -4
- package/dist/cjs/pds-text.cjs.entry.js +2 -4
- package/dist/cjs/pds-textarea.cjs.entry.js +6 -8
- package/dist/cjs/pds-toast.cjs.entry.js +4 -6
- package/dist/cjs/pds-tooltip.cjs.entry.js +3 -5
- package/dist/cjs/pine-core.cjs.js +4 -7
- package/dist/cjs/pine-core.cjs.js.map +1 -1
- package/dist/cjs/utils-7jx8T2mW.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/pds-accordion/pds-accordion.js +3 -3
- package/dist/collection/components/pds-alert/pds-alert.js +7 -7
- package/dist/collection/components/pds-avatar/pds-avatar.js +8 -8
- package/dist/collection/components/pds-box/pds-box.js +235 -235
- package/dist/collection/components/pds-button/pds-button.css +38 -0
- package/dist/collection/components/pds-button/pds-button.js +50 -19
- package/dist/collection/components/pds-button/pds-button.js.map +1 -1
- package/dist/collection/components/pds-button/stories/pds-button.stories.js +109 -55
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +23 -23
- package/dist/collection/components/pds-chip/pds-chip.js +8 -8
- package/dist/collection/components/pds-combobox/pds-combobox.js +26 -26
- package/dist/collection/components/pds-copytext/pds-copytext.js +7 -7
- package/dist/collection/components/pds-divider/pds-divider.js +5 -5
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +6 -6
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +3 -3
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +4 -4
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js.map +1 -1
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +7 -7
- package/dist/collection/components/pds-filters/pds-filters.js +2 -2
- package/dist/collection/components/pds-image/pds-image.js +14 -14
- package/dist/collection/components/pds-input/pds-input.js +44 -44
- package/dist/collection/components/pds-link/pds-link.js +9 -9
- package/dist/collection/components/pds-loader/pds-loader.js +4 -4
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +3 -3
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js.map +1 -1
- package/dist/collection/components/pds-modal/pds-modal.js +6 -6
- package/dist/collection/components/pds-modal/test/mock-pds-modal.js +6 -6
- package/dist/collection/components/pds-popover/pds-popover.css +4 -31
- package/dist/collection/components/pds-popover/pds-popover.js +440 -130
- package/dist/collection/components/pds-popover/pds-popover.js.map +1 -1
- package/dist/collection/components/pds-popover/popover-interface.js.map +1 -1
- package/dist/collection/components/pds-popover/stories/pds-popover.stories.js +66 -18
- package/dist/collection/components/pds-progress/pds-progress.js +10 -10
- package/dist/collection/components/pds-property/pds-property.js +4 -4
- package/dist/collection/components/pds-radio/pds-radio.js +22 -22
- package/dist/collection/components/pds-row/pds-row.js +17 -17
- package/dist/collection/components/pds-select/pds-select.js +24 -24
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +5 -5
- package/dist/collection/components/pds-sortable/pds-sortable.js +6 -6
- package/dist/collection/components/pds-sortable/pds-sortable.js.map +1 -1
- package/dist/collection/components/pds-switch/pds-switch.js +21 -21
- 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 +6 -6
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +5 -5
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +6 -6
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +5 -5
- package/dist/collection/components/pds-table/pds-table.js +10 -10
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +12 -12
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +8 -8
- package/dist/collection/components/pds-tabs/pds-tabs.js +11 -11
- package/dist/collection/components/pds-text/pds-text.js +18 -18
- package/dist/collection/components/pds-textarea/pds-textarea.js +32 -32
- package/dist/collection/components/pds-toast/pds-toast.js +10 -10
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +11 -11
- package/dist/collection/utils/attributes.js.map +1 -1
- package/dist/collection/utils/form.js.map +1 -1
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/docs.json +242 -79
- package/dist/esm/attributes-C0M1gTKv.js.map +1 -1
- package/dist/esm/form-DwjNklzi.js.map +1 -1
- package/dist/esm/{index-Bf1dou5H.js → index-Bh07GI-d.js} +505 -183
- package/dist/esm/index-Bh07GI-d.js.map +1 -0
- package/dist/esm/{index-D4zJBIgl.js → index-QXCASaCq.js} +3 -3
- package/dist/esm/index-QXCASaCq.js.map +1 -0
- package/dist/esm/index.js +1 -3
- package/dist/esm/loader.js +3 -6
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/mock-pds-modal.entry.js +1 -3
- package/dist/esm/pds-accordion.entry.js +2 -4
- package/dist/esm/pds-alert.entry.js +1 -3
- package/dist/esm/pds-avatar.entry.js +2 -4
- package/dist/esm/pds-box.entry.js +1 -3
- package/dist/esm/pds-button.entry.js +11 -5
- package/dist/esm/pds-button.entry.js.map +1 -1
- package/dist/esm/pds-checkbox.entry.js +2 -4
- package/dist/esm/pds-chip.entry.js +2 -4
- package/dist/esm/pds-combobox.entry.js +1 -3
- package/dist/esm/pds-copytext.entry.js +2 -4
- package/dist/esm/pds-divider.entry.js +1 -3
- package/dist/esm/pds-dropdown-menu-item.entry.js +1 -3
- package/dist/esm/pds-dropdown-menu-separator.entry.js +1 -3
- package/dist/esm/pds-dropdown-menu.entry.js +2 -4
- package/dist/esm/pds-dropdown-menu.entry.js.map +1 -1
- package/dist/esm/pds-filter.entry.js +2 -4
- package/dist/esm/pds-filters.entry.js +1 -3
- package/dist/esm/pds-icon.entry.js +1 -3
- package/dist/esm/pds-image.entry.js +1 -3
- package/dist/esm/pds-input.entry.js +2 -4
- package/dist/esm/pds-link.entry.js +2 -4
- package/dist/esm/pds-loader.entry.js +1 -3
- package/dist/esm/pds-modal-content.entry.js +3 -5
- package/dist/esm/pds-modal-content.entry.js.map +1 -1
- package/dist/esm/pds-modal-footer.entry.js +1 -3
- package/dist/esm/pds-modal-header.entry.js +1 -3
- package/dist/esm/pds-modal.entry.js +1 -3
- package/dist/esm/pds-popover.entry.js +432 -88
- package/dist/esm/pds-popover.entry.js.map +1 -1
- package/dist/esm/pds-progress.entry.js +2 -4
- package/dist/esm/pds-property.entry.js +2 -4
- package/dist/esm/pds-radio.entry.js +5 -7
- package/dist/esm/pds-row.entry.js +2 -4
- package/dist/esm/pds-select.entry.js +3 -5
- package/dist/esm/pds-sortable-item.entry.js +3 -5
- package/dist/esm/pds-sortable.entry.js +2 -4
- package/dist/esm/pds-sortable.entry.js.map +1 -1
- package/dist/esm/pds-switch.entry.js +5 -7
- package/dist/esm/pds-tab.entry.js +4 -6
- package/dist/esm/pds-table-body.entry.js +2 -4
- package/dist/esm/pds-table-cell.entry.js +3 -5
- package/dist/esm/pds-table-head-cell.entry.js +4 -6
- package/dist/esm/pds-table-head.entry.js +2 -4
- package/dist/esm/pds-table-row.entry.js +2 -4
- package/dist/esm/pds-table.entry.js +1 -3
- package/dist/esm/pds-tabpanel.entry.js +2 -4
- package/dist/esm/pds-tabs.entry.js +2 -4
- package/dist/esm/pds-text.entry.js +2 -4
- package/dist/esm/pds-textarea.entry.js +6 -8
- package/dist/esm/pds-toast.entry.js +4 -6
- package/dist/esm/pds-tooltip.entry.js +3 -5
- package/dist/esm/pine-core.js +4 -7
- package/dist/esm/pine-core.js.map +1 -1
- package/dist/esm/utils-tJa4KYNO.js.map +1 -1
- package/dist/esm-es5/attributes-C0M1gTKv.js.map +1 -1
- package/dist/esm-es5/form-DwjNklzi.js.map +1 -1
- package/dist/esm-es5/index-Bh07GI-d.js +3 -0
- package/dist/esm-es5/index-Bh07GI-d.js.map +1 -0
- package/dist/esm-es5/{index-D4zJBIgl.js → index-QXCASaCq.js} +1 -1
- package/dist/esm-es5/index-QXCASaCq.js.map +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
- package/dist/esm-es5/pds-accordion.entry.js +1 -1
- package/dist/esm-es5/pds-alert.entry.js +1 -1
- package/dist/esm-es5/pds-avatar.entry.js +1 -1
- package/dist/esm-es5/pds-box.entry.js +1 -1
- package/dist/esm-es5/pds-button.entry.js +1 -1
- package/dist/esm-es5/pds-button.entry.js.map +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-combobox.entry.js +2 -2
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-divider.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu.entry.js.map +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-icon.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-content.entry.js.map +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-popover.entry.js +1 -1
- package/dist/esm-es5/pds-popover.entry.js.map +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.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 +2 -2
- package/dist/esm-es5/pds-sortable.entry.js.map +1 -1
- package/dist/esm-es5/pds-switch.entry.js +1 -1
- package/dist/esm-es5/pds-tab.entry.js +1 -1
- package/dist/esm-es5/pds-table-body.entry.js +1 -1
- package/dist/esm-es5/pds-table-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-head.entry.js +1 -1
- package/dist/esm-es5/pds-table-row.entry.js +1 -1
- package/dist/esm-es5/pds-table.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/pine-core.js.map +1 -1
- package/dist/esm-es5/utils-tJa4KYNO.js.map +1 -1
- package/dist/pine-core/index.esm.js +1 -1
- package/dist/pine-core/loader.esm.js.map +1 -1
- package/dist/pine-core/{p-9766923f.entry.js → p-01c4eac9.entry.js} +2 -2
- package/dist/pine-core/p-01c4eac9.entry.js.map +1 -0
- package/dist/pine-core/p-04390d80.system.entry.js +2 -0
- package/dist/pine-core/p-04390d80.system.entry.js.map +1 -0
- package/dist/pine-core/{p-4ef17b95.system.entry.js → p-052eedc2.system.entry.js} +2 -2
- package/dist/pine-core/p-052eedc2.system.entry.js.map +1 -0
- package/dist/pine-core/p-06f164fe.system.entry.js +2 -0
- package/dist/pine-core/p-06f164fe.system.entry.js.map +1 -0
- package/dist/pine-core/{p-725c350c.entry.js → p-0819d524.entry.js} +2 -2
- package/dist/pine-core/p-0819d524.entry.js.map +1 -0
- package/dist/pine-core/p-105951b7.system.entry.js +2 -0
- package/dist/pine-core/p-105951b7.system.entry.js.map +1 -0
- package/dist/pine-core/{p-307f415a.system.entry.js → p-168b5a5b.system.entry.js} +2 -2
- package/dist/pine-core/p-168b5a5b.system.entry.js.map +1 -0
- package/dist/pine-core/{p-ee583234.system.entry.js → p-1ab0a7b1.system.entry.js} +2 -2
- package/dist/pine-core/p-1ab0a7b1.system.entry.js.map +1 -0
- package/dist/pine-core/{p-da1fb45d.system.entry.js → p-1ac7cb0f.system.entry.js} +2 -2
- package/dist/pine-core/p-1ac7cb0f.system.entry.js.map +1 -0
- package/dist/pine-core/{p-f61ee383.system.entry.js → p-1bf75b30.system.entry.js} +2 -2
- package/dist/pine-core/p-1bf75b30.system.entry.js.map +1 -0
- package/dist/pine-core/{p-1039e8e9.entry.js → p-1c6def68.entry.js} +2 -2
- package/dist/pine-core/p-1c6def68.entry.js.map +1 -0
- package/dist/pine-core/p-1d3c4f2d.entry.js +2 -0
- package/dist/pine-core/p-1d3c4f2d.entry.js.map +1 -0
- package/dist/pine-core/{p-8ff41ba8.entry.js → p-1d83f560.entry.js} +2 -2
- package/dist/pine-core/p-1d83f560.entry.js.map +1 -0
- package/dist/pine-core/{p-90e83476.system.entry.js → p-1f28575b.system.entry.js} +2 -2
- package/dist/pine-core/p-1f28575b.system.entry.js.map +1 -0
- package/dist/pine-core/{p-88773b86.entry.js → p-1f67a7d6.entry.js} +2 -2
- package/dist/pine-core/p-1f67a7d6.entry.js.map +1 -0
- package/dist/pine-core/{p-e18c3044.entry.js → p-1fbe221a.entry.js} +2 -2
- package/dist/pine-core/p-1fbe221a.entry.js.map +1 -0
- package/dist/pine-core/{p-e692908e.entry.js → p-239cbdb2.entry.js} +2 -2
- package/dist/pine-core/p-239cbdb2.entry.js.map +1 -0
- package/dist/pine-core/{p-a9cfaa1f.entry.js → p-2551ed1a.entry.js} +2 -2
- package/dist/pine-core/p-2551ed1a.entry.js.map +1 -0
- package/dist/pine-core/p-285bc185.entry.js +2 -0
- package/dist/pine-core/p-285bc185.entry.js.map +1 -0
- package/dist/pine-core/{p-ozqEY4Zc.system.js.map → p-2NVJY0Vc.system.js.map} +1 -1
- package/dist/pine-core/{p-97299c83.system.entry.js → p-2aed6c67.system.entry.js} +2 -2
- package/dist/pine-core/p-2aed6c67.system.entry.js.map +1 -0
- package/dist/pine-core/p-2f5d1411.entry.js +2 -0
- package/dist/pine-core/p-2f5d1411.entry.js.map +1 -0
- package/dist/pine-core/{p-96a60a99.entry.js → p-35dd09be.entry.js} +2 -2
- package/dist/pine-core/p-35dd09be.entry.js.map +1 -0
- package/dist/pine-core/p-37795a28.system.entry.js +2 -0
- package/dist/pine-core/p-37795a28.system.entry.js.map +1 -0
- package/dist/pine-core/{p-c55fc47e.entry.js → p-3900b6f6.entry.js} +2 -2
- package/dist/pine-core/p-3900b6f6.entry.js.map +1 -0
- package/dist/pine-core/p-3ca2c7d0.system.entry.js +2 -0
- package/dist/pine-core/p-3ca2c7d0.system.entry.js.map +1 -0
- package/dist/pine-core/{p-B-Doh1Wu.system.js.map → p-3fR7iol3.system.js.map} +1 -1
- package/dist/pine-core/p-43b758af.entry.js +2 -0
- package/dist/pine-core/p-43b758af.entry.js.map +1 -0
- package/dist/pine-core/{p-f25274c9.entry.js → p-45c81df5.entry.js} +2 -2
- package/dist/pine-core/p-45c81df5.entry.js.map +1 -0
- package/dist/pine-core/{p-378df5eb.system.entry.js → p-4792d0c8.system.entry.js} +2 -2
- package/dist/pine-core/p-4792d0c8.system.entry.js.map +1 -0
- package/dist/pine-core/{p-3cc92094.system.entry.js → p-49c5234f.system.entry.js} +2 -2
- package/dist/pine-core/p-49c5234f.system.entry.js.map +1 -0
- package/dist/pine-core/p-4HGk7WFM.system.js.map +1 -0
- package/dist/pine-core/{p-c44d3551.entry.js → p-51e0ea73.entry.js} +2 -2
- package/dist/pine-core/p-51e0ea73.entry.js.map +1 -0
- package/dist/pine-core/{p-7af21e83.system.entry.js → p-52e92b68.system.entry.js} +2 -2
- package/dist/pine-core/p-52e92b68.system.entry.js.map +1 -0
- package/dist/pine-core/{p-b9aafec7.system.entry.js → p-54e04c59.system.entry.js} +2 -2
- package/dist/pine-core/p-54e04c59.system.entry.js.map +1 -0
- package/dist/pine-core/{p-972a511a.entry.js → p-55d120d1.entry.js} +2 -2
- package/dist/pine-core/p-55d120d1.entry.js.map +1 -0
- package/dist/pine-core/{p-9b335a9f.entry.js → p-57120758.entry.js} +2 -2
- package/dist/pine-core/p-57120758.entry.js.map +1 -0
- package/dist/pine-core/{p-b9e12535.system.entry.js → p-59166970.system.entry.js} +2 -2
- package/dist/pine-core/p-59166970.system.entry.js.map +1 -0
- package/dist/pine-core/p-5a332f9e.system.entry.js +2 -0
- package/dist/pine-core/p-5a332f9e.system.entry.js.map +1 -0
- package/dist/pine-core/{p-4802f8de.system.entry.js → p-5a94e426.system.entry.js} +2 -2
- package/dist/pine-core/p-5a94e426.system.entry.js.map +1 -0
- package/dist/pine-core/{p-bc637bed.system.entry.js → p-5d379706.system.entry.js} +2 -2
- package/dist/pine-core/p-5d379706.system.entry.js.map +1 -0
- package/dist/pine-core/p-5e1804a3.system.entry.js +2 -0
- package/dist/pine-core/p-5e1804a3.system.entry.js.map +1 -0
- package/dist/pine-core/{p-b23dd01c.entry.js → p-6046e0b1.entry.js} +2 -2
- package/dist/pine-core/p-6046e0b1.entry.js.map +1 -0
- package/dist/pine-core/{p-544fea4c.system.entry.js → p-6448829b.system.entry.js} +3 -3
- package/dist/pine-core/p-6448829b.system.entry.js.map +1 -0
- package/dist/pine-core/{p-DmdrRtWG.system.js.map → p-6R6wgf3i.system.js.map} +1 -1
- package/dist/pine-core/{p-dace69e7.system.entry.js → p-6b8903e4.system.entry.js} +2 -2
- package/dist/pine-core/p-6b8903e4.system.entry.js.map +1 -0
- package/dist/pine-core/{p-c3f84df8.system.entry.js → p-6d9ca1ff.system.entry.js} +2 -2
- package/dist/pine-core/p-6d9ca1ff.system.entry.js.map +1 -0
- package/dist/pine-core/{p-6381a811.system.entry.js → p-6e4be339.system.entry.js} +3 -3
- package/dist/pine-core/p-6e4be339.system.entry.js.map +1 -0
- package/dist/pine-core/{p-2c407961.entry.js → p-71a30434.entry.js} +2 -2
- package/dist/pine-core/p-71a30434.entry.js.map +1 -0
- package/dist/pine-core/p-730ea265.entry.js +2 -0
- package/dist/pine-core/p-730ea265.entry.js.map +1 -0
- package/dist/pine-core/{p-100de2b7.entry.js → p-73353346.entry.js} +2 -2
- package/dist/pine-core/p-73353346.entry.js.map +1 -0
- package/dist/pine-core/p-770eefdd.entry.js +2 -0
- package/dist/pine-core/p-770eefdd.entry.js.map +1 -0
- package/dist/pine-core/p-79466624.entry.js +2 -0
- package/dist/pine-core/p-79466624.entry.js.map +1 -0
- package/dist/pine-core/{p-9fbb9f0e.system.entry.js → p-7a12238d.system.entry.js} +2 -2
- package/dist/pine-core/p-7a12238d.system.entry.js.map +1 -0
- package/dist/pine-core/p-7a5e0609.system.entry.js +2 -0
- package/dist/pine-core/p-7a5e0609.system.entry.js.map +1 -0
- package/dist/pine-core/{p-f5d78141.entry.js → p-7a63e1ec.entry.js} +2 -2
- package/dist/pine-core/p-7a63e1ec.entry.js.map +1 -0
- package/dist/pine-core/p-7bbe537d.system.entry.js +2 -0
- package/dist/pine-core/p-7bbe537d.system.entry.js.map +1 -0
- package/dist/pine-core/p-7c69ca77.entry.js +2 -0
- package/dist/pine-core/p-7c69ca77.entry.js.map +1 -0
- package/dist/pine-core/p-7ccd095b.entry.js +2 -0
- package/dist/pine-core/p-7ccd095b.entry.js.map +1 -0
- package/dist/pine-core/{p-f8e1545e.entry.js → p-841a6445.entry.js} +2 -2
- package/dist/pine-core/p-841a6445.entry.js.map +1 -0
- package/dist/pine-core/p-88040f36.entry.js +2 -0
- package/dist/pine-core/p-88040f36.entry.js.map +1 -0
- package/dist/pine-core/{p-538b3902.system.entry.js → p-89565b3c.system.entry.js} +2 -2
- package/dist/pine-core/p-89565b3c.system.entry.js.map +1 -0
- package/dist/pine-core/{p-5ac7af9e.entry.js → p-996072ce.entry.js} +2 -2
- package/dist/pine-core/p-996072ce.entry.js.map +1 -0
- package/dist/pine-core/{p-0486ecc6.system.entry.js → p-9c0577eb.system.entry.js} +2 -2
- package/dist/pine-core/p-9c0577eb.system.entry.js.map +1 -0
- package/dist/pine-core/{p-CTkQ9Pq-.system.js.map → p-B8ftT2uA.system.js.map} +1 -1
- package/dist/pine-core/{p-Cl47ROcT.system.js.map → p-B9oQYxlC.system.js.map} +1 -1
- package/dist/pine-core/{p-BbhWs2I3.system.js.map → p-BCGaZxvq.system.js.map} +1 -1
- package/dist/pine-core/p-BG6uGRQj.system.js.map +1 -1
- package/dist/pine-core/p-BHavepTY.system.js.map +1 -1
- package/dist/pine-core/{p-BJ3oNLWN.system.js.map → p-BLpHPllL.system.js.map} +1 -1
- package/dist/pine-core/{p-CSa_b_JX.system.js.map → p-BMBJoTMg.system.js.map} +1 -1
- package/dist/pine-core/{p-Dw7zXw_6.system.js.map → p-BMv60T1z.system.js.map} +1 -1
- package/dist/pine-core/p-BOmQOnQe.system.js +1 -1
- package/dist/pine-core/p-BeWjxtlo.system.js.map +1 -0
- package/dist/pine-core/{p-k9JOparb.system.js.map → p-BeaxER_z.system.js.map} +1 -1
- package/dist/pine-core/p-Bh07GI-d.js +3 -0
- package/dist/pine-core/p-Bh07GI-d.js.map +1 -0
- package/dist/pine-core/p-BhQhw0S3.system.js.map +1 -1
- package/dist/pine-core/{p-C2W-sHx5.system.js.map → p-BhoJR5O9.system.js.map} +1 -1
- package/dist/pine-core/{p-B8JDvOCM.system.js.map → p-Btz7Q5Hx.system.js.map} +1 -1
- package/dist/pine-core/{p-CEUtKiTx.system.js.map → p-Bv5KzSWg.system.js.map} +1 -1
- package/dist/pine-core/{p-qQVNUF7F.system.js.map → p-BwYg-WQV.system.js.map} +1 -1
- package/dist/pine-core/p-C0M1gTKv.js.map +1 -1
- package/dist/pine-core/{p-CG2PKUWT.system.js.map → p-C2AG52JP.system.js.map} +1 -1
- package/dist/pine-core/{p-kcOuXqWo.system.js.map → p-C4UrydrO.system.js.map} +1 -1
- package/dist/pine-core/{p-Bkfqi7zE.system.js.map → p-C6_QgODF.system.js.map} +1 -1
- package/dist/pine-core/{p-CQwYeJqz.system.js.map → p-CEUHG_Nb.system.js.map} +1 -1
- package/dist/pine-core/{p-K3LH4gRE.system.js.map → p-CIoeutZO.system.js.map} +1 -1
- package/dist/pine-core/{p-DW3lkDNz.system.js.map → p-CMbWVxYl.system.js.map} +1 -1
- package/dist/pine-core/{p-DiWDsjtE.system.js.map → p-CNOoGfj8.system.js.map} +1 -1
- package/dist/pine-core/{p-ByzULH8m.system.js.map → p-CSVIgMVz.system.js.map} +1 -1
- package/dist/pine-core/{p-CCQd5PVN.system.js.map → p-CVjjaBaW.system.js.map} +1 -1
- package/dist/pine-core/p-CZsWy9_t.system.js +3 -0
- package/dist/pine-core/p-CZsWy9_t.system.js.map +1 -0
- package/dist/pine-core/{p-BEgEi4w5.system.js.map → p-CbrMVAcu.system.js.map} +1 -1
- package/dist/pine-core/{p-ch9PI3Vl.system.js.map → p-ChQGk39M.system.js.map} +1 -1
- package/dist/pine-core/{p-M-zMP2QX.system.js.map → p-CoBzoZzZ.system.js.map} +1 -1
- package/dist/pine-core/{p-DJ7iTbji.system.js.map → p-CqtdHqyo.system.js.map} +1 -1
- package/dist/pine-core/{p-DExobiBX.system.js.map → p-CrpTd0PB.system.js.map} +1 -1
- package/dist/pine-core/{p-rnM09DN4.system.js.map → p-CtiVxXhr.system.js.map} +1 -1
- package/dist/pine-core/p-CuF_eckL.system.js.map +1 -0
- package/dist/pine-core/p-Cua7cmvq.system.js +2 -0
- package/dist/pine-core/p-Cua7cmvq.system.js.map +1 -0
- package/dist/pine-core/{p-CdcQ02yR.system.js.map → p-D5MCs-6L.system.js.map} +1 -1
- package/dist/pine-core/{p-BLC5kuro.system.js.map → p-DCLLstWD.system.js.map} +1 -1
- package/dist/pine-core/{p-CfyzuJNE.system.js.map → p-DDsUR6MK.system.js.map} +1 -1
- package/dist/pine-core/{p-BILpjGVZ.system.js.map → p-DLKKVRBm.system.js.map} +1 -1
- package/dist/pine-core/{p-D52TGCLt.system.js.map → p-DTMMULoz.system.js.map} +1 -1
- package/dist/pine-core/p-DwjNklzi.js.map +1 -1
- package/dist/pine-core/{p-DhDw2HLE.system.js.map → p-DxdUBbJz.system.js.map} +1 -1
- package/dist/pine-core/{p-BDK6YCRb.system.js.map → p-DySPwKLZ.system.js.map} +1 -1
- package/dist/pine-core/{p-Cid662up.system.js.map → p-GdAtTGB0.system.js.map} +1 -1
- package/dist/pine-core/{p-D4zJBIgl.js → p-QXCASaCq.js} +1 -1
- package/dist/pine-core/p-QXCASaCq.js.map +1 -0
- package/dist/pine-core/{p-BRIdBthP.system.js.map → p-W2_s_Evj.system.js.map} +1 -1
- package/dist/pine-core/p-YWpyar7R.system.js +2 -0
- package/dist/pine-core/p-YWpyar7R.system.js.map +1 -0
- package/dist/pine-core/{p-85c41629.entry.js → p-a037df25.entry.js} +2 -2
- package/dist/pine-core/p-a037df25.entry.js.map +1 -0
- package/dist/pine-core/{p-ae2d59cd.entry.js → p-a1ddcc69.entry.js} +2 -2
- package/dist/pine-core/p-a1ddcc69.entry.js.map +1 -0
- package/dist/pine-core/{p-96c27dba.entry.js → p-a494b7d1.entry.js} +2 -2
- package/dist/pine-core/p-a494b7d1.entry.js.map +1 -0
- package/dist/pine-core/{p-db12273e.system.entry.js → p-b07bb58f.system.entry.js} +2 -2
- package/dist/pine-core/p-b07bb58f.system.entry.js.map +1 -0
- package/dist/pine-core/p-b0948892.system.entry.js +2 -0
- package/dist/pine-core/p-b0948892.system.entry.js.map +1 -0
- package/dist/pine-core/{p-9ac84e63.entry.js → p-b151a37d.entry.js} +3 -3
- package/dist/pine-core/p-b151a37d.entry.js.map +1 -0
- package/dist/pine-core/{p-6d48604a.system.entry.js → p-b38d8113.system.entry.js} +2 -2
- package/dist/pine-core/p-b38d8113.system.entry.js.map +1 -0
- package/dist/pine-core/{p-18179981.system.entry.js → p-ba1a4643.system.entry.js} +2 -2
- package/dist/pine-core/p-ba1a4643.system.entry.js.map +1 -0
- package/dist/pine-core/p-ba609b1e.entry.js +2 -0
- package/dist/pine-core/p-ba609b1e.entry.js.map +1 -0
- package/dist/pine-core/{p-cffc98ae.entry.js → p-bd11961c.entry.js} +3 -3
- package/dist/pine-core/p-bd11961c.entry.js.map +1 -0
- package/dist/pine-core/{p-c2599425.entry.js → p-bd5369b5.entry.js} +2 -2
- package/dist/pine-core/p-bd5369b5.entry.js.map +1 -0
- package/dist/pine-core/{p-2b102034.system.entry.js → p-c28c54c2.system.entry.js} +2 -2
- package/dist/pine-core/p-c28c54c2.system.entry.js.map +1 -0
- package/dist/pine-core/{p-86263a62.entry.js → p-c697e76a.entry.js} +2 -2
- package/dist/pine-core/p-c697e76a.entry.js.map +1 -0
- package/dist/pine-core/{p-25cb810d.entry.js → p-c7175497.entry.js} +2 -2
- package/dist/pine-core/p-c7175497.entry.js.map +1 -0
- package/dist/pine-core/{p-04ad9d2c.system.entry.js → p-ca094b21.system.entry.js} +2 -2
- package/dist/pine-core/p-ca094b21.system.entry.js.map +1 -0
- package/dist/pine-core/{p-07e129db.entry.js → p-d6cff25a.entry.js} +2 -2
- package/dist/pine-core/p-d6cff25a.entry.js.map +1 -0
- package/dist/pine-core/{p-Dq7Wu9rr.system.js.map → p-dWrReyPk.system.js.map} +1 -1
- package/dist/pine-core/{p-f911dde3.system.entry.js → p-db3b827e.system.entry.js} +2 -2
- package/dist/pine-core/p-db3b827e.system.entry.js.map +1 -0
- package/dist/pine-core/{p-1009009c.entry.js → p-de4ebf0b.entry.js} +2 -2
- package/dist/pine-core/p-de4ebf0b.entry.js.map +1 -0
- package/dist/pine-core/{p-6c36cab6.entry.js → p-e25d2c53.entry.js} +2 -2
- package/dist/pine-core/p-e25d2c53.entry.js.map +1 -0
- package/dist/pine-core/{p-2fd7f74e.entry.js → p-e47fbd71.entry.js} +2 -2
- package/dist/pine-core/p-e47fbd71.entry.js.map +1 -0
- package/dist/pine-core/{p-5b1d6cd2.entry.js → p-e4b73c71.entry.js} +2 -2
- package/dist/pine-core/p-e4b73c71.entry.js.map +1 -0
- package/dist/pine-core/p-e87633c0.system.entry.js +2 -0
- package/dist/pine-core/p-e87633c0.system.entry.js.map +1 -0
- package/dist/pine-core/p-e948a514.system.entry.js +2 -0
- package/dist/pine-core/p-e948a514.system.entry.js.map +1 -0
- package/dist/pine-core/p-eb3fe298.system.entry.js +2 -0
- package/dist/pine-core/p-eb3fe298.system.entry.js.map +1 -0
- package/dist/pine-core/{p-9c1bfa68.entry.js → p-ed214033.entry.js} +2 -2
- package/dist/pine-core/p-ed214033.entry.js.map +1 -0
- package/dist/pine-core/{p-d61f3ab0.system.entry.js → p-f38e87ad.system.entry.js} +2 -2
- package/dist/pine-core/p-f38e87ad.system.entry.js.map +1 -0
- package/dist/pine-core/{p-f0e44449.system.entry.js → p-f6020738.system.entry.js} +2 -2
- package/dist/pine-core/p-f6020738.system.entry.js.map +1 -0
- package/dist/pine-core/p-f6049a55.system.entry.js +2 -0
- package/dist/pine-core/p-f6049a55.system.entry.js.map +1 -0
- package/dist/pine-core/{p-00f6f3af.system.entry.js → p-f70327de.system.entry.js} +2 -2
- package/dist/pine-core/p-f70327de.system.entry.js.map +1 -0
- package/dist/pine-core/{p-e702a8dc.system.entry.js → p-f73aef05.system.entry.js} +2 -2
- package/dist/pine-core/p-f73aef05.system.entry.js.map +1 -0
- package/dist/pine-core/{p-1a7cd7a6.entry.js → p-fb877b9d.entry.js} +2 -2
- package/dist/pine-core/p-fb877b9d.entry.js.map +1 -0
- package/dist/pine-core/{p-1c32ffb3.entry.js → p-fbf10641.entry.js} +2 -2
- package/dist/pine-core/p-fbf10641.entry.js.map +1 -0
- package/dist/pine-core/p-fdf7a1db.system.entry.js +2 -0
- package/dist/pine-core/p-fdf7a1db.system.entry.js.map +1 -0
- package/dist/pine-core/p-fe23aa6f.system.entry.js +2 -0
- package/dist/pine-core/p-fe23aa6f.system.entry.js.map +1 -0
- package/dist/pine-core/{p-DmWU0f_O.system.js.map → p-oqHEiE2W.system.js.map} +1 -1
- package/dist/pine-core/p-pKEraGuG.system.js.map +1 -0
- package/dist/pine-core/{p-CyFXZIZs.system.js.map → p-pStt9pIi.system.js.map} +1 -1
- package/dist/pine-core/{p-BG99uNIQ.system.js → p-r1rzi0o4.system.js} +1 -1
- package/dist/pine-core/p-r1rzi0o4.system.js.map +1 -0
- package/dist/pine-core/p-tJa4KYNO.js.map +1 -1
- package/dist/pine-core/{p-4xv5UVkx.system.js.map → p-w6Q6Xc-v.system.js.map} +1 -1
- package/dist/pine-core/{p-CypP0PZf.system.js.map → p-y8wq27x0.system.js.map} +1 -1
- package/dist/pine-core/{p-hop4Cgg5.system.js.map → p-zZn2-0Xb.system.js.map} +1 -1
- package/dist/pine-core/pds-button.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-dropdown-menu.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-modal-content.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-popover.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-sortable.entry.esm.js.map +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/pine-core/pine-core.esm.js.map +1 -1
- package/dist/pine-core/pine-core.js +1 -1
- package/dist/types/components/pds-button/pds-button.d.ts +6 -1
- package/dist/types/components/pds-modal/pds-modal-content/pds-modal-content.d.ts +0 -5
- package/dist/types/components/pds-popover/pds-popover.d.ts +113 -10
- package/dist/types/components/pds-popover/popover-interface.d.ts +0 -4
- package/dist/types/components.d.ts +76 -10
- package/dist/types/stencil-public-runtime.d.ts +83 -8
- package/dist/types/utils/attributes.d.ts +2 -2
- package/dist/types/utils/form.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +1 -1
- package/hydrate/index.d.ts +40 -24
- package/hydrate/index.js +1619 -451
- package/hydrate/index.mjs +1618 -452
- package/package.json +12 -12
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/index-DDTyvZD7.js.map +0 -1
- package/dist/cjs/index-DtnvzYhe.js.map +0 -1
- package/dist/cjs/mock-pds-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-avatar.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-box.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-button.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-chip.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-combobox.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-copytext.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-divider.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-filter.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-filters.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-image.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-input.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-link.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-loader.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-modal-content.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-modal-footer.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-modal-header.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-popover.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-progress.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-property.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-row.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-select.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-sortable-item.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-sortable.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-tab.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-body.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-cell.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-head.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-row.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-tabpanel.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-text.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-textarea.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-toast.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-tooltip.cjs.entry.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/index-Bf1dou5H.js.map +0 -1
- package/dist/esm/index-D4zJBIgl.js.map +0 -1
- package/dist/esm-es5/app-globals-DQuL1Twl.js +0 -2
- package/dist/esm-es5/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm-es5/index-Bf1dou5H.js +0 -3
- package/dist/esm-es5/index-Bf1dou5H.js.map +0 -1
- package/dist/esm-es5/index-D4zJBIgl.js.map +0 -1
- package/dist/pine-core/p-00f6f3af.system.entry.js.map +0 -1
- package/dist/pine-core/p-0486ecc6.system.entry.js.map +0 -1
- package/dist/pine-core/p-04ad9d2c.system.entry.js.map +0 -1
- package/dist/pine-core/p-07e129db.entry.js.map +0 -1
- package/dist/pine-core/p-0b593535.system.entry.js +0 -2
- package/dist/pine-core/p-0b593535.system.entry.js.map +0 -1
- package/dist/pine-core/p-1009009c.entry.js.map +0 -1
- package/dist/pine-core/p-100de2b7.entry.js.map +0 -1
- package/dist/pine-core/p-1039e8e9.entry.js.map +0 -1
- package/dist/pine-core/p-18179981.system.entry.js.map +0 -1
- package/dist/pine-core/p-1a7cd7a6.entry.js.map +0 -1
- package/dist/pine-core/p-1c32ffb3.entry.js.map +0 -1
- package/dist/pine-core/p-1d127ddc.system.entry.js +0 -2
- package/dist/pine-core/p-1d127ddc.system.entry.js.map +0 -1
- package/dist/pine-core/p-25cb810d.entry.js.map +0 -1
- package/dist/pine-core/p-2b102034.system.entry.js.map +0 -1
- package/dist/pine-core/p-2b12bc55.system.entry.js +0 -2
- package/dist/pine-core/p-2b12bc55.system.entry.js.map +0 -1
- package/dist/pine-core/p-2c407961.entry.js.map +0 -1
- package/dist/pine-core/p-2efc646c.system.entry.js +0 -2
- package/dist/pine-core/p-2efc646c.system.entry.js.map +0 -1
- package/dist/pine-core/p-2fd7f74e.entry.js.map +0 -1
- package/dist/pine-core/p-302849cf.system.entry.js +0 -2
- package/dist/pine-core/p-302849cf.system.entry.js.map +0 -1
- package/dist/pine-core/p-307f415a.system.entry.js.map +0 -1
- package/dist/pine-core/p-332338ee.entry.js +0 -2
- package/dist/pine-core/p-332338ee.entry.js.map +0 -1
- package/dist/pine-core/p-378df5eb.system.entry.js.map +0 -1
- package/dist/pine-core/p-3cc92094.system.entry.js.map +0 -1
- package/dist/pine-core/p-41abb654.entry.js +0 -2
- package/dist/pine-core/p-41abb654.entry.js.map +0 -1
- package/dist/pine-core/p-45d574f1.system.entry.js +0 -2
- package/dist/pine-core/p-45d574f1.system.entry.js.map +0 -1
- package/dist/pine-core/p-4802f8de.system.entry.js.map +0 -1
- package/dist/pine-core/p-4c6ec7c4.entry.js +0 -2
- package/dist/pine-core/p-4c6ec7c4.entry.js.map +0 -1
- package/dist/pine-core/p-4ef17b95.system.entry.js.map +0 -1
- package/dist/pine-core/p-538b3902.system.entry.js.map +0 -1
- package/dist/pine-core/p-544fea4c.system.entry.js.map +0 -1
- package/dist/pine-core/p-5ac7af9e.entry.js.map +0 -1
- package/dist/pine-core/p-5b1d6cd2.entry.js.map +0 -1
- package/dist/pine-core/p-6381a811.system.entry.js.map +0 -1
- package/dist/pine-core/p-6c36cab6.entry.js.map +0 -1
- package/dist/pine-core/p-6d48604a.system.entry.js.map +0 -1
- package/dist/pine-core/p-725c350c.entry.js.map +0 -1
- package/dist/pine-core/p-7792f47d.system.entry.js +0 -2
- package/dist/pine-core/p-7792f47d.system.entry.js.map +0 -1
- package/dist/pine-core/p-7af21e83.system.entry.js.map +0 -1
- package/dist/pine-core/p-81972d0f.entry.js +0 -2
- package/dist/pine-core/p-81972d0f.entry.js.map +0 -1
- package/dist/pine-core/p-81bc089e.entry.js +0 -2
- package/dist/pine-core/p-81bc089e.entry.js.map +0 -1
- package/dist/pine-core/p-85c41629.entry.js.map +0 -1
- package/dist/pine-core/p-86263a62.entry.js.map +0 -1
- package/dist/pine-core/p-87ed43d5.entry.js +0 -2
- package/dist/pine-core/p-87ed43d5.entry.js.map +0 -1
- package/dist/pine-core/p-88773b86.entry.js.map +0 -1
- package/dist/pine-core/p-8b3f4c31.entry.js +0 -2
- package/dist/pine-core/p-8b3f4c31.entry.js.map +0 -1
- package/dist/pine-core/p-8ff41ba8.entry.js.map +0 -1
- package/dist/pine-core/p-90e83476.system.entry.js.map +0 -1
- package/dist/pine-core/p-96a60a99.entry.js.map +0 -1
- package/dist/pine-core/p-96c27dba.entry.js.map +0 -1
- package/dist/pine-core/p-97299c83.system.entry.js.map +0 -1
- package/dist/pine-core/p-972a511a.entry.js.map +0 -1
- package/dist/pine-core/p-9766923f.entry.js.map +0 -1
- package/dist/pine-core/p-9ac84e63.entry.js.map +0 -1
- package/dist/pine-core/p-9b335a9f.entry.js.map +0 -1
- package/dist/pine-core/p-9c1bfa68.entry.js.map +0 -1
- package/dist/pine-core/p-9c579956.system.entry.js +0 -2
- package/dist/pine-core/p-9c579956.system.entry.js.map +0 -1
- package/dist/pine-core/p-9fbb9f0e.system.entry.js.map +0 -1
- package/dist/pine-core/p-BG99uNIQ.system.js.map +0 -1
- package/dist/pine-core/p-BPjnTOEL.system.js +0 -2
- package/dist/pine-core/p-BPjnTOEL.system.js.map +0 -1
- package/dist/pine-core/p-BbPAtVJG.system.js +0 -2
- package/dist/pine-core/p-BbPAtVJG.system.js.map +0 -1
- package/dist/pine-core/p-Bf1dou5H.js +0 -3
- package/dist/pine-core/p-Bf1dou5H.js.map +0 -1
- package/dist/pine-core/p-CIBXMJd-.system.js.map +0 -1
- package/dist/pine-core/p-Cqzmj3D8.system.js.map +0 -1
- package/dist/pine-core/p-CwNRZQss.system.js.map +0 -1
- package/dist/pine-core/p-Cxvdulqq.system.js +0 -3
- package/dist/pine-core/p-Cxvdulqq.system.js.map +0 -1
- package/dist/pine-core/p-D4zJBIgl.js.map +0 -1
- package/dist/pine-core/p-DCjZr2HA.system.js.map +0 -1
- package/dist/pine-core/p-DQuL1Twl.js +0 -2
- package/dist/pine-core/p-DQuL1Twl.js.map +0 -1
- package/dist/pine-core/p-WWWd_vEd.system.js +0 -2
- package/dist/pine-core/p-WWWd_vEd.system.js.map +0 -1
- package/dist/pine-core/p-a707a7da.system.entry.js +0 -2
- package/dist/pine-core/p-a707a7da.system.entry.js.map +0 -1
- package/dist/pine-core/p-a9cfaa1f.entry.js.map +0 -1
- package/dist/pine-core/p-ae2d59cd.entry.js.map +0 -1
- package/dist/pine-core/p-b23dd01c.entry.js.map +0 -1
- package/dist/pine-core/p-b669e1d9.entry.js +0 -2
- package/dist/pine-core/p-b669e1d9.entry.js.map +0 -1
- package/dist/pine-core/p-b9aafec7.system.entry.js.map +0 -1
- package/dist/pine-core/p-b9e12535.system.entry.js.map +0 -1
- package/dist/pine-core/p-bc2530d7.entry.js +0 -2
- package/dist/pine-core/p-bc2530d7.entry.js.map +0 -1
- package/dist/pine-core/p-bc637bed.system.entry.js.map +0 -1
- package/dist/pine-core/p-c2599425.entry.js.map +0 -1
- package/dist/pine-core/p-c3f84df8.system.entry.js.map +0 -1
- package/dist/pine-core/p-c44d3551.entry.js.map +0 -1
- package/dist/pine-core/p-c55fc47e.entry.js.map +0 -1
- package/dist/pine-core/p-cffc98ae.entry.js.map +0 -1
- package/dist/pine-core/p-d2b15290.system.entry.js +0 -2
- package/dist/pine-core/p-d2b15290.system.entry.js.map +0 -1
- package/dist/pine-core/p-d61f3ab0.system.entry.js.map +0 -1
- package/dist/pine-core/p-da1fb45d.system.entry.js.map +0 -1
- package/dist/pine-core/p-dace69e7.system.entry.js.map +0 -1
- package/dist/pine-core/p-db12273e.system.entry.js.map +0 -1
- package/dist/pine-core/p-e18c3044.entry.js.map +0 -1
- package/dist/pine-core/p-e6085566.system.entry.js +0 -2
- package/dist/pine-core/p-e6085566.system.entry.js.map +0 -1
- package/dist/pine-core/p-e683e197.system.entry.js +0 -2
- package/dist/pine-core/p-e683e197.system.entry.js.map +0 -1
- package/dist/pine-core/p-e692908e.entry.js.map +0 -1
- package/dist/pine-core/p-e6b051e8.system.entry.js +0 -2
- package/dist/pine-core/p-e6b051e8.system.entry.js.map +0 -1
- package/dist/pine-core/p-e702a8dc.system.entry.js.map +0 -1
- package/dist/pine-core/p-ed724664.system.entry.js +0 -2
- package/dist/pine-core/p-ed724664.system.entry.js.map +0 -1
- package/dist/pine-core/p-ed7bea99.system.entry.js +0 -2
- package/dist/pine-core/p-ed7bea99.system.entry.js.map +0 -1
- package/dist/pine-core/p-ee583234.system.entry.js.map +0 -1
- package/dist/pine-core/p-f0e44449.system.entry.js.map +0 -1
- package/dist/pine-core/p-f15cd180.entry.js +0 -2
- package/dist/pine-core/p-f15cd180.entry.js.map +0 -1
- package/dist/pine-core/p-f25274c9.entry.js.map +0 -1
- package/dist/pine-core/p-f5d78141.entry.js.map +0 -1
- package/dist/pine-core/p-f61ee383.system.entry.js.map +0 -1
- package/dist/pine-core/p-f8e1545e.entry.js.map +0 -1
- package/dist/pine-core/p-f911dde3.system.entry.js.map +0 -1
- package/dist/pine-core/p-fc2f3466.system.entry.js +0 -2
- package/dist/pine-core/p-fc2f3466.system.entry.js.map +0 -1
- package/dist/pine-core/p-fe60ee09.entry.js +0 -2
- package/dist/pine-core/p-fe60ee09.entry.js.map +0 -1
package/hydrate/index.mjs
CHANGED
|
@@ -32,6 +32,7 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
32
32
|
var CharacterData = $stencilWindow.CharacterData;
|
|
33
33
|
var CSS = $stencilWindow.CSS;
|
|
34
34
|
var CustomEvent = $stencilWindow.CustomEvent;
|
|
35
|
+
var CSSStyleSheet = $stencilWindow.CSSStyleSheet;
|
|
35
36
|
var Document = $stencilWindow.Document;
|
|
36
37
|
var ShadowRoot = $stencilWindow.ShadowRoot;
|
|
37
38
|
var DocumentFragment = $stencilWindow.DocumentFragment;
|
|
@@ -124,10 +125,10 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
124
125
|
|
|
125
126
|
|
|
126
127
|
const NAMESPACE = 'pine-core';
|
|
127
|
-
const BUILD = /* pine-core */ { hydratedSelectorName: "hydrated", slotRelocation: true, updatable: true};
|
|
128
|
+
const BUILD = /* pine-core */ { hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
|
|
128
129
|
|
|
129
130
|
/*
|
|
130
|
-
Stencil Hydrate Platform v4.
|
|
131
|
+
Stencil Hydrate Platform v4.38.3 | MIT Licensed | https://stenciljs.com
|
|
131
132
|
*/
|
|
132
133
|
var __defProp = Object.defineProperty;
|
|
133
134
|
var __export = (target, all) => {
|
|
@@ -138,6 +139,64 @@ var __export = (target, all) => {
|
|
|
138
139
|
// src/utils/constants.ts
|
|
139
140
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
140
141
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
142
|
+
var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
|
|
143
|
+
PrimitiveType2["Undefined"] = "undefined";
|
|
144
|
+
PrimitiveType2["Null"] = "null";
|
|
145
|
+
PrimitiveType2["String"] = "string";
|
|
146
|
+
PrimitiveType2["Number"] = "number";
|
|
147
|
+
PrimitiveType2["SpecialNumber"] = "number";
|
|
148
|
+
PrimitiveType2["Boolean"] = "boolean";
|
|
149
|
+
PrimitiveType2["BigInt"] = "bigint";
|
|
150
|
+
return PrimitiveType2;
|
|
151
|
+
})(PrimitiveType || {});
|
|
152
|
+
var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
153
|
+
NonPrimitiveType2["Array"] = "array";
|
|
154
|
+
NonPrimitiveType2["Date"] = "date";
|
|
155
|
+
NonPrimitiveType2["Map"] = "map";
|
|
156
|
+
NonPrimitiveType2["Object"] = "object";
|
|
157
|
+
NonPrimitiveType2["RegularExpression"] = "regexp";
|
|
158
|
+
NonPrimitiveType2["Set"] = "set";
|
|
159
|
+
NonPrimitiveType2["Channel"] = "channel";
|
|
160
|
+
NonPrimitiveType2["Symbol"] = "symbol";
|
|
161
|
+
return NonPrimitiveType2;
|
|
162
|
+
})(NonPrimitiveType || {});
|
|
163
|
+
var TYPE_CONSTANT = "type";
|
|
164
|
+
var VALUE_CONSTANT = "value";
|
|
165
|
+
var SERIALIZED_PREFIX = "serialized:";
|
|
166
|
+
|
|
167
|
+
// src/utils/es2022-rewire-class-members.ts
|
|
168
|
+
var reWireGetterSetter = (instance, hostRef) => {
|
|
169
|
+
var _a;
|
|
170
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
171
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
172
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
173
|
+
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
174
|
+
const ogValue = instance[memberName];
|
|
175
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
176
|
+
if (ogDescriptor) {
|
|
177
|
+
Object.defineProperty(instance, memberName, {
|
|
178
|
+
get() {
|
|
179
|
+
return ogDescriptor.get.call(this);
|
|
180
|
+
},
|
|
181
|
+
set(newValue) {
|
|
182
|
+
ogDescriptor.set.call(this, newValue);
|
|
183
|
+
},
|
|
184
|
+
configurable: true,
|
|
185
|
+
enumerable: true
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
};
|
|
192
|
+
function getPropertyDescriptor(obj, memberName) {
|
|
193
|
+
while (obj) {
|
|
194
|
+
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
195
|
+
if (desc == null ? void 0 : desc.get) return desc;
|
|
196
|
+
obj = Object.getPrototypeOf(obj);
|
|
197
|
+
}
|
|
198
|
+
return void 0;
|
|
199
|
+
}
|
|
141
200
|
|
|
142
201
|
// src/utils/helpers.ts
|
|
143
202
|
var isDef = (v) => v != null && v !== void 0;
|
|
@@ -157,6 +216,101 @@ var escapeRegExpSpecialCharacters = (text) => {
|
|
|
157
216
|
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
158
217
|
};
|
|
159
218
|
|
|
219
|
+
// src/utils/remote-value.ts
|
|
220
|
+
var RemoteValue = class _RemoteValue {
|
|
221
|
+
/**
|
|
222
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
223
|
+
*
|
|
224
|
+
* @param serialized The serialized LocalValue object
|
|
225
|
+
* @returns The original JavaScript value/object
|
|
226
|
+
*/
|
|
227
|
+
static fromLocalValue(serialized) {
|
|
228
|
+
const type = serialized[TYPE_CONSTANT];
|
|
229
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
230
|
+
switch (type) {
|
|
231
|
+
case "string" /* String */:
|
|
232
|
+
return value;
|
|
233
|
+
case "boolean" /* Boolean */:
|
|
234
|
+
return value;
|
|
235
|
+
case "bigint" /* BigInt */:
|
|
236
|
+
return BigInt(value);
|
|
237
|
+
case "undefined" /* Undefined */:
|
|
238
|
+
return void 0;
|
|
239
|
+
case "null" /* Null */:
|
|
240
|
+
return null;
|
|
241
|
+
case "number" /* Number */:
|
|
242
|
+
if (value === "NaN") return NaN;
|
|
243
|
+
if (value === "-0") return -0;
|
|
244
|
+
if (value === "Infinity") return Infinity;
|
|
245
|
+
if (value === "-Infinity") return -Infinity;
|
|
246
|
+
return value;
|
|
247
|
+
case "array" /* Array */:
|
|
248
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
249
|
+
case "date" /* Date */:
|
|
250
|
+
return new Date(value);
|
|
251
|
+
case "map" /* Map */:
|
|
252
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
253
|
+
for (const [key, val] of value) {
|
|
254
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
255
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
256
|
+
map2.set(deserializedKey, deserializedValue);
|
|
257
|
+
}
|
|
258
|
+
return map2;
|
|
259
|
+
case "object" /* Object */:
|
|
260
|
+
const obj = {};
|
|
261
|
+
for (const [key, val] of value) {
|
|
262
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
263
|
+
}
|
|
264
|
+
return obj;
|
|
265
|
+
case "regexp" /* RegularExpression */:
|
|
266
|
+
const { pattern, flags } = value;
|
|
267
|
+
return new RegExp(pattern, flags);
|
|
268
|
+
case "set" /* Set */:
|
|
269
|
+
const set = /* @__PURE__ */ new Set();
|
|
270
|
+
for (const item of value) {
|
|
271
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
272
|
+
}
|
|
273
|
+
return set;
|
|
274
|
+
case "symbol" /* Symbol */:
|
|
275
|
+
return Symbol(value);
|
|
276
|
+
default:
|
|
277
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
282
|
+
*
|
|
283
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
284
|
+
* @returns Array of deserialized JavaScript values
|
|
285
|
+
*/
|
|
286
|
+
static fromLocalValueArray(serializedValues) {
|
|
287
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
291
|
+
*
|
|
292
|
+
* @param obj Object to verify
|
|
293
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
294
|
+
*/
|
|
295
|
+
static isLocalValueObject(obj) {
|
|
296
|
+
if (typeof obj !== "object" || obj === null) {
|
|
297
|
+
return false;
|
|
298
|
+
}
|
|
299
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
300
|
+
return false;
|
|
301
|
+
}
|
|
302
|
+
const type = obj[TYPE_CONSTANT];
|
|
303
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
304
|
+
if (!hasTypeProperty) {
|
|
305
|
+
return false;
|
|
306
|
+
}
|
|
307
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
308
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
309
|
+
}
|
|
310
|
+
return true;
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
|
|
160
314
|
// src/utils/result.ts
|
|
161
315
|
var result_exports = {};
|
|
162
316
|
__export(result_exports, {
|
|
@@ -206,6 +360,32 @@ var unwrapErr = (result) => {
|
|
|
206
360
|
}
|
|
207
361
|
};
|
|
208
362
|
|
|
363
|
+
// src/utils/serialize.ts
|
|
364
|
+
function deserializeProperty(value) {
|
|
365
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
366
|
+
return value;
|
|
367
|
+
}
|
|
368
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
// src/utils/style.ts
|
|
372
|
+
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
373
|
+
return void 0;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// src/utils/shadow-root.ts
|
|
377
|
+
var globalStyleSheet;
|
|
378
|
+
function createShadowRoot(cmpMeta) {
|
|
379
|
+
var _a;
|
|
380
|
+
const shadowRoot = this.attachShadow({ mode: "open" });
|
|
381
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
|
|
382
|
+
if (globalStyleSheet) {
|
|
383
|
+
{
|
|
384
|
+
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
209
389
|
// src/runtime/runtime-constants.ts
|
|
210
390
|
var CONTENT_REF_ID = "r";
|
|
211
391
|
var ORG_LOCATION_ID = "o";
|
|
@@ -329,7 +509,7 @@ function patchSlotNode(node) {
|
|
|
329
509
|
const slotName = this["s-sn"];
|
|
330
510
|
if (opts == null ? void 0 : opts.flatten) {
|
|
331
511
|
console.error(`
|
|
332
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
512
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
333
513
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
334
514
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
335
515
|
`);
|
|
@@ -373,6 +553,94 @@ var uniqueTime = (key, measureText) => {
|
|
|
373
553
|
};
|
|
374
554
|
}
|
|
375
555
|
};
|
|
556
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
557
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
558
|
+
let style = styles.get(scopeId2);
|
|
559
|
+
{
|
|
560
|
+
style = cssText;
|
|
561
|
+
}
|
|
562
|
+
styles.set(scopeId2, style);
|
|
563
|
+
};
|
|
564
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
565
|
+
var _a;
|
|
566
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
567
|
+
const style = styles.get(scopeId2);
|
|
568
|
+
if (!win.document) {
|
|
569
|
+
return scopeId2;
|
|
570
|
+
}
|
|
571
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
572
|
+
if (style) {
|
|
573
|
+
if (typeof style === "string") {
|
|
574
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
575
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
576
|
+
let styleElm;
|
|
577
|
+
if (!appliedStyles) {
|
|
578
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
579
|
+
}
|
|
580
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
581
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
582
|
+
styleElm.innerHTML = style;
|
|
583
|
+
} else {
|
|
584
|
+
styleElm = win.document.createElement("style");
|
|
585
|
+
styleElm.innerHTML = style;
|
|
586
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
587
|
+
if (nonce != null) {
|
|
588
|
+
styleElm.setAttribute("nonce", nonce);
|
|
589
|
+
}
|
|
590
|
+
if ((cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
591
|
+
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
592
|
+
}
|
|
593
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
594
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
595
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
596
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
597
|
+
styleContainerNode.insertBefore(
|
|
598
|
+
styleElm,
|
|
599
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
600
|
+
);
|
|
601
|
+
} else if ("host" in styleContainerNode) {
|
|
602
|
+
{
|
|
603
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
604
|
+
if (existingStyleContainer) {
|
|
605
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
606
|
+
} else {
|
|
607
|
+
styleContainerNode.prepend(styleElm);
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
} else {
|
|
611
|
+
styleContainerNode.append(styleElm);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
615
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
619
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
620
|
+
}
|
|
621
|
+
if (appliedStyles) {
|
|
622
|
+
appliedStyles.add(scopeId2);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
return scopeId2;
|
|
628
|
+
};
|
|
629
|
+
var attachStyles = (hostRef) => {
|
|
630
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
631
|
+
const elm = hostRef.$hostElement$;
|
|
632
|
+
const flags = cmpMeta.$flags$;
|
|
633
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
634
|
+
const scopeId2 = addStyle(
|
|
635
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
636
|
+
cmpMeta);
|
|
637
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
638
|
+
elm["s-sc"] = scopeId2;
|
|
639
|
+
elm.classList.add(scopeId2 + "-h");
|
|
640
|
+
}
|
|
641
|
+
endAttachStyles();
|
|
642
|
+
};
|
|
643
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
376
644
|
var h = (nodeName, vnodeData, ...children) => {
|
|
377
645
|
let child = null;
|
|
378
646
|
let key = null;
|
|
@@ -487,6 +755,7 @@ var convertToPrivate = (node) => {
|
|
|
487
755
|
|
|
488
756
|
// src/runtime/client-hydrate.ts
|
|
489
757
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
758
|
+
var _a, _b;
|
|
490
759
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
491
760
|
const shadowRoot = hostElm.shadowRoot;
|
|
492
761
|
const childRenderNodes = [];
|
|
@@ -533,6 +802,16 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
533
802
|
if (childRenderNode.$tag$ === "slot") {
|
|
534
803
|
node["s-cr"] = hostElm["s-cr"];
|
|
535
804
|
}
|
|
805
|
+
} else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
806
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
807
|
+
if (cmpMeta) {
|
|
808
|
+
const scopeId3 = getScopeId(
|
|
809
|
+
cmpMeta.$cmpMeta$);
|
|
810
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
811
|
+
if (styleSheet) {
|
|
812
|
+
hostElm.shadowRoot.append(styleSheet.cloneNode(true));
|
|
813
|
+
}
|
|
814
|
+
}
|
|
536
815
|
}
|
|
537
816
|
if (childRenderNode.$tag$ === "slot") {
|
|
538
817
|
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
@@ -548,7 +827,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
548
827
|
}
|
|
549
828
|
}
|
|
550
829
|
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
551
|
-
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
830
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
552
831
|
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
553
832
|
}
|
|
554
833
|
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
@@ -556,7 +835,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
556
835
|
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
557
836
|
}
|
|
558
837
|
}
|
|
559
|
-
|
|
838
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
839
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
840
|
+
}
|
|
560
841
|
}
|
|
561
842
|
const hosts = [];
|
|
562
843
|
const snLen = slottedNodes.length;
|
|
@@ -577,17 +858,22 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
577
858
|
}
|
|
578
859
|
if (!hosts[slottedItem.hostId]) continue;
|
|
579
860
|
const hostEle = hosts[slottedItem.hostId];
|
|
861
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
862
|
+
hostEle.appendChild(slottedItem.node);
|
|
863
|
+
}
|
|
580
864
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
581
|
-
slottedItem.slot["s-cr"]
|
|
582
|
-
|
|
583
|
-
slottedItem.slot["s-cr"]
|
|
584
|
-
|
|
585
|
-
|
|
865
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
866
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
867
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
868
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
869
|
+
} else {
|
|
870
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
871
|
+
}
|
|
586
872
|
}
|
|
587
873
|
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
874
|
+
if (((_b = slottedItem.node.parentElement) == null ? void 0 : _b.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
875
|
+
slottedItem.node.removeAttribute("slot");
|
|
876
|
+
}
|
|
591
877
|
}
|
|
592
878
|
}
|
|
593
879
|
}
|
|
@@ -596,25 +882,27 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
596
882
|
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
597
883
|
});
|
|
598
884
|
}
|
|
599
|
-
if (shadowRoot
|
|
885
|
+
if (shadowRoot) {
|
|
600
886
|
let rnIdex = 0;
|
|
601
887
|
const rnLen = shadowRootNodes.length;
|
|
602
888
|
if (rnLen) {
|
|
603
889
|
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
604
|
-
|
|
890
|
+
const node = shadowRootNodes[rnIdex];
|
|
891
|
+
if (node) {
|
|
892
|
+
shadowRoot.appendChild(node);
|
|
893
|
+
}
|
|
605
894
|
}
|
|
606
895
|
Array.from(hostElm.childNodes).forEach((node) => {
|
|
607
|
-
if (typeof node["s-sn"] !== "string") {
|
|
896
|
+
if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
|
|
608
897
|
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
609
898
|
node.removeAttribute("hidden");
|
|
610
|
-
} else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
899
|
+
} else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
611
900
|
node.parentNode.removeChild(node);
|
|
612
901
|
}
|
|
613
902
|
}
|
|
614
903
|
});
|
|
615
904
|
}
|
|
616
905
|
}
|
|
617
|
-
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
618
906
|
hostRef.$hostElement$ = hostElm;
|
|
619
907
|
endHydrate();
|
|
620
908
|
};
|
|
@@ -646,7 +934,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
646
934
|
if (!parentVNode.$children$) {
|
|
647
935
|
parentVNode.$children$ = [];
|
|
648
936
|
}
|
|
649
|
-
if (scopeId2) {
|
|
937
|
+
if (scopeId2 && childIdSplt[0] === hostId) {
|
|
650
938
|
node["s-si"] = scopeId2;
|
|
651
939
|
childVNode.$attrs$.class += " " + scopeId2;
|
|
652
940
|
}
|
|
@@ -776,7 +1064,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
776
1064
|
vnode.$index$ = "0";
|
|
777
1065
|
parentVNode.$children$ = [vnode];
|
|
778
1066
|
} else {
|
|
779
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1067
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
|
|
780
1068
|
node.remove();
|
|
781
1069
|
}
|
|
782
1070
|
}
|
|
@@ -834,10 +1122,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
834
1122
|
if (childVNode.$name$) {
|
|
835
1123
|
childVNode.$elm$.setAttribute("name", slotName);
|
|
836
1124
|
}
|
|
837
|
-
if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
838
|
-
parentVNode.$elm
|
|
1125
|
+
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1126
|
+
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
|
839
1127
|
} else {
|
|
840
|
-
node
|
|
1128
|
+
internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
|
|
841
1129
|
}
|
|
842
1130
|
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
843
1131
|
node.remove();
|
|
@@ -852,8 +1140,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
852
1140
|
if (shouldMove) {
|
|
853
1141
|
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
854
1142
|
}
|
|
855
|
-
childRenderNodes.push(childVNode);
|
|
856
1143
|
}
|
|
1144
|
+
childRenderNodes.push(childVNode);
|
|
857
1145
|
slotNodes.push(childVNode);
|
|
858
1146
|
if (!parentVNode.$children$) {
|
|
859
1147
|
parentVNode.$children$ = [];
|
|
@@ -861,13 +1149,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
861
1149
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
862
1150
|
}
|
|
863
1151
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1152
|
+
var _a, _b;
|
|
864
1153
|
let slottedNode = slotNode.nextSibling;
|
|
865
1154
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
1155
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1156
|
+
do {
|
|
1157
|
+
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
1158
|
+
slottedNode["s-sn"] = slotName;
|
|
1159
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1160
|
+
}
|
|
1161
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1162
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
871
1163
|
};
|
|
872
1164
|
var findCorrespondingNode = (node, type) => {
|
|
873
1165
|
let sibling = node;
|
|
@@ -892,6 +1184,12 @@ var findCorrespondingNode = (node, type) => {
|
|
|
892
1184
|
var safeSelector = (selector) => {
|
|
893
1185
|
const placeholders = [];
|
|
894
1186
|
let index = 0;
|
|
1187
|
+
selector = selector.replace(/(\[\s*part~=\s*("[^"]*"|'[^']*')\s*\])/g, (_, keep) => {
|
|
1188
|
+
const replaceBy = `__part-${index}__`;
|
|
1189
|
+
placeholders.push(keep);
|
|
1190
|
+
index++;
|
|
1191
|
+
return replaceBy;
|
|
1192
|
+
});
|
|
895
1193
|
selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
|
|
896
1194
|
const replaceBy = `__ph-${index}__`;
|
|
897
1195
|
placeholders.push(keep);
|
|
@@ -911,6 +1209,7 @@ var safeSelector = (selector) => {
|
|
|
911
1209
|
return ss;
|
|
912
1210
|
};
|
|
913
1211
|
var restoreSafeSelector = (placeholders, content) => {
|
|
1212
|
+
content = content.replace(/__part-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
914
1213
|
return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
915
1214
|
};
|
|
916
1215
|
var _polyfillHost = "-shadowcsshost";
|
|
@@ -923,9 +1222,18 @@ var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim"
|
|
|
923
1222
|
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
924
1223
|
var _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
|
925
1224
|
var _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
|
1225
|
+
var _safePartRe = /__part-(\d+)__/g;
|
|
926
1226
|
var _selectorReSuffix = "([>\\s~+[.,{:][\\s\\S]*)?$";
|
|
927
1227
|
var _polyfillHostRe = /-shadowcsshost/gim;
|
|
928
|
-
var createSupportsRuleRe = (selector) =>
|
|
1228
|
+
var createSupportsRuleRe = (selector) => {
|
|
1229
|
+
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
1230
|
+
return new RegExp(
|
|
1231
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
1232
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
1233
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
1234
|
+
"g"
|
|
1235
|
+
);
|
|
1236
|
+
};
|
|
929
1237
|
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
930
1238
|
var _colonHostRe = createSupportsRuleRe(":host");
|
|
931
1239
|
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
@@ -1000,7 +1308,16 @@ var escapeBlocks = (input) => {
|
|
|
1000
1308
|
return strEscapedBlocks;
|
|
1001
1309
|
};
|
|
1002
1310
|
var insertPolyfillHostInCssText = (cssText) => {
|
|
1311
|
+
const supportsBlocks = [];
|
|
1312
|
+
cssText = cssText.replace(/@supports\s+selector\s*\(\s*([^)]*)\s*\)/g, (_, selectorContent) => {
|
|
1313
|
+
const placeholder = `__supports_${supportsBlocks.length}__`;
|
|
1314
|
+
supportsBlocks.push(selectorContent);
|
|
1315
|
+
return `@supports selector(${placeholder})`;
|
|
1316
|
+
});
|
|
1003
1317
|
cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);
|
|
1318
|
+
supportsBlocks.forEach((originalSelector, index) => {
|
|
1319
|
+
cssText = cssText.replace(`__supports_${index}__`, originalSelector);
|
|
1320
|
+
});
|
|
1004
1321
|
return cssText;
|
|
1005
1322
|
};
|
|
1006
1323
|
var convertColonRule = (cssText, regExp, partReplacer) => {
|
|
@@ -1120,7 +1437,7 @@ var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
|
1120
1437
|
let scopedSelector = "";
|
|
1121
1438
|
let startIndex = 0;
|
|
1122
1439
|
let res;
|
|
1123
|
-
const sep = /( |>|\+|~(?!=))\s*/g;
|
|
1440
|
+
const sep = /( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g;
|
|
1124
1441
|
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
1125
1442
|
let shouldScope = !hasHost;
|
|
1126
1443
|
while ((res = sep.exec(selector)) !== null) {
|
|
@@ -1132,7 +1449,7 @@ var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
|
1132
1449
|
startIndex = sep.lastIndex;
|
|
1133
1450
|
}
|
|
1134
1451
|
const part = selector.substring(startIndex);
|
|
1135
|
-
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
1452
|
+
shouldScope = !part.match(_safePartRe) && (shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1);
|
|
1136
1453
|
scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
|
|
1137
1454
|
return restoreSafeSelector(safeContent.placeholders, scopedSelector);
|
|
1138
1455
|
};
|
|
@@ -1189,6 +1506,36 @@ var scopeCssText = (cssText, scopeId2, hostScopeId, slotScopeId, commentOriginal
|
|
|
1189
1506
|
var replaceShadowCssHost = (cssText, hostScopeId) => {
|
|
1190
1507
|
return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
|
|
1191
1508
|
};
|
|
1509
|
+
var expandPartSelectors = (cssText) => {
|
|
1510
|
+
const partSelectorRe = /([^\s,{][^,{]*?)::part\(\s*([^)]+?)\s*\)((?:[:.][^,{]*)*)/g;
|
|
1511
|
+
return processRules(cssText, (rule) => {
|
|
1512
|
+
if (rule.selector[0] === "@") {
|
|
1513
|
+
return rule;
|
|
1514
|
+
}
|
|
1515
|
+
const selectors = rule.selector.split(",").map((sel) => {
|
|
1516
|
+
const out = [sel.trim()];
|
|
1517
|
+
let m;
|
|
1518
|
+
while ((m = partSelectorRe.exec(sel)) !== null) {
|
|
1519
|
+
const before = m[1].trimEnd();
|
|
1520
|
+
const partNames = m[2].trim().split(/\s+/);
|
|
1521
|
+
const after = m[3] || "";
|
|
1522
|
+
const partAttr = partNames.flatMap((p) => {
|
|
1523
|
+
if (!rule.selector.includes(`[part~="${p}"]`)) {
|
|
1524
|
+
return [`[part~="${p}"]`];
|
|
1525
|
+
}
|
|
1526
|
+
return [];
|
|
1527
|
+
}).join("");
|
|
1528
|
+
const expanded = `${before} ${partAttr}${after}`;
|
|
1529
|
+
if (!!partAttr && expanded !== sel.trim()) {
|
|
1530
|
+
out.push(expanded);
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
return out.join(", ");
|
|
1534
|
+
});
|
|
1535
|
+
rule.selector = selectors.join(", ");
|
|
1536
|
+
return rule;
|
|
1537
|
+
});
|
|
1538
|
+
};
|
|
1192
1539
|
var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
1193
1540
|
const hostScopeId = scopeId2 + "-h";
|
|
1194
1541
|
const slotScopeId = scopeId2 + "-s";
|
|
@@ -1224,15 +1571,24 @@ var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
|
1224
1571
|
const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector), "g");
|
|
1225
1572
|
cssText = cssText.replace(regex, slottedSelector.updatedSelector);
|
|
1226
1573
|
});
|
|
1574
|
+
cssText = expandPartSelectors(cssText);
|
|
1227
1575
|
return cssText;
|
|
1228
1576
|
};
|
|
1229
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
1577
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
1578
|
+
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1579
|
+
propValue = deserializeProperty(propValue);
|
|
1580
|
+
return propValue;
|
|
1581
|
+
}
|
|
1230
1582
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1231
1583
|
if (propType & 4 /* Boolean */) {
|
|
1232
|
-
|
|
1584
|
+
if (isFormAssociated && typeof propValue === "string") {
|
|
1585
|
+
return propValue === "" || !!propValue;
|
|
1586
|
+
} else {
|
|
1587
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1588
|
+
}
|
|
1233
1589
|
}
|
|
1234
1590
|
if (propType & 2 /* Number */) {
|
|
1235
|
-
return parseFloat(propValue);
|
|
1591
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
1236
1592
|
}
|
|
1237
1593
|
if (propType & 1 /* String */) {
|
|
1238
1594
|
return String(propValue);
|
|
@@ -1241,7 +1597,10 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
1241
1597
|
}
|
|
1242
1598
|
return propValue;
|
|
1243
1599
|
};
|
|
1244
|
-
var getElement = (ref) =>
|
|
1600
|
+
var getElement = (ref) => {
|
|
1601
|
+
var _a;
|
|
1602
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
1603
|
+
};
|
|
1245
1604
|
|
|
1246
1605
|
// src/runtime/event-emitter.ts
|
|
1247
1606
|
var createEvent = (ref, name, flags) => {
|
|
@@ -1262,94 +1621,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
1262
1621
|
elm.dispatchEvent(ev);
|
|
1263
1622
|
return ev;
|
|
1264
1623
|
};
|
|
1265
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1266
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1267
|
-
let style = styles.get(scopeId2);
|
|
1268
|
-
{
|
|
1269
|
-
style = cssText;
|
|
1270
|
-
}
|
|
1271
|
-
styles.set(scopeId2, style);
|
|
1272
|
-
};
|
|
1273
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1274
|
-
var _a;
|
|
1275
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1276
|
-
const style = styles.get(scopeId2);
|
|
1277
|
-
if (!win.document) {
|
|
1278
|
-
return scopeId2;
|
|
1279
|
-
}
|
|
1280
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1281
|
-
if (style) {
|
|
1282
|
-
if (typeof style === "string") {
|
|
1283
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1284
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1285
|
-
let styleElm;
|
|
1286
|
-
if (!appliedStyles) {
|
|
1287
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1288
|
-
}
|
|
1289
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
1290
|
-
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1291
|
-
styleElm.innerHTML = style;
|
|
1292
|
-
} else {
|
|
1293
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
1294
|
-
styleElm.innerHTML = style;
|
|
1295
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1296
|
-
if (nonce != null) {
|
|
1297
|
-
styleElm.setAttribute("nonce", nonce);
|
|
1298
|
-
}
|
|
1299
|
-
if ((cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
1300
|
-
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
1301
|
-
}
|
|
1302
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1303
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
1304
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1305
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1306
|
-
styleContainerNode.insertBefore(
|
|
1307
|
-
styleElm,
|
|
1308
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1309
|
-
);
|
|
1310
|
-
} else if ("host" in styleContainerNode) {
|
|
1311
|
-
{
|
|
1312
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1313
|
-
if (existingStyleContainer) {
|
|
1314
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1315
|
-
} else {
|
|
1316
|
-
styleContainerNode.prepend(styleElm);
|
|
1317
|
-
}
|
|
1318
|
-
}
|
|
1319
|
-
} else {
|
|
1320
|
-
styleContainerNode.append(styleElm);
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1324
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1328
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1329
|
-
}
|
|
1330
|
-
if (appliedStyles) {
|
|
1331
|
-
appliedStyles.add(scopeId2);
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
}
|
|
1336
|
-
return scopeId2;
|
|
1337
|
-
};
|
|
1338
|
-
var attachStyles = (hostRef) => {
|
|
1339
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1340
|
-
const elm = hostRef.$hostElement$;
|
|
1341
|
-
const flags = cmpMeta.$flags$;
|
|
1342
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1343
|
-
const scopeId2 = addStyle(
|
|
1344
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1345
|
-
cmpMeta);
|
|
1346
|
-
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
1347
|
-
elm["s-sc"] = scopeId2;
|
|
1348
|
-
elm.classList.add(scopeId2 + "-h");
|
|
1349
|
-
}
|
|
1350
|
-
endAttachStyles();
|
|
1351
|
-
};
|
|
1352
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1353
1624
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1354
1625
|
if (oldValue === newValue) {
|
|
1355
1626
|
return;
|
|
@@ -1360,12 +1631,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1360
1631
|
const classList = elm.classList;
|
|
1361
1632
|
const oldClasses = parseClassList(oldValue);
|
|
1362
1633
|
let newClasses = parseClassList(newValue);
|
|
1363
|
-
if (elm["s-si"] && initialRender) {
|
|
1364
|
-
|
|
1634
|
+
if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
1635
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
1636
|
+
newClasses.push(scopeId2);
|
|
1365
1637
|
oldClasses.forEach((c) => {
|
|
1366
|
-
if (c.startsWith(
|
|
1638
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
1367
1639
|
});
|
|
1368
|
-
newClasses = [...new Set(newClasses)];
|
|
1640
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
1369
1641
|
classList.add(...newClasses);
|
|
1370
1642
|
} else {
|
|
1371
1643
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
@@ -1797,6 +2069,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1797
2069
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
1798
2070
|
) {
|
|
1799
2071
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
2072
|
+
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
2073
|
+
newVNode2.$children$ = oldChildren;
|
|
1800
2074
|
}
|
|
1801
2075
|
if (isSvgMode && tag === "svg") {
|
|
1802
2076
|
isSvgMode = false;
|
|
@@ -1897,13 +2171,16 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1897
2171
|
const hostElm = hostRef.$hostElement$;
|
|
1898
2172
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1899
2173
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1900
|
-
const
|
|
2174
|
+
const isHostElement = isHost(renderFnResults);
|
|
2175
|
+
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
1901
2176
|
hostTagName = hostElm.tagName;
|
|
1902
2177
|
if (cmpMeta.$attrsToReflect$) {
|
|
1903
2178
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
1904
|
-
cmpMeta.$attrsToReflect$.
|
|
1905
|
-
|
|
1906
|
-
|
|
2179
|
+
cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
|
|
2180
|
+
{
|
|
2181
|
+
rootVnode.$attrs$[attribute] = hostElm[propName];
|
|
2182
|
+
}
|
|
2183
|
+
});
|
|
1907
2184
|
}
|
|
1908
2185
|
if (isInitialLoad && rootVnode.$attrs$) {
|
|
1909
2186
|
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
@@ -2011,6 +2288,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
2011
2288
|
}
|
|
2012
2289
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
2013
2290
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
2291
|
+
if (isInitialLoad) {
|
|
2292
|
+
queueMicrotask(() => {
|
|
2293
|
+
dispatch();
|
|
2294
|
+
});
|
|
2295
|
+
return;
|
|
2296
|
+
}
|
|
2014
2297
|
return writeTask(dispatch) ;
|
|
2015
2298
|
};
|
|
2016
2299
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -2025,10 +2308,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
2025
2308
|
let maybePromise;
|
|
2026
2309
|
if (isInitialLoad) {
|
|
2027
2310
|
{
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
hostRef.$queuedListeners
|
|
2031
|
-
|
|
2311
|
+
{
|
|
2312
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
2313
|
+
if (hostRef.$queuedListeners$) {
|
|
2314
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
2315
|
+
hostRef.$queuedListeners$ = void 0;
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
if (hostRef.$fetchedCbList$.length) {
|
|
2319
|
+
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
2032
2320
|
}
|
|
2033
2321
|
}
|
|
2034
2322
|
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
@@ -2148,10 +2436,16 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2148
2436
|
}
|
|
2149
2437
|
};
|
|
2150
2438
|
var appDidLoad = (who) => {
|
|
2439
|
+
var _a;
|
|
2151
2440
|
if (BUILD.asyncQueue) {
|
|
2152
2441
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
2153
2442
|
}
|
|
2154
2443
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2444
|
+
{
|
|
2445
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
2446
|
+
plt.$orgLocNodes$.clear();
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2155
2449
|
};
|
|
2156
2450
|
var safeCall = (instance, method, arg, elm) => {
|
|
2157
2451
|
if (instance && instance[method]) {
|
|
@@ -2184,6 +2478,9 @@ var serverSideConnected = (elm) => {
|
|
|
2184
2478
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
2185
2479
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
2186
2480
|
const hostRef = getHostRef(ref);
|
|
2481
|
+
if (!hostRef) {
|
|
2482
|
+
return;
|
|
2483
|
+
}
|
|
2187
2484
|
if (!hostRef) {
|
|
2188
2485
|
throw new Error(
|
|
2189
2486
|
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
@@ -2193,7 +2490,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2193
2490
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
2194
2491
|
const flags = hostRef.$flags$;
|
|
2195
2492
|
const instance = hostRef.$lazyInstance$ ;
|
|
2196
|
-
newVal = parsePropertyValue(
|
|
2493
|
+
newVal = parsePropertyValue(
|
|
2494
|
+
newVal,
|
|
2495
|
+
cmpMeta.$members$[propName][0],
|
|
2496
|
+
!!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
2497
|
+
);
|
|
2197
2498
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
2198
2499
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
2199
2500
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -2227,9 +2528,17 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2227
2528
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
2228
2529
|
var _a;
|
|
2229
2530
|
const prototype = Cstr.prototype;
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
cmpMeta.$watchers$
|
|
2531
|
+
{
|
|
2532
|
+
{
|
|
2533
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
2534
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
2535
|
+
}
|
|
2536
|
+
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
2537
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
2538
|
+
}
|
|
2539
|
+
if (Cstr.serializers && !cmpMeta.$serializers$) {
|
|
2540
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
2541
|
+
}
|
|
2233
2542
|
}
|
|
2234
2543
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
2235
2544
|
members.map(([memberName, [memberFlags]]) => {
|
|
@@ -2257,14 +2566,21 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2257
2566
|
Object.defineProperty(prototype, memberName, {
|
|
2258
2567
|
set(newValue) {
|
|
2259
2568
|
const ref = getHostRef(this);
|
|
2569
|
+
if (!ref) {
|
|
2570
|
+
return;
|
|
2571
|
+
}
|
|
2260
2572
|
if (origSetter) {
|
|
2261
2573
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2262
2574
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
2263
2575
|
newValue = ref.$instanceValues$.get(memberName);
|
|
2264
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2265
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
2266
2576
|
}
|
|
2267
|
-
origSetter.apply(this, [
|
|
2577
|
+
origSetter.apply(this, [
|
|
2578
|
+
parsePropertyValue(
|
|
2579
|
+
newValue,
|
|
2580
|
+
memberFlags,
|
|
2581
|
+
!!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
2582
|
+
)
|
|
2583
|
+
]);
|
|
2268
2584
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2269
2585
|
setValue(this, memberName, newValue, cmpMeta);
|
|
2270
2586
|
return;
|
|
@@ -2304,6 +2620,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2304
2620
|
if (!Cstr.isProxied) {
|
|
2305
2621
|
{
|
|
2306
2622
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
2623
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
2624
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
2307
2625
|
}
|
|
2308
2626
|
proxyComponent(Cstr, cmpMeta);
|
|
2309
2627
|
Cstr.isProxied = true;
|
|
@@ -2338,8 +2656,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2338
2656
|
const scopeId2 = getScopeId(cmpMeta);
|
|
2339
2657
|
if (!styles.has(scopeId2)) {
|
|
2340
2658
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
2341
|
-
|
|
2342
|
-
|
|
2659
|
+
{
|
|
2660
|
+
if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {
|
|
2661
|
+
style = scopeCss(style, scopeId2);
|
|
2662
|
+
} else if (needsScopedSSR()) {
|
|
2663
|
+
style = expandPartSelectors(style);
|
|
2664
|
+
}
|
|
2343
2665
|
}
|
|
2344
2666
|
registerStyle(scopeId2, style);
|
|
2345
2667
|
endRegisterStyles();
|
|
@@ -2364,6 +2686,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
2364
2686
|
var connectedCallback = (elm) => {
|
|
2365
2687
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2366
2688
|
const hostRef = getHostRef(elm);
|
|
2689
|
+
if (!hostRef) {
|
|
2690
|
+
return;
|
|
2691
|
+
}
|
|
2367
2692
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2368
2693
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2369
2694
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -2621,8 +2946,13 @@ var hAsync = (nodeName, vnodeData, ...children) => {
|
|
|
2621
2946
|
}
|
|
2622
2947
|
return h(nodeName, vnodeData);
|
|
2623
2948
|
};
|
|
2949
|
+
|
|
2950
|
+
// src/hydrate/platform/proxy-host-element.ts
|
|
2624
2951
|
function proxyHostElement(elm, cstr) {
|
|
2625
2952
|
const cmpMeta = cstr.cmpMeta;
|
|
2953
|
+
cmpMeta.$watchers$ = cmpMeta.$watchers$ || cstr.watchers;
|
|
2954
|
+
cmpMeta.$deserializers$ = cmpMeta.$deserializers$ || cstr.deserializers;
|
|
2955
|
+
cmpMeta.$serializers$ = cmpMeta.$serializers$ || cstr.serializers;
|
|
2626
2956
|
if (typeof elm.componentOnReady !== "function") {
|
|
2627
2957
|
elm.componentOnReady = componentOnReady;
|
|
2628
2958
|
}
|
|
@@ -2630,32 +2960,30 @@ function proxyHostElement(elm, cstr) {
|
|
|
2630
2960
|
elm.forceUpdate = forceUpdate2;
|
|
2631
2961
|
}
|
|
2632
2962
|
if (!elm.shadowRoot && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
2633
|
-
|
|
2634
|
-
elm.attachShadow({ mode: "open" });
|
|
2635
|
-
}
|
|
2963
|
+
createShadowRoot.call(elm, cmpMeta);
|
|
2636
2964
|
}
|
|
2637
2965
|
if (cmpMeta.$members$ != null) {
|
|
2638
2966
|
const hostRef = getHostRef(elm);
|
|
2639
2967
|
const members = Object.entries(cmpMeta.$members$);
|
|
2640
2968
|
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
2641
|
-
var _a;
|
|
2969
|
+
var _a, _b;
|
|
2642
2970
|
if (memberFlags & 31 /* Prop */) {
|
|
2643
2971
|
const attributeName = metaAttributeName || memberName;
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
try {
|
|
2647
|
-
attrValue = JSON.parse(attrValue);
|
|
2648
|
-
} catch (e) {
|
|
2649
|
-
}
|
|
2650
|
-
}
|
|
2651
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(cstr.prototype, memberName) || {};
|
|
2972
|
+
const attrValue = elm.getAttribute(attributeName);
|
|
2973
|
+
const propValue = elm[memberName];
|
|
2652
2974
|
let attrPropVal;
|
|
2975
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(cstr.prototype, memberName) || {};
|
|
2653
2976
|
if (attrValue != null) {
|
|
2654
|
-
|
|
2977
|
+
if ((_a = cmpMeta.$deserializers$) == null ? void 0 : _a[memberName]) {
|
|
2978
|
+
for (const methodName of cmpMeta.$deserializers$[memberName]) {
|
|
2979
|
+
attrPropVal = cstr.prototype[methodName](attrValue, memberName);
|
|
2980
|
+
}
|
|
2981
|
+
} else {
|
|
2982
|
+
attrPropVal = parsePropertyValue(attrValue, memberFlags, !!(cmpMeta.$flags$ & 64 /* formAssociated */));
|
|
2983
|
+
}
|
|
2655
2984
|
}
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
attrPropVal = ownValue;
|
|
2985
|
+
if (propValue !== void 0) {
|
|
2986
|
+
attrPropVal = propValue;
|
|
2659
2987
|
delete elm[memberName];
|
|
2660
2988
|
}
|
|
2661
2989
|
if (attrPropVal !== void 0) {
|
|
@@ -2663,7 +2991,7 @@ function proxyHostElement(elm, cstr) {
|
|
|
2663
2991
|
origSetter.apply(elm, [attrPropVal]);
|
|
2664
2992
|
attrPropVal = origGetter ? origGetter.apply(elm) : attrPropVal;
|
|
2665
2993
|
}
|
|
2666
|
-
(
|
|
2994
|
+
(_b = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b.set(memberName, attrPropVal);
|
|
2667
2995
|
}
|
|
2668
2996
|
const getterSetterDescriptor = {
|
|
2669
2997
|
get: function() {
|
|
@@ -2677,21 +3005,18 @@ function proxyHostElement(elm, cstr) {
|
|
|
2677
3005
|
};
|
|
2678
3006
|
Object.defineProperty(elm, memberName, getterSetterDescriptor);
|
|
2679
3007
|
Object.defineProperty(elm, metaAttributeName, getterSetterDescriptor);
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
enumerable: true
|
|
2693
|
-
});
|
|
2694
|
-
}
|
|
3008
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
3009
|
+
var _a2;
|
|
3010
|
+
if (!((_a2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a2.has(memberName))) {
|
|
3011
|
+
setValue(
|
|
3012
|
+
elm,
|
|
3013
|
+
memberName,
|
|
3014
|
+
attrPropVal !== void 0 ? attrPropVal : hostRef.$lazyInstance$[memberName],
|
|
3015
|
+
cmpMeta
|
|
3016
|
+
);
|
|
3017
|
+
}
|
|
3018
|
+
Object.defineProperty(hostRef.$lazyInstance$, memberName, getterSetterDescriptor);
|
|
3019
|
+
});
|
|
2695
3020
|
} else if (memberFlags & 64 /* Method */) {
|
|
2696
3021
|
Object.defineProperty(elm, memberName, {
|
|
2697
3022
|
value(...args) {
|
|
@@ -2707,7 +3032,6 @@ function proxyHostElement(elm, cstr) {
|
|
|
2707
3032
|
});
|
|
2708
3033
|
}
|
|
2709
3034
|
});
|
|
2710
|
-
cstr.prototype.__stencilAugmented = true;
|
|
2711
3035
|
}
|
|
2712
3036
|
}
|
|
2713
3037
|
function componentOnReady() {
|
|
@@ -2725,6 +3049,7 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
2725
3049
|
const orgDocumentCreateElement = win2.document.createElement;
|
|
2726
3050
|
const orgDocumentCreateElementNS = win2.document.createElementNS;
|
|
2727
3051
|
const resolved2 = Promise.resolve();
|
|
3052
|
+
setScopedSSR(opts);
|
|
2728
3053
|
let tmrId;
|
|
2729
3054
|
let ranCompleted = false;
|
|
2730
3055
|
function hydratedComplete() {
|
|
@@ -2832,13 +3157,16 @@ async function hydrateComponent(win2, results, tagName, elm, waitingElements) {
|
|
|
2832
3157
|
if (cmpMeta != null) {
|
|
2833
3158
|
waitingElements.add(elm);
|
|
2834
3159
|
const hostRef = getHostRef(this);
|
|
3160
|
+
if (!hostRef) {
|
|
3161
|
+
return;
|
|
3162
|
+
}
|
|
2835
3163
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
2836
3164
|
try {
|
|
2837
3165
|
connectedCallback(elm);
|
|
2838
3166
|
await elm.componentOnReady();
|
|
2839
3167
|
results.hydratedCount++;
|
|
2840
3168
|
const ref = getHostRef(elm);
|
|
2841
|
-
const modeName = !ref.$modeName$ ? "$" : ref.$modeName$;
|
|
3169
|
+
const modeName = !(ref == null ? void 0 : ref.$modeName$) ? "$" : ref == null ? void 0 : ref.$modeName$;
|
|
2842
3170
|
if (!results.components.some((c) => c.tag === tagName && c.mode === modeName)) {
|
|
2843
3171
|
results.components.push({
|
|
2844
3172
|
tag: tagName,
|
|
@@ -3053,8 +3381,12 @@ var getHostRef = (ref) => {
|
|
|
3053
3381
|
return void 0;
|
|
3054
3382
|
};
|
|
3055
3383
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
3384
|
+
if (!hostRef) return void 0;
|
|
3056
3385
|
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
3057
3386
|
hostRef.$lazyInstance$ = lazyInstance;
|
|
3387
|
+
if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
|
|
3388
|
+
reWireGetterSetter(lazyInstance, hostRef);
|
|
3389
|
+
}
|
|
3058
3390
|
return hostRef;
|
|
3059
3391
|
};
|
|
3060
3392
|
var registerHost = (elm, cmpMeta) => {
|
|
@@ -3063,8 +3395,10 @@ var registerHost = (elm, cmpMeta) => {
|
|
|
3063
3395
|
$cmpMeta$: cmpMeta,
|
|
3064
3396
|
$hostElement$: elm,
|
|
3065
3397
|
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
3398
|
+
$serializerValues$: /* @__PURE__ */ new Map(),
|
|
3066
3399
|
$renderCount$: 0
|
|
3067
3400
|
};
|
|
3401
|
+
hostRef.$fetchedCbList$ = [];
|
|
3068
3402
|
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
3069
3403
|
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
3070
3404
|
elm["s-p"] = [];
|
|
@@ -3073,6 +3407,11 @@ var registerHost = (elm, cmpMeta) => {
|
|
|
3073
3407
|
return hostRef;
|
|
3074
3408
|
};
|
|
3075
3409
|
var styles = /* @__PURE__ */ new Map();
|
|
3410
|
+
var setScopedSSR = (opts) => {
|
|
3411
|
+
scopedSSR = opts.serializeShadowRoot !== false && opts.serializeShadowRoot !== "declarative-shadow-dom";
|
|
3412
|
+
};
|
|
3413
|
+
var needsScopedSSR = () => scopedSSR;
|
|
3414
|
+
var scopedSSR = false;
|
|
3076
3415
|
|
|
3077
3416
|
const pdsModalCss$1 = ".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 0.2s ease, visibility 0.2s ease;transition:opacity 0.2s ease, visibility 0.2s ease;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;visibility:visible}.pds-modal{background:var(--pine-color-background-container);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}";
|
|
3078
3417
|
|
|
@@ -3159,7 +3498,7 @@ class MockPdsModal {
|
|
|
3159
3498
|
get el() { return getElement(this); }
|
|
3160
3499
|
static get style() { return pdsModalCss$1; }
|
|
3161
3500
|
static get cmpMeta() { return {
|
|
3162
|
-
"$flags$":
|
|
3501
|
+
"$flags$": 260,
|
|
3163
3502
|
"$tagName$": "mock-pds-modal",
|
|
3164
3503
|
"$members$": {
|
|
3165
3504
|
"componentId": [1, "component-id"],
|
|
@@ -3176,7 +3515,7 @@ class MockPdsModal {
|
|
|
3176
3515
|
}; }
|
|
3177
3516
|
}
|
|
3178
3517
|
|
|
3179
|
-
/* pds-icons v9.
|
|
3518
|
+
/* pds-icons v9.10.0, ES Modules */
|
|
3180
3519
|
|
|
3181
3520
|
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>";
|
|
3182
3521
|
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>";
|
|
@@ -3233,7 +3572,7 @@ class PdsAccordion {
|
|
|
3233
3572
|
}; }
|
|
3234
3573
|
static get style() { return pdsAccordionCss; }
|
|
3235
3574
|
static get cmpMeta() { return {
|
|
3236
|
-
"$flags$":
|
|
3575
|
+
"$flags$": 265,
|
|
3237
3576
|
"$tagName$": "pds-accordion",
|
|
3238
3577
|
"$members$": {
|
|
3239
3578
|
"componentId": [1, "component-id"],
|
|
@@ -3305,7 +3644,7 @@ class PdsAlert {
|
|
|
3305
3644
|
get el() { return getElement(this); }
|
|
3306
3645
|
static get style() { return pdsAlertTokensCss + pdsAlertCss; }
|
|
3307
3646
|
static get cmpMeta() { return {
|
|
3308
|
-
"$flags$":
|
|
3647
|
+
"$flags$": 265,
|
|
3309
3648
|
"$tagName$": "pds-alert",
|
|
3310
3649
|
"$members$": {
|
|
3311
3650
|
"componentId": [1, "component-id"],
|
|
@@ -3410,7 +3749,7 @@ class PdsAvatar {
|
|
|
3410
3749
|
}
|
|
3411
3750
|
static get style() { return pdsAvatarCss; }
|
|
3412
3751
|
static get cmpMeta() { return {
|
|
3413
|
-
"$flags$":
|
|
3752
|
+
"$flags$": 265,
|
|
3414
3753
|
"$tagName$": "pds-avatar",
|
|
3415
3754
|
"$members$": {
|
|
3416
3755
|
"alt": [1],
|
|
@@ -3637,7 +3976,7 @@ class PdsBox {
|
|
|
3637
3976
|
}
|
|
3638
3977
|
static get style() { return pdsBoxCss; }
|
|
3639
3978
|
static get cmpMeta() { return {
|
|
3640
|
-
"$flags$":
|
|
3979
|
+
"$flags$": 256,
|
|
3641
3980
|
"$tagName$": "pds-box",
|
|
3642
3981
|
"$members$": {
|
|
3643
3982
|
"alignItems": [1, "align-items"],
|
|
@@ -3765,7 +4104,7 @@ class PdsBox {
|
|
|
3765
4104
|
}; }
|
|
3766
4105
|
}
|
|
3767
4106
|
|
|
3768
|
-
const pdsButtonCss = ":host{--pds-button-background:var(--color-background-default);--pds-button-border:var(--pine-border);--pds-button-border-radius:var(--pine-border-radius-full);--pds-button-border-radius-start-end:var(--pine-border-radius-full);--pds-button-border-radius-start-start:var(--pine-border-radius-full);--pds-button-border-radius-end-end:var(--pine-border-radius-full);--pds-button-border-radius-end-start:var(--pine-border-radius-full);--pds-button-min-height:var(--pine-dimension-450);--pds-button-outline-offset:var(--pine-border-width);--color-border-default:transparent;--color-border-disabled:transparent;--color-border-focus:transparent;--color-border-hover:transparent;--button-loader-color:var(--color-text-default);display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}:host([full-width=true]){display:-ms-flexbox;display:flex;width:100%}:host([full-width=true]) a,:host([full-width=true]) button{-ms-flex-pack:center;justify-content:center;width:100%}:host([full-width=true]) .pds-button__content{-ms-flex-pack:center;justify-content:center;text-align:center}:host([loading=true]){cursor:wait;pointer-events:none}:host([disabled=true]){pointer-events:none}.pds-button{--pds-loader-color:var(--color-text-default);-ms-flex-align:center;align-items:center;background-color:var(--pds-button-background, var(--color-background-default));border:var(--pds-button-border);border-color:var(--color-border-default);border-radius:var(--pds-button-border-radius);border-end-end-radius:var(--pds-button-border-radius-end-end, var(--pds-button-border-radius));border-end-start-radius:var(--pds-button-border-radius-end-start, var(--pds-button-border-radius));border-start-end-radius:var(--pds-button-border-radius-start-end, var(--pds-button-border-radius));border-start-start-radius:var(--pds-button-border-radius-start-start, var(--pds-button-border-radius));-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--color-text-default);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-brand-label);letter-spacing:var(--pine-letter-spacing);min-height:var(--pds-button-min-height);padding:calc(var(--pine-dimension-xs) - var(--pine-border-width)) var(--pine-dimension-sm);position:relative;text-decoration:none}.pds-button pds-icon{color:currentColor;fill:currentColor}.pds-button:hover{background-color:var(--color-background-hover);border-color:var(--color-border-hover)}.pds-button:focus-visible{border-color:var(--color-border-focus);-webkit-box-shadow:var(--pds-button-box-shadow-focus, none);box-shadow:var(--pds-button-box-shadow-focus, none);outline:var(--pds-button-outline-focus, var(--pine-outline-focus));outline-offset:var(--pds-button-outline-offset)}.pds-button:disabled{background-color:var(--color-background-disabled);border-color:var(--color-border-disabled);color:var(--color-text-disabled);pointer-events:none}.pds-button--primary{--color-background-default:var(--pine-color-primary);--color-background-hover:var(--pine-color-primary-hover);--color-background-disabled:var(--pine-color-primary-disabled);--color-border-default:var(--pine-color-primary);--color-border-hover:var(--pine-color-primary-hover);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-primary-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-primary)}.pds-button--accent{--color-background-default:var(--pine-color-accent);--color-background-hover:var(--pine-color-accent-hover);--color-background-disabled:var(--pine-color-accent-disabled);--color-border-default:var(--pine-color-accent);--color-border-hover:var(--pine-color-accent-hover);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-accent-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-primary)}.pds-button--destructive{--color-background-default:var(--pine-color-danger);--color-background-hover:var(--pine-color-danger-hover);--color-background-disabled:var(--pine-color-danger-disabled);--color-border-default:var(--pine-color-danger);--color-border-hover:var(--pine-color-danger-hover);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-danger-disabled);--color-outline:var(--pine-color-focus-ring-danger);--button-loader-color:var(--pine-color-text-primary)}.pds-button--destructive:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}.pds-button--secondary,.pds-button--disclosure{--color-background-default:var(--pine-color-secondary);--color-background-hover:var(--pine-color-secondary-hover);--color-background-disabled:var(--pine-color-secondary-disabled);--color-border-disabled:var(--pine-color-border-disabled);--color-border-focus:var(--pine-color-border);--color-border-hover:var(--pine-color-border-hover);--color-border-default:var(--pine-color-border);--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-secondary)}.pds-button--secondary:hover,.pds-button--disclosure:hover{background-color:var(--pine-color-secondary-hover)}.pds-button--filter{--color-background-default:var(--pine-color-white);--color-background-hover:var(--pine-color-grey-100);--color-background-disabled:var(--pine-color-white);--color-border-default:transparent;--color-border-hover:transparent;--color-border-focus:transparent;--color-text-default:var(--pine-color-text-secondary);--color-text-hover:var(--pine-color-text-hover);--color-text-disabled:var(--pine-color-text-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-secondary);--pds-button-border-radius:var(--pine-dimension-125);--pds-button-border-radius-start-end:var(--pine-dimension-125);--pds-button-border-radius-start-start:var(--pine-dimension-125);--pds-button-border-radius-end-end:var(--pine-dimension-125);--pds-button-border-radius-end-start:var(--pine-dimension-125);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-button--filter:hover{color:var(--color-text-hover)}.pds-button--unstyled{--color-background-default:transparent;--color-background-hover:transparent;--color-background-disabled:transparent;--color-text-default:inherit;--button-loader-color:inherit;border-width:var(--pine-dimension-none);margin:var(--pine-dimension-none);min-height:auto;padding:var(--pine-dimension-none);width:inherit}.pds-button__content{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;gap:var(--pine-dimension-xs);position:relative;width:100%}.pds-button__icon{display:-ms-inline-flexbox;display:inline-flex}.pds-button__text{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;white-space:nowrap}.pds-button__icon--hidden,.pds-button__text--hidden{opacity:0}.pds-button__loader{height:var(--pine-dimension-250);left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:var(--pine-dimension-250)}.pds-button--loading{cursor:wait;pointer-events:none}.pds-button--loading .pds-button__loader pds-loader{--loader-color:var(--button-loader-color)}.pds-button--icon-only{-ms-flex-align:center;align-items:center;border-radius:var(--pine-border-radius-full);height:var(--button-dimension);-ms-flex-pack:center;justify-content:center;min-height:var(--button-dimension);min-width:var(--button-dimension);padding:var(--pine-dimension-xs);width:var(--button-dimension)}.pds-button--icon-only .pds-button__content{height:100%;-ms-flex-pack:center;justify-content:center;width:100%}.pds-button--icon-only .pds-button__text--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}";
|
|
4107
|
+
const pdsButtonCss = ":host{--pds-button-background:var(--color-background-default);--pds-button-border:var(--pine-border);--pds-button-border-radius:var(--pine-border-radius-full);--pds-button-border-radius-start-end:var(--pine-border-radius-full);--pds-button-border-radius-start-start:var(--pine-border-radius-full);--pds-button-border-radius-end-end:var(--pine-border-radius-full);--pds-button-border-radius-end-start:var(--pine-border-radius-full);--pds-button-min-height:var(--pine-dimension-450);--pds-button-outline-offset:var(--pine-border-width);--color-border-default:transparent;--color-border-disabled:transparent;--color-border-focus:transparent;--color-border-hover:transparent;--button-loader-color:var(--color-text-default);display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}:host([full-width=true]){display:-ms-flexbox;display:flex;width:100%}:host([full-width=true]) a,:host([full-width=true]) button{-ms-flex-pack:center;justify-content:center;width:100%}:host([full-width=true]) .pds-button__content{-ms-flex-pack:center;justify-content:center;text-align:center}:host([loading=true]){cursor:wait;pointer-events:none}:host([disabled=true]){pointer-events:none}.pds-button{--pds-loader-color:var(--color-text-default);-ms-flex-align:center;align-items:center;background-color:var(--pds-button-background, var(--color-background-default));border:var(--pds-button-border);border-color:var(--color-border-default);border-radius:var(--pds-button-border-radius);border-end-end-radius:var(--pds-button-border-radius-end-end, var(--pds-button-border-radius));border-end-start-radius:var(--pds-button-border-radius-end-start, var(--pds-button-border-radius));border-start-end-radius:var(--pds-button-border-radius-start-end, var(--pds-button-border-radius));border-start-start-radius:var(--pds-button-border-radius-start-start, var(--pds-button-border-radius));-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--color-text-default);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-brand-label);letter-spacing:var(--pine-letter-spacing);min-height:var(--pds-button-min-height);padding:calc(var(--pine-dimension-xs) - var(--pine-border-width)) var(--pine-dimension-sm);position:relative;text-decoration:none}.pds-button pds-icon{color:currentColor;fill:currentColor}.pds-button:hover{background-color:var(--color-background-hover);border-color:var(--color-border-hover)}.pds-button:focus-visible{border-color:var(--color-border-focus);-webkit-box-shadow:var(--pds-button-box-shadow-focus, none);box-shadow:var(--pds-button-box-shadow-focus, none);outline:var(--pds-button-outline-focus, var(--pine-outline-focus));outline-offset:var(--pds-button-outline-offset)}.pds-button:disabled{background-color:var(--color-background-disabled);border-color:var(--color-border-disabled);color:var(--color-text-disabled);pointer-events:none}.pds-button--primary{--color-background-default:var(--pine-color-primary);--color-background-hover:var(--pine-color-primary-hover);--color-background-disabled:var(--pine-color-primary-disabled);--color-border-default:var(--pine-color-primary);--color-border-hover:var(--pine-color-primary-hover);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-primary-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-primary)}.pds-button--accent{--color-background-default:var(--pine-color-accent);--color-background-hover:var(--pine-color-accent-hover);--color-background-disabled:var(--pine-color-accent-disabled);--color-border-default:var(--pine-color-accent);--color-border-hover:var(--pine-color-accent-hover);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-accent-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-primary)}.pds-button--destructive{--color-background-default:var(--pine-color-danger);--color-background-hover:var(--pine-color-danger-hover);--color-background-disabled:var(--pine-color-danger-disabled);--color-border-default:var(--pine-color-danger);--color-border-hover:var(--pine-color-danger-hover);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-danger-disabled);--color-outline:var(--pine-color-focus-ring-danger);--button-loader-color:var(--pine-color-text-primary)}.pds-button--destructive:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}.pds-button--secondary,.pds-button--disclosure{--color-background-default:var(--pine-color-secondary);--color-background-hover:var(--pine-color-secondary-hover);--color-background-disabled:var(--pine-color-secondary-disabled);--color-border-disabled:var(--pine-color-border-disabled);--color-border-focus:var(--pine-color-border);--color-border-hover:var(--pine-color-border-hover);--color-border-default:var(--pine-color-border);--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-secondary)}.pds-button--secondary:hover,.pds-button--disclosure:hover{background-color:var(--pine-color-secondary-hover)}.pds-button--tertiary{--color-background-default:transparent;--color-background-hover:var(--pine-color-grey-100);--color-background-disabled:transparent;--color-border-default:transparent;--color-border-hover:var(--pine-color-grey-100);--color-border-disabled:transparent;--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-secondary)}.pds-button--filter{--color-background-default:var(--pine-color-white);--color-background-hover:var(--pine-color-grey-100);--color-background-disabled:var(--pine-color-white);--color-border-default:transparent;--color-border-hover:transparent;--color-border-focus:transparent;--color-text-default:var(--pine-color-text-secondary);--color-text-hover:var(--pine-color-text-hover);--color-text-disabled:var(--pine-color-text-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-secondary);--pds-button-border-radius:var(--pine-dimension-125);--pds-button-border-radius-start-end:var(--pine-dimension-125);--pds-button-border-radius-start-start:var(--pine-dimension-125);--pds-button-border-radius-end-end:var(--pine-dimension-125);--pds-button-border-radius-end-start:var(--pine-dimension-125);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-button--filter:hover{color:var(--color-text-hover)}.pds-button--unstyled{--color-background-default:transparent;--color-background-hover:transparent;--color-background-disabled:transparent;--color-text-default:inherit;--button-loader-color:inherit;border-width:var(--pine-dimension-none);margin:var(--pine-dimension-none);min-height:auto;padding:var(--pine-dimension-none);width:inherit}.pds-button__content{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;gap:var(--pine-dimension-xs);position:relative;width:100%}.pds-button__icon{display:-ms-inline-flexbox;display:inline-flex}.pds-button__text{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;white-space:nowrap}.pds-button__icon--hidden,.pds-button__text--hidden{opacity:0}.pds-button__loader{height:var(--pine-dimension-250);left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:var(--pine-dimension-250)}.pds-button--loading{cursor:wait;pointer-events:none}.pds-button--loading .pds-button__loader pds-loader{--loader-color:var(--button-loader-color)}.pds-button--small{min-height:var(--pine-dimension-400);padding:calc(var(--pine-dimension-2xs) - var(--pine-border-width)) var(--pine-dimension-sm)}.pds-button--micro{font-size:var(--pine-font-size-085);min-height:var(--pine-dimension-300);padding:var(--pine-dimension-025) var(--pine-dimension-xs)}.pds-button--icon-only{-ms-flex-align:center;align-items:center;border-radius:var(--pine-border-radius-full);height:var(--button-dimension);-ms-flex-pack:center;justify-content:center;min-height:var(--button-dimension);min-width:var(--button-dimension);padding:var(--pine-dimension-xs);width:var(--button-dimension)}.pds-button--icon-only .pds-button__content{height:100%;-ms-flex-pack:center;justify-content:center;width:100%}.pds-button--icon-only .pds-button__text--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-button--icon-only.pds-button--small{height:var(--pine-dimension-400);min-height:var(--pine-dimension-400);min-width:var(--pine-dimension-400);padding:var(--pine-dimension-2xs);width:var(--pine-dimension-400)}.pds-button--icon-only.pds-button--micro{height:var(--pine-dimension-300);min-height:var(--pine-dimension-300);min-width:var(--pine-dimension-300);padding:var(--pine-dimension-3xs);width:var(--pine-dimension-300)}";
|
|
3769
4108
|
|
|
3770
4109
|
/**
|
|
3771
4110
|
* @part button - Exposes the button element for styling.
|
|
@@ -3813,6 +4152,11 @@ class PdsButton {
|
|
|
3813
4152
|
* @defaultValue button
|
|
3814
4153
|
*/
|
|
3815
4154
|
this.type = 'button';
|
|
4155
|
+
/**
|
|
4156
|
+
* Sets the size of the button.
|
|
4157
|
+
* @defaultValue default
|
|
4158
|
+
*/
|
|
4159
|
+
this.size = 'default';
|
|
3816
4160
|
/**
|
|
3817
4161
|
* Sets the style variant of the button.
|
|
3818
4162
|
* @defaultValue primary
|
|
@@ -3895,6 +4239,9 @@ class PdsButton {
|
|
|
3895
4239
|
if (this.variant) {
|
|
3896
4240
|
classNames.push('pds-button--' + this.variant);
|
|
3897
4241
|
}
|
|
4242
|
+
if (this.size && this.size !== 'default') {
|
|
4243
|
+
classNames.push('pds-button--' + this.size);
|
|
4244
|
+
}
|
|
3898
4245
|
if (this.iconOnly) {
|
|
3899
4246
|
classNames.push('pds-button--icon-only');
|
|
3900
4247
|
}
|
|
@@ -3954,7 +4301,7 @@ class PdsButton {
|
|
|
3954
4301
|
get el() { return getElement(this); }
|
|
3955
4302
|
static get style() { return pdsButtonCss; }
|
|
3956
4303
|
static get cmpMeta() { return {
|
|
3957
|
-
"$flags$":
|
|
4304
|
+
"$flags$": 265,
|
|
3958
4305
|
"$tagName$": "pds-button",
|
|
3959
4306
|
"$members$": {
|
|
3960
4307
|
"componentId": [1, "component-id"],
|
|
@@ -3968,6 +4315,7 @@ class PdsButton {
|
|
|
3968
4315
|
"target": [1],
|
|
3969
4316
|
"type": [1],
|
|
3970
4317
|
"value": [1],
|
|
4318
|
+
"size": [1],
|
|
3971
4319
|
"variant": [1]
|
|
3972
4320
|
},
|
|
3973
4321
|
"$listeners$": [[16, "keydown", "handleFormKeyDown"]],
|
|
@@ -4203,7 +4551,7 @@ class PdsCheckbox {
|
|
|
4203
4551
|
}; }
|
|
4204
4552
|
static get style() { return labelCss$5 + pdsCheckboxCss; }
|
|
4205
4553
|
static get cmpMeta() { return {
|
|
4206
|
-
"$flags$":
|
|
4554
|
+
"$flags$": 329,
|
|
4207
4555
|
"$tagName$": "pds-checkbox",
|
|
4208
4556
|
"$members$": {
|
|
4209
4557
|
"checked": [1028],
|
|
@@ -4297,7 +4645,7 @@ class PdsChip {
|
|
|
4297
4645
|
}
|
|
4298
4646
|
static get style() { return pdsChipTokensCss + pdsChipCss; }
|
|
4299
4647
|
static get cmpMeta() { return {
|
|
4300
|
-
"$flags$":
|
|
4648
|
+
"$flags$": 265,
|
|
4301
4649
|
"$tagName$": "pds-chip",
|
|
4302
4650
|
"$members$": {
|
|
4303
4651
|
"componentId": [1, "component-id"],
|
|
@@ -8185,7 +8533,7 @@ class PdsCombobox {
|
|
|
8185
8533
|
}; }
|
|
8186
8534
|
static get style() { return pdsComboboxCss; }
|
|
8187
8535
|
static get cmpMeta() { return {
|
|
8188
|
-
"$flags$":
|
|
8536
|
+
"$flags$": 329,
|
|
8189
8537
|
"$tagName$": "pds-combobox",
|
|
8190
8538
|
"$members$": {
|
|
8191
8539
|
"componentId": [1, "component-id"],
|
|
@@ -8278,7 +8626,7 @@ class PdsCopytext {
|
|
|
8278
8626
|
}
|
|
8279
8627
|
static get style() { return pdsCopytextCss; }
|
|
8280
8628
|
static get cmpMeta() { return {
|
|
8281
|
-
"$flags$":
|
|
8629
|
+
"$flags$": 265,
|
|
8282
8630
|
"$tagName$": "pds-copytext",
|
|
8283
8631
|
"$members$": {
|
|
8284
8632
|
"border": [516],
|
|
@@ -8320,7 +8668,7 @@ class PdsDivider {
|
|
|
8320
8668
|
}
|
|
8321
8669
|
static get style() { return pdsDividerCss; }
|
|
8322
8670
|
static get cmpMeta() { return {
|
|
8323
|
-
"$flags$":
|
|
8671
|
+
"$flags$": 265,
|
|
8324
8672
|
"$tagName$": "pds-divider",
|
|
8325
8673
|
"$members$": {
|
|
8326
8674
|
"componentId": [1, "component-id"],
|
|
@@ -8576,12 +8924,12 @@ class PdsDropdownMenu {
|
|
|
8576
8924
|
}
|
|
8577
8925
|
}
|
|
8578
8926
|
render() {
|
|
8579
|
-
return (hAsync(Host, { key: '
|
|
8927
|
+
return (hAsync(Host, { key: 'c2f9a74589c43a84f1e07a38748453bbc6cd7c8d', id: this.componentId }, hAsync("slot", { key: 'b3cd9b14b17f9f34b524f459c06506aa551602d2', name: "trigger", onSlotchange: this.handleTriggerSlotChange }), hAsync("pds-box", { key: '3657c4884b745ba3e0a0f04030e46a004fcf00ac', "border-radius": "sm", display: "flex", direction: "column", class: "pds-dropdown-menu--panel is-hidden", shadow: "100", role: "menu", "aria-orientation": "vertical" }, hAsync("slot", { key: 'fb77e6214ecd67e83babee0404bbf052c8d27714', onSlotchange: this.handleSlotChange }))));
|
|
8580
8928
|
}
|
|
8581
8929
|
get host() { return getElement(this); }
|
|
8582
8930
|
static get style() { return pdsDropdownMenuCss; }
|
|
8583
8931
|
static get cmpMeta() { return {
|
|
8584
|
-
"$flags$":
|
|
8932
|
+
"$flags$": 265,
|
|
8585
8933
|
"$tagName$": "pds-dropdown-menu",
|
|
8586
8934
|
"$members$": {
|
|
8587
8935
|
"componentId": [1, "component-id"],
|
|
@@ -8667,7 +9015,7 @@ class PdsDropdownMenuItem {
|
|
|
8667
9015
|
get host() { return getElement(this); }
|
|
8668
9016
|
static get style() { return pdsDropdownMenuItemCss; }
|
|
8669
9017
|
static get cmpMeta() { return {
|
|
8670
|
-
"$flags$":
|
|
9018
|
+
"$flags$": 265,
|
|
8671
9019
|
"$tagName$": "pds-dropdown-menu-item",
|
|
8672
9020
|
"$members$": {
|
|
8673
9021
|
"componentId": [1, "component-id"],
|
|
@@ -8699,7 +9047,7 @@ class PdsDropdownMenuSeparator {
|
|
|
8699
9047
|
}
|
|
8700
9048
|
static get style() { return pdsDropdownMenuSeparatorCss; }
|
|
8701
9049
|
static get cmpMeta() { return {
|
|
8702
|
-
"$flags$":
|
|
9050
|
+
"$flags$": 265,
|
|
8703
9051
|
"$tagName$": "pds-dropdown-menu-separator",
|
|
8704
9052
|
"$members$": {
|
|
8705
9053
|
"componentId": [1, "component-id"],
|
|
@@ -9203,7 +9551,7 @@ class PdsFilter {
|
|
|
9203
9551
|
get el() { return getElement(this); }
|
|
9204
9552
|
static get style() { return pdsFilterCss; }
|
|
9205
9553
|
static get cmpMeta() { return {
|
|
9206
|
-
"$flags$":
|
|
9554
|
+
"$flags$": 265,
|
|
9207
9555
|
"$tagName$": "pds-filter",
|
|
9208
9556
|
"$members$": {
|
|
9209
9557
|
"componentId": [1, "component-id"],
|
|
@@ -9234,7 +9582,7 @@ class PdsFilters {
|
|
|
9234
9582
|
}
|
|
9235
9583
|
static get style() { return pdsFiltersCss; }
|
|
9236
9584
|
static get cmpMeta() { return {
|
|
9237
|
-
"$flags$":
|
|
9585
|
+
"$flags$": 265,
|
|
9238
9586
|
"$tagName$": "pds-filters",
|
|
9239
9587
|
"$members$": {
|
|
9240
9588
|
"componentId": [1, "component-id"]
|
|
@@ -9647,7 +9995,7 @@ class PdsIcon {
|
|
|
9647
9995
|
}; }
|
|
9648
9996
|
static get style() { return pdsIconCss; }
|
|
9649
9997
|
static get cmpMeta() { return {
|
|
9650
|
-
"$flags$":
|
|
9998
|
+
"$flags$": 265,
|
|
9651
9999
|
"$tagName$": "pds-icon",
|
|
9652
10000
|
"$members$": {
|
|
9653
10001
|
"color": [1],
|
|
@@ -9699,7 +10047,7 @@ class PdsImage {
|
|
|
9699
10047
|
}
|
|
9700
10048
|
static get style() { return pdsImageCss; }
|
|
9701
10049
|
static get cmpMeta() { return {
|
|
9702
|
-
"$flags$":
|
|
10050
|
+
"$flags$": 265,
|
|
9703
10051
|
"$tagName$": "pds-image",
|
|
9704
10052
|
"$members$": {
|
|
9705
10053
|
"alt": [1],
|
|
@@ -9989,7 +10337,7 @@ class PdsInput {
|
|
|
9989
10337
|
}; }
|
|
9990
10338
|
static get style() { return pdsInputTokensCss$1 + (labelCss$4 + pdsInputCss); }
|
|
9991
10339
|
static get cmpMeta() { return {
|
|
9992
|
-
"$flags$":
|
|
10340
|
+
"$flags$": 329,
|
|
9993
10341
|
"$tagName$": "pds-input",
|
|
9994
10342
|
"$members$": {
|
|
9995
10343
|
"autocomplete": [1],
|
|
@@ -10081,7 +10429,7 @@ class PdsLink {
|
|
|
10081
10429
|
}
|
|
10082
10430
|
static get style() { return pdsLinkCss; }
|
|
10083
10431
|
static get cmpMeta() { return {
|
|
10084
|
-
"$flags$":
|
|
10432
|
+
"$flags$": 265,
|
|
10085
10433
|
"$tagName$": "pds-link",
|
|
10086
10434
|
"$members$": {
|
|
10087
10435
|
"color": [1],
|
|
@@ -10151,7 +10499,7 @@ class PdsLoader {
|
|
|
10151
10499
|
}
|
|
10152
10500
|
static get style() { return pdsLoaderCss; }
|
|
10153
10501
|
static get cmpMeta() { return {
|
|
10154
|
-
"$flags$":
|
|
10502
|
+
"$flags$": 265,
|
|
10155
10503
|
"$tagName$": "pds-loader",
|
|
10156
10504
|
"$members$": {
|
|
10157
10505
|
"isLoading": [4, "is-loading"],
|
|
@@ -10418,7 +10766,7 @@ class PdsModal {
|
|
|
10418
10766
|
}; }
|
|
10419
10767
|
static get style() { return pdsModalCss; }
|
|
10420
10768
|
static get cmpMeta() { return {
|
|
10421
|
-
"$flags$":
|
|
10769
|
+
"$flags$": 260,
|
|
10422
10770
|
"$tagName$": "pds-modal",
|
|
10423
10771
|
"$members$": {
|
|
10424
10772
|
"backdropDismiss": [4, "backdrop-dismiss"],
|
|
@@ -10629,15 +10977,15 @@ class PdsModalContent {
|
|
|
10629
10977
|
render() {
|
|
10630
10978
|
// Only apply max-height style if it's not 'none'
|
|
10631
10979
|
const styleObj = this.contentMaxHeight !== 'none' ? { maxHeight: this.contentMaxHeight } : {};
|
|
10632
|
-
return (hAsync(Host, { key: '
|
|
10980
|
+
return (hAsync(Host, { key: '11f1dba4ecce4a2dbf5afcd484a545a68559b0dd' }, hAsync("div", { key: '09af48c8b62dbd0f0b418e9b15175fd9f4409636', class: {
|
|
10633
10981
|
'pds-modal-content': true,
|
|
10634
10982
|
[`pds-modal-content--border-${this.border}`]: true
|
|
10635
|
-
}, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: '
|
|
10983
|
+
}, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: 'd738f5346e407ca6a5d92ff81d10387f7edc03bf' }))));
|
|
10636
10984
|
}
|
|
10637
10985
|
get el() { return getElement(this); }
|
|
10638
10986
|
static get style() { return pdsModalContentCss; }
|
|
10639
10987
|
static get cmpMeta() { return {
|
|
10640
|
-
"$flags$":
|
|
10988
|
+
"$flags$": 260,
|
|
10641
10989
|
"$tagName$": "pds-modal-content",
|
|
10642
10990
|
"$members$": {
|
|
10643
10991
|
"border": [513],
|
|
@@ -10660,7 +11008,7 @@ class PdsModalFooter {
|
|
|
10660
11008
|
}
|
|
10661
11009
|
static get style() { return pdsModalFooterCss; }
|
|
10662
11010
|
static get cmpMeta() { return {
|
|
10663
|
-
"$flags$":
|
|
11011
|
+
"$flags$": 260,
|
|
10664
11012
|
"$tagName$": "pds-modal-footer",
|
|
10665
11013
|
"$members$": undefined,
|
|
10666
11014
|
"$listeners$": undefined,
|
|
@@ -10680,7 +11028,7 @@ class PdsModalHeader {
|
|
|
10680
11028
|
}
|
|
10681
11029
|
static get style() { return pdsModalHeaderCss; }
|
|
10682
11030
|
static get cmpMeta() { return {
|
|
10683
|
-
"$flags$":
|
|
11031
|
+
"$flags$": 260,
|
|
10684
11032
|
"$tagName$": "pds-modal-header",
|
|
10685
11033
|
"$members$": undefined,
|
|
10686
11034
|
"$listeners$": undefined,
|
|
@@ -10689,8 +11037,12 @@ class PdsModalHeader {
|
|
|
10689
11037
|
}; }
|
|
10690
11038
|
}
|
|
10691
11039
|
|
|
10692
|
-
const pdsPopoverCss = ":host{--sizing-max-width-default:352px;display:inline-block}:host
|
|
11040
|
+
const pdsPopoverCss = ":host{--sizing-max-width-default:352px;display:inline-block}:host .pds-popover__trigger-wrapper{display:inline-block}:host .pds-popover__content-slot-wrapper{display:none}";
|
|
10693
11041
|
|
|
11042
|
+
/**
|
|
11043
|
+
* @slot trigger - The trigger element for the popover
|
|
11044
|
+
* @slot (default) - The content to display inside the popover
|
|
11045
|
+
*/
|
|
10694
11046
|
class PdsPopover {
|
|
10695
11047
|
constructor(hostRef) {
|
|
10696
11048
|
registerInstance(this, hostRef);
|
|
@@ -10705,6 +11057,31 @@ class PdsPopover {
|
|
|
10705
11057
|
* Tracks if the component is still mounted to prevent memory leaks
|
|
10706
11058
|
*/
|
|
10707
11059
|
this.isComponentMounted = true;
|
|
11060
|
+
/**
|
|
11061
|
+
* Reference to the trigger element
|
|
11062
|
+
*/
|
|
11063
|
+
this.triggerEl = null;
|
|
11064
|
+
/**
|
|
11065
|
+
* Portal element rendered in document.body
|
|
11066
|
+
*/
|
|
11067
|
+
this.portalEl = null;
|
|
11068
|
+
/**
|
|
11069
|
+
* Guard to prevent repositioning loops
|
|
11070
|
+
*/
|
|
11071
|
+
this.isRepositioning = false;
|
|
11072
|
+
/**
|
|
11073
|
+
* Debounce timers for performance optimization
|
|
11074
|
+
*/
|
|
11075
|
+
this.scrollDebounceTimer = null;
|
|
11076
|
+
this.resizeDebounceTimer = null;
|
|
11077
|
+
/**
|
|
11078
|
+
* Track moved nodes and their placeholders for restoration
|
|
11079
|
+
*/
|
|
11080
|
+
this.movedNodes = [];
|
|
11081
|
+
/**
|
|
11082
|
+
* Timestamp when popover was opened (for preventing immediate close)
|
|
11083
|
+
*/
|
|
11084
|
+
this.openTimestamp = 0;
|
|
10708
11085
|
/**
|
|
10709
11086
|
* Determines the action that triggers the popover. For manual popovers, the consumer is responsible for toggling this value.
|
|
10710
11087
|
* @defaultValue "show"
|
|
@@ -10725,124 +11102,437 @@ class PdsPopover {
|
|
|
10725
11102
|
* @defaultValue "right"
|
|
10726
11103
|
*/
|
|
10727
11104
|
this.placement = 'right';
|
|
11105
|
+
/**
|
|
11106
|
+
* Handles changes to the trigger slot
|
|
11107
|
+
*/
|
|
11108
|
+
this.handleTriggerSlotChange = (event) => {
|
|
11109
|
+
const slot = event.target;
|
|
11110
|
+
const assignedElements = slot.assignedElements();
|
|
11111
|
+
// Clean up previous trigger's event listener if it exists
|
|
11112
|
+
if (this.triggerEl != null) {
|
|
11113
|
+
this.triggerEl.removeEventListener('click', this.handleTriggerClick);
|
|
11114
|
+
}
|
|
11115
|
+
if (assignedElements.length > 0) {
|
|
11116
|
+
// Use the first assigned element as the trigger
|
|
11117
|
+
this.triggerEl = assignedElements[0];
|
|
11118
|
+
// Set ARIA attributes to establish relationship between trigger and popover
|
|
11119
|
+
// This mirrors the native Popover API's accessibility behavior
|
|
11120
|
+
if (this.portalEl) {
|
|
11121
|
+
this.triggerEl.setAttribute('aria-expanded', String(this.active));
|
|
11122
|
+
this.triggerEl.setAttribute('aria-controls', this.portalEl.id);
|
|
11123
|
+
}
|
|
11124
|
+
// Attach click listener to handle popover visibility
|
|
11125
|
+
this.triggerEl.addEventListener('click', this.handleTriggerClick);
|
|
11126
|
+
}
|
|
11127
|
+
else {
|
|
11128
|
+
this.triggerEl = null;
|
|
11129
|
+
}
|
|
11130
|
+
};
|
|
11131
|
+
/**
|
|
11132
|
+
* Handles changes to the default slot (popover content)
|
|
11133
|
+
* When the popover is active, re-sync content with portal to handle dynamic updates
|
|
11134
|
+
*/
|
|
11135
|
+
this.handleContentSlotChange = () => {
|
|
11136
|
+
if (!this.active)
|
|
11137
|
+
return;
|
|
11138
|
+
this.updatePortalContent();
|
|
11139
|
+
};
|
|
11140
|
+
/**
|
|
11141
|
+
* Handles clicks on the trigger element
|
|
11142
|
+
*/
|
|
11143
|
+
this.handleTriggerClick = (event) => {
|
|
11144
|
+
// Only prevent default if the trigger is not an anchor with href
|
|
11145
|
+
// This allows link navigation while still controlling popover visibility
|
|
11146
|
+
const composedPath = event.composedPath();
|
|
11147
|
+
const anchorWithHref = composedPath.find((el) => el instanceof HTMLAnchorElement && el.href);
|
|
11148
|
+
if (!anchorWithHref) {
|
|
11149
|
+
event.preventDefault();
|
|
11150
|
+
}
|
|
11151
|
+
// Execute the appropriate action based on popoverTargetAction prop
|
|
11152
|
+
switch (this.popoverTargetAction) {
|
|
11153
|
+
case 'show':
|
|
11154
|
+
this.show();
|
|
11155
|
+
break;
|
|
11156
|
+
case 'hide':
|
|
11157
|
+
this.hide();
|
|
11158
|
+
break;
|
|
11159
|
+
case 'toggle':
|
|
11160
|
+
default:
|
|
11161
|
+
this.toggle();
|
|
11162
|
+
break;
|
|
11163
|
+
}
|
|
11164
|
+
};
|
|
10728
11165
|
}
|
|
10729
11166
|
componentDidLoad() {
|
|
10730
11167
|
var _a;
|
|
10731
|
-
//
|
|
10732
|
-
|
|
10733
|
-
|
|
10734
|
-
|
|
10735
|
-
|
|
11168
|
+
// Bind event handlers for cleanup
|
|
11169
|
+
this.boundClickOutsideHandler = this.handleClickOutside.bind(this);
|
|
11170
|
+
this.boundEscapeKeyHandler = this.handleEscapeKey.bind(this);
|
|
11171
|
+
this.boundScrollHandler = this.handleScroll.bind(this);
|
|
11172
|
+
this.boundResizeHandler = this.handleResize.bind(this);
|
|
11173
|
+
// Create portal element
|
|
11174
|
+
this.createPortal();
|
|
11175
|
+
// Initialize trigger element by calling slot change handler
|
|
11176
|
+
// This is a fallback for environments where slot change might not fire reliably
|
|
11177
|
+
const triggerSlot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot[name="trigger"]');
|
|
11178
|
+
if (triggerSlot && this.triggerEl == null) {
|
|
11179
|
+
const CustomEvent = (typeof window !== 'undefined' ? window.Event : global.Event);
|
|
11180
|
+
const slotChangeEvent = new CustomEvent('slotchange');
|
|
11181
|
+
Object.defineProperty(slotChangeEvent, 'target', { value: triggerSlot, enumerable: true });
|
|
11182
|
+
this.handleTriggerSlotChange(slotChangeEvent);
|
|
10736
11183
|
}
|
|
10737
11184
|
}
|
|
10738
11185
|
disconnectedCallback() {
|
|
10739
|
-
var _a;
|
|
10740
11186
|
this.isComponentMounted = false;
|
|
10741
|
-
// Clean up event listener
|
|
10742
|
-
|
|
10743
|
-
|
|
10744
|
-
|
|
11187
|
+
// Clean up trigger click event listener
|
|
11188
|
+
if (this.triggerEl != null) {
|
|
11189
|
+
this.triggerEl.removeEventListener('click', this.handleTriggerClick);
|
|
11190
|
+
}
|
|
11191
|
+
// Clean up all event listeners
|
|
11192
|
+
this.removeLightDismissListeners();
|
|
11193
|
+
this.removeScrollAndResizeListeners();
|
|
11194
|
+
// Clear any pending debounce timers
|
|
11195
|
+
this.clearDebounceTimers();
|
|
11196
|
+
// Remove portal from DOM
|
|
11197
|
+
this.removePortal();
|
|
11198
|
+
}
|
|
11199
|
+
/**
|
|
11200
|
+
* Clears any pending debounce timers
|
|
11201
|
+
*/
|
|
11202
|
+
clearDebounceTimers() {
|
|
11203
|
+
if (this.scrollDebounceTimer !== null) {
|
|
11204
|
+
clearTimeout(this.scrollDebounceTimer);
|
|
11205
|
+
this.scrollDebounceTimer = null;
|
|
10745
11206
|
}
|
|
11207
|
+
if (this.resizeDebounceTimer !== null) {
|
|
11208
|
+
clearTimeout(this.resizeDebounceTimer);
|
|
11209
|
+
this.resizeDebounceTimer = null;
|
|
11210
|
+
}
|
|
11211
|
+
}
|
|
11212
|
+
createPortal() {
|
|
11213
|
+
if (this.portalEl !== null)
|
|
11214
|
+
return;
|
|
11215
|
+
this.portalEl = document.createElement('div');
|
|
11216
|
+
this.portalEl.className = 'pds-popover';
|
|
11217
|
+
// Apply all styles inline since portal is outside shadow DOM
|
|
11218
|
+
this.portalEl.style.position = 'fixed';
|
|
11219
|
+
this.portalEl.style.zIndex = 'var(--pine-z-index-raised)';
|
|
11220
|
+
this.portalEl.style.maxWidth = `${this.maxWidth}px`;
|
|
11221
|
+
this.portalEl.style.display = 'none';
|
|
11222
|
+
this.portalEl.style.opacity = '0';
|
|
11223
|
+
this.portalEl.style.visibility = 'hidden';
|
|
11224
|
+
this.portalEl.style.backgroundColor = 'var(--pine-color-background-container)';
|
|
11225
|
+
this.portalEl.style.borderRadius = 'var(--pine-dimension-125)';
|
|
11226
|
+
this.portalEl.style.boxShadow = 'var(--pine-box-shadow-200)';
|
|
11227
|
+
this.portalEl.style.margin = 'var(--pine-dimension-none)';
|
|
11228
|
+
this.portalEl.style.padding = 'var(--pine-dimension-md)';
|
|
11229
|
+
// Generate unique ID
|
|
11230
|
+
if (!this.componentId) {
|
|
11231
|
+
const suffix = PdsPopover.instanceCounter++;
|
|
11232
|
+
this.portalEl.id = `pds-popover-portal-${suffix}`;
|
|
11233
|
+
}
|
|
11234
|
+
else {
|
|
11235
|
+
this.portalEl.id = `${this.componentId}-portal`;
|
|
11236
|
+
}
|
|
11237
|
+
// Add accessibility attributes for screen readers
|
|
11238
|
+
// Note: Native Popover API doesn't add a specific role, keeping semantic HTML
|
|
11239
|
+
this.portalEl.setAttribute('aria-modal', 'false'); // Not a modal, can interact with rest of page
|
|
11240
|
+
// Append to body
|
|
11241
|
+
document.body.appendChild(this.portalEl);
|
|
11242
|
+
// Add global focus styles to match Pine design system
|
|
11243
|
+
// This is done after appending to ensure it's part of the document and can access CSS variables
|
|
11244
|
+
this.addPortalFocusStyles();
|
|
10746
11245
|
}
|
|
10747
11246
|
/**
|
|
10748
|
-
*
|
|
11247
|
+
* Adds Pine design system focus styles to the portal element
|
|
11248
|
+
* Uses CSS variables from Pine's design tokens
|
|
10749
11249
|
*/
|
|
10750
|
-
|
|
11250
|
+
addPortalFocusStyles() {
|
|
11251
|
+
if (!this.portalEl)
|
|
11252
|
+
return;
|
|
11253
|
+
const portalId = this.portalEl.id;
|
|
11254
|
+
// Check if style element already exists
|
|
11255
|
+
const existingStyle = document.querySelector(`style[data-pds-popover-focus="${portalId}"]`);
|
|
11256
|
+
if (existingStyle)
|
|
11257
|
+
return;
|
|
11258
|
+
// Create style element with Pine's focus ring styles
|
|
11259
|
+
const styleEl = document.createElement('style');
|
|
11260
|
+
styleEl.setAttribute('data-pds-popover-focus', portalId);
|
|
11261
|
+
styleEl.textContent = `
|
|
11262
|
+
#${portalId}:focus {
|
|
11263
|
+
outline: var(--pine-outline-focus, 2px solid var(--pine-color-focus-ring, #6366f1)) !important;
|
|
11264
|
+
outline-offset: var(--pine-border-width, 1px);
|
|
11265
|
+
}
|
|
11266
|
+
#${portalId}:focus:not(:focus-visible) {
|
|
11267
|
+
outline: none;
|
|
11268
|
+
}
|
|
11269
|
+
`;
|
|
11270
|
+
document.head.appendChild(styleEl);
|
|
11271
|
+
}
|
|
11272
|
+
/**
|
|
11273
|
+
* Moves slot content into portal (preserves event handlers and component instances)
|
|
11274
|
+
*/
|
|
11275
|
+
updatePortalContent() {
|
|
10751
11276
|
var _a;
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
11277
|
+
if (!this.portalEl)
|
|
11278
|
+
return;
|
|
11279
|
+
const contentSlotWrapper = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.pds-popover__content-slot-wrapper');
|
|
11280
|
+
const defaultSlot = contentSlotWrapper === null || contentSlotWrapper === void 0 ? void 0 : contentSlotWrapper.querySelector('slot');
|
|
11281
|
+
if (defaultSlot) {
|
|
11282
|
+
const assignedNodes = defaultSlot.assignedNodes();
|
|
11283
|
+
// Move each node into portal and track with placeholder for restoration
|
|
11284
|
+
assignedNodes.forEach(node => {
|
|
11285
|
+
var _a;
|
|
11286
|
+
// Skip if node is already in the portal or already tracked
|
|
11287
|
+
const isAlreadyInPortal = node.parentNode === this.portalEl;
|
|
11288
|
+
const isAlreadyTracked = this.movedNodes.some(moved => moved.node === node);
|
|
11289
|
+
if (isAlreadyInPortal || isAlreadyTracked) {
|
|
11290
|
+
return;
|
|
11291
|
+
}
|
|
11292
|
+
// Create a placeholder comment to mark original position
|
|
11293
|
+
const placeholder = document.createComment('pds-popover-placeholder');
|
|
11294
|
+
// Insert placeholder before moving the node
|
|
11295
|
+
(_a = node.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(placeholder, node);
|
|
11296
|
+
// Move the actual node to portal (preserves all handlers and state)
|
|
11297
|
+
this.portalEl.appendChild(node);
|
|
11298
|
+
// Track for restoration
|
|
11299
|
+
this.movedNodes.push({ node, placeholder });
|
|
11300
|
+
});
|
|
11301
|
+
}
|
|
11302
|
+
}
|
|
11303
|
+
/**
|
|
11304
|
+
* Restores moved nodes back to their original positions
|
|
11305
|
+
*/
|
|
11306
|
+
restorePortalContent() {
|
|
11307
|
+
// Restore each moved node to its original position
|
|
11308
|
+
this.movedNodes.forEach(({ node, placeholder }) => {
|
|
11309
|
+
if (placeholder.parentNode) {
|
|
11310
|
+
placeholder.parentNode.insertBefore(node, placeholder);
|
|
11311
|
+
placeholder.parentNode.removeChild(placeholder);
|
|
10756
11312
|
}
|
|
10757
|
-
|
|
10758
|
-
|
|
10759
|
-
|
|
11313
|
+
});
|
|
11314
|
+
// Clear tracking array
|
|
11315
|
+
this.movedNodes = [];
|
|
11316
|
+
}
|
|
11317
|
+
removePortal() {
|
|
11318
|
+
if (this.portalEl) {
|
|
11319
|
+
// Remove the portal element from DOM
|
|
11320
|
+
if (this.portalEl.parentNode) {
|
|
11321
|
+
this.portalEl.parentNode.removeChild(this.portalEl);
|
|
11322
|
+
}
|
|
11323
|
+
// Remove the associated focus style element
|
|
11324
|
+
const portalId = this.portalEl.id;
|
|
11325
|
+
const styleEl = document.querySelector(`style[data-pds-popover-focus="${portalId}"]`);
|
|
11326
|
+
if (styleEl && styleEl.parentNode) {
|
|
11327
|
+
styleEl.parentNode.removeChild(styleEl);
|
|
10760
11328
|
}
|
|
10761
11329
|
}
|
|
11330
|
+
this.portalEl = null;
|
|
11331
|
+
}
|
|
11332
|
+
/**
|
|
11333
|
+
* Opens the popover programmatically
|
|
11334
|
+
*/
|
|
11335
|
+
async show() {
|
|
11336
|
+
if (this.active || !this.portalEl)
|
|
11337
|
+
return;
|
|
11338
|
+
this.active = true;
|
|
11339
|
+
// Record open timestamp to prevent immediate close from opening click
|
|
11340
|
+
this.openTimestamp = Date.now();
|
|
11341
|
+
// Update ARIA expanded state on trigger
|
|
11342
|
+
if (this.triggerEl) {
|
|
11343
|
+
this.triggerEl.setAttribute('aria-expanded', 'true');
|
|
11344
|
+
}
|
|
11345
|
+
// Update portal content with latest slot content
|
|
11346
|
+
this.updatePortalContent();
|
|
11347
|
+
// Show portal
|
|
11348
|
+
this.portalEl.style.display = 'block';
|
|
11349
|
+
this.portalEl.style.opacity = '1';
|
|
11350
|
+
this.portalEl.style.visibility = 'visible';
|
|
11351
|
+
// Position the popover
|
|
11352
|
+
requestAnimationFrame(() => {
|
|
11353
|
+
if (!this.isComponentMounted)
|
|
11354
|
+
return;
|
|
11355
|
+
this.handlePopoverPositioning();
|
|
11356
|
+
});
|
|
11357
|
+
// Add scroll and resize listeners for repositioning (always)
|
|
11358
|
+
this.addScrollAndResizeListeners();
|
|
11359
|
+
// Add document listeners for light dismiss and escape key (auto type only)
|
|
11360
|
+
if (this.popoverType === 'auto') {
|
|
11361
|
+
this.addLightDismissListeners();
|
|
11362
|
+
}
|
|
11363
|
+
// Emit open event
|
|
11364
|
+
this.pdsPopoverOpen.emit({
|
|
11365
|
+
componentId: this.componentId,
|
|
11366
|
+
popoverType: this.popoverType,
|
|
11367
|
+
});
|
|
10762
11368
|
}
|
|
10763
11369
|
/**
|
|
10764
11370
|
* Closes the popover programmatically
|
|
10765
11371
|
*/
|
|
10766
11372
|
async hide() {
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
|
|
10772
|
-
|
|
10773
|
-
catch (e) {
|
|
10774
|
-
// Popover might already be closed
|
|
10775
|
-
console.warn('Failed to hide popover:', e);
|
|
10776
|
-
}
|
|
11373
|
+
if (!this.active || !this.portalEl)
|
|
11374
|
+
return;
|
|
11375
|
+
this.active = false;
|
|
11376
|
+
// Update ARIA expanded state on trigger
|
|
11377
|
+
if (this.triggerEl) {
|
|
11378
|
+
this.triggerEl.setAttribute('aria-expanded', 'false');
|
|
10777
11379
|
}
|
|
11380
|
+
// Restore content back to original slot positions
|
|
11381
|
+
this.restorePortalContent();
|
|
11382
|
+
// Hide portal
|
|
11383
|
+
this.portalEl.style.display = 'none';
|
|
11384
|
+
this.portalEl.style.opacity = '0';
|
|
11385
|
+
this.portalEl.style.visibility = 'hidden';
|
|
11386
|
+
// Return focus to trigger for keyboard accessibility
|
|
11387
|
+
// This mirrors native Popover API behavior on close
|
|
11388
|
+
this.returnFocusToTrigger();
|
|
11389
|
+
// Remove all listeners
|
|
11390
|
+
this.removeLightDismissListeners();
|
|
11391
|
+
this.removeScrollAndResizeListeners();
|
|
11392
|
+
// Clear any pending timers
|
|
11393
|
+
this.clearDebounceTimers();
|
|
11394
|
+
// Emit close event
|
|
11395
|
+
this.pdsPopoverClose.emit({
|
|
11396
|
+
componentId: this.componentId,
|
|
11397
|
+
popoverType: this.popoverType,
|
|
11398
|
+
});
|
|
10778
11399
|
}
|
|
10779
11400
|
/**
|
|
10780
11401
|
* Toggles the popover open/closed state programmatically
|
|
10781
11402
|
*/
|
|
10782
11403
|
async toggle() {
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
}
|
|
10789
|
-
catch (e) {
|
|
10790
|
-
console.warn('Failed to toggle popover:', e);
|
|
10791
|
-
}
|
|
11404
|
+
if (this.active) {
|
|
11405
|
+
this.hide();
|
|
11406
|
+
}
|
|
11407
|
+
else {
|
|
11408
|
+
this.show();
|
|
10792
11409
|
}
|
|
10793
11410
|
}
|
|
10794
|
-
|
|
10795
|
-
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
|
|
10799
|
-
|
|
10800
|
-
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
10814
|
-
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
|
|
11411
|
+
/**
|
|
11412
|
+
* Adds light dismiss listeners (click outside and escape key)
|
|
11413
|
+
*/
|
|
11414
|
+
addLightDismissListeners() {
|
|
11415
|
+
// Add listeners immediately - handleClickOutside will check timestamp
|
|
11416
|
+
document.addEventListener('click', this.boundClickOutsideHandler, true);
|
|
11417
|
+
document.addEventListener('keydown', this.boundEscapeKeyHandler);
|
|
11418
|
+
}
|
|
11419
|
+
/**
|
|
11420
|
+
* Removes light dismiss listeners
|
|
11421
|
+
*/
|
|
11422
|
+
removeLightDismissListeners() {
|
|
11423
|
+
document.removeEventListener('click', this.boundClickOutsideHandler, true);
|
|
11424
|
+
document.removeEventListener('keydown', this.boundEscapeKeyHandler);
|
|
11425
|
+
}
|
|
11426
|
+
/**
|
|
11427
|
+
* Adds scroll and resize listeners for repositioning
|
|
11428
|
+
*/
|
|
11429
|
+
addScrollAndResizeListeners() {
|
|
11430
|
+
window.addEventListener('scroll', this.boundScrollHandler, true);
|
|
11431
|
+
window.addEventListener('resize', this.boundResizeHandler);
|
|
11432
|
+
}
|
|
11433
|
+
/**
|
|
11434
|
+
* Removes scroll and resize listeners
|
|
11435
|
+
*/
|
|
11436
|
+
removeScrollAndResizeListeners() {
|
|
11437
|
+
window.removeEventListener('scroll', this.boundScrollHandler, true);
|
|
11438
|
+
window.removeEventListener('resize', this.boundResizeHandler);
|
|
11439
|
+
}
|
|
11440
|
+
/**
|
|
11441
|
+
* Handles clicks outside the popover for light dismiss (auto type only)
|
|
11442
|
+
*/
|
|
11443
|
+
handleClickOutside(event) {
|
|
11444
|
+
var _a, _b;
|
|
11445
|
+
// Ignore events that occurred at or before the popover opened
|
|
11446
|
+
// This prevents the opening click from immediately closing the popover
|
|
11447
|
+
// Convert event.timeStamp (DOMHighResTimeStamp from performance.now()) to epoch time
|
|
11448
|
+
// by calculating: currentEpochTime - (currentPerfTime - eventPerfTime)
|
|
11449
|
+
const eventTime = event.timeStamp
|
|
11450
|
+
? Date.now() - (performance.now() - event.timeStamp)
|
|
11451
|
+
: Date.now();
|
|
11452
|
+
if (eventTime <= this.openTimestamp) {
|
|
11453
|
+
return;
|
|
10822
11454
|
}
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
|
|
11455
|
+
const target = event.target;
|
|
11456
|
+
// Check if click is outside both the popover portal and the trigger
|
|
11457
|
+
const clickedInsidePopover = (_a = this.portalEl) === null || _a === void 0 ? void 0 : _a.contains(target);
|
|
11458
|
+
const clickedInsideTrigger = (_b = this.triggerEl) === null || _b === void 0 ? void 0 : _b.contains(target);
|
|
11459
|
+
if (!clickedInsidePopover && !clickedInsideTrigger) {
|
|
11460
|
+
this.hide();
|
|
10826
11461
|
}
|
|
10827
11462
|
}
|
|
11463
|
+
/**
|
|
11464
|
+
* Returns focus to the trigger element with visible focus indicator
|
|
11465
|
+
* This ensures focus rings/outlines are shown as they would be with keyboard navigation
|
|
11466
|
+
*/
|
|
11467
|
+
returnFocusToTrigger() {
|
|
11468
|
+
if (!this.triggerEl)
|
|
11469
|
+
return;
|
|
11470
|
+
// Focus immediately while still in keyboard event context
|
|
11471
|
+
// This ensures the browser treats it as keyboard-initiated and shows focus ring
|
|
11472
|
+
this.triggerEl.focus({ preventScroll: true });
|
|
11473
|
+
}
|
|
11474
|
+
/**
|
|
11475
|
+
* Handles escape key press to close the popover
|
|
11476
|
+
* Mirrors native Popover API: Escape closes and returns focus to trigger
|
|
11477
|
+
*/
|
|
11478
|
+
handleEscapeKey(event) {
|
|
11479
|
+
if (event.key === 'Escape') {
|
|
11480
|
+
// Prevent default Escape behavior and stop propagation
|
|
11481
|
+
// This mirrors native Popover API which handles Escape exclusively
|
|
11482
|
+
event.preventDefault();
|
|
11483
|
+
event.stopPropagation();
|
|
11484
|
+
// Close popover and return focus to trigger
|
|
11485
|
+
this.hide();
|
|
11486
|
+
}
|
|
11487
|
+
}
|
|
11488
|
+
/**
|
|
11489
|
+
* Handles scroll events to reposition the popover (debounced for performance)
|
|
11490
|
+
*/
|
|
10828
11491
|
handleScroll() {
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
11492
|
+
if (!this.active)
|
|
11493
|
+
return;
|
|
11494
|
+
if (this.scrollDebounceTimer !== null) {
|
|
11495
|
+
clearTimeout(this.scrollDebounceTimer);
|
|
11496
|
+
}
|
|
11497
|
+
this.scrollDebounceTimer = setTimeout(() => {
|
|
10833
11498
|
this.handlePopoverPositioning();
|
|
11499
|
+
this.scrollDebounceTimer = null;
|
|
11500
|
+
}, 10); // 10ms debounce for smooth repositioning
|
|
11501
|
+
}
|
|
11502
|
+
/**
|
|
11503
|
+
* Handles resize events to reposition the popover (debounced for performance)
|
|
11504
|
+
*/
|
|
11505
|
+
handleResize() {
|
|
11506
|
+
if (!this.active)
|
|
11507
|
+
return;
|
|
11508
|
+
if (this.resizeDebounceTimer !== null) {
|
|
11509
|
+
clearTimeout(this.resizeDebounceTimer);
|
|
10834
11510
|
}
|
|
11511
|
+
this.resizeDebounceTimer = setTimeout(() => {
|
|
11512
|
+
this.handlePopoverPositioning();
|
|
11513
|
+
this.resizeDebounceTimer = null;
|
|
11514
|
+
}, 100); // 100ms debounce for resize
|
|
10835
11515
|
}
|
|
11516
|
+
/**
|
|
11517
|
+
* Positions the popover relative to its trigger element
|
|
11518
|
+
*/
|
|
10836
11519
|
handlePopoverPositioning() {
|
|
10837
|
-
|
|
10838
|
-
|
|
10839
|
-
|
|
11520
|
+
// Prevent repositioning loops
|
|
11521
|
+
if (this.isRepositioning) {
|
|
11522
|
+
return;
|
|
11523
|
+
}
|
|
11524
|
+
this.isRepositioning = true;
|
|
11525
|
+
if (this.triggerEl == null || this.portalEl == null) {
|
|
11526
|
+
this.isRepositioning = false;
|
|
10840
11527
|
return;
|
|
10841
|
-
|
|
10842
|
-
const
|
|
10843
|
-
const
|
|
10844
|
-
|
|
10845
|
-
|
|
11528
|
+
}
|
|
11529
|
+
const triggerRect = this.triggerEl.getBoundingClientRect();
|
|
11530
|
+
const popoverRect = this.portalEl.getBoundingClientRect();
|
|
11531
|
+
// Safety check: ensure trigger has valid dimensions (is rendered and visible)
|
|
11532
|
+
if (triggerRect.width === 0 || triggerRect.height === 0) {
|
|
11533
|
+
this.isRepositioning = false;
|
|
11534
|
+
return;
|
|
11535
|
+
}
|
|
10846
11536
|
let top = 0;
|
|
10847
11537
|
let left = 0;
|
|
10848
11538
|
const offset = 8;
|
|
@@ -10896,22 +11586,25 @@ class PdsPopover {
|
|
|
10896
11586
|
left = triggerRect.left - popoverRect.width - offset;
|
|
10897
11587
|
break;
|
|
10898
11588
|
}
|
|
10899
|
-
|
|
10900
|
-
|
|
11589
|
+
this.portalEl.style.top = `${top}px`;
|
|
11590
|
+
this.portalEl.style.left = `${left}px`;
|
|
11591
|
+
// Reset the repositioning guard after a short delay
|
|
11592
|
+
setTimeout(() => {
|
|
11593
|
+
this.isRepositioning = false;
|
|
11594
|
+
}, 16); // ~1 frame at 60fps
|
|
10901
11595
|
}
|
|
10902
11596
|
render() {
|
|
10903
|
-
return (hAsync(Host, { key: '
|
|
11597
|
+
return (hAsync(Host, { key: 'f77eaf0e122faeb6cd3e6bd55313498afb0039b4', id: this.componentId }, hAsync("span", { key: '6a44717df3ed98a600756a01528cb1139478d0d3', class: "pds-popover__trigger-wrapper" }, hAsync("slot", { key: '7c535ad2329988da7166f4fa669266fe31ff3dfa', name: "trigger", onSlotchange: this.handleTriggerSlotChange })), hAsync("div", { key: 'bd387d0e42d90f7339645c47f53b73bc0e345b7d', class: "pds-popover__content-slot-wrapper" }, hAsync("slot", { key: '98bd73611af2ecf0facdc77949a68db2106a4f12', onSlotchange: this.handleContentSlotChange }))));
|
|
10904
11598
|
}
|
|
10905
11599
|
get el() { return getElement(this); }
|
|
10906
11600
|
static get style() { return pdsPopoverCss; }
|
|
10907
11601
|
static get cmpMeta() { return {
|
|
10908
|
-
"$flags$":
|
|
11602
|
+
"$flags$": 265,
|
|
10909
11603
|
"$tagName$": "pds-popover",
|
|
10910
11604
|
"$members$": {
|
|
10911
11605
|
"popoverTargetAction": [1, "popover-target-action"],
|
|
10912
11606
|
"popoverType": [1, "popover-type"],
|
|
10913
11607
|
"componentId": [1, "component-id"],
|
|
10914
|
-
"text": [1],
|
|
10915
11608
|
"maxWidth": [2, "max-width"],
|
|
10916
11609
|
"placement": [513],
|
|
10917
11610
|
"active": [32],
|
|
@@ -10919,11 +11612,15 @@ class PdsPopover {
|
|
|
10919
11612
|
"hide": [64],
|
|
10920
11613
|
"toggle": [64]
|
|
10921
11614
|
},
|
|
10922
|
-
"$listeners$":
|
|
11615
|
+
"$listeners$": undefined,
|
|
10923
11616
|
"$lazyBundleId$": "-",
|
|
10924
11617
|
"$attrsToReflect$": [["placement", "placement"]]
|
|
10925
11618
|
}; }
|
|
10926
11619
|
}
|
|
11620
|
+
/**
|
|
11621
|
+
* Instance counter for unique IDs
|
|
11622
|
+
*/
|
|
11623
|
+
PdsPopover.instanceCounter = 0;
|
|
10927
11624
|
|
|
10928
11625
|
const pdsProgressCss = ":host{--color-progress-fill:var(--pine-color-brand);--sizing-progress-bar-width:100%;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:var(--sizing-progress-bar-width)}@-webkit-keyframes progressBar{0%{width:0}100%{width:var(--sizing-progress-bar-width)}}@keyframes progressBar{0%{width:0}100%{width:var(--sizing-progress-bar-width)}}.pds-progress{-ms-flex-align:center;align-items:center;background-color:var(--pine-color-background-container-disabled);border-radius:var(--pine-dimension-2xs);display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:var(--pine-dimension-xs);position:relative;width:100%}:host(.is-animated) progress,:host(.is-animated) progress::-webkit-progress-bar{-webkit-animation:progressBar 3s ease;animation:progressBar 3s ease;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}progress,progress::-webkit-progress-bar{background-color:transparent;border:0;height:var(--pine-dimension-xs);width:100%}progress::-webkit-progress-value{background:var(--color-progress-fill, var(--pine-color-brand));border-radius:var(--pine-dimension-2xs)}progress::-moz-progress-bar{background:var(--color-progress-fill, var(--pine-color-brand));border-radius:var(--pine-dimension-2xs)}.pds-progress__label{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.pds-progress__percentage{font-weight:var(--pine-font-weight-medium);-webkit-margin-start:calc(var(--pine-dimension-md) / 2);margin-inline-start:calc(var(--pine-dimension-md) / 2)}";
|
|
10929
11626
|
|
|
@@ -10947,11 +11644,11 @@ class PdsProgress {
|
|
|
10947
11644
|
this.showPercent = false;
|
|
10948
11645
|
}
|
|
10949
11646
|
render() {
|
|
10950
|
-
return (hAsync(Host, { key: '
|
|
11647
|
+
return (hAsync(Host, { key: '1d0872d18cc7c89d0f4c2b1690ac7a09801129ae', class: this.animated ? { 'is-animated': this.animated } : '' }, hAsync("div", { key: '556576ec3925f99d1104e9fe7709d5f3a756a8d6', class: "pds-progress" }, hAsync("label", { key: 'eca8e33f036dc1a17175fc2db7dde7be947aadab', class: "pds-progress__label", htmlFor: this.componentId }, this.label), hAsync("progress", { key: 'b0c21fbb91236684e5351f5622db54ef54716dc8', id: this.componentId, max: "100", style: this.fillColor ? { '--color-progress-fill': this.fillColor } : {}, value: this.percent })), this.showPercent && hAsync("div", { key: '5eec8cc0979d86e2740f21a95c64a7f945f4c84a', class: "pds-progress__percentage" }, this.percent, "%")));
|
|
10951
11648
|
}
|
|
10952
11649
|
static get style() { return pdsProgressCss; }
|
|
10953
11650
|
static get cmpMeta() { return {
|
|
10954
|
-
"$flags$":
|
|
11651
|
+
"$flags$": 265,
|
|
10955
11652
|
"$tagName$": "pds-progress",
|
|
10956
11653
|
"$members$": {
|
|
10957
11654
|
"animated": [4],
|
|
@@ -10981,11 +11678,11 @@ class PdsProperty {
|
|
|
10981
11678
|
this.icon = 'star';
|
|
10982
11679
|
}
|
|
10983
11680
|
render() {
|
|
10984
|
-
return (hAsync(Host, { key: '
|
|
11681
|
+
return (hAsync(Host, { key: '9f1076beddaabaf20026bde9381f5fc484289a84', id: this.componentId }, hAsync("pds-box", { key: '7be27ac25227ad3a1222b37a11b1932a9d0cce81', "align-items": "center", gap: "xs" }, hAsync("pds-icon", { key: '898a412a10fc25ed7ad0b4ec4241bdc489d99784', icon: this.icon, size: "var(--pine-dimension-sm)", "aria-hidden": "true" }), hAsync("slot", { key: 'f51046da5cdb725605cac3302996f4828b9f9958' }))));
|
|
10985
11682
|
}
|
|
10986
11683
|
static get style() { return pdsPropertyCss; }
|
|
10987
11684
|
static get cmpMeta() { return {
|
|
10988
|
-
"$flags$":
|
|
11685
|
+
"$flags$": 265,
|
|
10989
11686
|
"$tagName$": "pds-property",
|
|
10990
11687
|
"$members$": {
|
|
10991
11688
|
"componentId": [1, "component-id"],
|
|
@@ -11077,16 +11774,16 @@ class PdsRadio {
|
|
|
11077
11774
|
}
|
|
11078
11775
|
render() {
|
|
11079
11776
|
const renderLabelAndMessages = () => [
|
|
11080
|
-
hAsync("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, hAsync("input", { key: '
|
|
11777
|
+
hAsync("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, hAsync("input", { key: '5ec06b8b4e017027a3fe20cef0241a612abec196', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, type: "radio", id: this.componentId, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleRadioChange, class: this.hasImage() ? 'visually-hidden' : '' }), hAsync("span", { key: 'f7bc6d0bd0759a833a668499039ba97a10bf18ec', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)),
|
|
11081
11778
|
this.helperMessage && (hAsync("div", { key: `${this.componentId}-helper`, class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage)),
|
|
11082
|
-
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: '
|
|
11779
|
+
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: '629e33e9c80a6dc3af11e471d4342b4f992e0084', icon: danger, size: "small" }), this.errorMessage))
|
|
11083
11780
|
];
|
|
11084
|
-
return (hAsync(Host, { key: '
|
|
11781
|
+
return (hAsync(Host, { key: '706822a4f2b85462533dedc7c204679272537c2d', class: this.classNames() }, this.hasImage() && (hAsync("div", { key: 'cc19b9c47bc9b3c38aa322754ff9bf51f6e75d76', class: "pds-radio__image-container", part: "image-container" }, hAsync("slot", { key: 'cf4fe8dbdc464cb0ad39cafb21e67e9e184a2e4f', name: "image", onSlotchange: () => (this._hasImage = this.hasImageSlot()) }))), this.hasImage() ? (hAsync("div", { class: "pds-radio__content-wrapper" }, renderLabelAndMessages())) : (renderLabelAndMessages())));
|
|
11085
11782
|
}
|
|
11086
11783
|
get el() { return getElement(this); }
|
|
11087
11784
|
static get style() { return labelCss$3 + pdsRadioCss; }
|
|
11088
11785
|
static get cmpMeta() { return {
|
|
11089
|
-
"$flags$":
|
|
11786
|
+
"$flags$": 262,
|
|
11090
11787
|
"$tagName$": "pds-radio",
|
|
11091
11788
|
"$members$": {
|
|
11092
11789
|
"checked": [4],
|
|
@@ -11168,11 +11865,11 @@ class PdsRow {
|
|
|
11168
11865
|
})), (this.minHeight && {
|
|
11169
11866
|
'min-height': this.minHeight,
|
|
11170
11867
|
}));
|
|
11171
|
-
return hAsync(Host, { key: '
|
|
11868
|
+
return hAsync(Host, { key: 'a4df5b098252089e69c7da5f329df4223cc57d81', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
|
|
11172
11869
|
}
|
|
11173
11870
|
static get style() { return pdsRowCss; }
|
|
11174
11871
|
static get cmpMeta() { return {
|
|
11175
|
-
"$flags$":
|
|
11872
|
+
"$flags$": 256,
|
|
11176
11873
|
"$tagName$": "pds-row",
|
|
11177
11874
|
"$members$": {
|
|
11178
11875
|
"alignItems": [1, "align-items"],
|
|
@@ -11409,7 +12106,7 @@ class PdsSelect {
|
|
|
11409
12106
|
}
|
|
11410
12107
|
render() {
|
|
11411
12108
|
const hasAction = this.el.querySelector('[slot="action"]') !== null;
|
|
11412
|
-
return (hAsync(Host, { key: '
|
|
12109
|
+
return (hAsync(Host, { key: '0d94c80a048b1ce3a0c2c6147bf84aab09781e08', "aria-disabled": this.disabled ? 'true' : null, class: this.classNames(), "has-action": hasAction && !this.hideLabel ? 'true' : null }, hAsync("div", { key: '15533d7713175f9fddd1fd972f7faa0852753763', class: "pds-select" }, !this.hideLabel && (hAsync("div", { key: '5327297f4963ec4d1e182ee63f973e7309164389', class: "pds-select__label-wrapper" }, hAsync("label", { key: 'b9d697e170c343be49f3654432eb3e9a269dc28c', htmlFor: this.componentId }, hAsync("span", { key: 'f2b2a61293818d2a163836f25e32bf8f66936752', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), hasAction && this.renderAction())), hAsync("select", { key: '4b1eed0ba9cb197fa2fdb9ac0a342bd3df21313b', "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, onChange: this.onSelectUpdate, part: "select", required: this.required, ref: (el) => (this.selectEl = el) }), hAsync("div", { key: '2ceb92d89a00308245571f2aeae0c901cd850874', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, hAsync("slot", { key: '032ef7c0c4b7442fd8f524995cfb95475687b98c', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && hAsync("pds-icon", { key: 'ee2773042ca2d05a98ff9c46c2934926de69d8e6', class: "pds-select__select-icon", icon: enlarge }))));
|
|
11413
12110
|
}
|
|
11414
12111
|
static get formAssociated() { return true; }
|
|
11415
12112
|
get el() { return getElement(this); }
|
|
@@ -11419,7 +12116,7 @@ class PdsSelect {
|
|
|
11419
12116
|
}; }
|
|
11420
12117
|
static get style() { return pdsSelectTokensCss + (labelCss$2 + pdsSelectCss); }
|
|
11421
12118
|
static get cmpMeta() { return {
|
|
11422
|
-
"$flags$":
|
|
12119
|
+
"$flags$": 329,
|
|
11423
12120
|
"$tagName$": "pds-select",
|
|
11424
12121
|
"$members$": {
|
|
11425
12122
|
"autocomplete": [1],
|
|
@@ -14153,12 +14850,12 @@ class PdsSortable {
|
|
|
14153
14850
|
Sortable.create(this.el, sortableOptions);
|
|
14154
14851
|
}
|
|
14155
14852
|
render() {
|
|
14156
|
-
return (hAsync(Host, { key: '
|
|
14853
|
+
return (hAsync(Host, { key: '0af78db3e32adf714d10fb08ff4318f7c84aaef9', class: this.classNames(), id: this.componentId }, hAsync("slot", { key: '1e7ac27c41de163ea4d59c6186a1282eb5f0b27d' })));
|
|
14157
14854
|
}
|
|
14158
14855
|
get el() { return getElement(this); }
|
|
14159
14856
|
static get style() { return pdsSortableCss; }
|
|
14160
14857
|
static get cmpMeta() { return {
|
|
14161
|
-
"$flags$":
|
|
14858
|
+
"$flags$": 262,
|
|
14162
14859
|
"$tagName$": "pds-sortable",
|
|
14163
14860
|
"$members$": {
|
|
14164
14861
|
"border": [516],
|
|
@@ -14200,12 +14897,12 @@ class PdsSortableItem {
|
|
|
14200
14897
|
}
|
|
14201
14898
|
}
|
|
14202
14899
|
render() {
|
|
14203
|
-
return (hAsync(Host, { key: '
|
|
14900
|
+
return (hAsync(Host, { key: '5c5ada49c505d935bfe505997ab69e7eafc2f642', class: "pds-sortable-item", id: this.componentId }, this.showHandle && (hAsync("div", { key: '3041977b792e192192fa9c101f113eb42e87ceea', class: "pds-sortable-item__handle" }, hAsync("pds-icon", { key: '082a98c200abcc8023dc126ed83091167c59290e', icon: handle }))), hAsync("slot", { key: '1e2b2154acee0c3ce09ec77b9949c761ff37181d' }), this.enableActions && (hAsync("div", { key: '5b318f04eb9c74f660900163e17ba51e2c354538', class: "pds-sortable-item__actions" }, hAsync("slot", { key: '2c6631a860af0da48b3a007daeff69b59cfaff59', name: "sortable-item-actions" })))));
|
|
14204
14901
|
}
|
|
14205
14902
|
get el() { return getElement(this); }
|
|
14206
14903
|
static get style() { return pdsSortableItemCss; }
|
|
14207
14904
|
static get cmpMeta() { return {
|
|
14208
|
-
"$flags$":
|
|
14905
|
+
"$flags$": 262,
|
|
14209
14906
|
"$tagName$": "pds-sortable-item",
|
|
14210
14907
|
"$members$": {
|
|
14211
14908
|
"enableActions": [4, "enable-actions"],
|
|
@@ -14305,9 +15002,9 @@ class PdsSwitch {
|
|
|
14305
15002
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
14306
15003
|
}
|
|
14307
15004
|
render() {
|
|
14308
|
-
return (hAsync(Host, { key: '
|
|
14309
|
-
hAsync("div", { key: '
|
|
14310
|
-
hAsync("div", { key: '
|
|
15005
|
+
return (hAsync(Host, { key: 'bc66c138352b3de0330f5b725e043b4055bec2d6', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, hAsync("label", { key: 'c4e400efb2dd2701217bb1044f036d1a281d0001', htmlFor: this.componentId }, hAsync("input", Object.assign({ key: '7b80961fb73cd330088f2c93d46475c1d1853da7', "aria-describedby": assignDescription(this.componentId, this.invalid, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, checked: this.checked, class: "pds-switch__input", disabled: this.disabled, id: this.componentId, name: this.name ? this.name : this.componentId, onChange: this.onSwitchUpdate, required: this.required, type: "checkbox", value: this.value }, this.inheritedAttributes)), hAsync("span", { key: '318e23af1f6126302b8bb0bb8b9f12a0dc7f71b5', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), this.helperMessage &&
|
|
15006
|
+
hAsync("div", { key: 'd16fc523de5eacdd14dc4edce347e3be63edeb3e', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
15007
|
+
hAsync("div", { key: '3c4ecef3cdb08568b0f52ed4af58a60c5f6ace62', class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: 'ef58ca016b5e0cf63cb43591ec7b50e84b19595d', icon: danger, size: "small" }), this.errorMessage)));
|
|
14311
15008
|
}
|
|
14312
15009
|
static get formAssociated() { return true; }
|
|
14313
15010
|
get el() { return getElement(this); }
|
|
@@ -14316,7 +15013,7 @@ class PdsSwitch {
|
|
|
14316
15013
|
}; }
|
|
14317
15014
|
static get style() { return labelCss$1 + pdsSwitchCss; }
|
|
14318
15015
|
static get cmpMeta() { return {
|
|
14319
|
-
"$flags$":
|
|
15016
|
+
"$flags$": 329,
|
|
14320
15017
|
"$tagName$": "pds-switch",
|
|
14321
15018
|
"$members$": {
|
|
14322
15019
|
"componentId": [1, "component-id"],
|
|
@@ -14353,14 +15050,14 @@ class PdsTab {
|
|
|
14353
15050
|
this.pdsTabClick.emit([index, parentComponentId]);
|
|
14354
15051
|
}
|
|
14355
15052
|
render() {
|
|
14356
|
-
const availabilityTabEdgeInlineStart = (hAsync("span", { key: '
|
|
14357
|
-
const availabilityTabEdgeInlineEnd = (hAsync("span", { key: '
|
|
14358
|
-
return (hAsync(Host, { key: '
|
|
15053
|
+
const availabilityTabEdgeInlineStart = (hAsync("span", { key: '837cf57372db654f6ca411054446ebf0bc27b539', class: "pds-tab-edge", role: "presentation" }));
|
|
15054
|
+
const availabilityTabEdgeInlineEnd = (hAsync("span", { key: 'e15055442d56b50e6ac21bfb76fc0f599406a4fb', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
|
|
15055
|
+
return (hAsync(Host, { key: '1c02a1c8e5e562449ab954061a10acc3d54c3efc', variant: this.variant, slot: "tabs", index: this.index }, hAsync("button", { key: '31b0e173dd738fa272dcaf4fc48a0581978f43b2', role: "tab", id: this.parentComponentId + "__" + this.name, "aria-controls": this.parentComponentId + "__" + this.name + "-panel", tabindex: this.selected ? "0" : "-1", "aria-selected": this.selected ? "true" : "false", class: this.selected ? "pds-tab is-active" : "pds-tab", onClick: this.onTabClick.bind(this, this.index, this.parentComponentId) }, this.variant === "availability" && availabilityTabEdgeInlineStart, this.variant === "availability" && availabilityTabEdgeInlineEnd, hAsync("div", { key: '95b4f8d4c226e3b3a174d439816ec4d28cef0686', class: "pds-tab__content" }, hAsync("slot", { key: '452a208775d54a290c0fcc6a69f6e546fde29afe' })))));
|
|
14359
15056
|
}
|
|
14360
15057
|
get el() { return getElement(this); }
|
|
14361
15058
|
static get style() { return pdsTabCss; }
|
|
14362
15059
|
static get cmpMeta() { return {
|
|
14363
|
-
"$flags$":
|
|
15060
|
+
"$flags$": 260,
|
|
14364
15061
|
"$tagName$": "pds-tab",
|
|
14365
15062
|
"$members$": {
|
|
14366
15063
|
"name": [1],
|
|
@@ -14571,7 +15268,7 @@ class PdsTable {
|
|
|
14571
15268
|
get el() { return getElement(this); }
|
|
14572
15269
|
static get style() { return pdsTableCss; }
|
|
14573
15270
|
static get cmpMeta() { return {
|
|
14574
|
-
"$flags$":
|
|
15271
|
+
"$flags$": 265,
|
|
14575
15272
|
"$tagName$": "pds-table",
|
|
14576
15273
|
"$members$": {
|
|
14577
15274
|
"compact": [4],
|
|
@@ -14595,11 +15292,11 @@ class PdsTableBody {
|
|
|
14595
15292
|
registerInstance(this, hostRef);
|
|
14596
15293
|
}
|
|
14597
15294
|
render() {
|
|
14598
|
-
return (hAsync(Host, { key: '
|
|
15295
|
+
return (hAsync(Host, { key: '7c9b15bea47bcede62a93ef11ee9dba093450ab9', role: "rowgroup", part: "body" }, hAsync("slot", { key: 'fab0b2ca27185373cdb7b29d9cb1807b4097aea9' })));
|
|
14599
15296
|
}
|
|
14600
15297
|
static get style() { return pdsTableBodyCss; }
|
|
14601
15298
|
static get cmpMeta() { return {
|
|
14602
|
-
"$flags$":
|
|
15299
|
+
"$flags$": 265,
|
|
14603
15300
|
"$tagName$": "pds-table-body",
|
|
14604
15301
|
"$members$": undefined,
|
|
14605
15302
|
"$listeners$": undefined,
|
|
@@ -14706,16 +15403,16 @@ class PdsTableCell {
|
|
|
14706
15403
|
return classNames.join(' ');
|
|
14707
15404
|
}
|
|
14708
15405
|
render() {
|
|
14709
|
-
return (hAsync(Host, { key: '
|
|
15406
|
+
return (hAsync(Host, { key: 'b1c76cfb3fa26b7e59586cfd693380701c9146ff', class: this.classNames(), role: "gridcell", part: "cell", style: this.tableRef &&
|
|
14710
15407
|
this.tableRef.fixedColumn &&
|
|
14711
15408
|
this.tableRef.selectable
|
|
14712
15409
|
? { '--fixed-cell-position': '40px' }
|
|
14713
|
-
: {} }, hAsync("slot", { key: '
|
|
15410
|
+
: {} }, hAsync("slot", { key: '1a04730905bf7ad930141c1914f37dd7717570d8' })));
|
|
14714
15411
|
}
|
|
14715
15412
|
get hostElement() { return getElement(this); }
|
|
14716
15413
|
static get style() { return pdsTableCellCss; }
|
|
14717
15414
|
static get cmpMeta() { return {
|
|
14718
|
-
"$flags$":
|
|
15415
|
+
"$flags$": 265,
|
|
14719
15416
|
"$tagName$": "pds-table-cell",
|
|
14720
15417
|
"$members$": {
|
|
14721
15418
|
"cellAlign": [1, "cell-align"],
|
|
@@ -14772,12 +15469,12 @@ class PdsTableHead {
|
|
|
14772
15469
|
}
|
|
14773
15470
|
}
|
|
14774
15471
|
render() {
|
|
14775
|
-
return (hAsync(Host, { key: '
|
|
15472
|
+
return (hAsync(Host, { key: '933e69ad28aaf0b899a8ee504088bc5b6396889d', role: "row", part: "head" }, this.tableRef && this.tableRef.selectable && (hAsync("pds-table-head-cell", { key: 'a006c965a4e9bacb4b8e07b34799bab6a0bd482a', part: this.tableRef.selectable ? 'checkbox-cell' : '' }, hAsync("pds-checkbox", { key: 'd7f94ac83be970b2c2ed334296971bc6762602e2', 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: '22edaaa12d31b2be1fd2835d6d4c2801386405af' })));
|
|
14776
15473
|
}
|
|
14777
15474
|
get hostElement() { return getElement(this); }
|
|
14778
15475
|
static get style() { return pdsTableHeadCss; }
|
|
14779
15476
|
static get cmpMeta() { return {
|
|
14780
|
-
"$flags$":
|
|
15477
|
+
"$flags$": 265,
|
|
14781
15478
|
"$tagName$": "pds-table-head",
|
|
14782
15479
|
"$members$": {
|
|
14783
15480
|
"indeterminate": [1028],
|
|
@@ -14911,16 +15608,16 @@ class PdsTableHeadCell {
|
|
|
14911
15608
|
return classNames.join(' ');
|
|
14912
15609
|
}
|
|
14913
15610
|
render() {
|
|
14914
|
-
return (hAsync(Host, { key: '
|
|
15611
|
+
return (hAsync(Host, { key: '3d950a2997ef4c095d08f9c4e67b9a963fea093d', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, part: "head-cell", style: this.tableRef &&
|
|
14915
15612
|
this.tableRef.fixedColumn &&
|
|
14916
15613
|
this.tableRef.selectable
|
|
14917
15614
|
? { '--fixed-cell-position': '40px' }
|
|
14918
|
-
: {} }, hAsync("slot", { key: '
|
|
15615
|
+
: {} }, hAsync("slot", { key: '8ca7d4d169612e5ba237691d9a5ec9ed35610230' }), this.sortable && (hAsync("pds-icon", { key: 'e2e214b39a1706d887bb34a0d4fc3f632e752306', icon: this.sortingDirection === 'asc' ? upSmall : downSmall, part: "sort-icon" }))));
|
|
14919
15616
|
}
|
|
14920
15617
|
get hostElement() { return getElement(this); }
|
|
14921
15618
|
static get style() { return pdsTableHeadCellCss; }
|
|
14922
15619
|
static get cmpMeta() { return {
|
|
14923
|
-
"$flags$":
|
|
15620
|
+
"$flags$": 265,
|
|
14924
15621
|
"$tagName$": "pds-table-head-cell",
|
|
14925
15622
|
"$members$": {
|
|
14926
15623
|
"cellAlign": [1, "cell-align"],
|
|
@@ -14982,12 +15679,12 @@ class PdsTableRow {
|
|
|
14982
15679
|
}
|
|
14983
15680
|
}
|
|
14984
15681
|
render() {
|
|
14985
|
-
return (hAsync(Host, { key: '
|
|
15682
|
+
return (hAsync(Host, { key: 'cffeb199c48f2a06af70a2e5a5b41a21649c24c7', class: this.classNames(), role: "row", part: "row" }, this.tableRef && this.tableRef.selectable && (hAsync("pds-table-cell", { key: '02a80cd54efe360550e636f7bc0f11e3de59af1c', part: this.tableRef.fixedColumn ? 'checkbox-cell' : 'checkbox-cell', class: this.tableRef.selectable ? 'has-checkbox' : '' }, hAsync("pds-checkbox", { key: 'a8cd6c303ec35f71e0a97f130c5d53a2e81a3e4a', componentId: this.generateUniqueId(), onClick: this.handleClick, indeterminate: this.indeterminate, label: "Select Row", hideLabel: true, checked: this.isSelected, part: "row-checkbox" }))), hAsync("slot", { key: '820a502627ffc329f650f7f0110e34ae3f096357' })));
|
|
14986
15683
|
}
|
|
14987
15684
|
get hostElement() { return getElement(this); }
|
|
14988
15685
|
static get style() { return pdsTableRowCss; }
|
|
14989
15686
|
static get cmpMeta() { return {
|
|
14990
|
-
"$flags$":
|
|
15687
|
+
"$flags$": 265,
|
|
14991
15688
|
"$tagName$": "pds-table-row",
|
|
14992
15689
|
"$members$": {
|
|
14993
15690
|
"indeterminate": [1028],
|
|
@@ -15011,12 +15708,12 @@ class PdsTabpanel {
|
|
|
15011
15708
|
this.selected = false; // eslint-disable-line @stencil-community/strict-mutable
|
|
15012
15709
|
}
|
|
15013
15710
|
render() {
|
|
15014
|
-
return (hAsync(Host, { key: '
|
|
15711
|
+
return (hAsync(Host, { key: '84aa81506200fd7f06a94a4c7570b2702b36d9e8', slot: "tabpanels" }, hAsync("div", { key: '0e890243eb41ebda64183cc4fd559abf38f5dfdc', 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: 'aaabfd72a45f6cd52c9c279bf0c014315a659959' }))));
|
|
15015
15712
|
}
|
|
15016
15713
|
get el() { return getElement(this); }
|
|
15017
15714
|
static get style() { return pdsTabpanelCss; }
|
|
15018
15715
|
static get cmpMeta() { return {
|
|
15019
|
-
"$flags$":
|
|
15716
|
+
"$flags$": 260,
|
|
15020
15717
|
"$tagName$": "pds-tabpanel",
|
|
15021
15718
|
"$members$": {
|
|
15022
15719
|
"name": [1],
|
|
@@ -15123,12 +15820,12 @@ class PdsTabs {
|
|
|
15123
15820
|
this.passPropsToChildren();
|
|
15124
15821
|
}
|
|
15125
15822
|
render() {
|
|
15126
|
-
return (hAsync(Host, { key: '
|
|
15823
|
+
return (hAsync(Host, { key: '89db4772ef4dab7f4dba38306b0fdf1ae55c8a9b', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, hAsync("div", { key: 'c1596be516168b0f2548b90344ad3bffcc5cb844', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel, part: "tab-list" }, hAsync("slot", { key: 'be58f90ec895da67fc84eded670183151feb261f', name: "tabs" })), hAsync("slot", { key: '24d3bed1750d8b64a8ffc9c86f517b5e8b15f615', name: "tabpanels" })));
|
|
15127
15824
|
}
|
|
15128
15825
|
get el() { return getElement(this); }
|
|
15129
15826
|
static get style() { return pdsTabsCss; }
|
|
15130
15827
|
static get cmpMeta() { return {
|
|
15131
|
-
"$flags$":
|
|
15828
|
+
"$flags$": 265,
|
|
15132
15829
|
"$tagName$": "pds-tabs",
|
|
15133
15830
|
"$members$": {
|
|
15134
15831
|
"tablistLabel": [1, "tablist-label"],
|
|
@@ -15166,12 +15863,12 @@ class PdsText {
|
|
|
15166
15863
|
${this.weight !== undefined && this.weight.trim() !== '' ? `pds-text--weight-${this.weight}` : ''}
|
|
15167
15864
|
${this.decoration !== undefined && this.decoration.trim() !== '' ? `pds-text--decoration-${this.decoration}` : ''}
|
|
15168
15865
|
`;
|
|
15169
|
-
return (hAsync(Tag, { key: '
|
|
15866
|
+
return (hAsync(Tag, { key: '101a42ae93ac81968a177c7e0d569417f376909c', style: this.color && setColor(this.color), class: typeClasses, part: "content" }, hAsync("slot", { key: '903b04a19b948e04d577c8585a76647033b9c36e' })));
|
|
15170
15867
|
}
|
|
15171
15868
|
get el() { return getElement(this); }
|
|
15172
15869
|
static get style() { return pdsTextCss; }
|
|
15173
15870
|
static get cmpMeta() { return {
|
|
15174
|
-
"$flags$":
|
|
15871
|
+
"$flags$": 265,
|
|
15175
15872
|
"$tagName$": "pds-text",
|
|
15176
15873
|
"$members$": {
|
|
15177
15874
|
"align": [1],
|
|
@@ -15487,10 +16184,10 @@ class PdsTextarea {
|
|
|
15487
16184
|
}
|
|
15488
16185
|
render() {
|
|
15489
16186
|
const value = this.getValue();
|
|
15490
|
-
return (hAsync(Host, { key: '
|
|
15491
|
-
hAsync("div", { key: '
|
|
15492
|
-
hAsync("p", { key: '
|
|
15493
|
-
hAsync("p", { key: '
|
|
16187
|
+
return (hAsync(Host, { key: 'd79506616a5e977e4055fa4901e69ffe58f70419', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null, "has-action": this.hasAction && !this.hideLabel ? 'true' : null }, hAsync("div", { key: '4addd26b68305e0e994e5c90dc9c038b9e6228ef', class: "pds-textarea" }, this.label &&
|
|
16188
|
+
hAsync("div", { key: 'f7c87947c18d943b97319d2b8e89ff34ad41e4fb', class: "pds-textarea__label-wrapper" }, hAsync("label", { key: 'bc9834bd0bcc5b24f7bd95c4743bffeb9fc6f44b', htmlFor: this.componentId }, hAsync("span", { key: '6725ebd07c0787a0eaaef846084fb49e10155385', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), !this.hideLabel && this.renderAction()), hAsync("div", { key: '64fdc55c4f135826118125f8cd8fe158f23df4e8', class: "pds-textarea__field-wrapper" }, hAsync("textarea", Object.assign({ key: '7c6bb49a463e464a48ee11e6567de6b09eaa474b', ref: (el) => this.nativeTextarea = el, "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, maxlength: this.maxLength, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onBlur: this.onBlur, onChange: this.onTextareaChange, onFocus: this.onFocus, onInput: this.onInput }, this.inheritedAttributes), value), this.renderCharacterCounter()), this.helperMessage &&
|
|
16189
|
+
hAsync("p", { key: 'c29ceac2b41863c202787fc835841cd5422cd11b', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
|
|
16190
|
+
hAsync("p", { key: '3bd0c5f4abe35821e246937deea426bbaf2804ed', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, hAsync("pds-icon", { key: 'aa43fd092b146dfc77ea0f8fa54633aa251e4223', icon: danger, size: "small" }), this.errorMessage))));
|
|
15494
16191
|
}
|
|
15495
16192
|
static get formAssociated() { return true; }
|
|
15496
16193
|
get el() { return getElement(this); }
|
|
@@ -15501,7 +16198,7 @@ class PdsTextarea {
|
|
|
15501
16198
|
}; }
|
|
15502
16199
|
static get style() { return labelCss + (pdsInputTokensCss + pdsTextareaCss); }
|
|
15503
16200
|
static get cmpMeta() { return {
|
|
15504
|
-
"$flags$":
|
|
16201
|
+
"$flags$": 329,
|
|
15505
16202
|
"$tagName$": "pds-textarea",
|
|
15506
16203
|
"$members$": {
|
|
15507
16204
|
"autocomplete": [1],
|
|
@@ -15613,20 +16310,20 @@ class PdsToast {
|
|
|
15613
16310
|
return this.icon && hAsync("pds-icon", { name: this.icon, class: "pds-toast__icon" });
|
|
15614
16311
|
}
|
|
15615
16312
|
render() {
|
|
15616
|
-
return (hAsync(Host, { key: '
|
|
16313
|
+
return (hAsync(Host, { key: 'cf03483967a2414e2c6ee68587af609af0bb64c6', hidden: !this.isVisible }, hAsync("div", { key: '70413e3220f6890dd2367bc96a7060269a33124c', class: {
|
|
15617
16314
|
'pds-toast': true,
|
|
15618
16315
|
[`pds-toast--${this.type}`]: this.type !== 'default',
|
|
15619
16316
|
'pds-toast--animating-out': this.isAnimatingOut
|
|
15620
|
-
}, role: "alert", "aria-live": "polite" }, this.renderIcon(), hAsync("span", { key: '
|
|
16317
|
+
}, role: "alert", "aria-live": "polite" }, this.renderIcon(), hAsync("span", { key: '52a991d93d9530e4689586f51b2b78978ff9f4d5', class: "pds-toast__message" }, hAsync("slot", { key: 'fb00a8204606a4621315656e91b3928ed8ad4827' })), this.dismissible && (hAsync("button", { key: 'de78866e9b4f746d823bf68b7d8736ab4bafb9d7', type: "button", class: "pds-toast__button", onClick: () => {
|
|
15621
16318
|
this.dismiss();
|
|
15622
|
-
}, "aria-label": "Dismiss message" }, hAsync("pds-icon", { key: '
|
|
16319
|
+
}, "aria-label": "Dismiss message" }, hAsync("pds-icon", { key: '495a71b67c4a6690f4c1b9562ddd8862d88a85e4', name: "remove" }))))));
|
|
15623
16320
|
}
|
|
15624
16321
|
static get watchers() { return {
|
|
15625
16322
|
"duration": ["handleDurationChange"]
|
|
15626
16323
|
}; }
|
|
15627
16324
|
static get style() { return pdsToastCss; }
|
|
15628
16325
|
static get cmpMeta() { return {
|
|
15629
|
-
"$flags$":
|
|
16326
|
+
"$flags$": 265,
|
|
15630
16327
|
"$tagName$": "pds-toast",
|
|
15631
16328
|
"$members$": {
|
|
15632
16329
|
"componentId": [1, "component-id"],
|
|
@@ -15959,9 +16656,9 @@ class PdsTooltip {
|
|
|
15959
16656
|
}
|
|
15960
16657
|
render() {
|
|
15961
16658
|
const hostId = this.componentId || undefined;
|
|
15962
|
-
return (hAsync(Host, { key: '
|
|
16659
|
+
return (hAsync(Host, { key: 'ef40605b8ed95b1920caa425a021b900bdaef847', id: hostId, class: { 'pds-tooltip--is-open': this.opened } }, hAsync("span", { key: '953a0ddd6070fa99e89307f6ddb9bacfa6932b5c', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide,
|
|
15963
16660
|
/* focusin/out bubble; ensure keyboard users see tooltips */
|
|
15964
|
-
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, hAsync("slot", { key: '
|
|
16661
|
+
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, hAsync("slot", { key: '9fa52468a1d99d4dd5af8a8c07d11b1591c5204c' })), hAsync("div", { key: 'c4dfe98893fc2abacff788177d1f143afb2aa502', class: "pds-tooltip__content-slot-wrapper", hidden: true }, hAsync("slot", { key: '468d06248f384f727517de3fd4c15af8d6e7b118', name: "content" }))));
|
|
15965
16662
|
}
|
|
15966
16663
|
get el() { return getElement(this); }
|
|
15967
16664
|
static get watchers() { return {
|
|
@@ -15969,7 +16666,7 @@ class PdsTooltip {
|
|
|
15969
16666
|
}; }
|
|
15970
16667
|
static get style() { return pdsTooltipCss; }
|
|
15971
16668
|
static get cmpMeta() { return {
|
|
15972
|
-
"$flags$":
|
|
16669
|
+
"$flags$": 260,
|
|
15973
16670
|
"$tagName$": "pds-tooltip",
|
|
15974
16671
|
"$members$": {
|
|
15975
16672
|
"content": [1],
|
|
@@ -16089,7 +16786,7 @@ var BUILD = {
|
|
|
16089
16786
|
vdomRender: true,
|
|
16090
16787
|
vdomStyle: true,
|
|
16091
16788
|
vdomText: true,
|
|
16092
|
-
|
|
16789
|
+
propChangeCallback: true,
|
|
16093
16790
|
taskQueue: true,
|
|
16094
16791
|
hotModuleReplacement: false,
|
|
16095
16792
|
isDebug: false,
|
|
@@ -16137,7 +16834,7 @@ var NAMESPACE = (
|
|
|
16137
16834
|
);
|
|
16138
16835
|
|
|
16139
16836
|
/*
|
|
16140
|
-
Stencil Hydrate Runner v4.
|
|
16837
|
+
Stencil Hydrate Runner v4.38.3 | MIT Licensed | https://stenciljs.com
|
|
16141
16838
|
*/
|
|
16142
16839
|
var __defProp = Object.defineProperty;
|
|
16143
16840
|
var __export = (target, all) => {
|
|
@@ -16151,6 +16848,7 @@ var ORG_LOCATION_ID = "o";
|
|
|
16151
16848
|
var SLOT_NODE_ID = "s";
|
|
16152
16849
|
var TEXT_NODE_ID = "t";
|
|
16153
16850
|
var HYDRATE_ID = "s-id";
|
|
16851
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
16154
16852
|
var STENCIL_DOC_DATA = "_stencilDocData";
|
|
16155
16853
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
16156
16854
|
|
|
@@ -16297,82 +16995,6 @@ var MockAttr = class {
|
|
|
16297
16995
|
}
|
|
16298
16996
|
};
|
|
16299
16997
|
|
|
16300
|
-
// src/mock-doc/class-list.ts
|
|
16301
|
-
var MockClassList = class {
|
|
16302
|
-
constructor(elm) {
|
|
16303
|
-
this.elm = elm;
|
|
16304
|
-
}
|
|
16305
|
-
add(...classNames) {
|
|
16306
|
-
const clsNames = getItems(this.elm);
|
|
16307
|
-
let updated = false;
|
|
16308
|
-
classNames.forEach((className) => {
|
|
16309
|
-
className = String(className);
|
|
16310
|
-
validateClass(className);
|
|
16311
|
-
if (clsNames.includes(className) === false) {
|
|
16312
|
-
clsNames.push(className);
|
|
16313
|
-
updated = true;
|
|
16314
|
-
}
|
|
16315
|
-
});
|
|
16316
|
-
if (updated) {
|
|
16317
|
-
this.elm.setAttributeNS(null, "class", clsNames.join(" "));
|
|
16318
|
-
}
|
|
16319
|
-
}
|
|
16320
|
-
remove(...classNames) {
|
|
16321
|
-
const clsNames = getItems(this.elm);
|
|
16322
|
-
let updated = false;
|
|
16323
|
-
classNames.forEach((className) => {
|
|
16324
|
-
className = String(className);
|
|
16325
|
-
validateClass(className);
|
|
16326
|
-
const index = clsNames.indexOf(className);
|
|
16327
|
-
if (index > -1) {
|
|
16328
|
-
clsNames.splice(index, 1);
|
|
16329
|
-
updated = true;
|
|
16330
|
-
}
|
|
16331
|
-
});
|
|
16332
|
-
if (updated) {
|
|
16333
|
-
this.elm.setAttributeNS(null, "class", clsNames.filter((c) => c.length > 0).join(" "));
|
|
16334
|
-
}
|
|
16335
|
-
}
|
|
16336
|
-
contains(className) {
|
|
16337
|
-
className = String(className);
|
|
16338
|
-
return getItems(this.elm).includes(className);
|
|
16339
|
-
}
|
|
16340
|
-
toggle(className) {
|
|
16341
|
-
className = String(className);
|
|
16342
|
-
if (this.contains(className) === true) {
|
|
16343
|
-
this.remove(className);
|
|
16344
|
-
} else {
|
|
16345
|
-
this.add(className);
|
|
16346
|
-
}
|
|
16347
|
-
}
|
|
16348
|
-
get length() {
|
|
16349
|
-
return getItems(this.elm).length;
|
|
16350
|
-
}
|
|
16351
|
-
item(index) {
|
|
16352
|
-
return getItems(this.elm)[index];
|
|
16353
|
-
}
|
|
16354
|
-
toString() {
|
|
16355
|
-
return getItems(this.elm).join(" ");
|
|
16356
|
-
}
|
|
16357
|
-
};
|
|
16358
|
-
function validateClass(className) {
|
|
16359
|
-
if (className === "") {
|
|
16360
|
-
throw new Error("The token provided must not be empty.");
|
|
16361
|
-
}
|
|
16362
|
-
if (/\s/.test(className)) {
|
|
16363
|
-
throw new Error(
|
|
16364
|
-
`The token provided ('${className}') contains HTML space characters, which are not valid in tokens.`
|
|
16365
|
-
);
|
|
16366
|
-
}
|
|
16367
|
-
}
|
|
16368
|
-
function getItems(elm) {
|
|
16369
|
-
const className = elm.getAttribute("class");
|
|
16370
|
-
if (typeof className === "string" && className.length > 0) {
|
|
16371
|
-
return className.trim().split(" ").filter((c) => c.length > 0);
|
|
16372
|
-
}
|
|
16373
|
-
return [];
|
|
16374
|
-
}
|
|
16375
|
-
|
|
16376
16998
|
// src/mock-doc/css-style-declaration.ts
|
|
16377
16999
|
var MockCSSStyleDeclaration = class {
|
|
16378
17000
|
constructor() {
|
|
@@ -16861,8 +17483,21 @@ function triggerEventListener(elm, ev) {
|
|
|
16861
17483
|
} else if (elm.parentElement == null && elm.tagName === "HTML") {
|
|
16862
17484
|
triggerEventListener(elm.ownerDocument, ev);
|
|
16863
17485
|
} else {
|
|
16864
|
-
|
|
17486
|
+
const nextTarget = getNextEventTarget(elm, ev);
|
|
17487
|
+
triggerEventListener(nextTarget, ev);
|
|
17488
|
+
}
|
|
17489
|
+
}
|
|
17490
|
+
function getNextEventTarget(elm, ev) {
|
|
17491
|
+
if (elm.parentElement) {
|
|
17492
|
+
return elm.parentElement;
|
|
17493
|
+
}
|
|
17494
|
+
if (elm.host && ev.composed) {
|
|
17495
|
+
return elm.host;
|
|
17496
|
+
}
|
|
17497
|
+
if (ev.composed && elm.parentNode && elm.parentNode.host) {
|
|
17498
|
+
return elm.parentNode.host;
|
|
16865
17499
|
}
|
|
17500
|
+
return null;
|
|
16866
17501
|
}
|
|
16867
17502
|
function dispatchEvent(currentTarget, ev) {
|
|
16868
17503
|
ev.target = currentTarget;
|
|
@@ -26504,6 +27139,11 @@ function* streamToHtml(node, opts, output) {
|
|
|
26504
27139
|
const mode = ` shadowrootmode="open"`;
|
|
26505
27140
|
yield mode;
|
|
26506
27141
|
output.currentLineWidth += mode.length;
|
|
27142
|
+
if (node.delegatesFocus) {
|
|
27143
|
+
const delegatesFocusAttr = " shadowrootdelegatesfocus";
|
|
27144
|
+
yield delegatesFocusAttr;
|
|
27145
|
+
output.currentLineWidth += delegatesFocusAttr.length;
|
|
27146
|
+
}
|
|
26507
27147
|
}
|
|
26508
27148
|
const attrsLength = node.attributes.length;
|
|
26509
27149
|
const attributes = opts.prettyHtml && attrsLength > 1 ? cloneAttributes(node.attributes, true) : node.attributes;
|
|
@@ -26870,6 +27510,81 @@ var STRUCTURE_ELEMENTS = /* @__PURE__ */ new Set([
|
|
|
26870
27510
|
"style"
|
|
26871
27511
|
]);
|
|
26872
27512
|
|
|
27513
|
+
// src/mock-doc/token-list.ts
|
|
27514
|
+
var MockTokenList = class {
|
|
27515
|
+
constructor(elm, attr) {
|
|
27516
|
+
this.elm = elm;
|
|
27517
|
+
this.attr = attr;
|
|
27518
|
+
}
|
|
27519
|
+
add(...tokens) {
|
|
27520
|
+
const items = getItems(this.elm, this.attr);
|
|
27521
|
+
let updated = false;
|
|
27522
|
+
tokens.forEach((token) => {
|
|
27523
|
+
token = String(token);
|
|
27524
|
+
validateToken(token);
|
|
27525
|
+
if (items.includes(token) === false) {
|
|
27526
|
+
items.push(token);
|
|
27527
|
+
updated = true;
|
|
27528
|
+
}
|
|
27529
|
+
});
|
|
27530
|
+
if (updated) {
|
|
27531
|
+
this.elm.setAttributeNS(null, this.attr, items.join(" "));
|
|
27532
|
+
}
|
|
27533
|
+
}
|
|
27534
|
+
remove(...tokens) {
|
|
27535
|
+
const items = getItems(this.elm, this.attr);
|
|
27536
|
+
let updated = false;
|
|
27537
|
+
tokens.forEach((token) => {
|
|
27538
|
+
token = String(token);
|
|
27539
|
+
validateToken(token);
|
|
27540
|
+
const index = items.indexOf(token);
|
|
27541
|
+
if (index > -1) {
|
|
27542
|
+
items.splice(index, 1);
|
|
27543
|
+
updated = true;
|
|
27544
|
+
}
|
|
27545
|
+
});
|
|
27546
|
+
if (updated) {
|
|
27547
|
+
this.elm.setAttributeNS(null, this.attr, items.filter((c) => c.length > 0).join(" "));
|
|
27548
|
+
}
|
|
27549
|
+
}
|
|
27550
|
+
contains(token) {
|
|
27551
|
+
token = String(token);
|
|
27552
|
+
return getItems(this.elm, this.attr).includes(token);
|
|
27553
|
+
}
|
|
27554
|
+
toggle(token) {
|
|
27555
|
+
token = String(token);
|
|
27556
|
+
if (this.contains(token) === true) {
|
|
27557
|
+
this.remove(token);
|
|
27558
|
+
} else {
|
|
27559
|
+
this.add(token);
|
|
27560
|
+
}
|
|
27561
|
+
}
|
|
27562
|
+
get length() {
|
|
27563
|
+
return getItems(this.elm, this.attr).length;
|
|
27564
|
+
}
|
|
27565
|
+
item(index) {
|
|
27566
|
+
return getItems(this.elm, this.attr)[index];
|
|
27567
|
+
}
|
|
27568
|
+
toString() {
|
|
27569
|
+
return getItems(this.elm, this.attr).join(" ");
|
|
27570
|
+
}
|
|
27571
|
+
};
|
|
27572
|
+
function validateToken(token) {
|
|
27573
|
+
if (token === "") {
|
|
27574
|
+
throw new Error("The token provided must not be empty.");
|
|
27575
|
+
}
|
|
27576
|
+
if (/\s/.test(token)) {
|
|
27577
|
+
throw new Error(`The token provided ('${token}') contains HTML space characters, which are not valid in tokens.`);
|
|
27578
|
+
}
|
|
27579
|
+
}
|
|
27580
|
+
function getItems(elm, attr) {
|
|
27581
|
+
const value = elm.getAttribute(attr);
|
|
27582
|
+
if (typeof value === "string" && value.length > 0) {
|
|
27583
|
+
return value.trim().split(" ").filter((c) => c.length > 0);
|
|
27584
|
+
}
|
|
27585
|
+
return [];
|
|
27586
|
+
}
|
|
27587
|
+
|
|
26873
27588
|
// src/mock-doc/node.ts
|
|
26874
27589
|
var MockNode2 = class {
|
|
26875
27590
|
constructor(ownerDocument, nodeType, nodeName, nodeValue) {
|
|
@@ -27022,6 +27737,15 @@ var MockNode2 = class {
|
|
|
27022
27737
|
set textContent(value) {
|
|
27023
27738
|
this._nodeValue = String(value);
|
|
27024
27739
|
}
|
|
27740
|
+
addEventListener(type, handler) {
|
|
27741
|
+
addEventListener(this, type, handler);
|
|
27742
|
+
}
|
|
27743
|
+
removeEventListener(type, handler) {
|
|
27744
|
+
removeEventListener(this, type, handler);
|
|
27745
|
+
}
|
|
27746
|
+
dispatchEvent(ev) {
|
|
27747
|
+
return dispatchEvent(this, ev);
|
|
27748
|
+
}
|
|
27025
27749
|
};
|
|
27026
27750
|
MockNode2.ELEMENT_NODE = 1;
|
|
27027
27751
|
MockNode2.TEXT_NODE = 3;
|
|
@@ -27060,15 +27784,25 @@ var MockElement = class extends MockNode2 {
|
|
|
27060
27784
|
addEventListener(this, type, handler);
|
|
27061
27785
|
}
|
|
27062
27786
|
attachShadow(_opts) {
|
|
27787
|
+
var _a2;
|
|
27063
27788
|
const shadowRoot = this.ownerDocument.createDocumentFragment();
|
|
27789
|
+
shadowRoot.delegatesFocus = (_a2 = _opts.delegatesFocus) != null ? _a2 : false;
|
|
27064
27790
|
this.shadowRoot = shadowRoot;
|
|
27065
27791
|
return shadowRoot;
|
|
27066
27792
|
}
|
|
27067
27793
|
blur() {
|
|
27068
|
-
|
|
27069
|
-
|
|
27070
|
-
|
|
27071
|
-
);
|
|
27794
|
+
if (isCurrentlyDispatching(this, "blur")) {
|
|
27795
|
+
return;
|
|
27796
|
+
}
|
|
27797
|
+
markAsDispatching(this, "blur");
|
|
27798
|
+
try {
|
|
27799
|
+
dispatchEvent(
|
|
27800
|
+
this,
|
|
27801
|
+
new MockFocusEvent("blur", { relatedTarget: null, bubbles: true, cancelable: true, composed: true })
|
|
27802
|
+
);
|
|
27803
|
+
} finally {
|
|
27804
|
+
unmarkAsDispatching(this, "blur");
|
|
27805
|
+
}
|
|
27072
27806
|
}
|
|
27073
27807
|
get localName() {
|
|
27074
27808
|
if (!this.nodeName) {
|
|
@@ -27118,7 +27852,10 @@ var MockElement = class extends MockNode2 {
|
|
|
27118
27852
|
this.setAttributeNS(null, "class", value);
|
|
27119
27853
|
}
|
|
27120
27854
|
get classList() {
|
|
27121
|
-
return new
|
|
27855
|
+
return new MockTokenList(this, "class");
|
|
27856
|
+
}
|
|
27857
|
+
get part() {
|
|
27858
|
+
return new MockTokenList(this, "part");
|
|
27122
27859
|
}
|
|
27123
27860
|
click() {
|
|
27124
27861
|
dispatchEvent(this, new MockEvent("click", { bubbles: true, cancelable: true, composed: true }));
|
|
@@ -27810,6 +28547,28 @@ function setTextContent(elm, text) {
|
|
|
27810
28547
|
const textNode = new MockTextNode(elm.ownerDocument, text);
|
|
27811
28548
|
elm.appendChild(textNode);
|
|
27812
28549
|
}
|
|
28550
|
+
var currentlyDispatching = /* @__PURE__ */ new WeakMap();
|
|
28551
|
+
function isCurrentlyDispatching(target, eventType) {
|
|
28552
|
+
const dispatchingEvents = currentlyDispatching.get(target);
|
|
28553
|
+
return dispatchingEvents != null && dispatchingEvents.has(eventType);
|
|
28554
|
+
}
|
|
28555
|
+
function markAsDispatching(target, eventType) {
|
|
28556
|
+
let dispatchingEvents = currentlyDispatching.get(target);
|
|
28557
|
+
if (dispatchingEvents == null) {
|
|
28558
|
+
dispatchingEvents = /* @__PURE__ */ new Set();
|
|
28559
|
+
currentlyDispatching.set(target, dispatchingEvents);
|
|
28560
|
+
}
|
|
28561
|
+
dispatchingEvents.add(eventType);
|
|
28562
|
+
}
|
|
28563
|
+
function unmarkAsDispatching(target, eventType) {
|
|
28564
|
+
const dispatchingEvents = currentlyDispatching.get(target);
|
|
28565
|
+
if (dispatchingEvents != null) {
|
|
28566
|
+
dispatchingEvents.delete(eventType);
|
|
28567
|
+
if (dispatchingEvents.size === 0) {
|
|
28568
|
+
currentlyDispatching.delete(target);
|
|
28569
|
+
}
|
|
28570
|
+
}
|
|
28571
|
+
}
|
|
27813
28572
|
|
|
27814
28573
|
// src/mock-doc/comment-node.ts
|
|
27815
28574
|
var MockComment = class _MockComment extends MockNode2 {
|
|
@@ -27837,6 +28596,12 @@ var MockDocumentFragment = class _MockDocumentFragment extends MockHTMLElement {
|
|
|
27837
28596
|
getElementById(id) {
|
|
27838
28597
|
return getElementById(this, id);
|
|
27839
28598
|
}
|
|
28599
|
+
get adoptedStyleSheets() {
|
|
28600
|
+
return [];
|
|
28601
|
+
}
|
|
28602
|
+
set adoptedStyleSheets(_adoptedStyleSheets) {
|
|
28603
|
+
throw new Error("Unimplemented");
|
|
28604
|
+
}
|
|
27840
28605
|
cloneNode(deep) {
|
|
27841
28606
|
const cloned = new _MockDocumentFragment(null);
|
|
27842
28607
|
if (deep) {
|
|
@@ -27885,7 +28650,9 @@ var MockCSSStyleSheet = class {
|
|
|
27885
28650
|
deleteRule(index) {
|
|
27886
28651
|
if (index >= 0 && index < this.cssRules.length) {
|
|
27887
28652
|
this.cssRules.splice(index, 1);
|
|
27888
|
-
|
|
28653
|
+
if (this.ownerNode) {
|
|
28654
|
+
updateStyleTextNode(this.ownerNode);
|
|
28655
|
+
}
|
|
27889
28656
|
}
|
|
27890
28657
|
}
|
|
27891
28658
|
insertRule(rule, index = 0) {
|
|
@@ -27901,9 +28668,23 @@ var MockCSSStyleSheet = class {
|
|
|
27901
28668
|
const cssRule = new MockCSSRule(this);
|
|
27902
28669
|
cssRule.cssText = rule;
|
|
27903
28670
|
this.cssRules.splice(index, 0, cssRule);
|
|
27904
|
-
|
|
28671
|
+
if (this.ownerNode) {
|
|
28672
|
+
updateStyleTextNode(this.ownerNode);
|
|
28673
|
+
}
|
|
27905
28674
|
return index;
|
|
27906
28675
|
}
|
|
28676
|
+
replaceSync(cssText) {
|
|
28677
|
+
this.cssRules = [];
|
|
28678
|
+
const rules = cssText.split("}").map((rule) => rule.trim()).filter(Boolean).map((rule) => rule + "}");
|
|
28679
|
+
for (const rule of rules) {
|
|
28680
|
+
const cssRule = new MockCSSRule(this);
|
|
28681
|
+
cssRule.cssText = rule;
|
|
28682
|
+
this.cssRules.push(cssRule);
|
|
28683
|
+
}
|
|
28684
|
+
if (this.ownerNode) {
|
|
28685
|
+
updateStyleTextNode(this.ownerNode);
|
|
28686
|
+
}
|
|
28687
|
+
}
|
|
27907
28688
|
};
|
|
27908
28689
|
function getStyleElementText(styleElm) {
|
|
27909
28690
|
const output = [];
|
|
@@ -28942,9 +29723,11 @@ var WINDOW_PROPS = [
|
|
|
28942
29723
|
"NodeList",
|
|
28943
29724
|
"FocusEvent",
|
|
28944
29725
|
"KeyboardEvent",
|
|
28945
|
-
"MouseEvent"
|
|
29726
|
+
"MouseEvent",
|
|
29727
|
+
"CSSStyleSheet"
|
|
28946
29728
|
];
|
|
28947
29729
|
var GLOBAL_CONSTRUCTORS = [
|
|
29730
|
+
["CSSStyleSheet", MockCSSStyleSheet],
|
|
28948
29731
|
["CustomEvent", MockCustomEvent],
|
|
28949
29732
|
["DocumentFragment", MockDocumentFragment],
|
|
28950
29733
|
["DOMParser", MockDOMParser],
|
|
@@ -29152,12 +29935,6 @@ var MockShadowRoot = class extends MockDocumentFragment {
|
|
|
29152
29935
|
get activeElement() {
|
|
29153
29936
|
return null;
|
|
29154
29937
|
}
|
|
29155
|
-
set adoptedStyleSheets(_adoptedStyleSheets) {
|
|
29156
|
-
throw new Error("Unimplemented");
|
|
29157
|
-
}
|
|
29158
|
-
get adoptedStyleSheets() {
|
|
29159
|
-
return [];
|
|
29160
|
-
}
|
|
29161
29938
|
get cloneable() {
|
|
29162
29939
|
return false;
|
|
29163
29940
|
}
|
|
@@ -29961,7 +30738,7 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
29961
30738
|
}
|
|
29962
30739
|
set location(val) {
|
|
29963
30740
|
if (this.defaultView != null) {
|
|
29964
|
-
this.defaultView.location = val;
|
|
30741
|
+
this.defaultView.location.href = val;
|
|
29965
30742
|
}
|
|
29966
30743
|
}
|
|
29967
30744
|
get baseURI() {
|
|
@@ -30211,6 +30988,32 @@ var Build = {
|
|
|
30211
30988
|
isServer: false,
|
|
30212
30989
|
isTesting: BUILD.isTesting ? true : false
|
|
30213
30990
|
};
|
|
30991
|
+
|
|
30992
|
+
// src/utils/constants.ts
|
|
30993
|
+
var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
|
|
30994
|
+
PrimitiveType2["Undefined"] = "undefined";
|
|
30995
|
+
PrimitiveType2["Null"] = "null";
|
|
30996
|
+
PrimitiveType2["String"] = "string";
|
|
30997
|
+
PrimitiveType2["Number"] = "number";
|
|
30998
|
+
PrimitiveType2["SpecialNumber"] = "number";
|
|
30999
|
+
PrimitiveType2["Boolean"] = "boolean";
|
|
31000
|
+
PrimitiveType2["BigInt"] = "bigint";
|
|
31001
|
+
return PrimitiveType2;
|
|
31002
|
+
})(PrimitiveType || {});
|
|
31003
|
+
var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
31004
|
+
NonPrimitiveType2["Array"] = "array";
|
|
31005
|
+
NonPrimitiveType2["Date"] = "date";
|
|
31006
|
+
NonPrimitiveType2["Map"] = "map";
|
|
31007
|
+
NonPrimitiveType2["Object"] = "object";
|
|
31008
|
+
NonPrimitiveType2["RegularExpression"] = "regexp";
|
|
31009
|
+
NonPrimitiveType2["Set"] = "set";
|
|
31010
|
+
NonPrimitiveType2["Channel"] = "channel";
|
|
31011
|
+
NonPrimitiveType2["Symbol"] = "symbol";
|
|
31012
|
+
return NonPrimitiveType2;
|
|
31013
|
+
})(NonPrimitiveType || {});
|
|
31014
|
+
var TYPE_CONSTANT = "type";
|
|
31015
|
+
var VALUE_CONSTANT = "value";
|
|
31016
|
+
var SERIALIZED_PREFIX = "serialized:";
|
|
30214
31017
|
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
30215
31018
|
"%cstencil",
|
|
30216
31019
|
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
@@ -30231,6 +31034,232 @@ var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */
|
|
|
30231
31034
|
// src/utils/helpers.ts
|
|
30232
31035
|
var isString = (v) => typeof v === "string";
|
|
30233
31036
|
|
|
31037
|
+
// src/utils/local-value.ts
|
|
31038
|
+
var LocalValue = class _LocalValue {
|
|
31039
|
+
constructor(type, value) {
|
|
31040
|
+
if (type === "undefined" /* Undefined */ || type === "null" /* Null */) {
|
|
31041
|
+
this.type = type;
|
|
31042
|
+
} else {
|
|
31043
|
+
this.type = type;
|
|
31044
|
+
this.value = value;
|
|
31045
|
+
}
|
|
31046
|
+
}
|
|
31047
|
+
/**
|
|
31048
|
+
* Creates a new LocalValue object with a string value.
|
|
31049
|
+
*
|
|
31050
|
+
* @param {string} value - The string value to be stored in the LocalValue object.
|
|
31051
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31052
|
+
*/
|
|
31053
|
+
static createStringValue(value) {
|
|
31054
|
+
return new _LocalValue("string" /* String */, value);
|
|
31055
|
+
}
|
|
31056
|
+
/**
|
|
31057
|
+
* Creates a new LocalValue object with a number value.
|
|
31058
|
+
*
|
|
31059
|
+
* @param {number} value - The number value.
|
|
31060
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31061
|
+
*/
|
|
31062
|
+
static createNumberValue(value) {
|
|
31063
|
+
return new _LocalValue("number" /* Number */, value);
|
|
31064
|
+
}
|
|
31065
|
+
/**
|
|
31066
|
+
* Creates a new LocalValue object with a special number value.
|
|
31067
|
+
*
|
|
31068
|
+
* @param {number} value - The value of the special number.
|
|
31069
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31070
|
+
*/
|
|
31071
|
+
static createSpecialNumberValue(value) {
|
|
31072
|
+
if (Number.isNaN(value)) {
|
|
31073
|
+
return new _LocalValue("number" /* SpecialNumber */, "NaN");
|
|
31074
|
+
}
|
|
31075
|
+
if (Object.is(value, -0)) {
|
|
31076
|
+
return new _LocalValue("number" /* SpecialNumber */, "-0");
|
|
31077
|
+
}
|
|
31078
|
+
if (value === Infinity) {
|
|
31079
|
+
return new _LocalValue("number" /* SpecialNumber */, "Infinity");
|
|
31080
|
+
}
|
|
31081
|
+
if (value === -Infinity) {
|
|
31082
|
+
return new _LocalValue("number" /* SpecialNumber */, "-Infinity");
|
|
31083
|
+
}
|
|
31084
|
+
return new _LocalValue("number" /* SpecialNumber */, value);
|
|
31085
|
+
}
|
|
31086
|
+
/**
|
|
31087
|
+
* Creates a new LocalValue object with an undefined value.
|
|
31088
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31089
|
+
*/
|
|
31090
|
+
static createUndefinedValue() {
|
|
31091
|
+
return new _LocalValue("undefined" /* Undefined */);
|
|
31092
|
+
}
|
|
31093
|
+
/**
|
|
31094
|
+
* Creates a new LocalValue object with a null value.
|
|
31095
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31096
|
+
*/
|
|
31097
|
+
static createNullValue() {
|
|
31098
|
+
return new _LocalValue("null" /* Null */);
|
|
31099
|
+
}
|
|
31100
|
+
/**
|
|
31101
|
+
* Creates a new LocalValue object with a boolean value.
|
|
31102
|
+
*
|
|
31103
|
+
* @param {boolean} value - The boolean value.
|
|
31104
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31105
|
+
*/
|
|
31106
|
+
static createBooleanValue(value) {
|
|
31107
|
+
return new _LocalValue("boolean" /* Boolean */, value);
|
|
31108
|
+
}
|
|
31109
|
+
/**
|
|
31110
|
+
* Creates a new LocalValue object with a BigInt value.
|
|
31111
|
+
*
|
|
31112
|
+
* @param {BigInt} value - The BigInt value.
|
|
31113
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31114
|
+
*/
|
|
31115
|
+
static createBigIntValue(value) {
|
|
31116
|
+
return new _LocalValue("bigint" /* BigInt */, value.toString());
|
|
31117
|
+
}
|
|
31118
|
+
/**
|
|
31119
|
+
* Creates a new LocalValue object with an array.
|
|
31120
|
+
*
|
|
31121
|
+
* @param {Array} value - The array.
|
|
31122
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31123
|
+
*/
|
|
31124
|
+
static createArrayValue(value) {
|
|
31125
|
+
return new _LocalValue("array" /* Array */, value);
|
|
31126
|
+
}
|
|
31127
|
+
/**
|
|
31128
|
+
* Creates a new LocalValue object with date value.
|
|
31129
|
+
*
|
|
31130
|
+
* @param {string} value - The date.
|
|
31131
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31132
|
+
*/
|
|
31133
|
+
static createDateValue(value) {
|
|
31134
|
+
return new _LocalValue("date" /* Date */, value);
|
|
31135
|
+
}
|
|
31136
|
+
/**
|
|
31137
|
+
* Creates a new LocalValue object of map value.
|
|
31138
|
+
* @param {Map} map - The map.
|
|
31139
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31140
|
+
*/
|
|
31141
|
+
static createMapValue(map2) {
|
|
31142
|
+
const value = [];
|
|
31143
|
+
Array.from(map2.entries()).forEach(([key, val]) => {
|
|
31144
|
+
value.push([_LocalValue.getArgument(key), _LocalValue.getArgument(val)]);
|
|
31145
|
+
});
|
|
31146
|
+
return new _LocalValue("map" /* Map */, value);
|
|
31147
|
+
}
|
|
31148
|
+
/**
|
|
31149
|
+
* Creates a new LocalValue object from the passed object.
|
|
31150
|
+
*
|
|
31151
|
+
* @param object the object to create a LocalValue from
|
|
31152
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31153
|
+
*/
|
|
31154
|
+
static createObjectValue(object) {
|
|
31155
|
+
const value = [];
|
|
31156
|
+
Object.entries(object).forEach(([key, val]) => {
|
|
31157
|
+
value.push([key, _LocalValue.getArgument(val)]);
|
|
31158
|
+
});
|
|
31159
|
+
return new _LocalValue("object" /* Object */, value);
|
|
31160
|
+
}
|
|
31161
|
+
/**
|
|
31162
|
+
* Creates a new LocalValue object of regular expression value.
|
|
31163
|
+
*
|
|
31164
|
+
* @param {string} value - The value of the regular expression.
|
|
31165
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31166
|
+
*/
|
|
31167
|
+
static createRegularExpressionValue(value) {
|
|
31168
|
+
return new _LocalValue("regexp" /* RegularExpression */, value);
|
|
31169
|
+
}
|
|
31170
|
+
/**
|
|
31171
|
+
* Creates a new LocalValue object with the specified value.
|
|
31172
|
+
* @param {Set} value - The value to be set.
|
|
31173
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31174
|
+
*/
|
|
31175
|
+
static createSetValue(value) {
|
|
31176
|
+
return new _LocalValue("set" /* Set */, value);
|
|
31177
|
+
}
|
|
31178
|
+
/**
|
|
31179
|
+
* Creates a new LocalValue object with the given channel value
|
|
31180
|
+
*
|
|
31181
|
+
* @param {ChannelValue} value - The channel value.
|
|
31182
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31183
|
+
*/
|
|
31184
|
+
static createChannelValue(value) {
|
|
31185
|
+
return new _LocalValue("channel" /* Channel */, value);
|
|
31186
|
+
}
|
|
31187
|
+
/**
|
|
31188
|
+
* Creates a new LocalValue object with a Symbol value.
|
|
31189
|
+
*
|
|
31190
|
+
* @param {Symbol} symbol - The Symbol value
|
|
31191
|
+
* @returns {LocalValue} - The created LocalValue object
|
|
31192
|
+
*/
|
|
31193
|
+
static createSymbolValue(symbol) {
|
|
31194
|
+
const description = symbol.description || "Symbol()";
|
|
31195
|
+
return new _LocalValue("symbol" /* Symbol */, description);
|
|
31196
|
+
}
|
|
31197
|
+
static getArgument(argument) {
|
|
31198
|
+
const type = typeof argument;
|
|
31199
|
+
switch (type) {
|
|
31200
|
+
case "string" /* String */:
|
|
31201
|
+
return _LocalValue.createStringValue(argument);
|
|
31202
|
+
case "number" /* Number */:
|
|
31203
|
+
if (Number.isNaN(argument) || Object.is(argument, -0) || !Number.isFinite(argument)) {
|
|
31204
|
+
return _LocalValue.createSpecialNumberValue(argument);
|
|
31205
|
+
}
|
|
31206
|
+
return _LocalValue.createNumberValue(argument);
|
|
31207
|
+
case "boolean" /* Boolean */:
|
|
31208
|
+
return _LocalValue.createBooleanValue(argument);
|
|
31209
|
+
case "bigint" /* BigInt */:
|
|
31210
|
+
return _LocalValue.createBigIntValue(argument);
|
|
31211
|
+
case "undefined" /* Undefined */:
|
|
31212
|
+
return _LocalValue.createUndefinedValue();
|
|
31213
|
+
case "symbol" /* Symbol */:
|
|
31214
|
+
return _LocalValue.createSymbolValue(argument);
|
|
31215
|
+
case "object" /* Object */:
|
|
31216
|
+
if (argument === null) {
|
|
31217
|
+
return _LocalValue.createNullValue();
|
|
31218
|
+
}
|
|
31219
|
+
if (argument instanceof Date) {
|
|
31220
|
+
return _LocalValue.createDateValue(argument);
|
|
31221
|
+
}
|
|
31222
|
+
if (argument instanceof Map) {
|
|
31223
|
+
const map2 = [];
|
|
31224
|
+
argument.forEach((value, key) => {
|
|
31225
|
+
const objectKey = typeof key === "string" ? key : _LocalValue.getArgument(key);
|
|
31226
|
+
const objectValue = _LocalValue.getArgument(value);
|
|
31227
|
+
map2.push([objectKey, objectValue]);
|
|
31228
|
+
});
|
|
31229
|
+
return _LocalValue.createMapValue(argument);
|
|
31230
|
+
}
|
|
31231
|
+
if (argument instanceof Set) {
|
|
31232
|
+
const set = [];
|
|
31233
|
+
argument.forEach((value) => {
|
|
31234
|
+
set.push(_LocalValue.getArgument(value));
|
|
31235
|
+
});
|
|
31236
|
+
return _LocalValue.createSetValue(set);
|
|
31237
|
+
}
|
|
31238
|
+
if (argument instanceof Array) {
|
|
31239
|
+
const arr = [];
|
|
31240
|
+
argument.forEach((value) => {
|
|
31241
|
+
arr.push(_LocalValue.getArgument(value));
|
|
31242
|
+
});
|
|
31243
|
+
return _LocalValue.createArrayValue(arr);
|
|
31244
|
+
}
|
|
31245
|
+
if (argument instanceof RegExp) {
|
|
31246
|
+
return _LocalValue.createRegularExpressionValue({
|
|
31247
|
+
pattern: argument.source,
|
|
31248
|
+
flags: argument.flags
|
|
31249
|
+
});
|
|
31250
|
+
}
|
|
31251
|
+
return _LocalValue.createObjectValue(argument);
|
|
31252
|
+
}
|
|
31253
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
31254
|
+
}
|
|
31255
|
+
asMap() {
|
|
31256
|
+
return {
|
|
31257
|
+
[TYPE_CONSTANT]: this.type,
|
|
31258
|
+
...!(this.type === "null" /* Null */ || this.type === "undefined" /* Undefined */) ? { [VALUE_CONSTANT]: this.value } : {}
|
|
31259
|
+
};
|
|
31260
|
+
}
|
|
31261
|
+
};
|
|
31262
|
+
|
|
30234
31263
|
// src/utils/message-utils.ts
|
|
30235
31264
|
var catchError = (diagnostics, err2, msg) => {
|
|
30236
31265
|
const diagnostic = {
|
|
@@ -30269,6 +31298,106 @@ var shouldIgnoreError = (msg) => {
|
|
|
30269
31298
|
};
|
|
30270
31299
|
var TASK_CANCELED_MSG = `task canceled`;
|
|
30271
31300
|
|
|
31301
|
+
// src/utils/regular-expression.ts
|
|
31302
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
31303
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
31304
|
+
};
|
|
31305
|
+
|
|
31306
|
+
// src/utils/remote-value.ts
|
|
31307
|
+
var RemoteValue = class _RemoteValue {
|
|
31308
|
+
/**
|
|
31309
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
31310
|
+
*
|
|
31311
|
+
* @param serialized The serialized LocalValue object
|
|
31312
|
+
* @returns The original JavaScript value/object
|
|
31313
|
+
*/
|
|
31314
|
+
static fromLocalValue(serialized) {
|
|
31315
|
+
const type = serialized[TYPE_CONSTANT];
|
|
31316
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
31317
|
+
switch (type) {
|
|
31318
|
+
case "string" /* String */:
|
|
31319
|
+
return value;
|
|
31320
|
+
case "boolean" /* Boolean */:
|
|
31321
|
+
return value;
|
|
31322
|
+
case "bigint" /* BigInt */:
|
|
31323
|
+
return BigInt(value);
|
|
31324
|
+
case "undefined" /* Undefined */:
|
|
31325
|
+
return void 0;
|
|
31326
|
+
case "null" /* Null */:
|
|
31327
|
+
return null;
|
|
31328
|
+
case "number" /* Number */:
|
|
31329
|
+
if (value === "NaN") return NaN;
|
|
31330
|
+
if (value === "-0") return -0;
|
|
31331
|
+
if (value === "Infinity") return Infinity;
|
|
31332
|
+
if (value === "-Infinity") return -Infinity;
|
|
31333
|
+
return value;
|
|
31334
|
+
case "array" /* Array */:
|
|
31335
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
31336
|
+
case "date" /* Date */:
|
|
31337
|
+
return new Date(value);
|
|
31338
|
+
case "map" /* Map */:
|
|
31339
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
31340
|
+
for (const [key, val] of value) {
|
|
31341
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
31342
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
31343
|
+
map2.set(deserializedKey, deserializedValue);
|
|
31344
|
+
}
|
|
31345
|
+
return map2;
|
|
31346
|
+
case "object" /* Object */:
|
|
31347
|
+
const obj = {};
|
|
31348
|
+
for (const [key, val] of value) {
|
|
31349
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
31350
|
+
}
|
|
31351
|
+
return obj;
|
|
31352
|
+
case "regexp" /* RegularExpression */:
|
|
31353
|
+
const { pattern, flags } = value;
|
|
31354
|
+
return new RegExp(pattern, flags);
|
|
31355
|
+
case "set" /* Set */:
|
|
31356
|
+
const set = /* @__PURE__ */ new Set();
|
|
31357
|
+
for (const item of value) {
|
|
31358
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
31359
|
+
}
|
|
31360
|
+
return set;
|
|
31361
|
+
case "symbol" /* Symbol */:
|
|
31362
|
+
return Symbol(value);
|
|
31363
|
+
default:
|
|
31364
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
31365
|
+
}
|
|
31366
|
+
}
|
|
31367
|
+
/**
|
|
31368
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
31369
|
+
*
|
|
31370
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
31371
|
+
* @returns Array of deserialized JavaScript values
|
|
31372
|
+
*/
|
|
31373
|
+
static fromLocalValueArray(serializedValues) {
|
|
31374
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
31375
|
+
}
|
|
31376
|
+
/**
|
|
31377
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
31378
|
+
*
|
|
31379
|
+
* @param obj Object to verify
|
|
31380
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
31381
|
+
*/
|
|
31382
|
+
static isLocalValueObject(obj) {
|
|
31383
|
+
if (typeof obj !== "object" || obj === null) {
|
|
31384
|
+
return false;
|
|
31385
|
+
}
|
|
31386
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
31387
|
+
return false;
|
|
31388
|
+
}
|
|
31389
|
+
const type = obj[TYPE_CONSTANT];
|
|
31390
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
31391
|
+
if (!hasTypeProperty) {
|
|
31392
|
+
return false;
|
|
31393
|
+
}
|
|
31394
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
31395
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
31396
|
+
}
|
|
31397
|
+
return true;
|
|
31398
|
+
}
|
|
31399
|
+
};
|
|
31400
|
+
|
|
30272
31401
|
// src/utils/result.ts
|
|
30273
31402
|
var result_exports = {};
|
|
30274
31403
|
__export(result_exports, {
|
|
@@ -30318,6 +31447,21 @@ var unwrapErr = (result) => {
|
|
|
30318
31447
|
}
|
|
30319
31448
|
};
|
|
30320
31449
|
|
|
31450
|
+
// src/utils/serialize.ts
|
|
31451
|
+
function serializeProperty(value) {
|
|
31452
|
+
if (["string", "boolean", "undefined"].includes(typeof value) || typeof value === "number" && value !== Infinity && value !== -Infinity && !isNaN(value)) {
|
|
31453
|
+
return value;
|
|
31454
|
+
}
|
|
31455
|
+
const arg = LocalValue.getArgument(value);
|
|
31456
|
+
return SERIALIZED_PREFIX + btoa(JSON.stringify(arg));
|
|
31457
|
+
}
|
|
31458
|
+
function deserializeProperty(value) {
|
|
31459
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
31460
|
+
return value;
|
|
31461
|
+
}
|
|
31462
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
31463
|
+
}
|
|
31464
|
+
|
|
30321
31465
|
// src/utils/util.ts
|
|
30322
31466
|
var lowerPathParam = (fn) => (p) => fn(p.toLowerCase());
|
|
30323
31467
|
var isDtsFile = lowerPathParam((p) => p.endsWith(".d.ts") || p.endsWith(".d.mts") || p.endsWith(".d.cts"));
|
|
@@ -30352,7 +31496,15 @@ var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
|
30352
31496
|
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
30353
31497
|
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
30354
31498
|
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
30355
|
-
var createSupportsRuleRe = (selector) =>
|
|
31499
|
+
var createSupportsRuleRe = (selector) => {
|
|
31500
|
+
const safeSelector = escapeRegExpSpecialCharacters(selector);
|
|
31501
|
+
return new RegExp(
|
|
31502
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
31503
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
31504
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector}))(${safeSelector}\\b)`,
|
|
31505
|
+
"g"
|
|
31506
|
+
);
|
|
31507
|
+
};
|
|
30356
31508
|
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
30357
31509
|
var _colonHostRe = createSupportsRuleRe(":host");
|
|
30358
31510
|
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
@@ -30361,6 +31513,9 @@ var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
|
30361
31513
|
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
30362
31514
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
30363
31515
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
31516
|
+
var baseClass = BUILD.lazyLoad ? class {
|
|
31517
|
+
} : globalThis.HTMLElement || class {
|
|
31518
|
+
};
|
|
30364
31519
|
|
|
30365
31520
|
// src/compiler/html/canonical-link.ts
|
|
30366
31521
|
var updateCanonicalLink = (doc, href) => {
|
|
@@ -31551,6 +32706,7 @@ function renderToString(html, options, asStream) {
|
|
|
31551
32706
|
}
|
|
31552
32707
|
function hydrateDocument(doc, options, asStream) {
|
|
31553
32708
|
const opts = normalizeHydrateOptions(options);
|
|
32709
|
+
opts.serializeShadowRoot = typeof opts.serializeShadowRoot === "undefined" ? "declarative-shadow-dom" : opts.serializeShadowRoot;
|
|
31554
32710
|
let win2 = null;
|
|
31555
32711
|
const results = generateHydrateResults(opts);
|
|
31556
32712
|
if (hasError(results.diagnostics)) {
|
|
@@ -31562,7 +32718,7 @@ function hydrateDocument(doc, options, asStream) {
|
|
|
31562
32718
|
opts.destroyDocument = true;
|
|
31563
32719
|
win2 = new MockWindow(doc);
|
|
31564
32720
|
if (!asStream) {
|
|
31565
|
-
return
|
|
32721
|
+
return render2(win2, opts, results).then(() => results);
|
|
31566
32722
|
}
|
|
31567
32723
|
return renderStream(win2, opts, results);
|
|
31568
32724
|
} catch (e) {
|
|
@@ -31579,7 +32735,7 @@ function hydrateDocument(doc, options, asStream) {
|
|
|
31579
32735
|
opts.destroyDocument = false;
|
|
31580
32736
|
win2 = patchDomImplementation(doc, opts);
|
|
31581
32737
|
if (!asStream) {
|
|
31582
|
-
return
|
|
32738
|
+
return render2(win2, opts, results).then(() => results);
|
|
31583
32739
|
}
|
|
31584
32740
|
return renderStream(win2, opts, results);
|
|
31585
32741
|
} catch (e) {
|
|
@@ -31594,7 +32750,7 @@ function hydrateDocument(doc, options, asStream) {
|
|
|
31594
32750
|
renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`);
|
|
31595
32751
|
return Promise.resolve(results);
|
|
31596
32752
|
}
|
|
31597
|
-
async function
|
|
32753
|
+
async function render2(win2, opts, results) {
|
|
31598
32754
|
if ("process" in globalThis && typeof process.on === "function" && !process.__stencilErrors) {
|
|
31599
32755
|
process.__stencilErrors = true;
|
|
31600
32756
|
process.on("unhandledRejection", (e) => {
|
|
@@ -31619,7 +32775,7 @@ async function render(win2, opts, results) {
|
|
|
31619
32775
|
}
|
|
31620
32776
|
function renderStream(win2, opts, results) {
|
|
31621
32777
|
async function* processRender() {
|
|
31622
|
-
const renderResult = await
|
|
32778
|
+
const renderResult = await render2(win2, opts, results);
|
|
31623
32779
|
yield renderResult.html;
|
|
31624
32780
|
}
|
|
31625
32781
|
return Readable.from(processRender());
|
|
@@ -31655,6 +32811,16 @@ function finalizeHydrate(win2, doc, opts, results) {
|
|
|
31655
32811
|
if (opts.removeScripts) {
|
|
31656
32812
|
removeScripts(doc.documentElement);
|
|
31657
32813
|
}
|
|
32814
|
+
const styles2 = doc.querySelectorAll("head style");
|
|
32815
|
+
if (styles2.length > 0) {
|
|
32816
|
+
results.styles.push(
|
|
32817
|
+
...Array.from(styles2).map((style) => ({
|
|
32818
|
+
href: style.getAttribute("href"),
|
|
32819
|
+
id: style.getAttribute(HYDRATED_STYLE_ID),
|
|
32820
|
+
content: style.textContent
|
|
32821
|
+
}))
|
|
32822
|
+
);
|
|
32823
|
+
}
|
|
31658
32824
|
try {
|
|
31659
32825
|
updateCanonicalLink(doc, opts.canonicalUrl);
|
|
31660
32826
|
} catch (e) {
|
|
@@ -31732,4 +32898,4 @@ function removeScripts(elm) {
|
|
|
31732
32898
|
}
|
|
31733
32899
|
}
|
|
31734
32900
|
|
|
31735
|
-
export { createWindowFromHtml, hydrateDocument, renderToString, serializeDocumentToString, streamToString };
|
|
32901
|
+
export { createWindowFromHtml, deserializeProperty, hydrateDocument, renderToString, serializeDocumentToString, serializeProperty, streamToString };
|