@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.
- 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/flow-rdf-core.css +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 +81 -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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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CAAC;IACJ,CAAC;IAEO,qBAAqB,CAAC,IAAsB;QAClD,IAAI,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE;YAEnC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YACrB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAqB,EAAE,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 @@
|
|
|
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,E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ACF,CAAC,CAAC;IACL,CAAC;IAOO,SAAS,CAAC,GAA8B;QAC9C,MAAM,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,EAAE,EAAE,CAAC,GAAG,KAAK,cAAc,CAAC;SAC/C,OAAO,CACN,CAAC,GAAG,EAAE,EAAE,CACN,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG;QACf,EAAE,EAAE,GAAG;QACP,MAAM,EAAG,WAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACrC,CAAC,CACL,CAAC;AACN,CAAC;AAED,SAAS,WAAW,CAClB,IAA8B,EAC9B,gBAAoC;;IAEpC,MAAM,gBAAgB,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IACjC,MAAM,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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AAC,UAAU,EAAE,iBAAiB,EAAE,CAAC,gCAAgC,CAAC,CAAC,CAAC;KACzH;IAED,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;QAE3B,MAAM,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;QAC1B,MAAM,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;QAE1B,UAAU,GAAG,EAAE,CAAC;QAChB,MAAM,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
|
+
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 @@
|
|
|
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,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,eAA8B,EAAE,UAAyB;IAC9E,MAAM,MAAM,GAAmB,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;QACzC,OAAO,CAAC,CAAC,GAAG,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC,CAAC,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