@esri/calcite-components 2.8.1-next.4 → 2.8.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/dist/.storybook/placeholderImage.js +1 -1
- package/dist/calcite/assets/icon/binary16.json +1 -0
- package/dist/calcite/assets/icon/binary24.json +1 -0
- package/dist/calcite/assets/icon/binary32.json +1 -0
- package/dist/calcite/assets/icon/brackets16.json +1 -0
- package/dist/calcite/assets/icon/brackets24.json +1 -0
- package/dist/calcite/assets/icon/brackets32.json +1 -0
- package/dist/calcite/assets/icon/modifyAssociations16.json +1 -0
- package/dist/calcite/assets/icon/modifyAssociations24.json +1 -0
- package/dist/calcite/assets/icon/modifyAssociations32.json +1 -0
- package/dist/calcite/assets/icon/pasteWithAttribute16.json +1 -0
- package/dist/calcite/assets/icon/pasteWithAttribute24.json +1 -0
- package/dist/calcite/assets/icon/pasteWithAttribute32.json +1 -0
- package/dist/calcite/assets/icon/pasteWithoutAttribute16.json +1 -0
- package/dist/calcite/assets/icon/pasteWithoutAttribute24.json +1 -0
- package/dist/calcite/assets/icon/pasteWithoutAttribute32.json +1 -0
- package/dist/calcite/assets/icon/subFields16.json +1 -0
- package/dist/calcite/assets/icon/subFields24.json +1 -0
- package/dist/calcite/assets/icon/subFields32.json +1 -0
- package/dist/calcite/assets/icon/utilityNetwork16.json +1 -0
- package/dist/calcite/assets/icon/utilityNetwork24.json +1 -0
- package/dist/calcite/assets/icon/utilityNetwork32.json +1 -0
- package/dist/calcite/assets/icon/validateUtilityNetworkTopology16.json +1 -0
- package/dist/calcite/assets/icon/validateUtilityNetworkTopology24.json +1 -0
- package/dist/calcite/assets/icon/validateUtilityNetworkTopology32.json +1 -0
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/calcite.esm.js.map +1 -1
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/p-008598af.entry.js +7 -0
- package/dist/calcite/p-04a62485.js +7 -0
- package/dist/calcite/p-0775825d.entry.js +7 -0
- package/dist/calcite/p-07b90c61.entry.js +7 -0
- package/dist/calcite/p-0840e38f.entry.js +7 -0
- package/dist/calcite/p-0854d7dc.entry.js +7 -0
- package/dist/calcite/p-08e038e9.js +7 -0
- package/dist/calcite/p-0925af8f.entry.js +7 -0
- package/dist/calcite/p-09fb4a8e.entry.js +7 -0
- package/dist/calcite/p-0a290d39.js +7 -0
- package/dist/calcite/p-0aa629b8.js +7 -0
- package/dist/calcite/p-0e6ce54c.entry.js +7 -0
- package/dist/calcite/p-0e6ce54c.entry.js.map +1 -0
- package/dist/calcite/p-0f836295.js +7 -0
- package/dist/calcite/p-10739c0d.js +7 -0
- package/dist/calcite/p-1205a771.entry.js +7 -0
- package/dist/calcite/p-1418b638.js +7 -0
- package/dist/calcite/p-143eaae7.entry.js +7 -0
- package/dist/calcite/p-146c1ec8.js +7 -0
- package/dist/calcite/p-148ba613.entry.js +7 -0
- package/dist/calcite/p-16442b49.js +7 -0
- package/dist/calcite/p-16442b49.js.map +1 -0
- package/dist/calcite/p-193db61b.entry.js +7 -0
- package/dist/calcite/p-1bd1848d.entry.js +7 -0
- package/dist/calcite/p-1ebfd79c.js +7 -0
- package/dist/calcite/p-1ebfd79c.js.map +1 -0
- package/dist/calcite/p-1fed0e1b.entry.js +7 -0
- package/dist/calcite/p-1fed0e1b.entry.js.map +1 -0
- package/dist/calcite/p-20fa3284.js +7 -0
- package/dist/calcite/p-217a6eef.entry.js +7 -0
- package/dist/calcite/p-2254b571.entry.js +7 -0
- package/dist/calcite/p-2254b571.entry.js.map +1 -0
- package/dist/calcite/p-23380558.js +7 -0
- package/dist/calcite/p-23a8bcc0.js +7 -0
- package/dist/calcite/p-23a8bcc0.js.map +1 -0
- package/dist/calcite/p-26039743.entry.js +7 -0
- package/dist/calcite/p-26039743.entry.js.map +1 -0
- package/dist/calcite/p-261b8054.js +7 -0
- package/dist/calcite/p-2659489c.js +7 -0
- package/dist/calcite/p-2685bbf6.entry.js +7 -0
- package/dist/calcite/p-2ffc9b19.js +7 -0
- package/dist/calcite/p-31f94ee7.entry.js +7 -0
- package/dist/calcite/p-31f94ee7.entry.js.map +1 -0
- package/dist/calcite/p-340647f0.js +7 -0
- package/dist/calcite/p-3448cc04.js +7 -0
- package/dist/calcite/p-357ab3f7.js +7 -0
- package/dist/calcite/p-35a328ba.js +8 -0
- package/dist/calcite/p-35ba196b.entry.js +7 -0
- package/dist/calcite/p-35cf9628.js +7 -0
- package/dist/calcite/p-375bca57.js +7 -0
- package/dist/calcite/p-377a1794.js +7 -0
- package/dist/calcite/p-39666954.js +7 -0
- package/dist/calcite/p-3a0e751b.js +7 -0
- package/dist/calcite/p-3beccaf4.js +7 -0
- package/dist/calcite/p-3c99eeaf.entry.js +7 -0
- package/dist/calcite/p-3e4dc76d.entry.js +7 -0
- package/dist/calcite/p-402453b8.js +7 -0
- package/dist/calcite/p-40cf155c.entry.js +7 -0
- package/dist/calcite/p-41fa9ef1.js +7 -0
- package/dist/calcite/p-4250c261.js +7 -0
- package/dist/calcite/p-436ae6ab.entry.js +7 -0
- package/dist/calcite/p-4518e11a.js +7 -0
- package/dist/calcite/p-4751c036.entry.js +7 -0
- package/dist/calcite/p-4751c036.entry.js.map +1 -0
- package/dist/calcite/p-4ac7db05.entry.js +7 -0
- package/dist/calcite/p-4c478603.entry.js +7 -0
- package/dist/calcite/p-4c5e7edf.js +7 -0
- package/dist/calcite/p-4df6e10b.js +7 -0
- package/dist/calcite/p-5069e17d.entry.js +7 -0
- package/dist/calcite/p-50998078.entry.js +7 -0
- package/dist/calcite/p-515443c1.js +7 -0
- package/dist/calcite/p-51b16443.js +7 -0
- package/dist/calcite/p-533df8ff.entry.js +7 -0
- package/dist/calcite/p-53e1b1a0.js +7 -0
- package/dist/calcite/p-54d421df.js +7 -0
- package/dist/calcite/p-55634b8f.js +7 -0
- package/dist/calcite/p-57028b7a.js +7 -0
- package/dist/calcite/p-5822e1ab.entry.js +7 -0
- package/dist/calcite/p-5bb00cde.js +7 -0
- package/dist/calcite/p-5d1ce3e5.js +7 -0
- package/dist/calcite/p-5dd93c40.entry.js +7 -0
- package/dist/calcite/p-62ef7ba9.js +7 -0
- package/dist/calcite/p-660be847.entry.js +7 -0
- package/dist/calcite/p-68711cc0.entry.js +7 -0
- package/dist/calcite/p-6b5c58b2.entry.js +7 -0
- package/dist/calcite/p-6b5c58b2.entry.js.map +1 -0
- package/dist/calcite/p-6b63e648.js +7 -0
- package/dist/calcite/p-6c1a5713.entry.js +7 -0
- package/dist/calcite/p-6ca2b3fe.js +7 -0
- package/dist/calcite/p-6d74a532.entry.js +7 -0
- package/dist/calcite/p-6e3b852c.entry.js +7 -0
- package/dist/calcite/p-6e5d3433.entry.js +7 -0
- package/dist/calcite/p-7203a971.js +7 -0
- package/dist/calcite/p-73b734b1.js +7 -0
- package/dist/calcite/p-74dcaec3.entry.js +7 -0
- package/dist/calcite/p-74edb5b1.entry.js +7 -0
- package/dist/calcite/p-7510bca0.entry.js +7 -0
- package/dist/calcite/p-760b9343.js +7 -0
- package/dist/calcite/p-76e19889.js +7 -0
- package/dist/calcite/p-76e19889.js.map +1 -0
- package/dist/calcite/p-7ae3339e.js +7 -0
- package/dist/calcite/p-7c1b5578.js +12 -0
- package/dist/calcite/p-7c1b5578.js.map +1 -0
- package/dist/calcite/p-7d81f7f9.entry.js +7 -0
- package/dist/calcite/p-7d9b8101.entry.js +7 -0
- package/dist/calcite/p-80fd6533.js +7 -0
- package/dist/calcite/p-80fd6533.js.map +1 -0
- package/dist/calcite/p-859b76c8.entry.js +7 -0
- package/dist/calcite/p-859b76c8.entry.js.map +1 -0
- package/dist/calcite/p-8dcbec5f.entry.js +7 -0
- package/dist/calcite/p-8ed7d9b2.entry.js +7 -0
- package/dist/calcite/p-8ed7d9b2.entry.js.map +1 -0
- package/dist/calcite/p-8f754180.js +7 -0
- package/dist/calcite/p-90c1ba85.js +7 -0
- package/dist/calcite/p-9259547c.js +7 -0
- package/dist/calcite/p-94d43611.js +7 -0
- package/dist/calcite/p-961c1018.entry.js +7 -0
- package/dist/calcite/p-9820f859.js +7 -0
- package/dist/calcite/p-98f1388c.js +7 -0
- package/dist/calcite/p-98f1388c.js.map +1 -0
- package/dist/calcite/p-9962af47.js +13 -0
- package/dist/calcite/p-9a8dfa91.entry.js +7 -0
- package/dist/calcite/p-9a8dfa91.entry.js.map +1 -0
- package/dist/calcite/p-9cf1aef5.entry.js +7 -0
- package/dist/calcite/p-9dca7e34.entry.js +7 -0
- package/dist/calcite/p-9dedeb32.js +7 -0
- package/dist/calcite/p-a02b2d0f.js +7 -0
- package/dist/calcite/p-a0c3a134.js +7 -0
- package/dist/calcite/p-a15557ec.js +7 -0
- package/dist/calcite/p-a23cac55.js +7 -0
- package/dist/calcite/p-a3f19316.js +7 -0
- package/dist/calcite/p-a44b96cc.js +7 -0
- package/dist/calcite/p-ac81ad74.js +7 -0
- package/dist/calcite/p-ae65b8b6.entry.js +7 -0
- package/dist/calcite/p-af5147ef.js +7 -0
- package/dist/calcite/p-af857bea.js +7 -0
- package/dist/calcite/p-b0e1c572.js +7 -0
- package/dist/calcite/p-b12e4b8f.js +7 -0
- package/dist/calcite/p-b311094c.js +7 -0
- package/dist/calcite/p-b4b4b77f.js +7 -0
- package/dist/calcite/p-b52aa4c8.entry.js +7 -0
- package/dist/calcite/p-b84eff99.js +7 -0
- package/dist/calcite/p-b8e4ba59.entry.js +7 -0
- package/dist/calcite/p-b9f92ab4.entry.js +7 -0
- package/dist/calcite/p-b9f92ab4.entry.js.map +1 -0
- package/dist/calcite/p-bac20008.js +7 -0
- package/dist/calcite/p-bb526d6b.js +7 -0
- package/dist/calcite/p-bc221113.js +7 -0
- package/dist/calcite/p-c3417a95.entry.js +7 -0
- package/dist/calcite/p-c3417a95.entry.js.map +1 -0
- package/dist/calcite/p-c3c3442f.js +7 -0
- package/dist/calcite/p-c85bdafc.entry.js +7 -0
- package/dist/calcite/p-c8924e0b.js +7 -0
- package/dist/calcite/p-c969aea9.entry.js +7 -0
- package/dist/calcite/p-cd91b106.js +7 -0
- package/dist/calcite/p-cfb7b000.entry.js +7 -0
- package/dist/calcite/p-d12720da.js +7 -0
- package/dist/calcite/p-d29be4ae.entry.js +7 -0
- package/dist/calcite/p-d49d70e9.entry.js +7 -0
- package/dist/calcite/p-d5a88dbb.js +7 -0
- package/dist/calcite/p-d71f30af.js +7 -0
- package/dist/calcite/p-d8dc8980.js +7 -0
- package/dist/calcite/p-dda94bbd.entry.js +7 -0
- package/dist/calcite/p-dda94bbd.entry.js.map +1 -0
- package/dist/calcite/p-ddc5109a.js +7 -0
- package/dist/calcite/p-ddc93711.js +7 -0
- package/dist/calcite/p-ddc93711.js.map +1 -0
- package/dist/calcite/p-df446f2d.entry.js +7 -0
- package/dist/calcite/p-df446f2d.entry.js.map +1 -0
- package/dist/calcite/p-e2146f6c.entry.js +7 -0
- package/dist/calcite/p-e2146f6c.entry.js.map +1 -0
- package/dist/calcite/p-e384ebea.entry.js +7 -0
- package/dist/calcite/p-e3c6922f.entry.js +7 -0
- package/dist/calcite/p-e5ba9e03.entry.js +7 -0
- package/dist/calcite/p-e93c4924.entry.js +7 -0
- package/dist/calcite/p-e93c4924.entry.js.map +1 -0
- package/dist/calcite/p-e96c7753.js +7 -0
- package/dist/calcite/p-ea04dd85.entry.js +7 -0
- package/dist/calcite/p-ead4ff99.entry.js +7 -0
- package/dist/calcite/p-ec709188.entry.js +7 -0
- package/dist/calcite/p-ee27ac94.entry.js +7 -0
- package/dist/calcite/p-eef0ef71.js +7 -0
- package/dist/calcite/p-f0f2ab1d.js +7 -0
- package/dist/calcite/p-f5da02ec.entry.js +7 -0
- package/dist/calcite/p-f80a2fb7.js +7 -0
- package/dist/calcite/p-f892453a.js +11 -0
- package/dist/calcite/p-fc717707.js +7 -0
- package/dist/calcite/p-fcb28169.js +7 -0
- package/dist/calcite/p-fd48958a.entry.js +7 -0
- package/dist/calcite-preset.js +1 -1
- package/dist/cjs/ExpandToggle-5bce7637.js +110 -0
- package/dist/cjs/ExpandToggle-5bce7637.js.map +1 -0
- package/dist/cjs/FloatingArrow-4346e8e6.js +49 -0
- package/dist/cjs/FloatingArrow-4346e8e6.js.map +1 -0
- package/dist/cjs/Heading-e6d72f37.js +22 -0
- package/dist/cjs/Heading-e6d72f37.js.map +1 -0
- package/dist/cjs/Validation-fc0e86ad.js +18 -0
- package/dist/cjs/Validation-fc0e86ad.js.map +1 -0
- package/dist/cjs/app-globals-669d0b8f.js +61 -0
- package/dist/cjs/app-globals-669d0b8f.js.map +1 -0
- package/dist/cjs/ar-c1e11799.js +106 -0
- package/dist/cjs/ar-c1e11799.js.map +1 -0
- package/dist/cjs/array-b23aafab.js +14 -0
- package/dist/cjs/array-b23aafab.js.map +1 -0
- package/dist/cjs/bg-e84a12d9.js +84 -0
- package/dist/cjs/bg-e84a12d9.js.map +1 -0
- package/dist/cjs/browser-dc3b1706.js +22 -0
- package/dist/cjs/browser-dc3b1706.js.map +1 -0
- package/dist/cjs/bs-edd6a92d.js +53 -0
- package/dist/cjs/bs-edd6a92d.js.map +1 -0
- package/dist/cjs/ca-6241dd11.js +73 -0
- package/dist/cjs/ca-6241dd11.js.map +1 -0
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
- package/dist/cjs/calcite-action-group.cjs.entry.js +13 -13
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action.cjs.entry.js +15 -15
- package/dist/cjs/calcite-action.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-alert.cjs.entry.js +13 -13
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +22 -22
- package/dist/cjs/calcite-block_2.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-button.cjs.entry.js +16 -16
- package/dist/cjs/calcite-button.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-card-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-card.cjs.entry.js +12 -12
- package/dist/cjs/calcite-carousel_2.cjs.entry.js +37 -19
- package/dist/cjs/calcite-carousel_2.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-checkbox.cjs.entry.js +12 -12
- package/dist/cjs/calcite-chip-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-chip.cjs.entry.js +13 -13
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +25 -26
- package/dist/cjs/calcite-combobox_3.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +15 -15
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-fab.cjs.entry.js +8 -8
- package/dist/cjs/calcite-filter.cjs.entry.js +14 -14
- package/dist/cjs/calcite-flow-item.cjs.entry.js +13 -13
- package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
- package/dist/cjs/calcite-graph_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-handle.cjs.entry.js +12 -12
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +14 -15
- package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +31 -35
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +17 -17
- package/dist/cjs/calcite-input-text.cjs.entry.js +17 -17
- package/dist/cjs/calcite-input-time-picker.calcite-time-picker-385ad6db.js +2933 -0
- package/dist/cjs/calcite-input-time-picker.calcite-time-picker-385ad6db.js.map +1 -0
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +20 -20
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +17 -17
- package/dist/cjs/calcite-input.cjs.entry.js +17 -17
- package/dist/cjs/calcite-label.cjs.entry.js +7 -7
- package/dist/cjs/calcite-link.cjs.entry.js +8 -8
- package/dist/cjs/calcite-list_3.cjs.entry.js +28 -39
- package/dist/cjs/calcite-list_3.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
- package/dist/cjs/calcite-modal.cjs.entry.js +14 -14
- package/dist/cjs/calcite-navigation_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-notice.cjs.entry.js +14 -14
- package/dist/cjs/calcite-option_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-pagination.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-panel.cjs.entry.js +15 -15
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +17 -17
- package/dist/cjs/calcite-popover.cjs.entry.js +17 -17
- package/dist/cjs/calcite-progress.cjs.entry.js +5 -5
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +5 -5
- package/dist/cjs/calcite-radio-button.cjs.entry.js +12 -12
- package/dist/cjs/calcite-rating.cjs.entry.js +15 -16
- package/dist/cjs/calcite-rating.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +15 -17
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-sheet.cjs.entry.js +9 -9
- package/dist/cjs/calcite-shell_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-shell_3.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -9
- package/dist/cjs/calcite-split-button.cjs.entry.js +5 -5
- package/dist/cjs/calcite-stack.cjs.entry.js +6 -6
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-switch.cjs.entry.js +12 -12
- package/dist/cjs/calcite-tab_4.cjs.entry.js +13 -13
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-table-row.cjs.entry.js +9 -9
- package/dist/cjs/calcite-table.cjs.entry.js +11 -11
- package/dist/cjs/calcite-text-area.cjs.entry.js +20 -20
- package/dist/cjs/calcite-text-area.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-tile-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile.cjs.entry.js +13 -29
- package/dist/cjs/calcite-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tree_2.cjs.entry.js +11 -12
- package/dist/cjs/calcite-tree_2.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +17 -17
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/component-11fc3df4.js +30 -0
- package/dist/cjs/component-11fc3df4.js.map +1 -0
- package/dist/cjs/conditionalSlot-ee71f442.js +51 -0
- package/dist/cjs/conditionalSlot-ee71f442.js.map +1 -0
- package/dist/cjs/core-06a47c21.js +22 -0
- package/dist/cjs/core-06a47c21.js.map +1 -0
- package/dist/cjs/cs-c5f607de.js +149 -0
- package/dist/cjs/cs-c5f607de.js.map +1 -0
- package/dist/cjs/da-c3c27cd7.js +68 -0
- package/dist/cjs/da-c3c27cd7.js.map +1 -0
- package/dist/cjs/de-72c0e61d.js +93 -0
- package/dist/cjs/de-72c0e61d.js.map +1 -0
- package/dist/cjs/de-at-aa39a76a.js +92 -0
- package/dist/cjs/de-at-aa39a76a.js.map +1 -0
- package/dist/cjs/de-ch-f0d8a5c2.js +92 -0
- package/dist/cjs/de-ch-f0d8a5c2.js.map +1 -0
- package/dist/cjs/debounce-71a936fc.js +506 -0
- package/dist/cjs/debounce-71a936fc.js.map +1 -0
- package/dist/cjs/dom-b57152b1.js +1144 -0
- package/dist/cjs/dom-b57152b1.js.map +1 -0
- package/dist/cjs/el-75539908.js +68 -0
- package/dist/cjs/el-75539908.js.map +1 -0
- package/dist/cjs/en-au-6b5d8d52.js +68 -0
- package/dist/cjs/en-au-6b5d8d52.js.map +1 -0
- package/dist/cjs/en-ca-bf60c2ed.js +67 -0
- package/dist/cjs/en-ca-bf60c2ed.js.map +1 -0
- package/dist/cjs/en-gb-686dd34a.js +71 -0
- package/dist/cjs/en-gb-686dd34a.js.map +1 -0
- package/dist/cjs/es-e26e4232.js +68 -0
- package/dist/cjs/es-e26e4232.js.map +1 -0
- package/dist/cjs/es-mx-8d403fe1.js +67 -0
- package/dist/cjs/es-mx-8d403fe1.js.map +1 -0
- package/dist/cjs/et-6aeead4f.js +94 -0
- package/dist/cjs/et-6aeead4f.js.map +1 -0
- package/dist/cjs/fi-95602602.js +117 -0
- package/dist/cjs/fi-95602602.js.map +1 -0
- package/dist/cjs/filter-dcce48f8.js +774 -0
- package/dist/cjs/filter-dcce48f8.js.map +1 -0
- package/dist/cjs/floating-ui-89d1593f.js +2281 -0
- package/dist/cjs/floating-ui-89d1593f.js.map +1 -0
- package/dist/cjs/focusTrapComponent-d8b2a544.js +1020 -0
- package/dist/cjs/focusTrapComponent-d8b2a544.js.map +1 -0
- package/dist/cjs/form-1331718b.js +378 -0
- package/dist/cjs/form-1331718b.js.map +1 -0
- package/dist/cjs/fr-a2b678a1.js +70 -0
- package/dist/cjs/fr-a2b678a1.js.map +1 -0
- package/dist/cjs/fr-ch-759b8dbc.js +68 -0
- package/dist/cjs/fr-ch-759b8dbc.js.map +1 -0
- package/dist/cjs/guid-99dacbc2.js +23 -0
- package/dist/cjs/guid-99dacbc2.js.map +1 -0
- package/dist/cjs/he-64f14bbb.js +107 -0
- package/dist/cjs/he-64f14bbb.js.map +1 -0
- package/dist/cjs/hi-85528636.js +67 -0
- package/dist/cjs/hi-85528636.js.map +1 -0
- package/dist/cjs/hr-53cf1e1d.js +82 -0
- package/dist/cjs/hr-53cf1e1d.js.map +1 -0
- package/dist/cjs/hu-f85546c0.js +90 -0
- package/dist/cjs/hu-f85546c0.js.map +1 -0
- package/dist/cjs/id-a58d5800.js +68 -0
- package/dist/cjs/id-a58d5800.js.map +1 -0
- package/dist/cjs/index-1a108b7d.js +75 -0
- package/dist/cjs/index-1a108b7d.js.map +1 -0
- package/dist/cjs/index-b38bb35e.js +208 -0
- package/dist/cjs/index-b38bb35e.js.map +1 -0
- package/dist/cjs/index-c6b5ad7b.js +1934 -0
- package/dist/cjs/index-c6b5ad7b.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/input-39189b9b.js +57 -0
- package/dist/cjs/input-39189b9b.js.map +1 -0
- package/dist/cjs/interactive-35684366.js +151 -0
- package/dist/cjs/interactive-35684366.js.map +1 -0
- package/dist/cjs/it-8f5ce987.js +68 -0
- package/dist/cjs/it-8f5ce987.js.map +1 -0
- package/dist/cjs/it-ch-7263205d.js +68 -0
- package/dist/cjs/it-ch-7263205d.js.map +1 -0
- package/dist/cjs/ja-f26ba021.js +74 -0
- package/dist/cjs/ja-f26ba021.js.map +1 -0
- package/dist/cjs/key-0b1b1576.js +16 -0
- package/dist/cjs/key-0b1b1576.js.map +1 -0
- package/dist/cjs/ko-8197c0d1.js +74 -0
- package/dist/cjs/ko-8197c0d1.js.map +1 -0
- package/dist/cjs/label-bd983795.js +183 -0
- package/dist/cjs/label-bd983795.js.map +1 -0
- package/dist/cjs/loadable-ee428bde.js +91 -0
- package/dist/cjs/loadable-ee428bde.js.map +1 -0
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/locale-1fef87ea.js +576 -0
- package/dist/cjs/locale-1fef87ea.js.map +1 -0
- package/dist/cjs/lt-bc10d2b0.js +99 -0
- package/dist/cjs/lt-bc10d2b0.js.map +1 -0
- package/dist/cjs/lv-f17cf28a.js +68 -0
- package/dist/cjs/lv-f17cf28a.js.map +1 -0
- package/dist/cjs/math-a4f9befe.js +57 -0
- package/dist/cjs/math-a4f9befe.js.map +1 -0
- package/dist/cjs/mk-f582cf11.js +68 -0
- package/dist/cjs/mk-f582cf11.js.map +1 -0
- package/dist/cjs/nb-9f7c904a.js +69 -0
- package/dist/cjs/nb-9f7c904a.js.map +1 -0
- package/dist/cjs/nl-a71aa258.js +69 -0
- package/dist/cjs/nl-a71aa258.js.map +1 -0
- package/dist/cjs/observers-61d0209d.js +52 -0
- package/dist/cjs/observers-61d0209d.js.map +1 -0
- package/dist/cjs/openCloseComponent-44482695.js +89 -0
- package/dist/cjs/openCloseComponent-44482695.js.map +1 -0
- package/dist/cjs/pl-5a760691.js +116 -0
- package/dist/cjs/pl-5a760691.js.map +1 -0
- package/dist/cjs/pt-751b0a2a.js +69 -0
- package/dist/cjs/pt-751b0a2a.js.map +1 -0
- package/dist/cjs/pt-br-d812ed41.js +67 -0
- package/dist/cjs/pt-br-d812ed41.js.map +1 -0
- package/dist/cjs/resources-18d2251c.js +26 -0
- package/dist/cjs/resources-18d2251c.js.map +1 -0
- package/dist/cjs/resources-4bca93f8.js +29 -0
- package/dist/cjs/resources-4bca93f8.js.map +1 -0
- package/dist/cjs/resources-87d67ba7.js +26 -0
- package/dist/cjs/resources-87d67ba7.js.map +1 -0
- package/dist/cjs/resources-9907f8b2.js +414 -0
- package/dist/cjs/resources-9907f8b2.js.map +1 -0
- package/dist/cjs/resources-b931ad9e.js +18 -0
- package/dist/cjs/resources-b931ad9e.js.map +1 -0
- package/dist/cjs/resources-f1498c50.js +49 -0
- package/dist/cjs/resources-f1498c50.js.map +1 -0
- package/dist/cjs/resources-fbfb4ac7.js +23 -0
- package/dist/cjs/resources-fbfb4ac7.js.map +1 -0
- package/dist/cjs/ro-314b57d6.js +68 -0
- package/dist/cjs/ro-314b57d6.js.map +1 -0
- package/dist/cjs/ru-0e839dea.js +128 -0
- package/dist/cjs/ru-0e839dea.js.map +1 -0
- package/dist/cjs/sk-83f1ecfd.js +150 -0
- package/dist/cjs/sk-83f1ecfd.js.map +1 -0
- package/dist/cjs/sl-b932d7d3.js +170 -0
- package/dist/cjs/sl-b932d7d3.js.map +1 -0
- package/dist/cjs/sortableComponent-43f9018b.js +2744 -0
- package/dist/cjs/sortableComponent-43f9018b.js.map +1 -0
- package/dist/cjs/sr-1bd9f3ce.js +103 -0
- package/dist/cjs/sr-1bd9f3ce.js.map +1 -0
- package/dist/cjs/sv-3ffdd83d.js +73 -0
- package/dist/cjs/sv-3ffdd83d.js.map +1 -0
- package/dist/cjs/t9n-629abe82.js +97 -0
- package/dist/cjs/t9n-629abe82.js.map +1 -0
- package/dist/cjs/th-317c2881.js +67 -0
- package/dist/cjs/th-317c2881.js.map +1 -0
- package/dist/cjs/throttle-161227c0.js +77 -0
- package/dist/cjs/throttle-161227c0.js.map +1 -0
- package/dist/cjs/tr-6d522ea7.js +68 -0
- package/dist/cjs/tr-6d522ea7.js.map +1 -0
- package/dist/cjs/uk-56d8f07c.js +106 -0
- package/dist/cjs/uk-56d8f07c.js.map +1 -0
- package/dist/cjs/utils-07445d21.js +307 -0
- package/dist/cjs/utils-07445d21.js.map +1 -0
- package/dist/cjs/utils-56670202.js +218 -0
- package/dist/cjs/utils-56670202.js.map +1 -0
- package/dist/cjs/vi-19067f96.js +72 -0
- package/dist/cjs/vi-19067f96.js.map +1 -0
- package/dist/cjs/zh-cn-172df236.js +96 -0
- package/dist/cjs/zh-cn-172df236.js.map +1 -0
- package/dist/cjs/zh-hk-60d203b6.js +73 -0
- package/dist/cjs/zh-hk-60d203b6.js.map +1 -0
- package/dist/cjs/zh-tw-57e8275d.js +94 -0
- package/dist/cjs/zh-tw-57e8275d.js.map +1 -0
- package/dist/collection/components/accordion/accordion.css +5 -5
- package/dist/collection/components/accordion/accordion.e2e.js +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.css +5 -5
- package/dist/collection/components/accordion-item/accordion-item.e2e.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.css +5 -5
- package/dist/collection/components/action/action.e2e.js +1 -1
- package/dist/collection/components/action/action.js +4 -4
- package/dist/collection/components/action/action.js.map +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.css +5 -5
- package/dist/collection/components/action-bar/action-bar.e2e.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.css +5 -5
- package/dist/collection/components/action-group/action-group.e2e.js +1 -1
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.css +5 -5
- package/dist/collection/components/action-menu/action-menu.e2e.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.css +5 -5
- package/dist/collection/components/action-pad/action-pad.e2e.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.css +5 -5
- package/dist/collection/components/alert/alert.e2e.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.css +5 -5
- package/dist/collection/components/avatar/avatar.e2e.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/avatar.spec.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.css +5 -5
- package/dist/collection/components/block/block.e2e.js +1 -1
- package/dist/collection/components/block/block.js +6 -6
- package/dist/collection/components/block/block.js.map +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.css +5 -5
- package/dist/collection/components/block-section/block-section.e2e.js +1 -1
- package/dist/collection/components/block-section/block-section.js +3 -3
- package/dist/collection/components/block-section/block-section.js.map +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.css +5 -10
- package/dist/collection/components/button/button.e2e.js +1 -11
- package/dist/collection/components/button/button.e2e.js.map +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.css +5 -5
- package/dist/collection/components/card/card.e2e.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/card-group/card-group.css +5 -5
- package/dist/collection/components/card-group/card-group.e2e.js +60 -32
- package/dist/collection/components/card-group/card-group.e2e.js.map +1 -1
- package/dist/collection/components/card-group/card-group.js +1 -1
- package/dist/collection/components/carousel/carousel.css +5 -5
- package/dist/collection/components/carousel/carousel.e2e.js +39 -1
- package/dist/collection/components/carousel/carousel.e2e.js.map +1 -1
- package/dist/collection/components/carousel/carousel.js +28 -8
- package/dist/collection/components/carousel/carousel.js.map +1 -1
- package/dist/collection/components/carousel/resources.js +1 -1
- package/dist/collection/components/carousel-item/carousel-item.css +5 -5
- package/dist/collection/components/carousel-item/carousel-item.e2e.js +1 -1
- package/dist/collection/components/carousel-item/carousel-item.js +1 -1
- package/dist/collection/components/carousel-item/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.css +5 -5
- package/dist/collection/components/checkbox/checkbox.e2e.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.css +5 -5
- package/dist/collection/components/chip/chip.e2e.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/chip-group/chip-group.css +5 -5
- package/dist/collection/components/chip-group/chip-group.e2e.js +82 -54
- package/dist/collection/components/chip-group/chip-group.e2e.js.map +1 -1
- package/dist/collection/components/chip-group/chip-group.js +1 -1
- package/dist/collection/components/color-picker/color-picker.css +5 -5
- package/dist/collection/components/color-picker/color-picker.e2e.js +5 -5
- package/dist/collection/components/color-picker/color-picker.e2e.js.map +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker/utils.spec.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +5 -5
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.e2e.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.css +5 -5
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.e2e.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.css +5 -5
- package/dist/collection/components/combobox/combobox.e2e.js +1 -1
- package/dist/collection/components/combobox/combobox.js +4 -5
- package/dist/collection/components/combobox/combobox.js.map +1 -1
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.css +5 -5
- package/dist/collection/components/combobox-item/combobox-item.e2e.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.css +5 -5
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.css +5 -5
- package/dist/collection/components/date-picker/date-picker.e2e.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker/utils.spec.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.css +5 -5
- package/dist/collection/components/date-picker-day/date-picker-day.e2e.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.css +5 -5
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.css +5 -5
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.e2e.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.css +5 -5
- package/dist/collection/components/dropdown/dropdown.e2e.js +78 -24
- package/dist/collection/components/dropdown/dropdown.e2e.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.css +5 -5
- package/dist/collection/components/dropdown-group/dropdown-group.e2e.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.css +5 -5
- package/dist/collection/components/dropdown-item/dropdown-item.e2e.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.css +5 -5
- package/dist/collection/components/fab/fab.e2e.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.css +5 -5
- package/dist/collection/components/filter/filter.e2e.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.css +5 -5
- package/dist/collection/components/flow/flow.e2e.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.css +5 -5
- package/dist/collection/components/flow-item/flow-item.e2e.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/FloatingArrow.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/functional/Heading.spec.js +1 -1
- package/dist/collection/components/functional/Validation.js +1 -1
- package/dist/collection/components/functional/XButton.js +1 -1
- package/dist/collection/components/graph/graph.css +5 -5
- package/dist/collection/components/graph/graph.e2e.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.css +5 -5
- package/dist/collection/components/handle/handle.e2e.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/assets/icon/binary16.json +1 -0
- package/dist/collection/components/icon/assets/icon/binary24.json +1 -0
- package/dist/collection/components/icon/assets/icon/binary32.json +1 -0
- package/dist/collection/components/icon/assets/icon/brackets16.json +1 -0
- package/dist/collection/components/icon/assets/icon/brackets24.json +1 -0
- package/dist/collection/components/icon/assets/icon/brackets32.json +1 -0
- package/dist/collection/components/icon/assets/icon/modifyAssociations16.json +1 -0
- package/dist/collection/components/icon/assets/icon/modifyAssociations24.json +1 -0
- package/dist/collection/components/icon/assets/icon/modifyAssociations32.json +1 -0
- package/dist/collection/components/icon/assets/icon/pasteWithAttribute16.json +1 -0
- package/dist/collection/components/icon/assets/icon/pasteWithAttribute24.json +1 -0
- package/dist/collection/components/icon/assets/icon/pasteWithAttribute32.json +1 -0
- package/dist/collection/components/icon/assets/icon/pasteWithoutAttribute16.json +1 -0
- package/dist/collection/components/icon/assets/icon/pasteWithoutAttribute24.json +1 -0
- package/dist/collection/components/icon/assets/icon/pasteWithoutAttribute32.json +1 -0
- package/dist/collection/components/icon/assets/icon/subFields16.json +1 -0
- package/dist/collection/components/icon/assets/icon/subFields24.json +1 -0
- package/dist/collection/components/icon/assets/icon/subFields32.json +1 -0
- package/dist/collection/components/icon/assets/icon/utilityNetwork16.json +1 -0
- package/dist/collection/components/icon/assets/icon/utilityNetwork24.json +1 -0
- package/dist/collection/components/icon/assets/icon/utilityNetwork32.json +1 -0
- package/dist/collection/components/icon/assets/icon/validateUtilityNetworkTopology16.json +1 -0
- package/dist/collection/components/icon/assets/icon/validateUtilityNetworkTopology24.json +1 -0
- package/dist/collection/components/icon/assets/icon/validateUtilityNetworkTopology32.json +1 -0
- package/dist/collection/components/icon/icon.css +5 -5
- package/dist/collection/components/icon/icon.e2e.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/icon/utils.spec.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.css +5 -5
- package/dist/collection/components/inline-editable/inline-editable.e2e.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -2
- package/dist/collection/components/inline-editable/inline-editable.js.map +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/common/input.js +1 -1
- package/dist/collection/components/input/common/input.spec.js +1 -1
- package/dist/collection/components/input/common/tests.js +1 -1
- package/dist/collection/components/input/input.css +5 -5
- package/dist/collection/components/input/input.e2e.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.css +5 -5
- package/dist/collection/components/input-date-picker/input-date-picker.e2e.js +2 -4
- package/dist/collection/components/input-date-picker/input-date-picker.e2e.js.map +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +13 -17
- package/dist/collection/components/input-date-picker/input-date-picker.js.map +1 -1
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-date-picker/util.spec.js +1 -1
- package/dist/collection/components/input-date-picker/utils.js +1 -1
- package/dist/collection/components/input-message/input-message.css +5 -5
- package/dist/collection/components/input-message/input-message.e2e.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.css +5 -5
- package/dist/collection/components/input-number/input-number.e2e.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.css +5 -5
- package/dist/collection/components/input-text/input-text.e2e.js +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.css +5 -5
- package/dist/collection/components/input-time-picker/input-time-picker.e2e.js +5 -7
- package/dist/collection/components/input-time-picker/input-time-picker.e2e.js.map +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +7 -7
- package/dist/collection/components/input-time-picker/input-time-picker.js.map +1 -1
- package/dist/collection/components/input-time-picker/resources.js +1 -1
- package/dist/collection/components/input-time-zone/input-time-zone.css +5 -5
- package/dist/collection/components/input-time-zone/input-time-zone.e2e.js +1 -1
- package/dist/collection/components/input-time-zone/input-time-zone.js +1 -1
- package/dist/collection/components/input-time-zone/utils.js +1 -1
- package/dist/collection/components/label/label.css +5 -5
- package/dist/collection/components/label/label.e2e.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.css +5 -5
- package/dist/collection/components/link/link.e2e.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.css +5 -5
- package/dist/collection/components/list/list.e2e.js +2 -46
- package/dist/collection/components/list/list.e2e.js.map +1 -1
- package/dist/collection/components/list/list.js +13 -16
- package/dist/collection/components/list/list.js.map +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.css +6 -6
- package/dist/collection/components/list-item/list-item.e2e.js +1 -1
- package/dist/collection/components/list-item/list-item.js +3 -30
- package/dist/collection/components/list-item/list-item.js.map +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/utils.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.css +5 -5
- package/dist/collection/components/list-item-group/list-item-group.e2e.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.css +5 -5
- package/dist/collection/components/loader/loader.e2e.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/menu/menu.css +5 -5
- package/dist/collection/components/menu/menu.e2e.js +1 -1
- package/dist/collection/components/menu/menu.js +1 -1
- package/dist/collection/components/menu-item/menu-item.css +5 -5
- package/dist/collection/components/menu-item/menu-item.e2e.js +1 -1
- package/dist/collection/components/menu-item/menu-item.js +1 -1
- package/dist/collection/components/menu-item/resources.js +1 -1
- package/dist/collection/components/meter/meter.css +5 -5
- package/dist/collection/components/meter/meter.e2e.js +1 -1
- package/dist/collection/components/meter/meter.js +1 -1
- package/dist/collection/components/meter/resources.js +1 -1
- package/dist/collection/components/modal/modal.css +6 -6
- package/dist/collection/components/modal/modal.e2e.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/navigation/navigation.css +5 -5
- package/dist/collection/components/navigation/navigation.e2e.js +1 -1
- package/dist/collection/components/navigation/navigation.js +1 -1
- package/dist/collection/components/navigation/resources.js +1 -1
- package/dist/collection/components/navigation-logo/navigation-logo.css +5 -5
- package/dist/collection/components/navigation-logo/navigation-logo.e2e.js +1 -1
- package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
- package/dist/collection/components/navigation-logo/resources.js +1 -1
- package/dist/collection/components/navigation-user/navigation-user.css +5 -5
- package/dist/collection/components/navigation-user/navigation-user.e2e.js +1 -1
- package/dist/collection/components/navigation-user/navigation-user.js +1 -1
- package/dist/collection/components/navigation-user/resources.js +1 -1
- package/dist/collection/components/notice/notice.css +5 -5
- package/dist/collection/components/notice/notice.e2e.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.css +5 -5
- package/dist/collection/components/option/option.e2e.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.css +5 -5
- package/dist/collection/components/option-group/option-group.e2e.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.css +5 -5
- package/dist/collection/components/pagination/pagination.e2e.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.css +5 -5
- package/dist/collection/components/panel/panel.e2e.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.css +5 -5
- package/dist/collection/components/pick-list/pick-list.e2e.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list/shared-list-tests.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.css +5 -5
- package/dist/collection/components/pick-list-group/pick-list-group.e2e.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.css +5 -5
- package/dist/collection/components/pick-list-item/pick-list-item.e2e.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.css +5 -5
- package/dist/collection/components/popover/popover.e2e.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.css +5 -5
- package/dist/collection/components/progress/progress.e2e.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.css +5 -5
- package/dist/collection/components/radio-button/radio-button.e2e.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.css +5 -5
- package/dist/collection/components/radio-button-group/radio-button-group.e2e.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-button-group/resources.js +1 -1
- package/dist/collection/components/rating/functional/star.js +1 -1
- package/dist/collection/components/rating/rating.css +5 -5
- package/dist/collection/components/rating/rating.e2e.js +1 -1
- package/dist/collection/components/rating/rating.js +2 -1
- package/dist/collection/components/rating/rating.js.map +1 -1
- package/dist/collection/components/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.css +5 -5
- package/dist/collection/components/scrim/scrim.e2e.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/segmented-control/resources.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.css +5 -5
- package/dist/collection/components/segmented-control/segmented-control.e2e.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.js +3 -5
- package/dist/collection/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/collection/components/segmented-control-item/resources.js +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.css +5 -5
- package/dist/collection/components/segmented-control-item/segmented-control-item.e2e.js +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.css +5 -5
- package/dist/collection/components/select/select.e2e.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/sheet/resources.js +1 -1
- package/dist/collection/components/sheet/sheet.css +5 -5
- package/dist/collection/components/sheet/sheet.e2e.js +1 -1
- package/dist/collection/components/sheet/sheet.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.css +5 -5
- package/dist/collection/components/shell/shell.e2e.js +1 -1
- package/dist/collection/components/shell/shell.js +3 -3
- package/dist/collection/components/shell/shell.js.map +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.css +5 -5
- package/dist/collection/components/shell-center-row/shell-center-row.e2e.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.css +5 -5
- package/dist/collection/components/shell-panel/shell-panel.e2e.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.css +5 -5
- package/dist/collection/components/slider/slider.e2e.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.css +5 -5
- package/dist/collection/components/sortable-list/sortable-list.e2e.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.css +5 -5
- package/dist/collection/components/split-button/split-button.e2e.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stack/resources.js +1 -1
- package/dist/collection/components/stack/stack.css +5 -5
- package/dist/collection/components/stack/stack.e2e.js +1 -1
- package/dist/collection/components/stack/stack.js +1 -1
- package/dist/collection/components/stepper/functional/step-bar.js +1 -1
- package/dist/collection/components/stepper/resources.js +1 -1
- package/dist/collection/components/stepper/stepper.css +5 -5
- package/dist/collection/components/stepper/stepper.e2e.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/resources.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.css +5 -5
- package/dist/collection/components/stepper-item/stepper-item.e2e.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.css +5 -5
- package/dist/collection/components/switch/switch.e2e.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/resources.js +1 -1
- package/dist/collection/components/tab/tab.css +5 -5
- package/dist/collection/components/tab/tab.e2e.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/resources.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.css +5 -5
- package/dist/collection/components/tab-nav/tab-nav.e2e.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/resources.js +1 -1
- package/dist/collection/components/tab-title/tab-title.css +5 -5
- package/dist/collection/components/tab-title/tab-title.e2e.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/table/resources.js +1 -1
- package/dist/collection/components/table/table.css +5 -5
- package/dist/collection/components/table/table.e2e.js +75 -44
- package/dist/collection/components/table/table.e2e.js.map +1 -1
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/table-cell/resources.js +1 -1
- package/dist/collection/components/table-cell/table-cell.css +5 -5
- package/dist/collection/components/table-cell/table-cell.js +1 -1
- package/dist/collection/components/table-header/resources.js +1 -1
- package/dist/collection/components/table-header/table-header.css +5 -5
- package/dist/collection/components/table-header/table-header.js +1 -1
- package/dist/collection/components/table-row/resources.js +1 -1
- package/dist/collection/components/table-row/table-row.css +5 -5
- package/dist/collection/components/table-row/table-row.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.css +5 -5
- package/dist/collection/components/tabs/tabs.e2e.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text-area/resources.js +1 -1
- package/dist/collection/components/text-area/text-area.css +5 -5
- package/dist/collection/components/text-area/text-area.e2e.js +1 -1
- package/dist/collection/components/text-area/text-area.js +2 -2
- package/dist/collection/components/text-area/text-area.js.map +1 -1
- package/dist/collection/components/tile/resources.js +2 -4
- package/dist/collection/components/tile/resources.js.map +1 -1
- package/dist/collection/components/tile/tile.css +13 -22
- package/dist/collection/components/tile/tile.e2e.js +1 -1
- package/dist/collection/components/tile/tile.js +5 -27
- package/dist/collection/components/tile/tile.js.map +1 -1
- package/dist/collection/components/tile-group/resources.js +1 -1
- package/dist/collection/components/tile-group/tile-group.css +5 -5
- package/dist/collection/components/tile-group/tile-group.e2e.js +31 -32
- package/dist/collection/components/tile-group/tile-group.e2e.js.map +1 -1
- package/dist/collection/components/tile-group/tile-group.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.css +5 -5
- package/dist/collection/components/tile-select/tile-select.e2e.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.css +5 -5
- package/dist/collection/components/tile-select-group/tile-select-group.e2e.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.css +5 -5
- package/dist/collection/components/time-picker/time-picker.e2e.js +7 -7
- package/dist/collection/components/time-picker/time-picker.e2e.js.map +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.css +5 -5
- package/dist/collection/components/tip/tip.e2e.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.css +5 -5
- package/dist/collection/components/tip-group/tip-group.e2e.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.css +5 -5
- package/dist/collection/components/tip-manager/tip-manager.e2e.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.spec.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.css +5 -5
- package/dist/collection/components/tooltip/tooltip.e2e.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip/utils.js +1 -1
- package/dist/collection/components/tree/tree.css +5 -5
- package/dist/collection/components/tree/tree.e2e.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.css +5 -5
- package/dist/collection/components/tree-item/tree-item.e2e.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +2 -3
- package/dist/collection/components/tree-item/tree-item.js.map +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.css +5 -5
- package/dist/collection/components/value-list/value-list.e2e.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.css +5 -5
- package/dist/collection/components/value-list-item/value-list-item.e2e.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/tests/commonTests/accessible.js +1 -1
- package/dist/collection/tests/commonTests/defaults.js +1 -1
- package/dist/collection/tests/commonTests/disabled.js +1 -1
- package/dist/collection/tests/commonTests/floatingUI.js +1 -1
- package/dist/collection/tests/commonTests/focusable.js +1 -1
- package/dist/collection/tests/commonTests/formAssociated.js +1 -1
- package/dist/collection/tests/commonTests/hidden.js +1 -1
- package/dist/collection/tests/commonTests/index.js +1 -1
- package/dist/collection/tests/commonTests/labelable.js +1 -1
- package/dist/collection/tests/commonTests/openClose.js +1 -1
- package/dist/collection/tests/commonTests/reflects.js +1 -1
- package/dist/collection/tests/commonTests/renders.js +1 -1
- package/dist/collection/tests/commonTests/slots.js +1 -1
- package/dist/collection/tests/commonTests/t9n.js +2 -1
- package/dist/collection/tests/commonTests/t9n.js.map +1 -1
- package/dist/collection/tests/commonTests/utils.js +1 -1
- package/dist/collection/tests/utils.js +27 -31
- package/dist/collection/tests/utils.js.map +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/browser.js +1 -1
- package/dist/collection/utils/component.js +1 -1
- package/dist/collection/utils/component.spec.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/config.spec.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/date.spec.js +1 -1
- package/dist/collection/utils/dom.e2e.js +1 -1
- package/dist/collection/utils/dom.js +47 -1
- package/dist/collection/utils/dom.js.map +1 -1
- package/dist/collection/utils/dom.spec.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/floating-ui.spec.js +1 -1
- package/dist/collection/utils/focusTrapComponent.js +1 -1
- package/dist/collection/utils/focusTrapComponent.spec.js +2 -2
- package/dist/collection/utils/focusTrapComponent.spec.js.map +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/form.spec.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/guid.spec.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/interactive.spec.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/label.spec.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/loadable.spec.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/locale.spec.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/math.spec.js +1 -1
- package/dist/collection/utils/mode.js +1 -1
- package/dist/collection/utils/number.js +2 -2
- package/dist/collection/utils/number.js.map +1 -1
- package/dist/collection/utils/number.spec.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +37 -38
- package/dist/collection/utils/openCloseComponent.js.map +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/responsive.js +1 -1
- package/dist/collection/utils/responsive.spec.js +1 -1
- package/dist/collection/utils/sortableComponent.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/collection/utils/time.spec.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/Validation.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +3 -3
- package/dist/components/action.js.map +1 -1
- package/dist/components/ar.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/bg.js +1 -1
- package/dist/components/bs.js +1 -1
- package/dist/components/button.js +2 -2
- package/dist/components/button.js.map +1 -1
- package/dist/components/ca.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +3 -3
- package/dist/components/calcite-block-section.js.map +1 -1
- package/dist/components/calcite-block.js +6 -6
- package/dist/components/calcite-block.js.map +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card-group.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-carousel-item.js +1 -1
- package/dist/components/calcite-carousel.js +27 -8
- package/dist/components/calcite-carousel.js.map +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip-group.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +2 -2
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -2
- package/dist/components/calcite-inline-editable.js.map +1 -1
- package/dist/components/calcite-input-date-picker.js +14 -18
- package/dist/components/calcite-input-date-picker.js.map +1 -1
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +7 -7
- package/dist/components/calcite-input-time-picker.js.map +1 -1
- package/dist/components/calcite-input-time-zone.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +5 -14
- package/dist/components/calcite-list-item.js.map +1 -1
- package/dist/components/calcite-list.js +13 -16
- package/dist/components/calcite-list.js.map +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-menu.js +1 -1
- package/dist/components/calcite-meter.js +2 -2
- package/dist/components/calcite-modal.js +2 -2
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -1
- package/dist/components/calcite-navigation.js +1 -1
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-rating.js +1 -2
- package/dist/components/calcite-rating.js.map +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-segmented-control-item.js +1 -1
- package/dist/components/calcite-segmented-control.js +3 -5
- package/dist/components/calcite-segmented-control.js.map +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-sheet.js +2 -2
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +2 -2
- package/dist/components/calcite-shell.js +3 -3
- package/dist/components/calcite-shell.js.map +1 -1
- package/dist/components/calcite-slider.js +2 -2
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stack.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-table-cell.js +1 -1
- package/dist/components/calcite-table-header.js +1 -1
- package/dist/components/calcite-table-row.js +1 -1
- package/dist/components/calcite-table.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-text-area.js +2 -2
- package/dist/components/calcite-text-area.js.map +1 -1
- package/dist/components/calcite-tile-group.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +7 -27
- package/dist/components/calcite-tile.js.map +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +2 -2
- package/dist/components/calcite-tree-item.js +3 -4
- package/dist/components/calcite-tree-item.js.map +1 -1
- package/dist/components/calcite-tree.js +2 -2
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item.js +1 -1
- package/dist/components/combobox.js +5 -6
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/component.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/core.js +2 -2
- package/dist/components/core.js.map +1 -1
- package/dist/components/cs.js +1 -1
- package/dist/components/da.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/de-at.js +1 -1
- package/dist/components/de-ch.js +1 -1
- package/dist/components/de.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +48 -2
- package/dist/components/dom.js.map +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/el.js +1 -1
- package/dist/components/en-au.js +1 -1
- package/dist/components/en-ca.js +1 -1
- package/dist/components/en-gb.js +1 -1
- package/dist/components/es-mx.js +1 -1
- package/dist/components/es.js +1 -1
- package/dist/components/et.js +1 -1
- package/dist/components/fi.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +4 -17
- package/dist/components/floating-ui.js.map +1 -1
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/fr-ch.js +1 -1
- package/dist/components/fr.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/he.js +1 -1
- package/dist/components/hi.js +1 -1
- package/dist/components/hr.js +1 -1
- package/dist/components/hu.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/id.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index4.js +1 -1
- package/dist/components/input-message.js +1 -1
- package/dist/components/input-number.js +2 -2
- package/dist/components/input-text.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/input2.js +2 -2
- package/dist/components/interactive.js +1 -1
- package/dist/components/it-ch.js +1 -1
- package/dist/components/it.js +1 -1
- package/dist/components/ja.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/ko.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +2 -2
- package/dist/components/locale.js.map +1 -1
- package/dist/components/lt.js +1 -1
- package/dist/components/lv.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/mk.js +1 -1
- package/dist/components/nb.js +1 -1
- package/dist/components/nl.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +37 -38
- package/dist/components/openCloseComponent.js.map +1 -1
- package/dist/components/pagination.js +2 -2
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/pl.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/pt-br.js +1 -1
- package/dist/components/pt.js +1 -1
- package/dist/components/radio-button.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +1 -1
- package/dist/components/resources5.js +1 -1
- package/dist/components/resources6.js +1 -1
- package/dist/components/ro.js +1 -1
- package/dist/components/ru.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sk.js +1 -1
- package/dist/components/sl.js +1 -1
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/sr.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/sv.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +2 -2
- package/dist/components/tab-title.js +2 -2
- package/dist/components/tab.js +2 -2
- package/dist/components/table-cell.js +1 -1
- package/dist/components/table-header.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/th.js +1 -1
- package/dist/components/throttle.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/tr.js +1 -1
- package/dist/components/uk.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +2 -2
- package/dist/components/utils3.js +1 -1
- package/dist/components/vi.js +1 -1
- package/dist/components/zh-cn.js +1 -1
- package/dist/components/zh-hk.js +1 -1
- package/dist/components/zh-tw.js +1 -1
- package/dist/esm/ExpandToggle-fc853433.js +102 -0
- package/dist/esm/ExpandToggle-fc853433.js.map +1 -0
- package/dist/esm/FloatingArrow-7b8b7b92.js +47 -0
- package/dist/esm/FloatingArrow-7b8b7b92.js.map +1 -0
- package/dist/esm/Heading-b3212c53.js +19 -0
- package/dist/esm/Heading-b3212c53.js.map +1 -0
- package/dist/esm/Validation-fbb092c8.js +16 -0
- package/dist/esm/Validation-fbb092c8.js.map +1 -0
- package/dist/esm/app-globals-2593fe12.js +59 -0
- package/dist/esm/app-globals-2593fe12.js.map +1 -0
- package/dist/esm/ar-6bb4aa83.js +104 -0
- package/dist/esm/ar-6bb4aa83.js.map +1 -0
- package/dist/esm/array-3bd5aba3.js +12 -0
- package/dist/esm/array-3bd5aba3.js.map +1 -0
- package/dist/esm/bg-48539570.js +82 -0
- package/dist/esm/bg-48539570.js.map +1 -0
- package/dist/esm/browser-f523dff6.js +20 -0
- package/dist/esm/browser-f523dff6.js.map +1 -0
- package/dist/esm/bs-8a56a75c.js +51 -0
- package/dist/esm/bs-8a56a75c.js.map +1 -0
- package/dist/esm/ca-d77f4540.js +71 -0
- package/dist/esm/ca-d77f4540.js.map +1 -0
- package/dist/esm/calcite-accordion_2.entry.js +8 -8
- package/dist/esm/calcite-action-bar.entry.js +15 -15
- package/dist/esm/calcite-action-group.entry.js +13 -13
- package/dist/esm/calcite-action-menu.entry.js +9 -9
- package/dist/esm/calcite-action-pad.entry.js +14 -14
- package/dist/esm/calcite-action.entry.js +15 -15
- package/dist/esm/calcite-action.entry.js.map +1 -1
- package/dist/esm/calcite-alert.entry.js +13 -13
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +22 -22
- package/dist/esm/calcite-block_2.entry.js.map +1 -1
- package/dist/esm/calcite-button.entry.js +16 -16
- package/dist/esm/calcite-button.entry.js.map +1 -1
- package/dist/esm/calcite-card-group.entry.js +8 -8
- package/dist/esm/calcite-card.entry.js +12 -12
- package/dist/esm/calcite-carousel_2.entry.js +37 -19
- package/dist/esm/calcite-carousel_2.entry.js.map +1 -1
- package/dist/esm/calcite-checkbox.entry.js +12 -12
- package/dist/esm/calcite-chip-group.entry.js +8 -8
- package/dist/esm/calcite-chip.entry.js +13 -13
- package/dist/esm/calcite-color-picker_3.entry.js +16 -16
- package/dist/esm/calcite-combobox_3.entry.js +25 -26
- package/dist/esm/calcite-combobox_3.entry.js.map +1 -1
- package/dist/esm/calcite-date-picker_4.entry.js +15 -15
- package/dist/esm/calcite-dropdown_3.entry.js +14 -14
- package/dist/esm/calcite-fab.entry.js +8 -8
- package/dist/esm/calcite-filter.entry.js +14 -14
- package/dist/esm/calcite-flow-item.entry.js +13 -13
- package/dist/esm/calcite-flow.entry.js +4 -4
- package/dist/esm/calcite-graph_2.entry.js +15 -15
- package/dist/esm/calcite-handle.entry.js +12 -12
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +14 -15
- package/dist/esm/calcite-inline-editable.entry.js.map +1 -1
- package/dist/esm/calcite-input-date-picker.entry.js +31 -35
- package/dist/esm/calcite-input-date-picker.entry.js.map +1 -1
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +17 -17
- package/dist/esm/calcite-input-text.entry.js +17 -17
- package/dist/esm/calcite-input-time-picker.calcite-time-picker-15ae73b3.js +2929 -0
- package/dist/esm/calcite-input-time-picker.calcite-time-picker-15ae73b3.js.map +1 -0
- package/dist/esm/calcite-input-time-picker_2.entry.js +20 -20
- package/dist/esm/calcite-input-time-zone.entry.js +17 -17
- package/dist/esm/calcite-input.entry.js +17 -17
- package/dist/esm/calcite-label.entry.js +7 -7
- package/dist/esm/calcite-link.entry.js +8 -8
- package/dist/esm/calcite-list_3.entry.js +28 -39
- package/dist/esm/calcite-list_3.entry.js.map +1 -1
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-menu_2.entry.js +10 -10
- package/dist/esm/calcite-meter.entry.js +10 -10
- package/dist/esm/calcite-modal.entry.js +14 -14
- package/dist/esm/calcite-navigation_3.entry.js +7 -7
- package/dist/esm/calcite-notice.entry.js +14 -14
- package/dist/esm/calcite-option_3.entry.js +13 -13
- package/dist/esm/calcite-pagination.entry.js +12 -12
- package/dist/esm/calcite-pagination.entry.js.map +1 -1
- package/dist/esm/calcite-panel.entry.js +15 -15
- package/dist/esm/calcite-pick-list_3.entry.js +17 -17
- package/dist/esm/calcite-popover.entry.js +17 -17
- package/dist/esm/calcite-progress.entry.js +5 -5
- package/dist/esm/calcite-radio-button-group.entry.js +5 -5
- package/dist/esm/calcite-radio-button.entry.js +12 -12
- package/dist/esm/calcite-rating.entry.js +15 -16
- package/dist/esm/calcite-rating.entry.js.map +1 -1
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +15 -17
- package/dist/esm/calcite-segmented-control_2.entry.js.map +1 -1
- package/dist/esm/calcite-sheet.entry.js +9 -9
- package/dist/esm/calcite-shell_3.entry.js +13 -13
- package/dist/esm/calcite-shell_3.entry.js.map +1 -1
- package/dist/esm/calcite-sortable-list.entry.js +9 -9
- package/dist/esm/calcite-split-button.entry.js +5 -5
- package/dist/esm/calcite-stack.entry.js +6 -6
- package/dist/esm/calcite-stepper_2.entry.js +12 -12
- package/dist/esm/calcite-switch.entry.js +12 -12
- package/dist/esm/calcite-tab_4.entry.js +13 -13
- package/dist/esm/calcite-table-cell_2.entry.js +13 -13
- package/dist/esm/calcite-table-row.entry.js +9 -9
- package/dist/esm/calcite-table.entry.js +11 -11
- package/dist/esm/calcite-text-area.entry.js +20 -20
- package/dist/esm/calcite-text-area.entry.js.map +1 -1
- package/dist/esm/calcite-tile-group.entry.js +8 -8
- package/dist/esm/calcite-tile-select_2.entry.js +6 -6
- package/dist/esm/calcite-tile.entry.js +13 -29
- package/dist/esm/calcite-tile.entry.js.map +1 -1
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip.entry.js +9 -9
- package/dist/esm/calcite-tree_2.entry.js +11 -12
- package/dist/esm/calcite-tree_2.entry.js.map +1 -1
- package/dist/esm/calcite-value-list_2.entry.js +17 -17
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/component-3e691059.js +27 -0
- package/dist/esm/component-3e691059.js.map +1 -0
- package/dist/esm/conditionalSlot-74bedb93.js +48 -0
- package/dist/esm/conditionalSlot-74bedb93.js.map +1 -0
- package/dist/esm/core-2fccc4f5.js +17 -0
- package/dist/esm/core-2fccc4f5.js.map +1 -0
- package/dist/esm/cs-14be466b.js +147 -0
- package/dist/esm/cs-14be466b.js.map +1 -0
- package/dist/esm/da-0df2a712.js +66 -0
- package/dist/esm/da-0df2a712.js.map +1 -0
- package/dist/esm/de-at-198426ca.js +90 -0
- package/dist/esm/de-at-198426ca.js.map +1 -0
- package/dist/esm/de-ch-1e82b96a.js +90 -0
- package/dist/esm/de-ch-1e82b96a.js.map +1 -0
- package/dist/esm/de-f9355641.js +91 -0
- package/dist/esm/de-f9355641.js.map +1 -0
- package/dist/esm/debounce-d34b5020.js +497 -0
- package/dist/esm/debounce-d34b5020.js.map +1 -0
- package/dist/esm/dom-ac2ec205.js +1111 -0
- package/dist/esm/dom-ac2ec205.js.map +1 -0
- package/dist/esm/el-29dd939a.js +66 -0
- package/dist/esm/el-29dd939a.js.map +1 -0
- package/dist/esm/en-au-2d9bfe41.js +66 -0
- package/dist/esm/en-au-2d9bfe41.js.map +1 -0
- package/dist/esm/en-ca-32bb3124.js +65 -0
- package/dist/esm/en-ca-32bb3124.js.map +1 -0
- package/dist/esm/en-gb-007ea8b2.js +69 -0
- package/dist/esm/en-gb-007ea8b2.js.map +1 -0
- package/dist/esm/es-b15f99a1.js +66 -0
- package/dist/esm/es-b15f99a1.js.map +1 -0
- package/dist/esm/es-mx-beb6ff54.js +65 -0
- package/dist/esm/es-mx-beb6ff54.js.map +1 -0
- package/dist/esm/et-7924d58d.js +92 -0
- package/dist/esm/et-7924d58d.js.map +1 -0
- package/dist/esm/fi-294f7f08.js +115 -0
- package/dist/esm/fi-294f7f08.js.map +1 -0
- package/dist/esm/filter-6d7f84c3.js +772 -0
- package/dist/esm/filter-6d7f84c3.js.map +1 -0
- package/dist/esm/floating-ui-0d00364a.js +2273 -0
- package/dist/esm/floating-ui-0d00364a.js.map +1 -0
- package/dist/esm/focusTrapComponent-27af7e81.js +1015 -0
- package/dist/esm/focusTrapComponent-27af7e81.js.map +1 -0
- package/dist/esm/form-8301e476.js +369 -0
- package/dist/esm/form-8301e476.js.map +1 -0
- package/dist/esm/fr-40648b71.js +68 -0
- package/dist/esm/fr-40648b71.js.map +1 -0
- package/dist/esm/fr-ch-d23417ff.js +66 -0
- package/dist/esm/fr-ch-d23417ff.js.map +1 -0
- package/dist/esm/guid-f94ce332.js +21 -0
- package/dist/esm/guid-f94ce332.js.map +1 -0
- package/dist/esm/he-a74871b9.js +105 -0
- package/dist/esm/he-a74871b9.js.map +1 -0
- package/dist/esm/hi-c2ec89e4.js +65 -0
- package/dist/esm/hi-c2ec89e4.js.map +1 -0
- package/dist/esm/hr-eca13785.js +80 -0
- package/dist/esm/hr-eca13785.js.map +1 -0
- package/dist/esm/hu-adf76faf.js +88 -0
- package/dist/esm/hu-adf76faf.js.map +1 -0
- package/dist/esm/id-d9facd63.js +66 -0
- package/dist/esm/id-d9facd63.js.map +1 -0
- package/dist/esm/index-1529f01b.js +73 -0
- package/dist/esm/index-1529f01b.js.map +1 -0
- package/dist/esm/index-dac81ead.js +206 -0
- package/dist/esm/index-dac81ead.js.map +1 -0
- package/dist/esm/index-dc359a6c.js +1899 -0
- package/dist/esm/index-dc359a6c.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/input-dad169ca.js +55 -0
- package/dist/esm/input-dad169ca.js.map +1 -0
- package/dist/esm/interactive-14662a28.js +146 -0
- package/dist/esm/interactive-14662a28.js.map +1 -0
- package/dist/esm/it-0a1f9010.js +66 -0
- package/dist/esm/it-0a1f9010.js.map +1 -0
- package/dist/esm/it-ch-31b027d6.js +66 -0
- package/dist/esm/it-ch-31b027d6.js.map +1 -0
- package/dist/esm/ja-6c31f892.js +72 -0
- package/dist/esm/ja-6c31f892.js.map +1 -0
- package/dist/esm/key-535c8bf3.js +13 -0
- package/dist/esm/key-535c8bf3.js.map +1 -0
- package/dist/esm/ko-dc91116b.js +72 -0
- package/dist/esm/ko-dc91116b.js.map +1 -0
- package/dist/esm/label-719c2753.js +176 -0
- package/dist/esm/label-719c2753.js.map +1 -0
- package/dist/esm/loadable-6dbf38ed.js +86 -0
- package/dist/esm/loadable-6dbf38ed.js.map +1 -0
- package/dist/esm/loader.js +6 -6
- package/dist/esm/locale-6809100c.js +563 -0
- package/dist/esm/locale-6809100c.js.map +1 -0
- package/dist/esm/lt-6833ab73.js +97 -0
- package/dist/esm/lt-6833ab73.js.map +1 -0
- package/dist/esm/lv-1c7a9205.js +66 -0
- package/dist/esm/lv-1c7a9205.js.map +1 -0
- package/dist/esm/math-d8ced455.js +51 -0
- package/dist/esm/math-d8ced455.js.map +1 -0
- package/dist/esm/mk-064690c6.js +66 -0
- package/dist/esm/mk-064690c6.js.map +1 -0
- package/dist/esm/nb-2088dd20.js +67 -0
- package/dist/esm/nb-2088dd20.js.map +1 -0
- package/dist/esm/nl-50a38e8a.js +67 -0
- package/dist/esm/nl-50a38e8a.js.map +1 -0
- package/dist/esm/observers-f3aec091.js +50 -0
- package/dist/esm/observers-f3aec091.js.map +1 -0
- package/dist/esm/openCloseComponent-9425f3dc.js +87 -0
- package/dist/esm/openCloseComponent-9425f3dc.js.map +1 -0
- package/dist/esm/pl-d1af256b.js +114 -0
- package/dist/esm/pl-d1af256b.js.map +1 -0
- package/dist/esm/pt-9462f6fd.js +67 -0
- package/dist/esm/pt-9462f6fd.js.map +1 -0
- package/dist/esm/pt-br-06e1c58a.js +65 -0
- package/dist/esm/pt-br-06e1c58a.js.map +1 -0
- package/dist/esm/resources-46451f36.js +19 -0
- package/dist/esm/resources-46451f36.js.map +1 -0
- package/dist/esm/resources-a3399ecf.js +23 -0
- package/dist/esm/resources-a3399ecf.js.map +1 -0
- package/dist/esm/resources-a755584a.js +16 -0
- package/dist/esm/resources-a755584a.js.map +1 -0
- package/dist/esm/resources-be78b087.js +21 -0
- package/dist/esm/resources-be78b087.js.map +1 -0
- package/dist/esm/resources-da93bc63.js +386 -0
- package/dist/esm/resources-da93bc63.js.map +1 -0
- package/dist/esm/resources-f5f21759.js +45 -0
- package/dist/esm/resources-f5f21759.js.map +1 -0
- package/dist/esm/resources-fe5f05fa.js +25 -0
- package/dist/esm/resources-fe5f05fa.js.map +1 -0
- package/dist/esm/ro-14f800c6.js +66 -0
- package/dist/esm/ro-14f800c6.js.map +1 -0
- package/dist/esm/ru-5ee9493b.js +126 -0
- package/dist/esm/ru-5ee9493b.js.map +1 -0
- package/dist/esm/sk-3db8bbe1.js +148 -0
- package/dist/esm/sk-3db8bbe1.js.map +1 -0
- package/dist/esm/sl-1e454d6a.js +168 -0
- package/dist/esm/sl-1e454d6a.js.map +1 -0
- package/dist/esm/sortableComponent-7253cde6.js +2740 -0
- package/dist/esm/sortableComponent-7253cde6.js.map +1 -0
- package/dist/esm/sr-3470e50a.js +101 -0
- package/dist/esm/sr-3470e50a.js.map +1 -0
- package/dist/esm/sv-3a586f08.js +71 -0
- package/dist/esm/sv-3a586f08.js.map +1 -0
- package/dist/esm/t9n-3dbda4af.js +92 -0
- package/dist/esm/t9n-3dbda4af.js.map +1 -0
- package/dist/esm/th-4ae268f8.js +65 -0
- package/dist/esm/th-4ae268f8.js.map +1 -0
- package/dist/esm/throttle-42c923ea.js +75 -0
- package/dist/esm/throttle-42c923ea.js.map +1 -0
- package/dist/esm/tr-6a46d7e3.js +66 -0
- package/dist/esm/tr-6a46d7e3.js.map +1 -0
- package/dist/esm/uk-33b2655a.js +104 -0
- package/dist/esm/uk-33b2655a.js.map +1 -0
- package/dist/esm/utils-a5775b4c.js +289 -0
- package/dist/esm/utils-a5775b4c.js.map +1 -0
- package/dist/esm/utils-c040d2da.js +200 -0
- package/dist/esm/utils-c040d2da.js.map +1 -0
- package/dist/esm/vi-4fc1e4dc.js +70 -0
- package/dist/esm/vi-4fc1e4dc.js.map +1 -0
- package/dist/esm/zh-cn-13765fa2.js +94 -0
- package/dist/esm/zh-cn-13765fa2.js.map +1 -0
- package/dist/esm/zh-hk-23107779.js +71 -0
- package/dist/esm/zh-hk-23107779.js.map +1 -0
- package/dist/esm/zh-tw-5ac5fbb0.js +92 -0
- package/dist/esm/zh-tw-5ac5fbb0.js.map +1 -0
- package/dist/extras/docs-json.json +4 -4
- package/dist/extras/vscode-data.json +7114 -0
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/stencil.config.js +1 -1
- package/dist/support/formatting.js +1 -1
- package/dist/support/preact.js +1 -1
- package/dist/tailwind.config.js +1 -1
- package/dist/types/components/action/action.d.ts +1 -1
- package/dist/types/components/carousel/carousel.d.ts +4 -1
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +0 -1
- package/dist/types/components/list/list.d.ts +3 -3
- package/dist/types/components/list-item/list-item.d.ts +0 -7
- package/dist/types/components/tile/resources.d.ts +1 -3
- package/dist/types/components/tile/tile.d.ts +0 -5
- package/dist/types/components.d.ts +0 -1
- package/dist/types/home/jamin/dev/work/calcite-design-system/hotfix/packages/calcite-components/.stencil/stencil.config.d.ts +3 -0
- package/dist/types/preact.d.ts +1 -2
- package/dist/types/tests/utils.d.ts +10 -26
- package/dist/types/utils/dom.d.ts +7 -0
- package/hydrate/index.js +166 -456
- package/package.json +8 -7
- package/readme.md +2 -2
- package/dist/calcite/p-02bce57e.entry.js +0 -7
- package/dist/calcite/p-06f6ffc6.js +0 -7
- package/dist/calcite/p-07d85bdf.js +0 -7
- package/dist/calcite/p-08e64d91.js +0 -7
- package/dist/calcite/p-0a3aa324.js +0 -7
- package/dist/calcite/p-0ab8f28d.entry.js +0 -7
- package/dist/calcite/p-0b7cf789.js +0 -7
- package/dist/calcite/p-0bc62a07.js +0 -7
- package/dist/calcite/p-0e37ae76.entry.js +0 -7
- package/dist/calcite/p-0e952c52.entry.js +0 -7
- package/dist/calcite/p-0eaf8233.entry.js +0 -7
- package/dist/calcite/p-0f20a117.entry.js +0 -7
- package/dist/calcite/p-0f20a117.entry.js.map +0 -1
- package/dist/calcite/p-106a6197.entry.js +0 -7
- package/dist/calcite/p-13d20fe5.entry.js +0 -7
- package/dist/calcite/p-17d3cb0f.js +0 -7
- package/dist/calcite/p-1959480d.js +0 -7
- package/dist/calcite/p-1c6ae42d.js +0 -7
- package/dist/calcite/p-1c849d16.entry.js +0 -7
- package/dist/calcite/p-1e9f5a47.entry.js +0 -7
- package/dist/calcite/p-25122444.js +0 -7
- package/dist/calcite/p-25dea415.js +0 -12
- package/dist/calcite/p-25dea415.js.map +0 -1
- package/dist/calcite/p-268a6162.entry.js +0 -7
- package/dist/calcite/p-26bab80f.js +0 -7
- package/dist/calcite/p-2783c838.entry.js +0 -7
- package/dist/calcite/p-280c9b4a.js +0 -8
- package/dist/calcite/p-28f449bc.js +0 -7
- package/dist/calcite/p-2a741b6a.entry.js +0 -7
- package/dist/calcite/p-2ac8003b.js +0 -7
- package/dist/calcite/p-2debf802.js +0 -7
- package/dist/calcite/p-2eb00b10.js +0 -7
- package/dist/calcite/p-33393b78.js +0 -7
- package/dist/calcite/p-35663415.entry.js +0 -7
- package/dist/calcite/p-35b0a2d7.entry.js +0 -7
- package/dist/calcite/p-35bff958.js +0 -7
- package/dist/calcite/p-372aa136.js +0 -7
- package/dist/calcite/p-376776b1.js +0 -7
- package/dist/calcite/p-380f2bcc.entry.js +0 -7
- package/dist/calcite/p-397f17d2.entry.js +0 -7
- package/dist/calcite/p-397f17d2.entry.js.map +0 -1
- package/dist/calcite/p-39b9bef2.entry.js +0 -7
- package/dist/calcite/p-3b41f1b1.entry.js +0 -7
- package/dist/calcite/p-3cee4023.js +0 -7
- package/dist/calcite/p-3dc6bed6.entry.js +0 -7
- package/dist/calcite/p-3dc6bed6.entry.js.map +0 -1
- package/dist/calcite/p-3fcd9f81.entry.js +0 -7
- package/dist/calcite/p-411198ef.js +0 -7
- package/dist/calcite/p-49017f1e.js +0 -7
- package/dist/calcite/p-4bb35890.js +0 -7
- package/dist/calcite/p-4e30931e.js +0 -7
- package/dist/calcite/p-4e70905b.entry.js +0 -7
- package/dist/calcite/p-4e70905b.entry.js.map +0 -1
- package/dist/calcite/p-4e941f77.js +0 -7
- package/dist/calcite/p-4e9a42c4.js +0 -7
- package/dist/calcite/p-56835d4f.entry.js +0 -7
- package/dist/calcite/p-56835d4f.entry.js.map +0 -1
- package/dist/calcite/p-57f2f56e.js +0 -7
- package/dist/calcite/p-585691f0.entry.js +0 -7
- package/dist/calcite/p-585c1657.entry.js +0 -7
- package/dist/calcite/p-5b326e3f.entry.js +0 -7
- package/dist/calcite/p-5b8659cf.js +0 -7
- package/dist/calcite/p-5b8659cf.js.map +0 -1
- package/dist/calcite/p-5c454512.entry.js +0 -7
- package/dist/calcite/p-5c4cae0b.entry.js +0 -7
- package/dist/calcite/p-5eb802d1.js +0 -7
- package/dist/calcite/p-5fab8d36.js +0 -7
- package/dist/calcite/p-60f0b317.js +0 -7
- package/dist/calcite/p-61346c4e.js +0 -7
- package/dist/calcite/p-665ffcb4.js +0 -7
- package/dist/calcite/p-68c9a1b9.entry.js +0 -7
- package/dist/calcite/p-6a6ae4bc.entry.js +0 -7
- package/dist/calcite/p-70fb3688.entry.js +0 -7
- package/dist/calcite/p-70fb3688.entry.js.map +0 -1
- package/dist/calcite/p-72d55407.js +0 -7
- package/dist/calcite/p-72d55407.js.map +0 -1
- package/dist/calcite/p-7355667b.js +0 -7
- package/dist/calcite/p-74666293.entry.js +0 -7
- package/dist/calcite/p-76c3aa49.entry.js +0 -7
- package/dist/calcite/p-77460678.js +0 -7
- package/dist/calcite/p-77460678.js.map +0 -1
- package/dist/calcite/p-77c1c01b.entry.js +0 -7
- package/dist/calcite/p-7cb7ab03.entry.js +0 -7
- package/dist/calcite/p-7cb7ab03.entry.js.map +0 -1
- package/dist/calcite/p-7ec868db.js +0 -7
- package/dist/calcite/p-7edcd9cd.js +0 -7
- package/dist/calcite/p-8037f673.js +0 -7
- package/dist/calcite/p-8037f673.js.map +0 -1
- package/dist/calcite/p-81263cd3.js +0 -7
- package/dist/calcite/p-81b43e9b.entry.js +0 -7
- package/dist/calcite/p-81b43e9b.entry.js.map +0 -1
- package/dist/calcite/p-81fd9abd.entry.js +0 -7
- package/dist/calcite/p-84bf8a93.js +0 -7
- package/dist/calcite/p-8c1e6efa.js +0 -7
- package/dist/calcite/p-8c72c783.entry.js +0 -7
- package/dist/calcite/p-8dd3e20f.js +0 -7
- package/dist/calcite/p-8e46d13f.entry.js +0 -7
- package/dist/calcite/p-90912457.entry.js +0 -7
- package/dist/calcite/p-90a6de1f.js +0 -7
- package/dist/calcite/p-97ae2a54.js +0 -7
- package/dist/calcite/p-97ae2a54.js.map +0 -1
- package/dist/calcite/p-9aec3856.entry.js +0 -7
- package/dist/calcite/p-9aec3856.entry.js.map +0 -1
- package/dist/calcite/p-9c613d2e.js +0 -7
- package/dist/calcite/p-9cf69019.entry.js +0 -7
- package/dist/calcite/p-9dba370a.entry.js +0 -7
- package/dist/calcite/p-9eb15d41.js +0 -7
- package/dist/calcite/p-9f1b2c1a.js +0 -7
- package/dist/calcite/p-a0adc5e8.entry.js +0 -7
- package/dist/calcite/p-a0adc5e8.entry.js.map +0 -1
- package/dist/calcite/p-a0c52360.js +0 -7
- package/dist/calcite/p-a20b5324.entry.js +0 -7
- package/dist/calcite/p-a25af959.entry.js +0 -7
- package/dist/calcite/p-a37d4957.entry.js +0 -7
- package/dist/calcite/p-a37d4957.entry.js.map +0 -1
- package/dist/calcite/p-a4af524e.js +0 -7
- package/dist/calcite/p-a5525973.js +0 -7
- package/dist/calcite/p-a6c8b27c.entry.js +0 -7
- package/dist/calcite/p-a73f91fc.js +0 -7
- package/dist/calcite/p-a9b9bd96.entry.js +0 -7
- package/dist/calcite/p-aa9f13ee.js +0 -7
- package/dist/calcite/p-aa9f13ee.js.map +0 -1
- package/dist/calcite/p-af5fe91a.js +0 -7
- package/dist/calcite/p-af5fe91a.js.map +0 -1
- package/dist/calcite/p-b1258f9e.js +0 -7
- package/dist/calcite/p-b307dc87.js +0 -7
- package/dist/calcite/p-b3aa3d04.js +0 -7
- package/dist/calcite/p-b4b1b39f.entry.js +0 -7
- package/dist/calcite/p-b4c6d715.entry.js +0 -7
- package/dist/calcite/p-b5d380d9.entry.js +0 -7
- package/dist/calcite/p-b5d380d9.entry.js.map +0 -1
- package/dist/calcite/p-b7bae11e.entry.js +0 -7
- package/dist/calcite/p-b9eb01dd.entry.js +0 -7
- package/dist/calcite/p-bb66235a.js +0 -7
- package/dist/calcite/p-bc304948.js +0 -7
- package/dist/calcite/p-bf090d47.js +0 -7
- package/dist/calcite/p-bf2fc738.js +0 -7
- package/dist/calcite/p-c00a5e55.js +0 -7
- package/dist/calcite/p-c0b72992.js +0 -13
- package/dist/calcite/p-c13a4d4d.entry.js +0 -7
- package/dist/calcite/p-c13a4d4d.entry.js.map +0 -1
- package/dist/calcite/p-c162d245.entry.js +0 -7
- package/dist/calcite/p-c22cdb28.entry.js +0 -7
- package/dist/calcite/p-c35395d8.entry.js +0 -7
- package/dist/calcite/p-c35395d8.entry.js.map +0 -1
- package/dist/calcite/p-c540c5de.js +0 -7
- package/dist/calcite/p-c54b4433.entry.js +0 -7
- package/dist/calcite/p-c6646ea0.entry.js +0 -7
- package/dist/calcite/p-c6646ea0.entry.js.map +0 -1
- package/dist/calcite/p-c9287e44.js +0 -7
- package/dist/calcite/p-c9fbb768.js +0 -7
- package/dist/calcite/p-ce6582c4.entry.js +0 -7
- package/dist/calcite/p-cf6e7373.entry.js +0 -7
- package/dist/calcite/p-d0e45de1.js +0 -7
- package/dist/calcite/p-d153a1b1.js +0 -7
- package/dist/calcite/p-d21bc70c.js +0 -7
- package/dist/calcite/p-d3e46871.js +0 -7
- package/dist/calcite/p-d64127ae.js +0 -7
- package/dist/calcite/p-d7245a9c.entry.js +0 -7
- package/dist/calcite/p-da81041d.entry.js +0 -7
- package/dist/calcite/p-dc299bfd.js +0 -7
- package/dist/calcite/p-dce1473b.entry.js +0 -7
- package/dist/calcite/p-df7c1ba6.entry.js +0 -7
- package/dist/calcite/p-dfce19c8.js +0 -7
- package/dist/calcite/p-e1483771.js +0 -7
- package/dist/calcite/p-e1883b7e.js +0 -7
- package/dist/calcite/p-e2562268.entry.js +0 -7
- package/dist/calcite/p-e52ddff5.js +0 -7
- package/dist/calcite/p-e564540b.entry.js +0 -7
- package/dist/calcite/p-e6586d4a.entry.js +0 -7
- package/dist/calcite/p-e87f63bd.js +0 -7
- package/dist/calcite/p-eb1c5d3a.entry.js +0 -7
- package/dist/calcite/p-eb279f18.js +0 -7
- package/dist/calcite/p-eb627a43.js +0 -11
- package/dist/calcite/p-ebbc164b.js +0 -7
- package/dist/calcite/p-ecfcbd5e.entry.js +0 -7
- package/dist/calcite/p-ecfcbd5e.entry.js.map +0 -1
- package/dist/calcite/p-ed426a61.js +0 -7
- package/dist/calcite/p-eefa8ca6.js +0 -7
- package/dist/calcite/p-ef7a773e.js +0 -7
- package/dist/calcite/p-f464445c.entry.js +0 -7
- package/dist/calcite/p-f6434689.js +0 -7
- package/dist/calcite/p-f775ea52.entry.js +0 -7
- package/dist/calcite/p-f78b42d9.entry.js +0 -7
- package/dist/calcite/p-f90e6bda.js +0 -7
- package/dist/calcite/p-f9d2267e.js +0 -7
- package/dist/calcite/p-fba5c2fb.js +0 -7
- package/dist/calcite/p-fbc41617.js +0 -7
- package/dist/calcite/p-fbf2a21e.js +0 -7
- package/dist/cjs/ExpandToggle-0b360238.js +0 -110
- package/dist/cjs/ExpandToggle-0b360238.js.map +0 -1
- package/dist/cjs/FloatingArrow-7fe0b632.js +0 -49
- package/dist/cjs/FloatingArrow-7fe0b632.js.map +0 -1
- package/dist/cjs/Heading-56af0908.js +0 -22
- package/dist/cjs/Heading-56af0908.js.map +0 -1
- package/dist/cjs/Validation-161754cf.js +0 -18
- package/dist/cjs/Validation-161754cf.js.map +0 -1
- package/dist/cjs/app-globals-2ac4e632.js +0 -61
- package/dist/cjs/app-globals-2ac4e632.js.map +0 -1
- package/dist/cjs/ar-dd4faf2d.js +0 -106
- package/dist/cjs/ar-dd4faf2d.js.map +0 -1
- package/dist/cjs/array-0810f878.js +0 -14
- package/dist/cjs/array-0810f878.js.map +0 -1
- package/dist/cjs/bg-9f4f9f0d.js +0 -84
- package/dist/cjs/bg-9f4f9f0d.js.map +0 -1
- package/dist/cjs/browser-289ad1ff.js +0 -22
- package/dist/cjs/browser-289ad1ff.js.map +0 -1
- package/dist/cjs/bs-98ff44d0.js +0 -53
- package/dist/cjs/bs-98ff44d0.js.map +0 -1
- package/dist/cjs/ca-2669e598.js +0 -73
- package/dist/cjs/ca-2669e598.js.map +0 -1
- package/dist/cjs/calcite-input-time-picker.calcite-time-picker-8bae23d7.js +0 -2933
- package/dist/cjs/calcite-input-time-picker.calcite-time-picker-8bae23d7.js.map +0 -1
- package/dist/cjs/component-539c8868.js +0 -30
- package/dist/cjs/component-539c8868.js.map +0 -1
- package/dist/cjs/conditionalSlot-a2e6e473.js +0 -51
- package/dist/cjs/conditionalSlot-a2e6e473.js.map +0 -1
- package/dist/cjs/core-25a66ac5.js +0 -22
- package/dist/cjs/core-25a66ac5.js.map +0 -1
- package/dist/cjs/cs-4e32b800.js +0 -149
- package/dist/cjs/cs-4e32b800.js.map +0 -1
- package/dist/cjs/da-8fe0336d.js +0 -68
- package/dist/cjs/da-8fe0336d.js.map +0 -1
- package/dist/cjs/de-a8260c8c.js +0 -93
- package/dist/cjs/de-a8260c8c.js.map +0 -1
- package/dist/cjs/de-at-fe9f9027.js +0 -92
- package/dist/cjs/de-at-fe9f9027.js.map +0 -1
- package/dist/cjs/de-ch-18874cae.js +0 -92
- package/dist/cjs/de-ch-18874cae.js.map +0 -1
- package/dist/cjs/debounce-1b1c11aa.js +0 -506
- package/dist/cjs/debounce-1b1c11aa.js.map +0 -1
- package/dist/cjs/dom-81148857.js +0 -1097
- package/dist/cjs/dom-81148857.js.map +0 -1
- package/dist/cjs/el-095c0109.js +0 -68
- package/dist/cjs/el-095c0109.js.map +0 -1
- package/dist/cjs/en-au-a595768d.js +0 -68
- package/dist/cjs/en-au-a595768d.js.map +0 -1
- package/dist/cjs/en-ca-be18cfd1.js +0 -67
- package/dist/cjs/en-ca-be18cfd1.js.map +0 -1
- package/dist/cjs/en-gb-dd7ce479.js +0 -71
- package/dist/cjs/en-gb-dd7ce479.js.map +0 -1
- package/dist/cjs/es-029c0313.js +0 -68
- package/dist/cjs/es-029c0313.js.map +0 -1
- package/dist/cjs/es-mx-8702015b.js +0 -67
- package/dist/cjs/es-mx-8702015b.js.map +0 -1
- package/dist/cjs/et-65fb1d19.js +0 -94
- package/dist/cjs/et-65fb1d19.js.map +0 -1
- package/dist/cjs/fi-29e8109c.js +0 -117
- package/dist/cjs/fi-29e8109c.js.map +0 -1
- package/dist/cjs/filter-6f6f6667.js +0 -774
- package/dist/cjs/filter-6f6f6667.js.map +0 -1
- package/dist/cjs/floating-ui-06b99918.js +0 -2294
- package/dist/cjs/floating-ui-06b99918.js.map +0 -1
- package/dist/cjs/focusTrapComponent-476222ba.js +0 -1020
- package/dist/cjs/focusTrapComponent-476222ba.js.map +0 -1
- package/dist/cjs/form-40b83e16.js +0 -378
- package/dist/cjs/form-40b83e16.js.map +0 -1
- package/dist/cjs/fr-cc0707e6.js +0 -70
- package/dist/cjs/fr-cc0707e6.js.map +0 -1
- package/dist/cjs/fr-ch-f39169bb.js +0 -68
- package/dist/cjs/fr-ch-f39169bb.js.map +0 -1
- package/dist/cjs/guid-e30b0ace.js +0 -23
- package/dist/cjs/guid-e30b0ace.js.map +0 -1
- package/dist/cjs/he-4f35e3dc.js +0 -107
- package/dist/cjs/he-4f35e3dc.js.map +0 -1
- package/dist/cjs/hi-56be10be.js +0 -67
- package/dist/cjs/hi-56be10be.js.map +0 -1
- package/dist/cjs/hr-b14d8f8f.js +0 -82
- package/dist/cjs/hr-b14d8f8f.js.map +0 -1
- package/dist/cjs/hu-686075c8.js +0 -90
- package/dist/cjs/hu-686075c8.js.map +0 -1
- package/dist/cjs/id-c14035ea.js +0 -68
- package/dist/cjs/id-c14035ea.js.map +0 -1
- package/dist/cjs/index-00b091c8.js +0 -75
- package/dist/cjs/index-00b091c8.js.map +0 -1
- package/dist/cjs/index-4ee95ada.js +0 -1934
- package/dist/cjs/index-4ee95ada.js.map +0 -1
- package/dist/cjs/index-8cb9c574.js +0 -208
- package/dist/cjs/index-8cb9c574.js.map +0 -1
- package/dist/cjs/input-15b2b786.js +0 -57
- package/dist/cjs/input-15b2b786.js.map +0 -1
- package/dist/cjs/interactive-a842cd80.js +0 -151
- package/dist/cjs/interactive-a842cd80.js.map +0 -1
- package/dist/cjs/it-19603e99.js +0 -68
- package/dist/cjs/it-19603e99.js.map +0 -1
- package/dist/cjs/it-ch-cc2d606f.js +0 -68
- package/dist/cjs/it-ch-cc2d606f.js.map +0 -1
- package/dist/cjs/ja-c335b661.js +0 -74
- package/dist/cjs/ja-c335b661.js.map +0 -1
- package/dist/cjs/key-52825848.js +0 -16
- package/dist/cjs/key-52825848.js.map +0 -1
- package/dist/cjs/ko-b41dbf78.js +0 -74
- package/dist/cjs/ko-b41dbf78.js.map +0 -1
- package/dist/cjs/label-2a4e5d2a.js +0 -183
- package/dist/cjs/label-2a4e5d2a.js.map +0 -1
- package/dist/cjs/loadable-0301ebca.js +0 -91
- package/dist/cjs/loadable-0301ebca.js.map +0 -1
- package/dist/cjs/locale-c3e4a64d.js +0 -576
- package/dist/cjs/locale-c3e4a64d.js.map +0 -1
- package/dist/cjs/lt-585ffc95.js +0 -99
- package/dist/cjs/lt-585ffc95.js.map +0 -1
- package/dist/cjs/lv-3a1c7099.js +0 -68
- package/dist/cjs/lv-3a1c7099.js.map +0 -1
- package/dist/cjs/math-85be57e2.js +0 -57
- package/dist/cjs/math-85be57e2.js.map +0 -1
- package/dist/cjs/mk-d3b4fc29.js +0 -68
- package/dist/cjs/mk-d3b4fc29.js.map +0 -1
- package/dist/cjs/nb-d60afb4e.js +0 -69
- package/dist/cjs/nb-d60afb4e.js.map +0 -1
- package/dist/cjs/nl-07f7043b.js +0 -69
- package/dist/cjs/nl-07f7043b.js.map +0 -1
- package/dist/cjs/observers-15432891.js +0 -52
- package/dist/cjs/observers-15432891.js.map +0 -1
- package/dist/cjs/openCloseComponent-4a47a27d.js +0 -90
- package/dist/cjs/openCloseComponent-4a47a27d.js.map +0 -1
- package/dist/cjs/pl-01616de8.js +0 -116
- package/dist/cjs/pl-01616de8.js.map +0 -1
- package/dist/cjs/pt-6561e4ad.js +0 -69
- package/dist/cjs/pt-6561e4ad.js.map +0 -1
- package/dist/cjs/pt-br-908216b4.js +0 -67
- package/dist/cjs/pt-br-908216b4.js.map +0 -1
- package/dist/cjs/resources-1a1f1908.js +0 -18
- package/dist/cjs/resources-1a1f1908.js.map +0 -1
- package/dist/cjs/resources-2e747fe8.js +0 -26
- package/dist/cjs/resources-2e747fe8.js.map +0 -1
- package/dist/cjs/resources-577737ec.js +0 -414
- package/dist/cjs/resources-577737ec.js.map +0 -1
- package/dist/cjs/resources-7e59efa9.js +0 -26
- package/dist/cjs/resources-7e59efa9.js.map +0 -1
- package/dist/cjs/resources-8e509ec6.js +0 -23
- package/dist/cjs/resources-8e509ec6.js.map +0 -1
- package/dist/cjs/resources-af7fd6ce.js +0 -29
- package/dist/cjs/resources-af7fd6ce.js.map +0 -1
- package/dist/cjs/resources-f933c486.js +0 -49
- package/dist/cjs/resources-f933c486.js.map +0 -1
- package/dist/cjs/ro-216d6f93.js +0 -68
- package/dist/cjs/ro-216d6f93.js.map +0 -1
- package/dist/cjs/ru-96b49da1.js +0 -128
- package/dist/cjs/ru-96b49da1.js.map +0 -1
- package/dist/cjs/sk-8d2563c4.js +0 -150
- package/dist/cjs/sk-8d2563c4.js.map +0 -1
- package/dist/cjs/sl-d8aea054.js +0 -170
- package/dist/cjs/sl-d8aea054.js.map +0 -1
- package/dist/cjs/sortableComponent-6145c439.js +0 -2744
- package/dist/cjs/sortableComponent-6145c439.js.map +0 -1
- package/dist/cjs/sr-6d79acd0.js +0 -103
- package/dist/cjs/sr-6d79acd0.js.map +0 -1
- package/dist/cjs/sv-8617bcc5.js +0 -73
- package/dist/cjs/sv-8617bcc5.js.map +0 -1
- package/dist/cjs/t9n-feeb1da6.js +0 -97
- package/dist/cjs/t9n-feeb1da6.js.map +0 -1
- package/dist/cjs/th-d85e7df0.js +0 -67
- package/dist/cjs/th-d85e7df0.js.map +0 -1
- package/dist/cjs/throttle-be05d53f.js +0 -77
- package/dist/cjs/throttle-be05d53f.js.map +0 -1
- package/dist/cjs/tr-d7f216a7.js +0 -68
- package/dist/cjs/tr-d7f216a7.js.map +0 -1
- package/dist/cjs/uk-9d4870dc.js +0 -106
- package/dist/cjs/uk-9d4870dc.js.map +0 -1
- package/dist/cjs/utils-7360d299.js +0 -307
- package/dist/cjs/utils-7360d299.js.map +0 -1
- package/dist/cjs/utils-a6f8ff78.js +0 -218
- package/dist/cjs/utils-a6f8ff78.js.map +0 -1
- package/dist/cjs/vi-6bdcd6ab.js +0 -72
- package/dist/cjs/vi-6bdcd6ab.js.map +0 -1
- package/dist/cjs/zh-cn-f66693db.js +0 -96
- package/dist/cjs/zh-cn-f66693db.js.map +0 -1
- package/dist/cjs/zh-hk-40cb8acb.js +0 -73
- package/dist/cjs/zh-hk-40cb8acb.js.map +0 -1
- package/dist/cjs/zh-tw-6dd7e4c9.js +0 -94
- package/dist/cjs/zh-tw-6dd7e4c9.js.map +0 -1
- package/dist/esm/ExpandToggle-e659e8ea.js +0 -102
- package/dist/esm/ExpandToggle-e659e8ea.js.map +0 -1
- package/dist/esm/FloatingArrow-a3e38052.js +0 -47
- package/dist/esm/FloatingArrow-a3e38052.js.map +0 -1
- package/dist/esm/Heading-15459eee.js +0 -19
- package/dist/esm/Heading-15459eee.js.map +0 -1
- package/dist/esm/Validation-da629a3b.js +0 -16
- package/dist/esm/Validation-da629a3b.js.map +0 -1
- package/dist/esm/app-globals-79042c37.js +0 -59
- package/dist/esm/app-globals-79042c37.js.map +0 -1
- package/dist/esm/ar-652cc297.js +0 -104
- package/dist/esm/ar-652cc297.js.map +0 -1
- package/dist/esm/array-f69c5215.js +0 -12
- package/dist/esm/array-f69c5215.js.map +0 -1
- package/dist/esm/bg-f3923215.js +0 -82
- package/dist/esm/bg-f3923215.js.map +0 -1
- package/dist/esm/browser-255a2013.js +0 -20
- package/dist/esm/browser-255a2013.js.map +0 -1
- package/dist/esm/bs-60088b53.js +0 -51
- package/dist/esm/bs-60088b53.js.map +0 -1
- package/dist/esm/ca-cfc20e46.js +0 -71
- package/dist/esm/ca-cfc20e46.js.map +0 -1
- package/dist/esm/calcite-input-time-picker.calcite-time-picker-6a3378a9.js +0 -2929
- package/dist/esm/calcite-input-time-picker.calcite-time-picker-6a3378a9.js.map +0 -1
- package/dist/esm/component-f57f3ac8.js +0 -27
- package/dist/esm/component-f57f3ac8.js.map +0 -1
- package/dist/esm/conditionalSlot-f258309f.js +0 -48
- package/dist/esm/conditionalSlot-f258309f.js.map +0 -1
- package/dist/esm/core-a6a85452.js +0 -17
- package/dist/esm/core-a6a85452.js.map +0 -1
- package/dist/esm/cs-2775eaf9.js +0 -147
- package/dist/esm/cs-2775eaf9.js.map +0 -1
- package/dist/esm/da-2cf624f6.js +0 -66
- package/dist/esm/da-2cf624f6.js.map +0 -1
- package/dist/esm/de-a9f02e6d.js +0 -91
- package/dist/esm/de-a9f02e6d.js.map +0 -1
- package/dist/esm/de-at-c2d12aeb.js +0 -90
- package/dist/esm/de-at-c2d12aeb.js.map +0 -1
- package/dist/esm/de-ch-5de5a660.js +0 -90
- package/dist/esm/de-ch-5de5a660.js.map +0 -1
- package/dist/esm/debounce-fd618e44.js +0 -497
- package/dist/esm/debounce-fd618e44.js.map +0 -1
- package/dist/esm/dom-3ff3ae42.js +0 -1065
- package/dist/esm/dom-3ff3ae42.js.map +0 -1
- package/dist/esm/el-ef15bfd0.js +0 -66
- package/dist/esm/el-ef15bfd0.js.map +0 -1
- package/dist/esm/en-au-ac095225.js +0 -66
- package/dist/esm/en-au-ac095225.js.map +0 -1
- package/dist/esm/en-ca-8fe58d92.js +0 -65
- package/dist/esm/en-ca-8fe58d92.js.map +0 -1
- package/dist/esm/en-gb-5f136ea7.js +0 -69
- package/dist/esm/en-gb-5f136ea7.js.map +0 -1
- package/dist/esm/es-6b03903e.js +0 -66
- package/dist/esm/es-6b03903e.js.map +0 -1
- package/dist/esm/es-mx-79cfc5b8.js +0 -65
- package/dist/esm/es-mx-79cfc5b8.js.map +0 -1
- package/dist/esm/et-dec02531.js +0 -92
- package/dist/esm/et-dec02531.js.map +0 -1
- package/dist/esm/fi-d9846824.js +0 -115
- package/dist/esm/fi-d9846824.js.map +0 -1
- package/dist/esm/filter-2ae139f8.js +0 -772
- package/dist/esm/filter-2ae139f8.js.map +0 -1
- package/dist/esm/floating-ui-1a7a5191.js +0 -2286
- package/dist/esm/floating-ui-1a7a5191.js.map +0 -1
- package/dist/esm/focusTrapComponent-d971241c.js +0 -1015
- package/dist/esm/focusTrapComponent-d971241c.js.map +0 -1
- package/dist/esm/form-a86bb231.js +0 -369
- package/dist/esm/form-a86bb231.js.map +0 -1
- package/dist/esm/fr-ch-5fdc3839.js +0 -66
- package/dist/esm/fr-ch-5fdc3839.js.map +0 -1
- package/dist/esm/fr-fea82db1.js +0 -68
- package/dist/esm/fr-fea82db1.js.map +0 -1
- package/dist/esm/guid-e5b829ac.js +0 -21
- package/dist/esm/guid-e5b829ac.js.map +0 -1
- package/dist/esm/he-51880d05.js +0 -105
- package/dist/esm/he-51880d05.js.map +0 -1
- package/dist/esm/hi-b4e074ee.js +0 -65
- package/dist/esm/hi-b4e074ee.js.map +0 -1
- package/dist/esm/hr-16c2082e.js +0 -80
- package/dist/esm/hr-16c2082e.js.map +0 -1
- package/dist/esm/hu-39de353d.js +0 -88
- package/dist/esm/hu-39de353d.js.map +0 -1
- package/dist/esm/id-0f7cd018.js +0 -66
- package/dist/esm/id-0f7cd018.js.map +0 -1
- package/dist/esm/index-5aa7459d.js +0 -1899
- package/dist/esm/index-5aa7459d.js.map +0 -1
- package/dist/esm/index-80803ecc.js +0 -73
- package/dist/esm/index-80803ecc.js.map +0 -1
- package/dist/esm/index-a739ed9b.js +0 -206
- package/dist/esm/index-a739ed9b.js.map +0 -1
- package/dist/esm/input-7898059a.js +0 -55
- package/dist/esm/input-7898059a.js.map +0 -1
- package/dist/esm/interactive-20940051.js +0 -146
- package/dist/esm/interactive-20940051.js.map +0 -1
- package/dist/esm/it-112cdc92.js +0 -66
- package/dist/esm/it-112cdc92.js.map +0 -1
- package/dist/esm/it-ch-05341c52.js +0 -66
- package/dist/esm/it-ch-05341c52.js.map +0 -1
- package/dist/esm/ja-ac53b9d2.js +0 -72
- package/dist/esm/ja-ac53b9d2.js.map +0 -1
- package/dist/esm/key-597721f8.js +0 -13
- package/dist/esm/key-597721f8.js.map +0 -1
- package/dist/esm/ko-26a4b2b3.js +0 -72
- package/dist/esm/ko-26a4b2b3.js.map +0 -1
- package/dist/esm/label-3fc1630f.js +0 -176
- package/dist/esm/label-3fc1630f.js.map +0 -1
- package/dist/esm/loadable-17c01767.js +0 -86
- package/dist/esm/loadable-17c01767.js.map +0 -1
- package/dist/esm/locale-9250b2a5.js +0 -563
- package/dist/esm/locale-9250b2a5.js.map +0 -1
- package/dist/esm/lt-6eb4f3f9.js +0 -97
- package/dist/esm/lt-6eb4f3f9.js.map +0 -1
- package/dist/esm/lv-030886ee.js +0 -66
- package/dist/esm/lv-030886ee.js.map +0 -1
- package/dist/esm/math-b9e2cf28.js +0 -51
- package/dist/esm/math-b9e2cf28.js.map +0 -1
- package/dist/esm/mk-0a7d748d.js +0 -66
- package/dist/esm/mk-0a7d748d.js.map +0 -1
- package/dist/esm/nb-20ed1af3.js +0 -67
- package/dist/esm/nb-20ed1af3.js.map +0 -1
- package/dist/esm/nl-74c32a6e.js +0 -67
- package/dist/esm/nl-74c32a6e.js.map +0 -1
- package/dist/esm/observers-0e8c113d.js +0 -50
- package/dist/esm/observers-0e8c113d.js.map +0 -1
- package/dist/esm/openCloseComponent-5732867f.js +0 -88
- package/dist/esm/openCloseComponent-5732867f.js.map +0 -1
- package/dist/esm/pl-3814c215.js +0 -114
- package/dist/esm/pl-3814c215.js.map +0 -1
- package/dist/esm/pt-br-7d67e8d8.js +0 -65
- package/dist/esm/pt-br-7d67e8d8.js.map +0 -1
- package/dist/esm/pt-f596165c.js +0 -67
- package/dist/esm/pt-f596165c.js.map +0 -1
- package/dist/esm/resources-0ad51c92.js +0 -21
- package/dist/esm/resources-0ad51c92.js.map +0 -1
- package/dist/esm/resources-22034af8.js +0 -23
- package/dist/esm/resources-22034af8.js.map +0 -1
- package/dist/esm/resources-323fc8ef.js +0 -19
- package/dist/esm/resources-323fc8ef.js.map +0 -1
- package/dist/esm/resources-44e6dac9.js +0 -386
- package/dist/esm/resources-44e6dac9.js.map +0 -1
- package/dist/esm/resources-594f77b8.js +0 -45
- package/dist/esm/resources-594f77b8.js.map +0 -1
- package/dist/esm/resources-aa0aadbb.js +0 -25
- package/dist/esm/resources-aa0aadbb.js.map +0 -1
- package/dist/esm/resources-dce2184b.js +0 -16
- package/dist/esm/resources-dce2184b.js.map +0 -1
- package/dist/esm/ro-18d0bb4c.js +0 -66
- package/dist/esm/ro-18d0bb4c.js.map +0 -1
- package/dist/esm/ru-f867e0c6.js +0 -126
- package/dist/esm/ru-f867e0c6.js.map +0 -1
- package/dist/esm/sk-3d73ebf1.js +0 -148
- package/dist/esm/sk-3d73ebf1.js.map +0 -1
- package/dist/esm/sl-30173025.js +0 -168
- package/dist/esm/sl-30173025.js.map +0 -1
- package/dist/esm/sortableComponent-de84732c.js +0 -2740
- package/dist/esm/sortableComponent-de84732c.js.map +0 -1
- package/dist/esm/sr-a54ac8d5.js +0 -101
- package/dist/esm/sr-a54ac8d5.js.map +0 -1
- package/dist/esm/sv-dbf606b8.js +0 -71
- package/dist/esm/sv-dbf606b8.js.map +0 -1
- package/dist/esm/t9n-b64b0b20.js +0 -92
- package/dist/esm/t9n-b64b0b20.js.map +0 -1
- package/dist/esm/th-e0801b36.js +0 -65
- package/dist/esm/th-e0801b36.js.map +0 -1
- package/dist/esm/throttle-4722263b.js +0 -75
- package/dist/esm/throttle-4722263b.js.map +0 -1
- package/dist/esm/tr-8057e304.js +0 -66
- package/dist/esm/tr-8057e304.js.map +0 -1
- package/dist/esm/uk-323c0b33.js +0 -104
- package/dist/esm/uk-323c0b33.js.map +0 -1
- package/dist/esm/utils-0a242c1e.js +0 -289
- package/dist/esm/utils-0a242c1e.js.map +0 -1
- package/dist/esm/utils-43b50ee9.js +0 -200
- package/dist/esm/utils-43b50ee9.js.map +0 -1
- package/dist/esm/vi-44ac3126.js +0 -70
- package/dist/esm/vi-44ac3126.js.map +0 -1
- package/dist/esm/zh-cn-6bdd8831.js +0 -94
- package/dist/esm/zh-cn-6bdd8831.js.map +0 -1
- package/dist/esm/zh-hk-df13f33d.js +0 -71
- package/dist/esm/zh-hk-df13f33d.js.map +0 -1
- package/dist/esm/zh-tw-3cc838f6.js +0 -92
- package/dist/esm/zh-tw-3cc838f6.js.map +0 -1
- package/dist/types/home/runner/work/calcite-design-system/calcite-design-system/packages/calcite-components/.stencil/stencil.config.d.ts +0 -3
- /package/dist/calcite/{p-3fcd9f81.entry.js.map → p-008598af.entry.js.map} +0 -0
- /package/dist/calcite/{p-d0e45de1.js.map → p-04a62485.js.map} +0 -0
- /package/dist/calcite/{p-a9b9bd96.entry.js.map → p-0775825d.entry.js.map} +0 -0
- /package/dist/calcite/{p-9cf69019.entry.js.map → p-07b90c61.entry.js.map} +0 -0
- /package/dist/calcite/{p-585c1657.entry.js.map → p-0840e38f.entry.js.map} +0 -0
- /package/dist/calcite/{p-77c1c01b.entry.js.map → p-0854d7dc.entry.js.map} +0 -0
- /package/dist/calcite/{p-2debf802.js.map → p-08e038e9.js.map} +0 -0
- /package/dist/calcite/{p-13d20fe5.entry.js.map → p-0925af8f.entry.js.map} +0 -0
- /package/dist/calcite/{p-74666293.entry.js.map → p-09fb4a8e.entry.js.map} +0 -0
- /package/dist/calcite/{p-5fab8d36.js.map → p-0a290d39.js.map} +0 -0
- /package/dist/calcite/{p-1c6ae42d.js.map → p-0aa629b8.js.map} +0 -0
- /package/dist/calcite/{p-f6434689.js.map → p-0f836295.js.map} +0 -0
- /package/dist/calcite/{p-4bb35890.js.map → p-10739c0d.js.map} +0 -0
- /package/dist/calcite/{p-a6c8b27c.entry.js.map → p-1205a771.entry.js.map} +0 -0
- /package/dist/calcite/{p-fbf2a21e.js.map → p-1418b638.js.map} +0 -0
- /package/dist/calcite/{p-f775ea52.entry.js.map → p-143eaae7.entry.js.map} +0 -0
- /package/dist/calcite/{p-d3e46871.js.map → p-146c1ec8.js.map} +0 -0
- /package/dist/calcite/{p-39b9bef2.entry.js.map → p-148ba613.entry.js.map} +0 -0
- /package/dist/calcite/{p-268a6162.entry.js.map → p-193db61b.entry.js.map} +0 -0
- /package/dist/calcite/{p-df7c1ba6.entry.js.map → p-1bd1848d.entry.js.map} +0 -0
- /package/dist/calcite/{p-9eb15d41.js.map → p-20fa3284.js.map} +0 -0
- /package/dist/calcite/{p-e564540b.entry.js.map → p-217a6eef.entry.js.map} +0 -0
- /package/dist/calcite/{p-376776b1.js.map → p-23380558.js.map} +0 -0
- /package/dist/calcite/{p-bb66235a.js.map → p-261b8054.js.map} +0 -0
- /package/dist/calcite/{p-60f0b317.js.map → p-2659489c.js.map} +0 -0
- /package/dist/calcite/{p-a25af959.entry.js.map → p-2685bbf6.entry.js.map} +0 -0
- /package/dist/calcite/{p-d64127ae.js.map → p-2ffc9b19.js.map} +0 -0
- /package/dist/calcite/{p-ed426a61.js.map → p-340647f0.js.map} +0 -0
- /package/dist/calcite/{p-e1883b7e.js.map → p-3448cc04.js.map} +0 -0
- /package/dist/calcite/{p-b3aa3d04.js.map → p-357ab3f7.js.map} +0 -0
- /package/dist/calcite/{p-280c9b4a.js.map → p-35a328ba.js.map} +0 -0
- /package/dist/calcite/{p-c22cdb28.entry.js.map → p-35ba196b.entry.js.map} +0 -0
- /package/dist/calcite/{p-7edcd9cd.js.map → p-35cf9628.js.map} +0 -0
- /package/dist/calcite/{p-f9d2267e.js.map → p-375bca57.js.map} +0 -0
- /package/dist/calcite/{p-b307dc87.js.map → p-377a1794.js.map} +0 -0
- /package/dist/calcite/{p-ebbc164b.js.map → p-39666954.js.map} +0 -0
- /package/dist/calcite/{p-665ffcb4.js.map → p-3a0e751b.js.map} +0 -0
- /package/dist/calcite/{p-17d3cb0f.js.map → p-3beccaf4.js.map} +0 -0
- /package/dist/calcite/{p-02bce57e.entry.js.map → p-3c99eeaf.entry.js.map} +0 -0
- /package/dist/calcite/{p-c162d245.entry.js.map → p-3e4dc76d.entry.js.map} +0 -0
- /package/dist/calcite/{p-4e9a42c4.js.map → p-402453b8.js.map} +0 -0
- /package/dist/calcite/{p-2a741b6a.entry.js.map → p-40cf155c.entry.js.map} +0 -0
- /package/dist/calcite/{p-61346c4e.js.map → p-41fa9ef1.js.map} +0 -0
- /package/dist/calcite/{p-4e30931e.js.map → p-4250c261.js.map} +0 -0
- /package/dist/calcite/{p-8e46d13f.entry.js.map → p-436ae6ab.entry.js.map} +0 -0
- /package/dist/calcite/{p-e1483771.js.map → p-4518e11a.js.map} +0 -0
- /package/dist/calcite/{p-1c849d16.entry.js.map → p-4ac7db05.entry.js.map} +0 -0
- /package/dist/calcite/{p-b9eb01dd.entry.js.map → p-4c478603.entry.js.map} +0 -0
- /package/dist/calcite/{p-4e941f77.js.map → p-4c5e7edf.js.map} +0 -0
- /package/dist/calcite/{p-eefa8ca6.js.map → p-4df6e10b.js.map} +0 -0
- /package/dist/calcite/{p-eb1c5d3a.entry.js.map → p-5069e17d.entry.js.map} +0 -0
- /package/dist/calcite/{p-6a6ae4bc.entry.js.map → p-50998078.entry.js.map} +0 -0
- /package/dist/calcite/{p-49017f1e.js.map → p-515443c1.js.map} +0 -0
- /package/dist/calcite/{p-9c613d2e.js.map → p-51b16443.js.map} +0 -0
- /package/dist/calcite/{p-b4c6d715.entry.js.map → p-533df8ff.entry.js.map} +0 -0
- /package/dist/calcite/{p-dc299bfd.js.map → p-53e1b1a0.js.map} +0 -0
- /package/dist/calcite/{p-8c1e6efa.js.map → p-54d421df.js.map} +0 -0
- /package/dist/calcite/{p-3cee4023.js.map → p-55634b8f.js.map} +0 -0
- /package/dist/calcite/{p-b1258f9e.js.map → p-57028b7a.js.map} +0 -0
- /package/dist/calcite/{p-c54b4433.entry.js.map → p-5822e1ab.entry.js.map} +0 -0
- /package/dist/calcite/{p-35bff958.js.map → p-5bb00cde.js.map} +0 -0
- /package/dist/calcite/{p-c9fbb768.js.map → p-5d1ce3e5.js.map} +0 -0
- /package/dist/calcite/{p-5b326e3f.entry.js.map → p-5dd93c40.entry.js.map} +0 -0
- /package/dist/calcite/{p-25122444.js.map → p-62ef7ba9.js.map} +0 -0
- /package/dist/calcite/{p-9dba370a.entry.js.map → p-660be847.entry.js.map} +0 -0
- /package/dist/calcite/{p-b7bae11e.entry.js.map → p-68711cc0.entry.js.map} +0 -0
- /package/dist/calcite/{p-f90e6bda.js.map → p-6b63e648.js.map} +0 -0
- /package/dist/calcite/{p-106a6197.entry.js.map → p-6c1a5713.entry.js.map} +0 -0
- /package/dist/calcite/{p-a73f91fc.js.map → p-6ca2b3fe.js.map} +0 -0
- /package/dist/calcite/{p-3b41f1b1.entry.js.map → p-6d74a532.entry.js.map} +0 -0
- /package/dist/calcite/{p-cf6e7373.entry.js.map → p-6e3b852c.entry.js.map} +0 -0
- /package/dist/calcite/{p-5c4cae0b.entry.js.map → p-6e5d3433.entry.js.map} +0 -0
- /package/dist/calcite/{p-33393b78.js.map → p-7203a971.js.map} +0 -0
- /package/dist/calcite/{p-e87f63bd.js.map → p-73b734b1.js.map} +0 -0
- /package/dist/calcite/{p-da81041d.entry.js.map → p-74dcaec3.entry.js.map} +0 -0
- /package/dist/calcite/{p-90912457.entry.js.map → p-74edb5b1.entry.js.map} +0 -0
- /package/dist/calcite/{p-0e37ae76.entry.js.map → p-7510bca0.entry.js.map} +0 -0
- /package/dist/calcite/{p-d21bc70c.js.map → p-760b9343.js.map} +0 -0
- /package/dist/calcite/{p-c540c5de.js.map → p-7ae3339e.js.map} +0 -0
- /package/dist/calcite/{p-0ab8f28d.entry.js.map → p-7d81f7f9.entry.js.map} +0 -0
- /package/dist/calcite/{p-8c72c783.entry.js.map → p-7d9b8101.entry.js.map} +0 -0
- /package/dist/calcite/{p-d7245a9c.entry.js.map → p-8dcbec5f.entry.js.map} +0 -0
- /package/dist/calcite/{p-07d85bdf.js.map → p-8f754180.js.map} +0 -0
- /package/dist/calcite/{p-57f2f56e.js.map → p-90c1ba85.js.map} +0 -0
- /package/dist/calcite/{p-26bab80f.js.map → p-9259547c.js.map} +0 -0
- /package/dist/calcite/{p-9f1b2c1a.js.map → p-94d43611.js.map} +0 -0
- /package/dist/calcite/{p-b4b1b39f.entry.js.map → p-961c1018.entry.js.map} +0 -0
- /package/dist/calcite/{p-84bf8a93.js.map → p-9820f859.js.map} +0 -0
- /package/dist/calcite/{p-c0b72992.js.map → p-9962af47.js.map} +0 -0
- /package/dist/calcite/{p-f464445c.entry.js.map → p-9cf1aef5.entry.js.map} +0 -0
- /package/dist/calcite/{p-ce6582c4.entry.js.map → p-9dca7e34.entry.js.map} +0 -0
- /package/dist/calcite/{p-2ac8003b.js.map → p-9dedeb32.js.map} +0 -0
- /package/dist/calcite/{p-90a6de1f.js.map → p-a02b2d0f.js.map} +0 -0
- /package/dist/calcite/{p-bf090d47.js.map → p-a0c3a134.js.map} +0 -0
- /package/dist/calcite/{p-28f449bc.js.map → p-a15557ec.js.map} +0 -0
- /package/dist/calcite/{p-81263cd3.js.map → p-a23cac55.js.map} +0 -0
- /package/dist/calcite/{p-d153a1b1.js.map → p-a3f19316.js.map} +0 -0
- /package/dist/calcite/{p-411198ef.js.map → p-a44b96cc.js.map} +0 -0
- /package/dist/calcite/{p-eb279f18.js.map → p-ac81ad74.js.map} +0 -0
- /package/dist/calcite/{p-e6586d4a.entry.js.map → p-ae65b8b6.entry.js.map} +0 -0
- /package/dist/calcite/{p-0a3aa324.js.map → p-af5147ef.js.map} +0 -0
- /package/dist/calcite/{p-7355667b.js.map → p-af857bea.js.map} +0 -0
- /package/dist/calcite/{p-0b7cf789.js.map → p-b0e1c572.js.map} +0 -0
- /package/dist/calcite/{p-0bc62a07.js.map → p-b12e4b8f.js.map} +0 -0
- /package/dist/calcite/{p-fba5c2fb.js.map → p-b311094c.js.map} +0 -0
- /package/dist/calcite/{p-fbc41617.js.map → p-b4b4b77f.js.map} +0 -0
- /package/dist/calcite/{p-585691f0.entry.js.map → p-b52aa4c8.entry.js.map} +0 -0
- /package/dist/calcite/{p-bf2fc738.js.map → p-b84eff99.js.map} +0 -0
- /package/dist/calcite/{p-81fd9abd.entry.js.map → p-b8e4ba59.entry.js.map} +0 -0
- /package/dist/calcite/{p-e52ddff5.js.map → p-bac20008.js.map} +0 -0
- /package/dist/calcite/{p-ef7a773e.js.map → p-bb526d6b.js.map} +0 -0
- /package/dist/calcite/{p-08e64d91.js.map → p-bc221113.js.map} +0 -0
- /package/dist/calcite/{p-c9287e44.js.map → p-c3c3442f.js.map} +0 -0
- /package/dist/calcite/{p-68c9a1b9.entry.js.map → p-c85bdafc.entry.js.map} +0 -0
- /package/dist/calcite/{p-7ec868db.js.map → p-c8924e0b.js.map} +0 -0
- /package/dist/calcite/{p-f78b42d9.entry.js.map → p-c969aea9.entry.js.map} +0 -0
- /package/dist/calcite/{p-c00a5e55.js.map → p-cd91b106.js.map} +0 -0
- /package/dist/calcite/{p-35b0a2d7.entry.js.map → p-cfb7b000.entry.js.map} +0 -0
- /package/dist/calcite/{p-372aa136.js.map → p-d12720da.js.map} +0 -0
- /package/dist/calcite/{p-a20b5324.entry.js.map → p-d29be4ae.entry.js.map} +0 -0
- /package/dist/calcite/{p-0e952c52.entry.js.map → p-d49d70e9.entry.js.map} +0 -0
- /package/dist/calcite/{p-a0c52360.js.map → p-d5a88dbb.js.map} +0 -0
- /package/dist/calcite/{p-bc304948.js.map → p-d71f30af.js.map} +0 -0
- /package/dist/calcite/{p-8dd3e20f.js.map → p-d8dc8980.js.map} +0 -0
- /package/dist/calcite/{p-a4af524e.js.map → p-ddc5109a.js.map} +0 -0
- /package/dist/calcite/{p-1e9f5a47.entry.js.map → p-e384ebea.entry.js.map} +0 -0
- /package/dist/calcite/{p-2783c838.entry.js.map → p-e3c6922f.entry.js.map} +0 -0
- /package/dist/calcite/{p-76c3aa49.entry.js.map → p-e5ba9e03.entry.js.map} +0 -0
- /package/dist/calcite/{p-2eb00b10.js.map → p-e96c7753.js.map} +0 -0
- /package/dist/calcite/{p-e2562268.entry.js.map → p-ea04dd85.entry.js.map} +0 -0
- /package/dist/calcite/{p-0eaf8233.entry.js.map → p-ead4ff99.entry.js.map} +0 -0
- /package/dist/calcite/{p-380f2bcc.entry.js.map → p-ec709188.entry.js.map} +0 -0
- /package/dist/calcite/{p-5c454512.entry.js.map → p-ee27ac94.entry.js.map} +0 -0
- /package/dist/calcite/{p-a5525973.js.map → p-eef0ef71.js.map} +0 -0
- /package/dist/calcite/{p-5eb802d1.js.map → p-f0f2ab1d.js.map} +0 -0
- /package/dist/calcite/{p-dce1473b.entry.js.map → p-f5da02ec.entry.js.map} +0 -0
- /package/dist/calcite/{p-06f6ffc6.js.map → p-f80a2fb7.js.map} +0 -0
- /package/dist/calcite/{p-eb627a43.js.map → p-f892453a.js.map} +0 -0
- /package/dist/calcite/{p-dfce19c8.js.map → p-fc717707.js.map} +0 -0
- /package/dist/calcite/{p-1959480d.js.map → p-fcb28169.js.map} +0 -0
- /package/dist/calcite/{p-35663415.entry.js.map → p-fd48958a.entry.js.map} +0 -0
- /package/dist/types/home/{runner/work/calcite-design-system/calcite-design-system → jamin/dev/work/calcite-design-system/hotfix}/packages/calcite-components/.stencil/.storybook/placeholderImage.d.ts +0 -0
- /package/dist/types/home/{runner/work/calcite-design-system/calcite-design-system → jamin/dev/work/calcite-design-system/hotfix}/packages/calcite-components/.stencil/calcite-preset.d.ts +0 -0
- /package/dist/types/home/{runner/work/calcite-design-system/calcite-design-system → jamin/dev/work/calcite-design-system/hotfix}/packages/calcite-components/.stencil/support/formatting.d.ts +0 -0
- /package/dist/types/home/{runner/work/calcite-design-system/calcite-design-system → jamin/dev/work/calcite-design-system/hotfix}/packages/calcite-components/.stencil/support/preact.d.ts +0 -0
- /package/dist/types/home/{runner/work/calcite-design-system/calcite-design-system → jamin/dev/work/calcite-design-system/hotfix}/packages/calcite-components/.stencil/tailwind.config.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.8.1
|
|
4
|
+
* v2.8.1
|
|
5
5
|
*/
|
|
6
6
|
import { toHaveNoViolations } from "jest-axe";
|
|
7
7
|
import { getTag, simplePageSetup } from "./utils";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.8.1
|
|
4
|
+
* v2.8.1
|
|
5
5
|
*/
|
|
6
6
|
import { toHaveNoViolations } from "jest-axe";
|
|
7
7
|
import { getTagAndPage } from "./utils";
|
|
@@ -69,6 +69,7 @@ export async function t9n(componentTestSetup) {
|
|
|
69
69
|
}, enMessages, fakeBundleIdentifier);
|
|
70
70
|
component.setAttribute("lang", "es");
|
|
71
71
|
await page.waitForChanges();
|
|
72
|
+
await page.waitForTimeout(3000);
|
|
72
73
|
const esMessages = await getCurrentMessages();
|
|
73
74
|
expect(esMessages).toHaveProperty(fakeBundleIdentifier);
|
|
74
75
|
// reset test changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"t9n.js","sourceRoot":"","sources":["../../../../src/tests/commonTests/t9n.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAG9C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAElC;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,KAAK,UAAU,GAAG,CAAC,kBAAsC;IAC9D,IAAI,SAAqB,CAAC;IAC1B,IAAI,IAAa,CAAC;IAClB,IAAI,kBAAgD,CAAC;IAErD,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,MAAM,aAAa,CAAC,kBAAkB,CAAC,CAAC;QACvE,IAAI,GAAG,OAAO,CAAC;QAIf,SAAS,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACjC,kBAAkB,GAAG,KAAK,IAA4B,EAAE;YACtD,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAwC,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC3F,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE,KAAK,IAAI,EAAE,CAAC,MAAM,qBAAqB,EAAE,CAAC,CAAC;IAC9E,EAAE,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE,CAAC,MAAM,eAAe,EAAE,CAAC,CAAC;IAC9D,EAAE,CAAC,mBAAmB,EAAE,KAAK,IAAI,EAAE,CAAC,MAAM,gBAAgB,EAAE,CAAC,CAAC;IAE9D,KAAK,UAAU,qBAAqB;QA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AAI,CAAC;oBACpB,OAAO,IAAI,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC;gBACzG,CAAC;gBAED,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YAChC,CAAC,CAAC;QACJ,CAAC,EACD,UAAU,EACV,oBAAoB,CACrB,CAAC;QAEF,SAAS,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACrC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAC5B,MAAM,UAAU,GAAG,MAAM,kBAAkB,EAAE,CAAC;QAE9C,MAAM,CAAC,UAAU,CAAC,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;QAExD,qBAAqB;QACrB,SAAS,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAClC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAC9B,CAAC;AACH,CAAC","sourcesContent":["import { E2EElement, E2EPage } from \"@stencil/core/testing\";\nimport { toHaveNoViolations } from \"jest-axe\";\nimport { MessageBundle } from \"../../utils/t9n\";\nimport { IntrinsicElementsWithProp } from \"./../utils\";\nimport { getTagAndPage } from \"./utils\";\nimport { ComponentTestSetup } from \"./interfaces\";\n\nexpect.extend(toHaveNoViolations);\n\n/**\n * Helper to test t9n component setup.\n *\n * Note that this helper should be used within a describe block.\n *\n * @example\n * describe(\"translation support\", () => {\n * t9n(\"calcite-action\");\n * });\n *\n * @param {ComponentTestSetup} componentTestSetup - A component tag, html, or the tag and e2e page for setting up a test.\n */\n\nexport async function t9n(componentTestSetup: ComponentTestSetup): Promise<void> {\n let component: E2EElement;\n let page: E2EPage;\n let getCurrentMessages: () => Promise<MessageBundle>;\n\n beforeEach(async () => {\n const { page: e2ePage, tag } = await getTagAndPage(componentTestSetup);\n page = e2ePage;\n\n type CalciteComponentsWithMessages = IntrinsicElementsWithProp<\"messages\"> & HTMLElement;\n\n component = await page.find(tag);\n getCurrentMessages = async (): Promise<MessageBundle> => {\n return page.$eval(tag, (component: CalciteComponentsWithMessages) => component.messages);\n };\n });\n\n it(\"has defined default messages\", async () => await assertDefaultMessages());\n it(\"overrides messages\", async () => await assertOverrides());\n it(\"switches messages\", async () => await assertLangSwitch());\n\n async function assertDefaultMessages(): Promise<void> {\n expect(await getCurrentMessages()).toBeDefined();\n }\n\n async function assertOverrides(): Promise<void> {\n const messages = await getCurrentMessages();\n const firstMessageProp = Object.keys(messages)[0];\n const messageOverride = { [firstMessageProp]: \"override test\" };\n\n component.setProperty(\"messageOverrides\", messageOverride);\n await page.waitForChanges();\n\n expect(await getCurrentMessages()).toEqual({\n ...messages,\n ...messageOverride,\n });\n\n // reset test changes\n component.setProperty(\"messageOverrides\", undefined);\n await page.waitForChanges();\n }\n\n async function assertLangSwitch(): Promise<void> {\n const enMessages = await getCurrentMessages();\n const fakeBundleIdentifier = \"__fake__\";\n await page.evaluate(\n (enMessages, fakeBundleIdentifier) => {\n const orig = window.fetch;\n window.fetch = async function (input, init) {\n if (typeof input === \"string\" && input.endsWith(\"messages_es.json\")) {\n const fakeEsMessages = {\n ...enMessages, // reuse real message bundle in case component rendering depends on strings\n\n [fakeBundleIdentifier]: true, // we inject a fake identifier for assertion-purposes\n };\n window.fetch = orig;\n return new Response(new Blob([JSON.stringify(fakeEsMessages, null, 2)], { type: \"application/json\" }));\n }\n\n return orig.call(input, init);\n };\n },\n enMessages,\n fakeBundleIdentifier,\n );\n\n component.setAttribute(\"lang\", \"es\");\n await page.waitForChanges();\n const esMessages = await getCurrentMessages();\n\n expect(esMessages).toHaveProperty(fakeBundleIdentifier);\n\n // reset test changes\n component.removeAttribute(\"lang\");\n await page.waitForChanges();\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"t9n.js","sourceRoot":"","sources":["../../../../src/tests/commonTests/t9n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C;gBACzG,CAAC;gBAED,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YAChC,CAAC,CAAC;QACJ,CAAC,EACD,UAAU,EACV,oBAAoB,CACrB,CAAC;QAEF,SAAS,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACrC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAC5B,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAChC,MAAM,UAAU,GAAG,MAAM,kBAAkB,EAAE,CAAC;QAE9C,MAAM,CAAC,UAAU,CAAC,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;QAExD,qBAAqB;QACrB,SAAS,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAClC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAC9B,CAAC;AACH,CAAC","sourcesContent":["import { E2EElement, E2EPage } from \"@stencil/core/testing\";\nimport { toHaveNoViolations } from \"jest-axe\";\nimport { MessageBundle } from \"../../utils/t9n\";\nimport { IntrinsicElementsWithProp } from \"./../utils\";\nimport { getTagAndPage } from \"./utils\";\nimport { ComponentTestSetup } from \"./interfaces\";\n\nexpect.extend(toHaveNoViolations);\n\n/**\n * Helper to test t9n component setup.\n *\n * Note that this helper should be used within a describe block.\n *\n * @example\n * describe(\"translation support\", () => {\n * t9n(\"calcite-action\");\n * });\n *\n * @param {ComponentTestSetup} componentTestSetup - A component tag, html, or the tag and e2e page for setting up a test.\n */\n\nexport async function t9n(componentTestSetup: ComponentTestSetup): Promise<void> {\n let component: E2EElement;\n let page: E2EPage;\n let getCurrentMessages: () => Promise<MessageBundle>;\n\n beforeEach(async () => {\n const { page: e2ePage, tag } = await getTagAndPage(componentTestSetup);\n page = e2ePage;\n\n type CalciteComponentsWithMessages = IntrinsicElementsWithProp<\"messages\"> & HTMLElement;\n\n component = await page.find(tag);\n getCurrentMessages = async (): Promise<MessageBundle> => {\n return page.$eval(tag, (component: CalciteComponentsWithMessages) => component.messages);\n };\n });\n\n it(\"has defined default messages\", async () => await assertDefaultMessages());\n it(\"overrides messages\", async () => await assertOverrides());\n it(\"switches messages\", async () => await assertLangSwitch());\n\n async function assertDefaultMessages(): Promise<void> {\n expect(await getCurrentMessages()).toBeDefined();\n }\n\n async function assertOverrides(): Promise<void> {\n const messages = await getCurrentMessages();\n const firstMessageProp = Object.keys(messages)[0];\n const messageOverride = { [firstMessageProp]: \"override test\" };\n\n component.setProperty(\"messageOverrides\", messageOverride);\n await page.waitForChanges();\n\n expect(await getCurrentMessages()).toEqual({\n ...messages,\n ...messageOverride,\n });\n\n // reset test changes\n component.setProperty(\"messageOverrides\", undefined);\n await page.waitForChanges();\n }\n\n async function assertLangSwitch(): Promise<void> {\n const enMessages = await getCurrentMessages();\n const fakeBundleIdentifier = \"__fake__\";\n await page.evaluate(\n (enMessages, fakeBundleIdentifier) => {\n const orig = window.fetch;\n window.fetch = async function (input, init) {\n if (typeof input === \"string\" && input.endsWith(\"messages_es.json\")) {\n const fakeEsMessages = {\n ...enMessages, // reuse real message bundle in case component rendering depends on strings\n\n [fakeBundleIdentifier]: true, // we inject a fake identifier for assertion-purposes\n };\n window.fetch = orig;\n return new Response(new Blob([JSON.stringify(fakeEsMessages, null, 2)], { type: \"application/json\" }));\n }\n\n return orig.call(input, init);\n };\n },\n enMessages,\n fakeBundleIdentifier,\n );\n\n component.setAttribute(\"lang\", \"es\");\n await page.waitForChanges();\n await page.waitForTimeout(3000);\n const esMessages = await getCurrentMessages();\n\n expect(esMessages).toHaveProperty(fakeBundleIdentifier);\n\n // reset test changes\n component.removeAttribute(\"lang\");\n await page.waitForChanges();\n }\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.8.1
|
|
4
|
+
* v2.8.1
|
|
5
5
|
*/
|
|
6
6
|
import { newE2EPage } from "@stencil/core/testing";
|
|
7
7
|
import { toHaveNoViolations } from "jest-axe";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.8.1
|
|
4
|
+
* v2.8.1
|
|
5
5
|
*/
|
|
6
6
|
import { newE2EPage } from "@stencil/core/testing";
|
|
7
7
|
/**
|
|
@@ -280,39 +280,35 @@ export function toBeNumber() {
|
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
|
-
*
|
|
283
|
+
* Test helper for selected items. Expects items to have IDs to test against.
|
|
284
284
|
*
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
* const page = await newE2EPage();
|
|
288
|
-
* await page.setContent(
|
|
289
|
-
* html`<calcite-dropdown open>
|
|
290
|
-
* <calcite-button id="trigger" slot="trigger">Open dropdown</calcite-button>
|
|
291
|
-
* <calcite-dropdown-group id="group-1" selection-mode="single">
|
|
292
|
-
* <calcite-dropdown-item id="item-1"> Dropdown Item Content </calcite-dropdown-item>
|
|
293
|
-
* <calcite-dropdown-item id="item-2" selected> Dropdown Item Content </calcite-dropdown-item>
|
|
294
|
-
* <calcite-dropdown-item id="item-3"> Dropdown Item Content </calcite-dropdown-item>
|
|
295
|
-
* </calcite-dropdown-group>
|
|
296
|
-
* </calcite-dropdown>`,
|
|
297
|
-
* );
|
|
285
|
+
* Note: assertSelectedItems.setUpEvents must be called before using this method
|
|
298
286
|
*
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
*
|
|
287
|
+
* @param groupElementTagName - The custom element tag name
|
|
288
|
+
* @param page - The E2EPage instance
|
|
289
|
+
* @param SelectedItemsAssertionOptions - Object containing selectable test assertion options
|
|
290
|
+
* @param SelectedItemsAssertionOptions.expectedItemIds - An array of ids to expect to be selected from an interaction
|
|
291
|
+
*/
|
|
292
|
+
export async function assertSelectedItems(groupElementTagName, page, { expectedItemIds }) {
|
|
293
|
+
await page.waitForTimeout(100);
|
|
294
|
+
const selectedItemIds = await page.evaluate((groupElementTagName) => {
|
|
295
|
+
const group = document.querySelector(groupElementTagName);
|
|
296
|
+
return group.selectedItems.map((item) => item.id);
|
|
297
|
+
}, groupElementTagName);
|
|
298
|
+
expect(selectedItemIds).toHaveLength(expectedItemIds.length);
|
|
299
|
+
expectedItemIds.forEach((itemId, index) => expect(selectedItemIds[index]).toEqual(itemId));
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Helper to wire up the page to assert on the event detail
|
|
302
303
|
*
|
|
303
|
-
* @param
|
|
304
|
-
* @param
|
|
305
|
-
* @param selectionEventName - the name of the selection event
|
|
304
|
+
* @param eventName - The name of the CustomEvent
|
|
305
|
+
* @param page - The E2EPage instance
|
|
306
306
|
*/
|
|
307
|
-
|
|
307
|
+
assertSelectedItems.setUpEvents = async (eventName, page) => {
|
|
308
308
|
await page.evaluate((eventName) => {
|
|
309
|
-
document.addEventListener(eventName, ({ detail }) =>
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
expect(selectedItemIds).toHaveLength(expectedItemIds.length);
|
|
315
|
-
expectedItemIds.forEach((itemId, index) => expect(selectedItemIds[index]).toEqual(itemId));
|
|
316
|
-
};
|
|
317
|
-
}
|
|
309
|
+
document.addEventListener(eventName, ({ detail }) => {
|
|
310
|
+
window.eventDetail = detail;
|
|
311
|
+
});
|
|
312
|
+
}, eventName);
|
|
313
|
+
};
|
|
318
314
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/tests/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAyCxE;;;;;;GAM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IAAI,CAAC,EAAE,CAAC,EACzG,0BAA0B,CAC3B,CAAC;QAEF,MAAM,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAC7D,eAAe,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7F,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { E2EElement, E2EPage, newE2EPage } from \"@stencil/core/testing\";\nimport { BoundingBox } from \"puppeteer\";\nimport type { JSX } from \"../components\";\nimport { ComponentTag } from \"./commonTests/interfaces\";\n\n/**\n * Util to help type global props for testing.\n */\nexport type GlobalTestProps<T> = T & Window & typeof globalThis;\n\ntype FilterPropsByPropertyName<T, PropName extends string> = {\n [K in keyof T]: PropName extends keyof T[K] ? T[K] : never;\n};\n\n/**\n * Helper to extract a type by filtering the type by the property name.\n */\nexport type IntrinsicElementsWithProp<T extends string> = FilterPropsByPropertyName<\n JSX.IntrinsicElements,\n T\n>[keyof FilterPropsByPropertyName<JSX.IntrinsicElements, T>];\n\ntype DragAndDropSelector = string | SelectorOptions;\n\ntype PointerPosition = {\n vertical?: \"bottom\" | \"center\" | \"top\";\n horizontal?: \"left\" | \"center\" | \"right\";\n offset?: [number, number];\n};\n\ninterface SelectorOptions {\n element: string;\n shadow?: string;\n pointerPosition?: PointerPosition;\n}\n\ntype MouseInitEvent = Pick<\n MouseEvent,\n \"bubbles\" | \"cancelable\" | \"composed\" | \"screenX\" | \"screenY\" | \"clientX\" | \"clientY\"\n>;\n\n/**\n * Drag and drop utility based on https://github.com/puppeteer/puppeteer/issues/1366#issuecomment-615887204\n *\n * @param {E2EPage} page - the e2e page\n * @param {DragAndDropSelector} dragStartSelector - Selector for the drag's start\n * @param {DragAndDropSelector} dragEndSelector - Selector for the drag's end\n */\nexport async function dragAndDrop(\n page: E2EPage,\n dragStartSelector: DragAndDropSelector,\n dragEndSelector: DragAndDropSelector,\n): Promise<void> {\n async function getBounds(selector: DragAndDropSelector): Promise<BoundingBox> {\n const elementHandle =\n typeof selector === \"string\"\n ? await page.waitForSelector(selector)\n : await page.evaluateHandle(({ element, shadow }) => {\n const target = document.querySelector(element);\n\n return shadow ? target.shadowRoot.querySelector(shadow) : target;\n }, selector);\n\n return elementHandle.asElement().boundingBox();\n }\n\n async function createEventInitializer(selector: DragAndDropSelector): Promise<MouseInitEvent> {\n const {\n vertical: verticalPos,\n horizontal: horizontalPos,\n offset = [0, 0],\n }: PointerPosition = typeof selector === \"string\" || !selector.pointerPosition\n ? { vertical: \"center\" }\n : selector.pointerPosition;\n const { height, width, x, y } = await getBounds(selector);\n const verticalOffset = verticalPos === \"top\" ? 0 : verticalPos === \"bottom\" ? height : height / 2;\n const horizontalOffset = horizontalPos === \"left\" ? 0 : horizontalPos === \"right\" ? width : width / 2;\n\n const eventX = x + horizontalOffset + offset[0];\n const eventY = y + verticalOffset + offset[1];\n\n return {\n bubbles: true,\n cancelable: true,\n composed: true,\n screenX: eventX,\n screenY: eventY,\n clientX: eventX,\n clientY: eventY,\n };\n }\n\n async function browserContextFunction(\n dragStartSelector: DragAndDropSelector,\n dragEndSelector: DragAndDropSelector,\n dragStartInitializer: MouseInitEvent,\n dragEndInitializer: MouseInitEvent,\n ): Promise<void> {\n function getElement(selector: DragAndDropSelector): Element {\n if (typeof selector === \"string\") {\n return document.querySelector(selector);\n }\n\n const element = document.querySelector(selector.element);\n\n return selector.shadow ? element.shadowRoot.querySelector(selector.shadow) : element;\n }\n\n const dragStart = getElement(dragStartSelector);\n let dragEnd = getElement(dragEndSelector);\n\n // if has child, put at the end.\n dragEnd = dragEnd.lastElementChild || dragEnd;\n\n dragStart.dispatchEvent(new PointerEvent(\"pointerdown\", dragStartInitializer));\n dragStart.dispatchEvent(new DragEvent(\"dragstart\", dragStartInitializer));\n\n await new Promise((resolve) => window.setTimeout(resolve, 2000));\n\n dragEnd.dispatchEvent(new MouseEvent(\"dragenter\", dragEndInitializer));\n dragStart.dispatchEvent(new DragEvent(\"dragend\", dragEndInitializer));\n }\n\n return page.evaluate(\n browserContextFunction,\n dragStartSelector,\n dragEndSelector,\n await createEventInitializer(dragStartSelector),\n await createEventInitializer(dragEndSelector),\n );\n}\n\n/**\n *\n * @param {E2EElement} input - the element to select text from\n * @returns {Promise<void>}\n */\nexport function selectText(input: E2EElement): Promise<void> {\n // workaround for selecting text based on https://github.com/puppeteer/puppeteer/issues/1313#issuecomment-436932478\n return input.click({ clickCount: 3 });\n}\n\n/**\n * Helper to get an E2EElement's x,y coordinates.\n *\n * @param {E2EPage} page - the e2e page\n * @param {string} elementSelector - the element selector\n * @param {string} shadowSelector - the shadowRoot selector\n * @deprecated Use `getElementRect` instead.\n */\nexport async function getElementXY(\n page: E2EPage,\n elementSelector: string,\n shadowSelector?: string,\n): Promise<[number, number]> {\n return page.evaluate(\n ([elementSelector, shadowSelector]): [number, number] => {\n const element = document.querySelector(elementSelector);\n const measureTarget = shadowSelector ? element.shadowRoot.querySelector(shadowSelector) : element;\n const { x, y } = measureTarget.getBoundingClientRect();\n\n return [x, y];\n },\n [elementSelector, shadowSelector],\n );\n}\n\n/**\n * Helper to get an E2EElement's DOMRect object.\n *\n * @param {E2EPage} page - the e2e page\n * @param {string} elementSelector - the element selector\n * @param {string} shadowSelector - the shadowRoot selector\n * @returns {Promise<DOMRect>} Promise with DOMRect object.\n */\nexport async function getElementRect(\n page: E2EPage,\n elementSelector: string,\n shadowSelector?: string,\n): Promise<DOMRect> {\n return page.evaluate(\n ([elementSelector, shadowSelector]): DOMRect => {\n const element = document.querySelector(elementSelector);\n const measureTarget = shadowSelector ? element.shadowRoot.querySelector(shadowSelector) : element;\n return measureTarget.getBoundingClientRect().toJSON();\n },\n [elementSelector, shadowSelector],\n );\n}\n\n/**\n * This util helps visualize mouse movement when running tests in headful mode.\n * Note that this util should only be used for test debugging purposes and not be included in a test.\n * Based on https://github.com/puppeteer/puppeteer/issues/4378#issuecomment-499726973\n *\n * @example\n * import { visualizeMouseCursor } from \"../../tests/utils\";\n *\n * const page = await newE2EPage();\n * await page.setContent(`<calcite-tooltip>Content</calcite-tooltip>`);\n *\n * await visualizeMouseCursor(page);\n * await page.waitForChanges();\n *\n * @param {E2EPage} page - the e2e page\n */\nexport async function visualizeMouseCursor(page: E2EPage): Promise<void> {\n await page.evaluate(() => {\n const box = document.createElement(\"puppeteer-mouse-pointer\");\n const styleElement = document.createElement(\"style\");\n styleElement.innerHTML = `\n puppeteer-mouse-pointer {\n pointer-events: none;\n position: absolute;\n top: 0;\n z-index: 10000;\n left: 0;\n width: 20px;\n height: 20px;\n background: rgba(0,0,0,.4);\n border: 1px solid white;\n border-radius: 10px;\n margin: -10px 0 0 -10px;\n padding: 0;\n transition: background .2s, border-radius .2s, border-color .2s;\n }\n puppeteer-mouse-pointer.button-1 {\n transition: none;\n background: rgba(0,0,0,0.9);\n }\n puppeteer-mouse-pointer.button-2 {\n transition: none;\n border-color: rgba(0,0,255,0.9);\n }\n puppeteer-mouse-pointer.button-3 {\n transition: none;\n border-radius: 4px;\n }\n puppeteer-mouse-pointer.button-4 {\n transition: none;\n border-color: rgba(255,0,0,0.9);\n }\n puppeteer-mouse-pointer.button-5 {\n transition: none;\n border-color: rgba(0,255,0,0.9);\n }\n `;\n document.head.appendChild(styleElement);\n document.body.appendChild(box);\n\n document.addEventListener(\n \"mousemove\",\n (event) => {\n box.style.left = event.pageX + \"px\";\n box.style.top = event.pageY + \"px\";\n updateButtons(event.buttons);\n },\n true,\n );\n\n document.addEventListener(\n \"mousedown\",\n (event) => {\n updateButtons(event.buttons);\n box.classList.add(\"button-\" + event.which);\n },\n true,\n );\n\n document.addEventListener(\n \"mouseup\",\n (event) => {\n updateButtons(event.buttons);\n box.classList.remove(\"button-\" + event.which);\n },\n true,\n );\n\n function updateButtons(buttons: number): void {\n for (let i = 0; i < 5; i++) {\n box.classList.toggle(\"button-\" + i, (buttons & (1 << i)) as unknown as boolean);\n }\n }\n });\n}\n\n/**\n * Tells the browser that you wish to perform an animation.\n * https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame\n *\n * @returns {Promise<void>}\n */\nexport async function waitForAnimationFrame(): Promise<void> {\n return new Promise<void>((resolve) => requestAnimationFrame(() => resolve()));\n}\n\n/**\n * Creates an E2E page for tests that need to create and set up elements programmatically.\n *\n * @returns {Promise<E2EPage>} an e2e page\n */\nexport async function newProgrammaticE2EPage(): Promise<E2EPage> {\n const page = await newE2EPage();\n // we need to initialize the page with any component to ensure they are available in the browser context\n await page.setContent(\"<calcite-icon></calcite-icon>\");\n await page.evaluate(() => document.querySelector(\"calcite-icon\").remove());\n\n return page;\n}\n\n/**\n * Sets CSS vars to skip animations/transitions.\n *\n * @example\n * import { skipAnimations } from \"../../tests/utils\";\n *\n * const page = await newE2EPage();\n * await page.setContent(`<calcite-tooltip>Content</calcite-tooltip>`);\n *\n * await skipAnimations(page);\n * await page.waitForChanges();\n *\n * @param page\n */\nexport async function skipAnimations(page: E2EPage): Promise<void> {\n await page.addStyleTag({\n // using 0.01 to ensure `openCloseComponent` utils work consistently\n // this should be removed once https://github.com/Esri/calcite-design-system/issues/6604 is addressed\n content: `:root { --calcite-duration-factor: 0.01; }`,\n });\n}\n\ninterface MatchesFocusedElementOptions {\n /**\n * Set this to true when the focused element is expected to reside in the shadow DOM\n */\n shadowed: boolean;\n}\n\n/**\n * This util helps determine if a selector matches the currently focused element.\n *\n * @param page – the E2E page\n * @param selector – selector of element to match\n * @param options - options to customize the utility behavior\n */\nexport async function isElementFocused(\n page: E2EPage,\n selector: string,\n options?: MatchesFocusedElementOptions,\n): Promise<boolean> {\n const shadowed = options?.shadowed;\n\n return page.evaluate(\n (selector: string, shadowed: boolean): boolean => {\n const targetDoc = shadowed ? document.activeElement?.shadowRoot : document;\n\n return !!targetDoc?.activeElement?.matches(selector);\n },\n selector,\n shadowed,\n );\n}\n\ntype GetFocusedElementProp = {\n /**\n * Set to true to use the shadow root's active element instead of the light DOM's.\n */\n shadow: boolean;\n};\n\n/**\n * This helps get serializable properties from the focused element.\n *\n * @param {E2EPage} page - the E2E test page\n * @param {string} prop - the property to get from the focused element (note: must be serializable)\n * @param {GetFocusedElementProp} options – additional configuration options\n */\nexport async function getFocusedElementProp(\n page: E2EPage,\n prop: keyof HTMLElement,\n options?: GetFocusedElementProp,\n): Promise<ReturnType<E2EPage[\"evaluate\"]>> {\n return await page.evaluate(\n (by: string, shadow: boolean) => {\n const { activeElement } = document;\n const target = shadow ? activeElement?.shadowRoot?.activeElement : activeElement;\n\n return target?.[by];\n },\n prop,\n options?.shadow,\n );\n}\n\n/**\n * Custom integer matcher to use with object matchers.\n *\n * @see https://jasmine.github.io/tutorials/custom_argument_matchers\n */\nexport function toBeInteger(): any {\n return {\n asymmetricMatch(abc: string): boolean {\n return Number.isInteger(abc);\n },\n\n jasmineToString(): string {\n return `Expected value to be an integer.`;\n },\n };\n}\n\n/**\n * Custom number matcher to use with object matchers.\n *\n * @see https://jasmine.github.io/tutorials/custom_argument_matchers\n */\nexport function toBeNumber(): any {\n return {\n asymmetricMatch(expected: string): boolean {\n return !isNaN(parseFloat(expected)) && isFinite(Number(expected));\n },\n\n jasmineToString(): string {\n return `Expected value to be an number.`;\n },\n };\n}\n\ntype HTMLSelectableElement = HTMLElement & { selectedItems: HTMLElement[] };\n\ninterface SelectedItemsAssertionOptions {\n /**\n * IDs from items to assert selection\n */\n expectedItemIds: string[];\n}\n\ntype SelectionEventTestWindow = GlobalTestProps<{ eventDetail: Selection }>;\n\ninterface SelectedItemsAsserter {\n (expectedItemIds: SelectedItemsAssertionOptions[\"expectedItemIds\"]): Promise<void>;\n}\n\n/**\n * Creates a selected items asserter for a selectable component.\n *\n * @example\n *\n * const page = await newE2EPage();\n * await page.setContent(\n * html`<calcite-dropdown open>\n * <calcite-button id=\"trigger\" slot=\"trigger\">Open dropdown</calcite-button>\n * <calcite-dropdown-group id=\"group-1\" selection-mode=\"single\">\n * <calcite-dropdown-item id=\"item-1\"> Dropdown Item Content </calcite-dropdown-item>\n * <calcite-dropdown-item id=\"item-2\" selected> Dropdown Item Content </calcite-dropdown-item>\n * <calcite-dropdown-item id=\"item-3\"> Dropdown Item Content </calcite-dropdown-item>\n * </calcite-dropdown-group>\n * </calcite-dropdown>`,\n * );\n *\n * const assertSelectedItems = await createSelectedItemsAsserter(page, \"calcite-dropdown\", \"calciteDropdownSelect\");\n * await page.click(\"#item-2\");\n * await assertSelectedItems({ expectedItemIds: [\"item-2\"] });\n *\n * @param page - the e2e page\n * @param selectableComponentTagName - the tag name of the selectable group element\n * @param selectionEventName - the name of the selection event\n */\nexport async function createSelectedItemsAsserter(\n page: E2EPage,\n selectableComponentTagName: ComponentTag,\n selectionEventName: string,\n): Promise<SelectedItemsAsserter> {\n await page.evaluate((eventName) => {\n document.addEventListener(\n eventName as any,\n ({ detail }: CustomEvent<Selection>) => ((window as SelectionEventTestWindow).eventDetail = detail),\n );\n }, selectionEventName);\n\n return async (expectedItemIds: SelectedItemsAssertionOptions[\"expectedItemIds\"]) => {\n await page.waitForChanges();\n\n const selectedItemIds = await page.evaluate(\n (groupElementTagName) =>\n document.querySelector<HTMLSelectableElement>(groupElementTagName).selectedItems.map((item) => item.id),\n selectableComponentTagName,\n );\n\n expect(selectedItemIds).toHaveLength(expectedItemIds.length);\n expectedItemIds.forEach((itemId, index) => expect(selectedItemIds[index]).toEqual(itemId));\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/tests/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAwCxE;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,IAAa,EACb,iBAAsC,EACtC,eAAoC;IAEpC,KAAK,UAAU,SAAS,CAAC,QAA6B;QACpD,MAAM,aAAa,GACjB,OAAO,QAAQ,KAAK,QAA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AC3E,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC,SAAS,EAAE,EAAE;QAChC,QAAQ,CAAC,gBAAgB,CAAC,SAAgB,EAAE,CAAC,EAAE,MAAM,EAA0B,EAAE,EAAE;YAChF,MAAmC,CAAC,WAAW,GAAG,MAAM,CAAC;QAC5D,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,SAAS,CAAC,CAAC;AAChB,CAAC,CAAC","sourcesContent":["import { E2EElement, E2EPage, newE2EPage } from \"@stencil/core/testing\";\nimport { BoundingBox } from \"puppeteer\";\nimport type { JSX } from \"../components\";\n\n/**\n * Util to help type global props for testing.\n */\nexport type GlobalTestProps<T> = T & Window & typeof globalThis;\n\ntype FilterPropsByPropertyName<T, PropName extends string> = {\n [K in keyof T]: PropName extends keyof T[K] ? T[K] : never;\n};\n\n/**\n * Helper to extract a type by filtering the type by the property name.\n */\nexport type IntrinsicElementsWithProp<T extends string> = FilterPropsByPropertyName<\n JSX.IntrinsicElements,\n T\n>[keyof FilterPropsByPropertyName<JSX.IntrinsicElements, T>];\n\ntype DragAndDropSelector = string | SelectorOptions;\n\ntype PointerPosition = {\n vertical?: \"bottom\" | \"center\" | \"top\";\n horizontal?: \"left\" | \"center\" | \"right\";\n offset?: [number, number];\n};\n\ninterface SelectorOptions {\n element: string;\n shadow?: string;\n pointerPosition?: PointerPosition;\n}\n\ntype MouseInitEvent = Pick<\n MouseEvent,\n \"bubbles\" | \"cancelable\" | \"composed\" | \"screenX\" | \"screenY\" | \"clientX\" | \"clientY\"\n>;\n\n/**\n * Drag and drop utility based on https://github.com/puppeteer/puppeteer/issues/1366#issuecomment-615887204\n *\n * @param {E2EPage} page - the e2e page\n * @param {DragAndDropSelector} dragStartSelector - Selector for the drag's start\n * @param {DragAndDropSelector} dragEndSelector - Selector for the drag's end\n */\nexport async function dragAndDrop(\n page: E2EPage,\n dragStartSelector: DragAndDropSelector,\n dragEndSelector: DragAndDropSelector,\n): Promise<void> {\n async function getBounds(selector: DragAndDropSelector): Promise<BoundingBox> {\n const elementHandle =\n typeof selector === \"string\"\n ? await page.waitForSelector(selector)\n : await page.evaluateHandle(({ element, shadow }) => {\n const target = document.querySelector(element);\n\n return shadow ? target.shadowRoot.querySelector(shadow) : target;\n }, selector);\n\n return elementHandle.asElement().boundingBox();\n }\n\n async function createEventInitializer(selector: DragAndDropSelector): Promise<MouseInitEvent> {\n const {\n vertical: verticalPos,\n horizontal: horizontalPos,\n offset = [0, 0],\n }: PointerPosition = typeof selector === \"string\" || !selector.pointerPosition\n ? { vertical: \"center\" }\n : selector.pointerPosition;\n const { height, width, x, y } = await getBounds(selector);\n const verticalOffset = verticalPos === \"top\" ? 0 : verticalPos === \"bottom\" ? height : height / 2;\n const horizontalOffset = horizontalPos === \"left\" ? 0 : horizontalPos === \"right\" ? width : width / 2;\n\n const eventX = x + horizontalOffset + offset[0];\n const eventY = y + verticalOffset + offset[1];\n\n return {\n bubbles: true,\n cancelable: true,\n composed: true,\n screenX: eventX,\n screenY: eventY,\n clientX: eventX,\n clientY: eventY,\n };\n }\n\n async function browserContextFunction(\n dragStartSelector: DragAndDropSelector,\n dragEndSelector: DragAndDropSelector,\n dragStartInitializer: MouseInitEvent,\n dragEndInitializer: MouseInitEvent,\n ): Promise<void> {\n function getElement(selector: DragAndDropSelector): Element {\n if (typeof selector === \"string\") {\n return document.querySelector(selector);\n }\n\n const element = document.querySelector(selector.element);\n\n return selector.shadow ? element.shadowRoot.querySelector(selector.shadow) : element;\n }\n\n const dragStart = getElement(dragStartSelector);\n let dragEnd = getElement(dragEndSelector);\n\n // if has child, put at the end.\n dragEnd = dragEnd.lastElementChild || dragEnd;\n\n dragStart.dispatchEvent(new PointerEvent(\"pointerdown\", dragStartInitializer));\n dragStart.dispatchEvent(new DragEvent(\"dragstart\", dragStartInitializer));\n\n await new Promise((resolve) => window.setTimeout(resolve, 2000));\n\n dragEnd.dispatchEvent(new MouseEvent(\"dragenter\", dragEndInitializer));\n dragStart.dispatchEvent(new DragEvent(\"dragend\", dragEndInitializer));\n }\n\n return page.evaluate(\n browserContextFunction,\n dragStartSelector,\n dragEndSelector,\n await createEventInitializer(dragStartSelector),\n await createEventInitializer(dragEndSelector),\n );\n}\n\n/**\n *\n * @param {E2EElement} input - the element to select text from\n * @returns {Promise<void>}\n */\nexport function selectText(input: E2EElement): Promise<void> {\n // workaround for selecting text based on https://github.com/puppeteer/puppeteer/issues/1313#issuecomment-436932478\n return input.click({ clickCount: 3 });\n}\n\n/**\n * Helper to get an E2EElement's x,y coordinates.\n *\n * @param {E2EPage} page - the e2e page\n * @param {string} elementSelector - the element selector\n * @param {string} shadowSelector - the shadowRoot selector\n * @deprecated Use `getElementRect` instead.\n */\nexport async function getElementXY(\n page: E2EPage,\n elementSelector: string,\n shadowSelector?: string,\n): Promise<[number, number]> {\n return page.evaluate(\n ([elementSelector, shadowSelector]): [number, number] => {\n const element = document.querySelector(elementSelector);\n const measureTarget = shadowSelector ? element.shadowRoot.querySelector(shadowSelector) : element;\n const { x, y } = measureTarget.getBoundingClientRect();\n\n return [x, y];\n },\n [elementSelector, shadowSelector],\n );\n}\n\n/**\n * Helper to get an E2EElement's DOMRect object.\n *\n * @param {E2EPage} page - the e2e page\n * @param {string} elementSelector - the element selector\n * @param {string} shadowSelector - the shadowRoot selector\n * @returns {Promise<DOMRect>} Promise with DOMRect object.\n */\nexport async function getElementRect(\n page: E2EPage,\n elementSelector: string,\n shadowSelector?: string,\n): Promise<DOMRect> {\n return page.evaluate(\n ([elementSelector, shadowSelector]): DOMRect => {\n const element = document.querySelector(elementSelector);\n const measureTarget = shadowSelector ? element.shadowRoot.querySelector(shadowSelector) : element;\n return measureTarget.getBoundingClientRect().toJSON();\n },\n [elementSelector, shadowSelector],\n );\n}\n\n/**\n * This util helps visualize mouse movement when running tests in headful mode.\n * Note that this util should only be used for test debugging purposes and not be included in a test.\n * Based on https://github.com/puppeteer/puppeteer/issues/4378#issuecomment-499726973\n *\n * @example\n * import { visualizeMouseCursor } from \"../../tests/utils\";\n *\n * const page = await newE2EPage();\n * await page.setContent(`<calcite-tooltip>Content</calcite-tooltip>`);\n *\n * await visualizeMouseCursor(page);\n * await page.waitForChanges();\n *\n * @param {E2EPage} page - the e2e page\n */\nexport async function visualizeMouseCursor(page: E2EPage): Promise<void> {\n await page.evaluate(() => {\n const box = document.createElement(\"puppeteer-mouse-pointer\");\n const styleElement = document.createElement(\"style\");\n styleElement.innerHTML = `\n puppeteer-mouse-pointer {\n pointer-events: none;\n position: absolute;\n top: 0;\n z-index: 10000;\n left: 0;\n width: 20px;\n height: 20px;\n background: rgba(0,0,0,.4);\n border: 1px solid white;\n border-radius: 10px;\n margin: -10px 0 0 -10px;\n padding: 0;\n transition: background .2s, border-radius .2s, border-color .2s;\n }\n puppeteer-mouse-pointer.button-1 {\n transition: none;\n background: rgba(0,0,0,0.9);\n }\n puppeteer-mouse-pointer.button-2 {\n transition: none;\n border-color: rgba(0,0,255,0.9);\n }\n puppeteer-mouse-pointer.button-3 {\n transition: none;\n border-radius: 4px;\n }\n puppeteer-mouse-pointer.button-4 {\n transition: none;\n border-color: rgba(255,0,0,0.9);\n }\n puppeteer-mouse-pointer.button-5 {\n transition: none;\n border-color: rgba(0,255,0,0.9);\n }\n `;\n document.head.appendChild(styleElement);\n document.body.appendChild(box);\n\n document.addEventListener(\n \"mousemove\",\n (event) => {\n box.style.left = event.pageX + \"px\";\n box.style.top = event.pageY + \"px\";\n updateButtons(event.buttons);\n },\n true,\n );\n\n document.addEventListener(\n \"mousedown\",\n (event) => {\n updateButtons(event.buttons);\n box.classList.add(\"button-\" + event.which);\n },\n true,\n );\n\n document.addEventListener(\n \"mouseup\",\n (event) => {\n updateButtons(event.buttons);\n box.classList.remove(\"button-\" + event.which);\n },\n true,\n );\n\n function updateButtons(buttons: number): void {\n for (let i = 0; i < 5; i++) {\n box.classList.toggle(\"button-\" + i, (buttons & (1 << i)) as unknown as boolean);\n }\n }\n });\n}\n\n/**\n * Tells the browser that you wish to perform an animation.\n * https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame\n *\n * @returns {Promise<void>}\n */\nexport async function waitForAnimationFrame(): Promise<void> {\n return new Promise<void>((resolve) => requestAnimationFrame(() => resolve()));\n}\n\n/**\n * Creates an E2E page for tests that need to create and set up elements programmatically.\n *\n * @returns {Promise<E2EPage>} an e2e page\n */\nexport async function newProgrammaticE2EPage(): Promise<E2EPage> {\n const page = await newE2EPage();\n // we need to initialize the page with any component to ensure they are available in the browser context\n await page.setContent(\"<calcite-icon></calcite-icon>\");\n await page.evaluate(() => document.querySelector(\"calcite-icon\").remove());\n\n return page;\n}\n\n/**\n * Sets CSS vars to skip animations/transitions.\n *\n * @example\n * import { skipAnimations } from \"../../tests/utils\";\n *\n * const page = await newE2EPage();\n * await page.setContent(`<calcite-tooltip>Content</calcite-tooltip>`);\n *\n * await skipAnimations(page);\n * await page.waitForChanges();\n *\n * @param page\n */\nexport async function skipAnimations(page: E2EPage): Promise<void> {\n await page.addStyleTag({\n // using 0.01 to ensure `openCloseComponent` utils work consistently\n // this should be removed once https://github.com/Esri/calcite-design-system/issues/6604 is addressed\n content: `:root { --calcite-duration-factor: 0.01; }`,\n });\n}\n\ninterface MatchesFocusedElementOptions {\n /**\n * Set this to true when the focused element is expected to reside in the shadow DOM\n */\n shadowed: boolean;\n}\n\n/**\n * This util helps determine if a selector matches the currently focused element.\n *\n * @param page – the E2E page\n * @param selector – selector of element to match\n * @param options - options to customize the utility behavior\n */\nexport async function isElementFocused(\n page: E2EPage,\n selector: string,\n options?: MatchesFocusedElementOptions,\n): Promise<boolean> {\n const shadowed = options?.shadowed;\n\n return page.evaluate(\n (selector: string, shadowed: boolean): boolean => {\n const targetDoc = shadowed ? document.activeElement?.shadowRoot : document;\n\n return !!targetDoc?.activeElement?.matches(selector);\n },\n selector,\n shadowed,\n );\n}\n\ntype GetFocusedElementProp = {\n /**\n * Set to true to use the shadow root's active element instead of the light DOM's.\n */\n shadow: boolean;\n};\n\n/**\n * This helps get serializable properties from the focused element.\n *\n * @param {E2EPage} page - the E2E test page\n * @param {string} prop - the property to get from the focused element (note: must be serializable)\n * @param {GetFocusedElementProp} options – additional configuration options\n */\nexport async function getFocusedElementProp(\n page: E2EPage,\n prop: keyof HTMLElement,\n options?: GetFocusedElementProp,\n): Promise<ReturnType<E2EPage[\"evaluate\"]>> {\n return await page.evaluate(\n (by: string, shadow: boolean) => {\n const { activeElement } = document;\n const target = shadow ? activeElement?.shadowRoot?.activeElement : activeElement;\n\n return target?.[by];\n },\n prop,\n options?.shadow,\n );\n}\n\n/**\n * Custom integer matcher to use with object matchers.\n *\n * @see https://jasmine.github.io/tutorials/custom_argument_matchers\n */\nexport function toBeInteger(): any {\n return {\n asymmetricMatch(abc: string): boolean {\n return Number.isInteger(abc);\n },\n\n jasmineToString(): string {\n return `Expected value to be an integer.`;\n },\n };\n}\n\n/**\n * Custom number matcher to use with object matchers.\n *\n * @see https://jasmine.github.io/tutorials/custom_argument_matchers\n */\nexport function toBeNumber(): any {\n return {\n asymmetricMatch(expected: string): boolean {\n return !isNaN(parseFloat(expected)) && isFinite(Number(expected));\n },\n\n jasmineToString(): string {\n return `Expected value to be an number.`;\n },\n };\n}\n\ninterface SelectedItemsAssertionOptions {\n /**\n * IDs from items to assert selection\n */\n expectedItemIds: string[];\n}\n\n/**\n * Test helper for selected items. Expects items to have IDs to test against.\n *\n * Note: assertSelectedItems.setUpEvents must be called before using this method\n *\n * @param groupElementTagName - The custom element tag name\n * @param page - The E2EPage instance\n * @param SelectedItemsAssertionOptions - Object containing selectable test assertion options\n * @param SelectedItemsAssertionOptions.expectedItemIds - An array of ids to expect to be selected from an interaction\n */\nexport async function assertSelectedItems(\n groupElementTagName: string,\n page: E2EPage,\n { expectedItemIds }: SelectedItemsAssertionOptions,\n): Promise<void> {\n await page.waitForTimeout(100);\n const selectedItemIds = await page.evaluate((groupElementTagName) => {\n const group = document.querySelector(groupElementTagName);\n return (group as any).selectedItems.map((item) => item.id);\n }, groupElementTagName);\n\n expect(selectedItemIds).toHaveLength(expectedItemIds.length);\n\n expectedItemIds.forEach((itemId, index) => expect(selectedItemIds[index]).toEqual(itemId));\n}\n\ntype SelectionEventTestWindow = GlobalTestProps<{ eventDetail: Selection }>;\n\n/**\n * Helper to wire up the page to assert on the event detail\n *\n * @param eventName - The name of the CustomEvent\n * @param page - The E2EPage instance\n */\nassertSelectedItems.setUpEvents = async (eventName: string, page: E2EPage) => {\n await page.evaluate((eventName) => {\n document.addEventListener(eventName as any, ({ detail }: CustomEvent<Selection>) => {\n (window as SelectionEventTestWindow).eventDetail = detail;\n });\n }, eventName);\n};\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.8.1
|
|
4
|
+
* v2.8.1
|
|
5
5
|
*/
|
|
6
6
|
export function getRoundRobinIndex(index, total) {
|
|
7
7
|
return (index + total) % total;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.8.1
|
|
4
|
+
* v2.8.1
|
|
5
5
|
*/
|
|
6
6
|
import { Build } from "@stencil/core";
|
|
7
7
|
function getUserAgentData() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.8.1
|
|
4
|
+
* v2.8.1
|
|
5
5
|
*/
|
|
6
6
|
export function getIconScale(componentScale) {
|
|
7
7
|
return componentScale === "l" ? "m" : "s";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.8.1
|
|
4
|
+
* v2.8.1
|
|
5
5
|
*/
|
|
6
6
|
import { html } from "../../support/formatting";
|
|
7
7
|
import { componentOnReady, getIconScale } from "./component";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.8.1
|
|
4
|
+
* v2.8.1
|
|
5
5
|
*/
|
|
6
6
|
import { forceUpdate } from "@stencil/core";
|
|
7
7
|
import { createObserver } from "./observers";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.8.1
|
|
4
|
+
* v2.8.1
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* This module allows custom configuration for components.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.8.1
|
|
4
|
+
* v2.8.1
|
|
5
5
|
*/
|
|
6
6
|
import arabic from "../components/date-picker/assets/date-picker/nls/ar.json";
|
|
7
7
|
import english from "../components/date-picker/assets/date-picker/nls/en.json";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.8.1
|
|
4
|
+
* v2.8.1
|
|
5
5
|
*/
|
|
6
6
|
import { newE2EPage } from "@stencil/core/testing";
|
|
7
7
|
import { getHost, getRootNode, queryElementRoots } from "./dom";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.8.1
|
|
4
|
+
* v2.8.1
|
|
5
5
|
*/
|
|
6
6
|
import { tabbable } from "tabbable";
|
|
7
7
|
import { guid } from "./guid";
|
|
@@ -517,4 +517,50 @@ export function isBefore(a, b) {
|
|
|
517
517
|
const children = Array.from(a.parentNode.children);
|
|
518
518
|
return children.indexOf(a) < children.indexOf(b);
|
|
519
519
|
}
|
|
520
|
+
/**
|
|
521
|
+
* This util helps determine when an animation has completed.
|
|
522
|
+
*
|
|
523
|
+
* @param targetEl The element to watch for the animation to complete.
|
|
524
|
+
* @param animationName The name of the animation to watch for completion.
|
|
525
|
+
*/
|
|
526
|
+
export async function whenAnimationDone(targetEl, animationName) {
|
|
527
|
+
const { animationDuration: allDurations, animationName: allNames } = getComputedStyle(targetEl);
|
|
528
|
+
const allDurationsArray = allDurations.split(",");
|
|
529
|
+
const allPropsArray = allNames.split(",");
|
|
530
|
+
const propIndex = allPropsArray.indexOf(animationName);
|
|
531
|
+
const duration = allDurationsArray[propIndex] ??
|
|
532
|
+
/* Safari will have a single duration value for the shorthand prop when multiple, separate names/props are defined,
|
|
533
|
+
so we fall back to it if there's no matching prop duration */
|
|
534
|
+
allDurationsArray[0];
|
|
535
|
+
if (duration === "0s") {
|
|
536
|
+
return Promise.resolve();
|
|
537
|
+
}
|
|
538
|
+
const startEvent = "animationstart";
|
|
539
|
+
const endEvent = "animationend";
|
|
540
|
+
const cancelEvent = "animationcancel";
|
|
541
|
+
return new Promise((resolve) => {
|
|
542
|
+
const fallbackTimeoutId = setTimeout(() => {
|
|
543
|
+
targetEl.removeEventListener(startEvent, onStart);
|
|
544
|
+
targetEl.removeEventListener(endEvent, onEndOrCancel);
|
|
545
|
+
targetEl.removeEventListener(cancelEvent, onEndOrCancel);
|
|
546
|
+
resolve();
|
|
547
|
+
}, parseFloat(duration) * 1000);
|
|
548
|
+
targetEl.addEventListener(startEvent, onStart);
|
|
549
|
+
targetEl.addEventListener(endEvent, onEndOrCancel);
|
|
550
|
+
targetEl.addEventListener(cancelEvent, onEndOrCancel);
|
|
551
|
+
function onStart(event) {
|
|
552
|
+
if (event.animationName === animationName && event.target === targetEl) {
|
|
553
|
+
clearTimeout(fallbackTimeoutId);
|
|
554
|
+
targetEl.removeEventListener(startEvent, onStart);
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
function onEndOrCancel(event) {
|
|
558
|
+
if (event.animationName === animationName && event.target === targetEl) {
|
|
559
|
+
targetEl.removeEventListener(endEvent, onEndOrCancel);
|
|
560
|
+
targetEl.removeEventListener(cancelEvent, onEndOrCancel);
|
|
561
|
+
resolve();
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
}
|
|
520
566
|
//# sourceMappingURL=dom.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.js","sourceRoot":"","sources":["../../../src/utils/dom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,aAAa,EAAE,IAAI;CACpB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAW;IAClC,IAAI,CAAC,EAAE,EAAE,CAAC;QACR,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,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WAAW,KAAK,UAAU,EAAE,CAAC;QAC/B,WAAW,GAAG,QAAQ,CAAC,YAAY,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IACnG,CAAC;SAAM,IAAI,WAAW,KAAK,MAAM,EAAE,CAAC;QAClC,WAAW,GAAG,QAAQ,CAAC,YAAY,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IACjF,CAAC;SAAM,IAAI,WAAW,KAAK,MAAM,EAAE,CAAC;QAClC,WAAW,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC9C,CAAC;SAAM,CAAC;QACN,WAAW,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC5B,CAAC;IAED,YAAY,CAAC,WAAW,CAAC,CAAC;IAC1B,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,UAAU,QAAQ,CAAC,CAAc,EAAE,CAAc;IACrD,IAAI,CAAC,CAAC,UAAU,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC;QAClC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACnD,OAAO,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACnD,CAAC","sourcesContent":["import { tabbable } from \"tabbable\";\nimport { guid } from \"./guid\";\nimport { CSS_UTILITY } from \"./resources\";\n\n/**\n * The default `focus-trap/tabbable` options.\n *\n * See https://github.com/focus-trap/tabbable#tabbable\n */\nexport const tabbableOptions = {\n getShadowRoot: true,\n};\n\n/**\n * This helper will guarantee an ID on the provided element.\n *\n * If it already has an ID, it will be preserved, otherwise a unique one will be generated and assigned.\n *\n * @param {Element} el An element.\n * @returns {string} The element's ID.\n */\nexport function ensureId(el: Element): string {\n if (!el) {\n return \"\";\n }\n\n return (el.id = el.id || `${el.tagName.toLowerCase()}-${guid()}`);\n}\n\n/**\n * This helper returns an array from a NodeList.\n *\n * @param {NodeList} nodeList A NodeList.\n * @returns {Element[]} An array of elements.\n */\nexport function nodeListToArray<T extends Element>(nodeList: HTMLCollectionOf<T> | NodeListOf<T> | T[]): T[] {\n return Array.isArray(nodeList) ? nodeList : Array.from(nodeList);\n}\n\nexport type Direction = \"ltr\" | \"rtl\";\n\n/**\n * This helper returns the Calcite \"mode\" of an element.\n *\n * @param {HTMLElement} el An element.\n * @returns {\"light\"|\"dark\"} The Calcite mode.\n */\nexport function getModeName(el: HTMLElement): \"light\" | \"dark\" {\n const closestElWithMode = closestElementCrossShadowBoundary(\n el,\n `.${CSS_UTILITY.darkMode}, .${CSS_UTILITY.lightMode}`,\n );\n return closestElWithMode?.classList.contains(\"calcite-mode-dark\") ? \"dark\" : \"light\";\n}\n\n/**\n * This helper returns the direction of a HTML element.\n *\n * @param {HTMLElement} el An element.\n * @returns {Direction} The direction.\n */\nexport function getElementDir(el: HTMLElement): Direction {\n const prop = \"dir\";\n const selector = `[${prop}]`;\n const closest = closestElementCrossShadowBoundary(el, selector);\n return closest ? (closest.getAttribute(prop) as Direction) : \"ltr\";\n}\n\n/**\n * This helper returns the value of an attribute on an element.\n *\n * @param {HTMLElement} el An element.\n * @param {string} attribute An attribute name.\n * @param {any} fallbackValue A fallback value.\n * @returns {any} The value.\n * @deprecated\n */\nexport function getElementProp(el: Element, attribute: string, fallbackValue: any): any {\n const selector = `[${attribute}]`;\n const closest = el.closest(selector);\n return closest ? closest.getAttribute(attribute) : fallbackValue;\n}\n\n/**\n * This helper returns the computed width in pixels of a rendered HTMLElement.\n *\n * @param {HTMLElement} el An element.\n * @returns {number} The element's width.\n */\nexport function getElementWidth(el: HTMLElement): number {\n if (!el) {\n return 0;\n }\n return parseFloat(getComputedStyle(el).inlineSize);\n}\n\n/**\n * This helper returns the rootNode of an element.\n *\n * @param {Element} el An element.\n * @returns {Document|ShadowRoot} The element's root node.\n */\nexport function getRootNode(el: Element): Document | ShadowRoot {\n return el.getRootNode() as Document | ShadowRoot;\n}\n\n/**\n * This helper returns the node's shadowRoot root node if it exists.\n *\n * @param {Element} el The element.\n * @returns {ShadowRoot|null} The element's root node ShadowRoot.\n */\nexport function getShadowRootNode(el: Element): ShadowRoot | null {\n const rootNode = getRootNode(el);\n return \"host\" in rootNode ? rootNode : null;\n}\n\n/**\n * This helper returns the computed width in pixels a given text string takes up on screen.\n *\n * See https://stackoverflow.com/questions/118241/calculate-text-width-with-javascript\n *\n * @param {string} text The string of text to measure.\n * @param {string} font The CSS font attribute's value, which should include size and face, e.g. \"12px Arial\".\n */\nexport function getTextWidth(text: string, font: string): number {\n if (!text) {\n return 0;\n }\n const canvas = document.createElement(\"canvas\");\n const context = canvas.getContext(\"2d\");\n context.font = font;\n return context.measureText(text).width;\n}\n/**\n * This helper returns the host of a ShadowRoot.\n *\n * @param {Document | ShadowRoot} root A root element.\n * @returns {Element | null} The host element.\n */\nexport function getHost(root: Document | ShadowRoot): Element | null {\n return (root as ShadowRoot).host || null;\n}\n\n/**\n * This helper queries an element's rootNode and any ancestor rootNodes.\n *\n * If both an 'id' and 'selector' are supplied, 'id' will take precedence over 'selector'.\n *\n * @param {Element} element An element.\n * @param root0\n * @param root0.selector\n * @param root0.id\n * @returns {Element} An element.\n */\nexport function queryElementRoots<T extends Element = Element>(\n element: Element,\n {\n selector,\n id,\n }: {\n selector?: string;\n id?: string;\n },\n): T | null {\n // Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.\n // Based on: https://stackoverflow.com/q/54520554/194216\n function queryFrom<T extends Element = Element>(el: Element): T | null {\n if (!el) {\n return null;\n }\n\n if ((el as Slottable).assignedSlot) {\n el = (el as Slottable).assignedSlot;\n }\n\n const rootNode = getRootNode(el);\n\n const found = id\n ? \"getElementById\" in rootNode\n ? /*\n Check to make sure 'getElementById' exists in cases where element is no longer connected to the DOM and getRootNode() returns the element.\n https://github.com/Esri/calcite-design-system/pull/4280\n */\n (rootNode.getElementById(id) as Element as T)\n : null\n : selector\n ? (rootNode.querySelector(selector) as T)\n : null;\n\n const host = getHost(rootNode);\n\n return found ? found : host ? queryFrom(host) : null;\n }\n\n return queryFrom(element);\n}\n\n/**\n * This helper returns the closest element matching the selector by crossing he shadow boundary if necessary.\n *\n * @param {Element} element The starting element.\n * @param {string} selector The selector.\n * @returns {Element} The targeted element.\n */\nexport function closestElementCrossShadowBoundary<T extends Element = Element>(\n element: Element,\n selector: string,\n): T | null {\n // based on https://stackoverflow.com/q/54520554/194216\n function closestFrom<T extends Element = Element>(el: Element): T | null {\n return el ? el.closest(selector) || closestFrom(getHost(getRootNode(el))) : null;\n }\n\n return closestFrom(element);\n}\n\n/**\n * This utility helps invoke a callback as it traverses a node and its ancestors until reaching the root document.\n *\n * Returning early or undefined in `onVisit` will continue traversing up the DOM tree. Otherwise, traversal will halt with the returned value as the result of the function\n *\n * @param {Element} element An element.\n * @param {(node: Node) => Element} onVisit The callback.\n * @returns {Element} The result.\n */\nexport function walkUpAncestry<T = any>(element: Element, onVisit: (node: Node) => T): T {\n return visit(element, onVisit);\n}\n\nfunction visit<T = any>(node: Node, onVisit: (node: Node) => T): T {\n if (!node) {\n return;\n }\n\n const result = onVisit(node);\n if (result !== undefined) {\n return result;\n }\n\n const { parentNode } = node;\n\n return visit(parentNode instanceof ShadowRoot ? parentNode.host : parentNode, onVisit);\n}\n\n/**\n * This helper returns true when an element has the descendant in question.\n *\n * @param {Element} element The starting element.\n * @param {Element} maybeDescendant The descendant.\n * @returns {boolean} The result.\n */\nexport function containsCrossShadowBoundary(element: Element, maybeDescendant: Element): boolean {\n return !!walkUpAncestry(maybeDescendant, (node) => (node === element ? true : undefined));\n}\n\n/**\n * An element which may contain a `setFocus` method.\n */\nexport interface FocusableElement extends HTMLElement {\n setFocus?: () => Promise<void>;\n}\n\n/**\n * This helper returns true when an element has a setFocus method.\n *\n * @param {Element} el An element.\n * @returns {boolean} The result.\n */\nexport function isCalciteFocusable(el: FocusableElement): boolean {\n return typeof el?.setFocus === \"function\";\n}\n\n/**\n * This helper focuses an element using the `setFocus` method if available and falls back to using the `focus` method if not available.\n *\n * @param {Element} el An element.\n */\nexport async function focusElement(el: FocusableElement): Promise<void> {\n if (!el) {\n return;\n }\n\n return isCalciteFocusable(el) ? el.setFocus() : el.focus();\n}\n\n/**\n * Helper to get the first tabbable element.\n *\n * @param {HTMLElement} element The html element containing tabbable elements.\n * @returns the first tabbable element.\n */\nexport function getFirstTabbable(element: HTMLElement): HTMLElement {\n if (!element) {\n return;\n }\n\n return (tabbable(element, tabbableOptions)[0] ?? element) as HTMLElement;\n}\n\n/**\n * Helper to focus the first tabbable element.\n *\n * @param {HTMLElement} element The html element containing tabbable elements.\n */\nexport function focusFirstTabbable(element: HTMLElement): void {\n getFirstTabbable(element)?.focus();\n}\n\ninterface GetSlottedOptions {\n all?: boolean;\n direct?: boolean;\n matches?: string;\n selector?: string;\n}\n\nconst defaultSlotSelector = \":not([slot])\";\n\n/**\n * Gets slotted elements for a named slot.\n *\n * @param {Element} element An element.\n * @param {string} slotName The slot name.\n * @param {GetSlottedOptions & { all: true }} options The options.\n * @returns {Element | Element[] | null} returns element(s) or null.\n * @deprecated Use `onSlotchange` event instead.\n *\n * ```\n * <slot onSlotchange={(event) => this.myElements = slotChangeGetAssignedElements(event)} />}\n * ```\n */\nexport function getSlotted<T extends Element = Element>(\n element: Element,\n slotName: string | string[] | (GetSlottedOptions & { all: true }),\n options: GetSlottedOptions & { all: true },\n): T[];\nexport function getSlotted<T extends Element = Element>(\n element: Element,\n slotName?: string | string[] | GetSlottedOptions,\n options?: GetSlottedOptions,\n): T | null;\nexport function getSlotted<T extends Element = Element>(\n element: Element,\n slotName?: string | string[] | GetSlottedOptions,\n options?: GetSlottedOptions,\n): (T | null) | T[] {\n if (slotName && !Array.isArray(slotName) && typeof slotName !== \"string\") {\n options = slotName;\n slotName = null;\n }\n\n const slotSelector = slotName\n ? Array.isArray(slotName)\n ? slotName.map((name) => `[slot=\"${name}\"]`).join(\",\")\n : `[slot=\"${slotName}\"]`\n : defaultSlotSelector;\n\n if (options?.all) {\n return queryMultiple<T>(element, slotSelector, options);\n }\n\n return querySingle<T>(element, slotSelector, options);\n}\n\nfunction getDirectChildren<T extends Element = Element>(el: Element, selector: string): T[] {\n return el ? (Array.from(el.children || []) as T[]).filter((child) => child?.matches(selector)) : [];\n}\n\nfunction queryMultiple<T extends Element = Element>(\n element: Element,\n slotSelector: string,\n options?: GetSlottedOptions,\n): T[] {\n let matches =\n slotSelector === defaultSlotSelector\n ? getDirectChildren<T>(element, defaultSlotSelector)\n : Array.from(element.querySelectorAll<T>(slotSelector));\n\n matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);\n\n matches = options?.matches ? matches.filter((el) => el?.matches(options.matches)) : matches;\n\n const selector = options?.selector;\n return selector\n ? matches\n .map((item) => Array.from(item.querySelectorAll<T>(selector)))\n .reduce((previousValue, currentValue) => [...previousValue, ...currentValue], [])\n .filter((match) => !!match)\n : matches;\n}\n\nfunction querySingle<T extends Element = Element>(\n element: Element,\n slotSelector: string,\n options?: GetSlottedOptions,\n): T | null {\n let match =\n slotSelector === defaultSlotSelector\n ? getDirectChildren<T>(element, defaultSlotSelector)[0] || null\n : element.querySelector<T>(slotSelector);\n\n match = options && options.direct === false ? match : match?.parentElement === element ? match : null;\n\n match = options?.matches ? (match?.matches(options.matches) ? match : null) : match;\n\n const selector = options?.selector;\n return selector ? match?.querySelector<T>(selector) : match;\n}\n\n/**\n * Filters direct children.\n *\n * @param {Element} el An element.\n * @param {string} selector The selector.\n * @returns {Element[]} An array of elements.\n */\nexport function filterDirectChildren<T extends Element>(el: Element, selector: string): T[] {\n return Array.from(el.children).filter((child): child is T => child.matches(selector));\n}\n\n/**\n * Set a default icon from a defined set or allow an override with an icon name string\n *\n * @param {Record<string, string>} iconObject The icon object.\n * @param {string | boolean} iconValue The icon value.\n * @param {string} matchedValue The matched value.\n * @returns {string|undefined} The resulting icon value.\n */\nexport function setRequestedIcon(\n iconObject: Record<string, string>,\n iconValue: string | boolean,\n matchedValue: string,\n): string | undefined {\n if (typeof iconValue === \"string\" && iconValue !== \"\") {\n return iconValue;\n } else if (iconValue === \"\") {\n return iconObject[matchedValue];\n }\n}\n\n/**\n * This helper returns true when two rectangles intersect.\n *\n * @param {DOMRect} rect1 The first rectangle.\n * @param {DOMRect} rect2 The second rectangle.\n * @returns {boolean} The result.\n */\nexport function intersects(rect1: DOMRect, rect2: DOMRect): boolean {\n return !(\n rect2.left > rect1.right ||\n rect2.right < rect1.left ||\n rect2.top > rect1.bottom ||\n rect2.bottom < rect1.top\n );\n}\n\n/**\n * This helper makes sure that boolean aria attributes are properly converted to a string.\n *\n * It should only be used for aria attributes that require a string value of \"true\" or \"false\".\n *\n * @param {boolean} value The value.\n * @returns {string} The string conversion of a boolean value (\"true\" | \"false\").\n */\nexport function toAriaBoolean(value: boolean): string {\n return Boolean(value).toString();\n}\n\n/**\n * This helper returns `true` if the target `slot` element from the `onSlotchange` event has any content (text or elements).\n *\n * ```\n * <slot onSlotchange={(event) => this.mySlotHasContent = slotChangeHasContent(event)} />}\n * ```\n *\n * @param {Event} event The event.\n * @returns {boolean} Whether the slot has any content.\n */\nexport function slotChangeHasContent(event: Event): boolean {\n return slotChangeHasAssignedElement(event) || slotChangeHasTextContent(event);\n}\n\n/**\n * This helper returns a string of textContent if the target `slot` element from the `onSlotchange` event has any text content.\n *\n * ```\n * <slot onSlotchange={(event) => this.mySlotText = slotChangeGetTextContent(event)} />}\n * ```\n *\n * @param {Event} event The event.\n * @returns {string} The slots text.\n */\nexport function slotChangeGetTextContent(event: Event): string {\n return slotChangeGetAssignedNodes(event)\n .filter((node) => node.nodeType === Node.TEXT_NODE)\n .map((node) => node.textContent)\n .join(\"\")\n .trim();\n}\n\n/**\n * This helper returns `true` if the target `slot` element from the `onSlotchange` event has any text content.\n *\n * ```\n * <slot onSlotchange={(event) => this.mySlotHasTextContent = slotChangeHasTextContent(event)} />}\n * ```\n *\n * @param {Event} event The event.\n * @returns {boolean} Whether the slot has any text content.\n */\nexport function slotChangeHasTextContent(event: Event): boolean {\n return !!slotChangeGetTextContent(event);\n}\n\n/**\n * This helper returns `true` if the target `slot` element from the `onSlotchange` event has an assigned node.\n *\n * ```\n * <slot onSlotchange={(event) => this.mySlotHasNode = slotChangeHasAssignedNode(event)} />}\n * ```\n *\n * @param {Event} event The event.\n * @returns {boolean} Whether the slot has any assigned nodes.\n */\nexport function slotChangeHasAssignedNode(event: Event): boolean {\n return !!slotChangeGetAssignedNodes(event).length;\n}\n\n/**\n * This helper returns the assigned nodes on a `slot` element from the `onSlotchange` event.\n *\n * ```\n * <slot onSlotchange={(event) => this.mySlotNodes = slotChangeGetAssignedNodes(event)} />}\n * ```\n *\n * @param {Event} event The event.\n * @returns {boolean} Whether the slot has any assigned nodes.\n */\nexport function slotChangeGetAssignedNodes(event: Event): Node[] {\n return (event.target as HTMLSlotElement).assignedNodes({\n flatten: true,\n });\n}\n\n/**\n * This helper returns `true` if the target `slot` element from the `onSlotchange` event has an assigned element.\n *\n * ```\n * <slot onSlotchange={(event) => this.mySlotHasElement = slotChangeHasAssignedElement(event)} />}\n * ```\n *\n * @param {Event} event The event.\n * @returns {boolean} Whether the slot has any assigned elements.\n */\nexport function slotChangeHasAssignedElement(event: Event): boolean {\n return !!slotChangeGetAssignedElements(event).length;\n}\n\n/**\n * This helper returns the assigned elements on a `slot` element from the `onSlotchange` event.\n *\n * ```\n * <slot onSlotchange={(event) => this.mySlotElements = slotChangeGetAssignedElements(event)} />}\n * ```\n *\n * @param {Event} event The event.\n * @returns {boolean} Whether the slot has any assigned elements.\n */\nexport function slotChangeGetAssignedElements(event: Event): Element[] {\n return (event.target as HTMLSlotElement).assignedElements({\n flatten: true,\n });\n}\n\n/**\n * This helper returns true if the pointer event fired from the primary button of the device.\n *\n * See https://www.w3.org/TR/pointerevents/#the-button-property.\n *\n * @param {PointerEvent} event The pointer event.\n * @returns {boolean} The value.\n */\nexport function isPrimaryPointerButton(event: PointerEvent): boolean {\n return !!(event.isPrimary && event.button === 0);\n}\n\n/**\n * This helper returns true if the mouse event was triggered by a keyboard click.\n *\n * @param {MouseEvent} event The mouse event.\n * @returns {boolean} The value.\n */\nexport function isKeyboardTriggeredClick(event: MouseEvent): boolean {\n // we assume event.detail = 0 is a keyboard click\n // see https://www.w3.org/TR/uievents/#event-type-click\n // see https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event#usage_notes\n return event.detail === 0;\n}\n\nexport type FocusElementInGroupDestination = \"first\" | \"last\" | \"next\" | \"previous\";\n\n/**\n * This helper sets focus on and returns a destination element from within a group of provided elements.\n *\n * @param {Element[]} elements An array of elements.\n * @param {Element} currentElement The current element.\n * @param {FocusElementInGroupDestination} destination The target destination element to focus.\n * @param {boolean} cycle Should navigation cycle through elements or stop at extent - defaults to true.\n * @returns {Element} The focused element\n */\nexport const focusElementInGroup = <T extends Element = Element>(\n elements: Element[],\n currentElement: Element,\n destination: FocusElementInGroupDestination,\n cycle = true,\n): T => {\n const currentIndex = elements.indexOf(currentElement);\n const isFirstItem = currentIndex === 0;\n const isLastItem = currentIndex === elements.length - 1;\n if (cycle) {\n destination =\n destination === \"previous\" && isFirstItem ? \"last\" : destination === \"next\" && isLastItem ? \"first\" : destination;\n }\n\n let focusTarget;\n if (destination === \"previous\") {\n focusTarget = elements[currentIndex - 1] || elements[cycle ? elements.length - 1 : currentIndex];\n } else if (destination === \"next\") {\n focusTarget = elements[currentIndex + 1] || elements[cycle ? 0 : currentIndex];\n } else if (destination === \"last\") {\n focusTarget = elements[elements.length - 1];\n } else {\n focusTarget = elements[0];\n }\n\n focusElement(focusTarget);\n return focusTarget;\n};\n\n/**\n * This helper determines if an element is before another element in the DOM.\n *\n * @param a the reference element to compare\n * @param b the element to compare against\n *\n * @returns true when a is before b in the DOM\n */\nexport function isBefore(a: HTMLElement, b: HTMLElement): boolean {\n if (a.parentNode !== b.parentNode) {\n return false;\n }\n\n const children = Array.from(a.parentNode.children);\n return children.indexOf(a) < children.indexOf(b);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"dom.js","sourceRoot":"","sources":["../../../src/utils/dom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,aAAa,EAAE,IAAI;CACpB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAW;IAClC,IAAI,CAAC,EAAE,EAAE,CAAC;QACR,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC;AACpE,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAoB,QAAmD;IACpG,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACnE,CAAC;AAID;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,EAAe;IACzC,MAAM,iBAAiB,GAAG,iCAAiC,CACzD,EAAE,EACF,IAAI,WAAW,CAAC,QAAQ,MAAM,WAAW,CAAC,SAAS,EAAE,CACtD,CAAC;IACF,OAAO,iBAAiB,EA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tabbable\";\nimport { guid } from \"./guid\";\nimport { CSS_UTILITY } from \"./resources\";\n\n/**\n * The default `focus-trap/tabbable` options.\n *\n * See https://github.com/focus-trap/tabbable#tabbable\n */\nexport const tabbableOptions = {\n getShadowRoot: true,\n};\n\n/**\n * This helper will guarantee an ID on the provided element.\n *\n * If it already has an ID, it will be preserved, otherwise a unique one will be generated and assigned.\n *\n * @param {Element} el An element.\n * @returns {string} The element's ID.\n */\nexport function ensureId(el: Element): string {\n if (!el) {\n return \"\";\n }\n\n return (el.id = el.id || `${el.tagName.toLowerCase()}-${guid()}`);\n}\n\n/**\n * This helper returns an array from a NodeList.\n *\n * @param {NodeList} nodeList A NodeList.\n * @returns {Element[]} An array of elements.\n */\nexport function nodeListToArray<T extends Element>(nodeList: HTMLCollectionOf<T> | NodeListOf<T> | T[]): T[] {\n return Array.isArray(nodeList) ? nodeList : Array.from(nodeList);\n}\n\nexport type Direction = \"ltr\" | \"rtl\";\n\n/**\n * This helper returns the Calcite \"mode\" of an element.\n *\n * @param {HTMLElement} el An element.\n * @returns {\"light\"|\"dark\"} The Calcite mode.\n */\nexport function getModeName(el: HTMLElement): \"light\" | \"dark\" {\n const closestElWithMode = closestElementCrossShadowBoundary(\n el,\n `.${CSS_UTILITY.darkMode}, .${CSS_UTILITY.lightMode}`,\n );\n return closestElWithMode?.classList.contains(\"calcite-mode-dark\") ? \"dark\" : \"light\";\n}\n\n/**\n * This helper returns the direction of a HTML element.\n *\n * @param {HTMLElement} el An element.\n * @returns {Direction} The direction.\n */\nexport function getElementDir(el: HTMLElement): Direction {\n const prop = \"dir\";\n const selector = `[${prop}]`;\n const closest = closestElementCrossShadowBoundary(el, selector);\n return closest ? (closest.getAttribute(prop) as Direction) : \"ltr\";\n}\n\n/**\n * This helper returns the value of an attribute on an element.\n *\n * @param {HTMLElement} el An element.\n * @param {string} attribute An attribute name.\n * @param {any} fallbackValue A fallback value.\n * @returns {any} The value.\n * @deprecated\n */\nexport function getElementProp(el: Element, attribute: string, fallbackValue: any): any {\n const selector = `[${attribute}]`;\n const closest = el.closest(selector);\n return closest ? closest.getAttribute(attribute) : fallbackValue;\n}\n\n/**\n * This helper returns the computed width in pixels of a rendered HTMLElement.\n *\n * @param {HTMLElement} el An element.\n * @returns {number} The element's width.\n */\nexport function getElementWidth(el: HTMLElement): number {\n if (!el) {\n return 0;\n }\n return parseFloat(getComputedStyle(el).inlineSize);\n}\n\n/**\n * This helper returns the rootNode of an element.\n *\n * @param {Element} el An element.\n * @returns {Document|ShadowRoot} The element's root node.\n */\nexport function getRootNode(el: Element): Document | ShadowRoot {\n return el.getRootNode() as Document | ShadowRoot;\n}\n\n/**\n * This helper returns the node's shadowRoot root node if it exists.\n *\n * @param {Element} el The element.\n * @returns {ShadowRoot|null} The element's root node ShadowRoot.\n */\nexport function getShadowRootNode(el: Element): ShadowRoot | null {\n const rootNode = getRootNode(el);\n return \"host\" in rootNode ? rootNode : null;\n}\n\n/**\n * This helper returns the computed width in pixels a given text string takes up on screen.\n *\n * See https://stackoverflow.com/questions/118241/calculate-text-width-with-javascript\n *\n * @param {string} text The string of text to measure.\n * @param {string} font The CSS font attribute's value, which should include size and face, e.g. \"12px Arial\".\n */\nexport function getTextWidth(text: string, font: string): number {\n if (!text) {\n return 0;\n }\n const canvas = document.createElement(\"canvas\");\n const context = canvas.getContext(\"2d\");\n context.font = font;\n return context.measureText(text).width;\n}\n/**\n * This helper returns the host of a ShadowRoot.\n *\n * @param {Document | ShadowRoot} root A root element.\n * @returns {Element | null} The host element.\n */\nexport function getHost(root: Document | ShadowRoot): Element | null {\n return (root as ShadowRoot).host || null;\n}\n\n/**\n * This helper queries an element's rootNode and any ancestor rootNodes.\n *\n * If both an 'id' and 'selector' are supplied, 'id' will take precedence over 'selector'.\n *\n * @param {Element} element An element.\n * @param root0\n * @param root0.selector\n * @param root0.id\n * @returns {Element} An element.\n */\nexport function queryElementRoots<T extends Element = Element>(\n element: Element,\n {\n selector,\n id,\n }: {\n selector?: string;\n id?: string;\n },\n): T | null {\n // Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.\n // Based on: https://stackoverflow.com/q/54520554/194216\n function queryFrom<T extends Element = Element>(el: Element): T | null {\n if (!el) {\n return null;\n }\n\n if ((el as Slottable).assignedSlot) {\n el = (el as Slottable).assignedSlot;\n }\n\n const rootNode = getRootNode(el);\n\n const found = id\n ? \"getElementById\" in rootNode\n ? /*\n Check to make sure 'getElementById' exists in cases where element is no longer connected to the DOM and getRootNode() returns the element.\n https://github.com/Esri/calcite-design-system/pull/4280\n */\n (rootNode.getElementById(id) as Element as T)\n : null\n : selector\n ? (rootNode.querySelector(selector) as T)\n : null;\n\n const host = getHost(rootNode);\n\n return found ? found : host ? queryFrom(host) : null;\n }\n\n return queryFrom(element);\n}\n\n/**\n * This helper returns the closest element matching the selector by crossing he shadow boundary if necessary.\n *\n * @param {Element} element The starting element.\n * @param {string} selector The selector.\n * @returns {Element} The targeted element.\n */\nexport function closestElementCrossShadowBoundary<T extends Element = Element>(\n element: Element,\n selector: string,\n): T | null {\n // based on https://stackoverflow.com/q/54520554/194216\n function closestFrom<T extends Element = Element>(el: Element): T | null {\n return el ? el.closest(selector) || closestFrom(getHost(getRootNode(el))) : null;\n }\n\n return closestFrom(element);\n}\n\n/**\n * This utility helps invoke a callback as it traverses a node and its ancestors until reaching the root document.\n *\n * Returning early or undefined in `onVisit` will continue traversing up the DOM tree. Otherwise, traversal will halt with the returned value as the result of the function\n *\n * @param {Element} element An element.\n * @param {(node: Node) => Element} onVisit The callback.\n * @returns {Element} The result.\n */\nexport function walkUpAncestry<T = any>(element: Element, onVisit: (node: Node) => T): T {\n return visit(element, onVisit);\n}\n\nfunction visit<T = any>(node: Node, onVisit: (node: Node) => T): T {\n if (!node) {\n return;\n }\n\n const result = onVisit(node);\n if (result !== undefined) {\n return result;\n }\n\n const { parentNode } = node;\n\n return visit(parentNode instanceof ShadowRoot ? parentNode.host : parentNode, onVisit);\n}\n\n/**\n * This helper returns true when an element has the descendant in question.\n *\n * @param {Element} element The starting element.\n * @param {Element} maybeDescendant The descendant.\n * @returns {boolean} The result.\n */\nexport function containsCrossShadowBoundary(element: Element, maybeDescendant: Element): boolean {\n return !!walkUpAncestry(maybeDescendant, (node) => (node === element ? true : undefined));\n}\n\n/**\n * An element which may contain a `setFocus` method.\n */\nexport interface FocusableElement extends HTMLElement {\n setFocus?: () => Promise<void>;\n}\n\n/**\n * This helper returns true when an element has a setFocus method.\n *\n * @param {Element} el An element.\n * @returns {boolean} The result.\n */\nexport function isCalciteFocusable(el: FocusableElement): boolean {\n return typeof el?.setFocus === \"function\";\n}\n\n/**\n * This helper focuses an element using the `setFocus` method if available and falls back to using the `focus` method if not available.\n *\n * @param {Element} el An element.\n */\nexport async function focusElement(el: FocusableElement): Promise<void> {\n if (!el) {\n return;\n }\n\n return isCalciteFocusable(el) ? el.setFocus() : el.focus();\n}\n\n/**\n * Helper to get the first tabbable element.\n *\n * @param {HTMLElement} element The html element containing tabbable elements.\n * @returns the first tabbable element.\n */\nexport function getFirstTabbable(element: HTMLElement): HTMLElement {\n if (!element) {\n return;\n }\n\n return (tabbable(element, tabbableOptions)[0] ?? element) as HTMLElement;\n}\n\n/**\n * Helper to focus the first tabbable element.\n *\n * @param {HTMLElement} element The html element containing tabbable elements.\n */\nexport function focusFirstTabbable(element: HTMLElement): void {\n getFirstTabbable(element)?.focus();\n}\n\ninterface GetSlottedOptions {\n all?: boolean;\n direct?: boolean;\n matches?: string;\n selector?: string;\n}\n\nconst defaultSlotSelector = \":not([slot])\";\n\n/**\n * Gets slotted elements for a named slot.\n *\n * @param {Element} element An element.\n * @param {string} slotName The slot name.\n * @param {GetSlottedOptions & { all: true }} options The options.\n * @returns {Element | Element[] | null} returns element(s) or null.\n * @deprecated Use `onSlotchange` event instead.\n *\n * ```\n * <slot onSlotchange={(event) => this.myElements = slotChangeGetAssignedElements(event)} />}\n * ```\n */\nexport function getSlotted<T extends Element = Element>(\n element: Element,\n slotName: string | string[] | (GetSlottedOptions & { all: true }),\n options: GetSlottedOptions & { all: true },\n): T[];\nexport function getSlotted<T extends Element = Element>(\n element: Element,\n slotName?: string | string[] | GetSlottedOptions,\n options?: GetSlottedOptions,\n): T | null;\nexport function getSlotted<T extends Element = Element>(\n element: Element,\n slotName?: string | string[] | GetSlottedOptions,\n options?: GetSlottedOptions,\n): (T | null) | T[] {\n if (slotName && !Array.isArray(slotName) && typeof slotName !== \"string\") {\n options = slotName;\n slotName = null;\n }\n\n const slotSelector = slotName\n ? Array.isArray(slotName)\n ? slotName.map((name) => `[slot=\"${name}\"]`).join(\",\")\n : `[slot=\"${slotName}\"]`\n : defaultSlotSelector;\n\n if (options?.all) {\n return queryMultiple<T>(element, slotSelector, options);\n }\n\n return querySingle<T>(element, slotSelector, options);\n}\n\nfunction getDirectChildren<T extends Element = Element>(el: Element, selector: string): T[] {\n return el ? (Array.from(el.children || []) as T[]).filter((child) => child?.matches(selector)) : [];\n}\n\nfunction queryMultiple<T extends Element = Element>(\n element: Element,\n slotSelector: string,\n options?: GetSlottedOptions,\n): T[] {\n let matches =\n slotSelector === defaultSlotSelector\n ? getDirectChildren<T>(element, defaultSlotSelector)\n : Array.from(element.querySelectorAll<T>(slotSelector));\n\n matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);\n\n matches = options?.matches ? matches.filter((el) => el?.matches(options.matches)) : matches;\n\n const selector = options?.selector;\n return selector\n ? matches\n .map((item) => Array.from(item.querySelectorAll<T>(selector)))\n .reduce((previousValue, currentValue) => [...previousValue, ...currentValue], [])\n .filter((match) => !!match)\n : matches;\n}\n\nfunction querySingle<T extends Element = Element>(\n element: Element,\n slotSelector: string,\n options?: GetSlottedOptions,\n): T | null {\n let match =\n slotSelector === defaultSlotSelector\n ? getDirectChildren<T>(element, defaultSlotSelector)[0] || null\n : element.querySelector<T>(slotSelector);\n\n match = options && options.direct === false ? match : match?.parentElement === element ? match : null;\n\n match = options?.matches ? (match?.matches(options.matches) ? match : null) : match;\n\n const selector = options?.selector;\n return selector ? match?.querySelector<T>(selector) : match;\n}\n\n/**\n * Filters direct children.\n *\n * @param {Element} el An element.\n * @param {string} selector The selector.\n * @returns {Element[]} An array of elements.\n */\nexport function filterDirectChildren<T extends Element>(el: Element, selector: string): T[] {\n return Array.from(el.children).filter((child): child is T => child.matches(selector));\n}\n\n/**\n * Set a default icon from a defined set or allow an override with an icon name string\n *\n * @param {Record<string, string>} iconObject The icon object.\n * @param {string | boolean} iconValue The icon value.\n * @param {string} matchedValue The matched value.\n * @returns {string|undefined} The resulting icon value.\n */\nexport function setRequestedIcon(\n iconObject: Record<string, string>,\n iconValue: string | boolean,\n matchedValue: string,\n): string | undefined {\n if (typeof iconValue === \"string\" && iconValue !== \"\") {\n return iconValue;\n } else if (iconValue === \"\") {\n return iconObject[matchedValue];\n }\n}\n\n/**\n * This helper returns true when two rectangles intersect.\n *\n * @param {DOMRect} rect1 The first rectangle.\n * @param {DOMRect} rect2 The second rectangle.\n * @returns {boolean} The result.\n */\nexport function intersects(rect1: DOMRect, rect2: DOMRect): boolean {\n return !(\n rect2.left > rect1.right ||\n rect2.right < rect1.left ||\n rect2.top > rect1.bottom ||\n rect2.bottom < rect1.top\n );\n}\n\n/**\n * This helper makes sure that boolean aria attributes are properly converted to a string.\n *\n * It should only be used for aria attributes that require a string value of \"true\" or \"false\".\n *\n * @param {boolean} value The value.\n * @returns {string} The string conversion of a boolean value (\"true\" | \"false\").\n */\nexport function toAriaBoolean(value: boolean): string {\n return Boolean(value).toString();\n}\n\n/**\n * This helper returns `true` if the target `slot` element from the `onSlotchange` event has any content (text or elements).\n *\n * ```\n * <slot onSlotchange={(event) => this.mySlotHasContent = slotChangeHasContent(event)} />}\n * ```\n *\n * @param {Event} event The event.\n * @returns {boolean} Whether the slot has any content.\n */\nexport function slotChangeHasContent(event: Event): boolean {\n return slotChangeHasAssignedElement(event) || slotChangeHasTextContent(event);\n}\n\n/**\n * This helper returns a string of textContent if the target `slot` element from the `onSlotchange` event has any text content.\n *\n * ```\n * <slot onSlotchange={(event) => this.mySlotText = slotChangeGetTextContent(event)} />}\n * ```\n *\n * @param {Event} event The event.\n * @returns {string} The slots text.\n */\nexport function slotChangeGetTextContent(event: Event): string {\n return slotChangeGetAssignedNodes(event)\n .filter((node) => node.nodeType === Node.TEXT_NODE)\n .map((node) => node.textContent)\n .join(\"\")\n .trim();\n}\n\n/**\n * This helper returns `true` if the target `slot` element from the `onSlotchange` event has any text content.\n *\n * ```\n * <slot onSlotchange={(event) => this.mySlotHasTextContent = slotChangeHasTextContent(event)} />}\n * ```\n *\n * @param {Event} event The event.\n * @returns {boolean} Whether the slot has any text content.\n */\nexport function slotChangeHasTextContent(event: Event): boolean {\n return !!slotChangeGetTextContent(event);\n}\n\n/**\n * This helper returns `true` if the target `slot` element from the `onSlotchange` event has an assigned node.\n *\n * ```\n * <slot onSlotchange={(event) => this.mySlotHasNode = slotChangeHasAssignedNode(event)} />}\n * ```\n *\n * @param {Event} event The event.\n * @returns {boolean} Whether the slot has any assigned nodes.\n */\nexport function slotChangeHasAssignedNode(event: Event): boolean {\n return !!slotChangeGetAssignedNodes(event).length;\n}\n\n/**\n * This helper returns the assigned nodes on a `slot` element from the `onSlotchange` event.\n *\n * ```\n * <slot onSlotchange={(event) => this.mySlotNodes = slotChangeGetAssignedNodes(event)} />}\n * ```\n *\n * @param {Event} event The event.\n * @returns {boolean} Whether the slot has any assigned nodes.\n */\nexport function slotChangeGetAssignedNodes(event: Event): Node[] {\n return (event.target as HTMLSlotElement).assignedNodes({\n flatten: true,\n });\n}\n\n/**\n * This helper returns `true` if the target `slot` element from the `onSlotchange` event has an assigned element.\n *\n * ```\n * <slot onSlotchange={(event) => this.mySlotHasElement = slotChangeHasAssignedElement(event)} />}\n * ```\n *\n * @param {Event} event The event.\n * @returns {boolean} Whether the slot has any assigned elements.\n */\nexport function slotChangeHasAssignedElement(event: Event): boolean {\n return !!slotChangeGetAssignedElements(event).length;\n}\n\n/**\n * This helper returns the assigned elements on a `slot` element from the `onSlotchange` event.\n *\n * ```\n * <slot onSlotchange={(event) => this.mySlotElements = slotChangeGetAssignedElements(event)} />}\n * ```\n *\n * @param {Event} event The event.\n * @returns {boolean} Whether the slot has any assigned elements.\n */\nexport function slotChangeGetAssignedElements(event: Event): Element[] {\n return (event.target as HTMLSlotElement).assignedElements({\n flatten: true,\n });\n}\n\n/**\n * This helper returns true if the pointer event fired from the primary button of the device.\n *\n * See https://www.w3.org/TR/pointerevents/#the-button-property.\n *\n * @param {PointerEvent} event The pointer event.\n * @returns {boolean} The value.\n */\nexport function isPrimaryPointerButton(event: PointerEvent): boolean {\n return !!(event.isPrimary && event.button === 0);\n}\n\n/**\n * This helper returns true if the mouse event was triggered by a keyboard click.\n *\n * @param {MouseEvent} event The mouse event.\n * @returns {boolean} The value.\n */\nexport function isKeyboardTriggeredClick(event: MouseEvent): boolean {\n // we assume event.detail = 0 is a keyboard click\n // see https://www.w3.org/TR/uievents/#event-type-click\n // see https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event#usage_notes\n return event.detail === 0;\n}\n\nexport type FocusElementInGroupDestination = \"first\" | \"last\" | \"next\" | \"previous\";\n\n/**\n * This helper sets focus on and returns a destination element from within a group of provided elements.\n *\n * @param {Element[]} elements An array of elements.\n * @param {Element} currentElement The current element.\n * @param {FocusElementInGroupDestination} destination The target destination element to focus.\n * @param {boolean} cycle Should navigation cycle through elements or stop at extent - defaults to true.\n * @returns {Element} The focused element\n */\nexport const focusElementInGroup = <T extends Element = Element>(\n elements: Element[],\n currentElement: Element,\n destination: FocusElementInGroupDestination,\n cycle = true,\n): T => {\n const currentIndex = elements.indexOf(currentElement);\n const isFirstItem = currentIndex === 0;\n const isLastItem = currentIndex === elements.length - 1;\n if (cycle) {\n destination =\n destination === \"previous\" && isFirstItem ? \"last\" : destination === \"next\" && isLastItem ? \"first\" : destination;\n }\n\n let focusTarget;\n if (destination === \"previous\") {\n focusTarget = elements[currentIndex - 1] || elements[cycle ? elements.length - 1 : currentIndex];\n } else if (destination === \"next\") {\n focusTarget = elements[currentIndex + 1] || elements[cycle ? 0 : currentIndex];\n } else if (destination === \"last\") {\n focusTarget = elements[elements.length - 1];\n } else {\n focusTarget = elements[0];\n }\n\n focusElement(focusTarget);\n return focusTarget;\n};\n\n/**\n * This helper determines if an element is before another element in the DOM.\n *\n * @param a the reference element to compare\n * @param b the element to compare against\n *\n * @returns true when a is before b in the DOM\n */\nexport function isBefore(a: HTMLElement, b: HTMLElement): boolean {\n if (a.parentNode !== b.parentNode) {\n return false;\n }\n\n const children = Array.from(a.parentNode.children);\n return children.indexOf(a) < children.indexOf(b);\n}\n\n/**\n * This util helps determine when an animation has completed.\n *\n * @param targetEl The element to watch for the animation to complete.\n * @param animationName The name of the animation to watch for completion.\n */\nexport async function whenAnimationDone(targetEl: HTMLElement, animationName: string): Promise<void> {\n const { animationDuration: allDurations, animationName: allNames } = getComputedStyle(targetEl);\n\n const allDurationsArray = allDurations.split(\",\");\n const allPropsArray = allNames.split(\",\");\n const propIndex = allPropsArray.indexOf(animationName);\n const duration =\n allDurationsArray[propIndex] ??\n /* Safari will have a single duration value for the shorthand prop when multiple, separate names/props are defined,\n so we fall back to it if there's no matching prop duration */\n allDurationsArray[0];\n\n if (duration === \"0s\") {\n return Promise.resolve();\n }\n\n const startEvent = \"animationstart\";\n const endEvent = \"animationend\";\n const cancelEvent = \"animationcancel\";\n\n return new Promise<void>((resolve) => {\n const fallbackTimeoutId = setTimeout(\n (): void => {\n targetEl.removeEventListener(startEvent, onStart);\n targetEl.removeEventListener(endEvent, onEndOrCancel);\n targetEl.removeEventListener(cancelEvent, onEndOrCancel);\n resolve();\n },\n parseFloat(duration) * 1000,\n );\n\n targetEl.addEventListener(startEvent, onStart);\n targetEl.addEventListener(endEvent, onEndOrCancel);\n targetEl.addEventListener(cancelEvent, onEndOrCancel);\n\n function onStart(event: AnimationEvent): void {\n if (event.animationName === animationName && event.target === targetEl) {\n clearTimeout(fallbackTimeoutId);\n targetEl.removeEventListener(startEvent, onStart);\n }\n }\n\n function onEndOrCancel(event: AnimationEvent): void {\n if (event.animationName === animationName && event.target === targetEl) {\n targetEl.removeEventListener(endEvent, onEndOrCancel);\n targetEl.removeEventListener(cancelEvent, onEndOrCancel);\n resolve();\n }\n }\n });\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.8.1
|
|
4
|
+
* v2.8.1
|
|
5
5
|
*/
|
|
6
6
|
import { html } from "../../support/formatting";
|
|
7
7
|
import { ensureId, focusElementInGroup, getElementProp, getModeName, getSlotted, isPrimaryPointerButton, setRequestedIcon, slotChangeGetAssignedElements, slotChangeHasAssignedElement, toAriaBoolean, getShadowRootNode, slotChangeGetTextContent, slotChangeGetAssignedNodes, slotChangeHasAssignedNode, slotChangeHasTextContent, slotChangeHasContent, isBefore, isKeyboardTriggeredClick, } from "./dom";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.8.1
|
|
4
|
+
* v2.8.1
|
|
5
5
|
*/
|
|
6
6
|
import { escapeRegExp, forIn } from "lodash-es";
|
|
7
7
|
export const filter = (data, value) => {
|