@esri/solutions-components 0.8.21 → 0.8.23
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.
- package/dist/cjs/calcite-alert_4.cjs.entry.js +12 -11
- package/dist/cjs/calcite-flow_6.cjs.entry.js +8 -8
- package/dist/cjs/card-manager_3.cjs.entry.js +13 -7
- package/dist/cjs/crowdsource-manager.cjs.entry.js +13 -5
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
- package/dist/cjs/{downloadUtils-2e36a300.js → downloadUtils-5349717a.js} +2 -1
- package/dist/cjs/feature-list.cjs.entry.js +7 -3
- package/dist/cjs/{index.es-56415e48.js → index.es-aa69b58b.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/{popupUtils-500c1544.js → popupUtils-3e65296c.js} +17 -2
- package/dist/cjs/public-notification.cjs.entry.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/card-manager/card-manager.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +31 -9
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +1 -1
- package/dist/collection/components/feature-details/feature-details.css +2 -2
- package/dist/collection/components/feature-details/feature-details.js +6 -6
- package/dist/collection/components/feature-list/feature-list.css +1 -1
- package/dist/collection/components/feature-list/feature-list.js +1 -1
- package/dist/collection/components/info-card/info-card.js +7 -27
- package/dist/collection/components/layer-list/layer-list.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +11 -5
- package/dist/collection/demos/crowdsource-manager.html +10 -2
- package/dist/collection/utils/popupUtils.js +17 -2
- package/dist/collection/utils/popupUtils.ts +23 -3
- package/dist/components/card-manager2.js +1 -1
- package/dist/components/consent-manager.js +1 -1
- package/dist/components/crowdsource-manager.js +14 -6
- package/dist/components/crowdsource-reporter.js +1 -1
- package/dist/components/downloadUtils.js +1 -1
- package/dist/components/esri-loader.js +1 -1
- package/dist/components/feature-details2.js +7 -7
- package/dist/components/feature-list2.js +2 -2
- package/dist/components/html2canvas.js +1 -1
- package/dist/components/index.es.js +2 -2
- package/dist/components/info-card2.js +7 -11
- package/dist/components/instant-apps-interactive-legend-classic2.js +1 -1
- package/dist/components/layer-list2.js +1 -1
- package/dist/components/layer-table2.js +11 -5
- package/dist/components/popupUtils.js +17 -2
- package/dist/components/purify.js +1 -1
- package/dist/components/solution-resource.js +1 -1
- package/dist/esm/calcite-alert_4.entry.js +12 -11
- package/dist/esm/calcite-flow_6.entry.js +8 -8
- package/dist/esm/card-manager_3.entry.js +13 -7
- package/dist/esm/crowdsource-manager.entry.js +13 -5
- package/dist/esm/crowdsource-reporter.entry.js +1 -1
- package/dist/esm/{downloadUtils-aab31bfe.js → downloadUtils-5fa0d437.js} +2 -2
- package/dist/esm/feature-list.entry.js +7 -3
- package/dist/esm/{index.es-43ba3006.js → index.es-57c15c9b.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +1 -1
- package/dist/esm/{popupUtils-2cc3c366.js → popupUtils-650b6bba.js} +17 -2
- package/dist/esm/public-notification.entry.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/demos/crowdsource-manager.html +10 -2
- package/dist/solutions-components/{p-667caa6b.js → p-24bf45b7.js} +1 -1
- package/dist/solutions-components/{p-88f73319.entry.js → p-41d288c0.entry.js} +1 -1
- package/dist/solutions-components/p-63460d51.entry.js +6 -0
- package/dist/solutions-components/{p-f6668347.entry.js → p-64da5bb8.entry.js} +3 -3
- package/dist/solutions-components/{p-37fc92db.js → p-6f69de4d.js} +2 -2
- package/dist/solutions-components/{p-8cff32bd.entry.js → p-72317f8e.entry.js} +2 -2
- package/dist/solutions-components/p-88495699.entry.js +6 -0
- package/dist/solutions-components/{p-54324eaa.entry.js → p-97e343df.entry.js} +1 -1
- package/dist/solutions-components/p-a1037b19.js +21 -0
- package/dist/solutions-components/{p-48c99a48.entry.js → p-c36bb8ca.entry.js} +1 -1
- package/dist/solutions-components/p-f6a1673c.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/popupUtils.ts +23 -3
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +14 -6
- package/dist/types/components/info-card/info-card.d.ts +0 -4
- package/dist/types/components.d.ts +11 -14
- package/dist/types/preact.d.ts +3 -2
- package/dist/types/utils/popupUtils.d.ts +4 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-1cf1a4d5.entry.js +0 -6
- package/dist/solutions-components/p-51d2370c.entry.js +0 -6
- package/dist/solutions-components/p-64779bb2.entry.js +0 -6
- package/dist/solutions-components/p-ebf82ce0.js +0 -21
@@ -12,7 +12,7 @@ const locale = require('./locale-48d76c59.js');
|
|
12
12
|
const mapViewUtils = require('./mapViewUtils-6e46ba33.js');
|
13
13
|
const interfaces = require('./interfaces-7cd0a48a.js');
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-3bfbbed3.js');
|
15
|
-
const downloadUtils = require('./downloadUtils-
|
15
|
+
const downloadUtils = require('./downloadUtils-5349717a.js');
|
16
16
|
require('./esri-loader-fce6a9cb.js');
|
17
17
|
require('./index-c078ea5f.js');
|
18
18
|
require('./solution-resource-a577e84f.js');
|
@@ -5,6 +5,7 @@
|
|
5
5
|
*/
|
6
6
|
'use strict';
|
7
7
|
|
8
|
+
const downloadUtils = require('./downloadUtils-5349717a.js');
|
8
9
|
const locale = require('./locale-48d76c59.js');
|
9
10
|
|
10
11
|
/** @license
|
@@ -42,6 +43,7 @@ class PopupUtils {
|
|
42
43
|
}
|
43
44
|
const layer = graphic.layer;
|
44
45
|
const popupTitle = this._removeTags((_a = layer === null || layer === void 0 ? void 0 : layer.popupTemplate) === null || _a === void 0 ? void 0 : _a.title);
|
46
|
+
//resolve arcade expression from the popup title
|
45
47
|
if (popupTitle.includes("{expression/expr") && ((_b = layer === null || layer === void 0 ? void 0 : layer.popupTemplate) === null || _b === void 0 ? void 0 : _b.expressionInfos) != null) {
|
46
48
|
for (let i = 0; i < ((_c = layer.popupTemplate) === null || _c === void 0 ? void 0 : _c.expressionInfos.length); i++) {
|
47
49
|
const info = layer.popupTemplate.expressionInfos[i];
|
@@ -61,6 +63,17 @@ class PopupUtils {
|
|
61
63
|
}
|
62
64
|
}
|
63
65
|
}
|
66
|
+
//Format field values
|
67
|
+
if (layer.popupTemplate.fieldInfos) {
|
68
|
+
layer.fields.forEach((field) => {
|
69
|
+
const attributeValue = graphic.attributes[field.name];
|
70
|
+
//get the field info from popupTemplate
|
71
|
+
const fieldInfo = layer.popupTemplate.fieldInfos.find((fInfo) => fInfo.fieldName.toLowerCase() === field.name.toLowerCase());
|
72
|
+
//format the attribute value
|
73
|
+
const formattedAttributeValue = downloadUtils._prepareAttributeValue(attributeValue, field.type, field.domain, fieldInfo === null || fieldInfo === void 0 ? void 0 : fieldInfo.format, this.intl);
|
74
|
+
attributes[`{${field.name.toUpperCase()}}`] = formattedAttributeValue;
|
75
|
+
});
|
76
|
+
}
|
64
77
|
return popupTitle === null || popupTitle === void 0 ? void 0 : popupTitle.replace(/{.*?}/g, (placeholder) => {
|
65
78
|
return attributes[placeholder.toUpperCase()] != null ? attributes[placeholder.toUpperCase()] : "";
|
66
79
|
});
|
@@ -86,10 +99,12 @@ class PopupUtils {
|
|
86
99
|
* @protected
|
87
100
|
*/
|
88
101
|
async _initModules() {
|
89
|
-
const [arcade] = await locale.loadModules([
|
90
|
-
"esri/arcade"
|
102
|
+
const [arcade, intl] = await locale.loadModules([
|
103
|
+
"esri/arcade",
|
104
|
+
"esri/intl"
|
91
105
|
]);
|
92
106
|
this.arcade = arcade;
|
107
|
+
this.intl = intl;
|
93
108
|
}
|
94
109
|
}
|
95
110
|
|
@@ -12,7 +12,7 @@ const interfaces = require('./interfaces-7cd0a48a.js');
|
|
12
12
|
const locale = require('./locale-48d76c59.js');
|
13
13
|
const mapViewUtils = require('./mapViewUtils-6e46ba33.js');
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-3bfbbed3.js');
|
15
|
-
const downloadUtils = require('./downloadUtils-
|
15
|
+
const downloadUtils = require('./downloadUtils-5349717a.js');
|
16
16
|
require('./esri-loader-fce6a9cb.js');
|
17
17
|
require('./index-c078ea5f.js');
|
18
18
|
require('./solution-resource-a577e84f.js');
|