@emuanalytics/flow-rdf-core 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/flow-rdf-core.js +42592 -0
- package/dist/bundle/flow-rdf-core.js.map +7 -0
- package/dist/bundle/flow-rdf-core.min.js +635 -0
- package/dist/bundle/flow-rdf-core.min.js.map +7 -0
- package/dist/cjs/index.d.ts +8 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +7 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/errors/flow-core-error.d.ts +4 -0
- package/dist/cjs/lib/errors/flow-core-error.d.ts.map +1 -0
- package/dist/cjs/lib/errors/flow-core-error.js +30 -0
- package/dist/cjs/lib/errors/flow-core-error.js.map +1 -0
- package/dist/cjs/lib/errors/flow-core-expression-error.d.ts +7 -0
- package/dist/cjs/lib/errors/flow-core-expression-error.d.ts.map +1 -0
- package/dist/cjs/lib/errors/flow-core-expression-error.js +41 -0
- package/dist/cjs/lib/errors/flow-core-expression-error.js.map +1 -0
- package/dist/cjs/lib/errors/flow-core-map-error.d.ts +5 -0
- package/dist/cjs/lib/errors/flow-core-map-error.d.ts.map +1 -0
- package/dist/cjs/lib/errors/flow-core-map-error.js +28 -0
- package/dist/cjs/lib/errors/flow-core-map-error.js.map +1 -0
- package/dist/cjs/lib/errors/index.d.ts +3 -0
- package/dist/cjs/lib/errors/index.d.ts.map +1 -0
- package/dist/cjs/lib/errors/index.js +8 -0
- package/dist/cjs/lib/errors/index.js.map +1 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-expression.d.ts +29 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-expression.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-expression.js +277 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-expression.js.map +1 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-parser.d.ts +2 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-parser.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-parser.js +215 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-parser.js.map +1 -0
- package/dist/cjs/lib/flow-core-expression/functions/from-palette.d.ts +12 -0
- package/dist/cjs/lib/flow-core-expression/functions/from-palette.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-expression/functions/from-palette.js +80 -0
- package/dist/cjs/lib/flow-core-expression/functions/from-palette.js.map +1 -0
- package/dist/cjs/lib/flow-core-expression/functions/state.d.ts +9 -0
- package/dist/cjs/lib/flow-core-expression/functions/state.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-expression/functions/state.js +25 -0
- package/dist/cjs/lib/flow-core-expression/functions/state.js.map +1 -0
- package/dist/cjs/lib/flow-core-expression/index.d.ts +2 -0
- package/dist/cjs/lib/flow-core-expression/index.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-expression/index.js +18 -0
- package/dist/cjs/lib/flow-core-expression/index.js.map +1 -0
- package/dist/cjs/lib/flow-core-expression/parser-helpers.d.ts +2 -0
- package/dist/cjs/lib/flow-core-expression/parser-helpers.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-expression/parser-helpers.js +54 -0
- package/dist/cjs/lib/flow-core-expression/parser-helpers.js.map +1 -0
- package/dist/cjs/lib/flow-core-expression/types.d.ts +27 -0
- package/dist/cjs/lib/flow-core-expression/types.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-expression/types.js +3 -0
- package/dist/cjs/lib/flow-core-expression/types.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/flow-core-map.d.ts +84 -0
- package/dist/cjs/lib/flow-core-map/flow-core-map.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/flow-core-map.js +836 -0
- package/dist/cjs/lib/flow-core-map/flow-core-map.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/index.d.ts +2 -0
- package/dist/cjs/lib/flow-core-map/index.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/index.js +18 -0
- package/dist/cjs/lib/flow-core-map/index.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts +4 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation-layers.js +94 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation-layers.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.events.d.ts +25 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.events.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.events.js +71 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.events.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts +67 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.plugin.js +732 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.plugin.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts +4 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js +11 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts +3 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js +70 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts +23 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js +75 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts +3 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js +19 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts +6 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js +21 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/types.d.ts +34 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/types.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/types.js +3 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/types.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/data-join.plugin.d.ts +45 -0
- package/dist/cjs/lib/flow-core-map/plugins/data-join.plugin.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/data-join.plugin.js +344 -0
- package/dist/cjs/lib/flow-core-map/plugins/data-join.plugin.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts +41 -0
- package/dist/cjs/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/flow-core-map-plugin.js +58 -0
- package/dist/cjs/lib/flow-core-map/plugins/flow-core-map-plugin.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/hover-effect.plugin.d.ts +14 -0
- package/dist/cjs/lib/flow-core-map/plugins/hover-effect.plugin.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/hover-effect.plugin.js +109 -0
- package/dist/cjs/lib/flow-core-map/plugins/hover-effect.plugin.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts +26 -0
- package/dist/cjs/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/keyboard-shortcut-manager.js +166 -0
- package/dist/cjs/lib/flow-core-map/plugins/keyboard-shortcut-manager.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/plugin-manager.d.ts +27 -0
- package/dist/cjs/lib/flow-core-map/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/plugin-manager.js +242 -0
- package/dist/cjs/lib/flow-core-map/plugins/plugin-manager.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/popup.plugin.d.ts +17 -0
- package/dist/cjs/lib/flow-core-map/plugins/popup.plugin.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/popup.plugin.js +108 -0
- package/dist/cjs/lib/flow-core-map/plugins/popup.plugin.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.events.d.ts +14 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.events.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.events.js +50 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.events.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.plugin.d.ts +31 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.plugin.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.plugin.js +195 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.plugin.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/source-selection.d.ts +24 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/source-selection.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/source-selection.js +276 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/source-selection.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-events.d.ts +56 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-events.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-events.js +147 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-events.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts +29 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-feature-stream.js +207 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-feature-stream.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-popup.d.ts +39 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-popup.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-popup.js +259 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-popup.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/image-registry.d.ts +2 -0
- package/dist/cjs/lib/flow-core-map/support/image-registry.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/image-registry.js +86 -0
- package/dist/cjs/lib/flow-core-map/support/image-registry.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/types.d.ts +45 -0
- package/dist/cjs/lib/flow-core-map/types.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/types.js +10 -0
- package/dist/cjs/lib/flow-core-map/types.js.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-data-source.d.ts +26 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-data-source.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-data-source.js +286 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-data-source.js.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-layer.d.ts +58 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-layer.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-layer.js +357 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-layer.js.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-style.d.ts +32 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-style.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-style.js +314 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-style.js.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/index.d.ts +5 -0
- package/dist/cjs/lib/flow-core-map-style/index.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/index.js +21 -0
- package/dist/cjs/lib/flow-core-map-style/index.js.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/types.d.ts +49 -0
- package/dist/cjs/lib/flow-core-map-style/types.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/types.js +3 -0
- package/dist/cjs/lib/flow-core-map-style/types.js.map +1 -0
- package/dist/cjs/lib/flow-core-query/FlowQueryResultFormat.d.ts +36 -0
- package/dist/cjs/lib/flow-core-query/FlowQueryResultFormat.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-query/FlowQueryResultFormat.js +3 -0
- package/dist/cjs/lib/flow-core-query/FlowQueryResultFormat.js.map +1 -0
- package/dist/{types/lib → cjs/lib/flow-core-query}/async-committer.d.ts +0 -0
- package/dist/cjs/lib/flow-core-query/async-committer.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-query/async-committer.js +95 -0
- package/dist/cjs/lib/flow-core-query/async-committer.js.map +1 -0
- package/dist/cjs/lib/flow-core-query/flow-core-query.d.ts +35 -0
- package/dist/cjs/lib/flow-core-query/flow-core-query.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-query/flow-core-query.js +371 -0
- package/dist/cjs/lib/flow-core-query/flow-core-query.js.map +1 -0
- package/dist/cjs/lib/flow-core-query/index.d.ts +2 -0
- package/dist/cjs/lib/flow-core-query/index.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-query/index.js +18 -0
- package/dist/cjs/lib/flow-core-query/index.js.map +1 -0
- package/dist/cjs/lib/flow-core-state-store/flow-core-state-store.d.ts +25 -0
- package/dist/cjs/lib/flow-core-state-store/flow-core-state-store.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-state-store/flow-core-state-store.js +203 -0
- package/dist/cjs/lib/flow-core-state-store/flow-core-state-store.js.map +1 -0
- package/dist/cjs/lib/flow-core-state-store/index.d.ts +6 -0
- package/dist/cjs/lib/flow-core-state-store/index.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-state-store/index.js +25 -0
- package/dist/cjs/lib/flow-core-state-store/index.js.map +1 -0
- package/dist/cjs/lib/flow-core-state-store/utils.d.ts +10 -0
- package/dist/cjs/lib/flow-core-state-store/utils.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-state-store/utils.js +9 -0
- package/dist/cjs/lib/flow-core-state-store/utils.js.map +1 -0
- package/dist/cjs/lib/utils/assert.d.ts +2 -0
- package/dist/cjs/lib/utils/assert.d.ts.map +1 -0
- package/dist/cjs/lib/utils/assert.js +11 -0
- package/dist/cjs/lib/utils/assert.js.map +1 -0
- package/dist/cjs/lib/utils/ensure-array.d.ts +2 -0
- package/dist/cjs/lib/utils/ensure-array.d.ts.map +1 -0
- package/dist/cjs/lib/utils/ensure-array.js +23 -0
- package/dist/cjs/lib/utils/ensure-array.js.map +1 -0
- package/dist/cjs/lib/utils/feature-type-checks.d.ts +5 -0
- package/dist/cjs/lib/utils/feature-type-checks.d.ts.map +1 -0
- package/dist/cjs/lib/utils/feature-type-checks.js +30 -0
- package/dist/cjs/lib/utils/feature-type-checks.js.map +1 -0
- package/dist/cjs/lib/utils/functional.d.ts +34 -0
- package/dist/cjs/lib/utils/functional.d.ts.map +1 -0
- package/dist/cjs/lib/utils/functional.js +144 -0
- package/dist/cjs/lib/utils/functional.js.map +1 -0
- package/dist/cjs/lib/utils/index.d.ts +2 -0
- package/dist/cjs/lib/utils/index.d.ts.map +1 -0
- package/dist/cjs/lib/utils/index.js +18 -0
- package/dist/cjs/lib/utils/index.js.map +1 -0
- package/dist/cjs/lib/utils/string-utils.d.ts +2 -0
- package/dist/cjs/lib/utils/string-utils.d.ts.map +1 -0
- package/dist/cjs/lib/utils/string-utils.js +11 -0
- package/dist/cjs/lib/utils/string-utils.js.map +1 -0
- package/dist/cjs/lib/utils/type-checks.d.ts +25 -0
- package/dist/cjs/lib/utils/type-checks.d.ts.map +1 -0
- package/dist/cjs/lib/utils/type-checks.js +80 -0
- package/dist/cjs/lib/utils/type-checks.js.map +1 -0
- package/dist/cjs/lib/utils/typescript-utils.d.ts +2 -0
- package/dist/cjs/lib/utils/typescript-utils.d.ts.map +1 -0
- package/dist/cjs/lib/utils/typescript-utils.js +3 -0
- package/dist/cjs/lib/utils/typescript-utils.js.map +1 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +7 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/errors/flow-core-error.d.ts +4 -0
- package/dist/esm/lib/errors/flow-core-error.d.ts.map +1 -0
- package/dist/esm/lib/errors/flow-core-error.js +8 -0
- package/dist/esm/lib/errors/flow-core-error.js.map +1 -0
- package/dist/esm/lib/errors/flow-core-expression-error.d.ts +7 -0
- package/dist/esm/lib/errors/flow-core-expression-error.d.ts.map +1 -0
- package/dist/esm/lib/errors/flow-core-expression-error.js +19 -0
- package/dist/esm/lib/errors/flow-core-expression-error.js.map +1 -0
- package/dist/esm/lib/errors/flow-core-map-error.d.ts +5 -0
- package/dist/esm/lib/errors/flow-core-map-error.d.ts.map +1 -0
- package/dist/esm/lib/errors/flow-core-map-error.js +7 -0
- package/dist/esm/lib/errors/flow-core-map-error.js.map +1 -0
- package/dist/esm/lib/errors/index.d.ts +3 -0
- package/dist/esm/lib/errors/index.d.ts.map +1 -0
- package/dist/esm/lib/errors/index.js +3 -0
- package/dist/esm/lib/errors/index.js.map +1 -0
- package/dist/esm/lib/flow-core-expression/flow-core-expression.d.ts +29 -0
- package/dist/esm/lib/flow-core-expression/flow-core-expression.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-expression/flow-core-expression.js +148 -0
- package/dist/esm/lib/flow-core-expression/flow-core-expression.js.map +1 -0
- package/dist/esm/lib/flow-core-expression/flow-core-parser.d.ts +2 -0
- package/dist/esm/lib/flow-core-expression/flow-core-parser.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-expression/flow-core-parser.js +147 -0
- package/dist/esm/lib/flow-core-expression/flow-core-parser.js.map +1 -0
- package/dist/esm/lib/flow-core-expression/functions/from-palette.d.ts +12 -0
- package/dist/esm/lib/flow-core-expression/functions/from-palette.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-expression/functions/from-palette.js +73 -0
- package/dist/esm/lib/flow-core-expression/functions/from-palette.js.map +1 -0
- package/dist/esm/lib/flow-core-expression/functions/state.d.ts +9 -0
- package/dist/esm/lib/flow-core-expression/functions/state.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-expression/functions/state.js +23 -0
- package/dist/esm/lib/flow-core-expression/functions/state.js.map +1 -0
- package/dist/esm/lib/flow-core-expression/index.d.ts +2 -0
- package/dist/esm/lib/flow-core-expression/index.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-expression/index.js +2 -0
- package/dist/esm/lib/flow-core-expression/index.js.map +1 -0
- package/dist/esm/lib/flow-core-expression/parser-helpers.d.ts +2 -0
- package/dist/esm/lib/flow-core-expression/parser-helpers.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-expression/parser-helpers.js +24 -0
- package/dist/esm/lib/flow-core-expression/parser-helpers.js.map +1 -0
- package/dist/esm/lib/flow-core-expression/types.d.ts +27 -0
- package/dist/esm/lib/flow-core-expression/types.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-expression/types.js +2 -0
- package/dist/esm/lib/flow-core-expression/types.js.map +1 -0
- package/dist/esm/lib/flow-core-map/flow-core-map.d.ts +84 -0
- package/dist/esm/lib/flow-core-map/flow-core-map.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/flow-core-map.js +491 -0
- package/dist/esm/lib/flow-core-map/flow-core-map.js.map +1 -0
- package/dist/esm/lib/flow-core-map/index.d.ts +2 -0
- package/dist/esm/lib/flow-core-map/index.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/index.js +2 -0
- package/dist/esm/lib/flow-core-map/index.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts +4 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation-layers.js +150 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation-layers.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.events.d.ts +25 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.events.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.events.js +49 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.events.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts +67 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.plugin.js +524 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.plugin.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts +4 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js +4 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts +3 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js +65 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts +23 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js +59 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts +3 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js +14 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts +6 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js +19 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/types.d.ts +34 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/types.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/types.js +2 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/types.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/data-join.plugin.d.ts +45 -0
- package/dist/esm/lib/flow-core-map/plugins/data-join.plugin.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/data-join.plugin.js +204 -0
- package/dist/esm/lib/flow-core-map/plugins/data-join.plugin.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts +41 -0
- package/dist/esm/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/flow-core-map-plugin.js +28 -0
- package/dist/esm/lib/flow-core-map/plugins/flow-core-map-plugin.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/hover-effect.plugin.d.ts +14 -0
- package/dist/esm/lib/flow-core-map/plugins/hover-effect.plugin.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/hover-effect.plugin.js +62 -0
- package/dist/esm/lib/flow-core-map/plugins/hover-effect.plugin.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts +26 -0
- package/dist/esm/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/keyboard-shortcut-manager.js +98 -0
- package/dist/esm/lib/flow-core-map/plugins/keyboard-shortcut-manager.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/plugin-manager.d.ts +27 -0
- package/dist/esm/lib/flow-core-map/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/plugin-manager.js +144 -0
- package/dist/esm/lib/flow-core-map/plugins/plugin-manager.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/popup.plugin.d.ts +17 -0
- package/dist/esm/lib/flow-core-map/plugins/popup.plugin.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/popup.plugin.js +64 -0
- package/dist/esm/lib/flow-core-map/plugins/popup.plugin.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.events.d.ts +14 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.events.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.events.js +28 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.events.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.plugin.d.ts +31 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.plugin.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.plugin.js +123 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.plugin.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/source-selection.d.ts +24 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/source-selection.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/source-selection.js +188 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/source-selection.js.map +1 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-events.d.ts +56 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-events.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-events.js +101 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-events.js.map +1 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts +29 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-feature-stream.js +140 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-feature-stream.js.map +1 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-popup.d.ts +39 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-popup.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-popup.js +158 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-popup.js.map +1 -0
- package/dist/esm/lib/flow-core-map/support/image-registry.d.ts +2 -0
- package/dist/esm/lib/flow-core-map/support/image-registry.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/support/image-registry.js +56 -0
- package/dist/esm/lib/flow-core-map/support/image-registry.js.map +1 -0
- package/dist/esm/lib/flow-core-map/types.d.ts +45 -0
- package/dist/esm/lib/flow-core-map/types.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/types.js +6 -0
- package/dist/esm/lib/flow-core-map/types.js.map +1 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-data-source.d.ts +26 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-data-source.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-data-source.js +197 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-data-source.js.map +1 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-layer.d.ts +58 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-layer.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-layer.js +228 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-layer.js.map +1 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-style.d.ts +32 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-style.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-style.js +200 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-style.js.map +1 -0
- package/dist/esm/lib/flow-core-map-style/index.d.ts +5 -0
- package/dist/esm/lib/flow-core-map-style/index.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map-style/index.js +5 -0
- package/dist/esm/lib/flow-core-map-style/index.js.map +1 -0
- package/dist/esm/lib/flow-core-map-style/types.d.ts +49 -0
- package/dist/esm/lib/flow-core-map-style/types.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map-style/types.js +2 -0
- package/dist/esm/lib/flow-core-map-style/types.js.map +1 -0
- package/dist/esm/lib/flow-core-query/FlowQueryResultFormat.d.ts +36 -0
- package/dist/esm/lib/flow-core-query/FlowQueryResultFormat.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-query/FlowQueryResultFormat.js +2 -0
- package/dist/esm/lib/flow-core-query/FlowQueryResultFormat.js.map +1 -0
- package/dist/esm/lib/flow-core-query/async-committer.d.ts +15 -0
- package/dist/esm/lib/flow-core-query/async-committer.d.ts.map +1 -0
- package/dist/esm/lib/{async-committer.js → flow-core-query/async-committer.js} +1 -9
- package/dist/esm/lib/flow-core-query/async-committer.js.map +1 -0
- package/dist/esm/lib/flow-core-query/flow-core-query.d.ts +35 -0
- package/dist/esm/lib/flow-core-query/flow-core-query.d.ts.map +1 -0
- package/dist/esm/lib/{flow-query.js → flow-core-query/flow-core-query.js} +100 -35
- package/dist/esm/lib/flow-core-query/flow-core-query.js.map +1 -0
- package/dist/esm/lib/flow-core-query/index.d.ts +2 -0
- package/dist/esm/lib/flow-core-query/index.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-query/index.js +2 -0
- package/dist/esm/lib/flow-core-query/index.js.map +1 -0
- package/dist/esm/lib/flow-core-state-store/flow-core-state-store.d.ts +25 -0
- package/dist/esm/lib/flow-core-state-store/flow-core-state-store.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-state-store/flow-core-state-store.js +121 -0
- package/dist/esm/lib/flow-core-state-store/flow-core-state-store.js.map +1 -0
- package/dist/esm/lib/flow-core-state-store/index.d.ts +6 -0
- package/dist/esm/lib/flow-core-state-store/index.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-state-store/index.js +4 -0
- package/dist/esm/lib/flow-core-state-store/index.js.map +1 -0
- package/dist/esm/lib/flow-core-state-store/utils.d.ts +10 -0
- package/dist/esm/lib/flow-core-state-store/utils.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-state-store/utils.js +5 -0
- package/dist/esm/lib/flow-core-state-store/utils.js.map +1 -0
- package/dist/esm/lib/utils/assert.d.ts +2 -0
- package/dist/esm/lib/utils/assert.d.ts.map +1 -0
- package/dist/esm/lib/utils/assert.js +7 -0
- package/dist/esm/lib/utils/assert.js.map +1 -0
- package/dist/esm/lib/utils/ensure-array.d.ts +2 -0
- package/dist/esm/lib/utils/ensure-array.d.ts.map +1 -0
- package/dist/esm/lib/utils/ensure-array.js +15 -0
- package/dist/esm/lib/utils/ensure-array.js.map +1 -0
- package/dist/esm/lib/utils/feature-type-checks.d.ts +5 -0
- package/dist/esm/lib/utils/feature-type-checks.d.ts.map +1 -0
- package/dist/esm/lib/utils/feature-type-checks.js +23 -0
- package/dist/esm/lib/utils/feature-type-checks.js.map +1 -0
- package/dist/esm/lib/utils/functional.d.ts +34 -0
- package/dist/esm/lib/utils/functional.d.ts.map +1 -0
- package/dist/esm/lib/utils/functional.js +89 -0
- package/dist/esm/lib/utils/functional.js.map +1 -0
- package/dist/esm/lib/utils/index.d.ts +2 -0
- package/dist/esm/lib/utils/index.d.ts.map +1 -0
- package/dist/esm/lib/utils/index.js +2 -0
- package/dist/esm/lib/utils/index.js.map +1 -0
- package/dist/esm/lib/utils/string-utils.d.ts +2 -0
- package/dist/esm/lib/utils/string-utils.d.ts.map +1 -0
- package/dist/esm/lib/utils/string-utils.js +3 -0
- package/dist/esm/lib/utils/string-utils.js.map +1 -0
- package/dist/esm/lib/utils/type-checks.d.ts +25 -0
- package/dist/esm/lib/utils/type-checks.d.ts.map +1 -0
- package/dist/esm/lib/utils/type-checks.js +51 -0
- package/dist/esm/lib/utils/type-checks.js.map +1 -0
- package/dist/esm/lib/utils/typescript-utils.d.ts +2 -0
- package/dist/esm/lib/utils/typescript-utils.d.ts.map +1 -0
- package/dist/esm/lib/utils/typescript-utils.js +2 -0
- package/dist/esm/lib/utils/typescript-utils.js.map +1 -0
- package/dist/esm5/index.d.ts +8 -0
- package/dist/esm5/index.d.ts.map +1 -0
- package/dist/esm5/index.js +8 -0
- package/dist/esm5/index.js.map +1 -0
- package/dist/esm5/lib/errors/flow-core-error.d.ts +4 -0
- package/dist/esm5/lib/errors/flow-core-error.d.ts.map +1 -0
- package/dist/esm5/lib/errors/flow-core-error.js +13 -0
- package/dist/esm5/lib/errors/flow-core-error.js.map +1 -0
- package/dist/esm5/lib/errors/flow-core-expression-error.d.ts +7 -0
- package/dist/esm5/lib/errors/flow-core-expression-error.d.ts.map +1 -0
- package/dist/esm5/lib/errors/flow-core-expression-error.js +24 -0
- package/dist/esm5/lib/errors/flow-core-expression-error.js.map +1 -0
- package/dist/esm5/lib/errors/flow-core-map-error.d.ts +5 -0
- package/dist/esm5/lib/errors/flow-core-map-error.d.ts.map +1 -0
- package/dist/esm5/lib/errors/flow-core-map-error.js +11 -0
- package/dist/esm5/lib/errors/flow-core-map-error.js.map +1 -0
- package/dist/esm5/lib/errors/index.d.ts +3 -0
- package/dist/esm5/lib/errors/index.d.ts.map +1 -0
- package/dist/esm5/lib/errors/index.js +3 -0
- package/dist/esm5/lib/errors/index.js.map +1 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-expression.d.ts +29 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-expression.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-expression.js +224 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-expression.js.map +1 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-parser.d.ts +2 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-parser.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-parser.js +185 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-parser.js.map +1 -0
- package/dist/esm5/lib/flow-core-expression/functions/from-palette.d.ts +12 -0
- package/dist/esm5/lib/flow-core-expression/functions/from-palette.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-expression/functions/from-palette.js +75 -0
- package/dist/esm5/lib/flow-core-expression/functions/from-palette.js.map +1 -0
- package/dist/esm5/lib/flow-core-expression/functions/state.d.ts +9 -0
- package/dist/esm5/lib/flow-core-expression/functions/state.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-expression/functions/state.js +23 -0
- package/dist/esm5/lib/flow-core-expression/functions/state.js.map +1 -0
- package/dist/esm5/lib/flow-core-expression/index.d.ts +2 -0
- package/dist/esm5/lib/flow-core-expression/index.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-expression/index.js +2 -0
- package/dist/esm5/lib/flow-core-expression/index.js.map +1 -0
- package/dist/esm5/lib/flow-core-expression/parser-helpers.d.ts +2 -0
- package/dist/esm5/lib/flow-core-expression/parser-helpers.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-expression/parser-helpers.js +29 -0
- package/dist/esm5/lib/flow-core-expression/parser-helpers.js.map +1 -0
- package/dist/esm5/lib/flow-core-expression/types.d.ts +27 -0
- package/dist/esm5/lib/flow-core-expression/types.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-expression/types.js +2 -0
- package/dist/esm5/lib/flow-core-expression/types.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/flow-core-map.d.ts +84 -0
- package/dist/esm5/lib/flow-core-map/flow-core-map.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/flow-core-map.js +746 -0
- package/dist/esm5/lib/flow-core-map/flow-core-map.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/index.d.ts +2 -0
- package/dist/esm5/lib/flow-core-map/index.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/index.js +2 -0
- package/dist/esm5/lib/flow-core-map/index.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts +4 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation-layers.js +90 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation-layers.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.events.d.ts +25 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.events.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.events.js +54 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.events.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts +67 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.plugin.js +701 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.plugin.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts +4 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js +4 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts +3 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js +65 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts +23 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js +60 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts +3 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js +14 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts +6 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js +19 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/types.d.ts +34 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/types.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/types.js +2 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/types.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/data-join.plugin.d.ts +45 -0
- package/dist/esm5/lib/flow-core-map/plugins/data-join.plugin.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/data-join.plugin.js +277 -0
- package/dist/esm5/lib/flow-core-map/plugins/data-join.plugin.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts +41 -0
- package/dist/esm5/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/flow-core-map-plugin.js +41 -0
- package/dist/esm5/lib/flow-core-map/plugins/flow-core-map-plugin.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/hover-effect.plugin.d.ts +14 -0
- package/dist/esm5/lib/flow-core-map/plugins/hover-effect.plugin.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/hover-effect.plugin.js +92 -0
- package/dist/esm5/lib/flow-core-map/plugins/hover-effect.plugin.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts +26 -0
- package/dist/esm5/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/keyboard-shortcut-manager.js +153 -0
- package/dist/esm5/lib/flow-core-map/plugins/keyboard-shortcut-manager.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/plugin-manager.d.ts +27 -0
- package/dist/esm5/lib/flow-core-map/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/plugin-manager.js +226 -0
- package/dist/esm5/lib/flow-core-map/plugins/plugin-manager.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/popup.plugin.d.ts +17 -0
- package/dist/esm5/lib/flow-core-map/plugins/popup.plugin.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/popup.plugin.js +91 -0
- package/dist/esm5/lib/flow-core-map/plugins/popup.plugin.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.events.d.ts +14 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.events.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.events.js +33 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.events.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.plugin.d.ts +31 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.plugin.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.plugin.js +178 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.plugin.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/source-selection.d.ts +24 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/source-selection.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/source-selection.js +238 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/source-selection.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-events.d.ts +56 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-events.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-events.js +130 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-events.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts +29 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-feature-stream.js +191 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-feature-stream.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-popup.d.ts +39 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-popup.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-popup.js +205 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-popup.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/image-registry.d.ts +2 -0
- package/dist/esm5/lib/flow-core-map/support/image-registry.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/image-registry.js +80 -0
- package/dist/esm5/lib/flow-core-map/support/image-registry.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/types.d.ts +45 -0
- package/dist/esm5/lib/flow-core-map/types.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/types.js +6 -0
- package/dist/esm5/lib/flow-core-map/types.js.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-data-source.d.ts +26 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-data-source.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-data-source.js +257 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-data-source.js.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-layer.d.ts +58 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-layer.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-layer.js +321 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-layer.js.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-style.d.ts +32 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-style.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-style.js +276 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-style.js.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/index.d.ts +5 -0
- package/dist/esm5/lib/flow-core-map-style/index.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/index.js +5 -0
- package/dist/esm5/lib/flow-core-map-style/index.js.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/types.d.ts +49 -0
- package/dist/esm5/lib/flow-core-map-style/types.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/types.js +2 -0
- package/dist/esm5/lib/flow-core-map-style/types.js.map +1 -0
- package/dist/esm5/lib/flow-core-query/FlowQueryResultFormat.d.ts +36 -0
- package/dist/esm5/lib/flow-core-query/FlowQueryResultFormat.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-query/FlowQueryResultFormat.js +2 -0
- package/dist/esm5/lib/flow-core-query/FlowQueryResultFormat.js.map +1 -0
- package/dist/esm5/lib/flow-core-query/async-committer.d.ts +15 -0
- package/dist/esm5/lib/flow-core-query/async-committer.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-query/async-committer.js +57 -0
- package/dist/esm5/lib/flow-core-query/async-committer.js.map +1 -0
- package/dist/esm5/lib/flow-core-query/flow-core-query.d.ts +35 -0
- package/dist/esm5/lib/flow-core-query/flow-core-query.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-query/flow-core-query.js +316 -0
- package/dist/esm5/lib/flow-core-query/flow-core-query.js.map +1 -0
- package/dist/esm5/lib/flow-core-query/index.d.ts +2 -0
- package/dist/esm5/lib/flow-core-query/index.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-query/index.js +2 -0
- package/dist/esm5/lib/flow-core-query/index.js.map +1 -0
- package/dist/esm5/lib/flow-core-state-store/flow-core-state-store.d.ts +25 -0
- package/dist/esm5/lib/flow-core-state-store/flow-core-state-store.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-state-store/flow-core-state-store.js +190 -0
- package/dist/esm5/lib/flow-core-state-store/flow-core-state-store.js.map +1 -0
- package/dist/esm5/lib/flow-core-state-store/index.d.ts +6 -0
- package/dist/esm5/lib/flow-core-state-store/index.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-state-store/index.js +4 -0
- package/dist/esm5/lib/flow-core-state-store/index.js.map +1 -0
- package/dist/esm5/lib/flow-core-state-store/utils.d.ts +10 -0
- package/dist/esm5/lib/flow-core-state-store/utils.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-state-store/utils.js +5 -0
- package/dist/esm5/lib/flow-core-state-store/utils.js.map +1 -0
- package/dist/esm5/lib/utils/assert.d.ts +2 -0
- package/dist/esm5/lib/utils/assert.d.ts.map +1 -0
- package/dist/esm5/lib/utils/assert.js +7 -0
- package/dist/esm5/lib/utils/assert.js.map +1 -0
- package/dist/esm5/lib/utils/ensure-array.d.ts +2 -0
- package/dist/esm5/lib/utils/ensure-array.d.ts.map +1 -0
- package/dist/esm5/lib/utils/ensure-array.js +19 -0
- package/dist/esm5/lib/utils/ensure-array.js.map +1 -0
- package/dist/esm5/lib/utils/feature-type-checks.d.ts +5 -0
- package/dist/esm5/lib/utils/feature-type-checks.d.ts.map +1 -0
- package/dist/esm5/lib/utils/feature-type-checks.js +23 -0
- package/dist/esm5/lib/utils/feature-type-checks.js.map +1 -0
- package/dist/esm5/lib/utils/functional.d.ts +34 -0
- package/dist/esm5/lib/utils/functional.d.ts.map +1 -0
- package/dist/esm5/lib/utils/functional.js +112 -0
- package/dist/esm5/lib/utils/functional.js.map +1 -0
- package/dist/esm5/lib/utils/index.d.ts +2 -0
- package/dist/esm5/lib/utils/index.d.ts.map +1 -0
- package/dist/esm5/lib/utils/index.js +2 -0
- package/dist/esm5/lib/utils/index.js.map +1 -0
- package/dist/esm5/lib/utils/string-utils.d.ts +2 -0
- package/dist/esm5/lib/utils/string-utils.d.ts.map +1 -0
- package/dist/esm5/lib/utils/string-utils.js +7 -0
- package/dist/esm5/lib/utils/string-utils.js.map +1 -0
- package/dist/esm5/lib/utils/type-checks.d.ts +25 -0
- package/dist/esm5/lib/utils/type-checks.d.ts.map +1 -0
- package/dist/esm5/lib/utils/type-checks.js +53 -0
- package/dist/esm5/lib/utils/type-checks.js.map +1 -0
- package/dist/esm5/lib/utils/typescript-utils.d.ts +2 -0
- package/dist/esm5/lib/utils/typescript-utils.d.ts.map +1 -0
- package/dist/esm5/lib/utils/typescript-utils.js +2 -0
- package/dist/esm5/lib/utils/typescript-utils.js.map +1 -0
- package/dist/types/index.d.ts +7 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/errors/flow-core-error.d.ts +4 -0
- package/dist/types/lib/errors/flow-core-error.d.ts.map +1 -0
- package/dist/types/lib/errors/flow-core-expression-error.d.ts +7 -0
- package/dist/types/lib/errors/flow-core-expression-error.d.ts.map +1 -0
- package/dist/types/lib/errors/flow-core-map-error.d.ts +5 -0
- package/dist/types/lib/errors/flow-core-map-error.d.ts.map +1 -0
- package/dist/types/lib/errors/index.d.ts +3 -0
- package/dist/types/lib/errors/index.d.ts.map +1 -0
- package/dist/types/lib/flow-core-expression/flow-core-expression.d.ts +29 -0
- package/dist/types/lib/flow-core-expression/flow-core-expression.d.ts.map +1 -0
- package/dist/types/lib/flow-core-expression/flow-core-parser.d.ts +19 -0
- package/dist/types/lib/flow-core-expression/flow-core-parser.d.ts.map +1 -0
- package/dist/types/lib/flow-core-expression/functions/from-palette.d.ts +12 -0
- package/dist/types/lib/flow-core-expression/functions/from-palette.d.ts.map +1 -0
- package/dist/types/lib/flow-core-expression/functions/state.d.ts +9 -0
- package/dist/types/lib/flow-core-expression/functions/state.d.ts.map +1 -0
- package/dist/types/lib/flow-core-expression/index.d.ts +2 -0
- package/dist/types/lib/flow-core-expression/index.d.ts.map +1 -0
- package/dist/types/lib/flow-core-expression/parser-helpers.d.ts +2 -0
- package/dist/types/lib/flow-core-expression/parser-helpers.d.ts.map +1 -0
- package/dist/types/lib/flow-core-expression/types.d.ts +27 -0
- package/dist/types/lib/flow-core-expression/types.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/flow-core-map.d.ts +106 -0
- package/dist/types/lib/flow-core-map/flow-core-map.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/index.d.ts +2 -0
- package/dist/types/lib/flow-core-map/index.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts +4 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/annotation.events.d.ts +25 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/annotation.events.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts +70 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts +4 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts +3 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts +23 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts +3 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts +6 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/types.d.ts +34 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/types.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/data-join.plugin.d.ts +47 -0
- package/dist/types/lib/flow-core-map/plugins/data-join.plugin.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts +41 -0
- package/dist/types/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/hover-effect.plugin.d.ts +14 -0
- package/dist/types/lib/flow-core-map/plugins/hover-effect.plugin.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts +52 -0
- package/dist/types/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/plugin-manager.d.ts +27 -0
- package/dist/types/lib/flow-core-map/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/popup.plugin.d.ts +17 -0
- package/dist/types/lib/flow-core-map/plugins/popup.plugin.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/selection/selection.events.d.ts +14 -0
- package/dist/types/lib/flow-core-map/plugins/selection/selection.events.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/selection/selection.plugin.d.ts +31 -0
- package/dist/types/lib/flow-core-map/plugins/selection/selection.plugin.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/selection/source-selection.d.ts +24 -0
- package/dist/types/lib/flow-core-map/plugins/selection/source-selection.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/support/flow-core-map-events.d.ts +62 -0
- package/dist/types/lib/flow-core-map/support/flow-core-map-events.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts +29 -0
- package/dist/types/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/support/flow-core-map-popup.d.ts +74 -0
- package/dist/types/lib/flow-core-map/support/flow-core-map-popup.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/support/image-registry.d.ts +2 -0
- package/dist/types/lib/flow-core-map/support/image-registry.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/types.d.ts +57 -0
- package/dist/types/lib/flow-core-map/types.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map-style/flow-core-map-data-source.d.ts +33 -0
- package/dist/types/lib/flow-core-map-style/flow-core-map-data-source.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map-style/flow-core-map-layer.d.ts +71 -0
- package/dist/types/lib/flow-core-map-style/flow-core-map-layer.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map-style/flow-core-map-style.d.ts +32 -0
- package/dist/types/lib/flow-core-map-style/flow-core-map-style.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map-style/index.d.ts +5 -0
- package/dist/types/lib/flow-core-map-style/index.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map-style/types.d.ts +60 -0
- package/dist/types/lib/flow-core-map-style/types.d.ts.map +1 -0
- package/dist/types/lib/{flow-query.d.ts → flow-core-query/FlowQueryResultFormat.d.ts} +9 -26
- package/dist/types/lib/flow-core-query/FlowQueryResultFormat.d.ts.map +1 -0
- package/dist/types/lib/flow-core-query/async-committer.d.ts +15 -0
- package/dist/types/lib/flow-core-query/async-committer.d.ts.map +1 -0
- package/dist/types/lib/flow-core-query/flow-core-query.d.ts +35 -0
- package/dist/types/lib/flow-core-query/flow-core-query.d.ts.map +1 -0
- package/dist/types/lib/flow-core-query/index.d.ts +2 -0
- package/dist/types/lib/flow-core-query/index.d.ts.map +1 -0
- package/dist/types/lib/flow-core-state-store/flow-core-state-store.d.ts +25 -0
- package/dist/types/lib/flow-core-state-store/flow-core-state-store.d.ts.map +1 -0
- package/dist/types/lib/flow-core-state-store/index.d.ts +6 -0
- package/dist/types/lib/flow-core-state-store/index.d.ts.map +1 -0
- package/dist/types/lib/flow-core-state-store/utils.d.ts +10 -0
- package/dist/types/lib/flow-core-state-store/utils.d.ts.map +1 -0
- package/dist/types/lib/utils/assert.d.ts +2 -0
- package/dist/types/lib/utils/assert.d.ts.map +1 -0
- package/dist/types/lib/utils/ensure-array.d.ts +2 -0
- package/dist/types/lib/utils/ensure-array.d.ts.map +1 -0
- package/dist/types/lib/utils/feature-type-checks.d.ts +5 -0
- package/dist/types/lib/utils/feature-type-checks.d.ts.map +1 -0
- package/dist/types/lib/utils/functional.d.ts +70 -0
- package/dist/types/lib/utils/functional.d.ts.map +1 -0
- package/dist/types/lib/utils/index.d.ts +2 -0
- package/dist/types/lib/utils/index.d.ts.map +1 -0
- package/dist/types/lib/utils/string-utils.d.ts +2 -0
- package/dist/types/lib/utils/string-utils.d.ts.map +1 -0
- package/dist/types/lib/utils/type-checks.d.ts +25 -0
- package/dist/types/lib/utils/type-checks.d.ts.map +1 -0
- package/dist/types/lib/utils/typescript-utils.d.ts +2 -0
- package/dist/types/lib/utils/typescript-utils.d.ts.map +1 -0
- package/package.json +80 -12
- package/.turbo/turbo-build.log +0 -17
- package/CHANGELOG.md +0 -13
- package/dist/cjs/lib/async-committer.js +0 -47
- package/dist/cjs/lib/async-committer.js.map +0 -1
- package/dist/cjs/lib/flow-query.js +0 -183
- package/dist/cjs/lib/flow-query.js.map +0 -1
- package/dist/esm/lib/async-committer.js.map +0 -1
- package/dist/esm/lib/flow-query.js.map +0 -1
- package/dist/types/lib/async-committer.d.ts.map +0 -1
- package/dist/types/lib/flow-query.d.ts.map +0 -1
- package/jest.config.js +0 -3
- package/src/__tests__/test.spec.ts +0 -116
- package/src/index.ts +0 -2
- package/src/lib/async-committer.ts +0 -23
- package/src/lib/flow-query.ts +0 -244
- package/tsconfig.build.json +0 -12
- package/tsconfig.json +0 -103
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { __read, __spreadArray } from "tslib";
|
|
2
|
+
import * as maplibreSpec from '@maplibre/maplibre-gl-style-spec';
|
|
3
|
+
import { FlowCoreParser } from './flow-core-parser';
|
|
4
|
+
import { isString, isUndefined } from '../utils/type-checks';
|
|
5
|
+
import { action, computed, makeObservable, observable } from 'mobx';
|
|
6
|
+
import { toStream } from 'mobx-utils';
|
|
7
|
+
import customStateFn from './functions/state';
|
|
8
|
+
import customFromPaletteFn from './functions/from-palette';
|
|
9
|
+
import { FlowCoreExpressionError } from '../errors/flow-core-expression-error';
|
|
10
|
+
var FlowCoreExpression = (function () {
|
|
11
|
+
function FlowCoreExpression(expression, parsedExpression) {
|
|
12
|
+
Object.defineProperty(this, "_expression", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true,
|
|
16
|
+
value: ''
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(this, "parsedResult", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true,
|
|
21
|
+
writable: true,
|
|
22
|
+
value: void 0
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(this, "_store", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
configurable: true,
|
|
27
|
+
writable: true,
|
|
28
|
+
value: null
|
|
29
|
+
});
|
|
30
|
+
makeObservable(this, {
|
|
31
|
+
_store: observable.ref,
|
|
32
|
+
maplibreExpression: computed,
|
|
33
|
+
value: computed,
|
|
34
|
+
bindState: action
|
|
35
|
+
}, { name: this.formatName(expression) });
|
|
36
|
+
this._expression = expression;
|
|
37
|
+
if (!isUndefined(parsedExpression)) {
|
|
38
|
+
this.parsedResult = {
|
|
39
|
+
status: true,
|
|
40
|
+
value: parsedExpression
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
this.parsedResult = FlowCoreExpression.parser.parseExpression(expression);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
Object.defineProperty(FlowCoreExpression, "hasCustomFunction", {
|
|
48
|
+
enumerable: false,
|
|
49
|
+
configurable: true,
|
|
50
|
+
writable: true,
|
|
51
|
+
value: function (fn) {
|
|
52
|
+
return !!this.customFunctions[fn];
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(FlowCoreExpression, "registerCustomFunction", {
|
|
56
|
+
enumerable: false,
|
|
57
|
+
configurable: true,
|
|
58
|
+
writable: true,
|
|
59
|
+
value: function (fn) {
|
|
60
|
+
if (fn.initialize)
|
|
61
|
+
fn.initialize();
|
|
62
|
+
this.customFunctions[fn.name] = fn;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(FlowCoreExpression, "parseProgram", {
|
|
66
|
+
enumerable: false,
|
|
67
|
+
configurable: true,
|
|
68
|
+
writable: true,
|
|
69
|
+
value: function (program) {
|
|
70
|
+
var parsedProgram = this.parser.parseProgram(program);
|
|
71
|
+
if (isString(program) && program.length === 0) {
|
|
72
|
+
return {};
|
|
73
|
+
}
|
|
74
|
+
if (parsedProgram.status) {
|
|
75
|
+
var keys = Object.keys(parsedProgram.value);
|
|
76
|
+
var expressions = keys.reduce(function (accum, key) {
|
|
77
|
+
var expr = parsedProgram.value[key];
|
|
78
|
+
var expressionString = program.slice(expr.start.offset, expr.end.offset);
|
|
79
|
+
accum[key] = new FlowCoreExpression(expressionString, expr.expr);
|
|
80
|
+
return accum;
|
|
81
|
+
}, {});
|
|
82
|
+
return expressions;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
throw new FlowCoreExpressionError('program', 'parseError', [
|
|
86
|
+
"expected ".concat(parsedProgram.expected.join(' '), " at line ").concat(parsedProgram.index.line, ", column ").concat(parsedProgram.index.column, "]")
|
|
87
|
+
]);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
Object.defineProperty(FlowCoreExpression.prototype, "maplibreExpression", {
|
|
92
|
+
get: function () {
|
|
93
|
+
if (this.isParseError(this.parsedResult)) {
|
|
94
|
+
throw this.parseError;
|
|
95
|
+
}
|
|
96
|
+
return this.expandCustomFunctions(this.parsedResult.value);
|
|
97
|
+
},
|
|
98
|
+
enumerable: false,
|
|
99
|
+
configurable: true
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(FlowCoreExpression.prototype, "value", {
|
|
102
|
+
get: function () {
|
|
103
|
+
return this.evaluateExpression();
|
|
104
|
+
},
|
|
105
|
+
enumerable: false,
|
|
106
|
+
configurable: true
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(FlowCoreExpression.prototype, "parseError", {
|
|
109
|
+
get: function () {
|
|
110
|
+
if (this.isParseError(this.parsedResult)) {
|
|
111
|
+
return new FlowCoreExpressionError(this._expression, 'parseError', [
|
|
112
|
+
"index: ".concat(this.parsedResult.index.offset),
|
|
113
|
+
"expected: ".concat(this.parsedResult.expected.join(' '))
|
|
114
|
+
]);
|
|
115
|
+
}
|
|
116
|
+
return null;
|
|
117
|
+
},
|
|
118
|
+
enumerable: false,
|
|
119
|
+
configurable: true
|
|
120
|
+
});
|
|
121
|
+
Object.defineProperty(FlowCoreExpression.prototype, "expression", {
|
|
122
|
+
get: function () {
|
|
123
|
+
return this._expression;
|
|
124
|
+
},
|
|
125
|
+
enumerable: false,
|
|
126
|
+
configurable: true
|
|
127
|
+
});
|
|
128
|
+
Object.defineProperty(FlowCoreExpression.prototype, "store", {
|
|
129
|
+
get: function () {
|
|
130
|
+
return this._store;
|
|
131
|
+
},
|
|
132
|
+
enumerable: false,
|
|
133
|
+
configurable: true
|
|
134
|
+
});
|
|
135
|
+
Object.defineProperty(FlowCoreExpression.prototype, "bindState", {
|
|
136
|
+
enumerable: false,
|
|
137
|
+
configurable: true,
|
|
138
|
+
writable: true,
|
|
139
|
+
value: function (store) {
|
|
140
|
+
this._store = store;
|
|
141
|
+
return this;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(FlowCoreExpression.prototype, "toStream", {
|
|
145
|
+
enumerable: false,
|
|
146
|
+
configurable: true,
|
|
147
|
+
writable: true,
|
|
148
|
+
value: function (fireImmediately) {
|
|
149
|
+
var _this = this;
|
|
150
|
+
if (fireImmediately === void 0) { fireImmediately = true; }
|
|
151
|
+
return toStream(function () { return _this.value; }, fireImmediately);
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
Object.defineProperty(FlowCoreExpression.prototype, "evaluateExpression", {
|
|
155
|
+
enumerable: false,
|
|
156
|
+
configurable: true,
|
|
157
|
+
writable: true,
|
|
158
|
+
value: function () {
|
|
159
|
+
var _a = maplibreSpec.expression.createExpression(this.maplibreExpression), result = _a.result, value = _a.value;
|
|
160
|
+
if (result === 'success') {
|
|
161
|
+
return value.evaluate({ zoom: 0 });
|
|
162
|
+
}
|
|
163
|
+
throw new FlowCoreExpressionError(this.expression, 'evaluationError', value.map(function (value) { return value.message; }));
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
Object.defineProperty(FlowCoreExpression.prototype, "expandCustomFunctions", {
|
|
167
|
+
enumerable: false,
|
|
168
|
+
configurable: true,
|
|
169
|
+
writable: true,
|
|
170
|
+
value: function (expr) {
|
|
171
|
+
var _this = this;
|
|
172
|
+
if (this.isFunctionExpression(expr)) {
|
|
173
|
+
var func = expr[0];
|
|
174
|
+
var args = expr.slice(1).map(function (arg) { return _this.expandCustomFunctions(arg); });
|
|
175
|
+
expr = __spreadArray([func], __read(args), false);
|
|
176
|
+
return FlowCoreExpression.hasCustomFunction(func)
|
|
177
|
+
? FlowCoreExpression.customFunctions[func].fn(expr, this)
|
|
178
|
+
: expr;
|
|
179
|
+
}
|
|
180
|
+
return expr;
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(FlowCoreExpression.prototype, "isParseError", {
|
|
184
|
+
enumerable: false,
|
|
185
|
+
configurable: true,
|
|
186
|
+
writable: true,
|
|
187
|
+
value: function (val) {
|
|
188
|
+
return !val.status;
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
Object.defineProperty(FlowCoreExpression.prototype, "isFunctionExpression", {
|
|
192
|
+
enumerable: false,
|
|
193
|
+
configurable: true,
|
|
194
|
+
writable: true,
|
|
195
|
+
value: function (expr) {
|
|
196
|
+
return Array.isArray(expr);
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
Object.defineProperty(FlowCoreExpression.prototype, "formatName", {
|
|
200
|
+
enumerable: false,
|
|
201
|
+
configurable: true,
|
|
202
|
+
writable: true,
|
|
203
|
+
value: function (expr) {
|
|
204
|
+
return "FlowCoreExpression<".concat(expr, ">}");
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
Object.defineProperty(FlowCoreExpression, "parser", {
|
|
208
|
+
enumerable: true,
|
|
209
|
+
configurable: true,
|
|
210
|
+
writable: true,
|
|
211
|
+
value: new FlowCoreParser()
|
|
212
|
+
});
|
|
213
|
+
Object.defineProperty(FlowCoreExpression, "customFunctions", {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
configurable: true,
|
|
216
|
+
writable: true,
|
|
217
|
+
value: {}
|
|
218
|
+
});
|
|
219
|
+
return FlowCoreExpression;
|
|
220
|
+
}());
|
|
221
|
+
export { FlowCoreExpression };
|
|
222
|
+
FlowCoreExpression.registerCustomFunction(customStateFn);
|
|
223
|
+
FlowCoreExpression.registerCustomFunction(customFromPaletteFn);
|
|
224
|
+
//# 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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,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;gBACrB,IAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,UAAC,GAAqB,IAAK,OAAA,KAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAA/B,CAA+B,CAAC,CAAC;gBAC3F,IAAI,kBAAI,IAAI,UAAK,IAAI,SAAC,CAAC;gBAEvB,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,IAAI,CAAC;oBAC/C,CAAC,CAAC,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;oBACzD,CAAC,CAAC,IAAI,CAAC;aACV;YAED,OAAO,IAAI,CAAC;QACd,CAAC;;;;;;eAED,UAAqB,GAAuC;YAC1D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;QACrB,CAAC;;;;;;eAED,UAA6B,IAAsB;YACjD,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;;;;;;eAED,UAAmB,IAAY;YAC7B,OAAO,6BAAsB,IAAI,OAAI,CAAC;QACxC,CAAC;;IArJD;;;;eAAwB,IAAI,cAAc,EAAE;OAAC;IAC7C;;;;eAAoE,EAAE;OAAC;IAqJzE,yBAAC;CAAA,AAvJD,IAuJC;SAvJY,kBAAkB;AA0J/B,kBAAkB,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC;AACzD,kBAAkB,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -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,185 @@
|
|
|
1
|
+
import { __read, __spreadArray } from "tslib";
|
|
2
|
+
import P from 'parsimmon';
|
|
3
|
+
import { PREFIX, BINARY_RIGHT, BINARY_LEFT, TERNARY_RIGHT } from './parser-helpers';
|
|
4
|
+
var FlowCoreParser = (function () {
|
|
5
|
+
function FlowCoreParser() {
|
|
6
|
+
Object.defineProperty(this, "language", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: void 0
|
|
11
|
+
});
|
|
12
|
+
this.language = this.createLanguage();
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(FlowCoreParser.prototype, "parseExpression", {
|
|
15
|
+
enumerable: false,
|
|
16
|
+
configurable: true,
|
|
17
|
+
writable: true,
|
|
18
|
+
value: function (expr) {
|
|
19
|
+
return this.language.Expr.parse(expr);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(FlowCoreParser.prototype, "parseProgram", {
|
|
23
|
+
enumerable: false,
|
|
24
|
+
configurable: true,
|
|
25
|
+
writable: true,
|
|
26
|
+
value: function (program) {
|
|
27
|
+
return this.language.ProgramOrEmpty.parse(program);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(FlowCoreParser.prototype, "createLanguage", {
|
|
31
|
+
enumerable: false,
|
|
32
|
+
configurable: true,
|
|
33
|
+
writable: true,
|
|
34
|
+
value: function () {
|
|
35
|
+
var _this = this;
|
|
36
|
+
var operatorTable = [
|
|
37
|
+
{ type: PREFIX, ops: this.operators({ '-': '-', '!': '!' }) },
|
|
38
|
+
{ type: BINARY_RIGHT, ops: this.operators({ '^': '**' }) },
|
|
39
|
+
{ type: BINARY_LEFT, ops: this.operators({ '*': '*', '/': '/', '%': '%' }) },
|
|
40
|
+
{ type: BINARY_LEFT, ops: this.operators({ '+': '+', '-': '-' }) },
|
|
41
|
+
{ type: BINARY_LEFT, ops: this.operators({ '>=': '>=', '<=': '<=' }) },
|
|
42
|
+
{ type: BINARY_LEFT, ops: this.operators({ '<': '<', '>': '>' }) },
|
|
43
|
+
{ type: BINARY_LEFT, ops: this.operators({ '==': '==', '!=': '!=' }) },
|
|
44
|
+
{ type: BINARY_LEFT, ops: this.operators({ all: '&&' }) },
|
|
45
|
+
{ type: BINARY_LEFT, ops: this.operators({ any: '||' }) },
|
|
46
|
+
{ type: TERNARY_RIGHT, ops: this.operators({ case: '?' }) }
|
|
47
|
+
];
|
|
48
|
+
return P.createLanguage({
|
|
49
|
+
Whitespace: function () { return P.regexp(/[ \n]*/).desc('whitespace'); },
|
|
50
|
+
NotNewline: function () { return P.regexp(/[^\n]*/).desc('non-newline'); },
|
|
51
|
+
LineComment: function (r) { return r.NotNewline.wrap(P.string('//'), P.alt(P.string('\n'), P.eof)); },
|
|
52
|
+
BlockComment: function () { return P.regexp(/\/\*[\s\S]*?\*\//); },
|
|
53
|
+
Comment: function (r) { return P.alt(r.LineComment, r.BlockComment).desc('comment'); },
|
|
54
|
+
End: function () { return P.alt(P.string(';'), P.eof); },
|
|
55
|
+
_: function (r) { return r.Comment.sepBy(r.Whitespace).trim(r.Whitespace); },
|
|
56
|
+
Integer: function () {
|
|
57
|
+
return P.regexp(/-?[0-9]+/).map(Number);
|
|
58
|
+
},
|
|
59
|
+
Decimal: function () {
|
|
60
|
+
return P.regexp(/-?[0-9]+\.[0-9]+/).map(Number);
|
|
61
|
+
},
|
|
62
|
+
Number: function (r) {
|
|
63
|
+
return P.alt(r.Decimal, r.Integer).desc('number');
|
|
64
|
+
},
|
|
65
|
+
Boolean: function () {
|
|
66
|
+
return P.alt(P.string('true'), P.string('false'))
|
|
67
|
+
.map(function (val) { return val === 'true'; })
|
|
68
|
+
.desc('boolean');
|
|
69
|
+
},
|
|
70
|
+
Null: function () {
|
|
71
|
+
return P.string('null')
|
|
72
|
+
.result(null)
|
|
73
|
+
.desc('null');
|
|
74
|
+
},
|
|
75
|
+
DoubleQuoteString: function () {
|
|
76
|
+
return P.regexp(/"((?:\\.|.)*?)"/, 1).desc('string');
|
|
77
|
+
},
|
|
78
|
+
SingleQuoteString: function () {
|
|
79
|
+
return P.regexp(/'((?:\\.|.)*?)'/, 1).desc('string');
|
|
80
|
+
},
|
|
81
|
+
UnquotedString: function () {
|
|
82
|
+
return P.regexp(/[a-zA-Z_][a-zA-Z0-9_-]*/).desc('string');
|
|
83
|
+
},
|
|
84
|
+
HexColor: function () {
|
|
85
|
+
return P.regexp(/#(?:[0-9a-f]{3}){1,2}/i).desc('hex color');
|
|
86
|
+
},
|
|
87
|
+
String: function (r) {
|
|
88
|
+
return P.alt(r.SingleQuoteString, r.DoubleQuoteString, r.HexColor, r.UnquotedString).map(function (s) { return s.replace(/\\n/gm, '\n'); });
|
|
89
|
+
},
|
|
90
|
+
Symbol: function () {
|
|
91
|
+
return P.regexp(/[a-zA-Z_][a-zA-Z0-9_-]*/).desc('symbol');
|
|
92
|
+
},
|
|
93
|
+
PartialSymbol: function () {
|
|
94
|
+
return P.regexp(/[a-zA-Z0-9_-]+/).desc('symbol');
|
|
95
|
+
},
|
|
96
|
+
Feature: function (r) {
|
|
97
|
+
return P.seqMap(P.string('@'), r.PartialSymbol.sepBy(P.string('.')), function (_feat, symbols) { return ['get'].concat(symbols); });
|
|
98
|
+
},
|
|
99
|
+
FeatureState: function (r) {
|
|
100
|
+
return P.seqMap(P.string('@@'), r.PartialSymbol.sepBy(P.string('.')), function (_feat, symbols) { return _this.expandFeatureState(symbols); });
|
|
101
|
+
},
|
|
102
|
+
Array: function (r) {
|
|
103
|
+
return P.string('[')
|
|
104
|
+
.trim(r._)
|
|
105
|
+
.then(r.Value.trim(r._).sepBy(P.string(',')))
|
|
106
|
+
.skip(P.string(']'));
|
|
107
|
+
},
|
|
108
|
+
State: function (r) {
|
|
109
|
+
return P.seqMap(P.string('$'), r.PartialSymbol.sepBy(P.string('.')), function (_state, symbols) { return ['state'].concat(symbols); });
|
|
110
|
+
},
|
|
111
|
+
Paren: function (r) {
|
|
112
|
+
return P.seqMap(P.string('('), r.Expr.trim(r._), P.string(')'), function (_lb, expr, _rb) { return expr; });
|
|
113
|
+
},
|
|
114
|
+
Func: function (r) {
|
|
115
|
+
return P.seqMap(r.Symbol.trim(r._), P.string('('), r.Expr.trim(r._).sepBy(P.string(',')), P.string(')'), function (func, _lb, args, _rb) { return __spreadArray([func], __read(args), false); });
|
|
116
|
+
},
|
|
117
|
+
Value: function (r) {
|
|
118
|
+
return P.alt(r.Paren, r.Array, r.Func, r.Boolean, r.Null, r.Number, r.String, r.FeatureState, r.Feature, r.State);
|
|
119
|
+
},
|
|
120
|
+
Expr: function (r) {
|
|
121
|
+
return _this.tableParser(operatorTable, r.Value);
|
|
122
|
+
},
|
|
123
|
+
PropertyName: function () {
|
|
124
|
+
return P.regexp(/[a-zA-Z_-][a-zA-Z0-9_-]*/).desc('symbol');
|
|
125
|
+
},
|
|
126
|
+
Assignment: function (r) {
|
|
127
|
+
return P.seqMap(r.PropertyName, P.string(':').trim(r._), r.Expr.trim(r._).node('expr'), r.End, function (key, _colon, node) { return [key, { expr: node.value, start: node.start, end: node.end }]; });
|
|
128
|
+
},
|
|
129
|
+
Program: function (r) {
|
|
130
|
+
return r.Assignment.trim(r._)
|
|
131
|
+
.many()
|
|
132
|
+
.map(function (statements) {
|
|
133
|
+
return statements
|
|
134
|
+
.filter(function (s) { return s !== ''; })
|
|
135
|
+
.reduce(function (acc, s) {
|
|
136
|
+
acc[s[0]] = s[1];
|
|
137
|
+
return acc;
|
|
138
|
+
}, {});
|
|
139
|
+
});
|
|
140
|
+
},
|
|
141
|
+
EmptyProgram: function (r) {
|
|
142
|
+
return P.seqMap(r._, P.eof, function () { return null; });
|
|
143
|
+
},
|
|
144
|
+
ProgramOrEmpty: function (r) {
|
|
145
|
+
return P.alt(r.EmptyProgram, r.Program);
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(FlowCoreParser.prototype, "operators", {
|
|
151
|
+
enumerable: false,
|
|
152
|
+
configurable: true,
|
|
153
|
+
writable: true,
|
|
154
|
+
value: function (ops) {
|
|
155
|
+
var keys = Object.keys(ops).sort();
|
|
156
|
+
var ps = keys.map(function (k) {
|
|
157
|
+
return P.string(ops[k])
|
|
158
|
+
.trim(P.optWhitespace)
|
|
159
|
+
.result(k);
|
|
160
|
+
});
|
|
161
|
+
return P.alt.apply(null, ps);
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
Object.defineProperty(FlowCoreParser.prototype, "tableParser", {
|
|
165
|
+
enumerable: false,
|
|
166
|
+
configurable: true,
|
|
167
|
+
writable: true,
|
|
168
|
+
value: function (operatorTable, valueParser) {
|
|
169
|
+
return operatorTable.reduce(function (acc, level) { return level.type(level.ops, acc); }, valueParser);
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
Object.defineProperty(FlowCoreParser.prototype, "expandFeatureState", {
|
|
173
|
+
enumerable: false,
|
|
174
|
+
configurable: true,
|
|
175
|
+
writable: true,
|
|
176
|
+
value: function (symbols) {
|
|
177
|
+
var expandedFeatureState = ['feature-state', symbols.shift()];
|
|
178
|
+
symbols.forEach(function (s) { return expandedFeatureState = ['get', s, expandedFeatureState]; });
|
|
179
|
+
return expandedFeatureState;
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
return FlowCoreParser;
|
|
183
|
+
}());
|
|
184
|
+
export { FlowCoreParser };
|
|
185
|
+
//# 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,kBAAkB,CAAC;AAOpF;IAGE;QAFA;;;;;WAAsC;QAGpC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;IACxC,CAAC;;;;;eAOD,UAAgB,IAAY;YAC1B,OAAO,IAAI,CAAC,QAAQ,CAAC,IA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CAAC,CAAC,CAAC,CAAC;qBACb,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC;qBACrB,MAAM,CAAC,CAAC,CAAC;YAFZ,CAEY,CACb,CAAC;YAEF,OAAO,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC/B,CAAC;;;;;;eAMD,UAAoB,aAAkB,EAAE,WAA0B;YAChE,OAAO,aAAa,CAAC,MAAM,CAAC,UAAC,GAAQ,EAAE,KAAU,IAAK,OAAA,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,EAA1B,CAA0B,EAAE,WAAW,CAAC,CAAC;QACjG,CAAC;;;;;;eAED,UAA2B,OAAiB;YAC1C,IAAI,oBAAoB,GAAU,CAAC,eAAe,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;YACrE,OAAO,CAAC,OAAO,CAAC,UAAA,CAAC,IAAI,OAAA,oBAAoB,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,oBAAoB,CAAC,EAAvD,CAAuD,CAAC,CAAC;YAC9E,OAAO,oBAAoB,CAAC;QAC9B,CAAC;;IACH,qBAAC;AAAD,CAAC,AAxLD,IAwLC"}
|
|
@@ -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,75 @@
|
|
|
1
|
+
import colorbrewer from 'colorbrewer';
|
|
2
|
+
import { isArray, isString } from '../../utils';
|
|
3
|
+
import { FlowCoreExpressionError } from '../../errors';
|
|
4
|
+
var palettes = {};
|
|
5
|
+
function registerColorBrewerPalettes() {
|
|
6
|
+
Object.keys(colorbrewer)
|
|
7
|
+
.filter(function (key) { return key !== 'schemeGroups'; })
|
|
8
|
+
.forEach(function (key) {
|
|
9
|
+
return (palettes[key] = {
|
|
10
|
+
id: key,
|
|
11
|
+
colors: colorbrewer[key][5]
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function fromPalette(expr, parentExpression) {
|
|
16
|
+
var _a;
|
|
17
|
+
var paletteIdOrArray = expr[1];
|
|
18
|
+
var property = expr[2];
|
|
19
|
+
var colorStops = expr.slice(3);
|
|
20
|
+
var paletteId;
|
|
21
|
+
var palette;
|
|
22
|
+
if (isString(paletteIdOrArray)) {
|
|
23
|
+
paletteId = paletteIdOrArray;
|
|
24
|
+
palette = ((_a = palettes[paletteIdOrArray]) === null || _a === void 0 ? void 0 : _a.colors) || palettes['Greys'].colors;
|
|
25
|
+
}
|
|
26
|
+
else if (isArray(paletteIdOrArray) && paletteIdOrArray[0] === 'literal') {
|
|
27
|
+
paletteId = 'custom';
|
|
28
|
+
palette = paletteIdOrArray[1];
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
throw new FlowCoreExpressionError(parentExpression.expression, 'evaluationError', ['from-palette requires palette id as string or custom palette array']);
|
|
32
|
+
}
|
|
33
|
+
var numPaletteEntries = palette.length;
|
|
34
|
+
var reversePalette = false;
|
|
35
|
+
if (numPaletteEntries < 5) {
|
|
36
|
+
throw new FlowCoreExpressionError(parentExpression.expression, 'evaluationError', ['custom palette requires at least 5 color entries']);
|
|
37
|
+
}
|
|
38
|
+
switch (colorStops.length) {
|
|
39
|
+
case 2:
|
|
40
|
+
break;
|
|
41
|
+
case 3:
|
|
42
|
+
reversePalette = !!colorStops[2];
|
|
43
|
+
colorStops = colorStops.slice(0, 2);
|
|
44
|
+
break;
|
|
45
|
+
case numPaletteEntries:
|
|
46
|
+
break;
|
|
47
|
+
case numPaletteEntries + 1:
|
|
48
|
+
reversePalette = !!colorStops[numPaletteEntries];
|
|
49
|
+
colorStops = colorStops.slice(0, numPaletteEntries);
|
|
50
|
+
break;
|
|
51
|
+
default:
|
|
52
|
+
throw new FlowCoreExpressionError(parentExpression.expression, 'evaluationError', ['incorrect color stop arguments']);
|
|
53
|
+
}
|
|
54
|
+
if (colorStops.length === 2) {
|
|
55
|
+
var min = colorStops[0];
|
|
56
|
+
var max = colorStops[1];
|
|
57
|
+
colorStops = [];
|
|
58
|
+
var step = (max - min) / (numPaletteEntries - 1);
|
|
59
|
+
for (var i = 0; i < numPaletteEntries; i++) {
|
|
60
|
+
colorStops.push(min + i * step);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
expr = ['interpolate-lab', ['linear'], property];
|
|
64
|
+
for (var i = 0; i < colorStops.length; i++) {
|
|
65
|
+
expr.push(colorStops[i]);
|
|
66
|
+
expr.push(reversePalette ? palette[colorStops.length - i - 1] : palette[i]);
|
|
67
|
+
}
|
|
68
|
+
return expr;
|
|
69
|
+
}
|
|
70
|
+
export default {
|
|
71
|
+
name: 'from-palette',
|
|
72
|
+
initialize: registerColorBrewerPalettes,
|
|
73
|
+
fn: fromPalette
|
|
74
|
+
};
|
|
75
|
+
//# 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,IAAM,QAAQ,GAAa,EAAE,CAAC;AAE9B,SAAS,2BAA2B;IAClC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;SACrB,MAAM,CAAC,UAAC,GAAW,IAAK,OAAA,GAAG,KAAK,cAAc,EAAtB,CAAsB,CAAC;SAC/C,OAAO,CACN,UAAC,GAAG;QACF,OAAA,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG;YACf,EAAE,EAAE,GAAG;YACP,MAAM,EAAG,WAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;SACrC,CAAC;IAHF,CAGE,CACL,CAAC;AACN,CAAC;AAED,SAAS,WAAW,CAClB,IAA8B,EAC9B,gBAAoC;;IAEpC,IAAM,gBAAgB,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IACjC,IAAM,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IACzB,IAAI,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAE/B,IAAI,SAAiB,CAAC;IACtB,IAAI,OAAiB,CAAC;IACtB,IAAI,QAAQ,CAAC,gBAAgB,CAAC,EAAE;QAC9B,SAAS,GAAG,gBAAgB,CAAC;QAC7B,OAAO,GAAG,CAAA,MAAA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QAE3B,IAAM,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;QAC1B,IAAM,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;QAE1B,UAAU,GAAG,EAAE,CAAC;QAChB,IAAM,IAAI,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC;QAEnD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,iBAAiB,EAAE,CAAC,EAAE,EAAE;YAC1C,UAAU,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;SACjC;KACF;IAED,IAAI,GAAG,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC;IAEjD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAC1C,IAAI,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
|
+
var path = expr.slice(1).join('.');
|
|
8
|
+
var 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,IAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACrC,IAAM,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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/flow-core-expression/index.ts"],"names":[],"mappings":"AACA,cAAc,wBAAwB,CAAC"}
|
|
@@ -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,29 @@
|
|
|
1
|
+
import { __read } from "tslib";
|
|
2
|
+
import P from 'parsimmon';
|
|
3
|
+
export function PREFIX(operatorsParser, nextParser) {
|
|
4
|
+
var parser = P.lazy(function () {
|
|
5
|
+
return P.seq(operatorsParser, parser).or(nextParser);
|
|
6
|
+
});
|
|
7
|
+
return parser;
|
|
8
|
+
}
|
|
9
|
+
export function BINARY_RIGHT(operatorsParser, nextParser) {
|
|
10
|
+
var parser = P.lazy(function () { return nextParser.chain(function (next) { return P.seq(operatorsParser, P.of(next), parser).or(P.of(next)); }); });
|
|
11
|
+
return parser;
|
|
12
|
+
}
|
|
13
|
+
export function TERNARY_RIGHT(operatorsParser, nextParser) {
|
|
14
|
+
var parser = P.lazy(function () {
|
|
15
|
+
return nextParser.chain(function (next) {
|
|
16
|
+
return P.seqMap(operatorsParser, P.of(next), parser, P.string(':').trim(P.optWhitespace), parser, function (op, cond, val1, _colon, val2) { return [op, ['to-boolean', cond], val1, val2]; }).or(P.of(next));
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
return parser;
|
|
20
|
+
}
|
|
21
|
+
export function BINARY_LEFT(operatorsParser, nextParser) {
|
|
22
|
+
return P.seqMap(nextParser, P.seq(operatorsParser, nextParser).many(), function (first, rest) {
|
|
23
|
+
return rest.reduce(function (acc, ch) {
|
|
24
|
+
var _a = __read(ch, 2), op = _a[0], another = _a[1];
|
|
25
|
+
return [op, acc, another];
|
|
26
|
+
}, first);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//# 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,eAA8B,EAAE,UAAyB;IAC9E,IAAM,MAAM,GAAmB,CAAC,CAAC,IAAI,CAAC;QACpC,OAAO,CAAC,CAAC,GAAG,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC,CAAC,CAA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