@pine-ds/core 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/closest-b45138d3.js +13 -0
- package/dist/cjs/closest-b45138d3.js.map +1 -0
- package/dist/cjs/{index-33465846.js → index-34f3258f.js} +2 -2
- package/dist/cjs/index-34f3258f.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 +2 -2
- 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/{components/index2.js → dist/esm/index-852fd6bc.js} +2 -2
- package/dist/esm/index-852fd6bc.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 +2 -2
- 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/{components/pds-table-cell2.js → dist/esm/pds-table-cell.entry.js} +11 -29
- 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-852fd6bc.js} +1 -1
- package/dist/esm-es5/index-852fd6bc.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-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-65a167b8.entry.js → p-19b44f85.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-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-2af2432d.system.entry.js → p-34a4c5ff.system.entry.js} +2 -2
- package/dist/pine-core/{p-e43fd36e.entry.js → p-3648779f.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-3f1ca23f.entry.js} +2 -2
- package/dist/pine-core/p-3f1ca23f.entry.js.map +1 -0
- package/dist/pine-core/{p-3e527956.system.entry.js → p-3f78956d.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-019edcbb.entry.js → p-42cccfec.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-bb099830.system.entry.js → p-4da18aac.system.entry.js} +2 -2
- package/dist/pine-core/{p-b7897f94.js → p-4dec2648.js} +1 -1
- package/dist/pine-core/p-4dec2648.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-737d5042.entry.js → p-59f634bc.entry.js} +2 -2
- package/dist/pine-core/{p-737d5042.entry.js.map → p-59f634bc.entry.js.map} +1 -1
- 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-8144b8d8.system.entry.js → p-689137e6.system.entry.js} +2 -2
- package/dist/pine-core/p-6faa8c75.js +2 -0
- 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-30ca2db1.entry.js → p-7bf40997.entry.js} +2 -2
- package/dist/pine-core/{p-cf147dfc.system.entry.js → p-7ef962b2.system.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-d99998a4.system.entry.js → p-97e67ec3.system.entry.js} +2 -2
- package/dist/pine-core/p-97e67ec3.system.entry.js.map +1 -0
- package/dist/pine-core/{p-2250dc45.entry.js → p-999c240c.entry.js} +2 -2
- package/dist/pine-core/p-a010a9e8.system.entry.js +2 -0
- package/dist/pine-core/p-a010a9e8.system.entry.js.map +1 -0
- package/dist/pine-core/{p-1330a135.entry.js → p-a1cf1db5.entry.js} +2 -2
- package/dist/pine-core/p-a1cf1db5.entry.js.map +1 -0
- 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-564e8159.entry.js → p-b2b8070b.entry.js} +2 -2
- 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-51651124.entry.js → p-b924a6f7.entry.js} +2 -2
- 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-c25d94c0.system.entry.js +2 -0
- package/dist/pine-core/p-c25d94c0.system.entry.js.map +1 -0
- package/dist/pine-core/{p-1922e07e.system.entry.js → p-c8f50955.system.entry.js} +2 -2
- package/dist/pine-core/{p-1922e07e.system.entry.js.map → p-c8f50955.system.entry.js.map} +1 -1
- package/dist/pine-core/p-ccbff59d.entry.js +2 -0
- package/dist/pine-core/{p-12e537ba.system.entry.js → p-cd001902.system.entry.js} +2 -2
- 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-825cdc06.entry.js → p-db38d613.entry.js} +2 -2
- package/dist/pine-core/{p-5ffec55d.system.js → p-e55f6789.system.js} +1 -1
- package/dist/pine-core/p-e55f6789.system.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-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/bulb.svg +1 -0
- package/dist/pine-core/svg/course-filled.svg +1 -0
- package/dist/pine-core/svg/hd-video.svg +1 -1
- package/dist/pine-core/svg/mail.svg +1 -1
- package/dist/pine-core/svg/one-off-session.svg +1 -1
- package/dist/pine-core/svg/users-filled.svg +1 -0
- 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/package.json +1 -1
- package/components/custom-elements.d.ts +0 -2
- package/components/index.d.ts +0 -92
- package/components/index.js +0 -32
- package/components/index.js.map +0 -1
- package/components/index2.js.map +0 -1
- package/components/package.json +0 -9
- package/components/pds-accordion.d.ts +0 -11
- package/components/pds-accordion.js +0 -68
- package/components/pds-accordion.js.map +0 -1
- package/components/pds-avatar.d.ts +0 -11
- package/components/pds-avatar.js +0 -103
- package/components/pds-avatar.js.map +0 -1
- package/components/pds-box.d.ts +0 -11
- package/components/pds-box.js +0 -124
- package/components/pds-box.js.map +0 -1
- package/components/pds-button.d.ts +0 -11
- package/components/pds-button.js +0 -8
- package/components/pds-button.js.map +0 -1
- package/components/pds-button2.js +0 -84
- package/components/pds-button2.js.map +0 -1
- package/components/pds-checkbox.d.ts +0 -11
- package/components/pds-checkbox.js +0 -8
- package/components/pds-checkbox.js.map +0 -1
- package/components/pds-checkbox2.js +0 -86
- package/components/pds-checkbox2.js.map +0 -1
- package/components/pds-chip.d.ts +0 -11
- package/components/pds-chip.js +0 -78
- package/components/pds-chip.js.map +0 -1
- package/components/pds-copytext.d.ts +0 -11
- package/components/pds-copytext.js +0 -88
- package/components/pds-copytext.js.map +0 -1
- package/components/pds-divider.d.ts +0 -11
- package/components/pds-divider.js +0 -54
- package/components/pds-divider.js.map +0 -1
- package/components/pds-icon.js +0 -8
- package/components/pds-icon.js.map +0 -1
- package/components/pds-icon2.js +0 -359
- package/components/pds-icon2.js.map +0 -1
- package/components/pds-image.d.ts +0 -11
- package/components/pds-image.js +0 -55
- package/components/pds-image.js.map +0 -1
- package/components/pds-input.d.ts +0 -11
- package/components/pds-input.js +0 -72
- package/components/pds-input.js.map +0 -1
- package/components/pds-label.js +0 -39
- package/components/pds-label.js.map +0 -1
- package/components/pds-link.d.ts +0 -11
- package/components/pds-link.js +0 -65
- package/components/pds-link.js.map +0 -1
- package/components/pds-progress.d.ts +0 -11
- package/components/pds-progress.js +0 -49
- package/components/pds-progress.js.map +0 -1
- package/components/pds-radio.d.ts +0 -11
- package/components/pds-radio.js +0 -78
- package/components/pds-radio.js.map +0 -1
- package/components/pds-row.d.ts +0 -11
- package/components/pds-row.js +0 -72
- package/components/pds-row.js.map +0 -1
- package/components/pds-sortable-item.d.ts +0 -11
- package/components/pds-sortable-item.js +0 -58
- package/components/pds-sortable-item.js.map +0 -1
- package/components/pds-sortable.d.ts +0 -11
- package/components/pds-sortable.js +0 -2722
- package/components/pds-sortable.js.map +0 -1
- package/components/pds-switch.d.ts +0 -11
- package/components/pds-switch.js +0 -82
- package/components/pds-switch.js.map +0 -1
- package/components/pds-tab.d.ts +0 -11
- package/components/pds-tab.js +0 -53
- package/components/pds-tab.js.map +0 -1
- package/components/pds-table-body.d.ts +0 -11
- package/components/pds-table-body.js +0 -36
- package/components/pds-table-body.js.map +0 -1
- package/components/pds-table-cell.d.ts +0 -11
- package/components/pds-table-cell.js +0 -8
- package/components/pds-table-cell.js.map +0 -1
- package/components/pds-table-cell2.js.map +0 -1
- package/components/pds-table-head-cell.d.ts +0 -11
- package/components/pds-table-head-cell.js +0 -8
- package/components/pds-table-head-cell.js.map +0 -1
- package/components/pds-table-head-cell2.js +0 -96
- package/components/pds-table-head-cell2.js.map +0 -1
- package/components/pds-table-head.d.ts +0 -11
- package/components/pds-table-head.js +0 -56
- package/components/pds-table-head.js.map +0 -1
- package/components/pds-table-row.d.ts +0 -11
- package/components/pds-table-row.js +0 -78
- package/components/pds-table-row.js.map +0 -1
- package/components/pds-table.d.ts +0 -11
- package/components/pds-table.js +0 -100
- package/components/pds-table.js.map +0 -1
- package/components/pds-tabpanel.d.ts +0 -11
- package/components/pds-tabpanel.js +0 -45
- package/components/pds-tabpanel.js.map +0 -1
- package/components/pds-tabs.d.ts +0 -11
- package/components/pds-tabs.js +0 -119
- package/components/pds-tabs.js.map +0 -1
- package/components/pds-textarea.d.ts +0 -11
- package/components/pds-textarea.js +0 -82
- package/components/pds-textarea.js.map +0 -1
- package/components/pds-tooltip.d.ts +0 -11
- package/components/pds-tooltip.js +0 -178
- package/components/pds-tooltip.js.map +0 -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 +0 -14
- 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.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/hydrate/index.d.ts +0 -218
- package/hydrate/index.js +0 -13114
- package/hydrate/package.json +0 -6
- /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-65a167b8.entry.js.map → p-19b44f85.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-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-2af2432d.system.entry.js.map → p-34a4c5ff.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-3e527956.system.entry.js.map → p-3f78956d.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-019edcbb.entry.js.map → p-42cccfec.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-bb099830.system.entry.js.map → p-4da18aac.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-8144b8d8.system.entry.js.map → p-689137e6.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e4f30321.js.map → p-6faa8c75.js.map} +0 -0
- /package/dist/pine-core/{p-30ca2db1.entry.js.map → p-7bf40997.entry.js.map} +0 -0
- /package/dist/pine-core/{p-cf147dfc.system.entry.js.map → p-7ef962b2.system.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-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-564e8159.entry.js.map → p-b2b8070b.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-51651124.entry.js.map → p-b924a6f7.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-12e537ba.system.entry.js.map → p-cd001902.system.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-825cdc06.entry.js.map → p-db38d613.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-49a28a19.system.entry.js.map → p-f3f00b4b.system.entry.js.map} +0 -0
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ed42e2ee.js');
|
|
6
|
+
const closest = require('./closest-b45138d3.js');
|
|
6
7
|
|
|
7
8
|
const pdsTableRowCss = ":host{--color-background-fixed:var(--pine-color-white);--color-background-interactive:var(--pine-color-grey-200);border-color:inherit;display:table-row;vertical-align:inherit}:host::part(checkbox-cell){background-color:var(--color-background-fixed);left:0;position:-webkit-sticky;position:sticky;z-index:1}:host(:hover),:host(:hover)::part(checkbox-cell),:host(:hover) ::slotted(pds-table-cell),:host(.is-selected),:host(.is-selected)::part(checkbox-cell),:host(.is-selected) ::slotted(pds-table-cell){background:var(--color-background-interactive)}";
|
|
8
9
|
const PdsTableRowStyle0 = pdsTableRowCss;
|
|
@@ -11,10 +12,19 @@ const PdsTableRow = class {
|
|
|
11
12
|
constructor(hostRef) {
|
|
12
13
|
index.registerInstance(this, hostRef);
|
|
13
14
|
this.pdsTableRowSelected = index.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.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 = class {
|
|
|
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,8 +49,13 @@ const PdsTableRow = class {
|
|
|
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 (index.h(index.Host, { key: '
|
|
58
|
+
return (index.h(index.Host, { key: 'dbfba35e818a96281f5df7e51e60f0bbaf4d5527', class: this.classNames(), role: "row" }, this.tableRef && this.tableRef.selectable && (index.h("pds-table-cell", { key: 'a0d9118e63db0829f4352875cbacf76c11978fff', part: this.tableRef.fixedColumn ? 'checkbox-cell' : '', class: this.tableRef.selectable ? 'has-checkbox' : '' }, index.h("pds-checkbox", { key: '60ebde7bb2e745af55e3713b952f963d50396485', componentId: this.generateUniqueId(), onClick: this.handleClick, indeterminate: this.indeterminate, label: "Select Row", labelHidden: true, checked: this.isSelected }))), index.h("slot", { key: '97f90a8d36781f3b278f83b16c778d5e2b6e9bce' })));
|
|
43
59
|
}
|
|
44
60
|
get hostElement() { return index.getElement(this); }
|
|
45
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pds-table-row.entry.cjs.js","mappings":"
|
|
1
|
+
{"file":"pds-table-row.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,cAAc,GAAG,uiBAAuiB,CAAC;AAC/jB,0BAAe,cAAc;;MCQhB,WAAW;;;;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,CAACA,eAAO,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;QA2BO,qBAAgB,GAAG;YACzB,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YAChE,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,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a,EAAE,IAAI,CAAC,aAAa,EACjC,KAAK,EAAE,YAAY,EACnB,WAAW,EAAE,IAAI,EACjB,OAAO,EAAE,IAAI,CAAC,UAAU,GACxB,CACa,CAClB,EACDA,oEAAa,CACR,EACP;KACH;;;;;;;","names":["closest","h","Host"],"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}
|
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ed42e2ee.js');
|
|
6
6
|
|
|
7
|
-
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}";
|
|
7
|
+
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}";
|
|
8
8
|
const PdsTableStyle0 = pdsTableCss;
|
|
9
9
|
|
|
10
10
|
const PdsTable = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
|
+
this.pdsTableSelect = index.createEvent(this, "pdsTableSelect", 7);
|
|
14
|
+
this.pdsTableSelectAll = index.createEvent(this, "pdsTableSelectAll", 7);
|
|
13
15
|
this.compact = undefined;
|
|
14
16
|
this.componentId = undefined;
|
|
15
17
|
this.responsive = undefined;
|
|
@@ -66,8 +68,30 @@ const PdsTable = class {
|
|
|
66
68
|
this.sortingColumn = event.detail.column;
|
|
67
69
|
this.sortingDirection = direction;
|
|
68
70
|
}
|
|
71
|
+
handleTableSelectAll(event) {
|
|
72
|
+
if (event.defaultPrevented)
|
|
73
|
+
return;
|
|
74
|
+
const pdsTableBody = this.el.querySelector('pds-table-body');
|
|
75
|
+
const tableRows = Array.from(pdsTableBody.querySelectorAll('pds-table-row'));
|
|
76
|
+
tableRows.forEach((row) => {
|
|
77
|
+
row.isSelected = event.detail.isSelected;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
async handleTableSelect(event) {
|
|
81
|
+
if (event.defaultPrevented)
|
|
82
|
+
return;
|
|
83
|
+
const allTableRows = this.el.querySelectorAll('pds-table-row');
|
|
84
|
+
const allSelectedRows = Array.from(allTableRows).every((row) => row.isSelected);
|
|
85
|
+
const noneSelectedRows = Array.from(allTableRows).every((row) => !row.isSelected);
|
|
86
|
+
const pdsTableHead = this.el.querySelector('pds-table-head');
|
|
87
|
+
if (!pdsTableHead)
|
|
88
|
+
return;
|
|
89
|
+
const headerCheckbox = pdsTableHead.shadowRoot.querySelector('pds-checkbox');
|
|
90
|
+
headerCheckbox.checked = allSelectedRows;
|
|
91
|
+
headerCheckbox.indeterminate = !allSelectedRows && !noneSelectedRows;
|
|
92
|
+
}
|
|
69
93
|
render() {
|
|
70
|
-
return (index.h(index.Host, { key: '
|
|
94
|
+
return (index.h(index.Host, { key: '95cc4db296681faa0fc046c9b1d6807d640b7730', class: this.classNames(), id: this.componentId, role: "grid", selectable: this.selectable, tabindex: "0" }, index.h("slot", { key: 'ecc9bc0761409d5a2819a05d72290c294e27454f' })));
|
|
71
95
|
}
|
|
72
96
|
get el() { return index.getElement(this); }
|
|
73
97
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pds-table.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,WAAW,GAAG,
|
|
1
|
+
{"file":"pds-table.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,WAAW,GAAG,+gDAA+gD,CAAC;AACpiD,uBAAe,WAAW;;MCMb,QAAQ;;;;;;;;;;6BA4BqB,IAAI;gCACA,KAAK;;IAajD,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;KAC3B;IAEO,UAAU;QAChB,MAAM,UAAU,GAAG,CAAC,WAAW,CAAC,CAAC;QAEjC,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SAC/B;QAED,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,UAAU,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;SAClC;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC9B;IAEO,SAAS,CAAC,MAAc,EAAE,SAAyB;QACzD,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;;QAG1D,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC;;QAG1E,MAAM,iBAAiB,GAAkB,KAAK,CAAC,IAAI,CACjD,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,+BAA+B,CA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E,EACxB,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,IAAI,EAAC,MAAM,EACX,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,QAAQ,EAAC,GAAG,IAEZD,oEAAa,CACR,EACP;KACH;;;;;;;","names":["h","Host"],"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}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ed42e2ee.js');
|
|
6
6
|
|
|
7
7
|
const pdsTabpanelCss = ":host{display:block}.pds-tabpanel{display:none;margin-top:var(--spacing-panel-margin-top);padding:var(--spacing-panel-padding)}.pds-tabpanel.is-active{display:block}";
|
|
8
8
|
const PdsTabpanelStyle0 = pdsTabpanelCss;
|
|
@@ -16,7 +16,7 @@ const PdsTabpanel = class {
|
|
|
16
16
|
this.selected = false;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (index.h(index.Host, { key: '
|
|
19
|
+
return (index.h(index.Host, { key: 'b071d63a6211e70b09f11a18609d15728eb485c6', slot: "tabpanels" }, index.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" }, index.h("slot", { key: '0cac8366d5502be7033d1b71b681bf564aa557e8' }))));
|
|
20
20
|
}
|
|
21
21
|
get el() { return index.getElement(this); }
|
|
22
22
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ed42e2ee.js');
|
|
6
6
|
|
|
7
7
|
const pdsTabsCss = ":host{--spacing-panel-margin-top:0;--spacing-panel-padding:0;--outline:2px solid var(--pine-color-blue-200);--spacing-gap-availability:var(--pine-spacing-100);--spacing-gap-default:var(--pine-spacing-300);--spacing-gap-filter:var(--pine-spacing-200);display:block}.pds-tabs__tablist{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--spacing-gap-default)}:host(.pds-tabs--availability) .pds-tabs__tablist{gap:var(--spacing-gap-availability)}:host(.pds-tabs--filter) .pds-tabs__tablist{gap:var(--spacing-gap-filter)}";
|
|
8
8
|
const PdsTabsStyle0 = pdsTabsCss;
|
|
@@ -88,7 +88,7 @@ const PdsTabs = class {
|
|
|
88
88
|
this.passPropsToChildren();
|
|
89
89
|
}
|
|
90
90
|
render() {
|
|
91
|
-
return (index.h(index.Host, { key: '
|
|
91
|
+
return (index.h(index.Host, { key: 'a36e242d5e746954f80778cf515879ca82258978', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, index.h("div", { key: 'd6d89fd90a9a534f249c549e34308ed245773f60', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel }, index.h("slot", { key: '9b5e5268c27ecf2a5331cec64d2c7121cef366a1', name: "tabs" })), index.h("slot", { key: 'b835cf1befe68f54b1751a976846d271ce97634e', name: "tabpanels" })));
|
|
92
92
|
}
|
|
93
93
|
get el() { return index.getElement(this); }
|
|
94
94
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const pdsLabel = require('./pds-label-
|
|
5
|
+
const index = require('./index-ed42e2ee.js');
|
|
6
|
+
const pdsLabel = require('./pds-label-15dd83ef.js');
|
|
7
7
|
|
|
8
8
|
const pdsTextareaCss = ":host{--border-interactive-default:var(--pine-border-width-thin) solid var(--pine-color-grey-400);--box-shadow-focus:0 0 0 2px var(--color-focus-visible-outline);--box-shadow-focus-error:0 0 0 2px var(--color-focus-visible-outline-error);--color:var(--pine-color-charcoal-400);--color-background:var(--pine-color-white);--color-background-disabled:var(--pine-color-grey-200);--color-border-default:var(--pine-color-grey-400);--color-border-error:var(--pine-color-red-300);--color-border-focus-visible:var(--pine-color-grey-300);--color-border-hover:var(--pine-color-grey-500);--color-disabled-default:var(--pine-color-charcoal-200);--color-error-default:var(--pine-color-red-300);--color-focus-visible-outline:var(--pine-color-blue-200);--color-focus-visible-outline-error:var(--pine-color-red-200);--color-placeholder-default:var(--pine-color-charcoal-200);--font-size-field:var(--pine-font-size-100);--font-size-helper-message:var(--pine-font-size-075);--font-size-label:var(--pine-font-size-100);--font-weight-field:var(--pine-font-weight-normal);--font-weight-helper-message:var(--pine-font-weight-normal);--font-weight-label:var(--pine-font-weight-medium);--line-height-field:var(--pine-line-height-150);--line-height-helper-message:var(--pine-line-height-125);--line-height-label:var(--pine-line-height-150);--spacing-margin-block-end-label:var(--pine-spacing-100);--spacing-margin-block-start-helper-message:var(--pine-spacing-100);--spacing-padding-block-field:var(--pine-spacing-100);--spacing-padding-inline-field:var(--pine-spacing-200);display:inline}.pds-textarea{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}label{display:block;font-size:var(--font-size-label);font-weight:var(--font-weight-label);line-height:var(--line-height-label);-webkit-margin-after:var(--spacing-margin-block-end-label);margin-block-end:var(--spacing-margin-block-end-label)}.pds-textarea__field{background-color:var(--color-background);border:var(--pine-border-interactive-default);border-radius:var(--pine-border-radius-md);font-family:inherit;font-size:var(--font-size-field);font-weight:var(--font-weight-field);line-height:var(--line-height-field);padding:var(--spacing-padding-block-field) var(--spacing-padding-inline-field)}.pds-textarea__field:hover:not(:disabled,.is-invalid){border-color:var(--color-border-hover)}.pds-textarea__field:disabled{background-color:var(--color-background-disabled);color:var(--color-disabled-default);cursor:not-allowed}.pds-textarea__field:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-textarea__field::-webkit-input-placeholder{color:var(--color-placeholder-default)}.pds-textarea__field::-moz-placeholder{color:var(--color-placeholder-default)}.pds-textarea__field:-ms-input-placeholder{color:var(--color-placeholder-default)}.pds-textarea__field::-ms-input-placeholder{color:var(--color-placeholder-default)}.pds-textarea__field::placeholder{color:var(--color-placeholder-default)}.pds-textarea__field.is-invalid{border-color:var(--color-border-error)}.pds-textarea__field.is-invalid:focus-visible{-webkit-box-shadow:var(--box-shadow-focus-error);box-shadow:var(--box-shadow-focus-error)}.pds-textarea__error-message,.pds-textarea__helper-message{font-size:var(--font-size-helper-message);font-weight:var(--font-weight-helper-message);line-height:var(--line-height-helper-message);-webkit-margin-before:var(--spacing-margin-block-start-helper-message);margin-block-start:var(--spacing-margin-block-start-helper-message)}.pds-textarea__error-message{color:var(--color-error-default)}";
|
|
9
9
|
const PdsTextareaStyle0 = pdsTextareaCss;
|
|
@@ -41,10 +41,10 @@ const PdsTextarea = class {
|
|
|
41
41
|
return classNames.join(' ');
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (index.h(index.Host, { key: '
|
|
45
|
-
index.h(pdsLabel.PdsLabel, { key: '
|
|
46
|
-
index.h("p", { key: '
|
|
47
|
-
index.h("p", { key: '
|
|
44
|
+
return (index.h(index.Host, { key: 'f58ccd5b20fc30c6e6153e04e98b27fe265040af', "aria-disabled": this.disabled ? 'true' : null }, index.h("div", { key: '480b51012d0f7a05d83fb8cb359d2bc3a4e82189', class: "pds-textarea" }, this.label &&
|
|
45
|
+
index.h(pdsLabel.PdsLabel, { key: '0b34ee6ee8eec6891c00596f840d028ab6ac36bb', htmlFor: this.componentId, text: this.label }), index.h("textarea", { key: '6f066ce38aaec3257bddd69715118aa5740723c1', "aria-describedby": pdsLabel.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 &&
|
|
46
|
+
index.h("p", { key: '91c66558978cdbb3191c0af31c34c2647749c01a', class: "pds-textarea__helper-message", id: pdsLabel.messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
|
|
47
|
+
index.h("p", { key: 'da8320d10ace733c7181ab3c6827da99d94d7ebd', "aria-live": "assertive", class: "pds-textarea__error-message", id: pdsLabel.messageId(this.componentId, 'error') }, this.errorMessage))));
|
|
48
48
|
}
|
|
49
49
|
get el() { return index.getElement(this); }
|
|
50
50
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ed42e2ee.js');
|
|
6
6
|
|
|
7
7
|
const positionTooltip = ({ elem, elemPlacement, overlay, offset = 8 }) => {
|
|
8
8
|
if (elem == undefined)
|
|
@@ -132,13 +132,13 @@ const PdsTooltip = class {
|
|
|
132
132
|
this.opened = false;
|
|
133
133
|
}
|
|
134
134
|
render() {
|
|
135
|
-
return (index.h(index.Host, { key: '
|
|
135
|
+
return (index.h(index.Host, { key: '52999e010e83fb265a46867b0b29169f7363a496', onMouseEnter: this.handleShow, onMouseLeave: this.handleHide, onFocusin: this.handleShow, onFocusout: this.handleHide }, index.h("div", { key: '6bb63ba10eab04114ced7ead7079d46cc22cb72c', class: `
|
|
136
136
|
pds-tooltip
|
|
137
137
|
pds-tooltip--${this.placement}
|
|
138
138
|
${this.htmlContent ? 'pds-tooltip--has-html-content' : ''}
|
|
139
139
|
${this.opened ? 'pds-tooltip--is-open' : ''}
|
|
140
140
|
${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}
|
|
141
|
-
` }, index.h("span", { key: '
|
|
141
|
+
` }, index.h("span", { key: '930c148c837912ad9d5ea57e92246e0211b355c4', "aria-describedby": this.componentId, class: "pds-tooltip__trigger" }, index.h("slot", { key: '813429e2865fae92050d779ca7f47072313db851' })), index.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" }, index.h("slot", { key: '90b3f02974d250375d55ed332a9c525626ff5439', name: "content" }), this.content))));
|
|
142
142
|
}
|
|
143
143
|
get el() { return index.getElement(this); }
|
|
144
144
|
static get watchers() { return {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ed42e2ee.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -19,7 +19,7 @@ const patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["pds-copytext.cjs",[[1,"pds-copytext",{"border":[516],"componentId":[1,"component-id"],"fullWidth":[4,"full-width"],"truncate":[4],"value":[1]}]]],["pds-table-
|
|
22
|
+
return index.bootstrapLazy([["pds-table-head.cjs",[[1,"pds-table-head",{"indeterminate":[1028],"isSelected":[1028,"is-selected"]}]]],["pds-copytext.cjs",[[1,"pds-copytext",{"border":[516],"componentId":[1,"component-id"],"fullWidth":[4,"full-width"],"truncate":[4],"value":[1]}]]],["pds-table-row.cjs",[[1,"pds-table-row",{"indeterminate":[1028],"isSelected":[1028,"is-selected"]}]]],["pds-accordion.cjs",[[1,"pds-accordion",{"componentId":[1,"component-id"],"isOpen":[1540,"open"]},null,{"isOpen":["handleOpenState"]}]]],["pds-avatar.cjs",[[1,"pds-avatar",{"alt":[1],"badge":[4],"componentId":[1,"component-id"],"dropdown":[4],"image":[1],"size":[513],"variant":[513]}]]],["pds-chip.cjs",[[1,"pds-chip",{"componentId":[1,"component-id"],"sentiment":[1],"dot":[4],"label":[1],"large":[4],"variant":[1]}]]],["pds-link.cjs",[[1,"pds-link",{"componentId":[1,"component-id"],"external":[4],"variant":[1],"fontSize":[1,"font-size"],"href":[1]}]]],["pds-sortable-item.cjs",[[6,"pds-sortable-item",{"enableActions":[4,"enable-actions"],"componentId":[1,"component-id"],"showHandle":[1028,"show-handle"]}]]],["pds-box.cjs",[[0,"pds-box",{"alignItems":[1,"align-items"],"auto":[4],"backgroundColor":[1,"background-color"],"border":[4],"borderColor":[1,"border-color"],"borderRadius":[1,"border-radius"],"direction":[1],"display":[1],"fit":[4],"gap":[1],"flex":[1],"justifyContent":[1,"justify-content"],"minHeight":[1,"min-height"],"minWidth":[1,"min-width"],"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"padding":[1],"shadow":[1],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]}]]],["pds-divider.cjs",[[1,"pds-divider",{"componentId":[1,"component-id"],"offset":[1],"vertical":[4]}]]],["pds-image.cjs",[[1,"pds-image",{"alt":[1],"componentId":[1,"component-id"],"height":[2],"loading":[1],"sizes":[1],"src":[1],"srcset":[1],"width":[2]}]]],["pds-input.cjs",[[1,"pds-input",{"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[4],"label":[1],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"type":[1],"value":[1025]}]]],["pds-loader.cjs",[[1,"pds-loader",{"isLoading":[4,"is-loading"],"showLabel":[4,"show-label"],"size":[513],"variant":[1]}]]],["pds-progress.cjs",[[1,"pds-progress",{"animated":[4],"componentId":[1,"component-id"],"fillColor":[1,"fill-color"],"label":[1],"percent":[2],"showPercent":[4,"show-percent"]}]]],["pds-radio.cjs",[[2,"pds-radio",{"checked":[4],"disabled":[4],"errorMessage":[1,"error-message"],"invalid":[4],"componentId":[1,"component-id"],"label":[1],"helperMessage":[1,"helper-message"],"name":[1],"required":[4],"value":[1]}]]],["pds-row.cjs",[[0,"pds-row",{"alignItems":[1,"align-items"],"border":[4],"colGap":[1,"col-gap"],"componentId":[1,"component-id"],"justifyContent":[1,"justify-content"],"minHeight":[1,"min-height"],"noWrap":[4,"no-wrap"]}]]],["pds-sortable.cjs",[[6,"pds-sortable",{"border":[516],"componentId":[1,"component-id"],"dividers":[516],"handleType":[1,"handle-type"]}]]],["pds-switch.cjs",[[1,"pds-switch",{"componentId":[1,"component-id"],"checked":[4],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[4],"label":[1],"name":[1],"required":[4],"type":[1],"value":[1]}]]],["pds-tab.cjs",[[4,"pds-tab",{"name":[1],"parentComponentId":[1,"parent-component-id"],"variant":[1],"index":[2],"selected":[4]}]]],["pds-table.cjs",[[1,"pds-table",{"compact":[4],"componentId":[1,"component-id"],"responsive":[4],"fixedColumn":[4,"fixed-column"],"selectable":[4],"sortingColumn":[32],"sortingDirection":[32]},[[0,"pdsTableSort","handleTableSort"],[0,"pdsTableSelectAll","handleTableSelectAll"],[0,"pdsTableRowSelected","handleTableSelect"]]]]],["pds-table-body.cjs",[[1,"pds-table-body"]]],["pds-tabpanel.cjs",[[4,"pds-tabpanel",{"name":[1],"parentComponentId":[1,"parent-component-id"],"variant":[1],"selected":[1028]}]]],["pds-tabs.cjs",[[1,"pds-tabs",{"tablistLabel":[1,"tablist-label"],"componentId":[1,"component-id"],"variant":[1],"activeTabName":[1025,"active-tab-name"],"activeTabIndex":[1026,"active-tab-index"]},[[16,"pdsTabClick","tabClickHandler"],[0,"keydown","handleKeyDown"]]]]],["pds-textarea.cjs",[[1,"pds-textarea",{"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[1028],"label":[1],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1025]}]]],["pds-tooltip.cjs",[[1,"pds-tooltip",{"content":[1],"componentId":[1,"component-id"],"hasArrow":[4,"has-arrow"],"htmlContent":[4,"html-content"],"placement":[513],"opened":[1540],"isOpen":[32],"showTooltip":[64],"hideTooltip":[64]},null,{"opened":["handleOpenToggle"]}]]],["pds-icon.cjs",[[1,"pds-icon",{"color":[1],"icon":[8],"name":[513],"size":[513],"src":[1],"ariaLabel":[32],"isVisible":[32],"svgContent":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"]}]]],["pds-button.cjs",[[1,"pds-button",{"componentId":[1,"component-id"],"disabled":[4],"icon":[1],"name":[1],"value":[1],"type":[1],"variant":[1]}]]],["pds-table-head-cell.cjs",[[1,"pds-table-head-cell",{"sortable":[4],"sortingDirection":[32],"tableScrolling":[32],"isSelected":[32]}]]],["pds-table-cell.cjs",[[1,"pds-table-cell",{"truncate":[4],"tableScrolling":[32]}]]],["pds-checkbox.cjs",[[1,"pds-checkbox",{"checked":[1028],"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"indeterminate":[1028],"invalid":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1]},null,{"checked":["updateIndeterminate"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"components/pds-image/pds-image.js",
|
|
12
12
|
"components/pds-input/pds-input.js",
|
|
13
13
|
"components/pds-link/pds-link.js",
|
|
14
|
+
"components/pds-loader/pds-loader.js",
|
|
14
15
|
"components/pds-progress/pds-progress.js",
|
|
15
16
|
"components/pds-radio/pds-radio.js",
|
|
16
17
|
"components/pds-row/pds-row.js",
|
|
@@ -15,7 +15,7 @@ export class PdsAvatar {
|
|
|
15
15
|
this.renderAvatar = () => {
|
|
16
16
|
return (this.dropdown
|
|
17
17
|
?
|
|
18
|
-
h("button", { class: "pds-avatar__button", type: "button" }, this.renderAssetWrapper())
|
|
18
|
+
h("button", { class: "pds-avatar__button", type: "button", "aria-label": "Avatar dropdown trigger" }, this.renderAssetWrapper())
|
|
19
19
|
:
|
|
20
20
|
this.renderAssetWrapper());
|
|
21
21
|
};
|
|
@@ -59,7 +59,7 @@ export class PdsAvatar {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: '8c43a9de8b7799b5aafff0c12c2e95e53bed2041', id: this.componentId, class: Object.assign({}, this.classNames()) }, this.renderAvatar()));
|
|
63
63
|
}
|
|
64
64
|
static get is() { return "pds-avatar"; }
|
|
65
65
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-avatar.js","sourceRoot":"","sources":["../../../src/components/pds-avatar/pds-av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AAK,GAA2B;YACpC,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;SACX,CAAA;QAED,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YACrB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;aAAM,CAAC;YACN,OAAO,IAAI,CAAC,IAAI,CAAA;QAClB,CAAC;IACH,CAAC;IAqDD,MAAM;QAEJ,OAAO,CACL,EAAC,IAAI,qDACH,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,KAAK,oBAAM,IAAI,CAAC,UAAU,EAAE,KAE3B,IAAI,CAAC,YAAY,EAAE,CACf,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\nimport { checkCircleFilled, userFilled } from '@pine-ds/icons/icons';\n\n/**\n * @part image - The main image element that represents the avatar component.\n*/\n@Component({\n tag: 'pds-avatar',\n styleUrl: 'pds-avatar.scss',\n shadow: true,\n})\nexport class PdsAvatar {\n\n /**\n * The alt for a custom user image.\n * @defaultValue null\n */\n @Prop() alt?: string | null = null;\n\n /**\n * Determines whether the badge is visible or not.\n * @defaultValue false\n */\n @Prop() badge? = false;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines whether the avatar functions as a dropdown trigger.\n * @defaultValue false\n */\n @Prop() dropdown? = false;\n\n /**\n * The src for a custom user image.\n * @defaultValue null\n */\n @Prop() image?: string | null = null;\n\n /**\n * Size of the avatar. Value can be preset or custom.\n * @defaultValue lg\n */\n @Prop({ reflect: true }) size?:\n | 'xl' // 64px\n | 'lg' // 56px\n | 'md' // 40px\n | 'sm' // 32px\n | 'xs' // 24px\n | string = 'lg';\n\n /**\n * Determines the variant of avatar. Changes appearance accordingly.\n * @defaultValue customer\n */\n @Prop({ reflect: true }) variant?: 'customer' | 'admin' = 'customer';\n\n private avatarSize() {\n const sizes: { [key: string]: any } = {\n xs: '24px',\n sm: '32px',\n md: '40px',\n lg: '56px',\n xl: '64px',\n }\n\n if (sizes[this.size]) {\n return sizes[this.size];\n } else {\n return this.size\n }\n }\n\n private renderAssetWrapper = () => {\n const style = {\n height: this.avatarSize(),\n width: this.avatarSize()\n };\n\n return (\n <div style={style} part=\"asset-wrapper\">\n {this.renderIconOrImage()}\n {this.renderBadge()}\n </div>\n )\n };\n\n private renderAvatar = () => {\n return (\n this.dropdown\n ?\n <button class=\"pds-avatar__button\" type=\"button\" aria-label=\"Avatar dropdown trigger\">\n {this.renderAssetWrapper()}\n </button>\n :\n this.renderAssetWrapper()\n )\n };\n\n private renderBadge = () => (\n this.badge\n // Percentage is average size of icon in relation to total avatar size\n // of all preset sizes found in Figma.\n // Used to allow icons to scale to container size\n && <pds-icon class=\"pds-avatar__badge\" icon={checkCircleFilled} size=\"33.53%\"></pds-icon>\n );\n\n private renderIconOrImage = () => (\n this.image\n ? <img alt={this.alt} src={this.image} />\n // Percentage is average size of icon in relation to total avatar size\n // of all preset sizes found in Figma.\n // Used to allow icons to scale to container size\n : <pds-icon color=\"var(--pine-color-blue-400)\" icon={userFilled} size=\"33.53%\"></pds-icon>\n );\n\n private classNames = () => (\n {\n 'pds-avatar': true,\n [`pds-avatar--has-image`]: this.image !== '' && this.image !== null, // Remove when FF supports :has selector\n [`pds-avatar--${this.variant}`]: this.variant === 'admin'\n }\n );\n\n render() {\n\n return (\n <Host\n id={this.componentId}\n class={{...this.classNames()}}\n >\n {this.renderAvatar()}\n </Host>\n );\n }\n}\n"]}
|
|
@@ -35,9 +35,23 @@
|
|
|
35
35
|
color: var(--color-invalid);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
:host(.is-indeterminate) input
|
|
38
|
+
:host(.is-indeterminate) input {
|
|
39
|
+
background: var(--color-checked);
|
|
40
|
+
border-color: var(--color-checked);
|
|
41
|
+
}
|
|
42
|
+
:host(.is-indeterminate) input::after {
|
|
43
|
+
border: 1px solid var(--color-border-icon);
|
|
39
44
|
border-bottom: 0;
|
|
45
|
+
border-left: 0;
|
|
46
|
+
border-top: 0;
|
|
47
|
+
content: "";
|
|
48
|
+
display: block;
|
|
49
|
+
height: 7px;
|
|
50
|
+
left: 50%;
|
|
51
|
+
position: absolute;
|
|
52
|
+
top: 50%;
|
|
40
53
|
transform: rotate(87deg) translate3d(-114%, 25%, 0);
|
|
54
|
+
width: 4px;
|
|
41
55
|
}
|
|
42
56
|
|
|
43
57
|
input {
|
|
@@ -14,7 +14,13 @@ export class PdsCheckbox {
|
|
|
14
14
|
value: this.value
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
|
-
this.
|
|
17
|
+
this.handleInput = () => {
|
|
18
|
+
this.pdsCheckboxInput.emit({
|
|
19
|
+
checked: this.checked,
|
|
20
|
+
value: this.value
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
this.checked = false;
|
|
18
24
|
this.componentId = undefined;
|
|
19
25
|
this.disabled = undefined;
|
|
20
26
|
this.errorMessage = undefined;
|
|
@@ -27,6 +33,9 @@ export class PdsCheckbox {
|
|
|
27
33
|
this.required = undefined;
|
|
28
34
|
this.value = undefined;
|
|
29
35
|
}
|
|
36
|
+
updateIndeterminate() {
|
|
37
|
+
this.indeterminate = undefined;
|
|
38
|
+
}
|
|
30
39
|
classNames() {
|
|
31
40
|
const classNames = [];
|
|
32
41
|
if (this.invalid) {
|
|
@@ -41,9 +50,9 @@ export class PdsCheckbox {
|
|
|
41
50
|
return classNames.join(' ');
|
|
42
51
|
}
|
|
43
52
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
45
|
-
h("div", { key: '
|
|
46
|
-
h("div", { key: '
|
|
53
|
+
return (h(Host, { key: 'ad7d0dd8ce09b69abc0024541ff2b2d69a8db0b0', class: this.classNames() }, h("input", { key: 'fbc513372055e685d3beb16fba9c404db3d0528a', type: "checkbox", "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, id: this.componentId, indeterminate: this.indeterminate, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleCheckboxChange, onInput: this.handleInput }), h(PdsLabel, { key: '12444bd716bc8ae952a0bf38471d00e6d3a9fe3b', htmlFor: this.componentId, text: this.label, classNames: this.labelHidden ? 'visually-hidden' : '' }), this.helperMessage &&
|
|
54
|
+
h("div", { key: 'e85ffb338c44a3f924b75d1869c781db9a93350b', class: 'pds-checkbox__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
55
|
+
h("div", { key: '8071425f43f89ff44ce8bdb608737b1f574e2440', class: `pds-checkbox__message pds-checkbox__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, this.errorMessage)));
|
|
47
56
|
}
|
|
48
57
|
static get is() { return "pds-checkbox"; }
|
|
49
58
|
static get encapsulation() { return "shadow"; }
|
|
@@ -68,13 +77,14 @@ export class PdsCheckbox {
|
|
|
68
77
|
"references": {}
|
|
69
78
|
},
|
|
70
79
|
"required": false,
|
|
71
|
-
"optional":
|
|
80
|
+
"optional": true,
|
|
72
81
|
"docs": {
|
|
73
82
|
"tags": [],
|
|
74
83
|
"text": "It determines whether or not the checkbox is checked."
|
|
75
84
|
},
|
|
76
85
|
"attribute": "checked",
|
|
77
|
-
"reflect": false
|
|
86
|
+
"reflect": false,
|
|
87
|
+
"defaultValue": "false"
|
|
78
88
|
},
|
|
79
89
|
"componentId": {
|
|
80
90
|
"type": "string",
|
|
@@ -146,7 +156,7 @@ export class PdsCheckbox {
|
|
|
146
156
|
},
|
|
147
157
|
"indeterminate": {
|
|
148
158
|
"type": "boolean",
|
|
149
|
-
"mutable":
|
|
159
|
+
"mutable": true,
|
|
150
160
|
"complexType": {
|
|
151
161
|
"original": "boolean",
|
|
152
162
|
"resolved": "boolean",
|
|
@@ -287,6 +297,33 @@ export class PdsCheckbox {
|
|
|
287
297
|
}
|
|
288
298
|
}
|
|
289
299
|
}
|
|
300
|
+
}, {
|
|
301
|
+
"method": "pdsCheckboxInput",
|
|
302
|
+
"name": "pdsCheckboxInput",
|
|
303
|
+
"bubbles": true,
|
|
304
|
+
"cancelable": true,
|
|
305
|
+
"composed": true,
|
|
306
|
+
"docs": {
|
|
307
|
+
"tags": [],
|
|
308
|
+
"text": ""
|
|
309
|
+
},
|
|
310
|
+
"complexType": {
|
|
311
|
+
"original": "CheckboxChangeEventDetail",
|
|
312
|
+
"resolved": "CheckboxChangeEventDetail<any>",
|
|
313
|
+
"references": {
|
|
314
|
+
"CheckboxChangeEventDetail": {
|
|
315
|
+
"location": "import",
|
|
316
|
+
"path": "./checkbox-interface",
|
|
317
|
+
"id": "src/components/pds-checkbox/checkbox-interface.ts::CheckboxChangeEventDetail"
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}];
|
|
322
|
+
}
|
|
323
|
+
static get watchers() {
|
|
324
|
+
return [{
|
|
325
|
+
"propName": "checked",
|
|
326
|
+
"methodName": "updateIndeterminate"
|
|
290
327
|
}];
|
|
291
328
|
}
|
|
292
329
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-checkbox.js","sourceRoot":"","sources":["../../../src/components/pds-checkbox/pds-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"pds-checkbox.js","sourceRoot":"","sources":["../../../src/components/pds-checkbox/pds-checkbox.tsx"],"names":[],"mappings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,YAAY,CACd,CAEH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, Host, Event, EventEmitter, Watch } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\nimport { CheckboxChangeEventDetail } from './checkbox-interface';\n\n@Component({\n tag: 'pds-checkbox',\n styleUrl: 'pds-checkbox.scss',\n shadow: true,\n})\nexport class PdsCheckbox {\n /**\n * It determines whether or not the checkbox is checked.\n */\n @Prop({ mutable: true }) checked?: boolean = false;\n\n /**\n * A unique identifier used for the underlying component `id` attribute and the label `for` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * It determines whether or not the checkbox is disabled.\n */\n @Prop() disabled: boolean;\n\n /**\n * Displays message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * String used for helper message below checkbox.\n */\n @Prop() helperMessage: string;\n\n /**\n * If `true`, the checkbox will visually appear as indeterminate.\n * Only JavaScript can set the objects `indeterminate` property. See [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes).\n */\n @Prop({ mutable: true }) indeterminate: boolean;\n\n /**\n * It determines whether or not the checkbox is invalid.\n */\n @Prop() invalid: boolean;\n\n /**\n * String used for label text next to checkbox.\n */\n @Prop() label: string;\n\n /**\n * Visually hides the label text for instances where only the checkbox should be displayed. Label remains accessible to assistive technology such as screen readers.\n */\n @Prop() labelHidden: boolean;\n\n /**\n * String used for checkbox `name` attribute.\n */\n @Prop() name: string;\n\n /**\n * It determines whether or not the checkbox is required.\n */\n @Prop() required: boolean;\n\n /**\n * The value of the checkbox that is submitted with a form.\n */\n @Prop() value: string;\n\n /**\n * Event emitted that contains the `value` and `checked`.\n */\n @Event() pdsCheckboxChange: EventEmitter<CheckboxChangeEventDetail>;\n\n @Event() pdsCheckboxInput: EventEmitter<CheckboxChangeEventDetail>;\n\n @Watch('checked')\n updateIndeterminate() {\n this.indeterminate = undefined\n }\n\n private handleCheckboxChange = (e: Event) => {\n if (this.disabled) {\n return;\n }\n\n const target = e.target as HTMLInputElement;\n this.checked = target.checked;\n\n this.pdsCheckboxChange.emit({\n checked: target.checked,\n value: this.value\n });\n }\n\n private handleInput = () => {\n this.pdsCheckboxInput.emit({\n checked: this.checked,\n value: this.value\n });\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) { classNames.push('is-invalid'); }\n if (this.indeterminate) { classNames.push('is-indeterminate'); }\n if (this.disabled) { classNames.push('is-disabled'); }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host class={this.classNames()}>\n <input\n type=\"checkbox\"\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n id={this.componentId}\n indeterminate={this.indeterminate}\n name={this.name}\n value={this.value}\n checked={this.checked}\n required={this.required}\n disabled={this.disabled}\n onChange={this.handleCheckboxChange}\n onInput={this.handleInput}\n />\n <PdsLabel htmlFor={this.componentId} text={this.label} classNames={this.labelHidden ? 'visually-hidden' : ''} />\n {this.helperMessage &&\n <div\n class={'pds-checkbox__message'}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-checkbox__message pds-checkbox__message--error`}\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n {this.errorMessage}\n </div>\n }\n </Host>\n );\n }\n}\n"]}
|