@arcgis/coding-components 4.29.0-beta.4 → 4.29.0-beta.41
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/LICENSE.md +1 -1
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.en.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.en.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.en.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.en.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.en.json +8 -8
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +24 -22
- package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +34 -35
- package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +7 -5
- package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +41 -40
- package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +24 -22
- package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +163 -161
- package/dist/arcgis-coding-components/index.esm.js +1 -1
- package/dist/arcgis-coding-components/{p-3eb641a2.js → p-15b09ea0.js} +2 -2
- package/dist/arcgis-coding-components/{p-74e0738d.js → p-2053efe5.js} +3 -3
- package/dist/arcgis-coding-components/{p-5fe913f0.js → p-4056fd39.js} +3 -3
- package/dist/arcgis-coding-components/p-5d670bd2.js +2 -0
- package/dist/arcgis-coding-components/p-6b0c537d.js +62 -0
- package/dist/arcgis-coding-components/{p-683e3dd4.js → p-739259a0.js} +1 -1
- package/dist/arcgis-coding-components/{p-96c3ebcb.js → p-8919c3fb.js} +2 -2
- package/dist/arcgis-coding-components/p-a67252ce.entry.js +1 -0
- package/dist/arcgis-coding-components/{p-7fb19e9b.js → p-a8cfb543.js} +2 -2
- package/dist/arcgis-coding-components/{p-27d03fb2.js → p-c66fdb0b.js} +2 -2
- package/dist/arcgis-coding-components/{p-98f0e116.js → p-cfff9500.js} +1 -1
- package/dist/arcgis-coding-components/{p-a152b643.js → p-f56ec2fe.js} +2 -2
- package/dist/cjs/{arcade-defaults-55c18abe.js → arcade-defaults-0bd884a4.js} +64439 -59097
- package/dist/cjs/{arcade-mode-bd1630dd.js → arcade-mode-7bc7978f.js} +2 -2
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +40 -32
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/{css-3c67d381.js → css-7229b372.js} +1 -1
- package/dist/cjs/{cssMode-73d4ac47.js → cssMode-04695efd.js} +3 -3
- package/dist/cjs/{html-da599f39.js → html-4364b57b.js} +3 -3
- package/dist/cjs/{htmlMode-6f0883d3.js → htmlMode-3232d4d2.js} +3 -3
- package/dist/cjs/{index-f8a85eb8.js → index-6a382a34.js} +302 -64
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{javascript-92268a2f.js → javascript-1b17ffb0.js} +4 -4
- package/dist/cjs/{jsonMode-110ef3c9.js → jsonMode-85cfe5d7.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -12
- package/dist/cjs/{tsMode-8cb72aa2.js → tsMode-6ac3dd97.js} +3 -3
- package/dist/cjs/{typescript-edaad128.js → typescript-e8854a4f.js} +3 -3
- package/dist/components/arcade-api.js +10 -8
- package/dist/components/arcade-contribution.js +1 -1
- package/dist/components/arcade-results.js +13 -8
- package/dist/components/arcade-suggestions.js +11 -7
- package/dist/components/arcade-variables.js +10 -6
- package/dist/components/arcgis-arcade-editor.js +20 -14
- package/dist/components/code-editor.js +8 -4
- package/dist/components/index.d.ts +5 -8
- package/dist/components/index.js +1 -7
- package/dist/components/index2.js +2 -2
- package/dist/esm/{arcade-defaults-ac486973.js → arcade-defaults-145d902c.js} +64438 -59096
- package/dist/esm/{arcade-mode-fc719356.js → arcade-mode-4f74179e.js} +2 -2
- package/dist/esm/arcgis-arcade-api_6.entry.js +40 -32
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/{css-9066b96a.js → css-ff1e9f8c.js} +1 -1
- package/dist/esm/{cssMode-f452e699.js → cssMode-93b88d81.js} +3 -3
- package/dist/esm/{html-7c0b7520.js → html-7d557330.js} +3 -3
- package/dist/esm/{htmlMode-200a28b3.js → htmlMode-e9b83ec7.js} +3 -3
- package/dist/esm/{index-d4ec142a.js → index-fd6b2fd8.js} +302 -64
- package/dist/esm/index.js +2 -2
- package/dist/esm/{javascript-44a7aba3.js → javascript-83c892dd.js} +4 -4
- package/dist/esm/{jsonMode-fb784fa5.js → jsonMode-5c5eb0e2.js} +3 -3
- package/dist/esm/loader.js +4 -13
- package/dist/esm/{tsMode-890f3141.js → tsMode-77877670.js} +3 -3
- package/dist/esm/{typescript-4b8bacca.js → typescript-dab44a94.js} +3 -3
- package/dist/loader/index.d.ts +2 -2
- package/dist/types/components/arcade-api/arcade-api.d.ts +3 -2
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +3 -2
- package/dist/types/components/arcade-results/arcade-results.d.ts +3 -2
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +3 -2
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +3 -2
- package/dist/types/components.d.ts +78 -0
- package/dist/types/stencil-public-runtime.d.ts +53 -17
- package/package.json +26 -30
- package/dist/arcgis-coding-components/p-0fa0a06d.js +0 -2
- package/dist/arcgis-coding-components/p-2c5583d5.entry.js +0 -1
- package/dist/arcgis-coding-components/p-a388e974.js +0 -62
- package/dist/esm/polyfills/css-shim.js +0 -1
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
export { ArcgisArcadeVariables as ArcgisArcadeVariables } from '../types/components/arcade-variables/arcade-variables';
|
|
7
|
-
export { ArcgisCodeEditor as ArcgisCodeEditor } from '../types/components/code-editor/code-editor';
|
|
1
|
+
/**
|
|
2
|
+
* Get the base path to where the assets can be found. Use "setAssetPath(path)"
|
|
3
|
+
* if the path needs to be customized.
|
|
4
|
+
*/
|
|
5
|
+
export declare const getAssetPath: (path: string) => string;
|
|
8
6
|
|
|
9
7
|
/**
|
|
10
8
|
* Used to manually set the base path where assets can be found.
|
|
@@ -33,4 +31,3 @@ export interface SetPlatformOptions {
|
|
|
33
31
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
34
32
|
}
|
|
35
33
|
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
36
|
-
export * from '../types';
|
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
1
|
+
export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
2
|
export { a as arcade } from './arcade-defaults.js';
|
|
3
|
-
export { ArcgisArcadeApi, defineCustomElement as defineCustomElementArcgisArcadeApi } from './arcgis-arcade-api.js';
|
|
4
|
-
export { ArcgisArcadeEditor, defineCustomElement as defineCustomElementArcgisArcadeEditor } from './arcgis-arcade-editor.js';
|
|
5
|
-
export { ArcgisArcadeResults, defineCustomElement as defineCustomElementArcgisArcadeResults } from './arcgis-arcade-results.js';
|
|
6
|
-
export { ArcgisArcadeSuggestions, defineCustomElement as defineCustomElementArcgisArcadeSuggestions } from './arcgis-arcade-suggestions.js';
|
|
7
|
-
export { ArcgisArcadeVariables, defineCustomElement as defineCustomElementArcgisArcadeVariables } from './arcgis-arcade-variables.js';
|
|
8
|
-
export { ArcgisCodeEditor, defineCustomElement as defineCustomElementArcgisCodeEditor } from './arcgis-code-editor.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var h=class{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n;});}};function
|
|
1
|
+
var h=class{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n;});}};function S(e,t){let n=e;for(;n;){if(n===t)return !0;if(!n.parentNode)return !1;n.parentNode instanceof ShadowRoot?n=n.parentNode.host:n=n.parentNode;}return !1}function p(e,t,n=()=>{}){if(!t||t.length<=0)return;let r=new MutationObserver(o=>{for(let i of o)S(e,i.target)&&n();});return r.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0}),r}function T(e,t){let n=e;for(;n;){let r=n.closest(t);if(r)return r;let o=n.getRootNode();if(o===document)return null;n=o.host;}return null}function P(e){let t=T(e,":is(.calcite-mode-light, .calcite-mode-dark)");return t&&t.classList.contains("calcite-mode-dark")?"dark":"light"}function E(e,t,n){return T(e,`[${t}]`)?.getAttribute(t)??n}function M(e){return e.nodeType===Node.ELEMENT_NODE}function c(e,t=""){if(!M(e))return !1;if(e.matches(t))return setTimeout(()=>e?.setFocus(),0),!0;for(let r=0;r<e.children.length;r++)if(c(e.children[r],t))return !0;let n=e.shadowRoot;if(n){for(let r=0;r<n.children.length;r++)if(c(n.children[r],t))return !0}return !1}function C(e,t){if(!e||!e.shadowRoot)return;if(e.hasAttribute("hydrated")||e.hasAttribute("calcite-hydrated")){c(e,t);return}let n=new MutationObserver(()=>{n.disconnect(),c(e,t);});n.observe(e,{attributes:!0,attributeFilter:["hydrated","calcite-hydrated"]});}function d(e){let t="";for(let n=0;n<e;n++)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t}function k(){return [d(2),d(1),d(1),d(1),d(3)].join("-")}var x=new Set(["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"]),a=new Map;async function N(e,t,n=""){let r=`${t}/${n}${e}.json`;if(a.has(r))return a.get(r);try{let o=await fetch(r);if(o.ok){let s=await o.json();return a.set(r,s),s}if(e==="en"){a.set(r,void 0);return}let i=await N("en",t,n);return a.set(r,i),i}catch{a.set(r,void 0);return}}function R(e){let t=E(e,"lang",navigator?.language||"en");if(x.has(t))return {lang:t,t9nLocale:t};let n=t.slice(0,2);return {lang:t,t9nLocale:x.has(n)?n:"en"}}var f=new WeakMap,m=new WeakMap,_=new WeakMap;async function $(e,t,n){m.set(e,t),f.set(e,p(e._hostElement,["lang"],()=>{b(e,n);})),await b(e,n);}function F(e){f.get(e)?.disconnect(),f.delete(e),m.delete(e);}async function b(e,t){let{lang:n,t9nLocale:r}=R(e._hostElement);if(n===e._lang&&r===e._t9nLocale||(n!==e._lang&&(e._lang=n),r===e._t9nLocale))return;let o=_.get(e);if(!o){let i=m.get(e)??"",s=e._hostElement.tagName.toLowerCase().replace("arcgis-",""),u=`${i}/${s}/t9n`,l=`${s}.t9n.`;o=await N(r,u,l);}e._t9nLocale=r,e._t9nStrings=o,await t?.call(e);}var v='"',w="'";function L(e,t){return new Array(t+1).join(e)}function W(e){let t=v,n=w;e.indexOf(t)>=0&&e.indexOf(n)<0&&(n=v,t=w);let o=new RegExp("(^|[^\\\\])((?:\\\\{2})*)((?:\\\\"+n+")+)","g");e=e.replace(o,(s,u,l,g)=>u+l+L(n,g.length/2));let i=new RegExp("(^|[^\\\\])((?:\\\\{2})*)("+t+"+)","g");return e=e.replace(i,(s,u,l,g)=>u+l+L("\\"+t,g.length)),t+e+t}function z(e){let t=e?e.replaceAll(/[-[\]/{}()*+?.\\^$|]/g,"\\$&"):"^.*$";return new RegExp(t,"i")}function B(e,t={}){return (e??"").replace(/\{(.*?)\}/g,(n,r)=>t[r]??n)}function q(e){return "\u200E"+(e??"")+"\u200E"}function Q(e){return e!==null}function G(e){return e!==void 0}function V(e,t,n=!1){if(!e||!t)return !1;let r=new URL(e),o=new URL(t);return !n&&r.protocol!==o.protocol||r.host==null||o.host==null?!1:r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function D(e){try{return new URL(e),!0}catch{return !1}}
|
|
2
2
|
|
|
3
|
-
export { $, B, C, D, F, G, N,
|
|
3
|
+
export { $, B, C, D, F, G, N, P, Q, V, W, h, k, p, q, x, z };
|