@uides/stepwise 2.0.0-a402a664 → 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,68 @@
1
+ import * as v from 'valibot';
2
+ declare const ConsentContentSchema: v.StrictObjectSchema<{
3
+ readonly 'user-input-mode': v.LiteralSchema<"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<"consent-content", undefined>;
17
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
18
+ readonly 'display-values': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
19
+ readonly 'data-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
20
+ readonly 'recipient-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
21
+ readonly 'transaction-label': v.NullishSchema<v.StringSchema<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<"consent-content", undefined>;
36
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
37
+ readonly 'display-values': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
38
+ readonly 'data-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
39
+ readonly 'recipient-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
40
+ readonly 'transaction-label': v.NullishSchema<v.StringSchema<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<"consent-content", undefined>;
55
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
56
+ readonly 'display-values': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
57
+ readonly 'data-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
58
+ readonly 'recipient-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
59
+ readonly 'transaction-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
60
+ }, undefined>, undefined>;
61
+ }, undefined>>>]>;
62
+ readonly sources: v.NullishSchema<v.StringSchema<undefined>, undefined>;
63
+ readonly 'value-constructor': v.NullishSchema<v.StringSchema<undefined>, undefined>;
64
+ }, undefined>;
65
+ export type ConsentContentType = v.InferOutput<typeof ConsentContentSchema>;
66
+ export type ConsentContentSchemaType = v.GenericSchema<ConsentContentType>;
67
+ declare const _default: ConsentContentSchemaType;
68
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { boolean as external_valibot_boolean, literal, nullish, strictObject, string } from "valibot";
2
+ import { createFieldDisplay } from "../common.js";
3
+ const ConsentContentDisplaySchema = createFieldDisplay(strictObject({
4
+ component: literal('consent-content'),
5
+ 'component-params': nullish(strictObject({
6
+ 'display-values': nullish(external_valibot_boolean()),
7
+ 'data-label': nullish(string()),
8
+ 'recipient-label': nullish(string()),
9
+ 'transaction-label': nullish(string())
10
+ }))
11
+ }));
12
+ const ConsentContentSchema = strictObject({
13
+ 'user-input-mode': literal('display'),
14
+ display: ConsentContentDisplaySchema,
15
+ sources: nullish(string()),
16
+ 'value-constructor': nullish(string())
17
+ });
18
+ const consent_content = ConsentContentSchema;
19
+ export { consent_content as default };
@@ -0,0 +1,90 @@
1
+ import * as v from 'valibot';
2
+ declare const DateSchema: 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<"date", undefined>;
17
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
18
+ readonly 'format-title': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
19
+ readonly cell_valign: v.NullishSchema<v.PicklistSchema<["BOTTOM", "MIDDLE", "TOP"], undefined>, undefined>;
20
+ readonly bold: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
21
+ readonly position: v.NullishSchema<v.PicklistSchema<["left", "right", "center", "justify"], undefined>, undefined>;
22
+ readonly textColor: v.NullishSchema<v.StringSchema<undefined>, undefined>;
23
+ readonly labels: v.NullishSchema<v.StrictObjectSchema<{
24
+ readonly day: v.StringSchema<undefined>;
25
+ readonly month: v.StringSchema<undefined>;
26
+ readonly year: v.StringSchema<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<"date", undefined>;
42
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
43
+ readonly 'format-title': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
44
+ readonly cell_valign: v.NullishSchema<v.PicklistSchema<["BOTTOM", "MIDDLE", "TOP"], undefined>, undefined>;
45
+ readonly bold: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
46
+ readonly position: v.NullishSchema<v.PicklistSchema<["left", "right", "center", "justify"], undefined>, undefined>;
47
+ readonly textColor: v.NullishSchema<v.StringSchema<undefined>, undefined>;
48
+ readonly labels: v.NullishSchema<v.StrictObjectSchema<{
49
+ readonly day: v.StringSchema<undefined>;
50
+ readonly month: v.StringSchema<undefined>;
51
+ readonly year: v.StringSchema<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<"date", undefined>;
67
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
68
+ readonly 'format-title': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
69
+ readonly cell_valign: v.NullishSchema<v.PicklistSchema<["BOTTOM", "MIDDLE", "TOP"], undefined>, undefined>;
70
+ readonly bold: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
71
+ readonly position: v.NullishSchema<v.PicklistSchema<["left", "right", "center", "justify"], undefined>, undefined>;
72
+ readonly textColor: v.NullishSchema<v.StringSchema<undefined>, undefined>;
73
+ readonly labels: v.NullishSchema<v.StrictObjectSchema<{
74
+ readonly day: v.StringSchema<undefined>;
75
+ readonly month: v.StringSchema<undefined>;
76
+ readonly year: v.StringSchema<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 datatype: v.NullishSchema<v.LiteralSchema<"date", undefined>, undefined>;
83
+ readonly 'value-constructor': v.NullishSchema<v.StringSchema<undefined>, undefined>;
84
+ readonly value: v.NullishSchema<v.StringSchema<undefined>, undefined>;
85
+ readonly 'is-display-field': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
86
+ }, undefined>;
87
+ export type DateType = v.InferOutput<typeof DateSchema>;
88
+ export type DateSchemaType = v.GenericSchema<DateType>;
89
+ declare const _default: DateSchemaType;
90
+ export default _default;
@@ -0,0 +1,42 @@
1
+ import { boolean as external_valibot_boolean, literal, nullish, picklist, strictObject, string } from "valibot";
2
+ import { createFieldDisplay } from "../common.js";
3
+ const DateDisplaySchema = createFieldDisplay(strictObject({
4
+ component: literal('date'),
5
+ 'component-params': nullish(strictObject({
6
+ 'format-title': nullish(external_valibot_boolean()),
7
+ cell_valign: nullish(picklist([
8
+ 'BOTTOM',
9
+ 'MIDDLE',
10
+ 'TOP'
11
+ ])),
12
+ bold: nullish(external_valibot_boolean()),
13
+ position: nullish(picklist([
14
+ 'left',
15
+ 'right',
16
+ 'center',
17
+ 'justify'
18
+ ])),
19
+ textColor: nullish(string()),
20
+ labels: nullish(strictObject({
21
+ day: string(),
22
+ month: string(),
23
+ year: string()
24
+ }))
25
+ }))
26
+ }));
27
+ const DateSchema = strictObject({
28
+ 'user-input-mode': picklist([
29
+ 'noinput',
30
+ 'required',
31
+ 'optional'
32
+ ]),
33
+ display: DateDisplaySchema,
34
+ attribute: nullish(string()),
35
+ sources: nullish(string()),
36
+ datatype: nullish(literal('date')),
37
+ 'value-constructor': nullish(string()),
38
+ value: nullish(string()),
39
+ 'is-display-field': nullish(external_valibot_boolean())
40
+ });
41
+ const date = DateSchema;
42
+ export { date as default };
@@ -0,0 +1,51 @@
1
+ import * as v from 'valibot';
2
+ declare const DocSubtitleSchema: 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<"doc_subtitle", undefined>;
16
+ }, undefined>, v.ObjectSchema<{
17
+ readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
18
+ readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
19
+ readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
20
+ readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
21
+ readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
22
+ readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
23
+ readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
24
+ readonly layout: v.NullishSchema<v.StrictObjectSchema<{
25
+ readonly md: v.StringSchema<undefined>;
26
+ }, undefined>, undefined>;
27
+ } & {
28
+ readonly component: v.LiteralSchema<"doc_subtitle", 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<"doc_subtitle", undefined>;
42
+ }, undefined>>>]>;
43
+ readonly 'user-input-mode': v.LiteralSchema<"noinput", undefined>;
44
+ readonly value: v.NullishSchema<v.StringSchema<undefined>, undefined>;
45
+ readonly datatype: v.NullishSchema<v.LiteralSchema<"string", undefined>, undefined>;
46
+ readonly attribute: v.NullishSchema<v.StringSchema<undefined>, undefined>;
47
+ }, undefined>;
48
+ export type DocSubtitleType = v.InferOutput<typeof DocSubtitleSchema>;
49
+ export type DocSubtitleSchemaType = v.GenericSchema<DocSubtitleType>;
50
+ declare const _default: DocSubtitleSchemaType;
51
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { literal, nullish, strictObject, string } from "valibot";
2
+ import { createFieldDisplay } from "../common.js";
3
+ const DocSubtitleDisplaySchema = createFieldDisplay(strictObject({
4
+ component: literal('doc_subtitle')
5
+ }));
6
+ const DocSubtitleSchema = strictObject({
7
+ display: DocSubtitleDisplaySchema,
8
+ 'user-input-mode': literal('noinput'),
9
+ value: nullish(string()),
10
+ datatype: nullish(literal('string')),
11
+ attribute: nullish(string())
12
+ });
13
+ const doc_subtitle = DocSubtitleSchema;
14
+ export { doc_subtitle as default };
@@ -0,0 +1,60 @@
1
+ import * as v from 'valibot';
2
+ declare const DocTitleSchema: 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<"doc_title", undefined>;
16
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
17
+ readonly leading: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
18
+ }, undefined>, undefined>;
19
+ }, undefined>, v.ObjectSchema<{
20
+ readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
21
+ readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
22
+ readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
23
+ readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
24
+ readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
25
+ readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
26
+ readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
27
+ readonly layout: v.NullishSchema<v.StrictObjectSchema<{
28
+ readonly md: v.StringSchema<undefined>;
29
+ }, undefined>, undefined>;
30
+ } & {
31
+ readonly component: v.LiteralSchema<"doc_title", undefined>;
32
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
33
+ readonly leading: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
34
+ }, undefined>, undefined>;
35
+ }, undefined>, v.ObjectSchema<{
36
+ readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
37
+ readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
38
+ readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
39
+ readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
40
+ readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
41
+ readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
42
+ readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
43
+ readonly layout: v.NullishSchema<v.StrictObjectSchema<{
44
+ readonly md: v.StringSchema<undefined>;
45
+ }, undefined>, undefined>;
46
+ } & {
47
+ readonly component: v.LiteralSchema<"doc_title", undefined>;
48
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
49
+ readonly leading: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
50
+ }, undefined>, undefined>;
51
+ }, undefined>>>]>;
52
+ readonly 'user-input-mode': v.LiteralSchema<"noinput", undefined>;
53
+ readonly value: v.NullishSchema<v.StringSchema<undefined>, undefined>;
54
+ readonly 'default-value': v.NullishSchema<v.StringSchema<undefined>, undefined>;
55
+ readonly attribute: v.NullishSchema<v.StringSchema<undefined>, undefined>;
56
+ }, undefined>;
57
+ export type DocTitleType = v.InferOutput<typeof DocTitleSchema>;
58
+ export type DocTitleSchemaType = v.GenericSchema<DocTitleType>;
59
+ declare const _default: DocTitleSchemaType;
60
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { literal, nullish, number, strictObject, string } from "valibot";
2
+ import { createFieldDisplay } from "../common.js";
3
+ const CommonDocTitleParamsSchema = nullish(strictObject({
4
+ leading: nullish(number())
5
+ }));
6
+ const DocTitleDisplaySchema = createFieldDisplay(strictObject({
7
+ component: literal('doc_title'),
8
+ 'component-params': CommonDocTitleParamsSchema
9
+ }), strictObject({
10
+ component: literal('doc_title'),
11
+ 'component-params': CommonDocTitleParamsSchema
12
+ }));
13
+ const DocTitleSchema = strictObject({
14
+ display: DocTitleDisplaySchema,
15
+ 'user-input-mode': literal('noinput'),
16
+ value: nullish(string()),
17
+ 'default-value': nullish(string()),
18
+ attribute: nullish(string())
19
+ });
20
+ const doc_title = DocTitleSchema;
21
+ export { doc_title as default };
@@ -0,0 +1,85 @@
1
+ import * as v from 'valibot';
2
+ declare const DynamicallyFilledTextSchema: v.StrictObjectSchema<{
3
+ readonly value: v.NullishSchema<v.StringSchema<undefined>, 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<"dynamically-filled-text", undefined>;
17
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
18
+ readonly fill: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
19
+ readonly position: v.NullishSchema<v.PicklistSchema<["center", "justify", "left", "right"], undefined>, undefined>;
20
+ readonly format: v.NullishSchema<v.LiteralSchema<"plaintext", undefined>, undefined>;
21
+ readonly textColor: v.NullishSchema<v.StringSchema<undefined>, undefined>;
22
+ readonly emph: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
23
+ readonly bold: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
24
+ readonly cell_valign: v.NullishSchema<v.StringSchema<undefined>, undefined>;
25
+ readonly leading: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
26
+ }, undefined>, undefined>;
27
+ }, undefined>, v.ObjectSchema<{
28
+ readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
29
+ readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
30
+ readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
31
+ readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
32
+ readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
33
+ readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
34
+ readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
35
+ readonly layout: v.NullishSchema<v.StrictObjectSchema<{
36
+ readonly md: v.StringSchema<undefined>;
37
+ }, undefined>, undefined>;
38
+ } & {
39
+ readonly component: v.LiteralSchema<"dynamically-filled-text", undefined>;
40
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
41
+ readonly fill: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
42
+ readonly position: v.NullishSchema<v.PicklistSchema<["center", "justify", "left", "right"], undefined>, undefined>;
43
+ readonly format: v.NullishSchema<v.LiteralSchema<"plaintext", undefined>, undefined>;
44
+ readonly textColor: v.NullishSchema<v.StringSchema<undefined>, undefined>;
45
+ readonly emph: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
46
+ readonly bold: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
47
+ readonly cell_valign: v.NullishSchema<v.StringSchema<undefined>, undefined>;
48
+ readonly leading: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
49
+ }, undefined>, undefined>;
50
+ }, undefined>, v.ObjectSchema<{
51
+ readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
52
+ readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
53
+ readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
54
+ readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
55
+ readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
56
+ readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
57
+ readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
58
+ readonly layout: v.NullishSchema<v.StrictObjectSchema<{
59
+ readonly md: v.StringSchema<undefined>;
60
+ }, undefined>, undefined>;
61
+ } & {
62
+ readonly component: v.LiteralSchema<"dynamically-filled-text", undefined>;
63
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
64
+ readonly fill: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
65
+ readonly position: v.NullishSchema<v.PicklistSchema<["center", "justify", "left", "right"], undefined>, undefined>;
66
+ readonly format: v.NullishSchema<v.LiteralSchema<"plaintext", undefined>, undefined>;
67
+ readonly textColor: v.NullishSchema<v.StringSchema<undefined>, undefined>;
68
+ readonly emph: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
69
+ readonly bold: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
70
+ readonly cell_valign: v.NullishSchema<v.StringSchema<undefined>, undefined>;
71
+ readonly leading: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
72
+ }, undefined>, undefined>;
73
+ }, undefined>>>]>;
74
+ readonly 'user-input-mode': v.PicklistSchema<["noinput", "display"], undefined>;
75
+ readonly 'default-value': v.NullishSchema<v.StringSchema<undefined>, undefined>;
76
+ readonly sources: v.NullishSchema<v.StringSchema<undefined>, undefined>;
77
+ readonly 'value-constructor': v.NullishSchema<v.StringSchema<undefined>, undefined>;
78
+ readonly attribute: v.NullishSchema<v.StringSchema<undefined>, undefined>;
79
+ readonly datatype: v.NullishSchema<v.LiteralSchema<"string", undefined>, undefined>;
80
+ readonly 'is-display-field': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
81
+ }, undefined>;
82
+ export type DynamicallyFilledTextType = v.InferOutput<typeof DynamicallyFilledTextSchema>;
83
+ export type DynamicallyFilledTextSchemaType = v.GenericSchema<DynamicallyFilledTextType>;
84
+ declare const _default: DynamicallyFilledTextSchemaType;
85
+ export default _default;
@@ -0,0 +1,36 @@
1
+ import { boolean as external_valibot_boolean, literal, nullish, number, picklist, strictObject, string } from "valibot";
2
+ import { createFieldDisplay } from "../common.js";
3
+ const DynamicallyFilledTextDisplaySchema = createFieldDisplay(strictObject({
4
+ component: literal('dynamically-filled-text'),
5
+ 'component-params': nullish(strictObject({
6
+ fill: nullish(external_valibot_boolean()),
7
+ position: nullish(picklist([
8
+ 'center',
9
+ 'justify',
10
+ 'left',
11
+ 'right'
12
+ ])),
13
+ format: nullish(literal('plaintext')),
14
+ textColor: nullish(string()),
15
+ emph: nullish(external_valibot_boolean()),
16
+ bold: nullish(external_valibot_boolean()),
17
+ cell_valign: nullish(string()),
18
+ leading: nullish(number())
19
+ }))
20
+ }));
21
+ const DynamicallyFilledTextSchema = strictObject({
22
+ value: nullish(string()),
23
+ display: DynamicallyFilledTextDisplaySchema,
24
+ 'user-input-mode': picklist([
25
+ 'noinput',
26
+ 'display'
27
+ ]),
28
+ 'default-value': nullish(string()),
29
+ sources: nullish(string()),
30
+ 'value-constructor': nullish(string()),
31
+ attribute: nullish(string()),
32
+ datatype: nullish(literal('string')),
33
+ 'is-display-field': nullish(external_valibot_boolean())
34
+ });
35
+ const dynamically_filled_text = DynamicallyFilledTextSchema;
36
+ export { dynamically_filled_text as default };
@@ -0,0 +1,60 @@
1
+ import * as v from 'valibot';
2
+ declare const EmailSchema: 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<"email", undefined>;
17
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
18
+ readonly multiplicity: v.NullishSchema<v.NumberSchema<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<"email", undefined>;
33
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
34
+ readonly multiplicity: v.NullishSchema<v.NumberSchema<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<"email", undefined>;
49
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
50
+ readonly multiplicity: v.NullishSchema<v.NumberSchema<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 datatype: v.NullishSchema<v.LiteralSchema<"email", undefined>, undefined>;
56
+ }, undefined>;
57
+ export type EmailType = v.InferOutput<typeof EmailSchema>;
58
+ export type EmailSchemaType = v.GenericSchema<EmailType>;
59
+ declare const _default: EmailSchemaType;
60
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { literal, nullish, number, picklist, strictObject, string } from "valibot";
2
+ import { createFieldDisplay } from "../common.js";
3
+ const EmailDisplaySchema = createFieldDisplay(strictObject({
4
+ component: literal('email'),
5
+ 'component-params': nullish(strictObject({
6
+ multiplicity: nullish(number())
7
+ }))
8
+ }));
9
+ const EmailSchema = strictObject({
10
+ 'user-input-mode': picklist([
11
+ 'noinput',
12
+ 'optional',
13
+ 'required'
14
+ ]),
15
+ display: EmailDisplaySchema,
16
+ attribute: nullish(string()),
17
+ 'default-value': nullish(string()),
18
+ datatype: nullish(literal('email'))
19
+ });
20
+ const email = EmailSchema;
21
+ export { email as default };