@uides/stepwise 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/CHANGELOG.md +11 -2
  2. package/generators/extractStepwisePossibleValues.d.mts +1 -0
  3. package/index.js +1 -1
  4. package/package.json +1 -1
  5. package/schemas/action.d.ts +48 -168
  6. package/schemas/action.js +34 -47
  7. package/schemas/field/afm/index.d.ts +158 -6
  8. package/schemas/field/afm/index.js +6 -9
  9. package/schemas/field/amka/index.d.ts +152 -8
  10. package/schemas/field/amka/index.js +3 -7
  11. package/schemas/field/attachment/index.d.ts +184 -16
  12. package/schemas/field/attachment/index.js +9 -22
  13. package/schemas/field/captcha/index.d.ts +156 -2
  14. package/schemas/field/captcha/index.js +6 -9
  15. package/schemas/field/choice/index.d.ts +188 -15
  16. package/schemas/field/choice/index.js +4 -9
  17. package/schemas/field/common.d.ts +92 -40
  18. package/schemas/field/common.js +78 -11
  19. package/schemas/field/date/index.d.ts +152 -38
  20. package/schemas/field/date/index.js +6 -33
  21. package/schemas/field/doc_subtitle/index.d.ts +158 -5
  22. package/schemas/field/doc_subtitle/index.js +5 -6
  23. package/schemas/field/doc_title/index.d.ts +154 -8
  24. package/schemas/field/doc_title/index.js +5 -12
  25. package/schemas/field/dynamically-filled-text/index.d.ts +170 -33
  26. package/schemas/field/dynamically-filled-text/index.js +6 -23
  27. package/schemas/field/email/index.d.ts +152 -8
  28. package/schemas/field/email/index.js +5 -9
  29. package/schemas/field/fillable-string/index.d.ts +156 -12
  30. package/schemas/field/fillable-string/index.js +4 -10
  31. package/schemas/field/five-block-date/index.d.ts +156 -2
  32. package/schemas/field/five-block-date/index.js +5 -4
  33. package/schemas/field/hidden/index.d.ts +161 -14
  34. package/schemas/field/hidden/index.js +7 -15
  35. package/schemas/field/hierarchical-selector/index.d.ts +176 -37
  36. package/schemas/field/hierarchical-selector/index.js +5 -21
  37. package/schemas/field/iban/index.d.ts +168 -6
  38. package/schemas/field/iban/index.js +3 -3
  39. package/schemas/field/image/index.d.ts +168 -16
  40. package/schemas/field/image/index.js +7 -23
  41. package/schemas/field/index.d.ts +2 -7
  42. package/schemas/field/index.js +8 -15
  43. package/schemas/field/int/index.d.ts +152 -8
  44. package/schemas/field/int/index.js +5 -9
  45. package/schemas/field/intl_mobile_phone/index.d.ts +156 -3
  46. package/schemas/field/intl_mobile_phone/index.js +5 -5
  47. package/schemas/field/lab-results/index.d.ts +156 -3
  48. package/schemas/field/lab-results/index.js +6 -6
  49. package/schemas/field/mobile_phone/index.d.ts +158 -5
  50. package/schemas/field/mobile_phone/index.js +5 -6
  51. package/schemas/field/multiple-choice/index.d.ts +180 -12
  52. package/schemas/field/multiple-choice/index.js +3 -8
  53. package/schemas/field/password/index.d.ts +156 -2
  54. package/schemas/field/password/index.js +5 -5
  55. package/schemas/field/pdf-image/index.d.ts +152 -14
  56. package/schemas/field/pdf-image/index.js +6 -18
  57. package/schemas/field/postal_code/index.d.ts +156 -4
  58. package/schemas/field/postal_code/index.js +6 -8
  59. package/schemas/field/preference-multiple-choice/index.d.ts +211 -17
  60. package/schemas/field/preference-multiple-choice/index.js +5 -9
  61. package/schemas/field/qrcode/index.d.ts +168 -19
  62. package/schemas/field/qrcode/index.js +6 -18
  63. package/schemas/field/quote/index.d.ts +170 -11
  64. package/schemas/field/quote/index.js +4 -12
  65. package/schemas/field/radio-choice/index.d.ts +172 -9
  66. package/schemas/field/radio-choice/index.js +4 -10
  67. package/schemas/field/rate/index.d.ts +150 -8
  68. package/schemas/field/rate/index.js +4 -7
  69. package/schemas/field/recipient/index.d.ts +158 -5
  70. package/schemas/field/recipient/index.js +5 -9
  71. package/schemas/field/redirect/index.d.ts +156 -6
  72. package/schemas/field/redirect/index.js +6 -9
  73. package/schemas/field/refcode/index.d.ts +168 -16
  74. package/schemas/field/refcode/index.js +6 -20
  75. package/schemas/field/string/index.d.ts +226 -65
  76. package/schemas/field/string/index.js +5 -54
  77. package/schemas/field/text/index.d.ts +170 -33
  78. package/schemas/field/text/index.js +5 -30
  79. package/schemas/field/three-block-date/index.d.ts +176 -12
  80. package/schemas/field/three-block-date/index.js +4 -10
  81. package/schemas/field/url/index.d.ts +204 -0
  82. package/schemas/field/url/index.js +16 -0
  83. package/schemas/fieldset/component-params.d.ts +9 -41
  84. package/schemas/fieldset/component-params.js +5 -29
  85. package/schemas/fieldset/display-components.d.ts +16 -244
  86. package/schemas/fieldset/display-components.js +6 -19
  87. package/schemas/fieldset/enums.d.ts +0 -22
  88. package/schemas/fieldset/enums.js +1 -15
  89. package/schemas/fieldset/index.d.ts +9 -93
  90. package/schemas/index.d.ts +1 -1
  91. package/schemas/index.js +1 -1
  92. package/schemas/step.d.ts +7 -0
  93. package/schemas/step.js +2 -1
  94. package/schemas/{template/template.d.ts → template.d.ts} +47 -23
  95. package/schemas/template.js +26 -0
  96. package/src/generators/actions-possible-values/document-anon-create.json +19 -0
  97. package/src/generators/actions-possible-values/document-backstep.json +19 -0
  98. package/src/generators/actions-possible-values/document-create-new.json +43 -0
  99. package/src/generators/actions-possible-values/document-create.json +20 -0
  100. package/src/generators/actions-possible-values/document-dismiss.json +36 -0
  101. package/src/generators/actions-possible-values/document-download-pdf.json +69 -0
  102. package/src/generators/actions-possible-values/document-email.json +42 -0
  103. package/src/generators/actions-possible-values/document-resend-otp.json +30 -0
  104. package/src/generators/actions-possible-values/document-revoke.json +46 -0
  105. package/src/generators/actions-possible-values/document-share.json +29 -0
  106. package/src/generators/actions-possible-values/document-sms.json +38 -0
  107. package/src/generators/actions-possible-values/document-temporary-save.json +28 -0
  108. package/src/generators/actions-possible-values/document-update.json +111 -0
  109. package/src/generators/actions-possible-values/entity-forward.json +31 -0
  110. package/src/generators/actions-possible-values/entity-reply.json +31 -0
  111. package/src/generators/actions-possible-values/entity-send-message.json +34 -0
  112. package/src/generators/actions-possible-values/hidden.json +22 -0
  113. package/src/generators/actions-possible-values/link.json +43 -0
  114. package/src/generators/extractStepwisePossibleValues.mjs +139 -0
  115. package/src/generators/fields-possible-values/afm.json +94 -0
  116. package/src/generators/fields-possible-values/amka.json +26 -0
  117. package/src/generators/fields-possible-values/attachment.json +89 -0
  118. package/src/generators/fields-possible-values/captcha.json +16 -0
  119. package/src/generators/fields-possible-values/choice.json +432 -0
  120. package/src/generators/fields-possible-values/date.json +57 -0
  121. package/src/generators/fields-possible-values/doc_subtitle.json +26 -0
  122. package/src/generators/fields-possible-values/doc_title.json +63 -0
  123. package/src/generators/fields-possible-values/dynamically-filled-text.json +47 -0
  124. package/src/generators/fields-possible-values/email.json +65 -0
  125. package/src/generators/fields-possible-values/fillable-string.json +47 -0
  126. package/src/generators/fields-possible-values/five-block-date.json +23 -0
  127. package/src/generators/fields-possible-values/hidden.json +140 -0
  128. package/src/generators/fields-possible-values/hierarchical-selector.json +84 -0
  129. package/src/generators/fields-possible-values/iban.json +35 -0
  130. package/src/generators/fields-possible-values/image.json +37 -0
  131. package/src/generators/fields-possible-values/int.json +52 -0
  132. package/src/generators/fields-possible-values/intl_mobile_phone.json +32 -0
  133. package/src/generators/fields-possible-values/lab-results.json +19 -0
  134. package/src/generators/fields-possible-values/mobile_phone.json +45 -0
  135. package/src/generators/fields-possible-values/multiple-choice.json +128 -0
  136. package/src/generators/fields-possible-values/password.json +20 -0
  137. package/src/generators/fields-possible-values/pdf-image.json +70 -0
  138. package/src/generators/fields-possible-values/postal_code.json +32 -0
  139. package/src/generators/fields-possible-values/preference-multiple-choice.json +53 -0
  140. package/src/generators/fields-possible-values/qrcode.json +75 -0
  141. package/src/generators/fields-possible-values/quote.json +71 -0
  142. package/src/generators/fields-possible-values/radio-choice.json +209 -0
  143. package/src/generators/fields-possible-values/rate.json +26 -0
  144. package/src/generators/fields-possible-values/recipient.json +46 -0
  145. package/src/generators/fields-possible-values/redirect.json +22 -0
  146. package/src/generators/fields-possible-values/refcode.json +89 -0
  147. package/src/generators/fields-possible-values/string.json +778 -0
  148. package/src/generators/fields-possible-values/text.json +105 -0
  149. package/src/generators/fields-possible-values/three-block-date.json +83 -0
  150. package/src/generators/fields-possible-values/url.json +23 -0
  151. package/src/generators/fieldsets-possible-values/form.json +311 -0
  152. package/src/generators/fieldsets-possible-values/hidden.json +107 -0
  153. package/src/generators/fieldsets-possible-values/unknown.json +69 -0
  154. package/src/generators/fieldsets-possible-values/values-list.json +364 -0
  155. package/src/schemas/action.ts +44 -58
  156. package/src/schemas/field/afm/index.ts +8 -6
  157. package/src/schemas/field/amka/index.ts +7 -9
  158. package/src/schemas/field/attachment/index.ts +9 -23
  159. package/src/schemas/field/captcha/index.ts +8 -3
  160. package/src/schemas/field/choice/index.ts +7 -5
  161. package/src/schemas/field/common.spec.ts +0 -3
  162. package/src/schemas/field/common.ts +115 -53
  163. package/src/schemas/field/date/index.ts +8 -24
  164. package/src/schemas/field/doc_subtitle/index.ts +7 -4
  165. package/src/schemas/field/doc_title/index.ts +7 -14
  166. package/src/schemas/field/dynamically-filled-text/index.ts +7 -15
  167. package/src/schemas/field/email/index.ts +7 -9
  168. package/src/schemas/field/fillable-string/index.ts +7 -11
  169. package/src/schemas/field/five-block-date/index.ts +7 -2
  170. package/src/schemas/field/hidden/index.ts +15 -40
  171. package/src/schemas/field/hierarchical-selector/index.ts +8 -18
  172. package/src/schemas/field/iban/index.ts +7 -3
  173. package/src/schemas/field/image/index.ts +8 -10
  174. package/src/schemas/field/index.ts +8 -33
  175. package/src/schemas/field/int/index.ts +7 -9
  176. package/src/schemas/field/intl_mobile_phone/index.ts +7 -3
  177. package/src/schemas/field/lab-results/index.ts +7 -3
  178. package/src/schemas/field/mobile_phone/index.ts +7 -4
  179. package/src/schemas/field/multiple-choice/index.ts +7 -5
  180. package/src/schemas/field/password/index.ts +8 -3
  181. package/src/schemas/field/pdf-image/index.ts +8 -12
  182. package/src/schemas/field/postal_code/index.ts +8 -5
  183. package/src/schemas/field/preference-multiple-choice/index.ts +8 -7
  184. package/src/schemas/field/qrcode/index.ts +7 -10
  185. package/src/schemas/field/quote/index.ts +8 -8
  186. package/src/schemas/field/radio-choice/index.ts +7 -5
  187. package/src/schemas/field/rate/index.ts +7 -8
  188. package/src/schemas/field/recipient/index.ts +7 -4
  189. package/src/schemas/field/redirect/index.ts +7 -6
  190. package/src/schemas/field/refcode/index.ts +7 -21
  191. package/src/schemas/field/string/index.ts +7 -42
  192. package/src/schemas/field/text/index.ts +8 -16
  193. package/src/schemas/field/three-block-date/index.ts +7 -6
  194. package/src/schemas/field/url/index.ts +24 -0
  195. package/src/schemas/fieldset/component-params.ts +4 -20
  196. package/src/schemas/fieldset/display-components.ts +5 -36
  197. package/src/schemas/fieldset/enums.ts +0 -38
  198. package/src/schemas/step.ts +1 -0
  199. package/src/schemas/{template/template-base.ts → template.ts} +30 -6
  200. package/src/utils/index.ts +69 -2
  201. package/utils/index.js +28 -2
  202. package/schemas/field/consent-content/index.d.ts +0 -68
  203. package/schemas/field/consent-content/index.js +0 -19
  204. package/schemas/field/image-crop/index.d.ts +0 -59
  205. package/schemas/field/image-crop/index.js +0 -19
  206. package/schemas/field/landline_phone/index.d.ts +0 -48
  207. package/schemas/field/landline_phone/index.js +0 -14
  208. package/schemas/field/link/index.d.ts +0 -50
  209. package/schemas/field/link/index.js +0 -16
  210. package/schemas/field/phone/index.d.ts +0 -48
  211. package/schemas/field/phone/index.js +0 -14
  212. package/schemas/field/url-param/index.d.ts +0 -57
  213. package/schemas/field/url-param/index.js +0 -14
  214. package/schemas/template/index.d.ts +0 -2
  215. package/schemas/template/index.js +0 -2
  216. package/schemas/template/template-base.d.ts +0 -53
  217. package/schemas/template/template-base.js +0 -15
  218. package/schemas/template/template-source.d.ts +0 -50
  219. package/schemas/template/template-source.js +0 -14
  220. package/schemas/template/template.js +0 -22
  221. package/src/schemas/field/consent-content/index.ts +0 -28
  222. package/src/schemas/field/image-crop/index.ts +0 -25
  223. package/src/schemas/field/landline_phone/index.ts +0 -18
  224. package/src/schemas/field/link/index.ts +0 -20
  225. package/src/schemas/field/phone/index.ts +0 -18
  226. package/src/schemas/field/url-param/index.ts +0 -23
  227. package/src/schemas/template/index.ts +0 -2
  228. package/src/schemas/template/template-source.ts +0 -88
  229. package/src/schemas/template/template.ts +0 -49
@@ -1,7 +1,14 @@
1
1
  import * as v from 'valibot';
2
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<{
3
+ readonly attribute: v.NullishSchema<v.AnySchema, undefined>;
4
+ readonly sources: v.NullishSchema<v.AnySchema, undefined>;
5
+ readonly 'value-constructor': v.NullishSchema<v.AnySchema, undefined>;
6
+ readonly datatype: v.NullishSchema<v.AnySchema, undefined>;
7
+ readonly 'is-display-field': v.NullishSchema<v.AnySchema, undefined>;
8
+ readonly 'default-on-empty': v.NullishSchema<v.AnySchema, undefined>;
9
+ } & {
10
+ 'user-input-mode': v.PicklistSchema<["noinput", "optional", "required"], undefined>;
11
+ display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
5
12
  readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
6
13
  readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
7
14
  readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
@@ -15,7 +22,39 @@ declare const IbanSchema: v.StrictObjectSchema<{
15
22
  } & {
16
23
  readonly component: v.LiteralSchema<"iban", undefined>;
17
24
  readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
18
- readonly country: v.LiteralSchema<"gr", undefined>;
25
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
26
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
27
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
28
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
29
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
30
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
31
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
32
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
33
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
34
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
35
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
36
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
37
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
38
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
39
+ } & {
40
+ country: v.LiteralSchema<"gr", undefined>;
41
+ }, undefined> | v.LooseObjectSchema<{
42
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
43
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
44
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
45
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
46
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
47
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
48
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
49
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
50
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
51
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
52
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
53
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
54
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
55
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
56
+ } & {
57
+ country: v.LiteralSchema<"gr", undefined>;
19
58
  }, undefined>, undefined>;
20
59
  }, undefined>, v.ObjectSchema<{
21
60
  readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -31,7 +70,98 @@ declare const IbanSchema: v.StrictObjectSchema<{
31
70
  } & {
32
71
  readonly component: v.LiteralSchema<"iban", undefined>;
33
72
  readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
34
- readonly country: v.LiteralSchema<"gr", undefined>;
73
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
74
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
75
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
76
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
77
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
78
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
79
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
80
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
81
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
82
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
83
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
84
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
85
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
86
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
87
+ } & {
88
+ country: v.LiteralSchema<"gr", undefined>;
89
+ }, undefined> | v.LooseObjectSchema<{
90
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
91
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
92
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
93
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
94
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
95
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
96
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
97
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
98
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
99
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
100
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
101
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
102
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
103
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
104
+ } & {
105
+ country: v.LiteralSchema<"gr", undefined>;
106
+ }, undefined>, undefined>;
107
+ }, undefined>>>]>;
108
+ 'default-value': v.NullishSchema<v.StringSchema<undefined>, undefined>;
109
+ }, undefined> | v.LooseObjectSchema<{
110
+ readonly attribute: v.NullishSchema<v.AnySchema, undefined>;
111
+ readonly sources: v.NullishSchema<v.AnySchema, undefined>;
112
+ readonly 'value-constructor': v.NullishSchema<v.AnySchema, undefined>;
113
+ readonly datatype: v.NullishSchema<v.AnySchema, undefined>;
114
+ readonly 'is-display-field': v.NullishSchema<v.AnySchema, undefined>;
115
+ readonly 'default-on-empty': v.NullishSchema<v.AnySchema, undefined>;
116
+ } & {
117
+ 'user-input-mode': v.PicklistSchema<["noinput", "optional", "required"], undefined>;
118
+ display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
119
+ readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
120
+ readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
121
+ readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
122
+ readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
123
+ readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
124
+ readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
125
+ readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
126
+ readonly layout: v.NullishSchema<v.StrictObjectSchema<{
127
+ readonly md: v.StringSchema<undefined>;
128
+ }, undefined>, undefined>;
129
+ } & {
130
+ readonly component: v.LiteralSchema<"iban", undefined>;
131
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
132
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
133
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
134
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
135
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
136
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
137
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
138
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
139
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
140
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
141
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
142
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
143
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
144
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
145
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
146
+ } & {
147
+ country: v.LiteralSchema<"gr", undefined>;
148
+ }, undefined> | v.LooseObjectSchema<{
149
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
150
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
151
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
152
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
153
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
154
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
155
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
156
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
157
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
158
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
159
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
160
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
161
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
162
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
163
+ } & {
164
+ country: v.LiteralSchema<"gr", undefined>;
35
165
  }, undefined>, undefined>;
36
166
  }, undefined>, v.ObjectSchema<{
37
167
  readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -47,10 +177,42 @@ declare const IbanSchema: v.StrictObjectSchema<{
47
177
  } & {
48
178
  readonly component: v.LiteralSchema<"iban", undefined>;
49
179
  readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
50
- readonly country: v.LiteralSchema<"gr", undefined>;
180
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
181
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
182
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
183
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
184
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
185
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
186
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
187
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
188
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
189
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
190
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
191
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
192
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
193
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
194
+ } & {
195
+ country: v.LiteralSchema<"gr", undefined>;
196
+ }, undefined> | v.LooseObjectSchema<{
197
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
198
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
199
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
200
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
201
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
202
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
203
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
204
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
205
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
206
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
207
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
208
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
209
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
210
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
211
+ } & {
212
+ country: v.LiteralSchema<"gr", undefined>;
51
213
  }, undefined>, undefined>;
52
214
  }, undefined>>>]>;
53
- readonly 'default-value': v.NullishSchema<v.StringSchema<undefined>, undefined>;
215
+ 'default-value': v.NullishSchema<v.StringSchema<undefined>, undefined>;
54
216
  }, undefined>;
55
217
  export type IbanType = v.InferOutput<typeof IbanSchema>;
56
218
  export type IbanSchemaType = v.GenericSchema<IbanType>;
@@ -1,12 +1,12 @@
1
1
  import { literal, nullish, picklist, strictObject, string } from "valibot";
2
- import { createFieldDisplay } from "../common.js";
2
+ import { createComponentParams, createFieldDisplay, createFieldSchema } from "../common.js";
3
3
  const IbanDisplaySchema = createFieldDisplay(strictObject({
4
4
  component: literal('iban'),
5
- 'component-params': nullish(strictObject({
5
+ 'component-params': nullish(createComponentParams({
6
6
  country: literal('gr')
7
7
  }))
8
8
  }));
9
- const IbanSchema = strictObject({
9
+ const IbanSchema = createFieldSchema({
10
10
  'user-input-mode': picklist([
11
11
  'noinput',
12
12
  'optional',
@@ -1,7 +1,14 @@
1
1
  import * as v from 'valibot';
2
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<{
3
+ readonly attribute: v.NullishSchema<v.AnySchema, undefined>;
4
+ readonly sources: v.NullishSchema<v.AnySchema, undefined>;
5
+ readonly 'value-constructor': v.NullishSchema<v.AnySchema, undefined>;
6
+ readonly datatype: v.NullishSchema<v.AnySchema, undefined>;
7
+ readonly 'is-display-field': v.NullishSchema<v.AnySchema, undefined>;
8
+ readonly 'default-on-empty': v.NullishSchema<v.AnySchema, undefined>;
9
+ } & {
10
+ 'user-input-mode': v.PicklistSchema<["noinput"], undefined>;
11
+ display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
5
12
  readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
6
13
  readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
7
14
  readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
@@ -15,9 +22,39 @@ declare const ImageSchema: v.StrictObjectSchema<{
15
22
  } & {
16
23
  readonly component: v.LiteralSchema<"image", undefined>;
17
24
  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>;
25
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
26
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
27
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
28
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
29
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
30
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
31
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
32
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
33
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
34
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
35
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
36
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
37
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
38
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
39
+ } & {
40
+ attachment_retrieval: v.NullishSchema<v.PicklistSchema<["content", "content-uri"], undefined>, undefined>;
41
+ }, undefined> | v.LooseObjectSchema<{
42
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
43
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
44
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
45
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
46
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
47
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
48
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
49
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
50
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
51
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
52
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
53
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
54
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
55
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
56
+ } & {
57
+ attachment_retrieval: v.NullishSchema<v.PicklistSchema<["content", "content-uri"], undefined>, undefined>;
21
58
  }, undefined>, undefined>;
22
59
  }, undefined>, v.ObjectSchema<{
23
60
  readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -33,9 +70,98 @@ declare const ImageSchema: v.StrictObjectSchema<{
33
70
  } & {
34
71
  readonly component: v.LiteralSchema<"image", undefined>;
35
72
  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>;
73
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
74
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
75
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
76
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
77
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
78
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
79
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
80
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
81
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
82
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
83
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
84
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
85
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
86
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
87
+ } & {
88
+ attachment_retrieval: v.NullishSchema<v.PicklistSchema<["content", "content-uri"], undefined>, undefined>;
89
+ }, undefined> | v.LooseObjectSchema<{
90
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
91
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
92
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
93
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
94
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
95
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
96
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
97
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
98
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
99
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
100
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
101
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
102
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
103
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
104
+ } & {
105
+ attachment_retrieval: v.NullishSchema<v.PicklistSchema<["content", "content-uri"], undefined>, undefined>;
106
+ }, undefined>, undefined>;
107
+ }, undefined>>>]>;
108
+ value: v.NullishSchema<v.StringSchema<undefined>, undefined>;
109
+ }, undefined> | v.LooseObjectSchema<{
110
+ readonly attribute: v.NullishSchema<v.AnySchema, undefined>;
111
+ readonly sources: v.NullishSchema<v.AnySchema, undefined>;
112
+ readonly 'value-constructor': v.NullishSchema<v.AnySchema, undefined>;
113
+ readonly datatype: v.NullishSchema<v.AnySchema, undefined>;
114
+ readonly 'is-display-field': v.NullishSchema<v.AnySchema, undefined>;
115
+ readonly 'default-on-empty': v.NullishSchema<v.AnySchema, undefined>;
116
+ } & {
117
+ 'user-input-mode': v.PicklistSchema<["noinput"], undefined>;
118
+ display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
119
+ readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
120
+ readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
121
+ readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
122
+ readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
123
+ readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
124
+ readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
125
+ readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
126
+ readonly layout: v.NullishSchema<v.StrictObjectSchema<{
127
+ readonly md: v.StringSchema<undefined>;
128
+ }, undefined>, undefined>;
129
+ } & {
130
+ readonly component: v.LiteralSchema<"image", undefined>;
131
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
132
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
133
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
134
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
135
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
136
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
137
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
138
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
139
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
140
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
141
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
142
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
143
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
144
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
145
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
146
+ } & {
147
+ attachment_retrieval: v.NullishSchema<v.PicklistSchema<["content", "content-uri"], undefined>, undefined>;
148
+ }, undefined> | v.LooseObjectSchema<{
149
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
150
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
151
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
152
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
153
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
154
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
155
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
156
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
157
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
158
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
159
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
160
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
161
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
162
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
163
+ } & {
164
+ attachment_retrieval: v.NullishSchema<v.PicklistSchema<["content", "content-uri"], undefined>, undefined>;
39
165
  }, undefined>, undefined>;
40
166
  }, undefined>, v.ObjectSchema<{
41
167
  readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -51,16 +177,42 @@ declare const ImageSchema: v.StrictObjectSchema<{
51
177
  } & {
52
178
  readonly component: v.LiteralSchema<"image", undefined>;
53
179
  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>;
180
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
181
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
182
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
183
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
184
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
185
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
186
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
187
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
188
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
189
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
190
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
191
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
192
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
193
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
194
+ } & {
195
+ attachment_retrieval: v.NullishSchema<v.PicklistSchema<["content", "content-uri"], undefined>, undefined>;
196
+ }, undefined> | v.LooseObjectSchema<{
197
+ readonly coordinates: v.NullishSchema<v.AnySchema, undefined>;
198
+ readonly 'later-pages': v.NullishSchema<v.AnySchema, undefined>;
199
+ readonly fontSize: v.NullishSchema<v.AnySchema, undefined>;
200
+ readonly fontName: v.NullishSchema<v.AnySchema, undefined>;
201
+ readonly leading: v.NullishSchema<v.AnySchema, undefined>;
202
+ readonly textColor: v.NullishSchema<v.AnySchema, undefined>;
203
+ readonly backColor: v.NullishSchema<v.AnySchema, undefined>;
204
+ readonly bold: v.NullishSchema<v.AnySchema, undefined>;
205
+ readonly format: v.NullishSchema<v.AnySchema, undefined>;
206
+ readonly emph: v.NullishSchema<v.AnySchema, undefined>;
207
+ readonly ignore_emph: v.NullishSchema<v.AnySchema, undefined>;
208
+ readonly cell_valign: v.NullishSchema<v.AnySchema, undefined>;
209
+ readonly position: v.NullishSchema<v.AnySchema, undefined>;
210
+ readonly attachment_retrieval: v.NullishSchema<v.AnySchema, undefined>;
211
+ } & {
212
+ attachment_retrieval: v.NullishSchema<v.PicklistSchema<["content", "content-uri"], undefined>, undefined>;
57
213
  }, undefined>, undefined>;
58
214
  }, 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>;
215
+ value: v.NullishSchema<v.StringSchema<undefined>, undefined>;
64
216
  }, undefined>;
65
217
  export type ImageType = v.InferOutput<typeof ImageSchema>;
66
218
  export type ImageSchemaType = v.GenericSchema<ImageType>;
@@ -1,36 +1,20 @@
1
- import { array, literal, nullable, nullish, number, picklist, strictObject, string } from "valibot";
2
- import { createFieldDisplay } from "../common.js";
1
+ import { literal, nullish, picklist, strictObject, string } from "valibot";
2
+ import { createComponentParams, createFieldDisplay, createFieldSchema } from "../common.js";
3
3
  const ImageDisplaySchema = createFieldDisplay(strictObject({
4
4
  component: literal('image'),
5
- 'component-params': nullish(strictObject({
5
+ 'component-params': nullish(createComponentParams({
6
6
  attachment_retrieval: nullish(picklist([
7
7
  'content',
8
8
  'content-uri'
9
- ])),
10
- position: nullish(picklist([
11
- 'left',
12
- 'right',
13
- 'center',
14
- 'justify'
15
- ])),
16
- coordinates: nullish(array(nullable(number())))
9
+ ]))
17
10
  }))
18
11
  }));
19
- const ImageSchema = strictObject({
12
+ const ImageSchema = createFieldSchema({
20
13
  'user-input-mode': picklist([
21
- 'noinput',
22
- 'required',
23
- 'display'
14
+ 'noinput'
24
15
  ]),
25
16
  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())
17
+ value: nullish(string())
34
18
  });
35
19
  const field_image = ImageSchema;
36
20
  export { field_image as default };
@@ -4,7 +4,6 @@ import { AmkaType } from './amka/index.js';
4
4
  import { AttachmentType } from './attachment/index.js';
5
5
  import { CaptchaType } from './captcha/index.js';
6
6
  import { ChoiceType } from './choice/index.js';
7
- import { ConsentContentType } from './consent-content/index.js';
8
7
  import { DateType } from './date/index.js';
9
8
  import { DocSubtitleType } from './doc_subtitle/index.js';
10
9
  import { DocTitleType } from './doc_title/index.js';
@@ -16,17 +15,13 @@ import { HiddenType } from './hidden/index.js';
16
15
  import { HierarchicalSelectorType } from './hierarchical-selector/index.js';
17
16
  import { IbanType } from './iban/index.js';
18
17
  import { ImageType } from './image/index.js';
19
- import { ImageCropType } from './image-crop/index.js';
20
18
  import { IntType } from './int/index.js';
21
19
  import { IntlMobilePhoneType } from './intl_mobile_phone/index.js';
22
20
  import { LabResultsType } from './lab-results/index.js';
23
- import { LandlinePhoneType } from './landline_phone/index.js';
24
- import { LinkType } from './link/index.js';
25
21
  import { MobilePhoneType } from './mobile_phone/index.js';
26
22
  import { MultipleChoiceType } from './multiple-choice/index.js';
27
23
  import { PasswordType } from './password/index.js';
28
24
  import { PdfImageType } from './pdf-image/index.js';
29
- import { PhoneType } from './phone/index.js';
30
25
  import { PostalCodeType } from './postal_code/index.js';
31
26
  import { PreferenceMultipleChoiceType } from './preference-multiple-choice/index.js';
32
27
  import { QrcodeType } from './qrcode/index.js';
@@ -39,10 +34,10 @@ import { RefcodeType } from './refcode/index.js';
39
34
  import { StringType } from './string/index.js';
40
35
  import { TextType } from './text/index.js';
41
36
  import { ThreeBlockDateType } from './three-block-date/index.js';
42
- import { UrlParamType } from './url-param/index.js';
37
+ import { UrlType } from './url/index.js';
43
38
  export declare const ComponentSchema: v.PicklistSchema<string[], undefined>;
44
39
  declare const FieldSchema: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<Field>, v.CheckAction<Field, "Field with value cannot be editable">]>;
45
40
  export default FieldSchema;
46
- export type Field = AfmType | AmkaType | AttachmentType | CaptchaType | ChoiceType | ConsentContentType | DateType | DocSubtitleType | DocTitleType | DynamicallyFilledTextType | EmailType | FillableStringType | FiveBlockDateType | HiddenType | HierarchicalSelectorType | IbanType | ImageType | ImageCropType | IntType | IntlMobilePhoneType | LabResultsType | LandlinePhoneType | LinkType | MobilePhoneType | MultipleChoiceType | PasswordType | PdfImageType | PhoneType | PostalCodeType | PreferenceMultipleChoiceType | QrcodeType | QuoteType | RadioChoiceType | RateType | RecipientType | RedirectType | RefcodeType | StringType | TextType | ThreeBlockDateType | UrlParamType;
41
+ export type Field = AfmType | AmkaType | AttachmentType | CaptchaType | ChoiceType | DateType | DocSubtitleType | DocTitleType | DynamicallyFilledTextType | EmailType | FillableStringType | FiveBlockDateType | HiddenType | HierarchicalSelectorType | IbanType | ImageType | IntType | IntlMobilePhoneType | LabResultsType | MobilePhoneType | MultipleChoiceType | PasswordType | PdfImageType | PostalCodeType | PreferenceMultipleChoiceType | QrcodeType | QuoteType | RadioChoiceType | RateType | RecipientType | RedirectType | RefcodeType | StringType | TextType | ThreeBlockDateType | UrlType;
47
42
  export type Fields = Record<string, Field>;
48
43
  export declare const FieldsSchema: v.GenericSchema<Fields>;
@@ -1,12 +1,10 @@
1
1
  import { any, check, picklist, pipe, rawCheck, record, safeParse, string } from "valibot";
2
- import { DisplayModeSchema } from "../common.js";
3
2
  import afm from "./afm/index.js";
4
3
  import amka from "./amka/index.js";
5
4
  import attachment from "./attachment/index.js";
6
5
  import captcha from "./captcha/index.js";
7
6
  import choice from "./choice/index.js";
8
7
  import { DisplayModeAndLangSchema } from "./common.js";
9
- import consent_content from "./consent-content/index.js";
10
8
  import date from "./date/index.js";
11
9
  import doc_subtitle from "./doc_subtitle/index.js";
12
10
  import doc_title from "./doc_title/index.js";
@@ -18,17 +16,13 @@ import hidden_0 from "./hidden/index.js";
18
16
  import hierarchical_selector from "./hierarchical-selector/index.js";
19
17
  import iban from "./iban/index.js";
20
18
  import image_0 from "./image/index.js";
21
- import image_crop from "./image-crop/index.js";
22
19
  import int_0 from "./int/index.js";
23
20
  import intl_mobile_phone from "./intl_mobile_phone/index.js";
24
21
  import lab_results from "./lab-results/index.js";
25
- import landline_phone from "./landline_phone/index.js";
26
- import link_0 from "./link/index.js";
27
22
  import mobile_phone from "./mobile_phone/index.js";
28
23
  import multiple_choice from "./multiple-choice/index.js";
29
24
  import password_0 from "./password/index.js";
30
25
  import pdf_image from "./pdf-image/index.js";
31
- import phone from "./phone/index.js";
32
26
  import postal_code from "./postal_code/index.js";
33
27
  import preference_multiple_choice from "./preference-multiple-choice/index.js";
34
28
  import qrcode from "./qrcode/index.js";
@@ -41,7 +35,7 @@ import refcode from "./refcode/index.js";
41
35
  import string_0 from "./string/index.js";
42
36
  import text_0 from "./text/index.js";
43
37
  import three_block_date from "./three-block-date/index.js";
44
- import url_param from "./url-param/index.js";
38
+ import url from "./url/index.js";
45
39
  import { resolveDisplay } from "../resolve.js";
46
40
  import { isFailureDataset } from "../../utils/index.js";
47
41
  const allFieldSchemas = {
@@ -50,7 +44,6 @@ const allFieldSchemas = {
50
44
  attachment: attachment,
51
45
  captcha: captcha,
52
46
  choice: choice,
53
- 'consent-content': consent_content,
54
47
  date: date,
55
48
  doc_title: doc_title,
56
49
  doc_subtitle: doc_subtitle,
@@ -62,17 +55,13 @@ const allFieldSchemas = {
62
55
  'hierarchical-selector': hierarchical_selector,
63
56
  iban: iban,
64
57
  image: image_0,
65
- 'image-crop': image_crop,
66
58
  int: int_0,
67
59
  intl_mobile_phone: intl_mobile_phone,
68
60
  'lab-results': lab_results,
69
- landline_phone: landline_phone,
70
- link: link_0,
71
61
  mobile_phone: mobile_phone,
72
62
  'multiple-choice': multiple_choice,
73
63
  password: password_0,
74
64
  'pdf-image': pdf_image,
75
- phone: phone,
76
65
  postal_code: postal_code,
77
66
  'preference-multiple-choice': preference_multiple_choice,
78
67
  qrcode: qrcode,
@@ -85,9 +74,13 @@ const allFieldSchemas = {
85
74
  string: string_0,
86
75
  text: text_0,
87
76
  'three-block-date': three_block_date,
88
- 'url-param': url_param
77
+ url: url
89
78
  };
90
79
  const ComponentSchema = picklist(Object.keys(allFieldSchemas));
80
+ const VALIDATED_DISPLAY_MODES = [
81
+ 'default',
82
+ 'web'
83
+ ];
91
84
  const FieldSchema = pipe(record(string(), any()), rawCheck(({ dataset, addIssue })=>{
92
85
  if (isFailureDataset(dataset)) return;
93
86
  const { display, ...fieldAttrs } = dataset.value;
@@ -116,8 +109,8 @@ const FieldSchema = pipe(record(string(), any()), rawCheck(({ dataset, addIssue
116
109
  label: 'Display schema'
117
110
  });
118
111
  });
119
- DisplayModeSchema.options.forEach((displayMode)=>{
120
- if (!(display && display[displayMode]) || 'pdf' === displayMode) return;
112
+ VALIDATED_DISPLAY_MODES.forEach((displayMode)=>{
113
+ if (!(display && display[displayMode])) return;
121
114
  Object.keys(display[displayMode]).forEach((displayLang)=>{
122
115
  const resolvedDisplay = resolveDisplay(displayMode, displayLang, display);
123
116
  const fieldToValidate = {