@pine-ds/core 1.1.0 → 1.3.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/closest.js +11 -0
- package/components/closest.js.map +1 -0
- package/components/index.d.ts +2 -0
- package/components/index.js +1 -0
- package/components/index.js.map +1 -1
- package/components/index2.js +1 -1
- package/components/index2.js.map +1 -1
- package/components/pds-avatar.js +2 -2
- package/components/pds-avatar.js.map +1 -1
- package/components/pds-checkbox2.js +21 -6
- package/components/pds-checkbox2.js.map +1 -1
- package/components/pds-icon2.js +18 -7
- package/components/pds-icon2.js.map +1 -1
- package/components/pds-loader.d.ts +11 -0
- package/components/pds-loader.js +68 -0
- package/components/pds-loader.js.map +1 -0
- package/components/pds-progress.js +1 -1
- package/components/pds-radio.js +3 -3
- package/components/pds-row.js +1 -1
- package/components/pds-sortable-item.js +1 -1
- package/components/pds-sortable.js +1 -1
- package/components/pds-switch.js +3 -3
- package/components/pds-tab.js +3 -3
- package/components/pds-table-body.js +1 -1
- package/components/pds-table-cell2.js +2 -2
- package/components/pds-table-cell2.js.map +1 -1
- package/components/pds-table-head-cell2.js +5 -3
- package/components/pds-table-head-cell2.js.map +1 -1
- package/components/pds-table-head.js +38 -4
- package/components/pds-table-head.js.map +1 -1
- package/components/pds-table-row.js +23 -6
- package/components/pds-table-row.js.map +1 -1
- package/components/pds-table.js +28 -4
- package/components/pds-table.js.map +1 -1
- package/components/pds-tabpanel.js +1 -1
- package/components/pds-tabs.js +1 -1
- package/components/pds-textarea.js +4 -4
- package/components/pds-tooltip.js +2 -2
- package/dist/cjs/closest-b45138d3.js +13 -0
- package/dist/cjs/closest-b45138d3.js.map +1 -0
- package/dist/cjs/{index-33465846.js → index-dd191bbe.js} +2 -2
- package/dist/cjs/index-dd191bbe.js.map +1 -0
- package/dist/cjs/{index-7d9c71f6.js → index-ed42e2ee.js} +34 -4
- package/dist/cjs/index-ed42e2ee.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/pds-accordion.cjs.entry.js +2 -2
- package/dist/cjs/pds-avatar.cjs.entry.js +4 -4
- package/dist/cjs/pds-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-box.cjs.entry.js +1 -1
- package/dist/cjs/pds-button.cjs.entry.js +2 -2
- package/dist/cjs/pds-checkbox.cjs.entry.js +75 -0
- package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-chip.cjs.entry.js +2 -2
- package/dist/cjs/pds-copytext.cjs.entry.js +2 -2
- package/dist/cjs/pds-divider.cjs.entry.js +1 -1
- package/dist/cjs/pds-icon.cjs.entry.js +17 -8
- package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-image.cjs.entry.js +1 -1
- package/dist/cjs/pds-input.cjs.entry.js +2 -2
- package/dist/cjs/{pds-label-5ebae56e.js → pds-label-15dd83ef.js} +2 -2
- package/dist/cjs/{pds-label-5ebae56e.js.map → pds-label-15dd83ef.js.map} +1 -1
- package/dist/cjs/pds-link.cjs.entry.js +2 -2
- package/dist/cjs/pds-loader.cjs.entry.js +49 -0
- package/dist/cjs/pds-loader.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-progress.cjs.entry.js +2 -2
- package/dist/cjs/pds-radio.cjs.entry.js +5 -5
- package/dist/cjs/pds-row.cjs.entry.js +2 -2
- package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -3
- package/dist/cjs/pds-sortable.cjs.entry.js +2 -2
- package/dist/cjs/pds-switch.cjs.entry.js +5 -5
- package/dist/cjs/pds-tab.cjs.entry.js +4 -4
- package/dist/cjs/pds-table-body.cjs.entry.js +2 -2
- package/dist/cjs/pds-table-cell.cjs.entry.js +58 -0
- package/dist/cjs/pds-table-cell.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +5 -4
- package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-head.cjs.entry.js +27 -2
- package/dist/cjs/pds-table-head.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-row.cjs.entry.js +22 -6
- package/dist/cjs/pds-table-row.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table.cjs.entry.js +27 -3
- package/dist/cjs/pds-table.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -2
- package/dist/cjs/pds-tabs.cjs.entry.js +2 -2
- package/dist/cjs/pds-textarea.cjs.entry.js +6 -6
- package/dist/cjs/pds-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/pine-core.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/pds-avatar/pds-avatar.js +2 -2
- package/dist/collection/components/pds-avatar/pds-avatar.js.map +1 -1
- package/dist/collection/components/pds-checkbox/pds-checkbox.css +15 -1
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +44 -7
- package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -1
- package/dist/collection/components/pds-loader/pds-loader.css +93 -0
- package/dist/collection/components/pds-loader/pds-loader.js +127 -0
- package/dist/collection/components/pds-loader/pds-loader.js.map +1 -0
- package/dist/collection/components/pds-loader/stories/pds-loader.stories.js +36 -0
- package/dist/collection/components/pds-progress/pds-progress.js +1 -1
- package/dist/collection/components/pds-radio/pds-radio.js +3 -3
- package/dist/collection/components/pds-row/pds-row.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
- package/dist/collection/components/pds-switch/pds-switch.js +3 -3
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js.map +1 -1
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +83 -1
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js.map +1 -1
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +5 -3
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js.map +1 -1
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +56 -7
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js.map +1 -1
- package/dist/collection/components/pds-table/pds-table.css +6 -0
- package/dist/collection/components/pds-table/pds-table.js +68 -1
- package/dist/collection/components/pds-table/pds-table.js.map +1 -1
- package/dist/collection/components/pds-table/stories/pds-table.stories.js +1 -1
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
- package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
- package/dist/collection/components/pds-textarea/pds-textarea.js +4 -4
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
- package/dist/collection/utils/closest.js +8 -0
- package/dist/collection/utils/closest.js.map +1 -0
- package/dist/docs.json +299 -9
- package/dist/esm/closest-d2d192be.js +11 -0
- package/dist/esm/closest-d2d192be.js.map +1 -0
- package/dist/esm/{index-bdeab80c.js → index-b8872c16.js} +2 -2
- package/dist/esm/index-b8872c16.js.map +1 -0
- package/dist/esm/{index-6f0bb1b9.js → index-ca411ad2.js} +34 -4
- package/dist/esm/index-ca411ad2.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/pds-accordion.entry.js +2 -2
- package/dist/esm/pds-avatar.entry.js +4 -4
- package/dist/esm/pds-avatar.entry.js.map +1 -1
- package/dist/esm/pds-box.entry.js +1 -1
- package/dist/esm/pds-button.entry.js +2 -2
- package/dist/esm/pds-checkbox.entry.js +71 -0
- package/dist/esm/pds-checkbox.entry.js.map +1 -0
- package/dist/esm/pds-chip.entry.js +2 -2
- package/dist/esm/pds-copytext.entry.js +2 -2
- package/dist/esm/pds-divider.entry.js +1 -1
- package/dist/esm/pds-icon.entry.js +17 -8
- package/dist/esm/pds-icon.entry.js.map +1 -1
- package/dist/esm/pds-image.entry.js +1 -1
- package/dist/esm/pds-input.entry.js +2 -2
- package/dist/esm/{pds-label-d7e11551.js → pds-label-bea9ee54.js} +2 -2
- package/dist/esm/{pds-label-d7e11551.js.map → pds-label-bea9ee54.js.map} +1 -1
- package/dist/esm/pds-link.entry.js +2 -2
- package/dist/esm/pds-loader.entry.js +45 -0
- package/dist/esm/pds-loader.entry.js.map +1 -0
- package/dist/esm/pds-progress.entry.js +2 -2
- package/dist/esm/pds-radio.entry.js +5 -5
- package/dist/esm/pds-row.entry.js +2 -2
- package/dist/esm/pds-sortable-item.entry.js +3 -3
- package/dist/esm/pds-sortable.entry.js +2 -2
- package/dist/esm/pds-switch.entry.js +5 -5
- package/dist/esm/pds-tab.entry.js +4 -4
- package/dist/esm/pds-table-body.entry.js +2 -2
- package/dist/esm/pds-table-cell.entry.js +54 -0
- package/dist/esm/pds-table-cell.entry.js.map +1 -0
- package/dist/esm/pds-table-head-cell.entry.js +5 -4
- package/dist/esm/pds-table-head-cell.entry.js.map +1 -1
- package/dist/esm/pds-table-head.entry.js +27 -2
- package/dist/esm/pds-table-head.entry.js.map +1 -1
- package/dist/esm/pds-table-row.entry.js +22 -6
- package/dist/esm/pds-table-row.entry.js.map +1 -1
- package/dist/esm/pds-table.entry.js +27 -3
- package/dist/esm/pds-table.entry.js.map +1 -1
- package/dist/esm/pds-tabpanel.entry.js +2 -2
- package/dist/esm/pds-tabs.entry.js +2 -2
- package/dist/esm/pds-textarea.entry.js +6 -6
- package/dist/esm/pds-tooltip.entry.js +3 -3
- package/dist/esm/pine-core.js +3 -3
- package/dist/esm-es5/closest-d2d192be.js +2 -0
- package/dist/esm-es5/closest-d2d192be.js.map +1 -0
- package/dist/esm-es5/{index-bdeab80c.js → index-b8872c16.js} +1 -1
- package/dist/esm-es5/index-b8872c16.js.map +1 -0
- package/dist/esm-es5/index-ca411ad2.js +3 -0
- package/dist/esm-es5/index-ca411ad2.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/pds-accordion.entry.js +1 -1
- package/dist/esm-es5/pds-avatar.entry.js +1 -1
- package/dist/esm-es5/pds-avatar.entry.js.map +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-checkbox.entry.js +2 -0
- package/dist/esm-es5/pds-checkbox.entry.js.map +1 -0
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-divider.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-label-d7e11551.js → pds-label-bea9ee54.js} +2 -2
- package/dist/esm-es5/pds-link.entry.js +1 -1
- package/dist/esm-es5/pds-loader.entry.js +2 -0
- package/dist/esm-es5/pds-loader.entry.js.map +1 -0
- package/dist/esm-es5/pds-progress.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-sortable-item.entry.js +1 -1
- package/dist/esm-es5/pds-sortable.entry.js +2 -2
- 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 +2 -0
- package/dist/esm-es5/pds-table-cell.entry.js.map +1 -0
- package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js.map +1 -1
- package/dist/esm-es5/pds-table-head.entry.js +1 -1
- package/dist/esm-es5/pds-table-head.entry.js.map +1 -1
- package/dist/esm-es5/pds-table-row.entry.js +1 -1
- package/dist/esm-es5/pds-table-row.entry.js.map +1 -1
- package/dist/esm-es5/pds-table.entry.js +1 -1
- package/dist/esm-es5/pds-table.entry.js.map +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-textarea.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/pine-core/{p-320e4c53.system.entry.js → p-038065cf.system.entry.js} +2 -2
- package/dist/pine-core/p-05ee992c.js +3 -0
- package/dist/pine-core/p-05ee992c.js.map +1 -0
- package/dist/pine-core/{p-d99998a4.system.entry.js → p-0601dc8a.system.entry.js} +2 -2
- package/dist/pine-core/p-0601dc8a.system.entry.js.map +1 -0
- package/dist/pine-core/p-0b77685e.js +2 -0
- package/dist/pine-core/p-0b77685e.js.map +1 -0
- package/dist/pine-core/{p-dacd68cf.system.entry.js → p-0f3ceb6c.system.entry.js} +2 -2
- package/dist/pine-core/p-10fe7be7.entry.js +2 -0
- package/dist/pine-core/p-10fe7be7.entry.js.map +1 -0
- package/dist/pine-core/{p-7f917c20.entry.js → p-1618833a.entry.js} +2 -2
- package/dist/pine-core/{p-ff9044ed.entry.js → p-1775b56f.entry.js} +2 -2
- package/dist/pine-core/{p-c721d912.system.entry.js → p-1a03a25f.system.entry.js} +2 -2
- package/dist/pine-core/{p-3e527956.system.entry.js → p-1a065871.system.entry.js} +2 -2
- package/dist/pine-core/p-224a435b.system.js +2 -0
- package/dist/pine-core/p-224a435b.system.js.map +1 -0
- package/dist/pine-core/{p-4d4bea0a.entry.js → p-23d24773.entry.js} +2 -2
- package/dist/pine-core/p-24441d11.system.entry.js +2 -0
- package/dist/pine-core/p-24441d11.system.entry.js.map +1 -0
- package/dist/pine-core/p-26626013.system.js +3 -0
- package/dist/pine-core/p-26626013.system.js.map +1 -0
- package/dist/pine-core/{p-478689a0.system.entry.js → p-286189e0.system.entry.js} +2 -2
- package/dist/pine-core/p-30dfdfdd.entry.js +2 -0
- package/dist/pine-core/{p-2e19ec3d.system.entry.js → p-319ced45.system.entry.js} +2 -2
- package/dist/pine-core/{p-12e537ba.system.entry.js → p-34e206a0.system.entry.js} +2 -2
- package/dist/pine-core/{p-e43fd36e.entry.js → p-3648779f.entry.js} +2 -2
- package/dist/pine-core/{p-825cdc06.entry.js → p-368269f0.entry.js} +2 -2
- package/dist/pine-core/{p-51651124.entry.js → p-3a9fce23.entry.js} +2 -2
- package/dist/pine-core/p-3dfbaa2a.entry.js +2 -0
- package/dist/pine-core/p-3dfbaa2a.entry.js.map +1 -0
- package/dist/pine-core/{p-bc3782a0.entry.js → p-3ed83b6f.entry.js} +2 -2
- package/dist/pine-core/p-3ed83b6f.entry.js.map +1 -0
- package/dist/pine-core/{p-2af2432d.system.entry.js → p-3f15215e.system.entry.js} +2 -2
- package/dist/pine-core/{p-8144b8d8.system.entry.js → p-4254febe.system.entry.js} +2 -2
- package/dist/pine-core/{p-8c5e76d4.system.entry.js → p-4283f600.system.entry.js} +2 -2
- package/dist/pine-core/{p-77da68b4.system.entry.js → p-473037f0.system.entry.js} +2 -2
- package/dist/pine-core/p-4a7afca5.entry.js +2 -0
- package/dist/pine-core/p-4a7afca5.entry.js.map +1 -0
- package/dist/pine-core/p-56c60cf8.system.entry.js +2 -0
- package/dist/pine-core/p-56c60cf8.system.entry.js.map +1 -0
- package/dist/pine-core/{p-30cb97ee.system.entry.js → p-5b032eb0.system.entry.js} +2 -2
- package/dist/pine-core/{p-9f8a1aa6.entry.js → p-5bcbdba7.entry.js} +2 -2
- package/dist/pine-core/{p-380e465b.entry.js → p-5ec5e6cc.entry.js} +2 -2
- package/dist/pine-core/{p-9e33f4fb.system.entry.js → p-60953292.system.entry.js} +3 -3
- package/dist/pine-core/{p-bd5135c3.entry.js → p-6663628f.entry.js} +2 -2
- package/dist/pine-core/p-6b065607.entry.js +2 -0
- package/dist/pine-core/p-6b065607.entry.js.map +1 -0
- package/dist/pine-core/p-6faa8c75.js +2 -0
- package/dist/pine-core/{p-bb099830.system.entry.js → p-73c45132.system.entry.js} +2 -2
- package/dist/pine-core/p-77b96720.system.js +2 -0
- package/dist/pine-core/p-77b96720.system.js.map +1 -0
- package/dist/pine-core/{p-564e8159.entry.js → p-7f5517fc.entry.js} +2 -2
- package/dist/pine-core/{p-43783da1.system.entry.js → p-80024a08.system.entry.js} +2 -2
- package/dist/pine-core/{p-5073b1c0.entry.js → p-8dd63189.entry.js} +3 -3
- package/dist/pine-core/{p-327e1afa.system.entry.js → p-9028ed17.system.entry.js} +2 -2
- package/dist/pine-core/p-9087b22e.entry.js +2 -0
- package/dist/pine-core/p-9087b22e.entry.js.map +1 -0
- package/dist/pine-core/{p-0ec12306.system.js → p-927733f2.system.js} +2 -2
- package/dist/pine-core/{p-65a167b8.entry.js → p-948115a9.entry.js} +2 -2
- package/dist/pine-core/{p-2250dc45.entry.js → p-999c240c.entry.js} +2 -2
- package/dist/pine-core/{p-78ae6c93.system.entry.js → p-a4150f66.system.entry.js} +2 -2
- package/dist/pine-core/{p-5f9fa644.system.entry.js → p-a5a0ced9.system.entry.js} +2 -2
- package/dist/pine-core/p-a617a31d.system.entry.js +2 -0
- package/dist/pine-core/p-a617a31d.system.entry.js.map +1 -0
- package/dist/pine-core/p-a6a2fd34.entry.js +2 -0
- package/dist/pine-core/{p-afdfadb0.entry.js.map → p-a6a2fd34.entry.js.map} +1 -1
- package/dist/pine-core/p-a6eb294d.entry.js +2 -0
- package/dist/pine-core/p-a6eb294d.entry.js.map +1 -0
- package/dist/pine-core/{p-1922e07e.system.entry.js → p-a9ae176c.system.entry.js} +2 -2
- package/dist/pine-core/{p-1922e07e.system.entry.js.map → p-a9ae176c.system.entry.js.map} +1 -1
- package/dist/pine-core/{p-737d5042.entry.js → p-aafbbc27.entry.js} +2 -2
- package/dist/pine-core/{p-737d5042.entry.js.map → p-aafbbc27.entry.js.map} +1 -1
- package/dist/pine-core/{p-4f7ee11c.entry.js → p-b5ad8600.entry.js} +2 -2
- package/dist/pine-core/p-b8e27935.system.entry.js +2 -0
- package/dist/pine-core/p-b8e27935.system.entry.js.map +1 -0
- package/dist/pine-core/p-bb55fb8d.system.entry.js +2 -0
- package/dist/pine-core/p-bb55fb8d.system.entry.js.map +1 -0
- package/dist/pine-core/p-bbcf1b50.system.entry.js +2 -0
- package/dist/pine-core/p-bbcf1b50.system.entry.js.map +1 -0
- package/dist/pine-core/{p-30ca2db1.entry.js → p-bf5a1876.entry.js} +2 -2
- package/dist/pine-core/p-c25d94c0.system.entry.js +2 -0
- package/dist/pine-core/p-c25d94c0.system.entry.js.map +1 -0
- package/dist/pine-core/p-ccbff59d.entry.js +2 -0
- package/dist/pine-core/p-d1038811.entry.js +2 -0
- package/dist/pine-core/p-d1038811.entry.js.map +1 -0
- package/dist/pine-core/{p-edbc3b8d.entry.js → p-d1972e4b.entry.js} +2 -2
- package/dist/pine-core/{p-0af86d62.entry.js → p-da9c79a4.entry.js} +2 -2
- package/dist/pine-core/{p-019edcbb.entry.js → p-dfaf84b9.entry.js} +2 -2
- package/dist/pine-core/{p-5ffec55d.system.js → p-ee65aef1.system.js} +1 -1
- package/dist/pine-core/p-ee65aef1.system.js.map +1 -0
- package/dist/pine-core/{p-b7897f94.js → p-efc85823.js} +1 -1
- package/dist/pine-core/p-efc85823.js.map +1 -0
- package/dist/pine-core/{p-ec56491f.system.entry.js → p-f1086b10.system.entry.js} +2 -2
- package/dist/pine-core/{p-cf147dfc.system.entry.js → p-f1fe6518.system.entry.js} +2 -2
- package/dist/pine-core/p-f3f00b4b.system.entry.js +2 -0
- 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/pine-core/svg/bar-chart-10-tone.svg +1 -0
- package/dist/pine-core/svg/bell-01-tone.svg +1 -0
- package/dist/pine-core/svg/bulb.svg +1 -0
- package/dist/pine-core/svg/clapperboard-tone.svg +1 -0
- package/dist/pine-core/svg/cloud-upload.svg +1 -1
- package/dist/pine-core/svg/course-filled.svg +1 -0
- package/dist/pine-core/svg/credit-card-02-tone.svg +1 -0
- package/dist/pine-core/svg/cube-01-tone.svg +1 -0
- package/dist/pine-core/svg/customize.svg +1 -1
- package/dist/pine-core/svg/dollar.svg +1 -1
- package/dist/pine-core/svg/dots-horizontal-tone.svg +1 -0
- package/dist/pine-core/svg/download.svg +1 -1
- package/dist/pine-core/svg/expand.svg +1 -1
- package/dist/pine-core/svg/file-02.svg +1 -0
- package/dist/pine-core/svg/filter.svg +1 -1
- package/dist/pine-core/svg/form-field.svg +1 -1
- package/dist/pine-core/svg/hashtag.svg +1 -1
- package/dist/pine-core/svg/hd-video.svg +1 -1
- package/dist/pine-core/svg/headset-tone.svg +1 -0
- package/dist/pine-core/svg/home-02-tone.svg +1 -0
- package/dist/pine-core/svg/logo-instagram.svg +1 -1
- package/dist/pine-core/svg/mail-01-tone.svg +1 -0
- package/dist/pine-core/svg/mail-filled.svg +1 -1
- package/dist/pine-core/svg/mail.svg +1 -1
- package/dist/pine-core/svg/monitor-03-tone.svg +1 -0
- package/dist/pine-core/svg/one-off-session.svg +1 -1
- package/dist/pine-core/svg/phone-02-tone.svg +1 -0
- package/dist/pine-core/svg/search-md-tone.svg +1 -0
- package/dist/pine-core/svg/settings-01-tone.svg +1 -0
- package/dist/pine-core/svg/stars-01-tone.svg +1 -0
- package/dist/pine-core/svg/trophy-filled.svg +1 -0
- package/dist/pine-core/svg/unlock.svg +1 -1
- package/dist/pine-core/svg/users-02-tone.svg +1 -0
- package/dist/pine-core/svg/users-filled.svg +1 -0
- package/dist/pine-core/svg/video-off.svg +1 -1
- package/dist/pine-core/svg/wrench.svg +1 -1
- package/dist/types/components/pds-checkbox/pds-checkbox.d.ts +4 -1
- package/dist/types/components/pds-loader/pds-loader.d.ts +24 -0
- package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +1 -1
- package/dist/types/components/pds-table/pds-table-head/pds-table-head.d.ts +18 -1
- package/dist/types/components/pds-table/pds-table-head-cell/pds-table-head-cell.d.ts +5 -1
- package/dist/types/components/pds-table/pds-table-row/pds-table-row.d.ts +12 -6
- package/dist/types/components/pds-table/pds-table.d.ts +21 -1
- package/dist/types/components.d.ts +133 -1
- package/dist/types/utils/closest.d.ts +1 -0
- package/hydrate/index.js +230 -72
- package/package.json +1 -1
- package/dist/cjs/index-33465846.js.map +0 -1
- package/dist/cjs/index-7d9c71f6.js.map +0 -1
- package/dist/cjs/pds-checkbox_2.cjs.entry.js +0 -112
- package/dist/cjs/pds-checkbox_2.cjs.entry.js.map +0 -1
- package/dist/esm/index-6f0bb1b9.js.map +0 -1
- package/dist/esm/index-bdeab80c.js.map +0 -1
- package/dist/esm/pds-checkbox_2.entry.js +0 -107
- package/dist/esm/pds-checkbox_2.entry.js.map +0 -1
- package/dist/esm-es5/index-6f0bb1b9.js +0 -3
- package/dist/esm-es5/index-6f0bb1b9.js.map +0 -1
- package/dist/esm-es5/index-bdeab80c.js.map +0 -1
- package/dist/esm-es5/pds-checkbox_2.entry.js +0 -2
- package/dist/esm-es5/pds-checkbox_2.entry.js.map +0 -1
- package/dist/pine-core/p-0a1e2528.system.entry.js +0 -2
- package/dist/pine-core/p-0a1e2528.system.entry.js.map +0 -1
- package/dist/pine-core/p-0a636312.system.entry.js +0 -2
- package/dist/pine-core/p-0a636312.system.entry.js.map +0 -1
- package/dist/pine-core/p-1330a135.entry.js +0 -2
- package/dist/pine-core/p-1330a135.entry.js.map +0 -1
- package/dist/pine-core/p-16e9d55b.entry.js +0 -2
- package/dist/pine-core/p-16e9d55b.entry.js.map +0 -1
- package/dist/pine-core/p-209bc3fd.entry.js +0 -2
- package/dist/pine-core/p-2f77dbd3.js +0 -3
- package/dist/pine-core/p-2f77dbd3.js.map +0 -1
- package/dist/pine-core/p-3caa5870.system.entry.js +0 -2
- package/dist/pine-core/p-3caa5870.system.entry.js.map +0 -1
- package/dist/pine-core/p-49a28a19.system.entry.js +0 -2
- package/dist/pine-core/p-5f2b3f57.entry.js +0 -2
- package/dist/pine-core/p-5f2b3f57.entry.js.map +0 -1
- package/dist/pine-core/p-5ffec55d.system.js.map +0 -1
- package/dist/pine-core/p-61ab207f.entry.js +0 -2
- package/dist/pine-core/p-61ab207f.entry.js.map +0 -1
- package/dist/pine-core/p-6370aa12.system.entry.js +0 -2
- package/dist/pine-core/p-6370aa12.system.entry.js.map +0 -1
- package/dist/pine-core/p-64b4cb70.system.js +0 -3
- package/dist/pine-core/p-64b4cb70.system.js.map +0 -1
- package/dist/pine-core/p-7611d073.system.js +0 -2
- package/dist/pine-core/p-7611d073.system.js.map +0 -1
- package/dist/pine-core/p-87c2ac18.entry.js +0 -2
- package/dist/pine-core/p-87c2ac18.entry.js.map +0 -1
- package/dist/pine-core/p-afdfadb0.entry.js +0 -2
- package/dist/pine-core/p-b7897f94.js.map +0 -1
- package/dist/pine-core/p-bc1cb8e2.entry.js +0 -2
- package/dist/pine-core/p-bc3782a0.entry.js.map +0 -1
- package/dist/pine-core/p-d99998a4.system.entry.js.map +0 -1
- package/dist/pine-core/p-e4f30321.js +0 -2
- package/dist/pine-core/p-ecbf0b15.system.entry.js +0 -2
- package/dist/pine-core/p-ecbf0b15.system.entry.js.map +0 -1
- /package/dist/esm-es5/{pds-label-d7e11551.js.map → pds-label-bea9ee54.js.map} +0 -0
- /package/dist/pine-core/{p-320e4c53.system.entry.js.map → p-038065cf.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-dacd68cf.system.entry.js.map → p-0f3ceb6c.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-7f917c20.entry.js.map → p-1618833a.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ff9044ed.entry.js.map → p-1775b56f.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c721d912.system.entry.js.map → p-1a03a25f.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3e527956.system.entry.js.map → p-1a065871.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-4d4bea0a.entry.js.map → p-23d24773.entry.js.map} +0 -0
- /package/dist/pine-core/{p-478689a0.system.entry.js.map → p-286189e0.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-bc1cb8e2.entry.js.map → p-30dfdfdd.entry.js.map} +0 -0
- /package/dist/pine-core/{p-2e19ec3d.system.entry.js.map → p-319ced45.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-12e537ba.system.entry.js.map → p-34e206a0.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e43fd36e.entry.js.map → p-3648779f.entry.js.map} +0 -0
- /package/dist/pine-core/{p-825cdc06.entry.js.map → p-368269f0.entry.js.map} +0 -0
- /package/dist/pine-core/{p-51651124.entry.js.map → p-3a9fce23.entry.js.map} +0 -0
- /package/dist/pine-core/{p-2af2432d.system.entry.js.map → p-3f15215e.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8144b8d8.system.entry.js.map → p-4254febe.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8c5e76d4.system.entry.js.map → p-4283f600.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-77da68b4.system.entry.js.map → p-473037f0.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-30cb97ee.system.entry.js.map → p-5b032eb0.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9f8a1aa6.entry.js.map → p-5bcbdba7.entry.js.map} +0 -0
- /package/dist/pine-core/{p-380e465b.entry.js.map → p-5ec5e6cc.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9e33f4fb.system.entry.js.map → p-60953292.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-bd5135c3.entry.js.map → p-6663628f.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e4f30321.js.map → p-6faa8c75.js.map} +0 -0
- /package/dist/pine-core/{p-bb099830.system.entry.js.map → p-73c45132.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-564e8159.entry.js.map → p-7f5517fc.entry.js.map} +0 -0
- /package/dist/pine-core/{p-43783da1.system.entry.js.map → p-80024a08.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5073b1c0.entry.js.map → p-8dd63189.entry.js.map} +0 -0
- /package/dist/pine-core/{p-327e1afa.system.entry.js.map → p-9028ed17.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0ec12306.system.js.map → p-927733f2.system.js.map} +0 -0
- /package/dist/pine-core/{p-65a167b8.entry.js.map → p-948115a9.entry.js.map} +0 -0
- /package/dist/pine-core/{p-2250dc45.entry.js.map → p-999c240c.entry.js.map} +0 -0
- /package/dist/pine-core/{p-78ae6c93.system.entry.js.map → p-a4150f66.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5f9fa644.system.entry.js.map → p-a5a0ced9.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-4f7ee11c.entry.js.map → p-b5ad8600.entry.js.map} +0 -0
- /package/dist/pine-core/{p-30ca2db1.entry.js.map → p-bf5a1876.entry.js.map} +0 -0
- /package/dist/pine-core/{p-209bc3fd.entry.js.map → p-ccbff59d.entry.js.map} +0 -0
- /package/dist/pine-core/{p-edbc3b8d.entry.js.map → p-d1972e4b.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0af86d62.entry.js.map → p-da9c79a4.entry.js.map} +0 -0
- /package/dist/pine-core/{p-019edcbb.entry.js.map → p-dfaf84b9.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ec56491f.system.entry.js.map → p-f1086b10.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-cf147dfc.system.entry.js.map → p-f1fe6518.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-49a28a19.system.entry.js.map → p-f3f00b4b.system.entry.js.map} +0 -0
package/components/pds-switch.js
CHANGED
|
@@ -41,9 +41,9 @@ const PdsSwitch$1 = /*@__PURE__*/ proxyCustomElement(class PdsSwitch extends HTM
|
|
|
41
41
|
this.value = undefined;
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
45
|
-
h("div", { key: '
|
|
46
|
-
h("div", { key: '
|
|
44
|
+
return (h(Host, { key: '5c33e5bd4a42f187450a81faec033832524f1b29', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, h("input", { key: 'cb2a8287cdb44f337b4ecae15968e823f314b4d1', "aria-describedby": assignDescription(this.componentId, this.invalid, 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: this.type, value: this.value }), h(PdsLabel, { key: '86c700a16a23513b3ba34f2add1775274ecc6784', classNames: "pds-switch__label", htmlFor: this.componentId, text: this.label }), this.helperMessage &&
|
|
45
|
+
h("div", { key: '30c8b18c990a54330bf3442d9cbbb35387de0ec3', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
46
|
+
h("div", { key: '1eb57d78271d8c1fbe2fa680eeb88fd2fd1d35c9', class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, this.errorMessage)));
|
|
47
47
|
}
|
|
48
48
|
get el() { return this; }
|
|
49
49
|
static get style() { return PdsSwitchStyle0; }
|
package/components/pds-tab.js
CHANGED
|
@@ -18,9 +18,9 @@ const PdsTab$1 = /*@__PURE__*/ proxyCustomElement(class PdsTab extends HTMLEleme
|
|
|
18
18
|
this.pdsTabClick.emit([index, parentComponentId]);
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
const availabilityTabEdgeInlineStart = (h("span", { key: '
|
|
22
|
-
const availabilityTabEdgeInlineEnd = (h("span", { key: '
|
|
23
|
-
return (h(Host, { key: '
|
|
21
|
+
const availabilityTabEdgeInlineStart = (h("span", { key: '5ea7f20d14e906993c0cfbef0ae9a37b305be9fd', class: "pds-tab-edge", role: "presentation" }));
|
|
22
|
+
const availabilityTabEdgeInlineEnd = (h("span", { key: '9fc8287a57fd777472d9f909a451332b7edd8c39', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
|
|
23
|
+
return (h(Host, { key: '16d11c4bda123cbb698674c560dc7c826fe653ca', variant: this.variant, slot: "tabs", index: this.index }, h("button", { key: '63e18d48cd1206c87e520cbe85c09e7fbd8752f0', 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, h("div", { key: '5db0ed6e01b1cfe58f47669b369bb72bd3caa033', class: "pds-tab__content" }, h("slot", { key: '1737f4b6a524cf165deb1eb1a2627ae834a76be2' })))));
|
|
24
24
|
}
|
|
25
25
|
get el() { return this; }
|
|
26
26
|
static get style() { return PdsTabStyle0; }
|
|
@@ -10,7 +10,7 @@ const PdsTableBody$1 = /*@__PURE__*/ proxyCustomElement(class PdsTableBody exten
|
|
|
10
10
|
this.__attachShadow();
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '53ae547e27857b0e8e11adcbab634979555b37ab', role: "rowgroup" }, h("slot", { key: 'ba94c5332cdb944a36eecfd8f16c63e1fd0c0c0c' })));
|
|
14
14
|
}
|
|
15
15
|
static get style() { return PdsTableBodyStyle0; }
|
|
16
16
|
}, [1, "pds-table-body"]);
|
|
@@ -41,11 +41,11 @@ const PdsTableCell = /*@__PURE__*/ proxyCustomElement(class PdsTableCell extends
|
|
|
41
41
|
return classNames.join(' ');
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: '91ed20b4338792e6d72834d81d966c154fa2bc6d', class: this.classNames(), role: "gridcell", style: this.tableRef &&
|
|
45
45
|
this.tableRef.fixedColumn &&
|
|
46
46
|
this.tableRef.selectable
|
|
47
47
|
? { '--fixed-cell-position': '40px' }
|
|
48
|
-
: {} }, h("slot", { key: '
|
|
48
|
+
: {} }, h("slot", { key: '40dafc4697ba077a121979b604100107f51e9ff1' })));
|
|
49
49
|
}
|
|
50
50
|
get hostElement() { return this; }
|
|
51
51
|
static get style() { return PdsTableCellStyle0; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pds-table-cell2.js","mappings":";;AAAA,MAAM,eAAe,GAAG,urCAAurC,CAAC;AAChtC,2BAAe,eAAe;;MCMjB,YAAY;;;;;QAuCf,iBAAY,GAAG;YACrB,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,CAAC,EAAE;gBAChC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;aAC5B;iBAAM;gBACL,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;aAC7B;SACF,CAAC;;8BA1ByC,KAAK;;IAfhD,mBAAmB;QACjB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,WAAW,CAAwB,CAAC;KAC9E;IAED,gBAAgB;QACd,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE;YAC1E,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;SAC7D;KACF;IASO,UAAU;QAChB,MAAM,UAAU,GAAG,EAAE,CAAC;QAEtB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE;YAC1C,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SAC/B;QAED,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;SACjC;QAED,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,IAAI,IAAI,CAAC,cAAc,EAAE;YACrE,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;SACjC;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC7B;IAUD,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,IAAI,EAAC,UAAU,EACf,KAAK,EACH,IAAI,CAAC,QAAQ;gBACb,IAAI,CAAC,QAAQ,CAAC,WAAW;gBACzB,IAAI,CAAC,QAAQ,CAAC,UAAU;kBACpB,EAAE,uBAAuB,EAAE,MAAM,EAAE;kBACnC,EAAE,IAGR,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/pds-table/pds-table-cell/pds-table-cell.scss?tag=pds-table-cell&encapsulation=shadow","src/components/pds-table/pds-table-cell/pds-table-cell.tsx"],"sourcesContent":[":host {\n --box-shadow-fixed: 3px 3px 6px -2px rgba(0, 0, 0, 0.2);\n\n --color-background-fixed: var(--pine-color-white);\n --color-cell-default: var(--pine-color-charcoal-200);\n\n --dimension-fixed-cell-position: 0;\n --dimension-max-width-truncated: 100px;\n\n --font-size-cell-default: var(--pine-font-size-087);\n\n --number-fixed-column-index: 0;\n\n --spacing-line-height-cell-default: var(--pine-line-height-125);\n --spacing-padding-cell-default: calc(var(--pine-spacing-300) / 2);\n --spacing-padding-compact: var(--pine-spacing-050);\n\n color: var(--color-cell-default);\n display: table-cell;\n font-size: var(--font-size-cell-default);\n line-height: var(--spacing-line-height-cell-default);\n padding: var(--spacing-padding-cell-default);\n vertical-align: inherit;\n}\n\n:host(.is-compact) {\n padding-block: var(--spacing-padding-compact);\n}\n\n:host(.is-fixed) {\n background: var(--color-background-fixed);\n left: var(--dimension-fixed-cell-position);\n position: sticky;\n z-index: 1;\n}\n\n// box shadow when table has scrolled and cell is fixed\n:host(.has-scrolled.is-fixed) {\n box-shadow: var(--box-shadow-fixed);\n}\n\n:host(.is-truncated) {\n max-width: var(--dimension-max-width-truncated);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n:host(.has-checkbox) {\n vertical-align: middle;\n width: 16px;\n}\n","import { Component, Element, Host, Prop, State, h } from '@stencil/core';\n\n@Component({\n tag: 'pds-table-cell',\n styleUrl: 'pds-table-cell.scss',\n shadow: true,\n})\nexport class PdsTableCell {\n @Element() hostElement: HTMLPdsTableCellElement;\n tableRef: HTMLPdsTableElement;\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n }\n\n componentDidLoad() {\n if (this.tableRef && this.tableRef.responsive && this.tableRef.fixedColumn) {\n this.tableRef.addEventListener('scroll', this.handleScroll);\n }\n }\n\n /**\n * Truncates content to a max width of 100px and adds an ellipsis.\n */\n @Prop() truncate: boolean;\n\n @State() private tableScrolling: boolean = false;\n\n private classNames() {\n const classNames = [];\n\n if (this.tableRef && this.tableRef.compact) {\n classNames.push('is-compact');\n }\n\n if (this.truncate) {\n classNames.push('is-truncated');\n }\n\n if (this.tableRef && this.tableRef.fixedColumn && this.tableScrolling) {\n classNames.push('has-scrolled');\n }\n\n return classNames.join(' ');\n }\n\n private handleScroll = () => {\n if (this.tableRef.scrollLeft > 0) {\n this.tableScrolling = true;\n } else {\n this.tableScrolling = false;\n }\n };\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"gridcell\"\n style={\n this.tableRef &&\n this.tableRef.fixedColumn &&\n this.tableRef.selectable\n ? { '--fixed-cell-position': '40px' }\n : {}\n }\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"pds-table-cell2.js","mappings":";;AAAA,MAAM,eAAe,GAAG,urCAAurC,CAAC;AAChtC,2BAAe,eAAe;;MCMjB,YAAY;;;;;QAuCf,iBAAY,GAA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pB,EAAE,uBAAuB,EAAE,MAAM,EAAE;kBACnC,EAAE,IAGR,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/pds-table/pds-table-cell/pds-table-cell.scss?tag=pds-table-cell&encapsulation=shadow","src/components/pds-table/pds-table-cell/pds-table-cell.tsx"],"sourcesContent":[":host {\n --box-shadow-fixed: 3px 3px 6px -2px rgba(0, 0, 0, 0.2);\n\n --color-background-fixed: var(--pine-color-white);\n --color-cell-default: var(--pine-color-charcoal-200);\n\n --dimension-fixed-cell-position: 0;\n --dimension-max-width-truncated: 100px;\n\n --font-size-cell-default: var(--pine-font-size-087);\n\n --number-fixed-column-index: 0;\n\n --spacing-line-height-cell-default: var(--pine-line-height-125);\n --spacing-padding-cell-default: calc(var(--pine-spacing-300) / 2);\n --spacing-padding-compact: var(--pine-spacing-050);\n\n color: var(--color-cell-default);\n display: table-cell;\n font-size: var(--font-size-cell-default);\n line-height: var(--spacing-line-height-cell-default);\n padding: var(--spacing-padding-cell-default);\n vertical-align: inherit;\n}\n\n:host(.is-compact) {\n padding-block: var(--spacing-padding-compact);\n}\n\n:host(.is-fixed) {\n background: var(--color-background-fixed);\n left: var(--dimension-fixed-cell-position);\n position: sticky;\n z-index: 1;\n}\n\n// box shadow when table has scrolled and cell is fixed\n:host(.has-scrolled.is-fixed) {\n box-shadow: var(--box-shadow-fixed);\n}\n\n:host(.is-truncated) {\n max-width: var(--dimension-max-width-truncated);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n:host(.has-checkbox) {\n vertical-align: middle;\n width: 16px;\n}\n","import { Component, Element, Host, Prop, State, h } from '@stencil/core';\n\n@Component({\n tag: 'pds-table-cell',\n styleUrl: 'pds-table-cell.scss',\n shadow: true,\n})\nexport class PdsTableCell {\n @Element() hostElement: HTMLPdsTableCellElement;\n private tableRef: HTMLPdsTableElement;\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n }\n\n componentDidLoad() {\n if (this.tableRef && this.tableRef.responsive && this.tableRef.fixedColumn) {\n this.tableRef.addEventListener('scroll', this.handleScroll);\n }\n }\n\n /**\n * Truncates content to a max width of 100px and adds an ellipsis.\n */\n @Prop() truncate: boolean;\n\n @State() private tableScrolling: boolean = false;\n\n private classNames() {\n const classNames = [];\n\n if (this.tableRef && this.tableRef.compact) {\n classNames.push('is-compact');\n }\n\n if (this.truncate) {\n classNames.push('is-truncated');\n }\n\n if (this.tableRef && this.tableRef.fixedColumn && this.tableScrolling) {\n classNames.push('has-scrolled');\n }\n\n return classNames.join(' ');\n }\n\n private handleScroll = () => {\n if (this.tableRef.scrollLeft > 0) {\n this.tableScrolling = true;\n } else {\n this.tableScrolling = false;\n }\n };\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"gridcell\"\n style={\n this.tableRef &&\n this.tableRef.fixedColumn &&\n this.tableRef.selectable\n ? { '--fixed-cell-position': '40px' }\n : {}\n }\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -33,6 +33,7 @@ const PdsTableHeadCell = /*@__PURE__*/ proxyCustomElement(class PdsTableHeadCell
|
|
|
33
33
|
this.sortable = undefined;
|
|
34
34
|
this.sortingDirection = 'asc';
|
|
35
35
|
this.tableScrolling = false;
|
|
36
|
+
this.isSelected = false;
|
|
36
37
|
}
|
|
37
38
|
componentWillRender() {
|
|
38
39
|
this.tableRef = this.hostElement.closest('pds-table');
|
|
@@ -59,18 +60,19 @@ const PdsTableHeadCell = /*@__PURE__*/ proxyCustomElement(class PdsTableHeadCell
|
|
|
59
60
|
return classNames.join(' ');
|
|
60
61
|
}
|
|
61
62
|
render() {
|
|
62
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: '72e242a22774d4b534b7a8653673606e0e9c6ef1', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, style: this.tableRef &&
|
|
63
64
|
this.tableRef.fixedColumn &&
|
|
64
65
|
this.tableRef.selectable
|
|
65
66
|
? { '--fixed-cell-position': '40px' }
|
|
66
|
-
: {} }, h("slot", { key: '
|
|
67
|
+
: {} }, h("slot", { key: '08e1d5aab1761ed097e2669716884196c946bcc3' }), this.sortable && (h("pds-icon", { key: '43421a2b1401426878601468acee702ce45404bf', icon: this.sortingDirection === 'asc' ? upSmall : downSmall }))));
|
|
67
68
|
}
|
|
68
69
|
get hostElement() { return this; }
|
|
69
70
|
static get style() { return PdsTableHeadCellStyle0; }
|
|
70
71
|
}, [1, "pds-table-head-cell", {
|
|
71
72
|
"sortable": [4],
|
|
72
73
|
"sortingDirection": [32],
|
|
73
|
-
"tableScrolling": [32]
|
|
74
|
+
"tableScrolling": [32],
|
|
75
|
+
"isSelected": [32]
|
|
74
76
|
}]);
|
|
75
77
|
function defineCustomElement() {
|
|
76
78
|
if (typeof customElements === "undefined") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pds-table-head-cell2.js","mappings":";;;;AAAA,MAAM,mBAAmB,GAAG,kxDAAkxD,CAAC;AAC/yD,+BAAe,mBAAmB;;MCQrB,gBAAgB;;;;;;
|
|
1
|
+
{"file":"pds-table-head-cell2.js","mappings":";;;;AAAA,MAAM,mBAAmB,GAAG,kxDAAkxD,CAAC;AAC/yD,+BAAe,mBAAmB;;MCQrB,gBAAgB;;;;;;QAgCnB,iBAAY,GAAG;YACrB,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,CAAC,EAAE;gBAChC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;aAC5B;iBAAM;gBACL,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;aAC7B;SACF,CAAC;QAEM,eAAU,GAAG;YACnB,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;gBACjD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,KAAK,KAAK,GAA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AC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,IAAI,IAAI,CAAC,cAAc,EAAE;YACrE,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;SACjC;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC9B;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,IAAI,EAAC,cAAc,EACnB,OAAO,EAAE,IAAI,CAAC,UAAU,EACxB,KAAK,EACH,IAAI,CAAC,QAAQ;gBACb,IAAI,CAAC,QAAQ,CAAC,WAAW;gBACzB,IAAI,CAAC,QAAQ,CAAC,UAAU;kBACpB,EAAE,uBAAuB,EAAE,MAAM,EAAE;kBACnC,EAAE,IAGR,8DAAa,EACZ,IAAI,CAAC,QAAQ,KACZ,iEAAU,IAAI,EAAE,IAAI,CAAC,gBAAgB,KAAK,KAAK,GAAG,OAAO,GAAG,SAAS,GAAI,CAC1E,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/pds-table/pds-table-head-cell/pds-table-head-cell.scss?tag=pds-table-head-cell&encapsulation=shadow","src/components/pds-table/pds-table-head-cell/pds-table-head-cell.tsx"],"sourcesContent":[":host {\n --border-head-cell-default: var(--pine-border-width-thin) solid var(--pine-color-grey-300);\n\n --box-shadow-default: 3px 3px 6px -2px rgba(0, 0, 0, 0.1);\n\n --color-background-fixed: var(--pine-color-white);\n --color-sorting: var(--pine-color-charcoal-500);\n --color-text-default: var(--pine-color-charcoal-200);\n\n --dimension-fixed-cell-position: 0;\n\n --font-size-head-cell: var(--pine-font-size-087);\n --font-weight-cell-default: var(--pine-font-weight-normal);\n\n --line-height-cell-default: var(--pine-line-height-125);\n\n --padding-cell-default: calc(var(--pine-spacing-300) / 2);\n\n --spacing-margin-inline-start-arrow: var(--pine-spacing-050);\n --spacing-padding-arrow: calc(var(--pine-spacing-050) / 2);\n --spacing-padding-block-compact: var(--pine-spacing-050);\n\n border-block-end: var(--border-head-cell-default);\n color: var(--color-text-default);\n display: table-cell;\n font-size: var(--font-size-head-cell);\n font-style: normal;\n font-weight: var(--font-weight-cell-default);\n line-height: var(--line-height-cell-default);\n padding: var(--padding-cell-default);\n text-align: start;\n vertical-align: inherit;\n}\n\n:host(.is-compact) {\n padding-block: var(--spacing-padding-block-compact)\n}\n\n:host(.is-fixed) {\n background: var(--color-background-fixed);\n left: var(--dimension-fixed-cell-position);\n position: sticky;\n z-index: 1;\n}\n\n// box shadow when table has scrolled and cell is fixed\n:host(.has-scrolled.is-fixed) {\n box-shadow: var(--box-shadow-default);\n}\n\n:host(.is-sortable) {\n cursor: pointer;\n\n pds-icon {\n margin-inline-start: var(--spacing-margin-inline-start-arrow);\n padding-block-start: var(--spacing-padding-arrow);\n position: absolute;\n }\n}\n\n:host(.is-sortable:hover),\n:host(.is-active) {\n color: var(--color-sorting);\n}\n","import { Component, Element, Host, Prop, h, Event, EventEmitter, State } from '@stencil/core';\n\nimport { downSmall, upSmall } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-table-head-cell',\n styleUrl: 'pds-table-head-cell.scss',\n shadow: true,\n})\nexport class PdsTableHeadCell {\n @Element() hostElement: HTMLPdsTableHeadCellElement;\n private tableRef: HTMLPdsTableElement;\n\n /**\n * Determines whether the table column is sortable when set to `true`.\n */\n @Prop() sortable: boolean;\n\n /**\n * Event emitted to signal that a table column header has been sorted, providing information about the sorted column's name and sorting direction.\n */\n @Event() pdsTableSort: EventEmitter<{ column: string; direction: string }>;\n\n @State() private sortingDirection: 'asc' | 'desc' = 'asc';\n @State() private tableScrolling: boolean = false;\n\n /**\n * A local state to track whether the row is currently selected.\n */\n @State() isSelected: boolean = false;\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n }\n\n componentDidLoad() {\n if (this.tableRef && this.tableRef.responsive && this.tableRef.fixedColumn) {\n this.tableRef.addEventListener('scroll', this.handleScroll);\n }\n }\n\n private handleScroll = () => {\n if (this.tableRef.scrollLeft > 0) {\n this.tableScrolling = true;\n } else {\n this.tableScrolling = false;\n }\n };\n\n private toggleSort = () => {\n if (this.sortable) {\n const column = this.hostElement.innerText.trim();\n this.sortingDirection = this.sortingDirection === 'asc' ? 'desc' : 'asc';\n\n this.tableRef.querySelectorAll('pds-table-head-cell').forEach((headCell) => {\n headCell.classList.remove('is-active');\n });\n\n this.hostElement.classList.toggle('is-active');\n this.pdsTableSort.emit({ column, direction: this.sortingDirection });\n }\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.tableRef && this.tableRef.compact) {\n classNames.push('is-compact');\n }\n\n if (this.sortable) {\n classNames.push('is-sortable');\n }\n\n if (this.sortable && this.sortingDirection !== null) {\n classNames.push('sort-' + this.sortingDirection);\n }\n\n if (this.tableRef && this.tableRef.fixedColumn && this.tableScrolling) {\n classNames.push('has-scrolled');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"columnheader\"\n onClick={this.toggleSort}\n style={\n this.tableRef &&\n this.tableRef.fixedColumn &&\n this.tableRef.selectable\n ? { '--fixed-cell-position': '40px' }\n : {}\n }\n >\n <slot></slot>\n {this.sortable && (\n <pds-icon icon={this.sortingDirection === 'asc' ? upSmall : downSmall} />\n )}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as closest } from './closest.js';
|
|
3
|
+
import { d as defineCustomElement$4 } from './pds-checkbox2.js';
|
|
2
4
|
import { d as defineCustomElement$3 } from './pds-icon2.js';
|
|
3
5
|
import { d as defineCustomElement$2 } from './pds-table-head-cell2.js';
|
|
4
6
|
|
|
@@ -10,6 +12,30 @@ const PdsTableHead$1 = /*@__PURE__*/ proxyCustomElement(class PdsTableHead exten
|
|
|
10
12
|
super();
|
|
11
13
|
this.__registerHost();
|
|
12
14
|
this.__attachShadow();
|
|
15
|
+
this.pdsTableSelectAll = createEvent(this, "pdsTableSelectAll", 7);
|
|
16
|
+
this.generateUniqueId = () => {
|
|
17
|
+
const randomString = Math.random().toString(36).substring(2, 8);
|
|
18
|
+
const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
|
|
19
|
+
const uniqueId = `${randomString}-${timestamp}`;
|
|
20
|
+
return uniqueId;
|
|
21
|
+
};
|
|
22
|
+
this.handleInput = (ev) => {
|
|
23
|
+
this.isSelected = !ev.target.checked;
|
|
24
|
+
this.handleSelect(this.isSelected);
|
|
25
|
+
};
|
|
26
|
+
this.handleSelect = (isSelected) => {
|
|
27
|
+
this.indeterminate = false;
|
|
28
|
+
if (closest('pds-table-head', this.hostElement)) {
|
|
29
|
+
this.pdsTableSelectAll.emit({ isSelected });
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
this.indeterminate = undefined;
|
|
33
|
+
this.isSelected = undefined;
|
|
34
|
+
}
|
|
35
|
+
componentWillLoad() {
|
|
36
|
+
if (this.isSelected) {
|
|
37
|
+
this.handleSelect(this.isSelected);
|
|
38
|
+
}
|
|
13
39
|
}
|
|
14
40
|
componentWillRender() {
|
|
15
41
|
this.tableRef = this.hostElement.closest('pds-table');
|
|
@@ -19,22 +45,30 @@ const PdsTableHead$1 = /*@__PURE__*/ proxyCustomElement(class PdsTableHead exten
|
|
|
19
45
|
}
|
|
20
46
|
}
|
|
21
47
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '7729235908073cae63294e4ad641bae0403e2c34', role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-head-cell", { key: '2bb801124a3f8d1c9f18d03d1461953da4cdafc6', part: this.tableRef.selectable ? 'checkbox-cell' : '' }, h("pds-checkbox", { key: '2119be5b2db13a44add35fa9c9fc761a68a2b060', componentId: this.generateUniqueId(), indeterminate: this.indeterminate, onInput: this.handleInput, label: "Select All Rows", labelHidden: true, checked: this.isSelected }))), h("slot", { key: 'baa5b3af10a77e1a8aff537c3c731fbc59a54ca8' })));
|
|
23
49
|
}
|
|
24
50
|
get hostElement() { return this; }
|
|
25
51
|
static get style() { return PdsTableHeadStyle0; }
|
|
26
|
-
}, [1, "pds-table-head"
|
|
52
|
+
}, [1, "pds-table-head", {
|
|
53
|
+
"indeterminate": [1028],
|
|
54
|
+
"isSelected": [1028, "is-selected"]
|
|
55
|
+
}]);
|
|
27
56
|
function defineCustomElement$1() {
|
|
28
57
|
if (typeof customElements === "undefined") {
|
|
29
58
|
return;
|
|
30
59
|
}
|
|
31
|
-
const components = ["pds-table-head", "pds-icon", "pds-table-head-cell"];
|
|
60
|
+
const components = ["pds-table-head", "pds-checkbox", "pds-icon", "pds-table-head-cell"];
|
|
32
61
|
components.forEach(tagName => { switch (tagName) {
|
|
33
62
|
case "pds-table-head":
|
|
34
63
|
if (!customElements.get(tagName)) {
|
|
35
64
|
customElements.define(tagName, PdsTableHead$1);
|
|
36
65
|
}
|
|
37
66
|
break;
|
|
67
|
+
case "pds-checkbox":
|
|
68
|
+
if (!customElements.get(tagName)) {
|
|
69
|
+
defineCustomElement$4();
|
|
70
|
+
}
|
|
71
|
+
break;
|
|
38
72
|
case "pds-icon":
|
|
39
73
|
if (!customElements.get(tagName)) {
|
|
40
74
|
defineCustomElement$3();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pds-table-head.js","mappings":"
|
|
1
|
+
{"file":"pds-table-head.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,0gBAA0gB,CAAC;AACniB,2BAAe,eAAe;;MCOjBA,cAAY;;;;;;QAiBf,qBAAgB,GAAG;YACzB,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC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xC,4EAAqB,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,eAAe,GAAG,EAAE,IACxE,qEACE,WAAW,EAAE,IAAI,CAAC,gBAAgB,EAAE,EACpC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,KAAK,EAAE,iBAAiB,EACxB,WAAW,EAAE,IAAI,EACjB,OAAO,EAAE,IAAI,CAAC,UAAU,GACxB,CACkB,CACvB,EACD,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsTableHead"],"sources":["src/components/pds-table/pds-table-head/pds-table-head.scss?tag=pds-table-head&encapsulation=shadow","src/components/pds-table/pds-table-head/pds-table-head.tsx"],"sourcesContent":[":host {\n --border-head-default: var(--pine-border-width-thin) solid var(--pine-color-grey-300);\n\n --color-background-fixed: var(--pine-color-base-white);\n\n border-color: inherit;\n box-sizing: border-box;\n display: table-header-group;\n vertical-align: middle;\n\n // used for pds-checkbox-cell\n // because it is in the ShadowDom\n &::part(checkbox-cell) {\n background-color: var(--color-background-fixed);\n left: 0;\n position: sticky;\n z-index: 1;\n }\n}\n\n:host pds-table-checkbox-cell {\n border-block-end: var(--border-head-default);\n}\n","import { Component, Element, Event, EventEmitter, Host, h, Prop } from '@stencil/core';\nimport { closest } from '@utils/closest';\n\n@Component({\n tag: 'pds-table-head',\n styleUrl: 'pds-table-head.scss',\n shadow: true,\n})\nexport class PdsTableHead {\n @Element() hostElement: HTMLPdsTableHeadElement;\n private tableRef: HTMLPdsTableElement\n\n /** Indicates that the selection state is indeterminate. */\n @Prop({ mutable: true }) indeterminate?: boolean\n\n /**\n * A local state to track whether the row is currently selected.\n */\n @Prop({mutable: true}) isSelected: boolean;\n\n /**\n * Event that is emitted when the select all checkbox is clicked, carrying the selected value.\n */\n @Event() pdsTableSelectAll: EventEmitter<{ isSelected: boolean }>;\n\n private generateUniqueId = () => {\n const randomString = Math.random().toString(36).substring(2, 8);\n const timestamp = new Date().toISOString().replace(/[:.]/g, '-');\n const uniqueId = `${randomString}-${timestamp}`;\n\n return uniqueId;\n }\n\n private handleInput = (ev: Event) => {\n this.isSelected = !(ev.target as HTMLInputElement).checked\n this.handleSelect(this.isSelected)\n };\n\n private handleSelect = (isSelected: boolean) => {\n this.indeterminate = false\n\n if ( closest('pds-table-head', this.hostElement) ) {\n this.pdsTableSelectAll.emit({ isSelected });\n }\n }\n\n componentWillLoad() {\n if (this.isSelected) {\n this.handleSelect(this.isSelected)\n }\n }\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n\n if (this.tableRef && this.tableRef.fixedColumn) {\n const tableCell = this.hostElement.querySelector('pds-table-head-cell:first-child');\n tableCell?.classList.add(\"is-fixed\");\n }\n }\n\n render() {\n return (\n <Host role=\"row\">\n {this.tableRef && this.tableRef.selectable && (\n <pds-table-head-cell part={this.tableRef.selectable ? 'checkbox-cell' : ''}>\n <pds-checkbox\n componentId={this.generateUniqueId()}\n indeterminate={this.indeterminate}\n onInput={this.handleInput}\n label={\"Select All Rows\"}\n labelHidden={true}\n checked={this.isSelected}\n />\n </pds-table-head-cell>\n )}\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as closest } from './closest.js';
|
|
2
3
|
import { d as defineCustomElement$3 } from './pds-checkbox2.js';
|
|
3
4
|
import { d as defineCustomElement$2 } from './pds-table-cell2.js';
|
|
4
5
|
|
|
@@ -11,10 +12,19 @@ const PdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(class PdsTableRow extends
|
|
|
11
12
|
this.__registerHost();
|
|
12
13
|
this.__attachShadow();
|
|
13
14
|
this.pdsTableRowSelected = createEvent(this, "pdsTableRowSelected", 7);
|
|
14
|
-
this.
|
|
15
|
+
this.handleClick = () => {
|
|
15
16
|
this.isSelected = !this.isSelected; // Toggle the selected state
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
this.handleSelect(this.isSelected);
|
|
18
|
+
};
|
|
19
|
+
this.handleSelect = (isSelected) => {
|
|
20
|
+
this.indeterminate = false;
|
|
21
|
+
if (!closest('pds-table-head', this.hostElement)) {
|
|
22
|
+
const rowIndex = Array.from(this.hostElement.parentNode.children).indexOf(this.hostElement);
|
|
23
|
+
this.pdsTableRowSelected.emit({
|
|
24
|
+
rowIndex,
|
|
25
|
+
isSelected,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
18
28
|
};
|
|
19
29
|
this.generateUniqueId = () => {
|
|
20
30
|
const randomString = Math.random().toString(36).substring(2, 8);
|
|
@@ -22,7 +32,8 @@ const PdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(class PdsTableRow extends
|
|
|
22
32
|
const uniqueId = `${randomString}-${timestamp}`;
|
|
23
33
|
return uniqueId;
|
|
24
34
|
};
|
|
25
|
-
this.
|
|
35
|
+
this.indeterminate = undefined;
|
|
36
|
+
this.isSelected = undefined;
|
|
26
37
|
}
|
|
27
38
|
classNames() {
|
|
28
39
|
const classNames = [];
|
|
@@ -38,13 +49,19 @@ const PdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(class PdsTableRow extends
|
|
|
38
49
|
tableCell === null || tableCell === void 0 ? void 0 : tableCell.classList.add("is-fixed");
|
|
39
50
|
}
|
|
40
51
|
}
|
|
52
|
+
componentWillLoad() {
|
|
53
|
+
if (this.isSelected) {
|
|
54
|
+
this.handleSelect(this.isSelected);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
41
57
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: 'dbfba35e818a96281f5df7e51e60f0bbaf4d5527', class: this.classNames(), role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-cell", { key: 'a0d9118e63db0829f4352875cbacf76c11978fff', part: this.tableRef.fixedColumn ? 'checkbox-cell' : '', class: this.tableRef.selectable ? 'has-checkbox' : '' }, h("pds-checkbox", { key: '60ebde7bb2e745af55e3713b952f963d50396485', componentId: this.generateUniqueId(), onClick: this.handleClick, indeterminate: this.indeterminate, label: "Select Row", labelHidden: true, checked: this.isSelected }))), h("slot", { key: '97f90a8d36781f3b278f83b16c778d5e2b6e9bce' })));
|
|
43
59
|
}
|
|
44
60
|
get hostElement() { return this; }
|
|
45
61
|
static get style() { return PdsTableRowStyle0; }
|
|
46
62
|
}, [1, "pds-table-row", {
|
|
47
|
-
"
|
|
63
|
+
"indeterminate": [1028],
|
|
64
|
+
"isSelected": [1028, "is-selected"]
|
|
48
65
|
}]);
|
|
49
66
|
function defineCustomElement$1() {
|
|
50
67
|
if (typeof customElements === "undefined") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pds-table-row.js","mappings":"
|
|
1
|
+
{"file":"pds-table-row.js","mappings":";;;;;AAAA,MAAM,cAAc,GAAG,uiBAAuiB,CAAC;AAC/jB,0BAAe,cAAc;;MCQhBA,aAAW;;;;;;QAmBd,gBAAW,GAAG;YACpB,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;YACnC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SACpC,CAAA;QAEO,iBAAY,GAAG,CAAC,UAAmB;YACzC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;YAE3B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE;gBAChD,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;gBAC3F,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC;oBAC5B,QAAQ;oBACR,UAAU;iBACX,CAAC,CAAA;aACH;SACF,CAAA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AAC,QAAQ,CAAC,WAAW,GAAG,eAAe,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,cAAc,GAAG,EAAE,IAC3H,qEACE,WAAW,EAAE,IAAI,CAAC,gBAAgB,EAAE,EACpC,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,KAAK,EAAE,YAAY,EACnB,WAAW,EAAE,IAAI,EACjB,OAAO,EAAE,IAAI,CAAC,UAAU,GACxB,CACa,CAClB,EACD,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsTableRow"],"sources":["src/components/pds-table/pds-table-row/pds-table-row.scss?tag=pds-table-row&encapsulation=shadow","src/components/pds-table/pds-table-row/pds-table-row.tsx"],"sourcesContent":[":host {\n --color-background-fixed: var(--pine-color-white);\n --color-background-interactive: var(--pine-color-grey-200);\n\n border-color: inherit;\n display: table-row;\n vertical-align: inherit;\n\n // used for pds-checkbox-cell\n // because it is in the ShadowDom\n &::part(checkbox-cell) {\n background-color: var(--color-background-fixed);\n left: 0;\n position: sticky;\n z-index: 1;\n }\n}\n\n:host(:hover),\n:host(:hover)::part(checkbox-cell),\n:host(:hover) ::slotted(pds-table-cell),\n:host(.is-selected),\n:host(.is-selected)::part(checkbox-cell),\n:host(.is-selected) ::slotted(pds-table-cell) {\n background: var(--color-background-interactive);\n}\n","import { Component, Element, Host, h, Event, EventEmitter, Prop } from '@stencil/core';\n\nimport { closest } from '../../../utils/closest';\n\n@Component({\n tag: 'pds-table-row',\n styleUrl: 'pds-table-row.scss',\n shadow: true,\n})\nexport class PdsTableRow {\n @Element() hostElement: HTMLPdsTableRowElement;\n private tableRef: HTMLPdsTableElement;\n\n /**\n * Indicates that the selection state is indeterminate.\n * */\n @Prop({ mutable: true }) indeterminate?: boolean\n\n /**\n * A local state to track whether the row is currently selected.\n */\n @Prop({ mutable: true }) isSelected?: boolean;\n\n /**\n * Event that is emitted when the checkbox is clicked, carrying the selected value.\n */\n @Event() pdsTableRowSelected: EventEmitter<{ rowIndex: number; isSelected: boolean; }>;\n\n private handleClick = () => {\n this.isSelected = !this.isSelected; // Toggle the selected state\n this.handleSelect(this.isSelected);\n }\n\n private handleSelect = (isSelected: boolean) => {\n this.indeterminate = false;\n\n if (!closest('pds-table-head', this.hostElement)) {\n const rowIndex = Array.from(this.hostElement.parentNode.children).indexOf(this.hostElement)\n this.pdsTableRowSelected.emit({\n rowIndex,\n isSelected,\n })\n }\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.isSelected) {\n classNames.push(\"is-selected\");\n }\n\n return classNames.join(' ');\n }\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n\n if (this.tableRef && this.tableRef.fixedColumn) {\n const tableCell = this.hostElement.querySelector('pds-table-cell');\n tableCell?.classList.add(\"is-fixed\");\n }\n }\n\n componentWillLoad() {\n if (this.isSelected) {\n this.handleSelect(this.isSelected);\n }\n }\n\n private generateUniqueId = () => {\n const randomString = Math.random().toString(36).substring(2, 8);\n const timestamp = new Date().toISOString().replace(/[:.]/g, '-');\n const uniqueId = `${randomString}-${timestamp}`;\n\n return uniqueId;\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"row\"\n >\n {this.tableRef && this.tableRef.selectable && (\n <pds-table-cell part={this.tableRef.fixedColumn ? 'checkbox-cell' : ''} class={this.tableRef.selectable ? 'has-checkbox' : ''} >\n <pds-checkbox\n componentId={this.generateUniqueId()}\n onClick={this.handleClick}\n indeterminate={this.indeterminate}\n label={\"Select Row\"}\n labelHidden={true}\n checked={this.isSelected}\n />\n </pds-table-cell>\n )}\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
package/components/pds-table.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const pdsTableCss = ":host{--color-background-default:var(--pine-color-white);background:var(--color-background-default);border-collapse:separate;-webkit-box-sizing:border-box;box-sizing:border-box;display:table;width:100%}:host(.is-responsive){background-attachment:local, local, scroll, scroll;background-image:-webkit-gradient(linear, left top, right top, from(var(--color-background-default)), to(var(--color-background-default))), -webkit-gradient(linear, left top, right top, from(var(--color-background-default)), to(var(--color-background-default))), -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), to(rgba(255, 255, 255, 0))), -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.1)), to(rgba(255, 255, 255, 0)));background-image:linear-gradient(to right, var(--color-background-default), var(--color-background-default)), linear-gradient(to right, var(--color-background-default), var(--color-background-default)), linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));background-position:left center, right center, left center, right center;background-repeat:no-repeat;background-size:4px 100%, 4px 100%, 4px 100%, 4px 100%;display:block;margin:0 auto;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;overflow-x:auto;white-space:nowrap}";
|
|
3
|
+
const pdsTableCss = ":host{--color-background-default:var(--pine-color-white);background:var(--color-background-default);border-collapse:separate;-webkit-box-sizing:border-box;box-sizing:border-box;display:table;width:100%}:host(:focus-visible){--box-shadow-focus:0 0 0 2px var(--pine-color-blue-200);-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}:host(.is-responsive){background-attachment:local, local, scroll, scroll;background-image:-webkit-gradient(linear, left top, right top, from(var(--color-background-default)), to(var(--color-background-default))), -webkit-gradient(linear, left top, right top, from(var(--color-background-default)), to(var(--color-background-default))), -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), to(rgba(255, 255, 255, 0))), -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.1)), to(rgba(255, 255, 255, 0)));background-image:linear-gradient(to right, var(--color-background-default), var(--color-background-default)), linear-gradient(to right, var(--color-background-default), var(--color-background-default)), linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));background-position:left center, right center, left center, right center;background-repeat:no-repeat;background-size:4px 100%, 4px 100%, 4px 100%, 4px 100%;display:block;margin:0 auto;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;overflow-x:auto;white-space:nowrap}";
|
|
4
4
|
const PdsTableStyle0 = pdsTableCss;
|
|
5
5
|
|
|
6
6
|
const PdsTable$1 = /*@__PURE__*/ proxyCustomElement(class PdsTable extends HTMLElement {
|
|
@@ -8,6 +8,8 @@ const PdsTable$1 = /*@__PURE__*/ proxyCustomElement(class PdsTable extends HTMLE
|
|
|
8
8
|
super();
|
|
9
9
|
this.__registerHost();
|
|
10
10
|
this.__attachShadow();
|
|
11
|
+
this.pdsTableSelect = createEvent(this, "pdsTableSelect", 7);
|
|
12
|
+
this.pdsTableSelectAll = createEvent(this, "pdsTableSelectAll", 7);
|
|
11
13
|
this.compact = undefined;
|
|
12
14
|
this.componentId = undefined;
|
|
13
15
|
this.responsive = undefined;
|
|
@@ -64,8 +66,30 @@ const PdsTable$1 = /*@__PURE__*/ proxyCustomElement(class PdsTable extends HTMLE
|
|
|
64
66
|
this.sortingColumn = event.detail.column;
|
|
65
67
|
this.sortingDirection = direction;
|
|
66
68
|
}
|
|
69
|
+
handleTableSelectAll(event) {
|
|
70
|
+
if (event.defaultPrevented)
|
|
71
|
+
return;
|
|
72
|
+
const pdsTableBody = this.el.querySelector('pds-table-body');
|
|
73
|
+
const tableRows = Array.from(pdsTableBody.querySelectorAll('pds-table-row'));
|
|
74
|
+
tableRows.forEach((row) => {
|
|
75
|
+
row.isSelected = event.detail.isSelected;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
async handleTableSelect(event) {
|
|
79
|
+
if (event.defaultPrevented)
|
|
80
|
+
return;
|
|
81
|
+
const allTableRows = this.el.querySelectorAll('pds-table-row');
|
|
82
|
+
const allSelectedRows = Array.from(allTableRows).every((row) => row.isSelected);
|
|
83
|
+
const noneSelectedRows = Array.from(allTableRows).every((row) => !row.isSelected);
|
|
84
|
+
const pdsTableHead = this.el.querySelector('pds-table-head');
|
|
85
|
+
if (!pdsTableHead)
|
|
86
|
+
return;
|
|
87
|
+
const headerCheckbox = pdsTableHead.shadowRoot.querySelector('pds-checkbox');
|
|
88
|
+
headerCheckbox.checked = allSelectedRows;
|
|
89
|
+
headerCheckbox.indeterminate = !allSelectedRows && !noneSelectedRows;
|
|
90
|
+
}
|
|
67
91
|
render() {
|
|
68
|
-
return (h(Host, { key: '
|
|
92
|
+
return (h(Host, { key: '95cc4db296681faa0fc046c9b1d6807d640b7730', class: this.classNames(), id: this.componentId, role: "grid", selectable: this.selectable, tabindex: "0" }, h("slot", { key: 'ecc9bc0761409d5a2819a05d72290c294e27454f' })));
|
|
69
93
|
}
|
|
70
94
|
get el() { return this; }
|
|
71
95
|
static get style() { return PdsTableStyle0; }
|
|
@@ -77,7 +101,7 @@ const PdsTable$1 = /*@__PURE__*/ proxyCustomElement(class PdsTable extends HTMLE
|
|
|
77
101
|
"selectable": [4],
|
|
78
102
|
"sortingColumn": [32],
|
|
79
103
|
"sortingDirection": [32]
|
|
80
|
-
}, [[0, "pdsTableSort", "handleTableSort"]]]);
|
|
104
|
+
}, [[0, "pdsTableSort", "handleTableSort"], [0, "pdsTableSelectAll", "handleTableSelectAll"], [0, "pdsTableRowSelected", "handleTableSelect"]]]);
|
|
81
105
|
function defineCustomElement$1() {
|
|
82
106
|
if (typeof customElements === "undefined") {
|
|
83
107
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pds-table.js","mappings":";;AAAA,MAAM,WAAW,GAAG,
|
|
1
|
+
{"file":"pds-table.js","mappings":";;AAAA,MA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AAiB,CAAC,KAA6D;QACnF,IAAI,KAAK,CAAC,gBAAgB;YAAE,OAAO;QAEnC,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;QAC/D,MAAM,eAAe,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,CAAC,CAAC;QAChF,MAAM,gBAAgB,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAClF,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;QAC7D,IAAI,CAAC,YAAY;YAAE,OAAO;QAE1B,MAAM,cAAc,GAAG,YAAY,CAAC,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;QAC7E,cAAc,CAAC,OAAO,GAAG,eAAe,CAAC;QACzC,cAAc,CAAC,aAAa,GAAG,CAAC,eAAe,IAAI,CAAC,gBAAgB,CAAC;KACtE;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,IAAI,EAAC,MAAM,EACX,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,QAAQ,EAAC,GAAG,IAEZ,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsTable"],"sources":["src/components/pds-table/pds-table.scss?tag=pds-table&encapsulation=shadow","src/components/pds-table/pds-table.tsx"],"sourcesContent":[":host {\n --color-background-default: var(--pine-color-white);\n\n background: var(--color-background-default);\n border-collapse: separate;\n box-sizing: border-box;\n display: table;\n width: 100%;\n}\n\n:host(:focus-visible) {\n --box-shadow-focus: 0 0 0 2px var(--pine-color-blue-200);\n // outline: var(--pine-border-focus); Border radius for outline does not work in Safari\n box-shadow: var(--box-shadow-focus); // Remove when outline radius is supported in Safari\n outline: none;\n}\n\n:host(.is-responsive) {\n background-attachment: local, local, scroll, scroll;\n background-image: linear-gradient(to right, var(--color-background-default), var(--color-background-default)),\n linear-gradient(to right, var(--color-background-default), var(--color-background-default)),\n linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)),\n linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));\n background-position: left center, right center, left center, right center;\n background-repeat: no-repeat;\n background-size: 4px 100%, 4px 100%, 4px 100%, 4px 100%;\n display: block;\n margin: 0 auto;\n max-width: fit-content;\n overflow-x: auto;\n white-space: nowrap;\n}\n","import { Component, Element, Event, EventEmitter, Host, h, Prop, State, Listen } from '@stencil/core';\n\n@Component({\n tag: 'pds-table',\n styleUrl: 'pds-table.scss',\n shadow: true,\n})\nexport class PdsTable {\n @Element() el: HTMLPdsTableElement;\n\n /**\n * Determines if table displays compact which reduces the spacing of table cells.\n */\n @Prop() compact: boolean;\n\n /**\n * A unique identifier used for the table `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Enables the table to be responsive by horizontally scrolling on smaller screens.\n */\n @Prop() responsive: boolean;\n\n /**\n * Determines if table displays fixed column which fixes the first column of the table.\n */\n @Prop() fixedColumn: boolean;\n\n /**\n * Determines if table displays checkboxes for selectable rows.\n */\n @Prop() selectable: boolean;\n\n @State() sortingColumn: string | null = null;\n @State() sortingDirection: 'asc' | 'desc' = 'asc';\n\n\n /**\n * Event that is emitted when the checkbox is clicked, carrying the rowIndex and selected value.\n */\n @Event() pdsTableSelect: EventEmitter<{ rowIndex: number; isSelected: boolean }>;\n\n /**\n * Event that is emitted when the select all checkbox is clicked, carrying the selected value.\n */\n @Event() pdsTableSelectAll: EventEmitter<{ isSelected: boolean }>;\n\n componentWillLoad() {\n this.sortingColumn = null;\n }\n\n private classNames() {\n const classNames = ['pds-table'];\n\n if (this.compact) {\n classNames.push('is-compact');\n }\n\n if (this.responsive) {\n classNames.push('is-responsive');\n }\n\n return classNames.join(' ');\n }\n\n private sortTable(column: string, direction: 'asc' | 'desc') {\n const tableBody = this.el.querySelector('pds-table-body');\n\n // Get the rows in the table body\n const tableRows = Array.from(tableBody.querySelectorAll('pds-table-row'));\n\n // Find the column index based on the column name\n const columnHeaderCells: HTMLElement[] = Array.from(\n this.el.querySelectorAll('pds-table-head-cell[sortable]')\n );\n\n const columnHeaderCell = columnHeaderCells.find(\n (cell) => cell.innerText.trim() === column\n );\n\n if (!columnHeaderCell) {\n console.warn(`Column \"${column}\" not found.`);\n return;\n }\n\n const columnIndex = columnHeaderCells.indexOf(columnHeaderCell);\n\n // Sort the rows based on the content of the specified column\n tableRows.sort((a, b) => {\n const valueA = a.querySelector(`pds-table-cell:nth-child(${columnIndex + 1})`).textContent.trim();\n const valueB = b.querySelector(`pds-table-cell:nth-child(${columnIndex + 1})`).textContent.trim();\n\n if (direction === 'asc') {\n return valueA.localeCompare(valueB);\n } else {\n return valueB.localeCompare(valueA);\n }\n });\n\n // Clear and append the sorted rows back to the table body\n tableBody.innerHTML = '';\n tableRows.forEach((row) => {\n tableBody.appendChild(row);\n });\n }\n\n @Listen('pdsTableSort')\n handleTableSort(event: CustomEvent<{ column: string; direction: 'asc' | 'desc' }>) {\n const { direction } = event.detail;\n this.sortTable(event.detail.column, direction);\n this.sortingColumn = event.detail.column;\n this.sortingDirection = direction;\n }\n\n @Listen('pdsTableSelectAll')\n handleTableSelectAll(event: CustomEvent<{ isSelected: boolean }>) {\n if (event.defaultPrevented) return;\n\n const pdsTableBody = this.el.querySelector('pds-table-body');\n const tableRows = Array.from(pdsTableBody.querySelectorAll('pds-table-row'));\n\n tableRows.forEach((row) => {\n row.isSelected = event.detail.isSelected;\n });\n }\n\n @Listen('pdsTableRowSelected')\n async handleTableSelect(event: CustomEvent<{ rowIndex: number; isSelected: boolean }>) {\n if (event.defaultPrevented) return;\n\n const allTableRows = this.el.querySelectorAll('pds-table-row');\n const allSelectedRows = Array.from(allTableRows).every((row) => row.isSelected);\n const noneSelectedRows = Array.from(allTableRows).every((row) => !row.isSelected);\n const pdsTableHead = this.el.querySelector('pds-table-head');\n if (!pdsTableHead) return;\n\n const headerCheckbox = pdsTableHead.shadowRoot.querySelector('pds-checkbox');\n headerCheckbox.checked = allSelectedRows;\n headerCheckbox.indeterminate = !allSelectedRows && !noneSelectedRows;\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n id={this.componentId}\n role=\"grid\"\n selectable={this.selectable}\n tabindex=\"0\"\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -13,7 +13,7 @@ const PdsTabpanel$1 = /*@__PURE__*/ proxyCustomElement(class PdsTabpanel extends
|
|
|
13
13
|
this.selected = false;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'b071d63a6211e70b09f11a18609d15728eb485c6', slot: "tabpanels" }, h("div", { key: 'ab8de65d7142136888c853170b7b8b190f21abcc', 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" }, h("slot", { key: '0cac8366d5502be7033d1b71b681bf564aa557e8' }))));
|
|
17
17
|
}
|
|
18
18
|
get el() { return this; }
|
|
19
19
|
static get style() { return PdsTabpanelStyle0; }
|
package/components/pds-tabs.js
CHANGED
|
@@ -86,7 +86,7 @@ const PdsTabs$1 = /*@__PURE__*/ proxyCustomElement(class PdsTabs extends HTMLEle
|
|
|
86
86
|
this.passPropsToChildren();
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: 'a36e242d5e746954f80778cf515879ca82258978', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, h("div", { key: 'd6d89fd90a9a534f249c549e34308ed245773f60', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel }, h("slot", { key: '9b5e5268c27ecf2a5331cec64d2c7121cef366a1', name: "tabs" })), h("slot", { key: 'b835cf1befe68f54b1751a976846d271ce97634e', name: "tabpanels" })));
|
|
90
90
|
}
|
|
91
91
|
get el() { return this; }
|
|
92
92
|
static get style() { return PdsTabsStyle0; }
|
|
@@ -39,10 +39,10 @@ const PdsTextarea$1 = /*@__PURE__*/ proxyCustomElement(class PdsTextarea extends
|
|
|
39
39
|
return classNames.join(' ');
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
43
|
-
h(PdsLabel, { key: '
|
|
44
|
-
h("p", { key: '
|
|
45
|
-
h("p", { key: '
|
|
42
|
+
return (h(Host, { key: 'f58ccd5b20fc30c6e6153e04e98b27fe265040af', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: '480b51012d0f7a05d83fb8cb359d2bc3a4e82189', class: "pds-textarea" }, this.label &&
|
|
43
|
+
h(PdsLabel, { key: '0b34ee6ee8eec6891c00596f840d028ab6ac36bb', htmlFor: this.componentId, text: this.label }), h("textarea", { key: '6f066ce38aaec3257bddd69715118aa5740723c1', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onChange: this.onTextareaChange }, this.value), this.helperMessage &&
|
|
44
|
+
h("p", { key: '91c66558978cdbb3191c0af31c34c2647749c01a', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
|
|
45
|
+
h("p", { key: 'da8320d10ace733c7181ab3c6827da99d94d7ebd', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, this.errorMessage))));
|
|
46
46
|
}
|
|
47
47
|
get el() { return this; }
|
|
48
48
|
static get style() { return PdsTextareaStyle0; }
|
|
@@ -130,13 +130,13 @@ const PdsTooltip$1 = /*@__PURE__*/ proxyCustomElement(class PdsTooltip extends H
|
|
|
130
130
|
this.opened = false;
|
|
131
131
|
}
|
|
132
132
|
render() {
|
|
133
|
-
return (h(Host, { key: '
|
|
133
|
+
return (h(Host, { key: '52999e010e83fb265a46867b0b29169f7363a496', onMouseEnter: this.handleShow, onMouseLeave: this.handleHide, onFocusin: this.handleShow, onFocusout: this.handleHide }, h("div", { key: '6bb63ba10eab04114ced7ead7079d46cc22cb72c', class: `
|
|
134
134
|
pds-tooltip
|
|
135
135
|
pds-tooltip--${this.placement}
|
|
136
136
|
${this.htmlContent ? 'pds-tooltip--has-html-content' : ''}
|
|
137
137
|
${this.opened ? 'pds-tooltip--is-open' : ''}
|
|
138
138
|
${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}
|
|
139
|
-
` }, h("span", { key: '
|
|
139
|
+
` }, h("span", { key: '930c148c837912ad9d5ea57e92246e0211b355c4', "aria-describedby": this.componentId, class: "pds-tooltip__trigger" }, h("slot", { key: '813429e2865fae92050d779ca7f47072313db851' })), h("div", { key: '7f47e8b4ff3d6238f27e38986f032ece94f6b584', class: "pds-tooltip__content", "aria-hidden": this.opened ? 'false' : 'true', "aria-live": this.opened ? 'polite' : 'off', id: this.componentId, ref: (el) => (this.contentEl = el), role: "tooltip" }, h("slot", { key: '90b3f02974d250375d55ed332a9c525626ff5439', name: "content" }), this.content))));
|
|
140
140
|
}
|
|
141
141
|
get el() { return this; }
|
|
142
142
|
static get watchers() { return {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// This helper function is similar to Element.closest(),
|
|
4
|
+
// however it also traverses shadow DOM boundaries.
|
|
5
|
+
const closest = (selector, el) => {
|
|
6
|
+
return (el &&
|
|
7
|
+
(('closest' in el && el.closest(selector)) ||
|
|
8
|
+
closest(selector, el.getRootNode().host)));
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
exports.closest = closest;
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=closest-b45138d3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"closest-b45138d3.js","mappings":";;AAAA;AACA;MACa,OAAO,GAAG,CAAC,QAAgB,EAAE,EAAsB;IAC9D,QACE,EAAE;SACD,CAAC,SAAS,IAAI,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;YACvC,OAAO,CAAC,QAAQ,EAAG,EAAE,CAAC,WAAW,EAA4B,CAAC,IAAI,CAAC,CAAC,EACvE;AACH;;;;","names":[],"sources":["src/utils/closest.ts"],"sourcesContent":["// This helper function is similar to Element.closest(),\n// however it also traverses shadow DOM boundaries.\nexport const closest = (selector: string, el: Element | Document) => {\n return (\n el &&\n (('closest' in el && el.closest(selector)) ||\n closest(selector, (el.getRootNode() as unknown as ShadowRoot).host))\n )\n}\n"],"version":3}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
/* pds-icons v7.
|
|
3
|
+
/* pds-icons v7.4.0, ES Modules */
|
|
4
4
|
const caretDown = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M.862 4.862c.26-.26.682-.26.943 0L8 11.057l6.195-6.195a.667.667 0 1 1 .943.943L8.471 12.47a.667.667 0 0 1-.942 0L.862 5.805a.667.667 0 0 1 0-.943'/></svg>";
|
|
5
5
|
const checkCircleFilled = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><g clip-path='url(#a)'><path d='M8 0C3.58 0 0 3.58 0 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8m4.473 5.807L7.14 11.14c-.26.26-.68.26-.94 0L3.533 8.473a.664.664 0 1 1 .94-.94l2.194 2.194 4.86-4.86c.26-.26.68-.26.94 0 .266.253.266.68.006.94'/></g><defs><clipPath id='a'><path d='M0 0h16v16H0z'/></clipPath></defs></svg>";
|
|
6
6
|
const copy = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><g fill-rule='evenodd' clip-path='url(#a)'><path d='M10 5.333c0-.368.299-.666.667-.666h4c.368 0 .666.298.666.666v9.334a.667.667 0 0 1-.666.666H5.333a.667.667 0 0 1-.666-.666v-4a.667.667 0 1 1 1.333 0V14h8V6h-3.333A.667.667 0 0 1 10 5.333'/><path d='M.667 1.333c0-.368.298-.666.666-.666h9.334c.368 0 .666.298.666.666v9.334a.667.667 0 0 1-.666.666H1.333a.667.667 0 0 1-.666-.666zM2 2v8h8V2z'/></g><defs><clipPath id='a'><path d='M0 0h16v16H0z'/></clipPath></defs></svg>";
|
|
@@ -21,4 +21,4 @@ exports.remove = remove;
|
|
|
21
21
|
exports.upSmall = upSmall;
|
|
22
22
|
exports.userFilled = userFilled;
|
|
23
23
|
|
|
24
|
-
//# sourceMappingURL=index-
|
|
24
|
+
//# sourceMappingURL=index-dd191bbe.js.map
|