@arcgis/coding-components 4.32.0-next.3 → 4.32.0-next.5

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 (94) 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-ad692c80.js → p-142abb7b.js} +2 -2
  4. package/dist/arcgis-coding-components/{p-9b806946.js → p-175d37ff.js} +1 -1
  5. package/dist/arcgis-coding-components/{p-5979fa51.js → p-2923c1b9.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-1234f08d.js → p-39e2fdea.js} +2 -2
  7. package/dist/arcgis-coding-components/{p-311dd536.js → p-4e81604b.js} +1 -1
  8. package/dist/arcgis-coding-components/{p-04943142.entry.js → p-53526148.entry.js} +2 -2
  9. package/dist/arcgis-coding-components/{p-6f1bcfa3.js → p-55c6f0bc.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-cc6996ac.js → p-58d32dde.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-c5292bed.js → p-6839191c.js} +2 -2
  12. package/dist/arcgis-coding-components/{p-4058edd1.entry.js → p-73d50e62.entry.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-5c5b0a08.js → p-7b210fc7.js} +10 -10
  14. package/dist/arcgis-coding-components/{p-bdd0f633.js → p-81ade418.js} +2 -2
  15. package/dist/arcgis-coding-components/p-89327af7.js +6 -0
  16. package/dist/arcgis-coding-components/{p-a7a82970.js → p-b3a70a68.js} +1 -1
  17. package/dist/arcgis-coding-components/{p-287402ed.js → p-baf94d77.js} +2 -2
  18. package/dist/arcgis-coding-components/{p-724745ad.entry.js → p-c99a31a5.entry.js} +2 -2
  19. package/dist/arcgis-coding-components/{p-560bea09.js → p-f246505f.js} +2 -2
  20. package/dist/arcgis-coding-components/{p-4a30d396.js → p-f2b45a2a.js} +2 -2
  21. package/dist/cjs/{app-globals-5225ccfc.js → app-globals-d3f7282a.js} +1 -1
  22. package/dist/cjs/{arcade-defaults-2f363afb.js → arcade-defaults-b8c5f195.js} +3 -3
  23. package/dist/cjs/{arcade-mode-bc7ac732.js → arcade-mode-63ae046d.js} +3 -3
  24. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +7 -7
  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-015c863a.js → css-8ec949a7.js} +1 -1
  29. package/dist/cjs/{cssMode-7e7c0d5e.js → cssMode-6df8320d.js} +3 -3
  30. package/dist/cjs/{html-523d91be.js → html-b2ed7971.js} +3 -3
  31. package/dist/cjs/{htmlMode-9e9c8c7a.js → htmlMode-b1396ba5.js} +3 -3
  32. package/dist/cjs/{index-7742ae99.js → index-d2ffa5d3.js} +1 -1
  33. package/dist/cjs/index.cjs.js +4 -4
  34. package/dist/cjs/{javascript-52adf106.js → javascript-542a8853.js} +4 -4
  35. package/dist/cjs/{jsonMode-fc9e7ade.js → jsonMode-e1c9a20b.js} +3 -3
  36. package/dist/cjs/loader.cjs.js +3 -3
  37. package/dist/cjs/{sql-expr-defaults-dad1b3ed.js → sql-expr-defaults-6ffccbda.js} +10 -10
  38. package/dist/cjs/{sql-expr-mode-53565192.js → sql-expr-mode-85d73267.js} +3 -3
  39. package/dist/cjs/{tsMode-fc608e3f.js → tsMode-959c2eee.js} +3 -3
  40. package/dist/cjs/{typescript-2f89097d.js → typescript-3483c62e.js} +3 -3
  41. package/dist/cjs/{useT9n-fb57f86f.js → useT9n-accb62b8.js} +204 -218
  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 +2 -2
  45. package/dist/components/arcade-suggestions.js +2 -2
  46. package/dist/components/arcgis-arcade-editor.js +2 -2
  47. package/dist/components/arcgis-arcade-results.js +1 -1
  48. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  49. package/dist/components/arcgis-assets.d.ts +1 -1
  50. package/dist/components/arcgis-assets.js +1 -1
  51. package/dist/components/arcgis-code-editor.js +1 -1
  52. package/dist/components/arcgis-editor-variables.js +1 -1
  53. package/dist/components/arcgis-language-api-panel.js +1 -1
  54. package/dist/components/arcgis-sql-expression-editor.js +3 -3
  55. package/dist/components/arcgis-sql-expression-fields.js +2 -2
  56. package/dist/components/code-editor.js +3 -3
  57. package/dist/components/editor-variables.js +2 -2
  58. package/dist/components/fields.js +1 -1
  59. package/dist/components/index.js +1 -1
  60. package/dist/components/index2.js +2 -2
  61. package/dist/components/{chunk-UO6SL5WB.js → index3.js} +292 -204
  62. package/dist/components/language-api-panel.js +2 -2
  63. package/dist/components/markdown.js +1 -1
  64. package/dist/components/sql-expr-defaults.js +1 -1
  65. package/dist/components/sql-expr-mode.js +1 -1
  66. package/dist/components/useT9n.js +2 -105
  67. package/dist/components/utilities.js +1 -1
  68. package/dist/esm/{app-globals-f27d9fca.js → app-globals-2d542cdb.js} +1 -1
  69. package/dist/esm/{arcade-defaults-a9fe3a7e.js → arcade-defaults-4ecd28be.js} +3 -3
  70. package/dist/esm/{arcade-mode-41d1a4a6.js → arcade-mode-72b22f4b.js} +3 -3
  71. package/dist/esm/arcgis-arcade-editor_6.entry.js +7 -7
  72. package/dist/esm/arcgis-coding-components.js +4 -4
  73. package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
  74. package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
  75. package/dist/esm/{css-4190e5b3.js → css-cd6c7b23.js} +1 -1
  76. package/dist/esm/{cssMode-6f9b5832.js → cssMode-0f17882d.js} +3 -3
  77. package/dist/esm/{html-72c94071.js → html-c5bc32f5.js} +3 -3
  78. package/dist/esm/{htmlMode-7e1af53c.js → htmlMode-b5a9d4c2.js} +3 -3
  79. package/dist/esm/{index-d4c46155.js → index-564c44e5.js} +1 -1
  80. package/dist/esm/index.js +4 -4
  81. package/dist/esm/{javascript-fc0ace4e.js → javascript-ab12fd5b.js} +4 -4
  82. package/dist/esm/{jsonMode-9e212bde.js → jsonMode-4e5853ea.js} +3 -3
  83. package/dist/esm/loader.js +4 -4
  84. package/dist/esm/{sql-expr-defaults-8c95f33b.js → sql-expr-defaults-76d3b604.js} +11 -11
  85. package/dist/esm/{sql-expr-mode-13b1db07.js → sql-expr-mode-1eeb4f22.js} +3 -3
  86. package/dist/esm/{tsMode-d893e415.js → tsMode-7bd26cef.js} +3 -3
  87. package/dist/esm/{typescript-d87bb201.js → typescript-fd3dbb56.js} +3 -3
  88. package/dist/esm/{useT9n-2711cd55.js → useT9n-914f4685.js} +204 -218
  89. package/dist/loader/cdn.js +1 -1
  90. package/dist/loader/index.cjs.js +1 -1
  91. package/dist/loader/index.es2017.js +1 -1
  92. package/dist/loader/index.js +1 -1
  93. package/package.json +11 -11
  94. package/dist/arcgis-coding-components/p-a7e4fb53.js +0 -6
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
4
+ * v4.32.0-next.5
5
5
  */
6
6
  'use strict';
7
7
 
8
- const sqlExprDefaults = require('./sql-expr-defaults-dad1b3ed.js');
9
- const index = require('./index-7742ae99.js');
8
+ const sqlExprDefaults = require('./sql-expr-defaults-6ffccbda.js');
9
+ const index = require('./index-d2ffa5d3.js');
10
10
 
11
11
  // src/framework.ts
12
12
  function retrieveComponentMembers(component, isLit) {
@@ -375,7 +375,7 @@ var Controller = class {
375
375
  if (genericController.hostUpdate) {
376
376
  sqlExprDefaults.safeCall(genericController.hostUpdate, genericController, changedProperties);
377
377
  }
378
- this._callbacks.hostUpdate.forEach(callUpdate, changedProperties);
378
+ this._callbacks.hostUpdate.forEach(callUpdate$1, changedProperties);
379
379
  }
380
380
  /** @internal */
381
381
  triggerUpdated(changedProperties) {
@@ -383,7 +383,7 @@ var Controller = class {
383
383
  if (genericController.hostUpdated) {
384
384
  sqlExprDefaults.safeCall(genericController.hostUpdated, genericController, changedProperties);
385
385
  }
386
- this._callbacks.hostUpdated.forEach(callUpdate, changedProperties);
386
+ this._callbacks.hostUpdated.forEach(callUpdate$1, changedProperties);
387
387
  }
388
388
  /** @internal */
389
389
  triggerDestroy() {
@@ -414,7 +414,7 @@ var Controller = class {
414
414
  });
415
415
  }
416
416
  };
417
- function callUpdate(callback) {
417
+ function callUpdate$1(callback) {
418
418
  sqlExprDefaults.safeCall(callback, void 0, this);
419
419
  }
420
420
  var GenericController = Controller;
@@ -562,7 +562,6 @@ var ComponentInternals = class {
562
562
  this.setters = {};
563
563
  this.accessorGetter = {};
564
564
  this.accessorSetter = {};
565
- this.reactiveUtilsIntegrations = /* @__PURE__ */ new Set();
566
565
  this._exports = /* @__PURE__ */ new WeakMap();
567
566
  this.readonlySetter = (newValue, _oldValue, property) => {
568
567
  if (shouldBypass.readOnly) {
@@ -664,12 +663,8 @@ var ComponentInternals = class {
664
663
  break;
665
664
  }
666
665
  }
667
- const preAccessorValue = newValue;
668
- originalSet.call(this, newValue);
669
666
  newValue = internals.accessorSetter[name2](newValue, oldValue, name2);
670
- if (newValue !== preAccessorValue) {
671
- originalSet.call(this, newValue);
672
- }
667
+ originalSet.call(this, newValue);
673
668
  if (newValue !== oldValue) {
674
669
  internals.enabledWatchers[name2]?.forEach((watcher) => watcher(newValue, oldValue, name2));
675
670
  }
@@ -710,6 +705,192 @@ var ComponentInternals = class {
710
705
  var emptyArray = [];
711
706
  var customAccessor = Symbol();
712
707
  var nothing = Symbol() ;
708
+
709
+ // src/trackPropKey.ts
710
+ function trackPropKey(component, onResolved, defaultValue) {
711
+ const internals = component.manager.internals;
712
+ if (internals.trackedValue !== nothing && internals.trackedValue !== defaultValue) {
713
+ internals.firePropTrackers(void 0, void 0);
714
+ }
715
+ if (internals.keyTrackers.length === 0) {
716
+ queueMicrotask(() => internals.firePropTrackers(void 0, void 0));
717
+ }
718
+ internals.trackedValue = defaultValue;
719
+ internals.keyTrackers.push((key, value) => sqlExprDefaults.safeCall(onResolved, void 0, defaultValue === value ? key : void 0));
720
+ return defaultValue;
721
+ }
722
+
723
+ // src/trackKey.ts
724
+ function trackKey(hostsCandidates, onResolved, defaultValue) {
725
+ const candidateHosts = Array.isArray(hostsCandidates) ? hostsCandidates : [hostsCandidates];
726
+ let leftToResolve = candidateHosts.length + 1;
727
+ const resolved = (resolution) => {
728
+ leftToResolve -= 1;
729
+ if (resolution !== void 0) {
730
+ leftToResolve = Math.min(leftToResolve, 0);
731
+ }
732
+ if (leftToResolve === 0) {
733
+ onResolved(resolution);
734
+ }
735
+ };
736
+ candidateHosts.forEach(
737
+ (host) => trackPropertyKey(
738
+ host,
739
+ (key) => resolved(
740
+ key === void 0 ? void 0 : {
741
+ key,
742
+ host,
743
+ isReactive: false
744
+ }
745
+ ),
746
+ defaultValue
747
+ )
748
+ );
749
+ const component = candidateHosts.find(
750
+ (host) => "manager" in host && typeof host.manager === "object" && host.manager.component === host
751
+ );
752
+ if (component) {
753
+ trackPropKey(
754
+ component,
755
+ (key) => resolved(
756
+ key === void 0 ? void 0 : {
757
+ key,
758
+ host: component,
759
+ isReactive: getMemberType(component, key) !== void 0
760
+ }
761
+ ),
762
+ defaultValue
763
+ );
764
+ }
765
+ return defaultValue;
766
+ }
767
+
768
+ // src/getSet.ts
769
+ function getSet(defaultValue, getSet2) {
770
+ const component = retrieveComponent();
771
+ return trackPropKey(
772
+ component,
773
+ (rawName) => {
774
+ const name2 = rawName;
775
+ const manager = component.manager;
776
+ const genericComponent = component;
777
+ const value = genericComponent[name2];
778
+ const isStencilHotReload = "production" !== "production" ;
779
+ if (value != null && value !== defaultValue && typeof getSet2.set === "function" && !isStencilHotReload) {
780
+ const newValue = getSet2.set(value, defaultValue, name2);
781
+ if (newValue !== value) {
782
+ if (manager.isLit) {
783
+ genericComponent[name2] = newValue;
784
+ } else {
785
+ let firstConnected = true;
786
+ manager.onConnected(() => {
787
+ if (!firstConnected) {
788
+ return;
789
+ }
790
+ firstConnected = true;
791
+ bypassSetter(() => {
792
+ genericComponent[name2] = newValue;
793
+ });
794
+ });
795
+ }
796
+ }
797
+ }
798
+ genericGetSet(component, name2, getSet2);
799
+ },
800
+ defaultValue
801
+ );
802
+ }
803
+ function bypassSetter(callback) {
804
+ shouldBypass.setter = true;
805
+ try {
806
+ return callback();
807
+ } finally {
808
+ shouldBypass.setter = false;
809
+ }
810
+ }
811
+ function genericGetSet(component, property, getSet2) {
812
+ var _a2, _b;
813
+ const genericGetSet2 = getSet2;
814
+ const internals = component.manager.internals;
815
+ const get = typeof genericGetSet2.get === "function" ? genericGetSet2.get : void 0;
816
+ if (get) {
817
+ (_a2 = internals.getters)[property] ?? (_a2[property] = []);
818
+ internals.getters[property].unshift(get);
819
+ }
820
+ const set = genericGetSet2.set === "ignore" ? ignoreSet : genericGetSet2.set;
821
+ if (set) {
822
+ (_b = internals.setters)[property] ?? (_b[property] = []);
823
+ internals.setters[property].unshift(
824
+ set
825
+ );
826
+ }
827
+ }
828
+ var ignoreSet = (_, value) => value;
829
+ function bypassReadOnly(callback) {
830
+ shouldBypass.readOnly = true;
831
+ try {
832
+ return callback();
833
+ } finally {
834
+ shouldBypass.readOnly = false;
835
+ }
836
+ }
837
+
838
+ // src/proxyExports.ts
839
+ var proxyExports = (Class) => (...args) => {
840
+ const ambientControllers2 = retrieveParentControllers();
841
+ const instance = new Class(...args);
842
+ const initialExports = instance.exports;
843
+ setParentController(ambientControllers2.at(-1));
844
+ const internals = instance.component.manager.internals;
845
+ internals.markExports(instance, initialExports);
846
+ instance.watchExports((exports) => internals.markExports(instance, exports));
847
+ setAmbientChildController(instance);
848
+ const hostCandidates = [instance.component, ...ambientControllers2].reverse();
849
+ return trackKey(
850
+ hostCandidates,
851
+ (resolution) => resolution === void 0 ? void 0 : setProxy(instance, resolution, initialExports),
852
+ initialExports
853
+ );
854
+ };
855
+ function setProxy(controller, { host, key, isReactive: assignedToProp }, initialExports) {
856
+ const genericHost = host;
857
+ const controllerValueChanged = genericHost[key] !== controller.exports;
858
+ const hostValueChanged = genericHost[key] !== initialExports;
859
+ const controllerUpdatedExports = initialExports !== controller.exports;
860
+ if (controllerValueChanged && !hostValueChanged && controllerUpdatedExports) {
861
+ genericHost[key] = controller.exports;
862
+ }
863
+ const isProxyExportsOnComponent = host === controller.component;
864
+ if (isProxyExportsOnComponent) {
865
+ if (assignedToProp) {
866
+ const internals = controller.component.manager.internals;
867
+ if (hostValueChanged) {
868
+ internals.markExports(controller, genericHost[key]);
869
+ }
870
+ watch(controller.component, key, (value) => {
871
+ if (value !== controller.exports) {
872
+ internals.markExports(controller, value);
873
+ }
874
+ });
875
+ }
876
+ controller.assignedProperty = assignedToProp ? void 0 : key;
877
+ }
878
+ controller.watchExports(() => {
879
+ if (genericHost[key] === controller.exports) {
880
+ return;
881
+ }
882
+ const manager = controller.component.manager;
883
+ const isReadOnly = manager.internals.setters[key]?.includes(manager.internals.readonlySetter);
884
+ if (isReadOnly) {
885
+ bypassReadOnly(() => {
886
+ genericHost[key] = controller.exports;
887
+ });
888
+ } else {
889
+ genericHost[key] = controller.exports;
890
+ }
891
+ });
892
+ }
893
+
713
894
  var useControllerManager = (component, forceUpdate) => new ControllerManager(component, forceUpdate);
714
895
  var ControllerManager = class extends GenericController {
715
896
  constructor(component, forceUpdate) {
@@ -746,10 +927,10 @@ var ControllerManager = class extends GenericController {
746
927
  this.hasDestroy = autoDestroyDisabledPropName in this.component && typeof this.component.destroy === "function";
747
928
  this._bindLifecycleMethods();
748
929
  const internals = this.internals;
749
- Object.keys(internals.members).forEach((name2) => {
750
- internals.accessorGetter[name2] = defaultGetterSetter;
751
- internals.accessorSetter[name2] = defaultGetterSetter;
752
- internals.getSetProxy(name2);
930
+ Object.keys(internals.members).forEach((name) => {
931
+ internals.accessorGetter[name] = defaultGetterSetter;
932
+ internals.accessorSetter[name] = defaultGetterSetter;
933
+ internals.getSetProxy(name);
753
934
  });
754
935
  if (isLit) {
755
936
  this.internals.enabledWatchers = this.internals.allWatchers;
@@ -840,17 +1021,7 @@ var ControllerManager = class extends GenericController {
840
1021
  }
841
1022
  /** @internal */
842
1023
  async _load() {
843
- const integrations = this.internals.reactiveUtilsIntegrations;
844
- if (integrations.size > 0) {
845
- for (const controller of integrations) {
846
- if ("triggerLoad" in controller) {
847
- await controller.triggerLoad();
848
- } else {
849
- await sqlExprDefaults.safeAsyncCall(controller.hostLoad, controller);
850
- }
851
- }
852
- }
853
- await Promise.allSettled(Array.from(this._controllers, callLoad, integrations));
1024
+ await Promise.allSettled(Array.from(this._controllers, callLoad));
854
1025
  await this._originalLifecycles._load?.call(this.component);
855
1026
  if (this.hasDestroy) {
856
1027
  watch(this.component, autoDestroyDisabledPropName, () => this._setAutoDestroyTimeout());
@@ -863,7 +1034,7 @@ var ControllerManager = class extends GenericController {
863
1034
  }
864
1035
  _update() {
865
1036
  const maybeLitComponent = this.component;
866
- this._controllers.forEach(callUpdate2, maybeLitComponent.$changes);
1037
+ this._controllers.forEach(callUpdate, maybeLitComponent.$changes);
867
1038
  this._originalLifecycles._willUpdate?.call(this.component);
868
1039
  }
869
1040
  _updated() {
@@ -926,12 +1097,10 @@ function callDisconnected(controller) {
926
1097
  }
927
1098
  }
928
1099
  async function callLoad(controller) {
929
- if (!this.has(controller)) {
930
- if ("triggerLoad" in controller) {
931
- await controller.triggerLoad();
932
- } else {
933
- await sqlExprDefaults.safeAsyncCall(controller.hostLoad, controller);
934
- }
1100
+ if ("triggerLoad" in controller) {
1101
+ await controller.triggerLoad();
1102
+ } else {
1103
+ await sqlExprDefaults.safeAsyncCall(controller.hostLoad, controller);
935
1104
  }
936
1105
  }
937
1106
  function callLoaded(controller) {
@@ -941,7 +1110,7 @@ function callLoaded(controller) {
941
1110
  sqlExprDefaults.safeCall(controller.hostLoaded, controller);
942
1111
  }
943
1112
  }
944
- function callUpdate2(controller) {
1113
+ function callUpdate(controller) {
945
1114
  if ("triggerUpdate" in controller) {
946
1115
  controller.triggerUpdate(this);
947
1116
  } else {
@@ -962,189 +1131,6 @@ function callDestroy(controller) {
962
1131
  sqlExprDefaults.safeCall(controller.hostDestroy, controller);
963
1132
  }
964
1133
  }
965
- function trackPropKey(component, onResolved, defaultValue) {
966
- const internals = component.manager.internals;
967
- if (internals.trackedValue !== nothing && internals.trackedValue !== defaultValue) {
968
- internals.firePropTrackers(void 0, void 0);
969
- }
970
- if (internals.keyTrackers.length === 0) {
971
- queueMicrotask(() => internals.firePropTrackers(void 0, void 0));
972
- }
973
- internals.trackedValue = defaultValue;
974
- internals.keyTrackers.push((key, value) => sqlExprDefaults.safeCall(onResolved, void 0, defaultValue === value ? key : void 0));
975
- return defaultValue;
976
- }
977
-
978
- // src/trackKey.ts
979
- function trackKey(hostsCandidates, onResolved, defaultValue) {
980
- const candidateHosts = Array.isArray(hostsCandidates) ? hostsCandidates : [hostsCandidates];
981
- let leftToResolve = candidateHosts.length + 1;
982
- const resolved = (resolution) => {
983
- leftToResolve -= 1;
984
- if (resolution !== void 0) {
985
- leftToResolve = Math.min(leftToResolve, 0);
986
- }
987
- if (leftToResolve === 0) {
988
- onResolved(resolution);
989
- }
990
- };
991
- candidateHosts.forEach(
992
- (host) => trackPropertyKey(
993
- host,
994
- (key) => resolved(
995
- key === void 0 ? void 0 : {
996
- key,
997
- host,
998
- isReactive: false
999
- }
1000
- ),
1001
- defaultValue
1002
- )
1003
- );
1004
- const component = candidateHosts.find(
1005
- (host) => "manager" in host && typeof host.manager === "object" && host.manager.component === host
1006
- );
1007
- if (component) {
1008
- trackPropKey(
1009
- component,
1010
- (key) => resolved(
1011
- key === void 0 ? void 0 : {
1012
- key,
1013
- host: component,
1014
- isReactive: getMemberType(component, key) !== void 0
1015
- }
1016
- ),
1017
- defaultValue
1018
- );
1019
- }
1020
- return defaultValue;
1021
- }
1022
-
1023
- // src/getSet.ts
1024
- function getSet(defaultValue, getSet2) {
1025
- const component = retrieveComponent();
1026
- return trackPropKey(
1027
- component,
1028
- (rawName) => {
1029
- const name2 = rawName;
1030
- const manager = component.manager;
1031
- const genericComponent = component;
1032
- const value = genericComponent[name2];
1033
- const isStencilHotReload = "production" !== "production" ;
1034
- if (value != null && value !== defaultValue && typeof getSet2.set === "function" && !isStencilHotReload) {
1035
- const newValue = getSet2.set(value, defaultValue, name2);
1036
- if (newValue !== value) {
1037
- if (manager.isLit) {
1038
- genericComponent[name2] = newValue;
1039
- } else {
1040
- let firstConnected = true;
1041
- manager.onConnected(() => {
1042
- if (!firstConnected) {
1043
- return;
1044
- }
1045
- firstConnected = true;
1046
- bypassSetter(() => {
1047
- genericComponent[name2] = newValue;
1048
- });
1049
- });
1050
- }
1051
- }
1052
- }
1053
- genericGetSet(component, name2, getSet2);
1054
- },
1055
- defaultValue
1056
- );
1057
- }
1058
- function bypassSetter(callback) {
1059
- shouldBypass.setter = true;
1060
- try {
1061
- return callback();
1062
- } finally {
1063
- shouldBypass.setter = false;
1064
- }
1065
- }
1066
- function genericGetSet(component, property, getSet2) {
1067
- var _a2, _b;
1068
- const genericGetSet2 = getSet2;
1069
- const internals = component.manager.internals;
1070
- const get = typeof genericGetSet2.get === "function" ? genericGetSet2.get : void 0;
1071
- if (get) {
1072
- (_a2 = internals.getters)[property] ?? (_a2[property] = []);
1073
- internals.getters[property].unshift(get);
1074
- }
1075
- const set = genericGetSet2.set === "ignore" ? ignoreSet : genericGetSet2.set;
1076
- if (set) {
1077
- (_b = internals.setters)[property] ?? (_b[property] = []);
1078
- internals.setters[property].unshift(
1079
- set
1080
- );
1081
- }
1082
- }
1083
- var ignoreSet = (_, value) => value;
1084
- function bypassReadOnly(callback) {
1085
- shouldBypass.readOnly = true;
1086
- try {
1087
- return callback();
1088
- } finally {
1089
- shouldBypass.readOnly = false;
1090
- }
1091
- }
1092
-
1093
- // src/proxyExports.ts
1094
- var proxyExports = (Class) => (...args) => {
1095
- const ambientControllers2 = retrieveParentControllers();
1096
- const instance = new Class(...args);
1097
- const initialExports = instance.exports;
1098
- setParentController(ambientControllers2.at(-1));
1099
- const internals = instance.component.manager.internals;
1100
- internals.markExports(instance, initialExports);
1101
- instance.watchExports((exports) => internals.markExports(instance, exports));
1102
- setAmbientChildController(instance);
1103
- const hostCandidates = [instance.component, ...ambientControllers2].reverse();
1104
- return trackKey(
1105
- hostCandidates,
1106
- (resolution) => resolution === void 0 ? void 0 : setProxy(instance, resolution, initialExports),
1107
- initialExports
1108
- );
1109
- };
1110
- function setProxy(controller, { host, key, isReactive: assignedToProp }, initialExports) {
1111
- const genericHost = host;
1112
- const controllerValueChanged = genericHost[key] !== controller.exports;
1113
- const hostValueChanged = genericHost[key] !== initialExports;
1114
- const controllerUpdatedExports = initialExports !== controller.exports;
1115
- if (controllerValueChanged && !hostValueChanged && controllerUpdatedExports) {
1116
- genericHost[key] = controller.exports;
1117
- }
1118
- const isProxyExportsOnComponent = host === controller.component;
1119
- if (isProxyExportsOnComponent) {
1120
- if (assignedToProp) {
1121
- const internals = controller.component.manager.internals;
1122
- if (hostValueChanged) {
1123
- internals.markExports(controller, genericHost[key]);
1124
- }
1125
- watch(controller.component, key, (value) => {
1126
- if (value !== controller.exports) {
1127
- internals.markExports(controller, value);
1128
- }
1129
- });
1130
- }
1131
- controller.assignedProperty = assignedToProp ? void 0 : key;
1132
- }
1133
- controller.watchExports(() => {
1134
- if (genericHost[key] === controller.exports) {
1135
- return;
1136
- }
1137
- const manager = controller.component.manager;
1138
- const isReadOnly = manager.internals.setters[key]?.includes(manager.internals.readonlySetter);
1139
- if (isReadOnly) {
1140
- bypassReadOnly(() => {
1141
- genericHost[key] = controller.exports;
1142
- });
1143
- } else {
1144
- genericHost[key] = controller.exports;
1145
- }
1146
- });
1147
- }
1148
1134
 
1149
1135
  // src/functional.ts
1150
1136
  var makeController = (constructor) => proxy(void 0, constructor);
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
4
+ * v4.32.0-next.5
5
5
  */
6
6
  import { f as fieldsToProfileValues, i as isPredefinedProfile, a as isFeatureSetCollectionDefinition, b as isFeatureSetDefinition, c as isFeatureDefinition, L as LanguageDefaultsBase, E as EditorProfile } from './sql-expr-defaults.js';
7
7
  import { s as supportedLocales, f as fetchT9nStringsBundle } from './index2.js';
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
4
+ * v4.32.0-next.5
5
5
  */
6
6
  import { editor, MarkerSeverity, Range, languages, Emitter } from 'monaco-editor';
7
7
  import { CompletionItemKind, DiagnosticSeverity, InsertTextFormat } from 'vscode-languageserver-types';
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
4
+ * v4.32.0-next.5
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host, forceUpdate } from '@stencil/core/internal/client';
7
7
  import { g as importArcade, s as supportedFields } from './fields.js';
8
- import { u as useControllerManager } from './chunk-UO6SL5WB.js';
8
+ import { u as useControllerManager } from './index3.js';
9
9
  import { c as setValuesInString, q as quoteString } from './index2.js';
10
10
  import { u as useT9n } from './useT9n.js';
11
11
  import "@esri/calcite-components/dist/components/calcite-tree.js";
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
4
+ * v4.32.0-next.5
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
7
7
  import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, a as colorizeCodeElement } from './markdown.js';
8
8
  import { f as filterCollection } from './utilities.js';
9
- import { u as useControllerManager } from './chunk-UO6SL5WB.js';
9
+ import { u as useControllerManager } from './index3.js';
10
10
  import { t as setFocusOnElement } from './index2.js';
11
11
  import { u as useT9n } from './useT9n.js';
12
12
  import "@esri/calcite-components/dist/components/calcite-list-item-group.js";
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
4
+ * v4.32.0-next.5
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Fragment, Host } from '@stencil/core/internal/client';
7
7
  import { KeyCode } from 'monaco-editor';
8
8
  import { d as defineCustomElement$6, e as executeScript, D as DevelopersWebSitePath } from './arcade-results.js';
9
- import { u as useControllerManager, g as getSet } from './chunk-UO6SL5WB.js';
9
+ import { u as useControllerManager, g as getSet } from './index3.js';
10
10
  import { D as Deferred, g as generateGuid } from './index2.js';
11
11
  import { d as defineCustomElement$4, s as setupMonacoEnvironment, g as getArcadeDiagnosticService } from './code-editor.js';
12
12
  import { b as arcadeDefaults } from './arcade-defaults.js';
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
4
+ * v4.32.0-next.5
5
5
  */
6
6
  import { A as ArcgisArcadeResults$1, d as defineCustomElement$1 } from './arcade-results.js';
7
7
 
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
4
+ * v4.32.0-next.5
5
5
  */
6
6
  import { A as ArcgisArcadeSuggestions$1, d as defineCustomElement$1 } from './arcade-suggestions.js';
7
7
 
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
4
+ * v4.32.0-next.5
5
5
  */
6
6
 
7
7
  /**
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
4
+ * v4.32.0-next.5
5
5
  */
6
6
  let resourceUrl = "https://js.arcgis.com/coding-components/next/";
7
7
 
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
4
+ * v4.32.0-next.5
5
5
  */
6
6
  import { A as ArcgisCodeEditor$1, d as defineCustomElement$1 } from './code-editor.js';
7
7
 
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
4
+ * v4.32.0-next.5
5
5
  */
6
6
  import { A as ArcgisEditorVariables$1, d as defineCustomElement$1 } from './editor-variables.js';
7
7
 
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
4
+ * v4.32.0-next.5
5
5
  */
6
6
  import { A as ArcgisLanguageApiPanel$1, d as defineCustomElement$1 } from './language-api-panel.js';
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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
4
+ * v4.32.0-next.5
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
7
- import { u as useControllerManager } from './chunk-UO6SL5WB.js';
8
- import { g as generateGuid } from './index2.js';
7
+ import { u as useControllerManager } from './index3.js';
9
8
  import { d as sqlExprDefaults } from './sql-expr-defaults.js';
9
+ import { g as generateGuid } from './index2.js';
10
10
  import { u as useT9n } from './useT9n.js';
11
11
  import { d as defineCustomElement$4 } from './code-editor.js';
12
12
  import { d as defineCustomElement$3 } from './editor-variables.js';
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
4
+ * v4.32.0-next.5
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
7
- import { u as useControllerManager } from './chunk-UO6SL5WB.js';
7
+ import { u as useControllerManager } from './index3.js';
8
8
  import { d as sqlExprDefaults } from './sql-expr-defaults.js';
9
9
  import { u as useT9n } from './useT9n.js';
10
10
  import "@esri/calcite-components/dist/components/calcite-block.js";