@arcgis/coding-components 4.29.0-beta.62 → 4.29.0-beta.63

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 (45) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
  2. package/dist/arcgis-coding-components/index.esm.js +1 -1
  3. package/dist/arcgis-coding-components/{p-061e6138.js → p-2a665136.js} +1 -1
  4. package/dist/arcgis-coding-components/{p-6ab0494e.js → p-3ba4deea.js} +1 -1
  5. package/dist/arcgis-coding-components/{p-0d7b2c4b.js → p-595d9a06.js} +1 -1
  6. package/dist/arcgis-coding-components/{p-d685a671.js → p-7b6af57c.js} +1 -1
  7. package/dist/arcgis-coding-components/{p-3e855f9c.js → p-7d5fcf2e.js} +8 -8
  8. package/dist/arcgis-coding-components/{p-faae9e50.js → p-989439a0.js} +1 -1
  9. package/dist/arcgis-coding-components/{p-9016dc94.js → p-9b4a0643.js} +1 -1
  10. package/dist/arcgis-coding-components/{p-dbf0130c.js → p-d7ca1083.js} +1 -1
  11. package/dist/arcgis-coding-components/{p-f6e12d5f.entry.js → p-e4efcbd0.entry.js} +1 -1
  12. package/dist/arcgis-coding-components/{p-93252bb5.js → p-fcdd0366.js} +1 -1
  13. package/dist/cjs/{arcade-defaults-a23c6057.js → arcade-defaults-5c2ff166.js} +251 -251
  14. package/dist/cjs/{arcade-mode-917ca23f.js → arcade-mode-23925c8d.js} +1 -1
  15. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +33 -33
  16. package/dist/cjs/{cssMode-d02be328.js → cssMode-2e878b70.js} +1 -1
  17. package/dist/cjs/{html-4a4537a9.js → html-847c7e39.js} +1 -1
  18. package/dist/cjs/{htmlMode-ce2c81dc.js → htmlMode-7a36db6d.js} +1 -1
  19. package/dist/cjs/index.cjs.js +1 -1
  20. package/dist/cjs/{javascript-3119740d.js → javascript-f5ca9a1a.js} +2 -2
  21. package/dist/cjs/{jsonMode-f9250e13.js → jsonMode-0d326a6e.js} +1 -1
  22. package/dist/cjs/{tsMode-9c22cf93.js → tsMode-e4abe99d.js} +1 -1
  23. package/dist/cjs/{typescript-2faa236a.js → typescript-c43b7258.js} +1 -1
  24. package/dist/components/arcade-api.js +6 -6
  25. package/dist/components/arcade-contribution.js +2 -2
  26. package/dist/components/arcade-defaults.js +8 -8
  27. package/dist/components/arcade-results.js +12 -12
  28. package/dist/components/arcade-suggestions.js +4 -4
  29. package/dist/components/arcade-variables.js +5 -5
  30. package/dist/components/arcgis-arcade-editor.js +15 -15
  31. package/dist/components/code-editor.js +5 -5
  32. package/dist/components/index2.js +2 -2
  33. package/dist/components/utilities.js +2 -2
  34. package/dist/esm/{arcade-defaults-7b495156.js → arcade-defaults-7525fe7a.js} +243 -243
  35. package/dist/esm/{arcade-mode-de60b33c.js → arcade-mode-312bbd22.js} +1 -1
  36. package/dist/esm/arcgis-arcade-api_6.entry.js +33 -33
  37. package/dist/esm/{cssMode-b54550d7.js → cssMode-71ce0374.js} +1 -1
  38. package/dist/esm/{html-5268964a.js → html-37ae4460.js} +1 -1
  39. package/dist/esm/{htmlMode-b54c7ef1.js → htmlMode-ae5b0f39.js} +1 -1
  40. package/dist/esm/index.js +1 -1
  41. package/dist/esm/{javascript-8f4cabbd.js → javascript-ad435a4b.js} +2 -2
  42. package/dist/esm/{jsonMode-94061c51.js → jsonMode-b8bb4df0.js} +1 -1
  43. package/dist/esm/{tsMode-928e55fb.js → tsMode-b967128d.js} +1 -1
  44. package/dist/esm/{typescript-44036302.js → typescript-a9a22ab3.js} +1 -1
  45. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h } from '@stencil/core/internal/client';
2
2
  import { S as StickyFilterInput } from './functional-components.js';
3
- import { F, U, k, B } from './index2.js';
3
+ import { W, B, j, Q } from './index2.js';
4
4
  import { b as arcadeDefaults } from './arcade-defaults.js';
5
5
  import '@esri/calcite-components/dist/components/calcite-flow-item.js';
6
6
  import '@esri/calcite-components/dist/components/calcite-action.js';
@@ -69,10 +69,10 @@ const ArcgisArcadeVariables = /*@__PURE__*/ proxyCustomElement(class ArcgisArcad
69
69
  //#endregion
70
70
  // #region Component lifecycle events
71
71
  async componentWillLoad() {
72
- await F(this, getAssetPath("./assets"));
72
+ await W(this, getAssetPath("./assets"));
73
73
  }
74
74
  disconnectedCallback() {
75
- U(this);
75
+ B(this);
76
76
  this._flowObserver?.disconnect();
77
77
  }
78
78
  // #endregion
@@ -97,7 +97,7 @@ const ArcgisArcadeVariables = /*@__PURE__*/ proxyCustomElement(class ArcgisArcad
97
97
  // When switching between flow the same reference is reused
98
98
  this._flowObserver = new MutationObserver(() => {
99
99
  // Get the last panel and try to set focus on the input element
100
- k(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
100
+ j(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
101
101
  });
102
102
  this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
103
103
  }
@@ -125,7 +125,7 @@ const ArcgisArcadeVariables = /*@__PURE__*/ proxyCustomElement(class ArcgisArcad
125
125
  }
126
126
  renderEditorVariables(collection) {
127
127
  // Filter the variables. Skip group, we will filter the children later on.
128
- const filterExpression = B(this._filterValue);
128
+ const filterExpression = Q(this._filterValue);
129
129
  const filteredVariables = collection.variables.filter((variable) => variable.passFilter(filterExpression));
130
130
  if (!filteredVariables.length) {
131
131
  return h("div", { class: "notice-container" }, this._t9nStrings?.noitems ?? "No item");
@@ -1,7 +1,7 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h, Fragment, Host } from '@stencil/core/internal/client';
1
+ import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h as h$1, Fragment, Host } from '@stencil/core/internal/client';
2
2
  import { editor, KeyCode } from 'monaco-editor';
3
3
  import { e as executeScript, D as DevelopersWebSitePath, d as defineCustomElement$5 } from './arcade-results.js';
4
- import { p, O, P, F, U } from './index2.js';
4
+ import { h, F, $, W, B } from './index2.js';
5
5
  import { s as setupMonacoEnvironment, a as getArcadeDiagnosticService } from './arcade-contribution.js';
6
6
  import { b as arcadeDefaults } from './arcade-defaults.js';
7
7
  import '@esri/calcite-components/dist/components/calcite-action-bar.js';
@@ -80,8 +80,8 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
80
80
  this.__registerHost();
81
81
  this.scriptChange = createEvent(this, "scriptChange", 3);
82
82
  this.diagnosticsChange = createEvent(this, "diagnosticsChange", 3);
83
- this._componentReadyDefer = new p();
84
- this._modelId = O();
83
+ this._componentReadyDefer = new h();
84
+ this._modelId = F();
85
85
  this._editorProfilePromise = Promise.resolve(undefined);
86
86
  this._disposables = [];
87
87
  this._executeScript = async () => {
@@ -222,7 +222,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
222
222
  * @internal
223
223
  */
224
224
  async updateThemeColors(colorRules) {
225
- const theme = P(this._hostElement);
225
+ const theme = $(this._hostElement);
226
226
  updateThemeColors(theme, colorRules);
227
227
  if (colorRules === undefined) {
228
228
  ["comment", "keyword", "identifier", "string", "number", "constant", "date"].forEach((key) => {
@@ -251,7 +251,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
251
251
  // Starts a locale observer. It will load the correct t9n strings for the component
252
252
  // when the locale changes. We also pass updateEditorProfile. It will be invoked the first
253
253
  // and on each locale change. The profile has to be refreshed on locale change as well.
254
- await F(this, assetsPath, async () => await this._updateEditorProfile());
254
+ await W(this, assetsPath, async () => await this._updateEditorProfile());
255
255
  }
256
256
  async componentDidLoad() {
257
257
  // Mark on component as ready.
@@ -279,7 +279,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
279
279
  await this._codeEditorElt?.setFocus();
280
280
  }
281
281
  disconnectedCallback() {
282
- U(this);
282
+ B(this);
283
283
  arcadeDefaults.disposeApiContextForModel(this._modelId);
284
284
  arcadeDefaults.disposeEditorProfileForModel(this._modelId);
285
285
  while (this._disposables.length) {
@@ -317,14 +317,14 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
317
317
  if (!this.testData) {
318
318
  return null;
319
319
  }
320
- return (h("calcite-action-bar", { class: "main-action-bar", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h("calcite-action-group", { scale: "s" }, h("calcite-action", { text: this._t9nStrings?.run ?? "Run", "text-enabled": true, icon: "play", scale: "s", loading: this._preparingProfile, onClick: this._executeScript }), this._executionResult ? (h("calcite-action", { text: this._t9nStrings?.lastresults ?? "Last results", active: this._showExecutionPanel, "text-enabled": true, icon: "access-string-results", iconFlipRtl: true, scale: "s", onClick: this._toggleShowExecutionPanel })) : null)));
320
+ return (h$1("calcite-action-bar", { class: "main-action-bar", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h$1("calcite-action-group", { scale: "s" }, h$1("calcite-action", { text: this._t9nStrings?.run ?? "Run", "text-enabled": true, icon: "play", scale: "s", loading: this._preparingProfile, onClick: this._executeScript }), this._executionResult ? (h$1("calcite-action", { text: this._t9nStrings?.lastresults ?? "Last results", active: this._showExecutionPanel, "text-enabled": true, icon: "access-string-results", iconFlipRtl: true, scale: "s", onClick: this._toggleShowExecutionPanel })) : null)));
321
321
  }
322
322
  //#endregion
323
323
  //#region Render Main Panel
324
324
  renderMainPanel() {
325
325
  return (
326
326
  // <div class="flex-adjustable">
327
- h("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, onValueChange: this._emitScriptChange, ref: (e) => (this._codeEditorElt = e) })
327
+ h$1("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, onValueChange: this._emitScriptChange, ref: (e) => (this._codeEditorElt = e) })
328
328
  // </div>
329
329
  );
330
330
  }
@@ -334,7 +334,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
334
334
  if (this.hideSideBar) {
335
335
  return null;
336
336
  }
337
- return (h("calcite-action-bar", { class: "side-action-bar border-inline-start", expanded: !!this.sideActionBarExpanded, position: "end", onCalciteActionBarToggle: this._toggleSideActionBarExpanded }, h("calcite-action-group", null, h("calcite-action", { id: "profile-variables-action", text: this._t9nStrings?.profilevariables ?? "Profile variables", icon: "profile-variables", active: this.openedSidePanel === "variables", onClick: this._toggleSidePanel, "data-panel-name": "variables" }), h("calcite-action", { id: "function-action", text: this._t9nStrings?.constantsandfunctions ?? "Constants and functions", icon: "function", active: this.openedSidePanel === "api", onClick: this._toggleSidePanel, "data-panel-name": "api" }), this.suggestions?.length ? (h(Fragment, null, h("calcite-action", { id: "suggestions-action", text: this._t9nStrings?.suggestions ?? "Suggestions", icon: "lightbulb", active: this.openedSidePanel === "suggestions", onClick: this._toggleSidePanel, "data-panel-name": "suggestions" }))) : null, this.hideDocumentationActions ? null : (h(Fragment, null, h("calcite-action", { id: "developer-website-action", text: this._t9nStrings?.help ?? "Help", icon: "question", iconFlipRtl: this._t9nLocale === "ar", onClick: this._openArcadeHelp }))))));
337
+ return (h$1("calcite-action-bar", { class: "side-action-bar border-inline-start", expanded: !!this.sideActionBarExpanded, position: "end", onCalciteActionBarToggle: this._toggleSideActionBarExpanded }, h$1("calcite-action-group", null, h$1("calcite-action", { id: "profile-variables-action", text: this._t9nStrings?.profilevariables ?? "Profile variables", icon: "profile-variables", active: this.openedSidePanel === "variables", onClick: this._toggleSidePanel, "data-panel-name": "variables" }), h$1("calcite-action", { id: "function-action", text: this._t9nStrings?.constantsandfunctions ?? "Constants and functions", icon: "function", active: this.openedSidePanel === "api", onClick: this._toggleSidePanel, "data-panel-name": "api" }), this.suggestions?.length ? (h$1(Fragment, null, h$1("calcite-action", { id: "suggestions-action", text: this._t9nStrings?.suggestions ?? "Suggestions", icon: "lightbulb", active: this.openedSidePanel === "suggestions", onClick: this._toggleSidePanel, "data-panel-name": "suggestions" }))) : null, this.hideDocumentationActions ? null : (h$1(Fragment, null, h$1("calcite-action", { id: "developer-website-action", text: this._t9nStrings?.help ?? "Help", icon: "question", iconFlipRtl: this._t9nLocale === "ar", onClick: this._openArcadeHelp }))))));
338
338
  }
339
339
  // private renderTooltip(id: string, label: string | undefined): VNode | null {
340
340
  // if (this.sideActionBarExpanded || !label) {
@@ -354,11 +354,11 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
354
354
  }
355
355
  switch (this.openedSidePanel) {
356
356
  case "api":
357
- return (h("arcgis-arcade-api", { class: "side-panel flex-panel border-inline-start", modelId: this._modelId, hideDocumentationActions: this.hideDocumentationActions, onItemSelected: this._insertAsSnippet, onClose: this._toggleSidePanel, "data-panel-name": "none" }));
357
+ return (h$1("arcgis-arcade-api", { class: "side-panel flex-panel border-inline-start", modelId: this._modelId, hideDocumentationActions: this.hideDocumentationActions, onItemSelected: this._insertAsSnippet, onClose: this._toggleSidePanel, "data-panel-name": "none" }));
358
358
  case "variables":
359
- return (h("arcgis-arcade-variables", { class: "side-panel flex-panel border-inline-start", loading: this._preparingProfile, modelId: this._modelId, onItemSelected: this._insertAsText, onClose: this._toggleSidePanel, "data-panel-name": "none" }));
359
+ return (h$1("arcgis-arcade-variables", { class: "side-panel flex-panel border-inline-start", loading: this._preparingProfile, modelId: this._modelId, onItemSelected: this._insertAsText, onClose: this._toggleSidePanel, "data-panel-name": "none" }));
360
360
  case "suggestions":
361
- return (h("arcgis-arcade-suggestions", { class: "side-panel flex-panel border-inline-start", suggestions: this.suggestions, onItemSelected: this._insertAsText, onClose: this._toggleSidePanel, "data-panel-name": "none" }));
361
+ return (h$1("arcgis-arcade-suggestions", { class: "side-panel flex-panel border-inline-start", suggestions: this.suggestions, onItemSelected: this._insertAsText, onClose: this._toggleSidePanel, "data-panel-name": "none" }));
362
362
  default:
363
363
  return null;
364
364
  }
@@ -369,12 +369,12 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
369
369
  if (!this._showExecutionPanel) {
370
370
  return null;
371
371
  }
372
- return (h("arcgis-arcade-results", { class: "flex-adjustable", openedResultPanel: this._resultPanel, loading: this._executingScript, result: this._executionResult, consoleLogs: this._consoleLogs, onOpenedResultPanelChange: this._onResultPanelChange, onClose: this._onExecutionPanelClose }));
372
+ return (h$1("arcgis-arcade-results", { class: "flex-adjustable", openedResultPanel: this._resultPanel, loading: this._executingScript, result: this._executionResult, consoleLogs: this._consoleLogs, onOpenedResultPanelChange: this._onResultPanelChange, onClose: this._onExecutionPanelClose }));
373
373
  }
374
374
  //#endregion
375
375
  //#region Render
376
376
  render() {
377
- return (h(Host, null, this.renderMainActionBar(), h("div", { class: "flex-row flex-adjustable" }, h("div", { class: "flex-column flex-adjustable" }, this.renderMainPanel(), this.renderResultsPanel()), this.renderSidePanel(), this.renderSideActionBar())));
377
+ return (h$1(Host, null, this.renderMainActionBar(), h$1("div", { class: "flex-row flex-adjustable" }, h$1("div", { class: "flex-column flex-adjustable" }, this.renderMainPanel(), this.renderResultsPanel()), this.renderSidePanel(), this.renderSideActionBar())));
378
378
  }
379
379
  static get assetsDirs() { return ["assets"]; }
380
380
  get _hostElement() { return this; }