@emuanalytics/flow-rdf-core 1.1.0 → 1.1.2

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 (821) hide show
  1. package/dist/bundle/flow-rdf-core.js +42592 -0
  2. package/dist/bundle/flow-rdf-core.js.map +7 -0
  3. package/dist/bundle/flow-rdf-core.min.js +635 -0
  4. package/dist/bundle/flow-rdf-core.min.js.map +7 -0
  5. package/dist/cjs/index.d.ts +8 -0
  6. package/dist/cjs/index.d.ts.map +1 -0
  7. package/dist/cjs/index.js +7 -1
  8. package/dist/cjs/index.js.map +1 -1
  9. package/dist/cjs/lib/errors/flow-core-error.d.ts +4 -0
  10. package/dist/cjs/lib/errors/flow-core-error.d.ts.map +1 -0
  11. package/dist/cjs/lib/errors/flow-core-error.js +30 -0
  12. package/dist/cjs/lib/errors/flow-core-error.js.map +1 -0
  13. package/dist/cjs/lib/errors/flow-core-expression-error.d.ts +7 -0
  14. package/dist/cjs/lib/errors/flow-core-expression-error.d.ts.map +1 -0
  15. package/dist/cjs/lib/errors/flow-core-expression-error.js +41 -0
  16. package/dist/cjs/lib/errors/flow-core-expression-error.js.map +1 -0
  17. package/dist/cjs/lib/errors/flow-core-map-error.d.ts +5 -0
  18. package/dist/cjs/lib/errors/flow-core-map-error.d.ts.map +1 -0
  19. package/dist/cjs/lib/errors/flow-core-map-error.js +28 -0
  20. package/dist/cjs/lib/errors/flow-core-map-error.js.map +1 -0
  21. package/dist/cjs/lib/errors/index.d.ts +3 -0
  22. package/dist/cjs/lib/errors/index.d.ts.map +1 -0
  23. package/dist/cjs/lib/errors/index.js +8 -0
  24. package/dist/cjs/lib/errors/index.js.map +1 -0
  25. package/dist/cjs/lib/flow-core-expression/flow-core-expression.d.ts +29 -0
  26. package/dist/cjs/lib/flow-core-expression/flow-core-expression.d.ts.map +1 -0
  27. package/dist/cjs/lib/flow-core-expression/flow-core-expression.js +277 -0
  28. package/dist/cjs/lib/flow-core-expression/flow-core-expression.js.map +1 -0
  29. package/dist/cjs/lib/flow-core-expression/flow-core-parser.d.ts +2 -0
  30. package/dist/cjs/lib/flow-core-expression/flow-core-parser.d.ts.map +1 -0
  31. package/dist/cjs/lib/flow-core-expression/flow-core-parser.js +215 -0
  32. package/dist/cjs/lib/flow-core-expression/flow-core-parser.js.map +1 -0
  33. package/dist/cjs/lib/flow-core-expression/functions/from-palette.d.ts +12 -0
  34. package/dist/cjs/lib/flow-core-expression/functions/from-palette.d.ts.map +1 -0
  35. package/dist/cjs/lib/flow-core-expression/functions/from-palette.js +80 -0
  36. package/dist/cjs/lib/flow-core-expression/functions/from-palette.js.map +1 -0
  37. package/dist/cjs/lib/flow-core-expression/functions/state.d.ts +9 -0
  38. package/dist/cjs/lib/flow-core-expression/functions/state.d.ts.map +1 -0
  39. package/dist/cjs/lib/flow-core-expression/functions/state.js +25 -0
  40. package/dist/cjs/lib/flow-core-expression/functions/state.js.map +1 -0
  41. package/dist/cjs/lib/flow-core-expression/index.d.ts +2 -0
  42. package/dist/cjs/lib/flow-core-expression/index.d.ts.map +1 -0
  43. package/dist/cjs/lib/flow-core-expression/index.js +18 -0
  44. package/dist/cjs/lib/flow-core-expression/index.js.map +1 -0
  45. package/dist/cjs/lib/flow-core-expression/parser-helpers.d.ts +2 -0
  46. package/dist/cjs/lib/flow-core-expression/parser-helpers.d.ts.map +1 -0
  47. package/dist/cjs/lib/flow-core-expression/parser-helpers.js +54 -0
  48. package/dist/cjs/lib/flow-core-expression/parser-helpers.js.map +1 -0
  49. package/dist/cjs/lib/flow-core-expression/types.d.ts +27 -0
  50. package/dist/cjs/lib/flow-core-expression/types.d.ts.map +1 -0
  51. package/dist/cjs/lib/flow-core-expression/types.js +3 -0
  52. package/dist/cjs/lib/flow-core-expression/types.js.map +1 -0
  53. package/dist/cjs/lib/flow-core-map/flow-core-map.d.ts +84 -0
  54. package/dist/cjs/lib/flow-core-map/flow-core-map.d.ts.map +1 -0
  55. package/dist/cjs/lib/flow-core-map/flow-core-map.js +836 -0
  56. package/dist/cjs/lib/flow-core-map/flow-core-map.js.map +1 -0
  57. package/dist/cjs/lib/flow-core-map/index.d.ts +2 -0
  58. package/dist/cjs/lib/flow-core-map/index.d.ts.map +1 -0
  59. package/dist/cjs/lib/flow-core-map/index.js +18 -0
  60. package/dist/cjs/lib/flow-core-map/index.js.map +1 -0
  61. package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts +4 -0
  62. package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts.map +1 -0
  63. package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation-layers.js +94 -0
  64. package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation-layers.js.map +1 -0
  65. package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.events.d.ts +25 -0
  66. package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.events.d.ts.map +1 -0
  67. package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.events.js +71 -0
  68. package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.events.js.map +1 -0
  69. package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts +67 -0
  70. package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts.map +1 -0
  71. package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.plugin.js +732 -0
  72. package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.plugin.js.map +1 -0
  73. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts +4 -0
  74. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts.map +1 -0
  75. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js +11 -0
  76. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js.map +1 -0
  77. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts +3 -0
  78. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts.map +1 -0
  79. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js +70 -0
  80. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js.map +1 -0
  81. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts +23 -0
  82. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts.map +1 -0
  83. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js +75 -0
  84. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js.map +1 -0
  85. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts +3 -0
  86. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts.map +1 -0
  87. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js +19 -0
  88. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js.map +1 -0
  89. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts +6 -0
  90. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts.map +1 -0
  91. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js +21 -0
  92. package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js.map +1 -0
  93. package/dist/cjs/lib/flow-core-map/plugins/annotations/types.d.ts +34 -0
  94. package/dist/cjs/lib/flow-core-map/plugins/annotations/types.d.ts.map +1 -0
  95. package/dist/cjs/lib/flow-core-map/plugins/annotations/types.js +3 -0
  96. package/dist/cjs/lib/flow-core-map/plugins/annotations/types.js.map +1 -0
  97. package/dist/cjs/lib/flow-core-map/plugins/data-join.plugin.d.ts +45 -0
  98. package/dist/cjs/lib/flow-core-map/plugins/data-join.plugin.d.ts.map +1 -0
  99. package/dist/cjs/lib/flow-core-map/plugins/data-join.plugin.js +344 -0
  100. package/dist/cjs/lib/flow-core-map/plugins/data-join.plugin.js.map +1 -0
  101. package/dist/cjs/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts +41 -0
  102. package/dist/cjs/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts.map +1 -0
  103. package/dist/cjs/lib/flow-core-map/plugins/flow-core-map-plugin.js +58 -0
  104. package/dist/cjs/lib/flow-core-map/plugins/flow-core-map-plugin.js.map +1 -0
  105. package/dist/cjs/lib/flow-core-map/plugins/hover-effect.plugin.d.ts +14 -0
  106. package/dist/cjs/lib/flow-core-map/plugins/hover-effect.plugin.d.ts.map +1 -0
  107. package/dist/cjs/lib/flow-core-map/plugins/hover-effect.plugin.js +109 -0
  108. package/dist/cjs/lib/flow-core-map/plugins/hover-effect.plugin.js.map +1 -0
  109. package/dist/cjs/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts +26 -0
  110. package/dist/cjs/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts.map +1 -0
  111. package/dist/cjs/lib/flow-core-map/plugins/keyboard-shortcut-manager.js +166 -0
  112. package/dist/cjs/lib/flow-core-map/plugins/keyboard-shortcut-manager.js.map +1 -0
  113. package/dist/cjs/lib/flow-core-map/plugins/plugin-manager.d.ts +27 -0
  114. package/dist/cjs/lib/flow-core-map/plugins/plugin-manager.d.ts.map +1 -0
  115. package/dist/cjs/lib/flow-core-map/plugins/plugin-manager.js +242 -0
  116. package/dist/cjs/lib/flow-core-map/plugins/plugin-manager.js.map +1 -0
  117. package/dist/cjs/lib/flow-core-map/plugins/popup.plugin.d.ts +17 -0
  118. package/dist/cjs/lib/flow-core-map/plugins/popup.plugin.d.ts.map +1 -0
  119. package/dist/cjs/lib/flow-core-map/plugins/popup.plugin.js +108 -0
  120. package/dist/cjs/lib/flow-core-map/plugins/popup.plugin.js.map +1 -0
  121. package/dist/cjs/lib/flow-core-map/plugins/selection/selection.events.d.ts +14 -0
  122. package/dist/cjs/lib/flow-core-map/plugins/selection/selection.events.d.ts.map +1 -0
  123. package/dist/cjs/lib/flow-core-map/plugins/selection/selection.events.js +50 -0
  124. package/dist/cjs/lib/flow-core-map/plugins/selection/selection.events.js.map +1 -0
  125. package/dist/cjs/lib/flow-core-map/plugins/selection/selection.plugin.d.ts +31 -0
  126. package/dist/cjs/lib/flow-core-map/plugins/selection/selection.plugin.d.ts.map +1 -0
  127. package/dist/cjs/lib/flow-core-map/plugins/selection/selection.plugin.js +195 -0
  128. package/dist/cjs/lib/flow-core-map/plugins/selection/selection.plugin.js.map +1 -0
  129. package/dist/cjs/lib/flow-core-map/plugins/selection/source-selection.d.ts +24 -0
  130. package/dist/cjs/lib/flow-core-map/plugins/selection/source-selection.d.ts.map +1 -0
  131. package/dist/cjs/lib/flow-core-map/plugins/selection/source-selection.js +276 -0
  132. package/dist/cjs/lib/flow-core-map/plugins/selection/source-selection.js.map +1 -0
  133. package/dist/cjs/lib/flow-core-map/support/flow-core-map-events.d.ts +56 -0
  134. package/dist/cjs/lib/flow-core-map/support/flow-core-map-events.d.ts.map +1 -0
  135. package/dist/cjs/lib/flow-core-map/support/flow-core-map-events.js +147 -0
  136. package/dist/cjs/lib/flow-core-map/support/flow-core-map-events.js.map +1 -0
  137. package/dist/cjs/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts +29 -0
  138. package/dist/cjs/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts.map +1 -0
  139. package/dist/cjs/lib/flow-core-map/support/flow-core-map-feature-stream.js +207 -0
  140. package/dist/cjs/lib/flow-core-map/support/flow-core-map-feature-stream.js.map +1 -0
  141. package/dist/cjs/lib/flow-core-map/support/flow-core-map-popup.d.ts +39 -0
  142. package/dist/cjs/lib/flow-core-map/support/flow-core-map-popup.d.ts.map +1 -0
  143. package/dist/cjs/lib/flow-core-map/support/flow-core-map-popup.js +259 -0
  144. package/dist/cjs/lib/flow-core-map/support/flow-core-map-popup.js.map +1 -0
  145. package/dist/cjs/lib/flow-core-map/support/image-registry.d.ts +2 -0
  146. package/dist/cjs/lib/flow-core-map/support/image-registry.d.ts.map +1 -0
  147. package/dist/cjs/lib/flow-core-map/support/image-registry.js +86 -0
  148. package/dist/cjs/lib/flow-core-map/support/image-registry.js.map +1 -0
  149. package/dist/cjs/lib/flow-core-map/types.d.ts +45 -0
  150. package/dist/cjs/lib/flow-core-map/types.d.ts.map +1 -0
  151. package/dist/cjs/lib/flow-core-map/types.js +10 -0
  152. package/dist/cjs/lib/flow-core-map/types.js.map +1 -0
  153. package/dist/cjs/lib/flow-core-map-style/flow-core-map-data-source.d.ts +26 -0
  154. package/dist/cjs/lib/flow-core-map-style/flow-core-map-data-source.d.ts.map +1 -0
  155. package/dist/cjs/lib/flow-core-map-style/flow-core-map-data-source.js +286 -0
  156. package/dist/cjs/lib/flow-core-map-style/flow-core-map-data-source.js.map +1 -0
  157. package/dist/cjs/lib/flow-core-map-style/flow-core-map-layer.d.ts +58 -0
  158. package/dist/cjs/lib/flow-core-map-style/flow-core-map-layer.d.ts.map +1 -0
  159. package/dist/cjs/lib/flow-core-map-style/flow-core-map-layer.js +357 -0
  160. package/dist/cjs/lib/flow-core-map-style/flow-core-map-layer.js.map +1 -0
  161. package/dist/cjs/lib/flow-core-map-style/flow-core-map-style.d.ts +32 -0
  162. package/dist/cjs/lib/flow-core-map-style/flow-core-map-style.d.ts.map +1 -0
  163. package/dist/cjs/lib/flow-core-map-style/flow-core-map-style.js +314 -0
  164. package/dist/cjs/lib/flow-core-map-style/flow-core-map-style.js.map +1 -0
  165. package/dist/cjs/lib/flow-core-map-style/index.d.ts +5 -0
  166. package/dist/cjs/lib/flow-core-map-style/index.d.ts.map +1 -0
  167. package/dist/cjs/lib/flow-core-map-style/index.js +21 -0
  168. package/dist/cjs/lib/flow-core-map-style/index.js.map +1 -0
  169. package/dist/cjs/lib/flow-core-map-style/types.d.ts +49 -0
  170. package/dist/cjs/lib/flow-core-map-style/types.d.ts.map +1 -0
  171. package/dist/cjs/lib/flow-core-map-style/types.js +3 -0
  172. package/dist/cjs/lib/flow-core-map-style/types.js.map +1 -0
  173. package/dist/cjs/lib/flow-core-query/FlowQueryResultFormat.d.ts +36 -0
  174. package/dist/cjs/lib/flow-core-query/FlowQueryResultFormat.d.ts.map +1 -0
  175. package/dist/cjs/lib/flow-core-query/FlowQueryResultFormat.js +3 -0
  176. package/dist/cjs/lib/flow-core-query/FlowQueryResultFormat.js.map +1 -0
  177. package/dist/{types/lib → cjs/lib/flow-core-query}/async-committer.d.ts +0 -0
  178. package/dist/cjs/lib/flow-core-query/async-committer.d.ts.map +1 -0
  179. package/dist/cjs/lib/flow-core-query/async-committer.js +95 -0
  180. package/dist/cjs/lib/flow-core-query/async-committer.js.map +1 -0
  181. package/dist/cjs/lib/flow-core-query/flow-core-query.d.ts +35 -0
  182. package/dist/cjs/lib/flow-core-query/flow-core-query.d.ts.map +1 -0
  183. package/dist/cjs/lib/flow-core-query/flow-core-query.js +371 -0
  184. package/dist/cjs/lib/flow-core-query/flow-core-query.js.map +1 -0
  185. package/dist/cjs/lib/flow-core-query/index.d.ts +2 -0
  186. package/dist/cjs/lib/flow-core-query/index.d.ts.map +1 -0
  187. package/dist/cjs/lib/flow-core-query/index.js +18 -0
  188. package/dist/cjs/lib/flow-core-query/index.js.map +1 -0
  189. package/dist/cjs/lib/flow-core-state-store/flow-core-state-store.d.ts +25 -0
  190. package/dist/cjs/lib/flow-core-state-store/flow-core-state-store.d.ts.map +1 -0
  191. package/dist/cjs/lib/flow-core-state-store/flow-core-state-store.js +203 -0
  192. package/dist/cjs/lib/flow-core-state-store/flow-core-state-store.js.map +1 -0
  193. package/dist/cjs/lib/flow-core-state-store/index.d.ts +6 -0
  194. package/dist/cjs/lib/flow-core-state-store/index.d.ts.map +1 -0
  195. package/dist/cjs/lib/flow-core-state-store/index.js +25 -0
  196. package/dist/cjs/lib/flow-core-state-store/index.js.map +1 -0
  197. package/dist/cjs/lib/flow-core-state-store/utils.d.ts +10 -0
  198. package/dist/cjs/lib/flow-core-state-store/utils.d.ts.map +1 -0
  199. package/dist/cjs/lib/flow-core-state-store/utils.js +9 -0
  200. package/dist/cjs/lib/flow-core-state-store/utils.js.map +1 -0
  201. package/dist/cjs/lib/utils/assert.d.ts +2 -0
  202. package/dist/cjs/lib/utils/assert.d.ts.map +1 -0
  203. package/dist/cjs/lib/utils/assert.js +11 -0
  204. package/dist/cjs/lib/utils/assert.js.map +1 -0
  205. package/dist/cjs/lib/utils/ensure-array.d.ts +2 -0
  206. package/dist/cjs/lib/utils/ensure-array.d.ts.map +1 -0
  207. package/dist/cjs/lib/utils/ensure-array.js +23 -0
  208. package/dist/cjs/lib/utils/ensure-array.js.map +1 -0
  209. package/dist/cjs/lib/utils/feature-type-checks.d.ts +5 -0
  210. package/dist/cjs/lib/utils/feature-type-checks.d.ts.map +1 -0
  211. package/dist/cjs/lib/utils/feature-type-checks.js +30 -0
  212. package/dist/cjs/lib/utils/feature-type-checks.js.map +1 -0
  213. package/dist/cjs/lib/utils/functional.d.ts +34 -0
  214. package/dist/cjs/lib/utils/functional.d.ts.map +1 -0
  215. package/dist/cjs/lib/utils/functional.js +144 -0
  216. package/dist/cjs/lib/utils/functional.js.map +1 -0
  217. package/dist/cjs/lib/utils/index.d.ts +2 -0
  218. package/dist/cjs/lib/utils/index.d.ts.map +1 -0
  219. package/dist/cjs/lib/utils/index.js +18 -0
  220. package/dist/cjs/lib/utils/index.js.map +1 -0
  221. package/dist/cjs/lib/utils/string-utils.d.ts +2 -0
  222. package/dist/cjs/lib/utils/string-utils.d.ts.map +1 -0
  223. package/dist/cjs/lib/utils/string-utils.js +11 -0
  224. package/dist/cjs/lib/utils/string-utils.js.map +1 -0
  225. package/dist/cjs/lib/utils/type-checks.d.ts +25 -0
  226. package/dist/cjs/lib/utils/type-checks.d.ts.map +1 -0
  227. package/dist/cjs/lib/utils/type-checks.js +80 -0
  228. package/dist/cjs/lib/utils/type-checks.js.map +1 -0
  229. package/dist/cjs/lib/utils/typescript-utils.d.ts +2 -0
  230. package/dist/cjs/lib/utils/typescript-utils.d.ts.map +1 -0
  231. package/dist/cjs/lib/utils/typescript-utils.js +3 -0
  232. package/dist/cjs/lib/utils/typescript-utils.js.map +1 -0
  233. package/dist/esm/index.d.ts +8 -0
  234. package/dist/esm/index.d.ts.map +1 -0
  235. package/dist/esm/index.js +7 -1
  236. package/dist/esm/index.js.map +1 -1
  237. package/dist/esm/lib/errors/flow-core-error.d.ts +4 -0
  238. package/dist/esm/lib/errors/flow-core-error.d.ts.map +1 -0
  239. package/dist/esm/lib/errors/flow-core-error.js +8 -0
  240. package/dist/esm/lib/errors/flow-core-error.js.map +1 -0
  241. package/dist/esm/lib/errors/flow-core-expression-error.d.ts +7 -0
  242. package/dist/esm/lib/errors/flow-core-expression-error.d.ts.map +1 -0
  243. package/dist/esm/lib/errors/flow-core-expression-error.js +19 -0
  244. package/dist/esm/lib/errors/flow-core-expression-error.js.map +1 -0
  245. package/dist/esm/lib/errors/flow-core-map-error.d.ts +5 -0
  246. package/dist/esm/lib/errors/flow-core-map-error.d.ts.map +1 -0
  247. package/dist/esm/lib/errors/flow-core-map-error.js +7 -0
  248. package/dist/esm/lib/errors/flow-core-map-error.js.map +1 -0
  249. package/dist/esm/lib/errors/index.d.ts +3 -0
  250. package/dist/esm/lib/errors/index.d.ts.map +1 -0
  251. package/dist/esm/lib/errors/index.js +3 -0
  252. package/dist/esm/lib/errors/index.js.map +1 -0
  253. package/dist/esm/lib/flow-core-expression/flow-core-expression.d.ts +29 -0
  254. package/dist/esm/lib/flow-core-expression/flow-core-expression.d.ts.map +1 -0
  255. package/dist/esm/lib/flow-core-expression/flow-core-expression.js +148 -0
  256. package/dist/esm/lib/flow-core-expression/flow-core-expression.js.map +1 -0
  257. package/dist/esm/lib/flow-core-expression/flow-core-parser.d.ts +2 -0
  258. package/dist/esm/lib/flow-core-expression/flow-core-parser.d.ts.map +1 -0
  259. package/dist/esm/lib/flow-core-expression/flow-core-parser.js +147 -0
  260. package/dist/esm/lib/flow-core-expression/flow-core-parser.js.map +1 -0
  261. package/dist/esm/lib/flow-core-expression/functions/from-palette.d.ts +12 -0
  262. package/dist/esm/lib/flow-core-expression/functions/from-palette.d.ts.map +1 -0
  263. package/dist/esm/lib/flow-core-expression/functions/from-palette.js +73 -0
  264. package/dist/esm/lib/flow-core-expression/functions/from-palette.js.map +1 -0
  265. package/dist/esm/lib/flow-core-expression/functions/state.d.ts +9 -0
  266. package/dist/esm/lib/flow-core-expression/functions/state.d.ts.map +1 -0
  267. package/dist/esm/lib/flow-core-expression/functions/state.js +23 -0
  268. package/dist/esm/lib/flow-core-expression/functions/state.js.map +1 -0
  269. package/dist/esm/lib/flow-core-expression/index.d.ts +2 -0
  270. package/dist/esm/lib/flow-core-expression/index.d.ts.map +1 -0
  271. package/dist/esm/lib/flow-core-expression/index.js +2 -0
  272. package/dist/esm/lib/flow-core-expression/index.js.map +1 -0
  273. package/dist/esm/lib/flow-core-expression/parser-helpers.d.ts +2 -0
  274. package/dist/esm/lib/flow-core-expression/parser-helpers.d.ts.map +1 -0
  275. package/dist/esm/lib/flow-core-expression/parser-helpers.js +24 -0
  276. package/dist/esm/lib/flow-core-expression/parser-helpers.js.map +1 -0
  277. package/dist/esm/lib/flow-core-expression/types.d.ts +27 -0
  278. package/dist/esm/lib/flow-core-expression/types.d.ts.map +1 -0
  279. package/dist/esm/lib/flow-core-expression/types.js +2 -0
  280. package/dist/esm/lib/flow-core-expression/types.js.map +1 -0
  281. package/dist/esm/lib/flow-core-map/flow-core-map.d.ts +84 -0
  282. package/dist/esm/lib/flow-core-map/flow-core-map.d.ts.map +1 -0
  283. package/dist/esm/lib/flow-core-map/flow-core-map.js +491 -0
  284. package/dist/esm/lib/flow-core-map/flow-core-map.js.map +1 -0
  285. package/dist/esm/lib/flow-core-map/index.d.ts +2 -0
  286. package/dist/esm/lib/flow-core-map/index.d.ts.map +1 -0
  287. package/dist/esm/lib/flow-core-map/index.js +2 -0
  288. package/dist/esm/lib/flow-core-map/index.js.map +1 -0
  289. package/dist/esm/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts +4 -0
  290. package/dist/esm/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts.map +1 -0
  291. package/dist/esm/lib/flow-core-map/plugins/annotations/annotation-layers.js +150 -0
  292. package/dist/esm/lib/flow-core-map/plugins/annotations/annotation-layers.js.map +1 -0
  293. package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.events.d.ts +25 -0
  294. package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.events.d.ts.map +1 -0
  295. package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.events.js +49 -0
  296. package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.events.js.map +1 -0
  297. package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts +67 -0
  298. package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts.map +1 -0
  299. package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.plugin.js +524 -0
  300. package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.plugin.js.map +1 -0
  301. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts +4 -0
  302. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts.map +1 -0
  303. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js +4 -0
  304. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js.map +1 -0
  305. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts +3 -0
  306. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts.map +1 -0
  307. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js +65 -0
  308. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js.map +1 -0
  309. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts +23 -0
  310. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts.map +1 -0
  311. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js +59 -0
  312. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js.map +1 -0
  313. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts +3 -0
  314. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts.map +1 -0
  315. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js +14 -0
  316. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js.map +1 -0
  317. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts +6 -0
  318. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts.map +1 -0
  319. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js +19 -0
  320. package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js.map +1 -0
  321. package/dist/esm/lib/flow-core-map/plugins/annotations/types.d.ts +34 -0
  322. package/dist/esm/lib/flow-core-map/plugins/annotations/types.d.ts.map +1 -0
  323. package/dist/esm/lib/flow-core-map/plugins/annotations/types.js +2 -0
  324. package/dist/esm/lib/flow-core-map/plugins/annotations/types.js.map +1 -0
  325. package/dist/esm/lib/flow-core-map/plugins/data-join.plugin.d.ts +45 -0
  326. package/dist/esm/lib/flow-core-map/plugins/data-join.plugin.d.ts.map +1 -0
  327. package/dist/esm/lib/flow-core-map/plugins/data-join.plugin.js +204 -0
  328. package/dist/esm/lib/flow-core-map/plugins/data-join.plugin.js.map +1 -0
  329. package/dist/esm/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts +41 -0
  330. package/dist/esm/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts.map +1 -0
  331. package/dist/esm/lib/flow-core-map/plugins/flow-core-map-plugin.js +28 -0
  332. package/dist/esm/lib/flow-core-map/plugins/flow-core-map-plugin.js.map +1 -0
  333. package/dist/esm/lib/flow-core-map/plugins/hover-effect.plugin.d.ts +14 -0
  334. package/dist/esm/lib/flow-core-map/plugins/hover-effect.plugin.d.ts.map +1 -0
  335. package/dist/esm/lib/flow-core-map/plugins/hover-effect.plugin.js +62 -0
  336. package/dist/esm/lib/flow-core-map/plugins/hover-effect.plugin.js.map +1 -0
  337. package/dist/esm/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts +26 -0
  338. package/dist/esm/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts.map +1 -0
  339. package/dist/esm/lib/flow-core-map/plugins/keyboard-shortcut-manager.js +98 -0
  340. package/dist/esm/lib/flow-core-map/plugins/keyboard-shortcut-manager.js.map +1 -0
  341. package/dist/esm/lib/flow-core-map/plugins/plugin-manager.d.ts +27 -0
  342. package/dist/esm/lib/flow-core-map/plugins/plugin-manager.d.ts.map +1 -0
  343. package/dist/esm/lib/flow-core-map/plugins/plugin-manager.js +144 -0
  344. package/dist/esm/lib/flow-core-map/plugins/plugin-manager.js.map +1 -0
  345. package/dist/esm/lib/flow-core-map/plugins/popup.plugin.d.ts +17 -0
  346. package/dist/esm/lib/flow-core-map/plugins/popup.plugin.d.ts.map +1 -0
  347. package/dist/esm/lib/flow-core-map/plugins/popup.plugin.js +64 -0
  348. package/dist/esm/lib/flow-core-map/plugins/popup.plugin.js.map +1 -0
  349. package/dist/esm/lib/flow-core-map/plugins/selection/selection.events.d.ts +14 -0
  350. package/dist/esm/lib/flow-core-map/plugins/selection/selection.events.d.ts.map +1 -0
  351. package/dist/esm/lib/flow-core-map/plugins/selection/selection.events.js +28 -0
  352. package/dist/esm/lib/flow-core-map/plugins/selection/selection.events.js.map +1 -0
  353. package/dist/esm/lib/flow-core-map/plugins/selection/selection.plugin.d.ts +31 -0
  354. package/dist/esm/lib/flow-core-map/plugins/selection/selection.plugin.d.ts.map +1 -0
  355. package/dist/esm/lib/flow-core-map/plugins/selection/selection.plugin.js +123 -0
  356. package/dist/esm/lib/flow-core-map/plugins/selection/selection.plugin.js.map +1 -0
  357. package/dist/esm/lib/flow-core-map/plugins/selection/source-selection.d.ts +24 -0
  358. package/dist/esm/lib/flow-core-map/plugins/selection/source-selection.d.ts.map +1 -0
  359. package/dist/esm/lib/flow-core-map/plugins/selection/source-selection.js +188 -0
  360. package/dist/esm/lib/flow-core-map/plugins/selection/source-selection.js.map +1 -0
  361. package/dist/esm/lib/flow-core-map/support/flow-core-map-events.d.ts +56 -0
  362. package/dist/esm/lib/flow-core-map/support/flow-core-map-events.d.ts.map +1 -0
  363. package/dist/esm/lib/flow-core-map/support/flow-core-map-events.js +101 -0
  364. package/dist/esm/lib/flow-core-map/support/flow-core-map-events.js.map +1 -0
  365. package/dist/esm/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts +29 -0
  366. package/dist/esm/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts.map +1 -0
  367. package/dist/esm/lib/flow-core-map/support/flow-core-map-feature-stream.js +140 -0
  368. package/dist/esm/lib/flow-core-map/support/flow-core-map-feature-stream.js.map +1 -0
  369. package/dist/esm/lib/flow-core-map/support/flow-core-map-popup.d.ts +39 -0
  370. package/dist/esm/lib/flow-core-map/support/flow-core-map-popup.d.ts.map +1 -0
  371. package/dist/esm/lib/flow-core-map/support/flow-core-map-popup.js +158 -0
  372. package/dist/esm/lib/flow-core-map/support/flow-core-map-popup.js.map +1 -0
  373. package/dist/esm/lib/flow-core-map/support/image-registry.d.ts +2 -0
  374. package/dist/esm/lib/flow-core-map/support/image-registry.d.ts.map +1 -0
  375. package/dist/esm/lib/flow-core-map/support/image-registry.js +56 -0
  376. package/dist/esm/lib/flow-core-map/support/image-registry.js.map +1 -0
  377. package/dist/esm/lib/flow-core-map/types.d.ts +45 -0
  378. package/dist/esm/lib/flow-core-map/types.d.ts.map +1 -0
  379. package/dist/esm/lib/flow-core-map/types.js +6 -0
  380. package/dist/esm/lib/flow-core-map/types.js.map +1 -0
  381. package/dist/esm/lib/flow-core-map-style/flow-core-map-data-source.d.ts +26 -0
  382. package/dist/esm/lib/flow-core-map-style/flow-core-map-data-source.d.ts.map +1 -0
  383. package/dist/esm/lib/flow-core-map-style/flow-core-map-data-source.js +197 -0
  384. package/dist/esm/lib/flow-core-map-style/flow-core-map-data-source.js.map +1 -0
  385. package/dist/esm/lib/flow-core-map-style/flow-core-map-layer.d.ts +58 -0
  386. package/dist/esm/lib/flow-core-map-style/flow-core-map-layer.d.ts.map +1 -0
  387. package/dist/esm/lib/flow-core-map-style/flow-core-map-layer.js +228 -0
  388. package/dist/esm/lib/flow-core-map-style/flow-core-map-layer.js.map +1 -0
  389. package/dist/esm/lib/flow-core-map-style/flow-core-map-style.d.ts +32 -0
  390. package/dist/esm/lib/flow-core-map-style/flow-core-map-style.d.ts.map +1 -0
  391. package/dist/esm/lib/flow-core-map-style/flow-core-map-style.js +200 -0
  392. package/dist/esm/lib/flow-core-map-style/flow-core-map-style.js.map +1 -0
  393. package/dist/esm/lib/flow-core-map-style/index.d.ts +5 -0
  394. package/dist/esm/lib/flow-core-map-style/index.d.ts.map +1 -0
  395. package/dist/esm/lib/flow-core-map-style/index.js +5 -0
  396. package/dist/esm/lib/flow-core-map-style/index.js.map +1 -0
  397. package/dist/esm/lib/flow-core-map-style/types.d.ts +49 -0
  398. package/dist/esm/lib/flow-core-map-style/types.d.ts.map +1 -0
  399. package/dist/esm/lib/flow-core-map-style/types.js +2 -0
  400. package/dist/esm/lib/flow-core-map-style/types.js.map +1 -0
  401. package/dist/esm/lib/flow-core-query/FlowQueryResultFormat.d.ts +36 -0
  402. package/dist/esm/lib/flow-core-query/FlowQueryResultFormat.d.ts.map +1 -0
  403. package/dist/esm/lib/flow-core-query/FlowQueryResultFormat.js +2 -0
  404. package/dist/esm/lib/flow-core-query/FlowQueryResultFormat.js.map +1 -0
  405. package/dist/esm/lib/flow-core-query/async-committer.d.ts +15 -0
  406. package/dist/esm/lib/flow-core-query/async-committer.d.ts.map +1 -0
  407. package/dist/esm/lib/{async-committer.js → flow-core-query/async-committer.js} +1 -9
  408. package/dist/esm/lib/flow-core-query/async-committer.js.map +1 -0
  409. package/dist/esm/lib/flow-core-query/flow-core-query.d.ts +35 -0
  410. package/dist/esm/lib/flow-core-query/flow-core-query.d.ts.map +1 -0
  411. package/dist/esm/lib/{flow-query.js → flow-core-query/flow-core-query.js} +100 -35
  412. package/dist/esm/lib/flow-core-query/flow-core-query.js.map +1 -0
  413. package/dist/esm/lib/flow-core-query/index.d.ts +2 -0
  414. package/dist/esm/lib/flow-core-query/index.d.ts.map +1 -0
  415. package/dist/esm/lib/flow-core-query/index.js +2 -0
  416. package/dist/esm/lib/flow-core-query/index.js.map +1 -0
  417. package/dist/esm/lib/flow-core-state-store/flow-core-state-store.d.ts +25 -0
  418. package/dist/esm/lib/flow-core-state-store/flow-core-state-store.d.ts.map +1 -0
  419. package/dist/esm/lib/flow-core-state-store/flow-core-state-store.js +121 -0
  420. package/dist/esm/lib/flow-core-state-store/flow-core-state-store.js.map +1 -0
  421. package/dist/esm/lib/flow-core-state-store/index.d.ts +6 -0
  422. package/dist/esm/lib/flow-core-state-store/index.d.ts.map +1 -0
  423. package/dist/esm/lib/flow-core-state-store/index.js +4 -0
  424. package/dist/esm/lib/flow-core-state-store/index.js.map +1 -0
  425. package/dist/esm/lib/flow-core-state-store/utils.d.ts +10 -0
  426. package/dist/esm/lib/flow-core-state-store/utils.d.ts.map +1 -0
  427. package/dist/esm/lib/flow-core-state-store/utils.js +5 -0
  428. package/dist/esm/lib/flow-core-state-store/utils.js.map +1 -0
  429. package/dist/esm/lib/utils/assert.d.ts +2 -0
  430. package/dist/esm/lib/utils/assert.d.ts.map +1 -0
  431. package/dist/esm/lib/utils/assert.js +7 -0
  432. package/dist/esm/lib/utils/assert.js.map +1 -0
  433. package/dist/esm/lib/utils/ensure-array.d.ts +2 -0
  434. package/dist/esm/lib/utils/ensure-array.d.ts.map +1 -0
  435. package/dist/esm/lib/utils/ensure-array.js +15 -0
  436. package/dist/esm/lib/utils/ensure-array.js.map +1 -0
  437. package/dist/esm/lib/utils/feature-type-checks.d.ts +5 -0
  438. package/dist/esm/lib/utils/feature-type-checks.d.ts.map +1 -0
  439. package/dist/esm/lib/utils/feature-type-checks.js +23 -0
  440. package/dist/esm/lib/utils/feature-type-checks.js.map +1 -0
  441. package/dist/esm/lib/utils/functional.d.ts +34 -0
  442. package/dist/esm/lib/utils/functional.d.ts.map +1 -0
  443. package/dist/esm/lib/utils/functional.js +89 -0
  444. package/dist/esm/lib/utils/functional.js.map +1 -0
  445. package/dist/esm/lib/utils/index.d.ts +2 -0
  446. package/dist/esm/lib/utils/index.d.ts.map +1 -0
  447. package/dist/esm/lib/utils/index.js +2 -0
  448. package/dist/esm/lib/utils/index.js.map +1 -0
  449. package/dist/esm/lib/utils/string-utils.d.ts +2 -0
  450. package/dist/esm/lib/utils/string-utils.d.ts.map +1 -0
  451. package/dist/esm/lib/utils/string-utils.js +3 -0
  452. package/dist/esm/lib/utils/string-utils.js.map +1 -0
  453. package/dist/esm/lib/utils/type-checks.d.ts +25 -0
  454. package/dist/esm/lib/utils/type-checks.d.ts.map +1 -0
  455. package/dist/esm/lib/utils/type-checks.js +51 -0
  456. package/dist/esm/lib/utils/type-checks.js.map +1 -0
  457. package/dist/esm/lib/utils/typescript-utils.d.ts +2 -0
  458. package/dist/esm/lib/utils/typescript-utils.d.ts.map +1 -0
  459. package/dist/esm/lib/utils/typescript-utils.js +2 -0
  460. package/dist/esm/lib/utils/typescript-utils.js.map +1 -0
  461. package/dist/esm5/index.d.ts +8 -0
  462. package/dist/esm5/index.d.ts.map +1 -0
  463. package/dist/esm5/index.js +8 -0
  464. package/dist/esm5/index.js.map +1 -0
  465. package/dist/esm5/lib/errors/flow-core-error.d.ts +4 -0
  466. package/dist/esm5/lib/errors/flow-core-error.d.ts.map +1 -0
  467. package/dist/esm5/lib/errors/flow-core-error.js +13 -0
  468. package/dist/esm5/lib/errors/flow-core-error.js.map +1 -0
  469. package/dist/esm5/lib/errors/flow-core-expression-error.d.ts +7 -0
  470. package/dist/esm5/lib/errors/flow-core-expression-error.d.ts.map +1 -0
  471. package/dist/esm5/lib/errors/flow-core-expression-error.js +24 -0
  472. package/dist/esm5/lib/errors/flow-core-expression-error.js.map +1 -0
  473. package/dist/esm5/lib/errors/flow-core-map-error.d.ts +5 -0
  474. package/dist/esm5/lib/errors/flow-core-map-error.d.ts.map +1 -0
  475. package/dist/esm5/lib/errors/flow-core-map-error.js +11 -0
  476. package/dist/esm5/lib/errors/flow-core-map-error.js.map +1 -0
  477. package/dist/esm5/lib/errors/index.d.ts +3 -0
  478. package/dist/esm5/lib/errors/index.d.ts.map +1 -0
  479. package/dist/esm5/lib/errors/index.js +3 -0
  480. package/dist/esm5/lib/errors/index.js.map +1 -0
  481. package/dist/esm5/lib/flow-core-expression/flow-core-expression.d.ts +29 -0
  482. package/dist/esm5/lib/flow-core-expression/flow-core-expression.d.ts.map +1 -0
  483. package/dist/esm5/lib/flow-core-expression/flow-core-expression.js +224 -0
  484. package/dist/esm5/lib/flow-core-expression/flow-core-expression.js.map +1 -0
  485. package/dist/esm5/lib/flow-core-expression/flow-core-parser.d.ts +2 -0
  486. package/dist/esm5/lib/flow-core-expression/flow-core-parser.d.ts.map +1 -0
  487. package/dist/esm5/lib/flow-core-expression/flow-core-parser.js +185 -0
  488. package/dist/esm5/lib/flow-core-expression/flow-core-parser.js.map +1 -0
  489. package/dist/esm5/lib/flow-core-expression/functions/from-palette.d.ts +12 -0
  490. package/dist/esm5/lib/flow-core-expression/functions/from-palette.d.ts.map +1 -0
  491. package/dist/esm5/lib/flow-core-expression/functions/from-palette.js +75 -0
  492. package/dist/esm5/lib/flow-core-expression/functions/from-palette.js.map +1 -0
  493. package/dist/esm5/lib/flow-core-expression/functions/state.d.ts +9 -0
  494. package/dist/esm5/lib/flow-core-expression/functions/state.d.ts.map +1 -0
  495. package/dist/esm5/lib/flow-core-expression/functions/state.js +23 -0
  496. package/dist/esm5/lib/flow-core-expression/functions/state.js.map +1 -0
  497. package/dist/esm5/lib/flow-core-expression/index.d.ts +2 -0
  498. package/dist/esm5/lib/flow-core-expression/index.d.ts.map +1 -0
  499. package/dist/esm5/lib/flow-core-expression/index.js +2 -0
  500. package/dist/esm5/lib/flow-core-expression/index.js.map +1 -0
  501. package/dist/esm5/lib/flow-core-expression/parser-helpers.d.ts +2 -0
  502. package/dist/esm5/lib/flow-core-expression/parser-helpers.d.ts.map +1 -0
  503. package/dist/esm5/lib/flow-core-expression/parser-helpers.js +29 -0
  504. package/dist/esm5/lib/flow-core-expression/parser-helpers.js.map +1 -0
  505. package/dist/esm5/lib/flow-core-expression/types.d.ts +27 -0
  506. package/dist/esm5/lib/flow-core-expression/types.d.ts.map +1 -0
  507. package/dist/esm5/lib/flow-core-expression/types.js +2 -0
  508. package/dist/esm5/lib/flow-core-expression/types.js.map +1 -0
  509. package/dist/esm5/lib/flow-core-map/flow-core-map.d.ts +84 -0
  510. package/dist/esm5/lib/flow-core-map/flow-core-map.d.ts.map +1 -0
  511. package/dist/esm5/lib/flow-core-map/flow-core-map.js +746 -0
  512. package/dist/esm5/lib/flow-core-map/flow-core-map.js.map +1 -0
  513. package/dist/esm5/lib/flow-core-map/index.d.ts +2 -0
  514. package/dist/esm5/lib/flow-core-map/index.d.ts.map +1 -0
  515. package/dist/esm5/lib/flow-core-map/index.js +2 -0
  516. package/dist/esm5/lib/flow-core-map/index.js.map +1 -0
  517. package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts +4 -0
  518. package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts.map +1 -0
  519. package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation-layers.js +90 -0
  520. package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation-layers.js.map +1 -0
  521. package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.events.d.ts +25 -0
  522. package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.events.d.ts.map +1 -0
  523. package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.events.js +54 -0
  524. package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.events.js.map +1 -0
  525. package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts +67 -0
  526. package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts.map +1 -0
  527. package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.plugin.js +701 -0
  528. package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.plugin.js.map +1 -0
  529. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts +4 -0
  530. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts.map +1 -0
  531. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js +4 -0
  532. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js.map +1 -0
  533. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts +3 -0
  534. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts.map +1 -0
  535. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js +65 -0
  536. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js.map +1 -0
  537. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts +23 -0
  538. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts.map +1 -0
  539. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js +60 -0
  540. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js.map +1 -0
  541. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts +3 -0
  542. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts.map +1 -0
  543. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js +14 -0
  544. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js.map +1 -0
  545. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts +6 -0
  546. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts.map +1 -0
  547. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js +19 -0
  548. package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js.map +1 -0
  549. package/dist/esm5/lib/flow-core-map/plugins/annotations/types.d.ts +34 -0
  550. package/dist/esm5/lib/flow-core-map/plugins/annotations/types.d.ts.map +1 -0
  551. package/dist/esm5/lib/flow-core-map/plugins/annotations/types.js +2 -0
  552. package/dist/esm5/lib/flow-core-map/plugins/annotations/types.js.map +1 -0
  553. package/dist/esm5/lib/flow-core-map/plugins/data-join.plugin.d.ts +45 -0
  554. package/dist/esm5/lib/flow-core-map/plugins/data-join.plugin.d.ts.map +1 -0
  555. package/dist/esm5/lib/flow-core-map/plugins/data-join.plugin.js +277 -0
  556. package/dist/esm5/lib/flow-core-map/plugins/data-join.plugin.js.map +1 -0
  557. package/dist/esm5/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts +41 -0
  558. package/dist/esm5/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts.map +1 -0
  559. package/dist/esm5/lib/flow-core-map/plugins/flow-core-map-plugin.js +41 -0
  560. package/dist/esm5/lib/flow-core-map/plugins/flow-core-map-plugin.js.map +1 -0
  561. package/dist/esm5/lib/flow-core-map/plugins/hover-effect.plugin.d.ts +14 -0
  562. package/dist/esm5/lib/flow-core-map/plugins/hover-effect.plugin.d.ts.map +1 -0
  563. package/dist/esm5/lib/flow-core-map/plugins/hover-effect.plugin.js +92 -0
  564. package/dist/esm5/lib/flow-core-map/plugins/hover-effect.plugin.js.map +1 -0
  565. package/dist/esm5/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts +26 -0
  566. package/dist/esm5/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts.map +1 -0
  567. package/dist/esm5/lib/flow-core-map/plugins/keyboard-shortcut-manager.js +153 -0
  568. package/dist/esm5/lib/flow-core-map/plugins/keyboard-shortcut-manager.js.map +1 -0
  569. package/dist/esm5/lib/flow-core-map/plugins/plugin-manager.d.ts +27 -0
  570. package/dist/esm5/lib/flow-core-map/plugins/plugin-manager.d.ts.map +1 -0
  571. package/dist/esm5/lib/flow-core-map/plugins/plugin-manager.js +226 -0
  572. package/dist/esm5/lib/flow-core-map/plugins/plugin-manager.js.map +1 -0
  573. package/dist/esm5/lib/flow-core-map/plugins/popup.plugin.d.ts +17 -0
  574. package/dist/esm5/lib/flow-core-map/plugins/popup.plugin.d.ts.map +1 -0
  575. package/dist/esm5/lib/flow-core-map/plugins/popup.plugin.js +91 -0
  576. package/dist/esm5/lib/flow-core-map/plugins/popup.plugin.js.map +1 -0
  577. package/dist/esm5/lib/flow-core-map/plugins/selection/selection.events.d.ts +14 -0
  578. package/dist/esm5/lib/flow-core-map/plugins/selection/selection.events.d.ts.map +1 -0
  579. package/dist/esm5/lib/flow-core-map/plugins/selection/selection.events.js +33 -0
  580. package/dist/esm5/lib/flow-core-map/plugins/selection/selection.events.js.map +1 -0
  581. package/dist/esm5/lib/flow-core-map/plugins/selection/selection.plugin.d.ts +31 -0
  582. package/dist/esm5/lib/flow-core-map/plugins/selection/selection.plugin.d.ts.map +1 -0
  583. package/dist/esm5/lib/flow-core-map/plugins/selection/selection.plugin.js +178 -0
  584. package/dist/esm5/lib/flow-core-map/plugins/selection/selection.plugin.js.map +1 -0
  585. package/dist/esm5/lib/flow-core-map/plugins/selection/source-selection.d.ts +24 -0
  586. package/dist/esm5/lib/flow-core-map/plugins/selection/source-selection.d.ts.map +1 -0
  587. package/dist/esm5/lib/flow-core-map/plugins/selection/source-selection.js +238 -0
  588. package/dist/esm5/lib/flow-core-map/plugins/selection/source-selection.js.map +1 -0
  589. package/dist/esm5/lib/flow-core-map/support/flow-core-map-events.d.ts +56 -0
  590. package/dist/esm5/lib/flow-core-map/support/flow-core-map-events.d.ts.map +1 -0
  591. package/dist/esm5/lib/flow-core-map/support/flow-core-map-events.js +130 -0
  592. package/dist/esm5/lib/flow-core-map/support/flow-core-map-events.js.map +1 -0
  593. package/dist/esm5/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts +29 -0
  594. package/dist/esm5/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts.map +1 -0
  595. package/dist/esm5/lib/flow-core-map/support/flow-core-map-feature-stream.js +191 -0
  596. package/dist/esm5/lib/flow-core-map/support/flow-core-map-feature-stream.js.map +1 -0
  597. package/dist/esm5/lib/flow-core-map/support/flow-core-map-popup.d.ts +39 -0
  598. package/dist/esm5/lib/flow-core-map/support/flow-core-map-popup.d.ts.map +1 -0
  599. package/dist/esm5/lib/flow-core-map/support/flow-core-map-popup.js +205 -0
  600. package/dist/esm5/lib/flow-core-map/support/flow-core-map-popup.js.map +1 -0
  601. package/dist/esm5/lib/flow-core-map/support/image-registry.d.ts +2 -0
  602. package/dist/esm5/lib/flow-core-map/support/image-registry.d.ts.map +1 -0
  603. package/dist/esm5/lib/flow-core-map/support/image-registry.js +80 -0
  604. package/dist/esm5/lib/flow-core-map/support/image-registry.js.map +1 -0
  605. package/dist/esm5/lib/flow-core-map/types.d.ts +45 -0
  606. package/dist/esm5/lib/flow-core-map/types.d.ts.map +1 -0
  607. package/dist/esm5/lib/flow-core-map/types.js +6 -0
  608. package/dist/esm5/lib/flow-core-map/types.js.map +1 -0
  609. package/dist/esm5/lib/flow-core-map-style/flow-core-map-data-source.d.ts +26 -0
  610. package/dist/esm5/lib/flow-core-map-style/flow-core-map-data-source.d.ts.map +1 -0
  611. package/dist/esm5/lib/flow-core-map-style/flow-core-map-data-source.js +257 -0
  612. package/dist/esm5/lib/flow-core-map-style/flow-core-map-data-source.js.map +1 -0
  613. package/dist/esm5/lib/flow-core-map-style/flow-core-map-layer.d.ts +58 -0
  614. package/dist/esm5/lib/flow-core-map-style/flow-core-map-layer.d.ts.map +1 -0
  615. package/dist/esm5/lib/flow-core-map-style/flow-core-map-layer.js +321 -0
  616. package/dist/esm5/lib/flow-core-map-style/flow-core-map-layer.js.map +1 -0
  617. package/dist/esm5/lib/flow-core-map-style/flow-core-map-style.d.ts +32 -0
  618. package/dist/esm5/lib/flow-core-map-style/flow-core-map-style.d.ts.map +1 -0
  619. package/dist/esm5/lib/flow-core-map-style/flow-core-map-style.js +276 -0
  620. package/dist/esm5/lib/flow-core-map-style/flow-core-map-style.js.map +1 -0
  621. package/dist/esm5/lib/flow-core-map-style/index.d.ts +5 -0
  622. package/dist/esm5/lib/flow-core-map-style/index.d.ts.map +1 -0
  623. package/dist/esm5/lib/flow-core-map-style/index.js +5 -0
  624. package/dist/esm5/lib/flow-core-map-style/index.js.map +1 -0
  625. package/dist/esm5/lib/flow-core-map-style/types.d.ts +49 -0
  626. package/dist/esm5/lib/flow-core-map-style/types.d.ts.map +1 -0
  627. package/dist/esm5/lib/flow-core-map-style/types.js +2 -0
  628. package/dist/esm5/lib/flow-core-map-style/types.js.map +1 -0
  629. package/dist/esm5/lib/flow-core-query/FlowQueryResultFormat.d.ts +36 -0
  630. package/dist/esm5/lib/flow-core-query/FlowQueryResultFormat.d.ts.map +1 -0
  631. package/dist/esm5/lib/flow-core-query/FlowQueryResultFormat.js +2 -0
  632. package/dist/esm5/lib/flow-core-query/FlowQueryResultFormat.js.map +1 -0
  633. package/dist/esm5/lib/flow-core-query/async-committer.d.ts +15 -0
  634. package/dist/esm5/lib/flow-core-query/async-committer.d.ts.map +1 -0
  635. package/dist/esm5/lib/flow-core-query/async-committer.js +57 -0
  636. package/dist/esm5/lib/flow-core-query/async-committer.js.map +1 -0
  637. package/dist/esm5/lib/flow-core-query/flow-core-query.d.ts +35 -0
  638. package/dist/esm5/lib/flow-core-query/flow-core-query.d.ts.map +1 -0
  639. package/dist/esm5/lib/flow-core-query/flow-core-query.js +316 -0
  640. package/dist/esm5/lib/flow-core-query/flow-core-query.js.map +1 -0
  641. package/dist/esm5/lib/flow-core-query/index.d.ts +2 -0
  642. package/dist/esm5/lib/flow-core-query/index.d.ts.map +1 -0
  643. package/dist/esm5/lib/flow-core-query/index.js +2 -0
  644. package/dist/esm5/lib/flow-core-query/index.js.map +1 -0
  645. package/dist/esm5/lib/flow-core-state-store/flow-core-state-store.d.ts +25 -0
  646. package/dist/esm5/lib/flow-core-state-store/flow-core-state-store.d.ts.map +1 -0
  647. package/dist/esm5/lib/flow-core-state-store/flow-core-state-store.js +190 -0
  648. package/dist/esm5/lib/flow-core-state-store/flow-core-state-store.js.map +1 -0
  649. package/dist/esm5/lib/flow-core-state-store/index.d.ts +6 -0
  650. package/dist/esm5/lib/flow-core-state-store/index.d.ts.map +1 -0
  651. package/dist/esm5/lib/flow-core-state-store/index.js +4 -0
  652. package/dist/esm5/lib/flow-core-state-store/index.js.map +1 -0
  653. package/dist/esm5/lib/flow-core-state-store/utils.d.ts +10 -0
  654. package/dist/esm5/lib/flow-core-state-store/utils.d.ts.map +1 -0
  655. package/dist/esm5/lib/flow-core-state-store/utils.js +5 -0
  656. package/dist/esm5/lib/flow-core-state-store/utils.js.map +1 -0
  657. package/dist/esm5/lib/utils/assert.d.ts +2 -0
  658. package/dist/esm5/lib/utils/assert.d.ts.map +1 -0
  659. package/dist/esm5/lib/utils/assert.js +7 -0
  660. package/dist/esm5/lib/utils/assert.js.map +1 -0
  661. package/dist/esm5/lib/utils/ensure-array.d.ts +2 -0
  662. package/dist/esm5/lib/utils/ensure-array.d.ts.map +1 -0
  663. package/dist/esm5/lib/utils/ensure-array.js +19 -0
  664. package/dist/esm5/lib/utils/ensure-array.js.map +1 -0
  665. package/dist/esm5/lib/utils/feature-type-checks.d.ts +5 -0
  666. package/dist/esm5/lib/utils/feature-type-checks.d.ts.map +1 -0
  667. package/dist/esm5/lib/utils/feature-type-checks.js +23 -0
  668. package/dist/esm5/lib/utils/feature-type-checks.js.map +1 -0
  669. package/dist/esm5/lib/utils/functional.d.ts +34 -0
  670. package/dist/esm5/lib/utils/functional.d.ts.map +1 -0
  671. package/dist/esm5/lib/utils/functional.js +112 -0
  672. package/dist/esm5/lib/utils/functional.js.map +1 -0
  673. package/dist/esm5/lib/utils/index.d.ts +2 -0
  674. package/dist/esm5/lib/utils/index.d.ts.map +1 -0
  675. package/dist/esm5/lib/utils/index.js +2 -0
  676. package/dist/esm5/lib/utils/index.js.map +1 -0
  677. package/dist/esm5/lib/utils/string-utils.d.ts +2 -0
  678. package/dist/esm5/lib/utils/string-utils.d.ts.map +1 -0
  679. package/dist/esm5/lib/utils/string-utils.js +7 -0
  680. package/dist/esm5/lib/utils/string-utils.js.map +1 -0
  681. package/dist/esm5/lib/utils/type-checks.d.ts +25 -0
  682. package/dist/esm5/lib/utils/type-checks.d.ts.map +1 -0
  683. package/dist/esm5/lib/utils/type-checks.js +53 -0
  684. package/dist/esm5/lib/utils/type-checks.js.map +1 -0
  685. package/dist/esm5/lib/utils/typescript-utils.d.ts +2 -0
  686. package/dist/esm5/lib/utils/typescript-utils.d.ts.map +1 -0
  687. package/dist/esm5/lib/utils/typescript-utils.js +2 -0
  688. package/dist/esm5/lib/utils/typescript-utils.js.map +1 -0
  689. package/dist/flow-rdf-core.css +1 -0
  690. package/dist/types/index.d.ts +7 -1
  691. package/dist/types/index.d.ts.map +1 -1
  692. package/dist/types/lib/errors/flow-core-error.d.ts +4 -0
  693. package/dist/types/lib/errors/flow-core-error.d.ts.map +1 -0
  694. package/dist/types/lib/errors/flow-core-expression-error.d.ts +7 -0
  695. package/dist/types/lib/errors/flow-core-expression-error.d.ts.map +1 -0
  696. package/dist/types/lib/errors/flow-core-map-error.d.ts +5 -0
  697. package/dist/types/lib/errors/flow-core-map-error.d.ts.map +1 -0
  698. package/dist/types/lib/errors/index.d.ts +3 -0
  699. package/dist/types/lib/errors/index.d.ts.map +1 -0
  700. package/dist/types/lib/flow-core-expression/flow-core-expression.d.ts +29 -0
  701. package/dist/types/lib/flow-core-expression/flow-core-expression.d.ts.map +1 -0
  702. package/dist/types/lib/flow-core-expression/flow-core-parser.d.ts +19 -0
  703. package/dist/types/lib/flow-core-expression/flow-core-parser.d.ts.map +1 -0
  704. package/dist/types/lib/flow-core-expression/functions/from-palette.d.ts +12 -0
  705. package/dist/types/lib/flow-core-expression/functions/from-palette.d.ts.map +1 -0
  706. package/dist/types/lib/flow-core-expression/functions/state.d.ts +9 -0
  707. package/dist/types/lib/flow-core-expression/functions/state.d.ts.map +1 -0
  708. package/dist/types/lib/flow-core-expression/index.d.ts +2 -0
  709. package/dist/types/lib/flow-core-expression/index.d.ts.map +1 -0
  710. package/dist/types/lib/flow-core-expression/parser-helpers.d.ts +2 -0
  711. package/dist/types/lib/flow-core-expression/parser-helpers.d.ts.map +1 -0
  712. package/dist/types/lib/flow-core-expression/types.d.ts +27 -0
  713. package/dist/types/lib/flow-core-expression/types.d.ts.map +1 -0
  714. package/dist/types/lib/flow-core-map/flow-core-map.d.ts +106 -0
  715. package/dist/types/lib/flow-core-map/flow-core-map.d.ts.map +1 -0
  716. package/dist/types/lib/flow-core-map/index.d.ts +2 -0
  717. package/dist/types/lib/flow-core-map/index.d.ts.map +1 -0
  718. package/dist/types/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts +4 -0
  719. package/dist/types/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts.map +1 -0
  720. package/dist/types/lib/flow-core-map/plugins/annotations/annotation.events.d.ts +25 -0
  721. package/dist/types/lib/flow-core-map/plugins/annotations/annotation.events.d.ts.map +1 -0
  722. package/dist/types/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts +70 -0
  723. package/dist/types/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts.map +1 -0
  724. package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts +4 -0
  725. package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts.map +1 -0
  726. package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts +3 -0
  727. package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts.map +1 -0
  728. package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts +23 -0
  729. package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts.map +1 -0
  730. package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts +3 -0
  731. package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts.map +1 -0
  732. package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts +6 -0
  733. package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts.map +1 -0
  734. package/dist/types/lib/flow-core-map/plugins/annotations/types.d.ts +34 -0
  735. package/dist/types/lib/flow-core-map/plugins/annotations/types.d.ts.map +1 -0
  736. package/dist/types/lib/flow-core-map/plugins/data-join.plugin.d.ts +47 -0
  737. package/dist/types/lib/flow-core-map/plugins/data-join.plugin.d.ts.map +1 -0
  738. package/dist/types/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts +41 -0
  739. package/dist/types/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts.map +1 -0
  740. package/dist/types/lib/flow-core-map/plugins/hover-effect.plugin.d.ts +14 -0
  741. package/dist/types/lib/flow-core-map/plugins/hover-effect.plugin.d.ts.map +1 -0
  742. package/dist/types/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts +52 -0
  743. package/dist/types/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts.map +1 -0
  744. package/dist/types/lib/flow-core-map/plugins/plugin-manager.d.ts +27 -0
  745. package/dist/types/lib/flow-core-map/plugins/plugin-manager.d.ts.map +1 -0
  746. package/dist/types/lib/flow-core-map/plugins/popup.plugin.d.ts +17 -0
  747. package/dist/types/lib/flow-core-map/plugins/popup.plugin.d.ts.map +1 -0
  748. package/dist/types/lib/flow-core-map/plugins/selection/selection.events.d.ts +14 -0
  749. package/dist/types/lib/flow-core-map/plugins/selection/selection.events.d.ts.map +1 -0
  750. package/dist/types/lib/flow-core-map/plugins/selection/selection.plugin.d.ts +31 -0
  751. package/dist/types/lib/flow-core-map/plugins/selection/selection.plugin.d.ts.map +1 -0
  752. package/dist/types/lib/flow-core-map/plugins/selection/source-selection.d.ts +24 -0
  753. package/dist/types/lib/flow-core-map/plugins/selection/source-selection.d.ts.map +1 -0
  754. package/dist/types/lib/flow-core-map/support/flow-core-map-events.d.ts +62 -0
  755. package/dist/types/lib/flow-core-map/support/flow-core-map-events.d.ts.map +1 -0
  756. package/dist/types/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts +29 -0
  757. package/dist/types/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts.map +1 -0
  758. package/dist/types/lib/flow-core-map/support/flow-core-map-popup.d.ts +74 -0
  759. package/dist/types/lib/flow-core-map/support/flow-core-map-popup.d.ts.map +1 -0
  760. package/dist/types/lib/flow-core-map/support/image-registry.d.ts +2 -0
  761. package/dist/types/lib/flow-core-map/support/image-registry.d.ts.map +1 -0
  762. package/dist/types/lib/flow-core-map/types.d.ts +57 -0
  763. package/dist/types/lib/flow-core-map/types.d.ts.map +1 -0
  764. package/dist/types/lib/flow-core-map-style/flow-core-map-data-source.d.ts +33 -0
  765. package/dist/types/lib/flow-core-map-style/flow-core-map-data-source.d.ts.map +1 -0
  766. package/dist/types/lib/flow-core-map-style/flow-core-map-layer.d.ts +71 -0
  767. package/dist/types/lib/flow-core-map-style/flow-core-map-layer.d.ts.map +1 -0
  768. package/dist/types/lib/flow-core-map-style/flow-core-map-style.d.ts +32 -0
  769. package/dist/types/lib/flow-core-map-style/flow-core-map-style.d.ts.map +1 -0
  770. package/dist/types/lib/flow-core-map-style/index.d.ts +5 -0
  771. package/dist/types/lib/flow-core-map-style/index.d.ts.map +1 -0
  772. package/dist/types/lib/flow-core-map-style/types.d.ts +60 -0
  773. package/dist/types/lib/flow-core-map-style/types.d.ts.map +1 -0
  774. package/dist/types/lib/{flow-query.d.ts → flow-core-query/FlowQueryResultFormat.d.ts} +9 -26
  775. package/dist/types/lib/flow-core-query/FlowQueryResultFormat.d.ts.map +1 -0
  776. package/dist/types/lib/flow-core-query/async-committer.d.ts +15 -0
  777. package/dist/types/lib/flow-core-query/async-committer.d.ts.map +1 -0
  778. package/dist/types/lib/flow-core-query/flow-core-query.d.ts +35 -0
  779. package/dist/types/lib/flow-core-query/flow-core-query.d.ts.map +1 -0
  780. package/dist/types/lib/flow-core-query/index.d.ts +2 -0
  781. package/dist/types/lib/flow-core-query/index.d.ts.map +1 -0
  782. package/dist/types/lib/flow-core-state-store/flow-core-state-store.d.ts +25 -0
  783. package/dist/types/lib/flow-core-state-store/flow-core-state-store.d.ts.map +1 -0
  784. package/dist/types/lib/flow-core-state-store/index.d.ts +6 -0
  785. package/dist/types/lib/flow-core-state-store/index.d.ts.map +1 -0
  786. package/dist/types/lib/flow-core-state-store/utils.d.ts +10 -0
  787. package/dist/types/lib/flow-core-state-store/utils.d.ts.map +1 -0
  788. package/dist/types/lib/utils/assert.d.ts +2 -0
  789. package/dist/types/lib/utils/assert.d.ts.map +1 -0
  790. package/dist/types/lib/utils/ensure-array.d.ts +2 -0
  791. package/dist/types/lib/utils/ensure-array.d.ts.map +1 -0
  792. package/dist/types/lib/utils/feature-type-checks.d.ts +5 -0
  793. package/dist/types/lib/utils/feature-type-checks.d.ts.map +1 -0
  794. package/dist/types/lib/utils/functional.d.ts +70 -0
  795. package/dist/types/lib/utils/functional.d.ts.map +1 -0
  796. package/dist/types/lib/utils/index.d.ts +2 -0
  797. package/dist/types/lib/utils/index.d.ts.map +1 -0
  798. package/dist/types/lib/utils/string-utils.d.ts +2 -0
  799. package/dist/types/lib/utils/string-utils.d.ts.map +1 -0
  800. package/dist/types/lib/utils/type-checks.d.ts +25 -0
  801. package/dist/types/lib/utils/type-checks.d.ts.map +1 -0
  802. package/dist/types/lib/utils/typescript-utils.d.ts +2 -0
  803. package/dist/types/lib/utils/typescript-utils.d.ts.map +1 -0
  804. package/package.json +81 -12
  805. package/.turbo/turbo-build.log +0 -17
  806. package/CHANGELOG.md +0 -13
  807. package/dist/cjs/lib/async-committer.js +0 -47
  808. package/dist/cjs/lib/async-committer.js.map +0 -1
  809. package/dist/cjs/lib/flow-query.js +0 -183
  810. package/dist/cjs/lib/flow-query.js.map +0 -1
  811. package/dist/esm/lib/async-committer.js.map +0 -1
  812. package/dist/esm/lib/flow-query.js.map +0 -1
  813. package/dist/types/lib/async-committer.d.ts.map +0 -1
  814. package/dist/types/lib/flow-query.d.ts.map +0 -1
  815. package/jest.config.js +0 -3
  816. package/src/__tests__/test.spec.ts +0 -116
  817. package/src/index.ts +0 -2
  818. package/src/lib/async-committer.ts +0 -23
  819. package/src/lib/flow-query.ts +0 -244
  820. package/tsconfig.build.json +0 -12
  821. package/tsconfig.json +0 -103
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-core-expression-error.d.ts","sourceRoot":"","sources":["../../../../src/lib/errors/flow-core-expression-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,aAAa;aACR,MAAM,EAAE,YAAY,GAAG,iBAAiB;aAAkB,MAAM,EAAE,MAAM,EAAE;gBAA9G,UAAU,EAAE,MAAM,EAAkB,MAAM,EAAE,YAAY,GAAG,iBAAiB,EAAkB,MAAM,EAAE,MAAM,EAAE;CAG3H"}
@@ -0,0 +1,19 @@
1
+ import { FlowCoreError } from './flow-core-error';
2
+ export class FlowCoreExpressionError extends FlowCoreError {
3
+ constructor(expression, reason, errors) {
4
+ super(`Failed to evaluate expression <${expression}>: ${errors.join(', ')}`);
5
+ Object.defineProperty(this, "reason", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: reason
10
+ });
11
+ Object.defineProperty(this, "errors", {
12
+ enumerable: true,
13
+ configurable: true,
14
+ writable: true,
15
+ value: errors
16
+ });
17
+ }
18
+ }
19
+ //# sourceMappingURL=flow-core-expression-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-core-expression-error.js","sourceRoot":"","sources":["../../../../src/lib/errors/flow-core-expression-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,OAAO,uBAAwB,SAAQ,aAAa;IACxD,YAAY,UAAkB,EAAkB,MAAwC,EAAkB,MAAgB;QACxH,KAAK,CAAC,kCAAkC,UAAU,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;;;;;mBAD/B;;;;;;mBAA0D;;IAE1G,CAAC;CACF"}
@@ -0,0 +1,5 @@
1
+ import { FlowCoreError } from './flow-core-error';
2
+ export declare class FlowCoreMapError extends FlowCoreError {
3
+ constructor(message: string, originalError?: Error);
4
+ }
5
+ //# sourceMappingURL=flow-core-map-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-core-map-error.d.ts","sourceRoot":"","sources":["../../../../src/lib/errors/flow-core-map-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,qBAAa,gBAAiB,SAAQ,aAAa;gBACrC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,KAAK;CAGnD"}
@@ -0,0 +1,7 @@
1
+ import { FlowCoreError } from './flow-core-error';
2
+ export class FlowCoreMapError extends FlowCoreError {
3
+ constructor(message, originalError) {
4
+ super(message, originalError);
5
+ }
6
+ }
7
+ //# sourceMappingURL=flow-core-map-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-core-map-error.js","sourceRoot":"","sources":["../../../../src/lib/errors/flow-core-map-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,OAAO,gBAAiB,SAAQ,aAAa;IACjD,YAAY,OAAe,EAAE,aAAqB;QAChD,KAAK,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IAChC,CAAC;CACF"}
@@ -0,0 +1,3 @@
1
+ export { FlowCoreError } from './flow-core-error';
2
+ export { FlowCoreExpressionError } from './flow-core-expression-error';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAC,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { FlowCoreError } from './flow-core-error';
2
+ export { FlowCoreExpressionError } from './flow-core-expression-error';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAC,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { FlowCoreStateStore, IObservableStream } from '../flow-core-state-store';
2
+ import { ParserExpression, FlowCoreExpressionCustomFunction } from './types';
3
+ import { FlowCoreExpressionError } from '../errors/flow-core-expression-error';
4
+ export declare class FlowCoreExpression<TState extends FlowCoreStateStore = FlowCoreStateStore, R = any> {
5
+ private static parser;
6
+ private static customFunctions;
7
+ static hasCustomFunction(fn: string): boolean;
8
+ static registerCustomFunction(fn: FlowCoreExpressionCustomFunction): void;
9
+ private _expression;
10
+ private parsedResult;
11
+ private _store;
12
+ static parseProgram(program: string): {
13
+ [key: string]: FlowCoreExpression;
14
+ };
15
+ get maplibreExpression(): ParserExpression | undefined;
16
+ get value(): R;
17
+ get parseError(): FlowCoreExpressionError | null;
18
+ get expression(): string;
19
+ get store(): TState | null;
20
+ constructor(expression: string, parsedExpression?: ParserExpression);
21
+ bindState(store: TState | null): this;
22
+ toStream(fireImmediately?: boolean): IObservableStream<R>;
23
+ private evaluateExpression;
24
+ private expandCustomFunctions;
25
+ private isParseError;
26
+ private isFunctionExpression;
27
+ private formatName;
28
+ }
29
+ //# sourceMappingURL=flow-core-expression.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-core-expression.d.ts","sourceRoot":"","sources":["../../../../src/lib/flow-core-expression/flow-core-expression.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAMjF,OAAO,EACL,gBAAgB,EAChB,gCAAgC,EAGjC,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,qBAAa,kBAAkB,CAAC,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,EAAE,CAAC,GAAG,GAAG;IAC7F,OAAO,CAAC,MAAM,CAAC,MAAM,CAAwB;IAC7C,OAAO,CAAC,MAAM,CAAC,eAAe,CAAyC;IAEvE,MAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAI7C,MAAM,CAAC,sBAAsB,CAAC,EAAE,EAAE,gCAAgC,GAAG,IAAI;IAKzE,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,YAAY,CAAqC;IACzD,OAAO,CAAC,MAAM,CAAuB;IAErC,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAA;KAAE;IA2B3E,IAAI,kBAAkB,IAAI,gBAAgB,GAAG,SAAS,CAMrD;IAGD,IAAI,KAAK,IAAI,CAAC,CAEb;IAED,IAAI,UAAU,IAAI,uBAAuB,GAAG,IAAI,CAS/C;IAED,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED,IAAI,KAAK,IAAI,MAAM,GAAG,IAAI,CAEzB;gBAEW,UAAU,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,gBAAgB;IA0BnE,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAKrC,QAAQ,CAAC,eAAe,UAAO,GAAG,iBAAiB,CAAC,CAAC,CAAC;IAItD,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,UAAU;CAGnB"}
@@ -0,0 +1,148 @@
1
+ import * as maplibreSpec from '@maplibre/maplibre-gl-style-spec';
2
+ import { FlowCoreParser } from './flow-core-parser';
3
+ import { isString, isUndefined } from '../utils/type-checks';
4
+ import { action, computed, makeObservable, observable } from 'mobx';
5
+ import { toStream } from 'mobx-utils';
6
+ import customStateFn from './functions/state';
7
+ import customFromPaletteFn from './functions/from-palette';
8
+ import { FlowCoreExpressionError } from '../errors/flow-core-expression-error';
9
+ export class FlowCoreExpression {
10
+ constructor(expression, parsedExpression) {
11
+ Object.defineProperty(this, "_expression", {
12
+ enumerable: true,
13
+ configurable: true,
14
+ writable: true,
15
+ value: ''
16
+ });
17
+ Object.defineProperty(this, "parsedResult", {
18
+ enumerable: true,
19
+ configurable: true,
20
+ writable: true,
21
+ value: void 0
22
+ });
23
+ Object.defineProperty(this, "_store", {
24
+ enumerable: true,
25
+ configurable: true,
26
+ writable: true,
27
+ value: null
28
+ });
29
+ makeObservable(this, {
30
+ _store: observable.ref,
31
+ maplibreExpression: computed,
32
+ value: computed,
33
+ bindState: action
34
+ }, { name: this.formatName(expression) });
35
+ this._expression = expression;
36
+ if (!isUndefined(parsedExpression)) {
37
+ this.parsedResult = {
38
+ status: true,
39
+ value: parsedExpression
40
+ };
41
+ }
42
+ else {
43
+ this.parsedResult = FlowCoreExpression.parser.parseExpression(expression);
44
+ }
45
+ }
46
+ static hasCustomFunction(fn) {
47
+ return !!this.customFunctions[fn];
48
+ }
49
+ static registerCustomFunction(fn) {
50
+ if (fn.initialize)
51
+ fn.initialize();
52
+ this.customFunctions[fn.name] = fn;
53
+ }
54
+ static parseProgram(program) {
55
+ const parsedProgram = this.parser.parseProgram(program);
56
+ if (isString(program) && program.length === 0) {
57
+ return {};
58
+ }
59
+ if (parsedProgram.status) {
60
+ const keys = Object.keys(parsedProgram.value);
61
+ const expressions = keys.reduce((accum, key) => {
62
+ const expr = parsedProgram.value[key];
63
+ const expressionString = program.slice(expr.start.offset, expr.end.offset);
64
+ accum[key] = new FlowCoreExpression(expressionString, expr.expr);
65
+ return accum;
66
+ }, {});
67
+ return expressions;
68
+ }
69
+ else {
70
+ throw new FlowCoreExpressionError('program', 'parseError', [
71
+ `expected ${parsedProgram.expected.join(' ')} at line ${parsedProgram.index.line}, column ${parsedProgram.index.column}]`
72
+ ]);
73
+ }
74
+ }
75
+ get maplibreExpression() {
76
+ if (this.isParseError(this.parsedResult)) {
77
+ throw this.parseError;
78
+ }
79
+ return this.expandCustomFunctions(this.parsedResult.value);
80
+ }
81
+ get value() {
82
+ return this.evaluateExpression();
83
+ }
84
+ get parseError() {
85
+ if (this.isParseError(this.parsedResult)) {
86
+ return new FlowCoreExpressionError(this._expression, 'parseError', [
87
+ `index: ${this.parsedResult.index.offset}`,
88
+ `expected: ${this.parsedResult.expected.join(' ')}`
89
+ ]);
90
+ }
91
+ return null;
92
+ }
93
+ get expression() {
94
+ return this._expression;
95
+ }
96
+ get store() {
97
+ return this._store;
98
+ }
99
+ bindState(store) {
100
+ this._store = store;
101
+ return this;
102
+ }
103
+ toStream(fireImmediately = true) {
104
+ return toStream(() => this.value, fireImmediately);
105
+ }
106
+ evaluateExpression() {
107
+ const { result, value } = maplibreSpec.expression.createExpression(this.maplibreExpression);
108
+ if (result === 'success') {
109
+ return value.evaluate({ zoom: 0 });
110
+ }
111
+ throw new FlowCoreExpressionError(this.expression, 'evaluationError', value.map((value) => value.message));
112
+ }
113
+ expandCustomFunctions(expr) {
114
+ if (this.isFunctionExpression(expr)) {
115
+ const func = expr[0];
116
+ const args = expr.slice(1).map((arg) => this.expandCustomFunctions(arg));
117
+ expr = [func, ...args];
118
+ return FlowCoreExpression.hasCustomFunction(func)
119
+ ? FlowCoreExpression.customFunctions[func].fn(expr, this)
120
+ : expr;
121
+ }
122
+ return expr;
123
+ }
124
+ isParseError(val) {
125
+ return !val.status;
126
+ }
127
+ isFunctionExpression(expr) {
128
+ return Array.isArray(expr);
129
+ }
130
+ formatName(expr) {
131
+ return `FlowCoreExpression<${expr}>}`;
132
+ }
133
+ }
134
+ Object.defineProperty(FlowCoreExpression, "parser", {
135
+ enumerable: true,
136
+ configurable: true,
137
+ writable: true,
138
+ value: new FlowCoreParser()
139
+ });
140
+ Object.defineProperty(FlowCoreExpression, "customFunctions", {
141
+ enumerable: true,
142
+ configurable: true,
143
+ writable: true,
144
+ value: {}
145
+ });
146
+ FlowCoreExpression.registerCustomFunction(customStateFn);
147
+ FlowCoreExpression.registerCustomFunction(customFromPaletteFn);
148
+ //# sourceMappingURL=flow-core-expression.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-core-expression.js","sourceRoot":"","sources":["../../../../src/lib/flow-core-expression/flow-core-expression.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,QAAQ,EAAgB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAO3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,MAAM,OAA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AAE,EAAE,CAAC,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;YAC3F,IAAI,GAAG,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;YAEvB,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,IAAI,CAAC;gBAC/C,CAAC,CAAC,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;gBACzD,CAAC,CAAC,IAAI,CAAC;SACV;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,YAAY,CAAC,GAAuC;QAC1D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;IACrB,CAAC;IAEO,oBAAoB,CAAC,IAAsB;QACjD,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAEO,UAAU,CAAC,IAAY;QAC7B,OAAO,sBAAsB,IAAI,IAAI,CAAC;IACxC,CAAC;;AArJD;;;;WAAwB,IAAI,cAAc,EAAE;GAAC;AAC7C;;;;WAAoE,EAAE;GAAC;AAwJzE,kBAAkB,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC;AACzD,kBAAkB,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flow-core-parser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-core-parser.d.ts","sourceRoot":"","sources":["../../../../src/lib/flow-core-expression/flow-core-parser.ts"],"names":[],"mappings":""}
@@ -0,0 +1,147 @@
1
+ import P from 'parsimmon';
2
+ import { PREFIX, BINARY_RIGHT, BINARY_LEFT, TERNARY_RIGHT } from './parser-helpers';
3
+ export class FlowCoreParser {
4
+ constructor() {
5
+ Object.defineProperty(this, "language", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: void 0
10
+ });
11
+ this.language = this.createLanguage();
12
+ }
13
+ parseExpression(expr) {
14
+ return this.language.Expr.parse(expr);
15
+ }
16
+ parseProgram(program) {
17
+ return this.language.ProgramOrEmpty.parse(program);
18
+ }
19
+ createLanguage() {
20
+ const operatorTable = [
21
+ { type: PREFIX, ops: this.operators({ '-': '-', '!': '!' }) },
22
+ { type: BINARY_RIGHT, ops: this.operators({ '^': '**' }) },
23
+ { type: BINARY_LEFT, ops: this.operators({ '*': '*', '/': '/', '%': '%' }) },
24
+ { type: BINARY_LEFT, ops: this.operators({ '+': '+', '-': '-' }) },
25
+ { type: BINARY_LEFT, ops: this.operators({ '>=': '>=', '<=': '<=' }) },
26
+ { type: BINARY_LEFT, ops: this.operators({ '<': '<', '>': '>' }) },
27
+ { type: BINARY_LEFT, ops: this.operators({ '==': '==', '!=': '!=' }) },
28
+ { type: BINARY_LEFT, ops: this.operators({ all: '&&' }) },
29
+ { type: BINARY_LEFT, ops: this.operators({ any: '||' }) },
30
+ { type: TERNARY_RIGHT, ops: this.operators({ case: '?' }) }
31
+ ];
32
+ return P.createLanguage({
33
+ Whitespace: () => P.regexp(/[ \n]*/).desc('whitespace'),
34
+ NotNewline: () => P.regexp(/[^\n]*/).desc('non-newline'),
35
+ LineComment: r => r.NotNewline.wrap(P.string('//'), P.alt(P.string('\n'), P.eof)),
36
+ BlockComment: () => P.regexp(/\/\*[\s\S]*?\*\//),
37
+ Comment: r => P.alt(r.LineComment, r.BlockComment).desc('comment'),
38
+ End: () => P.alt(P.string(';'), P.eof),
39
+ _: r => r.Comment.sepBy(r.Whitespace).trim(r.Whitespace),
40
+ Integer: () => {
41
+ return P.regexp(/-?[0-9]+/).map(Number);
42
+ },
43
+ Decimal: () => {
44
+ return P.regexp(/-?[0-9]+\.[0-9]+/).map(Number);
45
+ },
46
+ Number: r => {
47
+ return P.alt(r.Decimal, r.Integer).desc('number');
48
+ },
49
+ Boolean: () => {
50
+ return P.alt(P.string('true'), P.string('false'))
51
+ .map(val => val === 'true')
52
+ .desc('boolean');
53
+ },
54
+ Null: () => {
55
+ return P.string('null')
56
+ .result(null)
57
+ .desc('null');
58
+ },
59
+ DoubleQuoteString: () => {
60
+ return P.regexp(/"((?:\\.|.)*?)"/, 1).desc('string');
61
+ },
62
+ SingleQuoteString: () => {
63
+ return P.regexp(/'((?:\\.|.)*?)'/, 1).desc('string');
64
+ },
65
+ UnquotedString: () => {
66
+ return P.regexp(/[a-zA-Z_][a-zA-Z0-9_-]*/).desc('string');
67
+ },
68
+ HexColor: () => {
69
+ return P.regexp(/#(?:[0-9a-f]{3}){1,2}/i).desc('hex color');
70
+ },
71
+ String: r => {
72
+ return P.alt(r.SingleQuoteString, r.DoubleQuoteString, r.HexColor, r.UnquotedString).map(s => s.replace(/\\n/gm, '\n'));
73
+ },
74
+ Symbol: () => {
75
+ return P.regexp(/[a-zA-Z_][a-zA-Z0-9_-]*/).desc('symbol');
76
+ },
77
+ PartialSymbol: () => {
78
+ return P.regexp(/[a-zA-Z0-9_-]+/).desc('symbol');
79
+ },
80
+ Feature: r => {
81
+ return P.seqMap(P.string('@'), r.PartialSymbol.sepBy(P.string('.')), (_feat, symbols) => ['get'].concat(symbols));
82
+ },
83
+ FeatureState: r => {
84
+ return P.seqMap(P.string('@@'), r.PartialSymbol.sepBy(P.string('.')), (_feat, symbols) => this.expandFeatureState(symbols));
85
+ },
86
+ Array: r => P.string('[')
87
+ .trim(r._)
88
+ .then(r.Value.trim(r._).sepBy(P.string(',')))
89
+ .skip(P.string(']')),
90
+ State: r => {
91
+ return P.seqMap(P.string('$'), r.PartialSymbol.sepBy(P.string('.')), (_state, symbols) => ['state'].concat(symbols));
92
+ },
93
+ Paren: r => {
94
+ return P.seqMap(P.string('('), r.Expr.trim(r._), P.string(')'), (_lb, expr, _rb) => expr);
95
+ },
96
+ Func: r => {
97
+ return P.seqMap(r.Symbol.trim(r._), P.string('('), r.Expr.trim(r._).sepBy(P.string(',')), P.string(')'), (func, _lb, args, _rb) => [func, ...args]);
98
+ },
99
+ Value: r => {
100
+ return P.alt(r.Paren, r.Array, r.Func, r.Boolean, r.Null, r.Number, r.String, r.FeatureState, r.Feature, r.State);
101
+ },
102
+ Expr: r => {
103
+ return this.tableParser(operatorTable, r.Value);
104
+ },
105
+ PropertyName: () => {
106
+ return P.regexp(/[a-zA-Z_-][a-zA-Z0-9_-]*/).desc('symbol');
107
+ },
108
+ Assignment: r => {
109
+ return P.seqMap(r.PropertyName, P.string(':').trim(r._), r.Expr.trim(r._).node('expr'), r.End, (key, _colon, node) => [key, { expr: node.value, start: node.start, end: node.end }]);
110
+ },
111
+ Program: r => {
112
+ return r.Assignment.trim(r._)
113
+ .many()
114
+ .map(statements => {
115
+ return statements
116
+ .filter(s => s !== '')
117
+ .reduce((acc, s) => {
118
+ acc[s[0]] = s[1];
119
+ return acc;
120
+ }, {});
121
+ });
122
+ },
123
+ EmptyProgram: r => {
124
+ return P.seqMap(r._, P.eof, () => null);
125
+ },
126
+ ProgramOrEmpty: r => {
127
+ return P.alt(r.EmptyProgram, r.Program);
128
+ }
129
+ });
130
+ }
131
+ operators(ops) {
132
+ const keys = Object.keys(ops).sort();
133
+ const ps = keys.map(k => P.string(ops[k])
134
+ .trim(P.optWhitespace)
135
+ .result(k));
136
+ return P.alt.apply(null, ps);
137
+ }
138
+ tableParser(operatorTable, valueParser) {
139
+ return operatorTable.reduce((acc, level) => level.type(level.ops, acc), valueParser);
140
+ }
141
+ expandFeatureState(symbols) {
142
+ let expandedFeatureState = ['feature-state', symbols.shift()];
143
+ symbols.forEach(s => expandedFeatureState = ['get', s, expandedFeatureState]);
144
+ return expandedFeatureState;
145
+ }
146
+ }
147
+ //# sourceMappingURL=flow-core-parser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-core-parser.js","sourceRoot":"","sources":["../../../../src/lib/flow-core-expression/flow-core-parser.ts"],"names":[],"mappings":"AAsBA,OAAO,CAAC,MAAM,WAAW,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kB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AM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;QACrC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CACtB,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;aACb,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC;aACrB,MAAM,CAAC,CAAC,CAAC,CACb,CAAC;QAEF,OAAO,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC/B,CAAC;IAMO,WAAW,CAAC,aAAkB,EAAE,WAA0B;QAChE,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,GAAQ,EAAE,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,WAAW,CAAC,CAAC;IACjG,CAAC;IAEO,kBAAkB,CAAC,OAAiB;QAC1C,IAAI,oBAAoB,GAAU,CAAC,eAAe,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;QACrE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,oBAAoB,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC;QAC9E,OAAO,oBAAoB,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,12 @@
1
+ import { FlowCoreStateStore } from '../../flow-core-state-store';
2
+ import { ParserExpression, ParserFunctionExpression } from '../types';
3
+ import { FlowCoreExpression } from '../flow-core-expression';
4
+ declare function registerColorBrewerPalettes(): void;
5
+ declare function fromPalette<TState extends FlowCoreStateStore = any>(expr: ParserFunctionExpression, parentExpression: FlowCoreExpression): ParserExpression;
6
+ declare const _default: {
7
+ name: string;
8
+ initialize: typeof registerColorBrewerPalettes;
9
+ fn: typeof fromPalette;
10
+ };
11
+ export default _default;
12
+ //# sourceMappingURL=from-palette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"from-palette.d.ts","sourceRoot":"","sources":["../../../../../src/lib/flow-core-expression/functions/from-palette.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAe7D,iBAAS,2BAA2B,SAUnC;AAED,iBAAS,WAAW,CAAC,MAAM,SAAS,kBAAkB,GAAG,GAAG,EAC1D,IAAI,EAAE,wBAAwB,EAC9B,gBAAgB,EAAE,kBAAkB,GACnC,gBAAgB,CA8DlB;;;;;;AAED,wBAIE"}
@@ -0,0 +1,73 @@
1
+ import colorbrewer from 'colorbrewer';
2
+ import { isArray, isString } from '../../utils';
3
+ import { FlowCoreExpressionError } from '../../errors';
4
+ const palettes = {};
5
+ function registerColorBrewerPalettes() {
6
+ Object.keys(colorbrewer)
7
+ .filter((key) => key !== 'schemeGroups')
8
+ .forEach((key) => (palettes[key] = {
9
+ id: key,
10
+ colors: colorbrewer[key][5]
11
+ }));
12
+ }
13
+ function fromPalette(expr, parentExpression) {
14
+ var _a;
15
+ const paletteIdOrArray = expr[1];
16
+ const property = expr[2];
17
+ let colorStops = expr.slice(3);
18
+ let paletteId;
19
+ let palette;
20
+ if (isString(paletteIdOrArray)) {
21
+ paletteId = paletteIdOrArray;
22
+ palette = ((_a = palettes[paletteIdOrArray]) === null || _a === void 0 ? void 0 : _a.colors) || palettes['Greys'].colors;
23
+ }
24
+ else if (isArray(paletteIdOrArray) && paletteIdOrArray[0] === 'literal') {
25
+ paletteId = 'custom';
26
+ palette = paletteIdOrArray[1];
27
+ }
28
+ else {
29
+ throw new FlowCoreExpressionError(parentExpression.expression, 'evaluationError', ['from-palette requires palette id as string or custom palette array']);
30
+ }
31
+ const numPaletteEntries = palette.length;
32
+ let reversePalette = false;
33
+ if (numPaletteEntries < 5) {
34
+ throw new FlowCoreExpressionError(parentExpression.expression, 'evaluationError', ['custom palette requires at least 5 color entries']);
35
+ }
36
+ switch (colorStops.length) {
37
+ case 2:
38
+ break;
39
+ case 3:
40
+ reversePalette = !!colorStops[2];
41
+ colorStops = colorStops.slice(0, 2);
42
+ break;
43
+ case numPaletteEntries:
44
+ break;
45
+ case numPaletteEntries + 1:
46
+ reversePalette = !!colorStops[numPaletteEntries];
47
+ colorStops = colorStops.slice(0, numPaletteEntries);
48
+ break;
49
+ default:
50
+ throw new FlowCoreExpressionError(parentExpression.expression, 'evaluationError', ['incorrect color stop arguments']);
51
+ }
52
+ if (colorStops.length === 2) {
53
+ const min = colorStops[0];
54
+ const max = colorStops[1];
55
+ colorStops = [];
56
+ const step = (max - min) / (numPaletteEntries - 1);
57
+ for (let i = 0; i < numPaletteEntries; i++) {
58
+ colorStops.push(min + i * step);
59
+ }
60
+ }
61
+ expr = ['interpolate-lab', ['linear'], property];
62
+ for (let i = 0; i < colorStops.length; i++) {
63
+ expr.push(colorStops[i]);
64
+ expr.push(reversePalette ? palette[colorStops.length - i - 1] : palette[i]);
65
+ }
66
+ return expr;
67
+ }
68
+ export default {
69
+ name: 'from-palette',
70
+ initialize: registerColorBrewerPalettes,
71
+ fn: fromPalette
72
+ };
73
+ //# sourceMappingURL=from-palette.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"from-palette.js","sourceRoot":"","sources":["../../../../../src/lib/flow-core-expression/functions/from-palette.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,OAAO,EAAkB,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAYvD,MAAM,QAAQ,GAAa,EAAE,CAAC;AAE9B,SAAS,2BAA2B;IAClC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;SACrB,MAAM,CAAC,CAAC,GAAW,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AI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;QACzB,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;KAC7E;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,eAAe;IACb,IAAI,EAAE,cAAc;IACpB,UAAU,EAAE,2BAA2B;IACvC,EAAE,EAAE,WAAW;CAChB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { FlowCoreExpression } from '../flow-core-expression';
2
+ import { ParserExpression, ParserFunctionExpression } from '../types';
3
+ declare function stateCustomFunction(expr: ParserFunctionExpression, parentExpression: FlowCoreExpression<any>): ParserExpression;
4
+ declare const _default: {
5
+ name: string;
6
+ fn: typeof stateCustomFunction;
7
+ };
8
+ export default _default;
9
+ //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../src/lib/flow-core-expression/functions/state.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEtE,iBAAS,mBAAmB,CAC1B,IAAI,EAAE,wBAAwB,EAC9B,gBAAgB,EAAE,kBAAkB,CAAC,GAAG,CAAC,GACxC,gBAAgB,CAelB;;;;;AAED,wBAGE"}
@@ -0,0 +1,23 @@
1
+ import { FlowCoreExpressionError } from '../../errors';
2
+ import { isNil } from '../../utils/type-checks';
3
+ function stateCustomFunction(expr, parentExpression) {
4
+ if (!parentExpression.store) {
5
+ throw new FlowCoreExpressionError(parentExpression.expression, 'evaluationError', ['no state store provided']);
6
+ }
7
+ const path = expr.slice(1).join('.');
8
+ const val = parentExpression.store.get(path);
9
+ if (isNil(val)) {
10
+ return null;
11
+ }
12
+ else if (typeof val === 'object') {
13
+ return ['literal', val];
14
+ }
15
+ else {
16
+ return val;
17
+ }
18
+ }
19
+ export default {
20
+ name: 'state',
21
+ fn: stateCustomFunction
22
+ };
23
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/lib/flow-core-expression/functions/state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAIhD,SAAS,mBAAmB,CAC1B,IAA8B,EAC9B,gBAAyC;IAEzC,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE;QAC3B,MAAM,IAAI,uBAAuB,CAAC,gBAAgB,CAAC,UAAU,EAAE,iBAAiB,EAAE,CAAC,yBAAyB,CAAC,CAAC,CAAC;KAChH;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACrC,MAAM,GAAG,GAAG,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAE7C,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE;QACd,OAAO,IAAI,CAAC;KACb;SAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAClC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;KACzB;SAAM;QACL,OAAO,GAAU,CAAC;KACnB;AACH,CAAC;AAED,eAAe;IACb,IAAI,EAAE,OAAO;IACb,EAAE,EAAE,mBAAmB;CACxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './flow-core-expression';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/flow-core-expression/index.ts"],"names":[],"mappings":"AACA,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './flow-core-expression';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/flow-core-expression/index.ts"],"names":[],"mappings":"AACA,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=parser-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parser-helpers.d.ts","sourceRoot":"","sources":["../../../../src/lib/flow-core-expression/parser-helpers.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import P from 'parsimmon';
2
+ export function PREFIX(operatorsParser, nextParser) {
3
+ const parser = P.lazy(() => {
4
+ return P.seq(operatorsParser, parser).or(nextParser);
5
+ });
6
+ return parser;
7
+ }
8
+ export function BINARY_RIGHT(operatorsParser, nextParser) {
9
+ const parser = P.lazy(() => nextParser.chain(next => P.seq(operatorsParser, P.of(next), parser).or(P.of(next))));
10
+ return parser;
11
+ }
12
+ export function TERNARY_RIGHT(operatorsParser, nextParser) {
13
+ const parser = P.lazy(() => nextParser.chain(next => P.seqMap(operatorsParser, P.of(next), parser, P.string(':').trim(P.optWhitespace), parser, (op, cond, val1, _colon, val2) => [op, ['to-boolean', cond], val1, val2]).or(P.of(next))));
14
+ return parser;
15
+ }
16
+ export function BINARY_LEFT(operatorsParser, nextParser) {
17
+ return P.seqMap(nextParser, P.seq(operatorsParser, nextParser).many(), (first, rest) => {
18
+ return rest.reduce((acc, ch) => {
19
+ const [op, another] = ch;
20
+ return [op, acc, another];
21
+ }, first);
22
+ });
23
+ }
24
+ //# sourceMappingURL=parser-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parser-helpers.js","sourceRoot":"","sources":["../../../../src/lib/flow-core-expression/parser-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,WAAW,CAAC;AAS1B,MAAM,UAAU,MAAM,CAAC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