@esri/solutions-components 0.6.42 → 0.6.44
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{ExpandToggle-d2cec8de.js → ExpandToggle-965987de.js} +1 -1
- package/dist/cjs/{FloatingArrow-814ce566.js → FloatingArrow-5aba7af1.js} +1 -1
- package/dist/cjs/{Heading-2665acd8.js → Heading-b0970391.js} +1 -1
- package/dist/cjs/{ar-b68e4248.js → ar-e86d748c.js} +6 -6
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +3 -3
- package/dist/cjs/{bg-451cb8df.js → bg-6f72f34d.js} +6 -6
- package/dist/cjs/{bs-36760197.js → bs-290f2e0c.js} +6 -6
- package/dist/cjs/buffer-tools_4.cjs.entry.js +7 -7
- package/dist/cjs/{ca-0159f257.js → ca-d9261215.js} +6 -6
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/calcite-accordion.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-bar_3.cjs.entry.js +5 -5
- package/dist/cjs/calcite-action-group_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-action-pad.cjs.entry.js +5 -5
- package/dist/cjs/calcite-action_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-alert_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block-section.cjs.entry.js +3 -3
- package/dist/cjs/calcite-block.cjs.entry.js +6 -6
- package/dist/cjs/calcite-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-card.cjs.entry.js +3 -3
- package/dist/cjs/calcite-checkbox_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-chip-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-chip.cjs.entry.js +4 -4
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-color-picker.cjs.entry.js +3 -3
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +9 -9
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-date-picker.cjs.entry.js +4 -4
- package/dist/cjs/calcite-fab.cjs.entry.js +2 -2
- package/dist/cjs/calcite-filter_3.cjs.entry.js +3 -3
- package/dist/cjs/calcite-flow-item.cjs.entry.js +3 -3
- package/dist/cjs/calcite-flow.cjs.entry.js +2 -2
- package/dist/cjs/calcite-graph.cjs.entry.js +1 -1
- package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +3 -3
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +6 -6
- package/dist/cjs/calcite-input-number_2.cjs.entry.js +4 -4
- package/dist/cjs/{calcite-input-time-picker-ccb59f65.js → calcite-input-time-picker-b809da0b.js} +54 -54
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +6 -6
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-label.cjs.entry.js +1 -1
- package/dist/cjs/calcite-link.cjs.entry.js +2 -2
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-loader.cjs.entry.js +1 -1
- package/dist/cjs/calcite-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu.cjs.entry.js +3 -3
- package/dist/cjs/calcite-meter.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +5 -5
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +2 -2
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +2 -2
- package/dist/cjs/calcite-navigation.cjs.entry.js +2 -2
- package/dist/cjs/calcite-notice_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-option-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-option_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-pagination.cjs.entry.js +3 -3
- package/dist/cjs/calcite-panel_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +4 -4
- package/dist/cjs/calcite-pick-list.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-rating.cjs.entry.js +4 -4
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-sheet.cjs.entry.js +3 -3
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +8 -8
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js +2 -2
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +2 -2
- package/dist/cjs/calcite-stepper.cjs.entry.js +1 -1
- package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-table-row.cjs.entry.js +1 -1
- package/dist/cjs/calcite-table.cjs.entry.js +3 -3
- package/dist/cjs/calcite-text-area.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tile-select.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
- package/dist/cjs/calcite-time-picker.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tip-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tip.cjs.entry.js +4 -4
- package/dist/cjs/card-manager_3.cjs.entry.js +4 -4
- package/dist/cjs/{conditionalSlot-b6c29b8c.js → conditionalSlot-f577ba32.js} +1 -1
- package/dist/cjs/crowdsource-manager.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
- package/dist/cjs/{cs-5f80bd6e.js → cs-b250298e.js} +6 -6
- package/dist/cjs/{da-aca16382.js → da-8715f736.js} +6 -6
- package/dist/cjs/{de-ea9b8674.js → de-9289461a.js} +6 -6
- package/dist/cjs/{de-at-0a13e71d.js → de-at-e7ef417f.js} +6 -6
- package/dist/cjs/{de-ch-43d6d352.js → de-ch-de539200.js} +6 -6
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/{downloadUtils-9be94c17.js → downloadUtils-d017810f.js} +96 -28
- package/dist/cjs/{el-7ac6dd9a.js → el-7701d486.js} +6 -6
- package/dist/cjs/{en-au-5de83593.js → en-au-6e2f2f4b.js} +6 -6
- package/dist/cjs/{en-ca-a61f6ba9.js → en-ca-8bc8ae5b.js} +6 -6
- package/dist/cjs/{en-gb-1338ef98.js → en-gb-6e0fd6a4.js} +6 -6
- package/dist/cjs/{es-64cdf5af.js → es-dd9fcddf.js} +6 -6
- package/dist/cjs/{es-mx-25166a52.js → es-mx-32e3b2ce.js} +6 -6
- package/dist/cjs/{et-99cffe63.js → et-9c241f89.js} +6 -6
- package/dist/cjs/{fi-2ed1b695.js → fi-946c7e09.js} +6 -6
- package/dist/cjs/{form-88dd1a8a.js → form-da1bc377.js} +1 -1
- package/dist/cjs/{fr-1ad89d6e.js → fr-1a8ac01d.js} +6 -6
- package/dist/cjs/{fr-ch-e2b274f9.js → fr-ch-02594f06.js} +6 -6
- package/dist/cjs/{he-de9f7309.js → he-e3dd7687.js} +6 -6
- package/dist/cjs/{hi-972ca162.js → hi-66fc4798.js} +6 -6
- package/dist/cjs/{hr-9340950d.js → hr-2dbffa4f.js} +6 -6
- package/dist/cjs/{hu-3fa1a13d.js → hu-22732855.js} +6 -6
- package/dist/cjs/{id-1de2751e.js → id-40469057.js} +6 -6
- package/dist/cjs/{index-1ffa261f.js → index-2d5760f2.js} +77 -15
- package/dist/cjs/{index-2bdbac04.js → index-74222073.js} +1 -1
- package/dist/cjs/{index.es-f8a598dc.js → index.es-de35a9a4.js} +4 -4
- package/dist/cjs/{it-7c92766b.js → it-72244e1f.js} +6 -6
- package/dist/cjs/{it-ch-291b8188.js → it-ch-111e0a76.js} +6 -6
- package/dist/cjs/{ja-3e145c4f.js → ja-64c49fbb.js} +6 -6
- package/dist/cjs/{ko-1b8f5e87.js → ko-ba039889.js} +6 -6
- package/dist/cjs/layout-manager.cjs.entry.js +2 -2
- package/dist/cjs/list-item.cjs.entry.js +1 -1
- package/dist/cjs/{loadModules-03328b9d.js → loadModules-ad1ab1a8.js} +1 -1
- package/dist/cjs/{loadable-f8b40373.js → loadable-53fa41ac.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-d50f3250.js → locale-ef06bf9e.js} +1 -1
- package/dist/cjs/{lt-200e08d2.js → lt-14caf6e3.js} +6 -6
- package/dist/cjs/{lv-6e5561b5.js → lv-90627da7.js} +6 -6
- package/dist/cjs/map-select-tools_3.cjs.entry.js +6 -6
- package/dist/cjs/{mk-530773b7.js → mk-43da0937.js} +6 -6
- package/dist/cjs/{nb-6f6747f3.js → nb-6e84fe55.js} +6 -6
- package/dist/cjs/{nl-c6b3e47a.js → nl-b09e824f.js} +6 -6
- package/dist/cjs/{openCloseComponent-71c34b2c.js → openCloseComponent-56419b32.js} +1 -1
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/{pl-860110bc.js → pl-acc3eed9.js} +6 -6
- package/dist/cjs/{pt-6e3d2514.js → pt-445d1df2.js} +6 -6
- package/dist/cjs/{pt-br-66b1bb2b.js → pt-br-63d38ff8.js} +6 -6
- package/dist/cjs/public-notification.cjs.entry.js +6 -6
- package/dist/cjs/{publicNotificationStore-9c812ef4.js → publicNotificationStore-e1ae21f1.js} +1 -1
- package/dist/cjs/{ro-bd6b21e5.js → ro-3d33dcc0.js} +6 -6
- package/dist/cjs/{ru-fea2a60c.js → ru-6d33bd42.js} +6 -6
- package/dist/cjs/{shared-list-render-b1b515ba.js → shared-list-render-44ea9d69.js} +1 -1
- package/dist/cjs/{sk-f4693451.js → sk-8e7343e5.js} +6 -6
- package/dist/cjs/{sl-ba030ced.js → sl-b2721e1d.js} +6 -6
- package/dist/cjs/solution-configuration.cjs.entry.js +4 -4
- package/dist/cjs/solution-contents_3.cjs.entry.js +4 -4
- package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
- package/dist/cjs/{solution-store-b40c2f46.js → solution-store-b70fdc30.js} +1 -1
- package/dist/cjs/solutions-components.cjs.js +2 -2
- package/dist/cjs/spatial-ref.cjs.entry.js +2 -2
- package/dist/cjs/{sr-a3aeccbd.js → sr-6c42e7fd.js} +6 -6
- package/dist/cjs/store-manager.cjs.entry.js +1 -1
- package/dist/cjs/{sv-f96afdb7.js → sv-09355347.js} +6 -6
- package/dist/cjs/{t9n-47b85291.js → t9n-78efea01.js} +1 -1
- package/dist/cjs/{th-7be3c0cf.js → th-b011dfda.js} +6 -6
- package/dist/cjs/{tr-2bf900ba.js → tr-64095398.js} +6 -6
- package/dist/cjs/{uk-8d7c74d5.js → uk-942a3963.js} +6 -6
- package/dist/cjs/{utils-e90327b4.js → utils-bad1a9c3.js} +1 -1
- package/dist/cjs/{vi-c010010c.js → vi-1f4b147c.js} +6 -6
- package/dist/cjs/{zh-cn-089aaea3.js → zh-cn-d312b710.js} +6 -6
- package/dist/cjs/{zh-hk-0676f0be.js → zh-hk-8237d0e3.js} +6 -6
- package/dist/cjs/{zh-tw-acce58bc.js → zh-tw-f28548c8.js} +6 -6
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/basemap-gallery/basemap-gallery.css +19 -19
- package/dist/collection/components/layout-manager/layout-manager.css +73 -73
- package/dist/collection/components/map-fullscreen/map-fullscreen.css +19 -19
- package/dist/collection/components/map-legend/map-legend.css +3 -3
- package/dist/collection/components/map-search/map-search.css +24 -24
- package/dist/collection/demos/new-public-notification.html +1 -1
- package/dist/collection/utils/__b302600c5c884ab280e2ff6dc2e1fc78.json +387 -0
- package/dist/collection/utils/downloadUtils.js +93 -25
- package/dist/collection/utils/downloadUtils.ts +131 -30
- package/dist/collection/utils/test/downloadUtils.spec.js +24 -2
- package/dist/collection/utils/test/downloadUtils.spec.tsx +27 -5
- package/dist/components/downloadUtils.js +93 -25
- package/dist/esm/{ExpandToggle-3973cf71.js → ExpandToggle-e107f9b4.js} +1 -1
- package/dist/esm/{FloatingArrow-bfb95cb7.js → FloatingArrow-3bcbf69c.js} +1 -1
- package/dist/esm/{Heading-a3130bc6.js → Heading-d54e4e64.js} +1 -1
- package/dist/esm/{ar-e66d9603.js → ar-6024936e.js} +6 -6
- package/dist/esm/basemap-gallery_7.entry.js +3 -3
- package/dist/esm/{bg-e3cef9f9.js → bg-0aaf375e.js} +6 -6
- package/dist/esm/{bs-e5350540.js → bs-a29d4263.js} +6 -6
- package/dist/esm/buffer-tools_4.entry.js +7 -7
- package/dist/esm/{ca-2e572adf.js → ca-7025e8bd.js} +6 -6
- package/dist/esm/calcite-accordion-item.entry.js +2 -2
- package/dist/esm/calcite-accordion.entry.js +1 -1
- package/dist/esm/calcite-action-bar_3.entry.js +5 -5
- package/dist/esm/calcite-action-group_2.entry.js +4 -4
- package/dist/esm/calcite-action-pad.entry.js +5 -5
- package/dist/esm/calcite-action_2.entry.js +6 -6
- package/dist/esm/calcite-alert_3.entry.js +6 -6
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block-section.entry.js +3 -3
- package/dist/esm/calcite-block.entry.js +6 -6
- package/dist/esm/calcite-button.entry.js +4 -4
- package/dist/esm/calcite-card.entry.js +3 -3
- package/dist/esm/calcite-checkbox_3.entry.js +4 -4
- package/dist/esm/calcite-chip-group.entry.js +2 -2
- package/dist/esm/calcite-chip.entry.js +4 -4
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +2 -2
- package/dist/esm/calcite-color-picker.entry.js +3 -3
- package/dist/esm/calcite-combobox-item-group.entry.js +1 -1
- package/dist/esm/calcite-combobox_6.entry.js +9 -9
- package/dist/esm/calcite-date-picker-day_3.entry.js +2 -2
- package/dist/esm/calcite-date-picker.entry.js +4 -4
- package/dist/esm/calcite-fab.entry.js +2 -2
- package/dist/esm/calcite-filter_3.entry.js +3 -3
- package/dist/esm/calcite-flow-item.entry.js +3 -3
- package/dist/esm/calcite-flow.entry.js +2 -2
- package/dist/esm/calcite-graph.entry.js +1 -1
- package/dist/esm/calcite-icon.entry.js +1 -1
- package/dist/esm/calcite-inline-editable.entry.js +3 -3
- package/dist/esm/calcite-input-date-picker.entry.js +6 -6
- package/dist/esm/calcite-input-number_2.entry.js +4 -4
- package/dist/esm/{calcite-input-time-picker-77523075.js → calcite-input-time-picker-970d2da4.js} +54 -54
- package/dist/esm/calcite-input-time-picker.entry.js +6 -6
- package/dist/esm/calcite-input-time-zone.entry.js +4 -4
- package/dist/esm/calcite-input_2.entry.js +4 -4
- package/dist/esm/calcite-label.entry.js +1 -1
- package/dist/esm/calcite-link.entry.js +2 -2
- package/dist/esm/calcite-list-item-group.entry.js +1 -1
- package/dist/esm/calcite-loader.entry.js +1 -1
- package/dist/esm/calcite-menu-item.entry.js +3 -3
- package/dist/esm/calcite-menu.entry.js +3 -3
- package/dist/esm/calcite-meter.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +5 -5
- package/dist/esm/calcite-navigation-logo.entry.js +2 -2
- package/dist/esm/calcite-navigation-user.entry.js +2 -2
- package/dist/esm/calcite-navigation.entry.js +2 -2
- package/dist/esm/calcite-notice_2.entry.js +6 -6
- package/dist/esm/calcite-option-group.entry.js +1 -1
- package/dist/esm/calcite-option_2.entry.js +3 -3
- package/dist/esm/calcite-pagination.entry.js +3 -3
- package/dist/esm/calcite-panel_2.entry.js +5 -5
- package/dist/esm/calcite-pick-list-group.entry.js +3 -3
- package/dist/esm/calcite-pick-list-item.entry.js +4 -4
- package/dist/esm/calcite-pick-list.entry.js +3 -3
- package/dist/esm/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm/calcite-radio-button.entry.js +3 -3
- package/dist/esm/calcite-rating.entry.js +4 -4
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-segmented-control_2.entry.js +3 -3
- package/dist/esm/calcite-sheet.entry.js +3 -3
- package/dist/esm/calcite-shell-center-row.entry.js +2 -2
- package/dist/esm/calcite-shell-panel_14.entry.js +8 -8
- package/dist/esm/calcite-sortable-list.entry.js +1 -1
- package/dist/esm/calcite-split-button.entry.js +2 -2
- package/dist/esm/calcite-stepper-item.entry.js +2 -2
- package/dist/esm/calcite-stepper.entry.js +1 -1
- package/dist/esm/calcite-switch.entry.js +3 -3
- package/dist/esm/calcite-table-cell_2.entry.js +3 -3
- package/dist/esm/calcite-table-row.entry.js +1 -1
- package/dist/esm/calcite-table.entry.js +3 -3
- package/dist/esm/calcite-text-area.entry.js +4 -4
- package/dist/esm/calcite-tile-select-group.entry.js +1 -1
- package/dist/esm/calcite-tile-select.entry.js +2 -2
- package/dist/esm/calcite-tile.entry.js +2 -2
- package/dist/esm/calcite-time-picker.entry.js +3 -3
- package/dist/esm/calcite-tip-group.entry.js +1 -1
- package/dist/esm/calcite-tip-manager.entry.js +3 -3
- package/dist/esm/calcite-tip.entry.js +4 -4
- package/dist/esm/card-manager_3.entry.js +4 -4
- package/dist/esm/{conditionalSlot-94095778.js → conditionalSlot-2966afcc.js} +1 -1
- package/dist/esm/crowdsource-manager.entry.js +2 -2
- package/dist/esm/crowdsource-reporter.entry.js +1 -1
- package/dist/esm/{cs-4f054159.js → cs-e75d4f0f.js} +6 -6
- package/dist/esm/{da-6c556fce.js → da-7ef2ef83.js} +6 -6
- package/dist/esm/{de-ca621a89.js → de-8c937192.js} +6 -6
- package/dist/esm/{de-at-d3095241.js → de-at-2d6f27fb.js} +6 -6
- package/dist/esm/{de-ch-83fcc045.js → de-ch-94e48c2e.js} +6 -6
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/{downloadUtils-c9f4592e.js → downloadUtils-a3f28bae.js} +96 -28
- package/dist/esm/{el-0caa1e48.js → el-a2fbe5ed.js} +6 -6
- package/dist/esm/{en-au-1a9727f6.js → en-au-e41b88d1.js} +6 -6
- package/dist/esm/{en-ca-9efe6ab1.js → en-ca-87be65a9.js} +6 -6
- package/dist/esm/{en-gb-87813f25.js → en-gb-83952182.js} +6 -6
- package/dist/esm/{es-a564ac80.js → es-141e8350.js} +6 -6
- package/dist/esm/{es-mx-69a7843b.js → es-mx-b6a7e8b9.js} +6 -6
- package/dist/esm/{et-8018f213.js → et-938a5466.js} +6 -6
- package/dist/esm/{fi-c8023099.js → fi-b2c86fbe.js} +6 -6
- package/dist/esm/{form-43cd1811.js → form-77fd19cb.js} +1 -1
- package/dist/esm/{fr-4a6841af.js → fr-38f2377b.js} +6 -6
- package/dist/esm/{fr-ch-abed2e2a.js → fr-ch-f0aa93c8.js} +6 -6
- package/dist/esm/{he-0324b963.js → he-c4b286cd.js} +6 -6
- package/dist/esm/{hi-f1f4309f.js → hi-78cb42a0.js} +6 -6
- package/dist/esm/{hr-410e913d.js → hr-a4637cfd.js} +6 -6
- package/dist/esm/{hu-090901ba.js → hu-54c88160.js} +6 -6
- package/dist/esm/{id-52323c08.js → id-059e47c6.js} +6 -6
- package/dist/esm/{index-0740c914.js → index-b05b3079.js} +77 -15
- package/dist/esm/{index-71d123d4.js → index-da1495f5.js} +1 -1
- package/dist/esm/{index.es-35932b31.js → index.es-e0432a23.js} +4 -4
- package/dist/esm/{it-3980ce36.js → it-015c5cc3.js} +6 -6
- package/dist/esm/{it-ch-aa4b9653.js → it-ch-f345a8fe.js} +6 -6
- package/dist/esm/{ja-edbfdf17.js → ja-f6c91a37.js} +6 -6
- package/dist/esm/{ko-28dfbdfb.js → ko-7b0bfdfa.js} +6 -6
- package/dist/esm/layout-manager.entry.js +2 -2
- package/dist/esm/list-item.entry.js +1 -1
- package/dist/esm/{loadModules-687a30c5.js → loadModules-0bf05e85.js} +1 -1
- package/dist/esm/{loadable-0029bf3d.js → loadable-9617e31c.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{locale-6be4e8f0.js → locale-5bdc0197.js} +1 -1
- package/dist/esm/{lt-36215874.js → lt-ebe0d73b.js} +6 -6
- package/dist/esm/{lv-5f613cfd.js → lv-f7cb8ecf.js} +6 -6
- package/dist/esm/map-select-tools_3.entry.js +6 -6
- package/dist/esm/{mk-a8e8d2f1.js → mk-fdcc6d81.js} +6 -6
- package/dist/esm/{nb-5accd1d3.js → nb-44fa5d1f.js} +6 -6
- package/dist/esm/{nl-aa9a0bb6.js → nl-72a97244.js} +6 -6
- package/dist/esm/{openCloseComponent-943c5248.js → openCloseComponent-ecc80ec6.js} +1 -1
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/{pl-23465d62.js → pl-6594cf3b.js} +6 -6
- package/dist/esm/{pt-41864e9d.js → pt-a7407eb8.js} +6 -6
- package/dist/esm/{pt-br-c6bd3fe5.js → pt-br-83e7fa27.js} +6 -6
- package/dist/esm/public-notification.entry.js +6 -6
- package/dist/esm/{publicNotificationStore-f25d1e95.js → publicNotificationStore-05b455ff.js} +1 -1
- package/dist/esm/{ro-b554cdb2.js → ro-455d4855.js} +6 -6
- package/dist/esm/{ru-fabf5351.js → ru-afedf1c0.js} +6 -6
- package/dist/esm/{shared-list-render-eba3dbdf.js → shared-list-render-086be7e0.js} +1 -1
- package/dist/esm/{sk-6c30f92d.js → sk-593b7042.js} +6 -6
- package/dist/esm/{sl-53339340.js → sl-738e75ca.js} +6 -6
- package/dist/esm/solution-configuration.entry.js +4 -4
- package/dist/esm/solution-contents_3.entry.js +4 -4
- package/dist/esm/solution-item-icon.entry.js +1 -1
- package/dist/esm/{solution-store-17bb0a75.js → solution-store-c0ac9298.js} +1 -1
- package/dist/esm/solutions-components.js +3 -3
- package/dist/esm/spatial-ref.entry.js +2 -2
- package/dist/esm/{sr-bb55e815.js → sr-46d78867.js} +6 -6
- package/dist/esm/store-manager.entry.js +1 -1
- package/dist/esm/{sv-e7415076.js → sv-a5afd0c2.js} +6 -6
- package/dist/esm/{t9n-976a6630.js → t9n-709a2605.js} +1 -1
- package/dist/esm/{th-5035f441.js → th-0e794832.js} +6 -6
- package/dist/esm/{tr-8693739a.js → tr-c520e117.js} +6 -6
- package/dist/esm/{uk-dfe80c4a.js → uk-98d8c935.js} +6 -6
- package/dist/esm/{utils-f7c0de62.js → utils-1c26ea1b.js} +1 -1
- package/dist/esm/{vi-540a8ddc.js → vi-d6022534.js} +6 -6
- package/dist/esm/{zh-cn-28e77ef2.js → zh-cn-c112d022.js} +6 -6
- package/dist/esm/{zh-hk-15113982.js → zh-hk-2d857989.js} +6 -6
- package/dist/esm/{zh-tw-f33efd8d.js → zh-tw-196abcd0.js} +6 -6
- package/dist/solutions-components/demos/new-public-notification.html +1 -1
- package/dist/solutions-components/{p-d738fea9.js → p-00026bea.js} +1 -1
- package/dist/solutions-components/{p-dd7e8e5d.entry.js → p-0123207d.entry.js} +1 -1
- package/dist/solutions-components/{p-79beb262.js → p-02b1befe.js} +4 -4
- package/dist/solutions-components/{p-61e0440a.entry.js → p-02e84287.entry.js} +1 -1
- package/dist/solutions-components/{p-bc4c41ba.js → p-039ac222.js} +1 -1
- package/dist/solutions-components/{p-5347984d.entry.js → p-071d92ec.entry.js} +1 -1
- package/dist/solutions-components/{p-21a54586.entry.js → p-091f2e4a.entry.js} +1 -1
- package/dist/solutions-components/{p-735cdbaf.js → p-0a976cf8.js} +1 -1
- package/dist/solutions-components/{p-2ba31b8a.entry.js → p-0bd702b0.entry.js} +1 -1
- package/dist/solutions-components/{p-8c00bf84.entry.js → p-0c77262e.entry.js} +1 -1
- package/dist/solutions-components/{p-234d20b1.js → p-0ca9f9b0.js} +1 -1
- package/dist/solutions-components/{p-960d5e0d.entry.js → p-109dcfef.entry.js} +1 -1
- package/dist/solutions-components/{p-2af0a6c7.entry.js → p-11a5efc8.entry.js} +1 -1
- package/dist/solutions-components/{p-d5517d0d.js → p-123257b4.js} +1 -1
- package/dist/solutions-components/{p-f6fa0003.js → p-139ff4ab.js} +1 -1
- package/dist/solutions-components/{p-53fe14b3.entry.js → p-13d0424a.entry.js} +1 -1
- package/dist/solutions-components/{p-fa06a8f7.entry.js → p-1738c574.entry.js} +1 -1
- package/dist/solutions-components/{p-5e8dee25.entry.js → p-17452dc7.entry.js} +1 -1
- package/dist/solutions-components/{p-48ce2adc.js → p-18bdcb54.js} +1 -1
- package/dist/solutions-components/{p-0335478a.entry.js → p-1abf4a98.entry.js} +1 -1
- package/dist/solutions-components/{p-6d2d7943.js → p-1b606a4e.js} +1 -1
- package/dist/solutions-components/{p-937c2c82.entry.js → p-1d8b5383.entry.js} +1 -1
- package/dist/solutions-components/{p-86f33d1b.js → p-1efb6f5e.js} +1 -1
- package/dist/solutions-components/{p-c9936cc9.js → p-1f8b3c22.js} +1 -1
- package/dist/solutions-components/{p-d6b50da2.js → p-244fe501.js} +1 -1
- package/dist/solutions-components/{p-0591ccfd.entry.js → p-25736760.entry.js} +1 -1
- package/dist/solutions-components/{p-29120ecd.js → p-27431aa6.js} +1 -1
- package/dist/solutions-components/{p-2b59e4cf.js → p-27c3142d.js} +1 -1
- package/dist/solutions-components/{p-99900c72.entry.js → p-29f22e76.entry.js} +1 -1
- package/dist/solutions-components/{p-94785227.entry.js → p-2a8e0824.entry.js} +1 -1
- package/dist/solutions-components/{p-4277bdc8.entry.js → p-2c095772.entry.js} +2 -2
- package/dist/solutions-components/{p-aacbdedb.entry.js → p-2c49fea8.entry.js} +1 -1
- package/dist/solutions-components/{p-ae952961.entry.js → p-2c676869.entry.js} +1 -1
- package/dist/solutions-components/{p-6190f6b9.entry.js → p-2d34a885.entry.js} +1 -1
- package/dist/solutions-components/{p-bf73ccae.js → p-319e672e.js} +1 -1
- package/dist/solutions-components/{p-6d783ec5.js → p-3324bc9c.js} +1 -1
- package/dist/solutions-components/{p-b7f5a5c9.js → p-33833cea.js} +1 -1
- package/dist/solutions-components/{p-97b2521a.entry.js → p-3556a164.entry.js} +1 -1
- package/dist/solutions-components/{p-bee78404.js → p-369e28ed.js} +2 -2
- package/dist/solutions-components/{p-34ae5550.entry.js → p-37551e19.entry.js} +1 -1
- package/dist/solutions-components/{p-164a80fb.js → p-3a712812.js} +1 -1
- package/dist/solutions-components/{p-6c39845d.entry.js → p-3ca5956e.entry.js} +1 -1
- package/dist/solutions-components/{p-3b8d021c.js → p-3e1346f4.js} +1 -1
- package/dist/solutions-components/{p-1da1779e.entry.js → p-42472527.entry.js} +1 -1
- package/dist/solutions-components/{p-b6f9d874.js → p-427f8955.js} +1 -1
- package/dist/solutions-components/{p-fa63c8b1.js → p-4349f3f7.js} +1 -1
- package/dist/solutions-components/{p-22eb9ead.entry.js → p-44ddfacf.entry.js} +1 -1
- package/dist/solutions-components/{p-99391a15.entry.js → p-45cf4f67.entry.js} +1 -1
- package/dist/solutions-components/{p-13e96533.js → p-48a44c8d.js} +1 -1
- package/dist/solutions-components/{p-3a668467.js → p-49dc53cb.js} +1 -1
- package/dist/solutions-components/{p-e52091fa.js → p-4ce32f39.js} +1 -1
- package/dist/solutions-components/{p-8458b57c.entry.js → p-4daf1755.entry.js} +1 -1
- package/dist/solutions-components/{p-fc141ca0.js → p-4eb21769.js} +2 -2
- package/dist/solutions-components/{p-50d9056a.entry.js → p-4fbf3997.entry.js} +1 -1
- package/dist/solutions-components/{p-851edd3b.entry.js → p-50a7927d.entry.js} +1 -1
- package/dist/solutions-components/{p-7cc21aa4.entry.js → p-524078d6.entry.js} +1 -1
- package/dist/solutions-components/{p-6b61a3cd.js → p-528116a5.js} +1 -1
- package/dist/solutions-components/{p-a35a422a.js → p-52d5d2c7.js} +1 -1
- package/dist/solutions-components/{p-cfa0c38b.entry.js → p-5507d527.entry.js} +1 -1
- package/dist/solutions-components/{p-fbc7fc26.entry.js → p-557a1912.entry.js} +1 -1
- package/dist/solutions-components/{p-224f47c5.js → p-59f96664.js} +1 -1
- package/dist/solutions-components/{p-5a2c1d3a.entry.js → p-5a5676d4.entry.js} +1 -1
- package/dist/solutions-components/{p-6f59f4ee.js → p-5d5d10d5.js} +1 -1
- package/dist/solutions-components/{p-524dbb02.entry.js → p-5f4fba81.entry.js} +1 -1
- package/dist/solutions-components/{p-edf861a1.entry.js → p-60336409.entry.js} +1 -1
- package/dist/solutions-components/{p-04660d48.entry.js → p-63770d57.entry.js} +1 -1
- package/dist/solutions-components/{p-73c50d50.js → p-640de6e2.js} +2 -2
- package/dist/solutions-components/{p-9a66d8c7.js → p-64106e73.js} +1 -1
- package/dist/solutions-components/{p-0d773964.entry.js → p-64963b28.entry.js} +1 -1
- package/dist/solutions-components/{p-89e4299f.js → p-6536a858.js} +1 -1
- package/dist/solutions-components/{p-97effcfe.entry.js → p-68735975.entry.js} +1 -1
- package/dist/solutions-components/{p-80ff1462.entry.js → p-69925ee2.entry.js} +1 -1
- package/dist/solutions-components/{p-30019a9d.js → p-69b7a4da.js} +1 -1
- package/dist/solutions-components/{p-2a5903e0.js → p-6acf6258.js} +1 -1
- package/dist/solutions-components/{p-c2c000fc.entry.js → p-6b7be761.entry.js} +1 -1
- package/dist/solutions-components/{p-4f29d862.entry.js → p-6e779398.entry.js} +2 -2
- package/dist/solutions-components/{p-3a1ce0b3.entry.js → p-73e7af57.entry.js} +1 -1
- package/dist/solutions-components/{p-370cdc1a.js → p-761adec1.js} +1 -1
- package/dist/solutions-components/{p-9f8cd92d.js → p-76384a24.js} +1 -1
- package/dist/solutions-components/{p-b8ce608e.js → p-788f3c1c.js} +2 -2
- package/dist/solutions-components/{p-2df8b0d2.js → p-799ba781.js} +1 -1
- package/dist/solutions-components/{p-2db4adca.entry.js → p-7c937dad.entry.js} +1 -1
- package/dist/solutions-components/{p-40e95e2b.entry.js → p-7ea11939.entry.js} +1 -1
- package/dist/solutions-components/{p-852e7d6c.js → p-7fea302e.js} +1 -1
- package/dist/solutions-components/{p-a574b12e.entry.js → p-800d0291.entry.js} +1 -1
- package/dist/solutions-components/{p-2a0238d4.entry.js → p-8239ee0e.entry.js} +1 -1
- package/dist/solutions-components/{p-9a41ea03.js → p-83208f15.js} +1 -1
- package/dist/solutions-components/{p-994e84f7.js → p-857c255c.js} +1 -1
- package/dist/solutions-components/{p-40532d71.entry.js → p-87e51c05.entry.js} +1 -1
- package/dist/solutions-components/p-8a2ae571.js +11 -0
- package/dist/solutions-components/{p-fd1da29a.entry.js → p-8f535590.entry.js} +1 -1
- package/dist/solutions-components/p-8f650f5a.entry.js +6 -0
- package/dist/solutions-components/{p-0dfd47df.entry.js → p-9183a4ab.entry.js} +1 -1
- package/dist/solutions-components/{p-d8ac40a5.js → p-940c447c.js} +1 -1
- package/dist/solutions-components/{p-40d50491.entry.js → p-9640d89a.entry.js} +1 -1
- package/dist/solutions-components/{p-71049433.entry.js → p-98d82820.entry.js} +2 -2
- package/dist/solutions-components/{p-9894c380.js → p-9b5df16f.js} +1 -1
- package/dist/solutions-components/{p-f2c3068e.entry.js → p-9c64026c.entry.js} +1 -1
- package/dist/solutions-components/{p-3b3b8693.entry.js → p-9ddb9445.entry.js} +2 -2
- package/dist/solutions-components/{p-10375537.js → p-9e10d371.js} +1 -1
- package/dist/solutions-components/{p-2d143359.entry.js → p-9fd9dab0.entry.js} +1 -1
- package/dist/solutions-components/{p-56ccef9e.entry.js → p-a30bf8f8.entry.js} +1 -1
- package/dist/solutions-components/{p-8b912783.js → p-a3538132.js} +1 -1
- package/dist/solutions-components/{p-d32a1308.entry.js → p-a525e175.entry.js} +1 -1
- package/dist/solutions-components/{p-fc7de108.entry.js → p-a6774162.entry.js} +1 -1
- package/dist/solutions-components/{p-99d8a839.js → p-a9154c5a.js} +1 -1
- package/dist/solutions-components/{p-6ac73100.js → p-a99967f5.js} +1 -1
- package/dist/solutions-components/{p-d3104ab2.js → p-abfec82b.js} +1 -1
- package/dist/solutions-components/{p-d68f66a3.js → p-acd7494a.js} +1 -1
- package/dist/solutions-components/{p-7ea4f229.entry.js → p-b0e67c32.entry.js} +1 -1
- package/dist/solutions-components/{p-5f929b73.js → p-b3622a4e.js} +1 -1
- package/dist/solutions-components/{p-27492081.entry.js → p-b4ff1e38.entry.js} +1 -1
- package/dist/solutions-components/{p-4228202a.entry.js → p-b587b224.entry.js} +1 -1
- package/dist/solutions-components/{p-3db650c2.js → p-bc965d47.js} +1 -1
- package/dist/solutions-components/{p-7624927c.entry.js → p-bdc6be4b.entry.js} +2 -2
- package/dist/solutions-components/{p-c3417d14.js → p-c0ec94af.js} +1 -1
- package/dist/solutions-components/{p-3fc5f99b.entry.js → p-c191d28c.entry.js} +3 -3
- package/dist/solutions-components/{p-482534a7.js → p-c3546866.js} +1 -1
- package/dist/solutions-components/{p-7af492f8.js → p-c4a448a3.js} +1 -1
- package/dist/solutions-components/{p-3622ff5a.entry.js → p-c69ba9db.entry.js} +1 -1
- package/dist/solutions-components/{p-a64684d9.js → p-c8e772fb.js} +1 -1
- package/dist/solutions-components/{p-091120c5.entry.js → p-c90671e1.entry.js} +1 -1
- package/dist/solutions-components/{p-e8c5f63d.js → p-c9ba6598.js} +1 -1
- package/dist/solutions-components/{p-08306638.entry.js → p-c9d9ac15.entry.js} +1 -1
- package/dist/solutions-components/{p-029d8d56.entry.js → p-ca37ebd0.entry.js} +1 -1
- package/dist/solutions-components/{p-a366c1bd.entry.js → p-ca53679d.entry.js} +1 -1
- package/dist/solutions-components/{p-91ad3f1e.entry.js → p-ca780ab8.entry.js} +1 -1
- package/dist/solutions-components/{p-16d07093.js → p-cb8e599c.js} +1 -1
- package/dist/solutions-components/{p-90e780b3.js → p-cbe3b9ee.js} +1 -1
- package/dist/solutions-components/{p-8be9c706.entry.js → p-cdfe141e.entry.js} +2 -2
- package/dist/solutions-components/{p-880a0d62.entry.js → p-cefde738.entry.js} +1 -1
- package/dist/solutions-components/{p-52db1792.entry.js → p-cf765f54.entry.js} +1 -1
- package/dist/solutions-components/{p-9aa4ddb7.js → p-d0e59d62.js} +1 -1
- package/dist/solutions-components/{p-76c75cac.entry.js → p-d16db4eb.entry.js} +2 -2
- package/dist/solutions-components/{p-b17541d4.entry.js → p-d78136be.entry.js} +2 -2
- package/dist/solutions-components/{p-74c723d2.entry.js → p-d7953124.entry.js} +2 -2
- package/dist/solutions-components/{p-ca9bd37c.entry.js → p-d85e1fbe.entry.js} +2 -2
- package/dist/solutions-components/{p-038fa109.entry.js → p-dcf0f0c8.entry.js} +1 -1
- package/dist/solutions-components/{p-375fd36b.js → p-dd4a1910.js} +2 -2
- package/dist/solutions-components/{p-684a3ab9.entry.js → p-dd6b827e.entry.js} +1 -1
- package/dist/solutions-components/{p-946a0023.js → p-e004e8e2.js} +1 -1
- package/dist/solutions-components/{p-4ec6a622.entry.js → p-e1e22909.entry.js} +1 -1
- package/dist/solutions-components/{p-b4c0c62e.entry.js → p-e1f1e124.entry.js} +1 -1
- package/dist/solutions-components/{p-c29a20f1.entry.js → p-e416078b.entry.js} +1 -1
- package/dist/solutions-components/{p-a4e47e1d.entry.js → p-e592e744.entry.js} +1 -1
- package/dist/solutions-components/{p-5aa04e51.entry.js → p-ec830ecb.entry.js} +1 -1
- package/dist/solutions-components/{p-38d04674.entry.js → p-ed3bd9b8.entry.js} +1 -1
- package/dist/solutions-components/{p-c3bd1676.entry.js → p-ee13cafa.entry.js} +1 -1
- package/dist/solutions-components/{p-138a065a.entry.js → p-ee839f28.entry.js} +1 -1
- package/dist/solutions-components/{p-05948b48.js → p-eec708ad.js} +1 -1
- package/dist/solutions-components/{p-89b4b401.js → p-f066b1bd.js} +1 -1
- package/dist/solutions-components/p-f1782b8c.js +7 -0
- package/dist/solutions-components/{p-82cedafd.js → p-f20097e5.js} +1 -1
- package/dist/solutions-components/{p-387657b5.js → p-f3f83c1e.js} +1 -1
- package/dist/solutions-components/{p-649e12c3.entry.js → p-f6390960.entry.js} +1 -1
- package/dist/solutions-components/{p-420e1585.entry.js → p-f702119f.entry.js} +1 -1
- package/dist/solutions-components/{p-7d7b7536.entry.js → p-f9808dcb.entry.js} +1 -1
- package/dist/solutions-components/{p-bf8fef40.entry.js → p-fb67a388.entry.js} +1 -1
- package/dist/solutions-components/{p-5d28f356.entry.js → p-fbbfed75.entry.js} +1 -1
- package/dist/solutions-components/{p-a3426728.entry.js → p-fe9cdc3d.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/__b302600c5c884ab280e2ff6dc2e1fc78.json +387 -0
- package/dist/solutions-components/utils/downloadUtils.ts +131 -30
- package/dist/solutions-components/utils/test/downloadUtils.spec.tsx +27 -5
- package/dist/solutions-components_commit.txt +7 -0
- package/dist/types/components.d.ts +219 -0
- package/dist/types/stencil-public-runtime.d.ts +21 -0
- package/dist/types/utils/downloadUtils.d.ts +27 -3
- package/package.json +9 -9
- package/dist/solutions-components/p-91c78d98.js +0 -7
- package/dist/solutions-components/p-abc50d38.js +0 -11
- package/dist/solutions-components/p-f34f405a.entry.js +0 -6
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as e,c as t,h as r,H as a,g as i,F as o}from"./p-91c78d98.js";import{c as s,h as n,f as c,i as d,j as l,n as h,p as g,k as u,l as p}from"./p-024c2016.js";import{c as v,a as f,t as w}from"./p-4b9ba22d.js";import{c as y,u as b,d as x}from"./p-2ee3afea.js";import{i as m}from"./p-34fb2a6e.js";import{n as k}from"./p-bf9d3381.js";import{C as z}from"./p-3760847f.js";import{H as D}from"./p-bc4c41ba.js";import"./p-361b44ed.js";import"./p-86f482ca.js";import"./p-efc041d0.js";const j=class{constructor(r){e(this,r),this.calciteDaySelect=t(this,"calciteDaySelect",6),this.calciteInternalDayHover=t(this,"calciteInternalDayHover",6),this.onClick=()=>{this.disabled||this.calciteDaySelect.emit()},this.keyDownHandler=e=>{m(e.key)&&(!this.disabled&&this.calciteDaySelect.emit(),e.preventDefault())},this.day=void 0,this.dateTimeFormat=void 0,this.disabled=!1,this.currentMonth=!1,this.selected=!1,this.highlighted=!1,this.range=!1,this.rangeEdge=void 0,this.startOfRange=!1,this.endOfRange=!1,this.rangeHover=!1,this.active=!1,this.scale=void 0,this.value=void 0}pointerOverHandler(){this.disabled||this.calciteInternalDayHover.emit()}componentWillLoad(){this.parentDatePickerEl=v(this.el,"calcite-date-picker")}render(){const e=s(this.value).replaceAll("-","");if(this.parentDatePickerEl){const{numberingSystem:e,lang:t}=this.parentDatePickerEl;k.numberFormatOptions=Object.assign(Object.assign({useGrouping:!1},e&&{numberingSystem:e}),t&&{locale:t})}const t=k.localize(String(this.day)),i=f(this.el),o=this.dateTimeFormat.format(this.value);return r(a,{"aria-disabled":w(this.disabled),"aria-label":o,"aria-selected":w(this.active),id:e,onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"button"},r("div",{"aria-hidden":"true",class:{"day-v-wrapper":!0,[z.rtl]:"rtl"===i}},r("div",{class:"day-wrapper"},r("span",{class:"day"},r("span",{class:"text"},t)))))}connectedCallback(){y(this)}componentDidRender(){b(this,this.isTabbable)}disconnectedCallback(){x(this)}isTabbable(){return this.active}get el(){return i(this)}};j.style=":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;cursor:pointer;color:var(--calcite-ui-text-3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.day-v-wrapper{flex:1 1 auto}.day-wrapper{display:flex;flex-direction:column;align-items:center}.day{display:flex;align-items: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);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background:none;box-shadow:0 0 0 2px transparent}.text{margin-block:1px 0px;margin-inline-start:0px}:host([scale=s]) .day-v-wrapper{padding-block:0.125rem}:host([scale=s]) .day-wrapper{padding:0px}:host([scale=s]) .day{block-size:27px;inline-size:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-block:0.25rem}:host([scale=m]) .day-wrapper{padding-inline:0.25rem}:host([scale=m]) .day{block-size:33px;inline-size:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-block:0.25rem}:host([scale=l]) .day-wrapper{padding-inline:0.25rem}:host([scale=l]) .day{block-size:43px;inline-size: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}:host(:focus:not([disabled])) .day{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important}: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{box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) .day{opacity:1}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range]:not(:focus)) .calcite--rtl .day,:host([end-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{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{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([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper{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;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]) .calcite--rtl .day-wrapper{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;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper{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;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{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;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: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;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: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;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--start) :not(.calcite--rtl) .day-wrapper{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) .calcite--rtl .day-wrapper{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--start) .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper{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) .calcite--rtl .day-wrapper{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--end) .day{border-radius:9999px;opacity: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: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;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: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;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][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([range-hover][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([highlighted][range-edge=start]) .calcite--rtl .day-wrapper,:host([range-hover][range-edge=start]) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([range-hover][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([highlighted][range-edge=end]) .calcite--rtl .day-wrapper,:host([range-hover][range-edge=end]) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted][range-edge=start]) .calcite--rtl .day-wrapper,:host([scale=s][range-hover][range-edge=start]) .calcite--rtl .day-wrapper{box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted][range-edge=end]) .calcite--rtl .day-wrapper,:host([scale=s][range-hover][range-edge=end]) .calcite--rtl .day-wrapper{box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted][range-edge=end]) .calcite--rtl .day-wrapper,:host([scale=l][range-hover][range-edge=end]) .calcite--rtl .day-wrapper{box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted][range-edge=start]) .day-wrapper,:host([range-hover][range-edge=start]) .day-wrapper{border-start-start-radius:45%;border-end-start-radius:45%}:host([highlighted][range-edge=end]) .day-wrapper,:host([range-hover][range-edge=end]) .day-wrapper{border-start-end-radius:45%;border-end-end-radius:45%}:host([scale=l][highlighted][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted][range-edge=start]) .calcite--rtl .day-wrapper,:host([scale=l][range-hover][range-edge=start]) .calcite--rtl .day-wrapper{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}: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}}:host([hidden]){display:none}[hidden]{display:none}";const C=class{constructor(r){e(this,r),this.calciteInternalDatePickerSelect=t(this,"calciteInternalDatePickerSelect",6),this.calciteInternalDatePickerHover=t(this,"calciteInternalDatePickerHover",6),this.calciteInternalDatePickerActiveDateChange=t(this,"calciteInternalDatePickerActiveDateChange",6),this.calciteInternalDatePickerMouseOut=t(this,"calciteInternalDatePickerMouseOut",6),this.keyDownHandler=e=>{if(e.defaultPrevented)return;const t="rtl"===this.el.dir;switch(e.key){case"ArrowUp":e.preventDefault(),this.addDays(-7);break;case"ArrowRight":e.preventDefault(),this.addDays(t?-1:1);break;case"ArrowDown":e.preventDefault(),this.addDays(7);break;case"ArrowLeft":e.preventDefault(),this.addDays(t?1:-1);break;case"PageUp":e.preventDefault(),this.addMonths(-1);break;case"PageDown":e.preventDefault(),this.addMonths(1);break;case"Home":e.preventDefault(),this.activeDate.setDate(1),this.addDays();break;case"End":e.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays();break;case"Enter":case" ":e.preventDefault();break;case"Tab":this.activeFocus=!1}},this.disableActiveFocus=()=>{this.activeFocus=!1},this.dayHover=e=>{const t=e.target;t.disabled?this.calciteInternalDatePickerMouseOut.emit():this.calciteInternalDatePickerHover.emit(t.value),e.stopPropagation()},this.daySelect=e=>{this.calciteInternalDatePickerSelect.emit(e.target.value)},this.dateTimeFormat=void 0,this.selectedDate=void 0,this.activeDate=new Date,this.startDate=void 0,this.endDate=void 0,this.min=void 0,this.max=void 0,this.scale=void 0,this.localeData=void 0,this.hoverRange=void 0}pointerOutHandler(){this.calciteInternalDatePickerMouseOut.emit()}render(){const e=this.activeDate.getMonth(),t=this.activeDate.getFullYear(),i=this.localeData.weekStart%7,{abbreviated:o,short:s,narrow:c}=this.localeData.days,d="s"===this.scale?c||s||o:s||o||c,l=[...d.slice(i,7),...d.slice(0,i)],h=this.getCurrentMonthDays(e,t),g=this.getPreviousMonthDays(e,t,i),u=this.getNextMonthDays(e,t,i);let p=0;const v=()=>p++%7,f=[...g.map((r=>({active:!1,day:r,dayInWeek:v(),date:new Date(t,e-1,r)}))),...h.map((r=>{const a=new Date(t,e,r);return{active:n(a,this.activeDate),currentMonth:!0,day:r,dayInWeek:v(),date:a,ref:!0}})),...u.map((r=>({active:!1,day:r,dayInWeek:v(),date:new Date(t,e+1,r)})))],w=[];for(let e=0;e<f.length;e+=7)w.push(f.slice(e,e+7));return r(a,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},r("div",{class:"calendar",role:"grid"},r("div",{class:"week-headers",role:"row"},l.map((e=>r("span",{class:"week-header",role:"columnheader"},e)))),w.map((e=>r("div",{class:"week-days",role:"row"},e.map((e=>this.renderDateDay(e))))))))}addMonths(e){const t=new Date(this.activeDate);t.setMonth(this.activeDate.getMonth()+e),this.calciteInternalDatePickerActiveDateChange.emit(c(t,this.min,this.max)),this.activeFocus=!0}addDays(e=0){const t=new Date(this.activeDate);t.setDate(this.activeDate.getDate()+e),this.calciteInternalDatePickerActiveDateChange.emit(c(t,this.min,this.max)),this.activeFocus=!0}getPreviousMonthDays(e,t,r){const a=new Date(t,e,0),i=a.getDate(),o=a.getDay(),s=[];if(o===(r+6)%7)return s;if(o===r)return[i];for(let e=(7+o-r)%7;e>=0;e--)s.push(i-e);return s}getCurrentMonthDays(e,t){const r=new Date(t,e+1,0).getDate(),a=[];for(let e=0;e<r;e++)a.push(e+1);return a}getNextMonthDays(e,t,r){const a=new Date(t,e+1,0).getDay(),i=[];if(a===(r+6)%7)return i;for(let e=0;e<(6-(a-r))%7;e++)i.push(e+1);return i}betweenSelectedRange(e){return!(!(this.startDate&&this.endDate&&e>this.startDate&&e<this.endDate)||this.isRangeHover(e))}isSelected(e){return!!(n(e,this.selectedDate)||this.startDate&&n(e,this.startDate)||this.endDate&&n(e,this.endDate))}isStartOfRange(e){return!(!this.startDate||n(this.startDate,this.endDate)||!n(this.startDate,e)||this.isEndOfRange(e))}isEndOfRange(e){return!!(this.endDate&&!n(this.startDate,this.endDate)&&n(this.endDate,e)||!this.endDate&&this.hoverRange&&n(this.startDate,this.hoverRange.end)&&n(e,this.hoverRange.end))}renderDateDay({active:e,currentMonth:t,date:a,day:i,dayInWeek:o,ref:s}){var c;const l=this.isFocusedOnStart(),h=this.isHoverInRange()||!this.endDate&&this.hoverRange&&n(null===(c=this.hoverRange)||void 0===c?void 0:c.end,this.startDate);return r("div",{class:"day",key:a.toDateString(),role:"gridcell"},r("calcite-date-picker-day",{active:e,class:{"hover--inside-range":this.startDate&&h,"hover--outside-range":this.startDate&&!h,"focused--start":l,"focused--end":!l},currentMonth:t,dateTimeFormat:this.dateTimeFormat,day:i,disabled:!d(a,this.min,this.max),endOfRange:this.isEndOfRange(a),highlighted:this.betweenSelectedRange(a),onCalciteDaySelect:this.daySelect,onCalciteInternalDayHover:this.dayHover,range:!!this.startDate&&!!this.endDate&&!n(this.startDate,this.endDate),rangeEdge:0===o?"start":6===o?"end":void 0,rangeHover:this.isRangeHover(a),scale:this.scale,selected:this.isSelected(a),startOfRange:this.isStartOfRange(a),value:a,ref:t=>{s&&e&&this.activeFocus&&(null==t||t.focus())}}))}isFocusedOnStart(){var e;return"start"===(null===(e=this.hoverRange)||void 0===e?void 0:e.focused)}isHoverInRange(){if(!this.hoverRange)return!1;const{start:e,end:t}=this.hoverRange;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||t<this.endDate)||this.isFocusedOnStart()&&this.startDate&&e>this.startDate)}isRangeHover(e){if(!this.hoverRange)return!1;const{start:t,end:r}=this.hoverRange,a=this.isFocusedOnStart(),i=this.isHoverInRange(),o=i&&(!a&&e>this.startDate&&(e<r||n(e,r))||a&&e<this.endDate&&(e>t||n(e,t))),s=!i&&(!a&&e>=this.endDate&&(e<r||n(e,r))||a&&(this.startDate&&e<this.startDate||this.endDate&&n(e,this.startDate))&&(t&&e>t||n(e,t)));return o||s}get el(){return i(this)}};C.style=":host([hidden]){display:none}[hidden]{display:none}.calendar{margin-block-end:0.25rem}.week-headers{display:flex;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;padding-inline:0.25rem}.week-header{text-align:center;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-3);inline-size:14.2857142857%}.day{display:flex;min-inline-size:0px;justify-content:center;inline-size:14.2857142857%}:host([scale=s]) .week-header{padding-inline:0px;padding-block:0.5rem 0.75rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .week-header{padding-inline:0px;padding-block:0.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]) .week-header{padding-inline:0px;padding-block:1rem 1.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}.week-days{display:flex;flex-direction:row;padding-block:0px;padding-inline:6px}.week-days:focus{outline:2px solid transparent;outline-offset:2px}";
|
6
|
+
import{r as e,c as t,h as r,H as a,g as i,F as o}from"./p-f1782b8c.js";import{c as s,h as n,f as c,i as d,j as l,n as h,p as g,k as u,l as p}from"./p-024c2016.js";import{c as v,a as f,t as w}from"./p-4b9ba22d.js";import{c as y,u as b,d as x}from"./p-2ee3afea.js";import{i as m}from"./p-34fb2a6e.js";import{n as k}from"./p-bf9d3381.js";import{C as z}from"./p-3760847f.js";import{H as D}from"./p-039ac222.js";import"./p-361b44ed.js";import"./p-86f482ca.js";import"./p-efc041d0.js";const j=class{constructor(r){e(this,r),this.calciteDaySelect=t(this,"calciteDaySelect",6),this.calciteInternalDayHover=t(this,"calciteInternalDayHover",6),this.onClick=()=>{this.disabled||this.calciteDaySelect.emit()},this.keyDownHandler=e=>{m(e.key)&&(!this.disabled&&this.calciteDaySelect.emit(),e.preventDefault())},this.day=void 0,this.dateTimeFormat=void 0,this.disabled=!1,this.currentMonth=!1,this.selected=!1,this.highlighted=!1,this.range=!1,this.rangeEdge=void 0,this.startOfRange=!1,this.endOfRange=!1,this.rangeHover=!1,this.active=!1,this.scale=void 0,this.value=void 0}pointerOverHandler(){this.disabled||this.calciteInternalDayHover.emit()}componentWillLoad(){this.parentDatePickerEl=v(this.el,"calcite-date-picker")}render(){const e=s(this.value).replaceAll("-","");if(this.parentDatePickerEl){const{numberingSystem:e,lang:t}=this.parentDatePickerEl;k.numberFormatOptions=Object.assign(Object.assign({useGrouping:!1},e&&{numberingSystem:e}),t&&{locale:t})}const t=k.localize(String(this.day)),i=f(this.el),o=this.dateTimeFormat.format(this.value);return r(a,{"aria-disabled":w(this.disabled),"aria-label":o,"aria-selected":w(this.active),id:e,onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"button"},r("div",{"aria-hidden":"true",class:{"day-v-wrapper":!0,[z.rtl]:"rtl"===i}},r("div",{class:"day-wrapper"},r("span",{class:"day"},r("span",{class:"text"},t)))))}connectedCallback(){y(this)}componentDidRender(){b(this,this.isTabbable)}disconnectedCallback(){x(this)}isTabbable(){return this.active}get el(){return i(this)}};j.style=":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;cursor:pointer;color:var(--calcite-ui-text-3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.day-v-wrapper{flex:1 1 auto}.day-wrapper{display:flex;flex-direction:column;align-items:center}.day{display:flex;align-items: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);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background:none;box-shadow:0 0 0 2px transparent}.text{margin-block:1px 0px;margin-inline-start:0px}:host([scale=s]) .day-v-wrapper{padding-block:0.125rem}:host([scale=s]) .day-wrapper{padding:0px}:host([scale=s]) .day{block-size:27px;inline-size:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-block:0.25rem}:host([scale=m]) .day-wrapper{padding-inline:0.25rem}:host([scale=m]) .day{block-size:33px;inline-size:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-block:0.25rem}:host([scale=l]) .day-wrapper{padding-inline:0.25rem}:host([scale=l]) .day{block-size:43px;inline-size: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}:host(:focus:not([disabled])) .day{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important}: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{box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) .day{opacity:1}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range]:not(:focus)) .calcite--rtl .day,:host([end-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{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{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([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper{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;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]) .calcite--rtl .day-wrapper{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;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper{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;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{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;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: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;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: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;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--start) :not(.calcite--rtl) .day-wrapper{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) .calcite--rtl .day-wrapper{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--start) .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper{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) .calcite--rtl .day-wrapper{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--end) .day{border-radius:9999px;opacity: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: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;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: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;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][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([range-hover][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([highlighted][range-edge=start]) .calcite--rtl .day-wrapper,:host([range-hover][range-edge=start]) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([range-hover][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([highlighted][range-edge=end]) .calcite--rtl .day-wrapper,:host([range-hover][range-edge=end]) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted][range-edge=start]) .calcite--rtl .day-wrapper,:host([scale=s][range-hover][range-edge=start]) .calcite--rtl .day-wrapper{box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted][range-edge=end]) .calcite--rtl .day-wrapper,:host([scale=s][range-hover][range-edge=end]) .calcite--rtl .day-wrapper{box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover][range-edge=start]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted][range-edge=end]) .calcite--rtl .day-wrapper,:host([scale=l][range-hover][range-edge=end]) .calcite--rtl .day-wrapper{box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted][range-edge=start]) .day-wrapper,:host([range-hover][range-edge=start]) .day-wrapper{border-start-start-radius:45%;border-end-start-radius:45%}:host([highlighted][range-edge=end]) .day-wrapper,:host([range-hover][range-edge=end]) .day-wrapper{border-start-end-radius:45%;border-end-end-radius:45%}:host([scale=l][highlighted][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover][range-edge=end]) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted][range-edge=start]) .calcite--rtl .day-wrapper,:host([scale=l][range-hover][range-edge=start]) .calcite--rtl .day-wrapper{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}: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}}:host([hidden]){display:none}[hidden]{display:none}";const C=class{constructor(r){e(this,r),this.calciteInternalDatePickerSelect=t(this,"calciteInternalDatePickerSelect",6),this.calciteInternalDatePickerHover=t(this,"calciteInternalDatePickerHover",6),this.calciteInternalDatePickerActiveDateChange=t(this,"calciteInternalDatePickerActiveDateChange",6),this.calciteInternalDatePickerMouseOut=t(this,"calciteInternalDatePickerMouseOut",6),this.keyDownHandler=e=>{if(e.defaultPrevented)return;const t="rtl"===this.el.dir;switch(e.key){case"ArrowUp":e.preventDefault(),this.addDays(-7);break;case"ArrowRight":e.preventDefault(),this.addDays(t?-1:1);break;case"ArrowDown":e.preventDefault(),this.addDays(7);break;case"ArrowLeft":e.preventDefault(),this.addDays(t?1:-1);break;case"PageUp":e.preventDefault(),this.addMonths(-1);break;case"PageDown":e.preventDefault(),this.addMonths(1);break;case"Home":e.preventDefault(),this.activeDate.setDate(1),this.addDays();break;case"End":e.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays();break;case"Enter":case" ":e.preventDefault();break;case"Tab":this.activeFocus=!1}},this.disableActiveFocus=()=>{this.activeFocus=!1},this.dayHover=e=>{const t=e.target;t.disabled?this.calciteInternalDatePickerMouseOut.emit():this.calciteInternalDatePickerHover.emit(t.value),e.stopPropagation()},this.daySelect=e=>{this.calciteInternalDatePickerSelect.emit(e.target.value)},this.dateTimeFormat=void 0,this.selectedDate=void 0,this.activeDate=new Date,this.startDate=void 0,this.endDate=void 0,this.min=void 0,this.max=void 0,this.scale=void 0,this.localeData=void 0,this.hoverRange=void 0}pointerOutHandler(){this.calciteInternalDatePickerMouseOut.emit()}render(){const e=this.activeDate.getMonth(),t=this.activeDate.getFullYear(),i=this.localeData.weekStart%7,{abbreviated:o,short:s,narrow:c}=this.localeData.days,d="s"===this.scale?c||s||o:s||o||c,l=[...d.slice(i,7),...d.slice(0,i)],h=this.getCurrentMonthDays(e,t),g=this.getPreviousMonthDays(e,t,i),u=this.getNextMonthDays(e,t,i);let p=0;const v=()=>p++%7,f=[...g.map((r=>({active:!1,day:r,dayInWeek:v(),date:new Date(t,e-1,r)}))),...h.map((r=>{const a=new Date(t,e,r);return{active:n(a,this.activeDate),currentMonth:!0,day:r,dayInWeek:v(),date:a,ref:!0}})),...u.map((r=>({active:!1,day:r,dayInWeek:v(),date:new Date(t,e+1,r)})))],w=[];for(let e=0;e<f.length;e+=7)w.push(f.slice(e,e+7));return r(a,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},r("div",{class:"calendar",role:"grid"},r("div",{class:"week-headers",role:"row"},l.map((e=>r("span",{class:"week-header",role:"columnheader"},e)))),w.map((e=>r("div",{class:"week-days",role:"row"},e.map((e=>this.renderDateDay(e))))))))}addMonths(e){const t=new Date(this.activeDate);t.setMonth(this.activeDate.getMonth()+e),this.calciteInternalDatePickerActiveDateChange.emit(c(t,this.min,this.max)),this.activeFocus=!0}addDays(e=0){const t=new Date(this.activeDate);t.setDate(this.activeDate.getDate()+e),this.calciteInternalDatePickerActiveDateChange.emit(c(t,this.min,this.max)),this.activeFocus=!0}getPreviousMonthDays(e,t,r){const a=new Date(t,e,0),i=a.getDate(),o=a.getDay(),s=[];if(o===(r+6)%7)return s;if(o===r)return[i];for(let e=(7+o-r)%7;e>=0;e--)s.push(i-e);return s}getCurrentMonthDays(e,t){const r=new Date(t,e+1,0).getDate(),a=[];for(let e=0;e<r;e++)a.push(e+1);return a}getNextMonthDays(e,t,r){const a=new Date(t,e+1,0).getDay(),i=[];if(a===(r+6)%7)return i;for(let e=0;e<(6-(a-r))%7;e++)i.push(e+1);return i}betweenSelectedRange(e){return!(!(this.startDate&&this.endDate&&e>this.startDate&&e<this.endDate)||this.isRangeHover(e))}isSelected(e){return!!(n(e,this.selectedDate)||this.startDate&&n(e,this.startDate)||this.endDate&&n(e,this.endDate))}isStartOfRange(e){return!(!this.startDate||n(this.startDate,this.endDate)||!n(this.startDate,e)||this.isEndOfRange(e))}isEndOfRange(e){return!!(this.endDate&&!n(this.startDate,this.endDate)&&n(this.endDate,e)||!this.endDate&&this.hoverRange&&n(this.startDate,this.hoverRange.end)&&n(e,this.hoverRange.end))}renderDateDay({active:e,currentMonth:t,date:a,day:i,dayInWeek:o,ref:s}){var c;const l=this.isFocusedOnStart(),h=this.isHoverInRange()||!this.endDate&&this.hoverRange&&n(null===(c=this.hoverRange)||void 0===c?void 0:c.end,this.startDate);return r("div",{class:"day",key:a.toDateString(),role:"gridcell"},r("calcite-date-picker-day",{active:e,class:{"hover--inside-range":this.startDate&&h,"hover--outside-range":this.startDate&&!h,"focused--start":l,"focused--end":!l},currentMonth:t,dateTimeFormat:this.dateTimeFormat,day:i,disabled:!d(a,this.min,this.max),endOfRange:this.isEndOfRange(a),highlighted:this.betweenSelectedRange(a),onCalciteDaySelect:this.daySelect,onCalciteInternalDayHover:this.dayHover,range:!!this.startDate&&!!this.endDate&&!n(this.startDate,this.endDate),rangeEdge:0===o?"start":6===o?"end":void 0,rangeHover:this.isRangeHover(a),scale:this.scale,selected:this.isSelected(a),startOfRange:this.isStartOfRange(a),value:a,ref:t=>{s&&e&&this.activeFocus&&(null==t||t.focus())}}))}isFocusedOnStart(){var e;return"start"===(null===(e=this.hoverRange)||void 0===e?void 0:e.focused)}isHoverInRange(){if(!this.hoverRange)return!1;const{start:e,end:t}=this.hoverRange;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||t<this.endDate)||this.isFocusedOnStart()&&this.startDate&&e>this.startDate)}isRangeHover(e){if(!this.hoverRange)return!1;const{start:t,end:r}=this.hoverRange,a=this.isFocusedOnStart(),i=this.isHoverInRange(),o=i&&(!a&&e>this.startDate&&(e<r||n(e,r))||a&&e<this.endDate&&(e>t||n(e,t))),s=!i&&(!a&&e>=this.endDate&&(e<r||n(e,r))||a&&(this.startDate&&e<this.startDate||this.endDate&&n(e,this.startDate))&&(t&&e>t||n(e,t)));return o||s}get el(){return i(this)}};C.style=":host([hidden]){display:none}[hidden]{display:none}.calendar{margin-block-end:0.25rem}.week-headers{display:flex;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;padding-inline:0.25rem}.week-header{text-align:center;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-3);inline-size:14.2857142857%}.day{display:flex;min-inline-size:0px;justify-content:center;inline-size:14.2857142857%}:host([scale=s]) .week-header{padding-inline:0px;padding-block:0.5rem 0.75rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .week-header{padding-inline:0px;padding-block:0.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]) .week-header{padding-inline:0px;padding-block:1rem 1.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}.week-days{display:flex;flex-direction:row;padding-block:0px;padding-inline:6px}.week-days:focus{outline:2px solid transparent;outline-offset:2px}";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{c as
|
6
|
+
import{c as e}from"./p-c3546866.js";
|
7
7
|
/** @license
|
8
8
|
* Copyright 2022 Esri
|
9
9
|
*
|
@@ -18,4 +18,4 @@ import{c as a}from"./p-482534a7.js";
|
|
18
18
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
19
|
* See the License for the specific language governing permissions and
|
20
20
|
* limitations under the License.
|
21
|
-
*/const{state:
|
21
|
+
*/const{state:a,onChange:s}=e({managedLayers:[],managedTables:[],highlightHandles:[],removeHandles:()=>{a.highlightHandles.forEach((e=>null==e?void 0:e.remove())),a.highlightHandles=[]}}),n=new CustomEvent("managedLayersChanged",{bubbles:!0,cancelable:!1,composed:!0});s("managedLayers",(()=>{dispatchEvent(n)}));export{a as s}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{a as i,r as s,h as t,H as e,g as n}from"./p-
|
6
|
+
import{a as i,r as s,h as t,H as e,g as n}from"./p-f1782b8c.js";import{a,t as l}from"./p-4b9ba22d.js";import{c as o}from"./p-efc041d0.js";import"./p-361b44ed.js";import"./p-3760847f.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{g as t}from"./p-7d7e6744.js";import{e as s,g as i,t as e}from"./p-4b9ba22d.js";import{S as n}from"./p-59d706b4.js";import{d as o}from"./p-a82f35c9.js";import{h as r,H as a}from"./p-
|
6
|
+
import{g as t}from"./p-7d7e6744.js";import{e as s,g as i,t as e}from"./p-4b9ba22d.js";import{S as n}from"./p-59d706b4.js";import{d as o}from"./p-a82f35c9.js";import{h as r,H as a}from"./p-f1782b8c.js";import{C as l,S as c}from"./p-3003e56a.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as i,c as t,h as e,H as a,g as n}from"./p-
|
6
|
+
import{r as i,c as t,h as e,H as a,g as n}from"./p-f1782b8c.js";import{v as s,a as o,f as c}from"./p-4b9ba22d.js";import{d as l,a as h,c as r,u as d}from"./p-a47c8ae2.js";import{s as p,a as m,c as x}from"./p-49dc53cb.js";import{c as b}from"./p-efc041d0.js";import{o as v}from"./p-8a2ae571.js";import{C as g}from"./p-3760847f.js";import"./p-361b44ed.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as e,c as t,h as i,H as a,g as n}from"./p-
|
6
|
+
import{r as e,c as t,h as i,H as a,g as n}from"./p-f1782b8c.js";import{l as s,a as l}from"./p-f52ee45d.js";import"./p-4b9ba22d.js";import"./p-361b44ed.js";import"./p-3760847f.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as i,c,h as e,g as t}from"./p-
|
6
|
+
import{r as i,c,h as e,g as t}from"./p-f1782b8c.js";import{c as a}from"./p-efc041d0.js";const n=class{constructor(e){i(this,e),this.calciteInternalAccordionChange=c(this,"calciteInternalAccordionChange",6),this.mutationObserver=a("mutation",(()=>this.updateAccordionItems())),this.appearance="solid",this.iconPosition="end",this.iconType="chevron",this.scale="m",this.selectionMode="multiple"}handlePropsChange(){this.updateAccordionItems()}connectedCallback(){var i;null===(i=this.mutationObserver)||void 0===i||i.observe(this.el,{childList:!0}),this.updateAccordionItems()}disconnectedCallback(){var i;null===(i=this.mutationObserver)||void 0===i||i.disconnect()}render(){const i="transparent"===this.appearance;return e("div",{class:{"accordion--transparent":i,accordion:!i}},e("slot",null))}updateActiveItemOnChange(i){this.calciteInternalAccordionChange.emit({requestedAccordionItem:i.detail.requestedAccordionItem}),i.stopPropagation()}updateAccordionItems(){this.el.querySelectorAll("calcite-accordion-item").forEach((i=>{i.iconPosition=this.iconPosition,i.iconType=this.iconType,i.scale=this.scale})),document.dispatchEvent(new CustomEvent("calciteInternalAccordionItemsSync"))}get el(){return t(this)}static get watchers(){return{iconPosition:["handlePropsChange"],iconType:["handlePropsChange"],scale:["handlePropsChange"],selectionMode:["handlePropsChange"]}}};n.style=":host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-inline-size:100%;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}.accordion--transparent{--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}.accordion{border-width:1px;border-block-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2)}:host([hidden]){display:none}[hidden]{display:none}";export{n as calcite_accordion}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as e,h as s,H as i,g as n}from"./p-
|
6
|
+
import{r as t,c as e,h as s,H as i,g as n}from"./p-f1782b8c.js";import{s as o,d as r}from"./p-4b9ba22d.js";import{c as h}from"./p-efc041d0.js";import"./p-361b44ed.js";import"./p-3760847f.js";const a=class{constructor(s){t(this,s),this.calciteStepperItemChange=e(this,"calciteStepperItemChange",6),this.calciteInternalStepperItemChange=e(this,"calciteInternalStepperItemChange",6),this.itemMap=new Map,this.items=[],this.enabledItems=[],this.mutationObserver=h("mutation",(()=>this.updateItems())),this.handleDefaultSlotChange=t=>{const e=o(t).filter((t=>"CALCITE-STEPPER-ITEM"===(null==t?void 0:t.tagName))),s=Array(e.length).fill("1fr").join(" ");this.el.style.gridTemplateAreas=s,this.el.style.gridTemplateColumns=s,this.setStepperItemNumberingSystem()},this.icon=!1,this.layout="horizontal",this.numbered=!1,this.scale="m",this.numberingSystem=void 0,this.selectedItem=null}handleItemPropChange(){this.updateItems()}numberingSystemChange(){this.setStepperItemNumberingSystem()}connectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0}),this.updateItems()}componentDidLoad(){"number"!=typeof this.currentPosition&&this.calciteInternalStepperItemChange.emit({position:0})}render(){return s(i,{"aria-label":"Progress steps",role:"region"},s("slot",{onSlotchange:this.handleDefaultSlotChange}))}calciteInternalStepperItemKeyEvent(t){const e=t.target;switch(t.detail.item.key){case"ArrowDown":case"ArrowRight":r(this.enabledItems,e,"next");break;case"ArrowUp":case"ArrowLeft":r(this.enabledItems,e,"previous");break;case"Home":r(this.enabledItems,e,"first");break;case"End":r(this.enabledItems,e,"last")}t.stopPropagation()}registerItem(t){const e=t.target,{content:s,position:i}=t.detail;this.itemMap.set(e,{position:i,content:s}),this.items=this.sortItems(),this.enabledItems=this.filterItems(),t.stopPropagation()}updateItem(t){const{position:e}=t.detail;"number"==typeof e&&(this.currentPosition=e,this.selectedItem=t.target),this.calciteInternalStepperItemChange.emit({position:e})}handleUserRequestedStepperItemSelect(){this.calciteStepperItemChange.emit()}async nextStep(){const t=this.getEnabledStepIndex(this.currentPosition+1,"next");"number"==typeof t&&this.updateStep(t)}async prevStep(){const t=this.getEnabledStepIndex(this.currentPosition-1,"previous");"number"==typeof t&&this.updateStep(t)}async goToStep(t){const e=t-1;this.currentPosition!==e&&this.updateStep(e)}async startStep(){const t=this.getEnabledStepIndex(0,"next");"number"==typeof t&&this.updateStep(t)}async endStep(){const t=this.getEnabledStepIndex(this.items.length-1,"previous");"number"==typeof t&&this.updateStep(t)}updateItems(){this.el.querySelectorAll("calcite-stepper-item").forEach((t=>{t.icon=this.icon,t.numbered=this.numbered,t.layout=this.layout,t.scale=this.scale}))}getEnabledStepIndex(t,e="next"){var s;const{items:i,currentPosition:n}=this;let o=t;for(;null===(s=i[o])||void 0===s?void 0:s.disabled;)o+="previous"===e?-1:1;return o!==n&&o<i.length&&o>=0?o:null}updateStep(t){this.currentPosition=t,this.calciteInternalStepperItemChange.emit({position:t})}sortItems(){const{itemMap:t}=this;return Array.from(t.keys()).sort(((e,s)=>t.get(e).position-t.get(s).position))}filterItems(){return this.items.filter((t=>!t.disabled))}setStepperItemNumberingSystem(){this.items.forEach((t=>{t.numberingSystem=this.numberingSystem}))}get el(){return n(this)}static get watchers(){return{icon:["handleItemPropChange"],layout:["handleItemPropChange"],numbered:["handleItemPropChange"],scale:["handleItemPropChange"],numberingSystem:["numberingSystemChange"]}}};a.style=':host{position:relative;display:flex;inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content;flex-direction:row;flex-wrap:wrap;align-items:stretch;justify-content:space-between}:host([layout=vertical]){flex:1 1 auto;flex-direction:column}:host([layout=horizontal]){display:grid;grid-template-areas:"items" "content"}:host([hidden]){display:none}[hidden]{display:none}';export{a as calcite_stepper}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,h as e,H as i,g as o,f as n,c as a}from"./p-
|
6
|
+
import{r as t,h as e,H as i,g as o,f as n,c as a}from"./p-f1782b8c.js";import{t as s,i as r,f as c,q as l}from"./p-4b9ba22d.js";import{g as d}from"./p-361b44ed.js";import{c as h,d as u,u as p}from"./p-2ee3afea.js";import{s as f,a as b,c as v}from"./p-49dc53cb.js";import{c as m,d as g}from"./p-bf9d3381.js";import{c as x}from"./p-efc041d0.js";import{u as y,c as w,s as k,d as z}from"./p-27431aa6.js";import{f as E,c as j,b as C,a as H,r as D,F as L}from"./p-53368491.js";import{d as P,a as R,c as F,u as $}from"./p-a47c8ae2.js";import{o as O}from"./p-8a2ae571.js";import{H as A}from"./p-039ac222.js";import{i as I}from"./p-34fb2a6e.js";import{F as S}from"./p-369e28ed.js";import"./p-3760847f.js";import"./p-86f482ca.js";import"./p-a82f35c9.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as e,h as t,H as i,g as l}from"./p-
|
6
|
+
import{r as e,h as t,H as i,g as l}from"./p-f1782b8c.js";import{s as a,a as s,c}from"./p-49dc53cb.js";import{u as o,s as n,c as r,d}from"./p-27431aa6.js";import{c as h,u as v,d as u}from"./p-2ee3afea.js";import{c as b,d as p}from"./p-bf9d3381.js";import{a as g}from"./p-4b9ba22d.js";import{C as m}from"./p-3760847f.js";import"./p-86f482ca.js";import"./p-34fb2a6e.js";import"./p-efc041d0.js";import"./p-361b44ed.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as e,h as s,H as i,g as o}from"./p-
|
6
|
+
import{r as t,c as e,h as s,H as i,g as o}from"./p-f1782b8c.js";import{c as a,d as n}from"./p-f52ee45d.js";import{u as h}from"./p-2ee3afea.js";import{b as r,c,d as l}from"./p-bf9d3381.js";import{u as d,c as m,d as p,s as u}from"./p-27431aa6.js";import{c as f,s as b,a as g}from"./p-49dc53cb.js";import{c as C,d as v,a as y,H as I}from"./p-bc965d47.js";import"./p-4b9ba22d.js";import"./p-361b44ed.js";import"./p-3760847f.js";import"./p-86f482ca.js";import"./p-34fb2a6e.js";import"./p-efc041d0.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,h as e,g as a}from"./p-
|
6
|
+
import{r as t,h as e,g as a}from"./p-f1782b8c.js";import{s as n,r as o,f as i}from"./p-bc965d47.js";import{c as r,d as c,u as s}from"./p-2ee3afea.js";import{c as l,d,g as u}from"./p-f52ee45d.js";import{s as p,a as h,c as b}from"./p-49dc53cb.js";import{c as v,d as g}from"./p-bf9d3381.js";import{c as k}from"./p-efc041d0.js";import{c as f,d as m,s as x,u as w}from"./p-27431aa6.js";import{w as y,u as z}from"./p-b48e8dd1.js";import"./p-4b9ba22d.js";import"./p-361b44ed.js";import"./p-3760847f.js";import"./p-86f482ca.js";import"./p-34fb2a6e.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{c as e}from"./p-
|
6
|
+
import{c as e}from"./p-c3546866.js";import{d as t}from"./p-2a58e378.js";import{E as r,j as i,S as s}from"./p-ff0d7712.js";import{c as n,r as a,b as o,d as c,f as u,h as l,a as f,s as p}from"./p-5856dc4f.js";
|
7
7
|
/*! *****************************************************************************
|
8
8
|
Copyright (c) Microsoft Corporation.
|
9
9
|
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
let e,n,t=!1,l=null,o=!1;const s=e=>{const n=new URL(e,pe.t);return n.origin!==fe.location.origin?n.href:n.pathname},i="http://www.w3.org/1999/xlink",c={},r=e=>"object"==(e=typeof e)||"function"===e;function u(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const a=(e,n,...t)=>{let l=null,o=null,s=!1,i=!1;const c=[],u=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!r(l))&&(l+=""),s&&i?c[c.length-1].l+=l:c.push(s?f(null,l):l),i=s)};if(u(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}if("function"==typeof e)return e(null===n?{}:n,c,p);const a=f(e,null);return a.o=n,c.length>0&&(a.i=c),a.u=o,a},f=(e,n)=>({p:0,v:e,l:n,h:null,i:null,o:null,u:null}),d={},p={forEach:(e,n)=>e.map(v).forEach(n),map:(e,n)=>e.map(v).map(n).map(y)},v=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.m,vtag:e.v,vtext:e.l}),y=e=>{if("function"==typeof e.vtag){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),a(e.vtag,n,...e.vchildren||[])}const n=f(e.vtag,e.vtext);return n.o=e.vattrs,n.i=e.vchildren,n.u=e.vkey,n.m=e.vname,n},h=e=>le(e).$hostElement$,m=(e,n,t)=>{const l=h(e);return{emit:e=>$(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},$=(e,n,t)=>{const l=pe.ce(n,t);return e.dispatchEvent(l),l},b=new WeakMap,w=e=>"sc-"+e.$,g=(e,n,t,l,o,s)=>{if(t!==l){let c=ie(e,n),u=n.toLowerCase();if("class"===n){const n=e.classList,o=k(t),s=k(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===n){for(const n in t)l&&null!=l[n]||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in l)t&&l[n]===t[n]||(n.includes("-")?e.style.setProperty(n,l[n]):e.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&l(e);else if(c||"o"!==n[0]||"n"!==n[1]){const a=r(l);if((c||a&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?c=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(n=u,f=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(n)||(f?e.removeAttributeNS(i,n):e.removeAttribute(n)):(!c||4&s||o)&&!a&&(l=!0===l?"":l,f?e.setAttributeNS(i,n,l):e.setAttribute(n,l))}else if(n="-"===n[2]?n.slice(3):ie(fe,u)?u.slice(2):u[2]+n.slice(3),t||l){const o=n.endsWith(S);n=n.replace(O,""),t&&pe.rel(e,n,t,o),l&&pe.ael(e,n,l,o)}}},j=/\s/,k=e=>e?e.split(j):[],S="Capture",O=RegExp(S+"$"),C=(e,n,t,l)=>{const o=11===n.h.nodeType&&n.h.host?n.h.host:n.h,s=e&&e.o||c,i=n.o||c;for(l in s)l in i||g(o,l,s[l],void 0,t,n.p);for(l in i)g(o,l,s[l],i[l],t,n.p)},x=(n,l,o)=>{const s=l.i[o];let i,c,r=0;if(null!==s.l)i=s.h=de.createTextNode(s.l);else{if(t||(t="svg"===s.v),i=s.h=de.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.v),t&&"foreignObject"===s.v&&(t=!1),C(null,s,t),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),s.i)for(r=0;r<s.i.length;++r)c=x(n,s,r),c&&i.appendChild(c);"svg"===s.v?t=!1:"foreignObject"===i.tagName&&(t=!0)}return i},M=(e,t,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=x(null,l,s),c&&(o[s].h=c,r.insertBefore(c,t)))},P=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.h;L(n),e&&e.remove()}}},R=(e,n)=>e.v===n.v&&e.u===n.u,E=(e,n)=>{const l=n.h=e.h,o=e.i,s=n.i,i=n.v,c=n.l;null===c?(t="svg"===i||"foreignObject"!==i&&t,"slot"===i||C(e,n,t),null!==o&&null!==s?((e,n,t,l)=>{let o,s,i=0,c=0,r=0,u=0,a=n.length-1,f=n[0],d=n[a],p=l.length-1,v=l[0],y=l[p];for(;i<=a&&c<=p;)if(null==f)f=n[++i];else if(null==d)d=n[--a];else if(null==v)v=l[++c];else if(null==y)y=l[--p];else if(R(f,v))E(f,v),f=n[++i],v=l[++c];else if(R(d,y))E(d,y),d=n[--a],y=l[--p];else if(R(f,y))E(f,y),e.insertBefore(f.h,d.h.nextSibling),f=n[++i],y=l[--p];else if(R(d,v))E(d,v),e.insertBefore(d.h,f.h),d=n[--a],v=l[++c];else{for(r=-1,u=i;u<=a;++u)if(n[u]&&null!==n[u].u&&n[u].u===v.u){r=u;break}r>=0?(s=n[r],s.v!==v.v?o=x(n&&n[c],t,r):(E(s,v),n[r]=void 0,o=s.h),v=l[++c]):(o=x(n&&n[c],t,c),v=l[++c]),o&&f.h.parentNode.insertBefore(o,f.h)}i>a?M(e,null==l[p+1]?null:l[p+1].h,t,l,c,p):c>p&&P(n,i,a)})(l,o,n,s):null!==s?(null!==e.l&&(l.textContent=""),M(l,null,n,s,0,s.length-1)):null!==o&&P(o,0,o.length-1),t&&"svg"===i&&(t=!1)):e.l!==c&&(l.data=c)},L=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(L)},F=(e,n)=>{n&&!e.j&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.j=n)))},U=(e,n)=>{if(e.p|=16,!(4&e.p))return F(e,e.k),ke((()=>W(e,n)));e.p|=512},W=(e,n)=>{const t=e.S;let l;return n&&(e.p|=256,e.O&&(e.O.map((([e,n])=>z(t,e,n))),e.O=void 0),l=z(t,"componentWillLoad")),l=A(l,(()=>z(t,"componentWillRender"))),A(l,(()=>N(e,t,n)))},A=(e,n)=>D(e)?e.then(n):n(),D=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,N=async(e,n,t)=>{var l;const o=e.$hostElement$,s=o["s-rc"];t&&(e=>{const n=e.C,t=e.$hostElement$,l=n.p,o=((e,n)=>{var t;const l=w(n),o=ae.get(l);if(e=11===e.nodeType?e:de,o)if("string"==typeof o){let n,s=b.get(e=e.head||e);if(s||b.set(e,s=new Set),!s.has(l)){{n=de.createElement("style"),n.innerHTML=o;const l=null!==(t=pe.M)&&void 0!==t?t:u(de);null!=l&&n.setAttribute("nonce",l),e.insertBefore(n,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"))})(e);T(e,n,o,t),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const n=null!==(l=o["s-p"])&&void 0!==l?l:[],t=()=>q(e);0===n.length?t():(Promise.all(n).then(t),e.p|=4,n.length=0)}},T=(t,o,s,i)=>{try{l=o,o=o.render(),t.p&=-17,t.p|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.C,c=t.P||f(null,null),r=(e=>e&&e.v===d)(l)?l:a(null,null,l);if(n=s.tagName,i.R&&(r.o=r.o||{},i.R.map((([e,n])=>r.o[n]=s[e]))),o&&r.o)for(const e of Object.keys(r.o))s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.o[e]=s[e]);r.v=null,r.p|=4,t.P=r,r.h=c.h=s.shadowRoot||s,e=s["s-sc"],E(c,r)})(t,o,i)}catch(e){ce(e,t.$hostElement$)}return l=null,null},H=()=>l,q=e=>{const n=e.$hostElement$,t=e.S,l=e.k;z(t,"componentDidRender"),64&e.p?z(t,"componentDidUpdate"):(e.p|=64,B(n),z(t,"componentDidLoad"),e.L(n),l||_()),e.F(n),e.j&&(e.j(),e.j=void 0),512&e.p&&ge((()=>U(e,!1))),e.p&=-517},V=e=>{{const n=le(e),t=n.$hostElement$.isConnected;return t&&2==(18&n.p)&&U(n,!1),t}},_=()=>{B(de.documentElement),ge((()=>$(fe,"appload",{detail:{namespace:"solutions-components"}})))},z=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){ce(e)}},B=e=>e.classList.add("hydrated"),G=(e,n,t)=>{var l;if(n.U){e.watchers&&(n.W=e.watchers);const o=Object.entries(n.U),s=e.prototype;if(o.map((([e,[l]])=>{31&l||2&t&&32&l?Object.defineProperty(s,e,{get(){return((e,n)=>le(this).A.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=le(e),s=o.$hostElement$,i=o.A.get(n),c=o.p,u=o.S;if(t=((e,n)=>null==e||r(e)?e:4&n?"false"!==e&&(""===e||!!e):2&n?parseFloat(e):1&n?e+"":e)(t,l.U[n][0]),(!(8&c)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(o.A.set(n,t),u)){if(l.W&&128&c){const e=l.W[n];e&&e.map((e=>{try{u[e](t,i,n)}catch(e){ce(e,s)}}))}if(2==(18&c)){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(t,i,n))return;U(o,!1)}}})(this,e,t,n)},configurable:!0,enumerable:!0}):1&t&&64&l&&Object.defineProperty(s,e,{value(...n){const t=le(this);return t.D.then((()=>t.S[e](...n)))}})})),1&t){const t=new Map;s.attributeChangedCallback=function(e,l,o){pe.jmp((()=>{const i=t.get(e);if(this.hasOwnProperty(i))o=this[i],delete this[i];else{if(s.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==o)return;if(null==i){const t=le(this),s=null==t?void 0:t.p;if(!(8&s)&&128&s&&o!==l){const s=t.S,i=n.W[e];null==i||i.forEach((n=>{null!=s[n]&&s[n].call(s,o,l,e)}))}return}}this[i]=(null!==o||"boolean"!=typeof this[i])&&o}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=n.W)&&void 0!==l?l:{}),...o.filter((([e,n])=>15&n[0])).map((([e,l])=>{const o=l[1]||e;return t.set(o,e),512&l[0]&&n.R.push([e,o]),o}))]))}}return e},I=e=>{z(e,"connectedCallback")},J=e=>{z(e,"disconnectedCallback")},K=(e,n={})=>{var t;const l=[],o=n.exclude||[],s=fe.customElements,i=de.head,c=i.querySelector("meta[charset]"),r=de.createElement("style"),a=[];let f,d=!0;Object.assign(pe,n),pe.t=new URL(n.resourcesUrl||"./",de.baseURI).href,e.map((e=>{e[1].map((n=>{var t;const i={p:n[0],$:n[1],U:n[2],N:n[3]};i.U=n[2],i.N=n[3],i.R=[],i.W=null!==(t=n[4])&&void 0!==t?t:{};const c=i.$,r=class extends HTMLElement{constructor(e){super(e),se(e=this,i),1&i.p&&e.attachShadow({mode:"open",delegatesFocus:!!(16&i.p)})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):pe.jmp((()=>(e=>{if(0==(1&pe.p)){const n=le(e),t=n.C,l=()=>{};if(1&n.p)X(e,n,t.N),(null==n?void 0:n.S)?I(n.S):(null==n?void 0:n.T)&&n.T.then((()=>I(n.S)));else{n.p|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){F(n,n.k=t);break}}t.U&&Object.entries(t.U).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t)=>{let l;if(0==(32&n.p)){n.p|=32;{if(l=ue(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(t.W=l.watchers,G(l,t,2),l.isProxied=!0);const e=()=>{};n.p|=8;try{new l(n)}catch(e){ce(e)}n.p&=-9,n.p|=128,e(),I(n.S)}if(l.style){let e=l.style;const n=w(t);if(!ae.has(n)){const l=()=>{};((e,n,t)=>{let l=ae.get(e);ye&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,ae.set(e,l)})(n,e,!!(1&t.p)),l()}}}const o=n.k,s=()=>U(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,n,t)}l()}})(this)))}disconnectedCallback(){pe.jmp((()=>(async()=>{if(0==(1&pe.p)){const e=le(this);e.H&&(e.H.map((e=>e())),e.H=void 0),(null==e?void 0:e.S)?J(e.S):(null==e?void 0:e.T)&&e.T.then((()=>J(e.S)))}})()))}componentOnReady(){return le(this).T}};i.q=e[0],o.includes(c)||s.get(c)||(l.push(c),s.define(c,G(r,i,1)))}))}));{r.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",r.setAttribute("data-styles","");const e=null!==(t=pe.M)&&void 0!==t?t:u(de);null!=e&&r.setAttribute("nonce",e),i.insertBefore(r,c?c.nextSibling:i.firstChild)}d=!1,a.length?a.map((e=>e.connectedCallback())):pe.jmp((()=>f=setTimeout(_,30)))},Q=(e,n)=>n,X=(e,n,t)=>{t&&t.map((([t,l,o])=>{const s=Z(e,t),i=Y(n,o),c=ee(t);pe.ael(s,l,i,c),(n.H=n.H||[]).push((()=>pe.rel(s,l,i,c)))}))},Y=(e,n)=>t=>{try{256&e.p?e.S[n](t):(e.O=e.O||[]).push([n,t])}catch(e){ce(e)}},Z=(e,n)=>4&n?de:8&n?fe:16&n?de.body:e,ee=e=>0!=(2&e),ne=e=>pe.M=e,te=new WeakMap,le=e=>te.get(e),oe=(e,n)=>te.set(n.S=e,n),se=(e,n)=>{const t={p:0,$hostElement$:e,C:n,A:new Map};return t.D=new Promise((e=>t.F=e)),t.T=new Promise((e=>t.L=e)),e["s-p"]=[],e["s-rc"]=[],X(e,t,n.N),te.set(e,t)},ie=(e,n)=>n in e,ce=(e,n)=>(0,console.error)(e,n),re=new Map,ue=e=>{const n=e.$.replace(/-/g,"_"),t=e.q,l=re.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(re.set(t,e),e[n])),ce)
|
7
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},ae=new Map,fe="undefined"!=typeof window?window:{},de=fe.document||{head:{}},pe={p:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},ve=e=>Promise.resolve(e),ye=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),he=[],me=[],$e=(e,n)=>t=>{e.push(t),o||(o=!0,n&&4&pe.p?ge(we):pe.raf(we))},be=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){ce(e)}e.length=0},we=()=>{be(he),be(me),(o=he.length>0)&&pe.raf(we)},ge=e=>ve().then(e),je=$e(he,!1),ke=$e(me,!0);export{Q as F,d as H,s as a,K as b,m as c,je as d,H as e,V as f,h as g,a as h,ve as p,oe as r,ne as s}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{d as _}from"./p-
|
6
|
+
import{d as _}from"./p-788f3c1c.js";import"./p-f1782b8c.js";import"./p-bc965d47.js";import"./p-4b9ba22d.js";import"./p-361b44ed.js";import"./p-3760847f.js";import"./p-2ee3afea.js";import"./p-86f482ca.js";import"./p-34fb2a6e.js";import"./p-f52ee45d.js";import"./p-49dc53cb.js";import"./p-bf9d3381.js";import"./p-efc041d0.js";import"./p-a47c8ae2.js";import"./p-d4278729.js";import"./p-2f9bab49.js";import"./p-27431aa6.js";import"./p-8a2ae571.js";var p={name:"bg",weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekStart:1,ordinal:function(_){var p=_%100;if(p>10&&p<20)return _+"-ти";var m=_%10;return 1===m?_+"-ви":2===m?_+"-ри":7===m||8===m?_+"-ми":_+"-ти"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"}};_.locale(p,null,!0);export default p;
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{d as e}from"./p-
|
6
|
+
import{d as e}from"./p-788f3c1c.js";import"./p-f1782b8c.js";import"./p-bc965d47.js";import"./p-4b9ba22d.js";import"./p-361b44ed.js";import"./p-3760847f.js";import"./p-2ee3afea.js";import"./p-86f482ca.js";import"./p-34fb2a6e.js";import"./p-f52ee45d.js";import"./p-49dc53cb.js";import"./p-bf9d3381.js";import"./p-efc041d0.js";import"./p-a47c8ae2.js";import"./p-d4278729.js";import"./p-2f9bab49.js";import"./p-27431aa6.js";import"./p-8a2ae571.js";var r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function t(e,t,a){var i=r[a];return Array.isArray(i)&&(i=i[t?0:1]),i.replace("%d",e)}var a={name:"de-at",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t}};e.locale(a,null,!0);export default a;
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as s,g as e}from"./p-
|
6
|
+
import{r as t,c as s,g as e}from"./p-f1782b8c.js";const r=class{constructor(e){t(this,e),this.stateLoaded=s(this,"stateLoaded",7),this.value="",this.templates=[],this.authentication=void 0}connectedCallback(){this._initValueObserver()}render(){return null}_initValueObserver(){this._valueObserver=new MutationObserver((t=>{t.some((t=>{const s=t.target[t.attributeName];if("attributes"===t.type&&"value"===t.attributeName&&s!==t.oldValue&&""!==s)return!0}))})),this._valueObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}get el(){return e(this)}};export{r as store_manager}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,h as e,H as i,g as n}from"./p-
|
6
|
+
import{r as t,h as e,H as i,g as n}from"./p-f1782b8c.js";import{s as r}from"./p-f066b1bd.js";import"./p-ff0d7712.js";import{r as s,N as o,c as a,e as h,A as u,a as c}from"./p-5856dc4f.js";import{g as l}from"./p-a9154c5a.js";import"./p-c3546866.js";import"./p-2a58e378.js";import"./p-e1a4994d.js";
|
7
7
|
/*! *****************************************************************************
|
8
8
|
Copyright (c) Microsoft Corporation.
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as a,c as x,h as e,H as t,g as n}from"./p-
|
6
|
+
import{r as a,c as x,h as e,H as t,g as n}from"./p-f1782b8c.js";import{g as m}from"./p-a9154c5a.js";import{n as l}from"./p-1b228f97.js";import"./p-e1a4994d.js";import"./p-ff0d7712.js";import"./p-2a58e378.js";
|
7
7
|
/** @license
|
8
8
|
* Copyright 2022 Esri
|
9
9
|
*
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as i,h as e,H as n,g as s}from"./p-
|
6
|
+
import{r as t,c as i,h as e,H as n,g as s}from"./p-f1782b8c.js";import{g as o,i as a,x as r,a as l}from"./p-4b9ba22d.js";import{s as c,c as h,d as u,H as d}from"./p-bc965d47.js";import{c as p,d as b,u as m}from"./p-2ee3afea.js";import{n as v}from"./p-34fb2a6e.js";import{c as f,d as g,g as x}from"./p-f52ee45d.js";import{a as w,s as y,c as k}from"./p-49dc53cb.js";import{n as z,i as I,p as j,s as C,f as E,c as L,d as D,B as W}from"./p-bf9d3381.js";import{c as F}from"./p-efc041d0.js";import{C as R}from"./p-3760847f.js";import{u as H,c as N,d as T,s as V}from"./p-27431aa6.js";import"./p-361b44ed.js";import"./p-86f482ca.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as i,h as s,H as e,g as a}from"./p-
|
6
|
+
import{r as t,c as i,h as s,H as e,g as a}from"./p-f1782b8c.js";import{l as h}from"./p-eec708ad.js";import{g as l}from"./p-a9154c5a.js";import{x as n,i as r,r as o}from"./p-4b9ba22d.js";import{g as c}from"./p-361b44ed.js";import{c as d,d as u,a as m,H as b}from"./p-bc965d47.js";import{c as p,d as v,u as g}from"./p-2ee3afea.js";import{i as f}from"./p-34fb2a6e.js";import{c as x,d as _,g as k}from"./p-f52ee45d.js";import{s as w,a as y,c as V}from"./p-49dc53cb.js";import{n as z,c as $,d as M}from"./p-bf9d3381.js";import{d as D,c as j}from"./p-2f9bab49.js";import{f as H}from"./p-2a58e378.js";import{s as I}from"./p-dd4a1910.js";import"./p-e1a4994d.js";import"./p-3760847f.js";import"./p-86f482ca.js";import"./p-efc041d0.js";import"./p-c3546866.js";const T=class{constructor(s){t(this,s),this.bufferComplete=i(this,"bufferComplete",7),this.distanceChanged=i(this,"distanceChanged",7),this.unitChanged=i(this,"unitChanged",7),this.appearance="text",this.distance=0,this.geometries=[],this.max=void 0,this.min=0,this.sliderTicks=10,this.unionResults=!0,this.unit="meters",this.disabled=!1,this._translations=void 0}geometriesWatchHandler(){this._buffer()}disabledWatchHandler(){this._buffer()}async getTranslatedUnit(t){return this._units||await this._defineTranslations(),this._units[t]}async componentWillLoad(){await this._defineTranslations(),await this._initModules()}render(){return s(e,null,"text"===this.appearance?this._getTextBoxDisplay():this._getSliderDisplay())}async _defineTranslations(){await this._getTranslations(),this._initTranslatedUnits()}async _initModules(){const[t]=await h(["esri/geometry/geometryEngine"]);this._geometryEngine=t}_initTranslatedUnits(){this._units={feet:this._translations.feet,meters:this._translations.meters,miles:this._translations.miles,kilometers:this._translations.kilometers}}_getUnits(){return Object.keys(this._units).map((t=>s("calcite-option",{label:this._units[t],selected:this.unit===t,value:t})))}_setDistance(t){const i=parseInt(t.target.value,10);this.distance!==i&&i>=this.min&&(this.distanceChanged.emit({oldValue:this.distance,newValue:i}),this.distance=i,this.distance>0?this._buffer():this.bufferComplete.emit(void 0))}_setUnit(t){this.unitChanged.emit({oldValue:this.unit,newValue:t}),this.unit=t,this._buffer()}_buffer(){this.disabled?this.bufferComplete.emit(void 0):(this._bufferTimeout&&clearTimeout(this._bufferTimeout),this._bufferTimeout=setTimeout((()=>{var t;if((null===(t=this.geometries)||void 0===t?void 0:t.length)>0&&this.unit&&this.distance>0){const t=this.geometries[0].spatialReference,i=t.isWGS84||t.isWebMercator?this._geometryEngine.geodesicBuffer(this.geometries,this.distance,this.unit,this.unionResults):this._geometryEngine.buffer(this.geometries,this.distance,this.unit,this.unionResults);this.bufferComplete.emit(i)}}),400))}_getTextBoxDisplay(){return s("div",{class:"c-container"},s("calcite-input",{class:"padding-end-1 w-50",max:this.max&&this.max>0?this.max:void 0,min:this.min,"number-button-type":"vertical",onCalciteInputInput:t=>this._setDistance(t),placeholder:"0",type:"number",value:this.distance?this.distance.toString():void 0}),s("calcite-select",{class:"flex-1 w-50",label:"label",onCalciteSelectChange:()=>this._setUnit(this._unitElement.value),ref:t=>{this._unitElement=t}},this._getUnits()))}_getSliderDisplay(){return s("div",null,s("calcite-slider",{labelHandles:!0,max:this.max&&this.max>0?this.max:void 0,min:this.min,ticks:this.sliderTicks}))}async _getTranslations(){const t=await l(this.el);this._translations=t[0]}_testAccess(t,i){switch(t){case"_setUnit":return this._setUnit(i);case"_setDistance":return this._setDistance(i)}return null}get el(){return a(this)}static get watchers(){return{geometries:["geometriesWatchHandler"],disabled:["disabledWatchHandler"]}}};
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,h as i,g as e,c as s,F as o}from"./p-
|
6
|
+
import{r as t,h as i,g as e,c as s,F as o}from"./p-f1782b8c.js";import{c as n,d as a}from"./p-640de6e2.js";import{c,s as l,a as r}from"./p-49dc53cb.js";import{c as h,d}from"./p-bf9d3381.js";import{u,c as p,d as m,s as g}from"./p-27431aa6.js";import{S as f,a as v,C as x,I as b}from"./p-4e58893d.js";import{S as y,I as w,C as I}from"./p-b80631c4.js";import{u as M,t as k,i as j,e as C}from"./p-4b9ba22d.js";import{g as E}from"./p-7d7e6744.js";import{g as z}from"./p-361b44ed.js";import{i as H}from"./p-34fb2a6e.js";import"./p-efc041d0.js";import"./p-3760847f.js";const A=class{constructor(i){t(this,i),this.setMenuOpen=t=>{this.menuOpen=!!t.target.open},this.handleMenuActionsSlotChange=t=>{this.hasMenuActions=M(t)},this.expanded=!1,this.label=void 0,this.layout="vertical",this.columns=void 0,this.menuOpen=!1,this.overlayPositioning="absolute",this.scale=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0,this.hasMenuActions=!1}expandedHandler(){this.menuOpen=!1}onMessagesChange(){}effectiveLocaleChange(){u(this,this.effectiveLocale)}async setFocus(){await c(this),this.el.focus()}connectedCallback(){h(this),p(this),n(this)}disconnectedCallback(){d(this),m(this),a(this)}async componentWillLoad(){l(this),await g(this)}componentDidLoad(){r(this)}renderMenu(){const{expanded:t,menuOpen:e,scale:s,layout:o,messages:n,overlayPositioning:a,hasMenuActions:c}=this;return i("calcite-action-menu",{expanded:t,flipPlacements:["left","right"],hidden:!c,label:n.more,onCalciteActionMenuOpen:this.setMenuOpen,open:e,overlayPositioning:a,placement:"horizontal"===o?"bottom-start":"leading-start",scale:s},i("calcite-action",{icon:w.menu,scale:s,slot:f.trigger,text:n.more,textEnabled:t}),i("slot",{name:y.menuActions,onSlotchange:this.handleMenuActionsSlotChange}),i("slot",{name:y.menuTooltip,slot:f.tooltip}))}render(){return i("div",{"aria-label":this.label,class:I.container,role:"group"},i("slot",null),this.renderMenu())}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{expanded:["expandedHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};A.style=':host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{display:flex;flex-direction:column;padding:0px;--calcite-action-group-columns:3;--calcite-action-group-gap:1px;--calcite-action-group-padding:1px}.container{display:flex;flex-grow:1;flex-direction:column}:host([columns="1"]){--calcite-action-group-columns:1}:host([columns="2"]){--calcite-action-group-columns:2}:host([columns="3"]){--calcite-action-group-columns:3}:host([columns="4"]){--calcite-action-group-columns:4}:host([columns="5"]){--calcite-action-group-columns:5}:host([columns="6"]){--calcite-action-group-columns:6}:host(:first-child){padding-block-start:0px}:host([layout=horizontal]),:host([layout=horizontal]) .container{flex-direction:row}:host([layout=grid]){display:grid}:host([layout=grid]) .container{display:grid;place-content:stretch;background-color:var(--calcite-ui-background);gap:var(--calcite-action-group-gap);padding:var(--calcite-action-group-gap);grid-template-columns:repeat(var(--calcite-action-group-columns), auto)}:host([hidden]){display:none}[hidden]{display:none}';const D=["ArrowUp","ArrowDown","End","Home"],P=class{constructor(i){t(this,i),this.calciteActionMenuOpen=s(this,"calciteActionMenuOpen",6),this.actionElements=[],this.guid=`calcite-action-menu-${z()}`,this.menuId=`${this.guid}-menu`,this.menuButtonId=`${this.guid}-menu-button`,this.connectMenuButtonEl=()=>{const{menuButtonId:t,menuId:i,open:e,label:s}=this,o=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==o&&(this.disconnectMenuButtonEl(),this.menuButtonEl=o,this.setTooltipReferenceElement(),o&&(o.active=e,o.setAttribute("aria-controls",i),o.setAttribute("aria-expanded",k(e)),o.setAttribute("aria-haspopup","true"),o.id||(o.id=t),o.label||(o.label=s),o.text||(o.text=s),o.addEventListener("pointerdown",this.menuButtonClick),o.addEventListener("keydown",this.menuButtonKeyDown)))},this.disconnectMenuButtonEl=()=>{const{menuButtonEl:t}=this;t&&(t.removeEventListener("pointerdown",this.menuButtonClick),t.removeEventListener("keydown",this.menuButtonKeyDown))},this.setMenuButtonEl=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>null==t?void 0:t.matches("calcite-action")));this.slottedMenuButtonEl=i[0],this.connectMenuButtonEl()},this.setDefaultMenuButtonEl=t=>{this.defaultMenuButtonEl=t,this.connectMenuButtonEl()},this.handleCalciteActionClick=()=>{this.open=!1,this.setFocus()},this.menuButtonClick=t=>{j(t)&&this.toggleOpen()},this.updateTooltip=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>null==t?void 0:t.matches("calcite-tooltip")));this.tooltipEl=i[0],this.setTooltipReferenceElement()},this.setTooltipReferenceElement=()=>{const{tooltipEl:t,expanded:i,menuButtonEl:e,open:s}=this;t&&(t.referenceElement=i||s?null:e)},this.updateAction=(t,i)=>{const{guid:e,activeMenuItemIndex:s}=this,o=`${e}-action-${i}`;t.tabIndex=-1,t.setAttribute("role","menuitem"),t.id||(t.id=o),t.toggleAttribute(v,i===s)},this.updateActions=t=>{null==t||t.forEach(this.updateAction)},this.handleDefaultSlotChange=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>null==t?void 0:t.matches("calcite-action")));this.actionElements=i},this.menuButtonKeyDown=t=>{const{key:i}=t,{actionElements:e,activeMenuItemIndex:s,open:o}=this;if(e.length){if(H(i)){if(t.preventDefault(),!o)return void this.toggleOpen();const i=e[s];i?i.click():this.toggleOpen(!1)}if("Tab"!==i)return"Escape"===i?(this.toggleOpen(!1),void t.preventDefault()):void this.handleActionNavigation(t,i,e);this.open=!1}},this.handleActionNavigation=(t,i,e)=>{if(!this.isValidKey(i,D))return;if(t.preventDefault(),!this.open)return this.toggleOpen(),"Home"!==i&&"ArrowDown"!==i||(this.activeMenuItemIndex=0),void("End"!==i&&"ArrowUp"!==i||(this.activeMenuItemIndex=e.length-1));"Home"===i&&(this.activeMenuItemIndex=0),"End"===i&&(this.activeMenuItemIndex=e.length-1);const s=this.activeMenuItemIndex;"ArrowUp"===i&&(this.activeMenuItemIndex=E(Math.max(s-1,-1),e.length)),"ArrowDown"===i&&(this.activeMenuItemIndex=E(s+1,e.length))},this.toggleOpenEnd=()=>{this.setFocus(),this.el.removeEventListener("calcitePopoverOpen",this.toggleOpenEnd)},this.toggleOpen=(t=!this.open)=>{this.el.addEventListener("calcitePopoverOpen",this.toggleOpenEnd),this.open=t},this.appearance="solid",this.expanded=!1,this.flipPlacements=void 0,this.label=void 0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale=void 0,this.menuButtonEl=void 0,this.activeMenuItemIndex=-1}componentWillLoad(){l(this)}componentDidLoad(){r(this)}disconnectedCallback(){this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(t){this.activeMenuItemIndex=this.open?0:-1,this.menuButtonEl&&(this.menuButtonEl.active=t),this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}closeCalciteActionMenuOnClick(t){j(t)&&(t.composedPath().includes(this.el)||(this.open=!1))}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}async setFocus(){return await c(this),C(this.menuButtonEl)}renderMenuButton(){const{appearance:t,label:e,scale:s,expanded:o}=this;return i("slot",{name:f.trigger,onSlotchange:this.setMenuButtonEl},i("calcite-action",{appearance:t,class:x.defaultTrigger,icon:b.menu,scale:s,text:e,textEnabled:o,ref:this.setDefaultMenuButtonEl}))}renderMenuItems(){const{actionElements:t,activeMenuItemIndex:e,open:s,menuId:o,menuButtonEl:n,label:a,placement:c,overlayPositioning:l,flipPlacements:r}=this,h=t[e];return i("calcite-popover",{flipPlacements:r,focusTrapDisabled:!0,label:a,offsetDistance:0,open:s,overlayPositioning:l,placement:c,pointerDisabled:!0,referenceElement:n},i("div",{"aria-activedescendant":(null==h?void 0:h.id)||null,"aria-labelledby":null==n?void 0:n.id,class:x.menu,id:o,onClick:this.handleCalciteActionClick,role:"menu",tabIndex:-1},i("slot",{onSlotchange:this.handleDefaultSlotChange})))}render(){return i(o,null,this.renderMenuButton(),this.renderMenuItems(),i("slot",{name:f.tooltip,onSlotchange:this.updateTooltip}))}isValidKey(t,i){return!!i.find((i=>i===t))}get el(){return e(this)}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}};P.style=":host{box-sizing:border-box;display:flex;flex-direction:column;font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}.menu ::slotted(calcite-action){margin:0.125rem;display:flex;outline-color:transparent}.menu ::slotted(calcite-action[data-active]){outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );outline-offset:0px}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{flex-direction:column;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}";export{A as calcite_action_group,P as calcite_action_menu}
|