@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.
@@ -8562,6 +8562,161 @@ interface UIButtonElementCreateClonable extends MakeClonableSchema<UIButtonEleme
8562
8562
  interface UIButtonElementUpdate extends MakeUpdateSchema<UIButtonElement, UIButtonElementCreate> {
8563
8563
  }
8564
8564
 
8565
+ /**
8566
+ * Represents a row of buttons.
8567
+ *
8568
+ * It is useful to group buttons together and align them.
8569
+ *
8570
+ * Unlike on {@link UIGridContainerElement}, buttons do not expand to fill the container.
8571
+ * Instead, they use the space they need and are wrapped to the next line when they overflow.
8572
+ *
8573
+ * ### Label
8574
+ *
8575
+ * A label can be added to the button row using the `label` property.
8576
+ *
8577
+ * <figure>
8578
+ * <img src="./img/button-row-label.png" alt="Label" />
8579
+ * <figcaption>Label</figcaption>
8580
+ * </figure>
8581
+ *
8582
+ * ```typescript
8583
+ * {
8584
+ * type: "ButtonRow",
8585
+ * label: "Zoom control",
8586
+ * items: [
8587
+ * { type: "Button", label: "Increase", onClick: () => {} },
8588
+ * { type: "Button", label: "Decrease", onClick: () => {} },
8589
+ * ],
8590
+ * }
8591
+ * ```
8592
+ *
8593
+ * ### Alignment
8594
+ *
8595
+ * It is possible to align the button row to the start or end of the container using the `align` property.
8596
+ *
8597
+ * #### Start alignment
8598
+ *
8599
+ * <figure>
8600
+ * <img src="./img/button-row-start-alignment.png" alt="Start alignment" />
8601
+ * <figcaption>Start alignment</figcaption>
8602
+ * </figure>
8603
+ *
8604
+ * ```typescript
8605
+ * {
8606
+ * type: "ButtonRow",
8607
+ * align: "start", // default value
8608
+ * items: [
8609
+ * { type: "Button", label: "Button 1", onClick: () => {} },
8610
+ * { type: "Button", label: "Button 2", onClick: () => {} },
8611
+ * ],
8612
+ * }
8613
+ * ```
8614
+ *
8615
+ * #### End alignment
8616
+ *
8617
+ * <figure>
8618
+ * <img src="./img/button-row-end-alignment.png" alt="End alignment" />
8619
+ * <figcaption>End alignment</figcaption>
8620
+ * </figure>
8621
+ *
8622
+ * ```typescript
8623
+ * {
8624
+ * type: "ButtonRow",
8625
+ * align: "end",
8626
+ * items: [
8627
+ * { type: "Button", label: "Button 1", onClick: () => {} },
8628
+ * { type: "Button", label: "Button 2", onClick: () => {} },
8629
+ * ],
8630
+ * }
8631
+ * ```
8632
+ *
8633
+ * ### Overflow
8634
+ *
8635
+ * When buttons overflow the container, they are wrapped to the next line.
8636
+ *
8637
+ * <figure>
8638
+ * <img src="./img/button-row-overflow.png" alt="Overflow" />
8639
+ * <figcaption>Overflow</figcaption>
8640
+ * </figure>
8641
+ *
8642
+ * ```typescript
8643
+ * {
8644
+ * type: "ButtonRow",
8645
+ * items: [
8646
+ * { type: "Button", label: "Button with a very long text", onClick: () => {} },
8647
+ * { type: "Button", label: "Button 2", onClick: () => {} },
8648
+ * { type: "Button", label: "Button 3", onClick: () => {} },
8649
+ * ],
8650
+ * }
8651
+ * ```
8652
+ *
8653
+ * ### With Grid container
8654
+ *
8655
+ * {@link UIGridContainerElement}, as a generic container, can render {@link UIButtonRowElement} as well.
8656
+ *
8657
+ * In this example, the combination of {@link UIGridContainerElement} and {@link UIButtonRowElement} is used to layout a footer
8658
+ * where the buttons are aligned to the end of the container and the text is at the start.
8659
+ *
8660
+ * <figure>
8661
+ * <img src="./img/button-row-with-grid-container.png" alt="With Grid container" />
8662
+ * <figcaption>With Grid container</figcaption>
8663
+ * </figure>
8664
+ *
8665
+ * ```typescript
8666
+ * {
8667
+ * type: "Grid",
8668
+ * grid: "auto-flow / 1fr auto",
8669
+ * rowItemsJustify: "space-between",
8670
+ * rowItemsAlign: "center",
8671
+ * items: [
8672
+ * { type: "Text", content: "Continue?" },
8673
+ * {
8674
+ * type: "ButtonRow",
8675
+ * align: "end",
8676
+ * items: [
8677
+ * { type: "Button", variant: "transparent", label: "Cancel", onClick: () => {} },
8678
+ * { type: "Button", variant: "filled", tint: "primary", label: "Continue", onClick: () => {} },
8679
+ * ]
8680
+ * },
8681
+ * ],
8682
+ * }
8683
+ * ```
8684
+ */
8685
+ interface UIButtonRowElement extends UILabelReadyElement {
8686
+ type: "ButtonRow";
8687
+ /**
8688
+ * The alignment of the button row.
8689
+ *
8690
+ * @defaultValue `"start"`
8691
+ */
8692
+ align?: "start" | "end";
8693
+ /**
8694
+ * The items to add to the button row.
8695
+ */
8696
+ items: Array<UIButtonElement>;
8697
+ }
8698
+ /**
8699
+ * The parameters for creating a button row element.
8700
+ *
8701
+ * See {@link UIButtonRowElement} for more details.
8702
+ */
8703
+ interface UIButtonRowElementCreate extends Omit<UIButtonRowElement, "id" | "items">, UILabelReadyElementCreateParams {
8704
+ /**
8705
+ * The items to add to the button row.
8706
+ */
8707
+ items: Array<UIButtonElementCreate>;
8708
+ }
8709
+ type UIButtonRowElementCreateClonable = Omit<MakeClonableSchema<UIButtonRowElementCreate>, "items"> & {
8710
+ items: Array<UIButtonElementCreateClonable>;
8711
+ };
8712
+ /**
8713
+ * The parameters for updating a button row element.
8714
+ *
8715
+ * See {@link UIButtonRowElement} for more details.
8716
+ */
8717
+ interface UIButtonRowElementUpdate extends MakeUpdateSchema<UIButtonRowElement, UIButtonRowElementCreate> {
8718
+ }
8719
+
8565
8720
  declare const uiDividerElementSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
8566
8721
  onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
8567
8722
  id: z.ZodString;
@@ -9271,6 +9426,16 @@ type ItemCreateClonableType = Exclude<UIPanelElementCreateClonable, {
9271
9426
  *
9272
9427
  * As part of CSS Grid Layout capabilities it is possible to create a horizontal stack.
9273
9428
  *
9429
+ * #### Alignment & Distribution
9430
+ *
9431
+ * On horizontal stacks, it is possible to align and distribute the items.
9432
+ *
9433
+ * `verticalAlignment` is used to align the items vertically. By default, items are aligned to the top of the container.
9434
+ * 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.
9435
+ *
9436
+ * `horizontalDistribution` is used to justify the items horizontally. By default, items are justified to the start of the container.
9437
+ * 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.
9438
+ *
9274
9439
  * #### Equal width columns
9275
9440
  *
9276
9441
  * <figure>
@@ -9358,6 +9523,20 @@ interface UIGridContainerElement extends UIElementBase {
9358
9523
  *
9359
9524
  */
9360
9525
  grid?: string;
9526
+ /**
9527
+ * The alignment of the items in the grid.
9528
+ * Only takes effect on horizontal stacks.
9529
+ *
9530
+ * @defaultValue `"top"`
9531
+ */
9532
+ verticalAlignment?: "top" | "center" | "bottom";
9533
+ /**
9534
+ * The distribution of the items in the grid.
9535
+ * Only takes effect on horizontal stacks.
9536
+ *
9537
+ * @defaultValue `"start"`
9538
+ */
9539
+ horizontalDistribution?: "start" | "center" | "end" | "space-between" | "space-around" | "space-evenly";
9361
9540
  /**
9362
9541
  * The items to add to the grid container.
9363
9542
  */
@@ -9392,22 +9571,22 @@ type UIGridContainerElementCreateClonable = Omit<MakeClonableSchema<UIGridContai
9392
9571
  interface UIGridContainerElementUpdate extends MakeUpdateSchema<UIGridContainerElement, UIGridContainerElementCreate> {
9393
9572
  }
9394
9573
 
9395
- type UIPanelElement = UIButtonElement | UITextElement | UIDividerElement | UITextInputElement | UISelectElement | UIFlexibleSpaceElement | UIGridContainerElement;
9574
+ type UIPanelElement = UIButtonElement | UITextElement | UIDividerElement | UITextInputElement | UISelectElement | UIFlexibleSpaceElement | UIButtonRowElement | UIGridContainerElement;
9396
9575
  /**
9397
9576
  * This is a union of all the possible elements that can be created inside panel's body or footer.
9398
9577
  *
9399
9578
  * @remarks
9400
9579
  * For the sake of convenience, `id` is optional but recommended if you want to be able to perform updates.
9401
9580
  */
9402
- type UIPanelElementCreate = UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIGridContainerElementCreate;
9403
- type UIPanelElementCreateClonable = UIButtonElementCreateClonable | UITextElementCreateClonable | UIDividerElementCreateClonable | UITextInputElementCreateClonable | UISelectElementCreateClonable | UIFlexibleSpaceElementCreateClonable | UIGridContainerElementCreateClonable;
9581
+ type UIPanelElementCreate = UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate | UIGridContainerElementCreate;
9582
+ type UIPanelElementCreateClonable = UIButtonElementCreateClonable | UITextElementCreateClonable | UIDividerElementCreateClonable | UITextInputElementCreateClonable | UISelectElementCreateClonable | UIFlexibleSpaceElementCreateClonable | UIButtonRowElementCreateClonable | UIGridContainerElementCreateClonable;
9404
9583
  /**
9405
9584
  * 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).
9406
9585
  *
9407
9586
  * @remarks
9408
9587
  * `id` and `type` are required to identify the element to update.
9409
9588
  */
9410
- type UIPanelElementUpdate = UIButtonElementUpdate | UITextElementUpdate | UITextInputElementUpdate | UISelectElementUpdate | UIDividerElementUpdate | UIGridContainerElementUpdate | UIFlexibleSpaceElementUpdate;
9589
+ type UIPanelElementUpdate = UIButtonElementUpdate | UITextElementUpdate | UITextInputElementUpdate | UISelectElementUpdate | UIDividerElementUpdate | UIButtonRowElementUpdate | UIGridContainerElementUpdate | UIFlexibleSpaceElementUpdate;
9411
9590
 
9412
9591
  declare const placementForUiElementSchema: z.ZodUnion<[z.ZodObject<{
9413
9592
  after: z.ZodString;
@@ -10715,6 +10894,160 @@ declare const UpdatePanelElementsParamsSchema: z.ZodObject<{
10715
10894
  onDestroy?: ((args_0: {
10716
10895
  id: string;
10717
10896
  }, ...args: unknown[]) => void) | undefined;
10897
+ }>, z.ZodObject<{
10898
+ type: z.ZodLiteral<"ButtonRow">;
10899
+ id: z.ZodString;
10900
+ align: z.ZodOptional<z.ZodOptional<z.ZodEnum<["start", "end"]>>>;
10901
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
10902
+ id: z.ZodString;
10903
+ }, "strip", z.ZodTypeAny, {
10904
+ id: string;
10905
+ }, {
10906
+ id: string;
10907
+ }>], z.ZodUnknown>, z.ZodVoid>>>;
10908
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
10909
+ id: z.ZodString;
10910
+ }, "strip", z.ZodTypeAny, {
10911
+ id: string;
10912
+ }, {
10913
+ id: string;
10914
+ }>], z.ZodUnknown>, z.ZodVoid>>>;
10915
+ label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10916
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
10917
+ onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
10918
+ id: z.ZodString;
10919
+ }, "strip", z.ZodTypeAny, {
10920
+ id: string;
10921
+ }, {
10922
+ id: string;
10923
+ }>], z.ZodUnknown>, z.ZodVoid>>;
10924
+ onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
10925
+ id: z.ZodString;
10926
+ }, "strip", z.ZodTypeAny, {
10927
+ id: string;
10928
+ }, {
10929
+ id: string;
10930
+ }>], z.ZodUnknown>, z.ZodVoid>>;
10931
+ }, {
10932
+ id: z.ZodString;
10933
+ }>, {
10934
+ type: z.ZodLiteral<"Button">;
10935
+ label: z.ZodString;
10936
+ variant: z.ZodOptional<z.ZodEnum<["filled", "transparent", "outlined"]>>;
10937
+ tint: z.ZodOptional<z.ZodEnum<["default", "primary", "accent", "danger"]>>;
10938
+ disabled: z.ZodOptional<z.ZodBoolean>;
10939
+ onClick: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
10940
+ id: z.ZodString;
10941
+ }, "strip", z.ZodTypeAny, {
10942
+ id: string;
10943
+ }, {
10944
+ id: string;
10945
+ }>], z.ZodUnknown>, z.ZodVoid>;
10946
+ }>, {
10947
+ id: z.ZodOptional<z.ZodString>;
10948
+ onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
10949
+ id: z.ZodString;
10950
+ }, "strip", z.ZodTypeAny, {
10951
+ id: string;
10952
+ }, {
10953
+ id: string;
10954
+ }>], z.ZodUnknown>, z.ZodVoid>>;
10955
+ onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
10956
+ id: z.ZodString;
10957
+ }, "strip", z.ZodTypeAny, {
10958
+ id: string;
10959
+ }, {
10960
+ id: string;
10961
+ }>], z.ZodUnknown>, z.ZodVoid>>;
10962
+ }>, "strip", z.ZodTypeAny, {
10963
+ type: "Button";
10964
+ label: string;
10965
+ onClick: (args_0: {
10966
+ id: string;
10967
+ }, ...args: unknown[]) => void;
10968
+ id?: string | undefined;
10969
+ onCreate?: ((args_0: {
10970
+ id: string;
10971
+ }, ...args: unknown[]) => void) | undefined;
10972
+ onDestroy?: ((args_0: {
10973
+ id: string;
10974
+ }, ...args: unknown[]) => void) | undefined;
10975
+ disabled?: boolean | undefined;
10976
+ variant?: "filled" | "transparent" | "outlined" | undefined;
10977
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
10978
+ }, {
10979
+ type: "Button";
10980
+ label: string;
10981
+ onClick: (args_0: {
10982
+ id: string;
10983
+ }, ...args: unknown[]) => void;
10984
+ id?: string | undefined;
10985
+ onCreate?: ((args_0: {
10986
+ id: string;
10987
+ }, ...args: unknown[]) => void) | undefined;
10988
+ onDestroy?: ((args_0: {
10989
+ id: string;
10990
+ }, ...args: unknown[]) => void) | undefined;
10991
+ disabled?: boolean | undefined;
10992
+ variant?: "filled" | "transparent" | "outlined" | undefined;
10993
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
10994
+ }>, "many">>;
10995
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
10996
+ type: "ButtonRow";
10997
+ id: string;
10998
+ align?: "start" | "end" | undefined;
10999
+ items?: {
11000
+ type: "Button";
11001
+ label: string;
11002
+ onClick: (args_0: {
11003
+ id: string;
11004
+ }, ...args: unknown[]) => void;
11005
+ id?: string | undefined;
11006
+ onCreate?: ((args_0: {
11007
+ id: string;
11008
+ }, ...args: unknown[]) => void) | undefined;
11009
+ onDestroy?: ((args_0: {
11010
+ id: string;
11011
+ }, ...args: unknown[]) => void) | undefined;
11012
+ disabled?: boolean | undefined;
11013
+ variant?: "filled" | "transparent" | "outlined" | undefined;
11014
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
11015
+ }[] | undefined;
11016
+ onCreate?: ((args_0: {
11017
+ id: string;
11018
+ }, ...args: unknown[]) => void) | undefined;
11019
+ onDestroy?: ((args_0: {
11020
+ id: string;
11021
+ }, ...args: unknown[]) => void) | undefined;
11022
+ label?: string | undefined;
11023
+ }, {
11024
+ type: "ButtonRow";
11025
+ id: string;
11026
+ align?: "start" | "end" | undefined;
11027
+ items?: {
11028
+ type: "Button";
11029
+ label: string;
11030
+ onClick: (args_0: {
11031
+ id: string;
11032
+ }, ...args: unknown[]) => void;
11033
+ id?: string | undefined;
11034
+ onCreate?: ((args_0: {
11035
+ id: string;
11036
+ }, ...args: unknown[]) => void) | undefined;
11037
+ onDestroy?: ((args_0: {
11038
+ id: string;
11039
+ }, ...args: unknown[]) => void) | undefined;
11040
+ disabled?: boolean | undefined;
11041
+ variant?: "filled" | "transparent" | "outlined" | undefined;
11042
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
11043
+ }[] | undefined;
11044
+ onCreate?: ((args_0: {
11045
+ id: string;
11046
+ }, ...args: unknown[]) => void) | undefined;
11047
+ onDestroy?: ((args_0: {
11048
+ id: string;
11049
+ }, ...args: unknown[]) => void) | undefined;
11050
+ label?: string | undefined;
10718
11051
  }>, z.ZodObject<{
10719
11052
  type: z.ZodLiteral<"Grid">;
10720
11053
  id: z.ZodString;
@@ -10733,11 +11066,13 @@ declare const UpdatePanelElementsParamsSchema: z.ZodObject<{
10733
11066
  id: string;
10734
11067
  }>], z.ZodUnknown>, z.ZodVoid>>>;
10735
11068
  grid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10736
- items: z.ZodOptional<z.ZodType<(UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[], z.ZodTypeDef, (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[]>>;
11069
+ verticalAlignment: z.ZodOptional<z.ZodOptional<z.ZodEnum<["top", "center", "bottom"]>>>;
11070
+ horizontalDistribution: z.ZodOptional<z.ZodOptional<z.ZodEnum<["start", "center", "end", "space-between", "space-around", "space-evenly"]>>>;
11071
+ items: z.ZodOptional<z.ZodType<(UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[], z.ZodTypeDef, (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[]>>;
10737
11072
  }, z.UnknownKeysParam, z.ZodTypeAny, {
10738
11073
  type: "Grid";
10739
11074
  id: string;
10740
- items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
11075
+ items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[] | undefined;
10741
11076
  onCreate?: ((args_0: {
10742
11077
  id: string;
10743
11078
  }, ...args: unknown[]) => void) | undefined;
@@ -10745,10 +11080,12 @@ declare const UpdatePanelElementsParamsSchema: z.ZodObject<{
10745
11080
  id: string;
10746
11081
  }, ...args: unknown[]) => void) | undefined;
10747
11082
  grid?: string | undefined;
11083
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
11084
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
10748
11085
  }, {
10749
11086
  type: "Grid";
10750
11087
  id: string;
10751
- items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
11088
+ items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[] | undefined;
10752
11089
  onCreate?: ((args_0: {
10753
11090
  id: string;
10754
11091
  }, ...args: unknown[]) => void) | undefined;
@@ -10756,6 +11093,8 @@ declare const UpdatePanelElementsParamsSchema: z.ZodObject<{
10756
11093
  id: string;
10757
11094
  }, ...args: unknown[]) => void) | undefined;
10758
11095
  grid?: string | undefined;
11096
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
11097
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
10759
11098
  }>]>;
10760
11099
  }, "strip", z.ZodTypeAny, {
10761
11100
  element: {
@@ -10847,10 +11186,38 @@ declare const UpdatePanelElementsParamsSchema: z.ZodObject<{
10847
11186
  onDestroy?: ((args_0: {
10848
11187
  id: string;
10849
11188
  }, ...args: unknown[]) => void) | undefined;
11189
+ } | {
11190
+ type: "ButtonRow";
11191
+ id: string;
11192
+ align?: "start" | "end" | undefined;
11193
+ items?: {
11194
+ type: "Button";
11195
+ label: string;
11196
+ onClick: (args_0: {
11197
+ id: string;
11198
+ }, ...args: unknown[]) => void;
11199
+ id?: string | undefined;
11200
+ onCreate?: ((args_0: {
11201
+ id: string;
11202
+ }, ...args: unknown[]) => void) | undefined;
11203
+ onDestroy?: ((args_0: {
11204
+ id: string;
11205
+ }, ...args: unknown[]) => void) | undefined;
11206
+ disabled?: boolean | undefined;
11207
+ variant?: "filled" | "transparent" | "outlined" | undefined;
11208
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
11209
+ }[] | undefined;
11210
+ onCreate?: ((args_0: {
11211
+ id: string;
11212
+ }, ...args: unknown[]) => void) | undefined;
11213
+ onDestroy?: ((args_0: {
11214
+ id: string;
11215
+ }, ...args: unknown[]) => void) | undefined;
11216
+ label?: string | undefined;
10850
11217
  } | {
10851
11218
  type: "Grid";
10852
11219
  id: string;
10853
- items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
11220
+ items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[] | undefined;
10854
11221
  onCreate?: ((args_0: {
10855
11222
  id: string;
10856
11223
  }, ...args: unknown[]) => void) | undefined;
@@ -10858,6 +11225,8 @@ declare const UpdatePanelElementsParamsSchema: z.ZodObject<{
10858
11225
  id: string;
10859
11226
  }, ...args: unknown[]) => void) | undefined;
10860
11227
  grid?: string | undefined;
11228
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
11229
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
10861
11230
  };
10862
11231
  }, {
10863
11232
  element: {
@@ -10949,10 +11318,38 @@ declare const UpdatePanelElementsParamsSchema: z.ZodObject<{
10949
11318
  onDestroy?: ((args_0: {
10950
11319
  id: string;
10951
11320
  }, ...args: unknown[]) => void) | undefined;
11321
+ } | {
11322
+ type: "ButtonRow";
11323
+ id: string;
11324
+ align?: "start" | "end" | undefined;
11325
+ items?: {
11326
+ type: "Button";
11327
+ label: string;
11328
+ onClick: (args_0: {
11329
+ id: string;
11330
+ }, ...args: unknown[]) => void;
11331
+ id?: string | undefined;
11332
+ onCreate?: ((args_0: {
11333
+ id: string;
11334
+ }, ...args: unknown[]) => void) | undefined;
11335
+ onDestroy?: ((args_0: {
11336
+ id: string;
11337
+ }, ...args: unknown[]) => void) | undefined;
11338
+ disabled?: boolean | undefined;
11339
+ variant?: "filled" | "transparent" | "outlined" | undefined;
11340
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
11341
+ }[] | undefined;
11342
+ onCreate?: ((args_0: {
11343
+ id: string;
11344
+ }, ...args: unknown[]) => void) | undefined;
11345
+ onDestroy?: ((args_0: {
11346
+ id: string;
11347
+ }, ...args: unknown[]) => void) | undefined;
11348
+ label?: string | undefined;
10952
11349
  } | {
10953
11350
  type: "Grid";
10954
11351
  id: string;
10955
- items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
11352
+ items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[] | undefined;
10956
11353
  onCreate?: ((args_0: {
10957
11354
  id: string;
10958
11355
  }, ...args: unknown[]) => void) | undefined;
@@ -10960,6 +11357,8 @@ declare const UpdatePanelElementsParamsSchema: z.ZodObject<{
10960
11357
  id: string;
10961
11358
  }, ...args: unknown[]) => void) | undefined;
10962
11359
  grid?: string | undefined;
11360
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
11361
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
10963
11362
  };
10964
11363
  }>, "many">;
10965
11364
  }, "strip", z.ZodTypeAny, {
@@ -11054,10 +11453,38 @@ declare const UpdatePanelElementsParamsSchema: z.ZodObject<{
11054
11453
  onDestroy?: ((args_0: {
11055
11454
  id: string;
11056
11455
  }, ...args: unknown[]) => void) | undefined;
11456
+ } | {
11457
+ type: "ButtonRow";
11458
+ id: string;
11459
+ align?: "start" | "end" | undefined;
11460
+ items?: {
11461
+ type: "Button";
11462
+ label: string;
11463
+ onClick: (args_0: {
11464
+ id: string;
11465
+ }, ...args: unknown[]) => void;
11466
+ id?: string | undefined;
11467
+ onCreate?: ((args_0: {
11468
+ id: string;
11469
+ }, ...args: unknown[]) => void) | undefined;
11470
+ onDestroy?: ((args_0: {
11471
+ id: string;
11472
+ }, ...args: unknown[]) => void) | undefined;
11473
+ disabled?: boolean | undefined;
11474
+ variant?: "filled" | "transparent" | "outlined" | undefined;
11475
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
11476
+ }[] | undefined;
11477
+ onCreate?: ((args_0: {
11478
+ id: string;
11479
+ }, ...args: unknown[]) => void) | undefined;
11480
+ onDestroy?: ((args_0: {
11481
+ id: string;
11482
+ }, ...args: unknown[]) => void) | undefined;
11483
+ label?: string | undefined;
11057
11484
  } | {
11058
11485
  type: "Grid";
11059
11486
  id: string;
11060
- items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
11487
+ items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[] | undefined;
11061
11488
  onCreate?: ((args_0: {
11062
11489
  id: string;
11063
11490
  }, ...args: unknown[]) => void) | undefined;
@@ -11065,6 +11492,8 @@ declare const UpdatePanelElementsParamsSchema: z.ZodObject<{
11065
11492
  id: string;
11066
11493
  }, ...args: unknown[]) => void) | undefined;
11067
11494
  grid?: string | undefined;
11495
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
11496
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
11068
11497
  };
11069
11498
  }[];
11070
11499
  }, {
@@ -11159,10 +11588,38 @@ declare const UpdatePanelElementsParamsSchema: z.ZodObject<{
11159
11588
  onDestroy?: ((args_0: {
11160
11589
  id: string;
11161
11590
  }, ...args: unknown[]) => void) | undefined;
11591
+ } | {
11592
+ type: "ButtonRow";
11593
+ id: string;
11594
+ align?: "start" | "end" | undefined;
11595
+ items?: {
11596
+ type: "Button";
11597
+ label: string;
11598
+ onClick: (args_0: {
11599
+ id: string;
11600
+ }, ...args: unknown[]) => void;
11601
+ id?: string | undefined;
11602
+ onCreate?: ((args_0: {
11603
+ id: string;
11604
+ }, ...args: unknown[]) => void) | undefined;
11605
+ onDestroy?: ((args_0: {
11606
+ id: string;
11607
+ }, ...args: unknown[]) => void) | undefined;
11608
+ disabled?: boolean | undefined;
11609
+ variant?: "filled" | "transparent" | "outlined" | undefined;
11610
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
11611
+ }[] | undefined;
11612
+ onCreate?: ((args_0: {
11613
+ id: string;
11614
+ }, ...args: unknown[]) => void) | undefined;
11615
+ onDestroy?: ((args_0: {
11616
+ id: string;
11617
+ }, ...args: unknown[]) => void) | undefined;
11618
+ label?: string | undefined;
11162
11619
  } | {
11163
11620
  type: "Grid";
11164
11621
  id: string;
11165
- items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate)[] | undefined;
11622
+ items?: (UIButtonElementCreate | UITextElementCreate | UIDividerElementCreate | UITextInputElementCreate | UISelectElementCreate | UIFlexibleSpaceElementCreate | UIButtonRowElementCreate)[] | undefined;
11166
11623
  onCreate?: ((args_0: {
11167
11624
  id: string;
11168
11625
  }, ...args: unknown[]) => void) | undefined;
@@ -11170,6 +11627,8 @@ declare const UpdatePanelElementsParamsSchema: z.ZodObject<{
11170
11627
  id: string;
11171
11628
  }, ...args: unknown[]) => void) | undefined;
11172
11629
  grid?: string | undefined;
11630
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
11631
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
11173
11632
  };
11174
11633
  }[];
11175
11634
  }>;
@@ -11995,4 +12454,4 @@ interface FeltController extends ViewportController, UiController, LayersControl
11995
12454
  iframe: HTMLIFrameElement | null;
11996
12455
  }
11997
12456
 
11998
- 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 };
12457
+ 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 };