@arcgis/coding-components 4.30.0-next.21 → 4.30.0-next.22
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/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +25 -0
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/p-0596e58a.js +68 -0
- package/dist/arcgis-coding-components/p-09b3d456.js +6 -0
- package/dist/arcgis-coding-components/{p-5583b25d.js → p-237cd069.js} +2 -2
- package/dist/arcgis-coding-components/{p-a63eeed9.js → p-3c4c9bb1.js} +1 -1
- package/dist/arcgis-coding-components/{p-253f92ea.js → p-52af3d36.js} +2 -2
- package/dist/arcgis-coding-components/{p-cb5166f2.js → p-54a3c846.js} +2 -2
- package/dist/arcgis-coding-components/{p-192601ca.js → p-68c09f28.js} +2 -2
- package/dist/arcgis-coding-components/p-704509f4.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-b177db92.js → p-89a837be.js} +2 -2
- package/dist/arcgis-coding-components/p-8be62afd.js +7 -0
- package/dist/arcgis-coding-components/{p-eb16cce2.js → p-a8a82d95.js} +2 -2
- package/dist/arcgis-coding-components/{p-1451e0cc.js → p-bf1aaa39.js} +2 -2
- package/dist/arcgis-coding-components/{p-0e7b5896.js → p-bf789380.js} +2 -2
- package/dist/arcgis-coding-components/p-f31fa95c.js +6 -0
- package/dist/arcgis-coding-components/p-f9bdf871.js +6 -0
- package/dist/cjs/Accessor-YDTURKZ7-064d4ec3.js +1249 -0
- package/dist/cjs/{arcade-defaults-9d57f506.js → arcade-defaults-75be7a9b.js} +294 -295
- package/dist/cjs/{arcade-mode-9079b8e0.js → arcade-mode-bf406304.js} +4 -4
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1347 -89
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/chunk-OMA4PI5N-c7c531ca.js +1286 -0
- package/dist/cjs/{css-9aa4569b.js → css-a1b28a9f.js} +1 -1
- package/dist/cjs/{cssMode-6f57c416.js → cssMode-5b3b9c9b.js} +3 -3
- package/dist/cjs/decorators-443AWDOE-ab85b9eb.js +120 -0
- package/dist/cjs/{html-95d3a234.js → html-51efc5f2.js} +3 -3
- package/dist/cjs/{htmlMode-ebd8894d.js → htmlMode-a3589bc9.js} +3 -3
- package/dist/cjs/{index-a3f52cf5.js → index-6a3d1ddd.js} +42 -4
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-1a01235b.js → javascript-f387480b.js} +4 -4
- package/dist/cjs/{jsonMode-26ed7799.js → jsonMode-f9b19644.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tsMode-9cfeb9a5.js → tsMode-b1e0bb57.js} +3 -3
- package/dist/cjs/{typescript-f9907455.js → typescript-64e66362.js} +3 -3
- package/dist/components/Accessor-YDTURKZ7.js +1247 -0
- package/dist/components/arcade-api.js +9 -15
- package/dist/components/arcade-contribution.js +3 -3
- package/dist/components/arcade-defaults.js +10 -10
- package/dist/components/arcade-mode.js +3 -3
- package/dist/components/arcade-results.js +24 -35
- package/dist/components/arcade-suggestions.js +10 -16
- package/dist/components/arcade-variables.js +11 -20
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +20 -24
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/chunk-3I7AEPTU.js +1290 -0
- package/dist/components/chunk-OMA4PI5N.js +1257 -0
- package/dist/components/code-editor.js +6 -6
- package/dist/components/decorators-443AWDOE.js +109 -0
- package/dist/components/fields.js +40 -39
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +3 -3
- package/dist/components/markdown.js +1 -1
- package/dist/components/utilities.js +3 -3
- package/dist/esm/Accessor-YDTURKZ7-4eefd1d8.js +1247 -0
- package/dist/esm/{arcade-defaults-1577045c.js → arcade-defaults-fcc709e4.js} +286 -285
- package/dist/esm/{arcade-mode-ec8b7890.js → arcade-mode-dbf28353.js} +4 -4
- package/dist/esm/arcgis-arcade-api_6.entry.js +1389 -131
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/chunk-OMA4PI5N-0c09fa7b.js +1257 -0
- package/dist/esm/{css-6350c0f7.js → css-6122a30a.js} +1 -1
- package/dist/esm/{cssMode-629b1349.js → cssMode-b890adfc.js} +3 -3
- package/dist/esm/decorators-443AWDOE-77ed5d5a.js +109 -0
- package/dist/esm/{html-979016b0.js → html-2f56c6c3.js} +3 -3
- package/dist/esm/{htmlMode-dd504dae.js → htmlMode-84b5c7ea.js} +3 -3
- package/dist/esm/{index-093931a1.js → index-e75c4ffc.js} +42 -5
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-7af48cb1.js → javascript-8456a624.js} +4 -4
- package/dist/esm/{jsonMode-eb6b41d1.js → jsonMode-29439efe.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{tsMode-64deb000.js → tsMode-ec7fe1bf.js} +3 -3
- package/dist/esm/{typescript-c9b14542.js → typescript-d9362143.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/arcade-api/arcade-api.d.ts +4 -5
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +7 -4
- package/dist/types/components/arcade-results/arcade-results.d.ts +4 -7
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +4 -5
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +4 -6
- package/package.json +12 -12
- package/dist/arcgis-coding-components/p-81935687.js +0 -68
- package/dist/arcgis-coding-components/p-a2190df0.js +0 -7
- package/dist/arcgis-coding-components/p-e8c2933f.entry.js +0 -6
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +0 -3
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +0 -9
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +0 -19
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +0 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.22
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-75be7a9b.js');
|
|
9
|
+
require('./index-6a3d1ddd.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
+
* v4.30.0-next.22
|
|
5
|
+
*/
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
const chunkOMA4PI5N = require('./chunk-OMA4PI5N-c7c531ca.js');
|
|
9
|
+
|
|
10
|
+
// ../../../node_modules/@arcgis/core/core/jsonMap.js
|
|
11
|
+
var n$1 = class {
|
|
12
|
+
constructor(n2, i2 = { ignoreUnknown: false, useNumericKeys: false }) {
|
|
13
|
+
this._jsonToAPI = n2, this._options = i2, this.apiValues = [], this.jsonValues = [], this._apiToJSON = t(n2), this.apiValues = s$1(this._apiToJSON), this.jsonValues = s$1(this._jsonToAPI), this.read = (o2) => this.fromJSON(o2), this.write = (n3, t2, s2) => {
|
|
14
|
+
const i3 = this.toJSON(n3);
|
|
15
|
+
void 0 !== i3 && chunkOMA4PI5N.o(s2, i3, t2);
|
|
16
|
+
}, this.write.isJSONMapWriter = true;
|
|
17
|
+
}
|
|
18
|
+
toJSON(o2) {
|
|
19
|
+
if (null == o2)
|
|
20
|
+
return null;
|
|
21
|
+
if (this._apiToJSON.hasOwnProperty(o2)) {
|
|
22
|
+
const n2 = this._apiToJSON[o2];
|
|
23
|
+
return this._options.useNumericKeys ? +n2 : n2;
|
|
24
|
+
}
|
|
25
|
+
return this._options.ignoreUnknown ? void 0 : o2;
|
|
26
|
+
}
|
|
27
|
+
fromJSON(o2) {
|
|
28
|
+
return null != o2 && this._jsonToAPI.hasOwnProperty(o2) ? this._jsonToAPI[o2] : this._options.ignoreUnknown ? void 0 : o2;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
function t(o2) {
|
|
32
|
+
const n2 = {};
|
|
33
|
+
for (const t2 in o2)
|
|
34
|
+
n2[o2[t2]] = t2;
|
|
35
|
+
return n2;
|
|
36
|
+
}
|
|
37
|
+
function s$1(o2) {
|
|
38
|
+
const n2 = [];
|
|
39
|
+
for (const t2 in o2)
|
|
40
|
+
n2.push(t2);
|
|
41
|
+
return n2.sort(), n2;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// ../../../node_modules/@arcgis/core/core/accessorSupport/decorators/enumeration.js
|
|
45
|
+
function o$1(o2, r = {}) {
|
|
46
|
+
const a = o2 instanceof n$1 ? o2 : new n$1(o2, r), l = { type: r?.ignoreUnknown ?? 1 ? a.apiValues : String, json: { type: a.jsonValues, read: !r?.readOnly && { reader: a.read }, write: { writer: a.write } } };
|
|
47
|
+
return void 0 !== r?.readOnly && (l.readOnly = !!r.readOnly), void 0 !== r?.default && (l.json.default = r.default), void 0 !== r?.name && (l.json.name = r.name), void 0 !== r?.nonNullable && (l.nonNullable = r.nonNullable), chunkOMA4PI5N.y(l);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// ../../../node_modules/@arcgis/core/core/accessorSupport/decorators/reader.js
|
|
51
|
+
function o(o2, e, t) {
|
|
52
|
+
let a, c;
|
|
53
|
+
return void 0 === e || Array.isArray(e) ? (c = o2, t = e, a = [void 0]) : (c = e, a = Array.isArray(o2) ? o2 : [o2]), (o3, e2) => {
|
|
54
|
+
const d2 = o3.constructor.prototype;
|
|
55
|
+
a.forEach((a2) => {
|
|
56
|
+
const s = chunkOMA4PI5N.d2(o3, a2, c);
|
|
57
|
+
s.read && "object" == typeof s.read || (s.read = {}), s.read.reader = d2[e2], t && (s.read.source = (s.read.source || []).concat(t));
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// ../../../node_modules/@arcgis/core/core/accessorSupport/decorators/writer.js
|
|
63
|
+
function r$1(r2, o, e) {
|
|
64
|
+
let i, n;
|
|
65
|
+
return void 0 === o ? (n = r2, i = [void 0]) : "string" != typeof o ? (n = r2, i = [void 0], e = o) : (n = o, i = Array.isArray(r2) ? r2 : [r2]), (r3, o2) => {
|
|
66
|
+
const p = r3.constructor.prototype;
|
|
67
|
+
for (const c of i) {
|
|
68
|
+
const i2 = chunkOMA4PI5N.d2(r3, c, n);
|
|
69
|
+
i2.write && "object" == typeof i2.write || (i2.write = {}), e && (i2.write.target = e), i2.write.writer = p[o2];
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// ../../../node_modules/@arcgis/core/core/accessorSupport/decorators/cast.js
|
|
75
|
+
var r = Object.prototype.toString;
|
|
76
|
+
function o2(n) {
|
|
77
|
+
const r2 = "__accessorMetadata__" in n ? chunkOMA4PI5N.d(n) : n;
|
|
78
|
+
return function(...t) {
|
|
79
|
+
if (t.push(r2), "number" == typeof t[2])
|
|
80
|
+
throw new Error("Using @cast has parameter decorator is not supported since 4.16");
|
|
81
|
+
return e.apply(this, t);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function e(t, r2, o3, e2) {
|
|
85
|
+
chunkOMA4PI5N.o5(t, r2).cast = e2;
|
|
86
|
+
}
|
|
87
|
+
function i(t) {
|
|
88
|
+
return (r2, o3) => {
|
|
89
|
+
chunkOMA4PI5N.o5(r2, t).cast = r2[o3];
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function s(...t) {
|
|
93
|
+
if (3 !== t.length || "string" != typeof t[1])
|
|
94
|
+
return 1 === t.length && "[object Function]" === r.call(t[0]) ? o2(t[0]) : 1 === t.length && "string" == typeof t[0] ? i(t[0]) : void 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// ../../../node_modules/@arcgis/core/core/accessorSupport/decorators/shared.js
|
|
98
|
+
function n(n2) {
|
|
99
|
+
return (r, t) => {
|
|
100
|
+
r[t] = n2;
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// ../../../node_modules/@arcgis/core/core/accessorSupport/decorators/aliasOf.js
|
|
105
|
+
function o3(o4, t) {
|
|
106
|
+
const e = t ? { ...t, source: o4 } : o4;
|
|
107
|
+
return chunkOMA4PI5N.y({ aliasOf: e });
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
exports.ensureRange = chunkOMA4PI5N.j2;
|
|
111
|
+
exports.finalizeClass = chunkOMA4PI5N.p6;
|
|
112
|
+
exports.property = chunkOMA4PI5N.y;
|
|
113
|
+
exports.propertyJSONMeta = chunkOMA4PI5N.d2;
|
|
114
|
+
exports.subclass = chunkOMA4PI5N.a7;
|
|
115
|
+
exports.aliasOf = o3;
|
|
116
|
+
exports.cast = s;
|
|
117
|
+
exports.enumeration = o$1;
|
|
118
|
+
exports.reader = o;
|
|
119
|
+
exports.shared = n;
|
|
120
|
+
exports.writer = r$1;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.22
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-75be7a9b.js');
|
|
9
|
+
require('./index-6a3d1ddd.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.22
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-75be7a9b.js');
|
|
9
|
+
require('./index-6a3d1ddd.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.22
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -1131,6 +1131,19 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1131
1131
|
maybePromise = safeCall(instance, 'componentWillLoad');
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
|
+
else {
|
|
1135
|
+
{
|
|
1136
|
+
// Like `componentWillLoad` above, we allow Stencil component
|
|
1137
|
+
// authors to return a `Promise` from this lifecycle callback, and
|
|
1138
|
+
// we specify that our runtime will wait for that `Promise` to
|
|
1139
|
+
// resolve before the component re-renders. So if the method
|
|
1140
|
+
// returns a `Promise` we need to keep it around!
|
|
1141
|
+
maybePromise = safeCall(instance, 'componentWillUpdate');
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
{
|
|
1145
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, 'componentWillRender'));
|
|
1146
|
+
}
|
|
1134
1147
|
endSchedule();
|
|
1135
1148
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1136
1149
|
};
|
|
@@ -1255,6 +1268,9 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1255
1268
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
1256
1269
|
const instance = hostRef.$lazyInstance$ ;
|
|
1257
1270
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1271
|
+
{
|
|
1272
|
+
safeCall(instance, 'componentDidRender');
|
|
1273
|
+
}
|
|
1258
1274
|
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
1259
1275
|
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
1260
1276
|
{
|
|
@@ -1273,6 +1289,9 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1273
1289
|
}
|
|
1274
1290
|
}
|
|
1275
1291
|
else {
|
|
1292
|
+
{
|
|
1293
|
+
safeCall(instance, 'componentDidUpdate');
|
|
1294
|
+
}
|
|
1276
1295
|
endPostUpdate();
|
|
1277
1296
|
}
|
|
1278
1297
|
{
|
|
@@ -1294,6 +1313,18 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1294
1313
|
// ( •_•)>⌐■-■
|
|
1295
1314
|
// (⌐■_■)
|
|
1296
1315
|
};
|
|
1316
|
+
const forceUpdate = (ref) => {
|
|
1317
|
+
{
|
|
1318
|
+
const hostRef = getHostRef(ref);
|
|
1319
|
+
const isConnected = hostRef.$hostElement$.isConnected;
|
|
1320
|
+
if (isConnected &&
|
|
1321
|
+
(hostRef.$flags$ & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
|
1322
|
+
scheduleUpdate(hostRef, false);
|
|
1323
|
+
}
|
|
1324
|
+
// Returns "true" when the forced update was successfully scheduled
|
|
1325
|
+
return isConnected;
|
|
1326
|
+
}
|
|
1327
|
+
};
|
|
1297
1328
|
const appDidLoad = (who) => {
|
|
1298
1329
|
// on appload
|
|
1299
1330
|
// we have finish the first big initial render
|
|
@@ -1565,7 +1596,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1565
1596
|
// construction in order to directly wire together the
|
|
1566
1597
|
// host element and the lazy-loaded instance
|
|
1567
1598
|
try {
|
|
1568
|
-
new Cstr(hostRef);
|
|
1599
|
+
Cstr.__registerControllers=(component)=>{registerInstance(component,hostRef);return hostRef};new Cstr(hostRef);Cstr.__registerControllers=undefined;
|
|
1569
1600
|
}
|
|
1570
1601
|
catch (e) {
|
|
1571
1602
|
consoleError(e);
|
|
@@ -1577,6 +1608,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1577
1608
|
hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
|
|
1578
1609
|
}
|
|
1579
1610
|
endNewInstance();
|
|
1611
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1580
1612
|
}
|
|
1581
1613
|
if (Cstr.style) {
|
|
1582
1614
|
// this component has styles but we haven't registered them yet
|
|
@@ -1606,6 +1638,9 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1606
1638
|
}
|
|
1607
1639
|
};
|
|
1608
1640
|
const fireConnectedCallback = (instance) => {
|
|
1641
|
+
{
|
|
1642
|
+
safeCall(instance, 'connectedCallback');
|
|
1643
|
+
}
|
|
1609
1644
|
};
|
|
1610
1645
|
const connectedCallback = (elm) => {
|
|
1611
1646
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
@@ -1647,9 +1682,11 @@ const connectedCallback = (elm) => {
|
|
|
1647
1682
|
}
|
|
1648
1683
|
else {
|
|
1649
1684
|
// fire off connectedCallback() on component instance
|
|
1650
|
-
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$)
|
|
1685
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
|
|
1686
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1687
|
+
}
|
|
1651
1688
|
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1652
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1689
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1653
1690
|
}
|
|
1654
1691
|
}
|
|
1655
1692
|
endConnected();
|
|
@@ -1950,6 +1987,7 @@ exports.Fragment = Fragment;
|
|
|
1950
1987
|
exports.Host = Host;
|
|
1951
1988
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1952
1989
|
exports.createEvent = createEvent;
|
|
1990
|
+
exports.forceUpdate = forceUpdate;
|
|
1953
1991
|
exports.getAssetPath = getAssetPath;
|
|
1954
1992
|
exports.getElement = getElement;
|
|
1955
1993
|
exports.h = h;
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.22
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
11
|
-
require('./index-
|
|
10
|
+
const arcadeDefaults = require('./arcade-defaults-75be7a9b.js');
|
|
11
|
+
require('./index-6a3d1ddd.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.22
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const typescript = require('./typescript-
|
|
9
|
-
require('./arcade-defaults-
|
|
10
|
-
require('./index-
|
|
8
|
+
const typescript = require('./typescript-64e66362.js');
|
|
9
|
+
require('./arcade-defaults-75be7a9b.js');
|
|
10
|
+
require('./index-6a3d1ddd.js');
|
|
11
11
|
|
|
12
12
|
/*!-----------------------------------------------------------------------------
|
|
13
13
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.22
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-75be7a9b.js');
|
|
9
|
+
require('./index-6a3d1ddd.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.22
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
10
|
+
const index = require('./index-6a3d1ddd.js');
|
|
11
11
|
|
|
12
12
|
const defineCustomElements = (win, options) => {
|
|
13
13
|
if (typeof window === 'undefined') return undefined;
|
|
14
|
-
return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"
|
|
14
|
+
return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"messages":[32],"_standaloneCodeEditor":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"options":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}]]]], options);
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
exports.setNonce = index.setNonce;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.22
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-75be7a9b.js');
|
|
9
|
+
require('./index-6a3d1ddd.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.22
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-75be7a9b.js');
|
|
9
|
+
require('./index-6a3d1ddd.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|