@arcgis/coding-components 4.30.0-next.8 → 4.30.0-next.80

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 (182) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +2 -4
  3. package/dist/arcgis-coding-components/arcgis-coding-components.css +1 -1
  4. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +25 -0
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +25 -0
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +25 -0
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +25 -0
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +25 -0
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +25 -0
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +25 -0
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +25 -0
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +25 -0
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +25 -0
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +25 -0
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +25 -0
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +25 -0
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +25 -0
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +25 -0
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +25 -0
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +25 -0
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +25 -0
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +25 -0
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +25 -0
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +25 -0
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +25 -0
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +25 -0
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +25 -0
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +25 -0
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +25 -0
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +25 -0
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +25 -0
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +25 -0
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +25 -0
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +25 -0
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +25 -0
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +25 -0
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +25 -0
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +25 -0
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +25 -0
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +25 -0
  42. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +25 -0
  43. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +25 -0
  44. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +25 -0
  45. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ar.json +2 -0
  46. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bg.json +2 -0
  47. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bs.json +2 -0
  48. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ca.json +2 -0
  49. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.cs.json +2 -0
  50. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.da.json +2 -0
  51. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.de.json +2 -0
  52. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.el.json +2 -0
  53. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.es.json +2 -0
  54. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.et.json +2 -0
  55. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fi.json +2 -0
  56. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fr.json +2 -0
  57. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.he.json +2 -0
  58. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hr.json +2 -0
  59. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hu.json +2 -0
  60. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.id.json +2 -0
  61. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.it.json +2 -0
  62. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ja.json +2 -0
  63. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ko.json +2 -0
  64. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.lt.json +2 -0
  65. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.lv.json +2 -0
  66. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nb.json +2 -0
  67. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nl.json +2 -0
  68. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pl.json +2 -0
  69. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-BR.json +2 -0
  70. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-PT.json +2 -0
  71. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ro.json +2 -0
  72. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ru.json +2 -0
  73. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sk.json +2 -0
  74. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sl.json +2 -0
  75. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sr.json +2 -0
  76. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sv.json +2 -0
  77. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.th.json +2 -0
  78. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.tr.json +2 -0
  79. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.uk.json +2 -0
  80. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.vi.json +2 -0
  81. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-CN.json +2 -0
  82. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-HK.json +2 -0
  83. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-TW.json +2 -0
  84. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +2 -2
  85. package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +1 -1
  86. package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +1 -1
  87. package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +1 -1
  88. package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +1 -1
  89. package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +1 -1
  90. package/dist/arcgis-coding-components/index.esm.js +2 -2
  91. package/dist/arcgis-coding-components/{p-a1824310.js → p-02afa1ba.js} +2 -2
  92. package/dist/arcgis-coding-components/{p-2db3fc64.js → p-23983f31.js} +2 -2
  93. package/dist/arcgis-coding-components/{p-1be5d1e3.js → p-24afa8cb.js} +2 -2
  94. package/dist/arcgis-coding-components/p-4e2a14fd.js +68 -0
  95. package/dist/arcgis-coding-components/{p-387fc534.js → p-7e180c61.js} +3 -3
  96. package/dist/arcgis-coding-components/{p-5748bf4f.js → p-9a89183f.js} +1 -1
  97. package/dist/arcgis-coding-components/p-abf5fbd1.entry.js +6 -0
  98. package/dist/arcgis-coding-components/{p-eba1532d.js → p-b1af209d.js} +2 -2
  99. package/dist/arcgis-coding-components/{p-c56ad593.js → p-c411fbc3.js} +3 -3
  100. package/dist/arcgis-coding-components/{p-c671d2bf.js → p-d60b333c.js} +2 -2
  101. package/dist/arcgis-coding-components/p-dedb982e.js +7 -0
  102. package/dist/arcgis-coding-components/{p-c07e13b5.js → p-f3f724a5.js} +3 -3
  103. package/dist/cjs/{arcade-defaults-965e518f.js → arcade-defaults-80327800.js} +620 -248
  104. package/dist/cjs/{arcade-mode-d5e8a53f.js → arcade-mode-9649f70f.js} +45 -51
  105. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1560 -289
  106. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  107. package/dist/cjs/{css-c160c8ba.js → css-f6846a93.js} +1 -1
  108. package/dist/cjs/{cssMode-aeef664b.js → cssMode-4ae2cabe.js} +3 -3
  109. package/dist/cjs/{html-5af7df92.js → html-8b367d05.js} +3 -3
  110. package/dist/cjs/{htmlMode-cab67fdd.js → htmlMode-e7667ec9.js} +3 -3
  111. package/dist/cjs/{index-f65c651a.js → index-c334303a.js} +40 -4
  112. package/dist/cjs/index.cjs.js +3 -3
  113. package/dist/cjs/{javascript-e19bbbf3.js → javascript-8b16a1f9.js} +4 -4
  114. package/dist/cjs/{jsonMode-d7bc09c2.js → jsonMode-cf52472f.js} +3 -3
  115. package/dist/cjs/loader.cjs.js +3 -3
  116. package/dist/cjs/{tsMode-f1863db3.js → tsMode-7c008207.js} +3 -3
  117. package/dist/cjs/{typescript-bc515b09.js → typescript-d57f8255.js} +3 -3
  118. package/dist/components/arcade-api.js +21 -32
  119. package/dist/components/arcade-contribution.js +72 -13
  120. package/dist/components/arcade-defaults.js +131 -149
  121. package/dist/components/arcade-mode.js +44 -50
  122. package/dist/components/arcade-results.js +47 -60
  123. package/dist/components/arcade-suggestions.js +23 -33
  124. package/dist/components/arcade-variables.js +22 -36
  125. package/dist/components/arcgis-arcade-api.js +1 -1
  126. package/dist/components/arcgis-arcade-editor.js +60 -150
  127. package/dist/components/arcgis-arcade-results.js +1 -1
  128. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  129. package/dist/components/arcgis-arcade-variables.js +1 -1
  130. package/dist/components/arcgis-assets.d.ts +1 -1
  131. package/dist/components/arcgis-assets.js +1 -1
  132. package/dist/components/arcgis-code-editor.js +1 -1
  133. package/dist/components/chunk-63RMNUHL.js +1275 -0
  134. package/dist/components/code-editor.js +70 -78
  135. package/dist/components/fields.js +45 -45
  136. package/dist/components/index.js +1 -1
  137. package/dist/components/index2.js +389 -3
  138. package/dist/components/markdown.js +9 -11
  139. package/dist/components/useT9n.js +35 -0
  140. package/dist/components/utilities.js +3 -3
  141. package/dist/esm/{arcade-defaults-916efe71.js → arcade-defaults-a79c12c2.js} +603 -235
  142. package/dist/esm/{arcade-mode-ae564848.js → arcade-mode-5b2170d9.js} +45 -51
  143. package/dist/esm/arcgis-arcade-api_6.entry.js +1560 -289
  144. package/dist/esm/arcgis-coding-components.js +4 -4
  145. package/dist/esm/{css-16e746d3.js → css-828751af.js} +1 -1
  146. package/dist/esm/{cssMode-92ac5593.js → cssMode-1c63c582.js} +3 -3
  147. package/dist/esm/{html-44d7e611.js → html-98ff693c.js} +3 -3
  148. package/dist/esm/{htmlMode-d42d5f00.js → htmlMode-d1314a86.js} +3 -3
  149. package/dist/esm/{index-faa20c76.js → index-6e61dbbf.js} +40 -4
  150. package/dist/esm/index.js +3 -3
  151. package/dist/esm/{javascript-7e015ca6.js → javascript-fcccb61c.js} +4 -4
  152. package/dist/esm/{jsonMode-0e712976.js → jsonMode-2573b0a4.js} +3 -3
  153. package/dist/esm/loader.js +4 -4
  154. package/dist/esm/{tsMode-9fe641b9.js → tsMode-d376adba.js} +3 -3
  155. package/dist/esm/{typescript-ccf21d8e.js → typescript-4c1ff72f.js} +3 -3
  156. package/dist/loader/cdn.js +1 -1
  157. package/dist/loader/index.cjs.js +1 -1
  158. package/dist/loader/index.es2017.js +1 -1
  159. package/dist/loader/index.js +1 -1
  160. package/dist/types/components/arcade-api/arcade-api.d.ts +6 -7
  161. package/dist/types/components/arcade-editor/arcade-editor.d.ts +18 -12
  162. package/dist/types/components/arcade-results/arcade-results.d.ts +6 -9
  163. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +7 -8
  164. package/dist/types/components/arcade-variables/arcade-variables.d.ts +6 -8
  165. package/dist/types/components/code-editor/code-editor.d.ts +23 -13
  166. package/dist/types/components.d.ts +57 -35
  167. package/dist/types/controllers/useT9n.d.ts +1 -0
  168. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +3 -0
  169. package/dist/types/data/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 +27 -0
  170. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +11 -0
  171. package/dist/types/data/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 +6 -0
  172. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +9 -0
  173. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +9 -0
  174. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +19 -0
  175. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +6 -0
  176. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -1
  177. package/dist/types/utils/profile/types.d.ts +15 -13
  178. package/dist/types/utils/profile/utils.d.ts +1 -3
  179. package/package.json +23 -23
  180. package/dist/arcgis-coding-components/p-85bf5222.entry.js +0 -6
  181. package/dist/arcgis-coding-components/p-a5a18422.js +0 -68
  182. package/dist/arcgis-coding-components/p-b3439e53.js +0 -7
@@ -1,70 +1,70 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.8
4
+ * v4.30.0-next.80
5
5
  */
6
- const isAMD = "define" in window && typeof window.define === "function" && "amd" in window.define;
6
+ // src/index.ts
7
+ var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
7
8
  function isDefaultModule(module) {
8
- return module.default !== undefined;
9
- }
10
- async function requireModule(modulePath) {
11
- return await new Promise((resolve) => window.require([modulePath], (moduleDefault) => {
12
- resolve(moduleDefault);
13
- }));
9
+ return module.default !== void 0;
14
10
  }
15
11
  async function importLayersFeatureLayer() {
16
- if (isAMD) {
17
- return await requireModule("esri/layers/FeatureLayer");
18
- }
19
- const module = await import('@arcgis/core/layers/FeatureLayer.js');
20
- return isDefaultModule(module) ? module.default : module;
12
+ if (isAMD) {
13
+ return await window.$arcgis.import("esri/layers/FeatureLayer");
14
+ }
15
+ const module = await import('@arcgis/core/layers/FeatureLayer.js');
16
+ return isDefaultModule(module) ? module.default : module;
17
+ }
18
+ async function newLayersFeatureLayer(properties) {
19
+ const ModConstructor = await importLayersFeatureLayer();
20
+ return new ModConstructor(properties);
21
21
  }
22
22
  async function importPortalPortalItem() {
23
- if (isAMD) {
24
- return await requireModule("esri/portal/PortalItem");
25
- }
26
- const module = await import('@arcgis/core/portal/PortalItem.js');
27
- return isDefaultModule(module) ? module.default : module;
23
+ if (isAMD) {
24
+ return await window.$arcgis.import("esri/portal/PortalItem");
25
+ }
26
+ const module = await import('@arcgis/core/portal/PortalItem.js');
27
+ return isDefaultModule(module) ? module.default : module;
28
28
  }
29
29
  async function newPortalPortalItem(properties) {
30
- const ModConstructor = await importPortalPortalItem();
31
- return new ModConstructor(properties);
30
+ const ModConstructor = await importPortalPortalItem();
31
+ return new ModConstructor(properties);
32
32
  }
33
33
  async function importWebMap() {
34
- if (isAMD) {
35
- return await requireModule("esri/WebMap");
36
- }
37
- const module = await import('@arcgis/core/WebMap.js');
38
- return isDefaultModule(module) ? module.default : module;
34
+ if (isAMD) {
35
+ return await window.$arcgis.import("esri/WebMap");
36
+ }
37
+ const module = await import('@arcgis/core/WebMap.js');
38
+ return isDefaultModule(module) ? module.default : module;
39
39
  }
40
40
  async function newWebMap(properties) {
41
- const ModConstructor = await importWebMap();
42
- return new ModConstructor(properties);
41
+ const ModConstructor = await importWebMap();
42
+ return new ModConstructor(properties);
43
43
  }
44
44
  async function importWebScene() {
45
- if (isAMD) {
46
- return await requireModule("esri/WebScene");
47
- }
48
- const module = await import('@arcgis/core/WebScene.js');
49
- return isDefaultModule(module) ? module.default : module;
45
+ if (isAMD) {
46
+ return await window.$arcgis.import("esri/WebScene");
47
+ }
48
+ const module = await import('@arcgis/core/WebScene.js');
49
+ return isDefaultModule(module) ? module.default : module;
50
50
  }
51
51
  async function newWebScene(properties) {
52
- const ModConstructor = await importWebScene();
53
- return new ModConstructor(properties);
52
+ const ModConstructor = await importWebScene();
53
+ return new ModConstructor(properties);
54
54
  }
55
55
  async function importArcade() {
56
- if (isAMD) {
57
- return await requireModule("esri/arcade");
58
- }
59
- const module = await import('@arcgis/core/arcade.js');
60
- return isDefaultModule(module) ? module.default : module;
56
+ if (isAMD) {
57
+ return await window.$arcgis.import("esri/arcade");
58
+ }
59
+ const module = await import('@arcgis/core/arcade.js');
60
+ return isDefaultModule(module) ? module.default : module;
61
61
  }
62
62
  async function importRequest() {
63
- if (isAMD) {
64
- return await requireModule("esri/request");
65
- }
66
- const module = await import('@arcgis/core/request.js');
67
- return isDefaultModule(module) ? module.default : module;
63
+ if (isAMD) {
64
+ return await window.$arcgis.import("esri/request");
65
+ }
66
+ const module = await import('@arcgis/core/request.js');
67
+ return isDefaultModule(module) ? module.default : module;
68
68
  }
69
69
 
70
70
  /**
@@ -152,4 +152,4 @@ function fieldAlias(field) {
152
152
  return field.alias || field.name;
153
153
  }
154
154
 
155
- export { importRequest as a, newWebScene as b, newWebMap as c, fieldTypeToIconName as d, fieldTypeToArcadeType as e, fieldAlias as f, importArcade as g, importLayersFeatureLayer as i, newPortalPortalItem as n, supportedFields as s };
155
+ export { newPortalPortalItem as a, newWebScene as b, newWebMap as c, fieldTypeToIconName as d, fieldTypeToArcadeType as e, fieldAlias as f, importArcade as g, importRequest as i, newLayersFeatureLayer as n, supportedFields as s };
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.8
4
+ * v4.30.0-next.80
5
5
  */
6
6
  export { setNonce, setPlatformOptions } from '@stencil/core/internal/client';
7
7
  export { a as arcade } from './arcade-defaults.js';
@@ -1,8 +1,394 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.8
4
+ * v4.30.0-next.80
5
5
  */
6
- 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 x(e,t,n=()=>{}){if(!t||t.length<=0)return;let r=new MutationObserver(o=>{for(let s of o)S(e,s.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 k(e){let t=T(e,":is(.calcite-mode-light, .calcite-mode-dark)");return t&&t.classList.contains("calcite-mode-dark")?"dark":"light"}function f(e,t,n){return T(e,`[${t}]`)?.getAttribute(t)??n}function M(e){return e.nodeType===Node.ELEMENT_NODE}function R(e){return "setFocus"in e&&typeof e.setFocus=="function"}function d(e,t=""){if(!M(e))return !1;if(e.matches(t))return R(e)&&setTimeout(()=>e.setFocus(),0),!0;for(let r of e.children)if(d(r,t))return !0;let n=e.shadowRoot;if(n){for(let r of n.children)if(d(r,t))return !0}return !1}function W(e,t){if(!e?.shadowRoot)return;if(e.hasAttribute("hydrated")||e.hasAttribute("calcite-hydrated")){d(e,t);return}let n=new MutationObserver(()=>{n.disconnect(),d(e,t);});n.observe(e,{attributes:!0,attributeFilter:["hydrated","calcite-hydrated"]});}function c(e){let t="";for(let n=0;n<e;n++)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t}function U(){return [c(2),c(1),c(1),c(1),c(3)].join("-")}var E=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 v(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 i=await o.json();return a.set(r,i),i}if(e==="en"){a.set(r,void 0);return}let s=await v("en",t,n);return a.set(r,s),s}catch{a.set(r,void 0);return}}function _(e){let t=f(e,"lang",navigator.language||"en");if(E.has(t))return {lang:t,t9nLocale:t};let n=t.slice(0,2);return {lang:t,t9nLocale:E.has(n)?n:"en"}}var p=new WeakMap,m=new WeakMap,C=new WeakMap;async function B(e,t,n){m.set(e,t),p.set(e,x(e._hostElement,["lang"],()=>{b(e,n).catch(console.error);})),await b(e,n);}function q(e){p.get(e)?.disconnect(),p.delete(e),m.delete(e);}async function b(e,t){let{lang:n,t9nLocale:r}=_(e._hostElement);if(n===e._lang&&r===e._t9nLocale||(n!==e._lang&&(e._lang=n),r===e._t9nLocale))return;let o=C.get(e);if(!o){let s=m.get(e)??"",i=e._hostElement.tagName.toLowerCase().replace("arcgis-",""),l=`${s}/${i}/t9n`,u=`${i}.t9n.`;o=await v(r,l,u);}r!==e._t9nLocale&&(e._t9nLocale=r,e._t9nStrings=o,await t?.call(e));}var N='"',w="'";function L(e,t){return new Array(t+1).join(e)}function D(e){let t=N,n=w;e.includes(t)&&!e.includes(n)&&(n=N,t=w);let o=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${n})+)`,"gu");e=e.replace(o,(i,l,u,g)=>l+u+L(n,g.length/2));let s=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${t}+)`,"gu");return e=e.replace(s,(i,l,u,g)=>l+u+L(`\\${t}`,g.length)),t+e+t}function K(e){let t=e?e.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu,"\\$&"):"^.*$";return new RegExp(t,"i")}function Z(e,t={}){return (e??"").replace(/\{(.*?)\}/gu,(n,r)=>t[r]??n)}function G(e){return `\u200E${e??""}\u200E`}function ee(e){return e!==null}function te(e){return e!==void 0}function re(e,t=100){let n;return (...r)=>{let o=()=>{clearTimeout(n),e(...r);};clearTimeout(n),n=setTimeout(o,t);}}function se(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 ie(e){try{return new URL(e),!0}catch{return !1}}
6
+ // src/array-utils.ts
7
7
 
8
- export { B, D, E, G, K, U, W, Z, ee as e, h, ie as i, k, q, re as r, se as s, te as t, v, x };
8
+ // src/deferred.ts
9
+ var Deferred = class {
10
+ /**
11
+ * Resolves the promise.
12
+ * @param value The value to resolve the promise with.
13
+ */
14
+ resolve(_value) {
15
+ }
16
+ /**
17
+ * Rejects the promise.
18
+ */
19
+ reject(_error) {
20
+ }
21
+ /**
22
+ * Creates a new deferred promise.
23
+ */
24
+ constructor() {
25
+ this.promise = new Promise((resolve, reject) => {
26
+ this.resolve = resolve;
27
+ this.reject = reject;
28
+ });
29
+ }
30
+ };
31
+
32
+ // src/dom.ts
33
+ function inTargetElement(element, targetElement) {
34
+ let currentElement = element;
35
+ while (currentElement) {
36
+ if (currentElement === targetElement) {
37
+ return true;
38
+ }
39
+ if (!currentElement.parentNode) {
40
+ return false;
41
+ }
42
+ if (currentElement.parentNode instanceof ShadowRoot) {
43
+ currentElement = currentElement.parentNode.host;
44
+ } else {
45
+ currentElement = currentElement.parentNode;
46
+ }
47
+ }
48
+ return false;
49
+ }
50
+ function observeAncestorsMutation(element, attributeFilter, callback) {
51
+ const { subscribe } = observe(attributeFilter);
52
+ return subscribe((mutations) => {
53
+ const matched = mutations.some((mutation) => inTargetElement(element, mutation.target));
54
+ if (matched)
55
+ callback();
56
+ });
57
+ }
58
+ var observers = {};
59
+ function observe(attributeFilter) {
60
+ const attributes = attributeFilter.join(",");
61
+ const previousObserver = observers[attributes];
62
+ if (previousObserver !== void 0)
63
+ return previousObserver;
64
+ const subscribers = /* @__PURE__ */ new Set();
65
+ const mutationObserver = new MutationObserver((mutations) => subscribers.forEach((callback) => callback(mutations)));
66
+ mutationObserver.observe(document.documentElement, {
67
+ attributes: true,
68
+ attributeFilter,
69
+ subtree: true
70
+ });
71
+ const observer = {
72
+ subscribe(callback) {
73
+ subscribers.add(callback);
74
+ return {
75
+ remove: () => {
76
+ subscribers.delete(callback);
77
+ if (subscribers.size === 0) {
78
+ mutationObserver.disconnect();
79
+ observers[attributes] = void 0;
80
+ }
81
+ }
82
+ };
83
+ }
84
+ };
85
+ observers[attributes] = observer;
86
+ return observer;
87
+ }
88
+ function closestElement(base, selector) {
89
+ let currentElement = base;
90
+ while (currentElement) {
91
+ const element = currentElement.closest(selector);
92
+ if (element) {
93
+ return element;
94
+ }
95
+ const rootElement = currentElement.getRootNode();
96
+ if (rootElement === document) {
97
+ return null;
98
+ }
99
+ currentElement = rootElement.host;
100
+ }
101
+ return null;
102
+ }
103
+ function getElementTheme(base) {
104
+ const themeElt = closestElement(base, ":is(.calcite-mode-light, .calcite-mode-dark)");
105
+ return themeElt && themeElt.classList.contains("calcite-mode-dark") ? "dark" : "light";
106
+ }
107
+ function getElementAttribute(el, prop, fallbackValue) {
108
+ const closest = closestElement(el, `[${prop}]`);
109
+ return closest?.getAttribute(prop) ?? fallbackValue;
110
+ }
111
+ function isElement(ref) {
112
+ return ref.nodeType === Node.ELEMENT_NODE;
113
+ }
114
+ function isHTMLWithSetFocus(ref) {
115
+ return "setFocus" in ref && typeof ref.setFocus === "function";
116
+ }
117
+ function setFocus(ref, selector = "") {
118
+ if (!isElement(ref)) {
119
+ return false;
120
+ }
121
+ if (ref.matches(selector)) {
122
+ if (isHTMLWithSetFocus(ref)) {
123
+ setTimeout(() => ref.setFocus(), 0);
124
+ }
125
+ return true;
126
+ }
127
+ for (const child of ref.children) {
128
+ if (setFocus(child, selector)) {
129
+ return true;
130
+ }
131
+ }
132
+ const shadowRoot = ref.shadowRoot;
133
+ if (shadowRoot) {
134
+ for (const child of shadowRoot.children) {
135
+ if (setFocus(child, selector)) {
136
+ return true;
137
+ }
138
+ }
139
+ }
140
+ return false;
141
+ }
142
+ function setFocusOnElement(ref, selector) {
143
+ if (!ref?.shadowRoot) {
144
+ return;
145
+ }
146
+ if (ref.hasAttribute("hydrated") || ref.hasAttribute("calcite-hydrated")) {
147
+ setFocus(ref, selector);
148
+ return;
149
+ }
150
+ const mutationObserver = new MutationObserver(() => {
151
+ mutationObserver.disconnect();
152
+ setFocus(ref, selector);
153
+ });
154
+ mutationObserver.observe(ref, {
155
+ attributes: true,
156
+ attributeFilter: ["hydrated", "calcite-hydrated"]
157
+ });
158
+ }
159
+
160
+ // src/errors.ts
161
+ function safeCall(callback, thisContext, ...rest) {
162
+ try {
163
+ return callback?.call(thisContext, ...rest);
164
+ } catch (error) {
165
+ console.error(error, callback);
166
+ }
167
+ return void 0;
168
+ }
169
+ async function safeAsyncCall(callback, thisContext, ...rest) {
170
+ try {
171
+ const result = callback?.call(thisContext, ...rest);
172
+ return result instanceof Promise ? await result : result;
173
+ } catch (error) {
174
+ console.error(error, callback);
175
+ }
176
+ return void 0;
177
+ }
178
+
179
+ // src/guid.ts
180
+ function gen(count) {
181
+ let out = "";
182
+ for (let i = 0; i < count; i++) {
183
+ out += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
184
+ }
185
+ return out;
186
+ }
187
+ function generateGuid() {
188
+ return [gen(2), gen(1), gen(1), gen(1), gen(3)].join("-");
189
+ }
190
+ var camelToKebab = (string) => string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : "-"}${upper.toLowerCase()}`);
191
+ var upperBeforeLower = /[A-Z]+(?![a-z])|[A-Z]/gu;
192
+ var capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1);
193
+ var camelToHuman = (string) => capitalize(string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : " "}${upper}`));
194
+
195
+ // src/intl.ts
196
+ var supportedLocales = /* @__PURE__ */ new Set([
197
+ "ar",
198
+ "bg",
199
+ "bs",
200
+ "ca",
201
+ "cs",
202
+ "da",
203
+ "de",
204
+ "el",
205
+ "en",
206
+ "es",
207
+ "et",
208
+ "fi",
209
+ "fr",
210
+ "he",
211
+ "hr",
212
+ "hu",
213
+ "id",
214
+ "it",
215
+ "ja",
216
+ "ko",
217
+ "lt",
218
+ "lv",
219
+ "nl",
220
+ "nb",
221
+ "pl",
222
+ "pt-BR",
223
+ "pt-PT",
224
+ "ro",
225
+ "ru",
226
+ "sk",
227
+ "sl",
228
+ "sr",
229
+ "sv",
230
+ "th",
231
+ "tr",
232
+ "uk",
233
+ "vi",
234
+ "zh-CN",
235
+ "zh-HK",
236
+ "zh-TW"
237
+ ]);
238
+ var defaultLocale = "en";
239
+ async function fetchT9NStringsBundle(locale, assetsPath, prefix = "") {
240
+ const path = `${assetsPath}/${prefix}`;
241
+ const filePath = `${path}${locale}.json`;
242
+ t9nStringsCache[filePath] ?? (t9nStringsCache[filePath] = fetchBundle(locale, path));
243
+ return await t9nStringsCache[filePath];
244
+ }
245
+ var t9nStringsCache = {};
246
+ async function fetchBundle(locale, path) {
247
+ const filePath = `${path}${locale}.json`;
248
+ try {
249
+ const response = await fetch(filePath);
250
+ if (response.ok)
251
+ return await response.json();
252
+ } catch (error) {
253
+ console.error(error);
254
+ return fallbackBundle;
255
+ }
256
+ if (locale === defaultLocale)
257
+ return fallbackBundle;
258
+ return await fetchBundle(defaultLocale, path);
259
+ }
260
+ var fallbackBundle = new Proxy(
261
+ {},
262
+ {
263
+ get: (_target, property) => camelToHuman(property.toString())
264
+ }
265
+ );
266
+ function getElementLocales(element) {
267
+ const lang = getElementAttribute(element, "lang", navigator.language || defaultLocale);
268
+ if (supportedLocales.has(lang)) {
269
+ return { lang, t9nLocale: lang };
270
+ }
271
+ const rootCode = lang.slice(0, 2);
272
+ return { lang, t9nLocale: supportedLocales.has(rootCode) ? rootCode : defaultLocale };
273
+ }
274
+ function startLocaleObserver(element, assetsPath, onUpdated, assetName) {
275
+ let result = void 0;
276
+ const callback = () => void updateComponentLocateState(element, assetsPath, assetName).then((newResult) => {
277
+ if (result?.lang !== newResult.lang || result.t9nLocale !== newResult.t9nLocale || result.t9nStrings !== newResult.t9nStrings)
278
+ onUpdated(newResult);
279
+ result = newResult;
280
+ }).catch(console.error);
281
+ callback();
282
+ return observeAncestorsMutation(element, ["lang"], callback);
283
+ }
284
+ async function updateComponentLocateState(element, assetsPath, assetName = element.tagName.toLowerCase().replace("arcgis-", "")) {
285
+ const { lang, t9nLocale } = getElementLocales(element);
286
+ const t9nAssetsPath = `${assetsPath}/${assetName}/t9n`;
287
+ const prefix = `${assetName}.t9n.`;
288
+ const t9nStrings = await fetchT9NStringsBundle(t9nLocale, t9nAssetsPath, prefix);
289
+ return { lang, t9nLocale, t9nStrings };
290
+ }
291
+
292
+ // src/strings.ts
293
+ var doubleQuote = '"';
294
+ var singleQuote = "'";
295
+ function repeatString(value, n) {
296
+ return new Array(n + 1).join(value);
297
+ }
298
+ function quoteString(value) {
299
+ let quote = doubleQuote;
300
+ let alternateQuote = singleQuote;
301
+ const avoidEscape = value.includes(quote) && !value.includes(alternateQuote);
302
+ if (avoidEscape) {
303
+ alternateQuote = doubleQuote;
304
+ quote = singleQuote;
305
+ }
306
+ const alternateEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${alternateQuote})+)`, "gu");
307
+ value = value.replace(
308
+ alternateEscape,
309
+ (_, boundaryChar, leadingEscapedSlashes, escapedQuoteChars) => (
310
+ // We divide the escapedQuoteChars by 2 since there are 2 characters in each escaped part ('\\"'.length === 2)
311
+ boundaryChar + leadingEscapedSlashes + repeatString(alternateQuote, escapedQuoteChars.length / 2)
312
+ )
313
+ );
314
+ const quoteEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${quote}+)`, "gu");
315
+ value = value.replace(
316
+ quoteEscape,
317
+ (_, boundaryChar, leadingEscapedSlashes, quoteChars) => boundaryChar + leadingEscapedSlashes + repeatString(`\\${quote}`, quoteChars.length)
318
+ );
319
+ return quote + value + quote;
320
+ }
321
+ function createFilterExpression(filterWord) {
322
+ const sanitizedWord = filterWord ? filterWord.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu, "\\$&") : "^.*$";
323
+ return new RegExp(sanitizedWord, "i");
324
+ }
325
+ function setValuesInString(message, values = {}) {
326
+ return (message ?? "").replace(/\{(?<valueName>.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
327
+ }
328
+ function addLTRMark(value) {
329
+ return `\u200E${value ?? ""}\u200E`;
330
+ }
331
+
332
+ // src/timeouts.ts
333
+ function devToolsAwareTimeout(callback, timeout) {
334
+ const interval = timeout > longTimeoutThreshold ? longTimeoutInterval : timeout / shortTimeoutIntervals;
335
+ let elapsed = 0;
336
+ const reference = setInterval(() => {
337
+ elapsed += interval;
338
+ if (elapsed >= timeout) {
339
+ clearInterval(reference);
340
+ callback();
341
+ }
342
+ }, interval);
343
+ return reference;
344
+ }
345
+ var longTimeoutThreshold = 4e3;
346
+ var longTimeoutInterval = 2e3;
347
+ var shortTimeoutIntervals = 4;
348
+
349
+ // src/type-guards.ts
350
+ function isNotNull(item) {
351
+ return item !== null;
352
+ }
353
+ function isNotUndefined(item) {
354
+ return item !== void 0;
355
+ }
356
+
357
+ // src/ui.ts
358
+ function debounce(func, waitFor = 100) {
359
+ let timeout;
360
+ return (...args) => {
361
+ const later = () => {
362
+ clearTimeout(timeout);
363
+ func(...args);
364
+ };
365
+ clearTimeout(timeout);
366
+ timeout = setTimeout(later, waitFor);
367
+ };
368
+ }
369
+
370
+ // src/url.ts
371
+ function hasSameOrigin(url1, url2, ignoreProtocol = false) {
372
+ if (!url1 || !url2) {
373
+ return false;
374
+ }
375
+ const url1Obj = new URL(url1);
376
+ const url2Obj = new URL(url2);
377
+ if (!ignoreProtocol && url1Obj.protocol !== url2Obj.protocol) {
378
+ return false;
379
+ }
380
+ if (url1Obj.host == null || url2Obj.host == null) {
381
+ return false;
382
+ }
383
+ return url1Obj.host.toLowerCase() === url2Obj.host.toLowerCase() && url1Obj.port === url2Obj.port;
384
+ }
385
+ function isURL(url) {
386
+ try {
387
+ new URL(url);
388
+ return true;
389
+ } catch (e) {
390
+ return false;
391
+ }
392
+ }
393
+
394
+ export { Deferred as D, isNotUndefined as a, addLTRMark as b, supportedLocales as c, createFilterExpression as d, setFocusOnElement as e, fetchT9NStringsBundle as f, camelToKebab as g, safeCall as h, isNotNull as i, safeAsyncCall as j, devToolsAwareTimeout as k, isURL as l, hasSameOrigin as m, startLocaleObserver as n, getElementLocales as o, generateGuid as p, getElementTheme as q, quoteString as r, setValuesInString as s, observeAncestorsMutation as t, debounce as u };
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.8
4
+ * v4.30.0-next.80
5
5
  */
6
6
  import { editor } from 'monaco-editor';
7
7
  import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
@@ -2935,24 +2935,22 @@ var marked_umd = createCommonjsModule(function (module, exports) {
2935
2935
  // Set up the marked library to use GitHub Flavored Markdown and to use the custom renderer for links.
2936
2936
  marked_umd.marked.use({
2937
2937
  gfm: true,
2938
+ breaks: true,
2939
+ async: false,
2938
2940
  renderer: {
2939
2941
  link(href, title, text) {
2940
2942
  return `<calcite-link href="${href}" title="${title ?? text}" target="Arcade Help">${text}</calcite-link>`;
2941
- }
2942
- }
2943
+ },
2944
+ },
2943
2945
  });
2944
2946
  /**
2945
2947
  * Converts a markdown string to HTML using the marked library.
2946
2948
  */
2947
2949
  function convertMarkdownString(value) {
2948
- value ?? (value = "");
2949
- const result = marked_umd.marked(typeof value === "string" ? value : value.value, {
2950
- gfm: true,
2951
- breaks: true,
2952
- headerIds: false,
2953
- mangle: false
2954
- });
2955
- return result;
2950
+ if (value === null || value === undefined) {
2951
+ return "";
2952
+ }
2953
+ return marked_umd.marked.parse(typeof value === "string" ? value : value.value);
2956
2954
  }
2957
2955
 
2958
2956
  export { colorizedAllCodeElements as a, colorizeCodeElement as b, convertMarkdownString as c, generateColorizeStyles as g, onColorizeThemeChanged as o };
@@ -0,0 +1,35 @@
1
+ /*!
2
+ * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
+ * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
+ * v4.30.0-next.80
5
+ */
6
+ import { m as makeController } from './chunk-63RMNUHL.js';
7
+ import { n as startLocaleObserver, o as getElementLocales } from './index2.js';
8
+ import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
9
+
10
+ var makeT9nController = (getAssetPath) => ({ blocking = false, name } = {}) => (
11
+ // eslint-disable-next-line @typescript-eslint/promise-function-async
12
+ makeController((component, controller) => {
13
+ controller.onLifecycle(
14
+ () => startLocaleObserver(
15
+ component.el,
16
+ getAssetPath("./assets"),
17
+ ({ t9nLocale, t9nStrings, lang }) => {
18
+ controller.exports = { ...t9nStrings, _lang: lang, _t9nLocale: t9nLocale };
19
+ const label = t9nStrings.componentLabel ?? t9nStrings.widgetLabel;
20
+ if (typeof label === "string" && "label" in component && component.label == null)
21
+ component.label ?? (component.label = label);
22
+ },
23
+ name
24
+ )
25
+ );
26
+ if (blocking)
27
+ return controller.ready;
28
+ const locale = getElementLocales(component.el);
29
+ return { _lang: locale.lang, _t9nLocale: locale.t9nLocale };
30
+ })
31
+ );
32
+
33
+ const useT9n = makeT9nController(getAssetPath);
34
+
35
+ export { useT9n as u };
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.8
4
+ * v4.30.0-next.80
5
5
  */
6
- import { K } from './index2.js';
6
+ import { d as createFilterExpression } from './index2.js';
7
7
 
8
8
  /**
9
9
  * Filters a collection of items by the given keys and filter word.
@@ -16,7 +16,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
16
16
  if (!_keys.length) {
17
17
  return [];
18
18
  }
19
- const filterExpression = K(filterWord);
19
+ const filterExpression = createFilterExpression(filterWord);
20
20
  return collection.filter((item) => {
21
21
  if (beforeFilteringFn) {
22
22
  const res = beforeFilteringFn(item);