@feltmaps/js-sdk 1.7.0-next.2 → 1.7.0-next.21
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 +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/{controller-D6A8BZsm.d.cts → controller-BPKMlMAI.d.cts} +5045 -116
- package/dist/{controller-D6A8BZsm.d.ts → controller-BPKMlMAI.d.ts} +5045 -116
- package/dist/controller-bundled.d.ts +14821 -0
- package/dist/handler.cjs +1 -1
- package/dist/handler.d.cts +1866 -14
- package/dist/handler.d.ts +1866 -14
- package/dist/handler.js +1 -1
- package/package.json +5 -2
package/dist/handler.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z, ZodError } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { F as FeltController, ci as UnwrapPromise, z as zInfer, c as ElementChangeCallbackParams, f as ElementGroupChangeCallbackParams, E as Element, D as MapInteractionEvent, ap as FilterTernary, $ as LayerChangeCallbackParams, a2 as LayerGroupChangeCallbackParams, a5 as LegendItemChangeCallbackParams, at as LayerFilters, as as LayerBoundaries, aO as EntityNode, bn as ToolType, bl as ToolSettingsChangeEvent, cj as uiActionTriggerSchema, bS as UIPanelElementCreate, ck as UIPanelElementCreateClonable, cl as uiPanelCreateSchema, cm as UIButtonElementCreateClonable, cn as MakeClonableSchema, bD as UITextElementCreate, bJ as UIDividerElementCreate, bM as UITextInputElementCreate, bP as UISelectElementCreate, bG as UIFlexibleSpaceElementCreate, co as UIButtonRowElementCreateClonable, b$ as UICheckboxGroupElementCreate, c2 as UIRadioGroupElementCreate, c5 as UIToggleGroupElementCreate, c8 as UIIframeElementCreate, cg as ViewportState, cp as PromiseOrNot, cq as UnionToIntersection } from './controller-BPKMlMAI.cjs';
|
|
3
3
|
|
|
4
4
|
type FeltControllerFunctions = Omit<FeltController, "iframe">;
|
|
5
5
|
type Method<TRequest extends {
|
|
6
6
|
type: keyof FeltControllerFunctions;
|
|
7
7
|
params?: any;
|
|
8
|
-
}
|
|
8
|
+
}, TResponse = UnwrapPromise<ReturnType<FeltControllerFunctions[TRequest["type"]]>>> = {
|
|
9
9
|
request: TRequest;
|
|
10
|
-
response:
|
|
10
|
+
response: TResponse;
|
|
11
11
|
};
|
|
12
12
|
type Listener<TOptions, TParams> = {
|
|
13
13
|
options: TOptions;
|
|
@@ -2816,11 +2816,11 @@ declare const GetFeaturesMessage: z.ZodObject<{
|
|
|
2816
2816
|
coordinates: [number, number][][][];
|
|
2817
2817
|
} | undefined;
|
|
2818
2818
|
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;
|
|
2819
|
+
search?: string | undefined;
|
|
2819
2820
|
sorting?: {
|
|
2820
2821
|
attribute: string;
|
|
2821
2822
|
direction: "asc" | "desc";
|
|
2822
2823
|
} | undefined;
|
|
2823
|
-
search?: string | undefined;
|
|
2824
2824
|
pagination?: string | null | undefined;
|
|
2825
2825
|
}, {
|
|
2826
2826
|
layerId: string;
|
|
@@ -2832,11 +2832,11 @@ declare const GetFeaturesMessage: z.ZodObject<{
|
|
|
2832
2832
|
coordinates: [number, number][][][];
|
|
2833
2833
|
} | undefined;
|
|
2834
2834
|
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;
|
|
2835
|
+
search?: string | undefined;
|
|
2835
2836
|
sorting?: {
|
|
2836
2837
|
attribute: string;
|
|
2837
2838
|
direction: "asc" | "desc";
|
|
2838
2839
|
} | undefined;
|
|
2839
|
-
search?: string | undefined;
|
|
2840
2840
|
pagination?: string | null | undefined;
|
|
2841
2841
|
}>;
|
|
2842
2842
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -2850,11 +2850,11 @@ declare const GetFeaturesMessage: z.ZodObject<{
|
|
|
2850
2850
|
coordinates: [number, number][][][];
|
|
2851
2851
|
} | undefined;
|
|
2852
2852
|
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;
|
|
2853
|
+
search?: string | undefined;
|
|
2853
2854
|
sorting?: {
|
|
2854
2855
|
attribute: string;
|
|
2855
2856
|
direction: "asc" | "desc";
|
|
2856
2857
|
} | undefined;
|
|
2857
|
-
search?: string | undefined;
|
|
2858
2858
|
pagination?: string | null | undefined;
|
|
2859
2859
|
};
|
|
2860
2860
|
type: "getFeatures";
|
|
@@ -2869,11 +2869,11 @@ declare const GetFeaturesMessage: z.ZodObject<{
|
|
|
2869
2869
|
coordinates: [number, number][][][];
|
|
2870
2870
|
} | undefined;
|
|
2871
2871
|
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;
|
|
2872
|
+
search?: string | undefined;
|
|
2872
2873
|
sorting?: {
|
|
2873
2874
|
attribute: string;
|
|
2874
2875
|
direction: "asc" | "desc";
|
|
2875
2876
|
} | undefined;
|
|
2876
|
-
search?: string | undefined;
|
|
2877
2877
|
pagination?: string | null | undefined;
|
|
2878
2878
|
};
|
|
2879
2879
|
type: "getFeatures";
|
|
@@ -3707,23 +3707,23 @@ declare const ClearSelectionMessage: z.ZodObject<{
|
|
|
3707
3707
|
features: z.ZodOptional<z.ZodBoolean>;
|
|
3708
3708
|
elements: z.ZodOptional<z.ZodBoolean>;
|
|
3709
3709
|
}, "strip", z.ZodTypeAny, {
|
|
3710
|
-
features?: boolean | undefined;
|
|
3711
3710
|
elements?: boolean | undefined;
|
|
3712
|
-
}, {
|
|
3713
3711
|
features?: boolean | undefined;
|
|
3712
|
+
}, {
|
|
3714
3713
|
elements?: boolean | undefined;
|
|
3714
|
+
features?: boolean | undefined;
|
|
3715
3715
|
}>>;
|
|
3716
3716
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
3717
3717
|
type: "clearSelection";
|
|
3718
3718
|
params?: {
|
|
3719
|
-
features?: boolean | undefined;
|
|
3720
3719
|
elements?: boolean | undefined;
|
|
3720
|
+
features?: boolean | undefined;
|
|
3721
3721
|
} | undefined;
|
|
3722
3722
|
}, {
|
|
3723
3723
|
type: "clearSelection";
|
|
3724
3724
|
params?: {
|
|
3725
|
-
features?: boolean | undefined;
|
|
3726
3725
|
elements?: boolean | undefined;
|
|
3726
|
+
features?: boolean | undefined;
|
|
3727
3727
|
} | undefined;
|
|
3728
3728
|
}>;
|
|
3729
3729
|
type SelectionSchema = {
|
|
@@ -3743,10 +3743,10 @@ declare const SetToolMessage: z.ZodObject<{
|
|
|
3743
3743
|
type: z.ZodLiteral<"setTool">;
|
|
3744
3744
|
params: z.ZodNullable<z.ZodEnum<["circle", "highlighter", "line", "marker", "note", "pin", "polygon", "route", "text", "link"]>>;
|
|
3745
3745
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
3746
|
-
params: "text" | "
|
|
3746
|
+
params: "text" | "link" | "note" | "circle" | "highlighter" | "line" | "marker" | "pin" | "polygon" | "route" | null;
|
|
3747
3747
|
type: "setTool";
|
|
3748
3748
|
}, {
|
|
3749
|
-
params: "text" | "
|
|
3749
|
+
params: "text" | "link" | "note" | "circle" | "highlighter" | "line" | "marker" | "pin" | "polygon" | "route" | null;
|
|
3750
3750
|
type: "setTool";
|
|
3751
3751
|
}>;
|
|
3752
3752
|
declare const GetToolMessage: z.ZodObject<{
|
|
@@ -3767,6 +3767,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3767
3767
|
frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
|
|
3768
3768
|
afterCreation: z.ZodOptional<z.ZodEnum<["enter name", "add another", "select"]>>;
|
|
3769
3769
|
}, {
|
|
3770
|
+
showInspector: z.ZodOptional<z.ZodBoolean>;
|
|
3770
3771
|
tool: z.ZodLiteral<"pin">;
|
|
3771
3772
|
}>, "strip", z.ZodTypeAny, {
|
|
3772
3773
|
tool: "pin";
|
|
@@ -3774,12 +3775,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3774
3775
|
color?: string | undefined;
|
|
3775
3776
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
3776
3777
|
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
3778
|
+
showInspector?: boolean | undefined;
|
|
3777
3779
|
}, {
|
|
3778
3780
|
tool: "pin";
|
|
3779
3781
|
symbol?: string | undefined;
|
|
3780
3782
|
color?: string | undefined;
|
|
3781
3783
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
3782
3784
|
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
3785
|
+
showInspector?: boolean | undefined;
|
|
3783
3786
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
3784
3787
|
color: z.ZodOptional<z.ZodString>;
|
|
3785
3788
|
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3787,6 +3790,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3787
3790
|
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
3788
3791
|
distanceMarker: z.ZodOptional<z.ZodBoolean>;
|
|
3789
3792
|
}, {
|
|
3793
|
+
showInspector: z.ZodOptional<z.ZodBoolean>;
|
|
3790
3794
|
tool: z.ZodLiteral<"line">;
|
|
3791
3795
|
}>, "strip", z.ZodTypeAny, {
|
|
3792
3796
|
tool: "line";
|
|
@@ -3795,6 +3799,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3795
3799
|
strokeWidth?: number | undefined;
|
|
3796
3800
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
3797
3801
|
distanceMarker?: boolean | undefined;
|
|
3802
|
+
showInspector?: boolean | undefined;
|
|
3798
3803
|
}, {
|
|
3799
3804
|
tool: "line";
|
|
3800
3805
|
color?: string | undefined;
|
|
@@ -3802,6 +3807,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3802
3807
|
strokeWidth?: number | undefined;
|
|
3803
3808
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
3804
3809
|
distanceMarker?: boolean | undefined;
|
|
3810
|
+
showInspector?: boolean | undefined;
|
|
3805
3811
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
3806
3812
|
color: z.ZodOptional<z.ZodString>;
|
|
3807
3813
|
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3811,6 +3817,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3811
3817
|
routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
|
|
3812
3818
|
endCaps: z.ZodOptional<z.ZodBoolean>;
|
|
3813
3819
|
}, {
|
|
3820
|
+
showInspector: z.ZodOptional<z.ZodBoolean>;
|
|
3814
3821
|
tool: z.ZodLiteral<"route">;
|
|
3815
3822
|
}>, "strip", z.ZodTypeAny, {
|
|
3816
3823
|
tool: "route";
|
|
@@ -3821,6 +3828,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3821
3828
|
distanceMarker?: boolean | undefined;
|
|
3822
3829
|
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
3823
3830
|
endCaps?: boolean | undefined;
|
|
3831
|
+
showInspector?: boolean | undefined;
|
|
3824
3832
|
}, {
|
|
3825
3833
|
tool: "route";
|
|
3826
3834
|
color?: string | undefined;
|
|
@@ -3830,6 +3838,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3830
3838
|
distanceMarker?: boolean | undefined;
|
|
3831
3839
|
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
3832
3840
|
endCaps?: boolean | undefined;
|
|
3841
|
+
showInspector?: boolean | undefined;
|
|
3833
3842
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
3834
3843
|
color: z.ZodOptional<z.ZodString>;
|
|
3835
3844
|
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3838,6 +3847,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3838
3847
|
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
3839
3848
|
areaMarker: z.ZodOptional<z.ZodBoolean>;
|
|
3840
3849
|
}, {
|
|
3850
|
+
showInspector: z.ZodOptional<z.ZodBoolean>;
|
|
3841
3851
|
tool: z.ZodLiteral<"polygon">;
|
|
3842
3852
|
}>, "strip", z.ZodTypeAny, {
|
|
3843
3853
|
tool: "polygon";
|
|
@@ -3847,6 +3857,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3847
3857
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
3848
3858
|
fillOpacity?: number | undefined;
|
|
3849
3859
|
areaMarker?: boolean | undefined;
|
|
3860
|
+
showInspector?: boolean | undefined;
|
|
3850
3861
|
}, {
|
|
3851
3862
|
tool: "polygon";
|
|
3852
3863
|
color?: string | undefined;
|
|
@@ -3855,6 +3866,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3855
3866
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
3856
3867
|
fillOpacity?: number | undefined;
|
|
3857
3868
|
areaMarker?: boolean | undefined;
|
|
3869
|
+
showInspector?: boolean | undefined;
|
|
3858
3870
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
3859
3871
|
color: z.ZodOptional<z.ZodString>;
|
|
3860
3872
|
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3863,6 +3875,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3863
3875
|
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
3864
3876
|
radiusMarker: z.ZodOptional<z.ZodBoolean>;
|
|
3865
3877
|
}, {
|
|
3878
|
+
showInspector: z.ZodOptional<z.ZodBoolean>;
|
|
3866
3879
|
tool: z.ZodLiteral<"circle">;
|
|
3867
3880
|
}>, "strip", z.ZodTypeAny, {
|
|
3868
3881
|
tool: "circle";
|
|
@@ -3872,6 +3885,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3872
3885
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
3873
3886
|
fillOpacity?: number | undefined;
|
|
3874
3887
|
radiusMarker?: boolean | undefined;
|
|
3888
|
+
showInspector?: boolean | undefined;
|
|
3875
3889
|
}, {
|
|
3876
3890
|
tool: "circle";
|
|
3877
3891
|
color?: string | undefined;
|
|
@@ -3880,28 +3894,33 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3880
3894
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
3881
3895
|
fillOpacity?: number | undefined;
|
|
3882
3896
|
radiusMarker?: boolean | undefined;
|
|
3897
|
+
showInspector?: boolean | undefined;
|
|
3883
3898
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
3884
3899
|
color: z.ZodOptional<z.ZodString>;
|
|
3885
3900
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
3886
3901
|
size: z.ZodOptional<z.ZodNumber>;
|
|
3887
3902
|
}, {
|
|
3903
|
+
showInspector: z.ZodOptional<z.ZodBoolean>;
|
|
3888
3904
|
tool: z.ZodLiteral<"marker">;
|
|
3889
3905
|
}>, "strip", z.ZodTypeAny, {
|
|
3890
3906
|
tool: "marker";
|
|
3891
3907
|
color?: string | undefined;
|
|
3892
3908
|
opacity?: number | undefined;
|
|
3893
3909
|
size?: number | undefined;
|
|
3910
|
+
showInspector?: boolean | undefined;
|
|
3894
3911
|
}, {
|
|
3895
3912
|
tool: "marker";
|
|
3896
3913
|
color?: string | undefined;
|
|
3897
3914
|
opacity?: number | undefined;
|
|
3898
3915
|
size?: number | undefined;
|
|
3916
|
+
showInspector?: boolean | undefined;
|
|
3899
3917
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
3900
3918
|
color: z.ZodOptional<z.ZodString>;
|
|
3901
3919
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
3902
3920
|
renderHoles: z.ZodOptional<z.ZodBoolean>;
|
|
3903
3921
|
size: z.ZodOptional<z.ZodNumber>;
|
|
3904
3922
|
}, {
|
|
3923
|
+
showInspector: z.ZodOptional<z.ZodBoolean>;
|
|
3905
3924
|
tool: z.ZodLiteral<"highlighter">;
|
|
3906
3925
|
}>, "strip", z.ZodTypeAny, {
|
|
3907
3926
|
tool: "highlighter";
|
|
@@ -3909,44 +3928,52 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3909
3928
|
opacity?: number | undefined;
|
|
3910
3929
|
size?: number | undefined;
|
|
3911
3930
|
renderHoles?: boolean | undefined;
|
|
3931
|
+
showInspector?: boolean | undefined;
|
|
3912
3932
|
}, {
|
|
3913
3933
|
tool: "highlighter";
|
|
3914
3934
|
color?: string | undefined;
|
|
3915
3935
|
opacity?: number | undefined;
|
|
3916
3936
|
size?: number | undefined;
|
|
3917
3937
|
renderHoles?: boolean | undefined;
|
|
3938
|
+
showInspector?: boolean | undefined;
|
|
3918
3939
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
3919
3940
|
color: z.ZodOptional<z.ZodString>;
|
|
3920
3941
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
3921
3942
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
3922
3943
|
}, {
|
|
3944
|
+
showInspector: z.ZodOptional<z.ZodBoolean>;
|
|
3923
3945
|
tool: z.ZodLiteral<"text">;
|
|
3924
3946
|
}>, "strip", z.ZodTypeAny, {
|
|
3925
3947
|
tool: "text";
|
|
3926
3948
|
color?: string | undefined;
|
|
3927
3949
|
align?: "center" | "left" | "right" | undefined;
|
|
3928
3950
|
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
3951
|
+
showInspector?: boolean | undefined;
|
|
3929
3952
|
}, {
|
|
3930
3953
|
tool: "text";
|
|
3931
3954
|
color?: string | undefined;
|
|
3932
3955
|
align?: "center" | "left" | "right" | undefined;
|
|
3933
3956
|
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
3957
|
+
showInspector?: boolean | undefined;
|
|
3934
3958
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
3935
3959
|
color: z.ZodOptional<z.ZodString>;
|
|
3936
3960
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
3937
3961
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
3938
3962
|
}, {
|
|
3963
|
+
showInspector: z.ZodOptional<z.ZodBoolean>;
|
|
3939
3964
|
tool: z.ZodLiteral<"note">;
|
|
3940
3965
|
}>, "strip", z.ZodTypeAny, {
|
|
3941
3966
|
tool: "note";
|
|
3942
3967
|
color?: string | undefined;
|
|
3943
3968
|
align?: "center" | "left" | "right" | undefined;
|
|
3944
3969
|
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
3970
|
+
showInspector?: boolean | undefined;
|
|
3945
3971
|
}, {
|
|
3946
3972
|
tool: "note";
|
|
3947
3973
|
color?: string | undefined;
|
|
3948
3974
|
align?: "center" | "left" | "right" | undefined;
|
|
3949
3975
|
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
3976
|
+
showInspector?: boolean | undefined;
|
|
3950
3977
|
}>]>;
|
|
3951
3978
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
3952
3979
|
params: {
|
|
@@ -3955,6 +3982,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3955
3982
|
color?: string | undefined;
|
|
3956
3983
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
3957
3984
|
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
3985
|
+
showInspector?: boolean | undefined;
|
|
3958
3986
|
} | {
|
|
3959
3987
|
tool: "line";
|
|
3960
3988
|
color?: string | undefined;
|
|
@@ -3962,6 +3990,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3962
3990
|
strokeWidth?: number | undefined;
|
|
3963
3991
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
3964
3992
|
distanceMarker?: boolean | undefined;
|
|
3993
|
+
showInspector?: boolean | undefined;
|
|
3965
3994
|
} | {
|
|
3966
3995
|
tool: "route";
|
|
3967
3996
|
color?: string | undefined;
|
|
@@ -3971,6 +4000,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3971
4000
|
distanceMarker?: boolean | undefined;
|
|
3972
4001
|
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
3973
4002
|
endCaps?: boolean | undefined;
|
|
4003
|
+
showInspector?: boolean | undefined;
|
|
3974
4004
|
} | {
|
|
3975
4005
|
tool: "polygon";
|
|
3976
4006
|
color?: string | undefined;
|
|
@@ -3979,6 +4009,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3979
4009
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
3980
4010
|
fillOpacity?: number | undefined;
|
|
3981
4011
|
areaMarker?: boolean | undefined;
|
|
4012
|
+
showInspector?: boolean | undefined;
|
|
3982
4013
|
} | {
|
|
3983
4014
|
tool: "circle";
|
|
3984
4015
|
color?: string | undefined;
|
|
@@ -3987,27 +4018,32 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
3987
4018
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
3988
4019
|
fillOpacity?: number | undefined;
|
|
3989
4020
|
radiusMarker?: boolean | undefined;
|
|
4021
|
+
showInspector?: boolean | undefined;
|
|
3990
4022
|
} | {
|
|
3991
4023
|
tool: "marker";
|
|
3992
4024
|
color?: string | undefined;
|
|
3993
4025
|
opacity?: number | undefined;
|
|
3994
4026
|
size?: number | undefined;
|
|
4027
|
+
showInspector?: boolean | undefined;
|
|
3995
4028
|
} | {
|
|
3996
4029
|
tool: "highlighter";
|
|
3997
4030
|
color?: string | undefined;
|
|
3998
4031
|
opacity?: number | undefined;
|
|
3999
4032
|
size?: number | undefined;
|
|
4000
4033
|
renderHoles?: boolean | undefined;
|
|
4034
|
+
showInspector?: boolean | undefined;
|
|
4001
4035
|
} | {
|
|
4002
4036
|
tool: "text";
|
|
4003
4037
|
color?: string | undefined;
|
|
4004
4038
|
align?: "center" | "left" | "right" | undefined;
|
|
4005
4039
|
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
4040
|
+
showInspector?: boolean | undefined;
|
|
4006
4041
|
} | {
|
|
4007
4042
|
tool: "note";
|
|
4008
4043
|
color?: string | undefined;
|
|
4009
4044
|
align?: "center" | "left" | "right" | undefined;
|
|
4010
4045
|
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
4046
|
+
showInspector?: boolean | undefined;
|
|
4011
4047
|
};
|
|
4012
4048
|
type: "setToolSettings";
|
|
4013
4049
|
}, {
|
|
@@ -4017,6 +4053,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
4017
4053
|
color?: string | undefined;
|
|
4018
4054
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
4019
4055
|
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
4056
|
+
showInspector?: boolean | undefined;
|
|
4020
4057
|
} | {
|
|
4021
4058
|
tool: "line";
|
|
4022
4059
|
color?: string | undefined;
|
|
@@ -4024,6 +4061,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
4024
4061
|
strokeWidth?: number | undefined;
|
|
4025
4062
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
4026
4063
|
distanceMarker?: boolean | undefined;
|
|
4064
|
+
showInspector?: boolean | undefined;
|
|
4027
4065
|
} | {
|
|
4028
4066
|
tool: "route";
|
|
4029
4067
|
color?: string | undefined;
|
|
@@ -4033,6 +4071,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
4033
4071
|
distanceMarker?: boolean | undefined;
|
|
4034
4072
|
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
4035
4073
|
endCaps?: boolean | undefined;
|
|
4074
|
+
showInspector?: boolean | undefined;
|
|
4036
4075
|
} | {
|
|
4037
4076
|
tool: "polygon";
|
|
4038
4077
|
color?: string | undefined;
|
|
@@ -4041,6 +4080,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
4041
4080
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
4042
4081
|
fillOpacity?: number | undefined;
|
|
4043
4082
|
areaMarker?: boolean | undefined;
|
|
4083
|
+
showInspector?: boolean | undefined;
|
|
4044
4084
|
} | {
|
|
4045
4085
|
tool: "circle";
|
|
4046
4086
|
color?: string | undefined;
|
|
@@ -4049,27 +4089,32 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
4049
4089
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
4050
4090
|
fillOpacity?: number | undefined;
|
|
4051
4091
|
radiusMarker?: boolean | undefined;
|
|
4092
|
+
showInspector?: boolean | undefined;
|
|
4052
4093
|
} | {
|
|
4053
4094
|
tool: "marker";
|
|
4054
4095
|
color?: string | undefined;
|
|
4055
4096
|
opacity?: number | undefined;
|
|
4056
4097
|
size?: number | undefined;
|
|
4098
|
+
showInspector?: boolean | undefined;
|
|
4057
4099
|
} | {
|
|
4058
4100
|
tool: "highlighter";
|
|
4059
4101
|
color?: string | undefined;
|
|
4060
4102
|
opacity?: number | undefined;
|
|
4061
4103
|
size?: number | undefined;
|
|
4062
4104
|
renderHoles?: boolean | undefined;
|
|
4105
|
+
showInspector?: boolean | undefined;
|
|
4063
4106
|
} | {
|
|
4064
4107
|
tool: "text";
|
|
4065
4108
|
color?: string | undefined;
|
|
4066
4109
|
align?: "center" | "left" | "right" | undefined;
|
|
4067
4110
|
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
4111
|
+
showInspector?: boolean | undefined;
|
|
4068
4112
|
} | {
|
|
4069
4113
|
tool: "note";
|
|
4070
4114
|
color?: string | undefined;
|
|
4071
4115
|
align?: "center" | "left" | "right" | undefined;
|
|
4072
4116
|
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
4117
|
+
showInspector?: boolean | undefined;
|
|
4073
4118
|
};
|
|
4074
4119
|
type: "setToolSettings";
|
|
4075
4120
|
}>;
|
|
@@ -4096,6 +4141,1800 @@ type ToolsSchema = {
|
|
|
4096
4141
|
};
|
|
4097
4142
|
};
|
|
4098
4143
|
|
|
4144
|
+
declare const CreateActionTriggerMessage: z.ZodObject<{
|
|
4145
|
+
type: z.ZodLiteral<"createActionTrigger">;
|
|
4146
|
+
params: z.ZodObject<{
|
|
4147
|
+
actionTrigger: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
4148
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4149
|
+
onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
4150
|
+
id: z.ZodString;
|
|
4151
|
+
}, "strip", z.ZodTypeAny, {
|
|
4152
|
+
id: string;
|
|
4153
|
+
}, {
|
|
4154
|
+
id: string;
|
|
4155
|
+
}>], z.ZodUnknown>, z.ZodVoid>>;
|
|
4156
|
+
onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
4157
|
+
id: z.ZodString;
|
|
4158
|
+
}, "strip", z.ZodTypeAny, {
|
|
4159
|
+
id: string;
|
|
4160
|
+
}, {
|
|
4161
|
+
id: string;
|
|
4162
|
+
}>], z.ZodUnknown>, z.ZodVoid>>;
|
|
4163
|
+
}, {
|
|
4164
|
+
onCreate: z.ZodOptional<z.ZodString>;
|
|
4165
|
+
onDestroy: z.ZodOptional<z.ZodString>;
|
|
4166
|
+
}>, {
|
|
4167
|
+
type: z.ZodLiteral<"ActionTrigger">;
|
|
4168
|
+
label: z.ZodString;
|
|
4169
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
4170
|
+
}>, {
|
|
4171
|
+
type: z.ZodUndefined;
|
|
4172
|
+
}>, {
|
|
4173
|
+
onTrigger: z.ZodString;
|
|
4174
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4175
|
+
label: string;
|
|
4176
|
+
onTrigger: string;
|
|
4177
|
+
type?: undefined;
|
|
4178
|
+
id?: string | undefined;
|
|
4179
|
+
onCreate?: string | undefined;
|
|
4180
|
+
onDestroy?: string | undefined;
|
|
4181
|
+
disabled?: boolean | undefined;
|
|
4182
|
+
}, {
|
|
4183
|
+
label: string;
|
|
4184
|
+
onTrigger: string;
|
|
4185
|
+
type?: undefined;
|
|
4186
|
+
id?: string | undefined;
|
|
4187
|
+
onCreate?: string | undefined;
|
|
4188
|
+
onDestroy?: string | undefined;
|
|
4189
|
+
disabled?: boolean | undefined;
|
|
4190
|
+
}>;
|
|
4191
|
+
placement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
4192
|
+
after: z.ZodString;
|
|
4193
|
+
}, "strip", z.ZodTypeAny, {
|
|
4194
|
+
after: string;
|
|
4195
|
+
}, {
|
|
4196
|
+
after: string;
|
|
4197
|
+
}>, z.ZodObject<{
|
|
4198
|
+
before: z.ZodString;
|
|
4199
|
+
}, "strip", z.ZodTypeAny, {
|
|
4200
|
+
before: string;
|
|
4201
|
+
}, {
|
|
4202
|
+
before: string;
|
|
4203
|
+
}>, z.ZodObject<{
|
|
4204
|
+
at: z.ZodEnum<["start", "end"]>;
|
|
4205
|
+
}, "strip", z.ZodTypeAny, {
|
|
4206
|
+
at: "start" | "end";
|
|
4207
|
+
}, {
|
|
4208
|
+
at: "start" | "end";
|
|
4209
|
+
}>]>>;
|
|
4210
|
+
}, "strip", z.ZodTypeAny, {
|
|
4211
|
+
actionTrigger: {
|
|
4212
|
+
label: string;
|
|
4213
|
+
onTrigger: string;
|
|
4214
|
+
type?: undefined;
|
|
4215
|
+
id?: string | undefined;
|
|
4216
|
+
onCreate?: string | undefined;
|
|
4217
|
+
onDestroy?: string | undefined;
|
|
4218
|
+
disabled?: boolean | undefined;
|
|
4219
|
+
};
|
|
4220
|
+
placement?: {
|
|
4221
|
+
after: string;
|
|
4222
|
+
} | {
|
|
4223
|
+
before: string;
|
|
4224
|
+
} | {
|
|
4225
|
+
at: "start" | "end";
|
|
4226
|
+
} | undefined;
|
|
4227
|
+
}, {
|
|
4228
|
+
actionTrigger: {
|
|
4229
|
+
label: string;
|
|
4230
|
+
onTrigger: string;
|
|
4231
|
+
type?: undefined;
|
|
4232
|
+
id?: string | undefined;
|
|
4233
|
+
onCreate?: string | undefined;
|
|
4234
|
+
onDestroy?: string | undefined;
|
|
4235
|
+
disabled?: boolean | undefined;
|
|
4236
|
+
};
|
|
4237
|
+
placement?: {
|
|
4238
|
+
after: string;
|
|
4239
|
+
} | {
|
|
4240
|
+
before: string;
|
|
4241
|
+
} | {
|
|
4242
|
+
at: "start" | "end";
|
|
4243
|
+
} | undefined;
|
|
4244
|
+
}>;
|
|
4245
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4246
|
+
params: {
|
|
4247
|
+
actionTrigger: {
|
|
4248
|
+
label: string;
|
|
4249
|
+
onTrigger: string;
|
|
4250
|
+
type?: undefined;
|
|
4251
|
+
id?: string | undefined;
|
|
4252
|
+
onCreate?: string | undefined;
|
|
4253
|
+
onDestroy?: string | undefined;
|
|
4254
|
+
disabled?: boolean | undefined;
|
|
4255
|
+
};
|
|
4256
|
+
placement?: {
|
|
4257
|
+
after: string;
|
|
4258
|
+
} | {
|
|
4259
|
+
before: string;
|
|
4260
|
+
} | {
|
|
4261
|
+
at: "start" | "end";
|
|
4262
|
+
} | undefined;
|
|
4263
|
+
};
|
|
4264
|
+
type: "createActionTrigger";
|
|
4265
|
+
}, {
|
|
4266
|
+
params: {
|
|
4267
|
+
actionTrigger: {
|
|
4268
|
+
label: string;
|
|
4269
|
+
onTrigger: string;
|
|
4270
|
+
type?: undefined;
|
|
4271
|
+
id?: string | undefined;
|
|
4272
|
+
onCreate?: string | undefined;
|
|
4273
|
+
onDestroy?: string | undefined;
|
|
4274
|
+
disabled?: boolean | undefined;
|
|
4275
|
+
};
|
|
4276
|
+
placement?: {
|
|
4277
|
+
after: string;
|
|
4278
|
+
} | {
|
|
4279
|
+
before: string;
|
|
4280
|
+
} | {
|
|
4281
|
+
at: "start" | "end";
|
|
4282
|
+
} | undefined;
|
|
4283
|
+
};
|
|
4284
|
+
type: "createActionTrigger";
|
|
4285
|
+
}>;
|
|
4286
|
+
declare const UpdateActionTriggerMessage: z.ZodObject<{
|
|
4287
|
+
type: z.ZodLiteral<"updateActionTrigger">;
|
|
4288
|
+
params: z.ZodObject<{
|
|
4289
|
+
type: z.ZodOptional<z.ZodUndefined>;
|
|
4290
|
+
id: z.ZodString;
|
|
4291
|
+
onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4292
|
+
onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4293
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4294
|
+
disabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
4295
|
+
onTrigger: z.ZodOptional<z.ZodString>;
|
|
4296
|
+
}, "strip", z.ZodTypeAny, {
|
|
4297
|
+
id: string;
|
|
4298
|
+
type?: undefined;
|
|
4299
|
+
onCreate?: string | undefined;
|
|
4300
|
+
onDestroy?: string | undefined;
|
|
4301
|
+
label?: string | undefined;
|
|
4302
|
+
disabled?: boolean | undefined;
|
|
4303
|
+
onTrigger?: string | undefined;
|
|
4304
|
+
}, {
|
|
4305
|
+
id: string;
|
|
4306
|
+
type?: undefined;
|
|
4307
|
+
onCreate?: string | undefined;
|
|
4308
|
+
onDestroy?: string | undefined;
|
|
4309
|
+
label?: string | undefined;
|
|
4310
|
+
disabled?: boolean | undefined;
|
|
4311
|
+
onTrigger?: string | undefined;
|
|
4312
|
+
}>;
|
|
4313
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4314
|
+
params: {
|
|
4315
|
+
id: string;
|
|
4316
|
+
type?: undefined;
|
|
4317
|
+
onCreate?: string | undefined;
|
|
4318
|
+
onDestroy?: string | undefined;
|
|
4319
|
+
label?: string | undefined;
|
|
4320
|
+
disabled?: boolean | undefined;
|
|
4321
|
+
onTrigger?: string | undefined;
|
|
4322
|
+
};
|
|
4323
|
+
type: "updateActionTrigger";
|
|
4324
|
+
}, {
|
|
4325
|
+
params: {
|
|
4326
|
+
id: string;
|
|
4327
|
+
type?: undefined;
|
|
4328
|
+
onCreate?: string | undefined;
|
|
4329
|
+
onDestroy?: string | undefined;
|
|
4330
|
+
label?: string | undefined;
|
|
4331
|
+
disabled?: boolean | undefined;
|
|
4332
|
+
onTrigger?: string | undefined;
|
|
4333
|
+
};
|
|
4334
|
+
type: "updateActionTrigger";
|
|
4335
|
+
}>;
|
|
4336
|
+
declare const DeleteActionTriggerMessage: z.ZodObject<{
|
|
4337
|
+
type: z.ZodLiteral<"deleteActionTrigger">;
|
|
4338
|
+
params: z.ZodString;
|
|
4339
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4340
|
+
params: string;
|
|
4341
|
+
type: "deleteActionTrigger";
|
|
4342
|
+
}, {
|
|
4343
|
+
params: string;
|
|
4344
|
+
type: "deleteActionTrigger";
|
|
4345
|
+
}>;
|
|
4346
|
+
declare const CreatePanelIdMessage: z.ZodObject<{
|
|
4347
|
+
type: z.ZodLiteral<"createPanelId">;
|
|
4348
|
+
params: z.ZodVoid;
|
|
4349
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4350
|
+
type: "createPanelId";
|
|
4351
|
+
params?: void | undefined;
|
|
4352
|
+
}, {
|
|
4353
|
+
type: "createPanelId";
|
|
4354
|
+
params?: void | undefined;
|
|
4355
|
+
}>;
|
|
4356
|
+
declare const CreateOrUpdatePanelMessage: z.ZodObject<{
|
|
4357
|
+
type: z.ZodLiteral<"createOrUpdatePanel">;
|
|
4358
|
+
params: z.ZodObject<{
|
|
4359
|
+
panel: z.ZodObject<z.objectUtil.extendShape<{
|
|
4360
|
+
type: z.ZodOptional<z.ZodLiteral<"Panel">>;
|
|
4361
|
+
id: z.ZodString;
|
|
4362
|
+
onCreate: z.ZodOptional<z.ZodString>;
|
|
4363
|
+
onDestroy: z.ZodOptional<z.ZodString>;
|
|
4364
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4365
|
+
body: z.ZodOptional<z.ZodArray<z.ZodType<UIPanelElementCreate, z.ZodTypeDef, UIPanelElementCreate>, "many">>;
|
|
4366
|
+
footer: z.ZodOptional<z.ZodArray<z.ZodType<UIPanelElementCreate, z.ZodTypeDef, UIPanelElementCreate>, "many">>;
|
|
4367
|
+
onClickClose: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
4368
|
+
id: z.ZodString;
|
|
4369
|
+
}, "strip", z.ZodTypeAny, {
|
|
4370
|
+
id: string;
|
|
4371
|
+
}, {
|
|
4372
|
+
id: string;
|
|
4373
|
+
}>], z.ZodUnknown>, z.ZodVoid>>;
|
|
4374
|
+
}, {
|
|
4375
|
+
onClickClose: z.ZodOptional<z.ZodString>;
|
|
4376
|
+
body: z.ZodOptional<z.ZodArray<z.ZodType<UIPanelElementCreateClonable, z.ZodTypeDef, UIPanelElementCreateClonable>, "many">>;
|
|
4377
|
+
footer: z.ZodOptional<z.ZodArray<z.ZodType<UIPanelElementCreateClonable, z.ZodTypeDef, UIPanelElementCreateClonable>, "many">>;
|
|
4378
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4379
|
+
id: string;
|
|
4380
|
+
type?: "Panel" | undefined;
|
|
4381
|
+
onCreate?: string | undefined;
|
|
4382
|
+
onDestroy?: string | undefined;
|
|
4383
|
+
title?: string | undefined;
|
|
4384
|
+
body?: UIPanelElementCreateClonable[] | undefined;
|
|
4385
|
+
footer?: UIPanelElementCreateClonable[] | undefined;
|
|
4386
|
+
onClickClose?: string | undefined;
|
|
4387
|
+
}, {
|
|
4388
|
+
id: string;
|
|
4389
|
+
type?: "Panel" | undefined;
|
|
4390
|
+
onCreate?: string | undefined;
|
|
4391
|
+
onDestroy?: string | undefined;
|
|
4392
|
+
title?: string | undefined;
|
|
4393
|
+
body?: UIPanelElementCreateClonable[] | undefined;
|
|
4394
|
+
footer?: UIPanelElementCreateClonable[] | undefined;
|
|
4395
|
+
onClickClose?: string | undefined;
|
|
4396
|
+
}>;
|
|
4397
|
+
initialPlacement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
4398
|
+
after: z.ZodString;
|
|
4399
|
+
}, "strip", z.ZodTypeAny, {
|
|
4400
|
+
after: string;
|
|
4401
|
+
}, {
|
|
4402
|
+
after: string;
|
|
4403
|
+
}>, z.ZodObject<{
|
|
4404
|
+
before: z.ZodString;
|
|
4405
|
+
}, "strip", z.ZodTypeAny, {
|
|
4406
|
+
before: string;
|
|
4407
|
+
}, {
|
|
4408
|
+
before: string;
|
|
4409
|
+
}>, z.ZodObject<{
|
|
4410
|
+
at: z.ZodEnum<["start", "end"]>;
|
|
4411
|
+
}, "strip", z.ZodTypeAny, {
|
|
4412
|
+
at: "start" | "end";
|
|
4413
|
+
}, {
|
|
4414
|
+
at: "start" | "end";
|
|
4415
|
+
}>]>>;
|
|
4416
|
+
}, "strip", z.ZodTypeAny, {
|
|
4417
|
+
panel: {
|
|
4418
|
+
id: string;
|
|
4419
|
+
type?: "Panel" | undefined;
|
|
4420
|
+
onCreate?: string | undefined;
|
|
4421
|
+
onDestroy?: string | undefined;
|
|
4422
|
+
title?: string | undefined;
|
|
4423
|
+
body?: UIPanelElementCreateClonable[] | undefined;
|
|
4424
|
+
footer?: UIPanelElementCreateClonable[] | undefined;
|
|
4425
|
+
onClickClose?: string | undefined;
|
|
4426
|
+
};
|
|
4427
|
+
initialPlacement?: {
|
|
4428
|
+
after: string;
|
|
4429
|
+
} | {
|
|
4430
|
+
before: string;
|
|
4431
|
+
} | {
|
|
4432
|
+
at: "start" | "end";
|
|
4433
|
+
} | undefined;
|
|
4434
|
+
}, {
|
|
4435
|
+
panel: {
|
|
4436
|
+
id: string;
|
|
4437
|
+
type?: "Panel" | undefined;
|
|
4438
|
+
onCreate?: string | undefined;
|
|
4439
|
+
onDestroy?: string | undefined;
|
|
4440
|
+
title?: string | undefined;
|
|
4441
|
+
body?: UIPanelElementCreateClonable[] | undefined;
|
|
4442
|
+
footer?: UIPanelElementCreateClonable[] | undefined;
|
|
4443
|
+
onClickClose?: string | undefined;
|
|
4444
|
+
};
|
|
4445
|
+
initialPlacement?: {
|
|
4446
|
+
after: string;
|
|
4447
|
+
} | {
|
|
4448
|
+
before: string;
|
|
4449
|
+
} | {
|
|
4450
|
+
at: "start" | "end";
|
|
4451
|
+
} | undefined;
|
|
4452
|
+
}>;
|
|
4453
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4454
|
+
params: {
|
|
4455
|
+
panel: {
|
|
4456
|
+
id: string;
|
|
4457
|
+
type?: "Panel" | undefined;
|
|
4458
|
+
onCreate?: string | undefined;
|
|
4459
|
+
onDestroy?: string | undefined;
|
|
4460
|
+
title?: string | undefined;
|
|
4461
|
+
body?: UIPanelElementCreateClonable[] | undefined;
|
|
4462
|
+
footer?: UIPanelElementCreateClonable[] | undefined;
|
|
4463
|
+
onClickClose?: string | undefined;
|
|
4464
|
+
};
|
|
4465
|
+
initialPlacement?: {
|
|
4466
|
+
after: string;
|
|
4467
|
+
} | {
|
|
4468
|
+
before: string;
|
|
4469
|
+
} | {
|
|
4470
|
+
at: "start" | "end";
|
|
4471
|
+
} | undefined;
|
|
4472
|
+
};
|
|
4473
|
+
type: "createOrUpdatePanel";
|
|
4474
|
+
}, {
|
|
4475
|
+
params: {
|
|
4476
|
+
panel: {
|
|
4477
|
+
id: string;
|
|
4478
|
+
type?: "Panel" | undefined;
|
|
4479
|
+
onCreate?: string | undefined;
|
|
4480
|
+
onDestroy?: string | undefined;
|
|
4481
|
+
title?: string | undefined;
|
|
4482
|
+
body?: UIPanelElementCreateClonable[] | undefined;
|
|
4483
|
+
footer?: UIPanelElementCreateClonable[] | undefined;
|
|
4484
|
+
onClickClose?: string | undefined;
|
|
4485
|
+
};
|
|
4486
|
+
initialPlacement?: {
|
|
4487
|
+
after: string;
|
|
4488
|
+
} | {
|
|
4489
|
+
before: string;
|
|
4490
|
+
} | {
|
|
4491
|
+
at: "start" | "end";
|
|
4492
|
+
} | undefined;
|
|
4493
|
+
};
|
|
4494
|
+
type: "createOrUpdatePanel";
|
|
4495
|
+
}>;
|
|
4496
|
+
declare const DeletePanelMessage: z.ZodObject<{
|
|
4497
|
+
type: z.ZodLiteral<"deletePanel">;
|
|
4498
|
+
params: z.ZodString;
|
|
4499
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4500
|
+
params: string;
|
|
4501
|
+
type: "deletePanel";
|
|
4502
|
+
}, {
|
|
4503
|
+
params: string;
|
|
4504
|
+
type: "deletePanel";
|
|
4505
|
+
}>;
|
|
4506
|
+
declare const CreatePanelElementsMessage: z.ZodObject<{
|
|
4507
|
+
type: z.ZodLiteral<"createPanelElements">;
|
|
4508
|
+
params: z.ZodObject<{
|
|
4509
|
+
panelId: z.ZodString;
|
|
4510
|
+
elements: z.ZodArray<z.ZodObject<{
|
|
4511
|
+
element: z.ZodType<UIPanelElementCreateClonable, z.ZodTypeDef, UIPanelElementCreateClonable>;
|
|
4512
|
+
container: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"body">, z.ZodLiteral<"footer">, z.ZodObject<{
|
|
4513
|
+
id: z.ZodString;
|
|
4514
|
+
}, "strip", z.ZodTypeAny, {
|
|
4515
|
+
id: string;
|
|
4516
|
+
}, {
|
|
4517
|
+
id: string;
|
|
4518
|
+
}>]>>;
|
|
4519
|
+
placement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
4520
|
+
after: z.ZodString;
|
|
4521
|
+
}, "strip", z.ZodTypeAny, {
|
|
4522
|
+
after: string;
|
|
4523
|
+
}, {
|
|
4524
|
+
after: string;
|
|
4525
|
+
}>, z.ZodObject<{
|
|
4526
|
+
before: z.ZodString;
|
|
4527
|
+
}, "strip", z.ZodTypeAny, {
|
|
4528
|
+
before: string;
|
|
4529
|
+
}, {
|
|
4530
|
+
before: string;
|
|
4531
|
+
}>, z.ZodObject<{
|
|
4532
|
+
at: z.ZodEnum<["start", "end"]>;
|
|
4533
|
+
}, "strip", z.ZodTypeAny, {
|
|
4534
|
+
at: "start" | "end";
|
|
4535
|
+
}, {
|
|
4536
|
+
at: "start" | "end";
|
|
4537
|
+
}>]>>;
|
|
4538
|
+
}, "strip", z.ZodTypeAny, {
|
|
4539
|
+
element: UIPanelElementCreateClonable;
|
|
4540
|
+
placement?: {
|
|
4541
|
+
after: string;
|
|
4542
|
+
} | {
|
|
4543
|
+
before: string;
|
|
4544
|
+
} | {
|
|
4545
|
+
at: "start" | "end";
|
|
4546
|
+
} | undefined;
|
|
4547
|
+
container?: "body" | "footer" | {
|
|
4548
|
+
id: string;
|
|
4549
|
+
} | undefined;
|
|
4550
|
+
}, {
|
|
4551
|
+
element: UIPanelElementCreateClonable;
|
|
4552
|
+
placement?: {
|
|
4553
|
+
after: string;
|
|
4554
|
+
} | {
|
|
4555
|
+
before: string;
|
|
4556
|
+
} | {
|
|
4557
|
+
at: "start" | "end";
|
|
4558
|
+
} | undefined;
|
|
4559
|
+
container?: "body" | "footer" | {
|
|
4560
|
+
id: string;
|
|
4561
|
+
} | undefined;
|
|
4562
|
+
}>, "many">;
|
|
4563
|
+
}, "strip", z.ZodTypeAny, {
|
|
4564
|
+
panelId: string;
|
|
4565
|
+
elements: {
|
|
4566
|
+
element: UIPanelElementCreateClonable;
|
|
4567
|
+
placement?: {
|
|
4568
|
+
after: string;
|
|
4569
|
+
} | {
|
|
4570
|
+
before: string;
|
|
4571
|
+
} | {
|
|
4572
|
+
at: "start" | "end";
|
|
4573
|
+
} | undefined;
|
|
4574
|
+
container?: "body" | "footer" | {
|
|
4575
|
+
id: string;
|
|
4576
|
+
} | undefined;
|
|
4577
|
+
}[];
|
|
4578
|
+
}, {
|
|
4579
|
+
panelId: string;
|
|
4580
|
+
elements: {
|
|
4581
|
+
element: UIPanelElementCreateClonable;
|
|
4582
|
+
placement?: {
|
|
4583
|
+
after: string;
|
|
4584
|
+
} | {
|
|
4585
|
+
before: string;
|
|
4586
|
+
} | {
|
|
4587
|
+
at: "start" | "end";
|
|
4588
|
+
} | undefined;
|
|
4589
|
+
container?: "body" | "footer" | {
|
|
4590
|
+
id: string;
|
|
4591
|
+
} | undefined;
|
|
4592
|
+
}[];
|
|
4593
|
+
}>;
|
|
4594
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4595
|
+
params: {
|
|
4596
|
+
panelId: string;
|
|
4597
|
+
elements: {
|
|
4598
|
+
element: UIPanelElementCreateClonable;
|
|
4599
|
+
placement?: {
|
|
4600
|
+
after: string;
|
|
4601
|
+
} | {
|
|
4602
|
+
before: string;
|
|
4603
|
+
} | {
|
|
4604
|
+
at: "start" | "end";
|
|
4605
|
+
} | undefined;
|
|
4606
|
+
container?: "body" | "footer" | {
|
|
4607
|
+
id: string;
|
|
4608
|
+
} | undefined;
|
|
4609
|
+
}[];
|
|
4610
|
+
};
|
|
4611
|
+
type: "createPanelElements";
|
|
4612
|
+
}, {
|
|
4613
|
+
params: {
|
|
4614
|
+
panelId: string;
|
|
4615
|
+
elements: {
|
|
4616
|
+
element: UIPanelElementCreateClonable;
|
|
4617
|
+
placement?: {
|
|
4618
|
+
after: string;
|
|
4619
|
+
} | {
|
|
4620
|
+
before: string;
|
|
4621
|
+
} | {
|
|
4622
|
+
at: "start" | "end";
|
|
4623
|
+
} | undefined;
|
|
4624
|
+
container?: "body" | "footer" | {
|
|
4625
|
+
id: string;
|
|
4626
|
+
} | undefined;
|
|
4627
|
+
}[];
|
|
4628
|
+
};
|
|
4629
|
+
type: "createPanelElements";
|
|
4630
|
+
}>;
|
|
4631
|
+
declare const UpdatePanelElementsMessage: z.ZodObject<{
|
|
4632
|
+
type: z.ZodLiteral<"updatePanelElements">;
|
|
4633
|
+
params: z.ZodObject<{
|
|
4634
|
+
panelId: z.ZodString;
|
|
4635
|
+
elements: z.ZodArray<z.ZodObject<{
|
|
4636
|
+
element: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4637
|
+
type: z.ZodLiteral<"Button">;
|
|
4638
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4639
|
+
variant: z.ZodOptional<z.ZodOptional<z.ZodEnum<["filled", "transparent", "outlined"]>>>;
|
|
4640
|
+
tint: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "primary", "accent", "danger"]>>>;
|
|
4641
|
+
disabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
4642
|
+
id: z.ZodString;
|
|
4643
|
+
onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4644
|
+
onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4645
|
+
onClick: z.ZodOptional<z.ZodString>;
|
|
4646
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4647
|
+
type: "Button";
|
|
4648
|
+
id: string;
|
|
4649
|
+
onCreate?: string | undefined;
|
|
4650
|
+
onDestroy?: string | undefined;
|
|
4651
|
+
label?: string | undefined;
|
|
4652
|
+
disabled?: boolean | undefined;
|
|
4653
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
4654
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
4655
|
+
onClick?: string | undefined;
|
|
4656
|
+
}, {
|
|
4657
|
+
type: "Button";
|
|
4658
|
+
id: string;
|
|
4659
|
+
onCreate?: string | undefined;
|
|
4660
|
+
onDestroy?: string | undefined;
|
|
4661
|
+
label?: string | undefined;
|
|
4662
|
+
disabled?: boolean | undefined;
|
|
4663
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
4664
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
4665
|
+
onClick?: string | undefined;
|
|
4666
|
+
}>, z.ZodObject<{
|
|
4667
|
+
type: z.ZodLiteral<"Text">;
|
|
4668
|
+
content: z.ZodOptional<z.ZodString>;
|
|
4669
|
+
id: z.ZodString;
|
|
4670
|
+
onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4671
|
+
onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4672
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4673
|
+
type: "Text";
|
|
4674
|
+
id: string;
|
|
4675
|
+
onCreate?: string | undefined;
|
|
4676
|
+
onDestroy?: string | undefined;
|
|
4677
|
+
content?: string | undefined;
|
|
4678
|
+
}, {
|
|
4679
|
+
type: "Text";
|
|
4680
|
+
id: string;
|
|
4681
|
+
onCreate?: string | undefined;
|
|
4682
|
+
onDestroy?: string | undefined;
|
|
4683
|
+
content?: string | undefined;
|
|
4684
|
+
}>, z.ZodObject<{
|
|
4685
|
+
type: z.ZodLiteral<"TextInput">;
|
|
4686
|
+
value: z.ZodOptional<z.ZodString>;
|
|
4687
|
+
placeholder: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4688
|
+
label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4689
|
+
id: z.ZodString;
|
|
4690
|
+
onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4691
|
+
onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4692
|
+
onChange: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4693
|
+
onBlur: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4694
|
+
onFocus: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4695
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4696
|
+
type: "TextInput";
|
|
4697
|
+
id: string;
|
|
4698
|
+
value?: string | undefined;
|
|
4699
|
+
onCreate?: string | undefined;
|
|
4700
|
+
onDestroy?: string | undefined;
|
|
4701
|
+
label?: string | undefined;
|
|
4702
|
+
placeholder?: string | undefined;
|
|
4703
|
+
onChange?: string | undefined;
|
|
4704
|
+
onBlur?: string | undefined;
|
|
4705
|
+
onFocus?: string | undefined;
|
|
4706
|
+
}, {
|
|
4707
|
+
type: "TextInput";
|
|
4708
|
+
id: string;
|
|
4709
|
+
value?: string | undefined;
|
|
4710
|
+
onCreate?: string | undefined;
|
|
4711
|
+
onDestroy?: string | undefined;
|
|
4712
|
+
label?: string | undefined;
|
|
4713
|
+
placeholder?: string | undefined;
|
|
4714
|
+
onChange?: string | undefined;
|
|
4715
|
+
onBlur?: string | undefined;
|
|
4716
|
+
onFocus?: string | undefined;
|
|
4717
|
+
}>, z.ZodObject<{
|
|
4718
|
+
type: z.ZodLiteral<"Select">;
|
|
4719
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4720
|
+
label: z.ZodString;
|
|
4721
|
+
value: z.ZodString;
|
|
4722
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
4723
|
+
}, "strip", z.ZodTypeAny, {
|
|
4724
|
+
value: string;
|
|
4725
|
+
label: string;
|
|
4726
|
+
disabled?: boolean | undefined;
|
|
4727
|
+
}, {
|
|
4728
|
+
value: string;
|
|
4729
|
+
label: string;
|
|
4730
|
+
disabled?: boolean | undefined;
|
|
4731
|
+
}>, "many">>;
|
|
4732
|
+
value: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4733
|
+
placeholder: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4734
|
+
search: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
4735
|
+
label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4736
|
+
id: z.ZodString;
|
|
4737
|
+
onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4738
|
+
onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4739
|
+
onChange: z.ZodOptional<z.ZodString>;
|
|
4740
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4741
|
+
type: "Select";
|
|
4742
|
+
id: string;
|
|
4743
|
+
options?: {
|
|
4744
|
+
value: string;
|
|
4745
|
+
label: string;
|
|
4746
|
+
disabled?: boolean | undefined;
|
|
4747
|
+
}[] | undefined;
|
|
4748
|
+
value?: string | undefined;
|
|
4749
|
+
onCreate?: string | undefined;
|
|
4750
|
+
onDestroy?: string | undefined;
|
|
4751
|
+
label?: string | undefined;
|
|
4752
|
+
placeholder?: string | undefined;
|
|
4753
|
+
onChange?: string | undefined;
|
|
4754
|
+
search?: boolean | undefined;
|
|
4755
|
+
}, {
|
|
4756
|
+
type: "Select";
|
|
4757
|
+
id: string;
|
|
4758
|
+
options?: {
|
|
4759
|
+
value: string;
|
|
4760
|
+
label: string;
|
|
4761
|
+
disabled?: boolean | undefined;
|
|
4762
|
+
}[] | undefined;
|
|
4763
|
+
value?: string | undefined;
|
|
4764
|
+
onCreate?: string | undefined;
|
|
4765
|
+
onDestroy?: string | undefined;
|
|
4766
|
+
label?: string | undefined;
|
|
4767
|
+
placeholder?: string | undefined;
|
|
4768
|
+
onChange?: string | undefined;
|
|
4769
|
+
search?: boolean | undefined;
|
|
4770
|
+
}>, z.ZodObject<{
|
|
4771
|
+
type: z.ZodLiteral<"Divider">;
|
|
4772
|
+
id: z.ZodString;
|
|
4773
|
+
onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4774
|
+
onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4775
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4776
|
+
type: "Divider";
|
|
4777
|
+
id: string;
|
|
4778
|
+
onCreate?: string | undefined;
|
|
4779
|
+
onDestroy?: string | undefined;
|
|
4780
|
+
}, {
|
|
4781
|
+
type: "Divider";
|
|
4782
|
+
id: string;
|
|
4783
|
+
onCreate?: string | undefined;
|
|
4784
|
+
onDestroy?: string | undefined;
|
|
4785
|
+
}>, z.ZodObject<{
|
|
4786
|
+
type: z.ZodLiteral<"FlexibleSpace">;
|
|
4787
|
+
id: z.ZodString;
|
|
4788
|
+
onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4789
|
+
onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4790
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4791
|
+
type: "FlexibleSpace";
|
|
4792
|
+
id: string;
|
|
4793
|
+
onCreate?: string | undefined;
|
|
4794
|
+
onDestroy?: string | undefined;
|
|
4795
|
+
}, {
|
|
4796
|
+
type: "FlexibleSpace";
|
|
4797
|
+
id: string;
|
|
4798
|
+
onCreate?: string | undefined;
|
|
4799
|
+
onDestroy?: string | undefined;
|
|
4800
|
+
}>, z.ZodObject<{
|
|
4801
|
+
type: z.ZodLiteral<"ButtonRow">;
|
|
4802
|
+
align: z.ZodOptional<z.ZodOptional<z.ZodEnum<["start", "end"]>>>;
|
|
4803
|
+
label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4804
|
+
id: z.ZodString;
|
|
4805
|
+
onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4806
|
+
onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4807
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
4808
|
+
onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
4809
|
+
id: z.ZodString;
|
|
4810
|
+
}, "strip", z.ZodTypeAny, {
|
|
4811
|
+
id: string;
|
|
4812
|
+
}, {
|
|
4813
|
+
id: string;
|
|
4814
|
+
}>], z.ZodUnknown>, z.ZodVoid>>;
|
|
4815
|
+
onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
4816
|
+
id: z.ZodString;
|
|
4817
|
+
}, "strip", z.ZodTypeAny, {
|
|
4818
|
+
id: string;
|
|
4819
|
+
}, {
|
|
4820
|
+
id: string;
|
|
4821
|
+
}>], z.ZodUnknown>, z.ZodVoid>>;
|
|
4822
|
+
}, {
|
|
4823
|
+
id: z.ZodString;
|
|
4824
|
+
}>, {
|
|
4825
|
+
type: z.ZodLiteral<"Button">;
|
|
4826
|
+
label: z.ZodString;
|
|
4827
|
+
variant: z.ZodOptional<z.ZodEnum<["filled", "transparent", "outlined"]>>;
|
|
4828
|
+
tint: z.ZodOptional<z.ZodEnum<["default", "primary", "accent", "danger"]>>;
|
|
4829
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
4830
|
+
onClick: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
4831
|
+
id: z.ZodString;
|
|
4832
|
+
}, "strip", z.ZodTypeAny, {
|
|
4833
|
+
id: string;
|
|
4834
|
+
}, {
|
|
4835
|
+
id: string;
|
|
4836
|
+
}>], z.ZodUnknown>, z.ZodVoid>;
|
|
4837
|
+
}>, {
|
|
4838
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4839
|
+
onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
4840
|
+
id: z.ZodString;
|
|
4841
|
+
}, "strip", z.ZodTypeAny, {
|
|
4842
|
+
id: string;
|
|
4843
|
+
}, {
|
|
4844
|
+
id: string;
|
|
4845
|
+
}>], z.ZodUnknown>, z.ZodVoid>>;
|
|
4846
|
+
onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
4847
|
+
id: z.ZodString;
|
|
4848
|
+
}, "strip", z.ZodTypeAny, {
|
|
4849
|
+
id: string;
|
|
4850
|
+
}, {
|
|
4851
|
+
id: string;
|
|
4852
|
+
}>], z.ZodUnknown>, z.ZodVoid>>;
|
|
4853
|
+
}>, z.objectUtil.extendShape<{
|
|
4854
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4855
|
+
onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
4856
|
+
id: z.ZodString;
|
|
4857
|
+
}, "strip", z.ZodTypeAny, {
|
|
4858
|
+
id: string;
|
|
4859
|
+
}, {
|
|
4860
|
+
id: string;
|
|
4861
|
+
}>], z.ZodUnknown>, z.ZodVoid>>;
|
|
4862
|
+
onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
4863
|
+
id: z.ZodString;
|
|
4864
|
+
}, "strip", z.ZodTypeAny, {
|
|
4865
|
+
id: string;
|
|
4866
|
+
}, {
|
|
4867
|
+
id: string;
|
|
4868
|
+
}>], z.ZodUnknown>, z.ZodVoid>>;
|
|
4869
|
+
}, {
|
|
4870
|
+
onCreate: z.ZodOptional<z.ZodString>;
|
|
4871
|
+
onDestroy: z.ZodOptional<z.ZodString>;
|
|
4872
|
+
}>>, {
|
|
4873
|
+
onClick: z.ZodString;
|
|
4874
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4875
|
+
type: "Button";
|
|
4876
|
+
label: string;
|
|
4877
|
+
onClick: string;
|
|
4878
|
+
id?: string | undefined;
|
|
4879
|
+
onCreate?: string | undefined;
|
|
4880
|
+
onDestroy?: string | undefined;
|
|
4881
|
+
disabled?: boolean | undefined;
|
|
4882
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
4883
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
4884
|
+
}, {
|
|
4885
|
+
type: "Button";
|
|
4886
|
+
label: string;
|
|
4887
|
+
onClick: string;
|
|
4888
|
+
id?: string | undefined;
|
|
4889
|
+
onCreate?: string | undefined;
|
|
4890
|
+
onDestroy?: string | undefined;
|
|
4891
|
+
disabled?: boolean | undefined;
|
|
4892
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
4893
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
4894
|
+
}>, "many">>;
|
|
4895
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4896
|
+
type: "ButtonRow";
|
|
4897
|
+
id: string;
|
|
4898
|
+
align?: "start" | "end" | undefined;
|
|
4899
|
+
items?: {
|
|
4900
|
+
type: "Button";
|
|
4901
|
+
label: string;
|
|
4902
|
+
onClick: string;
|
|
4903
|
+
id?: string | undefined;
|
|
4904
|
+
onCreate?: string | undefined;
|
|
4905
|
+
onDestroy?: string | undefined;
|
|
4906
|
+
disabled?: boolean | undefined;
|
|
4907
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
4908
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
4909
|
+
}[] | undefined;
|
|
4910
|
+
onCreate?: string | undefined;
|
|
4911
|
+
onDestroy?: string | undefined;
|
|
4912
|
+
label?: string | undefined;
|
|
4913
|
+
}, {
|
|
4914
|
+
type: "ButtonRow";
|
|
4915
|
+
id: string;
|
|
4916
|
+
align?: "start" | "end" | undefined;
|
|
4917
|
+
items?: {
|
|
4918
|
+
type: "Button";
|
|
4919
|
+
label: string;
|
|
4920
|
+
onClick: string;
|
|
4921
|
+
id?: string | undefined;
|
|
4922
|
+
onCreate?: string | undefined;
|
|
4923
|
+
onDestroy?: string | undefined;
|
|
4924
|
+
disabled?: boolean | undefined;
|
|
4925
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
4926
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
4927
|
+
}[] | undefined;
|
|
4928
|
+
onCreate?: string | undefined;
|
|
4929
|
+
onDestroy?: string | undefined;
|
|
4930
|
+
label?: string | undefined;
|
|
4931
|
+
}>, z.ZodObject<{
|
|
4932
|
+
type: z.ZodLiteral<"CheckboxGroup">;
|
|
4933
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4934
|
+
label: z.ZodString;
|
|
4935
|
+
value: z.ZodString;
|
|
4936
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
4937
|
+
}, "strip", z.ZodTypeAny, {
|
|
4938
|
+
value: string;
|
|
4939
|
+
label: string;
|
|
4940
|
+
disabled?: boolean | undefined;
|
|
4941
|
+
}, {
|
|
4942
|
+
value: string;
|
|
4943
|
+
label: string;
|
|
4944
|
+
disabled?: boolean | undefined;
|
|
4945
|
+
}>, "many">>;
|
|
4946
|
+
value: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4947
|
+
label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4948
|
+
id: z.ZodString;
|
|
4949
|
+
onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4950
|
+
onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4951
|
+
onChange: z.ZodOptional<z.ZodString>;
|
|
4952
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4953
|
+
type: "CheckboxGroup";
|
|
4954
|
+
id: string;
|
|
4955
|
+
options?: {
|
|
4956
|
+
value: string;
|
|
4957
|
+
label: string;
|
|
4958
|
+
disabled?: boolean | undefined;
|
|
4959
|
+
}[] | undefined;
|
|
4960
|
+
value?: string[] | undefined;
|
|
4961
|
+
onCreate?: string | undefined;
|
|
4962
|
+
onDestroy?: string | undefined;
|
|
4963
|
+
label?: string | undefined;
|
|
4964
|
+
onChange?: string | undefined;
|
|
4965
|
+
}, {
|
|
4966
|
+
type: "CheckboxGroup";
|
|
4967
|
+
id: string;
|
|
4968
|
+
options?: {
|
|
4969
|
+
value: string;
|
|
4970
|
+
label: string;
|
|
4971
|
+
disabled?: boolean | undefined;
|
|
4972
|
+
}[] | undefined;
|
|
4973
|
+
value?: string[] | undefined;
|
|
4974
|
+
onCreate?: string | undefined;
|
|
4975
|
+
onDestroy?: string | undefined;
|
|
4976
|
+
label?: string | undefined;
|
|
4977
|
+
onChange?: string | undefined;
|
|
4978
|
+
}>, z.ZodObject<{
|
|
4979
|
+
type: z.ZodLiteral<"RadioGroup">;
|
|
4980
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4981
|
+
label: z.ZodString;
|
|
4982
|
+
value: z.ZodString;
|
|
4983
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
4984
|
+
}, "strip", z.ZodTypeAny, {
|
|
4985
|
+
value: string;
|
|
4986
|
+
label: string;
|
|
4987
|
+
disabled?: boolean | undefined;
|
|
4988
|
+
}, {
|
|
4989
|
+
value: string;
|
|
4990
|
+
label: string;
|
|
4991
|
+
disabled?: boolean | undefined;
|
|
4992
|
+
}>, "many">>;
|
|
4993
|
+
value: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4994
|
+
label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4995
|
+
id: z.ZodString;
|
|
4996
|
+
onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4997
|
+
onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4998
|
+
onChange: z.ZodOptional<z.ZodString>;
|
|
4999
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
5000
|
+
type: "RadioGroup";
|
|
5001
|
+
id: string;
|
|
5002
|
+
options?: {
|
|
5003
|
+
value: string;
|
|
5004
|
+
label: string;
|
|
5005
|
+
disabled?: boolean | undefined;
|
|
5006
|
+
}[] | undefined;
|
|
5007
|
+
value?: string | undefined;
|
|
5008
|
+
onCreate?: string | undefined;
|
|
5009
|
+
onDestroy?: string | undefined;
|
|
5010
|
+
label?: string | undefined;
|
|
5011
|
+
onChange?: string | undefined;
|
|
5012
|
+
}, {
|
|
5013
|
+
type: "RadioGroup";
|
|
5014
|
+
id: string;
|
|
5015
|
+
options?: {
|
|
5016
|
+
value: string;
|
|
5017
|
+
label: string;
|
|
5018
|
+
disabled?: boolean | undefined;
|
|
5019
|
+
}[] | undefined;
|
|
5020
|
+
value?: string | undefined;
|
|
5021
|
+
onCreate?: string | undefined;
|
|
5022
|
+
onDestroy?: string | undefined;
|
|
5023
|
+
label?: string | undefined;
|
|
5024
|
+
onChange?: string | undefined;
|
|
5025
|
+
}>, z.ZodObject<{
|
|
5026
|
+
type: z.ZodLiteral<"ToggleGroup">;
|
|
5027
|
+
alignment: z.ZodOptional<z.ZodOptional<z.ZodEnum<["start", "end"]>>>;
|
|
5028
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5029
|
+
label: z.ZodString;
|
|
5030
|
+
value: z.ZodString;
|
|
5031
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
5032
|
+
}, "strip", z.ZodTypeAny, {
|
|
5033
|
+
value: string;
|
|
5034
|
+
label: string;
|
|
5035
|
+
disabled?: boolean | undefined;
|
|
5036
|
+
}, {
|
|
5037
|
+
value: string;
|
|
5038
|
+
label: string;
|
|
5039
|
+
disabled?: boolean | undefined;
|
|
5040
|
+
}>, "many">>;
|
|
5041
|
+
value: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5042
|
+
label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5043
|
+
id: z.ZodString;
|
|
5044
|
+
onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5045
|
+
onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5046
|
+
onChange: z.ZodOptional<z.ZodString>;
|
|
5047
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
5048
|
+
type: "ToggleGroup";
|
|
5049
|
+
id: string;
|
|
5050
|
+
options?: {
|
|
5051
|
+
value: string;
|
|
5052
|
+
label: string;
|
|
5053
|
+
disabled?: boolean | undefined;
|
|
5054
|
+
}[] | undefined;
|
|
5055
|
+
value?: string[] | undefined;
|
|
5056
|
+
onCreate?: string | undefined;
|
|
5057
|
+
onDestroy?: string | undefined;
|
|
5058
|
+
label?: string | undefined;
|
|
5059
|
+
onChange?: string | undefined;
|
|
5060
|
+
alignment?: "start" | "end" | undefined;
|
|
5061
|
+
}, {
|
|
5062
|
+
type: "ToggleGroup";
|
|
5063
|
+
id: string;
|
|
5064
|
+
options?: {
|
|
5065
|
+
value: string;
|
|
5066
|
+
label: string;
|
|
5067
|
+
disabled?: boolean | undefined;
|
|
5068
|
+
}[] | undefined;
|
|
5069
|
+
value?: string[] | undefined;
|
|
5070
|
+
onCreate?: string | undefined;
|
|
5071
|
+
onDestroy?: string | undefined;
|
|
5072
|
+
label?: string | undefined;
|
|
5073
|
+
onChange?: string | undefined;
|
|
5074
|
+
alignment?: "start" | "end" | undefined;
|
|
5075
|
+
}>, z.ZodObject<{
|
|
5076
|
+
type: z.ZodLiteral<"Iframe">;
|
|
5077
|
+
height: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
5078
|
+
url: z.ZodOptional<z.ZodString>;
|
|
5079
|
+
id: z.ZodString;
|
|
5080
|
+
onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5081
|
+
onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5082
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
5083
|
+
type: "Iframe";
|
|
5084
|
+
id: string;
|
|
5085
|
+
url?: string | undefined;
|
|
5086
|
+
onCreate?: string | undefined;
|
|
5087
|
+
onDestroy?: string | undefined;
|
|
5088
|
+
height?: string | number | undefined;
|
|
5089
|
+
}, {
|
|
5090
|
+
type: "Iframe";
|
|
5091
|
+
id: string;
|
|
5092
|
+
url?: string | undefined;
|
|
5093
|
+
onCreate?: string | undefined;
|
|
5094
|
+
onDestroy?: string | undefined;
|
|
5095
|
+
height?: string | number | undefined;
|
|
5096
|
+
}>, z.ZodObject<{
|
|
5097
|
+
type: z.ZodLiteral<"Grid">;
|
|
5098
|
+
grid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5099
|
+
verticalAlignment: z.ZodOptional<z.ZodOptional<z.ZodEnum<["top", "center", "bottom"]>>>;
|
|
5100
|
+
horizontalDistribution: z.ZodOptional<z.ZodOptional<z.ZodEnum<["start", "center", "end", "space-between", "space-around", "space-evenly"]>>>;
|
|
5101
|
+
id: z.ZodString;
|
|
5102
|
+
onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5103
|
+
onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5104
|
+
items: z.ZodOptional<z.ZodType<(UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate> | MakeClonableSchema<UIIframeElementCreate>)[], z.ZodTypeDef, (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate> | MakeClonableSchema<UIIframeElementCreate>)[]>>;
|
|
5105
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
5106
|
+
type: "Grid";
|
|
5107
|
+
id: string;
|
|
5108
|
+
items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate> | MakeClonableSchema<UIIframeElementCreate>)[] | undefined;
|
|
5109
|
+
onCreate?: string | undefined;
|
|
5110
|
+
onDestroy?: string | undefined;
|
|
5111
|
+
grid?: string | undefined;
|
|
5112
|
+
verticalAlignment?: "center" | "top" | "bottom" | undefined;
|
|
5113
|
+
horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
5114
|
+
}, {
|
|
5115
|
+
type: "Grid";
|
|
5116
|
+
id: string;
|
|
5117
|
+
items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate> | MakeClonableSchema<UIIframeElementCreate>)[] | undefined;
|
|
5118
|
+
onCreate?: string | undefined;
|
|
5119
|
+
onDestroy?: string | undefined;
|
|
5120
|
+
grid?: string | undefined;
|
|
5121
|
+
verticalAlignment?: "center" | "top" | "bottom" | undefined;
|
|
5122
|
+
horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
5123
|
+
}>]>;
|
|
5124
|
+
}, "strip", z.ZodTypeAny, {
|
|
5125
|
+
element: {
|
|
5126
|
+
type: "Button";
|
|
5127
|
+
id: string;
|
|
5128
|
+
onCreate?: string | undefined;
|
|
5129
|
+
onDestroy?: string | undefined;
|
|
5130
|
+
label?: string | undefined;
|
|
5131
|
+
disabled?: boolean | undefined;
|
|
5132
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
5133
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
5134
|
+
onClick?: string | undefined;
|
|
5135
|
+
} | {
|
|
5136
|
+
type: "Text";
|
|
5137
|
+
id: string;
|
|
5138
|
+
onCreate?: string | undefined;
|
|
5139
|
+
onDestroy?: string | undefined;
|
|
5140
|
+
content?: string | undefined;
|
|
5141
|
+
} | {
|
|
5142
|
+
type: "TextInput";
|
|
5143
|
+
id: string;
|
|
5144
|
+
value?: string | undefined;
|
|
5145
|
+
onCreate?: string | undefined;
|
|
5146
|
+
onDestroy?: string | undefined;
|
|
5147
|
+
label?: string | undefined;
|
|
5148
|
+
placeholder?: string | undefined;
|
|
5149
|
+
onChange?: string | undefined;
|
|
5150
|
+
onBlur?: string | undefined;
|
|
5151
|
+
onFocus?: string | undefined;
|
|
5152
|
+
} | {
|
|
5153
|
+
type: "Select";
|
|
5154
|
+
id: string;
|
|
5155
|
+
options?: {
|
|
5156
|
+
value: string;
|
|
5157
|
+
label: string;
|
|
5158
|
+
disabled?: boolean | undefined;
|
|
5159
|
+
}[] | undefined;
|
|
5160
|
+
value?: string | undefined;
|
|
5161
|
+
onCreate?: string | undefined;
|
|
5162
|
+
onDestroy?: string | undefined;
|
|
5163
|
+
label?: string | undefined;
|
|
5164
|
+
placeholder?: string | undefined;
|
|
5165
|
+
onChange?: string | undefined;
|
|
5166
|
+
search?: boolean | undefined;
|
|
5167
|
+
} | {
|
|
5168
|
+
type: "Divider";
|
|
5169
|
+
id: string;
|
|
5170
|
+
onCreate?: string | undefined;
|
|
5171
|
+
onDestroy?: string | undefined;
|
|
5172
|
+
} | {
|
|
5173
|
+
type: "FlexibleSpace";
|
|
5174
|
+
id: string;
|
|
5175
|
+
onCreate?: string | undefined;
|
|
5176
|
+
onDestroy?: string | undefined;
|
|
5177
|
+
} | {
|
|
5178
|
+
type: "ButtonRow";
|
|
5179
|
+
id: string;
|
|
5180
|
+
align?: "start" | "end" | undefined;
|
|
5181
|
+
items?: {
|
|
5182
|
+
type: "Button";
|
|
5183
|
+
label: string;
|
|
5184
|
+
onClick: string;
|
|
5185
|
+
id?: string | undefined;
|
|
5186
|
+
onCreate?: string | undefined;
|
|
5187
|
+
onDestroy?: string | undefined;
|
|
5188
|
+
disabled?: boolean | undefined;
|
|
5189
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
5190
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
5191
|
+
}[] | undefined;
|
|
5192
|
+
onCreate?: string | undefined;
|
|
5193
|
+
onDestroy?: string | undefined;
|
|
5194
|
+
label?: string | undefined;
|
|
5195
|
+
} | {
|
|
5196
|
+
type: "CheckboxGroup";
|
|
5197
|
+
id: string;
|
|
5198
|
+
options?: {
|
|
5199
|
+
value: string;
|
|
5200
|
+
label: string;
|
|
5201
|
+
disabled?: boolean | undefined;
|
|
5202
|
+
}[] | undefined;
|
|
5203
|
+
value?: string[] | undefined;
|
|
5204
|
+
onCreate?: string | undefined;
|
|
5205
|
+
onDestroy?: string | undefined;
|
|
5206
|
+
label?: string | undefined;
|
|
5207
|
+
onChange?: string | undefined;
|
|
5208
|
+
} | {
|
|
5209
|
+
type: "RadioGroup";
|
|
5210
|
+
id: string;
|
|
5211
|
+
options?: {
|
|
5212
|
+
value: string;
|
|
5213
|
+
label: string;
|
|
5214
|
+
disabled?: boolean | undefined;
|
|
5215
|
+
}[] | undefined;
|
|
5216
|
+
value?: string | undefined;
|
|
5217
|
+
onCreate?: string | undefined;
|
|
5218
|
+
onDestroy?: string | undefined;
|
|
5219
|
+
label?: string | undefined;
|
|
5220
|
+
onChange?: string | undefined;
|
|
5221
|
+
} | {
|
|
5222
|
+
type: "ToggleGroup";
|
|
5223
|
+
id: string;
|
|
5224
|
+
options?: {
|
|
5225
|
+
value: string;
|
|
5226
|
+
label: string;
|
|
5227
|
+
disabled?: boolean | undefined;
|
|
5228
|
+
}[] | undefined;
|
|
5229
|
+
value?: string[] | undefined;
|
|
5230
|
+
onCreate?: string | undefined;
|
|
5231
|
+
onDestroy?: string | undefined;
|
|
5232
|
+
label?: string | undefined;
|
|
5233
|
+
onChange?: string | undefined;
|
|
5234
|
+
alignment?: "start" | "end" | undefined;
|
|
5235
|
+
} | {
|
|
5236
|
+
type: "Iframe";
|
|
5237
|
+
id: string;
|
|
5238
|
+
url?: string | undefined;
|
|
5239
|
+
onCreate?: string | undefined;
|
|
5240
|
+
onDestroy?: string | undefined;
|
|
5241
|
+
height?: string | number | undefined;
|
|
5242
|
+
} | {
|
|
5243
|
+
type: "Grid";
|
|
5244
|
+
id: string;
|
|
5245
|
+
items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate> | MakeClonableSchema<UIIframeElementCreate>)[] | undefined;
|
|
5246
|
+
onCreate?: string | undefined;
|
|
5247
|
+
onDestroy?: string | undefined;
|
|
5248
|
+
grid?: string | undefined;
|
|
5249
|
+
verticalAlignment?: "center" | "top" | "bottom" | undefined;
|
|
5250
|
+
horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
5251
|
+
};
|
|
5252
|
+
}, {
|
|
5253
|
+
element: {
|
|
5254
|
+
type: "Button";
|
|
5255
|
+
id: string;
|
|
5256
|
+
onCreate?: string | undefined;
|
|
5257
|
+
onDestroy?: string | undefined;
|
|
5258
|
+
label?: string | undefined;
|
|
5259
|
+
disabled?: boolean | undefined;
|
|
5260
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
5261
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
5262
|
+
onClick?: string | undefined;
|
|
5263
|
+
} | {
|
|
5264
|
+
type: "Text";
|
|
5265
|
+
id: string;
|
|
5266
|
+
onCreate?: string | undefined;
|
|
5267
|
+
onDestroy?: string | undefined;
|
|
5268
|
+
content?: string | undefined;
|
|
5269
|
+
} | {
|
|
5270
|
+
type: "TextInput";
|
|
5271
|
+
id: string;
|
|
5272
|
+
value?: string | undefined;
|
|
5273
|
+
onCreate?: string | undefined;
|
|
5274
|
+
onDestroy?: string | undefined;
|
|
5275
|
+
label?: string | undefined;
|
|
5276
|
+
placeholder?: string | undefined;
|
|
5277
|
+
onChange?: string | undefined;
|
|
5278
|
+
onBlur?: string | undefined;
|
|
5279
|
+
onFocus?: string | undefined;
|
|
5280
|
+
} | {
|
|
5281
|
+
type: "Select";
|
|
5282
|
+
id: string;
|
|
5283
|
+
options?: {
|
|
5284
|
+
value: string;
|
|
5285
|
+
label: string;
|
|
5286
|
+
disabled?: boolean | undefined;
|
|
5287
|
+
}[] | undefined;
|
|
5288
|
+
value?: string | undefined;
|
|
5289
|
+
onCreate?: string | undefined;
|
|
5290
|
+
onDestroy?: string | undefined;
|
|
5291
|
+
label?: string | undefined;
|
|
5292
|
+
placeholder?: string | undefined;
|
|
5293
|
+
onChange?: string | undefined;
|
|
5294
|
+
search?: boolean | undefined;
|
|
5295
|
+
} | {
|
|
5296
|
+
type: "Divider";
|
|
5297
|
+
id: string;
|
|
5298
|
+
onCreate?: string | undefined;
|
|
5299
|
+
onDestroy?: string | undefined;
|
|
5300
|
+
} | {
|
|
5301
|
+
type: "FlexibleSpace";
|
|
5302
|
+
id: string;
|
|
5303
|
+
onCreate?: string | undefined;
|
|
5304
|
+
onDestroy?: string | undefined;
|
|
5305
|
+
} | {
|
|
5306
|
+
type: "ButtonRow";
|
|
5307
|
+
id: string;
|
|
5308
|
+
align?: "start" | "end" | undefined;
|
|
5309
|
+
items?: {
|
|
5310
|
+
type: "Button";
|
|
5311
|
+
label: string;
|
|
5312
|
+
onClick: string;
|
|
5313
|
+
id?: string | undefined;
|
|
5314
|
+
onCreate?: string | undefined;
|
|
5315
|
+
onDestroy?: string | undefined;
|
|
5316
|
+
disabled?: boolean | undefined;
|
|
5317
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
5318
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
5319
|
+
}[] | undefined;
|
|
5320
|
+
onCreate?: string | undefined;
|
|
5321
|
+
onDestroy?: string | undefined;
|
|
5322
|
+
label?: string | undefined;
|
|
5323
|
+
} | {
|
|
5324
|
+
type: "CheckboxGroup";
|
|
5325
|
+
id: string;
|
|
5326
|
+
options?: {
|
|
5327
|
+
value: string;
|
|
5328
|
+
label: string;
|
|
5329
|
+
disabled?: boolean | undefined;
|
|
5330
|
+
}[] | undefined;
|
|
5331
|
+
value?: string[] | undefined;
|
|
5332
|
+
onCreate?: string | undefined;
|
|
5333
|
+
onDestroy?: string | undefined;
|
|
5334
|
+
label?: string | undefined;
|
|
5335
|
+
onChange?: string | undefined;
|
|
5336
|
+
} | {
|
|
5337
|
+
type: "RadioGroup";
|
|
5338
|
+
id: string;
|
|
5339
|
+
options?: {
|
|
5340
|
+
value: string;
|
|
5341
|
+
label: string;
|
|
5342
|
+
disabled?: boolean | undefined;
|
|
5343
|
+
}[] | undefined;
|
|
5344
|
+
value?: string | undefined;
|
|
5345
|
+
onCreate?: string | undefined;
|
|
5346
|
+
onDestroy?: string | undefined;
|
|
5347
|
+
label?: string | undefined;
|
|
5348
|
+
onChange?: string | undefined;
|
|
5349
|
+
} | {
|
|
5350
|
+
type: "ToggleGroup";
|
|
5351
|
+
id: string;
|
|
5352
|
+
options?: {
|
|
5353
|
+
value: string;
|
|
5354
|
+
label: string;
|
|
5355
|
+
disabled?: boolean | undefined;
|
|
5356
|
+
}[] | undefined;
|
|
5357
|
+
value?: string[] | undefined;
|
|
5358
|
+
onCreate?: string | undefined;
|
|
5359
|
+
onDestroy?: string | undefined;
|
|
5360
|
+
label?: string | undefined;
|
|
5361
|
+
onChange?: string | undefined;
|
|
5362
|
+
alignment?: "start" | "end" | undefined;
|
|
5363
|
+
} | {
|
|
5364
|
+
type: "Iframe";
|
|
5365
|
+
id: string;
|
|
5366
|
+
url?: string | undefined;
|
|
5367
|
+
onCreate?: string | undefined;
|
|
5368
|
+
onDestroy?: string | undefined;
|
|
5369
|
+
height?: string | number | undefined;
|
|
5370
|
+
} | {
|
|
5371
|
+
type: "Grid";
|
|
5372
|
+
id: string;
|
|
5373
|
+
items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate> | MakeClonableSchema<UIIframeElementCreate>)[] | undefined;
|
|
5374
|
+
onCreate?: string | undefined;
|
|
5375
|
+
onDestroy?: string | undefined;
|
|
5376
|
+
grid?: string | undefined;
|
|
5377
|
+
verticalAlignment?: "center" | "top" | "bottom" | undefined;
|
|
5378
|
+
horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
5379
|
+
};
|
|
5380
|
+
}>, "many">;
|
|
5381
|
+
}, "strip", z.ZodTypeAny, {
|
|
5382
|
+
panelId: string;
|
|
5383
|
+
elements: {
|
|
5384
|
+
element: {
|
|
5385
|
+
type: "Button";
|
|
5386
|
+
id: string;
|
|
5387
|
+
onCreate?: string | undefined;
|
|
5388
|
+
onDestroy?: string | undefined;
|
|
5389
|
+
label?: string | undefined;
|
|
5390
|
+
disabled?: boolean | undefined;
|
|
5391
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
5392
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
5393
|
+
onClick?: string | undefined;
|
|
5394
|
+
} | {
|
|
5395
|
+
type: "Text";
|
|
5396
|
+
id: string;
|
|
5397
|
+
onCreate?: string | undefined;
|
|
5398
|
+
onDestroy?: string | undefined;
|
|
5399
|
+
content?: string | undefined;
|
|
5400
|
+
} | {
|
|
5401
|
+
type: "TextInput";
|
|
5402
|
+
id: string;
|
|
5403
|
+
value?: string | undefined;
|
|
5404
|
+
onCreate?: string | undefined;
|
|
5405
|
+
onDestroy?: string | undefined;
|
|
5406
|
+
label?: string | undefined;
|
|
5407
|
+
placeholder?: string | undefined;
|
|
5408
|
+
onChange?: string | undefined;
|
|
5409
|
+
onBlur?: string | undefined;
|
|
5410
|
+
onFocus?: string | undefined;
|
|
5411
|
+
} | {
|
|
5412
|
+
type: "Select";
|
|
5413
|
+
id: string;
|
|
5414
|
+
options?: {
|
|
5415
|
+
value: string;
|
|
5416
|
+
label: string;
|
|
5417
|
+
disabled?: boolean | undefined;
|
|
5418
|
+
}[] | undefined;
|
|
5419
|
+
value?: string | undefined;
|
|
5420
|
+
onCreate?: string | undefined;
|
|
5421
|
+
onDestroy?: string | undefined;
|
|
5422
|
+
label?: string | undefined;
|
|
5423
|
+
placeholder?: string | undefined;
|
|
5424
|
+
onChange?: string | undefined;
|
|
5425
|
+
search?: boolean | undefined;
|
|
5426
|
+
} | {
|
|
5427
|
+
type: "Divider";
|
|
5428
|
+
id: string;
|
|
5429
|
+
onCreate?: string | undefined;
|
|
5430
|
+
onDestroy?: string | undefined;
|
|
5431
|
+
} | {
|
|
5432
|
+
type: "FlexibleSpace";
|
|
5433
|
+
id: string;
|
|
5434
|
+
onCreate?: string | undefined;
|
|
5435
|
+
onDestroy?: string | undefined;
|
|
5436
|
+
} | {
|
|
5437
|
+
type: "ButtonRow";
|
|
5438
|
+
id: string;
|
|
5439
|
+
align?: "start" | "end" | undefined;
|
|
5440
|
+
items?: {
|
|
5441
|
+
type: "Button";
|
|
5442
|
+
label: string;
|
|
5443
|
+
onClick: string;
|
|
5444
|
+
id?: string | undefined;
|
|
5445
|
+
onCreate?: string | undefined;
|
|
5446
|
+
onDestroy?: string | undefined;
|
|
5447
|
+
disabled?: boolean | undefined;
|
|
5448
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
5449
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
5450
|
+
}[] | undefined;
|
|
5451
|
+
onCreate?: string | undefined;
|
|
5452
|
+
onDestroy?: string | undefined;
|
|
5453
|
+
label?: string | undefined;
|
|
5454
|
+
} | {
|
|
5455
|
+
type: "CheckboxGroup";
|
|
5456
|
+
id: string;
|
|
5457
|
+
options?: {
|
|
5458
|
+
value: string;
|
|
5459
|
+
label: string;
|
|
5460
|
+
disabled?: boolean | undefined;
|
|
5461
|
+
}[] | undefined;
|
|
5462
|
+
value?: string[] | undefined;
|
|
5463
|
+
onCreate?: string | undefined;
|
|
5464
|
+
onDestroy?: string | undefined;
|
|
5465
|
+
label?: string | undefined;
|
|
5466
|
+
onChange?: string | undefined;
|
|
5467
|
+
} | {
|
|
5468
|
+
type: "RadioGroup";
|
|
5469
|
+
id: string;
|
|
5470
|
+
options?: {
|
|
5471
|
+
value: string;
|
|
5472
|
+
label: string;
|
|
5473
|
+
disabled?: boolean | undefined;
|
|
5474
|
+
}[] | undefined;
|
|
5475
|
+
value?: string | undefined;
|
|
5476
|
+
onCreate?: string | undefined;
|
|
5477
|
+
onDestroy?: string | undefined;
|
|
5478
|
+
label?: string | undefined;
|
|
5479
|
+
onChange?: string | undefined;
|
|
5480
|
+
} | {
|
|
5481
|
+
type: "ToggleGroup";
|
|
5482
|
+
id: string;
|
|
5483
|
+
options?: {
|
|
5484
|
+
value: string;
|
|
5485
|
+
label: string;
|
|
5486
|
+
disabled?: boolean | undefined;
|
|
5487
|
+
}[] | undefined;
|
|
5488
|
+
value?: string[] | undefined;
|
|
5489
|
+
onCreate?: string | undefined;
|
|
5490
|
+
onDestroy?: string | undefined;
|
|
5491
|
+
label?: string | undefined;
|
|
5492
|
+
onChange?: string | undefined;
|
|
5493
|
+
alignment?: "start" | "end" | undefined;
|
|
5494
|
+
} | {
|
|
5495
|
+
type: "Iframe";
|
|
5496
|
+
id: string;
|
|
5497
|
+
url?: string | undefined;
|
|
5498
|
+
onCreate?: string | undefined;
|
|
5499
|
+
onDestroy?: string | undefined;
|
|
5500
|
+
height?: string | number | undefined;
|
|
5501
|
+
} | {
|
|
5502
|
+
type: "Grid";
|
|
5503
|
+
id: string;
|
|
5504
|
+
items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate> | MakeClonableSchema<UIIframeElementCreate>)[] | undefined;
|
|
5505
|
+
onCreate?: string | undefined;
|
|
5506
|
+
onDestroy?: string | undefined;
|
|
5507
|
+
grid?: string | undefined;
|
|
5508
|
+
verticalAlignment?: "center" | "top" | "bottom" | undefined;
|
|
5509
|
+
horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
5510
|
+
};
|
|
5511
|
+
}[];
|
|
5512
|
+
}, {
|
|
5513
|
+
panelId: string;
|
|
5514
|
+
elements: {
|
|
5515
|
+
element: {
|
|
5516
|
+
type: "Button";
|
|
5517
|
+
id: string;
|
|
5518
|
+
onCreate?: string | undefined;
|
|
5519
|
+
onDestroy?: string | undefined;
|
|
5520
|
+
label?: string | undefined;
|
|
5521
|
+
disabled?: boolean | undefined;
|
|
5522
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
5523
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
5524
|
+
onClick?: string | undefined;
|
|
5525
|
+
} | {
|
|
5526
|
+
type: "Text";
|
|
5527
|
+
id: string;
|
|
5528
|
+
onCreate?: string | undefined;
|
|
5529
|
+
onDestroy?: string | undefined;
|
|
5530
|
+
content?: string | undefined;
|
|
5531
|
+
} | {
|
|
5532
|
+
type: "TextInput";
|
|
5533
|
+
id: string;
|
|
5534
|
+
value?: string | undefined;
|
|
5535
|
+
onCreate?: string | undefined;
|
|
5536
|
+
onDestroy?: string | undefined;
|
|
5537
|
+
label?: string | undefined;
|
|
5538
|
+
placeholder?: string | undefined;
|
|
5539
|
+
onChange?: string | undefined;
|
|
5540
|
+
onBlur?: string | undefined;
|
|
5541
|
+
onFocus?: string | undefined;
|
|
5542
|
+
} | {
|
|
5543
|
+
type: "Select";
|
|
5544
|
+
id: string;
|
|
5545
|
+
options?: {
|
|
5546
|
+
value: string;
|
|
5547
|
+
label: string;
|
|
5548
|
+
disabled?: boolean | undefined;
|
|
5549
|
+
}[] | undefined;
|
|
5550
|
+
value?: string | undefined;
|
|
5551
|
+
onCreate?: string | undefined;
|
|
5552
|
+
onDestroy?: string | undefined;
|
|
5553
|
+
label?: string | undefined;
|
|
5554
|
+
placeholder?: string | undefined;
|
|
5555
|
+
onChange?: string | undefined;
|
|
5556
|
+
search?: boolean | undefined;
|
|
5557
|
+
} | {
|
|
5558
|
+
type: "Divider";
|
|
5559
|
+
id: string;
|
|
5560
|
+
onCreate?: string | undefined;
|
|
5561
|
+
onDestroy?: string | undefined;
|
|
5562
|
+
} | {
|
|
5563
|
+
type: "FlexibleSpace";
|
|
5564
|
+
id: string;
|
|
5565
|
+
onCreate?: string | undefined;
|
|
5566
|
+
onDestroy?: string | undefined;
|
|
5567
|
+
} | {
|
|
5568
|
+
type: "ButtonRow";
|
|
5569
|
+
id: string;
|
|
5570
|
+
align?: "start" | "end" | undefined;
|
|
5571
|
+
items?: {
|
|
5572
|
+
type: "Button";
|
|
5573
|
+
label: string;
|
|
5574
|
+
onClick: string;
|
|
5575
|
+
id?: string | undefined;
|
|
5576
|
+
onCreate?: string | undefined;
|
|
5577
|
+
onDestroy?: string | undefined;
|
|
5578
|
+
disabled?: boolean | undefined;
|
|
5579
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
5580
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
5581
|
+
}[] | undefined;
|
|
5582
|
+
onCreate?: string | undefined;
|
|
5583
|
+
onDestroy?: string | undefined;
|
|
5584
|
+
label?: string | undefined;
|
|
5585
|
+
} | {
|
|
5586
|
+
type: "CheckboxGroup";
|
|
5587
|
+
id: string;
|
|
5588
|
+
options?: {
|
|
5589
|
+
value: string;
|
|
5590
|
+
label: string;
|
|
5591
|
+
disabled?: boolean | undefined;
|
|
5592
|
+
}[] | undefined;
|
|
5593
|
+
value?: string[] | undefined;
|
|
5594
|
+
onCreate?: string | undefined;
|
|
5595
|
+
onDestroy?: string | undefined;
|
|
5596
|
+
label?: string | undefined;
|
|
5597
|
+
onChange?: string | undefined;
|
|
5598
|
+
} | {
|
|
5599
|
+
type: "RadioGroup";
|
|
5600
|
+
id: string;
|
|
5601
|
+
options?: {
|
|
5602
|
+
value: string;
|
|
5603
|
+
label: string;
|
|
5604
|
+
disabled?: boolean | undefined;
|
|
5605
|
+
}[] | undefined;
|
|
5606
|
+
value?: string | undefined;
|
|
5607
|
+
onCreate?: string | undefined;
|
|
5608
|
+
onDestroy?: string | undefined;
|
|
5609
|
+
label?: string | undefined;
|
|
5610
|
+
onChange?: string | undefined;
|
|
5611
|
+
} | {
|
|
5612
|
+
type: "ToggleGroup";
|
|
5613
|
+
id: string;
|
|
5614
|
+
options?: {
|
|
5615
|
+
value: string;
|
|
5616
|
+
label: string;
|
|
5617
|
+
disabled?: boolean | undefined;
|
|
5618
|
+
}[] | undefined;
|
|
5619
|
+
value?: string[] | undefined;
|
|
5620
|
+
onCreate?: string | undefined;
|
|
5621
|
+
onDestroy?: string | undefined;
|
|
5622
|
+
label?: string | undefined;
|
|
5623
|
+
onChange?: string | undefined;
|
|
5624
|
+
alignment?: "start" | "end" | undefined;
|
|
5625
|
+
} | {
|
|
5626
|
+
type: "Iframe";
|
|
5627
|
+
id: string;
|
|
5628
|
+
url?: string | undefined;
|
|
5629
|
+
onCreate?: string | undefined;
|
|
5630
|
+
onDestroy?: string | undefined;
|
|
5631
|
+
height?: string | number | undefined;
|
|
5632
|
+
} | {
|
|
5633
|
+
type: "Grid";
|
|
5634
|
+
id: string;
|
|
5635
|
+
items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate> | MakeClonableSchema<UIIframeElementCreate>)[] | undefined;
|
|
5636
|
+
onCreate?: string | undefined;
|
|
5637
|
+
onDestroy?: string | undefined;
|
|
5638
|
+
grid?: string | undefined;
|
|
5639
|
+
verticalAlignment?: "center" | "top" | "bottom" | undefined;
|
|
5640
|
+
horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
5641
|
+
};
|
|
5642
|
+
}[];
|
|
5643
|
+
}>;
|
|
5644
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
5645
|
+
params: {
|
|
5646
|
+
panelId: string;
|
|
5647
|
+
elements: {
|
|
5648
|
+
element: {
|
|
5649
|
+
type: "Button";
|
|
5650
|
+
id: string;
|
|
5651
|
+
onCreate?: string | undefined;
|
|
5652
|
+
onDestroy?: string | undefined;
|
|
5653
|
+
label?: string | undefined;
|
|
5654
|
+
disabled?: boolean | undefined;
|
|
5655
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
5656
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
5657
|
+
onClick?: string | undefined;
|
|
5658
|
+
} | {
|
|
5659
|
+
type: "Text";
|
|
5660
|
+
id: string;
|
|
5661
|
+
onCreate?: string | undefined;
|
|
5662
|
+
onDestroy?: string | undefined;
|
|
5663
|
+
content?: string | undefined;
|
|
5664
|
+
} | {
|
|
5665
|
+
type: "TextInput";
|
|
5666
|
+
id: string;
|
|
5667
|
+
value?: string | undefined;
|
|
5668
|
+
onCreate?: string | undefined;
|
|
5669
|
+
onDestroy?: string | undefined;
|
|
5670
|
+
label?: string | undefined;
|
|
5671
|
+
placeholder?: string | undefined;
|
|
5672
|
+
onChange?: string | undefined;
|
|
5673
|
+
onBlur?: string | undefined;
|
|
5674
|
+
onFocus?: string | undefined;
|
|
5675
|
+
} | {
|
|
5676
|
+
type: "Select";
|
|
5677
|
+
id: string;
|
|
5678
|
+
options?: {
|
|
5679
|
+
value: string;
|
|
5680
|
+
label: string;
|
|
5681
|
+
disabled?: boolean | undefined;
|
|
5682
|
+
}[] | undefined;
|
|
5683
|
+
value?: string | undefined;
|
|
5684
|
+
onCreate?: string | undefined;
|
|
5685
|
+
onDestroy?: string | undefined;
|
|
5686
|
+
label?: string | undefined;
|
|
5687
|
+
placeholder?: string | undefined;
|
|
5688
|
+
onChange?: string | undefined;
|
|
5689
|
+
search?: boolean | undefined;
|
|
5690
|
+
} | {
|
|
5691
|
+
type: "Divider";
|
|
5692
|
+
id: string;
|
|
5693
|
+
onCreate?: string | undefined;
|
|
5694
|
+
onDestroy?: string | undefined;
|
|
5695
|
+
} | {
|
|
5696
|
+
type: "FlexibleSpace";
|
|
5697
|
+
id: string;
|
|
5698
|
+
onCreate?: string | undefined;
|
|
5699
|
+
onDestroy?: string | undefined;
|
|
5700
|
+
} | {
|
|
5701
|
+
type: "ButtonRow";
|
|
5702
|
+
id: string;
|
|
5703
|
+
align?: "start" | "end" | undefined;
|
|
5704
|
+
items?: {
|
|
5705
|
+
type: "Button";
|
|
5706
|
+
label: string;
|
|
5707
|
+
onClick: string;
|
|
5708
|
+
id?: string | undefined;
|
|
5709
|
+
onCreate?: string | undefined;
|
|
5710
|
+
onDestroy?: string | undefined;
|
|
5711
|
+
disabled?: boolean | undefined;
|
|
5712
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
5713
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
5714
|
+
}[] | undefined;
|
|
5715
|
+
onCreate?: string | undefined;
|
|
5716
|
+
onDestroy?: string | undefined;
|
|
5717
|
+
label?: string | undefined;
|
|
5718
|
+
} | {
|
|
5719
|
+
type: "CheckboxGroup";
|
|
5720
|
+
id: string;
|
|
5721
|
+
options?: {
|
|
5722
|
+
value: string;
|
|
5723
|
+
label: string;
|
|
5724
|
+
disabled?: boolean | undefined;
|
|
5725
|
+
}[] | undefined;
|
|
5726
|
+
value?: string[] | undefined;
|
|
5727
|
+
onCreate?: string | undefined;
|
|
5728
|
+
onDestroy?: string | undefined;
|
|
5729
|
+
label?: string | undefined;
|
|
5730
|
+
onChange?: string | undefined;
|
|
5731
|
+
} | {
|
|
5732
|
+
type: "RadioGroup";
|
|
5733
|
+
id: string;
|
|
5734
|
+
options?: {
|
|
5735
|
+
value: string;
|
|
5736
|
+
label: string;
|
|
5737
|
+
disabled?: boolean | undefined;
|
|
5738
|
+
}[] | undefined;
|
|
5739
|
+
value?: string | undefined;
|
|
5740
|
+
onCreate?: string | undefined;
|
|
5741
|
+
onDestroy?: string | undefined;
|
|
5742
|
+
label?: string | undefined;
|
|
5743
|
+
onChange?: string | undefined;
|
|
5744
|
+
} | {
|
|
5745
|
+
type: "ToggleGroup";
|
|
5746
|
+
id: string;
|
|
5747
|
+
options?: {
|
|
5748
|
+
value: string;
|
|
5749
|
+
label: string;
|
|
5750
|
+
disabled?: boolean | undefined;
|
|
5751
|
+
}[] | undefined;
|
|
5752
|
+
value?: string[] | undefined;
|
|
5753
|
+
onCreate?: string | undefined;
|
|
5754
|
+
onDestroy?: string | undefined;
|
|
5755
|
+
label?: string | undefined;
|
|
5756
|
+
onChange?: string | undefined;
|
|
5757
|
+
alignment?: "start" | "end" | undefined;
|
|
5758
|
+
} | {
|
|
5759
|
+
type: "Iframe";
|
|
5760
|
+
id: string;
|
|
5761
|
+
url?: string | undefined;
|
|
5762
|
+
onCreate?: string | undefined;
|
|
5763
|
+
onDestroy?: string | undefined;
|
|
5764
|
+
height?: string | number | undefined;
|
|
5765
|
+
} | {
|
|
5766
|
+
type: "Grid";
|
|
5767
|
+
id: string;
|
|
5768
|
+
items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate> | MakeClonableSchema<UIIframeElementCreate>)[] | undefined;
|
|
5769
|
+
onCreate?: string | undefined;
|
|
5770
|
+
onDestroy?: string | undefined;
|
|
5771
|
+
grid?: string | undefined;
|
|
5772
|
+
verticalAlignment?: "center" | "top" | "bottom" | undefined;
|
|
5773
|
+
horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
5774
|
+
};
|
|
5775
|
+
}[];
|
|
5776
|
+
};
|
|
5777
|
+
type: "updatePanelElements";
|
|
5778
|
+
}, {
|
|
5779
|
+
params: {
|
|
5780
|
+
panelId: string;
|
|
5781
|
+
elements: {
|
|
5782
|
+
element: {
|
|
5783
|
+
type: "Button";
|
|
5784
|
+
id: string;
|
|
5785
|
+
onCreate?: string | undefined;
|
|
5786
|
+
onDestroy?: string | undefined;
|
|
5787
|
+
label?: string | undefined;
|
|
5788
|
+
disabled?: boolean | undefined;
|
|
5789
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
5790
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
5791
|
+
onClick?: string | undefined;
|
|
5792
|
+
} | {
|
|
5793
|
+
type: "Text";
|
|
5794
|
+
id: string;
|
|
5795
|
+
onCreate?: string | undefined;
|
|
5796
|
+
onDestroy?: string | undefined;
|
|
5797
|
+
content?: string | undefined;
|
|
5798
|
+
} | {
|
|
5799
|
+
type: "TextInput";
|
|
5800
|
+
id: string;
|
|
5801
|
+
value?: string | undefined;
|
|
5802
|
+
onCreate?: string | undefined;
|
|
5803
|
+
onDestroy?: string | undefined;
|
|
5804
|
+
label?: string | undefined;
|
|
5805
|
+
placeholder?: string | undefined;
|
|
5806
|
+
onChange?: string | undefined;
|
|
5807
|
+
onBlur?: string | undefined;
|
|
5808
|
+
onFocus?: string | undefined;
|
|
5809
|
+
} | {
|
|
5810
|
+
type: "Select";
|
|
5811
|
+
id: string;
|
|
5812
|
+
options?: {
|
|
5813
|
+
value: string;
|
|
5814
|
+
label: string;
|
|
5815
|
+
disabled?: boolean | undefined;
|
|
5816
|
+
}[] | undefined;
|
|
5817
|
+
value?: string | undefined;
|
|
5818
|
+
onCreate?: string | undefined;
|
|
5819
|
+
onDestroy?: string | undefined;
|
|
5820
|
+
label?: string | undefined;
|
|
5821
|
+
placeholder?: string | undefined;
|
|
5822
|
+
onChange?: string | undefined;
|
|
5823
|
+
search?: boolean | undefined;
|
|
5824
|
+
} | {
|
|
5825
|
+
type: "Divider";
|
|
5826
|
+
id: string;
|
|
5827
|
+
onCreate?: string | undefined;
|
|
5828
|
+
onDestroy?: string | undefined;
|
|
5829
|
+
} | {
|
|
5830
|
+
type: "FlexibleSpace";
|
|
5831
|
+
id: string;
|
|
5832
|
+
onCreate?: string | undefined;
|
|
5833
|
+
onDestroy?: string | undefined;
|
|
5834
|
+
} | {
|
|
5835
|
+
type: "ButtonRow";
|
|
5836
|
+
id: string;
|
|
5837
|
+
align?: "start" | "end" | undefined;
|
|
5838
|
+
items?: {
|
|
5839
|
+
type: "Button";
|
|
5840
|
+
label: string;
|
|
5841
|
+
onClick: string;
|
|
5842
|
+
id?: string | undefined;
|
|
5843
|
+
onCreate?: string | undefined;
|
|
5844
|
+
onDestroy?: string | undefined;
|
|
5845
|
+
disabled?: boolean | undefined;
|
|
5846
|
+
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
5847
|
+
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
5848
|
+
}[] | undefined;
|
|
5849
|
+
onCreate?: string | undefined;
|
|
5850
|
+
onDestroy?: string | undefined;
|
|
5851
|
+
label?: string | undefined;
|
|
5852
|
+
} | {
|
|
5853
|
+
type: "CheckboxGroup";
|
|
5854
|
+
id: string;
|
|
5855
|
+
options?: {
|
|
5856
|
+
value: string;
|
|
5857
|
+
label: string;
|
|
5858
|
+
disabled?: boolean | undefined;
|
|
5859
|
+
}[] | undefined;
|
|
5860
|
+
value?: string[] | undefined;
|
|
5861
|
+
onCreate?: string | undefined;
|
|
5862
|
+
onDestroy?: string | undefined;
|
|
5863
|
+
label?: string | undefined;
|
|
5864
|
+
onChange?: string | undefined;
|
|
5865
|
+
} | {
|
|
5866
|
+
type: "RadioGroup";
|
|
5867
|
+
id: string;
|
|
5868
|
+
options?: {
|
|
5869
|
+
value: string;
|
|
5870
|
+
label: string;
|
|
5871
|
+
disabled?: boolean | undefined;
|
|
5872
|
+
}[] | undefined;
|
|
5873
|
+
value?: string | undefined;
|
|
5874
|
+
onCreate?: string | undefined;
|
|
5875
|
+
onDestroy?: string | undefined;
|
|
5876
|
+
label?: string | undefined;
|
|
5877
|
+
onChange?: string | undefined;
|
|
5878
|
+
} | {
|
|
5879
|
+
type: "ToggleGroup";
|
|
5880
|
+
id: string;
|
|
5881
|
+
options?: {
|
|
5882
|
+
value: string;
|
|
5883
|
+
label: string;
|
|
5884
|
+
disabled?: boolean | undefined;
|
|
5885
|
+
}[] | undefined;
|
|
5886
|
+
value?: string[] | undefined;
|
|
5887
|
+
onCreate?: string | undefined;
|
|
5888
|
+
onDestroy?: string | undefined;
|
|
5889
|
+
label?: string | undefined;
|
|
5890
|
+
onChange?: string | undefined;
|
|
5891
|
+
alignment?: "start" | "end" | undefined;
|
|
5892
|
+
} | {
|
|
5893
|
+
type: "Iframe";
|
|
5894
|
+
id: string;
|
|
5895
|
+
url?: string | undefined;
|
|
5896
|
+
onCreate?: string | undefined;
|
|
5897
|
+
onDestroy?: string | undefined;
|
|
5898
|
+
height?: string | number | undefined;
|
|
5899
|
+
} | {
|
|
5900
|
+
type: "Grid";
|
|
5901
|
+
id: string;
|
|
5902
|
+
items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate> | MakeClonableSchema<UIIframeElementCreate>)[] | undefined;
|
|
5903
|
+
onCreate?: string | undefined;
|
|
5904
|
+
onDestroy?: string | undefined;
|
|
5905
|
+
grid?: string | undefined;
|
|
5906
|
+
verticalAlignment?: "center" | "top" | "bottom" | undefined;
|
|
5907
|
+
horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
5908
|
+
};
|
|
5909
|
+
}[];
|
|
5910
|
+
};
|
|
5911
|
+
type: "updatePanelElements";
|
|
5912
|
+
}>;
|
|
5913
|
+
declare const DeletePanelElementsMessage: z.ZodObject<{
|
|
5914
|
+
type: z.ZodLiteral<"deletePanelElements">;
|
|
5915
|
+
params: z.ZodObject<{
|
|
5916
|
+
panelId: z.ZodString;
|
|
5917
|
+
elements: z.ZodArray<z.ZodString, "many">;
|
|
5918
|
+
}, "strip", z.ZodTypeAny, {
|
|
5919
|
+
panelId: string;
|
|
5920
|
+
elements: string[];
|
|
5921
|
+
}, {
|
|
5922
|
+
panelId: string;
|
|
5923
|
+
elements: string[];
|
|
5924
|
+
}>;
|
|
5925
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
5926
|
+
params: {
|
|
5927
|
+
panelId: string;
|
|
5928
|
+
elements: string[];
|
|
5929
|
+
};
|
|
5930
|
+
type: "deletePanelElements";
|
|
5931
|
+
}, {
|
|
5932
|
+
params: {
|
|
5933
|
+
panelId: string;
|
|
5934
|
+
elements: string[];
|
|
5935
|
+
};
|
|
5936
|
+
type: "deletePanelElements";
|
|
5937
|
+
}>;
|
|
4099
5938
|
declare const UiControlsMessage: z.ZodObject<{
|
|
4100
5939
|
type: z.ZodLiteral<"updateUiControls">;
|
|
4101
5940
|
params: z.ZodObject<{
|
|
@@ -4239,6 +6078,15 @@ declare const HideLayerDataTableMessage: z.ZodObject<{
|
|
|
4239
6078
|
}>;
|
|
4240
6079
|
type UiSchema = {
|
|
4241
6080
|
methods: {
|
|
6081
|
+
createActionTrigger: Method<zInfer<typeof CreateActionTriggerMessage>, zInfer<typeof uiActionTriggerSchema.clonable>>;
|
|
6082
|
+
updateActionTrigger: Method<zInfer<typeof UpdateActionTriggerMessage>, zInfer<typeof uiActionTriggerSchema.clonable>>;
|
|
6083
|
+
deleteActionTrigger: Method<zInfer<typeof DeleteActionTriggerMessage>>;
|
|
6084
|
+
createPanelId: Method<zInfer<typeof CreatePanelIdMessage>>;
|
|
6085
|
+
createOrUpdatePanel: Method<zInfer<typeof CreateOrUpdatePanelMessage>, zInfer<typeof uiPanelCreateSchema.clonable>>;
|
|
6086
|
+
deletePanel: Method<zInfer<typeof DeletePanelMessage>>;
|
|
6087
|
+
createPanelElements: Method<zInfer<typeof CreatePanelElementsMessage>, zInfer<typeof uiPanelCreateSchema.clonable>>;
|
|
6088
|
+
updatePanelElements: Method<zInfer<typeof UpdatePanelElementsMessage>, zInfer<typeof uiPanelCreateSchema.clonable>>;
|
|
6089
|
+
deletePanelElements: Method<zInfer<typeof DeletePanelElementsMessage>>;
|
|
4242
6090
|
updateUiControls: Method<zInfer<typeof UiControlsMessage>>;
|
|
4243
6091
|
setOnMapInteractionsUi: Method<zInfer<typeof OnMapInteractionsMessage>>;
|
|
4244
6092
|
showLayerDataTable: Method<zInfer<typeof ShowLayerDataTableMessage>>;
|
|
@@ -4385,7 +6233,11 @@ type FeltHandlers = {
|
|
|
4385
6233
|
listeners: FeltListenerHandlers;
|
|
4386
6234
|
};
|
|
4387
6235
|
type MethodSpec = UnionToIntersection<AllModules["methods"]>;
|
|
4388
|
-
type ListenerSpec = UnionToIntersection<AllModules["listeners"]
|
|
6236
|
+
type ListenerSpec = UnionToIntersection<AllModules["listeners"]> & {
|
|
6237
|
+
onGenericEvent: Listener<{
|
|
6238
|
+
id: string;
|
|
6239
|
+
}, void>;
|
|
6240
|
+
};
|
|
4389
6241
|
type ExtractMethodParams<T extends Record<string, AnyFunction | {
|
|
4390
6242
|
request: {
|
|
4391
6243
|
params?: any;
|