@uides/stepwise 2.0.0-a594a958 → 2.0.0-a64dc016

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/LICENSE +0 -0
  2. package/generators/componentExtractor.d.mts +1 -0
  3. package/generators/componentReducer.d.mts +1 -0
  4. package/generators/templateGenerator.d.mts +1 -0
  5. package/index.d.ts +2 -0
  6. package/index.js +7 -0
  7. package/package.json +6 -21
  8. package/schemas/action.d.ts +2366 -0
  9. package/schemas/action.js +196 -0
  10. package/schemas/application.d.ts +19 -0
  11. package/schemas/application.js +14 -0
  12. package/schemas/attributes.d.ts +16 -0
  13. package/schemas/attributes.js +14 -0
  14. package/schemas/common.d.ts +25 -0
  15. package/schemas/common.js +41 -0
  16. package/schemas/document.d.ts +395 -0
  17. package/schemas/document.js +79 -0
  18. package/schemas/edupass-healthstate.d.ts +77 -0
  19. package/schemas/edupass-healthstate.js +76 -0
  20. package/schemas/field/afm/index.d.ts +52 -0
  21. package/schemas/field/afm/index.js +20 -0
  22. package/schemas/field/amka/index.d.ts +60 -0
  23. package/schemas/field/amka/index.js +21 -0
  24. package/schemas/field/attachment/index.d.ts +68 -0
  25. package/schemas/field/attachment/index.js +38 -0
  26. package/schemas/field/captcha/index.d.ts +48 -0
  27. package/schemas/field/captcha/index.js +15 -0
  28. package/schemas/field/choice/index.d.ts +73 -0
  29. package/schemas/field/choice/index.js +32 -0
  30. package/schemas/field/common.d.ts +82 -0
  31. package/schemas/field/common.js +63 -0
  32. package/schemas/field/consent-content/index.d.ts +68 -0
  33. package/schemas/field/consent-content/index.js +19 -0
  34. package/schemas/field/date/index.d.ts +90 -0
  35. package/schemas/field/date/index.js +42 -0
  36. package/schemas/field/doc_subtitle/index.d.ts +51 -0
  37. package/schemas/field/doc_subtitle/index.js +14 -0
  38. package/schemas/field/doc_title/index.d.ts +60 -0
  39. package/schemas/field/doc_title/index.js +21 -0
  40. package/schemas/field/dynamically-filled-text/index.d.ts +85 -0
  41. package/schemas/field/dynamically-filled-text/index.js +36 -0
  42. package/schemas/field/email/index.d.ts +60 -0
  43. package/schemas/field/email/index.js +21 -0
  44. package/schemas/field/fillable-string/index.d.ts +64 -0
  45. package/schemas/field/fillable-string/index.js +25 -0
  46. package/schemas/field/five-block-date/index.d.ts +48 -0
  47. package/schemas/field/five-block-date/index.js +15 -0
  48. package/schemas/field/hidden/index.d.ts +59 -0
  49. package/schemas/field/hidden/index.js +25 -0
  50. package/schemas/field/hierarchical-selector/index.d.ts +89 -0
  51. package/schemas/field/hierarchical-selector/index.js +35 -0
  52. package/schemas/field/iban/index.d.ts +58 -0
  53. package/schemas/field/iban/index.js +19 -0
  54. package/schemas/field/image/index.d.ts +68 -0
  55. package/schemas/field/image/index.js +36 -0
  56. package/schemas/field/image-crop/index.d.ts +59 -0
  57. package/schemas/field/image-crop/index.js +19 -0
  58. package/schemas/field/index.d.ts +48 -0
  59. package/schemas/field/index.js +167 -0
  60. package/schemas/field/int/index.d.ts +60 -0
  61. package/schemas/field/int/index.js +21 -0
  62. package/schemas/field/intl_mobile_phone/index.d.ts +49 -0
  63. package/schemas/field/intl_mobile_phone/index.js +15 -0
  64. package/schemas/field/lab-results/index.d.ts +49 -0
  65. package/schemas/field/lab-results/index.js +12 -0
  66. package/schemas/field/landline_phone/index.d.ts +48 -0
  67. package/schemas/field/landline_phone/index.js +14 -0
  68. package/schemas/field/link/index.d.ts +50 -0
  69. package/schemas/field/link/index.js +16 -0
  70. package/schemas/field/mobile_phone/index.d.ts +51 -0
  71. package/schemas/field/mobile_phone/index.js +18 -0
  72. package/schemas/field/multiple-choice/index.d.ts +70 -0
  73. package/schemas/field/multiple-choice/index.js +31 -0
  74. package/schemas/field/password/index.d.ts +48 -0
  75. package/schemas/field/password/index.js +15 -0
  76. package/schemas/field/pdf-image/index.d.ts +66 -0
  77. package/schemas/field/pdf-image/index.js +27 -0
  78. package/schemas/field/phone/index.d.ts +48 -0
  79. package/schemas/field/phone/index.js +14 -0
  80. package/schemas/field/postal_code/index.d.ts +50 -0
  81. package/schemas/field/postal_code/index.js +17 -0
  82. package/schemas/field/preference-multiple-choice/index.d.ts +90 -0
  83. package/schemas/field/preference-multiple-choice/index.js +31 -0
  84. package/schemas/field/qrcode/index.d.ts +71 -0
  85. package/schemas/field/qrcode/index.js +30 -0
  86. package/schemas/field/quote/index.d.ts +63 -0
  87. package/schemas/field/quote/index.js +30 -0
  88. package/schemas/field/radio-choice/index.d.ts +67 -0
  89. package/schemas/field/radio-choice/index.js +31 -0
  90. package/schemas/field/rate/index.d.ts +60 -0
  91. package/schemas/field/rate/index.js +18 -0
  92. package/schemas/field/recipient/index.d.ts +51 -0
  93. package/schemas/field/recipient/index.js +20 -0
  94. package/schemas/field/redirect/index.d.ts +52 -0
  95. package/schemas/field/redirect/index.js +15 -0
  96. package/schemas/field/refcode/index.d.ts +68 -0
  97. package/schemas/field/refcode/index.js +29 -0
  98. package/schemas/field/string/index.d.ts +135 -0
  99. package/schemas/field/string/index.js +80 -0
  100. package/schemas/field/text/index.d.ts +85 -0
  101. package/schemas/field/text/index.js +45 -0
  102. package/schemas/field/three-block-date/index.d.ts +64 -0
  103. package/schemas/field/three-block-date/index.js +26 -0
  104. package/schemas/field/url-param/index.d.ts +57 -0
  105. package/schemas/field/url-param/index.js +14 -0
  106. package/schemas/fieldset/component-params.d.ts +102 -0
  107. package/schemas/fieldset/component-params.js +63 -0
  108. package/schemas/fieldset/display-components.d.ts +353 -0
  109. package/schemas/fieldset/display-components.js +36 -0
  110. package/schemas/fieldset/enums.d.ts +32 -0
  111. package/schemas/fieldset/enums.js +21 -0
  112. package/schemas/fieldset/index.d.ts +180 -0
  113. package/schemas/fieldset/index.js +11 -0
  114. package/schemas/index.d.ts +15 -0
  115. package/schemas/index.js +15 -0
  116. package/schemas/layout.d.ts +91 -0
  117. package/schemas/layout.js +43 -0
  118. package/schemas/outputs.d.ts +44 -0
  119. package/schemas/outputs.js +15 -0
  120. package/schemas/resolve.d.ts +5 -0
  121. package/schemas/resolve.js +13 -0
  122. package/schemas/resource/enums.d.ts +58 -0
  123. package/schemas/resource/enums.js +41 -0
  124. package/schemas/resource/field.d.ts +15 -0
  125. package/schemas/resource/field.js +12 -0
  126. package/schemas/resource/index.d.ts +5 -0
  127. package/schemas/resource/index.js +5 -0
  128. package/schemas/resource/object-action.d.ts +30 -0
  129. package/schemas/resource/object-action.js +24 -0
  130. package/schemas/resource/resource-action.d.ts +35 -0
  131. package/schemas/resource/resource-action.js +29 -0
  132. package/schemas/resource/resource.d.ts +133 -0
  133. package/schemas/resource/resource.js +31 -0
  134. package/schemas/step.d.ts +592 -0
  135. package/schemas/step.js +115 -0
  136. package/schemas/template/index.d.ts +2 -0
  137. package/schemas/template/index.js +2 -0
  138. package/schemas/template/template-base.d.ts +53 -0
  139. package/schemas/template/template-base.js +15 -0
  140. package/schemas/template/template-source.d.ts +50 -0
  141. package/schemas/template/template-source.js +14 -0
  142. package/schemas/template/template.d.ts +54 -0
  143. package/schemas/template/template.js +22 -0
  144. package/schemas/validation-context/enums.d.ts +10 -0
  145. package/schemas/validation-context/enums.js +7 -0
  146. package/schemas/validation-context/index.d.ts +2 -0
  147. package/schemas/validation-context/index.js +2 -0
  148. package/schemas/validation-context/validation-context.d.ts +131 -0
  149. package/schemas/validation-context/validation-context.js +55 -0
  150. package/src/schemas/action.ts +15 -0
  151. package/src/schemas/common.ts +16 -0
  152. package/src/schemas/field/afm/index.ts +2 -18
  153. package/src/schemas/field/amka/index.ts +7 -2
  154. package/src/schemas/field/attachment/index.ts +12 -24
  155. package/src/schemas/field/choice/index.ts +2 -13
  156. package/src/schemas/field/common.ts +75 -51
  157. package/src/schemas/field/consent-content/index.ts +28 -0
  158. package/src/schemas/field/date/index.ts +5 -32
  159. package/src/schemas/field/doc_subtitle/index.ts +1 -0
  160. package/src/schemas/field/doc_title/index.ts +9 -16
  161. package/src/schemas/field/dynamically-filled-text/index.ts +4 -5
  162. package/src/schemas/field/email/index.ts +6 -9
  163. package/src/schemas/field/fillable-string/index.ts +1 -1
  164. package/src/schemas/field/hidden/index.ts +4 -43
  165. package/src/schemas/field/hierarchical-selector/index.ts +3 -9
  166. package/src/schemas/field/image/index.ts +5 -24
  167. package/src/schemas/field/image-crop/index.ts +25 -0
  168. package/src/schemas/field/index.spec.ts +0 -42
  169. package/src/schemas/field/index.ts +64 -12
  170. package/src/schemas/field/int/index.ts +2 -0
  171. package/src/schemas/field/intl_mobile_phone/index.ts +19 -0
  172. package/src/schemas/field/lab-results/index.ts +1 -2
  173. package/src/schemas/field/link/index.ts +20 -0
  174. package/src/schemas/field/mobile_phone/index.ts +1 -12
  175. package/src/schemas/field/multiple-choice/index.ts +4 -3
  176. package/src/schemas/field/password/index.ts +18 -0
  177. package/src/schemas/field/pdf-image/index.ts +3 -15
  178. package/src/schemas/field/phone/index.ts +18 -0
  179. package/src/schemas/field/postal_code/index.ts +1 -1
  180. package/src/schemas/field/preference-multiple-choice/index.ts +41 -0
  181. package/src/schemas/field/qrcode/index.ts +1 -0
  182. package/src/schemas/field/quote/index.ts +2 -19
  183. package/src/schemas/field/radio-choice/index.ts +1 -7
  184. package/src/schemas/field/rate/index.ts +1 -9
  185. package/src/schemas/field/recipient/index.ts +2 -2
  186. package/src/schemas/field/redirect/index.ts +4 -13
  187. package/src/schemas/field/refcode/index.ts +10 -15
  188. package/src/schemas/field/string/index.ts +13 -0
  189. package/src/schemas/field/text/index.ts +4 -18
  190. package/src/schemas/field/url-param/index.ts +23 -0
  191. package/src/schemas/resolve.ts +3 -0
  192. package/src/schemas/step.ts +2 -0
  193. package/src/schemas/template/index.ts +0 -1
  194. package/src/schemas/template/template-base.ts +0 -10
  195. package/src/schemas/template/template.ts +1 -2
  196. package/src/schemas/validation-context/enums.ts +0 -16
  197. package/src/schemas/validation-context/validation-context.ts +2 -4
  198. package/src/utils/index.ts +10 -1
  199. package/utils/index.d.ts +6 -0
  200. package/utils/index.js +55 -0
  201. package/.prettierrc.js +0 -1
  202. package/.rush/temp/chunked-rush-logs/stepwise.build.chunks.jsonl +0 -6
  203. package/.rush/temp/package-deps_build.json +0 -185
  204. package/.rush/temp/shrinkwrap-deps.json +0 -303
  205. package/eslint.config.mjs +0 -3
  206. package/rush-logs/stepwise.build.log +0 -6
  207. package/src/schemas/field/green-pass-qrcode/index.ts +0 -27
  208. package/src/schemas/template/enums.ts +0 -22
  209. package/tsconfig.json +0 -25
@@ -0,0 +1,70 @@
1
+ import * as v from 'valibot';
2
+ declare const MultipleChoiceSchema: 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<"multiple-choice", undefined>;
17
+ readonly choices: v.NullishSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
18
+ readonly 'choices-order': v.NullishSchema<v.StringSchema<undefined>, undefined>;
19
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
20
+ readonly 'legacy-mode': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
21
+ readonly showcase: v.NullishSchema<v.PicklistSchema<["comma_separated", "one_per_line"], undefined>, undefined>;
22
+ }, undefined>, undefined>;
23
+ }, undefined>, v.ObjectSchema<{
24
+ readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
25
+ readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
26
+ readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
27
+ readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
28
+ readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
29
+ readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
30
+ readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
31
+ readonly layout: v.NullishSchema<v.StrictObjectSchema<{
32
+ readonly md: v.StringSchema<undefined>;
33
+ }, undefined>, undefined>;
34
+ } & {
35
+ readonly component: v.LiteralSchema<"multiple-choice", undefined>;
36
+ readonly choices: v.NullishSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
37
+ readonly 'choices-order': v.NullishSchema<v.StringSchema<undefined>, undefined>;
38
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
39
+ readonly 'legacy-mode': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
40
+ readonly showcase: v.NullishSchema<v.PicklistSchema<["comma_separated", "one_per_line"], undefined>, undefined>;
41
+ }, undefined>, undefined>;
42
+ }, undefined>, v.ObjectSchema<{
43
+ readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
44
+ readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
45
+ readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
46
+ readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
47
+ readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
48
+ readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
49
+ readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
50
+ readonly layout: v.NullishSchema<v.StrictObjectSchema<{
51
+ readonly md: v.StringSchema<undefined>;
52
+ }, undefined>, undefined>;
53
+ } & {
54
+ readonly component: v.LiteralSchema<"multiple-choice", undefined>;
55
+ readonly choices: v.NullishSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
56
+ readonly 'choices-order': v.NullishSchema<v.StringSchema<undefined>, undefined>;
57
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
58
+ readonly 'legacy-mode': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
59
+ readonly showcase: v.NullishSchema<v.PicklistSchema<["comma_separated", "one_per_line"], undefined>, undefined>;
60
+ }, undefined>, undefined>;
61
+ }, undefined>>>]>;
62
+ readonly 'default-value': v.NullishSchema<v.StringSchema<undefined>, undefined>;
63
+ readonly attribute: v.NullishSchema<v.StringSchema<undefined>, undefined>;
64
+ readonly datatype: v.NullishSchema<v.PicklistSchema<["multiple-choice", "string"], undefined>, undefined>;
65
+ readonly 'choices-source-fn': v.NullishSchema<v.StringSchema<undefined>, undefined>;
66
+ }, undefined>;
67
+ export type MultipleChoiceType = v.InferOutput<typeof MultipleChoiceSchema>;
68
+ export type MultipleChoiceSchemaType = v.GenericSchema<MultipleChoiceType>;
69
+ declare const _default: MultipleChoiceSchemaType;
70
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import { boolean as external_valibot_boolean, literal, nullish, picklist, record, strictObject, string } from "valibot";
2
+ import { createFieldDisplay } from "../common.js";
3
+ const MultipleChoiceDisplaySchema = createFieldDisplay(strictObject({
4
+ component: literal('multiple-choice'),
5
+ choices: nullish(record(string(), string())),
6
+ 'choices-order': nullish(string()),
7
+ 'component-params': nullish(strictObject({
8
+ 'legacy-mode': nullish(external_valibot_boolean()),
9
+ showcase: nullish(picklist([
10
+ 'comma_separated',
11
+ 'one_per_line'
12
+ ]))
13
+ }))
14
+ }));
15
+ const MultipleChoiceSchema = strictObject({
16
+ 'user-input-mode': picklist([
17
+ 'noinput',
18
+ 'optional',
19
+ 'required'
20
+ ]),
21
+ display: MultipleChoiceDisplaySchema,
22
+ 'default-value': nullish(string()),
23
+ attribute: nullish(string()),
24
+ datatype: nullish(picklist([
25
+ 'multiple-choice',
26
+ 'string'
27
+ ])),
28
+ 'choices-source-fn': nullish(string())
29
+ });
30
+ const multiple_choice = MultipleChoiceSchema;
31
+ export { multiple_choice as default };
@@ -0,0 +1,48 @@
1
+ import * as v from 'valibot';
2
+ declare const PasswordSchema: v.StrictObjectSchema<{
3
+ readonly 'user-input-mode': v.PicklistSchema<["noinput", "required", "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<"password", 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<"password", 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<"password", undefined>;
43
+ }, undefined>>>]>;
44
+ }, undefined>;
45
+ export type PasswordType = v.InferOutput<typeof PasswordSchema>;
46
+ export type PasswordSchemaType = v.GenericSchema<PasswordType>;
47
+ declare const _default: PasswordSchemaType;
48
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { literal, picklist, strictObject } from "valibot";
2
+ import { createFieldDisplay } from "../common.js";
3
+ const PasswordDisplaySchema = createFieldDisplay(strictObject({
4
+ component: literal('password')
5
+ }));
6
+ const PasswordSchema = strictObject({
7
+ 'user-input-mode': picklist([
8
+ 'noinput',
9
+ 'required',
10
+ 'optional'
11
+ ]),
12
+ display: PasswordDisplaySchema
13
+ });
14
+ const field_password = PasswordSchema;
15
+ export { field_password as default };
@@ -0,0 +1,66 @@
1
+ import * as v from 'valibot';
2
+ declare const PdfImageSchema: v.StrictObjectSchema<{
3
+ readonly display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
4
+ readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
5
+ readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
6
+ readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
7
+ readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
8
+ readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
9
+ readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
10
+ readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
11
+ readonly layout: v.NullishSchema<v.StrictObjectSchema<{
12
+ readonly md: v.StringSchema<undefined>;
13
+ }, undefined>, undefined>;
14
+ } & {
15
+ readonly component: v.LiteralSchema<"pdf-image", undefined>;
16
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
17
+ readonly coordinates: v.ArraySchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
18
+ readonly position: v.NullishSchema<v.PicklistSchema<["left", "right", "center", "justify"], undefined>, undefined>;
19
+ readonly 'later-pages': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
20
+ }, undefined>, undefined>;
21
+ }, undefined>, v.ObjectSchema<{
22
+ readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
23
+ readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
24
+ readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
25
+ readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
26
+ readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
27
+ readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
28
+ readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
29
+ readonly layout: v.NullishSchema<v.StrictObjectSchema<{
30
+ readonly md: v.StringSchema<undefined>;
31
+ }, undefined>, undefined>;
32
+ } & {
33
+ readonly component: v.LiteralSchema<"pdf-image", undefined>;
34
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
35
+ readonly coordinates: v.ArraySchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
36
+ readonly position: v.NullishSchema<v.PicklistSchema<["left", "right", "center", "justify"], undefined>, undefined>;
37
+ readonly 'later-pages': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
38
+ }, undefined>, undefined>;
39
+ }, undefined>, v.ObjectSchema<{
40
+ readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
41
+ readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
42
+ readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
43
+ readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
44
+ readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
45
+ readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
46
+ readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
47
+ readonly layout: v.NullishSchema<v.StrictObjectSchema<{
48
+ readonly md: v.StringSchema<undefined>;
49
+ }, undefined>, undefined>;
50
+ } & {
51
+ readonly component: v.LiteralSchema<"pdf-image", undefined>;
52
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
53
+ readonly coordinates: v.ArraySchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
54
+ readonly position: v.NullishSchema<v.PicklistSchema<["left", "right", "center", "justify"], undefined>, undefined>;
55
+ readonly 'later-pages': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
56
+ }, undefined>, undefined>;
57
+ }, undefined>>>]>;
58
+ readonly value: v.NullishSchema<v.StringSchema<undefined>, undefined>;
59
+ readonly 'user-input-mode': v.PicklistSchema<["noinput", "display"], undefined>;
60
+ readonly datatype: v.NullishSchema<v.LiteralSchema<"string", undefined>, undefined>;
61
+ readonly attribute: v.NullishSchema<v.StringSchema<undefined>, undefined>;
62
+ }, undefined>;
63
+ export type PdfImageType = v.InferOutput<typeof PdfImageSchema>;
64
+ export type PdfImageSchemaType = v.GenericSchema<PdfImageType>;
65
+ declare const _default: PdfImageSchemaType;
66
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import { array, boolean as external_valibot_boolean, literal, nullable, nullish, number, picklist, strictObject, string } from "valibot";
2
+ import { createFieldDisplay } from "../common.js";
3
+ const PdfImageDisplaySchema = createFieldDisplay(strictObject({
4
+ component: literal('pdf-image'),
5
+ 'component-params': nullish(strictObject({
6
+ coordinates: array(nullable(number())),
7
+ position: nullish(picklist([
8
+ 'left',
9
+ 'right',
10
+ 'center',
11
+ 'justify'
12
+ ])),
13
+ 'later-pages': nullish(external_valibot_boolean())
14
+ }))
15
+ }));
16
+ const PdfImageSchema = strictObject({
17
+ display: PdfImageDisplaySchema,
18
+ value: nullish(string()),
19
+ 'user-input-mode': picklist([
20
+ 'noinput',
21
+ 'display'
22
+ ]),
23
+ datatype: nullish(literal('string')),
24
+ attribute: nullish(string())
25
+ });
26
+ const pdf_image = PdfImageSchema;
27
+ export { pdf_image as default };
@@ -0,0 +1,48 @@
1
+ import * as v from 'valibot';
2
+ declare const PhoneSchema: 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<"phone", 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<"phone", 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<"phone", undefined>;
43
+ }, undefined>>>]>;
44
+ }, undefined>;
45
+ export type PhoneType = v.InferOutput<typeof PhoneSchema>;
46
+ export type PhoneSchemaType = v.GenericSchema<PhoneType>;
47
+ declare const _default: PhoneSchemaType;
48
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { literal, picklist, strictObject } from "valibot";
2
+ import { createFieldDisplay } from "../common.js";
3
+ const PhoneDisplaySchema = createFieldDisplay(strictObject({
4
+ component: literal('phone')
5
+ }));
6
+ const PhoneSchema = strictObject({
7
+ 'user-input-mode': picklist([
8
+ 'noinput',
9
+ 'required'
10
+ ]),
11
+ display: PhoneDisplaySchema
12
+ });
13
+ const phone = PhoneSchema;
14
+ export { phone as default };
@@ -0,0 +1,50 @@
1
+ import * as v from 'valibot';
2
+ declare const PostalCodeSchema: 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<"postal_code", 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<"postal_code", 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<"postal_code", undefined>;
43
+ }, undefined>>>]>;
44
+ readonly datatype: v.NullishSchema<v.LiteralSchema<"postal_code", undefined>, undefined>;
45
+ readonly attribute: v.NullishSchema<v.StringSchema<undefined>, undefined>;
46
+ }, undefined>;
47
+ export type PostalCodeType = v.InferOutput<typeof PostalCodeSchema>;
48
+ export type PostalCodeSchemaType = v.GenericSchema<PostalCodeType>;
49
+ declare const _default: PostalCodeSchemaType;
50
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { literal, nullish, picklist, strictObject, string } from "valibot";
2
+ import { createFieldDisplay } from "../common.js";
3
+ const PostalCodeDisplaySchema = createFieldDisplay(strictObject({
4
+ component: literal('postal_code')
5
+ }));
6
+ const PostalCodeSchema = strictObject({
7
+ 'user-input-mode': picklist([
8
+ 'noinput',
9
+ 'optional',
10
+ 'required'
11
+ ]),
12
+ display: PostalCodeDisplaySchema,
13
+ datatype: nullish(literal('postal_code')),
14
+ attribute: nullish(string())
15
+ });
16
+ const postal_code = PostalCodeSchema;
17
+ export { postal_code as default };
@@ -0,0 +1,90 @@
1
+ import * as v from 'valibot';
2
+ declare const PreferenceMultipleChoiceSchema: 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<"preference-multiple-choice", undefined>;
17
+ readonly choices: v.NullishSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
18
+ readonly 'choices-order': v.NullishSchema<v.StringSchema<undefined>, undefined>;
19
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
20
+ readonly min: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
21
+ readonly max: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
22
+ readonly labels: v.NullishSchema<v.StrictObjectSchema<{
23
+ readonly empty: v.NullishSchema<v.StringSchema<undefined>, undefined>;
24
+ readonly addItem: v.NullishSchema<v.StringSchema<undefined>, undefined>;
25
+ readonly addTitle: v.NullishSchema<v.StringSchema<undefined>, undefined>;
26
+ readonly submitAdd: v.NullishSchema<v.StringSchema<undefined>, undefined>;
27
+ readonly itemTitle: v.NullishSchema<v.StringSchema<undefined>, undefined>;
28
+ }, undefined>, undefined>;
29
+ }, undefined>, 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<"preference-multiple-choice", undefined>;
43
+ readonly choices: v.NullishSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
44
+ readonly 'choices-order': v.NullishSchema<v.StringSchema<undefined>, undefined>;
45
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
46
+ readonly min: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
47
+ readonly max: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
48
+ readonly labels: v.NullishSchema<v.StrictObjectSchema<{
49
+ readonly empty: v.NullishSchema<v.StringSchema<undefined>, undefined>;
50
+ readonly addItem: v.NullishSchema<v.StringSchema<undefined>, undefined>;
51
+ readonly addTitle: v.NullishSchema<v.StringSchema<undefined>, undefined>;
52
+ readonly submitAdd: v.NullishSchema<v.StringSchema<undefined>, undefined>;
53
+ readonly itemTitle: v.NullishSchema<v.StringSchema<undefined>, undefined>;
54
+ }, undefined>, undefined>;
55
+ }, undefined>, undefined>;
56
+ }, undefined>, v.ObjectSchema<{
57
+ readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
58
+ readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
59
+ readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
60
+ readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
61
+ readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
62
+ readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
63
+ readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
64
+ readonly layout: v.NullishSchema<v.StrictObjectSchema<{
65
+ readonly md: v.StringSchema<undefined>;
66
+ }, undefined>, undefined>;
67
+ } & {
68
+ readonly component: v.LiteralSchema<"preference-multiple-choice", undefined>;
69
+ readonly choices: v.NullishSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
70
+ readonly 'choices-order': v.NullishSchema<v.StringSchema<undefined>, undefined>;
71
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
72
+ readonly min: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
73
+ readonly max: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
74
+ readonly labels: v.NullishSchema<v.StrictObjectSchema<{
75
+ readonly empty: v.NullishSchema<v.StringSchema<undefined>, undefined>;
76
+ readonly addItem: v.NullishSchema<v.StringSchema<undefined>, undefined>;
77
+ readonly addTitle: v.NullishSchema<v.StringSchema<undefined>, undefined>;
78
+ readonly submitAdd: v.NullishSchema<v.StringSchema<undefined>, undefined>;
79
+ readonly itemTitle: v.NullishSchema<v.StringSchema<undefined>, undefined>;
80
+ }, undefined>, undefined>;
81
+ }, undefined>, undefined>;
82
+ }, undefined>>>]>;
83
+ readonly attribute: v.NullishSchema<v.StringSchema<undefined>, undefined>;
84
+ readonly datatype: v.NullishSchema<v.LiteralSchema<"preference-multiple-choice", undefined>, undefined>;
85
+ readonly 'choices-source-fn': v.NullishSchema<v.StringSchema<undefined>, undefined>;
86
+ }, undefined>;
87
+ export type PreferenceMultipleChoiceType = v.InferOutput<typeof PreferenceMultipleChoiceSchema>;
88
+ export type PreferenceMultipleChoiceSchemaType = v.GenericSchema<PreferenceMultipleChoiceType>;
89
+ declare const _default: PreferenceMultipleChoiceSchemaType;
90
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import { literal, nullish, number, picklist, record, strictObject, string } from "valibot";
2
+ import { createFieldDisplay } from "../common.js";
3
+ const PreferenceMultipleChoiceDisplaySchema = createFieldDisplay(strictObject({
4
+ component: literal('preference-multiple-choice'),
5
+ choices: nullish(record(string(), string())),
6
+ 'choices-order': nullish(string()),
7
+ 'component-params': nullish(strictObject({
8
+ min: nullish(number()),
9
+ max: nullish(number()),
10
+ labels: nullish(strictObject({
11
+ empty: nullish(string()),
12
+ addItem: nullish(string()),
13
+ addTitle: nullish(string()),
14
+ submitAdd: nullish(string()),
15
+ itemTitle: nullish(string())
16
+ }))
17
+ }))
18
+ }));
19
+ const PreferenceMultipleChoiceSchema = strictObject({
20
+ 'user-input-mode': picklist([
21
+ 'noinput',
22
+ 'optional',
23
+ 'required'
24
+ ]),
25
+ display: PreferenceMultipleChoiceDisplaySchema,
26
+ attribute: nullish(string()),
27
+ datatype: nullish(literal('preference-multiple-choice')),
28
+ 'choices-source-fn': nullish(string())
29
+ });
30
+ const preference_multiple_choice = PreferenceMultipleChoiceSchema;
31
+ export { preference_multiple_choice as default };
@@ -0,0 +1,71 @@
1
+ import * as v from 'valibot';
2
+ declare const QrcodeSchema: v.StrictObjectSchema<{
3
+ readonly 'user-input-mode': v.PicklistSchema<["noinput", "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<"qrcode", undefined>;
17
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
18
+ readonly coordinates: v.NullishSchema<v.ArraySchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>, undefined>;
19
+ readonly position: v.NullishSchema<v.PicklistSchema<["left", "right", "center", "justify"], undefined>, undefined>;
20
+ readonly size: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
21
+ readonly 'later-pages': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
22
+ }, undefined>, undefined>;
23
+ }, undefined>, v.ObjectSchema<{
24
+ readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
25
+ readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
26
+ readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
27
+ readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
28
+ readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
29
+ readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
30
+ readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
31
+ readonly layout: v.NullishSchema<v.StrictObjectSchema<{
32
+ readonly md: v.StringSchema<undefined>;
33
+ }, undefined>, undefined>;
34
+ } & {
35
+ readonly component: v.LiteralSchema<"qrcode", undefined>;
36
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
37
+ readonly coordinates: v.NullishSchema<v.ArraySchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>, undefined>;
38
+ readonly position: v.NullishSchema<v.PicklistSchema<["left", "right", "center", "justify"], undefined>, undefined>;
39
+ readonly size: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
40
+ readonly 'later-pages': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
41
+ }, undefined>, undefined>;
42
+ }, undefined>, v.ObjectSchema<{
43
+ readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
44
+ readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
45
+ readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
46
+ readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
47
+ readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
48
+ readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
49
+ readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
50
+ readonly layout: v.NullishSchema<v.StrictObjectSchema<{
51
+ readonly md: v.StringSchema<undefined>;
52
+ }, undefined>, undefined>;
53
+ } & {
54
+ readonly component: v.LiteralSchema<"qrcode", undefined>;
55
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
56
+ readonly coordinates: v.NullishSchema<v.ArraySchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>, undefined>;
57
+ readonly position: v.NullishSchema<v.PicklistSchema<["left", "right", "center", "justify"], undefined>, undefined>;
58
+ readonly size: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
59
+ readonly 'later-pages': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
60
+ }, undefined>, undefined>;
61
+ }, undefined>>>]>;
62
+ readonly attribute: v.NullishSchema<v.StringSchema<undefined>, undefined>;
63
+ readonly sources: v.NullishSchema<v.StringSchema<undefined>, undefined>;
64
+ readonly value: v.NullishSchema<v.StringSchema<undefined>, undefined>;
65
+ readonly 'value-constructor': v.NullishSchema<v.StringSchema<undefined>, undefined>;
66
+ readonly 'is-display-field': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
67
+ }, undefined>;
68
+ export type QrcodeType = v.InferOutput<typeof QrcodeSchema>;
69
+ export type QrcodeSchemaType = v.GenericSchema<QrcodeType>;
70
+ declare const _default: QrcodeSchemaType;
71
+ export default _default;
@@ -0,0 +1,30 @@
1
+ import { array, boolean as external_valibot_boolean, literal, nullable, nullish, number, picklist, strictObject, string } from "valibot";
2
+ import { createFieldDisplay } from "../common.js";
3
+ const QrcodeDisplaySchema = createFieldDisplay(strictObject({
4
+ component: literal('qrcode'),
5
+ 'component-params': nullish(strictObject({
6
+ coordinates: nullish(array(nullable(number()))),
7
+ position: nullish(picklist([
8
+ 'left',
9
+ 'right',
10
+ 'center',
11
+ 'justify'
12
+ ])),
13
+ size: nullish(number()),
14
+ 'later-pages': nullish(external_valibot_boolean())
15
+ }))
16
+ }));
17
+ const QrcodeSchema = strictObject({
18
+ 'user-input-mode': picklist([
19
+ 'noinput',
20
+ 'display'
21
+ ]),
22
+ display: QrcodeDisplaySchema,
23
+ attribute: nullish(string()),
24
+ sources: nullish(string()),
25
+ value: nullish(string()),
26
+ 'value-constructor': nullish(string()),
27
+ 'is-display-field': nullish(external_valibot_boolean())
28
+ });
29
+ const qrcode = QrcodeSchema;
30
+ export { qrcode as default };