@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,1674 @@
|
|
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, proxyCustomElement, HTMLElement, forceUpdate } from '@stencil/core/internal/client';
|
7
|
+
import { s as store, i as interactiveLegendState } from './store.js';
|
8
|
+
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers.js';
|
9
|
+
import { l as loadModules } from './loadModules2.js';
|
10
|
+
import { h as handleFilterChange, a as generateData, g as getTheme, v as validateInteractivity, b as getParentLegendElementInfoData, c as getCategoryData, d as checkNoneSelected, e as handleFeatureCount, f as createInteractiveLegendDataForLayer, u as updateStore, i as handleFilter, j as getIntLegendLayerData } from './helpers.js';
|
11
|
+
import { d as defineCustomElement$c } from './action.js';
|
12
|
+
import { d as defineCustomElement$b } from './button.js';
|
13
|
+
import { d as defineCustomElement$a } from './icon.js';
|
14
|
+
import { d as defineCustomElement$9 } from './loader.js';
|
15
|
+
import { d as defineCustomElement$8 } from './tooltip.js';
|
16
|
+
import { d as defineCustomElement$7 } from './instant-apps-interactive-legend-count2.js';
|
17
|
+
import { d as defineCustomElement$6 } from './instant-apps-interactive-legend-group-legend-element2.js';
|
18
|
+
import { d as defineCustomElement$5 } from './instant-apps-interactive-legend-layer-element2.js';
|
19
|
+
import { d as defineCustomElement$4 } from './instant-apps-interactive-legend-layer-element-caption2.js';
|
20
|
+
import { d as defineCustomElement$3 } from './instant-apps-interactive-legend-legend-element2.js';
|
21
|
+
import { d as defineCustomElement$2 } from './instant-apps-interactive-legend-legend-element-caption2.js';
|
22
|
+
import { d as defineCustomElement$1 } from './instant-apps-interactive-legend-relationship2.js';
|
23
|
+
|
24
|
+
const DPI = 96;
|
25
|
+
function pt2px(pt) {
|
26
|
+
if (!pt) {
|
27
|
+
return 0;
|
28
|
+
}
|
29
|
+
return (pt / 72) * DPI;
|
30
|
+
}
|
31
|
+
|
32
|
+
var maquette_umd = createCommonjsModule(function (module, exports) {
|
33
|
+
(function (global, factory) {
|
34
|
+
factory(exports) ;
|
35
|
+
})(commonjsGlobal, (function (exports) {
|
36
|
+
var NAMESPACE_W3 = "http://www.w3.org/";
|
37
|
+
var NAMESPACE_SVG = "".concat(NAMESPACE_W3, "2000/svg");
|
38
|
+
var NAMESPACE_XLINK = "".concat(NAMESPACE_W3, "1999/xlink");
|
39
|
+
var emptyArray = [];
|
40
|
+
var extend = function (base, overrides) {
|
41
|
+
var result = {};
|
42
|
+
Object.keys(base).forEach(function (key) {
|
43
|
+
result[key] = base[key];
|
44
|
+
});
|
45
|
+
if (overrides) {
|
46
|
+
Object.keys(overrides).forEach(function (key) {
|
47
|
+
result[key] = overrides[key];
|
48
|
+
});
|
49
|
+
}
|
50
|
+
return result;
|
51
|
+
};
|
52
|
+
var same = function (vnode1, vnode2) {
|
53
|
+
if (vnode1.vnodeSelector !== vnode2.vnodeSelector) {
|
54
|
+
return false;
|
55
|
+
}
|
56
|
+
if (vnode1.properties && vnode2.properties) {
|
57
|
+
if (vnode1.properties.key !== vnode2.properties.key) {
|
58
|
+
return false;
|
59
|
+
}
|
60
|
+
return vnode1.properties.bind === vnode2.properties.bind;
|
61
|
+
}
|
62
|
+
return !vnode1.properties && !vnode2.properties;
|
63
|
+
};
|
64
|
+
var checkStyleValue = function (styleValue) {
|
65
|
+
if (typeof styleValue !== "string") {
|
66
|
+
throw new Error("Style values must be strings");
|
67
|
+
}
|
68
|
+
};
|
69
|
+
var findIndexOfChild = function (children, sameAs, start) {
|
70
|
+
if (sameAs.vnodeSelector !== "") {
|
71
|
+
// Never scan for text-nodes
|
72
|
+
for (var i = start; i < children.length; i++) {
|
73
|
+
if (same(children[i], sameAs)) {
|
74
|
+
return i;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
return -1;
|
79
|
+
};
|
80
|
+
var checkDistinguishable = function (childNodes, indexToCheck, parentVNode, operation) {
|
81
|
+
var childNode = childNodes[indexToCheck];
|
82
|
+
if (childNode.vnodeSelector === "") {
|
83
|
+
return; // Text nodes need not be distinguishable
|
84
|
+
}
|
85
|
+
var properties = childNode.properties;
|
86
|
+
var key = properties
|
87
|
+
? properties.key === undefined
|
88
|
+
? properties.bind
|
89
|
+
: properties.key
|
90
|
+
: undefined;
|
91
|
+
if (!key) {
|
92
|
+
// A key is just assumed to be unique
|
93
|
+
for (var i = 0; i < childNodes.length; i++) {
|
94
|
+
if (i !== indexToCheck) {
|
95
|
+
var node = childNodes[i];
|
96
|
+
if (same(node, childNode)) {
|
97
|
+
throw {
|
98
|
+
error: new Error("".concat(parentVNode.vnodeSelector, " had a ").concat(childNode.vnodeSelector, " child ").concat(operation === "added" ? operation : "removed", ", but there is now more than one. You must add unique key properties to make them distinguishable.")),
|
99
|
+
parentNode: parentVNode,
|
100
|
+
childNode: childNode,
|
101
|
+
};
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
};
|
107
|
+
var nodeAdded = function (vNode) {
|
108
|
+
if (vNode.properties) {
|
109
|
+
var enterAnimation = vNode.properties.enterAnimation;
|
110
|
+
if (enterAnimation) {
|
111
|
+
enterAnimation(vNode.domNode, vNode.properties);
|
112
|
+
}
|
113
|
+
}
|
114
|
+
};
|
115
|
+
var removedNodes = [];
|
116
|
+
var requestedIdleCallback = false;
|
117
|
+
var visitRemovedNode = function (node) {
|
118
|
+
(node.children || []).forEach(visitRemovedNode);
|
119
|
+
if (node.properties && node.properties.afterRemoved) {
|
120
|
+
node.properties.afterRemoved.apply(node.properties.bind || node.properties, [
|
121
|
+
node.domNode,
|
122
|
+
]);
|
123
|
+
}
|
124
|
+
};
|
125
|
+
var processPendingNodeRemovals = function () {
|
126
|
+
requestedIdleCallback = false;
|
127
|
+
removedNodes.forEach(visitRemovedNode);
|
128
|
+
removedNodes.length = 0;
|
129
|
+
};
|
130
|
+
var scheduleNodeRemoval = function (vNode) {
|
131
|
+
removedNodes.push(vNode);
|
132
|
+
if (!requestedIdleCallback) {
|
133
|
+
requestedIdleCallback = true;
|
134
|
+
if (typeof window !== "undefined" && "requestIdleCallback" in window) {
|
135
|
+
window.requestIdleCallback(processPendingNodeRemovals, { timeout: 16 });
|
136
|
+
}
|
137
|
+
else {
|
138
|
+
setTimeout(processPendingNodeRemovals, 16);
|
139
|
+
}
|
140
|
+
}
|
141
|
+
};
|
142
|
+
var nodeToRemove = function (vNode) {
|
143
|
+
var domNode = vNode.domNode;
|
144
|
+
if (vNode.properties) {
|
145
|
+
var exitAnimation = vNode.properties.exitAnimation;
|
146
|
+
if (exitAnimation) {
|
147
|
+
domNode.style.pointerEvents = "none";
|
148
|
+
var removeDomNode = function () {
|
149
|
+
if (domNode.parentNode) {
|
150
|
+
domNode.parentNode.removeChild(domNode);
|
151
|
+
scheduleNodeRemoval(vNode);
|
152
|
+
}
|
153
|
+
};
|
154
|
+
exitAnimation(domNode, removeDomNode, vNode.properties);
|
155
|
+
return;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
if (domNode.parentNode) {
|
159
|
+
domNode.parentNode.removeChild(domNode);
|
160
|
+
scheduleNodeRemoval(vNode);
|
161
|
+
}
|
162
|
+
};
|
163
|
+
var setProperties = function (domNode, properties, projectionOptions) {
|
164
|
+
if (!properties) {
|
165
|
+
return;
|
166
|
+
}
|
167
|
+
var eventHandlerInterceptor = projectionOptions.eventHandlerInterceptor;
|
168
|
+
var propNames = Object.keys(properties);
|
169
|
+
var propCount = propNames.length;
|
170
|
+
var _loop_1 = function (i) {
|
171
|
+
var propName = propNames[i];
|
172
|
+
var propValue = properties[propName];
|
173
|
+
if (propName === "className") {
|
174
|
+
throw new Error('Property "className" is not supported, use "class".');
|
175
|
+
}
|
176
|
+
else if (propName === "class") {
|
177
|
+
toggleClasses(domNode, propValue, true);
|
178
|
+
}
|
179
|
+
else if (propName === "classes") {
|
180
|
+
// object with string keys and boolean values
|
181
|
+
var classNames = Object.keys(propValue);
|
182
|
+
var classNameCount = classNames.length;
|
183
|
+
for (var j = 0; j < classNameCount; j++) {
|
184
|
+
var className = classNames[j];
|
185
|
+
if (propValue[className]) {
|
186
|
+
domNode.classList.add(className);
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
190
|
+
else if (propName === "styles") {
|
191
|
+
// object with string keys and string (!) values
|
192
|
+
var styleNames = Object.keys(propValue);
|
193
|
+
var styleCount = styleNames.length;
|
194
|
+
for (var j = 0; j < styleCount; j++) {
|
195
|
+
var styleName = styleNames[j];
|
196
|
+
var styleValue = propValue[styleName];
|
197
|
+
if (styleValue) {
|
198
|
+
checkStyleValue(styleValue);
|
199
|
+
projectionOptions.styleApplyer(domNode, styleName, styleValue);
|
200
|
+
}
|
201
|
+
}
|
202
|
+
}
|
203
|
+
else if (propName !== "key" && propValue !== null && propValue !== undefined) {
|
204
|
+
var type = typeof propValue;
|
205
|
+
if (type === "function") {
|
206
|
+
if (propName.lastIndexOf("on", 0) === 0) {
|
207
|
+
// lastIndexOf(,0)===0 -> startsWith
|
208
|
+
if (eventHandlerInterceptor) {
|
209
|
+
propValue = eventHandlerInterceptor(propName, propValue, domNode, properties); // intercept eventhandlers
|
210
|
+
}
|
211
|
+
if (propName === "oninput") {
|
212
|
+
(function () {
|
213
|
+
// record the evt.target.value, because IE and Edge sometimes do a requestAnimationFrame between changing value and running oninput
|
214
|
+
var oldPropValue = propValue;
|
215
|
+
propValue = function (evt) {
|
216
|
+
oldPropValue.apply(this, [evt]);
|
217
|
+
evt.target["oninput-value"] = evt.target.value; // may be HTMLTextAreaElement as well
|
218
|
+
};
|
219
|
+
})();
|
220
|
+
}
|
221
|
+
}
|
222
|
+
domNode[propName] = propValue;
|
223
|
+
}
|
224
|
+
else if (projectionOptions.namespace === NAMESPACE_SVG) {
|
225
|
+
if (propName === "href") {
|
226
|
+
domNode.setAttributeNS(NAMESPACE_XLINK, propName, propValue);
|
227
|
+
}
|
228
|
+
else {
|
229
|
+
// all SVG attributes are read-only in DOM, so...
|
230
|
+
domNode.setAttribute(propName, propValue);
|
231
|
+
}
|
232
|
+
}
|
233
|
+
else if (type === "string" && propName !== "value" && propName !== "innerHTML") {
|
234
|
+
domNode.setAttribute(propName, propValue);
|
235
|
+
}
|
236
|
+
else {
|
237
|
+
domNode[propName] = propValue;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
};
|
241
|
+
for (var i = 0; i < propCount; i++) {
|
242
|
+
_loop_1(i);
|
243
|
+
}
|
244
|
+
};
|
245
|
+
var addChildren = function (domNode, children, projectionOptions) {
|
246
|
+
if (!children) {
|
247
|
+
return;
|
248
|
+
}
|
249
|
+
for (var _i = 0, children_1 = children; _i < children_1.length; _i++) {
|
250
|
+
var child = children_1[_i];
|
251
|
+
createDom(child, domNode, undefined, projectionOptions);
|
252
|
+
}
|
253
|
+
};
|
254
|
+
var initPropertiesAndChildren = function (domNode, vnode, projectionOptions) {
|
255
|
+
addChildren(domNode, vnode.children, projectionOptions); // children before properties, needed for value property of <select>.
|
256
|
+
if (vnode.text) {
|
257
|
+
domNode.textContent = vnode.text;
|
258
|
+
}
|
259
|
+
setProperties(domNode, vnode.properties, projectionOptions);
|
260
|
+
if (vnode.properties && vnode.properties.afterCreate) {
|
261
|
+
vnode.properties.afterCreate.apply(vnode.properties.bind || vnode.properties, [
|
262
|
+
domNode,
|
263
|
+
projectionOptions,
|
264
|
+
vnode.vnodeSelector,
|
265
|
+
vnode.properties,
|
266
|
+
vnode.children,
|
267
|
+
]);
|
268
|
+
}
|
269
|
+
};
|
270
|
+
var createDom = function (vnode, parentNode, insertBefore, projectionOptions) {
|
271
|
+
var _a;
|
272
|
+
var domNode;
|
273
|
+
var start = 0;
|
274
|
+
var vnodeSelector = vnode.vnodeSelector;
|
275
|
+
var doc = parentNode.ownerDocument;
|
276
|
+
if (vnodeSelector === "") {
|
277
|
+
if (vnode.domNode) {
|
278
|
+
vnode.domNode.nodeValue = vnode.text;
|
279
|
+
}
|
280
|
+
else {
|
281
|
+
domNode = vnode.domNode = doc.createTextNode(vnode.text);
|
282
|
+
if (insertBefore !== undefined) {
|
283
|
+
parentNode.insertBefore(domNode, insertBefore);
|
284
|
+
}
|
285
|
+
else {
|
286
|
+
parentNode.appendChild(domNode);
|
287
|
+
}
|
288
|
+
}
|
289
|
+
}
|
290
|
+
else {
|
291
|
+
for (var i = 0; i <= vnodeSelector.length; ++i) {
|
292
|
+
var c = vnodeSelector.charAt(i);
|
293
|
+
if (i === vnodeSelector.length || c === "." || c === "#") {
|
294
|
+
var type = vnodeSelector.charAt(start - 1);
|
295
|
+
var found = vnodeSelector.slice(start, i);
|
296
|
+
if (type === ".") {
|
297
|
+
domNode.classList.add(found);
|
298
|
+
}
|
299
|
+
else if (type === "#") {
|
300
|
+
domNode.id = found;
|
301
|
+
}
|
302
|
+
else {
|
303
|
+
if (found === "svg") {
|
304
|
+
projectionOptions = extend(projectionOptions, {
|
305
|
+
namespace: NAMESPACE_SVG,
|
306
|
+
});
|
307
|
+
}
|
308
|
+
if (projectionOptions.namespace !== undefined) {
|
309
|
+
domNode = vnode.domNode = doc.createElementNS(projectionOptions.namespace, found);
|
310
|
+
}
|
311
|
+
else {
|
312
|
+
domNode = vnode.domNode =
|
313
|
+
vnode.domNode ||
|
314
|
+
(((_a = vnode.properties) === null || _a === void 0 ? void 0 : _a.is)
|
315
|
+
? doc.createElement(found, { is: vnode.properties.is })
|
316
|
+
: doc.createElement(found));
|
317
|
+
if (found === "input" && vnode.properties && vnode.properties.type !== undefined) {
|
318
|
+
// IE8 and older don't support setting input type after the DOM Node has been added to the document
|
319
|
+
domNode.setAttribute("type", vnode.properties.type);
|
320
|
+
}
|
321
|
+
}
|
322
|
+
if (insertBefore !== undefined) {
|
323
|
+
parentNode.insertBefore(domNode, insertBefore);
|
324
|
+
}
|
325
|
+
else if (domNode.parentNode !== parentNode) {
|
326
|
+
parentNode.appendChild(domNode);
|
327
|
+
}
|
328
|
+
}
|
329
|
+
start = i + 1;
|
330
|
+
}
|
331
|
+
}
|
332
|
+
initPropertiesAndChildren(domNode, vnode, projectionOptions);
|
333
|
+
}
|
334
|
+
};
|
335
|
+
var updateDom;
|
336
|
+
/**
|
337
|
+
* Adds or removes classes from an Element
|
338
|
+
* @param domNode the element
|
339
|
+
* @param classes a string separated list of classes
|
340
|
+
* @param on true means add classes, false means remove
|
341
|
+
*/
|
342
|
+
var toggleClasses = function (domNode, classes, on) {
|
343
|
+
if (!classes) {
|
344
|
+
return;
|
345
|
+
}
|
346
|
+
classes.split(" ").forEach(function (classToToggle) {
|
347
|
+
if (classToToggle) {
|
348
|
+
domNode.classList.toggle(classToToggle, on);
|
349
|
+
}
|
350
|
+
});
|
351
|
+
};
|
352
|
+
var updateProperties = function (domNode, previousProperties, properties, projectionOptions) {
|
353
|
+
if (!properties) {
|
354
|
+
return;
|
355
|
+
}
|
356
|
+
var propertiesUpdated = false;
|
357
|
+
var propNames = Object.keys(properties);
|
358
|
+
var propCount = propNames.length;
|
359
|
+
for (var i = 0; i < propCount; i++) {
|
360
|
+
var propName = propNames[i];
|
361
|
+
// assuming that properties will be nullified instead of missing is by design
|
362
|
+
var propValue = properties[propName];
|
363
|
+
var previousValue = previousProperties[propName];
|
364
|
+
if (propName === "class") {
|
365
|
+
if (previousValue !== propValue) {
|
366
|
+
toggleClasses(domNode, previousValue, false);
|
367
|
+
toggleClasses(domNode, propValue, true);
|
368
|
+
}
|
369
|
+
}
|
370
|
+
else if (propName === "classes") {
|
371
|
+
var classList = domNode.classList;
|
372
|
+
var classNames = Object.keys(propValue);
|
373
|
+
var classNameCount = classNames.length;
|
374
|
+
for (var j = 0; j < classNameCount; j++) {
|
375
|
+
var className = classNames[j];
|
376
|
+
var on = !!propValue[className];
|
377
|
+
var previousOn = !!previousValue[className];
|
378
|
+
if (on === previousOn) {
|
379
|
+
continue;
|
380
|
+
}
|
381
|
+
propertiesUpdated = true;
|
382
|
+
if (on) {
|
383
|
+
classList.add(className);
|
384
|
+
}
|
385
|
+
else {
|
386
|
+
classList.remove(className);
|
387
|
+
}
|
388
|
+
}
|
389
|
+
}
|
390
|
+
else if (propName === "styles") {
|
391
|
+
var styleNames = Object.keys(propValue);
|
392
|
+
var styleCount = styleNames.length;
|
393
|
+
for (var j = 0; j < styleCount; j++) {
|
394
|
+
var styleName = styleNames[j];
|
395
|
+
var newStyleValue = propValue[styleName];
|
396
|
+
var oldStyleValue = previousValue[styleName];
|
397
|
+
if (newStyleValue === oldStyleValue) {
|
398
|
+
continue;
|
399
|
+
}
|
400
|
+
propertiesUpdated = true;
|
401
|
+
if (newStyleValue) {
|
402
|
+
checkStyleValue(newStyleValue);
|
403
|
+
projectionOptions.styleApplyer(domNode, styleName, newStyleValue);
|
404
|
+
}
|
405
|
+
else {
|
406
|
+
projectionOptions.styleApplyer(domNode, styleName, "");
|
407
|
+
}
|
408
|
+
}
|
409
|
+
}
|
410
|
+
else {
|
411
|
+
if (!propValue && typeof previousValue === "string") {
|
412
|
+
propValue = "";
|
413
|
+
}
|
414
|
+
if (propName === "value") {
|
415
|
+
// value can be manipulated by the user directly and using event.preventDefault() is not an option
|
416
|
+
var domValue = domNode[propName];
|
417
|
+
if (domValue !== propValue && // The 'value' in the DOM tree !== newValue
|
418
|
+
(domNode["oninput-value"]
|
419
|
+
? domValue === domNode["oninput-value"] // If the last reported value to 'oninput' does not match domValue, do nothing and wait for oninput
|
420
|
+
: propValue !== previousValue) // Only update the value if the vdom changed
|
421
|
+
) {
|
422
|
+
// The edge cases are described in the tests
|
423
|
+
domNode[propName] = propValue; // Reset the value, even if the virtual DOM did not change
|
424
|
+
domNode["oninput-value"] = undefined;
|
425
|
+
} // else do not update the domNode, otherwise the cursor position would be changed
|
426
|
+
if (propValue !== previousValue) {
|
427
|
+
propertiesUpdated = true;
|
428
|
+
}
|
429
|
+
}
|
430
|
+
else if (propValue !== previousValue) {
|
431
|
+
var type = typeof propValue;
|
432
|
+
if (type !== "function" || !projectionOptions.eventHandlerInterceptor) {
|
433
|
+
// Function updates are expected to be handled by the EventHandlerInterceptor
|
434
|
+
if (projectionOptions.namespace === NAMESPACE_SVG) {
|
435
|
+
if (propName === "href") {
|
436
|
+
domNode.setAttributeNS(NAMESPACE_XLINK, propName, propValue);
|
437
|
+
}
|
438
|
+
else {
|
439
|
+
// all SVG attributes are read-only in DOM, so...
|
440
|
+
domNode.setAttribute(propName, propValue);
|
441
|
+
}
|
442
|
+
}
|
443
|
+
else if (type === "string" && propName !== "innerHTML") {
|
444
|
+
if (propName === "role" && propValue === "") {
|
445
|
+
domNode.removeAttribute(propName);
|
446
|
+
}
|
447
|
+
else {
|
448
|
+
domNode.setAttribute(propName, propValue);
|
449
|
+
}
|
450
|
+
}
|
451
|
+
else if (domNode[propName] !== propValue) {
|
452
|
+
// Comparison is here for side-effects in Edge with scrollLeft and scrollTop
|
453
|
+
domNode[propName] = propValue;
|
454
|
+
}
|
455
|
+
propertiesUpdated = true;
|
456
|
+
}
|
457
|
+
}
|
458
|
+
}
|
459
|
+
}
|
460
|
+
return propertiesUpdated;
|
461
|
+
};
|
462
|
+
var updateChildren = function (vnode, domNode, oldChildren, newChildren, projectionOptions) {
|
463
|
+
if (oldChildren === newChildren) {
|
464
|
+
return false;
|
465
|
+
}
|
466
|
+
oldChildren = oldChildren || emptyArray;
|
467
|
+
newChildren = newChildren || emptyArray;
|
468
|
+
var oldChildrenLength = oldChildren.length;
|
469
|
+
var newChildrenLength = newChildren.length;
|
470
|
+
var oldIndex = 0;
|
471
|
+
var newIndex = 0;
|
472
|
+
var i;
|
473
|
+
var textUpdated = false;
|
474
|
+
while (newIndex < newChildrenLength) {
|
475
|
+
var oldChild = oldIndex < oldChildrenLength ? oldChildren[oldIndex] : undefined;
|
476
|
+
var newChild = newChildren[newIndex];
|
477
|
+
if (oldChild !== undefined && same(oldChild, newChild)) {
|
478
|
+
textUpdated = updateDom(oldChild, newChild, projectionOptions) || textUpdated;
|
479
|
+
oldIndex++;
|
480
|
+
}
|
481
|
+
else {
|
482
|
+
var findOldIndex = findIndexOfChild(oldChildren, newChild, oldIndex + 1);
|
483
|
+
if (findOldIndex >= 0) {
|
484
|
+
// Remove preceding missing children
|
485
|
+
for (i = oldIndex; i < findOldIndex; i++) {
|
486
|
+
nodeToRemove(oldChildren[i]);
|
487
|
+
checkDistinguishable(oldChildren, i, vnode, "removed");
|
488
|
+
}
|
489
|
+
textUpdated =
|
490
|
+
updateDom(oldChildren[findOldIndex], newChild, projectionOptions) || textUpdated;
|
491
|
+
oldIndex = findOldIndex + 1;
|
492
|
+
}
|
493
|
+
else {
|
494
|
+
// New child
|
495
|
+
createDom(newChild, domNode, oldIndex < oldChildrenLength ? oldChildren[oldIndex].domNode : undefined, projectionOptions);
|
496
|
+
nodeAdded(newChild);
|
497
|
+
checkDistinguishable(newChildren, newIndex, vnode, "added");
|
498
|
+
}
|
499
|
+
}
|
500
|
+
newIndex++;
|
501
|
+
}
|
502
|
+
if (oldChildrenLength > oldIndex) {
|
503
|
+
// Remove child fragments
|
504
|
+
for (i = oldIndex; i < oldChildrenLength; i++) {
|
505
|
+
nodeToRemove(oldChildren[i]);
|
506
|
+
checkDistinguishable(oldChildren, i, vnode, "removed");
|
507
|
+
}
|
508
|
+
}
|
509
|
+
return textUpdated;
|
510
|
+
};
|
511
|
+
updateDom = function (previous, vnode, projectionOptions) {
|
512
|
+
var domNode = previous.domNode;
|
513
|
+
var textUpdated = false;
|
514
|
+
if (previous === vnode) {
|
515
|
+
return false; // By contract, VNode objects may not be modified anymore after passing them to maquette
|
516
|
+
}
|
517
|
+
var updated = false;
|
518
|
+
if (vnode.vnodeSelector === "") {
|
519
|
+
if (vnode.text !== previous.text) {
|
520
|
+
var newTextNode = domNode.ownerDocument.createTextNode(vnode.text);
|
521
|
+
domNode.parentNode.replaceChild(newTextNode, domNode);
|
522
|
+
vnode.domNode = newTextNode;
|
523
|
+
textUpdated = true;
|
524
|
+
return textUpdated;
|
525
|
+
}
|
526
|
+
vnode.domNode = domNode;
|
527
|
+
}
|
528
|
+
else {
|
529
|
+
if (vnode.vnodeSelector.lastIndexOf("svg", 0) === 0) {
|
530
|
+
// lastIndexOf(needle,0)===0 means StartsWith
|
531
|
+
projectionOptions = extend(projectionOptions, {
|
532
|
+
namespace: NAMESPACE_SVG,
|
533
|
+
});
|
534
|
+
}
|
535
|
+
if (previous.text !== vnode.text) {
|
536
|
+
updated = true;
|
537
|
+
if (vnode.text === undefined) {
|
538
|
+
domNode.removeChild(domNode.firstChild); // the only textnode presumably
|
539
|
+
}
|
540
|
+
else {
|
541
|
+
domNode.textContent = vnode.text;
|
542
|
+
}
|
543
|
+
}
|
544
|
+
vnode.domNode = domNode;
|
545
|
+
updated =
|
546
|
+
updateChildren(vnode, domNode, previous.children, vnode.children, projectionOptions) ||
|
547
|
+
updated;
|
548
|
+
updated =
|
549
|
+
updateProperties(domNode, previous.properties, vnode.properties, projectionOptions) ||
|
550
|
+
updated;
|
551
|
+
if (vnode.properties && vnode.properties.afterUpdate) {
|
552
|
+
vnode.properties.afterUpdate.apply(vnode.properties.bind || vnode.properties, [
|
553
|
+
domNode,
|
554
|
+
projectionOptions,
|
555
|
+
vnode.vnodeSelector,
|
556
|
+
vnode.properties,
|
557
|
+
vnode.children,
|
558
|
+
]);
|
559
|
+
}
|
560
|
+
}
|
561
|
+
if (updated && vnode.properties && vnode.properties.updateAnimation) {
|
562
|
+
vnode.properties.updateAnimation(domNode, vnode.properties, previous.properties);
|
563
|
+
}
|
564
|
+
return textUpdated;
|
565
|
+
};
|
566
|
+
var createProjection = function (vnode, projectionOptions) {
|
567
|
+
return {
|
568
|
+
getLastRender: function () { return vnode; },
|
569
|
+
update: function (updatedVnode) {
|
570
|
+
if (vnode.vnodeSelector !== updatedVnode.vnodeSelector) {
|
571
|
+
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)");
|
572
|
+
}
|
573
|
+
var previousVNode = vnode;
|
574
|
+
vnode = updatedVnode;
|
575
|
+
updateDom(previousVNode, updatedVnode, projectionOptions);
|
576
|
+
},
|
577
|
+
domNode: vnode.domNode,
|
578
|
+
};
|
579
|
+
};
|
580
|
+
|
581
|
+
var DEFAULT_PROJECTION_OPTIONS = {
|
582
|
+
namespace: undefined,
|
583
|
+
performanceLogger: function () { return undefined; },
|
584
|
+
eventHandlerInterceptor: undefined,
|
585
|
+
styleApplyer: function (domNode, styleName, value) {
|
586
|
+
if (styleName.charAt(0) === "-") {
|
587
|
+
// CSS variables must be set using setProperty
|
588
|
+
domNode.style.setProperty(styleName, value);
|
589
|
+
}
|
590
|
+
else {
|
591
|
+
// properties like 'backgroundColor' must be set as a js-property
|
592
|
+
domNode.style[styleName] = value;
|
593
|
+
}
|
594
|
+
},
|
595
|
+
};
|
596
|
+
var applyDefaultProjectionOptions = function (projectorOptions) {
|
597
|
+
return extend(DEFAULT_PROJECTION_OPTIONS, projectorOptions);
|
598
|
+
};
|
599
|
+
var dom = {
|
600
|
+
/**
|
601
|
+
* Creates a real DOM tree from `vnode`. The [[Projection]] object returned will contain the resulting DOM Node in
|
602
|
+
* its [[Projection.domNode|domNode]] property.
|
603
|
+
* This is a low-level method. Users will typically use a [[Projector]] instead.
|
604
|
+
* @param vnode - The root of the virtual DOM tree that was created using the [[h]] function. NOTE: [[VNode]]
|
605
|
+
* objects may only be rendered once.
|
606
|
+
* @param projectionOptions - Options to be used to create and update the projection.
|
607
|
+
* @returns The [[Projection]] which also contains the DOM Node that was created.
|
608
|
+
*/
|
609
|
+
create: function (vnode, projectionOptions) {
|
610
|
+
projectionOptions = applyDefaultProjectionOptions(projectionOptions);
|
611
|
+
createDom(vnode, document.createElement("div"), undefined, projectionOptions);
|
612
|
+
return createProjection(vnode, projectionOptions);
|
613
|
+
},
|
614
|
+
/**
|
615
|
+
* Appends a new child node to the DOM which is generated from a [[VNode]].
|
616
|
+
* This is a low-level method. Users will typically use a [[Projector]] instead.
|
617
|
+
* @param parentNode - The parent node for the new child node.
|
618
|
+
* @param vnode - The root of the virtual DOM tree that was created using the [[h]] function. NOTE: [[VNode]]
|
619
|
+
* objects may only be rendered once.
|
620
|
+
* @param projectionOptions - Options to be used to create and update the [[Projection]].
|
621
|
+
* @returns The [[Projection]] that was created.
|
622
|
+
*/
|
623
|
+
append: function (parentNode, vnode, projectionOptions) {
|
624
|
+
projectionOptions = applyDefaultProjectionOptions(projectionOptions);
|
625
|
+
createDom(vnode, parentNode, undefined, projectionOptions);
|
626
|
+
return createProjection(vnode, projectionOptions);
|
627
|
+
},
|
628
|
+
/**
|
629
|
+
* Inserts a new DOM node which is generated from a [[VNode]].
|
630
|
+
* This is a low-level method. Users wil typically use a [[Projector]] instead.
|
631
|
+
* @param beforeNode - The node that the DOM Node is inserted before.
|
632
|
+
* @param vnode - The root of the virtual DOM tree that was created using the [[h]] function.
|
633
|
+
* NOTE: [[VNode]] objects may only be rendered once.
|
634
|
+
* @param projectionOptions - Options to be used to create and update the projection, see [[createProjector]].
|
635
|
+
* @returns The [[Projection]] that was created.
|
636
|
+
*/
|
637
|
+
insertBefore: function (beforeNode, vnode, projectionOptions) {
|
638
|
+
projectionOptions = applyDefaultProjectionOptions(projectionOptions);
|
639
|
+
createDom(vnode, beforeNode.parentNode, beforeNode, projectionOptions);
|
640
|
+
return createProjection(vnode, projectionOptions);
|
641
|
+
},
|
642
|
+
/**
|
643
|
+
* Merges a new DOM node which is generated from a [[VNode]] with an existing DOM Node.
|
644
|
+
* This means that the virtual DOM and the real DOM will have one overlapping element.
|
645
|
+
* Therefore the selector for the root [[VNode]] will be ignored, but its properties and children will be applied to the Element provided.
|
646
|
+
* This is a low-level method. Users wil typically use a [[Projector]] instead.
|
647
|
+
* @param element - The existing element to adopt as the root of the new virtual DOM. Existing attributes and child nodes are preserved.
|
648
|
+
* @param vnode - The root of the virtual DOM tree that was created using the [[h]] function. NOTE: [[VNode]] objects
|
649
|
+
* may only be rendered once.
|
650
|
+
* @param projectionOptions - Options to be used to create and update the projection, see [[createProjector]].
|
651
|
+
* @returns The [[Projection]] that was created.
|
652
|
+
*/
|
653
|
+
merge: function (element, vnode, projectionOptions) {
|
654
|
+
projectionOptions = applyDefaultProjectionOptions(projectionOptions);
|
655
|
+
vnode.domNode = element;
|
656
|
+
initPropertiesAndChildren(element, vnode, projectionOptions);
|
657
|
+
return createProjection(vnode, projectionOptions);
|
658
|
+
},
|
659
|
+
/**
|
660
|
+
* Replaces an existing DOM node with a node generated from a [[VNode]].
|
661
|
+
* This is a low-level method. Users will typically use a [[Projector]] instead.
|
662
|
+
* @param element - The node for the [[VNode]] to replace.
|
663
|
+
* @param vnode - The root of the virtual DOM tree that was created using the [[h]] function. NOTE: [[VNode]]
|
664
|
+
* objects may only be rendered once.
|
665
|
+
* @param projectionOptions - Options to be used to create and update the [[Projection]].
|
666
|
+
* @returns The [[Projection]] that was created.
|
667
|
+
*/
|
668
|
+
replace: function (element, vnode, projectionOptions) {
|
669
|
+
projectionOptions = applyDefaultProjectionOptions(projectionOptions);
|
670
|
+
createDom(vnode, element.parentNode, element, projectionOptions);
|
671
|
+
element.parentNode.removeChild(element);
|
672
|
+
return createProjection(vnode, projectionOptions);
|
673
|
+
},
|
674
|
+
};
|
675
|
+
|
676
|
+
var toTextVNode = function (data) {
|
677
|
+
return {
|
678
|
+
vnodeSelector: "",
|
679
|
+
properties: undefined,
|
680
|
+
children: undefined,
|
681
|
+
text: data.toString(),
|
682
|
+
domNode: null,
|
683
|
+
};
|
684
|
+
};
|
685
|
+
var appendChildren = function (parentSelector, insertions, main) {
|
686
|
+
for (var i = 0, length_1 = insertions.length; i < length_1; i++) {
|
687
|
+
var item = insertions[i];
|
688
|
+
if (Array.isArray(item)) {
|
689
|
+
appendChildren(parentSelector, item, main);
|
690
|
+
}
|
691
|
+
else {
|
692
|
+
if (item !== null && item !== undefined && item !== false) {
|
693
|
+
if (typeof item === "string") {
|
694
|
+
item = toTextVNode(item);
|
695
|
+
}
|
696
|
+
main.push(item);
|
697
|
+
}
|
698
|
+
}
|
699
|
+
}
|
700
|
+
};
|
701
|
+
function h(selector, properties, children) {
|
702
|
+
if (Array.isArray(properties)) {
|
703
|
+
children = properties;
|
704
|
+
properties = undefined;
|
705
|
+
}
|
706
|
+
else if ((properties && (typeof properties === "string" || properties.vnodeSelector)) ||
|
707
|
+
(children && (typeof children === "string" || children.vnodeSelector))) {
|
708
|
+
throw new Error("h called with invalid arguments");
|
709
|
+
}
|
710
|
+
var text;
|
711
|
+
var flattenedChildren;
|
712
|
+
// Recognize a common special case where there is only a single text node
|
713
|
+
if (children && children.length === 1 && typeof children[0] === "string") {
|
714
|
+
text = children[0];
|
715
|
+
}
|
716
|
+
else if (children) {
|
717
|
+
flattenedChildren = [];
|
718
|
+
appendChildren(selector, children, flattenedChildren);
|
719
|
+
if (flattenedChildren.length === 0) {
|
720
|
+
flattenedChildren = undefined;
|
721
|
+
}
|
722
|
+
}
|
723
|
+
return {
|
724
|
+
vnodeSelector: selector,
|
725
|
+
properties: properties,
|
726
|
+
children: flattenedChildren,
|
727
|
+
text: text === "" ? undefined : text,
|
728
|
+
domNode: null,
|
729
|
+
};
|
730
|
+
}
|
731
|
+
|
732
|
+
var createParentNodePath = function (node, rootNode) {
|
733
|
+
var parentNodePath = [];
|
734
|
+
while (node && node !== rootNode) {
|
735
|
+
parentNodePath.push(node);
|
736
|
+
node = node.parentNode;
|
737
|
+
}
|
738
|
+
return parentNodePath;
|
739
|
+
};
|
740
|
+
var find;
|
741
|
+
if (Array.prototype.find) {
|
742
|
+
find = function (items, predicate) { return items.find(predicate); };
|
743
|
+
}
|
744
|
+
else {
|
745
|
+
find = function (items, predicate) { return items.filter(predicate)[0]; };
|
746
|
+
}
|
747
|
+
var findVNodeByParentNodePath = function (vnode, parentNodePath) {
|
748
|
+
var result = vnode;
|
749
|
+
parentNodePath.forEach(function (node) {
|
750
|
+
result =
|
751
|
+
result && result.children
|
752
|
+
? find(result.children, function (child) { return child.domNode === node; })
|
753
|
+
: undefined;
|
754
|
+
});
|
755
|
+
return result;
|
756
|
+
};
|
757
|
+
var createEventHandlerInterceptor = function (projector, getProjection, performanceLogger) {
|
758
|
+
return function (propertyName, eventHandler, domNode, properties) { return modifiedEventHandler; };
|
759
|
+
function modifiedEventHandler(evt) {
|
760
|
+
performanceLogger("domEvent", evt);
|
761
|
+
var projection = getProjection();
|
762
|
+
var parentNodePath = createParentNodePath(evt.currentTarget, projection.domNode);
|
763
|
+
parentNodePath.reverse();
|
764
|
+
var matchingVNode = findVNodeByParentNodePath(projection.getLastRender(), parentNodePath);
|
765
|
+
projector.scheduleRender();
|
766
|
+
var result;
|
767
|
+
if (matchingVNode) {
|
768
|
+
/* eslint-disable prefer-rest-params */
|
769
|
+
result = matchingVNode.properties["on".concat(evt.type)].apply(matchingVNode.properties.bind || this, arguments);
|
770
|
+
/* eslint-enable prefer-rest-params */
|
771
|
+
}
|
772
|
+
performanceLogger("domEventProcessed", evt);
|
773
|
+
return result;
|
774
|
+
}
|
775
|
+
};
|
776
|
+
/**
|
777
|
+
* Creates a [[Projector]] instance using the provided projectionOptions.
|
778
|
+
*
|
779
|
+
* For more information, see [[Projector]].
|
780
|
+
*
|
781
|
+
* @param projectorOptions Options that influence how the DOM is rendered and updated.
|
782
|
+
*/
|
783
|
+
var createProjector = function (projectorOptions) {
|
784
|
+
var projector;
|
785
|
+
var projectionOptions = applyDefaultProjectionOptions(projectorOptions);
|
786
|
+
var performanceLogger = projectionOptions.performanceLogger;
|
787
|
+
var renderCompleted = true;
|
788
|
+
var scheduled;
|
789
|
+
var stopped = false;
|
790
|
+
var projections = [];
|
791
|
+
var renderFunctions = []; // matches the projections array
|
792
|
+
var addProjection = function (
|
793
|
+
/* one of: dom.append, dom.insertBefore, dom.replace, dom.merge */
|
794
|
+
domFunction,
|
795
|
+
/* the parameter of the domFunction */
|
796
|
+
node, renderFunction) {
|
797
|
+
var projection;
|
798
|
+
var getProjection = function () { return projection; };
|
799
|
+
projectionOptions.eventHandlerInterceptor = createEventHandlerInterceptor(projector, getProjection, performanceLogger);
|
800
|
+
projection = domFunction(node, renderFunction(), projectionOptions);
|
801
|
+
projections.push(projection);
|
802
|
+
renderFunctions.push(renderFunction);
|
803
|
+
};
|
804
|
+
var doRender = function () {
|
805
|
+
scheduled = undefined;
|
806
|
+
if (!renderCompleted) {
|
807
|
+
return; // The last render threw an error, it should have been logged in the browser console.
|
808
|
+
}
|
809
|
+
renderCompleted = false;
|
810
|
+
performanceLogger("renderStart", undefined);
|
811
|
+
for (var i = 0; i < projections.length; i++) {
|
812
|
+
var updatedVnode = renderFunctions[i]();
|
813
|
+
performanceLogger("rendered", undefined);
|
814
|
+
projections[i].update(updatedVnode);
|
815
|
+
performanceLogger("patched", undefined);
|
816
|
+
}
|
817
|
+
performanceLogger("renderDone", undefined);
|
818
|
+
renderCompleted = true;
|
819
|
+
};
|
820
|
+
projector = {
|
821
|
+
renderNow: doRender,
|
822
|
+
scheduleRender: function () {
|
823
|
+
if (!scheduled && !stopped) {
|
824
|
+
scheduled = requestAnimationFrame(doRender);
|
825
|
+
}
|
826
|
+
},
|
827
|
+
stop: function () {
|
828
|
+
if (scheduled) {
|
829
|
+
cancelAnimationFrame(scheduled);
|
830
|
+
scheduled = undefined;
|
831
|
+
}
|
832
|
+
stopped = true;
|
833
|
+
},
|
834
|
+
resume: function () {
|
835
|
+
stopped = false;
|
836
|
+
renderCompleted = true;
|
837
|
+
projector.scheduleRender();
|
838
|
+
},
|
839
|
+
append: function (parentNode, renderFunction) {
|
840
|
+
addProjection(dom.append, parentNode, renderFunction);
|
841
|
+
},
|
842
|
+
insertBefore: function (beforeNode, renderFunction) {
|
843
|
+
addProjection(dom.insertBefore, beforeNode, renderFunction);
|
844
|
+
},
|
845
|
+
merge: function (domNode, renderFunction) {
|
846
|
+
addProjection(dom.merge, domNode, renderFunction);
|
847
|
+
},
|
848
|
+
replace: function (domNode, renderFunction) {
|
849
|
+
addProjection(dom.replace, domNode, renderFunction);
|
850
|
+
},
|
851
|
+
detach: function (renderFunction) {
|
852
|
+
for (var i = 0; i < renderFunctions.length; i++) {
|
853
|
+
if (renderFunctions[i] === renderFunction) {
|
854
|
+
renderFunctions.splice(i, 1);
|
855
|
+
return projections.splice(i, 1)[0];
|
856
|
+
}
|
857
|
+
}
|
858
|
+
throw new Error("renderFunction was not found");
|
859
|
+
},
|
860
|
+
};
|
861
|
+
return projector;
|
862
|
+
};
|
863
|
+
|
864
|
+
/**
|
865
|
+
* Creates a [[CalculationCache]] object, useful for caching [[VNode]] trees.
|
866
|
+
* In practice, caching of [[VNode]] trees is not needed, because achieving 60 frames per second is almost never a problem.
|
867
|
+
* For more information, see [[CalculationCache]].
|
868
|
+
*
|
869
|
+
* @param <Result> The type of the value that is cached.
|
870
|
+
*/
|
871
|
+
var createCache = function () {
|
872
|
+
var cachedInputs;
|
873
|
+
var cachedOutcome;
|
874
|
+
return {
|
875
|
+
invalidate: function () {
|
876
|
+
cachedOutcome = undefined;
|
877
|
+
cachedInputs = undefined;
|
878
|
+
},
|
879
|
+
result: function (inputs, calculation) {
|
880
|
+
if (cachedInputs) {
|
881
|
+
for (var i = 0; i < inputs.length; i++) {
|
882
|
+
if (cachedInputs[i] !== inputs[i]) {
|
883
|
+
cachedOutcome = undefined;
|
884
|
+
}
|
885
|
+
}
|
886
|
+
}
|
887
|
+
if (!cachedOutcome) {
|
888
|
+
cachedOutcome = calculation();
|
889
|
+
cachedInputs = inputs;
|
890
|
+
}
|
891
|
+
return cachedOutcome;
|
892
|
+
},
|
893
|
+
};
|
894
|
+
};
|
895
|
+
|
896
|
+
/**
|
897
|
+
* Creates a {@link Mapping} instance that keeps an array of result objects synchronized with an array of source objects.
|
898
|
+
* See {@link http://maquettejs.org/docs/arrays.html|Working with arrays}.
|
899
|
+
*
|
900
|
+
* @param <Source> The type of source items. A database-record for instance.
|
901
|
+
* @param <Target> The type of target items. A [[MaquetteComponent]] for instance.
|
902
|
+
* @param getSourceKey `function(source)` that must return a key to identify each source object. The result must either be a string or a number.
|
903
|
+
* @param createResult `function(source, index)` that must create a new result object from a given source. This function is identical
|
904
|
+
* to the `callback` argument in `Array.map(callback)`.
|
905
|
+
* @param updateResult `function(source, target, index)` that updates a result to an updated source.
|
906
|
+
*/
|
907
|
+
var createMapping = function (getSourceKey, createResult, updateResult) {
|
908
|
+
var keys = [];
|
909
|
+
var results = [];
|
910
|
+
return {
|
911
|
+
results: results,
|
912
|
+
map: function (newSources) {
|
913
|
+
var newKeys = newSources.map(getSourceKey);
|
914
|
+
var oldTargets = results.slice();
|
915
|
+
var oldIndex = 0;
|
916
|
+
for (var i = 0; i < newSources.length; i++) {
|
917
|
+
var source = newSources[i];
|
918
|
+
var sourceKey = newKeys[i];
|
919
|
+
if (sourceKey === keys[oldIndex]) {
|
920
|
+
results[i] = oldTargets[oldIndex];
|
921
|
+
updateResult(source, oldTargets[oldIndex], i);
|
922
|
+
oldIndex++;
|
923
|
+
}
|
924
|
+
else {
|
925
|
+
var found = false;
|
926
|
+
for (var j = 1; j < keys.length + 1; j++) {
|
927
|
+
var searchIndex = (oldIndex + j) % keys.length;
|
928
|
+
if (keys[searchIndex] === sourceKey) {
|
929
|
+
results[i] = oldTargets[searchIndex];
|
930
|
+
updateResult(newSources[i], oldTargets[searchIndex], i);
|
931
|
+
oldIndex = searchIndex + 1;
|
932
|
+
found = true;
|
933
|
+
break;
|
934
|
+
}
|
935
|
+
}
|
936
|
+
if (!found) {
|
937
|
+
results[i] = createResult(source, i);
|
938
|
+
}
|
939
|
+
}
|
940
|
+
}
|
941
|
+
results.length = newSources.length;
|
942
|
+
keys = newKeys;
|
943
|
+
},
|
944
|
+
};
|
945
|
+
};
|
946
|
+
|
947
|
+
exports.createCache = createCache;
|
948
|
+
exports.createMapping = createMapping;
|
949
|
+
exports.createProjector = createProjector;
|
950
|
+
exports.dom = dom;
|
951
|
+
exports.h = h;
|
952
|
+
|
953
|
+
}));
|
954
|
+
});
|
955
|
+
|
956
|
+
const projector = maquette_umd.createProjector();
|
957
|
+
const separatorWidth = 10;
|
958
|
+
const separatorHeight = 20;
|
959
|
+
const univariateSymbolPadding = 10;
|
960
|
+
const univariateCardStylePadding = 20;
|
961
|
+
const CSS$1 = {
|
962
|
+
// univariate above-and-below
|
963
|
+
univariateAboveAndBelowSymbol: 'esri-univariate-above-and-below-ramp__symbol',
|
964
|
+
colorRamp: 'esri-legend__color-ramp',
|
965
|
+
};
|
966
|
+
function renderSeparator(rampAlignment = 'vertical') {
|
967
|
+
const style = 'stroke:rgb(200, 200, 200);stroke-width:1';
|
968
|
+
return rampAlignment === 'vertical' ? (h("svg", { height: "4", width: "10" }, h("line", { x1: "0", y1: "2", x2: "10", y2: "2", style: style }))) : (h("svg", { height: "10", width: "10" }, h("line", { x1: "5", y1: "0", x2: "5", y2: "10", style: style })));
|
969
|
+
}
|
970
|
+
function getSeparatorPreview(opacity, rampAlignment = 'vertical') {
|
971
|
+
const separator = document.createElement('div');
|
972
|
+
separator.style.height = `${separatorHeight}px`;
|
973
|
+
separator.className = CSS$1.univariateAboveAndBelowSymbol;
|
974
|
+
if (opacity != null) {
|
975
|
+
separator.style.opacity = opacity.toString();
|
976
|
+
}
|
977
|
+
projector.append(separator, renderSeparator.bind(null, rampAlignment));
|
978
|
+
return separator;
|
979
|
+
}
|
980
|
+
function updateUnivariateSizeRampElement(sizeRampElement, opacity, rampAlignment = 'vertical', isAboveAndBelow) {
|
981
|
+
sizeRampElement.infos.forEach((stop, index) => {
|
982
|
+
// Replace middle stop preview with separator
|
983
|
+
if (isAboveAndBelow && index === 2) {
|
984
|
+
stop.preview = getSeparatorPreview(opacity, rampAlignment);
|
985
|
+
}
|
986
|
+
else {
|
987
|
+
const { size } = stop;
|
988
|
+
const previewSize = pt2px(size) + (rampAlignment === 'horizontal' ? univariateCardStylePadding : univariateSymbolPadding);
|
989
|
+
const isPreviewDiv = stop.preview.tagName.toLowerCase() === 'div';
|
990
|
+
const preview = isPreviewDiv ? stop.preview : document.createElement('div');
|
991
|
+
if (preview)
|
992
|
+
preview.className = CSS$1.univariateAboveAndBelowSymbol;
|
993
|
+
if (rampAlignment === 'horizontal') {
|
994
|
+
if (preview)
|
995
|
+
preview.style.width = `${previewSize}px`;
|
996
|
+
}
|
997
|
+
else {
|
998
|
+
if (preview)
|
999
|
+
preview.style.height = `${previewSize}px`;
|
1000
|
+
}
|
1001
|
+
if (!isPreviewDiv) {
|
1002
|
+
if (preview)
|
1003
|
+
preview.appendChild(stop.preview);
|
1004
|
+
}
|
1005
|
+
stop.preview = preview;
|
1006
|
+
}
|
1007
|
+
});
|
1008
|
+
}
|
1009
|
+
// Used to align the colorRamp at the middle of first size symbol
|
1010
|
+
function getUnivariateColorRampMargin(sizeRampElement, style = 'classic') {
|
1011
|
+
const stops = sizeRampElement.infos;
|
1012
|
+
const firstSize = stops[0].size;
|
1013
|
+
const lastSize = stops[stops.length - 1].size;
|
1014
|
+
if (style === 'classic') {
|
1015
|
+
return (pt2px(firstSize) + univariateSymbolPadding) / 2;
|
1016
|
+
}
|
1017
|
+
return (pt2px(firstSize) - pt2px(lastSize)) / 2;
|
1018
|
+
}
|
1019
|
+
async function getUnivariateColorRampPreview(colorRampElement, options) {
|
1020
|
+
if (!colorRampElement) {
|
1021
|
+
return Promise.resolve(null);
|
1022
|
+
}
|
1023
|
+
const colors = colorRampElement.infos.map(stop => stop.color);
|
1024
|
+
const [symbolUtils] = await loadModules(['esri/symbols/support/symbolUtils']);
|
1025
|
+
const colorRampDiv = symbolUtils.renderColorRampPreviewHTML(options.type === 'full'
|
1026
|
+
? colors
|
1027
|
+
: options.type === 'above'
|
1028
|
+
? colors.slice(0, 3) // First 3 colors
|
1029
|
+
: colors.slice(2, 5), // Last 3 colors
|
1030
|
+
{
|
1031
|
+
width: options.width,
|
1032
|
+
height: options.height,
|
1033
|
+
align: options.rampAlignment,
|
1034
|
+
effectList: options.effectList,
|
1035
|
+
});
|
1036
|
+
colorRampDiv.className = CSS$1.colorRamp;
|
1037
|
+
if (options.opacity != null) {
|
1038
|
+
colorRampDiv.style.opacity = options.opacity.toString();
|
1039
|
+
}
|
1040
|
+
return Promise.resolve(colorRampDiv);
|
1041
|
+
}
|
1042
|
+
function getUnivariateSizeRampSize(sizeRampElement, type, isAboveAndBelow, rampAlignment = 'vertical') {
|
1043
|
+
let sizeRampHeight = 0;
|
1044
|
+
const stops = sizeRampElement.infos;
|
1045
|
+
const midIndex = Math.floor(stops.length / 2);
|
1046
|
+
const startIndex = type === 'full' || type === 'above' ? 0 : midIndex;
|
1047
|
+
const endIndex = type === 'full' || type === 'below' ? stops.length - 1 : midIndex;
|
1048
|
+
for (let index = startIndex; index <= endIndex; index++) {
|
1049
|
+
if (isAboveAndBelow && index === midIndex) {
|
1050
|
+
sizeRampHeight += rampAlignment === 'horizontal' ? separatorWidth : separatorHeight;
|
1051
|
+
}
|
1052
|
+
else {
|
1053
|
+
const size = stops[index].size;
|
1054
|
+
const previewSize = pt2px(size) + (rampAlignment === 'horizontal' ? univariateCardStylePadding : univariateSymbolPadding);
|
1055
|
+
sizeRampHeight += previewSize;
|
1056
|
+
}
|
1057
|
+
}
|
1058
|
+
return Math.round(sizeRampHeight);
|
1059
|
+
}
|
1060
|
+
function getUnivariateColorRampSize(sizeRampElement, type, isAboveAndBelow, rampAlignment = 'vertical') {
|
1061
|
+
const sizeRampSize = getUnivariateSizeRampSize(sizeRampElement, type, isAboveAndBelow, rampAlignment);
|
1062
|
+
const stops = sizeRampElement.infos;
|
1063
|
+
const midIndex = Math.floor(stops.length / 2);
|
1064
|
+
const startIndex = type === 'full' || type === 'above' ? 0 : midIndex;
|
1065
|
+
const endIndex = type === 'full' || type === 'below' ? stops.length - 1 : midIndex;
|
1066
|
+
const symbolSize = type === 'full' ? stops[startIndex].size + stops[endIndex].size : type === 'above' ? stops[startIndex].size : stops[endIndex].size;
|
1067
|
+
const separatorSize = isAboveAndBelow ? (rampAlignment === 'vertical' ? separatorHeight : separatorWidth) : 0;
|
1068
|
+
const padding = rampAlignment === 'vertical' ? univariateSymbolPadding * (type === 'full' ? 2 : 1) : univariateCardStylePadding * (type === 'full' ? 2 : 1);
|
1069
|
+
return Math.round(sizeRampSize - (pt2px(symbolSize) / 2 + separatorSize / 2 + padding / 2));
|
1070
|
+
}
|
1071
|
+
function getUnivariateAboveAndBelowRampElements(legendElement, opacity, rampAlignment = 'vertical') {
|
1072
|
+
const elements = legendElement.infos;
|
1073
|
+
let sizeRampElement = elements.find(({ type }) => type === 'size-ramp');
|
1074
|
+
let colorRampElement = elements.find(({ type }) => type === 'color-ramp');
|
1075
|
+
if (sizeRampElement) {
|
1076
|
+
sizeRampElement = Object.assign({}, sizeRampElement);
|
1077
|
+
sizeRampElement.infos = [...sizeRampElement.infos];
|
1078
|
+
updateUnivariateSizeRampElement(sizeRampElement, opacity, rampAlignment, true);
|
1079
|
+
}
|
1080
|
+
if (colorRampElement) {
|
1081
|
+
colorRampElement = Object.assign({}, colorRampElement);
|
1082
|
+
colorRampElement.infos = [...colorRampElement.infos];
|
1083
|
+
}
|
1084
|
+
// For card style
|
1085
|
+
if (rampAlignment === 'horizontal') {
|
1086
|
+
sizeRampElement === null || sizeRampElement === void 0 ? void 0 : sizeRampElement.infos.reverse();
|
1087
|
+
colorRampElement === null || colorRampElement === void 0 ? void 0 : colorRampElement.infos.reverse();
|
1088
|
+
}
|
1089
|
+
return { sizeRampElement, colorRampElement };
|
1090
|
+
}
|
1091
|
+
function getUnivariateColorSizeRampElements(legendElement, rampAlignment = 'vertical') {
|
1092
|
+
const elements = legendElement.infos;
|
1093
|
+
let sizeRampElement = elements.find(({ type }) => type === 'size-ramp');
|
1094
|
+
let colorRampElement = elements.find(({ type }) => type === 'color-ramp');
|
1095
|
+
if (sizeRampElement) {
|
1096
|
+
sizeRampElement = Object.assign({}, sizeRampElement);
|
1097
|
+
sizeRampElement.infos = [...sizeRampElement.infos];
|
1098
|
+
updateUnivariateSizeRampElement(sizeRampElement, null, rampAlignment, false);
|
1099
|
+
}
|
1100
|
+
if (colorRampElement) {
|
1101
|
+
colorRampElement = Object.assign({}, colorRampElement);
|
1102
|
+
colorRampElement.infos = [...colorRampElement.infos];
|
1103
|
+
}
|
1104
|
+
// For card style
|
1105
|
+
if (rampAlignment === 'horizontal') {
|
1106
|
+
sizeRampElement === null || sizeRampElement === void 0 ? void 0 : sizeRampElement.infos.reverse();
|
1107
|
+
colorRampElement === null || colorRampElement === void 0 ? void 0 : colorRampElement.infos.reverse();
|
1108
|
+
}
|
1109
|
+
return { sizeRampElement, colorRampElement };
|
1110
|
+
}
|
1111
|
+
|
1112
|
+
function isImageryStretchedLegend(_layer, _legendType) {
|
1113
|
+
return !0;
|
1114
|
+
}
|
1115
|
+
|
1116
|
+
const instantAppsInteractiveLegendClassicCss = ".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}}";
|
1117
|
+
|
1118
|
+
const CSS = {
|
1119
|
+
// jsapi styles
|
1120
|
+
service: 'esri-legend__service',
|
1121
|
+
label: 'esri-legend__service-label',
|
1122
|
+
layer: 'esri-legend__layer',
|
1123
|
+
groupLayer: 'esri-legend__group-layer',
|
1124
|
+
groupLayerChild: 'esri-legend__group-layer-child',
|
1125
|
+
layerTable: 'esri-legend__layer-table',
|
1126
|
+
layerTableSizeRamp: 'esri-legend__layer-table--size-ramp',
|
1127
|
+
layerChildTable: 'esri-legend__layer-child-table',
|
1128
|
+
layerCaption: 'esri-legend__layer-caption',
|
1129
|
+
layerBody: 'esri-legend__layer-body',
|
1130
|
+
layerRow: 'esri-legend__layer-row',
|
1131
|
+
layerCell: 'esri-legend__layer-cell',
|
1132
|
+
layerInfo: 'esri-legend__layer-cell esri-legend__layer-cell--info',
|
1133
|
+
imageryLayerStretchedImage: 'esri-legend__imagery-layer-image--stretched',
|
1134
|
+
imageryLayerCellStretched: 'esri-legend__imagery-layer-cell--stretched',
|
1135
|
+
imageryLayerInfoStretched: 'esri-legend__imagery-layer-info--stretched',
|
1136
|
+
symbolContainer: 'esri-legend__layer-cell esri-legend__layer-cell--symbols',
|
1137
|
+
symbol: 'esri-legend__symbol',
|
1138
|
+
rampContainer: 'esri-legend__ramps',
|
1139
|
+
sizeRamp: 'esri-legend__size-ramp',
|
1140
|
+
colorRamp: 'esri-legend__color-ramp',
|
1141
|
+
opacityRamp: 'esri-legend__opacity-ramp',
|
1142
|
+
borderlessRamp: 'esri-legend__borderless-ramp',
|
1143
|
+
rampTick: 'esri-legend__ramp-tick',
|
1144
|
+
rampFirstTick: 'esri-legend__ramp-tick-first',
|
1145
|
+
rampLastTick: 'esri-legend__ramp-tick-last',
|
1146
|
+
rampLabelsContainer: 'esri-legend__ramp-labels',
|
1147
|
+
rampLabel: 'esri-legend__ramp-label',
|
1148
|
+
univariateAboveAndBelowSymbol: 'esri-univariate-above-and-below-ramp__symbol',
|
1149
|
+
univariateAboveAndBelowLabel: 'esri-univariate-above-and-below-ramp__label',
|
1150
|
+
message: 'esri-legend__message',
|
1151
|
+
header: 'esri-widget__heading',
|
1152
|
+
hidden: 'esri-hidden',
|
1153
|
+
// instant-apps-interactive-legend
|
1154
|
+
interactiveLegendHeader: 'instant-apps-interactive-legend__header',
|
1155
|
+
layerCaptionBtnContainer: 'instant-apps-interactive-legend__layer-caption-btn-container',
|
1156
|
+
interactiveLayerRow: 'instant-apps-interactive-legend__layer-row--interactive',
|
1157
|
+
infoSelected: 'instant-apps-interactive-legend-element-info--selected',
|
1158
|
+
};
|
1159
|
+
const GRADIENT_WIDTH = 24;
|
1160
|
+
const univariateRampContainerStyles = { display: 'flex', alignItems: 'flex-start' };
|
1161
|
+
const univariateColorRampContainerStyles = { marginLeft: '3px' };
|
1162
|
+
const univariateColorRampStyles = { display: 'table-cell', verticalAlign: 'middle' };
|
1163
|
+
const InstantAppsInteractiveLegendClassic = /*@__PURE__*/ proxyCustomElement(class InstantAppsInteractiveLegendClassic extends HTMLElement {
|
1164
|
+
constructor() {
|
1165
|
+
super();
|
1166
|
+
this.__registerHost();
|
1167
|
+
this.calculatingFeatureCount = false;
|
1168
|
+
this.legendvm = undefined;
|
1169
|
+
this.zoomTo = false;
|
1170
|
+
this.featureCount = false;
|
1171
|
+
this.filterMode = {
|
1172
|
+
type: 'filter',
|
1173
|
+
};
|
1174
|
+
this.messages = undefined;
|
1175
|
+
this.isLoading = true;
|
1176
|
+
this.intLegendId = undefined;
|
1177
|
+
}
|
1178
|
+
handleFilterModeChange() {
|
1179
|
+
handleFilterChange(this.filterMode, this.legendvm.view);
|
1180
|
+
}
|
1181
|
+
async componentWillLoad() {
|
1182
|
+
const observer = new MutationObserver(() => {
|
1183
|
+
forceUpdate(this.el);
|
1184
|
+
});
|
1185
|
+
observer.observe(this.el, {
|
1186
|
+
attributes: true,
|
1187
|
+
});
|
1188
|
+
const [intl, reactiveUtils, Handles] = await loadModules(['esri/intl', 'esri/core/reactiveUtils', 'esri/core/Handles']);
|
1189
|
+
this.reactiveUtils = reactiveUtils;
|
1190
|
+
this.handles = new Handles();
|
1191
|
+
this.intl = intl;
|
1192
|
+
}
|
1193
|
+
async componentDidLoad() {
|
1194
|
+
try {
|
1195
|
+
await this.reactiveUtils.whenOnce(() => { var _a; return (_a = this.legendvm) === null || _a === void 0 ? void 0 : _a.view; });
|
1196
|
+
this.legendvm.view.when(async () => {
|
1197
|
+
var _a, _b;
|
1198
|
+
try {
|
1199
|
+
await ((_b = (_a = this.legendvm) === null || _a === void 0 ? void 0 : _a.view) === null || _b === void 0 ? void 0 : _b.map).loadAll();
|
1200
|
+
await this.reactiveUtils.whenOnce(() => { var _a, _b; return ((_b = (_a = this.legendvm) === null || _a === void 0 ? void 0 : _a.view) === null || _b === void 0 ? void 0 : _b.updating) === false; });
|
1201
|
+
// Initial data setup
|
1202
|
+
const data = await generateData(this.legendvm, this.reactiveUtils);
|
1203
|
+
store.set('data', Object.assign(Object.assign({}, interactiveLegendState.data), data));
|
1204
|
+
this.isLoading = false;
|
1205
|
+
this.setupWatchersAndListeners();
|
1206
|
+
}
|
1207
|
+
catch (_c) {
|
1208
|
+
this.isLoading = false;
|
1209
|
+
}
|
1210
|
+
});
|
1211
|
+
}
|
1212
|
+
catch (_a) {
|
1213
|
+
this.isLoading = false;
|
1214
|
+
}
|
1215
|
+
}
|
1216
|
+
disconnectedCallback() {
|
1217
|
+
var _a, _b;
|
1218
|
+
(_a = this.handles) === null || _a === void 0 ? void 0 : _a.removeAll();
|
1219
|
+
(_b = this.handles) === null || _b === void 0 ? void 0 : _b.destroy();
|
1220
|
+
this.handles = null;
|
1221
|
+
}
|
1222
|
+
render() {
|
1223
|
+
var _a, _b, _c;
|
1224
|
+
const filteredLayers = this.renderFilteredLayers();
|
1225
|
+
return this.isLoading ? (h("calcite-loader", { key: "interactive-legend-loader", scale: "m", label: (_a = this.messages) === null || _a === void 0 ? void 0 : _a.loading, text: (_b = this.messages) === null || _b === void 0 ? void 0 : _b.loading })) : (h("div", { key: "interactive-legend-classic-container", class: getTheme(this.el) }, (filteredLayers === null || filteredLayers === void 0 ? void 0 : filteredLayers.length) > 0 ? filteredLayers : h("div", { class: CSS.message }, (_c = this.messages) === null || _c === void 0 ? void 0 : _c.noLegend)));
|
1226
|
+
}
|
1227
|
+
renderFilteredLayers() {
|
1228
|
+
var _a, _b;
|
1229
|
+
const activeLayerInfos = (_b = (_a = this.legendvm) === null || _a === void 0 ? void 0 : _a.activeLayerInfos) === null || _b === void 0 ? void 0 : _b.toArray();
|
1230
|
+
return activeLayerInfos.map(activeLayerInfo => this.renderLegendForLayer(activeLayerInfo)).filter(layer => !!layer);
|
1231
|
+
}
|
1232
|
+
renderLegendForLayer(activeLayerInfo, isChild) {
|
1233
|
+
var _a, _b;
|
1234
|
+
if (!activeLayerInfo.ready) {
|
1235
|
+
return null;
|
1236
|
+
}
|
1237
|
+
const hasChildren = !!activeLayerInfo.children.length;
|
1238
|
+
if (hasChildren) {
|
1239
|
+
const layers = activeLayerInfo.children.map(childActiveLayerInfo => this.renderLegendForLayer(childActiveLayerInfo, true)).toArray();
|
1240
|
+
return (h("instant-apps-interactive-legend-group-legend-element", { class: getTheme(this.el), legendvm: this.legendvm, featureCount: this.featureCount, activeLayerInfo: activeLayerInfo, isChild: isChild }, h("div", { style: {
|
1241
|
+
paddingLeft: '20px',
|
1242
|
+
}, id: `${(_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _a === void 0 ? void 0 : _a.id}-legend-layer`, slot: "content" }, layers)));
|
1243
|
+
}
|
1244
|
+
const legendElements = activeLayerInfo.legendElements;
|
1245
|
+
if (legendElements && !legendElements.length) {
|
1246
|
+
return null;
|
1247
|
+
}
|
1248
|
+
const filteredElements = legendElements
|
1249
|
+
.map((legendElement, legendElementIndex) => this.renderLegendForElement(legendElement, activeLayerInfo.layer, activeLayerInfo.effectList, activeLayerInfo, legendElementIndex))
|
1250
|
+
.filter(element => !!element);
|
1251
|
+
if (!filteredElements.length) {
|
1252
|
+
return null;
|
1253
|
+
}
|
1254
|
+
return (h("instant-apps-interactive-legend-layer-element", { class: getTheme(this.el), legendvm: this.legendvm, featureCount: this.featureCount, activeLayerInfo: activeLayerInfo, messages: this.messages, isChild: isChild }, h("div", { slot: "content", id: `${(_b = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _b === void 0 ? void 0 : _b.id}-legend-layer`, class: CSS.layer }, filteredElements)));
|
1255
|
+
}
|
1256
|
+
renderLegendForElement(legendElement, layer, effectList, activeLayerInfo, legendElementIndex, isChild, parentLegendElementInfo) {
|
1257
|
+
const isColorRamp = legendElement.type === 'color-ramp', isOpacityRamp = legendElement.type === 'opacity-ramp', isSizeRamp = legendElement.type === 'size-ramp';
|
1258
|
+
let content = null;
|
1259
|
+
const isInteractive = validateInteractivity(activeLayerInfo, legendElement, legendElementIndex);
|
1260
|
+
// build symbol table or size ramp
|
1261
|
+
const isRelationshipRamp = (legendElement === null || legendElement === void 0 ? void 0 : legendElement.type) === 'relationship-ramp';
|
1262
|
+
if (legendElement.type === 'symbol-table' || isSizeRamp) {
|
1263
|
+
const rows = legendElement.infos
|
1264
|
+
.map((info, infoIndex) => {
|
1265
|
+
return this.renderLegendForElementInfo(info, layer, effectList, isSizeRamp, legendElement, activeLayerInfo, legendElementIndex, infoIndex, isInteractive, parentLegendElementInfo ? parentLegendElementInfo : null);
|
1266
|
+
})
|
1267
|
+
.filter((row) => !!row);
|
1268
|
+
if (rows.length) {
|
1269
|
+
content = h("div", { class: CSS.layerBody }, rows);
|
1270
|
+
}
|
1271
|
+
}
|
1272
|
+
else if (legendElement.type === 'color-ramp' || legendElement.type === 'opacity-ramp' || legendElement.type === 'heatmap-ramp' || legendElement.type === 'stretch-ramp') {
|
1273
|
+
content = this.renderLegendForRamp(legendElement, layer.opacity);
|
1274
|
+
}
|
1275
|
+
else if (legendElement.type === 'relationship-ramp') {
|
1276
|
+
content = (h("instant-apps-interactive-legend-relationship", { class: getTheme(this.el), key: "relationship-ramp", filterMode: this.filterMode, activeLayerInfo: activeLayerInfo, legendElement: legendElement, messages: this.messages }));
|
1277
|
+
}
|
1278
|
+
else if (legendElement.type === 'pie-chart-ramp') {
|
1279
|
+
content = this.renderPieChartRamp(legendElement);
|
1280
|
+
}
|
1281
|
+
else if (legendElement.type === 'univariate-above-and-below-ramp') {
|
1282
|
+
content = this.renderUnivariateAboveAndBelowRamp(legendElement, layer.opacity, effectList);
|
1283
|
+
}
|
1284
|
+
else if (legendElement.type === 'univariate-color-size-ramp') {
|
1285
|
+
content = this.renderUnivariateColorSizeRamp(legendElement, layer.opacity, effectList);
|
1286
|
+
}
|
1287
|
+
if (!content)
|
1288
|
+
return null;
|
1289
|
+
const titleObj = legendElement.title;
|
1290
|
+
let title = null;
|
1291
|
+
if (typeof titleObj === 'string') {
|
1292
|
+
title = titleObj;
|
1293
|
+
}
|
1294
|
+
else if (titleObj) {
|
1295
|
+
const genTitle = this.getTitle(this.messages, titleObj, isColorRamp || isOpacityRamp);
|
1296
|
+
if (this.isRendererTitle(titleObj, isColorRamp || isOpacityRamp) && titleObj.title) {
|
1297
|
+
title = `${titleObj.title} (${genTitle})`;
|
1298
|
+
}
|
1299
|
+
else {
|
1300
|
+
title = genTitle;
|
1301
|
+
}
|
1302
|
+
}
|
1303
|
+
return (h("instant-apps-interactive-legend-legend-element", { class: getTheme(this.el), activeLayerInfo: activeLayerInfo, isSizeRamp: isSizeRamp, isChild: isChild, isColorRamp: isColorRamp, isRelationshipRamp: isRelationshipRamp, isInteractive: isInteractive, zoomTo: this.zoomTo, legendElement: legendElement, titleText: title, legendvm: this.legendvm, legendElementIndex: legendElementIndex, messages: this.messages }, h("div", { slot: "content" }, content)));
|
1304
|
+
}
|
1305
|
+
renderPieChartRamp(legendElement) {
|
1306
|
+
var _a;
|
1307
|
+
return h("div", { innerHTML: `${(_a = legendElement.preview) === null || _a === void 0 ? void 0 : _a.outerHTML}` });
|
1308
|
+
}
|
1309
|
+
async renderUnivariateAboveAndBelowRamp(legendElement, opacity, effectList) {
|
1310
|
+
const { sizeRampElement, colorRampElement } = getUnivariateAboveAndBelowRampElements(legendElement, opacity);
|
1311
|
+
if (!sizeRampElement) {
|
1312
|
+
return null;
|
1313
|
+
}
|
1314
|
+
const colorRampAboveHeight = getUnivariateColorRampSize(sizeRampElement, 'above', true);
|
1315
|
+
const colorRampBelowHeight = getUnivariateColorRampSize(sizeRampElement, 'below', true);
|
1316
|
+
const colorRampWidth = 12;
|
1317
|
+
const colorRampAbovePreview = (await getUnivariateColorRampPreview(colorRampElement, {
|
1318
|
+
width: colorRampWidth,
|
1319
|
+
height: colorRampAboveHeight,
|
1320
|
+
rampAlignment: 'vertical',
|
1321
|
+
opacity,
|
1322
|
+
type: 'above',
|
1323
|
+
effectList,
|
1324
|
+
}));
|
1325
|
+
const colorRampBelowPreview = (await getUnivariateColorRampPreview(colorRampElement, {
|
1326
|
+
width: colorRampWidth,
|
1327
|
+
height: colorRampBelowHeight,
|
1328
|
+
rampAlignment: 'vertical',
|
1329
|
+
opacity,
|
1330
|
+
type: 'below',
|
1331
|
+
effectList,
|
1332
|
+
}));
|
1333
|
+
const colorRampTopMargin = getUnivariateColorRampMargin(sizeRampElement);
|
1334
|
+
const labels = sizeRampElement.infos.map(stop => stop.label);
|
1335
|
+
const aboveRampLabels = labels.map((label, index) => {
|
1336
|
+
const isStartLabel = index === 0;
|
1337
|
+
const isMidLabel = index === 2;
|
1338
|
+
return isStartLabel ? h("div", { class: label ? (colorRampAbovePreview ? CSS.univariateAboveAndBelowLabel : CSS.rampLabel) : '' }, label) : isMidLabel ? h("div", null) : null;
|
1339
|
+
});
|
1340
|
+
const endIndex = labels.length - 1;
|
1341
|
+
const midIndex = Math.floor(labels.length / 2);
|
1342
|
+
const belowRampLabels = labels.map((label, index) => {
|
1343
|
+
const isEndLabel = index === endIndex;
|
1344
|
+
const isMidLabel = index === midIndex;
|
1345
|
+
return isMidLabel || isEndLabel ? h("div", { class: label ? (colorRampAbovePreview ? CSS.univariateAboveAndBelowLabel : CSS.rampLabel) : '' }, label) : null;
|
1346
|
+
});
|
1347
|
+
const sizeRampPreviewStyles = { display: 'table-cell', verticalAlign: 'middle' };
|
1348
|
+
const colorRampPreviewStyles = { marginTop: `${colorRampTopMargin}px` };
|
1349
|
+
const colorRampAboveLabelStyles = { height: `${colorRampAboveHeight}px` };
|
1350
|
+
const colorRampBelowLabelStyles = { height: `${colorRampBelowHeight}px` };
|
1351
|
+
return (h("div", { key: "univariate-above-and-below-ramp-preview", style: univariateRampContainerStyles }, h("div", { class: CSS.layerBody }, sizeRampElement.infos.map((info, i) => (h("div", { class: `${CSS.layerRow} ${CSS.sizeRamp}` }, h("div", { class: CSS.symbol, style: sizeRampPreviewStyles, innerHTML: `${info.preview.outerHTML}` }), !colorRampAbovePreview && i % 2 === 0 ? h("div", { class: CSS.layerInfo }, labels[i]) : null)))), colorRampAbovePreview ? (h("div", { style: colorRampPreviewStyles, key: "color-ramp-preview" }, h("div", { style: univariateColorRampContainerStyles }, h("div", { style: univariateColorRampStyles }, h("div", { class: CSS.rampContainer }, colorRampAbovePreview)), h("div", { style: univariateColorRampStyles }, h("div", { class: CSS.rampLabelsContainer, style: colorRampAboveLabelStyles }, aboveRampLabels))), h("div", { style: univariateColorRampContainerStyles }, h("div", { style: univariateColorRampStyles }, h("div", { class: CSS.rampContainer }, colorRampBelowPreview)), h("div", { style: univariateColorRampStyles }, h("div", { class: CSS.rampLabelsContainer, style: colorRampBelowLabelStyles }, belowRampLabels))))) : null));
|
1352
|
+
}
|
1353
|
+
renderUnivariateColorSizeRamp(legendElement, opacity, effectList) {
|
1354
|
+
const { sizeRampElement, colorRampElement } = getUnivariateColorSizeRampElements(legendElement);
|
1355
|
+
if (!sizeRampElement) {
|
1356
|
+
return null;
|
1357
|
+
}
|
1358
|
+
const colorRampTopMargin = getUnivariateColorRampMargin(sizeRampElement);
|
1359
|
+
const colorRampWidth = 12;
|
1360
|
+
const colorRampHeight = getUnivariateColorRampSize(sizeRampElement, 'full', false);
|
1361
|
+
const colorRampPreview = getUnivariateColorRampPreview(colorRampElement, {
|
1362
|
+
width: colorRampWidth,
|
1363
|
+
height: colorRampHeight,
|
1364
|
+
rampAlignment: 'vertical',
|
1365
|
+
opacity,
|
1366
|
+
type: 'full',
|
1367
|
+
effectList,
|
1368
|
+
});
|
1369
|
+
const endIndex = sizeRampElement.infos.length - 1;
|
1370
|
+
const labels = sizeRampElement.infos.map((stop, index) => index === 0 || index === endIndex ? h("div", { class: stop.label ? (colorRampElement ? CSS.univariateAboveAndBelowLabel : CSS.rampLabel) : '' }, stop.label) : null);
|
1371
|
+
const sizeRampPreviewStyles = { display: 'table-cell', verticalAlign: 'middle' };
|
1372
|
+
const colorRampPreviewStyles = { marginTop: `${colorRampTopMargin}px` };
|
1373
|
+
const colorRampLabelStyles = { height: `${colorRampHeight}px` };
|
1374
|
+
return (h("div", { key: "univariate-above-and-below-ramp-preview", style: univariateRampContainerStyles }, h("div", { class: CSS.layerBody }, sizeRampElement.infos.map(info => (h("div", { class: `${CSS.layerRow} ${CSS.sizeRamp}` }, h("div", { class: CSS.symbol, style: sizeRampPreviewStyles, innerHTML: `${info.preview.outerHTML}` }))))), h("div", { style: colorRampPreviewStyles, key: "color-ramp-preview" }, h("div", { style: univariateColorRampContainerStyles }, h("div", { style: univariateColorRampStyles }, h("div", { class: CSS.rampContainer }, colorRampPreview)), h("div", { style: univariateColorRampStyles }, h("div", { class: CSS.rampLabelsContainer, style: colorRampLabelStyles }, labels))))));
|
1375
|
+
}
|
1376
|
+
renderLegendForRamp(legendElement, opacity) {
|
1377
|
+
var _a;
|
1378
|
+
const rampStops = legendElement.infos;
|
1379
|
+
const isOpacityRamp = legendElement.type === 'opacity-ramp';
|
1380
|
+
const isHeatmapRamp = legendElement.type === 'heatmap-ramp';
|
1381
|
+
const isStretchRamp = legendElement.type === 'stretch-ramp';
|
1382
|
+
const rampDiv = legendElement.preview;
|
1383
|
+
const opacityRampClass = isOpacityRamp ? CSS.opacityRamp : '';
|
1384
|
+
if (rampDiv) {
|
1385
|
+
rampDiv.classList.add(CSS.colorRamp);
|
1386
|
+
if (opacityRampClass)
|
1387
|
+
rampDiv.classList.add(opacityRampClass);
|
1388
|
+
}
|
1389
|
+
if (opacity != null && rampDiv) {
|
1390
|
+
rampDiv.style.opacity = opacity.toString();
|
1391
|
+
}
|
1392
|
+
const labelsContent = rampStops.map(stop => (h("div", { class: stop.label ? CSS.rampLabel : '' }, isHeatmapRamp ? this.messages[stop.label] || stop.label : isStretchRamp ? this.getStretchStopLabel(stop) : stop.label)));
|
1393
|
+
const symbolContainerStyles = { width: `${GRADIENT_WIDTH}px` }, rampLabelsContainerStyles = { height: (_a = rampDiv === null || rampDiv === void 0 ? void 0 : rampDiv.style) === null || _a === void 0 ? void 0 : _a.height };
|
1394
|
+
return (h("div", { class: CSS.layerRow }, h("div", { class: CSS.symbolContainer, style: Object.assign({}, symbolContainerStyles) }, h("div", { ref: el => {
|
1395
|
+
var _a;
|
1396
|
+
if (el === null || el === void 0 ? void 0 : el.firstChild)
|
1397
|
+
(_a = el === null || el === void 0 ? void 0 : el.firstChild) === null || _a === void 0 ? void 0 : _a.remove();
|
1398
|
+
el === null || el === void 0 ? void 0 : el.appendChild(rampDiv);
|
1399
|
+
}, class: CSS.rampContainer })), h("div", { class: CSS.layerInfo }, h("div", { class: CSS.rampLabelsContainer, style: Object.assign({}, rampLabelsContainerStyles) }, labelsContent))));
|
1400
|
+
}
|
1401
|
+
getStretchStopLabel(stop) {
|
1402
|
+
return stop.label
|
1403
|
+
? this.messages[stop.label] +
|
1404
|
+
': ' +
|
1405
|
+
(typeof stop.value === 'string'
|
1406
|
+
? stop.value
|
1407
|
+
: this.intl.formatNumber(stop.value, {
|
1408
|
+
style: 'decimal',
|
1409
|
+
notation: stop.value.toString().includes('e') ? 'scientific' : 'standard',
|
1410
|
+
}))
|
1411
|
+
: '';
|
1412
|
+
}
|
1413
|
+
renderLegendForElementInfo(elementInfo, layer, effectList, isSizeRamp, legendElement, activeLayerInfo, legendElementIndex, infoIndex, isInteractive, parentLegendElementInfo) {
|
1414
|
+
var _a, _b;
|
1415
|
+
// nested
|
1416
|
+
if (elementInfo.type) {
|
1417
|
+
return this.renderLegendForElement(elementInfo, layer, effectList, activeLayerInfo, legendElementIndex, true, elementInfo);
|
1418
|
+
}
|
1419
|
+
let content;
|
1420
|
+
const isStretched = !isImageryStretchedLegend();
|
1421
|
+
if (elementInfo.preview) {
|
1422
|
+
content = h("div", { class: CSS.symbol, innerHTML: `${elementInfo.preview.outerHTML}` });
|
1423
|
+
}
|
1424
|
+
else if (elementInfo.src) {
|
1425
|
+
content = this.renderImage(elementInfo, layer, isStretched);
|
1426
|
+
}
|
1427
|
+
if (!content) {
|
1428
|
+
return null;
|
1429
|
+
}
|
1430
|
+
const imageryLayerInfoStretched = '';
|
1431
|
+
const sizeRamp = isSizeRamp ? ` ${CSS.sizeRamp}` : '';
|
1432
|
+
let selected;
|
1433
|
+
const data = getIntLegendLayerData(layer);
|
1434
|
+
const parentLegendElementInfoData = getParentLegendElementInfoData(data, parentLegendElementInfo);
|
1435
|
+
if (interactiveLegendState.data) {
|
1436
|
+
const category = getCategoryData(data, layer, elementInfo, parentLegendElementInfoData, infoIndex);
|
1437
|
+
// If no items are selected, then apply 'selected' style to all -- UX
|
1438
|
+
const intLegendData = (parentLegendElementInfoData ? parentLegendElementInfoData === null || parentLegendElementInfoData === void 0 ? void 0 : parentLegendElementInfoData.nestedInfos : data);
|
1439
|
+
const noneSelected = checkNoneSelected(intLegendData);
|
1440
|
+
selected = ((_a = data === null || data === void 0 ? void 0 : data.categories) === null || _a === void 0 ? void 0 : _a.size) === 1 ? !(category === null || category === void 0 ? void 0 : category.selected) : noneSelected || (category === null || category === void 0 ? void 0 : category.selected);
|
1441
|
+
}
|
1442
|
+
const interactive = parentLegendElementInfoData && !(elementInfo === null || elementInfo === void 0 ? void 0 : elementInfo.value) ? false : isInteractive;
|
1443
|
+
return interactive ? (
|
1444
|
+
// Regular LegendElementInfo
|
1445
|
+
h("button", { onClick: this.applyFilter(elementInfo, layer, infoIndex, parentLegendElementInfo), class: `${CSS.layerRow} ${CSS.interactiveLayerRow}${selected ? ` ${CSS.infoSelected}` : ''}` }, h("div", { class: `${CSS.symbolContainer}${imageryLayerInfoStretched}${sizeRamp}` }, content), h("div", { class: `${CSS.layerInfo}${imageryLayerInfoStretched}` }, this.getTitle(this.messages, elementInfo.label, false) || ''), this.featureCount ? (h("instant-apps-interactive-legend-count", { class: getTheme(this.el), categoryId: parentLegendElementInfoData ? legendElement.title : (_b = elementInfo.label) !== null && _b !== void 0 ? _b : layer === null || layer === void 0 ? void 0 : layer.id, activeLayerInfo: activeLayerInfo, legendvm: this.legendvm, messages: this.messages, selected: selected, legendElement: legendElement, infoIndex: infoIndex })) : null)) : (h("div", { class: CSS.layerRow }, h("div", { class: `${CSS.symbolContainer}${imageryLayerInfoStretched}${sizeRamp}` }, content), h("div", { class: `${CSS.layerInfo}${imageryLayerInfoStretched}` }, this.getTitle(this.messages, elementInfo.label, false) || '')));
|
1446
|
+
}
|
1447
|
+
renderImage(elementInfo, layer, isStretched) {
|
1448
|
+
const { label, src, opacity } = elementInfo;
|
1449
|
+
const imageryLayerStretchedImage = isStretched ? ` ${CSS.imageryLayerStretchedImage}` : '';
|
1450
|
+
const symbol = !isStretched ? ` ${CSS.symbol}` : '';
|
1451
|
+
const dynamicStyles = {
|
1452
|
+
opacity: `${opacity != null ? opacity : layer.opacity}`,
|
1453
|
+
};
|
1454
|
+
return (h("img", { alt: this.getTitle(this.messages, label, false), src: src,
|
1455
|
+
// border={0}
|
1456
|
+
width: elementInfo.width, height: elementInfo.height, class: `$${imageryLayerStretchedImage}${symbol}`, style: dynamicStyles }));
|
1457
|
+
}
|
1458
|
+
getTitle(messages, titleInfo, // RendererTitle | DotDensityTitle | RampTitle | StretchMultibandTitle | ClusterTitle | string,
|
1459
|
+
isRamp) {
|
1460
|
+
var _a;
|
1461
|
+
if (!titleInfo) {
|
1462
|
+
return undefined;
|
1463
|
+
}
|
1464
|
+
if (typeof titleInfo === 'string' || typeof titleInfo === 'number') {
|
1465
|
+
return titleInfo;
|
1466
|
+
}
|
1467
|
+
if ('value' in titleInfo || 'unit' in titleInfo) {
|
1468
|
+
return this.intl.substitute(messages.dotValue, titleInfo);
|
1469
|
+
}
|
1470
|
+
if ('colorName' in titleInfo || 'bandName' in titleInfo) {
|
1471
|
+
return messages[titleInfo.colorName] + ': ' + (messages[titleInfo.bandName] || titleInfo.bandName);
|
1472
|
+
}
|
1473
|
+
if ('showCount' in titleInfo) {
|
1474
|
+
return titleInfo.showCount ? messages['clusterCountTitle'] : null;
|
1475
|
+
}
|
1476
|
+
// let bundleKey: "showField" | keyof LegendMessages = null;
|
1477
|
+
let bundleKey = null;
|
1478
|
+
if (this.isRampTitle(titleInfo, isRamp)) {
|
1479
|
+
bundleKey = titleInfo.ratioPercentTotal
|
1480
|
+
? 'showRatioPercentTotal'
|
1481
|
+
: titleInfo.ratioPercent
|
1482
|
+
? 'showRatioPercent'
|
1483
|
+
: titleInfo.ratio
|
1484
|
+
? 'showRatio'
|
1485
|
+
: titleInfo.normField
|
1486
|
+
? 'showNormField'
|
1487
|
+
: titleInfo.field
|
1488
|
+
? 'showField'
|
1489
|
+
: null;
|
1490
|
+
}
|
1491
|
+
else if (this.isRendererTitle(titleInfo, isRamp)) {
|
1492
|
+
bundleKey = titleInfo.normField ? 'showNormField' : titleInfo.normByPct ? 'showNormPct' : titleInfo.field ? 'showField' : null;
|
1493
|
+
}
|
1494
|
+
return bundleKey
|
1495
|
+
? (_a = this.intl) === null || _a === void 0 ? void 0 : _a.substitute(bundleKey === 'showField' ? '{field}' : messages[bundleKey], {
|
1496
|
+
field: titleInfo.field,
|
1497
|
+
normField: titleInfo.normField,
|
1498
|
+
})
|
1499
|
+
: '';
|
1500
|
+
}
|
1501
|
+
isRampTitle(_titleInfo, isRamp) {
|
1502
|
+
return isRamp;
|
1503
|
+
}
|
1504
|
+
isRendererTitle(_titleInfo, isRamp) {
|
1505
|
+
return !isRamp;
|
1506
|
+
}
|
1507
|
+
setupWatchersAndListeners() {
|
1508
|
+
// Refreshes interactive legend data on active layer info update
|
1509
|
+
var _a, _b, _c, _d, _e, _f;
|
1510
|
+
const featureLayers = (_d = (_c = (_b = (_a = this.legendvm) === null || _a === void 0 ? void 0 : _a.view) === null || _b === void 0 ? void 0 : _b.map) === null || _c === void 0 ? void 0 : _c.allLayers) === null || _d === void 0 ? void 0 : _d.filter(layer => (layer === null || layer === void 0 ? void 0 : layer.type) === 'feature');
|
1511
|
+
featureLayers.forEach(async (fLayer) => {
|
1512
|
+
var _a, _b, _c, _d;
|
1513
|
+
try {
|
1514
|
+
const fLayerView = await ((_b = (_a = this.legendvm) === null || _a === void 0 ? void 0 : _a.view) === null || _b === void 0 ? void 0 : _b.whenLayerView(fLayer));
|
1515
|
+
const id = `fLayerViewScale-${fLayer === null || fLayer === void 0 ? void 0 : fLayer.id}`;
|
1516
|
+
if (!((_c = this.handles) === null || _c === void 0 ? void 0 : _c.has(id))) {
|
1517
|
+
(_d = this.handles) === null || _d === void 0 ? void 0 : _d.add(fLayerView.watch('visibleAtCurrentScale', async () => this.createDataForLayer(fLayer)), id);
|
1518
|
+
}
|
1519
|
+
}
|
1520
|
+
catch (_e) { }
|
1521
|
+
});
|
1522
|
+
featureLayers === null || featureLayers === void 0 ? void 0 : featureLayers.forEach(fLayer => {
|
1523
|
+
var _a, _b, _c;
|
1524
|
+
const id = `fLayer-${fLayer === null || fLayer === void 0 ? void 0 : fLayer.id}`;
|
1525
|
+
if (!((_a = this.handles) === null || _a === void 0 ? void 0 : _a.has(id))) {
|
1526
|
+
(_b = this.handles) === null || _b === void 0 ? void 0 : _b.add((_c = this.reactiveUtils) === null || _c === void 0 ? void 0 : _c.watch(() => fLayer === null || fLayer === void 0 ? void 0 : fLayer.visible, async () => this.createDataForLayer(fLayer)), id);
|
1527
|
+
}
|
1528
|
+
});
|
1529
|
+
(_e = this.handles) === null || _e === void 0 ? void 0 : _e.add(this.reactiveUtils.when(() => this.legendvm, () => {
|
1530
|
+
this.reactiveUtils.watch(() => { var _a, _b; return (_b = (_a = this.legendvm) === null || _a === void 0 ? void 0 : _a.view) === null || _b === void 0 ? void 0 : _b.updating; }, () => {
|
1531
|
+
var _a, _b;
|
1532
|
+
if (this.calculatingFeatureCount)
|
1533
|
+
return;
|
1534
|
+
if ((_b = (_a = this.legendvm) === null || _a === void 0 ? void 0 : _a.view) === null || _b === void 0 ? void 0 : _b.updating) {
|
1535
|
+
this.calculatingFeatureCount = true;
|
1536
|
+
this.reactiveUtils.when(() => { var _a, _b; return !((_b = (_a = this.legendvm) === null || _a === void 0 ? void 0 : _a.view) === null || _b === void 0 ? void 0 : _b.updating); }, async () => {
|
1537
|
+
const data = await handleFeatureCount(this.legendvm, interactiveLegendState.data);
|
1538
|
+
store.set('data', Object.assign(Object.assign({}, interactiveLegendState.data), data));
|
1539
|
+
this.calculatingFeatureCount = false;
|
1540
|
+
}, { once: true, initial: true });
|
1541
|
+
}
|
1542
|
+
}, { initial: true });
|
1543
|
+
}, { initial: true, once: true }));
|
1544
|
+
(_f = this.handles) === null || _f === void 0 ? void 0 : _f.add(this.reactiveUtils.on(() => { var _a; return (_a = this.legendvm) === null || _a === void 0 ? void 0 : _a.activeLayerInfos; }, 'change', async (activeLayerInfo) => {
|
1545
|
+
var _a;
|
1546
|
+
const data = await generateData(this.legendvm, this.reactiveUtils);
|
1547
|
+
store.set('data', Object.assign(Object.assign({}, interactiveLegendState.data), data));
|
1548
|
+
forceUpdate(this.el);
|
1549
|
+
(_a = this.handles) === null || _a === void 0 ? void 0 : _a.add(this.reactiveUtils.on(() => activeLayerInfo.children, 'change', async () => {
|
1550
|
+
const data = await generateData(this.legendvm, this.reactiveUtils);
|
1551
|
+
store.set('data', Object.assign(Object.assign({}, interactiveLegendState.data), data));
|
1552
|
+
forceUpdate(this.el);
|
1553
|
+
}));
|
1554
|
+
}));
|
1555
|
+
}
|
1556
|
+
async createDataForLayer(fLayer) {
|
1557
|
+
var _a, _b;
|
1558
|
+
const data = store.get('data');
|
1559
|
+
const dataForLayer = data === null || data === void 0 ? void 0 : data[fLayer === null || fLayer === void 0 ? void 0 : fLayer.id];
|
1560
|
+
const acl = (_b = (_a = this.legendvm) === null || _a === void 0 ? void 0 : _a.activeLayerInfos) === null || _b === void 0 ? void 0 : _b.find(acl => { var _a; return ((_a = acl === null || acl === void 0 ? void 0 : acl.layer) === null || _a === void 0 ? void 0 : _a.id) === (fLayer === null || fLayer === void 0 ? void 0 : fLayer.id); });
|
1561
|
+
if (!dataForLayer && acl) {
|
1562
|
+
const dataForLayer = (await createInteractiveLegendDataForLayer(this.legendvm, acl, this.reactiveUtils));
|
1563
|
+
updateStore({ intLegendLayerData: dataForLayer, layerId: fLayer === null || fLayer === void 0 ? void 0 : fLayer.id });
|
1564
|
+
if (this.featureCount) {
|
1565
|
+
const data = await handleFeatureCount(this.legendvm, interactiveLegendState.data);
|
1566
|
+
store.set('data', Object.assign(Object.assign({}, interactiveLegendState.data), data));
|
1567
|
+
}
|
1568
|
+
}
|
1569
|
+
}
|
1570
|
+
applyFilter(elementInfo, layer, infoIndex, parentLegendElementInfo) {
|
1571
|
+
return async () => {
|
1572
|
+
var _a;
|
1573
|
+
const dataFromActiveLayerInfo = Object.assign({}, (_a = interactiveLegendState.data) === null || _a === void 0 ? void 0 : _a[layer === null || layer === void 0 ? void 0 : layer.id]);
|
1574
|
+
if (parentLegendElementInfo) {
|
1575
|
+
await handleFilter(dataFromActiveLayerInfo, elementInfo, infoIndex, this.filterMode, parentLegendElementInfo);
|
1576
|
+
}
|
1577
|
+
else {
|
1578
|
+
await handleFilter(dataFromActiveLayerInfo, elementInfo, infoIndex, this.filterMode);
|
1579
|
+
}
|
1580
|
+
updateStore({ intLegendLayerData: dataFromActiveLayerInfo, layerId: layer === null || layer === void 0 ? void 0 : layer.id });
|
1581
|
+
};
|
1582
|
+
}
|
1583
|
+
get el() { return this; }
|
1584
|
+
static get watchers() { return {
|
1585
|
+
"filterMode": ["handleFilterModeChange"]
|
1586
|
+
}; }
|
1587
|
+
static get style() { return instantAppsInteractiveLegendClassicCss; }
|
1588
|
+
}, [2, "instant-apps-interactive-legend-classic", {
|
1589
|
+
"legendvm": [16],
|
1590
|
+
"zoomTo": [4, "zoom-to"],
|
1591
|
+
"featureCount": [4, "feature-count"],
|
1592
|
+
"filterMode": [16],
|
1593
|
+
"messages": [8],
|
1594
|
+
"isLoading": [32],
|
1595
|
+
"intLegendId": [32]
|
1596
|
+
}, undefined, {
|
1597
|
+
"filterMode": ["handleFilterModeChange"]
|
1598
|
+
}]);
|
1599
|
+
function defineCustomElement() {
|
1600
|
+
if (typeof customElements === "undefined") {
|
1601
|
+
return;
|
1602
|
+
}
|
1603
|
+
const components = ["instant-apps-interactive-legend-classic", "calcite-action", "calcite-button", "calcite-icon", "calcite-loader", "calcite-tooltip", "instant-apps-interactive-legend-count", "instant-apps-interactive-legend-group-legend-element", "instant-apps-interactive-legend-layer-element", "instant-apps-interactive-legend-layer-element-caption", "instant-apps-interactive-legend-legend-element", "instant-apps-interactive-legend-legend-element-caption", "instant-apps-interactive-legend-relationship"];
|
1604
|
+
components.forEach(tagName => { switch (tagName) {
|
1605
|
+
case "instant-apps-interactive-legend-classic":
|
1606
|
+
if (!customElements.get(tagName)) {
|
1607
|
+
customElements.define(tagName, InstantAppsInteractiveLegendClassic);
|
1608
|
+
}
|
1609
|
+
break;
|
1610
|
+
case "calcite-action":
|
1611
|
+
if (!customElements.get(tagName)) {
|
1612
|
+
defineCustomElement$c();
|
1613
|
+
}
|
1614
|
+
break;
|
1615
|
+
case "calcite-button":
|
1616
|
+
if (!customElements.get(tagName)) {
|
1617
|
+
defineCustomElement$b();
|
1618
|
+
}
|
1619
|
+
break;
|
1620
|
+
case "calcite-icon":
|
1621
|
+
if (!customElements.get(tagName)) {
|
1622
|
+
defineCustomElement$a();
|
1623
|
+
}
|
1624
|
+
break;
|
1625
|
+
case "calcite-loader":
|
1626
|
+
if (!customElements.get(tagName)) {
|
1627
|
+
defineCustomElement$9();
|
1628
|
+
}
|
1629
|
+
break;
|
1630
|
+
case "calcite-tooltip":
|
1631
|
+
if (!customElements.get(tagName)) {
|
1632
|
+
defineCustomElement$8();
|
1633
|
+
}
|
1634
|
+
break;
|
1635
|
+
case "instant-apps-interactive-legend-count":
|
1636
|
+
if (!customElements.get(tagName)) {
|
1637
|
+
defineCustomElement$7();
|
1638
|
+
}
|
1639
|
+
break;
|
1640
|
+
case "instant-apps-interactive-legend-group-legend-element":
|
1641
|
+
if (!customElements.get(tagName)) {
|
1642
|
+
defineCustomElement$6();
|
1643
|
+
}
|
1644
|
+
break;
|
1645
|
+
case "instant-apps-interactive-legend-layer-element":
|
1646
|
+
if (!customElements.get(tagName)) {
|
1647
|
+
defineCustomElement$5();
|
1648
|
+
}
|
1649
|
+
break;
|
1650
|
+
case "instant-apps-interactive-legend-layer-element-caption":
|
1651
|
+
if (!customElements.get(tagName)) {
|
1652
|
+
defineCustomElement$4();
|
1653
|
+
}
|
1654
|
+
break;
|
1655
|
+
case "instant-apps-interactive-legend-legend-element":
|
1656
|
+
if (!customElements.get(tagName)) {
|
1657
|
+
defineCustomElement$3();
|
1658
|
+
}
|
1659
|
+
break;
|
1660
|
+
case "instant-apps-interactive-legend-legend-element-caption":
|
1661
|
+
if (!customElements.get(tagName)) {
|
1662
|
+
defineCustomElement$2();
|
1663
|
+
}
|
1664
|
+
break;
|
1665
|
+
case "instant-apps-interactive-legend-relationship":
|
1666
|
+
if (!customElements.get(tagName)) {
|
1667
|
+
defineCustomElement$1();
|
1668
|
+
}
|
1669
|
+
break;
|
1670
|
+
} });
|
1671
|
+
}
|
1672
|
+
defineCustomElement();
|
1673
|
+
|
1674
|
+
export { InstantAppsInteractiveLegendClassic as I, defineCustomElement as d };
|