@feltmaps/js-sdk 1.5.0-next.6 → 1.5.0-next.8
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/client.cjs +1 -1
- package/dist/client.d.cts +138 -11
- package/dist/client.d.ts +138 -11
- package/dist/client.js +1 -1
- package/dist/handler.cjs +1 -1
- package/dist/handler.d.cts +120 -31
- package/dist/handler.d.ts +120 -31
- package/dist/handler.js +1 -1
- package/dist/{types-CQwkpLq-.d.cts → types-BXCTpxot.d.cts} +177 -14
- package/dist/{types-CQwkpLq-.d.ts → types-BXCTpxot.d.ts} +177 -14
- package/handler.d.ts +120 -31
- package/handler.js +1 -1
- package/package.json +1 -1
- package/{types-CQwkpLq-.d.ts → types-BXCTpxot.d.ts} +177 -14
package/dist/handler.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as zod from 'zod';
|
|
2
1
|
import { z } from 'zod';
|
|
3
|
-
import { J as zInfer, E as Element, G as Geometry, b as ElementGroup, d as ElementChangeCallbackParams, e as ElementGroupChangeCallbackParams, M as MapInteractionEvent, L as Layer, j as LayerGroup, n as LegendItem, q as LayerFilters, s as Feature, u as GetLayerCategoriesGroup, w as GetLayerHistogramBin, A as AggregationMethod, i as LayerChangeCallbackParams, l as LayerGroupChangeCallbackParams, p as LegendItemChangeCallbackParams,
|
|
2
|
+
import { J as zInfer, E as Element, G as Geometry, b as ElementGroup, d as ElementChangeCallbackParams, e as ElementGroupChangeCallbackParams, M as MapInteractionEvent, L as Layer, j as LayerGroup, n as LegendItem, q as LayerFilters, s as Feature, u as GetLayerCategoriesGroup, w as GetLayerHistogramBin, A as AggregationMethod, i as LayerChangeCallbackParams, l as LayerGroupChangeCallbackParams, p as LegendItemChangeCallbackParams, ao as FilterTernary, y as MapDetails, z as EntityNode, T as ToolType, D as ToolSettingsMap, H as ToolSettingsChangeEvent, V as ViewportState, O as ViewportConstraints, aS as UnionToIntersection, aT as PromiseOrNot } from './types-BXCTpxot.cjs';
|
|
4
3
|
|
|
5
4
|
type Method<TRequest extends {
|
|
6
5
|
type: string;
|
|
@@ -1429,6 +1428,9 @@ type ElementsSchema = {
|
|
|
1429
1428
|
onElementChange: Listener<zInfer<typeof OnElementChangeMessage.shape.options>, ElementChangeCallbackParams>;
|
|
1430
1429
|
onElementGroupChange: Listener<zInfer<typeof OnElementGroupChangeMessage.shape.options>, ElementGroupChangeCallbackParams>;
|
|
1431
1430
|
onElementCreate: ListenerNoOptions<ElementChangeCallbackParams>;
|
|
1431
|
+
onElementCreateEnd: ListenerNoOptions<{
|
|
1432
|
+
element: Element;
|
|
1433
|
+
}>;
|
|
1432
1434
|
onElementDelete: Listener<zInfer<typeof OnElementDeleteMessage.shape.options>, void>;
|
|
1433
1435
|
};
|
|
1434
1436
|
};
|
|
@@ -1886,6 +1888,29 @@ declare const SetFiltersMessage: z.ZodObject<{
|
|
|
1886
1888
|
};
|
|
1887
1889
|
type: "setLayerFilters";
|
|
1888
1890
|
}>;
|
|
1891
|
+
declare const OnLayerFiltersChangeMessage: z.ZodObject<{
|
|
1892
|
+
eventName: z.ZodLiteral<"onLayerFiltersChange">;
|
|
1893
|
+
id: z.ZodString;
|
|
1894
|
+
options: z.ZodObject<{
|
|
1895
|
+
layerId: z.ZodString;
|
|
1896
|
+
}, "strip", z.ZodTypeAny, {
|
|
1897
|
+
layerId: string;
|
|
1898
|
+
}, {
|
|
1899
|
+
layerId: string;
|
|
1900
|
+
}>;
|
|
1901
|
+
}, "strict", z.ZodTypeAny, {
|
|
1902
|
+
options: {
|
|
1903
|
+
layerId: string;
|
|
1904
|
+
};
|
|
1905
|
+
id: string;
|
|
1906
|
+
eventName: "onLayerFiltersChange";
|
|
1907
|
+
}, {
|
|
1908
|
+
options: {
|
|
1909
|
+
layerId: string;
|
|
1910
|
+
};
|
|
1911
|
+
id: string;
|
|
1912
|
+
eventName: "onLayerFiltersChange";
|
|
1913
|
+
}>;
|
|
1889
1914
|
declare const GetRenderedFeaturesMessage: z.ZodObject<{
|
|
1890
1915
|
type: z.ZodLiteral<"getRenderedFeatures">;
|
|
1891
1916
|
params: z.ZodOptional<z.ZodObject<{
|
|
@@ -2027,8 +2052,8 @@ declare const GetLayerCategoriesMessage: z.ZodObject<{
|
|
|
2027
2052
|
} | undefined;
|
|
2028
2053
|
}>>;
|
|
2029
2054
|
}, "strip", z.ZodTypeAny, {
|
|
2030
|
-
layerId: string;
|
|
2031
2055
|
attribute: string;
|
|
2056
|
+
layerId: string;
|
|
2032
2057
|
values?: {
|
|
2033
2058
|
boundary?: [number, number][] | {
|
|
2034
2059
|
type: "Polygon";
|
|
@@ -2047,8 +2072,8 @@ declare const GetLayerCategoriesMessage: z.ZodObject<{
|
|
|
2047
2072
|
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2048
2073
|
limit?: number | undefined;
|
|
2049
2074
|
}, {
|
|
2050
|
-
layerId: string;
|
|
2051
2075
|
attribute: string;
|
|
2076
|
+
layerId: string;
|
|
2052
2077
|
values?: {
|
|
2053
2078
|
boundary?: [number, number][] | {
|
|
2054
2079
|
type: "Polygon";
|
|
@@ -2069,8 +2094,8 @@ declare const GetLayerCategoriesMessage: z.ZodObject<{
|
|
|
2069
2094
|
}>;
|
|
2070
2095
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2071
2096
|
params: {
|
|
2072
|
-
layerId: string;
|
|
2073
2097
|
attribute: string;
|
|
2098
|
+
layerId: string;
|
|
2074
2099
|
values?: {
|
|
2075
2100
|
boundary?: [number, number][] | {
|
|
2076
2101
|
type: "Polygon";
|
|
@@ -2092,8 +2117,8 @@ declare const GetLayerCategoriesMessage: z.ZodObject<{
|
|
|
2092
2117
|
type: "getCategoryData";
|
|
2093
2118
|
}, {
|
|
2094
2119
|
params: {
|
|
2095
|
-
layerId: string;
|
|
2096
2120
|
attribute: string;
|
|
2121
|
+
layerId: string;
|
|
2097
2122
|
values?: {
|
|
2098
2123
|
boundary?: [number, number][] | {
|
|
2099
2124
|
type: "Polygon";
|
|
@@ -2193,8 +2218,8 @@ declare const GetLayerHistogramMessage: z.ZodObject<{
|
|
|
2193
2218
|
} | undefined;
|
|
2194
2219
|
}>>;
|
|
2195
2220
|
}, "strip", z.ZodTypeAny, {
|
|
2196
|
-
layerId: string;
|
|
2197
2221
|
attribute: string;
|
|
2222
|
+
layerId: string;
|
|
2198
2223
|
steps: number[] | {
|
|
2199
2224
|
type: "equal-intervals";
|
|
2200
2225
|
count: number;
|
|
@@ -2219,8 +2244,8 @@ declare const GetLayerHistogramMessage: z.ZodObject<{
|
|
|
2219
2244
|
} | [number, number, number, number] | undefined;
|
|
2220
2245
|
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2221
2246
|
}, {
|
|
2222
|
-
layerId: string;
|
|
2223
2247
|
attribute: string;
|
|
2248
|
+
layerId: string;
|
|
2224
2249
|
steps: number[] | {
|
|
2225
2250
|
type: "equal-intervals";
|
|
2226
2251
|
count: number;
|
|
@@ -2247,8 +2272,8 @@ declare const GetLayerHistogramMessage: z.ZodObject<{
|
|
|
2247
2272
|
}>;
|
|
2248
2273
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2249
2274
|
params: {
|
|
2250
|
-
layerId: string;
|
|
2251
2275
|
attribute: string;
|
|
2276
|
+
layerId: string;
|
|
2252
2277
|
steps: number[] | {
|
|
2253
2278
|
type: "equal-intervals";
|
|
2254
2279
|
count: number;
|
|
@@ -2276,8 +2301,8 @@ declare const GetLayerHistogramMessage: z.ZodObject<{
|
|
|
2276
2301
|
type: "getHistogramData";
|
|
2277
2302
|
}, {
|
|
2278
2303
|
params: {
|
|
2279
|
-
layerId: string;
|
|
2280
2304
|
attribute: string;
|
|
2305
|
+
layerId: string;
|
|
2281
2306
|
steps: number[] | {
|
|
2282
2307
|
type: "equal-intervals";
|
|
2283
2308
|
count: number;
|
|
@@ -2406,6 +2431,7 @@ type LayersSchema = {
|
|
|
2406
2431
|
onLayerChange: Listener<zInfer<typeof OnLayerChangeMessage.shape.options>, LayerChangeCallbackParams>;
|
|
2407
2432
|
onLayerGroupChange: Listener<zInfer<typeof OnLayerGroupChangeMessage.shape.options>, LayerGroupChangeCallbackParams>;
|
|
2408
2433
|
onLegendItemChange: Listener<zInfer<typeof OnLegendItemChangeMessage.shape.options>, LegendItemChangeCallbackParams>;
|
|
2434
|
+
onLayerFiltersChange: Listener<zInfer<typeof OnLayerFiltersChangeMessage.shape.options>, LayerFilters>;
|
|
2409
2435
|
};
|
|
2410
2436
|
};
|
|
2411
2437
|
|
|
@@ -2549,6 +2575,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
2549
2575
|
symbol: z.ZodOptional<z.ZodString>;
|
|
2550
2576
|
color: z.ZodOptional<z.ZodString>;
|
|
2551
2577
|
frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
|
|
2578
|
+
afterCreation: z.ZodOptional<z.ZodEnum<["enter name", "add another", "select"]>>;
|
|
2552
2579
|
}, {
|
|
2553
2580
|
tool: z.ZodLiteral<"pin">;
|
|
2554
2581
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -2556,11 +2583,13 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
2556
2583
|
symbol?: string | undefined;
|
|
2557
2584
|
color?: string | undefined;
|
|
2558
2585
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
2586
|
+
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
2559
2587
|
}, {
|
|
2560
2588
|
tool: "pin";
|
|
2561
2589
|
symbol?: string | undefined;
|
|
2562
2590
|
color?: string | undefined;
|
|
2563
2591
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
2592
|
+
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
2564
2593
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2565
2594
|
color: z.ZodOptional<z.ZodString>;
|
|
2566
2595
|
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2732,6 +2761,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
2732
2761
|
symbol?: string | undefined;
|
|
2733
2762
|
color?: string | undefined;
|
|
2734
2763
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
2764
|
+
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
2735
2765
|
} | {
|
|
2736
2766
|
tool: "line";
|
|
2737
2767
|
color?: string | undefined;
|
|
@@ -2792,6 +2822,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
2792
2822
|
symbol?: string | undefined;
|
|
2793
2823
|
color?: string | undefined;
|
|
2794
2824
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
2825
|
+
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
2795
2826
|
} | {
|
|
2796
2827
|
tool: "line";
|
|
2797
2828
|
color?: string | undefined;
|
|
@@ -2870,16 +2901,16 @@ type ToolsSchema = {
|
|
|
2870
2901
|
};
|
|
2871
2902
|
};
|
|
2872
2903
|
|
|
2873
|
-
declare const UiControlsMessage:
|
|
2874
|
-
type:
|
|
2875
|
-
params:
|
|
2876
|
-
showLegend:
|
|
2877
|
-
cooperativeGestures:
|
|
2878
|
-
fullScreenButton:
|
|
2879
|
-
geolocation:
|
|
2880
|
-
zoomControls:
|
|
2881
|
-
scaleBar:
|
|
2882
|
-
}, "strip",
|
|
2904
|
+
declare const UiControlsMessage: z.ZodObject<{
|
|
2905
|
+
type: z.ZodLiteral<"updateUiControls">;
|
|
2906
|
+
params: z.ZodObject<{
|
|
2907
|
+
showLegend: z.ZodOptional<z.ZodBoolean>;
|
|
2908
|
+
cooperativeGestures: z.ZodOptional<z.ZodBoolean>;
|
|
2909
|
+
fullScreenButton: z.ZodOptional<z.ZodBoolean>;
|
|
2910
|
+
geolocation: z.ZodOptional<z.ZodBoolean>;
|
|
2911
|
+
zoomControls: z.ZodOptional<z.ZodBoolean>;
|
|
2912
|
+
scaleBar: z.ZodOptional<z.ZodBoolean>;
|
|
2913
|
+
}, "strip", z.ZodTypeAny, {
|
|
2883
2914
|
showLegend?: boolean | undefined;
|
|
2884
2915
|
cooperativeGestures?: boolean | undefined;
|
|
2885
2916
|
fullScreenButton?: boolean | undefined;
|
|
@@ -2894,7 +2925,7 @@ declare const UiControlsMessage: zod.ZodObject<{
|
|
|
2894
2925
|
zoomControls?: boolean | undefined;
|
|
2895
2926
|
scaleBar?: boolean | undefined;
|
|
2896
2927
|
}>;
|
|
2897
|
-
},
|
|
2928
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2898
2929
|
params: {
|
|
2899
2930
|
showLegend?: boolean | undefined;
|
|
2900
2931
|
cooperativeGestures?: boolean | undefined;
|
|
@@ -2915,15 +2946,15 @@ declare const UiControlsMessage: zod.ZodObject<{
|
|
|
2915
2946
|
};
|
|
2916
2947
|
type: "updateUiControls";
|
|
2917
2948
|
}>;
|
|
2918
|
-
declare const OnMapInteractionsMessage:
|
|
2919
|
-
type:
|
|
2920
|
-
params:
|
|
2921
|
-
featureSelectPanel:
|
|
2922
|
-
featureHoverPanel:
|
|
2923
|
-
elementSelectPanel:
|
|
2924
|
-
linkClickOpen:
|
|
2925
|
-
imageLightboxOpen:
|
|
2926
|
-
}, "strip",
|
|
2949
|
+
declare const OnMapInteractionsMessage: z.ZodObject<{
|
|
2950
|
+
type: z.ZodLiteral<"setOnMapInteractionsUi">;
|
|
2951
|
+
params: z.ZodObject<{
|
|
2952
|
+
featureSelectPanel: z.ZodOptional<z.ZodBoolean>;
|
|
2953
|
+
featureHoverPanel: z.ZodOptional<z.ZodBoolean>;
|
|
2954
|
+
elementSelectPanel: z.ZodOptional<z.ZodBoolean>;
|
|
2955
|
+
linkClickOpen: z.ZodOptional<z.ZodBoolean>;
|
|
2956
|
+
imageLightboxOpen: z.ZodOptional<z.ZodBoolean>;
|
|
2957
|
+
}, "strip", z.ZodTypeAny, {
|
|
2927
2958
|
featureSelectPanel?: boolean | undefined;
|
|
2928
2959
|
featureHoverPanel?: boolean | undefined;
|
|
2929
2960
|
elementSelectPanel?: boolean | undefined;
|
|
@@ -2936,7 +2967,7 @@ declare const OnMapInteractionsMessage: zod.ZodObject<{
|
|
|
2936
2967
|
linkClickOpen?: boolean | undefined;
|
|
2937
2968
|
imageLightboxOpen?: boolean | undefined;
|
|
2938
2969
|
}>;
|
|
2939
|
-
},
|
|
2970
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2940
2971
|
params: {
|
|
2941
2972
|
featureSelectPanel?: boolean | undefined;
|
|
2942
2973
|
featureHoverPanel?: boolean | undefined;
|
|
@@ -2955,10 +2986,68 @@ declare const OnMapInteractionsMessage: zod.ZodObject<{
|
|
|
2955
2986
|
};
|
|
2956
2987
|
type: "setOnMapInteractionsUi";
|
|
2957
2988
|
}>;
|
|
2989
|
+
declare const ShowLayerDataTableMessage: z.ZodObject<{
|
|
2990
|
+
type: z.ZodLiteral<"showLayerDataTable">;
|
|
2991
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
2992
|
+
layerId: z.ZodString;
|
|
2993
|
+
sorting: z.ZodOptional<z.ZodObject<{
|
|
2994
|
+
attribute: z.ZodString;
|
|
2995
|
+
direction: z.ZodEnum<["asc", "desc"]>;
|
|
2996
|
+
}, "strip", z.ZodTypeAny, {
|
|
2997
|
+
attribute: string;
|
|
2998
|
+
direction: "asc" | "desc";
|
|
2999
|
+
}, {
|
|
3000
|
+
attribute: string;
|
|
3001
|
+
direction: "asc" | "desc";
|
|
3002
|
+
}>>;
|
|
3003
|
+
}, "strip", z.ZodTypeAny, {
|
|
3004
|
+
layerId: string;
|
|
3005
|
+
sorting?: {
|
|
3006
|
+
attribute: string;
|
|
3007
|
+
direction: "asc" | "desc";
|
|
3008
|
+
} | undefined;
|
|
3009
|
+
}, {
|
|
3010
|
+
layerId: string;
|
|
3011
|
+
sorting?: {
|
|
3012
|
+
attribute: string;
|
|
3013
|
+
direction: "asc" | "desc";
|
|
3014
|
+
} | undefined;
|
|
3015
|
+
}>>;
|
|
3016
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
3017
|
+
type: "showLayerDataTable";
|
|
3018
|
+
params?: {
|
|
3019
|
+
layerId: string;
|
|
3020
|
+
sorting?: {
|
|
3021
|
+
attribute: string;
|
|
3022
|
+
direction: "asc" | "desc";
|
|
3023
|
+
} | undefined;
|
|
3024
|
+
} | undefined;
|
|
3025
|
+
}, {
|
|
3026
|
+
type: "showLayerDataTable";
|
|
3027
|
+
params?: {
|
|
3028
|
+
layerId: string;
|
|
3029
|
+
sorting?: {
|
|
3030
|
+
attribute: string;
|
|
3031
|
+
direction: "asc" | "desc";
|
|
3032
|
+
} | undefined;
|
|
3033
|
+
} | undefined;
|
|
3034
|
+
}>;
|
|
3035
|
+
declare const HideLayerDataTableMessage: z.ZodObject<{
|
|
3036
|
+
type: z.ZodLiteral<"hideLayerDataTable">;
|
|
3037
|
+
params: z.ZodUndefined;
|
|
3038
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
3039
|
+
type: "hideLayerDataTable";
|
|
3040
|
+
params?: undefined;
|
|
3041
|
+
}, {
|
|
3042
|
+
type: "hideLayerDataTable";
|
|
3043
|
+
params?: undefined;
|
|
3044
|
+
}>;
|
|
2958
3045
|
type UiSchema = {
|
|
2959
3046
|
methods: {
|
|
2960
3047
|
updateUiControls: Method<zInfer<typeof UiControlsMessage>, void>;
|
|
2961
3048
|
setOnMapInteractionsUi: Method<zInfer<typeof OnMapInteractionsMessage>, void>;
|
|
3049
|
+
showLayerDataTable: Method<zInfer<typeof ShowLayerDataTableMessage>, void>;
|
|
3050
|
+
hideLayerDataTable: Method<zInfer<typeof HideLayerDataTableMessage>, void>;
|
|
2962
3051
|
};
|
|
2963
3052
|
listeners: {};
|
|
2964
3053
|
};
|
package/dist/handler.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as zod from 'zod';
|
|
2
1
|
import { z } from 'zod';
|
|
3
|
-
import { J as zInfer, E as Element, G as Geometry, b as ElementGroup, d as ElementChangeCallbackParams, e as ElementGroupChangeCallbackParams, M as MapInteractionEvent, L as Layer, j as LayerGroup, n as LegendItem, q as LayerFilters, s as Feature, u as GetLayerCategoriesGroup, w as GetLayerHistogramBin, A as AggregationMethod, i as LayerChangeCallbackParams, l as LayerGroupChangeCallbackParams, p as LegendItemChangeCallbackParams,
|
|
2
|
+
import { J as zInfer, E as Element, G as Geometry, b as ElementGroup, d as ElementChangeCallbackParams, e as ElementGroupChangeCallbackParams, M as MapInteractionEvent, L as Layer, j as LayerGroup, n as LegendItem, q as LayerFilters, s as Feature, u as GetLayerCategoriesGroup, w as GetLayerHistogramBin, A as AggregationMethod, i as LayerChangeCallbackParams, l as LayerGroupChangeCallbackParams, p as LegendItemChangeCallbackParams, ao as FilterTernary, y as MapDetails, z as EntityNode, T as ToolType, D as ToolSettingsMap, H as ToolSettingsChangeEvent, V as ViewportState, O as ViewportConstraints, aS as UnionToIntersection, aT as PromiseOrNot } from './types-BXCTpxot.js';
|
|
4
3
|
|
|
5
4
|
type Method<TRequest extends {
|
|
6
5
|
type: string;
|
|
@@ -1429,6 +1428,9 @@ type ElementsSchema = {
|
|
|
1429
1428
|
onElementChange: Listener<zInfer<typeof OnElementChangeMessage.shape.options>, ElementChangeCallbackParams>;
|
|
1430
1429
|
onElementGroupChange: Listener<zInfer<typeof OnElementGroupChangeMessage.shape.options>, ElementGroupChangeCallbackParams>;
|
|
1431
1430
|
onElementCreate: ListenerNoOptions<ElementChangeCallbackParams>;
|
|
1431
|
+
onElementCreateEnd: ListenerNoOptions<{
|
|
1432
|
+
element: Element;
|
|
1433
|
+
}>;
|
|
1432
1434
|
onElementDelete: Listener<zInfer<typeof OnElementDeleteMessage.shape.options>, void>;
|
|
1433
1435
|
};
|
|
1434
1436
|
};
|
|
@@ -1886,6 +1888,29 @@ declare const SetFiltersMessage: z.ZodObject<{
|
|
|
1886
1888
|
};
|
|
1887
1889
|
type: "setLayerFilters";
|
|
1888
1890
|
}>;
|
|
1891
|
+
declare const OnLayerFiltersChangeMessage: z.ZodObject<{
|
|
1892
|
+
eventName: z.ZodLiteral<"onLayerFiltersChange">;
|
|
1893
|
+
id: z.ZodString;
|
|
1894
|
+
options: z.ZodObject<{
|
|
1895
|
+
layerId: z.ZodString;
|
|
1896
|
+
}, "strip", z.ZodTypeAny, {
|
|
1897
|
+
layerId: string;
|
|
1898
|
+
}, {
|
|
1899
|
+
layerId: string;
|
|
1900
|
+
}>;
|
|
1901
|
+
}, "strict", z.ZodTypeAny, {
|
|
1902
|
+
options: {
|
|
1903
|
+
layerId: string;
|
|
1904
|
+
};
|
|
1905
|
+
id: string;
|
|
1906
|
+
eventName: "onLayerFiltersChange";
|
|
1907
|
+
}, {
|
|
1908
|
+
options: {
|
|
1909
|
+
layerId: string;
|
|
1910
|
+
};
|
|
1911
|
+
id: string;
|
|
1912
|
+
eventName: "onLayerFiltersChange";
|
|
1913
|
+
}>;
|
|
1889
1914
|
declare const GetRenderedFeaturesMessage: z.ZodObject<{
|
|
1890
1915
|
type: z.ZodLiteral<"getRenderedFeatures">;
|
|
1891
1916
|
params: z.ZodOptional<z.ZodObject<{
|
|
@@ -2027,8 +2052,8 @@ declare const GetLayerCategoriesMessage: z.ZodObject<{
|
|
|
2027
2052
|
} | undefined;
|
|
2028
2053
|
}>>;
|
|
2029
2054
|
}, "strip", z.ZodTypeAny, {
|
|
2030
|
-
layerId: string;
|
|
2031
2055
|
attribute: string;
|
|
2056
|
+
layerId: string;
|
|
2032
2057
|
values?: {
|
|
2033
2058
|
boundary?: [number, number][] | {
|
|
2034
2059
|
type: "Polygon";
|
|
@@ -2047,8 +2072,8 @@ declare const GetLayerCategoriesMessage: z.ZodObject<{
|
|
|
2047
2072
|
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2048
2073
|
limit?: number | undefined;
|
|
2049
2074
|
}, {
|
|
2050
|
-
layerId: string;
|
|
2051
2075
|
attribute: string;
|
|
2076
|
+
layerId: string;
|
|
2052
2077
|
values?: {
|
|
2053
2078
|
boundary?: [number, number][] | {
|
|
2054
2079
|
type: "Polygon";
|
|
@@ -2069,8 +2094,8 @@ declare const GetLayerCategoriesMessage: z.ZodObject<{
|
|
|
2069
2094
|
}>;
|
|
2070
2095
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2071
2096
|
params: {
|
|
2072
|
-
layerId: string;
|
|
2073
2097
|
attribute: string;
|
|
2098
|
+
layerId: string;
|
|
2074
2099
|
values?: {
|
|
2075
2100
|
boundary?: [number, number][] | {
|
|
2076
2101
|
type: "Polygon";
|
|
@@ -2092,8 +2117,8 @@ declare const GetLayerCategoriesMessage: z.ZodObject<{
|
|
|
2092
2117
|
type: "getCategoryData";
|
|
2093
2118
|
}, {
|
|
2094
2119
|
params: {
|
|
2095
|
-
layerId: string;
|
|
2096
2120
|
attribute: string;
|
|
2121
|
+
layerId: string;
|
|
2097
2122
|
values?: {
|
|
2098
2123
|
boundary?: [number, number][] | {
|
|
2099
2124
|
type: "Polygon";
|
|
@@ -2193,8 +2218,8 @@ declare const GetLayerHistogramMessage: z.ZodObject<{
|
|
|
2193
2218
|
} | undefined;
|
|
2194
2219
|
}>>;
|
|
2195
2220
|
}, "strip", z.ZodTypeAny, {
|
|
2196
|
-
layerId: string;
|
|
2197
2221
|
attribute: string;
|
|
2222
|
+
layerId: string;
|
|
2198
2223
|
steps: number[] | {
|
|
2199
2224
|
type: "equal-intervals";
|
|
2200
2225
|
count: number;
|
|
@@ -2219,8 +2244,8 @@ declare const GetLayerHistogramMessage: z.ZodObject<{
|
|
|
2219
2244
|
} | [number, number, number, number] | undefined;
|
|
2220
2245
|
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2221
2246
|
}, {
|
|
2222
|
-
layerId: string;
|
|
2223
2247
|
attribute: string;
|
|
2248
|
+
layerId: string;
|
|
2224
2249
|
steps: number[] | {
|
|
2225
2250
|
type: "equal-intervals";
|
|
2226
2251
|
count: number;
|
|
@@ -2247,8 +2272,8 @@ declare const GetLayerHistogramMessage: z.ZodObject<{
|
|
|
2247
2272
|
}>;
|
|
2248
2273
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2249
2274
|
params: {
|
|
2250
|
-
layerId: string;
|
|
2251
2275
|
attribute: string;
|
|
2276
|
+
layerId: string;
|
|
2252
2277
|
steps: number[] | {
|
|
2253
2278
|
type: "equal-intervals";
|
|
2254
2279
|
count: number;
|
|
@@ -2276,8 +2301,8 @@ declare const GetLayerHistogramMessage: z.ZodObject<{
|
|
|
2276
2301
|
type: "getHistogramData";
|
|
2277
2302
|
}, {
|
|
2278
2303
|
params: {
|
|
2279
|
-
layerId: string;
|
|
2280
2304
|
attribute: string;
|
|
2305
|
+
layerId: string;
|
|
2281
2306
|
steps: number[] | {
|
|
2282
2307
|
type: "equal-intervals";
|
|
2283
2308
|
count: number;
|
|
@@ -2406,6 +2431,7 @@ type LayersSchema = {
|
|
|
2406
2431
|
onLayerChange: Listener<zInfer<typeof OnLayerChangeMessage.shape.options>, LayerChangeCallbackParams>;
|
|
2407
2432
|
onLayerGroupChange: Listener<zInfer<typeof OnLayerGroupChangeMessage.shape.options>, LayerGroupChangeCallbackParams>;
|
|
2408
2433
|
onLegendItemChange: Listener<zInfer<typeof OnLegendItemChangeMessage.shape.options>, LegendItemChangeCallbackParams>;
|
|
2434
|
+
onLayerFiltersChange: Listener<zInfer<typeof OnLayerFiltersChangeMessage.shape.options>, LayerFilters>;
|
|
2409
2435
|
};
|
|
2410
2436
|
};
|
|
2411
2437
|
|
|
@@ -2549,6 +2575,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
2549
2575
|
symbol: z.ZodOptional<z.ZodString>;
|
|
2550
2576
|
color: z.ZodOptional<z.ZodString>;
|
|
2551
2577
|
frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
|
|
2578
|
+
afterCreation: z.ZodOptional<z.ZodEnum<["enter name", "add another", "select"]>>;
|
|
2552
2579
|
}, {
|
|
2553
2580
|
tool: z.ZodLiteral<"pin">;
|
|
2554
2581
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -2556,11 +2583,13 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
2556
2583
|
symbol?: string | undefined;
|
|
2557
2584
|
color?: string | undefined;
|
|
2558
2585
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
2586
|
+
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
2559
2587
|
}, {
|
|
2560
2588
|
tool: "pin";
|
|
2561
2589
|
symbol?: string | undefined;
|
|
2562
2590
|
color?: string | undefined;
|
|
2563
2591
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
2592
|
+
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
2564
2593
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2565
2594
|
color: z.ZodOptional<z.ZodString>;
|
|
2566
2595
|
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2732,6 +2761,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
2732
2761
|
symbol?: string | undefined;
|
|
2733
2762
|
color?: string | undefined;
|
|
2734
2763
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
2764
|
+
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
2735
2765
|
} | {
|
|
2736
2766
|
tool: "line";
|
|
2737
2767
|
color?: string | undefined;
|
|
@@ -2792,6 +2822,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
2792
2822
|
symbol?: string | undefined;
|
|
2793
2823
|
color?: string | undefined;
|
|
2794
2824
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
2825
|
+
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
2795
2826
|
} | {
|
|
2796
2827
|
tool: "line";
|
|
2797
2828
|
color?: string | undefined;
|
|
@@ -2870,16 +2901,16 @@ type ToolsSchema = {
|
|
|
2870
2901
|
};
|
|
2871
2902
|
};
|
|
2872
2903
|
|
|
2873
|
-
declare const UiControlsMessage:
|
|
2874
|
-
type:
|
|
2875
|
-
params:
|
|
2876
|
-
showLegend:
|
|
2877
|
-
cooperativeGestures:
|
|
2878
|
-
fullScreenButton:
|
|
2879
|
-
geolocation:
|
|
2880
|
-
zoomControls:
|
|
2881
|
-
scaleBar:
|
|
2882
|
-
}, "strip",
|
|
2904
|
+
declare const UiControlsMessage: z.ZodObject<{
|
|
2905
|
+
type: z.ZodLiteral<"updateUiControls">;
|
|
2906
|
+
params: z.ZodObject<{
|
|
2907
|
+
showLegend: z.ZodOptional<z.ZodBoolean>;
|
|
2908
|
+
cooperativeGestures: z.ZodOptional<z.ZodBoolean>;
|
|
2909
|
+
fullScreenButton: z.ZodOptional<z.ZodBoolean>;
|
|
2910
|
+
geolocation: z.ZodOptional<z.ZodBoolean>;
|
|
2911
|
+
zoomControls: z.ZodOptional<z.ZodBoolean>;
|
|
2912
|
+
scaleBar: z.ZodOptional<z.ZodBoolean>;
|
|
2913
|
+
}, "strip", z.ZodTypeAny, {
|
|
2883
2914
|
showLegend?: boolean | undefined;
|
|
2884
2915
|
cooperativeGestures?: boolean | undefined;
|
|
2885
2916
|
fullScreenButton?: boolean | undefined;
|
|
@@ -2894,7 +2925,7 @@ declare const UiControlsMessage: zod.ZodObject<{
|
|
|
2894
2925
|
zoomControls?: boolean | undefined;
|
|
2895
2926
|
scaleBar?: boolean | undefined;
|
|
2896
2927
|
}>;
|
|
2897
|
-
},
|
|
2928
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2898
2929
|
params: {
|
|
2899
2930
|
showLegend?: boolean | undefined;
|
|
2900
2931
|
cooperativeGestures?: boolean | undefined;
|
|
@@ -2915,15 +2946,15 @@ declare const UiControlsMessage: zod.ZodObject<{
|
|
|
2915
2946
|
};
|
|
2916
2947
|
type: "updateUiControls";
|
|
2917
2948
|
}>;
|
|
2918
|
-
declare const OnMapInteractionsMessage:
|
|
2919
|
-
type:
|
|
2920
|
-
params:
|
|
2921
|
-
featureSelectPanel:
|
|
2922
|
-
featureHoverPanel:
|
|
2923
|
-
elementSelectPanel:
|
|
2924
|
-
linkClickOpen:
|
|
2925
|
-
imageLightboxOpen:
|
|
2926
|
-
}, "strip",
|
|
2949
|
+
declare const OnMapInteractionsMessage: z.ZodObject<{
|
|
2950
|
+
type: z.ZodLiteral<"setOnMapInteractionsUi">;
|
|
2951
|
+
params: z.ZodObject<{
|
|
2952
|
+
featureSelectPanel: z.ZodOptional<z.ZodBoolean>;
|
|
2953
|
+
featureHoverPanel: z.ZodOptional<z.ZodBoolean>;
|
|
2954
|
+
elementSelectPanel: z.ZodOptional<z.ZodBoolean>;
|
|
2955
|
+
linkClickOpen: z.ZodOptional<z.ZodBoolean>;
|
|
2956
|
+
imageLightboxOpen: z.ZodOptional<z.ZodBoolean>;
|
|
2957
|
+
}, "strip", z.ZodTypeAny, {
|
|
2927
2958
|
featureSelectPanel?: boolean | undefined;
|
|
2928
2959
|
featureHoverPanel?: boolean | undefined;
|
|
2929
2960
|
elementSelectPanel?: boolean | undefined;
|
|
@@ -2936,7 +2967,7 @@ declare const OnMapInteractionsMessage: zod.ZodObject<{
|
|
|
2936
2967
|
linkClickOpen?: boolean | undefined;
|
|
2937
2968
|
imageLightboxOpen?: boolean | undefined;
|
|
2938
2969
|
}>;
|
|
2939
|
-
},
|
|
2970
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2940
2971
|
params: {
|
|
2941
2972
|
featureSelectPanel?: boolean | undefined;
|
|
2942
2973
|
featureHoverPanel?: boolean | undefined;
|
|
@@ -2955,10 +2986,68 @@ declare const OnMapInteractionsMessage: zod.ZodObject<{
|
|
|
2955
2986
|
};
|
|
2956
2987
|
type: "setOnMapInteractionsUi";
|
|
2957
2988
|
}>;
|
|
2989
|
+
declare const ShowLayerDataTableMessage: z.ZodObject<{
|
|
2990
|
+
type: z.ZodLiteral<"showLayerDataTable">;
|
|
2991
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
2992
|
+
layerId: z.ZodString;
|
|
2993
|
+
sorting: z.ZodOptional<z.ZodObject<{
|
|
2994
|
+
attribute: z.ZodString;
|
|
2995
|
+
direction: z.ZodEnum<["asc", "desc"]>;
|
|
2996
|
+
}, "strip", z.ZodTypeAny, {
|
|
2997
|
+
attribute: string;
|
|
2998
|
+
direction: "asc" | "desc";
|
|
2999
|
+
}, {
|
|
3000
|
+
attribute: string;
|
|
3001
|
+
direction: "asc" | "desc";
|
|
3002
|
+
}>>;
|
|
3003
|
+
}, "strip", z.ZodTypeAny, {
|
|
3004
|
+
layerId: string;
|
|
3005
|
+
sorting?: {
|
|
3006
|
+
attribute: string;
|
|
3007
|
+
direction: "asc" | "desc";
|
|
3008
|
+
} | undefined;
|
|
3009
|
+
}, {
|
|
3010
|
+
layerId: string;
|
|
3011
|
+
sorting?: {
|
|
3012
|
+
attribute: string;
|
|
3013
|
+
direction: "asc" | "desc";
|
|
3014
|
+
} | undefined;
|
|
3015
|
+
}>>;
|
|
3016
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
3017
|
+
type: "showLayerDataTable";
|
|
3018
|
+
params?: {
|
|
3019
|
+
layerId: string;
|
|
3020
|
+
sorting?: {
|
|
3021
|
+
attribute: string;
|
|
3022
|
+
direction: "asc" | "desc";
|
|
3023
|
+
} | undefined;
|
|
3024
|
+
} | undefined;
|
|
3025
|
+
}, {
|
|
3026
|
+
type: "showLayerDataTable";
|
|
3027
|
+
params?: {
|
|
3028
|
+
layerId: string;
|
|
3029
|
+
sorting?: {
|
|
3030
|
+
attribute: string;
|
|
3031
|
+
direction: "asc" | "desc";
|
|
3032
|
+
} | undefined;
|
|
3033
|
+
} | undefined;
|
|
3034
|
+
}>;
|
|
3035
|
+
declare const HideLayerDataTableMessage: z.ZodObject<{
|
|
3036
|
+
type: z.ZodLiteral<"hideLayerDataTable">;
|
|
3037
|
+
params: z.ZodUndefined;
|
|
3038
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
3039
|
+
type: "hideLayerDataTable";
|
|
3040
|
+
params?: undefined;
|
|
3041
|
+
}, {
|
|
3042
|
+
type: "hideLayerDataTable";
|
|
3043
|
+
params?: undefined;
|
|
3044
|
+
}>;
|
|
2958
3045
|
type UiSchema = {
|
|
2959
3046
|
methods: {
|
|
2960
3047
|
updateUiControls: Method<zInfer<typeof UiControlsMessage>, void>;
|
|
2961
3048
|
setOnMapInteractionsUi: Method<zInfer<typeof OnMapInteractionsMessage>, void>;
|
|
3049
|
+
showLayerDataTable: Method<zInfer<typeof ShowLayerDataTableMessage>, void>;
|
|
3050
|
+
hideLayerDataTable: Method<zInfer<typeof HideLayerDataTableMessage>, void>;
|
|
2962
3051
|
};
|
|
2963
3052
|
listeners: {};
|
|
2964
3053
|
};
|