@pine-ds/core 3.0.0 → 3.0.1
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/index2.js +1 -1
- package/components/index2.js.map +1 -1
- package/components/pds-avatar.js +1 -1
- package/components/pds-avatar.js.map +1 -1
- package/components/pds-checkbox2.js +1 -1
- package/components/pds-checkbox2.js.map +1 -1
- package/components/pds-chip.js.map +1 -1
- package/components/pds-divider.js +1 -1
- package/components/pds-divider.js.map +1 -1
- package/components/pds-icon2.js +1 -1
- package/components/pds-icon2.js.map +1 -1
- package/components/pds-input.js.map +1 -1
- package/components/pds-select.js +1 -1
- package/components/pds-select.js.map +1 -1
- package/components/pds-sortable.js +27 -12
- package/components/pds-sortable.js.map +1 -1
- package/components/pds-tab.js +1 -1
- package/components/pds-tab.js.map +1 -1
- package/components/pds-table-cell2.js +1 -1
- package/components/pds-table-cell2.js.map +1 -1
- package/components/pds-table-head.js +1 -1
- package/components/pds-table-head.js.map +1 -1
- package/components/pds-table-row.js +1 -1
- package/components/pds-table-row.js.map +1 -1
- package/components/pds-textarea.js.map +1 -1
- package/dist/cjs/{index-DrrGT4DS.js → index-xqJkQM0c.js} +3 -3
- package/dist/cjs/index-xqJkQM0c.js.map +1 -0
- package/dist/cjs/pds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
- package/dist/cjs/pds-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-avatar.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-button.cjs.entry.js +1 -1
- package/dist/cjs/pds-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-checkbox.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-chip.cjs.entry.js +1 -1
- package/dist/cjs/pds-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-chip.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-copytext.cjs.entry.js +1 -1
- package/dist/cjs/pds-divider.cjs.entry.js +1 -1
- package/dist/cjs/pds-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-divider.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-icon.cjs.entry.js +1 -1
- package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-icon.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-input.cjs.entry.js +1 -1
- package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-input.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-link.cjs.entry.js +1 -1
- package/dist/cjs/pds-radio.cjs.entry.js +1 -1
- package/dist/cjs/pds-select.cjs.entry.js +2 -2
- package/dist/cjs/pds-select.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-select.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-sortable-item.cjs.entry.js +1 -1
- package/dist/cjs/pds-sortable.cjs.entry.js +27 -12
- package/dist/cjs/pds-sortable.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-sortable.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-switch.cjs.entry.js +1 -1
- package/dist/cjs/pds-tab.cjs.entry.js +1 -1
- package/dist/cjs/pds-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-tab.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-cell.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-head.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-head.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-head.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-table-row.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-row.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-row.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-textarea.cjs.entry.js +1 -1
- package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-textarea.entry.cjs.js.map +1 -1
- package/dist/collection/components/pds-avatar/pds-avatar.css +2 -2
- package/dist/collection/components/pds-checkbox/pds-checkbox.css +5 -5
- package/dist/collection/components/pds-chip/pds-chip.tokens.css +0 -3
- package/dist/collection/components/pds-divider/pds-divider.css +2 -0
- package/dist/collection/components/pds-input/pds-input.tokens.css +0 -3
- package/dist/collection/components/pds-select/pds-select.css +1 -1
- package/dist/collection/components/pds-select/pds-select.tokens.css +0 -3
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.css +2 -1
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.css +1 -1
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.css +1 -1
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +5 -5
- package/dist/docs.json +1 -1
- package/dist/esm/{index-B_0tBgWY.js → index-DgttLLHX.js} +3 -3
- package/dist/esm/index-DgttLLHX.js.map +1 -0
- package/dist/esm/pds-accordion.entry.js +1 -1
- package/dist/esm/pds-avatar.entry.js +2 -2
- package/dist/esm/pds-avatar.entry.js.map +1 -1
- package/dist/esm/pds-button.entry.js +1 -1
- package/dist/esm/pds-checkbox.entry.js +2 -2
- package/dist/esm/pds-checkbox.entry.js.map +1 -1
- package/dist/esm/pds-chip.entry.js +1 -1
- package/dist/esm/pds-chip.entry.js.map +1 -1
- package/dist/esm/pds-copytext.entry.js +1 -1
- package/dist/esm/pds-divider.entry.js +1 -1
- package/dist/esm/pds-divider.entry.js.map +1 -1
- package/dist/esm/pds-icon.entry.js +1 -1
- package/dist/esm/pds-icon.entry.js.map +1 -1
- package/dist/esm/pds-input.entry.js +1 -1
- package/dist/esm/pds-input.entry.js.map +1 -1
- package/dist/esm/pds-link.entry.js +1 -1
- package/dist/esm/pds-radio.entry.js +1 -1
- package/dist/esm/pds-select.entry.js +2 -2
- package/dist/esm/pds-select.entry.js.map +1 -1
- package/dist/esm/pds-sortable-item.entry.js +1 -1
- package/dist/esm/pds-sortable.entry.js +27 -12
- package/dist/esm/pds-sortable.entry.js.map +1 -1
- package/dist/esm/pds-switch.entry.js +1 -1
- package/dist/esm/pds-tab.entry.js +1 -1
- package/dist/esm/pds-tab.entry.js.map +1 -1
- package/dist/esm/pds-table-cell.entry.js +1 -1
- package/dist/esm/pds-table-cell.entry.js.map +1 -1
- package/dist/esm/pds-table-head-cell.entry.js +1 -1
- package/dist/esm/pds-table-head.entry.js +1 -1
- package/dist/esm/pds-table-head.entry.js.map +1 -1
- package/dist/esm/pds-table-row.entry.js +1 -1
- package/dist/esm/pds-table-row.entry.js.map +1 -1
- package/dist/esm/pds-textarea.entry.js +1 -1
- package/dist/esm/pds-textarea.entry.js.map +1 -1
- package/dist/esm-es5/{index-B_0tBgWY.js → index-DgttLLHX.js} +1 -1
- package/dist/esm-es5/index-DgttLLHX.js.map +1 -0
- 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-button.entry.js +1 -1
- package/dist/esm-es5/pds-checkbox.entry.js +1 -1
- package/dist/esm-es5/pds-checkbox.entry.js.map +1 -1
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js.map +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-divider.entry.js.map +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-input.entry.js +1 -1
- package/dist/esm-es5/pds-input.entry.js.map +1 -1
- package/dist/esm-es5/pds-link.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js +1 -1
- package/dist/esm-es5/pds-select.entry.js +1 -1
- package/dist/esm-es5/pds-select.entry.js.map +1 -1
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
- package/dist/esm-es5/pds-sortable.entry.js +2 -2
- package/dist/esm-es5/pds-sortable.entry.js.map +1 -1
- package/dist/esm-es5/pds-switch.entry.js +1 -1
- package/dist/esm-es5/pds-tab.entry.js +1 -1
- package/dist/esm-es5/pds-tab.entry.js.map +1 -1
- package/dist/esm-es5/pds-table-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-cell.entry.js.map +1 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-head.entry.js +1 -1
- package/dist/esm-es5/pds-table-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-textarea.entry.js +1 -1
- package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
- package/dist/pine-core/{p-34c99fa7.system.entry.js → p-07ba78e2.system.entry.js} +2 -2
- package/dist/pine-core/{p-500c44d1.entry.js → p-0823ed6b.entry.js} +2 -2
- package/dist/pine-core/p-12bee2e5.entry.js +2 -0
- package/dist/pine-core/p-12bee2e5.entry.js.map +1 -0
- package/dist/pine-core/{p-1aaeeb99.entry.js → p-1f2becfa.entry.js} +2 -2
- package/dist/pine-core/p-21460848.system.entry.js +2 -0
- package/dist/pine-core/p-21460848.system.entry.js.map +1 -0
- package/dist/pine-core/p-2426b230.system.entry.js +2 -0
- package/dist/pine-core/p-2426b230.system.entry.js.map +1 -0
- package/dist/pine-core/{p-ce968796.system.entry.js → p-2f7a6973.system.entry.js} +2 -2
- package/dist/pine-core/{p-fea91329.entry.js → p-30fb8edc.entry.js} +2 -2
- package/dist/pine-core/p-30fb8edc.entry.js.map +1 -0
- package/dist/pine-core/{p-2fe4c172.system.entry.js → p-32a2829d.system.entry.js} +2 -2
- package/dist/pine-core/{p-8ea5549d.entry.js → p-4e1da43b.entry.js} +2 -2
- package/dist/pine-core/p-5c396e75.entry.js +2 -0
- package/dist/pine-core/p-5c396e75.entry.js.map +1 -0
- package/dist/pine-core/{p-4f936bca.entry.js → p-5ed3c4c1.entry.js} +2 -2
- package/dist/pine-core/p-68de979e.entry.js +2 -0
- package/dist/pine-core/p-68de979e.entry.js.map +1 -0
- package/dist/pine-core/p-6ad2a6f6.entry.js +2 -0
- package/dist/pine-core/p-6ad2a6f6.entry.js.map +1 -0
- package/dist/pine-core/{p-ddc3cf60.entry.js → p-729b2f4b.entry.js} +2 -2
- package/dist/pine-core/p-729b2f4b.entry.js.map +1 -0
- package/dist/pine-core/{p-CImYL4N3.system.js → p-76G4-EJX.system.js} +1 -1
- package/dist/pine-core/p-76G4-EJX.system.js.map +1 -0
- package/dist/pine-core/{p-c26ac142.entry.js → p-792355e6.entry.js} +3 -3
- package/dist/pine-core/p-792355e6.entry.js.map +1 -0
- package/dist/pine-core/p-7b6b354a.system.entry.js +9 -0
- package/dist/pine-core/p-7b6b354a.system.entry.js.map +1 -0
- package/dist/pine-core/p-7b76c724.entry.js +2 -0
- package/dist/pine-core/p-7b76c724.entry.js.map +1 -0
- package/dist/pine-core/{p-c88fe75f.system.entry.js → p-7c092a4a.system.entry.js} +2 -2
- package/dist/pine-core/p-7c092a4a.system.entry.js.map +1 -0
- package/dist/pine-core/{p-15251b1c.entry.js → p-80dfca39.entry.js} +2 -2
- package/dist/pine-core/p-8305cd4d.entry.js +2 -0
- package/dist/pine-core/p-8305cd4d.entry.js.map +1 -0
- package/dist/pine-core/p-83bcd5ef.system.entry.js +2 -0
- package/dist/pine-core/p-83bcd5ef.system.entry.js.map +1 -0
- package/dist/pine-core/p-85073252.system.entry.js +2 -0
- package/dist/pine-core/p-85073252.system.entry.js.map +1 -0
- package/dist/pine-core/{p-ba031aa2.entry.js → p-8d1978dd.entry.js} +2 -2
- package/dist/pine-core/p-8d1978dd.entry.js.map +1 -0
- package/dist/pine-core/{p-x2WgFEI4.system.js.map → p-BC4T-VGa.system.js.map} +1 -1
- package/dist/pine-core/{p-DnJ1HVn_.system.js.map → p-BGpLq4ka.system.js.map} +1 -1
- package/dist/pine-core/p-BVNW4NmT.system.js.map +1 -0
- package/dist/pine-core/p-BW-n3jjz.system.js.map +1 -0
- package/dist/pine-core/p-Bi_6EftO.system.js.map +1 -0
- package/dist/pine-core/p-BjCOR1Nn.system.js.map +1 -0
- package/dist/pine-core/{p-CcWS7Z1Z.system.js.map → p-BkHsli73.system.js.map} +1 -1
- package/dist/pine-core/p-BsL2GDnH.system.js +1 -1
- package/dist/pine-core/{p-sso6KvPk.system.js.map → p-Buxo5g02.system.js.map} +1 -1
- package/dist/pine-core/p-CDhmuxC9.system.js.map +1 -0
- package/dist/pine-core/{p-CWhTNLIy.system.js.map → p-Cgglu7hD.system.js.map} +1 -1
- package/dist/pine-core/{p-CGjUgVBj.system.js.map → p-Cw5kzsDv.system.js.map} +1 -1
- package/dist/pine-core/p-CyVHE8Oy.system.js.map +1 -0
- package/dist/pine-core/{p-SgDc88m4.system.js.map → p-DF-AOrOZ.system.js.map} +1 -1
- package/dist/pine-core/{p-B_0tBgWY.js → p-DgttLLHX.js} +1 -1
- package/dist/pine-core/p-DgttLLHX.js.map +1 -0
- package/dist/pine-core/{p-Dr_myM4R.system.js.map → p-DkBw9sE6.system.js.map} +1 -1
- package/dist/pine-core/p-DnNFlcGO.system.js.map +1 -0
- package/dist/pine-core/p-SwAZL0Lv.system.js.map +1 -0
- package/dist/pine-core/p-a591d223.system.entry.js +2 -0
- package/dist/pine-core/p-a591d223.system.entry.js.map +1 -0
- package/dist/pine-core/p-b68cb43d.system.entry.js +2 -0
- package/dist/pine-core/p-b68cb43d.system.entry.js.map +1 -0
- package/dist/pine-core/{p-a16aca22.system.entry.js → p-c5064695.system.entry.js} +2 -2
- package/dist/pine-core/p-c5064695.system.entry.js.map +1 -0
- package/dist/pine-core/{p-14724ff2.entry.js → p-cb7bd3d0.entry.js} +2 -2
- package/dist/pine-core/p-cf10370e.entry.js +2 -0
- package/dist/pine-core/p-cf10370e.entry.js.map +1 -0
- package/dist/pine-core/{p-ad21d507.system.entry.js → p-d1bbaa71.system.entry.js} +2 -2
- package/dist/pine-core/p-d2110923.system.entry.js +2 -0
- package/dist/pine-core/p-d2110923.system.entry.js.map +1 -0
- package/dist/pine-core/{p-b3ef4194.system.entry.js → p-d2a6a116.system.entry.js} +2 -2
- package/dist/pine-core/{p-1539cb01.system.entry.js → p-d61116ab.system.entry.js} +2 -2
- package/dist/pine-core/{p-6cd29b62.system.entry.js → p-d669d90f.system.entry.js} +2 -2
- package/dist/pine-core/p-d669d90f.system.entry.js.map +1 -0
- package/dist/pine-core/{p-be615679.entry.js → p-d7a50e5f.entry.js} +2 -2
- package/dist/pine-core/p-d7a50e5f.entry.js.map +1 -0
- package/dist/pine-core/p-dbsIUsdW.system.js.map +1 -0
- package/dist/pine-core/p-e045e337.system.entry.js +2 -0
- package/dist/pine-core/p-e045e337.system.entry.js.map +1 -0
- package/dist/pine-core/{p-3f2da1f8.entry.js → p-e1017124.entry.js} +2 -2
- package/dist/pine-core/p-e281ac09.entry.js +2 -0
- package/dist/pine-core/p-e281ac09.entry.js.map +1 -0
- package/dist/pine-core/p-ed8c3064.system.entry.js +2 -0
- package/dist/pine-core/p-ed8c3064.system.entry.js.map +1 -0
- package/dist/pine-core/{p-30eca034.system.entry.js → p-f057d838.system.entry.js} +2 -2
- package/dist/pine-core/{p-f4f495b3.system.entry.js → p-f23cd1cb.system.entry.js} +2 -2
- package/dist/pine-core/{p-0157f9db.entry.js → p-f5e00dd7.entry.js} +2 -2
- package/dist/pine-core/p-h7erfdzU.system.js.map +1 -0
- package/dist/pine-core/p-kMnJefdU.system.js.map +1 -0
- package/dist/pine-core/p-udA_47qE.system.js.map +1 -0
- package/dist/pine-core/p-w3zTyPF1.system.js.map +1 -0
- package/dist/pine-core/pds-avatar.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-checkbox.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-chip.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-divider.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-icon.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-input.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-select.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-sortable.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-tab.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-table-cell.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-table-head.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-table-row.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-textarea.entry.esm.js.map +1 -1
- package/dist/pine-core/pine-core.css +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/hydrate/index.js +37 -22
- package/hydrate/index.mjs +37 -22
- package/package.json +4 -6
- package/dist/cjs/index-DrrGT4DS.js.map +0 -1
- package/dist/esm/index-B_0tBgWY.js.map +0 -1
- package/dist/esm-es5/index-B_0tBgWY.js.map +0 -1
- package/dist/pine-core/p-1027c89f.entry.js +0 -2
- package/dist/pine-core/p-1027c89f.entry.js.map +0 -1
- package/dist/pine-core/p-2c26b372.entry.js +0 -2
- package/dist/pine-core/p-2c26b372.entry.js.map +0 -1
- package/dist/pine-core/p-326d4629.system.entry.js +0 -2
- package/dist/pine-core/p-326d4629.system.entry.js.map +0 -1
- package/dist/pine-core/p-5591a1b8.system.entry.js +0 -2
- package/dist/pine-core/p-5591a1b8.system.entry.js.map +0 -1
- package/dist/pine-core/p-5d3115a6.entry.js +0 -2
- package/dist/pine-core/p-5d3115a6.entry.js.map +0 -1
- package/dist/pine-core/p-69bc8792.entry.js +0 -2
- package/dist/pine-core/p-69bc8792.entry.js.map +0 -1
- package/dist/pine-core/p-6a373f0e.system.entry.js +0 -2
- package/dist/pine-core/p-6a373f0e.system.entry.js.map +0 -1
- package/dist/pine-core/p-6cd29b62.system.entry.js.map +0 -1
- package/dist/pine-core/p-9f692bf2.system.entry.js +0 -9
- package/dist/pine-core/p-9f692bf2.system.entry.js.map +0 -1
- package/dist/pine-core/p-BCAu52Mh.system.js.map +0 -1
- package/dist/pine-core/p-BWIf4W3Y.system.js.map +0 -1
- package/dist/pine-core/p-B_0tBgWY.js.map +0 -1
- package/dist/pine-core/p-CImYL4N3.system.js.map +0 -1
- package/dist/pine-core/p-CWn9mZiA.system.js.map +0 -1
- package/dist/pine-core/p-D3Yc7Nk_.system.js.map +0 -1
- package/dist/pine-core/p-DNheIAZu.system.js.map +0 -1
- package/dist/pine-core/p-DTTNwFrL.system.js.map +0 -1
- package/dist/pine-core/p-DZ2krXgO.system.js.map +0 -1
- package/dist/pine-core/p-DZLEnkFo.system.js.map +0 -1
- package/dist/pine-core/p-DjVmvsUi.system.js.map +0 -1
- package/dist/pine-core/p-DvYDQXYl.system.js.map +0 -1
- package/dist/pine-core/p-EmPAPa9v.system.js.map +0 -1
- package/dist/pine-core/p-O6SJkS3t.system.js.map +0 -1
- package/dist/pine-core/p-a16aca22.system.entry.js.map +0 -1
- package/dist/pine-core/p-ab70662d.system.entry.js +0 -2
- package/dist/pine-core/p-ab70662d.system.entry.js.map +0 -1
- package/dist/pine-core/p-b58a71aa.entry.js +0 -2
- package/dist/pine-core/p-b58a71aa.entry.js.map +0 -1
- package/dist/pine-core/p-ba031aa2.entry.js.map +0 -1
- package/dist/pine-core/p-ba652816.system.entry.js +0 -2
- package/dist/pine-core/p-ba652816.system.entry.js.map +0 -1
- package/dist/pine-core/p-be615679.entry.js.map +0 -1
- package/dist/pine-core/p-bee6173d.entry.js +0 -2
- package/dist/pine-core/p-bee6173d.entry.js.map +0 -1
- package/dist/pine-core/p-c26ac142.entry.js.map +0 -1
- package/dist/pine-core/p-c2b189b7.system.entry.js +0 -2
- package/dist/pine-core/p-c2b189b7.system.entry.js.map +0 -1
- package/dist/pine-core/p-c7dacf66.entry.js +0 -2
- package/dist/pine-core/p-c7dacf66.entry.js.map +0 -1
- package/dist/pine-core/p-c88fe75f.system.entry.js.map +0 -1
- package/dist/pine-core/p-cd7d4065.system.entry.js +0 -2
- package/dist/pine-core/p-cd7d4065.system.entry.js.map +0 -1
- package/dist/pine-core/p-d3ec2bc4.system.entry.js +0 -2
- package/dist/pine-core/p-d3ec2bc4.system.entry.js.map +0 -1
- package/dist/pine-core/p-ddc3cf60.entry.js.map +0 -1
- package/dist/pine-core/p-dde14b21.entry.js +0 -2
- package/dist/pine-core/p-dde14b21.entry.js.map +0 -1
- package/dist/pine-core/p-e68d9ea2.system.entry.js +0 -2
- package/dist/pine-core/p-e68d9ea2.system.entry.js.map +0 -1
- package/dist/pine-core/p-eYZ-Lj8S.system.js.map +0 -1
- package/dist/pine-core/p-fea91329.entry.js.map +0 -1
- /package/dist/pine-core/{p-34c99fa7.system.entry.js.map → p-07ba78e2.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-500c44d1.entry.js.map → p-0823ed6b.entry.js.map} +0 -0
- /package/dist/pine-core/{p-1aaeeb99.entry.js.map → p-1f2becfa.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ce968796.system.entry.js.map → p-2f7a6973.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-2fe4c172.system.entry.js.map → p-32a2829d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8ea5549d.entry.js.map → p-4e1da43b.entry.js.map} +0 -0
- /package/dist/pine-core/{p-4f936bca.entry.js.map → p-5ed3c4c1.entry.js.map} +0 -0
- /package/dist/pine-core/{p-15251b1c.entry.js.map → p-80dfca39.entry.js.map} +0 -0
- /package/dist/pine-core/{p-14724ff2.entry.js.map → p-cb7bd3d0.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ad21d507.system.entry.js.map → p-d1bbaa71.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b3ef4194.system.entry.js.map → p-d2a6a116.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-1539cb01.system.entry.js.map → p-d61116ab.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3f2da1f8.entry.js.map → p-e1017124.entry.js.map} +0 -0
- /package/dist/pine-core/{p-30eca034.system.entry.js.map → p-f057d838.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f4f495b3.system.entry.js.map → p-f23cd1cb.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0157f9db.entry.js.map → p-f5e00dd7.entry.js.map} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-Uh5ntVcq.js';
|
|
2
2
|
import { m as messageId } from './form-DTL_39D_.js';
|
|
3
|
-
import { f as danger, g as enlarge } from './index-
|
|
3
|
+
import { f as danger, g as enlarge } from './index-DgttLLHX.js';
|
|
4
4
|
|
|
5
5
|
const pdsSelectTokensCss = ":host{--pine-select-color-background-danger:var(--pine-color-red-050)}";
|
|
6
6
|
|
|
7
7
|
const labelCss = ":host{display:inline-block}:host([aria-disabled=true]) label{color:var(--pine-color-text-label-disabled)}:host([aria-readonly=true]) label{color:var(--pine-color-text-label-readonly)}label{color:var(--pine-color-text-label);font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}";
|
|
8
8
|
|
|
9
|
-
const pdsSelectCss = ":host .hidden,:host :host([hidden]){display:none}.pds-select{display:grid;-ms-flex-direction:column;flex-direction:column;grid-template-areas:\"label label\" \"field field\" \"message message\";grid-template-columns:1fr minmax(2rem, -webkit-min-content);grid-template-columns:1fr minmax(2rem, min-content);grid-template-rows:-webkit-min-content -webkit-min-content -webkit-min-content;grid-template-rows:min-content min-content min-content;position:relative;width:100%}label{grid-area:label;-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);font:var(--pine-typography-body);grid-area:field;letter-spacing:var(--pine-letter-spacing);padding:var(--pine-dimension-xs) var(--pine-dimension-150);padding-
|
|
9
|
+
const pdsSelectCss = ":host .hidden,:host :host([hidden]){display:none}.pds-select{display:grid;-ms-flex-direction:column;flex-direction:column;grid-template-areas:\"label label\" \"field field\" \"message message\";grid-template-columns:1fr minmax(2rem, -webkit-min-content);grid-template-columns:1fr minmax(2rem, min-content);grid-template-rows:-webkit-min-content -webkit-min-content -webkit-min-content;grid-template-rows:min-content min-content min-content;position:relative;width:100%}label{grid-area:label;-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);font:var(--pine-typography-body);grid-area:field;letter-spacing:var(--pine-letter-spacing);padding:var(--pine-dimension-xs) var(--pine-dimension-150);-webkit-padding-end:var(--pine-dimension-450);padding-inline-end:var(--pine-dimension-450);position:relative}select:hover{border-color:var(--pine-color-border-hover);cursor:pointer}select:focus-visible{border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}select:disabled{background-color:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}select:has(~.pds-select__message .pds-select__error-message){background-color:var(--pine-select-color-background-danger);border-color:var(--pine-color-border-danger)}select:has(~.pds-select__message .pds-select__error-message):focus-visible{outline-color:var(--pine-color-focus-ring-danger)}:host(.is-invalid) select{background-color:var(--pine-select-color-background-danger);border-color:var(--pine-color-border-danger)}:host(.is-invalid) select:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}.pds-select__error-message,.pds-select__helper-message{font:var(--pine-typography-body-sm-medium);-webkit-margin-after:0;margin-block-end:0;-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-select__error-message{-ms-flex-align:center;align-items:center;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-select__message{grid-area:message}.pds-select__select-icon{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;grid-column:-1/-2;grid-row:2/3;height:2.5rem;pointer-events:none;position:relative;z-index:1}";
|
|
10
10
|
|
|
11
11
|
const PdsSelect = class {
|
|
12
12
|
constructor(hostRef) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-select.entry.js","sources":["src/components/pds-select/pds-select.tokens.scss?tag=pds-select&encapsulation=shadow","src/global/styles/utils/label.scss?tag=pds-select&encapsulation=shadow","src/components/pds-select/pds-select.scss?tag=pds-select&encapsulation=shadow","src/components/pds-select/pds-select.tsx"],"sourcesContent":["/**\n * Do not edit directly, this file was auto-generated.\n */\n\n:host {\n --pine-select-color-background-danger: var(--pine-color-red-050);\n}\n",":host {\n display: inline-block;\n}\n\n:host([aria-disabled=\"true\"]) label {\n color: var(--pine-color-text-label-disabled);\n}\n\n:host([aria-readonly=\"true\"]) {\n label {\n color: var(--pine-color-text-label-readonly);\n }\n}\n\nlabel {\n color: var(--pine-color-text-label);\n font: var(--pine-typography-body-medium);\n letter-spacing: var(--pine-letter-spacing);\n}\n",":host {\n .hidden,\n :host([hidden]) {\n display: none;\n }\n}\n\n.pds-select {\n display: grid;\n flex-direction: column;\n grid-template-areas:\n 'label label'\n 'field field'\n 'message message';\n grid-template-columns: 1fr minmax(2rem, min-content);\n grid-template-rows: min-content min-content min-content;\n position: relative;\n width: 100%;\n}\n\nlabel {\n grid-area: label;\n margin-block-end: var(--pine-dimension-2xs);\n}\n\nselect {\n appearance: none;\n background: var(--pine-color-background-container);\n border: var(--pine-border);\n border-radius: var(--pine-dimension-125);\n font: var(--pine-typography-body);\n grid-area: field;\n letter-spacing: var(--pine-letter-spacing);\n padding: var(--pine-dimension-xs) var(--pine-dimension-150);\n padding-right: var(--pine-dimension-450);\n position: relative;\n\n &:hover {\n border-color: var(--pine-color-border-hover);\n cursor: pointer;\n }\n\n &:focus-visible {\n border-color: var(--pine-color-border-active);\n outline: var(--pine-outline-focus);\n outline-offset: var(--pine-border-width);\n }\n\n &:disabled {\n background-color: var(--pine-color-background-container-disabled);\n border-color: var(--pine-color-border-disabled);\n color: var(--pine-color-text-disabled);\n cursor: not-allowed;\n }\n\n &:has(~ .pds-select__message .pds-select__error-message) {\n background-color: var(--pine-select-color-background-danger);\n border-color: var(--pine-color-border-danger);\n\n &:focus-visible {\n outline-color: var(--pine-color-focus-ring-danger);\n }\n }\n}\n\n:host(.is-invalid) {\n select {\n background-color: var(--pine-select-color-background-danger);\n border-color: var(--pine-color-border-danger);\n\n &:focus-visible {\n outline-color: var(--pine-color-focus-ring-danger);\n }\n }\n}\n\n.pds-select__error-message,\n.pds-select__helper-message {\n font: var(--pine-typography-body-sm-medium);\n margin-block-end: 0;\n margin-block-start: var(--pine-dimension-2xs);\n}\n\n.pds-select__error-message {\n align-items: center;\n color: var(--pine-color-text-message-danger);\n display: flex;\n gap: var(--pine-dimension-2xs);\n}\n\n.pds-select__message {\n grid-area: message;\n}\n\n.pds-select__select-icon {\n align-items: center;\n display: flex;\n grid-column: -1 / -2;\n grid-row: 2 / 3;\n height: 2.5rem;\n pointer-events: none;\n position: relative;\n z-index: 1;\n}\n","import { Component, Event, EventEmitter, Host, h, Prop, Watch } from '@stencil/core';\nimport { messageId } from '../../utils/form';\nimport { danger, enlarge } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-select',\n styleUrls: ['pds-select.tokens.scss', '../../global/styles/utils/label.scss', 'pds-select.scss'],\n shadow: true,\n})\nexport class PdsSelect {\n\n private selectEl!: HTMLSelectElement;\n private slotContainer!: HTMLDivElement;\n\n /**\n * Specifies if and how the browser provides `autocomplete` assistance for the field.\n */\n @Prop() autocomplete: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Indicates whether or not the select field is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false\n\n /**\n * Displays error message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Displays helper message text below select.\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines whether or not the select is invalid.\n */\n @Prop() invalid?: boolean;\n\n /**\n * Text to be displayed as the select label.\n */\n @Prop() label?: string;\n\n /**\n * Indicates whether multiple options can be selected.\n * @defaultValue false\n */\n @Prop() multiple = false;\n\n /**\n * Specifies the name. Submitted with the form name/value pair.\n */\n @Prop() name!: string;\n\n /**\n * Indicates whether or not the select field is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * The value(s) of the selected option(s).\n *\n */\n @Prop({ mutable: true }) value?: string | string[];\n\n /**\n * Emitted when a keyboard input occurs.\n */\n @Event() pdsSelectChange: EventEmitter<InputEvent>;\n\n @Watch('value')\n /**\n * Handles the change in the value of the select component.\n * This method is called whenever the value of the select component changes.\n * It updates the selected option accordingly.\n */\n valueChanged() {\n this.updateSelectedOption();\n }\n\n componentWillLoad() {\n this.updateSelectedOption();\n }\n\n /**\n * Updates the selected option in the select element based on the current value.\n *\n * This method iterates through all the options of the select element and sets the\n * 'selected' attribute on the option that matches the current value. If an option\n * does not match the current value, the 'selected' attribute is removed.\n *\n * @private\n * @returns {void}\n */\n private updateSelectedOption() {\n if (this.selectEl) {\n const options = this.selectEl.options;\n\n // Update the selected attribute for all options.\n Array.from(options).map((option: HTMLOptionElement) => {\n if (Array.isArray(this.value)) {\n option.selected = this.value.includes(option.value);\n } else {\n option.selected = this.value === option.value;\n }\n });\n };\n }\n\n /**\n * Emits an event on input change.\n */\n private onSelectUpdate = (e: Event) => {\n const target = e.target as HTMLSelectElement\n\n const values = Array.from(target.options)\n .filter((option) => ( option.selected))\n .map((option) => ( option.value));\n\n if (values.length === 1 && !this.multiple) {\n this.value = values[0];\n } else {\n this.value = values;\n }\n\n this.pdsSelectChange.emit(e as InputEvent);\n };\n\n /**\n * Handles the change event for the slot element.\n * This method is triggered when the slot content changes.\n * It updates the inner HTML of the select element by cloning and appending\n * the assigned <option> elements from the slot.\n */\n private handleSlotChange = () => {\n const slot = this.slotContainer.querySelector('slot') as HTMLSlotElement;\n\n this.selectEl.innerHTML = '';\n const assignedElements = slot.assignedElements({ flatten: true }) as (HTMLOptionElement | HTMLOptGroupElement)[];\n\n assignedElements.forEach((item) => {\n if ( ['OPTION', 'OPTGROUP'].includes(item.tagName)) {\n const clonedItem = item.cloneNode(true) as HTMLOptionElement | HTMLOptGroupElement;\n if (clonedItem.tagName === 'OPTION' && (clonedItem as HTMLOptionElement).value === this.value) {\n (clonedItem as HTMLOptionElement).selected = true;\n }\n this.selectEl.appendChild(clonedItem);\n }\n });\n\n this.updateSelectedOption();\n };\n\n private getHelperMessage() {\n return this.helperMessage && (\n <p class=\"pds-select__helper-message\" id={messageId(this.componentId, 'helper')}>\n {this.helperMessage}\n </p>\n );\n }\n\n private getErrorMessage() {\n return this.errorMessage && (\n <p class=\"pds-select__error-message\" id={messageId(this.componentId, 'error')} aria-live=\"assertive\">\n <pds-icon icon={danger} size=\"small\"></pds-icon>\n {this.errorMessage}\n </p>\n );\n }\n\n private renderMessages() {\n if (!this.helperMessage && !this.errorMessage) return null;\n\n return (\n <div class=\"pds-select__message\">\n {this.getHelperMessage()}\n {this.getErrorMessage()}\n </div>\n );\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) { classNames.push('is-invalid'); }\n if (this.disabled) { classNames.push('is-disabled'); }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host aria-disabled={this.disabled ? 'true' : null} class={this.classNames()}>\n <div class=\"pds-select\">\n {this.label &&\n <label htmlFor={this.componentId}>{this.label}</label>\n }\n <select\n autocomplete={this.autocomplete || undefined}\n class=\"pds-select__field\"\n disabled={this.disabled}\n id={this.componentId}\n multiple={this.multiple}\n name={this.name}\n onChange={this.onSelectUpdate}\n required={this.required}\n ref={(el) => (this.selectEl = el as HTMLSelectElement)}\n ></select>\n <div aria-hidden=\"true\" class=\"hidden\" ref={(el) => (this.slotContainer = el)}>\n <slot onSlotchange={this.handleSlotChange}></slot>\n </div>\n {this.renderMessages()}\n {!this.multiple && <pds-icon class=\"pds-select__select-icon\"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okens.scss?tag=pds-select&encapsulation=shadow","src/global/styles/utils/label.scss?tag=pds-select&encapsulation=shadow","src/components/pds-select/pds-select.scss?tag=pds-select&encapsulation=shadow","src/components/pds-select/pds-select.tsx"],"sourcesContent":["@use '~@kajabi-ui/styles/dist/pine/components/pds-select/pds-select.tokens'\n",":host {\n display: inline-block;\n}\n\n:host([aria-disabled=\"true\"]) label {\n color: var(--pine-color-text-label-disabled);\n}\n\n:host([aria-readonly=\"true\"]) {\n label {\n color: var(--pine-color-text-label-readonly);\n }\n}\n\nlabel {\n color: var(--pine-color-text-label);\n font: var(--pine-typography-body-medium);\n letter-spacing: var(--pine-letter-spacing);\n}\n",":host {\n .hidden,\n :host([hidden]) {\n display: none;\n }\n}\n\n.pds-select {\n display: grid;\n flex-direction: column;\n grid-template-areas:\n 'label label'\n 'field field'\n 'message message';\n grid-template-columns: 1fr minmax(2rem, min-content);\n grid-template-rows: min-content min-content min-content;\n position: relative;\n width: 100%;\n}\n\nlabel {\n grid-area: label;\n margin-block-end: var(--pine-dimension-2xs);\n}\n\nselect {\n appearance: none;\n background: var(--pine-color-background-container);\n border: var(--pine-border);\n border-radius: var(--pine-dimension-125);\n font: var(--pine-typography-body);\n grid-area: field;\n letter-spacing: var(--pine-letter-spacing);\n padding: var(--pine-dimension-xs) var(--pine-dimension-150);\n padding-inline-end: var(--pine-dimension-450);\n position: relative;\n\n &:hover {\n border-color: var(--pine-color-border-hover);\n cursor: pointer;\n }\n\n &:focus-visible {\n border-color: var(--pine-color-border-active);\n outline: var(--pine-outline-focus);\n outline-offset: var(--pine-border-width);\n }\n\n &:disabled {\n background-color: var(--pine-color-background-container-disabled);\n border-color: var(--pine-color-border-disabled);\n color: var(--pine-color-text-disabled);\n cursor: not-allowed;\n }\n\n &:has(~ .pds-select__message .pds-select__error-message) {\n background-color: var(--pine-select-color-background-danger);\n border-color: var(--pine-color-border-danger);\n\n &:focus-visible {\n outline-color: var(--pine-color-focus-ring-danger);\n }\n }\n}\n\n:host(.is-invalid) {\n select {\n background-color: var(--pine-select-color-background-danger);\n border-color: var(--pine-color-border-danger);\n\n &:focus-visible {\n outline-color: var(--pine-color-focus-ring-danger);\n }\n }\n}\n\n.pds-select__error-message,\n.pds-select__helper-message {\n font: var(--pine-typography-body-sm-medium);\n margin-block-end: 0;\n margin-block-start: var(--pine-dimension-2xs);\n}\n\n.pds-select__error-message {\n align-items: center;\n color: var(--pine-color-text-message-danger);\n display: flex;\n gap: var(--pine-dimension-2xs);\n}\n\n.pds-select__message {\n grid-area: message;\n}\n\n.pds-select__select-icon {\n align-items: center;\n display: flex;\n grid-column: -1 / -2;\n grid-row: 2 / 3;\n height: 2.5rem;\n pointer-events: none;\n position: relative;\n z-index: 1;\n}\n","import { Component, Event, EventEmitter, Host, h, Prop, Watch } from '@stencil/core';\nimport { messageId } from '../../utils/form';\nimport { danger, enlarge } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-select',\n styleUrls: ['pds-select.tokens.scss', '../../global/styles/utils/label.scss', 'pds-select.scss'],\n shadow: true,\n})\nexport class PdsSelect {\n\n private selectEl!: HTMLSelectElement;\n private slotContainer!: HTMLDivElement;\n\n /**\n * Specifies if and how the browser provides `autocomplete` assistance for the field.\n */\n @Prop() autocomplete: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Indicates whether or not the select field is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false\n\n /**\n * Displays error message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Displays helper message text below select.\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines whether or not the select is invalid.\n */\n @Prop() invalid?: boolean;\n\n /**\n * Text to be displayed as the select label.\n */\n @Prop() label?: string;\n\n /**\n * Indicates whether multiple options can be selected.\n * @defaultValue false\n */\n @Prop() multiple = false;\n\n /**\n * Specifies the name. Submitted with the form name/value pair.\n */\n @Prop() name!: string;\n\n /**\n * Indicates whether or not the select field is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * The value(s) of the selected option(s).\n *\n */\n @Prop({ mutable: true }) value?: string | string[];\n\n /**\n * Emitted when a keyboard input occurs.\n */\n @Event() pdsSelectChange: EventEmitter<InputEvent>;\n\n @Watch('value')\n /**\n * Handles the change in the value of the select component.\n * This method is called whenever the value of the select component changes.\n * It updates the selected option accordingly.\n */\n valueChanged() {\n this.updateSelectedOption();\n }\n\n componentWillLoad() {\n this.updateSelectedOption();\n }\n\n /**\n * Updates the selected option in the select element based on the current value.\n *\n * This method iterates through all the options of the select element and sets the\n * 'selected' attribute on the option that matches the current value. If an option\n * does not match the current value, the 'selected' attribute is removed.\n *\n * @private\n * @returns {void}\n */\n private updateSelectedOption() {\n if (this.selectEl) {\n const options = this.selectEl.options;\n\n // Update the selected attribute for all options.\n Array.from(options).map((option: HTMLOptionElement) => {\n if (Array.isArray(this.value)) {\n option.selected = this.value.includes(option.value);\n } else {\n option.selected = this.value === option.value;\n }\n });\n };\n }\n\n /**\n * Emits an event on input change.\n */\n private onSelectUpdate = (e: Event) => {\n const target = e.target as HTMLSelectElement\n\n const values = Array.from(target.options)\n .filter((option) => ( option.selected))\n .map((option) => ( option.value));\n\n if (values.length === 1 && !this.multiple) {\n this.value = values[0];\n } else {\n this.value = values;\n }\n\n this.pdsSelectChange.emit(e as InputEvent);\n };\n\n /**\n * Handles the change event for the slot element.\n * This method is triggered when the slot content changes.\n * It updates the inner HTML of the select element by cloning and appending\n * the assigned <option> elements from the slot.\n */\n private handleSlotChange = () => {\n const slot = this.slotContainer.querySelector('slot') as HTMLSlotElement;\n\n this.selectEl.innerHTML = '';\n const assignedElements = slot.assignedElements({ flatten: true }) as (HTMLOptionElement | HTMLOptGroupElement)[];\n\n assignedElements.forEach((item) => {\n if ( ['OPTION', 'OPTGROUP'].includes(item.tagName)) {\n const clonedItem = item.cloneNode(true) as HTMLOptionElement | HTMLOptGroupElement;\n if (clonedItem.tagName === 'OPTION' && (clonedItem as HTMLOptionElement).value === this.value) {\n (clonedItem as HTMLOptionElement).selected = true;\n }\n this.selectEl.appendChild(clonedItem);\n }\n });\n\n this.updateSelectedOption();\n };\n\n private getHelperMessage() {\n return this.helperMessage && (\n <p class=\"pds-select__helper-message\" id={messageId(this.componentId, 'helper')}>\n {this.helperMessage}\n </p>\n );\n }\n\n private getErrorMessage() {\n return this.errorMessage && (\n <p class=\"pds-select__error-message\" id={messageId(this.componentId, 'error')} aria-live=\"assertive\">\n <pds-icon icon={danger} size=\"small\"></pds-icon>\n {this.errorMessage}\n </p>\n );\n }\n\n private renderMessages() {\n if (!this.helperMessage && !this.errorMessage) return null;\n\n return (\n <div class=\"pds-select__message\">\n {this.getHelperMessage()}\n {this.getErrorMessage()}\n </div>\n );\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) { classNames.push('is-invalid'); }\n if (this.disabled) { classNames.push('is-disabled'); }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host aria-disabled={this.disabled ? 'true' : null} class={this.classNames()}>\n <div class=\"pds-select\">\n {this.label &&\n <label htmlFor={this.componentId}>{this.label}</label>\n }\n <select\n autocomplete={this.autocomplete || undefined}\n class=\"pds-select__field\"\n disabled={this.disabled}\n id={this.componentId}\n multiple={this.multiple}\n name={this.name}\n onChange={this.onSelectUpdate}\n required={this.required}\n ref={(el) => (this.selectEl = el as HTMLSelectElement)}\n ></select>\n <div aria-hidden=\"true\" class=\"hidden\" ref={(el) => (this.slotContainer = el)}>\n <slot onSlotchange={this.handleSlotChange}></slot>\n </div>\n {this.renderMessages()}\n {!this.multiple && <pds-icon class=\"pds-select__select-icon\" icon={enlarge} />}\n </div>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,kBAAkB,GAAG,wEAAwE;;ACAnG,MAAM,QAAQ,GAAG,oTAAoT;;ACArU,MAAM,YAAY,GAAG,8gFAA8gF;;MCSthF,SAAS,GAAA,MAAA;AALtB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAoBE;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AExD,CAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,YAAY,EAAE,IAAI,CAAC,YAAY,IAAI,SAAS,EAC5C,KAAK,EAAC,mBAAmB,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,cAAc,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,QAAQ,GAAG,EAAuB,CAAC,EAC9C,CAAA,EACV,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,aAAA,EAAiB,MAAM,EAAC,KAAK,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC,EAAA,EAC3E,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,YAAY,EAAE,IAAI,CAAC,gBAAgB,GAAS,CAC9C,EACL,IAAI,CAAC,cAAc,EAAE,EACrB,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAA,CAAA,UAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAU,KAAK,EAAC,yBAAyB,EAAC,IAAI,EAAE,OAAO,EAAA,CAAI,CAC1E,CACD;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-Uh5ntVcq.js';
|
|
2
|
-
import { h as handle } from './index-
|
|
2
|
+
import { h as handle } from './index-DgttLLHX.js';
|
|
3
3
|
|
|
4
4
|
const pdsSortableItemCss = ".pds-sortable-item.sc-pds-sortable-item-h{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-block:var(--pine-dimension-xs);padding-inline:var(--pine-dimension-md)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__actions.sc-pds-sortable-item{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-padding-start:var(--pine-dimension-md);padding-inline-start:var(--pine-dimension-md)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{line-height:1;-webkit-margin-end:var(--pine-dimension-md);margin-inline-end:var(--pine-dimension-md)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:first-child{border-start-end-radius:calc(var(--pine-dimension-xs) * 1.25);border-start-start-radius:calc(var(--pine-dimension-xs) * 1.25)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:last-child{border-end-end-radius:calc(var(--pine-dimension-xs) * 1.25);border-end-start-radius:calc(var(--pine-dimension-xs) * 1.25)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h:last-child{-webkit-border-after:0;border-block-end:0}.pds-sortable--handle-type-row .pds-sortable-item.sc-pds-sortable-item-h{cursor:-webkit-grab;cursor:grab}.pds-sortable--handle-type-handle .pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{cursor:-webkit-grab;cursor:grab}.pds-sortable-item.sc-pds-sortable-item-h:hover{background-color:var(--pine-color-background-container-hover)}.pds-sortable-item.sc-pds-sortable-item-h:hover pds-icon.sc-pds-sortable-item{color:var(--pine-color-info)}.pds-sortable-item--drag.sc-pds-sortable-item-h{background-color:var(--pine-color-background-container);border-radius:0;-webkit-box-shadow:var(--pine-box-shadow-400);box-shadow:var(--pine-box-shadow-400);opacity:1}.pds-sortable-item--ghost.sc-pds-sortable-item-h{background-color:var(--pine-color-background-container-hover);border-radius:0}";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-Uh5ntVcq.js';
|
|
2
2
|
|
|
3
3
|
/**!
|
|
4
|
-
* Sortable 1.15.
|
|
4
|
+
* Sortable 1.15.6
|
|
5
5
|
* @author RubaXa <trash@rubaxa.org>
|
|
6
6
|
* @author owenm <owen23355@gmail.com>
|
|
7
7
|
* @license MIT
|
|
@@ -105,7 +105,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
105
105
|
return target;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
var version = "1.15.
|
|
108
|
+
var version = "1.15.6";
|
|
109
109
|
|
|
110
110
|
function userAgent(pattern) {
|
|
111
111
|
if (typeof window !== 'undefined' && window.navigator) {
|
|
@@ -1082,7 +1082,8 @@ function Sortable(el, options) {
|
|
|
1082
1082
|
x: 0,
|
|
1083
1083
|
y: 0
|
|
1084
1084
|
},
|
|
1085
|
-
|
|
1085
|
+
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
1086
|
+
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && (!Safari || IOS),
|
|
1086
1087
|
emptyInsertThreshold: 5
|
|
1087
1088
|
};
|
|
1088
1089
|
PluginManager.initializePlugins(this, el, defaults);
|
|
@@ -1193,7 +1194,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
1193
1194
|
pluginEvent('filter', _this, {
|
|
1194
1195
|
evt: evt
|
|
1195
1196
|
});
|
|
1196
|
-
preventOnFilter && evt.
|
|
1197
|
+
preventOnFilter && evt.preventDefault();
|
|
1197
1198
|
return; // cancel dnd
|
|
1198
1199
|
}
|
|
1199
1200
|
} else if (filter) {
|
|
@@ -1215,7 +1216,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
1215
1216
|
}
|
|
1216
1217
|
});
|
|
1217
1218
|
if (filter) {
|
|
1218
|
-
preventOnFilter && evt.
|
|
1219
|
+
preventOnFilter && evt.preventDefault();
|
|
1219
1220
|
return; // cancel dnd
|
|
1220
1221
|
}
|
|
1221
1222
|
}
|
|
@@ -1287,9 +1288,15 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
1287
1288
|
on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);
|
|
1288
1289
|
on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);
|
|
1289
1290
|
on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1291
|
+
if (options.supportPointer) {
|
|
1292
|
+
on(ownerDocument, 'pointerup', _this._onDrop);
|
|
1293
|
+
// Native D&D triggers pointercancel
|
|
1294
|
+
!this.nativeDraggable && on(ownerDocument, 'pointercancel', _this._onDrop);
|
|
1295
|
+
} else {
|
|
1296
|
+
on(ownerDocument, 'mouseup', _this._onDrop);
|
|
1297
|
+
on(ownerDocument, 'touchend', _this._onDrop);
|
|
1298
|
+
on(ownerDocument, 'touchcancel', _this._onDrop);
|
|
1299
|
+
}
|
|
1293
1300
|
|
|
1294
1301
|
// Make dragEl draggable (must be before delay for FireFox)
|
|
1295
1302
|
if (FireFox && this.nativeDraggable) {
|
|
@@ -1309,9 +1316,14 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
1309
1316
|
// If the user moves the pointer or let go the click or touch
|
|
1310
1317
|
// before the delay has been reached:
|
|
1311
1318
|
// disable the delayed drag
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1319
|
+
if (options.supportPointer) {
|
|
1320
|
+
on(ownerDocument, 'pointerup', _this._disableDelayedDrag);
|
|
1321
|
+
on(ownerDocument, 'pointercancel', _this._disableDelayedDrag);
|
|
1322
|
+
} else {
|
|
1323
|
+
on(ownerDocument, 'mouseup', _this._disableDelayedDrag);
|
|
1324
|
+
on(ownerDocument, 'touchend', _this._disableDelayedDrag);
|
|
1325
|
+
on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);
|
|
1326
|
+
}
|
|
1315
1327
|
on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);
|
|
1316
1328
|
on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);
|
|
1317
1329
|
options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);
|
|
@@ -1337,6 +1349,8 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
1337
1349
|
off(ownerDocument, 'mouseup', this._disableDelayedDrag);
|
|
1338
1350
|
off(ownerDocument, 'touchend', this._disableDelayedDrag);
|
|
1339
1351
|
off(ownerDocument, 'touchcancel', this._disableDelayedDrag);
|
|
1352
|
+
off(ownerDocument, 'pointerup', this._disableDelayedDrag);
|
|
1353
|
+
off(ownerDocument, 'pointercancel', this._disableDelayedDrag);
|
|
1340
1354
|
off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);
|
|
1341
1355
|
off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);
|
|
1342
1356
|
off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);
|
|
@@ -1357,7 +1371,6 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
1357
1371
|
}
|
|
1358
1372
|
try {
|
|
1359
1373
|
if (document.selection) {
|
|
1360
|
-
// Timeout neccessary for IE9
|
|
1361
1374
|
_nextTick(function () {
|
|
1362
1375
|
document.selection.empty();
|
|
1363
1376
|
});
|
|
@@ -1579,6 +1592,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
1579
1592
|
_this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
|
|
1580
1593
|
on(document, 'selectstart', _this);
|
|
1581
1594
|
moved = true;
|
|
1595
|
+
window.getSelection().removeAllRanges();
|
|
1582
1596
|
if (Safari) {
|
|
1583
1597
|
css(document.body, 'user-select', 'none');
|
|
1584
1598
|
}
|
|
@@ -1850,6 +1864,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
1850
1864
|
off(ownerDocument, 'mouseup', this._onDrop);
|
|
1851
1865
|
off(ownerDocument, 'touchend', this._onDrop);
|
|
1852
1866
|
off(ownerDocument, 'pointerup', this._onDrop);
|
|
1867
|
+
off(ownerDocument, 'pointercancel', this._onDrop);
|
|
1853
1868
|
off(ownerDocument, 'touchcancel', this._onDrop);
|
|
1854
1869
|
off(document, 'selectstart', this);
|
|
1855
1870
|
},
|