@fieldia/core 0.14.1 → 0.16.0

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.
Files changed (36) hide show
  1. package/package.json +1 -1
  2. package/schema/page.schema.json +283 -1
  3. package/src/lib/format/actions.d.mts +8 -0
  4. package/src/lib/format/actions.d.ts +8 -0
  5. package/src/lib/format/field.d.mts +26 -0
  6. package/src/lib/format/field.d.ts +26 -0
  7. package/src/lib/format/field.js +19 -1
  8. package/src/lib/format/field.js.map +1 -1
  9. package/src/lib/format/field.mjs +19 -1
  10. package/src/lib/format/field.mjs.map +1 -1
  11. package/src/lib/format/layout.d.mts +531 -3
  12. package/src/lib/format/layout.d.ts +531 -3
  13. package/src/lib/format/layout.js +86 -1
  14. package/src/lib/format/layout.js.map +1 -1
  15. package/src/lib/format/layout.mjs +85 -0
  16. package/src/lib/format/layout.mjs.map +1 -1
  17. package/src/lib/format/page.d.mts +65 -0
  18. package/src/lib/format/page.d.ts +65 -0
  19. package/src/lib/format/references.d.mts +13 -0
  20. package/src/lib/format/references.d.ts +13 -0
  21. package/src/lib/format/references.js +121 -0
  22. package/src/lib/format/references.js.map +1 -1
  23. package/src/lib/format/references.mjs +121 -0
  24. package/src/lib/format/references.mjs.map +1 -1
  25. package/src/lib/format/translate.js +10 -3
  26. package/src/lib/format/translate.js.map +1 -1
  27. package/src/lib/format/translate.mjs +10 -3
  28. package/src/lib/format/translate.mjs.map +1 -1
  29. package/src/lib/record/filter.js +58 -0
  30. package/src/lib/record/filter.js.map +1 -1
  31. package/src/lib/record/filter.mjs +58 -0
  32. package/src/lib/record/filter.mjs.map +1 -1
  33. package/src/runtime.d.mts +1 -1
  34. package/src/runtime.d.ts +1 -1
  35. package/src/runtime.js.map +1 -1
  36. package/src/runtime.mjs.map +1 -1
@@ -382,6 +382,71 @@ export interface FormNode {
382
382
  /** Every field inside is read-only while this holds. */
383
383
  readonly?: Modifier;
384
384
  }
385
+ /** A line along the roads between a map's layers: from one place to another, or through a layer's lines in their order. */
386
+ export interface MapRoute {
387
+ /** The layer it starts at: a place, or the reader's own. */
388
+ from: string;
389
+ /** The layer it ends at. */
390
+ to?: string;
391
+ /** A layer of lines it goes through, in their order: a delivery round's stops. */
392
+ through?: string;
393
+ /** How it is travelled: by car unless said. */
394
+ mode?: 'car' | 'bike' | 'foot';
395
+ /** The part already travelled fades as `from` moves along it, and the time and distance left are kept up to date. */
396
+ progress?: boolean;
397
+ /** Fields of the record its numbers go into: the seconds and metres left, and its line as GeoJSON. */
398
+ write?: {
399
+ seconds?: string;
400
+ metres?: string;
401
+ line?: string;
402
+ };
403
+ }
404
+ /**
405
+ * One layer of a form's map: the record's own place (`point`, or `latitude`
406
+ * and `longitude`), a place for each of its lines (`lines`, the place in the
407
+ * line's fields), a route between layers, or the reader's own place.
408
+ */
409
+ export interface MapLayer {
410
+ id: string;
411
+ /** What it is, in words: its pins are named by it ("Courier, 4 min"). */
412
+ label?: string;
413
+ point?: string;
414
+ latitude?: string;
415
+ longitude?: string;
416
+ /** A field of lines (one2many): a pin for each line. */
417
+ lines?: string;
418
+ pin?: Pin;
419
+ card?: MapCard;
420
+ /**
421
+ * A place that moves as its fields change: its pin glides there. Without
422
+ * news for `staleAfter` seconds it says when it was last seen; `follow`
423
+ * keeps it in view until the person moves the map.
424
+ */
425
+ live?: {
426
+ staleAfter?: number;
427
+ follow?: boolean;
428
+ };
429
+ route?: MapRoute;
430
+ /** The reader's own place, from the browser once they allow it. */
431
+ myLocation?: boolean;
432
+ invisible?: Modifier;
433
+ }
434
+ /** A map on a form: the record's places, its lines' places, the routes between them, and the reader's own place, as layers. */
435
+ export interface MapNode {
436
+ type: 'map';
437
+ id: string;
438
+ /** Its name, over it and for a screen reader. */
439
+ label?: string;
440
+ layers: MapLayer[];
441
+ /** Height in pixels: 360 unless said. */
442
+ height?: number;
443
+ /** Grid columns it spans inside a section. */
444
+ colspan?: number;
445
+ invisible?: Modifier;
446
+ roles?: Roles;
447
+ /** Hidden at these widths of the form, such as a phone's: `["narrow"]`. */
448
+ hideOn?: ScreenWidth[];
449
+ }
385
450
  /** A named place the app fills with its own content, such as an activity feed. */
386
451
  export interface SlotNode {
387
452
  type: 'slot';
@@ -734,9 +799,55 @@ export interface ListNode {
734
799
  groupBy?: string[];
735
800
  /** Buttons for the records selected. */
736
801
  actions?: ButtonNode[];
802
+ /** The records on a map, beside the table or instead of it (drawn by @fieldia/map). */
803
+ map?: ListMap;
804
+ }
805
+ /**
806
+ * What a pin on a map shows, from its record's fields: a pin, an icon (a
807
+ * fixed one, or the one a field names), a round photo, words alone, or a dot.
808
+ */
809
+ export interface Pin {
810
+ look?: 'pin' | 'icon' | 'photo' | 'label' | 'dot';
811
+ /** An icon by name: Fieldia's own and the map's (car, scooter, bike, shop, food…), or the app's. */
812
+ icon?: string;
813
+ /** A field whose value names the icon: a car, a scooter or a bike, record by record. */
814
+ iconField?: string;
815
+ /** An image field: the round photo, such as a driver's face. */
816
+ image?: string;
817
+ /** A field whose value is written on the pin: a price, a name, minutes away. */
818
+ label?: string;
819
+ /** The pin's colour while a condition holds on its record, the first that holds. */
820
+ tones?: ToneWhen[];
821
+ /** A number field, in degrees: which way the pin faces, as a car on a road. */
822
+ turn?: string;
823
+ /** The app's own widget for the pin, by name, drawn from the record. */
824
+ widget?: string;
825
+ }
826
+ /** The card a pin opens: its record's title, a picture, a few of its fields, and a way to open it. */
827
+ export interface MapCard {
828
+ title?: string;
829
+ image?: string;
830
+ fields?: string[];
831
+ /** A button to open the record; on unless false. */
832
+ open?: boolean;
833
+ }
834
+ /** A list's records on a map: where each one is, its pin and its card. */
835
+ export interface ListMap {
836
+ /** A json field holding a GeoJSON Point; or `latitude` and `longitude`, two number fields. */
837
+ point?: string;
838
+ latitude?: string;
839
+ longitude?: string;
840
+ pin?: Pin;
841
+ card?: MapCard;
842
+ /** Pins that crowd as one bubble with their count; on unless false. */
843
+ cluster?: boolean;
844
+ /** How the list opens: the table, the map, or both side by side on a wide screen. */
845
+ view?: 'list' | 'map' | 'both';
846
+ /** How many records the map shows at most: 500 unless said. */
847
+ limit?: number;
737
848
  }
738
849
  /** Anything that can sit inside a section, tab, step or sheet. */
739
- export type LayoutNode = FieldNode | ButtonNode | TextNode | SlotNode | SectionNode | TabsNode | DividerNode | SpacerNode | ImageNode | FormNode;
850
+ export type LayoutNode = FieldNode | ButtonNode | TextNode | SlotNode | SectionNode | TabsNode | DividerNode | SpacerNode | ImageNode | FormNode | MapNode;
740
851
  /** What a page's `layout` can be: the four page layouts. */
741
852
  export type RootLayout = SheetNode | SectionsNode | TabsNode | WizardNode | ListNode;
742
853
  export declare const ModifierSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
@@ -987,6 +1098,7 @@ export declare const ButtonNodeSchema: z.ZodObject<{
987
1098
  contains: "contains";
988
1099
  "not contains": "not contains";
989
1100
  "=?": "=?";
1101
+ within: "within";
990
1102
  }>;
991
1103
  value: z.ZodOptional<z.ZodJSONSchema>;
992
1104
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -1158,9 +1270,9 @@ export declare const ImageNodeSchema: z.ZodObject<{
1158
1270
  full: "full";
1159
1271
  }>, z.ZodInt]>>;
1160
1272
  align: z.ZodOptional<z.ZodEnum<{
1273
+ center: "center";
1161
1274
  end: "end";
1162
1275
  start: "start";
1163
- center: "center";
1164
1276
  }>>;
1165
1277
  href: z.ZodOptional<z.ZodString>;
1166
1278
  caption: z.ZodOptional<z.ZodString>;
@@ -1173,6 +1285,198 @@ export declare const ImageNodeSchema: z.ZodObject<{
1173
1285
  wide: "wide";
1174
1286
  }>>>;
1175
1287
  }, z.z.core.$strict>;
1288
+ /**
1289
+ * What a pin on a map shows, from its record's fields: a pin, an icon (a
1290
+ * fixed one or one a field names), a round photo, words alone, or a dot; its
1291
+ * words; its colour by condition; its turn, for a car facing its way; or the
1292
+ * app's own widget, which draws it from the record.
1293
+ */
1294
+ export declare const PinSchema: z.ZodObject<{
1295
+ look: z.ZodOptional<z.ZodEnum<{
1296
+ label: "label";
1297
+ pin: "pin";
1298
+ icon: "icon";
1299
+ photo: "photo";
1300
+ dot: "dot";
1301
+ }>>;
1302
+ icon: z.ZodOptional<z.ZodString>;
1303
+ iconField: z.ZodOptional<z.ZodString>;
1304
+ image: z.ZodOptional<z.ZodString>;
1305
+ label: z.ZodOptional<z.ZodString>;
1306
+ tones: z.ZodOptional<z.ZodArray<z.ZodObject<{
1307
+ tone: z.ZodEnum<{
1308
+ success: "success";
1309
+ info: "info";
1310
+ warning: "warning";
1311
+ danger: "danger";
1312
+ muted: "muted";
1313
+ }>;
1314
+ when: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
1315
+ }, z.z.core.$strict>>>;
1316
+ turn: z.ZodOptional<z.ZodString>;
1317
+ widget: z.ZodOptional<z.ZodString>;
1318
+ }, z.z.core.$strict>;
1319
+ /** The card a pin opens: its record's title, a picture, a few of its fields, and a way to open it. */
1320
+ export declare const MapCardSchema: z.ZodObject<{
1321
+ title: z.ZodOptional<z.ZodString>;
1322
+ image: z.ZodOptional<z.ZodString>;
1323
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1324
+ open: z.ZodOptional<z.ZodBoolean>;
1325
+ }, z.z.core.$strict>;
1326
+ /** A line along the roads between a map's layers: from one place to another, through a layer's lines in their order. */
1327
+ export declare const MapRouteSchema: z.ZodObject<{
1328
+ from: z.ZodString;
1329
+ to: z.ZodOptional<z.ZodString>;
1330
+ through: z.ZodOptional<z.ZodString>;
1331
+ mode: z.ZodOptional<z.ZodEnum<{
1332
+ car: "car";
1333
+ bike: "bike";
1334
+ foot: "foot";
1335
+ }>>;
1336
+ progress: z.ZodOptional<z.ZodBoolean>;
1337
+ write: z.ZodOptional<z.ZodObject<{
1338
+ seconds: z.ZodOptional<z.ZodString>;
1339
+ metres: z.ZodOptional<z.ZodString>;
1340
+ line: z.ZodOptional<z.ZodString>;
1341
+ }, z.z.core.$strict>>;
1342
+ }, z.z.core.$strict>;
1343
+ /** One layer of a form's map: the record's own place, a place for each of its lines, a route, or the reader's own place. */
1344
+ export declare const MapLayerSchema: z.ZodObject<{
1345
+ id: z.ZodString;
1346
+ label: z.ZodOptional<z.ZodString>;
1347
+ point: z.ZodOptional<z.ZodString>;
1348
+ latitude: z.ZodOptional<z.ZodString>;
1349
+ longitude: z.ZodOptional<z.ZodString>;
1350
+ lines: z.ZodOptional<z.ZodString>;
1351
+ pin: z.ZodOptional<z.ZodObject<{
1352
+ look: z.ZodOptional<z.ZodEnum<{
1353
+ label: "label";
1354
+ pin: "pin";
1355
+ icon: "icon";
1356
+ photo: "photo";
1357
+ dot: "dot";
1358
+ }>>;
1359
+ icon: z.ZodOptional<z.ZodString>;
1360
+ iconField: z.ZodOptional<z.ZodString>;
1361
+ image: z.ZodOptional<z.ZodString>;
1362
+ label: z.ZodOptional<z.ZodString>;
1363
+ tones: z.ZodOptional<z.ZodArray<z.ZodObject<{
1364
+ tone: z.ZodEnum<{
1365
+ success: "success";
1366
+ info: "info";
1367
+ warning: "warning";
1368
+ danger: "danger";
1369
+ muted: "muted";
1370
+ }>;
1371
+ when: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
1372
+ }, z.z.core.$strict>>>;
1373
+ turn: z.ZodOptional<z.ZodString>;
1374
+ widget: z.ZodOptional<z.ZodString>;
1375
+ }, z.z.core.$strict>>;
1376
+ card: z.ZodOptional<z.ZodObject<{
1377
+ title: z.ZodOptional<z.ZodString>;
1378
+ image: z.ZodOptional<z.ZodString>;
1379
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1380
+ open: z.ZodOptional<z.ZodBoolean>;
1381
+ }, z.z.core.$strict>>;
1382
+ live: z.ZodOptional<z.ZodObject<{
1383
+ staleAfter: z.ZodOptional<z.ZodInt>;
1384
+ follow: z.ZodOptional<z.ZodBoolean>;
1385
+ }, z.z.core.$strict>>;
1386
+ route: z.ZodOptional<z.ZodObject<{
1387
+ from: z.ZodString;
1388
+ to: z.ZodOptional<z.ZodString>;
1389
+ through: z.ZodOptional<z.ZodString>;
1390
+ mode: z.ZodOptional<z.ZodEnum<{
1391
+ car: "car";
1392
+ bike: "bike";
1393
+ foot: "foot";
1394
+ }>>;
1395
+ progress: z.ZodOptional<z.ZodBoolean>;
1396
+ write: z.ZodOptional<z.ZodObject<{
1397
+ seconds: z.ZodOptional<z.ZodString>;
1398
+ metres: z.ZodOptional<z.ZodString>;
1399
+ line: z.ZodOptional<z.ZodString>;
1400
+ }, z.z.core.$strict>>;
1401
+ }, z.z.core.$strict>>;
1402
+ myLocation: z.ZodOptional<z.ZodBoolean>;
1403
+ invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1404
+ }, z.z.core.$strict>;
1405
+ export declare const MapNodeSchema: z.ZodObject<{
1406
+ type: z.ZodLiteral<"map">;
1407
+ id: z.ZodString;
1408
+ label: z.ZodOptional<z.ZodString>;
1409
+ layers: z.ZodArray<z.ZodObject<{
1410
+ id: z.ZodString;
1411
+ label: z.ZodOptional<z.ZodString>;
1412
+ point: z.ZodOptional<z.ZodString>;
1413
+ latitude: z.ZodOptional<z.ZodString>;
1414
+ longitude: z.ZodOptional<z.ZodString>;
1415
+ lines: z.ZodOptional<z.ZodString>;
1416
+ pin: z.ZodOptional<z.ZodObject<{
1417
+ look: z.ZodOptional<z.ZodEnum<{
1418
+ label: "label";
1419
+ pin: "pin";
1420
+ icon: "icon";
1421
+ photo: "photo";
1422
+ dot: "dot";
1423
+ }>>;
1424
+ icon: z.ZodOptional<z.ZodString>;
1425
+ iconField: z.ZodOptional<z.ZodString>;
1426
+ image: z.ZodOptional<z.ZodString>;
1427
+ label: z.ZodOptional<z.ZodString>;
1428
+ tones: z.ZodOptional<z.ZodArray<z.ZodObject<{
1429
+ tone: z.ZodEnum<{
1430
+ success: "success";
1431
+ info: "info";
1432
+ warning: "warning";
1433
+ danger: "danger";
1434
+ muted: "muted";
1435
+ }>;
1436
+ when: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
1437
+ }, z.z.core.$strict>>>;
1438
+ turn: z.ZodOptional<z.ZodString>;
1439
+ widget: z.ZodOptional<z.ZodString>;
1440
+ }, z.z.core.$strict>>;
1441
+ card: z.ZodOptional<z.ZodObject<{
1442
+ title: z.ZodOptional<z.ZodString>;
1443
+ image: z.ZodOptional<z.ZodString>;
1444
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1445
+ open: z.ZodOptional<z.ZodBoolean>;
1446
+ }, z.z.core.$strict>>;
1447
+ live: z.ZodOptional<z.ZodObject<{
1448
+ staleAfter: z.ZodOptional<z.ZodInt>;
1449
+ follow: z.ZodOptional<z.ZodBoolean>;
1450
+ }, z.z.core.$strict>>;
1451
+ route: z.ZodOptional<z.ZodObject<{
1452
+ from: z.ZodString;
1453
+ to: z.ZodOptional<z.ZodString>;
1454
+ through: z.ZodOptional<z.ZodString>;
1455
+ mode: z.ZodOptional<z.ZodEnum<{
1456
+ car: "car";
1457
+ bike: "bike";
1458
+ foot: "foot";
1459
+ }>>;
1460
+ progress: z.ZodOptional<z.ZodBoolean>;
1461
+ write: z.ZodOptional<z.ZodObject<{
1462
+ seconds: z.ZodOptional<z.ZodString>;
1463
+ metres: z.ZodOptional<z.ZodString>;
1464
+ line: z.ZodOptional<z.ZodString>;
1465
+ }, z.z.core.$strict>>;
1466
+ }, z.z.core.$strict>>;
1467
+ myLocation: z.ZodOptional<z.ZodBoolean>;
1468
+ invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1469
+ }, z.z.core.$strict>>;
1470
+ height: z.ZodOptional<z.ZodInt>;
1471
+ colspan: z.ZodOptional<z.ZodInt>;
1472
+ invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1473
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1474
+ hideOn: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1475
+ narrow: "narrow";
1476
+ medium: "medium";
1477
+ wide: "wide";
1478
+ }>>>;
1479
+ }, z.z.core.$strict>;
1176
1480
  export declare const SlotNodeSchema: z.ZodObject<{
1177
1481
  type: z.ZodLiteral<"slot">;
1178
1482
  id: z.ZodString;
@@ -1454,6 +1758,7 @@ export declare const LayoutNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1454
1758
  contains: "contains";
1455
1759
  "not contains": "not contains";
1456
1760
  "=?": "=?";
1761
+ within: "within";
1457
1762
  }>;
1458
1763
  value: z.ZodOptional<z.ZodJSONSchema>;
1459
1764
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -1692,9 +1997,9 @@ export declare const LayoutNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1692
1997
  full: "full";
1693
1998
  }>, z.ZodInt]>>;
1694
1999
  align: z.ZodOptional<z.ZodEnum<{
2000
+ center: "center";
1695
2001
  end: "end";
1696
2002
  start: "start";
1697
- center: "center";
1698
2003
  }>>;
1699
2004
  href: z.ZodOptional<z.ZodString>;
1700
2005
  caption: z.ZodOptional<z.ZodString>;
@@ -1722,6 +2027,80 @@ export declare const LayoutNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1722
2027
  wide: "wide";
1723
2028
  }>>>;
1724
2029
  readonly: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2030
+ }, z.z.core.$strict>, z.ZodObject<{
2031
+ type: z.ZodLiteral<"map">;
2032
+ id: z.ZodString;
2033
+ label: z.ZodOptional<z.ZodString>;
2034
+ layers: z.ZodArray<z.ZodObject<{
2035
+ id: z.ZodString;
2036
+ label: z.ZodOptional<z.ZodString>;
2037
+ point: z.ZodOptional<z.ZodString>;
2038
+ latitude: z.ZodOptional<z.ZodString>;
2039
+ longitude: z.ZodOptional<z.ZodString>;
2040
+ lines: z.ZodOptional<z.ZodString>;
2041
+ pin: z.ZodOptional<z.ZodObject<{
2042
+ look: z.ZodOptional<z.ZodEnum<{
2043
+ label: "label";
2044
+ pin: "pin";
2045
+ icon: "icon";
2046
+ photo: "photo";
2047
+ dot: "dot";
2048
+ }>>;
2049
+ icon: z.ZodOptional<z.ZodString>;
2050
+ iconField: z.ZodOptional<z.ZodString>;
2051
+ image: z.ZodOptional<z.ZodString>;
2052
+ label: z.ZodOptional<z.ZodString>;
2053
+ tones: z.ZodOptional<z.ZodArray<z.ZodObject<{
2054
+ tone: z.ZodEnum<{
2055
+ success: "success";
2056
+ info: "info";
2057
+ warning: "warning";
2058
+ danger: "danger";
2059
+ muted: "muted";
2060
+ }>;
2061
+ when: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
2062
+ }, z.z.core.$strict>>>;
2063
+ turn: z.ZodOptional<z.ZodString>;
2064
+ widget: z.ZodOptional<z.ZodString>;
2065
+ }, z.z.core.$strict>>;
2066
+ card: z.ZodOptional<z.ZodObject<{
2067
+ title: z.ZodOptional<z.ZodString>;
2068
+ image: z.ZodOptional<z.ZodString>;
2069
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
2070
+ open: z.ZodOptional<z.ZodBoolean>;
2071
+ }, z.z.core.$strict>>;
2072
+ live: z.ZodOptional<z.ZodObject<{
2073
+ staleAfter: z.ZodOptional<z.ZodInt>;
2074
+ follow: z.ZodOptional<z.ZodBoolean>;
2075
+ }, z.z.core.$strict>>;
2076
+ route: z.ZodOptional<z.ZodObject<{
2077
+ from: z.ZodString;
2078
+ to: z.ZodOptional<z.ZodString>;
2079
+ through: z.ZodOptional<z.ZodString>;
2080
+ mode: z.ZodOptional<z.ZodEnum<{
2081
+ car: "car";
2082
+ bike: "bike";
2083
+ foot: "foot";
2084
+ }>>;
2085
+ progress: z.ZodOptional<z.ZodBoolean>;
2086
+ write: z.ZodOptional<z.ZodObject<{
2087
+ seconds: z.ZodOptional<z.ZodString>;
2088
+ metres: z.ZodOptional<z.ZodString>;
2089
+ line: z.ZodOptional<z.ZodString>;
2090
+ }, z.z.core.$strict>>;
2091
+ }, z.z.core.$strict>>;
2092
+ myLocation: z.ZodOptional<z.ZodBoolean>;
2093
+ invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2094
+ }, z.z.core.$strict>>;
2095
+ height: z.ZodOptional<z.ZodInt>;
2096
+ colspan: z.ZodOptional<z.ZodInt>;
2097
+ invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2098
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2099
+ hideOn: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2100
+ narrow: "narrow";
2101
+ medium: "medium";
2102
+ wide: "wide";
2103
+ }>>>;
1725
2104
  }, z.z.core.$strict>], "type">;
1726
2105
  export declare const StepNodeSchema: z.ZodObject<{
1727
2106
  type: z.ZodLiteral<"step">;
@@ -1803,6 +2182,7 @@ export declare const SectionsNodeSchema: z.ZodObject<{
1803
2182
  contains: "contains";
1804
2183
  "not contains": "not contains";
1805
2184
  "=?": "=?";
2185
+ within: "within";
1806
2186
  }>;
1807
2187
  value: z.ZodOptional<z.ZodJSONSchema>;
1808
2188
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -1960,6 +2340,7 @@ export declare const StatButtonSchema: z.ZodObject<{
1960
2340
  contains: "contains";
1961
2341
  "not contains": "not contains";
1962
2342
  "=?": "=?";
2343
+ within: "within";
1963
2344
  }>;
1964
2345
  value: z.ZodOptional<z.ZodJSONSchema>;
1965
2346
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -2126,6 +2507,7 @@ export declare const AlertSchema: z.ZodObject<{
2126
2507
  contains: "contains";
2127
2508
  "not contains": "not contains";
2128
2509
  "=?": "=?";
2510
+ within: "within";
2129
2511
  }>;
2130
2512
  value: z.ZodOptional<z.ZodJSONSchema>;
2131
2513
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -2302,6 +2684,7 @@ export declare const MenuItemSchema: z.ZodObject<{
2302
2684
  contains: "contains";
2303
2685
  "not contains": "not contains";
2304
2686
  "=?": "=?";
2687
+ within: "within";
2305
2688
  }>;
2306
2689
  value: z.ZodOptional<z.ZodJSONSchema>;
2307
2690
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -3032,6 +3415,7 @@ export declare const SheetNodeSchema: z.ZodObject<{
3032
3415
  contains: "contains";
3033
3416
  "not contains": "not contains";
3034
3417
  "=?": "=?";
3418
+ within: "within";
3035
3419
  }>;
3036
3420
  value: z.ZodOptional<z.ZodJSONSchema>;
3037
3421
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -3188,6 +3572,7 @@ export declare const SheetNodeSchema: z.ZodObject<{
3188
3572
  contains: "contains";
3189
3573
  "not contains": "not contains";
3190
3574
  "=?": "=?";
3575
+ within: "within";
3191
3576
  }>;
3192
3577
  value: z.ZodOptional<z.ZodJSONSchema>;
3193
3578
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -3369,6 +3754,7 @@ export declare const SheetNodeSchema: z.ZodObject<{
3369
3754
  contains: "contains";
3370
3755
  "not contains": "not contains";
3371
3756
  "=?": "=?";
3757
+ within: "within";
3372
3758
  }>;
3373
3759
  value: z.ZodOptional<z.ZodJSONSchema>;
3374
3760
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -3577,6 +3963,7 @@ export declare const SheetNodeSchema: z.ZodObject<{
3577
3963
  contains: "contains";
3578
3964
  "not contains": "not contains";
3579
3965
  "=?": "=?";
3966
+ within: "within";
3580
3967
  }>;
3581
3968
  value: z.ZodOptional<z.ZodJSONSchema>;
3582
3969
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -3728,6 +4115,7 @@ export declare const SheetNodeSchema: z.ZodObject<{
3728
4115
  contains: "contains";
3729
4116
  "not contains": "not contains";
3730
4117
  "=?": "=?";
4118
+ within: "within";
3731
4119
  }>;
3732
4120
  value: z.ZodOptional<z.ZodJSONSchema>;
3733
4121
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -3839,6 +4227,50 @@ export declare const SheetNodeSchema: z.ZodObject<{
3839
4227
  }>>>;
3840
4228
  }, z.z.core.$strict>>>;
3841
4229
  }, z.z.core.$strict>;
4230
+ /** A list's records on a map, beside it or instead of it: where each is (a point, or a latitude and a longitude), its pin, its card. */
4231
+ export declare const ListMapSchema: z.ZodObject<{
4232
+ point: z.ZodOptional<z.ZodString>;
4233
+ latitude: z.ZodOptional<z.ZodString>;
4234
+ longitude: z.ZodOptional<z.ZodString>;
4235
+ pin: z.ZodOptional<z.ZodObject<{
4236
+ look: z.ZodOptional<z.ZodEnum<{
4237
+ label: "label";
4238
+ pin: "pin";
4239
+ icon: "icon";
4240
+ photo: "photo";
4241
+ dot: "dot";
4242
+ }>>;
4243
+ icon: z.ZodOptional<z.ZodString>;
4244
+ iconField: z.ZodOptional<z.ZodString>;
4245
+ image: z.ZodOptional<z.ZodString>;
4246
+ label: z.ZodOptional<z.ZodString>;
4247
+ tones: z.ZodOptional<z.ZodArray<z.ZodObject<{
4248
+ tone: z.ZodEnum<{
4249
+ success: "success";
4250
+ info: "info";
4251
+ warning: "warning";
4252
+ danger: "danger";
4253
+ muted: "muted";
4254
+ }>;
4255
+ when: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
4256
+ }, z.z.core.$strict>>>;
4257
+ turn: z.ZodOptional<z.ZodString>;
4258
+ widget: z.ZodOptional<z.ZodString>;
4259
+ }, z.z.core.$strict>>;
4260
+ card: z.ZodOptional<z.ZodObject<{
4261
+ title: z.ZodOptional<z.ZodString>;
4262
+ image: z.ZodOptional<z.ZodString>;
4263
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
4264
+ open: z.ZodOptional<z.ZodBoolean>;
4265
+ }, z.z.core.$strict>>;
4266
+ cluster: z.ZodOptional<z.ZodBoolean>;
4267
+ view: z.ZodOptional<z.ZodEnum<{
4268
+ map: "map";
4269
+ list: "list";
4270
+ both: "both";
4271
+ }>>;
4272
+ limit: z.ZodOptional<z.ZodInt>;
4273
+ }, z.z.core.$strict>;
3842
4274
  export declare const ListNodeSchema: z.ZodObject<{
3843
4275
  type: z.ZodLiteral<"list">;
3844
4276
  id: z.ZodString;
@@ -3873,6 +4305,7 @@ export declare const ListNodeSchema: z.ZodObject<{
3873
4305
  contains: "contains";
3874
4306
  "not contains": "not contains";
3875
4307
  "=?": "=?";
4308
+ within: "within";
3876
4309
  }>;
3877
4310
  value: z.ZodOptional<z.ZodJSONSchema>;
3878
4311
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -3930,6 +4363,7 @@ export declare const ListNodeSchema: z.ZodObject<{
3930
4363
  contains: "contains";
3931
4364
  "not contains": "not contains";
3932
4365
  "=?": "=?";
4366
+ within: "within";
3933
4367
  }>;
3934
4368
  value: z.ZodOptional<z.ZodJSONSchema>;
3935
4369
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -4040,6 +4474,49 @@ export declare const ListNodeSchema: z.ZodObject<{
4040
4474
  wide: "wide";
4041
4475
  }>>>;
4042
4476
  }, z.z.core.$strict>>>;
4477
+ map: z.ZodOptional<z.ZodObject<{
4478
+ point: z.ZodOptional<z.ZodString>;
4479
+ latitude: z.ZodOptional<z.ZodString>;
4480
+ longitude: z.ZodOptional<z.ZodString>;
4481
+ pin: z.ZodOptional<z.ZodObject<{
4482
+ look: z.ZodOptional<z.ZodEnum<{
4483
+ label: "label";
4484
+ pin: "pin";
4485
+ icon: "icon";
4486
+ photo: "photo";
4487
+ dot: "dot";
4488
+ }>>;
4489
+ icon: z.ZodOptional<z.ZodString>;
4490
+ iconField: z.ZodOptional<z.ZodString>;
4491
+ image: z.ZodOptional<z.ZodString>;
4492
+ label: z.ZodOptional<z.ZodString>;
4493
+ tones: z.ZodOptional<z.ZodArray<z.ZodObject<{
4494
+ tone: z.ZodEnum<{
4495
+ success: "success";
4496
+ info: "info";
4497
+ warning: "warning";
4498
+ danger: "danger";
4499
+ muted: "muted";
4500
+ }>;
4501
+ when: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
4502
+ }, z.z.core.$strict>>>;
4503
+ turn: z.ZodOptional<z.ZodString>;
4504
+ widget: z.ZodOptional<z.ZodString>;
4505
+ }, z.z.core.$strict>>;
4506
+ card: z.ZodOptional<z.ZodObject<{
4507
+ title: z.ZodOptional<z.ZodString>;
4508
+ image: z.ZodOptional<z.ZodString>;
4509
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
4510
+ open: z.ZodOptional<z.ZodBoolean>;
4511
+ }, z.z.core.$strict>>;
4512
+ cluster: z.ZodOptional<z.ZodBoolean>;
4513
+ view: z.ZodOptional<z.ZodEnum<{
4514
+ map: "map";
4515
+ list: "list";
4516
+ both: "both";
4517
+ }>>;
4518
+ limit: z.ZodOptional<z.ZodInt>;
4519
+ }, z.z.core.$strict>>;
4043
4520
  }, z.z.core.$strict>;
4044
4521
  export declare const RootLayoutSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4045
4522
  type: z.ZodLiteral<"sheet">;
@@ -4660,6 +5137,7 @@ export declare const RootLayoutSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4660
5137
  contains: "contains";
4661
5138
  "not contains": "not contains";
4662
5139
  "=?": "=?";
5140
+ within: "within";
4663
5141
  }>;
4664
5142
  value: z.ZodOptional<z.ZodJSONSchema>;
4665
5143
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -4816,6 +5294,7 @@ export declare const RootLayoutSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4816
5294
  contains: "contains";
4817
5295
  "not contains": "not contains";
4818
5296
  "=?": "=?";
5297
+ within: "within";
4819
5298
  }>;
4820
5299
  value: z.ZodOptional<z.ZodJSONSchema>;
4821
5300
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -4997,6 +5476,7 @@ export declare const RootLayoutSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4997
5476
  contains: "contains";
4998
5477
  "not contains": "not contains";
4999
5478
  "=?": "=?";
5479
+ within: "within";
5000
5480
  }>;
5001
5481
  value: z.ZodOptional<z.ZodJSONSchema>;
5002
5482
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -5205,6 +5685,7 @@ export declare const RootLayoutSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5205
5685
  contains: "contains";
5206
5686
  "not contains": "not contains";
5207
5687
  "=?": "=?";
5688
+ within: "within";
5208
5689
  }>;
5209
5690
  value: z.ZodOptional<z.ZodJSONSchema>;
5210
5691
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -5356,6 +5837,7 @@ export declare const RootLayoutSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5356
5837
  contains: "contains";
5357
5838
  "not contains": "not contains";
5358
5839
  "=?": "=?";
5840
+ within: "within";
5359
5841
  }>;
5360
5842
  value: z.ZodOptional<z.ZodJSONSchema>;
5361
5843
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -5516,6 +5998,7 @@ export declare const RootLayoutSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5516
5998
  contains: "contains";
5517
5999
  "not contains": "not contains";
5518
6000
  "=?": "=?";
6001
+ within: "within";
5519
6002
  }>;
5520
6003
  value: z.ZodOptional<z.ZodJSONSchema>;
5521
6004
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -5698,6 +6181,7 @@ export declare const RootLayoutSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5698
6181
  contains: "contains";
5699
6182
  "not contains": "not contains";
5700
6183
  "=?": "=?";
6184
+ within: "within";
5701
6185
  }>;
5702
6186
  value: z.ZodOptional<z.ZodJSONSchema>;
5703
6187
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -5755,6 +6239,7 @@ export declare const RootLayoutSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5755
6239
  contains: "contains";
5756
6240
  "not contains": "not contains";
5757
6241
  "=?": "=?";
6242
+ within: "within";
5758
6243
  }>;
5759
6244
  value: z.ZodOptional<z.ZodJSONSchema>;
5760
6245
  valueFrom: z.ZodOptional<z.ZodString>;
@@ -5865,4 +6350,47 @@ export declare const RootLayoutSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5865
6350
  wide: "wide";
5866
6351
  }>>>;
5867
6352
  }, z.z.core.$strict>>>;
6353
+ map: z.ZodOptional<z.ZodObject<{
6354
+ point: z.ZodOptional<z.ZodString>;
6355
+ latitude: z.ZodOptional<z.ZodString>;
6356
+ longitude: z.ZodOptional<z.ZodString>;
6357
+ pin: z.ZodOptional<z.ZodObject<{
6358
+ look: z.ZodOptional<z.ZodEnum<{
6359
+ label: "label";
6360
+ pin: "pin";
6361
+ icon: "icon";
6362
+ photo: "photo";
6363
+ dot: "dot";
6364
+ }>>;
6365
+ icon: z.ZodOptional<z.ZodString>;
6366
+ iconField: z.ZodOptional<z.ZodString>;
6367
+ image: z.ZodOptional<z.ZodString>;
6368
+ label: z.ZodOptional<z.ZodString>;
6369
+ tones: z.ZodOptional<z.ZodArray<z.ZodObject<{
6370
+ tone: z.ZodEnum<{
6371
+ success: "success";
6372
+ info: "info";
6373
+ warning: "warning";
6374
+ danger: "danger";
6375
+ muted: "muted";
6376
+ }>;
6377
+ when: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
6378
+ }, z.z.core.$strict>>>;
6379
+ turn: z.ZodOptional<z.ZodString>;
6380
+ widget: z.ZodOptional<z.ZodString>;
6381
+ }, z.z.core.$strict>>;
6382
+ card: z.ZodOptional<z.ZodObject<{
6383
+ title: z.ZodOptional<z.ZodString>;
6384
+ image: z.ZodOptional<z.ZodString>;
6385
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
6386
+ open: z.ZodOptional<z.ZodBoolean>;
6387
+ }, z.z.core.$strict>>;
6388
+ cluster: z.ZodOptional<z.ZodBoolean>;
6389
+ view: z.ZodOptional<z.ZodEnum<{
6390
+ map: "map";
6391
+ list: "list";
6392
+ both: "both";
6393
+ }>>;
6394
+ limit: z.ZodOptional<z.ZodInt>;
6395
+ }, z.z.core.$strict>>;
5868
6396
  }, z.z.core.$strict>], "type">;