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