@arcgis/coding-components 4.31.0-next.51 → 4.31.0-next.54

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.
Files changed (99) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +1 -1
  3. package/dist/arcgis-coding-components/index.esm.js +2 -2
  4. package/dist/arcgis-coding-components/{p-8b045366.js → p-0d09a590.js} +2 -2
  5. package/dist/arcgis-coding-components/{p-6787dd4c.js → p-187be214.js} +3 -3
  6. package/dist/arcgis-coding-components/{p-65b4b095.js → p-26d3fcc7.js} +1 -1
  7. package/dist/arcgis-coding-components/{p-96bba7f5.js → p-2aa428af.js} +1 -1
  8. package/dist/arcgis-coding-components/{p-1f4dd8ea.js → p-40c8e02b.js} +2 -2
  9. package/dist/arcgis-coding-components/{p-1e2c061f.js → p-5f82bda4.js} +10 -10
  10. package/dist/arcgis-coding-components/{p-9218ae01.entry.js → p-710acdb6.entry.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-01da9b87.js → p-7518bf06.js} +2 -2
  12. package/dist/arcgis-coding-components/{p-d3f04192.entry.js → p-8157c6db.entry.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-38b10ccb.js → p-83675007.js} +2 -2
  14. package/dist/arcgis-coding-components/p-9cfd8c44.js +7 -0
  15. package/dist/arcgis-coding-components/{p-0e466656.js → p-bf7e11fd.js} +2 -2
  16. package/dist/arcgis-coding-components/{p-d2287ce9.js → p-c5f85501.js} +2 -2
  17. package/dist/arcgis-coding-components/{p-3e54590d.entry.js → p-e65a39fc.entry.js} +2 -2
  18. package/dist/arcgis-coding-components/{p-e16c05ff.js → p-e99ebc55.js} +2 -2
  19. package/dist/arcgis-coding-components/{p-833ae4ee.js → p-eac1cf63.js} +2 -2
  20. package/dist/arcgis-coding-components/{p-d67469e8.js → p-ee8e91c5.js} +2 -2
  21. package/dist/arcgis-coding-components/{p-2d187b80.js → p-f048c26d.js} +2 -2
  22. package/dist/cjs/{app-globals-b5d3bda0.js → app-globals-633389bb.js} +1 -1
  23. package/dist/cjs/{arcade-defaults-a59b98c8.js → arcade-defaults-e89d821f.js} +4 -4
  24. package/dist/cjs/{arcade-mode-bbcc64c9.js → arcade-mode-51017641.js} +2 -2
  25. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +5 -5
  26. package/dist/cjs/arcgis-coding-components.cjs.js +4 -4
  27. package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
  28. package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
  29. package/dist/cjs/{css-50ab4ba4.js → css-2a866ead.js} +1 -1
  30. package/dist/cjs/{cssMode-cde87050.js → cssMode-322bf1ca.js} +2 -2
  31. package/dist/cjs/{html-88890272.js → html-bf50b9d5.js} +2 -2
  32. package/dist/cjs/{htmlMode-61827280.js → htmlMode-e064979b.js} +2 -2
  33. package/dist/cjs/{index-1662a35f.js → index-c6ca5d79.js} +165 -146
  34. package/dist/cjs/index.cjs.js +4 -4
  35. package/dist/cjs/{javascript-2c62b4fe.js → javascript-59b31aab.js} +3 -3
  36. package/dist/cjs/{jsonMode-46c758c3.js → jsonMode-62d33ca8.js} +2 -2
  37. package/dist/cjs/{language-defaults-base-1351cde9.js → language-defaults-base-7f799681.js} +9 -9
  38. package/dist/cjs/loader.cjs.js +3 -3
  39. package/dist/cjs/{sql-expr-defaults-c1878109.js → sql-expr-defaults-56a073df.js} +4 -4
  40. package/dist/cjs/{sql-expr-mode-4e83413c.js → sql-expr-mode-b76f2cd7.js} +4 -4
  41. package/dist/cjs/{tsMode-187fbff9.js → tsMode-343a564e.js} +2 -2
  42. package/dist/cjs/{typescript-ed13744f.js → typescript-aa39a9f1.js} +2 -2
  43. package/dist/components/arcade-defaults.js +1 -1
  44. package/dist/components/arcade-mode.js +1 -1
  45. package/dist/components/arcade-results.js +1 -1
  46. package/dist/components/arcade-suggestions.js +1 -1
  47. package/dist/components/arcade-variables.js +1 -1
  48. package/dist/components/arcgis-arcade-editor.js +1 -1
  49. package/dist/components/arcgis-arcade-results.js +1 -1
  50. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  51. package/dist/components/arcgis-arcade-variables.js +1 -1
  52. package/dist/components/arcgis-assets.d.ts +1 -1
  53. package/dist/components/arcgis-assets.js +1 -1
  54. package/dist/components/arcgis-code-editor.js +1 -1
  55. package/dist/components/arcgis-language-api-panel.js +1 -1
  56. package/dist/components/arcgis-sql-expression-editor.js +1 -1
  57. package/dist/components/arcgis-sql-expression-fields.js +1 -1
  58. package/dist/components/chunk-BMBYH3VH.js +1 -1
  59. package/dist/components/code-editor.js +1 -1
  60. package/dist/components/fields.js +1 -1
  61. package/dist/components/index.js +1 -1
  62. package/dist/components/index2.js +1 -1
  63. package/dist/components/language-api-panel.js +1 -1
  64. package/dist/components/language-defaults-base.js +1 -1
  65. package/dist/components/markdown.js +1 -1
  66. package/dist/components/sql-expr-defaults.js +1 -1
  67. package/dist/components/sql-expr-mode.js +1 -1
  68. package/dist/components/sql-expression-fields.js +1 -1
  69. package/dist/components/useT9n.js +1 -1
  70. package/dist/components/utilities.js +1 -1
  71. package/dist/esm/{app-globals-f291bf24.js → app-globals-7a9ff748.js} +1 -1
  72. package/dist/esm/{arcade-defaults-5377abc7.js → arcade-defaults-112cabaa.js} +4 -4
  73. package/dist/esm/{arcade-mode-b416088e.js → arcade-mode-78a2482d.js} +2 -2
  74. package/dist/esm/arcgis-arcade-editor_6.entry.js +5 -5
  75. package/dist/esm/arcgis-coding-components.js +5 -5
  76. package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
  77. package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
  78. package/dist/esm/{css-7dfaa788.js → css-e8c18f98.js} +1 -1
  79. package/dist/esm/{cssMode-d241d003.js → cssMode-769cabbb.js} +2 -2
  80. package/dist/esm/{html-7ffb87f8.js → html-91c19065.js} +2 -2
  81. package/dist/esm/{htmlMode-ffeaf752.js → htmlMode-2e105097.js} +2 -2
  82. package/dist/esm/{index-2b9dd0f5.js → index-20936dfe.js} +165 -146
  83. package/dist/esm/index.js +4 -4
  84. package/dist/esm/{javascript-347f3916.js → javascript-68620191.js} +3 -3
  85. package/dist/esm/{jsonMode-25ecfd73.js → jsonMode-e89d6d21.js} +2 -2
  86. package/dist/esm/{language-defaults-base-4fef2327.js → language-defaults-base-9e3f1f44.js} +9 -9
  87. package/dist/esm/loader.js +4 -4
  88. package/dist/esm/{sql-expr-defaults-e9b958fc.js → sql-expr-defaults-3913a59f.js} +4 -4
  89. package/dist/esm/{sql-expr-mode-a8f41e49.js → sql-expr-mode-abd729cf.js} +4 -4
  90. package/dist/esm/{tsMode-05c939be.js → tsMode-05dfb27e.js} +2 -2
  91. package/dist/esm/{typescript-dfb2a986.js → typescript-d6646874.js} +2 -2
  92. package/dist/loader/cdn.js +1 -1
  93. package/dist/loader/index.cjs.js +1 -1
  94. package/dist/loader/index.d.ts +3 -0
  95. package/dist/loader/index.es2017.js +1 -1
  96. package/dist/loader/index.js +1 -1
  97. package/dist/types/stencil-public-runtime.d.ts +0 -2
  98. package/package.json +14 -14
  99. package/dist/arcgis-coding-components/p-cccd46d5.js +0 -7
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.51
4
+ * v4.31.0-next.54
5
5
  */
6
- import { r as registerInstance, c as createEvent, h, a as getElement } from './index-2b9dd0f5.js';
7
- import { u as useControllerManager, a as sqlExprDefaults } from './sql-expr-defaults-e9b958fc.js';
8
- import './language-defaults-base-4fef2327.js';
6
+ import { r as registerInstance, c as createEvent, h, a as getElement } from './index-20936dfe.js';
7
+ import { u as useControllerManager, a as sqlExprDefaults } from './sql-expr-defaults-3913a59f.js';
8
+ import './language-defaults-base-9e3f1f44.js';
9
9
 
10
10
  const sqlExpressionFieldsCss = ":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";
11
11
  const ArcgisSqlExpressionFieldsStyle0 = sqlExpressionFieldsCss;
@@ -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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.51
4
+ * v4.31.0-next.54
5
5
  */
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.51
4
+ * v4.31.0-next.54
5
5
  */
6
- import { M as monaco_editor_core_star } from './language-defaults-base-4fef2327.js';
6
+ import { M as monaco_editor_core_star } from './language-defaults-base-9e3f1f44.js';
7
7
 
8
8
  /*!-----------------------------------------------------------------------------
9
9
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.51
4
+ * v4.31.0-next.54
5
5
  */
6
- import { M as monaco_editor_core_star } from './language-defaults-base-4fef2327.js';
6
+ import { M as monaco_editor_core_star } from './language-defaults-base-9e3f1f44.js';
7
7
 
8
8
  /*!-----------------------------------------------------------------------------
9
9
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.51
4
+ * v4.31.0-next.54
5
5
  */
6
- import { M as monaco_editor_core_star } from './language-defaults-base-4fef2327.js';
6
+ import { M as monaco_editor_core_star } from './language-defaults-base-9e3f1f44.js';
7
7
 
8
8
  /*!-----------------------------------------------------------------------------
9
9
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,19 +1,150 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.51
4
+ * v4.31.0-next.54
5
5
  */
6
6
  const NAMESPACE = 'arcgis-coding-components';
7
7
  const BUILD = /* arcgis-coding-components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: true, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
8
8
 
9
9
  /*
10
- Stencil Client Platform v4.18.3 | MIT Licensed | https://stenciljs.com
10
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
11
11
  */
12
12
  var __defProp = Object.defineProperty;
13
13
  var __export = (target, all) => {
14
14
  for (var name in all)
15
15
  __defProp(target, name, { get: all[name], enumerable: true });
16
16
  };
17
+ var hostRefs = /* @__PURE__ */ new WeakMap();
18
+ var getHostRef = (ref) => hostRefs.get(ref);
19
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
20
+ var registerHost = (hostElement, cmpMeta) => {
21
+ const hostRef = {
22
+ $flags$: 0,
23
+ $hostElement$: hostElement,
24
+ $cmpMeta$: cmpMeta,
25
+ $instanceValues$: /* @__PURE__ */ new Map()
26
+ };
27
+ {
28
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
29
+ }
30
+ {
31
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
32
+ hostElement["s-p"] = [];
33
+ hostElement["s-rc"] = [];
34
+ }
35
+ return hostRefs.set(hostElement, hostRef);
36
+ };
37
+ var isMemberInElement = (elm, memberName) => memberName in elm;
38
+ var consoleError = (e, el) => (0, console.error)(e, el);
39
+
40
+ // src/client/client-load-module.ts
41
+ var cmpModules = /* @__PURE__ */ new Map();
42
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
43
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
44
+ const bundleId = cmpMeta.$lazyBundleId$;
45
+ if (!bundleId) {
46
+ return void 0;
47
+ }
48
+ const module = cmpModules.get(bundleId) ;
49
+ if (module) {
50
+ return module[exportName];
51
+ }
52
+
53
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
54
+ const processMod = importedModule => {
55
+ cmpModules.set(bundleId, importedModule);
56
+ return importedModule[exportName];
57
+ }
58
+ switch(bundleId) {
59
+
60
+ case 'arcgis-arcade-editor_6':
61
+ return import(
62
+ /* webpackMode: "lazy" */
63
+ './arcgis-arcade-editor_6.entry.js').then(processMod, consoleError);
64
+ case 'arcgis-sql-expression-editor':
65
+ return import(
66
+ /* webpackMode: "lazy" */
67
+ './arcgis-sql-expression-editor.entry.js').then(processMod, consoleError);
68
+ case 'arcgis-sql-expression-fields':
69
+ return import(
70
+ /* webpackMode: "lazy" */
71
+ './arcgis-sql-expression-fields.entry.js').then(processMod, consoleError);
72
+ }
73
+ }
74
+ return import(
75
+ /* @vite-ignore */
76
+ /* webpackInclude: /\.entry\.js$/ */
77
+ /* webpackExclude: /\.system\.entry\.js$/ */
78
+ /* webpackMode: "lazy" */
79
+ `./${bundleId}.entry.js${""}`
80
+ ).then((importedModule) => {
81
+ {
82
+ cmpModules.set(bundleId, importedModule);
83
+ }
84
+ return importedModule[exportName];
85
+ }, consoleError);
86
+ };
87
+
88
+ // src/client/client-style.ts
89
+ var styles = /* @__PURE__ */ new Map();
90
+ var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
91
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
92
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
93
+ var win = typeof window !== "undefined" ? window : {};
94
+ var doc = win.document || { head: {} };
95
+ var plt = {
96
+ $flags$: 0,
97
+ $resourcesUrl$: "",
98
+ jmp: (h2) => h2(),
99
+ raf: (h2) => requestAnimationFrame(h2),
100
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
101
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
102
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
103
+ };
104
+ var promiseResolve = (v) => Promise.resolve(v);
105
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
106
+ try {
107
+ new CSSStyleSheet();
108
+ return typeof new CSSStyleSheet().replaceSync === "function";
109
+ } catch (e) {
110
+ }
111
+ return false;
112
+ })() ;
113
+ var queuePending = false;
114
+ var queueDomReads = [];
115
+ var queueDomWrites = [];
116
+ var queueTask = (queue, write) => (cb) => {
117
+ queue.push(cb);
118
+ if (!queuePending) {
119
+ queuePending = true;
120
+ if (write && plt.$flags$ & 4 /* queueSync */) {
121
+ nextTick(flush);
122
+ } else {
123
+ plt.raf(flush);
124
+ }
125
+ }
126
+ };
127
+ var consume = (queue) => {
128
+ for (let i2 = 0; i2 < queue.length; i2++) {
129
+ try {
130
+ queue[i2](performance.now());
131
+ } catch (e) {
132
+ consoleError(e);
133
+ }
134
+ }
135
+ queue.length = 0;
136
+ };
137
+ var flush = () => {
138
+ consume(queueDomReads);
139
+ {
140
+ consume(queueDomWrites);
141
+ if (queuePending = queueDomReads.length > 0) {
142
+ plt.raf(flush);
143
+ }
144
+ }
145
+ };
146
+ var nextTick = (cb) => promiseResolve().then(cb);
147
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
17
148
 
18
149
  // src/runtime/asset-path.ts
19
150
  var getAssetPath = (path) => {
@@ -99,9 +230,6 @@ var uniqueTime = (key, measureText) => {
99
230
  };
100
231
  }
101
232
  };
102
- var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
103
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
104
- var XLINK_NS = "http://www.w3.org/1999/xlink";
105
233
  var h = (nodeName, vnodeData, ...children) => {
106
234
  let child = null;
107
235
  let key = null;
@@ -432,6 +560,7 @@ function sortedAttrNames(attrNames) {
432
560
  // src/runtime/vdom/vdom-render.ts
433
561
  var scopeId;
434
562
  var hostTagName;
563
+ var useNativeShadowDom = false;
435
564
  var isSvgMode = false;
436
565
  var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
437
566
  const newVNode2 = newParentVNode.$children$[childIndex];
@@ -442,7 +571,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
442
571
  elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
443
572
  } else {
444
573
  elm = newVNode2.$elm$ = doc.createElement(
445
- newVNode2.$tag$
574
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
446
575
  );
447
576
  {
448
577
  updateElement(null, newVNode2, isSvgMode);
@@ -644,6 +773,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
644
773
  {
645
774
  scopeId = hostElm["s-sc"];
646
775
  }
776
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
647
777
  patch(oldVNode, rootVnode, isInitialLoad);
648
778
  };
649
779
 
@@ -687,7 +817,10 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
687
817
  endSchedule();
688
818
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
689
819
  };
690
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
820
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
821
+ console.error(err2);
822
+ fn();
823
+ }) : fn();
691
824
  var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
692
825
  var updateComponent = async (hostRef, instance, isInitialLoad) => {
693
826
  var _a;
@@ -857,13 +990,13 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
857
990
 
858
991
  // src/runtime/proxy-component.ts
859
992
  var proxyComponent = (Cstr, cmpMeta, flags) => {
860
- var _a;
993
+ var _a, _b;
861
994
  const prototype = Cstr.prototype;
862
- if (cmpMeta.$members$) {
863
- if (Cstr.watchers) {
995
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
996
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
864
997
  cmpMeta.$watchers$ = Cstr.watchers;
865
998
  }
866
- const members = Object.entries(cmpMeta.$members$);
999
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
867
1000
  members.map(([memberName, [memberFlags]]) => {
868
1001
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
869
1002
  Object.defineProperty(prototype, memberName, {
@@ -919,7 +1052,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
919
1052
  };
920
1053
  Cstr.observedAttributes = Array.from(
921
1054
  /* @__PURE__ */ new Set([
922
- ...Object.keys((_a = cmpMeta.$watchers$) != null ? _a : {}),
1055
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
923
1056
  ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
924
1057
  var _a2;
925
1058
  const attrName = m[1] || propName;
@@ -984,7 +1117,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
984
1117
  customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
985
1118
  }
986
1119
  if (Cstr && Cstr.style) {
987
- let style = Cstr.style;
1120
+ let style;
1121
+ if (typeof Cstr.style === "string") {
1122
+ style = Cstr.style;
1123
+ }
988
1124
  const scopeId2 = getScopeId(cmpMeta);
989
1125
  if (!styles.has(scopeId2)) {
990
1126
  const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
@@ -1104,17 +1240,30 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1104
1240
  // StencilLazyHost
1105
1241
  constructor(self) {
1106
1242
  super(self);
1243
+ this.hasRegisteredEventListeners = false;
1107
1244
  self = this;
1108
1245
  registerHost(self, cmpMeta);
1109
1246
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1110
1247
  {
1111
- {
1112
- self.attachShadow({ mode: "open" });
1248
+ if (!self.shadowRoot) {
1249
+ {
1250
+ self.attachShadow({ mode: "open" });
1251
+ }
1252
+ } else {
1253
+ if (self.shadowRoot.mode !== "open") {
1254
+ throw new Error(
1255
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
1256
+ );
1257
+ }
1113
1258
  }
1114
1259
  }
1115
1260
  }
1116
1261
  }
1117
1262
  connectedCallback() {
1263
+ getHostRef(this);
1264
+ if (!this.hasRegisteredEventListeners) {
1265
+ this.hasRegisteredEventListeners = true;
1266
+ }
1118
1267
  if (appLoadFallback) {
1119
1268
  clearTimeout(appLoadFallback);
1120
1269
  appLoadFallback = null;
@@ -1147,7 +1296,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1147
1296
  dataStyles.textContent += SLOT_FB_CSS;
1148
1297
  }
1149
1298
  {
1150
- dataStyles.textContent += cmpTags + HYDRATED_CSS;
1299
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
1151
1300
  }
1152
1301
  if (dataStyles.innerHTML.length) {
1153
1302
  dataStyles.setAttribute("data-styles", "");
@@ -1175,134 +1324,4 @@ var Fragment = (_, children) => children;
1175
1324
  // src/runtime/nonce.ts
1176
1325
  var setNonce = (nonce) => plt.$nonce$ = nonce;
1177
1326
 
1178
- // src/client/client-host-ref.ts
1179
- var hostRefs = /* @__PURE__ */ new WeakMap();
1180
- var getHostRef = (ref) => hostRefs.get(ref);
1181
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
1182
- var registerHost = (hostElement, cmpMeta) => {
1183
- const hostRef = {
1184
- $flags$: 0,
1185
- $hostElement$: hostElement,
1186
- $cmpMeta$: cmpMeta,
1187
- $instanceValues$: /* @__PURE__ */ new Map()
1188
- };
1189
- {
1190
- hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
1191
- }
1192
- {
1193
- hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
1194
- hostElement["s-p"] = [];
1195
- hostElement["s-rc"] = [];
1196
- }
1197
- return hostRefs.set(hostElement, hostRef);
1198
- };
1199
- var isMemberInElement = (elm, memberName) => memberName in elm;
1200
- var consoleError = (e, el) => (0, console.error)(e, el);
1201
-
1202
- // src/client/client-load-module.ts
1203
- var cmpModules = /* @__PURE__ */ new Map();
1204
- var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1205
- const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
1206
- const bundleId = cmpMeta.$lazyBundleId$;
1207
- if (!bundleId) {
1208
- return void 0;
1209
- }
1210
- const module = cmpModules.get(bundleId) ;
1211
- if (module) {
1212
- return module[exportName];
1213
- }
1214
-
1215
- if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1216
- const processMod = importedModule => {
1217
- cmpModules.set(bundleId, importedModule);
1218
- return importedModule[exportName];
1219
- }
1220
- switch(bundleId) {
1221
-
1222
- case 'arcgis-arcade-editor_6':
1223
- return import(
1224
- /* webpackMode: "lazy" */
1225
- './arcgis-arcade-editor_6.entry.js').then(processMod, consoleError);
1226
- case 'arcgis-sql-expression-editor':
1227
- return import(
1228
- /* webpackMode: "lazy" */
1229
- './arcgis-sql-expression-editor.entry.js').then(processMod, consoleError);
1230
- case 'arcgis-sql-expression-fields':
1231
- return import(
1232
- /* webpackMode: "lazy" */
1233
- './arcgis-sql-expression-fields.entry.js').then(processMod, consoleError);
1234
- }
1235
- }
1236
- return import(
1237
- /* @vite-ignore */
1238
- /* webpackInclude: /\.entry\.js$/ */
1239
- /* webpackExclude: /\.system\.entry\.js$/ */
1240
- /* webpackMode: "lazy" */
1241
- `./${bundleId}.entry.js${""}`
1242
- ).then((importedModule) => {
1243
- {
1244
- cmpModules.set(bundleId, importedModule);
1245
- }
1246
- return importedModule[exportName];
1247
- }, consoleError);
1248
- };
1249
-
1250
- // src/client/client-style.ts
1251
- var styles = /* @__PURE__ */ new Map();
1252
- var win = typeof window !== "undefined" ? window : {};
1253
- var doc = win.document || { head: {} };
1254
- var plt = {
1255
- $flags$: 0,
1256
- $resourcesUrl$: "",
1257
- jmp: (h2) => h2(),
1258
- raf: (h2) => requestAnimationFrame(h2),
1259
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1260
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1261
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
1262
- };
1263
- var promiseResolve = (v) => Promise.resolve(v);
1264
- var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
1265
- try {
1266
- new CSSStyleSheet();
1267
- return typeof new CSSStyleSheet().replaceSync === "function";
1268
- } catch (e) {
1269
- }
1270
- return false;
1271
- })() ;
1272
- var queuePending = false;
1273
- var queueDomReads = [];
1274
- var queueDomWrites = [];
1275
- var queueTask = (queue, write) => (cb) => {
1276
- queue.push(cb);
1277
- if (!queuePending) {
1278
- queuePending = true;
1279
- if (write && plt.$flags$ & 4 /* queueSync */) {
1280
- nextTick(flush);
1281
- } else {
1282
- plt.raf(flush);
1283
- }
1284
- }
1285
- };
1286
- var consume = (queue) => {
1287
- for (let i2 = 0; i2 < queue.length; i2++) {
1288
- try {
1289
- queue[i2](performance.now());
1290
- } catch (e) {
1291
- consoleError(e);
1292
- }
1293
- }
1294
- queue.length = 0;
1295
- };
1296
- var flush = () => {
1297
- consume(queueDomReads);
1298
- {
1299
- consume(queueDomWrites);
1300
- if (queuePending = queueDomReads.length > 0) {
1301
- plt.raf(flush);
1302
- }
1303
- }
1304
- };
1305
- var nextTick = (cb) => promiseResolve().then(cb);
1306
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
1307
-
1308
1327
  export { Fragment as F, Host as H, getElement as a, bootstrapLazy as b, createEvent as c, getAssetPath as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
package/dist/esm/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.51
4
+ * v4.31.0-next.54
5
5
  */
6
- export { a as arcade } from './arcade-defaults-5377abc7.js';
7
- import './language-defaults-base-4fef2327.js';
8
- import './index-2b9dd0f5.js';
6
+ export { a as arcade } from './arcade-defaults-112cabaa.js';
7
+ import './language-defaults-base-9e3f1f44.js';
8
+ import './index-20936dfe.js';
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.51
4
+ * v4.31.0-next.54
5
5
  */
6
- import { conf as conf$1, language as language$1 } from './typescript-dfb2a986.js';
7
- import './language-defaults-base-4fef2327.js';
6
+ import { conf as conf$1, language as language$1 } from './typescript-d6646874.js';
7
+ import './language-defaults-base-9e3f1f44.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.51
4
+ * v4.31.0-next.54
5
5
  */
6
- import { M as monaco_editor_core_star } from './language-defaults-base-4fef2327.js';
6
+ import { M as monaco_editor_core_star } from './language-defaults-base-9e3f1f44.js';
7
7
 
8
8
  /*!-----------------------------------------------------------------------------
9
9
  * 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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.51
4
+ * v4.31.0-next.54
5
5
  */
6
6
  /**
7
7
  * Returns the last element of an array.
@@ -120592,7 +120592,7 @@ registerLanguage({
120592
120592
  mimetypes: ["text/css"],
120593
120593
  loader: () => {
120594
120594
  {
120595
- return import('./css-7dfaa788.js');
120595
+ return import('./css-e8c18f98.js');
120596
120596
  }
120597
120597
  }
120598
120598
  });
@@ -120610,7 +120610,7 @@ registerLanguage({
120610
120610
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
120611
120611
  loader: () => {
120612
120612
  {
120613
- return import('./html-7ffb87f8.js');
120613
+ return import('./html-91c19065.js');
120614
120614
  }
120615
120615
  }
120616
120616
  });
@@ -120630,7 +120630,7 @@ registerLanguage({
120630
120630
  mimetypes: ["text/javascript"],
120631
120631
  loader: () => {
120632
120632
  {
120633
- return import('./javascript-347f3916.js');
120633
+ return import('./javascript-68620191.js');
120634
120634
  }
120635
120635
  }
120636
120636
  });
@@ -120648,7 +120648,7 @@ registerLanguage({
120648
120648
  mimetypes: ["text/typescript"],
120649
120649
  loader: () => {
120650
120650
  {
120651
- return import('./typescript-dfb2a986.js');
120651
+ return import('./typescript-d6646874.js');
120652
120652
  }
120653
120653
  }
120654
120654
  });
@@ -120769,7 +120769,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
120769
120769
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
120770
120770
  function getMode$3() {
120771
120771
  {
120772
- return import('./cssMode-d241d003.js');
120772
+ return import('./cssMode-769cabbb.js');
120773
120773
  }
120774
120774
  }
120775
120775
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -120894,7 +120894,7 @@ monaco_editor_core_exports$2.languages.html = {
120894
120894
  };
120895
120895
  function getMode$2() {
120896
120896
  {
120897
- return import('./htmlMode-ffeaf752.js');
120897
+ return import('./htmlMode-2e105097.js');
120898
120898
  }
120899
120899
  }
120900
120900
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -120996,7 +120996,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
120996
120996
  monaco_editor_core_exports$1.languages.json = { jsonDefaults };
120997
120997
  function getMode$1() {
120998
120998
  {
120999
- return import('./jsonMode-25ecfd73.js');
120999
+ return import('./jsonMode-e89d6d21.js');
121000
121000
  }
121001
121001
  }
121002
121002
  monaco_editor_core_exports$1.languages.register({
@@ -121265,7 +121265,7 @@ monaco_editor_core_exports.languages.typescript = {
121265
121265
  };
121266
121266
  function getMode() {
121267
121267
  {
121268
- return import('./tsMode-05c939be.js');
121268
+ return import('./tsMode-05dfb27e.js');
121269
121269
  }
121270
121270
  }
121271
121271
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.51
4
+ * v4.31.0-next.54
5
5
  */
6
- import { b as bootstrapLazy } from './index-2b9dd0f5.js';
7
- export { s as setNonce } from './index-2b9dd0f5.js';
8
- import { g as globalScripts } from './app-globals-f291bf24.js';
6
+ import { b as bootstrapLazy } from './index-20936dfe.js';
7
+ export { s as setNonce } from './index-20936dfe.js';
8
+ import { g as globalScripts } from './app-globals-7a9ff748.js';
9
9
 
10
10
  const defineCustomElements = async (win, options) => {
11
11
  if (typeof window === 'undefined') return undefined;
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.51
4
+ * v4.31.0-next.54
5
5
  */
6
- import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, f as fieldsToProfileValues, i as isPredefinedProfile, b as isFeatureSetDefinition, m as main, L as LanguageDefaultsBase, d as fetchT9nStringsBundle, E as EditorProfile, U as Uri } from './language-defaults-base-4fef2327.js';
7
- import { g as getAssetPath } from './index-2b9dd0f5.js';
6
+ import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, f as fieldsToProfileValues, i as isPredefinedProfile, b as isFeatureSetDefinition, m as main, L as LanguageDefaultsBase, d as fetchT9nStringsBundle, E as EditorProfile, U as Uri } from './language-defaults-base-9e3f1f44.js';
7
+ import { g as getAssetPath } from './index-20936dfe.js';
8
8
 
9
9
  // src/framework.ts
10
10
  function retrieveComponentMembers(component, isLit) {
@@ -1242,7 +1242,7 @@ async function getSqlExprWorker(uri) {
1242
1242
  * @returns sql-expression mode module
1243
1243
  */
1244
1244
  async function getMode() {
1245
- return await import('./sql-expr-mode-a8f41e49.js');
1245
+ return await import('./sql-expr-mode-abd729cf.js');
1246
1246
  }
1247
1247
 
1248
1248
  const languageId = "arcgis-sql-expression";
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.51
4
+ * v4.31.0-next.54
5
5
  */
6
- import { g as editor, P as debounce, z as languages, Q as Emitter } from './language-defaults-base-4fef2327.js';
7
- import { a as sqlExprDefaults } from './sql-expr-defaults-e9b958fc.js';
8
- import './index-2b9dd0f5.js';
6
+ import { g as editor, P as debounce, z as languages, Q as Emitter } from './language-defaults-base-9e3f1f44.js';
7
+ import { a as sqlExprDefaults } from './sql-expr-defaults-3913a59f.js';
8
+ import './index-20936dfe.js';
9
9
 
10
10
  /**
11
11
  * Manager to create our sql-expression worker and client proxy
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.51
4
+ * v4.31.0-next.54
5
5
  */
6
- import { N as typescriptDefaults, M as monaco_editor_core_star } from './language-defaults-base-4fef2327.js';
6
+ import { N as typescriptDefaults, M as monaco_editor_core_star } from './language-defaults-base-9e3f1f44.js';
7
7
 
8
8
  /*!-----------------------------------------------------------------------------
9
9
  * Copyright (c) Microsoft Corporation. All rights reserved.