@uides/stepwise 2.2.1 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -2
- package/generators/extractStepwisePossibleValues.d.mts +1 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/schemas/action.d.ts +48 -168
- package/schemas/action.js +34 -47
- package/schemas/field/afm/index.d.ts +158 -6
- package/schemas/field/afm/index.js +6 -9
- package/schemas/field/amka/index.d.ts +152 -8
- package/schemas/field/amka/index.js +3 -7
- package/schemas/field/attachment/index.d.ts +184 -16
- package/schemas/field/attachment/index.js +9 -22
- package/schemas/field/captcha/index.d.ts +156 -2
- package/schemas/field/captcha/index.js +6 -9
- package/schemas/field/choice/index.d.ts +188 -15
- package/schemas/field/choice/index.js +4 -9
- package/schemas/field/common.d.ts +92 -40
- package/schemas/field/common.js +78 -11
- package/schemas/field/date/index.d.ts +152 -38
- package/schemas/field/date/index.js +6 -33
- package/schemas/field/doc_subtitle/index.d.ts +158 -5
- package/schemas/field/doc_subtitle/index.js +5 -6
- package/schemas/field/doc_title/index.d.ts +154 -8
- package/schemas/field/doc_title/index.js +5 -12
- package/schemas/field/dynamically-filled-text/index.d.ts +170 -33
- package/schemas/field/dynamically-filled-text/index.js +6 -23
- package/schemas/field/email/index.d.ts +152 -8
- package/schemas/field/email/index.js +5 -9
- package/schemas/field/fillable-string/index.d.ts +156 -12
- package/schemas/field/fillable-string/index.js +4 -10
- package/schemas/field/five-block-date/index.d.ts +156 -2
- package/schemas/field/five-block-date/index.js +5 -4
- package/schemas/field/hidden/index.d.ts +161 -14
- package/schemas/field/hidden/index.js +7 -15
- package/schemas/field/hierarchical-selector/index.d.ts +176 -37
- package/schemas/field/hierarchical-selector/index.js +5 -21
- package/schemas/field/iban/index.d.ts +168 -6
- package/schemas/field/iban/index.js +3 -3
- package/schemas/field/image/index.d.ts +168 -16
- package/schemas/field/image/index.js +7 -23
- package/schemas/field/index.d.ts +2 -7
- package/schemas/field/index.js +8 -15
- package/schemas/field/int/index.d.ts +152 -8
- package/schemas/field/int/index.js +5 -9
- package/schemas/field/intl_mobile_phone/index.d.ts +156 -3
- package/schemas/field/intl_mobile_phone/index.js +5 -5
- package/schemas/field/lab-results/index.d.ts +156 -3
- package/schemas/field/lab-results/index.js +6 -6
- package/schemas/field/mobile_phone/index.d.ts +158 -5
- package/schemas/field/mobile_phone/index.js +5 -6
- package/schemas/field/multiple-choice/index.d.ts +180 -12
- package/schemas/field/multiple-choice/index.js +3 -8
- package/schemas/field/password/index.d.ts +156 -2
- package/schemas/field/password/index.js +5 -5
- package/schemas/field/pdf-image/index.d.ts +152 -14
- package/schemas/field/pdf-image/index.js +6 -18
- package/schemas/field/postal_code/index.d.ts +156 -4
- package/schemas/field/postal_code/index.js +6 -8
- package/schemas/field/preference-multiple-choice/index.d.ts +211 -17
- package/schemas/field/preference-multiple-choice/index.js +5 -9
- package/schemas/field/qrcode/index.d.ts +168 -19
- package/schemas/field/qrcode/index.js +6 -18
- package/schemas/field/quote/index.d.ts +170 -11
- package/schemas/field/quote/index.js +4 -12
- package/schemas/field/radio-choice/index.d.ts +172 -9
- package/schemas/field/radio-choice/index.js +4 -10
- package/schemas/field/rate/index.d.ts +150 -8
- package/schemas/field/rate/index.js +4 -7
- package/schemas/field/recipient/index.d.ts +158 -5
- package/schemas/field/recipient/index.js +5 -9
- package/schemas/field/redirect/index.d.ts +156 -6
- package/schemas/field/redirect/index.js +6 -9
- package/schemas/field/refcode/index.d.ts +168 -16
- package/schemas/field/refcode/index.js +6 -20
- package/schemas/field/string/index.d.ts +226 -65
- package/schemas/field/string/index.js +5 -54
- package/schemas/field/text/index.d.ts +170 -33
- package/schemas/field/text/index.js +5 -30
- package/schemas/field/three-block-date/index.d.ts +176 -12
- package/schemas/field/three-block-date/index.js +4 -10
- package/schemas/field/url/index.d.ts +204 -0
- package/schemas/field/url/index.js +16 -0
- package/schemas/fieldset/component-params.d.ts +9 -41
- package/schemas/fieldset/component-params.js +5 -29
- package/schemas/fieldset/display-components.d.ts +16 -244
- package/schemas/fieldset/display-components.js +6 -19
- package/schemas/fieldset/enums.d.ts +0 -22
- package/schemas/fieldset/enums.js +1 -15
- package/schemas/fieldset/index.d.ts +9 -93
- package/schemas/index.d.ts +1 -1
- package/schemas/index.js +1 -1
- package/schemas/step.d.ts +7 -0
- package/schemas/step.js +2 -1
- package/schemas/{template/template.d.ts → template.d.ts} +47 -23
- package/schemas/template.js +26 -0
- package/src/generators/actions-possible-values/document-anon-create.json +19 -0
- package/src/generators/actions-possible-values/document-backstep.json +19 -0
- package/src/generators/actions-possible-values/document-create-new.json +43 -0
- package/src/generators/actions-possible-values/document-create.json +20 -0
- package/src/generators/actions-possible-values/document-dismiss.json +36 -0
- package/src/generators/actions-possible-values/document-download-pdf.json +69 -0
- package/src/generators/actions-possible-values/document-email.json +42 -0
- package/src/generators/actions-possible-values/document-resend-otp.json +30 -0
- package/src/generators/actions-possible-values/document-revoke.json +46 -0
- package/src/generators/actions-possible-values/document-share.json +29 -0
- package/src/generators/actions-possible-values/document-sms.json +38 -0
- package/src/generators/actions-possible-values/document-temporary-save.json +28 -0
- package/src/generators/actions-possible-values/document-update.json +111 -0
- package/src/generators/actions-possible-values/entity-forward.json +31 -0
- package/src/generators/actions-possible-values/entity-reply.json +31 -0
- package/src/generators/actions-possible-values/entity-send-message.json +34 -0
- package/src/generators/actions-possible-values/hidden.json +22 -0
- package/src/generators/actions-possible-values/link.json +43 -0
- package/src/generators/extractStepwisePossibleValues.mjs +139 -0
- package/src/generators/fields-possible-values/afm.json +94 -0
- package/src/generators/fields-possible-values/amka.json +26 -0
- package/src/generators/fields-possible-values/attachment.json +89 -0
- package/src/generators/fields-possible-values/captcha.json +16 -0
- package/src/generators/fields-possible-values/choice.json +432 -0
- package/src/generators/fields-possible-values/date.json +57 -0
- package/src/generators/fields-possible-values/doc_subtitle.json +26 -0
- package/src/generators/fields-possible-values/doc_title.json +63 -0
- package/src/generators/fields-possible-values/dynamically-filled-text.json +47 -0
- package/src/generators/fields-possible-values/email.json +65 -0
- package/src/generators/fields-possible-values/fillable-string.json +47 -0
- package/src/generators/fields-possible-values/five-block-date.json +23 -0
- package/src/generators/fields-possible-values/hidden.json +140 -0
- package/src/generators/fields-possible-values/hierarchical-selector.json +84 -0
- package/src/generators/fields-possible-values/iban.json +35 -0
- package/src/generators/fields-possible-values/image.json +37 -0
- package/src/generators/fields-possible-values/int.json +52 -0
- package/src/generators/fields-possible-values/intl_mobile_phone.json +32 -0
- package/src/generators/fields-possible-values/lab-results.json +19 -0
- package/src/generators/fields-possible-values/mobile_phone.json +45 -0
- package/src/generators/fields-possible-values/multiple-choice.json +128 -0
- package/src/generators/fields-possible-values/password.json +20 -0
- package/src/generators/fields-possible-values/pdf-image.json +70 -0
- package/src/generators/fields-possible-values/postal_code.json +32 -0
- package/src/generators/fields-possible-values/preference-multiple-choice.json +53 -0
- package/src/generators/fields-possible-values/qrcode.json +75 -0
- package/src/generators/fields-possible-values/quote.json +71 -0
- package/src/generators/fields-possible-values/radio-choice.json +209 -0
- package/src/generators/fields-possible-values/rate.json +26 -0
- package/src/generators/fields-possible-values/recipient.json +46 -0
- package/src/generators/fields-possible-values/redirect.json +22 -0
- package/src/generators/fields-possible-values/refcode.json +89 -0
- package/src/generators/fields-possible-values/string.json +778 -0
- package/src/generators/fields-possible-values/text.json +105 -0
- package/src/generators/fields-possible-values/three-block-date.json +83 -0
- package/src/generators/fields-possible-values/url.json +23 -0
- package/src/generators/fieldsets-possible-values/form.json +311 -0
- package/src/generators/fieldsets-possible-values/hidden.json +107 -0
- package/src/generators/fieldsets-possible-values/unknown.json +69 -0
- package/src/generators/fieldsets-possible-values/values-list.json +364 -0
- package/src/schemas/action.ts +44 -58
- package/src/schemas/field/afm/index.ts +8 -6
- package/src/schemas/field/amka/index.ts +7 -9
- package/src/schemas/field/attachment/index.ts +9 -23
- package/src/schemas/field/captcha/index.ts +8 -3
- package/src/schemas/field/choice/index.ts +7 -5
- package/src/schemas/field/common.spec.ts +0 -3
- package/src/schemas/field/common.ts +115 -53
- package/src/schemas/field/date/index.ts +8 -24
- package/src/schemas/field/doc_subtitle/index.ts +7 -4
- package/src/schemas/field/doc_title/index.ts +7 -14
- package/src/schemas/field/dynamically-filled-text/index.ts +7 -15
- package/src/schemas/field/email/index.ts +7 -9
- package/src/schemas/field/fillable-string/index.ts +7 -11
- package/src/schemas/field/five-block-date/index.ts +7 -2
- package/src/schemas/field/hidden/index.ts +15 -40
- package/src/schemas/field/hierarchical-selector/index.ts +8 -18
- package/src/schemas/field/iban/index.ts +7 -3
- package/src/schemas/field/image/index.ts +8 -10
- package/src/schemas/field/index.ts +8 -33
- package/src/schemas/field/int/index.ts +7 -9
- package/src/schemas/field/intl_mobile_phone/index.ts +7 -3
- package/src/schemas/field/lab-results/index.ts +7 -3
- package/src/schemas/field/mobile_phone/index.ts +7 -4
- package/src/schemas/field/multiple-choice/index.ts +7 -5
- package/src/schemas/field/password/index.ts +8 -3
- package/src/schemas/field/pdf-image/index.ts +8 -12
- package/src/schemas/field/postal_code/index.ts +8 -5
- package/src/schemas/field/preference-multiple-choice/index.ts +8 -7
- package/src/schemas/field/qrcode/index.ts +7 -10
- package/src/schemas/field/quote/index.ts +8 -8
- package/src/schemas/field/radio-choice/index.ts +7 -5
- package/src/schemas/field/rate/index.ts +7 -8
- package/src/schemas/field/recipient/index.ts +7 -4
- package/src/schemas/field/redirect/index.ts +7 -6
- package/src/schemas/field/refcode/index.ts +7 -21
- package/src/schemas/field/string/index.ts +7 -42
- package/src/schemas/field/text/index.ts +8 -16
- package/src/schemas/field/three-block-date/index.ts +7 -6
- package/src/schemas/field/url/index.ts +24 -0
- package/src/schemas/fieldset/component-params.ts +4 -20
- package/src/schemas/fieldset/display-components.ts +5 -36
- package/src/schemas/fieldset/enums.ts +0 -38
- package/src/schemas/step.ts +1 -0
- package/src/schemas/{template/template-base.ts → template.ts} +30 -6
- package/src/utils/index.ts +69 -2
- package/utils/index.js +28 -2
- package/schemas/field/consent-content/index.d.ts +0 -68
- package/schemas/field/consent-content/index.js +0 -19
- package/schemas/field/image-crop/index.d.ts +0 -59
- package/schemas/field/image-crop/index.js +0 -19
- package/schemas/field/landline_phone/index.d.ts +0 -48
- package/schemas/field/landline_phone/index.js +0 -14
- package/schemas/field/link/index.d.ts +0 -50
- package/schemas/field/link/index.js +0 -16
- package/schemas/field/phone/index.d.ts +0 -48
- package/schemas/field/phone/index.js +0 -14
- package/schemas/field/url-param/index.d.ts +0 -57
- package/schemas/field/url-param/index.js +0 -14
- package/schemas/template/index.d.ts +0 -2
- package/schemas/template/index.js +0 -2
- package/schemas/template/template-base.d.ts +0 -53
- package/schemas/template/template-base.js +0 -15
- package/schemas/template/template-source.d.ts +0 -50
- package/schemas/template/template-source.js +0 -14
- package/schemas/template/template.js +0 -22
- package/src/schemas/field/consent-content/index.ts +0 -28
- package/src/schemas/field/image-crop/index.ts +0 -25
- package/src/schemas/field/landline_phone/index.ts +0 -18
- package/src/schemas/field/link/index.ts +0 -20
- package/src/schemas/field/phone/index.ts +0 -18
- package/src/schemas/field/url-param/index.ts +0 -23
- package/src/schemas/template/index.ts +0 -2
- package/src/schemas/template/template-source.ts +0 -88
- package/src/schemas/template/template.ts +0 -49
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { literal, picklist, strictObject } from "valibot";
|
|
2
|
-
import { createFieldDisplay } from "../common.js";
|
|
1
|
+
import { literal, nullish, picklist, strictObject } from "valibot";
|
|
2
|
+
import { createComponentParams, createFieldDisplay, createFieldSchema } from "../common.js";
|
|
3
3
|
const FiveBlockDateDisplaySchema = createFieldDisplay(strictObject({
|
|
4
|
-
component: literal('five-block-date')
|
|
4
|
+
component: literal('five-block-date'),
|
|
5
|
+
'component-params': nullish(createComponentParams({}))
|
|
5
6
|
}));
|
|
6
|
-
const FiveBlockDateSchema =
|
|
7
|
+
const FiveBlockDateSchema = createFieldSchema({
|
|
7
8
|
'user-input-mode': picklist([
|
|
8
9
|
'noinput',
|
|
9
10
|
'optional',
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
declare const HiddenSchema: v.
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
2
|
+
declare const HiddenSchema: v.StrictObjectSchema<{
|
|
3
|
+
readonly attribute: v.NullishSchema<v.AnySchema, undefined>;
|
|
4
|
+
readonly sources: v.NullishSchema<v.AnySchema, undefined>;
|
|
5
|
+
readonly 'value-constructor': v.NullishSchema<v.AnySchema, undefined>;
|
|
6
|
+
readonly datatype: v.NullishSchema<v.AnySchema, undefined>;
|
|
7
|
+
readonly 'is-display-field': v.NullishSchema<v.AnySchema, undefined>;
|
|
8
|
+
readonly 'default-on-empty': v.NullishSchema<v.AnySchema, undefined>;
|
|
9
|
+
} & {
|
|
10
|
+
'user-input-mode': v.PicklistSchema<["noinput", "required"], undefined>;
|
|
11
|
+
display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
5
12
|
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
6
13
|
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
14
|
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -14,7 +21,37 @@ declare const HiddenSchema: v.LooseObjectSchema<{
|
|
|
14
21
|
}, undefined>, undefined>;
|
|
15
22
|
} & {
|
|
16
23
|
readonly component: v.LiteralSchema<"hidden", undefined>;
|
|
17
|
-
readonly 'component-params': v.NullishSchema<v.
|
|
24
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
25
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
26
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
27
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
28
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
29
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
30
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
31
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
32
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
33
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
34
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
35
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
36
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
37
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
38
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
39
|
+
}, undefined> | v.LooseObjectSchema<{
|
|
40
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
41
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
42
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
43
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
44
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
45
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
46
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
47
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
48
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
49
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
50
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
51
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
52
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
53
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
54
|
+
}, undefined>, undefined>;
|
|
18
55
|
}, undefined>, v.ObjectSchema<{
|
|
19
56
|
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
20
57
|
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -28,7 +65,93 @@ declare const HiddenSchema: v.LooseObjectSchema<{
|
|
|
28
65
|
}, undefined>, undefined>;
|
|
29
66
|
} & {
|
|
30
67
|
readonly component: v.LiteralSchema<"hidden", undefined>;
|
|
31
|
-
readonly 'component-params': v.NullishSchema<v.
|
|
68
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
69
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
70
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
71
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
72
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
73
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
74
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
75
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
76
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
77
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
78
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
79
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
80
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
81
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
82
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
83
|
+
}, undefined> | v.LooseObjectSchema<{
|
|
84
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
85
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
86
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
87
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
88
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
89
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
90
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
91
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
92
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
93
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
94
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
95
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
96
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
97
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
98
|
+
}, undefined>, undefined>;
|
|
99
|
+
}, undefined>>>]>;
|
|
100
|
+
value: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
101
|
+
'default-value': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
102
|
+
}, undefined> | v.LooseObjectSchema<{
|
|
103
|
+
readonly attribute: v.NullishSchema<v.AnySchema, undefined>;
|
|
104
|
+
readonly sources: v.NullishSchema<v.AnySchema, undefined>;
|
|
105
|
+
readonly 'value-constructor': v.NullishSchema<v.AnySchema, undefined>;
|
|
106
|
+
readonly datatype: v.NullishSchema<v.AnySchema, undefined>;
|
|
107
|
+
readonly 'is-display-field': v.NullishSchema<v.AnySchema, undefined>;
|
|
108
|
+
readonly 'default-on-empty': v.NullishSchema<v.AnySchema, undefined>;
|
|
109
|
+
} & {
|
|
110
|
+
'user-input-mode': v.PicklistSchema<["noinput", "required"], undefined>;
|
|
111
|
+
display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
112
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
113
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
114
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
115
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
116
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
117
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
118
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
119
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
120
|
+
readonly md: v.StringSchema<undefined>;
|
|
121
|
+
}, undefined>, undefined>;
|
|
122
|
+
} & {
|
|
123
|
+
readonly component: v.LiteralSchema<"hidden", undefined>;
|
|
124
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
125
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
126
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
127
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
128
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
129
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
130
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
131
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
132
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
133
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
134
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
135
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
136
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
137
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
138
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
139
|
+
}, undefined> | v.LooseObjectSchema<{
|
|
140
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
141
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
142
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
143
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
144
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
145
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
146
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
147
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
148
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
149
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
150
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
151
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
152
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
153
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
154
|
+
}, undefined>, undefined>;
|
|
32
155
|
}, undefined>, v.ObjectSchema<{
|
|
33
156
|
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
34
157
|
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -42,16 +165,40 @@ declare const HiddenSchema: v.LooseObjectSchema<{
|
|
|
42
165
|
}, undefined>, undefined>;
|
|
43
166
|
} & {
|
|
44
167
|
readonly component: v.LiteralSchema<"hidden", undefined>;
|
|
45
|
-
readonly 'component-params': v.NullishSchema<v.
|
|
168
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
169
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
170
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
171
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
172
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
173
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
174
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
175
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
176
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
177
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
178
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
179
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
180
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
181
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
182
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
183
|
+
}, undefined> | v.LooseObjectSchema<{
|
|
184
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
185
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
186
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
187
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
188
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
189
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
190
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
191
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
192
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
193
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
194
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
195
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
196
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
197
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
198
|
+
}, undefined>, undefined>;
|
|
46
199
|
}, undefined>>>]>;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
readonly 'value-constructor': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
50
|
-
readonly value: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
51
|
-
readonly attribute: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
52
|
-
readonly 'default-value': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
53
|
-
readonly 'is-display-field': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
54
|
-
readonly 'default-on-empty': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
200
|
+
value: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
201
|
+
'default-value': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
55
202
|
}, undefined>;
|
|
56
203
|
export type HiddenType = v.InferOutput<typeof HiddenSchema>;
|
|
57
204
|
export type HiddenSchemaType = v.GenericSchema<HiddenType>;
|
|
@@ -1,25 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createFieldDisplay } from "../common.js";
|
|
1
|
+
import { literal, looseObject, nullish, picklist, string } from "valibot";
|
|
2
|
+
import { createComponentParams, createFieldDisplay, createFieldSchema } from "../common.js";
|
|
3
3
|
const HiddenDisplaySchema = createFieldDisplay(looseObject({
|
|
4
4
|
component: literal('hidden'),
|
|
5
|
-
'component-params': nullish(
|
|
5
|
+
'component-params': nullish(createComponentParams({}, 'loose'))
|
|
6
6
|
}));
|
|
7
|
-
const HiddenSchema =
|
|
7
|
+
const HiddenSchema = createFieldSchema({
|
|
8
8
|
'user-input-mode': picklist([
|
|
9
9
|
'noinput',
|
|
10
|
-
'
|
|
11
|
-
'required',
|
|
12
|
-
'display'
|
|
10
|
+
'required'
|
|
13
11
|
]),
|
|
14
12
|
display: HiddenDisplaySchema,
|
|
15
|
-
datatype: nullish(string()),
|
|
16
|
-
sources: nullish(string()),
|
|
17
|
-
'value-constructor': nullish(string()),
|
|
18
13
|
value: nullish(string()),
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
'is-display-field': nullish(external_valibot_boolean()),
|
|
22
|
-
'default-on-empty': nullish(string())
|
|
23
|
-
});
|
|
14
|
+
'default-value': nullish(string())
|
|
15
|
+
}, 'loose');
|
|
24
16
|
const field_hidden = HiddenSchema;
|
|
25
17
|
export { field_hidden as default };
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
declare const HierarchicalSelectorSchema: v.StrictObjectSchema<{
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
3
|
+
readonly attribute: v.NullishSchema<v.AnySchema, undefined>;
|
|
4
|
+
readonly sources: v.NullishSchema<v.AnySchema, undefined>;
|
|
5
|
+
readonly 'value-constructor': v.NullishSchema<v.AnySchema, undefined>;
|
|
6
|
+
readonly datatype: v.NullishSchema<v.AnySchema, undefined>;
|
|
7
|
+
readonly 'is-display-field': v.NullishSchema<v.AnySchema, undefined>;
|
|
8
|
+
readonly 'default-on-empty': v.NullishSchema<v.AnySchema, undefined>;
|
|
9
|
+
} & {
|
|
10
|
+
'user-input-mode': v.PicklistSchema<["noinput", "required"], undefined>;
|
|
11
|
+
display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
5
12
|
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
6
13
|
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
14
|
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -15,16 +22,41 @@ declare const HierarchicalSelectorSchema: v.StrictObjectSchema<{
|
|
|
15
22
|
} & {
|
|
16
23
|
readonly component: v.LiteralSchema<"hierarchical-selector", undefined>;
|
|
17
24
|
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
18
|
-
readonly
|
|
19
|
-
readonly '
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
26
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
27
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
28
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
29
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
30
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
31
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
32
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
33
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
34
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
35
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
36
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
37
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
38
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
39
|
+
} & {
|
|
40
|
+
dataset: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
41
|
+
'dataset-filter-field': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
42
|
+
}, undefined> | v.LooseObjectSchema<{
|
|
43
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
44
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
45
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
46
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
47
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
48
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
49
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
50
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
51
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
52
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
53
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
54
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
55
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
56
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
57
|
+
} & {
|
|
58
|
+
dataset: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
59
|
+
'dataset-filter-field': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
28
60
|
}, undefined>, undefined>;
|
|
29
61
|
}, undefined>, v.ObjectSchema<{
|
|
30
62
|
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -40,16 +72,102 @@ declare const HierarchicalSelectorSchema: v.StrictObjectSchema<{
|
|
|
40
72
|
} & {
|
|
41
73
|
readonly component: v.LiteralSchema<"hierarchical-selector", undefined>;
|
|
42
74
|
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
43
|
-
readonly
|
|
44
|
-
readonly '
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
75
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
76
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
77
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
78
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
79
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
80
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
81
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
82
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
83
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
84
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
85
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
86
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
87
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
88
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
89
|
+
} & {
|
|
90
|
+
dataset: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
91
|
+
'dataset-filter-field': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
92
|
+
}, undefined> | v.LooseObjectSchema<{
|
|
93
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
94
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
95
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
96
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
97
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
98
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
99
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
100
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
101
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
102
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
103
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
104
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
105
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
106
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
107
|
+
} & {
|
|
108
|
+
dataset: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
109
|
+
'dataset-filter-field': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
110
|
+
}, undefined>, undefined>;
|
|
111
|
+
}, undefined>>>]>;
|
|
112
|
+
'dataset-source-fn': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
113
|
+
}, undefined> | v.LooseObjectSchema<{
|
|
114
|
+
readonly attribute: v.NullishSchema<v.AnySchema, undefined>;
|
|
115
|
+
readonly sources: v.NullishSchema<v.AnySchema, undefined>;
|
|
116
|
+
readonly 'value-constructor': v.NullishSchema<v.AnySchema, undefined>;
|
|
117
|
+
readonly datatype: v.NullishSchema<v.AnySchema, undefined>;
|
|
118
|
+
readonly 'is-display-field': v.NullishSchema<v.AnySchema, undefined>;
|
|
119
|
+
readonly 'default-on-empty': v.NullishSchema<v.AnySchema, undefined>;
|
|
120
|
+
} & {
|
|
121
|
+
'user-input-mode': v.PicklistSchema<["noinput", "required"], undefined>;
|
|
122
|
+
display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
123
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
124
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
125
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
126
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
127
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
128
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
129
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
130
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
131
|
+
readonly md: v.StringSchema<undefined>;
|
|
132
|
+
}, undefined>, undefined>;
|
|
133
|
+
} & {
|
|
134
|
+
readonly component: v.LiteralSchema<"hierarchical-selector", undefined>;
|
|
135
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
136
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
137
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
138
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
139
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
140
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
141
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
142
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
143
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
144
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
145
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
146
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
147
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
148
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
149
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
150
|
+
} & {
|
|
151
|
+
dataset: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
152
|
+
'dataset-filter-field': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
153
|
+
}, undefined> | v.LooseObjectSchema<{
|
|
154
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
155
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
156
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
157
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
158
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
159
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
160
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
161
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
162
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
163
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
164
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
165
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
166
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
167
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
168
|
+
} & {
|
|
169
|
+
dataset: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
170
|
+
'dataset-filter-field': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
53
171
|
}, undefined>, undefined>;
|
|
54
172
|
}, undefined>, v.ObjectSchema<{
|
|
55
173
|
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -65,23 +183,44 @@ declare const HierarchicalSelectorSchema: v.StrictObjectSchema<{
|
|
|
65
183
|
} & {
|
|
66
184
|
readonly component: v.LiteralSchema<"hierarchical-selector", undefined>;
|
|
67
185
|
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
68
|
-
readonly
|
|
69
|
-
readonly '
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
186
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
187
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
188
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
189
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
190
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
191
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
192
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
193
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
194
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
195
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
196
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
197
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
198
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
199
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
200
|
+
} & {
|
|
201
|
+
dataset: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
202
|
+
'dataset-filter-field': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
203
|
+
}, undefined> | v.LooseObjectSchema<{
|
|
204
|
+
readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
|
|
205
|
+
readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
|
|
206
|
+
readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
|
|
207
|
+
readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
|
|
208
|
+
readonly leading: v.NullishSchema<v.AnySchema, undefined>;
|
|
209
|
+
readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
210
|
+
readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
|
|
211
|
+
readonly bold: v.NullishSchema<v.AnySchema, undefined>;
|
|
212
|
+
readonly format: v.NullishSchema<v.AnySchema, undefined>;
|
|
213
|
+
readonly emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
214
|
+
readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
|
|
215
|
+
readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
|
|
216
|
+
readonly position: v.NullishSchema<v.AnySchema, undefined>;
|
|
217
|
+
readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
|
|
218
|
+
} & {
|
|
219
|
+
dataset: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
220
|
+
'dataset-filter-field': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
78
221
|
}, undefined>, undefined>;
|
|
79
222
|
}, undefined>>>]>;
|
|
80
|
-
|
|
81
|
-
readonly sources: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
82
|
-
readonly 'value-constructor': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
83
|
-
readonly datatype: v.NullishSchema<v.PicklistSchema<["entity_recipient", "string"], undefined>, undefined>;
|
|
84
|
-
readonly 'dataset-source-fn': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
223
|
+
'dataset-source-fn': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
85
224
|
}, undefined>;
|
|
86
225
|
export type HierarchicalSelectorType = v.InferOutput<typeof HierarchicalSelectorSchema>;
|
|
87
226
|
export type HierarchicalSelectorSchemaType = v.GenericSchema<HierarchicalSelectorType>;
|
|
@@ -1,34 +1,18 @@
|
|
|
1
|
-
import { literal, nullish,
|
|
2
|
-
import { createFieldDisplay } from "../common.js";
|
|
1
|
+
import { literal, nullish, picklist, strictObject, string } from "valibot";
|
|
2
|
+
import { createComponentParams, createFieldDisplay, createFieldSchema } from "../common.js";
|
|
3
3
|
const HierarchicalSelectorDisplaySchema = createFieldDisplay(strictObject({
|
|
4
4
|
component: literal('hierarchical-selector'),
|
|
5
|
-
'component-params': nullish(
|
|
5
|
+
'component-params': nullish(createComponentParams({
|
|
6
6
|
dataset: nullish(string()),
|
|
7
|
-
'dataset-filter-field': nullish(string())
|
|
8
|
-
format: nullish(literal('plaintext')),
|
|
9
|
-
initial_loading_levels: nullish(number()),
|
|
10
|
-
multiplicity: nullish(number()),
|
|
11
|
-
multiplicityLabels: nullish(strictObject({
|
|
12
|
-
addItem: nullish(string()),
|
|
13
|
-
empty: nullish(string()),
|
|
14
|
-
emptyValueDisplay: nullish(string())
|
|
15
|
-
}))
|
|
7
|
+
'dataset-filter-field': nullish(string())
|
|
16
8
|
}))
|
|
17
9
|
}));
|
|
18
|
-
const HierarchicalSelectorSchema =
|
|
10
|
+
const HierarchicalSelectorSchema = createFieldSchema({
|
|
19
11
|
'user-input-mode': picklist([
|
|
20
12
|
'noinput',
|
|
21
|
-
'optional',
|
|
22
13
|
'required'
|
|
23
14
|
]),
|
|
24
15
|
display: HierarchicalSelectorDisplaySchema,
|
|
25
|
-
attribute: nullish(string()),
|
|
26
|
-
sources: nullish(string()),
|
|
27
|
-
'value-constructor': nullish(string()),
|
|
28
|
-
datatype: nullish(picklist([
|
|
29
|
-
'entity_recipient',
|
|
30
|
-
'string'
|
|
31
|
-
])),
|
|
32
16
|
'dataset-source-fn': nullish(string())
|
|
33
17
|
});
|
|
34
18
|
const hierarchical_selector = HierarchicalSelectorSchema;
|