@esri/solutions-components 5.1.0-next.93 → 5.1.0-next.95
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/cdn/{CDT7ELTA.js → 2B2ANB2N.js} +1 -1
- package/dist/cdn/2ID55IJB.js +2 -0
- package/dist/cdn/2SGR44DX.js +2 -0
- package/dist/cdn/2VXTMCRJ.js +2 -0
- package/dist/cdn/{L73FGVVE.js → 3J47AYBV.js} +117 -117
- package/dist/cdn/4B7NJE47.js +2 -0
- package/dist/cdn/5LTIZSXG.js +2 -0
- package/dist/cdn/74MDW73I.js +2 -0
- package/dist/cdn/ADPYDJG6.js +2 -0
- package/dist/cdn/{FDE2V7FU.js → AJZHT4GA.js} +1 -1
- package/dist/cdn/{5A7H4LVR.js → AY6K2SJI.js} +1 -1
- package/dist/cdn/{5NPISZEN.js → C6KN2U7N.js} +1 -1
- package/dist/cdn/{OGPKAPZK.js → C7ASL3A4.js} +1 -1
- package/dist/cdn/{NSJAGP7T.js → DI7PQSFH.js} +2 -2
- package/dist/cdn/FVXS4LF5.js +2 -0
- package/dist/cdn/{UJLDLGTN.js → IEKNRCBC.js} +1 -1
- package/dist/cdn/IRRMUFW7.js +2 -0
- package/dist/cdn/ITLTQWCX.js +2 -0
- package/dist/cdn/IYUTLV2O.js +2 -0
- package/dist/cdn/{3XGF3ZJO.js → KW6YOUWC.js} +1 -1
- package/dist/cdn/KYFNXHOH.js +2 -0
- package/dist/cdn/{WEAC3FS7.js → NBPM6OJQ.js} +1 -1
- package/dist/cdn/{S5VV7I2H.js → R3MCMOLS.js} +1 -1
- package/dist/cdn/R4VHCXKS.js +2 -0
- package/dist/cdn/RG2D7ZRS.js +3 -0
- package/dist/cdn/{XBDEGJHE.js → SJCXI4TB.js} +1 -1
- package/dist/cdn/{LCERYSRG.js → U77O2MIG.js} +1 -1
- package/dist/cdn/UHPN75WT.js +2 -0
- package/dist/cdn/VESARS2D.js +7 -0
- package/dist/cdn/{JBFDURMG.js → WVRKV5SS.js} +1 -1
- package/dist/cdn/{N3F6RUT6.js → X23TE3BV.js} +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solutions-deployed-list/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/solutions-deployed-list/t9n/messages.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/converter.js +620 -0
- package/dist/chunks/get.js +387 -0
- package/dist/chunks/solution-deploy-dialog.js +91 -76
- package/dist/components/arcgis-solutions-assistant/customElement.js +8403 -8881
- package/dist/components/consent-manager/customElement.js +609 -638
- package/dist/components/solution-builder-assistant/customElement.js +115 -76
- package/dist/components/solution-builder-assistant/index.js +2 -0
- package/dist/components/solution-configure-titles/customElement.js +76 -59
- package/dist/components/solution-delete-dialog/customElement.js +57 -54
- package/dist/components/solution-deploy-dialog/customElement.d.ts +3 -1
- package/dist/components/solution-deploy-dialog/customElement.js +3 -2
- package/dist/components/solution-deployed-card-panel/customElement.js +40 -37
- package/dist/components/solution-details-card/customElement.d.ts +4 -0
- package/dist/components/solution-details-card/customElement.js +45 -29
- package/dist/components/solution-details-card/index.js +1 -0
- package/dist/components/solution-item-accordion/customElement.d.ts +5 -4
- package/dist/components/solution-item-accordion/customElement.js +55 -35
- package/dist/components/solution-item-accordion/index.js +2 -0
- package/dist/components/solutions-all-panel/customElement.js +11 -11
- package/dist/components/solutions-deployed-list/customElement.d.ts +33 -0
- package/dist/components/solutions-deployed-list/customElement.js +38 -0
- package/dist/components/solutions-deployed-list/index.d.ts +1 -0
- package/dist/components/solutions-deployed-list/index.js +1 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/loader.js +4 -3
- package/dist/solutions-components_commit.txt +7 -7
- package/dist/types/lumina.d.ts +7 -1
- package/dist/types/preact.d.ts +8 -1
- package/dist/types/react.d.ts +9 -1
- package/dist/types/stencil.d.ts +7 -1
- package/dist/utils/getRelatedInfos.d.ts +4 -0
- package/dist/utils/interfaces.d.ts +3 -1
- package/package.json +1 -1
- package/dist/cdn/4OJ3LBF6.js +0 -2
- package/dist/cdn/5XOS5PST.js +0 -2
- package/dist/cdn/BPELKV5K.js +0 -2
- package/dist/cdn/BRQJSGIX.js +0 -2
- package/dist/cdn/DLH53PYM.js +0 -7
- package/dist/cdn/DX56I3QB.js +0 -3
- package/dist/cdn/J5XFS6HE.js +0 -2
- package/dist/cdn/PJ43TSSJ.js +0 -2
- package/dist/cdn/R2G4DDRZ.js +0 -2
- package/dist/cdn/RTFBOXOK.js +0 -2
- package/dist/cdn/SN4D24TK.js +0 -2
- package/dist/cdn/SO3S3WP4.js +0 -2
- package/dist/cdn/WF32M7B5.js +0 -2
- package/dist/cdn/ZONXYZVU.js +0 -2
- package/dist/chunks/get-portal-url.js +0 -345
|
@@ -0,0 +1,620 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
function c() {
|
|
3
|
+
return {
|
|
4
|
+
renderer: {
|
|
5
|
+
type: "simple",
|
|
6
|
+
symbol: {
|
|
7
|
+
type: "CIMSymbolReference",
|
|
8
|
+
symbol: {
|
|
9
|
+
type: "CIMPointSymbol",
|
|
10
|
+
symbolLayers: [
|
|
11
|
+
{
|
|
12
|
+
type: "CIMVectorMarker",
|
|
13
|
+
enable: !0,
|
|
14
|
+
colorLocked: !0,
|
|
15
|
+
anchorPoint: { x: 0, y: -12.600000000000001 },
|
|
16
|
+
anchorPointUnits: "Absolute",
|
|
17
|
+
dominantSizeAxis3D: "Y",
|
|
18
|
+
size: 7.2,
|
|
19
|
+
billboardMode3D: "FaceNearPlane",
|
|
20
|
+
frame: { xmin: 0, ymin: 0, xmax: 84.3, ymax: 84.3 },
|
|
21
|
+
markerGraphics: [
|
|
22
|
+
{
|
|
23
|
+
type: "CIMMarkerGraphic",
|
|
24
|
+
geometry: {
|
|
25
|
+
rings: [
|
|
26
|
+
[
|
|
27
|
+
[83.2, 32.5],
|
|
28
|
+
[84.3, 40.7],
|
|
29
|
+
[83.8, 48.9],
|
|
30
|
+
[81.7, 56.9],
|
|
31
|
+
[78.1, 64.3],
|
|
32
|
+
[73, 70.9],
|
|
33
|
+
[66.9, 76.4],
|
|
34
|
+
[59.7, 80.5],
|
|
35
|
+
[51.9, 83.2],
|
|
36
|
+
[43.7, 84.3],
|
|
37
|
+
[35.4, 83.8],
|
|
38
|
+
[27.4, 81.7],
|
|
39
|
+
[20, 78],
|
|
40
|
+
[13.4, 73],
|
|
41
|
+
[7.9, 66.8],
|
|
42
|
+
[3.8, 59.7],
|
|
43
|
+
[1.1, 51.9],
|
|
44
|
+
[0, 43.7],
|
|
45
|
+
[0.5, 35.4],
|
|
46
|
+
[2.6, 27.4],
|
|
47
|
+
[6.3, 20],
|
|
48
|
+
[11.3, 13.4],
|
|
49
|
+
[17.5, 7.9],
|
|
50
|
+
[24.7, 3.8],
|
|
51
|
+
[32.5, 1.1],
|
|
52
|
+
[39.8, 0.1],
|
|
53
|
+
[47.1, 0.3],
|
|
54
|
+
[54.3, 1.8],
|
|
55
|
+
[61.1, 4.5],
|
|
56
|
+
[67.4, 8.4],
|
|
57
|
+
[72.9, 13.3],
|
|
58
|
+
[77.4, 19.1],
|
|
59
|
+
[80.9, 25.5],
|
|
60
|
+
[83.2, 32.5]
|
|
61
|
+
]
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
symbol: {
|
|
65
|
+
type: "CIMPolygonSymbol",
|
|
66
|
+
symbolLayers: [
|
|
67
|
+
{
|
|
68
|
+
type: "CIMSolidFill",
|
|
69
|
+
enable: !0,
|
|
70
|
+
color: [242, 242, 242, 255]
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
scaleSymbolsProportionally: !0,
|
|
77
|
+
respectFrame: !0,
|
|
78
|
+
clippingPath: {
|
|
79
|
+
type: "CIMClippingPath",
|
|
80
|
+
clippingType: "Intersect",
|
|
81
|
+
path: {
|
|
82
|
+
rings: [
|
|
83
|
+
[
|
|
84
|
+
[0, 0],
|
|
85
|
+
[84.3, 0],
|
|
86
|
+
[84.3, 84.3],
|
|
87
|
+
[0, 84.3],
|
|
88
|
+
[0, 0]
|
|
89
|
+
]
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
rotation: 360
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
type: "CIMVectorMarker",
|
|
97
|
+
enable: !0,
|
|
98
|
+
anchorPoint: { x: 0, y: -9 },
|
|
99
|
+
anchorPointUnits: "Absolute",
|
|
100
|
+
dominantSizeAxis3D: "Y",
|
|
101
|
+
size: 18,
|
|
102
|
+
billboardMode3D: "FaceNearPlane",
|
|
103
|
+
frame: {
|
|
104
|
+
xmin: 0,
|
|
105
|
+
ymin: 0,
|
|
106
|
+
xmax: 197.7,
|
|
107
|
+
ymax: 294.7
|
|
108
|
+
},
|
|
109
|
+
markerGraphics: [
|
|
110
|
+
{
|
|
111
|
+
type: "CIMMarkerGraphic",
|
|
112
|
+
geometry: {
|
|
113
|
+
rings: [
|
|
114
|
+
[
|
|
115
|
+
[98.9, 0],
|
|
116
|
+
[119.4, 23.2],
|
|
117
|
+
[139.4, 49.3],
|
|
118
|
+
[156.8, 75.2],
|
|
119
|
+
[171.2, 100.8],
|
|
120
|
+
[182.4, 125.3],
|
|
121
|
+
[190.6, 148.8],
|
|
122
|
+
[195.7, 171.4],
|
|
123
|
+
[197.7, 192.9],
|
|
124
|
+
[197.7, 195.8],
|
|
125
|
+
[197.7, 200.3],
|
|
126
|
+
[197.6, 202.5],
|
|
127
|
+
[197.5, 204.8],
|
|
128
|
+
[197.3, 207.1],
|
|
129
|
+
[197, 209.4],
|
|
130
|
+
[196.7, 211.7],
|
|
131
|
+
[196.4, 214.1],
|
|
132
|
+
[196, 216.4],
|
|
133
|
+
[195.5, 218.7],
|
|
134
|
+
[195, 221.1],
|
|
135
|
+
[194.4, 223.4],
|
|
136
|
+
[193.7, 225.8],
|
|
137
|
+
[193, 228.1],
|
|
138
|
+
[192.2, 230.5],
|
|
139
|
+
[191.4, 232.8],
|
|
140
|
+
[190.5, 235.1],
|
|
141
|
+
[189.5, 237.5],
|
|
142
|
+
[188.5, 239.7],
|
|
143
|
+
[187.4, 242],
|
|
144
|
+
[186.2, 244.3],
|
|
145
|
+
[185, 246.5],
|
|
146
|
+
[183.7, 248.7],
|
|
147
|
+
[182.4, 250.9],
|
|
148
|
+
[181, 253.1],
|
|
149
|
+
[179.5, 255.2],
|
|
150
|
+
[178, 257.3],
|
|
151
|
+
[176.4, 259.4],
|
|
152
|
+
[174.7, 261.4],
|
|
153
|
+
[173.1, 263.3],
|
|
154
|
+
[171.3, 265.3],
|
|
155
|
+
[169.5, 267.2],
|
|
156
|
+
[167.7, 269],
|
|
157
|
+
[165.8, 270.8],
|
|
158
|
+
[163.9, 272.5],
|
|
159
|
+
[161.9, 274.2],
|
|
160
|
+
[159.9, 275.8],
|
|
161
|
+
[157.8, 277.4],
|
|
162
|
+
[155.7, 278.9],
|
|
163
|
+
[153.6, 280.4],
|
|
164
|
+
[151.4, 281.7],
|
|
165
|
+
[149.2, 283.1],
|
|
166
|
+
[147, 284.4],
|
|
167
|
+
[144.8, 285.6],
|
|
168
|
+
[142.5, 286.7],
|
|
169
|
+
[140.3, 287.8],
|
|
170
|
+
[138, 288.8],
|
|
171
|
+
[135.7, 289.8],
|
|
172
|
+
[133.4, 290.7],
|
|
173
|
+
[131, 291.5],
|
|
174
|
+
[128.7, 292.3],
|
|
175
|
+
[126.4, 293],
|
|
176
|
+
[124, 293.6],
|
|
177
|
+
[121.7, 294.2],
|
|
178
|
+
[119.4, 294.7],
|
|
179
|
+
[117, 295.2],
|
|
180
|
+
[114.7, 295.6],
|
|
181
|
+
[112.4, 296],
|
|
182
|
+
[110.1, 296.3],
|
|
183
|
+
[107.8, 296.5],
|
|
184
|
+
[105.5, 296.7],
|
|
185
|
+
[103.3, 296.8],
|
|
186
|
+
[101.1, 296.9],
|
|
187
|
+
[98.8, 296.9],
|
|
188
|
+
[83.1, 295.7],
|
|
189
|
+
[67.8, 292],
|
|
190
|
+
[53.3, 285.9],
|
|
191
|
+
[39.9, 277.5],
|
|
192
|
+
[28.1, 267.2],
|
|
193
|
+
[18, 255.1],
|
|
194
|
+
[10, 241.5],
|
|
195
|
+
[4.2, 226.9],
|
|
196
|
+
[0.9, 211.5],
|
|
197
|
+
[0, 195.8],
|
|
198
|
+
[0.1, 192.9],
|
|
199
|
+
[2.1, 171.4],
|
|
200
|
+
[7.2, 148.8],
|
|
201
|
+
[15.4, 125.3],
|
|
202
|
+
[26.6, 100.8],
|
|
203
|
+
[41, 75.2],
|
|
204
|
+
[58.4, 49.3],
|
|
205
|
+
[78.4, 23.2],
|
|
206
|
+
[98.9, 0]
|
|
207
|
+
]
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
symbol: {
|
|
211
|
+
type: "CIMPolygonSymbol",
|
|
212
|
+
symbolLayers: [
|
|
213
|
+
{
|
|
214
|
+
type: "CIMSolidFill",
|
|
215
|
+
enable: !0,
|
|
216
|
+
color: [39, 17, 17, 255]
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
scaleSymbolsProportionally: !0,
|
|
223
|
+
respectFrame: !0,
|
|
224
|
+
clippingPath: {
|
|
225
|
+
type: "CIMClippingPath",
|
|
226
|
+
clippingType: "Intersect",
|
|
227
|
+
path: {
|
|
228
|
+
rings: [
|
|
229
|
+
[
|
|
230
|
+
[0, 0],
|
|
231
|
+
[197.7, 0],
|
|
232
|
+
[197.7, 294.7],
|
|
233
|
+
[0, 294.7],
|
|
234
|
+
[0, 0]
|
|
235
|
+
]
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
rotation: 360
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
haloSize: 1,
|
|
243
|
+
scaleX: 1,
|
|
244
|
+
angleAlignment: "Display",
|
|
245
|
+
angle: 360
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
function _() {
|
|
252
|
+
return {
|
|
253
|
+
renderer: {
|
|
254
|
+
type: "simple",
|
|
255
|
+
symbol: {
|
|
256
|
+
type: "esriSMS",
|
|
257
|
+
style: "esriSMSCircle",
|
|
258
|
+
color: [0, 0, 0, 255],
|
|
259
|
+
size: 10,
|
|
260
|
+
angle: 0,
|
|
261
|
+
xoffset: 0,
|
|
262
|
+
yoffset: 0,
|
|
263
|
+
outline: { color: [0, 0, 0, 255], width: 0 }
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
class a {
|
|
269
|
+
constructor(e) {
|
|
270
|
+
this.llm_fs_lookup = {}, this.structure = e, this._s = this.structure?.buildSolution;
|
|
271
|
+
}
|
|
272
|
+
static {
|
|
273
|
+
this.TYPE_LOOKUP = {
|
|
274
|
+
point: "esriGeometryPoint",
|
|
275
|
+
polyline: "esriGeometryPolyline",
|
|
276
|
+
polygon: "esriGeometryPolygon"
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
static {
|
|
280
|
+
this.DRAWING_TOOL_LOOKUP = {
|
|
281
|
+
esriGeometryPoint: "esriFeatureEditToolPoint",
|
|
282
|
+
esriGeometryPolyline: "esriFeatureEditToolLine",
|
|
283
|
+
esriGeometryPolygon: "esriFeatureEditToolPolygon",
|
|
284
|
+
Table: "esriFeatureEditToolNone"
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
static {
|
|
288
|
+
this.FIELD_TYPE_TO_ESRI = {
|
|
289
|
+
string: "esriFieldTypeString",
|
|
290
|
+
integer: "esriFieldTypeInteger",
|
|
291
|
+
double: "esriFieldTypeDouble",
|
|
292
|
+
date: "esriFieldTypeDate",
|
|
293
|
+
guid: "esriFieldTypeGUID",
|
|
294
|
+
globalid: "esriFieldTypeGlobalID",
|
|
295
|
+
oid: "esriFieldTypeOID"
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
static {
|
|
299
|
+
this.FIELD_TYPE_TO_SIMPLE = Object.fromEntries(
|
|
300
|
+
Object.entries(a.FIELD_TYPE_TO_ESRI).map(([e, t]) => [t, e])
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
dump_to_llm_template() {
|
|
304
|
+
const e = this.structure?.buildSolution?.solution, t = Object.entries(e?.strings || {}).map(([s, r]) => ({
|
|
305
|
+
key: s,
|
|
306
|
+
value: r.value,
|
|
307
|
+
description: r.description
|
|
308
|
+
})), i = {
|
|
309
|
+
title: e?.title,
|
|
310
|
+
description: e?.description,
|
|
311
|
+
tags: e?.tags,
|
|
312
|
+
strings: t
|
|
313
|
+
}, l = this.structure?.buildSolution?.items, o = Object.entries(l || {}).map(([s, r]) => ({
|
|
314
|
+
id: s,
|
|
315
|
+
title: r.title,
|
|
316
|
+
description: r.description,
|
|
317
|
+
type: r.type
|
|
318
|
+
}));
|
|
319
|
+
let n = null;
|
|
320
|
+
for (const [s, r] of Object.entries(l || {})) {
|
|
321
|
+
if (r.type !== "Feature Layer (hosted)")
|
|
322
|
+
continue;
|
|
323
|
+
const p = [];
|
|
324
|
+
for (const d of r.service?.layers || []) {
|
|
325
|
+
const u = this._get_fields(d);
|
|
326
|
+
p.push({
|
|
327
|
+
id: d.id,
|
|
328
|
+
type: "",
|
|
329
|
+
name: d.name,
|
|
330
|
+
customFields: [],
|
|
331
|
+
requiredFields: u,
|
|
332
|
+
systemFields: []
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
for (const d of r.service?.tables || []) {
|
|
336
|
+
const u = this._get_fields(d);
|
|
337
|
+
p.push({
|
|
338
|
+
id: d.id,
|
|
339
|
+
type: "Table",
|
|
340
|
+
name: d.name,
|
|
341
|
+
customFields: [],
|
|
342
|
+
requiredFields: u,
|
|
343
|
+
systemFields: []
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
n = {
|
|
347
|
+
itemId: s,
|
|
348
|
+
addLayers: r.addLayers,
|
|
349
|
+
layers: p
|
|
350
|
+
};
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
return {
|
|
354
|
+
solution: i,
|
|
355
|
+
items: o,
|
|
356
|
+
featureLayer: n ?? {
|
|
357
|
+
itemId: "",
|
|
358
|
+
addLayers: !1,
|
|
359
|
+
layers: []
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
_get_fields(e) {
|
|
364
|
+
const t = [];
|
|
365
|
+
for (const i of e.fields || [])
|
|
366
|
+
t.push({
|
|
367
|
+
name: i.name,
|
|
368
|
+
type: a.FIELD_TYPE_TO_SIMPLE[i.type] || i.type,
|
|
369
|
+
alias: i.alias,
|
|
370
|
+
description: a._get_field_description(i.description),
|
|
371
|
+
choiceList: a._get_field_domain(i.domain),
|
|
372
|
+
length: i.length
|
|
373
|
+
});
|
|
374
|
+
return t;
|
|
375
|
+
}
|
|
376
|
+
static _get_field_description(e) {
|
|
377
|
+
if (e)
|
|
378
|
+
try {
|
|
379
|
+
return JSON.parse(e).value || e;
|
|
380
|
+
} catch {
|
|
381
|
+
return e;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
static _get_field_domain(e) {
|
|
385
|
+
if (e)
|
|
386
|
+
return e.codedValues?.map((t) => t.code);
|
|
387
|
+
}
|
|
388
|
+
apply_llm_template(e) {
|
|
389
|
+
const t = this._s.solution;
|
|
390
|
+
if (this.llm_fs_lookup = {}, e.featureLayer?.itemId) {
|
|
391
|
+
this.llm_fs_lookup[e.featureLayer.itemId] = {};
|
|
392
|
+
for (const s of e.featureLayer.layers)
|
|
393
|
+
this.llm_fs_lookup[e.featureLayer.itemId][s.id] = s;
|
|
394
|
+
}
|
|
395
|
+
for (const [s, r] of Object.entries(this._s.items))
|
|
396
|
+
r.type === "Feature Layer (hosted, view)" && (this.llm_fs_lookup[s] = { ...this.llm_fs_lookup[r.source] });
|
|
397
|
+
t.title = e.solution.title, t.description = e.solution.description, t.tags = e.solution.tags;
|
|
398
|
+
const i = t.strings;
|
|
399
|
+
for (const s of e.solution.strings)
|
|
400
|
+
i[s.key] && (i[s.key].value = s.value);
|
|
401
|
+
const l = {}, o = /* @__PURE__ */ new Set(), n = this._s.items;
|
|
402
|
+
for (const s of e.items) {
|
|
403
|
+
const r = n[s.id];
|
|
404
|
+
if (r)
|
|
405
|
+
if (r.title = s.title, r.description = s.description, r.type === "Web Map")
|
|
406
|
+
this._apply_web_map(r);
|
|
407
|
+
else if (r.type === "Feature Layer (hosted)") {
|
|
408
|
+
this._apply_feature_service(r, s.id, !1);
|
|
409
|
+
const p = new y(r).generate_data();
|
|
410
|
+
r.data = p, l[s.id] = p;
|
|
411
|
+
} else r.type === "Feature Layer (hosted, view)" && (this._apply_feature_service(r, s.id, !0), o.add(s.id));
|
|
412
|
+
}
|
|
413
|
+
for (const s of o) {
|
|
414
|
+
const r = n[s];
|
|
415
|
+
r.data = l[r.source];
|
|
416
|
+
}
|
|
417
|
+
return this.structure;
|
|
418
|
+
}
|
|
419
|
+
_apply_web_map(e) {
|
|
420
|
+
if (e.layerSources)
|
|
421
|
+
for (const t of [...e.layers || [], ...e.tables || []]) {
|
|
422
|
+
const [i, l] = this._extract_id_and_layid(t.url), o = this.llm_fs_lookup[i]?.[l];
|
|
423
|
+
o && (t.title = o.name);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
_extract_id_and_layid(e) {
|
|
427
|
+
const t = e.replace(/[{}]/g, "").split("."), i = t[0], l = parseInt(t[1].replace("layer", ""));
|
|
428
|
+
return [i, l];
|
|
429
|
+
}
|
|
430
|
+
_apply_feature_service(e, t, i = !1) {
|
|
431
|
+
const l = e.source || t, o = this.llm_fs_lookup[l];
|
|
432
|
+
for (const n of [...e.service.layers, ...e.service.tables])
|
|
433
|
+
this._apply_layer(n, o, i);
|
|
434
|
+
}
|
|
435
|
+
_apply_layer(e, t, i = !1) {
|
|
436
|
+
const l = t[e.id];
|
|
437
|
+
if (!l || (e.name = l.name, i)) return;
|
|
438
|
+
const o = a.TYPE_LOOKUP[l.type.toLowerCase()] || l.type;
|
|
439
|
+
o.toLowerCase() === "table" ? e.type = o : e.geometryType = o, e.editFieldsInfo = this._edit_fields_info(), e.globalIdField = "globalid", e.objectIdField = "objectid", e.uniqueIdField = { name: "objectid", isSystemMaintained: !0 }, e.hasAttachments = !0, this._update_relationships(e, t), this._update_fields(e, l), this._update_templates(e), this._update_drawing_info(e);
|
|
440
|
+
}
|
|
441
|
+
_update_relationships(e, t) {
|
|
442
|
+
const i = e.relationships || [];
|
|
443
|
+
for (const l of i) {
|
|
444
|
+
const o = t[l.relatedTableId];
|
|
445
|
+
o && (l.name = o.name);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
_update_fields(e, t) {
|
|
449
|
+
const i = [], l = [
|
|
450
|
+
[!1, t.customFields],
|
|
451
|
+
[!0, t.requiredFields],
|
|
452
|
+
[!0, t.systemFields]
|
|
453
|
+
];
|
|
454
|
+
for (const [o, n] of l)
|
|
455
|
+
if (Array.isArray(n))
|
|
456
|
+
for (const s of n) {
|
|
457
|
+
const r = {
|
|
458
|
+
name: s.name,
|
|
459
|
+
alias: s.alias,
|
|
460
|
+
type: a.FIELD_TYPE_TO_ESRI[s.type] || s.type,
|
|
461
|
+
description: JSON.stringify({ value: s.description, fieldValueType: "" }, null, 0),
|
|
462
|
+
domain: this._create_domain(s.choiceList, s.name),
|
|
463
|
+
required: o
|
|
464
|
+
};
|
|
465
|
+
s.type?.toLowerCase() === "string" && (r.length = s.length ?? 256), (s.type === "oid" || s.type === "globalid") && (r.editable = !1, r.nullable = !1), i.push(r);
|
|
466
|
+
}
|
|
467
|
+
e.fields = i;
|
|
468
|
+
}
|
|
469
|
+
_update_templates(e) {
|
|
470
|
+
const t = a.DRAWING_TOOL_LOOKUP[e.geometryType || e.type];
|
|
471
|
+
e.templates = [{
|
|
472
|
+
name: e.name,
|
|
473
|
+
description: "",
|
|
474
|
+
drawingTool: t,
|
|
475
|
+
prototype: { attributes: {} }
|
|
476
|
+
}];
|
|
477
|
+
}
|
|
478
|
+
_update_drawing_info(e) {
|
|
479
|
+
if (e.drawingTool === "esriGeometryPoint")
|
|
480
|
+
e.drawingInfo = _();
|
|
481
|
+
else
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
484
|
+
_create_domain(e, t) {
|
|
485
|
+
return e ? {
|
|
486
|
+
type: "codedValue",
|
|
487
|
+
name: `${t}_${crypto.randomUUID().replace(/-/g, "")}`,
|
|
488
|
+
codedValues: e.map((i) => ({ name: i, code: i }))
|
|
489
|
+
} : null;
|
|
490
|
+
}
|
|
491
|
+
_edit_fields_info() {
|
|
492
|
+
return {
|
|
493
|
+
creationDateField: "created_date",
|
|
494
|
+
creatorField: "created_user",
|
|
495
|
+
editDateField: "last_edited_date",
|
|
496
|
+
editorField: "last_edited_user"
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
class y {
|
|
501
|
+
constructor(e) {
|
|
502
|
+
this.item_def = e, this.source_service_props = this.item_def.service;
|
|
503
|
+
}
|
|
504
|
+
generate_data() {
|
|
505
|
+
const e = {
|
|
506
|
+
layers: [],
|
|
507
|
+
tables: []
|
|
508
|
+
};
|
|
509
|
+
for (const t of this.source_service_props.layers || []) {
|
|
510
|
+
const i = { id: t.id };
|
|
511
|
+
i.formInfo = this._generate_form_info(t), i.popupInfo = this._generate_popup_info(t), i.layerDefinition = this._generate_drawing_info(t), e.layers.push(i);
|
|
512
|
+
}
|
|
513
|
+
for (const t of this.source_service_props.tables || []) {
|
|
514
|
+
const i = { id: t.id };
|
|
515
|
+
i.formInfo = this._generate_form_info(t), i.popupInfo = this._generate_popup_info(t), e.tables.push(i);
|
|
516
|
+
}
|
|
517
|
+
return e;
|
|
518
|
+
}
|
|
519
|
+
_generate_form_info(e) {
|
|
520
|
+
const t = [];
|
|
521
|
+
for (const o of e.fields) {
|
|
522
|
+
if (o.required) continue;
|
|
523
|
+
const n = {
|
|
524
|
+
label: o.alias,
|
|
525
|
+
type: "field",
|
|
526
|
+
editableExpression: "expr/system/true",
|
|
527
|
+
fieldName: o.name,
|
|
528
|
+
inputType: this._get_input_type(o.type, o.domain, o.length)
|
|
529
|
+
};
|
|
530
|
+
t.push(n);
|
|
531
|
+
}
|
|
532
|
+
const i = e.relationships || [];
|
|
533
|
+
for (const o of i)
|
|
534
|
+
t.push({
|
|
535
|
+
description: "",
|
|
536
|
+
label: o.name,
|
|
537
|
+
type: "relationship",
|
|
538
|
+
displayCount: 3,
|
|
539
|
+
displayType: "list",
|
|
540
|
+
editableExpression: "expr/system/true",
|
|
541
|
+
orderByFields: [{ field: "created_date", order: "asc" }],
|
|
542
|
+
relationshipId: o.id
|
|
543
|
+
});
|
|
544
|
+
return {
|
|
545
|
+
formElements: t,
|
|
546
|
+
expressionInfos: [
|
|
547
|
+
{
|
|
548
|
+
expression: "false",
|
|
549
|
+
name: "expr/system/false",
|
|
550
|
+
returnType: "boolean",
|
|
551
|
+
title: "False"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
expression: "true",
|
|
555
|
+
name: "expr/system/true",
|
|
556
|
+
returnType: "boolean",
|
|
557
|
+
title: "True"
|
|
558
|
+
}
|
|
559
|
+
],
|
|
560
|
+
title: e.name
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
_generate_popup_info(e) {
|
|
564
|
+
const t = [], i = [];
|
|
565
|
+
for (const o of e.fields)
|
|
566
|
+
o.required || i.push({
|
|
567
|
+
fieldName: o.name,
|
|
568
|
+
isEditable: !0,
|
|
569
|
+
label: o.alias,
|
|
570
|
+
visible: !0
|
|
571
|
+
});
|
|
572
|
+
t.push({
|
|
573
|
+
type: "fields",
|
|
574
|
+
description: "",
|
|
575
|
+
fieldInfos: i
|
|
576
|
+
});
|
|
577
|
+
const l = e.relationships || [];
|
|
578
|
+
if (l.length && e.type !== "Table")
|
|
579
|
+
for (const o of l)
|
|
580
|
+
t.push({
|
|
581
|
+
type: "relationship",
|
|
582
|
+
description: "",
|
|
583
|
+
displayCount: 3,
|
|
584
|
+
displayType: "list",
|
|
585
|
+
orderByFields: [{ field: "created_date", order: "asc" }],
|
|
586
|
+
relationshipId: o.id
|
|
587
|
+
});
|
|
588
|
+
return t.push({
|
|
589
|
+
type: "attachments",
|
|
590
|
+
description: "",
|
|
591
|
+
displayType: "auto",
|
|
592
|
+
title: ""
|
|
593
|
+
}), {
|
|
594
|
+
popupElements: t,
|
|
595
|
+
showLastEditInfo: !1,
|
|
596
|
+
title: ""
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
_generate_drawing_info(e) {
|
|
600
|
+
return e.geometryType === "esriGeometryPoint" ? { drawingInfo: c() } : { drawingInfo: {} };
|
|
601
|
+
}
|
|
602
|
+
_get_input_type(e, t, i) {
|
|
603
|
+
return e === "esriFieldTypeString" && !t ? {
|
|
604
|
+
type: "text-box",
|
|
605
|
+
maxLength: i || 255,
|
|
606
|
+
minLength: 0
|
|
607
|
+
} : e === "esriFieldTypeString" && t ? {
|
|
608
|
+
type: "combo-box",
|
|
609
|
+
noValueOptionLabel: "No value",
|
|
610
|
+
showNoValueOption: !0
|
|
611
|
+
} : ["esriFieldTypeInteger", "esriFieldTypeDouble"].includes(e) ? { type: "text-box", minLength: 0 } : e === "esriFieldTypeDate" ? { type: "datetime-picker", includeTime: !1 } : {
|
|
612
|
+
type: "text-box",
|
|
613
|
+
maxLength: i || 255,
|
|
614
|
+
minLength: 0
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
export {
|
|
619
|
+
a as C
|
|
620
|
+
};
|