@dnb/eufemia 10.43.0 → 10.44.0

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 (432) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/cjs/components/autocomplete/Autocomplete.d.ts +2 -2
  3. package/cjs/components/autocomplete/AutocompleteDocs.js +7 -7
  4. package/cjs/components/autocomplete/AutocompleteDocs.js.map +1 -1
  5. package/cjs/components/button/Button.d.ts +1 -1
  6. package/cjs/components/button/Button.js +6 -5
  7. package/cjs/components/button/Button.js.map +1 -1
  8. package/cjs/components/input-masked/InputMaskedHooks.js +4 -0
  9. package/cjs/components/input-masked/InputMaskedHooks.js.map +1 -1
  10. package/cjs/components/space/Space.d.ts +1 -1
  11. package/cjs/components/space/Space.js.map +1 -1
  12. package/cjs/components/table/table-accordion/TableAccordionHead.js.map +1 -1
  13. package/cjs/components/table/table-navigation/TableNavigationHead.js +1 -1
  14. package/cjs/components/table/table-navigation/TableNavigationHead.js.map +1 -1
  15. package/cjs/components/upload/UploadDocs.js +1 -1
  16. package/cjs/components/upload/UploadDocs.js.map +1 -1
  17. package/cjs/components/upload/UploadInfo.js +1 -1
  18. package/cjs/components/upload/UploadInfo.js.map +1 -1
  19. package/cjs/components/upload/UploadVerify.js +4 -1
  20. package/cjs/components/upload/UploadVerify.js.map +1 -1
  21. package/cjs/components/upload/types.d.ts +2 -2
  22. package/cjs/components/upload/types.js.map +1 -1
  23. package/cjs/extensions/forms/DataContext/Context.d.ts +1 -0
  24. package/cjs/extensions/forms/DataContext/Context.js.map +1 -1
  25. package/cjs/extensions/forms/DataContext/Provider/Provider.d.ts +5 -12
  26. package/cjs/extensions/forms/DataContext/Provider/Provider.js +43 -18
  27. package/cjs/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
  28. package/cjs/extensions/forms/DataContext/Provider/ProviderDocs.js +6 -1
  29. package/cjs/extensions/forms/DataContext/Provider/ProviderDocs.js.map +1 -1
  30. package/cjs/extensions/forms/Field/Currency/CurrencyDocs.d.ts +2 -0
  31. package/cjs/extensions/forms/Field/Currency/CurrencyDocs.js +31 -0
  32. package/cjs/extensions/forms/Field/Currency/CurrencyDocs.js.map +1 -0
  33. package/cjs/extensions/forms/Field/Expiry/Expiry.d.ts +1 -1
  34. package/cjs/extensions/forms/Field/Expiry/Expiry.js.map +1 -1
  35. package/cjs/extensions/forms/Field/FieldDocs.d.ts +7 -0
  36. package/cjs/extensions/forms/Field/FieldDocs.js +20 -1
  37. package/cjs/extensions/forms/Field/FieldDocs.js.map +1 -1
  38. package/cjs/extensions/forms/Field/Number/Number.js +7 -12
  39. package/cjs/extensions/forms/Field/Number/Number.js.map +1 -1
  40. package/cjs/extensions/forms/Field/Option/Option.d.ts +2 -4
  41. package/cjs/extensions/forms/Field/Option/Option.js +0 -21
  42. package/cjs/extensions/forms/Field/Option/Option.js.map +1 -1
  43. package/cjs/extensions/forms/Field/PhoneNumber/PhoneNumber.d.ts +5 -2
  44. package/cjs/extensions/forms/Field/PhoneNumber/PhoneNumber.js +33 -15
  45. package/cjs/extensions/forms/Field/PhoneNumber/PhoneNumber.js.map +1 -1
  46. package/cjs/extensions/forms/Field/PhoneNumber/PhoneNumberDocs.d.ts +3 -0
  47. package/cjs/extensions/forms/Field/PhoneNumber/PhoneNumberDocs.js +28 -0
  48. package/cjs/extensions/forms/Field/PhoneNumber/PhoneNumberDocs.js.map +1 -0
  49. package/cjs/extensions/forms/Field/SelectCountry/SelectCountry.d.ts +2 -2
  50. package/cjs/extensions/forms/Field/SelectCountry/SelectCountry.js +32 -16
  51. package/cjs/extensions/forms/Field/SelectCountry/SelectCountry.js.map +1 -1
  52. package/cjs/extensions/forms/Field/SelectCountry/SelectCountryDocs.d.ts +1 -0
  53. package/cjs/extensions/forms/Field/SelectCountry/SelectCountryDocs.js +16 -0
  54. package/cjs/extensions/forms/Field/SelectCountry/SelectCountryDocs.js.map +1 -0
  55. package/cjs/extensions/forms/Field/Selection/Selection.d.ts +40 -16
  56. package/cjs/extensions/forms/Field/Selection/Selection.js +71 -16
  57. package/cjs/extensions/forms/Field/Selection/Selection.js.map +1 -1
  58. package/cjs/extensions/forms/Field/Selection/SelectionDocs.js +10 -0
  59. package/cjs/extensions/forms/Field/Selection/SelectionDocs.js.map +1 -1
  60. package/cjs/extensions/forms/Field/Toggle/Toggle.js +1 -1
  61. package/cjs/extensions/forms/Field/Toggle/Toggle.js.map +1 -1
  62. package/cjs/extensions/forms/Form/Handler/Handler.d.ts +1 -1
  63. package/cjs/extensions/forms/Form/Handler/Handler.js +3 -1
  64. package/cjs/extensions/forms/Form/Handler/Handler.js.map +1 -1
  65. package/cjs/extensions/forms/Form/Isolation/Isolation.d.ts +26 -5
  66. package/cjs/extensions/forms/Form/Isolation/Isolation.js +66 -26
  67. package/cjs/extensions/forms/Form/Isolation/Isolation.js.map +1 -1
  68. package/cjs/extensions/forms/Form/Isolation/IsolationCommitButton.js +1 -0
  69. package/cjs/extensions/forms/Form/Isolation/IsolationCommitButton.js.map +1 -1
  70. package/cjs/extensions/forms/Form/Isolation/IsolationDocs.js +11 -1
  71. package/cjs/extensions/forms/Form/Isolation/IsolationDocs.js.map +1 -1
  72. package/cjs/extensions/forms/Form/Section/Section.js +2 -2
  73. package/cjs/extensions/forms/Form/Section/Section.js.map +1 -1
  74. package/cjs/extensions/forms/Form/data-context/clearData.d.ts +1 -0
  75. package/cjs/extensions/forms/Form/data-context/clearData.js +16 -0
  76. package/cjs/extensions/forms/Form/data-context/clearData.js.map +1 -0
  77. package/cjs/extensions/forms/Form/index.d.ts +1 -0
  78. package/cjs/extensions/forms/Form/index.js +7 -0
  79. package/cjs/extensions/forms/Form/index.js.map +1 -1
  80. package/cjs/extensions/forms/Iterate/Array/Array.js.map +1 -1
  81. package/cjs/extensions/forms/Iterate/Array/types.d.ts +1 -4
  82. package/cjs/extensions/forms/Iterate/Array/types.js.map +1 -1
  83. package/cjs/extensions/forms/Iterate/style/dnb-iterate.css +1 -1
  84. package/cjs/extensions/forms/Iterate/style/dnb-iterate.min.css +1 -1
  85. package/cjs/extensions/forms/Iterate/style/dnb-iterate.scss +1 -1
  86. package/cjs/extensions/forms/constants/locales/en-GB.d.ts +4 -0
  87. package/cjs/extensions/forms/constants/locales/en-GB.js +4 -0
  88. package/cjs/extensions/forms/constants/locales/en-GB.js.map +1 -1
  89. package/cjs/extensions/forms/constants/locales/en-US.d.ts +4 -0
  90. package/cjs/extensions/forms/constants/locales/index.d.ts +8 -0
  91. package/cjs/extensions/forms/constants/locales/nb-NO.d.ts +4 -0
  92. package/cjs/extensions/forms/constants/locales/nb-NO.js +4 -0
  93. package/cjs/extensions/forms/constants/locales/nb-NO.js.map +1 -1
  94. package/cjs/extensions/forms/hooks/DataValueDocs.js +4 -4
  95. package/cjs/extensions/forms/hooks/DataValueDocs.js.map +1 -1
  96. package/cjs/extensions/forms/hooks/useDataValue.d.ts +1 -0
  97. package/cjs/extensions/forms/hooks/useDataValue.js +18 -9
  98. package/cjs/extensions/forms/hooks/useDataValue.js.map +1 -1
  99. package/cjs/extensions/forms/hooks/useFieldProps.d.ts +5 -5
  100. package/cjs/extensions/forms/hooks/useFieldProps.js +39 -23
  101. package/cjs/extensions/forms/hooks/useFieldProps.js.map +1 -1
  102. package/cjs/extensions/forms/style/dnb-forms.css +1 -1
  103. package/cjs/extensions/forms/style/dnb-forms.min.css +1 -1
  104. package/cjs/extensions/forms/types.d.ts +16 -7
  105. package/cjs/extensions/forms/types.js.map +1 -1
  106. package/cjs/shared/Eufemia.d.ts +1 -1
  107. package/cjs/shared/Eufemia.js +2 -2
  108. package/cjs/shared/Eufemia.js.map +1 -1
  109. package/cjs/shared/helpers/isAsync.js +2 -2
  110. package/cjs/shared/helpers/isAsync.js.map +1 -1
  111. package/cjs/style/core/scopes.scss +1 -1
  112. package/cjs/style/dnb-ui-basis.css +1 -1
  113. package/cjs/style/dnb-ui-basis.min.css +1 -1
  114. package/cjs/style/dnb-ui-body.css +1 -1
  115. package/cjs/style/dnb-ui-body.min.css +1 -1
  116. package/cjs/style/dnb-ui-components.css +1 -1
  117. package/cjs/style/dnb-ui-components.min.css +1 -1
  118. package/cjs/style/dnb-ui-core.css +1 -1
  119. package/cjs/style/dnb-ui-core.min.css +1 -1
  120. package/cjs/style/dnb-ui-extensions.css +1 -1
  121. package/cjs/style/dnb-ui-extensions.min.css +1 -1
  122. package/cjs/style/dnb-ui-forms.css +1 -1
  123. package/cjs/style/dnb-ui-forms.min.css +1 -1
  124. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.css +2 -2
  125. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
  126. package/cjs/style/themes/theme-eiendom/eiendom-theme-extensions.css +1 -1
  127. package/cjs/style/themes/theme-eiendom/eiendom-theme-extensions.min.css +1 -1
  128. package/cjs/style/themes/theme-eiendom/eiendom-theme-forms.css +1 -1
  129. package/cjs/style/themes/theme-eiendom/eiendom-theme-forms.min.css +1 -1
  130. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.css +2 -2
  131. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
  132. package/cjs/style/themes/theme-sbanken/sbanken-theme-extensions.css +1 -1
  133. package/cjs/style/themes/theme-sbanken/sbanken-theme-extensions.min.css +1 -1
  134. package/cjs/style/themes/theme-sbanken/sbanken-theme-forms.css +1 -1
  135. package/cjs/style/themes/theme-sbanken/sbanken-theme-forms.min.css +1 -1
  136. package/cjs/style/themes/theme-ui/ui-theme-components.css +2 -2
  137. package/cjs/style/themes/theme-ui/ui-theme-components.min.css +1 -1
  138. package/cjs/style/themes/theme-ui/ui-theme-extensions.css +1 -1
  139. package/cjs/style/themes/theme-ui/ui-theme-extensions.min.css +1 -1
  140. package/cjs/style/themes/theme-ui/ui-theme-forms.css +1 -1
  141. package/cjs/style/themes/theme-ui/ui-theme-forms.min.css +1 -1
  142. package/components/autocomplete/Autocomplete.d.ts +2 -2
  143. package/components/autocomplete/AutocompleteDocs.js +7 -7
  144. package/components/autocomplete/AutocompleteDocs.js.map +1 -1
  145. package/components/button/Button.d.ts +1 -1
  146. package/components/button/Button.js +6 -5
  147. package/components/button/Button.js.map +1 -1
  148. package/components/input-masked/InputMaskedHooks.js +4 -0
  149. package/components/input-masked/InputMaskedHooks.js.map +1 -1
  150. package/components/space/Space.d.ts +1 -1
  151. package/components/space/Space.js.map +1 -1
  152. package/components/table/table-accordion/TableAccordionHead.js.map +1 -1
  153. package/components/table/table-navigation/TableNavigationHead.js +1 -1
  154. package/components/table/table-navigation/TableNavigationHead.js.map +1 -1
  155. package/components/upload/UploadDocs.js +1 -1
  156. package/components/upload/UploadDocs.js.map +1 -1
  157. package/components/upload/UploadInfo.js +1 -1
  158. package/components/upload/UploadInfo.js.map +1 -1
  159. package/components/upload/UploadVerify.js +4 -1
  160. package/components/upload/UploadVerify.js.map +1 -1
  161. package/components/upload/types.d.ts +2 -2
  162. package/components/upload/types.js.map +1 -1
  163. package/es/components/autocomplete/Autocomplete.d.ts +2 -2
  164. package/es/components/autocomplete/AutocompleteDocs.js +7 -7
  165. package/es/components/autocomplete/AutocompleteDocs.js.map +1 -1
  166. package/es/components/button/Button.d.ts +1 -1
  167. package/es/components/button/Button.js +6 -5
  168. package/es/components/button/Button.js.map +1 -1
  169. package/es/components/input-masked/InputMaskedHooks.js +4 -0
  170. package/es/components/input-masked/InputMaskedHooks.js.map +1 -1
  171. package/es/components/space/Space.d.ts +1 -1
  172. package/es/components/space/Space.js.map +1 -1
  173. package/es/components/table/table-accordion/TableAccordionHead.js.map +1 -1
  174. package/es/components/table/table-navigation/TableNavigationHead.js +1 -1
  175. package/es/components/table/table-navigation/TableNavigationHead.js.map +1 -1
  176. package/es/components/upload/UploadDocs.js +1 -1
  177. package/es/components/upload/UploadDocs.js.map +1 -1
  178. package/es/components/upload/UploadInfo.js +1 -1
  179. package/es/components/upload/UploadInfo.js.map +1 -1
  180. package/es/components/upload/UploadVerify.js +4 -1
  181. package/es/components/upload/UploadVerify.js.map +1 -1
  182. package/es/components/upload/types.d.ts +2 -2
  183. package/es/components/upload/types.js.map +1 -1
  184. package/es/extensions/forms/DataContext/Context.d.ts +1 -0
  185. package/es/extensions/forms/DataContext/Context.js.map +1 -1
  186. package/es/extensions/forms/DataContext/Provider/Provider.d.ts +5 -12
  187. package/es/extensions/forms/DataContext/Provider/Provider.js +41 -18
  188. package/es/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
  189. package/es/extensions/forms/DataContext/Provider/ProviderDocs.js +6 -1
  190. package/es/extensions/forms/DataContext/Provider/ProviderDocs.js.map +1 -1
  191. package/es/extensions/forms/Field/Currency/CurrencyDocs.d.ts +2 -0
  192. package/es/extensions/forms/Field/Currency/CurrencyDocs.js +22 -0
  193. package/es/extensions/forms/Field/Currency/CurrencyDocs.js.map +1 -0
  194. package/es/extensions/forms/Field/Expiry/Expiry.d.ts +1 -1
  195. package/es/extensions/forms/Field/Expiry/Expiry.js.map +1 -1
  196. package/es/extensions/forms/Field/FieldDocs.d.ts +7 -0
  197. package/es/extensions/forms/Field/FieldDocs.js +16 -0
  198. package/es/extensions/forms/Field/FieldDocs.js.map +1 -1
  199. package/es/extensions/forms/Field/Number/Number.js +7 -12
  200. package/es/extensions/forms/Field/Number/Number.js.map +1 -1
  201. package/es/extensions/forms/Field/Option/Option.d.ts +2 -4
  202. package/es/extensions/forms/Field/Option/Option.js +0 -20
  203. package/es/extensions/forms/Field/Option/Option.js.map +1 -1
  204. package/es/extensions/forms/Field/PhoneNumber/PhoneNumber.d.ts +5 -2
  205. package/es/extensions/forms/Field/PhoneNumber/PhoneNumber.js +32 -15
  206. package/es/extensions/forms/Field/PhoneNumber/PhoneNumber.js.map +1 -1
  207. package/es/extensions/forms/Field/PhoneNumber/PhoneNumberDocs.d.ts +3 -0
  208. package/es/extensions/forms/Field/PhoneNumber/PhoneNumberDocs.js +20 -0
  209. package/es/extensions/forms/Field/PhoneNumber/PhoneNumberDocs.js.map +1 -0
  210. package/es/extensions/forms/Field/SelectCountry/SelectCountry.d.ts +2 -2
  211. package/es/extensions/forms/Field/SelectCountry/SelectCountry.js +16 -3
  212. package/es/extensions/forms/Field/SelectCountry/SelectCountry.js.map +1 -1
  213. package/es/extensions/forms/Field/SelectCountry/SelectCountryDocs.d.ts +1 -0
  214. package/es/extensions/forms/Field/SelectCountry/SelectCountryDocs.js +9 -0
  215. package/es/extensions/forms/Field/SelectCountry/SelectCountryDocs.js.map +1 -0
  216. package/es/extensions/forms/Field/Selection/Selection.d.ts +40 -16
  217. package/es/extensions/forms/Field/Selection/Selection.js +67 -15
  218. package/es/extensions/forms/Field/Selection/Selection.js.map +1 -1
  219. package/es/extensions/forms/Field/Selection/SelectionDocs.js +10 -0
  220. package/es/extensions/forms/Field/Selection/SelectionDocs.js.map +1 -1
  221. package/es/extensions/forms/Field/Toggle/Toggle.js +1 -1
  222. package/es/extensions/forms/Field/Toggle/Toggle.js.map +1 -1
  223. package/es/extensions/forms/Form/Handler/Handler.d.ts +1 -1
  224. package/es/extensions/forms/Form/Handler/Handler.js +3 -1
  225. package/es/extensions/forms/Form/Handler/Handler.js.map +1 -1
  226. package/es/extensions/forms/Form/Isolation/Isolation.d.ts +26 -5
  227. package/es/extensions/forms/Form/Isolation/Isolation.js +67 -27
  228. package/es/extensions/forms/Form/Isolation/Isolation.js.map +1 -1
  229. package/es/extensions/forms/Form/Isolation/IsolationCommitButton.js +1 -0
  230. package/es/extensions/forms/Form/Isolation/IsolationCommitButton.js.map +1 -1
  231. package/es/extensions/forms/Form/Isolation/IsolationDocs.js +11 -1
  232. package/es/extensions/forms/Form/Isolation/IsolationDocs.js.map +1 -1
  233. package/es/extensions/forms/Form/Section/Section.js +2 -2
  234. package/es/extensions/forms/Form/Section/Section.js.map +1 -1
  235. package/es/extensions/forms/Form/data-context/clearData.d.ts +1 -0
  236. package/es/extensions/forms/Form/data-context/clearData.js +10 -0
  237. package/es/extensions/forms/Form/data-context/clearData.js.map +1 -0
  238. package/es/extensions/forms/Form/index.d.ts +1 -0
  239. package/es/extensions/forms/Form/index.js +1 -0
  240. package/es/extensions/forms/Form/index.js.map +1 -1
  241. package/es/extensions/forms/Iterate/Array/Array.js.map +1 -1
  242. package/es/extensions/forms/Iterate/Array/types.d.ts +1 -4
  243. package/es/extensions/forms/Iterate/Array/types.js.map +1 -1
  244. package/es/extensions/forms/Iterate/style/dnb-iterate.css +1 -1
  245. package/es/extensions/forms/Iterate/style/dnb-iterate.min.css +1 -1
  246. package/es/extensions/forms/Iterate/style/dnb-iterate.scss +1 -1
  247. package/es/extensions/forms/constants/locales/en-GB.d.ts +4 -0
  248. package/es/extensions/forms/constants/locales/en-GB.js +4 -0
  249. package/es/extensions/forms/constants/locales/en-GB.js.map +1 -1
  250. package/es/extensions/forms/constants/locales/en-US.d.ts +4 -0
  251. package/es/extensions/forms/constants/locales/index.d.ts +8 -0
  252. package/es/extensions/forms/constants/locales/nb-NO.d.ts +4 -0
  253. package/es/extensions/forms/constants/locales/nb-NO.js +4 -0
  254. package/es/extensions/forms/constants/locales/nb-NO.js.map +1 -1
  255. package/es/extensions/forms/hooks/DataValueDocs.js +4 -4
  256. package/es/extensions/forms/hooks/DataValueDocs.js.map +1 -1
  257. package/es/extensions/forms/hooks/useDataValue.d.ts +1 -0
  258. package/es/extensions/forms/hooks/useDataValue.js +18 -9
  259. package/es/extensions/forms/hooks/useDataValue.js.map +1 -1
  260. package/es/extensions/forms/hooks/useFieldProps.d.ts +5 -5
  261. package/es/extensions/forms/hooks/useFieldProps.js +39 -23
  262. package/es/extensions/forms/hooks/useFieldProps.js.map +1 -1
  263. package/es/extensions/forms/style/dnb-forms.css +1 -1
  264. package/es/extensions/forms/style/dnb-forms.min.css +1 -1
  265. package/es/extensions/forms/types.d.ts +16 -7
  266. package/es/extensions/forms/types.js.map +1 -1
  267. package/es/shared/Eufemia.d.ts +1 -1
  268. package/es/shared/Eufemia.js +2 -2
  269. package/es/shared/Eufemia.js.map +1 -1
  270. package/es/shared/helpers/isAsync.js +2 -2
  271. package/es/shared/helpers/isAsync.js.map +1 -1
  272. package/es/style/core/scopes.scss +1 -1
  273. package/es/style/dnb-ui-basis.css +1 -1
  274. package/es/style/dnb-ui-basis.min.css +1 -1
  275. package/es/style/dnb-ui-body.css +1 -1
  276. package/es/style/dnb-ui-body.min.css +1 -1
  277. package/es/style/dnb-ui-components.css +1 -1
  278. package/es/style/dnb-ui-components.min.css +1 -1
  279. package/es/style/dnb-ui-core.css +1 -1
  280. package/es/style/dnb-ui-core.min.css +1 -1
  281. package/es/style/dnb-ui-extensions.css +1 -1
  282. package/es/style/dnb-ui-extensions.min.css +1 -1
  283. package/es/style/dnb-ui-forms.css +1 -1
  284. package/es/style/dnb-ui-forms.min.css +1 -1
  285. package/es/style/themes/theme-eiendom/eiendom-theme-components.css +2 -2
  286. package/es/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
  287. package/es/style/themes/theme-eiendom/eiendom-theme-extensions.css +1 -1
  288. package/es/style/themes/theme-eiendom/eiendom-theme-extensions.min.css +1 -1
  289. package/es/style/themes/theme-eiendom/eiendom-theme-forms.css +1 -1
  290. package/es/style/themes/theme-eiendom/eiendom-theme-forms.min.css +1 -1
  291. package/es/style/themes/theme-sbanken/sbanken-theme-components.css +2 -2
  292. package/es/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
  293. package/es/style/themes/theme-sbanken/sbanken-theme-extensions.css +1 -1
  294. package/es/style/themes/theme-sbanken/sbanken-theme-extensions.min.css +1 -1
  295. package/es/style/themes/theme-sbanken/sbanken-theme-forms.css +1 -1
  296. package/es/style/themes/theme-sbanken/sbanken-theme-forms.min.css +1 -1
  297. package/es/style/themes/theme-ui/ui-theme-components.css +2 -2
  298. package/es/style/themes/theme-ui/ui-theme-components.min.css +1 -1
  299. package/es/style/themes/theme-ui/ui-theme-extensions.css +1 -1
  300. package/es/style/themes/theme-ui/ui-theme-extensions.min.css +1 -1
  301. package/es/style/themes/theme-ui/ui-theme-forms.css +1 -1
  302. package/es/style/themes/theme-ui/ui-theme-forms.min.css +1 -1
  303. package/esm/dnb-ui-basis.min.mjs +1 -1
  304. package/esm/dnb-ui-components.min.mjs +1 -1
  305. package/esm/dnb-ui-elements.min.mjs +1 -1
  306. package/esm/dnb-ui-extensions.min.mjs +3 -3
  307. package/esm/dnb-ui-lib.min.mjs +1 -1
  308. package/extensions/forms/DataContext/Context.d.ts +1 -0
  309. package/extensions/forms/DataContext/Context.js.map +1 -1
  310. package/extensions/forms/DataContext/Provider/Provider.d.ts +5 -12
  311. package/extensions/forms/DataContext/Provider/Provider.js +41 -18
  312. package/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
  313. package/extensions/forms/DataContext/Provider/ProviderDocs.js +6 -1
  314. package/extensions/forms/DataContext/Provider/ProviderDocs.js.map +1 -1
  315. package/extensions/forms/Field/Currency/CurrencyDocs.d.ts +2 -0
  316. package/extensions/forms/Field/Currency/CurrencyDocs.js +22 -0
  317. package/extensions/forms/Field/Currency/CurrencyDocs.js.map +1 -0
  318. package/extensions/forms/Field/Expiry/Expiry.d.ts +1 -1
  319. package/extensions/forms/Field/Expiry/Expiry.js.map +1 -1
  320. package/extensions/forms/Field/FieldDocs.d.ts +7 -0
  321. package/extensions/forms/Field/FieldDocs.js +18 -0
  322. package/extensions/forms/Field/FieldDocs.js.map +1 -1
  323. package/extensions/forms/Field/Number/Number.js +7 -12
  324. package/extensions/forms/Field/Number/Number.js.map +1 -1
  325. package/extensions/forms/Field/Option/Option.d.ts +2 -4
  326. package/extensions/forms/Field/Option/Option.js +0 -20
  327. package/extensions/forms/Field/Option/Option.js.map +1 -1
  328. package/extensions/forms/Field/PhoneNumber/PhoneNumber.d.ts +5 -2
  329. package/extensions/forms/Field/PhoneNumber/PhoneNumber.js +33 -15
  330. package/extensions/forms/Field/PhoneNumber/PhoneNumber.js.map +1 -1
  331. package/extensions/forms/Field/PhoneNumber/PhoneNumberDocs.d.ts +3 -0
  332. package/extensions/forms/Field/PhoneNumber/PhoneNumberDocs.js +20 -0
  333. package/extensions/forms/Field/PhoneNumber/PhoneNumberDocs.js.map +1 -0
  334. package/extensions/forms/Field/SelectCountry/SelectCountry.d.ts +2 -2
  335. package/extensions/forms/Field/SelectCountry/SelectCountry.js +32 -16
  336. package/extensions/forms/Field/SelectCountry/SelectCountry.js.map +1 -1
  337. package/extensions/forms/Field/SelectCountry/SelectCountryDocs.d.ts +1 -0
  338. package/extensions/forms/Field/SelectCountry/SelectCountryDocs.js +9 -0
  339. package/extensions/forms/Field/SelectCountry/SelectCountryDocs.js.map +1 -0
  340. package/extensions/forms/Field/Selection/Selection.d.ts +40 -16
  341. package/extensions/forms/Field/Selection/Selection.js +70 -15
  342. package/extensions/forms/Field/Selection/Selection.js.map +1 -1
  343. package/extensions/forms/Field/Selection/SelectionDocs.js +10 -0
  344. package/extensions/forms/Field/Selection/SelectionDocs.js.map +1 -1
  345. package/extensions/forms/Field/Toggle/Toggle.js +1 -1
  346. package/extensions/forms/Field/Toggle/Toggle.js.map +1 -1
  347. package/extensions/forms/Form/Handler/Handler.d.ts +1 -1
  348. package/extensions/forms/Form/Handler/Handler.js +3 -1
  349. package/extensions/forms/Form/Handler/Handler.js.map +1 -1
  350. package/extensions/forms/Form/Isolation/Isolation.d.ts +26 -5
  351. package/extensions/forms/Form/Isolation/Isolation.js +67 -27
  352. package/extensions/forms/Form/Isolation/Isolation.js.map +1 -1
  353. package/extensions/forms/Form/Isolation/IsolationCommitButton.js +1 -0
  354. package/extensions/forms/Form/Isolation/IsolationCommitButton.js.map +1 -1
  355. package/extensions/forms/Form/Isolation/IsolationDocs.js +11 -1
  356. package/extensions/forms/Form/Isolation/IsolationDocs.js.map +1 -1
  357. package/extensions/forms/Form/Section/Section.js +2 -2
  358. package/extensions/forms/Form/Section/Section.js.map +1 -1
  359. package/extensions/forms/Form/data-context/clearData.d.ts +1 -0
  360. package/extensions/forms/Form/data-context/clearData.js +10 -0
  361. package/extensions/forms/Form/data-context/clearData.js.map +1 -0
  362. package/extensions/forms/Form/index.d.ts +1 -0
  363. package/extensions/forms/Form/index.js +1 -0
  364. package/extensions/forms/Form/index.js.map +1 -1
  365. package/extensions/forms/Iterate/Array/Array.js.map +1 -1
  366. package/extensions/forms/Iterate/Array/types.d.ts +1 -4
  367. package/extensions/forms/Iterate/Array/types.js.map +1 -1
  368. package/extensions/forms/Iterate/style/dnb-iterate.css +1 -1
  369. package/extensions/forms/Iterate/style/dnb-iterate.min.css +1 -1
  370. package/extensions/forms/Iterate/style/dnb-iterate.scss +1 -1
  371. package/extensions/forms/constants/locales/en-GB.d.ts +4 -0
  372. package/extensions/forms/constants/locales/en-GB.js +4 -0
  373. package/extensions/forms/constants/locales/en-GB.js.map +1 -1
  374. package/extensions/forms/constants/locales/en-US.d.ts +4 -0
  375. package/extensions/forms/constants/locales/index.d.ts +8 -0
  376. package/extensions/forms/constants/locales/nb-NO.d.ts +4 -0
  377. package/extensions/forms/constants/locales/nb-NO.js +4 -0
  378. package/extensions/forms/constants/locales/nb-NO.js.map +1 -1
  379. package/extensions/forms/hooks/DataValueDocs.js +4 -4
  380. package/extensions/forms/hooks/DataValueDocs.js.map +1 -1
  381. package/extensions/forms/hooks/useDataValue.d.ts +1 -0
  382. package/extensions/forms/hooks/useDataValue.js +18 -9
  383. package/extensions/forms/hooks/useDataValue.js.map +1 -1
  384. package/extensions/forms/hooks/useFieldProps.d.ts +5 -5
  385. package/extensions/forms/hooks/useFieldProps.js +39 -23
  386. package/extensions/forms/hooks/useFieldProps.js.map +1 -1
  387. package/extensions/forms/style/dnb-forms.css +1 -1
  388. package/extensions/forms/style/dnb-forms.min.css +1 -1
  389. package/extensions/forms/types.d.ts +16 -7
  390. package/extensions/forms/types.js.map +1 -1
  391. package/package.json +1 -1
  392. package/shared/Eufemia.d.ts +1 -1
  393. package/shared/Eufemia.js +2 -2
  394. package/shared/Eufemia.js.map +1 -1
  395. package/shared/helpers/isAsync.js +2 -2
  396. package/shared/helpers/isAsync.js.map +1 -1
  397. package/style/core/scopes.scss +1 -1
  398. package/style/dnb-ui-basis.css +1 -1
  399. package/style/dnb-ui-basis.min.css +1 -1
  400. package/style/dnb-ui-body.css +1 -1
  401. package/style/dnb-ui-body.min.css +1 -1
  402. package/style/dnb-ui-components.css +1 -1
  403. package/style/dnb-ui-components.min.css +1 -1
  404. package/style/dnb-ui-core.css +1 -1
  405. package/style/dnb-ui-core.min.css +1 -1
  406. package/style/dnb-ui-extensions.css +1 -1
  407. package/style/dnb-ui-extensions.min.css +1 -1
  408. package/style/dnb-ui-forms.css +1 -1
  409. package/style/dnb-ui-forms.min.css +1 -1
  410. package/style/themes/theme-eiendom/eiendom-theme-components.css +2 -2
  411. package/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
  412. package/style/themes/theme-eiendom/eiendom-theme-extensions.css +1 -1
  413. package/style/themes/theme-eiendom/eiendom-theme-extensions.min.css +1 -1
  414. package/style/themes/theme-eiendom/eiendom-theme-forms.css +1 -1
  415. package/style/themes/theme-eiendom/eiendom-theme-forms.min.css +1 -1
  416. package/style/themes/theme-sbanken/sbanken-theme-components.css +2 -2
  417. package/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
  418. package/style/themes/theme-sbanken/sbanken-theme-extensions.css +1 -1
  419. package/style/themes/theme-sbanken/sbanken-theme-extensions.min.css +1 -1
  420. package/style/themes/theme-sbanken/sbanken-theme-forms.css +1 -1
  421. package/style/themes/theme-sbanken/sbanken-theme-forms.min.css +1 -1
  422. package/style/themes/theme-ui/ui-theme-components.css +2 -2
  423. package/style/themes/theme-ui/ui-theme-components.min.css +1 -1
  424. package/style/themes/theme-ui/ui-theme-extensions.css +1 -1
  425. package/style/themes/theme-ui/ui-theme-extensions.min.css +1 -1
  426. package/style/themes/theme-ui/ui-theme-forms.css +1 -1
  427. package/style/themes/theme-ui/ui-theme-forms.min.css +1 -1
  428. package/umd/dnb-ui-basis.min.js +1 -1
  429. package/umd/dnb-ui-components.min.js +1 -1
  430. package/umd/dnb-ui-elements.min.js +1 -1
  431. package/umd/dnb-ui-extensions.min.js +3 -3
  432. package/umd/dnb-ui-lib.min.js +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["FormError","Error","constructor","message","options","_defineProperty","key","exports","dataValueReadProps","pickDataValueReadProps","props","Object","fromEntries","entries","filter","_ref","includes","omitDataValueReadProps","_ref2","dataValueWriteProps","pickDataValueWriteProps","_ref3","omitDataValueWriteProps","_ref4","pickDataValueReadWriteProps","_ref5","omitDataValueReadWriteProps","_ref6"],"sources":["../../../../src/extensions/forms/types.ts"],"sourcesContent":["import type { SpacingProps } from '../../components/space/types'\nimport type { JSONSchema4, JSONSchema6, JSONSchema7 } from 'json-schema'\nimport type { JSONSchemaType } from 'ajv/dist/2020'\nimport { JsonObject } from 'json-pointer'\nimport { AriaAttributes } from 'react'\n\nexport type * from 'json-schema'\nexport type JSONSchema = JSONSchema7\nexport type AllJSONSchemaVersionsBasis<DataType> =\n | JSONSchema4\n | JSONSchema6\n | JSONSchema7\n | JSONSchemaType<DataType>\nexport type AllJSONSchemaVersions<DataType = unknown> =\n | AllJSONSchemaVersionsBasis<DataType>\n\n // In order to support \"schema = { ... } as const\"\n | (Omit<AllJSONSchemaVersionsBasis<DataType>, 'required'> & {\n required?: readonly string[]\n })\nexport { JSONSchemaType }\n\ntype ValidationRule = 'type' | 'pattern' | 'required' | string\ntype MessageValues = Record<string, string>\n\ninterface IFormErrorOptions {\n validationRule?: ValidationRule\n messageValues?: MessageValues\n}\n\n/**\n * Standard error object for Eufemia Forms, extending the built-in error with additional information for data handling\n */\nexport class FormError extends Error {\n /**\n * What validation rule did the error occur based on? (i.e: minLength, required or maximum)\n */\n validationRule?: ValidationRule\n\n /**\n * Replacement values relevant for this error.\n * @example { minLength: 3 } to be able to replace values in a message like \"Minimum {minLength} characters\"\n */\n messageValues?: MessageValues\n\n constructor(message: string, options?: IFormErrorOptions) {\n super(message)\n\n if (options) {\n for (const key in options) {\n this[key] = options[key]\n }\n }\n }\n}\n\n/**\n * Accept any key, so custom message keys can be used\n */\nexport type CustomErrorMessages = Record<string, string>\n\n/**\n * Accept any key, so custom message keys can be used\n * including the path to the field the message is for\n */\nexport type CustomErrorMessagesWithPaths =\n | CustomErrorMessages\n | {\n // eslint-disable-next-line no-unused-vars\n [K in `/${string}`]?: CustomErrorMessages\n }\n\nexport interface DefaultErrorMessages {\n required?: string\n pattern?: string\n}\n\nexport interface DataValueReadProps<Value = unknown> {\n /** JSON Pointer for where the data for this field is located in the source dataset */\n path?: Path\n /** JSON Pointer for where the data for this field is located in the source iterate loop element */\n itemPath?: Path\n /** Source data value for the field. Will take precedence over the path value given in the data context */\n value?: Value\n /** Default source data value for the field. Will not take precedence over the path value given in the data context */\n defaultValue?: Value\n}\n\nconst dataValueReadProps = ['path', 'itemPath', 'value']\n\nexport function pickDataValueReadProps<Props extends DataValueReadProps>(\n props: Props\n): DataValueReadProps {\n return Object.fromEntries(\n Object.entries(props ?? {}).filter(([key]) =>\n dataValueReadProps.includes(key)\n )\n )\n}\n\nexport function omitDataValueReadProps<Props extends DataValueReadProps>(\n props: Props\n): Omit<DataValueReadProps, keyof DataValueReadProps> {\n return Object.fromEntries(\n Object.entries(props ?? {}).filter(\n ([key]) => !dataValueReadProps.includes(key)\n )\n )\n}\n\nexport interface DataValueWriteProps<\n Value = unknown,\n EmptyValue = undefined | unknown,\n> {\n emptyValue?: EmptyValue\n onFocus?: (value: Value | EmptyValue) => void\n onBlur?: (value: Value | EmptyValue) => void\n onChange?: OnChangeValue<Value, EmptyValue>\n}\n\nconst dataValueWriteProps = ['emptyValue', 'onFocus', 'onBlur', 'onChange']\n\nexport function pickDataValueWriteProps<Props extends DataValueWriteProps>(\n props: Props\n): DataValueWriteProps {\n return Object.fromEntries(\n Object.entries(props ?? {}).filter(([key]) =>\n dataValueWriteProps.includes(key)\n )\n )\n}\n\nexport function omitDataValueWriteProps<Props extends DataValueWriteProps>(\n props: Props\n): Omit<DataValueWriteProps, keyof DataValueWriteProps> {\n return Object.fromEntries(\n Object.entries(props ?? {}).filter(\n ([key]) => !dataValueWriteProps.includes(key)\n )\n )\n}\n\nexport type DataValueReadWriteProps<\n Value = unknown,\n EmptyValue = undefined | unknown,\n> = DataValueReadProps<Value> & DataValueWriteProps<Value, EmptyValue>\n\nexport function pickDataValueReadWriteProps<\n Props extends DataValueReadWriteProps,\n>(props: Props): DataValueReadWriteProps {\n return Object.fromEntries(\n Object.entries(props ?? {}).filter(\n ([key]) =>\n dataValueReadProps.includes(key) ||\n dataValueWriteProps.includes(key)\n )\n )\n}\n\nexport function omitDataValueReadWriteProps<\n Props extends DataValueReadWriteProps,\n>(\n props: Props\n): Omit<DataValueReadWriteProps, keyof DataValueReadWriteProps> {\n return Object.fromEntries(\n Object.entries(props ?? {}).filter(\n ([key]) =>\n !dataValueReadProps.includes(key) &&\n !dataValueWriteProps.includes(key)\n )\n )\n}\n\nexport type ComponentProps = SpacingProps & {\n className?: string\n}\n\nexport type AdditionalEventArgs = Record<string, unknown>\n\nexport type DataValueReadComponentProps<Value = unknown> = ComponentProps &\n DataValueReadProps<Value>\n\nexport type DataValueReadWriteComponentProps<\n Value = unknown,\n EmptyValue = undefined | unknown,\n> = ComponentProps &\n DataValueReadProps<Value> &\n DataValueWriteProps<Value, EmptyValue>\n\nexport type FieldBlockProps = {\n /**\n * The layout of the field block\n */\n layout?: 'horizontal' | 'vertical'\n /**\n * Main label text for the field\n */\n label?: React.ReactNode\n /**\n * A more discreet text displayed beside the label\n */\n labelDescription?: React.ReactNode\n /**\n * Text showing in place of the value if no value is given\n */\n placeholder?: React.ReactNode\n}\n\n/**\n * The width of a field block\n */\nexport type FieldBlockWidth =\n | false\n | 'small'\n | 'medium'\n | 'large'\n | 'stretch'\n\nexport interface UseFieldProps<\n Value = unknown,\n EmptyValue = undefined | unknown,\n ErrorMessages extends DefaultErrorMessages = DefaultErrorMessages,\n> extends DataValueReadWriteComponentProps<Value, EmptyValue>,\n AriaAttributes {\n // - HTML Element Attributes\n /**\n * ID added to the actual field component, and linked to the label via for-attribute\n */\n id?: Identifier\n name?: string\n disabled?: boolean\n readOnly?: boolean\n autoComplete?:\n | HTMLInputElement['autocomplete']\n | HTMLTextAreaElement['autocomplete']\n\n /**\n * NB: Undocumented for now.\n * Forwards all possible props to the underlying component.\n */\n htmlAttributes?: Record<string, unknown>\n\n /**\n * NB: Undocumented for now.\n * Forwards all given props in a props object.\n */\n props?: Record<string, unknown>\n\n // - Used by useFieldProps and FieldBlock\n info?: React.ReactNode\n warning?: React.ReactNode\n error?: Error | FormError\n\n // - Validation\n required?: boolean\n schema?: AllJSONSchemaVersions<Value>\n validator?: (\n value: Value | EmptyValue,\n errorMessages?: ErrorMessages\n ) => Error | undefined | void | Promise<Error | undefined | void>\n onBlurValidator?: (\n value: Value | EmptyValue\n ) => Error | undefined | void | Promise<Error | undefined | void>\n validateRequired?: (\n internal: Value,\n {\n emptyValue,\n required,\n isChanged,\n error,\n }: {\n emptyValue: EmptyValue\n required: boolean\n isChanged: boolean\n error: FormError | undefined\n }\n ) => FormError | undefined\n /**\n * Should error messages based on validation be shown initially (from given value-prop or source data)\n * before the user interacts with the field?\n * @default false\n */\n validateInitially?: boolean\n /**\n * Should error messages be shown when touching (like focusing a field and blurring) without having changed\n * the value? So the user did not introduce a new error, but it was invalid based on validation initially.\n */\n validateUnchanged?: boolean\n /**\n * Should validation be done while writing, not just when blurring the field?\n */\n continuousValidation?: boolean\n /**\n * Provide custom error messages for the field\n */\n errorMessages?: ErrorMessages\n\n // - Derivatives\n\n /**\n * Transforms the `value` before its displayed in the field (e.g. input).\n * Public API. Should not be used internally.\n */\n transformIn?: (external: Value | unknown) => Value | unknown\n\n /**\n * Transforms the value before it gets forwarded to the form data object or returned as the onChange value parameter.\n * Public API. Should not be used internally.\n */\n transformOut?: (internal: Value | unknown) => Value\n\n /**\n * Transforms the value given by `handleChange` after `fromInput` and before `updateValue` and `toEvent`. The second parameter returns the current value.\n */\n transformValue?: (value: Value, currentValue?: Value) => Value\n\n /**\n * Transforms the value before it gets returned as the `value`.\n */\n toInput?: (external: Value | unknown) => Value | unknown\n\n /**\n * Transforms the internal value before it gets returned by even callbacks such as `onChange`, `onFocus` and `onBlur`. The second parameter returns the event type: `onChange`, `onFocus`, `onBlur` or `onBlurValidator`.\n */\n toEvent?: (\n internal: Value,\n type: 'onChange' | 'onFocus' | 'onBlur' | 'onBlurValidator'\n ) => Value\n\n /**\n * Transforms the value given by `handleChange` before it is used in the further process flow. Use it to destruct the value from the original event object.\n */\n fromInput?: (external: Value | unknown) => Value\n\n /**\n * Transforms the given props `value` before any other step gets entered.\n */\n fromExternal?: (external: Value) => Value\n\n /**\n * For internal use only.\n */\n valueType?: string | number | boolean | Array<string | number | boolean>\n}\n\nexport type FieldProps<\n Value = unknown,\n EmptyValue = undefined | unknown,\n ErrorMessages extends DefaultErrorMessages = DefaultErrorMessages,\n> = UseFieldProps<Value, EmptyValue, ErrorMessages> & FieldBlockProps\n\nexport interface FieldHelpProps {\n help?: {\n title?: string\n content?: React.ReactNode\n }\n}\n\nexport interface ValueProps<Value = unknown>\n extends DataValueReadComponentProps<Value> {\n /**\n * Field label to show above the data value.\n */\n label?: React.ReactNode\n\n /**\n * Shows the value even if it is empty.\n */\n showEmpty?: boolean\n\n /**\n * Text showing in place of the value if no value is given.\n */\n placeholder?: React.ReactNode\n\n /**\n * For showing the value inline (not as a block element)\n */\n inline?: boolean\n\n /** The max-width of a value block. Defaults to large */\n maxWidth?: 'small' | 'medium' | 'large' | 'auto'\n\n /**\n * Transforms the `value` before its displayed in the field (e.g. input).\n * Public API. Should not be used internally.\n */\n transformIn?: (external: Value | unknown) => Value | unknown\n\n /**\n * Transforms the value before it gets returned as the `value`.\n */\n toInput?: (external: Value | unknown) => Value | unknown\n\n /**\n * Transforms the given props `value` before any other step gets entered.\n */\n fromExternal?: (external: Value) => Value\n}\n\nexport type Path = string\nexport type Identifier = string\n\nexport type SubmitState =\n | 'pending' // Used for async operations\n | 'complete' // Used to hide the submit indicator\n | 'success' // Used for fields\n | 'error' // Used when error is shown\n | 'abort' // Used to abort the state regardless (step change)\n\n/**\n * Provide a error that shows in the FormStatus of a field.\n */\ntype EventStateObjectError = Error\n/**\n * Provide a warning that shows in the FormStatus of a field.\n */\ntype EventStateObjectWarning = React.ReactNode\n/**\n * Provide an info that shows in the FormStatus of a field.\n */\ntype EventStateObjectInfo = React.ReactNode\n\n/**\n * Provide a status that will enforce the form to stay in pending state\n */\ntype EventStateObjectStatus = 'pending'\n\n/**\n * Provide a success state that will show an indicator on the related field label\n */\ntype EventStateObjectSuccess = 'saved'\n\n/**\n * Provide an error or status messages that shows in the FormStatus of a field\n */\nexport type EventStateObjectOr = {\n error?: EventStateObjectError\n warning?: EventStateObjectWarning\n info?: EventStateObjectInfo\n pending?: EventStateObjectStatus\n}\n\nexport type EventStateObjectEitherOr =\n | { error: EventStateObjectError }\n | { warning: EventStateObjectWarning }\n | { info: EventStateObjectInfo }\n | { status: EventStateObjectStatus }\n\nexport type EventStateObject = EventStateObjectOr &\n EventStateObjectEitherOr\n\n/**\n * Provide 'saved' to indicate the data has been saved successfully. Can not be combined with `error`.\n */\nexport type EventStateObjectWithSuccess = EventStateObjectOr & {\n success?: EventStateObjectSuccess\n} & (EventStateObjectEitherOr | { success: EventStateObjectSuccess })\n\n/**\n * Provide an error or status messages that shows in the FormStatus of a field\n */\nexport type EventReturnWithStateObject = Error | EventStateObject\n\nexport type EventReturnWithStateObjectAndSuccess =\n | Error\n | EventStateObjectWithSuccess\n\nexport type OnSubmitParams = {\n /** Will remove browser-side stored autocomplete data */\n resetForm: () => void\n\n /** Will empty the whole internal data set of the form */\n clearData: () => void\n}\n\nexport type OnSubmit<Data = JsonObject> = (\n data: Data,\n { resetForm, clearData }: OnSubmitParams\n) =>\n | EventReturnWithStateObject\n | void\n | Promise<EventReturnWithStateObject | void>\n\nexport type OnCommit<Data = JsonObject> = (\n data: Data\n) =>\n | EventReturnWithStateObject\n | void\n | Promise<EventReturnWithStateObject | void>\n\nexport type OnChange<Data = unknown> = (\n data: Data\n) =>\n | EventReturnWithStateObjectAndSuccess\n | void\n | Promise<EventReturnWithStateObjectAndSuccess | void>\n\nexport type OnChangeValue<\n Value = unknown,\n EmptyValue = undefined | unknown,\n> = (\n value: Value | EmptyValue,\n additionalArgs?: AdditionalEventArgs\n) =>\n | EventReturnWithStateObjectAndSuccess\n | void\n | Promise<EventReturnWithStateObjectAndSuccess | void>\n"],"mappings":"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"}
1
+ {"version":3,"file":"types.js","names":["FormError","Error","constructor","message","options","_defineProperty","key","exports","dataValueReadProps","pickDataValueReadProps","props","Object","fromEntries","entries","filter","_ref","includes","omitDataValueReadProps","_ref2","dataValueWriteProps","pickDataValueWriteProps","_ref3","omitDataValueWriteProps","_ref4","pickDataValueReadWriteProps","_ref5","omitDataValueReadWriteProps","_ref6"],"sources":["../../../../src/extensions/forms/types.ts"],"sourcesContent":["import type { SpacingProps } from '../../components/space/types'\nimport type { JSONSchema4, JSONSchema6, JSONSchema7 } from 'json-schema'\nimport type { JSONSchemaType } from 'ajv/dist/2020'\nimport { JsonObject } from 'json-pointer'\nimport { AriaAttributes } from 'react'\n\nexport type * from 'json-schema'\nexport type JSONSchema = JSONSchema7\nexport type AllJSONSchemaVersionsBasis<DataType> =\n | JSONSchema4\n | JSONSchema6\n | JSONSchema7\n | JSONSchemaType<DataType>\nexport type AllJSONSchemaVersions<DataType = unknown> =\n | AllJSONSchemaVersionsBasis<DataType>\n\n // In order to support \"schema = { ... } as const\"\n | (Omit<AllJSONSchemaVersionsBasis<DataType>, 'required'> & {\n required?: readonly string[]\n })\nexport { JSONSchemaType }\n\ntype ValidationRule = 'type' | 'pattern' | 'required' | string\ntype MessageValues = Record<string, string>\n\ninterface IFormErrorOptions {\n validationRule?: ValidationRule\n messageValues?: MessageValues\n}\n\n/**\n * Standard error object for Eufemia Forms, extending the built-in error with additional information for data handling\n */\nexport class FormError extends Error {\n /**\n * What validation rule did the error occur based on? (i.e: minLength, required or maximum)\n */\n validationRule?: ValidationRule\n\n /**\n * Replacement values relevant for this error.\n * @example { minLength: 3 } to be able to replace values in a message like \"Minimum {minLength} characters\"\n */\n messageValues?: MessageValues\n\n constructor(message: string, options?: IFormErrorOptions) {\n super(message)\n\n if (options) {\n for (const key in options) {\n this[key] = options[key]\n }\n }\n }\n}\n\n/**\n * Accept any key, so custom message keys can be used\n */\nexport type CustomErrorMessages = Record<string, string>\n\n/**\n * Accept any key, so custom message keys can be used\n * including the path to the field the message is for\n */\nexport type CustomErrorMessagesWithPaths =\n | CustomErrorMessages\n | {\n // eslint-disable-next-line no-unused-vars\n [K in `/${string}`]?: CustomErrorMessages\n }\n\nexport interface DefaultErrorMessages {\n required?: string\n pattern?: string\n}\n\nexport interface DataValueReadProps<Value = unknown> {\n /** JSON Pointer for where the data for this field is located in the source dataset */\n path?: Path\n /** JSON Pointer for where the data for this field is located in the source iterate loop element */\n itemPath?: Path\n /** Source data value for the field. Will take precedence over the path value given in the data context */\n value?: Value\n /** Default source data value for the field. Will not take precedence over the path value given in the data context */\n defaultValue?: Value\n}\n\nconst dataValueReadProps = ['path', 'itemPath', 'value']\n\nexport function pickDataValueReadProps<Props extends DataValueReadProps>(\n props: Props\n): DataValueReadProps {\n return Object.fromEntries(\n Object.entries(props ?? {}).filter(([key]) =>\n dataValueReadProps.includes(key)\n )\n )\n}\n\nexport function omitDataValueReadProps<Props extends DataValueReadProps>(\n props: Props\n): Omit<DataValueReadProps, keyof DataValueReadProps> {\n return Object.fromEntries(\n Object.entries(props ?? {}).filter(\n ([key]) => !dataValueReadProps.includes(key)\n )\n )\n}\n\ntype EventArgs<\n Value,\n ExtraValue extends AdditionalEventArgs,\n> = ExtraValue extends undefined\n ? [value: Value]\n : [value: Value, additionalArgs?: ExtraValue]\n\nexport interface DataValueWriteProps<\n Value = unknown,\n EmptyValue = undefined | unknown,\n ExtraValue extends AdditionalEventArgs = undefined,\n> {\n emptyValue?: EmptyValue\n onFocus?: (...args: EventArgs<Value | EmptyValue, ExtraValue>) => void\n onBlur?: (...args: EventArgs<Value | EmptyValue, ExtraValue>) => void\n onChange?: (\n ...args: EventArgs<Value | EmptyValue, ExtraValue>\n ) => OnChangeReturnType\n}\n\nconst dataValueWriteProps = ['emptyValue', 'onFocus', 'onBlur', 'onChange']\n\nexport function pickDataValueWriteProps<Props extends DataValueWriteProps>(\n props: Props\n): DataValueWriteProps {\n return Object.fromEntries(\n Object.entries(props ?? {}).filter(([key]) =>\n dataValueWriteProps.includes(key)\n )\n )\n}\n\nexport function omitDataValueWriteProps<Props extends DataValueWriteProps>(\n props: Props\n): Omit<DataValueWriteProps, keyof DataValueWriteProps> {\n return Object.fromEntries(\n Object.entries(props ?? {}).filter(\n ([key]) => !dataValueWriteProps.includes(key)\n )\n )\n}\n\nexport type DataValueReadWriteProps<\n Value = unknown,\n EmptyValue = undefined | unknown,\n> = DataValueReadProps<Value> & DataValueWriteProps<Value, EmptyValue>\n\nexport function pickDataValueReadWriteProps<\n Props extends DataValueReadWriteProps,\n>(props: Props): DataValueReadWriteProps {\n return Object.fromEntries(\n Object.entries(props ?? {}).filter(\n ([key]) =>\n dataValueReadProps.includes(key) ||\n dataValueWriteProps.includes(key)\n )\n )\n}\n\nexport function omitDataValueReadWriteProps<\n Props extends DataValueReadWriteProps,\n>(\n props: Props\n): Omit<DataValueReadWriteProps, keyof DataValueReadWriteProps> {\n return Object.fromEntries(\n Object.entries(props ?? {}).filter(\n ([key]) =>\n !dataValueReadProps.includes(key) &&\n !dataValueWriteProps.includes(key)\n )\n )\n}\n\nexport type ComponentProps = SpacingProps & {\n className?: string\n}\n\nexport type AdditionalEventArgs = Record<string, unknown>\n\nexport type DataValueReadComponentProps<Value = unknown> = ComponentProps &\n DataValueReadProps<Value>\n\nexport type DataValueReadWriteComponentProps<\n Value = unknown,\n EmptyValue = undefined | unknown,\n> = ComponentProps &\n DataValueReadProps<Value> &\n DataValueWriteProps<Value, EmptyValue>\n\nexport type FieldBlockProps = {\n /**\n * The layout of the field block\n */\n layout?: 'horizontal' | 'vertical'\n /**\n * Main label text for the field\n */\n label?: React.ReactNode\n /**\n * A more discreet text displayed beside the label\n */\n labelDescription?: React.ReactNode\n /**\n * Text showing in place of the value if no value is given\n */\n placeholder?: React.ReactNode\n}\n\n/**\n * The width of a field block\n */\nexport type FieldBlockWidth =\n | false\n | 'small'\n | 'medium'\n | 'large'\n | 'stretch'\n\nexport interface UseFieldProps<\n Value = unknown,\n EmptyValue = undefined | unknown,\n ErrorMessages extends DefaultErrorMessages = DefaultErrorMessages,\n> extends DataValueReadWriteComponentProps<Value, EmptyValue>,\n AriaAttributes {\n // - HTML Element Attributes\n /**\n * ID added to the actual field component, and linked to the label via for-attribute\n */\n id?: Identifier\n name?: string\n disabled?: boolean\n readOnly?: boolean\n autoComplete?:\n | HTMLInputElement['autocomplete']\n | HTMLTextAreaElement['autocomplete']\n\n /**\n * NB: Undocumented for now.\n * Forwards all possible props to the underlying component.\n */\n htmlAttributes?: Record<string, unknown>\n\n /**\n * NB: Undocumented for now.\n * Forwards all given props in a props object.\n */\n props?: Record<string, unknown>\n\n // - Used by useFieldProps and FieldBlock\n info?: React.ReactNode\n warning?: React.ReactNode\n error?: Error | FormError\n\n // - Validation\n required?: boolean\n schema?: AllJSONSchemaVersions<Value>\n validator?: (\n value: Value | EmptyValue,\n errorMessages?: ErrorMessages\n ) => Error | undefined | void | Promise<Error | undefined | void>\n onBlurValidator?: (\n value: Value | EmptyValue\n ) => Error | undefined | void | Promise<Error | undefined | void>\n validateRequired?: (\n internal: Value,\n {\n emptyValue,\n required,\n isChanged,\n error,\n }: {\n emptyValue: EmptyValue\n required: boolean\n isChanged: boolean\n error: FormError | undefined\n }\n ) => FormError | undefined\n /**\n * Should error messages based on validation be shown initially (from given value-prop or source data)\n * before the user interacts with the field?\n * @default false\n */\n validateInitially?: boolean\n /**\n * Should error messages be shown when touching (like focusing a field and blurring) without having changed\n * the value? So the user did not introduce a new error, but it was invalid based on validation initially.\n */\n validateUnchanged?: boolean\n /**\n * Should validation be done while writing, not just when blurring the field?\n */\n continuousValidation?: boolean\n /**\n * Provide custom error messages for the field\n */\n errorMessages?: ErrorMessages\n\n // - Derivatives\n\n /**\n * Transforms the `value` before its displayed in the field (e.g. input).\n * Public API. Should not be used internally.\n */\n transformIn?: (external: Value | unknown) => Value | unknown\n\n /**\n * Transforms the value before it gets forwarded to the form data object or returned as the onChange value parameter.\n * Public API. Should not be used internally.\n */\n transformOut?: (internal: Value | unknown) => Value\n\n /**\n * Transforms the value given by `handleChange` after `fromInput` and before `updateValue` and `toEvent`. The second parameter returns the current value.\n */\n transformValue?: (value: Value, currentValue?: Value) => Value\n\n /**\n * Transform additionalArgs or generate it based on value after `toEvent` and before callbacks such as `onChange`, `onFocus` and `onBlur`.\n */\n transformAdditionalArgs?: (\n additionalArgs: AdditionalEventArgs,\n internal: Value\n ) => AdditionalEventArgs\n\n /**\n * Transforms the value before it gets returned as the `value`.\n */\n toInput?: (external: Value | unknown) => Value | unknown\n\n /**\n * Transforms the internal value before it gets returned by even callbacks such as `onChange`, `onFocus` and `onBlur`. The second parameter returns the event type: `onChange`, `onFocus`, `onBlur` or `onBlurValidator`.\n */\n toEvent?: (\n internal: Value,\n type: 'onChange' | 'onFocus' | 'onBlur' | 'onBlurValidator'\n ) => Value\n\n /**\n * Transforms the value given by `handleChange` before it is used in the further process flow. Use it to destruct the value from the original event object.\n */\n fromInput?: (external: Value | unknown) => Value\n\n /**\n * Transforms the given props `value` before any other step gets entered.\n */\n fromExternal?: (external: Value) => Value\n\n /**\n * For internal use only.\n */\n valueType?: string | number | boolean | Array<string | number | boolean>\n}\n\nexport type FieldProps<\n Value = unknown,\n EmptyValue = undefined | unknown,\n ErrorMessages extends DefaultErrorMessages = DefaultErrorMessages,\n> = UseFieldProps<Value, EmptyValue, ErrorMessages> & FieldBlockProps\n\nexport type FieldPropsGeneric<\n Value = unknown,\n EmptyValue = undefined | unknown,\n ErrorMessages extends DefaultErrorMessages = DefaultErrorMessages,\n> = Omit<\n FieldProps<Value, EmptyValue, ErrorMessages>,\n keyof DataValueWriteProps\n> &\n DataValueWriteProps<Value, EmptyValue, AdditionalEventArgs>\n\nexport type FieldPropsWithExtraValue<\n Value = unknown,\n ExtraValue extends AdditionalEventArgs = AdditionalEventArgs,\n EmptyValue = undefined | unknown,\n ErrorMessages extends DefaultErrorMessages = DefaultErrorMessages,\n> = Omit<\n FieldProps<Value, EmptyValue, ErrorMessages>,\n keyof DataValueWriteProps\n> &\n DataValueWriteProps<Value, EmptyValue, ExtraValue>\n\nexport interface FieldHelpProps {\n help?: {\n title?: string\n content?: React.ReactNode\n }\n}\n\nexport interface ValueProps<Value = unknown>\n extends DataValueReadComponentProps<Value> {\n /**\n * Field label to show above the data value.\n */\n label?: React.ReactNode\n\n /**\n * Shows the value even if it is empty.\n */\n showEmpty?: boolean\n\n /**\n * Text showing in place of the value if no value is given.\n */\n placeholder?: React.ReactNode\n\n /**\n * For showing the value inline (not as a block element)\n */\n inline?: boolean\n\n /** The max-width of a value block. Defaults to large */\n maxWidth?: 'small' | 'medium' | 'large' | 'auto'\n\n /**\n * Transforms the `value` before its displayed in the field (e.g. input).\n * Public API. Should not be used internally.\n */\n transformIn?: (external: Value | unknown) => Value | unknown\n\n /**\n * Transforms the value before it gets returned as the `value`.\n */\n toInput?: (external: Value | unknown) => Value | unknown\n\n /**\n * Transforms the given props `value` before any other step gets entered.\n */\n fromExternal?: (external: Value) => Value\n}\n\nexport type Path = string\nexport type Identifier = string\n\nexport type SubmitState =\n | 'pending' // Used for async operations\n | 'complete' // Used to hide the submit indicator\n | 'success' // Used for fields\n | 'error' // Used when error is shown\n | 'abort' // Used to abort the state regardless (step change)\n\n/**\n * Provide a error that shows in the FormStatus of a field.\n */\ntype EventStateObjectError = Error\n/**\n * Provide a warning that shows in the FormStatus of a field.\n */\ntype EventStateObjectWarning = React.ReactNode\n/**\n * Provide an info that shows in the FormStatus of a field.\n */\ntype EventStateObjectInfo = React.ReactNode\n\n/**\n * Provide a status that will enforce the form to stay in pending state\n */\ntype EventStateObjectStatus = 'pending'\n\n/**\n * Provide a success state that will show an indicator on the related field label\n */\ntype EventStateObjectSuccess = 'saved'\n\n/**\n * Provide an error or status messages that shows in the FormStatus of a field\n */\nexport type EventStateObjectOr = {\n error?: EventStateObjectError\n warning?: EventStateObjectWarning\n info?: EventStateObjectInfo\n pending?: EventStateObjectStatus\n}\n\nexport type EventStateObjectEitherOr =\n | { error: EventStateObjectError }\n | { warning: EventStateObjectWarning }\n | { info: EventStateObjectInfo }\n | { status: EventStateObjectStatus }\n\nexport type EventStateObject = EventStateObjectOr &\n EventStateObjectEitherOr\n\n/**\n * Provide 'saved' to indicate the data has been saved successfully. Can not be combined with `error`.\n */\nexport type EventStateObjectWithSuccess = EventStateObjectOr & {\n success?: EventStateObjectSuccess\n} & (EventStateObjectEitherOr | { success: EventStateObjectSuccess })\n\n/**\n * Provide an error or status messages that shows in the FormStatus of a field\n */\nexport type EventReturnWithStateObject = Error | EventStateObject\n\nexport type EventReturnWithStateObjectAndSuccess =\n | Error\n | EventStateObjectWithSuccess\n\nexport type OnSubmitParams = {\n /** Will remove browser-side stored autocomplete data */\n resetForm: () => void\n\n /** Will empty the whole internal data set of the form */\n clearData: () => void\n}\n\nexport type OnSubmit<Data = JsonObject> = (\n data: Data,\n { resetForm, clearData }: OnSubmitParams\n) =>\n | EventReturnWithStateObject\n | void\n | Promise<EventReturnWithStateObject | void>\n\nexport type OnCommit<Data = JsonObject> = (\n data: Data,\n { clearData }: { clearData: () => void }\n) =>\n | EventReturnWithStateObject\n | void\n | Promise<EventReturnWithStateObject | void>\n\nexport type OnChange<Data = unknown> = (data: Data) => OnChangeReturnType\n\ntype OnChangeReturnType =\n | EventReturnWithStateObjectAndSuccess\n | void\n | Promise<EventReturnWithStateObjectAndSuccess | void>\n"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- export declare const version = "10.43.0";
1
+ export declare const version = "10.44.0";
2
2
  export declare function init(): void;
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.init = init;
7
7
  exports.version = void 0;
8
- const version = '10.43.0';
8
+ const version = '10.44.0';
9
9
  exports.version = version;
10
10
  function init() {
11
11
  if (typeof window !== 'undefined') {
12
12
  class Eufemia {
13
13
  get version() {
14
- return '10.43.0';
14
+ return '10.44.0';
15
15
  }
16
16
  }
17
17
  window.Eufemia = new Eufemia();
@@ -1 +1 @@
1
- {"version":3,"file":"Eufemia.js","names":["version","exports","init","window","Eufemia"],"sources":["../../../src/shared/Eufemia.ts"],"sourcesContent":["export const version = '10.43.0'\n\nexport function init() {\n if (typeof window !== 'undefined') {\n class Eufemia {\n get version() {\n return '10.43.0'\n }\n }\n\n window.Eufemia = new Eufemia()\n }\n}\n"],"mappings":";;;;;;;AAAO,MAAMA,OAAO,GAAG,SAAS;AAAAC,OAAA,CAAAD,OAAA,GAAAA,OAAA;AAEzB,SAASE,IAAIA,CAAA,EAAG;EACrB,IAAI,OAAOC,MAAM,KAAK,WAAW,EAAE;IACjC,MAAMC,OAAO,CAAC;MACZ,IAAIJ,OAAOA,CAAA,EAAG;QACZ,OAAO,SAAS;MAClB;IACF;IAEAG,MAAM,CAACC,OAAO,GAAG,IAAIA,OAAO,CAAC,CAAC;EAChC;AACF"}
1
+ {"version":3,"file":"Eufemia.js","names":["version","exports","init","window","Eufemia"],"sources":["../../../src/shared/Eufemia.ts"],"sourcesContent":["export const version = '10.44.0'\n\nexport function init() {\n if (typeof window !== 'undefined') {\n class Eufemia {\n get version() {\n return '10.44.0'\n }\n }\n\n window.Eufemia = new Eufemia()\n }\n}\n"],"mappings":";;;;;;;AAAO,MAAMA,OAAO,GAAG,SAAS;AAAAC,OAAA,CAAAD,OAAA,GAAAA,OAAA;AAEzB,SAASE,IAAIA,CAAA,EAAG;EACrB,IAAI,OAAOC,MAAM,KAAK,WAAW,EAAE;IACjC,MAAMC,OAAO,CAAC;MACZ,IAAIJ,OAAOA,CAAA,EAAG;QACZ,OAAO,SAAS;MAClB;IACF;IAEAG,MAAM,CAACC,OAAO,GAAG,IAAIA,OAAO,CAAC,CAAC;EAChC;AACF"}
@@ -15,8 +15,8 @@ function isAsync(fn) {
15
15
  if (firstCheck !== secondCheck) {
16
16
  return true;
17
17
  }
18
- const isAsyncFunctionBabelTranspiled = (_fn3 = fn) === null || _fn3 === void 0 ? void 0 : (_fn3$toString = _fn3.toString()) === null || _fn3$toString === void 0 ? void 0 : (_fn3$toString$trim = _fn3$toString.trim()) === null || _fn3$toString$trim === void 0 ? void 0 : _fn3$toString$trim.match(/return _ref[^\.]*\.apply/);
19
- if (!!isAsyncFunctionBabelTranspiled) {
18
+ const isAsyncFunctionBabelTranspiled = (_fn3 = fn) === null || _fn3 === void 0 ? void 0 : (_fn3$toString = _fn3.toString()) === null || _fn3$toString === void 0 ? void 0 : (_fn3$toString$trim = _fn3$toString.trim()) === null || _fn3$toString$trim === void 0 ? void 0 : _fn3$toString$trim.match(/return _ref[^.]*\.apply/);
19
+ if (isAsyncFunctionBabelTranspiled) {
20
20
  return true;
21
21
  }
22
22
  return firstCheck;
@@ -1 +1 @@
1
- {"version":3,"file":"isAsync.js","names":["isAsync","fn","_fn","_fn$n","_fn2","_fn2$constructor","_fn3","_fn3$toString","_fn3$toString$trim","n","call","firstCheck","constructor","secondCheck","name","isAsyncFunctionBabelTranspiled","toString","trim","match"],"sources":["../../../../src/shared/helpers/isAsync.ts"],"sourcesContent":["/**\n * Checks if a function is asynchronous.\n *\n * @param fn - The function to check.\n * @returns `true` if the function is asynchronous, `false` otherwise.\n */\nexport function isAsync(fn: unknown): boolean {\n // Support for jest.fn\n const n = 'getMockImplementation'\n if (fn?.[n]?.()) {\n fn = fn[n]()\n }\n\n const firstCheck = fn instanceof (async () => null).constructor\n const secondCheck = fn?.constructor?.name === 'AsyncFunction'\n\n if (firstCheck !== secondCheck) {\n // Storybook has a problem with async functions.\n // E.g. \"fn?.constructor?.name === 'AsyncFunction'\" logic returns always \"Function\" instead of \"AsyncFunction\"\n // Even this \"Object.prototype.toString.call(fn) === '[object AsyncFunction]'\" logic returns always \"false\" in Storybook.\n // The issue persists with \"instanceof\" logic, where it returns \"true\" for non-async functions.\n // As of now, we rather want to return true in that situation.\n return true\n }\n\n // is async function transpiled using @babel/plugin-transform-async-to-generator\n const isAsyncFunctionBabelTranspiled = fn\n ?.toString()\n ?.trim()\n ?.match(/return _ref[^\\.]*\\.apply/) //eslint-disable-line\n\n if (!!isAsyncFunctionBabelTranspiled) {\n return true\n }\n return firstCheck\n}\n"],"mappings":";;;;;;AAMO,SAASA,OAAOA,CAACC,EAAW,EAAW;EAAA,IAAAC,GAAA,EAAAC,KAAA,EAAAC,IAAA,EAAAC,gBAAA,EAAAC,IAAA,EAAAC,aAAA,EAAAC,kBAAA;EAE5C,MAAMC,CAAC,GAAG,uBAAuB;EACjC,KAAAP,GAAA,GAAID,EAAE,cAAAC,GAAA,gBAAAC,KAAA,GAAFD,GAAA,CAAKO,CAAC,CAAC,cAAAN,KAAA,eAAPA,KAAA,CAAAO,IAAA,CAAAR,GAAU,CAAC,EAAE;IACfD,EAAE,GAAGA,EAAE,CAACQ,CAAC,CAAC,CAAC,CAAC;EACd;EAEA,MAAME,UAAU,GAAGV,EAAE,YAAY,CAAC,YAAY,IAAI,EAAEW,WAAW;EAC/D,MAAMC,WAAW,GAAG,EAAAT,IAAA,GAAAH,EAAE,cAAAG,IAAA,wBAAAC,gBAAA,GAAFD,IAAA,CAAIQ,WAAW,cAAAP,gBAAA,uBAAfA,gBAAA,CAAiBS,IAAI,MAAK,eAAe;EAE7D,IAAIH,UAAU,KAAKE,WAAW,EAAE;IAM9B,OAAO,IAAI;EACb;EAGA,MAAME,8BAA8B,IAAAT,IAAA,GAAGL,EAAE,cAAAK,IAAA,wBAAAC,aAAA,GAAFD,IAAA,CACnCU,QAAQ,CAAC,CAAC,cAAAT,aAAA,wBAAAC,kBAAA,GADyBD,aAAA,CAEnCU,IAAI,CAAC,CAAC,cAAAT,kBAAA,uBAF6BA,kBAAA,CAGnCU,KAAK,CAAC,0BAA0B,CAAC;EAErC,IAAI,CAAC,CAACH,8BAA8B,EAAE;IACpC,OAAO,IAAI;EACb;EACA,OAAOJ,UAAU;AACnB"}
1
+ {"version":3,"file":"isAsync.js","names":["isAsync","fn","_fn","_fn$n","_fn2","_fn2$constructor","_fn3","_fn3$toString","_fn3$toString$trim","n","call","firstCheck","constructor","secondCheck","name","isAsyncFunctionBabelTranspiled","toString","trim","match"],"sources":["../../../../src/shared/helpers/isAsync.ts"],"sourcesContent":["/**\n * Checks if a function is asynchronous.\n *\n * @param fn - The function to check.\n * @returns `true` if the function is asynchronous, `false` otherwise.\n */\nexport function isAsync(fn: unknown): boolean {\n // Support for jest.fn\n const n = 'getMockImplementation'\n if (fn?.[n]?.()) {\n fn = fn[n]()\n }\n\n const firstCheck = fn instanceof (async () => null).constructor\n const secondCheck = fn?.constructor?.name === 'AsyncFunction'\n\n if (firstCheck !== secondCheck) {\n // Storybook has a problem with async functions.\n // E.g. \"fn?.constructor?.name === 'AsyncFunction'\" logic returns always \"Function\" instead of \"AsyncFunction\"\n // Even this \"Object.prototype.toString.call(fn) === '[object AsyncFunction]'\" logic returns always \"false\" in Storybook.\n // The issue persists with \"instanceof\" logic, where it returns \"true\" for non-async functions.\n // As of now, we rather want to return true in that situation.\n return true\n }\n\n // is async function transpiled using @babel/plugin-transform-async-to-generator\n const isAsyncFunctionBabelTranspiled = fn\n ?.toString()\n ?.trim()\n ?.match(/return _ref[^.]*\\.apply/)\n\n if (isAsyncFunctionBabelTranspiled) {\n return true\n }\n return firstCheck\n}\n"],"mappings":";;;;;;AAMO,SAASA,OAAOA,CAACC,EAAW,EAAW;EAAA,IAAAC,GAAA,EAAAC,KAAA,EAAAC,IAAA,EAAAC,gBAAA,EAAAC,IAAA,EAAAC,aAAA,EAAAC,kBAAA;EAE5C,MAAMC,CAAC,GAAG,uBAAuB;EACjC,KAAAP,GAAA,GAAID,EAAE,cAAAC,GAAA,gBAAAC,KAAA,GAAFD,GAAA,CAAKO,CAAC,CAAC,cAAAN,KAAA,eAAPA,KAAA,CAAAO,IAAA,CAAAR,GAAU,CAAC,EAAE;IACfD,EAAE,GAAGA,EAAE,CAACQ,CAAC,CAAC,CAAC,CAAC;EACd;EAEA,MAAME,UAAU,GAAGV,EAAE,YAAY,CAAC,YAAY,IAAI,EAAEW,WAAW;EAC/D,MAAMC,WAAW,GAAG,EAAAT,IAAA,GAAAH,EAAE,cAAAG,IAAA,wBAAAC,gBAAA,GAAFD,IAAA,CAAIQ,WAAW,cAAAP,gBAAA,uBAAfA,gBAAA,CAAiBS,IAAI,MAAK,eAAe;EAE7D,IAAIH,UAAU,KAAKE,WAAW,EAAE;IAM9B,OAAO,IAAI;EACb;EAGA,MAAME,8BAA8B,IAAAT,IAAA,GAAGL,EAAE,cAAAK,IAAA,wBAAAC,aAAA,GAAFD,IAAA,CACnCU,QAAQ,CAAC,CAAC,cAAAT,aAAA,wBAAAC,kBAAA,GADyBD,aAAA,CAEnCU,IAAI,CAAC,CAAC,cAAAT,kBAAA,uBAF6BA,kBAAA,CAGnCU,KAAK,CAAC,yBAAyB,CAAC;EAEpC,IAAIH,8BAA8B,EAAE;IAClC,OAAO,IAAI;EACb;EACA,OAAOJ,UAAU;AACnB"}
@@ -45,7 +45,7 @@
45
45
  word-break: break-word;
46
46
 
47
47
  // Will add this to the body tag – later we can test for a version mismatch
48
- --eufemia-version: '10.43.0';
48
+ --eufemia-version: '10.44.0';
49
49
 
50
50
  @content;
51
51
  }
@@ -251,7 +251,7 @@ body {
251
251
  /* stylelint-disable-next-line */
252
252
  -webkit-text-size-adjust: 100%;
253
253
  word-break: break-word;
254
- --eufemia-version: "10.43.0";
254
+ --eufemia-version: "10.44.0";
255
255
  }
256
256
  .dnb-core-style *,
257
257
  .dnb-core-style ::before,
@@ -1 +1 @@
1
- @charset "UTF-8";html{font-size:100%}html:not([data-visual-test]){scroll-behavior:smooth}@supports (-webkit-touch-callout:none){@supports (font:-apple-system-body){html{font:-apple-system-body}}}html[xmlns="http://www.w3.org/1999/xhtml"] a:hover{-webkit-text-decoration:none;text-decoration:none}html[xmlns="http://www.w3.org/1999/xhtml"] .dnb-anchor--active{color:var(--color-mint-green)!important}html[xmlns="http://www.w3.org/1999/xhtml"] .dnb-anchor--contrast:not(:hover){color:var(--color-white)!important}html[xmlns="http://www.w3.org/1999/xhtml"] a.dnb-button--primary{color:var(--color-white)}html[xmlns="http://www.w3.org/1999/xhtml"] ul{list-style:initial}html[xmlns="http://www.w3.org/1999/xhtml"] p{background-color:initial;overflow:initial;text-align:inherit}html[xmlns="http://www.w3.org/1999/xhtml"] i{font-style:italic}html[xmlns="http://www.w3.org/1999/xhtml"] #column_left,html[xmlns="http://www.w3.org/1999/xhtml"] #root{width:100%}html[xmlns="http://www.w3.org/1999/xhtml"] body#dnbLayoutDefault #wrapper,html[xmlns="http://www.w3.org/1999/xhtml"] body#dnbLayoutDefaultStartPage #wrapper{max-width:60rem;width:100%}html[xmlns="http://www.w3.org/1999/xhtml"] #column_content{box-shadow:none}body{margin:0}.dnb-core-style{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;--eufemia-version:"10.43.0";color:var(--theme-color-body,var(--color-black-80,#333));font-family:var(--font-family-default);font-size:var(--font-size-small);font-style:normal;font-weight:var(--font-weight-basis);line-height:var(--line-height-basis);tab-size:4;-moz-tab-size:4;word-break:break-word}.dnb-core-style *,.dnb-core-style :after,.dnb-core-style :before{background-repeat:no-repeat;box-sizing:border-box}.dnb-core-style :after,.dnb-core-style :before{text-decoration:inherit;vertical-align:inherit}.dnb-core-style hr{height:0;overflow:visible}.dnb-core-style main{display:block}.dnb-core-style nav ol,.dnb-core-style nav ul{list-style:none}.dnb-core-style abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.dnb-core-style b,.dnb-core-style strong{font-weight:bolder}.dnb-core-style code,.dnb-core-style kbd,.dnb-core-style pre,.dnb-core-style samp{font-family:var(--font-family-monospace)}.dnb-core-style ::selection{background-color:#b3d4fc;color:#000;text-shadow:none}.dnb-core-style audio,.dnb-core-style canvas,.dnb-core-style iframe,.dnb-core-style img,.dnb-core-style svg,.dnb-core-style video{vertical-align:middle}.dnb-core-style audio,.dnb-core-style video{display:inline-block}.dnb-core-style audio:not([controls]){display:none;height:0}.dnb-core-style img{border-style:none}.dnb-core-style svg:not([fill]){fill:currentcolor}.dnb-core-style svg:not(:root){overflow:hidden}.dnb-core-style table{border-collapse:collapse}.dnb-core-style button,.dnb-core-style input,.dnb-core-style select,.dnb-core-style textarea{font-family:inherit;font-size:inherit;line-height:inherit}.dnb-core-style button,.dnb-core-style figure,.dnb-core-style input,.dnb-core-style select{margin:0}.dnb-core-style button{overflow:visible;text-transform:none}.dnb-core-style fieldset{padding:.35rem .75rem .625rem}.dnb-core-style input{overflow:visible;word-break:normal}.dnb-core-style legend{color:inherit;display:table;max-width:100%;white-space:normal}.dnb-core-style progress{display:inline-block;vertical-align:baseline}.dnb-core-style select{text-transform:none}.dnb-core-style textarea{overflow:auto;resize:vertical}.dnb-core-style [type=checkbox],.dnb-core-style [type=radio]{padding:0}.dnb-core-style input[type=search]{-webkit-appearance:textfield;appearance:textfield;outline-offset:-2px}.dnb-core-style ::-webkit-inner-spin-button,.dnb-core-style ::-webkit-outer-spin-button{height:auto}.dnb-core-style ::input-placeholder{color:inherit;opacity:.54}.dnb-core-style ::-webkit-search-decoration{-webkit-appearance:none;appearance:none}.dnb-core-style ::-webkit-file-upload-button{background-color:transparent;border:none;font:inherit}.dnb-core-style ::-moz-focus-inner{border-style:none;padding:0}.dnb-core-style details{display:block}.dnb-core-style summary{display:list-item}.dnb-core-style canvas{display:inline-block}.dnb-core-style template{display:none}.dnb-core-style [tabindex],.dnb-core-style a,.dnb-core-style area,.dnb-core-style button,.dnb-core-style input,.dnb-core-style label,.dnb-core-style select,.dnb-core-style summary,.dnb-core-style textarea{touch-action:manipulation}.dnb-core-style [hidden]{display:none}.dnb-core-style [aria-busy=true]{cursor:progress}.dnb-core-style [aria-controls]:not(input){cursor:pointer}.dnb-core-style [aria-disabled=true],.dnb-core-style [disabled]{cursor:not-allowed}.dnb-core-style [aria-hidden=false][hidden]:not(:focus){clip:rect(0,0,0,0);display:inherit;position:absolute}@media print{.dnb-core-style{background-color:#fff;color:#000}}.dnb-core-style .eufemia-theme{color:var(--theme-color-body,var(--color-black-80,#333));font-family:var(--font-family-default);font-size:var(--font-size-small);font-style:normal;font-weight:var(--font-weight-basis);line-height:var(--line-height-basis)}.dnb-no-focus,.dnb-tab-focus,.dnb-tab-focus:focus{outline:none}html[data-whatinput=keyboard] .dnb-tab-focus:focus{--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-mouse-focus,.dnb-mouse-focus:focus{outline:none}html[data-whatinput=mouse] .dnb-mouse-focus:focus{box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-focus-ring,html[data-whatinput=mouse] .dnb-mouse-focus:focus{--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);border-color:transparent}.dnb-focus-ring{box-shadow:0 0 0 var(--border-width) var(--border-color)!important}.dnb-scrollbar-appearance{-webkit-overflow-scrolling:touch;-ms-overflow-style:auto;scrollbar-color:var(--scrollbar-thumb-color,#888) transparent}@supports not (scrollbar-color:auto){.dnb-scrollbar-appearance::-webkit-scrollbar{background-color:var(--scrollbar-track-color,#eee);border-radius:var(--scrollbar-thumb-width,.5rem)}.dnb-scrollbar-appearance::-webkit-scrollbar:vertical{width:var(--scrollbar-track-width,.5rem)}.dnb-scrollbar-appearance::-webkit-scrollbar:horizontal{height:var(--scrollbar-track-width,.5rem)}.dnb-scrollbar-appearance::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color,#888);border-radius:var(--scrollbar-thumb-width,.5rem)}.dnb-scrollbar-appearance::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover-color,#666)}}.dnb-skip-link{opacity:.3;position:absolute;top:-100vh;transition:opacity .3s ease-out;z-index:0}.dnb-skip-link--active,.dnb-skip-link:focus{background-color:transparent;border:none;border-radius:0;box-shadow:none;color:var(--skip-link-color);font-size:var(--font-size-basis);left:40%;margin:0;outline:none;padding:.5rem 1rem;position:fixed;text-align:center;-webkit-text-decoration:none;text-decoration:none;top:5%;user-select:none;-webkit-user-select:none;white-space:nowrap;z-index:9999}.dnb-skip-link--active:after,.dnb-skip-link:focus:after{background-color:hsla(0,0%,100%,.85);box-shadow:150vw 150vh 0 0 hsla(0,0%,100%,.85);content:"";height:150vh;left:-200vw;position:absolute;top:-200vh;width:150vw;z-index:-2}.dnb-skip-link--active:before,.dnb-skip-link:focus:before{background-color:var(--skip-link-background);border-radius:1.5rem;content:"";height:100%;left:0;outline:none;position:absolute;top:0;width:100%;z-index:-1}html[data-whatinput=mouse] .dnb-skip-link--active:before,html[data-whatinput=mouse] .dnb-skip-link:focus:before{--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-skip-link--active:hover:before,.dnb-skip-link:focus:hover:before{background-color:var(--skip-link-background--hover)}.dnb-skip-link--active:active:before,.dnb-skip-link:focus:active:before{background-color:var(--skip-link-background--active)}.dnb-skip-link--active:focus:not(:active):before,.dnb-skip-link:focus:focus:not(:active):before{outline:none}html[data-whatinput=keyboard] .dnb-skip-link--active:focus:not(:active):before,html[data-whatinput=keyboard] .dnb-skip-link:focus:focus:not(:active):before{--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-skip-link--active:focus,.dnb-skip-link:focus:focus{opacity:1}.dnb-skip-link--active:hover,.dnb-skip-link:focus:hover{background-color:transparent;box-shadow:none;color:var(--skip-link-color--hover)}.dnb-skip-link--active:focus:not(:hover):not(:active),.dnb-skip-link:focus:focus:not(:hover):not(:active){background-color:transparent;box-shadow:none;color:var(--skip-link-color)}.dnb-skip-link--active:active,.dnb-skip-link:focus:active{background-color:transparent;color:var(--skip-link-color--active)}html[data-whatintent=touch] .dnb-skip-link{display:none}.dnb-alignment-helper,.dnb-alignment-helper:before{speak:none;display:inline-block;font-size:var(--font-size-small);height:0;width:0}.dnb-alignment-helper:before{content:"‌"}.dnb-drop-shadow{box-shadow:var(--shadow-default)}.dnb-sr-only{-webkit-touch-callout:none!important;border:0!important;clip-path:inset(50%)!important;margin:0!important;max-height:1px!important;max-width:1px!important;overflow:hidden!important;padding:0!important;pointer-events:none!important;position:absolute!important;-webkit-user-select:none!important;user-select:none!important;white-space:nowrap!important}.dnb-suffix{font-size:var(--font-size-basis);line-height:var(--line-height-basis);padding-left:.5rem;word-break:normal}
1
+ @charset "UTF-8";html{font-size:100%}html:not([data-visual-test]){scroll-behavior:smooth}@supports (-webkit-touch-callout:none){@supports (font:-apple-system-body){html{font:-apple-system-body}}}html[xmlns="http://www.w3.org/1999/xhtml"] a:hover{-webkit-text-decoration:none;text-decoration:none}html[xmlns="http://www.w3.org/1999/xhtml"] .dnb-anchor--active{color:var(--color-mint-green)!important}html[xmlns="http://www.w3.org/1999/xhtml"] .dnb-anchor--contrast:not(:hover){color:var(--color-white)!important}html[xmlns="http://www.w3.org/1999/xhtml"] a.dnb-button--primary{color:var(--color-white)}html[xmlns="http://www.w3.org/1999/xhtml"] ul{list-style:initial}html[xmlns="http://www.w3.org/1999/xhtml"] p{background-color:initial;overflow:initial;text-align:inherit}html[xmlns="http://www.w3.org/1999/xhtml"] i{font-style:italic}html[xmlns="http://www.w3.org/1999/xhtml"] #column_left,html[xmlns="http://www.w3.org/1999/xhtml"] #root{width:100%}html[xmlns="http://www.w3.org/1999/xhtml"] body#dnbLayoutDefault #wrapper,html[xmlns="http://www.w3.org/1999/xhtml"] body#dnbLayoutDefaultStartPage #wrapper{max-width:60rem;width:100%}html[xmlns="http://www.w3.org/1999/xhtml"] #column_content{box-shadow:none}body{margin:0}.dnb-core-style{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;--eufemia-version:"10.44.0";color:var(--theme-color-body,var(--color-black-80,#333));font-family:var(--font-family-default);font-size:var(--font-size-small);font-style:normal;font-weight:var(--font-weight-basis);line-height:var(--line-height-basis);tab-size:4;-moz-tab-size:4;word-break:break-word}.dnb-core-style *,.dnb-core-style :after,.dnb-core-style :before{background-repeat:no-repeat;box-sizing:border-box}.dnb-core-style :after,.dnb-core-style :before{text-decoration:inherit;vertical-align:inherit}.dnb-core-style hr{height:0;overflow:visible}.dnb-core-style main{display:block}.dnb-core-style nav ol,.dnb-core-style nav ul{list-style:none}.dnb-core-style abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.dnb-core-style b,.dnb-core-style strong{font-weight:bolder}.dnb-core-style code,.dnb-core-style kbd,.dnb-core-style pre,.dnb-core-style samp{font-family:var(--font-family-monospace)}.dnb-core-style ::selection{background-color:#b3d4fc;color:#000;text-shadow:none}.dnb-core-style audio,.dnb-core-style canvas,.dnb-core-style iframe,.dnb-core-style img,.dnb-core-style svg,.dnb-core-style video{vertical-align:middle}.dnb-core-style audio,.dnb-core-style video{display:inline-block}.dnb-core-style audio:not([controls]){display:none;height:0}.dnb-core-style img{border-style:none}.dnb-core-style svg:not([fill]){fill:currentcolor}.dnb-core-style svg:not(:root){overflow:hidden}.dnb-core-style table{border-collapse:collapse}.dnb-core-style button,.dnb-core-style input,.dnb-core-style select,.dnb-core-style textarea{font-family:inherit;font-size:inherit;line-height:inherit}.dnb-core-style button,.dnb-core-style figure,.dnb-core-style input,.dnb-core-style select{margin:0}.dnb-core-style button{overflow:visible;text-transform:none}.dnb-core-style fieldset{padding:.35rem .75rem .625rem}.dnb-core-style input{overflow:visible;word-break:normal}.dnb-core-style legend{color:inherit;display:table;max-width:100%;white-space:normal}.dnb-core-style progress{display:inline-block;vertical-align:baseline}.dnb-core-style select{text-transform:none}.dnb-core-style textarea{overflow:auto;resize:vertical}.dnb-core-style [type=checkbox],.dnb-core-style [type=radio]{padding:0}.dnb-core-style input[type=search]{-webkit-appearance:textfield;appearance:textfield;outline-offset:-2px}.dnb-core-style ::-webkit-inner-spin-button,.dnb-core-style ::-webkit-outer-spin-button{height:auto}.dnb-core-style ::input-placeholder{color:inherit;opacity:.54}.dnb-core-style ::-webkit-search-decoration{-webkit-appearance:none;appearance:none}.dnb-core-style ::-webkit-file-upload-button{background-color:transparent;border:none;font:inherit}.dnb-core-style ::-moz-focus-inner{border-style:none;padding:0}.dnb-core-style details{display:block}.dnb-core-style summary{display:list-item}.dnb-core-style canvas{display:inline-block}.dnb-core-style template{display:none}.dnb-core-style [tabindex],.dnb-core-style a,.dnb-core-style area,.dnb-core-style button,.dnb-core-style input,.dnb-core-style label,.dnb-core-style select,.dnb-core-style summary,.dnb-core-style textarea{touch-action:manipulation}.dnb-core-style [hidden]{display:none}.dnb-core-style [aria-busy=true]{cursor:progress}.dnb-core-style [aria-controls]:not(input){cursor:pointer}.dnb-core-style [aria-disabled=true],.dnb-core-style [disabled]{cursor:not-allowed}.dnb-core-style [aria-hidden=false][hidden]:not(:focus){clip:rect(0,0,0,0);display:inherit;position:absolute}@media print{.dnb-core-style{background-color:#fff;color:#000}}.dnb-core-style .eufemia-theme{color:var(--theme-color-body,var(--color-black-80,#333));font-family:var(--font-family-default);font-size:var(--font-size-small);font-style:normal;font-weight:var(--font-weight-basis);line-height:var(--line-height-basis)}.dnb-no-focus,.dnb-tab-focus,.dnb-tab-focus:focus{outline:none}html[data-whatinput=keyboard] .dnb-tab-focus:focus{--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-mouse-focus,.dnb-mouse-focus:focus{outline:none}html[data-whatinput=mouse] .dnb-mouse-focus:focus{box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-focus-ring,html[data-whatinput=mouse] .dnb-mouse-focus:focus{--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);border-color:transparent}.dnb-focus-ring{box-shadow:0 0 0 var(--border-width) var(--border-color)!important}.dnb-scrollbar-appearance{-webkit-overflow-scrolling:touch;-ms-overflow-style:auto;scrollbar-color:var(--scrollbar-thumb-color,#888) transparent}@supports not (scrollbar-color:auto){.dnb-scrollbar-appearance::-webkit-scrollbar{background-color:var(--scrollbar-track-color,#eee);border-radius:var(--scrollbar-thumb-width,.5rem)}.dnb-scrollbar-appearance::-webkit-scrollbar:vertical{width:var(--scrollbar-track-width,.5rem)}.dnb-scrollbar-appearance::-webkit-scrollbar:horizontal{height:var(--scrollbar-track-width,.5rem)}.dnb-scrollbar-appearance::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color,#888);border-radius:var(--scrollbar-thumb-width,.5rem)}.dnb-scrollbar-appearance::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover-color,#666)}}.dnb-skip-link{opacity:.3;position:absolute;top:-100vh;transition:opacity .3s ease-out;z-index:0}.dnb-skip-link--active,.dnb-skip-link:focus{background-color:transparent;border:none;border-radius:0;box-shadow:none;color:var(--skip-link-color);font-size:var(--font-size-basis);left:40%;margin:0;outline:none;padding:.5rem 1rem;position:fixed;text-align:center;-webkit-text-decoration:none;text-decoration:none;top:5%;user-select:none;-webkit-user-select:none;white-space:nowrap;z-index:9999}.dnb-skip-link--active:after,.dnb-skip-link:focus:after{background-color:hsla(0,0%,100%,.85);box-shadow:150vw 150vh 0 0 hsla(0,0%,100%,.85);content:"";height:150vh;left:-200vw;position:absolute;top:-200vh;width:150vw;z-index:-2}.dnb-skip-link--active:before,.dnb-skip-link:focus:before{background-color:var(--skip-link-background);border-radius:1.5rem;content:"";height:100%;left:0;outline:none;position:absolute;top:0;width:100%;z-index:-1}html[data-whatinput=mouse] .dnb-skip-link--active:before,html[data-whatinput=mouse] .dnb-skip-link:focus:before{--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-skip-link--active:hover:before,.dnb-skip-link:focus:hover:before{background-color:var(--skip-link-background--hover)}.dnb-skip-link--active:active:before,.dnb-skip-link:focus:active:before{background-color:var(--skip-link-background--active)}.dnb-skip-link--active:focus:not(:active):before,.dnb-skip-link:focus:focus:not(:active):before{outline:none}html[data-whatinput=keyboard] .dnb-skip-link--active:focus:not(:active):before,html[data-whatinput=keyboard] .dnb-skip-link:focus:focus:not(:active):before{--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-skip-link--active:focus,.dnb-skip-link:focus:focus{opacity:1}.dnb-skip-link--active:hover,.dnb-skip-link:focus:hover{background-color:transparent;box-shadow:none;color:var(--skip-link-color--hover)}.dnb-skip-link--active:focus:not(:hover):not(:active),.dnb-skip-link:focus:focus:not(:hover):not(:active){background-color:transparent;box-shadow:none;color:var(--skip-link-color)}.dnb-skip-link--active:active,.dnb-skip-link:focus:active{background-color:transparent;color:var(--skip-link-color--active)}html[data-whatintent=touch] .dnb-skip-link{display:none}.dnb-alignment-helper,.dnb-alignment-helper:before{speak:none;display:inline-block;font-size:var(--font-size-small);height:0;width:0}.dnb-alignment-helper:before{content:"‌"}.dnb-drop-shadow{box-shadow:var(--shadow-default)}.dnb-sr-only{-webkit-touch-callout:none!important;border:0!important;clip-path:inset(50%)!important;margin:0!important;max-height:1px!important;max-width:1px!important;overflow:hidden!important;padding:0!important;pointer-events:none!important;position:absolute!important;-webkit-user-select:none!important;user-select:none!important;white-space:nowrap!important}.dnb-suffix{font-size:var(--font-size-basis);line-height:var(--line-height-basis);padding-left:.5rem;word-break:normal}
@@ -277,7 +277,7 @@ body {
277
277
  /* stylelint-disable-next-line */
278
278
  -webkit-text-size-adjust: 100%;
279
279
  word-break: break-word;
280
- --eufemia-version: "10.43.0";
280
+ --eufemia-version: "10.44.0";
281
281
  }
282
282
  body *,
283
283
  body ::before,
@@ -1 +1 @@
1
- html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;cursor:default;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:var(--line-height-basis);-moz-tab-size:4;tab-size:4;word-break:break-word}body{margin:0}html{font-size:100%}html:not([data-visual-test]){scroll-behavior:smooth}@supports (-webkit-touch-callout:none){@supports (font:-apple-system-body){html{font:-apple-system-body}}}html[xmlns="http://www.w3.org/1999/xhtml"] a:hover{-webkit-text-decoration:none;text-decoration:none}html[xmlns="http://www.w3.org/1999/xhtml"] .dnb-anchor--active{color:var(--color-mint-green)!important}html[xmlns="http://www.w3.org/1999/xhtml"] .dnb-anchor--contrast:not(:hover){color:var(--color-white)!important}html[xmlns="http://www.w3.org/1999/xhtml"] a.dnb-button--primary{color:var(--color-white)}html[xmlns="http://www.w3.org/1999/xhtml"] ul{list-style:initial}html[xmlns="http://www.w3.org/1999/xhtml"] p{background-color:initial;overflow:initial;text-align:inherit}html[xmlns="http://www.w3.org/1999/xhtml"] i{font-style:italic}html[xmlns="http://www.w3.org/1999/xhtml"] #column_left,html[xmlns="http://www.w3.org/1999/xhtml"] #root{width:100%}html[xmlns="http://www.w3.org/1999/xhtml"] body#dnbLayoutDefault #wrapper,html[xmlns="http://www.w3.org/1999/xhtml"] body#dnbLayoutDefaultStartPage #wrapper{max-width:60rem;width:100%}html[xmlns="http://www.w3.org/1999/xhtml"] #column_content{box-shadow:none}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;--eufemia-version:"10.43.0";color:var(--theme-color-body,var(--color-black-80,#333));font-family:var(--font-family-default);font-size:var(--font-size-small);font-style:normal;font-weight:var(--font-weight-basis);line-height:var(--line-height-basis);tab-size:4;-moz-tab-size:4;word-break:break-word}body *,body :after,body :before{background-repeat:no-repeat;box-sizing:border-box}body :after,body :before{text-decoration:inherit;vertical-align:inherit}body hr{height:0;overflow:visible}body main{display:block}body nav ol,body nav ul{list-style:none}body abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}body b,body strong{font-weight:bolder}body code,body kbd,body pre,body samp{font-family:var(--font-family-monospace)}body ::selection{background-color:#b3d4fc;color:#000;text-shadow:none}body audio,body canvas,body iframe,body img,body svg,body video{vertical-align:middle}body audio,body video{display:inline-block}body audio:not([controls]){display:none;height:0}body img{border-style:none}body svg:not([fill]){fill:currentcolor}body svg:not(:root){overflow:hidden}body table{border-collapse:collapse}body button,body input,body select,body textarea{font-family:inherit;font-size:inherit;line-height:inherit}body button,body figure,body input,body select{margin:0}body button{overflow:visible;text-transform:none}body fieldset{padding:.35rem .75rem .625rem}body input{overflow:visible;word-break:normal}body legend{color:inherit;display:table;max-width:100%;white-space:normal}body progress{display:inline-block;vertical-align:baseline}body select{text-transform:none}body textarea{overflow:auto;resize:vertical}body [type=checkbox],body [type=radio]{padding:0}body input[type=search]{-webkit-appearance:textfield;appearance:textfield;outline-offset:-2px}body ::-webkit-inner-spin-button,body ::-webkit-outer-spin-button{height:auto}body ::input-placeholder{color:inherit;opacity:.54}body ::-webkit-search-decoration{-webkit-appearance:none;appearance:none}body ::-webkit-file-upload-button{background-color:transparent;border:none;font:inherit}body ::-moz-focus-inner{border-style:none;padding:0}body details{display:block}body summary{display:list-item}body canvas{display:inline-block}body template{display:none}body [tabindex],body a,body area,body button,body input,body label,body select,body summary,body textarea{touch-action:manipulation}body [hidden]{display:none}body [aria-busy=true]{cursor:progress}body [aria-controls]:not(input){cursor:pointer}body [aria-disabled=true],body [disabled]{cursor:not-allowed}body [aria-hidden=false][hidden]:not(:focus){clip:rect(0,0,0,0);display:inherit;position:absolute}@media print{body{background-color:#fff;color:#000}}body .eufemia-theme{color:var(--theme-color-body,var(--color-black-80,#333));font-family:var(--font-family-default);font-size:var(--font-size-small);font-style:normal;font-weight:var(--font-weight-basis);line-height:var(--line-height-basis)}
1
+ html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;cursor:default;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:var(--line-height-basis);-moz-tab-size:4;tab-size:4;word-break:break-word}body{margin:0}html{font-size:100%}html:not([data-visual-test]){scroll-behavior:smooth}@supports (-webkit-touch-callout:none){@supports (font:-apple-system-body){html{font:-apple-system-body}}}html[xmlns="http://www.w3.org/1999/xhtml"] a:hover{-webkit-text-decoration:none;text-decoration:none}html[xmlns="http://www.w3.org/1999/xhtml"] .dnb-anchor--active{color:var(--color-mint-green)!important}html[xmlns="http://www.w3.org/1999/xhtml"] .dnb-anchor--contrast:not(:hover){color:var(--color-white)!important}html[xmlns="http://www.w3.org/1999/xhtml"] a.dnb-button--primary{color:var(--color-white)}html[xmlns="http://www.w3.org/1999/xhtml"] ul{list-style:initial}html[xmlns="http://www.w3.org/1999/xhtml"] p{background-color:initial;overflow:initial;text-align:inherit}html[xmlns="http://www.w3.org/1999/xhtml"] i{font-style:italic}html[xmlns="http://www.w3.org/1999/xhtml"] #column_left,html[xmlns="http://www.w3.org/1999/xhtml"] #root{width:100%}html[xmlns="http://www.w3.org/1999/xhtml"] body#dnbLayoutDefault #wrapper,html[xmlns="http://www.w3.org/1999/xhtml"] body#dnbLayoutDefaultStartPage #wrapper{max-width:60rem;width:100%}html[xmlns="http://www.w3.org/1999/xhtml"] #column_content{box-shadow:none}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;--eufemia-version:"10.44.0";color:var(--theme-color-body,var(--color-black-80,#333));font-family:var(--font-family-default);font-size:var(--font-size-small);font-style:normal;font-weight:var(--font-weight-basis);line-height:var(--line-height-basis);tab-size:4;-moz-tab-size:4;word-break:break-word}body *,body :after,body :before{background-repeat:no-repeat;box-sizing:border-box}body :after,body :before{text-decoration:inherit;vertical-align:inherit}body hr{height:0;overflow:visible}body main{display:block}body nav ol,body nav ul{list-style:none}body abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}body b,body strong{font-weight:bolder}body code,body kbd,body pre,body samp{font-family:var(--font-family-monospace)}body ::selection{background-color:#b3d4fc;color:#000;text-shadow:none}body audio,body canvas,body iframe,body img,body svg,body video{vertical-align:middle}body audio,body video{display:inline-block}body audio:not([controls]){display:none;height:0}body img{border-style:none}body svg:not([fill]){fill:currentcolor}body svg:not(:root){overflow:hidden}body table{border-collapse:collapse}body button,body input,body select,body textarea{font-family:inherit;font-size:inherit;line-height:inherit}body button,body figure,body input,body select{margin:0}body button{overflow:visible;text-transform:none}body fieldset{padding:.35rem .75rem .625rem}body input{overflow:visible;word-break:normal}body legend{color:inherit;display:table;max-width:100%;white-space:normal}body progress{display:inline-block;vertical-align:baseline}body select{text-transform:none}body textarea{overflow:auto;resize:vertical}body [type=checkbox],body [type=radio]{padding:0}body input[type=search]{-webkit-appearance:textfield;appearance:textfield;outline-offset:-2px}body ::-webkit-inner-spin-button,body ::-webkit-outer-spin-button{height:auto}body ::input-placeholder{color:inherit;opacity:.54}body ::-webkit-search-decoration{-webkit-appearance:none;appearance:none}body ::-webkit-file-upload-button{background-color:transparent;border:none;font:inherit}body ::-moz-focus-inner{border-style:none;padding:0}body details{display:block}body summary{display:list-item}body canvas{display:inline-block}body template{display:none}body [tabindex],body a,body area,body button,body input,body label,body select,body summary,body textarea{touch-action:manipulation}body [hidden]{display:none}body [aria-busy=true]{cursor:progress}body [aria-controls]:not(input){cursor:pointer}body [aria-disabled=true],body [disabled]{cursor:not-allowed}body [aria-hidden=false][hidden]:not(:focus){clip:rect(0,0,0,0);display:inherit;position:absolute}@media print{body{background-color:#fff;color:#000}}body .eufemia-theme{color:var(--theme-color-body,var(--color-black-80,#333));font-family:var(--font-family-default);font-size:var(--font-size-small);font-style:normal;font-weight:var(--font-weight-basis);line-height:var(--line-height-basis)}
@@ -1028,7 +1028,7 @@ html[data-visual-test] .dnb-forms-submit-indicator__content b {
1028
1028
  .dnb-forms-iterate__element {
1029
1029
  outline: none;
1030
1030
  }
1031
- .dnb-forms-iterate > .dnb-forms-iterate__element:has(.dnb-forms-iterate-block) {
1031
+ .dnb-forms-iterate > .dnb-forms-iterate__element:has(> .dnb-forms-section-block) {
1032
1032
  margin-top: 0;
1033
1033
  }
1034
1034