@fieldia/core 0.31.1 → 0.33.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/README.md +1 -1
- package/package.json +1 -1
- package/schema/page.schema.json +129 -1
- package/src/index.d.mts +2 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +10 -2
- package/src/index.js.map +1 -1
- package/src/index.mjs +3 -0
- package/src/index.mjs.map +1 -1
- package/src/lib/format/layout.d.mts +856 -6
- package/src/lib/format/layout.d.ts +856 -6
- package/src/lib/format/layout.js +5 -1
- package/src/lib/format/layout.js.map +1 -1
- package/src/lib/format/layout.mjs +5 -1
- package/src/lib/format/layout.mjs.map +1 -1
- package/src/lib/format/loading-schema.d.mts +68 -0
- package/src/lib/format/loading-schema.d.ts +68 -0
- package/src/lib/format/loading-schema.js +49 -0
- package/src/lib/format/loading-schema.js.map +1 -0
- package/src/lib/format/loading-schema.mjs +45 -0
- package/src/lib/format/loading-schema.mjs.map +1 -0
- package/src/lib/format/loading.d.mts +77 -0
- package/src/lib/format/loading.d.ts +77 -0
- package/src/lib/format/loading.js +51 -0
- package/src/lib/format/loading.js.map +1 -0
- package/src/lib/format/loading.mjs +48 -0
- package/src/lib/format/loading.mjs.map +1 -0
- package/src/lib/format/page.d.mts +259 -2
- package/src/lib/format/page.d.ts +259 -2
- 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/phone.d.mts +8 -0
- package/src/lib/format/phone.d.ts +8 -0
- package/src/lib/format/phone.js +7 -2
- package/src/lib/format/phone.js.map +1 -1
- package/src/lib/format/phone.mjs +7 -2
- package/src/lib/format/phone.mjs.map +1 -1
- package/src/lib/format/upgrade.d.mts +5 -1
- package/src/lib/format/upgrade.d.ts +5 -1
- package/src/lib/format/upgrade.js +5 -1
- package/src/lib/format/upgrade.js.map +1 -1
- package/src/lib/format/upgrade.mjs +5 -1
- package/src/lib/format/upgrade.mjs.map +1 -1
- package/src/lib/format/version.d.mts +2 -2
- package/src/lib/format/version.d.ts +2 -2
- package/src/lib/format/version.js +2 -2
- package/src/lib/format/version.js.map +1 -1
- package/src/lib/format/version.mjs +2 -2
- package/src/lib/format/version.mjs.map +1 -1
- package/src/lib/record/data-source.d.mts +6 -0
- package/src/lib/record/data-source.d.ts +6 -0
- package/src/lib/record/data-source.js.map +1 -1
- package/src/lib/record/data-source.mjs.map +1 -1
- package/src/runtime.d.mts +1 -0
- package/src/runtime.d.ts +1 -0
- package/src/runtime.js +6 -4
- package/src/runtime.js.map +1 -1
- package/src/runtime.mjs +1 -0
- package/src/runtime.mjs.map +1 -1
|
@@ -14,6 +14,7 @@ import { type PageQuiz } from './quiz.mjs';
|
|
|
14
14
|
import { type PageReview, type TimeLimit } from './flow.mjs';
|
|
15
15
|
import { type PagePrefill } from './prefill.mjs';
|
|
16
16
|
import { type PagePayment } from './payment.mjs';
|
|
17
|
+
import type { PageLoading } from './loading.mjs';
|
|
17
18
|
import { type Theme } from './themes.mjs';
|
|
18
19
|
export { THEMES, type Theme } from './themes.mjs';
|
|
19
20
|
import { type Skin } from './themes.mjs';
|
|
@@ -292,6 +293,16 @@ export interface Page {
|
|
|
292
293
|
templates?: true | {
|
|
293
294
|
fields: string[];
|
|
294
295
|
};
|
|
296
|
+
/**
|
|
297
|
+
* How the page looks while it waits for an answer, moment by moment: a record or a list drawn for the first time
|
|
298
|
+
* (`first`), asked again (`refresh`), its next rows (`more`), a link's suggestions (`search`), a save or a button's
|
|
299
|
+
* steps (`action`); the skeleton's, the spinner's and the bar's looks; how long before a loader shows, how long it
|
|
300
|
+
* stays, when "Still loading…" is said and when the wait ends as failed; what a failure shows. Over the app's own
|
|
301
|
+
* (the viewer's `loading`); a list, a related list, a map or a field with a search may say its own. Left out,
|
|
302
|
+
* Fieldia's defaults (`LOADING_DEFAULTS`): a skeleton first, what is shown kept with a bar over it as it is asked
|
|
303
|
+
* again. See `PageLoading`.
|
|
304
|
+
*/
|
|
305
|
+
loading?: PageLoading;
|
|
295
306
|
}
|
|
296
307
|
export declare const PageDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
297
308
|
kind: z.ZodLiteral<"record">;
|
|
@@ -301,7 +312,7 @@ export declare const PageDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
301
312
|
}, z.core.$strict>], "kind">;
|
|
302
313
|
export declare const PageSchema: z.ZodObject<{
|
|
303
314
|
fieldia: z.ZodEnum<{
|
|
304
|
-
|
|
315
|
+
0.12: "0.12";
|
|
305
316
|
0.1: "0.1";
|
|
306
317
|
0.2: "0.2";
|
|
307
318
|
0.3: "0.3";
|
|
@@ -311,6 +322,8 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
311
322
|
0.7: "0.7";
|
|
312
323
|
0.8: "0.8";
|
|
313
324
|
0.9: "0.9";
|
|
325
|
+
"0.10": "0.10";
|
|
326
|
+
0.11: "0.11";
|
|
314
327
|
}>;
|
|
315
328
|
id: z.ZodString;
|
|
316
329
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -3755,11 +3768,11 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
3755
3768
|
collapsed: z.ZodOptional<z.ZodBoolean>;
|
|
3756
3769
|
colspan: z.ZodOptional<z.ZodInt>;
|
|
3757
3770
|
style: z.ZodOptional<z.ZodEnum<{
|
|
3771
|
+
inline: "inline";
|
|
3758
3772
|
card: "card";
|
|
3759
3773
|
plain: "plain";
|
|
3760
3774
|
line: "line";
|
|
3761
3775
|
framed: "framed";
|
|
3762
|
-
inline: "inline";
|
|
3763
3776
|
}>>;
|
|
3764
3777
|
labels: z.ZodOptional<z.ZodEnum<{
|
|
3765
3778
|
above: "above";
|
|
@@ -4173,6 +4186,66 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
4173
4186
|
medium: "medium";
|
|
4174
4187
|
wide: "wide";
|
|
4175
4188
|
}>>>;
|
|
4189
|
+
loading: z.ZodOptional<z.ZodObject<{
|
|
4190
|
+
first: z.ZodOptional<z.ZodEnum<{
|
|
4191
|
+
text: "text";
|
|
4192
|
+
custom: "custom";
|
|
4193
|
+
skeleton: "skeleton";
|
|
4194
|
+
spinner: "spinner";
|
|
4195
|
+
progress: "progress";
|
|
4196
|
+
none: "none";
|
|
4197
|
+
}>>;
|
|
4198
|
+
refresh: z.ZodOptional<z.ZodEnum<{
|
|
4199
|
+
custom: "custom";
|
|
4200
|
+
skeleton: "skeleton";
|
|
4201
|
+
spinner: "spinner";
|
|
4202
|
+
none: "none";
|
|
4203
|
+
keep: "keep";
|
|
4204
|
+
dim: "dim";
|
|
4205
|
+
}>>;
|
|
4206
|
+
more: z.ZodOptional<z.ZodEnum<{
|
|
4207
|
+
custom: "custom";
|
|
4208
|
+
skeleton: "skeleton";
|
|
4209
|
+
spinner: "spinner";
|
|
4210
|
+
none: "none";
|
|
4211
|
+
row: "row";
|
|
4212
|
+
}>>;
|
|
4213
|
+
search: z.ZodOptional<z.ZodEnum<{
|
|
4214
|
+
custom: "custom";
|
|
4215
|
+
spinner: "spinner";
|
|
4216
|
+
none: "none";
|
|
4217
|
+
inline: "inline";
|
|
4218
|
+
}>>;
|
|
4219
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
4220
|
+
custom: "custom";
|
|
4221
|
+
button: "button";
|
|
4222
|
+
none: "none";
|
|
4223
|
+
bar: "bar";
|
|
4224
|
+
overlay: "overlay";
|
|
4225
|
+
}>>;
|
|
4226
|
+
skeleton: z.ZodOptional<z.ZodEnum<{
|
|
4227
|
+
shimmer: "shimmer";
|
|
4228
|
+
pulse: "pulse";
|
|
4229
|
+
static: "static";
|
|
4230
|
+
}>>;
|
|
4231
|
+
spinner: z.ZodOptional<z.ZodEnum<{
|
|
4232
|
+
ring: "ring";
|
|
4233
|
+
dots: "dots";
|
|
4234
|
+
}>>;
|
|
4235
|
+
progress: z.ZodOptional<z.ZodEnum<{
|
|
4236
|
+
top: "top";
|
|
4237
|
+
inline: "inline";
|
|
4238
|
+
}>>;
|
|
4239
|
+
delay: z.ZodOptional<z.ZodInt>;
|
|
4240
|
+
minShown: z.ZodOptional<z.ZodInt>;
|
|
4241
|
+
slowAfter: z.ZodOptional<z.ZodInt>;
|
|
4242
|
+
timeout: z.ZodOptional<z.ZodInt>;
|
|
4243
|
+
error: z.ZodOptional<z.ZodEnum<{
|
|
4244
|
+
custom: "custom";
|
|
4245
|
+
inline: "inline";
|
|
4246
|
+
toast: "toast";
|
|
4247
|
+
}>>;
|
|
4248
|
+
}, z.core.$strict>>;
|
|
4176
4249
|
}, z.core.$strict>, z.ZodObject<{
|
|
4177
4250
|
type: z.ZodLiteral<"related">;
|
|
4178
4251
|
id: z.ZodString;
|
|
@@ -4877,6 +4950,66 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
4877
4950
|
wide: "wide";
|
|
4878
4951
|
}>>>;
|
|
4879
4952
|
print: z.ZodOptional<z.ZodBoolean>;
|
|
4953
|
+
loading: z.ZodOptional<z.ZodObject<{
|
|
4954
|
+
first: z.ZodOptional<z.ZodEnum<{
|
|
4955
|
+
text: "text";
|
|
4956
|
+
custom: "custom";
|
|
4957
|
+
skeleton: "skeleton";
|
|
4958
|
+
spinner: "spinner";
|
|
4959
|
+
progress: "progress";
|
|
4960
|
+
none: "none";
|
|
4961
|
+
}>>;
|
|
4962
|
+
refresh: z.ZodOptional<z.ZodEnum<{
|
|
4963
|
+
custom: "custom";
|
|
4964
|
+
skeleton: "skeleton";
|
|
4965
|
+
spinner: "spinner";
|
|
4966
|
+
none: "none";
|
|
4967
|
+
keep: "keep";
|
|
4968
|
+
dim: "dim";
|
|
4969
|
+
}>>;
|
|
4970
|
+
more: z.ZodOptional<z.ZodEnum<{
|
|
4971
|
+
custom: "custom";
|
|
4972
|
+
skeleton: "skeleton";
|
|
4973
|
+
spinner: "spinner";
|
|
4974
|
+
none: "none";
|
|
4975
|
+
row: "row";
|
|
4976
|
+
}>>;
|
|
4977
|
+
search: z.ZodOptional<z.ZodEnum<{
|
|
4978
|
+
custom: "custom";
|
|
4979
|
+
spinner: "spinner";
|
|
4980
|
+
none: "none";
|
|
4981
|
+
inline: "inline";
|
|
4982
|
+
}>>;
|
|
4983
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
4984
|
+
custom: "custom";
|
|
4985
|
+
button: "button";
|
|
4986
|
+
none: "none";
|
|
4987
|
+
bar: "bar";
|
|
4988
|
+
overlay: "overlay";
|
|
4989
|
+
}>>;
|
|
4990
|
+
skeleton: z.ZodOptional<z.ZodEnum<{
|
|
4991
|
+
shimmer: "shimmer";
|
|
4992
|
+
pulse: "pulse";
|
|
4993
|
+
static: "static";
|
|
4994
|
+
}>>;
|
|
4995
|
+
spinner: z.ZodOptional<z.ZodEnum<{
|
|
4996
|
+
ring: "ring";
|
|
4997
|
+
dots: "dots";
|
|
4998
|
+
}>>;
|
|
4999
|
+
progress: z.ZodOptional<z.ZodEnum<{
|
|
5000
|
+
top: "top";
|
|
5001
|
+
inline: "inline";
|
|
5002
|
+
}>>;
|
|
5003
|
+
delay: z.ZodOptional<z.ZodInt>;
|
|
5004
|
+
minShown: z.ZodOptional<z.ZodInt>;
|
|
5005
|
+
slowAfter: z.ZodOptional<z.ZodInt>;
|
|
5006
|
+
timeout: z.ZodOptional<z.ZodInt>;
|
|
5007
|
+
error: z.ZodOptional<z.ZodEnum<{
|
|
5008
|
+
custom: "custom";
|
|
5009
|
+
inline: "inline";
|
|
5010
|
+
toast: "toast";
|
|
5011
|
+
}>>;
|
|
5012
|
+
}, z.core.$strict>>;
|
|
4880
5013
|
}, z.core.$strict>], "type">>;
|
|
4881
5014
|
}, z.core.$strict>>;
|
|
4882
5015
|
updated: z.ZodOptional<z.ZodObject<{
|
|
@@ -8589,6 +8722,66 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
8589
8722
|
add: z.ZodOptional<z.ZodBoolean>;
|
|
8590
8723
|
open: z.ZodOptional<z.ZodBoolean>;
|
|
8591
8724
|
}, z.core.$strict>]>>;
|
|
8725
|
+
loading: z.ZodOptional<z.ZodObject<{
|
|
8726
|
+
first: z.ZodOptional<z.ZodEnum<{
|
|
8727
|
+
text: "text";
|
|
8728
|
+
custom: "custom";
|
|
8729
|
+
skeleton: "skeleton";
|
|
8730
|
+
spinner: "spinner";
|
|
8731
|
+
progress: "progress";
|
|
8732
|
+
none: "none";
|
|
8733
|
+
}>>;
|
|
8734
|
+
refresh: z.ZodOptional<z.ZodEnum<{
|
|
8735
|
+
custom: "custom";
|
|
8736
|
+
skeleton: "skeleton";
|
|
8737
|
+
spinner: "spinner";
|
|
8738
|
+
none: "none";
|
|
8739
|
+
keep: "keep";
|
|
8740
|
+
dim: "dim";
|
|
8741
|
+
}>>;
|
|
8742
|
+
more: z.ZodOptional<z.ZodEnum<{
|
|
8743
|
+
custom: "custom";
|
|
8744
|
+
skeleton: "skeleton";
|
|
8745
|
+
spinner: "spinner";
|
|
8746
|
+
none: "none";
|
|
8747
|
+
row: "row";
|
|
8748
|
+
}>>;
|
|
8749
|
+
search: z.ZodOptional<z.ZodEnum<{
|
|
8750
|
+
custom: "custom";
|
|
8751
|
+
spinner: "spinner";
|
|
8752
|
+
none: "none";
|
|
8753
|
+
inline: "inline";
|
|
8754
|
+
}>>;
|
|
8755
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
8756
|
+
custom: "custom";
|
|
8757
|
+
button: "button";
|
|
8758
|
+
none: "none";
|
|
8759
|
+
bar: "bar";
|
|
8760
|
+
overlay: "overlay";
|
|
8761
|
+
}>>;
|
|
8762
|
+
skeleton: z.ZodOptional<z.ZodEnum<{
|
|
8763
|
+
shimmer: "shimmer";
|
|
8764
|
+
pulse: "pulse";
|
|
8765
|
+
static: "static";
|
|
8766
|
+
}>>;
|
|
8767
|
+
spinner: z.ZodOptional<z.ZodEnum<{
|
|
8768
|
+
ring: "ring";
|
|
8769
|
+
dots: "dots";
|
|
8770
|
+
}>>;
|
|
8771
|
+
progress: z.ZodOptional<z.ZodEnum<{
|
|
8772
|
+
top: "top";
|
|
8773
|
+
inline: "inline";
|
|
8774
|
+
}>>;
|
|
8775
|
+
delay: z.ZodOptional<z.ZodInt>;
|
|
8776
|
+
minShown: z.ZodOptional<z.ZodInt>;
|
|
8777
|
+
slowAfter: z.ZodOptional<z.ZodInt>;
|
|
8778
|
+
timeout: z.ZodOptional<z.ZodInt>;
|
|
8779
|
+
error: z.ZodOptional<z.ZodEnum<{
|
|
8780
|
+
custom: "custom";
|
|
8781
|
+
inline: "inline";
|
|
8782
|
+
toast: "toast";
|
|
8783
|
+
}>>;
|
|
8784
|
+
}, z.core.$strict>>;
|
|
8592
8785
|
}, z.core.$strict>], "type">;
|
|
8593
8786
|
maxWidth: z.ZodOptional<z.ZodEnum<{
|
|
8594
8787
|
narrow: "narrow";
|
|
@@ -9363,6 +9556,10 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
9363
9556
|
international: "international";
|
|
9364
9557
|
national: "national";
|
|
9365
9558
|
}>>;
|
|
9559
|
+
countries: z.ZodOptional<z.ZodEnum<{
|
|
9560
|
+
list: "list";
|
|
9561
|
+
native: "native";
|
|
9562
|
+
}>>;
|
|
9366
9563
|
}, z.core.$strict>>;
|
|
9367
9564
|
timeZone: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
9368
9565
|
print: z.ZodOptional<z.ZodObject<{
|
|
@@ -9451,4 +9648,64 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
9451
9648
|
templates: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
|
|
9452
9649
|
fields: z.ZodArray<z.ZodString>;
|
|
9453
9650
|
}, z.core.$strict>]>>;
|
|
9651
|
+
loading: z.ZodOptional<z.ZodObject<{
|
|
9652
|
+
first: z.ZodOptional<z.ZodEnum<{
|
|
9653
|
+
text: "text";
|
|
9654
|
+
custom: "custom";
|
|
9655
|
+
skeleton: "skeleton";
|
|
9656
|
+
spinner: "spinner";
|
|
9657
|
+
progress: "progress";
|
|
9658
|
+
none: "none";
|
|
9659
|
+
}>>;
|
|
9660
|
+
refresh: z.ZodOptional<z.ZodEnum<{
|
|
9661
|
+
custom: "custom";
|
|
9662
|
+
skeleton: "skeleton";
|
|
9663
|
+
spinner: "spinner";
|
|
9664
|
+
none: "none";
|
|
9665
|
+
keep: "keep";
|
|
9666
|
+
dim: "dim";
|
|
9667
|
+
}>>;
|
|
9668
|
+
more: z.ZodOptional<z.ZodEnum<{
|
|
9669
|
+
custom: "custom";
|
|
9670
|
+
skeleton: "skeleton";
|
|
9671
|
+
spinner: "spinner";
|
|
9672
|
+
none: "none";
|
|
9673
|
+
row: "row";
|
|
9674
|
+
}>>;
|
|
9675
|
+
search: z.ZodOptional<z.ZodEnum<{
|
|
9676
|
+
custom: "custom";
|
|
9677
|
+
spinner: "spinner";
|
|
9678
|
+
none: "none";
|
|
9679
|
+
inline: "inline";
|
|
9680
|
+
}>>;
|
|
9681
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
9682
|
+
custom: "custom";
|
|
9683
|
+
button: "button";
|
|
9684
|
+
none: "none";
|
|
9685
|
+
bar: "bar";
|
|
9686
|
+
overlay: "overlay";
|
|
9687
|
+
}>>;
|
|
9688
|
+
skeleton: z.ZodOptional<z.ZodEnum<{
|
|
9689
|
+
shimmer: "shimmer";
|
|
9690
|
+
pulse: "pulse";
|
|
9691
|
+
static: "static";
|
|
9692
|
+
}>>;
|
|
9693
|
+
spinner: z.ZodOptional<z.ZodEnum<{
|
|
9694
|
+
ring: "ring";
|
|
9695
|
+
dots: "dots";
|
|
9696
|
+
}>>;
|
|
9697
|
+
progress: z.ZodOptional<z.ZodEnum<{
|
|
9698
|
+
top: "top";
|
|
9699
|
+
inline: "inline";
|
|
9700
|
+
}>>;
|
|
9701
|
+
delay: z.ZodOptional<z.ZodInt>;
|
|
9702
|
+
minShown: z.ZodOptional<z.ZodInt>;
|
|
9703
|
+
slowAfter: z.ZodOptional<z.ZodInt>;
|
|
9704
|
+
timeout: z.ZodOptional<z.ZodInt>;
|
|
9705
|
+
error: z.ZodOptional<z.ZodEnum<{
|
|
9706
|
+
custom: "custom";
|
|
9707
|
+
inline: "inline";
|
|
9708
|
+
toast: "toast";
|
|
9709
|
+
}>>;
|
|
9710
|
+
}, z.core.$strict>>;
|
|
9454
9711
|
}, z.core.$strict>;
|
package/src/lib/format/page.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { type PageQuiz } from './quiz';
|
|
|
14
14
|
import { type PageReview, type TimeLimit } from './flow';
|
|
15
15
|
import { type PagePrefill } from './prefill';
|
|
16
16
|
import { type PagePayment } from './payment';
|
|
17
|
+
import type { PageLoading } from './loading';
|
|
17
18
|
import { type Theme } from './themes';
|
|
18
19
|
export { THEMES, type Theme } from './themes';
|
|
19
20
|
import { type Skin } from './themes';
|
|
@@ -292,6 +293,16 @@ export interface Page {
|
|
|
292
293
|
templates?: true | {
|
|
293
294
|
fields: string[];
|
|
294
295
|
};
|
|
296
|
+
/**
|
|
297
|
+
* How the page looks while it waits for an answer, moment by moment: a record or a list drawn for the first time
|
|
298
|
+
* (`first`), asked again (`refresh`), its next rows (`more`), a link's suggestions (`search`), a save or a button's
|
|
299
|
+
* steps (`action`); the skeleton's, the spinner's and the bar's looks; how long before a loader shows, how long it
|
|
300
|
+
* stays, when "Still loading…" is said and when the wait ends as failed; what a failure shows. Over the app's own
|
|
301
|
+
* (the viewer's `loading`); a list, a related list, a map or a field with a search may say its own. Left out,
|
|
302
|
+
* Fieldia's defaults (`LOADING_DEFAULTS`): a skeleton first, what is shown kept with a bar over it as it is asked
|
|
303
|
+
* again. See `PageLoading`.
|
|
304
|
+
*/
|
|
305
|
+
loading?: PageLoading;
|
|
295
306
|
}
|
|
296
307
|
export declare const PageDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
297
308
|
kind: z.ZodLiteral<"record">;
|
|
@@ -301,7 +312,7 @@ export declare const PageDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
301
312
|
}, z.z.core.$strict>], "kind">;
|
|
302
313
|
export declare const PageSchema: z.ZodObject<{
|
|
303
314
|
fieldia: z.ZodEnum<{
|
|
304
|
-
|
|
315
|
+
0.12: "0.12";
|
|
305
316
|
0.1: "0.1";
|
|
306
317
|
0.2: "0.2";
|
|
307
318
|
0.3: "0.3";
|
|
@@ -311,6 +322,8 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
311
322
|
0.7: "0.7";
|
|
312
323
|
0.8: "0.8";
|
|
313
324
|
0.9: "0.9";
|
|
325
|
+
"0.10": "0.10";
|
|
326
|
+
0.11: "0.11";
|
|
314
327
|
}>;
|
|
315
328
|
id: z.ZodString;
|
|
316
329
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -3755,11 +3768,11 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
3755
3768
|
collapsed: z.ZodOptional<z.ZodBoolean>;
|
|
3756
3769
|
colspan: z.ZodOptional<z.ZodInt>;
|
|
3757
3770
|
style: z.ZodOptional<z.ZodEnum<{
|
|
3771
|
+
inline: "inline";
|
|
3758
3772
|
card: "card";
|
|
3759
3773
|
plain: "plain";
|
|
3760
3774
|
line: "line";
|
|
3761
3775
|
framed: "framed";
|
|
3762
|
-
inline: "inline";
|
|
3763
3776
|
}>>;
|
|
3764
3777
|
labels: z.ZodOptional<z.ZodEnum<{
|
|
3765
3778
|
above: "above";
|
|
@@ -4173,6 +4186,66 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
4173
4186
|
medium: "medium";
|
|
4174
4187
|
wide: "wide";
|
|
4175
4188
|
}>>>;
|
|
4189
|
+
loading: z.ZodOptional<z.ZodObject<{
|
|
4190
|
+
first: z.ZodOptional<z.ZodEnum<{
|
|
4191
|
+
text: "text";
|
|
4192
|
+
custom: "custom";
|
|
4193
|
+
skeleton: "skeleton";
|
|
4194
|
+
spinner: "spinner";
|
|
4195
|
+
progress: "progress";
|
|
4196
|
+
none: "none";
|
|
4197
|
+
}>>;
|
|
4198
|
+
refresh: z.ZodOptional<z.ZodEnum<{
|
|
4199
|
+
custom: "custom";
|
|
4200
|
+
skeleton: "skeleton";
|
|
4201
|
+
spinner: "spinner";
|
|
4202
|
+
none: "none";
|
|
4203
|
+
keep: "keep";
|
|
4204
|
+
dim: "dim";
|
|
4205
|
+
}>>;
|
|
4206
|
+
more: z.ZodOptional<z.ZodEnum<{
|
|
4207
|
+
custom: "custom";
|
|
4208
|
+
skeleton: "skeleton";
|
|
4209
|
+
spinner: "spinner";
|
|
4210
|
+
none: "none";
|
|
4211
|
+
row: "row";
|
|
4212
|
+
}>>;
|
|
4213
|
+
search: z.ZodOptional<z.ZodEnum<{
|
|
4214
|
+
custom: "custom";
|
|
4215
|
+
spinner: "spinner";
|
|
4216
|
+
none: "none";
|
|
4217
|
+
inline: "inline";
|
|
4218
|
+
}>>;
|
|
4219
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
4220
|
+
custom: "custom";
|
|
4221
|
+
button: "button";
|
|
4222
|
+
none: "none";
|
|
4223
|
+
bar: "bar";
|
|
4224
|
+
overlay: "overlay";
|
|
4225
|
+
}>>;
|
|
4226
|
+
skeleton: z.ZodOptional<z.ZodEnum<{
|
|
4227
|
+
shimmer: "shimmer";
|
|
4228
|
+
pulse: "pulse";
|
|
4229
|
+
static: "static";
|
|
4230
|
+
}>>;
|
|
4231
|
+
spinner: z.ZodOptional<z.ZodEnum<{
|
|
4232
|
+
ring: "ring";
|
|
4233
|
+
dots: "dots";
|
|
4234
|
+
}>>;
|
|
4235
|
+
progress: z.ZodOptional<z.ZodEnum<{
|
|
4236
|
+
top: "top";
|
|
4237
|
+
inline: "inline";
|
|
4238
|
+
}>>;
|
|
4239
|
+
delay: z.ZodOptional<z.ZodInt>;
|
|
4240
|
+
minShown: z.ZodOptional<z.ZodInt>;
|
|
4241
|
+
slowAfter: z.ZodOptional<z.ZodInt>;
|
|
4242
|
+
timeout: z.ZodOptional<z.ZodInt>;
|
|
4243
|
+
error: z.ZodOptional<z.ZodEnum<{
|
|
4244
|
+
custom: "custom";
|
|
4245
|
+
inline: "inline";
|
|
4246
|
+
toast: "toast";
|
|
4247
|
+
}>>;
|
|
4248
|
+
}, z.z.core.$strict>>;
|
|
4176
4249
|
}, z.z.core.$strict>, z.ZodObject<{
|
|
4177
4250
|
type: z.ZodLiteral<"related">;
|
|
4178
4251
|
id: z.ZodString;
|
|
@@ -4877,6 +4950,66 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
4877
4950
|
wide: "wide";
|
|
4878
4951
|
}>>>;
|
|
4879
4952
|
print: z.ZodOptional<z.ZodBoolean>;
|
|
4953
|
+
loading: z.ZodOptional<z.ZodObject<{
|
|
4954
|
+
first: z.ZodOptional<z.ZodEnum<{
|
|
4955
|
+
text: "text";
|
|
4956
|
+
custom: "custom";
|
|
4957
|
+
skeleton: "skeleton";
|
|
4958
|
+
spinner: "spinner";
|
|
4959
|
+
progress: "progress";
|
|
4960
|
+
none: "none";
|
|
4961
|
+
}>>;
|
|
4962
|
+
refresh: z.ZodOptional<z.ZodEnum<{
|
|
4963
|
+
custom: "custom";
|
|
4964
|
+
skeleton: "skeleton";
|
|
4965
|
+
spinner: "spinner";
|
|
4966
|
+
none: "none";
|
|
4967
|
+
keep: "keep";
|
|
4968
|
+
dim: "dim";
|
|
4969
|
+
}>>;
|
|
4970
|
+
more: z.ZodOptional<z.ZodEnum<{
|
|
4971
|
+
custom: "custom";
|
|
4972
|
+
skeleton: "skeleton";
|
|
4973
|
+
spinner: "spinner";
|
|
4974
|
+
none: "none";
|
|
4975
|
+
row: "row";
|
|
4976
|
+
}>>;
|
|
4977
|
+
search: z.ZodOptional<z.ZodEnum<{
|
|
4978
|
+
custom: "custom";
|
|
4979
|
+
spinner: "spinner";
|
|
4980
|
+
none: "none";
|
|
4981
|
+
inline: "inline";
|
|
4982
|
+
}>>;
|
|
4983
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
4984
|
+
custom: "custom";
|
|
4985
|
+
button: "button";
|
|
4986
|
+
none: "none";
|
|
4987
|
+
bar: "bar";
|
|
4988
|
+
overlay: "overlay";
|
|
4989
|
+
}>>;
|
|
4990
|
+
skeleton: z.ZodOptional<z.ZodEnum<{
|
|
4991
|
+
shimmer: "shimmer";
|
|
4992
|
+
pulse: "pulse";
|
|
4993
|
+
static: "static";
|
|
4994
|
+
}>>;
|
|
4995
|
+
spinner: z.ZodOptional<z.ZodEnum<{
|
|
4996
|
+
ring: "ring";
|
|
4997
|
+
dots: "dots";
|
|
4998
|
+
}>>;
|
|
4999
|
+
progress: z.ZodOptional<z.ZodEnum<{
|
|
5000
|
+
top: "top";
|
|
5001
|
+
inline: "inline";
|
|
5002
|
+
}>>;
|
|
5003
|
+
delay: z.ZodOptional<z.ZodInt>;
|
|
5004
|
+
minShown: z.ZodOptional<z.ZodInt>;
|
|
5005
|
+
slowAfter: z.ZodOptional<z.ZodInt>;
|
|
5006
|
+
timeout: z.ZodOptional<z.ZodInt>;
|
|
5007
|
+
error: z.ZodOptional<z.ZodEnum<{
|
|
5008
|
+
custom: "custom";
|
|
5009
|
+
inline: "inline";
|
|
5010
|
+
toast: "toast";
|
|
5011
|
+
}>>;
|
|
5012
|
+
}, z.z.core.$strict>>;
|
|
4880
5013
|
}, z.z.core.$strict>], "type">>;
|
|
4881
5014
|
}, z.z.core.$strict>>;
|
|
4882
5015
|
updated: z.ZodOptional<z.ZodObject<{
|
|
@@ -8589,6 +8722,66 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
8589
8722
|
add: z.ZodOptional<z.ZodBoolean>;
|
|
8590
8723
|
open: z.ZodOptional<z.ZodBoolean>;
|
|
8591
8724
|
}, z.z.core.$strict>]>>;
|
|
8725
|
+
loading: z.ZodOptional<z.ZodObject<{
|
|
8726
|
+
first: z.ZodOptional<z.ZodEnum<{
|
|
8727
|
+
text: "text";
|
|
8728
|
+
custom: "custom";
|
|
8729
|
+
skeleton: "skeleton";
|
|
8730
|
+
spinner: "spinner";
|
|
8731
|
+
progress: "progress";
|
|
8732
|
+
none: "none";
|
|
8733
|
+
}>>;
|
|
8734
|
+
refresh: z.ZodOptional<z.ZodEnum<{
|
|
8735
|
+
custom: "custom";
|
|
8736
|
+
skeleton: "skeleton";
|
|
8737
|
+
spinner: "spinner";
|
|
8738
|
+
none: "none";
|
|
8739
|
+
keep: "keep";
|
|
8740
|
+
dim: "dim";
|
|
8741
|
+
}>>;
|
|
8742
|
+
more: z.ZodOptional<z.ZodEnum<{
|
|
8743
|
+
custom: "custom";
|
|
8744
|
+
skeleton: "skeleton";
|
|
8745
|
+
spinner: "spinner";
|
|
8746
|
+
none: "none";
|
|
8747
|
+
row: "row";
|
|
8748
|
+
}>>;
|
|
8749
|
+
search: z.ZodOptional<z.ZodEnum<{
|
|
8750
|
+
custom: "custom";
|
|
8751
|
+
spinner: "spinner";
|
|
8752
|
+
none: "none";
|
|
8753
|
+
inline: "inline";
|
|
8754
|
+
}>>;
|
|
8755
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
8756
|
+
custom: "custom";
|
|
8757
|
+
button: "button";
|
|
8758
|
+
none: "none";
|
|
8759
|
+
bar: "bar";
|
|
8760
|
+
overlay: "overlay";
|
|
8761
|
+
}>>;
|
|
8762
|
+
skeleton: z.ZodOptional<z.ZodEnum<{
|
|
8763
|
+
shimmer: "shimmer";
|
|
8764
|
+
pulse: "pulse";
|
|
8765
|
+
static: "static";
|
|
8766
|
+
}>>;
|
|
8767
|
+
spinner: z.ZodOptional<z.ZodEnum<{
|
|
8768
|
+
ring: "ring";
|
|
8769
|
+
dots: "dots";
|
|
8770
|
+
}>>;
|
|
8771
|
+
progress: z.ZodOptional<z.ZodEnum<{
|
|
8772
|
+
top: "top";
|
|
8773
|
+
inline: "inline";
|
|
8774
|
+
}>>;
|
|
8775
|
+
delay: z.ZodOptional<z.ZodInt>;
|
|
8776
|
+
minShown: z.ZodOptional<z.ZodInt>;
|
|
8777
|
+
slowAfter: z.ZodOptional<z.ZodInt>;
|
|
8778
|
+
timeout: z.ZodOptional<z.ZodInt>;
|
|
8779
|
+
error: z.ZodOptional<z.ZodEnum<{
|
|
8780
|
+
custom: "custom";
|
|
8781
|
+
inline: "inline";
|
|
8782
|
+
toast: "toast";
|
|
8783
|
+
}>>;
|
|
8784
|
+
}, z.z.core.$strict>>;
|
|
8592
8785
|
}, z.z.core.$strict>], "type">;
|
|
8593
8786
|
maxWidth: z.ZodOptional<z.ZodEnum<{
|
|
8594
8787
|
narrow: "narrow";
|
|
@@ -9363,6 +9556,10 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
9363
9556
|
international: "international";
|
|
9364
9557
|
national: "national";
|
|
9365
9558
|
}>>;
|
|
9559
|
+
countries: z.ZodOptional<z.ZodEnum<{
|
|
9560
|
+
list: "list";
|
|
9561
|
+
native: "native";
|
|
9562
|
+
}>>;
|
|
9366
9563
|
}, z.z.core.$strict>>;
|
|
9367
9564
|
timeZone: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.z.core.$ZodTypeInternals<string, string>>>;
|
|
9368
9565
|
print: z.ZodOptional<z.ZodObject<{
|
|
@@ -9451,4 +9648,64 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
9451
9648
|
templates: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
|
|
9452
9649
|
fields: z.ZodArray<z.ZodString>;
|
|
9453
9650
|
}, z.z.core.$strict>]>>;
|
|
9651
|
+
loading: z.ZodOptional<z.ZodObject<{
|
|
9652
|
+
first: z.ZodOptional<z.ZodEnum<{
|
|
9653
|
+
text: "text";
|
|
9654
|
+
custom: "custom";
|
|
9655
|
+
skeleton: "skeleton";
|
|
9656
|
+
spinner: "spinner";
|
|
9657
|
+
progress: "progress";
|
|
9658
|
+
none: "none";
|
|
9659
|
+
}>>;
|
|
9660
|
+
refresh: z.ZodOptional<z.ZodEnum<{
|
|
9661
|
+
custom: "custom";
|
|
9662
|
+
skeleton: "skeleton";
|
|
9663
|
+
spinner: "spinner";
|
|
9664
|
+
none: "none";
|
|
9665
|
+
keep: "keep";
|
|
9666
|
+
dim: "dim";
|
|
9667
|
+
}>>;
|
|
9668
|
+
more: z.ZodOptional<z.ZodEnum<{
|
|
9669
|
+
custom: "custom";
|
|
9670
|
+
skeleton: "skeleton";
|
|
9671
|
+
spinner: "spinner";
|
|
9672
|
+
none: "none";
|
|
9673
|
+
row: "row";
|
|
9674
|
+
}>>;
|
|
9675
|
+
search: z.ZodOptional<z.ZodEnum<{
|
|
9676
|
+
custom: "custom";
|
|
9677
|
+
spinner: "spinner";
|
|
9678
|
+
none: "none";
|
|
9679
|
+
inline: "inline";
|
|
9680
|
+
}>>;
|
|
9681
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
9682
|
+
custom: "custom";
|
|
9683
|
+
button: "button";
|
|
9684
|
+
none: "none";
|
|
9685
|
+
bar: "bar";
|
|
9686
|
+
overlay: "overlay";
|
|
9687
|
+
}>>;
|
|
9688
|
+
skeleton: z.ZodOptional<z.ZodEnum<{
|
|
9689
|
+
shimmer: "shimmer";
|
|
9690
|
+
pulse: "pulse";
|
|
9691
|
+
static: "static";
|
|
9692
|
+
}>>;
|
|
9693
|
+
spinner: z.ZodOptional<z.ZodEnum<{
|
|
9694
|
+
ring: "ring";
|
|
9695
|
+
dots: "dots";
|
|
9696
|
+
}>>;
|
|
9697
|
+
progress: z.ZodOptional<z.ZodEnum<{
|
|
9698
|
+
top: "top";
|
|
9699
|
+
inline: "inline";
|
|
9700
|
+
}>>;
|
|
9701
|
+
delay: z.ZodOptional<z.ZodInt>;
|
|
9702
|
+
minShown: z.ZodOptional<z.ZodInt>;
|
|
9703
|
+
slowAfter: z.ZodOptional<z.ZodInt>;
|
|
9704
|
+
timeout: z.ZodOptional<z.ZodInt>;
|
|
9705
|
+
error: z.ZodOptional<z.ZodEnum<{
|
|
9706
|
+
custom: "custom";
|
|
9707
|
+
inline: "inline";
|
|
9708
|
+
toast: "toast";
|
|
9709
|
+
}>>;
|
|
9710
|
+
}, z.z.core.$strict>>;
|
|
9454
9711
|
}, z.z.core.$strict>;
|
package/src/lib/format/page.js
CHANGED
|
@@ -17,6 +17,7 @@ const quiz_1 = require("./quiz");
|
|
|
17
17
|
const flow_1 = require("./flow");
|
|
18
18
|
const prefill_1 = require("./prefill");
|
|
19
19
|
const payment_1 = require("./payment");
|
|
20
|
+
const loading_schema_1 = require("./loading-schema");
|
|
20
21
|
const themes_1 = require("./themes");
|
|
21
22
|
var themes_2 = require("./themes");
|
|
22
23
|
Object.defineProperty(exports, "THEMES", { enumerable: true, get: function () { return themes_2.THEMES; } });
|
|
@@ -116,6 +117,7 @@ exports.PageSchema = z
|
|
|
116
117
|
payment: payment_1.PagePaymentSchema.optional(),
|
|
117
118
|
outbox: z.boolean().optional(),
|
|
118
119
|
templates: z.union([z.literal(true), z.strictObject({ fields: z.array(z.string().min(1)).min(1) })]).optional(),
|
|
120
|
+
loading: loading_schema_1.PageLoadingSchema.optional(),
|
|
119
121
|
})
|
|
120
122
|
.meta({
|
|
121
123
|
title: 'Fieldia page',
|