@pine-ds/core 3.9.0 → 3.11.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-BIrlTMGo.js} +3 -3
- package/dist/cjs/index-BIrlTMGo.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-icon.entry.cjs.js.map +1 -1
- 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-CvGEHHLR.js} +3 -3
- package/dist/esm/index-CvGEHHLR.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-icon.entry.js.map +1 -1
- 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-CvGEHHLR.js} +1 -1
- package/dist/esm-es5/index-CvGEHHLR.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-icon.entry.js.map +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-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-c2599425.entry.js → p-0837abe8.entry.js} +2 -2
- package/dist/pine-core/p-0837abe8.entry.js.map +1 -0
- package/dist/pine-core/p-09cab3b5.system.entry.js +2 -0
- package/dist/pine-core/p-09cab3b5.system.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-04ad9d2c.system.entry.js → p-198fce07.system.entry.js} +2 -2
- package/dist/pine-core/p-198fce07.system.entry.js.map +1 -0
- package/dist/pine-core/{p-88773b86.entry.js → p-19e6bce5.entry.js} +2 -2
- package/dist/pine-core/p-19e6bce5.entry.js.map +1 -0
- package/dist/pine-core/{p-DW3lkDNz.system.js.map → p-1W8OgEyK.system.js.map} +1 -1
- 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-1039e8e9.entry.js → p-1b299f58.entry.js} +2 -2
- package/dist/pine-core/p-1b299f58.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-dace69e7.system.entry.js → p-1c03ac40.system.entry.js} +2 -2
- package/dist/pine-core/p-1c03ac40.system.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-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-f25274c9.entry.js → p-2c3ede8e.entry.js} +2 -2
- package/dist/pine-core/p-2c3ede8e.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-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-43b758af.entry.js +2 -0
- package/dist/pine-core/p-43b758af.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-4ea1a4fb.entry.js +2 -0
- package/dist/pine-core/p-4ea1a4fb.entry.js.map +1 -0
- package/dist/pine-core/{p-0486ecc6.system.entry.js → p-4fe28624.system.entry.js} +2 -2
- package/dist/pine-core/p-4fe28624.system.entry.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-b9e12535.system.entry.js → p-53645ec6.system.entry.js} +2 -2
- package/dist/pine-core/p-53645ec6.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-5565ee41.system.entry.js +2 -0
- package/dist/pine-core/p-5565ee41.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-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-e702a8dc.system.entry.js → p-619a6667.system.entry.js} +2 -2
- package/dist/pine-core/p-619a6667.system.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-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-85c41629.entry.js → p-6f5dfd01.entry.js} +2 -2
- package/dist/pine-core/p-6f5dfd01.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-73a6c002.entry.js} +2 -2
- package/dist/pine-core/p-73a6c002.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-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-96a60a99.entry.js → p-7c2381c5.entry.js} +2 -2
- package/dist/pine-core/p-7c2381c5.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-6d48604a.system.entry.js → p-818dd3d8.system.entry.js} +2 -2
- package/dist/pine-core/p-818dd3d8.system.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-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-5b1d6cd2.entry.js → p-9f7318d7.entry.js} +2 -2
- package/dist/pine-core/p-9f7318d7.entry.js.map +1 -0
- package/dist/pine-core/{p-BG99uNIQ.system.js → p-B7x-ddku.system.js} +1 -1
- package/dist/pine-core/p-B7x-ddku.system.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-DmdrRtWG.system.js.map → p-BCCWozKV.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-Cid662up.system.js.map → p-BF6EelyL.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-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-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-4xv5UVkx.system.js.map → p-Bhj5-yqf.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-CQwYeJqz.system.js.map → p-Bj1vPZM7.system.js.map} +1 -1
- package/dist/pine-core/{p-BRIdBthP.system.js.map → p-BnrgLbVq.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-BDK6YCRb.system.js.map → p-BvtgWXBT.system.js.map} +1 -1
- package/dist/pine-core/{p-qQVNUF7F.system.js.map → p-BynWb21G.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-K3LH4gRE.system.js.map → p-CIoeutZO.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-CSa_b_JX.system.js.map → p-CVoRTJJv.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-CEUtKiTx.system.js.map → p-CpcN1meO.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-BPjnTOEL.system.js.map → p-Cua7cmvq.system.js.map} +1 -1
- package/dist/pine-core/{p-D4zJBIgl.js → p-CvGEHHLR.js} +1 -1
- package/dist/pine-core/p-CvGEHHLR.js.map +1 -0
- package/dist/pine-core/{p-CfyzuJNE.system.js.map → p-D-CArvsF.system.js.map} +1 -1
- 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-DCiTnlD3.system.js.map +1 -0
- package/dist/pine-core/{p-BILpjGVZ.system.js.map → p-DPmRw4fA.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-B-Doh1Wu.system.js.map → p-DvfECQRp.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-O9Boj8Mc.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-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-a2c309fa.system.entry.js +2 -0
- package/dist/pine-core/p-a2c309fa.system.entry.js.map +1 -0
- package/dist/pine-core/p-a3503596.entry.js +2 -0
- package/dist/pine-core/p-a3503596.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-7af21e83.system.entry.js → p-ab34c977.system.entry.js} +2 -2
- package/dist/pine-core/p-ab34c977.system.entry.js.map +1 -0
- package/dist/pine-core/{p-86263a62.entry.js → p-ac5eb57e.entry.js} +2 -2
- package/dist/pine-core/p-ac5eb57e.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-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-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-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-9b335a9f.entry.js → p-d0efe5e1.entry.js} +2 -2
- package/dist/pine-core/p-d0efe5e1.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-725c350c.entry.js → p-da23f4cf.entry.js} +2 -2
- package/dist/pine-core/p-da23f4cf.entry.js.map +1 -0
- 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-97299c83.system.entry.js → p-e22c4870.system.entry.js} +2 -2
- package/dist/pine-core/p-e22c4870.system.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-f0e44449.system.entry.js → p-e715d22e.system.entry.js} +2 -2
- package/dist/pine-core/p-e715d22e.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-ee6c07d6.system.entry.js +2 -0
- package/dist/pine-core/p-ee6c07d6.system.entry.js.map +1 -0
- package/dist/pine-core/p-f2344cb2.system.entry.js +2 -0
- package/dist/pine-core/p-f2344cb2.system.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-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-2c407961.entry.js → p-f72243c4.entry.js} +2 -2
- package/dist/pine-core/p-f72243c4.entry.js.map +1 -0
- package/dist/pine-core/p-f74bcc1d.entry.js +2 -0
- package/dist/pine-core/p-f74bcc1d.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-538b3902.system.entry.js → p-fcde1f61.system.entry.js} +2 -2
- package/dist/pine-core/p-fcde1f61.system.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-tJa4KYNO.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-icon.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-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.js
CHANGED
|
@@ -34,6 +34,7 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
34
34
|
var CharacterData = $stencilWindow.CharacterData;
|
|
35
35
|
var CSS = $stencilWindow.CSS;
|
|
36
36
|
var CustomEvent = $stencilWindow.CustomEvent;
|
|
37
|
+
var CSSStyleSheet = $stencilWindow.CSSStyleSheet;
|
|
37
38
|
var Document = $stencilWindow.Document;
|
|
38
39
|
var ShadowRoot = $stencilWindow.ShadowRoot;
|
|
39
40
|
var DocumentFragment = $stencilWindow.DocumentFragment;
|
|
@@ -126,10 +127,10 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
126
127
|
|
|
127
128
|
|
|
128
129
|
const NAMESPACE = 'pine-core';
|
|
129
|
-
const BUILD = /* pine-core */ { hydratedSelectorName: "hydrated", slotRelocation: true, updatable: true};
|
|
130
|
+
const BUILD = /* pine-core */ { hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
|
|
130
131
|
|
|
131
132
|
/*
|
|
132
|
-
Stencil Hydrate Platform v4.
|
|
133
|
+
Stencil Hydrate Platform v4.38.3 | MIT Licensed | https://stenciljs.com
|
|
133
134
|
*/
|
|
134
135
|
var __defProp = Object.defineProperty;
|
|
135
136
|
var __export = (target, all) => {
|
|
@@ -140,6 +141,64 @@ var __export = (target, all) => {
|
|
|
140
141
|
// src/utils/constants.ts
|
|
141
142
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
142
143
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
144
|
+
var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
|
|
145
|
+
PrimitiveType2["Undefined"] = "undefined";
|
|
146
|
+
PrimitiveType2["Null"] = "null";
|
|
147
|
+
PrimitiveType2["String"] = "string";
|
|
148
|
+
PrimitiveType2["Number"] = "number";
|
|
149
|
+
PrimitiveType2["SpecialNumber"] = "number";
|
|
150
|
+
PrimitiveType2["Boolean"] = "boolean";
|
|
151
|
+
PrimitiveType2["BigInt"] = "bigint";
|
|
152
|
+
return PrimitiveType2;
|
|
153
|
+
})(PrimitiveType || {});
|
|
154
|
+
var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
155
|
+
NonPrimitiveType2["Array"] = "array";
|
|
156
|
+
NonPrimitiveType2["Date"] = "date";
|
|
157
|
+
NonPrimitiveType2["Map"] = "map";
|
|
158
|
+
NonPrimitiveType2["Object"] = "object";
|
|
159
|
+
NonPrimitiveType2["RegularExpression"] = "regexp";
|
|
160
|
+
NonPrimitiveType2["Set"] = "set";
|
|
161
|
+
NonPrimitiveType2["Channel"] = "channel";
|
|
162
|
+
NonPrimitiveType2["Symbol"] = "symbol";
|
|
163
|
+
return NonPrimitiveType2;
|
|
164
|
+
})(NonPrimitiveType || {});
|
|
165
|
+
var TYPE_CONSTANT = "type";
|
|
166
|
+
var VALUE_CONSTANT = "value";
|
|
167
|
+
var SERIALIZED_PREFIX = "serialized:";
|
|
168
|
+
|
|
169
|
+
// src/utils/es2022-rewire-class-members.ts
|
|
170
|
+
var reWireGetterSetter = (instance, hostRef) => {
|
|
171
|
+
var _a;
|
|
172
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
173
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
174
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
175
|
+
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
176
|
+
const ogValue = instance[memberName];
|
|
177
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
178
|
+
if (ogDescriptor) {
|
|
179
|
+
Object.defineProperty(instance, memberName, {
|
|
180
|
+
get() {
|
|
181
|
+
return ogDescriptor.get.call(this);
|
|
182
|
+
},
|
|
183
|
+
set(newValue) {
|
|
184
|
+
ogDescriptor.set.call(this, newValue);
|
|
185
|
+
},
|
|
186
|
+
configurable: true,
|
|
187
|
+
enumerable: true
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
function getPropertyDescriptor(obj, memberName) {
|
|
195
|
+
while (obj) {
|
|
196
|
+
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
197
|
+
if (desc == null ? void 0 : desc.get) return desc;
|
|
198
|
+
obj = Object.getPrototypeOf(obj);
|
|
199
|
+
}
|
|
200
|
+
return void 0;
|
|
201
|
+
}
|
|
143
202
|
|
|
144
203
|
// src/utils/helpers.ts
|
|
145
204
|
var isDef = (v) => v != null && v !== void 0;
|
|
@@ -159,6 +218,101 @@ var escapeRegExpSpecialCharacters = (text) => {
|
|
|
159
218
|
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
160
219
|
};
|
|
161
220
|
|
|
221
|
+
// src/utils/remote-value.ts
|
|
222
|
+
var RemoteValue = class _RemoteValue {
|
|
223
|
+
/**
|
|
224
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
225
|
+
*
|
|
226
|
+
* @param serialized The serialized LocalValue object
|
|
227
|
+
* @returns The original JavaScript value/object
|
|
228
|
+
*/
|
|
229
|
+
static fromLocalValue(serialized) {
|
|
230
|
+
const type = serialized[TYPE_CONSTANT];
|
|
231
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
232
|
+
switch (type) {
|
|
233
|
+
case "string" /* String */:
|
|
234
|
+
return value;
|
|
235
|
+
case "boolean" /* Boolean */:
|
|
236
|
+
return value;
|
|
237
|
+
case "bigint" /* BigInt */:
|
|
238
|
+
return BigInt(value);
|
|
239
|
+
case "undefined" /* Undefined */:
|
|
240
|
+
return void 0;
|
|
241
|
+
case "null" /* Null */:
|
|
242
|
+
return null;
|
|
243
|
+
case "number" /* Number */:
|
|
244
|
+
if (value === "NaN") return NaN;
|
|
245
|
+
if (value === "-0") return -0;
|
|
246
|
+
if (value === "Infinity") return Infinity;
|
|
247
|
+
if (value === "-Infinity") return -Infinity;
|
|
248
|
+
return value;
|
|
249
|
+
case "array" /* Array */:
|
|
250
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
251
|
+
case "date" /* Date */:
|
|
252
|
+
return new Date(value);
|
|
253
|
+
case "map" /* Map */:
|
|
254
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
255
|
+
for (const [key, val] of value) {
|
|
256
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
257
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
258
|
+
map2.set(deserializedKey, deserializedValue);
|
|
259
|
+
}
|
|
260
|
+
return map2;
|
|
261
|
+
case "object" /* Object */:
|
|
262
|
+
const obj = {};
|
|
263
|
+
for (const [key, val] of value) {
|
|
264
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
265
|
+
}
|
|
266
|
+
return obj;
|
|
267
|
+
case "regexp" /* RegularExpression */:
|
|
268
|
+
const { pattern, flags } = value;
|
|
269
|
+
return new RegExp(pattern, flags);
|
|
270
|
+
case "set" /* Set */:
|
|
271
|
+
const set = /* @__PURE__ */ new Set();
|
|
272
|
+
for (const item of value) {
|
|
273
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
274
|
+
}
|
|
275
|
+
return set;
|
|
276
|
+
case "symbol" /* Symbol */:
|
|
277
|
+
return Symbol(value);
|
|
278
|
+
default:
|
|
279
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
284
|
+
*
|
|
285
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
286
|
+
* @returns Array of deserialized JavaScript values
|
|
287
|
+
*/
|
|
288
|
+
static fromLocalValueArray(serializedValues) {
|
|
289
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
293
|
+
*
|
|
294
|
+
* @param obj Object to verify
|
|
295
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
296
|
+
*/
|
|
297
|
+
static isLocalValueObject(obj) {
|
|
298
|
+
if (typeof obj !== "object" || obj === null) {
|
|
299
|
+
return false;
|
|
300
|
+
}
|
|
301
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
302
|
+
return false;
|
|
303
|
+
}
|
|
304
|
+
const type = obj[TYPE_CONSTANT];
|
|
305
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
306
|
+
if (!hasTypeProperty) {
|
|
307
|
+
return false;
|
|
308
|
+
}
|
|
309
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
310
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
311
|
+
}
|
|
312
|
+
return true;
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
|
|
162
316
|
// src/utils/result.ts
|
|
163
317
|
var result_exports = {};
|
|
164
318
|
__export(result_exports, {
|
|
@@ -208,6 +362,32 @@ var unwrapErr = (result) => {
|
|
|
208
362
|
}
|
|
209
363
|
};
|
|
210
364
|
|
|
365
|
+
// src/utils/serialize.ts
|
|
366
|
+
function deserializeProperty(value) {
|
|
367
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
368
|
+
return value;
|
|
369
|
+
}
|
|
370
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// src/utils/style.ts
|
|
374
|
+
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
375
|
+
return void 0;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
// src/utils/shadow-root.ts
|
|
379
|
+
var globalStyleSheet;
|
|
380
|
+
function createShadowRoot(cmpMeta) {
|
|
381
|
+
var _a;
|
|
382
|
+
const shadowRoot = this.attachShadow({ mode: "open" });
|
|
383
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
|
|
384
|
+
if (globalStyleSheet) {
|
|
385
|
+
{
|
|
386
|
+
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
211
391
|
// src/runtime/runtime-constants.ts
|
|
212
392
|
var CONTENT_REF_ID = "r";
|
|
213
393
|
var ORG_LOCATION_ID = "o";
|
|
@@ -331,7 +511,7 @@ function patchSlotNode(node) {
|
|
|
331
511
|
const slotName = this["s-sn"];
|
|
332
512
|
if (opts == null ? void 0 : opts.flatten) {
|
|
333
513
|
console.error(`
|
|
334
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
514
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
335
515
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
336
516
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
337
517
|
`);
|
|
@@ -375,6 +555,94 @@ var uniqueTime = (key, measureText) => {
|
|
|
375
555
|
};
|
|
376
556
|
}
|
|
377
557
|
};
|
|
558
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
559
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
560
|
+
let style = styles.get(scopeId2);
|
|
561
|
+
{
|
|
562
|
+
style = cssText;
|
|
563
|
+
}
|
|
564
|
+
styles.set(scopeId2, style);
|
|
565
|
+
};
|
|
566
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
567
|
+
var _a;
|
|
568
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
569
|
+
const style = styles.get(scopeId2);
|
|
570
|
+
if (!win.document) {
|
|
571
|
+
return scopeId2;
|
|
572
|
+
}
|
|
573
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
574
|
+
if (style) {
|
|
575
|
+
if (typeof style === "string") {
|
|
576
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
577
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
578
|
+
let styleElm;
|
|
579
|
+
if (!appliedStyles) {
|
|
580
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
581
|
+
}
|
|
582
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
583
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
584
|
+
styleElm.innerHTML = style;
|
|
585
|
+
} else {
|
|
586
|
+
styleElm = win.document.createElement("style");
|
|
587
|
+
styleElm.innerHTML = style;
|
|
588
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
589
|
+
if (nonce != null) {
|
|
590
|
+
styleElm.setAttribute("nonce", nonce);
|
|
591
|
+
}
|
|
592
|
+
if ((cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
593
|
+
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
594
|
+
}
|
|
595
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
596
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
597
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
598
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
599
|
+
styleContainerNode.insertBefore(
|
|
600
|
+
styleElm,
|
|
601
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
602
|
+
);
|
|
603
|
+
} else if ("host" in styleContainerNode) {
|
|
604
|
+
{
|
|
605
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
606
|
+
if (existingStyleContainer) {
|
|
607
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
608
|
+
} else {
|
|
609
|
+
styleContainerNode.prepend(styleElm);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
} else {
|
|
613
|
+
styleContainerNode.append(styleElm);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
617
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
621
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
622
|
+
}
|
|
623
|
+
if (appliedStyles) {
|
|
624
|
+
appliedStyles.add(scopeId2);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
return scopeId2;
|
|
630
|
+
};
|
|
631
|
+
var attachStyles = (hostRef) => {
|
|
632
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
633
|
+
const elm = hostRef.$hostElement$;
|
|
634
|
+
const flags = cmpMeta.$flags$;
|
|
635
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
636
|
+
const scopeId2 = addStyle(
|
|
637
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
638
|
+
cmpMeta);
|
|
639
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
640
|
+
elm["s-sc"] = scopeId2;
|
|
641
|
+
elm.classList.add(scopeId2 + "-h");
|
|
642
|
+
}
|
|
643
|
+
endAttachStyles();
|
|
644
|
+
};
|
|
645
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
378
646
|
var h = (nodeName, vnodeData, ...children) => {
|
|
379
647
|
let child = null;
|
|
380
648
|
let key = null;
|
|
@@ -489,6 +757,7 @@ var convertToPrivate = (node) => {
|
|
|
489
757
|
|
|
490
758
|
// src/runtime/client-hydrate.ts
|
|
491
759
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
760
|
+
var _a, _b;
|
|
492
761
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
493
762
|
const shadowRoot = hostElm.shadowRoot;
|
|
494
763
|
const childRenderNodes = [];
|
|
@@ -535,6 +804,16 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
535
804
|
if (childRenderNode.$tag$ === "slot") {
|
|
536
805
|
node["s-cr"] = hostElm["s-cr"];
|
|
537
806
|
}
|
|
807
|
+
} else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
808
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
809
|
+
if (cmpMeta) {
|
|
810
|
+
const scopeId3 = getScopeId(
|
|
811
|
+
cmpMeta.$cmpMeta$);
|
|
812
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
813
|
+
if (styleSheet) {
|
|
814
|
+
hostElm.shadowRoot.append(styleSheet.cloneNode(true));
|
|
815
|
+
}
|
|
816
|
+
}
|
|
538
817
|
}
|
|
539
818
|
if (childRenderNode.$tag$ === "slot") {
|
|
540
819
|
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
@@ -550,7 +829,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
550
829
|
}
|
|
551
830
|
}
|
|
552
831
|
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
553
|
-
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
832
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
554
833
|
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
555
834
|
}
|
|
556
835
|
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
@@ -558,7 +837,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
558
837
|
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
559
838
|
}
|
|
560
839
|
}
|
|
561
|
-
|
|
840
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
841
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
842
|
+
}
|
|
562
843
|
}
|
|
563
844
|
const hosts = [];
|
|
564
845
|
const snLen = slottedNodes.length;
|
|
@@ -579,17 +860,22 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
579
860
|
}
|
|
580
861
|
if (!hosts[slottedItem.hostId]) continue;
|
|
581
862
|
const hostEle = hosts[slottedItem.hostId];
|
|
863
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
864
|
+
hostEle.appendChild(slottedItem.node);
|
|
865
|
+
}
|
|
582
866
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
583
|
-
slottedItem.slot["s-cr"]
|
|
584
|
-
|
|
585
|
-
slottedItem.slot["s-cr"]
|
|
586
|
-
|
|
587
|
-
|
|
867
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
868
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
869
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
870
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
871
|
+
} else {
|
|
872
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
873
|
+
}
|
|
588
874
|
}
|
|
589
875
|
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
876
|
+
if (((_b = slottedItem.node.parentElement) == null ? void 0 : _b.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
877
|
+
slottedItem.node.removeAttribute("slot");
|
|
878
|
+
}
|
|
593
879
|
}
|
|
594
880
|
}
|
|
595
881
|
}
|
|
@@ -598,25 +884,27 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
598
884
|
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
599
885
|
});
|
|
600
886
|
}
|
|
601
|
-
if (shadowRoot
|
|
887
|
+
if (shadowRoot) {
|
|
602
888
|
let rnIdex = 0;
|
|
603
889
|
const rnLen = shadowRootNodes.length;
|
|
604
890
|
if (rnLen) {
|
|
605
891
|
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
606
|
-
|
|
892
|
+
const node = shadowRootNodes[rnIdex];
|
|
893
|
+
if (node) {
|
|
894
|
+
shadowRoot.appendChild(node);
|
|
895
|
+
}
|
|
607
896
|
}
|
|
608
897
|
Array.from(hostElm.childNodes).forEach((node) => {
|
|
609
|
-
if (typeof node["s-sn"] !== "string") {
|
|
898
|
+
if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
|
|
610
899
|
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
611
900
|
node.removeAttribute("hidden");
|
|
612
|
-
} else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
901
|
+
} else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
613
902
|
node.parentNode.removeChild(node);
|
|
614
903
|
}
|
|
615
904
|
}
|
|
616
905
|
});
|
|
617
906
|
}
|
|
618
907
|
}
|
|
619
|
-
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
620
908
|
hostRef.$hostElement$ = hostElm;
|
|
621
909
|
endHydrate();
|
|
622
910
|
};
|
|
@@ -648,7 +936,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
648
936
|
if (!parentVNode.$children$) {
|
|
649
937
|
parentVNode.$children$ = [];
|
|
650
938
|
}
|
|
651
|
-
if (scopeId2) {
|
|
939
|
+
if (scopeId2 && childIdSplt[0] === hostId) {
|
|
652
940
|
node["s-si"] = scopeId2;
|
|
653
941
|
childVNode.$attrs$.class += " " + scopeId2;
|
|
654
942
|
}
|
|
@@ -778,7 +1066,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
778
1066
|
vnode.$index$ = "0";
|
|
779
1067
|
parentVNode.$children$ = [vnode];
|
|
780
1068
|
} else {
|
|
781
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1069
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
|
|
782
1070
|
node.remove();
|
|
783
1071
|
}
|
|
784
1072
|
}
|
|
@@ -836,10 +1124,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
836
1124
|
if (childVNode.$name$) {
|
|
837
1125
|
childVNode.$elm$.setAttribute("name", slotName);
|
|
838
1126
|
}
|
|
839
|
-
if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
840
|
-
parentVNode.$elm
|
|
1127
|
+
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1128
|
+
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
|
841
1129
|
} else {
|
|
842
|
-
node
|
|
1130
|
+
internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
|
|
843
1131
|
}
|
|
844
1132
|
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
845
1133
|
node.remove();
|
|
@@ -854,8 +1142,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
854
1142
|
if (shouldMove) {
|
|
855
1143
|
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
856
1144
|
}
|
|
857
|
-
childRenderNodes.push(childVNode);
|
|
858
1145
|
}
|
|
1146
|
+
childRenderNodes.push(childVNode);
|
|
859
1147
|
slotNodes.push(childVNode);
|
|
860
1148
|
if (!parentVNode.$children$) {
|
|
861
1149
|
parentVNode.$children$ = [];
|
|
@@ -863,13 +1151,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
863
1151
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
864
1152
|
}
|
|
865
1153
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1154
|
+
var _a, _b;
|
|
866
1155
|
let slottedNode = slotNode.nextSibling;
|
|
867
1156
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
1157
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1158
|
+
do {
|
|
1159
|
+
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 */))) {
|
|
1160
|
+
slottedNode["s-sn"] = slotName;
|
|
1161
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1162
|
+
}
|
|
1163
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1164
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
873
1165
|
};
|
|
874
1166
|
var findCorrespondingNode = (node, type) => {
|
|
875
1167
|
let sibling = node;
|
|
@@ -894,6 +1186,12 @@ var findCorrespondingNode = (node, type) => {
|
|
|
894
1186
|
var safeSelector = (selector) => {
|
|
895
1187
|
const placeholders = [];
|
|
896
1188
|
let index = 0;
|
|
1189
|
+
selector = selector.replace(/(\[\s*part~=\s*("[^"]*"|'[^']*')\s*\])/g, (_, keep) => {
|
|
1190
|
+
const replaceBy = `__part-${index}__`;
|
|
1191
|
+
placeholders.push(keep);
|
|
1192
|
+
index++;
|
|
1193
|
+
return replaceBy;
|
|
1194
|
+
});
|
|
897
1195
|
selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
|
|
898
1196
|
const replaceBy = `__ph-${index}__`;
|
|
899
1197
|
placeholders.push(keep);
|
|
@@ -913,6 +1211,7 @@ var safeSelector = (selector) => {
|
|
|
913
1211
|
return ss;
|
|
914
1212
|
};
|
|
915
1213
|
var restoreSafeSelector = (placeholders, content) => {
|
|
1214
|
+
content = content.replace(/__part-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
916
1215
|
return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
917
1216
|
};
|
|
918
1217
|
var _polyfillHost = "-shadowcsshost";
|
|
@@ -925,9 +1224,18 @@ var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim"
|
|
|
925
1224
|
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
926
1225
|
var _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
|
927
1226
|
var _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
|
1227
|
+
var _safePartRe = /__part-(\d+)__/g;
|
|
928
1228
|
var _selectorReSuffix = "([>\\s~+[.,{:][\\s\\S]*)?$";
|
|
929
1229
|
var _polyfillHostRe = /-shadowcsshost/gim;
|
|
930
|
-
var createSupportsRuleRe = (selector) =>
|
|
1230
|
+
var createSupportsRuleRe = (selector) => {
|
|
1231
|
+
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
1232
|
+
return new RegExp(
|
|
1233
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
1234
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
1235
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
1236
|
+
"g"
|
|
1237
|
+
);
|
|
1238
|
+
};
|
|
931
1239
|
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
932
1240
|
var _colonHostRe = createSupportsRuleRe(":host");
|
|
933
1241
|
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
@@ -1002,7 +1310,16 @@ var escapeBlocks = (input) => {
|
|
|
1002
1310
|
return strEscapedBlocks;
|
|
1003
1311
|
};
|
|
1004
1312
|
var insertPolyfillHostInCssText = (cssText) => {
|
|
1313
|
+
const supportsBlocks = [];
|
|
1314
|
+
cssText = cssText.replace(/@supports\s+selector\s*\(\s*([^)]*)\s*\)/g, (_, selectorContent) => {
|
|
1315
|
+
const placeholder = `__supports_${supportsBlocks.length}__`;
|
|
1316
|
+
supportsBlocks.push(selectorContent);
|
|
1317
|
+
return `@supports selector(${placeholder})`;
|
|
1318
|
+
});
|
|
1005
1319
|
cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);
|
|
1320
|
+
supportsBlocks.forEach((originalSelector, index) => {
|
|
1321
|
+
cssText = cssText.replace(`__supports_${index}__`, originalSelector);
|
|
1322
|
+
});
|
|
1006
1323
|
return cssText;
|
|
1007
1324
|
};
|
|
1008
1325
|
var convertColonRule = (cssText, regExp, partReplacer) => {
|
|
@@ -1122,7 +1439,7 @@ var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
|
1122
1439
|
let scopedSelector = "";
|
|
1123
1440
|
let startIndex = 0;
|
|
1124
1441
|
let res;
|
|
1125
|
-
const sep = /( |>|\+|~(?!=))\s*/g;
|
|
1442
|
+
const sep = /( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g;
|
|
1126
1443
|
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
1127
1444
|
let shouldScope = !hasHost;
|
|
1128
1445
|
while ((res = sep.exec(selector)) !== null) {
|
|
@@ -1134,7 +1451,7 @@ var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
|
1134
1451
|
startIndex = sep.lastIndex;
|
|
1135
1452
|
}
|
|
1136
1453
|
const part = selector.substring(startIndex);
|
|
1137
|
-
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
1454
|
+
shouldScope = !part.match(_safePartRe) && (shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1);
|
|
1138
1455
|
scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
|
|
1139
1456
|
return restoreSafeSelector(safeContent.placeholders, scopedSelector);
|
|
1140
1457
|
};
|
|
@@ -1191,6 +1508,36 @@ var scopeCssText = (cssText, scopeId2, hostScopeId, slotScopeId, commentOriginal
|
|
|
1191
1508
|
var replaceShadowCssHost = (cssText, hostScopeId) => {
|
|
1192
1509
|
return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
|
|
1193
1510
|
};
|
|
1511
|
+
var expandPartSelectors = (cssText) => {
|
|
1512
|
+
const partSelectorRe = /([^\s,{][^,{]*?)::part\(\s*([^)]+?)\s*\)((?:[:.][^,{]*)*)/g;
|
|
1513
|
+
return processRules(cssText, (rule) => {
|
|
1514
|
+
if (rule.selector[0] === "@") {
|
|
1515
|
+
return rule;
|
|
1516
|
+
}
|
|
1517
|
+
const selectors = rule.selector.split(",").map((sel) => {
|
|
1518
|
+
const out = [sel.trim()];
|
|
1519
|
+
let m;
|
|
1520
|
+
while ((m = partSelectorRe.exec(sel)) !== null) {
|
|
1521
|
+
const before = m[1].trimEnd();
|
|
1522
|
+
const partNames = m[2].trim().split(/\s+/);
|
|
1523
|
+
const after = m[3] || "";
|
|
1524
|
+
const partAttr = partNames.flatMap((p) => {
|
|
1525
|
+
if (!rule.selector.includes(`[part~="${p}"]`)) {
|
|
1526
|
+
return [`[part~="${p}"]`];
|
|
1527
|
+
}
|
|
1528
|
+
return [];
|
|
1529
|
+
}).join("");
|
|
1530
|
+
const expanded = `${before} ${partAttr}${after}`;
|
|
1531
|
+
if (!!partAttr && expanded !== sel.trim()) {
|
|
1532
|
+
out.push(expanded);
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
return out.join(", ");
|
|
1536
|
+
});
|
|
1537
|
+
rule.selector = selectors.join(", ");
|
|
1538
|
+
return rule;
|
|
1539
|
+
});
|
|
1540
|
+
};
|
|
1194
1541
|
var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
1195
1542
|
const hostScopeId = scopeId2 + "-h";
|
|
1196
1543
|
const slotScopeId = scopeId2 + "-s";
|
|
@@ -1226,15 +1573,24 @@ var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
|
1226
1573
|
const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector), "g");
|
|
1227
1574
|
cssText = cssText.replace(regex, slottedSelector.updatedSelector);
|
|
1228
1575
|
});
|
|
1576
|
+
cssText = expandPartSelectors(cssText);
|
|
1229
1577
|
return cssText;
|
|
1230
1578
|
};
|
|
1231
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
1579
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
1580
|
+
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1581
|
+
propValue = deserializeProperty(propValue);
|
|
1582
|
+
return propValue;
|
|
1583
|
+
}
|
|
1232
1584
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1233
1585
|
if (propType & 4 /* Boolean */) {
|
|
1234
|
-
|
|
1586
|
+
if (isFormAssociated && typeof propValue === "string") {
|
|
1587
|
+
return propValue === "" || !!propValue;
|
|
1588
|
+
} else {
|
|
1589
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1590
|
+
}
|
|
1235
1591
|
}
|
|
1236
1592
|
if (propType & 2 /* Number */) {
|
|
1237
|
-
return parseFloat(propValue);
|
|
1593
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
1238
1594
|
}
|
|
1239
1595
|
if (propType & 1 /* String */) {
|
|
1240
1596
|
return String(propValue);
|
|
@@ -1243,7 +1599,10 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
1243
1599
|
}
|
|
1244
1600
|
return propValue;
|
|
1245
1601
|
};
|
|
1246
|
-
var getElement = (ref) =>
|
|
1602
|
+
var getElement = (ref) => {
|
|
1603
|
+
var _a;
|
|
1604
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
1605
|
+
};
|
|
1247
1606
|
|
|
1248
1607
|
// src/runtime/event-emitter.ts
|
|
1249
1608
|
var createEvent = (ref, name, flags) => {
|
|
@@ -1264,94 +1623,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
1264
1623
|
elm.dispatchEvent(ev);
|
|
1265
1624
|
return ev;
|
|
1266
1625
|
};
|
|
1267
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1268
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1269
|
-
let style = styles.get(scopeId2);
|
|
1270
|
-
{
|
|
1271
|
-
style = cssText;
|
|
1272
|
-
}
|
|
1273
|
-
styles.set(scopeId2, style);
|
|
1274
|
-
};
|
|
1275
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1276
|
-
var _a;
|
|
1277
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1278
|
-
const style = styles.get(scopeId2);
|
|
1279
|
-
if (!win.document) {
|
|
1280
|
-
return scopeId2;
|
|
1281
|
-
}
|
|
1282
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1283
|
-
if (style) {
|
|
1284
|
-
if (typeof style === "string") {
|
|
1285
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1286
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1287
|
-
let styleElm;
|
|
1288
|
-
if (!appliedStyles) {
|
|
1289
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1290
|
-
}
|
|
1291
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
1292
|
-
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1293
|
-
styleElm.innerHTML = style;
|
|
1294
|
-
} else {
|
|
1295
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
1296
|
-
styleElm.innerHTML = style;
|
|
1297
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1298
|
-
if (nonce != null) {
|
|
1299
|
-
styleElm.setAttribute("nonce", nonce);
|
|
1300
|
-
}
|
|
1301
|
-
if ((cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
1302
|
-
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
1303
|
-
}
|
|
1304
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1305
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
1306
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1307
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1308
|
-
styleContainerNode.insertBefore(
|
|
1309
|
-
styleElm,
|
|
1310
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1311
|
-
);
|
|
1312
|
-
} else if ("host" in styleContainerNode) {
|
|
1313
|
-
{
|
|
1314
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1315
|
-
if (existingStyleContainer) {
|
|
1316
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1317
|
-
} else {
|
|
1318
|
-
styleContainerNode.prepend(styleElm);
|
|
1319
|
-
}
|
|
1320
|
-
}
|
|
1321
|
-
} else {
|
|
1322
|
-
styleContainerNode.append(styleElm);
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1326
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1330
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1331
|
-
}
|
|
1332
|
-
if (appliedStyles) {
|
|
1333
|
-
appliedStyles.add(scopeId2);
|
|
1334
|
-
}
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
return scopeId2;
|
|
1339
|
-
};
|
|
1340
|
-
var attachStyles = (hostRef) => {
|
|
1341
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1342
|
-
const elm = hostRef.$hostElement$;
|
|
1343
|
-
const flags = cmpMeta.$flags$;
|
|
1344
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1345
|
-
const scopeId2 = addStyle(
|
|
1346
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1347
|
-
cmpMeta);
|
|
1348
|
-
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
1349
|
-
elm["s-sc"] = scopeId2;
|
|
1350
|
-
elm.classList.add(scopeId2 + "-h");
|
|
1351
|
-
}
|
|
1352
|
-
endAttachStyles();
|
|
1353
|
-
};
|
|
1354
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1355
1626
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1356
1627
|
if (oldValue === newValue) {
|
|
1357
1628
|
return;
|
|
@@ -1362,12 +1633,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1362
1633
|
const classList = elm.classList;
|
|
1363
1634
|
const oldClasses = parseClassList(oldValue);
|
|
1364
1635
|
let newClasses = parseClassList(newValue);
|
|
1365
|
-
if (elm["s-si"] && initialRender) {
|
|
1366
|
-
|
|
1636
|
+
if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
1637
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
1638
|
+
newClasses.push(scopeId2);
|
|
1367
1639
|
oldClasses.forEach((c) => {
|
|
1368
|
-
if (c.startsWith(
|
|
1640
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
1369
1641
|
});
|
|
1370
|
-
newClasses = [...new Set(newClasses)];
|
|
1642
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
1371
1643
|
classList.add(...newClasses);
|
|
1372
1644
|
} else {
|
|
1373
1645
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
@@ -1799,6 +2071,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1799
2071
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
1800
2072
|
) {
|
|
1801
2073
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
2074
|
+
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
2075
|
+
newVNode2.$children$ = oldChildren;
|
|
1802
2076
|
}
|
|
1803
2077
|
if (isSvgMode && tag === "svg") {
|
|
1804
2078
|
isSvgMode = false;
|
|
@@ -1899,13 +2173,16 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1899
2173
|
const hostElm = hostRef.$hostElement$;
|
|
1900
2174
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1901
2175
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1902
|
-
const
|
|
2176
|
+
const isHostElement = isHost(renderFnResults);
|
|
2177
|
+
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
1903
2178
|
hostTagName = hostElm.tagName;
|
|
1904
2179
|
if (cmpMeta.$attrsToReflect$) {
|
|
1905
2180
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
1906
|
-
cmpMeta.$attrsToReflect$.
|
|
1907
|
-
|
|
1908
|
-
|
|
2181
|
+
cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
|
|
2182
|
+
{
|
|
2183
|
+
rootVnode.$attrs$[attribute] = hostElm[propName];
|
|
2184
|
+
}
|
|
2185
|
+
});
|
|
1909
2186
|
}
|
|
1910
2187
|
if (isInitialLoad && rootVnode.$attrs$) {
|
|
1911
2188
|
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
@@ -2013,6 +2290,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
2013
2290
|
}
|
|
2014
2291
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
2015
2292
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
2293
|
+
if (isInitialLoad) {
|
|
2294
|
+
queueMicrotask(() => {
|
|
2295
|
+
dispatch();
|
|
2296
|
+
});
|
|
2297
|
+
return;
|
|
2298
|
+
}
|
|
2016
2299
|
return writeTask(dispatch) ;
|
|
2017
2300
|
};
|
|
2018
2301
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -2027,10 +2310,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
2027
2310
|
let maybePromise;
|
|
2028
2311
|
if (isInitialLoad) {
|
|
2029
2312
|
{
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
hostRef.$queuedListeners
|
|
2033
|
-
|
|
2313
|
+
{
|
|
2314
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
2315
|
+
if (hostRef.$queuedListeners$) {
|
|
2316
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
2317
|
+
hostRef.$queuedListeners$ = void 0;
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
if (hostRef.$fetchedCbList$.length) {
|
|
2321
|
+
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
2034
2322
|
}
|
|
2035
2323
|
}
|
|
2036
2324
|
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
@@ -2150,10 +2438,16 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2150
2438
|
}
|
|
2151
2439
|
};
|
|
2152
2440
|
var appDidLoad = (who) => {
|
|
2441
|
+
var _a;
|
|
2153
2442
|
if (BUILD.asyncQueue) {
|
|
2154
2443
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
2155
2444
|
}
|
|
2156
2445
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2446
|
+
{
|
|
2447
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
2448
|
+
plt.$orgLocNodes$.clear();
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2157
2451
|
};
|
|
2158
2452
|
var safeCall = (instance, method, arg, elm) => {
|
|
2159
2453
|
if (instance && instance[method]) {
|
|
@@ -2186,6 +2480,9 @@ var serverSideConnected = (elm) => {
|
|
|
2186
2480
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
2187
2481
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
2188
2482
|
const hostRef = getHostRef(ref);
|
|
2483
|
+
if (!hostRef) {
|
|
2484
|
+
return;
|
|
2485
|
+
}
|
|
2189
2486
|
if (!hostRef) {
|
|
2190
2487
|
throw new Error(
|
|
2191
2488
|
`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).`
|
|
@@ -2195,7 +2492,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2195
2492
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
2196
2493
|
const flags = hostRef.$flags$;
|
|
2197
2494
|
const instance = hostRef.$lazyInstance$ ;
|
|
2198
|
-
newVal = parsePropertyValue(
|
|
2495
|
+
newVal = parsePropertyValue(
|
|
2496
|
+
newVal,
|
|
2497
|
+
cmpMeta.$members$[propName][0],
|
|
2498
|
+
!!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
2499
|
+
);
|
|
2199
2500
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
2200
2501
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
2201
2502
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -2229,9 +2530,17 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2229
2530
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
2230
2531
|
var _a;
|
|
2231
2532
|
const prototype = Cstr.prototype;
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
cmpMeta.$watchers$
|
|
2533
|
+
{
|
|
2534
|
+
{
|
|
2535
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
2536
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
2537
|
+
}
|
|
2538
|
+
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
2539
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
2540
|
+
}
|
|
2541
|
+
if (Cstr.serializers && !cmpMeta.$serializers$) {
|
|
2542
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
2543
|
+
}
|
|
2235
2544
|
}
|
|
2236
2545
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
2237
2546
|
members.map(([memberName, [memberFlags]]) => {
|
|
@@ -2259,14 +2568,21 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2259
2568
|
Object.defineProperty(prototype, memberName, {
|
|
2260
2569
|
set(newValue) {
|
|
2261
2570
|
const ref = getHostRef(this);
|
|
2571
|
+
if (!ref) {
|
|
2572
|
+
return;
|
|
2573
|
+
}
|
|
2262
2574
|
if (origSetter) {
|
|
2263
2575
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2264
2576
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
2265
2577
|
newValue = ref.$instanceValues$.get(memberName);
|
|
2266
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2267
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
2268
2578
|
}
|
|
2269
|
-
origSetter.apply(this, [
|
|
2579
|
+
origSetter.apply(this, [
|
|
2580
|
+
parsePropertyValue(
|
|
2581
|
+
newValue,
|
|
2582
|
+
memberFlags,
|
|
2583
|
+
!!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
2584
|
+
)
|
|
2585
|
+
]);
|
|
2270
2586
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2271
2587
|
setValue(this, memberName, newValue, cmpMeta);
|
|
2272
2588
|
return;
|
|
@@ -2306,6 +2622,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2306
2622
|
if (!Cstr.isProxied) {
|
|
2307
2623
|
{
|
|
2308
2624
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
2625
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
2626
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
2309
2627
|
}
|
|
2310
2628
|
proxyComponent(Cstr, cmpMeta);
|
|
2311
2629
|
Cstr.isProxied = true;
|
|
@@ -2340,8 +2658,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2340
2658
|
const scopeId2 = getScopeId(cmpMeta);
|
|
2341
2659
|
if (!styles.has(scopeId2)) {
|
|
2342
2660
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
2343
|
-
|
|
2344
|
-
|
|
2661
|
+
{
|
|
2662
|
+
if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {
|
|
2663
|
+
style = scopeCss(style, scopeId2);
|
|
2664
|
+
} else if (needsScopedSSR()) {
|
|
2665
|
+
style = expandPartSelectors(style);
|
|
2666
|
+
}
|
|
2345
2667
|
}
|
|
2346
2668
|
registerStyle(scopeId2, style);
|
|
2347
2669
|
endRegisterStyles();
|
|
@@ -2366,6 +2688,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
2366
2688
|
var connectedCallback = (elm) => {
|
|
2367
2689
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2368
2690
|
const hostRef = getHostRef(elm);
|
|
2691
|
+
if (!hostRef) {
|
|
2692
|
+
return;
|
|
2693
|
+
}
|
|
2369
2694
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2370
2695
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2371
2696
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -2623,8 +2948,13 @@ var hAsync = (nodeName, vnodeData, ...children) => {
|
|
|
2623
2948
|
}
|
|
2624
2949
|
return h(nodeName, vnodeData);
|
|
2625
2950
|
};
|
|
2951
|
+
|
|
2952
|
+
// src/hydrate/platform/proxy-host-element.ts
|
|
2626
2953
|
function proxyHostElement(elm, cstr) {
|
|
2627
2954
|
const cmpMeta = cstr.cmpMeta;
|
|
2955
|
+
cmpMeta.$watchers$ = cmpMeta.$watchers$ || cstr.watchers;
|
|
2956
|
+
cmpMeta.$deserializers$ = cmpMeta.$deserializers$ || cstr.deserializers;
|
|
2957
|
+
cmpMeta.$serializers$ = cmpMeta.$serializers$ || cstr.serializers;
|
|
2628
2958
|
if (typeof elm.componentOnReady !== "function") {
|
|
2629
2959
|
elm.componentOnReady = componentOnReady;
|
|
2630
2960
|
}
|
|
@@ -2632,32 +2962,30 @@ function proxyHostElement(elm, cstr) {
|
|
|
2632
2962
|
elm.forceUpdate = forceUpdate2;
|
|
2633
2963
|
}
|
|
2634
2964
|
if (!elm.shadowRoot && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
2635
|
-
|
|
2636
|
-
elm.attachShadow({ mode: "open" });
|
|
2637
|
-
}
|
|
2965
|
+
createShadowRoot.call(elm, cmpMeta);
|
|
2638
2966
|
}
|
|
2639
2967
|
if (cmpMeta.$members$ != null) {
|
|
2640
2968
|
const hostRef = getHostRef(elm);
|
|
2641
2969
|
const members = Object.entries(cmpMeta.$members$);
|
|
2642
2970
|
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
2643
|
-
var _a;
|
|
2971
|
+
var _a, _b;
|
|
2644
2972
|
if (memberFlags & 31 /* Prop */) {
|
|
2645
2973
|
const attributeName = metaAttributeName || memberName;
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
try {
|
|
2649
|
-
attrValue = JSON.parse(attrValue);
|
|
2650
|
-
} catch (e) {
|
|
2651
|
-
}
|
|
2652
|
-
}
|
|
2653
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(cstr.prototype, memberName) || {};
|
|
2974
|
+
const attrValue = elm.getAttribute(attributeName);
|
|
2975
|
+
const propValue = elm[memberName];
|
|
2654
2976
|
let attrPropVal;
|
|
2977
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(cstr.prototype, memberName) || {};
|
|
2655
2978
|
if (attrValue != null) {
|
|
2656
|
-
|
|
2979
|
+
if ((_a = cmpMeta.$deserializers$) == null ? void 0 : _a[memberName]) {
|
|
2980
|
+
for (const methodName of cmpMeta.$deserializers$[memberName]) {
|
|
2981
|
+
attrPropVal = cstr.prototype[methodName](attrValue, memberName);
|
|
2982
|
+
}
|
|
2983
|
+
} else {
|
|
2984
|
+
attrPropVal = parsePropertyValue(attrValue, memberFlags, !!(cmpMeta.$flags$ & 64 /* formAssociated */));
|
|
2985
|
+
}
|
|
2657
2986
|
}
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
attrPropVal = ownValue;
|
|
2987
|
+
if (propValue !== void 0) {
|
|
2988
|
+
attrPropVal = propValue;
|
|
2661
2989
|
delete elm[memberName];
|
|
2662
2990
|
}
|
|
2663
2991
|
if (attrPropVal !== void 0) {
|
|
@@ -2665,7 +2993,7 @@ function proxyHostElement(elm, cstr) {
|
|
|
2665
2993
|
origSetter.apply(elm, [attrPropVal]);
|
|
2666
2994
|
attrPropVal = origGetter ? origGetter.apply(elm) : attrPropVal;
|
|
2667
2995
|
}
|
|
2668
|
-
(
|
|
2996
|
+
(_b = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b.set(memberName, attrPropVal);
|
|
2669
2997
|
}
|
|
2670
2998
|
const getterSetterDescriptor = {
|
|
2671
2999
|
get: function() {
|
|
@@ -2679,21 +3007,18 @@ function proxyHostElement(elm, cstr) {
|
|
|
2679
3007
|
};
|
|
2680
3008
|
Object.defineProperty(elm, memberName, getterSetterDescriptor);
|
|
2681
3009
|
Object.defineProperty(elm, metaAttributeName, getterSetterDescriptor);
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
enumerable: true
|
|
2695
|
-
});
|
|
2696
|
-
}
|
|
3010
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
3011
|
+
var _a2;
|
|
3012
|
+
if (!((_a2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a2.has(memberName))) {
|
|
3013
|
+
setValue(
|
|
3014
|
+
elm,
|
|
3015
|
+
memberName,
|
|
3016
|
+
attrPropVal !== void 0 ? attrPropVal : hostRef.$lazyInstance$[memberName],
|
|
3017
|
+
cmpMeta
|
|
3018
|
+
);
|
|
3019
|
+
}
|
|
3020
|
+
Object.defineProperty(hostRef.$lazyInstance$, memberName, getterSetterDescriptor);
|
|
3021
|
+
});
|
|
2697
3022
|
} else if (memberFlags & 64 /* Method */) {
|
|
2698
3023
|
Object.defineProperty(elm, memberName, {
|
|
2699
3024
|
value(...args) {
|
|
@@ -2709,7 +3034,6 @@ function proxyHostElement(elm, cstr) {
|
|
|
2709
3034
|
});
|
|
2710
3035
|
}
|
|
2711
3036
|
});
|
|
2712
|
-
cstr.prototype.__stencilAugmented = true;
|
|
2713
3037
|
}
|
|
2714
3038
|
}
|
|
2715
3039
|
function componentOnReady() {
|
|
@@ -2727,6 +3051,7 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
2727
3051
|
const orgDocumentCreateElement = win2.document.createElement;
|
|
2728
3052
|
const orgDocumentCreateElementNS = win2.document.createElementNS;
|
|
2729
3053
|
const resolved2 = Promise.resolve();
|
|
3054
|
+
setScopedSSR(opts);
|
|
2730
3055
|
let tmrId;
|
|
2731
3056
|
let ranCompleted = false;
|
|
2732
3057
|
function hydratedComplete() {
|
|
@@ -2834,13 +3159,16 @@ async function hydrateComponent(win2, results, tagName, elm, waitingElements) {
|
|
|
2834
3159
|
if (cmpMeta != null) {
|
|
2835
3160
|
waitingElements.add(elm);
|
|
2836
3161
|
const hostRef = getHostRef(this);
|
|
3162
|
+
if (!hostRef) {
|
|
3163
|
+
return;
|
|
3164
|
+
}
|
|
2837
3165
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
2838
3166
|
try {
|
|
2839
3167
|
connectedCallback(elm);
|
|
2840
3168
|
await elm.componentOnReady();
|
|
2841
3169
|
results.hydratedCount++;
|
|
2842
3170
|
const ref = getHostRef(elm);
|
|
2843
|
-
const modeName = !ref.$modeName$ ? "$" : ref.$modeName$;
|
|
3171
|
+
const modeName = !(ref == null ? void 0 : ref.$modeName$) ? "$" : ref == null ? void 0 : ref.$modeName$;
|
|
2844
3172
|
if (!results.components.some((c) => c.tag === tagName && c.mode === modeName)) {
|
|
2845
3173
|
results.components.push({
|
|
2846
3174
|
tag: tagName,
|
|
@@ -3055,8 +3383,12 @@ var getHostRef = (ref) => {
|
|
|
3055
3383
|
return void 0;
|
|
3056
3384
|
};
|
|
3057
3385
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
3386
|
+
if (!hostRef) return void 0;
|
|
3058
3387
|
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
3059
3388
|
hostRef.$lazyInstance$ = lazyInstance;
|
|
3389
|
+
if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
|
|
3390
|
+
reWireGetterSetter(lazyInstance, hostRef);
|
|
3391
|
+
}
|
|
3060
3392
|
return hostRef;
|
|
3061
3393
|
};
|
|
3062
3394
|
var registerHost = (elm, cmpMeta) => {
|
|
@@ -3065,8 +3397,10 @@ var registerHost = (elm, cmpMeta) => {
|
|
|
3065
3397
|
$cmpMeta$: cmpMeta,
|
|
3066
3398
|
$hostElement$: elm,
|
|
3067
3399
|
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
3400
|
+
$serializerValues$: /* @__PURE__ */ new Map(),
|
|
3068
3401
|
$renderCount$: 0
|
|
3069
3402
|
};
|
|
3403
|
+
hostRef.$fetchedCbList$ = [];
|
|
3070
3404
|
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
3071
3405
|
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
3072
3406
|
elm["s-p"] = [];
|
|
@@ -3075,6 +3409,11 @@ var registerHost = (elm, cmpMeta) => {
|
|
|
3075
3409
|
return hostRef;
|
|
3076
3410
|
};
|
|
3077
3411
|
var styles = /* @__PURE__ */ new Map();
|
|
3412
|
+
var setScopedSSR = (opts) => {
|
|
3413
|
+
scopedSSR = opts.serializeShadowRoot !== false && opts.serializeShadowRoot !== "declarative-shadow-dom";
|
|
3414
|
+
};
|
|
3415
|
+
var needsScopedSSR = () => scopedSSR;
|
|
3416
|
+
var scopedSSR = false;
|
|
3078
3417
|
|
|
3079
3418
|
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}";
|
|
3080
3419
|
|
|
@@ -3161,7 +3500,7 @@ class MockPdsModal {
|
|
|
3161
3500
|
get el() { return getElement(this); }
|
|
3162
3501
|
static get style() { return pdsModalCss$1; }
|
|
3163
3502
|
static get cmpMeta() { return {
|
|
3164
|
-
"$flags$":
|
|
3503
|
+
"$flags$": 260,
|
|
3165
3504
|
"$tagName$": "mock-pds-modal",
|
|
3166
3505
|
"$members$": {
|
|
3167
3506
|
"componentId": [1, "component-id"],
|
|
@@ -3178,7 +3517,7 @@ class MockPdsModal {
|
|
|
3178
3517
|
}; }
|
|
3179
3518
|
}
|
|
3180
3519
|
|
|
3181
|
-
/* pds-icons v9.
|
|
3520
|
+
/* pds-icons v9.11.0, ES Modules */
|
|
3182
3521
|
|
|
3183
3522
|
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>";
|
|
3184
3523
|
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>";
|
|
@@ -3235,7 +3574,7 @@ class PdsAccordion {
|
|
|
3235
3574
|
}; }
|
|
3236
3575
|
static get style() { return pdsAccordionCss; }
|
|
3237
3576
|
static get cmpMeta() { return {
|
|
3238
|
-
"$flags$":
|
|
3577
|
+
"$flags$": 265,
|
|
3239
3578
|
"$tagName$": "pds-accordion",
|
|
3240
3579
|
"$members$": {
|
|
3241
3580
|
"componentId": [1, "component-id"],
|
|
@@ -3307,7 +3646,7 @@ class PdsAlert {
|
|
|
3307
3646
|
get el() { return getElement(this); }
|
|
3308
3647
|
static get style() { return pdsAlertTokensCss + pdsAlertCss; }
|
|
3309
3648
|
static get cmpMeta() { return {
|
|
3310
|
-
"$flags$":
|
|
3649
|
+
"$flags$": 265,
|
|
3311
3650
|
"$tagName$": "pds-alert",
|
|
3312
3651
|
"$members$": {
|
|
3313
3652
|
"componentId": [1, "component-id"],
|
|
@@ -3412,7 +3751,7 @@ class PdsAvatar {
|
|
|
3412
3751
|
}
|
|
3413
3752
|
static get style() { return pdsAvatarCss; }
|
|
3414
3753
|
static get cmpMeta() { return {
|
|
3415
|
-
"$flags$":
|
|
3754
|
+
"$flags$": 265,
|
|
3416
3755
|
"$tagName$": "pds-avatar",
|
|
3417
3756
|
"$members$": {
|
|
3418
3757
|
"alt": [1],
|
|
@@ -3639,7 +3978,7 @@ class PdsBox {
|
|
|
3639
3978
|
}
|
|
3640
3979
|
static get style() { return pdsBoxCss; }
|
|
3641
3980
|
static get cmpMeta() { return {
|
|
3642
|
-
"$flags$":
|
|
3981
|
+
"$flags$": 256,
|
|
3643
3982
|
"$tagName$": "pds-box",
|
|
3644
3983
|
"$members$": {
|
|
3645
3984
|
"alignItems": [1, "align-items"],
|
|
@@ -3767,7 +4106,7 @@ class PdsBox {
|
|
|
3767
4106
|
}; }
|
|
3768
4107
|
}
|
|
3769
4108
|
|
|
3770
|
-
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}";
|
|
4109
|
+
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)}";
|
|
3771
4110
|
|
|
3772
4111
|
/**
|
|
3773
4112
|
* @part button - Exposes the button element for styling.
|
|
@@ -3815,6 +4154,11 @@ class PdsButton {
|
|
|
3815
4154
|
* @defaultValue button
|
|
3816
4155
|
*/
|
|
3817
4156
|
this.type = 'button';
|
|
4157
|
+
/**
|
|
4158
|
+
* Sets the size of the button.
|
|
4159
|
+
* @defaultValue default
|
|
4160
|
+
*/
|
|
4161
|
+
this.size = 'default';
|
|
3818
4162
|
/**
|
|
3819
4163
|
* Sets the style variant of the button.
|
|
3820
4164
|
* @defaultValue primary
|
|
@@ -3897,6 +4241,9 @@ class PdsButton {
|
|
|
3897
4241
|
if (this.variant) {
|
|
3898
4242
|
classNames.push('pds-button--' + this.variant);
|
|
3899
4243
|
}
|
|
4244
|
+
if (this.size && this.size !== 'default') {
|
|
4245
|
+
classNames.push('pds-button--' + this.size);
|
|
4246
|
+
}
|
|
3900
4247
|
if (this.iconOnly) {
|
|
3901
4248
|
classNames.push('pds-button--icon-only');
|
|
3902
4249
|
}
|
|
@@ -3956,7 +4303,7 @@ class PdsButton {
|
|
|
3956
4303
|
get el() { return getElement(this); }
|
|
3957
4304
|
static get style() { return pdsButtonCss; }
|
|
3958
4305
|
static get cmpMeta() { return {
|
|
3959
|
-
"$flags$":
|
|
4306
|
+
"$flags$": 265,
|
|
3960
4307
|
"$tagName$": "pds-button",
|
|
3961
4308
|
"$members$": {
|
|
3962
4309
|
"componentId": [1, "component-id"],
|
|
@@ -3970,6 +4317,7 @@ class PdsButton {
|
|
|
3970
4317
|
"target": [1],
|
|
3971
4318
|
"type": [1],
|
|
3972
4319
|
"value": [1],
|
|
4320
|
+
"size": [1],
|
|
3973
4321
|
"variant": [1]
|
|
3974
4322
|
},
|
|
3975
4323
|
"$listeners$": [[16, "keydown", "handleFormKeyDown"]],
|
|
@@ -4205,7 +4553,7 @@ class PdsCheckbox {
|
|
|
4205
4553
|
}; }
|
|
4206
4554
|
static get style() { return labelCss$5 + pdsCheckboxCss; }
|
|
4207
4555
|
static get cmpMeta() { return {
|
|
4208
|
-
"$flags$":
|
|
4556
|
+
"$flags$": 329,
|
|
4209
4557
|
"$tagName$": "pds-checkbox",
|
|
4210
4558
|
"$members$": {
|
|
4211
4559
|
"checked": [1028],
|
|
@@ -4299,7 +4647,7 @@ class PdsChip {
|
|
|
4299
4647
|
}
|
|
4300
4648
|
static get style() { return pdsChipTokensCss + pdsChipCss; }
|
|
4301
4649
|
static get cmpMeta() { return {
|
|
4302
|
-
"$flags$":
|
|
4650
|
+
"$flags$": 265,
|
|
4303
4651
|
"$tagName$": "pds-chip",
|
|
4304
4652
|
"$members$": {
|
|
4305
4653
|
"componentId": [1, "component-id"],
|
|
@@ -8187,7 +8535,7 @@ class PdsCombobox {
|
|
|
8187
8535
|
}; }
|
|
8188
8536
|
static get style() { return pdsComboboxCss; }
|
|
8189
8537
|
static get cmpMeta() { return {
|
|
8190
|
-
"$flags$":
|
|
8538
|
+
"$flags$": 329,
|
|
8191
8539
|
"$tagName$": "pds-combobox",
|
|
8192
8540
|
"$members$": {
|
|
8193
8541
|
"componentId": [1, "component-id"],
|
|
@@ -8280,7 +8628,7 @@ class PdsCopytext {
|
|
|
8280
8628
|
}
|
|
8281
8629
|
static get style() { return pdsCopytextCss; }
|
|
8282
8630
|
static get cmpMeta() { return {
|
|
8283
|
-
"$flags$":
|
|
8631
|
+
"$flags$": 265,
|
|
8284
8632
|
"$tagName$": "pds-copytext",
|
|
8285
8633
|
"$members$": {
|
|
8286
8634
|
"border": [516],
|
|
@@ -8322,7 +8670,7 @@ class PdsDivider {
|
|
|
8322
8670
|
}
|
|
8323
8671
|
static get style() { return pdsDividerCss; }
|
|
8324
8672
|
static get cmpMeta() { return {
|
|
8325
|
-
"$flags$":
|
|
8673
|
+
"$flags$": 265,
|
|
8326
8674
|
"$tagName$": "pds-divider",
|
|
8327
8675
|
"$members$": {
|
|
8328
8676
|
"componentId": [1, "component-id"],
|
|
@@ -8578,12 +8926,12 @@ class PdsDropdownMenu {
|
|
|
8578
8926
|
}
|
|
8579
8927
|
}
|
|
8580
8928
|
render() {
|
|
8581
|
-
return (hAsync(Host, { key: '
|
|
8929
|
+
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 }))));
|
|
8582
8930
|
}
|
|
8583
8931
|
get host() { return getElement(this); }
|
|
8584
8932
|
static get style() { return pdsDropdownMenuCss; }
|
|
8585
8933
|
static get cmpMeta() { return {
|
|
8586
|
-
"$flags$":
|
|
8934
|
+
"$flags$": 265,
|
|
8587
8935
|
"$tagName$": "pds-dropdown-menu",
|
|
8588
8936
|
"$members$": {
|
|
8589
8937
|
"componentId": [1, "component-id"],
|
|
@@ -8669,7 +9017,7 @@ class PdsDropdownMenuItem {
|
|
|
8669
9017
|
get host() { return getElement(this); }
|
|
8670
9018
|
static get style() { return pdsDropdownMenuItemCss; }
|
|
8671
9019
|
static get cmpMeta() { return {
|
|
8672
|
-
"$flags$":
|
|
9020
|
+
"$flags$": 265,
|
|
8673
9021
|
"$tagName$": "pds-dropdown-menu-item",
|
|
8674
9022
|
"$members$": {
|
|
8675
9023
|
"componentId": [1, "component-id"],
|
|
@@ -8701,7 +9049,7 @@ class PdsDropdownMenuSeparator {
|
|
|
8701
9049
|
}
|
|
8702
9050
|
static get style() { return pdsDropdownMenuSeparatorCss; }
|
|
8703
9051
|
static get cmpMeta() { return {
|
|
8704
|
-
"$flags$":
|
|
9052
|
+
"$flags$": 265,
|
|
8705
9053
|
"$tagName$": "pds-dropdown-menu-separator",
|
|
8706
9054
|
"$members$": {
|
|
8707
9055
|
"componentId": [1, "component-id"],
|
|
@@ -9205,7 +9553,7 @@ class PdsFilter {
|
|
|
9205
9553
|
get el() { return getElement(this); }
|
|
9206
9554
|
static get style() { return pdsFilterCss; }
|
|
9207
9555
|
static get cmpMeta() { return {
|
|
9208
|
-
"$flags$":
|
|
9556
|
+
"$flags$": 265,
|
|
9209
9557
|
"$tagName$": "pds-filter",
|
|
9210
9558
|
"$members$": {
|
|
9211
9559
|
"componentId": [1, "component-id"],
|
|
@@ -9236,7 +9584,7 @@ class PdsFilters {
|
|
|
9236
9584
|
}
|
|
9237
9585
|
static get style() { return pdsFiltersCss; }
|
|
9238
9586
|
static get cmpMeta() { return {
|
|
9239
|
-
"$flags$":
|
|
9587
|
+
"$flags$": 265,
|
|
9240
9588
|
"$tagName$": "pds-filters",
|
|
9241
9589
|
"$members$": {
|
|
9242
9590
|
"componentId": [1, "component-id"]
|
|
@@ -9649,7 +9997,7 @@ class PdsIcon {
|
|
|
9649
9997
|
}; }
|
|
9650
9998
|
static get style() { return pdsIconCss; }
|
|
9651
9999
|
static get cmpMeta() { return {
|
|
9652
|
-
"$flags$":
|
|
10000
|
+
"$flags$": 265,
|
|
9653
10001
|
"$tagName$": "pds-icon",
|
|
9654
10002
|
"$members$": {
|
|
9655
10003
|
"color": [1],
|
|
@@ -9701,7 +10049,7 @@ class PdsImage {
|
|
|
9701
10049
|
}
|
|
9702
10050
|
static get style() { return pdsImageCss; }
|
|
9703
10051
|
static get cmpMeta() { return {
|
|
9704
|
-
"$flags$":
|
|
10052
|
+
"$flags$": 265,
|
|
9705
10053
|
"$tagName$": "pds-image",
|
|
9706
10054
|
"$members$": {
|
|
9707
10055
|
"alt": [1],
|
|
@@ -9991,7 +10339,7 @@ class PdsInput {
|
|
|
9991
10339
|
}; }
|
|
9992
10340
|
static get style() { return pdsInputTokensCss$1 + (labelCss$4 + pdsInputCss); }
|
|
9993
10341
|
static get cmpMeta() { return {
|
|
9994
|
-
"$flags$":
|
|
10342
|
+
"$flags$": 329,
|
|
9995
10343
|
"$tagName$": "pds-input",
|
|
9996
10344
|
"$members$": {
|
|
9997
10345
|
"autocomplete": [1],
|
|
@@ -10083,7 +10431,7 @@ class PdsLink {
|
|
|
10083
10431
|
}
|
|
10084
10432
|
static get style() { return pdsLinkCss; }
|
|
10085
10433
|
static get cmpMeta() { return {
|
|
10086
|
-
"$flags$":
|
|
10434
|
+
"$flags$": 265,
|
|
10087
10435
|
"$tagName$": "pds-link",
|
|
10088
10436
|
"$members$": {
|
|
10089
10437
|
"color": [1],
|
|
@@ -10153,7 +10501,7 @@ class PdsLoader {
|
|
|
10153
10501
|
}
|
|
10154
10502
|
static get style() { return pdsLoaderCss; }
|
|
10155
10503
|
static get cmpMeta() { return {
|
|
10156
|
-
"$flags$":
|
|
10504
|
+
"$flags$": 265,
|
|
10157
10505
|
"$tagName$": "pds-loader",
|
|
10158
10506
|
"$members$": {
|
|
10159
10507
|
"isLoading": [4, "is-loading"],
|
|
@@ -10420,7 +10768,7 @@ class PdsModal {
|
|
|
10420
10768
|
}; }
|
|
10421
10769
|
static get style() { return pdsModalCss; }
|
|
10422
10770
|
static get cmpMeta() { return {
|
|
10423
|
-
"$flags$":
|
|
10771
|
+
"$flags$": 260,
|
|
10424
10772
|
"$tagName$": "pds-modal",
|
|
10425
10773
|
"$members$": {
|
|
10426
10774
|
"backdropDismiss": [4, "backdrop-dismiss"],
|
|
@@ -10631,15 +10979,15 @@ class PdsModalContent {
|
|
|
10631
10979
|
render() {
|
|
10632
10980
|
// Only apply max-height style if it's not 'none'
|
|
10633
10981
|
const styleObj = this.contentMaxHeight !== 'none' ? { maxHeight: this.contentMaxHeight } : {};
|
|
10634
|
-
return (hAsync(Host, { key: '
|
|
10982
|
+
return (hAsync(Host, { key: '11f1dba4ecce4a2dbf5afcd484a545a68559b0dd' }, hAsync("div", { key: '09af48c8b62dbd0f0b418e9b15175fd9f4409636', class: {
|
|
10635
10983
|
'pds-modal-content': true,
|
|
10636
10984
|
[`pds-modal-content--border-${this.border}`]: true
|
|
10637
|
-
}, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: '
|
|
10985
|
+
}, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: 'd738f5346e407ca6a5d92ff81d10387f7edc03bf' }))));
|
|
10638
10986
|
}
|
|
10639
10987
|
get el() { return getElement(this); }
|
|
10640
10988
|
static get style() { return pdsModalContentCss; }
|
|
10641
10989
|
static get cmpMeta() { return {
|
|
10642
|
-
"$flags$":
|
|
10990
|
+
"$flags$": 260,
|
|
10643
10991
|
"$tagName$": "pds-modal-content",
|
|
10644
10992
|
"$members$": {
|
|
10645
10993
|
"border": [513],
|
|
@@ -10662,7 +11010,7 @@ class PdsModalFooter {
|
|
|
10662
11010
|
}
|
|
10663
11011
|
static get style() { return pdsModalFooterCss; }
|
|
10664
11012
|
static get cmpMeta() { return {
|
|
10665
|
-
"$flags$":
|
|
11013
|
+
"$flags$": 260,
|
|
10666
11014
|
"$tagName$": "pds-modal-footer",
|
|
10667
11015
|
"$members$": undefined,
|
|
10668
11016
|
"$listeners$": undefined,
|
|
@@ -10682,7 +11030,7 @@ class PdsModalHeader {
|
|
|
10682
11030
|
}
|
|
10683
11031
|
static get style() { return pdsModalHeaderCss; }
|
|
10684
11032
|
static get cmpMeta() { return {
|
|
10685
|
-
"$flags$":
|
|
11033
|
+
"$flags$": 260,
|
|
10686
11034
|
"$tagName$": "pds-modal-header",
|
|
10687
11035
|
"$members$": undefined,
|
|
10688
11036
|
"$listeners$": undefined,
|
|
@@ -10691,8 +11039,12 @@ class PdsModalHeader {
|
|
|
10691
11039
|
}; }
|
|
10692
11040
|
}
|
|
10693
11041
|
|
|
10694
|
-
const pdsPopoverCss = ":host{--sizing-max-width-default:352px;display:inline-block}:host
|
|
11042
|
+
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}";
|
|
10695
11043
|
|
|
11044
|
+
/**
|
|
11045
|
+
* @slot trigger - The trigger element for the popover
|
|
11046
|
+
* @slot (default) - The content to display inside the popover
|
|
11047
|
+
*/
|
|
10696
11048
|
class PdsPopover {
|
|
10697
11049
|
constructor(hostRef) {
|
|
10698
11050
|
registerInstance(this, hostRef);
|
|
@@ -10707,6 +11059,31 @@ class PdsPopover {
|
|
|
10707
11059
|
* Tracks if the component is still mounted to prevent memory leaks
|
|
10708
11060
|
*/
|
|
10709
11061
|
this.isComponentMounted = true;
|
|
11062
|
+
/**
|
|
11063
|
+
* Reference to the trigger element
|
|
11064
|
+
*/
|
|
11065
|
+
this.triggerEl = null;
|
|
11066
|
+
/**
|
|
11067
|
+
* Portal element rendered in document.body
|
|
11068
|
+
*/
|
|
11069
|
+
this.portalEl = null;
|
|
11070
|
+
/**
|
|
11071
|
+
* Guard to prevent repositioning loops
|
|
11072
|
+
*/
|
|
11073
|
+
this.isRepositioning = false;
|
|
11074
|
+
/**
|
|
11075
|
+
* Debounce timers for performance optimization
|
|
11076
|
+
*/
|
|
11077
|
+
this.scrollDebounceTimer = null;
|
|
11078
|
+
this.resizeDebounceTimer = null;
|
|
11079
|
+
/**
|
|
11080
|
+
* Track moved nodes and their placeholders for restoration
|
|
11081
|
+
*/
|
|
11082
|
+
this.movedNodes = [];
|
|
11083
|
+
/**
|
|
11084
|
+
* Timestamp when popover was opened (for preventing immediate close)
|
|
11085
|
+
*/
|
|
11086
|
+
this.openTimestamp = 0;
|
|
10710
11087
|
/**
|
|
10711
11088
|
* Determines the action that triggers the popover. For manual popovers, the consumer is responsible for toggling this value.
|
|
10712
11089
|
* @defaultValue "show"
|
|
@@ -10727,124 +11104,437 @@ class PdsPopover {
|
|
|
10727
11104
|
* @defaultValue "right"
|
|
10728
11105
|
*/
|
|
10729
11106
|
this.placement = 'right';
|
|
11107
|
+
/**
|
|
11108
|
+
* Handles changes to the trigger slot
|
|
11109
|
+
*/
|
|
11110
|
+
this.handleTriggerSlotChange = (event) => {
|
|
11111
|
+
const slot = event.target;
|
|
11112
|
+
const assignedElements = slot.assignedElements();
|
|
11113
|
+
// Clean up previous trigger's event listener if it exists
|
|
11114
|
+
if (this.triggerEl != null) {
|
|
11115
|
+
this.triggerEl.removeEventListener('click', this.handleTriggerClick);
|
|
11116
|
+
}
|
|
11117
|
+
if (assignedElements.length > 0) {
|
|
11118
|
+
// Use the first assigned element as the trigger
|
|
11119
|
+
this.triggerEl = assignedElements[0];
|
|
11120
|
+
// Set ARIA attributes to establish relationship between trigger and popover
|
|
11121
|
+
// This mirrors the native Popover API's accessibility behavior
|
|
11122
|
+
if (this.portalEl) {
|
|
11123
|
+
this.triggerEl.setAttribute('aria-expanded', String(this.active));
|
|
11124
|
+
this.triggerEl.setAttribute('aria-controls', this.portalEl.id);
|
|
11125
|
+
}
|
|
11126
|
+
// Attach click listener to handle popover visibility
|
|
11127
|
+
this.triggerEl.addEventListener('click', this.handleTriggerClick);
|
|
11128
|
+
}
|
|
11129
|
+
else {
|
|
11130
|
+
this.triggerEl = null;
|
|
11131
|
+
}
|
|
11132
|
+
};
|
|
11133
|
+
/**
|
|
11134
|
+
* Handles changes to the default slot (popover content)
|
|
11135
|
+
* When the popover is active, re-sync content with portal to handle dynamic updates
|
|
11136
|
+
*/
|
|
11137
|
+
this.handleContentSlotChange = () => {
|
|
11138
|
+
if (!this.active)
|
|
11139
|
+
return;
|
|
11140
|
+
this.updatePortalContent();
|
|
11141
|
+
};
|
|
11142
|
+
/**
|
|
11143
|
+
* Handles clicks on the trigger element
|
|
11144
|
+
*/
|
|
11145
|
+
this.handleTriggerClick = (event) => {
|
|
11146
|
+
// Only prevent default if the trigger is not an anchor with href
|
|
11147
|
+
// This allows link navigation while still controlling popover visibility
|
|
11148
|
+
const composedPath = event.composedPath();
|
|
11149
|
+
const anchorWithHref = composedPath.find((el) => el instanceof HTMLAnchorElement && el.href);
|
|
11150
|
+
if (!anchorWithHref) {
|
|
11151
|
+
event.preventDefault();
|
|
11152
|
+
}
|
|
11153
|
+
// Execute the appropriate action based on popoverTargetAction prop
|
|
11154
|
+
switch (this.popoverTargetAction) {
|
|
11155
|
+
case 'show':
|
|
11156
|
+
this.show();
|
|
11157
|
+
break;
|
|
11158
|
+
case 'hide':
|
|
11159
|
+
this.hide();
|
|
11160
|
+
break;
|
|
11161
|
+
case 'toggle':
|
|
11162
|
+
default:
|
|
11163
|
+
this.toggle();
|
|
11164
|
+
break;
|
|
11165
|
+
}
|
|
11166
|
+
};
|
|
10730
11167
|
}
|
|
10731
11168
|
componentDidLoad() {
|
|
10732
11169
|
var _a;
|
|
10733
|
-
//
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
|
|
11170
|
+
// Bind event handlers for cleanup
|
|
11171
|
+
this.boundClickOutsideHandler = this.handleClickOutside.bind(this);
|
|
11172
|
+
this.boundEscapeKeyHandler = this.handleEscapeKey.bind(this);
|
|
11173
|
+
this.boundScrollHandler = this.handleScroll.bind(this);
|
|
11174
|
+
this.boundResizeHandler = this.handleResize.bind(this);
|
|
11175
|
+
// Create portal element
|
|
11176
|
+
this.createPortal();
|
|
11177
|
+
// Initialize trigger element by calling slot change handler
|
|
11178
|
+
// This is a fallback for environments where slot change might not fire reliably
|
|
11179
|
+
const triggerSlot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot[name="trigger"]');
|
|
11180
|
+
if (triggerSlot && this.triggerEl == null) {
|
|
11181
|
+
const CustomEvent = (typeof window !== 'undefined' ? window.Event : global.Event);
|
|
11182
|
+
const slotChangeEvent = new CustomEvent('slotchange');
|
|
11183
|
+
Object.defineProperty(slotChangeEvent, 'target', { value: triggerSlot, enumerable: true });
|
|
11184
|
+
this.handleTriggerSlotChange(slotChangeEvent);
|
|
10738
11185
|
}
|
|
10739
11186
|
}
|
|
10740
11187
|
disconnectedCallback() {
|
|
10741
|
-
var _a;
|
|
10742
11188
|
this.isComponentMounted = false;
|
|
10743
|
-
// Clean up event listener
|
|
10744
|
-
|
|
10745
|
-
|
|
10746
|
-
|
|
11189
|
+
// Clean up trigger click event listener
|
|
11190
|
+
if (this.triggerEl != null) {
|
|
11191
|
+
this.triggerEl.removeEventListener('click', this.handleTriggerClick);
|
|
11192
|
+
}
|
|
11193
|
+
// Clean up all event listeners
|
|
11194
|
+
this.removeLightDismissListeners();
|
|
11195
|
+
this.removeScrollAndResizeListeners();
|
|
11196
|
+
// Clear any pending debounce timers
|
|
11197
|
+
this.clearDebounceTimers();
|
|
11198
|
+
// Remove portal from DOM
|
|
11199
|
+
this.removePortal();
|
|
11200
|
+
}
|
|
11201
|
+
/**
|
|
11202
|
+
* Clears any pending debounce timers
|
|
11203
|
+
*/
|
|
11204
|
+
clearDebounceTimers() {
|
|
11205
|
+
if (this.scrollDebounceTimer !== null) {
|
|
11206
|
+
clearTimeout(this.scrollDebounceTimer);
|
|
11207
|
+
this.scrollDebounceTimer = null;
|
|
10747
11208
|
}
|
|
11209
|
+
if (this.resizeDebounceTimer !== null) {
|
|
11210
|
+
clearTimeout(this.resizeDebounceTimer);
|
|
11211
|
+
this.resizeDebounceTimer = null;
|
|
11212
|
+
}
|
|
11213
|
+
}
|
|
11214
|
+
createPortal() {
|
|
11215
|
+
if (this.portalEl !== null)
|
|
11216
|
+
return;
|
|
11217
|
+
this.portalEl = document.createElement('div');
|
|
11218
|
+
this.portalEl.className = 'pds-popover';
|
|
11219
|
+
// Apply all styles inline since portal is outside shadow DOM
|
|
11220
|
+
this.portalEl.style.position = 'fixed';
|
|
11221
|
+
this.portalEl.style.zIndex = 'var(--pine-z-index-raised)';
|
|
11222
|
+
this.portalEl.style.maxWidth = `${this.maxWidth}px`;
|
|
11223
|
+
this.portalEl.style.display = 'none';
|
|
11224
|
+
this.portalEl.style.opacity = '0';
|
|
11225
|
+
this.portalEl.style.visibility = 'hidden';
|
|
11226
|
+
this.portalEl.style.backgroundColor = 'var(--pine-color-background-container)';
|
|
11227
|
+
this.portalEl.style.borderRadius = 'var(--pine-dimension-125)';
|
|
11228
|
+
this.portalEl.style.boxShadow = 'var(--pine-box-shadow-200)';
|
|
11229
|
+
this.portalEl.style.margin = 'var(--pine-dimension-none)';
|
|
11230
|
+
this.portalEl.style.padding = 'var(--pine-dimension-md)';
|
|
11231
|
+
// Generate unique ID
|
|
11232
|
+
if (!this.componentId) {
|
|
11233
|
+
const suffix = PdsPopover.instanceCounter++;
|
|
11234
|
+
this.portalEl.id = `pds-popover-portal-${suffix}`;
|
|
11235
|
+
}
|
|
11236
|
+
else {
|
|
11237
|
+
this.portalEl.id = `${this.componentId}-portal`;
|
|
11238
|
+
}
|
|
11239
|
+
// Add accessibility attributes for screen readers
|
|
11240
|
+
// Note: Native Popover API doesn't add a specific role, keeping semantic HTML
|
|
11241
|
+
this.portalEl.setAttribute('aria-modal', 'false'); // Not a modal, can interact with rest of page
|
|
11242
|
+
// Append to body
|
|
11243
|
+
document.body.appendChild(this.portalEl);
|
|
11244
|
+
// Add global focus styles to match Pine design system
|
|
11245
|
+
// This is done after appending to ensure it's part of the document and can access CSS variables
|
|
11246
|
+
this.addPortalFocusStyles();
|
|
10748
11247
|
}
|
|
10749
11248
|
/**
|
|
10750
|
-
*
|
|
11249
|
+
* Adds Pine design system focus styles to the portal element
|
|
11250
|
+
* Uses CSS variables from Pine's design tokens
|
|
10751
11251
|
*/
|
|
10752
|
-
|
|
11252
|
+
addPortalFocusStyles() {
|
|
11253
|
+
if (!this.portalEl)
|
|
11254
|
+
return;
|
|
11255
|
+
const portalId = this.portalEl.id;
|
|
11256
|
+
// Check if style element already exists
|
|
11257
|
+
const existingStyle = document.querySelector(`style[data-pds-popover-focus="${portalId}"]`);
|
|
11258
|
+
if (existingStyle)
|
|
11259
|
+
return;
|
|
11260
|
+
// Create style element with Pine's focus ring styles
|
|
11261
|
+
const styleEl = document.createElement('style');
|
|
11262
|
+
styleEl.setAttribute('data-pds-popover-focus', portalId);
|
|
11263
|
+
styleEl.textContent = `
|
|
11264
|
+
#${portalId}:focus {
|
|
11265
|
+
outline: var(--pine-outline-focus, 2px solid var(--pine-color-focus-ring, #6366f1)) !important;
|
|
11266
|
+
outline-offset: var(--pine-border-width, 1px);
|
|
11267
|
+
}
|
|
11268
|
+
#${portalId}:focus:not(:focus-visible) {
|
|
11269
|
+
outline: none;
|
|
11270
|
+
}
|
|
11271
|
+
`;
|
|
11272
|
+
document.head.appendChild(styleEl);
|
|
11273
|
+
}
|
|
11274
|
+
/**
|
|
11275
|
+
* Moves slot content into portal (preserves event handlers and component instances)
|
|
11276
|
+
*/
|
|
11277
|
+
updatePortalContent() {
|
|
10753
11278
|
var _a;
|
|
10754
|
-
|
|
10755
|
-
|
|
10756
|
-
|
|
10757
|
-
|
|
11279
|
+
if (!this.portalEl)
|
|
11280
|
+
return;
|
|
11281
|
+
const contentSlotWrapper = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.pds-popover__content-slot-wrapper');
|
|
11282
|
+
const defaultSlot = contentSlotWrapper === null || contentSlotWrapper === void 0 ? void 0 : contentSlotWrapper.querySelector('slot');
|
|
11283
|
+
if (defaultSlot) {
|
|
11284
|
+
const assignedNodes = defaultSlot.assignedNodes();
|
|
11285
|
+
// Move each node into portal and track with placeholder for restoration
|
|
11286
|
+
assignedNodes.forEach(node => {
|
|
11287
|
+
var _a;
|
|
11288
|
+
// Skip if node is already in the portal or already tracked
|
|
11289
|
+
const isAlreadyInPortal = node.parentNode === this.portalEl;
|
|
11290
|
+
const isAlreadyTracked = this.movedNodes.some(moved => moved.node === node);
|
|
11291
|
+
if (isAlreadyInPortal || isAlreadyTracked) {
|
|
11292
|
+
return;
|
|
11293
|
+
}
|
|
11294
|
+
// Create a placeholder comment to mark original position
|
|
11295
|
+
const placeholder = document.createComment('pds-popover-placeholder');
|
|
11296
|
+
// Insert placeholder before moving the node
|
|
11297
|
+
(_a = node.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(placeholder, node);
|
|
11298
|
+
// Move the actual node to portal (preserves all handlers and state)
|
|
11299
|
+
this.portalEl.appendChild(node);
|
|
11300
|
+
// Track for restoration
|
|
11301
|
+
this.movedNodes.push({ node, placeholder });
|
|
11302
|
+
});
|
|
11303
|
+
}
|
|
11304
|
+
}
|
|
11305
|
+
/**
|
|
11306
|
+
* Restores moved nodes back to their original positions
|
|
11307
|
+
*/
|
|
11308
|
+
restorePortalContent() {
|
|
11309
|
+
// Restore each moved node to its original position
|
|
11310
|
+
this.movedNodes.forEach(({ node, placeholder }) => {
|
|
11311
|
+
if (placeholder.parentNode) {
|
|
11312
|
+
placeholder.parentNode.insertBefore(node, placeholder);
|
|
11313
|
+
placeholder.parentNode.removeChild(placeholder);
|
|
10758
11314
|
}
|
|
10759
|
-
|
|
10760
|
-
|
|
10761
|
-
|
|
11315
|
+
});
|
|
11316
|
+
// Clear tracking array
|
|
11317
|
+
this.movedNodes = [];
|
|
11318
|
+
}
|
|
11319
|
+
removePortal() {
|
|
11320
|
+
if (this.portalEl) {
|
|
11321
|
+
// Remove the portal element from DOM
|
|
11322
|
+
if (this.portalEl.parentNode) {
|
|
11323
|
+
this.portalEl.parentNode.removeChild(this.portalEl);
|
|
11324
|
+
}
|
|
11325
|
+
// Remove the associated focus style element
|
|
11326
|
+
const portalId = this.portalEl.id;
|
|
11327
|
+
const styleEl = document.querySelector(`style[data-pds-popover-focus="${portalId}"]`);
|
|
11328
|
+
if (styleEl && styleEl.parentNode) {
|
|
11329
|
+
styleEl.parentNode.removeChild(styleEl);
|
|
10762
11330
|
}
|
|
10763
11331
|
}
|
|
11332
|
+
this.portalEl = null;
|
|
11333
|
+
}
|
|
11334
|
+
/**
|
|
11335
|
+
* Opens the popover programmatically
|
|
11336
|
+
*/
|
|
11337
|
+
async show() {
|
|
11338
|
+
if (this.active || !this.portalEl)
|
|
11339
|
+
return;
|
|
11340
|
+
this.active = true;
|
|
11341
|
+
// Record open timestamp to prevent immediate close from opening click
|
|
11342
|
+
this.openTimestamp = Date.now();
|
|
11343
|
+
// Update ARIA expanded state on trigger
|
|
11344
|
+
if (this.triggerEl) {
|
|
11345
|
+
this.triggerEl.setAttribute('aria-expanded', 'true');
|
|
11346
|
+
}
|
|
11347
|
+
// Update portal content with latest slot content
|
|
11348
|
+
this.updatePortalContent();
|
|
11349
|
+
// Show portal
|
|
11350
|
+
this.portalEl.style.display = 'block';
|
|
11351
|
+
this.portalEl.style.opacity = '1';
|
|
11352
|
+
this.portalEl.style.visibility = 'visible';
|
|
11353
|
+
// Position the popover
|
|
11354
|
+
requestAnimationFrame(() => {
|
|
11355
|
+
if (!this.isComponentMounted)
|
|
11356
|
+
return;
|
|
11357
|
+
this.handlePopoverPositioning();
|
|
11358
|
+
});
|
|
11359
|
+
// Add scroll and resize listeners for repositioning (always)
|
|
11360
|
+
this.addScrollAndResizeListeners();
|
|
11361
|
+
// Add document listeners for light dismiss and escape key (auto type only)
|
|
11362
|
+
if (this.popoverType === 'auto') {
|
|
11363
|
+
this.addLightDismissListeners();
|
|
11364
|
+
}
|
|
11365
|
+
// Emit open event
|
|
11366
|
+
this.pdsPopoverOpen.emit({
|
|
11367
|
+
componentId: this.componentId,
|
|
11368
|
+
popoverType: this.popoverType,
|
|
11369
|
+
});
|
|
10764
11370
|
}
|
|
10765
11371
|
/**
|
|
10766
11372
|
* Closes the popover programmatically
|
|
10767
11373
|
*/
|
|
10768
11374
|
async hide() {
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
|
|
10775
|
-
catch (e) {
|
|
10776
|
-
// Popover might already be closed
|
|
10777
|
-
console.warn('Failed to hide popover:', e);
|
|
10778
|
-
}
|
|
11375
|
+
if (!this.active || !this.portalEl)
|
|
11376
|
+
return;
|
|
11377
|
+
this.active = false;
|
|
11378
|
+
// Update ARIA expanded state on trigger
|
|
11379
|
+
if (this.triggerEl) {
|
|
11380
|
+
this.triggerEl.setAttribute('aria-expanded', 'false');
|
|
10779
11381
|
}
|
|
11382
|
+
// Restore content back to original slot positions
|
|
11383
|
+
this.restorePortalContent();
|
|
11384
|
+
// Hide portal
|
|
11385
|
+
this.portalEl.style.display = 'none';
|
|
11386
|
+
this.portalEl.style.opacity = '0';
|
|
11387
|
+
this.portalEl.style.visibility = 'hidden';
|
|
11388
|
+
// Return focus to trigger for keyboard accessibility
|
|
11389
|
+
// This mirrors native Popover API behavior on close
|
|
11390
|
+
this.returnFocusToTrigger();
|
|
11391
|
+
// Remove all listeners
|
|
11392
|
+
this.removeLightDismissListeners();
|
|
11393
|
+
this.removeScrollAndResizeListeners();
|
|
11394
|
+
// Clear any pending timers
|
|
11395
|
+
this.clearDebounceTimers();
|
|
11396
|
+
// Emit close event
|
|
11397
|
+
this.pdsPopoverClose.emit({
|
|
11398
|
+
componentId: this.componentId,
|
|
11399
|
+
popoverType: this.popoverType,
|
|
11400
|
+
});
|
|
10780
11401
|
}
|
|
10781
11402
|
/**
|
|
10782
11403
|
* Toggles the popover open/closed state programmatically
|
|
10783
11404
|
*/
|
|
10784
11405
|
async toggle() {
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
}
|
|
10791
|
-
catch (e) {
|
|
10792
|
-
console.warn('Failed to toggle popover:', e);
|
|
10793
|
-
}
|
|
11406
|
+
if (this.active) {
|
|
11407
|
+
this.hide();
|
|
11408
|
+
}
|
|
11409
|
+
else {
|
|
11410
|
+
this.show();
|
|
10794
11411
|
}
|
|
10795
11412
|
}
|
|
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
|
-
|
|
10822
|
-
|
|
10823
|
-
|
|
11413
|
+
/**
|
|
11414
|
+
* Adds light dismiss listeners (click outside and escape key)
|
|
11415
|
+
*/
|
|
11416
|
+
addLightDismissListeners() {
|
|
11417
|
+
// Add listeners immediately - handleClickOutside will check timestamp
|
|
11418
|
+
document.addEventListener('click', this.boundClickOutsideHandler, true);
|
|
11419
|
+
document.addEventListener('keydown', this.boundEscapeKeyHandler);
|
|
11420
|
+
}
|
|
11421
|
+
/**
|
|
11422
|
+
* Removes light dismiss listeners
|
|
11423
|
+
*/
|
|
11424
|
+
removeLightDismissListeners() {
|
|
11425
|
+
document.removeEventListener('click', this.boundClickOutsideHandler, true);
|
|
11426
|
+
document.removeEventListener('keydown', this.boundEscapeKeyHandler);
|
|
11427
|
+
}
|
|
11428
|
+
/**
|
|
11429
|
+
* Adds scroll and resize listeners for repositioning
|
|
11430
|
+
*/
|
|
11431
|
+
addScrollAndResizeListeners() {
|
|
11432
|
+
window.addEventListener('scroll', this.boundScrollHandler, true);
|
|
11433
|
+
window.addEventListener('resize', this.boundResizeHandler);
|
|
11434
|
+
}
|
|
11435
|
+
/**
|
|
11436
|
+
* Removes scroll and resize listeners
|
|
11437
|
+
*/
|
|
11438
|
+
removeScrollAndResizeListeners() {
|
|
11439
|
+
window.removeEventListener('scroll', this.boundScrollHandler, true);
|
|
11440
|
+
window.removeEventListener('resize', this.boundResizeHandler);
|
|
11441
|
+
}
|
|
11442
|
+
/**
|
|
11443
|
+
* Handles clicks outside the popover for light dismiss (auto type only)
|
|
11444
|
+
*/
|
|
11445
|
+
handleClickOutside(event) {
|
|
11446
|
+
var _a, _b;
|
|
11447
|
+
// Ignore events that occurred at or before the popover opened
|
|
11448
|
+
// This prevents the opening click from immediately closing the popover
|
|
11449
|
+
// Convert event.timeStamp (DOMHighResTimeStamp from performance.now()) to epoch time
|
|
11450
|
+
// by calculating: currentEpochTime - (currentPerfTime - eventPerfTime)
|
|
11451
|
+
const eventTime = event.timeStamp
|
|
11452
|
+
? Date.now() - (performance.now() - event.timeStamp)
|
|
11453
|
+
: Date.now();
|
|
11454
|
+
if (eventTime <= this.openTimestamp) {
|
|
11455
|
+
return;
|
|
10824
11456
|
}
|
|
10825
|
-
|
|
10826
|
-
|
|
10827
|
-
|
|
11457
|
+
const target = event.target;
|
|
11458
|
+
// Check if click is outside both the popover portal and the trigger
|
|
11459
|
+
const clickedInsidePopover = (_a = this.portalEl) === null || _a === void 0 ? void 0 : _a.contains(target);
|
|
11460
|
+
const clickedInsideTrigger = (_b = this.triggerEl) === null || _b === void 0 ? void 0 : _b.contains(target);
|
|
11461
|
+
if (!clickedInsidePopover && !clickedInsideTrigger) {
|
|
11462
|
+
this.hide();
|
|
10828
11463
|
}
|
|
10829
11464
|
}
|
|
11465
|
+
/**
|
|
11466
|
+
* Returns focus to the trigger element with visible focus indicator
|
|
11467
|
+
* This ensures focus rings/outlines are shown as they would be with keyboard navigation
|
|
11468
|
+
*/
|
|
11469
|
+
returnFocusToTrigger() {
|
|
11470
|
+
if (!this.triggerEl)
|
|
11471
|
+
return;
|
|
11472
|
+
// Focus immediately while still in keyboard event context
|
|
11473
|
+
// This ensures the browser treats it as keyboard-initiated and shows focus ring
|
|
11474
|
+
this.triggerEl.focus({ preventScroll: true });
|
|
11475
|
+
}
|
|
11476
|
+
/**
|
|
11477
|
+
* Handles escape key press to close the popover
|
|
11478
|
+
* Mirrors native Popover API: Escape closes and returns focus to trigger
|
|
11479
|
+
*/
|
|
11480
|
+
handleEscapeKey(event) {
|
|
11481
|
+
if (event.key === 'Escape') {
|
|
11482
|
+
// Prevent default Escape behavior and stop propagation
|
|
11483
|
+
// This mirrors native Popover API which handles Escape exclusively
|
|
11484
|
+
event.preventDefault();
|
|
11485
|
+
event.stopPropagation();
|
|
11486
|
+
// Close popover and return focus to trigger
|
|
11487
|
+
this.hide();
|
|
11488
|
+
}
|
|
11489
|
+
}
|
|
11490
|
+
/**
|
|
11491
|
+
* Handles scroll events to reposition the popover (debounced for performance)
|
|
11492
|
+
*/
|
|
10830
11493
|
handleScroll() {
|
|
10831
|
-
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
|
|
11494
|
+
if (!this.active)
|
|
11495
|
+
return;
|
|
11496
|
+
if (this.scrollDebounceTimer !== null) {
|
|
11497
|
+
clearTimeout(this.scrollDebounceTimer);
|
|
11498
|
+
}
|
|
11499
|
+
this.scrollDebounceTimer = setTimeout(() => {
|
|
10835
11500
|
this.handlePopoverPositioning();
|
|
11501
|
+
this.scrollDebounceTimer = null;
|
|
11502
|
+
}, 10); // 10ms debounce for smooth repositioning
|
|
11503
|
+
}
|
|
11504
|
+
/**
|
|
11505
|
+
* Handles resize events to reposition the popover (debounced for performance)
|
|
11506
|
+
*/
|
|
11507
|
+
handleResize() {
|
|
11508
|
+
if (!this.active)
|
|
11509
|
+
return;
|
|
11510
|
+
if (this.resizeDebounceTimer !== null) {
|
|
11511
|
+
clearTimeout(this.resizeDebounceTimer);
|
|
10836
11512
|
}
|
|
11513
|
+
this.resizeDebounceTimer = setTimeout(() => {
|
|
11514
|
+
this.handlePopoverPositioning();
|
|
11515
|
+
this.resizeDebounceTimer = null;
|
|
11516
|
+
}, 100); // 100ms debounce for resize
|
|
10837
11517
|
}
|
|
11518
|
+
/**
|
|
11519
|
+
* Positions the popover relative to its trigger element
|
|
11520
|
+
*/
|
|
10838
11521
|
handlePopoverPositioning() {
|
|
10839
|
-
|
|
10840
|
-
|
|
10841
|
-
|
|
11522
|
+
// Prevent repositioning loops
|
|
11523
|
+
if (this.isRepositioning) {
|
|
11524
|
+
return;
|
|
11525
|
+
}
|
|
11526
|
+
this.isRepositioning = true;
|
|
11527
|
+
if (this.triggerEl == null || this.portalEl == null) {
|
|
11528
|
+
this.isRepositioning = false;
|
|
10842
11529
|
return;
|
|
10843
|
-
|
|
10844
|
-
const
|
|
10845
|
-
const
|
|
10846
|
-
|
|
10847
|
-
|
|
11530
|
+
}
|
|
11531
|
+
const triggerRect = this.triggerEl.getBoundingClientRect();
|
|
11532
|
+
const popoverRect = this.portalEl.getBoundingClientRect();
|
|
11533
|
+
// Safety check: ensure trigger has valid dimensions (is rendered and visible)
|
|
11534
|
+
if (triggerRect.width === 0 || triggerRect.height === 0) {
|
|
11535
|
+
this.isRepositioning = false;
|
|
11536
|
+
return;
|
|
11537
|
+
}
|
|
10848
11538
|
let top = 0;
|
|
10849
11539
|
let left = 0;
|
|
10850
11540
|
const offset = 8;
|
|
@@ -10898,22 +11588,25 @@ class PdsPopover {
|
|
|
10898
11588
|
left = triggerRect.left - popoverRect.width - offset;
|
|
10899
11589
|
break;
|
|
10900
11590
|
}
|
|
10901
|
-
|
|
10902
|
-
|
|
11591
|
+
this.portalEl.style.top = `${top}px`;
|
|
11592
|
+
this.portalEl.style.left = `${left}px`;
|
|
11593
|
+
// Reset the repositioning guard after a short delay
|
|
11594
|
+
setTimeout(() => {
|
|
11595
|
+
this.isRepositioning = false;
|
|
11596
|
+
}, 16); // ~1 frame at 60fps
|
|
10903
11597
|
}
|
|
10904
11598
|
render() {
|
|
10905
|
-
return (hAsync(Host, { key: '
|
|
11599
|
+
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 }))));
|
|
10906
11600
|
}
|
|
10907
11601
|
get el() { return getElement(this); }
|
|
10908
11602
|
static get style() { return pdsPopoverCss; }
|
|
10909
11603
|
static get cmpMeta() { return {
|
|
10910
|
-
"$flags$":
|
|
11604
|
+
"$flags$": 265,
|
|
10911
11605
|
"$tagName$": "pds-popover",
|
|
10912
11606
|
"$members$": {
|
|
10913
11607
|
"popoverTargetAction": [1, "popover-target-action"],
|
|
10914
11608
|
"popoverType": [1, "popover-type"],
|
|
10915
11609
|
"componentId": [1, "component-id"],
|
|
10916
|
-
"text": [1],
|
|
10917
11610
|
"maxWidth": [2, "max-width"],
|
|
10918
11611
|
"placement": [513],
|
|
10919
11612
|
"active": [32],
|
|
@@ -10921,11 +11614,15 @@ class PdsPopover {
|
|
|
10921
11614
|
"hide": [64],
|
|
10922
11615
|
"toggle": [64]
|
|
10923
11616
|
},
|
|
10924
|
-
"$listeners$":
|
|
11617
|
+
"$listeners$": undefined,
|
|
10925
11618
|
"$lazyBundleId$": "-",
|
|
10926
11619
|
"$attrsToReflect$": [["placement", "placement"]]
|
|
10927
11620
|
}; }
|
|
10928
11621
|
}
|
|
11622
|
+
/**
|
|
11623
|
+
* Instance counter for unique IDs
|
|
11624
|
+
*/
|
|
11625
|
+
PdsPopover.instanceCounter = 0;
|
|
10929
11626
|
|
|
10930
11627
|
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)}";
|
|
10931
11628
|
|
|
@@ -10949,11 +11646,11 @@ class PdsProgress {
|
|
|
10949
11646
|
this.showPercent = false;
|
|
10950
11647
|
}
|
|
10951
11648
|
render() {
|
|
10952
|
-
return (hAsync(Host, { key: '
|
|
11649
|
+
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, "%")));
|
|
10953
11650
|
}
|
|
10954
11651
|
static get style() { return pdsProgressCss; }
|
|
10955
11652
|
static get cmpMeta() { return {
|
|
10956
|
-
"$flags$":
|
|
11653
|
+
"$flags$": 265,
|
|
10957
11654
|
"$tagName$": "pds-progress",
|
|
10958
11655
|
"$members$": {
|
|
10959
11656
|
"animated": [4],
|
|
@@ -10983,11 +11680,11 @@ class PdsProperty {
|
|
|
10983
11680
|
this.icon = 'star';
|
|
10984
11681
|
}
|
|
10985
11682
|
render() {
|
|
10986
|
-
return (hAsync(Host, { key: '
|
|
11683
|
+
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' }))));
|
|
10987
11684
|
}
|
|
10988
11685
|
static get style() { return pdsPropertyCss; }
|
|
10989
11686
|
static get cmpMeta() { return {
|
|
10990
|
-
"$flags$":
|
|
11687
|
+
"$flags$": 265,
|
|
10991
11688
|
"$tagName$": "pds-property",
|
|
10992
11689
|
"$members$": {
|
|
10993
11690
|
"componentId": [1, "component-id"],
|
|
@@ -11079,16 +11776,16 @@ class PdsRadio {
|
|
|
11079
11776
|
}
|
|
11080
11777
|
render() {
|
|
11081
11778
|
const renderLabelAndMessages = () => [
|
|
11082
|
-
hAsync("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, hAsync("input", { key: '
|
|
11779
|
+
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)),
|
|
11083
11780
|
this.helperMessage && (hAsync("div", { key: `${this.componentId}-helper`, class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage)),
|
|
11084
|
-
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: '
|
|
11781
|
+
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))
|
|
11085
11782
|
];
|
|
11086
|
-
return (hAsync(Host, { key: '
|
|
11783
|
+
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())));
|
|
11087
11784
|
}
|
|
11088
11785
|
get el() { return getElement(this); }
|
|
11089
11786
|
static get style() { return labelCss$3 + pdsRadioCss; }
|
|
11090
11787
|
static get cmpMeta() { return {
|
|
11091
|
-
"$flags$":
|
|
11788
|
+
"$flags$": 262,
|
|
11092
11789
|
"$tagName$": "pds-radio",
|
|
11093
11790
|
"$members$": {
|
|
11094
11791
|
"checked": [4],
|
|
@@ -11170,11 +11867,11 @@ class PdsRow {
|
|
|
11170
11867
|
})), (this.minHeight && {
|
|
11171
11868
|
'min-height': this.minHeight,
|
|
11172
11869
|
}));
|
|
11173
|
-
return hAsync(Host, { key: '
|
|
11870
|
+
return hAsync(Host, { key: 'a4df5b098252089e69c7da5f329df4223cc57d81', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
|
|
11174
11871
|
}
|
|
11175
11872
|
static get style() { return pdsRowCss; }
|
|
11176
11873
|
static get cmpMeta() { return {
|
|
11177
|
-
"$flags$":
|
|
11874
|
+
"$flags$": 256,
|
|
11178
11875
|
"$tagName$": "pds-row",
|
|
11179
11876
|
"$members$": {
|
|
11180
11877
|
"alignItems": [1, "align-items"],
|
|
@@ -11411,7 +12108,7 @@ class PdsSelect {
|
|
|
11411
12108
|
}
|
|
11412
12109
|
render() {
|
|
11413
12110
|
const hasAction = this.el.querySelector('[slot="action"]') !== null;
|
|
11414
|
-
return (hAsync(Host, { key: '
|
|
12111
|
+
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 }))));
|
|
11415
12112
|
}
|
|
11416
12113
|
static get formAssociated() { return true; }
|
|
11417
12114
|
get el() { return getElement(this); }
|
|
@@ -11421,7 +12118,7 @@ class PdsSelect {
|
|
|
11421
12118
|
}; }
|
|
11422
12119
|
static get style() { return pdsSelectTokensCss + (labelCss$2 + pdsSelectCss); }
|
|
11423
12120
|
static get cmpMeta() { return {
|
|
11424
|
-
"$flags$":
|
|
12121
|
+
"$flags$": 329,
|
|
11425
12122
|
"$tagName$": "pds-select",
|
|
11426
12123
|
"$members$": {
|
|
11427
12124
|
"autocomplete": [1],
|
|
@@ -14155,12 +14852,12 @@ class PdsSortable {
|
|
|
14155
14852
|
Sortable.create(this.el, sortableOptions);
|
|
14156
14853
|
}
|
|
14157
14854
|
render() {
|
|
14158
|
-
return (hAsync(Host, { key: '
|
|
14855
|
+
return (hAsync(Host, { key: '0af78db3e32adf714d10fb08ff4318f7c84aaef9', class: this.classNames(), id: this.componentId }, hAsync("slot", { key: '1e7ac27c41de163ea4d59c6186a1282eb5f0b27d' })));
|
|
14159
14856
|
}
|
|
14160
14857
|
get el() { return getElement(this); }
|
|
14161
14858
|
static get style() { return pdsSortableCss; }
|
|
14162
14859
|
static get cmpMeta() { return {
|
|
14163
|
-
"$flags$":
|
|
14860
|
+
"$flags$": 262,
|
|
14164
14861
|
"$tagName$": "pds-sortable",
|
|
14165
14862
|
"$members$": {
|
|
14166
14863
|
"border": [516],
|
|
@@ -14202,12 +14899,12 @@ class PdsSortableItem {
|
|
|
14202
14899
|
}
|
|
14203
14900
|
}
|
|
14204
14901
|
render() {
|
|
14205
|
-
return (hAsync(Host, { key: '
|
|
14902
|
+
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" })))));
|
|
14206
14903
|
}
|
|
14207
14904
|
get el() { return getElement(this); }
|
|
14208
14905
|
static get style() { return pdsSortableItemCss; }
|
|
14209
14906
|
static get cmpMeta() { return {
|
|
14210
|
-
"$flags$":
|
|
14907
|
+
"$flags$": 262,
|
|
14211
14908
|
"$tagName$": "pds-sortable-item",
|
|
14212
14909
|
"$members$": {
|
|
14213
14910
|
"enableActions": [4, "enable-actions"],
|
|
@@ -14307,9 +15004,9 @@ class PdsSwitch {
|
|
|
14307
15004
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
14308
15005
|
}
|
|
14309
15006
|
render() {
|
|
14310
|
-
return (hAsync(Host, { key: '
|
|
14311
|
-
hAsync("div", { key: '
|
|
14312
|
-
hAsync("div", { key: '
|
|
15007
|
+
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 &&
|
|
15008
|
+
hAsync("div", { key: 'd16fc523de5eacdd14dc4edce347e3be63edeb3e', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
15009
|
+
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)));
|
|
14313
15010
|
}
|
|
14314
15011
|
static get formAssociated() { return true; }
|
|
14315
15012
|
get el() { return getElement(this); }
|
|
@@ -14318,7 +15015,7 @@ class PdsSwitch {
|
|
|
14318
15015
|
}; }
|
|
14319
15016
|
static get style() { return labelCss$1 + pdsSwitchCss; }
|
|
14320
15017
|
static get cmpMeta() { return {
|
|
14321
|
-
"$flags$":
|
|
15018
|
+
"$flags$": 329,
|
|
14322
15019
|
"$tagName$": "pds-switch",
|
|
14323
15020
|
"$members$": {
|
|
14324
15021
|
"componentId": [1, "component-id"],
|
|
@@ -14355,14 +15052,14 @@ class PdsTab {
|
|
|
14355
15052
|
this.pdsTabClick.emit([index, parentComponentId]);
|
|
14356
15053
|
}
|
|
14357
15054
|
render() {
|
|
14358
|
-
const availabilityTabEdgeInlineStart = (hAsync("span", { key: '
|
|
14359
|
-
const availabilityTabEdgeInlineEnd = (hAsync("span", { key: '
|
|
14360
|
-
return (hAsync(Host, { key: '
|
|
15055
|
+
const availabilityTabEdgeInlineStart = (hAsync("span", { key: '837cf57372db654f6ca411054446ebf0bc27b539', class: "pds-tab-edge", role: "presentation" }));
|
|
15056
|
+
const availabilityTabEdgeInlineEnd = (hAsync("span", { key: 'e15055442d56b50e6ac21bfb76fc0f599406a4fb', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
|
|
15057
|
+
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' })))));
|
|
14361
15058
|
}
|
|
14362
15059
|
get el() { return getElement(this); }
|
|
14363
15060
|
static get style() { return pdsTabCss; }
|
|
14364
15061
|
static get cmpMeta() { return {
|
|
14365
|
-
"$flags$":
|
|
15062
|
+
"$flags$": 260,
|
|
14366
15063
|
"$tagName$": "pds-tab",
|
|
14367
15064
|
"$members$": {
|
|
14368
15065
|
"name": [1],
|
|
@@ -14573,7 +15270,7 @@ class PdsTable {
|
|
|
14573
15270
|
get el() { return getElement(this); }
|
|
14574
15271
|
static get style() { return pdsTableCss; }
|
|
14575
15272
|
static get cmpMeta() { return {
|
|
14576
|
-
"$flags$":
|
|
15273
|
+
"$flags$": 265,
|
|
14577
15274
|
"$tagName$": "pds-table",
|
|
14578
15275
|
"$members$": {
|
|
14579
15276
|
"compact": [4],
|
|
@@ -14597,11 +15294,11 @@ class PdsTableBody {
|
|
|
14597
15294
|
registerInstance(this, hostRef);
|
|
14598
15295
|
}
|
|
14599
15296
|
render() {
|
|
14600
|
-
return (hAsync(Host, { key: '
|
|
15297
|
+
return (hAsync(Host, { key: '7c9b15bea47bcede62a93ef11ee9dba093450ab9', role: "rowgroup", part: "body" }, hAsync("slot", { key: 'fab0b2ca27185373cdb7b29d9cb1807b4097aea9' })));
|
|
14601
15298
|
}
|
|
14602
15299
|
static get style() { return pdsTableBodyCss; }
|
|
14603
15300
|
static get cmpMeta() { return {
|
|
14604
|
-
"$flags$":
|
|
15301
|
+
"$flags$": 265,
|
|
14605
15302
|
"$tagName$": "pds-table-body",
|
|
14606
15303
|
"$members$": undefined,
|
|
14607
15304
|
"$listeners$": undefined,
|
|
@@ -14708,16 +15405,16 @@ class PdsTableCell {
|
|
|
14708
15405
|
return classNames.join(' ');
|
|
14709
15406
|
}
|
|
14710
15407
|
render() {
|
|
14711
|
-
return (hAsync(Host, { key: '
|
|
15408
|
+
return (hAsync(Host, { key: 'b1c76cfb3fa26b7e59586cfd693380701c9146ff', class: this.classNames(), role: "gridcell", part: "cell", style: this.tableRef &&
|
|
14712
15409
|
this.tableRef.fixedColumn &&
|
|
14713
15410
|
this.tableRef.selectable
|
|
14714
15411
|
? { '--fixed-cell-position': '40px' }
|
|
14715
|
-
: {} }, hAsync("slot", { key: '
|
|
15412
|
+
: {} }, hAsync("slot", { key: '1a04730905bf7ad930141c1914f37dd7717570d8' })));
|
|
14716
15413
|
}
|
|
14717
15414
|
get hostElement() { return getElement(this); }
|
|
14718
15415
|
static get style() { return pdsTableCellCss; }
|
|
14719
15416
|
static get cmpMeta() { return {
|
|
14720
|
-
"$flags$":
|
|
15417
|
+
"$flags$": 265,
|
|
14721
15418
|
"$tagName$": "pds-table-cell",
|
|
14722
15419
|
"$members$": {
|
|
14723
15420
|
"cellAlign": [1, "cell-align"],
|
|
@@ -14774,12 +15471,12 @@ class PdsTableHead {
|
|
|
14774
15471
|
}
|
|
14775
15472
|
}
|
|
14776
15473
|
render() {
|
|
14777
|
-
return (hAsync(Host, { key: '
|
|
15474
|
+
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' })));
|
|
14778
15475
|
}
|
|
14779
15476
|
get hostElement() { return getElement(this); }
|
|
14780
15477
|
static get style() { return pdsTableHeadCss; }
|
|
14781
15478
|
static get cmpMeta() { return {
|
|
14782
|
-
"$flags$":
|
|
15479
|
+
"$flags$": 265,
|
|
14783
15480
|
"$tagName$": "pds-table-head",
|
|
14784
15481
|
"$members$": {
|
|
14785
15482
|
"indeterminate": [1028],
|
|
@@ -14913,16 +15610,16 @@ class PdsTableHeadCell {
|
|
|
14913
15610
|
return classNames.join(' ');
|
|
14914
15611
|
}
|
|
14915
15612
|
render() {
|
|
14916
|
-
return (hAsync(Host, { key: '
|
|
15613
|
+
return (hAsync(Host, { key: '3d950a2997ef4c095d08f9c4e67b9a963fea093d', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, part: "head-cell", style: this.tableRef &&
|
|
14917
15614
|
this.tableRef.fixedColumn &&
|
|
14918
15615
|
this.tableRef.selectable
|
|
14919
15616
|
? { '--fixed-cell-position': '40px' }
|
|
14920
|
-
: {} }, hAsync("slot", { key: '
|
|
15617
|
+
: {} }, hAsync("slot", { key: '8ca7d4d169612e5ba237691d9a5ec9ed35610230' }), this.sortable && (hAsync("pds-icon", { key: 'e2e214b39a1706d887bb34a0d4fc3f632e752306', icon: this.sortingDirection === 'asc' ? upSmall : downSmall, part: "sort-icon" }))));
|
|
14921
15618
|
}
|
|
14922
15619
|
get hostElement() { return getElement(this); }
|
|
14923
15620
|
static get style() { return pdsTableHeadCellCss; }
|
|
14924
15621
|
static get cmpMeta() { return {
|
|
14925
|
-
"$flags$":
|
|
15622
|
+
"$flags$": 265,
|
|
14926
15623
|
"$tagName$": "pds-table-head-cell",
|
|
14927
15624
|
"$members$": {
|
|
14928
15625
|
"cellAlign": [1, "cell-align"],
|
|
@@ -14984,12 +15681,12 @@ class PdsTableRow {
|
|
|
14984
15681
|
}
|
|
14985
15682
|
}
|
|
14986
15683
|
render() {
|
|
14987
|
-
return (hAsync(Host, { key: '
|
|
15684
|
+
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' })));
|
|
14988
15685
|
}
|
|
14989
15686
|
get hostElement() { return getElement(this); }
|
|
14990
15687
|
static get style() { return pdsTableRowCss; }
|
|
14991
15688
|
static get cmpMeta() { return {
|
|
14992
|
-
"$flags$":
|
|
15689
|
+
"$flags$": 265,
|
|
14993
15690
|
"$tagName$": "pds-table-row",
|
|
14994
15691
|
"$members$": {
|
|
14995
15692
|
"indeterminate": [1028],
|
|
@@ -15013,12 +15710,12 @@ class PdsTabpanel {
|
|
|
15013
15710
|
this.selected = false; // eslint-disable-line @stencil-community/strict-mutable
|
|
15014
15711
|
}
|
|
15015
15712
|
render() {
|
|
15016
|
-
return (hAsync(Host, { key: '
|
|
15713
|
+
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' }))));
|
|
15017
15714
|
}
|
|
15018
15715
|
get el() { return getElement(this); }
|
|
15019
15716
|
static get style() { return pdsTabpanelCss; }
|
|
15020
15717
|
static get cmpMeta() { return {
|
|
15021
|
-
"$flags$":
|
|
15718
|
+
"$flags$": 260,
|
|
15022
15719
|
"$tagName$": "pds-tabpanel",
|
|
15023
15720
|
"$members$": {
|
|
15024
15721
|
"name": [1],
|
|
@@ -15125,12 +15822,12 @@ class PdsTabs {
|
|
|
15125
15822
|
this.passPropsToChildren();
|
|
15126
15823
|
}
|
|
15127
15824
|
render() {
|
|
15128
|
-
return (hAsync(Host, { key: '
|
|
15825
|
+
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" })));
|
|
15129
15826
|
}
|
|
15130
15827
|
get el() { return getElement(this); }
|
|
15131
15828
|
static get style() { return pdsTabsCss; }
|
|
15132
15829
|
static get cmpMeta() { return {
|
|
15133
|
-
"$flags$":
|
|
15830
|
+
"$flags$": 265,
|
|
15134
15831
|
"$tagName$": "pds-tabs",
|
|
15135
15832
|
"$members$": {
|
|
15136
15833
|
"tablistLabel": [1, "tablist-label"],
|
|
@@ -15168,12 +15865,12 @@ class PdsText {
|
|
|
15168
15865
|
${this.weight !== undefined && this.weight.trim() !== '' ? `pds-text--weight-${this.weight}` : ''}
|
|
15169
15866
|
${this.decoration !== undefined && this.decoration.trim() !== '' ? `pds-text--decoration-${this.decoration}` : ''}
|
|
15170
15867
|
`;
|
|
15171
|
-
return (hAsync(Tag, { key: '
|
|
15868
|
+
return (hAsync(Tag, { key: '101a42ae93ac81968a177c7e0d569417f376909c', style: this.color && setColor(this.color), class: typeClasses, part: "content" }, hAsync("slot", { key: '903b04a19b948e04d577c8585a76647033b9c36e' })));
|
|
15172
15869
|
}
|
|
15173
15870
|
get el() { return getElement(this); }
|
|
15174
15871
|
static get style() { return pdsTextCss; }
|
|
15175
15872
|
static get cmpMeta() { return {
|
|
15176
|
-
"$flags$":
|
|
15873
|
+
"$flags$": 265,
|
|
15177
15874
|
"$tagName$": "pds-text",
|
|
15178
15875
|
"$members$": {
|
|
15179
15876
|
"align": [1],
|
|
@@ -15489,10 +16186,10 @@ class PdsTextarea {
|
|
|
15489
16186
|
}
|
|
15490
16187
|
render() {
|
|
15491
16188
|
const value = this.getValue();
|
|
15492
|
-
return (hAsync(Host, { key: '
|
|
15493
|
-
hAsync("div", { key: '
|
|
15494
|
-
hAsync("p", { key: '
|
|
15495
|
-
hAsync("p", { key: '
|
|
16189
|
+
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 &&
|
|
16190
|
+
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 &&
|
|
16191
|
+
hAsync("p", { key: 'c29ceac2b41863c202787fc835841cd5422cd11b', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
|
|
16192
|
+
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))));
|
|
15496
16193
|
}
|
|
15497
16194
|
static get formAssociated() { return true; }
|
|
15498
16195
|
get el() { return getElement(this); }
|
|
@@ -15503,7 +16200,7 @@ class PdsTextarea {
|
|
|
15503
16200
|
}; }
|
|
15504
16201
|
static get style() { return labelCss + (pdsInputTokensCss + pdsTextareaCss); }
|
|
15505
16202
|
static get cmpMeta() { return {
|
|
15506
|
-
"$flags$":
|
|
16203
|
+
"$flags$": 329,
|
|
15507
16204
|
"$tagName$": "pds-textarea",
|
|
15508
16205
|
"$members$": {
|
|
15509
16206
|
"autocomplete": [1],
|
|
@@ -15615,20 +16312,20 @@ class PdsToast {
|
|
|
15615
16312
|
return this.icon && hAsync("pds-icon", { name: this.icon, class: "pds-toast__icon" });
|
|
15616
16313
|
}
|
|
15617
16314
|
render() {
|
|
15618
|
-
return (hAsync(Host, { key: '
|
|
16315
|
+
return (hAsync(Host, { key: 'cf03483967a2414e2c6ee68587af609af0bb64c6', hidden: !this.isVisible }, hAsync("div", { key: '70413e3220f6890dd2367bc96a7060269a33124c', class: {
|
|
15619
16316
|
'pds-toast': true,
|
|
15620
16317
|
[`pds-toast--${this.type}`]: this.type !== 'default',
|
|
15621
16318
|
'pds-toast--animating-out': this.isAnimatingOut
|
|
15622
|
-
}, role: "alert", "aria-live": "polite" }, this.renderIcon(), hAsync("span", { key: '
|
|
16319
|
+
}, 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: () => {
|
|
15623
16320
|
this.dismiss();
|
|
15624
|
-
}, "aria-label": "Dismiss message" }, hAsync("pds-icon", { key: '
|
|
16321
|
+
}, "aria-label": "Dismiss message" }, hAsync("pds-icon", { key: '495a71b67c4a6690f4c1b9562ddd8862d88a85e4', name: "remove" }))))));
|
|
15625
16322
|
}
|
|
15626
16323
|
static get watchers() { return {
|
|
15627
16324
|
"duration": ["handleDurationChange"]
|
|
15628
16325
|
}; }
|
|
15629
16326
|
static get style() { return pdsToastCss; }
|
|
15630
16327
|
static get cmpMeta() { return {
|
|
15631
|
-
"$flags$":
|
|
16328
|
+
"$flags$": 265,
|
|
15632
16329
|
"$tagName$": "pds-toast",
|
|
15633
16330
|
"$members$": {
|
|
15634
16331
|
"componentId": [1, "component-id"],
|
|
@@ -15961,9 +16658,9 @@ class PdsTooltip {
|
|
|
15961
16658
|
}
|
|
15962
16659
|
render() {
|
|
15963
16660
|
const hostId = this.componentId || undefined;
|
|
15964
|
-
return (hAsync(Host, { key: '
|
|
16661
|
+
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,
|
|
15965
16662
|
/* focusin/out bubble; ensure keyboard users see tooltips */
|
|
15966
|
-
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, hAsync("slot", { key: '
|
|
16663
|
+
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" }))));
|
|
15967
16664
|
}
|
|
15968
16665
|
get el() { return getElement(this); }
|
|
15969
16666
|
static get watchers() { return {
|
|
@@ -15971,7 +16668,7 @@ class PdsTooltip {
|
|
|
15971
16668
|
}; }
|
|
15972
16669
|
static get style() { return pdsTooltipCss; }
|
|
15973
16670
|
static get cmpMeta() { return {
|
|
15974
|
-
"$flags$":
|
|
16671
|
+
"$flags$": 260,
|
|
15975
16672
|
"$tagName$": "pds-tooltip",
|
|
15976
16673
|
"$members$": {
|
|
15977
16674
|
"content": [1],
|
|
@@ -16091,7 +16788,7 @@ var BUILD = {
|
|
|
16091
16788
|
vdomRender: true,
|
|
16092
16789
|
vdomStyle: true,
|
|
16093
16790
|
vdomText: true,
|
|
16094
|
-
|
|
16791
|
+
propChangeCallback: true,
|
|
16095
16792
|
taskQueue: true,
|
|
16096
16793
|
hotModuleReplacement: false,
|
|
16097
16794
|
isDebug: false,
|
|
@@ -16139,7 +16836,7 @@ var NAMESPACE = (
|
|
|
16139
16836
|
);
|
|
16140
16837
|
|
|
16141
16838
|
/*
|
|
16142
|
-
Stencil Hydrate Runner v4.
|
|
16839
|
+
Stencil Hydrate Runner v4.38.3 | MIT Licensed | https://stenciljs.com
|
|
16143
16840
|
*/
|
|
16144
16841
|
var __defProp = Object.defineProperty;
|
|
16145
16842
|
var __export = (target, all) => {
|
|
@@ -16153,6 +16850,7 @@ var ORG_LOCATION_ID = "o";
|
|
|
16153
16850
|
var SLOT_NODE_ID = "s";
|
|
16154
16851
|
var TEXT_NODE_ID = "t";
|
|
16155
16852
|
var HYDRATE_ID = "s-id";
|
|
16853
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
16156
16854
|
var STENCIL_DOC_DATA = "_stencilDocData";
|
|
16157
16855
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
16158
16856
|
|
|
@@ -16299,82 +16997,6 @@ var MockAttr = class {
|
|
|
16299
16997
|
}
|
|
16300
16998
|
};
|
|
16301
16999
|
|
|
16302
|
-
// src/mock-doc/class-list.ts
|
|
16303
|
-
var MockClassList = class {
|
|
16304
|
-
constructor(elm) {
|
|
16305
|
-
this.elm = elm;
|
|
16306
|
-
}
|
|
16307
|
-
add(...classNames) {
|
|
16308
|
-
const clsNames = getItems(this.elm);
|
|
16309
|
-
let updated = false;
|
|
16310
|
-
classNames.forEach((className) => {
|
|
16311
|
-
className = String(className);
|
|
16312
|
-
validateClass(className);
|
|
16313
|
-
if (clsNames.includes(className) === false) {
|
|
16314
|
-
clsNames.push(className);
|
|
16315
|
-
updated = true;
|
|
16316
|
-
}
|
|
16317
|
-
});
|
|
16318
|
-
if (updated) {
|
|
16319
|
-
this.elm.setAttributeNS(null, "class", clsNames.join(" "));
|
|
16320
|
-
}
|
|
16321
|
-
}
|
|
16322
|
-
remove(...classNames) {
|
|
16323
|
-
const clsNames = getItems(this.elm);
|
|
16324
|
-
let updated = false;
|
|
16325
|
-
classNames.forEach((className) => {
|
|
16326
|
-
className = String(className);
|
|
16327
|
-
validateClass(className);
|
|
16328
|
-
const index = clsNames.indexOf(className);
|
|
16329
|
-
if (index > -1) {
|
|
16330
|
-
clsNames.splice(index, 1);
|
|
16331
|
-
updated = true;
|
|
16332
|
-
}
|
|
16333
|
-
});
|
|
16334
|
-
if (updated) {
|
|
16335
|
-
this.elm.setAttributeNS(null, "class", clsNames.filter((c) => c.length > 0).join(" "));
|
|
16336
|
-
}
|
|
16337
|
-
}
|
|
16338
|
-
contains(className) {
|
|
16339
|
-
className = String(className);
|
|
16340
|
-
return getItems(this.elm).includes(className);
|
|
16341
|
-
}
|
|
16342
|
-
toggle(className) {
|
|
16343
|
-
className = String(className);
|
|
16344
|
-
if (this.contains(className) === true) {
|
|
16345
|
-
this.remove(className);
|
|
16346
|
-
} else {
|
|
16347
|
-
this.add(className);
|
|
16348
|
-
}
|
|
16349
|
-
}
|
|
16350
|
-
get length() {
|
|
16351
|
-
return getItems(this.elm).length;
|
|
16352
|
-
}
|
|
16353
|
-
item(index) {
|
|
16354
|
-
return getItems(this.elm)[index];
|
|
16355
|
-
}
|
|
16356
|
-
toString() {
|
|
16357
|
-
return getItems(this.elm).join(" ");
|
|
16358
|
-
}
|
|
16359
|
-
};
|
|
16360
|
-
function validateClass(className) {
|
|
16361
|
-
if (className === "") {
|
|
16362
|
-
throw new Error("The token provided must not be empty.");
|
|
16363
|
-
}
|
|
16364
|
-
if (/\s/.test(className)) {
|
|
16365
|
-
throw new Error(
|
|
16366
|
-
`The token provided ('${className}') contains HTML space characters, which are not valid in tokens.`
|
|
16367
|
-
);
|
|
16368
|
-
}
|
|
16369
|
-
}
|
|
16370
|
-
function getItems(elm) {
|
|
16371
|
-
const className = elm.getAttribute("class");
|
|
16372
|
-
if (typeof className === "string" && className.length > 0) {
|
|
16373
|
-
return className.trim().split(" ").filter((c) => c.length > 0);
|
|
16374
|
-
}
|
|
16375
|
-
return [];
|
|
16376
|
-
}
|
|
16377
|
-
|
|
16378
17000
|
// src/mock-doc/css-style-declaration.ts
|
|
16379
17001
|
var MockCSSStyleDeclaration = class {
|
|
16380
17002
|
constructor() {
|
|
@@ -16863,8 +17485,21 @@ function triggerEventListener(elm, ev) {
|
|
|
16863
17485
|
} else if (elm.parentElement == null && elm.tagName === "HTML") {
|
|
16864
17486
|
triggerEventListener(elm.ownerDocument, ev);
|
|
16865
17487
|
} else {
|
|
16866
|
-
|
|
17488
|
+
const nextTarget = getNextEventTarget(elm, ev);
|
|
17489
|
+
triggerEventListener(nextTarget, ev);
|
|
17490
|
+
}
|
|
17491
|
+
}
|
|
17492
|
+
function getNextEventTarget(elm, ev) {
|
|
17493
|
+
if (elm.parentElement) {
|
|
17494
|
+
return elm.parentElement;
|
|
17495
|
+
}
|
|
17496
|
+
if (elm.host && ev.composed) {
|
|
17497
|
+
return elm.host;
|
|
17498
|
+
}
|
|
17499
|
+
if (ev.composed && elm.parentNode && elm.parentNode.host) {
|
|
17500
|
+
return elm.parentNode.host;
|
|
16867
17501
|
}
|
|
17502
|
+
return null;
|
|
16868
17503
|
}
|
|
16869
17504
|
function dispatchEvent(currentTarget, ev) {
|
|
16870
17505
|
ev.target = currentTarget;
|
|
@@ -26506,6 +27141,11 @@ function* streamToHtml(node, opts, output) {
|
|
|
26506
27141
|
const mode = ` shadowrootmode="open"`;
|
|
26507
27142
|
yield mode;
|
|
26508
27143
|
output.currentLineWidth += mode.length;
|
|
27144
|
+
if (node.delegatesFocus) {
|
|
27145
|
+
const delegatesFocusAttr = " shadowrootdelegatesfocus";
|
|
27146
|
+
yield delegatesFocusAttr;
|
|
27147
|
+
output.currentLineWidth += delegatesFocusAttr.length;
|
|
27148
|
+
}
|
|
26509
27149
|
}
|
|
26510
27150
|
const attrsLength = node.attributes.length;
|
|
26511
27151
|
const attributes = opts.prettyHtml && attrsLength > 1 ? cloneAttributes(node.attributes, true) : node.attributes;
|
|
@@ -26872,6 +27512,81 @@ var STRUCTURE_ELEMENTS = /* @__PURE__ */ new Set([
|
|
|
26872
27512
|
"style"
|
|
26873
27513
|
]);
|
|
26874
27514
|
|
|
27515
|
+
// src/mock-doc/token-list.ts
|
|
27516
|
+
var MockTokenList = class {
|
|
27517
|
+
constructor(elm, attr) {
|
|
27518
|
+
this.elm = elm;
|
|
27519
|
+
this.attr = attr;
|
|
27520
|
+
}
|
|
27521
|
+
add(...tokens) {
|
|
27522
|
+
const items = getItems(this.elm, this.attr);
|
|
27523
|
+
let updated = false;
|
|
27524
|
+
tokens.forEach((token) => {
|
|
27525
|
+
token = String(token);
|
|
27526
|
+
validateToken(token);
|
|
27527
|
+
if (items.includes(token) === false) {
|
|
27528
|
+
items.push(token);
|
|
27529
|
+
updated = true;
|
|
27530
|
+
}
|
|
27531
|
+
});
|
|
27532
|
+
if (updated) {
|
|
27533
|
+
this.elm.setAttributeNS(null, this.attr, items.join(" "));
|
|
27534
|
+
}
|
|
27535
|
+
}
|
|
27536
|
+
remove(...tokens) {
|
|
27537
|
+
const items = getItems(this.elm, this.attr);
|
|
27538
|
+
let updated = false;
|
|
27539
|
+
tokens.forEach((token) => {
|
|
27540
|
+
token = String(token);
|
|
27541
|
+
validateToken(token);
|
|
27542
|
+
const index = items.indexOf(token);
|
|
27543
|
+
if (index > -1) {
|
|
27544
|
+
items.splice(index, 1);
|
|
27545
|
+
updated = true;
|
|
27546
|
+
}
|
|
27547
|
+
});
|
|
27548
|
+
if (updated) {
|
|
27549
|
+
this.elm.setAttributeNS(null, this.attr, items.filter((c) => c.length > 0).join(" "));
|
|
27550
|
+
}
|
|
27551
|
+
}
|
|
27552
|
+
contains(token) {
|
|
27553
|
+
token = String(token);
|
|
27554
|
+
return getItems(this.elm, this.attr).includes(token);
|
|
27555
|
+
}
|
|
27556
|
+
toggle(token) {
|
|
27557
|
+
token = String(token);
|
|
27558
|
+
if (this.contains(token) === true) {
|
|
27559
|
+
this.remove(token);
|
|
27560
|
+
} else {
|
|
27561
|
+
this.add(token);
|
|
27562
|
+
}
|
|
27563
|
+
}
|
|
27564
|
+
get length() {
|
|
27565
|
+
return getItems(this.elm, this.attr).length;
|
|
27566
|
+
}
|
|
27567
|
+
item(index) {
|
|
27568
|
+
return getItems(this.elm, this.attr)[index];
|
|
27569
|
+
}
|
|
27570
|
+
toString() {
|
|
27571
|
+
return getItems(this.elm, this.attr).join(" ");
|
|
27572
|
+
}
|
|
27573
|
+
};
|
|
27574
|
+
function validateToken(token) {
|
|
27575
|
+
if (token === "") {
|
|
27576
|
+
throw new Error("The token provided must not be empty.");
|
|
27577
|
+
}
|
|
27578
|
+
if (/\s/.test(token)) {
|
|
27579
|
+
throw new Error(`The token provided ('${token}') contains HTML space characters, which are not valid in tokens.`);
|
|
27580
|
+
}
|
|
27581
|
+
}
|
|
27582
|
+
function getItems(elm, attr) {
|
|
27583
|
+
const value = elm.getAttribute(attr);
|
|
27584
|
+
if (typeof value === "string" && value.length > 0) {
|
|
27585
|
+
return value.trim().split(" ").filter((c) => c.length > 0);
|
|
27586
|
+
}
|
|
27587
|
+
return [];
|
|
27588
|
+
}
|
|
27589
|
+
|
|
26875
27590
|
// src/mock-doc/node.ts
|
|
26876
27591
|
var MockNode2 = class {
|
|
26877
27592
|
constructor(ownerDocument, nodeType, nodeName, nodeValue) {
|
|
@@ -27024,6 +27739,15 @@ var MockNode2 = class {
|
|
|
27024
27739
|
set textContent(value) {
|
|
27025
27740
|
this._nodeValue = String(value);
|
|
27026
27741
|
}
|
|
27742
|
+
addEventListener(type, handler) {
|
|
27743
|
+
addEventListener(this, type, handler);
|
|
27744
|
+
}
|
|
27745
|
+
removeEventListener(type, handler) {
|
|
27746
|
+
removeEventListener(this, type, handler);
|
|
27747
|
+
}
|
|
27748
|
+
dispatchEvent(ev) {
|
|
27749
|
+
return dispatchEvent(this, ev);
|
|
27750
|
+
}
|
|
27027
27751
|
};
|
|
27028
27752
|
MockNode2.ELEMENT_NODE = 1;
|
|
27029
27753
|
MockNode2.TEXT_NODE = 3;
|
|
@@ -27062,15 +27786,25 @@ var MockElement = class extends MockNode2 {
|
|
|
27062
27786
|
addEventListener(this, type, handler);
|
|
27063
27787
|
}
|
|
27064
27788
|
attachShadow(_opts) {
|
|
27789
|
+
var _a2;
|
|
27065
27790
|
const shadowRoot = this.ownerDocument.createDocumentFragment();
|
|
27791
|
+
shadowRoot.delegatesFocus = (_a2 = _opts.delegatesFocus) != null ? _a2 : false;
|
|
27066
27792
|
this.shadowRoot = shadowRoot;
|
|
27067
27793
|
return shadowRoot;
|
|
27068
27794
|
}
|
|
27069
27795
|
blur() {
|
|
27070
|
-
|
|
27071
|
-
|
|
27072
|
-
|
|
27073
|
-
);
|
|
27796
|
+
if (isCurrentlyDispatching(this, "blur")) {
|
|
27797
|
+
return;
|
|
27798
|
+
}
|
|
27799
|
+
markAsDispatching(this, "blur");
|
|
27800
|
+
try {
|
|
27801
|
+
dispatchEvent(
|
|
27802
|
+
this,
|
|
27803
|
+
new MockFocusEvent("blur", { relatedTarget: null, bubbles: true, cancelable: true, composed: true })
|
|
27804
|
+
);
|
|
27805
|
+
} finally {
|
|
27806
|
+
unmarkAsDispatching(this, "blur");
|
|
27807
|
+
}
|
|
27074
27808
|
}
|
|
27075
27809
|
get localName() {
|
|
27076
27810
|
if (!this.nodeName) {
|
|
@@ -27120,7 +27854,10 @@ var MockElement = class extends MockNode2 {
|
|
|
27120
27854
|
this.setAttributeNS(null, "class", value);
|
|
27121
27855
|
}
|
|
27122
27856
|
get classList() {
|
|
27123
|
-
return new
|
|
27857
|
+
return new MockTokenList(this, "class");
|
|
27858
|
+
}
|
|
27859
|
+
get part() {
|
|
27860
|
+
return new MockTokenList(this, "part");
|
|
27124
27861
|
}
|
|
27125
27862
|
click() {
|
|
27126
27863
|
dispatchEvent(this, new MockEvent("click", { bubbles: true, cancelable: true, composed: true }));
|
|
@@ -27812,6 +28549,28 @@ function setTextContent(elm, text) {
|
|
|
27812
28549
|
const textNode = new MockTextNode(elm.ownerDocument, text);
|
|
27813
28550
|
elm.appendChild(textNode);
|
|
27814
28551
|
}
|
|
28552
|
+
var currentlyDispatching = /* @__PURE__ */ new WeakMap();
|
|
28553
|
+
function isCurrentlyDispatching(target, eventType) {
|
|
28554
|
+
const dispatchingEvents = currentlyDispatching.get(target);
|
|
28555
|
+
return dispatchingEvents != null && dispatchingEvents.has(eventType);
|
|
28556
|
+
}
|
|
28557
|
+
function markAsDispatching(target, eventType) {
|
|
28558
|
+
let dispatchingEvents = currentlyDispatching.get(target);
|
|
28559
|
+
if (dispatchingEvents == null) {
|
|
28560
|
+
dispatchingEvents = /* @__PURE__ */ new Set();
|
|
28561
|
+
currentlyDispatching.set(target, dispatchingEvents);
|
|
28562
|
+
}
|
|
28563
|
+
dispatchingEvents.add(eventType);
|
|
28564
|
+
}
|
|
28565
|
+
function unmarkAsDispatching(target, eventType) {
|
|
28566
|
+
const dispatchingEvents = currentlyDispatching.get(target);
|
|
28567
|
+
if (dispatchingEvents != null) {
|
|
28568
|
+
dispatchingEvents.delete(eventType);
|
|
28569
|
+
if (dispatchingEvents.size === 0) {
|
|
28570
|
+
currentlyDispatching.delete(target);
|
|
28571
|
+
}
|
|
28572
|
+
}
|
|
28573
|
+
}
|
|
27815
28574
|
|
|
27816
28575
|
// src/mock-doc/comment-node.ts
|
|
27817
28576
|
var MockComment = class _MockComment extends MockNode2 {
|
|
@@ -27839,6 +28598,12 @@ var MockDocumentFragment = class _MockDocumentFragment extends MockHTMLElement {
|
|
|
27839
28598
|
getElementById(id) {
|
|
27840
28599
|
return getElementById(this, id);
|
|
27841
28600
|
}
|
|
28601
|
+
get adoptedStyleSheets() {
|
|
28602
|
+
return [];
|
|
28603
|
+
}
|
|
28604
|
+
set adoptedStyleSheets(_adoptedStyleSheets) {
|
|
28605
|
+
throw new Error("Unimplemented");
|
|
28606
|
+
}
|
|
27842
28607
|
cloneNode(deep) {
|
|
27843
28608
|
const cloned = new _MockDocumentFragment(null);
|
|
27844
28609
|
if (deep) {
|
|
@@ -27887,7 +28652,9 @@ var MockCSSStyleSheet = class {
|
|
|
27887
28652
|
deleteRule(index) {
|
|
27888
28653
|
if (index >= 0 && index < this.cssRules.length) {
|
|
27889
28654
|
this.cssRules.splice(index, 1);
|
|
27890
|
-
|
|
28655
|
+
if (this.ownerNode) {
|
|
28656
|
+
updateStyleTextNode(this.ownerNode);
|
|
28657
|
+
}
|
|
27891
28658
|
}
|
|
27892
28659
|
}
|
|
27893
28660
|
insertRule(rule, index = 0) {
|
|
@@ -27903,9 +28670,23 @@ var MockCSSStyleSheet = class {
|
|
|
27903
28670
|
const cssRule = new MockCSSRule(this);
|
|
27904
28671
|
cssRule.cssText = rule;
|
|
27905
28672
|
this.cssRules.splice(index, 0, cssRule);
|
|
27906
|
-
|
|
28673
|
+
if (this.ownerNode) {
|
|
28674
|
+
updateStyleTextNode(this.ownerNode);
|
|
28675
|
+
}
|
|
27907
28676
|
return index;
|
|
27908
28677
|
}
|
|
28678
|
+
replaceSync(cssText) {
|
|
28679
|
+
this.cssRules = [];
|
|
28680
|
+
const rules = cssText.split("}").map((rule) => rule.trim()).filter(Boolean).map((rule) => rule + "}");
|
|
28681
|
+
for (const rule of rules) {
|
|
28682
|
+
const cssRule = new MockCSSRule(this);
|
|
28683
|
+
cssRule.cssText = rule;
|
|
28684
|
+
this.cssRules.push(cssRule);
|
|
28685
|
+
}
|
|
28686
|
+
if (this.ownerNode) {
|
|
28687
|
+
updateStyleTextNode(this.ownerNode);
|
|
28688
|
+
}
|
|
28689
|
+
}
|
|
27909
28690
|
};
|
|
27910
28691
|
function getStyleElementText(styleElm) {
|
|
27911
28692
|
const output = [];
|
|
@@ -28944,9 +29725,11 @@ var WINDOW_PROPS = [
|
|
|
28944
29725
|
"NodeList",
|
|
28945
29726
|
"FocusEvent",
|
|
28946
29727
|
"KeyboardEvent",
|
|
28947
|
-
"MouseEvent"
|
|
29728
|
+
"MouseEvent",
|
|
29729
|
+
"CSSStyleSheet"
|
|
28948
29730
|
];
|
|
28949
29731
|
var GLOBAL_CONSTRUCTORS = [
|
|
29732
|
+
["CSSStyleSheet", MockCSSStyleSheet],
|
|
28950
29733
|
["CustomEvent", MockCustomEvent],
|
|
28951
29734
|
["DocumentFragment", MockDocumentFragment],
|
|
28952
29735
|
["DOMParser", MockDOMParser],
|
|
@@ -29154,12 +29937,6 @@ var MockShadowRoot = class extends MockDocumentFragment {
|
|
|
29154
29937
|
get activeElement() {
|
|
29155
29938
|
return null;
|
|
29156
29939
|
}
|
|
29157
|
-
set adoptedStyleSheets(_adoptedStyleSheets) {
|
|
29158
|
-
throw new Error("Unimplemented");
|
|
29159
|
-
}
|
|
29160
|
-
get adoptedStyleSheets() {
|
|
29161
|
-
return [];
|
|
29162
|
-
}
|
|
29163
29940
|
get cloneable() {
|
|
29164
29941
|
return false;
|
|
29165
29942
|
}
|
|
@@ -29963,7 +30740,7 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
29963
30740
|
}
|
|
29964
30741
|
set location(val) {
|
|
29965
30742
|
if (this.defaultView != null) {
|
|
29966
|
-
this.defaultView.location = val;
|
|
30743
|
+
this.defaultView.location.href = val;
|
|
29967
30744
|
}
|
|
29968
30745
|
}
|
|
29969
30746
|
get baseURI() {
|
|
@@ -30213,6 +30990,32 @@ var Build = {
|
|
|
30213
30990
|
isServer: false,
|
|
30214
30991
|
isTesting: BUILD.isTesting ? true : false
|
|
30215
30992
|
};
|
|
30993
|
+
|
|
30994
|
+
// src/utils/constants.ts
|
|
30995
|
+
var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
|
|
30996
|
+
PrimitiveType2["Undefined"] = "undefined";
|
|
30997
|
+
PrimitiveType2["Null"] = "null";
|
|
30998
|
+
PrimitiveType2["String"] = "string";
|
|
30999
|
+
PrimitiveType2["Number"] = "number";
|
|
31000
|
+
PrimitiveType2["SpecialNumber"] = "number";
|
|
31001
|
+
PrimitiveType2["Boolean"] = "boolean";
|
|
31002
|
+
PrimitiveType2["BigInt"] = "bigint";
|
|
31003
|
+
return PrimitiveType2;
|
|
31004
|
+
})(PrimitiveType || {});
|
|
31005
|
+
var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
31006
|
+
NonPrimitiveType2["Array"] = "array";
|
|
31007
|
+
NonPrimitiveType2["Date"] = "date";
|
|
31008
|
+
NonPrimitiveType2["Map"] = "map";
|
|
31009
|
+
NonPrimitiveType2["Object"] = "object";
|
|
31010
|
+
NonPrimitiveType2["RegularExpression"] = "regexp";
|
|
31011
|
+
NonPrimitiveType2["Set"] = "set";
|
|
31012
|
+
NonPrimitiveType2["Channel"] = "channel";
|
|
31013
|
+
NonPrimitiveType2["Symbol"] = "symbol";
|
|
31014
|
+
return NonPrimitiveType2;
|
|
31015
|
+
})(NonPrimitiveType || {});
|
|
31016
|
+
var TYPE_CONSTANT = "type";
|
|
31017
|
+
var VALUE_CONSTANT = "value";
|
|
31018
|
+
var SERIALIZED_PREFIX = "serialized:";
|
|
30216
31019
|
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
30217
31020
|
"%cstencil",
|
|
30218
31021
|
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
@@ -30233,6 +31036,232 @@ var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */
|
|
|
30233
31036
|
// src/utils/helpers.ts
|
|
30234
31037
|
var isString = (v) => typeof v === "string";
|
|
30235
31038
|
|
|
31039
|
+
// src/utils/local-value.ts
|
|
31040
|
+
var LocalValue = class _LocalValue {
|
|
31041
|
+
constructor(type, value) {
|
|
31042
|
+
if (type === "undefined" /* Undefined */ || type === "null" /* Null */) {
|
|
31043
|
+
this.type = type;
|
|
31044
|
+
} else {
|
|
31045
|
+
this.type = type;
|
|
31046
|
+
this.value = value;
|
|
31047
|
+
}
|
|
31048
|
+
}
|
|
31049
|
+
/**
|
|
31050
|
+
* Creates a new LocalValue object with a string value.
|
|
31051
|
+
*
|
|
31052
|
+
* @param {string} value - The string value to be stored in the LocalValue object.
|
|
31053
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31054
|
+
*/
|
|
31055
|
+
static createStringValue(value) {
|
|
31056
|
+
return new _LocalValue("string" /* String */, value);
|
|
31057
|
+
}
|
|
31058
|
+
/**
|
|
31059
|
+
* Creates a new LocalValue object with a number value.
|
|
31060
|
+
*
|
|
31061
|
+
* @param {number} value - The number value.
|
|
31062
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31063
|
+
*/
|
|
31064
|
+
static createNumberValue(value) {
|
|
31065
|
+
return new _LocalValue("number" /* Number */, value);
|
|
31066
|
+
}
|
|
31067
|
+
/**
|
|
31068
|
+
* Creates a new LocalValue object with a special number value.
|
|
31069
|
+
*
|
|
31070
|
+
* @param {number} value - The value of the special number.
|
|
31071
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31072
|
+
*/
|
|
31073
|
+
static createSpecialNumberValue(value) {
|
|
31074
|
+
if (Number.isNaN(value)) {
|
|
31075
|
+
return new _LocalValue("number" /* SpecialNumber */, "NaN");
|
|
31076
|
+
}
|
|
31077
|
+
if (Object.is(value, -0)) {
|
|
31078
|
+
return new _LocalValue("number" /* SpecialNumber */, "-0");
|
|
31079
|
+
}
|
|
31080
|
+
if (value === Infinity) {
|
|
31081
|
+
return new _LocalValue("number" /* SpecialNumber */, "Infinity");
|
|
31082
|
+
}
|
|
31083
|
+
if (value === -Infinity) {
|
|
31084
|
+
return new _LocalValue("number" /* SpecialNumber */, "-Infinity");
|
|
31085
|
+
}
|
|
31086
|
+
return new _LocalValue("number" /* SpecialNumber */, value);
|
|
31087
|
+
}
|
|
31088
|
+
/**
|
|
31089
|
+
* Creates a new LocalValue object with an undefined value.
|
|
31090
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31091
|
+
*/
|
|
31092
|
+
static createUndefinedValue() {
|
|
31093
|
+
return new _LocalValue("undefined" /* Undefined */);
|
|
31094
|
+
}
|
|
31095
|
+
/**
|
|
31096
|
+
* Creates a new LocalValue object with a null value.
|
|
31097
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31098
|
+
*/
|
|
31099
|
+
static createNullValue() {
|
|
31100
|
+
return new _LocalValue("null" /* Null */);
|
|
31101
|
+
}
|
|
31102
|
+
/**
|
|
31103
|
+
* Creates a new LocalValue object with a boolean value.
|
|
31104
|
+
*
|
|
31105
|
+
* @param {boolean} value - The boolean value.
|
|
31106
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31107
|
+
*/
|
|
31108
|
+
static createBooleanValue(value) {
|
|
31109
|
+
return new _LocalValue("boolean" /* Boolean */, value);
|
|
31110
|
+
}
|
|
31111
|
+
/**
|
|
31112
|
+
* Creates a new LocalValue object with a BigInt value.
|
|
31113
|
+
*
|
|
31114
|
+
* @param {BigInt} value - The BigInt value.
|
|
31115
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31116
|
+
*/
|
|
31117
|
+
static createBigIntValue(value) {
|
|
31118
|
+
return new _LocalValue("bigint" /* BigInt */, value.toString());
|
|
31119
|
+
}
|
|
31120
|
+
/**
|
|
31121
|
+
* Creates a new LocalValue object with an array.
|
|
31122
|
+
*
|
|
31123
|
+
* @param {Array} value - The array.
|
|
31124
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31125
|
+
*/
|
|
31126
|
+
static createArrayValue(value) {
|
|
31127
|
+
return new _LocalValue("array" /* Array */, value);
|
|
31128
|
+
}
|
|
31129
|
+
/**
|
|
31130
|
+
* Creates a new LocalValue object with date value.
|
|
31131
|
+
*
|
|
31132
|
+
* @param {string} value - The date.
|
|
31133
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31134
|
+
*/
|
|
31135
|
+
static createDateValue(value) {
|
|
31136
|
+
return new _LocalValue("date" /* Date */, value);
|
|
31137
|
+
}
|
|
31138
|
+
/**
|
|
31139
|
+
* Creates a new LocalValue object of map value.
|
|
31140
|
+
* @param {Map} map - The map.
|
|
31141
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31142
|
+
*/
|
|
31143
|
+
static createMapValue(map2) {
|
|
31144
|
+
const value = [];
|
|
31145
|
+
Array.from(map2.entries()).forEach(([key, val]) => {
|
|
31146
|
+
value.push([_LocalValue.getArgument(key), _LocalValue.getArgument(val)]);
|
|
31147
|
+
});
|
|
31148
|
+
return new _LocalValue("map" /* Map */, value);
|
|
31149
|
+
}
|
|
31150
|
+
/**
|
|
31151
|
+
* Creates a new LocalValue object from the passed object.
|
|
31152
|
+
*
|
|
31153
|
+
* @param object the object to create a LocalValue from
|
|
31154
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31155
|
+
*/
|
|
31156
|
+
static createObjectValue(object) {
|
|
31157
|
+
const value = [];
|
|
31158
|
+
Object.entries(object).forEach(([key, val]) => {
|
|
31159
|
+
value.push([key, _LocalValue.getArgument(val)]);
|
|
31160
|
+
});
|
|
31161
|
+
return new _LocalValue("object" /* Object */, value);
|
|
31162
|
+
}
|
|
31163
|
+
/**
|
|
31164
|
+
* Creates a new LocalValue object of regular expression value.
|
|
31165
|
+
*
|
|
31166
|
+
* @param {string} value - The value of the regular expression.
|
|
31167
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31168
|
+
*/
|
|
31169
|
+
static createRegularExpressionValue(value) {
|
|
31170
|
+
return new _LocalValue("regexp" /* RegularExpression */, value);
|
|
31171
|
+
}
|
|
31172
|
+
/**
|
|
31173
|
+
* Creates a new LocalValue object with the specified value.
|
|
31174
|
+
* @param {Set} value - The value to be set.
|
|
31175
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31176
|
+
*/
|
|
31177
|
+
static createSetValue(value) {
|
|
31178
|
+
return new _LocalValue("set" /* Set */, value);
|
|
31179
|
+
}
|
|
31180
|
+
/**
|
|
31181
|
+
* Creates a new LocalValue object with the given channel value
|
|
31182
|
+
*
|
|
31183
|
+
* @param {ChannelValue} value - The channel value.
|
|
31184
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
31185
|
+
*/
|
|
31186
|
+
static createChannelValue(value) {
|
|
31187
|
+
return new _LocalValue("channel" /* Channel */, value);
|
|
31188
|
+
}
|
|
31189
|
+
/**
|
|
31190
|
+
* Creates a new LocalValue object with a Symbol value.
|
|
31191
|
+
*
|
|
31192
|
+
* @param {Symbol} symbol - The Symbol value
|
|
31193
|
+
* @returns {LocalValue} - The created LocalValue object
|
|
31194
|
+
*/
|
|
31195
|
+
static createSymbolValue(symbol) {
|
|
31196
|
+
const description = symbol.description || "Symbol()";
|
|
31197
|
+
return new _LocalValue("symbol" /* Symbol */, description);
|
|
31198
|
+
}
|
|
31199
|
+
static getArgument(argument) {
|
|
31200
|
+
const type = typeof argument;
|
|
31201
|
+
switch (type) {
|
|
31202
|
+
case "string" /* String */:
|
|
31203
|
+
return _LocalValue.createStringValue(argument);
|
|
31204
|
+
case "number" /* Number */:
|
|
31205
|
+
if (Number.isNaN(argument) || Object.is(argument, -0) || !Number.isFinite(argument)) {
|
|
31206
|
+
return _LocalValue.createSpecialNumberValue(argument);
|
|
31207
|
+
}
|
|
31208
|
+
return _LocalValue.createNumberValue(argument);
|
|
31209
|
+
case "boolean" /* Boolean */:
|
|
31210
|
+
return _LocalValue.createBooleanValue(argument);
|
|
31211
|
+
case "bigint" /* BigInt */:
|
|
31212
|
+
return _LocalValue.createBigIntValue(argument);
|
|
31213
|
+
case "undefined" /* Undefined */:
|
|
31214
|
+
return _LocalValue.createUndefinedValue();
|
|
31215
|
+
case "symbol" /* Symbol */:
|
|
31216
|
+
return _LocalValue.createSymbolValue(argument);
|
|
31217
|
+
case "object" /* Object */:
|
|
31218
|
+
if (argument === null) {
|
|
31219
|
+
return _LocalValue.createNullValue();
|
|
31220
|
+
}
|
|
31221
|
+
if (argument instanceof Date) {
|
|
31222
|
+
return _LocalValue.createDateValue(argument);
|
|
31223
|
+
}
|
|
31224
|
+
if (argument instanceof Map) {
|
|
31225
|
+
const map2 = [];
|
|
31226
|
+
argument.forEach((value, key) => {
|
|
31227
|
+
const objectKey = typeof key === "string" ? key : _LocalValue.getArgument(key);
|
|
31228
|
+
const objectValue = _LocalValue.getArgument(value);
|
|
31229
|
+
map2.push([objectKey, objectValue]);
|
|
31230
|
+
});
|
|
31231
|
+
return _LocalValue.createMapValue(argument);
|
|
31232
|
+
}
|
|
31233
|
+
if (argument instanceof Set) {
|
|
31234
|
+
const set = [];
|
|
31235
|
+
argument.forEach((value) => {
|
|
31236
|
+
set.push(_LocalValue.getArgument(value));
|
|
31237
|
+
});
|
|
31238
|
+
return _LocalValue.createSetValue(set);
|
|
31239
|
+
}
|
|
31240
|
+
if (argument instanceof Array) {
|
|
31241
|
+
const arr = [];
|
|
31242
|
+
argument.forEach((value) => {
|
|
31243
|
+
arr.push(_LocalValue.getArgument(value));
|
|
31244
|
+
});
|
|
31245
|
+
return _LocalValue.createArrayValue(arr);
|
|
31246
|
+
}
|
|
31247
|
+
if (argument instanceof RegExp) {
|
|
31248
|
+
return _LocalValue.createRegularExpressionValue({
|
|
31249
|
+
pattern: argument.source,
|
|
31250
|
+
flags: argument.flags
|
|
31251
|
+
});
|
|
31252
|
+
}
|
|
31253
|
+
return _LocalValue.createObjectValue(argument);
|
|
31254
|
+
}
|
|
31255
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
31256
|
+
}
|
|
31257
|
+
asMap() {
|
|
31258
|
+
return {
|
|
31259
|
+
[TYPE_CONSTANT]: this.type,
|
|
31260
|
+
...!(this.type === "null" /* Null */ || this.type === "undefined" /* Undefined */) ? { [VALUE_CONSTANT]: this.value } : {}
|
|
31261
|
+
};
|
|
31262
|
+
}
|
|
31263
|
+
};
|
|
31264
|
+
|
|
30236
31265
|
// src/utils/message-utils.ts
|
|
30237
31266
|
var catchError = (diagnostics, err2, msg) => {
|
|
30238
31267
|
const diagnostic = {
|
|
@@ -30271,6 +31300,106 @@ var shouldIgnoreError = (msg) => {
|
|
|
30271
31300
|
};
|
|
30272
31301
|
var TASK_CANCELED_MSG = `task canceled`;
|
|
30273
31302
|
|
|
31303
|
+
// src/utils/regular-expression.ts
|
|
31304
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
31305
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
31306
|
+
};
|
|
31307
|
+
|
|
31308
|
+
// src/utils/remote-value.ts
|
|
31309
|
+
var RemoteValue = class _RemoteValue {
|
|
31310
|
+
/**
|
|
31311
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
31312
|
+
*
|
|
31313
|
+
* @param serialized The serialized LocalValue object
|
|
31314
|
+
* @returns The original JavaScript value/object
|
|
31315
|
+
*/
|
|
31316
|
+
static fromLocalValue(serialized) {
|
|
31317
|
+
const type = serialized[TYPE_CONSTANT];
|
|
31318
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
31319
|
+
switch (type) {
|
|
31320
|
+
case "string" /* String */:
|
|
31321
|
+
return value;
|
|
31322
|
+
case "boolean" /* Boolean */:
|
|
31323
|
+
return value;
|
|
31324
|
+
case "bigint" /* BigInt */:
|
|
31325
|
+
return BigInt(value);
|
|
31326
|
+
case "undefined" /* Undefined */:
|
|
31327
|
+
return void 0;
|
|
31328
|
+
case "null" /* Null */:
|
|
31329
|
+
return null;
|
|
31330
|
+
case "number" /* Number */:
|
|
31331
|
+
if (value === "NaN") return NaN;
|
|
31332
|
+
if (value === "-0") return -0;
|
|
31333
|
+
if (value === "Infinity") return Infinity;
|
|
31334
|
+
if (value === "-Infinity") return -Infinity;
|
|
31335
|
+
return value;
|
|
31336
|
+
case "array" /* Array */:
|
|
31337
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
31338
|
+
case "date" /* Date */:
|
|
31339
|
+
return new Date(value);
|
|
31340
|
+
case "map" /* Map */:
|
|
31341
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
31342
|
+
for (const [key, val] of value) {
|
|
31343
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
31344
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
31345
|
+
map2.set(deserializedKey, deserializedValue);
|
|
31346
|
+
}
|
|
31347
|
+
return map2;
|
|
31348
|
+
case "object" /* Object */:
|
|
31349
|
+
const obj = {};
|
|
31350
|
+
for (const [key, val] of value) {
|
|
31351
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
31352
|
+
}
|
|
31353
|
+
return obj;
|
|
31354
|
+
case "regexp" /* RegularExpression */:
|
|
31355
|
+
const { pattern, flags } = value;
|
|
31356
|
+
return new RegExp(pattern, flags);
|
|
31357
|
+
case "set" /* Set */:
|
|
31358
|
+
const set = /* @__PURE__ */ new Set();
|
|
31359
|
+
for (const item of value) {
|
|
31360
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
31361
|
+
}
|
|
31362
|
+
return set;
|
|
31363
|
+
case "symbol" /* Symbol */:
|
|
31364
|
+
return Symbol(value);
|
|
31365
|
+
default:
|
|
31366
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
31367
|
+
}
|
|
31368
|
+
}
|
|
31369
|
+
/**
|
|
31370
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
31371
|
+
*
|
|
31372
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
31373
|
+
* @returns Array of deserialized JavaScript values
|
|
31374
|
+
*/
|
|
31375
|
+
static fromLocalValueArray(serializedValues) {
|
|
31376
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
31377
|
+
}
|
|
31378
|
+
/**
|
|
31379
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
31380
|
+
*
|
|
31381
|
+
* @param obj Object to verify
|
|
31382
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
31383
|
+
*/
|
|
31384
|
+
static isLocalValueObject(obj) {
|
|
31385
|
+
if (typeof obj !== "object" || obj === null) {
|
|
31386
|
+
return false;
|
|
31387
|
+
}
|
|
31388
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
31389
|
+
return false;
|
|
31390
|
+
}
|
|
31391
|
+
const type = obj[TYPE_CONSTANT];
|
|
31392
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
31393
|
+
if (!hasTypeProperty) {
|
|
31394
|
+
return false;
|
|
31395
|
+
}
|
|
31396
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
31397
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
31398
|
+
}
|
|
31399
|
+
return true;
|
|
31400
|
+
}
|
|
31401
|
+
};
|
|
31402
|
+
|
|
30274
31403
|
// src/utils/result.ts
|
|
30275
31404
|
var result_exports = {};
|
|
30276
31405
|
__export(result_exports, {
|
|
@@ -30320,6 +31449,21 @@ var unwrapErr = (result) => {
|
|
|
30320
31449
|
}
|
|
30321
31450
|
};
|
|
30322
31451
|
|
|
31452
|
+
// src/utils/serialize.ts
|
|
31453
|
+
function serializeProperty(value) {
|
|
31454
|
+
if (["string", "boolean", "undefined"].includes(typeof value) || typeof value === "number" && value !== Infinity && value !== -Infinity && !isNaN(value)) {
|
|
31455
|
+
return value;
|
|
31456
|
+
}
|
|
31457
|
+
const arg = LocalValue.getArgument(value);
|
|
31458
|
+
return SERIALIZED_PREFIX + btoa(JSON.stringify(arg));
|
|
31459
|
+
}
|
|
31460
|
+
function deserializeProperty(value) {
|
|
31461
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
31462
|
+
return value;
|
|
31463
|
+
}
|
|
31464
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
31465
|
+
}
|
|
31466
|
+
|
|
30323
31467
|
// src/utils/util.ts
|
|
30324
31468
|
var lowerPathParam = (fn) => (p) => fn(p.toLowerCase());
|
|
30325
31469
|
var isDtsFile = lowerPathParam((p) => p.endsWith(".d.ts") || p.endsWith(".d.mts") || p.endsWith(".d.cts"));
|
|
@@ -30354,7 +31498,15 @@ var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
|
30354
31498
|
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
30355
31499
|
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
30356
31500
|
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
30357
|
-
var createSupportsRuleRe = (selector) =>
|
|
31501
|
+
var createSupportsRuleRe = (selector) => {
|
|
31502
|
+
const safeSelector = escapeRegExpSpecialCharacters(selector);
|
|
31503
|
+
return new RegExp(
|
|
31504
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
31505
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
31506
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector}))(${safeSelector}\\b)`,
|
|
31507
|
+
"g"
|
|
31508
|
+
);
|
|
31509
|
+
};
|
|
30358
31510
|
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
30359
31511
|
var _colonHostRe = createSupportsRuleRe(":host");
|
|
30360
31512
|
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
@@ -30363,6 +31515,9 @@ var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
|
30363
31515
|
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
30364
31516
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
30365
31517
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
31518
|
+
var baseClass = BUILD.lazyLoad ? class {
|
|
31519
|
+
} : globalThis.HTMLElement || class {
|
|
31520
|
+
};
|
|
30366
31521
|
|
|
30367
31522
|
// src/compiler/html/canonical-link.ts
|
|
30368
31523
|
var updateCanonicalLink = (doc, href) => {
|
|
@@ -31553,6 +32708,7 @@ function renderToString(html, options, asStream) {
|
|
|
31553
32708
|
}
|
|
31554
32709
|
function hydrateDocument(doc, options, asStream) {
|
|
31555
32710
|
const opts = normalizeHydrateOptions(options);
|
|
32711
|
+
opts.serializeShadowRoot = typeof opts.serializeShadowRoot === "undefined" ? "declarative-shadow-dom" : opts.serializeShadowRoot;
|
|
31556
32712
|
let win2 = null;
|
|
31557
32713
|
const results = generateHydrateResults(opts);
|
|
31558
32714
|
if (hasError(results.diagnostics)) {
|
|
@@ -31564,7 +32720,7 @@ function hydrateDocument(doc, options, asStream) {
|
|
|
31564
32720
|
opts.destroyDocument = true;
|
|
31565
32721
|
win2 = new MockWindow(doc);
|
|
31566
32722
|
if (!asStream) {
|
|
31567
|
-
return
|
|
32723
|
+
return render2(win2, opts, results).then(() => results);
|
|
31568
32724
|
}
|
|
31569
32725
|
return renderStream(win2, opts, results);
|
|
31570
32726
|
} catch (e) {
|
|
@@ -31581,7 +32737,7 @@ function hydrateDocument(doc, options, asStream) {
|
|
|
31581
32737
|
opts.destroyDocument = false;
|
|
31582
32738
|
win2 = patchDomImplementation(doc, opts);
|
|
31583
32739
|
if (!asStream) {
|
|
31584
|
-
return
|
|
32740
|
+
return render2(win2, opts, results).then(() => results);
|
|
31585
32741
|
}
|
|
31586
32742
|
return renderStream(win2, opts, results);
|
|
31587
32743
|
} catch (e) {
|
|
@@ -31596,7 +32752,7 @@ function hydrateDocument(doc, options, asStream) {
|
|
|
31596
32752
|
renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`);
|
|
31597
32753
|
return Promise.resolve(results);
|
|
31598
32754
|
}
|
|
31599
|
-
async function
|
|
32755
|
+
async function render2(win2, opts, results) {
|
|
31600
32756
|
if ("process" in globalThis && typeof process.on === "function" && !process.__stencilErrors) {
|
|
31601
32757
|
process.__stencilErrors = true;
|
|
31602
32758
|
process.on("unhandledRejection", (e) => {
|
|
@@ -31621,7 +32777,7 @@ async function render(win2, opts, results) {
|
|
|
31621
32777
|
}
|
|
31622
32778
|
function renderStream(win2, opts, results) {
|
|
31623
32779
|
async function* processRender() {
|
|
31624
|
-
const renderResult = await
|
|
32780
|
+
const renderResult = await render2(win2, opts, results);
|
|
31625
32781
|
yield renderResult.html;
|
|
31626
32782
|
}
|
|
31627
32783
|
return stream.Readable.from(processRender());
|
|
@@ -31657,6 +32813,16 @@ function finalizeHydrate(win2, doc, opts, results) {
|
|
|
31657
32813
|
if (opts.removeScripts) {
|
|
31658
32814
|
removeScripts(doc.documentElement);
|
|
31659
32815
|
}
|
|
32816
|
+
const styles2 = doc.querySelectorAll("head style");
|
|
32817
|
+
if (styles2.length > 0) {
|
|
32818
|
+
results.styles.push(
|
|
32819
|
+
...Array.from(styles2).map((style) => ({
|
|
32820
|
+
href: style.getAttribute("href"),
|
|
32821
|
+
id: style.getAttribute(HYDRATED_STYLE_ID),
|
|
32822
|
+
content: style.textContent
|
|
32823
|
+
}))
|
|
32824
|
+
);
|
|
32825
|
+
}
|
|
31660
32826
|
try {
|
|
31661
32827
|
updateCanonicalLink(doc, opts.canonicalUrl);
|
|
31662
32828
|
} catch (e) {
|
|
@@ -31735,7 +32901,9 @@ function removeScripts(elm) {
|
|
|
31735
32901
|
}
|
|
31736
32902
|
|
|
31737
32903
|
exports.createWindowFromHtml = createWindowFromHtml;
|
|
32904
|
+
exports.deserializeProperty = deserializeProperty;
|
|
31738
32905
|
exports.hydrateDocument = hydrateDocument;
|
|
31739
32906
|
exports.renderToString = renderToString;
|
|
31740
32907
|
exports.serializeDocumentToString = serializeDocumentToString;
|
|
32908
|
+
exports.serializeProperty = serializeProperty;
|
|
31741
32909
|
exports.streamToString = streamToString;
|