@arcgis/coding-components 5.2.0-next.5 → 5.2.0-next.7
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/{4G3EYLJY.js → 2YYB74Y3.js} +1 -1
- package/dist/cdn/{WWVPYM5B.js → 4HJRS4I7.js} +1 -1
- package/dist/cdn/DOCWTXKZ.js +12 -0
- package/dist/cdn/HBKQDGYR.js +2 -0
- package/dist/cdn/{QW7OA32G.js → HDEGIRFB.js} +1 -1
- package/dist/cdn/{HRM2JUGO.js → HQPGLNWP.js} +1 -1
- package/dist/cdn/I3XXIRZX.js +2 -0
- package/dist/cdn/ID5LCA7T.js +2 -0
- package/dist/cdn/{LUJKYDO7.js → IL7DUQH7.js} +1 -1
- package/dist/cdn/JEBRK3DP.js +2 -0
- package/dist/cdn/MZMKV7FA.js +2 -0
- package/dist/cdn/{IETP57KJ.js → NKDL6NEF.js} +1 -1
- package/dist/cdn/NL736YG3.js +6 -0
- package/dist/cdn/{3CHKFCKR.js → SFHJYB2X.js} +1 -1
- package/dist/cdn/{O3PQD5N5.js → SYW5WY2N.js} +1 -1
- package/dist/cdn/{CA3GVMWI.js → UDPKHTMC.js} +1 -1
- package/dist/cdn/UQRZDUGL.js +2 -0
- package/dist/cdn/{QGBZYXBS.js → XMXK333I.js} +1 -1
- package/dist/cdn/{QUR4WECO.js → XWUEYP6T.js} +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +2 -2
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/arcade-defaults.js +56 -54
- package/dist/chunks/fields.js +18 -14
- package/dist/chunks/language-defaults-base.js +230 -221
- package/dist/chunks/sql-expr-defaults.js +63 -59
- package/dist/components/arcgis-arcade-debugger-console/customElement.js +6 -6
- package/dist/components/arcgis-arcade-editor/customElement.js +147 -151
- package/dist/components/arcgis-code-editor-shell/customElement.js +5 -5
- package/dist/components/arcgis-editor-variables/customElement.js +12 -6
- package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +11 -0
- package/dist/components/arcgis-sql-expression-editor/customElement.js +5 -5
- 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/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +7 -7
- package/dist/cdn/4N67XYKO.js +0 -2
- package/dist/cdn/B5A6XU2C.js +0 -2
- package/dist/cdn/CQTJWVFM.js +0 -6
- package/dist/cdn/G5IXPOCO.js +0 -2
- package/dist/cdn/RMVHO2AH.js +0 -12
- package/dist/cdn/RO6RHW6I.js +0 -2
- package/dist/cdn/TWEJITWD.js +0 -2
- package/dist/cdn/ZTCCL565.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./DOCWTXKZ.js";import a from"./STN3LSQR.js";import{b as q}from"./TQDN6SR5.js";import{L as P}from"./XU7YAUUX.js";export default $arcgis.t(([B,{substitute:E},{B:F},{a:T,d:C,e:N,f:b,g:g,h:$,i:x,j:L,n:_,o:D,p:A}])=>{function w(t,e,a){return t?.[e]??a}function h(t,e,a,n){return E(w(t,e,a),n)}function K(t,e){return w(t,e?"nullable":"notnull",e?"nullable":"not nullable")}function j(t,e){return w(t,e?"yes":"no",e?"yes":"no")}function v(t){for(let e of t){if(e instanceof _)return e;if(e.isCollection&&"variables"in e){let a=v(e.variables.filter(n=>n.type!=="group"));if(a)return a}}}function V(t,e){return`${t}:${e}`}function z(t){if(t){for(let e of t)if(e.type==="dataCatalogDatastore")return e.definition}}async function U(t){let e=new B({url:t.portal.url});return await e.load(),new T({itemId:t.id,serviceUrl:t.serviceUrl,portal:e})}async function k(t){return F(t)?await U(t):t}function H(t,e,a,n){let o=`**${t}**`;return e.type&&(o+=`
|
|
3
3
|
${e.type}`),a&&(o+=`
|
|
4
4
|
${h(n,"datastoreformat","Datastore: {datastoreName}",{datastoreName:a})}`),{value:o}}function W(t,e,a){let n=`**${t.name}**`;return t.serverType&&(n+=`
|
|
5
5
|
${t.serverType}`),n+=`
|
|
@@ -10656,7 +10656,7 @@ const c8 = (t, e) => {
|
|
|
10656
10656
|
case "column-reference":
|
|
10657
10657
|
{
|
|
10658
10658
|
const r = e.find((n) => n.name === t.column);
|
|
10659
|
-
if (r)
|
|
10659
|
+
if (r && r.type !== "geometry")
|
|
10660
10660
|
return f8(r);
|
|
10661
10661
|
}
|
|
10662
10662
|
return t.type;
|
|
@@ -18278,7 +18278,7 @@ function se(t, e, r, n) {
|
|
|
18278
18278
|
const cr = { apiKey: void 0, apiKeys: { scopes: [] }, applicationName: "", applicationUrl: globalThis.location?.href, assetsPath: "", fontsUrl: "https://static.arcgis.com/fonts", geometryServiceUrl: "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer", geoRSSServiceUrl: "https://utility.arcgis.com/sharing/rss", kmlServiceUrl: "https://utility.arcgis.com/sharing/kml", userPrivilegesApplied: !0, portalUrl: "https://www.arcgis.com", respectPrefersReducedMotion: !0, routeServiceUrl: "https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World", workers: { loaderConfig: { has: {}, paths: {}, map: {}, packages: [] } }, request: { crossOriginNoCorsDomains: null, httpsDomains: ["arcgis.com", "arcgisonline.com", "esrikr.com", "premiumservices.blackbridge.com", "esripremium.accuweather.com", "gbm.digitalglobe.com", "firstlook.digitalglobe.com", "msi.digitalglobe.com"], interceptors: [], internalInterceptors: [], maxUrlLength: 2e3, priority: "high", proxyRules: [], proxyUrl: null, timeout: 62e3, trustedServers: [], useIdentity: !0 }, log: { interceptors: [], level: null } };
|
|
18279
18279
|
if (globalThis.esriConfig && (Q4(cr, globalThis.esriConfig, !0), delete cr.has), !cr.assetsPath) {
|
|
18280
18280
|
{
|
|
18281
|
-
const t = "5.
|
|
18281
|
+
const t = "5.2.0-next.7";
|
|
18282
18282
|
cr.assetsPath = `https://cdn.jsdelivr.net/npm/@arcgis/core@${t}/assets`;
|
|
18283
18283
|
}
|
|
18284
18284
|
cr.defaultAssetsPath = cr.assetsPath;
|
package/dist/cdn/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{J as s,v as e}from"./XU7YAUUX.js";import"./VGOFAQ7A.js";import"./H6RQVSYM.js";var
|
|
2
|
+
import{J as s,v as e}from"./XU7YAUUX.js";import"./VGOFAQ7A.js";import"./H6RQVSYM.js";var i=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./XMXK333I.js"),"appVersion,closed,closePanel:,diagnostics:,disableQuestionAnswerLogging,editorRef:,feedbackServiceUrl,helpBase,insertText:,portalUrl,promptingEnabled,serviceUrl;destroy,openPrompt"],"arcgis-arcade-debugger-console":[()=>import("./IL7DUQH7.js"),"debuggerStore:,modelId"],"arcgis-arcade-debugger-output":[()=>import("./P3LG4UGD.js"),"debuggerStore:,result:"],"arcgis-arcade-editor":[()=>import("./JEBRK3DP.js"),"arcadeAssistant:,customPanels:,disableAssistant,editorInstance:,editorOptions:,enableDebugger,externalExecutor:,hideDocumentationActions,hideSideBar,messageOverrides:,messages:,openedSidePanel,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getTestResult,openArcadeAssistant,setFocus"],"arcgis-arcade-results":[()=>import("./2YYB74Y3.js"),"consoleLogs:,hideHeader,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./2DNHMHBF.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./HDEGIRFB.js"),"editorInstance:,editorOptions:,language,modelId,value;insertSnippet,insertText,setFocus"],"arcgis-code-editor-shell":[()=>import("./HBKQDGYR.js")],"arcgis-code-viewer":[()=>import("./4HJRS4I7.js"),"language,lineNumbers,round"],"arcgis-editor-variables":[()=>import("./I3XXIRZX.js"),"closed,heading,hideDescriptions,loading,messageOverrides:,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./BXEZA6TW.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./ID5LCA7T.js"),"hideDescriptionsInFieldsPanel,hideSideBar,messageOverrides:,messages:,profile:,script;setFocus"],"arcgis-sql-layer-editor":[()=>import("./SYW5WY2N.js"),"editorInstance:,editorOptions:,hideSideBar,messageOverrides:,messages:,openedSidePanel,profile:,script;setFocus"]});i({resourcesUrl:import.meta.url});var r=new CSSStyleSheet;r.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-editor-shell,arcgis-code-viewer,arcgis-sql-expression-editor,arcgis-sql-layer-editor){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,r];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,s)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { g as v, f as F, m as M, L as S, E as
|
|
3
|
-
import { i as h, a as
|
|
2
|
+
import { g as v, f as F, m as M, L as S, E as A } from "./language-defaults-base.js";
|
|
3
|
+
import { i as h, a as L, b as k, c as E, d as I, e as C, f as P } from "./utils.js";
|
|
4
4
|
import { supportedLocales as j, fetchT9nStringsBundle as $ } from "@arcgis/toolkit/intl";
|
|
5
5
|
import { g as T } from "./runtime.js";
|
|
6
|
-
import { CompletionItemKind as w, InsertTextFormat as
|
|
6
|
+
import { CompletionItemKind as w, InsertTextFormat as p, InsertTextMode as f } from "vscode-languageserver-types";
|
|
7
7
|
import { getDeclaredPixelMembers as B } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
|
|
8
8
|
import "@arcgis/toolkit/type";
|
|
9
9
|
async function K(e) {
|
|
10
|
-
const { apiVersion: i, bundles: t, hiddenApiItems:
|
|
11
|
-
return { apiVersion: i, bundles: t, variables:
|
|
10
|
+
const { apiVersion: i, bundles: t, hiddenApiItems: s } = e.toEditorProfileDefinition(), o = await b(e.dictionaryVariables.filter(P));
|
|
11
|
+
return { apiVersion: i, bundles: t, variables: o, hiddenApiItems: s?.map((a) => a.toLowerCase()) };
|
|
12
12
|
}
|
|
13
13
|
async function b(e, i = w.Variable) {
|
|
14
14
|
return await Promise.all(
|
|
@@ -32,67 +32,69 @@ async function b(e, i = w.Variable) {
|
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
function _(e, i) {
|
|
35
|
-
const { name: t, type:
|
|
35
|
+
const { name: t, type: s } = e, o = e.getDescription(), a = i === w.Field ? v(t, !1) : t;
|
|
36
36
|
return {
|
|
37
37
|
name: t,
|
|
38
|
-
description:
|
|
39
|
-
type:
|
|
38
|
+
description: o,
|
|
39
|
+
type: s,
|
|
40
40
|
completion: {
|
|
41
41
|
label: t,
|
|
42
42
|
detail: t,
|
|
43
43
|
insertText: a,
|
|
44
44
|
insertTextMode: f.asIs,
|
|
45
|
-
insertTextFormat:
|
|
45
|
+
insertTextFormat: p.PlainText,
|
|
46
46
|
kind: i,
|
|
47
|
-
documentation: { kind: "markdown", value:
|
|
47
|
+
documentation: { kind: "markdown", value: o }
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
async function q(e, i) {
|
|
52
|
-
const t = await e.loadSource(), { name:
|
|
53
|
-
label:
|
|
54
|
-
detail:
|
|
55
|
-
insertText:
|
|
52
|
+
const t = await e.loadSource(), { name: s } = e, o = e.getDescription(), a = {
|
|
53
|
+
label: s,
|
|
54
|
+
detail: s,
|
|
55
|
+
insertText: s,
|
|
56
56
|
insertTextMode: f.asIs,
|
|
57
|
-
insertTextFormat:
|
|
57
|
+
insertTextFormat: p.PlainText,
|
|
58
58
|
kind: i
|
|
59
59
|
}, n = {
|
|
60
|
-
name:
|
|
61
|
-
description:
|
|
60
|
+
name: s,
|
|
61
|
+
description: o,
|
|
62
62
|
type: "dictionary",
|
|
63
63
|
properties: [],
|
|
64
64
|
completion: a
|
|
65
65
|
};
|
|
66
66
|
if (!t)
|
|
67
67
|
return n;
|
|
68
|
-
const [r, c] = F(t.fields,
|
|
68
|
+
const [r, c] = F(t.fields, o, {
|
|
69
|
+
includeAliases: !0
|
|
70
|
+
});
|
|
69
71
|
return n.properties = r, a.documentation = { kind: "markdown", value: c }, n;
|
|
70
72
|
}
|
|
71
73
|
async function z(e, i) {
|
|
72
|
-
const t = await e.loadSource(),
|
|
73
|
-
if (
|
|
74
|
+
const t = await e.loadSource(), s = e.toProfileVariableDefinition();
|
|
75
|
+
if (s.type !== "pixel")
|
|
74
76
|
throw new Error("Incorrect definition passed to pixel variable");
|
|
75
|
-
const { name:
|
|
76
|
-
label:
|
|
77
|
-
detail:
|
|
78
|
-
insertText:
|
|
77
|
+
const { name: o } = e, a = e.getDescription(), n = {
|
|
78
|
+
label: o,
|
|
79
|
+
detail: o,
|
|
80
|
+
insertText: o,
|
|
79
81
|
insertTextMode: f.asIs,
|
|
80
|
-
insertTextFormat:
|
|
82
|
+
insertTextFormat: p.PlainText,
|
|
81
83
|
kind: i
|
|
82
84
|
}, r = {
|
|
83
|
-
name:
|
|
85
|
+
name: o,
|
|
84
86
|
description: a,
|
|
85
87
|
type: "dictionary",
|
|
86
88
|
properties: [],
|
|
87
89
|
completion: n
|
|
88
90
|
};
|
|
89
|
-
if (!t || !
|
|
91
|
+
if (!t || !s.definition)
|
|
90
92
|
return r;
|
|
91
93
|
const c = await B(t), [d, l] = M(c, a);
|
|
92
94
|
return r.properties = d, n.documentation = { kind: "markdown", value: l }, r;
|
|
93
95
|
}
|
|
94
96
|
async function O(e, i) {
|
|
95
|
-
const { name: t, dictionaryVariables:
|
|
97
|
+
const { name: t, dictionaryVariables: s } = e, o = e.getDescription(), a = s.reduce((n, r) => {
|
|
96
98
|
n !== "" && (n += `
|
|
97
99
|
|
|
98
100
|
`), n += `**${r.name}**
|
|
@@ -100,19 +102,19 @@ ${r.type}`;
|
|
|
100
102
|
const c = r.getDescription();
|
|
101
103
|
return c && (n += `
|
|
102
104
|
${c}`), n;
|
|
103
|
-
},
|
|
105
|
+
}, o);
|
|
104
106
|
return {
|
|
105
107
|
name: t,
|
|
106
|
-
description:
|
|
108
|
+
description: o,
|
|
107
109
|
type: "dictionary",
|
|
108
110
|
// TODO(editor-profile): remove filter once we have a arcade-specific editor profile type that doesn't include SQL-layer-specific variables.
|
|
109
|
-
properties: await b(
|
|
111
|
+
properties: await b(s.filter(P), w.Field),
|
|
110
112
|
completion: {
|
|
111
113
|
label: t,
|
|
112
114
|
detail: t,
|
|
113
115
|
insertText: t,
|
|
114
116
|
insertTextMode: f.asIs,
|
|
115
|
-
insertTextFormat:
|
|
117
|
+
insertTextFormat: p.PlainText,
|
|
116
118
|
kind: i,
|
|
117
119
|
documentation: { kind: "markdown", value: a }
|
|
118
120
|
}
|
|
@@ -134,8 +136,8 @@ async function y(e = "en") {
|
|
|
134
136
|
const x = /* @__PURE__ */ new Map();
|
|
135
137
|
function Q(e, i) {
|
|
136
138
|
const t = /* @__PURE__ */ new Map();
|
|
137
|
-
return i.forEach((
|
|
138
|
-
t.set(
|
|
139
|
+
return i.forEach((s) => {
|
|
140
|
+
t.set(s.id, s);
|
|
139
141
|
}), x.set(e, t), t;
|
|
140
142
|
}
|
|
141
143
|
async function U(e, i = "en") {
|
|
@@ -171,8 +173,8 @@ async function J(e, i = "en") {
|
|
|
171
173
|
const t = await U(e.id, i);
|
|
172
174
|
if (!t)
|
|
173
175
|
return;
|
|
174
|
-
const
|
|
175
|
-
Object.entries(
|
|
176
|
+
const s = e.definitions, o = new Map(
|
|
177
|
+
Object.entries(s).map(([n, r]) => [n.toLowerCase(), r])
|
|
176
178
|
), a = {
|
|
177
179
|
bundles: [...t.bundles],
|
|
178
180
|
variables: [],
|
|
@@ -181,7 +183,7 @@ async function J(e, i = "en") {
|
|
|
181
183
|
return t.variables.forEach((n) => {
|
|
182
184
|
if (e.disabledVariables?.includes(n.name))
|
|
183
185
|
return;
|
|
184
|
-
const r =
|
|
186
|
+
const r = o.get(n.name.toLowerCase());
|
|
185
187
|
switch (n.type) {
|
|
186
188
|
case "dictionary":
|
|
187
189
|
return a.variables.push(
|
|
@@ -200,7 +202,7 @@ async function J(e, i = "en") {
|
|
|
200
202
|
case "featureSet":
|
|
201
203
|
return k(r) ? a.variables.push({ ...n, type: n.type, definition: r }) : void 0;
|
|
202
204
|
case "featureSetCollection":
|
|
203
|
-
return
|
|
205
|
+
return L(r) ? a.variables.push({ ...n, type: n.type, definition: r }) : void 0;
|
|
204
206
|
default:
|
|
205
207
|
return a.variables.push(m(n));
|
|
206
208
|
}
|
|
@@ -258,40 +260,40 @@ class X extends S {
|
|
|
258
260
|
* @param locale The locale to use for the model context.
|
|
259
261
|
* @returns The EditorProfile for the model.
|
|
260
262
|
*/
|
|
261
|
-
async setProfileForModel(i, t,
|
|
262
|
-
const
|
|
263
|
-
const c = t, d = h(c) ? await J(c,
|
|
264
|
-
|
|
263
|
+
async setProfileForModel(i, t, s = { locale: "en" }) {
|
|
264
|
+
const o = this._getApiKey(i), n = (this.#e.get(o) || Promise.resolve()).then(async () => {
|
|
265
|
+
const c = t, d = h(c) ? await J(c, s.locale) : c, l = await $(
|
|
266
|
+
s.locale,
|
|
265
267
|
T("./assets/editor-profile/t9n"),
|
|
266
268
|
"messages."
|
|
267
269
|
);
|
|
268
270
|
if (!l)
|
|
269
|
-
throw new Error(`Failed to load the language bundle for ${
|
|
271
|
+
throw new Error(`Failed to load the language bundle for ${s.locale}`);
|
|
270
272
|
this.disposeForModel(i);
|
|
271
|
-
const g = new
|
|
273
|
+
const g = new A(
|
|
272
274
|
d,
|
|
273
275
|
l,
|
|
274
|
-
|
|
276
|
+
s.locale,
|
|
275
277
|
W
|
|
276
278
|
);
|
|
277
|
-
this._modelToProfileMap.set(
|
|
279
|
+
this._modelToProfileMap.set(o, g);
|
|
278
280
|
const D = await K(g);
|
|
279
281
|
this.updateApiContextForModel(i, {
|
|
280
|
-
locale:
|
|
282
|
+
locale: s.locale,
|
|
281
283
|
profile: D,
|
|
282
|
-
snippets:
|
|
284
|
+
snippets: s.snippets
|
|
283
285
|
});
|
|
284
286
|
}), r = n.finally(() => {
|
|
285
|
-
this.#e.get(
|
|
287
|
+
this.#e.get(o) === r && this.#e.delete(o);
|
|
286
288
|
});
|
|
287
|
-
return this.#e.set(
|
|
289
|
+
return this.#e.set(o, r), await n;
|
|
288
290
|
}
|
|
289
291
|
}
|
|
290
|
-
const
|
|
291
|
-
setProfileForModel:
|
|
292
|
-
getApiLibraryForModel:
|
|
292
|
+
const u = new X(), re = {
|
|
293
|
+
setProfileForModel: u.setProfileForModel.bind(u),
|
|
294
|
+
getApiLibraryForModel: u.getApiLibraryForModel.bind(u)
|
|
293
295
|
};
|
|
294
296
|
export {
|
|
295
297
|
re as a,
|
|
296
|
-
|
|
298
|
+
u as b
|
|
297
299
|
};
|
package/dist/chunks/fields.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
const
|
|
2
|
+
const a = "cube";
|
|
3
3
|
function u(e, t) {
|
|
4
4
|
switch (e.type) {
|
|
5
5
|
case "oid":
|
|
@@ -15,9 +15,9 @@ function u(e, t) {
|
|
|
15
15
|
case "guid":
|
|
16
16
|
return "key";
|
|
17
17
|
case "string":
|
|
18
|
-
if (t?.some((
|
|
19
|
-
const
|
|
20
|
-
return
|
|
18
|
+
if (t?.some((r) => r.name === e.name && r.type === "array")) {
|
|
19
|
+
const r = t?.find((c) => c.name === e.name);
|
|
20
|
+
return r && n(r) && n(r) ? s(r.elementType.type) : "double-float-set";
|
|
21
21
|
}
|
|
22
22
|
return "string";
|
|
23
23
|
case "date":
|
|
@@ -39,7 +39,7 @@ function i(e) {
|
|
|
39
39
|
case "text":
|
|
40
40
|
return "string";
|
|
41
41
|
case "array":
|
|
42
|
-
return
|
|
42
|
+
return n(e) ? s(e.elementType.type) : a;
|
|
43
43
|
case "date":
|
|
44
44
|
return "date-time";
|
|
45
45
|
case "dateOnly":
|
|
@@ -47,10 +47,10 @@ function i(e) {
|
|
|
47
47
|
case "time":
|
|
48
48
|
return "clock";
|
|
49
49
|
default:
|
|
50
|
-
return
|
|
50
|
+
return a;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
function l(e) {
|
|
53
|
+
function l(e, t = {}) {
|
|
54
54
|
switch (e.type) {
|
|
55
55
|
case "small-integer":
|
|
56
56
|
case "integer":
|
|
@@ -70,13 +70,15 @@ function l(e) {
|
|
|
70
70
|
return "dateOnly";
|
|
71
71
|
case "time-only":
|
|
72
72
|
return "time";
|
|
73
|
+
case "geometry":
|
|
74
|
+
return t.supportGeometryFields ? "geometry" : "text";
|
|
73
75
|
default:
|
|
74
76
|
return "text";
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
|
-
function o(e) {
|
|
78
|
-
return (e ?? []).filter((
|
|
79
|
-
switch (
|
|
79
|
+
function o(e, t) {
|
|
80
|
+
return (e ?? []).filter((r) => {
|
|
81
|
+
switch (r.type) {
|
|
80
82
|
case "string":
|
|
81
83
|
case "small-integer":
|
|
82
84
|
case "integer":
|
|
@@ -92,15 +94,17 @@ function o(e) {
|
|
|
92
94
|
case "guid":
|
|
93
95
|
case "global-id":
|
|
94
96
|
return !0;
|
|
97
|
+
case "geometry":
|
|
98
|
+
return t?.supportGeometry ?? !1;
|
|
95
99
|
default:
|
|
96
100
|
return !1;
|
|
97
101
|
}
|
|
98
102
|
});
|
|
99
103
|
}
|
|
100
|
-
function
|
|
104
|
+
function y(e) {
|
|
101
105
|
return e.alias || e.name;
|
|
102
106
|
}
|
|
103
|
-
function
|
|
107
|
+
function n(e) {
|
|
104
108
|
if (typeof e == "object" && e !== null && "elementType" in e) {
|
|
105
109
|
const t = e.elementType;
|
|
106
110
|
return typeof t == "object" && t !== null && "type" in t && typeof t.type == "string";
|
|
@@ -114,12 +118,12 @@ function s(e) {
|
|
|
114
118
|
case "number":
|
|
115
119
|
return "double-float-set";
|
|
116
120
|
default:
|
|
117
|
-
return
|
|
121
|
+
return a;
|
|
118
122
|
}
|
|
119
123
|
}
|
|
120
124
|
export {
|
|
121
125
|
l as a,
|
|
122
|
-
|
|
126
|
+
y as b,
|
|
123
127
|
u as f,
|
|
124
128
|
i as m,
|
|
125
129
|
o as s
|