@feltmaps/js-sdk 1.7.0-next.15 → 1.7.0-next.16
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.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/{controller-OkHAvGYe.d.cts → controller-DoTYIPvN.d.cts} +209 -996
- package/dist/{controller-OkHAvGYe.d.ts → controller-DoTYIPvN.d.ts} +209 -996
- package/dist/controller-bundled.d.ts +209 -996
- package/dist/handler.cjs +1 -1
- package/dist/handler.d.cts +10 -441
- package/dist/handler.d.ts +10 -441
- package/dist/handler.js +1 -1
- package/package.json +1 -1
|
@@ -9670,7 +9670,7 @@ interface UIButtonElementCreateClonable extends MakeClonableSchema<UIButtonEleme
|
|
|
9670
9670
|
interface UIButtonElementUpdate extends MakeUpdateSchema<UIButtonElement, UIButtonElementCreate> {
|
|
9671
9671
|
}
|
|
9672
9672
|
|
|
9673
|
-
declare const
|
|
9673
|
+
declare const uiDividerElementSchema: ZodObject<objectUtil.extendShape<objectUtil.extendShape<{
|
|
9674
9674
|
onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
9675
9675
|
id: ZodString;
|
|
9676
9676
|
}, "strip", ZodTypeAny, {
|
|
@@ -9688,9 +9688,9 @@ declare const uiFlexibleSpaceElementSchema: ZodObject<objectUtil.extendShape<obj
|
|
|
9688
9688
|
}, {
|
|
9689
9689
|
id: ZodString;
|
|
9690
9690
|
}>, {
|
|
9691
|
-
type: ZodLiteral<"
|
|
9691
|
+
type: ZodLiteral<"Divider">;
|
|
9692
9692
|
}>, "strip", ZodTypeAny, {
|
|
9693
|
-
type: "
|
|
9693
|
+
type: "Divider";
|
|
9694
9694
|
id: string;
|
|
9695
9695
|
onCreate?: ((args_0: {
|
|
9696
9696
|
id: string;
|
|
@@ -9699,7 +9699,7 @@ declare const uiFlexibleSpaceElementSchema: ZodObject<objectUtil.extendShape<obj
|
|
|
9699
9699
|
id: string;
|
|
9700
9700
|
}, ...args: unknown[]) => void) | undefined;
|
|
9701
9701
|
}, {
|
|
9702
|
-
type: "
|
|
9702
|
+
type: "Divider";
|
|
9703
9703
|
id: string;
|
|
9704
9704
|
onCreate?: ((args_0: {
|
|
9705
9705
|
id: string;
|
|
@@ -9709,206 +9709,50 @@ declare const uiFlexibleSpaceElementSchema: ZodObject<objectUtil.extendShape<obj
|
|
|
9709
9709
|
}, ...args: unknown[]) => void) | undefined;
|
|
9710
9710
|
}>;
|
|
9711
9711
|
/**
|
|
9712
|
-
* Represents a
|
|
9713
|
-
*
|
|
9714
|
-
*
|
|
9715
|
-
*
|
|
9716
|
-
* - inside {@link UIGridContainerElement}, it will add extra gap between items. It can be controlled by `grid` property.
|
|
9717
|
-
* - inside {@link UIPanelElement} `body` or `footer`, since they work as vertically stacks, it will add extra gap between items.
|
|
9718
|
-
* - inside {@link UIButtonGroupElement}, it will take the remaining space.
|
|
9719
|
-
*
|
|
9720
|
-
* @example
|
|
9721
|
-
* Buttons with a flexible space between makes them more visually separated.
|
|
9722
|
-
* ```typescript
|
|
9723
|
-
* {
|
|
9724
|
-
* type: "ButtonGroup",
|
|
9725
|
-
* items: [
|
|
9726
|
-
* { type: "Button", label: "Button 1", onClick: () => {} },
|
|
9727
|
-
* { type: "FlexibleSpace" },
|
|
9728
|
-
* { type: "Button", label: "Button 2", onClick: () => {} },
|
|
9729
|
-
* ],
|
|
9730
|
-
* }
|
|
9731
|
-
* ```
|
|
9712
|
+
* Represents a divider element in a panel.
|
|
9713
|
+
* This element is used to separate other elements in a panel.
|
|
9714
|
+
* It is rendered as a gray horizontal line of 1px height.
|
|
9732
9715
|
*
|
|
9733
9716
|
* @example
|
|
9734
|
-
*
|
|
9717
|
+
* Divider element is useful to separate sections of a panel.
|
|
9735
9718
|
* ```typescript
|
|
9736
9719
|
* {
|
|
9737
|
-
* type: "Panel",
|
|
9738
9720
|
* body: [
|
|
9739
|
-
* { type: "
|
|
9740
|
-
* { type: "
|
|
9741
|
-
* { type: "
|
|
9742
|
-
*
|
|
9743
|
-
* }
|
|
9744
|
-
*
|
|
9745
|
-
*
|
|
9746
|
-
* @example
|
|
9747
|
-
* Horizontal stack of buttons with a flexible space between makes them more visually separated.
|
|
9748
|
-
* ```typescript
|
|
9749
|
-
* {
|
|
9750
|
-
* type: "Grid",
|
|
9751
|
-
* grid: "auto-flow / auto 1fr auto",
|
|
9752
|
-
* items: [
|
|
9753
|
-
* { type: "Button", label: "Button 1", onClick: () => {} },
|
|
9754
|
-
* { type: "FlexibleSpace" },
|
|
9755
|
-
* { type: "Button", label: "Button 2", onClick: () => {} },
|
|
9721
|
+
* { type: "Text", content: "Contact" },
|
|
9722
|
+
* { type: "TextInput", placeholder: "Enter your name", ... },
|
|
9723
|
+
* { type: "TextInput", placeholder: "Enter your email", ... },
|
|
9724
|
+
* { type: "Divider" },
|
|
9725
|
+
* { type: "Text", content: "Address" },
|
|
9726
|
+
* { type: "TextInput", placeholder: "Enter your address", ... },
|
|
9756
9727
|
* ],
|
|
9757
9728
|
* }
|
|
9758
9729
|
* ```
|
|
9759
9730
|
*/
|
|
9760
|
-
interface
|
|
9761
|
-
}
|
|
9762
|
-
/**
|
|
9763
|
-
* The parameters for creating a flexible space element.
|
|
9764
|
-
*
|
|
9765
|
-
* @remarks
|
|
9766
|
-
* `id` is optional but recommended if you want to be able to perform updates.
|
|
9767
|
-
*/
|
|
9768
|
-
interface UIFlexibleSpaceElementCreate extends Omit<UIFlexibleSpaceElement, "id">, UIElementBaseCreateParams {
|
|
9769
|
-
}
|
|
9770
|
-
type UIFlexibleSpaceElementCreateClonable = MakeClonableSchema<UIFlexibleSpaceElementCreate>;
|
|
9771
|
-
/**
|
|
9772
|
-
* The parameters for updating a flexible space element.
|
|
9773
|
-
*
|
|
9774
|
-
* See {@link UIFlexibleSpaceElement} for more details.
|
|
9775
|
-
*
|
|
9776
|
-
* @remarks
|
|
9777
|
-
* `id` and `type` are required to identify the element to update.
|
|
9778
|
-
*/
|
|
9779
|
-
interface UIFlexibleSpaceElementUpdate extends MakeUpdateSchema<UIFlexibleSpaceElement, UIFlexibleSpaceElementCreate> {
|
|
9780
|
-
}
|
|
9781
|
-
|
|
9782
|
-
declare const uiTextElementSchema: ZodObject<objectUtil.extendShape<objectUtil.extendShape<{
|
|
9783
|
-
onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
9784
|
-
id: ZodString;
|
|
9785
|
-
}, "strip", ZodTypeAny, {
|
|
9786
|
-
id: string;
|
|
9787
|
-
}, {
|
|
9788
|
-
id: string;
|
|
9789
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
9790
|
-
onDestroy: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
9791
|
-
id: ZodString;
|
|
9792
|
-
}, "strip", ZodTypeAny, {
|
|
9793
|
-
id: string;
|
|
9794
|
-
}, {
|
|
9795
|
-
id: string;
|
|
9796
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
9797
|
-
}, {
|
|
9798
|
-
id: ZodString;
|
|
9799
|
-
}>, {
|
|
9800
|
-
type: ZodLiteral<"Text">;
|
|
9801
|
-
/**
|
|
9802
|
-
* The text to display in the element.
|
|
9803
|
-
*/
|
|
9804
|
-
content: ZodString;
|
|
9805
|
-
}>, "strip", ZodTypeAny, {
|
|
9806
|
-
type: "Text";
|
|
9807
|
-
id: string;
|
|
9808
|
-
content: string;
|
|
9809
|
-
onCreate?: ((args_0: {
|
|
9810
|
-
id: string;
|
|
9811
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
9812
|
-
onDestroy?: ((args_0: {
|
|
9813
|
-
id: string;
|
|
9814
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
9815
|
-
}, {
|
|
9816
|
-
type: "Text";
|
|
9817
|
-
id: string;
|
|
9818
|
-
content: string;
|
|
9819
|
-
onCreate?: ((args_0: {
|
|
9820
|
-
id: string;
|
|
9821
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
9822
|
-
onDestroy?: ((args_0: {
|
|
9823
|
-
id: string;
|
|
9824
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
9825
|
-
}>;
|
|
9826
|
-
/**
|
|
9827
|
-
* Represents a text element in a panel.
|
|
9828
|
-
* Markdown is supported.
|
|
9829
|
-
*
|
|
9830
|
-
* @example
|
|
9831
|
-
* #### simple
|
|
9832
|
-
* ```typescript
|
|
9833
|
-
* {
|
|
9834
|
-
* type: "Text",
|
|
9835
|
-
* content: "Hello, world!",
|
|
9836
|
-
* }
|
|
9837
|
-
* ```
|
|
9838
|
-
*
|
|
9839
|
-
* @example
|
|
9840
|
-
* #### with links
|
|
9841
|
-
* ```typescript
|
|
9842
|
-
* {
|
|
9843
|
-
* type: "Text",
|
|
9844
|
-
* content: "Fill the form https://www.google.com.",
|
|
9845
|
-
* }
|
|
9846
|
-
* ```
|
|
9847
|
-
*
|
|
9848
|
-
* @example
|
|
9849
|
-
* #### markdown
|
|
9850
|
-
* ```typescript
|
|
9851
|
-
* {
|
|
9852
|
-
* type: "Text",
|
|
9853
|
-
* content: "**Hello**, _world_!",
|
|
9854
|
-
* }
|
|
9855
|
-
* ```
|
|
9856
|
-
*
|
|
9857
|
-
* @example
|
|
9858
|
-
* #### complex markdown
|
|
9859
|
-
* Complex markdown syntax is supported like tables, images, quotes, etc.
|
|
9860
|
-
* ```typescript
|
|
9861
|
-
* {
|
|
9862
|
-
* type: "Text",
|
|
9863
|
-
* content: `
|
|
9864
|
-
*
|
|
9865
|
-
* ## Heading
|
|
9866
|
-
*
|
|
9867
|
-
* This is a paragraph.
|
|
9868
|
-
*
|
|
9869
|
-
* ### Subheading
|
|
9870
|
-
*
|
|
9871
|
-
* This is a paragraph.
|
|
9872
|
-
*
|
|
9873
|
-
* | Name | Age |
|
|
9874
|
-
* | ---- | --- |
|
|
9875
|
-
* | John | 25 |
|
|
9876
|
-
* | Jane | 30 |
|
|
9877
|
-
*
|
|
9878
|
-
* 
|
|
9879
|
-
*
|
|
9880
|
-
* > This is a quote.
|
|
9881
|
-
*
|
|
9882
|
-
* [Link](https://www.google.com)
|
|
9883
|
-
* `,
|
|
9884
|
-
* }
|
|
9885
|
-
* ```
|
|
9886
|
-
*/
|
|
9887
|
-
interface UITextElement extends UIElementBase, Omit<zInfer<typeof uiTextElementSchema>, "onCreate" | "onDestroy"> {
|
|
9731
|
+
interface UIDividerElement extends UIElementBase, Omit<zInfer<typeof uiDividerElementSchema>, "onCreate" | "onDestroy"> {
|
|
9888
9732
|
}
|
|
9889
9733
|
/**
|
|
9890
|
-
* The parameters for creating a
|
|
9734
|
+
* The parameters for creating a divider element.
|
|
9891
9735
|
*
|
|
9892
|
-
* See {@link
|
|
9736
|
+
* See {@link UIDividerElement} for more details.
|
|
9893
9737
|
*
|
|
9894
9738
|
* @remarks
|
|
9895
|
-
* `id` is optional but recommended if you want to be able to
|
|
9739
|
+
* `id` is optional but recommended if you want to be able to delete the element.
|
|
9896
9740
|
*/
|
|
9897
|
-
interface
|
|
9741
|
+
interface UIDividerElementCreate extends Omit<UIDividerElement, "id">, UIElementBaseCreateParams {
|
|
9898
9742
|
}
|
|
9899
|
-
type
|
|
9743
|
+
type UIDividerElementCreateClonable = MakeClonableSchema<UIDividerElementCreate>;
|
|
9900
9744
|
/**
|
|
9901
|
-
* The parameters for updating a
|
|
9745
|
+
* The parameters for updating a divider element.
|
|
9902
9746
|
*
|
|
9903
|
-
* See {@link
|
|
9747
|
+
* See {@link UIDividerElement} for more details.
|
|
9904
9748
|
*
|
|
9905
9749
|
* @remarks
|
|
9906
9750
|
* `id` and `type` are required to identify the element to update.
|
|
9907
9751
|
*/
|
|
9908
|
-
interface
|
|
9752
|
+
interface UIDividerElementUpdate extends MakeUpdateSchema<UIDividerElement, UIDividerElementCreate> {
|
|
9909
9753
|
}
|
|
9910
9754
|
|
|
9911
|
-
declare const
|
|
9755
|
+
declare const uiFlexibleSpaceElementSchema: ZodObject<objectUtil.extendShape<objectUtil.extendShape<{
|
|
9912
9756
|
onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
9913
9757
|
id: ZodString;
|
|
9914
9758
|
}, "strip", ZodTypeAny, {
|
|
@@ -9926,193 +9770,10 @@ declare const uiButtonGroupElementSchema: ZodObject<objectUtil.extendShape<objec
|
|
|
9926
9770
|
}, {
|
|
9927
9771
|
id: ZodString;
|
|
9928
9772
|
}>, {
|
|
9929
|
-
type: ZodLiteral<"
|
|
9930
|
-
/**
|
|
9931
|
-
* The alignment of the button group.
|
|
9932
|
-
*
|
|
9933
|
-
* @defaultValue `"end"`
|
|
9934
|
-
*/
|
|
9935
|
-
align: ZodOptional<ZodEnum<["start", "end"]>>;
|
|
9936
|
-
items: ZodArray<ZodUnion<[ZodObject<objectUtil.extendShape<objectUtil.extendShape<{
|
|
9937
|
-
onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
9938
|
-
id: ZodString;
|
|
9939
|
-
}, "strip", ZodTypeAny, {
|
|
9940
|
-
id: string;
|
|
9941
|
-
}, {
|
|
9942
|
-
id: string;
|
|
9943
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
9944
|
-
onDestroy: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
9945
|
-
id: ZodString;
|
|
9946
|
-
}, "strip", ZodTypeAny, {
|
|
9947
|
-
id: string;
|
|
9948
|
-
}, {
|
|
9949
|
-
id: string;
|
|
9950
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
9951
|
-
}, {
|
|
9952
|
-
id: ZodString;
|
|
9953
|
-
}>, {
|
|
9954
|
-
type: ZodLiteral<"Button">;
|
|
9955
|
-
label: ZodString;
|
|
9956
|
-
variant: ZodOptional<ZodEnum<["filled", "transparent", "outlined"]>>;
|
|
9957
|
-
tint: ZodOptional<ZodEnum<["default", "primary", "accent", "danger"]>>;
|
|
9958
|
-
disabled: ZodOptional<ZodBoolean>;
|
|
9959
|
-
onClick: ZodFunction<ZodTuple<[ZodObject<{
|
|
9960
|
-
id: ZodString;
|
|
9961
|
-
}, "strip", ZodTypeAny, {
|
|
9962
|
-
id: string;
|
|
9963
|
-
}, {
|
|
9964
|
-
id: string;
|
|
9965
|
-
}>], ZodUnknown>, ZodVoid>;
|
|
9966
|
-
}>, "strip", ZodTypeAny, {
|
|
9967
|
-
type: "Button";
|
|
9968
|
-
id: string;
|
|
9969
|
-
label: string;
|
|
9970
|
-
onClick: (args_0: {
|
|
9971
|
-
id: string;
|
|
9972
|
-
}, ...args: unknown[]) => void;
|
|
9973
|
-
onCreate?: ((args_0: {
|
|
9974
|
-
id: string;
|
|
9975
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
9976
|
-
onDestroy?: ((args_0: {
|
|
9977
|
-
id: string;
|
|
9978
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
9979
|
-
disabled?: boolean | undefined;
|
|
9980
|
-
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
9981
|
-
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
9982
|
-
}, {
|
|
9983
|
-
type: "Button";
|
|
9984
|
-
id: string;
|
|
9985
|
-
label: string;
|
|
9986
|
-
onClick: (args_0: {
|
|
9987
|
-
id: string;
|
|
9988
|
-
}, ...args: unknown[]) => void;
|
|
9989
|
-
onCreate?: ((args_0: {
|
|
9990
|
-
id: string;
|
|
9991
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
9992
|
-
onDestroy?: ((args_0: {
|
|
9993
|
-
id: string;
|
|
9994
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
9995
|
-
disabled?: boolean | undefined;
|
|
9996
|
-
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
9997
|
-
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
9998
|
-
}>, ZodObject<objectUtil.extendShape<objectUtil.extendShape<{
|
|
9999
|
-
onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
10000
|
-
id: ZodString;
|
|
10001
|
-
}, "strip", ZodTypeAny, {
|
|
10002
|
-
id: string;
|
|
10003
|
-
}, {
|
|
10004
|
-
id: string;
|
|
10005
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
10006
|
-
onDestroy: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
10007
|
-
id: ZodString;
|
|
10008
|
-
}, "strip", ZodTypeAny, {
|
|
10009
|
-
id: string;
|
|
10010
|
-
}, {
|
|
10011
|
-
id: string;
|
|
10012
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
10013
|
-
}, {
|
|
10014
|
-
id: ZodString;
|
|
10015
|
-
}>, {
|
|
10016
|
-
type: ZodLiteral<"Text">;
|
|
10017
|
-
content: ZodString;
|
|
10018
|
-
}>, "strip", ZodTypeAny, {
|
|
10019
|
-
type: "Text";
|
|
10020
|
-
id: string;
|
|
10021
|
-
content: string;
|
|
10022
|
-
onCreate?: ((args_0: {
|
|
10023
|
-
id: string;
|
|
10024
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10025
|
-
onDestroy?: ((args_0: {
|
|
10026
|
-
id: string;
|
|
10027
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10028
|
-
}, {
|
|
10029
|
-
type: "Text";
|
|
10030
|
-
id: string;
|
|
10031
|
-
content: string;
|
|
10032
|
-
onCreate?: ((args_0: {
|
|
10033
|
-
id: string;
|
|
10034
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10035
|
-
onDestroy?: ((args_0: {
|
|
10036
|
-
id: string;
|
|
10037
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10038
|
-
}>, ZodObject<objectUtil.extendShape<objectUtil.extendShape<{
|
|
10039
|
-
onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
10040
|
-
id: ZodString;
|
|
10041
|
-
}, "strip", ZodTypeAny, {
|
|
10042
|
-
id: string;
|
|
10043
|
-
}, {
|
|
10044
|
-
id: string;
|
|
10045
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
10046
|
-
onDestroy: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
10047
|
-
id: ZodString;
|
|
10048
|
-
}, "strip", ZodTypeAny, {
|
|
10049
|
-
id: string;
|
|
10050
|
-
}, {
|
|
10051
|
-
id: string;
|
|
10052
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
10053
|
-
}, {
|
|
10054
|
-
id: ZodString;
|
|
10055
|
-
}>, {
|
|
10056
|
-
type: ZodLiteral<"FlexibleSpace">;
|
|
10057
|
-
}>, "strip", ZodTypeAny, {
|
|
10058
|
-
type: "FlexibleSpace";
|
|
10059
|
-
id: string;
|
|
10060
|
-
onCreate?: ((args_0: {
|
|
10061
|
-
id: string;
|
|
10062
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10063
|
-
onDestroy?: ((args_0: {
|
|
10064
|
-
id: string;
|
|
10065
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10066
|
-
}, {
|
|
10067
|
-
type: "FlexibleSpace";
|
|
10068
|
-
id: string;
|
|
10069
|
-
onCreate?: ((args_0: {
|
|
10070
|
-
id: string;
|
|
10071
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10072
|
-
onDestroy?: ((args_0: {
|
|
10073
|
-
id: string;
|
|
10074
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10075
|
-
}>]>, "many">;
|
|
9773
|
+
type: ZodLiteral<"FlexibleSpace">;
|
|
10076
9774
|
}>, "strip", ZodTypeAny, {
|
|
10077
|
-
type: "
|
|
9775
|
+
type: "FlexibleSpace";
|
|
10078
9776
|
id: string;
|
|
10079
|
-
items: ({
|
|
10080
|
-
type: "Button";
|
|
10081
|
-
id: string;
|
|
10082
|
-
label: string;
|
|
10083
|
-
onClick: (args_0: {
|
|
10084
|
-
id: string;
|
|
10085
|
-
}, ...args: unknown[]) => void;
|
|
10086
|
-
onCreate?: ((args_0: {
|
|
10087
|
-
id: string;
|
|
10088
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10089
|
-
onDestroy?: ((args_0: {
|
|
10090
|
-
id: string;
|
|
10091
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10092
|
-
disabled?: boolean | undefined;
|
|
10093
|
-
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
10094
|
-
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
10095
|
-
} | {
|
|
10096
|
-
type: "Text";
|
|
10097
|
-
id: string;
|
|
10098
|
-
content: string;
|
|
10099
|
-
onCreate?: ((args_0: {
|
|
10100
|
-
id: string;
|
|
10101
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10102
|
-
onDestroy?: ((args_0: {
|
|
10103
|
-
id: string;
|
|
10104
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10105
|
-
} | {
|
|
10106
|
-
type: "FlexibleSpace";
|
|
10107
|
-
id: string;
|
|
10108
|
-
onCreate?: ((args_0: {
|
|
10109
|
-
id: string;
|
|
10110
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10111
|
-
onDestroy?: ((args_0: {
|
|
10112
|
-
id: string;
|
|
10113
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10114
|
-
})[];
|
|
10115
|
-
align?: "start" | "end" | undefined;
|
|
10116
9777
|
onCreate?: ((args_0: {
|
|
10117
9778
|
id: string;
|
|
10118
9779
|
}, ...args: unknown[]) => void) | undefined;
|
|
@@ -10120,45 +9781,8 @@ declare const uiButtonGroupElementSchema: ZodObject<objectUtil.extendShape<objec
|
|
|
10120
9781
|
id: string;
|
|
10121
9782
|
}, ...args: unknown[]) => void) | undefined;
|
|
10122
9783
|
}, {
|
|
10123
|
-
type: "
|
|
9784
|
+
type: "FlexibleSpace";
|
|
10124
9785
|
id: string;
|
|
10125
|
-
items: ({
|
|
10126
|
-
type: "Button";
|
|
10127
|
-
id: string;
|
|
10128
|
-
label: string;
|
|
10129
|
-
onClick: (args_0: {
|
|
10130
|
-
id: string;
|
|
10131
|
-
}, ...args: unknown[]) => void;
|
|
10132
|
-
onCreate?: ((args_0: {
|
|
10133
|
-
id: string;
|
|
10134
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10135
|
-
onDestroy?: ((args_0: {
|
|
10136
|
-
id: string;
|
|
10137
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10138
|
-
disabled?: boolean | undefined;
|
|
10139
|
-
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
10140
|
-
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
10141
|
-
} | {
|
|
10142
|
-
type: "Text";
|
|
10143
|
-
id: string;
|
|
10144
|
-
content: string;
|
|
10145
|
-
onCreate?: ((args_0: {
|
|
10146
|
-
id: string;
|
|
10147
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10148
|
-
onDestroy?: ((args_0: {
|
|
10149
|
-
id: string;
|
|
10150
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10151
|
-
} | {
|
|
10152
|
-
type: "FlexibleSpace";
|
|
10153
|
-
id: string;
|
|
10154
|
-
onCreate?: ((args_0: {
|
|
10155
|
-
id: string;
|
|
10156
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10157
|
-
onDestroy?: ((args_0: {
|
|
10158
|
-
id: string;
|
|
10159
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10160
|
-
})[];
|
|
10161
|
-
align?: "start" | "end" | undefined;
|
|
10162
9786
|
onCreate?: ((args_0: {
|
|
10163
9787
|
id: string;
|
|
10164
9788
|
}, ...args: unknown[]) => void) | undefined;
|
|
@@ -10167,139 +9791,60 @@ declare const uiButtonGroupElementSchema: ZodObject<objectUtil.extendShape<objec
|
|
|
10167
9791
|
}, ...args: unknown[]) => void) | undefined;
|
|
10168
9792
|
}>;
|
|
10169
9793
|
/**
|
|
10170
|
-
* Represents a
|
|
10171
|
-
* A button group is an horizontal container of buttons and text elements.
|
|
10172
|
-
*
|
|
10173
|
-
* @example
|
|
10174
|
-
* Thanks to the FlexibleSpace element, button 1 and text 1 are aligned to the start of the panel,
|
|
10175
|
-
* while button 2 is aligned to the end.
|
|
10176
|
-
*
|
|
10177
|
-
* ```typescript
|
|
10178
|
-
* {
|
|
10179
|
-
* type: "ButtonGroup",
|
|
10180
|
-
* items: [
|
|
10181
|
-
* { type: "Button", label: "Button 1", onClick: () => {} },
|
|
10182
|
-
* { type: "Text", content: "Text 1" },
|
|
10183
|
-
* { type: "FlexibleSpace" },
|
|
10184
|
-
* { type: "Button", label: "Button 2", onClick: () => {} },
|
|
10185
|
-
* ],
|
|
10186
|
-
* }
|
|
10187
|
-
* ```
|
|
10188
|
-
*/
|
|
10189
|
-
interface UIButtonGroupElement extends UIElementBase, Omit<zInfer<typeof uiButtonGroupElementSchema>, "onCreate" | "onDestroy"> {
|
|
10190
|
-
/**
|
|
10191
|
-
* The items to add to the button group.
|
|
10192
|
-
*/
|
|
10193
|
-
items: Array<UIButtonElement | UITextElement | UIFlexibleSpaceElement>;
|
|
10194
|
-
}
|
|
10195
|
-
/**
|
|
10196
|
-
* The parameters for creating a button group element.
|
|
10197
|
-
*
|
|
10198
|
-
* See {@link UIButtonGroupElement} for more details.
|
|
10199
|
-
*
|
|
10200
|
-
* @remarks
|
|
10201
|
-
* `id` is optional but recommended if you want to be able to perform updates.
|
|
10202
|
-
*/
|
|
10203
|
-
interface UIButtonGroupElementCreate extends Omit<UIButtonGroupElement, "id" | "items">, UIElementBaseCreateParams {
|
|
10204
|
-
/**
|
|
10205
|
-
* The items to add to the button group.
|
|
10206
|
-
*/
|
|
10207
|
-
items: Array<UIButtonElementCreate | UITextElementCreate | UIFlexibleSpaceElementCreate>;
|
|
10208
|
-
}
|
|
10209
|
-
type UIButtonGroupElementCreateClonable = Omit<MakeClonableSchema<UIButtonGroupElementCreate>, "items"> & {
|
|
10210
|
-
items: Array<UIButtonElementCreateClonable | UITextElementCreateClonable | UIFlexibleSpaceElementCreateClonable>;
|
|
10211
|
-
};
|
|
10212
|
-
/**
|
|
10213
|
-
* The parameters for updating a button group element.
|
|
9794
|
+
* Represents a flexible space element in a container.
|
|
10214
9795
|
*
|
|
10215
|
-
*
|
|
9796
|
+
* When rendered...
|
|
10216
9797
|
*
|
|
10217
|
-
* @
|
|
10218
|
-
* `
|
|
10219
|
-
*/
|
|
10220
|
-
interface UIButtonGroupElementUpdate extends MakeUpdateSchema<UIButtonGroupElement, UIButtonGroupElementCreate> {
|
|
10221
|
-
}
|
|
10222
|
-
|
|
10223
|
-
declare const uiDividerElementSchema: ZodObject<objectUtil.extendShape<objectUtil.extendShape<{
|
|
10224
|
-
onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
10225
|
-
id: ZodString;
|
|
10226
|
-
}, "strip", ZodTypeAny, {
|
|
10227
|
-
id: string;
|
|
10228
|
-
}, {
|
|
10229
|
-
id: string;
|
|
10230
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
10231
|
-
onDestroy: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
10232
|
-
id: ZodString;
|
|
10233
|
-
}, "strip", ZodTypeAny, {
|
|
10234
|
-
id: string;
|
|
10235
|
-
}, {
|
|
10236
|
-
id: string;
|
|
10237
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
10238
|
-
}, {
|
|
10239
|
-
id: ZodString;
|
|
10240
|
-
}>, {
|
|
10241
|
-
type: ZodLiteral<"Divider">;
|
|
10242
|
-
}>, "strip", ZodTypeAny, {
|
|
10243
|
-
type: "Divider";
|
|
10244
|
-
id: string;
|
|
10245
|
-
onCreate?: ((args_0: {
|
|
10246
|
-
id: string;
|
|
10247
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10248
|
-
onDestroy?: ((args_0: {
|
|
10249
|
-
id: string;
|
|
10250
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10251
|
-
}, {
|
|
10252
|
-
type: "Divider";
|
|
10253
|
-
id: string;
|
|
10254
|
-
onCreate?: ((args_0: {
|
|
10255
|
-
id: string;
|
|
10256
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10257
|
-
onDestroy?: ((args_0: {
|
|
10258
|
-
id: string;
|
|
10259
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
10260
|
-
}>;
|
|
10261
|
-
/**
|
|
10262
|
-
* Represents a divider element in a panel.
|
|
10263
|
-
* This element is used to separate other elements in a panel.
|
|
10264
|
-
* It is rendered as a gray horizontal line of 1px height.
|
|
9798
|
+
* - inside {@link UIGridContainerElement}, it will add extra gap between items. It can be controlled by `grid` property.
|
|
9799
|
+
* - inside {@link UIPanelElement} `body` or `footer`, since they work as vertically stacks, it will add extra gap between items.
|
|
10265
9800
|
*
|
|
10266
9801
|
* @example
|
|
10267
|
-
*
|
|
9802
|
+
* Paragraphs with a flexible space between makes them more visually separated.
|
|
10268
9803
|
* ```typescript
|
|
10269
9804
|
* {
|
|
9805
|
+
* type: "Panel",
|
|
10270
9806
|
* body: [
|
|
10271
|
-
* { type: "
|
|
10272
|
-
* { type: "
|
|
10273
|
-
* { type: "
|
|
10274
|
-
*
|
|
10275
|
-
*
|
|
10276
|
-
*
|
|
9807
|
+
* { type: "Paragraph", text: "Paragraph 1" },
|
|
9808
|
+
* { type: "FlexibleSpace" },
|
|
9809
|
+
* { type: "Paragraph", text: "Paragraph 2" },
|
|
9810
|
+
* ],
|
|
9811
|
+
* }
|
|
9812
|
+
* ```
|
|
9813
|
+
*
|
|
9814
|
+
* @example
|
|
9815
|
+
* Horizontal stack of buttons with a flexible space between makes them more visually separated.
|
|
9816
|
+
* ```typescript
|
|
9817
|
+
* {
|
|
9818
|
+
* type: "Grid",
|
|
9819
|
+
* grid: "auto-flow / auto 1fr auto",
|
|
9820
|
+
* items: [
|
|
9821
|
+
* { type: "Button", label: "Button 1", onClick: () => {} },
|
|
9822
|
+
* { type: "FlexibleSpace" },
|
|
9823
|
+
* { type: "Button", label: "Button 2", onClick: () => {} },
|
|
10277
9824
|
* ],
|
|
10278
9825
|
* }
|
|
10279
9826
|
* ```
|
|
10280
9827
|
*/
|
|
10281
|
-
interface
|
|
9828
|
+
interface UIFlexibleSpaceElement extends UIElementBase, Omit<zInfer<typeof uiFlexibleSpaceElementSchema>, "onCreate" | "onDestroy"> {
|
|
10282
9829
|
}
|
|
10283
9830
|
/**
|
|
10284
|
-
* The parameters for creating a
|
|
10285
|
-
*
|
|
10286
|
-
* See {@link UIDividerElement} for more details.
|
|
9831
|
+
* The parameters for creating a flexible space element.
|
|
10287
9832
|
*
|
|
10288
9833
|
* @remarks
|
|
10289
|
-
* `id` is optional but recommended if you want to be able to
|
|
9834
|
+
* `id` is optional but recommended if you want to be able to perform updates.
|
|
10290
9835
|
*/
|
|
10291
|
-
interface
|
|
9836
|
+
interface UIFlexibleSpaceElementCreate extends Omit<UIFlexibleSpaceElement, "id">, UIElementBaseCreateParams {
|
|
10292
9837
|
}
|
|
10293
|
-
type
|
|
9838
|
+
type UIFlexibleSpaceElementCreateClonable = MakeClonableSchema<UIFlexibleSpaceElementCreate>;
|
|
10294
9839
|
/**
|
|
10295
|
-
* The parameters for updating a
|
|
9840
|
+
* The parameters for updating a flexible space element.
|
|
10296
9841
|
*
|
|
10297
|
-
* See {@link
|
|
9842
|
+
* See {@link UIFlexibleSpaceElement} for more details.
|
|
10298
9843
|
*
|
|
10299
9844
|
* @remarks
|
|
10300
9845
|
* `id` and `type` are required to identify the element to update.
|
|
10301
9846
|
*/
|
|
10302
|
-
interface
|
|
9847
|
+
interface UIFlexibleSpaceElementUpdate extends MakeUpdateSchema<UIFlexibleSpaceElement, UIFlexibleSpaceElementCreate> {
|
|
10303
9848
|
}
|
|
10304
9849
|
|
|
10305
9850
|
declare const uiSelectElementSchema: ZodObject<objectUtil.extendShape<objectUtil.extendShape<objectUtil.extendShape<{
|
|
@@ -10669,6 +10214,135 @@ type UITextInputElementCreateClonable = MakeClonableSchema<UITextInputElementCre
|
|
|
10669
10214
|
interface UITextInputElementUpdate extends MakeUpdateSchema<UITextInputElement, UITextInputElementCreate> {
|
|
10670
10215
|
}
|
|
10671
10216
|
|
|
10217
|
+
declare const uiTextElementSchema: ZodObject<objectUtil.extendShape<objectUtil.extendShape<{
|
|
10218
|
+
onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
10219
|
+
id: ZodString;
|
|
10220
|
+
}, "strip", ZodTypeAny, {
|
|
10221
|
+
id: string;
|
|
10222
|
+
}, {
|
|
10223
|
+
id: string;
|
|
10224
|
+
}>], ZodUnknown>, ZodVoid>>;
|
|
10225
|
+
onDestroy: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
10226
|
+
id: ZodString;
|
|
10227
|
+
}, "strip", ZodTypeAny, {
|
|
10228
|
+
id: string;
|
|
10229
|
+
}, {
|
|
10230
|
+
id: string;
|
|
10231
|
+
}>], ZodUnknown>, ZodVoid>>;
|
|
10232
|
+
}, {
|
|
10233
|
+
id: ZodString;
|
|
10234
|
+
}>, {
|
|
10235
|
+
type: ZodLiteral<"Text">;
|
|
10236
|
+
/**
|
|
10237
|
+
* The text to display in the element.
|
|
10238
|
+
*/
|
|
10239
|
+
content: ZodString;
|
|
10240
|
+
}>, "strip", ZodTypeAny, {
|
|
10241
|
+
type: "Text";
|
|
10242
|
+
id: string;
|
|
10243
|
+
content: string;
|
|
10244
|
+
onCreate?: ((args_0: {
|
|
10245
|
+
id: string;
|
|
10246
|
+
}, ...args: unknown[]) => void) | undefined;
|
|
10247
|
+
onDestroy?: ((args_0: {
|
|
10248
|
+
id: string;
|
|
10249
|
+
}, ...args: unknown[]) => void) | undefined;
|
|
10250
|
+
}, {
|
|
10251
|
+
type: "Text";
|
|
10252
|
+
id: string;
|
|
10253
|
+
content: string;
|
|
10254
|
+
onCreate?: ((args_0: {
|
|
10255
|
+
id: string;
|
|
10256
|
+
}, ...args: unknown[]) => void) | undefined;
|
|
10257
|
+
onDestroy?: ((args_0: {
|
|
10258
|
+
id: string;
|
|
10259
|
+
}, ...args: unknown[]) => void) | undefined;
|
|
10260
|
+
}>;
|
|
10261
|
+
/**
|
|
10262
|
+
* Represents a text element in a panel.
|
|
10263
|
+
* Markdown is supported.
|
|
10264
|
+
*
|
|
10265
|
+
* @example
|
|
10266
|
+
* #### simple
|
|
10267
|
+
* ```typescript
|
|
10268
|
+
* {
|
|
10269
|
+
* type: "Text",
|
|
10270
|
+
* content: "Hello, world!",
|
|
10271
|
+
* }
|
|
10272
|
+
* ```
|
|
10273
|
+
*
|
|
10274
|
+
* @example
|
|
10275
|
+
* #### with links
|
|
10276
|
+
* ```typescript
|
|
10277
|
+
* {
|
|
10278
|
+
* type: "Text",
|
|
10279
|
+
* content: "Fill the form https://www.google.com.",
|
|
10280
|
+
* }
|
|
10281
|
+
* ```
|
|
10282
|
+
*
|
|
10283
|
+
* @example
|
|
10284
|
+
* #### markdown
|
|
10285
|
+
* ```typescript
|
|
10286
|
+
* {
|
|
10287
|
+
* type: "Text",
|
|
10288
|
+
* content: "**Hello**, _world_!",
|
|
10289
|
+
* }
|
|
10290
|
+
* ```
|
|
10291
|
+
*
|
|
10292
|
+
* @example
|
|
10293
|
+
* #### complex markdown
|
|
10294
|
+
* Complex markdown syntax is supported like tables, images, quotes, etc.
|
|
10295
|
+
* ```typescript
|
|
10296
|
+
* {
|
|
10297
|
+
* type: "Text",
|
|
10298
|
+
* content: `
|
|
10299
|
+
*
|
|
10300
|
+
* ## Heading
|
|
10301
|
+
*
|
|
10302
|
+
* This is a paragraph.
|
|
10303
|
+
*
|
|
10304
|
+
* ### Subheading
|
|
10305
|
+
*
|
|
10306
|
+
* This is a paragraph.
|
|
10307
|
+
*
|
|
10308
|
+
* | Name | Age |
|
|
10309
|
+
* | ---- | --- |
|
|
10310
|
+
* | John | 25 |
|
|
10311
|
+
* | Jane | 30 |
|
|
10312
|
+
*
|
|
10313
|
+
* 
|
|
10314
|
+
*
|
|
10315
|
+
* > This is a quote.
|
|
10316
|
+
*
|
|
10317
|
+
* [Link](https://www.google.com)
|
|
10318
|
+
* `,
|
|
10319
|
+
* }
|
|
10320
|
+
* ```
|
|
10321
|
+
*/
|
|
10322
|
+
interface UITextElement extends UIElementBase, Omit<zInfer<typeof uiTextElementSchema>, "onCreate" | "onDestroy"> {
|
|
10323
|
+
}
|
|
10324
|
+
/**
|
|
10325
|
+
* The parameters for creating a text element.
|
|
10326
|
+
*
|
|
10327
|
+
* See {@link UITextElement} for more details.
|
|
10328
|
+
*
|
|
10329
|
+
* @remarks
|
|
10330
|
+
* `id` is optional but recommended if you want to be able to perform updates.
|
|
10331
|
+
*/
|
|
10332
|
+
interface UITextElementCreate extends Omit<UITextElement, "id">, UIElementBaseCreateParams {
|
|
10333
|
+
}
|
|
10334
|
+
type UITextElementCreateClonable = MakeClonableSchema<UITextElementCreate>;
|
|
10335
|
+
/**
|
|
10336
|
+
* The parameters for updating a text element.
|
|
10337
|
+
*
|
|
10338
|
+
* See {@link UITextElement} for more details.
|
|
10339
|
+
*
|
|
10340
|
+
* @remarks
|
|
10341
|
+
* `id` and `type` are required to identify the element to update.
|
|
10342
|
+
*/
|
|
10343
|
+
interface UITextElementUpdate extends MakeUpdateSchema<UITextElement, UITextElementCreate> {
|
|
10344
|
+
}
|
|
10345
|
+
|
|
10672
10346
|
type ItemCreateClonableType = Exclude<UIPanelElementCreateClonable, {
|
|
10673
10347
|
type: "Grid";
|
|
10674
10348
|
}>;
|
|
@@ -10810,22 +10484,22 @@ type UIGridContainerElementCreateClonable = Omit<MakeClonableSchema<UIGridContai
|
|
|
10810
10484
|
interface UIGridContainerElementUpdate extends MakeUpdateSchema<UIGridContainerElement, UIGridContainerElementCreate> {
|
|
10811
10485
|
}
|
|
10812
10486
|
|
|
10813
|
-
type UIPanelElement = UIButtonElement | UITextElement |
|
|
10487
|
+
type UIPanelElement = UIButtonElement | UITextElement | UIDividerElement | UITextInputElement | UISelectElement | UIFlexibleSpaceElement | UIGridContainerElement;
|
|
10814
10488
|
/**
|
|
10815
10489
|
* This is a union of all the possible elements that can be created inside panel's body or footer.
|
|
10816
10490
|
*
|
|
10817
10491
|
* @remarks
|
|
10818
10492
|
* For the sake of convenience, `id` is optional but recommended if you want to be able to perform updates.
|
|
10819
10493
|
*/
|
|
10820
|
-
type UIPanelElementCreate = UIButtonElementCreate | UITextElementCreate |
|
|
10821
|
-
type UIPanelElementCreateClonable = UIButtonElementCreateClonable | UITextElementCreateClonable |
|
|
10494
|
+
type UIPanelElementCreate = UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIGridContainerElementCreate;
|
|
10495
|
+
type UIPanelElementCreateClonable = UIButtonElementCreateClonable | UITextElementCreateClonable | UIDividerElementCreateClonable | UITextInputElementCreateClonable | UISelectElementCreateClonable | UIFlexibleSpaceElementCreateClonable | UIGridContainerElementCreateClonable;
|
|
10822
10496
|
/**
|
|
10823
10497
|
* This is a union of all the possible elements that can be updated inside panel's body or footer (excluding Divider and FlexibleSpace elements because they cannot be updated).
|
|
10824
10498
|
*
|
|
10825
10499
|
* @remarks
|
|
10826
10500
|
* `id` and `type` are required to identify the element to update.
|
|
10827
10501
|
*/
|
|
10828
|
-
type UIPanelElementUpdate = UIButtonElementUpdate | UITextElementUpdate |
|
|
10502
|
+
type UIPanelElementUpdate = UIButtonElementUpdate | UITextElementUpdate | UITextInputElementUpdate | UISelectElementUpdate | UIDividerElementUpdate | UIGridContainerElementUpdate | UIFlexibleSpaceElementUpdate;
|
|
10829
10503
|
|
|
10830
10504
|
declare const placementForUiElementSchema: ZodUnion<[ZodObject<{
|
|
10831
10505
|
after: ZodString;
|
|
@@ -10943,8 +10617,6 @@ declare const uiPanelSchema: ZodObject<objectUtil.extendShape<objectUtil.extendS
|
|
|
10943
10617
|
*
|
|
10944
10618
|
* #### Footer
|
|
10945
10619
|
* Footer is sticky to the bottom of the panel, and can be used to add actions to the panel (e.g. save, cancel, etc.).
|
|
10946
|
-
* Normally, it should contain a `ButtonGroup` element with a `Cancel` and `Save` button. Using `ButtonGroup` is recommended
|
|
10947
|
-
* because it will automatically align the buttons to the end of the panel giving it a nice look.
|
|
10948
10620
|
*
|
|
10949
10621
|
* @example
|
|
10950
10622
|
* #### basic
|
|
@@ -10977,10 +10649,15 @@ declare const uiPanelSchema: ZodObject<objectUtil.extendShape<objectUtil.extendS
|
|
|
10977
10649
|
* { type: "TextInput", label: "Last name", value: "", placeholder: "Doe", onChange: (value) => setLastName(value) },
|
|
10978
10650
|
* ],
|
|
10979
10651
|
* footer: [
|
|
10980
|
-
* {
|
|
10981
|
-
*
|
|
10982
|
-
*
|
|
10983
|
-
*
|
|
10652
|
+
* {
|
|
10653
|
+
* type: "Grid",
|
|
10654
|
+
* grid: "auto-flow / 1fr auto auto",
|
|
10655
|
+
* items: [
|
|
10656
|
+
* { type: "FlexibleSpace" }, // this will make the buttons to be aligned to the end of the panel
|
|
10657
|
+
* { type: "Button", label: "Reset", onClick: () => alert("Reset") },
|
|
10658
|
+
* { type: "Button", label: "Save", onClick: () => alert("Save") },
|
|
10659
|
+
* ],
|
|
10660
|
+
* },
|
|
10984
10661
|
* ],
|
|
10985
10662
|
* }
|
|
10986
10663
|
* ```
|
|
@@ -11795,7 +11472,7 @@ interface CreatePanelElementsParams extends zInfer<typeof CreatePanelElementsPar
|
|
|
11795
11472
|
/**
|
|
11796
11473
|
* The section of the panel to add the element to.
|
|
11797
11474
|
* It can be either one of the top-level sections of the panel (`"body"` or `"footer"`)
|
|
11798
|
-
* or a specific container (like
|
|
11475
|
+
* or a specific container (like {@link UIGridContainerElement}) in the panel (`{ id: string }`).
|
|
11799
11476
|
*
|
|
11800
11477
|
* @defaultValue `"body"`
|
|
11801
11478
|
*/
|
|
@@ -11914,286 +11591,6 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
|
|
|
11914
11591
|
id: string;
|
|
11915
11592
|
}, ...args: unknown[]) => void) | undefined;
|
|
11916
11593
|
content?: string | undefined;
|
|
11917
|
-
}>, ZodObject<{
|
|
11918
|
-
type: ZodLiteral<"ButtonGroup">;
|
|
11919
|
-
id: ZodString;
|
|
11920
|
-
align: ZodOptional<ZodOptional<ZodEnum<["start", "end"]>>>;
|
|
11921
|
-
onCreate: ZodOptional<ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
11922
|
-
id: ZodString;
|
|
11923
|
-
}, "strip", ZodTypeAny, {
|
|
11924
|
-
id: string;
|
|
11925
|
-
}, {
|
|
11926
|
-
id: string;
|
|
11927
|
-
}>], ZodUnknown>, ZodVoid>>>;
|
|
11928
|
-
onDestroy: ZodOptional<ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
11929
|
-
id: ZodString;
|
|
11930
|
-
}, "strip", ZodTypeAny, {
|
|
11931
|
-
id: string;
|
|
11932
|
-
}, {
|
|
11933
|
-
id: string;
|
|
11934
|
-
}>], ZodUnknown>, ZodVoid>>>;
|
|
11935
|
-
items: ZodOptional<ZodArray<ZodUnion<[ZodObject<objectUtil.extendShape<objectUtil.extendShape<objectUtil.extendShape<{
|
|
11936
|
-
onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
11937
|
-
id: ZodString;
|
|
11938
|
-
}, "strip", ZodTypeAny, {
|
|
11939
|
-
id: string;
|
|
11940
|
-
}, {
|
|
11941
|
-
id: string;
|
|
11942
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
11943
|
-
onDestroy: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
11944
|
-
id: ZodString;
|
|
11945
|
-
}, "strip", ZodTypeAny, {
|
|
11946
|
-
id: string;
|
|
11947
|
-
}, {
|
|
11948
|
-
id: string;
|
|
11949
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
11950
|
-
}, {
|
|
11951
|
-
id: ZodString;
|
|
11952
|
-
}>, {
|
|
11953
|
-
type: ZodLiteral<"Button">;
|
|
11954
|
-
label: ZodString;
|
|
11955
|
-
variant: ZodOptional<ZodEnum<["filled", "transparent", "outlined"]>>;
|
|
11956
|
-
tint: ZodOptional<ZodEnum<["default", "primary", "accent", "danger"]>>;
|
|
11957
|
-
disabled: ZodOptional<ZodBoolean>;
|
|
11958
|
-
onClick: ZodFunction<ZodTuple<[ZodObject<{
|
|
11959
|
-
id: ZodString;
|
|
11960
|
-
}, "strip", ZodTypeAny, {
|
|
11961
|
-
id: string;
|
|
11962
|
-
}, {
|
|
11963
|
-
id: string;
|
|
11964
|
-
}>], ZodUnknown>, ZodVoid>;
|
|
11965
|
-
}>, {
|
|
11966
|
-
id: ZodOptional<ZodString>;
|
|
11967
|
-
onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
11968
|
-
id: ZodString;
|
|
11969
|
-
}, "strip", ZodTypeAny, {
|
|
11970
|
-
id: string;
|
|
11971
|
-
}, {
|
|
11972
|
-
id: string;
|
|
11973
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
11974
|
-
onDestroy: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
11975
|
-
id: ZodString;
|
|
11976
|
-
}, "strip", ZodTypeAny, {
|
|
11977
|
-
id: string;
|
|
11978
|
-
}, {
|
|
11979
|
-
id: string;
|
|
11980
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
11981
|
-
}>, "strip", ZodTypeAny, {
|
|
11982
|
-
type: "Button";
|
|
11983
|
-
label: string;
|
|
11984
|
-
onClick: (args_0: {
|
|
11985
|
-
id: string;
|
|
11986
|
-
}, ...args: unknown[]) => void;
|
|
11987
|
-
id?: string | undefined;
|
|
11988
|
-
onCreate?: ((args_0: {
|
|
11989
|
-
id: string;
|
|
11990
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
11991
|
-
onDestroy?: ((args_0: {
|
|
11992
|
-
id: string;
|
|
11993
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
11994
|
-
disabled?: boolean | undefined;
|
|
11995
|
-
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
11996
|
-
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
11997
|
-
}, {
|
|
11998
|
-
type: "Button";
|
|
11999
|
-
label: string;
|
|
12000
|
-
onClick: (args_0: {
|
|
12001
|
-
id: string;
|
|
12002
|
-
}, ...args: unknown[]) => void;
|
|
12003
|
-
id?: string | undefined;
|
|
12004
|
-
onCreate?: ((args_0: {
|
|
12005
|
-
id: string;
|
|
12006
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12007
|
-
onDestroy?: ((args_0: {
|
|
12008
|
-
id: string;
|
|
12009
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12010
|
-
disabled?: boolean | undefined;
|
|
12011
|
-
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
12012
|
-
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
12013
|
-
}>, ZodObject<objectUtil.extendShape<objectUtil.extendShape<objectUtil.extendShape<{
|
|
12014
|
-
onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
12015
|
-
id: ZodString;
|
|
12016
|
-
}, "strip", ZodTypeAny, {
|
|
12017
|
-
id: string;
|
|
12018
|
-
}, {
|
|
12019
|
-
id: string;
|
|
12020
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
12021
|
-
onDestroy: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
12022
|
-
id: ZodString;
|
|
12023
|
-
}, "strip", ZodTypeAny, {
|
|
12024
|
-
id: string;
|
|
12025
|
-
}, {
|
|
12026
|
-
id: string;
|
|
12027
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
12028
|
-
}, {
|
|
12029
|
-
id: ZodString;
|
|
12030
|
-
}>, {
|
|
12031
|
-
type: ZodLiteral<"Text">;
|
|
12032
|
-
content: ZodString;
|
|
12033
|
-
}>, {
|
|
12034
|
-
id: ZodOptional<ZodString>;
|
|
12035
|
-
onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
12036
|
-
id: ZodString;
|
|
12037
|
-
}, "strip", ZodTypeAny, {
|
|
12038
|
-
id: string;
|
|
12039
|
-
}, {
|
|
12040
|
-
id: string;
|
|
12041
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
12042
|
-
onDestroy: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
12043
|
-
id: ZodString;
|
|
12044
|
-
}, "strip", ZodTypeAny, {
|
|
12045
|
-
id: string;
|
|
12046
|
-
}, {
|
|
12047
|
-
id: string;
|
|
12048
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
12049
|
-
}>, "strip", ZodTypeAny, {
|
|
12050
|
-
type: "Text";
|
|
12051
|
-
content: string;
|
|
12052
|
-
id?: string | undefined;
|
|
12053
|
-
onCreate?: ((args_0: {
|
|
12054
|
-
id: string;
|
|
12055
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12056
|
-
onDestroy?: ((args_0: {
|
|
12057
|
-
id: string;
|
|
12058
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12059
|
-
}, {
|
|
12060
|
-
type: "Text";
|
|
12061
|
-
content: string;
|
|
12062
|
-
id?: string | undefined;
|
|
12063
|
-
onCreate?: ((args_0: {
|
|
12064
|
-
id: string;
|
|
12065
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12066
|
-
onDestroy?: ((args_0: {
|
|
12067
|
-
id: string;
|
|
12068
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12069
|
-
}>, ZodObject<{
|
|
12070
|
-
type: ZodLiteral<"FlexibleSpace">;
|
|
12071
|
-
id: ZodOptional<ZodString>;
|
|
12072
|
-
onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
12073
|
-
id: ZodString;
|
|
12074
|
-
}, "strip", ZodTypeAny, {
|
|
12075
|
-
id: string;
|
|
12076
|
-
}, {
|
|
12077
|
-
id: string;
|
|
12078
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
12079
|
-
onDestroy: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
|
|
12080
|
-
id: ZodString;
|
|
12081
|
-
}, "strip", ZodTypeAny, {
|
|
12082
|
-
id: string;
|
|
12083
|
-
}, {
|
|
12084
|
-
id: string;
|
|
12085
|
-
}>], ZodUnknown>, ZodVoid>>;
|
|
12086
|
-
}, "strip", ZodTypeAny, {
|
|
12087
|
-
type: "FlexibleSpace";
|
|
12088
|
-
id?: string | undefined;
|
|
12089
|
-
onCreate?: ((args_0: {
|
|
12090
|
-
id: string;
|
|
12091
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12092
|
-
onDestroy?: ((args_0: {
|
|
12093
|
-
id: string;
|
|
12094
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12095
|
-
}, {
|
|
12096
|
-
type: "FlexibleSpace";
|
|
12097
|
-
id?: string | undefined;
|
|
12098
|
-
onCreate?: ((args_0: {
|
|
12099
|
-
id: string;
|
|
12100
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12101
|
-
onDestroy?: ((args_0: {
|
|
12102
|
-
id: string;
|
|
12103
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12104
|
-
}>]>, "many">>;
|
|
12105
|
-
}, UnknownKeysParam, ZodTypeAny, {
|
|
12106
|
-
type: "ButtonGroup";
|
|
12107
|
-
id: string;
|
|
12108
|
-
align?: "start" | "end" | undefined;
|
|
12109
|
-
items?: ({
|
|
12110
|
-
type: "Button";
|
|
12111
|
-
label: string;
|
|
12112
|
-
onClick: (args_0: {
|
|
12113
|
-
id: string;
|
|
12114
|
-
}, ...args: unknown[]) => void;
|
|
12115
|
-
id?: string | undefined;
|
|
12116
|
-
onCreate?: ((args_0: {
|
|
12117
|
-
id: string;
|
|
12118
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12119
|
-
onDestroy?: ((args_0: {
|
|
12120
|
-
id: string;
|
|
12121
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12122
|
-
disabled?: boolean | undefined;
|
|
12123
|
-
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
12124
|
-
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
12125
|
-
} | {
|
|
12126
|
-
type: "Text";
|
|
12127
|
-
content: string;
|
|
12128
|
-
id?: string | undefined;
|
|
12129
|
-
onCreate?: ((args_0: {
|
|
12130
|
-
id: string;
|
|
12131
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12132
|
-
onDestroy?: ((args_0: {
|
|
12133
|
-
id: string;
|
|
12134
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12135
|
-
} | {
|
|
12136
|
-
type: "FlexibleSpace";
|
|
12137
|
-
id?: string | undefined;
|
|
12138
|
-
onCreate?: ((args_0: {
|
|
12139
|
-
id: string;
|
|
12140
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12141
|
-
onDestroy?: ((args_0: {
|
|
12142
|
-
id: string;
|
|
12143
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12144
|
-
})[] | undefined;
|
|
12145
|
-
onCreate?: ((args_0: {
|
|
12146
|
-
id: string;
|
|
12147
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12148
|
-
onDestroy?: ((args_0: {
|
|
12149
|
-
id: string;
|
|
12150
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12151
|
-
}, {
|
|
12152
|
-
type: "ButtonGroup";
|
|
12153
|
-
id: string;
|
|
12154
|
-
align?: "start" | "end" | undefined;
|
|
12155
|
-
items?: ({
|
|
12156
|
-
type: "Button";
|
|
12157
|
-
label: string;
|
|
12158
|
-
onClick: (args_0: {
|
|
12159
|
-
id: string;
|
|
12160
|
-
}, ...args: unknown[]) => void;
|
|
12161
|
-
id?: string | undefined;
|
|
12162
|
-
onCreate?: ((args_0: {
|
|
12163
|
-
id: string;
|
|
12164
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12165
|
-
onDestroy?: ((args_0: {
|
|
12166
|
-
id: string;
|
|
12167
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12168
|
-
disabled?: boolean | undefined;
|
|
12169
|
-
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
12170
|
-
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
12171
|
-
} | {
|
|
12172
|
-
type: "Text";
|
|
12173
|
-
content: string;
|
|
12174
|
-
id?: string | undefined;
|
|
12175
|
-
onCreate?: ((args_0: {
|
|
12176
|
-
id: string;
|
|
12177
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12178
|
-
onDestroy?: ((args_0: {
|
|
12179
|
-
id: string;
|
|
12180
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12181
|
-
} | {
|
|
12182
|
-
type: "FlexibleSpace";
|
|
12183
|
-
id?: string | undefined;
|
|
12184
|
-
onCreate?: ((args_0: {
|
|
12185
|
-
id: string;
|
|
12186
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12187
|
-
onDestroy?: ((args_0: {
|
|
12188
|
-
id: string;
|
|
12189
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12190
|
-
})[] | undefined;
|
|
12191
|
-
onCreate?: ((args_0: {
|
|
12192
|
-
id: string;
|
|
12193
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12194
|
-
onDestroy?: ((args_0: {
|
|
12195
|
-
id: string;
|
|
12196
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12197
11594
|
}>, ZodObject<{
|
|
12198
11595
|
type: ZodLiteral<"TextInput">;
|
|
12199
11596
|
value: ZodOptional<ZodString>;
|
|
@@ -12463,11 +11860,11 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
|
|
|
12463
11860
|
id: string;
|
|
12464
11861
|
}>], ZodUnknown>, ZodVoid>>>;
|
|
12465
11862
|
grid: ZodOptional<ZodOptional<ZodString>>;
|
|
12466
|
-
items: ZodOptional<ZodType<(UIButtonElementCreate | UITextElementCreate |
|
|
11863
|
+
items: ZodOptional<ZodType<(UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[], ZodTypeDef, (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[]>>;
|
|
12467
11864
|
}, UnknownKeysParam, ZodTypeAny, {
|
|
12468
11865
|
type: "Grid";
|
|
12469
11866
|
id: string;
|
|
12470
|
-
items?: (UIButtonElementCreate | UITextElementCreate |
|
|
11867
|
+
items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
|
|
12471
11868
|
onCreate?: ((args_0: {
|
|
12472
11869
|
id: string;
|
|
12473
11870
|
}, ...args: unknown[]) => void) | undefined;
|
|
@@ -12478,7 +11875,7 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
|
|
|
12478
11875
|
}, {
|
|
12479
11876
|
type: "Grid";
|
|
12480
11877
|
id: string;
|
|
12481
|
-
items?: (UIButtonElementCreate | UITextElementCreate |
|
|
11878
|
+
items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
|
|
12482
11879
|
onCreate?: ((args_0: {
|
|
12483
11880
|
id: string;
|
|
12484
11881
|
}, ...args: unknown[]) => void) | undefined;
|
|
@@ -12514,52 +11911,6 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
|
|
|
12514
11911
|
id: string;
|
|
12515
11912
|
}, ...args: unknown[]) => void) | undefined;
|
|
12516
11913
|
content?: string | undefined;
|
|
12517
|
-
} | {
|
|
12518
|
-
type: "ButtonGroup";
|
|
12519
|
-
id: string;
|
|
12520
|
-
align?: "start" | "end" | undefined;
|
|
12521
|
-
items?: ({
|
|
12522
|
-
type: "Button";
|
|
12523
|
-
label: string;
|
|
12524
|
-
onClick: (args_0: {
|
|
12525
|
-
id: string;
|
|
12526
|
-
}, ...args: unknown[]) => void;
|
|
12527
|
-
id?: string | undefined;
|
|
12528
|
-
onCreate?: ((args_0: {
|
|
12529
|
-
id: string;
|
|
12530
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12531
|
-
onDestroy?: ((args_0: {
|
|
12532
|
-
id: string;
|
|
12533
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12534
|
-
disabled?: boolean | undefined;
|
|
12535
|
-
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
12536
|
-
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
12537
|
-
} | {
|
|
12538
|
-
type: "Text";
|
|
12539
|
-
content: string;
|
|
12540
|
-
id?: string | undefined;
|
|
12541
|
-
onCreate?: ((args_0: {
|
|
12542
|
-
id: string;
|
|
12543
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12544
|
-
onDestroy?: ((args_0: {
|
|
12545
|
-
id: string;
|
|
12546
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12547
|
-
} | {
|
|
12548
|
-
type: "FlexibleSpace";
|
|
12549
|
-
id?: string | undefined;
|
|
12550
|
-
onCreate?: ((args_0: {
|
|
12551
|
-
id: string;
|
|
12552
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12553
|
-
onDestroy?: ((args_0: {
|
|
12554
|
-
id: string;
|
|
12555
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12556
|
-
})[] | undefined;
|
|
12557
|
-
onCreate?: ((args_0: {
|
|
12558
|
-
id: string;
|
|
12559
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12560
|
-
onDestroy?: ((args_0: {
|
|
12561
|
-
id: string;
|
|
12562
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12563
11914
|
} | {
|
|
12564
11915
|
type: "TextInput";
|
|
12565
11916
|
id: string;
|
|
@@ -12626,7 +11977,7 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
|
|
|
12626
11977
|
} | {
|
|
12627
11978
|
type: "Grid";
|
|
12628
11979
|
id: string;
|
|
12629
|
-
items?: (UIButtonElementCreate | UITextElementCreate |
|
|
11980
|
+
items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
|
|
12630
11981
|
onCreate?: ((args_0: {
|
|
12631
11982
|
id: string;
|
|
12632
11983
|
}, ...args: unknown[]) => void) | undefined;
|
|
@@ -12662,52 +12013,6 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
|
|
|
12662
12013
|
id: string;
|
|
12663
12014
|
}, ...args: unknown[]) => void) | undefined;
|
|
12664
12015
|
content?: string | undefined;
|
|
12665
|
-
} | {
|
|
12666
|
-
type: "ButtonGroup";
|
|
12667
|
-
id: string;
|
|
12668
|
-
align?: "start" | "end" | undefined;
|
|
12669
|
-
items?: ({
|
|
12670
|
-
type: "Button";
|
|
12671
|
-
label: string;
|
|
12672
|
-
onClick: (args_0: {
|
|
12673
|
-
id: string;
|
|
12674
|
-
}, ...args: unknown[]) => void;
|
|
12675
|
-
id?: string | undefined;
|
|
12676
|
-
onCreate?: ((args_0: {
|
|
12677
|
-
id: string;
|
|
12678
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12679
|
-
onDestroy?: ((args_0: {
|
|
12680
|
-
id: string;
|
|
12681
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12682
|
-
disabled?: boolean | undefined;
|
|
12683
|
-
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
12684
|
-
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
12685
|
-
} | {
|
|
12686
|
-
type: "Text";
|
|
12687
|
-
content: string;
|
|
12688
|
-
id?: string | undefined;
|
|
12689
|
-
onCreate?: ((args_0: {
|
|
12690
|
-
id: string;
|
|
12691
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12692
|
-
onDestroy?: ((args_0: {
|
|
12693
|
-
id: string;
|
|
12694
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12695
|
-
} | {
|
|
12696
|
-
type: "FlexibleSpace";
|
|
12697
|
-
id?: string | undefined;
|
|
12698
|
-
onCreate?: ((args_0: {
|
|
12699
|
-
id: string;
|
|
12700
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12701
|
-
onDestroy?: ((args_0: {
|
|
12702
|
-
id: string;
|
|
12703
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12704
|
-
})[] | undefined;
|
|
12705
|
-
onCreate?: ((args_0: {
|
|
12706
|
-
id: string;
|
|
12707
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12708
|
-
onDestroy?: ((args_0: {
|
|
12709
|
-
id: string;
|
|
12710
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12711
12016
|
} | {
|
|
12712
12017
|
type: "TextInput";
|
|
12713
12018
|
id: string;
|
|
@@ -12774,7 +12079,7 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
|
|
|
12774
12079
|
} | {
|
|
12775
12080
|
type: "Grid";
|
|
12776
12081
|
id: string;
|
|
12777
|
-
items?: (UIButtonElementCreate | UITextElementCreate |
|
|
12082
|
+
items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
|
|
12778
12083
|
onCreate?: ((args_0: {
|
|
12779
12084
|
id: string;
|
|
12780
12085
|
}, ...args: unknown[]) => void) | undefined;
|
|
@@ -12813,52 +12118,6 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
|
|
|
12813
12118
|
id: string;
|
|
12814
12119
|
}, ...args: unknown[]) => void) | undefined;
|
|
12815
12120
|
content?: string | undefined;
|
|
12816
|
-
} | {
|
|
12817
|
-
type: "ButtonGroup";
|
|
12818
|
-
id: string;
|
|
12819
|
-
align?: "start" | "end" | undefined;
|
|
12820
|
-
items?: ({
|
|
12821
|
-
type: "Button";
|
|
12822
|
-
label: string;
|
|
12823
|
-
onClick: (args_0: {
|
|
12824
|
-
id: string;
|
|
12825
|
-
}, ...args: unknown[]) => void;
|
|
12826
|
-
id?: string | undefined;
|
|
12827
|
-
onCreate?: ((args_0: {
|
|
12828
|
-
id: string;
|
|
12829
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12830
|
-
onDestroy?: ((args_0: {
|
|
12831
|
-
id: string;
|
|
12832
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12833
|
-
disabled?: boolean | undefined;
|
|
12834
|
-
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
12835
|
-
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
12836
|
-
} | {
|
|
12837
|
-
type: "Text";
|
|
12838
|
-
content: string;
|
|
12839
|
-
id?: string | undefined;
|
|
12840
|
-
onCreate?: ((args_0: {
|
|
12841
|
-
id: string;
|
|
12842
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12843
|
-
onDestroy?: ((args_0: {
|
|
12844
|
-
id: string;
|
|
12845
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12846
|
-
} | {
|
|
12847
|
-
type: "FlexibleSpace";
|
|
12848
|
-
id?: string | undefined;
|
|
12849
|
-
onCreate?: ((args_0: {
|
|
12850
|
-
id: string;
|
|
12851
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12852
|
-
onDestroy?: ((args_0: {
|
|
12853
|
-
id: string;
|
|
12854
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12855
|
-
})[] | undefined;
|
|
12856
|
-
onCreate?: ((args_0: {
|
|
12857
|
-
id: string;
|
|
12858
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12859
|
-
onDestroy?: ((args_0: {
|
|
12860
|
-
id: string;
|
|
12861
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12862
12121
|
} | {
|
|
12863
12122
|
type: "TextInput";
|
|
12864
12123
|
id: string;
|
|
@@ -12925,7 +12184,7 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
|
|
|
12925
12184
|
} | {
|
|
12926
12185
|
type: "Grid";
|
|
12927
12186
|
id: string;
|
|
12928
|
-
items?: (UIButtonElementCreate | UITextElementCreate |
|
|
12187
|
+
items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
|
|
12929
12188
|
onCreate?: ((args_0: {
|
|
12930
12189
|
id: string;
|
|
12931
12190
|
}, ...args: unknown[]) => void) | undefined;
|
|
@@ -12964,52 +12223,6 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
|
|
|
12964
12223
|
id: string;
|
|
12965
12224
|
}, ...args: unknown[]) => void) | undefined;
|
|
12966
12225
|
content?: string | undefined;
|
|
12967
|
-
} | {
|
|
12968
|
-
type: "ButtonGroup";
|
|
12969
|
-
id: string;
|
|
12970
|
-
align?: "start" | "end" | undefined;
|
|
12971
|
-
items?: ({
|
|
12972
|
-
type: "Button";
|
|
12973
|
-
label: string;
|
|
12974
|
-
onClick: (args_0: {
|
|
12975
|
-
id: string;
|
|
12976
|
-
}, ...args: unknown[]) => void;
|
|
12977
|
-
id?: string | undefined;
|
|
12978
|
-
onCreate?: ((args_0: {
|
|
12979
|
-
id: string;
|
|
12980
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12981
|
-
onDestroy?: ((args_0: {
|
|
12982
|
-
id: string;
|
|
12983
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12984
|
-
disabled?: boolean | undefined;
|
|
12985
|
-
variant?: "filled" | "transparent" | "outlined" | undefined;
|
|
12986
|
-
tint?: "default" | "primary" | "accent" | "danger" | undefined;
|
|
12987
|
-
} | {
|
|
12988
|
-
type: "Text";
|
|
12989
|
-
content: string;
|
|
12990
|
-
id?: string | undefined;
|
|
12991
|
-
onCreate?: ((args_0: {
|
|
12992
|
-
id: string;
|
|
12993
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12994
|
-
onDestroy?: ((args_0: {
|
|
12995
|
-
id: string;
|
|
12996
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
12997
|
-
} | {
|
|
12998
|
-
type: "FlexibleSpace";
|
|
12999
|
-
id?: string | undefined;
|
|
13000
|
-
onCreate?: ((args_0: {
|
|
13001
|
-
id: string;
|
|
13002
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
13003
|
-
onDestroy?: ((args_0: {
|
|
13004
|
-
id: string;
|
|
13005
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
13006
|
-
})[] | undefined;
|
|
13007
|
-
onCreate?: ((args_0: {
|
|
13008
|
-
id: string;
|
|
13009
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
13010
|
-
onDestroy?: ((args_0: {
|
|
13011
|
-
id: string;
|
|
13012
|
-
}, ...args: unknown[]) => void) | undefined;
|
|
13013
12226
|
} | {
|
|
13014
12227
|
type: "TextInput";
|
|
13015
12228
|
id: string;
|
|
@@ -13076,7 +12289,7 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
|
|
|
13076
12289
|
} | {
|
|
13077
12290
|
type: "Grid";
|
|
13078
12291
|
id: string;
|
|
13079
|
-
items?: (UIButtonElementCreate | UITextElementCreate |
|
|
12292
|
+
items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
|
|
13080
12293
|
onCreate?: ((args_0: {
|
|
13081
12294
|
id: string;
|
|
13082
12295
|
}, ...args: unknown[]) => void) | undefined;
|
|
@@ -13913,4 +13126,4 @@ interface FeltController extends ViewportController, UiController, LayersControl
|
|
|
13913
13126
|
iframe: HTMLIFrameElement | null;
|
|
13914
13127
|
}
|
|
13915
13128
|
|
|
13916
|
-
export { type LayerChangeCallbackParams as $, type TextElementUpdate as A, type ElementsController as B, type CircleElementCreate as C, type MapInteractionEvent as D, type Element as E, type FeltController as F, type GetElementGroupsConstraint as G, type HighlighterElementCreate as H, type ImageElementCreate as I, type InteractionsController as J, type CreateLayersFromGeoJsonParams as K, type LinkElementRead as L, type MarkerElementCreate as M, type NoteElementCreate as N, type DataOnlyLayer as O, type PathElementCreate as P, type FeltTiledVectorSource as Q, type GeoJsonDataVectorSource as R, type GeoJsonFileVectorSource as S, type TextElementCreate as T, type UiControlsOptions as U, type ViewportCenterZoom as V, type GeoJsonUrlVectorSource as W, type GetLayerGroupsConstraint as X, type GetLayersConstraint as Y, type GetRenderedFeaturesConstraint as Z, type Layer as _, type CircleElementRead as a, type LngLatTuple as a$, type LayerCommon as a0, type LayerGroup as a1, type LayerGroupChangeCallbackParams as a2, type LayerProcessingStatus as a3, type LegendItem as a4, type LegendItemChangeCallbackParams as a5, type LegendItemIdentifier as a6, type LegendItemsConstraint as a7, type RasterBand as a8, type RasterLayer as a9, type GetLayerCategoriesParams as aA, type GetLayerHistogramBin as aB, type GetLayerHistogramParams as aC, type GetLayerPrecomputedCalculationParams as aD, type GridConfig as aE, type GridType as aF, type MultiAggregationConfig as aG, type PrecomputedAggregationMethod as aH, type ValueConfiguration as aI, type LayersController as aJ, type MapDetails as aK, type MiscController as aL, type ElementGroupNode as aM, type ElementNode as aN, type EntityNode as aO, type FeatureNode as aP, type FeatureSelection as aQ, type LayerGroupNode as aR, type LayerNode as aS, type SelectionController as aT, type FeltBoundary as aU, type FeltZoom as aV, type GeoJsonFeature as aW, type GeoJsonGeometry as aX, type GeoJsonProperties as aY, type LatLng as aZ, type LineStringGeometry as a_, type RasterLayerSource as aa, type UpdateLayerParams as ab, type VectorLayer as ac, type LayerFeature as ad, type RasterValue as ae, type LayerSchema as af, type LayerSchemaAttribute as ag, type LayerSchemaBooleanAttribute as ah, type LayerSchemaCommonAttribute as ai, type LayerSchemaDateAttribute as aj, type LayerSchemaDateTimeAttribute as ak, type LayerSchemaNumericAttribute as al, type LayerSchemaTextAttribute as am, type FilterExpression as an, type FilterLogicGate as ao, type FilterTernary as ap, type Filters as aq, type GeometryFilter as ar, type LayerBoundaries as as, type LayerFilters as at, type AggregatedGridConfig as au, type AggregationConfig as av, type AggregationMethod as aw, type CountGridConfig as ax, type GetLayerCalculationParams as ay, type GetLayerCategoriesGroup as az, type CircleElementUpdate as b, type
|
|
13129
|
+
export { type LayerChangeCallbackParams as $, type TextElementUpdate as A, type ElementsController as B, type CircleElementCreate as C, type MapInteractionEvent as D, type Element as E, type FeltController as F, type GetElementGroupsConstraint as G, type HighlighterElementCreate as H, type ImageElementCreate as I, type InteractionsController as J, type CreateLayersFromGeoJsonParams as K, type LinkElementRead as L, type MarkerElementCreate as M, type NoteElementCreate as N, type DataOnlyLayer as O, type PathElementCreate as P, type FeltTiledVectorSource as Q, type GeoJsonDataVectorSource as R, type GeoJsonFileVectorSource as S, type TextElementCreate as T, type UiControlsOptions as U, type ViewportCenterZoom as V, type GeoJsonUrlVectorSource as W, type GetLayerGroupsConstraint as X, type GetLayersConstraint as Y, type GetRenderedFeaturesConstraint as Z, type Layer as _, type CircleElementRead as a, type LngLatTuple as a$, type LayerCommon as a0, type LayerGroup as a1, type LayerGroupChangeCallbackParams as a2, type LayerProcessingStatus as a3, type LegendItem as a4, type LegendItemChangeCallbackParams as a5, type LegendItemIdentifier as a6, type LegendItemsConstraint as a7, type RasterBand as a8, type RasterLayer as a9, type GetLayerCategoriesParams as aA, type GetLayerHistogramBin as aB, type GetLayerHistogramParams as aC, type GetLayerPrecomputedCalculationParams as aD, type GridConfig as aE, type GridType as aF, type MultiAggregationConfig as aG, type PrecomputedAggregationMethod as aH, type ValueConfiguration as aI, type LayersController as aJ, type MapDetails as aK, type MiscController as aL, type ElementGroupNode as aM, type ElementNode as aN, type EntityNode as aO, type FeatureNode as aP, type FeatureSelection as aQ, type LayerGroupNode as aR, type LayerNode as aS, type SelectionController as aT, type FeltBoundary as aU, type FeltZoom as aV, type GeoJsonFeature as aW, type GeoJsonGeometry as aX, type GeoJsonProperties as aY, type LatLng as aZ, type LineStringGeometry as a_, type RasterLayerSource as aa, type UpdateLayerParams as ab, type VectorLayer as ac, type LayerFeature as ad, type RasterValue as ae, type LayerSchema as af, type LayerSchemaAttribute as ag, type LayerSchemaBooleanAttribute as ah, type LayerSchemaCommonAttribute as ai, type LayerSchemaDateAttribute as aj, type LayerSchemaDateTimeAttribute as ak, type LayerSchemaNumericAttribute as al, type LayerSchemaTextAttribute as am, type FilterExpression as an, type FilterLogicGate as ao, type FilterTernary as ap, type Filters as aq, type GeometryFilter as ar, type LayerBoundaries as as, type LayerFilters as at, type AggregatedGridConfig as au, type AggregationConfig as av, type AggregationMethod as aw, type CountGridConfig as ax, type GetLayerCalculationParams as ay, type GetLayerCategoriesGroup as az, type CircleElementUpdate as b, type ViewportConstraints as b$, type MultiLineStringGeometry as b0, type MultiPointGeometry as b1, type MultiPolygonGeometry as b2, type PointGeometry as b3, type PolygonGeometry as b4, type SetVisibilityRequest as b5, type SortConfig as b6, type SortDirection as b7, type CircleToolSettings as b8, type ConfigurableToolType as b9, type UIButtonElement as bA, type UIButtonElementCreate as bB, type UIButtonElementUpdate as bC, type UITextElement as bD, type UITextElementCreate as bE, type UITextElementUpdate as bF, type UIFlexibleSpaceElement as bG, type UIFlexibleSpaceElementCreate as bH, type UIFlexibleSpaceElementUpdate as bI, type UIDividerElement as bJ, type UIDividerElementCreate as bK, type UIDividerElementUpdate as bL, type UITextInputElement as bM, type UITextInputElementCreate as bN, type UITextInputElementUpdate as bO, type UISelectElement as bP, type UISelectElementCreate as bQ, type UISelectElementUpdate as bR, type UIPanelElement as bS, type UIPanelElementCreate as bT, type UIPanelElementUpdate as bU, type UIGridContainerElement as bV, type UIGridContainerElementCreate as bW, type UIGridContainerElementUpdate as bX, type UIActionTriggerCreate as bY, type UiController as bZ, type SetViewportCenterZoomParams as b_, type HighlighterToolSettings as ba, type InputToolSettings as bb, type LineToolSettings as bc, type MarkerToolSettings as bd, type NoteToolSettings as be, type PinToolSettings as bf, type PlaceFrame as bg, type PlaceSymbol as bh, type PolygonToolSettings as bi, type RouteToolSettings as bj, type TextToolSettings as bk, type ToolSettingsChangeEvent as bl, type ToolSettingsMap as bm, type ToolType as bn, type ToolsController as bo, type CreateActionTriggerParams as bp, type CreatePanelElementsParams as bq, type CreatePanelParams as br, type DeletePanelElementsParams as bs, type UiOnMapInteractionsOptions as bt, type UpdateActionTriggerParams as bu, type UpdatePanelElementsParams as bv, type UpdatePanelParams as bw, type PlacementForUIElement as bx, type UIPanel as by, type UIPanelCreate as bz, type ElementChangeCallbackParams as c, type ViewportFitBoundsParams as c0, type ViewportState as c1, type ViewportController as c2, type UnwrapPromise as c3, uiActionTriggerSchema as c4, type UIPanelElementCreateClonable as c5, uiPanelCreateSchema as c6, type UIButtonElementCreateClonable as c7, type MakeClonableSchema as c8, type PromiseOrNot as c9, type UnionToIntersection as ca, type ElementCreate as d, type ElementGroup as e, type ElementGroupChangeCallbackParams as f, type ElementUpdate as g, type GetElementsConstraint as h, type HighlighterElementRead as i, type HighlighterElementUpdate as j, type ImageElementRead as k, type ImageElementUpdate as l, type MarkerElementRead as m, type MarkerElementUpdate as n, type NoteElementRead as o, type NoteElementUpdate as p, type PathElementRead as q, type PathElementUpdate as r, type PlaceElementCreate as s, type PlaceElementRead as t, type PlaceElementUpdate as u, type PolygonElementCreate as v, type PolygonElementRead as w, type PolygonElementUpdate as x, type TextElementRead as y, type zInfer as z };
|