@feltmaps/js-sdk 1.7.0-next.17 → 1.7.0-next.19

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.
@@ -9670,6 +9670,161 @@ interface UIButtonElementCreateClonable extends MakeClonableSchema<UIButtonEleme
9670
9670
  interface UIButtonElementUpdate extends MakeUpdateSchema<UIButtonElement, UIButtonElementCreate> {
9671
9671
  }
9672
9672
 
9673
+ /**
9674
+ * Represents a row of buttons.
9675
+ *
9676
+ * It is useful to group buttons together and align them.
9677
+ *
9678
+ * Unlike on {@link UIGridContainerElement}, buttons do not expand to fill the container.
9679
+ * Instead, they use the space they need and are wrapped to the next line when they overflow.
9680
+ *
9681
+ * ### Label
9682
+ *
9683
+ * A label can be added to the button row using the `label` property.
9684
+ *
9685
+ * <figure>
9686
+ * <img src="./img/button-row-label.png" alt="Label" />
9687
+ * <figcaption>Label</figcaption>
9688
+ * </figure>
9689
+ *
9690
+ * ```typescript
9691
+ * {
9692
+ * type: "ButtonRow",
9693
+ * label: "Zoom control",
9694
+ * items: [
9695
+ * { type: "Button", label: "Increase", onClick: () => {} },
9696
+ * { type: "Button", label: "Decrease", onClick: () => {} },
9697
+ * ],
9698
+ * }
9699
+ * ```
9700
+ *
9701
+ * ### Alignment
9702
+ *
9703
+ * It is possible to align the button row to the start or end of the container using the `align` property.
9704
+ *
9705
+ * #### Start alignment
9706
+ *
9707
+ * <figure>
9708
+ * <img src="./img/button-row-start-alignment.png" alt="Start alignment" />
9709
+ * <figcaption>Start alignment</figcaption>
9710
+ * </figure>
9711
+ *
9712
+ * ```typescript
9713
+ * {
9714
+ * type: "ButtonRow",
9715
+ * align: "start", // default value
9716
+ * items: [
9717
+ * { type: "Button", label: "Button 1", onClick: () => {} },
9718
+ * { type: "Button", label: "Button 2", onClick: () => {} },
9719
+ * ],
9720
+ * }
9721
+ * ```
9722
+ *
9723
+ * #### End alignment
9724
+ *
9725
+ * <figure>
9726
+ * <img src="./img/button-row-end-alignment.png" alt="End alignment" />
9727
+ * <figcaption>End alignment</figcaption>
9728
+ * </figure>
9729
+ *
9730
+ * ```typescript
9731
+ * {
9732
+ * type: "ButtonRow",
9733
+ * align: "end",
9734
+ * items: [
9735
+ * { type: "Button", label: "Button 1", onClick: () => {} },
9736
+ * { type: "Button", label: "Button 2", onClick: () => {} },
9737
+ * ],
9738
+ * }
9739
+ * ```
9740
+ *
9741
+ * ### Overflow
9742
+ *
9743
+ * When buttons overflow the container, they are wrapped to the next line.
9744
+ *
9745
+ * <figure>
9746
+ * <img src="./img/button-row-overflow.png" alt="Overflow" />
9747
+ * <figcaption>Overflow</figcaption>
9748
+ * </figure>
9749
+ *
9750
+ * ```typescript
9751
+ * {
9752
+ * type: "ButtonRow",
9753
+ * items: [
9754
+ * { type: "Button", label: "Button with a very long text", onClick: () => {} },
9755
+ * { type: "Button", label: "Button 2", onClick: () => {} },
9756
+ * { type: "Button", label: "Button 3", onClick: () => {} },
9757
+ * ],
9758
+ * }
9759
+ * ```
9760
+ *
9761
+ * ### With Grid container
9762
+ *
9763
+ * {@link UIGridContainerElement}, as a generic container, can render {@link UIButtonRowElement} as well.
9764
+ *
9765
+ * In this example, the combination of {@link UIGridContainerElement} and {@link UIButtonRowElement} is used to layout a footer
9766
+ * where the buttons are aligned to the end of the container and the text is at the start.
9767
+ *
9768
+ * <figure>
9769
+ * <img src="./img/button-row-with-grid-container.png" alt="With Grid container" />
9770
+ * <figcaption>With Grid container</figcaption>
9771
+ * </figure>
9772
+ *
9773
+ * ```typescript
9774
+ * {
9775
+ * type: "Grid",
9776
+ * grid: "auto-flow / 1fr auto",
9777
+ * rowItemsJustify: "space-between",
9778
+ * rowItemsAlign: "center",
9779
+ * items: [
9780
+ * { type: "Text", content: "Continue?" },
9781
+ * {
9782
+ * type: "ButtonRow",
9783
+ * align: "end",
9784
+ * items: [
9785
+ * { type: "Button", variant: "transparent", label: "Cancel", onClick: () => {} },
9786
+ * { type: "Button", variant: "filled", tint: "primary", label: "Continue", onClick: () => {} },
9787
+ * ]
9788
+ * },
9789
+ * ],
9790
+ * }
9791
+ * ```
9792
+ */
9793
+ interface UIButtonRowElement extends UILabelReadyElement {
9794
+ type: "ButtonRow";
9795
+ /**
9796
+ * The alignment of the button row.
9797
+ *
9798
+ * @defaultValue `"start"`
9799
+ */
9800
+ align?: "start" | "end";
9801
+ /**
9802
+ * The items to add to the button row.
9803
+ */
9804
+ items: Array<UIButtonElement>;
9805
+ }
9806
+ /**
9807
+ * The parameters for creating a button row element.
9808
+ *
9809
+ * See {@link UIButtonRowElement} for more details.
9810
+ */
9811
+ interface UIButtonRowElementCreate extends Omit<UIButtonRowElement, "id" | "items">, UILabelReadyElementCreateParams {
9812
+ /**
9813
+ * The items to add to the button row.
9814
+ */
9815
+ items: Array<UIButtonElementCreate>;
9816
+ }
9817
+ type UIButtonRowElementCreateClonable = Omit<MakeClonableSchema<UIButtonRowElementCreate>, "items"> & {
9818
+ items: Array<UIButtonElementCreateClonable>;
9819
+ };
9820
+ /**
9821
+ * The parameters for updating a button row element.
9822
+ *
9823
+ * See {@link UIButtonRowElement} for more details.
9824
+ */
9825
+ interface UIButtonRowElementUpdate extends MakeUpdateSchema<UIButtonRowElement, UIButtonRowElementCreate> {
9826
+ }
9827
+
9673
9828
  declare const uiDividerElementSchema: ZodObject<objectUtil.extendShape<objectUtil.extendShape<{
9674
9829
  onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
9675
9830
  id: ZodString;
@@ -10379,6 +10534,16 @@ type ItemCreateClonableType = Exclude<UIPanelElementCreateClonable, {
10379
10534
  *
10380
10535
  * As part of CSS Grid Layout capabilities it is possible to create a horizontal stack.
10381
10536
  *
10537
+ * #### Alignment & Distribution
10538
+ *
10539
+ * On horizontal stacks, it is possible to align and distribute the items.
10540
+ *
10541
+ * `verticalAlignment` is used to align the items vertically. By default, items are aligned to the top of the container.
10542
+ * It follows the same values as CSS's `align-items` property. See [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items) for more details.
10543
+ *
10544
+ * `horizontalDistribution` is used to justify the items horizontally. By default, items are justified to the start of the container.
10545
+ * It follows the same values as CSS's `justify-content` property. See [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content) for more details.
10546
+ *
10382
10547
  * #### Equal width columns
10383
10548
  *
10384
10549
  * <figure>
@@ -10466,6 +10631,20 @@ interface UIGridContainerElement extends UIElementBase {
10466
10631
  *
10467
10632
  */
10468
10633
  grid?: string;
10634
+ /**
10635
+ * The alignment of the items in the grid.
10636
+ * Only takes effect on horizontal stacks.
10637
+ *
10638
+ * @defaultValue `"top"`
10639
+ */
10640
+ verticalAlignment?: "top" | "center" | "bottom";
10641
+ /**
10642
+ * The distribution of the items in the grid.
10643
+ * Only takes effect on horizontal stacks.
10644
+ *
10645
+ * @defaultValue `"start"`
10646
+ */
10647
+ horizontalDistribution?: "start" | "center" | "end" | "space-between" | "space-around" | "space-evenly";
10469
10648
  /**
10470
10649
  * The items to add to the grid container.
10471
10650
  */
@@ -10500,22 +10679,22 @@ type UIGridContainerElementCreateClonable = Omit<MakeClonableSchema<UIGridContai
10500
10679
  interface UIGridContainerElementUpdate extends MakeUpdateSchema<UIGridContainerElement, UIGridContainerElementCreate> {
10501
10680
  }
10502
10681
 
10503
- type UIPanelElement = UIButtonElement | UITextElement | UIDividerElement | UITextInputElement | UISelectElement | UIFlexibleSpaceElement | UIGridContainerElement;
10682
+ type UIPanelElement = UIButtonElement | UITextElement | UIDividerElement | UITextInputElement | UISelectElement | UIFlexibleSpaceElement | UIButtonRowElement | UIGridContainerElement;
10504
10683
  /**
10505
10684
  * This is a union of all the possible elements that can be created inside panel's body or footer.
10506
10685
  *
10507
10686
  * @remarks
10508
10687
  * For the sake of convenience, `id` is optional but recommended if you want to be able to perform updates.
10509
10688
  */
10510
- type UIPanelElementCreate = UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIGridContainerElementCreate;
10511
- type UIPanelElementCreateClonable = UIButtonElementCreateClonable | UITextElementCreateClonable | UIDividerElementCreateClonable | UITextInputElementCreateClonable | UISelectElementCreateClonable | UIFlexibleSpaceElementCreateClonable | UIGridContainerElementCreateClonable;
10689
+ type UIPanelElementCreate = UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate | UIGridContainerElementCreate;
10690
+ type UIPanelElementCreateClonable = UIButtonElementCreateClonable | UITextElementCreateClonable | UIDividerElementCreateClonable | UITextInputElementCreateClonable | UISelectElementCreateClonable | UIFlexibleSpaceElementCreateClonable | UIButtonRowElementCreateClonable | UIGridContainerElementCreateClonable;
10512
10691
  /**
10513
10692
  * 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).
10514
10693
  *
10515
10694
  * @remarks
10516
10695
  * `id` and `type` are required to identify the element to update.
10517
10696
  */
10518
- type UIPanelElementUpdate = UIButtonElementUpdate | UITextElementUpdate | UITextInputElementUpdate | UISelectElementUpdate | UIDividerElementUpdate | UIGridContainerElementUpdate | UIFlexibleSpaceElementUpdate;
10697
+ type UIPanelElementUpdate = UIButtonElementUpdate | UITextElementUpdate | UITextInputElementUpdate | UISelectElementUpdate | UIDividerElementUpdate | UIButtonRowElementUpdate | UIGridContainerElementUpdate | UIFlexibleSpaceElementUpdate;
10519
10698
 
10520
10699
  declare const placementForUiElementSchema: ZodUnion<[ZodObject<{
10521
10700
  after: ZodString;
@@ -11823,6 +12002,160 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
11823
12002
  onDestroy?: ((args_0: {
11824
12003
  id: string;
11825
12004
  }, ...args: unknown[]) => void) | undefined;
12005
+ }>, ZodObject<{
12006
+ type: ZodLiteral<"ButtonRow">;
12007
+ id: ZodString;
12008
+ align: ZodOptional<ZodOptional<ZodEnum<["start", "end"]>>>;
12009
+ onCreate: ZodOptional<ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
12010
+ id: ZodString;
12011
+ }, "strip", ZodTypeAny, {
12012
+ id: string;
12013
+ }, {
12014
+ id: string;
12015
+ }>], ZodUnknown>, ZodVoid>>>;
12016
+ onDestroy: ZodOptional<ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
12017
+ id: ZodString;
12018
+ }, "strip", ZodTypeAny, {
12019
+ id: string;
12020
+ }, {
12021
+ id: string;
12022
+ }>], ZodUnknown>, ZodVoid>>>;
12023
+ label: ZodOptional<ZodOptional<ZodString>>;
12024
+ items: ZodOptional<ZodArray<ZodObject<objectUtil.extendShape<objectUtil.extendShape<objectUtil.extendShape<{
12025
+ onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
12026
+ id: ZodString;
12027
+ }, "strip", ZodTypeAny, {
12028
+ id: string;
12029
+ }, {
12030
+ id: string;
12031
+ }>], ZodUnknown>, ZodVoid>>;
12032
+ onDestroy: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
12033
+ id: ZodString;
12034
+ }, "strip", ZodTypeAny, {
12035
+ id: string;
12036
+ }, {
12037
+ id: string;
12038
+ }>], ZodUnknown>, ZodVoid>>;
12039
+ }, {
12040
+ id: ZodString;
12041
+ }>, {
12042
+ type: ZodLiteral<"Button">;
12043
+ label: ZodString;
12044
+ variant: ZodOptional<ZodEnum<["filled", "transparent", "outlined"]>>;
12045
+ tint: ZodOptional<ZodEnum<["default", "primary", "accent", "danger"]>>;
12046
+ disabled: ZodOptional<ZodBoolean>;
12047
+ onClick: ZodFunction<ZodTuple<[ZodObject<{
12048
+ id: ZodString;
12049
+ }, "strip", ZodTypeAny, {
12050
+ id: string;
12051
+ }, {
12052
+ id: string;
12053
+ }>], ZodUnknown>, ZodVoid>;
12054
+ }>, {
12055
+ id: ZodOptional<ZodString>;
12056
+ onCreate: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
12057
+ id: ZodString;
12058
+ }, "strip", ZodTypeAny, {
12059
+ id: string;
12060
+ }, {
12061
+ id: string;
12062
+ }>], ZodUnknown>, ZodVoid>>;
12063
+ onDestroy: ZodOptional<ZodFunction<ZodTuple<[ZodObject<{
12064
+ id: ZodString;
12065
+ }, "strip", ZodTypeAny, {
12066
+ id: string;
12067
+ }, {
12068
+ id: string;
12069
+ }>], ZodUnknown>, ZodVoid>>;
12070
+ }>, "strip", ZodTypeAny, {
12071
+ type: "Button";
12072
+ label: string;
12073
+ onClick: (args_0: {
12074
+ id: string;
12075
+ }, ...args: unknown[]) => void;
12076
+ id?: string | undefined;
12077
+ onCreate?: ((args_0: {
12078
+ id: string;
12079
+ }, ...args: unknown[]) => void) | undefined;
12080
+ onDestroy?: ((args_0: {
12081
+ id: string;
12082
+ }, ...args: unknown[]) => void) | undefined;
12083
+ disabled?: boolean | undefined;
12084
+ variant?: "filled" | "transparent" | "outlined" | undefined;
12085
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
12086
+ }, {
12087
+ type: "Button";
12088
+ label: string;
12089
+ onClick: (args_0: {
12090
+ id: string;
12091
+ }, ...args: unknown[]) => void;
12092
+ id?: string | undefined;
12093
+ onCreate?: ((args_0: {
12094
+ id: string;
12095
+ }, ...args: unknown[]) => void) | undefined;
12096
+ onDestroy?: ((args_0: {
12097
+ id: string;
12098
+ }, ...args: unknown[]) => void) | undefined;
12099
+ disabled?: boolean | undefined;
12100
+ variant?: "filled" | "transparent" | "outlined" | undefined;
12101
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
12102
+ }>, "many">>;
12103
+ }, UnknownKeysParam, ZodTypeAny, {
12104
+ type: "ButtonRow";
12105
+ id: string;
12106
+ align?: "start" | "end" | undefined;
12107
+ items?: {
12108
+ type: "Button";
12109
+ label: string;
12110
+ onClick: (args_0: {
12111
+ id: string;
12112
+ }, ...args: unknown[]) => void;
12113
+ id?: string | undefined;
12114
+ onCreate?: ((args_0: {
12115
+ id: string;
12116
+ }, ...args: unknown[]) => void) | undefined;
12117
+ onDestroy?: ((args_0: {
12118
+ id: string;
12119
+ }, ...args: unknown[]) => void) | undefined;
12120
+ disabled?: boolean | undefined;
12121
+ variant?: "filled" | "transparent" | "outlined" | undefined;
12122
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
12123
+ }[] | undefined;
12124
+ onCreate?: ((args_0: {
12125
+ id: string;
12126
+ }, ...args: unknown[]) => void) | undefined;
12127
+ onDestroy?: ((args_0: {
12128
+ id: string;
12129
+ }, ...args: unknown[]) => void) | undefined;
12130
+ label?: string | undefined;
12131
+ }, {
12132
+ type: "ButtonRow";
12133
+ id: string;
12134
+ align?: "start" | "end" | undefined;
12135
+ items?: {
12136
+ type: "Button";
12137
+ label: string;
12138
+ onClick: (args_0: {
12139
+ id: string;
12140
+ }, ...args: unknown[]) => void;
12141
+ id?: string | undefined;
12142
+ onCreate?: ((args_0: {
12143
+ id: string;
12144
+ }, ...args: unknown[]) => void) | undefined;
12145
+ onDestroy?: ((args_0: {
12146
+ id: string;
12147
+ }, ...args: unknown[]) => void) | undefined;
12148
+ disabled?: boolean | undefined;
12149
+ variant?: "filled" | "transparent" | "outlined" | undefined;
12150
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
12151
+ }[] | undefined;
12152
+ onCreate?: ((args_0: {
12153
+ id: string;
12154
+ }, ...args: unknown[]) => void) | undefined;
12155
+ onDestroy?: ((args_0: {
12156
+ id: string;
12157
+ }, ...args: unknown[]) => void) | undefined;
12158
+ label?: string | undefined;
11826
12159
  }>, ZodObject<{
11827
12160
  type: ZodLiteral<"Grid">;
11828
12161
  id: ZodString;
@@ -11841,11 +12174,13 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
11841
12174
  id: string;
11842
12175
  }>], ZodUnknown>, ZodVoid>>>;
11843
12176
  grid: ZodOptional<ZodOptional<ZodString>>;
11844
- items: ZodOptional<ZodType<(UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[], ZodTypeDef, (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[]>>;
12177
+ verticalAlignment: ZodOptional<ZodOptional<ZodEnum<["top", "center", "bottom"]>>>;
12178
+ horizontalDistribution: ZodOptional<ZodOptional<ZodEnum<["start", "center", "end", "space-between", "space-around", "space-evenly"]>>>;
12179
+ items: ZodOptional<ZodType<(UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[], ZodTypeDef, (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[]>>;
11845
12180
  }, UnknownKeysParam, ZodTypeAny, {
11846
12181
  type: "Grid";
11847
12182
  id: string;
11848
- items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
12183
+ items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[] | undefined;
11849
12184
  onCreate?: ((args_0: {
11850
12185
  id: string;
11851
12186
  }, ...args: unknown[]) => void) | undefined;
@@ -11853,10 +12188,12 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
11853
12188
  id: string;
11854
12189
  }, ...args: unknown[]) => void) | undefined;
11855
12190
  grid?: string | undefined;
12191
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
12192
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
11856
12193
  }, {
11857
12194
  type: "Grid";
11858
12195
  id: string;
11859
- items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
12196
+ items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[] | undefined;
11860
12197
  onCreate?: ((args_0: {
11861
12198
  id: string;
11862
12199
  }, ...args: unknown[]) => void) | undefined;
@@ -11864,6 +12201,8 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
11864
12201
  id: string;
11865
12202
  }, ...args: unknown[]) => void) | undefined;
11866
12203
  grid?: string | undefined;
12204
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
12205
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
11867
12206
  }>]>;
11868
12207
  }, "strip", ZodTypeAny, {
11869
12208
  element: {
@@ -11955,10 +12294,38 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
11955
12294
  onDestroy?: ((args_0: {
11956
12295
  id: string;
11957
12296
  }, ...args: unknown[]) => void) | undefined;
12297
+ } | {
12298
+ type: "ButtonRow";
12299
+ id: string;
12300
+ align?: "start" | "end" | undefined;
12301
+ items?: {
12302
+ type: "Button";
12303
+ label: string;
12304
+ onClick: (args_0: {
12305
+ id: string;
12306
+ }, ...args: unknown[]) => void;
12307
+ id?: string | undefined;
12308
+ onCreate?: ((args_0: {
12309
+ id: string;
12310
+ }, ...args: unknown[]) => void) | undefined;
12311
+ onDestroy?: ((args_0: {
12312
+ id: string;
12313
+ }, ...args: unknown[]) => void) | undefined;
12314
+ disabled?: boolean | undefined;
12315
+ variant?: "filled" | "transparent" | "outlined" | undefined;
12316
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
12317
+ }[] | undefined;
12318
+ onCreate?: ((args_0: {
12319
+ id: string;
12320
+ }, ...args: unknown[]) => void) | undefined;
12321
+ onDestroy?: ((args_0: {
12322
+ id: string;
12323
+ }, ...args: unknown[]) => void) | undefined;
12324
+ label?: string | undefined;
11958
12325
  } | {
11959
12326
  type: "Grid";
11960
12327
  id: string;
11961
- items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
12328
+ items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[] | undefined;
11962
12329
  onCreate?: ((args_0: {
11963
12330
  id: string;
11964
12331
  }, ...args: unknown[]) => void) | undefined;
@@ -11966,6 +12333,8 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
11966
12333
  id: string;
11967
12334
  }, ...args: unknown[]) => void) | undefined;
11968
12335
  grid?: string | undefined;
12336
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
12337
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
11969
12338
  };
11970
12339
  }, {
11971
12340
  element: {
@@ -12057,10 +12426,38 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
12057
12426
  onDestroy?: ((args_0: {
12058
12427
  id: string;
12059
12428
  }, ...args: unknown[]) => void) | undefined;
12429
+ } | {
12430
+ type: "ButtonRow";
12431
+ id: string;
12432
+ align?: "start" | "end" | undefined;
12433
+ items?: {
12434
+ type: "Button";
12435
+ label: string;
12436
+ onClick: (args_0: {
12437
+ id: string;
12438
+ }, ...args: unknown[]) => void;
12439
+ id?: string | undefined;
12440
+ onCreate?: ((args_0: {
12441
+ id: string;
12442
+ }, ...args: unknown[]) => void) | undefined;
12443
+ onDestroy?: ((args_0: {
12444
+ id: string;
12445
+ }, ...args: unknown[]) => void) | undefined;
12446
+ disabled?: boolean | undefined;
12447
+ variant?: "filled" | "transparent" | "outlined" | undefined;
12448
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
12449
+ }[] | undefined;
12450
+ onCreate?: ((args_0: {
12451
+ id: string;
12452
+ }, ...args: unknown[]) => void) | undefined;
12453
+ onDestroy?: ((args_0: {
12454
+ id: string;
12455
+ }, ...args: unknown[]) => void) | undefined;
12456
+ label?: string | undefined;
12060
12457
  } | {
12061
12458
  type: "Grid";
12062
12459
  id: string;
12063
- items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
12460
+ items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[] | undefined;
12064
12461
  onCreate?: ((args_0: {
12065
12462
  id: string;
12066
12463
  }, ...args: unknown[]) => void) | undefined;
@@ -12068,6 +12465,8 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
12068
12465
  id: string;
12069
12466
  }, ...args: unknown[]) => void) | undefined;
12070
12467
  grid?: string | undefined;
12468
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
12469
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
12071
12470
  };
12072
12471
  }>, "many">;
12073
12472
  }, "strip", ZodTypeAny, {
@@ -12162,10 +12561,38 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
12162
12561
  onDestroy?: ((args_0: {
12163
12562
  id: string;
12164
12563
  }, ...args: unknown[]) => void) | undefined;
12564
+ } | {
12565
+ type: "ButtonRow";
12566
+ id: string;
12567
+ align?: "start" | "end" | undefined;
12568
+ items?: {
12569
+ type: "Button";
12570
+ label: string;
12571
+ onClick: (args_0: {
12572
+ id: string;
12573
+ }, ...args: unknown[]) => void;
12574
+ id?: string | undefined;
12575
+ onCreate?: ((args_0: {
12576
+ id: string;
12577
+ }, ...args: unknown[]) => void) | undefined;
12578
+ onDestroy?: ((args_0: {
12579
+ id: string;
12580
+ }, ...args: unknown[]) => void) | undefined;
12581
+ disabled?: boolean | undefined;
12582
+ variant?: "filled" | "transparent" | "outlined" | undefined;
12583
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
12584
+ }[] | undefined;
12585
+ onCreate?: ((args_0: {
12586
+ id: string;
12587
+ }, ...args: unknown[]) => void) | undefined;
12588
+ onDestroy?: ((args_0: {
12589
+ id: string;
12590
+ }, ...args: unknown[]) => void) | undefined;
12591
+ label?: string | undefined;
12165
12592
  } | {
12166
12593
  type: "Grid";
12167
12594
  id: string;
12168
- items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
12595
+ items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[] | undefined;
12169
12596
  onCreate?: ((args_0: {
12170
12597
  id: string;
12171
12598
  }, ...args: unknown[]) => void) | undefined;
@@ -12173,6 +12600,8 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
12173
12600
  id: string;
12174
12601
  }, ...args: unknown[]) => void) | undefined;
12175
12602
  grid?: string | undefined;
12603
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
12604
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
12176
12605
  };
12177
12606
  }[];
12178
12607
  }, {
@@ -12267,10 +12696,38 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
12267
12696
  onDestroy?: ((args_0: {
12268
12697
  id: string;
12269
12698
  }, ...args: unknown[]) => void) | undefined;
12699
+ } | {
12700
+ type: "ButtonRow";
12701
+ id: string;
12702
+ align?: "start" | "end" | undefined;
12703
+ items?: {
12704
+ type: "Button";
12705
+ label: string;
12706
+ onClick: (args_0: {
12707
+ id: string;
12708
+ }, ...args: unknown[]) => void;
12709
+ id?: string | undefined;
12710
+ onCreate?: ((args_0: {
12711
+ id: string;
12712
+ }, ...args: unknown[]) => void) | undefined;
12713
+ onDestroy?: ((args_0: {
12714
+ id: string;
12715
+ }, ...args: unknown[]) => void) | undefined;
12716
+ disabled?: boolean | undefined;
12717
+ variant?: "filled" | "transparent" | "outlined" | undefined;
12718
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
12719
+ }[] | undefined;
12720
+ onCreate?: ((args_0: {
12721
+ id: string;
12722
+ }, ...args: unknown[]) => void) | undefined;
12723
+ onDestroy?: ((args_0: {
12724
+ id: string;
12725
+ }, ...args: unknown[]) => void) | undefined;
12726
+ label?: string | undefined;
12270
12727
  } | {
12271
12728
  type: "Grid";
12272
12729
  id: string;
12273
- items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
12730
+ items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[] | undefined;
12274
12731
  onCreate?: ((args_0: {
12275
12732
  id: string;
12276
12733
  }, ...args: unknown[]) => void) | undefined;
@@ -12278,6 +12735,8 @@ declare const UpdatePanelElementsParamsSchema: ZodObject<{
12278
12735
  id: string;
12279
12736
  }, ...args: unknown[]) => void) | undefined;
12280
12737
  grid?: string | undefined;
12738
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
12739
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
12281
12740
  };
12282
12741
  }[];
12283
12742
  }>;
@@ -13103,4 +13562,4 @@ interface FeltController extends ViewportController, UiController, LayersControl
13103
13562
  iframe: HTMLIFrameElement | null;
13104
13563
  }
13105
13564
 
13106
- 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 ViewportFitBoundsParams 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 UIButtonElementCreate as bA, type UIButtonElementUpdate as bB, type UITextElement as bC, type UITextElementCreate as bD, type UITextElementUpdate as bE, type UIFlexibleSpaceElement as bF, type UIFlexibleSpaceElementCreate as bG, type UIFlexibleSpaceElementUpdate as bH, type UIDividerElement as bI, type UIDividerElementCreate as bJ, type UIDividerElementUpdate as bK, type UITextInputElement as bL, type UITextInputElementCreate as bM, type UITextInputElementUpdate as bN, type UISelectElement as bO, type UISelectElementCreate as bP, type UISelectElementUpdate as bQ, type UIPanelElement as bR, type UIPanelElementCreate as bS, type UIPanelElementUpdate as bT, type UIGridContainerElement as bU, type UIGridContainerElementCreate as bV, type UIGridContainerElementUpdate as bW, type UIActionTriggerCreate as bX, type UiController as bY, type SetViewportCenterZoomParams as bZ, type ViewportConstraints 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 CreateOrUpdatePanelParams as bq, type CreatePanelElementsParams as br, type DeletePanelElementsParams as bs, type UiOnMapInteractionsOptions as bt, type UpdateActionTriggerParams as bu, type UpdatePanelElementsParams as bv, type PlacementForUIElement as bw, type UIPanel as bx, type UIPanelCreateOrUpdate as by, type UIButtonElement as bz, type ElementChangeCallbackParams as c, type ViewportState as c0, type ViewportController as c1, type UnwrapPromise as c2, uiActionTriggerSchema as c3, type UIPanelElementCreateClonable as c4, uiPanelCreateSchema as c5, type UIButtonElementCreateClonable as c6, type MakeClonableSchema as c7, type PromiseOrNot as c8, type UnionToIntersection as c9, 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 };
13565
+ 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 UiController 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 UIButtonElementCreate as bA, type UIButtonElementUpdate as bB, type UITextElement as bC, type UITextElementCreate as bD, type UITextElementUpdate as bE, type UIFlexibleSpaceElement as bF, type UIFlexibleSpaceElementCreate as bG, type UIFlexibleSpaceElementUpdate as bH, type UIDividerElement as bI, type UIDividerElementCreate as bJ, type UIDividerElementUpdate as bK, type UITextInputElement as bL, type UITextInputElementCreate as bM, type UITextInputElementUpdate as bN, type UISelectElement as bO, type UISelectElementCreate as bP, type UISelectElementUpdate as bQ, type UIPanelElement as bR, type UIPanelElementCreate as bS, type UIPanelElementUpdate as bT, type UIGridContainerElement as bU, type UIGridContainerElementCreate as bV, type UIGridContainerElementUpdate as bW, type UIButtonRowElement as bX, type UIButtonRowElementCreate as bY, type UIButtonRowElementUpdate as bZ, type UIActionTriggerCreate 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 CreateOrUpdatePanelParams as bq, type CreatePanelElementsParams as br, type DeletePanelElementsParams as bs, type UiOnMapInteractionsOptions as bt, type UpdateActionTriggerParams as bu, type UpdatePanelElementsParams as bv, type PlacementForUIElement as bw, type UIPanel as bx, type UIPanelCreateOrUpdate as by, type UIButtonElement as bz, type ElementChangeCallbackParams as c, type SetViewportCenterZoomParams as c0, type ViewportConstraints as c1, type ViewportFitBoundsParams as c2, type ViewportState as c3, type ViewportController as c4, type UnwrapPromise as c5, uiActionTriggerSchema as c6, type UIPanelElementCreateClonable as c7, uiPanelCreateSchema as c8, type UIButtonElementCreateClonable as c9, type MakeClonableSchema as ca, type UIButtonRowElementCreateClonable as cb, type PromiseOrNot as cc, type UnionToIntersection as cd, 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 };