@esri/solutions-components 0.7.23 → 0.7.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/crowdsource-manager/resources.json +1 -3
- package/dist/assets/t9n/crowdsource-manager/resources_en.json +1 -3
- package/dist/assets/t9n/crowdsource-reporter/resources.json +18 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_en.json +18 -1
- package/dist/assets/t9n/delete-button/resources.json +8 -0
- package/dist/assets/t9n/delete-button/resources_en.json +8 -0
- package/dist/assets/t9n/feature-list/resources.json +4 -0
- package/dist/assets/t9n/feature-list/resources_en.json +4 -0
- package/dist/assets/t9n/info-card/resources.json +1 -1
- package/dist/assets/t9n/info-card/resources_en.json +1 -1
- package/dist/assets/t9n/layer-list/resources.json +4 -0
- package/dist/assets/t9n/layer-list/resources_en.json +4 -0
- package/dist/assets/t9n/layer-table/resources.json +0 -9
- package/dist/assets/t9n/layer-table/resources_en.json +0 -9
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +7 -8
- package/dist/cjs/buffer-tools_3.cjs.entry.js +3 -4
- package/dist/cjs/calcite-action-bar.cjs.entry.js +255 -0
- package/dist/cjs/{calcite-alert_3.cjs.entry.js → calcite-alert_4.cjs.entry.js} +187 -115
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +1 -1
- package/dist/cjs/{calcite-action-bar_3.cjs.entry.js → calcite-filter_5.cjs.entry.js} +333 -172
- package/dist/cjs/calcite-flow_4.cjs.entry.js +657 -0
- package/dist/cjs/calcite-input-date-picker_3.cjs.entry.js +22 -11
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +1 -1
- package/dist/cjs/card-manager_3.cjs.entry.js +50 -93
- package/dist/cjs/crowdsource-manager.cjs.entry.js +17 -3
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +156 -35
- package/dist/cjs/{downloadUtils-401356b5.js → downloadUtils-83c6d3c3.js} +6 -6
- package/dist/cjs/{index.es-a9a4ff08.js → index.es-bd1a93b2.js} +2 -2
- package/dist/cjs/instant-apps-export.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +41 -1
- package/dist/cjs/layout-manager.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-9db09b63.js → locale-a476e15d.js} +40 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +4 -5
- package/dist/cjs/popupUtils-a73902a6.js +99 -0
- package/dist/cjs/public-notification.cjs.entry.js +3 -4
- package/dist/cjs/solution-configuration.cjs.entry.js +1 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js +15 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +23 -2
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +51 -0
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +302 -35
- package/dist/{solutions-components/p-48ff9cea.js → collection/components/delete-button/delete-button.css} +19 -21
- package/dist/collection/components/delete-button/delete-button.js +299 -0
- package/dist/{cjs/loadModules-46d14e81.js → collection/components/delete-button/test/delete-button.e2e.js} +9 -10
- package/dist/{esm/loadModules-cea493da.js → collection/components/delete-button/test/delete-button.spec.js} +17 -8
- package/dist/collection/components/feature-list/feature-list.css +38 -0
- package/dist/collection/components/feature-list/feature-list.js +303 -0
- package/dist/collection/components/info-card/info-card.js +65 -21
- package/dist/collection/components/layer-list/layer-list.css +28 -0
- package/dist/collection/components/layer-list/layer-list.js +288 -0
- package/dist/collection/components/layer-table/layer-table.js +63 -116
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +31 -1
- package/dist/collection/demos/crowdsource-reporter.html +61 -38
- package/dist/collection/demos/feature-list.html +43 -0
- package/dist/collection/demos/layer-list.html +43 -0
- package/dist/collection/utils/interfaces.ts +4 -0
- package/dist/components/calcite-flow-item.js +1 -261
- package/dist/components/calcite-flow.js +1 -165
- package/dist/components/card-manager2.js +38 -26
- package/dist/components/crowdsource-manager.js +110 -89
- package/dist/components/crowdsource-reporter.js +346 -39
- package/dist/components/delete-button.d.ts +11 -0
- package/dist/components/delete-button.js +11 -0
- package/dist/components/delete-button2.js +209 -0
- package/dist/components/feature-list.d.ts +11 -0
- package/dist/components/feature-list.js +11 -0
- package/dist/components/feature-list2.js +281 -0
- package/dist/{esm/calcite-flow-item.entry.js → components/flow-item.js} +94 -19
- package/dist/{esm/calcite-flow.entry.js → components/flow.js} +33 -10
- package/dist/components/info-card2.js +87 -136
- package/dist/components/instant-apps-export.js +1 -1
- package/dist/components/instant-apps-filter-list2.js +22 -11
- package/dist/components/instant-apps-language-translator2.js +48 -4
- package/dist/components/layer-list.d.ts +11 -0
- package/dist/components/layer-list.js +11 -0
- package/dist/components/layer-list2.js +268 -0
- package/dist/components/layer-table2.js +126 -165
- package/dist/components/locale.js +19 -2
- package/dist/components/popupUtils.js +97 -0
- package/dist/components/queryUtils.js +1 -1
- package/dist/components/solution-spatial-ref2.js +17 -2
- package/dist/esm/{ExpandToggle-540998b5.js → ExpandToggle-96688cda.js} +1 -1
- package/dist/esm/{ar-35006b74.js → ar-29711364.js} +8 -8
- package/dist/esm/basemap-gallery_7.entry.js +1 -2
- package/dist/esm/{bg-c289978f.js → bg-c0f5033b.js} +8 -8
- package/dist/esm/{bs-6f9fb44a.js → bs-60479ce5.js} +8 -8
- package/dist/esm/buffer-tools_3.entry.js +3 -4
- package/dist/esm/{ca-7962c8b7.js → ca-4317b986.js} +8 -8
- package/dist/esm/calcite-accordion-item.entry.js +1 -1
- package/dist/esm/calcite-action-bar.entry.js +251 -0
- package/dist/esm/calcite-action-group.entry.js +3 -3
- package/dist/esm/calcite-action-menu_2.entry.js +5 -5
- package/dist/esm/calcite-action-pad_2.entry.js +4 -4
- package/dist/esm/calcite-action_2.entry.js +3 -3
- package/dist/esm/{calcite-alert_3.entry.js → calcite-alert_4.entry.js} +189 -118
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block-section.entry.js +3 -3
- package/dist/esm/calcite-block_2.entry.js +5 -5
- package/dist/esm/calcite-button.entry.js +5 -5
- package/dist/esm/calcite-card.entry.js +3 -3
- package/dist/esm/calcite-checkbox.entry.js +3 -3
- package/dist/esm/calcite-chip-group.entry.js +1 -1
- package/dist/esm/calcite-chip.entry.js +3 -3
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +1 -1
- package/dist/esm/calcite-color-picker.entry.js +3 -3
- package/dist/esm/calcite-combobox-item-group.entry.js +2 -2
- package/dist/esm/calcite-combobox_6.entry.js +10 -10
- package/dist/esm/calcite-date-picker-day_3.entry.js +3 -3
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/{calcite-action-bar_3.entry.js → calcite-filter_5.entry.js} +363 -204
- package/dist/esm/calcite-flow_4.entry.js +650 -0
- package/dist/esm/calcite-graph_2.entry.js +4 -4
- 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_3.entry.js +31 -20
- 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-63439178.js → calcite-input-time-picker-2e1b2157.js} +55 -55
- 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 +2 -2
- package/dist/esm/calcite-link.entry.js +1 -1
- package/dist/esm/calcite-menu-item.entry.js +3 -3
- package/dist/esm/calcite-menu.entry.js +3 -3
- package/dist/esm/calcite-meter.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +4 -4
- package/dist/esm/calcite-navigation.entry.js +1 -1
- package/dist/esm/calcite-notice.entry.js +3 -3
- package/dist/esm/calcite-option_2.entry.js +3 -3
- package/dist/esm/calcite-pagination.entry.js +3 -3
- package/dist/esm/calcite-panel_2.entry.js +3 -3
- package/dist/esm/calcite-pick-list-group.entry.js +1 -1
- package/dist/esm/calcite-pick-list-item.entry.js +3 -3
- package/dist/esm/calcite-pick-list.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 +2 -2
- package/dist/esm/calcite-shell-center-row.entry.js +1 -1
- package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
- package/dist/esm/calcite-sortable-list.entry.js +1 -1
- package/dist/esm/calcite-stepper-item.entry.js +3 -3
- 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 +3 -3
- package/dist/esm/calcite-table-row.entry.js +1 -1
- package/dist/esm/calcite-table.entry.js +3 -3
- package/dist/esm/calcite-text-area.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +1 -1
- package/dist/esm/calcite-time-picker.entry.js +4 -4
- package/dist/esm/calcite-tip-manager.entry.js +3 -3
- package/dist/esm/calcite-tip.entry.js +3 -3
- package/dist/esm/calcite-tooltip.entry.js +2 -2
- package/dist/esm/calcite-tree_2.entry.js +1 -1
- package/dist/esm/card-manager_3.entry.js +50 -93
- package/dist/esm/{common-2cf42ac2.js → common-d04ccc0d.js} +1 -1
- package/dist/esm/crowdsource-manager.entry.js +18 -4
- package/dist/esm/crowdsource-reporter.entry.js +156 -35
- package/dist/esm/{cs-6d13069b.js → cs-da404a04.js} +8 -8
- package/dist/esm/{da-14097e6c.js → da-1afac3fa.js} +8 -8
- package/dist/esm/{date-1743b515.js → date-8b4a8f33.js} +1 -1
- package/dist/esm/{de-dff2571b.js → de-98f3129e.js} +8 -8
- package/dist/esm/{de-at-b733db65.js → de-at-ed4817af.js} +8 -8
- package/dist/esm/{de-ch-5ad0cb74.js → de-ch-556c82c8.js} +8 -8
- package/dist/esm/{dom-492b1b24.js → dom-8f926f33.js} +1 -1
- package/dist/esm/{downloadUtils-13579d93.js → downloadUtils-a301c193.js} +3 -3
- package/dist/esm/{el-688e05ba.js → el-394dfd74.js} +8 -8
- package/dist/esm/{en-au-357e70d8.js → en-au-6dde1e7e.js} +8 -8
- package/dist/esm/{en-ca-1e0b6b47.js → en-ca-420be416.js} +8 -8
- package/dist/esm/{en-gb-861a17f2.js → en-gb-0a7caa85.js} +8 -8
- package/dist/esm/{es-291ab4bd.js → es-2e1beb99.js} +8 -8
- package/dist/esm/{es-mx-0a7283a7.js → es-mx-ef132a24.js} +8 -8
- package/dist/esm/{et-addd2617.js → et-83d139c1.js} +8 -8
- package/dist/esm/{fi-469884d5.js → fi-8b81ed94.js} +8 -8
- package/dist/esm/{floating-ui-03eb4c82.js → floating-ui-c397f653.js} +1 -1
- package/dist/esm/{focusTrapComponent-2e7de651.js → focusTrapComponent-14368766.js} +1 -1
- package/dist/esm/{form-9bccaf85.js → form-133b00c7.js} +1 -1
- package/dist/esm/{fr-f5cb34ca.js → fr-c47c114a.js} +8 -8
- package/dist/esm/{fr-ch-115d3fda.js → fr-ch-97635343.js} +8 -8
- package/dist/esm/{he-6e5f5c56.js → he-ed2a12b9.js} +8 -8
- package/dist/esm/{hi-503240c2.js → hi-a05727ac.js} +8 -8
- package/dist/esm/{hr-cc08d6fc.js → hr-d01671ca.js} +8 -8
- package/dist/esm/{hu-69ac240d.js → hu-16506ca7.js} +8 -8
- package/dist/esm/{id-99547746.js → id-e9367e87.js} +8 -8
- package/dist/esm/{index.es-04d2e63e.js → index.es-37a9907e.js} +4 -4
- package/dist/esm/instant-apps-export.entry.js +1 -1
- package/dist/esm/instant-apps-language-translator.entry.js +42 -2
- package/dist/esm/{interfaces-341e3ab3.js → interfaces-586e863c.js} +1 -1
- package/dist/esm/{it-dbb6ea7d.js → it-14246b4a.js} +8 -8
- package/dist/esm/{it-ch-a83801f6.js → it-ch-a877e111.js} +8 -8
- package/dist/esm/{ja-79dbb02f.js → ja-67a0cfa0.js} +8 -8
- package/dist/esm/{ko-31ebe067.js → ko-35b0b83a.js} +8 -8
- package/dist/esm/{label-14301f4d.js → label-cd393c81.js} +1 -1
- package/dist/esm/layout-manager.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-8cfa3086.js → locale-6107ef11.js} +1 -1
- package/dist/esm/{locale-834c52c6.js → locale-731e75a8.js} +39 -2
- package/dist/esm/{lt-94d3f4b8.js → lt-71014faf.js} +8 -8
- package/dist/esm/{lv-d770ed0d.js → lv-def9df38.js} +8 -8
- package/dist/esm/map-select-tools_3.entry.js +4 -5
- package/dist/esm/{mapViewUtils-8fe70944.js → mapViewUtils-6daedef8.js} +2 -2
- package/dist/esm/{mk-1046d60a.js → mk-bfeac49e.js} +8 -8
- package/dist/esm/{nb-dad0b4b9.js → nb-0723b461.js} +8 -8
- package/dist/esm/{nl-a968c4b7.js → nl-89663165.js} +8 -8
- package/dist/esm/{pl-a0037bd3.js → pl-0157c37c.js} +8 -8
- package/dist/esm/popupUtils-a593bd78.js +97 -0
- package/dist/esm/{pt-e3d9370c.js → pt-80d1520c.js} +8 -8
- package/dist/esm/{pt-br-44c11565.js → pt-br-ee5003c7.js} +8 -8
- package/dist/esm/public-notification.entry.js +4 -5
- package/dist/esm/{ro-290e025d.js → ro-eff987f8.js} +8 -8
- package/dist/esm/{ru-38ff91f1.js → ru-62839398.js} +8 -8
- package/dist/esm/{shared-list-render-89e4bcff.js → shared-list-render-a2ab63e8.js} +1 -1
- package/dist/esm/{sk-9622a24b.js → sk-c2f4bd58.js} +8 -8
- package/dist/esm/{sl-6bc83a24.js → sl-328ff1db.js} +8 -8
- package/dist/esm/solution-configuration.entry.js +3 -3
- package/dist/esm/solution-contents_3.entry.js +18 -5
- package/dist/esm/{solution-store-b08696f7.js → solution-store-19f7825b.js} +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +3 -3
- package/dist/esm/{sr-35e575d8.js → sr-75a3ad46.js} +8 -8
- package/dist/esm/{sv-d80fa359.js → sv-10da5ef2.js} +8 -8
- package/dist/esm/{t9n-3c5e55ab.js → t9n-f16911e7.js} +1 -1
- package/dist/esm/{th-23e71d40.js → th-aa112042.js} +8 -8
- package/dist/esm/{time-d956a7c8.js → time-855b3426.js} +1 -1
- package/dist/esm/{tr-961fd2f3.js → tr-5925a2f5.js} +8 -8
- package/dist/esm/{uk-4e8a425a.js → uk-c40eeb9f.js} +8 -8
- package/dist/esm/{utils-56206ec2.js → utils-93fd55c4.js} +2 -2
- package/dist/esm/{utils-8287806a.js → utils-c3509713.js} +1 -1
- package/dist/esm/{vi-ad983882.js → vi-27922b93.js} +8 -8
- package/dist/esm/{zh-cn-5b6fd039.js → zh-cn-38a2e1d3.js} +8 -8
- package/dist/esm/{zh-hk-7439b11d.js → zh-hk-e0217bd1.js} +8 -8
- package/dist/esm/{zh-tw-cf384663.js → zh-tw-31f0447c.js} +8 -8
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-filter-list/instant-apps-filter-list.css +0 -1
- package/dist/solutions-components/demos/crowdsource-reporter.html +61 -38
- package/dist/solutions-components/demos/feature-list.html +43 -0
- package/dist/solutions-components/demos/layer-list.html +43 -0
- package/dist/solutions-components/{p-e7951fcb.js → p-0392679d.js} +1 -1
- package/dist/solutions-components/{p-c68a6d4f.js → p-0587972d.js} +1 -1
- package/dist/solutions-components/{p-3022da2d.js → p-05f702ae.js} +1 -1
- package/dist/solutions-components/{p-4da72ee8.entry.js → p-068f5a8c.entry.js} +1 -1
- package/dist/solutions-components/{p-2ddd9cf8.entry.js → p-0b4f4b0e.entry.js} +1 -1
- package/dist/solutions-components/p-0b619197.entry.js +17 -0
- package/dist/solutions-components/{p-4f71a1a0.js → p-0d774e41.js} +1 -1
- package/dist/solutions-components/{p-0e723ffc.js → p-0f6b58b2.js} +1 -1
- package/dist/solutions-components/{p-ec8f042e.entry.js → p-10410f92.entry.js} +1 -1
- package/dist/solutions-components/{p-6a4b1e48.entry.js → p-10f2d6b0.entry.js} +2 -2
- package/dist/solutions-components/{p-5d2ccc75.entry.js → p-13be5cf5.entry.js} +1 -1
- package/dist/solutions-components/{p-58054bc2.js → p-14548a83.js} +1 -1
- package/dist/solutions-components/{p-026b1345.js → p-17668cb7.js} +3 -3
- package/dist/solutions-components/{p-5e530f8c.js → p-1c75bb3d.js} +1 -1
- package/dist/solutions-components/p-1f7046e9.entry.js +6 -0
- package/dist/solutions-components/{p-121a5dac.entry.js → p-234a8293.entry.js} +1 -1
- package/dist/solutions-components/{p-355249fc.js → p-2447b332.js} +1 -1
- package/dist/solutions-components/{p-48828002.entry.js → p-24c699b0.entry.js} +1 -1
- package/dist/solutions-components/{p-9bcbc1cc.js → p-2592e0dd.js} +1 -1
- package/dist/solutions-components/{p-48a5ae32.entry.js → p-2656c6e4.entry.js} +1 -1
- package/dist/solutions-components/p-284cc5cd.entry.js +6 -0
- package/dist/solutions-components/{p-b78a1c21.js → p-28b33708.js} +1 -1
- package/dist/solutions-components/p-29f661f5.entry.js +11 -0
- package/dist/solutions-components/{p-fa6ef970.js → p-2d68a6fd.js} +1 -1
- package/dist/solutions-components/{p-6437fee1.entry.js → p-2e2d01de.entry.js} +1 -1
- package/dist/solutions-components/{p-5e9b05c0.entry.js → p-2f425700.entry.js} +1 -1
- package/dist/solutions-components/{p-6c3cdd09.entry.js → p-364486d1.entry.js} +1 -1
- package/dist/solutions-components/{p-85a89f1d.entry.js → p-368cbb2c.entry.js} +1 -1
- package/dist/solutions-components/{p-52ad6ff9.entry.js → p-36f247db.entry.js} +1 -1
- package/dist/solutions-components/{p-080249de.js → p-38544b17.js} +1 -1
- package/dist/solutions-components/{p-a0be72b6.entry.js → p-3a73ee38.entry.js} +1 -1
- package/dist/solutions-components/{p-532b7378.entry.js → p-3ad4426b.entry.js} +1 -1
- package/dist/solutions-components/{p-5752785e.entry.js → p-3c10901a.entry.js} +1 -1
- package/dist/solutions-components/{p-6e406a7b.js → p-3c7d0eb9.js} +1 -1
- package/dist/solutions-components/{p-bf23173c.js → p-411b73a7.js} +1 -1
- package/dist/solutions-components/{p-76d60881.entry.js → p-429e1284.entry.js} +1 -1
- package/dist/solutions-components/{p-f3d277c2.entry.js → p-42f0e1fa.entry.js} +1 -1
- package/dist/solutions-components/{p-1fc220c7.js → p-4416d288.js} +1 -1
- package/dist/solutions-components/{p-663a433a.entry.js → p-451b16b3.entry.js} +2 -2
- package/dist/solutions-components/{p-b5d1b979.js → p-4566438a.js} +3 -3
- package/dist/solutions-components/{p-7a06dcdf.js → p-4647b2a6.js} +1 -1
- package/dist/solutions-components/{p-75fbe76c.js → p-480d0789.js} +1 -1
- package/dist/solutions-components/p-49b02dda.entry.js +6 -0
- package/dist/solutions-components/{p-722ae773.js → p-49fb1bfa.js} +2 -2
- package/dist/solutions-components/{p-17183100.js → p-4abf1c34.js} +1 -1
- package/dist/solutions-components/p-4ae36626.js +6 -0
- package/dist/solutions-components/{p-5c3fd315.entry.js → p-4bff69aa.entry.js} +1 -1
- package/dist/solutions-components/{p-f8f18a94.entry.js → p-4ccdac24.entry.js} +1 -1
- package/dist/solutions-components/{p-a3a64af2.entry.js → p-4d402bcf.entry.js} +1 -1
- package/dist/solutions-components/{p-7e82a730.js → p-4d8fc031.js} +1 -1
- package/dist/solutions-components/{p-1c720ed5.entry.js → p-4d99cb49.entry.js} +1 -1
- package/dist/solutions-components/p-4fbadb84.entry.js +6 -0
- package/dist/solutions-components/{p-e0276e26.entry.js → p-5268d845.entry.js} +2 -2
- package/dist/solutions-components/p-5af99fd8.entry.js +6 -0
- package/dist/solutions-components/{p-f3f09834.js → p-5e12026e.js} +1 -1
- package/dist/solutions-components/{p-ffee4847.entry.js → p-5fe99315.entry.js} +1 -1
- package/dist/solutions-components/{p-d6208a47.js → p-6105d57c.js} +1 -1
- package/dist/solutions-components/{p-f3dfb34f.entry.js → p-613315a7.entry.js} +1 -1
- package/dist/solutions-components/{p-0d97c2c5.entry.js → p-62eba559.entry.js} +1 -1
- package/dist/solutions-components/{p-40235cb7.entry.js → p-63fa7791.entry.js} +1 -1
- package/dist/solutions-components/{p-cfccae7c.js → p-6604ac77.js} +1 -1
- package/dist/solutions-components/{p-9b1766ef.entry.js → p-674be06c.entry.js} +1 -1
- package/dist/solutions-components/{p-a4aef40c.entry.js → p-67ff8e9a.entry.js} +1 -1
- package/dist/solutions-components/{p-4647c429.js → p-68e0adcf.js} +1 -1
- package/dist/solutions-components/{p-fc8338c6.entry.js → p-68e84199.entry.js} +1 -1
- package/dist/solutions-components/{p-aa3092cf.js → p-69763854.js} +1 -1
- package/dist/solutions-components/{p-e31754c8.js → p-6ae45648.js} +1 -1
- package/dist/solutions-components/{p-98013072.entry.js → p-6cce7009.entry.js} +1 -1
- package/dist/solutions-components/{p-34cacf32.js → p-6d511162.js} +1 -1
- package/dist/solutions-components/{p-5953ebe8.entry.js → p-7116f96d.entry.js} +1 -1
- package/dist/solutions-components/{p-337acb3c.js → p-727596e6.js} +1 -1
- package/dist/solutions-components/{p-b170916e.js → p-73100e79.js} +2 -2
- package/dist/solutions-components/{p-23662977.entry.js → p-734bc1b0.entry.js} +2 -2
- package/dist/solutions-components/{p-f3626331.entry.js → p-752ece4a.entry.js} +2 -2
- package/dist/solutions-components/{p-ecdd587c.entry.js → p-75e2a322.entry.js} +3 -3
- package/dist/solutions-components/{p-ca33fa09.entry.js → p-787203af.entry.js} +1 -1
- package/dist/solutions-components/{p-a9fc934d.js → p-79110824.js} +1 -1
- package/dist/solutions-components/{p-b82179c0.js → p-793cad54.js} +1 -1
- package/dist/solutions-components/{p-0250dec5.js → p-797aa505.js} +1 -1
- package/dist/solutions-components/{p-166d5bcc.entry.js → p-7c13406e.entry.js} +1 -1
- package/dist/solutions-components/{p-16df3a9e.entry.js → p-7dbccc10.entry.js} +1 -1
- package/dist/solutions-components/{p-133de052.entry.js → p-7ebd34df.entry.js} +1 -1
- package/dist/solutions-components/{p-8934e858.entry.js → p-809b7e47.entry.js} +2 -2
- package/dist/solutions-components/p-8308f64c.entry.js +6 -0
- package/dist/solutions-components/{p-ca97465b.js → p-83fd31d5.js} +1 -1
- package/dist/solutions-components/{p-2e1f7c0e.entry.js → p-84378c8d.entry.js} +2 -2
- package/dist/solutions-components/p-864b1d72.entry.js +6 -0
- package/dist/solutions-components/{p-d8b3d156.entry.js → p-891682da.entry.js} +1 -1
- package/dist/solutions-components/{p-50ea26de.entry.js → p-8b47b607.entry.js} +1 -1
- package/dist/solutions-components/{p-f4e91113.js → p-8d49a084.js} +1 -1
- package/dist/solutions-components/{p-f84848b0.entry.js → p-8fabb8a4.entry.js} +1 -1
- package/dist/solutions-components/{p-29602eff.entry.js → p-96c2ed64.entry.js} +1 -1
- package/dist/solutions-components/{p-b42bde59.entry.js → p-978d936a.entry.js} +1 -1
- package/dist/solutions-components/{p-79ba73cb.js → p-981e9549.js} +1 -1
- package/dist/solutions-components/{p-02714171.entry.js → p-98308b13.entry.js} +2 -2
- package/dist/solutions-components/p-99c5701d.entry.js +6 -0
- package/dist/solutions-components/{p-fe68d502.js → p-9cbfd8cd.js} +1 -1
- package/dist/solutions-components/{p-8f8fe5d0.entry.js → p-a09c8edf.entry.js} +1 -1
- package/dist/solutions-components/{p-ac6a3e13.js → p-a5272d7e.js} +1 -1
- package/dist/solutions-components/p-a5c5b24d.js +6 -0
- package/dist/solutions-components/{p-5d9ad152.entry.js → p-a5e93c7e.entry.js} +1 -1
- package/dist/solutions-components/{p-c9f87acb.js → p-a603e673.js} +2 -2
- package/dist/solutions-components/{p-07b31dc9.js → p-a6bb4148.js} +1 -1
- package/dist/solutions-components/{p-11b59592.entry.js → p-a8c9ac0b.entry.js} +2 -2
- package/dist/solutions-components/{p-41f7bc94.entry.js → p-a9bd945b.entry.js} +1 -1
- package/dist/solutions-components/{p-634835fe.js → p-abdd289e.js} +1 -1
- package/dist/solutions-components/{p-43e67b3c.entry.js → p-aca29f67.entry.js} +2 -2
- package/dist/solutions-components/{p-8118146c.entry.js → p-ad96cd8b.entry.js} +1 -1
- package/dist/solutions-components/{p-8772a573.js → p-af1bb992.js} +1 -1
- package/dist/solutions-components/{p-36eb8399.js → p-b1b768f7.js} +4 -4
- package/dist/solutions-components/{p-dd37c504.js → p-b29677ca.js} +1 -1
- package/dist/solutions-components/{p-82b4ab94.js → p-b2c5e62b.js} +1 -1
- package/dist/solutions-components/{p-db436a77.entry.js → p-b326b592.entry.js} +1 -1
- package/dist/solutions-components/p-b37ec1f3.entry.js +6 -0
- package/dist/solutions-components/{p-a4772574.js → p-b7285bd5.js} +1 -1
- package/dist/solutions-components/{p-8b5b4662.js → p-b8959537.js} +1 -1
- package/dist/solutions-components/{p-c21f578f.js → p-baf4cb37.js} +1 -1
- package/dist/solutions-components/{p-799c3f19.js → p-bfebff0e.js} +1 -1
- package/dist/solutions-components/p-c0f97ed2.entry.js +6 -0
- package/dist/solutions-components/{p-4af32c75.js → p-c1cf3ebc.js} +1 -1
- package/dist/solutions-components/{p-cfb83693.js → p-c3190f85.js} +1 -1
- package/dist/solutions-components/{p-0511c98c.js → p-c4ebb5d1.js} +1 -1
- package/dist/solutions-components/p-c56fd16c.entry.js +11 -0
- package/dist/solutions-components/{p-2d1b8cfa.js → p-c6b9a129.js} +1 -1
- package/dist/solutions-components/{p-1cb4c542.entry.js → p-c7e7da9a.entry.js} +1 -1
- package/dist/solutions-components/p-cb1d29d4.entry.js +17 -0
- package/dist/solutions-components/{p-034d43fb.js → p-cdee3846.js} +1 -1
- package/dist/solutions-components/{p-c5cb8804.js → p-cfb3d66a.js} +1 -1
- package/dist/solutions-components/{p-ebbeec9f.entry.js → p-d2d7d6b4.entry.js} +2 -2
- package/dist/solutions-components/{p-dd071507.js → p-d44e2fd7.js} +1 -1
- package/dist/solutions-components/{p-414240b2.js → p-d9a59fcc.js} +1 -1
- package/dist/solutions-components/p-db868283.js +21 -0
- package/dist/solutions-components/{p-fdb1ace8.entry.js → p-dded59a7.entry.js} +2 -2
- package/dist/solutions-components/{p-ede84883.js → p-de281b08.js} +2 -2
- package/dist/solutions-components/{p-a11fca14.js → p-df118036.js} +1 -1
- package/dist/solutions-components/p-e274f3b0.entry.js +23 -0
- package/dist/solutions-components/{p-4613e205.js → p-e6d4bdce.js} +1 -1
- package/dist/solutions-components/{p-3c5d3b4a.js → p-e6dfc80f.js} +1 -1
- package/dist/solutions-components/{p-92ea9e81.js → p-e834d132.js} +1 -1
- package/dist/solutions-components/p-e88a64be.entry.js +6 -0
- package/dist/solutions-components/p-e902ba19.js +36 -0
- package/dist/solutions-components/{p-f9eb2f2d.js → p-ee4e5212.js} +1 -1
- package/dist/solutions-components/{p-efce2e85.js → p-ef05dea5.js} +1 -1
- package/dist/solutions-components/{p-5fd1eb64.js → p-f0d68a3f.js} +2 -2
- package/dist/solutions-components/p-f17941f1.entry.js +6 -0
- package/dist/solutions-components/{p-9e3b8632.entry.js → p-f1e6ce96.entry.js} +1 -1
- package/dist/solutions-components/p-fe295e9d.entry.js +6 -0
- package/dist/solutions-components/{p-50764143.entry.js → p-ff460d05.entry.js} +3 -3
- package/dist/solutions-components/{p-d1ca57f3.entry.js → p-ff7c9bc3.entry.js} +1 -1
- package/dist/solutions-components/{p-0b47b407.js → p-ffa2c430.js} +1 -1
- package/dist/solutions-components/{p-89520d31.entry.js → p-ffbed9b2.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +4 -0
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +8 -0
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +141 -7
- package/dist/types/components/delete-button/delete-button.d.ts +120 -0
- package/dist/types/components/feature-list/feature-list.d.ts +128 -0
- package/dist/types/components/info-card/info-card.d.ts +19 -0
- package/dist/types/components/layer-list/layer-list.d.ts +133 -0
- package/dist/types/components/layer-table/layer-table.d.ts +12 -40
- package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +5 -1
- package/dist/types/components.d.ts +281 -7
- package/dist/types/preact.d.ts +15 -1
- package/dist/types/utils/interfaces.d.ts +2 -0
- package/package.json +2 -2
- package/dist/cjs/calcite-filter_2.cjs.entry.js +0 -237
- package/dist/cjs/calcite-flow-item.cjs.entry.js +0 -197
- package/dist/cjs/calcite-flow.cjs.entry.js +0 -153
- package/dist/cjs/calcite-handle.cjs.entry.js +0 -184
- package/dist/cjs/resources-55ba2752.js +0 -29
- package/dist/esm/calcite-filter_2.entry.js +0 -232
- package/dist/esm/calcite-handle.entry.js +0 -180
- package/dist/esm/resources-221791b0.js +0 -26
- package/dist/solutions-components/p-0200864c.entry.js +0 -11
- package/dist/solutions-components/p-02fad071.entry.js +0 -6
- package/dist/solutions-components/p-04f05bc5.entry.js +0 -6
- package/dist/solutions-components/p-1711c535.entry.js +0 -6
- package/dist/solutions-components/p-1f88a556.entry.js +0 -6
- package/dist/solutions-components/p-24286e8c.entry.js +0 -6
- package/dist/solutions-components/p-3cf20613.entry.js +0 -17
- package/dist/solutions-components/p-43546966.entry.js +0 -6
- package/dist/solutions-components/p-6b943f52.js +0 -21
- package/dist/solutions-components/p-79f95735.entry.js +0 -11
- package/dist/solutions-components/p-7f333e23.js +0 -11
- package/dist/solutions-components/p-897037f0.entry.js +0 -6
- package/dist/solutions-components/p-8c7fc78f.entry.js +0 -11
- package/dist/solutions-components/p-941ab8c0.js +0 -6
- package/dist/solutions-components/p-96974e5f.js +0 -6
- package/dist/solutions-components/p-a32b61ee.entry.js +0 -6
- package/dist/solutions-components/p-ad9fbb2a.entry.js +0 -6
- package/dist/solutions-components/p-bacc9b0d.entry.js +0 -6
- package/dist/solutions-components/p-c252997f.entry.js +0 -17
- package/dist/solutions-components/p-c5db42ad.entry.js +0 -6
- package/dist/solutions-components/p-c634d047.entry.js +0 -27
- package/dist/solutions-components/p-e89c5860.entry.js +0 -6
- package/dist/solutions-components/p-eb9b003a.entry.js +0 -11
- package/dist/solutions-components/p-eff7f407.entry.js +0 -6
@@ -3,9 +3,9 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import {
|
7
|
-
import { c as createObserver } from './observers
|
8
|
-
import { c as componentFocusable, s as setUpLoadableComponent, a as setComponentLoaded } from './loadable
|
6
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
7
|
+
import { c as createObserver } from './observers.js';
|
8
|
+
import { c as componentFocusable, s as setUpLoadableComponent, a as setComponentLoaded } from './loadable.js';
|
9
9
|
|
10
10
|
/*!
|
11
11
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
@@ -20,9 +20,11 @@ const CSS = {
|
|
20
20
|
|
21
21
|
const flowCss = ":host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto;align-items:stretch;overflow:hidden;background-color:transparent}:host .frame{position:relative;margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;padding:0px}:host ::slotted(calcite-flow-item),:host ::slotted(calcite-panel){block-size:100%}:host ::slotted(.calcite-match-height:last-child){display:flex;flex:1 1 auto;overflow:hidden}:host .frame--advancing{animation:calcite-frame-advance var(--calcite-animation-timing)}:host .frame--retreating{animation:calcite-frame-retreat var(--calcite-animation-timing)}@keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5;transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5;transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}:host([hidden]){display:none}[hidden]{display:none}";
|
22
22
|
|
23
|
-
const Flow = class {
|
24
|
-
constructor(
|
25
|
-
|
23
|
+
const Flow = /*@__PURE__*/ proxyCustomElement(class Flow extends HTMLElement {
|
24
|
+
constructor() {
|
25
|
+
super();
|
26
|
+
this.__registerHost();
|
27
|
+
this.__attachShadow();
|
26
28
|
this.itemMutationObserver = createObserver("mutation", () => this.updateFlowProps());
|
27
29
|
this.getFlowDirection = (oldFlowItemCount, newFlowItemCount) => {
|
28
30
|
const allowRetreatingDirection = oldFlowItemCount > 1;
|
@@ -142,8 +144,29 @@ const Flow = class {
|
|
142
144
|
};
|
143
145
|
return (h("div", { class: frameDirectionClasses }, h("slot", null)));
|
144
146
|
}
|
145
|
-
get el() { return
|
146
|
-
}
|
147
|
-
|
147
|
+
get el() { return this; }
|
148
|
+
static get style() { return flowCss; }
|
149
|
+
}, [1, "calcite-flow", {
|
150
|
+
"customItemSelectors": [1, "custom-item-selectors"],
|
151
|
+
"flowDirection": [32],
|
152
|
+
"itemCount": [32],
|
153
|
+
"items": [32],
|
154
|
+
"back": [64],
|
155
|
+
"setFocus": [64]
|
156
|
+
}, [[0, "calciteFlowItemBack", "handleItemBackClick"]]]);
|
157
|
+
function defineCustomElement() {
|
158
|
+
if (typeof customElements === "undefined") {
|
159
|
+
return;
|
160
|
+
}
|
161
|
+
const components = ["calcite-flow"];
|
162
|
+
components.forEach(tagName => { switch (tagName) {
|
163
|
+
case "calcite-flow":
|
164
|
+
if (!customElements.get(tagName)) {
|
165
|
+
customElements.define(tagName, Flow);
|
166
|
+
}
|
167
|
+
break;
|
168
|
+
} });
|
169
|
+
}
|
170
|
+
defineCustomElement();
|
148
171
|
|
149
|
-
export { Flow as
|
172
|
+
export { Flow as F, defineCustomElement as d };
|
@@ -6,110 +6,24 @@
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
7
7
|
import { g as getLocaleComponentStrings } from './locale.js';
|
8
8
|
import { l as loadModules } from './loadModules.js';
|
9
|
-
import {
|
10
|
-
import { d as defineCustomElement$
|
11
|
-
import { d as defineCustomElement$
|
12
|
-
import { d as defineCustomElement$
|
13
|
-
import { d as defineCustomElement$
|
14
|
-
import { d as defineCustomElement$
|
15
|
-
import { d as defineCustomElement$
|
16
|
-
import { d as defineCustomElement$
|
17
|
-
import { d as defineCustomElement$
|
18
|
-
import { d as defineCustomElement$
|
19
|
-
import { d as defineCustomElement$
|
20
|
-
import { d as defineCustomElement$
|
21
|
-
import { d as defineCustomElement$
|
9
|
+
import { P as PopupUtils } from './popupUtils.js';
|
10
|
+
import { d as defineCustomElement$g } from './action.js';
|
11
|
+
import { d as defineCustomElement$f } from './action-menu.js';
|
12
|
+
import { d as defineCustomElement$e } from './alert.js';
|
13
|
+
import { d as defineCustomElement$d } from './button.js';
|
14
|
+
import { d as defineCustomElement$c } from './chip.js';
|
15
|
+
import { d as defineCustomElement$b } from './icon.js';
|
16
|
+
import { d as defineCustomElement$a } from './loader.js';
|
17
|
+
import { d as defineCustomElement$9 } from './modal.js';
|
18
|
+
import { d as defineCustomElement$8 } from './notice.js';
|
19
|
+
import { d as defineCustomElement$7 } from './panel.js';
|
20
|
+
import { d as defineCustomElement$6 } from './popover.js';
|
21
|
+
import { d as defineCustomElement$5 } from './scrim.js';
|
22
|
+
import { d as defineCustomElement$4 } from './shell.js';
|
23
|
+
import { d as defineCustomElement$3 } from './tooltip.js';
|
24
|
+
import { d as defineCustomElement$2 } from './delete-button2.js';
|
22
25
|
import { d as defineCustomElement$1 } from './edit-card2.js';
|
23
26
|
|
24
|
-
/** @license
|
25
|
-
* Copyright 2022 Esri
|
26
|
-
*
|
27
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
28
|
-
* you may not use this file except in compliance with the License.
|
29
|
-
* You may obtain a copy of the License at
|
30
|
-
*
|
31
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
32
|
-
*
|
33
|
-
* Unless required by applicable law or agreed to in writing, software
|
34
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
35
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
36
|
-
* See the License for the specific language governing permissions and
|
37
|
-
* limitations under the License.
|
38
|
-
*/
|
39
|
-
class PopupUtils {
|
40
|
-
/**
|
41
|
-
* Get the popup title that honors arcade expressions
|
42
|
-
*
|
43
|
-
* @returns Promise resolving with the popup title
|
44
|
-
*
|
45
|
-
* @protected
|
46
|
-
*/
|
47
|
-
async getPopupTitle(graphic) {
|
48
|
-
var _a, _b, _c;
|
49
|
-
if (!this.arcade) {
|
50
|
-
await this._initModules();
|
51
|
-
}
|
52
|
-
let attributes = {};
|
53
|
-
for (const [key, value] of Object.entries(graphic.attributes)) {
|
54
|
-
attributes = Object.assign(Object.assign({}, attributes), { [`{${key.toUpperCase()}}`]: value });
|
55
|
-
}
|
56
|
-
const layer = graphic.layer;
|
57
|
-
const popupTitle = this._removeTags((_a = layer === null || layer === void 0 ? void 0 : layer.popupTemplate) === null || _a === void 0 ? void 0 : _a.title);
|
58
|
-
if (popupTitle.includes("{expression/expr") && ((_b = layer === null || layer === void 0 ? void 0 : layer.popupTemplate) === null || _b === void 0 ? void 0 : _b.expressionInfos) != null) {
|
59
|
-
for (let i = 0; i < ((_c = layer.popupTemplate) === null || _c === void 0 ? void 0 : _c.expressionInfos.length); i++) {
|
60
|
-
const info = layer.popupTemplate.expressionInfos[i];
|
61
|
-
const profile = {
|
62
|
-
variables: [
|
63
|
-
{
|
64
|
-
name: "$feature",
|
65
|
-
type: "feature"
|
66
|
-
}
|
67
|
-
]
|
68
|
-
};
|
69
|
-
try {
|
70
|
-
const arcadeExecutor = await this.arcade.createArcadeExecutor(info.expression, profile);
|
71
|
-
const arcadeTitle = arcadeExecutor.execute({ $feature: graphic });
|
72
|
-
if (arcadeTitle != null || arcadeTitle !== "") {
|
73
|
-
attributes[`{expression/${info.name}}`.toUpperCase()] = arcadeTitle;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
catch (_d) {
|
77
|
-
continue;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
81
|
-
return popupTitle === null || popupTitle === void 0 ? void 0 : popupTitle.replace(/{.*?}/g, (placeholder) => {
|
82
|
-
return attributes[placeholder.toUpperCase()] != null ? attributes[placeholder.toUpperCase()] : "";
|
83
|
-
});
|
84
|
-
}
|
85
|
-
/**
|
86
|
-
* Remove any tags from the title
|
87
|
-
*
|
88
|
-
* @returns title string without tags
|
89
|
-
*
|
90
|
-
* @protected
|
91
|
-
*/
|
92
|
-
_removeTags(str) {
|
93
|
-
if (str == null || str === "") {
|
94
|
-
return "";
|
95
|
-
}
|
96
|
-
return str.toString().replace(/(<([^>]+)>)/gi, "");
|
97
|
-
}
|
98
|
-
/**
|
99
|
-
* Load esri javascript api modules
|
100
|
-
*
|
101
|
-
* @returns Promise resolving when function is done
|
102
|
-
*
|
103
|
-
* @protected
|
104
|
-
*/
|
105
|
-
async _initModules() {
|
106
|
-
const [arcade] = await loadModules([
|
107
|
-
"esri/arcade"
|
108
|
-
]);
|
109
|
-
this.arcade = arcade;
|
110
|
-
}
|
111
|
-
}
|
112
|
-
|
113
27
|
const infoCardCss = ":host{display:block;--calcite-label-margin-bottom:0}.padding-1-2{padding:0.5rem}.display-none{display:none !important}.display-flex{display:flex}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.esri-features__footer{display:none !important}.button-container{justify-content:space-between;align-items:center}.top-border{border-top:1px solid var(--calcite-color-border-1)}.min-width-100{min-width:100px}.width-100{width:100%}.esri-features__container{padding:0.5rem !important;background-color:var(--calcite-color-foreground-1) !important;height:100% !important}.overflow-hidden{overflow:hidden}.height-40{height:40px}.padding-top-46{padding-top:46px}.end-border{border-inline-end:1px solid var(--calcite-color-border-1)}.font-bold{font-weight:bold}.visibility-hidden{visibility:hidden;height:0px}.padding-inline-start-1{padding-inline-start:1rem}";
|
114
28
|
|
115
29
|
const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLElement {
|
@@ -123,6 +37,7 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
123
37
|
this.isMobile = undefined;
|
124
38
|
this.mapView = undefined;
|
125
39
|
this.zoomAndScrollToSelected = undefined;
|
40
|
+
this.allowEditing = true;
|
126
41
|
this._alertOpen = false;
|
127
42
|
this._count = "";
|
128
43
|
this._editRecordOpen = false;
|
@@ -139,23 +54,7 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
139
54
|
* Watch for changes to the graphic and update the feature widget
|
140
55
|
*/
|
141
56
|
async graphicsWatchHandler() {
|
142
|
-
|
143
|
-
if (!this._features) {
|
144
|
-
await this._initFeaturesWidget();
|
145
|
-
}
|
146
|
-
if (this.graphics.length > 0) {
|
147
|
-
const featureLayer = (_a = this.graphics[0]) === null || _a === void 0 ? void 0 : _a.layer;
|
148
|
-
this._editEnabled = featureLayer.editingEnabled && featureLayer.capabilities.operations.supportsUpdate;
|
149
|
-
this._mobileTitle = await this._popupUtils.getPopupTitle(this.graphics[0]);
|
150
|
-
this._features.open({
|
151
|
-
features: this.graphics
|
152
|
-
});
|
153
|
-
}
|
154
|
-
else {
|
155
|
-
this._features.clear();
|
156
|
-
this._features.close();
|
157
|
-
}
|
158
|
-
this._count = this._getCount();
|
57
|
+
await this.setGraphics();
|
159
58
|
}
|
160
59
|
/**
|
161
60
|
* Watch for changes to the isMobile prop then init the Features widget
|
@@ -196,9 +95,12 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
196
95
|
* Reset key properties when the layer selection changes
|
197
96
|
*/
|
198
97
|
async layerSelectionChange() {
|
98
|
+
var _a;
|
199
99
|
this._showListView = false;
|
200
|
-
this._features.viewModel
|
201
|
-
|
100
|
+
if ((_a = this._features) === null || _a === void 0 ? void 0 : _a.viewModel) {
|
101
|
+
this._features.viewModel.featureMenuOpen = false;
|
102
|
+
this._features.close();
|
103
|
+
}
|
202
104
|
}
|
203
105
|
/**
|
204
106
|
* Refresh the info-card graphics
|
@@ -221,11 +123,21 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
221
123
|
await this._getTranslations();
|
222
124
|
this._popupUtils = new PopupUtils();
|
223
125
|
}
|
126
|
+
/**
|
127
|
+
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
128
|
+
* @returns Promise when complete
|
129
|
+
*/
|
130
|
+
async componentDidLoad() {
|
131
|
+
var _a;
|
132
|
+
if (((_a = this.graphics) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
133
|
+
await this.setGraphics();
|
134
|
+
}
|
135
|
+
}
|
224
136
|
/**
|
225
137
|
* Renders the component.
|
226
138
|
*/
|
227
139
|
render() {
|
228
|
-
var _a, _b, _c;
|
140
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
229
141
|
const loadingClass = this.isLoading ? "" : "display-none";
|
230
142
|
const featureNodeClass = this.isLoading || this._editRecordOpen ? "visibility-hidden" : "position-absolute";
|
231
143
|
const editClass = !this.isLoading && this._editRecordOpen ? "position-absolute" : "display-none";
|
@@ -233,7 +145,11 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
233
145
|
const nextBackDisabled = ((_b = (_a = this._features) === null || _a === void 0 ? void 0 : _a.features) === null || _b === void 0 ? void 0 : _b.length) < 2;
|
234
146
|
const nextBackClass = this.isMobile ? "display-none" : "";
|
235
147
|
const shellClass = this.isMobile && !this._editRecordOpen ? "padding-top-46" : "";
|
236
|
-
|
148
|
+
const id = (_d = (_c = this._features) === null || _c === void 0 ? void 0 : _c.selectedFeature) === null || _d === void 0 ? void 0 : _d.getObjectId();
|
149
|
+
const ids = parseInt(id === null || id === void 0 ? void 0 : id.toString(), 10) > -1 ? [id] : [];
|
150
|
+
const deleteEnabled = ((_e = this._layer) === null || _e === void 0 ? void 0 : _e.editingEnabled) && ((_h = (_g = (_f = this._layer) === null || _f === void 0 ? void 0 : _f.capabilities) === null || _g === void 0 ? void 0 : _g.operations) === null || _h === void 0 ? void 0 : _h.supportsDelete);
|
151
|
+
return (h(Host, null, this.isMobile && !this._editRecordOpen ? (h("calcite-panel", null, h("calcite-action", { class: "end-border", icon: "chevron-left", iconFlipRtl: true, onClick: () => this._closePopup(), scale: "s", slot: "header-actions-start", text: "" }), h("span", { class: "font-bold", slot: "header-content" }, this._mobileTitle))) : undefined, h("calcite-shell", { class: shellClass }, h("calcite-loader", { class: loadingClass, label: this._translations.fetchingData }), h("div", { class: "esri-widget " + featureNodeClass, id: "features-node" }), h("div", { class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
|
152
|
+
h("div", { class: "display-flex top-border padding-1-2" }, h("calcite-button", { appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, onEditsComplete: () => this._closePopup() })) : undefined, h("calcite-tooltip", { label: "", placement: "bottom", "reference-element": "solutions-edit" }, h("span", null, this._translations.edit)), this.isMobile ? (h("calcite-tooltip", { label: "", placement: "bottom", "reference-element": "solutions-delete" }, h("span", null, this._translations.delete))) : undefined), !nextBackDisabled && h("div", { class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { class: "min-width-100" }, h("calcite-button", { appearance: "outline", disabled: nextBackDisabled, id: "solutions-back", onClick: () => this._back(), width: "full" }, this._translations.back), h("calcite-tooltip", { label: "", placement: "top", "reference-element": "solutions-back" }, h("span", null, this._translations.back))), h("div", null, h("calcite-action", { icon: "list", onClick: () => this._toggleListView(), scale: "s", text: this._count, textEnabled: true })), h("div", { class: "min-width-100" }, h("calcite-button", { appearance: "outline", disabled: nextBackDisabled, id: "solutions-next", onClick: () => this._next(), width: "full" }, this._translations.next), h("calcite-tooltip", { label: "", placement: "top", "reference-element": "solutions-next" }, h("span", null, this._translations.next))))), h("edit-card", { class: editClass, graphicIndex: (_j = this._features) === null || _j === void 0 ? void 0 : _j.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { slot: "title" }, this._translations.editDisabled), h("div", { slot: "message" }, this._translations.enableEditing)))));
|
237
153
|
}
|
238
154
|
//--------------------------------------------------------------------------
|
239
155
|
//
|
@@ -255,6 +171,30 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
255
171
|
this.Features = Features;
|
256
172
|
this.reactiveUtils = reactiveUtils;
|
257
173
|
}
|
174
|
+
/**
|
175
|
+
* Initializes the features widget if not created and updates the feature widget and other required states
|
176
|
+
*
|
177
|
+
* @protected
|
178
|
+
*/
|
179
|
+
async setGraphics() {
|
180
|
+
var _a;
|
181
|
+
if (!this._features) {
|
182
|
+
await this._initFeaturesWidget();
|
183
|
+
}
|
184
|
+
if (this.graphics.length > 0) {
|
185
|
+
this._layer = (_a = this.graphics[0]) === null || _a === void 0 ? void 0 : _a.layer;
|
186
|
+
this._editEnabled = this._layer.editingEnabled && this._layer.capabilities.operations.supportsUpdate;
|
187
|
+
this._mobileTitle = await this._popupUtils.getPopupTitle(this.graphics[0]);
|
188
|
+
this._features.open({
|
189
|
+
features: this.graphics
|
190
|
+
});
|
191
|
+
}
|
192
|
+
else {
|
193
|
+
this._features.clear();
|
194
|
+
this._features.close();
|
195
|
+
}
|
196
|
+
this._count = this._getCount();
|
197
|
+
}
|
258
198
|
/**
|
259
199
|
* Init the Feature widget so we can display the popup content
|
260
200
|
*
|
@@ -381,6 +321,7 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
381
321
|
"isMobile": [4, "is-mobile"],
|
382
322
|
"mapView": [16],
|
383
323
|
"zoomAndScrollToSelected": [4, "zoom-and-scroll-to-selected"],
|
324
|
+
"allowEditing": [4, "allow-editing"],
|
384
325
|
"_alertOpen": [32],
|
385
326
|
"_count": [32],
|
386
327
|
"_editRecordOpen": [32],
|
@@ -397,7 +338,7 @@ function defineCustomElement() {
|
|
397
338
|
if (typeof customElements === "undefined") {
|
398
339
|
return;
|
399
340
|
}
|
400
|
-
const components = ["info-card", "calcite-action", "calcite-action-menu", "calcite-alert", "calcite-button", "calcite-chip", "calcite-icon", "calcite-loader", "calcite-notice", "calcite-panel", "calcite-popover", "calcite-scrim", "calcite-shell", "calcite-tooltip", "edit-card"];
|
341
|
+
const components = ["info-card", "calcite-action", "calcite-action-menu", "calcite-alert", "calcite-button", "calcite-chip", "calcite-icon", "calcite-loader", "calcite-modal", "calcite-notice", "calcite-panel", "calcite-popover", "calcite-scrim", "calcite-shell", "calcite-tooltip", "delete-button", "edit-card"];
|
401
342
|
components.forEach(tagName => { switch (tagName) {
|
402
343
|
case "info-card":
|
403
344
|
if (!customElements.get(tagName)) {
|
@@ -406,65 +347,75 @@ function defineCustomElement() {
|
|
406
347
|
break;
|
407
348
|
case "calcite-action":
|
408
349
|
if (!customElements.get(tagName)) {
|
409
|
-
defineCustomElement$
|
350
|
+
defineCustomElement$g();
|
410
351
|
}
|
411
352
|
break;
|
412
353
|
case "calcite-action-menu":
|
413
354
|
if (!customElements.get(tagName)) {
|
414
|
-
defineCustomElement$
|
355
|
+
defineCustomElement$f();
|
415
356
|
}
|
416
357
|
break;
|
417
358
|
case "calcite-alert":
|
418
359
|
if (!customElements.get(tagName)) {
|
419
|
-
defineCustomElement$
|
360
|
+
defineCustomElement$e();
|
420
361
|
}
|
421
362
|
break;
|
422
363
|
case "calcite-button":
|
423
364
|
if (!customElements.get(tagName)) {
|
424
|
-
defineCustomElement$
|
365
|
+
defineCustomElement$d();
|
425
366
|
}
|
426
367
|
break;
|
427
368
|
case "calcite-chip":
|
428
369
|
if (!customElements.get(tagName)) {
|
429
|
-
defineCustomElement$
|
370
|
+
defineCustomElement$c();
|
430
371
|
}
|
431
372
|
break;
|
432
373
|
case "calcite-icon":
|
433
374
|
if (!customElements.get(tagName)) {
|
434
|
-
defineCustomElement$
|
375
|
+
defineCustomElement$b();
|
435
376
|
}
|
436
377
|
break;
|
437
378
|
case "calcite-loader":
|
438
379
|
if (!customElements.get(tagName)) {
|
439
|
-
defineCustomElement$
|
380
|
+
defineCustomElement$a();
|
381
|
+
}
|
382
|
+
break;
|
383
|
+
case "calcite-modal":
|
384
|
+
if (!customElements.get(tagName)) {
|
385
|
+
defineCustomElement$9();
|
440
386
|
}
|
441
387
|
break;
|
442
388
|
case "calcite-notice":
|
443
389
|
if (!customElements.get(tagName)) {
|
444
|
-
defineCustomElement$
|
390
|
+
defineCustomElement$8();
|
445
391
|
}
|
446
392
|
break;
|
447
393
|
case "calcite-panel":
|
448
394
|
if (!customElements.get(tagName)) {
|
449
|
-
defineCustomElement$
|
395
|
+
defineCustomElement$7();
|
450
396
|
}
|
451
397
|
break;
|
452
398
|
case "calcite-popover":
|
453
399
|
if (!customElements.get(tagName)) {
|
454
|
-
defineCustomElement$
|
400
|
+
defineCustomElement$6();
|
455
401
|
}
|
456
402
|
break;
|
457
403
|
case "calcite-scrim":
|
458
404
|
if (!customElements.get(tagName)) {
|
459
|
-
defineCustomElement$
|
405
|
+
defineCustomElement$5();
|
460
406
|
}
|
461
407
|
break;
|
462
408
|
case "calcite-shell":
|
463
409
|
if (!customElements.get(tagName)) {
|
464
|
-
defineCustomElement$
|
410
|
+
defineCustomElement$4();
|
465
411
|
}
|
466
412
|
break;
|
467
413
|
case "calcite-tooltip":
|
414
|
+
if (!customElements.get(tagName)) {
|
415
|
+
defineCustomElement$3();
|
416
|
+
}
|
417
|
+
break;
|
418
|
+
case "delete-button":
|
468
419
|
if (!customElements.get(tagName)) {
|
469
420
|
defineCustomElement$2();
|
470
421
|
}
|
@@ -410,7 +410,7 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
410
410
|
const options = this.includeMap ? this.renderMapOptions() : null;
|
411
411
|
const print = this.renderPrint();
|
412
412
|
const panelClass = this.mode === 'inline' ? CSS.inlineContainer : CSS.popoverContainer;
|
413
|
-
return (h("div", { class: panelClass }, headerTitle, includeExtraContent, includeMap, options, this.includeMap ? (h("calcite-button", { appearance: "transparent", width: "full", onClick: this.setMapAreaOnClick.bind(this), disabled: this.exportIsLoading }, (_a = this.messages) === null || _a === void 0 ? void 0 : _a.setMapArea)) : null, h("calcite-button", { width: "full", onClick: this.exportOnClick.bind(this),
|
413
|
+
return (h("div", { class: panelClass }, headerTitle, includeExtraContent, includeMap, options, this.includeMap ? (h("calcite-button", { appearance: "transparent", width: "full", onClick: this.setMapAreaOnClick.bind(this), disabled: this.exportIsLoading }, (_a = this.messages) === null || _a === void 0 ? void 0 : _a.setMapArea)) : null, h("calcite-button", { width: "full", onClick: this.exportOnClick.bind(this), disabled: this.exportIsLoading }, (_b = this.messages) === null || _b === void 0 ? void 0 : _b.export), print));
|
414
414
|
}
|
415
415
|
renderTitle() {
|
416
416
|
var _a;
|
@@ -65,7 +65,7 @@ function resetDatePicker(datePicker) {
|
|
65
65
|
}
|
66
66
|
}
|
67
67
|
|
68
|
-
const instantAppsFilterListCss = ":host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:normal}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100
|
68
|
+
const instantAppsFilterListCss = ":host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:normal}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:48px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:normal;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1:12px}.instant-apps-filter-list__zoom-to{display:flex;justify-content:flex-end;margin:8px 0 20px}.instant-apps-filter-list__zoom-to calcite-action{width:-moz-min-content;width:min-content}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor:2;--calcite-internal-animation-timing-slow:calc(300ms * 2)}}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}";
|
69
69
|
|
70
70
|
const CSS = {
|
71
71
|
base: 'instant-apps-filter-list',
|
@@ -268,12 +268,15 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
268
268
|
return this.renderCombobox(layerExpression, expression);
|
269
269
|
}
|
270
270
|
else if (type === 'number' || type == 'range') {
|
271
|
-
if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down') {
|
271
|
+
if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down' || (expression === null || expression === void 0 ? void 0 : expression.displayOption) === 'drop-down') {
|
272
272
|
return this.renderCombobox(layerExpression, expression);
|
273
273
|
}
|
274
274
|
return this.renderNumberSlider(layerExpression, expression);
|
275
275
|
}
|
276
276
|
else if (type === 'date') {
|
277
|
+
if ((expression === null || expression === void 0 ? void 0 : expression.displayOption) === 'drop-down') {
|
278
|
+
return this.renderCombobox(layerExpression, expression);
|
279
|
+
}
|
277
280
|
return this.renderDatePicker(layerExpression, expression);
|
278
281
|
}
|
279
282
|
return;
|
@@ -308,7 +311,7 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
308
311
|
this.resetDatePicker(expression);
|
309
312
|
}
|
310
313
|
else if (type === 'number' || type === 'range') {
|
311
|
-
if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down') {
|
314
|
+
if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down' || (expression === null || expression === void 0 ? void 0 : expression.displayOption) === 'drop-down') {
|
312
315
|
this.resetCombobox(expression);
|
313
316
|
}
|
314
317
|
else {
|
@@ -359,8 +362,9 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
359
362
|
}
|
360
363
|
}
|
361
364
|
resetAllFilters() {
|
362
|
-
var _a, _b, _c;
|
363
|
-
(_c = (_b = (_a = this.view) === null || _a === void 0 ? void 0 : _a.map) === null || _b === void 0 ? void 0 : _b.allLayers) === null || _c === void 0 ? void 0 : _c.
|
365
|
+
var _a, _b, _c, _d, _e;
|
366
|
+
const allLayersAndTables = (_c = (_b = (_a = this.view) === null || _a === void 0 ? void 0 : _a.map) === null || _b === void 0 ? void 0 : _b.allLayers) === null || _c === void 0 ? void 0 : _c.concat((_e = (_d = this.view) === null || _d === void 0 ? void 0 : _d.map) === null || _e === void 0 ? void 0 : _e.allTables);
|
367
|
+
allLayersAndTables === null || allLayersAndTables === void 0 ? void 0 : allLayersAndTables.forEach(layer => {
|
364
368
|
var _a, _b;
|
365
369
|
if (supportedTypes.includes(layer.type)) {
|
366
370
|
const fl = layer;
|
@@ -397,7 +401,7 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
397
401
|
const { field } = expression;
|
398
402
|
if (field != null) {
|
399
403
|
this.setExpressionFormat(layer, expression, field);
|
400
|
-
if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down') {
|
404
|
+
if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down' || (expression === null || expression === void 0 ? void 0 : expression.displayOption) === 'drop-down') {
|
401
405
|
const fields = (await this.getFeatureAttributes(layer, field));
|
402
406
|
fields.sort((a, b) => a - b);
|
403
407
|
expression.fields = fields;
|
@@ -596,7 +600,12 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
596
600
|
update = await this.updateNumberExpression(layerExpression, expression);
|
597
601
|
}
|
598
602
|
else if (type === 'date') {
|
599
|
-
|
603
|
+
if (expression.displayOption === 'drop-down') {
|
604
|
+
update = await this.updateStringExpression(layerExpression, expression);
|
605
|
+
}
|
606
|
+
else {
|
607
|
+
update = await this.updateDateExpression(layerExpression, expression);
|
608
|
+
}
|
600
609
|
}
|
601
610
|
else if (type === 'coded-value') {
|
602
611
|
update = this.updateCodedValueExpression(expression, layerField);
|
@@ -759,7 +768,7 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
759
768
|
}
|
760
769
|
updateFilter(layerExpression, defExpressions, filters) {
|
761
770
|
const { id } = layerExpression;
|
762
|
-
const fl = this.view.map.findLayerById(id);
|
771
|
+
const fl = (this.view.map.findLayerById(id) || this.view.map.findTableById(id));
|
763
772
|
if (fl != null) {
|
764
773
|
if (fl.type === 'point-cloud') {
|
765
774
|
this.updateFilterLayerPCLFilter(fl, filters);
|
@@ -802,8 +811,9 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
802
811
|
this.initDefExpressions = {};
|
803
812
|
this.initPointCloudFilters = {};
|
804
813
|
this.initMapImageExpressions = {};
|
805
|
-
|
806
|
-
|
814
|
+
const layersAndTables = map.allLayers.concat(map.allTables);
|
815
|
+
for (let i = 0; i < layersAndTables.length; i++) {
|
816
|
+
const layer = layersAndTables.getItemAt(i);
|
807
817
|
if (supportedTypes.includes(layer.type)) {
|
808
818
|
const fl = layer;
|
809
819
|
if (fl.type === 'point-cloud') {
|
@@ -999,7 +1009,8 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
999
1009
|
return (layerExpression === null || layerExpression === void 0 ? void 0 : layerExpression.sublayerId) != null ? (_b = (_a = this.initMapImageExpressions) === null || _a === void 0 ? void 0 : _a[layerExpression.id]) === null || _b === void 0 ? void 0 : _b[layerExpression.sublayerId] : (_c = this.initDefExpressions) === null || _c === void 0 ? void 0 : _c[layerExpression.id];
|
1000
1010
|
}
|
1001
1011
|
findFilterLayer(layerExpression) {
|
1002
|
-
const
|
1012
|
+
const allLayersAndTables = this.view.map.allLayers.concat(this.view.map.allTables);
|
1013
|
+
const layer = allLayersAndTables.find(({ id }) => id === layerExpression.id);
|
1003
1014
|
if (layer.type === 'map-image') {
|
1004
1015
|
return layer === null || layer === void 0 ? void 0 : layer.findSublayerById(layerExpression.sublayerId);
|
1005
1016
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
6
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
|
7
7
|
import { g as getMessages, a as generateUIData, s as store, E as EIcons, b as getLocales, l as languageTranslatorState, c as getUIDataKeys } from './utils4.js';
|
8
8
|
import { l as loadModules } from './loadModules2.js';
|
9
9
|
import { c as getComponentClosestLanguage } from './locale3.js';
|
@@ -214,7 +214,7 @@ const InstantAppsLanguageTranslator = /*@__PURE__*/ proxyCustomElement(class Ins
|
|
214
214
|
renderExpandCollapseButton() {
|
215
215
|
const { isCollapse, messages } = this;
|
216
216
|
const text = isCollapse ? messages === null || messages === void 0 ? void 0 : messages.collapseAll : messages === null || messages === void 0 ? void 0 : messages.expandAll;
|
217
|
-
return (h("calcite-button", { onClick: this.handleExpandCollapseAll.bind(this), appearance: "transparent", "icon-start": EIcons.ExpandCollapse }, text));
|
217
|
+
return (h(Fragment, null, h("slot", { name: "primary-custom-action" }), h("slot", { name: "secondary-custom-action" }), h("calcite-button", { onClick: this.handleExpandCollapseAll.bind(this), appearance: "transparent", "icon-start": EIcons.ExpandCollapse }, text)));
|
218
218
|
}
|
219
219
|
renderSearch() {
|
220
220
|
var _a;
|
@@ -294,13 +294,53 @@ const InstantAppsLanguageTranslator = /*@__PURE__*/ proxyCustomElement(class Ins
|
|
294
294
|
const value = node.value;
|
295
295
|
store.set('currentLanguage', value);
|
296
296
|
}
|
297
|
+
/**
|
298
|
+
* Gets translation data for all languages and fields.
|
299
|
+
*/
|
300
|
+
async getTranslationData() {
|
301
|
+
return store.get('portalItemResourceT9n');
|
302
|
+
}
|
303
|
+
/**
|
304
|
+
* Updates translation data for all languages and fields.
|
305
|
+
*/
|
306
|
+
async setTranslationData(data) {
|
307
|
+
return store.set('portalItemResourceT9n', data);
|
308
|
+
}
|
309
|
+
/**
|
310
|
+
* Gets portal item resource containing the translation data.
|
311
|
+
*/
|
312
|
+
async getPortalItemResource() {
|
313
|
+
return store.get('portalItemResource');
|
314
|
+
}
|
315
|
+
/**
|
316
|
+
* Batch write data to associated portal item resource.
|
317
|
+
*/
|
318
|
+
async batchWriteToPortalItemResource(data) {
|
319
|
+
store.set('saving', true);
|
320
|
+
try {
|
321
|
+
const resource = await this.getPortalItemResource();
|
322
|
+
const dataStr = JSON.stringify(data);
|
323
|
+
const blobParts = [dataStr];
|
324
|
+
const options = { type: 'application/json' };
|
325
|
+
const blob = new Blob(blobParts, options);
|
326
|
+
await resource.update(blob);
|
327
|
+
setTimeout(() => store.set('saving', false), 1500);
|
328
|
+
this.translatorDataUpdated.emit();
|
329
|
+
return Promise.resolve();
|
330
|
+
}
|
331
|
+
catch (err) {
|
332
|
+
console.error('Error writing to portal item resource: ', err);
|
333
|
+
store.set('saving', false);
|
334
|
+
return Promise.reject();
|
335
|
+
}
|
336
|
+
}
|
297
337
|
get el() { return this; }
|
298
338
|
static get watchers() { return {
|
299
339
|
"locales": ["handleLocaleChange"],
|
300
340
|
"appSettings": ["handleAppSettings"]
|
301
341
|
}; }
|
302
342
|
static get style() { return instantAppsLanguageTranslatorCss; }
|
303
|
-
}, [
|
343
|
+
}, [6, "instant-apps-language-translator", {
|
304
344
|
"portalItem": [16],
|
305
345
|
"appSettings": [16],
|
306
346
|
"locales": [16],
|
@@ -309,7 +349,11 @@ const InstantAppsLanguageTranslator = /*@__PURE__*/ proxyCustomElement(class Ins
|
|
309
349
|
"translatedLocaleInputOnChangeCallback": [16],
|
310
350
|
"saving": [32],
|
311
351
|
"messages": [32],
|
312
|
-
"isCollapse": [32]
|
352
|
+
"isCollapse": [32],
|
353
|
+
"getTranslationData": [64],
|
354
|
+
"setTranslationData": [64],
|
355
|
+
"getPortalItemResource": [64],
|
356
|
+
"batchWriteToPortalItemResource": [64]
|
313
357
|
}, [[8, "translatorItemDataUpdated", "handleT9nItemUpdate"]], {
|
314
358
|
"locales": ["handleLocaleChange"],
|
315
359
|
"appSettings": ["handleAppSettings"]
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
2
|
+
|
3
|
+
interface LayerList extends Components.LayerList, HTMLElement {}
|
4
|
+
export const LayerList: {
|
5
|
+
prototype: LayerList;
|
6
|
+
new (): LayerList;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* Used to define this component and all nested components recursively.
|
10
|
+
*/
|
11
|
+
export const defineCustomElement: () => void;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import { L as LayerList$1, d as defineCustomElement$1 } from './layer-list2.js';
|
7
|
+
|
8
|
+
const LayerList = LayerList$1;
|
9
|
+
const defineCustomElement = defineCustomElement$1;
|
10
|
+
|
11
|
+
export { LayerList, defineCustomElement };
|