@esri/calcite-components 1.0.0-beta.79 → 1.0.0-beta.82
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/assets/icon/compactness16.json +1 -0
- package/dist/calcite/assets/icon/compactness24.json +1 -0
- package/dist/calcite/assets/icon/compactness32.json +1 -0
- package/dist/calcite/assets/icon/configure16.json +1 -0
- package/dist/calcite/assets/icon/configure24.json +1 -0
- package/dist/calcite/assets/icon/configure32.json +1 -0
- package/dist/calcite/assets/icon/debugScript16.json +1 -0
- package/dist/calcite/assets/icon/debugScript24.json +1 -0
- package/dist/calcite/assets/icon/debugScript32.json +1 -0
- package/dist/calcite/assets/icon/dissolveFeatures16.json +1 -0
- package/dist/calcite/assets/icon/dissolveFeatures24.json +1 -0
- package/dist/calcite/assets/icon/dissolveFeatures32.json +1 -0
- package/dist/calcite/assets/icon/distanceType16.json +1 -0
- package/dist/calcite/assets/icon/distanceType24.json +1 -0
- package/dist/calcite/assets/icon/distanceType32.json +1 -0
- package/dist/calcite/assets/icon/fileEcd16.json +1 -0
- package/dist/calcite/assets/icon/fileEcd24.json +1 -0
- package/dist/calcite/assets/icon/fileEcd32.json +1 -0
- package/dist/calcite/assets/icon/gridDiamond16.json +1 -0
- package/dist/calcite/assets/icon/gridDiamond24.json +1 -0
- package/dist/calcite/assets/icon/gridDiamond32.json +1 -0
- package/dist/calcite/assets/icon/gridHexagon16.json +1 -0
- package/dist/calcite/assets/icon/gridHexagon24.json +1 -0
- package/dist/calcite/assets/icon/gridHexagon32.json +1 -0
- package/dist/calcite/assets/icon/gridTriangle16.json +1 -0
- package/dist/calcite/assets/icon/gridTriangle24.json +1 -0
- package/dist/calcite/assets/icon/gridTriangle32.json +1 -0
- package/dist/calcite/assets/icon/insets16.json +1 -0
- package/dist/calcite/assets/icon/insets24.json +1 -0
- package/dist/calcite/assets/icon/insets32.json +1 -0
- package/dist/calcite/assets/icon/maximumTerritoryDistance16.json +1 -0
- package/dist/calcite/assets/icon/maximumTerritoryDistance24.json +1 -0
- package/dist/calcite/assets/icon/maximumTerritoryDistance32.json +1 -0
- package/dist/calcite/assets/icon/minDistanceBetweenCenters16.json +1 -0
- package/dist/calcite/assets/icon/minDistanceBetweenCenters24.json +1 -0
- package/dist/calcite/assets/icon/minDistanceBetweenCenters32.json +1 -0
- package/dist/calcite/assets/icon/numberOfTerritories16.json +1 -0
- package/dist/calcite/assets/icon/numberOfTerritories24.json +1 -0
- package/dist/calcite/assets/icon/numberOfTerritories32.json +1 -0
- package/dist/calcite/assets/icon/overlapFeatures16.json +1 -0
- package/dist/calcite/assets/icon/overlapFeatures24.json +1 -0
- package/dist/calcite/assets/icon/overlapFeatures32.json +1 -0
- package/dist/calcite/assets/icon/profileVariables16.json +1 -0
- package/dist/calcite/assets/icon/profileVariables24.json +1 -0
- package/dist/calcite/assets/icon/profileVariables32.json +1 -0
- package/dist/calcite/assets/icon/rasterAnalysis16.json +1 -0
- package/dist/calcite/assets/icon/rasterAnalysis24.json +1 -0
- package/dist/calcite/assets/icon/rasterAnalysis32.json +1 -0
- package/dist/calcite/assets/icon/recurrence16.json +1 -0
- package/dist/calcite/assets/icon/recurrence24.json +1 -0
- package/dist/calcite/assets/icon/recurrence32.json +1 -0
- package/dist/calcite/assets/icon/splitFeatures16.json +1 -0
- package/dist/calcite/assets/icon/splitFeatures24.json +1 -0
- package/dist/calcite/assets/icon/splitFeatures32.json +1 -0
- package/dist/calcite/assets/icon/territoryBufferDistance16.json +1 -0
- package/dist/calcite/assets/icon/territoryBufferDistance24.json +1 -0
- package/dist/calcite/assets/icon/territoryBufferDistance32.json +1 -0
- package/dist/calcite/assets/icon/testData16.json +1 -0
- package/dist/calcite/assets/icon/testData24.json +1 -0
- package/dist/calcite/assets/icon/testData32.json +1 -0
- package/dist/calcite/calcite.esm.js +2 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/index.esm.js +1 -0
- package/dist/calcite/p-01386e9f.entry.js +6 -0
- package/dist/calcite/p-01dc5605.entry.js +6 -0
- package/dist/calcite/p-0349dbb1.system.js +6 -0
- package/dist/calcite/{p-cbc6fee6.entry.js → p-03f1df01.entry.js} +2 -1
- package/dist/calcite/p-06320e6a.entry.js +6 -0
- package/dist/calcite/p-06d14664.system.entry.js +6 -0
- package/dist/calcite/p-0985e4df.system.entry.js +6 -0
- package/dist/calcite/p-09c7a130.system.entry.js +6 -0
- package/dist/calcite/p-0c41044b.entry.js +6 -0
- package/dist/calcite/{p-079a3322.js → p-0dbcb343.js} +1 -0
- package/dist/calcite/{p-2d09cc25.js → p-1094dab2.js} +1 -0
- package/dist/calcite/{p-569150ab.system.entry.js → p-11d0e13f.system.entry.js} +2 -1
- package/dist/calcite/p-164bea30.system.js +6 -0
- package/dist/calcite/{p-63624a01.js → p-18bcf729.js} +1 -0
- package/dist/calcite/{p-97904e9a.entry.js → p-1af2a45c.entry.js} +2 -1
- package/dist/calcite/p-20f86b1d.entry.js +6 -0
- package/dist/calcite/p-21dbd253.system.js +6 -0
- package/dist/calcite/{p-b2493735.entry.js → p-23a643c6.entry.js} +2 -1
- package/dist/calcite/{p-496e907a.system.entry.js → p-23ab0d5a.system.entry.js} +2 -1
- package/dist/calcite/{p-78bc502f.entry.js → p-2681265e.entry.js} +2 -1
- package/dist/calcite/p-27de1d41.entry.js +6 -0
- package/dist/calcite/{p-1aded388.system.entry.js → p-28dc602c.system.entry.js} +2 -1
- package/dist/calcite/p-2e9f9de6.system.entry.js +6 -0
- package/dist/calcite/{p-6ed27595.system.entry.js → p-2f977a66.system.entry.js} +2 -1
- package/dist/calcite/{p-7b8707b2.system.js → p-30dfc127.system.js} +1 -0
- package/dist/calcite/p-33694839.js +12 -0
- package/dist/calcite/{p-31c58f25.entry.js → p-33d317d6.entry.js} +2 -1
- package/dist/calcite/p-358263ac.system.js +6 -0
- package/dist/calcite/{p-7ed4c551.system.js → p-3819513d.system.js} +1 -0
- package/dist/calcite/p-3b01dd13.system.entry.js +6 -0
- package/dist/calcite/{p-cafd98e8.entry.js → p-3c3ec245.entry.js} +2 -1
- package/dist/calcite/p-3c78a381.entry.js +6 -0
- package/dist/calcite/p-3de000e5.system.js +6 -0
- package/dist/calcite/p-3e21c354.entry.js +6 -0
- package/dist/calcite/{p-3b4662a5.entry.js → p-3e92df28.entry.js} +2 -1
- package/dist/calcite/p-410b7a2a.system.entry.js +6 -0
- package/dist/calcite/{p-588bfa74.system.js → p-43d72920.system.js} +2 -1
- package/dist/calcite/{p-4eae61c5.entry.js → p-44061788.entry.js} +2 -1
- package/dist/calcite/{p-ef17447d.system.entry.js → p-446cb0a3.system.entry.js} +2 -1
- package/dist/calcite/{p-3e9d96c6.system.entry.js → p-474380ed.system.entry.js} +2 -1
- package/dist/calcite/{p-ea4119b1.system.entry.js → p-4a6fda6a.system.entry.js} +2 -1
- package/dist/calcite/{p-bdcb43b1.system.entry.js → p-4c3ce7bd.system.entry.js} +2 -1
- package/dist/calcite/{p-3cdee187.system.entry.js → p-4cd8e82e.system.entry.js} +2 -1
- package/dist/calcite/{p-02d7cf64.system.entry.js → p-4f823472.system.entry.js} +2 -1
- package/dist/calcite/p-508a7e13.system.entry.js +6 -0
- package/dist/calcite/p-5234dd2e.system.entry.js +6 -0
- package/dist/calcite/{p-3c34f20d.system.js → p-55057483.system.js} +2 -1
- package/dist/calcite/{p-dd460534.system.entry.js → p-56096486.system.entry.js} +2 -1
- package/dist/calcite/p-5adf6e11.entry.js +6 -0
- package/dist/calcite/{p-765c9bef.entry.js → p-62e44703.entry.js} +2 -1
- package/dist/calcite/{p-8e0dd0af.system.entry.js → p-64f15878.system.entry.js} +2 -1
- package/dist/calcite/p-6592ebdb.system.entry.js +6 -0
- package/dist/calcite/p-66a7f499.system.entry.js +6 -0
- package/dist/calcite/p-676b5b1e.entry.js +6 -0
- package/dist/calcite/{p-3119ffce.system.js → p-68277cce.system.js} +1 -0
- package/dist/calcite/p-6945f08a.system.entry.js +6 -0
- package/dist/calcite/p-697ea587.system.entry.js +6 -0
- package/dist/calcite/p-6a27e2d9.entry.js +6 -0
- package/dist/calcite/p-6bf2e610.entry.js +6 -0
- package/dist/calcite/{p-ac4aec20.system.js → p-6ca6734d.system.js} +1 -0
- package/dist/calcite/p-6d1d2449.entry.js +6 -0
- package/dist/calcite/p-6e8677ae.entry.js +6 -0
- package/dist/calcite/{p-b06207bb.js → p-70f33b3e.js} +1 -0
- package/dist/calcite/p-7266932c.js +6 -0
- package/dist/calcite/p-73784058.js +6 -0
- package/dist/calcite/p-751b387d.system.entry.js +6 -0
- package/dist/calcite/p-76e2d427.system.js +6 -0
- package/dist/calcite/{p-18be4438.entry.js → p-792fd998.entry.js} +2 -1
- package/dist/calcite/{p-cc6e7726.entry.js → p-7ae35ad7.entry.js} +2 -1
- package/dist/calcite/p-7dcdfeac.entry.js +6 -0
- package/dist/calcite/{p-6b5776af.js → p-7f183647.js} +1 -0
- package/dist/calcite/{p-5bb4d012.entry.js → p-7f556dbd.entry.js} +2 -1
- package/dist/calcite/p-80d62897.entry.js +6 -0
- package/dist/calcite/{p-f344e163.entry.js → p-80e8926a.entry.js} +2 -1
- package/dist/calcite/p-82da0c62.entry.js +6 -0
- package/dist/calcite/p-83192ea5.system.js +12 -0
- package/dist/calcite/p-8319da8e.entry.js +6 -0
- package/dist/calcite/{p-963e9aec.system.entry.js → p-83cc50f2.system.entry.js} +2 -1
- package/dist/calcite/p-84cd0598.system.entry.js +6 -0
- package/dist/calcite/p-8505461f.entry.js +6 -0
- package/dist/calcite/p-86904d57.entry.js +6 -0
- package/dist/calcite/{p-2fae8516.system.entry.js → p-87698ac7.system.entry.js} +2 -1
- package/dist/calcite/{p-69d2d9cf.system.entry.js → p-87aae2e3.system.entry.js} +2 -1
- package/dist/calcite/{p-e095517f.system.js → p-88147c4a.system.js} +1 -0
- package/dist/calcite/{p-7fc69a9d.js → p-89b2f38d.js} +1 -0
- package/dist/calcite/p-8a87f2b7.system.entry.js +6 -0
- package/dist/calcite/{p-f78023f1.system.js → p-8b0ea955.system.js} +1 -0
- package/dist/calcite/p-8e0a0d74.system.entry.js +6 -0
- package/dist/calcite/p-9141d57e.entry.js +6 -0
- package/dist/calcite/p-954973e6.system.entry.js +6 -0
- package/dist/calcite/p-9802e5ca.entry.js +6 -0
- package/dist/calcite/p-9969deb4.system.entry.js +6 -0
- package/dist/calcite/{p-4570cf6c.js → p-997202fe.js} +2 -1
- package/dist/calcite/{p-03c92ad2.entry.js → p-9987d5e9.entry.js} +2 -1
- package/dist/calcite/p-9d9629d5.system.entry.js +6 -0
- package/dist/calcite/p-9f50e2fe.system.entry.js +6 -0
- package/dist/calcite/{p-c51699d3.system.js → p-a0f7fe5b.system.js} +3 -2
- package/dist/calcite/p-a1076e59.system.js +6 -0
- package/dist/calcite/p-a1f93b32.js +6 -0
- package/dist/calcite/{p-1fc943d5.system.entry.js → p-a3074bb4.system.entry.js} +2 -1
- package/dist/calcite/{p-4de6f4fd.system.js → p-a3d47df8.system.js} +1 -0
- package/dist/calcite/{p-65dbbfb5.system.js → p-a4729c51.system.js} +2 -1
- package/dist/calcite/{p-9ac86d6a.entry.js → p-a56b2d66.entry.js} +2 -1
- package/dist/calcite/{p-c2adeae4.entry.js → p-a66f170f.entry.js} +2 -1
- package/dist/calcite/{p-7bee4942.system.entry.js → p-aaad5997.system.entry.js} +2 -1
- package/dist/calcite/p-aadce719.entry.js +6 -0
- package/dist/calcite/p-ad58c01e.system.js +6 -0
- package/dist/calcite/{p-48637359.system.entry.js → p-aea7886a.system.entry.js} +2 -1
- package/dist/calcite/p-aeaaccdf.entry.js +6 -0
- package/dist/calcite/{p-7432e5ef.system.entry.js → p-b2947a00.system.entry.js} +2 -1
- package/dist/calcite/p-b571cc54.system.entry.js +6 -0
- package/dist/calcite/p-b8132e75.system.entry.js +6 -0
- package/dist/calcite/{p-05bf835f.js → p-bf2fe8b0.js} +2 -1
- package/dist/calcite/p-c665108b.entry.js +6 -0
- package/dist/calcite/{p-5394666a.entry.js → p-c76d3ea1.entry.js} +2 -1
- package/dist/calcite/p-c8919467.entry.js +6 -0
- package/dist/calcite/p-c9235ef4.entry.js +6 -0
- package/dist/calcite/p-c9f57b84.system.entry.js +6 -0
- package/dist/calcite/{p-a117af56.system.js → p-ca9efa2d.system.js} +1 -0
- package/dist/calcite/p-cc1b5a8a.entry.js +6 -0
- package/dist/calcite/p-cc425495.entry.js +6 -0
- package/dist/calcite/{p-5958acc8.system.js → p-cca09bde.system.js} +1 -0
- package/dist/calcite/p-cfbb3f0f.system.entry.js +6 -0
- package/dist/calcite/{p-e020662f.system.js → p-d04eb041.system.js} +1 -0
- package/dist/calcite/{p-482885ae.system.entry.js → p-d22143e9.system.entry.js} +2 -1
- package/dist/calcite/p-d2e3fa31.system.entry.js +6 -0
- package/dist/calcite/p-d38ffb30.js +6 -0
- package/dist/calcite/{p-cb57638c.system.js → p-d40e595b.system.js} +2 -1
- package/dist/calcite/p-d484cd1b.system.entry.js +6 -0
- package/dist/calcite/p-d6381f74.js +6 -0
- package/dist/calcite/p-d674d041.entry.js +6 -0
- package/dist/calcite/p-d76afd8f.entry.js +6 -0
- package/dist/calcite/p-da7761d3.js +6 -0
- package/dist/calcite/{p-8a63221d.js → p-dc14a2a0.js} +1 -0
- package/dist/calcite/p-dc1d1b83.entry.js +6 -0
- package/dist/calcite/{p-8ab345f2.js → p-dd444456.js} +2 -1
- package/dist/calcite/p-df476c53.system.entry.js +6 -0
- package/dist/calcite/p-e086d5bc.entry.js +6 -0
- package/dist/calcite/{p-a7770d75.entry.js → p-e0fb9338.entry.js} +2 -1
- package/dist/calcite/{p-34730e94.entry.js → p-e2bc1677.entry.js} +2 -1
- package/dist/calcite/{p-1d6404b5.system.js → p-e3ee7868.system.js} +1 -0
- package/dist/calcite/p-e45b2203.entry.js +6 -0
- package/dist/calcite/p-e575643a.js +6 -0
- package/dist/calcite/p-e68bfc88.system.entry.js +6 -0
- package/dist/calcite/p-e9357dcc.system.entry.js +6 -0
- package/dist/calcite/p-e95c755c.entry.js +6 -0
- package/dist/calcite/p-e9acab15.entry.js +6 -0
- package/dist/calcite/{p-0a5d059d.js → p-e9e1dee1.js} +1 -0
- package/dist/calcite/p-ed7aab50.system.entry.js +6 -0
- package/dist/calcite/p-edc5bf01.js +6 -0
- package/dist/calcite/p-ee5494db.system.entry.js +6 -0
- package/dist/calcite/{p-bd38ff21.js → p-ee9b4197.js} +1 -0
- package/dist/calcite/{p-052ba882.system.entry.js → p-ef059155.system.entry.js} +2 -1
- package/dist/calcite/p-f383e414.js +6 -0
- package/dist/calcite/{p-e66a8ca1.system.entry.js → p-f5394fa4.system.entry.js} +2 -1
- package/dist/calcite/p-f74193a3.js +6 -0
- package/dist/calcite/{p-6a541e77.system.js → p-f86fd5f9.system.js} +2 -1
- package/dist/calcite/p-f8d59d84.entry.js +6 -0
- package/dist/calcite/{p-8a7596e3.entry.js → p-fa2ce2ae.entry.js} +2 -1
- package/dist/calcite/p-faeb976d.system.entry.js +6 -0
- package/dist/calcite/p-fc2144e0.system.entry.js +6 -0
- package/dist/calcite/p-fcac8f9c.system.entry.js +6 -0
- package/dist/calcite/{p-a11ee541.system.entry.js → p-fd5d23d1.system.entry.js} +2 -1
- package/dist/calcite/p-fe972352.js +6 -0
- package/dist/cjs/{ExpandToggle-f7682a15.js → ExpandToggle-8c61677e.js} +6 -5
- package/dist/cjs/{Heading-ec707493.js → Heading-0cb5902d.js} +2 -1
- package/dist/cjs/{array-a5dedf5a.js → array-f1fe66d8.js} +1 -0
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +5 -4
- package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -21
- package/dist/cjs/calcite-action-group.cjs.entry.js +8 -7
- package/dist/cjs/calcite-action-menu.cjs.entry.js +26 -23
- package/dist/cjs/calcite-action-pad.cjs.entry.js +13 -22
- package/dist/cjs/calcite-action.cjs.entry.js +7 -4
- package/dist/cjs/calcite-alert.cjs.entry.js +7 -6
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -5
- package/dist/cjs/calcite-block_2.cjs.entry.js +20 -11
- package/dist/cjs/calcite-button.cjs.entry.js +19 -17
- package/dist/cjs/calcite-card.cjs.entry.js +7 -6
- package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -8
- package/dist/cjs/calcite-chip.cjs.entry.js +13 -11
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +1354 -1367
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +97 -55
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +44 -31
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +67 -45
- package/dist/cjs/calcite-fab.cjs.entry.js +5 -4
- package/dist/cjs/calcite-filter.cjs.entry.js +27 -20
- package/dist/cjs/calcite-flow.cjs.entry.js +4 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +77 -47
- package/dist/cjs/calcite-handle.cjs.entry.js +5 -2
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -5
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +11 -12
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +59 -24
- package/dist/cjs/calcite-input-message.cjs.entry.js +4 -3
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +35 -20
- package/dist/cjs/calcite-input.cjs.entry.js +60 -37
- package/dist/cjs/calcite-label.cjs.entry.js +5 -4
- package/dist/cjs/calcite-link.cjs.entry.js +5 -4
- package/dist/cjs/calcite-list_3.cjs.entry.js +18 -11
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -2
- package/dist/cjs/calcite-modal.cjs.entry.js +8 -7
- package/dist/cjs/calcite-notice.cjs.entry.js +7 -6
- package/dist/cjs/calcite-option_3.cjs.entry.js +8 -7
- package/dist/cjs/calcite-pagination.cjs.entry.js +2 -1
- package/dist/cjs/calcite-panel.cjs.entry.js +35 -11
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +18 -27
- package/dist/cjs/calcite-popover_2.cjs.entry.js +121 -49
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +9 -8
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +8 -7
- package/dist/cjs/calcite-rating.cjs.entry.js +7 -6
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -1
- package/dist/cjs/calcite-shell_3.cjs.entry.js +9 -8
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -4
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -2
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +114 -105
- package/dist/cjs/calcite-switch.cjs.entry.js +9 -7
- package/dist/cjs/calcite-tab_4.cjs.entry.js +79 -62
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -3
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -7
- package/dist/cjs/calcite-tip_3.cjs.entry.js +12 -9
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +163 -137
- package/dist/cjs/calcite-tree_2.cjs.entry.js +15 -14
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +27 -26
- package/dist/cjs/calcite.cjs.js +4 -3
- package/dist/cjs/{conditionalSlot-64f9bfd3.js → conditionalSlot-ba5cd797.js} +3 -2
- package/dist/cjs/{debounce-95979061.js → debounce-94d2834e.js} +1 -0
- package/dist/cjs/{dom-f3df220d.js → dom-9ac0341c.js} +20 -2
- package/dist/cjs/{forIn-a5d553af.js → forIn-9f737b26.js} +2 -1
- package/dist/cjs/{form-0ef859c8.js → form-11926121.js} +20 -2
- package/dist/cjs/{guid-b270f0db.js → guid-8b6d6cb4.js} +1 -0
- package/dist/cjs/{index-1af0efd3.js → index-5c65e149.js} +1 -3
- package/dist/cjs/index.cjs.js +1 -0
- package/dist/cjs/{interactive-87406231.js → interactive-e294111f.js} +1 -0
- package/dist/cjs/{interfaces-7216af30.js → interfaces-083f4502.js} +1 -0
- package/dist/cjs/{label-980508de.js → label-165fc611.js} +19 -18
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/{locale-02462821.js → locale-f2ebe4fa.js} +25 -24
- package/dist/cjs/{math-145c80e2.js → math-9d6de52c.js} +1 -0
- package/dist/cjs/{number-e813e801.js → number-364babbc.js} +2 -1
- package/dist/cjs/{observers-79bfb8bc.js → observers-d9fdf006.js} +1 -0
- package/dist/cjs/{popper-64d89ef7.js → popper-3f97eb01.js} +29 -3
- package/dist/cjs/{resources-ac80e82c.js → resources-1a214670.js} +1 -0
- package/dist/cjs/{resources-7811eb2c.js → resources-247d05d5.js} +3 -2
- package/dist/cjs/{resources-7d5449fb.js → resources-5da94c46.js} +1 -0
- package/dist/cjs/{resources-daf15d54.js → resources-684ec2e5.js} +20 -6
- package/dist/cjs/{sortable.esm-d7a4560b.js → sortable.esm-0005295a.js} +63 -54
- package/dist/cjs/{utils-6579522f.js → utils-51c079f6.js} +1 -0
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/accordion/accordion.js +1 -0
- package/dist/collection/components/accordion/interfaces.js +1 -0
- package/dist/collection/components/accordion-item/accordion-item.js +3 -2
- package/dist/collection/components/action/action.js +3 -1
- package/dist/collection/components/action/resources.js +1 -0
- package/dist/collection/components/action-bar/action-bar.js +6 -12
- package/dist/collection/components/action-bar/resources.js +1 -0
- package/dist/collection/components/action-bar/utils.js +1 -0
- package/dist/collection/components/action-group/action-group.js +1 -0
- package/dist/collection/components/action-group/resources.js +1 -0
- package/dist/collection/components/action-menu/action-menu.js +24 -21
- package/dist/collection/components/action-menu/resources.js +1 -0
- package/dist/collection/components/action-pad/action-pad.js +5 -16
- package/dist/collection/components/action-pad/resources.js +1 -0
- package/dist/collection/components/alert/alert.css +2 -6
- package/dist/collection/components/alert/alert.js +3 -2
- package/dist/collection/components/alert/interfaces.js +1 -0
- package/dist/collection/components/alert/resources.js +1 -0
- package/dist/collection/components/avatar/avatar.css +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -0
- package/dist/collection/components/avatar/utils.js +1 -0
- package/dist/collection/components/block/block.js +19 -8
- package/dist/collection/components/block/resources.js +1 -0
- package/dist/collection/components/block-section/block-section.js +3 -2
- package/dist/collection/components/block-section/interfaces.js +1 -0
- package/dist/collection/components/block-section/resources.js +1 -0
- package/dist/collection/components/button/button.js +16 -13
- package/dist/collection/components/button/interfaces.js +1 -0
- package/dist/collection/components/button/resources.js +1 -0
- package/dist/collection/components/card/card.js +3 -2
- package/dist/collection/components/card/resources.js +1 -0
- package/dist/collection/components/checkbox/checkbox.css +5 -1
- package/dist/collection/components/checkbox/checkbox.js +3 -1
- package/dist/collection/components/chip/chip.css +21 -18
- package/dist/collection/components/chip/chip.js +4 -3
- package/dist/collection/components/chip/interfaces.js +1 -0
- package/dist/collection/components/chip/resources.js +4 -2
- package/dist/collection/components/color-picker/color-picker.css +2 -9
- package/dist/collection/components/color-picker/color-picker.js +19 -18
- package/dist/collection/components/color-picker/interfaces.js +1 -0
- package/dist/collection/components/color-picker/resources.js +1 -0
- package/dist/collection/components/color-picker/utils.js +1 -0
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +45 -49
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -0
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -0
- package/dist/collection/components/color-picker-swatch/resources.js +1 -0
- package/dist/collection/components/combobox/combobox.js +89 -44
- package/dist/collection/components/combobox/interfaces.js +1 -0
- package/dist/collection/components/combobox/resources.js +5 -0
- package/dist/collection/components/combobox/utils.js +1 -0
- package/dist/collection/components/combobox-item/combobox-item.css +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +2 -1
- package/dist/collection/components/combobox-item/resources.js +1 -0
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +2 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -0
- package/dist/collection/components/date-picker/date-picker.js +7 -2
- package/dist/collection/components/date-picker/interfaces.js +1 -0
- package/dist/collection/components/date-picker/resources.js +1 -0
- package/dist/collection/components/date-picker/utils.js +1 -0
- package/dist/collection/components/date-picker-day/date-picker-day.css +0 -2
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -0
- package/dist/collection/components/date-picker-month/date-picker-month.js +2 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +28 -19
- package/dist/collection/components/dropdown/dropdown.js +54 -36
- package/dist/collection/components/dropdown/interfaces.js +1 -0
- package/dist/collection/components/dropdown/resources.js +1 -0
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -0
- package/dist/collection/components/dropdown-group/interfaces.js +1 -0
- package/dist/collection/components/dropdown-group/resources.js +1 -0
- package/dist/collection/components/dropdown-item/dropdown-item.js +14 -7
- package/dist/collection/components/dropdown-item/resources.js +1 -0
- package/dist/collection/components/fab/fab.js +1 -0
- package/dist/collection/components/fab/resources.js +1 -0
- package/dist/collection/components/filter/filter.js +20 -15
- package/dist/collection/components/filter/resources.js +3 -2
- package/dist/collection/components/flow/flow.css +1 -9
- package/dist/collection/components/flow/flow.js +1 -0
- package/dist/collection/components/flow/interfaces.js +1 -0
- package/dist/collection/components/flow/resources.js +1 -0
- package/dist/collection/components/functional/ExpandToggle.js +2 -1
- package/dist/collection/components/functional/Heading.js +1 -0
- package/dist/collection/components/graph/graph.js +1 -0
- package/dist/collection/components/graph/interfaces.js +1 -0
- package/dist/collection/components/graph/util.js +1 -0
- package/dist/collection/components/handle/handle.js +3 -1
- package/dist/collection/components/handle/resources.js +1 -0
- package/dist/collection/components/icon/assets/icon/compactness16.json +1 -0
- package/dist/collection/components/icon/assets/icon/compactness24.json +1 -0
- package/dist/collection/components/icon/assets/icon/compactness32.json +1 -0
- package/dist/collection/components/icon/assets/icon/configure16.json +1 -0
- package/dist/collection/components/icon/assets/icon/configure24.json +1 -0
- package/dist/collection/components/icon/assets/icon/configure32.json +1 -0
- package/dist/collection/components/icon/assets/icon/debugScript16.json +1 -0
- package/dist/collection/components/icon/assets/icon/debugScript24.json +1 -0
- package/dist/collection/components/icon/assets/icon/debugScript32.json +1 -0
- package/dist/collection/components/icon/assets/icon/dissolveFeatures16.json +1 -0
- package/dist/collection/components/icon/assets/icon/dissolveFeatures24.json +1 -0
- package/dist/collection/components/icon/assets/icon/dissolveFeatures32.json +1 -0
- package/dist/collection/components/icon/assets/icon/distanceType16.json +1 -0
- package/dist/collection/components/icon/assets/icon/distanceType24.json +1 -0
- package/dist/collection/components/icon/assets/icon/distanceType32.json +1 -0
- package/dist/collection/components/icon/assets/icon/fileEcd16.json +1 -0
- package/dist/collection/components/icon/assets/icon/fileEcd24.json +1 -0
- package/dist/collection/components/icon/assets/icon/fileEcd32.json +1 -0
- package/dist/collection/components/icon/assets/icon/gridDiamond16.json +1 -0
- package/dist/collection/components/icon/assets/icon/gridDiamond24.json +1 -0
- package/dist/collection/components/icon/assets/icon/gridDiamond32.json +1 -0
- package/dist/collection/components/icon/assets/icon/gridHexagon16.json +1 -0
- package/dist/collection/components/icon/assets/icon/gridHexagon24.json +1 -0
- package/dist/collection/components/icon/assets/icon/gridHexagon32.json +1 -0
- package/dist/collection/components/icon/assets/icon/gridTriangle16.json +1 -0
- package/dist/collection/components/icon/assets/icon/gridTriangle24.json +1 -0
- package/dist/collection/components/icon/assets/icon/gridTriangle32.json +1 -0
- package/dist/collection/components/icon/assets/icon/insets16.json +1 -0
- package/dist/collection/components/icon/assets/icon/insets24.json +1 -0
- package/dist/collection/components/icon/assets/icon/insets32.json +1 -0
- package/dist/collection/components/icon/assets/icon/maximumTerritoryDistance16.json +1 -0
- package/dist/collection/components/icon/assets/icon/maximumTerritoryDistance24.json +1 -0
- package/dist/collection/components/icon/assets/icon/maximumTerritoryDistance32.json +1 -0
- package/dist/collection/components/icon/assets/icon/minDistanceBetweenCenters16.json +1 -0
- package/dist/collection/components/icon/assets/icon/minDistanceBetweenCenters24.json +1 -0
- package/dist/collection/components/icon/assets/icon/minDistanceBetweenCenters32.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberOfTerritories16.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberOfTerritories24.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberOfTerritories32.json +1 -0
- package/dist/collection/components/icon/assets/icon/overlapFeatures16.json +1 -0
- package/dist/collection/components/icon/assets/icon/overlapFeatures24.json +1 -0
- package/dist/collection/components/icon/assets/icon/overlapFeatures32.json +1 -0
- package/dist/collection/components/icon/assets/icon/profileVariables16.json +1 -0
- package/dist/collection/components/icon/assets/icon/profileVariables24.json +1 -0
- package/dist/collection/components/icon/assets/icon/profileVariables32.json +1 -0
- package/dist/collection/components/icon/assets/icon/rasterAnalysis16.json +1 -0
- package/dist/collection/components/icon/assets/icon/rasterAnalysis24.json +1 -0
- package/dist/collection/components/icon/assets/icon/rasterAnalysis32.json +1 -0
- package/dist/collection/components/icon/assets/icon/recurrence16.json +1 -0
- package/dist/collection/components/icon/assets/icon/recurrence24.json +1 -0
- package/dist/collection/components/icon/assets/icon/recurrence32.json +1 -0
- package/dist/collection/components/icon/assets/icon/splitFeatures16.json +1 -0
- package/dist/collection/components/icon/assets/icon/splitFeatures24.json +1 -0
- package/dist/collection/components/icon/assets/icon/splitFeatures32.json +1 -0
- package/dist/collection/components/icon/assets/icon/territoryBufferDistance16.json +1 -0
- package/dist/collection/components/icon/assets/icon/territoryBufferDistance24.json +1 -0
- package/dist/collection/components/icon/assets/icon/territoryBufferDistance32.json +1 -0
- package/dist/collection/components/icon/assets/icon/testData16.json +1 -0
- package/dist/collection/components/icon/assets/icon/testData24.json +1 -0
- package/dist/collection/components/icon/assets/icon/testData32.json +1 -0
- package/dist/collection/components/icon/icon.js +3 -2
- package/dist/collection/components/icon/resources.js +1 -0
- package/dist/collection/components/icon/utils.js +1 -0
- package/dist/collection/components/inline-editable/inline-editable.js +5 -6
- package/dist/collection/components/inline-editable/resources.js +1 -0
- package/dist/collection/components/input/input.js +69 -32
- package/dist/collection/components/input/interfaces.js +1 -0
- package/dist/collection/components/input/resources.js +4 -0
- package/dist/collection/components/input-date-picker/input-date-picker.css +5 -0
- package/dist/collection/components/input-date-picker/input-date-picker.js +81 -17
- package/dist/collection/components/input-message/input-message.js +1 -0
- package/dist/collection/components/input-message/interfaces.js +1 -0
- package/dist/collection/components/input-time-picker/input-time-picker.js +71 -8
- package/dist/collection/components/interfaces.js +1 -0
- package/dist/collection/components/label/label.js +1 -0
- package/dist/collection/components/label/resources.js +1 -0
- package/dist/collection/components/link/link.js +1 -0
- package/dist/collection/components/list/list.js +1 -0
- package/dist/collection/components/list/resources.js +1 -0
- package/dist/collection/components/list-item/list-item.css +17 -1
- package/dist/collection/components/list-item/list-item.js +8 -2
- package/dist/collection/components/list-item/resources.js +3 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -0
- package/dist/collection/components/list-item-group/resources.js +1 -0
- package/dist/collection/components/loader/loader.js +1 -0
- package/dist/collection/components/modal/interfaces.js +1 -0
- package/dist/collection/components/modal/modal.css +1 -37
- package/dist/collection/components/modal/modal.js +2 -1
- package/dist/collection/components/modal/resources.js +1 -0
- package/dist/collection/components/notice/notice.js +1 -0
- package/dist/collection/components/notice/resources.js +1 -0
- package/dist/collection/components/option/option.js +1 -0
- package/dist/collection/components/option-group/option-group.js +1 -0
- package/dist/collection/components/pagination/pagination.js +1 -0
- package/dist/collection/components/pagination/resources.js +1 -0
- package/dist/collection/components/panel/panel.css +1 -4
- package/dist/collection/components/panel/panel.js +47 -5
- package/dist/collection/components/panel/resources.js +1 -0
- package/dist/collection/components/pick-list/pick-list.js +1 -0
- package/dist/collection/components/pick-list/resources.js +1 -0
- package/dist/collection/components/pick-list/shared-list-logic.js +3 -1
- package/dist/collection/components/pick-list/shared-list-render.js +3 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -0
- package/dist/collection/components/pick-list-group/resources.js +1 -0
- package/dist/collection/components/pick-list-item/pick-list-item.css +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +3 -2
- package/dist/collection/components/pick-list-item/resources.js +1 -0
- package/dist/collection/components/popover/PopoverManager.js +64 -0
- package/dist/collection/components/popover/popover.css +1 -1
- package/dist/collection/components/popover/popover.js +56 -16
- package/dist/collection/components/popover/resources.js +2 -1
- package/dist/collection/components/popover-manager/popover-manager.js +32 -44
- package/dist/collection/components/progress/progress.js +1 -0
- package/dist/collection/components/radio-button/radio-button.js +3 -2
- package/dist/collection/components/radio-button/resources.js +1 -0
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -0
- package/dist/collection/components/radio-group/interfaces.js +1 -0
- package/dist/collection/components/radio-group/radio-group.js +3 -4
- package/dist/collection/components/radio-group-item/radio-group-item.js +3 -2
- package/dist/collection/components/radio-group-item/resources.js +1 -0
- package/dist/collection/components/rating/rating.js +1 -0
- package/dist/collection/components/rating/resources.js +1 -0
- package/dist/collection/components/scrim/resources.js +1 -0
- package/dist/collection/components/scrim/scrim.js +1 -0
- package/dist/collection/components/select/resources.js +1 -0
- package/dist/collection/components/select/select.js +3 -4
- package/dist/collection/components/shell/resources.js +1 -0
- package/dist/collection/components/shell/shell.js +1 -0
- package/dist/collection/components/shell-center-row/resources.js +1 -0
- package/dist/collection/components/shell-center-row/shell-center-row.css +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -0
- package/dist/collection/components/shell-panel/resources.js +1 -0
- package/dist/collection/components/shell-panel/shell-panel.css +2 -2
- package/dist/collection/components/shell-panel/shell-panel.js +5 -1
- package/dist/collection/components/slider/slider.css +29 -0
- package/dist/collection/components/slider/slider.js +77 -41
- package/dist/collection/components/sortable-list/resources.js +1 -0
- package/dist/collection/components/sortable-list/sortable-list.js +1 -0
- package/dist/collection/components/split-button/resources.js +1 -0
- package/dist/collection/components/split-button/split-button.js +1 -0
- package/dist/{calcite/p-accdb0ce.js → collection/components/stepper/interfaces.js} +2 -1
- package/dist/collection/components/stepper/stepper.js +75 -54
- package/dist/collection/components/stepper-item/stepper-item.js +74 -74
- package/dist/collection/components/switch/switch.js +5 -3
- package/dist/collection/components/tab/interfaces.js +1 -0
- package/dist/collection/components/tab/tab.js +16 -17
- package/dist/collection/components/tab-nav/tab-nav.js +65 -26
- package/dist/collection/components/tab-title/tab-title.js +57 -25
- package/dist/collection/components/tabs/interfaces.js +1 -0
- package/dist/collection/components/tabs/resources.js +1 -0
- package/dist/collection/components/tabs/tabs.css +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -3
- package/dist/collection/components/tile/resources.js +1 -0
- package/dist/collection/components/tile/tile.css +3 -2
- package/dist/collection/components/tile/tile.js +1 -0
- package/dist/collection/components/tile-select/interfaces.js +1 -0
- package/dist/collection/components/tile-select/resources.js +1 -0
- package/dist/collection/components/tile-select/tile-select.js +1 -0
- package/dist/collection/components/tile-select-group/interfaces.js +1 -0
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -0
- package/dist/collection/components/time-picker/resources.js +1 -0
- package/dist/collection/components/time-picker/time-picker.js +1 -8
- package/dist/collection/components/tip/resources.js +1 -0
- package/dist/collection/components/tip/tip.js +1 -0
- package/dist/collection/components/tip-group/tip-group.js +1 -0
- package/dist/collection/components/tip-manager/resources.js +1 -0
- package/dist/collection/components/tip-manager/tip-manager.css +1 -9
- package/dist/collection/components/tip-manager/tip-manager.js +25 -5
- package/dist/collection/components/tooltip/TooltipManager.js +157 -0
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.css +2 -2
- package/dist/collection/components/tooltip/tooltip.js +8 -11
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +5 -163
- package/dist/collection/components/tree/interfaces.js +1 -0
- package/dist/collection/components/tree/tree.js +12 -11
- package/dist/collection/components/tree-item/interfaces.js +1 -0
- package/dist/collection/components/tree-item/resources.js +1 -0
- package/dist/collection/components/tree-item/tree-item.js +18 -17
- package/dist/collection/components/value-list/resources.js +1 -0
- package/dist/collection/components/value-list/value-list.js +19 -18
- package/dist/collection/components/value-list-item/resources.js +1 -0
- package/dist/collection/components/value-list-item/value-list-item.js +22 -21
- package/dist/collection/utils/array.js +1 -0
- package/dist/collection/utils/conditionalSlot.js +1 -0
- package/dist/collection/utils/date.js +1 -0
- package/dist/collection/utils/dom.js +18 -1
- package/dist/collection/utils/filter.js +2 -1
- package/dist/collection/utils/form.js +16 -0
- package/dist/collection/utils/globalAttributes.js +1 -0
- package/dist/collection/utils/guid.js +1 -0
- package/dist/collection/utils/interactive.js +1 -0
- package/dist/collection/utils/key.js +1 -0
- package/dist/collection/utils/label.js +18 -17
- package/dist/collection/utils/locale.js +25 -23
- package/dist/collection/utils/math.js +1 -0
- package/dist/collection/utils/number.js +2 -1
- package/dist/collection/utils/observers.js +1 -0
- package/dist/collection/utils/popper.js +17 -2
- package/dist/collection/utils/resources.js +1 -0
- package/dist/collection/utils/time.js +1 -0
- package/dist/components/ExpandToggle.js +2 -1
- package/dist/components/Heading.js +1 -0
- package/dist/components/action-group.js +11 -16
- package/dist/components/action-menu.js +28 -31
- package/dist/components/action.js +3 -1
- package/dist/components/array.js +1 -0
- package/dist/components/button.js +14 -12
- package/dist/components/calcite-accordion-item.js +3 -2
- package/dist/components/calcite-accordion.js +1 -0
- package/dist/components/calcite-action-bar.js +18 -30
- package/dist/components/calcite-action-group.js +1 -0
- package/dist/components/calcite-action-menu.js +1 -0
- package/dist/components/calcite-action-pad.js +17 -32
- package/dist/components/calcite-action.js +1 -0
- package/dist/components/calcite-alert.js +4 -3
- package/dist/components/calcite-avatar.js +3 -2
- package/dist/components/calcite-block-section.js +3 -2
- package/dist/components/calcite-block.js +27 -24
- package/dist/components/calcite-button.js +1 -0
- package/dist/components/calcite-card.js +3 -2
- package/dist/components/calcite-checkbox.js +1 -0
- package/dist/components/calcite-chip.js +1 -0
- package/dist/components/calcite-color-picker-hex-input.js +1 -0
- package/dist/components/calcite-color-picker-swatch.js +1 -0
- package/dist/components/calcite-color-picker.js +20 -19
- package/dist/components/calcite-combobox-item-group.js +1 -0
- package/dist/components/calcite-combobox-item.js +2 -1
- package/dist/components/calcite-combobox.js +88 -45
- package/dist/components/calcite-date-picker-day.js +1 -0
- package/dist/components/calcite-date-picker-month-header.js +1 -0
- package/dist/components/calcite-date-picker-month.js +1 -0
- package/dist/components/calcite-date-picker.js +1 -0
- package/dist/components/calcite-dropdown-group.js +1 -0
- package/dist/components/calcite-dropdown-item.js +14 -7
- package/dist/components/calcite-dropdown.js +1 -0
- package/dist/components/calcite-fab.js +1 -0
- package/dist/components/calcite-filter.js +1 -0
- package/dist/components/calcite-flow.js +2 -1
- package/dist/components/calcite-graph.js +1 -0
- package/dist/components/calcite-handle.js +1 -0
- package/dist/components/calcite-icon.js +1 -0
- package/dist/components/calcite-inline-editable.js +5 -6
- package/dist/components/calcite-input-date-picker.js +53 -16
- package/dist/components/calcite-input-message.js +1 -0
- package/dist/components/calcite-input-time-picker.js +31 -8
- package/dist/components/calcite-input.js +1 -0
- package/dist/components/calcite-label.js +1 -0
- package/dist/components/calcite-link.js +1 -0
- package/dist/components/calcite-list-item-group.js +1 -0
- package/dist/components/calcite-list-item.js +11 -4
- package/dist/components/calcite-list.js +1 -0
- package/dist/components/calcite-loader.js +1 -0
- package/dist/components/calcite-modal.js +4 -3
- package/dist/components/calcite-notice.js +1 -0
- package/dist/components/calcite-option-group.js +1 -0
- package/dist/components/calcite-option.js +1 -0
- package/dist/components/calcite-pagination.js +1 -0
- package/dist/components/calcite-panel.js +41 -22
- package/dist/components/calcite-pick-list-group.js +2 -10
- package/dist/components/calcite-pick-list-item.js +1 -0
- package/dist/components/calcite-pick-list.js +2 -1
- package/dist/components/calcite-popover-manager.js +30 -37
- package/dist/components/calcite-popover.js +1 -0
- package/dist/components/calcite-progress.js +1 -0
- package/dist/components/calcite-radio-button-group.js +1 -0
- package/dist/components/calcite-radio-button.js +3 -2
- package/dist/components/calcite-radio-group-item.js +3 -2
- package/dist/components/calcite-radio-group.js +2 -1
- package/dist/components/calcite-rating.js +1 -0
- package/dist/components/calcite-scrim.js +1 -0
- package/dist/components/calcite-select.js +2 -1
- package/dist/components/calcite-shell-center-row.js +2 -1
- package/dist/components/calcite-shell-panel.js +2 -1
- package/dist/components/calcite-shell.js +1 -0
- package/dist/components/calcite-slider.js +69 -39
- package/dist/components/calcite-sortable-list.js +1 -0
- package/dist/components/calcite-split-button.js +1 -0
- package/dist/components/calcite-stepper-item.js +50 -59
- package/dist/components/calcite-stepper.js +63 -44
- package/dist/components/calcite-switch.js +1 -0
- package/dist/components/calcite-tab-nav.js +1 -0
- package/dist/components/calcite-tab-title.js +1 -0
- package/dist/components/calcite-tab.js +1 -0
- package/dist/components/calcite-tabs.js +1 -0
- package/dist/components/calcite-tile-select-group.js +1 -0
- package/dist/components/calcite-tile-select.js +1 -0
- package/dist/components/calcite-tile.js +1 -0
- package/dist/components/calcite-time-picker.js +1 -0
- package/dist/components/calcite-tip-group.js +1 -0
- package/dist/components/calcite-tip-manager.js +8 -5
- package/dist/components/calcite-tip.js +2 -1
- package/dist/components/calcite-tooltip-manager.js +47 -1
- package/dist/components/calcite-tooltip.js +170 -16
- package/dist/components/calcite-tree-item.js +7 -6
- package/dist/components/calcite-tree.js +5 -4
- package/dist/components/calcite-value-list-item.js +11 -10
- package/dist/components/calcite-value-list.js +9 -8
- package/dist/components/checkbox.js +4 -2
- package/dist/components/chip.js +8 -6
- package/dist/components/color-picker-hex-input.js +45 -49
- package/dist/components/color-picker-swatch.js +1337 -1345
- package/dist/components/conditionalSlot.js +1 -0
- package/dist/components/date-picker-day.js +2 -1
- package/dist/components/date-picker-month-header.js +28 -19
- package/dist/components/date-picker-month.js +2 -1
- package/dist/components/date-picker.js +7 -2
- package/dist/components/date.js +1 -0
- package/dist/components/debounce.js +1 -0
- package/dist/components/dom.js +19 -2
- package/dist/components/dropdown.js +51 -35
- package/dist/components/filter.js +21 -14
- package/dist/components/forIn.js +1 -0
- package/dist/components/form.js +18 -2
- package/dist/components/graph.js +1 -0
- package/dist/components/guid.js +1 -0
- package/dist/components/handle.js +3 -1
- package/dist/components/icon.js +3 -2
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/input.js +54 -30
- package/dist/components/interactive.js +1 -0
- package/dist/components/interfaces.js +1 -0
- package/dist/components/interfaces2.js +1 -0
- package/dist/components/label.js +19 -18
- package/dist/components/label2.js +1 -0
- package/dist/components/link.js +1 -0
- package/dist/components/loader.js +1 -0
- package/dist/components/locale.js +25 -24
- package/dist/components/math.js +1 -0
- package/dist/components/number.js +2 -1
- package/dist/components/observers.js +1 -0
- package/dist/components/pick-list-item.js +5 -4
- package/dist/components/popover.js +110 -12
- package/dist/components/popper.js +27 -2
- package/dist/components/progress.js +1 -0
- package/dist/components/resources.js +11 -17
- package/dist/components/resources2.js +8 -5
- package/dist/components/resources3.js +25 -10
- package/dist/components/scrim.js +1 -0
- package/dist/components/shared-list-render.js +7 -5
- package/dist/components/sortable.esm.js +63 -54
- package/dist/components/switch.js +4 -2
- package/dist/components/tab-nav.js +37 -20
- package/dist/components/tab-title.js +30 -23
- package/dist/components/tab.js +15 -16
- package/dist/components/tabs.js +2 -4
- package/dist/components/tile.js +2 -1
- package/dist/components/time-picker.js +2 -7
- package/dist/components/utils.js +1 -0
- package/dist/components/utils2.js +1 -0
- package/dist/custom-elements/index.js +2806 -2434
- package/dist/esm/{ExpandToggle-af224c1e.js → ExpandToggle-1f6d84ba.js} +6 -5
- package/dist/esm/{Heading-d5f1710a.js → Heading-8d613e81.js} +2 -1
- package/dist/esm/{array-91a648e2.js → array-1655bbf7.js} +1 -0
- package/dist/esm/calcite-accordion_2.entry.js +5 -4
- package/dist/esm/calcite-action-bar.entry.js +15 -21
- package/dist/esm/calcite-action-group.entry.js +8 -7
- package/dist/esm/calcite-action-menu.entry.js +26 -23
- package/dist/esm/calcite-action-pad.entry.js +13 -22
- package/dist/esm/calcite-action.entry.js +7 -4
- package/dist/esm/calcite-alert.entry.js +7 -6
- package/dist/esm/calcite-avatar.entry.js +6 -5
- package/dist/esm/calcite-block_2.entry.js +20 -11
- package/dist/esm/calcite-button.entry.js +19 -17
- package/dist/esm/calcite-card.entry.js +7 -6
- package/dist/esm/calcite-checkbox.entry.js +9 -8
- package/dist/esm/calcite-chip.entry.js +13 -11
- package/dist/esm/calcite-color-picker_3.entry.js +1354 -1367
- package/dist/esm/calcite-combobox_3.entry.js +97 -55
- package/dist/esm/calcite-date-picker_4.entry.js +44 -31
- package/dist/esm/calcite-dropdown_3.entry.js +67 -45
- package/dist/esm/calcite-fab.entry.js +5 -4
- package/dist/esm/calcite-filter.entry.js +27 -20
- package/dist/esm/calcite-flow.entry.js +4 -3
- package/dist/esm/calcite-graph_2.entry.js +77 -47
- package/dist/esm/calcite-handle.entry.js +5 -2
- package/dist/esm/calcite-icon.entry.js +6 -5
- package/dist/esm/calcite-inline-editable.entry.js +11 -12
- package/dist/esm/calcite-input-date-picker.entry.js +59 -24
- package/dist/esm/calcite-input-message.entry.js +4 -3
- package/dist/esm/calcite-input-time-picker_2.entry.js +35 -20
- package/dist/esm/calcite-input.entry.js +61 -38
- package/dist/esm/calcite-label.entry.js +5 -4
- package/dist/esm/calcite-link.entry.js +5 -4
- package/dist/esm/calcite-list_3.entry.js +18 -11
- package/dist/esm/calcite-loader.entry.js +3 -2
- package/dist/esm/calcite-modal.entry.js +8 -7
- package/dist/esm/calcite-notice.entry.js +7 -6
- package/dist/esm/calcite-option_3.entry.js +8 -7
- package/dist/esm/calcite-pagination.entry.js +2 -1
- package/dist/esm/calcite-panel.entry.js +35 -11
- package/dist/esm/calcite-pick-list_3.entry.js +13 -22
- package/dist/esm/calcite-popover_2.entry.js +121 -49
- package/dist/esm/calcite-progress.entry.js +2 -1
- package/dist/esm/calcite-radio-button-group.entry.js +3 -2
- package/dist/esm/calcite-radio-button.entry.js +9 -8
- package/dist/esm/calcite-radio-group_2.entry.js +8 -7
- package/dist/esm/calcite-rating.entry.js +7 -6
- package/dist/esm/calcite-scrim.entry.js +2 -1
- package/dist/esm/calcite-shell_3.entry.js +9 -8
- package/dist/esm/calcite-sortable-list.entry.js +5 -4
- package/dist/esm/calcite-split-button.entry.js +3 -2
- package/dist/esm/calcite-stepper_2.entry.js +114 -105
- package/dist/esm/calcite-switch.entry.js +9 -7
- package/dist/esm/calcite-tab_4.entry.js +79 -62
- package/dist/esm/calcite-tile-select_2.entry.js +4 -3
- package/dist/esm/calcite-tile.entry.js +8 -7
- package/dist/esm/calcite-tip_3.entry.js +12 -9
- package/dist/esm/calcite-tooltip_2.entry.js +163 -137
- package/dist/esm/calcite-tree_2.entry.js +15 -14
- package/dist/esm/calcite-value-list_2.entry.js +27 -26
- package/dist/esm/calcite.js +4 -3
- package/dist/esm/{conditionalSlot-67f579ff.js → conditionalSlot-203be745.js} +3 -2
- package/dist/esm/{debounce-79648d42.js → debounce-c4df98cc.js} +1 -0
- package/dist/esm/{dom-e7fa77b9.js → dom-da697a3f.js} +20 -3
- package/dist/esm/{forIn-48d8fb84.js → forIn-9b83dde4.js} +2 -1
- package/dist/esm/{form-5e4609eb.js → form-bca481e1.js} +19 -3
- package/dist/esm/{guid-196bd5ea.js → guid-b4461004.js} +1 -0
- package/dist/esm/{index-bd94948c.js → index-8ece2564.js} +1 -3
- package/dist/esm/index.js +1 -0
- package/dist/esm/{interactive-48b5cc0f.js → interactive-cb5bf285.js} +1 -0
- package/dist/esm/{interfaces-0e5b954c.js → interfaces-f57a0946.js} +1 -0
- package/dist/esm/{label-68f22660.js → label-50132b90.js} +19 -18
- package/dist/esm/loader.js +4 -3
- package/dist/esm/{locale-fc850b7c.js → locale-7ce850e5.js} +25 -24
- package/dist/esm/{math-456207f5.js → math-2e4483eb.js} +1 -0
- package/dist/esm/{number-8779395f.js → number-237e74a9.js} +2 -1
- package/dist/esm/{observers-46118290.js → observers-b198f831.js} +1 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{popper-da45ec93.js → popper-0fd1fd89.js} +28 -3
- package/dist/esm/{resources-027bd8f9.js → resources-3c30f589.js} +1 -0
- package/dist/esm/{resources-cbfcf4a3.js → resources-c4ee68b9.js} +18 -7
- package/dist/esm/{resources-34334875.js → resources-e8f918f0.js} +1 -0
- package/dist/esm/{resources-73dac782.js → resources-f170fbe8.js} +3 -2
- package/dist/esm/{sortable.esm-04824d33.js → sortable.esm-34b12dd8.js} +63 -54
- package/dist/esm/{utils-e84055a3.js → utils-040a2a22.js} +1 -0
- package/dist/esm-es5/{ExpandToggle-af224c1e.js → ExpandToggle-1f6d84ba.js} +2 -1
- package/dist/esm-es5/{Heading-d5f1710a.js → Heading-8d613e81.js} +2 -1
- package/dist/esm-es5/{array-91a648e2.js → array-1655bbf7.js} +1 -0
- package/dist/esm-es5/calcite-accordion_2.entry.js +2 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -1
- package/dist/esm-es5/calcite-action-group.entry.js +2 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +3 -2
- package/dist/esm-es5/calcite-action.entry.js +2 -1
- package/dist/esm-es5/calcite-alert.entry.js +2 -1
- package/dist/esm-es5/calcite-avatar.entry.js +2 -1
- package/dist/esm-es5/calcite-block_2.entry.js +2 -1
- package/dist/esm-es5/calcite-button.entry.js +2 -1
- package/dist/esm-es5/calcite-card.entry.js +2 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +2 -1
- package/dist/esm-es5/calcite-chip.entry.js +2 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -1
- package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -1
- package/dist/esm-es5/calcite-dropdown_3.entry.js +3 -2
- package/dist/esm-es5/calcite-fab.entry.js +2 -1
- package/dist/esm-es5/calcite-filter.entry.js +2 -1
- package/dist/esm-es5/calcite-flow.entry.js +2 -1
- package/dist/esm-es5/calcite-graph_2.entry.js +2 -1
- package/dist/esm-es5/calcite-handle.entry.js +2 -1
- package/dist/esm-es5/calcite-icon.entry.js +2 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -1
- package/dist/esm-es5/calcite-input-message.entry.js +2 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -1
- package/dist/esm-es5/calcite-input.entry.js +2 -1
- package/dist/esm-es5/calcite-label.entry.js +2 -1
- package/dist/esm-es5/calcite-link.entry.js +2 -1
- package/dist/esm-es5/calcite-list_3.entry.js +3 -2
- package/dist/esm-es5/calcite-loader.entry.js +2 -1
- package/dist/esm-es5/calcite-modal.entry.js +3 -2
- package/dist/esm-es5/calcite-notice.entry.js +2 -1
- package/dist/esm-es5/calcite-option_3.entry.js +2 -1
- package/dist/esm-es5/calcite-pagination.entry.js +2 -1
- package/dist/esm-es5/calcite-panel.entry.js +3 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -1
- package/dist/esm-es5/calcite-progress.entry.js +2 -1
- package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -1
- package/dist/esm-es5/calcite-radio-button.entry.js +2 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -1
- package/dist/esm-es5/calcite-rating.entry.js +2 -1
- package/dist/esm-es5/calcite-scrim.entry.js +2 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +2 -1
- package/dist/esm-es5/calcite-sortable-list.entry.js +2 -1
- package/dist/esm-es5/calcite-split-button.entry.js +2 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +3 -2
- package/dist/esm-es5/calcite-switch.entry.js +2 -1
- package/dist/esm-es5/calcite-tab_4.entry.js +2 -1
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -1
- package/dist/esm-es5/calcite-tile.entry.js +2 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +2 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +3 -2
- package/dist/esm-es5/calcite-tree_2.entry.js +2 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +2 -1
- package/dist/esm-es5/calcite.js +2 -1
- package/dist/esm-es5/{conditionalSlot-67f579ff.js → conditionalSlot-203be745.js} +2 -1
- package/dist/esm-es5/{debounce-79648d42.js → debounce-c4df98cc.js} +1 -0
- package/dist/esm-es5/{dom-e7fa77b9.js → dom-da697a3f.js} +2 -1
- package/dist/esm-es5/{forIn-48d8fb84.js → forIn-9b83dde4.js} +2 -1
- package/dist/esm-es5/form-bca481e1.js +6 -0
- package/dist/esm-es5/{guid-196bd5ea.js → guid-b4461004.js} +1 -0
- package/dist/esm-es5/{index-bd94948c.js → index-8ece2564.js} +2 -1
- package/dist/esm-es5/index.js +1 -0
- package/dist/esm-es5/{interactive-48b5cc0f.js → interactive-cb5bf285.js} +1 -0
- package/dist/esm-es5/{interfaces-0e5b954c.js → interfaces-f57a0946.js} +1 -0
- package/dist/esm-es5/label-50132b90.js +6 -0
- package/dist/esm-es5/loader.js +2 -1
- package/dist/esm-es5/locale-7ce850e5.js +6 -0
- package/dist/esm-es5/{math-456207f5.js → math-2e4483eb.js} +1 -0
- package/dist/esm-es5/number-237e74a9.js +6 -0
- package/dist/esm-es5/{observers-46118290.js → observers-b198f831.js} +1 -0
- package/dist/esm-es5/{popper-da45ec93.js → popper-0fd1fd89.js} +2 -1
- package/dist/esm-es5/{resources-027bd8f9.js → resources-3c30f589.js} +1 -0
- package/dist/esm-es5/resources-c4ee68b9.js +6 -0
- package/dist/esm-es5/{resources-34334875.js → resources-e8f918f0.js} +1 -0
- package/dist/esm-es5/{resources-73dac782.js → resources-f170fbe8.js} +3 -2
- package/dist/esm-es5/sortable.esm-34b12dd8.js +12 -0
- package/dist/esm-es5/{utils-e84055a3.js → utils-040a2a22.js} +1 -0
- package/dist/extras/docs-json.json +263 -160
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +1 -0
- package/dist/types/components/accordion/accordion.d.ts +42 -0
- package/dist/types/components/accordion-item/accordion-item.d.ts +54 -0
- package/dist/types/components/action/action.d.ts +75 -0
- package/dist/types/components/action-bar/action-bar.d.ts +69 -0
- package/dist/types/components/action-group/action-group.d.ts +42 -0
- package/dist/types/components/action-menu/action-menu.d.ts +83 -0
- package/dist/types/components/action-pad/action-pad.d.ts +54 -0
- package/dist/types/components/alert/alert.d.ts +83 -0
- package/dist/types/components/avatar/avatar.d.ts +26 -0
- package/dist/types/components/block/block.d.ts +79 -0
- package/dist/types/components/block-section/block-section.d.ts +44 -0
- package/dist/types/components/button/button.d.ts +81 -0
- package/dist/types/components/card/card.d.ts +46 -0
- package/dist/types/components/checkbox/checkbox.d.ts +75 -0
- package/dist/types/components/chip/chip.d.ts +40 -0
- package/dist/types/components/chip/resources.d.ts +3 -2
- package/dist/types/components/color-picker/color-picker.d.ts +233 -0
- package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +53 -0
- package/dist/types/components/color-picker-swatch/color-picker-swatch.d.ts +23 -0
- package/dist/types/components/combobox/combobox.d.ts +189 -0
- package/dist/types/components/combobox/interfaces.d.ts +6 -0
- package/dist/types/components/combobox/resources.d.ts +4 -0
- package/dist/types/components/combobox/utils.d.ts +6 -0
- package/dist/types/components/combobox-item/combobox-item.d.ts +48 -0
- package/dist/types/components/combobox-item-group/combobox-item-group.d.ts +17 -0
- package/dist/types/components/date-picker/date-picker.d.ts +132 -0
- package/dist/types/components/date-picker-day/date-picker-day.d.ts +48 -0
- package/dist/types/components/date-picker-month/date-picker-month.d.ts +97 -0
- package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +59 -0
- package/dist/types/components/dropdown/dropdown.d.ts +112 -0
- package/dist/types/components/dropdown-group/dropdown-group.d.ts +32 -0
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +54 -0
- package/dist/types/components/fab/fab.d.ts +49 -0
- package/dist/types/components/filter/filter.d.ts +59 -0
- package/dist/types/components/filter/resources.d.ts +1 -1
- package/dist/types/components/flow/flow.d.ts +22 -0
- package/dist/types/components/functional/ExpandToggle.d.ts +19 -0
- package/dist/types/components/graph/graph.d.ts +28 -0
- package/dist/types/components/handle/handle.d.ts +22 -0
- package/dist/types/components/icon/icon.d.ts +32 -0
- package/dist/types/components/inline-editable/inline-editable.d.ts +73 -0
- package/dist/types/components/input/input.d.ts +177 -0
- package/dist/types/components/input/resources.d.ts +3 -0
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +195 -0
- package/dist/types/components/input-message/input-message.d.ts +27 -0
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +105 -0
- package/dist/types/components/label/label.d.ts +39 -0
- package/dist/types/components/link/link.d.ts +36 -0
- package/dist/types/components/list/list.d.ts +22 -0
- package/dist/types/components/list-item/list-item.d.ts +42 -0
- package/dist/types/components/list-item/resources.d.ts +1 -0
- package/dist/types/components/list-item-group/list-item-group.d.ts +18 -0
- package/dist/types/components/loader/loader.d.ts +27 -0
- package/dist/types/components/modal/modal.d.ts +89 -0
- package/dist/types/components/notice/notice.d.ts +51 -0
- package/dist/types/components/pagination/pagination.d.ts +51 -0
- package/dist/types/components/panel/panel.d.ts +140 -0
- package/dist/types/components/pick-list/pick-list.d.ts +77 -0
- package/dist/types/components/pick-list/shared-list-logic.d.ts +32 -0
- package/dist/types/components/pick-list/shared-list-render.d.ts +18 -0
- package/dist/types/components/pick-list-group/pick-list-group.d.ts +21 -0
- package/dist/types/components/pick-list-item/pick-list-item.d.ts +108 -0
- package/dist/types/components/popover/PopoverManager.d.ts +10 -0
- package/dist/types/components/popover/popover.d.ts +115 -0
- package/dist/types/components/popover/resources.d.ts +1 -1
- package/dist/types/components/popover-manager/popover-manager.d.ts +23 -0
- package/dist/types/components/progress/progress.d.ts +15 -0
- package/dist/types/components/radio-button/radio-button.d.ts +94 -0
- package/dist/types/components/radio-button-group/radio-button-group.d.ts +34 -0
- package/dist/types/components/radio-group/radio-group.d.ts +58 -0
- package/dist/types/components/radio-group-item/radio-group-item.d.ts +24 -0
- package/dist/types/components/rating/rating.d.ts +62 -0
- package/dist/types/components/scrim/scrim.d.ts +17 -0
- package/dist/types/components/select/select.d.ts +77 -0
- package/dist/types/components/shell/shell.d.ts +24 -0
- package/dist/types/components/shell-center-row/shell-center-row.d.ts +25 -0
- package/dist/types/components/shell-panel/shell-panel.d.ts +70 -0
- package/dist/types/components/slider/slider.d.ts +197 -0
- package/dist/types/components/sortable-list/sortable-list.d.ts +52 -0
- package/dist/types/components/split-button/split-button.d.ts +56 -0
- package/dist/types/components/stepper/interfaces.d.ts +10 -0
- package/dist/types/components/stepper/stepper.d.ts +62 -0
- package/dist/types/components/stepper-item/stepper-item.d.ts +66 -0
- package/dist/types/components/switch/switch.d.ts +45 -0
- package/dist/types/components/tab/tab.d.ts +41 -0
- package/dist/types/components/tab-nav/tab-nav.d.ts +76 -0
- package/dist/types/components/tab-title/tab-title.d.ts +91 -0
- package/dist/types/components/tabs/tabs.d.ts +62 -0
- package/dist/types/components/tile/tile.d.ts +38 -0
- package/dist/types/components/tile-select/tile-select.d.ts +59 -0
- package/dist/types/components/tile-select-group/tile-select-group.d.ts +15 -0
- package/dist/types/components/time-picker/time-picker.d.ts +136 -0
- package/dist/types/components/tip/tip.d.ts +47 -0
- package/dist/types/components/tip-manager/tip-manager.d.ts +70 -0
- package/dist/types/components/tooltip/TooltipManager.d.ts +27 -0
- package/dist/types/components/tooltip/resources.d.ts +0 -1
- package/dist/types/components/tooltip/tooltip.d.ts +58 -0
- package/dist/types/components/tooltip-manager/tooltip-manager.d.ts +13 -0
- package/dist/types/components/tree/interfaces.d.ts +10 -0
- package/dist/types/components/tree/tree.d.ts +39 -0
- package/dist/types/components/tree-item/tree-item.d.ts +60 -0
- package/dist/types/components/value-list/value-list.d.ts +92 -0
- package/dist/types/components/value-list-item/value-list-item.d.ts +81 -0
- package/dist/types/components.d.ts +114 -63
- package/dist/types/preact.d.ts +8 -4
- package/dist/types/utils/dom.d.ts +10 -2
- package/dist/types/utils/form.d.ts +20 -5
- package/dist/types/utils/label.d.ts +41 -0
- package/dist/types/utils/locale.d.ts +1 -0
- package/dist/types/utils/popper.d.ts +3 -2
- package/hydrate/index.d.ts +1 -1
- package/hydrate/index.js +2825 -2439
- package/package.json +38 -39
- package/readme.md +4 -5
- package/dist/calcite/p-07f1f162.system.entry.js +0 -5
- package/dist/calcite/p-1263bcc0.entry.js +0 -5
- package/dist/calcite/p-184049cb.entry.js +0 -5
- package/dist/calcite/p-193749c1.entry.js +0 -5
- package/dist/calcite/p-1aeca42a.system.entry.js +0 -5
- package/dist/calcite/p-1b1bca2d.entry.js +0 -5
- package/dist/calcite/p-23145377.entry.js +0 -5
- package/dist/calcite/p-28c333d0.entry.js +0 -5
- package/dist/calcite/p-2bcaed33.entry.js +0 -5
- package/dist/calcite/p-2dd22e8c.system.entry.js +0 -5
- package/dist/calcite/p-32d6b962.entry.js +0 -5
- package/dist/calcite/p-32efc4cd.system.entry.js +0 -5
- package/dist/calcite/p-364db271.entry.js +0 -5
- package/dist/calcite/p-3915705c.entry.js +0 -5
- package/dist/calcite/p-3b707a1c.system.entry.js +0 -5
- package/dist/calcite/p-3e149640.system.entry.js +0 -5
- package/dist/calcite/p-3ea157ba.system.entry.js +0 -5
- package/dist/calcite/p-42227a04.entry.js +0 -5
- package/dist/calcite/p-426f011a.entry.js +0 -5
- package/dist/calcite/p-4696e56f.entry.js +0 -5
- package/dist/calcite/p-4730df46.js +0 -5
- package/dist/calcite/p-47d38839.entry.js +0 -5
- package/dist/calcite/p-4aecbaef.entry.js +0 -5
- package/dist/calcite/p-4afb5a1b.system.entry.js +0 -5
- package/dist/calcite/p-54c49493.entry.js +0 -5
- package/dist/calcite/p-55e1a3a0.system.entry.js +0 -5
- package/dist/calcite/p-57e0428a.system.entry.js +0 -5
- package/dist/calcite/p-58adb34d.system.entry.js +0 -5
- package/dist/calcite/p-5a8829cd.entry.js +0 -5
- package/dist/calcite/p-614d8925.js +0 -5
- package/dist/calcite/p-6261469d.entry.js +0 -5
- package/dist/calcite/p-6ab3e489.entry.js +0 -5
- package/dist/calcite/p-6b7b23d0.js +0 -5
- package/dist/calcite/p-6c4a7041.system.entry.js +0 -5
- package/dist/calcite/p-6e0103f5.system.entry.js +0 -5
- package/dist/calcite/p-6fba3e1b.system.entry.js +0 -5
- package/dist/calcite/p-7247b667.system.entry.js +0 -5
- package/dist/calcite/p-7260c869.system.entry.js +0 -5
- package/dist/calcite/p-73d23656.entry.js +0 -5
- package/dist/calcite/p-7c88d545.js +0 -5
- package/dist/calcite/p-7dfd6480.system.entry.js +0 -5
- package/dist/calcite/p-824da4be.entry.js +0 -5
- package/dist/calcite/p-867f7b7a.system.entry.js +0 -5
- package/dist/calcite/p-872e82a6.system.entry.js +0 -5
- package/dist/calcite/p-87888359.entry.js +0 -5
- package/dist/calcite/p-895d22f3.entry.js +0 -5
- package/dist/calcite/p-8f3a3e4e.js +0 -5
- package/dist/calcite/p-9385e4b4.system.js +0 -5
- package/dist/calcite/p-9940b82a.system.entry.js +0 -5
- package/dist/calcite/p-9ad8c7c5.system.entry.js +0 -5
- package/dist/calcite/p-9c913e3a.entry.js +0 -5
- package/dist/calcite/p-9e61d89d.entry.js +0 -5
- package/dist/calcite/p-a3527241.system.entry.js +0 -5
- package/dist/calcite/p-a38fe099.entry.js +0 -5
- package/dist/calcite/p-a9b3ef39.js +0 -5
- package/dist/calcite/p-a9ea7f4f.entry.js +0 -5
- package/dist/calcite/p-aaa21a84.system.entry.js +0 -5
- package/dist/calcite/p-aad14a5d.system.entry.js +0 -5
- package/dist/calcite/p-ac9607f2.system.js +0 -11
- package/dist/calcite/p-afe59546.entry.js +0 -5
- package/dist/calcite/p-b10af2b4.entry.js +0 -5
- package/dist/calcite/p-b3c5247b.system.entry.js +0 -5
- package/dist/calcite/p-b47dc903.system.entry.js +0 -5
- package/dist/calcite/p-b765d197.system.js +0 -5
- package/dist/calcite/p-bb401f25.system.js +0 -5
- package/dist/calcite/p-bccbf58a.entry.js +0 -5
- package/dist/calcite/p-bcdc20c3.system.entry.js +0 -5
- package/dist/calcite/p-bffb4da3.system.entry.js +0 -5
- package/dist/calcite/p-c228a1da.system.entry.js +0 -5
- package/dist/calcite/p-c33f47d5.system.js +0 -5
- package/dist/calcite/p-c4cb35ba.system.entry.js +0 -5
- package/dist/calcite/p-c5c42405.entry.js +0 -5
- package/dist/calcite/p-c5ec8d74.js +0 -11
- package/dist/calcite/p-c9fc13b9.system.entry.js +0 -5
- package/dist/calcite/p-cb847074.entry.js +0 -5
- package/dist/calcite/p-cd5f5c8f.js +0 -5
- package/dist/calcite/p-cd9226a1.system.entry.js +0 -5
- package/dist/calcite/p-da7c2542.entry.js +0 -5
- package/dist/calcite/p-daf5f04c.system.js +0 -5
- package/dist/calcite/p-dcf33bb2.js +0 -5
- package/dist/calcite/p-dd9f2e61.js +0 -5
- package/dist/calcite/p-e22ab8fa.entry.js +0 -5
- package/dist/calcite/p-e3280a36.system.entry.js +0 -5
- package/dist/calcite/p-e43605c5.entry.js +0 -5
- package/dist/calcite/p-e4d1651b.system.entry.js +0 -5
- package/dist/calcite/p-e5a7ca2a.entry.js +0 -5
- package/dist/calcite/p-e65b6bfb.entry.js +0 -5
- package/dist/calcite/p-ec9bab33.system.js +0 -5
- package/dist/calcite/p-ef6b4184.js +0 -5
- package/dist/calcite/p-f09e27b0.system.js +0 -5
- package/dist/calcite/p-fe9380a0.system.js +0 -5
- package/dist/components/resources4.js +0 -32
- package/dist/components/tooltip-manager.js +0 -175
- package/dist/esm-es5/form-5e4609eb.js +0 -5
- package/dist/esm-es5/label-68f22660.js +0 -5
- package/dist/esm-es5/locale-fc850b7c.js +0 -5
- package/dist/esm-es5/number-8779395f.js +0 -5
- package/dist/esm-es5/resources-cbfcf4a3.js +0 -5
- package/dist/esm-es5/sortable.esm-04824d33.js +0 -11
|
@@ -2,4 +2,5 @@ var __awaiter=this&&this.__awaiter||function(e,t,i,n){function a(e){return e ins
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
5
|
-
*/import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-bd94948c.js";import{a as isSymbol,S as Symbol,d as debounce}from"./debounce-79648d42.js";import{i as isArray,f as forIn}from"./forIn-48d8fb84.js";import{u as updatePopper,c as createPopper,d as defaultMenuPlacement,p as popperMenuFlipPlacements,C as CSS$2}from"./popper-da45ec93.js";import{g as guid}from"./guid-196bd5ea.js";import{n as nodeListToArray,d as getElementProp,g as getSlotted}from"./dom-e7fa77b9.js";import{c as connectLabel,d as disconnectLabel,g as getLabelText}from"./label-68f22660.js";import{c as connectForm,a as afterConnectDefaultValueSet,d as disconnectForm,H as HiddenFormInputSlot}from"./form-5e4609eb.js";import{c as createObserver}from"./observers-46118290.js";import{u as updateHostInteraction}from"./interactive-48b5cc0f.js";import{c as connectConditionalSlotComponent,d as disconnectConditionalSlotComponent}from"./conditionalSlot-67f579ff.js";function arrayMap(e,t){var i=-1,n=e==null?0:e.length,a=Array(n);while(++i<n){a[i]=t(e[i],i,e)}return a}var INFINITY=1/0;var symbolProto=Symbol?Symbol.prototype:undefined,symbolToString=symbolProto?symbolProto.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(isArray(e)){return arrayMap(e,baseToString)+""}if(isSymbol(e)){return symbolToString?symbolToString.call(e):""}var t=e+"";return t=="0"&&1/e==-INFINITY?"-0":t}function toString(e){return e==null?"":baseToString(e)}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source);function escapeRegExp(e){e=toString(e);return e&&reHasRegExpChar.test(e)?e.replace(reRegExpChar,"\\$&"):e}var filter=function(e,t){var i=escapeRegExp(t);var n=new RegExp(i,"i");if(e.length===0){console.warn("No data was passed to the filter function.\n The data argument should be an array of objects")}var a=function(e,t){var i;if((i=e)===null||i===void 0?void 0:i.constant){return true}var n=false;forIn(e,(function(e){if(typeof e==="function"){return}if(Array.isArray(e)||typeof e==="object"&&e!==null){if(a(e,t)){n=true}}else if(t.test(e)){n=true}}));return n};var o=e.filter((function(e){return a(e,n)}));return o};var ComboboxItem$1="CALCITE-COMBOBOX-ITEM";var ComboboxItemGroup$1="CALCITE-COMBOBOX-ITEM-GROUP";var ComboboxChildSelector="".concat(ComboboxItem$1,", ").concat(ComboboxItemGroup$1);var TEXT={removeTag:"Remove tag"};function getAncestors(e){var t,i;var n=(t=e.parentElement)===null||t===void 0?void 0:t.closest(ComboboxChildSelector);var a=(i=n===null||n===void 0?void 0:n.parentElement)===null||i===void 0?void 0:i.closest(ComboboxChildSelector);return[n,a].filter((function(e){return e}))}function getItemAncestors(e){var t;return((t=e.ancestors)===null||t===void 0?void 0:t.filter((function(e){return e.nodeName==="CALCITE-COMBOBOX-ITEM"})))||[]}function getItemChildren(e){return nodeListToArray(e.querySelectorAll("calcite-combobox-item"))}function hasActiveChildren(e){var t=nodeListToArray(e.querySelectorAll("calcite-combobox-item"));return t.filter((function(e){return e.selected})).length>0}function getDepth(e){var t=document.evaluate("ancestor::calcite-combobox-item | ancestor::calcite-combobox-item-group",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);return t.snapshotLength}var comboboxCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:block}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);padding:calc(var(--calcite-combobox-item-spacing-unit-s) / 4) var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding:0 var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{-ms-flex-positive:1;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-width:120px;margin-bottom:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-bottom:0px;margin-top:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;width:0px;min-width:0px;opacity:0}.input--icon{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 0%;flex:1 1 0%;overflow:hidden}.label{pointer-events:none;display:-ms-flexbox;display:flex;max-width:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--spaced{padding-top:0px;padding-bottom:0px;padding-left:var(--calcite-combobox-item-spacing-unit-l);padding-right:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:-ms-flexbox;display:flex;width:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}.icon-end{-ms-flex:none;flex:none}.popper-container{width:100%;display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.popper-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.popper-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.popper-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.popper-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.popper-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.popper-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.popper-container--active{pointer-events:initial;visibility:visible}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{max-height:100vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);width:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{height:0px;overflow:hidden}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-width:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.item{display:block}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";var isGroup=function(e){return e.tagName===ComboboxItemGroup$1};var itemUidPrefix="combobox-item-";var chipUidPrefix="combobox-chip-";var labelUidPrefix="combobox-label-";var listboxUidPrefix="combobox-listbox-";var inputUidPrefix="combobox-input-";var Combobox=function(){function e(e){var t=this;registerInstance(this,e);this.calciteLookupChange=createEvent(this,"calciteLookupChange",7);this.calciteComboboxChange=createEvent(this,"calciteComboboxChange",7);this.calciteComboboxFilterChange=createEvent(this,"calciteComboboxFilterChange",7);this.calciteComboboxChipDismiss=createEvent(this,"calciteComboboxChipDismiss",7);this.calciteComboboxOpen=createEvent(this,"calciteComboboxOpen",7);this.calciteComboboxClose=createEvent(this,"calciteComboboxClose",7);this.active=false;this.disabled=false;this.maxItems=0;this.overlayPositioning="absolute";this.required=false;this.selectionMode="multi";this.scale="m";this.value=null;this.intlRemoveTag=TEXT.removeTag;this.internalValueChangeFlag=false;this.items=[];this.groupItems=[];this.selectedItems=[];this.visibleItems=[];this.activeItemIndex=-1;this.activeChipIndex=-1;this.activeDescendant="";this.text="";this.textInput=null;this.mutationObserver=createObserver("mutation",(function(){return t.updateItems()}));this.resizeObserver=createObserver("resize",(function(){return t.setMaxScrollerHeight()}));this.guid=guid();this.inputHeight=0;this.ignoreSelectedEventsFlag=false;this.activeTransitionProp="opacity";this.getValue=function(){var e=t.selectedItems.map((function(e){return e===null||e===void 0?void 0:e.value.toString()}));return(e===null||e===void 0?void 0:e.length)?e.length>1?e:e[0]:""};this.onLabelClick=function(){t.setFocus()};this.keydownHandler=function(e){var i=e.key;switch(i){case"Tab":t.activeChipIndex=-1;t.activeItemIndex=-1;if(t.allowCustomValues&&t.text){t.addCustomChip(t.text,true);e.preventDefault()}else{t.active=false}break;case"ArrowLeft":t.previousChip();break;case"ArrowRight":t.nextChip();break;case"ArrowUp":e.preventDefault();t.active=true;t.shiftActiveItemIndex(-1);break;case"ArrowDown":e.preventDefault();t.active=true;t.shiftActiveItemIndex(1);break;case"Home":t.active=true;t.updateActiveItemIndex(0);break;case"End":t.active=true;t.updateActiveItemIndex(t.visibleItems.length-1);break;case"Escape":t.active=false;break;case"Enter":if(t.activeItemIndex>-1){t.toggleSelection(t.visibleItems[t.activeItemIndex])}else if(t.activeChipIndex>-1){t.removeActiveChip()}else if(t.allowCustomValues&&t.text){t.addCustomChip(t.text,true)}break;case"Delete":case"Backspace":if(t.activeChipIndex>-1){t.removeActiveChip()}else if(!t.text&&t.isMulti()){t.removeLastChip()}break;default:if(!t.active){t.setFocus()}break}};this.toggleCloseEnd=function(){t.active=false;t.el.removeEventListener("calciteComboboxClose",t.toggleCloseEnd)};this.toggleOpenEnd=function(){t.active=true;t.el.removeEventListener("calciteComboboxOpen",t.toggleOpenEnd)};this.transitionEnd=function(e){if(e.propertyName===t.activeTransitionProp){t.active?t.calciteComboboxOpen.emit():t.calciteComboboxClose.emit()}};this.setMaxScrollerHeight=function(){var e=t,i=e.active,n=e.listContainerEl;if(!n||!i){return}t.reposition();var a=t.getMaxScrollerHeight();n.style.maxHeight=a>0?"".concat(a,"px"):"";t.reposition()};this.calciteChipDismissHandler=function(e,i){t.active=false;var n=t.items.find((function(e){return e===i}));if(n){t.toggleSelection(n,false)}t.calciteComboboxChipDismiss.emit(e.detail)};this.setFocusClick=function(e){if(e.composedPath().some((function(e){return e.tagName==="CALCITE-CHIP"}))){return}t.setFocus()};this.setInactiveIfNotContained=function(e){var i=e.composedPath();if(!t.active||i.includes(t.el)||i.includes(t.referenceEl)){return}if(t.allowCustomValues&&t.text){t.addCustomChip(t.text)}if(t.selectionMode==="single"){if(t.textInput){t.textInput.value=""}t.text="";t.filterItems("");t.updateActiveItemIndex(-1)}t.active=false};this.setMenuEl=function(e){t.menuEl=e};this.setListContainerEl=function(e){t.resizeObserver.observe(e);t.listContainerEl=e};this.setReferenceEl=function(e){t.referenceEl=e};this.inputHandler=function(e){var i=e.target.value;t.text=i;t.filterItems(i);if(i){t.activeChipIndex=-1}};this.filterItems=function(){var e=function(e,t){return e&&t.some((function(t){var i=t.label,n=t.value;if(isGroup(e)){return n===e.label||n===e.label}return n===e.textLabel||n===e.value||i===e.textLabel||i===e.value}))};return debounce((function(i){var n=filter(t.data,i);var a=t.getCombinedItems();a.forEach((function(t){var i=!e(t,n);t.hidden=i;var a=t.ancestors,o=a[0],r=a[1];if(e(o,n)||e(r,n)){t.hidden=false}if(!i){t.ancestors.forEach((function(e){return e.hidden=false}))}}));t.visibleItems=t.getVisibleItems();t.calciteComboboxFilterChange.emit({visibleItems:__spreadArray([],t.visibleItems,true),text:i})}),100)}();this.internalCalciteLookupChangeEvent=function(){t.calciteLookupChange.emit(t.selectedItems)};this.emitCalciteLookupChange=debounce(this.internalCalciteLookupChangeEvent,0);this.internalComboboxChangeEvent=function(){var e=t.selectedItems;t.calciteComboboxChange.emit({selectedItems:e})};this.emitComboboxChange=debounce(this.internalComboboxChangeEvent,0);this.updateItems=function(){t.items=t.getItems();t.groupItems=t.getGroupItems();t.data=t.getData();t.selectedItems=t.getSelectedItems();t.visibleItems=t.getVisibleItems();t.needsIcon=t.getNeedsIcon();if(!t.allowCustomValues){t.setMaxScrollerHeight()}};this.comboboxFocusHandler=function(){var e;t.active=true;(e=t.textInput)===null||e===void 0?void 0:e.focus()};this.comboboxBlurHandler=function(e){t.setInactiveIfNotContained(e)}}e.prototype.activeHandler=function(){if(this.disabled){this.active=false;return}this.reposition()};e.prototype.handleDisabledChange=function(e){if(!e){this.active=false}};e.prototype.maxItemsHandler=function(){this.setMaxScrollerHeight()};e.prototype.valueHandler=function(e){if(!this.internalValueChangeFlag){var t=this.getItems();if(Array.isArray(e)){t.forEach((function(t){return t.selected=e.includes(t.value)}))}else if(e){t.forEach((function(t){return t.selected=e===t.value}))}else{t.forEach((function(e){return e.selected=false}))}this.updateItems()}};e.prototype.documentClickHandler=function(e){this.setInactiveIfNotContained(e)};e.prototype.calciteComboboxItemChangeHandler=function(e){if(this.ignoreSelectedEventsFlag){return}var t=e.target;this.toggleSelection(t,t.selected)};e.prototype.reposition=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,a;return __generator(this,(function(o){switch(o.label){case 0:e=this,t=e.popper,i=e.menuEl;n=this.getModifiers();if(!t)return[3,2];return[4,updatePopper({el:i,modifiers:n,placement:defaultMenuPlacement,popper:t})];case 1:a=o.sent();return[3,3];case 2:a=this.createPopper();o.label=3;case 3:a;return[2]}}))}))};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){this.active=true;(e=this.textInput)===null||e===void 0?void 0:e.focus();this.activeChipIndex=-1;this.activeItemIndex=-1;return[2]}))}))};e.prototype.connectedCallback=function(){var e;this.internalValueChangeFlag=true;this.value=this.getValue();this.internalValueChangeFlag=false;(e=this.mutationObserver)===null||e===void 0?void 0:e.observe(this.el,{childList:true,subtree:true});this.createPopper();connectLabel(this);connectForm(this)};e.prototype.componentWillLoad=function(){this.updateItems()};e.prototype.componentDidLoad=function(){afterConnectDefaultValueSet(this,this.getValue())};e.prototype.componentDidRender=function(){if(this.el.offsetHeight!==this.inputHeight){this.reposition();this.inputHeight=this.el.offsetHeight}updateHostInteraction(this)};e.prototype.disconnectedCallback=function(){var e,t;(e=this.mutationObserver)===null||e===void 0?void 0:e.disconnect();(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect();this.destroyPopper();disconnectLabel(this);disconnectForm(this)};e.prototype.selectedItemsHandler=function(){this.internalValueChangeFlag=true;this.value=this.getValue();this.internalValueChangeFlag=false};e.prototype.textHandler=function(){this.updateActiveItemIndex(-1)};e.prototype.getModifiers=function(){var e={name:"flip",enabled:true};e.options={fallbackPlacements:this.flipPlacements||popperMenuFlipPlacements};var t={name:"eventListeners",enabled:this.active};return[e,t]};e.prototype.createPopper=function(){this.destroyPopper();var e=this,t=e.menuEl,i=e.referenceEl,n=e.overlayPositioning;var a=this.getModifiers();this.popper=createPopper({el:t,modifiers:a,overlayPositioning:n,placement:defaultMenuPlacement,referenceEl:i})};e.prototype.destroyPopper=function(){var e=this.popper;if(e){e.destroy()}this.popper=null};e.prototype.getMaxScrollerHeight=function(){var e=this;var t=this.getCombinedItems().filter((function(e){return!e.hidden}));var i=this.maxItems;var n=0;var a=0;if(t.length>i){t.forEach((function(t){if(n<i&&i>0){var o=e.calculateSingleItemHeight(t);if(o>0){a+=o;n++}}}))}return a};e.prototype.calculateSingleItemHeight=function(e){var t=e.offsetHeight;var i=Array.from(e.querySelectorAll(ComboboxChildSelector));i.map((function(e){return e===null||e===void 0?void 0:e.offsetHeight})).forEach((function(e){t-=e}));return t};e.prototype.getCombinedItems=function(){return __spreadArray(__spreadArray([],this.groupItems,true),this.items,true)};e.prototype.toggleSelection=function(e,t){if(t===void 0){t=!e.selected}if(!e){return}if(this.isMulti()){e.selected=t;this.updateAncestors(e);this.selectedItems=this.getSelectedItems();this.emitCalciteLookupChange();this.emitComboboxChange();this.resetText();this.filterItems("")}else{this.ignoreSelectedEventsFlag=true;this.items.forEach((function(i){return i.selected=i===e?t:false}));this.ignoreSelectedEventsFlag=false;this.selectedItems=this.getSelectedItems();this.emitComboboxChange();if(this.textInput){this.textInput.value=e.textLabel}this.active=false;this.updateActiveItemIndex(-1);this.resetText();this.filterItems("")}};e.prototype.updateAncestors=function(e){if(this.selectionMode!=="ancestors"){return}var t=getItemAncestors(e);var i=getItemChildren(e);if(e.selected){t.forEach((function(e){e.selected=true}))}else{i.forEach((function(e){return e.selected=false}));__spreadArray([],t,true).forEach((function(e){if(!hasActiveChildren(e)){e.selected=false}}))}};e.prototype.getVisibleItems=function(){return this.items.filter((function(e){return!e.hidden}))};e.prototype.getSelectedItems=function(){var e=this;if(!this.isMulti()){var t=this.items.find((function(e){var t=e.selected;return t}));return t?[t]:[]}return this.items.filter((function(t){return t.selected&&(e.selectionMode!=="ancestors"||!hasActiveChildren(t))})).sort((function(t,i){var n=e.selectedItems.indexOf(t);var a=e.selectedItems.indexOf(i);if(n>-1&&a>-1){return n-a}return a-n}))};e.prototype.getData=function(){return this.items.map((function(e){return{constant:e.constant,value:e.value,label:e.textLabel,guid:e.guid}}))};e.prototype.getNeedsIcon=function(){return this.selectionMode==="single"&&this.items.some((function(e){return e.icon}))};e.prototype.resetText=function(){if(this.textInput){this.textInput.value=""}this.text=""};e.prototype.getItems=function(){var e=Array.from(this.el.querySelectorAll(ComboboxItem$1));return e.filter((function(e){return!e.disabled}))};e.prototype.getGroupItems=function(){return Array.from(this.el.querySelectorAll(ComboboxItemGroup$1))};e.prototype.addCustomChip=function(e,t){var i=this.items.find((function(t){return t.textLabel===e}));if(i){this.toggleSelection(i,true)}else{if(!this.isMulti()){this.toggleSelection(this.selectedItems[this.selectedItems.length-1],false)}var n=document.createElement(ComboboxItem$1);n.value=e;n.textLabel=e;n.selected=true;this.el.appendChild(n);this.resetText();if(t){this.setFocus()}this.updateItems();this.filterItems("");this.emitCalciteLookupChange();this.emitComboboxChange()}};e.prototype.removeActiveChip=function(){this.toggleSelection(this.selectedItems[this.activeChipIndex],false);this.setFocus()};e.prototype.removeLastChip=function(){this.toggleSelection(this.selectedItems[this.selectedItems.length-1],false);this.setFocus()};e.prototype.previousChip=function(){if(this.text){return}var e=this.selectedItems.length-1;var t=this.activeChipIndex;this.activeChipIndex=t===-1?e:Math.max(t-1,0);this.updateActiveItemIndex(-1);this.focusChip()};e.prototype.nextChip=function(){if(this.text||this.activeChipIndex===-1){return}var e=this.selectedItems.length-1;var t=this.activeChipIndex+1;if(t>e){this.activeChipIndex=-1;this.setFocus()}else{this.activeChipIndex=t;this.focusChip()}this.updateActiveItemIndex(-1)};e.prototype.focusChip=function(){var e;var t=(e=this.selectedItems[this.activeChipIndex])===null||e===void 0?void 0:e.guid;var i=t?this.referenceEl.querySelector("#".concat(chipUidPrefix).concat(t)):null;i===null||i===void 0?void 0:i.setFocus()};e.prototype.shiftActiveItemIndex=function(e){var t=this.visibleItems.length;var i=(this.activeItemIndex+t+e)%t;this.updateActiveItemIndex(i);var n=this.visibleItems[this.activeItemIndex];var a=this.calculateSingleItemHeight(n);var o=this.listContainerEl,r=o.offsetHeight,s=o.scrollTop;if(r+s<n.offsetTop+a){this.listContainerEl.scrollTop=n.offsetTop-r+a}else if(n.offsetTop<s){this.listContainerEl.scrollTop=n.offsetTop}};e.prototype.updateActiveItemIndex=function(e){var t;this.activeItemIndex=e;var i=null;this.visibleItems.forEach((function(t,n){if(n===e){t.active=true;i=t.guid}else{t.active=false}}));this.activeDescendant=i;if(this.activeItemIndex>-1){this.activeChipIndex=-1;(t=this.textInput)===null||t===void 0?void 0:t.focus()}};e.prototype.isMulti=function(){return this.selectionMode!=="single"};e.prototype.renderChips=function(){var e=this;var t=this,i=t.activeChipIndex,n=t.scale,a=t.selectionMode,o=t.intlRemoveTag;return this.selectedItems.map((function(t,r){var s={chip:true,"chip--active":i===r};var c=__spreadArray([],getItemAncestors(t),true).reverse();var l=__spreadArray(__spreadArray([],c,true),[t],false).map((function(e){return e.textLabel}));var p=a!=="ancestors"?t.textLabel:l.join(" / ");return h("calcite-chip",{class:s,dismissLabel:o,dismissible:true,icon:t.icon,id:t.guid?"".concat(chipUidPrefix).concat(t.guid):null,key:t.textLabel,onCalciteChipDismiss:function(i){return e.calciteChipDismissHandler(i,t)},scale:n,title:p,value:t.value},p)}))};e.prototype.renderInput=function(){var e=this;var t=this,i=t.guid,n=t.active,a=t.disabled,o=t.placeholder,r=t.selectionMode,s=t.needsIcon,c=t.selectedItems;var l=r==="single";var p=c[0];var m=!n&&l&&!!p;return h("span",{class:{"input-wrap":true,"input-wrap--single":l}},m&&h("span",{class:{label:true,"label--spaced":s},key:"label",onFocus:this.comboboxFocusHandler,tabindex:"0"},p.textLabel),h("input",{"aria-activedescendant":this.activeDescendant,"aria-autocomplete":"list","aria-controls":"".concat(listboxUidPrefix).concat(i),"aria-label":getLabelText(this),class:{input:true,"input--single":true,"input--transparent":this.activeChipIndex>-1,"input--hidden":m,"input--icon":l&&s},disabled:a,id:"".concat(inputUidPrefix).concat(i),key:"input",onBlur:this.comboboxBlurHandler,onFocus:this.comboboxFocusHandler,onInput:this.inputHandler,placeholder:o,ref:function(t){return e.textInput=t},type:"text"}))};e.prototype.renderListBoxOptions=function(){return this.visibleItems.map((function(e){return h("li",{"aria-selected":(!!e.selected).toString(),id:e.guid?"".concat(itemUidPrefix).concat(e.guid):null,role:"option",tabindex:"-1"},e.textLabel)}))};e.prototype.renderPopperContainer=function(){var e;var t=this,i=t.active,n=t.setMenuEl,a=t.setListContainerEl;var o=(e={"list-container":true},e[CSS$2.animation]=true,e[CSS$2.animationActive]=i,e);return h("div",{"aria-hidden":"true",class:{"popper-container":true,"popper-container--active":i},ref:n},h("div",{class:o,onTransitionEnd:this.transitionEnd,ref:a},h("ul",{class:{list:true,"list--hide":!i}},h("slot",null))))};e.prototype.renderIconStart=function(){var e=this,t=e.selectionMode,i=e.needsIcon,n=e.selectedItems;var a=n[0];return t==="single"&&i&&h("span",{class:"icon-start"},(a===null||a===void 0?void 0:a.icon)&&h("calcite-icon",{class:"selected-icon",icon:a.icon,scale:"s"}))};e.prototype.renderIconEnd=function(){return h("span",{class:"icon-end"},h("calcite-icon",{icon:"chevron-down",scale:"s"}))};e.prototype.render=function(){var e=this,t=e.active,i=e.guid,n=e.label;var a=this.selectionMode==="single";return h(Host,{onKeyDown:this.keydownHandler},h("div",{"aria-autocomplete":"list","aria-expanded":t.toString(),"aria-haspopup":"listbox","aria-labelledby":"".concat(labelUidPrefix).concat(i),"aria-owns":"".concat(listboxUidPrefix).concat(i),class:{wrapper:true,"wrapper--single":a||!this.selectedItems.length,"wrapper--active":t},onClick:this.setFocusClick,ref:this.setReferenceEl,role:"combobox"},h("div",{class:"grid-input"},this.renderIconStart(),!a&&this.renderChips(),h("label",{class:"screen-readers-only",htmlFor:"".concat(inputUidPrefix).concat(i),id:"".concat(labelUidPrefix).concat(i)},n),this.renderInput()),this.renderIconEnd()),h("ul",{"aria-labelledby":"".concat(labelUidPrefix).concat(i),"aria-multiselectable":"true",class:"screen-readers-only",id:"".concat(listboxUidPrefix).concat(i),role:"listbox",tabIndex:-1},this.renderListBoxOptions()),this.renderPopperContainer(),h(HiddenFormInputSlot,{component:this}))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{active:["activeHandler"],disabled:["handleDisabledChange"],maxItems:["maxItemsHandler"],value:["valueHandler"],selectedItems:["selectedItemsHandler"],text:["textHandler"]}},enumerable:false,configurable:true});return e}();Combobox.style=comboboxCss;var CSS$1={icon:"icon",iconActive:"icon--active",custom:"icon--custom",dot:"icon--dot",single:"label--single",label:"label",active:"label--active",selected:"label--selected",title:"title",textContainer:"text-container"};var comboboxItemCss='@charset "UTF-8";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-item-spacing-indent:0.5rem}.scale--m{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-item-spacing-indent:0.75rem}.scale--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-item-spacing-indent:1rem}.container{--calcite-combobox-item-indent-value:calc(\n var(--calcite-combobox-item-spacing-indent) * var(--calcite-combobox-item-spacing-indent-multiplier)\n )}:host(:focus){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host,ul{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0px;outline:2px solid transparent;outline-offset:2px}.label{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;min-width:100%;cursor:pointer;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;padding:var(--calcite-combobox-item-spacing-unit-s) var(--calcite-combobox-item-spacing-unit-l)}:host([disabled]) .label{cursor:default}.label--selected{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}.label--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.label:hover,.label:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.title{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.icon{display:-ms-inline-flexbox;display:inline-flex;opacity:0;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);color:var(--calcite-ui-border-1)}.icon--indent{-webkit-padding-start:var(--calcite-combobox-item-indent-value);padding-inline-start:var(--calcite-combobox-item-indent-value)}.icon--custom{margin-top:-1px;color:var(--calcite-ui-text-3)}.icon--active{color:var(--calcite-ui-text-1)}.icon--dot{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;width:var(--calcite-combobox-item-spacing-unit-l)}.icon--dot:before{text-align:start;content:"•"}.label--active .icon{opacity:1}.label--selected .icon{opacity:1;color:var(--calcite-ui-brand)}:host(:hover[disabled]) .icon{opacity:1}';var ComboboxItem=function(){function e(e){var t=this;registerInstance(this,e);this.calciteComboboxItemChange=createEvent(this,"calciteComboboxItemChange",7);this.disabled=false;this.selected=false;this.active=false;this.guid=guid();this.scale="m";this.itemClickHandler=function(e){e.preventDefault();if(t.disabled){return}t.selected=!t.selected}}e.prototype.selectedWatchHandler=function(){this.calciteComboboxItemChange.emit(this.el)};e.prototype.connectedCallback=function(){this.ancestors=getAncestors(this.el);this.scale=getElementProp(this.el,"scale",this.scale);connectConditionalSlotComponent(this)};e.prototype.disconnectedCallback=function(){disconnectConditionalSlotComponent(this)};e.prototype.componentDidRender=function(){updateHostInteraction(this)};e.prototype.toggleSelected=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.disabled){return[2]}this.selected=typeof e==="boolean"?e:!this.selected;return[2]}))}))};e.prototype.renderIcon=function(e){var t,i;var n=this,a=n.icon,o=n.disabled,r=n.selected;var s="".concat(CSS$1.icon,"--indent");var c=e?"dot":"check";var l=o?"circle-disallowed":c;var p=e&&!a&&!o;return p?h("span",{class:(t={},t[CSS$1.icon]=true,t[CSS$1.dot]=true,t[s]=true,t)}):h("calcite-icon",{class:(i={},i[CSS$1.icon]=!a,i[CSS$1.custom]=!!a,i[CSS$1.iconActive]=a&&r,i[s]=true,i),icon:a||l,scale:"s"})};e.prototype.renderChildren=function(){if(getSlotted(this.el)){return h("ul",{key:"default-slot-container"},h("slot",null))}return null};e.prototype.render=function(){var e;var t=getElementProp(this.el,"selection-mode","multi")==="single";var i=(e={},e[CSS$1.label]=true,e[CSS$1.selected]=this.selected,e[CSS$1.active]=this.active,e[CSS$1.single]=t,e);var n=getDepth(this.el);return h(Host,{"aria-hidden":"true"},h("div",{class:"container scale--".concat(this.scale),style:{"--calcite-combobox-item-spacing-indent-multiplier":"".concat(n)}},h("li",{class:i,id:this.guid,onClick:this.itemClickHandler},this.renderIcon(t),h("span",{class:CSS$1.title},this.textLabel)),this.renderChildren()))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{selected:["selectedWatchHandler"]}},enumerable:false,configurable:true});return e}();ComboboxItem.style=comboboxItemCss;var CSS={list:"list",label:"label",title:"title"};var comboboxItemGroupCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-item-spacing-indent-1:0.5rem;--calcite-combobox-item-spacing-indent-2:1rem}.scale--m{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-item-spacing-indent-1:0.75rem;--calcite-combobox-item-spacing-indent-2:1.5rem}.scale--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-item-spacing-indent-1:1rem;--calcite-combobox-item-spacing-indent-2:2rem}:host,.list{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0px;outline:2px solid transparent;outline-offset:2px}.label{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;min-width:0px;max-width:100%;color:var(--calcite-ui-text-3)}.label--indent-1{-webkit-padding-start:var(--calcite-combobox-item-spacing-indent-1);padding-inline-start:var(--calcite-combobox-item-spacing-indent-1)}.label--indent-2{-webkit-padding-start:var(--calcite-combobox-item-spacing-indent-2);padding-inline-start:var(--calcite-combobox-item-spacing-indent-2)}.title{border:0 solid;display:block;-ms-flex:1 1 0%;flex:1 1 0%;border-bottom-width:1px;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2);word-wrap:break-word;word-break:break-word;border-bottom-color:var(--calcite-ui-border-3);padding:var(--calcite-combobox-item-spacing-unit-l) 0;margin-left:var(--calcite-combobox-item-spacing-unit-s);margin-right:var(--calcite-combobox-item-spacing-unit-s)}";var ComboboxItemGroup=function(){function e(e){registerInstance(this,e);this.guid=guid();this.scale="m"}e.prototype.connectedCallback=function(){this.ancestors=getAncestors(this.el);this.scale=getElementProp(this.el,"scale",this.scale)};e.prototype.render=function(){var e,t;var i=this,n=i.el,a=i.scale;var o="".concat(CSS.label,"--indent-").concat(getDepth(n));return h("ul",{"aria-labelledby":this.guid,class:(e={},e[CSS.list]=true,e["scale--".concat(a)]=true,e),role:"group"},h("li",{class:(t={},t[CSS.label]=true,t[o]=true,t),id:this.guid,role:"presentation"},h("span",{class:CSS.title},this.label)),h("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();ComboboxItemGroup.style=comboboxItemGroupCss;export{Combobox as calcite_combobox,ComboboxItem as calcite_combobox_item,ComboboxItemGroup as calcite_combobox_item_group};
|
|
5
|
+
* v1.0.0-beta.82
|
|
6
|
+
*/import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-8ece2564.js";import{a as isSymbol,S as Symbol,d as debounce}from"./debounce-c4df98cc.js";import{i as isArray,f as forIn}from"./forIn-9b83dde4.js";import{f as filterComputedPlacements,u as updatePopper,c as createPopper,d as defaultMenuPlacement,p as popperMenuComputedPlacements,C as CSS$2}from"./popper-0fd1fd89.js";import{g as guid}from"./guid-b4461004.js";import{n as nodeListToArray,t as toAriaBoolean,d as getElementProp,g as getSlotted}from"./dom-da697a3f.js";import{c as connectLabel,d as disconnectLabel,g as getLabelText}from"./label-50132b90.js";import{s as submitForm,c as connectForm,a as afterConnectDefaultValueSet,d as disconnectForm,H as HiddenFormInputSlot}from"./form-bca481e1.js";import{c as createObserver}from"./observers-b198f831.js";import{u as updateHostInteraction}from"./interactive-cb5bf285.js";import{c as connectConditionalSlotComponent,d as disconnectConditionalSlotComponent}from"./conditionalSlot-203be745.js";function arrayMap(e,t){var i=-1,n=e==null?0:e.length,a=Array(n);while(++i<n){a[i]=t(e[i],i,e)}return a}var INFINITY=1/0;var symbolProto=Symbol?Symbol.prototype:undefined,symbolToString=symbolProto?symbolProto.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(isArray(e)){return arrayMap(e,baseToString)+""}if(isSymbol(e)){return symbolToString?symbolToString.call(e):""}var t=e+"";return t=="0"&&1/e==-INFINITY?"-0":t}function toString(e){return e==null?"":baseToString(e)}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source);function escapeRegExp(e){e=toString(e);return e&&reHasRegExpChar.test(e)?e.replace(reRegExpChar,"\\$&"):e}var filter=function(e,t){var i=escapeRegExp(t);var n=new RegExp(i,"i");if(e.length===0){console.warn("No data was passed to the filter function.\n The data argument should be an array of objects")}var a=function(e,t){var i;if((i=e)===null||i===void 0?void 0:i.constant){return true}var n=false;forIn(e,(function(e){if(typeof e==="function"||e==null){return}if(Array.isArray(e)||typeof e==="object"&&e!==null){if(a(e,t)){n=true}}else if(t.test(e)){n=true}}));return n};var o=e.filter((function(e){return a(e,n)}));return o};var ComboboxItem$1="CALCITE-COMBOBOX-ITEM";var ComboboxItemGroup$1="CALCITE-COMBOBOX-ITEM-GROUP";var ComboboxChildSelector="".concat(ComboboxItem$1,", ").concat(ComboboxItemGroup$1);var TEXT={removeTag:"Remove tag"};function getAncestors(e){var t,i;var n=(t=e.parentElement)===null||t===void 0?void 0:t.closest(ComboboxChildSelector);var a=(i=n===null||n===void 0?void 0:n.parentElement)===null||i===void 0?void 0:i.closest(ComboboxChildSelector);return[n,a].filter((function(e){return e}))}function getItemAncestors(e){var t;return((t=e.ancestors)===null||t===void 0?void 0:t.filter((function(e){return e.nodeName==="CALCITE-COMBOBOX-ITEM"})))||[]}function getItemChildren(e){return nodeListToArray(e.querySelectorAll("calcite-combobox-item"))}function hasActiveChildren(e){var t=nodeListToArray(e.querySelectorAll("calcite-combobox-item"));return t.filter((function(e){return e.selected})).length>0}function getDepth(e){var t=document.evaluate("ancestor::calcite-combobox-item | ancestor::calcite-combobox-item-group",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);return t.snapshotLength}var comboboxCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:block}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);padding:calc(var(--calcite-combobox-item-spacing-unit-s) / 4) var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding:0 var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{-ms-flex-positive:1;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-width:120px;margin-bottom:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-bottom:0px;margin-top:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;width:0px;min-width:0px;opacity:0}.input--icon{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 0%;flex:1 1 0%;overflow:hidden}.label{pointer-events:none;display:-ms-flexbox;display:flex;max-width:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--spaced{padding-top:0px;padding-bottom:0px;padding-left:var(--calcite-combobox-item-spacing-unit-l);padding-right:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:-ms-flexbox;display:flex;width:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}.icon-end{-ms-flex:none;flex:none}.popper-container{width:100%;display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.popper-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.popper-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.popper-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.popper-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.popper-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.popper-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.popper-container--active{pointer-events:initial;visibility:visible}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{max-height:100vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);width:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{height:0px;overflow:hidden}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-width:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.item{display:block}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";var isGroup=function(e){return e.tagName===ComboboxItemGroup$1};var itemUidPrefix="combobox-item-";var chipUidPrefix="combobox-chip-";var labelUidPrefix="combobox-label-";var listboxUidPrefix="combobox-listbox-";var inputUidPrefix="combobox-input-";var Combobox=function(){function e(e){var t=this;registerInstance(this,e);this.calciteLookupChange=createEvent(this,"calciteLookupChange",7);this.calciteComboboxChange=createEvent(this,"calciteComboboxChange",7);this.calciteComboboxFilterChange=createEvent(this,"calciteComboboxFilterChange",7);this.calciteComboboxChipDismiss=createEvent(this,"calciteComboboxChipDismiss",7);this.calciteComboboxOpen=createEvent(this,"calciteComboboxOpen",7);this.calciteComboboxClose=createEvent(this,"calciteComboboxClose",7);this.active=false;this.disabled=false;this.maxItems=0;this.overlayPositioning="absolute";this.required=false;this.selectionMode="multi";this.scale="m";this.value=null;this.intlRemoveTag=TEXT.removeTag;this.internalValueChangeFlag=false;this.items=[];this.groupItems=[];this.selectedItems=[];this.visibleItems=[];this.activeItemIndex=-1;this.activeChipIndex=-1;this.activeDescendant="";this.text="";this.textInput=null;this.mutationObserver=createObserver("mutation",(function(){return t.updateItems()}));this.resizeObserver=createObserver("resize",(function(){return t.setMaxScrollerHeight()}));this.guid=guid();this.inputHeight=0;this.ignoreSelectedEventsFlag=false;this.activeTransitionProp="opacity";this.setFilteredPlacements=function(){var e=t,i=e.el,n=e.flipPlacements;t.filteredFlipPlacements=n?filterComputedPlacements(n,i):null};this.getValue=function(){var e=t.selectedItems.map((function(e){var t;return(t=e===null||e===void 0?void 0:e.value)===null||t===void 0?void 0:t.toString()}));return(e===null||e===void 0?void 0:e.length)?e.length>1?e:e[0]:""};this.onLabelClick=function(){t.setFocus()};this.keydownHandler=function(e){var i=e.key;switch(i){case"Tab":t.activeChipIndex=-1;t.activeItemIndex=-1;if(t.allowCustomValues&&t.text){t.addCustomChip(t.text,true);e.preventDefault()}else if(t.active){t.active=false;e.preventDefault()}break;case"ArrowLeft":t.previousChip();break;case"ArrowRight":t.nextChip();break;case"ArrowUp":t.shiftActiveItemIndex(-1);if(!t.comboboxInViewport()){t.el.scrollIntoView()}break;case"ArrowDown":if(!t.active){e.preventDefault();t.active=true}t.shiftActiveItemIndex(1);if(!t.comboboxInViewport()){t.el.scrollIntoView()}break;case" ":if(!t.textInput.value){e.preventDefault();t.active=true;t.shiftActiveItemIndex(1)}break;case"Home":if(t.active){e.preventDefault()}t.updateActiveItemIndex(0);t.scrollToActiveItem();if(!t.comboboxInViewport()){t.el.scrollIntoView()}break;case"End":if(t.active){e.preventDefault()}t.updateActiveItemIndex(t.visibleItems.length-1);t.scrollToActiveItem();if(!t.comboboxInViewport()){t.el.scrollIntoView()}break;case"Escape":t.active=false;break;case"Enter":if(t.activeItemIndex>-1){t.toggleSelection(t.visibleItems[t.activeItemIndex])}else if(t.activeChipIndex>-1){t.removeActiveChip()}else if(t.allowCustomValues&&t.text){t.addCustomChip(t.text,true)}else if(!e.defaultPrevented){submitForm(t)}break;case"Delete":case"Backspace":if(t.activeChipIndex>-1){t.removeActiveChip()}else if(!t.text&&t.isMulti()){t.removeLastChip()}break}};this.toggleCloseEnd=function(){t.active=false;t.el.removeEventListener("calciteComboboxClose",t.toggleCloseEnd)};this.toggleOpenEnd=function(){t.active=true;t.el.removeEventListener("calciteComboboxOpen",t.toggleOpenEnd)};this.transitionEnd=function(e){if(e.propertyName===t.activeTransitionProp){t.active?t.calciteComboboxOpen.emit():t.calciteComboboxClose.emit()}};this.setMaxScrollerHeight=function(){var e=t,i=e.active,n=e.listContainerEl;if(!n||!i){return}t.reposition();var a=t.getMaxScrollerHeight();n.style.maxHeight=a>0?"".concat(a,"px"):"";t.reposition()};this.calciteChipDismissHandler=function(e,i){t.active=false;var n=t.items.find((function(e){return e===i}));if(n){t.toggleSelection(n,false)}t.calciteComboboxChipDismiss.emit(e.detail)};this.clickHandler=function(e){if(e.composedPath().some((function(e){return e.tagName==="CALCITE-CHIP"}))){return}t.active=!t.active;t.updateActiveItemIndex(0);t.setFocus()};this.setInactiveIfNotContained=function(e){var i=e.composedPath();if(!t.active||i.includes(t.el)||i.includes(t.referenceEl)){return}if(t.allowCustomValues&&t.text.trim().length){t.addCustomChip(t.text)}if(t.selectionMode==="single"){if(t.textInput){t.textInput.value=""}t.text="";t.filterItems("");t.updateActiveItemIndex(-1)}t.active=false};this.setMenuEl=function(e){t.menuEl=e};this.setListContainerEl=function(e){t.resizeObserver.observe(e);t.listContainerEl=e};this.setReferenceEl=function(e){t.referenceEl=e};this.inputHandler=function(e){var i=e.target.value;t.text=i;t.filterItems(i);if(i){t.activeChipIndex=-1}};this.filterItems=function(){var e=function(e,t){return e&&t.some((function(t){var i=t.label,n=t.value;if(isGroup(e)){return n===e.label}return n===e.textLabel||n===e.value||i===e.textLabel||i===e.value}))};return debounce((function(i){var n=filter(t.data,i);var a=t.getCombinedItems();a.forEach((function(t){var i=!e(t,n);t.hidden=i;var a=t.ancestors,o=a[0],r=a[1];if(e(o,n)||e(r,n)){t.hidden=false}if(!i){t.ancestors.forEach((function(e){return e.hidden=false}))}}));t.visibleItems=t.getVisibleItems();t.calciteComboboxFilterChange.emit({visibleItems:__spreadArray([],t.visibleItems,true),text:i})}),100)}();this.internalCalciteLookupChangeEvent=function(){t.calciteLookupChange.emit(t.selectedItems)};this.emitCalciteLookupChange=debounce(this.internalCalciteLookupChangeEvent,0);this.internalComboboxChangeEvent=function(){var e=t.selectedItems;t.calciteComboboxChange.emit({selectedItems:e})};this.emitComboboxChange=debounce(this.internalComboboxChangeEvent,0);this.updateItems=function(){t.items=t.getItems();t.groupItems=t.getGroupItems();t.data=t.getData();t.selectedItems=t.getSelectedItems();t.visibleItems=t.getVisibleItems();t.needsIcon=t.getNeedsIcon();if(!t.allowCustomValues){t.setMaxScrollerHeight()}};this.scrollToActiveItem=function(){var e=t.visibleItems[t.activeItemIndex];var i=t.calculateSingleItemHeight(e);var n=t.listContainerEl,a=n.offsetHeight,o=n.scrollTop;if(a+o<e.offsetTop+i){t.listContainerEl.scrollTop=e.offsetTop-a+i}else if(e.offsetTop<o){t.listContainerEl.scrollTop=e.offsetTop}};this.comboboxFocusHandler=function(){var e;(e=t.textInput)===null||e===void 0?void 0:e.focus()};this.comboboxBlurHandler=function(e){t.setInactiveIfNotContained(e)}}e.prototype.activeHandler=function(){if(this.disabled){this.active=false;return}this.reposition()};e.prototype.handleDisabledChange=function(e){if(!e){this.active=false}};e.prototype.maxItemsHandler=function(){this.setMaxScrollerHeight()};e.prototype.valueHandler=function(e){if(!this.internalValueChangeFlag){var t=this.getItems();if(Array.isArray(e)){t.forEach((function(t){return t.selected=e.includes(t.value)}))}else if(e){t.forEach((function(t){return t.selected=e===t.value}))}else{t.forEach((function(e){return e.selected=false}))}this.updateItems()}};e.prototype.flipPlacementsHandler=function(){this.setFilteredPlacements()};e.prototype.documentClickHandler=function(e){this.setInactiveIfNotContained(e)};e.prototype.calciteComboboxItemChangeHandler=function(e){if(this.ignoreSelectedEventsFlag){return}var t=e.target;var i=this.visibleItems.indexOf(t);this.updateActiveItemIndex(i);this.toggleSelection(t,t.selected)};e.prototype.reposition=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,a;return __generator(this,(function(o){switch(o.label){case 0:e=this,t=e.popper,i=e.menuEl;n=this.getModifiers();if(!t)return[3,2];return[4,updatePopper({el:i,modifiers:n,placement:defaultMenuPlacement,popper:t})];case 1:a=o.sent();return[3,3];case 2:a=this.createPopper();o.label=3;case 3:a;return[2]}}))}))};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){(e=this.textInput)===null||e===void 0?void 0:e.focus();this.activeChipIndex=-1;this.activeItemIndex=-1;return[2]}))}))};e.prototype.connectedCallback=function(){var e;this.internalValueChangeFlag=true;this.value=this.getValue();this.internalValueChangeFlag=false;(e=this.mutationObserver)===null||e===void 0?void 0:e.observe(this.el,{childList:true,subtree:true});this.createPopper();connectLabel(this);connectForm(this);this.setFilteredPlacements()};e.prototype.componentWillLoad=function(){this.updateItems()};e.prototype.componentDidLoad=function(){afterConnectDefaultValueSet(this,this.getValue())};e.prototype.componentDidRender=function(){if(this.el.offsetHeight!==this.inputHeight){this.reposition();this.inputHeight=this.el.offsetHeight}updateHostInteraction(this)};e.prototype.disconnectedCallback=function(){var e,t;(e=this.mutationObserver)===null||e===void 0?void 0:e.disconnect();(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect();this.destroyPopper();disconnectLabel(this);disconnectForm(this)};e.prototype.selectedItemsHandler=function(){this.internalValueChangeFlag=true;this.value=this.getValue();this.internalValueChangeFlag=false};e.prototype.textHandler=function(){this.updateActiveItemIndex(-1)};e.prototype.comboboxInViewport=function(){var e=this.el.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.right<=(window.innerWidth||document.documentElement.clientWidth)&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)};e.prototype.getModifiers=function(){var e={name:"flip",enabled:true};e.options={fallbackPlacements:this.filteredFlipPlacements||popperMenuComputedPlacements};var t={name:"eventListeners",enabled:this.active};return[e,t]};e.prototype.createPopper=function(){this.destroyPopper();var e=this,t=e.menuEl,i=e.referenceEl,n=e.overlayPositioning;var a=this.getModifiers();this.popper=createPopper({el:t,modifiers:a,overlayPositioning:n,placement:defaultMenuPlacement,referenceEl:i})};e.prototype.destroyPopper=function(){var e=this.popper;if(e){e.destroy()}this.popper=null};e.prototype.getMaxScrollerHeight=function(){var e=this;var t=this.getCombinedItems().filter((function(e){return!e.hidden}));var i=this.maxItems;var n=0;var a=0;if(t.length>i){t.forEach((function(t){if(n<i&&i>0){var o=e.calculateSingleItemHeight(t);if(o>0){a+=o;n++}}}))}return a};e.prototype.calculateSingleItemHeight=function(e){var t=e.offsetHeight;var i=Array.from(e.querySelectorAll(ComboboxChildSelector));i.map((function(e){return e===null||e===void 0?void 0:e.offsetHeight})).forEach((function(e){t-=e}));return t};e.prototype.getCombinedItems=function(){return __spreadArray(__spreadArray([],this.groupItems,true),this.items,true)};e.prototype.toggleSelection=function(e,t){if(t===void 0){t=!e.selected}if(!e){return}if(this.isMulti()){e.selected=t;this.updateAncestors(e);this.selectedItems=this.getSelectedItems();this.emitCalciteLookupChange();this.emitComboboxChange();this.resetText();this.filterItems("")}else{this.ignoreSelectedEventsFlag=true;this.items.forEach((function(i){return i.selected=i===e?t:false}));this.ignoreSelectedEventsFlag=false;this.selectedItems=this.getSelectedItems();this.emitComboboxChange();if(this.textInput){this.textInput.value=e.textLabel}this.active=false;this.updateActiveItemIndex(-1);this.resetText();this.filterItems("")}};e.prototype.updateAncestors=function(e){if(this.selectionMode!=="ancestors"){return}var t=getItemAncestors(e);var i=getItemChildren(e);if(e.selected){t.forEach((function(e){e.selected=true}))}else{i.forEach((function(e){return e.selected=false}));__spreadArray([],t,true).forEach((function(e){if(!hasActiveChildren(e)){e.selected=false}}))}};e.prototype.getVisibleItems=function(){return this.items.filter((function(e){return!e.hidden}))};e.prototype.getSelectedItems=function(){var e=this;if(!this.isMulti()){var t=this.items.find((function(e){var t=e.selected;return t}));return t?[t]:[]}return this.items.filter((function(t){return t.selected&&(e.selectionMode!=="ancestors"||!hasActiveChildren(t))})).sort((function(t,i){var n=e.selectedItems.indexOf(t);var a=e.selectedItems.indexOf(i);if(n>-1&&a>-1){return n-a}return a-n}))};e.prototype.getData=function(){return this.items.map((function(e){return{constant:e.constant,value:e.value,label:e.textLabel}}))};e.prototype.getNeedsIcon=function(){return this.selectionMode==="single"&&this.items.some((function(e){return e.icon}))};e.prototype.resetText=function(){if(this.textInput){this.textInput.value=""}this.text=""};e.prototype.getItems=function(){var e=Array.from(this.el.querySelectorAll(ComboboxItem$1));return e.filter((function(e){return!e.disabled}))};e.prototype.getGroupItems=function(){return Array.from(this.el.querySelectorAll(ComboboxItemGroup$1))};e.prototype.addCustomChip=function(e,t){var i=this.items.find((function(t){return t.textLabel===e}));if(i){this.toggleSelection(i,true)}else{if(!this.isMulti()){this.toggleSelection(this.selectedItems[this.selectedItems.length-1],false)}var n=document.createElement(ComboboxItem$1);n.value=e;n.textLabel=e;n.selected=true;this.el.appendChild(n);this.resetText();if(t){this.setFocus()}this.updateItems();this.filterItems("");this.emitCalciteLookupChange();this.emitComboboxChange()}};e.prototype.removeActiveChip=function(){this.toggleSelection(this.selectedItems[this.activeChipIndex],false);this.setFocus()};e.prototype.removeLastChip=function(){this.toggleSelection(this.selectedItems[this.selectedItems.length-1],false);this.setFocus()};e.prototype.previousChip=function(){if(this.text){return}var e=this.selectedItems.length-1;var t=this.activeChipIndex;this.activeChipIndex=t===-1?e:Math.max(t-1,0);this.updateActiveItemIndex(-1);this.focusChip()};e.prototype.nextChip=function(){if(this.text||this.activeChipIndex===-1){return}var e=this.selectedItems.length-1;var t=this.activeChipIndex+1;if(t>e){this.activeChipIndex=-1;this.setFocus()}else{this.activeChipIndex=t;this.focusChip()}this.updateActiveItemIndex(-1)};e.prototype.focusChip=function(){var e;var t=(e=this.selectedItems[this.activeChipIndex])===null||e===void 0?void 0:e.guid;var i=t?this.referenceEl.querySelector("#".concat(chipUidPrefix).concat(t)):null;i===null||i===void 0?void 0:i.setFocus()};e.prototype.shiftActiveItemIndex=function(e){var t=this.visibleItems.length;var i=(this.activeItemIndex+t+e)%t;this.updateActiveItemIndex(i);this.scrollToActiveItem()};e.prototype.updateActiveItemIndex=function(e){var t;this.activeItemIndex=e;var i=null;this.visibleItems.forEach((function(t,n){if(n===e){t.active=true;i=t.guid}else{t.active=false}}));this.activeDescendant=i;if(this.activeItemIndex>-1){this.activeChipIndex=-1;(t=this.textInput)===null||t===void 0?void 0:t.focus()}};e.prototype.isMulti=function(){return this.selectionMode!=="single"};e.prototype.renderChips=function(){var e=this;var t=this,i=t.activeChipIndex,n=t.scale,a=t.selectionMode,o=t.intlRemoveTag;return this.selectedItems.map((function(t,r){var s={chip:true,"chip--active":i===r};var c=__spreadArray([],getItemAncestors(t),true).reverse();var l=__spreadArray(__spreadArray([],c,true),[t],false).map((function(e){return e.textLabel}));var m=a!=="ancestors"?t.textLabel:l.join(" / ");return h("calcite-chip",{class:s,dismissLabel:o,dismissible:true,icon:t.icon,id:t.guid?"".concat(chipUidPrefix).concat(t.guid):null,key:t.textLabel,onCalciteChipDismiss:function(i){return e.calciteChipDismissHandler(i,t)},scale:n,title:m,value:t.value},m)}))};e.prototype.renderInput=function(){var e=this;var t=this,i=t.guid,n=t.active,a=t.disabled,o=t.placeholder,r=t.selectionMode,s=t.needsIcon,c=t.selectedItems;var l=r==="single";var m=c[0];var p=!n&&l&&!!m;return h("span",{class:{"input-wrap":true,"input-wrap--single":l}},p&&h("span",{class:{label:true,"label--spaced":s},key:"label"},m.textLabel),h("input",{"aria-activedescendant":this.activeDescendant,"aria-autocomplete":"list","aria-controls":"".concat(listboxUidPrefix).concat(i),"aria-label":getLabelText(this),class:{input:true,"input--single":true,"input--transparent":this.activeChipIndex>-1,"input--hidden":p,"input--icon":l&&s},disabled:a,id:"".concat(inputUidPrefix).concat(i),key:"input",onBlur:this.comboboxBlurHandler,onFocus:this.comboboxFocusHandler,onInput:this.inputHandler,placeholder:o,ref:function(t){return e.textInput=t},type:"text"}))};e.prototype.renderListBoxOptions=function(){return this.visibleItems.map((function(e){return h("li",{"aria-selected":toAriaBoolean(e.selected),id:e.guid?"".concat(itemUidPrefix).concat(e.guid):null,role:"option",tabindex:"-1"},e.textLabel)}))};e.prototype.renderPopperContainer=function(){var e;var t=this,i=t.active,n=t.setMenuEl,a=t.setListContainerEl;var o=(e={"list-container":true},e[CSS$2.animation]=true,e[CSS$2.animationActive]=i,e);return h("div",{"aria-hidden":"true",class:{"popper-container":true,"popper-container--active":i},ref:n},h("div",{class:o,onTransitionEnd:this.transitionEnd,ref:a},h("ul",{class:{list:true,"list--hide":!i}},h("slot",null))))};e.prototype.renderIconStart=function(){var e=this,t=e.selectionMode,i=e.needsIcon,n=e.selectedItems;var a=n[0];return t==="single"&&i&&h("span",{class:"icon-start"},(a===null||a===void 0?void 0:a.icon)&&h("calcite-icon",{class:"selected-icon",icon:a.icon,scale:"s"}))};e.prototype.renderIconEnd=function(){var e=this.active;return h("span",{class:"icon-end"},h("calcite-icon",{icon:e?"chevron-up":"chevron-down",scale:"s"}))};e.prototype.render=function(){var e=this,t=e.active,i=e.guid,n=e.label;var a=this.selectionMode==="single";return h(Host,{onKeyDown:this.keydownHandler},h("div",{"aria-autocomplete":"list","aria-expanded":toAriaBoolean(t),"aria-haspopup":"listbox","aria-labelledby":"".concat(labelUidPrefix).concat(i),"aria-owns":"".concat(listboxUidPrefix).concat(i),class:{wrapper:true,"wrapper--single":a||!this.selectedItems.length,"wrapper--active":t},onClick:this.clickHandler,ref:this.setReferenceEl,role:"combobox"},h("div",{class:"grid-input"},this.renderIconStart(),!a&&this.renderChips(),h("label",{class:"screen-readers-only",htmlFor:"".concat(inputUidPrefix).concat(i),id:"".concat(labelUidPrefix).concat(i)},n),this.renderInput()),this.renderIconEnd()),h("ul",{"aria-labelledby":"".concat(labelUidPrefix).concat(i),"aria-multiselectable":"true",class:"screen-readers-only",id:"".concat(listboxUidPrefix).concat(i),role:"listbox",tabIndex:-1},this.renderListBoxOptions()),this.renderPopperContainer(),h(HiddenFormInputSlot,{component:this}))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{active:["activeHandler"],disabled:["handleDisabledChange"],maxItems:["maxItemsHandler"],value:["valueHandler"],flipPlacements:["flipPlacementsHandler"],selectedItems:["selectedItemsHandler"],text:["textHandler"]}},enumerable:false,configurable:true});return e}();Combobox.style=comboboxCss;var CSS$1={icon:"icon",iconActive:"icon--active",custom:"icon--custom",dot:"icon--dot",single:"label--single",label:"label",active:"label--active",selected:"label--selected",title:"title",textContainer:"text-container"};var comboboxItemCss='@charset "UTF-8";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-item-spacing-indent:0.5rem}.scale--m{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-item-spacing-indent:0.75rem}.scale--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-item-spacing-indent:1rem}.container{--calcite-combobox-item-indent-value:calc(\n var(--calcite-combobox-item-spacing-indent) * var(--calcite-combobox-item-spacing-indent-multiplier)\n )}:host(:focus){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host,ul{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0px;outline:2px solid transparent;outline-offset:2px}.label{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;min-width:100%;cursor:pointer;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;padding:var(--calcite-combobox-item-spacing-unit-s) var(--calcite-combobox-item-spacing-unit-l)}:host([disabled]) .label{cursor:default}.label--selected{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}.label--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.label:hover,.label:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.title{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.icon{display:-ms-inline-flexbox;display:inline-flex;opacity:0;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);color:var(--calcite-ui-border-1)}.icon--indent{-webkit-padding-start:var(--calcite-combobox-item-indent-value);padding-inline-start:var(--calcite-combobox-item-indent-value)}.icon--custom{margin-top:-1px;color:var(--calcite-ui-text-3)}.icon--active{color:var(--calcite-ui-text-1)}.icon--dot{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;min-width:var(--calcite-combobox-item-spacing-unit-l)}.icon--dot:before{text-align:start;content:"•"}.label--active .icon{opacity:1}.label--selected .icon{opacity:1;color:var(--calcite-ui-brand)}:host(:hover[disabled]) .icon{opacity:1}';var ComboboxItem=function(){function e(e){var t=this;registerInstance(this,e);this.calciteComboboxItemChange=createEvent(this,"calciteComboboxItemChange",7);this.disabled=false;this.selected=false;this.active=false;this.guid=guid();this.scale="m";this.itemClickHandler=function(e){e.preventDefault();if(t.disabled){return}t.selected=!t.selected}}e.prototype.selectedWatchHandler=function(){this.calciteComboboxItemChange.emit(this.el)};e.prototype.connectedCallback=function(){this.ancestors=getAncestors(this.el);this.scale=getElementProp(this.el,"scale",this.scale);connectConditionalSlotComponent(this)};e.prototype.disconnectedCallback=function(){disconnectConditionalSlotComponent(this)};e.prototype.componentDidRender=function(){updateHostInteraction(this)};e.prototype.toggleSelected=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.disabled){return[2]}this.selected=typeof e==="boolean"?e:!this.selected;return[2]}))}))};e.prototype.renderIcon=function(e){var t,i;var n=this,a=n.icon,o=n.disabled,r=n.selected;var s="".concat(CSS$1.icon,"--indent");var c=e?"dot":"check";var l=o?"circle-disallowed":c;var m=e&&!a&&!o;return m?h("span",{class:(t={},t[CSS$1.icon]=true,t[CSS$1.dot]=true,t[s]=true,t)}):h("calcite-icon",{class:(i={},i[CSS$1.icon]=!a,i[CSS$1.custom]=!!a,i[CSS$1.iconActive]=a&&r,i[s]=true,i),icon:a||l,scale:"s"})};e.prototype.renderChildren=function(){if(getSlotted(this.el)){return h("ul",{key:"default-slot-container"},h("slot",null))}return null};e.prototype.render=function(){var e;var t=getElementProp(this.el,"selection-mode","multi")==="single";var i=(e={},e[CSS$1.label]=true,e[CSS$1.selected]=this.selected,e[CSS$1.active]=this.active,e[CSS$1.single]=t,e);var n=getDepth(this.el);return h(Host,{"aria-hidden":"true"},h("div",{class:"container scale--".concat(this.scale),style:{"--calcite-combobox-item-spacing-indent-multiplier":"".concat(n)}},h("li",{class:i,id:this.guid,onClick:this.itemClickHandler},this.renderIcon(t),h("span",{class:CSS$1.title},this.textLabel)),this.renderChildren()))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{selected:["selectedWatchHandler"]}},enumerable:false,configurable:true});return e}();ComboboxItem.style=comboboxItemCss;var CSS={list:"list",label:"label",title:"title"};var comboboxItemGroupCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-item-spacing-indent-1:0.5rem;--calcite-combobox-item-spacing-indent-2:1rem}.scale--m{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-item-spacing-indent-1:0.75rem;--calcite-combobox-item-spacing-indent-2:1.5rem}.scale--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-item-spacing-indent-1:1rem;--calcite-combobox-item-spacing-indent-2:2rem}:host,.list{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0px;outline:2px solid transparent;outline-offset:2px}.label{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;min-width:0px;max-width:100%;color:var(--calcite-ui-text-3)}.label--indent-1{-webkit-padding-start:var(--calcite-combobox-item-spacing-indent-1);padding-inline-start:var(--calcite-combobox-item-spacing-indent-1)}.label--indent-2{-webkit-padding-start:var(--calcite-combobox-item-spacing-indent-2);padding-inline-start:var(--calcite-combobox-item-spacing-indent-2)}.title{border:0 solid;display:block;-ms-flex:1 1 0%;flex:1 1 0%;border-bottom-width:1px;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2);word-wrap:break-word;word-break:break-word;border-bottom-color:var(--calcite-ui-border-3);padding:var(--calcite-combobox-item-spacing-unit-l) 0;margin-left:var(--calcite-combobox-item-spacing-unit-s);margin-right:var(--calcite-combobox-item-spacing-unit-s)}";var ComboboxItemGroup=function(){function e(e){registerInstance(this,e);this.guid=guid();this.scale="m"}e.prototype.connectedCallback=function(){this.ancestors=getAncestors(this.el);this.scale=getElementProp(this.el,"scale",this.scale)};e.prototype.render=function(){var e,t;var i=this,n=i.el,a=i.scale;var o="".concat(CSS.label,"--indent-").concat(getDepth(n));return h("ul",{"aria-labelledby":this.guid,class:(e={},e[CSS.list]=true,e["scale--".concat(a)]=true,e),role:"group"},h("li",{class:(t={},t[CSS.label]=true,t[o]=true,t),id:this.guid,role:"presentation"},h("span",{class:CSS.title},this.label)),h("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();ComboboxItemGroup.style=comboboxItemGroupCss;export{Combobox as calcite_combobox,ComboboxItem as calcite_combobox_item,ComboboxItemGroup as calcite_combobox_item_group};
|
|
@@ -2,4 +2,5 @@ var __awaiter=this&&this.__awaiter||function(e,t,a,r){function i(e){return e ins
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
5
|
-
*/import{r as registerInstance,c as createEvent,h,H as Host,g as getElement,F as Fragment}from"./index-bd94948c.js";import{T as TEXT,c as getDaysDiff,d as dateToISO,a as dateFromISO,b as dateFromRange,g as getLocaleData,H as HEADING_LEVEL,s as sameDate,i as inRange,l as localizeNumber,e as getOrder,n as nextMonth,f as prevMonth,h as parseNumber}from"./resources-73dac782.js";import{a as getElementDir,C as CSS_UTILITY}from"./dom-e7fa77b9.js";import{u as updateHostInteraction}from"./interactive-48b5cc0f.js";import{H as Heading}from"./Heading-d5f1710a.js";import"./locale-fc850b7c.js";import"./number-8779395f.js";import"./guid-196bd5ea.js";var datePickerCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:inline-block;width:100%;overflow:visible;border-radius:0px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);vertical-align:top}:host([scale=s]){max-width:216px}:host([scale=m]){max-width:286px}:host([scale=l]){max-width:398px}";var DatePicker=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDatePickerChange=createEvent(this,"calciteDatePickerChange",7);this.calciteDatePickerRangeChange=createEvent(this,"calciteDatePickerRangeChange",7);this.intlPrevMonth=TEXT.prevMonth;this.intlNextMonth=TEXT.nextMonth;this.intlYear=TEXT.year;this.locale=document.documentElement.lang||"en";this.scale="m";this.range=false;this.proximitySelectionDisabled=false;this.keyUpHandler=function(e){if(e.key==="Escape"){t.reset()}};this.monthHeaderSelectChange=function(e){var a=new Date(e.detail);if(!t.range){t.activeDate=a}else{if(t.activeRange==="end"){t.activeEndDate=a}else{t.activeStartDate=a}t.mostRecentRangeValue=a}};this.monthActiveDateChange=function(e){var a=new Date(e.detail);if(!t.range){t.activeDate=a}else{if(t.activeRange==="end"){t.activeEndDate=a}else{t.activeStartDate=a}t.mostRecentRangeValue=a}};this.monthHoverChange=function(e){if(!t.startAsDate){t.hoverRange=undefined;return}var a=new Date(e.detail);t.hoverRange={focused:t.activeRange||"start",start:t.startAsDate,end:t.endAsDate};if(!t.proximitySelectionDisabled){if(t.endAsDate){var r=getDaysDiff(a,t.startAsDate);var i=getDaysDiff(a,t.endAsDate);if(i>0){t.hoverRange.end=a;t.hoverRange.focused="end"}else if(r<0){t.hoverRange.start=a;t.hoverRange.focused="start"}else if(r>i){t.hoverRange.start=a;t.hoverRange.focused="start"}else{t.hoverRange.end=a;t.hoverRange.focused="end"}}else{if(a<t.startAsDate){t.hoverRange={focused:"start",start:a,end:t.startAsDate}}else{t.hoverRange.end=a;t.hoverRange.focused="end"}}}else{if(!t.endAsDate){if(a<t.startAsDate){t.hoverRange={focused:"start",start:a,end:t.startAsDate}}else{t.hoverRange.end=a;t.hoverRange.focused="end"}}else{t.hoverRange=undefined}}};this.monthMouseOutChange=function(){if(t.hoverRange){t.hoverRange=undefined}};this.reset=function(){var e,a,r,i,n,o;if(!Array.isArray(t.valueAsDate)&&t.valueAsDate&&((e=t.valueAsDate)===null||e===void 0?void 0:e.getTime())!==((a=t.activeDate)===null||a===void 0?void 0:a.getTime())){t.activeDate=new Date(t.valueAsDate)}if(t.startAsDate&&((r=t.startAsDate)===null||r===void 0?void 0:r.getTime())!==((i=t.activeStartDate)===null||i===void 0?void 0:i.getTime())){t.activeStartDate=new Date(t.startAsDate)}if(t.endAsDate&&((n=t.endAsDate)===null||n===void 0?void 0:n.getTime())!==((o=t.activeEndDate)===null||o===void 0?void 0:o.getTime())){t.activeEndDate=new Date(t.endAsDate)}};this.monthDateChange=function(e){var a=new Date(e.detail);if(!t.range){t.value=a?dateToISO(a):"";t.valueAsDate=a||null;t.activeDate=a||null;t.calciteDatePickerChange.emit(a);return}if(!t.startAsDate||!t.endAsDate&&a<t.startAsDate){if(t.startAsDate){t.setEndDate(new Date(t.startAsDate))}if(t.activeRange=="end"){t.setEndDate(a)}else{t.setStartDate(a)}}else if(!t.endAsDate){t.setEndDate(a)}else{if(!t.proximitySelectionDisabled){if(t.activeRange){if(t.activeRange=="end"){t.setEndDate(a)}else{t.setStartDate(a)}}else{var r=getDaysDiff(a,t.startAsDate);var i=getDaysDiff(a,t.endAsDate);if(i===0||r<0){t.setStartDate(a)}else if(r===0||i<0){t.setEndDate(a)}else if(r<i){t.setStartDate(a)}else{t.setEndDate(a)}}}else{t.setStartDate(a);t.endAsDate=t.activeEndDate=t.end=undefined}}t.calciteDatePickerChange.emit(a)}}e.prototype.handleValueAsDate=function(e){if(!Array.isArray(e)&&e&&e!==this.activeDate){this.activeDate=e}};e.prototype.handleRangeChange=function(){var e=this,t=e.startAsDate,a=e.endAsDate;this.activeEndDate=a;this.activeStartDate=t};e.prototype.onMinChanged=function(e){this.minAsDate=dateFromISO(e)};e.prototype.onMaxChanged=function(e){this.maxAsDate=dateFromISO(e)};e.prototype.connectedCallback=function(){if(Array.isArray(this.value)){this.valueAsDate=this.value.map((function(e){return dateFromISO(e)}));this.start=this.value[0];this.end=this.value[1]}else if(this.value){this.valueAsDate=dateFromISO(this.value)}if(this.start){this.setStartAsDate(dateFromISO(this.start))}if(this.end){this.setEndAsDate(dateFromISO(this.end))}if(this.min){this.minAsDate=dateFromISO(this.min)}if(this.max){this.maxAsDate=dateFromISO(this.max)}};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadLocaleData()];case 1:e.sent();this.onMinChanged(this.min);this.onMaxChanged(this.max);return[2]}}))}))};e.prototype.render=function(){var e;var t=dateFromRange(this.range?this.startAsDate:this.valueAsDate,this.minAsDate,this.maxAsDate);var a=this.range?this.getActiveStartDate(t,this.minAsDate,this.maxAsDate):this.getActiveDate(t,this.minAsDate,this.maxAsDate);var r=a;var i=this.range?dateFromRange(this.endAsDate,this.minAsDate,this.maxAsDate):null;var n=this.getActiveEndDate(i,this.minAsDate,this.maxAsDate);if((this.activeRange==="end"||((e=this.hoverRange)===null||e===void 0?void 0:e.focused)==="end"&&(!this.proximitySelectionDisabled||i))&&n){r=n}if(this.range&&this.mostRecentRangeValue){r=this.mostRecentRangeValue}var o=this.range&&this.activeRange?this.activeRange==="start"?this.minAsDate:t||this.minAsDate:this.minAsDate;var s=this.range&&this.activeRange?this.activeRange==="start"?i||this.maxAsDate:this.maxAsDate:this.maxAsDate;return h(Host,{onBlur:this.reset,onKeyUp:this.keyUpHandler,role:"application"},this.renderCalendar(r,s,o,t,i))};e.prototype.valueHandler=function(e){if(Array.isArray(e)){this.valueAsDate=e.map((function(e){return dateFromISO(e)}));this.start=e[0];this.end=e[1]}else if(e){this.valueAsDate=dateFromISO(e);this.start="";this.end=""}};e.prototype.startWatcher=function(e){this.setStartAsDate(dateFromISO(e))};e.prototype.endWatcher=function(e){this.setEndAsDate(dateFromISO(e))};e.prototype.loadLocaleData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(a){switch(a.label){case 0:e=this.locale;t=this;return[4,getLocaleData(e)];case 1:t.localeData=a.sent();return[2]}}))}))};e.prototype.renderCalendar=function(e,t,a,r,i){return this.localeData&&[h("calcite-date-picker-month-header",{activeDate:e,headingLevel:this.headingLevel||HEADING_LEVEL,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,localeData:this.localeData,max:t,min:a,onCalciteDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:this.activeRange==="end"?i:r||new Date}),h("calcite-date-picker-month",{activeDate:e,endDate:this.range?i:undefined,hoverRange:this.hoverRange,localeData:this.localeData,max:t,min:a,onCalciteDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteDatePickerHover:this.monthHoverChange,onCalciteDatePickerMouseOut:this.monthMouseOutChange,onCalciteDatePickerSelect:this.monthDateChange,scale:this.scale,selectedDate:this.activeRange==="end"?i:r,startDate:this.range?r:undefined})]};e.prototype.setStartAsDate=function(e,t){this.startAsDate=e;this.mostRecentRangeValue=this.startAsDate;if(t){this.calciteDatePickerRangeChange.emit({startDate:e,endDate:this.endAsDate})}};e.prototype.setEndAsDate=function(e,t){this.endAsDate=e;this.mostRecentRangeValue=this.endAsDate;if(t){this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:e})}};e.prototype.setEndDate=function(e){this.end=e?dateToISO(e):"";this.setEndAsDate(e,true);this.activeEndDate=e||null};e.prototype.setStartDate=function(e){this.start=e?dateToISO(e):"";this.setStartAsDate(e,true);this.activeStartDate=e||null};e.prototype.getActiveDate=function(e,t,a){return dateFromRange(this.activeDate,t,a)||e||dateFromRange(new Date,t,a)};e.prototype.getActiveStartDate=function(e,t,a){return dateFromRange(this.activeStartDate,t,a)||e||dateFromRange(new Date,t,a)};e.prototype.getActiveEndDate=function(e,t,a){return dateFromRange(this.activeEndDate,t,a)||e||dateFromRange(new Date,t,a)};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{valueAsDate:["handleValueAsDate"],startAsDate:["handleRangeChange"],endAsDate:["handleRangeChange"],min:["onMinChanged"],max:["onMaxChanged"],value:["valueHandler"],start:["startWatcher"],end:["endWatcher"],locale:["loadLocaleData"]}},enumerable:false,configurable:true});return e}();DatePicker.style=datePickerCss;var datePickerDayCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;min-width:0px;cursor:pointer;-ms-flex-pack:center;justify-content:center;color:var(--calcite-ui-text-3);width:14.2857142857%}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.day-v-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}.day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.day{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;line-height:1;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);-webkit-transition-property:all;transition-property:all;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;background:none;-webkit-box-shadow:0 0 0 2px transparent, 0 0 0 0px transparent;box-shadow:0 0 0 2px transparent, 0 0 0 0px transparent}.text{margin-top:1px;margin-right:0px;margin-bottom:0px;margin-left:1px}:host([scale=s]) .day-v-wrapper{padding-top:0.125rem;padding-bottom:0.125rem}:host([scale=s]) .day-wrapper{padding:0px}:host([scale=s]) .day{height:27px;width:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=m]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=m]) .day{height:33px;width:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=l]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=l]) .day{height:43px;width:43px;font-size:var(--calcite-font-size-0)}:host([current-month]) .day{opacity:1}:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:focus),:host([active]){outline:2px solid transparent;outline-offset:2px;z-index:1}:host(:focus:not([disabled])) .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important;z-index:1}:host([range][selected]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([start-of-range]) .day-wrapper{border-start-start-radius:40%;border-end-start-radius:40%}:host([end-of-range]) .day-wrapper{border-start-end-radius:40%;border-end-end-radius:40%}:host([start-of-range]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 4px 0 var(--calcite-ui-foreground-1);box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) :not(.calcite--rtl) .day,:host([end-of-range]) .calcite--rtl .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([end-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -4px 0 var(--calcite-ui-foreground-1);box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day,:host([start-of-range]) .calcite--rtl .day{opacity:1}:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([start-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -8px 0 var(--calcite-ui-foreground-1);box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 8px 0 var(--calcite-ui-foreground-1);box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([highlighted]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([highlighted]) .day-wrapper .day{color:var(--calcite-ui-text-1)}:host([highlighted]:not([active]:focus)) .day{border-radius:0px;color:var(--calcite-ui-text-1)}:host([range-hover]:not([selected])) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([range-hover]:not([selected])) .day{border-radius:0px}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-current)), to(var(--calcite-ui-foreground-current)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1))}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[start-of-range].hover--inside-range.focused--end) .day-wrapper,:host(:hover[end-of-range].hover--inside-range.focused--start) .day-wrapper{background-image:none}:host([start-of-range].hover--inside-range.focused--end) .day-wrapper,:host([end-of-range].hover--inside-range.focused--start) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:first-child) .calcite--rtl .day-wrapper,:host([range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:last-child) .calcite--rtl .day-wrapper,:host([range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) .day-wrapper,:host([range-hover]:first-child) .day-wrapper{border-start-start-radius:45%;border-end-start-radius:45%}:host([highlighted]:last-child) .day-wrapper,:host([range-hover]:last-child) .day-wrapper{border-start-end-radius:45%;border-end-end-radius:45%}:host([scale=l][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{border-radius:0px}:host([selected]){outline:2px solid canvasText;z-index:1}:host([selected]) .day{border-radius:0px}:host([selected]) .day{background-color:highlight}:host([range][selected]) .day-wrapper,:host([highlighted]) .day-wrapper,:host([range-hover]:not([selected])) .day-wrapper{background-color:highlight}:host([range][selected][start-of-range]) .day-wrapper,:host([range][selected][end-of-range]) .day-wrapper{background-color:canvas}}";var DatePickerDay=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDaySelect=createEvent(this,"calciteDaySelect",7);this.calciteDayHover=createEvent(this,"calciteDayHover",7);this.disabled=false;this.currentMonth=false;this.selected=false;this.highlighted=false;this.range=false;this.startOfRange=false;this.endOfRange=false;this.rangeHover=false;this.active=false;this.onClick=function(){!t.disabled&&t.calciteDaySelect.emit()};this.keyDownHandler=function(e){var a=e.key;if(a===" "||a==="Enter"){!t.disabled&&t.calciteDaySelect.emit()}}}e.prototype.mouseoverHandler=function(){this.calciteDayHover.emit({disabled:this.disabled})};e.prototype.render=function(){var e;var t=this;var a=String(this.day).split("").map((function(e){return t.localeData.numerals[e]})).join("");var r=getElementDir(this.el);return h(Host,{onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"gridcell"},h("div",{class:(e={"day-v-wrapper":true},e[CSS_UTILITY.rtl]=r==="rtl",e)},h("div",{class:"day-wrapper"},h("span",{class:"day"},h("span",{class:"text"},a)))))};e.prototype.componentDidRender=function(){updateHostInteraction(this,this.isTabbable)};e.prototype.isTabbable=function(){return this.active};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DatePickerDay.style=datePickerDayCss;var datePickerMonthCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.calender{margin-bottom:0.25rem}.week-headers{display:-ms-flexbox;display:flex;border-width:0px;border-top-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem}.week-header{text-align:center;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-3);width:14.2857142857%}:host([scale=s]) .week-header{padding-left:0px;padding-right:0px;padding-top:0.5rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .week-header{padding-left:0px;padding-right:0px;padding-top:0.75rem;padding-bottom:1rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]) .week-header{padding-left:0px;padding-right:0px;padding-top:1rem;padding-bottom:1.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}.week-days{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding-top:0px;padding-bottom:0px;padding-left:6px;padding-right:6px}.week-days:focus{outline:2px solid transparent;outline-offset:2px}";var DatePickerMonth=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDatePickerSelect=createEvent(this,"calciteDatePickerSelect",7);this.calciteDatePickerHover=createEvent(this,"calciteDatePickerHover",7);this.calciteDatePickerActiveDateChange=createEvent(this,"calciteDatePickerActiveDateChange",7);this.calciteDatePickerMouseOut=createEvent(this,"calciteDatePickerMouseOut",7);this.activeDate=new Date;this.keyDownHandler=function(e){var a=t.el.dir==="rtl";switch(e.key){case"ArrowUp":e.preventDefault();t.addDays(-7);break;case"ArrowRight":e.preventDefault();t.addDays(a?-1:1);break;case"ArrowDown":e.preventDefault();t.addDays(7);break;case"ArrowLeft":e.preventDefault();t.addDays(a?1:-1);break;case"PageUp":e.preventDefault();t.addMonths(-1);break;case"PageDown":e.preventDefault();t.addMonths(1);break;case"Home":e.preventDefault();t.activeDate.setDate(1);t.addDays();break;case"End":e.preventDefault();t.activeDate.setDate(new Date(t.activeDate.getFullYear(),t.activeDate.getMonth()+1,0).getDate());t.addDays();break;case"Enter":case" ":e.preventDefault();break;case"Tab":t.activeFocus=false}};this.disableActiveFocus=function(){t.activeFocus=false};this.dayHover=function(e){var a=e.target;if(e.detail.disabled){t.calciteDatePickerMouseOut.emit()}else{t.calciteDatePickerHover.emit(a.value)}};this.daySelect=function(e){var a=e.target;t.calciteDatePickerSelect.emit(a.value)}}e.prototype.mouseoutHandler=function(){this.calciteDatePickerMouseOut.emit()};e.prototype.render=function(){var e=this;var t=this.activeDate.getMonth();var a=this.activeDate.getFullYear();var r=this.localeData.weekStart%7;var i=this.localeData.days,n=i.abbreviated,o=i.short,s=i.narrow;var c=this.scale==="s"?s||o||n:o||n||s;var l=__spreadArray(__spreadArray([],c.slice(r,7),true),c.slice(0,r),true);var d=this.getCurrentMonthDays(t,a);var u=this.getPrevMonthdays(t,a,r);var f=this.getNextMonthDays(t,a,r);var p=__spreadArray(__spreadArray(__spreadArray([],u.map((function(r){var i=new Date(a,t-1,r);return e.renderDateDay(false,r,i)})),true),d.map((function(r){var i=new Date(a,t,r);var n=sameDate(i,e.activeDate);return e.renderDateDay(n,r,i,true,true)})),true),f.map((function(r){var i=new Date(a,t+1,r);return e.renderDateDay(false,r,i)})),true);var g=[];for(var m=0;m<p.length;m+=7){g.push(p.slice(m,m+7))}return h(Host,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},h("div",{class:"calender",role:"grid"},h("div",{class:"week-headers",role:"row"},l.map((function(e){return h("span",{class:"week-header",role:"columnheader"},e)}))),g.map((function(e){return h("div",{class:"week-days",role:"row"},e)}))))};e.prototype.addMonths=function(e){var t=new Date(this.activeDate);t.setMonth(this.activeDate.getMonth()+e);this.calciteDatePickerActiveDateChange.emit(dateFromRange(t,this.min,this.max));this.activeFocus=true};e.prototype.addDays=function(e){if(e===void 0){e=0}var t=new Date(this.activeDate);t.setDate(this.activeDate.getDate()+e);this.calciteDatePickerActiveDateChange.emit(dateFromRange(t,this.min,this.max));this.activeFocus=true};e.prototype.getPrevMonthdays=function(e,t,a){var r=new Date(t,e,0);var i=r.getDate();var n=r.getDay();var o=[];if(n-6===a){return o}for(var s=r.getDay();s>=a;s--){o.push(i-s)}return o};e.prototype.getCurrentMonthDays=function(e,t){var a=new Date(t,e+1,0).getDate();var r=[];for(var i=0;i<a;i++){r.push(i+1)}return r};e.prototype.getNextMonthDays=function(e,t,a){var r=new Date(t,e+1,0).getDay();var i=[];if(r===(a+6)%7){return i}for(var n=0;n<(6-(r-a))%7;n++){i.push(n+1)}return i};e.prototype.betweenSelectedRange=function(e){return!!(this.startDate&&this.endDate&&e>this.startDate&&e<this.endDate&&!this.isRangeHover(e))};e.prototype.isSelected=function(e){return!!(sameDate(e,this.selectedDate)||this.startDate&&sameDate(e,this.startDate)||this.endDate&&sameDate(e,this.endDate))};e.prototype.isStartOfRange=function(e){return!!(this.startDate&&!sameDate(this.startDate,this.endDate)&&sameDate(this.startDate,e)&&!this.isEndOfRange(e))};e.prototype.isEndOfRange=function(e){return!!(this.endDate&&!sameDate(this.startDate,this.endDate)&&sameDate(this.endDate,e)||!this.endDate&&this.hoverRange&&sameDate(this.startDate,this.hoverRange.end)&&sameDate(e,this.hoverRange.end))};e.prototype.renderDateDay=function(e,t,a,r,i){var n=this;var o;var s=this.isFocusedOnStart();var c=this.isHoverInRange()||!this.endDate&&this.hoverRange&&sameDate((o=this.hoverRange)===null||o===void 0?void 0:o.end,this.startDate);return h("calcite-date-picker-day",{active:e,class:{"hover--inside-range":this.startDate&&c,"hover--outside-range":this.startDate&&!c,"focused--start":s,"focused--end":!s},currentMonth:r,day:t,disabled:!inRange(a,this.min,this.max),endOfRange:this.isEndOfRange(a),highlighted:this.betweenSelectedRange(a),key:a.toDateString(),localeData:this.localeData,onCalciteDayHover:this.dayHover,onCalciteDaySelect:this.daySelect,range:!!this.startDate&&!!this.endDate&&!sameDate(this.startDate,this.endDate),rangeHover:this.isRangeHover(a),ref:function(t){if(i&&e&&n.activeFocus){t===null||t===void 0?void 0:t.focus()}},scale:this.scale,selected:this.isSelected(a),startOfRange:this.isStartOfRange(a),value:a})};e.prototype.isFocusedOnStart=function(){var e;return((e=this.hoverRange)===null||e===void 0?void 0:e.focused)==="start"};e.prototype.isHoverInRange=function(){if(!this.hoverRange){return false}var e=this.hoverRange,t=e.start,a=e.end;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||a<this.endDate)||this.isFocusedOnStart()&&this.startDate&&t>this.startDate)};e.prototype.isRangeHover=function(e){if(!this.hoverRange){return false}var t=this.hoverRange,a=t.start,r=t.end;var i=this.isFocusedOnStart();var n=this.isHoverInRange();var o=n&&(!i&&e>this.startDate&&(e<r||sameDate(e,r))||i&&e<this.endDate&&(e>a||sameDate(e,a)));var s=!n&&(!i&&e>=this.endDate&&(e<r||sameDate(e,r))||i&&(e<this.startDate||this.endDate&&sameDate(e,this.startDate))&&(e>a||sameDate(e,a)));return o||s};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DatePickerMonth.style=datePickerMonthCss;var datePickerMonthHeaderCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem}:host([scale=s]) .text{margin-top:0.5rem;margin-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .chevron{height:2.25rem}:host([scale=m]) .text{margin-top:0.75rem;margin-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .chevron{height:3rem}:host([scale=l]) .text{margin-top:1rem;margin-bottom:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .chevron{height:3.5rem}.chevron{margin-left:-0.25rem;margin-right:-0.25rem;-webkit-box-sizing:content-box;box-sizing:content-box;display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-left:0.25rem;padding-right:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width:14.2857142857%}.chevron:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.chevron:hover,.chevron:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.chevron:active{background-color:var(--calcite-ui-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none;opacity:0}.text{margin-top:auto;margin-bottom:auto;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;text-align:center;line-height:1}.text-nreverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.month,.year,.suffix{margin-left:0.25rem;margin-right:0.25rem;margin-top:auto;margin-bottom:auto;display:inline-block;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-1);font-size:inherit}.year{position:relative;width:3rem;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;z-index:2}.year:hover{-webkit-transition-duration:100ms;transition-duration:100ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-property:outline-color;transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}.year:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.year--suffix{width:4rem;text-align:left}.year-wrap{position:relative}.suffix{position:absolute;top:0px;left:0px;width:4rem;white-space:nowrap;text-align:left}.suffix__invisible{visibility:hidden}";var DatePickerMonthHeader=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDatePickerSelect=createEvent(this,"calciteDatePickerSelect",7);this.onYearKey=function(e){var a=e.target.value;switch(e.key){case"ArrowDown":e.preventDefault();t.setYear(a,-1);break;case"ArrowUp":e.preventDefault();t.setYear(a,1);break}};this.yearChanged=function(e){t.setYear(e.target.value)};this.prevMonthClick=function(e){t.handleArrowClick(e,t.prevMonthDate)};this.prevMonthKeydown=function(e){var a=e.key;if(a===" "||a==="Enter"){t.prevMonthClick(e)}};this.nextMonthClick=function(e){t.handleArrowClick(e,t.nextMonthDate)};this.nextMonthKeydown=function(e){var a=e.key;if(a===" "||a==="Enter"){t.nextMonthClick(e)}};this.handleArrowClick=function(e,a){e===null||e===void 0?void 0:e.preventDefault();e.stopPropagation();t.calciteDatePickerSelect.emit(a)}}e.prototype.connectedCallback=function(){this.setNextPrevMonthDates()};e.prototype.render=function(){return h("div",{class:"header"},this.renderContent())};e.prototype.renderContent=function(){var e=this;var t;if(!this.activeDate||!this.localeData){return null}var a=this.activeDate.getMonth();var r=this.localeData,i=r.months,n=r.unitOrder;var o=(i.wide||i.narrow||i.abbreviated)[a];var s=localizeNumber(this.activeDate.getFullYear(),this.localeData);var c=this.scale==="l"?"m":"s";var l=getOrder(n);var d=l.indexOf("y")<l.indexOf("m");var u=(t=this.localeData.year)===null||t===void 0?void 0:t.suffix;return h(Fragment,null,h("a",{"aria-disabled":(this.prevMonthDate.getMonth()===a).toString(),"aria-label":this.intlPrevMonth,class:"chevron",href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===a?-1:0},h("calcite-icon",{"flip-rtl":true,icon:"chevron-left",scale:c})),h("div",{class:{text:true,"text--reverse":d}},h(Heading,{class:"month",level:this.headingLevel},o),h("span",{class:"year-wrap"},h("input",{"aria-label":this.intlYear,class:{year:true,"year--suffix":!!u},inputmode:"numeric",maxlength:"4",minlength:"1",onInput:this.yearChanged,onKeyDown:this.onYearKey,pattern:"\\d*",ref:function(t){return e.yearInput=t},type:"text",value:s}),u&&h("span",{class:"suffix"},h("span",{"aria-hidden":"true",class:"suffix__invisible"},s)," "+u))),h("a",{"aria-disabled":(this.nextMonthDate.getMonth()===a).toString(),"aria-label":this.intlNextMonth,class:"chevron",href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===a?-1:0},h("calcite-icon",{"flip-rtl":true,icon:"chevron-right",scale:c})))};e.prototype.setNextPrevMonthDates=function(){if(!this.activeDate){return}this.nextMonthDate=dateFromRange(nextMonth(this.activeDate),this.min,this.max);this.prevMonthDate=dateFromRange(prevMonth(this.activeDate),this.min,this.max)};e.prototype.setYear=function(e,t){if(t===void 0){t=0}var a=this,r=a.min,i=a.max,n=a.activeDate,o=a.localeData,s=a.yearInput;var c=parseNumber(e,o);var l=c.toString().length;var d=isNaN(c)?false:c+t;var h=d&&(!r||r.getFullYear()<=d)&&(!i||i.getFullYear()>=d);if(d&&h&&l===e.length){var u=new Date(n);u.setFullYear(d);var f=dateFromRange(u,r,i);this.calciteDatePickerSelect.emit(f);s.value=localizeNumber(f.getFullYear(),o)}else{s.value=localizeNumber(n.getFullYear(),o)}};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}},enumerable:false,configurable:true});return e}();DatePickerMonthHeader.style=datePickerMonthHeaderCss;export{DatePicker as calcite_date_picker,DatePickerDay as calcite_date_picker_day,DatePickerMonth as calcite_date_picker_month,DatePickerMonthHeader as calcite_date_picker_month_header};
|
|
5
|
+
* v1.0.0-beta.82
|
|
6
|
+
*/import{r as registerInstance,c as createEvent,h,H as Host,g as getElement,F as Fragment}from"./index-8ece2564.js";import{T as TEXT,c as getDaysDiff,d as dateToISO,a as dateFromISO,b as dateFromRange,g as getLocaleData,H as HEADING_LEVEL,s as sameDate,i as inRange,l as localizeNumber,e as getOrder,n as nextMonth,f as prevMonth,h as parseNumber}from"./resources-f170fbe8.js";import{a as getElementDir,C as CSS_UTILITY}from"./dom-da697a3f.js";import{u as updateHostInteraction}from"./interactive-cb5bf285.js";import{H as Heading}from"./Heading-8d613e81.js";import"./locale-7ce850e5.js";import"./number-237e74a9.js";import"./guid-b4461004.js";var datePickerCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:inline-block;width:100%;overflow:visible;border-radius:0px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);vertical-align:top}:host([scale=s]){max-width:216px}:host([scale=m]){max-width:286px}:host([scale=l]){max-width:398px}";var DatePicker=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDatePickerChange=createEvent(this,"calciteDatePickerChange",7);this.calciteDatePickerRangeChange=createEvent(this,"calciteDatePickerRangeChange",7);this.intlPrevMonth=TEXT.prevMonth;this.intlNextMonth=TEXT.nextMonth;this.intlYear=TEXT.year;this.locale=document.documentElement.lang||"en";this.scale="m";this.range=false;this.proximitySelectionDisabled=false;this.keyUpHandler=function(e){if(e.key==="Escape"){t.reset()}};this.monthHeaderSelectChange=function(e){var a=new Date(e.detail);if(!t.range){t.activeDate=a}else{if(t.activeRange==="end"){t.activeEndDate=a}else{t.activeStartDate=a}t.mostRecentRangeValue=a}};this.monthActiveDateChange=function(e){var a=new Date(e.detail);if(!t.range){t.activeDate=a}else{if(t.activeRange==="end"){t.activeEndDate=a}else{t.activeStartDate=a}t.mostRecentRangeValue=a}};this.monthHoverChange=function(e){if(!t.startAsDate){t.hoverRange=undefined;return}var a=new Date(e.detail);t.hoverRange={focused:t.activeRange||"start",start:t.startAsDate,end:t.endAsDate};if(!t.proximitySelectionDisabled){if(t.endAsDate){var r=getDaysDiff(a,t.startAsDate);var i=getDaysDiff(a,t.endAsDate);if(i>0){t.hoverRange.end=a;t.hoverRange.focused="end"}else if(r<0){t.hoverRange.start=a;t.hoverRange.focused="start"}else if(r>i){t.hoverRange.start=a;t.hoverRange.focused="start"}else{t.hoverRange.end=a;t.hoverRange.focused="end"}}else{if(a<t.startAsDate){t.hoverRange={focused:"start",start:a,end:t.startAsDate}}else{t.hoverRange.end=a;t.hoverRange.focused="end"}}}else{if(!t.endAsDate){if(a<t.startAsDate){t.hoverRange={focused:"start",start:a,end:t.startAsDate}}else{t.hoverRange.end=a;t.hoverRange.focused="end"}}else{t.hoverRange=undefined}}};this.monthMouseOutChange=function(){if(t.hoverRange){t.hoverRange=undefined}};this.reset=function(){var e,a,r,i,n,o;if(!Array.isArray(t.valueAsDate)&&t.valueAsDate&&((e=t.valueAsDate)===null||e===void 0?void 0:e.getTime())!==((a=t.activeDate)===null||a===void 0?void 0:a.getTime())){t.activeDate=new Date(t.valueAsDate)}if(t.startAsDate&&((r=t.startAsDate)===null||r===void 0?void 0:r.getTime())!==((i=t.activeStartDate)===null||i===void 0?void 0:i.getTime())){t.activeStartDate=new Date(t.startAsDate)}if(t.endAsDate&&((n=t.endAsDate)===null||n===void 0?void 0:n.getTime())!==((o=t.activeEndDate)===null||o===void 0?void 0:o.getTime())){t.activeEndDate=new Date(t.endAsDate)}};this.monthDateChange=function(e){var a=new Date(e.detail);if(!t.range){t.value=a?dateToISO(a):"";t.valueAsDate=a||null;t.activeDate=a||null;t.calciteDatePickerChange.emit(a);return}if(!t.startAsDate||!t.endAsDate&&a<t.startAsDate){if(t.startAsDate){t.setEndDate(new Date(t.startAsDate))}if(t.activeRange=="end"){t.setEndDate(a)}else{t.setStartDate(a)}}else if(!t.endAsDate){t.setEndDate(a)}else{if(!t.proximitySelectionDisabled){if(t.activeRange){if(t.activeRange=="end"){t.setEndDate(a)}else{t.setStartDate(a)}}else{var r=getDaysDiff(a,t.startAsDate);var i=getDaysDiff(a,t.endAsDate);if(i===0||r<0){t.setStartDate(a)}else if(r===0||i<0){t.setEndDate(a)}else if(r<i){t.setStartDate(a)}else{t.setEndDate(a)}}}else{t.setStartDate(a);t.endAsDate=t.activeEndDate=t.end=undefined}}t.calciteDatePickerChange.emit(a)}}e.prototype.handleValueAsDate=function(e){if(!Array.isArray(e)&&e&&e!==this.activeDate){this.activeDate=e}};e.prototype.handleRangeChange=function(){var e=this,t=e.startAsDate,a=e.endAsDate;this.activeEndDate=a;this.activeStartDate=t};e.prototype.onMinChanged=function(e){if(e){this.minAsDate=dateFromISO(e)}};e.prototype.onMaxChanged=function(e){if(e){this.maxAsDate=dateFromISO(e)}};e.prototype.connectedCallback=function(){if(Array.isArray(this.value)){this.valueAsDate=this.value.map((function(e){return dateFromISO(e)}));this.start=this.value[0];this.end=this.value[1]}else if(this.value){this.valueAsDate=dateFromISO(this.value)}if(this.start){this.setStartAsDate(dateFromISO(this.start))}if(this.end){this.setEndAsDate(dateFromISO(this.end))}if(this.min){this.minAsDate=dateFromISO(this.min)}if(this.max){this.maxAsDate=dateFromISO(this.max)}};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadLocaleData()];case 1:e.sent();this.onMinChanged(this.min);this.onMaxChanged(this.max);return[2]}}))}))};e.prototype.render=function(){var e;var t=dateFromRange(this.range?this.startAsDate:this.valueAsDate,this.minAsDate,this.maxAsDate);var a=this.range?this.getActiveStartDate(t,this.minAsDate,this.maxAsDate):this.getActiveDate(t,this.minAsDate,this.maxAsDate);var r=a;var i=this.range?dateFromRange(this.endAsDate,this.minAsDate,this.maxAsDate):null;var n=this.getActiveEndDate(i,this.minAsDate,this.maxAsDate);if((this.activeRange==="end"||((e=this.hoverRange)===null||e===void 0?void 0:e.focused)==="end"&&(!this.proximitySelectionDisabled||i))&&n){r=n}if(this.range&&this.mostRecentRangeValue){r=this.mostRecentRangeValue}var o=this.range&&this.activeRange?this.activeRange==="start"?this.minAsDate:t||this.minAsDate:this.minAsDate;var s=this.range&&this.activeRange?this.activeRange==="start"?i||this.maxAsDate:this.maxAsDate:this.maxAsDate;return h(Host,{onBlur:this.reset,onKeyUp:this.keyUpHandler,role:"application"},this.renderCalendar(r,s,o,t,i))};e.prototype.valueHandler=function(e){if(Array.isArray(e)){this.valueAsDate=e.map((function(e){return dateFromISO(e)}));this.start=e[0];this.end=e[1]}else if(e){this.valueAsDate=dateFromISO(e);this.start="";this.end=""}};e.prototype.startWatcher=function(e){this.setStartAsDate(dateFromISO(e))};e.prototype.endWatcher=function(e){this.setEndAsDate(dateFromISO(e))};e.prototype.loadLocaleData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(a){switch(a.label){case 0:e=this.locale;t=this;return[4,getLocaleData(e)];case 1:t.localeData=a.sent();return[2]}}))}))};e.prototype.renderCalendar=function(e,t,a,r,i){return this.localeData&&[h("calcite-date-picker-month-header",{activeDate:e,headingLevel:this.headingLevel||HEADING_LEVEL,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,localeData:this.localeData,max:t,min:a,onCalciteDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:this.activeRange==="end"?i:r||new Date}),h("calcite-date-picker-month",{activeDate:e,endDate:this.range?i:undefined,hoverRange:this.hoverRange,localeData:this.localeData,max:t,min:a,onCalciteDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteDatePickerHover:this.monthHoverChange,onCalciteDatePickerMouseOut:this.monthMouseOutChange,onCalciteDatePickerSelect:this.monthDateChange,scale:this.scale,selectedDate:this.activeRange==="end"?i:r,startDate:this.range?r:undefined})]};e.prototype.setStartAsDate=function(e,t){this.startAsDate=e;this.mostRecentRangeValue=this.startAsDate;if(t){this.calciteDatePickerRangeChange.emit({startDate:e,endDate:this.endAsDate})}};e.prototype.setEndAsDate=function(e,t){this.endAsDate=e;this.mostRecentRangeValue=this.endAsDate;if(t){this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:e})}};e.prototype.setEndDate=function(e){this.end=e?dateToISO(e):"";this.setEndAsDate(e,true);this.activeEndDate=e||null};e.prototype.setStartDate=function(e){this.start=e?dateToISO(e):"";this.setStartAsDate(e,true);this.activeStartDate=e||null};e.prototype.getActiveDate=function(e,t,a){return dateFromRange(this.activeDate,t,a)||e||dateFromRange(new Date,t,a)};e.prototype.getActiveStartDate=function(e,t,a){return dateFromRange(this.activeStartDate,t,a)||e||dateFromRange(new Date,t,a)};e.prototype.getActiveEndDate=function(e,t,a){return dateFromRange(this.activeEndDate,t,a)||e||dateFromRange(new Date,t,a)};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{valueAsDate:["handleValueAsDate"],startAsDate:["handleRangeChange"],endAsDate:["handleRangeChange"],min:["onMinChanged"],max:["onMaxChanged"],value:["valueHandler"],start:["startWatcher"],end:["endWatcher"],locale:["loadLocaleData"]}},enumerable:false,configurable:true});return e}();DatePicker.style=datePickerCss;var datePickerDayCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;min-width:0px;cursor:pointer;-ms-flex-pack:center;justify-content:center;color:var(--calcite-ui-text-3);width:14.2857142857%}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.day-v-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}.day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.day{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;line-height:1;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);-webkit-transition-property:all;transition-property:all;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;background:none;-webkit-box-shadow:0 0 0 2px transparent, 0 0 0 0px transparent;box-shadow:0 0 0 2px transparent, 0 0 0 0px transparent}.text{margin-top:1px;margin-right:0px;margin-bottom:0px;margin-left:1px}:host([scale=s]) .day-v-wrapper{padding-top:0.125rem;padding-bottom:0.125rem}:host([scale=s]) .day-wrapper{padding:0px}:host([scale=s]) .day{height:27px;width:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=m]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=m]) .day{height:33px;width:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=l]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=l]) .day{height:43px;width:43px;font-size:var(--calcite-font-size-0)}:host([current-month]) .day{opacity:1}:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:focus),:host([active]){outline:2px solid transparent;outline-offset:2px;z-index:1}:host(:focus:not([disabled])) .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important;z-index:1}:host([range][selected]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([start-of-range]) .day-wrapper{border-start-start-radius:40%;border-end-start-radius:40%}:host([end-of-range]) .day-wrapper{border-start-end-radius:40%;border-end-end-radius:40%}:host([start-of-range]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 4px 0 var(--calcite-ui-foreground-1);box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) :not(.calcite--rtl) .day,:host([end-of-range]) .calcite--rtl .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([end-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -4px 0 var(--calcite-ui-foreground-1);box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day,:host([start-of-range]) .calcite--rtl .day{opacity:1}:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([start-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -8px 0 var(--calcite-ui-foreground-1);box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 8px 0 var(--calcite-ui-foreground-1);box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([highlighted]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([highlighted]) .day-wrapper .day{color:var(--calcite-ui-text-1)}:host([highlighted]:not([active]:focus)) .day{border-radius:0px;color:var(--calcite-ui-text-1)}:host([range-hover]:not([selected])) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([range-hover]:not([selected])) .day{border-radius:0px}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-current)), to(var(--calcite-ui-foreground-current)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1))}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[start-of-range].hover--inside-range.focused--end) .day-wrapper,:host(:hover[end-of-range].hover--inside-range.focused--start) .day-wrapper{background-image:none}:host([start-of-range].hover--inside-range.focused--end) .day-wrapper,:host([end-of-range].hover--inside-range.focused--start) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:first-child) .calcite--rtl .day-wrapper,:host([range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:last-child) .calcite--rtl .day-wrapper,:host([range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) .day-wrapper,:host([range-hover]:first-child) .day-wrapper{border-start-start-radius:45%;border-end-start-radius:45%}:host([highlighted]:last-child) .day-wrapper,:host([range-hover]:last-child) .day-wrapper{border-start-end-radius:45%;border-end-end-radius:45%}:host([scale=l][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{border-radius:0px}:host([selected]){outline:2px solid canvasText;z-index:1}:host([selected]) .day{border-radius:0px;background-color:highlight}:host([range][selected]) .day-wrapper,:host([highlighted]) .day-wrapper,:host([range-hover]:not([selected])) .day-wrapper{background-color:highlight}:host([range][selected][start-of-range]) .day-wrapper,:host([range][selected][end-of-range]) .day-wrapper{background-color:canvas}}";var DatePickerDay=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDaySelect=createEvent(this,"calciteDaySelect",7);this.calciteDayHover=createEvent(this,"calciteDayHover",7);this.disabled=false;this.currentMonth=false;this.selected=false;this.highlighted=false;this.range=false;this.startOfRange=false;this.endOfRange=false;this.rangeHover=false;this.active=false;this.onClick=function(){!t.disabled&&t.calciteDaySelect.emit()};this.keyDownHandler=function(e){var a=e.key;if(a===" "||a==="Enter"){!t.disabled&&t.calciteDaySelect.emit()}}}e.prototype.mouseoverHandler=function(){this.calciteDayHover.emit({disabled:this.disabled})};e.prototype.render=function(){var e;var t=this;var a=String(this.day).split("").map((function(e){return t.localeData.numerals[e]})).join("");var r=getElementDir(this.el);return h(Host,{onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"gridcell"},h("div",{class:(e={"day-v-wrapper":true},e[CSS_UTILITY.rtl]=r==="rtl",e)},h("div",{class:"day-wrapper"},h("span",{class:"day"},h("span",{class:"text"},a)))))};e.prototype.componentDidRender=function(){updateHostInteraction(this,this.isTabbable)};e.prototype.isTabbable=function(){return this.active};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DatePickerDay.style=datePickerDayCss;var datePickerMonthCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.calender{margin-bottom:0.25rem}.week-headers{display:-ms-flexbox;display:flex;border-width:0px;border-top-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem}.week-header{text-align:center;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-3);width:14.2857142857%}:host([scale=s]) .week-header{padding-left:0px;padding-right:0px;padding-top:0.5rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .week-header{padding-left:0px;padding-right:0px;padding-top:0.75rem;padding-bottom:1rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]) .week-header{padding-left:0px;padding-right:0px;padding-top:1rem;padding-bottom:1.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}.week-days{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding-top:0px;padding-bottom:0px;padding-left:6px;padding-right:6px}.week-days:focus{outline:2px solid transparent;outline-offset:2px}";var DatePickerMonth=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDatePickerSelect=createEvent(this,"calciteDatePickerSelect",7);this.calciteDatePickerHover=createEvent(this,"calciteDatePickerHover",7);this.calciteDatePickerActiveDateChange=createEvent(this,"calciteDatePickerActiveDateChange",7);this.calciteDatePickerMouseOut=createEvent(this,"calciteDatePickerMouseOut",7);this.activeDate=new Date;this.keyDownHandler=function(e){var a=t.el.dir==="rtl";switch(e.key){case"ArrowUp":e.preventDefault();t.addDays(-7);break;case"ArrowRight":e.preventDefault();t.addDays(a?-1:1);break;case"ArrowDown":e.preventDefault();t.addDays(7);break;case"ArrowLeft":e.preventDefault();t.addDays(a?1:-1);break;case"PageUp":e.preventDefault();t.addMonths(-1);break;case"PageDown":e.preventDefault();t.addMonths(1);break;case"Home":e.preventDefault();t.activeDate.setDate(1);t.addDays();break;case"End":e.preventDefault();t.activeDate.setDate(new Date(t.activeDate.getFullYear(),t.activeDate.getMonth()+1,0).getDate());t.addDays();break;case"Enter":case" ":e.preventDefault();break;case"Tab":t.activeFocus=false}};this.disableActiveFocus=function(){t.activeFocus=false};this.dayHover=function(e){var a=e.target;if(e.detail.disabled){t.calciteDatePickerMouseOut.emit()}else{t.calciteDatePickerHover.emit(a.value)}};this.daySelect=function(e){var a=e.target;t.calciteDatePickerSelect.emit(a.value)}}e.prototype.mouseoutHandler=function(){this.calciteDatePickerMouseOut.emit()};e.prototype.render=function(){var e=this;var t=this.activeDate.getMonth();var a=this.activeDate.getFullYear();var r=this.localeData.weekStart%7;var i=this.localeData.days,n=i.abbreviated,o=i.short,s=i.narrow;var c=this.scale==="s"?s||o||n:o||n||s;var l=__spreadArray(__spreadArray([],c.slice(r,7),true),c.slice(0,r),true);var d=this.getCurrentMonthDays(t,a);var u=this.getPrevMonthdays(t,a,r);var f=this.getNextMonthDays(t,a,r);var p=__spreadArray(__spreadArray(__spreadArray([],u.map((function(r){var i=new Date(a,t-1,r);return e.renderDateDay(false,r,i)})),true),d.map((function(r){var i=new Date(a,t,r);var n=sameDate(i,e.activeDate);return e.renderDateDay(n,r,i,true,true)})),true),f.map((function(r){var i=new Date(a,t+1,r);return e.renderDateDay(false,r,i)})),true);var g=[];for(var m=0;m<p.length;m+=7){g.push(p.slice(m,m+7))}return h(Host,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},h("div",{class:"calender",role:"grid"},h("div",{class:"week-headers",role:"row"},l.map((function(e){return h("span",{class:"week-header",role:"columnheader"},e)}))),g.map((function(e){return h("div",{class:"week-days",role:"row"},e)}))))};e.prototype.addMonths=function(e){var t=new Date(this.activeDate);t.setMonth(this.activeDate.getMonth()+e);this.calciteDatePickerActiveDateChange.emit(dateFromRange(t,this.min,this.max));this.activeFocus=true};e.prototype.addDays=function(e){if(e===void 0){e=0}var t=new Date(this.activeDate);t.setDate(this.activeDate.getDate()+e);this.calciteDatePickerActiveDateChange.emit(dateFromRange(t,this.min,this.max));this.activeFocus=true};e.prototype.getPrevMonthdays=function(e,t,a){var r=new Date(t,e,0);var i=r.getDate();var n=r.getDay();var o=[];if(n-6===a){return o}for(var s=Math.abs(r.getDay()-a);s>=0;s--){o.push(i-s)}return o};e.prototype.getCurrentMonthDays=function(e,t){var a=new Date(t,e+1,0).getDate();var r=[];for(var i=0;i<a;i++){r.push(i+1)}return r};e.prototype.getNextMonthDays=function(e,t,a){var r=new Date(t,e+1,0).getDay();var i=[];if(r===(a+6)%7){return i}for(var n=0;n<(6-(r-a))%7;n++){i.push(n+1)}return i};e.prototype.betweenSelectedRange=function(e){return!!(this.startDate&&this.endDate&&e>this.startDate&&e<this.endDate&&!this.isRangeHover(e))};e.prototype.isSelected=function(e){return!!(sameDate(e,this.selectedDate)||this.startDate&&sameDate(e,this.startDate)||this.endDate&&sameDate(e,this.endDate))};e.prototype.isStartOfRange=function(e){return!!(this.startDate&&!sameDate(this.startDate,this.endDate)&&sameDate(this.startDate,e)&&!this.isEndOfRange(e))};e.prototype.isEndOfRange=function(e){return!!(this.endDate&&!sameDate(this.startDate,this.endDate)&&sameDate(this.endDate,e)||!this.endDate&&this.hoverRange&&sameDate(this.startDate,this.hoverRange.end)&&sameDate(e,this.hoverRange.end))};e.prototype.renderDateDay=function(e,t,a,r,i){var n=this;var o;var s=this.isFocusedOnStart();var c=this.isHoverInRange()||!this.endDate&&this.hoverRange&&sameDate((o=this.hoverRange)===null||o===void 0?void 0:o.end,this.startDate);return h("calcite-date-picker-day",{active:e,class:{"hover--inside-range":this.startDate&&c,"hover--outside-range":this.startDate&&!c,"focused--start":s,"focused--end":!s},currentMonth:r,day:t,disabled:!inRange(a,this.min,this.max),endOfRange:this.isEndOfRange(a),highlighted:this.betweenSelectedRange(a),key:a.toDateString(),localeData:this.localeData,onCalciteDayHover:this.dayHover,onCalciteDaySelect:this.daySelect,range:!!this.startDate&&!!this.endDate&&!sameDate(this.startDate,this.endDate),rangeHover:this.isRangeHover(a),ref:function(t){if(i&&e&&n.activeFocus){t===null||t===void 0?void 0:t.focus()}},scale:this.scale,selected:this.isSelected(a),startOfRange:this.isStartOfRange(a),value:a})};e.prototype.isFocusedOnStart=function(){var e;return((e=this.hoverRange)===null||e===void 0?void 0:e.focused)==="start"};e.prototype.isHoverInRange=function(){if(!this.hoverRange){return false}var e=this.hoverRange,t=e.start,a=e.end;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||a<this.endDate)||this.isFocusedOnStart()&&this.startDate&&t>this.startDate)};e.prototype.isRangeHover=function(e){if(!this.hoverRange){return false}var t=this.hoverRange,a=t.start,r=t.end;var i=this.isFocusedOnStart();var n=this.isHoverInRange();var o=n&&(!i&&e>this.startDate&&(e<r||sameDate(e,r))||i&&e<this.endDate&&(e>a||sameDate(e,a)));var s=!n&&(!i&&e>=this.endDate&&(e<r||sameDate(e,r))||i&&(e<this.startDate||this.endDate&&sameDate(e,this.startDate))&&(e>a||sameDate(e,a)));return o||s};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DatePickerMonth.style=datePickerMonthCss;var datePickerMonthHeaderCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem}:host([scale=s]) .text{margin-top:0.5rem;margin-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .chevron{height:2.25rem}:host([scale=m]) .text{margin-top:0.75rem;margin-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .chevron{height:3rem}:host([scale=l]) .text{margin-top:1rem;margin-bottom:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .chevron{height:3.5rem}.chevron{margin-left:-0.25rem;margin-right:-0.25rem;-webkit-box-sizing:content-box;box-sizing:content-box;display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-left:0.25rem;padding-right:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width:14.2857142857%}.chevron:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.chevron:hover,.chevron:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.chevron:active{background-color:var(--calcite-ui-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none;opacity:0}.text{margin-top:auto;margin-bottom:auto;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;text-align:center;line-height:1}.text-nreverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.month,.year,.suffix{margin-left:0.25rem;margin-right:0.25rem;margin-top:auto;margin-bottom:auto;display:inline-block;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-1);font-size:inherit}.year{position:relative;width:3rem;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;z-index:2}.year:hover{-webkit-transition-duration:100ms;transition-duration:100ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-property:outline-color;transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}.year:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.year--suffix{width:4rem;text-align:left}.year-wrap{position:relative}.suffix{position:absolute;top:0px;left:0px;width:4rem;white-space:nowrap;text-align:left}.suffix__invisible{visibility:hidden}";var DatePickerMonthHeader=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDatePickerSelect=createEvent(this,"calciteDatePickerSelect",7);this.onYearKey=function(e){var a=e.target.value;switch(e.key){case"ArrowDown":e.preventDefault();t.setYear({localizedYear:a,offset:-1});break;case"ArrowUp":e.preventDefault();t.setYear({localizedYear:a,offset:1});break}};this.onYearChange=function(e){t.setYear({localizedYear:e.target.value})};this.onYearInput=function(e){t.setYear({localizedYear:e.target.value,commit:false})};this.prevMonthClick=function(e){t.handleArrowClick(e,t.prevMonthDate)};this.prevMonthKeydown=function(e){var a=e.key;if(a===" "||a==="Enter"){t.prevMonthClick(e)}};this.nextMonthClick=function(e){t.handleArrowClick(e,t.nextMonthDate)};this.nextMonthKeydown=function(e){var a=e.key;if(a===" "||a==="Enter"){t.nextMonthClick(e)}};this.handleArrowClick=function(e,a){e===null||e===void 0?void 0:e.preventDefault();e.stopPropagation();t.calciteDatePickerSelect.emit(a)}}e.prototype.connectedCallback=function(){this.setNextPrevMonthDates()};e.prototype.render=function(){return h("div",{class:"header"},this.renderContent())};e.prototype.renderContent=function(){var e=this;var t;if(!this.activeDate||!this.localeData){return null}var a=this.activeDate.getMonth();var r=this.localeData,i=r.months,n=r.unitOrder;var o=(i.wide||i.narrow||i.abbreviated)[a];var s=localizeNumber(this.activeDate.getFullYear(),this.localeData);var c=this.scale==="l"?"m":"s";var l=getOrder(n);var d=l.indexOf("y")<l.indexOf("m");var u=(t=this.localeData.year)===null||t===void 0?void 0:t.suffix;return h(Fragment,null,h("a",{"aria-disabled":(this.prevMonthDate.getMonth()===a).toString(),"aria-label":this.intlPrevMonth,class:"chevron",href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===a?-1:0},h("calcite-icon",{"flip-rtl":true,icon:"chevron-left",scale:c})),h("div",{class:{text:true,"text--reverse":d}},h(Heading,{class:"month",level:this.headingLevel},o),h("span",{class:"year-wrap"},h("input",{"aria-label":this.intlYear,class:{year:true,"year--suffix":!!u},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.onYearChange,onInput:this.onYearInput,onKeyDown:this.onYearKey,pattern:"\\d*",ref:function(t){return e.yearInput=t},type:"text",value:s}),u&&h("span",{class:"suffix"},h("span",{"aria-hidden":"true",class:"suffix__invisible"},s)," "+u))),h("a",{"aria-disabled":(this.nextMonthDate.getMonth()===a).toString(),"aria-label":this.intlNextMonth,class:"chevron",href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===a?-1:0},h("calcite-icon",{"flip-rtl":true,icon:"chevron-right",scale:c})))};e.prototype.setNextPrevMonthDates=function(){if(!this.activeDate){return}this.nextMonthDate=dateFromRange(nextMonth(this.activeDate),this.min,this.max);this.prevMonthDate=dateFromRange(prevMonth(this.activeDate),this.min,this.max)};e.prototype.getInRangeDate=function(e){var t=e.localizedYear,a=e.offset,r=a===void 0?0:a;var i=this,n=i.min,o=i.max,s=i.activeDate,c=i.localeData;var l=parseNumber(t,c);var d=l.toString().length;var h=isNaN(l)?false:l+r;var u=h&&(!n||n.getFullYear()<=h)&&(!o||o.getFullYear()>=h);if(h&&u&&d===t.length){var f=new Date(s);f.setFullYear(h);return dateFromRange(f,n,o)}};e.prototype.setYear=function(e){var t=e.localizedYear,a=e.commit,r=a===void 0?true:a,i=e.offset,n=i===void 0?0:i;var o=this,s=o.yearInput,c=o.activeDate,l=o.localeData;var d=this.getInRangeDate({localizedYear:t,offset:n});if(d){this.calciteDatePickerSelect.emit(d)}if(r){s.value=localizeNumber((d||c).getFullYear(),l)}};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}},enumerable:false,configurable:true});return e}();DatePickerMonthHeader.style=datePickerMonthHeaderCss;export{DatePicker as calcite_date_picker,DatePickerDay as calcite_date_picker_day,DatePickerMonth as calcite_date_picker_month,DatePickerMonthHeader as calcite_date_picker_month_header};
|