@arcgis/coding-components 4.31.0-next.31 → 4.31.0-next.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +30 -30
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-f257c183.js → p-08b429c3.js} +2 -2
- package/dist/arcgis-coding-components/{p-5c8677cf.entry.js → p-0f7c3b46.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-536cdf7f.js → p-11d77b20.js} +2 -2
- package/dist/arcgis-coding-components/{p-c7d40b7a.js → p-1e8ecfad.js} +2 -2
- package/dist/arcgis-coding-components/{p-81152e8f.entry.js → p-26bd361b.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-b87b9e87.js → p-31373916.js} +2 -2
- package/dist/arcgis-coding-components/{p-18b2d2f5.js → p-355201f9.js} +1 -1
- package/dist/arcgis-coding-components/{p-c66ece75.js → p-41da41b7.js} +2 -2
- package/dist/arcgis-coding-components/{p-ec21f417.js → p-5712f14a.js} +2 -2
- package/dist/arcgis-coding-components/{p-98f1e54e.js → p-75433d50.js} +2 -2
- package/dist/arcgis-coding-components/{p-416666a0.js → p-81abf375.js} +9 -9
- package/dist/arcgis-coding-components/{p-25183ed9.js → p-86eb1d4c.js} +2 -2
- package/dist/arcgis-coding-components/{p-e14e15c3.js → p-8a69d580.js} +2 -2
- package/dist/arcgis-coding-components/{p-983460ea.js → p-993bc0d7.js} +1 -1
- package/dist/arcgis-coding-components/{p-9d4ed924.js → p-9f2c7bf5.js} +1 -1
- package/dist/arcgis-coding-components/{p-fc9f9713.js → p-b320932c.js} +2 -2
- package/dist/arcgis-coding-components/{p-9c648939.js → p-e9a06305.js} +2 -2
- package/dist/arcgis-coding-components/{p-6e7ad639.js → p-f544962a.js} +2 -2
- package/dist/arcgis-coding-components/{p-c61b56ec.entry.js → p-ffffcb8d.entry.js} +2 -2
- package/dist/cjs/{app-globals-a4195754.js → app-globals-4fe8cc70.js} +1 -1
- package/dist/cjs/{arcade-defaults-eb4c386e.js → arcade-defaults-a591369b.js} +4 -4
- package/dist/cjs/{arcade-language-features-443afb4a.js → arcade-language-features-58ffb6a0.js} +2 -2
- package/dist/cjs/{arcade-mode-b7f29ea1.js → arcade-mode-8e6464d3.js} +3 -3
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
- package/dist/cjs/{css-69196adc.js → css-67e59b62.js} +1 -1
- package/dist/cjs/{cssMode-859f4e51.js → cssMode-ac51091d.js} +2 -2
- package/dist/cjs/{html-4fbc00a9.js → html-3127941b.js} +2 -2
- package/dist/cjs/{htmlMode-a72d1bc1.js → htmlMode-c686ddee.js} +2 -2
- package/dist/cjs/{index-bdf3252c.js → index-8e823a40.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-58361a1e.js → javascript-37aa76f5.js} +3 -3
- package/dist/cjs/{jsonMode-193bd3e6.js → jsonMode-9d875fc8.js} +2 -2
- package/dist/cjs/{language-defaults-base-21562698.js → language-defaults-base-82944173.js} +9 -9
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{sql-expr-defaults-c60e217b.js → sql-expr-defaults-d74ef4f2.js} +4 -4
- package/dist/cjs/{sql-expr-mode-d24b61b3.js → sql-expr-mode-98437b6d.js} +5 -5
- package/dist/cjs/{tsMode-7a15853a.js → tsMode-916f8dc0.js} +2 -2
- package/dist/cjs/{typescript-f25eb5d3.js → typescript-05142a58.js} +2 -2
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-language-features.js +1 -1
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +1 -1
- package/dist/components/arcade-suggestions.js +1 -1
- package/dist/components/arcade-variables.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +1 -1
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-assets.d.ts +26 -26
- package/dist/components/arcgis-assets.js +2 -2
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/arcgis-language-api-panel.js +1 -1
- package/dist/components/arcgis-sql-expression-editor.js +1 -1
- package/dist/components/arcgis-sql-expression-fields.js +1 -1
- package/dist/components/chunk-EOMOY2EF.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/fields.js +1 -1
- package/dist/components/index.d.ts +3 -18
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/language-api-panel.js +1 -1
- package/dist/components/language-defaults-base.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/sql-expr-defaults.js +1 -1
- package/dist/components/sql-expr-mode.js +1 -1
- package/dist/components/sql-expression-fields.js +1 -1
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-fe777f03.js → app-globals-5a151155.js} +1 -1
- package/dist/esm/{arcade-defaults-59308750.js → arcade-defaults-5c8f894d.js} +4 -4
- package/dist/esm/{arcade-language-features-bb595565.js → arcade-language-features-664e727d.js} +2 -2
- package/dist/esm/{arcade-mode-ecfbfe83.js → arcade-mode-c4a6c6e6.js} +3 -3
- package/dist/esm/arcgis-arcade-editor_6.entry.js +5 -5
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
- package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
- package/dist/esm/{css-5d085688.js → css-6709b3e0.js} +1 -1
- package/dist/esm/{cssMode-ce6a5fa5.js → cssMode-76e8796d.js} +2 -2
- package/dist/esm/{html-3bbdbcc4.js → html-53d10c85.js} +2 -2
- package/dist/esm/{htmlMode-ba97a916.js → htmlMode-e9f070f1.js} +2 -2
- package/dist/esm/{index-c0152d8f.js → index-b16f119e.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-882d0f8e.js → javascript-785bbfd8.js} +3 -3
- package/dist/esm/{jsonMode-81390da0.js → jsonMode-cd6fe200.js} +2 -2
- package/dist/esm/{language-defaults-base-98463e74.js → language-defaults-base-e68e4d35.js} +9 -9
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{sql-expr-defaults-7dc678a7.js → sql-expr-defaults-bdfdf7b4.js} +4 -4
- package/dist/esm/{sql-expr-mode-3bee46a2.js → sql-expr-mode-e58e1f11.js} +5 -5
- package/dist/esm/{tsMode-c62203dd.js → tsMode-31b5e806.js} +2 -2
- package/dist/esm/{typescript-b12d65fd.js → typescript-b2aa1d45.js} +2 -2
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/package.json +11 -11
|
@@ -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.
|
|
4
|
+
* v4.31.0-next.33
|
|
5
5
|
*/
|
|
6
|
-
import{M as e}from"./p-
|
|
6
|
+
import{M as e}from"./p-81abf375.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.
|
|
4
|
+
* v4.31.0-next.33
|
|
5
5
|
*/
|
|
6
6
|
var e=Object.defineProperty,n=e=>{const n=new URL(e,pe.t);return n.origin!==he.location.origin?n.href:n.pathname},t={},l=e=>"object"==(e=typeof e)||"function"===e;function o(e){var n,t,l;return null!=(l=null==(t=null==(n=e.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:t.getAttribute("content"))?l:void 0}((n,t)=>{for(var l in t)e(n,l,{get:t[l],enumerable:!0})})({},{err:()=>s,map:()=>i,ok:()=>r,unwrap:()=>a,unwrapErr:()=>f});var r=e=>({isOk:!0,isErr:!1,value:e}),s=e=>({isOk:!1,isErr:!0,value:e});function i(e,n){if(e.isOk){const t=n(e.value);return t instanceof Promise?t.then((e=>r(e))):r(t)}if(e.isErr)return s(e.value);throw"should never get here"}var c,u,a=e=>{if(e.isOk)return e.value;throw e.value},f=e=>{if(e.isErr)return e.value;throw e.value},d="slot-fb{display:contents}slot-fb[hidden]{display:none}",h="http://www.w3.org/1999/xlink",m=(e,n,...t)=>{let o=null,r=null,s=!1,i=!1;const c=[],u=n=>{for(let t=0;t<n.length;t++)o=n[t],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!l(o))&&(o+=""),s&&i?c[c.length-1].l+=o:c.push(s?p(null,o):o),i=s)};if(u(t),n){n.key&&(r=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}if("function"==typeof e)return e(null===n?{}:n,c,y);const a=p(e,null);return a.o=n,c.length>0&&(a.i=c),a.u=r,a},p=(e,n)=>({h:0,m:e,l:n,p:null,i:null,o:null,u:null}),v={},y={forEach:(e,n)=>e.map(w).forEach(n),map:(e,n)=>e.map(w).map(n).map($)},w=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.v,vtag:e.m,vtext:e.l}),$=e=>{if("function"==typeof e.vtag){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),m(e.vtag,n,...e.vchildren||[])}const n=p(e.vtag,e.vtext);return n.o=e.vattrs,n.i=e.vchildren,n.u=e.vkey,n.v=e.vname,n},b=e=>re(e).$hostElement$,g=(e,n,t)=>{const l=b(e);return{emit:e=>k(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},k=(e,n,t)=>{const l=pe.ce(n,t);return e.dispatchEvent(l),l},S=new WeakMap,j=e=>"sc-"+e.$,O=(e,n,t,o,r,s)=>{if(t!==o){let i=ce(e,n),c=n.toLowerCase();if("class"===n){const n=e.classList,l=E(t),r=E(o);n.remove(...l.filter((e=>e&&!r.includes(e)))),n.add(...r.filter((e=>e&&!l.includes(e))))}else if("style"===n){for(const n in t)o&&null!=o[n]||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in o)t&&o[n]===t[n]||(n.includes("-")?e.style.setProperty(n,o[n]):e.style[n]=o[n])}else if("key"===n);else if("ref"===n)o&&o(e);else if(i||"o"!==n[0]||"n"!==n[1]){const u=l(o);if((i||u&&null!==o)&&!r)try{if(e.tagName.includes("-"))e[n]=o;else{const l=null==o?"":o;"list"===n?i=!1:null!=t&&e[n]==l||(e[n]=l)}}catch(e){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(n=c,a=!0),null==o||!1===o?!1===o&&""!==e.getAttribute(n)||(a?e.removeAttributeNS(h,n):e.removeAttribute(n)):(!i||4&s||r)&&!u&&(o=!0===o?"":o,a?e.setAttributeNS(h,n,o):e.setAttribute(n,o))}else if(n="-"===n[2]?n.slice(3):ce(he,c)?c.slice(2):c[2]+n.slice(3),t||o){const l=n.endsWith(x);n=n.replace(M,""),t&&pe.rel(e,n,t,l),o&&pe.ael(e,n,o,l)}}},C=/\s/,E=e=>e?e.split(C):[],x="Capture",M=RegExp(x+"$"),P=(e,n,l)=>{const o=11===n.p.nodeType&&n.p.host?n.p.host:n.p,r=e&&e.o||t,s=n.o||t;for(const e of L(Object.keys(r)))e in s||O(o,e,r[e],void 0,l,n.h);for(const e of L(Object.keys(s)))O(o,e,r[e],s[e],l,n.h)};function L(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var R=!1,U=(e,n,t)=>{const l=n.i[t];let o,r,s=0;if(null!==l.l)o=l.p=me.createTextNode(l.l);else if(o=l.p=me.createElement(l.m),P(null,l,R),null!=c&&o["s-si"]!==c&&o.classList.add(o["s-si"]=c),l.i)for(s=0;s<l.i.length;++s)r=U(e,l,s),r&&o.appendChild(r);return o["s-hn"]=u,o},T=(e,n,t,l,o,r)=>{let s,i=e;for(i.shadowRoot&&i.tagName===u&&(i=i.shadowRoot);o<=r;++o)l[o]&&(s=U(null,t,o),s&&(l[o].p=s,H(i,s,n)))},W=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.p;F(n),e&&e.remove()}}},A=(e,n,t=!1)=>e.m===n.m&&(!!t||e.u===n.u),D=(e,n,t=!1)=>{const l=n.p=e.p,o=e.i,r=n.i,s=n.l;null===s?(P(e,n,R),null!==o&&null!==r?((e,n,t,l,o=!1)=>{let r,s,i=0,c=0,u=0,a=0,f=n.length-1,d=n[0],h=n[f],m=l.length-1,p=l[0],v=l[m];for(;i<=f&&c<=m;)if(null==d)d=n[++i];else if(null==h)h=n[--f];else if(null==p)p=l[++c];else if(null==v)v=l[--m];else if(A(d,p,o))D(d,p,o),d=n[++i],p=l[++c];else if(A(h,v,o))D(h,v,o),h=n[--f],v=l[--m];else if(A(d,v,o))D(d,v,o),H(e,d.p,h.p.nextSibling),d=n[++i],v=l[--m];else if(A(h,p,o))D(h,p,o),H(e,h.p,d.p),h=n[--f],p=l[++c];else{for(u=-1,a=i;a<=f;++a)if(n[a]&&null!==n[a].u&&n[a].u===p.u){u=a;break}u>=0?(s=n[u],s.m!==p.m?r=U(n&&n[c],t,u):(D(s,p,o),n[u]=void 0,r=s.p),p=l[++c]):(r=U(n&&n[c],t,c),p=l[++c]),r&&H(d.p.parentNode,r,d.p)}i>f?T(e,null==l[m+1]?null:l[m+1].p,t,l,c,m):c>m&&W(n,i,f)})(l,o,n,r,t):null!==r?(null!==e.l&&(l.textContent=""),T(l,null,n,r,0,r.length-1)):null!==o&&W(o,0,o.length-1)):e.l!==s&&(l.data=s)},F=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(F)},H=(e,n,t)=>null==e?void 0:e.insertBefore(n,t),N=(e,n)=>{n&&!e.k&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.k=n)))},q=(e,n)=>{if(e.h|=16,!(4&e.h))return N(e,e.S),Oe((()=>G(e,n)));e.h|=512},G=(e,n)=>{const t=e.j;if(!t)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=Q(t,n?"componentWillLoad":"componentWillUpdate"),V(l,(()=>z(e,t,n)))},V=(e,n)=>_(e)?e.then(n):n(),_=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,z=async(e,n,t)=>{var l;const r=e.$hostElement$,s=r["s-rc"];t&&(e=>{const n=e.O,t=e.$hostElement$,l=n.h,r=((e,n)=>{var t;const l=j(n),r=de.get(l);if(e=11===e.nodeType?e:me,r)if("string"==typeof r){let s,i=S.get(e=e.head||e);if(i||S.set(e,i=new Set),!i.has(l)){{s=me.createElement("style"),s.innerHTML=r;const n=null!=(t=pe.C)?t:o(me);null!=n&&s.setAttribute("nonce",n),e.insertBefore(s,e.querySelector("link"))}4&n.h&&(s.innerHTML+=d),i&&i.add(l)}}else e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=r,t.classList.add(r+"-h"))})(e);B(e,n,r,t),s&&(s.map((e=>e())),r["s-rc"]=void 0);{const n=null!=(l=r["s-p"])?l:[],t=()=>I(e);0===n.length?t():(Promise.all(n).then(t),e.h|=4,n.length=0)}},B=(e,n,t,l)=>{try{n=n.render(),e.h&=-17,e.h|=2,((e,n,t=!1)=>{const l=e.$hostElement$,o=e.O,r=e.M||p(null,null),s=(e=>e&&e.m===v)(n)?n:m(null,null,n);if(u=l.tagName,o.P&&(s.o=s.o||{},o.P.map((([e,n])=>s.o[n]=l[e]))),t&&s.o)for(const e of Object.keys(s.o))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.o[e]=l[e]);s.m=null,s.h|=4,e.M=s,s.p=r.p=l.shadowRoot||l,c=l["s-sc"],D(r,s,t)})(e,n,l)}catch(n){ue(n,e.$hostElement$)}return null},I=e=>{const n=e.$hostElement$,t=e.j,l=e.S;64&e.h?Q(t,"componentDidUpdate"):(e.h|=64,X(n),Q(t,"componentDidLoad"),e.L(n),l||K()),e.R(n),e.k&&(e.k(),e.k=void 0),512&e.h&&je((()=>q(e,!1))),e.h&=-517},J=e=>{{const n=re(e),t=n.$hostElement$.isConnected;return t&&2==(18&n.h)&&q(n,!1),t}},K=()=>{X(me.documentElement),je((()=>k(he,"appload",{detail:{namespace:"arcgis-coding-components"}})))},Q=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){ue(e)}},X=e=>e.setAttribute(("hydrated","hydrated"),""),Y=(e,n,t)=>{var o;const r=e.prototype;if(n.U){e.watchers&&(n.T=e.watchers);const s=Object.entries(n.U);if(s.map((([e,[o]])=>{31&o||2&t&&32&o?Object.defineProperty(r,e,{get(){return((e,n)=>re(this).W.get(n))(0,e)},set(t){((e,n,t,o)=>{const r=re(e);if(!r)throw Error(`Couldn't find host element for "${o.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const s=r.$hostElement$,i=r.W.get(n),c=r.h,u=r.j;if(t=((e,n)=>null==e||l(e)?e:4&n?"false"!==e&&(""===e||!!e):1&n?e+"":e)(t,o.U[n][0]),(!(8&c)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(r.W.set(n,t),u)){if(o.T&&128&c){const e=o.T[n];e&&e.map((e=>{try{u[e](t,i,n)}catch(e){ue(e,s)}}))}if(2==(18&c)){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(t,i,n))return;q(r,!1)}}})(this,e,t,n)},configurable:!0,enumerable:!0}):1&t&&64&o&&Object.defineProperty(r,e,{value(...n){var t;const l=re(this);return null==(t=null==l?void 0:l.A)?void 0:t.then((()=>{var t;return null==(t=l.j)?void 0:t[e](...n)}))}})})),1&t){const t=new Map;r.attributeChangedCallback=function(e,l,o){pe.jmp((()=>{var s;const i=t.get(e);if(this.hasOwnProperty(i))o=this[i],delete this[i];else{if(r.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==o)return;if(null==i){const t=re(this),r=null==t?void 0:t.h;if(r&&!(8&r)&&128&r&&o!==l){const r=t.j,i=null==(s=n.T)?void 0:s[e];null==i||i.forEach((n=>{null!=r[n]&&r[n].call(r,o,l,e)}))}return}}this[i]=(null!==o||"boolean"!=typeof this[i])&&o}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=n.T)?o:{}),...s.filter((([e,n])=>15&n[0])).map((([e,l])=>{var o;const r=l[1]||e;return t.set(r,e),512&l[0]&&(null==(o=n.P)||o.push([e,r])),r}))]))}}return e},Z=e=>{Q(e,"connectedCallback")},ee=e=>{Q(e,"disconnectedCallback")},ne=(e,n={})=>{var t;const l=[],r=n.exclude||[],s=he.customElements,i=me.head,c=i.querySelector("meta[charset]"),u=me.createElement("style"),a=[];let f,h=!0;Object.assign(pe,n),pe.t=new URL(n.resourcesUrl||"./",me.baseURI).href;let m=!1;if(e.map((e=>{e[1].map((n=>{var t;const o={h:n[0],$:n[1],U:n[2],D:n[3]};4&o.h&&(m=!0),o.U=n[2],o.P=[],o.T=null!=(t=n[4])?t:{};const i=o.$,c=class extends HTMLElement{constructor(e){super(e),ie(e=this,o),1&o.h&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),h?a.push(this):pe.jmp((()=>(e=>{if(!(1&pe.h)){const n=re(e),t=n.O,l=()=>{};if(1&n.h)(null==n?void 0:n.j)?Z(n.j):(null==n?void 0:n.F)&&n.F.then((()=>Z(n.j)));else{n.h|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){N(n,n.S=t);break}}t.U&&Object.entries(t.U).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t)=>{let l;if(!(32&n.h)){if(n.h|=32,t.H){const e=fe(t);if(e&&"then"in e){const n=()=>{};l=await e,n()}else l=e;if(!l)throw Error(`Constructor for "${t.$}#${n.N}" was not found`);l.isProxied||(t.T=l.watchers,Y(l,t,2),l.isProxied=!0);const o=()=>{};n.h|=8;try{l.__forceUpdate=J,l.__registerControllers=e=>(se(e,n),n.O.U??{}),new l(n),l.__registerControllers=void 0}catch(e){ue(e)}n.h&=-9,n.h|=128,o(),Z(n.j)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>n.h|=128));if(l&&l.style){let e=l.style;const n=j(t);if(!de.has(n)){const l=()=>{};((e,n,t)=>{let l=de.get(e);ye&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,de.set(e,l)})(n,e,!!(1&t.h)),l()}}}const o=n.S,r=()=>q(n,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(e,n,t)}l()}})(this)))}disconnectedCallback(){pe.jmp((()=>(async()=>{if(!(1&pe.h)){const e=re(this);(null==e?void 0:e.j)?ee(e.j):(null==e?void 0:e.F)&&e.F.then((()=>ee(e.j)))}})()))}componentOnReady(){return re(this).F}};o.H=e[0],r.includes(i)||s.get(i)||(l.push(i),s.define(i,Y(c,o,1)))}))})),l.length>0&&(m&&(u.textContent+=d),u.textContent+=l+"{visibility:hidden}[hydrated]{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const e=null!=(t=pe.C)?t:o(me);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,c?c.nextSibling:i.firstChild)}h=!1,a.length?a.map((e=>e.connectedCallback())):pe.jmp((()=>f=setTimeout(K,30)))},te=(e,n)=>n,le=e=>pe.C=e,oe=new WeakMap,re=e=>oe.get(e),se=(e,n)=>oe.set(n.j=e,n),ie=(e,n)=>{const t={h:0,$hostElement$:e,O:n,W:new Map};return t.A=new Promise((e=>t.R=e)),t.F=new Promise((e=>t.L=e)),e["s-p"]=[],e["s-rc"]=[],oe.set(e,t)},ce=(e,n)=>n in e,ue=(e,n)=>(0,console.error)(e,n),ae=new Map,fe=e=>{const n=e.$.replace(/-/g,"_"),t=e.H;if(!t)return;const l=ae.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(ae.set(t,e),e[n])),ue)
|
|
7
7
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},de=new Map,he="undefined"!=typeof window?window:{},me=he.document||{head:{}},pe={h:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},ve=e=>Promise.resolve(e),ye=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),we=!1,$e=[],be=[],ge=(e,n)=>t=>{e.push(t),we||(we=!0,n&&4&pe.h?je(Se):pe.raf(Se))},ke=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){ue(e)}e.length=0},Se=()=>{ke($e),ke(be),(we=$e.length>0)&&pe.raf(Se)},je=e=>ve().then(e),Oe=ge(be,!0);export{te as F,v as H,b as a,ne as b,g as c,n as g,m as h,ve as p,se as r,le as s}
|
|
@@ -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.
|
|
4
|
+
* v4.31.0-next.33
|
|
5
5
|
*/
|
|
6
|
-
import{M as t}from"./p-
|
|
6
|
+
import{M as t}from"./p-81abf375.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.
|
|
4
|
+
* v4.31.0-next.33
|
|
5
5
|
*/
|
|
6
|
-
import{N as t,M as e}from"./p-
|
|
6
|
+
import{N as t,M as e}from"./p-81abf375.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.
|
|
4
|
+
* v4.31.0-next.33
|
|
5
5
|
*/
|
|
6
|
-
import{m as t,f as e,i as n,a,b as r,c as i,s,L as o,d as c,E as u,U as d}from"./p-
|
|
6
|
+
import{m as t,f as e,i as n,a,b as r,c as i,s,L as o,d as c,E as u,U as d}from"./p-81abf375.js";import{g as l}from"./p-355201f9.js";async function p(){return(await f()).getArcadeDiagnosticService()}async function f(){return await import("./p-11d77b20.js")}async function y(n,a=t.exports.CompletionItemKind.Variable){return await Promise.all(n.map((async n=>{switch(n.type){case"dictionary":return await async function(e,n){const{name:a,dictionaryVariables:r}=e,i=e.getDescription(),s=r.reduce(((t,e)=>{""!==t&&(t+=" \n \n"),t+=`**${e.name}** \n${e.type}`;const n=e.getDescription();return n&&(t+=` \n${n}`),t}),i);return{name:a,description:i,type:"dictionary",properties:await y(r,t.exports.CompletionItemKind.Field),completion:{label:a,detail:a,insertText:a,insertTextMode:t.exports.InsertTextMode.asIs,insertTextFormat:t.exports.InsertTextFormat.PlainText,kind:n,documentation:{kind:"markdown",value:s}}}}(n,a);case"feature":return await async function(n,a){const r=await n.loadSource(),{name:i}=n,s=n.getDescription(),o={label:i,detail:i,insertText:i,insertTextMode:t.exports.InsertTextMode.asIs,insertTextFormat:t.exports.InsertTextFormat.PlainText,kind:a},c={name:i,description:s,type:"dictionary",properties:[],completion:o};if(!r)return c;const[u,d]=e(r.fields,s,!0);return c.properties=u,o.documentation={kind:"markdown",value:d},c}(n,a);default:return function(e,n){const{name:a,type:r}=e,i=e.getDescription();return{name:a,description:i,type:r,completion:{label:a,detail:a,insertText:a,insertTextMode:t.exports.InsertTextMode.asIs,insertTextFormat:t.exports.InsertTextFormat.PlainText,kind:n,documentation:{kind:"markdown",value:i}}}}(n,a)}})))}async function w(t="en"){const e=m.get(t);if(e)return e;if(!s.has(t))return await w("en");try{const e=await fetch(l(`./assets/arcade-language/profiles/arcade-profiles.t9n.${t}.json`));return e.ok?function(t,e){const n=new Map;return e.forEach((t=>{n.set(t.id,t)})),m.set(t,n),n}(t,await e.json()):"en"===t?null:await w("en")}catch{return null}}const m=new Map;function h(t){switch(t.type){case"dictionary":return{...t,type:t.type,properties:(e=t.properties,e?.map(h))};case"array":return{...t,type:t.type,elementType:{type:"number",name:"number"}};default:return{...t,type:t.type}}var e}async function b(t,e="en"){if(!n(t))return;const s=await async function(t,e="en"){const n=await w(e);return n?.get(t)??null}(t.id,e);if(!s)return;const o={bundles:[...s.bundles],variables:[],hiddenApiItems:t.hiddenApiItems?.map((t=>t.toLowerCase()))};var c;return s.variables.forEach((e=>{if(t.disabledVariables?.includes(e.name))return;const n=t.definitions[e.name];switch(e.type){case"dictionary":return o.variables.push(h({...e,type:e.type,properties:Array.isArray(n)?[...n]:e.properties}));case"feature":if(!i(n))return;return o.variables.push({...e,type:e.type,definition:n});case"featureSet":if(!r(n))return;return o.variables.push({...e,type:e.type,definition:n});case"featureSetCollection":if(!a(n))return;return o.variables.push({...e,type:e.type,definition:n});default:return o.variables.push(h(e))}})),(c=t)&&"object"==typeof c&&"additionalVariables"in c&&Array.isArray(c.additionalVariables)&&o.variables.push(...t.additionalVariables??[]),o}const g=new class extends o{constructor(){super(...arguments),this._languageId="arcade",this._languageOptions={}}async setProfileForModel(t,e,a={locale:"en"}){n(e)&&(e=await b(e,a.locale));const r=await c(a.locale,l("./assets/arcade-language/t9n"),"profile.t9n.");if(!r)throw new Error(`Failed to load the language bundle for ${a.locale}`);this.disposeForModel(t);const i=this._getApiKey(t),s=new u(e,r);this._profileMap.set(i,s);const o=await async function(t){const{apiVersion:e,bundles:n,hiddenApiItems:a}=t.toEditorProfileDefinition();return{apiVersion:e,bundles:n,variables:await y(t.dictionaryVariables),hiddenApiItems:a?.map((t=>t.toLowerCase()))}}(s);this.updateApiContextForModel(t,{locale:a.locale,profile:o,snippets:a.snippets})}setLanguageOptions(t={}){this._languageOptions.assetsPath!==t.assetsPath&&(this._languageOptions={...this._languageOptions,...t},this._onDidChange.fire(this))}async getApiLibrary(t){const e=d.parse(t),n=await async function(t){const e=await f();return await e.getArcadeWorker(t)}(e);return await n.getApiLibrary(this.getApiContextForModel(e))}},x={setProfileForModel:g.setProfileForModel.bind(g)};export{x as a,g as b,f as c,p as g}
|