@fieldia/core 0.17.0 → 0.19.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.
- package/package.json +1 -1
- package/schema/page.schema.json +201 -2
- package/src/index.d.mts +2 -1
- package/src/index.d.ts +2 -1
- package/src/index.js +5 -1
- package/src/index.js.map +1 -1
- package/src/index.mjs +2 -1
- package/src/index.mjs.map +1 -1
- package/src/lib/format/address-search.d.mts +12 -0
- package/src/lib/format/address-search.d.ts +12 -0
- package/src/lib/format/address-search.js +32 -0
- package/src/lib/format/address-search.js.map +1 -0
- package/src/lib/format/address-search.mjs +29 -0
- package/src/lib/format/address-search.mjs.map +1 -0
- package/src/lib/format/card-lines.d.mts +16 -0
- package/src/lib/format/card-lines.d.ts +16 -0
- package/src/lib/format/card-lines.js +18 -0
- package/src/lib/format/card-lines.js.map +1 -0
- package/src/lib/format/card-lines.mjs +13 -0
- package/src/lib/format/card-lines.mjs.map +1 -0
- package/src/lib/format/field.d.mts +388 -0
- package/src/lib/format/field.d.ts +388 -0
- package/src/lib/format/field.js +28 -1
- package/src/lib/format/field.js.map +1 -1
- package/src/lib/format/field.mjs +27 -0
- package/src/lib/format/field.mjs.map +1 -1
- package/src/lib/format/layout.d.mts +463 -14
- package/src/lib/format/layout.d.ts +463 -14
- package/src/lib/format/layout.js +35 -4
- package/src/lib/format/layout.js.map +1 -1
- package/src/lib/format/layout.mjs +35 -4
- package/src/lib/format/layout.mjs.map +1 -1
- package/src/lib/format/page.d.mts +207 -1
- package/src/lib/format/page.d.ts +207 -1
- package/src/lib/format/page.js +2 -0
- package/src/lib/format/page.js.map +1 -1
- package/src/lib/format/page.mjs +2 -0
- package/src/lib/format/page.mjs.map +1 -1
- package/src/lib/format/references.d.mts +2 -0
- package/src/lib/format/references.d.ts +2 -0
- package/src/lib/format/references.js +35 -1
- package/src/lib/format/references.js.map +1 -1
- package/src/lib/format/references.mjs +35 -1
- package/src/lib/format/references.mjs.map +1 -1
- package/src/lib/format/themes.d.mts +10 -0
- package/src/lib/format/themes.d.ts +10 -0
- package/src/lib/format/themes.js +10 -1
- package/src/lib/format/themes.js.map +1 -1
- package/src/lib/format/themes.mjs +9 -0
- package/src/lib/format/themes.mjs.map +1 -1
- package/src/lib/format/translate.js +32 -5
- package/src/lib/format/translate.js.map +1 -1
- package/src/lib/format/translate.mjs +32 -5
- package/src/lib/format/translate.mjs.map +1 -1
- package/src/runtime.d.mts +5 -2
- package/src/runtime.d.ts +5 -2
- package/src/runtime.js +7 -1
- package/src/runtime.js.map +1 -1
- package/src/runtime.mjs +2 -0
- package/src/runtime.mjs.map +1 -1
|
@@ -5,6 +5,7 @@ import { type HelpShown, type RootLayout } from './layout.mjs';
|
|
|
5
5
|
import { type PartsLook } from './part-look.mjs';
|
|
6
6
|
import { type Theme } from './themes.mjs';
|
|
7
7
|
export { THEMES, type Theme } from './themes.mjs';
|
|
8
|
+
import { type Skin } from './themes.mjs';
|
|
8
9
|
import { FORMAT_VERSION } from './version.mjs';
|
|
9
10
|
export { FORMAT_VERSION } from './version.mjs';
|
|
10
11
|
/**
|
|
@@ -52,6 +53,13 @@ export interface PageLook {
|
|
|
52
53
|
scheme?: 'light' | 'dark' | 'auto';
|
|
53
54
|
/** A look for each kind of part, over the page's: text boxes, choices, groups, buttons, tables. See `PART_LOOKS`. */
|
|
54
55
|
parts?: PartsLook;
|
|
56
|
+
/**
|
|
57
|
+
* The skin the form is drawn in, unless the app's viewer names one: `quiet`
|
|
58
|
+
* draws each value as plain words until it is pointed at or entered; a
|
|
59
|
+
* section or a field can be quiet on its own instead (`quiet`). A theme's
|
|
60
|
+
* own skin when left out (see `SKINS`).
|
|
61
|
+
*/
|
|
62
|
+
skin?: Skin;
|
|
55
63
|
}
|
|
56
64
|
export interface Page {
|
|
57
65
|
/** The format version, so a reader can refuse what it does not understand. */
|
|
@@ -183,6 +191,28 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
183
191
|
min: z.ZodOptional<z.ZodNumber>;
|
|
184
192
|
max: z.ZodOptional<z.ZodNumber>;
|
|
185
193
|
digits: z.ZodOptional<z.ZodTuple<[z.ZodInt, z.ZodInt], null>>;
|
|
194
|
+
money: z.ZodOptional<z.ZodObject<{
|
|
195
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
196
|
+
symbol: "symbol";
|
|
197
|
+
code: "code";
|
|
198
|
+
}>>;
|
|
199
|
+
at: z.ZodOptional<z.ZodEnum<{
|
|
200
|
+
before: "before";
|
|
201
|
+
after: "after";
|
|
202
|
+
}>>;
|
|
203
|
+
short: z.ZodOptional<z.ZodBoolean>;
|
|
204
|
+
home: z.ZodOptional<z.ZodString>;
|
|
205
|
+
per: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
206
|
+
period: z.ZodEnum<{
|
|
207
|
+
day: "day";
|
|
208
|
+
night: "night";
|
|
209
|
+
week: "week";
|
|
210
|
+
month: "month";
|
|
211
|
+
year: "year";
|
|
212
|
+
}>;
|
|
213
|
+
when: z.ZodOptional<z.ZodString>;
|
|
214
|
+
}, z.core.$strict>>>;
|
|
215
|
+
}, z.core.$strict>>;
|
|
186
216
|
label: z.ZodString;
|
|
187
217
|
help: z.ZodOptional<z.ZodString>;
|
|
188
218
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -460,6 +490,28 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
460
490
|
min: z.ZodOptional<z.ZodNumber>;
|
|
461
491
|
max: z.ZodOptional<z.ZodNumber>;
|
|
462
492
|
digits: z.ZodOptional<z.ZodTuple<[z.ZodInt, z.ZodInt], null>>;
|
|
493
|
+
money: z.ZodOptional<z.ZodObject<{
|
|
494
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
495
|
+
symbol: "symbol";
|
|
496
|
+
code: "code";
|
|
497
|
+
}>>;
|
|
498
|
+
at: z.ZodOptional<z.ZodEnum<{
|
|
499
|
+
before: "before";
|
|
500
|
+
after: "after";
|
|
501
|
+
}>>;
|
|
502
|
+
short: z.ZodOptional<z.ZodBoolean>;
|
|
503
|
+
home: z.ZodOptional<z.ZodString>;
|
|
504
|
+
per: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
505
|
+
period: z.ZodEnum<{
|
|
506
|
+
day: "day";
|
|
507
|
+
night: "night";
|
|
508
|
+
week: "week";
|
|
509
|
+
month: "month";
|
|
510
|
+
year: "year";
|
|
511
|
+
}>;
|
|
512
|
+
when: z.ZodOptional<z.ZodString>;
|
|
513
|
+
}, z.core.$strict>>>;
|
|
514
|
+
}, z.core.$strict>>;
|
|
463
515
|
label: z.ZodString;
|
|
464
516
|
help: z.ZodOptional<z.ZodString>;
|
|
465
517
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -694,6 +746,28 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
694
746
|
min: z.ZodOptional<z.ZodNumber>;
|
|
695
747
|
max: z.ZodOptional<z.ZodNumber>;
|
|
696
748
|
digits: z.ZodOptional<z.ZodTuple<[z.ZodInt, z.ZodInt], null>>;
|
|
749
|
+
money: z.ZodOptional<z.ZodObject<{
|
|
750
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
751
|
+
symbol: "symbol";
|
|
752
|
+
code: "code";
|
|
753
|
+
}>>;
|
|
754
|
+
at: z.ZodOptional<z.ZodEnum<{
|
|
755
|
+
before: "before";
|
|
756
|
+
after: "after";
|
|
757
|
+
}>>;
|
|
758
|
+
short: z.ZodOptional<z.ZodBoolean>;
|
|
759
|
+
home: z.ZodOptional<z.ZodString>;
|
|
760
|
+
per: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
761
|
+
period: z.ZodEnum<{
|
|
762
|
+
day: "day";
|
|
763
|
+
night: "night";
|
|
764
|
+
week: "week";
|
|
765
|
+
month: "month";
|
|
766
|
+
year: "year";
|
|
767
|
+
}>;
|
|
768
|
+
when: z.ZodOptional<z.ZodString>;
|
|
769
|
+
}, z.core.$strict>>>;
|
|
770
|
+
}, z.core.$strict>>;
|
|
697
771
|
label: z.ZodString;
|
|
698
772
|
help: z.ZodOptional<z.ZodString>;
|
|
699
773
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -968,6 +1042,28 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
968
1042
|
min: z.ZodOptional<z.ZodNumber>;
|
|
969
1043
|
max: z.ZodOptional<z.ZodNumber>;
|
|
970
1044
|
digits: z.ZodOptional<z.ZodTuple<[z.ZodInt, z.ZodInt], null>>;
|
|
1045
|
+
money: z.ZodOptional<z.ZodObject<{
|
|
1046
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
1047
|
+
symbol: "symbol";
|
|
1048
|
+
code: "code";
|
|
1049
|
+
}>>;
|
|
1050
|
+
at: z.ZodOptional<z.ZodEnum<{
|
|
1051
|
+
before: "before";
|
|
1052
|
+
after: "after";
|
|
1053
|
+
}>>;
|
|
1054
|
+
short: z.ZodOptional<z.ZodBoolean>;
|
|
1055
|
+
home: z.ZodOptional<z.ZodString>;
|
|
1056
|
+
per: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1057
|
+
period: z.ZodEnum<{
|
|
1058
|
+
day: "day";
|
|
1059
|
+
night: "night";
|
|
1060
|
+
week: "week";
|
|
1061
|
+
month: "month";
|
|
1062
|
+
year: "year";
|
|
1063
|
+
}>;
|
|
1064
|
+
when: z.ZodOptional<z.ZodString>;
|
|
1065
|
+
}, z.core.$strict>>>;
|
|
1066
|
+
}, z.core.$strict>>;
|
|
971
1067
|
label: z.ZodString;
|
|
972
1068
|
help: z.ZodOptional<z.ZodString>;
|
|
973
1069
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1279,6 +1375,28 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
1279
1375
|
min: z.ZodOptional<z.ZodNumber>;
|
|
1280
1376
|
max: z.ZodOptional<z.ZodNumber>;
|
|
1281
1377
|
digits: z.ZodOptional<z.ZodTuple<[z.ZodInt, z.ZodInt], null>>;
|
|
1378
|
+
money: z.ZodOptional<z.ZodObject<{
|
|
1379
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
1380
|
+
symbol: "symbol";
|
|
1381
|
+
code: "code";
|
|
1382
|
+
}>>;
|
|
1383
|
+
at: z.ZodOptional<z.ZodEnum<{
|
|
1384
|
+
before: "before";
|
|
1385
|
+
after: "after";
|
|
1386
|
+
}>>;
|
|
1387
|
+
short: z.ZodOptional<z.ZodBoolean>;
|
|
1388
|
+
home: z.ZodOptional<z.ZodString>;
|
|
1389
|
+
per: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1390
|
+
period: z.ZodEnum<{
|
|
1391
|
+
day: "day";
|
|
1392
|
+
night: "night";
|
|
1393
|
+
week: "week";
|
|
1394
|
+
month: "month";
|
|
1395
|
+
year: "year";
|
|
1396
|
+
}>;
|
|
1397
|
+
when: z.ZodOptional<z.ZodString>;
|
|
1398
|
+
}, z.core.$strict>>>;
|
|
1399
|
+
}, z.core.$strict>>;
|
|
1282
1400
|
label: z.ZodString;
|
|
1283
1401
|
help: z.ZodOptional<z.ZodString>;
|
|
1284
1402
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1553,6 +1671,28 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
1553
1671
|
min: z.ZodOptional<z.ZodNumber>;
|
|
1554
1672
|
max: z.ZodOptional<z.ZodNumber>;
|
|
1555
1673
|
digits: z.ZodOptional<z.ZodTuple<[z.ZodInt, z.ZodInt], null>>;
|
|
1674
|
+
money: z.ZodOptional<z.ZodObject<{
|
|
1675
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
1676
|
+
symbol: "symbol";
|
|
1677
|
+
code: "code";
|
|
1678
|
+
}>>;
|
|
1679
|
+
at: z.ZodOptional<z.ZodEnum<{
|
|
1680
|
+
before: "before";
|
|
1681
|
+
after: "after";
|
|
1682
|
+
}>>;
|
|
1683
|
+
short: z.ZodOptional<z.ZodBoolean>;
|
|
1684
|
+
home: z.ZodOptional<z.ZodString>;
|
|
1685
|
+
per: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1686
|
+
period: z.ZodEnum<{
|
|
1687
|
+
day: "day";
|
|
1688
|
+
night: "night";
|
|
1689
|
+
week: "week";
|
|
1690
|
+
month: "month";
|
|
1691
|
+
year: "year";
|
|
1692
|
+
}>;
|
|
1693
|
+
when: z.ZodOptional<z.ZodString>;
|
|
1694
|
+
}, z.core.$strict>>>;
|
|
1695
|
+
}, z.core.$strict>>;
|
|
1556
1696
|
label: z.ZodString;
|
|
1557
1697
|
help: z.ZodOptional<z.ZodString>;
|
|
1558
1698
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2077,6 +2217,8 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
2077
2217
|
}>>>;
|
|
2078
2218
|
readonly: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2079
2219
|
required: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2220
|
+
quiet: z.ZodOptional<z.ZodBoolean>;
|
|
2221
|
+
readonlyReason: z.ZodOptional<z.ZodString>;
|
|
2080
2222
|
}, z.core.$strict>>>;
|
|
2081
2223
|
before: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2082
2224
|
type: z.ZodLiteral<"field">;
|
|
@@ -2213,6 +2355,8 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
2213
2355
|
}>>>;
|
|
2214
2356
|
readonly: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2215
2357
|
required: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2358
|
+
quiet: z.ZodOptional<z.ZodBoolean>;
|
|
2359
|
+
readonlyReason: z.ZodOptional<z.ZodString>;
|
|
2216
2360
|
}, z.core.$strict>>>;
|
|
2217
2361
|
after: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2218
2362
|
type: z.ZodLiteral<"field">;
|
|
@@ -2349,6 +2493,8 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
2349
2493
|
}>>>;
|
|
2350
2494
|
readonly: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2351
2495
|
required: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2496
|
+
quiet: z.ZodOptional<z.ZodBoolean>;
|
|
2497
|
+
readonlyReason: z.ZodOptional<z.ZodString>;
|
|
2352
2498
|
}, z.core.$strict>>>;
|
|
2353
2499
|
below: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2354
2500
|
type: z.ZodLiteral<"field">;
|
|
@@ -2485,6 +2631,8 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
2485
2631
|
}>>>;
|
|
2486
2632
|
readonly: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2487
2633
|
required: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2634
|
+
quiet: z.ZodOptional<z.ZodBoolean>;
|
|
2635
|
+
readonlyReason: z.ZodOptional<z.ZodString>;
|
|
2488
2636
|
}, z.core.$strict>>>;
|
|
2489
2637
|
}, z.core.$strict>>;
|
|
2490
2638
|
statusbar: z.ZodOptional<z.ZodObject<{
|
|
@@ -3788,12 +3936,58 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
3788
3936
|
}, z.core.$strict>>>;
|
|
3789
3937
|
turn: z.ZodOptional<z.ZodString>;
|
|
3790
3938
|
widget: z.ZodOptional<z.ZodString>;
|
|
3939
|
+
money: z.ZodOptional<z.ZodObject<{
|
|
3940
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
3941
|
+
symbol: "symbol";
|
|
3942
|
+
code: "code";
|
|
3943
|
+
}>>;
|
|
3944
|
+
at: z.ZodOptional<z.ZodEnum<{
|
|
3945
|
+
before: "before";
|
|
3946
|
+
after: "after";
|
|
3947
|
+
}>>;
|
|
3948
|
+
short: z.ZodOptional<z.ZodBoolean>;
|
|
3949
|
+
home: z.ZodOptional<z.ZodString>;
|
|
3950
|
+
per: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3951
|
+
period: z.ZodEnum<{
|
|
3952
|
+
day: "day";
|
|
3953
|
+
night: "night";
|
|
3954
|
+
week: "week";
|
|
3955
|
+
month: "month";
|
|
3956
|
+
year: "year";
|
|
3957
|
+
}>;
|
|
3958
|
+
when: z.ZodOptional<z.ZodString>;
|
|
3959
|
+
}, z.core.$strict>>>;
|
|
3960
|
+
}, z.core.$strict>>;
|
|
3791
3961
|
}, z.core.$strict>>;
|
|
3792
3962
|
card: z.ZodOptional<z.ZodObject<{
|
|
3793
3963
|
title: z.ZodOptional<z.ZodString>;
|
|
3794
3964
|
image: z.ZodOptional<z.ZodString>;
|
|
3795
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString
|
|
3965
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
3966
|
+
field: z.ZodString;
|
|
3967
|
+
unit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
3968
|
+
zero: z.ZodOptional<z.ZodString>;
|
|
3969
|
+
one: z.ZodOptional<z.ZodString>;
|
|
3970
|
+
two: z.ZodOptional<z.ZodString>;
|
|
3971
|
+
few: z.ZodOptional<z.ZodString>;
|
|
3972
|
+
many: z.ZodOptional<z.ZodString>;
|
|
3973
|
+
other: z.ZodString;
|
|
3974
|
+
}, z.core.$strict>]>>;
|
|
3975
|
+
}, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
3976
|
+
field: z.ZodString;
|
|
3977
|
+
unit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
3978
|
+
zero: z.ZodOptional<z.ZodString>;
|
|
3979
|
+
one: z.ZodOptional<z.ZodString>;
|
|
3980
|
+
two: z.ZodOptional<z.ZodString>;
|
|
3981
|
+
few: z.ZodOptional<z.ZodString>;
|
|
3982
|
+
many: z.ZodOptional<z.ZodString>;
|
|
3983
|
+
other: z.ZodString;
|
|
3984
|
+
}, z.core.$strict>]>>;
|
|
3985
|
+
}, z.core.$strict>]>>]>>>;
|
|
3796
3986
|
open: z.ZodOptional<z.ZodBoolean>;
|
|
3987
|
+
labels: z.ZodOptional<z.ZodBoolean>;
|
|
3988
|
+
lead: z.ZodOptional<z.ZodBoolean>;
|
|
3989
|
+
href: z.ZodOptional<z.ZodString>;
|
|
3990
|
+
choose: z.ZodOptional<z.ZodBoolean>;
|
|
3797
3991
|
}, z.core.$strict>>;
|
|
3798
3992
|
cluster: z.ZodOptional<z.ZodBoolean>;
|
|
3799
3993
|
view: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3804,6 +3998,7 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
3804
3998
|
limit: z.ZodOptional<z.ZodInt>;
|
|
3805
3999
|
tools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3806
4000
|
satellite: "satellite";
|
|
4001
|
+
traffic: "traffic";
|
|
3807
4002
|
fullscreen: "fullscreen";
|
|
3808
4003
|
measure: "measure";
|
|
3809
4004
|
nearest: "nearest";
|
|
@@ -3819,6 +4014,12 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
3819
4014
|
heat: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
3820
4015
|
weight: z.ZodOptional<z.ZodString>;
|
|
3821
4016
|
}, z.core.$strict>]>>;
|
|
4017
|
+
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodLiteral<"fill">]>>;
|
|
4018
|
+
gestures: z.ZodOptional<z.ZodEnum<{
|
|
4019
|
+
all: "all";
|
|
4020
|
+
shared: "shared";
|
|
4021
|
+
}>>;
|
|
4022
|
+
fitZoom: z.ZodOptional<z.ZodInt>;
|
|
3822
4023
|
}, z.core.$strict>>;
|
|
3823
4024
|
}, z.core.$strict>], "type">;
|
|
3824
4025
|
maxWidth: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3883,6 +4084,11 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
3883
4084
|
[x: string]: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
3884
4085
|
}, z.core.$strict>>;
|
|
3885
4086
|
}, z.core.$strict>>;
|
|
4087
|
+
skin: z.ZodOptional<z.ZodEnum<{
|
|
4088
|
+
quiet: "quiet";
|
|
4089
|
+
underline: "underline";
|
|
4090
|
+
outlined: "outlined";
|
|
4091
|
+
}>>;
|
|
3886
4092
|
}, z.core.$strict>>;
|
|
3887
4093
|
language: z.ZodOptional<z.ZodString>;
|
|
3888
4094
|
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
package/src/lib/format/page.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { type HelpShown, type RootLayout } from './layout';
|
|
|
5
5
|
import { type PartsLook } from './part-look';
|
|
6
6
|
import { type Theme } from './themes';
|
|
7
7
|
export { THEMES, type Theme } from './themes';
|
|
8
|
+
import { type Skin } from './themes';
|
|
8
9
|
import { FORMAT_VERSION } from './version';
|
|
9
10
|
export { FORMAT_VERSION } from './version';
|
|
10
11
|
/**
|
|
@@ -52,6 +53,13 @@ export interface PageLook {
|
|
|
52
53
|
scheme?: 'light' | 'dark' | 'auto';
|
|
53
54
|
/** A look for each kind of part, over the page's: text boxes, choices, groups, buttons, tables. See `PART_LOOKS`. */
|
|
54
55
|
parts?: PartsLook;
|
|
56
|
+
/**
|
|
57
|
+
* The skin the form is drawn in, unless the app's viewer names one: `quiet`
|
|
58
|
+
* draws each value as plain words until it is pointed at or entered; a
|
|
59
|
+
* section or a field can be quiet on its own instead (`quiet`). A theme's
|
|
60
|
+
* own skin when left out (see `SKINS`).
|
|
61
|
+
*/
|
|
62
|
+
skin?: Skin;
|
|
55
63
|
}
|
|
56
64
|
export interface Page {
|
|
57
65
|
/** The format version, so a reader can refuse what it does not understand. */
|
|
@@ -183,6 +191,28 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
183
191
|
min: z.ZodOptional<z.ZodNumber>;
|
|
184
192
|
max: z.ZodOptional<z.ZodNumber>;
|
|
185
193
|
digits: z.ZodOptional<z.ZodTuple<[z.ZodInt, z.ZodInt], null>>;
|
|
194
|
+
money: z.ZodOptional<z.ZodObject<{
|
|
195
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
196
|
+
symbol: "symbol";
|
|
197
|
+
code: "code";
|
|
198
|
+
}>>;
|
|
199
|
+
at: z.ZodOptional<z.ZodEnum<{
|
|
200
|
+
before: "before";
|
|
201
|
+
after: "after";
|
|
202
|
+
}>>;
|
|
203
|
+
short: z.ZodOptional<z.ZodBoolean>;
|
|
204
|
+
home: z.ZodOptional<z.ZodString>;
|
|
205
|
+
per: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
206
|
+
period: z.ZodEnum<{
|
|
207
|
+
day: "day";
|
|
208
|
+
night: "night";
|
|
209
|
+
week: "week";
|
|
210
|
+
month: "month";
|
|
211
|
+
year: "year";
|
|
212
|
+
}>;
|
|
213
|
+
when: z.ZodOptional<z.ZodString>;
|
|
214
|
+
}, z.z.core.$strict>>>;
|
|
215
|
+
}, z.z.core.$strict>>;
|
|
186
216
|
label: z.ZodString;
|
|
187
217
|
help: z.ZodOptional<z.ZodString>;
|
|
188
218
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -460,6 +490,28 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
460
490
|
min: z.ZodOptional<z.ZodNumber>;
|
|
461
491
|
max: z.ZodOptional<z.ZodNumber>;
|
|
462
492
|
digits: z.ZodOptional<z.ZodTuple<[z.ZodInt, z.ZodInt], null>>;
|
|
493
|
+
money: z.ZodOptional<z.ZodObject<{
|
|
494
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
495
|
+
symbol: "symbol";
|
|
496
|
+
code: "code";
|
|
497
|
+
}>>;
|
|
498
|
+
at: z.ZodOptional<z.ZodEnum<{
|
|
499
|
+
before: "before";
|
|
500
|
+
after: "after";
|
|
501
|
+
}>>;
|
|
502
|
+
short: z.ZodOptional<z.ZodBoolean>;
|
|
503
|
+
home: z.ZodOptional<z.ZodString>;
|
|
504
|
+
per: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
505
|
+
period: z.ZodEnum<{
|
|
506
|
+
day: "day";
|
|
507
|
+
night: "night";
|
|
508
|
+
week: "week";
|
|
509
|
+
month: "month";
|
|
510
|
+
year: "year";
|
|
511
|
+
}>;
|
|
512
|
+
when: z.ZodOptional<z.ZodString>;
|
|
513
|
+
}, z.z.core.$strict>>>;
|
|
514
|
+
}, z.z.core.$strict>>;
|
|
463
515
|
label: z.ZodString;
|
|
464
516
|
help: z.ZodOptional<z.ZodString>;
|
|
465
517
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -694,6 +746,28 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
694
746
|
min: z.ZodOptional<z.ZodNumber>;
|
|
695
747
|
max: z.ZodOptional<z.ZodNumber>;
|
|
696
748
|
digits: z.ZodOptional<z.ZodTuple<[z.ZodInt, z.ZodInt], null>>;
|
|
749
|
+
money: z.ZodOptional<z.ZodObject<{
|
|
750
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
751
|
+
symbol: "symbol";
|
|
752
|
+
code: "code";
|
|
753
|
+
}>>;
|
|
754
|
+
at: z.ZodOptional<z.ZodEnum<{
|
|
755
|
+
before: "before";
|
|
756
|
+
after: "after";
|
|
757
|
+
}>>;
|
|
758
|
+
short: z.ZodOptional<z.ZodBoolean>;
|
|
759
|
+
home: z.ZodOptional<z.ZodString>;
|
|
760
|
+
per: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
761
|
+
period: z.ZodEnum<{
|
|
762
|
+
day: "day";
|
|
763
|
+
night: "night";
|
|
764
|
+
week: "week";
|
|
765
|
+
month: "month";
|
|
766
|
+
year: "year";
|
|
767
|
+
}>;
|
|
768
|
+
when: z.ZodOptional<z.ZodString>;
|
|
769
|
+
}, z.z.core.$strict>>>;
|
|
770
|
+
}, z.z.core.$strict>>;
|
|
697
771
|
label: z.ZodString;
|
|
698
772
|
help: z.ZodOptional<z.ZodString>;
|
|
699
773
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -968,6 +1042,28 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
968
1042
|
min: z.ZodOptional<z.ZodNumber>;
|
|
969
1043
|
max: z.ZodOptional<z.ZodNumber>;
|
|
970
1044
|
digits: z.ZodOptional<z.ZodTuple<[z.ZodInt, z.ZodInt], null>>;
|
|
1045
|
+
money: z.ZodOptional<z.ZodObject<{
|
|
1046
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
1047
|
+
symbol: "symbol";
|
|
1048
|
+
code: "code";
|
|
1049
|
+
}>>;
|
|
1050
|
+
at: z.ZodOptional<z.ZodEnum<{
|
|
1051
|
+
before: "before";
|
|
1052
|
+
after: "after";
|
|
1053
|
+
}>>;
|
|
1054
|
+
short: z.ZodOptional<z.ZodBoolean>;
|
|
1055
|
+
home: z.ZodOptional<z.ZodString>;
|
|
1056
|
+
per: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1057
|
+
period: z.ZodEnum<{
|
|
1058
|
+
day: "day";
|
|
1059
|
+
night: "night";
|
|
1060
|
+
week: "week";
|
|
1061
|
+
month: "month";
|
|
1062
|
+
year: "year";
|
|
1063
|
+
}>;
|
|
1064
|
+
when: z.ZodOptional<z.ZodString>;
|
|
1065
|
+
}, z.z.core.$strict>>>;
|
|
1066
|
+
}, z.z.core.$strict>>;
|
|
971
1067
|
label: z.ZodString;
|
|
972
1068
|
help: z.ZodOptional<z.ZodString>;
|
|
973
1069
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1279,6 +1375,28 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
1279
1375
|
min: z.ZodOptional<z.ZodNumber>;
|
|
1280
1376
|
max: z.ZodOptional<z.ZodNumber>;
|
|
1281
1377
|
digits: z.ZodOptional<z.ZodTuple<[z.ZodInt, z.ZodInt], null>>;
|
|
1378
|
+
money: z.ZodOptional<z.ZodObject<{
|
|
1379
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
1380
|
+
symbol: "symbol";
|
|
1381
|
+
code: "code";
|
|
1382
|
+
}>>;
|
|
1383
|
+
at: z.ZodOptional<z.ZodEnum<{
|
|
1384
|
+
before: "before";
|
|
1385
|
+
after: "after";
|
|
1386
|
+
}>>;
|
|
1387
|
+
short: z.ZodOptional<z.ZodBoolean>;
|
|
1388
|
+
home: z.ZodOptional<z.ZodString>;
|
|
1389
|
+
per: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1390
|
+
period: z.ZodEnum<{
|
|
1391
|
+
day: "day";
|
|
1392
|
+
night: "night";
|
|
1393
|
+
week: "week";
|
|
1394
|
+
month: "month";
|
|
1395
|
+
year: "year";
|
|
1396
|
+
}>;
|
|
1397
|
+
when: z.ZodOptional<z.ZodString>;
|
|
1398
|
+
}, z.z.core.$strict>>>;
|
|
1399
|
+
}, z.z.core.$strict>>;
|
|
1282
1400
|
label: z.ZodString;
|
|
1283
1401
|
help: z.ZodOptional<z.ZodString>;
|
|
1284
1402
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1553,6 +1671,28 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
1553
1671
|
min: z.ZodOptional<z.ZodNumber>;
|
|
1554
1672
|
max: z.ZodOptional<z.ZodNumber>;
|
|
1555
1673
|
digits: z.ZodOptional<z.ZodTuple<[z.ZodInt, z.ZodInt], null>>;
|
|
1674
|
+
money: z.ZodOptional<z.ZodObject<{
|
|
1675
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
1676
|
+
symbol: "symbol";
|
|
1677
|
+
code: "code";
|
|
1678
|
+
}>>;
|
|
1679
|
+
at: z.ZodOptional<z.ZodEnum<{
|
|
1680
|
+
before: "before";
|
|
1681
|
+
after: "after";
|
|
1682
|
+
}>>;
|
|
1683
|
+
short: z.ZodOptional<z.ZodBoolean>;
|
|
1684
|
+
home: z.ZodOptional<z.ZodString>;
|
|
1685
|
+
per: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1686
|
+
period: z.ZodEnum<{
|
|
1687
|
+
day: "day";
|
|
1688
|
+
night: "night";
|
|
1689
|
+
week: "week";
|
|
1690
|
+
month: "month";
|
|
1691
|
+
year: "year";
|
|
1692
|
+
}>;
|
|
1693
|
+
when: z.ZodOptional<z.ZodString>;
|
|
1694
|
+
}, z.z.core.$strict>>>;
|
|
1695
|
+
}, z.z.core.$strict>>;
|
|
1556
1696
|
label: z.ZodString;
|
|
1557
1697
|
help: z.ZodOptional<z.ZodString>;
|
|
1558
1698
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2077,6 +2217,8 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
2077
2217
|
}>>>;
|
|
2078
2218
|
readonly: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2079
2219
|
required: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2220
|
+
quiet: z.ZodOptional<z.ZodBoolean>;
|
|
2221
|
+
readonlyReason: z.ZodOptional<z.ZodString>;
|
|
2080
2222
|
}, z.z.core.$strict>>>;
|
|
2081
2223
|
before: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2082
2224
|
type: z.ZodLiteral<"field">;
|
|
@@ -2213,6 +2355,8 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
2213
2355
|
}>>>;
|
|
2214
2356
|
readonly: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2215
2357
|
required: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2358
|
+
quiet: z.ZodOptional<z.ZodBoolean>;
|
|
2359
|
+
readonlyReason: z.ZodOptional<z.ZodString>;
|
|
2216
2360
|
}, z.z.core.$strict>>>;
|
|
2217
2361
|
after: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2218
2362
|
type: z.ZodLiteral<"field">;
|
|
@@ -2349,6 +2493,8 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
2349
2493
|
}>>>;
|
|
2350
2494
|
readonly: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2351
2495
|
required: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2496
|
+
quiet: z.ZodOptional<z.ZodBoolean>;
|
|
2497
|
+
readonlyReason: z.ZodOptional<z.ZodString>;
|
|
2352
2498
|
}, z.z.core.$strict>>>;
|
|
2353
2499
|
below: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2354
2500
|
type: z.ZodLiteral<"field">;
|
|
@@ -2485,6 +2631,8 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
2485
2631
|
}>>>;
|
|
2486
2632
|
readonly: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2487
2633
|
required: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2634
|
+
quiet: z.ZodOptional<z.ZodBoolean>;
|
|
2635
|
+
readonlyReason: z.ZodOptional<z.ZodString>;
|
|
2488
2636
|
}, z.z.core.$strict>>>;
|
|
2489
2637
|
}, z.z.core.$strict>>;
|
|
2490
2638
|
statusbar: z.ZodOptional<z.ZodObject<{
|
|
@@ -3788,12 +3936,58 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
3788
3936
|
}, z.z.core.$strict>>>;
|
|
3789
3937
|
turn: z.ZodOptional<z.ZodString>;
|
|
3790
3938
|
widget: z.ZodOptional<z.ZodString>;
|
|
3939
|
+
money: z.ZodOptional<z.ZodObject<{
|
|
3940
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
3941
|
+
symbol: "symbol";
|
|
3942
|
+
code: "code";
|
|
3943
|
+
}>>;
|
|
3944
|
+
at: z.ZodOptional<z.ZodEnum<{
|
|
3945
|
+
before: "before";
|
|
3946
|
+
after: "after";
|
|
3947
|
+
}>>;
|
|
3948
|
+
short: z.ZodOptional<z.ZodBoolean>;
|
|
3949
|
+
home: z.ZodOptional<z.ZodString>;
|
|
3950
|
+
per: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3951
|
+
period: z.ZodEnum<{
|
|
3952
|
+
day: "day";
|
|
3953
|
+
night: "night";
|
|
3954
|
+
week: "week";
|
|
3955
|
+
month: "month";
|
|
3956
|
+
year: "year";
|
|
3957
|
+
}>;
|
|
3958
|
+
when: z.ZodOptional<z.ZodString>;
|
|
3959
|
+
}, z.z.core.$strict>>>;
|
|
3960
|
+
}, z.z.core.$strict>>;
|
|
3791
3961
|
}, z.z.core.$strict>>;
|
|
3792
3962
|
card: z.ZodOptional<z.ZodObject<{
|
|
3793
3963
|
title: z.ZodOptional<z.ZodString>;
|
|
3794
3964
|
image: z.ZodOptional<z.ZodString>;
|
|
3795
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString
|
|
3965
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
3966
|
+
field: z.ZodString;
|
|
3967
|
+
unit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
3968
|
+
zero: z.ZodOptional<z.ZodString>;
|
|
3969
|
+
one: z.ZodOptional<z.ZodString>;
|
|
3970
|
+
two: z.ZodOptional<z.ZodString>;
|
|
3971
|
+
few: z.ZodOptional<z.ZodString>;
|
|
3972
|
+
many: z.ZodOptional<z.ZodString>;
|
|
3973
|
+
other: z.ZodString;
|
|
3974
|
+
}, z.z.core.$strict>]>>;
|
|
3975
|
+
}, z.z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
3976
|
+
field: z.ZodString;
|
|
3977
|
+
unit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
3978
|
+
zero: z.ZodOptional<z.ZodString>;
|
|
3979
|
+
one: z.ZodOptional<z.ZodString>;
|
|
3980
|
+
two: z.ZodOptional<z.ZodString>;
|
|
3981
|
+
few: z.ZodOptional<z.ZodString>;
|
|
3982
|
+
many: z.ZodOptional<z.ZodString>;
|
|
3983
|
+
other: z.ZodString;
|
|
3984
|
+
}, z.z.core.$strict>]>>;
|
|
3985
|
+
}, z.z.core.$strict>]>>]>>>;
|
|
3796
3986
|
open: z.ZodOptional<z.ZodBoolean>;
|
|
3987
|
+
labels: z.ZodOptional<z.ZodBoolean>;
|
|
3988
|
+
lead: z.ZodOptional<z.ZodBoolean>;
|
|
3989
|
+
href: z.ZodOptional<z.ZodString>;
|
|
3990
|
+
choose: z.ZodOptional<z.ZodBoolean>;
|
|
3797
3991
|
}, z.z.core.$strict>>;
|
|
3798
3992
|
cluster: z.ZodOptional<z.ZodBoolean>;
|
|
3799
3993
|
view: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3804,6 +3998,7 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
3804
3998
|
limit: z.ZodOptional<z.ZodInt>;
|
|
3805
3999
|
tools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3806
4000
|
satellite: "satellite";
|
|
4001
|
+
traffic: "traffic";
|
|
3807
4002
|
fullscreen: "fullscreen";
|
|
3808
4003
|
measure: "measure";
|
|
3809
4004
|
nearest: "nearest";
|
|
@@ -3819,6 +4014,12 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
3819
4014
|
heat: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
3820
4015
|
weight: z.ZodOptional<z.ZodString>;
|
|
3821
4016
|
}, z.z.core.$strict>]>>;
|
|
4017
|
+
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodLiteral<"fill">]>>;
|
|
4018
|
+
gestures: z.ZodOptional<z.ZodEnum<{
|
|
4019
|
+
all: "all";
|
|
4020
|
+
shared: "shared";
|
|
4021
|
+
}>>;
|
|
4022
|
+
fitZoom: z.ZodOptional<z.ZodInt>;
|
|
3822
4023
|
}, z.z.core.$strict>>;
|
|
3823
4024
|
}, z.z.core.$strict>], "type">;
|
|
3824
4025
|
maxWidth: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3883,6 +4084,11 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
3883
4084
|
[x: string]: z.ZodOptional<z.ZodType<unknown, unknown, z.z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
3884
4085
|
}, z.z.core.$strict>>;
|
|
3885
4086
|
}, z.z.core.$strict>>;
|
|
4087
|
+
skin: z.ZodOptional<z.ZodEnum<{
|
|
4088
|
+
quiet: "quiet";
|
|
4089
|
+
underline: "underline";
|
|
4090
|
+
outlined: "outlined";
|
|
4091
|
+
}>>;
|
|
3886
4092
|
}, z.z.core.$strict>>;
|
|
3887
4093
|
language: z.ZodOptional<z.ZodString>;
|
|
3888
4094
|
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
package/src/lib/format/page.js
CHANGED
|
@@ -9,6 +9,7 @@ const part_look_1 = require("./part-look");
|
|
|
9
9
|
const themes_1 = require("./themes");
|
|
10
10
|
var themes_2 = require("./themes");
|
|
11
11
|
Object.defineProperty(exports, "THEMES", { enumerable: true, get: function () { return themes_2.THEMES; } });
|
|
12
|
+
const themes_3 = require("./themes");
|
|
12
13
|
const version_1 = require("./version");
|
|
13
14
|
var version_2 = require("./version");
|
|
14
15
|
Object.defineProperty(exports, "FORMAT_VERSION", { enumerable: true, get: function () { return version_2.FORMAT_VERSION; } });
|
|
@@ -51,6 +52,7 @@ exports.PageSchema = z
|
|
|
51
52
|
readonlyShown: z.enum(['text', 'box']).optional(),
|
|
52
53
|
scheme: z.enum(['light', 'dark', 'auto']).optional(),
|
|
53
54
|
parts: PartsLookSchema.optional(),
|
|
55
|
+
skin: z.enum(themes_3.SKINS).optional(),
|
|
54
56
|
})
|
|
55
57
|
.optional(),
|
|
56
58
|
language: z.string().regex(/^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$/).optional(),
|