@uides/stepwise 2.0.0-30d44ed9 → 2.0.0-385c7994
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/LICENSE +0 -0
- package/generators/componentExtractor.d.mts +1 -0
- package/generators/componentReducer.d.mts +1 -0
- package/generators/templateGenerator.d.mts +1 -0
- package/index.d.ts +2 -0
- package/index.js +7 -0
- package/package.json +6 -21
- package/schemas/action.d.ts +2366 -0
- package/schemas/action.js +196 -0
- package/schemas/application.d.ts +19 -0
- package/schemas/application.js +14 -0
- package/schemas/attributes.d.ts +16 -0
- package/schemas/attributes.js +14 -0
- package/schemas/common.d.ts +25 -0
- package/schemas/common.js +41 -0
- package/schemas/document.d.ts +395 -0
- package/schemas/document.js +79 -0
- package/schemas/edupass-healthstate.d.ts +77 -0
- package/schemas/edupass-healthstate.js +76 -0
- package/schemas/field/afm/index.d.ts +52 -0
- package/schemas/field/afm/index.js +20 -0
- package/schemas/field/amka/index.d.ts +60 -0
- package/schemas/field/amka/index.js +21 -0
- package/schemas/field/attachment/index.d.ts +68 -0
- package/schemas/field/attachment/index.js +38 -0
- package/schemas/field/captcha/index.d.ts +48 -0
- package/schemas/field/captcha/index.js +15 -0
- package/schemas/field/choice/index.d.ts +73 -0
- package/schemas/field/choice/index.js +32 -0
- package/schemas/field/common.d.ts +82 -0
- package/schemas/field/common.js +63 -0
- package/schemas/field/consent-content/index.d.ts +68 -0
- package/schemas/field/consent-content/index.js +19 -0
- package/schemas/field/date/index.d.ts +90 -0
- package/schemas/field/date/index.js +42 -0
- package/schemas/field/doc_subtitle/index.d.ts +51 -0
- package/schemas/field/doc_subtitle/index.js +14 -0
- package/schemas/field/doc_title/index.d.ts +60 -0
- package/schemas/field/doc_title/index.js +21 -0
- package/schemas/field/dynamically-filled-text/index.d.ts +85 -0
- package/schemas/field/dynamically-filled-text/index.js +36 -0
- package/schemas/field/email/index.d.ts +60 -0
- package/schemas/field/email/index.js +21 -0
- package/schemas/field/fillable-string/index.d.ts +64 -0
- package/schemas/field/fillable-string/index.js +25 -0
- package/schemas/field/five-block-date/index.d.ts +48 -0
- package/schemas/field/five-block-date/index.js +15 -0
- package/schemas/field/hidden/index.d.ts +59 -0
- package/schemas/field/hidden/index.js +25 -0
- package/schemas/field/hierarchical-selector/index.d.ts +89 -0
- package/schemas/field/hierarchical-selector/index.js +35 -0
- package/schemas/field/iban/index.d.ts +58 -0
- package/schemas/field/iban/index.js +19 -0
- package/schemas/field/image/index.d.ts +68 -0
- package/schemas/field/image/index.js +36 -0
- package/schemas/field/image-crop/index.d.ts +59 -0
- package/schemas/field/image-crop/index.js +19 -0
- package/schemas/field/index.d.ts +48 -0
- package/schemas/field/index.js +167 -0
- package/schemas/field/int/index.d.ts +60 -0
- package/schemas/field/int/index.js +21 -0
- package/schemas/field/intl_mobile_phone/index.d.ts +49 -0
- package/schemas/field/intl_mobile_phone/index.js +15 -0
- package/schemas/field/lab-results/index.d.ts +49 -0
- package/schemas/field/lab-results/index.js +12 -0
- package/schemas/field/landline_phone/index.d.ts +48 -0
- package/schemas/field/landline_phone/index.js +14 -0
- package/schemas/field/link/index.d.ts +50 -0
- package/schemas/field/link/index.js +16 -0
- package/schemas/field/mobile_phone/index.d.ts +51 -0
- package/schemas/field/mobile_phone/index.js +18 -0
- package/schemas/field/multiple-choice/index.d.ts +70 -0
- package/schemas/field/multiple-choice/index.js +31 -0
- package/schemas/field/password/index.d.ts +48 -0
- package/schemas/field/password/index.js +15 -0
- package/schemas/field/pdf-image/index.d.ts +66 -0
- package/schemas/field/pdf-image/index.js +27 -0
- package/schemas/field/phone/index.d.ts +48 -0
- package/schemas/field/phone/index.js +14 -0
- package/schemas/field/postal_code/index.d.ts +50 -0
- package/schemas/field/postal_code/index.js +17 -0
- package/schemas/field/preference-multiple-choice/index.d.ts +90 -0
- package/schemas/field/preference-multiple-choice/index.js +31 -0
- package/schemas/field/qrcode/index.d.ts +71 -0
- package/schemas/field/qrcode/index.js +30 -0
- package/schemas/field/quote/index.d.ts +63 -0
- package/schemas/field/quote/index.js +30 -0
- package/schemas/field/radio-choice/index.d.ts +67 -0
- package/schemas/field/radio-choice/index.js +31 -0
- package/schemas/field/rate/index.d.ts +60 -0
- package/schemas/field/rate/index.js +18 -0
- package/schemas/field/recipient/index.d.ts +51 -0
- package/schemas/field/recipient/index.js +20 -0
- package/schemas/field/redirect/index.d.ts +52 -0
- package/schemas/field/redirect/index.js +15 -0
- package/schemas/field/refcode/index.d.ts +68 -0
- package/schemas/field/refcode/index.js +29 -0
- package/schemas/field/string/index.d.ts +135 -0
- package/schemas/field/string/index.js +80 -0
- package/schemas/field/text/index.d.ts +85 -0
- package/schemas/field/text/index.js +45 -0
- package/schemas/field/three-block-date/index.d.ts +64 -0
- package/schemas/field/three-block-date/index.js +26 -0
- package/schemas/field/url-param/index.d.ts +57 -0
- package/schemas/field/url-param/index.js +14 -0
- package/schemas/fieldset/component-params.d.ts +102 -0
- package/schemas/fieldset/component-params.js +63 -0
- package/schemas/fieldset/display-components.d.ts +353 -0
- package/schemas/fieldset/display-components.js +36 -0
- package/schemas/fieldset/enums.d.ts +32 -0
- package/schemas/fieldset/enums.js +21 -0
- package/schemas/fieldset/index.d.ts +180 -0
- package/schemas/fieldset/index.js +11 -0
- package/schemas/index.d.ts +15 -0
- package/schemas/index.js +15 -0
- package/schemas/layout.d.ts +91 -0
- package/schemas/layout.js +43 -0
- package/schemas/outputs.d.ts +44 -0
- package/schemas/outputs.js +15 -0
- package/schemas/resolve.d.ts +5 -0
- package/schemas/resolve.js +13 -0
- package/schemas/resource/enums.d.ts +58 -0
- package/schemas/resource/enums.js +41 -0
- package/schemas/resource/field.d.ts +15 -0
- package/schemas/resource/field.js +12 -0
- package/schemas/resource/index.d.ts +5 -0
- package/schemas/resource/index.js +5 -0
- package/schemas/resource/object-action.d.ts +30 -0
- package/schemas/resource/object-action.js +24 -0
- package/schemas/resource/resource-action.d.ts +35 -0
- package/schemas/resource/resource-action.js +29 -0
- package/schemas/resource/resource.d.ts +133 -0
- package/schemas/resource/resource.js +31 -0
- package/schemas/step.d.ts +592 -0
- package/schemas/step.js +115 -0
- package/schemas/template/index.d.ts +2 -0
- package/schemas/template/index.js +2 -0
- package/schemas/template/template-base.d.ts +53 -0
- package/schemas/template/template-base.js +15 -0
- package/schemas/template/template-source.d.ts +50 -0
- package/schemas/template/template-source.js +14 -0
- package/schemas/template/template.d.ts +54 -0
- package/schemas/template/template.js +22 -0
- package/schemas/validation-context/enums.d.ts +10 -0
- package/schemas/validation-context/enums.js +7 -0
- package/schemas/validation-context/index.d.ts +2 -0
- package/schemas/validation-context/index.js +2 -0
- package/schemas/validation-context/validation-context.d.ts +131 -0
- package/schemas/validation-context/validation-context.js +55 -0
- package/src/schemas/action.ts +15 -0
- package/src/schemas/common.ts +16 -0
- package/src/schemas/field/afm/index.ts +2 -18
- package/src/schemas/field/amka/index.ts +7 -2
- package/src/schemas/field/attachment/index.ts +12 -24
- package/src/schemas/field/choice/index.ts +2 -13
- package/src/schemas/field/common.ts +75 -51
- package/src/schemas/field/consent-content/index.ts +28 -0
- package/src/schemas/field/date/index.ts +5 -32
- package/src/schemas/field/doc_subtitle/index.ts +1 -0
- package/src/schemas/field/doc_title/index.ts +9 -16
- package/src/schemas/field/dynamically-filled-text/index.ts +4 -5
- package/src/schemas/field/email/index.ts +6 -9
- package/src/schemas/field/fillable-string/index.ts +1 -1
- package/src/schemas/field/hidden/index.ts +4 -43
- package/src/schemas/field/hierarchical-selector/index.ts +3 -9
- package/src/schemas/field/image/index.ts +5 -24
- package/src/schemas/field/image-crop/index.ts +25 -0
- package/src/schemas/field/index.spec.ts +0 -42
- package/src/schemas/field/index.ts +64 -12
- package/src/schemas/field/int/index.ts +2 -0
- package/src/schemas/field/intl_mobile_phone/index.ts +19 -0
- package/src/schemas/field/lab-results/index.ts +1 -2
- package/src/schemas/field/link/index.ts +20 -0
- package/src/schemas/field/mobile_phone/index.ts +1 -12
- package/src/schemas/field/multiple-choice/index.ts +4 -3
- package/src/schemas/field/password/index.ts +18 -0
- package/src/schemas/field/pdf-image/index.ts +3 -15
- package/src/schemas/field/phone/index.ts +18 -0
- package/src/schemas/field/postal_code/index.ts +1 -1
- package/src/schemas/field/preference-multiple-choice/index.ts +41 -0
- package/src/schemas/field/qrcode/index.ts +1 -0
- package/src/schemas/field/quote/index.ts +2 -19
- package/src/schemas/field/radio-choice/index.ts +1 -7
- package/src/schemas/field/rate/index.ts +1 -9
- package/src/schemas/field/recipient/index.ts +2 -2
- package/src/schemas/field/redirect/index.ts +4 -13
- package/src/schemas/field/refcode/index.ts +10 -15
- package/src/schemas/field/string/index.ts +13 -0
- package/src/schemas/field/text/index.ts +4 -18
- package/src/schemas/field/url-param/index.ts +23 -0
- package/src/schemas/resolve.ts +3 -0
- package/src/schemas/step.ts +2 -0
- package/src/schemas/template/index.ts +0 -1
- package/src/schemas/template/template-base.ts +0 -10
- package/src/schemas/template/template.ts +1 -2
- package/src/schemas/validation-context/enums.ts +0 -16
- package/src/schemas/validation-context/validation-context.ts +2 -4
- package/src/utils/index.ts +10 -1
- package/utils/index.d.ts +6 -0
- package/utils/index.js +55 -0
- package/.prettierrc.js +0 -1
- package/.rush/temp/chunked-rush-logs/stepwise.build.chunks.jsonl +0 -6
- package/.rush/temp/package-deps_build.json +0 -185
- package/.rush/temp/shrinkwrap-deps.json +0 -303
- package/eslint.config.mjs +0 -3
- package/rush-logs/stepwise.build.log +0 -6
- package/src/schemas/field/green-pass-qrcode/index.ts +0 -27
- package/src/schemas/template/enums.ts +0 -22
- package/tsconfig.json +0 -25
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
declare const FillableStringSchema: v.StrictObjectSchema<{
|
|
3
|
+
readonly 'user-input-mode': v.PicklistSchema<["noinput", "display", "optional"], undefined>;
|
|
4
|
+
readonly display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
5
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
8
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
13
|
+
readonly md: v.StringSchema<undefined>;
|
|
14
|
+
}, undefined>, undefined>;
|
|
15
|
+
} & {
|
|
16
|
+
readonly component: v.LiteralSchema<"fillable-string", undefined>;
|
|
17
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
18
|
+
readonly emph: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
19
|
+
}, undefined>, undefined>;
|
|
20
|
+
}, undefined>, v.ObjectSchema<{
|
|
21
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
23
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
24
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
26
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
28
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
29
|
+
readonly md: v.StringSchema<undefined>;
|
|
30
|
+
}, undefined>, undefined>;
|
|
31
|
+
} & {
|
|
32
|
+
readonly component: v.LiteralSchema<"fillable-string", undefined>;
|
|
33
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
34
|
+
readonly emph: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
35
|
+
}, undefined>, undefined>;
|
|
36
|
+
}, undefined>, v.ObjectSchema<{
|
|
37
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
39
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
40
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
41
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
42
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
43
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
44
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
45
|
+
readonly md: v.StringSchema<undefined>;
|
|
46
|
+
}, undefined>, undefined>;
|
|
47
|
+
} & {
|
|
48
|
+
readonly component: v.LiteralSchema<"fillable-string", undefined>;
|
|
49
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
50
|
+
readonly emph: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
51
|
+
}, undefined>, undefined>;
|
|
52
|
+
}, undefined>>>]>;
|
|
53
|
+
readonly attribute: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
54
|
+
readonly 'default-value': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
55
|
+
readonly 'value-constructor': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
56
|
+
readonly value: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
57
|
+
readonly safe: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
58
|
+
readonly sources: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
59
|
+
readonly datatype: v.NullishSchema<v.LiteralSchema<"string", undefined>, undefined>;
|
|
60
|
+
}, undefined>;
|
|
61
|
+
export type FillableStringType = v.InferOutput<typeof FillableStringSchema>;
|
|
62
|
+
export type FillableStringSchemaType = v.GenericSchema<FillableStringType>;
|
|
63
|
+
declare const _default: FillableStringSchemaType;
|
|
64
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { boolean as external_valibot_boolean, literal, nullish, picklist, strictObject, string } from "valibot";
|
|
2
|
+
import { createFieldDisplay } from "../common.js";
|
|
3
|
+
const FillableStringDisplaySchema = createFieldDisplay(strictObject({
|
|
4
|
+
component: literal('fillable-string'),
|
|
5
|
+
'component-params': nullish(strictObject({
|
|
6
|
+
emph: nullish(external_valibot_boolean())
|
|
7
|
+
}))
|
|
8
|
+
}));
|
|
9
|
+
const FillableStringSchema = strictObject({
|
|
10
|
+
'user-input-mode': picklist([
|
|
11
|
+
'noinput',
|
|
12
|
+
'display',
|
|
13
|
+
'optional'
|
|
14
|
+
]),
|
|
15
|
+
display: FillableStringDisplaySchema,
|
|
16
|
+
attribute: nullish(string()),
|
|
17
|
+
'default-value': nullish(string()),
|
|
18
|
+
'value-constructor': nullish(string()),
|
|
19
|
+
value: nullish(string()),
|
|
20
|
+
safe: nullish(external_valibot_boolean()),
|
|
21
|
+
sources: nullish(string()),
|
|
22
|
+
datatype: nullish(literal('string'))
|
|
23
|
+
});
|
|
24
|
+
const fillable_string = FillableStringSchema;
|
|
25
|
+
export { fillable_string as default };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
declare const FiveBlockDateSchema: v.StrictObjectSchema<{
|
|
3
|
+
readonly 'user-input-mode': v.PicklistSchema<["noinput", "optional", "required"], undefined>;
|
|
4
|
+
readonly display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
5
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
8
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
13
|
+
readonly md: v.StringSchema<undefined>;
|
|
14
|
+
}, undefined>, undefined>;
|
|
15
|
+
} & {
|
|
16
|
+
readonly component: v.LiteralSchema<"five-block-date", undefined>;
|
|
17
|
+
}, undefined>, v.ObjectSchema<{
|
|
18
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
19
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
20
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
21
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
23
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
24
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
26
|
+
readonly md: v.StringSchema<undefined>;
|
|
27
|
+
}, undefined>, undefined>;
|
|
28
|
+
} & {
|
|
29
|
+
readonly component: v.LiteralSchema<"five-block-date", undefined>;
|
|
30
|
+
}, undefined>, v.ObjectSchema<{
|
|
31
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
32
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
33
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
34
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
35
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
36
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
37
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
39
|
+
readonly md: v.StringSchema<undefined>;
|
|
40
|
+
}, undefined>, undefined>;
|
|
41
|
+
} & {
|
|
42
|
+
readonly component: v.LiteralSchema<"five-block-date", undefined>;
|
|
43
|
+
}, undefined>>>]>;
|
|
44
|
+
}, undefined>;
|
|
45
|
+
export type FiveBlockDateType = v.InferOutput<typeof FiveBlockDateSchema>;
|
|
46
|
+
export type FiveBlockDateSchemaType = v.GenericSchema<FiveBlockDateType>;
|
|
47
|
+
declare const _default: FiveBlockDateSchemaType;
|
|
48
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { literal, picklist, strictObject } from "valibot";
|
|
2
|
+
import { createFieldDisplay } from "../common.js";
|
|
3
|
+
const FiveBlockDateDisplaySchema = createFieldDisplay(strictObject({
|
|
4
|
+
component: literal('five-block-date')
|
|
5
|
+
}));
|
|
6
|
+
const FiveBlockDateSchema = strictObject({
|
|
7
|
+
'user-input-mode': picklist([
|
|
8
|
+
'noinput',
|
|
9
|
+
'optional',
|
|
10
|
+
'required'
|
|
11
|
+
]),
|
|
12
|
+
display: FiveBlockDateDisplaySchema
|
|
13
|
+
});
|
|
14
|
+
const five_block_date = FiveBlockDateSchema;
|
|
15
|
+
export { five_block_date as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
declare const HiddenSchema: v.LooseObjectSchema<{
|
|
3
|
+
readonly 'user-input-mode': v.PicklistSchema<["noinput", "optional", "required", "display"], undefined>;
|
|
4
|
+
readonly display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
5
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
8
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
13
|
+
readonly md: v.StringSchema<undefined>;
|
|
14
|
+
}, undefined>, undefined>;
|
|
15
|
+
} & {
|
|
16
|
+
readonly component: v.LiteralSchema<"hidden", undefined>;
|
|
17
|
+
readonly 'component-params': v.NullishSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
18
|
+
}, undefined>, v.ObjectSchema<{
|
|
19
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
20
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
21
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
22
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
23
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
24
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
26
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
27
|
+
readonly md: v.StringSchema<undefined>;
|
|
28
|
+
}, undefined>, undefined>;
|
|
29
|
+
} & {
|
|
30
|
+
readonly component: v.LiteralSchema<"hidden", undefined>;
|
|
31
|
+
readonly 'component-params': v.NullishSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
32
|
+
}, undefined>, v.ObjectSchema<{
|
|
33
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
35
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
36
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
37
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
39
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
40
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
41
|
+
readonly md: v.StringSchema<undefined>;
|
|
42
|
+
}, undefined>, undefined>;
|
|
43
|
+
} & {
|
|
44
|
+
readonly component: v.LiteralSchema<"hidden", undefined>;
|
|
45
|
+
readonly 'component-params': v.NullishSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
46
|
+
}, undefined>>>]>;
|
|
47
|
+
readonly datatype: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
48
|
+
readonly sources: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
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>;
|
|
55
|
+
}, undefined>;
|
|
56
|
+
export type HiddenType = v.InferOutput<typeof HiddenSchema>;
|
|
57
|
+
export type HiddenSchemaType = v.GenericSchema<HiddenType>;
|
|
58
|
+
declare const _default: HiddenSchemaType;
|
|
59
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { boolean as external_valibot_boolean, literal, looseObject, nullish, object, picklist, string } from "valibot";
|
|
2
|
+
import { createFieldDisplay } from "../common.js";
|
|
3
|
+
const HiddenDisplaySchema = createFieldDisplay(looseObject({
|
|
4
|
+
component: literal('hidden'),
|
|
5
|
+
'component-params': nullish(object({}))
|
|
6
|
+
}));
|
|
7
|
+
const HiddenSchema = looseObject({
|
|
8
|
+
'user-input-mode': picklist([
|
|
9
|
+
'noinput',
|
|
10
|
+
'optional',
|
|
11
|
+
'required',
|
|
12
|
+
'display'
|
|
13
|
+
]),
|
|
14
|
+
display: HiddenDisplaySchema,
|
|
15
|
+
datatype: nullish(string()),
|
|
16
|
+
sources: nullish(string()),
|
|
17
|
+
'value-constructor': nullish(string()),
|
|
18
|
+
value: nullish(string()),
|
|
19
|
+
attribute: nullish(string()),
|
|
20
|
+
'default-value': nullish(string()),
|
|
21
|
+
'is-display-field': nullish(external_valibot_boolean()),
|
|
22
|
+
'default-on-empty': nullish(string())
|
|
23
|
+
});
|
|
24
|
+
const field_hidden = HiddenSchema;
|
|
25
|
+
export { field_hidden as default };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
declare const HierarchicalSelectorSchema: v.StrictObjectSchema<{
|
|
3
|
+
readonly 'user-input-mode': v.PicklistSchema<["noinput", "optional", "required"], undefined>;
|
|
4
|
+
readonly display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
5
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
8
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
13
|
+
readonly md: v.StringSchema<undefined>;
|
|
14
|
+
}, undefined>, undefined>;
|
|
15
|
+
} & {
|
|
16
|
+
readonly component: v.LiteralSchema<"hierarchical-selector", undefined>;
|
|
17
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
18
|
+
readonly dataset: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
19
|
+
readonly 'dataset-filter-field': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
20
|
+
readonly format: v.NullishSchema<v.LiteralSchema<"plaintext", undefined>, undefined>;
|
|
21
|
+
readonly initial_loading_levels: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
22
|
+
readonly multiplicity: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
23
|
+
readonly multiplicityLabels: v.NullishSchema<v.StrictObjectSchema<{
|
|
24
|
+
readonly addItem: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly empty: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
26
|
+
readonly emptyValueDisplay: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
27
|
+
}, undefined>, undefined>;
|
|
28
|
+
}, undefined>, undefined>;
|
|
29
|
+
}, undefined>, v.ObjectSchema<{
|
|
30
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
31
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
32
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
33
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
35
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
36
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
37
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
38
|
+
readonly md: v.StringSchema<undefined>;
|
|
39
|
+
}, undefined>, undefined>;
|
|
40
|
+
} & {
|
|
41
|
+
readonly component: v.LiteralSchema<"hierarchical-selector", undefined>;
|
|
42
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
43
|
+
readonly dataset: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
44
|
+
readonly 'dataset-filter-field': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
45
|
+
readonly format: v.NullishSchema<v.LiteralSchema<"plaintext", undefined>, undefined>;
|
|
46
|
+
readonly initial_loading_levels: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
47
|
+
readonly multiplicity: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
48
|
+
readonly multiplicityLabels: v.NullishSchema<v.StrictObjectSchema<{
|
|
49
|
+
readonly addItem: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
50
|
+
readonly empty: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
51
|
+
readonly emptyValueDisplay: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
52
|
+
}, undefined>, undefined>;
|
|
53
|
+
}, undefined>, undefined>;
|
|
54
|
+
}, undefined>, v.ObjectSchema<{
|
|
55
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
56
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
57
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
58
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
59
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
60
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
61
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
62
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
63
|
+
readonly md: v.StringSchema<undefined>;
|
|
64
|
+
}, undefined>, undefined>;
|
|
65
|
+
} & {
|
|
66
|
+
readonly component: v.LiteralSchema<"hierarchical-selector", undefined>;
|
|
67
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
68
|
+
readonly dataset: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
69
|
+
readonly 'dataset-filter-field': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
70
|
+
readonly format: v.NullishSchema<v.LiteralSchema<"plaintext", undefined>, undefined>;
|
|
71
|
+
readonly initial_loading_levels: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
72
|
+
readonly multiplicity: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
73
|
+
readonly multiplicityLabels: v.NullishSchema<v.StrictObjectSchema<{
|
|
74
|
+
readonly addItem: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
75
|
+
readonly empty: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
76
|
+
readonly emptyValueDisplay: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
77
|
+
}, undefined>, undefined>;
|
|
78
|
+
}, undefined>, undefined>;
|
|
79
|
+
}, undefined>>>]>;
|
|
80
|
+
readonly attribute: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
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>;
|
|
85
|
+
}, undefined>;
|
|
86
|
+
export type HierarchicalSelectorType = v.InferOutput<typeof HierarchicalSelectorSchema>;
|
|
87
|
+
export type HierarchicalSelectorSchemaType = v.GenericSchema<HierarchicalSelectorType>;
|
|
88
|
+
declare const _default: HierarchicalSelectorSchemaType;
|
|
89
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { literal, nullish, number, picklist, strictObject, string } from "valibot";
|
|
2
|
+
import { createFieldDisplay } from "../common.js";
|
|
3
|
+
const HierarchicalSelectorDisplaySchema = createFieldDisplay(strictObject({
|
|
4
|
+
component: literal('hierarchical-selector'),
|
|
5
|
+
'component-params': nullish(strictObject({
|
|
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
|
+
}))
|
|
16
|
+
}))
|
|
17
|
+
}));
|
|
18
|
+
const HierarchicalSelectorSchema = strictObject({
|
|
19
|
+
'user-input-mode': picklist([
|
|
20
|
+
'noinput',
|
|
21
|
+
'optional',
|
|
22
|
+
'required'
|
|
23
|
+
]),
|
|
24
|
+
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
|
+
'dataset-source-fn': nullish(string())
|
|
33
|
+
});
|
|
34
|
+
const hierarchical_selector = HierarchicalSelectorSchema;
|
|
35
|
+
export { hierarchical_selector as default };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
declare const IbanSchema: v.StrictObjectSchema<{
|
|
3
|
+
readonly 'user-input-mode': v.PicklistSchema<["noinput", "optional", "required"], undefined>;
|
|
4
|
+
readonly display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
5
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
8
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
13
|
+
readonly md: v.StringSchema<undefined>;
|
|
14
|
+
}, undefined>, undefined>;
|
|
15
|
+
} & {
|
|
16
|
+
readonly component: v.LiteralSchema<"iban", undefined>;
|
|
17
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
18
|
+
readonly country: v.LiteralSchema<"gr", undefined>;
|
|
19
|
+
}, undefined>, undefined>;
|
|
20
|
+
}, undefined>, v.ObjectSchema<{
|
|
21
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
23
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
24
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
26
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
28
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
29
|
+
readonly md: v.StringSchema<undefined>;
|
|
30
|
+
}, undefined>, undefined>;
|
|
31
|
+
} & {
|
|
32
|
+
readonly component: v.LiteralSchema<"iban", undefined>;
|
|
33
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
34
|
+
readonly country: v.LiteralSchema<"gr", undefined>;
|
|
35
|
+
}, undefined>, undefined>;
|
|
36
|
+
}, undefined>, v.ObjectSchema<{
|
|
37
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
39
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
40
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
41
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
42
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
43
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
44
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
45
|
+
readonly md: v.StringSchema<undefined>;
|
|
46
|
+
}, undefined>, undefined>;
|
|
47
|
+
} & {
|
|
48
|
+
readonly component: v.LiteralSchema<"iban", undefined>;
|
|
49
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
50
|
+
readonly country: v.LiteralSchema<"gr", undefined>;
|
|
51
|
+
}, undefined>, undefined>;
|
|
52
|
+
}, undefined>>>]>;
|
|
53
|
+
readonly 'default-value': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
54
|
+
}, undefined>;
|
|
55
|
+
export type IbanType = v.InferOutput<typeof IbanSchema>;
|
|
56
|
+
export type IbanSchemaType = v.GenericSchema<IbanType>;
|
|
57
|
+
declare const _default: IbanSchemaType;
|
|
58
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { literal, nullish, picklist, strictObject, string } from "valibot";
|
|
2
|
+
import { createFieldDisplay } from "../common.js";
|
|
3
|
+
const IbanDisplaySchema = createFieldDisplay(strictObject({
|
|
4
|
+
component: literal('iban'),
|
|
5
|
+
'component-params': nullish(strictObject({
|
|
6
|
+
country: literal('gr')
|
|
7
|
+
}))
|
|
8
|
+
}));
|
|
9
|
+
const IbanSchema = strictObject({
|
|
10
|
+
'user-input-mode': picklist([
|
|
11
|
+
'noinput',
|
|
12
|
+
'optional',
|
|
13
|
+
'required'
|
|
14
|
+
]),
|
|
15
|
+
display: IbanDisplaySchema,
|
|
16
|
+
'default-value': nullish(string())
|
|
17
|
+
});
|
|
18
|
+
const iban = IbanSchema;
|
|
19
|
+
export { iban as default };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
declare const ImageSchema: v.StrictObjectSchema<{
|
|
3
|
+
readonly 'user-input-mode': v.PicklistSchema<["noinput", "required", "display"], undefined>;
|
|
4
|
+
readonly display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
5
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
8
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
13
|
+
readonly md: v.StringSchema<undefined>;
|
|
14
|
+
}, undefined>, undefined>;
|
|
15
|
+
} & {
|
|
16
|
+
readonly component: v.LiteralSchema<"image", undefined>;
|
|
17
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
18
|
+
readonly attachment_retrieval: v.NullishSchema<v.PicklistSchema<["content", "content-uri"], undefined>, undefined>;
|
|
19
|
+
readonly position: v.NullishSchema<v.PicklistSchema<["left", "right", "center", "justify"], undefined>, undefined>;
|
|
20
|
+
readonly coordinates: v.NullishSchema<v.ArraySchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>, undefined>;
|
|
21
|
+
}, undefined>, undefined>;
|
|
22
|
+
}, undefined>, v.ObjectSchema<{
|
|
23
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
24
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
25
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
26
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
28
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
29
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
30
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
31
|
+
readonly md: v.StringSchema<undefined>;
|
|
32
|
+
}, undefined>, undefined>;
|
|
33
|
+
} & {
|
|
34
|
+
readonly component: v.LiteralSchema<"image", undefined>;
|
|
35
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
36
|
+
readonly attachment_retrieval: v.NullishSchema<v.PicklistSchema<["content", "content-uri"], undefined>, undefined>;
|
|
37
|
+
readonly position: v.NullishSchema<v.PicklistSchema<["left", "right", "center", "justify"], undefined>, undefined>;
|
|
38
|
+
readonly coordinates: v.NullishSchema<v.ArraySchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>, undefined>;
|
|
39
|
+
}, undefined>, undefined>;
|
|
40
|
+
}, undefined>, v.ObjectSchema<{
|
|
41
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
42
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
43
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
44
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
45
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
46
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
47
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
48
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
49
|
+
readonly md: v.StringSchema<undefined>;
|
|
50
|
+
}, undefined>, undefined>;
|
|
51
|
+
} & {
|
|
52
|
+
readonly component: v.LiteralSchema<"image", undefined>;
|
|
53
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
54
|
+
readonly attachment_retrieval: v.NullishSchema<v.PicklistSchema<["content", "content-uri"], undefined>, undefined>;
|
|
55
|
+
readonly position: v.NullishSchema<v.PicklistSchema<["left", "right", "center", "justify"], undefined>, undefined>;
|
|
56
|
+
readonly coordinates: v.NullishSchema<v.ArraySchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>, undefined>;
|
|
57
|
+
}, undefined>, undefined>;
|
|
58
|
+
}, undefined>>>]>;
|
|
59
|
+
readonly datatype: v.NullishSchema<v.PicklistSchema<["attachment", "string"], undefined>, undefined>;
|
|
60
|
+
readonly attribute: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
61
|
+
readonly value: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
62
|
+
readonly 'value-constructor': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
63
|
+
readonly sources: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
64
|
+
}, undefined>;
|
|
65
|
+
export type ImageType = v.InferOutput<typeof ImageSchema>;
|
|
66
|
+
export type ImageSchemaType = v.GenericSchema<ImageType>;
|
|
67
|
+
declare const _default: ImageSchemaType;
|
|
68
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { array, literal, nullable, nullish, number, picklist, strictObject, string } from "valibot";
|
|
2
|
+
import { createFieldDisplay } from "../common.js";
|
|
3
|
+
const ImageDisplaySchema = createFieldDisplay(strictObject({
|
|
4
|
+
component: literal('image'),
|
|
5
|
+
'component-params': nullish(strictObject({
|
|
6
|
+
attachment_retrieval: nullish(picklist([
|
|
7
|
+
'content',
|
|
8
|
+
'content-uri'
|
|
9
|
+
])),
|
|
10
|
+
position: nullish(picklist([
|
|
11
|
+
'left',
|
|
12
|
+
'right',
|
|
13
|
+
'center',
|
|
14
|
+
'justify'
|
|
15
|
+
])),
|
|
16
|
+
coordinates: nullish(array(nullable(number())))
|
|
17
|
+
}))
|
|
18
|
+
}));
|
|
19
|
+
const ImageSchema = strictObject({
|
|
20
|
+
'user-input-mode': picklist([
|
|
21
|
+
'noinput',
|
|
22
|
+
'required',
|
|
23
|
+
'display'
|
|
24
|
+
]),
|
|
25
|
+
display: ImageDisplaySchema,
|
|
26
|
+
datatype: nullish(picklist([
|
|
27
|
+
'attachment',
|
|
28
|
+
'string'
|
|
29
|
+
])),
|
|
30
|
+
attribute: nullish(string()),
|
|
31
|
+
value: nullish(string()),
|
|
32
|
+
'value-constructor': nullish(string()),
|
|
33
|
+
sources: nullish(string())
|
|
34
|
+
});
|
|
35
|
+
const field_image = ImageSchema;
|
|
36
|
+
export { field_image as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
declare const ImageCropSchema: v.StrictObjectSchema<{
|
|
3
|
+
readonly 'user-input-mode': v.PicklistSchema<["noinput", "required"], undefined>;
|
|
4
|
+
readonly display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
5
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
8
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
13
|
+
readonly md: v.StringSchema<undefined>;
|
|
14
|
+
}, undefined>, undefined>;
|
|
15
|
+
} & {
|
|
16
|
+
readonly component: v.LiteralSchema<"image-crop", undefined>;
|
|
17
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
18
|
+
readonly 'image-src-field-name': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
19
|
+
}, undefined>, undefined>;
|
|
20
|
+
}, undefined>, v.ObjectSchema<{
|
|
21
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
23
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
24
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
26
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
28
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
29
|
+
readonly md: v.StringSchema<undefined>;
|
|
30
|
+
}, undefined>, undefined>;
|
|
31
|
+
} & {
|
|
32
|
+
readonly component: v.LiteralSchema<"image-crop", undefined>;
|
|
33
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
34
|
+
readonly 'image-src-field-name': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
35
|
+
}, undefined>, undefined>;
|
|
36
|
+
}, undefined>, v.ObjectSchema<{
|
|
37
|
+
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
+
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
39
|
+
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
40
|
+
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
41
|
+
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
42
|
+
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
43
|
+
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
44
|
+
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
45
|
+
readonly md: v.StringSchema<undefined>;
|
|
46
|
+
}, undefined>, undefined>;
|
|
47
|
+
} & {
|
|
48
|
+
readonly component: v.LiteralSchema<"image-crop", undefined>;
|
|
49
|
+
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
50
|
+
readonly 'image-src-field-name': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
51
|
+
}, undefined>, undefined>;
|
|
52
|
+
}, undefined>>>]>;
|
|
53
|
+
readonly datatype: v.NullishSchema<v.LiteralSchema<"image-crop", undefined>, undefined>;
|
|
54
|
+
readonly attribute: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
55
|
+
}, undefined>;
|
|
56
|
+
export type ImageCropType = v.InferOutput<typeof ImageCropSchema>;
|
|
57
|
+
export type ImageCropSchemaType = v.GenericSchema<ImageCropType>;
|
|
58
|
+
declare const _default: ImageCropSchemaType;
|
|
59
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { literal, nullish, picklist, strictObject, string } from "valibot";
|
|
2
|
+
import { createFieldDisplay } from "../common.js";
|
|
3
|
+
const ImageCropDisplaySchema = createFieldDisplay(strictObject({
|
|
4
|
+
component: literal('image-crop'),
|
|
5
|
+
'component-params': nullish(strictObject({
|
|
6
|
+
'image-src-field-name': nullish(string())
|
|
7
|
+
}))
|
|
8
|
+
}));
|
|
9
|
+
const ImageCropSchema = strictObject({
|
|
10
|
+
'user-input-mode': picklist([
|
|
11
|
+
'noinput',
|
|
12
|
+
'required'
|
|
13
|
+
]),
|
|
14
|
+
display: ImageCropDisplaySchema,
|
|
15
|
+
datatype: nullish(literal('image-crop')),
|
|
16
|
+
attribute: nullish(string())
|
|
17
|
+
});
|
|
18
|
+
const image_crop = ImageCropSchema;
|
|
19
|
+
export { image_crop as default };
|