@esri/solutions-components 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/ExpandToggle-8aa3f03d.js +118 -0
- package/dist/cjs/FloatingArrow-a3a78fca.js +50 -0
- package/dist/cjs/Heading-a6308c38.js +25 -0
- package/dist/cjs/ar-8bcca75e.js +104 -0
- package/dist/cjs/arcgis-login.cjs.entry.js +1 -1
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +4 -3
- package/dist/cjs/bg-dd2c317a.js +82 -0
- package/dist/cjs/breakpoints-fcd0f2a0.js +17 -0
- package/dist/cjs/bs-2e880b80.js +51 -0
- package/dist/cjs/buffer-tools_3.cjs.entry.js +661 -0
- package/dist/cjs/ca-5cf9d5a1.js +71 -0
- 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_2.cjs.entry.js +296 -0
- package/dist/cjs/calcite-action_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-alert_3.cjs.entry.js +7 -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 +10 -9
- package/dist/cjs/calcite-date-picker-day.cjs.entry.js +100 -0
- package/dist/cjs/calcite-date-picker_3.cjs.entry.js +990 -0
- package/dist/cjs/calcite-fab.cjs.entry.js +2 -2
- package/dist/cjs/calcite-filter_2.cjs.entry.js +237 -0
- 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_2.cjs.entry.js +1098 -0
- package/dist/cjs/calcite-handle.cjs.entry.js +170 -0
- 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.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input-text.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input-time-picker-a1e90ec2.js +1849 -0
- 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-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.cjs.entry.js +167 -0
- 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.cjs.entry.js +269 -0
- 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-popover.cjs.entry.js +6 -6
- 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 +12 -10
- package/dist/cjs/calcite-shell.cjs.entry.js +157 -0
- 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 +3 -3
- package/dist/cjs/calcite-stepper.cjs.entry.js +2 -2
- 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/calcite-tooltip.cjs.entry.js +438 -0
- package/dist/cjs/card-manager_3.cjs.entry.js +35 -9
- package/dist/cjs/common-4cd3537b.js +38 -0
- package/dist/cjs/conditionalSlot-d68de819.js +63 -0
- package/dist/cjs/crowdsource-manager.cjs.entry.js +3 -2
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
- package/dist/cjs/cs-f072592b.js +147 -0
- package/dist/cjs/da-6af0e31c.js +66 -0
- package/dist/cjs/de-8d7e940e.js +91 -0
- package/dist/cjs/de-at-d864ad65.js +90 -0
- package/dist/cjs/de-ch-23108e0e.js +90 -0
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/downloadUtils-95e4a5b2.js +3124 -0
- package/dist/cjs/el-e6a28b0d.js +66 -0
- package/dist/cjs/en-au-9e23d436.js +66 -0
- package/dist/cjs/en-ca-34a501cb.js +65 -0
- package/dist/cjs/en-gb-33340e8a.js +69 -0
- package/dist/cjs/es-8adf47b0.js +66 -0
- package/dist/cjs/es-mx-44ad44a0.js +65 -0
- package/dist/cjs/esri-loader-a91c0ec1.js +303 -0
- package/dist/cjs/et-c9f248fa.js +92 -0
- package/dist/cjs/feature-comments.cjs.entry.js +1 -1
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/fi-e5ac8a6b.js +115 -0
- package/dist/cjs/form-1c637002.js +260 -0
- package/dist/cjs/fr-2ada2468.js +68 -0
- package/dist/cjs/fr-ch-645d30ad.js +66 -0
- package/dist/cjs/he-b6a59c60.js +105 -0
- package/dist/cjs/helpers-ff831524.js +903 -0
- package/dist/cjs/hi-6da5ed74.js +65 -0
- package/dist/cjs/hr-6f0e2b6e.js +80 -0
- package/dist/cjs/hu-f73982a9.js +88 -0
- package/dist/cjs/id-5e09da12.js +66 -0
- package/dist/cjs/index-22bb61da.js +201 -0
- package/dist/cjs/index-b8a649fc.js +2530 -0
- package/dist/cjs/index-f64944ad.js +2107 -0
- package/dist/cjs/index.es-a88403f8.js +10811 -0
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +501 -0
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +98 -0
- package/dist/cjs/instant-apps-export.cjs.entry.js +652 -0
- package/dist/cjs/instant-apps-filter-list.cjs.entry.js +997 -0
- package/dist/cjs/instant-apps-header.cjs.entry.js +126 -0
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +1582 -0
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +141 -0
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +56 -0
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +766 -0
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +115 -0
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +143 -0
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +104 -0
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +177 -0
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +250 -0
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +70 -0
- package/dist/cjs/instant-apps-popover.cjs.entry.js +79 -0
- package/dist/cjs/instant-apps-popovers.cjs.entry.js +92 -0
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +467 -0
- package/dist/cjs/instant-apps-social-share.cjs.entry.js +502 -0
- package/dist/cjs/instant-apps-splash.cjs.entry.js +143 -0
- package/dist/cjs/it-94070661.js +66 -0
- package/dist/cjs/it-ch-8f628d09.js +66 -0
- package/dist/cjs/ja-b3dc5ef9.js +72 -0
- package/dist/cjs/ko-6ba17eb2.js +72 -0
- package/dist/cjs/languageSwitcher-cae609d9.js +58 -0
- package/dist/cjs/languageUtil-a3b464f8.js +69 -0
- package/dist/cjs/layout-manager.cjs.entry.js +3 -2
- package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/loadModules-1d0f0316.js +23 -0
- package/dist/cjs/loadModules-46d14e81.js +30 -0
- package/dist/cjs/loadable-e209caa9.js +94 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/locale-56c3447b.js +82 -0
- package/dist/cjs/locale-9db09b63.js +122 -0
- package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/lt-2354e625.js +97 -0
- package/dist/cjs/lv-cc37b69c.js +66 -0
- package/dist/cjs/map-select-tools_3.cjs.entry.js +10 -8
- package/dist/cjs/mk-ac4a31aa.js +66 -0
- package/dist/cjs/mode-d6c12b38.js +19 -0
- package/dist/cjs/nb-abd9538a.js +67 -0
- package/dist/cjs/nl-c624c786.js +67 -0
- package/dist/cjs/openCloseComponent-cf70bddd.js +92 -0
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/pl-04f956d5.js +114 -0
- package/dist/cjs/pt-aabed5c9.js +67 -0
- package/dist/cjs/pt-br-ea295f22.js +65 -0
- package/dist/cjs/public-notification.cjs.entry.js +10 -8
- package/dist/cjs/publicNotificationStore-3a17c2f4.js +47 -0
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/restHelpersGet-e0737480.js +972 -0
- package/dist/cjs/ro-0a9832f9.js +66 -0
- package/dist/cjs/ru-9fe91395.js +126 -0
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/shared-list-render-b73b4b3d.js +364 -0
- package/dist/cjs/sk-0f14807f.js +148 -0
- package/dist/cjs/sl-91ca20d1.js +168 -0
- package/dist/cjs/solution-configuration.cjs.entry.js +8 -6
- package/dist/cjs/solution-contents_3.cjs.entry.js +9 -7
- package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
- package/dist/cjs/solution-resource-abec7452.js +141 -0
- package/dist/cjs/solution-store-ab6c980f.js +1344 -0
- package/dist/cjs/solutions-components.cjs.js +2 -2
- package/dist/cjs/spatial-ref.cjs.entry.js +6 -4
- package/dist/cjs/sr-bf45936b.js +101 -0
- package/dist/cjs/store-manager.cjs.entry.js +1 -1
- package/dist/cjs/sv-e20bd76f.js +71 -0
- package/dist/cjs/t9n-8460f178.js +100 -0
- package/dist/cjs/th-2a65e2af.js +65 -0
- package/dist/cjs/tr-55642c14.js +66 -0
- package/dist/cjs/uk-cee39dac.js +104 -0
- package/dist/cjs/utils-41eb3a01.js +120 -0
- package/dist/cjs/utils-bf5f34d7.js +64 -0
- package/dist/cjs/vi-264d924f.js +70 -0
- package/dist/cjs/zh-cn-31b500d4.js +94 -0
- package/dist/cjs/zh-hk-03ee3a8e.js +71 -0
- package/dist/cjs/zh-tw-13f729f1.js +92 -0
- package/dist/collection/collection-manifest.json +33 -0
- package/dist/collection/components/layer-table/layer-table.css +11 -1
- package/dist/collection/components/layer-table/layer-table.js +27 -16
- package/dist/components/action-pad.js +229 -0
- package/dist/components/block.js +281 -0
- package/dist/components/breakpoints.js +15 -0
- package/dist/components/calcite-action-pad.js +1 -222
- package/dist/components/calcite-block.js +1 -274
- package/dist/components/calcite-input-date-picker.js +1 -808
- package/dist/components/calcite-input-time-zone.js +1 -1
- package/dist/components/crowdsource-manager.js +76 -70
- package/dist/components/downloadUtils.js +1 -0
- package/dist/components/helpers.js +800 -0
- package/dist/components/index3.js +2068 -162
- package/dist/components/index4.js +179 -184
- package/dist/components/index5.js +188 -55
- package/dist/components/index6.js +71 -0
- package/dist/components/input-date-picker.js +815 -0
- package/dist/components/instant-apps-ckeditor-wrapper.js +11 -0
- package/dist/components/instant-apps-ckeditor-wrapper2.js +142 -0
- package/dist/components/instant-apps-control-panel.js +114 -0
- package/dist/components/instant-apps-export.js +750 -0
- package/dist/components/instant-apps-filter-list.js +1170 -0
- package/dist/components/instant-apps-header.js +11 -0
- package/dist/components/instant-apps-header2.js +175 -0
- package/dist/components/instant-apps-interactive-legend-classic.js +11 -0
- package/dist/components/instant-apps-interactive-legend-classic2.js +1674 -0
- package/dist/components/instant-apps-interactive-legend-count.js +11 -0
- package/dist/components/instant-apps-interactive-legend-count2.js +121 -0
- package/dist/components/instant-apps-interactive-legend-group-legend-element-caption.js +97 -0
- package/dist/components/instant-apps-interactive-legend-group-legend-element.js +11 -0
- package/dist/components/instant-apps-interactive-legend-group-legend-element2.js +99 -0
- package/dist/components/instant-apps-interactive-legend-layer-element-caption.js +11 -0
- package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +92 -0
- package/dist/components/instant-apps-interactive-legend-layer-element.js +11 -0
- package/dist/components/instant-apps-interactive-legend-layer-element2.js +100 -0
- package/dist/components/instant-apps-interactive-legend-legend-element-caption.js +11 -0
- package/dist/components/instant-apps-interactive-legend-legend-element-caption2.js +152 -0
- package/dist/components/instant-apps-interactive-legend-legend-element.js +11 -0
- package/dist/components/instant-apps-interactive-legend-legend-element2.js +122 -0
- package/dist/components/instant-apps-interactive-legend-relationship.js +11 -0
- package/dist/components/instant-apps-interactive-legend-relationship2.js +565 -0
- package/dist/components/instant-apps-interactive-legend.js +217 -0
- package/dist/components/instant-apps-keyboard-shortcuts.js +211 -0
- package/dist/components/instant-apps-landing-page.js +150 -0
- package/dist/components/instant-apps-language-switcher.js +311 -0
- package/dist/components/instant-apps-language-translator-item.js +11 -0
- package/dist/components/instant-apps-language-translator-item2.js +353 -0
- package/dist/components/instant-apps-language-translator-search.js +11 -0
- package/dist/components/instant-apps-language-translator-search2.js +131 -0
- package/dist/components/instant-apps-language-translator.js +11 -0
- package/dist/components/instant-apps-language-translator2.js +412 -0
- package/dist/components/instant-apps-measurement-tool.js +11 -0
- package/dist/components/instant-apps-measurement-tool2.js +154 -0
- package/dist/components/instant-apps-measurement.js +154 -0
- package/dist/components/instant-apps-popover.js +136 -0
- package/dist/components/instant-apps-popovers.js +115 -0
- package/dist/components/instant-apps-scoreboard.js +522 -0
- package/dist/components/instant-apps-social-share.js +11 -0
- package/dist/components/instant-apps-social-share2.js +566 -0
- package/dist/components/instant-apps-splash.js +206 -0
- package/dist/components/languageUtil.js +66 -0
- package/dist/components/layer-table2.js +77 -47
- package/dist/components/loadModules2.js +21 -0
- package/dist/components/locale3.js +77 -0
- package/dist/components/mode.js +17 -0
- package/dist/components/publicNotificationStore.js +1 -1
- package/dist/components/restHelpersGet.js +1 -0
- package/dist/components/solution-configuration.js +1 -0
- package/dist/components/solution-resource-item2.js +1 -0
- package/dist/components/solution-resource.js +1 -1699
- package/dist/components/solution-store.js +2 -1
- package/dist/components/spatial-ref2.js +1 -0
- package/dist/components/store.js +86 -0
- package/dist/components/utils4.js +111 -0
- package/dist/esm/ExpandToggle-52a39281.js +110 -0
- package/dist/esm/FloatingArrow-337e6e2c.js +48 -0
- package/dist/esm/Heading-f6569cca.js +22 -0
- package/dist/esm/ar-f77800f7.js +102 -0
- package/dist/esm/arcgis-login.entry.js +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +4 -3
- package/dist/esm/bg-db2ef59b.js +80 -0
- package/dist/esm/breakpoints-f0f1417d.js +15 -0
- package/dist/esm/bs-f93b1f4d.js +49 -0
- package/dist/esm/buffer-tools_3.entry.js +655 -0
- package/dist/esm/ca-2b18b8fd.js +69 -0
- 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 +6 -6
- package/dist/esm/calcite-action-group_2.entry.js +5 -5
- package/dist/esm/calcite-action-pad_2.entry.js +291 -0
- package/dist/esm/calcite-action_2.entry.js +4 -4
- package/dist/esm/calcite-alert_3.entry.js +8 -7
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block-section.entry.js +4 -4
- package/dist/esm/calcite-block.entry.js +7 -7
- package/dist/esm/calcite-button.entry.js +5 -5
- package/dist/esm/calcite-card.entry.js +4 -4
- 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 +5 -5
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +2 -2
- package/dist/esm/calcite-color-picker.entry.js +4 -4
- package/dist/esm/calcite-combobox-item-group.entry.js +1 -1
- package/dist/esm/calcite-combobox_6.entry.js +11 -10
- package/dist/esm/calcite-date-picker-day.entry.js +96 -0
- package/dist/esm/calcite-date-picker_3.entry.js +984 -0
- package/dist/esm/calcite-fab.entry.js +2 -2
- package/dist/esm/calcite-filter_2.entry.js +232 -0
- package/dist/esm/calcite-flow-item.entry.js +4 -4
- package/dist/esm/calcite-flow.entry.js +2 -2
- package/dist/esm/calcite-graph_2.entry.js +1093 -0
- package/dist/esm/calcite-handle.entry.js +166 -0
- package/dist/esm/calcite-icon.entry.js +1 -1
- package/dist/esm/calcite-inline-editable.entry.js +4 -4
- package/dist/esm/calcite-input-date-picker.entry.js +8 -8
- package/dist/esm/calcite-input-number.entry.js +5 -5
- package/dist/esm/calcite-input-text.entry.js +5 -5
- package/dist/esm/calcite-input-time-picker-9906784a.js +1846 -0
- package/dist/esm/calcite-input-time-picker.entry.js +8 -8
- package/dist/esm/calcite-input-time-zone.entry.js +5 -5
- package/dist/esm/calcite-input_2.entry.js +5 -5
- 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-menu-item.entry.js +4 -4
- package/dist/esm/calcite-menu.entry.js +4 -4
- package/dist/esm/calcite-meter.entry.js +4 -4
- package/dist/esm/calcite-modal.entry.js +6 -6
- 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.entry.js +163 -0
- 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 +4 -4
- package/dist/esm/calcite-panel.entry.js +265 -0
- package/dist/esm/calcite-pick-list-group.entry.js +3 -3
- package/dist/esm/calcite-pick-list-item.entry.js +5 -5
- package/dist/esm/calcite-pick-list.entry.js +3 -3
- package/dist/esm/calcite-popover.entry.js +7 -7
- 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 +5 -5
- package/dist/esm/calcite-scrim.entry.js +3 -3
- 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 +13 -11
- package/dist/esm/calcite-shell.entry.js +153 -0
- 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 +4 -4
- package/dist/esm/calcite-stepper.entry.js +3 -3
- package/dist/esm/calcite-switch.entry.js +3 -3
- package/dist/esm/calcite-table-cell_2.entry.js +4 -4
- package/dist/esm/calcite-table-row.entry.js +1 -1
- package/dist/esm/calcite-table.entry.js +4 -4
- package/dist/esm/calcite-text-area.entry.js +5 -5
- 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 +5 -5
- package/dist/esm/calcite-tip-group.entry.js +1 -1
- package/dist/esm/calcite-tip-manager.entry.js +4 -4
- package/dist/esm/calcite-tip.entry.js +5 -5
- package/dist/esm/calcite-tooltip.entry.js +434 -0
- package/dist/esm/card-manager_3.entry.js +35 -9
- package/dist/esm/common-2cf42ac2.js +36 -0
- package/dist/esm/conditionalSlot-a714d511.js +60 -0
- package/dist/esm/crowdsource-manager.entry.js +3 -2
- package/dist/esm/crowdsource-reporter.entry.js +1 -1
- package/dist/esm/cs-deb5a8b8.js +145 -0
- package/dist/esm/da-200f1715.js +64 -0
- package/dist/esm/date-b6645c2f.js +245 -0
- package/dist/esm/de-2a1519db.js +89 -0
- package/dist/esm/de-at-f6b9f5e9.js +88 -0
- package/dist/esm/de-ch-57100172.js +88 -0
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/downloadUtils-83dd2143.js +3118 -0
- package/dist/esm/el-d8748e54.js +64 -0
- package/dist/esm/en-au-c4fb48e2.js +64 -0
- package/dist/esm/en-ca-e7c89089.js +63 -0
- package/dist/esm/en-gb-a9b09a37.js +67 -0
- package/dist/esm/es-b9849b68.js +64 -0
- package/dist/esm/es-mx-a6683427.js +63 -0
- package/dist/esm/esri-loader-eda07632.js +301 -0
- package/dist/esm/et-5977f99c.js +90 -0
- package/dist/esm/feature-comments.entry.js +1 -1
- package/dist/esm/feature-form-flow-item.entry.js +1 -1
- package/dist/esm/features-flow-item.entry.js +1 -1
- package/dist/esm/fi-7c833852.js +113 -0
- package/dist/esm/form-20beb147.js +252 -0
- package/dist/esm/fr-666c6e38.js +66 -0
- package/dist/esm/fr-ch-c31a993e.js +64 -0
- package/dist/esm/he-0f33cd21.js +103 -0
- package/dist/esm/helpers-e8282221.js +877 -0
- package/dist/esm/hi-7c013995.js +63 -0
- package/dist/esm/hr-0beace22.js +78 -0
- package/dist/esm/hu-b9e83513.js +86 -0
- package/dist/esm/id-e79416a2.js +64 -0
- package/dist/esm/index-7183ce4a.js +2496 -0
- package/dist/esm/index-857df22e.js +199 -0
- package/dist/esm/index-a1e91462.js +2105 -0
- package/dist/esm/index.es-0c98e2f3.js +10725 -0
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +495 -0
- package/dist/esm/instant-apps-control-panel.entry.js +94 -0
- package/dist/esm/instant-apps-export.entry.js +648 -0
- package/dist/esm/instant-apps-filter-list.entry.js +993 -0
- package/dist/esm/instant-apps-header.entry.js +122 -0
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +1578 -0
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +136 -0
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +52 -0
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +758 -0
- package/dist/esm/instant-apps-interactive-legend.entry.js +111 -0
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +139 -0
- package/dist/esm/instant-apps-landing-page.entry.js +100 -0
- package/dist/esm/instant-apps-language-switcher.entry.js +173 -0
- package/dist/esm/instant-apps-language-translator.entry.js +246 -0
- package/dist/esm/instant-apps-measurement.entry.js +66 -0
- package/dist/esm/instant-apps-popover.entry.js +75 -0
- package/dist/esm/instant-apps-popovers.entry.js +88 -0
- package/dist/esm/instant-apps-scoreboard.entry.js +463 -0
- package/dist/esm/instant-apps-social-share.entry.js +498 -0
- package/dist/esm/instant-apps-splash.entry.js +139 -0
- package/dist/esm/it-37653e1d.js +64 -0
- package/dist/esm/it-ch-23524bd0.js +64 -0
- package/dist/esm/ja-7e8f1da7.js +70 -0
- package/dist/esm/ko-f251bcd0.js +70 -0
- package/dist/esm/languageSwitcher-75765d90.js +55 -0
- package/dist/esm/languageUtil-8b54477c.js +66 -0
- package/dist/esm/layout-manager.entry.js +3 -2
- package/dist/esm/list-flow-item.entry.js +1 -1
- package/dist/esm/loadModules-037feea8.js +21 -0
- package/dist/esm/loadModules-cea493da.js +28 -0
- package/dist/esm/loadable-4ea020fa.js +89 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/locale-53d724b5.js +77 -0
- package/dist/esm/locale-834c52c6.js +119 -0
- package/dist/esm/locale-f08c5b10.js +594 -0
- package/dist/esm/location-flow-item.entry.js +1 -1
- package/dist/esm/lt-cdddaadd.js +95 -0
- package/dist/esm/lv-2cc9a2c6.js +64 -0
- package/dist/esm/map-select-tools_3.entry.js +10 -8
- package/dist/esm/mk-b8e24f01.js +64 -0
- package/dist/esm/mode-66911cb5.js +17 -0
- package/dist/esm/nb-f1105c34.js +65 -0
- package/dist/esm/nl-2e6ded8f.js +65 -0
- package/dist/esm/openCloseComponent-d85ff5f3.js +90 -0
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/pl-433c515d.js +112 -0
- package/dist/esm/pt-br-7e11f4a3.js +63 -0
- package/dist/esm/pt-d448bc92.js +65 -0
- package/dist/esm/public-notification.entry.js +10 -8
- package/dist/esm/publicNotificationStore-9362d7ae.js +45 -0
- package/dist/esm/refine-results-flow-item.entry.js +1 -1
- package/dist/esm/restHelpersGet-af032ab2.js +959 -0
- package/dist/esm/ro-1392a615.js +64 -0
- package/dist/esm/ru-ffcd1533.js +124 -0
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/shared-list-render-3f6a670f.js +342 -0
- package/dist/esm/sk-28b09fd6.js +146 -0
- package/dist/esm/sl-a85a243f.js +166 -0
- package/dist/esm/solution-configuration.entry.js +8 -6
- package/dist/esm/solution-contents_3.entry.js +9 -7
- package/dist/esm/solution-item-icon.entry.js +1 -1
- package/dist/esm/solution-resource-7b8d302d.js +138 -0
- package/dist/esm/solution-store-b08696f7.js +1342 -0
- package/dist/esm/solutions-components.js +3 -3
- package/dist/esm/spatial-ref.entry.js +6 -4
- package/dist/esm/sr-fcd3b800.js +99 -0
- package/dist/esm/store-manager.entry.js +1 -1
- package/dist/esm/sv-10bb847b.js +69 -0
- package/dist/esm/t9n-ff209b55.js +95 -0
- package/dist/esm/th-60df6ca9.js +63 -0
- package/dist/esm/time-8fc11a36.js +274 -0
- package/dist/esm/tr-d2a9de1a.js +64 -0
- package/dist/esm/uk-f65b52d5.js +102 -0
- package/dist/esm/utils-06bace50.js +111 -0
- package/dist/esm/utils-5fbb928b.js +61 -0
- package/dist/esm/vi-a661d397.js +68 -0
- package/dist/esm/zh-cn-a71a90fa.js +92 -0
- package/dist/esm/zh-hk-352c4f2e.js +69 -0
- package/dist/esm/zh-tw-de9cb649.js +90 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-control-panel/instant-apps-control-panel.css +3 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-export/instant-apps-export.css +81 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-filter-list/instant-apps-filter-list.css +104 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-header/instant-apps-header.css +165 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-classic/instant-apps-interactive-legend-classic.css +124 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-count/instant-apps-interactive-legend-count.css +18 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-group-legend-element/instant-apps-interactive-legend-group-legend-element.css +10 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-group-legend-element-caption/instant-apps-interactive-legend-group-legend-element-caption.css +67 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-layer-element/instant-apps-interactive-legend-layer-element.css +17 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-layer-element-caption/instant-apps-interactive-legend-layer-element-caption.css +68 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-legend-element/instant-apps-interactive-legend-legend-element.css +10 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-legend-element-caption/instant-apps-interactive-legend-legend-element-caption.css +52 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-relationship/instant-apps-interactive-legend-relationship.css +15 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend.css +12 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-keyboard-shortcuts/instant-apps-keyboard-shortcuts.css +33 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-landing-page/instant-apps-landing-page.css +222 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-switcher/instant-apps-language-switcher.css +13 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-ckeditor-wrapper/instant-apps-ckeditor-wrapper.css +3 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator-item/instant-apps-language-translator-item.css +83 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator-search/instant-apps-language-translator-search.css +34 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator.css +86 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-measurement/instant-apps-measurement-tool/instant-apps-measurement-tool.css +6 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-measurement/instant-apps-measurement.css +6 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-popover/instant-apps-popover.css +58 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-popovers/instant-apps-popovers.css +3 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-scoreboard/instant-apps-scoreboard.css +200 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-social-share/instant-apps-social-share.css +273 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-splash/instant-apps-splash.css +10 -0
- package/dist/solutions-components/p-00639754.js +6 -0
- package/dist/solutions-components/p-0103dee1.entry.js +6 -0
- package/dist/solutions-components/p-019f0baa.entry.js +6 -0
- package/dist/solutions-components/p-03466ab3.js +6 -0
- package/dist/solutions-components/p-0637dbc2.entry.js +6 -0
- package/dist/solutions-components/p-066ceb3b.entry.js +11 -0
- package/dist/solutions-components/p-077dd2ca.js +6 -0
- package/dist/solutions-components/p-089dc6bf.entry.js +6 -0
- package/dist/solutions-components/p-0959f0ba.entry.js +6 -0
- package/dist/solutions-components/p-0a0d0d3a.entry.js +6 -0
- package/dist/solutions-components/p-0ad0b29a.js +6 -0
- package/dist/solutions-components/p-0e64cb34.entry.js +11 -0
- package/dist/solutions-components/p-0f5defc9.entry.js +11 -0
- package/dist/solutions-components/p-0ff2ce41.js +6 -0
- package/dist/solutions-components/p-10c627d2.entry.js +6 -0
- package/dist/solutions-components/p-149d80ad.js +6 -0
- package/dist/solutions-components/p-14a48b14.js +6 -0
- package/dist/solutions-components/p-18245133.js +6 -0
- package/dist/solutions-components/p-188483e2.entry.js +6 -0
- package/dist/solutions-components/p-19f5577d.js +6 -0
- package/dist/solutions-components/p-1b267b47.entry.js +29 -0
- package/dist/solutions-components/p-1b9fb070.entry.js +6 -0
- package/dist/solutions-components/p-21c2d29c.entry.js +6 -0
- package/dist/solutions-components/p-21ccd955.entry.js +6 -0
- package/dist/solutions-components/p-220ec0d1.js +66 -0
- package/dist/solutions-components/p-225c4ca4.js +6 -0
- package/dist/solutions-components/p-23f5989b.js +6 -0
- package/dist/solutions-components/p-23fa75e8.entry.js +11 -0
- package/dist/solutions-components/p-2540efd5.entry.js +17 -0
- package/dist/solutions-components/p-28a5d3d0.js +6 -0
- package/dist/solutions-components/p-2f496e4c.entry.js +6 -0
- package/dist/solutions-components/p-3186b4b6.entry.js +11 -0
- package/dist/solutions-components/p-319c5251.entry.js +11 -0
- package/dist/solutions-components/p-3272b303.entry.js +11 -0
- package/dist/solutions-components/p-33cab25b.entry.js +11 -0
- package/dist/solutions-components/p-35f6e2e8.entry.js +6 -0
- package/dist/solutions-components/p-36eb8399.js +145 -0
- package/dist/solutions-components/p-3ac10964.js +6 -0
- package/dist/solutions-components/p-3c3c2587.entry.js +6 -0
- package/dist/solutions-components/p-3d17ee9f.entry.js +6 -0
- package/dist/solutions-components/p-3e30d94c.entry.js +6 -0
- package/dist/solutions-components/p-3f80aa6c.entry.js +11 -0
- package/dist/solutions-components/p-4052ab77.entry.js +6 -0
- package/dist/solutions-components/p-4193c543.entry.js +47 -0
- package/dist/solutions-components/p-423ba032.entry.js +11 -0
- package/dist/solutions-components/p-4349583f.js +6 -0
- package/dist/solutions-components/p-43546966.entry.js +6 -0
- package/dist/solutions-components/p-43e05fb4.entry.js +11 -0
- package/dist/solutions-components/p-442f8a22.js +6 -0
- package/dist/solutions-components/p-44e4e81d.entry.js +11 -0
- package/dist/solutions-components/p-4507fcfc.entry.js +11 -0
- package/dist/solutions-components/p-450bb7fb.js +6 -0
- package/dist/solutions-components/p-4671a5b6.entry.js +6 -0
- package/dist/solutions-components/p-48ff9cea.js +21 -0
- package/dist/solutions-components/p-49d11f7b.entry.js +17 -0
- package/dist/solutions-components/p-4a7dfcc3.entry.js +12 -0
- package/dist/solutions-components/p-4ee789e1.entry.js +21 -0
- package/dist/solutions-components/p-52afba17.entry.js +6 -0
- package/dist/solutions-components/p-54197bfa.entry.js +11 -0
- package/dist/solutions-components/p-5463e1aa.js +6 -0
- package/dist/solutions-components/p-58aa5973.js +6 -0
- package/dist/solutions-components/p-59337ddc.js +6 -0
- package/dist/solutions-components/p-59407d94.entry.js +6 -0
- package/dist/solutions-components/p-5953ebe8.entry.js +36 -0
- package/dist/solutions-components/p-59837e81.js +6 -0
- package/dist/solutions-components/p-5a60178d.js +11 -0
- package/dist/solutions-components/p-5a885617.entry.js +6 -0
- package/dist/solutions-components/p-5f79d121.entry.js +6 -0
- package/dist/solutions-components/p-60cdbf65.js +6 -0
- package/dist/solutions-components/p-6175d614.js +6 -0
- package/dist/solutions-components/p-61a523a6.entry.js +6 -0
- package/dist/solutions-components/p-6268020e.entry.js +6 -0
- package/dist/solutions-components/p-6384cfd0.entry.js +11 -0
- package/dist/solutions-components/p-63f76755.entry.js +11 -0
- package/dist/solutions-components/p-66f20ed3.js +6 -0
- package/dist/solutions-components/p-6a0777f1.entry.js +11 -0
- package/dist/solutions-components/p-6a9a9589.entry.js +11 -0
- package/dist/solutions-components/p-6b494d23.entry.js +18 -0
- package/dist/solutions-components/p-6b943f52.js +21 -0
- package/dist/solutions-components/p-6bba7223.entry.js +11 -0
- package/dist/solutions-components/p-6eeebb54.entry.js +11 -0
- package/dist/solutions-components/p-6fff23ce.js +6 -0
- package/dist/solutions-components/p-7283bfe4.entry.js +6 -0
- package/dist/solutions-components/p-72920bd9.entry.js +11 -0
- package/dist/solutions-components/p-74a89c71.entry.js +6 -0
- package/dist/solutions-components/p-77fe67bc.js +6 -0
- package/dist/solutions-components/p-78780f63.js +7 -0
- package/dist/solutions-components/p-796ce3a2.entry.js +6 -0
- package/dist/solutions-components/p-7b2c0232.js +6 -0
- package/dist/solutions-components/p-7ba359e7.js +6 -0
- package/dist/solutions-components/p-7d5d4770.entry.js +17 -0
- package/dist/solutions-components/p-7d635859.entry.js +17 -0
- package/dist/solutions-components/p-7eec285c.entry.js +6 -0
- package/dist/solutions-components/p-7f8b34ec.entry.js +17 -0
- package/dist/solutions-components/p-80bc8ff8.js +6 -0
- package/dist/solutions-components/p-811313d1.entry.js +6 -0
- package/dist/solutions-components/p-81c5c5f2.entry.js +6 -0
- package/dist/solutions-components/p-825c045a.entry.js +6 -0
- package/dist/solutions-components/p-83cf2842.js +6 -0
- package/dist/solutions-components/p-84034340.js +6 -0
- package/dist/solutions-components/p-840bf17d.entry.js +11 -0
- package/dist/solutions-components/p-847193e7.entry.js +6 -0
- package/dist/solutions-components/p-8479b57c.entry.js +6 -0
- package/dist/solutions-components/p-8684a905.js +21 -0
- package/dist/solutions-components/p-88d4aca3.js +11 -0
- package/dist/solutions-components/p-89dbc9bb.entry.js +11 -0
- package/dist/solutions-components/p-8a80c2c0.js +11 -0
- package/dist/solutions-components/p-8b45a9f3.js +6 -0
- package/dist/solutions-components/p-8b626490.js +11 -0
- package/dist/solutions-components/p-8b6dd664.entry.js +11 -0
- package/dist/solutions-components/p-8b8b2f3a.entry.js +6 -0
- package/dist/solutions-components/p-8dfdd18e.js +6 -0
- package/dist/solutions-components/p-8e552755.js +11 -0
- package/dist/solutions-components/p-9063316f.entry.js +11 -0
- package/dist/solutions-components/p-9190f5a9.entry.js +6 -0
- package/dist/solutions-components/p-91af3a8c.entry.js +6 -0
- package/dist/solutions-components/p-92c5117e.js +6 -0
- package/dist/solutions-components/p-93510a8c.entry.js +11 -0
- package/dist/solutions-components/p-93cfd220.entry.js +17 -0
- package/dist/solutions-components/p-946214a3.entry.js +11 -0
- package/dist/solutions-components/p-951a5673.entry.js +6 -0
- package/dist/solutions-components/p-96ac6d8a.entry.js +16 -0
- package/dist/solutions-components/p-9806d57b.js +6 -0
- package/dist/solutions-components/p-994a2cd8.entry.js +11 -0
- package/dist/solutions-components/p-998940b9.js +6 -0
- package/dist/solutions-components/p-9b84f526.entry.js +11 -0
- package/dist/solutions-components/p-9b9962f8.entry.js +6 -0
- package/dist/solutions-components/p-9bcbc1cc.js +21 -0
- package/dist/solutions-components/p-9bcbc357.js +11 -0
- package/dist/solutions-components/p-9c0818c4.js +6 -0
- package/dist/solutions-components/p-9e92fd19.entry.js +6 -0
- package/dist/solutions-components/p-9f742819.entry.js +11 -0
- package/dist/solutions-components/p-a01d0e29.entry.js +11 -0
- package/dist/solutions-components/p-a05de942.entry.js +11 -0
- package/dist/solutions-components/p-a0aca601.js +6 -0
- package/dist/solutions-components/p-a14fb8df.entry.js +11 -0
- package/dist/solutions-components/p-a15b73bb.entry.js +11 -0
- package/dist/solutions-components/p-a230b270.js +16 -0
- package/dist/solutions-components/p-a43e4f84.entry.js +11 -0
- package/dist/solutions-components/p-a44f1e85.entry.js +6 -0
- package/dist/solutions-components/p-a46dbf0a.js +6 -0
- package/dist/solutions-components/p-a4755ea8.entry.js +6 -0
- package/dist/solutions-components/p-a79147a2.entry.js +11 -0
- package/dist/solutions-components/p-a7957f1b.entry.js +11 -0
- package/dist/solutions-components/p-a7a06d6a.js +6 -0
- package/dist/solutions-components/p-ab6a2ecf.entry.js +6 -0
- package/dist/solutions-components/p-abab359e.entry.js +6 -0
- package/dist/solutions-components/p-abea8ef5.js +6 -0
- package/dist/solutions-components/p-ad5f374e.entry.js +6 -0
- package/dist/solutions-components/p-ad83172d.entry.js +11 -0
- package/dist/solutions-components/p-ada368a5.entry.js +6 -0
- package/dist/solutions-components/p-afd9d486.entry.js +6 -0
- package/dist/solutions-components/p-b030a151.js +61 -0
- package/dist/solutions-components/p-b1abf793.js +6 -0
- package/dist/solutions-components/p-b2a9bae3.entry.js +6 -0
- package/dist/solutions-components/p-b5f2bb07.entry.js +11 -0
- package/dist/solutions-components/p-b71c0cdc.js +6 -0
- package/dist/solutions-components/p-b7d448d5.entry.js +11 -0
- package/dist/solutions-components/p-b858abf3.js +6 -0
- package/dist/solutions-components/p-b8d4573d.entry.js +12 -0
- package/dist/solutions-components/p-b8feb6b8.entry.js +22 -0
- package/dist/solutions-components/p-b959efd3.js +16 -0
- package/dist/solutions-components/p-ba14f8c3.js +6 -0
- package/dist/solutions-components/p-bab0aa05.js +6 -0
- package/dist/solutions-components/p-bacb4e2f.entry.js +6 -0
- package/dist/solutions-components/p-bc6a9b9c.js +6 -0
- package/dist/solutions-components/p-bd3f4aa6.entry.js +6 -0
- package/dist/solutions-components/p-bff9e04f.entry.js +11 -0
- package/dist/solutions-components/p-c279b9ed.js +6 -0
- package/dist/solutions-components/p-c50a4911.js +11 -0
- package/dist/solutions-components/p-c853e879.js +11 -0
- package/dist/solutions-components/p-c8cf222b.entry.js +6 -0
- package/dist/solutions-components/p-c96eb2db.js +6 -0
- package/dist/solutions-components/p-cbd48f1f.entry.js +6 -0
- package/dist/solutions-components/p-cdb87252.entry.js +17 -0
- package/dist/solutions-components/p-cfe7292c.js +6 -0
- package/dist/solutions-components/p-d1b034ac.js +6 -0
- package/dist/solutions-components/p-d2ccbb6c.js +6 -0
- package/dist/solutions-components/p-d438df5d.js +6 -0
- package/dist/solutions-components/p-d48def3a.js +6 -0
- package/dist/solutions-components/p-d6050d57.js +489 -0
- package/dist/solutions-components/p-d65116b6.entry.js +6 -0
- package/dist/solutions-components/p-d68dc436.js +6 -0
- package/dist/solutions-components/p-d7d895df.entry.js +11 -0
- package/dist/solutions-components/p-d89fff3a.js +49 -0
- package/dist/solutions-components/p-d918ec36.js +6 -0
- package/dist/solutions-components/p-d9d9d7d1.entry.js +6 -0
- package/dist/solutions-components/p-da205222.js +11 -0
- package/dist/solutions-components/p-dfb33c83.entry.js +6 -0
- package/dist/solutions-components/p-e06f5cfe.js +6 -0
- package/dist/solutions-components/p-e0a11013.js +6 -0
- package/dist/solutions-components/p-e0e5d270.entry.js +11 -0
- package/dist/solutions-components/p-e2ea23c7.js +11 -0
- package/dist/solutions-components/p-e6010f64.entry.js +11 -0
- package/dist/solutions-components/p-e79106f9.js +11 -0
- package/dist/solutions-components/p-e91175f6.entry.js +11 -0
- package/dist/solutions-components/p-e95eb58c.entry.js +6 -0
- package/dist/solutions-components/p-e987323a.entry.js +16 -0
- package/dist/solutions-components/p-ed254530.entry.js +6 -0
- package/dist/solutions-components/p-edbe4059.js +16 -0
- package/dist/solutions-components/p-f3110ead.js +11 -0
- package/dist/solutions-components/p-f4742b64.entry.js +6 -0
- package/dist/solutions-components/p-f66f6617.entry.js +11 -0
- package/dist/solutions-components/p-f98b014f.entry.js +11 -0
- package/dist/solutions-components/p-f9ff6c29.entry.js +6 -0
- package/dist/solutions-components/p-fbb9a303.js +6 -0
- package/dist/solutions-components/p-ff172121.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/layer-table/layer-table.d.ts +9 -4
- package/dist/types/components.d.ts +0 -5
- package/dist/types/preact.d.ts +88 -2
- package/package.json +6 -2
- package/dist/cjs/ExpandToggle-590d91ec.js +0 -118
- package/dist/cjs/FloatingArrow-51090818.js +0 -50
- package/dist/cjs/Heading-09046b7d.js +0 -25
- package/dist/cjs/ar-840ce104.js +0 -104
- package/dist/cjs/bg-fc50248c.js +0 -82
- package/dist/cjs/bs-70a07294.js +0 -51
- package/dist/cjs/buffer-tools_4.cjs.entry.js +0 -1531
- package/dist/cjs/ca-b8b7db3a.js +0 -71
- package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -168
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +0 -633
- package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -457
- package/dist/cjs/calcite-filter_3.cjs.entry.js +0 -388
- package/dist/cjs/calcite-graph.cjs.entry.js +0 -226
- package/dist/cjs/calcite-input-time-picker-28bfb374.js +0 -1849
- package/dist/cjs/calcite-notice_2.cjs.entry.js +0 -590
- package/dist/cjs/calcite-panel_2.cjs.entry.js +0 -411
- package/dist/cjs/common-3ef5d746.js +0 -37
- package/dist/cjs/conditionalSlot-7231dd93.js +0 -63
- package/dist/cjs/cs-d6262e24.js +0 -147
- package/dist/cjs/da-dd9a7705.js +0 -66
- package/dist/cjs/de-9f5b8820.js +0 -91
- package/dist/cjs/de-at-ed69f6a8.js +0 -90
- package/dist/cjs/de-ch-ebbe1a80.js +0 -90
- package/dist/cjs/downloadUtils-99067c29.js +0 -3123
- package/dist/cjs/el-a9188f61.js +0 -66
- package/dist/cjs/en-au-589b4eee.js +0 -66
- package/dist/cjs/en-ca-c2230b11.js +0 -65
- package/dist/cjs/en-gb-1f3a4bdd.js +0 -69
- package/dist/cjs/es-8270fcb2.js +0 -66
- package/dist/cjs/es-mx-fc3d2e8d.js +0 -65
- package/dist/cjs/et-48adb96e.js +0 -92
- package/dist/cjs/fi-47082a4a.js +0 -115
- package/dist/cjs/form-d72f69ef.js +0 -260
- package/dist/cjs/fr-ch-8f6be683.js +0 -66
- package/dist/cjs/fr-d5b30711.js +0 -68
- package/dist/cjs/he-5d6981f0.js +0 -105
- package/dist/cjs/hi-c8118b2b.js +0 -65
- package/dist/cjs/hr-5818f9ba.js +0 -80
- package/dist/cjs/hu-bc3f3f6d.js +0 -88
- package/dist/cjs/id-b5bf2386.js +0 -66
- package/dist/cjs/index-4f9f29fb.js +0 -201
- package/dist/cjs/index-7f076fd8.js +0 -2071
- package/dist/cjs/index.es-dec08d23.js +0 -10810
- package/dist/cjs/it-c256d30d.js +0 -66
- package/dist/cjs/it-ch-b395918d.js +0 -66
- package/dist/cjs/ja-82ffd2ce.js +0 -72
- package/dist/cjs/ko-4d303cb9.js +0 -72
- package/dist/cjs/loadModules-f4d81906.js +0 -30
- package/dist/cjs/loadable-2facb46d.js +0 -94
- package/dist/cjs/locale-57fa4b01.js +0 -416
- package/dist/cjs/lt-0b973f03.js +0 -97
- package/dist/cjs/lv-a7a5b9cd.js +0 -66
- package/dist/cjs/mk-83081689.js +0 -66
- package/dist/cjs/nb-556279b3.js +0 -67
- package/dist/cjs/nl-d32372d3.js +0 -67
- package/dist/cjs/openCloseComponent-9fe17555.js +0 -92
- package/dist/cjs/pl-4cfcbb3f.js +0 -114
- package/dist/cjs/pt-7614cb7b.js +0 -67
- package/dist/cjs/pt-br-ada28353.js +0 -65
- package/dist/cjs/publicNotificationStore-3463dc42.js +0 -47
- package/dist/cjs/restHelpersGet-c94617cf.js +0 -971
- package/dist/cjs/ro-00f7d69a.js +0 -66
- package/dist/cjs/ru-9020ec13.js +0 -126
- package/dist/cjs/shared-list-render-fd947d6c.js +0 -364
- package/dist/cjs/sk-4794fc4d.js +0 -148
- package/dist/cjs/sl-4f2b082d.js +0 -168
- package/dist/cjs/solution-resource-f9e3b289.js +0 -1839
- package/dist/cjs/solution-store-604f36b0.js +0 -1343
- package/dist/cjs/sr-86f4b55a.js +0 -101
- package/dist/cjs/sv-496c5934.js +0 -71
- package/dist/cjs/t9n-c3ceb777.js +0 -100
- package/dist/cjs/th-a614ee69.js +0 -65
- package/dist/cjs/tr-3f7e515e.js +0 -66
- package/dist/cjs/uk-0f7ba988.js +0 -104
- package/dist/cjs/utils-8b6142cb.js +0 -64
- package/dist/cjs/vi-4d5035bb.js +0 -70
- package/dist/cjs/zh-cn-b62e5470.js +0 -94
- package/dist/cjs/zh-hk-8869565e.js +0 -71
- package/dist/cjs/zh-tw-22117181.js +0 -92
- package/dist/esm/ExpandToggle-d7406f36.js +0 -110
- package/dist/esm/FloatingArrow-bf1b95bc.js +0 -48
- package/dist/esm/Heading-43bad629.js +0 -22
- package/dist/esm/ar-578388ab.js +0 -102
- package/dist/esm/bg-a1ce2f5e.js +0 -80
- package/dist/esm/bs-33d8c483.js +0 -49
- package/dist/esm/buffer-tools_4.entry.js +0 -1524
- package/dist/esm/ca-9d68dd8a.js +0 -69
- package/dist/esm/calcite-action-pad.entry.js +0 -164
- package/dist/esm/calcite-date-picker-day_3.entry.js +0 -627
- package/dist/esm/calcite-date-picker.entry.js +0 -453
- package/dist/esm/calcite-filter_3.entry.js +0 -382
- package/dist/esm/calcite-graph.entry.js +0 -222
- package/dist/esm/calcite-input-time-picker-c2833a3d.js +0 -1846
- package/dist/esm/calcite-notice_2.entry.js +0 -585
- package/dist/esm/calcite-panel_2.entry.js +0 -406
- package/dist/esm/common-5b421473.js +0 -35
- package/dist/esm/conditionalSlot-c0cf1f40.js +0 -60
- package/dist/esm/cs-dd703acb.js +0 -145
- package/dist/esm/da-2df01be0.js +0 -64
- package/dist/esm/date-4e28a3f5.js +0 -245
- package/dist/esm/de-472989ff.js +0 -89
- package/dist/esm/de-at-24c74c6f.js +0 -88
- package/dist/esm/de-ch-acdfbde0.js +0 -88
- package/dist/esm/downloadUtils-fc4259dd.js +0 -3117
- package/dist/esm/el-7a7658b2.js +0 -64
- package/dist/esm/en-au-a6621c75.js +0 -64
- package/dist/esm/en-ca-4e0a3d3b.js +0 -63
- package/dist/esm/en-gb-20f35c78.js +0 -67
- package/dist/esm/es-e2f4615a.js +0 -64
- package/dist/esm/es-mx-4257acd9.js +0 -63
- package/dist/esm/et-76f7bebb.js +0 -90
- package/dist/esm/fi-2448b641.js +0 -113
- package/dist/esm/form-cd3cad39.js +0 -252
- package/dist/esm/fr-a1950ce0.js +0 -66
- package/dist/esm/fr-ch-af2f108d.js +0 -64
- package/dist/esm/he-0ca759a1.js +0 -103
- package/dist/esm/hi-a61da82b.js +0 -63
- package/dist/esm/hr-34475682.js +0 -78
- package/dist/esm/hu-c9276c51.js +0 -86
- package/dist/esm/id-9eacb39e.js +0 -64
- package/dist/esm/index-3d4861da.js +0 -2037
- package/dist/esm/index-81456206.js +0 -199
- package/dist/esm/index.es-641d9f77.js +0 -10724
- package/dist/esm/it-55a02958.js +0 -64
- package/dist/esm/it-ch-14baf1fb.js +0 -64
- package/dist/esm/ja-7be4e315.js +0 -70
- package/dist/esm/ko-c4a3aeee.js +0 -70
- package/dist/esm/loadModules-4d9c5c9e.js +0 -28
- package/dist/esm/loadable-8dcddf78.js +0 -89
- package/dist/esm/locale-28107221.js +0 -412
- package/dist/esm/locale-71561992.js +0 -594
- package/dist/esm/lt-7762670b.js +0 -95
- package/dist/esm/lv-877e6a41.js +0 -64
- package/dist/esm/mk-ff0ae17f.js +0 -64
- package/dist/esm/nb-eb6b7a98.js +0 -65
- package/dist/esm/nl-26537297.js +0 -65
- package/dist/esm/openCloseComponent-980e90ae.js +0 -90
- package/dist/esm/pl-3ee1f545.js +0 -112
- package/dist/esm/pt-2dc3b792.js +0 -65
- package/dist/esm/pt-br-3ea2d13e.js +0 -63
- package/dist/esm/publicNotificationStore-16dff6da.js +0 -45
- package/dist/esm/restHelpersGet-a5ec2192.js +0 -958
- package/dist/esm/ro-b6f30eae.js +0 -64
- package/dist/esm/ru-77b04635.js +0 -124
- package/dist/esm/shared-list-render-ec482b94.js +0 -342
- package/dist/esm/sk-722e2621.js +0 -146
- package/dist/esm/sl-82c5462f.js +0 -166
- package/dist/esm/solution-resource-be35d35b.js +0 -1836
- package/dist/esm/solution-store-0fb525c5.js +0 -1341
- package/dist/esm/sr-db930513.js +0 -99
- package/dist/esm/sv-a4b9b3cc.js +0 -69
- package/dist/esm/t9n-cd58e9e1.js +0 -95
- package/dist/esm/th-0393996b.js +0 -63
- package/dist/esm/time-c4285372.js +0 -274
- package/dist/esm/tr-f3409dc8.js +0 -64
- package/dist/esm/uk-76eb5450.js +0 -102
- package/dist/esm/utils-b62d9d1d.js +0 -61
- package/dist/esm/vi-6217d42c.js +0 -68
- package/dist/esm/zh-cn-f8c92419.js +0 -92
- package/dist/esm/zh-hk-f51d7c64.js +0 -69
- package/dist/esm/zh-tw-030179bf.js +0 -90
- package/dist/solutions-components/p-00555f5f.js +0 -6
- package/dist/solutions-components/p-00b48e24.entry.js +0 -11
- package/dist/solutions-components/p-0415e505.entry.js +0 -6
- package/dist/solutions-components/p-04aded86.entry.js +0 -6
- package/dist/solutions-components/p-056ad62d.entry.js +0 -17
- package/dist/solutions-components/p-05a70865.entry.js +0 -6
- package/dist/solutions-components/p-060ed70b.entry.js +0 -6
- package/dist/solutions-components/p-0805f66a.js +0 -6
- package/dist/solutions-components/p-088e0e9b.entry.js +0 -47
- package/dist/solutions-components/p-0b6d5dae.entry.js +0 -11
- package/dist/solutions-components/p-0e4c70dc.entry.js +0 -6
- package/dist/solutions-components/p-0fb513ae.js +0 -11
- package/dist/solutions-components/p-0ffdd068.entry.js +0 -11
- package/dist/solutions-components/p-10533799.js +0 -21
- package/dist/solutions-components/p-10f750ca.entry.js +0 -17
- package/dist/solutions-components/p-111cb6f0.js +0 -6
- package/dist/solutions-components/p-11742557.js +0 -6
- package/dist/solutions-components/p-1434f7e2.entry.js +0 -11
- package/dist/solutions-components/p-153f5e80.entry.js +0 -12
- package/dist/solutions-components/p-17acc3e8.entry.js +0 -11
- package/dist/solutions-components/p-1b3e4ca7.js +0 -11
- package/dist/solutions-components/p-205487ff.entry.js +0 -11
- package/dist/solutions-components/p-20da9024.js +0 -6
- package/dist/solutions-components/p-23a5417c.entry.js +0 -18
- package/dist/solutions-components/p-23e699cc.entry.js +0 -6
- package/dist/solutions-components/p-261297c5.entry.js +0 -16
- package/dist/solutions-components/p-266612c2.js +0 -11
- package/dist/solutions-components/p-2679f63d.entry.js +0 -11
- package/dist/solutions-components/p-27d4c344.entry.js +0 -11
- package/dist/solutions-components/p-28357f66.entry.js +0 -6
- package/dist/solutions-components/p-29013fa3.js +0 -489
- package/dist/solutions-components/p-294a47c5.js +0 -11
- package/dist/solutions-components/p-2a4cccfa.js +0 -21
- package/dist/solutions-components/p-2c135b9a.entry.js +0 -6
- package/dist/solutions-components/p-2c7d71af.entry.js +0 -6
- package/dist/solutions-components/p-2d062258.js +0 -16
- package/dist/solutions-components/p-2d70d05e.entry.js +0 -6
- package/dist/solutions-components/p-2db39368.entry.js +0 -12
- package/dist/solutions-components/p-2dbfab3d.entry.js +0 -11
- package/dist/solutions-components/p-303992bb.entry.js +0 -11
- package/dist/solutions-components/p-31843189.entry.js +0 -6
- package/dist/solutions-components/p-31d5db9f.entry.js +0 -6
- package/dist/solutions-components/p-32e7b5b1.js +0 -6
- package/dist/solutions-components/p-337249b0.entry.js +0 -17
- package/dist/solutions-components/p-379c5a0b.entry.js +0 -6
- package/dist/solutions-components/p-395ef66f.entry.js +0 -17
- package/dist/solutions-components/p-3b93c66d.entry.js +0 -18
- package/dist/solutions-components/p-3c62c3b0.js +0 -6
- package/dist/solutions-components/p-42e128dd.entry.js +0 -11
- package/dist/solutions-components/p-439ecc25.js +0 -6
- package/dist/solutions-components/p-454fb30f.js +0 -6
- package/dist/solutions-components/p-457f08b2.entry.js +0 -6
- package/dist/solutions-components/p-45a1d711.js +0 -6
- package/dist/solutions-components/p-469b499f.entry.js +0 -6
- package/dist/solutions-components/p-481b913d.js +0 -6
- package/dist/solutions-components/p-4847dd10.entry.js +0 -6
- package/dist/solutions-components/p-48bb468e.entry.js +0 -11
- package/dist/solutions-components/p-4b96bb65.js +0 -6
- package/dist/solutions-components/p-4c0b96e2.entry.js +0 -11
- package/dist/solutions-components/p-4cc0e558.entry.js +0 -6
- package/dist/solutions-components/p-4ecbb9fd.entry.js +0 -11
- package/dist/solutions-components/p-54a84333.entry.js +0 -11
- package/dist/solutions-components/p-57912631.js +0 -6
- package/dist/solutions-components/p-57c36b35.js +0 -6
- package/dist/solutions-components/p-5856dc4f.js +0 -66
- package/dist/solutions-components/p-5a53709e.js +0 -6
- package/dist/solutions-components/p-5c4ac23f.entry.js +0 -6
- package/dist/solutions-components/p-5d9cc33f.entry.js +0 -21
- package/dist/solutions-components/p-5fa70b85.js +0 -7
- package/dist/solutions-components/p-63d26de4.js +0 -6
- package/dist/solutions-components/p-646ba6d2.entry.js +0 -11
- package/dist/solutions-components/p-655c3005.js +0 -6
- package/dist/solutions-components/p-680bc22f.entry.js +0 -6
- package/dist/solutions-components/p-68df6af9.entry.js +0 -6
- package/dist/solutions-components/p-693f7356.js +0 -6
- package/dist/solutions-components/p-6a2664e3.entry.js +0 -11
- package/dist/solutions-components/p-6a62f337.entry.js +0 -11
- package/dist/solutions-components/p-6ac5e954.js +0 -11
- package/dist/solutions-components/p-6ae0366e.js +0 -6
- package/dist/solutions-components/p-6b5ac9cc.js +0 -6
- package/dist/solutions-components/p-6e38395f.js +0 -6
- package/dist/solutions-components/p-6ed3b2fc.entry.js +0 -6
- package/dist/solutions-components/p-70567e13.js +0 -6
- package/dist/solutions-components/p-70f5b93f.entry.js +0 -6
- package/dist/solutions-components/p-72df03eb.entry.js +0 -11
- package/dist/solutions-components/p-730308be.js +0 -6
- package/dist/solutions-components/p-7fc1adbe.entry.js +0 -11
- package/dist/solutions-components/p-82f11c81.entry.js +0 -11
- package/dist/solutions-components/p-8386418f.entry.js +0 -11
- package/dist/solutions-components/p-83e6cfde.entry.js +0 -6
- package/dist/solutions-components/p-8476cecd.entry.js +0 -28
- package/dist/solutions-components/p-8480063f.entry.js +0 -6
- package/dist/solutions-components/p-84b840a1.js +0 -6
- package/dist/solutions-components/p-855f66d0.js +0 -11
- package/dist/solutions-components/p-861f5f1e.entry.js +0 -11
- package/dist/solutions-components/p-8735a284.js +0 -6
- package/dist/solutions-components/p-87c0e774.entry.js +0 -11
- package/dist/solutions-components/p-896124b8.entry.js +0 -11
- package/dist/solutions-components/p-89f41c66.entry.js +0 -6
- package/dist/solutions-components/p-8a438724.entry.js +0 -11
- package/dist/solutions-components/p-8a5dab43.entry.js +0 -6
- package/dist/solutions-components/p-8ae27c40.js +0 -6
- package/dist/solutions-components/p-8db84b94.entry.js +0 -11
- package/dist/solutions-components/p-8dc780a7.entry.js +0 -11
- package/dist/solutions-components/p-8f862c72.js +0 -16
- package/dist/solutions-components/p-902f9da4.entry.js +0 -11
- package/dist/solutions-components/p-91370f88.js +0 -6
- package/dist/solutions-components/p-938575f2.js +0 -21
- package/dist/solutions-components/p-938ab9ca.entry.js +0 -6
- package/dist/solutions-components/p-9551fb38.entry.js +0 -6
- package/dist/solutions-components/p-95cde393.js +0 -11
- package/dist/solutions-components/p-96fbe1cc.entry.js +0 -11
- package/dist/solutions-components/p-98d8c605.entry.js +0 -11
- package/dist/solutions-components/p-9ef41c63.entry.js +0 -11
- package/dist/solutions-components/p-9f3cda4a.js +0 -6
- package/dist/solutions-components/p-a0f8fbc3.entry.js +0 -6
- package/dist/solutions-components/p-a3643c99.js +0 -6
- package/dist/solutions-components/p-a38330de.entry.js +0 -11
- package/dist/solutions-components/p-a642b88b.js +0 -6
- package/dist/solutions-components/p-a8b42091.entry.js +0 -11
- package/dist/solutions-components/p-aa340bbc.js +0 -6
- package/dist/solutions-components/p-aaae349b.js +0 -6
- package/dist/solutions-components/p-abe371c4.js +0 -6
- package/dist/solutions-components/p-ac34f4d3.entry.js +0 -11
- package/dist/solutions-components/p-aef47d8d.js +0 -11
- package/dist/solutions-components/p-b02e167a.entry.js +0 -6
- package/dist/solutions-components/p-b40040aa.js +0 -6
- package/dist/solutions-components/p-b44395d5.entry.js +0 -11
- package/dist/solutions-components/p-b536dee1.entry.js +0 -11
- package/dist/solutions-components/p-b6e54660.entry.js +0 -29
- package/dist/solutions-components/p-b71fa0ac.entry.js +0 -6
- package/dist/solutions-components/p-b7c695bf.entry.js +0 -11
- package/dist/solutions-components/p-b7e0263b.entry.js +0 -11
- package/dist/solutions-components/p-b7e86f80.entry.js +0 -11
- package/dist/solutions-components/p-ba44f20a.js +0 -6
- package/dist/solutions-components/p-bb62bb27.js +0 -11
- package/dist/solutions-components/p-bc63c516.js +0 -6
- package/dist/solutions-components/p-bc6b53c9.entry.js +0 -17
- package/dist/solutions-components/p-bda0389f.js +0 -6
- package/dist/solutions-components/p-bea24407.entry.js +0 -17
- package/dist/solutions-components/p-bf97ed97.js +0 -6
- package/dist/solutions-components/p-c006e714.entry.js +0 -6
- package/dist/solutions-components/p-c2833d75.js +0 -6
- package/dist/solutions-components/p-c341666a.js +0 -6
- package/dist/solutions-components/p-c5bca92c.entry.js +0 -6
- package/dist/solutions-components/p-c7184511.js +0 -6
- package/dist/solutions-components/p-c72af4fa.js +0 -61
- package/dist/solutions-components/p-c82ff887.js +0 -11
- package/dist/solutions-components/p-c887d89c.js +0 -6
- package/dist/solutions-components/p-c8d122b9.js +0 -6
- package/dist/solutions-components/p-ca539743.entry.js +0 -6
- package/dist/solutions-components/p-cb062857.entry.js +0 -6
- package/dist/solutions-components/p-d704e6f9.js +0 -6
- package/dist/solutions-components/p-d8333d60.entry.js +0 -11
- package/dist/solutions-components/p-d84fd29b.js +0 -6
- package/dist/solutions-components/p-d90151c5.js +0 -6
- package/dist/solutions-components/p-d9d50c7d.js +0 -6
- package/dist/solutions-components/p-dc01676d.js +0 -6
- package/dist/solutions-components/p-df9a5059.js +0 -11
- package/dist/solutions-components/p-e44158b8.js +0 -145
- package/dist/solutions-components/p-e698c901.entry.js +0 -6
- package/dist/solutions-components/p-e782c41c.entry.js +0 -36
- package/dist/solutions-components/p-e92df803.entry.js +0 -11
- package/dist/solutions-components/p-ea08017f.js +0 -6
- package/dist/solutions-components/p-f0b8d013.js +0 -11
- package/dist/solutions-components/p-f176afee.entry.js +0 -16
- package/dist/solutions-components/p-f588750f.js +0 -21
- package/dist/solutions-components/p-f6ff7906.entry.js +0 -11
- package/dist/solutions-components/p-f978e707.entry.js +0 -6
- package/dist/solutions-components/p-fa5f90d9.entry.js +0 -11
- package/dist/solutions-components/p-fcc68007.entry.js +0 -12
- package/dist/solutions-components/p-fe1dcd6d.entry.js +0 -11
- package/dist/solutions-components/p-ff0d7712.js +0 -44
- package/dist/solutions-components/p-ff507d35.js +0 -6
@@ -0,0 +1,6 @@
|
|
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
|
+
import{r as i,c as t,h as s,H as e,g as a}from"./p-78780f63.js";import{l}from"./p-48ff9cea.js";import{g as h,h as n,d as o,e as r,f as d,i as c,j as p,k as g}from"./p-b7e2c75b.js";import{c as b,e as u,f as v}from"./p-4af32c75.js";import{s as y}from"./p-8684a905.js";import{a as m,g as w}from"./p-6b943f52.js";import{d as f,a as S}from"./p-d6050d57.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-225c4ca4.js";import"./p-d89fff3a.js";import"./p-a230b270.js";import"./p-220ec0d1.js";const _=class{constructor(s){i(this,s),this.selectionSetChange=t(this,"selectionSetChange",7),this._selectedIds=[],this._selectionLabel="",this._graphics=[],this._featuresCollection={},this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.enabledLayerIds=[],this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.geometries=[],this.isUpdate=!1,this.layerViews=[],this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionSet=void 0,this.selectionLayerIds=[],this.selectLayerView=void 0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._numSelected=0,this._searchDistanceEnabled=!1,this._searchTerm=void 0,this._selectionLoading=!1,this._translations=void 0,this._useLayerFeaturesEnabled=!1}async watchGeometriesHandler(i,t){if(i!==t){const t=0===i.length;if(await this._clearResults(t,t),i.length>0)return this._highlightWithOIDsOrGeoms()}}async watchSearchConfigurationHandler(i,t){JSON.stringify(i)!==JSON.stringify(t)&&this._initSearchWidget()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||await this._updateLabel(),{id:this.isUpdate?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools.distance,download:!0,unit:this._bufferTools.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this._searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this._useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}searchConfigurationChangeChanged(i){this.searchConfiguration=i.detail}async distanceChanged(i){await this._distanceChanged(i.detail)}async unitChanged(i){i.detail.newValue!==i.detail.oldValue&&(this._unit=i.detail.newValue,await this._updateLabel())}async componentWillLoad(){await this._getTranslations(),await this._initModules()}async componentDidLoad(){await this._init(),await this._searchWidget.when((()=>{var i;this._searchWidget.allPlaceholder=(null===(i=this.searchConfiguration)||void 0===i?void 0:i.allPlaceholder)&&"find address or place"!==this.searchConfiguration.allPlaceholder.toLowerCase()?this.searchConfiguration.allPlaceholder:this._translations.placeholder}))}render(){return s(e,null,this._getMapLayerPicker(),s("div",{class:"border-bottom"}),s("div",{class:"padding-top-sides-1"},s("div",{class:"search-widget",ref:i=>{this._searchElement=i}}),s("div",{class:"padding-top-1"},s("map-draw-tools",{active:!0,editGraphicsEnabled:!this._useLayerFeaturesEnabled,graphics:this._graphics,mapView:this.mapView,onSketchGraphicsChange:i=>this._sketchGraphicsChanged(i),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,ref:i=>{this._drawTools=i}})),this._getBufferOptions(),this._getUseLayerFeaturesOptions(),this._getNumSelected()),s("div",{class:"border-bottom"}),this._getNameInput())}_getBufferOptions(){var i,t;const e=this._searchDistanceEnabled?"search-distance":"div-not-visible",a="number"==typeof(null===(i=this.selectionSet)||void 0===i?void 0:i.distance)?this.selectionSet.distance:this.defaultBufferDistance;return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.searchDistance,s("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"search-distance-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",referenceElement:"search-distance-icon"},s("span",{class:"tooltip-message"},this._translations.useSearchDistanceTootip)),s("calcite-switch",{checked:this._searchDistanceEnabled,onCalciteSwitchChange:()=>this._searchDistanceEnabled=!this._searchDistanceEnabled})),s("div",{class:e},s("buffer-tools",{disabled:!this._searchDistanceEnabled,distance:a,geometries:this.geometries,onBufferComplete:i=>this._bufferComplete(i),ref:i=>this._bufferTools=i,unit:(null===(t=this.selectionSet)||void 0===t?void 0:t.unit)||this.defaultBufferUnit})))}_getUseLayerFeaturesOptions(){const i=this._useLayerFeaturesEnabled?"div-visible":"div-not-visible";return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.useLayerFeatures,s("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"use-layer-features-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",referenceElement:"use-layer-features-icon"},s("span",{class:"tooltip-message"},this._translations.useLayerFeaturesTooltip)),s("calcite-switch",{checked:this._useLayerFeaturesEnabled,onCalciteSwitchChange:()=>{this._useLayerFeaturesEnabledChanged()}})),s("div",{class:i+" padding-top-1"},s("map-layer-picker",{enabledLayerIds:this.selectionLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},selectedIds:this.layerViews.map((i=>i.layer.id)),showTables:!1})))}_getNumSelected(){const i=m(this.el),t=i&&"en"===i?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return s("div",{class:"padding-top-1 padding-bottom-1",style:{"align-items":"end",display:"flex"}},this._selectionLoading?s("div",null,s("calcite-loader",{class:"info-blue",inline:!0,label:t,scale:"m",type:"indeterminate"})):s("calcite-icon",{class:"info-blue padding-end-1-2",icon:"feature-layer",scale:"s"}),s("calcite-input-message",{class:"info-blue",scale:"m"},this._selectionLoading?t:this.noResultText&&0===this._numSelected?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())))}_getNameInput(){return s("div",{class:"padding-sides-1 padding-top-1 "+(this.customLabelEnabled?"":"display-none")},s("calcite-label",{class:"font-bold"},this._translations.listName,s("calcite-input",{onInput:()=>{this._selectionLabel=this._labelName.value},placeholder:this._translations.listNamePlaceholder,ref:i=>{this._labelName=i},value:this._selectionLabel||""})))}_getMapLayerPicker(){return s("div",{class:"display-flex padding-sides-1 padding-bottom-1"},s("calcite-label",{class:"font-bold width-full label-margin-0"},this._translations.inputLayer,s("map-layer-picker",{enabledLayerIds:this.enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>this._inputLayerSelectionChange(i),selectedIds:this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet?[this.selectionSet.layerView.layer.id]:[],showTables:!1})))}async _initModules(){const[i,t,s,e,a]=await l(["esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this.GraphicsLayer=i,this.Graphic=t,this.Search=s,this._geometryEngine=e,this.FeatureLayer=a}async _init(){this._initGraphicsLayer(),await this._initSelectionSet(),this._initSearchWidget()}async _initSelectionSet(){var i,t,s,e;this.selectionSet&&(this._searchTerm=null===(i=this.selectionSet.searchResult)||void 0===i?void 0:i.name,this._searchResult=this.selectionSet.searchResult,this._selectLayers=this.selectionSet.selectLayers,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs,this._searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this._useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...(null===(t=this.selectionSet)||void 0===t?void 0:t.geometries)||[]],this._graphics=this.geometries.map((i=>new this.Graphic({geometry:i,symbol:"point"===i.type?this.sketchPointSymbol:"polyline"===i.type?this.sketchLineSymbol:this.sketchPolygonSymbol}))),this._selectionLabel=null===(s=this.selectionSet)||void 0===s?void 0:s.label,this._useLayerFeaturesEnabled||null===(e=this._drawTools)||void 0===e||e.updateGraphics(),await h(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}_initSearchWidget(){if(this.mapView&&this._searchElement){const i=this._getSearchConfig(this.searchConfiguration,this.mapView),t=Object.assign({view:this.mapView,container:this._searchElement,searchTerm:this._searchTerm},i);this._searchWidget=new this.Search(t),this._searchWidget.popupEnabled=!1,this._searchWidget.resultGraphicEnabled=!1,this._searchWidget.on("search-clear",(()=>{const i=this._searchClearLabel();this._clearResults(!1,i)})),this._searchWidget.on("select-result",(i=>{var t,s;if(i.result){this._searchResult=i.result;const e=(null===(s=null===(t=i.source)||void 0===t?void 0:t.layer)||void 0===s?void 0:s.id)&&i.source.layer.id===this.selectLayerView.layer.id,a=e?[i.result.feature.getObjectId()]:void 0;this._workflowType=b.SEARCH,this._updateLabel();const l=[i.result.feature];this._updateSelection(l,e,a),this._drawTools.graphics=l,this._searchWidget.resultGraphic.visible=!1}else{const i=this._searchClearLabel();this._clearResults(!1,i)}}))}}_searchClearLabel(){var i;return(null===(i=this._searchResult)||void 0===i?void 0:i.name)&&this._labelName.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(i,t){const s=null==i?void 0:i.sources;return(null==s?void 0:s.length)>0?(i.includeDefaultSources=!1,s.forEach((i=>{var s,e;if(i.hasOwnProperty("layer")){const a=i,l=null===(s=a.layer)||void 0===s?void 0:s.id,h=l?t.map.findLayerById(l):null,n=null===(e=null==a?void 0:a.layer)||void 0===e?void 0:e.url;h?a.layer=h:n&&(a.layer=new this.FeatureLayer(n))}})),null==s||s.forEach((i=>{if(i.hasOwnProperty("locator")){const t=i;"ArcGIS World Geocoding Service"===(null==t?void 0:t.name)&&(t.outFields=t.outFields||["Addr_type","Match_addr","StAddr","City"],t.singleLineFieldName="SingleLine"),t.url=t.url,delete t.url}}))):i=Object.assign(Object.assign({},i),{includeDefaultSources:!0}),i}_initGraphicsLayer(){const i=this._translations.bufferLayer,t=this.mapView.map.layers.findIndex((t=>t.title===i));if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else{this._bufferGraphicsLayer=new this.GraphicsLayer({title:i,listMode:"hide"}),y.managedLayers.push(i);const t=this.mapView.map.layers.findIndex((i=>i.title===this._translations.sketchLayer));t>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,t):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}async _sketchGraphicsChanged(i,t=!1){const s=i.detail.graphics;if(s.length>0&&s[0])if(t||(this._sketchGraphic=s[0]),this._workflowType=this._useLayerFeaturesEnabled?b.SELECT:b.SKETCH,this._workflowType===b.SKETCH&&this._drawTools.updateGraphics(),await this._updateLabel(),this._clearSearchWidget(),this._useLayerFeaturesEnabled&&!t){const i=Array.isArray(s)?s.map((i=>i.geometry)):this.geometries;await this._selectLayerFeatures(i[0])}else{const t=s.reduce(((i,t)=>{var s;return(null===(s=null==t?void 0:t.layer)||void 0===s?void 0:s.objectIdField)?i.push(t.attributes[t.layer.objectIdField]):t.getObjectId&&i.push(t.getObjectId()),i}),[]),e=i.detail.useOIDs&&t.length>0;this._updateSelection(s,e,t),e&&await this._highlightFeatures(t)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){var i;return(null===(i=this._skipGeomOIDs)||void 0===i?void 0:i.length)>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(i){y.removeHandles(),i.length>0&&y.highlightHandles.push(await n(i,this.selectLayerView,this.mapView)),this._numSelected=i.length,this.selectionSetChange.emit(i.length)}async _selectFeatures(i){this._selectionLoading=!0,this._selectedIds=await o(i,this.selectLayerView.layer),this._selectionLoading=!1,this._drawTools.graphics=this._graphics,await this._highlightFeatures(this._selectedIds)}async _bufferComplete(i){this._bufferGeometry=Array.isArray(i.detail)?i.detail[0]:i.detail;let t=this._bufferTools.distance,s=0;if(this._bufferGeometry){const i=new this.Graphic({geometry:this._bufferGeometry,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(i),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(i.geometry.extent),s=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:s})}_geomQuery(i){const t=r(i,this._geometryEngine);return this._selectFeatures(t)}async _clearResults(i=!0,t=!1){var s;this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName.value=""),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),i&&this._searchWidget&&this._clearSearchWidget(),y.removeHandles(),(null===(s=this._drawTools)||void 0===s?void 0:s.clear)&&(this._graphics=[],await this._drawTools.clear()),this.selectionSetChange.emit(this._selectedIds.length)}_clearSearchWidget(){this._searchWidget.clear(),this._searchResult=void 0}_updateSelection(i,t,s){this._selectedIds=t&&s?s:this._selectedIds,this._skipGeomOIDs=t?s:void 0,this.geometries=Array.isArray(i)?i.map((i=>i.geometry)):this.geometries,this._graphics=i}async _updateLabel(){var i,t;const s=this._selectionLabel.indexOf(this._translations.sketch)>-1,e=this._selectionLabel.indexOf(this._translations.select)>-1,a=this._selectionLabel.indexOf(null===(i=this._searchResult)||void 0===i?void 0:i.name)>-1,l=this._workflowType===b.SEARCH?null===(t=this._searchResult)||void 0===t?void 0:t.name:this._workflowType===b.SELECT?this._translations.select:this._translations.sketch,h=this._unit?this._unit:this._bufferTools.unit,n=await this._bufferTools.getTranslatedUnit(h),o=isNaN(this._distance)?this._bufferTools.distance:this._distance;this._selectionLabel=s||e||a||!this._selectionLabel?`${l} ${o} ${n}`:this._selectionLabel,this._labelName.value=this._selectionLabel}async _layerSelectionChange(i){if(Array.isArray(i.detail)&&i.detail.length>0){const t=i.detail.map((i=>d(this.mapView,i)));return Promise.all(t).then((i=>{this.layerViews=i,this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}))}}async _inputLayerSelectionChange(i){var t;const s=(null===(t=null==i?void 0:i.detail)||void 0===t?void 0:t.length)>0?i.detail[0]:"";this.selectLayerView&&s===this.selectLayerView.layer.id||(this.selectLayerView=await d(this.mapView,s),await this._updateLabel(),this._bufferGeometry?await this._selectFeatures([this._bufferGeometry]):await this._highlightWithOIDsOrGeoms())}async _distanceChanged(i){i.newValue!==i.oldValue&&(this._distance=i.newValue,await this._updateLabel())}async _selectLayerFeatures(i){this._selectionLoading=!0;const t=this.layerViews.map((t=>(this._featuresCollection[t.layer.id]=[],c(0,t.layer,i,this._featuresCollection))));return Promise.all(t).then((async i=>{this._selectionLoading=!1;let t=[];i.forEach((i=>{Object.keys(i).forEach((s=>{t=t.concat(i[s])}))}));let s=!1;t.forEach((i=>{var t;const e=i.geometry;i.symbol="point"===e.type?this.sketchPointSymbol:"polyline"===e.type?this.sketchLineSymbol:"polygon"===e.type?this.sketchPolygonSymbol:void 0,s=(null===(t=null==i?void 0:i.layer)||void 0===t?void 0:t.hasOwnProperty("objectIdField"))||i.hasOwnProperty("getObjectId")}));const e=this.layerViews[0].layer.title===this.selectLayerView.layer.title&&s;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:e}},!0)}))}_useLayerFeaturesEnabledChanged(){this._useLayerFeaturesEnabled=!this._useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}async _getTranslations(){const i=await w(this.el);this._translations=i[0]}get el(){return a(this)}static get watchers(){return{geometries:["watchGeometriesHandler"],searchConfiguration:["watchSearchConfigurationHandler"]}}};_.style=':host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-ui-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:"1rem" !important}.end-border{border-inline-end:1px solid var(--calcite-ui-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:0.5rem}.icon{--calcite-ui-icon-color:var(--calcite-ui-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}';const L=Object.freeze({__proto__:null,default:[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}]}),P=class{constructor(t){i(this,t),this.defaultNumLabelsPerPage=void 0,this.disabled=!1,this._translations=void 0}async downloadCSV(i,t,s,e=!0){return f(i,t,!0,s,e)}async downloadPDF(i,t,s=!1,e="",a=""){var l;return S(i,t,null===(l=this._labelInfoElement.selectedOption)||void 0===l?void 0:l.value,s,e,a)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return s(e,null,s("calcite-select",{disabled:this.disabled,label:"",ref:i=>{this._labelInfoElement=i}}))}componentDidLoad(){this._renderOptions()}async _initModules(){const[i]=await l(["esri/intl"]);this._intl=i}_getLabelSizeText(i){const t="‎"+i.descriptionPDF.labelWidthDisplay+" x "+i.descriptionPDF.labelHeightDisplay+"‏";return this._translations.pdfLabel.replace("{{n}}",i.descriptionPDF.labelsPerPageDisplay).replace("{{labelSize}}",t)}async _getTranslations(){const i=await w(this.el);this._translations=i[0]}_renderOptions(){(L.default||L).sort(((i,t)=>{const s=parseInt(i.descriptionPDF.labelsPerPageDisplay,10),e=parseInt(t.descriptionPDF.labelsPerPageDisplay,10);return s<e?-1:s>e?1:0})).forEach(((i,t)=>{const s=document.createElement("calcite-option");s.value=i,s.innerHTML=this._getLabelSizeText(i),this._labelInfoElement.appendChild(s),(this.defaultNumLabelsPerPage?parseInt(i.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:0===t)&&(s.selected=!0,this._labelInfoElement.selectedOption=s)}))}get el(){return a(this)}};P.style=":host{display:block}";const x=class{constructor(s){i(this,s),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.selectionSetsChanged=t(this,"selectionSetsChanged",7),this._addEnabled=!0,this._refineSets=[],this._enabledLayerIds=[],this._featuresCollection={},this.addresseeLayer=void 0,this.enabledLayerIds=[],this.mapView=void 0,this.selectionSets=[],this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._translations=void 0,this._selectionMode=u.ADD,this._refineLayer=void 0}async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){var i,t;return s(e,null,s("div",{class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},s("div",{class:"display-flex"},s("calcite-label",{class:"font-bold width-full label-margin-0"},s("div",{class:"display-flex"},this._translations.inputLayer,s("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"refine-input-layer",scale:"s"})),s("map-layer-picker",{enabledLayerIds:this._enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},ref:i=>{this._layerPicker=i},selectedIds:[this._refineLayer.layer.id],showTables:!1})),s("calcite-popover",{closable:!0,label:"",referenceElement:"refine-input-layer"},s("span",{class:"tooltip-message"},this._translations.inputLayerTip)))),s("div",{class:"padding-1"},s("div",{class:"padding-bottom-1"},s("calcite-segmented-control",{class:"w-100"},s("calcite-segmented-control-item",{checked:this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(u.ADD),value:u.ADD},s("span",{class:"font-weight-500"},this._translations.add)),s("calcite-segmented-control-item",{checked:!this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(u.REMOVE),value:u.REMOVE},s("span",{class:"font-weight-500"},this._translations.remove)))),s("div",null,s("map-draw-tools",{active:!0,drawMode:v.REFINE,mapView:this.mapView,onDrawRedo:()=>this._redo(),onDrawUndo:()=>this._undo(),onSketchGraphicsChange:i=>this._sketchGraphicsChanged(i),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,redoEnabled:(null===(i=this._refineSelectionSet)||void 0===i?void 0:i.redoStack.length)>0,ref:i=>{this._drawTools=i},undoEnabled:(null===(t=this._refineSelectionSet)||void 0===t?void 0:t.undoStack.length)>0})),s("br",null),s("calcite-list",{class:"list-border"},this._getRefineSelectionSetList())))}_layerSelectionChange(i){this._setRefineSet(i.detail[0])}_setSelectionMode(i){this._selectionMode=i}_sketchGraphicsChanged(i){var t;const s=null===(t=i.detail)||void 0===t?void 0:t.graphics[0].geometry;this._selectFeatures(s)}_getEnabledLayerIds(){return this.selectionSets.reduce(((i,t)=>{var s;const e=null===(s=null==t?void 0:t.layerView)||void 0===s?void 0:s.layer.id;return e&&i.indexOf(e)<0?i.push(e):t.workflowType===b.REFINE&&Object.keys(t.refineInfos).forEach((t=>{i.indexOf(t)<0&&i.push(t)})),i}),[])}async _setRefineSet(i){this.selectionSets.some((t=>{if(t.workflowType===b.REFINE)return this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(i)>-1}))||await this._initRefineSet(i,this._refineSelectionSet),this._refineLayer=this._refineSelectionSet.refineInfos[i].layerView}async _initRefineSet(i,t){const s={};s[i]={addIds:[],removeIds:[],layerView:await d(this.mapView,i)},t?t.refineInfos=Object.assign(Object.assign({},t.refineInfos),s):(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:0,download:!0,unit:"feet",label:"Refine",selectedIds:[],layerView:void 0,geometries:[],graphics:[],selectLayers:[],workflowType:b.REFINE,searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:s,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){const i=this._refineSelectionSet.undoStack.pop();this._updateIds(i.ids,i.mode===u.ADD?u.REMOVE:u.ADD,this._refineSelectionSet.redoStack,i.layerView)}_redo(){const i=this._refineSelectionSet.redoStack.pop();this._updateIds(i.ids,i.mode===u.ADD?u.REMOVE:u.ADD,this._refineSelectionSet.undoStack,i.layerView)}_getRefineSelectionSetList(){const i=this._getTotal(this.selectionSets);let t;this.selectionSets.some((i=>{if(i.workflowType===b.REFINE)return t=i,!0}));let e=0,a=0;return Object.keys(t.refineInfos).forEach((i=>{e+=t.refineInfos[i].addIds.length,a+=t.refineInfos[i].removeIds.length})),[s("calcite-list-item",{label:this._translations.featuresAdded.replace("{{n}}",e.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.featuresRemoved.replace("{{n}}",a.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.totalSelected.replace("{{n}}",i.toString()),"non-interactive":!0})]}_getTotal(i){const t=p(i);return Object.keys(t).reduce(((i,s)=>i+t[s].ids.length),0)}async _getTranslations(){const i=await w(this.el);this._translations=i[0]}async _selectFeatures(i){var t,s;this.selectionLoadingChange.emit(!0),this._featuresCollection[null===(t=this._refineLayer)||void 0===t?void 0:t.layer.id]=[];const e=await c(0,null===(s=this._refineLayer)||void 0===s?void 0:s.layer,i,this._featuresCollection);this.selectionLoadingChange.emit(!1);let a=[];Object.keys(e).forEach((i=>{var t;i===(null===(t=this._refineLayer)||void 0===t?void 0:t.layer.id)&&(a=a.concat(e[i]))}));const l=Array.isArray(a)?a.map((i=>{var t;return i.attributes[null===(t=null==i?void 0:i.layer)||void 0===t?void 0:t.objectIdField]})):[];await this._updateIds(l,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.clear()}async _highlightFeatures(){this._clearHighlight(),y.highlightHandles=await g(this.selectionSets)}_clearHighlight(){y.removeHandles()}async _updateIds(i,t,s,e){let a=!1;const l=this._refineSelectionSet.refineInfos,h=e.layer.id,n={};n[h]={addIds:[],removeIds:[],layerView:e};const o=Object.keys(l).indexOf(h)>-1?l[h]:n[h];if(t===u.ADD)o.addIds=[...new Set([...i,...o.addIds])],o.addIds.length>0&&s.push({ids:i,mode:t,layerView:e}),o.removeIds.length>0&&(o.removeIds=o.removeIds.filter((t=>i.indexOf(t)<0)));else{const l=this.selectionSets.reduce(((t,s)=>(i.forEach((i=>{s.workflowType!==b.REFINE?s.selectedIds.indexOf(i)>-1&&t.push(i):Object.keys(s.refineInfos).some((a=>{const l=s.refineInfos[a];if(l.layerView.layer.id===e.layer.id&&l.addIds.indexOf(i)>-1)return t.push(i),!0}))})),t)),[]);o.removeIds=[...new Set([...l,...o.removeIds])],o.addIds=o.addIds.filter((i=>l.indexOf(i)<0)),o.removeIds.length>0&&s.push({ids:l,mode:t,layerView:e}),this.selectionSets=this.selectionSets.reduce(((i,t)=>(t.workflowType!==b.REFINE&&t.layerView.layer.id===e.layer.id?(t.selectedIds=t.selectedIds.filter((i=>o.removeIds.indexOf(i)<0)),t.selectedIds.length>0?i.push(t):a=!0):i.push(t),i)),[])}this._refineSelectionSet.refineInfos[h]=o,this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}get el(){return a(this)}};x.style=':host{display:block}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-ui-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif;line-height:1.3em;background-color:var(--calcite-ui-foreground-1)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}*/ .esri-sketch__tool-section{border-right:1px solid rgba(110,110,110,.3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110,110,110,.3)}.display-flex{display:flex}.font-bold{font-weight:bold}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom:0}.padding-start-1-2{padding-inline-start:0.5rem}.font-weight-500{font-weight:500}.word-wrap-anywhere{word-wrap:anywhere}';export{_ as map_select_tools,P as pdf_download,x as refine_selection}
|
@@ -0,0 +1,17 @@
|
|
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
|
+
import{r as t,c as i,h as e,H as s,g as a,F as n}from"./p-78780f63.js";import{g as h,c as r,e as o,f as c,s as l,h as d,i as u,j as v,n as f,p,k as g,l as m}from"./p-e2ea23c7.js";import{c as b,s as x,a as D}from"./p-da205222.js";import{c as y,d as k,n as w,a as z}from"./p-b959efd3.js";import{c as C,d as A,s as j,u as I}from"./p-8e552755.js";import{g as M,a as P}from"./p-8b626490.js";import{c as S}from"./p-def6a0b3.js";import{i as O}from"./p-16b0d958.js";import{H}from"./p-9bcbc357.js";import{g as R}from"./p-4931ad5b.js";import"./p-ced50533.js";import"./p-b024d5a4.js";import"./p-69370d9c.js";
|
7
|
+
/*!
|
8
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
10
|
+
* v1.11.1-next.1
|
11
|
+
*/const L={dateStyle:"full"},W=class{constructor(e){t(this,e),this.calciteDatePickerChange=i(this,"calciteDatePickerChange",6),this.calciteDatePickerRangeChange=i(this,"calciteDatePickerRangeChange",6),this.keyDownHandler=t=>{"Escape"===t.key&&this.resetActiveDates()},this.monthHeaderSelectChange=t=>{const i=new Date(t.detail);this.range?("end"===this.activeRange?this.activeEndDate=i:this.activeStartDate=i,this.mostRecentRangeValue=i):this.activeDate=i},this.monthActiveDateChange=t=>{const i=new Date(t.detail);this.range?("end"===this.activeRange?this.activeEndDate=i:this.activeStartDate=i,this.mostRecentRangeValue=i):this.activeDate=i},this.monthHoverChange=t=>{if(!this.range)return void(this.hoverRange=void 0);const{valueAsDate:i}=this,e=Array.isArray(i)&&i[0],s=Array.isArray(i)&&i[1],a=new Date(t.detail);if(this.hoverRange={focused:this.activeRange||"start",start:e,end:s},this.proximitySelectionDisabled)s?this.hoverRange=void 0:a<e?this.hoverRange={focused:"start",start:a,end:e}:(this.hoverRange.end=a,this.hoverRange.focused="end");else if(s){const t=h(a,e),i=h(a,s);i>0?(this.hoverRange.end=a,this.hoverRange.focused="end"):t<0||t>i?(this.hoverRange.start=a,this.hoverRange.focused="start"):(this.hoverRange.end=a,this.hoverRange.focused="end")}else e&&(a<e?this.hoverRange={focused:"start",start:a,end:e}:(this.hoverRange.end=a,this.hoverRange.focused="end"));t.stopPropagation()},this.monthMouseOutChange=()=>{this.hoverRange&&(this.hoverRange=void 0)},this.resetActiveDates=()=>{const{valueAsDate:t}=this;!Array.isArray(t)&&t&&t!==this.activeDate&&(this.activeDate=new Date(t)),Array.isArray(t)&&(t[0]&&t[0]!==this.activeStartDate&&(this.activeStartDate=new Date(t[0])),t[1]&&t[1]!==this.activeEndDate&&(this.activeEndDate=new Date(t[1])))},this.monthDateChange=t=>{const i=new Date(t.detail),e=r(i);if(!this.range&&e===r(this.valueAsDate))return;if(!this.range)return this.value=e||"",this.valueAsDate=i||null,this.activeDate=i||null,void this.calciteDatePickerChange.emit();const s=this.getStartDate(),a=this.getEndDate();if(!s||!a&&i<s)s&&this.setEndDate(new Date(s)),"end"==this.activeRange?this.setEndDate(i):this.setStartDate(i);else if(a)if(this.proximitySelectionDisabled)this.setStartDate(i);else if(this.activeRange)"end"==this.activeRange?this.setEndDate(i):this.setStartDate(i);else{const t=h(i,s),e=h(i,a);0===e||t<0?this.setStartDate(i):0===t||e<0?this.setEndDate(i):t<e?this.setStartDate(i):this.setEndDate(i)}else this.setEndDate(i);this.calciteDatePickerChange.emit()},this.activeDate=void 0,this.activeRange=void 0,this.value=void 0,this.headingLevel=void 0,this.valueAsDate=void 0,this.minAsDate=void 0,this.maxAsDate=void 0,this.min=void 0,this.max=void 0,this.numberingSystem=void 0,this.scale="m",this.range=!1,this.proximitySelectionDisabled=!1,this.messageOverrides=void 0,this.messages=void 0,this.activeEndDate=void 0,this.activeStartDate=void 0,this.dateTimeFormat=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.endAsDate=void 0,this.hoverRange=void 0,this.localeData=void 0,this.mostRecentRangeValue=void 0,this.startAsDate=void 0}activeDateWatcher(t){"end"===this.activeRange&&(this.activeEndDate=t)}valueAsDateWatcher(t){if(this.range&&Array.isArray(t)){const{activeStartDate:i,activeEndDate:e}=this,s=t[0],a=t[1];this.activeStartDate=i!==s&&s,this.activeEndDate=e!==a&&a}else t&&t!==this.activeDate&&(this.activeDate=t)}onMinChanged(t){t&&(this.minAsDate=o(t))}onMaxChanged(t){t&&(this.maxAsDate=o(t))}onMessagesChange(){}async setFocus(){await b(this),this.el.focus()}async reset(){this.resetActiveDates(),this.mostRecentRangeValue=void 0}connectedCallback(){y(this),C(this),Array.isArray(this.value)?this.valueAsDate=M(this.value):this.value&&(this.valueAsDate=o(this.value)),this.min&&(this.minAsDate=o(this.min)),this.max&&(this.maxAsDate=o(this.max))}disconnectedCallback(){k(this),A(this)}async componentWillLoad(){x(this),await this.loadLocaleData(),this.onMinChanged(this.min),this.onMaxChanged(this.max),await j(this)}componentDidLoad(){D(this)}render(){var t;const i=c(this.range&&Array.isArray(this.valueAsDate)?this.valueAsDate[0]:this.valueAsDate,this.minAsDate,this.maxAsDate);let a=this.getActiveDate(i,this.minAsDate,this.maxAsDate);const n=this.range&&Array.isArray(this.valueAsDate)?c(this.valueAsDate[1],this.minAsDate,this.maxAsDate):null,h=this.getActiveEndDate(n,this.minAsDate,this.maxAsDate);return"end"!==this.activeRange&&("end"!==(null===(t=this.hoverRange)||void 0===t?void 0:t.focused)||this.proximitySelectionDisabled&&!n)||!h||(a=h),this.range&&this.mostRecentRangeValue&&(a=this.mostRecentRangeValue),e(s,{onBlur:this.resetActiveDates,onKeyDown:this.keyDownHandler},this.renderCalendar(a,this.range&&this.activeRange&&"start"===this.activeRange&&n||this.maxAsDate,this.range&&this.activeRange?"start"===this.activeRange?this.minAsDate:i||this.minAsDate:this.minAsDate,i,n))}effectiveLocaleChange(){I(this,this.effectiveLocale)}valueHandler(t){Array.isArray(t)?this.valueAsDate=M(t):t&&(this.valueAsDate=o(t))}async loadLocaleData(){w.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.effectiveLocale,useGrouping:!1},this.localeData=await P(this.effectiveLocale),this.dateTimeFormat=z(this.effectiveLocale,L)}renderCalendar(t,i,s,a,n){return this.localeData&&[e("calcite-date-picker-month-header",{activeDate:t,headingLevel:this.headingLevel||2,localeData:this.localeData,max:i,messages:this.messages,min:s,onCalciteInternalDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:"end"===this.activeRange?n:a||new Date}),e("calcite-date-picker-month",{activeDate:t,dateTimeFormat:this.dateTimeFormat,endDate:this.range?n:void 0,hoverRange:this.hoverRange,localeData:this.localeData,max:i,min:s,onCalciteInternalDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteInternalDatePickerHover:this.monthHoverChange,onCalciteInternalDatePickerMouseOut:this.monthMouseOutChange,onCalciteInternalDatePickerSelect:this.monthDateChange,scale:this.scale,selectedDate:"end"===this.activeRange?n:a,startDate:this.range?a:void 0})]}getEndDate(){return Array.isArray(this.valueAsDate)&&this.valueAsDate[1]||void 0}setEndDate(t){const i=this.getStartDate(),e=t?l(t):t;this.value=[r(i),r(t)],this.valueAsDate=[i,t],this.mostRecentRangeValue=e,this.calciteDatePickerRangeChange.emit(),this.activeEndDate=t||null}getStartDate(){return Array.isArray(this.valueAsDate)&&this.valueAsDate[0]}setStartDate(t){const i=this.getEndDate();this.value=[r(t),r(i)],this.valueAsDate=[t,i],this.mostRecentRangeValue=t,this.calciteDatePickerRangeChange.emit(),this.activeStartDate=t||null}getActiveDate(t,i,e){return c(this.activeDate,i,e)||t||c(new Date,i,e)}getActiveEndDate(t,i,e){return c(this.activeEndDate,i,e)||t||c(new Date,i,e)}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{activeDate:["activeDateWatcher"],valueAsDate:["valueAsDateWatcher"],min:["onMinChanged"],max:["onMaxChanged"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange","loadLocaleData"],value:["valueHandler"]}}};W.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:inline-block;inline-size:auto;overflow:visible;border-radius:0px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1);vertical-align:top}:host([scale=s]){inline-size:234px;min-inline-size:216px;max-inline-size:380px}:host([scale=m]){inline-size:304px;min-inline-size:272px;max-inline-size:480px}:host([scale=l]){inline-size:370px;min-inline-size:320px;max-inline-size:600px}:host([hidden]){display:none}[hidden]{display:none}";const Y=class{constructor(e){t(this,e),this.calciteInternalDatePickerSelect=i(this,"calciteInternalDatePickerSelect",6),this.calciteInternalDatePickerHover=i(this,"calciteInternalDatePickerHover",6),this.calciteInternalDatePickerActiveDateChange=i(this,"calciteInternalDatePickerActiveDateChange",6),this.calciteInternalDatePickerMouseOut=i(this,"calciteInternalDatePickerMouseOut",6),this.keyDownHandler=t=>{if(t.defaultPrevented)return;const i="rtl"===this.el.dir;switch(t.key){case"ArrowUp":t.preventDefault(),this.addDays(-7);break;case"ArrowRight":t.preventDefault(),this.addDays(i?-1:1);break;case"ArrowDown":t.preventDefault(),this.addDays(7);break;case"ArrowLeft":t.preventDefault(),this.addDays(i?1:-1);break;case"PageUp":t.preventDefault(),this.addMonths(-1);break;case"PageDown":t.preventDefault(),this.addMonths(1);break;case"Home":t.preventDefault(),this.activeDate.setDate(1),this.addDays();break;case"End":t.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays();break;case"Enter":case" ":t.preventDefault();break;case"Tab":this.activeFocus=!1}},this.disableActiveFocus=()=>{this.activeFocus=!1},this.dayHover=t=>{const i=t.target;i.disabled?this.calciteInternalDatePickerMouseOut.emit():this.calciteInternalDatePickerHover.emit(i.value),t.stopPropagation()},this.daySelect=t=>{this.calciteInternalDatePickerSelect.emit(t.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 t=this.activeDate.getMonth(),i=this.activeDate.getFullYear(),a=this.localeData.weekStart%7,{abbreviated:n,short:h,narrow:r}=this.localeData.days,o="s"===this.scale?r||h||n:h||n||r,c=[...o.slice(a,7),...o.slice(0,a)],l=this.getCurrentMonthDays(t,i),u=this.getPreviousMonthDays(t,i,a),v=this.getNextMonthDays(t,i,a);let f=0;const p=()=>f++%7,g=[...u.map((e=>({active:!1,day:e,dayInWeek:p(),date:new Date(i,t-1,e)}))),...l.map((e=>{const s=new Date(i,t,e);return{active:d(s,this.activeDate),currentMonth:!0,day:e,dayInWeek:p(),date:s,ref:!0}})),...v.map((e=>({active:!1,day:e,dayInWeek:p(),date:new Date(i,t+1,e)})))],m=[];for(let t=0;t<g.length;t+=7)m.push(g.slice(t,t+7));return e(s,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},e("div",{class:"calendar",role:"grid"},e("div",{class:"week-headers",role:"row"},c.map((t=>e("span",{class:"week-header",role:"columnheader"},t)))),m.map((t=>e("div",{class:"week-days",role:"row"},t.map((t=>this.renderDateDay(t))))))))}addMonths(t){const i=new Date(this.activeDate);i.setMonth(this.activeDate.getMonth()+t),this.calciteInternalDatePickerActiveDateChange.emit(c(i,this.min,this.max)),this.activeFocus=!0}addDays(t=0){const i=new Date(this.activeDate);i.setDate(this.activeDate.getDate()+t),this.calciteInternalDatePickerActiveDateChange.emit(c(i,this.min,this.max)),this.activeFocus=!0}getPreviousMonthDays(t,i,e){const s=new Date(i,t,0),a=s.getDate(),n=s.getDay(),h=[];if(n===(e+6)%7)return h;if(n===e)return[a];for(let t=(7+n-e)%7;t>=0;t--)h.push(a-t);return h}getCurrentMonthDays(t,i){const e=new Date(i,t+1,0).getDate(),s=[];for(let t=0;t<e;t++)s.push(t+1);return s}getNextMonthDays(t,i,e){const s=new Date(i,t+1,0).getDay(),a=[];if(s===(e+6)%7)return a;for(let t=0;t<(6-(s-e))%7;t++)a.push(t+1);return a}betweenSelectedRange(t){return!(!(this.startDate&&this.endDate&&t>this.startDate&&t<this.endDate)||this.isRangeHover(t))}isSelected(t){return!!(d(t,this.selectedDate)||this.startDate&&d(t,this.startDate)||this.endDate&&d(t,this.endDate))}isStartOfRange(t){return!(!this.startDate||d(this.startDate,this.endDate)||!d(this.startDate,t)||this.isEndOfRange(t))}isEndOfRange(t){return!!(this.endDate&&!d(this.startDate,this.endDate)&&d(this.endDate,t)||!this.endDate&&this.hoverRange&&d(this.startDate,this.hoverRange.end)&&d(t,this.hoverRange.end))}renderDateDay({active:t,currentMonth:i,date:s,day:a,dayInWeek:n,ref:h}){var r;const o=this.isFocusedOnStart(),c=this.isHoverInRange()||!this.endDate&&this.hoverRange&&d(null===(r=this.hoverRange)||void 0===r?void 0:r.end,this.startDate);return e("div",{class:"day",key:s.toDateString(),role:"gridcell"},e("calcite-date-picker-day",{active:t,class:{"hover--inside-range":this.startDate&&c,"hover--outside-range":this.startDate&&!c,"focused--start":o,"focused--end":!o},currentMonth:i,dateTimeFormat:this.dateTimeFormat,day:a,disabled:!u(s,this.min,this.max),endOfRange:this.isEndOfRange(s),highlighted:this.betweenSelectedRange(s),onCalciteDaySelect:this.daySelect,onCalciteInternalDayHover:this.dayHover,range:!!this.startDate&&!!this.endDate&&!d(this.startDate,this.endDate),rangeEdge:0===n?"start":6===n?"end":void 0,rangeHover:this.isRangeHover(s),scale:this.scale,selected:this.isSelected(s),startOfRange:this.isStartOfRange(s),value:s,ref:i=>{h&&t&&this.activeFocus&&(null==i||i.focus())}}))}isFocusedOnStart(){var t;return"start"===(null===(t=this.hoverRange)||void 0===t?void 0:t.focused)}isHoverInRange(){if(!this.hoverRange)return!1;const{start:t,end:i}=this.hoverRange;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||i<this.endDate)||this.isFocusedOnStart()&&this.startDate&&t>this.startDate)}isRangeHover(t){if(!this.hoverRange)return!1;const{start:i,end:e}=this.hoverRange,s=this.isFocusedOnStart(),a=this.isHoverInRange(),n=a&&(!s&&t>this.startDate&&(t<e||d(t,e))||s&&t<this.endDate&&(t>i||d(t,i))),h=!a&&(!s&&t>=this.endDate&&(t<e||d(t,e))||s&&(this.startDate&&t<this.startDate||this.endDate&&d(t,this.startDate))&&(i&&t>i||d(t,i)));return n||h}get el(){return a(this)}};Y.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%}.day calcite-date-picker-day{inline-size:100%}: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}";
|
12
|
+
/*!
|
13
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
14
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
15
|
+
* v1.11.1-next.1
|
16
|
+
*/
|
17
|
+
const E="chevron",N=class{constructor(e){t(this,e),this.calciteInternalDatePickerSelect=i(this,"calciteInternalDatePickerSelect",6),this.onYearKey=t=>{const i=this.parseCalendarYear(t.target.value);switch(t.key){case"ArrowDown":t.preventDefault(),this.setYear({localizedYear:i,offset:-1});break;case"ArrowUp":t.preventDefault(),this.setYear({localizedYear:i,offset:1})}},this.onYearChange=t=>{this.setYear({localizedYear:this.parseCalendarYear(t.target.value)})},this.onYearInput=t=>{this.setYear({localizedYear:this.parseCalendarYear(t.target.value),commit:!1})},this.prevMonthClick=t=>{this.handleArrowClick(t,this.prevMonthDate)},this.prevMonthKeydown=t=>{O(t.key)&&this.prevMonthClick(t)},this.nextMonthClick=t=>{this.handleArrowClick(t,this.nextMonthDate)},this.nextMonthKeydown=t=>{O(t.key)&&this.nextMonthClick(t)},this.handleArrowClick=(t,i)=>{t.preventDefault(),this.calciteInternalDatePickerSelect.emit(i)},this.selectedDate=void 0,this.activeDate=void 0,this.headingLevel=void 0,this.min=void 0,this.max=void 0,this.scale=void 0,this.localeData=void 0,this.messages=void 0,this.nextMonthDate=void 0,this.prevMonthDate=void 0}componentWillLoad(){this.parentDatePickerEl=S(this.el,"calcite-date-picker")}connectedCallback(){this.setNextPrevMonthDates()}render(){return e("div",{class:"header"},this.renderContent())}renderContent(){var t;const{messages:i,localeData:s,activeDate:a}=this;if(!a||!s)return null;if(this.parentDatePickerEl){const{numberingSystem:t,lang:i}=this.parentDatePickerEl;w.numberFormatOptions=Object.assign(Object.assign({useGrouping:!1},t&&{numberingSystem:t}),i&&{locale:i})}const h=a.getMonth(),{months:r,unitOrder:o}=s,c=(r.wide||r.narrow||r.abbreviated)[h],l=this.formatCalendarYear(a.getFullYear()),d=v(o),u=d.indexOf("y")<d.indexOf("m"),f=null===(t=s.year)||void 0===t?void 0:t.suffix;return e(n,null,e("a",{"aria-disabled":`${this.prevMonthDate.getMonth()===h}`,"aria-label":i.prevMonth,class:E,href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===h?-1:0},e("calcite-icon",{"flip-rtl":!0,icon:"chevron-left",scale:R(this.scale)})),e("div",{class:{text:!0,"text--reverse":u}},e(H,{class:"month",level:this.headingLevel},c),e("span",{class:"year-wrap"},e("input",{"aria-label":i.year,class:{year:!0,"year--suffix":!!f},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.onYearChange,onInput:this.onYearInput,onKeyDown:this.onYearKey,pattern:"\\d*",type:"text",value:l,ref:t=>this.yearInput=t}),f&&e("span",{class:"suffix"},f))),e("a",{"aria-disabled":`${this.nextMonthDate.getMonth()===h}`,"aria-label":i.nextMonth,class:E,href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===h?-1:0},e("calcite-icon",{"flip-rtl":!0,icon:"chevron-right",scale:R(this.scale)})))}setNextPrevMonthDates(){this.activeDate&&(this.nextMonthDate=c(f(this.activeDate),this.min,this.max),this.prevMonthDate=c(p(this.activeDate),this.min,this.max))}formatCalendarYear(t){return w.localize(`${g(t,this.localeData)}`)}parseCalendarYear(t){return w.localize(`${m(Number(w.delocalize(t)),this.localeData)}`)}getInRangeDate({localizedYear:t,offset:i=0}){const{min:e,max:s,activeDate:a}=this,n=Number(w.delocalize(t)),h=n.toString().length,r=!isNaN(n)&&n+i,o=r&&(!e||e.getFullYear()<=r)&&(!s||s.getFullYear()>=r);if(r&&o&&h===t.length){const t=new Date(a);return t.setFullYear(r),c(t,e,s)}}setYear({localizedYear:t,commit:i=!0,offset:e=0}){const{yearInput:s,activeDate:a}=this,n=this.getInRangeDate({localizedYear:t,offset:e});n&&this.calciteInternalDatePickerSelect.emit(n),i&&(s.value=this.formatCalendarYear((n||a).getFullYear()))}get el(){return a(this)}static get watchers(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}}};N.style=":host{display:block}.header{display:flex;justify-content:space-between;padding-block:0px;padding-inline:0.25rem}:host([scale=s]) .text{margin-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .chevron{block-size:2.25rem}:host([scale=m]) .text{margin-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .chevron{block-size:3rem}:host([scale=l]) .text{margin-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .chevron{block-size:3.5rem}.chevron{margin-inline:-0.25rem;box-sizing:content-box;display:flex;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-inline:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inline-size:14.2857142857%}.chevron:focus{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 )}.chevron:hover,.chevron:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.chevron:active{background-color:var(--calcite-ui-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none;opacity:0}.text{margin-block:auto;display:flex;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:center;text-align:center;line-height:1}.text--reverse{flex-direction:row-reverse}.month,.year,.suffix{margin-inline:0.25rem;margin-block:auto;display:inline-block;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-1);font-size:inherit}.year{position:relative;inline-size:2.5rem;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent}.year:hover{transition-duration:100ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}.year:focus{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 )}.year--suffix{text-align:start}.year-wrap{position:relative}.suffix{inset-block-start:0px;white-space:nowrap;text-align:start;inset-inline-start:0}:host([hidden]){display:none}[hidden]{display:none}";export{W as calcite_date_picker,Y as calcite_date_picker_month,N as calcite_date_picker_month_header}
|
@@ -0,0 +1,6 @@
|
|
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
|
+
import{d as p}from"./p-8a80c2c0.js";import"./p-78780f63.js";import"./p-88d4aca3.js";import"./p-def6a0b3.js";import"./p-b024d5a4.js";import"./p-69370d9c.js";import"./p-d9ba28a0.js";import"./p-01633f02.js";import"./p-16b0d958.js";import"./p-86e31fef.js";import"./p-da205222.js";import"./p-b959efd3.js";import"./p-ced50533.js";import"./p-6484a05d.js";import"./p-c853e879.js";import"./p-55f65f3f.js";import"./p-8e552755.js";import"./p-e79106f9.js";import"./p-4931ad5b.js";var r={name:"bs",weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),weekStart:1,weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),ordinal:function(p){return p},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};p.locale(r,null,!0);export default r;
|
@@ -0,0 +1,6 @@
|
|
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
|
+
import{h as e,r as i,f as t,g as n}from"./p-78780f63.js";import{h as a,a as s,s as l,i as r,g as c,v as o,b as d,c as v,d as p,e as u,f as g,u as h,j as f,k as m}from"./p-149d80ad.js";import{c as y,a as _}from"./p-e1a4994d.js";import{l as b}from"./p-0ad0b29a.js";import"./p-225c4ca4.js";import"./p-d918ec36.js";const w=96;function k(e){return e?e/72*w:0}var x=y((function(e,i){!function(e){var i,t="http://www.w3.org/",n="".concat(t,"2000/svg"),a="".concat(t,"1999/xlink"),s=[],l=function(e,i){var t={};return Object.keys(e).forEach((function(i){t[i]=e[i]})),i&&Object.keys(i).forEach((function(e){t[e]=i[e]})),t},r=function(e,i){return e.vnodeSelector===i.vnodeSelector&&(e.properties&&i.properties?e.properties.key===i.properties.key&&e.properties.bind===i.properties.bind:!e.properties&&!i.properties)},c=function(e){if("string"!=typeof e)throw new Error("Style values must be strings")},o=function(e,i,t){if(""!==i.vnodeSelector)for(var n=t;n<e.length;n++)if(r(e[n],i))return n;return-1},d=function(e,i,t,n){var a=e[i];if(""!==a.vnodeSelector){var s=a.properties;if(!(s?void 0===s.key?s.bind:s.key:void 0))for(var l=0;l<e.length;l++)if(l!==i&&r(e[l],a))throw{error:new Error("".concat(t.vnodeSelector," had a ").concat(a.vnodeSelector," child ").concat("added"===n?n:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:t,childNode:a}}},v=function(e){if(e.properties){var i=e.properties.enterAnimation;i&&i(e.domNode,e.properties)}},p=[],u=!1,g=function(e){(e.children||[]).forEach(g),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},h=function(){u=!1,p.forEach(g),p.length=0},f=function(e){p.push(e),u||(u=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(h,{timeout:16}):setTimeout(h,16))},m=function(e){var i=e.domNode;if(e.properties){var t=e.properties.exitAnimation;if(t){i.style.pointerEvents="none";return void t(i,(function(){i.parentNode&&(i.parentNode.removeChild(i),f(e))}),e.properties)}}i.parentNode&&(i.parentNode.removeChild(i),f(e))},y=function(e,i,t){(function(e,i,t){if(i)for(var n=0,a=i;n<a.length;n++)_(a[n],e,void 0,t)})(e,i.children,t),i.text&&(e.textContent=i.text),function(e,i,t){if(i)for(var s=t.eventHandlerInterceptor,l=Object.keys(i),r=l.length,o=function(r){var o,d=l[r],v=i[d];if("className"===d)throw new Error('Property "className" is not supported, use "class".');if("class"===d)b(e,v,!0);else if("classes"===d)for(var p=Object.keys(v),u=p.length,g=0;g<u;g++){var h=p[g];v[h]&&e.classList.add(h)}else if("styles"===d){var f=Object.keys(v),m=f.length;for(g=0;g<m;g++){var y=f[g],_=v[y];_&&(c(_),t.styleApplyer(e,y,_))}}else if("key"!==d&&null!=v){var w=typeof v;"function"===w?(0===d.lastIndexOf("on",0)&&(s&&(v=s(d,v,e,i)),"oninput"===d&&(o=v,v=function(e){o.apply(this,[e]),e.target["oninput-value"]=e.target.value})),e[d]=v):t.namespace===n?"href"===d?e.setAttributeNS(a,d,v):e.setAttribute(d,v):"string"===w&&"value"!==d&&"innerHTML"!==d?e.setAttribute(d,v):e[d]=v}},d=0;d<r;d++)o(d)}(e,i.properties,t),i.properties&&i.properties.afterCreate&&i.properties.afterCreate.apply(i.properties.bind||i.properties,[e,t,i.vnodeSelector,i.properties,i.children])},_=function(e,i,t,a){var s,r,c=0,o=e.vnodeSelector,d=i.ownerDocument;if(""===o)e.domNode?e.domNode.nodeValue=e.text:(r=e.domNode=d.createTextNode(e.text),void 0!==t?i.insertBefore(r,t):i.appendChild(r));else{for(var v=0;v<=o.length;++v){var p=o.charAt(v);if(v===o.length||"."===p||"#"===p){var u=o.charAt(c-1),g=o.slice(c,v);"."===u?r.classList.add(g):"#"===u?r.id=g:("svg"===g&&(a=l(a,{namespace:n})),void 0!==a.namespace?r=e.domNode=d.createElementNS(a.namespace,g):(r=e.domNode=e.domNode||((null===(s=e.properties)||void 0===s?void 0:s.is)?d.createElement(g,{is:e.properties.is}):d.createElement(g)),"input"===g&&e.properties&&void 0!==e.properties.type&&r.setAttribute("type",e.properties.type)),void 0!==t?i.insertBefore(r,t):r.parentNode!==i&&i.appendChild(r)),c=v+1}}y(r,e,a)}},b=function(e,i,t){i&&i.split(" ").forEach((function(i){i&&e.classList.toggle(i,t)}))};i=function(e,t,p){var u=e.domNode,g=!1;if(e===t)return!1;var h=!1;if(""===t.vnodeSelector){if(t.text!==e.text){var f=u.ownerDocument.createTextNode(t.text);return u.parentNode.replaceChild(f,u),t.domNode=f,!0}t.domNode=u}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(p=l(p,{namespace:n})),e.text!==t.text&&(h=!0,void 0===t.text?u.removeChild(u.firstChild):u.textContent=t.text),t.domNode=u,h=function(e,t,n,a,l){if(n===a)return!1;for(var c,p=(n=n||s).length,u=(a=a||s).length,g=0,h=0,f=!1;h<u;){var y=g<p?n[g]:void 0,b=a[h];if(void 0!==y&&r(y,b))f=i(y,b,l)||f,g++;else{var w=o(n,b,g+1);if(w>=0){for(c=g;c<w;c++)m(n[c]),d(n,c,e,"removed");f=i(n[w],b,l)||f,g=w+1}else _(b,t,g<p?n[g].domNode:void 0,l),v(b),d(a,h,e,"added")}h++}if(p>g)for(c=g;c<p;c++)m(n[c]),d(n,c,e,"removed");return f}(t,u,e.children,t.children,p)||h,h=function(e,i,t,s){if(t){for(var l=!1,r=Object.keys(t),o=r.length,d=0;d<o;d++){var v=r[d],p=t[v],u=i[v];if("class"===v)u!==p&&(b(e,u,!1),b(e,p,!0));else if("classes"===v)for(var g=e.classList,h=Object.keys(p),f=h.length,m=0;m<f;m++){var y=h[m],_=!!p[y];_!==!!u[y]&&(l=!0,_?g.add(y):g.remove(y))}else if("styles"===v){var w=Object.keys(p),k=w.length;for(m=0;m<k;m++){var x=w[m],L=p[x];L!==u[x]&&(l=!0,L?(c(L),s.styleApplyer(e,x,L)):s.styleApplyer(e,x,""))}}else if(p||"string"!=typeof u||(p=""),"value"===v){var $=e[v];$!==p&&(e["oninput-value"]?$===e["oninput-value"]:p!==u)&&(e[v]=p,e["oninput-value"]=void 0),p!==u&&(l=!0)}else if(p!==u){var j=typeof p;"function"===j&&s.eventHandlerInterceptor||(s.namespace===n?"href"===v?e.setAttributeNS(a,v,p):e.setAttribute(v,p):"string"===j&&"innerHTML"!==v?"role"===v&&""===p?e.removeAttribute(v):e.setAttribute(v,p):e[v]!==p&&(e[v]=p),l=!0)}}return l}}(u,e.properties,t.properties,p)||h,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[u,p,t.vnodeSelector,t.properties,t.children]);return h&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(u,t.properties,e.properties),g};var w=function(e,t){return{getLastRender:function(){return e},update:function(n){if(e.vnodeSelector!==n.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var a=e;e=n,i(a,n,t)},domNode:e.domNode}},k={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,i,t){"-"===i.charAt(0)?e.style.setProperty(i,t):e.style[i]=t}},x=function(e){return l(k,e)},L={create:function(e,i){return i=x(i),_(e,document.createElement("div"),void 0,i),w(e,i)},append:function(e,i,t){return t=x(t),_(i,e,void 0,t),w(i,t)},insertBefore:function(e,i,t){return t=x(t),_(i,e.parentNode,e,t),w(i,t)},merge:function(e,i,t){return t=x(t),i.domNode=e,y(e,i,t),w(i,t)},replace:function(e,i,t){return t=x(t),_(i,e.parentNode,e,t),e.parentNode.removeChild(e),w(i,t)}},$=function(e,i,t){for(var n=0,a=i.length;n<a;n++){var s=i[n];Array.isArray(s)?$(e,s,t):null!=s&&!1!==s&&("string"==typeof s&&(s={vnodeSelector:"",properties:void 0,children:void 0,text:s.toString(),domNode:null}),t.push(s))}};var j;j=Array.prototype.find?function(e,i){return e.find(i)}:function(e,i){return e.filter(i)[0]};var z=function(e,i,t){return function(){return n};function n(n){t("domEvent",n);var a=i(),s=function(e,i){for(var t=[];e&&e!==i;)t.push(e),e=e.parentNode;return t}(n.currentTarget,a.domNode);s.reverse();var l,r=function(e,i){var t=e;return i.forEach((function(e){t=t&&t.children?j(t.children,(function(i){return i.domNode===e})):void 0})),t}(a.getLastRender(),s);return e.scheduleRender(),r&&(l=r.properties["on".concat(n.type)].apply(r.properties.bind||this,arguments)),t("domEventProcessed",n),l}};e.createCache=function(){var e,i;return{invalidate:function(){i=void 0,e=void 0},result:function(t,n){if(e)for(var a=0;a<t.length;a++)e[a]!==t[a]&&(i=void 0);return i||(i=n(),e=t),i}}},e.createMapping=function(e,i,t){var n=[],a=[];return{results:a,map:function(s){for(var l=s.map(e),r=a.slice(),c=0,o=0;o<s.length;o++){var d=s[o],v=l[o];if(v===n[c])a[o]=r[c],t(d,r[c],o),c++;else{for(var p=!1,u=1;u<n.length+1;u++){var g=(c+u)%n.length;if(n[g]===v){a[o]=r[g],t(s[o],r[g],o),c=g+1,p=!0;break}}p||(a[o]=i(d,o))}}a.length=s.length,n=l}}},e.createProjector=function(e){var i,t,n=x(e),a=n.performanceLogger,s=!0,l=!1,r=[],c=[],o=function(e,t,s){var l;n.eventHandlerInterceptor=z(i,(function(){return l}),a),l=e(t,s(),n),r.push(l),c.push(s)},d=function(){if(t=void 0,s){s=!1,a("renderStart",void 0);for(var e=0;e<r.length;e++){var i=c[e]();a("rendered",void 0),r[e].update(i),a("patched",void 0)}a("renderDone",void 0),s=!0}};return i={renderNow:d,scheduleRender:function(){t||l||(t=requestAnimationFrame(d))},stop:function(){t&&(cancelAnimationFrame(t),t=void 0),l=!0},resume:function(){l=!1,s=!0,i.scheduleRender()},append:function(e,i){o(L.append,e,i)},insertBefore:function(e,i){o(L.insertBefore,e,i)},merge:function(e,i){o(L.merge,e,i)},replace:function(e,i){o(L.replace,e,i)},detach:function(e){for(var i=0;i<c.length;i++)if(c[i]===e)return c.splice(i,1),r.splice(i,1)[0];throw new Error("renderFunction was not found")}}},e.dom=L,e.h=function(e,i,t){if(Array.isArray(i))t=i,i=void 0;else if(i&&("string"==typeof i||i.vnodeSelector)||t&&("string"==typeof t||t.vnodeSelector))throw new Error("h called with invalid arguments");var n,a;return t&&1===t.length&&"string"==typeof t[0]?n=t[0]:t&&($(e,t,a=[]),0===a.length&&(a=void 0)),{vnodeSelector:e,properties:i,children:a,text:""===n?void 0:n,domNode:null}}}(i)}));const L=x.createProjector(),$=20,j={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function z(i="vertical"){const t="stroke:rgb(200, 200, 200);stroke-width:1";return"vertical"===i?e("svg",{height:"4",width:"10"},e("line",{x1:"0",y1:"2",x2:"10",y2:"2",style:t})):e("svg",{height:"10",width:"10"},e("line",{x1:"5",y1:"0",x2:"5",y2:"10",style:t}))}function O(e,i="vertical"){const t=document.createElement("div");return t.style.height=`${$}px`,t.className=j.univariateAboveAndBelowSymbol,null!=e&&(t.style.opacity=e.toString()),L.append(t,z.bind(null,i)),t}function R(e,i,t="vertical",n){e.infos.forEach(((e,a)=>{if(n&&2===a)e.preview=O(i,t);else{const{size:i}=e,n=k(i)+("horizontal"===t?20:10),a="div"===e.preview.tagName.toLowerCase(),s=a?e.preview:document.createElement("div");s&&(s.className=j.univariateAboveAndBelowSymbol),"horizontal"===t?s&&(s.style.width=`${n}px`):s&&(s.style.height=`${n}px`),a||s&&s.appendChild(e.preview),e.preview=s}}))}function E(e,i="classic"){const t=e.infos,n=t[0].size,a=t[t.length-1].size;return"classic"===i?(k(n)+10)/2:(k(n)-k(a))/2}async function A(e,i){if(!e)return Promise.resolve(null);const t=e.infos.map((e=>e.color)),[n]=await b(["esri/symbols/support/symbolUtils"]),a=n.renderColorRampPreviewHTML("full"===i.type?t:"above"===i.type?t.slice(0,3):t.slice(2,5),{width:i.width,height:i.height,align:i.rampAlignment,effectList:i.effectList});return a.className=j.colorRamp,null!=i.opacity&&(a.style.opacity=i.opacity.toString()),Promise.resolve(a)}function F(e,i,t,n="vertical"){const a=function(e,i,t,n="vertical"){let a=0;const s=e.infos,l=Math.floor(s.length/2),r="full"===i||"below"===i?s.length-1:l;for(let e="full"===i||"above"===i?0:l;e<=r;e++)a+=t&&e===l?"horizontal"===n?10:$:k(s[e].size)+("horizontal"===n?20:10);return Math.round(a)}(e,i,t,n),s=e.infos,l=Math.floor(s.length/2),r="full"===i||"above"===i?0:l,c="full"===i||"below"===i?s.length-1:l,o=t?"vertical"===n?$:10:0,d="vertical"===n?10*("full"===i?2:1):20*("full"===i?2:1);return Math.round(a-(k("full"===i?s[r].size+s[c].size:"above"===i?s[r].size:s[c].size)/2+o/2+d/2))}const M="esri-legend__layer-body",I="esri-legend__layer-row",T="esri-legend__layer-cell esri-legend__layer-cell--info",C="esri-legend__layer-cell esri-legend__layer-cell--symbols",N="esri-legend__symbol",S="esri-legend__ramps",H="esri-legend__size-ramp",P="esri-legend__ramp-labels",D="esri-legend__ramp-label",q="esri-univariate-above-and-below-ramp__label",B={display:"flex",alignItems:"flex-start"},U={marginLeft:"3px"},V={display:"table-cell",verticalAlign:"middle"},W=class{constructor(e){i(this,e),this.calculatingFeatureCount=!1,this.legendvm=void 0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"},this.messages=void 0,this.isLoading=!0,this.intLegendId=void 0}handleFilterModeChange(){a(this.filterMode,this.legendvm.view)}async componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0});const[e,i,n]=await b(["esri/intl","esri/core/reactiveUtils","esri/core/Handles"]);this.reactiveUtils=i,this.handles=new n,this.intl=e}async componentDidLoad(){try{await this.reactiveUtils.whenOnce((()=>{var e;return null===(e=this.legendvm)||void 0===e?void 0:e.view})),this.legendvm.view.when((async()=>{var e,i;try{await(null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.map).loadAll(),await this.reactiveUtils.whenOnce((()=>{var e,i;return!1===(null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.updating)}));const t=await s(this.legendvm,this.reactiveUtils);l.set("data",Object.assign(Object.assign({},r.data),t)),this.isLoading=!1,this.setupWatchersAndListeners()}catch(e){this.isLoading=!1}}))}catch(e){this.isLoading=!1}}disconnectedCallback(){var e,i;null===(e=this.handles)||void 0===e||e.removeAll(),null===(i=this.handles)||void 0===i||i.destroy(),this.handles=null}render(){var i,t,n;const a=this.renderFilteredLayers();return this.isLoading?e("calcite-loader",{key:"interactive-legend-loader",scale:"m",label:null===(i=this.messages)||void 0===i?void 0:i.loading,text:null===(t=this.messages)||void 0===t?void 0:t.loading}):e("div",{key:"interactive-legend-classic-container",class:c(this.el)},(null==a?void 0:a.length)>0?a:e("div",{class:"esri-legend__message"},null===(n=this.messages)||void 0===n?void 0:n.noLegend))}renderFilteredLayers(){var e,i;return(null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.activeLayerInfos)||void 0===i?void 0:i.toArray()).map((e=>this.renderLegendForLayer(e))).filter((e=>!!e))}renderLegendForLayer(i,t){var n,a;if(!i.ready)return null;if(i.children.length){const a=i.children.map((e=>this.renderLegendForLayer(e,!0))).toArray();return e("instant-apps-interactive-legend-group-legend-element",{class:c(this.el),legendvm:this.legendvm,featureCount:this.featureCount,activeLayerInfo:i,isChild:t},e("div",{style:{paddingLeft:"20px"},id:`${null===(n=null==i?void 0:i.layer)||void 0===n?void 0:n.id}-legend-layer`,slot:"content"},a))}const s=i.legendElements;if(s&&!s.length)return null;const l=s.map(((e,t)=>this.renderLegendForElement(e,i.layer,i.effectList,i,t))).filter((e=>!!e));return l.length?e("instant-apps-interactive-legend-layer-element",{class:c(this.el),legendvm:this.legendvm,featureCount:this.featureCount,activeLayerInfo:i,messages:this.messages,isChild:t},e("div",{slot:"content",id:`${null===(a=null==i?void 0:i.layer)||void 0===a?void 0:a.id}-legend-layer`,class:"esri-legend__layer"},l)):null}renderLegendForElement(i,t,n,a,s,l,r){const d="color-ramp"===i.type,v="opacity-ramp"===i.type,p="size-ramp"===i.type;let u=null;const g=o(a,i,s),h="relationship-ramp"===(null==i?void 0:i.type);if("symbol-table"===i.type||p){const l=i.infos.map(((e,l)=>this.renderLegendForElementInfo(e,t,n,p,i,a,s,l,g,r||null))).filter((e=>!!e));l.length&&(u=e("div",{class:M},l))}else"color-ramp"===i.type||"opacity-ramp"===i.type||"heatmap-ramp"===i.type||"stretch-ramp"===i.type?u=this.renderLegendForRamp(i,t.opacity):"relationship-ramp"===i.type?u=e("instant-apps-interactive-legend-relationship",{class:c(this.el),key:"relationship-ramp",filterMode:this.filterMode,activeLayerInfo:a,legendElement:i,messages:this.messages}):"pie-chart-ramp"===i.type?u=this.renderPieChartRamp(i):"univariate-above-and-below-ramp"===i.type?u=this.renderUnivariateAboveAndBelowRamp(i,t.opacity,n):"univariate-color-size-ramp"===i.type&&(u=this.renderUnivariateColorSizeRamp(i,t.opacity,n));if(!u)return null;const f=i.title;let m=null;if("string"==typeof f)m=f;else if(f){const e=this.getTitle(this.messages,f,d||v);m=this.isRendererTitle(f,d||v)&&f.title?`${f.title} (${e})`:e}return e("instant-apps-interactive-legend-legend-element",{class:c(this.el),activeLayerInfo:a,isSizeRamp:p,isChild:l,isColorRamp:d,isRelationshipRamp:h,isInteractive:g,zoomTo:this.zoomTo,legendElement:i,titleText:m,legendvm:this.legendvm,legendElementIndex:s,messages:this.messages},e("div",{slot:"content"},u))}renderPieChartRamp(i){var t;return e("div",{innerHTML:`${null===(t=i.preview)||void 0===t?void 0:t.outerHTML}`})}async renderUnivariateAboveAndBelowRamp(i,t,n){const{sizeRampElement:a,colorRampElement:s}=function(e,i,t="vertical"){const n=e.infos;let a=n.find((({type:e})=>"size-ramp"===e)),s=n.find((({type:e})=>"color-ramp"===e));return a&&(a=Object.assign({},a),a.infos=[...a.infos],R(a,i,t,!0)),s&&(s=Object.assign({},s),s.infos=[...s.infos]),"horizontal"===t&&(null==a||a.infos.reverse(),null==s||s.infos.reverse()),{sizeRampElement:a,colorRampElement:s}}(i,t);if(!a)return null;const l=F(a,"above",!0),r=F(a,"below",!0),c=await A(s,{width:12,height:l,rampAlignment:"vertical",opacity:t,type:"above",effectList:n}),o=await A(s,{width:12,height:r,rampAlignment:"vertical",opacity:t,type:"below",effectList:n}),d=E(a),v=a.infos.map((e=>e.label)),p=v.map(((i,t)=>{const n=2===t;return 0===t?e("div",{class:i?c?q:D:""},i):n?e("div",null):null})),u=v.length-1,g=Math.floor(v.length/2),h=v.map(((i,t)=>t===g||t===u?e("div",{class:i?c?q:D:""},i):null)),f={display:"table-cell",verticalAlign:"middle"},m={marginTop:`${d}px`},y={height:`${l}px`},_={height:`${r}px`};return e("div",{key:"univariate-above-and-below-ramp-preview",style:B},e("div",{class:M},a.infos.map(((i,t)=>e("div",{class:`${I} ${H}`},e("div",{class:N,style:f,innerHTML:`${i.preview.outerHTML}`}),c||t%2!=0?null:e("div",{class:T},v[t]))))),c?e("div",{style:m,key:"color-ramp-preview"},e("div",{style:U},e("div",{style:V},e("div",{class:S},c)),e("div",{style:V},e("div",{class:P,style:y},p))),e("div",{style:U},e("div",{style:V},e("div",{class:S},o)),e("div",{style:V},e("div",{class:P,style:_},h)))):null)}renderUnivariateColorSizeRamp(i,t,n){const{sizeRampElement:a,colorRampElement:s}=function(e,i="vertical"){const t=e.infos;let n=t.find((({type:e})=>"size-ramp"===e)),a=t.find((({type:e})=>"color-ramp"===e));return n&&(n=Object.assign({},n),n.infos=[...n.infos],R(n,null,i,!1)),a&&(a=Object.assign({},a),a.infos=[...a.infos]),"horizontal"===i&&(null==n||n.infos.reverse(),null==a||a.infos.reverse()),{sizeRampElement:n,colorRampElement:a}}(i);if(!a)return null;const l=E(a),r=F(a,"full",!1),c=A(s,{width:12,height:r,rampAlignment:"vertical",opacity:t,type:"full",effectList:n}),o=a.infos.length-1,d=a.infos.map(((i,t)=>0===t||t===o?e("div",{class:i.label?s?q:D:""},i.label):null)),v={display:"table-cell",verticalAlign:"middle"},p={marginTop:`${l}px`},u={height:`${r}px`};return e("div",{key:"univariate-above-and-below-ramp-preview",style:B},e("div",{class:M},a.infos.map((i=>e("div",{class:`${I} ${H}`},e("div",{class:N,style:v,innerHTML:`${i.preview.outerHTML}`}))))),e("div",{style:p,key:"color-ramp-preview"},e("div",{style:U},e("div",{style:V},e("div",{class:S},c)),e("div",{style:V},e("div",{class:P,style:u},d)))))}renderLegendForRamp(i,t){var n;const a=i.infos,s="heatmap-ramp"===i.type,l="stretch-ramp"===i.type,r=i.preview,c="opacity-ramp"===i.type?"esri-legend__opacity-ramp":"";r&&(r.classList.add("esri-legend__color-ramp"),c&&r.classList.add(c)),null!=t&&r&&(r.style.opacity=t.toString());const o=a.map((i=>e("div",{class:i.label?D:""},s?this.messages[i.label]||i.label:l?this.getStretchStopLabel(i):i.label))),d={height:null===(n=null==r?void 0:r.style)||void 0===n?void 0:n.height};return e("div",{class:I},e("div",{class:C,style:Object.assign({},{width:"24px"})},e("div",{ref:e=>{var i;(null==e?void 0:e.firstChild)&&(null===(i=null==e?void 0:e.firstChild)||void 0===i||i.remove()),null==e||e.appendChild(r)},class:S})),e("div",{class:T},e("div",{class:P,style:Object.assign({},d)},o)))}getStretchStopLabel(e){return e.label?this.messages[e.label]+": "+("string"==typeof e.value?e.value:this.intl.formatNumber(e.value,{style:"decimal",notation:e.value.toString().includes("e")?"scientific":"standard"})):""}renderLegendForElementInfo(i,t,n,a,s,l,o,u,g,h){var f,y;if(i.type)return this.renderLegendForElement(i,t,n,l,o,!0,i);let _;if(i.preview?_=e("div",{class:N,innerHTML:`${i.preview.outerHTML}`}):i.src&&(_=this.renderImage(i,t,!1)),!_)return null;const b=a?` ${H}`:"";let w;const k=m(t),x=d(k,h);if(r.data){const e=v(k,t,i,x,u),n=p(x?null==x?void 0:x.nestedInfos:k);w=1===(null===(f=null==k?void 0:k.categories)||void 0===f?void 0:f.size)?!(null==e?void 0:e.selected):n||(null==e?void 0:e.selected)}return x&&!(null==i?void 0:i.value)||!g?e("div",{class:I},e("div",{class:`${C}${b}`},_),e("div",{class:`${T}`},this.getTitle(this.messages,i.label,!1)||"")):e("button",{onClick:this.applyFilter(i,t,u,h),class:`${I} instant-apps-interactive-legend__layer-row--interactive${w?" instant-apps-interactive-legend-element-info--selected":""}`},e("div",{class:`${C}${b}`},_),e("div",{class:`${T}`},this.getTitle(this.messages,i.label,!1)||""),this.featureCount?e("instant-apps-interactive-legend-count",{class:c(this.el),categoryId:x?s.title:null!==(y=i.label)&&void 0!==y?y:null==t?void 0:t.id,activeLayerInfo:l,legendvm:this.legendvm,messages:this.messages,selected:w,legendElement:s,infoIndex:u}):null)}renderImage(i,t,n){const{label:a,src:s,opacity:l}=i,r=n?" esri-legend__imagery-layer-image--stretched":"",c=n?"":` ${N}`,o={opacity:`${null!=l?l:t.opacity}`};return e("img",{alt:this.getTitle(this.messages,a,!1),src:s,width:i.width,height:i.height,class:`$${r}${c}`,style:o})}getTitle(e,i,t){var n;if(!i)return;if("string"==typeof i||"number"==typeof i)return i;if("value"in i||"unit"in i)return this.intl.substitute(e.dotValue,i);if("colorName"in i||"bandName"in i)return e[i.colorName]+": "+(e[i.bandName]||i.bandName);if("showCount"in i)return i.showCount?e.clusterCountTitle:null;let a=null;return this.isRampTitle(i,t)?a=i.ratioPercentTotal?"showRatioPercentTotal":i.ratioPercent?"showRatioPercent":i.ratio?"showRatio":i.normField?"showNormField":i.field?"showField":null:this.isRendererTitle(i,t)&&(a=i.normField?"showNormField":i.normByPct?"showNormPct":i.field?"showField":null),a?null===(n=this.intl)||void 0===n?void 0:n.substitute("showField"===a?"{field}":e[a],{field:i.field,normField:i.normField}):""}isRampTitle(e,i){return i}isRendererTitle(e,i){return!i}setupWatchersAndListeners(){var e,i,n,a,c,o;const d=null===(a=null===(n=null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.map)||void 0===n?void 0:n.allLayers)||void 0===a?void 0:a.filter((e=>"feature"===(null==e?void 0:e.type)));d.forEach((async e=>{var i,t,n,a;try{const s=await(null===(t=null===(i=this.legendvm)||void 0===i?void 0:i.view)||void 0===t?void 0:t.whenLayerView(e)),l=`fLayerViewScale-${null==e?void 0:e.id}`;(null===(n=this.handles)||void 0===n?void 0:n.has(l))||null===(a=this.handles)||void 0===a||a.add(s.watch("visibleAtCurrentScale",(async()=>this.createDataForLayer(e))),l)}catch(e){}})),null==d||d.forEach((e=>{var i,t,n;const a=`fLayer-${null==e?void 0:e.id}`;(null===(i=this.handles)||void 0===i?void 0:i.has(a))||null===(t=this.handles)||void 0===t||t.add(null===(n=this.reactiveUtils)||void 0===n?void 0:n.watch((()=>null==e?void 0:e.visible),(async()=>this.createDataForLayer(e))),a)})),null===(c=this.handles)||void 0===c||c.add(this.reactiveUtils.when((()=>this.legendvm),(()=>{this.reactiveUtils.watch((()=>{var e,i;return null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.updating}),(()=>{var e,i;this.calculatingFeatureCount||(null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.updating)&&(this.calculatingFeatureCount=!0,this.reactiveUtils.when((()=>{var e,i;return!(null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.updating)}),(async()=>{const e=await u(this.legendvm,r.data);l.set("data",Object.assign(Object.assign({},r.data),e)),this.calculatingFeatureCount=!1}),{once:!0,initial:!0}))}),{initial:!0})}),{initial:!0,once:!0})),null===(o=this.handles)||void 0===o||o.add(this.reactiveUtils.on((()=>{var e;return null===(e=this.legendvm)||void 0===e?void 0:e.activeLayerInfos}),"change",(async e=>{var i;const n=await s(this.legendvm,this.reactiveUtils);l.set("data",Object.assign(Object.assign({},r.data),n)),t(this.el),null===(i=this.handles)||void 0===i||i.add(this.reactiveUtils.on((()=>e.children),"change",(async()=>{const e=await s(this.legendvm,this.reactiveUtils);l.set("data",Object.assign(Object.assign({},r.data),e)),t(this.el)})))})))}async createDataForLayer(e){var i,t;const n=l.get("data"),a=null==n?void 0:n[null==e?void 0:e.id],s=null===(t=null===(i=this.legendvm)||void 0===i?void 0:i.activeLayerInfos)||void 0===t?void 0:t.find((i=>{var t;return(null===(t=null==i?void 0:i.layer)||void 0===t?void 0:t.id)===(null==e?void 0:e.id)}));if(!a&&s){const i=await g(this.legendvm,s,this.reactiveUtils);if(h({intLegendLayerData:i,layerId:null==e?void 0:e.id}),this.featureCount){const e=await u(this.legendvm,r.data);l.set("data",Object.assign(Object.assign({},r.data),e))}}}applyFilter(e,i,t,n){return async()=>{var a;const s=Object.assign({},null===(a=r.data)||void 0===a?void 0:a[null==i?void 0:i.id]);n?await f(s,e,t,this.filterMode,n):await f(s,e,t,this.filterMode),h({intLegendLayerData:s,layerId:null==i?void 0:i.id})}}get el(){return n(this)}static get watchers(){return{filterMode:["handleFilterModeChange"]}}};W.style=".sc-instant-apps-interactive-legend-classic-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-ui-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-background--selected--dark:#009af2;--instant-apps-interactive-legend-info-item-background--hover:#e9e9e9;--instant-apps-interactive-legend-info-item-background--hover--dark:#4a4a4a;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-ui-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-ui-background);--instant-apps-interactive-legend-ui-margin:20px 15px;--instant-apps-interactive-legend-ui-padding:20px 15px}.sc-instant-apps-interactive-legend-classic-h .esri-legend__service.sc-instant-apps-interactive-legend-classic{padding:0}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-classic{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic calcite-action.sc-instant-apps-interactive-legend-classic{margin-right:5px}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-classic{white-space:nowrap}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-classic calcite-button.sc-instant-apps-interactive-legend-classic{margin:2px}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell.esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{display:flex;align-items:center}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-body.sc-instant-apps-interactive-legend-classic{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-classic>.esri-legend__layer-body.sc-instant-apps-interactive-legend-classic{margin:0}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{display:table-row}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell.sc-instant-apps-interactive-legend-classic{display:table-cell}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--symbols.sc-instant-apps-interactive-legend-classic{justify-content:center;width:20%}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{width:65%}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{margin:1px;background:transparent;border:none;width:100%}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{position:relative}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{color:var(--calcite-ui-text-inverse)}.sc-instant-apps-interactive-legend-classic-h .hide.sc-instant-apps-interactive-legend-classic{display:none}@media (min-width: 992px){.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{cursor:pointer}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}";export{W as instant_apps_interactive_legend_classic}
|
@@ -0,0 +1,6 @@
|
|
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
|
+
import{r as e,f as t,h as i,g as n,c as s}from"./p-78780f63.js";import{g as a,l,s as o,i as r,b as d,z as c,m as p,k as h,n as v,u as g,o as u,p as m}from"./p-149d80ad.js";import{l as f}from"./p-0ad0b29a.js";import"./p-225c4ca4.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";const y=class{constructor(t){e(this,t),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=!1,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){var e;this.expanded=!!(null===(e=this.layerCaption)||void 0===e?void 0:e.expanded)}async componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0})}render(){return i("div",{style:{borderLeft:"1px solid var(--calcite-ui-border-3)"},class:"esri-legend__service esri-legend__group-layer"},i("instant-apps-interactive-legend-layer-element-caption",{ref:e=>this.layerCaption=e,class:a(this.el),legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:this.isChild}),i("div",{class:"esri-legend__group-content "+(!1===this.expanded?"hide":"show")},i("slot",{name:"content"})))}get el(){return n(this)}};y.style=".sc-instant-apps-interactive-legend-group-legend-element-h{display:block}.sc-instant-apps-interactive-legend-group-legend-element-h .esri-legend__service.sc-instant-apps-interactive-legend-group-legend-element{margin:0;padding:0}.sc-instant-apps-interactive-legend-group-legend-element-h .hide.sc-instant-apps-interactive-legend-group-legend-element{display:none}";const _=class{constructor(t){e(this,t),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=void 0,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){this.expanded=this.layerCaption.expanded}componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0})}render(){var e,t;return i("div",{style:{borderLeft:"1px solid var(--calcite-ui-border-3)"},class:"esri-legend__service"+(this.activeLayerInfo.parent?" esri-legend__group-layer-child":""),tabIndex:0},i("instant-apps-interactive-legend-layer-element-caption",{ref:e=>this.layerCaption=e,legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:!!this.isChild,class:a(this.el)}),i("div",{id:`${null===(t=null===(e=this.activeLayerInfo)||void 0===e?void 0:e.layer)||void 0===t?void 0:t.id}-legend-layer`,class:"esri-legend__layer"+(!1===this.expanded?" hide":" show")},i("slot",{name:"content"})))}get el(){return n(this)}};_.style=".sc-instant-apps-interactive-legend-layer-element-h{display:block}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__service.sc-instant-apps-interactive-legend-layer-element{padding:0}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-layer-element{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-layer-element-h .hide.sc-instant-apps-interactive-legend-layer-element{display:none}";const b=class{constructor(t){e(this,t),this.activeLayerInfo=void 0,this.isSizeRamp=void 0,this.isChild=void 0,this.isColorRamp=void 0,this.isRelationshipRamp=void 0,this.isInteractive=void 0,this.zoomTo=void 0,this.legendElement=void 0,this.titleText=void 0,this.legendvm=void 0,this.legendElementIndex=void 0,this.messages=void 0,this.expanded=!0}legendLayerExpandUpdatedEmitted(){this.expanded=this.legendLayerCaption.expanded}render(){var e,t,n,s,a,r,d,c,p;const h=this.isChild?"esri-legend__layer-child-table":"esri-legend__layer-table",v=1===(null===(t=null===(e=this.legendElement)||void 0===e?void 0:e.infos)||void 0===t?void 0:t.length)&&!(null===(a=null===(s=null===(n=this.activeLayerInfo)||void 0===n?void 0:n.layer)||void 0===s?void 0:s.renderer)||void 0===a?void 0:a.field),g=!this.isSizeRamp&&this.isChild||this.isColorRamp?"":" esri-legend__layer-table--size-ramp",u=this.isInteractive?"":" instant-apps-interactive-legend__non-interactive",m=l(this.activeLayerInfo)?" instant-apps-interactive-legend__nested-unique-symbol":"";let f=!(!v||this.expanded||this.zoomTo)||this.expanded;return this.isRelationshipRamp&&(f=o.get("relationshipRampExpandStates")[this.activeLayerInfo.layer.id]),i("div",{class:`${h}${g}${u}${m}`},i("div",{id:`${null===(d=null===(r=this.activeLayerInfo)||void 0===r?void 0:r.layer)||void 0===d?void 0:d.id}-legend-element-caption`,class:this.isRelationshipRamp||!this.titleText&&!this.zoomTo&&v?"hide":"show"},i("instant-apps-interactive-legend-legend-element-caption",{ref:e=>this.legendLayerCaption=e,legendvm:this.legendvm,activeLayerInfo:this.activeLayerInfo,layer:this.activeLayerInfo.layer,titleText:this.titleText,legendElement:this.legendElement,legendElementIndex:this.legendElementIndex,zoomTo:this.zoomTo,isInteractive:this.isInteractive,messages:this.messages})),i("div",{key:"content",id:`${null===(p=null===(c=this.activeLayerInfo)||void 0===c?void 0:c.layer)||void 0===p?void 0:p.id}-legend-element-content-${this.legendElementIndex}`,class:!1===f?"hide":"show"},i("slot",{name:"content"})))}};b.style=".sc-instant-apps-interactive-legend-legend-element-h{display:block}.sc-instant-apps-interactive-legend-legend-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-legend-element,.sc-instant-apps-interactive-legend-legend-element-h .instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-legend-element{margin:0}.sc-instant-apps-interactive-legend-legend-element-h .hide.sc-instant-apps-interactive-legend-legend-element{display:none}";const L=class{constructor(t){e(this,t),this.showAllSelectedEvent=s(this,"showAllSelected",7),this.legendLayerExpandUpdatedEvent=s(this,"legendLayerExpandUpdated",7),this.legendvm=void 0,this.activeLayerInfo=void 0,this.layer=void 0,this.titleText=void 0,this.legendElementIndex=void 0,this.zoomTo=void 0,this.isInteractive=void 0,this.legendElement=void 0,this.expanded=!0,this.messages=void 0}render(){var e,t,n,s;const a=l(this.activeLayerInfo),o=p(this.activeLayerInfo),{expanded:r}=this;return a&&!this.titleText?null:i("div",{class:"esri-legend__layer-caption"},i("calcite-action",{onClick:this.toggleExpanded(),icon:!1===r?"chevron-up":"chevron-down",appearance:"transparent",text:!1===r?null===(e=this.messages)||void 0===e?void 0:e.expand:null===(t=this.messages)||void 0===t?void 0:t.collapse,label:!1===r?null===(n=this.messages)||void 0===n?void 0:n.expand:null===(s=this.messages)||void 0===s?void 0:s.collapse,scale:"s"}),this.isInteractive||o?this.renderLegendElementCaptionControls():null,this.titleText?i("span",{class:"instant-apps-interactive-legend__legend-layer-caption-text"},this.titleText):null)}renderLegendElementCaptionControls(){var e,t,n,s,a,l,o,d,c,p;const h=this.titleText?"":" instant-apps-interactive-legend__layer-caption-btn-container--no-text",v=(null===(s=null===(n=null===(e=r.data)||void 0===e?void 0:e[null===(t=this.layer)||void 0===t?void 0:t.id])||void 0===n?void 0:n.categories)||void 0===s?void 0:s.size)>1?i("calcite-button",{key:"show-all-button",id:"showAll",onClick:this.handleShowAll(),"icon-start":"list-check-all",appearance:"outline",round:!0,label:null===(a=this.messages)||void 0===a?void 0:a.showAll}):null,g=i("calcite-button",{key:"zoom-to-button",id:"zoomTo",onClick:this.handleZoomTo(),"icon-start":"magnifying-glass-plus",appearance:"outline",round:!0,label:null===(l=this.messages)||void 0===l?void 0:l.zoomTo});return i("div",{key:"layer-caption-btn-container",class:`instant-apps-interactive-legend__layer-caption-btn-container${h}`},v,i("calcite-tooltip",{"reference-element":"showAll",placement:"top",label:null===(o=this.messages)||void 0===o?void 0:o.showAll},null===(d=this.messages)||void 0===d?void 0:d.showAll),this.zoomTo?[g,i("calcite-tooltip",{"reference-element":"zoomTo",placement:"top",label:null===(c=this.messages)||void 0===c?void 0:c.zoomTo},null===(p=this.messages)||void 0===p?void 0:p.zoomTo)]:null)}toggleExpanded(){return()=>{var e,t;this.expanded=!this.expanded,this.legendLayerExpandUpdatedEvent.emit(),(null===(t=null===(e=this.activeLayerInfo)||void 0===e?void 0:e.legendElements)||void 0===t?void 0:t.filter((e=>"relationship-ramp"===e.type))).length>0&&o.set("relationshipRampExpandStates",Object.assign(Object.assign({},r.relationshipRampExpandStates),{[this.activeLayerInfo.layer.id]:this.expanded}))}}handleZoomTo(){return()=>{const e=h(this.layer),t=d(e,this.legendElement);c(e,this.legendvm.view,t)}}handleShowAll(){return()=>{var e,t;const i=null===(e=r.data)||void 0===e?void 0:e[null===(t=this.layer)||void 0===t?void 0:t.id];d(i,this.legendElement)?(()=>{const e=v(i,this.legendElement.title);g({intLegendLayerData:e,layerId:this.layer.id})})():((()=>{const e=u(i);g({intLegendLayerData:e,layerId:this.layer.id})})(),this.showAllSelectedEvent.emit())}}get el(){return n(this)}};L.style=".sc-instant-apps-interactive-legend-legend-element-caption-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-ui-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-ui-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-ui-background);--instant-apps-interactive-legend-ui-padding:15px 10px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;margin-left:5px;margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{white-space:nowrap}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption calcite-button.sc-instant-apps-interactive-legend-legend-element-caption{margin:2px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight);padding:var(--instant-apps-interactive-legend-ui-padding)}html[dir=rtl] .sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:unset;margin-right:20px}";const $=".esri-relationship-ramp--diamond__middle-column--ramp svg g",x=class{constructor(t){e(this,t),this.cellNodeCounter=0,this.filterMode=void 0,this.activeLayerInfo=void 0,this.legendElement=void 0,this.messages=void 0}applyInteractivity(){this.applyRelationshipRampInteractivity()}showAllSelectedEmitted(){const e=0===r.data[this.activeLayerInfo.layer.id].queryExpressions.length,t=this.relationshipRamp.querySelector($).children,i=t?Array.from(t):null;e&&(null==i||i.forEach((e=>{e.removeAttribute("stroke"),e.removeAttribute("stroke-width"),e.removeAttribute("stroke-opacity"),e.classList.remove("esri-interactive-legend--selected-cell")})))}async componentWillLoad(){const[e]=await f(["esri/symbols/support/symbolUtils"]);this.symbolUtils=e}render(){var e,t;return i("div",{ref:e=>{if(!(null==e?void 0:e.querySelector("relationshipStyles"))){const t=document.createElement("style");t.id="relationshipStyles",t.innerHTML="\n rect:hover {\n cursor: pointer;\n opacity: 0.8;\n }\n ",null==e||e.appendChild(t)}}},i("span",{class:"instant-apps-interactive-legend-relationship__instructional-text"},null===(t=null===(e=this.messages)||void 0===e?void 0:e.relationship)||void 0===t?void 0:t.instructionalText),this.renderRelationshipRamp())}renderRelationshipRamp(){var e;const t=(null===(e=this.activeLayerInfo)||void 0===e?void 0:e.layer).renderer,n=this.symbolUtils.renderRelationshipRampPreviewHTML(t);return i("div",{ref:e=>{this.relationshipRamp=e,this.applyRelationshipRampInteractivity()},key:"relationship-ramp-diamond",innerHTML:`${null==n?void 0:n.outerHTML}`})}applyRelationshipRampInteractivity(){if(!(this.relationshipRamp&&this.activeLayerInfo&&this.legendElement&&r.data))return;let e=setInterval((()=>{const t=this.relationshipRamp.querySelector($);t&&(clearInterval(e),this.setupRelationshipDrawingStyle(t.children))}),10)}setupRelationshipDrawingStyle(e){const t=e?Array.from(e):null;if(!t)return;t.map(((e,t)=>{var i,n;const s=(null===(n=null===(i=this.activeLayerInfo)||void 0===i?void 0:i.layer)||void 0===n?void 0:n.renderer).uniqueValueInfos;if(s[t]){const i=s[t].symbol.color;s.forEach(((t,n)=>{const s=t.symbol.color;i.r===s.r&&i.g===s.g&&i.b===s.b&&i.a===s.a&&this.setCellAttributes(e,n)})),e.classList.add("esri-interactive-legend__svg-rect-element")}}));const i=this.reorderCellNodes(t);this.attachFeatureIndexes(i),this.applyEventHandlers()}setCellAttributes(e,t){const i=this.activeLayerInfo.layer.renderer.uniqueValueInfos,n=this.generateIndexPattern(t);i[n]&&(e.setAttribute("data-color",`${i[n].symbol.color}`),e.setAttribute("data-cell-index",`${n}`),e.setAttribute("tabindex","0"))}generateIndexPattern(e){const{focus:t,numClasses:i}=this.legendElement;return"HL"===t?e:2===i?this.twoClasses(e,t):3===i?this.threeClasses(e,t):4===i?this.fourClasses(e,t):null}twoClasses(e,t){return"HH"===t||null===t?0===e||2===e?e+1:1===e||3===e?e-1:null:"LH"===t?0===e?e+3:1===e?e+1:2===e?e-1:3===e?e-3:4===e?e+0:null:"LL"===t?0===e||1===e?e+2:2===e||3===e?e-2:null:void 0}threeClasses(e,t){return"HH"===t||null===t?0===e||3===e||6===e?e+2:2===e||5===e||8===e?e-2:e:"LH"===t?0===e?e+8:1===e?e+6:2===e?e+4:3===e?e+2:5===e?e-2:6===e?e-4:7===e?e-6:8===e?e-8:e:"LL"===t?0===e||1===e||2===e?e+6:6===e||7===e||8===e?e-6:e:void 0}fourClasses(e,t){return"HH"===t||null===t?0===e||4===e||8===e||12===e?e+3:1===e||5===e||9===e||13===e?e+1:2===e||6===e||10===e||14===e?e-1:3===e||7===e||11===e||15===e?e-3:null:"LH"===t?0===e?e+15:1===e?e+13:2===e?e+11:3===e?e+9:4===e?e+7:5===e?e+5:6===e?e+3:7===e?e+1:8===e?e-1:9===e?e-3:10===e?e-5:11===e?e-7:12===e?e-9:13===e?e-11:14===e?e-13:15===e?e-15:null:"LL"===t?0===e||1===e||2===e||3===e?e+12:4===e||5===e||6===e||7===e?e+4:8===e||9===e||10===e||11===e?e-4:12===e||13===e||14===e||15===e?e-12:null:void 0}reorderCellNodes(e){const t=[];for(;this.cellNodeCounter<=e.length-1;)e.map((e=>{parseInt(e.getAttribute("data-cell-index"))===this.cellNodeCounter&&t.push(e)})),this.cellNodeCounter++;return this.cellNodeCounter=0,t}attachFeatureIndexes(e){const{focus:t,numClasses:i}=this.legendElement;"HH"===t||null===t?this.relationshipFocusIsHighHigh(e,i):"LL"===t?this.relationshipFocusIsLowLow(e,i):"LH"===t?this.relationshipFocusIsLowHigh(e,i):"HL"===t&&this.relationshipFocusIsHighLow(e,i),this.cellNodeCounter=0}relationshipFocusIsHighHigh(e,t){for(let i=t-1;i>=0;i--)for(let n=t-1;n>=0;n--)this.setDataAttributes(e,i,n,t),this.cellNodeCounter++}relationshipFocusIsLowLow(e,t){for(let i=0;i<t;i++)for(let n=0;n<t;n++)this.setDataAttributes(e,i,n,t),this.cellNodeCounter++}relationshipFocusIsLowHigh(e,t){for(let i=0;i<t;i++)for(let n=t-1;n>=0;n--)this.setDataAttributes(e,i,n,t),this.cellNodeCounter++}relationshipFocusIsHighLow(e,t){for(let i=t-1;i>=0;i--)for(let n=0;n<t;n++)this.setDataAttributes(e,n,i,t),this.cellNodeCounter++}setDataAttributes(e,t,i,n){const s=e[this.cellNodeCounter];2===n?this.twoClassAttributes(s,t,i):3===n?this.threeClassAttributes(s,t,i):this.fourClassAttributes(s,t,i)}twoClassAttributes(e,t,i){const{legendElement:n}=this;"HL"===n.focus?this.swapDataFeatureIndexes(e,t,i):this.setDataFeatureIndexes(e,t,i)}threeClassAttributes(e,t,i){const{legendElement:n}=this;1===this.cellNodeCounter||3===this.cellNodeCounter||5===this.cellNodeCounter||7===this.cellNodeCounter?"HL"===n.focus?this.swapDataFeatureIndexes(e,t,i):this.setDataFeatureIndexes(e,t,i):"HL"!==n.focus?this.setDataFeatureIndexes(e,t,i):this.swapDataFeatureIndexes(e,t,i)}fourClassAttributes(e,t,i){const{legendElement:n}=this,{focus:s}=n;1===this.cellNodeCounter||2===this.cellNodeCounter||4===this.cellNodeCounter||5===this.cellNodeCounter||7===this.cellNodeCounter||8===this.cellNodeCounter||10===this.cellNodeCounter||11===this.cellNodeCounter||13===this.cellNodeCounter||14===this.cellNodeCounter?"HL"===s?this.swapDataFeatureIndexes(e,t,i):this.setDataFeatureIndexes(e,t,i):"HL"!==s?this.setDataFeatureIndexes(e,t,i):this.swapDataFeatureIndexes(e,t,i)}setDataFeatureIndexes(e,t,i){e.setAttribute("data-feature-i",`${t}`),e.setAttribute("data-feature-j",`${i}`),this.setDataCellFocus(e,t,i)}swapDataFeatureIndexes(e,t,i){e.setAttribute("data-feature-i",`${i}`),e.setAttribute("data-feature-j",`${t}`),this.setDataCellFocus(e,i,t)}setDataCellFocus(e,t,i){const{numClasses:n}=this.legendElement;2===n?this.setDataCellFocusForTwoClasses(e,t,i):3===n?this.setDataCellFocusForThreeClasses(e,t,i):4===n&&this.setDataCellFocusForFourClasses(e,t,i)}setDataCellFocusForTwoClasses(e,t,i){0===t&&0===i?e.setAttribute("data-cell-focus","LL"):0===t&&1===i?e.setAttribute("data-cell-focus","LH"):1===t&&0===i?e.setAttribute("data-cell-focus","HL"):1===t&&1===i&&e.setAttribute("data-cell-focus","HH")}setDataCellFocusForThreeClasses(e,t,i){0===t&&0===i?e.setAttribute("data-cell-focus","LL"):0===t&&1===i?e.setAttribute("data-cell-focus","LM"):0===t&&2===i?e.setAttribute("data-cell-focus","LH"):1===t&&0===i?e.setAttribute("data-cell-focus","ML"):1===t&&1===i?e.setAttribute("data-cell-focus","MM"):1===t&&2===i?e.setAttribute("data-cell-focus","MH"):2===t&&0===i?e.setAttribute("data-cell-focus","HL"):2===t&&1===i?e.setAttribute("data-cell-focus","HM"):2===t&&2===i&&e.setAttribute("data-cell-focus","HH")}setDataCellFocusForFourClasses(e,t,i){0===t&&0===i?e.setAttribute("data-cell-focus","LL"):0===t&&1===i?e.setAttribute("data-cell-focus","LM1"):0===t&&2===i?e.setAttribute("data-cell-focus","LM2"):0===t&&3===i?e.setAttribute("data-cell-focus","LH"):1===t&&0===i?e.setAttribute("data-cell-focus","M1L"):1===t&&1===i?e.setAttribute("data-cell-focus","M1M1"):1===t&&2===i?e.setAttribute("data-cell-focus","M1M2"):1===t&&3===i?e.setAttribute("data-cell-focus","M1H"):2===t&&0===i?e.setAttribute("data-cell-focus","M2L"):2===t&&1===i?e.setAttribute("data-cell-focus","M2M1"):2===t&&2===i?e.setAttribute("data-cell-focus","M2M2"):2===t&&3===i?e.setAttribute("data-cell-focus","M2H"):3===t&&0===i?e.setAttribute("data-cell-focus","HL"):3===t&&1===i?e.setAttribute("data-cell-focus","HM1"):3===t&&2===i?e.setAttribute("data-cell-focus","HM2"):3===t&&3===i&&e.setAttribute("data-cell-focus","HH")}applyEventHandlers(){const e=document.querySelectorAll(".esri-interactive-legend__svg-rect-element");Array.from(e).map((e=>{const t=e.getAttribute("data-feature-i"),i=e.getAttribute("data-feature-j"),n=e.getAttribute("data-cell-focus");e.onclick=()=>{this.handleFilter(t,i,n),this.handleSelectedElement(e)},e.onkeydown=s=>{const{key:a}=s;("Enter"===a||"Space"===a)&&(this.handleFilter(t,i,n),this.handleSelectedElement(e))}}))}async handleFilter(e,t,i){var n,s,a,l,o;const d=this.activeLayerInfo.layer,{authoringInfo:c}=d.renderer,{field1:p,field2:h}=c,{queryExpressions:v,fLayerView:g}=r.data[this.activeLayerInfo.layer.id];if("relationship-ramp"===this.legendElement.type&&c&&p&&h){const r=this.generateExpressionParams(p,h,c,e,t,i),d=this.generateExpressionForRelationship(r);0===v.length?v[0]=d:-1===v.indexOf(d)?v.push(d):v.splice(v.indexOf(d),1);const u=v.join(" OR "),y=null!==(s=null===(n=null==g?void 0:g.filter)||void 0===n?void 0:n.timeExtent)&&void 0!==s?s:null,[_,b]=await f(["esri/layers/support/FeatureFilter","esri/layers/support/FeatureEffect"]);if("filter"===(null===(a=this.filterMode)||void 0===a?void 0:a.type))g.filter=new _({where:u,timeExtent:(null===(l=null==g?void 0:g.filter)||void 0===l?void 0:l.timeExtent)?g.filter.timeExtent:null});else if(null===(o=this.filterMode)||void 0===o?void 0:o.effect){const{includedEffect:e,excludedEffect:t}=this.filterMode.effect,i=await m(t,g,"excludedEffect"),n=await m(e,g,"includedEffect");g.featureEffect=new b({filter:new _({where:u,timeExtent:y}),includedEffect:n,excludedEffect:i})}}}generateExpressionParams(e,t,i,n,s,a){const l=[],o=e.field,r=t.field,d=e.classBreakInfos,c=t.classBreakInfos,p=i.field1.hasOwnProperty("normalizationField")?i.field1.normalizationField:null,h=i.field2.hasOwnProperty("normalizationField")?i.field2.normalizationField:null;return d.forEach(((e,t)=>{const i=[];c.forEach(((e,n)=>{i.push([d[t],c[n]])})),l.push(i)})),{data:l,i:n,j:s,field1:p?`(${o}/${p})`:`${o}`,field2:h?`(${r}/${h})`:`${r}`,focus:a}}generateExpressionForRelationship(e){const{focus:t,field1:i,field2:n,data:s,i:a,j:l}=e;return"LL"===t?`${i} >= ${s[a][l][0].minValue} AND ${i} <= ${s[a][l][0].maxValue} AND ${n} >= ${s[a][l][1].minValue} AND ${n} <= ${s[a][l][1].maxValue}`:"LM"===t||"LM1"===t||"LM2"===t||"LH"===t?`${i} >= ${s[a][l][0].minValue} AND ${i} <= ${s[a][l][0].maxValue} AND ${n} > ${s[a][l][1].minValue} AND ${n} <= ${s[a][l][1].maxValue}`:"ML"===t||"M1L"===t||"M2L"===t||"HL"===t?`${i} > ${s[a][l][0].minValue} AND ${i} <= ${s[a][l][0].maxValue} AND ${n} >= ${s[a][l][1].minValue} AND ${n} <= ${s[a][l][1].maxValue}`:`${i} > ${s[a][l][0].minValue} AND ${i} <= ${s[a][l][0].maxValue} AND ${n} > ${s[a][l][1].minValue} AND ${n} <= ${s[a][l][1].maxValue}`}handleSelectedElement(e){const t=e.classList;t.contains("esri-interactive-legend--selected-cell")?(e.removeAttribute("stroke"),e.removeAttribute("stroke-width"),e.removeAttribute("stroke-opacity"),t.remove("esri-interactive-legend--selected-cell")):(t.add("esri-interactive-legend--selected-cell"),e.setAttribute("stroke","black"),e.setAttribute("stroke-width","3px"),e.setAttribute("stroke-opacity","1"))}};x.style=".sc-instant-apps-interactive-legend-relationship-h{display:block}.sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{display:inline-block;width:100%;text-align:center;margin-bottom:10px;background-color:#d2e9f9}.calcite-mode-dark .sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{background-color:var(--calcite-ui-brand);color:#151515}";export{y as instant_apps_interactive_legend_group_legend_element,_ as instant_apps_interactive_legend_layer_element,b as instant_apps_interactive_legend_legend_element,L as instant_apps_interactive_legend_legend_element_caption,x as instant_apps_interactive_legend_relationship}
|
@@ -0,0 +1,6 @@
|
|
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
|
+
import{r as t,c as i,h as e,H as s,g as a}from"./p-78780f63.js";import{s as l}from"./p-36eb8399.js";import{g as c}from"./p-6b943f52.js";import{n}from"./p-9bcbc1cc.js";import"./p-225c4ca4.js";import"./p-4af32c75.js";import"./p-d89fff3a.js";import"./p-e1a4994d.js";import"./p-a230b270.js";import"./p-220ec0d1.js";import"./p-d918ec36.js";const r=class{constructor(e){t(this,e),this.solutionItemSelected=i(this,"solutionItemSelected",7),this.selectedItemId=void 0,this.templateHierarchy=[]}valueWatchHandler(t,i){t&&t!==i&&Array.isArray(t)&&t.length>0&&this._treeItemSelected(t[0].id)}componentWillLoad(){this.valueWatchHandler(this.templateHierarchy,[])}render(){return e(s,null,e("calcite-tree",null,this.renderHierarchy(this.templateHierarchy)))}renderHierarchy(t){return t.map((t=>{const i=this.selectedItemId&&this.selectedItemId===t.id;return t.dependencies&&t.dependencies.length>0?e("calcite-tree-item",{onClick:i=>this._treeItemSelected(t.id,i),selected:i},e("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),e("span",{class:"icon-text",title:t.title},t.title),e("calcite-tree",{slot:"children"},this.renderHierarchy(t.dependencies))):e("calcite-tree-item",{onClick:i=>this._treeItemSelected(t.id,i),selected:i},e("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),e("span",{class:"icon-text",title:t.title},t.title))}))}_treeItemSelected(t,i){var e;const s=null===(e=null==i?void 0:i.target)||void 0===e?void 0:e.closest("calcite-tree-item");s&&(s.expanded=!(null==s?void 0:s.expanded)),this.selectedItemId=t,this.solutionItemSelected.emit(t)}static get assetsDirs(){return["item-type-icons"]}get el(){return a(this)}static get watchers(){return{templateHierarchy:["valueWatchHandler"]}}};r.style=".icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const o=class{constructor(i){t(this,i),this.authentication=void 0,this.itemId="",this.solutionVariables="",this.organizationVariables="",this.itemType=void 0,this._translations=void 0}itemIdWatchHandler(){const t=l.getItemInfo(this.itemId);this.itemType=t.type}async componentWillLoad(){return this._getTranslations()}render(){return e(s,null,e("div",{class:"configuration-container"},e("div",{class:"configuration"},this._showGroupTabs("Group"===this.itemType),this._showItemTabs("Group"!==this.itemType))))}_showGroupTabs(t){return e("calcite-tabs",{class:"config-tabs",style:{display:t?"inherit":"none"}},e("calcite-tab-nav",{slot:"tab-nav"},e("calcite-tab-title",null,this._translations.groupDetailsTab),e("calcite-tab-title",null,this._translations.sharingTab)),e("calcite-tab",{class:"config-tab",id:"group-tab",selected:!0},e("solution-item-details",{"item-id":this.itemId})),e("calcite-tab",{class:"config-tab",id:"share-tab"},e("solution-item-sharing",{"group-id":this.itemId})))}_showItemTabs(t){return e("calcite-tabs",{class:"config-tabs",style:{display:t?"inherit":"none"}},e("calcite-tab-nav",{slot:"tab-nav"},e("calcite-tab-title",null,this._translations.itemDetailsTab),e("calcite-tab-title",null,this._translations.dataTab),e("calcite-tab-title",null,this._translations.propertiesTab),e("calcite-tab-title",null,this._translations.resourcesTab)),e("calcite-tab",{class:"config-tab",selected:!0},e("solution-item-details",{"item-id":this.itemId})),e("calcite-tab",{class:"config-tab",id:"data-tab"},e("solution-template-data",{instanceid:"data","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),e("calcite-tab",{class:"config-tab",id:"props-tab"},e("solution-template-data",{instanceid:"properties","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),e("calcite-tab",{class:"config-tab",id:"resources-tab"},e("solution-resource-item",{authentication:this.authentication,class:"solutions-resource-container","item-id":this.itemId})))}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}get el(){return a(this)}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};o.style=".configuration-container{position:relative;height:100%;width:100%}.configuration{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:flex;padding:0.5rem;border:1px #808080 solid}.config-tabs{width:100%}.config-tab{width:100%;overflow-y:auto;height:inherit}";const h=class{constructor(e){t(this,e),this.featureServiceSpatialReferenceChange=i(this,"featureServiceSpatialReferenceChange",7),this.defaultWkid=102100,this.loaded=!1,this.locked=!0,this.services=[],this.value=this.defaultWkid.toString(),this._srSearchText=void 0,this._translations=void 0}componentWillLoad(){return this._getTranslations()}render(){return e(s,null,e("div",{class:"spatial-ref"},e("div",{class:"spatial-ref-desc"},e("calcite-label",null,this._translations.paramDescription)),e("label",{class:"switch-label"},e("calcite-switch",{checked:!this.locked,class:"spatial-ref-switch",onCalciteSwitchChange:t=>this._updateLocked(t),scale:"m"}),this._translations.specifyParam),e("div",{class:"spatial-ref-component",id:"spatialRefDefn"},e("calcite-label",null,this._translations.spatialReferenceInfo,e("label",{class:"spatial-ref-default"},e("spatial-ref",{defaultWkid:this.defaultWkid,disabled:this.locked,value:this.value}))),this._getFeatureServices(this.services))))}spatialReferenceChange(t){this.value=t.detail.newValue}_updateLocked(t){this.locked=!t.detail.switched,this._updateStore(),this.loaded||(t.detail.switched&&this._setFeatureServiceDefaults(this.services),this.loaded=!0)}_setFeatureServiceDefaults(t){n(this.el.getElementsByClassName("spatial-ref-item-switch")).forEach((t=>t.checked=!0)),t.forEach((t=>this._updateEnabledServices({detail:{switched:!0}},t)))}_getFeatureServices(t){const i=l.getStoreInfo("spatialReferenceInfo"),s=t.filter((t=>Object.keys(i.services).some((i=>i===t))));return s&&s.length>0?e("div",null,e("label",{class:"spatial-ref-item-title"},this._translations.featureServicesHeading),s.map((t=>e("label",{class:"switch-label"},e("calcite-switch",{checked:i.services[t],class:"spatial-ref-item-switch",disabled:this.locked,onCalciteSwitchChange:i=>this._updateEnabledServices(i,t),scale:"m"}),t)))):null}_updateStore(){const t=l.getStoreInfo("spatialReferenceInfo");t.enabled=!this.locked,t.spatialReference=this.value,l.setStoreInfo("spatialReferenceInfo",t)}_updateEnabledServices(t,i){const e=l.getStoreInfo("spatialReferenceInfo");e.services[i]=t.detail.switched,l.setStoreInfo("spatialReferenceInfo",e),this.featureServiceSpatialReferenceChange.emit({name:i,enabled:t.detail.switched})}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}get el(){return a(this)}};h.style=".spatial-ref-switch{margin-inline-end:0.5rem}.spatial-ref-component{margin-top:0.625rem;margin-inline-start:2.5rem}#spatialRefDefn .sc-calcite-label-h label.sc-calcite-label{margin:0px;background-color:#CBC3E3}.spatial-ref-default{margin:0px}.spatial-ref-item-title{margin-bottom:0.5rem;font-size:0.875rem;line-height:1.25rem}.spatial-ref-item-switch{margin-inline-end:0.5rem}.switch-label{margin:0.25rem;font-size:0.875rem;line-height:1.25rem}.disabled-div{pointer-events:none;opacity:0.4}.spatial-ref-desc{padding-bottom:0.5rem;padding-inline-start:0.25rem}";export{r as solution_contents,o as solution_item,h as solution_spatial_ref}
|
@@ -0,0 +1,6 @@
|
|
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
|
+
import{d as _}from"./p-8a80c2c0.js";import"./p-78780f63.js";import"./p-88d4aca3.js";import"./p-def6a0b3.js";import"./p-b024d5a4.js";import"./p-69370d9c.js";import"./p-d9ba28a0.js";import"./p-01633f02.js";import"./p-16b0d958.js";import"./p-86e31fef.js";import"./p-da205222.js";import"./p-b959efd3.js";import"./p-ced50533.js";import"./p-6484a05d.js";import"./p-c853e879.js";import"./p-55f65f3f.js";import"./p-8e552755.js";import"./p-e79106f9.js";import"./p-4931ad5b.js";var m={name:"ko",weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),ordinal:function(_){return _+"일"},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},meridiem:function(_){return _<12?"오전":"오후"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"}};_.locale(m,null,!0);export default m;
|
@@ -0,0 +1,6 @@
|
|
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
|
+
import{b as n}from"./p-a7a06d6a.js";import{c as t}from"./p-225c4ca4.js";var a,e,l,o;!function(n){n.User="user",n.Translation="translation"}(a||(a={})),function(n){n.String="string",n.TextEditor="textEditor"}(e||(e={})),function(n){n.ExpandCollapse="list-merge",n.SettingIndicator="list-button",n.Popover="information",n.Expanded="chevron-down",n.Collapsed="chevron-right",n.Copy="copy-to-clipboard",n.Breadcrumb="chevron-right",n.DefaultIcon="language"}(l||(l={})),function(n){n.Light="calcite-mode-light",n.Dark="calcite-mode-dark"}(o||(o={}));const u=t({uiData:null,currentLanguage:null,lastSave:null,saving:!1,currentLocaleSettingItem:null,portalItemResource:null,portalItemResourceT9n:null}),r=u.state,c=u;function i(n,t){var a;if(!n)return;const e=c.get("uiData"),l=new Map;l.set("locales",t),l.set("translatedLanguageLabels",Object.assign({},n.translatedLanguageLabels)),n.content.forEach((n=>{var t;const{type:a,label:o,value:u,uiLocation:r}=n,c=null==e?void 0:e.get(n.id);l.set(n.id,{userLocaleData:{type:a,label:o,value:u},expanded:!0,selected:null!==(t=null==c?void 0:c.selected)&&void 0!==t&&t,uiLocation:r,tip:null==n?void 0:n.tip})}));const o=n.content.map((n=>n.id)),u=o.every((n=>!l.get(n).selected)),r=l.get(o[0]);if(u&&r){const n=null==e?void 0:e.get(o[0]);r.selected=null===(a=null==n?void 0:n.selected)||void 0===a||a}return l}async function s(t){return(await n(t))[0]}function d(){var n;const t=[];return null===(n=r.uiData)||void 0===n||n.forEach(((n,a)=>{"locales"!==a&&"translatedLanguageLabels"!==a&&t.push(a)})),t}function v(n,t){const a=c.get("portalItemResourceT9n");let e;return(null==a?void 0:a[n])||(a[n]={}),e=Object.assign(Object.assign({},a),{[n]:Object.assign(Object.assign({},a[n]),t)}),e}function f(n){var t;return null!==(t=null==n?void 0:n.map((n=>n.locale)))&&void 0!==t?t:[]}function g(){return document.body.classList.contains(o.Dark)}export{l as E,i as a,f as b,d as c,e as d,o as e,a as f,s as g,v as h,g as i,r as l,c as s}
|
@@ -0,0 +1,11 @@
|
|
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
|
+
import{r as e,h as i,g as t}from"./p-78780f63.js";import{w as s}from"./p-def6a0b3.js";import{g as r,i as n}from"./p-de704be8.js";import"./p-b024d5a4.js";import"./p-69370d9c.js";
|
7
|
+
/*!
|
8
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
10
|
+
* v1.11.1-next.1
|
11
|
+
*/const a=class{constructor(i){e(this,i),this.scale="m",this.thumbnail=void 0,this.fullName=void 0,this.username=void 0,this.userId=void 0,this.label=void 0,this.thumbnailFailedToLoad=!1}render(){return this.determineContent()}determineContent(){if(this.thumbnail&&!this.thumbnailFailedToLoad)return i("img",{alt:this.label||"",class:"thumbnail",onError:()=>this.thumbnailFailedToLoad=!0,src:this.thumbnail});const e=this.generateInitials(),t=this.generateFillColor();return i("span",{"aria-label":this.label||this.fullName,class:"background",role:"figure",style:{backgroundColor:t}},e?i("span",{"aria-hidden":"true",class:"initials"},e):i("calcite-icon",{class:"icon",icon:"user",scale:this.scale}))}generateFillColor(){const{userId:e,username:i,fullName:t,el:a}=this,o=s(a),l=e&&`#${e.substr(e.length-6)}`,c=i||t||"",h=l&&n(l)?l:function(e){let i=0;for(let t=0;t<e.length;t++)i=e.charCodeAt(t)+((i<<5)-i);let t="#";for(let e=0;e<3;e++)t+=("00"+(i>>8*e&255).toString(16)).substr(-2);return t}(c);return(e||c)&&n(h)?`hsl(${function(e){return function(e){let{r:i,g:t,b:s}=e;i/=255,t/=255,s/=255;const r=Math.max(i,t,s),n=Math.min(i,t,s),a=r-n;if(r===n)return 0;let o=(r+n)/2;switch(r){case i:o=(t-s)/a+(t<s?6:0);break;case t:o=(s-i)/a+2;break;case s:o=(i-t)/a+4}return Math.round(60*o)}(r(e))}(h)}, 60%, ${"dark"===o?20:90}%)`:"var(--calcite-ui-foreground-2)"}generateInitials(){const{fullName:e,username:i}=this;return e?e.trim().split(" ").map((e=>e.substring(0,1))).join(""):!!i&&i.substring(0,2)}get el(){return t(this)}};a.style=":host{display:inline-block;overflow:hidden;border-radius:50%}:host([scale=s]){block-size:1.5rem;inline-size:1.5rem;font-size:var(--calcite-font-size--3)}:host([scale=m]){block-size:2rem;inline-size:2rem;font-size:var(--calcite-font-size--2)}:host([scale=l]){block-size:2.75rem;inline-size:2.75rem;font-size:var(--calcite-font-size-0)}.icon{display:flex}.background{display:flex;block-size:100%;inline-size:100%;align-items:center;justify-content:center;border-radius:50%}.initials{font-weight:var(--calcite-font-weight-bold);text-transform:uppercase;color:var(--calcite-ui-text-2)}.thumbnail{block-size:100%;inline-size:100%;border-radius:50%}:host([hidden]){display:none}[hidden]{display:none}";export{a as calcite_avatar}
|
@@ -0,0 +1,6 @@
|
|
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
|
+
import{r as t,c as n,h as i,H as s,g as e}from"./p-78780f63.js";import{g as a}from"./p-a7a06d6a.js";import{l as o}from"./p-0ad0b29a.js";import{g as r}from"./p-c96eb2db.js";import"./p-14a48b14.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";const p="instant-apps-export calcite-mode-light",l="instant-apps-export-print",c="instant-apps-export-print__extra-container",h="instant-apps-export-print__legend-container",d="instant-apps-export-print__compass-container",u="instant-apps-export-print__scale-bar-container",x="instant-apps-export-print__popup-container",v="instant-apps-export-print__popup-content",_="instant-apps-export-print__popup-title",g="instant-apps-export-print__view",b="instant-apps-export-print__view-container",f="instant-apps-export-print__view-wrapper",m=class{constructor(i){t(this,i),this.exportOutputUpdated=n(this,"exportOutputUpdated",7),this.output=void 0,this.beforeExport=()=>Promise.resolve(),this.popoverIcon="export",this.extraContent=void 0,this.extraContentLabel=void 0,this.headerTitle="",this.includeExtraContent=!0,this.includeLegend=!0,this.includeMap=!0,this.includePopup=!1,this.mode="popover",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.scale="m",this.showHeaderTitle=!0,this.showIncludeLegend=!0,this.showIncludeMap=!1,this.showIncludePopup=!0,this.showScaleBar=!0,this.view=void 0,this.baseClass=p,this.exportIsLoading=void 0,this.messages=void 0}watchIncludeMap(t){t&&this.updateLegend()}componentWillLoad(){this.baseClass="dark"===r(this.el)?"instant-apps-export calcite-mode-dark":p,a(this),this.initializeModules()}componentDidLoad(){this.printContainerEl.prepend(this.printEl)}disconnectedCallback(){var t,n;null===(t=this.handles)||void 0===t||t.removeAll(),null===(n=this.handles)||void 0===n||n.destroy(),this.handles=null}async initializeModules(){const[t]=await o(["esri/core/Handles"]);return this.handles=new t,Promise.resolve()}render(){const t="popover"===this.mode?this.renderPopover():this.renderPanel(),n=this.renderCompass();return i(s,null,i("div",{class:this.baseClass,onMouseEnter:this.handleWidgetCreation.bind(this),onFocusin:this.handleWidgetCreation.bind(this)},t,i("div",{class:"instant-apps-export__visually-hidden"},n)))}renderPopover(){var t,n,s;const e=this.renderPanel();return[i("calcite-popover",{referenceElement:"export-popover-btn",label:null===(t=this.messages)||void 0===t?void 0:t.exportPopover,overlayPositioning:this.popoverPositioning,placement:this.popoverPlacement,autoClose:!0,ref:t=>this.popoverEl=t},e),i("calcite-action",{id:"export-popover-btn",alignment:"center",icon:this.popoverIcon,scale:this.scale,title:null===(n=this.messages)||void 0===n?void 0:n.exportBtn,text:null===(s=this.messages)||void 0===s?void 0:s.exportBtn})]}renderPanel(){var t;const n=this.showHeaderTitle?this.renderTitle():null,s=null!=this.extraContent?this.renderSwitch("includeExtraContent",this.extraContentLabel):null,e=this.showIncludeMap?this.renderSwitch("includeMap"):null,a=this.includeMap?this.renderMapOptions():null,o=this.renderPrint();return i("div",{class:"inline"===this.mode?"instant-apps-export__inline-container":"instant-apps-export__popover-container"},n,s,e,a,i("calcite-button",{width:"full",onClick:this.exportOnClick.bind(this),loading:this.exportIsLoading},null===(t=this.messages)||void 0===t?void 0:t.export),o)}renderTitle(){var t;return i("calcite-label",null,null===(t=this.messages)||void 0===t?void 0:t.title,i("calcite-input",{value:this.headerTitle,onCalciteInputInput:this.updateHeaderTitle.bind(this)}))}renderSwitch(t,n){var s;const e=null!=n?n:null===(s=this.messages)||void 0===s?void 0:s[t];return i("calcite-label",{layout:"inline-space-between"},e,i("calcite-switch",{checked:this[t],value:t,onCalciteSwitchChange:this.optionOnChange.bind(this)}))}renderMapOptions(){const t=this.showIncludeLegend?this.renderSwitch("includeLegend"):null,n=this.showIncludePopup?this.renderSwitch("includePopup"):null;return i("div",null,t,n)}renderPrint(){const t=this.includeMap?this.renderPrintMap():null,n=this.renderExtraContent(),s=this.includeMap&&this.showIncludeLegend?this.renderLegend():null,e=this.includeMap&&this.showIncludePopup?this.renderPopup():null;return i("div",{ref:t=>this.printContainerEl=t},i("div",{class:l,ref:t=>this.printEl=t},t,s,e,n))}renderPrintMap(){const t=this.renderScaleBar();return i("div",{class:b,ref:t=>this.viewContainerEl=t},i("div",{class:f,ref:t=>this.viewWrapperEl=t},this.headerTitle?i("instant-apps-header",{titleText:this.headerTitle,backgroundColor:"#fff",textColor:"#323232"}):null,i("div",{class:g,ref:t=>this.viewEl=t}),t))}renderLegend(){return i("div",{class:h,ref:t=>this.legendContainerEl=t})}renderCompass(){return i("div",{class:d,ref:t=>this.compassContainerEl=t})}renderScaleBar(){return i("div",{class:u,ref:t=>this.scaleBarContainerEl=t})}renderPopup(){return i("div",{class:x,ref:t=>this.popupContainerEl=t},i("div",{ref:t=>this.popupTitleEl=t,class:_}),i("div",{ref:t=>this.popupContentEl=t,class:v}))}renderExtraContent(){return i("div",{class:c,id:"export-content",ref:t=>this.extraContainerEl=t})}optionOnChange(t){const{checked:n,value:i}=t.target;this[i]=n,this.updateExportOutput()}updateHeaderTitle(t){this.headerTitle=t.target.value,this.updateExportOutput()}async exportOnClick(){await this.beforeExport(),null==this.viewWrapperEl||this.viewWrapperEl.contains(this.compassContainerEl)||this.viewWrapperEl.append(this.compassContainerEl),this.handleViewExportOnClick(),null!=this.popoverEl&&(this.popoverEl.open=!1)}async handleViewExportOnClick(){null!=this.view?(this.addPrintStyling(),document.body.prepend(this.printEl),this.handleExtraContent(),this.includeMap?(null!=this.viewContainerEl&&(this.viewContainerEl.style.display="flex"),this.updatePopupToPrint(),this.viewScreenshot(),this.handleImgLoaded()):this.handleImgLoaded()):null!=this.popoverEl&&(this.popoverEl.open=!1)}addPrintStyling(){null==this.printStyleEl&&(this.printStyleEl=document.createElement("style"),this.printStyleEl.innerHTML='\n @media print {\n @page {\n size: Portrait;\n margin: .25in;\n }\n\n html, body {\n padding: 0;\n margin: 0;\n height: 100%;\n width: 100%;\n }\n\n body > *:not(.instant-apps-export-print) { display: none; }\n }\n\n * {\n -webkit-print-color-adjust: exact;\n color-adjust: exact;\n }\n\n\n .instant-apps-export-print {\n height: 100%;\n width: 100%;\n position: absolute;\n z-index: -999;\n color: #323232 !important;\n display: flex;\n flex-flow: row wrap;\n align-content: flex-start;\n gap: 36px;\n --esri-calcite-mode-name: "light";\n }\n\n .instant-apps-export-print, .instant-apps-export-print * {\n box-sizing: border-box;\n }\n\n .instant-apps-export-print__view-section {\n height: 100%;\n }\n\n .instant-apps-export-print__view-container {\n height: 60%;\n width: 100%;\n display: flex;\n justify-content: center;\n }\n\n .instant-apps-export-print__view-wrapper {\n position: relative;\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: column;\n border: 2pt solid #323232;\n }\n\n .instant-apps-export-print__view {\n height: 100%;\n width: 100%;\n background-position: center;\n background-repeat: no-repeat;\n }\n\n .instant-apps-export-print__popup-container {\n height: min-content;\n max-width: 350px;\n display: none;\n color: #323232;\n background: #fff;\n border: 1pt solid #323232;\n break-inside: avoid;\n }\n\n .instant-apps-export-print__popup-title {\n border-bottom: 1pt solid #323232;\n }\n\n .instant-apps-export-print__popup-content {\n background: #fff;\n padding-top: 8pt;\n }\n\n .instant-apps-export-print__popup-content .esri-feature-media__chart {\n background: #fff;\n }\n\n .instant-apps-export-print__legend-container {\n height: min-content;\n max-width: 300px;\n background: #fff;\n }\n\n .esri-legend--card, .esri-legend--card__service-content {\n flex-flow: row wrap;\n }\n\n .instant-apps-export-print .esri-widget > *:not(.instant-apps-export-print__scale-bar-container > *) {\n background: #fff;\n color: #323232;\n }\n\n .instant-apps-export-print__popup-content * {\n color: #323232;\n }\n\n .instant-apps-export-print .esri-widget__heading {\n margin: 2pt 7pt;\n padding: 0;\n color: #323232;\n }\n\n .instant-apps-export-print .esri-legend__ramp-label:before {\n border-color: rgba(0,0,0,0) rgba(50,50,50,.8) rgba(0,0,0,0) rgba(0,0,0,0);\n }\n\n .instant-apps-export-print .esri-legend--card__section {\n padding: 4pt 0 4pt;\n min-width: unset;\n border-left: none;\n }\n\n .instant-apps-export-print .esri-legend--card__section:first-child {\n border-left: none;\n }\n\n .instant-apps-export-print .esri-legend--card__service {\n border: none;\n flex: 0 1 auto;\n break-inside: avoid;\n }\n\n .instant-apps-export-print .esri-legend--card {\n border: none;\n gap: 6pt 12pt;\n }\n\n .instant-apps-export-print .esri-legend--card:not(:first-child),\n .instant-apps-export-print .esri-compass.esri-widget:not(:first-child) {\n display: none;\n }\n\n .instant-apps-export-print .esri-legend--card__service-caption-container {\n height: unset;\n padding: 0;\n border-bottom: none;\n }\n\n .instant-apps-export-print .esri-legend--card__service-caption-text {\n padding-bottom: 0;\n }\n\n .instant-apps-export-print__compass-container {\n position: absolute;\n top: 65px;\n left: 15px;\n background: #fff;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n --calcite-ui-icon-color: #000;\n border-radius: 50%;\n height: fit-content;\n }\n\n .instant-apps-export-print__compass-container .esri-compass {\n background: #fff;\n }\n\n .instant-apps-export-print__compass-container .esri-compass__icon.esri-icon-compass {\n color: #000;\n }\n\n .instant-apps-export-print__compass-container.esri-compass.esri-widget--button {\n background: #fff;\n }\n\n .instant-apps-export-print__scale-bar-container {\n position: absolute;\n bottom: 15px;\n left: 15px;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__bar-container:nth-child(1n+3) {\n display: none;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line {\n background-color: rgba(255, 255, 255, 0.66);\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top {\n border-bottom: 2px solid #323232;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__label {\n color: #323232;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top:before,\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top:after,\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--bottom:before,\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--bottom:after {\n background-color: #323232;\n border-right: 2px solid #323232;\n }\n\n .instant-apps-export-print__popup-container .esri-feature-media__item-navigation {\n display: none;\n }\n\n .instant-apps-export-print__popup-container .esri-feature-media__chart.esri-feature-media__chart--rendered * {\n width: 100%!important;\n }\n\n .instant-apps-export-print__popup-content .esri-popup__content {\n margin: 0;\n }',document.body.prepend(this.printStyleEl))}handleImgLoaded(){this.exportIsLoading=!0,setTimeout((()=>{this.exportIsLoading=void 0,this.setupViewPrintElements()}),1500)}handleExtraContent(){const t=this.printEl.querySelector("#export-content");null!=t&&(t.innerHTML="",null!=this.extraContent&&this.includeExtraContent?(t.style.display="block",t.append(this.extraContent.cloneNode(!0))):t.style.display="none")}resetPrintContent(){var t,n;if(null!=this.view){null===(t=this.printContainerEl)||void 0===t||t.prepend(this.printEl),null===(n=this.printStyleEl)||void 0===n||n.remove(),this.printStyleEl=void 0;const i=this.printEl.querySelector("#export-content");i&&(i.innerHTML="")}}async updatePopupToPrint(){var t,n;if(null!=this.view&&(null!=this.popupContainerEl&&(this.popupContainerEl.style.display=this.includePopup&&this.view.popup.visible?"block":"none",this.checkPopupOpen()),this.view.popup.visible&&null!=this.view.popup.selectedFeature)){const i=document.createElement(`h${null!==(t=this.view.popup.headingLevel)&&void 0!==t?t:2}`);i.innerHTML=null!==(n=this.view.popup.title)&&void 0!==n?n:"",i.className="esri-widget__heading esri-popup__header-title",null!=this.popupTitleEl&&(this.popupTitleEl.style.display=this.view.popup.title?"block":"none",this.popupTitleEl.innerHTML="",this.popupTitleEl.prepend(i))}}updateExportOutput(){this.output={},this.showHeaderTitle&&(this.output.headerTitle=this.headerTitle),this.showIncludeLegend&&(this.output.includeLegend=this.includeLegend),this.showIncludeMap&&(this.output.includeMap=this.includeMap),this.showIncludePopup&&(this.output.includePopup=this.includePopup),this.exportOutputUpdated.emit()}setupViewPrintElements(){if(null!=this.view){this.handleLegendSetup();const t=document.title;this.showHeaderTitle&&this.headerTitle&&(document.title=this.headerTitle),window.print(),document.title=t,setTimeout((()=>{this.resetPrintContent()}),1e3)}}handleLegendSetup(){this.showIncludeLegend&&null!=this.view&&this.includeMap&&null!=this.legendContainerEl&&(this.legendContainerEl.style.display=this.includeLegend?"block":"none")}handleWidgetCreation(){this.handleLegendCreation(),this.handleCompassCreation(),this.handleScaleBarCreation()}handleLegendCreation(){var t,n;if(this.includeMap&&null!=this.view&&this.showIncludeLegend&&null!=this.legendContainerEl){const i=this.view.map,s=null===(n=null===(t=this.legend)||void 0===t?void 0:t.view)||void 0===n?void 0:n.map;(null==i?void 0:i.portalItem.id)===(null==s?void 0:s.portalItem.id)||this.updateLegend()}}updateLegend(){var t;null===(t=this.view)||void 0===t||t.when((async t=>{var n;if(null===(n=this.legend)||void 0===n||n.destroy(),null!=this.legendContainerEl){this.legendContainerEl.innerHTML="";const[n]=await o(["esri/widgets/Legend"]);this.legend=new n({container:this.legendContainerEl,view:t,style:{type:"card",layout:"side-by-side"}})}}))}handleCompassCreation(){var t,n;if(this.includeMap&&null!=this.view&&null!=this.compassContainerEl){const i=this.view.map,s=null===(n=null===(t=this.compass)||void 0===t?void 0:t.view)||void 0===n?void 0:n.map;(null==i?void 0:i.portalItem.id)===(null==s?void 0:s.portalItem.id)||this.updateCompass()}}updateCompass(){var t;null===(t=this.view)||void 0===t||t.when((async t=>{var n;null===(n=this.compass)||void 0===n||n.destroy(),this.compass=null;const i=document.createElement("div");this.compassContainerEl.append(i);const[s]=await o(["esri/widgets/Compass"]);this.compass=new s({container:i,view:t})}))}handleScaleBarCreation(){var t,n;if(this.showScaleBar&&this.includeMap&&null!=this.view&&"2d"===this.view.type&&null!=this.scaleBarContainerEl){const i=this.view.map,s=null===(n=null===(t=this.scaleBar)||void 0===t?void 0:t.view)||void 0===n?void 0:n.map;(null==i?void 0:i.portalItem.id)===(null==s?void 0:s.portalItem.id)&&this.scaleBarContainerEl.innerHTML||this.updateScaleBar()}}updateScaleBar(){var t;null===(t=this.view)||void 0===t||t.when((async t=>{var n;null===(n=this.scaleBar)||void 0===n||n.destroy(),this.scaleBar=null,this.scaleBarContainerEl.innerHTML="";const[i]=await o(["esri/widgets/ScaleBar"]);this.scaleBar=new i({container:this.scaleBarContainerEl,unit:"dual",view:t})}))}async viewScreenshot(){if(null!=this.view&&this.includeMap){const t=await this.view.takeScreenshot({width:this.view.width,height:this.view.height}),n=494;null!=this.viewEl&&null!=this.viewWrapperEl&&(this.view.width<800?(this.viewWrapperEl.style.width=`${this.view.width}px`,this.viewWrapperEl.style.maxWidth=""):(this.viewWrapperEl.style.maxWidth=`${this.view.width}px`,this.viewWrapperEl.style.width=""),this.viewWrapperEl.style.height=this.view.height<n?`${this.view.height}px`:"",this.viewEl.style.backgroundImage=`url("${t.dataUrl}")`)}}checkPopupOpen(){if(null!=this.view){const t=this.view.popup.container,n=null==t?void 0:t.querySelector(".esri-popup .esri-feature__main-container");if(null!=n){const t=n.querySelectorAll("canvas");this.popupContentEl.innerHTML="",this.popupContentEl.append(n.cloneNode(!0));const i=this.popupContentEl.querySelectorAll("canvas");t.forEach(((t,n)=>{var s;const e=t.toDataURL(),a=document.createElement("img");a.src=e;const o=t.getAttribute("style");o&&a.setAttribute("style",o);const r=i[n];null!=r&&(r.replaceWith(a),document.querySelector("link[href*='esri/themes/dark/main.css']")&&null!=(null===(s=a.parentElement)||void 0===s?void 0:s.parentElement)&&(a.parentElement.style.background="#242424",a.parentElement.parentElement.style.background="#242424"))}))}}}get el(){return e(this)}static get watchers(){return{includeMap:["watchIncludeMap"]}}};m.style=":host{display:block;--instant-apps-export-action-background:var(--calcite-ui-foreground-1);--instant-apps-export-action-background-hover:var(--calcite-ui-foreground-2);--instant-apps-export-action-background-press:var(--calcite-ui-foreground-3);--instant-apps-export-action-height:100%;--instant-apps-export-action-width:fit-content;--instant-apps-export-action-icon-color:var(--calcite-ui-text-3);--instant-apps-export-action-icon-hover-color:var(--calcite-ui-text-1);--instant-apps-export-background:var(--calcite-ui-foreground-1);--instant-apps-export-text-color:var(--calcite-ui-text-1);--instant-apps-export-popover-width:250px}.instant-apps-export{height:100%}.instant-apps-export *{box-sizing:border-box}.instant-apps-export__popover-container,.instant-apps-export__inline-container{padding:12px;background:var(--instant-apps-export-background);--calcite-ui-text-1:var(--instant-apps-export-text-color)}.instant-apps-export__popover-container{width:var(--instant-apps-export-popover-width)}.instant-apps-export calcite-action{height:var(--instant-apps-export-action-height);width:var(--instant-apps-export-action-width);--calcite-ui-foreground-1:var(--instant-apps-export-action-background);--calcite-ui-foreground-2:var(--instant-apps-export-action-background-hover);--calcite-ui-foreground-3:var(--instant-apps-export-action-background-press);--calcite-ui-text-3:var(--instant-apps-export-action-icon-color);--calcite-ui-text-1:var(--instant-apps-export-action-icon-hover-color)}.instant-apps-export .instant-apps-export-print{display:none}.instant-apps-export__visually-hidden{position:absolute;top:0;z-index:-1;visibility:hidden}.instant-apps-export calcite-input{--calcite-ui-foreground-1:var(--instant-apps-export-background);--calcite-ui-text-1:var(--instant-apps-export-text-color)}.instant-apps-export calcite-popover{--calcite-ui-foreground-1:var(--instant-apps-export-background)}.instant-apps-export calcite-switch{--calcite-ui-foreground-1:#fff;--calcite-ui-foreground-2:#f3f3f3}.instant-apps-export .calcite-mode-dark calcite-switch{--calcite-ui-foreground-1:#2b2b2b;--calcite-ui-foreground-2:#202020}.instant-apps-export__compass-container.esri-widget{background:#fff;box-shadow:0 1px 2px rgba(0, 0, 0, 0.3)}.instant-apps-export__compass-container.esri-widget .esri-compass__icon.esri-icon-compass{color:#6e6e6e}";export{m as instant_apps_export}
|
@@ -0,0 +1,6 @@
|
|
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
|
+
import{r as t,c as i,h as s,g as e}from"./p-78780f63.js";import{c as a,C as o,D as n,a as l,H as r,O as h,b as c,S as d,d as p,R as u}from"./p-d83c0e9a.js";import{i as f,a as m}from"./p-def6a0b3.js";import{C as v,n as g,h as b,o as w,a as x,b as C,p as y,c as k,t as S,d as A,e as j,f as D}from"./p-de704be8.js";import{c as $,d as z,u as F}from"./p-d9ba28a0.js";import{i as O}from"./p-16b0d958.js";import{c as L,s as M,a as N}from"./p-da205222.js";import{c as P,d as I}from"./p-b959efd3.js";import{r as K,c as E,a as U}from"./p-55f65f3f.js";import{u as H,s as R,c as T,d as X}from"./p-8e552755.js";import{t as V}from"./p-6665fa1f.js";import"./p-e1a4994d.js";import"./p-b024d5a4.js";import"./p-69370d9c.js";import"./p-01633f02.js";import"./p-ced50533.js";import"./p-a82f35c9.js";const q=class{constructor(e){t(this,e),this.calciteColorPickerChange=i(this,"calciteColorPickerChange",6),this.calciteColorPickerInput=i(this,"calciteColorPickerInput",6),this.internalColorUpdateContext=null,this.mode=v.HEX,this.shiftKeyChannelAdjustment=0,this.handleTabActivate=t=>{this.channelMode=t.currentTarget.getAttribute("data-color-mode"),this.updateChannelsFromColor(this.color)},this.handleColorFieldScopeKeyDown=t=>{const{key:i}=t,s={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}};s[i]&&(t.preventDefault(),this.scopeOrientation="ArrowDown"===i||"ArrowUp"===i?"vertical":"horizontal",this.captureColorFieldColor(this.colorFieldScopeLeft+s[i].x||0,this.colorFieldScopeTop+s[i].y||0,!1))},this.handleHueScopeKeyDown=t=>{const i=t.shiftKey?10:1,{key:s}=t,e={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1};if(e[s]){t.preventDefault();const a=e[s]*i,o=this.baseColorFieldColor.hue(),n=this.baseColorFieldColor.hue(o+a);this.internalColorSet(n,!1)}},this.handleHexInputChange=t=>{t.stopPropagation();const{allowEmpty:i,color:s}=this,e=t.target.value;!i||e?e!==(s&&g(b(s,C(this.mode))))&&this.internalColorSet(a(e)):this.internalColorSet(null)},this.handleSavedColorSelect=t=>{this.internalColorSet(a(t.currentTarget.color))},this.handleChannelInput=t=>{const i=t.currentTarget,s=Number(i.getAttribute("data-channel-index")),e=3===s?h.max:"rgb"===this.channelMode?u[Object.keys(u)[s]]:r[Object.keys(r)[s]];let a;if(this.allowEmpty&&!i.value)a="";else{const t=Number(i.value);a=E(t+this.shiftKeyChannelAdjustment,0,e).toString()}i.value=a},this.handleChannelChange=t=>{const i=t.currentTarget,s=Number(i.getAttribute("data-channel-index")),e=[...this.channels];if(this.allowEmpty&&!i.value)return this.channels=[null,null,null,null],void this.internalColorSet(null);const a=3===s,o=Number(i.value);e[s]=a?w(o):o,this.updateColorFromChannels(e)},this.handleSavedColorKeyDown=t=>{O(t.key)&&(t.preventDefault(),this.handleSavedColorSelect(t))},this.handleColorFieldPointerDown=t=>{if(!f(t))return;const{offsetX:i,offsetY:s}=t;window.addEventListener("pointermove",this.globalPointerMoveHandler),window.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.colorFieldRenderingContext,bounds:this.colorFieldRenderingContext.canvas.getBoundingClientRect()},this.captureColorFieldColor(i,s),this.colorFieldScopeNode.focus()},this.handleHueSliderPointerDown=t=>{if(!f(t))return;const{offsetX:i}=t;window.addEventListener("pointermove",this.globalPointerMoveHandler),window.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.hueSliderRenderingContext,bounds:this.hueSliderRenderingContext.canvas.getBoundingClientRect()},this.captureHueSliderColor(i),this.hueScopeNode.focus()},this.handleOpacitySliderPointerDown=t=>{if(!f(t))return;const{offsetX:i}=t;window.addEventListener("pointermove",this.globalPointerMoveHandler),window.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.opacitySliderRenderingContext,bounds:this.opacitySliderRenderingContext.canvas.getBoundingClientRect()},this.captureOpacitySliderValue(i),this.opacityScopeNode.focus()},this.globalPointerUpHandler=t=>{if(!f(t))return;const i=this.activeCanvasInfo;this.activeCanvasInfo=null,this.drawColorControls(),i&&this.calciteColorPickerChange.emit()},this.globalPointerMoveHandler=t=>{const{activeCanvasInfo:i,el:s}=this;if(!s.isConnected||!i)return;const{context:e,bounds:a}=i;let o,n;const{clientX:l,clientY:r}=t;e.canvas.matches(":hover")?(o=l-a.x,n=r-a.y):(o=l<a.x+a.width&&l>a.x?l-a.x:l<a.x?0:a.width,n=r<a.y+a.height&&r>a.y?r-a.y:r<a.y?0:a.height),e===this.colorFieldRenderingContext?this.captureColorFieldColor(o,n,!1):e===this.hueSliderRenderingContext?this.captureHueSliderColor(o):e===this.opacitySliderRenderingContext&&this.captureOpacitySliderValue(o)},this.storeColorFieldScope=t=>{this.colorFieldScopeNode=t},this.storeHueScope=t=>{this.hueScopeNode=t},this.renderChannelsTabTitle=t=>{const{channelMode:i,messages:e}=this;return s("calcite-tab-title",{class:o.colorMode,"data-color-mode":t,key:t,onCalciteTabsActivate:this.handleTabActivate,selected:t===i},"rgb"===t?e.rgb:e.hsv)},this.renderChannelsTab=t=>{const{allowEmpty:i,channelMode:e,channels:a,messages:n,alphaChannel:l}=this,r=t===e,h="rgb"===t?[n.red,n.green,n.blue]:[n.hue,n.saturation,n.value],c=m(this.el),d=l?a:a.slice(0,3);return s("calcite-tab",{class:o.control,key:t,selected:r},s("div",{class:o.channels,dir:"ltr"},d.map(((t,s)=>{const e=3===s;return e&&(t=i&&!t?t:x(t)),this.renderChannel(t,s,h[s],c,e?"%":"")}))))},this.renderChannel=(t,i,e,a,n)=>s("calcite-input-number",{class:o.channel,"data-channel-index":i,dir:a,key:i,label:e,lang:this.effectiveLocale,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberChange:this.handleChannelChange,onCalciteInputNumberInput:this.handleChannelInput,onKeyDown:this.handleKeyDown,scale:"l"===this.scale?"m":"s",style:{marginLeft:i>0&&("s"!==this.scale||!this.alphaChannel||3!==i)?"-1px":""},suffixText:n,value:null==t?void 0:t.toString()}),this.deleteColor=()=>{const t=b(this.color,this.alphaChannel);if(!(this.savedColors.indexOf(t)>-1))return;const i=this.savedColors.filter((i=>i!==t));this.savedColors=i,this.storageId&&localStorage.setItem(`${p}${this.storageId}`,JSON.stringify(i))},this.saveColor=()=>{const t=b(this.color,this.alphaChannel);if(this.savedColors.indexOf(t)>-1)return;const i=[...this.savedColors,t];this.savedColors=i,this.storageId&&localStorage.setItem(`${p}${this.storageId}`,JSON.stringify(i))},this.drawColorControls=V(((t="all")=>{"all"!==t&&"color-field"!==t||!this.colorFieldRenderingContext||this.drawColorField(),"all"!==t&&"hue-slider"!==t||!this.hueSliderRenderingContext||this.drawHueSlider(),this.alphaChannel&&("all"===t||"opacity-slider"===t)&&this.opacitySliderRenderingContext&&this.drawOpacitySlider()}),16),this.captureColorFieldColor=(t,i,s=!0)=>{const{dimensions:{colorField:{height:e,width:a}}}=this,o=Math.round(r.s/a*t),n=Math.round(r.v/e*(e-i));this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(o).value(n),s)},this.initColorField=t=>{this.colorFieldRenderingContext=t.getContext("2d"),this.updateCanvasSize("color-field"),this.drawColorControls()},this.initHueSlider=t=>{this.hueSliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("hue-slider"),this.drawHueSlider()},this.initOpacitySlider=t=>{t&&(this.opacitySliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("opacity-slider"),this.drawOpacitySlider())},this.storeOpacityScope=t=>{this.opacityScopeNode=t},this.handleOpacityScopeKeyDown=t=>{const i=t.shiftKey?10:1,{key:s}=t,e={ArrowUp:.01,ArrowRight:.01,ArrowDown:-.01,ArrowLeft:-.01};if(e[s]){t.preventDefault();const a=e[s]*i,o=this.baseColorFieldColor.alpha(),n=this.baseColorFieldColor.alpha(o+a);this.internalColorSet(n,!1)}},this.allowEmpty=!1,this.alphaChannel=!1,this.channelsDisabled=!1,this.color=n,this.disabled=!1,this.format="auto",this.hideChannels=!1,this.hexDisabled=!1,this.hideHex=!1,this.hideSaved=!1,this.savedDisabled=!1,this.scale="m",this.storageId=void 0,this.messageOverrides=void 0,this.numberingSystem=void 0,this.value=g(b(n,this.alphaChannel)),this.defaultMessages=void 0,this.channelMode="rgb",this.channels=this.toChannels(n),this.dimensions=l.m,this.effectiveLocale="",this.messages=void 0,this.savedColors=[],this.colorFieldScopeTop=void 0,this.colorFieldScopeLeft=void 0,this.hueScopeLeft=void 0,this.opacityScopeLeft=void 0,this.scopeOrientation=void 0}handleAlphaChannelChange(t){const{format:i}=this;t&&"auto"!==i&&!C(i)&&(console.warn(`ignoring alphaChannel as the current format (${i}) does not support alpha`),this.alphaChannel=!1)}handleColorChange(t,i){this.drawColorControls(),this.updateChannelsFromColor(t),this.previousColor=i}handleFormatOrAlphaChannelChange(){this.setMode(this.format),this.internalColorSet(this.color,!1,"internal")}handleScaleChange(t="m"){this.updateDimensions(t),this.updateCanvasSize("all"),this.drawColorControls()}onMessagesChange(){}handleValueChange(t,i){const{allowEmpty:s,format:e}=this;let o=!1;if(!s||t){const s=y(t);if(!s||"auto"!==e&&s!==e)return this.showIncompatibleColorWarning(t,e),void(this.value=i);o=this.mode!==s,this.setMode(s,null===this.internalColorUpdateContext)}const n=this.activeCanvasInfo;if("initial"===this.internalColorUpdateContext)return;if("user-interaction"===this.internalColorUpdateContext)return this.calciteColorPickerInput.emit(),void(n||this.calciteColorPickerChange.emit());const l=s&&!t?null:a(null!=t&&"object"==typeof t&&C(this.mode)?D(t):t),r=!k(l,this.color);(o||r)&&this.internalColorSet(l,this.alphaChannel&&!(this.mode.endsWith("a")||this.mode.endsWith("a-css")),"internal")}get baseColorFieldColor(){return this.color||this.previousColor||n}effectiveLocaleChange(){H(this,this.effectiveLocale)}handleChannelKeyUpOrDown(t){this.shiftKeyChannelAdjustment=0;const{key:i}=t;if("ArrowUp"!==i&&"ArrowDown"!==i||!t.composedPath().some((t=>{var i;return null===(i=t.classList)||void 0===i?void 0:i.contains(o.channel)})))return;const{shiftKey:s}=t;if(t.preventDefault(),!this.color)return this.internalColorSet(this.previousColor),void t.stopPropagation();this.shiftKeyChannelAdjustment="ArrowUp"===i&&s?9:"ArrowDown"===i&&s?-9:0}async setFocus(){await L(this),this.el.focus()}async componentWillLoad(){M(this);const{allowEmpty:t,color:i,format:s,value:e}=this,o=t&&!e,n=y(e),l=o||"auto"===s&&n||s===n,r=o?null:l?a(e):i;l||this.showIncompatibleColorWarning(e,s),this.setMode(s,!1),this.internalColorSet(r,!1,"initial"),this.updateDimensions(this.scale);const h=`${p}${this.storageId}`;this.storageId&&localStorage.getItem(h)&&(this.savedColors=JSON.parse(localStorage.getItem(h))),await R(this)}connectedCallback(){$(this),P(this),T(this)}componentDidLoad(){N(this)}disconnectedCallback(){window.removeEventListener("pointermove",this.globalPointerMoveHandler),window.removeEventListener("pointerup",this.globalPointerUpHandler),z(this),I(this),X(this)}componentDidRender(){F(this)}render(){const{allowEmpty:t,channelsDisabled:i,color:e,colorFieldScopeLeft:a,colorFieldScopeTop:l,dimensions:{slider:{width:c},thumb:{radius:d}},hexDisabled:p,hideChannels:u,hideHex:f,hideSaved:m,hueScopeLeft:v,messages:g,alphaChannel:w,opacityScopeLeft:C,savedColors:y,savedDisabled:k,scale:S,scopeOrientation:A}=this,j=e?b(e,w):null,D=d,$=null!=v?v:c*n.hue()/r.h,z=d,F=null!=C?C:c*x(n.alpha())/h.max,O=null===e,L="vertical"===A,M=p||f,N=i||u,P=k||m,[I,K]=this.getAdjustedScopePosition(a,l),[E,U]=this.getAdjustedScopePosition($,D),[H,R]=this.getAdjustedScopePosition(F,z);return s("div",{class:o.container},s("div",{class:o.controlAndScope},s("canvas",{class:o.colorField,onPointerDown:this.handleColorFieldPointerDown,ref:this.initColorField}),s("div",{"aria-label":L?g.value:g.saturation,"aria-valuemax":L?r.v:r.s,"aria-valuemin":"0","aria-valuenow":(L?null==e?void 0:e.saturationv():null==e?void 0:e.value())||"0",class:{[o.scope]:!0,[o.colorFieldScope]:!0},onKeyDown:this.handleColorFieldScopeKeyDown,role:"slider",style:{top:`${K||0}px`,left:`${I||0}px`},tabindex:"0",ref:this.storeColorFieldScope})),s("div",{class:o.previewAndSliders},s("calcite-color-picker-swatch",{class:o.preview,color:j,scale:"l"}),s("div",{class:o.sliders},s("div",{class:o.controlAndScope},s("canvas",{class:{[o.slider]:!0,[o.hueSlider]:!0},onPointerDown:this.handleHueSliderPointerDown,ref:this.initHueSlider}),s("div",{"aria-label":g.hue,"aria-valuemax":r.h,"aria-valuemin":"0","aria-valuenow":(null==e?void 0:e.round().hue())||n.round().hue(),class:{[o.scope]:!0,[o.hueScope]:!0},onKeyDown:this.handleHueScopeKeyDown,role:"slider",style:{top:`${U}px`,left:`${E}px`},tabindex:"0",ref:this.storeHueScope})),w?s("div",{class:o.controlAndScope},s("canvas",{class:{[o.slider]:!0,[o.opacitySlider]:!0},onPointerDown:this.handleOpacitySliderPointerDown,ref:this.initOpacitySlider}),s("div",{"aria-label":g.opacity,"aria-valuemax":h.max,"aria-valuemin":h.min,"aria-valuenow":(e||n).round().alpha(),class:{[o.scope]:!0,[o.opacityScope]:!0},onKeyDown:this.handleOpacityScopeKeyDown,role:"slider",style:{top:`${R}px`,left:`${H}px`},tabindex:"0",ref:this.storeOpacityScope})):null)),M&&N?null:s("div",{class:{[o.controlSection]:!0,[o.section]:!0}},s("div",{class:o.hexAndChannelsGroup},M?null:s("div",{class:o.hexOptions},s("calcite-color-picker-hex-input",{allowEmpty:t,alphaChannel:w,class:o.control,messages:g,numberingSystem:this.numberingSystem,onCalciteColorPickerHexInputChange:this.handleHexInputChange,scale:S,value:j})),N?null:s("calcite-tabs",{class:{[o.colorModeContainer]:!0,[o.splitSection]:!0},scale:"l"===S?"m":"s"},s("calcite-tab-nav",{slot:"title-group"},this.renderChannelsTabTitle("rgb"),this.renderChannelsTabTitle("hsv")),this.renderChannelsTab("rgb"),this.renderChannelsTab("hsv")))),P?null:s("div",{class:{[o.savedColorsSection]:!0,[o.section]:!0}},s("div",{class:o.header},s("label",null,g.saved),s("div",{class:o.savedColorsButtons},s("calcite-button",{appearance:"transparent",class:o.deleteColor,disabled:O,iconStart:"minus",kind:"neutral",label:g.deleteColor,onClick:this.deleteColor,scale:S,type:"button"}),s("calcite-button",{appearance:"transparent",class:o.saveColor,disabled:O,iconStart:"plus",kind:"neutral",label:g.saveColor,onClick:this.saveColor,scale:S,type:"button"}))),y.length>0?s("div",{class:o.savedColors},[...y.map((t=>s("calcite-color-picker-swatch",{class:o.savedColor,color:t,key:t,onClick:this.handleSavedColorSelect,onKeyDown:this.handleSavedColorKeyDown,scale:S,tabIndex:0})))]):null))}handleKeyDown(t){"Enter"===t.key&&t.preventDefault()}showIncompatibleColorWarning(t,i){console.warn(`ignoring color value (${t}) as it is not compatible with the current format (${i})`)}setMode(t,i=!0){this.mode=this.ensureCompatibleMode("auto"===t?this.mode:t,i)}ensureCompatibleMode(t,i){const{alphaChannel:s}=this,e=C(t);if(s&&!e){const s=j(t);return i&&console.warn(`setting format to (${s}) as the provided one (${t}) does not support alpha`),s}if(!s&&e){const s=S(t);return i&&console.warn(`setting format to (${s}) as the provided one (${t}) does not support alpha`),s}return t}captureHueSliderColor(t){const{dimensions:{slider:{width:i}}}=this;this.internalColorSet(this.baseColorFieldColor.hue(c/i*t),!1)}captureOpacitySliderValue(t){const{dimensions:{slider:{width:i}}}=this,s=w(h.max/i*t);this.internalColorSet(this.baseColorFieldColor.alpha(s),!1)}internalColorSet(t,i=!0,s="user-interaction"){i&&k(t,this.color)||(this.internalColorUpdateContext=s,this.color=t,this.value=this.toValue(t),this.internalColorUpdateContext=null)}toValue(t,i=this.mode){if(!t)return null;if(i.includes("hex")){const s=i===v.HEXA;return g(b(t.round(),s),s)}if(i.includes("-css")){const s=t[i.replace("-css","").replace("a","")]().round().string();return(i.endsWith("a")||i.endsWith("a-css"))&&1===t.alpha()?`${s.slice(0,3)}a(${s.slice(4,-1)}, ${t.alpha()})`:s}const s=t[S(i)]().round().object();return i.endsWith("a")?A(s):s}getSliderCapSpacing(){const{dimensions:{slider:{height:t},thumb:{radius:i}}}=this;return 2*i-t}updateDimensions(t="m"){this.dimensions=l[t]}drawColorField(){const t=this.colorFieldRenderingContext,{dimensions:{colorField:{height:i,width:s}}}=this;t.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).alpha(1).string(),t.fillRect(0,0,s,i);const e=t.createLinearGradient(0,0,s,0);e.addColorStop(0,"rgba(255,255,255,1)"),e.addColorStop(1,"rgba(255,255,255,0)"),t.fillStyle=e,t.fillRect(0,0,s,i);const a=t.createLinearGradient(0,0,0,i);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),t.fillStyle=a,t.fillRect(0,0,s,i),this.drawActiveColorFieldColor()}setCanvasContextSize(t,{height:i,width:s}){if(!t)return;const e=window.devicePixelRatio||1;t.width=s*e,t.height=i*e,t.style.height=`${i}px`,t.style.width=`${s}px`,t.getContext("2d").scale(e,e)}updateCanvasSize(t="all"){var i,s,e;const{dimensions:a}=this;"all"!==t&&"color-field"!==t||this.setCanvasContextSize(null===(i=this.colorFieldRenderingContext)||void 0===i?void 0:i.canvas,a.colorField);const o={width:a.slider.width,height:a.slider.height+2*(a.thumb.radius-a.slider.height/2)};"all"!==t&&"hue-slider"!==t||this.setCanvasContextSize(null===(s=this.hueSliderRenderingContext)||void 0===s?void 0:s.canvas,o),"all"!==t&&"opacity-slider"!==t||this.setCanvasContextSize(null===(e=this.opacitySliderRenderingContext)||void 0===e?void 0:e.canvas,o)}drawActiveColorFieldColor(){const{color:t}=this;if(!t)return;const i=t.hsv(),{dimensions:{colorField:{height:s,width:e},thumb:{radius:a}}}=this,o=i.saturationv()/(r.s/e),n=s-i.value()/(r.v/s);requestAnimationFrame((()=>{this.colorFieldScopeLeft=o,this.colorFieldScopeTop=n})),this.drawThumb(this.colorFieldRenderingContext,a,o,n,i)}drawThumb(t,i,s,e,a){const o=2*Math.PI;t.beginPath(),t.arc(s,e,i,0,o),t.fillStyle="#fff",t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),t.beginPath(),t.arc(s,e,i-3,0,o),t.fillStyle=a.rgb().alpha(1).string(),t.fill()}drawActiveHueSliderColor(){const{color:t}=this;if(!t)return;const i=t.hsv().saturationv(100).value(100),{dimensions:{slider:{width:s},thumb:{radius:e}}}=this,a=i.hue()/(c/s),o=e,n=this.getSliderBoundX(a,s,e);requestAnimationFrame((()=>{this.hueScopeLeft=n})),this.drawThumb(this.hueSliderRenderingContext,e,n,o,i)}drawHueSlider(){const t=this.hueSliderRenderingContext,{dimensions:{slider:{height:i,width:s},thumb:{radius:e}}}=this,o=e-i/2,n=t.createLinearGradient(0,0,s,0),l=["red","yellow","lime","cyan","blue","magenta","#ff0004"],r=1/(l.length-1);let h=0;l.forEach((t=>{n.addColorStop(h,a(t).string()),h+=r})),t.clearRect(0,0,s,i+2*this.getSliderCapSpacing()),this.drawSliderPath(t,i,s,0,o),t.fillStyle=n,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveHueSliderColor()}drawOpacitySlider(){const t=this.opacitySliderRenderingContext,{baseColorFieldColor:i,dimensions:{slider:{height:s,width:e},thumb:{radius:a}}}=this,o=a-s/2;t.clearRect(0,0,e,s+2*this.getSliderCapSpacing());const n=t.createLinearGradient(0,o,e,0),l=i.rgb().alpha(0),r=i.rgb().alpha(.5),h=i.rgb().alpha(1);n.addColorStop(0,l.string()),n.addColorStop(.5,r.string()),n.addColorStop(1,h.string()),this.drawSliderPath(t,s,e,0,o);const c=t.createPattern(this.getCheckeredBackgroundPattern(),"repeat");t.fillStyle=c,t.fill(),t.fillStyle=n,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveOpacitySliderColor()}drawSliderPath(t,i,s,e,a){const o=i/2+1;t.beginPath(),t.moveTo(e+o,a),t.lineTo(e+s-o,a),t.quadraticCurveTo(e+s,a,e+s,a+o),t.lineTo(e+s,a+i-o),t.quadraticCurveTo(e+s,a+i,e+s-o,a+i),t.lineTo(e+o,a+i),t.quadraticCurveTo(e,a+i,e,a+i-o),t.lineTo(e,a+o),t.quadraticCurveTo(e,a,e+o,a),t.closePath()}getCheckeredBackgroundPattern(){if(this.checkerPattern)return this.checkerPattern;const t=document.createElement("canvas");t.width=10,t.height=10;const i=t.getContext("2d");return i.fillStyle="#ccc",i.fillRect(0,0,10,10),i.fillStyle="#fff",i.fillRect(0,0,5,5),i.fillRect(5,5,5,5),this.checkerPattern=t,t}drawActiveOpacitySliderColor(){const{color:t}=this;if(!t)return;const i=t,{dimensions:{slider:{width:s},thumb:{radius:e}}}=this,a=x(i.alpha())/(h.max/s),o=e,n=this.getSliderBoundX(a,s,e);requestAnimationFrame((()=>{this.opacityScopeLeft=n})),this.drawThumb(this.opacitySliderRenderingContext,e,n,o,i)}getSliderBoundX(t,i,s){const e=U(t,i,s);return 0===e?t:-1===e?K(t,0,i,s,2*s):K(t,0,i,i-2*s,i-s)}updateColorFromChannels(t){this.internalColorSet(a(t,this.channelMode))}updateChannelsFromColor(t){this.channels=t?this.toChannels(t):[null,null,null,null]}toChannels(t){const{channelMode:i}=this,s=t[i]().array().map(((t,i)=>3===i?t:Math.floor(t)));return 3===s.length&&s.push(1),s}getAdjustedScopePosition(t,i){return[t-d/2,i-d/2]}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{alphaChannel:["handleAlphaChannelChange","handleFormatOrAlphaChannelChange"],color:["handleColorChange"],format:["handleFormatOrAlphaChannelChange"],scale:["handleScaleChange"],messageOverrides:["onMessagesChange"],value:["handleValueChange"],effectiveLocale:["effectiveLocaleChange"]}}};q.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:inline-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){--calcite-color-picker-spacing:8px}:host([scale=s]) .container{inline-size:160px}:host([scale=s]) .saved-colors{gap:0.25rem;grid-template-columns:repeat(auto-fill, 20px)}:host([scale=m]){--calcite-color-picker-spacing:12px}:host([scale=m]) .container{inline-size:272px}:host([scale=l]){--calcite-color-picker-spacing:16px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{inline-size:464px}:host([scale=l]) .section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, 32px)}:host([scale=l]) .control-section{flex-wrap:nowrap;align-items:baseline;flex-wrap:wrap}:host([scale=l]) .color-hex-options{display:flex;flex-shrink:1;flex-direction:column;justify-content:space-around}:host([scale=l]) .color-mode-container{flex-shrink:3}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.control-and-scope{position:relative;display:flex;cursor:pointer;touch-action:none}.scope{pointer-events:none;position:absolute;z-index:var(--calcite-app-z-index);block-size:1px;inline-size:1px;border-radius:9999px;background-color:transparent;font-size:var(--calcite-font-size--1);outline-color:transparent}.scope:focus{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:11px}.hex-and-channels-group{inline-size:100%}.hex-and-channels-group,.control-section{display:flex;flex-direction:row;flex-wrap:wrap}.section{padding-block:0 var(--calcite-color-picker-spacing);padding-inline:var(--calcite-color-picker-spacing)}.section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}.sliders{display:flex;flex-direction:column;justify-content:space-between;margin-inline-start:var(--calcite-color-picker-spacing)}.preview-and-sliders{display:flex;align-items:center;padding:var(--calcite-color-picker-spacing)}.color-hex-options,.section--split{flex-grow:1}.header{display:flex;align-items:center;justify-content:space-between;color:var(--calcite-ui-text-1)}.color-mode-container{padding-block-start:var(--calcite-color-picker-spacing)}.channels{display:flex;row-gap:0.125rem}.channel[data-channel-index="3"]{inline-size:159px}:host([scale=s]) .channels{flex-wrap:wrap}:host([scale=s]) .channel{flex-basis:30%;flex-grow:1}:host([scale=s]) .channel[data-channel-index="3"]{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .channel[data-channel-index="3"]{inline-size:131px}.saved-colors{display:grid;gap:0.5rem;padding-block-start:var(--calcite-color-picker-spacing);grid-template-columns:repeat(auto-fill, 24px)}.saved-colors-buttons{display:flex}.saved-color{outline-offset:0;outline-color:transparent;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}';export{q as calcite_color_picker}
|
@@ -0,0 +1,21 @@
|
|
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
|
+
import{c as a}from"./p-225c4ca4.js";
|
7
|
+
/** @license
|
8
|
+
* Copyright 2022 Esri
|
9
|
+
*
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
* you may not use this file except in compliance with the License.
|
12
|
+
* You may obtain a copy of the License at
|
13
|
+
*
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
*
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
* See the License for the specific language governing permissions and
|
20
|
+
* limitations under the License.
|
21
|
+
*/const{state:e,onChange:s}=a({managedLayers:[],managedTables:[],highlightHandles:[],removeHandles:()=>{e.highlightHandles.forEach((a=>null==a?void 0:a.remove())),e.highlightHandles=[]}}),n=new CustomEvent("managedLayersChanged",{bubbles:!0,cancelable:!1,composed:!0});s("managedLayers",(()=>{dispatchEvent(n)}));export{e as s}
|
@@ -0,0 +1,11 @@
|
|
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
|
+
import{q as n,c as t}from"./p-def6a0b3.js";import{h as e}from"./p-78780f63.js";
|
7
|
+
/*!
|
8
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
10
|
+
* v1.11.1-next.1
|
11
|
+
*/const o="hidden-form-input";function r(n){return"checked"in n}const s=new WeakMap,c=new WeakSet;function i(n){const{formEl:t}=n;return!!t&&(t.requestSubmit(),!0)}function u(n){n.formEl?.reset()}function f(n){const{el:e,value:o}=n,i=a(n);if(!i||function(n,e){if(t(e.parentElement,"[form]"))return!0;const o="calciteInternalFormComponentRegister";let r=!1;return n.addEventListener(o,(n=>{r=n.composedPath().some((n=>c.has(n))),n.stopPropagation()}),{once:!0}),e.dispatchEvent(new CustomEvent(o,{bubbles:!0,composed:!0})),r}(i,e))return;n.formEl=i,n.defaultValue=o,r(n)&&(n.defaultChecked=n.checked);const u=(n.onFormReset||l).bind(n);i.addEventListener("reset",u),s.set(n.el,u),c.add(e)}function a(e){const{el:o,form:r}=e;return r?n(o,{id:r}):t(o,"form")}function l(){r(this)?this.checked=this.defaultChecked:this.value=this.defaultValue}function m(n){const{el:t,formEl:e}=n;if(!e)return;const o=s.get(t);e.removeEventListener("reset",o),s.delete(t),n.formEl=null,c.delete(t)}function d(n,t){n.defaultValue=t}const p=n=>{n.target.dispatchEvent(new CustomEvent("calciteInternalHiddenInputChange",{bubbles:!0}))},h=n=>n.removeEventListener("change",p);function b(n,t,e){const{defaultValue:o,disabled:s,form:c,name:i,required:u}=n;t.defaultValue=o,t.disabled=s,t.name=i,t.required=u,t.tabIndex=-1,c?t.setAttribute("form",c):t.removeAttribute("form"),r(n)?(t.checked=n.checked,t.defaultChecked=n.defaultChecked,t.value=n.checked?e||"on":""):t.value=e||"",n.syncHiddenFormInput?.(t)}const w=({component:n})=>(function(n){const{el:t,formEl:e,name:r,value:s}=n,{ownerDocument:c}=t,i=t.querySelectorAll(`input[slot="${o}"]`);if(!e||!r)return void i.forEach((n=>{h(n),n.remove()}));const u=Array.isArray(s)?s:[s],f=[],a=new Set;let l;i.forEach((t=>{const e=u.find((n=>n==t.value));null!=e?(a.add(e),b(n,t,e)):f.push(t)})),u.forEach((t=>{if(a.has(t))return;let e=f.pop();e||(e=c.createElement("input"),e.slot=o),l||(l=c.createDocumentFragment()),l.append(e),e.addEventListener("change",p),b(n,e,t)})),l&&t.append(l),f.forEach((n=>{h(n),n.remove()}))}(n),e("slot",{name:o}));export{w as H,d as a,f as c,m as d,a as f,u as r,i as s}
|
@@ -0,0 +1,11 @@
|
|
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
|
+
import{r as t,c as i,h as e,g as a}from"./p-78780f63.js";import{c as n,u as o,d as s}from"./p-d9ba28a0.js";import{c,s as l,a as r}from"./p-da205222.js";import"./p-01633f02.js";
|
7
|
+
/*!
|
8
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
10
|
+
* v1.11.1-next.1
|
11
|
+
*/const d=class{constructor(e){t(this,e),this.calciteSplitButtonPrimaryClick=i(this,"calciteSplitButtonPrimaryClick",6),this.calciteSplitButtonSecondaryClick=i(this,"calciteSplitButtonSecondaryClick",6),this.calciteSplitButtonPrimaryClickHandler=()=>this.calciteSplitButtonPrimaryClick.emit(),this.calciteSplitButtonSecondaryClickHandler=()=>this.calciteSplitButtonSecondaryClick.emit(),this.appearance="solid",this.kind="brand",this.disabled=!1,this.active=!1,this.dropdownIconType="chevron",this.dropdownLabel=void 0,this.loading=!1,this.overlayPositioning="absolute",this.primaryIconEnd=void 0,this.primaryIconFlipRtl=void 0,this.primaryIconStart=void 0,this.primaryLabel=void 0,this.primaryText=void 0,this.scale="m",this.width="auto"}handleDisabledChange(t){t||(this.active=!1)}activeHandler(){this.disabled&&(this.active=!1)}async setFocus(){await c(this),this.el.focus()}connectedCallback(){n(this)}componentWillLoad(){l(this)}componentDidLoad(){r(this)}componentDidRender(){o(this)}disconnectedCallback(){s(this)}render(){return e("div",{class:"container"},e("calcite-button",{appearance:this.appearance,disabled:this.disabled,"icon-end":this.primaryIconEnd?this.primaryIconEnd:null,"icon-start":this.primaryIconStart?this.primaryIconStart:null,iconFlipRtl:this.primaryIconFlipRtl?this.primaryIconFlipRtl:null,kind:this.kind,label:this.primaryLabel,loading:this.loading,onClick:this.calciteSplitButtonPrimaryClickHandler,scale:this.scale,splitChild:"primary",type:"button",width:"auto"===this.width?"auto":"full"},this.primaryText),e("div",{class:"divider-container"},e("div",{class:"divider"})),e("calcite-dropdown",{disabled:this.disabled,onClick:this.calciteSplitButtonSecondaryClickHandler,open:this.active,overlayPositioning:this.overlayPositioning,placement:"bottom-end",scale:this.scale,width:this.scale},e("calcite-button",{appearance:this.appearance,disabled:this.disabled,"icon-start":this.dropdownIcon,kind:this.kind,label:this.dropdownLabel,scale:this.scale,slot:"trigger",splitChild:"secondary",type:"button"}),e("slot",null)))}get dropdownIcon(){return"chevron"===this.dropdownIconType?"chevronDown":"caret"===this.dropdownIconType?"caretDown":"ellipsis"===this.dropdownIconType?"ellipsis":"handle-vertical"}static get delegatesFocus(){return!0}get el(){return a(this)}static get watchers(){return{disabled:["handleDisabledChange"],active:["activeHandler"]}}};d.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:inline-block}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host:host([kind=brand]){--calcite-split-button-background:var(--calcite-ui-brand);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host:host([kind=danger]){--calcite-split-button-background:var(--calcite-ui-danger);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host:host([kind=neutral]){--calcite-split-button-background:var(--calcite-ui-foreground-3);--calcite-split-button-divider:var(--calcite-ui-text-1)}:host:host([kind=inverse]){--calcite-split-button-background:var(--calcite-ui-inverse);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host([appearance=transparent]):host([kind=brand]){--calcite-split-button-divider:var(--calcite-ui-brand);--calcite-split-button-background:transparent}:host([appearance=transparent]):host([kind=danger]){--calcite-split-button-divider:var(--calcite-ui-danger);--calcite-split-button-background:transparent}:host([appearance=transparent]):host([kind=neutral]){--calcite-split-button-divider:var(--calcite-ui-text-1);--calcite-split-button-background:transparent}:host([appearance=transparent]):host([kind=inverse]){--calcite-split-button-divider:var(--calcite-ui-foreground-1);--calcite-split-button-background:transparent}:host([appearance=outline]){--calcite-split-button-background:transparent}:host([appearance=outline-fill]){--calcite-split-button-background:var(--calcite-ui-foreground-1)}:host([appearance=outline]):host([kind=brand]),:host([appearance=outline-fill]):host([kind=brand]){--calcite-split-button-divider:var(--calcite-ui-brand)}:host([appearance=outline]):host([kind=danger]),:host([appearance=outline-fill]):host([kind=danger]){--calcite-split-button-divider:var(--calcite-ui-danger)}:host([appearance=outline]):host([kind=neutral]),:host([appearance=outline-fill]):host([kind=neutral]){--calcite-split-button-divider:var(--calcite-ui-border-1);--calcite-split-button-background:var(--calcite-ui-border-1)}:host([appearance=outline]):host([kind=inverse]),:host([appearance=outline-fill]):host([kind=inverse]){--calcite-split-button-divider:var(--calcite-ui-inverse)}.container{display:flex;align-items:stretch}.container>calcite-dropdown>calcite-button{block-size:100%;vertical-align:top}.divider-container{display:flex;inline-size:1px;align-items:stretch;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background-color:var(--calcite-split-button-background)}.divider{margin-block:0.25rem;display:inline-block;inline-size:1px;background-color:var(--calcite-split-button-divider)}:host([appearance=outline-fill]) .divider-container,:host([appearance=outline]) .divider-container{border-block:1px solid var(--calcite-split-button-divider)}:host([appearance=outline-fill]):hover .divider-container,:host([appearance=outline]):hover .divider-container{background-color:var(--calcite-split-button-divider)}:host([appearance=outline-fill]:hover) .divider-container,:host([appearance=outline]:hover) .divider-container{background-color:var(--calcite-split-button-divider)}:host([appearance=outline-fill]:focus-within):host([kind=brand]),:host([appearance=outline]:focus-within):host([kind=brand]){--calcite-split-button-divider:var(--calcite-ui-brand-press)}:host([appearance=outline-fill]:focus-within):host([kind=danger]),:host([appearance=outline]:focus-within):host([kind=danger]){--calcite-split-button-divider:var(--calcite-ui-danger-press)}:host([appearance=outline-fill]:focus-within) .divider-container,:host([appearance=outline]:focus-within) .divider-container{background-color:var(--calcite-split-button-divider)}:host([disabled]) .divider-container{opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) calcite-dropdown>calcite-button{pointer-events:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hidden]){display:none}[hidden]{display:none}";export{d as calcite_split_button}
|