@feltmaps/js-sdk 1.7.0-next.1 → 1.7.0-next.3

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.
@@ -1,5 +1,5 @@
1
1
  import { z, ZodError } from 'zod';
2
- import { bw as UnwrapPromise, F as FeltController, z as zInfer, c as ElementChangeCallbackParams, f as ElementGroupChangeCallbackParams, E as Element, D as MapInteractionEvent, $ as LayerChangeCallbackParams, a2 as LayerGroupChangeCallbackParams, a5 as LegendItemChangeCallbackParams, at as LayerFilters, as as LayerBoundaries, ap as FilterTernary, aO as EntityNode, bn as ToolType, bl as ToolSettingsChangeEvent, bu as ViewportState, bx as UnionToIntersection, by as PromiseOrNot } from './controller-o3EwSJvB.cjs';
2
+ import { bL as UnwrapPromise, F as FeltController, z as zInfer, c as ElementChangeCallbackParams, f as ElementGroupChangeCallbackParams, E as Element, D as MapInteractionEvent, $ as LayerChangeCallbackParams, a2 as LayerGroupChangeCallbackParams, a5 as LegendItemChangeCallbackParams, at as LayerFilters, as as LayerBoundaries, ap as FilterTernary, aO as EntityNode, bn as ToolType, bl as ToolSettingsChangeEvent, bJ as ViewportState, bM as UnionToIntersection, bN as PromiseOrNot } from './controller-biHGMBte.cjs';
3
3
 
4
4
  type FeltControllerFunctions = Omit<FeltController, "iframe">;
5
5
  type Method<TRequest extends {
@@ -2816,11 +2816,11 @@ declare const GetFeaturesMessage: z.ZodObject<{
2816
2816
  coordinates: [number, number][][][];
2817
2817
  } | undefined;
2818
2818
  filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2819
+ search?: string | undefined;
2819
2820
  sorting?: {
2820
2821
  attribute: string;
2821
2822
  direction: "asc" | "desc";
2822
2823
  } | undefined;
2823
- search?: string | undefined;
2824
2824
  pagination?: string | null | undefined;
2825
2825
  }, {
2826
2826
  layerId: string;
@@ -2832,11 +2832,11 @@ declare const GetFeaturesMessage: z.ZodObject<{
2832
2832
  coordinates: [number, number][][][];
2833
2833
  } | undefined;
2834
2834
  filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2835
+ search?: string | undefined;
2835
2836
  sorting?: {
2836
2837
  attribute: string;
2837
2838
  direction: "asc" | "desc";
2838
2839
  } | undefined;
2839
- search?: string | undefined;
2840
2840
  pagination?: string | null | undefined;
2841
2841
  }>;
2842
2842
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -2850,11 +2850,11 @@ declare const GetFeaturesMessage: z.ZodObject<{
2850
2850
  coordinates: [number, number][][][];
2851
2851
  } | undefined;
2852
2852
  filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2853
+ search?: string | undefined;
2853
2854
  sorting?: {
2854
2855
  attribute: string;
2855
2856
  direction: "asc" | "desc";
2856
2857
  } | undefined;
2857
- search?: string | undefined;
2858
2858
  pagination?: string | null | undefined;
2859
2859
  };
2860
2860
  type: "getFeatures";
@@ -2869,11 +2869,11 @@ declare const GetFeaturesMessage: z.ZodObject<{
2869
2869
  coordinates: [number, number][][][];
2870
2870
  } | undefined;
2871
2871
  filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2872
+ search?: string | undefined;
2872
2873
  sorting?: {
2873
2874
  attribute: string;
2874
2875
  direction: "asc" | "desc";
2875
2876
  } | undefined;
2876
- search?: string | undefined;
2877
2877
  pagination?: string | null | undefined;
2878
2878
  };
2879
2879
  type: "getFeatures";
@@ -3707,23 +3707,23 @@ declare const ClearSelectionMessage: z.ZodObject<{
3707
3707
  features: z.ZodOptional<z.ZodBoolean>;
3708
3708
  elements: z.ZodOptional<z.ZodBoolean>;
3709
3709
  }, "strip", z.ZodTypeAny, {
3710
- features?: boolean | undefined;
3711
3710
  elements?: boolean | undefined;
3712
- }, {
3713
3711
  features?: boolean | undefined;
3712
+ }, {
3714
3713
  elements?: boolean | undefined;
3714
+ features?: boolean | undefined;
3715
3715
  }>>;
3716
3716
  }, z.UnknownKeysParam, z.ZodTypeAny, {
3717
3717
  type: "clearSelection";
3718
3718
  params?: {
3719
- features?: boolean | undefined;
3720
3719
  elements?: boolean | undefined;
3720
+ features?: boolean | undefined;
3721
3721
  } | undefined;
3722
3722
  }, {
3723
3723
  type: "clearSelection";
3724
3724
  params?: {
3725
- features?: boolean | undefined;
3726
3725
  elements?: boolean | undefined;
3726
+ features?: boolean | undefined;
3727
3727
  } | undefined;
3728
3728
  }>;
3729
3729
  type SelectionSchema = {
@@ -4096,6 +4096,4327 @@ type ToolsSchema = {
4096
4096
  };
4097
4097
  };
4098
4098
 
4099
+ declare const AddPanelMessage: z.ZodObject<{
4100
+ type: z.ZodLiteral<"addPanel">;
4101
+ params: z.ZodObject<{
4102
+ panel: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4103
+ onCreate: z.ZodOptional<z.ZodString>;
4104
+ onDestroy: z.ZodOptional<z.ZodString>;
4105
+ }, {
4106
+ id: z.ZodOptional<z.ZodString>;
4107
+ }>, {
4108
+ type: z.ZodOptional<z.ZodLiteral<"Panel">>;
4109
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4110
+ }>, {
4111
+ onClose: z.ZodOptional<z.ZodString>;
4112
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4113
+ onCreate: z.ZodOptional<z.ZodString>;
4114
+ onDestroy: z.ZodOptional<z.ZodString>;
4115
+ }, {
4116
+ id: z.ZodOptional<z.ZodString>;
4117
+ }>, {
4118
+ type: z.ZodLiteral<"Text">;
4119
+ content: z.ZodString;
4120
+ }>, "strip", z.ZodTypeAny, {
4121
+ type: "Text";
4122
+ content: string;
4123
+ id?: string | undefined;
4124
+ onCreate?: string | undefined;
4125
+ onDestroy?: string | undefined;
4126
+ }, {
4127
+ type: "Text";
4128
+ content: string;
4129
+ id?: string | undefined;
4130
+ onCreate?: string | undefined;
4131
+ onDestroy?: string | undefined;
4132
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4133
+ onCreate: z.ZodOptional<z.ZodString>;
4134
+ onDestroy: z.ZodOptional<z.ZodString>;
4135
+ }, {
4136
+ id: z.ZodOptional<z.ZodString>;
4137
+ }>, {
4138
+ type: z.ZodLiteral<"Button">;
4139
+ label: z.ZodString;
4140
+ variant: z.ZodOptional<z.ZodEnum<["primary", "outlined", "transparent", "transparentThin"]>>;
4141
+ disabled: z.ZodOptional<z.ZodBoolean>;
4142
+ }>, {
4143
+ onClick: z.ZodString;
4144
+ }>, "strip", z.ZodTypeAny, {
4145
+ type: "Button";
4146
+ label: string;
4147
+ onClick: string;
4148
+ id?: string | undefined;
4149
+ onCreate?: string | undefined;
4150
+ onDestroy?: string | undefined;
4151
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4152
+ disabled?: boolean | undefined;
4153
+ }, {
4154
+ type: "Button";
4155
+ label: string;
4156
+ onClick: string;
4157
+ id?: string | undefined;
4158
+ onCreate?: string | undefined;
4159
+ onDestroy?: string | undefined;
4160
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4161
+ disabled?: boolean | undefined;
4162
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4163
+ onCreate: z.ZodOptional<z.ZodString>;
4164
+ onDestroy: z.ZodOptional<z.ZodString>;
4165
+ }, {
4166
+ id: z.ZodOptional<z.ZodString>;
4167
+ }>, {
4168
+ label: z.ZodOptional<z.ZodString>;
4169
+ }>, {
4170
+ type: z.ZodLiteral<"TextInput">;
4171
+ value: z.ZodString;
4172
+ placeholder: z.ZodOptional<z.ZodString>;
4173
+ }>, {
4174
+ onChange: z.ZodOptional<z.ZodString>;
4175
+ onBlur: z.ZodOptional<z.ZodString>;
4176
+ onFocus: z.ZodOptional<z.ZodString>;
4177
+ }>, "strip", z.ZodTypeAny, {
4178
+ type: "TextInput";
4179
+ value: string;
4180
+ id?: string | undefined;
4181
+ onCreate?: string | undefined;
4182
+ onDestroy?: string | undefined;
4183
+ label?: string | undefined;
4184
+ placeholder?: string | undefined;
4185
+ onChange?: string | undefined;
4186
+ onBlur?: string | undefined;
4187
+ onFocus?: string | undefined;
4188
+ }, {
4189
+ type: "TextInput";
4190
+ value: string;
4191
+ id?: string | undefined;
4192
+ onCreate?: string | undefined;
4193
+ onDestroy?: string | undefined;
4194
+ label?: string | undefined;
4195
+ placeholder?: string | undefined;
4196
+ onChange?: string | undefined;
4197
+ onBlur?: string | undefined;
4198
+ onFocus?: string | undefined;
4199
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4200
+ onCreate: z.ZodOptional<z.ZodString>;
4201
+ onDestroy: z.ZodOptional<z.ZodString>;
4202
+ }, {
4203
+ id: z.ZodOptional<z.ZodString>;
4204
+ }>, {
4205
+ type: z.ZodLiteral<"Divider">;
4206
+ }>, "strip", z.ZodTypeAny, {
4207
+ type: "Divider";
4208
+ id?: string | undefined;
4209
+ onCreate?: string | undefined;
4210
+ onDestroy?: string | undefined;
4211
+ }, {
4212
+ type: "Divider";
4213
+ id?: string | undefined;
4214
+ onCreate?: string | undefined;
4215
+ onDestroy?: string | undefined;
4216
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4217
+ onCreate: z.ZodOptional<z.ZodString>;
4218
+ onDestroy: z.ZodOptional<z.ZodString>;
4219
+ }, {
4220
+ id: z.ZodOptional<z.ZodString>;
4221
+ }>, {
4222
+ type: z.ZodLiteral<"ButtonGroup">;
4223
+ align: z.ZodOptional<z.ZodEnum<["start", "end"]>>;
4224
+ }>, {
4225
+ items: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4226
+ onCreate: z.ZodOptional<z.ZodString>;
4227
+ onDestroy: z.ZodOptional<z.ZodString>;
4228
+ }, {
4229
+ id: z.ZodOptional<z.ZodString>;
4230
+ }>, {
4231
+ type: z.ZodLiteral<"Button">;
4232
+ label: z.ZodString;
4233
+ variant: z.ZodOptional<z.ZodEnum<["primary", "outlined", "transparent", "transparentThin"]>>;
4234
+ disabled: z.ZodOptional<z.ZodBoolean>;
4235
+ }>, {
4236
+ onClick: z.ZodString;
4237
+ }>, "strip", z.ZodTypeAny, {
4238
+ type: "Button";
4239
+ label: string;
4240
+ onClick: string;
4241
+ id?: string | undefined;
4242
+ onCreate?: string | undefined;
4243
+ onDestroy?: string | undefined;
4244
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4245
+ disabled?: boolean | undefined;
4246
+ }, {
4247
+ type: "Button";
4248
+ label: string;
4249
+ onClick: string;
4250
+ id?: string | undefined;
4251
+ onCreate?: string | undefined;
4252
+ onDestroy?: string | undefined;
4253
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4254
+ disabled?: boolean | undefined;
4255
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4256
+ onCreate: z.ZodOptional<z.ZodString>;
4257
+ onDestroy: z.ZodOptional<z.ZodString>;
4258
+ }, {
4259
+ id: z.ZodOptional<z.ZodString>;
4260
+ }>, {
4261
+ type: z.ZodLiteral<"Text">;
4262
+ content: z.ZodString;
4263
+ }>, "strip", z.ZodTypeAny, {
4264
+ type: "Text";
4265
+ content: string;
4266
+ id?: string | undefined;
4267
+ onCreate?: string | undefined;
4268
+ onDestroy?: string | undefined;
4269
+ }, {
4270
+ type: "Text";
4271
+ content: string;
4272
+ id?: string | undefined;
4273
+ onCreate?: string | undefined;
4274
+ onDestroy?: string | undefined;
4275
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4276
+ onCreate: z.ZodOptional<z.ZodString>;
4277
+ onDestroy: z.ZodOptional<z.ZodString>;
4278
+ }, {
4279
+ id: z.ZodOptional<z.ZodString>;
4280
+ }>, {
4281
+ type: z.ZodLiteral<"FlexibleSpace">;
4282
+ }>, "strip", z.ZodTypeAny, {
4283
+ type: "FlexibleSpace";
4284
+ id?: string | undefined;
4285
+ onCreate?: string | undefined;
4286
+ onDestroy?: string | undefined;
4287
+ }, {
4288
+ type: "FlexibleSpace";
4289
+ id?: string | undefined;
4290
+ onCreate?: string | undefined;
4291
+ onDestroy?: string | undefined;
4292
+ }>]>, "many">;
4293
+ }>, "strip", z.ZodTypeAny, {
4294
+ type: "ButtonGroup";
4295
+ items: ({
4296
+ type: "Text";
4297
+ content: string;
4298
+ id?: string | undefined;
4299
+ onCreate?: string | undefined;
4300
+ onDestroy?: string | undefined;
4301
+ } | {
4302
+ type: "Button";
4303
+ label: string;
4304
+ onClick: string;
4305
+ id?: string | undefined;
4306
+ onCreate?: string | undefined;
4307
+ onDestroy?: string | undefined;
4308
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4309
+ disabled?: boolean | undefined;
4310
+ } | {
4311
+ type: "FlexibleSpace";
4312
+ id?: string | undefined;
4313
+ onCreate?: string | undefined;
4314
+ onDestroy?: string | undefined;
4315
+ })[];
4316
+ id?: string | undefined;
4317
+ align?: "start" | "end" | undefined;
4318
+ onCreate?: string | undefined;
4319
+ onDestroy?: string | undefined;
4320
+ }, {
4321
+ type: "ButtonGroup";
4322
+ items: ({
4323
+ type: "Text";
4324
+ content: string;
4325
+ id?: string | undefined;
4326
+ onCreate?: string | undefined;
4327
+ onDestroy?: string | undefined;
4328
+ } | {
4329
+ type: "Button";
4330
+ label: string;
4331
+ onClick: string;
4332
+ id?: string | undefined;
4333
+ onCreate?: string | undefined;
4334
+ onDestroy?: string | undefined;
4335
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4336
+ disabled?: boolean | undefined;
4337
+ } | {
4338
+ type: "FlexibleSpace";
4339
+ id?: string | undefined;
4340
+ onCreate?: string | undefined;
4341
+ onDestroy?: string | undefined;
4342
+ })[];
4343
+ id?: string | undefined;
4344
+ align?: "start" | "end" | undefined;
4345
+ onCreate?: string | undefined;
4346
+ onDestroy?: string | undefined;
4347
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4348
+ onCreate: z.ZodOptional<z.ZodString>;
4349
+ onDestroy: z.ZodOptional<z.ZodString>;
4350
+ }, {
4351
+ id: z.ZodOptional<z.ZodString>;
4352
+ }>, {
4353
+ label: z.ZodOptional<z.ZodString>;
4354
+ }>, {
4355
+ type: z.ZodLiteral<"Select">;
4356
+ options: z.ZodArray<z.ZodObject<{
4357
+ label: z.ZodString;
4358
+ value: z.ZodString;
4359
+ }, "strip", z.ZodTypeAny, {
4360
+ value: string;
4361
+ label: string;
4362
+ }, {
4363
+ value: string;
4364
+ label: string;
4365
+ }>, "many">;
4366
+ value: z.ZodOptional<z.ZodString>;
4367
+ search: z.ZodOptional<z.ZodBoolean>;
4368
+ placeholder: z.ZodOptional<z.ZodString>;
4369
+ }>, {
4370
+ onChange: z.ZodString;
4371
+ }>, "strip", z.ZodTypeAny, {
4372
+ options: {
4373
+ value: string;
4374
+ label: string;
4375
+ }[];
4376
+ type: "Select";
4377
+ onChange: string;
4378
+ value?: string | undefined;
4379
+ id?: string | undefined;
4380
+ onCreate?: string | undefined;
4381
+ onDestroy?: string | undefined;
4382
+ label?: string | undefined;
4383
+ placeholder?: string | undefined;
4384
+ search?: boolean | undefined;
4385
+ }, {
4386
+ options: {
4387
+ value: string;
4388
+ label: string;
4389
+ }[];
4390
+ type: "Select";
4391
+ onChange: string;
4392
+ value?: string | undefined;
4393
+ id?: string | undefined;
4394
+ onCreate?: string | undefined;
4395
+ onDestroy?: string | undefined;
4396
+ label?: string | undefined;
4397
+ placeholder?: string | undefined;
4398
+ search?: boolean | undefined;
4399
+ }>]>, "many">;
4400
+ footer: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4401
+ onCreate: z.ZodOptional<z.ZodString>;
4402
+ onDestroy: z.ZodOptional<z.ZodString>;
4403
+ }, {
4404
+ id: z.ZodOptional<z.ZodString>;
4405
+ }>, {
4406
+ type: z.ZodLiteral<"Text">;
4407
+ content: z.ZodString;
4408
+ }>, "strip", z.ZodTypeAny, {
4409
+ type: "Text";
4410
+ content: string;
4411
+ id?: string | undefined;
4412
+ onCreate?: string | undefined;
4413
+ onDestroy?: string | undefined;
4414
+ }, {
4415
+ type: "Text";
4416
+ content: string;
4417
+ id?: string | undefined;
4418
+ onCreate?: string | undefined;
4419
+ onDestroy?: string | undefined;
4420
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4421
+ onCreate: z.ZodOptional<z.ZodString>;
4422
+ onDestroy: z.ZodOptional<z.ZodString>;
4423
+ }, {
4424
+ id: z.ZodOptional<z.ZodString>;
4425
+ }>, {
4426
+ type: z.ZodLiteral<"Button">;
4427
+ label: z.ZodString;
4428
+ variant: z.ZodOptional<z.ZodEnum<["primary", "outlined", "transparent", "transparentThin"]>>;
4429
+ disabled: z.ZodOptional<z.ZodBoolean>;
4430
+ }>, {
4431
+ onClick: z.ZodString;
4432
+ }>, "strip", z.ZodTypeAny, {
4433
+ type: "Button";
4434
+ label: string;
4435
+ onClick: string;
4436
+ id?: string | undefined;
4437
+ onCreate?: string | undefined;
4438
+ onDestroy?: string | undefined;
4439
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4440
+ disabled?: boolean | undefined;
4441
+ }, {
4442
+ type: "Button";
4443
+ label: string;
4444
+ onClick: string;
4445
+ id?: string | undefined;
4446
+ onCreate?: string | undefined;
4447
+ onDestroy?: string | undefined;
4448
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4449
+ disabled?: boolean | undefined;
4450
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4451
+ onCreate: z.ZodOptional<z.ZodString>;
4452
+ onDestroy: z.ZodOptional<z.ZodString>;
4453
+ }, {
4454
+ id: z.ZodOptional<z.ZodString>;
4455
+ }>, {
4456
+ label: z.ZodOptional<z.ZodString>;
4457
+ }>, {
4458
+ type: z.ZodLiteral<"TextInput">;
4459
+ value: z.ZodString;
4460
+ placeholder: z.ZodOptional<z.ZodString>;
4461
+ }>, {
4462
+ onChange: z.ZodOptional<z.ZodString>;
4463
+ onBlur: z.ZodOptional<z.ZodString>;
4464
+ onFocus: z.ZodOptional<z.ZodString>;
4465
+ }>, "strip", z.ZodTypeAny, {
4466
+ type: "TextInput";
4467
+ value: string;
4468
+ id?: string | undefined;
4469
+ onCreate?: string | undefined;
4470
+ onDestroy?: string | undefined;
4471
+ label?: string | undefined;
4472
+ placeholder?: string | undefined;
4473
+ onChange?: string | undefined;
4474
+ onBlur?: string | undefined;
4475
+ onFocus?: string | undefined;
4476
+ }, {
4477
+ type: "TextInput";
4478
+ value: string;
4479
+ id?: string | undefined;
4480
+ onCreate?: string | undefined;
4481
+ onDestroy?: string | undefined;
4482
+ label?: string | undefined;
4483
+ placeholder?: string | undefined;
4484
+ onChange?: string | undefined;
4485
+ onBlur?: string | undefined;
4486
+ onFocus?: string | undefined;
4487
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4488
+ onCreate: z.ZodOptional<z.ZodString>;
4489
+ onDestroy: z.ZodOptional<z.ZodString>;
4490
+ }, {
4491
+ id: z.ZodOptional<z.ZodString>;
4492
+ }>, {
4493
+ type: z.ZodLiteral<"Divider">;
4494
+ }>, "strip", z.ZodTypeAny, {
4495
+ type: "Divider";
4496
+ id?: string | undefined;
4497
+ onCreate?: string | undefined;
4498
+ onDestroy?: string | undefined;
4499
+ }, {
4500
+ type: "Divider";
4501
+ id?: string | undefined;
4502
+ onCreate?: string | undefined;
4503
+ onDestroy?: string | undefined;
4504
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4505
+ onCreate: z.ZodOptional<z.ZodString>;
4506
+ onDestroy: z.ZodOptional<z.ZodString>;
4507
+ }, {
4508
+ id: z.ZodOptional<z.ZodString>;
4509
+ }>, {
4510
+ type: z.ZodLiteral<"ButtonGroup">;
4511
+ align: z.ZodOptional<z.ZodEnum<["start", "end"]>>;
4512
+ }>, {
4513
+ items: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4514
+ onCreate: z.ZodOptional<z.ZodString>;
4515
+ onDestroy: z.ZodOptional<z.ZodString>;
4516
+ }, {
4517
+ id: z.ZodOptional<z.ZodString>;
4518
+ }>, {
4519
+ type: z.ZodLiteral<"Button">;
4520
+ label: z.ZodString;
4521
+ variant: z.ZodOptional<z.ZodEnum<["primary", "outlined", "transparent", "transparentThin"]>>;
4522
+ disabled: z.ZodOptional<z.ZodBoolean>;
4523
+ }>, {
4524
+ onClick: z.ZodString;
4525
+ }>, "strip", z.ZodTypeAny, {
4526
+ type: "Button";
4527
+ label: string;
4528
+ onClick: string;
4529
+ id?: string | undefined;
4530
+ onCreate?: string | undefined;
4531
+ onDestroy?: string | undefined;
4532
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4533
+ disabled?: boolean | undefined;
4534
+ }, {
4535
+ type: "Button";
4536
+ label: string;
4537
+ onClick: string;
4538
+ id?: string | undefined;
4539
+ onCreate?: string | undefined;
4540
+ onDestroy?: string | undefined;
4541
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4542
+ disabled?: boolean | undefined;
4543
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4544
+ onCreate: z.ZodOptional<z.ZodString>;
4545
+ onDestroy: z.ZodOptional<z.ZodString>;
4546
+ }, {
4547
+ id: z.ZodOptional<z.ZodString>;
4548
+ }>, {
4549
+ type: z.ZodLiteral<"Text">;
4550
+ content: z.ZodString;
4551
+ }>, "strip", z.ZodTypeAny, {
4552
+ type: "Text";
4553
+ content: string;
4554
+ id?: string | undefined;
4555
+ onCreate?: string | undefined;
4556
+ onDestroy?: string | undefined;
4557
+ }, {
4558
+ type: "Text";
4559
+ content: string;
4560
+ id?: string | undefined;
4561
+ onCreate?: string | undefined;
4562
+ onDestroy?: string | undefined;
4563
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4564
+ onCreate: z.ZodOptional<z.ZodString>;
4565
+ onDestroy: z.ZodOptional<z.ZodString>;
4566
+ }, {
4567
+ id: z.ZodOptional<z.ZodString>;
4568
+ }>, {
4569
+ type: z.ZodLiteral<"FlexibleSpace">;
4570
+ }>, "strip", z.ZodTypeAny, {
4571
+ type: "FlexibleSpace";
4572
+ id?: string | undefined;
4573
+ onCreate?: string | undefined;
4574
+ onDestroy?: string | undefined;
4575
+ }, {
4576
+ type: "FlexibleSpace";
4577
+ id?: string | undefined;
4578
+ onCreate?: string | undefined;
4579
+ onDestroy?: string | undefined;
4580
+ }>]>, "many">;
4581
+ }>, "strip", z.ZodTypeAny, {
4582
+ type: "ButtonGroup";
4583
+ items: ({
4584
+ type: "Text";
4585
+ content: string;
4586
+ id?: string | undefined;
4587
+ onCreate?: string | undefined;
4588
+ onDestroy?: string | undefined;
4589
+ } | {
4590
+ type: "Button";
4591
+ label: string;
4592
+ onClick: string;
4593
+ id?: string | undefined;
4594
+ onCreate?: string | undefined;
4595
+ onDestroy?: string | undefined;
4596
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4597
+ disabled?: boolean | undefined;
4598
+ } | {
4599
+ type: "FlexibleSpace";
4600
+ id?: string | undefined;
4601
+ onCreate?: string | undefined;
4602
+ onDestroy?: string | undefined;
4603
+ })[];
4604
+ id?: string | undefined;
4605
+ align?: "start" | "end" | undefined;
4606
+ onCreate?: string | undefined;
4607
+ onDestroy?: string | undefined;
4608
+ }, {
4609
+ type: "ButtonGroup";
4610
+ items: ({
4611
+ type: "Text";
4612
+ content: string;
4613
+ id?: string | undefined;
4614
+ onCreate?: string | undefined;
4615
+ onDestroy?: string | undefined;
4616
+ } | {
4617
+ type: "Button";
4618
+ label: string;
4619
+ onClick: string;
4620
+ id?: string | undefined;
4621
+ onCreate?: string | undefined;
4622
+ onDestroy?: string | undefined;
4623
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4624
+ disabled?: boolean | undefined;
4625
+ } | {
4626
+ type: "FlexibleSpace";
4627
+ id?: string | undefined;
4628
+ onCreate?: string | undefined;
4629
+ onDestroy?: string | undefined;
4630
+ })[];
4631
+ id?: string | undefined;
4632
+ align?: "start" | "end" | undefined;
4633
+ onCreate?: string | undefined;
4634
+ onDestroy?: string | undefined;
4635
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4636
+ onCreate: z.ZodOptional<z.ZodString>;
4637
+ onDestroy: z.ZodOptional<z.ZodString>;
4638
+ }, {
4639
+ id: z.ZodOptional<z.ZodString>;
4640
+ }>, {
4641
+ label: z.ZodOptional<z.ZodString>;
4642
+ }>, {
4643
+ type: z.ZodLiteral<"Select">;
4644
+ options: z.ZodArray<z.ZodObject<{
4645
+ label: z.ZodString;
4646
+ value: z.ZodString;
4647
+ }, "strip", z.ZodTypeAny, {
4648
+ value: string;
4649
+ label: string;
4650
+ }, {
4651
+ value: string;
4652
+ label: string;
4653
+ }>, "many">;
4654
+ value: z.ZodOptional<z.ZodString>;
4655
+ search: z.ZodOptional<z.ZodBoolean>;
4656
+ placeholder: z.ZodOptional<z.ZodString>;
4657
+ }>, {
4658
+ onChange: z.ZodString;
4659
+ }>, "strip", z.ZodTypeAny, {
4660
+ options: {
4661
+ value: string;
4662
+ label: string;
4663
+ }[];
4664
+ type: "Select";
4665
+ onChange: string;
4666
+ value?: string | undefined;
4667
+ id?: string | undefined;
4668
+ onCreate?: string | undefined;
4669
+ onDestroy?: string | undefined;
4670
+ label?: string | undefined;
4671
+ placeholder?: string | undefined;
4672
+ search?: boolean | undefined;
4673
+ }, {
4674
+ options: {
4675
+ value: string;
4676
+ label: string;
4677
+ }[];
4678
+ type: "Select";
4679
+ onChange: string;
4680
+ value?: string | undefined;
4681
+ id?: string | undefined;
4682
+ onCreate?: string | undefined;
4683
+ onDestroy?: string | undefined;
4684
+ label?: string | undefined;
4685
+ placeholder?: string | undefined;
4686
+ search?: boolean | undefined;
4687
+ }>]>, "many">>;
4688
+ }>, "strip", z.ZodTypeAny, {
4689
+ items: ({
4690
+ type: "Text";
4691
+ content: string;
4692
+ id?: string | undefined;
4693
+ onCreate?: string | undefined;
4694
+ onDestroy?: string | undefined;
4695
+ } | {
4696
+ type: "Button";
4697
+ label: string;
4698
+ onClick: string;
4699
+ id?: string | undefined;
4700
+ onCreate?: string | undefined;
4701
+ onDestroy?: string | undefined;
4702
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4703
+ disabled?: boolean | undefined;
4704
+ } | {
4705
+ type: "TextInput";
4706
+ value: string;
4707
+ id?: string | undefined;
4708
+ onCreate?: string | undefined;
4709
+ onDestroy?: string | undefined;
4710
+ label?: string | undefined;
4711
+ placeholder?: string | undefined;
4712
+ onChange?: string | undefined;
4713
+ onBlur?: string | undefined;
4714
+ onFocus?: string | undefined;
4715
+ } | {
4716
+ type: "Divider";
4717
+ id?: string | undefined;
4718
+ onCreate?: string | undefined;
4719
+ onDestroy?: string | undefined;
4720
+ } | {
4721
+ type: "ButtonGroup";
4722
+ items: ({
4723
+ type: "Text";
4724
+ content: string;
4725
+ id?: string | undefined;
4726
+ onCreate?: string | undefined;
4727
+ onDestroy?: string | undefined;
4728
+ } | {
4729
+ type: "Button";
4730
+ label: string;
4731
+ onClick: string;
4732
+ id?: string | undefined;
4733
+ onCreate?: string | undefined;
4734
+ onDestroy?: string | undefined;
4735
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4736
+ disabled?: boolean | undefined;
4737
+ } | {
4738
+ type: "FlexibleSpace";
4739
+ id?: string | undefined;
4740
+ onCreate?: string | undefined;
4741
+ onDestroy?: string | undefined;
4742
+ })[];
4743
+ id?: string | undefined;
4744
+ align?: "start" | "end" | undefined;
4745
+ onCreate?: string | undefined;
4746
+ onDestroy?: string | undefined;
4747
+ } | {
4748
+ options: {
4749
+ value: string;
4750
+ label: string;
4751
+ }[];
4752
+ type: "Select";
4753
+ onChange: string;
4754
+ value?: string | undefined;
4755
+ id?: string | undefined;
4756
+ onCreate?: string | undefined;
4757
+ onDestroy?: string | undefined;
4758
+ label?: string | undefined;
4759
+ placeholder?: string | undefined;
4760
+ search?: boolean | undefined;
4761
+ })[];
4762
+ type?: "Panel" | undefined;
4763
+ id?: string | undefined;
4764
+ onCreate?: string | undefined;
4765
+ onDestroy?: string | undefined;
4766
+ title?: string | undefined;
4767
+ onClose?: string | undefined;
4768
+ footer?: ({
4769
+ type: "Text";
4770
+ content: string;
4771
+ id?: string | undefined;
4772
+ onCreate?: string | undefined;
4773
+ onDestroy?: string | undefined;
4774
+ } | {
4775
+ type: "Button";
4776
+ label: string;
4777
+ onClick: string;
4778
+ id?: string | undefined;
4779
+ onCreate?: string | undefined;
4780
+ onDestroy?: string | undefined;
4781
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4782
+ disabled?: boolean | undefined;
4783
+ } | {
4784
+ type: "TextInput";
4785
+ value: string;
4786
+ id?: string | undefined;
4787
+ onCreate?: string | undefined;
4788
+ onDestroy?: string | undefined;
4789
+ label?: string | undefined;
4790
+ placeholder?: string | undefined;
4791
+ onChange?: string | undefined;
4792
+ onBlur?: string | undefined;
4793
+ onFocus?: string | undefined;
4794
+ } | {
4795
+ type: "Divider";
4796
+ id?: string | undefined;
4797
+ onCreate?: string | undefined;
4798
+ onDestroy?: string | undefined;
4799
+ } | {
4800
+ type: "ButtonGroup";
4801
+ items: ({
4802
+ type: "Text";
4803
+ content: string;
4804
+ id?: string | undefined;
4805
+ onCreate?: string | undefined;
4806
+ onDestroy?: string | undefined;
4807
+ } | {
4808
+ type: "Button";
4809
+ label: string;
4810
+ onClick: string;
4811
+ id?: string | undefined;
4812
+ onCreate?: string | undefined;
4813
+ onDestroy?: string | undefined;
4814
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4815
+ disabled?: boolean | undefined;
4816
+ } | {
4817
+ type: "FlexibleSpace";
4818
+ id?: string | undefined;
4819
+ onCreate?: string | undefined;
4820
+ onDestroy?: string | undefined;
4821
+ })[];
4822
+ id?: string | undefined;
4823
+ align?: "start" | "end" | undefined;
4824
+ onCreate?: string | undefined;
4825
+ onDestroy?: string | undefined;
4826
+ } | {
4827
+ options: {
4828
+ value: string;
4829
+ label: string;
4830
+ }[];
4831
+ type: "Select";
4832
+ onChange: string;
4833
+ value?: string | undefined;
4834
+ id?: string | undefined;
4835
+ onCreate?: string | undefined;
4836
+ onDestroy?: string | undefined;
4837
+ label?: string | undefined;
4838
+ placeholder?: string | undefined;
4839
+ search?: boolean | undefined;
4840
+ })[] | undefined;
4841
+ }, {
4842
+ items: ({
4843
+ type: "Text";
4844
+ content: string;
4845
+ id?: string | undefined;
4846
+ onCreate?: string | undefined;
4847
+ onDestroy?: string | undefined;
4848
+ } | {
4849
+ type: "Button";
4850
+ label: string;
4851
+ onClick: string;
4852
+ id?: string | undefined;
4853
+ onCreate?: string | undefined;
4854
+ onDestroy?: string | undefined;
4855
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4856
+ disabled?: boolean | undefined;
4857
+ } | {
4858
+ type: "TextInput";
4859
+ value: string;
4860
+ id?: string | undefined;
4861
+ onCreate?: string | undefined;
4862
+ onDestroy?: string | undefined;
4863
+ label?: string | undefined;
4864
+ placeholder?: string | undefined;
4865
+ onChange?: string | undefined;
4866
+ onBlur?: string | undefined;
4867
+ onFocus?: string | undefined;
4868
+ } | {
4869
+ type: "Divider";
4870
+ id?: string | undefined;
4871
+ onCreate?: string | undefined;
4872
+ onDestroy?: string | undefined;
4873
+ } | {
4874
+ type: "ButtonGroup";
4875
+ items: ({
4876
+ type: "Text";
4877
+ content: string;
4878
+ id?: string | undefined;
4879
+ onCreate?: string | undefined;
4880
+ onDestroy?: string | undefined;
4881
+ } | {
4882
+ type: "Button";
4883
+ label: string;
4884
+ onClick: string;
4885
+ id?: string | undefined;
4886
+ onCreate?: string | undefined;
4887
+ onDestroy?: string | undefined;
4888
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4889
+ disabled?: boolean | undefined;
4890
+ } | {
4891
+ type: "FlexibleSpace";
4892
+ id?: string | undefined;
4893
+ onCreate?: string | undefined;
4894
+ onDestroy?: string | undefined;
4895
+ })[];
4896
+ id?: string | undefined;
4897
+ align?: "start" | "end" | undefined;
4898
+ onCreate?: string | undefined;
4899
+ onDestroy?: string | undefined;
4900
+ } | {
4901
+ options: {
4902
+ value: string;
4903
+ label: string;
4904
+ }[];
4905
+ type: "Select";
4906
+ onChange: string;
4907
+ value?: string | undefined;
4908
+ id?: string | undefined;
4909
+ onCreate?: string | undefined;
4910
+ onDestroy?: string | undefined;
4911
+ label?: string | undefined;
4912
+ placeholder?: string | undefined;
4913
+ search?: boolean | undefined;
4914
+ })[];
4915
+ type?: "Panel" | undefined;
4916
+ id?: string | undefined;
4917
+ onCreate?: string | undefined;
4918
+ onDestroy?: string | undefined;
4919
+ title?: string | undefined;
4920
+ onClose?: string | undefined;
4921
+ footer?: ({
4922
+ type: "Text";
4923
+ content: string;
4924
+ id?: string | undefined;
4925
+ onCreate?: string | undefined;
4926
+ onDestroy?: string | undefined;
4927
+ } | {
4928
+ type: "Button";
4929
+ label: string;
4930
+ onClick: string;
4931
+ id?: string | undefined;
4932
+ onCreate?: string | undefined;
4933
+ onDestroy?: string | undefined;
4934
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4935
+ disabled?: boolean | undefined;
4936
+ } | {
4937
+ type: "TextInput";
4938
+ value: string;
4939
+ id?: string | undefined;
4940
+ onCreate?: string | undefined;
4941
+ onDestroy?: string | undefined;
4942
+ label?: string | undefined;
4943
+ placeholder?: string | undefined;
4944
+ onChange?: string | undefined;
4945
+ onBlur?: string | undefined;
4946
+ onFocus?: string | undefined;
4947
+ } | {
4948
+ type: "Divider";
4949
+ id?: string | undefined;
4950
+ onCreate?: string | undefined;
4951
+ onDestroy?: string | undefined;
4952
+ } | {
4953
+ type: "ButtonGroup";
4954
+ items: ({
4955
+ type: "Text";
4956
+ content: string;
4957
+ id?: string | undefined;
4958
+ onCreate?: string | undefined;
4959
+ onDestroy?: string | undefined;
4960
+ } | {
4961
+ type: "Button";
4962
+ label: string;
4963
+ onClick: string;
4964
+ id?: string | undefined;
4965
+ onCreate?: string | undefined;
4966
+ onDestroy?: string | undefined;
4967
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
4968
+ disabled?: boolean | undefined;
4969
+ } | {
4970
+ type: "FlexibleSpace";
4971
+ id?: string | undefined;
4972
+ onCreate?: string | undefined;
4973
+ onDestroy?: string | undefined;
4974
+ })[];
4975
+ id?: string | undefined;
4976
+ align?: "start" | "end" | undefined;
4977
+ onCreate?: string | undefined;
4978
+ onDestroy?: string | undefined;
4979
+ } | {
4980
+ options: {
4981
+ value: string;
4982
+ label: string;
4983
+ }[];
4984
+ type: "Select";
4985
+ onChange: string;
4986
+ value?: string | undefined;
4987
+ id?: string | undefined;
4988
+ onCreate?: string | undefined;
4989
+ onDestroy?: string | undefined;
4990
+ label?: string | undefined;
4991
+ placeholder?: string | undefined;
4992
+ search?: boolean | undefined;
4993
+ })[] | undefined;
4994
+ }>;
4995
+ placement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4996
+ after: z.ZodString;
4997
+ }, "strip", z.ZodTypeAny, {
4998
+ after: string;
4999
+ }, {
5000
+ after: string;
5001
+ }>, z.ZodObject<{
5002
+ before: z.ZodString;
5003
+ }, "strip", z.ZodTypeAny, {
5004
+ before: string;
5005
+ }, {
5006
+ before: string;
5007
+ }>, z.ZodObject<{
5008
+ at: z.ZodEnum<["start", "end"]>;
5009
+ }, "strip", z.ZodTypeAny, {
5010
+ at: "start" | "end";
5011
+ }, {
5012
+ at: "start" | "end";
5013
+ }>]>>;
5014
+ }, "strip", z.ZodTypeAny, {
5015
+ panel: {
5016
+ items: ({
5017
+ type: "Text";
5018
+ content: string;
5019
+ id?: string | undefined;
5020
+ onCreate?: string | undefined;
5021
+ onDestroy?: string | undefined;
5022
+ } | {
5023
+ type: "Button";
5024
+ label: string;
5025
+ onClick: string;
5026
+ id?: string | undefined;
5027
+ onCreate?: string | undefined;
5028
+ onDestroy?: string | undefined;
5029
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5030
+ disabled?: boolean | undefined;
5031
+ } | {
5032
+ type: "TextInput";
5033
+ value: string;
5034
+ id?: string | undefined;
5035
+ onCreate?: string | undefined;
5036
+ onDestroy?: string | undefined;
5037
+ label?: string | undefined;
5038
+ placeholder?: string | undefined;
5039
+ onChange?: string | undefined;
5040
+ onBlur?: string | undefined;
5041
+ onFocus?: string | undefined;
5042
+ } | {
5043
+ type: "Divider";
5044
+ id?: string | undefined;
5045
+ onCreate?: string | undefined;
5046
+ onDestroy?: string | undefined;
5047
+ } | {
5048
+ type: "ButtonGroup";
5049
+ items: ({
5050
+ type: "Text";
5051
+ content: string;
5052
+ id?: string | undefined;
5053
+ onCreate?: string | undefined;
5054
+ onDestroy?: string | undefined;
5055
+ } | {
5056
+ type: "Button";
5057
+ label: string;
5058
+ onClick: string;
5059
+ id?: string | undefined;
5060
+ onCreate?: string | undefined;
5061
+ onDestroy?: string | undefined;
5062
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5063
+ disabled?: boolean | undefined;
5064
+ } | {
5065
+ type: "FlexibleSpace";
5066
+ id?: string | undefined;
5067
+ onCreate?: string | undefined;
5068
+ onDestroy?: string | undefined;
5069
+ })[];
5070
+ id?: string | undefined;
5071
+ align?: "start" | "end" | undefined;
5072
+ onCreate?: string | undefined;
5073
+ onDestroy?: string | undefined;
5074
+ } | {
5075
+ options: {
5076
+ value: string;
5077
+ label: string;
5078
+ }[];
5079
+ type: "Select";
5080
+ onChange: string;
5081
+ value?: string | undefined;
5082
+ id?: string | undefined;
5083
+ onCreate?: string | undefined;
5084
+ onDestroy?: string | undefined;
5085
+ label?: string | undefined;
5086
+ placeholder?: string | undefined;
5087
+ search?: boolean | undefined;
5088
+ })[];
5089
+ type?: "Panel" | undefined;
5090
+ id?: string | undefined;
5091
+ onCreate?: string | undefined;
5092
+ onDestroy?: string | undefined;
5093
+ title?: string | undefined;
5094
+ onClose?: string | undefined;
5095
+ footer?: ({
5096
+ type: "Text";
5097
+ content: string;
5098
+ id?: string | undefined;
5099
+ onCreate?: string | undefined;
5100
+ onDestroy?: string | undefined;
5101
+ } | {
5102
+ type: "Button";
5103
+ label: string;
5104
+ onClick: string;
5105
+ id?: string | undefined;
5106
+ onCreate?: string | undefined;
5107
+ onDestroy?: string | undefined;
5108
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5109
+ disabled?: boolean | undefined;
5110
+ } | {
5111
+ type: "TextInput";
5112
+ value: string;
5113
+ id?: string | undefined;
5114
+ onCreate?: string | undefined;
5115
+ onDestroy?: string | undefined;
5116
+ label?: string | undefined;
5117
+ placeholder?: string | undefined;
5118
+ onChange?: string | undefined;
5119
+ onBlur?: string | undefined;
5120
+ onFocus?: string | undefined;
5121
+ } | {
5122
+ type: "Divider";
5123
+ id?: string | undefined;
5124
+ onCreate?: string | undefined;
5125
+ onDestroy?: string | undefined;
5126
+ } | {
5127
+ type: "ButtonGroup";
5128
+ items: ({
5129
+ type: "Text";
5130
+ content: string;
5131
+ id?: string | undefined;
5132
+ onCreate?: string | undefined;
5133
+ onDestroy?: string | undefined;
5134
+ } | {
5135
+ type: "Button";
5136
+ label: string;
5137
+ onClick: string;
5138
+ id?: string | undefined;
5139
+ onCreate?: string | undefined;
5140
+ onDestroy?: string | undefined;
5141
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5142
+ disabled?: boolean | undefined;
5143
+ } | {
5144
+ type: "FlexibleSpace";
5145
+ id?: string | undefined;
5146
+ onCreate?: string | undefined;
5147
+ onDestroy?: string | undefined;
5148
+ })[];
5149
+ id?: string | undefined;
5150
+ align?: "start" | "end" | undefined;
5151
+ onCreate?: string | undefined;
5152
+ onDestroy?: string | undefined;
5153
+ } | {
5154
+ options: {
5155
+ value: string;
5156
+ label: string;
5157
+ }[];
5158
+ type: "Select";
5159
+ onChange: string;
5160
+ value?: string | undefined;
5161
+ id?: string | undefined;
5162
+ onCreate?: string | undefined;
5163
+ onDestroy?: string | undefined;
5164
+ label?: string | undefined;
5165
+ placeholder?: string | undefined;
5166
+ search?: boolean | undefined;
5167
+ })[] | undefined;
5168
+ };
5169
+ placement?: {
5170
+ after: string;
5171
+ } | {
5172
+ before: string;
5173
+ } | {
5174
+ at: "start" | "end";
5175
+ } | undefined;
5176
+ }, {
5177
+ panel: {
5178
+ items: ({
5179
+ type: "Text";
5180
+ content: string;
5181
+ id?: string | undefined;
5182
+ onCreate?: string | undefined;
5183
+ onDestroy?: string | undefined;
5184
+ } | {
5185
+ type: "Button";
5186
+ label: string;
5187
+ onClick: string;
5188
+ id?: string | undefined;
5189
+ onCreate?: string | undefined;
5190
+ onDestroy?: string | undefined;
5191
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5192
+ disabled?: boolean | undefined;
5193
+ } | {
5194
+ type: "TextInput";
5195
+ value: string;
5196
+ id?: string | undefined;
5197
+ onCreate?: string | undefined;
5198
+ onDestroy?: string | undefined;
5199
+ label?: string | undefined;
5200
+ placeholder?: string | undefined;
5201
+ onChange?: string | undefined;
5202
+ onBlur?: string | undefined;
5203
+ onFocus?: string | undefined;
5204
+ } | {
5205
+ type: "Divider";
5206
+ id?: string | undefined;
5207
+ onCreate?: string | undefined;
5208
+ onDestroy?: string | undefined;
5209
+ } | {
5210
+ type: "ButtonGroup";
5211
+ items: ({
5212
+ type: "Text";
5213
+ content: string;
5214
+ id?: string | undefined;
5215
+ onCreate?: string | undefined;
5216
+ onDestroy?: string | undefined;
5217
+ } | {
5218
+ type: "Button";
5219
+ label: string;
5220
+ onClick: string;
5221
+ id?: string | undefined;
5222
+ onCreate?: string | undefined;
5223
+ onDestroy?: string | undefined;
5224
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5225
+ disabled?: boolean | undefined;
5226
+ } | {
5227
+ type: "FlexibleSpace";
5228
+ id?: string | undefined;
5229
+ onCreate?: string | undefined;
5230
+ onDestroy?: string | undefined;
5231
+ })[];
5232
+ id?: string | undefined;
5233
+ align?: "start" | "end" | undefined;
5234
+ onCreate?: string | undefined;
5235
+ onDestroy?: string | undefined;
5236
+ } | {
5237
+ options: {
5238
+ value: string;
5239
+ label: string;
5240
+ }[];
5241
+ type: "Select";
5242
+ onChange: string;
5243
+ value?: string | undefined;
5244
+ id?: string | undefined;
5245
+ onCreate?: string | undefined;
5246
+ onDestroy?: string | undefined;
5247
+ label?: string | undefined;
5248
+ placeholder?: string | undefined;
5249
+ search?: boolean | undefined;
5250
+ })[];
5251
+ type?: "Panel" | undefined;
5252
+ id?: string | undefined;
5253
+ onCreate?: string | undefined;
5254
+ onDestroy?: string | undefined;
5255
+ title?: string | undefined;
5256
+ onClose?: string | undefined;
5257
+ footer?: ({
5258
+ type: "Text";
5259
+ content: string;
5260
+ id?: string | undefined;
5261
+ onCreate?: string | undefined;
5262
+ onDestroy?: string | undefined;
5263
+ } | {
5264
+ type: "Button";
5265
+ label: string;
5266
+ onClick: string;
5267
+ id?: string | undefined;
5268
+ onCreate?: string | undefined;
5269
+ onDestroy?: string | undefined;
5270
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5271
+ disabled?: boolean | undefined;
5272
+ } | {
5273
+ type: "TextInput";
5274
+ value: string;
5275
+ id?: string | undefined;
5276
+ onCreate?: string | undefined;
5277
+ onDestroy?: string | undefined;
5278
+ label?: string | undefined;
5279
+ placeholder?: string | undefined;
5280
+ onChange?: string | undefined;
5281
+ onBlur?: string | undefined;
5282
+ onFocus?: string | undefined;
5283
+ } | {
5284
+ type: "Divider";
5285
+ id?: string | undefined;
5286
+ onCreate?: string | undefined;
5287
+ onDestroy?: string | undefined;
5288
+ } | {
5289
+ type: "ButtonGroup";
5290
+ items: ({
5291
+ type: "Text";
5292
+ content: string;
5293
+ id?: string | undefined;
5294
+ onCreate?: string | undefined;
5295
+ onDestroy?: string | undefined;
5296
+ } | {
5297
+ type: "Button";
5298
+ label: string;
5299
+ onClick: string;
5300
+ id?: string | undefined;
5301
+ onCreate?: string | undefined;
5302
+ onDestroy?: string | undefined;
5303
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5304
+ disabled?: boolean | undefined;
5305
+ } | {
5306
+ type: "FlexibleSpace";
5307
+ id?: string | undefined;
5308
+ onCreate?: string | undefined;
5309
+ onDestroy?: string | undefined;
5310
+ })[];
5311
+ id?: string | undefined;
5312
+ align?: "start" | "end" | undefined;
5313
+ onCreate?: string | undefined;
5314
+ onDestroy?: string | undefined;
5315
+ } | {
5316
+ options: {
5317
+ value: string;
5318
+ label: string;
5319
+ }[];
5320
+ type: "Select";
5321
+ onChange: string;
5322
+ value?: string | undefined;
5323
+ id?: string | undefined;
5324
+ onCreate?: string | undefined;
5325
+ onDestroy?: string | undefined;
5326
+ label?: string | undefined;
5327
+ placeholder?: string | undefined;
5328
+ search?: boolean | undefined;
5329
+ })[] | undefined;
5330
+ };
5331
+ placement?: {
5332
+ after: string;
5333
+ } | {
5334
+ before: string;
5335
+ } | {
5336
+ at: "start" | "end";
5337
+ } | undefined;
5338
+ }>;
5339
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
5340
+ params: {
5341
+ panel: {
5342
+ items: ({
5343
+ type: "Text";
5344
+ content: string;
5345
+ id?: string | undefined;
5346
+ onCreate?: string | undefined;
5347
+ onDestroy?: string | undefined;
5348
+ } | {
5349
+ type: "Button";
5350
+ label: string;
5351
+ onClick: string;
5352
+ id?: string | undefined;
5353
+ onCreate?: string | undefined;
5354
+ onDestroy?: string | undefined;
5355
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5356
+ disabled?: boolean | undefined;
5357
+ } | {
5358
+ type: "TextInput";
5359
+ value: string;
5360
+ id?: string | undefined;
5361
+ onCreate?: string | undefined;
5362
+ onDestroy?: string | undefined;
5363
+ label?: string | undefined;
5364
+ placeholder?: string | undefined;
5365
+ onChange?: string | undefined;
5366
+ onBlur?: string | undefined;
5367
+ onFocus?: string | undefined;
5368
+ } | {
5369
+ type: "Divider";
5370
+ id?: string | undefined;
5371
+ onCreate?: string | undefined;
5372
+ onDestroy?: string | undefined;
5373
+ } | {
5374
+ type: "ButtonGroup";
5375
+ items: ({
5376
+ type: "Text";
5377
+ content: string;
5378
+ id?: string | undefined;
5379
+ onCreate?: string | undefined;
5380
+ onDestroy?: string | undefined;
5381
+ } | {
5382
+ type: "Button";
5383
+ label: string;
5384
+ onClick: string;
5385
+ id?: string | undefined;
5386
+ onCreate?: string | undefined;
5387
+ onDestroy?: string | undefined;
5388
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5389
+ disabled?: boolean | undefined;
5390
+ } | {
5391
+ type: "FlexibleSpace";
5392
+ id?: string | undefined;
5393
+ onCreate?: string | undefined;
5394
+ onDestroy?: string | undefined;
5395
+ })[];
5396
+ id?: string | undefined;
5397
+ align?: "start" | "end" | undefined;
5398
+ onCreate?: string | undefined;
5399
+ onDestroy?: string | undefined;
5400
+ } | {
5401
+ options: {
5402
+ value: string;
5403
+ label: string;
5404
+ }[];
5405
+ type: "Select";
5406
+ onChange: string;
5407
+ value?: string | undefined;
5408
+ id?: string | undefined;
5409
+ onCreate?: string | undefined;
5410
+ onDestroy?: string | undefined;
5411
+ label?: string | undefined;
5412
+ placeholder?: string | undefined;
5413
+ search?: boolean | undefined;
5414
+ })[];
5415
+ type?: "Panel" | undefined;
5416
+ id?: string | undefined;
5417
+ onCreate?: string | undefined;
5418
+ onDestroy?: string | undefined;
5419
+ title?: string | undefined;
5420
+ onClose?: string | undefined;
5421
+ footer?: ({
5422
+ type: "Text";
5423
+ content: string;
5424
+ id?: string | undefined;
5425
+ onCreate?: string | undefined;
5426
+ onDestroy?: string | undefined;
5427
+ } | {
5428
+ type: "Button";
5429
+ label: string;
5430
+ onClick: string;
5431
+ id?: string | undefined;
5432
+ onCreate?: string | undefined;
5433
+ onDestroy?: string | undefined;
5434
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5435
+ disabled?: boolean | undefined;
5436
+ } | {
5437
+ type: "TextInput";
5438
+ value: string;
5439
+ id?: string | undefined;
5440
+ onCreate?: string | undefined;
5441
+ onDestroy?: string | undefined;
5442
+ label?: string | undefined;
5443
+ placeholder?: string | undefined;
5444
+ onChange?: string | undefined;
5445
+ onBlur?: string | undefined;
5446
+ onFocus?: string | undefined;
5447
+ } | {
5448
+ type: "Divider";
5449
+ id?: string | undefined;
5450
+ onCreate?: string | undefined;
5451
+ onDestroy?: string | undefined;
5452
+ } | {
5453
+ type: "ButtonGroup";
5454
+ items: ({
5455
+ type: "Text";
5456
+ content: string;
5457
+ id?: string | undefined;
5458
+ onCreate?: string | undefined;
5459
+ onDestroy?: string | undefined;
5460
+ } | {
5461
+ type: "Button";
5462
+ label: string;
5463
+ onClick: string;
5464
+ id?: string | undefined;
5465
+ onCreate?: string | undefined;
5466
+ onDestroy?: string | undefined;
5467
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5468
+ disabled?: boolean | undefined;
5469
+ } | {
5470
+ type: "FlexibleSpace";
5471
+ id?: string | undefined;
5472
+ onCreate?: string | undefined;
5473
+ onDestroy?: string | undefined;
5474
+ })[];
5475
+ id?: string | undefined;
5476
+ align?: "start" | "end" | undefined;
5477
+ onCreate?: string | undefined;
5478
+ onDestroy?: string | undefined;
5479
+ } | {
5480
+ options: {
5481
+ value: string;
5482
+ label: string;
5483
+ }[];
5484
+ type: "Select";
5485
+ onChange: string;
5486
+ value?: string | undefined;
5487
+ id?: string | undefined;
5488
+ onCreate?: string | undefined;
5489
+ onDestroy?: string | undefined;
5490
+ label?: string | undefined;
5491
+ placeholder?: string | undefined;
5492
+ search?: boolean | undefined;
5493
+ })[] | undefined;
5494
+ };
5495
+ placement?: {
5496
+ after: string;
5497
+ } | {
5498
+ before: string;
5499
+ } | {
5500
+ at: "start" | "end";
5501
+ } | undefined;
5502
+ };
5503
+ type: "addPanel";
5504
+ }, {
5505
+ params: {
5506
+ panel: {
5507
+ items: ({
5508
+ type: "Text";
5509
+ content: string;
5510
+ id?: string | undefined;
5511
+ onCreate?: string | undefined;
5512
+ onDestroy?: string | undefined;
5513
+ } | {
5514
+ type: "Button";
5515
+ label: string;
5516
+ onClick: string;
5517
+ id?: string | undefined;
5518
+ onCreate?: string | undefined;
5519
+ onDestroy?: string | undefined;
5520
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5521
+ disabled?: boolean | undefined;
5522
+ } | {
5523
+ type: "TextInput";
5524
+ value: string;
5525
+ id?: string | undefined;
5526
+ onCreate?: string | undefined;
5527
+ onDestroy?: string | undefined;
5528
+ label?: string | undefined;
5529
+ placeholder?: string | undefined;
5530
+ onChange?: string | undefined;
5531
+ onBlur?: string | undefined;
5532
+ onFocus?: string | undefined;
5533
+ } | {
5534
+ type: "Divider";
5535
+ id?: string | undefined;
5536
+ onCreate?: string | undefined;
5537
+ onDestroy?: string | undefined;
5538
+ } | {
5539
+ type: "ButtonGroup";
5540
+ items: ({
5541
+ type: "Text";
5542
+ content: string;
5543
+ id?: string | undefined;
5544
+ onCreate?: string | undefined;
5545
+ onDestroy?: string | undefined;
5546
+ } | {
5547
+ type: "Button";
5548
+ label: string;
5549
+ onClick: string;
5550
+ id?: string | undefined;
5551
+ onCreate?: string | undefined;
5552
+ onDestroy?: string | undefined;
5553
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5554
+ disabled?: boolean | undefined;
5555
+ } | {
5556
+ type: "FlexibleSpace";
5557
+ id?: string | undefined;
5558
+ onCreate?: string | undefined;
5559
+ onDestroy?: string | undefined;
5560
+ })[];
5561
+ id?: string | undefined;
5562
+ align?: "start" | "end" | undefined;
5563
+ onCreate?: string | undefined;
5564
+ onDestroy?: string | undefined;
5565
+ } | {
5566
+ options: {
5567
+ value: string;
5568
+ label: string;
5569
+ }[];
5570
+ type: "Select";
5571
+ onChange: string;
5572
+ value?: string | undefined;
5573
+ id?: string | undefined;
5574
+ onCreate?: string | undefined;
5575
+ onDestroy?: string | undefined;
5576
+ label?: string | undefined;
5577
+ placeholder?: string | undefined;
5578
+ search?: boolean | undefined;
5579
+ })[];
5580
+ type?: "Panel" | undefined;
5581
+ id?: string | undefined;
5582
+ onCreate?: string | undefined;
5583
+ onDestroy?: string | undefined;
5584
+ title?: string | undefined;
5585
+ onClose?: string | undefined;
5586
+ footer?: ({
5587
+ type: "Text";
5588
+ content: string;
5589
+ id?: string | undefined;
5590
+ onCreate?: string | undefined;
5591
+ onDestroy?: string | undefined;
5592
+ } | {
5593
+ type: "Button";
5594
+ label: string;
5595
+ onClick: string;
5596
+ id?: string | undefined;
5597
+ onCreate?: string | undefined;
5598
+ onDestroy?: string | undefined;
5599
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5600
+ disabled?: boolean | undefined;
5601
+ } | {
5602
+ type: "TextInput";
5603
+ value: string;
5604
+ id?: string | undefined;
5605
+ onCreate?: string | undefined;
5606
+ onDestroy?: string | undefined;
5607
+ label?: string | undefined;
5608
+ placeholder?: string | undefined;
5609
+ onChange?: string | undefined;
5610
+ onBlur?: string | undefined;
5611
+ onFocus?: string | undefined;
5612
+ } | {
5613
+ type: "Divider";
5614
+ id?: string | undefined;
5615
+ onCreate?: string | undefined;
5616
+ onDestroy?: string | undefined;
5617
+ } | {
5618
+ type: "ButtonGroup";
5619
+ items: ({
5620
+ type: "Text";
5621
+ content: string;
5622
+ id?: string | undefined;
5623
+ onCreate?: string | undefined;
5624
+ onDestroy?: string | undefined;
5625
+ } | {
5626
+ type: "Button";
5627
+ label: string;
5628
+ onClick: string;
5629
+ id?: string | undefined;
5630
+ onCreate?: string | undefined;
5631
+ onDestroy?: string | undefined;
5632
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5633
+ disabled?: boolean | undefined;
5634
+ } | {
5635
+ type: "FlexibleSpace";
5636
+ id?: string | undefined;
5637
+ onCreate?: string | undefined;
5638
+ onDestroy?: string | undefined;
5639
+ })[];
5640
+ id?: string | undefined;
5641
+ align?: "start" | "end" | undefined;
5642
+ onCreate?: string | undefined;
5643
+ onDestroy?: string | undefined;
5644
+ } | {
5645
+ options: {
5646
+ value: string;
5647
+ label: string;
5648
+ }[];
5649
+ type: "Select";
5650
+ onChange: string;
5651
+ value?: string | undefined;
5652
+ id?: string | undefined;
5653
+ onCreate?: string | undefined;
5654
+ onDestroy?: string | undefined;
5655
+ label?: string | undefined;
5656
+ placeholder?: string | undefined;
5657
+ search?: boolean | undefined;
5658
+ })[] | undefined;
5659
+ };
5660
+ placement?: {
5661
+ after: string;
5662
+ } | {
5663
+ before: string;
5664
+ } | {
5665
+ at: "start" | "end";
5666
+ } | undefined;
5667
+ };
5668
+ type: "addPanel";
5669
+ }>;
5670
+ declare const UpdatePanelMessage: z.ZodObject<{
5671
+ type: z.ZodLiteral<"updatePanel">;
5672
+ params: z.ZodObject<{
5673
+ type: z.ZodOptional<z.ZodOptional<z.ZodLiteral<"Panel">>>;
5674
+ id: z.ZodString;
5675
+ items: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5676
+ onCreate: z.ZodOptional<z.ZodString>;
5677
+ onDestroy: z.ZodOptional<z.ZodString>;
5678
+ }, {
5679
+ id: z.ZodOptional<z.ZodString>;
5680
+ }>, {
5681
+ type: z.ZodLiteral<"Text">;
5682
+ content: z.ZodString;
5683
+ }>, "strip", z.ZodTypeAny, {
5684
+ type: "Text";
5685
+ content: string;
5686
+ id?: string | undefined;
5687
+ onCreate?: string | undefined;
5688
+ onDestroy?: string | undefined;
5689
+ }, {
5690
+ type: "Text";
5691
+ content: string;
5692
+ id?: string | undefined;
5693
+ onCreate?: string | undefined;
5694
+ onDestroy?: string | undefined;
5695
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5696
+ onCreate: z.ZodOptional<z.ZodString>;
5697
+ onDestroy: z.ZodOptional<z.ZodString>;
5698
+ }, {
5699
+ id: z.ZodOptional<z.ZodString>;
5700
+ }>, {
5701
+ type: z.ZodLiteral<"Button">;
5702
+ label: z.ZodString;
5703
+ variant: z.ZodOptional<z.ZodEnum<["primary", "outlined", "transparent", "transparentThin"]>>;
5704
+ disabled: z.ZodOptional<z.ZodBoolean>;
5705
+ }>, {
5706
+ onClick: z.ZodString;
5707
+ }>, "strip", z.ZodTypeAny, {
5708
+ type: "Button";
5709
+ label: string;
5710
+ onClick: string;
5711
+ id?: string | undefined;
5712
+ onCreate?: string | undefined;
5713
+ onDestroy?: string | undefined;
5714
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5715
+ disabled?: boolean | undefined;
5716
+ }, {
5717
+ type: "Button";
5718
+ label: string;
5719
+ onClick: string;
5720
+ id?: string | undefined;
5721
+ onCreate?: string | undefined;
5722
+ onDestroy?: string | undefined;
5723
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5724
+ disabled?: boolean | undefined;
5725
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5726
+ onCreate: z.ZodOptional<z.ZodString>;
5727
+ onDestroy: z.ZodOptional<z.ZodString>;
5728
+ }, {
5729
+ id: z.ZodOptional<z.ZodString>;
5730
+ }>, {
5731
+ label: z.ZodOptional<z.ZodString>;
5732
+ }>, {
5733
+ type: z.ZodLiteral<"TextInput">;
5734
+ value: z.ZodString;
5735
+ placeholder: z.ZodOptional<z.ZodString>;
5736
+ }>, {
5737
+ onChange: z.ZodOptional<z.ZodString>;
5738
+ onBlur: z.ZodOptional<z.ZodString>;
5739
+ onFocus: z.ZodOptional<z.ZodString>;
5740
+ }>, "strip", z.ZodTypeAny, {
5741
+ type: "TextInput";
5742
+ value: string;
5743
+ id?: string | undefined;
5744
+ onCreate?: string | undefined;
5745
+ onDestroy?: string | undefined;
5746
+ label?: string | undefined;
5747
+ placeholder?: string | undefined;
5748
+ onChange?: string | undefined;
5749
+ onBlur?: string | undefined;
5750
+ onFocus?: string | undefined;
5751
+ }, {
5752
+ type: "TextInput";
5753
+ value: string;
5754
+ id?: string | undefined;
5755
+ onCreate?: string | undefined;
5756
+ onDestroy?: string | undefined;
5757
+ label?: string | undefined;
5758
+ placeholder?: string | undefined;
5759
+ onChange?: string | undefined;
5760
+ onBlur?: string | undefined;
5761
+ onFocus?: string | undefined;
5762
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5763
+ onCreate: z.ZodOptional<z.ZodString>;
5764
+ onDestroy: z.ZodOptional<z.ZodString>;
5765
+ }, {
5766
+ id: z.ZodOptional<z.ZodString>;
5767
+ }>, {
5768
+ type: z.ZodLiteral<"Divider">;
5769
+ }>, "strip", z.ZodTypeAny, {
5770
+ type: "Divider";
5771
+ id?: string | undefined;
5772
+ onCreate?: string | undefined;
5773
+ onDestroy?: string | undefined;
5774
+ }, {
5775
+ type: "Divider";
5776
+ id?: string | undefined;
5777
+ onCreate?: string | undefined;
5778
+ onDestroy?: string | undefined;
5779
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5780
+ onCreate: z.ZodOptional<z.ZodString>;
5781
+ onDestroy: z.ZodOptional<z.ZodString>;
5782
+ }, {
5783
+ id: z.ZodOptional<z.ZodString>;
5784
+ }>, {
5785
+ type: z.ZodLiteral<"ButtonGroup">;
5786
+ align: z.ZodOptional<z.ZodEnum<["start", "end"]>>;
5787
+ }>, {
5788
+ items: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5789
+ onCreate: z.ZodOptional<z.ZodString>;
5790
+ onDestroy: z.ZodOptional<z.ZodString>;
5791
+ }, {
5792
+ id: z.ZodOptional<z.ZodString>;
5793
+ }>, {
5794
+ type: z.ZodLiteral<"Button">;
5795
+ label: z.ZodString;
5796
+ variant: z.ZodOptional<z.ZodEnum<["primary", "outlined", "transparent", "transparentThin"]>>;
5797
+ disabled: z.ZodOptional<z.ZodBoolean>;
5798
+ }>, {
5799
+ onClick: z.ZodString;
5800
+ }>, "strip", z.ZodTypeAny, {
5801
+ type: "Button";
5802
+ label: string;
5803
+ onClick: string;
5804
+ id?: string | undefined;
5805
+ onCreate?: string | undefined;
5806
+ onDestroy?: string | undefined;
5807
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5808
+ disabled?: boolean | undefined;
5809
+ }, {
5810
+ type: "Button";
5811
+ label: string;
5812
+ onClick: string;
5813
+ id?: string | undefined;
5814
+ onCreate?: string | undefined;
5815
+ onDestroy?: string | undefined;
5816
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5817
+ disabled?: boolean | undefined;
5818
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5819
+ onCreate: z.ZodOptional<z.ZodString>;
5820
+ onDestroy: z.ZodOptional<z.ZodString>;
5821
+ }, {
5822
+ id: z.ZodOptional<z.ZodString>;
5823
+ }>, {
5824
+ type: z.ZodLiteral<"Text">;
5825
+ content: z.ZodString;
5826
+ }>, "strip", z.ZodTypeAny, {
5827
+ type: "Text";
5828
+ content: string;
5829
+ id?: string | undefined;
5830
+ onCreate?: string | undefined;
5831
+ onDestroy?: string | undefined;
5832
+ }, {
5833
+ type: "Text";
5834
+ content: string;
5835
+ id?: string | undefined;
5836
+ onCreate?: string | undefined;
5837
+ onDestroy?: string | undefined;
5838
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5839
+ onCreate: z.ZodOptional<z.ZodString>;
5840
+ onDestroy: z.ZodOptional<z.ZodString>;
5841
+ }, {
5842
+ id: z.ZodOptional<z.ZodString>;
5843
+ }>, {
5844
+ type: z.ZodLiteral<"FlexibleSpace">;
5845
+ }>, "strip", z.ZodTypeAny, {
5846
+ type: "FlexibleSpace";
5847
+ id?: string | undefined;
5848
+ onCreate?: string | undefined;
5849
+ onDestroy?: string | undefined;
5850
+ }, {
5851
+ type: "FlexibleSpace";
5852
+ id?: string | undefined;
5853
+ onCreate?: string | undefined;
5854
+ onDestroy?: string | undefined;
5855
+ }>]>, "many">;
5856
+ }>, "strip", z.ZodTypeAny, {
5857
+ type: "ButtonGroup";
5858
+ items: ({
5859
+ type: "Text";
5860
+ content: string;
5861
+ id?: string | undefined;
5862
+ onCreate?: string | undefined;
5863
+ onDestroy?: string | undefined;
5864
+ } | {
5865
+ type: "Button";
5866
+ label: string;
5867
+ onClick: string;
5868
+ id?: string | undefined;
5869
+ onCreate?: string | undefined;
5870
+ onDestroy?: string | undefined;
5871
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5872
+ disabled?: boolean | undefined;
5873
+ } | {
5874
+ type: "FlexibleSpace";
5875
+ id?: string | undefined;
5876
+ onCreate?: string | undefined;
5877
+ onDestroy?: string | undefined;
5878
+ })[];
5879
+ id?: string | undefined;
5880
+ align?: "start" | "end" | undefined;
5881
+ onCreate?: string | undefined;
5882
+ onDestroy?: string | undefined;
5883
+ }, {
5884
+ type: "ButtonGroup";
5885
+ items: ({
5886
+ type: "Text";
5887
+ content: string;
5888
+ id?: string | undefined;
5889
+ onCreate?: string | undefined;
5890
+ onDestroy?: string | undefined;
5891
+ } | {
5892
+ type: "Button";
5893
+ label: string;
5894
+ onClick: string;
5895
+ id?: string | undefined;
5896
+ onCreate?: string | undefined;
5897
+ onDestroy?: string | undefined;
5898
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
5899
+ disabled?: boolean | undefined;
5900
+ } | {
5901
+ type: "FlexibleSpace";
5902
+ id?: string | undefined;
5903
+ onCreate?: string | undefined;
5904
+ onDestroy?: string | undefined;
5905
+ })[];
5906
+ id?: string | undefined;
5907
+ align?: "start" | "end" | undefined;
5908
+ onCreate?: string | undefined;
5909
+ onDestroy?: string | undefined;
5910
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5911
+ onCreate: z.ZodOptional<z.ZodString>;
5912
+ onDestroy: z.ZodOptional<z.ZodString>;
5913
+ }, {
5914
+ id: z.ZodOptional<z.ZodString>;
5915
+ }>, {
5916
+ label: z.ZodOptional<z.ZodString>;
5917
+ }>, {
5918
+ type: z.ZodLiteral<"Select">;
5919
+ options: z.ZodArray<z.ZodObject<{
5920
+ label: z.ZodString;
5921
+ value: z.ZodString;
5922
+ }, "strip", z.ZodTypeAny, {
5923
+ value: string;
5924
+ label: string;
5925
+ }, {
5926
+ value: string;
5927
+ label: string;
5928
+ }>, "many">;
5929
+ value: z.ZodOptional<z.ZodString>;
5930
+ search: z.ZodOptional<z.ZodBoolean>;
5931
+ placeholder: z.ZodOptional<z.ZodString>;
5932
+ }>, {
5933
+ onChange: z.ZodString;
5934
+ }>, "strip", z.ZodTypeAny, {
5935
+ options: {
5936
+ value: string;
5937
+ label: string;
5938
+ }[];
5939
+ type: "Select";
5940
+ onChange: string;
5941
+ value?: string | undefined;
5942
+ id?: string | undefined;
5943
+ onCreate?: string | undefined;
5944
+ onDestroy?: string | undefined;
5945
+ label?: string | undefined;
5946
+ placeholder?: string | undefined;
5947
+ search?: boolean | undefined;
5948
+ }, {
5949
+ options: {
5950
+ value: string;
5951
+ label: string;
5952
+ }[];
5953
+ type: "Select";
5954
+ onChange: string;
5955
+ value?: string | undefined;
5956
+ id?: string | undefined;
5957
+ onCreate?: string | undefined;
5958
+ onDestroy?: string | undefined;
5959
+ label?: string | undefined;
5960
+ placeholder?: string | undefined;
5961
+ search?: boolean | undefined;
5962
+ }>]>, "many">>;
5963
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5964
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5965
+ title: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5966
+ onClose: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5967
+ footer: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5968
+ onCreate: z.ZodOptional<z.ZodString>;
5969
+ onDestroy: z.ZodOptional<z.ZodString>;
5970
+ }, {
5971
+ id: z.ZodOptional<z.ZodString>;
5972
+ }>, {
5973
+ type: z.ZodLiteral<"Text">;
5974
+ content: z.ZodString;
5975
+ }>, "strip", z.ZodTypeAny, {
5976
+ type: "Text";
5977
+ content: string;
5978
+ id?: string | undefined;
5979
+ onCreate?: string | undefined;
5980
+ onDestroy?: string | undefined;
5981
+ }, {
5982
+ type: "Text";
5983
+ content: string;
5984
+ id?: string | undefined;
5985
+ onCreate?: string | undefined;
5986
+ onDestroy?: string | undefined;
5987
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5988
+ onCreate: z.ZodOptional<z.ZodString>;
5989
+ onDestroy: z.ZodOptional<z.ZodString>;
5990
+ }, {
5991
+ id: z.ZodOptional<z.ZodString>;
5992
+ }>, {
5993
+ type: z.ZodLiteral<"Button">;
5994
+ label: z.ZodString;
5995
+ variant: z.ZodOptional<z.ZodEnum<["primary", "outlined", "transparent", "transparentThin"]>>;
5996
+ disabled: z.ZodOptional<z.ZodBoolean>;
5997
+ }>, {
5998
+ onClick: z.ZodString;
5999
+ }>, "strip", z.ZodTypeAny, {
6000
+ type: "Button";
6001
+ label: string;
6002
+ onClick: string;
6003
+ id?: string | undefined;
6004
+ onCreate?: string | undefined;
6005
+ onDestroy?: string | undefined;
6006
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6007
+ disabled?: boolean | undefined;
6008
+ }, {
6009
+ type: "Button";
6010
+ label: string;
6011
+ onClick: string;
6012
+ id?: string | undefined;
6013
+ onCreate?: string | undefined;
6014
+ onDestroy?: string | undefined;
6015
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6016
+ disabled?: boolean | undefined;
6017
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
6018
+ onCreate: z.ZodOptional<z.ZodString>;
6019
+ onDestroy: z.ZodOptional<z.ZodString>;
6020
+ }, {
6021
+ id: z.ZodOptional<z.ZodString>;
6022
+ }>, {
6023
+ label: z.ZodOptional<z.ZodString>;
6024
+ }>, {
6025
+ type: z.ZodLiteral<"TextInput">;
6026
+ value: z.ZodString;
6027
+ placeholder: z.ZodOptional<z.ZodString>;
6028
+ }>, {
6029
+ onChange: z.ZodOptional<z.ZodString>;
6030
+ onBlur: z.ZodOptional<z.ZodString>;
6031
+ onFocus: z.ZodOptional<z.ZodString>;
6032
+ }>, "strip", z.ZodTypeAny, {
6033
+ type: "TextInput";
6034
+ value: string;
6035
+ id?: string | undefined;
6036
+ onCreate?: string | undefined;
6037
+ onDestroy?: string | undefined;
6038
+ label?: string | undefined;
6039
+ placeholder?: string | undefined;
6040
+ onChange?: string | undefined;
6041
+ onBlur?: string | undefined;
6042
+ onFocus?: string | undefined;
6043
+ }, {
6044
+ type: "TextInput";
6045
+ value: string;
6046
+ id?: string | undefined;
6047
+ onCreate?: string | undefined;
6048
+ onDestroy?: string | undefined;
6049
+ label?: string | undefined;
6050
+ placeholder?: string | undefined;
6051
+ onChange?: string | undefined;
6052
+ onBlur?: string | undefined;
6053
+ onFocus?: string | undefined;
6054
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
6055
+ onCreate: z.ZodOptional<z.ZodString>;
6056
+ onDestroy: z.ZodOptional<z.ZodString>;
6057
+ }, {
6058
+ id: z.ZodOptional<z.ZodString>;
6059
+ }>, {
6060
+ type: z.ZodLiteral<"Divider">;
6061
+ }>, "strip", z.ZodTypeAny, {
6062
+ type: "Divider";
6063
+ id?: string | undefined;
6064
+ onCreate?: string | undefined;
6065
+ onDestroy?: string | undefined;
6066
+ }, {
6067
+ type: "Divider";
6068
+ id?: string | undefined;
6069
+ onCreate?: string | undefined;
6070
+ onDestroy?: string | undefined;
6071
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
6072
+ onCreate: z.ZodOptional<z.ZodString>;
6073
+ onDestroy: z.ZodOptional<z.ZodString>;
6074
+ }, {
6075
+ id: z.ZodOptional<z.ZodString>;
6076
+ }>, {
6077
+ type: z.ZodLiteral<"ButtonGroup">;
6078
+ align: z.ZodOptional<z.ZodEnum<["start", "end"]>>;
6079
+ }>, {
6080
+ items: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
6081
+ onCreate: z.ZodOptional<z.ZodString>;
6082
+ onDestroy: z.ZodOptional<z.ZodString>;
6083
+ }, {
6084
+ id: z.ZodOptional<z.ZodString>;
6085
+ }>, {
6086
+ type: z.ZodLiteral<"Button">;
6087
+ label: z.ZodString;
6088
+ variant: z.ZodOptional<z.ZodEnum<["primary", "outlined", "transparent", "transparentThin"]>>;
6089
+ disabled: z.ZodOptional<z.ZodBoolean>;
6090
+ }>, {
6091
+ onClick: z.ZodString;
6092
+ }>, "strip", z.ZodTypeAny, {
6093
+ type: "Button";
6094
+ label: string;
6095
+ onClick: string;
6096
+ id?: string | undefined;
6097
+ onCreate?: string | undefined;
6098
+ onDestroy?: string | undefined;
6099
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6100
+ disabled?: boolean | undefined;
6101
+ }, {
6102
+ type: "Button";
6103
+ label: string;
6104
+ onClick: string;
6105
+ id?: string | undefined;
6106
+ onCreate?: string | undefined;
6107
+ onDestroy?: string | undefined;
6108
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6109
+ disabled?: boolean | undefined;
6110
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
6111
+ onCreate: z.ZodOptional<z.ZodString>;
6112
+ onDestroy: z.ZodOptional<z.ZodString>;
6113
+ }, {
6114
+ id: z.ZodOptional<z.ZodString>;
6115
+ }>, {
6116
+ type: z.ZodLiteral<"Text">;
6117
+ content: z.ZodString;
6118
+ }>, "strip", z.ZodTypeAny, {
6119
+ type: "Text";
6120
+ content: string;
6121
+ id?: string | undefined;
6122
+ onCreate?: string | undefined;
6123
+ onDestroy?: string | undefined;
6124
+ }, {
6125
+ type: "Text";
6126
+ content: string;
6127
+ id?: string | undefined;
6128
+ onCreate?: string | undefined;
6129
+ onDestroy?: string | undefined;
6130
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
6131
+ onCreate: z.ZodOptional<z.ZodString>;
6132
+ onDestroy: z.ZodOptional<z.ZodString>;
6133
+ }, {
6134
+ id: z.ZodOptional<z.ZodString>;
6135
+ }>, {
6136
+ type: z.ZodLiteral<"FlexibleSpace">;
6137
+ }>, "strip", z.ZodTypeAny, {
6138
+ type: "FlexibleSpace";
6139
+ id?: string | undefined;
6140
+ onCreate?: string | undefined;
6141
+ onDestroy?: string | undefined;
6142
+ }, {
6143
+ type: "FlexibleSpace";
6144
+ id?: string | undefined;
6145
+ onCreate?: string | undefined;
6146
+ onDestroy?: string | undefined;
6147
+ }>]>, "many">;
6148
+ }>, "strip", z.ZodTypeAny, {
6149
+ type: "ButtonGroup";
6150
+ items: ({
6151
+ type: "Text";
6152
+ content: string;
6153
+ id?: string | undefined;
6154
+ onCreate?: string | undefined;
6155
+ onDestroy?: string | undefined;
6156
+ } | {
6157
+ type: "Button";
6158
+ label: string;
6159
+ onClick: string;
6160
+ id?: string | undefined;
6161
+ onCreate?: string | undefined;
6162
+ onDestroy?: string | undefined;
6163
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6164
+ disabled?: boolean | undefined;
6165
+ } | {
6166
+ type: "FlexibleSpace";
6167
+ id?: string | undefined;
6168
+ onCreate?: string | undefined;
6169
+ onDestroy?: string | undefined;
6170
+ })[];
6171
+ id?: string | undefined;
6172
+ align?: "start" | "end" | undefined;
6173
+ onCreate?: string | undefined;
6174
+ onDestroy?: string | undefined;
6175
+ }, {
6176
+ type: "ButtonGroup";
6177
+ items: ({
6178
+ type: "Text";
6179
+ content: string;
6180
+ id?: string | undefined;
6181
+ onCreate?: string | undefined;
6182
+ onDestroy?: string | undefined;
6183
+ } | {
6184
+ type: "Button";
6185
+ label: string;
6186
+ onClick: string;
6187
+ id?: string | undefined;
6188
+ onCreate?: string | undefined;
6189
+ onDestroy?: string | undefined;
6190
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6191
+ disabled?: boolean | undefined;
6192
+ } | {
6193
+ type: "FlexibleSpace";
6194
+ id?: string | undefined;
6195
+ onCreate?: string | undefined;
6196
+ onDestroy?: string | undefined;
6197
+ })[];
6198
+ id?: string | undefined;
6199
+ align?: "start" | "end" | undefined;
6200
+ onCreate?: string | undefined;
6201
+ onDestroy?: string | undefined;
6202
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
6203
+ onCreate: z.ZodOptional<z.ZodString>;
6204
+ onDestroy: z.ZodOptional<z.ZodString>;
6205
+ }, {
6206
+ id: z.ZodOptional<z.ZodString>;
6207
+ }>, {
6208
+ label: z.ZodOptional<z.ZodString>;
6209
+ }>, {
6210
+ type: z.ZodLiteral<"Select">;
6211
+ options: z.ZodArray<z.ZodObject<{
6212
+ label: z.ZodString;
6213
+ value: z.ZodString;
6214
+ }, "strip", z.ZodTypeAny, {
6215
+ value: string;
6216
+ label: string;
6217
+ }, {
6218
+ value: string;
6219
+ label: string;
6220
+ }>, "many">;
6221
+ value: z.ZodOptional<z.ZodString>;
6222
+ search: z.ZodOptional<z.ZodBoolean>;
6223
+ placeholder: z.ZodOptional<z.ZodString>;
6224
+ }>, {
6225
+ onChange: z.ZodString;
6226
+ }>, "strip", z.ZodTypeAny, {
6227
+ options: {
6228
+ value: string;
6229
+ label: string;
6230
+ }[];
6231
+ type: "Select";
6232
+ onChange: string;
6233
+ value?: string | undefined;
6234
+ id?: string | undefined;
6235
+ onCreate?: string | undefined;
6236
+ onDestroy?: string | undefined;
6237
+ label?: string | undefined;
6238
+ placeholder?: string | undefined;
6239
+ search?: boolean | undefined;
6240
+ }, {
6241
+ options: {
6242
+ value: string;
6243
+ label: string;
6244
+ }[];
6245
+ type: "Select";
6246
+ onChange: string;
6247
+ value?: string | undefined;
6248
+ id?: string | undefined;
6249
+ onCreate?: string | undefined;
6250
+ onDestroy?: string | undefined;
6251
+ label?: string | undefined;
6252
+ placeholder?: string | undefined;
6253
+ search?: boolean | undefined;
6254
+ }>]>, "many">>>;
6255
+ }, "strip", z.ZodTypeAny, {
6256
+ id: string;
6257
+ type?: "Panel" | undefined;
6258
+ items?: ({
6259
+ type: "Text";
6260
+ content: string;
6261
+ id?: string | undefined;
6262
+ onCreate?: string | undefined;
6263
+ onDestroy?: string | undefined;
6264
+ } | {
6265
+ type: "Button";
6266
+ label: string;
6267
+ onClick: string;
6268
+ id?: string | undefined;
6269
+ onCreate?: string | undefined;
6270
+ onDestroy?: string | undefined;
6271
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6272
+ disabled?: boolean | undefined;
6273
+ } | {
6274
+ type: "TextInput";
6275
+ value: string;
6276
+ id?: string | undefined;
6277
+ onCreate?: string | undefined;
6278
+ onDestroy?: string | undefined;
6279
+ label?: string | undefined;
6280
+ placeholder?: string | undefined;
6281
+ onChange?: string | undefined;
6282
+ onBlur?: string | undefined;
6283
+ onFocus?: string | undefined;
6284
+ } | {
6285
+ type: "Divider";
6286
+ id?: string | undefined;
6287
+ onCreate?: string | undefined;
6288
+ onDestroy?: string | undefined;
6289
+ } | {
6290
+ type: "ButtonGroup";
6291
+ items: ({
6292
+ type: "Text";
6293
+ content: string;
6294
+ id?: string | undefined;
6295
+ onCreate?: string | undefined;
6296
+ onDestroy?: string | undefined;
6297
+ } | {
6298
+ type: "Button";
6299
+ label: string;
6300
+ onClick: string;
6301
+ id?: string | undefined;
6302
+ onCreate?: string | undefined;
6303
+ onDestroy?: string | undefined;
6304
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6305
+ disabled?: boolean | undefined;
6306
+ } | {
6307
+ type: "FlexibleSpace";
6308
+ id?: string | undefined;
6309
+ onCreate?: string | undefined;
6310
+ onDestroy?: string | undefined;
6311
+ })[];
6312
+ id?: string | undefined;
6313
+ align?: "start" | "end" | undefined;
6314
+ onCreate?: string | undefined;
6315
+ onDestroy?: string | undefined;
6316
+ } | {
6317
+ options: {
6318
+ value: string;
6319
+ label: string;
6320
+ }[];
6321
+ type: "Select";
6322
+ onChange: string;
6323
+ value?: string | undefined;
6324
+ id?: string | undefined;
6325
+ onCreate?: string | undefined;
6326
+ onDestroy?: string | undefined;
6327
+ label?: string | undefined;
6328
+ placeholder?: string | undefined;
6329
+ search?: boolean | undefined;
6330
+ })[] | undefined;
6331
+ onCreate?: string | undefined;
6332
+ onDestroy?: string | undefined;
6333
+ title?: string | undefined;
6334
+ onClose?: string | undefined;
6335
+ footer?: ({
6336
+ type: "Text";
6337
+ content: string;
6338
+ id?: string | undefined;
6339
+ onCreate?: string | undefined;
6340
+ onDestroy?: string | undefined;
6341
+ } | {
6342
+ type: "Button";
6343
+ label: string;
6344
+ onClick: string;
6345
+ id?: string | undefined;
6346
+ onCreate?: string | undefined;
6347
+ onDestroy?: string | undefined;
6348
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6349
+ disabled?: boolean | undefined;
6350
+ } | {
6351
+ type: "TextInput";
6352
+ value: string;
6353
+ id?: string | undefined;
6354
+ onCreate?: string | undefined;
6355
+ onDestroy?: string | undefined;
6356
+ label?: string | undefined;
6357
+ placeholder?: string | undefined;
6358
+ onChange?: string | undefined;
6359
+ onBlur?: string | undefined;
6360
+ onFocus?: string | undefined;
6361
+ } | {
6362
+ type: "Divider";
6363
+ id?: string | undefined;
6364
+ onCreate?: string | undefined;
6365
+ onDestroy?: string | undefined;
6366
+ } | {
6367
+ type: "ButtonGroup";
6368
+ items: ({
6369
+ type: "Text";
6370
+ content: string;
6371
+ id?: string | undefined;
6372
+ onCreate?: string | undefined;
6373
+ onDestroy?: string | undefined;
6374
+ } | {
6375
+ type: "Button";
6376
+ label: string;
6377
+ onClick: string;
6378
+ id?: string | undefined;
6379
+ onCreate?: string | undefined;
6380
+ onDestroy?: string | undefined;
6381
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6382
+ disabled?: boolean | undefined;
6383
+ } | {
6384
+ type: "FlexibleSpace";
6385
+ id?: string | undefined;
6386
+ onCreate?: string | undefined;
6387
+ onDestroy?: string | undefined;
6388
+ })[];
6389
+ id?: string | undefined;
6390
+ align?: "start" | "end" | undefined;
6391
+ onCreate?: string | undefined;
6392
+ onDestroy?: string | undefined;
6393
+ } | {
6394
+ options: {
6395
+ value: string;
6396
+ label: string;
6397
+ }[];
6398
+ type: "Select";
6399
+ onChange: string;
6400
+ value?: string | undefined;
6401
+ id?: string | undefined;
6402
+ onCreate?: string | undefined;
6403
+ onDestroy?: string | undefined;
6404
+ label?: string | undefined;
6405
+ placeholder?: string | undefined;
6406
+ search?: boolean | undefined;
6407
+ })[] | undefined;
6408
+ }, {
6409
+ id: string;
6410
+ type?: "Panel" | undefined;
6411
+ items?: ({
6412
+ type: "Text";
6413
+ content: string;
6414
+ id?: string | undefined;
6415
+ onCreate?: string | undefined;
6416
+ onDestroy?: string | undefined;
6417
+ } | {
6418
+ type: "Button";
6419
+ label: string;
6420
+ onClick: string;
6421
+ id?: string | undefined;
6422
+ onCreate?: string | undefined;
6423
+ onDestroy?: string | undefined;
6424
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6425
+ disabled?: boolean | undefined;
6426
+ } | {
6427
+ type: "TextInput";
6428
+ value: string;
6429
+ id?: string | undefined;
6430
+ onCreate?: string | undefined;
6431
+ onDestroy?: string | undefined;
6432
+ label?: string | undefined;
6433
+ placeholder?: string | undefined;
6434
+ onChange?: string | undefined;
6435
+ onBlur?: string | undefined;
6436
+ onFocus?: string | undefined;
6437
+ } | {
6438
+ type: "Divider";
6439
+ id?: string | undefined;
6440
+ onCreate?: string | undefined;
6441
+ onDestroy?: string | undefined;
6442
+ } | {
6443
+ type: "ButtonGroup";
6444
+ items: ({
6445
+ type: "Text";
6446
+ content: string;
6447
+ id?: string | undefined;
6448
+ onCreate?: string | undefined;
6449
+ onDestroy?: string | undefined;
6450
+ } | {
6451
+ type: "Button";
6452
+ label: string;
6453
+ onClick: string;
6454
+ id?: string | undefined;
6455
+ onCreate?: string | undefined;
6456
+ onDestroy?: string | undefined;
6457
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6458
+ disabled?: boolean | undefined;
6459
+ } | {
6460
+ type: "FlexibleSpace";
6461
+ id?: string | undefined;
6462
+ onCreate?: string | undefined;
6463
+ onDestroy?: string | undefined;
6464
+ })[];
6465
+ id?: string | undefined;
6466
+ align?: "start" | "end" | undefined;
6467
+ onCreate?: string | undefined;
6468
+ onDestroy?: string | undefined;
6469
+ } | {
6470
+ options: {
6471
+ value: string;
6472
+ label: string;
6473
+ }[];
6474
+ type: "Select";
6475
+ onChange: string;
6476
+ value?: string | undefined;
6477
+ id?: string | undefined;
6478
+ onCreate?: string | undefined;
6479
+ onDestroy?: string | undefined;
6480
+ label?: string | undefined;
6481
+ placeholder?: string | undefined;
6482
+ search?: boolean | undefined;
6483
+ })[] | undefined;
6484
+ onCreate?: string | undefined;
6485
+ onDestroy?: string | undefined;
6486
+ title?: string | undefined;
6487
+ onClose?: string | undefined;
6488
+ footer?: ({
6489
+ type: "Text";
6490
+ content: string;
6491
+ id?: string | undefined;
6492
+ onCreate?: string | undefined;
6493
+ onDestroy?: string | undefined;
6494
+ } | {
6495
+ type: "Button";
6496
+ label: string;
6497
+ onClick: string;
6498
+ id?: string | undefined;
6499
+ onCreate?: string | undefined;
6500
+ onDestroy?: string | undefined;
6501
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6502
+ disabled?: boolean | undefined;
6503
+ } | {
6504
+ type: "TextInput";
6505
+ value: string;
6506
+ id?: string | undefined;
6507
+ onCreate?: string | undefined;
6508
+ onDestroy?: string | undefined;
6509
+ label?: string | undefined;
6510
+ placeholder?: string | undefined;
6511
+ onChange?: string | undefined;
6512
+ onBlur?: string | undefined;
6513
+ onFocus?: string | undefined;
6514
+ } | {
6515
+ type: "Divider";
6516
+ id?: string | undefined;
6517
+ onCreate?: string | undefined;
6518
+ onDestroy?: string | undefined;
6519
+ } | {
6520
+ type: "ButtonGroup";
6521
+ items: ({
6522
+ type: "Text";
6523
+ content: string;
6524
+ id?: string | undefined;
6525
+ onCreate?: string | undefined;
6526
+ onDestroy?: string | undefined;
6527
+ } | {
6528
+ type: "Button";
6529
+ label: string;
6530
+ onClick: string;
6531
+ id?: string | undefined;
6532
+ onCreate?: string | undefined;
6533
+ onDestroy?: string | undefined;
6534
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6535
+ disabled?: boolean | undefined;
6536
+ } | {
6537
+ type: "FlexibleSpace";
6538
+ id?: string | undefined;
6539
+ onCreate?: string | undefined;
6540
+ onDestroy?: string | undefined;
6541
+ })[];
6542
+ id?: string | undefined;
6543
+ align?: "start" | "end" | undefined;
6544
+ onCreate?: string | undefined;
6545
+ onDestroy?: string | undefined;
6546
+ } | {
6547
+ options: {
6548
+ value: string;
6549
+ label: string;
6550
+ }[];
6551
+ type: "Select";
6552
+ onChange: string;
6553
+ value?: string | undefined;
6554
+ id?: string | undefined;
6555
+ onCreate?: string | undefined;
6556
+ onDestroy?: string | undefined;
6557
+ label?: string | undefined;
6558
+ placeholder?: string | undefined;
6559
+ search?: boolean | undefined;
6560
+ })[] | undefined;
6561
+ }>;
6562
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
6563
+ params: {
6564
+ id: string;
6565
+ type?: "Panel" | undefined;
6566
+ items?: ({
6567
+ type: "Text";
6568
+ content: string;
6569
+ id?: string | undefined;
6570
+ onCreate?: string | undefined;
6571
+ onDestroy?: string | undefined;
6572
+ } | {
6573
+ type: "Button";
6574
+ label: string;
6575
+ onClick: string;
6576
+ id?: string | undefined;
6577
+ onCreate?: string | undefined;
6578
+ onDestroy?: string | undefined;
6579
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6580
+ disabled?: boolean | undefined;
6581
+ } | {
6582
+ type: "TextInput";
6583
+ value: string;
6584
+ id?: string | undefined;
6585
+ onCreate?: string | undefined;
6586
+ onDestroy?: string | undefined;
6587
+ label?: string | undefined;
6588
+ placeholder?: string | undefined;
6589
+ onChange?: string | undefined;
6590
+ onBlur?: string | undefined;
6591
+ onFocus?: string | undefined;
6592
+ } | {
6593
+ type: "Divider";
6594
+ id?: string | undefined;
6595
+ onCreate?: string | undefined;
6596
+ onDestroy?: string | undefined;
6597
+ } | {
6598
+ type: "ButtonGroup";
6599
+ items: ({
6600
+ type: "Text";
6601
+ content: string;
6602
+ id?: string | undefined;
6603
+ onCreate?: string | undefined;
6604
+ onDestroy?: string | undefined;
6605
+ } | {
6606
+ type: "Button";
6607
+ label: string;
6608
+ onClick: string;
6609
+ id?: string | undefined;
6610
+ onCreate?: string | undefined;
6611
+ onDestroy?: string | undefined;
6612
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6613
+ disabled?: boolean | undefined;
6614
+ } | {
6615
+ type: "FlexibleSpace";
6616
+ id?: string | undefined;
6617
+ onCreate?: string | undefined;
6618
+ onDestroy?: string | undefined;
6619
+ })[];
6620
+ id?: string | undefined;
6621
+ align?: "start" | "end" | undefined;
6622
+ onCreate?: string | undefined;
6623
+ onDestroy?: string | undefined;
6624
+ } | {
6625
+ options: {
6626
+ value: string;
6627
+ label: string;
6628
+ }[];
6629
+ type: "Select";
6630
+ onChange: string;
6631
+ value?: string | undefined;
6632
+ id?: string | undefined;
6633
+ onCreate?: string | undefined;
6634
+ onDestroy?: string | undefined;
6635
+ label?: string | undefined;
6636
+ placeholder?: string | undefined;
6637
+ search?: boolean | undefined;
6638
+ })[] | undefined;
6639
+ onCreate?: string | undefined;
6640
+ onDestroy?: string | undefined;
6641
+ title?: string | undefined;
6642
+ onClose?: string | undefined;
6643
+ footer?: ({
6644
+ type: "Text";
6645
+ content: string;
6646
+ id?: string | undefined;
6647
+ onCreate?: string | undefined;
6648
+ onDestroy?: string | undefined;
6649
+ } | {
6650
+ type: "Button";
6651
+ label: string;
6652
+ onClick: string;
6653
+ id?: string | undefined;
6654
+ onCreate?: string | undefined;
6655
+ onDestroy?: string | undefined;
6656
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6657
+ disabled?: boolean | undefined;
6658
+ } | {
6659
+ type: "TextInput";
6660
+ value: string;
6661
+ id?: string | undefined;
6662
+ onCreate?: string | undefined;
6663
+ onDestroy?: string | undefined;
6664
+ label?: string | undefined;
6665
+ placeholder?: string | undefined;
6666
+ onChange?: string | undefined;
6667
+ onBlur?: string | undefined;
6668
+ onFocus?: string | undefined;
6669
+ } | {
6670
+ type: "Divider";
6671
+ id?: string | undefined;
6672
+ onCreate?: string | undefined;
6673
+ onDestroy?: string | undefined;
6674
+ } | {
6675
+ type: "ButtonGroup";
6676
+ items: ({
6677
+ type: "Text";
6678
+ content: string;
6679
+ id?: string | undefined;
6680
+ onCreate?: string | undefined;
6681
+ onDestroy?: string | undefined;
6682
+ } | {
6683
+ type: "Button";
6684
+ label: string;
6685
+ onClick: string;
6686
+ id?: string | undefined;
6687
+ onCreate?: string | undefined;
6688
+ onDestroy?: string | undefined;
6689
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6690
+ disabled?: boolean | undefined;
6691
+ } | {
6692
+ type: "FlexibleSpace";
6693
+ id?: string | undefined;
6694
+ onCreate?: string | undefined;
6695
+ onDestroy?: string | undefined;
6696
+ })[];
6697
+ id?: string | undefined;
6698
+ align?: "start" | "end" | undefined;
6699
+ onCreate?: string | undefined;
6700
+ onDestroy?: string | undefined;
6701
+ } | {
6702
+ options: {
6703
+ value: string;
6704
+ label: string;
6705
+ }[];
6706
+ type: "Select";
6707
+ onChange: string;
6708
+ value?: string | undefined;
6709
+ id?: string | undefined;
6710
+ onCreate?: string | undefined;
6711
+ onDestroy?: string | undefined;
6712
+ label?: string | undefined;
6713
+ placeholder?: string | undefined;
6714
+ search?: boolean | undefined;
6715
+ })[] | undefined;
6716
+ };
6717
+ type: "updatePanel";
6718
+ }, {
6719
+ params: {
6720
+ id: string;
6721
+ type?: "Panel" | undefined;
6722
+ items?: ({
6723
+ type: "Text";
6724
+ content: string;
6725
+ id?: string | undefined;
6726
+ onCreate?: string | undefined;
6727
+ onDestroy?: string | undefined;
6728
+ } | {
6729
+ type: "Button";
6730
+ label: string;
6731
+ onClick: string;
6732
+ id?: string | undefined;
6733
+ onCreate?: string | undefined;
6734
+ onDestroy?: string | undefined;
6735
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6736
+ disabled?: boolean | undefined;
6737
+ } | {
6738
+ type: "TextInput";
6739
+ value: string;
6740
+ id?: string | undefined;
6741
+ onCreate?: string | undefined;
6742
+ onDestroy?: string | undefined;
6743
+ label?: string | undefined;
6744
+ placeholder?: string | undefined;
6745
+ onChange?: string | undefined;
6746
+ onBlur?: string | undefined;
6747
+ onFocus?: string | undefined;
6748
+ } | {
6749
+ type: "Divider";
6750
+ id?: string | undefined;
6751
+ onCreate?: string | undefined;
6752
+ onDestroy?: string | undefined;
6753
+ } | {
6754
+ type: "ButtonGroup";
6755
+ items: ({
6756
+ type: "Text";
6757
+ content: string;
6758
+ id?: string | undefined;
6759
+ onCreate?: string | undefined;
6760
+ onDestroy?: string | undefined;
6761
+ } | {
6762
+ type: "Button";
6763
+ label: string;
6764
+ onClick: string;
6765
+ id?: string | undefined;
6766
+ onCreate?: string | undefined;
6767
+ onDestroy?: string | undefined;
6768
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6769
+ disabled?: boolean | undefined;
6770
+ } | {
6771
+ type: "FlexibleSpace";
6772
+ id?: string | undefined;
6773
+ onCreate?: string | undefined;
6774
+ onDestroy?: string | undefined;
6775
+ })[];
6776
+ id?: string | undefined;
6777
+ align?: "start" | "end" | undefined;
6778
+ onCreate?: string | undefined;
6779
+ onDestroy?: string | undefined;
6780
+ } | {
6781
+ options: {
6782
+ value: string;
6783
+ label: string;
6784
+ }[];
6785
+ type: "Select";
6786
+ onChange: string;
6787
+ value?: string | undefined;
6788
+ id?: string | undefined;
6789
+ onCreate?: string | undefined;
6790
+ onDestroy?: string | undefined;
6791
+ label?: string | undefined;
6792
+ placeholder?: string | undefined;
6793
+ search?: boolean | undefined;
6794
+ })[] | undefined;
6795
+ onCreate?: string | undefined;
6796
+ onDestroy?: string | undefined;
6797
+ title?: string | undefined;
6798
+ onClose?: string | undefined;
6799
+ footer?: ({
6800
+ type: "Text";
6801
+ content: string;
6802
+ id?: string | undefined;
6803
+ onCreate?: string | undefined;
6804
+ onDestroy?: string | undefined;
6805
+ } | {
6806
+ type: "Button";
6807
+ label: string;
6808
+ onClick: string;
6809
+ id?: string | undefined;
6810
+ onCreate?: string | undefined;
6811
+ onDestroy?: string | undefined;
6812
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6813
+ disabled?: boolean | undefined;
6814
+ } | {
6815
+ type: "TextInput";
6816
+ value: string;
6817
+ id?: string | undefined;
6818
+ onCreate?: string | undefined;
6819
+ onDestroy?: string | undefined;
6820
+ label?: string | undefined;
6821
+ placeholder?: string | undefined;
6822
+ onChange?: string | undefined;
6823
+ onBlur?: string | undefined;
6824
+ onFocus?: string | undefined;
6825
+ } | {
6826
+ type: "Divider";
6827
+ id?: string | undefined;
6828
+ onCreate?: string | undefined;
6829
+ onDestroy?: string | undefined;
6830
+ } | {
6831
+ type: "ButtonGroup";
6832
+ items: ({
6833
+ type: "Text";
6834
+ content: string;
6835
+ id?: string | undefined;
6836
+ onCreate?: string | undefined;
6837
+ onDestroy?: string | undefined;
6838
+ } | {
6839
+ type: "Button";
6840
+ label: string;
6841
+ onClick: string;
6842
+ id?: string | undefined;
6843
+ onCreate?: string | undefined;
6844
+ onDestroy?: string | undefined;
6845
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6846
+ disabled?: boolean | undefined;
6847
+ } | {
6848
+ type: "FlexibleSpace";
6849
+ id?: string | undefined;
6850
+ onCreate?: string | undefined;
6851
+ onDestroy?: string | undefined;
6852
+ })[];
6853
+ id?: string | undefined;
6854
+ align?: "start" | "end" | undefined;
6855
+ onCreate?: string | undefined;
6856
+ onDestroy?: string | undefined;
6857
+ } | {
6858
+ options: {
6859
+ value: string;
6860
+ label: string;
6861
+ }[];
6862
+ type: "Select";
6863
+ onChange: string;
6864
+ value?: string | undefined;
6865
+ id?: string | undefined;
6866
+ onCreate?: string | undefined;
6867
+ onDestroy?: string | undefined;
6868
+ label?: string | undefined;
6869
+ placeholder?: string | undefined;
6870
+ search?: boolean | undefined;
6871
+ })[] | undefined;
6872
+ };
6873
+ type: "updatePanel";
6874
+ }>;
6875
+ declare const DeletePanelMessage: z.ZodObject<{
6876
+ type: z.ZodLiteral<"deletePanel">;
6877
+ params: z.ZodString;
6878
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
6879
+ params: string;
6880
+ type: "deletePanel";
6881
+ }, {
6882
+ params: string;
6883
+ type: "deletePanel";
6884
+ }>;
6885
+ declare const AddPanelElementsMessage: z.ZodObject<{
6886
+ type: z.ZodLiteral<"addPanelElements">;
6887
+ params: z.ZodObject<{
6888
+ panelId: z.ZodString;
6889
+ elements: z.ZodArray<z.ZodObject<{
6890
+ element: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
6891
+ onCreate: z.ZodOptional<z.ZodString>;
6892
+ onDestroy: z.ZodOptional<z.ZodString>;
6893
+ }, {
6894
+ id: z.ZodOptional<z.ZodString>;
6895
+ }>, {
6896
+ type: z.ZodLiteral<"Text">;
6897
+ content: z.ZodString;
6898
+ }>, "strip", z.ZodTypeAny, {
6899
+ type: "Text";
6900
+ content: string;
6901
+ id?: string | undefined;
6902
+ onCreate?: string | undefined;
6903
+ onDestroy?: string | undefined;
6904
+ }, {
6905
+ type: "Text";
6906
+ content: string;
6907
+ id?: string | undefined;
6908
+ onCreate?: string | undefined;
6909
+ onDestroy?: string | undefined;
6910
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
6911
+ onCreate: z.ZodOptional<z.ZodString>;
6912
+ onDestroy: z.ZodOptional<z.ZodString>;
6913
+ }, {
6914
+ id: z.ZodOptional<z.ZodString>;
6915
+ }>, {
6916
+ type: z.ZodLiteral<"Button">;
6917
+ label: z.ZodString;
6918
+ variant: z.ZodOptional<z.ZodEnum<["primary", "outlined", "transparent", "transparentThin"]>>;
6919
+ disabled: z.ZodOptional<z.ZodBoolean>;
6920
+ }>, {
6921
+ onClick: z.ZodString;
6922
+ }>, "strip", z.ZodTypeAny, {
6923
+ type: "Button";
6924
+ label: string;
6925
+ onClick: string;
6926
+ id?: string | undefined;
6927
+ onCreate?: string | undefined;
6928
+ onDestroy?: string | undefined;
6929
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6930
+ disabled?: boolean | undefined;
6931
+ }, {
6932
+ type: "Button";
6933
+ label: string;
6934
+ onClick: string;
6935
+ id?: string | undefined;
6936
+ onCreate?: string | undefined;
6937
+ onDestroy?: string | undefined;
6938
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
6939
+ disabled?: boolean | undefined;
6940
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
6941
+ onCreate: z.ZodOptional<z.ZodString>;
6942
+ onDestroy: z.ZodOptional<z.ZodString>;
6943
+ }, {
6944
+ id: z.ZodOptional<z.ZodString>;
6945
+ }>, {
6946
+ label: z.ZodOptional<z.ZodString>;
6947
+ }>, {
6948
+ type: z.ZodLiteral<"TextInput">;
6949
+ value: z.ZodString;
6950
+ placeholder: z.ZodOptional<z.ZodString>;
6951
+ }>, {
6952
+ onChange: z.ZodOptional<z.ZodString>;
6953
+ onBlur: z.ZodOptional<z.ZodString>;
6954
+ onFocus: z.ZodOptional<z.ZodString>;
6955
+ }>, "strip", z.ZodTypeAny, {
6956
+ type: "TextInput";
6957
+ value: string;
6958
+ id?: string | undefined;
6959
+ onCreate?: string | undefined;
6960
+ onDestroy?: string | undefined;
6961
+ label?: string | undefined;
6962
+ placeholder?: string | undefined;
6963
+ onChange?: string | undefined;
6964
+ onBlur?: string | undefined;
6965
+ onFocus?: string | undefined;
6966
+ }, {
6967
+ type: "TextInput";
6968
+ value: string;
6969
+ id?: string | undefined;
6970
+ onCreate?: string | undefined;
6971
+ onDestroy?: string | undefined;
6972
+ label?: string | undefined;
6973
+ placeholder?: string | undefined;
6974
+ onChange?: string | undefined;
6975
+ onBlur?: string | undefined;
6976
+ onFocus?: string | undefined;
6977
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
6978
+ onCreate: z.ZodOptional<z.ZodString>;
6979
+ onDestroy: z.ZodOptional<z.ZodString>;
6980
+ }, {
6981
+ id: z.ZodOptional<z.ZodString>;
6982
+ }>, {
6983
+ type: z.ZodLiteral<"Divider">;
6984
+ }>, "strip", z.ZodTypeAny, {
6985
+ type: "Divider";
6986
+ id?: string | undefined;
6987
+ onCreate?: string | undefined;
6988
+ onDestroy?: string | undefined;
6989
+ }, {
6990
+ type: "Divider";
6991
+ id?: string | undefined;
6992
+ onCreate?: string | undefined;
6993
+ onDestroy?: string | undefined;
6994
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
6995
+ onCreate: z.ZodOptional<z.ZodString>;
6996
+ onDestroy: z.ZodOptional<z.ZodString>;
6997
+ }, {
6998
+ id: z.ZodOptional<z.ZodString>;
6999
+ }>, {
7000
+ type: z.ZodLiteral<"ButtonGroup">;
7001
+ align: z.ZodOptional<z.ZodEnum<["start", "end"]>>;
7002
+ }>, {
7003
+ items: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
7004
+ onCreate: z.ZodOptional<z.ZodString>;
7005
+ onDestroy: z.ZodOptional<z.ZodString>;
7006
+ }, {
7007
+ id: z.ZodOptional<z.ZodString>;
7008
+ }>, {
7009
+ type: z.ZodLiteral<"Button">;
7010
+ label: z.ZodString;
7011
+ variant: z.ZodOptional<z.ZodEnum<["primary", "outlined", "transparent", "transparentThin"]>>;
7012
+ disabled: z.ZodOptional<z.ZodBoolean>;
7013
+ }>, {
7014
+ onClick: z.ZodString;
7015
+ }>, "strip", z.ZodTypeAny, {
7016
+ type: "Button";
7017
+ label: string;
7018
+ onClick: string;
7019
+ id?: string | undefined;
7020
+ onCreate?: string | undefined;
7021
+ onDestroy?: string | undefined;
7022
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7023
+ disabled?: boolean | undefined;
7024
+ }, {
7025
+ type: "Button";
7026
+ label: string;
7027
+ onClick: string;
7028
+ id?: string | undefined;
7029
+ onCreate?: string | undefined;
7030
+ onDestroy?: string | undefined;
7031
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7032
+ disabled?: boolean | undefined;
7033
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
7034
+ onCreate: z.ZodOptional<z.ZodString>;
7035
+ onDestroy: z.ZodOptional<z.ZodString>;
7036
+ }, {
7037
+ id: z.ZodOptional<z.ZodString>;
7038
+ }>, {
7039
+ type: z.ZodLiteral<"Text">;
7040
+ content: z.ZodString;
7041
+ }>, "strip", z.ZodTypeAny, {
7042
+ type: "Text";
7043
+ content: string;
7044
+ id?: string | undefined;
7045
+ onCreate?: string | undefined;
7046
+ onDestroy?: string | undefined;
7047
+ }, {
7048
+ type: "Text";
7049
+ content: string;
7050
+ id?: string | undefined;
7051
+ onCreate?: string | undefined;
7052
+ onDestroy?: string | undefined;
7053
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
7054
+ onCreate: z.ZodOptional<z.ZodString>;
7055
+ onDestroy: z.ZodOptional<z.ZodString>;
7056
+ }, {
7057
+ id: z.ZodOptional<z.ZodString>;
7058
+ }>, {
7059
+ type: z.ZodLiteral<"FlexibleSpace">;
7060
+ }>, "strip", z.ZodTypeAny, {
7061
+ type: "FlexibleSpace";
7062
+ id?: string | undefined;
7063
+ onCreate?: string | undefined;
7064
+ onDestroy?: string | undefined;
7065
+ }, {
7066
+ type: "FlexibleSpace";
7067
+ id?: string | undefined;
7068
+ onCreate?: string | undefined;
7069
+ onDestroy?: string | undefined;
7070
+ }>]>, "many">;
7071
+ }>, "strip", z.ZodTypeAny, {
7072
+ type: "ButtonGroup";
7073
+ items: ({
7074
+ type: "Text";
7075
+ content: string;
7076
+ id?: string | undefined;
7077
+ onCreate?: string | undefined;
7078
+ onDestroy?: string | undefined;
7079
+ } | {
7080
+ type: "Button";
7081
+ label: string;
7082
+ onClick: string;
7083
+ id?: string | undefined;
7084
+ onCreate?: string | undefined;
7085
+ onDestroy?: string | undefined;
7086
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7087
+ disabled?: boolean | undefined;
7088
+ } | {
7089
+ type: "FlexibleSpace";
7090
+ id?: string | undefined;
7091
+ onCreate?: string | undefined;
7092
+ onDestroy?: string | undefined;
7093
+ })[];
7094
+ id?: string | undefined;
7095
+ align?: "start" | "end" | undefined;
7096
+ onCreate?: string | undefined;
7097
+ onDestroy?: string | undefined;
7098
+ }, {
7099
+ type: "ButtonGroup";
7100
+ items: ({
7101
+ type: "Text";
7102
+ content: string;
7103
+ id?: string | undefined;
7104
+ onCreate?: string | undefined;
7105
+ onDestroy?: string | undefined;
7106
+ } | {
7107
+ type: "Button";
7108
+ label: string;
7109
+ onClick: string;
7110
+ id?: string | undefined;
7111
+ onCreate?: string | undefined;
7112
+ onDestroy?: string | undefined;
7113
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7114
+ disabled?: boolean | undefined;
7115
+ } | {
7116
+ type: "FlexibleSpace";
7117
+ id?: string | undefined;
7118
+ onCreate?: string | undefined;
7119
+ onDestroy?: string | undefined;
7120
+ })[];
7121
+ id?: string | undefined;
7122
+ align?: "start" | "end" | undefined;
7123
+ onCreate?: string | undefined;
7124
+ onDestroy?: string | undefined;
7125
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
7126
+ onCreate: z.ZodOptional<z.ZodString>;
7127
+ onDestroy: z.ZodOptional<z.ZodString>;
7128
+ }, {
7129
+ id: z.ZodOptional<z.ZodString>;
7130
+ }>, {
7131
+ label: z.ZodOptional<z.ZodString>;
7132
+ }>, {
7133
+ type: z.ZodLiteral<"Select">;
7134
+ options: z.ZodArray<z.ZodObject<{
7135
+ label: z.ZodString;
7136
+ value: z.ZodString;
7137
+ }, "strip", z.ZodTypeAny, {
7138
+ value: string;
7139
+ label: string;
7140
+ }, {
7141
+ value: string;
7142
+ label: string;
7143
+ }>, "many">;
7144
+ value: z.ZodOptional<z.ZodString>;
7145
+ search: z.ZodOptional<z.ZodBoolean>;
7146
+ placeholder: z.ZodOptional<z.ZodString>;
7147
+ }>, {
7148
+ onChange: z.ZodString;
7149
+ }>, "strip", z.ZodTypeAny, {
7150
+ options: {
7151
+ value: string;
7152
+ label: string;
7153
+ }[];
7154
+ type: "Select";
7155
+ onChange: string;
7156
+ value?: string | undefined;
7157
+ id?: string | undefined;
7158
+ onCreate?: string | undefined;
7159
+ onDestroy?: string | undefined;
7160
+ label?: string | undefined;
7161
+ placeholder?: string | undefined;
7162
+ search?: boolean | undefined;
7163
+ }, {
7164
+ options: {
7165
+ value: string;
7166
+ label: string;
7167
+ }[];
7168
+ type: "Select";
7169
+ onChange: string;
7170
+ value?: string | undefined;
7171
+ id?: string | undefined;
7172
+ onCreate?: string | undefined;
7173
+ onDestroy?: string | undefined;
7174
+ label?: string | undefined;
7175
+ placeholder?: string | undefined;
7176
+ search?: boolean | undefined;
7177
+ }>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
7178
+ onCreate: z.ZodOptional<z.ZodString>;
7179
+ onDestroy: z.ZodOptional<z.ZodString>;
7180
+ }, {
7181
+ id: z.ZodOptional<z.ZodString>;
7182
+ }>, {
7183
+ type: z.ZodLiteral<"FlexibleSpace">;
7184
+ }>, "strip", z.ZodTypeAny, {
7185
+ type: "FlexibleSpace";
7186
+ id?: string | undefined;
7187
+ onCreate?: string | undefined;
7188
+ onDestroy?: string | undefined;
7189
+ }, {
7190
+ type: "FlexibleSpace";
7191
+ id?: string | undefined;
7192
+ onCreate?: string | undefined;
7193
+ onDestroy?: string | undefined;
7194
+ }>]>;
7195
+ on: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"items">, z.ZodLiteral<"footer">, z.ZodObject<{
7196
+ id: z.ZodString;
7197
+ }, "strip", z.ZodTypeAny, {
7198
+ id: string;
7199
+ }, {
7200
+ id: string;
7201
+ }>]>>;
7202
+ placement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
7203
+ after: z.ZodString;
7204
+ }, "strip", z.ZodTypeAny, {
7205
+ after: string;
7206
+ }, {
7207
+ after: string;
7208
+ }>, z.ZodObject<{
7209
+ before: z.ZodString;
7210
+ }, "strip", z.ZodTypeAny, {
7211
+ before: string;
7212
+ }, {
7213
+ before: string;
7214
+ }>, z.ZodObject<{
7215
+ at: z.ZodEnum<["start", "end"]>;
7216
+ }, "strip", z.ZodTypeAny, {
7217
+ at: "start" | "end";
7218
+ }, {
7219
+ at: "start" | "end";
7220
+ }>]>>;
7221
+ }, "strip", z.ZodTypeAny, {
7222
+ element: {
7223
+ type: "Text";
7224
+ content: string;
7225
+ id?: string | undefined;
7226
+ onCreate?: string | undefined;
7227
+ onDestroy?: string | undefined;
7228
+ } | {
7229
+ type: "Button";
7230
+ label: string;
7231
+ onClick: string;
7232
+ id?: string | undefined;
7233
+ onCreate?: string | undefined;
7234
+ onDestroy?: string | undefined;
7235
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7236
+ disabled?: boolean | undefined;
7237
+ } | {
7238
+ type: "TextInput";
7239
+ value: string;
7240
+ id?: string | undefined;
7241
+ onCreate?: string | undefined;
7242
+ onDestroy?: string | undefined;
7243
+ label?: string | undefined;
7244
+ placeholder?: string | undefined;
7245
+ onChange?: string | undefined;
7246
+ onBlur?: string | undefined;
7247
+ onFocus?: string | undefined;
7248
+ } | {
7249
+ type: "Divider";
7250
+ id?: string | undefined;
7251
+ onCreate?: string | undefined;
7252
+ onDestroy?: string | undefined;
7253
+ } | {
7254
+ type: "FlexibleSpace";
7255
+ id?: string | undefined;
7256
+ onCreate?: string | undefined;
7257
+ onDestroy?: string | undefined;
7258
+ } | {
7259
+ type: "ButtonGroup";
7260
+ items: ({
7261
+ type: "Text";
7262
+ content: string;
7263
+ id?: string | undefined;
7264
+ onCreate?: string | undefined;
7265
+ onDestroy?: string | undefined;
7266
+ } | {
7267
+ type: "Button";
7268
+ label: string;
7269
+ onClick: string;
7270
+ id?: string | undefined;
7271
+ onCreate?: string | undefined;
7272
+ onDestroy?: string | undefined;
7273
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7274
+ disabled?: boolean | undefined;
7275
+ } | {
7276
+ type: "FlexibleSpace";
7277
+ id?: string | undefined;
7278
+ onCreate?: string | undefined;
7279
+ onDestroy?: string | undefined;
7280
+ })[];
7281
+ id?: string | undefined;
7282
+ align?: "start" | "end" | undefined;
7283
+ onCreate?: string | undefined;
7284
+ onDestroy?: string | undefined;
7285
+ } | {
7286
+ options: {
7287
+ value: string;
7288
+ label: string;
7289
+ }[];
7290
+ type: "Select";
7291
+ onChange: string;
7292
+ value?: string | undefined;
7293
+ id?: string | undefined;
7294
+ onCreate?: string | undefined;
7295
+ onDestroy?: string | undefined;
7296
+ label?: string | undefined;
7297
+ placeholder?: string | undefined;
7298
+ search?: boolean | undefined;
7299
+ };
7300
+ placement?: {
7301
+ after: string;
7302
+ } | {
7303
+ before: string;
7304
+ } | {
7305
+ at: "start" | "end";
7306
+ } | undefined;
7307
+ on?: "items" | "footer" | {
7308
+ id: string;
7309
+ } | undefined;
7310
+ }, {
7311
+ element: {
7312
+ type: "Text";
7313
+ content: string;
7314
+ id?: string | undefined;
7315
+ onCreate?: string | undefined;
7316
+ onDestroy?: string | undefined;
7317
+ } | {
7318
+ type: "Button";
7319
+ label: string;
7320
+ onClick: string;
7321
+ id?: string | undefined;
7322
+ onCreate?: string | undefined;
7323
+ onDestroy?: string | undefined;
7324
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7325
+ disabled?: boolean | undefined;
7326
+ } | {
7327
+ type: "TextInput";
7328
+ value: string;
7329
+ id?: string | undefined;
7330
+ onCreate?: string | undefined;
7331
+ onDestroy?: string | undefined;
7332
+ label?: string | undefined;
7333
+ placeholder?: string | undefined;
7334
+ onChange?: string | undefined;
7335
+ onBlur?: string | undefined;
7336
+ onFocus?: string | undefined;
7337
+ } | {
7338
+ type: "Divider";
7339
+ id?: string | undefined;
7340
+ onCreate?: string | undefined;
7341
+ onDestroy?: string | undefined;
7342
+ } | {
7343
+ type: "FlexibleSpace";
7344
+ id?: string | undefined;
7345
+ onCreate?: string | undefined;
7346
+ onDestroy?: string | undefined;
7347
+ } | {
7348
+ type: "ButtonGroup";
7349
+ items: ({
7350
+ type: "Text";
7351
+ content: string;
7352
+ id?: string | undefined;
7353
+ onCreate?: string | undefined;
7354
+ onDestroy?: string | undefined;
7355
+ } | {
7356
+ type: "Button";
7357
+ label: string;
7358
+ onClick: string;
7359
+ id?: string | undefined;
7360
+ onCreate?: string | undefined;
7361
+ onDestroy?: string | undefined;
7362
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7363
+ disabled?: boolean | undefined;
7364
+ } | {
7365
+ type: "FlexibleSpace";
7366
+ id?: string | undefined;
7367
+ onCreate?: string | undefined;
7368
+ onDestroy?: string | undefined;
7369
+ })[];
7370
+ id?: string | undefined;
7371
+ align?: "start" | "end" | undefined;
7372
+ onCreate?: string | undefined;
7373
+ onDestroy?: string | undefined;
7374
+ } | {
7375
+ options: {
7376
+ value: string;
7377
+ label: string;
7378
+ }[];
7379
+ type: "Select";
7380
+ onChange: string;
7381
+ value?: string | undefined;
7382
+ id?: string | undefined;
7383
+ onCreate?: string | undefined;
7384
+ onDestroy?: string | undefined;
7385
+ label?: string | undefined;
7386
+ placeholder?: string | undefined;
7387
+ search?: boolean | undefined;
7388
+ };
7389
+ placement?: {
7390
+ after: string;
7391
+ } | {
7392
+ before: string;
7393
+ } | {
7394
+ at: "start" | "end";
7395
+ } | undefined;
7396
+ on?: "items" | "footer" | {
7397
+ id: string;
7398
+ } | undefined;
7399
+ }>, "many">;
7400
+ }, "strip", z.ZodTypeAny, {
7401
+ panelId: string;
7402
+ elements: {
7403
+ element: {
7404
+ type: "Text";
7405
+ content: string;
7406
+ id?: string | undefined;
7407
+ onCreate?: string | undefined;
7408
+ onDestroy?: string | undefined;
7409
+ } | {
7410
+ type: "Button";
7411
+ label: string;
7412
+ onClick: string;
7413
+ id?: string | undefined;
7414
+ onCreate?: string | undefined;
7415
+ onDestroy?: string | undefined;
7416
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7417
+ disabled?: boolean | undefined;
7418
+ } | {
7419
+ type: "TextInput";
7420
+ value: string;
7421
+ id?: string | undefined;
7422
+ onCreate?: string | undefined;
7423
+ onDestroy?: string | undefined;
7424
+ label?: string | undefined;
7425
+ placeholder?: string | undefined;
7426
+ onChange?: string | undefined;
7427
+ onBlur?: string | undefined;
7428
+ onFocus?: string | undefined;
7429
+ } | {
7430
+ type: "Divider";
7431
+ id?: string | undefined;
7432
+ onCreate?: string | undefined;
7433
+ onDestroy?: string | undefined;
7434
+ } | {
7435
+ type: "FlexibleSpace";
7436
+ id?: string | undefined;
7437
+ onCreate?: string | undefined;
7438
+ onDestroy?: string | undefined;
7439
+ } | {
7440
+ type: "ButtonGroup";
7441
+ items: ({
7442
+ type: "Text";
7443
+ content: string;
7444
+ id?: string | undefined;
7445
+ onCreate?: string | undefined;
7446
+ onDestroy?: string | undefined;
7447
+ } | {
7448
+ type: "Button";
7449
+ label: string;
7450
+ onClick: string;
7451
+ id?: string | undefined;
7452
+ onCreate?: string | undefined;
7453
+ onDestroy?: string | undefined;
7454
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7455
+ disabled?: boolean | undefined;
7456
+ } | {
7457
+ type: "FlexibleSpace";
7458
+ id?: string | undefined;
7459
+ onCreate?: string | undefined;
7460
+ onDestroy?: string | undefined;
7461
+ })[];
7462
+ id?: string | undefined;
7463
+ align?: "start" | "end" | undefined;
7464
+ onCreate?: string | undefined;
7465
+ onDestroy?: string | undefined;
7466
+ } | {
7467
+ options: {
7468
+ value: string;
7469
+ label: string;
7470
+ }[];
7471
+ type: "Select";
7472
+ onChange: string;
7473
+ value?: string | undefined;
7474
+ id?: string | undefined;
7475
+ onCreate?: string | undefined;
7476
+ onDestroy?: string | undefined;
7477
+ label?: string | undefined;
7478
+ placeholder?: string | undefined;
7479
+ search?: boolean | undefined;
7480
+ };
7481
+ placement?: {
7482
+ after: string;
7483
+ } | {
7484
+ before: string;
7485
+ } | {
7486
+ at: "start" | "end";
7487
+ } | undefined;
7488
+ on?: "items" | "footer" | {
7489
+ id: string;
7490
+ } | undefined;
7491
+ }[];
7492
+ }, {
7493
+ panelId: string;
7494
+ elements: {
7495
+ element: {
7496
+ type: "Text";
7497
+ content: string;
7498
+ id?: string | undefined;
7499
+ onCreate?: string | undefined;
7500
+ onDestroy?: string | undefined;
7501
+ } | {
7502
+ type: "Button";
7503
+ label: string;
7504
+ onClick: string;
7505
+ id?: string | undefined;
7506
+ onCreate?: string | undefined;
7507
+ onDestroy?: string | undefined;
7508
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7509
+ disabled?: boolean | undefined;
7510
+ } | {
7511
+ type: "TextInput";
7512
+ value: string;
7513
+ id?: string | undefined;
7514
+ onCreate?: string | undefined;
7515
+ onDestroy?: string | undefined;
7516
+ label?: string | undefined;
7517
+ placeholder?: string | undefined;
7518
+ onChange?: string | undefined;
7519
+ onBlur?: string | undefined;
7520
+ onFocus?: string | undefined;
7521
+ } | {
7522
+ type: "Divider";
7523
+ id?: string | undefined;
7524
+ onCreate?: string | undefined;
7525
+ onDestroy?: string | undefined;
7526
+ } | {
7527
+ type: "FlexibleSpace";
7528
+ id?: string | undefined;
7529
+ onCreate?: string | undefined;
7530
+ onDestroy?: string | undefined;
7531
+ } | {
7532
+ type: "ButtonGroup";
7533
+ items: ({
7534
+ type: "Text";
7535
+ content: string;
7536
+ id?: string | undefined;
7537
+ onCreate?: string | undefined;
7538
+ onDestroy?: string | undefined;
7539
+ } | {
7540
+ type: "Button";
7541
+ label: string;
7542
+ onClick: string;
7543
+ id?: string | undefined;
7544
+ onCreate?: string | undefined;
7545
+ onDestroy?: string | undefined;
7546
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7547
+ disabled?: boolean | undefined;
7548
+ } | {
7549
+ type: "FlexibleSpace";
7550
+ id?: string | undefined;
7551
+ onCreate?: string | undefined;
7552
+ onDestroy?: string | undefined;
7553
+ })[];
7554
+ id?: string | undefined;
7555
+ align?: "start" | "end" | undefined;
7556
+ onCreate?: string | undefined;
7557
+ onDestroy?: string | undefined;
7558
+ } | {
7559
+ options: {
7560
+ value: string;
7561
+ label: string;
7562
+ }[];
7563
+ type: "Select";
7564
+ onChange: string;
7565
+ value?: string | undefined;
7566
+ id?: string | undefined;
7567
+ onCreate?: string | undefined;
7568
+ onDestroy?: string | undefined;
7569
+ label?: string | undefined;
7570
+ placeholder?: string | undefined;
7571
+ search?: boolean | undefined;
7572
+ };
7573
+ placement?: {
7574
+ after: string;
7575
+ } | {
7576
+ before: string;
7577
+ } | {
7578
+ at: "start" | "end";
7579
+ } | undefined;
7580
+ on?: "items" | "footer" | {
7581
+ id: string;
7582
+ } | undefined;
7583
+ }[];
7584
+ }>;
7585
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
7586
+ params: {
7587
+ panelId: string;
7588
+ elements: {
7589
+ element: {
7590
+ type: "Text";
7591
+ content: string;
7592
+ id?: string | undefined;
7593
+ onCreate?: string | undefined;
7594
+ onDestroy?: string | undefined;
7595
+ } | {
7596
+ type: "Button";
7597
+ label: string;
7598
+ onClick: string;
7599
+ id?: string | undefined;
7600
+ onCreate?: string | undefined;
7601
+ onDestroy?: string | undefined;
7602
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7603
+ disabled?: boolean | undefined;
7604
+ } | {
7605
+ type: "TextInput";
7606
+ value: string;
7607
+ id?: string | undefined;
7608
+ onCreate?: string | undefined;
7609
+ onDestroy?: string | undefined;
7610
+ label?: string | undefined;
7611
+ placeholder?: string | undefined;
7612
+ onChange?: string | undefined;
7613
+ onBlur?: string | undefined;
7614
+ onFocus?: string | undefined;
7615
+ } | {
7616
+ type: "Divider";
7617
+ id?: string | undefined;
7618
+ onCreate?: string | undefined;
7619
+ onDestroy?: string | undefined;
7620
+ } | {
7621
+ type: "FlexibleSpace";
7622
+ id?: string | undefined;
7623
+ onCreate?: string | undefined;
7624
+ onDestroy?: string | undefined;
7625
+ } | {
7626
+ type: "ButtonGroup";
7627
+ items: ({
7628
+ type: "Text";
7629
+ content: string;
7630
+ id?: string | undefined;
7631
+ onCreate?: string | undefined;
7632
+ onDestroy?: string | undefined;
7633
+ } | {
7634
+ type: "Button";
7635
+ label: string;
7636
+ onClick: string;
7637
+ id?: string | undefined;
7638
+ onCreate?: string | undefined;
7639
+ onDestroy?: string | undefined;
7640
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7641
+ disabled?: boolean | undefined;
7642
+ } | {
7643
+ type: "FlexibleSpace";
7644
+ id?: string | undefined;
7645
+ onCreate?: string | undefined;
7646
+ onDestroy?: string | undefined;
7647
+ })[];
7648
+ id?: string | undefined;
7649
+ align?: "start" | "end" | undefined;
7650
+ onCreate?: string | undefined;
7651
+ onDestroy?: string | undefined;
7652
+ } | {
7653
+ options: {
7654
+ value: string;
7655
+ label: string;
7656
+ }[];
7657
+ type: "Select";
7658
+ onChange: string;
7659
+ value?: string | undefined;
7660
+ id?: string | undefined;
7661
+ onCreate?: string | undefined;
7662
+ onDestroy?: string | undefined;
7663
+ label?: string | undefined;
7664
+ placeholder?: string | undefined;
7665
+ search?: boolean | undefined;
7666
+ };
7667
+ placement?: {
7668
+ after: string;
7669
+ } | {
7670
+ before: string;
7671
+ } | {
7672
+ at: "start" | "end";
7673
+ } | undefined;
7674
+ on?: "items" | "footer" | {
7675
+ id: string;
7676
+ } | undefined;
7677
+ }[];
7678
+ };
7679
+ type: "addPanelElements";
7680
+ }, {
7681
+ params: {
7682
+ panelId: string;
7683
+ elements: {
7684
+ element: {
7685
+ type: "Text";
7686
+ content: string;
7687
+ id?: string | undefined;
7688
+ onCreate?: string | undefined;
7689
+ onDestroy?: string | undefined;
7690
+ } | {
7691
+ type: "Button";
7692
+ label: string;
7693
+ onClick: string;
7694
+ id?: string | undefined;
7695
+ onCreate?: string | undefined;
7696
+ onDestroy?: string | undefined;
7697
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7698
+ disabled?: boolean | undefined;
7699
+ } | {
7700
+ type: "TextInput";
7701
+ value: string;
7702
+ id?: string | undefined;
7703
+ onCreate?: string | undefined;
7704
+ onDestroy?: string | undefined;
7705
+ label?: string | undefined;
7706
+ placeholder?: string | undefined;
7707
+ onChange?: string | undefined;
7708
+ onBlur?: string | undefined;
7709
+ onFocus?: string | undefined;
7710
+ } | {
7711
+ type: "Divider";
7712
+ id?: string | undefined;
7713
+ onCreate?: string | undefined;
7714
+ onDestroy?: string | undefined;
7715
+ } | {
7716
+ type: "FlexibleSpace";
7717
+ id?: string | undefined;
7718
+ onCreate?: string | undefined;
7719
+ onDestroy?: string | undefined;
7720
+ } | {
7721
+ type: "ButtonGroup";
7722
+ items: ({
7723
+ type: "Text";
7724
+ content: string;
7725
+ id?: string | undefined;
7726
+ onCreate?: string | undefined;
7727
+ onDestroy?: string | undefined;
7728
+ } | {
7729
+ type: "Button";
7730
+ label: string;
7731
+ onClick: string;
7732
+ id?: string | undefined;
7733
+ onCreate?: string | undefined;
7734
+ onDestroy?: string | undefined;
7735
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7736
+ disabled?: boolean | undefined;
7737
+ } | {
7738
+ type: "FlexibleSpace";
7739
+ id?: string | undefined;
7740
+ onCreate?: string | undefined;
7741
+ onDestroy?: string | undefined;
7742
+ })[];
7743
+ id?: string | undefined;
7744
+ align?: "start" | "end" | undefined;
7745
+ onCreate?: string | undefined;
7746
+ onDestroy?: string | undefined;
7747
+ } | {
7748
+ options: {
7749
+ value: string;
7750
+ label: string;
7751
+ }[];
7752
+ type: "Select";
7753
+ onChange: string;
7754
+ value?: string | undefined;
7755
+ id?: string | undefined;
7756
+ onCreate?: string | undefined;
7757
+ onDestroy?: string | undefined;
7758
+ label?: string | undefined;
7759
+ placeholder?: string | undefined;
7760
+ search?: boolean | undefined;
7761
+ };
7762
+ placement?: {
7763
+ after: string;
7764
+ } | {
7765
+ before: string;
7766
+ } | {
7767
+ at: "start" | "end";
7768
+ } | undefined;
7769
+ on?: "items" | "footer" | {
7770
+ id: string;
7771
+ } | undefined;
7772
+ }[];
7773
+ };
7774
+ type: "addPanelElements";
7775
+ }>;
7776
+ declare const UpdatePanelElementsMessage: z.ZodObject<{
7777
+ type: z.ZodLiteral<"updatePanelElements">;
7778
+ params: z.ZodObject<{
7779
+ panelId: z.ZodString;
7780
+ elements: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7781
+ type: z.ZodLiteral<"Text">;
7782
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7783
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7784
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7785
+ content: z.ZodOptional<z.ZodString>;
7786
+ }, "strip", z.ZodTypeAny, {
7787
+ type: "Text";
7788
+ id?: string | undefined;
7789
+ onCreate?: string | undefined;
7790
+ onDestroy?: string | undefined;
7791
+ content?: string | undefined;
7792
+ }, {
7793
+ type: "Text";
7794
+ id?: string | undefined;
7795
+ onCreate?: string | undefined;
7796
+ onDestroy?: string | undefined;
7797
+ content?: string | undefined;
7798
+ }>, z.ZodObject<{
7799
+ type: z.ZodLiteral<"Button">;
7800
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7801
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7802
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7803
+ label: z.ZodOptional<z.ZodString>;
7804
+ variant: z.ZodOptional<z.ZodOptional<z.ZodEnum<["primary", "outlined", "transparent", "transparentThin"]>>>;
7805
+ disabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
7806
+ onClick: z.ZodOptional<z.ZodString>;
7807
+ }, "strip", z.ZodTypeAny, {
7808
+ type: "Button";
7809
+ id?: string | undefined;
7810
+ onCreate?: string | undefined;
7811
+ onDestroy?: string | undefined;
7812
+ label?: string | undefined;
7813
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7814
+ disabled?: boolean | undefined;
7815
+ onClick?: string | undefined;
7816
+ }, {
7817
+ type: "Button";
7818
+ id?: string | undefined;
7819
+ onCreate?: string | undefined;
7820
+ onDestroy?: string | undefined;
7821
+ label?: string | undefined;
7822
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7823
+ disabled?: boolean | undefined;
7824
+ onClick?: string | undefined;
7825
+ }>, z.ZodObject<{
7826
+ type: z.ZodLiteral<"TextInput">;
7827
+ value: z.ZodOptional<z.ZodString>;
7828
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7829
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7830
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7831
+ label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7832
+ placeholder: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7833
+ onChange: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7834
+ onBlur: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7835
+ onFocus: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7836
+ }, "strip", z.ZodTypeAny, {
7837
+ type: "TextInput";
7838
+ value?: string | undefined;
7839
+ id?: string | undefined;
7840
+ onCreate?: string | undefined;
7841
+ onDestroy?: string | undefined;
7842
+ label?: string | undefined;
7843
+ placeholder?: string | undefined;
7844
+ onChange?: string | undefined;
7845
+ onBlur?: string | undefined;
7846
+ onFocus?: string | undefined;
7847
+ }, {
7848
+ type: "TextInput";
7849
+ value?: string | undefined;
7850
+ id?: string | undefined;
7851
+ onCreate?: string | undefined;
7852
+ onDestroy?: string | undefined;
7853
+ label?: string | undefined;
7854
+ placeholder?: string | undefined;
7855
+ onChange?: string | undefined;
7856
+ onBlur?: string | undefined;
7857
+ onFocus?: string | undefined;
7858
+ }>, z.ZodObject<{
7859
+ type: z.ZodLiteral<"Divider">;
7860
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7861
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7862
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7863
+ }, "strip", z.ZodTypeAny, {
7864
+ type: "Divider";
7865
+ id?: string | undefined;
7866
+ onCreate?: string | undefined;
7867
+ onDestroy?: string | undefined;
7868
+ }, {
7869
+ type: "Divider";
7870
+ id?: string | undefined;
7871
+ onCreate?: string | undefined;
7872
+ onDestroy?: string | undefined;
7873
+ }>, z.ZodObject<{
7874
+ type: z.ZodLiteral<"ButtonGroup">;
7875
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7876
+ align: z.ZodOptional<z.ZodOptional<z.ZodEnum<["start", "end"]>>>;
7877
+ items: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
7878
+ onCreate: z.ZodOptional<z.ZodString>;
7879
+ onDestroy: z.ZodOptional<z.ZodString>;
7880
+ }, {
7881
+ id: z.ZodOptional<z.ZodString>;
7882
+ }>, {
7883
+ type: z.ZodLiteral<"Button">;
7884
+ label: z.ZodString;
7885
+ variant: z.ZodOptional<z.ZodEnum<["primary", "outlined", "transparent", "transparentThin"]>>;
7886
+ disabled: z.ZodOptional<z.ZodBoolean>;
7887
+ }>, {
7888
+ onClick: z.ZodString;
7889
+ }>, "strip", z.ZodTypeAny, {
7890
+ type: "Button";
7891
+ label: string;
7892
+ onClick: string;
7893
+ id?: string | undefined;
7894
+ onCreate?: string | undefined;
7895
+ onDestroy?: string | undefined;
7896
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7897
+ disabled?: boolean | undefined;
7898
+ }, {
7899
+ type: "Button";
7900
+ label: string;
7901
+ onClick: string;
7902
+ id?: string | undefined;
7903
+ onCreate?: string | undefined;
7904
+ onDestroy?: string | undefined;
7905
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7906
+ disabled?: boolean | undefined;
7907
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
7908
+ onCreate: z.ZodOptional<z.ZodString>;
7909
+ onDestroy: z.ZodOptional<z.ZodString>;
7910
+ }, {
7911
+ id: z.ZodOptional<z.ZodString>;
7912
+ }>, {
7913
+ type: z.ZodLiteral<"Text">;
7914
+ content: z.ZodString;
7915
+ }>, "strip", z.ZodTypeAny, {
7916
+ type: "Text";
7917
+ content: string;
7918
+ id?: string | undefined;
7919
+ onCreate?: string | undefined;
7920
+ onDestroy?: string | undefined;
7921
+ }, {
7922
+ type: "Text";
7923
+ content: string;
7924
+ id?: string | undefined;
7925
+ onCreate?: string | undefined;
7926
+ onDestroy?: string | undefined;
7927
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
7928
+ onCreate: z.ZodOptional<z.ZodString>;
7929
+ onDestroy: z.ZodOptional<z.ZodString>;
7930
+ }, {
7931
+ id: z.ZodOptional<z.ZodString>;
7932
+ }>, {
7933
+ type: z.ZodLiteral<"FlexibleSpace">;
7934
+ }>, "strip", z.ZodTypeAny, {
7935
+ type: "FlexibleSpace";
7936
+ id?: string | undefined;
7937
+ onCreate?: string | undefined;
7938
+ onDestroy?: string | undefined;
7939
+ }, {
7940
+ type: "FlexibleSpace";
7941
+ id?: string | undefined;
7942
+ onCreate?: string | undefined;
7943
+ onDestroy?: string | undefined;
7944
+ }>]>, "many">>;
7945
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7946
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7947
+ }, "strip", z.ZodTypeAny, {
7948
+ type: "ButtonGroup";
7949
+ id?: string | undefined;
7950
+ align?: "start" | "end" | undefined;
7951
+ items?: ({
7952
+ type: "Text";
7953
+ content: string;
7954
+ id?: string | undefined;
7955
+ onCreate?: string | undefined;
7956
+ onDestroy?: string | undefined;
7957
+ } | {
7958
+ type: "Button";
7959
+ label: string;
7960
+ onClick: string;
7961
+ id?: string | undefined;
7962
+ onCreate?: string | undefined;
7963
+ onDestroy?: string | undefined;
7964
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7965
+ disabled?: boolean | undefined;
7966
+ } | {
7967
+ type: "FlexibleSpace";
7968
+ id?: string | undefined;
7969
+ onCreate?: string | undefined;
7970
+ onDestroy?: string | undefined;
7971
+ })[] | undefined;
7972
+ onCreate?: string | undefined;
7973
+ onDestroy?: string | undefined;
7974
+ }, {
7975
+ type: "ButtonGroup";
7976
+ id?: string | undefined;
7977
+ align?: "start" | "end" | undefined;
7978
+ items?: ({
7979
+ type: "Text";
7980
+ content: string;
7981
+ id?: string | undefined;
7982
+ onCreate?: string | undefined;
7983
+ onDestroy?: string | undefined;
7984
+ } | {
7985
+ type: "Button";
7986
+ label: string;
7987
+ onClick: string;
7988
+ id?: string | undefined;
7989
+ onCreate?: string | undefined;
7990
+ onDestroy?: string | undefined;
7991
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
7992
+ disabled?: boolean | undefined;
7993
+ } | {
7994
+ type: "FlexibleSpace";
7995
+ id?: string | undefined;
7996
+ onCreate?: string | undefined;
7997
+ onDestroy?: string | undefined;
7998
+ })[] | undefined;
7999
+ onCreate?: string | undefined;
8000
+ onDestroy?: string | undefined;
8001
+ }>, z.ZodObject<{
8002
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
8003
+ label: z.ZodString;
8004
+ value: z.ZodString;
8005
+ }, "strip", z.ZodTypeAny, {
8006
+ value: string;
8007
+ label: string;
8008
+ }, {
8009
+ value: string;
8010
+ label: string;
8011
+ }>, "many">>;
8012
+ type: z.ZodLiteral<"Select">;
8013
+ value: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8014
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8015
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8016
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8017
+ label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8018
+ placeholder: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8019
+ onChange: z.ZodOptional<z.ZodString>;
8020
+ search: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
8021
+ }, "strip", z.ZodTypeAny, {
8022
+ type: "Select";
8023
+ options?: {
8024
+ value: string;
8025
+ label: string;
8026
+ }[] | undefined;
8027
+ value?: string | undefined;
8028
+ id?: string | undefined;
8029
+ onCreate?: string | undefined;
8030
+ onDestroy?: string | undefined;
8031
+ label?: string | undefined;
8032
+ placeholder?: string | undefined;
8033
+ onChange?: string | undefined;
8034
+ search?: boolean | undefined;
8035
+ }, {
8036
+ type: "Select";
8037
+ options?: {
8038
+ value: string;
8039
+ label: string;
8040
+ }[] | undefined;
8041
+ value?: string | undefined;
8042
+ id?: string | undefined;
8043
+ onCreate?: string | undefined;
8044
+ onDestroy?: string | undefined;
8045
+ label?: string | undefined;
8046
+ placeholder?: string | undefined;
8047
+ onChange?: string | undefined;
8048
+ search?: boolean | undefined;
8049
+ }>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
8050
+ onCreate: z.ZodOptional<z.ZodString>;
8051
+ onDestroy: z.ZodOptional<z.ZodString>;
8052
+ }, {
8053
+ id: z.ZodOptional<z.ZodString>;
8054
+ }>, {
8055
+ type: z.ZodLiteral<"FlexibleSpace">;
8056
+ }>, "strip", z.ZodTypeAny, {
8057
+ type: "FlexibleSpace";
8058
+ id?: string | undefined;
8059
+ onCreate?: string | undefined;
8060
+ onDestroy?: string | undefined;
8061
+ }, {
8062
+ type: "FlexibleSpace";
8063
+ id?: string | undefined;
8064
+ onCreate?: string | undefined;
8065
+ onDestroy?: string | undefined;
8066
+ }>]>>;
8067
+ }, "strip", z.ZodTypeAny, {
8068
+ panelId: string;
8069
+ elements: Record<string, {
8070
+ type: "FlexibleSpace";
8071
+ id?: string | undefined;
8072
+ onCreate?: string | undefined;
8073
+ onDestroy?: string | undefined;
8074
+ } | {
8075
+ type: "Text";
8076
+ id?: string | undefined;
8077
+ onCreate?: string | undefined;
8078
+ onDestroy?: string | undefined;
8079
+ content?: string | undefined;
8080
+ } | {
8081
+ type: "Button";
8082
+ id?: string | undefined;
8083
+ onCreate?: string | undefined;
8084
+ onDestroy?: string | undefined;
8085
+ label?: string | undefined;
8086
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
8087
+ disabled?: boolean | undefined;
8088
+ onClick?: string | undefined;
8089
+ } | {
8090
+ type: "TextInput";
8091
+ value?: string | undefined;
8092
+ id?: string | undefined;
8093
+ onCreate?: string | undefined;
8094
+ onDestroy?: string | undefined;
8095
+ label?: string | undefined;
8096
+ placeholder?: string | undefined;
8097
+ onChange?: string | undefined;
8098
+ onBlur?: string | undefined;
8099
+ onFocus?: string | undefined;
8100
+ } | {
8101
+ type: "Divider";
8102
+ id?: string | undefined;
8103
+ onCreate?: string | undefined;
8104
+ onDestroy?: string | undefined;
8105
+ } | {
8106
+ type: "ButtonGroup";
8107
+ id?: string | undefined;
8108
+ align?: "start" | "end" | undefined;
8109
+ items?: ({
8110
+ type: "Text";
8111
+ content: string;
8112
+ id?: string | undefined;
8113
+ onCreate?: string | undefined;
8114
+ onDestroy?: string | undefined;
8115
+ } | {
8116
+ type: "Button";
8117
+ label: string;
8118
+ onClick: string;
8119
+ id?: string | undefined;
8120
+ onCreate?: string | undefined;
8121
+ onDestroy?: string | undefined;
8122
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
8123
+ disabled?: boolean | undefined;
8124
+ } | {
8125
+ type: "FlexibleSpace";
8126
+ id?: string | undefined;
8127
+ onCreate?: string | undefined;
8128
+ onDestroy?: string | undefined;
8129
+ })[] | undefined;
8130
+ onCreate?: string | undefined;
8131
+ onDestroy?: string | undefined;
8132
+ } | {
8133
+ type: "Select";
8134
+ options?: {
8135
+ value: string;
8136
+ label: string;
8137
+ }[] | undefined;
8138
+ value?: string | undefined;
8139
+ id?: string | undefined;
8140
+ onCreate?: string | undefined;
8141
+ onDestroy?: string | undefined;
8142
+ label?: string | undefined;
8143
+ placeholder?: string | undefined;
8144
+ onChange?: string | undefined;
8145
+ search?: boolean | undefined;
8146
+ }>;
8147
+ }, {
8148
+ panelId: string;
8149
+ elements: Record<string, {
8150
+ type: "FlexibleSpace";
8151
+ id?: string | undefined;
8152
+ onCreate?: string | undefined;
8153
+ onDestroy?: string | undefined;
8154
+ } | {
8155
+ type: "Text";
8156
+ id?: string | undefined;
8157
+ onCreate?: string | undefined;
8158
+ onDestroy?: string | undefined;
8159
+ content?: string | undefined;
8160
+ } | {
8161
+ type: "Button";
8162
+ id?: string | undefined;
8163
+ onCreate?: string | undefined;
8164
+ onDestroy?: string | undefined;
8165
+ label?: string | undefined;
8166
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
8167
+ disabled?: boolean | undefined;
8168
+ onClick?: string | undefined;
8169
+ } | {
8170
+ type: "TextInput";
8171
+ value?: string | undefined;
8172
+ id?: string | undefined;
8173
+ onCreate?: string | undefined;
8174
+ onDestroy?: string | undefined;
8175
+ label?: string | undefined;
8176
+ placeholder?: string | undefined;
8177
+ onChange?: string | undefined;
8178
+ onBlur?: string | undefined;
8179
+ onFocus?: string | undefined;
8180
+ } | {
8181
+ type: "Divider";
8182
+ id?: string | undefined;
8183
+ onCreate?: string | undefined;
8184
+ onDestroy?: string | undefined;
8185
+ } | {
8186
+ type: "ButtonGroup";
8187
+ id?: string | undefined;
8188
+ align?: "start" | "end" | undefined;
8189
+ items?: ({
8190
+ type: "Text";
8191
+ content: string;
8192
+ id?: string | undefined;
8193
+ onCreate?: string | undefined;
8194
+ onDestroy?: string | undefined;
8195
+ } | {
8196
+ type: "Button";
8197
+ label: string;
8198
+ onClick: string;
8199
+ id?: string | undefined;
8200
+ onCreate?: string | undefined;
8201
+ onDestroy?: string | undefined;
8202
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
8203
+ disabled?: boolean | undefined;
8204
+ } | {
8205
+ type: "FlexibleSpace";
8206
+ id?: string | undefined;
8207
+ onCreate?: string | undefined;
8208
+ onDestroy?: string | undefined;
8209
+ })[] | undefined;
8210
+ onCreate?: string | undefined;
8211
+ onDestroy?: string | undefined;
8212
+ } | {
8213
+ type: "Select";
8214
+ options?: {
8215
+ value: string;
8216
+ label: string;
8217
+ }[] | undefined;
8218
+ value?: string | undefined;
8219
+ id?: string | undefined;
8220
+ onCreate?: string | undefined;
8221
+ onDestroy?: string | undefined;
8222
+ label?: string | undefined;
8223
+ placeholder?: string | undefined;
8224
+ onChange?: string | undefined;
8225
+ search?: boolean | undefined;
8226
+ }>;
8227
+ }>;
8228
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
8229
+ params: {
8230
+ panelId: string;
8231
+ elements: Record<string, {
8232
+ type: "FlexibleSpace";
8233
+ id?: string | undefined;
8234
+ onCreate?: string | undefined;
8235
+ onDestroy?: string | undefined;
8236
+ } | {
8237
+ type: "Text";
8238
+ id?: string | undefined;
8239
+ onCreate?: string | undefined;
8240
+ onDestroy?: string | undefined;
8241
+ content?: string | undefined;
8242
+ } | {
8243
+ type: "Button";
8244
+ id?: string | undefined;
8245
+ onCreate?: string | undefined;
8246
+ onDestroy?: string | undefined;
8247
+ label?: string | undefined;
8248
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
8249
+ disabled?: boolean | undefined;
8250
+ onClick?: string | undefined;
8251
+ } | {
8252
+ type: "TextInput";
8253
+ value?: string | undefined;
8254
+ id?: string | undefined;
8255
+ onCreate?: string | undefined;
8256
+ onDestroy?: string | undefined;
8257
+ label?: string | undefined;
8258
+ placeholder?: string | undefined;
8259
+ onChange?: string | undefined;
8260
+ onBlur?: string | undefined;
8261
+ onFocus?: string | undefined;
8262
+ } | {
8263
+ type: "Divider";
8264
+ id?: string | undefined;
8265
+ onCreate?: string | undefined;
8266
+ onDestroy?: string | undefined;
8267
+ } | {
8268
+ type: "ButtonGroup";
8269
+ id?: string | undefined;
8270
+ align?: "start" | "end" | undefined;
8271
+ items?: ({
8272
+ type: "Text";
8273
+ content: string;
8274
+ id?: string | undefined;
8275
+ onCreate?: string | undefined;
8276
+ onDestroy?: string | undefined;
8277
+ } | {
8278
+ type: "Button";
8279
+ label: string;
8280
+ onClick: string;
8281
+ id?: string | undefined;
8282
+ onCreate?: string | undefined;
8283
+ onDestroy?: string | undefined;
8284
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
8285
+ disabled?: boolean | undefined;
8286
+ } | {
8287
+ type: "FlexibleSpace";
8288
+ id?: string | undefined;
8289
+ onCreate?: string | undefined;
8290
+ onDestroy?: string | undefined;
8291
+ })[] | undefined;
8292
+ onCreate?: string | undefined;
8293
+ onDestroy?: string | undefined;
8294
+ } | {
8295
+ type: "Select";
8296
+ options?: {
8297
+ value: string;
8298
+ label: string;
8299
+ }[] | undefined;
8300
+ value?: string | undefined;
8301
+ id?: string | undefined;
8302
+ onCreate?: string | undefined;
8303
+ onDestroy?: string | undefined;
8304
+ label?: string | undefined;
8305
+ placeholder?: string | undefined;
8306
+ onChange?: string | undefined;
8307
+ search?: boolean | undefined;
8308
+ }>;
8309
+ };
8310
+ type: "updatePanelElements";
8311
+ }, {
8312
+ params: {
8313
+ panelId: string;
8314
+ elements: Record<string, {
8315
+ type: "FlexibleSpace";
8316
+ id?: string | undefined;
8317
+ onCreate?: string | undefined;
8318
+ onDestroy?: string | undefined;
8319
+ } | {
8320
+ type: "Text";
8321
+ id?: string | undefined;
8322
+ onCreate?: string | undefined;
8323
+ onDestroy?: string | undefined;
8324
+ content?: string | undefined;
8325
+ } | {
8326
+ type: "Button";
8327
+ id?: string | undefined;
8328
+ onCreate?: string | undefined;
8329
+ onDestroy?: string | undefined;
8330
+ label?: string | undefined;
8331
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
8332
+ disabled?: boolean | undefined;
8333
+ onClick?: string | undefined;
8334
+ } | {
8335
+ type: "TextInput";
8336
+ value?: string | undefined;
8337
+ id?: string | undefined;
8338
+ onCreate?: string | undefined;
8339
+ onDestroy?: string | undefined;
8340
+ label?: string | undefined;
8341
+ placeholder?: string | undefined;
8342
+ onChange?: string | undefined;
8343
+ onBlur?: string | undefined;
8344
+ onFocus?: string | undefined;
8345
+ } | {
8346
+ type: "Divider";
8347
+ id?: string | undefined;
8348
+ onCreate?: string | undefined;
8349
+ onDestroy?: string | undefined;
8350
+ } | {
8351
+ type: "ButtonGroup";
8352
+ id?: string | undefined;
8353
+ align?: "start" | "end" | undefined;
8354
+ items?: ({
8355
+ type: "Text";
8356
+ content: string;
8357
+ id?: string | undefined;
8358
+ onCreate?: string | undefined;
8359
+ onDestroy?: string | undefined;
8360
+ } | {
8361
+ type: "Button";
8362
+ label: string;
8363
+ onClick: string;
8364
+ id?: string | undefined;
8365
+ onCreate?: string | undefined;
8366
+ onDestroy?: string | undefined;
8367
+ variant?: "primary" | "outlined" | "transparent" | "transparentThin" | undefined;
8368
+ disabled?: boolean | undefined;
8369
+ } | {
8370
+ type: "FlexibleSpace";
8371
+ id?: string | undefined;
8372
+ onCreate?: string | undefined;
8373
+ onDestroy?: string | undefined;
8374
+ })[] | undefined;
8375
+ onCreate?: string | undefined;
8376
+ onDestroy?: string | undefined;
8377
+ } | {
8378
+ type: "Select";
8379
+ options?: {
8380
+ value: string;
8381
+ label: string;
8382
+ }[] | undefined;
8383
+ value?: string | undefined;
8384
+ id?: string | undefined;
8385
+ onCreate?: string | undefined;
8386
+ onDestroy?: string | undefined;
8387
+ label?: string | undefined;
8388
+ placeholder?: string | undefined;
8389
+ onChange?: string | undefined;
8390
+ search?: boolean | undefined;
8391
+ }>;
8392
+ };
8393
+ type: "updatePanelElements";
8394
+ }>;
8395
+ declare const DeletePanelElementsMessage: z.ZodObject<{
8396
+ type: z.ZodLiteral<"deletePanelElements">;
8397
+ params: z.ZodObject<{
8398
+ panelId: z.ZodString;
8399
+ elements: z.ZodArray<z.ZodString, "many">;
8400
+ }, "strip", z.ZodTypeAny, {
8401
+ panelId: string;
8402
+ elements: string[];
8403
+ }, {
8404
+ panelId: string;
8405
+ elements: string[];
8406
+ }>;
8407
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
8408
+ params: {
8409
+ panelId: string;
8410
+ elements: string[];
8411
+ };
8412
+ type: "deletePanelElements";
8413
+ }, {
8414
+ params: {
8415
+ panelId: string;
8416
+ elements: string[];
8417
+ };
8418
+ type: "deletePanelElements";
8419
+ }>;
4099
8420
  declare const UiControlsMessage: z.ZodObject<{
4100
8421
  type: z.ZodLiteral<"updateUiControls">;
4101
8422
  params: z.ZodObject<{
@@ -4239,6 +8560,12 @@ declare const HideLayerDataTableMessage: z.ZodObject<{
4239
8560
  }>;
4240
8561
  type UiSchema = {
4241
8562
  methods: {
8563
+ addPanel: Method<zInfer<typeof AddPanelMessage>>;
8564
+ updatePanel: Method<zInfer<typeof UpdatePanelMessage>>;
8565
+ deletePanel: Method<zInfer<typeof DeletePanelMessage>>;
8566
+ addPanelElements: Method<zInfer<typeof AddPanelElementsMessage>>;
8567
+ updatePanelElements: Method<zInfer<typeof UpdatePanelElementsMessage>>;
8568
+ deletePanelElements: Method<zInfer<typeof DeletePanelElementsMessage>>;
4242
8569
  updateUiControls: Method<zInfer<typeof UiControlsMessage>>;
4243
8570
  setOnMapInteractionsUi: Method<zInfer<typeof OnMapInteractionsMessage>>;
4244
8571
  showLayerDataTable: Method<zInfer<typeof ShowLayerDataTableMessage>>;
@@ -4385,7 +8712,11 @@ type FeltHandlers = {
4385
8712
  listeners: FeltListenerHandlers;
4386
8713
  };
4387
8714
  type MethodSpec = UnionToIntersection<AllModules["methods"]>;
4388
- type ListenerSpec = UnionToIntersection<AllModules["listeners"]>;
8715
+ type ListenerSpec = UnionToIntersection<AllModules["listeners"]> & {
8716
+ onGenericEvent: Listener<{
8717
+ id: string;
8718
+ }, void>;
8719
+ };
4389
8720
  type ExtractMethodParams<T extends Record<string, AnyFunction | {
4390
8721
  request: {
4391
8722
  params?: any;