@esri/calcite-components 1.5.0-next.20 → 1.5.0-next.21
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/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +2 -2
- package/dist/calcite/{p-f28dc42f.entry.js → p-00301911.entry.js} +2 -2
- package/dist/calcite/{p-1840754a.js → p-0076712d.js} +2 -2
- package/dist/calcite/{p-9cb17cf6.entry.js → p-00934bbc.entry.js} +2 -2
- package/dist/calcite/{p-26814162.js → p-017d7f06.js} +2 -2
- package/dist/calcite/{p-298a2486.entry.js → p-01cd248a.entry.js} +2 -2
- package/dist/calcite/{p-815418ab.entry.js → p-059b1ad3.entry.js} +2 -2
- package/dist/calcite/{p-770fdb5d.js → p-069066f2.js} +2 -2
- package/dist/calcite/{p-37cd44fd.js → p-080752a2.js} +2 -2
- package/dist/calcite/{p-55189de8.entry.js → p-0900a43e.entry.js} +2 -2
- package/dist/calcite/{p-34380061.js → p-09ac7d48.js} +2 -2
- package/dist/calcite/p-0cae4325.js +6 -0
- package/dist/calcite/{p-ef1bb02c.js → p-0d5a4a0e.js} +2 -2
- package/dist/calcite/{p-eb7965cf.entry.js → p-0f0d5e35.entry.js} +2 -2
- package/dist/calcite/{p-fd4219a1.js → p-10eb8f57.js} +1 -1
- package/dist/calcite/{p-ca03c778.js → p-147a925c.js} +1 -1
- package/dist/calcite/{p-0503b4a3.entry.js → p-16b3159b.entry.js} +2 -2
- package/dist/calcite/{p-48ea3759.entry.js → p-1b32c979.entry.js} +2 -2
- package/dist/calcite/{p-ef15b74e.js → p-1d088751.js} +2 -2
- package/dist/calcite/{p-57a7c4f3.entry.js → p-1da5da14.entry.js} +2 -2
- package/dist/calcite/{p-01032607.js → p-1f954ab2.js} +2 -2
- package/dist/calcite/{p-c977b7df.js → p-1ffb6765.js} +2 -2
- package/dist/calcite/{p-9720de81.js → p-228bb400.js} +2 -2
- package/dist/calcite/{p-e0a6bb2d.entry.js → p-2381f75d.entry.js} +2 -2
- package/dist/calcite/p-240f563e.js +6 -0
- package/dist/calcite/{p-507d8933.entry.js → p-253a8f75.entry.js} +2 -2
- package/dist/calcite/{p-a14ff030.entry.js → p-29489ab6.entry.js} +2 -2
- package/dist/calcite/{p-64f4fc48.js → p-29a177d4.js} +2 -2
- package/dist/calcite/{p-24b0a5ad.js → p-29af99ae.js} +2 -2
- package/dist/calcite/{p-2b40aabb.entry.js → p-2b49ebd1.entry.js} +2 -2
- package/dist/calcite/{p-34e0cf1f.js → p-2cd45118.js} +2 -2
- package/dist/calcite/{p-4c6cb2c2.js → p-2d4ab6a4.js} +1 -1
- package/dist/calcite/{p-a5f4e89c.js → p-3054598e.js} +2 -2
- package/dist/calcite/{p-f492c20e.js → p-31dea011.js} +2 -2
- package/dist/calcite/{p-7c1e8222.entry.js → p-323a9671.entry.js} +2 -2
- package/dist/calcite/{p-75ed1e7d.entry.js → p-32d6f750.entry.js} +2 -2
- package/dist/calcite/{p-863d6719.entry.js → p-337c3df5.entry.js} +2 -2
- package/dist/calcite/{p-2664dbfa.entry.js → p-36b5bb27.entry.js} +2 -2
- package/dist/calcite/{p-260111ba.entry.js → p-3bdce97f.entry.js} +2 -2
- package/dist/calcite/{p-b1380b92.entry.js → p-3c39c641.entry.js} +2 -2
- package/dist/calcite/{p-1a0e4a03.js → p-3ca6a9a5.js} +2 -2
- package/dist/calcite/{p-64ee0281.js → p-3f50dacb.js} +2 -2
- package/dist/calcite/{p-6173b597.js → p-40286e5f.js} +2 -2
- package/dist/calcite/{p-54cc1ba9.js → p-414aa6f5.js} +2 -2
- package/dist/calcite/{p-754883cf.js → p-41708599.js} +1 -1
- package/dist/calcite/{p-f0f07931.js → p-4282340a.js} +2 -2
- package/dist/calcite/{p-9bbeaa99.js → p-4453a1fe.js} +1 -1
- package/dist/calcite/{p-85a4f08c.js → p-46ebe42c.js} +2 -2
- package/dist/calcite/{p-beaecceb.entry.js → p-4979dad3.entry.js} +2 -2
- package/dist/calcite/{p-614c903d.js → p-49a5c0bf.js} +2 -2
- package/dist/calcite/{p-ea32f524.js → p-4b3cc8c2.js} +2 -2
- package/dist/calcite/{p-5298100d.entry.js → p-4e8b8d43.entry.js} +2 -2
- package/dist/calcite/{p-29783d3a.js → p-5287dc8a.js} +2 -2
- package/dist/calcite/{p-e40eae8f.js → p-54dec461.js} +2 -2
- package/dist/calcite/{p-a692e085.js → p-60fc08b1.js} +2 -2
- package/dist/calcite/{p-c56900fe.entry.js → p-66f310d0.entry.js} +2 -2
- package/dist/calcite/{p-15899e2c.entry.js → p-67052cbf.entry.js} +2 -2
- package/dist/calcite/{p-e7feb4e1.entry.js → p-685b17cc.entry.js} +2 -2
- package/dist/calcite/{p-f49e9ebf.entry.js → p-68991f7a.entry.js} +2 -2
- package/dist/calcite/{p-c1a45733.entry.js → p-695e7614.entry.js} +2 -2
- package/dist/calcite/p-6a650ff2.entry.js +6 -0
- package/dist/calcite/{p-531180ca.js → p-6f7d2a42.js} +2 -2
- package/dist/calcite/{p-db2c1b2f.entry.js → p-6f9a60fa.entry.js} +2 -2
- package/dist/calcite/{p-d74c81f3.js → p-70265a1f.js} +2 -2
- package/dist/calcite/{p-4a3bf73d.entry.js → p-7197c247.entry.js} +2 -2
- package/dist/calcite/{p-9e22eb70.entry.js → p-73f4df35.entry.js} +2 -2
- package/dist/calcite/{p-49e0f082.entry.js → p-769ffe19.entry.js} +2 -2
- package/dist/calcite/p-78d25b47.js +6 -0
- package/dist/calcite/{p-5e60c724.entry.js → p-7a455162.entry.js} +2 -2
- package/dist/calcite/{p-6949d89d.js → p-7f1045c4.js} +2 -2
- package/dist/calcite/{p-0209d47b.entry.js → p-8099210e.entry.js} +2 -2
- package/dist/calcite/{p-6a3f11a5.js → p-830120f7.js} +2 -2
- package/dist/calcite/{p-3a640a4a.js → p-845e563d.js} +1 -1
- package/dist/calcite/{p-8b91a360.js → p-857567ad.js} +2 -2
- package/dist/calcite/{p-8b7ed1ae.entry.js → p-87cf5900.entry.js} +2 -2
- package/dist/calcite/{p-de1ecace.entry.js → p-87f54508.entry.js} +2 -2
- package/dist/calcite/{p-b4d0be13.js → p-8ba60d36.js} +2 -2
- package/dist/calcite/{p-9f8d56b7.entry.js → p-8da205e6.entry.js} +2 -2
- package/dist/calcite/{p-812ef719.entry.js → p-8eebdf99.entry.js} +2 -2
- package/dist/calcite/{p-e1ba7392.entry.js → p-8f5a9684.entry.js} +2 -2
- package/dist/calcite/{p-975b20ce.js → p-911bfa0e.js} +2 -2
- package/dist/calcite/{p-447e1858.js → p-958a15f4.js} +2 -2
- package/dist/calcite/{p-97969030.js → p-96c1bd06.js} +2 -2
- package/dist/calcite/p-97d68154.js +6 -0
- package/dist/calcite/p-9d6ea189.js +6 -0
- package/dist/calcite/{p-4bb338d3.entry.js → p-9eb75713.entry.js} +2 -2
- package/dist/calcite/p-a0747f98.js +6 -0
- package/dist/calcite/{p-19df82d2.js → p-a1b6ec76.js} +2 -2
- package/dist/calcite/{p-b368d468.entry.js → p-a1c58822.entry.js} +2 -2
- package/dist/calcite/{p-ba52a3cd.entry.js → p-a41c5512.entry.js} +2 -2
- package/dist/calcite/{p-47754e8f.entry.js → p-a54ff729.entry.js} +2 -2
- package/dist/calcite/{p-2242275a.js → p-a6359343.js} +2 -2
- package/dist/calcite/{p-59a0df9e.js → p-a9f98cec.js} +1 -1
- package/dist/calcite/{p-42ea5a1b.js → p-acb9e8be.js} +1 -1
- package/dist/calcite/{p-95f3b7c0.js → p-aed12e33.js} +2 -2
- package/dist/calcite/p-af27a8b3.entry.js +6 -0
- package/dist/calcite/{p-2ae756d9.js → p-af5bd8e2.js} +1 -1
- package/dist/calcite/p-b09b3788.js +6 -0
- package/dist/calcite/{p-3340e005.js → p-b262c9af.js} +2 -2
- package/dist/calcite/{p-b2360d51.entry.js → p-b27b3024.entry.js} +2 -2
- package/dist/calcite/{p-7e56f6c1.js → p-b3ca9241.js} +2 -2
- package/dist/calcite/{p-38f52fbe.js → p-b4000dba.js} +1 -1
- package/dist/calcite/{p-9f0af10e.entry.js → p-b4d1ae8a.entry.js} +2 -2
- package/dist/calcite/{p-d65993db.js → p-b54f6499.js} +2 -2
- package/dist/calcite/{p-048dbd78.js → p-b757df66.js} +2 -2
- package/dist/calcite/{p-6ba299db.js → p-b9028e7d.js} +1 -1
- package/dist/calcite/{p-2dce4230.entry.js → p-bb6fe80a.entry.js} +2 -2
- package/dist/calcite/{p-4a940a15.js → p-bcc741e7.js} +2 -2
- package/dist/calcite/{p-25febed4.entry.js → p-bf15df9c.entry.js} +2 -2
- package/dist/calcite/{p-3ee602fe.entry.js → p-bf2de9b2.entry.js} +2 -2
- package/dist/calcite/{p-bbfb8447.js → p-bff440ec.js} +2 -2
- package/dist/calcite/{p-b1a5ff41.entry.js → p-c6704eb7.entry.js} +2 -2
- package/dist/calcite/p-c77f458e.js +6 -0
- package/dist/calcite/{p-4dcbefa6.entry.js → p-c79a57b5.entry.js} +2 -2
- package/dist/calcite/{p-18a37b63.js → p-c835c395.js} +2 -2
- package/dist/calcite/{p-a9e8c658.entry.js → p-d0a7172b.entry.js} +2 -2
- package/dist/calcite/{p-8abf6065.entry.js → p-d0dbfb49.entry.js} +2 -2
- package/dist/calcite/{p-a984ee2e.entry.js → p-d0e48453.entry.js} +2 -2
- package/dist/calcite/{p-5766eaae.entry.js → p-d1ff2cda.entry.js} +2 -2
- package/dist/calcite/{p-750e3793.js → p-d57578d3.js} +2 -2
- package/dist/calcite/p-d61146ad.js +6 -0
- package/dist/calcite/{p-e5a0b54e.entry.js → p-d87f91a7.entry.js} +2 -2
- package/dist/calcite/{p-944fa8e2.js → p-d94f85b1.js} +1 -1
- package/dist/calcite/{p-2ee849f2.js → p-d97b2517.js} +2 -2
- package/dist/calcite/{p-8cc3d394.js → p-da0da246.js} +2 -2
- package/dist/calcite/{p-cfa9f020.js → p-dd6a541f.js} +2 -2
- package/dist/calcite/{p-b10e11ad.js → p-de78084a.js} +1 -1
- package/dist/calcite/{p-367be26f.js → p-deaf31c7.js} +2 -2
- package/dist/calcite/{p-5479c522.js → p-e2360c51.js} +1 -1
- package/dist/calcite/p-e24e564d.js +6 -0
- package/dist/calcite/{p-d5a7266e.js → p-e32741ff.js} +2 -2
- package/dist/calcite/{p-ef82a3ee.entry.js → p-e42a3f94.entry.js} +2 -2
- package/dist/calcite/{p-4d1421bc.entry.js → p-e4c88909.entry.js} +2 -2
- package/dist/calcite/{p-e2579f49.js → p-e60afb5b.js} +2 -2
- package/dist/calcite/p-e6e6e283.entry.js +6 -0
- package/dist/calcite/{p-1606af73.js → p-ee007edd.js} +2 -2
- package/dist/calcite/{p-d06c2bd2.js → p-ee35ceaf.js} +2 -2
- package/dist/calcite/{p-8a320bb2.entry.js → p-f0053c08.entry.js} +2 -2
- package/dist/calcite/p-f096fc9c.entry.js +6 -0
- package/dist/calcite/{p-c4ba0fd8.js → p-f11a967c.js} +2 -2
- package/dist/calcite/{p-fcf82ddc.entry.js → p-f13472c4.entry.js} +2 -2
- package/dist/calcite/{p-98ddfd55.entry.js → p-f33d9420.entry.js} +2 -2
- package/dist/calcite/{p-ceba28f1.entry.js → p-f4614c6a.entry.js} +2 -2
- package/dist/calcite/{p-32fa7c12.js → p-f4f04a9c.js} +1 -1
- package/dist/calcite/{p-0411e40d.entry.js → p-f7be17b7.entry.js} +2 -2
- package/dist/calcite/{p-f12b267d.js → p-f91ee641.js} +2 -2
- package/dist/calcite/{p-424869ba.entry.js → p-f9b68fe1.entry.js} +2 -2
- package/dist/calcite/{p-2df445a4.js → p-faa87280.js} +2 -2
- package/dist/calcite/{p-4657b977.js → p-fd7c9f22.js} +2 -2
- package/dist/calcite/{p-53a96154.js → p-fdbf1da0.js} +2 -2
- package/dist/cjs/{ExpandToggle-5858dde2.js → ExpandToggle-1559aad1.js} +5 -5
- package/dist/cjs/{FloatingArrow-35855137.js → FloatingArrow-b131866d.js} +2 -2
- package/dist/cjs/{Heading-1dbb76bc.js → Heading-c6e1d28d.js} +2 -2
- package/dist/cjs/{app-globals-97cc6e31.js → app-globals-6d00f1ab.js} +2 -2
- package/dist/cjs/{ar-3f687ede.js → ar-9b1a4279.js} +15 -15
- package/dist/cjs/{array-d7e1c8c0.js → array-0715213b.js} +1 -1
- package/dist/cjs/{bg-cfa1f036.js → bg-645c4f65.js} +15 -15
- package/dist/cjs/{bs-2b900106.js → bs-cc4e4fb1.js} +15 -15
- package/dist/cjs/{ca-da034057.js → ca-1e7f00bf.js} +15 -15
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- 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 +11 -11
- package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-button.cjs.entry.js +13 -13
- package/dist/cjs/calcite-card.cjs.entry.js +10 -10
- package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
- package/dist/cjs/calcite-chip-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-chip.cjs.entry.js +12 -12
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +15 -15
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +18 -18
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +13 -13
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +26 -25
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
- package/dist/cjs/calcite-filter.cjs.entry.js +13 -13
- package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -12
- package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
- package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +18 -18
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
- package/dist/cjs/{calcite-input-time-picker.calcite-time-picker-2555977a.js → calcite-input-time-picker.calcite-time-picker-a99acd64.js} +60 -60
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-input.cjs.entry.js +13 -13
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +7 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +13 -13
- 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-modal.cjs.entry.js +13 -13
- package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
- package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
- package/dist/cjs/calcite-panel.cjs.entry.js +14 -14
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-popover.cjs.entry.js +16 -16
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +8 -8
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-stack.cjs.entry.js +6 -6
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tab_4.cjs.entry.js +10 -10
- package/dist/cjs/calcite-text-area.cjs.entry.js +15 -15
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- 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 +8 -8
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite.cjs.js +4 -4
- package/dist/cjs/{conditionalSlot-5d52a96a.js → conditionalSlot-51e1803a.js} +3 -3
- package/dist/cjs/{cs-7016367f.js → cs-26bf8f54.js} +15 -15
- package/dist/cjs/{da-2f21ef5a.js → da-b8a7a12a.js} +15 -15
- package/dist/cjs/{de-192844f8.js → de-a980524d.js} +15 -15
- package/dist/cjs/{de-at-7d509352.js → de-at-a486587b.js} +15 -15
- package/dist/cjs/{de-ch-affe452a.js → de-ch-2836a0d9.js} +15 -15
- package/dist/cjs/{debounce-f6e6f89d.js → debounce-1621b2f0.js} +1 -1
- package/dist/cjs/{dom-9e557d3c.js → dom-a1026792.js} +3 -3
- package/dist/cjs/{el-975268c6.js → el-a467dbd0.js} +15 -15
- package/dist/cjs/{en-au-b6c750a3.js → en-au-fcc97582.js} +15 -15
- package/dist/cjs/{en-ca-0c5658f4.js → en-ca-766ffb5b.js} +15 -15
- package/dist/cjs/{en-gb-5cd8bf37.js → en-gb-ba6745d6.js} +15 -15
- package/dist/cjs/{es-5d4279cf.js → es-1da3ab1a.js} +15 -15
- package/dist/cjs/{es-mx-73088e8a.js → es-mx-0cc3828b.js} +15 -15
- package/dist/cjs/{et-75834ccf.js → et-f5164cc0.js} +15 -15
- package/dist/cjs/{fi-0c14676e.js → fi-0ba509f4.js} +15 -15
- package/dist/cjs/{filter-946f272a.js → filter-6543096b.js} +2 -2
- package/dist/cjs/{floating-ui-e17cb05a.js → floating-ui-6a29be58.js} +3 -3
- package/dist/cjs/{focusTrapComponent-2b0f4356.js → focusTrapComponent-1bd18eb6.js} +2 -2
- package/dist/cjs/{form-8864a4b0.js → form-24dfbfb9.js} +3 -3
- package/dist/cjs/{fr-ch-cfa1bca7.js → fr-ch-e8a3ed6f.js} +15 -15
- package/dist/cjs/{fr-585feb7a.js → fr-ece06ddc.js} +15 -15
- package/dist/cjs/{guid-bf88280b.js → guid-b349d9b5.js} +1 -1
- package/dist/cjs/{he-bebb3169.js → he-a4bd6cfc.js} +15 -15
- package/dist/cjs/{hi-63bb643d.js → hi-1ca5bba1.js} +15 -15
- package/dist/cjs/{hr-391e9da9.js → hr-c31835ba.js} +15 -15
- package/dist/cjs/{hu-aa42bd05.js → hu-58a3a1bc.js} +15 -15
- package/dist/cjs/{id-08b43eac.js → id-9e62884e.js} +15 -15
- package/dist/cjs/{index-c245a341.js → index-656ae32a.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{interactive-e3d9c9a7.js → interactive-875f32fb.js} +1 -1
- package/dist/cjs/{it-6fe32b3a.js → it-2bcfb6e2.js} +15 -15
- package/dist/cjs/{it-ch-a88b6021.js → it-ch-d97913b1.js} +15 -15
- package/dist/cjs/{ja-3e745da1.js → ja-ed5728fd.js} +15 -15
- package/dist/cjs/{key-3e4fa714.js → key-d6250065.js} +1 -1
- package/dist/cjs/{ko-98ffc151.js → ko-cf647efc.js} +15 -15
- package/dist/cjs/{label-b5e8b7cf.js → label-57e38e2e.js} +2 -2
- package/dist/cjs/{loadable-91e3266c.js → loadable-ce4ccf15.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{locale-c802fd9c.js → locale-5c1928bd.js} +4 -4
- package/dist/cjs/{lt-b52fc1a4.js → lt-07c884c8.js} +15 -15
- package/dist/cjs/{lv-c233a054.js → lv-ceb260ec.js} +15 -15
- package/dist/cjs/{math-6f261523.js → math-4c309e54.js} +1 -1
- package/dist/cjs/{mk-7f153371.js → mk-fe7cf0d5.js} +15 -15
- package/dist/cjs/{nb-fa5485b8.js → nb-622796e2.js} +15 -15
- package/dist/cjs/{nl-17c2f719.js → nl-7fe3851d.js} +15 -15
- package/dist/cjs/{observers-a8dbfded.js → observers-0ee21e59.js} +1 -1
- package/dist/cjs/{openCloseComponent-76a0d128.js → openCloseComponent-7398ec73.js} +2 -2
- package/dist/cjs/{pl-da65c618.js → pl-1e8316dc.js} +15 -15
- package/dist/cjs/{pt-0fe33dd1.js → pt-792fc990.js} +15 -15
- package/dist/cjs/{pt-br-044d730b.js → pt-br-8232a95b.js} +15 -15
- package/dist/cjs/{resources-0b6b93b3.js → resources-280687e2.js} +1 -1
- package/dist/cjs/{resources-c1fca34d.js → resources-524aba45.js} +1 -1
- package/dist/cjs/{resources-52d49975.js → resources-656d9156.js} +1 -1
- package/dist/cjs/{resources-4824bab0.js → resources-8f942137.js} +5 -5
- package/dist/cjs/{resources-e6bd9461.js → resources-96d9cdab.js} +1 -1
- package/dist/cjs/{resources-67958148.js → resources-e1018918.js} +1 -1
- package/dist/cjs/{resources-714c7e39.js → resources-e44d71e8.js} +1 -1
- package/dist/cjs/{ro-bbca039c.js → ro-0dfbe650.js} +15 -15
- package/dist/cjs/{ru-7ad8575e.js → ru-69bbecf9.js} +15 -15
- package/dist/cjs/{sk-431edf8f.js → sk-d9998d19.js} +15 -15
- package/dist/cjs/{sl-4e1d5d2b.js → sl-cbe85e76.js} +15 -15
- package/dist/cjs/{sortableComponent-0f71d6e2.js → sortableComponent-2e9bd72b.js} +2 -2
- package/dist/cjs/{sr-c90fd2c4.js → sr-64f880d6.js} +15 -15
- package/dist/cjs/{sv-b78afea5.js → sv-d116aa2a.js} +15 -15
- package/dist/cjs/{t9n-3bf7a14a.js → t9n-699a4ab7.js} +3 -3
- package/dist/cjs/{th-7f20bded.js → th-03f2ac76.js} +15 -15
- package/dist/cjs/{throttle-9e666d3e.js → throttle-663729ba.js} +2 -2
- package/dist/cjs/{tr-3e0fa3f3.js → tr-c6727598.js} +15 -15
- package/dist/cjs/{uk-dbb2f20a.js → uk-8a14e6b2.js} +15 -15
- package/dist/cjs/{utils-1fb92e3e.js → utils-df48b71b.js} +1 -1
- package/dist/cjs/{utils-3ba89244.js → utils-ed02e07b.js} +3 -3
- package/dist/cjs/{vi-379c8bed.js → vi-42ca578a.js} +15 -15
- package/dist/cjs/{zh-cn-847cd8b1.js → zh-cn-d2f42ff9.js} +15 -15
- package/dist/cjs/{zh-hk-c39448b6.js → zh-hk-33e2614b.js} +15 -15
- package/dist/cjs/{zh-tw-0f12548e.js → zh-tw-9ad2281a.js} +15 -15
- package/dist/collection/components/accordion/accordion.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.js +1 -1
- package/dist/collection/components/action/resources.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.js +1 -1
- package/dist/collection/components/action-group/resources.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.js +1 -1
- package/dist/collection/components/action-pad/resources.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.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/resources.js +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.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.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.js +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-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.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +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.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- 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.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-day/date-picker-day.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +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.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +15 -14
- package/dist/collection/components/dropdown-item/resources.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.js +1 -1
- package/dist/collection/components/filter/resources.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.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/XButton.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.js +1 -1
- package/dist/collection/components/handle/resources.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/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.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.js +1 -1
- package/dist/collection/components/input-date-picker/resources.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.js +1 -1
- package/dist/collection/components/input-number/resources.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.js +1 -1
- package/dist/collection/components/input-time-picker/resources.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.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +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.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/menu/menu.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/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.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.js +1 -1
- package/dist/collection/components/navigation-logo/resources.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.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.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.js +1 -1
- package/dist/collection/components/panel/resources.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-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.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.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.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.js +1 -1
- package/dist/collection/components/rating/function/star.js +1 -1
- package/dist/collection/components/rating/rating.js +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.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.js +1 -1
- package/dist/collection/components/segmented-control-item/resources.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.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.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.js +1 -1
- package/dist/collection/components/slider/resources.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.js +1 -1
- package/dist/collection/components/split-button/resources.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.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/tab.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.js +1 -1
- package/dist/collection/components/tabs/resources.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.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.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.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.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.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.js +1 -1
- package/dist/collection/components/tooltip/utils.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.js +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.js +1 -1
- package/dist/collection/components/value-list-item/resources.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/utils/array.js +1 -1
- package/dist/collection/utils/browser.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/focusTrapComponent.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/mode.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.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/components/ExpandToggle.js +1 -1
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +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 +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 +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +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 +1 -1
- 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 +15 -14
- 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 -1
- package/dist/components/calcite-input-date-picker.js +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 +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 +1 -1
- package/dist/components/calcite-list.js +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-modal.js +1 -1
- 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 -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 +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- 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-tabs.js +1 -1
- package/dist/components/calcite-text-area.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 +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 +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- 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/conditionalSlot.js +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 +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 +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/index2.js +1 -1
- package/dist/components/input-number.js +1 -1
- package/dist/components/input.js +1 -1
- 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 +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 +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/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.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 +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.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/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/tooltip.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 +1 -1
- 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-d547daf9.js → ExpandToggle-0e5f31bd.js} +5 -5
- package/dist/esm/{FloatingArrow-43daa6b3.js → FloatingArrow-1218fa99.js} +2 -2
- package/dist/esm/{Heading-f6c9a398.js → Heading-8664dd40.js} +2 -2
- package/dist/esm/{app-globals-a435cdb1.js → app-globals-bbcd4eaf.js} +2 -2
- package/dist/esm/{ar-f9ad9b42.js → ar-a993800e.js} +15 -15
- package/dist/esm/{array-a947e1fb.js → array-0f5895c2.js} +1 -1
- package/dist/esm/{bg-0f5005ea.js → bg-f2929321.js} +15 -15
- package/dist/esm/{bs-2d5ad789.js → bs-0b3f8380.js} +15 -15
- package/dist/esm/{ca-e1bdd3ae.js → ca-2faadc92.js} +15 -15
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- 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 +11 -11
- package/dist/esm/calcite-alert.entry.js +12 -12
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +13 -13
- package/dist/esm/calcite-button.entry.js +13 -13
- package/dist/esm/calcite-card.entry.js +10 -10
- package/dist/esm/calcite-checkbox.entry.js +10 -10
- package/dist/esm/calcite-chip-group.entry.js +8 -8
- package/dist/esm/calcite-chip.entry.js +12 -12
- package/dist/esm/calcite-color-picker_3.entry.js +15 -15
- package/dist/esm/calcite-combobox_3.entry.js +18 -18
- package/dist/esm/calcite-date-picker_4.entry.js +13 -13
- package/dist/esm/calcite-dropdown_3.entry.js +26 -25
- package/dist/esm/calcite-fab.entry.js +7 -7
- package/dist/esm/calcite-filter.entry.js +13 -13
- package/dist/esm/calcite-flow-item.entry.js +12 -12
- package/dist/esm/calcite-flow.entry.js +4 -4
- package/dist/esm/calcite-graph_2.entry.js +13 -13
- package/dist/esm/calcite-handle.entry.js +10 -10
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +12 -12
- package/dist/esm/calcite-input-date-picker.entry.js +18 -18
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +13 -13
- package/dist/esm/calcite-input-text.entry.js +13 -13
- package/dist/esm/{calcite-input-time-picker.calcite-time-picker-311614cb.js → calcite-input-time-picker.calcite-time-picker-c13af59a.js} +60 -60
- package/dist/esm/calcite-input-time-picker_2.entry.js +15 -15
- package/dist/esm/calcite-input.entry.js +13 -13
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +7 -7
- package/dist/esm/calcite-list_3.entry.js +13 -13
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-menu_2.entry.js +10 -10
- package/dist/esm/calcite-modal.entry.js +13 -13
- package/dist/esm/calcite-navigation_3.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +12 -12
- package/dist/esm/calcite-option_3.entry.js +10 -10
- package/dist/esm/calcite-pagination.entry.js +10 -10
- package/dist/esm/calcite-panel.entry.js +14 -14
- package/dist/esm/calcite-pick-list_3.entry.js +16 -16
- package/dist/esm/calcite-popover.entry.js +16 -16
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +4 -4
- package/dist/esm/calcite-radio-button.entry.js +10 -10
- package/dist/esm/calcite-rating.entry.js +13 -13
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +9 -9
- package/dist/esm/calcite-shell_3.entry.js +11 -11
- package/dist/esm/calcite-sortable-list.entry.js +8 -8
- package/dist/esm/calcite-split-button.entry.js +4 -4
- package/dist/esm/calcite-stack.entry.js +6 -6
- package/dist/esm/calcite-stepper_2.entry.js +10 -10
- package/dist/esm/calcite-switch.entry.js +10 -10
- package/dist/esm/calcite-tab_4.entry.js +10 -10
- package/dist/esm/calcite-text-area.entry.js +15 -15
- package/dist/esm/calcite-tile-select_2.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +8 -8
- 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 +8 -8
- package/dist/esm/calcite-value-list_2.entry.js +16 -16
- package/dist/esm/calcite.js +5 -5
- package/dist/esm/{conditionalSlot-cfa13997.js → conditionalSlot-5d49def7.js} +3 -3
- package/dist/esm/{cs-731c526f.js → cs-0e80daad.js} +15 -15
- package/dist/esm/{da-5ae8d29f.js → da-8047ecaa.js} +15 -15
- package/dist/esm/{de-2e2ce474.js → de-91c21312.js} +15 -15
- package/dist/esm/{de-at-99a04825.js → de-at-eea5274a.js} +15 -15
- package/dist/esm/{de-ch-2bff3f28.js → de-ch-1e78c9d5.js} +15 -15
- package/dist/esm/{debounce-d872604e.js → debounce-a9cd97a3.js} +1 -1
- package/dist/esm/{dom-9c33acdd.js → dom-c9560d6f.js} +3 -3
- package/dist/esm/{el-8e81b25f.js → el-dd117d92.js} +15 -15
- package/dist/esm/{en-au-d27697a8.js → en-au-cbdb64df.js} +15 -15
- package/dist/esm/{en-ca-00401df1.js → en-ca-7d9eda56.js} +15 -15
- package/dist/esm/{en-gb-38343af7.js → en-gb-ef7c5823.js} +15 -15
- package/dist/esm/{es-b865e712.js → es-c080fc99.js} +15 -15
- package/dist/esm/{es-mx-cba580d0.js → es-mx-f85070b4.js} +15 -15
- package/dist/esm/{et-29d67b9d.js → et-920f3380.js} +15 -15
- package/dist/esm/{fi-ecf34e17.js → fi-3715ca90.js} +15 -15
- package/dist/esm/{filter-ec91f11b.js → filter-1fa6ad9a.js} +2 -2
- package/dist/esm/{floating-ui-fceb403d.js → floating-ui-a501f7d0.js} +3 -3
- package/dist/esm/{focusTrapComponent-07f8a1cb.js → focusTrapComponent-fb1456ee.js} +2 -2
- package/dist/esm/{form-e707b3d0.js → form-41d67af8.js} +3 -3
- package/dist/esm/{fr-5e6d5bbd.js → fr-b690f428.js} +15 -15
- package/dist/esm/{fr-ch-513f9500.js → fr-ch-c4a29265.js} +15 -15
- package/dist/esm/{guid-5bd6c7bb.js → guid-39e306df.js} +1 -1
- package/dist/esm/{he-85f934c0.js → he-5a759efe.js} +15 -15
- package/dist/esm/{hi-474ed4e5.js → hi-bd96abb7.js} +15 -15
- package/dist/esm/{hr-71092878.js → hr-1f8f92fc.js} +15 -15
- package/dist/esm/{hu-0eb20c60.js → hu-9f1e5cf2.js} +15 -15
- package/dist/esm/{id-5207af21.js → id-e847206f.js} +15 -15
- package/dist/esm/{index-08f68db5.js → index-cbaf8662.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{interactive-46ab5898.js → interactive-7ff06be1.js} +1 -1
- package/dist/esm/{it-7d45a0d9.js → it-6e7599f6.js} +15 -15
- package/dist/esm/{it-ch-f7aba71f.js → it-ch-05276aa8.js} +15 -15
- package/dist/esm/{ja-ef465867.js → ja-1a22c7c3.js} +15 -15
- package/dist/esm/{key-1131c702.js → key-d00a22d1.js} +1 -1
- package/dist/esm/{ko-065c0ccb.js → ko-7cae1154.js} +15 -15
- package/dist/esm/{label-c9c82e21.js → label-3d41157b.js} +2 -2
- package/dist/esm/{loadable-691c78ca.js → loadable-06aee5dd.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-04b1217d.js → locale-e807ce48.js} +4 -4
- package/dist/esm/{lt-b80f4ba1.js → lt-ff63e1bb.js} +15 -15
- package/dist/esm/{lv-7e6cff72.js → lv-97302b76.js} +15 -15
- package/dist/esm/{math-7cc8a2b6.js → math-0ec25d23.js} +1 -1
- package/dist/esm/{mk-f9205b04.js → mk-05c19706.js} +15 -15
- package/dist/esm/{nb-6cb07b87.js → nb-fe53c80d.js} +15 -15
- package/dist/esm/{nl-0e3b8e2e.js → nl-7c03bcb8.js} +15 -15
- package/dist/esm/{observers-e59dd5a2.js → observers-0e9021a0.js} +1 -1
- package/dist/esm/{openCloseComponent-fbc009e2.js → openCloseComponent-a6ce5101.js} +2 -2
- package/dist/esm/{pl-dbdbf9b5.js → pl-32bec0ba.js} +15 -15
- package/dist/esm/{pt-4d466928.js → pt-60fafae7.js} +15 -15
- package/dist/esm/{pt-br-1222394c.js → pt-br-e4493873.js} +15 -15
- package/dist/esm/{resources-a9b04031.js → resources-15ca79d2.js} +1 -1
- package/dist/esm/{resources-11061af0.js → resources-1b899bdc.js} +5 -5
- package/dist/esm/{resources-af507cff.js → resources-3b3cf1b9.js} +1 -1
- package/dist/esm/{resources-9f650202.js → resources-8aa7246b.js} +1 -1
- package/dist/esm/{resources-4d814467.js → resources-c4d82f43.js} +1 -1
- package/dist/esm/{resources-bc368881.js → resources-ef51b0d6.js} +1 -1
- package/dist/esm/{resources-661ca7e7.js → resources-f2671f54.js} +1 -1
- package/dist/esm/{ro-761fa016.js → ro-67ee0b14.js} +15 -15
- package/dist/esm/{ru-3363121c.js → ru-6f64ca50.js} +15 -15
- package/dist/esm/{sk-e94cd52a.js → sk-b6a5e35e.js} +15 -15
- package/dist/esm/{sl-5faa28cf.js → sl-cebadd2a.js} +15 -15
- package/dist/esm/{sortableComponent-f3cae161.js → sortableComponent-df6e4b11.js} +2 -2
- package/dist/esm/{sr-15f451aa.js → sr-b54f0b66.js} +15 -15
- package/dist/esm/{sv-8b02036a.js → sv-e257829c.js} +15 -15
- package/dist/esm/{t9n-da3df79c.js → t9n-3ec5fefb.js} +3 -3
- package/dist/esm/{th-d048bade.js → th-064f8d76.js} +15 -15
- package/dist/esm/{throttle-288d73e1.js → throttle-3a645840.js} +2 -2
- package/dist/esm/{tr-ee8a4bec.js → tr-5e5319b5.js} +15 -15
- package/dist/esm/{uk-25b03a05.js → uk-e843d3e6.js} +15 -15
- package/dist/esm/{utils-f4106033.js → utils-3c6a59f8.js} +3 -3
- package/dist/esm/{utils-ed6141cc.js → utils-86b506fe.js} +1 -1
- package/dist/esm/{vi-8f3a394d.js → vi-963166db.js} +15 -15
- package/dist/esm/{zh-cn-c9f0b8f2.js → zh-cn-23f83621.js} +15 -15
- package/dist/esm/{zh-hk-85861959.js → zh-hk-43c12de5.js} +15 -15
- package/dist/esm/{zh-tw-73ca8557.js → zh-tw-6a332602.js} +15 -15
- package/dist/extras/docs-json.json +1 -1
- 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/hydrate/index.js +15 -14
- package/package.json +2 -2
- package/dist/calcite/p-015b7d7a.js +0 -6
- package/dist/calcite/p-3957d7c1.js +0 -6
- package/dist/calcite/p-4e11f50f.entry.js +0 -6
- package/dist/calcite/p-7ab38eb9.entry.js +0 -6
- package/dist/calcite/p-834142ca.js +0 -6
- package/dist/calcite/p-88d07eae.js +0 -6
- package/dist/calcite/p-8dcf600d.entry.js +0 -6
- package/dist/calcite/p-968268fa.js +0 -6
- package/dist/calcite/p-9b9d1fa3.js +0 -6
- package/dist/calcite/p-b754b4a9.entry.js +0 -6
- package/dist/calcite/p-c48c5687.js +0 -6
- package/dist/calcite/p-d4ad9de2.js +0 -6
- package/dist/calcite/p-d5939581.js +0 -6
- package/dist/calcite/p-f3c0550c.js +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as a,a as e}from"./p-
|
|
6
|
+
import{r as t,c as i,h as a,a as e}from"./p-845e563d.js";import{k as n,t as s}from"./p-1d088751.js";import{c,d as o,u as r}from"./p-b9028e7d.js";import{c as l}from"./p-10eb8f57.js";import{a as h,s as m,c as d}from"./p-e24e564d.js";import"./p-b4000dba.js";import"./p-af5bd8e2.js";const p=class{constructor(a){t(this,a),this.calciteChipGroupSelect=i(this,"calciteChipGroupSelect",6),this.mutationObserver=l("mutation",(()=>this.updateItems())),this.items=[],this.updateItems=t=>{this.items=(t?t.target:this.slotRefEl).assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-chip"))),this.items.forEach((t=>{t.interactive=!0,t.scale=this.scale,t.selectionMode=this.selectionMode})),this.setSelectedItems(!1)},this.setSelectedItems=(t,i)=>{i&&this.items.forEach((t=>{const a=i===t;switch(this.selectionMode){case"multiple":a&&(t.selected=!t.selected);break;case"single":t.selected=!!a&&!t.selected;break;case"single-persist":t.selected=!!a}})),this.selectedItems=this.items.filter((t=>t.selected)),t&&this.calciteChipGroupSelect.emit()},this.disabled=!1,this.label=void 0,this.scale="m",this.selectionMode="none",this.selectedItems=[]}onSelectionModeChange(){this.updateItems()}connectedCallback(){c(this),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}componentDidRender(){o(this),r(this)}componentDidLoad(){h(this)}disconnectedCallback(){this.mutationObserver?.disconnect()}async componentWillLoad(){m(this)}calciteInternalChipKeyEventListener(t){if(t.composedPath().includes(this.el)){const i=this.items.filter((t=>!t.disabled));switch(t.detail.key){case"ArrowRight":n(i,t.detail.target,"next");break;case"ArrowLeft":n(i,t.detail.target,"previous");break;case"Home":n(i,t.detail.target,"first");break;case"End":n(i,t.detail.target,"last")}}}calciteChipCloseListener(t){const i=t.target;this.items.includes(i)&&(this.items.indexOf(i)>0?n(this.items,i,"previous"):0===this.items.indexOf(i)?n(this.items,i,"next"):n(this.items,i,"first")),this.items=this.items.filter((t=>t!==i))}calciteChipSelectListener(t){t.composedPath().includes(this.el)&&this.setSelectedItems(!0,t.target)}async setFocus(){if(await d(this),!this.disabled)return(this.selectedItems[0]||this.items[0])?.setFocus()}render(){const t="none"===this.selectionMode||"multiple"===this.selectionMode?"group":"radiogroup";return a("div",{"aria-disabled":s(this.disabled),"aria-label":this.label,class:"container",role:t},a("slot",{onSlotchange:this.updateItems,ref:t=>this.slotRefEl=t}))}get el(){return e(this)}static get watchers(){return{selectionMode:["onSelectionModeChange"]}}};p.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}.container{display:flex;inline-size:100%;flex-wrap:wrap;gap:0.5rem}::slotted(calcite-chip){flex:none}:host([scale=s]) .container{gap:0.25rem}:host([scale=l]) .container{gap:0.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}";export{p as calcite_chip_group}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,h as i,F as e,a as n}from"./p-
|
|
6
|
+
import{r as t,h as i,F as e,a as n}from"./p-845e563d.js";import{c as a,d as o}from"./p-240f563e.js";import{g as c}from"./p-1d088751.js";import{c as r,d as s,u as l}from"./p-b9028e7d.js";import"./p-10eb8f57.js";import"./p-b4000dba.js";import"./p-af5bd8e2.js";const d="content-start",m="content-end",h=class{constructor(i){t(this,i),this.active=!1,this.description=void 0,this.disabled=!1,this.embed=!1,this.focused=!1,this.heading=void 0,this.hidden=!1,this.href=void 0,this.icon=void 0,this.iconFlipRtl=!1}connectedCallback(){a(this),r(this)}disconnectedCallback(){o(this),s(this)}componentDidRender(){l(this)}renderTile(){const{icon:t,el:e,heading:n,description:a,iconFlipRtl:o}=this,r=n&&t&&!a;return i("div",{class:{container:!0,"large-visual":r}},t&&i("div",{class:"icon"},i("calcite-icon",{flipRtl:o,icon:t,scale:"l",style:r?{height:"64px",width:"64px"}:void 0})),i("div",{class:"content-container"},c(e,d)?i("div",{class:"content-slot-container"},i("slot",{name:d})):null,i("div",{class:"content"},n&&i("div",{class:"heading"},n),a&&i("div",{class:"description"},a)),c(e,m)?i("div",{class:"content-slot-container"},i("slot",{name:m})):null))}render(){return i(e,null,this.href?i("calcite-link",{disabled:this.disabled,href:this.href},this.renderTile()):this.renderTile())}get el(){return n(this)}};h.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{box-sizing:border-box;display:inline-block;-webkit-user-select:none;user-select:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .container{pointer-events:none;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:0.5rem}:host .content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;gap:0.5rem;inline-size:10%}:host .content-container{display:flex;inline-size:100%;flex:1 1 auto;align-items:stretch;padding:0px;color:var(--calcite-ui-text-2);outline-color:transparent}:host .content-slot-container{display:flex;align-items:center;background-color:var(--calcite-ui-foreground-1)}:host .content-slot-container:first-child{padding-inline:0 0.75rem}:host .content-slot-container:last-child{padding-inline:0.75rem 0}:host .heading{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .large-visual{align-items:center;text-align:center;min-block-size:12rem}:host .large-visual .icon{display:flex;justify-content:center;align-self:flex-end}:host .large-visual .content-container{align-self:center}:host .description{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([href]) .heading,:host([href]:hover) .heading{text-decoration-line:underline;color:var(--calcite-ui-text-link)}:host(:not([embed])){padding:0.75rem;box-shadow:0 0 0 1px var(--calcite-ui-border-2)}:host(:not([embed])[href]:hover){cursor:pointer;box-shadow:0 0 0 2px var(--calcite-ui-brand)}:host(:not([embed])[href]:active){box-shadow:0 0 0 3px var(--calcite-ui-brand)}:host([icon][heading]:not([description]):not([embed])){padding:0px}:host([icon][heading]:not([description])) .icon{display:flex;justify-content:center}:host([icon][heading]:not([description])) .large-visual{text-align:center}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host(:hover) .heading,:host([active]) .heading{color:var(--calcite-ui-text-1)}:host(:hover) .description,:host([active]) .description{color:var(--calcite-ui-text-2)}";export{h as calcite_tile}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
|
-
import{q as n,c as t}from"./p-
|
|
6
|
+
import{q as n,c as t}from"./p-1d088751.js";import{h as e}from"./p-845e563d.js";!function(n){function t(n,t,e){throw new n("Failed to execute 'requestSubmit' on 'HTMLFormElement': "+t+".",e)}"function"!=typeof n.requestSubmit&&(n.requestSubmit=function(n){n?(function(n,e){n instanceof HTMLElement||t(TypeError,"parameter 1 is not of type 'HTMLElement'"),"submit"==n.type||t(TypeError,"The specified element is not a submit button"),n.form==e||t(DOMException,"The specified element is not owned by this form element","NotFoundError")}(n,this),n.click()):((n=document.createElement("input")).type="submit",n.hidden=!0,this.appendChild(n),n.click(),this.removeChild(n))})}(HTMLFormElement.prototype);const o="hidden-form-input";function r(n){return"checked"in n}const i=new WeakMap,s=new WeakSet;function c(n){const{formEl:t}=n;return!!t&&(t.requestSubmit(),!0)}function u(n){n.formEl?.reset()}function f(n){const{el:e,value:o}=n,c=m(n);if(!c||function(n,e){if(t(e.parentElement,"[form]"))return!0;const o="calciteInternalFormComponentRegister";let r=!1;return n.addEventListener(o,(n=>{r=n.composedPath().some((n=>s.has(n))),n.stopPropagation()}),{once:!0}),e.dispatchEvent(new CustomEvent(o,{bubbles:!0,composed:!0})),r}(c,e))return;n.formEl=c,n.defaultValue=o,r(n)&&(n.defaultChecked=n.checked);const u=(n.onFormReset||l).bind(n);c.addEventListener("reset",u),i.set(n.el,u),s.add(e)}function m(e){const{el:o,form:r}=e;return r?n(o,{id:r}):t(o,"form")}function l(){r(this)?this.checked=this.defaultChecked:this.value=this.defaultValue}function a(n){const{el:t,formEl:e}=n;if(!e)return;const o=i.get(t);e.removeEventListener("reset",o),i.delete(t),n.formEl=null,s.delete(t)}function p(n,t){n.defaultValue=t}const d=n=>{n.target.dispatchEvent(new CustomEvent("calciteInternalHiddenInputChange",{bubbles:!0}))},h=n=>n.removeEventListener("change",d);function b(n,t,e){const{defaultValue:o,disabled:i,form:s,name:c,required:u}=n;t.defaultValue=o,t.disabled=i,t.name=c,t.required=u,t.tabIndex=-1,s?t.setAttribute("form",s):t.removeAttribute("form"),r(n)?(t.checked=n.checked,t.defaultChecked=n.defaultChecked,t.value=n.checked?e||"on":""):t.value=e||"",n.syncHiddenFormInput?.(t)}const E=({component:n})=>(function(n){const{el:t,formEl:e,name:r,value:i}=n,{ownerDocument:s}=t,c=t.querySelectorAll(`input[slot="${o}"]`);if(!e||!r)return void c.forEach((n=>{h(n),n.remove()}));const u=Array.isArray(i)?i:[i],f=[],m=new Set;let l;c.forEach((t=>{const e=u.find((n=>n==t.value));null!=e?(m.add(e),b(n,t,e)):f.push(t)})),u.forEach((t=>{if(m.has(t))return;let e=f.pop();e||(e=s.createElement("input"),e.slot=o),l||(l=s.createDocumentFragment()),l.append(e),e.addEventListener("change",d),b(n,e,t)})),l&&t.append(l),f.forEach((n=>{h(n),n.remove()}))}(n),e("slot",{name:o}));export{E as H,p as a,f as c,a as d,m as f,u as r,c as s}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
6
|
const n=/^[0-9A-F]$/i,r=/^#[0-9A-F]{3}$/i,t=/^#[0-9A-F]{6}$/i,e=/^#[0-9A-F]{4}$/i,s=/^#[0-9A-F]{8}$/i,u=n=>Number((100*n).toFixed()),a=n=>Number((n/100).toFixed(2));function i(n,r=!1){return c(n,r)||o(n,r)}function f(n,r,t){return!!n&&n.length===r&&t.test(n)}function c(n,t=!1){return f(n,t?5:4,t?e:r)}function o(n,r=!1){return f(n,r?9:7,r?s:t)}function $(n,r=!1,t=!1){return(n=n.toLowerCase()).startsWith("#")||(n=`#${n}`),c(n,r)?h(S(n,r)):r&&t&&i(n,!1)?h(S(`${n}${c(n,!1)?"f":"ff"}`,!0)):n}function l(n,r=!1){return r?n.hexa():n.hex()}function h(n){const{r,g:t,b:e}=n;return`#${b(r)}${b(t)}${b(e)}${"a"in n?b(255*n.a):""}`.toLowerCase()}function b(n){return n.toString(16).padStart(2,"0")}function g(n){const r={...n,a:n.alpha??1};return delete r.alpha,r}function p(n){const r={...n,alpha:n.a??1};return delete r.a,r}function S(n,r=!1){if(!i(n,r))return null;let t,e,s,u;if(3===(n=n.replace("#","")).length||4===n.length){const[r,a,i,f]=n.split("");t=parseInt(`${r}${r}`,16),e=parseInt(`${a}${a}`,16),s=parseInt(`${i}${i}`,16),u=parseInt(`${f}${f}`,16)/255}else t=parseInt(n.slice(0,2),16),e=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16),u=parseInt(n.slice(6,8),16)/255;return isNaN(u)?{r:t,g:e,b:s}:{r:t,g:e,b:s,a:u}}const A={HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"},I="rgb",C="rgba",F="hsl",H="hsla",N="hsv",_="hsva";function d(n){if("string"==typeof n){if(n.startsWith("#")){const{length:r}=n;if(4===r||7===r)return A.HEX;if(5===r||9===r)return A.HEXA}if(n.startsWith("rgba("))return A.RGBA_CSS;if(n.startsWith("rgb("))return A.RGB_CSS;if(n.startsWith("hsl("))return A.HSL_CSS;if(n.startsWith("hsla("))return A.HSLA_CSS}if("object"==typeof n){if(v(n,"r","g","b"))return v(n,"a")?C:I;if(v(n,"h","s","l"))return v(n,"a")?H:F;if(v(n,"h","s","v"))return v(n,"a")?_:N}return null}function v(n,...r){return r.every((r=>r&&n&&`${r}`in n))}function x(n,r){return n?.rgb().array().toString()===r?.rgb().array().toString()}function j(n){return n===A.HEXA||n===A.RGBA_CSS||n===A.HSLA_CSS||n===C||n===H||n===_}function m(n){return n===A.HEX?A.HEXA:n===A.RGB_CSS?A.RGBA_CSS:n===A.HSL_CSS?A.HSLA_CSS:n===I?C:n===F?H:n===N?_:n}function y(n){return n===A.HEXA?A.HEX:n===A.RGBA_CSS?A.RGB_CSS:n===A.HSLA_CSS?A.HSL_CSS:n===C?I:n===H?F:n===_?N:n}export{A as C,l as a,u as b,j as c,x as d,g as e,m as f,p as g,S as h,i,o as j,n as k,$ as n,a as o,d as p,h as r,y as t}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
6
|
const n={menuActions:"menu-actions",menuTooltip:"menu-tooltip"},o={menu:"ellipsis"};export{o as I,n as S}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
|
-
import{b as t}from"./p-ef15b74e.js";import{d as n}from"./p-32fa7c12.js";function e(t){return t.split("-")[1]}function o(t){return"y"===t?"height":"width"}function r(t){return t.split("-")[0]}function i(t){return["top","bottom"].includes(r(t))?"x":"y"}function a(t,n,a){let{reference:l,floating:c}=t;const s=l.x+l.width/2-c.width/2,f=l.y+l.height/2-c.height/2,u=i(n),d=o(u),m=l[d]/2-c[d]/2,p="x"===u;let y;switch(r(n)){case"top":y={x:s,y:l.y-c.height};break;case"bottom":y={x:s,y:l.y+l.height};break;case"right":y={x:l.x+l.width,y:f};break;case"left":y={x:l.x-c.width,y:f};break;default:y={x:l.x,y:l.y}}switch(e(n)){case"start":y[u]-=m*(a&&p?-1:1);break;case"end":y[u]+=m*(a&&p?-1:1)}return y}function l(t,n){return"function"==typeof t?t(n):t}function c(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function s(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function f(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:a,elements:f,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:y=!1,padding:g=0}=l(n,t),h=c(g),x=f[y?"floating"===p?"reference":"floating":p],w=s(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(x)))||e?x:x.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(f.floating)),boundary:d,rootBoundary:m,strategy:u})),b="floating"===p?{...a.floating,x:o,y:r}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(f.floating)),A=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},S=s(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:u}):b);return{top:(w.top-S.top+h.top)/A.y,bottom:(S.bottom-w.bottom+h.bottom)/A.y,left:(w.left-S.left+h.left)/A.x,right:(S.right-w.right+h.right)/A.x}}const u=Math.min,d=Math.max;function m(t,n,e){return d(t,u(n,e))}const p=["top","right","bottom","left"],y=p.reduce(((t,n)=>t.concat(n,n+"-start",n+"-end")),[]),g={left:"right",right:"left",bottom:"top",top:"bottom"};function h(t){return t.replace(/left|right|bottom|top/g,(t=>g[t]))}function x(t,n,r){void 0===r&&(r=!1);const a=e(t),l=i(t),c=o(l);let s="x"===l?a===(r?"end":"start")?"right":"left":"start"===a?"bottom":"top";return n.reference[c]>n.floating[c]&&(s=h(s)),{main:s,cross:h(s)}}const w={start:"end",end:"start"};function b(t){return t.replace(/start|end/g,(t=>w[t]))}const v=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var o;const{placement:i,middlewareData:a,rects:c,initialPlacement:s,platform:u,elements:d}=n,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...A}=l(t,n),S=r(i),k=r(s)===s,P=await(null==u.isRTL?void 0:u.isRTL(d.floating)),D=y||(k||!v?[h(s)]:function(t){const n=h(t);return[b(t),n,b(n)]}(s));y||"none"===w||D.push(...function(t,n,o,i){const a=e(t);let l=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:a;default:return[]}}(r(t),"start"===o,i);return a&&(l=l.map((t=>t+"-"+a)),n&&(l=l.concat(l.map(b)))),l}(s,v,w,P));const R=[s,...D],M=await f(n,A),O=[];let E=(null==(o=a.flip)?void 0:o.overflows)||[];if(m&&O.push(M[S]),p){const{main:t,cross:n}=x(i,c,P);O.push(M[t],M[n])}if(E=[...E,{placement:i,overflows:O}],!O.every((t=>t<=0))){var F,C;const t=((null==(F=a.flip)?void 0:F.index)||0)+1,n=R[t];if(n)return{data:{index:t,overflows:E},reset:{placement:n}};let e=null==(C=E.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:C.placement;if(!e)switch(g){case"bestFit":{var T;const t=null==(T=E.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:T[0];t&&(e=t);break}case"initialPlacement":e=s}if(i!==e)return{reset:{placement:e}}}return{}}}};function A(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function S(t){return p.some((n=>t[n]>=0))}const k=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{rects:e}=n,{strategy:o="referenceHidden",...r}=l(t,n);switch(o){case"referenceHidden":{const t=A(await f(n,{...r,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:S(t)}}}case"escaped":{const t=A(await f(n,{...r,altBoundary:!0}),e.floating);return{data:{escapedOffsets:t,escaped:S(t)}}}default:return{}}}}},P=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){const{x:o,y:a}=n,c=await async function(t,n){const{placement:o,platform:a,elements:c}=t,s=await(null==a.isRTL?void 0:a.isRTL(c.floating)),f=r(o),u=e(o),d="x"===i(o),m=["left","top"].includes(f)?-1:1,p=s&&d?-1:1,y=l(n,t);let{mainAxis:g,crossAxis:h,alignmentAxis:x}="number"==typeof y?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return u&&"number"==typeof x&&(h="end"===u?-1*x:x),d?{x:h*p,y:g*m}:{x:g*m,y:h*p}}(n,t);return{x:o+c.x,y:a+c.y,data:c}}}};function D(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function R(t){return D(t).getComputedStyle(t)}function M(t){return t instanceof D(t).Node}function O(t){return M(t)?(t.nodeName||"").toLowerCase():"#document"}function E(t){return t instanceof D(t).HTMLElement}function F(t){return"undefined"!=typeof ShadowRoot&&(t instanceof D(t).ShadowRoot||t instanceof ShadowRoot)}function C(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=R(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function T(t){return["table","td","th"].includes(O(t))}function $(t){const n=z(),e=R(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function z(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function B(t){return["html","body","#document"].includes(O(t))}const j=Math.min,L=Math.max,H=Math.round,I=Math.floor,W=t=>({x:t,y:t});function q(t){const n=R(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const r=E(t),i=r?t.offsetWidth:e,a=r?t.offsetHeight:o,l=H(e)!==i||H(o)!==a;return l&&(e=i,o=a),{width:e,height:o,$:l}}function N(t){return t instanceof D(t).Element}function Y(t){return N(t)?t:t.contextElement}function V(t){const n=Y(t);if(!E(n))return W(1);const e=n.getBoundingClientRect(),{width:o,height:r,$:i}=q(n);let a=(i?H(e.width):e.width)/o,l=(i?H(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const X=W(0);function _(t){const n=D(t);return z()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:X}function G(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),i=Y(t);let a=W(1);n&&(o?N(o)&&(a=V(o)):a=V(t));const l=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==D(t))&&n}(i,e,o)?_(i):W(0);let c=(r.left+l.x)/a.x,f=(r.top+l.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const t=D(i),n=o&&N(o)?D(o):o;let e=t.frameElement;for(;e&&o&&n!==t;){const t=V(e),n=e.getBoundingClientRect(),o=getComputedStyle(e),r=n.left+(e.clientLeft+parseFloat(o.paddingLeft))*t.x,i=n.top+(e.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,f*=t.y,u*=t.x,d*=t.y,c+=r,f+=i,e=D(e).frameElement}}return s({width:u,height:d,x:c,y:f})}function J(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function K(t){return((M(t)?t.ownerDocument:t.document)||window.document).documentElement}function Q(t){return G(K(t)).left+J(t).scrollLeft}function U(t){if("html"===O(t))return t;const n=t.assignedSlot||t.parentNode||F(t)&&t.host||K(t);return F(n)?n.host:n}function Z(t){const n=U(t);return B(n)?t.ownerDocument?t.ownerDocument.body:t.body:E(n)&&C(n)?n:Z(n)}function tt(t,n){var e;void 0===n&&(n=[]);const o=Z(t),r=o===(null==(e=t.ownerDocument)?void 0:e.body),i=D(o);return r?n.concat(i,i.visualViewport||[],C(o)?o:[]):n.concat(o,tt(o))}function nt(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=D(t),o=K(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const t=z();(!t||t&&"fixed"===n)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}(t,e);else if("document"===n)o=function(t){const n=K(t),e=J(t),o=t.ownerDocument.body,r=L(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=L(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let a=-e.scrollLeft+Q(t);const l=-e.scrollTop;return"rtl"===R(o).direction&&(a+=L(n.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(K(t));else if(N(n))o=function(t,n){const e=G(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=E(t)?V(t):W(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e=_(t);o={...n,x:n.x-e.x,y:n.y-e.y}}return s(o)}function et(t,n){const e=U(t);return!(e===n||!N(e)||B(e))&&("fixed"===R(e).position||et(e,n))}function ot(t,n,e){const o=E(n),r=K(n),i="fixed"===e,a=G(t,!0,i,n);let l={scrollLeft:0,scrollTop:0};const c=W(0);if(o||!o&&!i)if(("body"!==O(n)||C(r))&&(l=J(n)),E(n)){const t=G(n,!0,i,n);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}else r&&(c.x=Q(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function rt(t,n){return E(t)&&"fixed"!==R(t).position?n?n(t):t.offsetParent:null}function it(t,n){const e=D(t);if(!E(t))return e;let o=rt(t,n);for(;o&&T(o)&&"static"===R(o).position;)o=rt(o,n);return o&&("html"===O(o)||"body"===O(o)&&"static"===R(o).position&&!$(o))?e:o||function(t){let n=U(t);for(;E(n)&&!B(n);){if($(n))return n;n=U(n)}return null}(t)||e}const at={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:e,strategy:o}=t;const r=E(e),i=K(e);if(e===i)return n;let a={scrollLeft:0,scrollTop:0},l=W(1);const c=W(0);if((r||!r&&"fixed"!==o)&&(("body"!==O(e)||C(i))&&(a=J(e)),E(e))){const t=G(e);l=V(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+c.x,y:n.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:K,getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===e?function(t,n){const e=n.get(t);if(e)return e;let o=tt(t).filter((t=>N(t)&&"body"!==O(t))),r=null;const i="fixed"===R(t).position;let a=i?U(t):t;for(;N(a)&&!B(a);){const n=R(a),e=$(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||C(a)&&!e&&et(t,a))?o=o.filter((t=>t!==a)):r=n,a=U(a)}return n.set(t,o),o}(n,this._c):[].concat(e),o],a=i.reduce(((t,e)=>{const o=nt(n,e,r);return t.top=L(o.top,t.top),t.right=j(o.right,t.right),t.bottom=j(o.bottom,t.bottom),t.left=L(o.left,t.left),t}),nt(n,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:it,getElementRects:async function(t){let{reference:n,floating:e,strategy:o}=t;const r=this.getOffsetParent||it,i=this.getDimensions;return{reference:ot(n,await r(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return q(t)},getScale:V,isElement:N,isRTL:function(t){return"rtl"===getComputedStyle(t).direction}};function lt(t){return function(t){for(let n=t;n;n=ct(n))if(n instanceof Element&&"none"===getComputedStyle(n).display)return null;for(let n=ct(t);n;n=ct(n)){if(!(n instanceof Element))continue;const t=getComputedStyle(n);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return n;if("BODY"===n.tagName)return n}}return null}(t)}function ct(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}!function(){{const t=at.getOffsetParent;at.getOffsetParent=n=>t(n,lt)}}();const st=async(t,{referenceEl:n,floatingEl:e,overlayPositioning:o="absolute",placement:r,flipDisabled:i,flipPlacements:l,offsetDistance:c,offsetSkidding:s,arrowEl:f,type:u})=>{if(!n||!e)return null;const{x:d,y:m,placement:p,strategy:y,middlewareData:g}=await((t,n,e)=>{const o=new Map,r={platform:at,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=e,c=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(n));let f=await l.getElementRects({reference:t,floating:n,strategy:r}),{x:u,y:d}=a(f,o,s),m=o,p={},y=0;for(let e=0;e<c.length;e++){const{name:i,fn:g}=c[e],{x:h,y:x,data:w,reset:b}=await g({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:f,platform:l,elements:{reference:t,floating:n}});u=null!=h?h:u,d=null!=x?x:d,p={...p,[i]:{...p[i],...w}},b&&y<=50&&(y++,"object"==typeof b&&(b.placement&&(m=b.placement),b.rects&&(f=!0===b.rects?await l.getElementRects({reference:t,floating:n,strategy:r}):b.rects),({x:u,y:d}=a(f,m,s))),e=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}})(t,n,{...r,platform:i})})(n,e,{strategy:o,placement:"auto"===r||"auto-start"===r||"auto-end"===r?void 0:gt(e,r),middleware:pt({placement:r,flipDisabled:i,flipPlacements:l,offsetDistance:c,offsetSkidding:s,arrowEl:f,type:u})});if(f&&g.arrow){const{x:n,y:e}=g.arrow,o=p.split("-")[0],r=null!=n?"left":"top",i=xt[o],a={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout="left"===o||"right"===o?"horizontal":"vertical"),Object.assign(f.style,{...a,[r]:`${"left"==r?n:e}px`,[o]:"100%",transform:i})}const h=g.hide?.referenceHidden,x=h?"hidden":null,w=x?"none":null;e.setAttribute(ft,p);const b=`translate(${Math.round(d)}px,${Math.round(m)}px)`;Object.assign(e.style,{visibility:x,pointerEvents:w,position:y,top:"0",left:"0",transform:b})},ft="data-placement",ut=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"],dt="bottom-start",mt={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"};function pt({placement:t,flipDisabled:n,flipPlacements:a,offsetDistance:s,offsetSkidding:d,arrowEl:p,type:g}){const h=[(void 0===w&&(w={}),{name:"shift",options:w,async fn(t){const{x:n,y:e,placement:o}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:s={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...u}=l(w,t),d={x:n,y:e},p=await f(t,u),y=i(r(o)),g="x"===y?"y":"x";let h=d[y],x=d[g];a&&(h=m(h+p["y"===y?"top":"left"],h,h-p["y"===y?"bottom":"right"])),c&&(x=m(x+p["y"===g?"top":"left"],x,x-p["y"===g?"bottom":"right"]));const b=s.fn({...t,[y]:h,[g]:x});return{...b,data:{x:b.x-n,y:b.y-e}}}}),k()];var w;if("menu"===g)return[...h,v({fallbackPlacements:a||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if("popover"===g||"tooltip"===g){const g=[...h,P({mainAxis:"number"==typeof s?s:0,crossAxis:"number"==typeof d?d:0})];return"auto"===t||"auto-start"===t||"auto-end"===t?g.push(function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(n){var o,i,a;const{rects:c,middlewareData:s,placement:u,platform:d,elements:m}=n,{crossAxis:p=!1,alignment:g,allowedPlacements:h=y,autoAlignment:w=!0,...v}=l(t,n),A=void 0!==g||h===y?function(t,n,o){return(t?[...o.filter((n=>e(n)===t)),...o.filter((n=>e(n)!==t))]:o.filter((t=>r(t)===t))).filter((o=>!t||e(o)===t||!!n&&b(o)!==o))}(g||null,w,h):h,S=await f(n,v),k=(null==(o=s.autoPlacement)?void 0:o.index)||0,P=A[k];if(null==P)return{};const{main:D,cross:R}=x(P,c,await(null==d.isRTL?void 0:d.isRTL(m.floating)));if(u!==P)return{reset:{placement:A[0]}};const M=[S[r(P)],S[D],S[R]],O=[...(null==(i=s.autoPlacement)?void 0:i.overflows)||[],{placement:P,overflows:M}],E=A[k+1];if(E)return{data:{index:k+1,overflows:O},reset:{placement:E}};const F=O.map((t=>{const n=e(t.placement);return[t.placement,n&&p?t.overflows.slice(0,2).reduce(((t,n)=>t+n),0):t.overflows[0],t.overflows]})).sort(((t,n)=>t[1]-n[1])),C=(null==(a=F.filter((t=>t[2].slice(0,e(t[0])?2:3).every((t=>t<=0))))[0])?void 0:a[0])||F[0][0];return C!==u?{data:{index:k+1,overflows:O},reset:{placement:C}}:{}}}}({alignment:"auto-start"===t?"start":"auto-end"===t?"end":null})):n||g.push(v(a?{fallbackPlacements:a}:{})),p&&g.push((t=>({name:"arrow",options:t,async fn(n){const{x:r,y:a,placement:s,rects:f,platform:d,elements:p}=n,{element:y,padding:g=0}=l(t,n)||{};if(null==y)return{};const h=c(g),x={x:r,y:a},w=i(s),b=o(w),v=await d.getDimensions(y),A="y"===w,S=A?"top":"left",k=A?"bottom":"right",P=A?"clientHeight":"clientWidth",D=f.reference[b]+f.reference[w]-x[w]-f.floating[b],R=x[w]-f.reference[w],M=await(null==d.getOffsetParent?void 0:d.getOffsetParent(y));let O=M?M[P]:0;O&&await(null==d.isElement?void 0:d.isElement(M))||(O=p.floating[P]||f.floating[b]);const E=D/2-R/2,F=O/2-v[b]/2-1,C=u(h[S],F),T=u(h[k],F),$=C,z=O-v[b]-T,B=O/2-v[b]/2+E,j=m($,B,z),L=null!=e(s)&&B!=j&&f.reference[b]/2-(B<$?C:T)-v[b]/2<0?B<$?$-B:z-B:0;return{[w]:x[w]-L,data:{[w]:j,centerOffset:B-j+L}}}}))({element:p})),g}return[]}function yt(t,n){const e=t.filter((t=>ut.includes(t)));return e.length!==t.length&&console.warn(`${n.tagName}: Invalid value found in: flipPlacements. Try any of these: ${ut.map((t=>`"${t}"`)).join(", ").trim()}`,{el:n}),e}function gt(n,e){const o=["left","right"];return"rtl"===t(n)&&o.reverse(),e.replace(/leading/gi,o[0]).replace(/trailing/gi,o[1])}async function ht(t,e,o=!1){if(!t.open)return;const r=o?function(t){let e=bt.get(t);return e||(e=n(st,100,{leading:!0,maxWait:100}),bt.set(t,e),e)}(t):st;return r(t,e)}const xt={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},wt=new WeakMap,bt=new WeakMap;function vt(t,n,e){e&&n&&(At(t,n,e),Object.assign(e.style,{visibility:"hidden",pointerEvents:"none",position:t.overlayPositioning,top:"0",left:"0"}),wt.set(t,function(t,n,e,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,s=Y(t),f=r||i?[...s?tt(s):[],...tt(n)]:[];f.forEach((t=>{r&&t.addEventListener("scroll",e,{passive:!0}),i&&t.addEventListener("resize",e)}));const u=s&&l?function(t,n){let e,o=null;const r=K(t);function i(){clearTimeout(e),o&&o.disconnect(),o=null}return function a(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),i();const{left:s,top:f,width:u,height:d}=t.getBoundingClientRect();if(l||n(),!u||!d)return;const m={rootMargin:-I(f)+"px "+-I(r.clientWidth-(s+u))+"px "+-I(r.clientHeight-(f+d))+"px "+-I(s)+"px",threshold:L(0,j(1,c))||1};let p=!0;function y(t){const n=t[0].intersectionRatio;if(n!==c){if(!p)return a();n?a(!1,n):e=setTimeout((()=>{a(!1,1e-7)}),100)}p=!1}try{o=new IntersectionObserver(y,{...m,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(y,m)}o.observe(t)}(!0),i}(s,e):null;let d,m=-1,p=null;a&&(p=new ResizeObserver((t=>{let[o]=t;o&&o.target===s&&p&&(p.unobserve(n),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{p&&p.observe(n)}))),e()})),s&&!c&&p.observe(s),p.observe(n));let y=c?G(t):null;return c&&function n(){const o=G(t);!y||o.x===y.x&&o.y===y.y&&o.width===y.width&&o.height===y.height||e(),y=o,d=requestAnimationFrame(n)}(),e(),()=>{f.forEach((t=>{r&&t.removeEventListener("scroll",e),i&&t.removeEventListener("resize",e)})),u&&u(),p&&p.disconnect(),p=null,c&&cancelAnimationFrame(d)}}(n,e,(()=>t.reposition()))))}function At(t,n,e){e&&n&&(wt.get(t)?.(),wt.delete(t),bt.get(t)?.cancel(),bt.delete(t))}const St=Math.ceil(Math.hypot(4,4));export{mt as F,At as a,St as b,vt as c,dt as d,yt as f,ht as r}
|
|
6
|
+
import{b as t}from"./p-1d088751.js";import{d as n}from"./p-f4f04a9c.js";function e(t){return t.split("-")[1]}function o(t){return"y"===t?"height":"width"}function r(t){return t.split("-")[0]}function i(t){return["top","bottom"].includes(r(t))?"x":"y"}function a(t,n,a){let{reference:l,floating:c}=t;const s=l.x+l.width/2-c.width/2,f=l.y+l.height/2-c.height/2,u=i(n),d=o(u),m=l[d]/2-c[d]/2,p="x"===u;let y;switch(r(n)){case"top":y={x:s,y:l.y-c.height};break;case"bottom":y={x:s,y:l.y+l.height};break;case"right":y={x:l.x+l.width,y:f};break;case"left":y={x:l.x-c.width,y:f};break;default:y={x:l.x,y:l.y}}switch(e(n)){case"start":y[u]-=m*(a&&p?-1:1);break;case"end":y[u]+=m*(a&&p?-1:1)}return y}function l(t,n){return"function"==typeof t?t(n):t}function c(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function s(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function f(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:a,elements:f,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:y=!1,padding:g=0}=l(n,t),h=c(g),x=f[y?"floating"===p?"reference":"floating":p],w=s(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(x)))||e?x:x.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(f.floating)),boundary:d,rootBoundary:m,strategy:u})),b="floating"===p?{...a.floating,x:o,y:r}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(f.floating)),A=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},S=s(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:u}):b);return{top:(w.top-S.top+h.top)/A.y,bottom:(S.bottom-w.bottom+h.bottom)/A.y,left:(w.left-S.left+h.left)/A.x,right:(S.right-w.right+h.right)/A.x}}const u=Math.min,d=Math.max;function m(t,n,e){return d(t,u(n,e))}const p=["top","right","bottom","left"],y=p.reduce(((t,n)=>t.concat(n,n+"-start",n+"-end")),[]),g={left:"right",right:"left",bottom:"top",top:"bottom"};function h(t){return t.replace(/left|right|bottom|top/g,(t=>g[t]))}function x(t,n,r){void 0===r&&(r=!1);const a=e(t),l=i(t),c=o(l);let s="x"===l?a===(r?"end":"start")?"right":"left":"start"===a?"bottom":"top";return n.reference[c]>n.floating[c]&&(s=h(s)),{main:s,cross:h(s)}}const w={start:"end",end:"start"};function b(t){return t.replace(/start|end/g,(t=>w[t]))}const v=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var o;const{placement:i,middlewareData:a,rects:c,initialPlacement:s,platform:u,elements:d}=n,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...A}=l(t,n),S=r(i),k=r(s)===s,P=await(null==u.isRTL?void 0:u.isRTL(d.floating)),D=y||(k||!v?[h(s)]:function(t){const n=h(t);return[b(t),n,b(n)]}(s));y||"none"===w||D.push(...function(t,n,o,i){const a=e(t);let l=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:a;default:return[]}}(r(t),"start"===o,i);return a&&(l=l.map((t=>t+"-"+a)),n&&(l=l.concat(l.map(b)))),l}(s,v,w,P));const R=[s,...D],M=await f(n,A),O=[];let E=(null==(o=a.flip)?void 0:o.overflows)||[];if(m&&O.push(M[S]),p){const{main:t,cross:n}=x(i,c,P);O.push(M[t],M[n])}if(E=[...E,{placement:i,overflows:O}],!O.every((t=>t<=0))){var F,C;const t=((null==(F=a.flip)?void 0:F.index)||0)+1,n=R[t];if(n)return{data:{index:t,overflows:E},reset:{placement:n}};let e=null==(C=E.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:C.placement;if(!e)switch(g){case"bestFit":{var T;const t=null==(T=E.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:T[0];t&&(e=t);break}case"initialPlacement":e=s}if(i!==e)return{reset:{placement:e}}}return{}}}};function A(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function S(t){return p.some((n=>t[n]>=0))}const k=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{rects:e}=n,{strategy:o="referenceHidden",...r}=l(t,n);switch(o){case"referenceHidden":{const t=A(await f(n,{...r,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:S(t)}}}case"escaped":{const t=A(await f(n,{...r,altBoundary:!0}),e.floating);return{data:{escapedOffsets:t,escaped:S(t)}}}default:return{}}}}},P=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){const{x:o,y:a}=n,c=await async function(t,n){const{placement:o,platform:a,elements:c}=t,s=await(null==a.isRTL?void 0:a.isRTL(c.floating)),f=r(o),u=e(o),d="x"===i(o),m=["left","top"].includes(f)?-1:1,p=s&&d?-1:1,y=l(n,t);let{mainAxis:g,crossAxis:h,alignmentAxis:x}="number"==typeof y?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return u&&"number"==typeof x&&(h="end"===u?-1*x:x),d?{x:h*p,y:g*m}:{x:g*m,y:h*p}}(n,t);return{x:o+c.x,y:a+c.y,data:c}}}};function D(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function R(t){return D(t).getComputedStyle(t)}function M(t){return t instanceof D(t).Node}function O(t){return M(t)?(t.nodeName||"").toLowerCase():"#document"}function E(t){return t instanceof D(t).HTMLElement}function F(t){return"undefined"!=typeof ShadowRoot&&(t instanceof D(t).ShadowRoot||t instanceof ShadowRoot)}function C(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=R(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function T(t){return["table","td","th"].includes(O(t))}function $(t){const n=z(),e=R(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function z(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function B(t){return["html","body","#document"].includes(O(t))}const j=Math.min,L=Math.max,H=Math.round,I=Math.floor,W=t=>({x:t,y:t});function q(t){const n=R(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const r=E(t),i=r?t.offsetWidth:e,a=r?t.offsetHeight:o,l=H(e)!==i||H(o)!==a;return l&&(e=i,o=a),{width:e,height:o,$:l}}function N(t){return t instanceof D(t).Element}function Y(t){return N(t)?t:t.contextElement}function V(t){const n=Y(t);if(!E(n))return W(1);const e=n.getBoundingClientRect(),{width:o,height:r,$:i}=q(n);let a=(i?H(e.width):e.width)/o,l=(i?H(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const X=W(0);function _(t){const n=D(t);return z()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:X}function G(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),i=Y(t);let a=W(1);n&&(o?N(o)&&(a=V(o)):a=V(t));const l=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==D(t))&&n}(i,e,o)?_(i):W(0);let c=(r.left+l.x)/a.x,f=(r.top+l.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const t=D(i),n=o&&N(o)?D(o):o;let e=t.frameElement;for(;e&&o&&n!==t;){const t=V(e),n=e.getBoundingClientRect(),o=getComputedStyle(e),r=n.left+(e.clientLeft+parseFloat(o.paddingLeft))*t.x,i=n.top+(e.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,f*=t.y,u*=t.x,d*=t.y,c+=r,f+=i,e=D(e).frameElement}}return s({width:u,height:d,x:c,y:f})}function J(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function K(t){return((M(t)?t.ownerDocument:t.document)||window.document).documentElement}function Q(t){return G(K(t)).left+J(t).scrollLeft}function U(t){if("html"===O(t))return t;const n=t.assignedSlot||t.parentNode||F(t)&&t.host||K(t);return F(n)?n.host:n}function Z(t){const n=U(t);return B(n)?t.ownerDocument?t.ownerDocument.body:t.body:E(n)&&C(n)?n:Z(n)}function tt(t,n){var e;void 0===n&&(n=[]);const o=Z(t),r=o===(null==(e=t.ownerDocument)?void 0:e.body),i=D(o);return r?n.concat(i,i.visualViewport||[],C(o)?o:[]):n.concat(o,tt(o))}function nt(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=D(t),o=K(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const t=z();(!t||t&&"fixed"===n)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}(t,e);else if("document"===n)o=function(t){const n=K(t),e=J(t),o=t.ownerDocument.body,r=L(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=L(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let a=-e.scrollLeft+Q(t);const l=-e.scrollTop;return"rtl"===R(o).direction&&(a+=L(n.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(K(t));else if(N(n))o=function(t,n){const e=G(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=E(t)?V(t):W(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e=_(t);o={...n,x:n.x-e.x,y:n.y-e.y}}return s(o)}function et(t,n){const e=U(t);return!(e===n||!N(e)||B(e))&&("fixed"===R(e).position||et(e,n))}function ot(t,n,e){const o=E(n),r=K(n),i="fixed"===e,a=G(t,!0,i,n);let l={scrollLeft:0,scrollTop:0};const c=W(0);if(o||!o&&!i)if(("body"!==O(n)||C(r))&&(l=J(n)),E(n)){const t=G(n,!0,i,n);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}else r&&(c.x=Q(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function rt(t,n){return E(t)&&"fixed"!==R(t).position?n?n(t):t.offsetParent:null}function it(t,n){const e=D(t);if(!E(t))return e;let o=rt(t,n);for(;o&&T(o)&&"static"===R(o).position;)o=rt(o,n);return o&&("html"===O(o)||"body"===O(o)&&"static"===R(o).position&&!$(o))?e:o||function(t){let n=U(t);for(;E(n)&&!B(n);){if($(n))return n;n=U(n)}return null}(t)||e}const at={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:e,strategy:o}=t;const r=E(e),i=K(e);if(e===i)return n;let a={scrollLeft:0,scrollTop:0},l=W(1);const c=W(0);if((r||!r&&"fixed"!==o)&&(("body"!==O(e)||C(i))&&(a=J(e)),E(e))){const t=G(e);l=V(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+c.x,y:n.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:K,getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===e?function(t,n){const e=n.get(t);if(e)return e;let o=tt(t).filter((t=>N(t)&&"body"!==O(t))),r=null;const i="fixed"===R(t).position;let a=i?U(t):t;for(;N(a)&&!B(a);){const n=R(a),e=$(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||C(a)&&!e&&et(t,a))?o=o.filter((t=>t!==a)):r=n,a=U(a)}return n.set(t,o),o}(n,this._c):[].concat(e),o],a=i.reduce(((t,e)=>{const o=nt(n,e,r);return t.top=L(o.top,t.top),t.right=j(o.right,t.right),t.bottom=j(o.bottom,t.bottom),t.left=L(o.left,t.left),t}),nt(n,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:it,getElementRects:async function(t){let{reference:n,floating:e,strategy:o}=t;const r=this.getOffsetParent||it,i=this.getDimensions;return{reference:ot(n,await r(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return q(t)},getScale:V,isElement:N,isRTL:function(t){return"rtl"===getComputedStyle(t).direction}};function lt(t){return function(t){for(let n=t;n;n=ct(n))if(n instanceof Element&&"none"===getComputedStyle(n).display)return null;for(let n=ct(t);n;n=ct(n)){if(!(n instanceof Element))continue;const t=getComputedStyle(n);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return n;if("BODY"===n.tagName)return n}}return null}(t)}function ct(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}!function(){{const t=at.getOffsetParent;at.getOffsetParent=n=>t(n,lt)}}();const st=async(t,{referenceEl:n,floatingEl:e,overlayPositioning:o="absolute",placement:r,flipDisabled:i,flipPlacements:l,offsetDistance:c,offsetSkidding:s,arrowEl:f,type:u})=>{if(!n||!e)return null;const{x:d,y:m,placement:p,strategy:y,middlewareData:g}=await((t,n,e)=>{const o=new Map,r={platform:at,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=e,c=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(n));let f=await l.getElementRects({reference:t,floating:n,strategy:r}),{x:u,y:d}=a(f,o,s),m=o,p={},y=0;for(let e=0;e<c.length;e++){const{name:i,fn:g}=c[e],{x:h,y:x,data:w,reset:b}=await g({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:f,platform:l,elements:{reference:t,floating:n}});u=null!=h?h:u,d=null!=x?x:d,p={...p,[i]:{...p[i],...w}},b&&y<=50&&(y++,"object"==typeof b&&(b.placement&&(m=b.placement),b.rects&&(f=!0===b.rects?await l.getElementRects({reference:t,floating:n,strategy:r}):b.rects),({x:u,y:d}=a(f,m,s))),e=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}})(t,n,{...r,platform:i})})(n,e,{strategy:o,placement:"auto"===r||"auto-start"===r||"auto-end"===r?void 0:gt(e,r),middleware:pt({placement:r,flipDisabled:i,flipPlacements:l,offsetDistance:c,offsetSkidding:s,arrowEl:f,type:u})});if(f&&g.arrow){const{x:n,y:e}=g.arrow,o=p.split("-")[0],r=null!=n?"left":"top",i=xt[o],a={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout="left"===o||"right"===o?"horizontal":"vertical"),Object.assign(f.style,{...a,[r]:`${"left"==r?n:e}px`,[o]:"100%",transform:i})}const h=g.hide?.referenceHidden,x=h?"hidden":null,w=x?"none":null;e.setAttribute(ft,p);const b=`translate(${Math.round(d)}px,${Math.round(m)}px)`;Object.assign(e.style,{visibility:x,pointerEvents:w,position:y,top:"0",left:"0",transform:b})},ft="data-placement",ut=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"],dt="bottom-start",mt={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"};function pt({placement:t,flipDisabled:n,flipPlacements:a,offsetDistance:s,offsetSkidding:d,arrowEl:p,type:g}){const h=[(void 0===w&&(w={}),{name:"shift",options:w,async fn(t){const{x:n,y:e,placement:o}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:s={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...u}=l(w,t),d={x:n,y:e},p=await f(t,u),y=i(r(o)),g="x"===y?"y":"x";let h=d[y],x=d[g];a&&(h=m(h+p["y"===y?"top":"left"],h,h-p["y"===y?"bottom":"right"])),c&&(x=m(x+p["y"===g?"top":"left"],x,x-p["y"===g?"bottom":"right"]));const b=s.fn({...t,[y]:h,[g]:x});return{...b,data:{x:b.x-n,y:b.y-e}}}}),k()];var w;if("menu"===g)return[...h,v({fallbackPlacements:a||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if("popover"===g||"tooltip"===g){const g=[...h,P({mainAxis:"number"==typeof s?s:0,crossAxis:"number"==typeof d?d:0})];return"auto"===t||"auto-start"===t||"auto-end"===t?g.push(function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(n){var o,i,a;const{rects:c,middlewareData:s,placement:u,platform:d,elements:m}=n,{crossAxis:p=!1,alignment:g,allowedPlacements:h=y,autoAlignment:w=!0,...v}=l(t,n),A=void 0!==g||h===y?function(t,n,o){return(t?[...o.filter((n=>e(n)===t)),...o.filter((n=>e(n)!==t))]:o.filter((t=>r(t)===t))).filter((o=>!t||e(o)===t||!!n&&b(o)!==o))}(g||null,w,h):h,S=await f(n,v),k=(null==(o=s.autoPlacement)?void 0:o.index)||0,P=A[k];if(null==P)return{};const{main:D,cross:R}=x(P,c,await(null==d.isRTL?void 0:d.isRTL(m.floating)));if(u!==P)return{reset:{placement:A[0]}};const M=[S[r(P)],S[D],S[R]],O=[...(null==(i=s.autoPlacement)?void 0:i.overflows)||[],{placement:P,overflows:M}],E=A[k+1];if(E)return{data:{index:k+1,overflows:O},reset:{placement:E}};const F=O.map((t=>{const n=e(t.placement);return[t.placement,n&&p?t.overflows.slice(0,2).reduce(((t,n)=>t+n),0):t.overflows[0],t.overflows]})).sort(((t,n)=>t[1]-n[1])),C=(null==(a=F.filter((t=>t[2].slice(0,e(t[0])?2:3).every((t=>t<=0))))[0])?void 0:a[0])||F[0][0];return C!==u?{data:{index:k+1,overflows:O},reset:{placement:C}}:{}}}}({alignment:"auto-start"===t?"start":"auto-end"===t?"end":null})):n||g.push(v(a?{fallbackPlacements:a}:{})),p&&g.push((t=>({name:"arrow",options:t,async fn(n){const{x:r,y:a,placement:s,rects:f,platform:d,elements:p}=n,{element:y,padding:g=0}=l(t,n)||{};if(null==y)return{};const h=c(g),x={x:r,y:a},w=i(s),b=o(w),v=await d.getDimensions(y),A="y"===w,S=A?"top":"left",k=A?"bottom":"right",P=A?"clientHeight":"clientWidth",D=f.reference[b]+f.reference[w]-x[w]-f.floating[b],R=x[w]-f.reference[w],M=await(null==d.getOffsetParent?void 0:d.getOffsetParent(y));let O=M?M[P]:0;O&&await(null==d.isElement?void 0:d.isElement(M))||(O=p.floating[P]||f.floating[b]);const E=D/2-R/2,F=O/2-v[b]/2-1,C=u(h[S],F),T=u(h[k],F),$=C,z=O-v[b]-T,B=O/2-v[b]/2+E,j=m($,B,z),L=null!=e(s)&&B!=j&&f.reference[b]/2-(B<$?C:T)-v[b]/2<0?B<$?$-B:z-B:0;return{[w]:x[w]-L,data:{[w]:j,centerOffset:B-j+L}}}}))({element:p})),g}return[]}function yt(t,n){const e=t.filter((t=>ut.includes(t)));return e.length!==t.length&&console.warn(`${n.tagName}: Invalid value found in: flipPlacements. Try any of these: ${ut.map((t=>`"${t}"`)).join(", ").trim()}`,{el:n}),e}function gt(n,e){const o=["left","right"];return"rtl"===t(n)&&o.reverse(),e.replace(/leading/gi,o[0]).replace(/trailing/gi,o[1])}async function ht(t,e,o=!1){if(!t.open)return;const r=o?function(t){let e=bt.get(t);return e||(e=n(st,100,{leading:!0,maxWait:100}),bt.set(t,e),e)}(t):st;return r(t,e)}const xt={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},wt=new WeakMap,bt=new WeakMap;function vt(t,n,e){e&&n&&(At(t,n,e),Object.assign(e.style,{visibility:"hidden",pointerEvents:"none",position:t.overlayPositioning,top:"0",left:"0"}),wt.set(t,function(t,n,e,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,s=Y(t),f=r||i?[...s?tt(s):[],...tt(n)]:[];f.forEach((t=>{r&&t.addEventListener("scroll",e,{passive:!0}),i&&t.addEventListener("resize",e)}));const u=s&&l?function(t,n){let e,o=null;const r=K(t);function i(){clearTimeout(e),o&&o.disconnect(),o=null}return function a(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),i();const{left:s,top:f,width:u,height:d}=t.getBoundingClientRect();if(l||n(),!u||!d)return;const m={rootMargin:-I(f)+"px "+-I(r.clientWidth-(s+u))+"px "+-I(r.clientHeight-(f+d))+"px "+-I(s)+"px",threshold:L(0,j(1,c))||1};let p=!0;function y(t){const n=t[0].intersectionRatio;if(n!==c){if(!p)return a();n?a(!1,n):e=setTimeout((()=>{a(!1,1e-7)}),100)}p=!1}try{o=new IntersectionObserver(y,{...m,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(y,m)}o.observe(t)}(!0),i}(s,e):null;let d,m=-1,p=null;a&&(p=new ResizeObserver((t=>{let[o]=t;o&&o.target===s&&p&&(p.unobserve(n),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{p&&p.observe(n)}))),e()})),s&&!c&&p.observe(s),p.observe(n));let y=c?G(t):null;return c&&function n(){const o=G(t);!y||o.x===y.x&&o.y===y.y&&o.width===y.width&&o.height===y.height||e(),y=o,d=requestAnimationFrame(n)}(),e(),()=>{f.forEach((t=>{r&&t.removeEventListener("scroll",e),i&&t.removeEventListener("resize",e)})),u&&u(),p&&p.disconnect(),p=null,c&&cancelAnimationFrame(d)}}(n,e,(()=>t.reposition()))))}function At(t,n,e){e&&n&&(wt.get(t)?.(),wt.delete(t),bt.get(t)?.cancel(),bt.delete(t))}const St=Math.ceil(Math.hypot(4,4));export{mt as F,At as a,St as b,vt as c,dt as d,yt as f,ht as r}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,h as i,H as e,a,f as n}from"./p-845e563d.js";import{t as o}from"./p-1d088751.js";import{g as r}from"./p-b4000dba.js";import{c,d as s,u as l}from"./p-b9028e7d.js";import{s as d,a as u,c as h}from"./p-e24e564d.js";import{c as b,d as m}from"./p-017d7f06.js";import{c as p}from"./p-10eb8f57.js";import{u as f,c as v,s as g,d as x}from"./p-b09b3788.js";import"./p-af5bd8e2.js";import"./p-41708599.js";const y=class{constructor(i){t(this,i),this.mutationObserver=p("mutation",(()=>n(this))),this.guid=`calcite-action-${r()}`,this.indicatorId=`${this.guid}-indicator`,this.buttonId=`${this.guid}-button`,this.handleTooltipSlotChange=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-tooltip")))[0];i&&(i.referenceElement=this.buttonEl)},this.active=!1,this.alignment=void 0,this.appearance="solid",this.compact=!1,this.disabled=!1,this.icon=void 0,this.iconFlipRtl=!1,this.indicator=!1,this.label=void 0,this.loading=!1,this.scale="m",this.text=void 0,this.textEnabled=!1,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0}onMessagesChange(){}effectiveLocaleChange(){f(this,this.effectiveLocale)}connectedCallback(){c(this),b(this),v(this),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async componentWillLoad(){d(this),await g(this)}componentDidLoad(){u(this)}disconnectedCallback(){s(this),m(this),x(this),this.mutationObserver?.disconnect()}componentDidRender(){l(this)}async setFocus(){await h(this),this.buttonEl?.focus()}renderTextContainer(){const{text:t,textEnabled:e}=this;return t?i("div",{class:{"text-container":!0,"text-container--visible":e},key:"text-container"},t):null}renderIndicatorText(){const{indicator:t,messages:e,indicatorId:a,buttonId:n}=this;return i("div",{"aria-labelledby":n,"aria-live":"polite",class:"indicator-text",id:a,role:"region"},t?e.indicator:null)}renderIconContainer(){const{loading:t,icon:e,scale:a,el:n,iconFlipRtl:o}=this,r="l"===a?"m":"s",c=t?i("calcite-loader",{inline:!0,label:this.messages.loading,scale:"l"===a?"l":"m"}):null,s=e?i("calcite-icon",{flipRtl:o,icon:e,scale:r}):null,l=c||s,d=l||n.children?.length,u=i("div",{class:{"slot-container":!0,"slot-container--hidden":t}},i("slot",null));return d?i("div",{"aria-hidden":"true",class:"icon-container",key:"icon-container"},l,u):null}render(){const{active:t,compact:a,disabled:n,loading:r,textEnabled:c,label:s,text:l,indicator:d,indicatorId:u,buttonId:h,messages:b}=this,m=`${s||l}${d?` (${b.indicator})`:""}`,p={button:!0,"button--text-visible":c,"button--compact":a};return i(e,null,i("button",{"aria-busy":o(r),"aria-controls":d?u:null,"aria-disabled":o(n),"aria-label":m,"aria-pressed":o(t),class:p,disabled:n,id:h,ref:t=>this.buttonEl=t},this.renderIconContainer(),this.renderTextContainer()),i("slot",{name:"tooltip",onSlotchange:this.handleTooltipSlotChange}),this.renderIndicatorText())}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};y.style='@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.button{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem}.button .text-container{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:margin;transition-property:inline-size}.button .text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1;margin-inline-end:1rem}:host([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:transparent;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=transparent]) .button,:host([active][appearance=transparent]) .button:hover,:host([active][appearance=transparent]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=transparent][loading]) .button,:host([appearance=transparent][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{color:var(--calcite-ui-text-3);margin-inline-end:0px}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-action-indicator-color);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}.indicator-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}';export{y as calcite_action}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
6
|
const a="calcite-mode-auto",t="calcite-mode-dark",e={autoMode:a,darkMode:t,lightMode:"calcite-mode-light",rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateIn:"calcite-animate__in",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left",calciteAnimateInScale:"calcite-animate__in-scale"};export{e as C,a,t as d}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
|
+
*/
|
|
6
|
+
import{g as n}from"./p-845e563d.js";import{g as t}from"./p-017d7f06.js";const s={};function o(){throw new Error("could not fetch component message bundle")}function c(n){n.messages={...n.defaultMessages,...n.messageOverrides}}async function a(n){n.defaultMessages=await e(n,n.effectiveLocale),c(n)}async function e(c,a){const{el:e}=c,i=e.tagName.toLowerCase().replace("calcite-","");return async function(t,c){const a=`${c}_${t}`;return s[a]||(s[a]=fetch(n(`./assets/${c}/t9n/messages_${t}.json`)).then((n=>(n.ok||o(),n.json()))).catch((()=>o()))),s[a]}(t(a,"t9n"),i)}async function i(n,t){n.defaultMessages=await e(n,t),c(n)}function f(n){n.onMessagesChange=r}function u(n){n.onMessagesChange=void 0}function r(){c(this)}export{f as c,u as d,a as s,i as u}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
|
-
import{d as _}from"./p-
|
|
6
|
+
import{d as _}from"./p-4b3cc8c2.js";import"./p-845e563d.js";import"./p-a6359343.js";import"./p-1d088751.js";import"./p-b4000dba.js";import"./p-af5bd8e2.js";import"./p-b9028e7d.js";import"./p-41708599.js";import"./p-fd7c9f22.js";import"./p-e24e564d.js";import"./p-017d7f06.js";import"./p-10eb8f57.js";import"./p-dd6a541f.js";import"./p-b09b3788.js";var m={name:"hi",weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"}};_.locale(m,null,!0);export default m;
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
|
-
import{r as a,h as t,a as i}from"./p-
|
|
6
|
+
import{r as a,h as t,a as i}from"./p-845e563d.js";import{c as n}from"./p-10eb8f57.js";import{c as e,s as r,a as c}from"./p-e24e564d.js";const o=class{constructor(t){a(this,t),this.itemMutationObserver=n("mutation",(()=>this.updateFlowProps())),this.getFlowDirection=(a,t)=>a&&t>1||a>1?t<a?"retreating":"advancing":null,this.updateFlowProps=()=>{const{el:a,items:t}=this,i=Array.from(a.querySelectorAll("calcite-flow-item")).filter((t=>t.closest("calcite-flow")===a)),n=t.length,e=i.length,r=i[e-1],c=i[e-2];if(e&&r&&i.forEach((a=>{a.showBackButton=a===r&&e>1,a.hidden=a!==r})),c&&(c.menuOpen=!1),this.items=i,n!==e){const a=this.getFlowDirection(n,e);this.itemCount=e,this.flowDirection=a}},this.flowDirection=null,this.itemCount=0,this.items=[]}async back(){const{items:a}=this,t=a[a.length-1];if(!t)return;const i=t.beforeBack?t.beforeBack:()=>Promise.resolve();return await i.call(t),t.remove(),t}async setFocus(){await e(this);const{items:a}=this;return a[a.length-1]?.setFocus()}connectedCallback(){this.itemMutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.updateFlowProps()}async componentWillLoad(){r(this)}componentDidLoad(){c(this)}disconnectedCallback(){this.itemMutationObserver?.disconnect()}async handleItemBackClick(){return await this.back(),this.setFocus()}render(){const{flowDirection:a}=this;return t("div",{class:{frame:!0,"frame--advancing":"advancing"===a,"frame--retreating":"retreating"===a}},t("slot",null))}get el(){return i(this)}};o.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto;align-items:stretch;overflow:hidden;background-color:transparent}:host .frame{position:relative;margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;padding:0px}:host ::slotted(calcite-flow-item),:host ::slotted(calcite-panel){block-size:100%}:host ::slotted(.calcite-match-height:last-child){display:flex;flex:1 1 auto;overflow:hidden}:host .frame--advancing{animation:calcite-frame-advance var(--calcite-animation-timing)}:host .frame--retreating{animation:calcite-frame-retreat var(--calcite-animation-timing)}@keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5;transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5;transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}";export{o as calcite_flow}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
|
-
import{d as _}from"./p-
|
|
6
|
+
import{d as _}from"./p-4b3cc8c2.js";import"./p-845e563d.js";import"./p-a6359343.js";import"./p-1d088751.js";import"./p-b4000dba.js";import"./p-af5bd8e2.js";import"./p-b9028e7d.js";import"./p-41708599.js";import"./p-fd7c9f22.js";import"./p-e24e564d.js";import"./p-017d7f06.js";import"./p-10eb8f57.js";import"./p-dd6a541f.js";import"./p-b09b3788.js";var m={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(_,m){return"W"===m?_+"周":_+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(_,m){var d=100*_+m;return d<600?"凌晨":d<900?"早上":d<1100?"上午":d<1300?"中午":d<1800?"下午":"晚上"}};_.locale(m,null,!0);export default m;
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
6
|
const t=()=>[2,1,1,1,3].map((t=>{let e="";for(let r=0;r<t;r++)e+=(65536*(1+Math.random())|0).toString(16).substring(1);return e})).join("-");export{t as g}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as a,H as e,a as s}from"./p-3a640a4a.js";import{d as n,a as r,i as o,b as c,g as l,c as h,e as p,f as d}from"./p-834142ca.js";import{t as m}from"./p-ef15b74e.js";import{f as u,c as f,d as g,r as v,a as y,F as b}from"./p-95f3b7c0.js";import{s as w,c as x,d as k,H as D}from"./p-2242275a.js";import{c as z,d as C,u as I}from"./p-6ba299db.js";import{n as A}from"./p-754883cf.js";import{c as P,d as j}from"./p-4657b977.js";import{c as _,s as F,a as O}from"./p-c48c5687.js";import{n as R,c as E,d as S}from"./p-26814162.js";import{c as H,d as L}from"./p-01032607.js";import{c as M,s as Y,d as B}from"./p-f3c0550c.js";import{c as T,d as W,a as q}from"./p-cfa9f020.js";import{g as X}from"./p-38f52fbe.js";import"./p-2ae756d9.js";import"./p-32fa7c12.js";import"./p-fd4219a1.js";const $=class{constructor(a){t(this,a),this.calciteInputDatePickerChange=i(this,"calciteInputDatePickerChange",6),this.calciteInputDatePickerBeforeClose=i(this,"calciteInputDatePickerBeforeClose",6),this.calciteInputDatePickerClose=i(this,"calciteInputDatePickerClose",6),this.calciteInputDatePickerBeforeOpen=i(this,"calciteInputDatePickerBeforeOpen",6),this.calciteInputDatePickerOpen=i(this,"calciteInputDatePickerOpen",6),this.calciteInternalInputInputHandler=t=>{const i=t.target,a=i.value,e=this.parseNumerals(a),s=this.formatNumerals(e);i.value=s;const{year:c}=n(a,this.localeData);if(c&&c.length<4)return;const l=r(a,this.localeData);o(l,this.min,this.max)&&(this.datePickerActiveDate=l)},this.calciteInternalInputBlurHandler=()=>{this.commitValue()},this.dialogId=`date-picker-dialog--${X()}`,this.focusOnOpen=!1,this.lastBlurredInput="none",this.userChangedValue=!1,this.openTransitionProp="opacity",this.valueAsDateChangedExternally=!1,this.onInputWrapperClick=()=>{this.range&&"none"!==this.lastBlurredInput&&this.open||(this.open=!this.open),this.lastBlurredInput="none"},this.setFilteredPlacements=()=>{const{el:t,flipPlacements:i}=this;this.filteredFlipPlacements=i?u(i,t):null},this.setTransitionEl=t=>{this.transitionEl=t,H(this)},this.setStartInput=t=>{this.startInput=t},this.setEndInput=t=>{this.endInput=t},this.deactivate=()=>{this.open=!1,this.lastBlurredInput="none"},this.keyDownHandler=t=>{const{defaultPrevented:i,key:a}=t;i||("Enter"===a?(this.commitValue(),this.shouldFocusRangeEnd()?this.endInput?.setFocus():this.shouldFocusRangeStart()&&this.startInput?.setFocus(),w(this)&&(t.preventDefault(),this.restoreInputFocus())):"ArrowDown"===a?(this.open=!0,this.focusOnOpen=!0,t.preventDefault()):"Escape"===a&&(this.open=!1,t.preventDefault(),this.restoreInputFocus()))},this.startInputFocus=()=>{this.focusedInput="start"},this.startEndInputFocus=t=>{const i=t.relatedTarget;this.lastBlurredInput=i===this.startInput?"start":i===this.endInput?"end":"none"},this.endInputFocus=()=>{this.focusedInput="end"},this.setFloatingEl=t=>{this.floatingEl=t,f(this,this.referenceEl,this.floatingEl)},this.setStartWrapper=t=>{this.startWrapper=t,this.setReferenceEl()},this.setEndWrapper=t=>{this.endWrapper=t,this.setReferenceEl()},this.setDatePickerRef=t=>{this.datePickerEl=t,T(this,{focusTrapEl:t,focusTrapOptions:{initialFocus:!1,setReturnFocus:!1}})},this.handleDateChange=t=>{this.range||(t.stopPropagation(),this.setValue(t.target.valueAsDate),this.localizeInputValues(),this.restoreInputFocus())},this.handleDateRangeChange=t=>{this.range&&(t.stopPropagation(),this.setRangeValue(t.target.valueAsDate),this.localizeInputValues(),this.restoreInputFocus())},this.setInputValue=(t,i="start")=>{const a=this[`${i}Input`];a&&(a.value=t)},this.setRangeValue=t=>{if(!this.range)return;const{value:i}=this,a=Array.isArray(i),e=Array.isArray(t),s=e?c(e?t[0]:null):"",n=e?c(e?t[1]:null):"",r=s||n?[s,n]:"";if(r===i)return;this.userChangedValue=!0,this.value=r,this.valueAsDate=r?l(r):void 0;const o=this.calciteInputDatePickerChange.emit();o&&o.defaultPrevented&&(this.value=i,a?(this.setInputValue(i[0],"start"),this.setInputValue(i[1],"end")):(this.value=i,this.setInputValue(i)))},this.setValue=t=>{if(this.range)return;const i=this.value,a=c(t);a!==i&&(this.userChangedValue=!0,this.valueAsDate=a?h(a):void 0,this.value=a||"",this.calciteInputDatePickerChange.emit().defaultPrevented&&(this.value=i,this.setInputValue(i)))},this.commonDateSeparators=[".","-","/"],this.formatNumerals=t=>t?t.split("").map((t=>this.commonDateSeparators?.includes(t)?this.localeData?.separator:A?.includes(t)?R?.numberFormatter?.format(Number(t)):t)).join(""):"",this.parseNumerals=t=>t?t.split("").map((t=>A.includes(t)?R.delocalize(t):t)).join(""):"",this.disabled=!1,this.focusTrapDisabled=!1,this.form=void 0,this.readOnly=!1,this.value="",this.flipPlacements=void 0,this.headingLevel=void 0,this.valueAsDate=void 0,this.messageOverrides=void 0,this.messages=void 0,this.minAsDate=void 0,this.maxAsDate=void 0,this.min=void 0,this.max=void 0,this.open=!1,this.name=void 0,this.numberingSystem=void 0,this.scale="m",this.placement=g,this.range=!1,this.required=!1,this.overlayPositioning="absolute",this.proximitySelectionDisabled=!1,this.layout="horizontal",this.datePickerActiveDate=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.focusedInput="start",this.localeData=void 0}handleFocusTrapDisabled(t){this.open&&(t?W(this):q(this))}handleDisabledAndReadOnlyChange(t){t||(this.open=!1)}valueWatcher(t){if(!this.userChangedValue){let i;i=Array.isArray(t)?l(t):t?h(t):void 0,this.valueAsDateChangedExternally||i===this.valueAsDate||(this.valueAsDate=i),this.localizeInputValues()}this.userChangedValue=!1}valueAsDateWatcher(t){this.datePickerActiveDate=t;const i=this.range&&Array.isArray(t)?[c(t[0]),c(t[1])]:c(t);this.value!==i&&(this.valueAsDateChangedExternally=!0,this.value=i,this.valueAsDateChangedExternally=!1)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMessagesChange(){}onMinChanged(t){t&&(this.minAsDate=h(t))}onMaxChanged(t){t&&(this.maxAsDate=h(t))}openHandler(t){this.disabled||this.readOnly?this.open=!1:t&&this.reposition(!0)}overlayPositioningHandler(){this.reposition(!0)}calciteDaySelectHandler(){this.shouldFocusRangeStart()||this.shouldFocusRangeEnd()||(this.open=!1)}async setFocus(){await _(this),this.el.focus()}async reposition(t=!1){const{floatingEl:i,referenceEl:a,placement:e,overlayPositioning:s,filteredFlipPlacements:n}=this;return v(this,{floatingEl:i,referenceEl:a,overlayPositioning:s,placement:e,flipPlacements:n,type:"menu"},t)}connectedCallback(){z(this),E(this);const{open:t}=this;if(t&&this.openHandler(t),Array.isArray(this.value))this.valueAsDate=l(this.value);else if(this.value)try{this.valueAsDate=h(this.value)}catch(t){this.warnAboutInvalidValue(this.value),this.value=""}else this.range&&this.valueAsDate&&this.setRangeValue(this.valueAsDate);this.min&&(this.minAsDate=h(this.min)),this.max&&(this.maxAsDate=h(this.max)),P(this),x(this),H(this),M(this),this.setFilteredPlacements(),this.reposition(!0),R.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.effectiveLocale,useGrouping:!1}}async componentWillLoad(){F(this),await Promise.all([this.loadLocaleData(),Y(this)]),this.onMinChanged(this.min),this.onMaxChanged(this.max)}componentDidLoad(){O(this),this.localizeInputValues(),this.reposition(!0)}disconnectedCallback(){W(this),C(this),j(this),k(this),y(this,this.referenceEl,this.floatingEl),L(this),S(this),B(this)}componentDidRender(){I(this)}render(){const{disabled:t,effectiveLocale:i,messages:s,numberingSystem:n,readOnly:r}=this;return R.numberFormatOptions={numberingSystem:n,locale:i,useGrouping:!1},a(e,{onBlur:this.deactivate,onKeyDown:this.keyDownHandler},this.localeData&&a("div",{class:"input-container"},a("div",{class:"input-wrapper",onClick:this.onInputWrapperClick,ref:this.setStartWrapper},a("calcite-input",{"aria-autocomplete":"none","aria-controls":this.dialogId,"aria-expanded":m(this.open),"aria-haspopup":"dialog",class:"input "+("vertical"===this.layout&&this.range?"no-bottom-border":""),disabled:t,icon:"calendar","number-button-type":"none",numberingSystem:n,onCalciteInputInput:this.calciteInternalInputInputHandler,onCalciteInternalInputBlur:this.calciteInternalInputBlurHandler,onCalciteInternalInputFocus:this.startInputFocus,onFocus:this.startEndInputFocus,placeholder:this.localeData?.placeholder,readOnly:r,role:"combobox",scale:this.scale,type:"text",ref:this.setStartInput}),this.renderToggleIcon(this.open&&"start"===this.focusedInput)),a("div",{"aria-hidden":m(!this.open),"aria-label":s.chooseDate,"aria-live":"polite","aria-modal":"true",class:{"menu-container":!0,"menu-container--active":this.open},id:this.dialogId,role:"dialog",ref:this.setFloatingEl},a("div",{class:{"calendar-picker-wrapper":!0,"calendar-picker-wrapper--end":"end"===this.focusedInput,[b.animation]:!0,[b.animationActive]:this.open},ref:this.setTransitionEl},a("calcite-date-picker",{activeDate:this.datePickerActiveDate,activeRange:this.focusedInput,headingLevel:this.headingLevel,max:this.max,maxAsDate:this.maxAsDate,messageOverrides:this.messageOverrides,min:this.min,minAsDate:this.minAsDate,numberingSystem:n,onCalciteDatePickerChange:this.handleDateChange,onCalciteDatePickerRangeChange:this.handleDateRangeChange,proximitySelectionDisabled:this.proximitySelectionDisabled,range:this.range,scale:this.scale,tabIndex:this.open?void 0:-1,valueAsDate:this.valueAsDate,ref:this.setDatePickerRef}))),this.range&&"horizontal"===this.layout&&a("div",{class:"horizontal-arrow-container"},a("calcite-icon",{flipRtl:!0,icon:"arrow-right",scale:"l"===this.scale?"m":"s"})),this.range&&"vertical"===this.layout&&"s"!==this.scale&&a("div",{class:"vertical-arrow-container"},a("calcite-icon",{icon:"arrow-down",scale:"l"===this.scale?"m":"s"})),this.range&&a("div",{class:"input-wrapper",onClick:this.onInputWrapperClick,ref:this.setEndWrapper},a("calcite-input",{"aria-autocomplete":"none","aria-controls":this.dialogId,"aria-expanded":m(this.open),"aria-haspopup":"dialog",class:{input:!0,"border-top-color-one":"vertical"===this.layout&&this.range},disabled:t,icon:"calendar","number-button-type":"none",numberingSystem:n,onCalciteInputInput:this.calciteInternalInputInputHandler,onCalciteInternalInputBlur:this.calciteInternalInputBlurHandler,onCalciteInternalInputFocus:this.endInputFocus,onFocus:this.startEndInputFocus,placeholder:this.localeData?.placeholder,readOnly:r,role:"combobox",scale:this.scale,type:"text",ref:this.setEndInput}),this.renderToggleIcon(this.open&&"end"===this.focusedInput))),a(D,{component:this}))}renderToggleIcon(t){return a("span",{class:"toggle-icon"},a("calcite-icon",{icon:t?"chevron-up":"chevron-down",scale:"s"}))}setReferenceEl(){const{focusedInput:t,layout:i,endWrapper:a,startWrapper:e}=this;this.referenceEl="end"===t||"vertical"===i?a||e:e||a,requestAnimationFrame((()=>f(this,this.referenceEl,this.floatingEl)))}onLabelClick(){this.setFocus()}onBeforeOpen(){this.calciteInputDatePickerBeforeOpen.emit()}onOpen(){q(this,{onActivate:()=>{this.focusOnOpen&&(this.datePickerEl.setFocus(),this.focusOnOpen=!1)}}),this.calciteInputDatePickerOpen.emit()}onBeforeClose(){this.calciteInputDatePickerBeforeClose.emit()}onClose(){this.calciteInputDatePickerClose.emit(),W(this),this.restoreInputFocus(),this.focusOnOpen=!1,this.datePickerEl.reset()}commitValue(){const{focusedInput:t,value:i}=this,a=r(this[`${t}Input`].value,this.localeData),e=c(a),s=Array.isArray(i);if(this.range)if(s){if(e===i["start"===t?0:1])return;a?(this.setRangeValue(["start"===t?a:h(i[0]),"end"===t?a:h(i[1])]),this.localizeInputValues()):this.setRangeValue(["end"===t&&h(i[0]),"start"===t&&h(i[1])])}else a&&(this.setRangeValue(["start"===t?a:h(i[0]),"end"===t?a:h(i[1])]),this.localizeInputValues());else{if(e===i)return;this.setValue(a),this.localizeInputValues()}}async loadLocaleData(){R.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.effectiveLocale,useGrouping:!1},this.localeData=await p(this.effectiveLocale),this.localizeInputValues()}shouldFocusRangeStart(){return!(!this.value[1]||this.value[0]||"end"!==this.focusedInput||!this.startInput)}shouldFocusRangeEnd(){return!(!this.value[0]||this.value[1]||"start"!==this.focusedInput||!this.endInput)}restoreInputFocus(){this.range?("start"===this.focusedInput?this.startInput:this.endInput).setFocus():this.startInput.setFocus()}localizeInputValues(){const t=d(this.range?Array.isArray(this.valueAsDate)&&this.valueAsDate[0]||void 0:this.valueAsDate,this.minAsDate,this.maxAsDate),i=this.range?d(Array.isArray(this.valueAsDate)&&this.valueAsDate[1]||void 0,this.minAsDate,this.maxAsDate):null,a=t&&this.formatNumerals(t.toLocaleDateString(this.effectiveLocale)),e=i&&this.formatNumerals(i.toLocaleDateString(this.effectiveLocale));this.setInputValue(a??"","start"),this.setInputValue((this.range&&e)??"","end")}warnAboutInvalidValue(t){console.warn(`The specified value "${t}" does not conform to the required format, "YYYY-MM-DD".`)}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],disabled:["handleDisabledAndReadOnlyChange"],readOnly:["handleDisabledAndReadOnlyChange"],value:["valueWatcher"],valueAsDate:["valueAsDateWatcher"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],min:["onMinChanged"],max:["onMaxChanged"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],layout:["setReferenceEl"],focusedInput:["setReferenceEl"],effectiveLocale:["loadLocaleData"]}}};$.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:inline-block;inline-size:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host .menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-app-z-index);border-radius:0.25rem}:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([scale=s]){--calcite-toggle-spacing:0.5rem}:host([scale=m]){--calcite-toggle-spacing:0.75rem}:host([scale=l]){--calcite-toggle-spacing:1rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.calendar-picker-wrapper{position:static;inline-size:100%;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}.toggle-icon{position:absolute;display:flex;inline-size:1rem;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing)}:host([range]) .input-container{display:flex}:host([range]) .input-wrapper{flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:flex;align-items:center;border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-block:0px;padding-inline:0.25rem}:host([range][layout=vertical]) .input-wrapper{inline-size:100%}:host([range][layout=vertical]) .input-container{flex-direction:column;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{inset-block-start:1.5rem;position:absolute;z-index:var(--calcite-app-z-index);margin-inline:1px;background-color:var(--calcite-ui-foreground-1);padding-inline:0.625rem;inset-inline-start:0}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:398px}.menu-container{--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown);display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index);visibility:hidden}.menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-app-z-index);border-radius:0.25rem}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}.menu-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}.menu-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}.menu-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([open]) .menu-container{visibility:visible}.menu-container--active{visibility:visible}.input .calcite-input__wrapper{margin-block-start:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{inset-block-start:1.5rem;padding-inline-start:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{block-size:0.75rem;inline-size:0.75rem;min-inline-size:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{inset-block-start:2.25rem;padding-inline:0.875rem}:host([range][layout=vertical][open]) .vertical-arrow-container{display:none}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{$ as calcite_input_date_picker}
|
|
6
|
+
import{r as t,c as i,h as a,H as e,a as s}from"./p-845e563d.js";import{d as n,a as r,i as o,b as c,g as l,c as h,e as p,f as d}from"./p-c77f458e.js";import{t as m}from"./p-1d088751.js";import{f as u,c as f,d as g,r as v,a as y,F as b}from"./p-aed12e33.js";import{s as w,c as x,d as k,H as D}from"./p-a6359343.js";import{c as z,d as C,u as I}from"./p-b9028e7d.js";import{n as A}from"./p-41708599.js";import{c as P,d as j}from"./p-fd7c9f22.js";import{c as _,s as F,a as O}from"./p-e24e564d.js";import{n as R,c as E,d as S}from"./p-017d7f06.js";import{c as H,d as L}from"./p-1f954ab2.js";import{c as M,s as Y,d as B}from"./p-b09b3788.js";import{c as T,d as W,a as q}from"./p-dd6a541f.js";import{g as X}from"./p-b4000dba.js";import"./p-af5bd8e2.js";import"./p-f4f04a9c.js";import"./p-10eb8f57.js";const $=class{constructor(a){t(this,a),this.calciteInputDatePickerChange=i(this,"calciteInputDatePickerChange",6),this.calciteInputDatePickerBeforeClose=i(this,"calciteInputDatePickerBeforeClose",6),this.calciteInputDatePickerClose=i(this,"calciteInputDatePickerClose",6),this.calciteInputDatePickerBeforeOpen=i(this,"calciteInputDatePickerBeforeOpen",6),this.calciteInputDatePickerOpen=i(this,"calciteInputDatePickerOpen",6),this.calciteInternalInputInputHandler=t=>{const i=t.target,a=i.value,e=this.parseNumerals(a),s=this.formatNumerals(e);i.value=s;const{year:c}=n(a,this.localeData);if(c&&c.length<4)return;const l=r(a,this.localeData);o(l,this.min,this.max)&&(this.datePickerActiveDate=l)},this.calciteInternalInputBlurHandler=()=>{this.commitValue()},this.dialogId=`date-picker-dialog--${X()}`,this.focusOnOpen=!1,this.lastBlurredInput="none",this.userChangedValue=!1,this.openTransitionProp="opacity",this.valueAsDateChangedExternally=!1,this.onInputWrapperClick=()=>{this.range&&"none"!==this.lastBlurredInput&&this.open||(this.open=!this.open),this.lastBlurredInput="none"},this.setFilteredPlacements=()=>{const{el:t,flipPlacements:i}=this;this.filteredFlipPlacements=i?u(i,t):null},this.setTransitionEl=t=>{this.transitionEl=t,H(this)},this.setStartInput=t=>{this.startInput=t},this.setEndInput=t=>{this.endInput=t},this.deactivate=()=>{this.open=!1,this.lastBlurredInput="none"},this.keyDownHandler=t=>{const{defaultPrevented:i,key:a}=t;i||("Enter"===a?(this.commitValue(),this.shouldFocusRangeEnd()?this.endInput?.setFocus():this.shouldFocusRangeStart()&&this.startInput?.setFocus(),w(this)&&(t.preventDefault(),this.restoreInputFocus())):"ArrowDown"===a?(this.open=!0,this.focusOnOpen=!0,t.preventDefault()):"Escape"===a&&(this.open=!1,t.preventDefault(),this.restoreInputFocus()))},this.startInputFocus=()=>{this.focusedInput="start"},this.startEndInputFocus=t=>{const i=t.relatedTarget;this.lastBlurredInput=i===this.startInput?"start":i===this.endInput?"end":"none"},this.endInputFocus=()=>{this.focusedInput="end"},this.setFloatingEl=t=>{this.floatingEl=t,f(this,this.referenceEl,this.floatingEl)},this.setStartWrapper=t=>{this.startWrapper=t,this.setReferenceEl()},this.setEndWrapper=t=>{this.endWrapper=t,this.setReferenceEl()},this.setDatePickerRef=t=>{this.datePickerEl=t,T(this,{focusTrapEl:t,focusTrapOptions:{initialFocus:!1,setReturnFocus:!1}})},this.handleDateChange=t=>{this.range||(t.stopPropagation(),this.setValue(t.target.valueAsDate),this.localizeInputValues(),this.restoreInputFocus())},this.handleDateRangeChange=t=>{this.range&&(t.stopPropagation(),this.setRangeValue(t.target.valueAsDate),this.localizeInputValues(),this.restoreInputFocus())},this.setInputValue=(t,i="start")=>{const a=this[`${i}Input`];a&&(a.value=t)},this.setRangeValue=t=>{if(!this.range)return;const{value:i}=this,a=Array.isArray(i),e=Array.isArray(t),s=e?c(e?t[0]:null):"",n=e?c(e?t[1]:null):"",r=s||n?[s,n]:"";if(r===i)return;this.userChangedValue=!0,this.value=r,this.valueAsDate=r?l(r):void 0;const o=this.calciteInputDatePickerChange.emit();o&&o.defaultPrevented&&(this.value=i,a?(this.setInputValue(i[0],"start"),this.setInputValue(i[1],"end")):(this.value=i,this.setInputValue(i)))},this.setValue=t=>{if(this.range)return;const i=this.value,a=c(t);a!==i&&(this.userChangedValue=!0,this.valueAsDate=a?h(a):void 0,this.value=a||"",this.calciteInputDatePickerChange.emit().defaultPrevented&&(this.value=i,this.setInputValue(i)))},this.commonDateSeparators=[".","-","/"],this.formatNumerals=t=>t?t.split("").map((t=>this.commonDateSeparators?.includes(t)?this.localeData?.separator:A?.includes(t)?R?.numberFormatter?.format(Number(t)):t)).join(""):"",this.parseNumerals=t=>t?t.split("").map((t=>A.includes(t)?R.delocalize(t):t)).join(""):"",this.disabled=!1,this.focusTrapDisabled=!1,this.form=void 0,this.readOnly=!1,this.value="",this.flipPlacements=void 0,this.headingLevel=void 0,this.valueAsDate=void 0,this.messageOverrides=void 0,this.messages=void 0,this.minAsDate=void 0,this.maxAsDate=void 0,this.min=void 0,this.max=void 0,this.open=!1,this.name=void 0,this.numberingSystem=void 0,this.scale="m",this.placement=g,this.range=!1,this.required=!1,this.overlayPositioning="absolute",this.proximitySelectionDisabled=!1,this.layout="horizontal",this.datePickerActiveDate=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.focusedInput="start",this.localeData=void 0}handleFocusTrapDisabled(t){this.open&&(t?W(this):q(this))}handleDisabledAndReadOnlyChange(t){t||(this.open=!1)}valueWatcher(t){if(!this.userChangedValue){let i;i=Array.isArray(t)?l(t):t?h(t):void 0,this.valueAsDateChangedExternally||i===this.valueAsDate||(this.valueAsDate=i),this.localizeInputValues()}this.userChangedValue=!1}valueAsDateWatcher(t){this.datePickerActiveDate=t;const i=this.range&&Array.isArray(t)?[c(t[0]),c(t[1])]:c(t);this.value!==i&&(this.valueAsDateChangedExternally=!0,this.value=i,this.valueAsDateChangedExternally=!1)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMessagesChange(){}onMinChanged(t){t&&(this.minAsDate=h(t))}onMaxChanged(t){t&&(this.maxAsDate=h(t))}openHandler(t){this.disabled||this.readOnly?this.open=!1:t&&this.reposition(!0)}overlayPositioningHandler(){this.reposition(!0)}calciteDaySelectHandler(){this.shouldFocusRangeStart()||this.shouldFocusRangeEnd()||(this.open=!1)}async setFocus(){await _(this),this.el.focus()}async reposition(t=!1){const{floatingEl:i,referenceEl:a,placement:e,overlayPositioning:s,filteredFlipPlacements:n}=this;return v(this,{floatingEl:i,referenceEl:a,overlayPositioning:s,placement:e,flipPlacements:n,type:"menu"},t)}connectedCallback(){z(this),E(this);const{open:t}=this;if(t&&this.openHandler(t),Array.isArray(this.value))this.valueAsDate=l(this.value);else if(this.value)try{this.valueAsDate=h(this.value)}catch(t){this.warnAboutInvalidValue(this.value),this.value=""}else this.range&&this.valueAsDate&&this.setRangeValue(this.valueAsDate);this.min&&(this.minAsDate=h(this.min)),this.max&&(this.maxAsDate=h(this.max)),P(this),x(this),H(this),M(this),this.setFilteredPlacements(),this.reposition(!0),R.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.effectiveLocale,useGrouping:!1}}async componentWillLoad(){F(this),await Promise.all([this.loadLocaleData(),Y(this)]),this.onMinChanged(this.min),this.onMaxChanged(this.max)}componentDidLoad(){O(this),this.localizeInputValues(),this.reposition(!0)}disconnectedCallback(){W(this),C(this),j(this),k(this),y(this,this.referenceEl,this.floatingEl),L(this),S(this),B(this)}componentDidRender(){I(this)}render(){const{disabled:t,effectiveLocale:i,messages:s,numberingSystem:n,readOnly:r}=this;return R.numberFormatOptions={numberingSystem:n,locale:i,useGrouping:!1},a(e,{onBlur:this.deactivate,onKeyDown:this.keyDownHandler},this.localeData&&a("div",{class:"input-container"},a("div",{class:"input-wrapper",onClick:this.onInputWrapperClick,ref:this.setStartWrapper},a("calcite-input",{"aria-autocomplete":"none","aria-controls":this.dialogId,"aria-expanded":m(this.open),"aria-haspopup":"dialog",class:"input "+("vertical"===this.layout&&this.range?"no-bottom-border":""),disabled:t,icon:"calendar","number-button-type":"none",numberingSystem:n,onCalciteInputInput:this.calciteInternalInputInputHandler,onCalciteInternalInputBlur:this.calciteInternalInputBlurHandler,onCalciteInternalInputFocus:this.startInputFocus,onFocus:this.startEndInputFocus,placeholder:this.localeData?.placeholder,readOnly:r,role:"combobox",scale:this.scale,type:"text",ref:this.setStartInput}),this.renderToggleIcon(this.open&&"start"===this.focusedInput)),a("div",{"aria-hidden":m(!this.open),"aria-label":s.chooseDate,"aria-live":"polite","aria-modal":"true",class:{"menu-container":!0,"menu-container--active":this.open},id:this.dialogId,role:"dialog",ref:this.setFloatingEl},a("div",{class:{"calendar-picker-wrapper":!0,"calendar-picker-wrapper--end":"end"===this.focusedInput,[b.animation]:!0,[b.animationActive]:this.open},ref:this.setTransitionEl},a("calcite-date-picker",{activeDate:this.datePickerActiveDate,activeRange:this.focusedInput,headingLevel:this.headingLevel,max:this.max,maxAsDate:this.maxAsDate,messageOverrides:this.messageOverrides,min:this.min,minAsDate:this.minAsDate,numberingSystem:n,onCalciteDatePickerChange:this.handleDateChange,onCalciteDatePickerRangeChange:this.handleDateRangeChange,proximitySelectionDisabled:this.proximitySelectionDisabled,range:this.range,scale:this.scale,tabIndex:this.open?void 0:-1,valueAsDate:this.valueAsDate,ref:this.setDatePickerRef}))),this.range&&"horizontal"===this.layout&&a("div",{class:"horizontal-arrow-container"},a("calcite-icon",{flipRtl:!0,icon:"arrow-right",scale:"l"===this.scale?"m":"s"})),this.range&&"vertical"===this.layout&&"s"!==this.scale&&a("div",{class:"vertical-arrow-container"},a("calcite-icon",{icon:"arrow-down",scale:"l"===this.scale?"m":"s"})),this.range&&a("div",{class:"input-wrapper",onClick:this.onInputWrapperClick,ref:this.setEndWrapper},a("calcite-input",{"aria-autocomplete":"none","aria-controls":this.dialogId,"aria-expanded":m(this.open),"aria-haspopup":"dialog",class:{input:!0,"border-top-color-one":"vertical"===this.layout&&this.range},disabled:t,icon:"calendar","number-button-type":"none",numberingSystem:n,onCalciteInputInput:this.calciteInternalInputInputHandler,onCalciteInternalInputBlur:this.calciteInternalInputBlurHandler,onCalciteInternalInputFocus:this.endInputFocus,onFocus:this.startEndInputFocus,placeholder:this.localeData?.placeholder,readOnly:r,role:"combobox",scale:this.scale,type:"text",ref:this.setEndInput}),this.renderToggleIcon(this.open&&"end"===this.focusedInput))),a(D,{component:this}))}renderToggleIcon(t){return a("span",{class:"toggle-icon"},a("calcite-icon",{icon:t?"chevron-up":"chevron-down",scale:"s"}))}setReferenceEl(){const{focusedInput:t,layout:i,endWrapper:a,startWrapper:e}=this;this.referenceEl="end"===t||"vertical"===i?a||e:e||a,requestAnimationFrame((()=>f(this,this.referenceEl,this.floatingEl)))}onLabelClick(){this.setFocus()}onBeforeOpen(){this.calciteInputDatePickerBeforeOpen.emit()}onOpen(){q(this,{onActivate:()=>{this.focusOnOpen&&(this.datePickerEl.setFocus(),this.focusOnOpen=!1)}}),this.calciteInputDatePickerOpen.emit()}onBeforeClose(){this.calciteInputDatePickerBeforeClose.emit()}onClose(){this.calciteInputDatePickerClose.emit(),W(this),this.restoreInputFocus(),this.focusOnOpen=!1,this.datePickerEl.reset()}commitValue(){const{focusedInput:t,value:i}=this,a=r(this[`${t}Input`].value,this.localeData),e=c(a),s=Array.isArray(i);if(this.range)if(s){if(e===i["start"===t?0:1])return;a?(this.setRangeValue(["start"===t?a:h(i[0]),"end"===t?a:h(i[1])]),this.localizeInputValues()):this.setRangeValue(["end"===t&&h(i[0]),"start"===t&&h(i[1])])}else a&&(this.setRangeValue(["start"===t?a:h(i[0]),"end"===t?a:h(i[1])]),this.localizeInputValues());else{if(e===i)return;this.setValue(a),this.localizeInputValues()}}async loadLocaleData(){R.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.effectiveLocale,useGrouping:!1},this.localeData=await p(this.effectiveLocale),this.localizeInputValues()}shouldFocusRangeStart(){return!(!this.value[1]||this.value[0]||"end"!==this.focusedInput||!this.startInput)}shouldFocusRangeEnd(){return!(!this.value[0]||this.value[1]||"start"!==this.focusedInput||!this.endInput)}restoreInputFocus(){this.range?("start"===this.focusedInput?this.startInput:this.endInput).setFocus():this.startInput.setFocus()}localizeInputValues(){const t=d(this.range?Array.isArray(this.valueAsDate)&&this.valueAsDate[0]||void 0:this.valueAsDate,this.minAsDate,this.maxAsDate),i=this.range?d(Array.isArray(this.valueAsDate)&&this.valueAsDate[1]||void 0,this.minAsDate,this.maxAsDate):null,a=t&&this.formatNumerals(t.toLocaleDateString(this.effectiveLocale)),e=i&&this.formatNumerals(i.toLocaleDateString(this.effectiveLocale));this.setInputValue(a??"","start"),this.setInputValue((this.range&&e)??"","end")}warnAboutInvalidValue(t){console.warn(`The specified value "${t}" does not conform to the required format, "YYYY-MM-DD".`)}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],disabled:["handleDisabledAndReadOnlyChange"],readOnly:["handleDisabledAndReadOnlyChange"],value:["valueWatcher"],valueAsDate:["valueAsDateWatcher"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],min:["onMinChanged"],max:["onMaxChanged"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],layout:["setReferenceEl"],focusedInput:["setReferenceEl"],effectiveLocale:["loadLocaleData"]}}};$.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:inline-block;inline-size:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host .menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-app-z-index);border-radius:0.25rem}:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([scale=s]){--calcite-toggle-spacing:0.5rem}:host([scale=m]){--calcite-toggle-spacing:0.75rem}:host([scale=l]){--calcite-toggle-spacing:1rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.calendar-picker-wrapper{position:static;inline-size:100%;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}.toggle-icon{position:absolute;display:flex;inline-size:1rem;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing)}:host([range]) .input-container{display:flex}:host([range]) .input-wrapper{flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:flex;align-items:center;border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-block:0px;padding-inline:0.25rem}:host([range][layout=vertical]) .input-wrapper{inline-size:100%}:host([range][layout=vertical]) .input-container{flex-direction:column;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{inset-block-start:1.5rem;position:absolute;z-index:var(--calcite-app-z-index);margin-inline:1px;background-color:var(--calcite-ui-foreground-1);padding-inline:0.625rem;inset-inline-start:0}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:398px}.menu-container{--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown);display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index);visibility:hidden}.menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-app-z-index);border-radius:0.25rem}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}.menu-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}.menu-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}.menu-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([open]) .menu-container{visibility:visible}.menu-container--active{visibility:visible}.input .calcite-input__wrapper{margin-block-start:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{inset-block-start:1.5rem;padding-inline-start:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{block-size:0.75rem;inline-size:0.75rem;min-inline-size:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{inset-block-start:2.25rem;padding-inline:0.875rem}:host([range][layout=vertical][open]) .vertical-arrow-container{display:none}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{$ as calcite_input_date_picker}
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
|
-
import{a as t}from"./p-
|
|
6
|
+
import{a as t}from"./p-1d088751.js";
|
|
7
7
|
/**!
|
|
8
8
|
* Sortable 1.15.0
|
|
9
9
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
|
-
import{d as t}from"./p-
|
|
6
|
+
import{d as t}from"./p-4b3cc8c2.js";import"./p-845e563d.js";import"./p-a6359343.js";import"./p-1d088751.js";import"./p-b4000dba.js";import"./p-af5bd8e2.js";import"./p-b9028e7d.js";import"./p-41708599.js";import"./p-fd7c9f22.js";import"./p-e24e564d.js";import"./p-017d7f06.js";import"./p-10eb8f57.js";import"./p-dd6a541f.js";import"./p-b09b3788.js";var m={name:"vi",weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:function(t){return t},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"}};t.locale(m,null,!0);export default m;
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
6
|
const n=/firefox/i.test(function(){const n=navigator.userAgentData;return n?.brands?n.brands.map((({brand:n,version:t})=>`${n}/${t}`)).join(" "):navigator.userAgent}()),t=n?new WeakMap:null;function i(){const{disabled:n}=this;n||HTMLElement.prototype.click.call(this)}function o(i){const o=i.target;if(n&&!t.get(o))return;const{disabled:e}=o;e&&i.preventDefault()}const e=["mousedown","mouseup","click"];function a(i){if(n&&!t.get(i.target))return;const{disabled:o}=i.target;o&&(i.stopImmediatePropagation(),i.preventDefault())}const c={capture:!0};function u(n,t=!1){if(n.disabled)return n.el.setAttribute("tabindex","-1"),n.el.setAttribute("aria-disabled","true"),n.el.contains(document.activeElement)&&document.activeElement.blur(),void r(n);s(n),"function"==typeof t?n.el.setAttribute("tabindex",t.call(n)?"0":"-1"):!0===t?n.el.setAttribute("tabindex","0"):!1===t&&n.el.removeAttribute("tabindex"),n.el.removeAttribute("aria-disabled")}function r(t){var u;t.el.click=i,(u=n?d(t):t.el)&&(u.addEventListener("pointerdown",o,c),e.forEach((n=>u.addEventListener(n,a,c))))}function d(n){return t.get(n.el)}function s(t){var i;delete t.el.click,(i=n?d(t):t.el)&&(i.removeEventListener("pointerdown",o,c),e.forEach((n=>i.removeEventListener(n,a,c))))}function f(i){i.disabled&&n&&(t.set(i.el,i.el.parentElement||i.el),r(i))}function b(i){n&&(t.delete(i.el),s(i))}export{f as c,b as d,u}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.21
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as a,a as s}from"./p-
|
|
6
|
+
import{r as t,c as i,h as a,a as s}from"./p-845e563d.js";import{g as e}from"./p-1d088751.js";import{c as n,d as c,u as o}from"./p-b9028e7d.js";import{c as r,d as l,g as h}from"./p-fd7c9f22.js";import{s as d,a as p,c as m}from"./p-e24e564d.js";import{c as b,d as u}from"./p-017d7f06.js";import{c as f}from"./p-10eb8f57.js";import{c as g,s as y,d as v,u as w}from"./p-b09b3788.js";import"./p-b4000dba.js";import"./p-af5bd8e2.js";import"./p-41708599.js";const k=class{constructor(a){t(this,a),this.calciteInlineEditableEditCancel=i(this,"calciteInlineEditableEditCancel",6),this.calciteInlineEditableEditConfirm=i(this,"calciteInlineEditableEditConfirm",6),this.calciteInternalInlineEditableEnableEditingChange=i(this,"calciteInternalInlineEditableEnableEditingChange",6),this.mutationObserver=f("mutation",(()=>this.mutationObserverCallback())),this.enableEditing=()=>{this.valuePriorToEditing=this.inputElement?.value,this.editingEnabled=!0,this.inputElement?.setFocus(),this.calciteInternalInlineEditableEnableEditingChange.emit()},this.disableEditing=()=>{this.editingEnabled=!1},this.cancelEditing=()=>{this.inputElement&&(this.inputElement.value=this.valuePriorToEditing),this.disableEditing(),this.enableEditingButton.setFocus(),!this.editingEnabled&&this.shouldEmitCancel&&this.calciteInlineEditableEditCancel.emit()},this.escapeKeyHandler=async t=>{t.defaultPrevented||("Escape"===t.key&&(t.preventDefault(),this.cancelEditing()),"Tab"===t.key&&this.shouldShowControls&&(t.shiftKey||t.target!==this.inputElement||(t.preventDefault(),this.cancelEditingButton.setFocus()),t.shiftKey&&t.target===this.cancelEditingButton&&(t.preventDefault(),this.inputElement?.setFocus())))},this.cancelEditingHandler=async t=>{t.preventDefault(),this.cancelEditing()},this.enableEditingHandler=async t=>{this.disabled||t.target===this.cancelEditingButton||t.target===this.confirmEditingButton||(t.preventDefault(),this.editingEnabled||this.enableEditing())},this.confirmChangesHandler=async t=>{t.preventDefault(),this.calciteInlineEditableEditConfirm.emit();try{this.afterConfirm&&(this.loading=!0,await this.afterConfirm(),this.disableEditing(),this.enableEditingButton.setFocus())}catch(t){}finally{this.loading=!1}},this.disabled=!1,this.editingEnabled=!1,this.loading=!1,this.controls=!1,this.scale=void 0,this.afterConfirm=void 0,this.messages=void 0,this.messageOverrides=void 0,this.defaultMessages=void 0,this.effectiveLocale=void 0}disabledWatcher(t){this.inputElement&&(this.inputElement.disabled=t)}editingEnabledWatcher(t,i){this.inputElement&&(this.inputElement.editingEnabled=t),!t&&i&&(this.shouldEmitCancel=!0)}onMessagesChange(){}connectedCallback(){n(this),r(this),b(this),g(this),this.mutationObserver?.observe(this.el,{childList:!0}),this.mutationObserverCallback()}async componentWillLoad(){d(this),await y(this)}componentDidLoad(){p(this)}disconnectedCallback(){c(this),l(this),u(this),v(this),this.mutationObserver?.disconnect()}componentDidRender(){o(this)}render(){return a("div",{class:"wrapper",onClick:this.enableEditingHandler,onKeyDown:this.escapeKeyHandler},a("div",{class:"input-wrapper"},a("slot",null)),a("div",{class:"controls-wrapper"},a("calcite-button",{appearance:"transparent",class:"enable-editing-button",disabled:this.disabled,iconStart:"pencil",kind:"neutral",label:this.messages.enableEditing,onClick:this.enableEditingHandler,scale:this.scale,style:{opacity:this.editingEnabled?"0":"1",width:this.editingEnabled?"0":"inherit"},type:"button",ref:t=>this.enableEditingButton=t}),this.shouldShowControls&&[a("div",{class:"cancel-editing-button-wrapper"},a("calcite-button",{appearance:"transparent",class:"cancel-editing-button",disabled:this.disabled,iconStart:"x",kind:"neutral",label:this.messages.cancelEditing,onClick:this.cancelEditingHandler,scale:this.scale,type:"button",ref:t=>this.cancelEditingButton=t})),a("calcite-button",{appearance:"solid",class:"confirm-changes-button",disabled:this.disabled,iconStart:"check",kind:"brand",label:this.messages.confirmChanges,loading:this.loading,onClick:this.confirmChangesHandler,scale:this.scale,type:"button",ref:t=>this.confirmEditingButton=t})]))}blurHandler(){this.controls||this.disableEditing()}effectiveLocaleChange(){w(this,this.effectiveLocale)}async setFocus(){await m(this),this.el?.focus()}mutationObserverCallback(){this.updateSlottedInput(),this.scale=this.scale||this.inputElement?.scale}onLabelClick(){this.setFocus()}updateSlottedInput(){const t=e(this.el,{matches:"calcite-input"});this.inputElement=t,t&&(this.inputElement.disabled=this.disabled,this.inputElement.label=this.inputElement.label||h(this))}get shouldShowControls(){return this.editingEnabled&&this.controls}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{disabled:["disabledWatcher"],editingEnabled:["editingEnabledWatcher"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};k.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([scale=s]) .controls-wrapper{block-size:1.5rem}:host([scale=m]) .controls-wrapper{block-size:2rem}:host([scale=l]) .controls-wrapper{block-size:2.75rem}:host(:not([editing-enabled]):not([disabled])) .wrapper:hover{background-color:var(--calcite-ui-foreground-2)}.wrapper{box-sizing:border-box;display:flex;justify-content:space-between;background-color:var(--calcite-ui-foreground-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.wrapper .input-wrapper{flex:1 1 0%}.controls-wrapper{display:flex}:host([disabled]) .cancel-editing-button-wrapper{border-color:var(--calcite-ui-border-2)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}";export{k as calcite_inline_editable}
|