@esri/solutions-components 0.7.39 → 0.7.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/cjs/calcite-alert_4.cjs.entry.js +1 -1
  2. package/dist/cjs/calcite-combobox_5.cjs.entry.js +1 -1
  3. package/dist/cjs/calcite-flow_5.cjs.entry.js +4 -2
  4. package/dist/cjs/calcite-input-date-picker_3.cjs.entry.js +70 -31
  5. package/dist/cjs/card-manager_3.cjs.entry.js +29 -13
  6. package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
  7. package/dist/cjs/crowdsource-reporter.cjs.entry.js +15 -4
  8. package/dist/cjs/{downloadUtils-c22a71da.js → downloadUtils-b10e3b8c.js} +2 -2
  9. package/dist/cjs/{index.es-8d317f5e.js → index.es-b9d6eff6.js} +2 -2
  10. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +5 -4
  11. package/dist/cjs/instant-apps-export.cjs.entry.js +20 -21
  12. package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
  13. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +3 -3
  14. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +1 -1
  15. package/dist/cjs/instant-apps-splash.cjs.entry.js +2 -6
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
  18. package/dist/cjs/{mapViewUtils-cd29b129.js → mapViewUtils-290dbc9e.js} +4 -0
  19. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  20. package/dist/cjs/solutions-components.cjs.js +1 -1
  21. package/dist/collection/components/basemap-gallery/basemap-gallery.css +19 -19
  22. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +48 -3
  23. package/dist/collection/components/layer-list/layer-list.js +3 -1
  24. package/dist/collection/components/layer-table/layer-table.js +28 -11
  25. package/dist/collection/components/map-fullscreen/map-fullscreen.css +19 -19
  26. package/dist/collection/components/map-legend/map-legend.css +3 -3
  27. package/dist/collection/demos/crowdsource-reporter.html +5 -2
  28. package/dist/collection/utils/interfaces.ts +1 -0
  29. package/dist/collection/utils/queryUtils.js +4 -0
  30. package/dist/collection/utils/queryUtils.ts +5 -0
  31. package/dist/components/crowdsource-reporter.js +16 -3
  32. package/dist/components/instant-apps-export.js +20 -21
  33. package/dist/components/instant-apps-filter-list2.js +70 -31
  34. package/dist/components/instant-apps-header2.js +1 -1
  35. package/dist/components/instant-apps-language-switcher.js +3 -3
  36. package/dist/components/instant-apps-language-translator-item2.js +5 -4
  37. package/dist/components/instant-apps-language-translator2.js +1 -1
  38. package/dist/components/instant-apps-splash.js +3 -7
  39. package/dist/components/layer-list2.js +3 -1
  40. package/dist/components/layer-table2.js +28 -11
  41. package/dist/components/queryUtils.js +4 -0
  42. package/dist/esm/calcite-alert_4.entry.js +1 -1
  43. package/dist/esm/calcite-combobox_5.entry.js +1 -1
  44. package/dist/esm/calcite-flow_5.entry.js +4 -2
  45. package/dist/esm/calcite-input-date-picker_3.entry.js +70 -31
  46. package/dist/esm/card-manager_3.entry.js +29 -13
  47. package/dist/esm/crowdsource-manager.entry.js +1 -1
  48. package/dist/esm/crowdsource-reporter.entry.js +15 -4
  49. package/dist/esm/{downloadUtils-985dcd1c.js → downloadUtils-20d22198.js} +2 -2
  50. package/dist/esm/{index.es-03d8386e.js → index.es-8b85f68d.js} +2 -2
  51. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +5 -4
  52. package/dist/esm/instant-apps-export.entry.js +20 -21
  53. package/dist/esm/instant-apps-header.entry.js +1 -1
  54. package/dist/esm/instant-apps-language-switcher.entry.js +3 -3
  55. package/dist/esm/instant-apps-language-translator.entry.js +1 -1
  56. package/dist/esm/instant-apps-splash.entry.js +3 -7
  57. package/dist/esm/loader.js +1 -1
  58. package/dist/esm/map-select-tools_3.entry.js +2 -2
  59. package/dist/esm/{mapViewUtils-257bc9b3.js → mapViewUtils-a177d4f9.js} +4 -0
  60. package/dist/esm/public-notification.entry.js +2 -2
  61. package/dist/esm/solutions-components.js +1 -1
  62. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-filter-list/instant-apps-filter-list.css +8 -1
  63. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-header/instant-apps-header.css +3 -0
  64. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-splash/instant-apps-splash.css +3 -0
  65. package/dist/solutions-components/demos/crowdsource-reporter.html +5 -2
  66. package/dist/solutions-components/{p-8571c89f.entry.js → p-044cd52c.entry.js} +1 -1
  67. package/dist/solutions-components/{p-df048b47.js → p-17e328bb.js} +1 -1
  68. package/dist/solutions-components/{p-12492469.entry.js → p-2283ae14.entry.js} +1 -1
  69. package/dist/solutions-components/p-2f017ad2.entry.js +6 -0
  70. package/dist/solutions-components/{p-20b206f3.entry.js → p-32adb2cc.entry.js} +1 -1
  71. package/dist/solutions-components/p-3eedaead.js +36 -0
  72. package/dist/solutions-components/{p-2f840f08.entry.js → p-42233edc.entry.js} +1 -1
  73. package/dist/solutions-components/p-4742efa8.entry.js +6 -0
  74. package/dist/solutions-components/p-57087d57.entry.js +17 -0
  75. package/dist/solutions-components/{p-34eaca46.entry.js → p-69a1df0f.entry.js} +1 -1
  76. package/dist/solutions-components/{p-23e58d7c.entry.js → p-6c86a392.entry.js} +3 -3
  77. package/dist/solutions-components/{p-6419f8d7.entry.js → p-6fe5e1d5.entry.js} +1 -1
  78. package/dist/solutions-components/p-7480ac64.entry.js +6 -0
  79. package/dist/solutions-components/p-aecf92f4.entry.js +6 -0
  80. package/dist/solutions-components/p-c6af6407.entry.js +6 -0
  81. package/dist/solutions-components/p-cacd0307.entry.js +6 -0
  82. package/dist/solutions-components/p-e2b0b3fa.entry.js +6 -0
  83. package/dist/solutions-components/{p-00ba5a2a.js → p-f6536eae.js} +2 -2
  84. package/dist/solutions-components/solutions-components.esm.js +1 -1
  85. package/dist/solutions-components/utils/interfaces.ts +1 -0
  86. package/dist/solutions-components/utils/queryUtils.ts +5 -0
  87. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +9 -0
  88. package/dist/types/components/layer-list/layer-list.d.ts +1 -0
  89. package/dist/types/components/layer-table/layer-table.d.ts +9 -1
  90. package/dist/types/components.d.ts +16 -0
  91. package/dist/types/utils/interfaces.d.ts +1 -0
  92. package/dist/types/utils/queryUtils.d.ts +1 -0
  93. package/package.json +2 -2
  94. package/dist/solutions-components/p-09b48b1b.entry.js +0 -6
  95. package/dist/solutions-components/p-32fed23c.entry.js +0 -17
  96. package/dist/solutions-components/p-6a61c742.entry.js +0 -6
  97. package/dist/solutions-components/p-9161dca9.entry.js +0 -6
  98. package/dist/solutions-components/p-93369c9f.entry.js +0 -6
  99. package/dist/solutions-components/p-96f5be25.js +0 -36
  100. package/dist/solutions-components/p-97425481.entry.js +0 -6
  101. package/dist/solutions-components/p-ae4c8b8c.entry.js +0 -6
  102. package/dist/solutions-components/p-eb0f4ede.entry.js +0 -6
@@ -16,7 +16,7 @@ const openCloseComponent = require('./openCloseComponent-19a769d0.js');
16
16
  const t9n = require('./t9n-993a84de.js');
17
17
  const resources = require('./resources-dd8ff1b4.js');
18
18
  const locale$1 = require('./locale-8c42ba7a.js');
19
- const mapViewUtils = require('./mapViewUtils-cd29b129.js');
19
+ const mapViewUtils = require('./mapViewUtils-290dbc9e.js');
20
20
  const popupUtils = require('./popupUtils-824d2f7c.js');
21
21
  require('./guid-ae73cd27.js');
22
22
  require('./resources-9447c777.js');
@@ -26,7 +26,7 @@ const Validation = require('./Validation-b02c6710.js');
26
26
  const debounce = require('./debounce-30afab47.js');
27
27
  const key = require('./key-c5504030.js');
28
28
  const locale$1 = require('./locale-8c42ba7a.js');
29
- const mapViewUtils = require('./mapViewUtils-cd29b129.js');
29
+ const mapViewUtils = require('./mapViewUtils-290dbc9e.js');
30
30
  const publicNotificationStore = require('./publicNotificationStore-ef379d11.js');
31
31
  require('./resources-9447c777.js');
32
32
  require('./browser-d08a5f99.js');
@@ -16,7 +16,7 @@ const locale = require('./locale-d237c9d5.js');
16
16
  const t9n = require('./t9n-993a84de.js');
17
17
  const resources = require('./resources-3e593312.js');
18
18
  const locale$1 = require('./locale-8c42ba7a.js');
19
- const mapViewUtils = require('./mapViewUtils-cd29b129.js');
19
+ const mapViewUtils = require('./mapViewUtils-290dbc9e.js');
20
20
  const popupUtils = require('./popupUtils-824d2f7c.js');
21
21
  require('./guid-ae73cd27.js');
22
22
  require('./resources-9447c777.js');
@@ -771,6 +771,8 @@ const LayerList = class {
771
771
  index.registerInstance(this, hostRef);
772
772
  this.layerSelect = index.createEvent(this, "layerSelect", 7);
773
773
  this.layersListLoaded = index.createEvent(this, "layersListLoaded", 7);
774
+ //HARDCODED IN EN
775
+ this._noLayerToDisplayErrorMsg = "Web map does not contain any editable layers.";
774
776
  this.mapView = undefined;
775
777
  this.layers = undefined;
776
778
  this.noLayerErrorMsg = undefined;
@@ -823,7 +825,7 @@ const LayerList = class {
823
825
  */
824
826
  render() {
825
827
  return (index.h(index.Fragment, null, this._isLoading && index.h("calcite-loader", { label: "", scale: "m" }), !this._isLoading && this.mapView && this._noLayersToDisplay &&
826
- index.h("calcite-notice", { class: "error-msg", icon: "layers-reference", kind: "danger", open: true }, index.h("div", { slot: "title" }, this._translations.error), index.h("div", { slot: "message" }, this.noLayerErrorMsg ? this.noLayerErrorMsg : this._translations.noLayerToDisplayErrorMsg)), !this._isLoading && this.mapView &&
828
+ index.h("calcite-notice", { class: "error-msg", icon: "layers-reference", kind: "danger", open: true }, index.h("div", { slot: "title" }, this._translations.error), index.h("div", { slot: "message" }, this.noLayerErrorMsg ? this.noLayerErrorMsg : this._noLayerToDisplayErrorMsg)), !this._isLoading && this.mapView &&
827
829
  index.h("calcite-list", { "selection-appearance": "border", "selection-mode": this.showNextIcon ? "none" : "single-persist" }, this.renderLayerList())));
828
830
  }
829
831
  //--------------------------------------------------------------------------
@@ -778,7 +778,7 @@ function resetDatePicker(datePicker) {
778
778
  }
779
779
  }
780
780
 
781
- 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}";
781
+ 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%;--calcite-font-size--1:16px}.instant-apps-filter-list__item-container--user-input calcite-combobox-item{--calcite-font-size--1:12px}.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:64px;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}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1:16px}@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}";
782
782
 
783
783
  const CSS$1 = {
784
784
  base: 'instant-apps-filter-list',
@@ -865,6 +865,7 @@ const InstantAppsFilterList = class {
865
865
  this.geometryJsonUtils = geometryJsonUtils;
866
866
  this.reactiveUtils = reactiveUtils;
867
867
  this.locale = intl.getLocale();
868
+ this.intl = intl;
868
869
  return Promise.resolve();
869
870
  }
870
871
  render() {
@@ -896,24 +897,13 @@ const InstantAppsFilterList = class {
896
897
  }
897
898
  renderCombobox(layerExpression, expression) {
898
899
  var _a;
899
- return (index.h("label", { key: "combo-select", class: CSS$1.filterUIItemContainer }, index.h("span", null, expression.name), index.h("calcite-combobox", { id: expression.id.toString(), onCalciteComboboxChange: this.handleComboSelect.bind(this, expression, layerExpression), label: expression.name, placeholder: expression.placeholder, overlayPositioning: "fixed", selectionMode: "multiple", scale: "s", "max-items": "6" }, (_a = expression.fields) === null || _a === void 0 ? void 0 : _a.map((value, index) => this.renderComboboxItem(expression, value, index)))));
900
+ return (index.h("label", { key: "combo-select", class: CSS$1.filterUIItemContainer }, index.h("span", null, expression.name), index.h("calcite-combobox", { id: expression.id.toString(), onCalciteComboboxChange: this.handleComboSelect.bind(this, expression, layerExpression), label: expression.name, placeholder: expression.placeholder, selectionMode: "multiple", "max-items": "6" }, (_a = expression.fields) === null || _a === void 0 ? void 0 : _a.map((value, index) => this.renderComboboxItem(expression, value, index)))));
900
901
  }
901
902
  renderComboboxItem(expression, value, index$1) {
902
- var _a, _b;
903
- let label = value;
904
- if (expression.type === 'coded-value') {
905
- label = (_a = expression.codedValues) === null || _a === void 0 ? void 0 : _a[value];
906
- }
907
- else if (expression.type === 'number' && typeof value === 'number' && expression.format != null) {
908
- if (expression.format.places != null) {
909
- label = this.roundNumber(value, expression.format.places);
910
- }
911
- if (expression.format.digitSeparator) {
912
- label = this.numberWithCommas(label);
913
- }
914
- }
903
+ var _a;
904
+ const label = this.createLabel(expression, value);
915
905
  const selectedFields = expression === null || expression === void 0 ? void 0 : expression.selectedFields;
916
- const selected = (_b = selectedFields === null || selectedFields === void 0 ? void 0 : selectedFields.includes(value)) !== null && _b !== void 0 ? _b : false;
906
+ const selected = (_a = selectedFields === null || selectedFields === void 0 ? void 0 : selectedFields.includes(value)) !== null && _a !== void 0 ? _a : false;
917
907
  return index.h("calcite-combobox-item", { key: `${label}-${index$1}`, value: value, textLabel: `${label}`, selected: selected });
918
908
  }
919
909
  initFilterConfig() {
@@ -945,11 +935,10 @@ const InstantAppsFilterList = class {
945
935
  }
946
936
  renderDatePicker(layerExpression, expression) {
947
937
  var _a, _b, _c, _d;
948
- const min = convertToDate(expression.min);
949
- const max = convertToDate(expression.max);
938
+ const { min, max } = expression;
950
939
  const value = [(_a = expression === null || expression === void 0 ? void 0 : expression.range) === null || _a === void 0 ? void 0 : _a.min, (_b = expression === null || expression === void 0 ? void 0 : expression.range) === null || _b === void 0 ? void 0 : _b.max];
951
940
  const check = min != null && max != null;
952
- return check ? (index.h("label", { class: CSS$1.filterUIItemContainer }, index.h("span", null, expression === null || expression === void 0 ? void 0 : expression.name), index.h("div", { class: CSS$1.dateInputContainer }, index.h("calcite-input-date-picker", { id: expression === null || expression === void 0 ? void 0 : expression.id.toString(), onCalciteInputDatePickerChange: this.handleDatePickerRangeChange.bind(this, expression, layerExpression), min: min, max: max, scale: "s", lang: (_c = this.locale) !== null && _c !== void 0 ? _c : 'en', "overlay-positioning": "fixed", layout: "vertical", value: value, range: true }), index.h("calcite-action", { onClick: this.handleResetDatePicker.bind(this, expression, layerExpression), icon: "reset", text: (_d = this.messages) === null || _d === void 0 ? void 0 : _d.resetDatePicker, scale: "s" })))) : null;
941
+ return check ? (index.h("label", { class: CSS$1.filterUIItemContainer }, index.h("span", null, expression === null || expression === void 0 ? void 0 : expression.name), index.h("div", { class: CSS$1.dateInputContainer }, index.h("calcite-input-date-picker", { id: expression === null || expression === void 0 ? void 0 : expression.id.toString(), onCalciteInputDatePickerChange: this.handleDatePickerRangeChange.bind(this, expression, layerExpression), min: min, max: max, "overlay-positioning": "fixed", lang: (_c = this.locale) !== null && _c !== void 0 ? _c : 'en', layout: "vertical", value: value, range: true }), index.h("calcite-action", { onClick: this.handleResetDatePicker.bind(this, expression, layerExpression), icon: "reset", text: (_d = this.messages) === null || _d === void 0 ? void 0 : _d.resetDatePicker, scale: "s" })))) : null;
953
942
  }
954
943
  renderFooter() {
955
944
  var _a;
@@ -1019,7 +1008,12 @@ const InstantAppsFilterList = class {
1019
1008
  this.resetCombobox(expression);
1020
1009
  }
1021
1010
  else if (type === 'date') {
1022
- this.resetDatePicker(expression);
1011
+ if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down' || (expression === null || expression === void 0 ? void 0 : expression.displayOption) === 'drop-down') {
1012
+ this.resetCombobox(expression);
1013
+ }
1014
+ else {
1015
+ this.resetDatePicker(expression);
1016
+ }
1023
1017
  }
1024
1018
  else if (type === 'number' || type === 'range') {
1025
1019
  if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down' || (expression === null || expression === void 0 ? void 0 : expression.displayOption) === 'drop-down') {
@@ -1095,9 +1089,15 @@ const InstantAppsFilterList = class {
1095
1089
  });
1096
1090
  }
1097
1091
  async updateStringExpression(layerExpression, expression) {
1098
- const { field } = expression;
1092
+ const { field, type } = expression;
1099
1093
  const layer = this.findFilterLayer(layerExpression);
1100
1094
  expression.fields = await this.getFeatureAttributes(layer, field);
1095
+ if (type === 'date') {
1096
+ const layerField = layer.fields.find(({ name }) => name === field);
1097
+ if ((layerField === null || layerField === void 0 ? void 0 : layerField.type) === 'date-only') {
1098
+ expression.dateOnly = true;
1099
+ }
1100
+ }
1101
1101
  if (expression === null || expression === void 0 ? void 0 : expression.selectedFields) {
1102
1102
  const selectedFields = expression.selectedFields.map((field) => (typeof field === 'number' ? field : `'${handleSingleQuote(field)}'`));
1103
1103
  expression.definitionExpression = `${field} IN (${selectedFields.join(',')})`;
@@ -1358,12 +1358,18 @@ const InstantAppsFilterList = class {
1358
1358
  handleComboSelect(expression, layerExpression, event) {
1359
1359
  const combobox = event.target;
1360
1360
  const items = combobox.selectedItems;
1361
- const { field } = expression;
1361
+ const { field, type } = expression;
1362
1362
  if (items && items.length) {
1363
1363
  const values = items.map(({ value }) => (typeof value === 'number' ? value : `'${handleSingleQuote(value)}'`));
1364
- expression.selectedFields = items.map(({ value }) => value);
1365
- const definitionExpression = `${field} IN (${values.join(',')})`;
1366
- expression.definitionExpression = definitionExpression;
1364
+ if (type === 'date') {
1365
+ expression.selectedFields = items.map(({ value }) => value);
1366
+ expression.definitionExpression = values.map(value => this.buildDateExpression(value, field)).join(' OR ');
1367
+ }
1368
+ else {
1369
+ expression.selectedFields = items.map(({ value }) => value);
1370
+ const definitionExpression = `${field} IN (${values.join(',')})`;
1371
+ expression.definitionExpression = definitionExpression;
1372
+ }
1367
1373
  expression.active = true;
1368
1374
  }
1369
1375
  else {
@@ -1420,20 +1426,20 @@ const InstantAppsFilterList = class {
1420
1426
  }
1421
1427
  createURLParamExpression(layerExpression, expression) {
1422
1428
  const { id, range, selectedFields, type } = expression;
1423
- if (type === 'number' || type === 'range' || type === 'date') {
1429
+ if (type === 'string' || type === 'coded-value' || (expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down' || (expression === null || expression === void 0 ? void 0 : expression.displayOption) === 'drop-down') {
1424
1430
  return {
1425
- type: 'range',
1431
+ type: 'select',
1426
1432
  layerId: layerExpression.id,
1427
1433
  expressionId: id.toString(),
1428
- range,
1434
+ selectedFields,
1429
1435
  };
1430
1436
  }
1431
- else if (type === 'string' || type === 'coded-value') {
1437
+ else if (type === 'number' || type === 'range' || type === 'date') {
1432
1438
  return {
1433
- type: 'select',
1439
+ type: 'range',
1434
1440
  layerId: layerExpression.id,
1435
1441
  expressionId: id.toString(),
1436
- selectedFields,
1442
+ range,
1437
1443
  };
1438
1444
  }
1439
1445
  else {
@@ -1729,6 +1735,39 @@ const InstantAppsFilterList = class {
1729
1735
  return layer;
1730
1736
  }
1731
1737
  }
1738
+ createLabel(expression, value) {
1739
+ var _a;
1740
+ let label = value;
1741
+ if (expression.type === 'coded-value') {
1742
+ label = (_a = expression.codedValues) === null || _a === void 0 ? void 0 : _a[value];
1743
+ }
1744
+ else if (expression.type === 'number' && typeof value === 'number' && expression.format != null) {
1745
+ if (expression.format.places != null) {
1746
+ label = this.roundNumber(value, expression.format.places);
1747
+ }
1748
+ if (expression.format.digitSeparator) {
1749
+ label = this.numberWithCommas(label);
1750
+ }
1751
+ }
1752
+ else if (expression.type === 'date' && !expression.dateOnly) {
1753
+ const format = expression.dateOnly ? this.intl.convertDateFormatToIntlOptions('short-date-long-time') : undefined;
1754
+ label = this.intl.formatDate(value, format);
1755
+ }
1756
+ return label;
1757
+ }
1758
+ buildDateExpression(date, field) {
1759
+ if (date) {
1760
+ const tmpDate = new Date(date);
1761
+ const tmpCompareDate = new Date(date);
1762
+ const tmpCompareDate1 = new Date(tmpCompareDate.setDate(tmpDate.getDate() + 1));
1763
+ const formattedDate = `${tmpDate.getFullYear()}-${tmpDate.getMonth() + 1}-${tmpDate.getDate()}`;
1764
+ const time = `${tmpDate.getHours()}:${tmpDate.getMinutes()}:${tmpDate.getSeconds()}`;
1765
+ const compareTime = `${tmpCompareDate1.getHours()}:${tmpCompareDate1.getMinutes()}:${tmpCompareDate1.getSeconds()}`;
1766
+ const compareFormattedDate = `${tmpCompareDate1.getFullYear()}-${tmpCompareDate1.getMonth() + 1}-${tmpCompareDate1.getDate()}`;
1767
+ return `${field} BETWEEN '${formattedDate} ${time}' AND '${compareFormattedDate} ${compareTime}'`;
1768
+ }
1769
+ return;
1770
+ }
1732
1771
  get el() { return index.getElement(this); }
1733
1772
  static get watchers() { return {
1734
1773
  "view": ["watchViewHandler"],
@@ -9,8 +9,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-105cf2b9.js');
11
11
  const locale = require('./locale-8c42ba7a.js');
12
- const mapViewUtils = require('./mapViewUtils-cd29b129.js');
13
- const downloadUtils = require('./downloadUtils-c22a71da.js');
12
+ const mapViewUtils = require('./mapViewUtils-290dbc9e.js');
13
+ const downloadUtils = require('./downloadUtils-b10e3b8c.js');
14
14
  require('./esri-loader-a91c0ec1.js');
15
15
  require('./_commonjsHelpers-384729db.js');
16
16
  require('./interfaces-7cd0a48a.js');
@@ -176,6 +176,7 @@ const LayerTable = class {
176
176
  this.showNewestFirst = undefined;
177
177
  this.zoomAndScrollToSelected = undefined;
178
178
  this._controlsThatFit = undefined;
179
+ this._csvExporting = false;
179
180
  this._fetchingData = false;
180
181
  this._filterActive = false;
181
182
  this._filterOpen = false;
@@ -452,8 +453,8 @@ const LayerTable = class {
452
453
  if (cur && !cur.isOverflow) {
453
454
  prev.push(cur.isDanger ?
454
455
  this._getDangerAction(cur.icon, cur.label, cur.func, cur.disabled) :
455
- cur.isSublist ? (index.h("calcite-dropdown", { closeOnSelectDisabled: true, id: this._getId(cur.icon), onCalciteDropdownBeforeClose: () => this._forceShowHide(), ref: (el) => this._showHideDropdown = el }, this._getAction(cur.active, this._showHideOpen ? "chevron-down" : cur.icon, cur.indicator, cur.label, cur.func, cur.disabled, "trigger"), this._showHideOpen ? this._getFieldlist() : undefined)) :
456
- this._getAction(cur.active, cur.icon, cur.indicator, cur.label, cur.func, cur.disabled));
456
+ cur.isSublist ? (index.h("calcite-dropdown", { closeOnSelectDisabled: true, id: this._getId(cur.icon), onCalciteDropdownBeforeClose: () => this._forceShowHide(), ref: (el) => this._showHideDropdown = el }, this._getAction(cur.active, this._showHideOpen ? "chevron-down" : cur.icon, cur.indicator, cur.label, cur.func, cur.disabled, cur.loading, "trigger"), this._showHideOpen ? this._getFieldlist() : undefined)) :
457
+ this._getAction(cur.active, cur.icon, cur.indicator, cur.label, cur.func, cur.disabled, cur.loading));
457
458
  }
458
459
  return prev;
459
460
  }, []);
@@ -605,6 +606,7 @@ const LayerTable = class {
605
606
  indicator: false,
606
607
  func: () => void this._exportToCSV(),
607
608
  label: this._translations.exportCSV,
609
+ loading: this._csvExporting,
608
610
  disabled: featuresEmpty,
609
611
  isOverflow: false
610
612
  } : undefined, {
@@ -789,7 +791,7 @@ const LayerTable = class {
789
791
  _getDropdown(id) {
790
792
  const dropdownItems = this._getDropdownItems();
791
793
  return dropdownItems.length > 0 ? (index.h("calcite-dropdown", { closeOnSelectDisabled: true, disabled: this._layer === undefined, id: "solutions-more", onCalciteDropdownBeforeClose: () => this._forceShowHide(), ref: (el) => this._moreDropdown = el }, index.h("calcite-action", { appearance: "solid", id: id, label: "", onClick: () => this._closeShowHide(), slot: "trigger", text: "" }, index.h("calcite-button", { appearance: "transparent", iconEnd: "chevron-down", kind: "neutral" }, this._translations.more)), index.h("calcite-dropdown-group", { "selection-mode": "none" }, dropdownItems.map(item => {
792
- return (index.h("calcite-dropdown-group", { class: item.disabled ? "disabled" : "", selectionMode: item.disabled ? "none" : "single" }, index.h("calcite-dropdown-item", { iconStart: item.isSublist && this._showHideOpen ? "chevron-down" : item.icon, id: "solutions-subset-list", onClick: item.func }, item.label)));
794
+ return (index.h("calcite-dropdown-group", { class: item.disabled ? "disabled" : "", selectionMode: item.disabled ? "none" : "single" }, index.h("calcite-dropdown-item", { disabled: item.loading, iconStart: item.isSublist && this._showHideOpen ? "chevron-down" : item.loading ? "" : item.icon, id: "solutions-subset-list", onClick: item.func }, item.loading ? (index.h("div", { class: "display-flex" }, index.h("calcite-loader", { inline: true, label: item.label, scale: "m" }), item.label)) : item.label)));
793
795
  })), this._showHideOpen ? this._getFieldlist() : undefined)) : undefined;
794
796
  }
795
797
  /**
@@ -811,9 +813,9 @@ const LayerTable = class {
811
813
  *
812
814
  * @returns VNode The node representing the DOM element that will contain the action
813
815
  */
814
- _getAction(active, icon, indicator, label, func, disabled, slot) {
816
+ _getAction(active, icon, indicator, label, func, disabled, loading, slot) {
815
817
  const _disabled = this._layer === undefined ? true : disabled;
816
- return (index.h("div", { class: "display-flex", id: this._getId(icon), slot: slot }, index.h("calcite-action", { active: active, appearance: "solid", disabled: _disabled, icon: icon, id: icon, indicator: indicator, label: label, onClick: func, text: label, textEnabled: true }), this._getToolTip("bottom", icon, label)));
818
+ return (index.h("div", { class: "display-flex", id: this._getId(icon), slot: slot }, index.h("calcite-action", { active: active, appearance: "solid", disabled: _disabled, icon: icon, id: icon, indicator: indicator, label: label, loading: loading, onClick: func, text: label, textEnabled: true }), this._getToolTip("bottom", icon, label)));
817
819
  }
818
820
  /**
819
821
  * Get an action and tooltip for share
@@ -1267,13 +1269,9 @@ const LayerTable = class {
1267
1269
  const hitTestResult = await this.mapView.hitTest(evt.screenPoint, opts);
1268
1270
  if (hitTestResult.results.length > 0) {
1269
1271
  hitTestResult.results.forEach((result) => {
1270
- this._clearSelection();
1271
1272
  const id = result.graphic.getObjectId();
1272
1273
  const index = this._table.highlightIds.indexOf(id);
1273
- if (index > -1) {
1274
- this._table.highlightIds.removeAt(index);
1275
- }
1276
- else {
1274
+ if (index < 0) {
1277
1275
  this._table.highlightIds.add(id);
1278
1276
  }
1279
1277
  });
@@ -1281,6 +1279,9 @@ const LayerTable = class {
1281
1279
  this._table.filterBySelection();
1282
1280
  }
1283
1281
  }
1282
+ else {
1283
+ this._clearSelection();
1284
+ }
1284
1285
  }
1285
1286
  /**
1286
1287
  * Select or deselect all rows
@@ -1369,11 +1370,26 @@ const LayerTable = class {
1369
1370
  }
1370
1371
  return prev;
1371
1372
  }, []);
1372
- void downloadUtils.downloadCSV(null, //???
1373
+ this._updateToolInfoLoading("export", true);
1374
+ this._csvExporting = true;
1375
+ await downloadUtils.downloadCSV(null, //???
1373
1376
  exportInfos, false, // formatUsingLayerPopup
1374
1377
  false, // removeDuplicates
1375
1378
  true, // addColumnTitle
1376
1379
  fields, true);
1380
+ this._updateToolInfoLoading("export", false);
1381
+ this._csvExporting = false;
1382
+ }
1383
+ /**
1384
+ * Set the loading prop in the stored toolInfos
1385
+ */
1386
+ _updateToolInfoLoading(name, isLoading) {
1387
+ this._toolInfos.some(tool => {
1388
+ if ((tool === null || tool === void 0 ? void 0 : tool.icon) === name) {
1389
+ tool.loading = isLoading;
1390
+ return true;
1391
+ }
1392
+ });
1377
1393
  }
1378
1394
  /**
1379
1395
  * Refreshes the table and maintains the curent scroll position
@@ -10,7 +10,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
10
10
  const index = require('./index-105cf2b9.js');
11
11
  const locale = require('./locale-8c42ba7a.js');
12
12
  const interfaces = require('./interfaces-7cd0a48a.js');
13
- const mapViewUtils = require('./mapViewUtils-cd29b129.js');
13
+ const mapViewUtils = require('./mapViewUtils-290dbc9e.js');
14
14
  require('./esri-loader-a91c0ec1.js');
15
15
  require('./_commonjsHelpers-384729db.js');
16
16
 
@@ -9,7 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-105cf2b9.js');
11
11
  const locale = require('./locale-8c42ba7a.js');
12
- const mapViewUtils = require('./mapViewUtils-cd29b129.js');
12
+ const mapViewUtils = require('./mapViewUtils-290dbc9e.js');
13
13
  require('./esri-loader-a91c0ec1.js');
14
14
  require('./_commonjsHelpers-384729db.js');
15
15
  require('./interfaces-7cd0a48a.js');
@@ -20,6 +20,8 @@ const CrowdsourceReporter = class {
20
20
  constructor(hostRef) {
21
21
  index.registerInstance(this, hostRef);
22
22
  this.togglePanel = index.createEvent(this, "togglePanel", 7);
23
+ //HARDCODED IN EN
24
+ this._noLayerToDisplayErrorMsg = "Web map does not contain any editable layers.";
23
25
  this.description = undefined;
24
26
  this.isMobile = undefined;
25
27
  this.enableAnonymousAccess = undefined;
@@ -32,6 +34,8 @@ const CrowdsourceReporter = class {
32
34
  this.mapView = undefined;
33
35
  this.layerId = undefined;
34
36
  this.objectId = undefined;
37
+ this.center = undefined;
38
+ this.level = undefined;
35
39
  this.reportButtonText = undefined;
36
40
  this.reportsHeader = undefined;
37
41
  this.reportSubmittedMessage = undefined;
@@ -163,7 +167,7 @@ const CrowdsourceReporter = class {
163
167
  */
164
168
  getLayerListFlowItem() {
165
169
  return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this.reportsHeader }, this.isMobile && this.getActionToExpandCollapsePanel(), this._hasValidLayers && this.enableNewReports &&
166
- index.h("calcite-button", { appearance: "solid", onClick: this.navigateToChooseCategory.bind(this), slot: "footer", width: "full" }, this.reportButtonText), index.h("calcite-panel", { "full-height": true, "full-width": true }, index.h("layer-list", { class: "height-full", layers: this.layers, mapView: this.mapView, noLayerErrorMsg: this._translations.noLayerToDisplayErrorMsg, onLayerSelect: this.displayFeaturesList.bind(this), onLayersListLoaded: this.layerListLoaded.bind(this), ref: el => this._layerList = el, showFeatureCount: true, showNextIcon: true }))));
170
+ index.h("calcite-button", { appearance: "solid", onClick: this.navigateToChooseCategory.bind(this), slot: "footer", width: "full" }, this.reportButtonText), index.h("calcite-panel", { "full-height": true, "full-width": true }, index.h("layer-list", { class: "height-full", layers: this.layers, mapView: this.mapView, noLayerErrorMsg: this._noLayerToDisplayErrorMsg, onLayerSelect: this.displayFeaturesList.bind(this), onLayersListLoaded: this.layerListLoaded.bind(this), ref: el => this._layerList = el, showFeatureCount: true, showNextIcon: true }))));
167
171
  }
168
172
  /**
169
173
  * Get the layer list for creating a report
@@ -171,7 +175,7 @@ const CrowdsourceReporter = class {
171
175
  * @protected
172
176
  */
173
177
  getChooseCategoryFlowItem() {
174
- return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._translations.createReportHeader, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("div", { class: "width-full", slot: "footer" }, index.h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", disabled: !this._selectedLayerId, onClick: this.navigateToCreateFeature.bind(this), width: "full" }, this._translations.next), index.h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromSelectedPanel.bind(this), width: "full" }, this._translations.cancel)), index.h("calcite-panel", { "full-height": true, "full-width": true }, index.h("calcite-notice", { class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, index.h("div", { slot: "message" }, this._translations.chooseCategoryMsg)), index.h("layer-list", { class: "height-full", layers: this.layers, mapView: this.mapView, noLayerErrorMsg: this._translations.noLayerToDisplayErrorMsg, onLayerSelect: this.highlightSelectedLayer.bind(this), showFeatureCount: false, showNextIcon: false }))));
178
+ return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._translations.createReportHeader, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("div", { class: "width-full", slot: "footer" }, index.h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", disabled: !this._selectedLayerId, onClick: this.navigateToCreateFeature.bind(this), width: "full" }, this._translations.next), index.h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromSelectedPanel.bind(this), width: "full" }, this._translations.cancel)), index.h("calcite-panel", { "full-height": true, "full-width": true }, index.h("calcite-notice", { class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, index.h("div", { slot: "message" }, this._translations.chooseCategoryMsg)), index.h("layer-list", { class: "height-full", layers: this.layers, mapView: this.mapView, noLayerErrorMsg: this._noLayerToDisplayErrorMsg, onLayerSelect: this.highlightSelectedLayer.bind(this), showFeatureCount: false, showNextIcon: false }))));
175
179
  }
176
180
  /**
177
181
  * Get Feature create form of the selected feature layer
@@ -517,11 +521,17 @@ const CrowdsourceReporter = class {
517
521
  * @protected
518
522
  */
519
523
  async loadFeatureFromURLParams() {
524
+ if (this.center && this.level) {
525
+ await this.mapView.goTo({
526
+ center: this.center.split(';').map(Number),
527
+ zoom: this.level
528
+ });
529
+ }
520
530
  if (this.layerId && this.objectId) {
521
531
  const layer = await mapViewUtils.getLayerOrTable(this.mapView, this.layerId);
522
532
  if (layer) {
523
533
  // only query if we have some ids...query with no ids will result in all features being returned
524
- const featureSet = await mapViewUtils.queryFeaturesByID([Number(this.objectId)], layer, [], false, this.mapView.spatialReference);
534
+ const featureSet = await mapViewUtils.queryFeaturesByID([Number(this.objectId)], layer, [], true, this.mapView.spatialReference);
525
535
  if (featureSet.length) {
526
536
  //update the selectedFeature
527
537
  this._selectedFeature = featureSet;
@@ -533,6 +543,7 @@ const CrowdsourceReporter = class {
533
543
  else {
534
544
  this._flowItems = [...this._flowItems];
535
545
  }
546
+ await this.highlightOnMap(featureSet[0]);
536
547
  }
537
548
  }
538
549
  }
@@ -8,7 +8,7 @@
8
8
  const _commonjsHelpers = require('./_commonjsHelpers-384729db.js');
9
9
  const index = require('./index-105cf2b9.js');
10
10
  const locale = require('./locale-8c42ba7a.js');
11
- const mapViewUtils = require('./mapViewUtils-cd29b129.js');
11
+ const mapViewUtils = require('./mapViewUtils-290dbc9e.js');
12
12
  require('./solution-resource-abec7452.js');
13
13
  require('./index-f64944ad.js');
14
14
  const restHelpersGet = require('./restHelpersGet-e0737480.js');
@@ -1510,7 +1510,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
1510
1510
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1511
1511
  * ====================================================================
1512
1512
  */
1513
- function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-8d317f5e.js'); })).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
1513
+ function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-b9d6eff6.js'); })).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
1514
1514
  /** ====================================================================
1515
1515
  * @license
1516
1516
  * jsPDF XMP metadata plugin
@@ -6,11 +6,11 @@
6
6
  'use strict';
7
7
 
8
8
  const _commonjsHelpers = require('./_commonjsHelpers-384729db.js');
9
- const downloadUtils = require('./downloadUtils-c22a71da.js');
9
+ const downloadUtils = require('./downloadUtils-b10e3b8c.js');
10
10
  require('./index-105cf2b9.js');
11
11
  require('./locale-8c42ba7a.js');
12
12
  require('./esri-loader-a91c0ec1.js');
13
- require('./mapViewUtils-cd29b129.js');
13
+ require('./mapViewUtils-290dbc9e.js');
14
14
  require('./interfaces-7cd0a48a.js');
15
15
  require('./solution-resource-abec7452.js');
16
16
  require('./index-f64944ad.js');
@@ -204,13 +204,13 @@ const InstantAppsLanguageTranslatorItem = class {
204
204
  return (index.h("div", { class: `${CSS$1.section}${selected}` }, this.renderItemHeader(utils.EInputType.User, label, uid), this.handleInputRender(utils.EInputType.User, value, uid)));
205
205
  }
206
206
  renderTranslatedLanguageSection() {
207
- var _a;
207
+ var _a, _b;
208
208
  const uiDataItem = this.getUIDataItem();
209
209
  const uid = this.setting.id;
210
210
  const locale = utils.store.get('currentLanguage');
211
211
  const data = utils.store.get('portalItemResourceT9n');
212
- const label = this.translatedLanguageLabels[this.fieldName];
213
- const value = (_a = data === null || data === void 0 ? void 0 : data[locale]) === null || _a === void 0 ? void 0 : _a[uid];
212
+ const label = (_a = this.translatedLanguageLabels) === null || _a === void 0 ? void 0 : _a[this.fieldName];
213
+ const value = (_b = data === null || data === void 0 ? void 0 : data[locale]) === null || _b === void 0 ? void 0 : _b[uid];
214
214
  const selected = (uiDataItem === null || uiDataItem === void 0 ? void 0 : uiDataItem.selected) ? ` ${CSS$1.selected}` : '';
215
215
  return (index.h("div", { class: `${CSS$1.section}${selected}` }, this.renderItemHeader(utils.EInputType.Translation, label, uid), this.handleInputRender(utils.EInputType.Translation, value, uid)));
216
216
  }
@@ -225,13 +225,14 @@ const InstantAppsLanguageTranslatorItem = class {
225
225
  return content === null || content === void 0 ? void 0 : content.map(contentItem => (contentItem.hasOwnProperty('content') ? this.renderNestedInputs(inputType, contentItem) : this.renderNestedInput(inputType, contentItem)));
226
226
  }
227
227
  renderNestedInput(inputType, contentItem) {
228
+ var _a;
228
229
  const locale = utils.store.get('currentLanguage');
229
230
  const data = utils.store.get('portalItemResourceT9n');
230
231
  const uid = contentItem === null || contentItem === void 0 ? void 0 : contentItem.id;
231
232
  const localeData = data === null || data === void 0 ? void 0 : data[locale];
232
233
  const translatedValue = localeData === null || localeData === void 0 ? void 0 : localeData[uid];
233
234
  const { label, value, id } = contentItem;
234
- const inputLabel = inputType === utils.EInputType.Translation ? this.translatedLanguageLabels[id] : label;
235
+ const inputLabel = inputType === utils.EInputType.Translation ? (_a = this.translatedLanguageLabels) === null || _a === void 0 ? void 0 : _a[id] : label;
235
236
  const isUser = inputType === utils.EInputType.User;
236
237
  const inputValue = isUser ? value : translatedValue;
237
238
  return (index.h("div", { class: CSS$1.nestedInput }, this.renderItemHeader(inputType, inputLabel, uid, contentItem), this.renderInput(inputType, inputValue, uid, contentItem)));