@arcgis/coding-components 4.31.0-next.59 → 4.31.0-next.60

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 (104) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/index.esm.js +2 -2
  3. package/dist/arcgis-coding-components/{p-d4e363df.js → p-0dfb0b51.js} +2 -2
  4. package/dist/arcgis-coding-components/{p-80c9ba2b.entry.js → p-15ab1669.entry.js} +2 -2
  5. package/dist/arcgis-coding-components/{p-408da3c0.js → p-2ce01944.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-ae596382.js → p-324d3441.js} +2 -2
  7. package/dist/arcgis-coding-components/{p-637d78e5.js → p-32f69143.js} +1 -1
  8. package/dist/arcgis-coding-components/{p-445c8bf7.js → p-48a82879.js} +1 -1
  9. package/dist/arcgis-coding-components/{p-c817c81c.js → p-49d247b3.js} +9 -9
  10. package/dist/arcgis-coding-components/{p-7aec584c.js → p-4aacb744.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-1e675e67.entry.js → p-65666d7d.entry.js} +2 -2
  12. package/dist/arcgis-coding-components/{p-37ecf3a3.js → p-b67f1c54.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-2dfc71ce.js → p-bd510fac.js} +1 -1
  14. package/dist/arcgis-coding-components/{p-9ab9975c.js → p-c02b5cb7.js} +2 -2
  15. package/dist/arcgis-coding-components/{p-9d798469.js → p-c79a1a66.js} +2 -2
  16. package/dist/arcgis-coding-components/{p-2639446f.js → p-d339d7c5.js} +2 -2
  17. package/dist/arcgis-coding-components/{p-ef67da54.entry.js → p-d39b4fa7.entry.js} +2 -2
  18. package/dist/arcgis-coding-components/{p-2f96a22b.js → p-d3e821fe.js} +2 -2
  19. package/dist/arcgis-coding-components/{p-6bf13882.js → p-ee4ad3e1.js} +2 -2
  20. package/dist/arcgis-coding-components/{p-e74d3ae7.js → p-f8728f4d.js} +2 -2
  21. package/dist/cjs/{app-globals-89b2f480.js → app-globals-2c78c6b1.js} +1 -1
  22. package/dist/cjs/{arcade-defaults-12892684.js → arcade-defaults-8f210819.js} +4 -4
  23. package/dist/cjs/{arcade-mode-12d9d77e.js → arcade-mode-ba7da99f.js} +2 -2
  24. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +5 -5
  25. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  26. package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
  27. package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
  28. package/dist/cjs/{css-91e901af.js → css-7588aae5.js} +1 -1
  29. package/dist/cjs/{cssMode-9f737acb.js → cssMode-0be00954.js} +2 -2
  30. package/dist/cjs/{html-a98ed0fd.js → html-310c2662.js} +2 -2
  31. package/dist/cjs/{htmlMode-b01b9482.js → htmlMode-30d8e99b.js} +2 -2
  32. package/dist/cjs/{index-706035f1.js → index-cba76501.js} +1 -1
  33. package/dist/cjs/index.cjs.js +4 -4
  34. package/dist/cjs/{javascript-92976925.js → javascript-2094999f.js} +3 -3
  35. package/dist/cjs/{jsonMode-0e94e6c9.js → jsonMode-389bdf05.js} +2 -2
  36. package/dist/cjs/{language-defaults-base-fb2ecc81.js → language-defaults-base-7cb3bee2.js} +9 -9
  37. package/dist/cjs/loader.cjs.js +3 -3
  38. package/dist/cjs/{sql-expr-defaults-380da546.js → sql-expr-defaults-50a75e9d.js} +4 -4
  39. package/dist/cjs/{sql-expr-mode-a79ea0de.js → sql-expr-mode-0b3d7972.js} +4 -4
  40. package/dist/cjs/{tsMode-d9508f43.js → tsMode-1ef47d68.js} +2 -2
  41. package/dist/cjs/{typescript-eb9433ac.js → typescript-e19c8c21.js} +2 -2
  42. package/dist/components/arcade-defaults.js +1 -1
  43. package/dist/components/arcade-mode.js +1 -1
  44. package/dist/components/arcade-results.js +1 -1
  45. package/dist/components/arcade-suggestions.js +1 -1
  46. package/dist/components/arcade-variables.js +1 -1
  47. package/dist/components/arcgis-arcade-editor.js +1 -1
  48. package/dist/components/arcgis-arcade-results.js +1 -1
  49. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  50. package/dist/components/arcgis-arcade-variables.js +1 -1
  51. package/dist/components/arcgis-assets.d.ts +1 -1
  52. package/dist/components/arcgis-assets.js +1 -1
  53. package/dist/components/arcgis-code-editor.js +1 -1
  54. package/dist/components/arcgis-language-api-panel.js +1 -1
  55. package/dist/components/arcgis-sql-expression-editor.js +1 -1
  56. package/dist/components/arcgis-sql-expression-fields.js +1 -1
  57. package/dist/components/chunk-WEX2VUZV.js +1 -1
  58. package/dist/components/code-editor.js +1 -1
  59. package/dist/components/fields.js +1 -1
  60. package/dist/components/index.js +1 -1
  61. package/dist/components/index2.js +1 -1
  62. package/dist/components/language-api-panel.js +1 -1
  63. package/dist/components/language-defaults-base.js +1 -1
  64. package/dist/components/markdown.js +1 -1
  65. package/dist/components/sql-expr-defaults.js +1 -1
  66. package/dist/components/sql-expr-mode.js +1 -1
  67. package/dist/components/sql-expression-fields.js +1 -1
  68. package/dist/components/useT9n.js +1 -1
  69. package/dist/components/utilities.js +1 -1
  70. package/dist/esm/{app-globals-b5176f7f.js → app-globals-ad05b915.js} +1 -1
  71. package/dist/esm/{arcade-defaults-48ca9db7.js → arcade-defaults-84c53fa5.js} +4 -4
  72. package/dist/esm/{arcade-mode-11b3368e.js → arcade-mode-6fbd4168.js} +2 -2
  73. package/dist/esm/arcgis-arcade-editor_6.entry.js +5 -5
  74. package/dist/esm/arcgis-coding-components.js +4 -4
  75. package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
  76. package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
  77. package/dist/esm/{css-90b67a3d.js → css-9731ed75.js} +1 -1
  78. package/dist/esm/{cssMode-39fa57ee.js → cssMode-6a20bb2b.js} +2 -2
  79. package/dist/esm/{html-ab077a68.js → html-b32a642f.js} +2 -2
  80. package/dist/esm/{htmlMode-3d6fa50e.js → htmlMode-e39916d3.js} +2 -2
  81. package/dist/esm/{index-c4810bff.js → index-3c00d77e.js} +1 -1
  82. package/dist/esm/index.js +4 -4
  83. package/dist/esm/{javascript-aa1ff618.js → javascript-e3306e60.js} +3 -3
  84. package/dist/esm/{jsonMode-de550a5a.js → jsonMode-2ba190f8.js} +2 -2
  85. package/dist/esm/{language-defaults-base-bf2cf878.js → language-defaults-base-9d97d855.js} +9 -9
  86. package/dist/esm/loader.js +4 -4
  87. package/dist/esm/{sql-expr-defaults-3e9c4836.js → sql-expr-defaults-49ca931c.js} +4 -4
  88. package/dist/esm/{sql-expr-mode-d15705ac.js → sql-expr-mode-b1ab06a1.js} +4 -4
  89. package/dist/esm/{tsMode-d5eb1d88.js → tsMode-6fe69b0a.js} +2 -2
  90. package/dist/esm/{typescript-4f65f4e2.js → typescript-d757eb0b.js} +2 -2
  91. package/dist/loader/cdn.js +1 -1
  92. package/dist/loader/index.cjs.js +1 -1
  93. package/dist/loader/index.es2017.js +1 -1
  94. package/dist/loader/index.js +1 -1
  95. package/package.json +11 -11
  96. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +0 -0
  97. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +0 -0
  98. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +0 -0
  99. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/code-editor/code-editor.stories.d.ts +0 -0
  100. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/sql-expression-editor/sql-expression-editor.stories.d.ts +0 -0
  101. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +0 -0
  102. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +0 -0
  103. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +0 -0
  104. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +0 -0
@@ -1,6 +1,6 @@
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.59
4
+ * v4.31.0-next.60
5
5
  */
6
- import{B as t,D as i,C as s,F as e,G as n,H as o,J as r,f as c,i as h,b as a,m as d,L as u,d as f,E as l,U as p}from"./p-c817c81c.js";import{g as y}from"./p-445c8bf7.js";var v,g=(t,i)=>t.manager.internals.members?.[i]?.[0],w=Symbol.for("controller");function b(t){v!==t&&(v=t,queueMicrotask((()=>{v===t&&(v=void 0)})))}function m(){return v}var k,j=[];function L(t){if(void 0===t)return void(j=[]);const i=j.indexOf(t);j=-1===i?[...j,t]:j.slice(0,i+1),queueMicrotask((()=>{j=[]}))}var _,x=async(t,i)=>{const s=O(t);if(void 0===s)return t;if(await s.ready,"function"==typeof i){const t=s.watchExports((s=>i(s,t)))}return s.exports},M=async t=>{const i=O(t);return await i.ready,i},O=t=>{const i=function(){const t=k;return k=void 0,t}();if(void 0!==i)return i;const s=m().manager.internals.resolveExports(t);return void 0!==s?s:(t=>"object"==typeof t&&null!==t&&(w in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t)?t:void 0},S={setter:!1,getter:!1,readOnly:!1},U=new WeakMap;_=w;var C=class{constructor(t){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new i,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[_]=!0,this.ready=this._ready.promise,this._exports=P(this),this._exportWatchers=new Set;const s=t??m();this.component=s,this.component.addController(this),L(this),void 0===this.component.manager||queueMicrotask((()=>this.catchUpLifecycle()))}catchUpLifecycle(){const{manager:t}=this.component;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t._loadCalled||this.triggerLoad().then((()=>{!t.loadedCalled||this.triggerLoaded()})).catch(console.error)}get exports(){return this._exports}set exports(t){const i=this._exports;i!==t&&(this._exports=t,this._exportWatchers.forEach(n),this.connectedCalled&&!1!==this.assignedProperty&&this.component.requestUpdate(this.assignedProperty,i)),this._ready.resolve(t)}setProvisionalExports(t){this._exports=P(t),this._exportWatchers.forEach(n)}watchExports(t){const i=()=>t(this._exports);return this._exportWatchers.add(i),()=>{this._exportWatchers.delete(i)}}get use(){return b(this.component),x}get useRef(){return b(this.component),M}get useRefSync(){return b(this.component),O}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this._callbacks.hostConnected.push(t)}onDisconnected(t){this._callbacks.hostDisconnected.push(t)}onLoad(t){this._callbacks.hostLoad.push(t)}onLoaded(t){this._callbacks.hostLoaded.push(t)}onUpdate(t){this._callbacks.hostUpdate.push(t)}onUpdated(t){this._callbacks.hostUpdated.push(t)}onDestroy(t){this._callbacks.hostDestroy.push(t)}onLifecycle(t){this._callbacks.hostLifecycle.push(t),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(t)}triggerConnected(){const t=this;t.hostConnected&&n(t.hostConnected,t),this._callbacks.hostConnected.forEach(n),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&n(t.hostDisconnected,t),this._callbacks.hostDisconnected.forEach(n),this._lifecycleCleanups.forEach(n),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;const t=this;t.hostLoad&&await s(t.hostLoad,t),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(s)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;const t=this;t.hostLoaded&&n(t.hostLoaded,t),this._callbacks.hostLoaded.forEach(n),this.loadedCalled=!0}triggerUpdate(t){const i=this;i.hostUpdate&&n(i.hostUpdate,i,t),this._callbacks.hostUpdate.forEach(D,t)}triggerUpdated(t){const i=this;i.hostUpdated&&n(i.hostUpdated,i,t),this._callbacks.hostUpdated.forEach(D,t)}triggerDestroy(){const t=this;t.hostDestroy&&n(t.hostDestroy,t),this._callbacks.hostDestroy.forEach(n)}triggerLifecycle(){const t=this;t.hostLifecycle&&this._callLifecycle((()=>t.hostLifecycle())),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(t){b(this.component);const i=n(t);(Array.isArray(i)?i:[i]).forEach((t=>{"function"==typeof t?this._lifecycleCleanups.push(t):"object"==typeof t&&"function"==typeof t.remove&&this._lifecycleCleanups.push(t.remove)}))}};function D(t){n(t,void 0,this)}var E=C;function P(t){if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const i=new Proxy(t,{get(t,s,e){if(!A.has(s)||!(s in t)||t[s]!==i)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,e):void 0},set:(t,i,s,e)=>Reflect.set(t,i,s,e)});return i}var A=new Set(["exports","_exports"]),T=void 0;function q(){Array.from(T?.entries()??[]).forEach((([t,{callbacks:i}])=>{const s=Object.keys(t);i.forEach((t=>t(s)))})),T=void 0}function F(t,i,s){var e;const o=i,r=t.manager.internals;(e=r.allWatchers)[o]??(e[o]=[]);const c=r.allWatchers[o],h=s,a=(t,i,s)=>n(h,null,t,i,s);return c.push(a),()=>{const t=c.indexOf(a);-1!==t&&c.splice(t,1)}}var $=class{constructor(t){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;const t=this.component.manager.internals;Object.entries(t.members).forEach((([i,[s]])=>{var e;2048&s&&((e=t.setters)[i]??(e[i]=[]),t.setters[i].push(t.readonlySetter))}))},this.trackedValue=V,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this.reactiveUtilsIntegrations=new Set,this._exports=new WeakMap,this.readonlySetter=(t,i,s)=>{if(S.readOnly)return t;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=t}firePropTrackers(t,i){const s=this.keyTrackers;this.trackedValue=V,this.keyTrackers=[],s.forEach((s=>s(t,i)))}getSetProxy(t){const i=this.component,s=i.constructor.prototype;if(this._getSetProxy(s,t,"class"),i.manager.isLit)return;const e=i.el.constructor.prototype;s!==e&&this._getSetProxy(e,t,"html")}_getSetProxy(t,i,s){const e=g(this.component,i);let n;do{n=Object.getOwnPropertyDescriptor(t,i)}while(!n&&(t=Object.getPrototypeOf(t)));if(!n)return;const o=n.get,r=n.set,c=I in o,h=I in r;if(c&&h)return;const a=!c,d=!h,u=a?function(){let t=o.call(this);const s=U.get(this);if(void 0===s)return t;const e=s.manager.internals;t=e.accessorGetter[i](t,i);const n=e.getters[i]??R;for(let s=0;s<n.length;s++)t=n[s](t,i);return t}:o,f=d?function(t){const s=o.call(this),n=U.get(this);if(void 0===n)return void r.call(this,t);let c=n.manager.isLit?t??void 0:function(t,i=8){return null==t||"object"==typeof t||"function"==typeof t?t:4&i?"false"!==t&&(""===t||!!t):2&i?Number.parseFloat(t):1&i?String(t):t}(t,e);const h=n.manager.internals;if(c===s)r.call(this,c);else{const t=S.setter?R:h.setters[i]??R;for(let e=0;e<t.length&&(c=t[e](c,s,i),c!==s);e++);c=h.accessorSetter[i](c,s,i),r.call(this,c),c!==s&&h.enabledWatchers[i]?.forEach((t=>t(c,s,i)))}h.keyTrackers.length>0&&h?.firePropTrackers(i,t)}:r;a&&(u[I]=!0),d&&(f[I]=!0),Object.defineProperty(t,i,{...n,get:u,set:f})}markExports(t,i){("object"==typeof i&&null!==i||"function"==typeof i)&&this._exports.set(i,t)}resolveExports(t){return"object"==typeof t&&null!==t||"function"==typeof t?this._exports.get(t):void 0}},R=[],I=Symbol(),V=Symbol(),N=(t,i)=>new W(t,i),W=class extends E{constructor(s,e){const n="addController"in s,o=new Set,r=s;if(r.addController=function(t){o.add(t),!(w in t)&&s.renderRoot&&s.el.isConnected&&t.hostConnected?.()},r.removeController=function(t){o.delete(t),t.controllerRemoved?.()},!n){const t=e??s.constructor.__forceUpdate;r.requestUpdate=()=>t(s)}super(s),this.internals=new $(this.component),this.destroyed=!1,this._updatePromise=new i,this._originalLifecycles={},this.isLit=n,this.component.manager=this,function(i,s){if(s)i.manager.internals.members=Object.fromEntries(Array.from(i.constructor.elementProperties,(([t,i])=>i.noAccessor?void 0:[t,[(i.readOnly?2048:0)|(i.state?32:16)]])).filter(t));else{const t=i.constructor,s=t.__registerControllers?.(i)??void 0;if(t.__registerControllers=void 0,"object"!=typeof s)throw new Error("Failed to retrieve component meta");i.manager.internals.members=Object.fromEntries(Object.entries(s).filter((([t,[i]])=>!!(63&i))))}}(s,n),this._controllers=o,this.exports=void 0,this.hasDestroy=B in this.component&&"function"==typeof this.component.destroy,this._bindLifecycleMethods();const c=this.internals;Object.keys(c.members).forEach((t=>{c.accessorGetter[t]=H,c.accessorSetter[t]=H,c.getSetProxy(t)})),n?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(s,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),L(void 0),b(s),U.set(s.el,s),U.set(s,s)}_bindLifecycleMethods(){const t=this.component,i=this.isLit,s=t.el===t;this._originalLifecycles={_connectedCallback:i||s?void 0:t.connectedCallback,_disconnectedCallback:i||s?void 0:t.disconnectedCallback,_load:i?t.load:t.componentWillLoad,_loaded:i?t.loaded:t.componentDidLoad,_willUpdate:i?void 0:t.componentWillUpdate,_updated:i?void 0:t.componentDidUpdate,_destroy:t.destroy};const e=this._connectedCallback.bind(this),n=this._disconnectedCallback.bind(this),o=this._update.bind(this),r=this._updated.bind(this);i?t.constructor.prototype.addController.call(t,{hostConnected:e,hostDisconnected:n,hostUpdate:o,hostUpdated:r}):(t.connectedCallback=e,t.disconnectedCallback=n,t.componentWillLoad=this._load.bind(this),t.componentDidLoad=this._loaded.bind(this),t.componentWillUpdate=o,t.componentDidUpdate=r),this.hasDestroy&&(t.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){const t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It can not be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${B} prop.`)}void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout);const t=this.internals;t.enabledWatchers=t.allWatchers,q(),t.enableReadonly?.(),this._controllers.forEach(J),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(z),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){const t=this.internals.reactiveUtilsIntegrations;if(t.size>0)for(const i of t)"triggerLoad"in i?await i.triggerLoad():await s(i.hostLoad,i);await Promise.allSettled(Array.from(this._controllers,K,t)),await(this._originalLifecycles._load?.call(this.component)),this.hasDestroy&&F(this.component,B,(()=>this._setAutoDestroyTimeout()))}_loaded(){this._controllers.forEach(Q),this._originalLifecycles._loaded?.call(this.component)}_update(){this._controllers.forEach(X,this.component.changedProperties),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){const t=this.component;if(this._controllers.forEach(Y,t.changedProperties),this._originalLifecycles._updated?.call(this.component),this.isLit)t.changedProperties=new Map;else{const t=this._updatePromise;this._updatePromise=new i,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(Z),this._controllers.clear(),await(this._originalLifecycles._destroy?.call(this.component))}}_setAutoDestroyTimeout(){void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout),this.component.el.isConnected||this.component.autoDestroyDisabled||(this._autoDestroyTimeout=e((()=>{this.destroy().catch(console.error)}),G))}},B="autoDestroyDisabled",G=1e3,H=t=>t;function J(t){"triggerConnected"in t?t.triggerConnected():n(t.hostConnected,t)}function z(t){"triggerDisconnected"in t?t.triggerDisconnected():n(t.hostDisconnected,t)}async function K(t){this.has(t)||("triggerLoad"in t?await t.triggerLoad():await s(t.hostLoad,t))}function Q(t){"triggerLoaded"in t?t.triggerLoaded():n(t.hostLoaded,t)}function X(t){"triggerUpdate"in t?t.triggerUpdate(this):n(t.hostUpdate,t,this)}function Y(t){"triggerUpdated"in t?t.triggerUpdated(this):n(t.hostUpdated,t,this)}function Z(t){"triggerDestroy"in t?t.triggerDestroy():n(t.hostDestroy,t)}function tt(t,i,s){const e=t.manager.internals;return e.trackedValue!==V&&e.trackedValue!==s&&e.firePropTrackers(void 0,void 0),0===e.keyTrackers.length&&queueMicrotask((()=>e.firePropTrackers(void 0,void 0))),e.trackedValue=s,e.keyTrackers.push(((t,e)=>n(i,void 0,s===e?t:void 0))),s}function it(t,i){const s=m();return tt(s,(e=>{const n=e,o=s.manager,r=s,c=r[n];if(null!=c&&c!==t&&"function"==typeof i.set){const s=i.set(c,t,n);if(s!==c)if(o.isLit)r[n]=s;else{let t=!0;o.onConnected((()=>{t&&(t=!0,function(){S.setter=!0;try{return void(r[n]=s)}finally{S.setter=!1}}())}))}}!function(t,i,s){var e,n;const o=s,r=t.manager.internals,c="function"==typeof o.get?o.get:void 0;c&&((e=r.getters)[i]??(e[i]=[]),r.getters[i].unshift(c));const h="ignore"===o.set?et:o.set;h&&((n=r.setters)[i]??(n[i]=[]),r.setters[i].unshift(h))}(s,n,i)}),t)}var st,et=(t,i)=>i,nt=(st=class extends C{constructor(t,i){super(t);const s=this.exports;try{b(this.component);const t=i(this.component,this),e=this.exports!==s;if(t instanceof Promise){e||this.setProvisionalExports(t);const i=t.then((t=>{this.exports=t,super.catchUpLifecycle()})).catch((t=>{this._ready.reject(t),console.error(t)}));this.onLoad((async()=>await i))}else e&&void 0===t||(this.exports=t),queueMicrotask((()=>super.catchUpLifecycle()))}catch(t){this._ready.reject(t),console.error(t)}}catchUpLifecycle(){}},(...t)=>{const i=j,s=new st(...t),e=s.exports;L(i.at(-1));const o=s.component.manager.internals;var r;return o.markExports(s,e),s.watchExports((t=>o.markExports(s,t))),k!==(r=s)&&(k=r,queueMicrotask((()=>{k===r&&(k=void 0)}))),function(t,i,s){const e=Array.isArray(t)?t:[t];let o=e.length+1;const r=t=>{o-=1,void 0!==t&&(o=Math.min(o,0)),0===o&&i(t)};e.forEach((t=>function(t,i,s){const e=Object.keys(t),o=e.length;void 0===T&&queueMicrotask(q),T??(T=new Map);let r=T.get(t);return void 0===r&&(r={callbacks:[],keyCount:o},T.set(t,r)),r.keyCount!==o&&(r.callbacks.forEach((t=>t(e))),r.callbacks=[],r.keyCount=o),r.callbacks.push((e=>{const r=e[o];n(i,null,void 0===r?void 0:t[r]===s?r:void 0)})),s}(t,(i=>r(void 0===i?void 0:{key:i,host:t,isReactive:!1})),s)));const c=e.find((t=>"manager"in t&&"object"==typeof t.manager&&t.manager.component===t));return c&&tt(c,(t=>r(void 0===t?void 0:{key:t,host:c,isReactive:void 0!==g(c,t)})),s),s}([s.component,...i].reverse(),(t=>void 0===t?void 0:function(t,{host:i,key:s,isReactive:e},n){const o=i,r=o[s]!==n;o[s]!==t.exports&&!r&&n!==t.exports&&(o[s]=t.exports);if(i===t.component){if(e){const i=t.component.manager.internals;r&&i.markExports(t,o[s]),F(t.component,s,(s=>{s!==t.exports&&i.markExports(t,s)}))}t.assignedProperty=e?void 0:s}t.watchExports((()=>{if(o[s]===t.exports)return;const i=t.component.manager,e=i.internals.setters[s]?.includes(i.internals.readonlySetter);e?function(){S.readOnly=!0;try{return void(o[s]=t.exports)}finally{S.readOnly=!1}}():o[s]=t.exports}))}(s,t,e)),e)});function ot(t,i){if(!i)return t;const s={...t};return Object.entries(i).forEach((([i,e])=>{s[i]="object"==typeof e?ot(t[i],e):e??t[i]})),s}const rt=(t=>(i={})=>nt(void 0,((s,e)=>{const n=s;function c(t){const i=e.exports,s=i._original??i,n=ot(s,t);n._original=s,e.exports=n}if(e.onLifecycle((()=>o(s.el,t("./assets"),(({t9nLocale:t,t9nStrings:i,lang:o})=>{const r={...i,_lang:o,_t9nLocale:t,_loading:!1};e.exports=r;const h=i.componentLabel??i.widgetLabel;"string"==typeof h&&"label"in s&&null==s.label&&(s.label??(s.label=h)),c(n.messageOverrides)}),i.name))),"messageOverrides"in n&&e.onLifecycle((()=>F(n,"messageOverrides",c))),i.blocking)return e.ready;const h=r(s.el);return{_lang:h.lang,_t9nLocale:h.t9nLocale,_loading:!0}})))(y),ct={en:{id:"field-calculation",variables:[{name:"$layer",type:"featureSet",description:"The layer being calculated."}]}};async function ht(){return await import("./p-6bf13882.js")}const at=new class extends u{constructor(){super(...arguments),this._languageId="arcgis-sql-expression",this._languageOptions={},this._layerMap=new Map}updateFeatureLayerForModel(t,i){const s=this._getApiKey(t);this._layerMap.set(s,i)}setLanguageOptions(t){this._languageOptions=t}getFeatureLayerForModel(t){const i=this._getApiKey(t);return this._layerMap.get(i)}async setProfileForModel(t,i,s={locale:"en"}){h(i)&&(i=await async function(t,i="en"){if(!h(t))return;const s=await async function(t="en"){return await Promise.resolve(ct[t])}(i);if(!s)return;const e={variables:[],hiddenApiItems:t.hiddenApiItems?.map((t=>t.toLowerCase()))};return s.variables.forEach((i=>{if(t.disabledVariables?.includes(i.name))return;const s=t.definitions[i.name];if("featureSet"===i.type)return a(s)?e.variables.push({...i,type:i.type,definition:s}):void 0;throw Error(`sdkVariable type not supported (yet) type: ${i.type}`)})),e}(i,s.locale));const e=await f(s.locale,y("./assets/arcade-language/t9n"),"profile.t9n.");if(!e)throw new Error(`Failed to load the language bundle for ${s.locale}`);this.disposeForModel(t);const n=this._getApiKey(t),o=new l(i,e);this._profileMap.set(n,o);const r=(t=>{const{apiVersion:i,bundles:s,hiddenApiItems:e}=t.toEditorProfileDefinition(),n=t.variables[0];if(!n||"featureSet"!==n.type)throw Error("No variable found in the editor profile");const o=function(t){const{name:i}=t,s=t.getDescription(),{definition:e}=t.toProfileVariableDefinition(),n={label:i,detail:i,insertText:i,insertTextMode:d.exports.InsertTextMode.asIs,insertTextFormat:d.exports.InsertTextFormat.PlainText,kind:d.exports.CompletionItemKind.Field},o={name:i,description:s,type:"dictionary",properties:[],completion:n};if(!e||!("fields"in e))return o;const[r,h]=c(e.fields,s);return o.properties=r,n.documentation={kind:"markdown",value:h},o}(n);return{apiVersion:i,bundles:s,variables:[o],hiddenApiItems:e?.map((t=>t.toLowerCase()))}})(o);this.updateApiContextForModel(t,{locale:s.locale,profile:r});const u=i?.variables?.find((t=>"$layer"===t.name));u&&this.updateFeatureLayerForModel(t,u.definition)}async getApiLibrary(t){const i=p.parse(t),s=await async function(t){const i=await ht();return await i.getSqlExprWorker(t)}(i);return await s.getApiLibrary(this.getApiContextForModel(i))}};export{rt as a,ht as b,it as g,at as s,N as u}
6
+ import{B as t,D as i,C as s,F as e,G as n,H as o,J as r,f as c,i as h,b as a,m as d,L as u,d as f,E as l,U as p}from"./p-49d247b3.js";import{g as y}from"./p-48a82879.js";var v,g=(t,i)=>t.manager.internals.members?.[i]?.[0],w=Symbol.for("controller");function b(t){v!==t&&(v=t,queueMicrotask((()=>{v===t&&(v=void 0)})))}function m(){return v}var k,j=[];function L(t){if(void 0===t)return void(j=[]);const i=j.indexOf(t);j=-1===i?[...j,t]:j.slice(0,i+1),queueMicrotask((()=>{j=[]}))}var _,x=async(t,i)=>{const s=O(t);if(void 0===s)return t;if(await s.ready,"function"==typeof i){const t=s.watchExports((s=>i(s,t)))}return s.exports},M=async t=>{const i=O(t);return await i.ready,i},O=t=>{const i=function(){const t=k;return k=void 0,t}();if(void 0!==i)return i;const s=m().manager.internals.resolveExports(t);return void 0!==s?s:(t=>"object"==typeof t&&null!==t&&(w in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t)?t:void 0},S={setter:!1,getter:!1,readOnly:!1},U=new WeakMap;_=w;var C=class{constructor(t){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new i,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[_]=!0,this.ready=this._ready.promise,this._exports=P(this),this._exportWatchers=new Set;const s=t??m();this.component=s,this.component.addController(this),L(this),void 0===this.component.manager||queueMicrotask((()=>this.catchUpLifecycle()))}catchUpLifecycle(){const{manager:t}=this.component;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t._loadCalled||this.triggerLoad().then((()=>{!t.loadedCalled||this.triggerLoaded()})).catch(console.error)}get exports(){return this._exports}set exports(t){const i=this._exports;i!==t&&(this._exports=t,this._exportWatchers.forEach(n),this.connectedCalled&&!1!==this.assignedProperty&&this.component.requestUpdate(this.assignedProperty,i)),this._ready.resolve(t)}setProvisionalExports(t){this._exports=P(t),this._exportWatchers.forEach(n)}watchExports(t){const i=()=>t(this._exports);return this._exportWatchers.add(i),()=>{this._exportWatchers.delete(i)}}get use(){return b(this.component),x}get useRef(){return b(this.component),M}get useRefSync(){return b(this.component),O}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this._callbacks.hostConnected.push(t)}onDisconnected(t){this._callbacks.hostDisconnected.push(t)}onLoad(t){this._callbacks.hostLoad.push(t)}onLoaded(t){this._callbacks.hostLoaded.push(t)}onUpdate(t){this._callbacks.hostUpdate.push(t)}onUpdated(t){this._callbacks.hostUpdated.push(t)}onDestroy(t){this._callbacks.hostDestroy.push(t)}onLifecycle(t){this._callbacks.hostLifecycle.push(t),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(t)}triggerConnected(){const t=this;t.hostConnected&&n(t.hostConnected,t),this._callbacks.hostConnected.forEach(n),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&n(t.hostDisconnected,t),this._callbacks.hostDisconnected.forEach(n),this._lifecycleCleanups.forEach(n),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;const t=this;t.hostLoad&&await s(t.hostLoad,t),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(s)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;const t=this;t.hostLoaded&&n(t.hostLoaded,t),this._callbacks.hostLoaded.forEach(n),this.loadedCalled=!0}triggerUpdate(t){const i=this;i.hostUpdate&&n(i.hostUpdate,i,t),this._callbacks.hostUpdate.forEach(D,t)}triggerUpdated(t){const i=this;i.hostUpdated&&n(i.hostUpdated,i,t),this._callbacks.hostUpdated.forEach(D,t)}triggerDestroy(){const t=this;t.hostDestroy&&n(t.hostDestroy,t),this._callbacks.hostDestroy.forEach(n)}triggerLifecycle(){const t=this;t.hostLifecycle&&this._callLifecycle((()=>t.hostLifecycle())),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(t){b(this.component);const i=n(t);(Array.isArray(i)?i:[i]).forEach((t=>{"function"==typeof t?this._lifecycleCleanups.push(t):"object"==typeof t&&"function"==typeof t.remove&&this._lifecycleCleanups.push(t.remove)}))}};function D(t){n(t,void 0,this)}var E=C;function P(t){if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const i=new Proxy(t,{get(t,s,e){if(!A.has(s)||!(s in t)||t[s]!==i)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,e):void 0},set:(t,i,s,e)=>Reflect.set(t,i,s,e)});return i}var A=new Set(["exports","_exports"]),T=void 0;function q(){Array.from(T?.entries()??[]).forEach((([t,{callbacks:i}])=>{const s=Object.keys(t);i.forEach((t=>t(s)))})),T=void 0}function F(t,i,s){var e;const o=i,r=t.manager.internals;(e=r.allWatchers)[o]??(e[o]=[]);const c=r.allWatchers[o],h=s,a=(t,i,s)=>n(h,null,t,i,s);return c.push(a),()=>{const t=c.indexOf(a);-1!==t&&c.splice(t,1)}}var $=class{constructor(t){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;const t=this.component.manager.internals;Object.entries(t.members).forEach((([i,[s]])=>{var e;2048&s&&((e=t.setters)[i]??(e[i]=[]),t.setters[i].push(t.readonlySetter))}))},this.trackedValue=V,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this.reactiveUtilsIntegrations=new Set,this._exports=new WeakMap,this.readonlySetter=(t,i,s)=>{if(S.readOnly)return t;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=t}firePropTrackers(t,i){const s=this.keyTrackers;this.trackedValue=V,this.keyTrackers=[],s.forEach((s=>s(t,i)))}getSetProxy(t){const i=this.component,s=i.constructor.prototype;if(this._getSetProxy(s,t,"class"),i.manager.isLit)return;const e=i.el.constructor.prototype;s!==e&&this._getSetProxy(e,t,"html")}_getSetProxy(t,i,s){const e=g(this.component,i);let n;do{n=Object.getOwnPropertyDescriptor(t,i)}while(!n&&(t=Object.getPrototypeOf(t)));if(!n)return;const o=n.get,r=n.set,c=I in o,h=I in r;if(c&&h)return;const a=!c,d=!h,u=a?function(){let t=o.call(this);const s=U.get(this);if(void 0===s)return t;const e=s.manager.internals;t=e.accessorGetter[i](t,i);const n=e.getters[i]??R;for(let s=0;s<n.length;s++)t=n[s](t,i);return t}:o,f=d?function(t){const s=o.call(this),n=U.get(this);if(void 0===n)return void r.call(this,t);let c=n.manager.isLit?t??void 0:function(t,i=8){return null==t||"object"==typeof t||"function"==typeof t?t:4&i?"false"!==t&&(""===t||!!t):2&i?Number.parseFloat(t):1&i?String(t):t}(t,e);const h=n.manager.internals;if(c===s)r.call(this,c);else{const t=S.setter?R:h.setters[i]??R;for(let e=0;e<t.length&&(c=t[e](c,s,i),c!==s);e++);c=h.accessorSetter[i](c,s,i),r.call(this,c),c!==s&&h.enabledWatchers[i]?.forEach((t=>t(c,s,i)))}h.keyTrackers.length>0&&h?.firePropTrackers(i,t)}:r;a&&(u[I]=!0),d&&(f[I]=!0),Object.defineProperty(t,i,{...n,get:u,set:f})}markExports(t,i){("object"==typeof i&&null!==i||"function"==typeof i)&&this._exports.set(i,t)}resolveExports(t){return"object"==typeof t&&null!==t||"function"==typeof t?this._exports.get(t):void 0}},R=[],I=Symbol(),V=Symbol(),N=(t,i)=>new W(t,i),W=class extends E{constructor(s,e){const n="addController"in s,o=new Set,r=s;if(r.addController=function(t){o.add(t),!(w in t)&&s.renderRoot&&s.el.isConnected&&t.hostConnected?.()},r.removeController=function(t){o.delete(t),t.controllerRemoved?.()},!n){const t=e??s.constructor.__forceUpdate;r.requestUpdate=()=>t(s)}super(s),this.internals=new $(this.component),this.destroyed=!1,this._updatePromise=new i,this._originalLifecycles={},this.isLit=n,this.component.manager=this,function(i,s){if(s)i.manager.internals.members=Object.fromEntries(Array.from(i.constructor.elementProperties,(([t,i])=>i.noAccessor?void 0:[t,[(i.readOnly?2048:0)|(i.state?32:16)]])).filter(t));else{const t=i.constructor,s=t.__registerControllers?.(i)??void 0;if(t.__registerControllers=void 0,"object"!=typeof s)throw new Error("Failed to retrieve component meta");i.manager.internals.members=Object.fromEntries(Object.entries(s).filter((([t,[i]])=>!!(63&i))))}}(s,n),this._controllers=o,this.exports=void 0,this.hasDestroy=B in this.component&&"function"==typeof this.component.destroy,this._bindLifecycleMethods();const c=this.internals;Object.keys(c.members).forEach((t=>{c.accessorGetter[t]=H,c.accessorSetter[t]=H,c.getSetProxy(t)})),n?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(s,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),L(void 0),b(s),U.set(s.el,s),U.set(s,s)}_bindLifecycleMethods(){const t=this.component,i=this.isLit,s=t.el===t;this._originalLifecycles={_connectedCallback:i||s?void 0:t.connectedCallback,_disconnectedCallback:i||s?void 0:t.disconnectedCallback,_load:i?t.load:t.componentWillLoad,_loaded:i?t.loaded:t.componentDidLoad,_willUpdate:i?void 0:t.componentWillUpdate,_updated:i?void 0:t.componentDidUpdate,_destroy:t.destroy};const e=this._connectedCallback.bind(this),n=this._disconnectedCallback.bind(this),o=this._update.bind(this),r=this._updated.bind(this);i?t.constructor.prototype.addController.call(t,{hostConnected:e,hostDisconnected:n,hostUpdate:o,hostUpdated:r}):(t.connectedCallback=e,t.disconnectedCallback=n,t.componentWillLoad=this._load.bind(this),t.componentDidLoad=this._loaded.bind(this),t.componentWillUpdate=o,t.componentDidUpdate=r),this.hasDestroy&&(t.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){const t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It can not be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${B} prop.`)}void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout);const t=this.internals;t.enabledWatchers=t.allWatchers,q(),t.enableReadonly?.(),this._controllers.forEach(J),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(z),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){const t=this.internals.reactiveUtilsIntegrations;if(t.size>0)for(const i of t)"triggerLoad"in i?await i.triggerLoad():await s(i.hostLoad,i);await Promise.allSettled(Array.from(this._controllers,K,t)),await(this._originalLifecycles._load?.call(this.component)),this.hasDestroy&&F(this.component,B,(()=>this._setAutoDestroyTimeout()))}_loaded(){this._controllers.forEach(Q),this._originalLifecycles._loaded?.call(this.component)}_update(){this._controllers.forEach(X,this.component.changedProperties),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){const t=this.component;if(this._controllers.forEach(Y,t.changedProperties),this._originalLifecycles._updated?.call(this.component),this.isLit)t.changedProperties=new Map;else{const t=this._updatePromise;this._updatePromise=new i,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(Z),this._controllers.clear(),await(this._originalLifecycles._destroy?.call(this.component))}}_setAutoDestroyTimeout(){void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout),this.component.el.isConnected||this.component.autoDestroyDisabled||(this._autoDestroyTimeout=e((()=>{this.destroy().catch(console.error)}),G))}},B="autoDestroyDisabled",G=1e3,H=t=>t;function J(t){"triggerConnected"in t?t.triggerConnected():n(t.hostConnected,t)}function z(t){"triggerDisconnected"in t?t.triggerDisconnected():n(t.hostDisconnected,t)}async function K(t){this.has(t)||("triggerLoad"in t?await t.triggerLoad():await s(t.hostLoad,t))}function Q(t){"triggerLoaded"in t?t.triggerLoaded():n(t.hostLoaded,t)}function X(t){"triggerUpdate"in t?t.triggerUpdate(this):n(t.hostUpdate,t,this)}function Y(t){"triggerUpdated"in t?t.triggerUpdated(this):n(t.hostUpdated,t,this)}function Z(t){"triggerDestroy"in t?t.triggerDestroy():n(t.hostDestroy,t)}function tt(t,i,s){const e=t.manager.internals;return e.trackedValue!==V&&e.trackedValue!==s&&e.firePropTrackers(void 0,void 0),0===e.keyTrackers.length&&queueMicrotask((()=>e.firePropTrackers(void 0,void 0))),e.trackedValue=s,e.keyTrackers.push(((t,e)=>n(i,void 0,s===e?t:void 0))),s}function it(t,i){const s=m();return tt(s,(e=>{const n=e,o=s.manager,r=s,c=r[n];if(null!=c&&c!==t&&"function"==typeof i.set){const s=i.set(c,t,n);if(s!==c)if(o.isLit)r[n]=s;else{let t=!0;o.onConnected((()=>{t&&(t=!0,function(){S.setter=!0;try{return void(r[n]=s)}finally{S.setter=!1}}())}))}}!function(t,i,s){var e,n;const o=s,r=t.manager.internals,c="function"==typeof o.get?o.get:void 0;c&&((e=r.getters)[i]??(e[i]=[]),r.getters[i].unshift(c));const h="ignore"===o.set?et:o.set;h&&((n=r.setters)[i]??(n[i]=[]),r.setters[i].unshift(h))}(s,n,i)}),t)}var st,et=(t,i)=>i,nt=(st=class extends C{constructor(t,i){super(t);const s=this.exports;try{b(this.component);const t=i(this.component,this),e=this.exports!==s;if(t instanceof Promise){e||this.setProvisionalExports(t);const i=t.then((t=>{this.exports=t,super.catchUpLifecycle()})).catch((t=>{this._ready.reject(t),console.error(t)}));this.onLoad((async()=>await i))}else e&&void 0===t||(this.exports=t),queueMicrotask((()=>super.catchUpLifecycle()))}catch(t){this._ready.reject(t),console.error(t)}}catchUpLifecycle(){}},(...t)=>{const i=j,s=new st(...t),e=s.exports;L(i.at(-1));const o=s.component.manager.internals;var r;return o.markExports(s,e),s.watchExports((t=>o.markExports(s,t))),k!==(r=s)&&(k=r,queueMicrotask((()=>{k===r&&(k=void 0)}))),function(t,i,s){const e=Array.isArray(t)?t:[t];let o=e.length+1;const r=t=>{o-=1,void 0!==t&&(o=Math.min(o,0)),0===o&&i(t)};e.forEach((t=>function(t,i,s){const e=Object.keys(t),o=e.length;void 0===T&&queueMicrotask(q),T??(T=new Map);let r=T.get(t);return void 0===r&&(r={callbacks:[],keyCount:o},T.set(t,r)),r.keyCount!==o&&(r.callbacks.forEach((t=>t(e))),r.callbacks=[],r.keyCount=o),r.callbacks.push((e=>{const r=e[o];n(i,null,void 0===r?void 0:t[r]===s?r:void 0)})),s}(t,(i=>r(void 0===i?void 0:{key:i,host:t,isReactive:!1})),s)));const c=e.find((t=>"manager"in t&&"object"==typeof t.manager&&t.manager.component===t));return c&&tt(c,(t=>r(void 0===t?void 0:{key:t,host:c,isReactive:void 0!==g(c,t)})),s),s}([s.component,...i].reverse(),(t=>void 0===t?void 0:function(t,{host:i,key:s,isReactive:e},n){const o=i,r=o[s]!==n;o[s]!==t.exports&&!r&&n!==t.exports&&(o[s]=t.exports);if(i===t.component){if(e){const i=t.component.manager.internals;r&&i.markExports(t,o[s]),F(t.component,s,(s=>{s!==t.exports&&i.markExports(t,s)}))}t.assignedProperty=e?void 0:s}t.watchExports((()=>{if(o[s]===t.exports)return;const i=t.component.manager,e=i.internals.setters[s]?.includes(i.internals.readonlySetter);e?function(){S.readOnly=!0;try{return void(o[s]=t.exports)}finally{S.readOnly=!1}}():o[s]=t.exports}))}(s,t,e)),e)});function ot(t,i){if(!i)return t;const s={...t};return Object.entries(i).forEach((([i,e])=>{s[i]="object"==typeof e?ot(t[i],e):e??t[i]})),s}const rt=(t=>(i={})=>nt(void 0,((s,e)=>{const n=s;function c(t){const i=e.exports,s=i._original??i,n=ot(s,t);n._original=s,e.exports=n}if(e.onLifecycle((()=>o(s.el,t("./assets"),(({t9nLocale:t,t9nStrings:i,lang:o})=>{const r={...i,_lang:o,_t9nLocale:t,_loading:!1};e.exports=r;const h=i.componentLabel??i.widgetLabel;"string"==typeof h&&"label"in s&&null==s.label&&(s.label??(s.label=h)),c(n.messageOverrides)}),i.name))),"messageOverrides"in n&&e.onLifecycle((()=>F(n,"messageOverrides",c))),i.blocking)return e.ready;const h=r(s.el);return{_lang:h.lang,_t9nLocale:h.t9nLocale,_loading:!0}})))(y),ct={en:{id:"field-calculation",variables:[{name:"$layer",type:"featureSet",description:"The layer being calculated."}]}};async function ht(){return await import("./p-ee4ad3e1.js")}const at=new class extends u{constructor(){super(...arguments),this._languageId="arcgis-sql-expression",this._languageOptions={},this._layerMap=new Map}updateFeatureLayerForModel(t,i){const s=this._getApiKey(t);this._layerMap.set(s,i)}setLanguageOptions(t){this._languageOptions=t}getFeatureLayerForModel(t){const i=this._getApiKey(t);return this._layerMap.get(i)}async setProfileForModel(t,i,s={locale:"en"}){h(i)&&(i=await async function(t,i="en"){if(!h(t))return;const s=await async function(t="en"){return await Promise.resolve(ct[t])}(i);if(!s)return;const e={variables:[],hiddenApiItems:t.hiddenApiItems?.map((t=>t.toLowerCase()))};return s.variables.forEach((i=>{if(t.disabledVariables?.includes(i.name))return;const s=t.definitions[i.name];if("featureSet"===i.type)return a(s)?e.variables.push({...i,type:i.type,definition:s}):void 0;throw Error(`sdkVariable type not supported (yet) type: ${i.type}`)})),e}(i,s.locale));const e=await f(s.locale,y("./assets/arcade-language/t9n"),"profile.t9n.");if(!e)throw new Error(`Failed to load the language bundle for ${s.locale}`);this.disposeForModel(t);const n=this._getApiKey(t),o=new l(i,e);this._profileMap.set(n,o);const r=(t=>{const{apiVersion:i,bundles:s,hiddenApiItems:e}=t.toEditorProfileDefinition(),n=t.variables[0];if(!n||"featureSet"!==n.type)throw Error("No variable found in the editor profile");const o=function(t){const{name:i}=t,s=t.getDescription(),{definition:e}=t.toProfileVariableDefinition(),n={label:i,detail:i,insertText:i,insertTextMode:d.exports.InsertTextMode.asIs,insertTextFormat:d.exports.InsertTextFormat.PlainText,kind:d.exports.CompletionItemKind.Field},o={name:i,description:s,type:"dictionary",properties:[],completion:n};if(!e||!("fields"in e))return o;const[r,h]=c(e.fields,s);return o.properties=r,n.documentation={kind:"markdown",value:h},o}(n);return{apiVersion:i,bundles:s,variables:[o],hiddenApiItems:e?.map((t=>t.toLowerCase()))}})(o);this.updateApiContextForModel(t,{locale:s.locale,profile:r});const u=i?.variables?.find((t=>"$layer"===t.name));u&&this.updateFeatureLayerForModel(t,u.definition)}async getApiLibrary(t){const i=p.parse(t),s=await async function(t){const i=await ht();return await i.getSqlExprWorker(t)}(i);return await s.getApiLibrary(this.getApiContextForModel(i))}};export{rt as a,ht as b,it as g,at as s,N as u}
@@ -1,6 +1,6 @@
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.59
4
+ * v4.31.0-next.60
5
5
  */
6
- import{r as e,c as i,h as s,H as a,a as t}from"./p-445c8bf7.js";import{u as o,s as r,a as c}from"./p-7aec584c.js";import{l as n}from"./p-c817c81c.js";const l=class{constructor(s){e(this,s),this.arcgisScriptChange=i(this,"arcgisScriptChange",3),this.manager=o(this),this._modelId=n(),this._insertAsSnippet=e=>{this._codeEditorElt?.insertSnippet(e.detail).catch(console.error)},this._updateApiLibrary=async()=>{this._apiLibrary=await r.getApiLibrary(this._modelId)},this._onCodeEditorValueChange=e=>{e.stopPropagation(),this.script=e.detail,this.arcgisScriptChange.emit(e.detail)},this._preparing=!1,this._editorProfile=void 0,this._activeAction=void 0,this._apiLibrary=void 0,this.messages=c(),this.profile=void 0,this.script=""}async _messagesChanged(){await this._updateEditorProfile().catch(console.error),await this._updateApiLibrary().catch(console.error)}async _profileChanged(){await this._updateEditorProfile().catch(console.error),await this._updateApiLibrary().catch(console.error)}async _updateEditorProfile(){this._preparing=!0;try{await r.setProfileForModel(this._modelId,this.profile)}catch{this._editorProfile=void 0}finally{this._preparing=!1}}_setActiveAction(e){this._activeAction=e}_handleActionClick(e){this._setActiveAction(e.target.dataset.panelName)}async componentWillLoad(){await this._updateEditorProfile().catch(console.error)}async componentDidLoad(){await this._updateApiLibrary()}disconnectedCallback(){r.disposeForModel(this._modelId)}render(){return s(a,{key:"63348b6e3e5aa7544203c5ec7270db7827c6f3ed"},s("div",{key:"203ed656208717c877c540ed5c49fc12338d6b15",class:"flex-row flex-adjustable"},s("div",{key:"4dfe400bbc9ab74ef86c4115ceeabbcb41913427",class:"flex-column flex-adjustable"},s("arcgis-code-editor",{key:"dfc9e247b39d2d9901ac911e147d993897809954",language:"arcgis-sql-expression",modelId:this._modelId,ref:e=>this._codeEditorElt=e,value:this.script??"",onArcgisValueChange:this._onCodeEditorValueChange})),"fields"===this._activeAction&&s("arcgis-sql-expression-fields",{key:"b5a5516264aae278f3feec00a5e20e2d0855024d",class:"side-panel flex-panel border-inline-start",loading:this._preparing,modelId:this._modelId,"data-panel-name":"none",onArcgisFieldSelected:this._insertAsSnippet,onArcgisClose:()=>this._setActiveAction(void 0)}),"functions"===this._activeAction&&s("arcgis-language-api-panel",{key:"6da236e289e8bcdadc27cadece6e1fb34c55b1da",class:"side-panel flex-panel border-inline-start",onArcgisItemSelected:this._insertAsSnippet,onArcgisClose:()=>this._setActiveAction(void 0),loading:this._preparing,apiLibrary:this._apiLibrary,"data-panel-name":"none"}),s("calcite-action-bar",{key:"91549ebac7e78165b911e5def1141010032dfa43",class:"side-action-bar border-inline-start",expanded:!1,position:"end"},s("calcite-action",{key:"32211e3b4e8db0530a047ba6c22234d15e504e17",id:"fields-action",text:this.messages.fields??"Fields",icon:"profile-variables",active:"fields"===this._activeAction,"data-panel-name":"fields",onClick:e=>this._handleActionClick(e)}),s("calcite-action",{key:"3c308d994b45c67df76414580d881a082333d2f8",id:"functions-action",text:this.messages.functions??"Functions",icon:"function",active:"functions"===this._activeAction,"data-panel-name":"functions",onClick:e=>this._handleActionClick(e)}))))}static get assetsDirs(){return["assets"]}get el(){return t(this)}static get watchers(){return{messages:["_messagesChanged"],profile:["_profileChanged"]}}};l.style="arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid var(--calcite-color-border-3);box-sizing:border-box;background-color:var(--calcite-color-foreground-1);height:100%}arcgis-sql-expression-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-sql-expression-editor .flex-panel{flex:1 0 auto}arcgis-sql-expression-editor .position-relative{position:relative}arcgis-sql-expression-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-sql-expression-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-sql-expression-editor .border-inline-start{border-inline-start:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:25%}arcgis-sql-expression-editor .side-panel{max-width:45%;width:600px}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";export{l as arcgis_sql_expression_editor}
6
+ import{r as e,c as i,h as s,H as a,a as t}from"./p-48a82879.js";import{u as o,s as r,a as n}from"./p-4aacb744.js";import{l as c}from"./p-49d247b3.js";const l=class{constructor(s){e(this,s),this.arcgisScriptChange=i(this,"arcgisScriptChange",3),this.manager=o(this),this._modelId=c(),this._insertAsSnippet=e=>{this._codeEditorElt?.insertSnippet(e.detail).catch(console.error)},this._updateApiLibrary=async()=>{this._apiLibrary=await r.getApiLibrary(this._modelId)},this._onCodeEditorValueChange=e=>{e.stopPropagation(),this.script=e.detail,this.arcgisScriptChange.emit(e.detail)},this._preparing=!1,this._editorProfile=void 0,this._activeAction=void 0,this._apiLibrary=void 0,this.messages=n(),this.profile=void 0,this.script=""}async _messagesChanged(){await this._updateEditorProfile().catch(console.error),await this._updateApiLibrary().catch(console.error)}async _profileChanged(){await this._updateEditorProfile().catch(console.error),await this._updateApiLibrary().catch(console.error)}async _updateEditorProfile(){this._preparing=!0;try{await r.setProfileForModel(this._modelId,this.profile)}catch{this._editorProfile=void 0}finally{this._preparing=!1}}_setActiveAction(e){this._activeAction=e}_handleActionClick(e){this._setActiveAction(e.target.dataset.panelName)}async componentWillLoad(){await this._updateEditorProfile().catch(console.error)}async componentDidLoad(){await this._updateApiLibrary()}disconnectedCallback(){r.disposeForModel(this._modelId)}render(){return s(a,{key:"63348b6e3e5aa7544203c5ec7270db7827c6f3ed"},s("div",{key:"203ed656208717c877c540ed5c49fc12338d6b15",class:"flex-row flex-adjustable"},s("div",{key:"4dfe400bbc9ab74ef86c4115ceeabbcb41913427",class:"flex-column flex-adjustable"},s("arcgis-code-editor",{key:"dfc9e247b39d2d9901ac911e147d993897809954",language:"arcgis-sql-expression",modelId:this._modelId,ref:e=>this._codeEditorElt=e,value:this.script??"",onArcgisValueChange:this._onCodeEditorValueChange})),"fields"===this._activeAction&&s("arcgis-sql-expression-fields",{key:"b5a5516264aae278f3feec00a5e20e2d0855024d",class:"side-panel flex-panel border-inline-start",loading:this._preparing,modelId:this._modelId,"data-panel-name":"none",onArcgisFieldSelected:this._insertAsSnippet,onArcgisClose:()=>this._setActiveAction(void 0)}),"functions"===this._activeAction&&s("arcgis-language-api-panel",{key:"6da236e289e8bcdadc27cadece6e1fb34c55b1da",class:"side-panel flex-panel border-inline-start",onArcgisItemSelected:this._insertAsSnippet,onArcgisClose:()=>this._setActiveAction(void 0),loading:this._preparing,apiLibrary:this._apiLibrary,"data-panel-name":"none"}),s("calcite-action-bar",{key:"91549ebac7e78165b911e5def1141010032dfa43",class:"side-action-bar border-inline-start",expanded:!1,position:"end"},s("calcite-action",{key:"32211e3b4e8db0530a047ba6c22234d15e504e17",id:"fields-action",text:this.messages.fields??"Fields",icon:"profile-variables",active:"fields"===this._activeAction,"data-panel-name":"fields",onClick:e=>this._handleActionClick(e)}),s("calcite-action",{key:"3c308d994b45c67df76414580d881a082333d2f8",id:"functions-action",text:this.messages.functions??"Functions",icon:"function",active:"functions"===this._activeAction,"data-panel-name":"functions",onClick:e=>this._handleActionClick(e)}))))}static get assetsDirs(){return["assets"]}get el(){return t(this)}static get watchers(){return{messages:["_messagesChanged"],profile:["_profileChanged"]}}};l.style="arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid var(--calcite-color-border-3);box-sizing:border-box;background-color:var(--calcite-color-foreground-1);height:100%}arcgis-sql-expression-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-sql-expression-editor .flex-panel{flex:1 0 auto}arcgis-sql-expression-editor .position-relative{position:relative}arcgis-sql-expression-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-sql-expression-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-sql-expression-editor .border-inline-start{border-inline-start:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:25%}arcgis-sql-expression-editor .side-panel{max-width:45%;width:600px}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";export{l as arcgis_sql_expression_editor}
@@ -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.59
4
+ * v4.31.0-next.60
5
5
  */
6
- import{M as e}from"./p-c817c81c.js";
6
+ import{M as e}from"./p-49d247b3.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
@@ -1,6 +1,6 @@
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.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  const o=()=>{};export{o as g}
@@ -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.59
4
+ * v4.31.0-next.60
5
5
  */
6
- import{conf as e,language as t}from"./p-9d798469.js";import"./p-c817c81c.js";
6
+ import{conf as e,language as t}from"./p-c79a1a66.js";import"./p-49d247b3.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
@@ -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.59
4
+ * v4.31.0-next.60
5
5
  */
6
- import{M as e}from"./p-c817c81c.js";
6
+ import{M as e}from"./p-49d247b3.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
@@ -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.59
4
+ * v4.31.0-next.60
5
5
  */
6
- import{M as t}from"./p-c817c81c.js";
6
+ import{M as t}from"./p-49d247b3.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
@@ -1,6 +1,6 @@
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.59
4
+ * v4.31.0-next.60
5
5
  */
6
- import{r as t,c as i,h as s,a as e}from"./p-445c8bf7.js";import{u as c,a as l,s as a}from"./p-7aec584c.js";import"./p-c817c81c.js";const o=class{constructor(s){t(this,s),this.arcgisClose=i(this,"arcgisClose",3),this.arcgisFieldSelected=i(this,"arcgisFieldSelected",3),this.manager=c(this),this.messages=l(),this._handleSelectField=t=>{if(t.target instanceof HTMLElement)switch(t.target.tagName.toLowerCase()){case"calcite-list-item":this.arcgisFieldSelected.emit(t.target.value??"");break;case"calcite-action":t.stopPropagation()}},this._handleSelectDomain=t=>{const i=t.target.value;this.arcgisFieldSelected.emit(i?`'${i}'`:"")},this._emitClose=()=>{this.arcgisClose.emit()},this._mutationCounter=1,this._flowItemRenderers=[],this._filterValue="",this.loading=!1,this.modelId=void 0}modelIdPropChanged(){this._flowItemRenderers=[]}disconnectedCallback(){this._flowObserver?.disconnect()}render(){const t=a.getFeatureLayerForModel(this.modelId??"");return!this.loading&&this.modelId&&t?s("calcite-flow",null,s("calcite-flow-item",{heading:this.messages.availablefields??"",closable:!0,onCalciteFlowItemClose:this._emitClose},s("calcite-list",{filterEnabled:!0},t.fields.map((t=>s("calcite-list-item",{key:t.name,onClick:this._handleSelectField,label:t.name,description:t.alias,value:t.name},t.domain&&s("calcite-action",{slot:"actions-end",text:"open",icon:"chevron-right",onClick:()=>{const i=t.domain;"coded-value"===i.type&&(this._flowItemRenderers=[...this._flowItemRenderers,()=>s("calcite-flow-item",{closable:!0,heading:this.messages.domainvalues??"",description:t.name,onCalciteFlowItemClose:this._emitClose},s("calcite-list",null,i.codedValues.map((t=>s("calcite-list-item",{key:t.code,onClick:this._handleSelectDomain,label:t.name,description:String(t.code),value:String(t.code)})))))])}})))))),this._flowItemRenderers.map((t=>t()))):s("calcite-block",{heading:this.messages.availablefields??""})}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{modelId:["modelIdPropChanged"]}}};o.style=":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";export{o as arcgis_sql_expression_fields}
6
+ import{r as t,c as i,h as s,a as e}from"./p-48a82879.js";import{u as c,a as l,s as a}from"./p-4aacb744.js";import"./p-49d247b3.js";const o=class{constructor(s){t(this,s),this.arcgisClose=i(this,"arcgisClose",3),this.arcgisFieldSelected=i(this,"arcgisFieldSelected",3),this.manager=c(this),this.messages=l(),this._handleSelectField=t=>{if(t.target instanceof HTMLElement)switch(t.target.tagName.toLowerCase()){case"calcite-list-item":this.arcgisFieldSelected.emit(t.target.value??"");break;case"calcite-action":t.stopPropagation()}},this._handleSelectDomain=t=>{const i=t.target.value;this.arcgisFieldSelected.emit(i?`'${i}'`:"")},this._emitClose=()=>{this.arcgisClose.emit()},this._mutationCounter=1,this._flowItemRenderers=[],this._filterValue="",this.loading=!1,this.modelId=void 0}modelIdPropChanged(){this._flowItemRenderers=[]}disconnectedCallback(){this._flowObserver?.disconnect()}render(){const t=a.getFeatureLayerForModel(this.modelId??"");return!this.loading&&this.modelId&&t?s("calcite-flow",null,s("calcite-flow-item",{heading:this.messages.availablefields??"",closable:!0,onCalciteFlowItemClose:this._emitClose},s("calcite-list",{filterEnabled:!0},t.fields.map((t=>s("calcite-list-item",{key:t.name,onClick:this._handleSelectField,label:t.name,description:t.alias,value:t.name},t.domain&&s("calcite-action",{slot:"actions-end",text:"open",icon:"chevron-right",onClick:()=>{const i=t.domain;"coded-value"===i.type&&(this._flowItemRenderers=[...this._flowItemRenderers,()=>s("calcite-flow-item",{closable:!0,heading:this.messages.domainvalues??"",description:t.name,onCalciteFlowItemClose:this._emitClose},s("calcite-list",null,i.codedValues.map((t=>s("calcite-list-item",{key:t.code,onClick:this._handleSelectDomain,label:t.name,description:String(t.code),value:String(t.code)})))))])}})))))),this._flowItemRenderers.map((t=>t()))):s("calcite-block",{heading:this.messages.availablefields??""})}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{modelId:["modelIdPropChanged"]}}};o.style=":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";export{o as arcgis_sql_expression_fields}
@@ -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.59
4
+ * v4.31.0-next.60
5
5
  */
6
- import{M as t}from"./p-c817c81c.js";
6
+ import{M as t}from"./p-49d247b3.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
@@ -1,6 +1,6 @@
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.59
4
+ * v4.31.0-next.60
5
5
  */
6
- import{D as e,g as t,P as s,x as i,Q as n}from"./p-c817c81c.js";import{s as o}from"./p-7aec584c.js";import"./p-445c8bf7.js";let r=new e;class a{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this.stopWorker()))}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null,r=new e),this._client=null}static async waitForWorker(){return await r.promise}async _getClientProxy(){if(!this._client){const{languageId:e,languageOptions:s}=this._defaults;this._worker=t.createWebWorker({moduleId:"SqlExprWorker",label:e,createData:{languageId:e,languageOptions:s}}),r.resolve(this._worker),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}var c,l;!function(e){e.ARGS="args",e.CLAUSES="clauses",e.ELSE="else",e.END="end",e.EXPR="expr",e.LEFT="left",e.OPERAND="operand",e.QUALIFIER="qualifier",e.RIGHT="right",e.START="start",e.VALUE="value"}(c||(c={})),function(e){e.CASE_EXPRESSION="case-expression",e.EXPRESSION_LIST="expression-list",e.FUNCTION="function",e.INTERVAL="interval",e.INTERVAL_QUALIFIER="interval-qualifier",e.WHEN_CLAUSE="when-clause",e.UNARY_EXPRESSION="unary-expression",e.BINARY_EXPRESSION="binary-expression"}(l||(l={})),Object.values({date:"DATE",float:"FLOAT",integer:"INTEGER",real:"REAL",smallint:"SMALLINT",time:"TIME",timestamp:"TIMESTAMP",varchar:"VARCHAR"});const u={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},h={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AND","AS","BETWEEN","BOTH","CASE","CAST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DAY","ELSE","END","ESCAPE","FALSE","FLOAT","FOR","FROM","HOUR","IN","INTEGER","INTERVAL","IS","LEADING","LIKE","MINUTE","MONTH","NOT","NULL","OR","POSITION","REAL","SECOND","SMALLINT","SUBSTRING","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRIM","TRUE","VARCHAR","WHEN","WITH","YEAR","ZONE"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL"],builtinFunctions:["CAST","EXTRACT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","ABS","ACOS","ASIN","ATAN","CEILING","COS","FLOOR","LOG","LOG10","POWER","ROUND","SIGN","SIN","TAN","CHAR_LENGTH","COALESCE","CONCAT","LOWER","POSITION","TRIM","UPPER"],builtinVariables:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}};class E{constructor(e,t){this._worker=e,this._defaults=t}async provideCompletionItems(e,t){try{const s=await this._worker(e.uri),i=e.getWordUntilPosition(t),n={startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:i.startColumn,endColumn:i.endColumn},o=this._defaults.getApiContextForModel(e.uri);return await s.doComplete(e.uri.toString(),n,t,o)}catch(e){return console.error(e),{suggestions:[]}}}}class d{constructor(e,i,{defaults:n,diagnosticService:o}){this._languageId=e,this._worker=i,this._disposables=[],this._listener=new Map,this._diagnosticsService=o,this._defaults=n;const r=e=>{const t=e.getLanguageId();if(t!==this._languageId)return;const i=s((()=>{this._doValidate(e,t).catch((e=>{throw e}))}));this._listener.set(e.uri.toString(),e.onDidChangeContent(i)),this._doValidate(e,t).catch(console.error)},a=e=>{const s=e.uri.toString();t.setModelMarkers(e,this._languageId,[]);const i=this._listener.get(s);i&&(i.dispose(),this._listener.delete(s))};this._disposables.push(t.onDidCreateModel(r)),this._disposables.push(t.onWillDisposeModel((e=>a(e)))),this._disposables.push(t.onDidChangeModelLanguage((e=>{a(e.model),r(e.model)}))),this._disposables.push(n.onDidChange((()=>{t.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(a(e),r(e))}))}))),this._disposables.push(n.onModelContextDidChange((e=>{t.getModels().forEach((t=>{t.getLanguageId()===this._languageId&&t.uri.toString()===e&&this._doValidate(t,this._languageId).catch(console.error)}))}))),this._disposables.push({dispose:()=>{this._listener.forEach((e=>e.dispose())),this._listener.clear()}}),t.getModels().forEach(r)}async _doValidate(e,s){if(e.isAttachedToEditor())try{const i=await this._worker(e.uri),n=this._defaults.getApiContextForModel(e.uri),o=await i.doValidation(e.uri.toString(),n);this._diagnosticsService.fireDiagnosticsChange(e.uri,o),t.setModelMarkers(e,s,o)}catch(e){console.error(e)}}}let T;async function p(...e){return await a.waitForWorker(),await new Promise(((t,s)=>{T?t(T(...e)):s(new Error("sql expression worker not registered!"))}))}const N=new class{constructor(){this._onDiagnosticsChange=new n}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function m(){return N}function I(e){const t=new a(e),s=async(...e)=>await t.getLanguageServiceWorker(...e);T=s,i.setMonarchTokensProvider(o.languageId,h),i.setLanguageConfiguration(o.languageId,u);const n=new E(s,o);i.registerCompletionItemProvider(o.languageId,n),new d(e.languageId,s,{defaults:e,diagnosticService:N})}export{m as getSqlExprDiagnosticService,p as getSqlExprWorker,I as setupMode}
6
+ import{D as e,g as t,P as s,x as i,Q as n}from"./p-49d247b3.js";import{s as o}from"./p-4aacb744.js";import"./p-48a82879.js";let r=new e;class a{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this.stopWorker()))}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null,r=new e),this._client=null}static async waitForWorker(){return await r.promise}async _getClientProxy(){if(!this._client){const{languageId:e,languageOptions:s}=this._defaults;this._worker=t.createWebWorker({moduleId:"SqlExprWorker",label:e,createData:{languageId:e,languageOptions:s}}),r.resolve(this._worker),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}var c,l;!function(e){e.ARGS="args",e.CLAUSES="clauses",e.ELSE="else",e.END="end",e.EXPR="expr",e.LEFT="left",e.OPERAND="operand",e.QUALIFIER="qualifier",e.RIGHT="right",e.START="start",e.VALUE="value"}(c||(c={})),function(e){e.CASE_EXPRESSION="case-expression",e.EXPRESSION_LIST="expression-list",e.FUNCTION="function",e.INTERVAL="interval",e.INTERVAL_QUALIFIER="interval-qualifier",e.WHEN_CLAUSE="when-clause",e.UNARY_EXPRESSION="unary-expression",e.BINARY_EXPRESSION="binary-expression"}(l||(l={})),Object.values({date:"DATE",float:"FLOAT",integer:"INTEGER",real:"REAL",smallint:"SMALLINT",time:"TIME",timestamp:"TIMESTAMP",varchar:"VARCHAR"});const u={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},h={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AND","AS","BETWEEN","BOTH","CASE","CAST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DAY","ELSE","END","ESCAPE","FALSE","FLOAT","FOR","FROM","HOUR","IN","INTEGER","INTERVAL","IS","LEADING","LIKE","MINUTE","MONTH","NOT","NULL","OR","POSITION","REAL","SECOND","SMALLINT","SUBSTRING","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRIM","TRUE","VARCHAR","WHEN","WITH","YEAR","ZONE"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL"],builtinFunctions:["CAST","EXTRACT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","ABS","ACOS","ASIN","ATAN","CEILING","COS","FLOOR","LOG","LOG10","POWER","ROUND","SIGN","SIN","TAN","CHAR_LENGTH","COALESCE","CONCAT","LOWER","POSITION","TRIM","UPPER"],builtinVariables:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}};class E{constructor(e,t){this._worker=e,this._defaults=t}async provideCompletionItems(e,t){try{const s=await this._worker(e.uri),i=e.getWordUntilPosition(t),n={startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:i.startColumn,endColumn:i.endColumn},o=this._defaults.getApiContextForModel(e.uri);return await s.doComplete(e.uri.toString(),n,t,o)}catch(e){return console.error(e),{suggestions:[]}}}}class d{constructor(e,i,{defaults:n,diagnosticService:o}){this._languageId=e,this._worker=i,this._disposables=[],this._listener=new Map,this._diagnosticsService=o,this._defaults=n;const r=e=>{const t=e.getLanguageId();if(t!==this._languageId)return;const i=s((()=>{this._doValidate(e,t).catch((e=>{throw e}))}));this._listener.set(e.uri.toString(),e.onDidChangeContent(i)),this._doValidate(e,t).catch(console.error)},a=e=>{const s=e.uri.toString();t.setModelMarkers(e,this._languageId,[]);const i=this._listener.get(s);i&&(i.dispose(),this._listener.delete(s))};this._disposables.push(t.onDidCreateModel(r)),this._disposables.push(t.onWillDisposeModel((e=>a(e)))),this._disposables.push(t.onDidChangeModelLanguage((e=>{a(e.model),r(e.model)}))),this._disposables.push(n.onDidChange((()=>{t.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(a(e),r(e))}))}))),this._disposables.push(n.onModelContextDidChange((e=>{t.getModels().forEach((t=>{t.getLanguageId()===this._languageId&&t.uri.toString()===e&&this._doValidate(t,this._languageId).catch(console.error)}))}))),this._disposables.push({dispose:()=>{this._listener.forEach((e=>e.dispose())),this._listener.clear()}}),t.getModels().forEach(r)}async _doValidate(e,s){if(e.isAttachedToEditor())try{const i=await this._worker(e.uri),n=this._defaults.getApiContextForModel(e.uri),o=await i.doValidation(e.uri.toString(),n);this._diagnosticsService.fireDiagnosticsChange(e.uri,o),t.setModelMarkers(e,s,o)}catch(e){console.error(e)}}}let T;async function p(...e){return await a.waitForWorker(),await new Promise(((t,s)=>{T?t(T(...e)):s(new Error("sql expression worker not registered!"))}))}const N=new class{constructor(){this._onDiagnosticsChange=new n}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function m(){return N}function I(e){const t=new a(e),s=async(...e)=>await t.getLanguageServiceWorker(...e);T=s,i.setMonarchTokensProvider(o.languageId,h),i.setLanguageConfiguration(o.languageId,u);const n=new E(s,o);i.registerCompletionItemProvider(o.languageId,n),new d(e.languageId,s,{defaults:e,diagnosticService:N})}export{m as getSqlExprDiagnosticService,p as getSqlExprWorker,I as setupMode}
@@ -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.59
4
+ * v4.31.0-next.60
5
5
  */
6
- import{N as t,M as e}from"./p-c817c81c.js";
6
+ import{N as t,M as e}from"./p-49d247b3.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
@@ -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.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  'use strict';
7
7
 
@@ -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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-fb2ecc81.js');
9
- const index = require('./index-706035f1.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-7cb3bee2.js');
9
+ const index = require('./index-cba76501.js');
10
10
 
11
11
  /**
12
12
  * Returns the arcade diagnostic service.
@@ -40,7 +40,7 @@ async function getArcadeWorker(uri) {
40
40
  * @returns arcade mode module
41
41
  */
42
42
  async function getMode() {
43
- return await Promise.resolve().then(function () { return require('./arcade-mode-12d9d77e.js'); });
43
+ return await Promise.resolve().then(function () { return require('./arcade-mode-ba7da99f.js'); });
44
44
  }
45
45
 
46
46
  // #region convert editor profile to apiProfile
@@ -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.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-fb2ecc81.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-7cb3bee2.js');
9
9
 
10
10
  var V={False:"false",Null:"null",True:"true"},f={Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"},Ee=["++","--"],Je=["-","+","!","~"],Qe=["=","/=","*=","%=","+=","-="],Ze=["||","&&"],Bt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];Ee.forEach(t=>U[t.length-1]?.push(t));Je.forEach(t=>U[t.length-1]?.push(t));Ze.forEach(t=>U[t.length-1]?.push(t));Qe.forEach(t=>U[t.length-1]?.push(t));Bt.forEach(t=>U[t.length-1]?.push(t));var ft=Object.values(f),gt=Object.values(V);gt.map(t=>({label:t,kind:languageDefaultsBase.main.exports.CompletionItemKind.Constant}));ft.map(t=>({label:t,kind:languageDefaultsBase.main.exports.CompletionItemKind.Keyword}));
11
11
 
@@ -1,16 +1,16 @@
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.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-706035f1.js');
11
- const languageDefaultsBase = require('./language-defaults-base-fb2ecc81.js');
12
- const sqlExprDefaults = require('./sql-expr-defaults-380da546.js');
13
- const arcadeDefaults = require('./arcade-defaults-12892684.js');
10
+ const index = require('./index-cba76501.js');
11
+ const languageDefaultsBase = require('./language-defaults-base-7cb3bee2.js');
12
+ const sqlExprDefaults = require('./sql-expr-defaults-50a75e9d.js');
13
+ const arcadeDefaults = require('./arcade-defaults-8f210819.js');
14
14
 
15
15
  const DevelopersWebSitePath = "https://developers.arcgis.com/arcade/";
16
16
  const MaxArrayItems = 100;
@@ -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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-706035f1.js');
11
- const appGlobals = require('./app-globals-89b2f480.js');
10
+ const index = require('./index-cba76501.js');
11
+ const appGlobals = require('./app-globals-2c78c6b1.js');
12
12
 
13
13
  /*
14
14
  Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
@@ -1,15 +1,15 @@
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.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-706035f1.js');
11
- const sqlExprDefaults = require('./sql-expr-defaults-380da546.js');
12
- const languageDefaultsBase = require('./language-defaults-base-fb2ecc81.js');
10
+ const index = require('./index-cba76501.js');
11
+ const sqlExprDefaults = require('./sql-expr-defaults-50a75e9d.js');
12
+ const languageDefaultsBase = require('./language-defaults-base-7cb3bee2.js');
13
13
 
14
14
  const sqlExpressionEditorCss = "arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid var(--calcite-color-border-3);box-sizing:border-box;background-color:var(--calcite-color-foreground-1);height:100%}arcgis-sql-expression-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-sql-expression-editor .flex-panel{flex:1 0 auto}arcgis-sql-expression-editor .position-relative{position:relative}arcgis-sql-expression-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-sql-expression-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-sql-expression-editor .border-inline-start{border-inline-start:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:25%}arcgis-sql-expression-editor .side-panel{max-width:45%;width:600px}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";
15
15
  const ArcgisSqlExpressionEditorStyle0 = sqlExpressionEditorCss;
@@ -1,15 +1,15 @@
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.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-706035f1.js');
11
- const sqlExprDefaults = require('./sql-expr-defaults-380da546.js');
12
- require('./language-defaults-base-fb2ecc81.js');
10
+ const index = require('./index-cba76501.js');
11
+ const sqlExprDefaults = require('./sql-expr-defaults-50a75e9d.js');
12
+ require('./language-defaults-base-7cb3bee2.js');
13
13
 
14
14
  const sqlExpressionFieldsCss = ":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";
15
15
  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.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  'use strict';
7
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.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-fb2ecc81.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-7cb3bee2.js');
9
9
 
10
10
  /*!-----------------------------------------------------------------------------
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-fb2ecc81.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-7cb3bee2.js');
9
9
 
10
10
  /*!-----------------------------------------------------------------------------
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-fb2ecc81.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-7cb3bee2.js');
9
9
 
10
10
  /*!-----------------------------------------------------------------------------
11
11
  * 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.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  'use strict';
7
7
 
@@ -1,15 +1,15 @@
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.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const arcadeDefaults = require('./arcade-defaults-12892684.js');
11
- require('./language-defaults-base-fb2ecc81.js');
12
- require('./index-706035f1.js');
10
+ const arcadeDefaults = require('./arcade-defaults-8f210819.js');
11
+ require('./language-defaults-base-7cb3bee2.js');
12
+ require('./index-cba76501.js');
13
13
 
14
14
 
15
15
 
@@ -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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  'use strict';
7
7
 
8
- const typescript = require('./typescript-eb9433ac.js');
9
- require('./language-defaults-base-fb2ecc81.js');
8
+ const typescript = require('./typescript-e19c8c21.js');
9
+ require('./language-defaults-base-7cb3bee2.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-fb2ecc81.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-7cb3bee2.js');
9
9
 
10
10
  /*!-----------------------------------------------------------------------------
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.