@esri/solutions-components 0.7.24 → 0.7.25
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/{info-card_4.cjs.entry.js → basemap-gallery_7.cjs.entry.js} +410 -324
- package/dist/cjs/buffer-tools_3.cjs.entry.js +3 -4
- package/dist/cjs/{calcite-alert_3.cjs.entry.js → calcite-alert_4.cjs.entry.js} +296 -3
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +1 -2
- package/dist/cjs/calcite-flow_4.cjs.entry.js +3 -4
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +1 -2
- package/dist/cjs/{card-manager_2.cjs.entry.js → card-manager_3.cjs.entry.js} +182 -5
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -2
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +32 -90
- 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/layout-manager.cjs.entry.js +1 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-1ff119f5.js → locale-a476e15d.js} +24 -3
- package/dist/cjs/map-select-tools_3.cjs.entry.js +4 -5
- package/dist/cjs/{popupUtils-8d5b6e94.js → popupUtils-a73902a6.js} +2 -2
- package/dist/cjs/public-notification.cjs.entry.js +3 -4
- package/dist/cjs/solution-configuration.cjs.entry.js +1 -2
- package/dist/cjs/solution-contents_3.cjs.entry.js +1 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +1 -2
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +5 -27
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +69 -95
- package/dist/collection/demos/crowdsource-reporter.html +96 -45
- package/dist/components/crowdsource-reporter.js +95 -209
- package/dist/esm/{info-card_4.entry.js → basemap-gallery_7.entry.js} +406 -323
- package/dist/esm/buffer-tools_3.entry.js +1 -2
- package/dist/esm/{calcite-alert_3.entry.js → calcite-alert_4.entry.js} +295 -3
- package/dist/esm/calcite-combobox_6.entry.js +1 -2
- package/dist/esm/calcite-flow_4.entry.js +3 -4
- package/dist/esm/calcite-shell-panel_14.entry.js +1 -2
- package/dist/esm/{card-manager_2.entry.js → card-manager_3.entry.js} +181 -5
- package/dist/esm/crowdsource-manager.entry.js +1 -2
- package/dist/esm/crowdsource-reporter.entry.js +32 -90
- package/dist/esm/{downloadUtils-067dc2ff.js → downloadUtils-a301c193.js} +2 -2
- package/dist/esm/{index.es-92e46d8b.js → index.es-37a9907e.js} +2 -2
- package/dist/esm/layout-manager.entry.js +1 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-13e3c96c.js → locale-731e75a8.js} +22 -2
- package/dist/esm/map-select-tools_3.entry.js +2 -3
- package/dist/esm/{popupUtils-b71f30fc.js → popupUtils-a593bd78.js} +1 -1
- package/dist/esm/public-notification.entry.js +2 -3
- package/dist/esm/solution-configuration.entry.js +1 -2
- package/dist/esm/solution-contents_3.entry.js +1 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +1 -2
- package/dist/solutions-components/demos/crowdsource-reporter.html +96 -45
- package/dist/solutions-components/{p-36cbf14f.js → p-0587972d.js} +1 -1
- package/dist/solutions-components/p-0b4f4b0e.entry.js +6 -0
- package/dist/solutions-components/{p-f54f3719.entry.js → p-0b619197.entry.js} +1 -1
- package/dist/solutions-components/{p-d50f34c4.entry.js → p-2656c6e4.entry.js} +1 -1
- package/dist/solutions-components/p-284cc5cd.entry.js +6 -0
- package/dist/solutions-components/{p-01032eec.entry.js → p-29f661f5.entry.js} +2 -2
- package/dist/solutions-components/p-5af99fd8.entry.js +6 -0
- package/dist/solutions-components/{p-d9061e5d.entry.js → p-7116f96d.entry.js} +1 -1
- package/dist/solutions-components/p-7c13406e.entry.js +6 -0
- package/dist/solutions-components/{p-685257d1.entry.js → p-7dbccc10.entry.js} +1 -1
- package/dist/solutions-components/p-8308f64c.entry.js +6 -0
- package/dist/solutions-components/{p-ca4023f4.entry.js → p-891682da.entry.js} +1 -1
- package/dist/solutions-components/{p-14ff1465.js → p-a603e673.js} +2 -2
- package/dist/solutions-components/p-b37ec1f3.entry.js +6 -0
- package/dist/solutions-components/{p-fec77450.js → p-db868283.js} +1 -1
- package/dist/solutions-components/{p-fb1c6811.entry.js → p-dded59a7.entry.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-fe295e9d.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +14 -28
- package/dist/types/components.d.ts +16 -0
- package/package.json +1 -1
- package/dist/cjs/basemap-gallery_5.cjs.entry.js +0 -573
- package/dist/cjs/loadModules-46d14e81.js +0 -30
- package/dist/esm/basemap-gallery_5.entry.js +0 -565
- package/dist/esm/loadModules-cea493da.js +0 -28
- package/dist/solutions-components/p-3606c4b8.entry.js +0 -6
- package/dist/solutions-components/p-48ff9cea.js +0 -21
- package/dist/solutions-components/p-5e832d65.entry.js +0 -6
- package/dist/solutions-components/p-8fc072ca.entry.js +0 -6
- package/dist/solutions-components/p-a2d3df14.entry.js +0 -6
- package/dist/solutions-components/p-ab006ace.js +0 -21
- package/dist/solutions-components/p-ba56035f.entry.js +0 -6
- package/dist/solutions-components/p-c0ed2b83.entry.js +0 -6
- package/dist/solutions-components/p-cc88bb42.entry.js +0 -6
- package/dist/solutions-components/p-db69f4ba.entry.js +0 -6
- package/dist/solutions-components/p-e3061220.entry.js +0 -6
|
@@ -5,9 +5,29 @@
|
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const esriLoader = require('./esri-loader-a91c0ec1.js');
|
|
9
9
|
const index = require('./index-b8a649fc.js');
|
|
10
10
|
|
|
11
|
+
/** @license
|
|
12
|
+
* Copyright 2022 Esri
|
|
13
|
+
*
|
|
14
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
15
|
+
* you may not use this file except in compliance with the License.
|
|
16
|
+
* You may obtain a copy of the License at
|
|
17
|
+
*
|
|
18
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
19
|
+
*
|
|
20
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
21
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
22
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
23
|
+
* See the License for the specific language governing permissions and
|
|
24
|
+
* limitations under the License.
|
|
25
|
+
*/
|
|
26
|
+
const loadModules = async (moduleNames, options) => {
|
|
27
|
+
const mods = await esriLoader.esriLoader.loadModules(moduleNames, options);
|
|
28
|
+
return mods.map((mod) => (mod.__esModule && mod.default ? mod.default : mod));
|
|
29
|
+
};
|
|
30
|
+
|
|
11
31
|
/*
|
|
12
32
|
* Copyright (c) 2022 Esri
|
|
13
33
|
* All rights reserved.
|
|
@@ -66,7 +86,7 @@ const languageMap = new Map([
|
|
|
66
86
|
async function formatNumber(number, options) {
|
|
67
87
|
const { api = 4, type = "decimal", places = 2 } = options || {};
|
|
68
88
|
if (api === 4) {
|
|
69
|
-
const [intl] = await loadModules
|
|
89
|
+
const [intl] = await loadModules(["esri/intl"]);
|
|
70
90
|
const numberFormatIntlOptions = intl.convertNumberFormatToIntlOptions({
|
|
71
91
|
places,
|
|
72
92
|
type,
|
|
@@ -74,7 +94,7 @@ async function formatNumber(number, options) {
|
|
|
74
94
|
});
|
|
75
95
|
return intl.formatNumber(number, numberFormatIntlOptions);
|
|
76
96
|
}
|
|
77
|
-
const [dojoNumber] = await loadModules
|
|
97
|
+
const [dojoNumber] = await loadModules(["dojo/number"]);
|
|
78
98
|
return dojoNumber.format(number, {
|
|
79
99
|
type,
|
|
80
100
|
places,
|
|
@@ -138,3 +158,4 @@ async function getLocaleComponentStrings(element) {
|
|
|
138
158
|
exports.formatNumber = formatNumber;
|
|
139
159
|
exports.getComponentClosestLanguage = getComponentClosestLanguage;
|
|
140
160
|
exports.getLocaleComponentStrings = getLocaleComponentStrings;
|
|
161
|
+
exports.loadModules = loadModules;
|
|
@@ -8,12 +8,11 @@
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
10
|
const index = require('./index-b8a649fc.js');
|
|
11
|
-
const
|
|
11
|
+
const locale = require('./locale-a476e15d.js');
|
|
12
12
|
const mapViewUtils = require('./mapViewUtils-8aa325de.js');
|
|
13
13
|
const interfaces = require('./interfaces-7cd0a48a.js');
|
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-3a17c2f4.js');
|
|
15
|
-
const
|
|
16
|
-
const downloadUtils = require('./downloadUtils-401356b5.js');
|
|
15
|
+
const downloadUtils = require('./downloadUtils-83c6d3c3.js');
|
|
17
16
|
require('./esri-loader-a91c0ec1.js');
|
|
18
17
|
require('./_commonjsHelpers-384729db.js');
|
|
19
18
|
require('./index-22bb61da.js');
|
|
@@ -249,7 +248,7 @@ const MapSelectTools = class {
|
|
|
249
248
|
* @protected
|
|
250
249
|
*/
|
|
251
250
|
async _initModules() {
|
|
252
|
-
const [GraphicsLayer, Graphic, Search, geometryEngine, FeatureLayer] = await
|
|
251
|
+
const [GraphicsLayer, Graphic, Search, geometryEngine, FeatureLayer] = await locale.loadModules([
|
|
253
252
|
"esri/layers/GraphicsLayer",
|
|
254
253
|
"esri/Graphic",
|
|
255
254
|
"esri/widgets/Search",
|
|
@@ -1070,7 +1069,7 @@ const PdfDownload = class {
|
|
|
1070
1069
|
* @protected
|
|
1071
1070
|
*/
|
|
1072
1071
|
async _initModules() {
|
|
1073
|
-
const [intl] = await
|
|
1072
|
+
const [intl] = await locale.loadModules([
|
|
1074
1073
|
"esri/intl"
|
|
1075
1074
|
]);
|
|
1076
1075
|
this._intl = intl;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const locale = require('./locale-a476e15d.js');
|
|
9
9
|
|
|
10
10
|
/** @license
|
|
11
11
|
* Copyright 2022 Esri
|
|
@@ -89,7 +89,7 @@ class PopupUtils {
|
|
|
89
89
|
* @protected
|
|
90
90
|
*/
|
|
91
91
|
async _initModules() {
|
|
92
|
-
const [arcade] = await
|
|
92
|
+
const [arcade] = await locale.loadModules([
|
|
93
93
|
"esri/arcade"
|
|
94
94
|
]);
|
|
95
95
|
this.arcade = arcade;
|
|
@@ -9,11 +9,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
|
|
10
10
|
const index = require('./index-b8a649fc.js');
|
|
11
11
|
const interfaces = require('./interfaces-7cd0a48a.js');
|
|
12
|
-
const
|
|
12
|
+
const locale = require('./locale-a476e15d.js');
|
|
13
13
|
const mapViewUtils = require('./mapViewUtils-8aa325de.js');
|
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-3a17c2f4.js');
|
|
15
|
-
const
|
|
16
|
-
const downloadUtils = require('./downloadUtils-401356b5.js');
|
|
15
|
+
const downloadUtils = require('./downloadUtils-83c6d3c3.js');
|
|
17
16
|
require('./esri-loader-a91c0ec1.js');
|
|
18
17
|
require('./_commonjsHelpers-384729db.js');
|
|
19
18
|
require('./index-22bb61da.js');
|
|
@@ -199,7 +198,7 @@ const PublicNotification = class {
|
|
|
199
198
|
* @protected
|
|
200
199
|
*/
|
|
201
200
|
async _initModules() {
|
|
202
|
-
const [geometryEngine, jsonUtils] = await
|
|
201
|
+
const [geometryEngine, jsonUtils] = await locale.loadModules([
|
|
203
202
|
"esri/geometry/geometryEngine",
|
|
204
203
|
"esri/symbols/support/jsonUtils"
|
|
205
204
|
]);
|
|
@@ -12,11 +12,10 @@ const solutionStore = require('./solution-store-ab6c980f.js');
|
|
|
12
12
|
require('./solution-resource-abec7452.js');
|
|
13
13
|
const restHelpersGet = require('./restHelpersGet-e0737480.js');
|
|
14
14
|
require('./index-f64944ad.js');
|
|
15
|
-
const locale = require('./locale-
|
|
15
|
+
const locale = require('./locale-a476e15d.js');
|
|
16
16
|
require('./index-22bb61da.js');
|
|
17
17
|
require('./interfaces-7cd0a48a.js');
|
|
18
18
|
require('./_commonjsHelpers-384729db.js');
|
|
19
|
-
require('./loadModules-46d14e81.js');
|
|
20
19
|
require('./esri-loader-a91c0ec1.js');
|
|
21
20
|
|
|
22
21
|
/* Copyright (c) 2017-2020 Environmental Systems Research Institute, Inc.
|
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
|
|
10
10
|
const index = require('./index-b8a649fc.js');
|
|
11
11
|
const solutionStore = require('./solution-store-ab6c980f.js');
|
|
12
|
-
const locale = require('./locale-
|
|
12
|
+
const locale = require('./locale-a476e15d.js');
|
|
13
13
|
const common = require('./common-4cd3537b.js');
|
|
14
14
|
require('./index-22bb61da.js');
|
|
15
15
|
require('./interfaces-7cd0a48a.js');
|
|
@@ -17,7 +17,6 @@ require('./solution-resource-abec7452.js');
|
|
|
17
17
|
require('./_commonjsHelpers-384729db.js');
|
|
18
18
|
require('./index-f64944ad.js');
|
|
19
19
|
require('./restHelpersGet-e0737480.js');
|
|
20
|
-
require('./loadModules-46d14e81.js');
|
|
21
20
|
require('./esri-loader-a91c0ec1.js');
|
|
22
21
|
|
|
23
22
|
const solutionContentsCss = ".icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
|