@chobantonov/jsonforms-react-renderer-common 0.0.0-stage → 0.1.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 (624) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +79 -2
  3. package/lib/cells/CellSummary.cjs.js +2 -0
  4. package/lib/cells/CellSummary.cjs.js.map +1 -0
  5. package/lib/cells/CellSummary.d.ts +14 -0
  6. package/lib/cells/CellSummary.esm.js +29 -0
  7. package/lib/cells/CellSummary.esm.js.map +1 -0
  8. package/lib/cells/cellMode.cjs.js +2 -0
  9. package/lib/cells/cellMode.cjs.js.map +1 -0
  10. package/lib/cells/cellMode.d.ts +14 -0
  11. package/lib/cells/cellMode.esm.js +6 -0
  12. package/lib/cells/cellMode.esm.js.map +1 -0
  13. package/lib/cells/compositeActions.cjs.js +2 -0
  14. package/lib/cells/compositeActions.cjs.js.map +1 -0
  15. package/lib/cells/compositeActions.d.ts +7 -0
  16. package/lib/cells/compositeActions.esm.js +14 -0
  17. package/lib/cells/compositeActions.esm.js.map +1 -0
  18. package/lib/cells/compositeCellTester.cjs.js +2 -0
  19. package/lib/cells/compositeCellTester.cjs.js.map +1 -0
  20. package/lib/cells/compositeCellTester.d.ts +2 -0
  21. package/lib/cells/compositeCellTester.esm.js +12 -0
  22. package/lib/cells/compositeCellTester.esm.js.map +1 -0
  23. package/lib/cells/compositeSummary.cjs.js +2 -0
  24. package/lib/cells/compositeSummary.cjs.js.map +1 -0
  25. package/lib/cells/compositeSummary.d.ts +10 -0
  26. package/lib/cells/compositeSummary.esm.js +44 -0
  27. package/lib/cells/compositeSummary.esm.js.map +1 -0
  28. package/lib/cells/useCompositeCellPresentation.cjs.js +2 -0
  29. package/lib/cells/useCompositeCellPresentation.cjs.js.map +1 -0
  30. package/lib/cells/useCompositeCellPresentation.d.ts +7 -0
  31. package/lib/cells/useCompositeCellPresentation.esm.js +18 -0
  32. package/lib/cells/useCompositeCellPresentation.esm.js.map +1 -0
  33. package/lib/cells/useCompositeDraft.cjs.js +2 -0
  34. package/lib/cells/useCompositeDraft.cjs.js.map +1 -0
  35. package/lib/cells/useCompositeDraft.d.ts +52 -0
  36. package/lib/cells/useCompositeDraft.esm.js +95 -0
  37. package/lib/cells/useCompositeDraft.esm.js.map +1 -0
  38. package/lib/collections/CollectionErrorNavigation.cjs.js +2 -0
  39. package/lib/collections/CollectionErrorNavigation.cjs.js.map +1 -0
  40. package/lib/collections/CollectionErrorNavigation.d.ts +12 -0
  41. package/lib/collections/CollectionErrorNavigation.esm.js +68 -0
  42. package/lib/collections/CollectionErrorNavigation.esm.js.map +1 -0
  43. package/lib/collections/arrayChoices.cjs.js +2 -0
  44. package/lib/collections/arrayChoices.cjs.js.map +1 -0
  45. package/lib/collections/arrayChoices.d.ts +85 -0
  46. package/lib/collections/arrayChoices.esm.js +54 -0
  47. package/lib/collections/arrayChoices.esm.js.map +1 -0
  48. package/lib/collections/collectionPagination.cjs.js +2 -0
  49. package/lib/collections/collectionPagination.cjs.js.map +1 -0
  50. package/lib/collections/collectionPagination.d.ts +22 -0
  51. package/lib/collections/collectionPagination.esm.js +51 -0
  52. package/lib/collections/collectionPagination.esm.js.map +1 -0
  53. package/lib/collections/columnResize.cjs.js +2 -0
  54. package/lib/collections/columnResize.cjs.js.map +1 -0
  55. package/lib/collections/columnResize.d.ts +16 -0
  56. package/lib/collections/columnResize.esm.js +85 -0
  57. package/lib/collections/columnResize.esm.js.map +1 -0
  58. package/lib/collections/rowDetail.cjs.js +2 -0
  59. package/lib/collections/rowDetail.cjs.js.map +1 -0
  60. package/lib/collections/rowDetail.d.ts +34 -0
  61. package/lib/collections/rowDetail.esm.js +106 -0
  62. package/lib/collections/rowDetail.esm.js.map +1 -0
  63. package/lib/collections/tableColumns.cjs.js +2 -0
  64. package/lib/collections/tableColumns.cjs.js.map +1 -0
  65. package/lib/collections/tableColumns.d.ts +13 -0
  66. package/lib/collections/tableColumns.esm.js +16 -0
  67. package/lib/collections/tableColumns.esm.js.map +1 -0
  68. package/lib/collections/useArrayPanelState.cjs.js +2 -0
  69. package/lib/collections/useArrayPanelState.cjs.js.map +1 -0
  70. package/lib/collections/useArrayPanelState.d.ts +7 -0
  71. package/lib/collections/useArrayPanelState.esm.js +18 -0
  72. package/lib/collections/useArrayPanelState.esm.js.map +1 -0
  73. package/lib/collections/useCollectionDelete.cjs.js +2 -0
  74. package/lib/collections/useCollectionDelete.cjs.js.map +1 -0
  75. package/lib/collections/useCollectionDelete.d.ts +17 -0
  76. package/lib/collections/useCollectionDelete.esm.js +38 -0
  77. package/lib/collections/useCollectionDelete.esm.js.map +1 -0
  78. package/lib/collections/useTableSelection.cjs.js +2 -0
  79. package/lib/collections/useTableSelection.cjs.js.map +1 -0
  80. package/lib/collections/useTableSelection.d.ts +11 -0
  81. package/lib/collections/useTableSelection.esm.js +41 -0
  82. package/lib/collections/useTableSelection.esm.js.map +1 -0
  83. package/lib/composition/AllOfRenderer.cjs.js +2 -0
  84. package/lib/composition/AllOfRenderer.cjs.js.map +1 -0
  85. package/lib/composition/AllOfRenderer.d.ts +5 -0
  86. package/lib/composition/AllOfRenderer.esm.js +33 -0
  87. package/lib/composition/AllOfRenderer.esm.js.map +1 -0
  88. package/lib/composition/CombinatorBranch.cjs.js +2 -0
  89. package/lib/composition/CombinatorBranch.cjs.js.map +1 -0
  90. package/lib/composition/CombinatorBranch.d.ts +17 -0
  91. package/lib/composition/CombinatorBranch.esm.js +54 -0
  92. package/lib/composition/CombinatorBranch.esm.js.map +1 -0
  93. package/lib/composition/CombinatorProperties.cjs.js +2 -0
  94. package/lib/composition/CombinatorProperties.cjs.js.map +1 -0
  95. package/lib/composition/CombinatorProperties.d.ts +12 -0
  96. package/lib/composition/CombinatorProperties.esm.js +20 -0
  97. package/lib/composition/CombinatorProperties.esm.js.map +1 -0
  98. package/lib/composition/ScalarCompositionControl.cjs.js +2 -0
  99. package/lib/composition/ScalarCompositionControl.cjs.js.map +1 -0
  100. package/lib/composition/ScalarCompositionControl.d.ts +6 -0
  101. package/lib/composition/ScalarCompositionControl.esm.js +22 -0
  102. package/lib/composition/ScalarCompositionControl.esm.js.map +1 -0
  103. package/lib/composition/choiceCards.cjs.js +2 -0
  104. package/lib/composition/choiceCards.cjs.js.map +1 -0
  105. package/lib/composition/choiceCards.d.ts +36 -0
  106. package/lib/composition/choiceCards.esm.js +162 -0
  107. package/lib/composition/choiceCards.esm.js.map +1 -0
  108. package/lib/composition/combinators.cjs.js +2 -0
  109. package/lib/composition/combinators.cjs.js.map +1 -0
  110. package/lib/composition/combinators.d.ts +40 -0
  111. package/lib/composition/combinators.esm.js +26 -0
  112. package/lib/composition/combinators.esm.js.map +1 -0
  113. package/lib/composition/discriminatorBranch.cjs.js +2 -0
  114. package/lib/composition/discriminatorBranch.cjs.js.map +1 -0
  115. package/lib/composition/discriminatorBranch.d.ts +6 -0
  116. package/lib/composition/discriminatorBranch.esm.js +41 -0
  117. package/lib/composition/discriminatorBranch.esm.js.map +1 -0
  118. package/lib/composition/scalarComposition.cjs.js +2 -0
  119. package/lib/composition/scalarComposition.cjs.js.map +1 -0
  120. package/lib/composition/scalarComposition.d.ts +27 -0
  121. package/lib/composition/scalarComposition.esm.js +76 -0
  122. package/lib/composition/scalarComposition.esm.js.map +1 -0
  123. package/lib/composition/useCombinatorSelection.cjs.js +2 -0
  124. package/lib/composition/useCombinatorSelection.cjs.js.map +1 -0
  125. package/lib/composition/useCombinatorSelection.d.ts +6 -0
  126. package/lib/composition/useCombinatorSelection.esm.js +22 -0
  127. package/lib/composition/useCombinatorSelection.esm.js.map +1 -0
  128. package/lib/composition/useScalarComposition.cjs.js +2 -0
  129. package/lib/composition/useScalarComposition.cjs.js.map +1 -0
  130. package/lib/composition/useScalarComposition.d.ts +18 -0
  131. package/lib/composition/useScalarComposition.esm.js +24 -0
  132. package/lib/composition/useScalarComposition.esm.js.map +1 -0
  133. package/lib/controls/FileArrayInput.cjs.js +2 -0
  134. package/lib/controls/FileArrayInput.cjs.js.map +1 -0
  135. package/lib/controls/FileArrayInput.d.ts +19 -0
  136. package/lib/controls/FileArrayInput.esm.js +232 -0
  137. package/lib/controls/FileArrayInput.esm.js.map +1 -0
  138. package/lib/controls/controlHelp.cjs.js +2 -0
  139. package/lib/controls/controlHelp.cjs.js.map +1 -0
  140. package/lib/controls/controlHelp.d.ts +15 -0
  141. package/lib/controls/controlHelp.esm.js +9 -0
  142. package/lib/controls/controlHelp.esm.js.map +1 -0
  143. package/lib/controls/inputAdornments.cjs.js +2 -0
  144. package/lib/controls/inputAdornments.cjs.js.map +1 -0
  145. package/lib/controls/inputAdornments.d.ts +32 -0
  146. package/lib/controls/inputAdornments.esm.js +192 -0
  147. package/lib/controls/inputAdornments.esm.js.map +1 -0
  148. package/lib/controls/numeric.cjs.js +2 -0
  149. package/lib/controls/numeric.cjs.js.map +1 -0
  150. package/lib/controls/numeric.d.ts +36 -0
  151. package/lib/controls/numeric.esm.js +9 -0
  152. package/lib/controls/numeric.esm.js.map +1 -0
  153. package/lib/controls/useClearAffordance.cjs.js +2 -0
  154. package/lib/controls/useClearAffordance.cjs.js.map +1 -0
  155. package/lib/controls/useClearAffordance.d.ts +15 -0
  156. package/lib/controls/useClearAffordance.esm.js +17 -0
  157. package/lib/controls/useClearAffordance.esm.js.map +1 -0
  158. package/lib/controls/useDebouncedChange.cjs.js +2 -0
  159. package/lib/controls/useDebouncedChange.cjs.js.map +1 -0
  160. package/lib/controls/useDebouncedChange.d.ts +37 -0
  161. package/lib/controls/useDebouncedChange.esm.js +40 -0
  162. package/lib/controls/useDebouncedChange.esm.js.map +1 -0
  163. package/lib/controls/useFocus.cjs.js +2 -0
  164. package/lib/controls/useFocus.cjs.js.map +1 -0
  165. package/lib/controls/useFocus.d.ts +1 -0
  166. package/lib/controls/useFocus.esm.js +13 -0
  167. package/lib/controls/useFocus.esm.js.map +1 -0
  168. package/lib/core/configNamespaces.cjs.js +2 -0
  169. package/lib/core/configNamespaces.cjs.js.map +1 -0
  170. package/lib/core/configNamespaces.d.ts +32 -0
  171. package/lib/core/configNamespaces.esm.js +15 -0
  172. package/lib/core/configNamespaces.esm.js.map +1 -0
  173. package/lib/core/dataPointer.cjs.js +2 -0
  174. package/lib/core/dataPointer.cjs.js.map +1 -0
  175. package/lib/core/dataPointer.d.ts +1 -0
  176. package/lib/core/dataPointer.esm.js +5 -0
  177. package/lib/core/dataPointer.esm.js.map +1 -0
  178. package/lib/core/detailUiSchema.cjs.js +2 -0
  179. package/lib/core/detailUiSchema.cjs.js.map +1 -0
  180. package/lib/core/detailUiSchema.d.ts +7 -0
  181. package/lib/core/detailUiSchema.esm.js +23 -0
  182. package/lib/core/detailUiSchema.esm.js.map +1 -0
  183. package/lib/core/plainRecord.cjs.js +2 -0
  184. package/lib/core/plainRecord.cjs.js.map +1 -0
  185. package/lib/core/plainRecord.d.ts +1 -0
  186. package/lib/core/plainRecord.esm.js +5 -0
  187. package/lib/core/plainRecord.esm.js.map +1 -0
  188. package/lib/core/uiSchemaCycle.cjs.js +2 -0
  189. package/lib/core/uiSchemaCycle.cjs.js.map +1 -0
  190. package/lib/core/uiSchemaCycle.d.ts +18 -0
  191. package/lib/core/uiSchemaCycle.esm.js +27 -0
  192. package/lib/core/uiSchemaCycle.esm.js.map +1 -0
  193. package/lib/dynamic/DynamicUiProvider.cjs.js +4 -0
  194. package/lib/dynamic/DynamicUiProvider.cjs.js.map +1 -0
  195. package/lib/dynamic/DynamicUiProvider.d.ts +35 -0
  196. package/lib/dynamic/DynamicUiProvider.esm.js +182 -0
  197. package/lib/dynamic/DynamicUiProvider.esm.js.map +1 -0
  198. package/lib/dynamic/dynamicCel.cjs.js +2 -0
  199. package/lib/dynamic/dynamicCel.cjs.js.map +1 -0
  200. package/lib/dynamic/dynamicCel.d.ts +1 -0
  201. package/lib/dynamic/dynamicCel.esm.js +43 -0
  202. package/lib/dynamic/dynamicCel.esm.js.map +1 -0
  203. package/lib/dynamic/dynamicConfig.cjs.js +2 -0
  204. package/lib/dynamic/dynamicConfig.cjs.js.map +1 -0
  205. package/lib/dynamic/dynamicConfig.d.ts +7 -0
  206. package/lib/dynamic/dynamicConfig.esm.js +13 -0
  207. package/lib/dynamic/dynamicConfig.esm.js.map +1 -0
  208. package/lib/dynamic/dynamicRuntime.cjs.js +2 -0
  209. package/lib/dynamic/dynamicRuntime.cjs.js.map +1 -0
  210. package/lib/dynamic/dynamicRuntime.d.ts +4 -0
  211. package/lib/dynamic/dynamicRuntime.esm.js +16 -0
  212. package/lib/dynamic/dynamicRuntime.esm.js.map +1 -0
  213. package/lib/dynamic/dynamicScope.cjs.js +2 -0
  214. package/lib/dynamic/dynamicScope.cjs.js.map +1 -0
  215. package/lib/dynamic/dynamicScope.d.ts +2 -0
  216. package/lib/dynamic/dynamicScope.esm.js +17 -0
  217. package/lib/dynamic/dynamicScope.esm.js.map +1 -0
  218. package/lib/dynamic/dynamicTree.cjs.js +2 -0
  219. package/lib/dynamic/dynamicTree.cjs.js.map +1 -0
  220. package/lib/dynamic/dynamicTree.d.ts +12 -0
  221. package/lib/dynamic/dynamicTree.esm.js +57 -0
  222. package/lib/dynamic/dynamicTree.esm.js.map +1 -0
  223. package/lib/dynamic/dynamicUi.cjs.js +2 -0
  224. package/lib/dynamic/dynamicUi.cjs.js.map +1 -0
  225. package/lib/dynamic/dynamicUi.d.ts +39 -0
  226. package/lib/dynamic/dynamicUi.esm.js +397 -0
  227. package/lib/dynamic/dynamicUi.esm.js.map +1 -0
  228. package/lib/formats/colorFormat.cjs.js +2 -0
  229. package/lib/formats/colorFormat.cjs.js.map +1 -0
  230. package/lib/formats/colorFormat.d.ts +127 -0
  231. package/lib/formats/colorFormat.esm.js +139 -0
  232. package/lib/formats/colorFormat.esm.js.map +1 -0
  233. package/lib/formats/dateValues.cjs.js +2 -0
  234. package/lib/formats/dateValues.cjs.js.map +1 -0
  235. package/lib/formats/dateValues.d.ts +3 -0
  236. package/lib/formats/dateValues.esm.js +21 -0
  237. package/lib/formats/dateValues.esm.js.map +1 -0
  238. package/lib/formats/duration.cjs.js +2 -0
  239. package/lib/formats/duration.cjs.js.map +1 -0
  240. package/lib/formats/duration.d.ts +13 -0
  241. package/lib/formats/duration.esm.js +28 -0
  242. package/lib/formats/duration.esm.js.map +1 -0
  243. package/lib/formats/maskControls.cjs.js +2 -0
  244. package/lib/formats/maskControls.cjs.js.map +1 -0
  245. package/lib/formats/maskControls.d.ts +32 -0
  246. package/lib/formats/maskControls.esm.js +16 -0
  247. package/lib/formats/maskControls.esm.js.map +1 -0
  248. package/lib/formats/maskFormat.cjs.js +2 -0
  249. package/lib/formats/maskFormat.cjs.js.map +1 -0
  250. package/lib/formats/maskFormat.d.ts +198 -0
  251. package/lib/formats/maskFormat.esm.js +79 -0
  252. package/lib/formats/maskFormat.esm.js.map +1 -0
  253. package/lib/formats/temporalBounds.cjs.js +2 -0
  254. package/lib/formats/temporalBounds.cjs.js.map +1 -0
  255. package/lib/formats/temporalBounds.d.ts +82 -0
  256. package/lib/formats/temporalBounds.esm.js +76 -0
  257. package/lib/formats/temporalBounds.esm.js.map +1 -0
  258. package/lib/formats/temporalFormats.cjs.js +2 -0
  259. package/lib/formats/temporalFormats.cjs.js.map +1 -0
  260. package/lib/formats/temporalFormats.d.ts +62 -0
  261. package/lib/formats/temporalFormats.esm.js +18 -0
  262. package/lib/formats/temporalFormats.esm.js.map +1 -0
  263. package/lib/formats/useMaskedInput.cjs.js +2 -0
  264. package/lib/formats/useMaskedInput.cjs.js.map +1 -0
  265. package/lib/formats/useMaskedInput.d.ts +11 -0
  266. package/lib/formats/useMaskedInput.esm.js +80 -0
  267. package/lib/formats/useMaskedInput.esm.js.map +1 -0
  268. package/lib/index.cjs.js +1 -0
  269. package/lib/index.d.ts +42 -0
  270. package/lib/index.esm.js +44 -0
  271. package/lib/interaction/confirmation.cjs.js +2 -0
  272. package/lib/interaction/confirmation.cjs.js.map +1 -0
  273. package/lib/interaction/confirmation.d.ts +112 -0
  274. package/lib/interaction/confirmation.esm.js +18 -0
  275. package/lib/interaction/confirmation.esm.js.map +1 -0
  276. package/lib/interaction/createDeleteConfirmation.cjs.js +2 -0
  277. package/lib/interaction/createDeleteConfirmation.cjs.js.map +1 -0
  278. package/lib/interaction/createDeleteConfirmation.d.ts +10 -0
  279. package/lib/interaction/createDeleteConfirmation.esm.js +17 -0
  280. package/lib/interaction/createDeleteConfirmation.esm.js.map +1 -0
  281. package/lib/interaction/detailDialog.cjs.js +2 -0
  282. package/lib/interaction/detailDialog.cjs.js.map +1 -0
  283. package/lib/interaction/detailDialog.d.ts +30 -0
  284. package/lib/interaction/detailDialog.esm.js +89 -0
  285. package/lib/interaction/detailDialog.esm.js.map +1 -0
  286. package/lib/interaction/pendingChanges.cjs.js +2 -0
  287. package/lib/interaction/pendingChanges.cjs.js.map +1 -0
  288. package/lib/interaction/pendingChanges.d.ts +19 -0
  289. package/lib/interaction/pendingChanges.esm.js +17 -0
  290. package/lib/interaction/pendingChanges.esm.js.map +1 -0
  291. package/lib/interaction/useConfirmationState.cjs.js +2 -0
  292. package/lib/interaction/useConfirmationState.cjs.js.map +1 -0
  293. package/lib/interaction/useConfirmationState.d.ts +11 -0
  294. package/lib/interaction/useConfirmationState.esm.js +39 -0
  295. package/lib/interaction/useConfirmationState.esm.js.map +1 -0
  296. package/lib/interaction/visuallyHidden.cjs.js +2 -0
  297. package/lib/interaction/visuallyHidden.cjs.js.map +1 -0
  298. package/lib/interaction/visuallyHidden.d.ts +9 -0
  299. package/lib/interaction/visuallyHidden.esm.js +14 -0
  300. package/lib/interaction/visuallyHidden.esm.js.map +1 -0
  301. package/lib/layout/categoryState.cjs.js +2 -0
  302. package/lib/layout/categoryState.cjs.js.map +1 -0
  303. package/lib/layout/categoryState.d.ts +66 -0
  304. package/lib/layout/categoryState.esm.js +42 -0
  305. package/lib/layout/categoryState.esm.js.map +1 -0
  306. package/lib/layout/groupState.cjs.js +2 -0
  307. package/lib/layout/groupState.cjs.js.map +1 -0
  308. package/lib/layout/groupState.d.ts +34 -0
  309. package/lib/layout/groupState.esm.js +63 -0
  310. package/lib/layout/groupState.esm.js.map +1 -0
  311. package/lib/layout/layoutContext.cjs.js +2 -0
  312. package/lib/layout/layoutContext.cjs.js.map +1 -0
  313. package/lib/layout/layoutContext.d.ts +16 -0
  314. package/lib/layout/layoutContext.esm.js +26 -0
  315. package/lib/layout/layoutContext.esm.js.map +1 -0
  316. package/lib/layout/layoutSizing.cjs.js +2 -0
  317. package/lib/layout/layoutSizing.cjs.js.map +1 -0
  318. package/lib/layout/layoutSizing.d.ts +104 -0
  319. package/lib/layout/layoutSizing.esm.js +69 -0
  320. package/lib/layout/layoutSizing.esm.js.map +1 -0
  321. package/lib/locale/bg.cjs.js +2 -0
  322. package/lib/locale/bg.cjs.js.map +1 -0
  323. package/lib/locale/bg.d.ts +279 -0
  324. package/lib/locale/bg.esm.js +271 -0
  325. package/lib/locale/bg.esm.js.map +1 -0
  326. package/lib/locale/calendar.cjs.js +2 -0
  327. package/lib/locale/calendar.cjs.js.map +1 -0
  328. package/lib/locale/calendar.d.ts +23 -0
  329. package/lib/locale/calendar.esm.js +57 -0
  330. package/lib/locale/calendar.esm.js.map +1 -0
  331. package/lib/locale/en.cjs.js +2 -0
  332. package/lib/locale/en.cjs.js.map +1 -0
  333. package/lib/locale/en.d.ts +275 -0
  334. package/lib/locale/en.esm.js +271 -0
  335. package/lib/locale/en.esm.js.map +1 -0
  336. package/lib/locale/index.cjs.js +1 -0
  337. package/lib/locale/index.d.ts +3 -0
  338. package/lib/locale/index.esm.js +3 -0
  339. package/lib/locale/intl.cjs.js +2 -0
  340. package/lib/locale/intl.cjs.js.map +1 -0
  341. package/lib/locale/intl.d.ts +2 -0
  342. package/lib/locale/intl.esm.js +11 -0
  343. package/lib/locale/intl.esm.js.map +1 -0
  344. package/lib/locale/rendererLocale.cjs.js +2 -0
  345. package/lib/locale/rendererLocale.cjs.js.map +1 -0
  346. package/lib/locale/rendererLocale.d.ts +40 -0
  347. package/lib/locale/rendererLocale.esm.js +24 -0
  348. package/lib/locale/rendererLocale.esm.js.map +1 -0
  349. package/lib/locale/translate.cjs.js +2 -0
  350. package/lib/locale/translate.cjs.js.map +1 -0
  351. package/lib/locale/translate.d.ts +43 -0
  352. package/lib/locale/translate.esm.js +25 -0
  353. package/lib/locale/translate.esm.js.map +1 -0
  354. package/lib/mixed/MixedDetailControl.cjs.js +2 -0
  355. package/lib/mixed/MixedDetailControl.cjs.js.map +1 -0
  356. package/lib/mixed/MixedDetailControl.d.ts +20 -0
  357. package/lib/mixed/MixedDetailControl.esm.js +73 -0
  358. package/lib/mixed/MixedDetailControl.esm.js.map +1 -0
  359. package/lib/mixed/RecursiveTreeRenderer.cjs.js +2 -0
  360. package/lib/mixed/RecursiveTreeRenderer.cjs.js.map +1 -0
  361. package/lib/mixed/RecursiveTreeRenderer.d.ts +35 -0
  362. package/lib/mixed/RecursiveTreeRenderer.esm.js +206 -0
  363. package/lib/mixed/RecursiveTreeRenderer.esm.js.map +1 -0
  364. package/lib/mixed/createMixedTypeChangeHandler.cjs.js +2 -0
  365. package/lib/mixed/createMixedTypeChangeHandler.cjs.js.map +1 -0
  366. package/lib/mixed/createMixedTypeChangeHandler.d.ts +16 -0
  367. package/lib/mixed/createMixedTypeChangeHandler.esm.js +34 -0
  368. package/lib/mixed/createMixedTypeChangeHandler.esm.js.map +1 -0
  369. package/lib/mixed/mixedComposition.cjs.js +2 -0
  370. package/lib/mixed/mixedComposition.cjs.js.map +1 -0
  371. package/lib/mixed/mixedComposition.d.ts +7 -0
  372. package/lib/mixed/mixedComposition.esm.js +37 -0
  373. package/lib/mixed/mixedComposition.esm.js.map +1 -0
  374. package/lib/mixed/mixedNodeEditor.cjs.js +2 -0
  375. package/lib/mixed/mixedNodeEditor.cjs.js.map +1 -0
  376. package/lib/mixed/mixedNodeEditor.d.ts +12 -0
  377. package/lib/mixed/mixedNodeEditor.esm.js +20 -0
  378. package/lib/mixed/mixedNodeEditor.esm.js.map +1 -0
  379. package/lib/mixed/mixedScalar.cjs.js +2 -0
  380. package/lib/mixed/mixedScalar.cjs.js.map +1 -0
  381. package/lib/mixed/mixedScalar.d.ts +4 -0
  382. package/lib/mixed/mixedScalar.esm.js +6 -0
  383. package/lib/mixed/mixedScalar.esm.js.map +1 -0
  384. package/lib/mixed/mixedSchema.cjs.js +2 -0
  385. package/lib/mixed/mixedSchema.cjs.js.map +1 -0
  386. package/lib/mixed/mixedSchema.d.ts +22 -0
  387. package/lib/mixed/mixedSchema.esm.js +88 -0
  388. package/lib/mixed/mixedSchema.esm.js.map +1 -0
  389. package/lib/mixed/mixedTree.cjs.js +2 -0
  390. package/lib/mixed/mixedTree.cjs.js.map +1 -0
  391. package/lib/mixed/mixedTree.d.ts +19 -0
  392. package/lib/mixed/mixedTree.esm.js +78 -0
  393. package/lib/mixed/mixedTree.esm.js.map +1 -0
  394. package/lib/mixed/mixedTreeActions.cjs.js +2 -0
  395. package/lib/mixed/mixedTreeActions.cjs.js.map +1 -0
  396. package/lib/mixed/mixedTreeActions.d.ts +6 -0
  397. package/lib/mixed/mixedTreeActions.esm.js +17 -0
  398. package/lib/mixed/mixedTreeActions.esm.js.map +1 -0
  399. package/lib/mixed/recursiveTree.cjs.js +2 -0
  400. package/lib/mixed/recursiveTree.cjs.js.map +1 -0
  401. package/lib/mixed/recursiveTree.d.ts +9 -0
  402. package/lib/mixed/recursiveTree.esm.js +49 -0
  403. package/lib/mixed/recursiveTree.esm.js.map +1 -0
  404. package/lib/mixed/useMixedNavigation.cjs.js +2 -0
  405. package/lib/mixed/useMixedNavigation.cjs.js.map +1 -0
  406. package/lib/mixed/useMixedNavigation.d.ts +6 -0
  407. package/lib/mixed/useMixedNavigation.esm.js +21 -0
  408. package/lib/mixed/useMixedNavigation.esm.js.map +1 -0
  409. package/lib/mixed/useMixedRenderer.cjs.js +2 -0
  410. package/lib/mixed/useMixedRenderer.cjs.js.map +1 -0
  411. package/lib/mixed/useMixedRenderer.d.ts +61 -0
  412. package/lib/mixed/useMixedRenderer.esm.js +185 -0
  413. package/lib/mixed/useMixedRenderer.esm.js.map +1 -0
  414. package/lib/mixed/useMixedType.cjs.js +2 -0
  415. package/lib/mixed/useMixedType.cjs.js.map +1 -0
  416. package/lib/mixed/useMixedType.d.ts +6 -0
  417. package/lib/mixed/useMixedType.esm.js +23 -0
  418. package/lib/mixed/useMixedType.esm.js.map +1 -0
  419. package/lib/objects/IsolatedPropertyEditor.cjs.js +2 -0
  420. package/lib/objects/IsolatedPropertyEditor.cjs.js.map +1 -0
  421. package/lib/objects/IsolatedPropertyEditor.d.ts +35 -0
  422. package/lib/objects/IsolatedPropertyEditor.esm.js +27 -0
  423. package/lib/objects/IsolatedPropertyEditor.esm.js.map +1 -0
  424. package/lib/objects/ObjectDetail.cjs.js +2 -0
  425. package/lib/objects/ObjectDetail.cjs.js.map +1 -0
  426. package/lib/objects/ObjectDetail.d.ts +42 -0
  427. package/lib/objects/ObjectDetail.esm.js +103 -0
  428. package/lib/objects/ObjectDetail.esm.js.map +1 -0
  429. package/lib/objects/additionalProperties.cjs.js +2 -0
  430. package/lib/objects/additionalProperties.cjs.js.map +1 -0
  431. package/lib/objects/additionalProperties.d.ts +14 -0
  432. package/lib/objects/additionalProperties.esm.js +41 -0
  433. package/lib/objects/additionalProperties.esm.js.map +1 -0
  434. package/lib/objects/additionalPropertyName.cjs.js +2 -0
  435. package/lib/objects/additionalPropertyName.cjs.js.map +1 -0
  436. package/lib/objects/additionalPropertyName.d.ts +63 -0
  437. package/lib/objects/additionalPropertyName.esm.js +46 -0
  438. package/lib/objects/additionalPropertyName.esm.js.map +1 -0
  439. package/lib/objects/conditionalFields.cjs.js +2 -0
  440. package/lib/objects/conditionalFields.cjs.js.map +1 -0
  441. package/lib/objects/conditionalFields.d.ts +18 -0
  442. package/lib/objects/conditionalFields.esm.js +105 -0
  443. package/lib/objects/conditionalFields.esm.js.map +1 -0
  444. package/lib/objects/dynamicProperties.cjs.js +2 -0
  445. package/lib/objects/dynamicProperties.cjs.js.map +1 -0
  446. package/lib/objects/dynamicProperties.d.ts +10 -0
  447. package/lib/objects/dynamicProperties.esm.js +33 -0
  448. package/lib/objects/dynamicProperties.esm.js.map +1 -0
  449. package/lib/objects/literalPropertySchema.cjs.js +2 -0
  450. package/lib/objects/literalPropertySchema.cjs.js.map +1 -0
  451. package/lib/objects/literalPropertySchema.d.ts +2 -0
  452. package/lib/objects/literalPropertySchema.esm.js +38 -0
  453. package/lib/objects/literalPropertySchema.esm.js.map +1 -0
  454. package/lib/objects/useAdditionalPropertyEntries.cjs.js +2 -0
  455. package/lib/objects/useAdditionalPropertyEntries.cjs.js.map +1 -0
  456. package/lib/objects/useAdditionalPropertyEntries.d.ts +72 -0
  457. package/lib/objects/useAdditionalPropertyEntries.esm.js +71 -0
  458. package/lib/objects/useAdditionalPropertyEntries.esm.js.map +1 -0
  459. package/lib/rolldown-runtime-BocRIvOZ.js +1 -0
  460. package/lib/tuple/TupleControlContent.cjs.js +2 -0
  461. package/lib/tuple/TupleControlContent.cjs.js.map +1 -0
  462. package/lib/tuple/TupleControlContent.d.ts +17 -0
  463. package/lib/tuple/TupleControlContent.esm.js +74 -0
  464. package/lib/tuple/TupleControlContent.esm.js.map +1 -0
  465. package/lib/tuple/TupleField.cjs.js +2 -0
  466. package/lib/tuple/TupleField.cjs.js.map +1 -0
  467. package/lib/tuple/TupleField.d.ts +15 -0
  468. package/lib/tuple/TupleField.esm.js +72 -0
  469. package/lib/tuple/TupleField.esm.js.map +1 -0
  470. package/lib/tuple/tupleSchema.cjs.js +2 -0
  471. package/lib/tuple/tupleSchema.cjs.js.map +1 -0
  472. package/lib/tuple/tupleSchema.d.ts +93 -0
  473. package/lib/tuple/tupleSchema.esm.js +63 -0
  474. package/lib/tuple/tupleSchema.esm.js.map +1 -0
  475. package/lib/tuple/useTupleAdditionalItems.cjs.js +2 -0
  476. package/lib/tuple/useTupleAdditionalItems.cjs.js.map +1 -0
  477. package/lib/tuple/useTupleAdditionalItems.d.ts +45 -0
  478. package/lib/tuple/useTupleAdditionalItems.esm.js +47 -0
  479. package/lib/tuple/useTupleAdditionalItems.esm.js.map +1 -0
  480. package/lib/tuple/useTupleControl.cjs.js +3 -0
  481. package/lib/tuple/useTupleControl.cjs.js.map +1 -0
  482. package/lib/tuple/useTupleControl.d.ts +26 -0
  483. package/lib/tuple/useTupleControl.esm.js +84 -0
  484. package/lib/tuple/useTupleControl.esm.js.map +1 -0
  485. package/lib/tuple/useTupleField.cjs.js +2 -0
  486. package/lib/tuple/useTupleField.cjs.js.map +1 -0
  487. package/lib/tuple/useTupleField.d.ts +38 -0
  488. package/lib/tuple/useTupleField.esm.js +80 -0
  489. package/lib/tuple/useTupleField.esm.js.map +1 -0
  490. package/lib/validation/ItemValidationIndicator.cjs.js +2 -0
  491. package/lib/validation/ItemValidationIndicator.cjs.js.map +1 -0
  492. package/lib/validation/ItemValidationIndicator.d.ts +9 -0
  493. package/lib/validation/ItemValidationIndicator.esm.js +14 -0
  494. package/lib/validation/ItemValidationIndicator.esm.js.map +1 -0
  495. package/lib/validation/errorSummary.cjs.js +9 -0
  496. package/lib/validation/errorSummary.cjs.js.map +1 -0
  497. package/lib/validation/errorSummary.d.ts +44 -0
  498. package/lib/validation/errorSummary.esm.js +194 -0
  499. package/lib/validation/errorSummary.esm.js.map +1 -0
  500. package/lib/validation/preTouchErrors.cjs.js +2 -0
  501. package/lib/validation/preTouchErrors.cjs.js.map +1 -0
  502. package/lib/validation/preTouchErrors.d.ts +77 -0
  503. package/lib/validation/preTouchErrors.esm.js +42 -0
  504. package/lib/validation/preTouchErrors.esm.js.map +1 -0
  505. package/lib/validation/validationIndicator.cjs.js +2 -0
  506. package/lib/validation/validationIndicator.cjs.js.map +1 -0
  507. package/lib/validation/validationIndicator.d.ts +72 -0
  508. package/lib/validation/validationIndicator.esm.js +66 -0
  509. package/lib/validation/validationIndicator.esm.js.map +1 -0
  510. package/lib/webcomponent/element.cjs.js +2 -0
  511. package/lib/webcomponent/element.cjs.js.map +1 -0
  512. package/lib/webcomponent/element.d.ts +48 -0
  513. package/lib/webcomponent/element.esm.js +85 -0
  514. package/lib/webcomponent/element.esm.js.map +1 -0
  515. package/lib/webcomponent/input.cjs.js +2 -0
  516. package/lib/webcomponent/input.cjs.js.map +1 -0
  517. package/lib/webcomponent/input.d.ts +6 -0
  518. package/lib/webcomponent/input.esm.js +25 -0
  519. package/lib/webcomponent/input.esm.js.map +1 -0
  520. package/package.json +86 -3
  521. package/src/cells/CellSummary.tsx +59 -0
  522. package/src/cells/cellMode.tsx +21 -0
  523. package/src/cells/compositeActions.ts +21 -0
  524. package/src/cells/compositeCellTester.ts +15 -0
  525. package/src/cells/compositeSummary.ts +149 -0
  526. package/src/cells/useCompositeCellPresentation.ts +37 -0
  527. package/src/cells/useCompositeDraft.ts +199 -0
  528. package/src/collections/CollectionErrorNavigation.tsx +123 -0
  529. package/src/collections/arrayChoices.ts +235 -0
  530. package/src/collections/collectionPagination.ts +95 -0
  531. package/src/collections/columnResize.tsx +151 -0
  532. package/src/collections/rowDetail.tsx +208 -0
  533. package/src/collections/tableColumns.ts +39 -0
  534. package/src/collections/useArrayPanelState.ts +25 -0
  535. package/src/collections/useCollectionDelete.ts +62 -0
  536. package/src/collections/useTableSelection.ts +77 -0
  537. package/src/composition/AllOfRenderer.tsx +79 -0
  538. package/src/composition/CombinatorBranch.tsx +93 -0
  539. package/src/composition/CombinatorProperties.tsx +56 -0
  540. package/src/composition/ScalarCompositionControl.tsx +34 -0
  541. package/src/composition/choiceCards.tsx +389 -0
  542. package/src/composition/combinators.ts +131 -0
  543. package/src/composition/discriminatorBranch.ts +82 -0
  544. package/src/composition/scalarComposition.ts +193 -0
  545. package/src/composition/useCombinatorSelection.ts +53 -0
  546. package/src/composition/useScalarComposition.ts +67 -0
  547. package/src/controls/FileArrayInput.tsx +407 -0
  548. package/src/controls/controlHelp.ts +28 -0
  549. package/src/controls/inputAdornments.tsx +337 -0
  550. package/src/controls/numeric.ts +43 -0
  551. package/src/controls/useClearAffordance.ts +22 -0
  552. package/src/controls/useDebouncedChange.ts +138 -0
  553. package/src/controls/useFocus.ts +32 -0
  554. package/src/core/configNamespaces.ts +67 -0
  555. package/src/core/dataPointer.ts +8 -0
  556. package/src/core/detailUiSchema.ts +88 -0
  557. package/src/core/plainRecord.ts +8 -0
  558. package/src/core/uiSchemaCycle.tsx +122 -0
  559. package/src/dynamic/DynamicUiProvider.tsx +414 -0
  560. package/src/dynamic/dynamicCel.ts +68 -0
  561. package/src/dynamic/dynamicConfig.ts +26 -0
  562. package/src/dynamic/dynamicRuntime.ts +25 -0
  563. package/src/dynamic/dynamicScope.ts +22 -0
  564. package/src/dynamic/dynamicTree.ts +128 -0
  565. package/src/dynamic/dynamicUi.ts +711 -0
  566. package/src/formats/colorFormat.ts +390 -0
  567. package/src/formats/dateValues.ts +45 -0
  568. package/src/formats/duration.ts +60 -0
  569. package/src/formats/maskControls.ts +88 -0
  570. package/src/formats/maskFormat.ts +375 -0
  571. package/src/formats/temporalBounds.ts +219 -0
  572. package/src/formats/temporalFormats.ts +128 -0
  573. package/src/formats/useMaskedInput.ts +194 -0
  574. package/src/index.ts +42 -0
  575. package/src/interaction/confirmation.ts +211 -0
  576. package/src/interaction/createDeleteConfirmation.ts +23 -0
  577. package/src/interaction/detailDialog.ts +138 -0
  578. package/src/interaction/pendingChanges.tsx +55 -0
  579. package/src/interaction/useConfirmationState.ts +55 -0
  580. package/src/interaction/visuallyHidden.ts +19 -0
  581. package/src/layout/categoryState.ts +189 -0
  582. package/src/layout/groupState.ts +201 -0
  583. package/src/layout/layoutContext.tsx +49 -0
  584. package/src/layout/layoutSizing.ts +369 -0
  585. package/src/locale/bg.ts +309 -0
  586. package/src/locale/calendar.ts +57 -0
  587. package/src/locale/en.ts +375 -0
  588. package/src/locale/index.ts +5 -0
  589. package/src/locale/intl.ts +10 -0
  590. package/src/locale/rendererLocale.ts +74 -0
  591. package/src/locale/translate.ts +98 -0
  592. package/src/mixed/MixedDetailControl.tsx +182 -0
  593. package/src/mixed/RecursiveTreeRenderer.tsx +388 -0
  594. package/src/mixed/createMixedTypeChangeHandler.ts +77 -0
  595. package/src/mixed/mixedComposition.ts +76 -0
  596. package/src/mixed/mixedNodeEditor.ts +47 -0
  597. package/src/mixed/mixedScalar.ts +7 -0
  598. package/src/mixed/mixedSchema.ts +283 -0
  599. package/src/mixed/mixedTree.ts +199 -0
  600. package/src/mixed/mixedTreeActions.ts +60 -0
  601. package/src/mixed/recursiveTree.ts +105 -0
  602. package/src/mixed/useMixedNavigation.ts +36 -0
  603. package/src/mixed/useMixedRenderer.ts +300 -0
  604. package/src/mixed/useMixedType.ts +45 -0
  605. package/src/objects/IsolatedPropertyEditor.tsx +86 -0
  606. package/src/objects/ObjectDetail.tsx +232 -0
  607. package/src/objects/additionalProperties.ts +151 -0
  608. package/src/objects/additionalPropertyName.ts +185 -0
  609. package/src/objects/conditionalFields.ts +173 -0
  610. package/src/objects/dynamicProperties.tsx +68 -0
  611. package/src/objects/literalPropertySchema.ts +100 -0
  612. package/src/objects/useAdditionalPropertyEntries.ts +204 -0
  613. package/src/tuple/TupleControlContent.tsx +152 -0
  614. package/src/tuple/TupleField.tsx +150 -0
  615. package/src/tuple/tupleSchema.ts +245 -0
  616. package/src/tuple/useTupleAdditionalItems.ts +131 -0
  617. package/src/tuple/useTupleControl.tsx +173 -0
  618. package/src/tuple/useTupleField.ts +164 -0
  619. package/src/validation/ItemValidationIndicator.tsx +21 -0
  620. package/src/validation/errorSummary.tsx +489 -0
  621. package/src/validation/preTouchErrors.ts +185 -0
  622. package/src/validation/validationIndicator.ts +202 -0
  623. package/src/webcomponent/element.ts +107 -0
  624. package/src/webcomponent/input.ts +56 -0
@@ -0,0 +1,271 @@
1
+ // src/locale/en.ts
2
+ var e = {
3
+ "file.maximumSize": "size should be less than {limitText}",
4
+ "file.minimumSize": "size should be greater than {limitText}",
5
+ "file.bytes": "Bytes",
6
+ "mixed.renameNamed": "Rename {name}",
7
+ "mixed.deleteNamed": "Delete {name}",
8
+ "mixed.type.unknown": "unknown",
9
+ "mixed.typedValue": "{type} value",
10
+ "mixed.view": "View {label}",
11
+ "mixed.expand": "Expand {label}",
12
+ "layout.resizePane": "Resize pane {index}",
13
+ "template.unsupported": "Unsupported template language {language}. This renderer set implements \"ractive\" and \"jsx\".",
14
+ "template.disabled": "Template rendering is disabled. It compiles the template string into executable code, which requires jsonformsExtended.security.allowScriptEvaluation to be true.",
15
+ "markup.reservedParam": "textParams.{name} is a reserved name",
16
+ "mixed.type.object": "object",
17
+ "mixed.type.array": "array",
18
+ "mixed.type.string": "string",
19
+ "mixed.type.number": "number",
20
+ "mixed.type.integer": "integer",
21
+ "mixed.type.boolean": "boolean",
22
+ "mixed.type.null": "null",
23
+ "image.warningDetails": "Image warning details",
24
+ "image.blocked": "Image blocked",
25
+ "image.configurationWarning": "Image configuration warning",
26
+ "image.missingAlt": "ImageView requires a top-level `alt`. Use `alt: \"\"` to mark the image decorative.",
27
+ "image.noSource": "ImageView requires at least one of `src` and `scope`.",
28
+ "image.urlRefused": "The image source is blocked by the configured URL policy. Use an allowed image URL or adjust the image URL policy.",
29
+ "image.scopeNotString": "The schema at {scope} does not permit strings.",
30
+ "image.nonStringSource": "The value at {scope} is a {type}, not a URL string.",
31
+ "button.action": "Action",
32
+ "button.scriptDisabled": "\"{label}\" runs a script, which compiles a string into executable code. That requires jsonformsExtended.security.allowScriptEvaluation to be true.",
33
+ "template.runtimeTitle": "Template Runtime Error",
34
+ "template.compileTitle": "Template Compilation Error:",
35
+ "template.errorLabel": "Error:",
36
+ "template.errorDetails": "Error Details",
37
+ "template.source": "Template Source",
38
+ "template.availableVariables": "Available variables: {names}",
39
+ "template.noVariables": "none",
40
+ "control.value": "Value",
41
+ "control.group": "Group",
42
+ "control.array": "Array",
43
+ "boolean.yes": "Yes",
44
+ "boolean.no": "No",
45
+ "enum.select": "Select...",
46
+ "control.done": "Done",
47
+ "control.apply": "Apply",
48
+ "control.cancel": "Cancel",
49
+ "control.close": "Close",
50
+ "control.more": "More",
51
+ "array.addAriaLabel": "Add",
52
+ "array.addTooltip": "Add item",
53
+ "array.removeAriaLabel": "Remove",
54
+ "array.removeTooltip": "Remove item",
55
+ "array.upAriaLabel": "Move up",
56
+ "array.up": "Move up",
57
+ "array.downAriaLabel": "Move down",
58
+ "array.down": "Move down",
59
+ "array.noDataMessage": "No data",
60
+ "collection.morePages": "More pages",
61
+ "collection.previousLabel": "Previous",
62
+ "collection.nextLabel": "Next",
63
+ "mixed.clearType": "Clear type",
64
+ "mixed.valuePath": "Value path",
65
+ "mixed.codeUnavailable": "Code presentation requires the Monaco renderer from the extended renderer registry.",
66
+ "combinator.clearTitle": "Clear form?",
67
+ "combinator.clearMessage": "Your data will be cleared if you select a schema with a different data type. Do you want to proceed?",
68
+ "temporal.clearDate": "Clear date",
69
+ "temporal.clearTime": "Clear time",
70
+ "temporal.clearDateTime": "Clear date and time",
71
+ "temporal.hours": "Hours",
72
+ "temporal.minutes": "Minutes",
73
+ "temporal.seconds": "Seconds",
74
+ "temporal.increaseHours": "Increase hours",
75
+ "temporal.decreaseHours": "Decrease hours",
76
+ "temporal.increaseMinutes": "Increase minutes",
77
+ "temporal.decreaseMinutes": "Decrease minutes",
78
+ "temporal.increaseSeconds": "Increase seconds",
79
+ "temporal.decreaseSeconds": "Decrease seconds",
80
+ "temporal.period": "Period",
81
+ "temporal.am": "AM",
82
+ "temporal.pm": "PM",
83
+ "temporal.month": "Month",
84
+ "temporal.year": "Year",
85
+ "calendar.navigation": "Navigation bar",
86
+ "calendar.previousMonth": "Go to the Previous Month",
87
+ "calendar.nextMonth": "Go to the Next Month",
88
+ "calendar.chooseMonth": "Choose the Month",
89
+ "calendar.chooseYear": "Choose the Year",
90
+ "calendar.weekNumber": "Week {week}",
91
+ "calendar.weekNumberHeader": "Week number",
92
+ "calendar.day": "{date}{selected}{today}",
93
+ "calendar.selected": ", selected",
94
+ "calendar.today": ", today",
95
+ "color.pickerLabel": "{label} picker",
96
+ "color.label": "Color",
97
+ "color.saturationLabel": "{label} saturation and brightness",
98
+ "color.hueLabel": "{label} hue",
99
+ "color.channelLabel": "{label} {channel}",
100
+ "dynamic.loading": "Loading form…",
101
+ "dynamic.loadFailed": "Unable to load dynamic expressions.",
102
+ "breadcrumb.label": "breadcrumb",
103
+ "oneOf.chooseKind": "Choose a kind.",
104
+ "oneOf.clear": "Clear selection",
105
+ "collection.resizeColumn": "Resize {field} column",
106
+ "collection.deleteSelected": "Delete selected rows",
107
+ "collection.deleteSelectedMessage": "Delete the selected rows and their data?",
108
+ "collection.selectPage": "Select all rows on this page",
109
+ "collection.selectRow": "Select row {index}",
110
+ "collection.pagination": "Pagination",
111
+ "collection.pageSize": "Items per page",
112
+ "collection.previous": "Previous page",
113
+ "collection.next": "Next page",
114
+ "collection.showDetails": "Show details",
115
+ "collection.hideDetails": "Hide details",
116
+ "collection.addedHidden": "The new item is hidden by the current filter.",
117
+ "collection.clearFilters": "Clear filters",
118
+ "collection.firstError": "Go to first error",
119
+ "collection.editDetails": "Edit details",
120
+ "collection.selectItem": "Select an item to view its details.",
121
+ "enum.search": "Search choices",
122
+ "enum.none": "None",
123
+ "enum.noMatches": "No matching choices",
124
+ "chips.addPlaceholder": "Type a value and press Enter",
125
+ "group.dataIndicator": "Section contains data",
126
+ "validation.showMore": "Show {count} more",
127
+ "validation.showLess": "Show less",
128
+ "validation.childrenErrorCount": "1 error in items.",
129
+ "validation.childrenErrors": "Some items contain errors.",
130
+ "validation.childrenErrorsCount": "{count} errors in items.",
131
+ "validation.containerError": "{count} error in this section",
132
+ "validation.containerErrors": "{count} errors in this section",
133
+ "validation.containerHasErrors": "This section contains errors",
134
+ "file.rejected": "\"{name}\" was not attached: {reason}",
135
+ "file.maxItems": "These files were not added. A maximum of {limit} attachments is allowed; existing files were kept.",
136
+ "file.sizeBound": "{name} must contain {bound} {limit} bytes.",
137
+ "file.readFailed": "The files could not be read. Existing attachments were kept.",
138
+ "file.reading": "Reading files…",
139
+ "file.numbered": "File {index}",
140
+ "file.atLeast": "at least",
141
+ "file.moreThan": "more than",
142
+ "file.atMost": "at most",
143
+ "file.lessThan": "less than",
144
+ "file.attached": "File attached",
145
+ "file.clearAll": "Clear all files",
146
+ "file.select": "Select File",
147
+ "temporal.datePlaceholder": "Pick a date",
148
+ "temporal.timePlaceholder": "Pick a time",
149
+ "temporal.dateTimePlaceholder": "Pick a date and time",
150
+ "control.clearValue": "Clear value",
151
+ "control.notSet": "Not set",
152
+ "password.show": "Show password",
153
+ "password.hide": "Hide password",
154
+ "boolean.notSet": "Not set",
155
+ "boolean.invalid": "Not a true or false value",
156
+ "array.indexLabel": "Index",
157
+ "categorization.next": "Next",
158
+ "categorization.previous": "Previous",
159
+ "confirm.delete.title": "Delete this value?",
160
+ "confirm.delete.message": "The value will be removed. This cannot be undone from here.",
161
+ "confirm.typeChange.title": "Change the type?",
162
+ "confirm.typeChange.message": "The current value does not fit the new type and will be discarded.",
163
+ "confirm.branchChange.title": "Change the selection?",
164
+ "confirm.branchChange.message": "Data that the new selection does not describe will be discarded.",
165
+ "dialog.maximize": "Maximize dialog",
166
+ "dialog.restore": "Restore dialog",
167
+ "confirm.accept": "Yes",
168
+ "confirm.decline": "No",
169
+ "combinator.cancel": "Cancel",
170
+ "additionalProperties.title": "Additional Properties",
171
+ "additionalProperties.namePlaceholder": "Property name",
172
+ "additionalProperties.add": "Add property",
173
+ "additionalProperties.addTo": "Add property to {label}",
174
+ "additionalProperties.rename": "Rename property",
175
+ "additionalProperties.renameNamed": "Rename {name}",
176
+ "additionalProperties.renameTitle": "Rename property",
177
+ "additionalProperties.renameDialogDescription": "Change the property name without changing its value.",
178
+ "additionalProperties.renamePropertyNameLabel": "Property Name",
179
+ "additionalProperties.renameConfirm": "Rename",
180
+ "additionalProperties.delete": "Delete property",
181
+ "additionalProperties.deleteNamed": "Delete {name}",
182
+ "additionalProperties.deleteBlocked": "The schema requires this property to remain.",
183
+ "additionalProperties.nameRequired": "Enter a property name.",
184
+ "additionalProperties.nameTaken": "'{name}' is already defined.",
185
+ "additionalProperties.nameInvalid": "'{name}' is not a permitted property name here.",
186
+ "additionalProperties.namePattern": "The property name does not match an allowed pattern.",
187
+ "mixed.typeLabel": "Value type",
188
+ "mixed.typePlaceholder": "Select a type",
189
+ "mixed.integerRequired": "Enter a whole number.",
190
+ "mixed.required": "Required",
191
+ "mixed.treeLabel": "Value structure",
192
+ "mixed.searchLabel": "Search value tree",
193
+ "mixed.searchPlaceholder": "Search tree...",
194
+ "mixed.showPrimitives": "Show primitives",
195
+ "mixed.hidePrimitives": "Hide primitives",
196
+ "mixed.rename": "Rename",
197
+ "mixed.renameBlocked": "This property cannot be renamed.",
198
+ "mixed.delete": "Delete",
199
+ "cron.expression": "Expression",
200
+ "cron.choose": "Choose a schedule",
201
+ "cron.ok": "Apply",
202
+ "cron.cancel": "Cancel",
203
+ "cron.repeats": "Repeats",
204
+ "cron.chooseRepeats": "Choose how often",
205
+ "cron.period.second": "Every second",
206
+ "cron.period.minute": "Every minute",
207
+ "cron.period.hour": "Hourly",
208
+ "cron.period.day": "Daily",
209
+ "cron.period.week": "Weekly",
210
+ "cron.period.month": "Monthly",
211
+ "cron.period.year": "Yearly",
212
+ "cron.second": "Seconds",
213
+ "cron.minute": "Minutes",
214
+ "cron.hour": "Hours",
215
+ "cron.dayOfMonth": "Days of month",
216
+ "cron.month": "Months",
217
+ "cron.dayOfWeek": "Days of week",
218
+ "cron.every": "Every",
219
+ "cron.advanced": "Edited as text: this field uses syntax a list cannot state.",
220
+ "cron.error.sixFields": "A schedule has six fields: second, minute, hour, day of month, month, day of week.",
221
+ "cron.error.second": "The seconds field is not valid (0-59).",
222
+ "cron.error.minute": "The minutes field is not valid (0-59).",
223
+ "cron.error.hour": "The hours field is not valid (0-23).",
224
+ "cron.error.dayOfMonth": "The day-of-month field is not valid (1-31).",
225
+ "cron.error.month": "The month field is not valid (1-12, or JAN-DEC).",
226
+ "cron.error.dayOfWeek": "The day-of-week field is not valid (0-7, or SUN-SAT).",
227
+ "duration.weeks": "Weeks",
228
+ "duration.years": "Years",
229
+ "duration.months": "Months",
230
+ "duration.days": "Days",
231
+ "duration.hours": "Hours",
232
+ "duration.minutes": "Minutes",
233
+ "duration.seconds": "Seconds",
234
+ "duration.addUnit": "Add unit",
235
+ "duration.removeUnit": "Remove {unit}",
236
+ "duration.modeComponents": "Years to seconds",
237
+ "duration.modeWeeks": "Weeks",
238
+ "duration.ok": "Apply",
239
+ "duration.cancel": "Cancel",
240
+ "tuple.position": "Item {position}",
241
+ "tuple.additionalItems": "Additional items",
242
+ "tuple.add": "Add item",
243
+ "tuple.delete": "Delete {label}",
244
+ "tuple.configuration": "Tuple presentation requires positional schemas, or equal non-negative minItems and maxItems on an array.",
245
+ "tuple.forbidden": "No value is permitted at this position.",
246
+ "tuple.missingPosition": "Enter Item {position} first.",
247
+ "tuple.valueRequired": "Enter a value for this position.",
248
+ "tuple.initialType": "The additional item needs an explicit default or type.",
249
+ "composite.summary.item": "{count} item",
250
+ "composite.summary.items": "{count} items",
251
+ "composite.summary.details": "View details",
252
+ "composite.summary.unset": "Not set",
253
+ "composite.summary.more": "(+{count} more)",
254
+ "composite.edit": "Edit {label}",
255
+ "composite.remove": "Remove {label}",
256
+ "composite.summary.emptyObject": "Empty object",
257
+ "composite.summary.unspecified": "{label} not specified",
258
+ "composite.detailsTitle": "Details",
259
+ "composite.itemsLabel": "items",
260
+ "composite.detailsLabel": "details",
261
+ "composite.empty": "Clear",
262
+ "composite.emptyTooltip": "Clear contents, keeping the object or array.",
263
+ "composite.cancel": "Cancel",
264
+ "composite.cancelTooltip": "Discard changes and close.",
265
+ "composite.apply": "Apply",
266
+ "composite.applyTooltip": "Apply changes and close.",
267
+ "composite.applyConflict": "This value changed elsewhere while the dialog was open. Cancel and reopen it."
268
+ };
269
+ export { e as enRendererLocale };
270
+
271
+ //# sourceMappingURL=en.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.esm.js","names":["enRendererLocale"],"sources":["../../src/locale/en.ts"],"sourcesContent":["export const enRendererLocale = {\n 'file.maximumSize': 'size should be less than {limitText}',\n 'file.minimumSize': 'size should be greater than {limitText}',\n 'file.bytes': 'Bytes',\n 'mixed.renameNamed': 'Rename {name}',\n 'mixed.deleteNamed': 'Delete {name}',\n 'mixed.type.unknown': 'unknown',\n 'mixed.typedValue': '{type} value',\n 'mixed.view': 'View {label}',\n 'mixed.expand': 'Expand {label}',\n 'layout.resizePane': 'Resize pane {index}',\n 'template.unsupported':\n 'Unsupported template language {language}. This renderer set implements \"ractive\" and \"jsx\".',\n 'template.disabled':\n 'Template rendering is disabled. It compiles the template string into executable code, which requires jsonformsExtended.security.allowScriptEvaluation to be true.',\n 'markup.reservedParam': 'textParams.{name} is a reserved name',\n 'mixed.type.object': 'object',\n 'mixed.type.array': 'array',\n 'mixed.type.string': 'string',\n 'mixed.type.number': 'number',\n 'mixed.type.integer': 'integer',\n 'mixed.type.boolean': 'boolean',\n 'mixed.type.null': 'null',\n 'image.warningDetails': 'Image warning details',\n 'image.blocked': 'Image blocked',\n 'image.configurationWarning': 'Image configuration warning',\n 'image.missingAlt':\n 'ImageView requires a top-level `alt`. Use `alt: \"\"` to mark the image decorative.',\n 'image.noSource': 'ImageView requires at least one of `src` and `scope`.',\n 'image.urlRefused':\n 'The image source is blocked by the configured URL policy. Use an allowed image URL or adjust the image URL policy.',\n 'image.scopeNotString': 'The schema at {scope} does not permit strings.',\n 'image.nonStringSource':\n 'The value at {scope} is a {type}, not a URL string.',\n 'button.action': 'Action',\n 'button.scriptDisabled':\n '\"{label}\" runs a script, which compiles a string into executable code. That requires jsonformsExtended.security.allowScriptEvaluation to be true.',\n 'template.runtimeTitle': 'Template Runtime Error',\n 'template.compileTitle': 'Template Compilation Error:',\n 'template.errorLabel': 'Error:',\n 'template.errorDetails': 'Error Details',\n 'template.source': 'Template Source',\n 'template.availableVariables': 'Available variables: {names}',\n 'template.noVariables': 'none',\n 'control.value': 'Value',\n 'control.group': 'Group',\n 'control.array': 'Array',\n 'boolean.yes': 'Yes',\n 'boolean.no': 'No',\n 'enum.select': 'Select...',\n 'control.done': 'Done',\n 'control.apply': 'Apply',\n 'control.cancel': 'Cancel',\n 'control.close': 'Close',\n 'control.more': 'More',\n 'array.addAriaLabel': 'Add',\n 'array.addTooltip': 'Add item',\n 'array.removeAriaLabel': 'Remove',\n 'array.removeTooltip': 'Remove item',\n 'array.upAriaLabel': 'Move up',\n 'array.up': 'Move up',\n 'array.downAriaLabel': 'Move down',\n 'array.down': 'Move down',\n 'array.noDataMessage': 'No data',\n 'collection.morePages': 'More pages',\n 'collection.previousLabel': 'Previous',\n 'collection.nextLabel': 'Next',\n 'mixed.clearType': 'Clear type',\n 'mixed.valuePath': 'Value path',\n 'mixed.codeUnavailable':\n 'Code presentation requires the Monaco renderer from the extended renderer registry.',\n 'combinator.clearTitle': 'Clear form?',\n 'combinator.clearMessage':\n 'Your data will be cleared if you select a schema with a different data type. Do you want to proceed?',\n 'temporal.clearDate': 'Clear date',\n 'temporal.clearTime': 'Clear time',\n 'temporal.clearDateTime': 'Clear date and time',\n 'temporal.hours': 'Hours',\n 'temporal.minutes': 'Minutes',\n 'temporal.seconds': 'Seconds',\n 'temporal.increaseHours': 'Increase hours',\n 'temporal.decreaseHours': 'Decrease hours',\n 'temporal.increaseMinutes': 'Increase minutes',\n 'temporal.decreaseMinutes': 'Decrease minutes',\n 'temporal.increaseSeconds': 'Increase seconds',\n 'temporal.decreaseSeconds': 'Decrease seconds',\n 'temporal.period': 'Period',\n 'temporal.am': 'AM',\n 'temporal.pm': 'PM',\n 'temporal.month': 'Month',\n 'temporal.year': 'Year',\n 'calendar.navigation': 'Navigation bar',\n 'calendar.previousMonth': 'Go to the Previous Month',\n 'calendar.nextMonth': 'Go to the Next Month',\n 'calendar.chooseMonth': 'Choose the Month',\n 'calendar.chooseYear': 'Choose the Year',\n 'calendar.weekNumber': 'Week {week}',\n 'calendar.weekNumberHeader': 'Week number',\n 'calendar.day': '{date}{selected}{today}',\n 'calendar.selected': ', selected',\n 'calendar.today': ', today',\n 'color.pickerLabel': '{label} picker',\n 'color.label': 'Color',\n 'color.saturationLabel': '{label} saturation and brightness',\n 'color.hueLabel': '{label} hue',\n 'color.channelLabel': '{label} {channel}',\n 'dynamic.loading': 'Loading form…',\n 'dynamic.loadFailed': 'Unable to load dynamic expressions.',\n 'breadcrumb.label': 'breadcrumb',\n\n 'oneOf.chooseKind': 'Choose a kind.',\n 'oneOf.clear': 'Clear selection',\n 'collection.resizeColumn': 'Resize {field} column',\n 'collection.deleteSelected': 'Delete selected rows',\n 'collection.deleteSelectedMessage':\n 'Delete the selected rows and their data?',\n 'collection.selectPage': 'Select all rows on this page',\n 'collection.selectRow': 'Select row {index}',\n 'collection.pagination': 'Pagination',\n 'collection.pageSize': 'Items per page',\n 'collection.previous': 'Previous page',\n 'collection.next': 'Next page',\n 'collection.showDetails': 'Show details',\n 'collection.hideDetails': 'Hide details',\n 'collection.addedHidden': 'The new item is hidden by the current filter.',\n 'collection.clearFilters': 'Clear filters',\n 'collection.firstError': 'Go to first error',\n 'collection.editDetails': 'Edit details',\n 'collection.selectItem': 'Select an item to view its details.',\n\n 'enum.search': 'Search choices',\n 'enum.none': 'None',\n // Shown when a search query matches no choice. The specification requires a\n // searchable renderer to define its empty-result behaviour, so this is part\n // of the contract rather than decoration.\n 'enum.noMatches': 'No matching choices',\n // Chips: the hint in the free-entry box. Entry is committed on Enter, so the\n // hint says so rather than leaving a partial token looking committed.\n 'chips.addPlaceholder': 'Type a value and press Enter',\n // Group data-presence indicator. Says \"data\", never \"edits\": the marker is\n // computed from current data, so it appears for server-supplied values\n // nobody touched. See docs/jsonforms-extended-ui-model-adjustments.md §4.\n 'group.dataIndicator': 'Section contains data',\n // Container error indicator. Singular/plural keys with a {count} placeholder,\n // matching composite.summary.item(s): this works with a plain translator,\n // where a single ICU pattern would render its own syntax. The count is what\n // the indicator may show after validationMode filtering, not the raw total.\n 'validation.showMore': 'Show {count} more',\n 'validation.showLess': 'Show less',\n 'validation.childrenErrorCount': '1 error in items.',\n 'validation.childrenErrors': 'Some items contain errors.',\n 'validation.childrenErrorsCount': '{count} errors in items.',\n 'validation.containerError': '{count} error in this section',\n 'validation.containerErrors': '{count} errors in this section',\n // Used when showValidationIndicatorCount is off.\n 'validation.containerHasErrors': 'This section contains errors',\n // A refused file selection. Names the file, because the message sits beside\n // the attachment that is still committed - without the name it reads as an\n // error about *that* file rather than the one that was turned away.\n 'file.rejected': '\"{name}\" was not attached: {reason}',\n 'file.maxItems':\n 'These files were not added. A maximum of {limit} attachments is allowed; existing files were kept.',\n 'file.sizeBound': '{name} must contain {bound} {limit} bytes.',\n 'file.readFailed':\n 'The files could not be read. Existing attachments were kept.',\n 'file.reading': 'Reading files…',\n 'file.numbered': 'File {index}',\n 'file.atLeast': 'at least',\n 'file.moreThan': 'more than',\n 'file.atMost': 'at most',\n 'file.lessThan': 'less than',\n 'file.attached': 'File attached',\n 'file.clearAll': 'Clear all files',\n 'file.select': 'Select File',\n\n // Clear affordance shared by the input controls\n 'temporal.datePlaceholder': 'Pick a date',\n 'temporal.timePlaceholder': 'Pick a time',\n 'temporal.dateTimePlaceholder': 'Pick a date and time',\n\n 'control.clearValue': 'Clear value',\n // Announced for a control that is showing a position without holding a\n // value - the slider sitting at its default. Same words as boolean.notSet\n // and composite.summary.unset, but its own key, so a catalog can phrase the\n // three differently where the grammar needs it to.\n 'control.notSet': 'Not set',\n\n // Password reveal. The name states the action the control will perform, not\n // the state it is in.\n 'password.show': 'Show password',\n 'password.hide': 'Hide password',\n\n // Boolean controls. \"Not set\" is for a widget that cannot render an\n // indeterminate state, and for data that is not a boolean at all.\n 'boolean.notSet': 'Not set',\n 'boolean.invalid': 'Not a true or false value',\n\n // Array item and list-with-detail headers\n 'array.indexLabel': 'Index',\n\n // Categorization stepper navigation\n 'categorization.next': 'Next',\n 'categorization.previous': 'Previous',\n\n // Shared destructive-change confirmation (section 14). One set of strings\n // for every renderer, because the policy is shared: a delete reads the same\n // whether it removes a table row, a tree node or a dynamic property.\n 'confirm.delete.title': 'Delete this value?',\n 'confirm.delete.message':\n 'The value will be removed. This cannot be undone from here.',\n 'confirm.typeChange.title': 'Change the type?',\n 'confirm.typeChange.message':\n 'The current value does not fit the new type and will be discarded.',\n 'confirm.branchChange.title': 'Change the selection?',\n 'confirm.branchChange.message':\n 'Data that the new selection does not describe will be discarded.',\n 'dialog.maximize': 'Maximize dialog',\n 'dialog.restore': 'Restore dialog',\n 'confirm.accept': 'Yes',\n 'confirm.decline': 'No',\n\n 'combinator.cancel': 'Cancel',\n\n // Additional (dynamic) properties editor\n 'additionalProperties.title': 'Additional Properties',\n 'additionalProperties.namePlaceholder': 'Property name',\n 'additionalProperties.add': 'Add property',\n 'additionalProperties.addTo': 'Add property to {label}',\n 'additionalProperties.rename': 'Rename property',\n 'additionalProperties.renameNamed': 'Rename {name}',\n 'additionalProperties.renameTitle': 'Rename property',\n 'additionalProperties.renameDialogDescription':\n 'Change the property name without changing its value.',\n 'additionalProperties.renamePropertyNameLabel': 'Property Name',\n 'additionalProperties.renameConfirm': 'Rename',\n 'additionalProperties.delete': 'Delete property',\n 'additionalProperties.deleteNamed': 'Delete {name}',\n 'additionalProperties.deleteBlocked':\n 'The schema requires this property to remain.',\n // Naming a dynamic property. Only the schema constrains a name now: any\n // character is permitted, and a name a data path cannot address is edited in\n // a form of its own instead of being refused. See Adjustment 14.\n 'additionalProperties.nameRequired': 'Enter a property name.',\n 'additionalProperties.nameTaken': \"'{name}' is already defined.\",\n 'additionalProperties.nameInvalid':\n \"'{name}' is not a permitted property name here.\",\n // A name the schema's patternProperties do not admit. Distinct from\n // nameInvalid, which is about a name no data path could address at all.\n 'additionalProperties.namePattern':\n 'The property name does not match an allowed pattern.',\n\n // Mixed-value control: tree, type selector and their actions\n 'mixed.typeLabel': 'Value type',\n 'mixed.typePlaceholder': 'Select a type',\n 'mixed.integerRequired': 'Enter a whole number.',\n 'mixed.required': 'Required',\n 'mixed.treeLabel': 'Value structure',\n 'mixed.searchLabel': 'Search value tree',\n 'mixed.searchPlaceholder': 'Search tree...',\n 'mixed.showPrimitives': 'Show primitives',\n 'mixed.hidePrimitives': 'Hide primitives',\n 'mixed.rename': 'Rename',\n // Refused rename in the tree: a fixed property, or one the form is not\n // permitted to edit. Says the property cannot be renamed, not that the name\n // is wrong - the name was never the problem.\n 'mixed.renameBlocked': 'This property cannot be renamed.',\n 'mixed.delete': 'Delete',\n\n // Cron schedule picker. Six fields: second, minute, hour, day of month,\n // month, day of week - Spring's dialect, not Unix cron's five.\n 'cron.expression': 'Expression',\n 'cron.choose': 'Choose a schedule',\n 'cron.ok': 'Apply',\n 'cron.cancel': 'Cancel',\n 'cron.repeats': 'Repeats',\n // The period selector's placeholder, for a property with no schedule yet.\n // A period is a lens on a schedule, so it asserts nothing until one is\n // chosen; see docs/jsonforms-extended-ui-model-adjustments.md §39.\n 'cron.chooseRepeats': 'Choose how often',\n 'cron.period.second': 'Every second',\n 'cron.period.minute': 'Every minute',\n 'cron.period.hour': 'Hourly',\n 'cron.period.day': 'Daily',\n 'cron.period.week': 'Weekly',\n 'cron.period.month': 'Monthly',\n 'cron.period.year': 'Yearly',\n 'cron.second': 'Seconds',\n 'cron.minute': 'Minutes',\n 'cron.hour': 'Hours',\n 'cron.dayOfMonth': 'Days of month',\n 'cron.month': 'Months',\n 'cron.dayOfWeek': 'Days of week',\n // A field's picker with nothing chosen, which means every value.\n 'cron.every': 'Every',\n // Shown in place of a field's picker when its value is syntax a list cannot\n // state - `L`, `W`, `#`. The field is edited as text and left as it was.\n 'cron.advanced':\n 'Edited as text: this field uses syntax a list cannot state.',\n 'cron.error.sixFields':\n 'A schedule has six fields: second, minute, hour, day of month, month, day of week.',\n 'cron.error.second': 'The seconds field is not valid (0-59).',\n 'cron.error.minute': 'The minutes field is not valid (0-59).',\n 'cron.error.hour': 'The hours field is not valid (0-23).',\n 'cron.error.dayOfMonth': 'The day-of-month field is not valid (1-31).',\n 'cron.error.month': 'The month field is not valid (1-12, or JAN-DEC).',\n 'cron.error.dayOfWeek':\n 'The day-of-week field is not valid (0-7, or SUN-SAT).',\n\n // Duration picker components\n 'duration.weeks': 'Weeks',\n 'duration.years': 'Years',\n 'duration.months': 'Months',\n 'duration.days': 'Days',\n 'duration.hours': 'Hours',\n 'duration.minutes': 'Minutes',\n 'duration.seconds': 'Seconds',\n 'duration.addUnit': 'Add unit',\n 'duration.removeUnit': 'Remove {unit}',\n 'duration.modeComponents': 'Years to seconds',\n 'duration.modeWeeks': 'Weeks',\n 'duration.ok': 'Apply',\n 'duration.cancel': 'Cancel',\n // Tuple (positional array) control.\n //\n // `tuple.position` takes the displayed position as a parameter rather than\n // gluing a number onto an English word, which section 18 asks for by name:\n // \"position-label translation accepts the displayed position as a parameter\n // rather than concatenating a fixed English word with a number\". Numbering\n // shown to a reader is one-based; the data path stays zero-based.\n 'tuple.position': 'Item {position}',\n 'tuple.additionalItems': 'Additional items',\n 'tuple.add': 'Add item',\n 'tuple.delete': 'Delete {label}',\n // The configuration diagnostic section 18 requires instead of guessing a\n // positional count.\n 'tuple.configuration':\n 'Tuple presentation requires positional schemas, or equal non-negative minItems and maxItems on an array.',\n 'tuple.forbidden': 'No value is permitted at this position.',\n // Drafts held because the contract forbids inventing a value. Each names the\n // position the reader has to fill in rather than just refusing the edit.\n 'tuple.missingPosition': 'Enter Item {position} first.',\n 'tuple.valueRequired': 'Enter a value for this position.',\n 'tuple.initialType': 'The additional item needs an explicit default or type.',\n\n // Composite (object/array) table cells\n 'composite.summary.item': '{count} item',\n 'composite.summary.items': '{count} items',\n 'composite.summary.details': 'View details',\n 'composite.summary.unset': 'Not set',\n 'composite.summary.more': '(+{count} more)',\n 'composite.edit': 'Edit {label}',\n 'composite.remove': 'Remove {label}',\n 'composite.summary.emptyObject': 'Empty object',\n 'composite.summary.unspecified': '{label} not specified',\n 'composite.detailsTitle': 'Details',\n 'composite.itemsLabel': 'items',\n 'composite.detailsLabel': 'details',\n 'composite.empty': 'Clear',\n 'composite.emptyTooltip': 'Clear contents, keeping the object or array.',\n 'composite.cancel': 'Cancel',\n 'composite.cancelTooltip': 'Discard changes and close.',\n 'composite.apply': 'Apply',\n 'composite.applyTooltip': 'Apply changes and close.',\n 'composite.applyConflict':\n 'This value changed elsewhere while the dialog was open. Cancel and reopen it.',\n};\n\n/**\n * Every string this package can draw.\n *\n * Declared with the English defaults because other locale bundles are typed\n * by it; importing it from `translate.ts` would cycle through\n * `rendererLocale.ts`.\n */\nexport type I18nKey = keyof typeof enRendererLocale;\n"],"mappings":";AAAA,IAAaA,IAAmB;CAC9B,oBAAoB;CACpB,oBAAoB;CACpB,cAAc;CACd,qBAAqB;CACrB,qBAAqB;CACrB,sBAAsB;CACtB,oBAAoB;CACpB,cAAc;CACd,gBAAgB;CAChB,qBAAqB;CACrB,wBACE;CACF,qBACE;CACF,wBAAwB;CACxB,qBAAqB;CACrB,oBAAoB;CACpB,qBAAqB;CACrB,qBAAqB;CACrB,sBAAsB;CACtB,sBAAsB;CACtB,mBAAmB;CACnB,wBAAwB;CACxB,iBAAiB;CACjB,8BAA8B;CAC9B,oBACE;CACF,kBAAkB;CAClB,oBACE;CACF,wBAAwB;CACxB,yBACE;CACF,iBAAiB;CACjB,yBACE;CACF,yBAAyB;CACzB,yBAAyB;CACzB,uBAAuB;CACvB,yBAAyB;CACzB,mBAAmB;CACnB,+BAA+B;CAC/B,wBAAwB;CACxB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,eAAe;CACf,cAAc;CACd,eAAe;CACf,gBAAgB;CAChB,iBAAiB;CACjB,kBAAkB;CAClB,iBAAiB;CACjB,gBAAgB;CAChB,sBAAsB;CACtB,oBAAoB;CACpB,yBAAyB;CACzB,uBAAuB;CACvB,qBAAqB;CACrB,YAAY;CACZ,uBAAuB;CACvB,cAAc;CACd,uBAAuB;CACvB,wBAAwB;CACxB,4BAA4B;CAC5B,wBAAwB;CACxB,mBAAmB;CACnB,mBAAmB;CACnB,yBACE;CACF,yBAAyB;CACzB,2BACE;CACF,sBAAsB;CACtB,sBAAsB;CACtB,0BAA0B;CAC1B,kBAAkB;CAClB,oBAAoB;CACpB,oBAAoB;CACpB,0BAA0B;CAC1B,0BAA0B;CAC1B,4BAA4B;CAC5B,4BAA4B;CAC5B,4BAA4B;CAC5B,4BAA4B;CAC5B,mBAAmB;CACnB,eAAe;CACf,eAAe;CACf,kBAAkB;CAClB,iBAAiB;CACjB,uBAAuB;CACvB,0BAA0B;CAC1B,sBAAsB;CACtB,wBAAwB;CACxB,uBAAuB;CACvB,uBAAuB;CACvB,6BAA6B;CAC7B,gBAAgB;CAChB,qBAAqB;CACrB,kBAAkB;CAClB,qBAAqB;CACrB,eAAe;CACf,yBAAyB;CACzB,kBAAkB;CAClB,sBAAsB;CACtB,mBAAmB;CACnB,sBAAsB;CACtB,oBAAoB;CAEpB,oBAAoB;CACpB,eAAe;CACf,2BAA2B;CAC3B,6BAA6B;CAC7B,oCACE;CACF,yBAAyB;CACzB,wBAAwB;CACxB,yBAAyB;CACzB,uBAAuB;CACvB,uBAAuB;CACvB,mBAAmB;CACnB,0BAA0B;CAC1B,0BAA0B;CAC1B,0BAA0B;CAC1B,2BAA2B;CAC3B,yBAAyB;CACzB,0BAA0B;CAC1B,yBAAyB;CAEzB,eAAe;CACf,aAAa;CAIb,kBAAkB;CAGlB,wBAAwB;CAIxB,uBAAuB;CAKvB,uBAAuB;CACvB,uBAAuB;CACvB,iCAAiC;CACjC,6BAA6B;CAC7B,kCAAkC;CAClC,6BAA6B;CAC7B,8BAA8B;CAE9B,iCAAiC;CAIjC,iBAAiB;CACjB,iBACE;CACF,kBAAkB;CAClB,mBACE;CACF,gBAAgB;CAChB,iBAAiB;CACjB,gBAAgB;CAChB,iBAAiB;CACjB,eAAe;CACf,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,eAAe;CAGf,4BAA4B;CAC5B,4BAA4B;CAC5B,gCAAgC;CAEhC,sBAAsB;CAKtB,kBAAkB;CAIlB,iBAAiB;CACjB,iBAAiB;CAIjB,kBAAkB;CAClB,mBAAmB;CAGnB,oBAAoB;CAGpB,uBAAuB;CACvB,2BAA2B;CAK3B,wBAAwB;CACxB,0BACE;CACF,4BAA4B;CAC5B,8BACE;CACF,8BAA8B;CAC9B,gCACE;CACF,mBAAmB;CACnB,kBAAkB;CAClB,kBAAkB;CAClB,mBAAmB;CAEnB,qBAAqB;CAGrB,8BAA8B;CAC9B,wCAAwC;CACxC,4BAA4B;CAC5B,8BAA8B;CAC9B,+BAA+B;CAC/B,oCAAoC;CACpC,oCAAoC;CACpC,gDACE;CACF,gDAAgD;CAChD,sCAAsC;CACtC,+BAA+B;CAC/B,oCAAoC;CACpC,sCACE;CAIF,qCAAqC;CACrC,kCAAkC;CAClC,oCACE;CAGF,oCACE;CAGF,mBAAmB;CACnB,yBAAyB;CACzB,yBAAyB;CACzB,kBAAkB;CAClB,mBAAmB;CACnB,qBAAqB;CACrB,2BAA2B;CAC3B,wBAAwB;CACxB,wBAAwB;CACxB,gBAAgB;CAIhB,uBAAuB;CACvB,gBAAgB;CAIhB,mBAAmB;CACnB,eAAe;CACf,WAAW;CACX,eAAe;CACf,gBAAgB;CAIhB,sBAAsB;CACtB,sBAAsB;CACtB,sBAAsB;CACtB,oBAAoB;CACpB,mBAAmB;CACnB,oBAAoB;CACpB,qBAAqB;CACrB,oBAAoB;CACpB,eAAe;CACf,eAAe;CACf,aAAa;CACb,mBAAmB;CACnB,cAAc;CACd,kBAAkB;CAElB,cAAc;CAGd,iBACE;CACF,wBACE;CACF,qBAAqB;CACrB,qBAAqB;CACrB,mBAAmB;CACnB,yBAAyB;CACzB,oBAAoB;CACpB,wBACE;CAGF,kBAAkB;CAClB,kBAAkB;CAClB,mBAAmB;CACnB,iBAAiB;CACjB,kBAAkB;CAClB,oBAAoB;CACpB,oBAAoB;CACpB,oBAAoB;CACpB,uBAAuB;CACvB,2BAA2B;CAC3B,sBAAsB;CACtB,eAAe;CACf,mBAAmB;CAQnB,kBAAkB;CAClB,yBAAyB;CACzB,aAAa;CACb,gBAAgB;CAGhB,uBACE;CACF,mBAAmB;CAGnB,yBAAyB;CACzB,uBAAuB;CACvB,qBAAqB;CAGrB,0BAA0B;CAC1B,2BAA2B;CAC3B,6BAA6B;CAC7B,2BAA2B;CAC3B,0BAA0B;CAC1B,kBAAkB;CAClB,oBAAoB;CACpB,iCAAiC;CACjC,iCAAiC;CACjC,0BAA0B;CAC1B,wBAAwB;CACxB,0BAA0B;CAC1B,mBAAmB;CACnB,0BAA0B;CAC1B,oBAAoB;CACpB,2BAA2B;CAC3B,mBAAmB;CACnB,0BAA0B;CAC1B,2BACE;AACJ"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./en.cjs.js"),t=require("./bg.cjs.js");exports.bgRendererLocale=t.bgRendererLocale,exports.enRendererLocale=e.enRendererLocale,exports.i18nDefaults=e.enRendererLocale;
@@ -0,0 +1,3 @@
1
+ export { enRendererLocale, enRendererLocale as i18nDefaults } from './en';
2
+ export type { I18nKey } from './en';
3
+ export * from './bg';
@@ -0,0 +1,3 @@
1
+ import { enRendererLocale as e } from "./en.esm.js";
2
+ import { bgRendererLocale as t } from "./bg.esm.js";
3
+ export { t as bgRendererLocale, e as enRendererLocale, e as i18nDefaults };
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e){try{return Intl.DateTimeFormat.supportedLocalesOf(e?[e.replaceAll(`_`,`-`)]:[])[0]}catch{return}}exports.resolveIntlLocale=e;
2
+ //# sourceMappingURL=intl.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intl.cjs.js","names":["resolveIntlLocale","locale"],"sources":["../../src/locale/intl.ts"],"sourcesContent":["/** Normalize a form locale for Intl, falling back safely for host-only catalog tags. */\nexport function resolveIntlLocale(locale?: string): string | undefined {\n try {\n return Intl.DateTimeFormat.supportedLocalesOf(\n locale ? [locale.replaceAll('_', '-')] : [],\n )[0];\n } catch {\n return undefined;\n }\n}\n"],"mappings":"A,mEACA,SAAgBA,EAAkB,EAAqC,CACrE,GAAI,CACF,OAAO,KAAK,eAAe,mBACzBC,EAAS,CAACA,EAAO,WAAW,IAAK,GAAG,CAAC,EAAI,CAAC,CAC5C,CAAC,CAAC,EACJ,MAAQ,CACN,MACF,CACF,C"}
@@ -0,0 +1,2 @@
1
+ /** Normalize a form locale for Intl, falling back safely for host-only catalog tags. */
2
+ export declare function resolveIntlLocale(locale?: string): string | undefined;
@@ -0,0 +1,11 @@
1
+ // src/locale/intl.ts
2
+ function e(e) {
3
+ try {
4
+ return Intl.DateTimeFormat.supportedLocalesOf(e ? [e.replaceAll("_", "-")] : [])[0];
5
+ } catch {
6
+ return;
7
+ }
8
+ }
9
+ export { e as resolveIntlLocale };
10
+
11
+ //# sourceMappingURL=intl.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intl.esm.js","names":["resolveIntlLocale","locale"],"sources":["../../src/locale/intl.ts"],"sourcesContent":["/** Normalize a form locale for Intl, falling back safely for host-only catalog tags. */\nexport function resolveIntlLocale(locale?: string): string | undefined {\n try {\n return Intl.DateTimeFormat.supportedLocalesOf(\n locale ? [locale.replaceAll('_', '-')] : [],\n )[0];\n } catch {\n return undefined;\n }\n}\n"],"mappings":";AACA,SAAgBA,EAAkB,GAAqC;CACrE,IAAI;EACF,OAAO,KAAK,eAAe,mBACzBC,IAAS,CAACA,EAAO,WAAW,KAAK,GAAG,CAAC,IAAI,CAAC,CAC5C,CAAC,CAAC;CACJ,QAAQ;EACN;CACF;AACF"}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./bg.cjs.js"),t=require("./en.cjs.js");var n={en:{},bg:e.bgRendererLocale},r=n,i=e=>{r=e},a=()=>r,o=e=>e.toLowerCase().replace(/_/g,`-`),s=(e,t)=>{r={...r,[o(e)]:t}},c=e=>{if(!e)return;let t=o(e);return r[t]??r[t.split(`-`)[0]]},l=(e,n)=>{var r;return((r=c(e))==null?void 0:r[n])??t.enRendererLocale[n]};exports.defaultRendererLocales=n,exports.getRendererLocales=a,exports.registerRendererLocale=s,exports.rendererDefault=l,exports.resolveRendererLocale=c,exports.setRendererLocales=i;
2
+ //# sourceMappingURL=rendererLocale.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rendererLocale.cjs.js","names":["bgRendererLocale","i18nDefaults","require_locale_bg","require_locale_en","defaultRendererLocales","catalogs","setRendererLocales","next","getRendererLocales","normalize","locale","registerRendererLocale","catalog","resolveRendererLocale","code","rendererDefault","_resolveRendererLocal","key"],"sources":["../../src/locale/rendererLocale.ts"],"sourcesContent":["import { bgRendererLocale, i18nDefaults, type I18nKey } from '.';\n\n/**\n * Synchronous catalogs for shared renderer messages. Each UI library owns its\n * component locale separately. Hosts can replace these catalogs at startup\n * with setRendererLocales or register individual languages.\n */\nexport type RendererLocaleCatalog = Partial<Record<I18nKey, string>>;\n\n/**\n * The languages this build carries.\n *\n * `en` is present and empty on purpose: English *is* `i18nDefaults`, and an\n * entry saying so keeps \"is this language supported\" a question about this\n * map rather than a special case.\n *\n * Normalized locale tags match by region, then language: `bg-BG`, `bg_BG` and `bg` all\n * reach the same entry.\n */\nexport const defaultRendererLocales: Record<string, RendererLocaleCatalog> = {\n en: {},\n bg: bgRendererLocale,\n};\n\nlet catalogs: Record<string, RendererLocaleCatalog> = defaultRendererLocales;\n\n/** Replaces the supported set wholesale. */\nexport const setRendererLocales = (\n next: Record<string, RendererLocaleCatalog>,\n): void => {\n catalogs = next;\n};\n\nexport const getRendererLocales = (): Record<string, RendererLocaleCatalog> =>\n catalogs;\n\n/** Lower-cased, `_` as `-`, to match catalog keys. */\nconst normalize = (locale: string) => locale.toLowerCase().replace(/_/g, '-');\n\n/** Adds or replaces one language, leaving the others alone. */\nexport const registerRendererLocale = (\n locale: string,\n catalog: RendererLocaleCatalog,\n): void => {\n catalogs = { ...catalogs, [normalize(locale)]: catalog };\n};\n\n/**\n * The catalog for a locale, falling back to its language.\n *\n * `de-AT` uses the `de` bundle when no `de-AT` one is registered, which is\n * what a regional tag wants: the alternative is reverting to English over a\n * region nobody translated separately.\n */\nexport const resolveRendererLocale = (\n locale: string | undefined,\n): RendererLocaleCatalog | undefined => {\n if (!locale) return undefined;\n const code = normalize(locale);\n return catalogs[code] ?? catalogs[code.split('-')[0]];\n};\n\n/**\n * What a key reads as before the form's own catalog is consulted.\n *\n * Handed to the translator as its *default message*, so precedence falls out\n * of JSON Forms' own contract rather than being re-implemented here: the\n * form's catalog wins where it has the key, the locale bundle answers where it\n * does not, and English is what is left.\n */\nexport const rendererDefault = (\n locale: string | undefined,\n key: I18nKey,\n): string => resolveRendererLocale(locale)?.[key] ?? i18nDefaults[key];\n"],"mappings":"A,2HAmBA,IAAaI,EAAgE,CAC3E,GAAI,CAAC,EACL,GAAIJ,EAAAA,gBACN,EAEIK,EAAkDD,EAGzCE,EACX,GACS,CACT,EAAWC,CACb,EAEaC,MACXH,EAGII,EAAa,GAAmBC,EAAO,YAAY,CAAC,CAAC,QAAQ,KAAM,GAAG,EAG/DC,GACX,EACA,IACS,CACT,EAAW,CAAE,GAAGN,GAAWI,EAAUC,CAAM,GAAIE,CAAQ,CACzD,EASaC,EACX,GACsC,CACtC,GAAI,CAACH,EAAQ,OACb,IAAMI,EAAOL,EAAUC,CAAM,EAC7B,OAAOL,EAASS,IAAST,EAASS,EAAK,MAAM,GAAG,CAAC,CAAC,GACpD,EAUaC,GACX,EACA,IACW,C,MAAsB,QAAA,EAAAF,EAAAH,CAAM,IAAA,KAAA,IAAA,GAAAM,EAAIC,KAAQhB,EAAAA,iBAAagB,EAAA,E"}
@@ -0,0 +1,40 @@
1
+ import { type I18nKey } from '.';
2
+ /**
3
+ * Synchronous catalogs for shared renderer messages. Each UI library owns its
4
+ * component locale separately. Hosts can replace these catalogs at startup
5
+ * with setRendererLocales or register individual languages.
6
+ */
7
+ export type RendererLocaleCatalog = Partial<Record<I18nKey, string>>;
8
+ /**
9
+ * The languages this build carries.
10
+ *
11
+ * `en` is present and empty on purpose: English *is* `i18nDefaults`, and an
12
+ * entry saying so keeps "is this language supported" a question about this
13
+ * map rather than a special case.
14
+ *
15
+ * Normalized locale tags match by region, then language: `bg-BG`, `bg_BG` and `bg` all
16
+ * reach the same entry.
17
+ */
18
+ export declare const defaultRendererLocales: Record<string, RendererLocaleCatalog>;
19
+ /** Replaces the supported set wholesale. */
20
+ export declare const setRendererLocales: (next: Record<string, RendererLocaleCatalog>) => void;
21
+ export declare const getRendererLocales: () => Record<string, RendererLocaleCatalog>;
22
+ /** Adds or replaces one language, leaving the others alone. */
23
+ export declare const registerRendererLocale: (locale: string, catalog: RendererLocaleCatalog) => void;
24
+ /**
25
+ * The catalog for a locale, falling back to its language.
26
+ *
27
+ * `de-AT` uses the `de` bundle when no `de-AT` one is registered, which is
28
+ * what a regional tag wants: the alternative is reverting to English over a
29
+ * region nobody translated separately.
30
+ */
31
+ export declare const resolveRendererLocale: (locale: string | undefined) => RendererLocaleCatalog | undefined;
32
+ /**
33
+ * What a key reads as before the form's own catalog is consulted.
34
+ *
35
+ * Handed to the translator as its *default message*, so precedence falls out
36
+ * of JSON Forms' own contract rather than being re-implemented here: the
37
+ * form's catalog wins where it has the key, the locale bundle answers where it
38
+ * does not, and English is what is left.
39
+ */
40
+ export declare const rendererDefault: (locale: string | undefined, key: I18nKey) => string;
@@ -0,0 +1,24 @@
1
+ import { bgRendererLocale as e } from "./bg.esm.js";
2
+ import { enRendererLocale as t } from "./en.esm.js";
3
+ // src/locale/rendererLocale.ts
4
+ var n = {
5
+ en: {},
6
+ bg: e
7
+ }, r = n, i = (e) => {
8
+ r = e;
9
+ }, a = () => r, o = (e) => e.toLowerCase().replace(/_/g, "-"), s = (e, t) => {
10
+ r = {
11
+ ...r,
12
+ [o(e)]: t
13
+ };
14
+ }, c = (e) => {
15
+ if (!e) return;
16
+ let t = o(e);
17
+ return r[t] ?? r[t.split("-")[0]];
18
+ }, l = (e, n) => {
19
+ var r;
20
+ return ((r = c(e)) == null ? void 0 : r[n]) ?? t[n];
21
+ };
22
+ export { n as defaultRendererLocales, a as getRendererLocales, s as registerRendererLocale, l as rendererDefault, c as resolveRendererLocale, i as setRendererLocales };
23
+
24
+ //# sourceMappingURL=rendererLocale.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rendererLocale.esm.js","names":["i18nDefaults","defaultRendererLocales","bgRendererLocale","catalogs","setRendererLocales","next","getRendererLocales","normalize","locale","registerRendererLocale","catalog","resolveRendererLocale","code","rendererDefault","_resolveRendererLocal","key","enRendererLocale"],"sources":["../../src/locale/rendererLocale.ts"],"sourcesContent":["import { bgRendererLocale, i18nDefaults, type I18nKey } from '.';\n\n/**\n * Synchronous catalogs for shared renderer messages. Each UI library owns its\n * component locale separately. Hosts can replace these catalogs at startup\n * with setRendererLocales or register individual languages.\n */\nexport type RendererLocaleCatalog = Partial<Record<I18nKey, string>>;\n\n/**\n * The languages this build carries.\n *\n * `en` is present and empty on purpose: English *is* `i18nDefaults`, and an\n * entry saying so keeps \"is this language supported\" a question about this\n * map rather than a special case.\n *\n * Normalized locale tags match by region, then language: `bg-BG`, `bg_BG` and `bg` all\n * reach the same entry.\n */\nexport const defaultRendererLocales: Record<string, RendererLocaleCatalog> = {\n en: {},\n bg: bgRendererLocale,\n};\n\nlet catalogs: Record<string, RendererLocaleCatalog> = defaultRendererLocales;\n\n/** Replaces the supported set wholesale. */\nexport const setRendererLocales = (\n next: Record<string, RendererLocaleCatalog>,\n): void => {\n catalogs = next;\n};\n\nexport const getRendererLocales = (): Record<string, RendererLocaleCatalog> =>\n catalogs;\n\n/** Lower-cased, `_` as `-`, to match catalog keys. */\nconst normalize = (locale: string) => locale.toLowerCase().replace(/_/g, '-');\n\n/** Adds or replaces one language, leaving the others alone. */\nexport const registerRendererLocale = (\n locale: string,\n catalog: RendererLocaleCatalog,\n): void => {\n catalogs = { ...catalogs, [normalize(locale)]: catalog };\n};\n\n/**\n * The catalog for a locale, falling back to its language.\n *\n * `de-AT` uses the `de` bundle when no `de-AT` one is registered, which is\n * what a regional tag wants: the alternative is reverting to English over a\n * region nobody translated separately.\n */\nexport const resolveRendererLocale = (\n locale: string | undefined,\n): RendererLocaleCatalog | undefined => {\n if (!locale) return undefined;\n const code = normalize(locale);\n return catalogs[code] ?? catalogs[code.split('-')[0]];\n};\n\n/**\n * What a key reads as before the form's own catalog is consulted.\n *\n * Handed to the translator as its *default message*, so precedence falls out\n * of JSON Forms' own contract rather than being re-implemented here: the\n * form's catalog wins where it has the key, the locale bundle answers where it\n * does not, and English is what is left.\n */\nexport const rendererDefault = (\n locale: string | undefined,\n key: I18nKey,\n): string => resolveRendererLocale(locale)?.[key] ?? i18nDefaults[key];\n"],"mappings":";;;AAmBA,IAAaC,IAAgE;CAC3E,IAAI,CAAC;CACL,IAAIC;AACN,GAEIC,IAAkDF,GAGzCG,KACX,MACS;CACT,IAAWC;AACb,GAEaC,UACXH,GAGII,KAAa,MAAmBC,EAAO,YAAY,CAAC,CAAC,QAAQ,MAAM,GAAG,GAG/DC,KACX,GACA,MACS;CACT,IAAW;EAAE,GAAGN;GAAWI,EAAUC,CAAM,IAAIE;CAAQ;AACzD,GASaC,KACX,MACsC;CACtC,IAAI,CAACH,GAAQ;CACb,IAAMI,IAAOL,EAAUC,CAAM;CAC7B,OAAOL,EAASS,MAAST,EAASS,EAAK,MAAM,GAAG,CAAC,CAAC;AACpD,GAUaC,KACX,GACA,MACW;;CAAsB,SAAA,IAAAF,EAAAH,CAAM,MAAA,OAAA,KAAA,IAAAM,EAAIC,OAAQf,EAAae;AAAA"}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rendererLocale.cjs.js"),t=require("./en.cjs.js");let n=require("react"),r=require("@jsonforms/react");var i=()=>{let{translate:i,locale:a}=(0,r.useJsonForms)().i18n??{};return(0,n.useCallback)((n,r,o)=>{let s=Object.prototype.hasOwnProperty.call(t.enRendererLocale,n),c=s?e.rendererDefault(a,n):r,l=(i==null?void 0:i(n,c,o))??c;return!s||!l||!o?l:l.replace(/\{(\w+)\}/g,(e,t)=>o[t]===void 0?e:String(o[t]))},[i,a])},a=()=>{let t=(0,r.useJsonForms)().i18n,i=t==null?void 0:t.translate,a=t==null?void 0:t.locale;return(0,n.useCallback)((t,n)=>{let r=e.rendererDefault(a,t),o=(i==null?void 0:i(t,r,n))??r;return n===void 0?o:o.replace(/\{(\w+)\}/g,(e,t)=>n[t]===void 0?e:String(n[t]))},[i,a])},o=()=>{var t;let i=(t=(0,r.useJsonForms)().i18n)==null?void 0:t.locale;return(0,n.useCallback)(t=>e.rendererDefault(i,t),[i])};exports.useI18n=a,exports.useI18nDefault=o,exports.useTranslator=i;
2
+ //# sourceMappingURL=translate.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translate.cjs.js","names":["useJsonForms","useCallback","i18nDefaults","rendererDefault","require_locale_rendererLocale","require_locale_en","react","_jsonforms_react","useTranslator","owned","key","fallback","locale","defaultMessage","message","translate","values","name","placeholder","useI18n","i18n","useI18nDefault","_useJsonForms$i18n"],"sources":["../../src/locale/translate.ts"],"sourcesContent":["import { Translator } from '@jsonforms/core';\nimport { useJsonForms } from '@jsonforms/react';\nimport { useCallback } from 'react';\nimport { rendererDefault } from './rendererLocale';\n// `I18nKey` is declared beside the defaults it indexes, not here: re-exporting\n// it from both modules makes `util/index.ts` export the name twice.\nimport { I18nKey, i18nDefaults } from '.';\n\n/**\n * The form's translator with locale defaults for renderer-owned keys.\n * Authored keys keep their supplied fallbacks and are not interpolated here.\n *\n * For the shared components that take a `Translator` rather than using\n * {@link useI18n} - the composite dialog and the summary helper - because they\n * are also reached from cells, which receive one as a prop.\n */\nexport const useTranslator = (): Translator => {\n const { translate, locale } = useJsonForms().i18n ?? {};\n return useCallback(\n (\n key: string,\n defaultMessage?: string,\n values?: Record<string, unknown>,\n ) => {\n const owned = Object.prototype.hasOwnProperty.call(i18nDefaults, key);\n const fallback = owned\n ? rendererDefault(locale, key as I18nKey)\n : defaultMessage;\n const message = translate?.(key, fallback, values) ?? fallback;\n if (!owned || !message || !values) return message;\n return message.replace(/\\{(\\w+)\\}/g, (placeholder, name: string) =>\n values[name] === undefined ? placeholder : String(values[name]),\n );\n },\n [translate, locale],\n ) as Translator;\n};\n\n/**\n * Translates a renderer's own strings - tooltips, dialog buttons, accessible\n * names - through the form's translator.\n *\n * Reads the translator from context rather than through `withTranslateProps`,\n * so a deeply nested component can use it without every ancestor threading a\n * `t` prop down to it.\n *\n * `{name}` placeholders are filled from `values`. Core does no interpolation\n * itself: the specification puts that on the translator, so a message like\n * \"Delete {name}\" renders literally unless someone substitutes.\n */\nexport const useI18n = () => {\n const i18n = useJsonForms().i18n;\n const translate = i18n?.translate;\n /*\n The locale bundle's string is handed to the translator as the *default\n message*, which is what orders the three sources: the form's own catalog\n answers where it has the key, the registered bundle for the current locale\n answers where it does not, and English is what is left. Without this the\n fallback was always English, so a control's built-in strings stayed in\n English however the locale moved - see `rendererLocale.ts`.\n */\n const locale = i18n?.locale;\n return useCallback(\n (key: I18nKey, values?: Record<string, unknown>): string => {\n const fallback = rendererDefault(locale, key);\n const message = translate?.(key, fallback, values) ?? fallback;\n return values === undefined\n ? message\n : message.replace(/\\{(\\w+)\\}/g, (placeholder, name: string) =>\n values[name] === undefined ? placeholder : String(values[name]),\n );\n },\n [translate, locale],\n );\n};\n\n/**\n * The locale-aware default message for one of this package's keys.\n *\n * For the components that translate through a `Translator` they were handed -\n * the cells, the composite dialog, the container indicators - rather than\n * through {@link useI18n}. They have to supply the default message themselves,\n * and reading it straight out of `i18nDefaults` supplies the **English** one,\n * which is where the locale bundle would otherwise have arrived (§6.5). The\n * string then stays English in every language whose catalog does not define\n * that key.\n *\n * Use it in place of `i18nDefaults[key]`:\n *\n * ```ts\n * const d = useI18nDefault();\n * t('file.select', d('file.select'));\n * ```\n */\nexport const useI18nDefault = () => {\n const locale = useJsonForms().i18n?.locale;\n return useCallback((key: I18nKey) => rendererDefault(locale, key), [locale]);\n};\n"],"mappings":"A,4LAgBA,IAAaQ,MAAkC,CAC7C,GAAM,CAAE,YAAW,WAAA,EAAWR,EAAAA,aAAAA,CAAa,CAAC,CAAC,MAAQ,CAAC,EACtD,OAAA,EAAOC,EAAAA,YAAAA,EAEH,EACA,EACA,IACG,CACH,IAAMQ,EAAQ,OAAO,UAAU,eAAe,KAAKP,EAAAA,iBAAcQ,CAAG,EAC9DC,EAAWF,EACbN,EAAAA,gBAAgBS,EAAQF,CAAc,EACtCG,EACEC,GAAAC,GAAA,KAAA,IAAA,GAAUA,EAAYL,EAAKC,EAAUK,CAAM,IAAKL,EAEtD,MADI,CAACF,GAAS,CAACK,GAAW,CAACE,EAAeF,EACnCA,EAAQ,QAAQ,cAAe,EAAa,IACjDE,EAAOC,KAAU,IAAA,GAAYC,EAAc,OAAOF,EAAOC,EAAK,CAChE,CACF,EACA,CAACF,EAAWH,CAAM,CACpB,CACF,EAcaO,MAAgB,CAC3B,IAAMC,GAAA,EAAOpB,EAAAA,aAAAA,CAAa,CAAC,CAAC,KACtBe,EAAAK,GAAA,KAAA,IAAA,GAAYA,EAAM,UASlBR,EAAAQ,GAAA,KAAA,IAAA,GAASA,EAAM,OACrB,OAAA,EAAOnB,EAAAA,YAAAA,EACJ,EAAc,IAA6C,CAC1D,IAAMU,EAAWR,EAAAA,gBAAgBS,EAAQF,CAAG,EACtCI,GAAAC,GAAA,KAAA,IAAA,GAAUA,EAAYL,EAAKC,EAAUK,CAAM,IAAKL,EACtD,OAAOK,IAAW,IAAA,GACdF,EACAA,EAAQ,QAAQ,cAAe,EAAa,IAC1CE,EAAOC,KAAU,IAAA,GAAYC,EAAc,OAAOF,EAAOC,EAAK,CAChE,CACN,EACA,CAACF,EAAWH,CAAM,CACpB,CACF,EAoBaS,MAAuB,C,MAClC,IAAMT,GAAA,GAAA,EAASZ,EAAAA,aAAAA,CAAa,CAAC,CAAC,OAAA,KAAA,IAAA,GAAAsB,EAAM,OACpC,OAAA,EAAOrB,EAAAA,YAAAA,CAAa,GAAiBE,EAAAA,gBAAgBS,EAAQF,CAAG,EAAG,CAACE,CAAM,CAAC,CAC7E,E"}
@@ -0,0 +1,43 @@
1
+ import { Translator } from '@jsonforms/core';
2
+ import { I18nKey } from '.';
3
+ /**
4
+ * The form's translator with locale defaults for renderer-owned keys.
5
+ * Authored keys keep their supplied fallbacks and are not interpolated here.
6
+ *
7
+ * For the shared components that take a `Translator` rather than using
8
+ * {@link useI18n} - the composite dialog and the summary helper - because they
9
+ * are also reached from cells, which receive one as a prop.
10
+ */
11
+ export declare const useTranslator: () => Translator;
12
+ /**
13
+ * Translates a renderer's own strings - tooltips, dialog buttons, accessible
14
+ * names - through the form's translator.
15
+ *
16
+ * Reads the translator from context rather than through `withTranslateProps`,
17
+ * so a deeply nested component can use it without every ancestor threading a
18
+ * `t` prop down to it.
19
+ *
20
+ * `{name}` placeholders are filled from `values`. Core does no interpolation
21
+ * itself: the specification puts that on the translator, so a message like
22
+ * "Delete {name}" renders literally unless someone substitutes.
23
+ */
24
+ export declare const useI18n: () => (key: I18nKey, values?: Record<string, unknown>) => string;
25
+ /**
26
+ * The locale-aware default message for one of this package's keys.
27
+ *
28
+ * For the components that translate through a `Translator` they were handed -
29
+ * the cells, the composite dialog, the container indicators - rather than
30
+ * through {@link useI18n}. They have to supply the default message themselves,
31
+ * and reading it straight out of `i18nDefaults` supplies the **English** one,
32
+ * which is where the locale bundle would otherwise have arrived (§6.5). The
33
+ * string then stays English in every language whose catalog does not define
34
+ * that key.
35
+ *
36
+ * Use it in place of `i18nDefaults[key]`:
37
+ *
38
+ * ```ts
39
+ * const d = useI18nDefault();
40
+ * t('file.select', d('file.select'));
41
+ * ```
42
+ */
43
+ export declare const useI18nDefault: () => (key: I18nKey) => string;
@@ -0,0 +1,25 @@
1
+ import { rendererDefault as e } from "./rendererLocale.esm.js";
2
+ import { enRendererLocale as t } from "./en.esm.js";
3
+ import { useCallback as n } from "react";
4
+ import { useJsonForms as r } from "@jsonforms/react";
5
+ // src/locale/translate.ts
6
+ var i = () => {
7
+ let { translate: i, locale: a } = r().i18n ?? {};
8
+ return n((n, r, o) => {
9
+ let s = Object.prototype.hasOwnProperty.call(t, n), c = s ? e(a, n) : r, l = (i == null ? void 0 : i(n, c, o)) ?? c;
10
+ return !s || !l || !o ? l : l.replace(/\{(\w+)\}/g, (e, t) => o[t] === void 0 ? e : String(o[t]));
11
+ }, [i, a]);
12
+ }, a = () => {
13
+ let t = r().i18n, i = t == null ? void 0 : t.translate, a = t == null ? void 0 : t.locale;
14
+ return n((t, n) => {
15
+ let r = e(a, t), o = (i == null ? void 0 : i(t, r, n)) ?? r;
16
+ return n === void 0 ? o : o.replace(/\{(\w+)\}/g, (e, t) => n[t] === void 0 ? e : String(n[t]));
17
+ }, [i, a]);
18
+ }, o = () => {
19
+ var t;
20
+ let i = (t = r().i18n) == null ? void 0 : t.locale;
21
+ return n((t) => e(i, t), [i]);
22
+ };
23
+ export { a as useI18n, o as useI18nDefault, i as useTranslator };
24
+
25
+ //# sourceMappingURL=translate.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translate.esm.js","names":["i18nDefaults","useTranslator","useJsonForms","useCallback","owned","enRendererLocale","key","fallback","rendererDefault","locale","defaultMessage","message","translate","values","name","placeholder","useI18n","i18n","useI18nDefault","_useJsonForms$i18n"],"sources":["../../src/locale/translate.ts"],"sourcesContent":["import { Translator } from '@jsonforms/core';\nimport { useJsonForms } from '@jsonforms/react';\nimport { useCallback } from 'react';\nimport { rendererDefault } from './rendererLocale';\n// `I18nKey` is declared beside the defaults it indexes, not here: re-exporting\n// it from both modules makes `util/index.ts` export the name twice.\nimport { I18nKey, i18nDefaults } from '.';\n\n/**\n * The form's translator with locale defaults for renderer-owned keys.\n * Authored keys keep their supplied fallbacks and are not interpolated here.\n *\n * For the shared components that take a `Translator` rather than using\n * {@link useI18n} - the composite dialog and the summary helper - because they\n * are also reached from cells, which receive one as a prop.\n */\nexport const useTranslator = (): Translator => {\n const { translate, locale } = useJsonForms().i18n ?? {};\n return useCallback(\n (\n key: string,\n defaultMessage?: string,\n values?: Record<string, unknown>,\n ) => {\n const owned = Object.prototype.hasOwnProperty.call(i18nDefaults, key);\n const fallback = owned\n ? rendererDefault(locale, key as I18nKey)\n : defaultMessage;\n const message = translate?.(key, fallback, values) ?? fallback;\n if (!owned || !message || !values) return message;\n return message.replace(/\\{(\\w+)\\}/g, (placeholder, name: string) =>\n values[name] === undefined ? placeholder : String(values[name]),\n );\n },\n [translate, locale],\n ) as Translator;\n};\n\n/**\n * Translates a renderer's own strings - tooltips, dialog buttons, accessible\n * names - through the form's translator.\n *\n * Reads the translator from context rather than through `withTranslateProps`,\n * so a deeply nested component can use it without every ancestor threading a\n * `t` prop down to it.\n *\n * `{name}` placeholders are filled from `values`. Core does no interpolation\n * itself: the specification puts that on the translator, so a message like\n * \"Delete {name}\" renders literally unless someone substitutes.\n */\nexport const useI18n = () => {\n const i18n = useJsonForms().i18n;\n const translate = i18n?.translate;\n /*\n The locale bundle's string is handed to the translator as the *default\n message*, which is what orders the three sources: the form's own catalog\n answers where it has the key, the registered bundle for the current locale\n answers where it does not, and English is what is left. Without this the\n fallback was always English, so a control's built-in strings stayed in\n English however the locale moved - see `rendererLocale.ts`.\n */\n const locale = i18n?.locale;\n return useCallback(\n (key: I18nKey, values?: Record<string, unknown>): string => {\n const fallback = rendererDefault(locale, key);\n const message = translate?.(key, fallback, values) ?? fallback;\n return values === undefined\n ? message\n : message.replace(/\\{(\\w+)\\}/g, (placeholder, name: string) =>\n values[name] === undefined ? placeholder : String(values[name]),\n );\n },\n [translate, locale],\n );\n};\n\n/**\n * The locale-aware default message for one of this package's keys.\n *\n * For the components that translate through a `Translator` they were handed -\n * the cells, the composite dialog, the container indicators - rather than\n * through {@link useI18n}. They have to supply the default message themselves,\n * and reading it straight out of `i18nDefaults` supplies the **English** one,\n * which is where the locale bundle would otherwise have arrived (§6.5). The\n * string then stays English in every language whose catalog does not define\n * that key.\n *\n * Use it in place of `i18nDefaults[key]`:\n *\n * ```ts\n * const d = useI18nDefault();\n * t('file.select', d('file.select'));\n * ```\n */\nexport const useI18nDefault = () => {\n const locale = useJsonForms().i18n?.locale;\n return useCallback((key: I18nKey) => rendererDefault(locale, key), [locale]);\n};\n"],"mappings":";;;;;AAgBA,IAAaC,UAAkC;CAC7C,IAAM,EAAE,cAAW,cAAWC,EAAa,CAAC,CAAC,QAAQ,CAAC;CACtD,OAAOC,GAEH,GACA,GACA,MACG;EACH,IAAMC,IAAQ,OAAO,UAAU,eAAe,KAAKJ,GAAcM,CAAG,GAC9DC,IAAWH,IACbI,EAAgBC,GAAQH,CAAc,IACtCI,GACEC,KAAAC,KAAA,OAAA,KAAA,IAAUA,EAAYN,GAAKC,GAAUM,CAAM,MAAKN;EAEtD,OADI,CAACH,KAAS,CAACO,KAAW,CAACE,IAAeF,IACnCA,EAAQ,QAAQ,eAAe,GAAa,MACjDE,EAAOC,OAAU,KAAA,IAAYC,IAAc,OAAOF,EAAOC,EAAK,CAChE;CACF,GACA,CAACF,GAAWH,CAAM,CACpB;AACF,GAcaO,UAAgB;CAC3B,IAAMC,IAAOf,EAAa,CAAC,CAAC,MACtBU,IAAAK,KAAA,OAAA,KAAA,IAAYA,EAAM,WASlBR,IAAAQ,KAAA,OAAA,KAAA,IAASA,EAAM;CACrB,OAAOd,GACJ,GAAc,MAA6C;EAC1D,IAAMI,IAAWC,EAAgBC,GAAQH,CAAG,GACtCK,KAAAC,KAAA,OAAA,KAAA,IAAUA,EAAYN,GAAKC,GAAUM,CAAM,MAAKN;EACtD,OAAOM,MAAW,KAAA,IACdF,IACAA,EAAQ,QAAQ,eAAe,GAAa,MAC1CE,EAAOC,OAAU,KAAA,IAAYC,IAAc,OAAOF,EAAOC,EAAK,CAChE;CACN,GACA,CAACF,GAAWH,CAAM,CACpB;AACF,GAoBaS,UAAuB;;CAClC,IAAMT,KAAA,IAASP,EAAa,CAAC,CAAC,SAAA,OAAA,KAAA,IAAAiB,EAAM;CACpC,OAAOhB,GAAa,MAAiBK,EAAgBC,GAAQH,CAAG,GAAG,CAACG,CAAM,CAAC;AAC7E"}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../rolldown-runtime-BocRIvOZ.js"),t=require("../locale/translate.cjs.js"),n=require("./mixedNodeEditor.cjs.js"),r=require("./mixedScalar.cjs.js");let i=require("react");i=e.t(i);let a=require("@jsonforms/react");function o(e,t){return e===`string`||e===`number`||e===`integer`?t:void 0}function s(e,t,n,r){let i=e.path.length===0&&t?t:{type:`Control`,scope:`#`};return n?r(i):i}function c({node:e,path:t,enabled:c,readonly:l,renderers:u,cells:d,detailUiSchema:f,withoutControlLabel:p,rootSchema:m,handleChange:h,MixedTypeSelector:g,wrapStructured:_}){if(!e)return null;let{isNestedPrimitive:v,nodeSchema:y,nodePath:b,nodeTypes:x,nodeType:S}=n.resolveMixedNodeEditor(e,t,m),C=e.path.length>0?i.default.createElement(`div`,{className:`jsonforms-mixed-renderer-detail-type`},i.default.createElement(g,{clearable:!1,disabled:!c||!!l,onChange:t=>n.changeMixedNodeType(e,t,b,m,h),types:x,value:S})):null,w=e.type===`null`?null:i.default.createElement(`div`,{className:`jsonforms-mixed-renderer-detail-control`},i.default.createElement(r.MixedScalarContext.Provider,{value:o(e.type,b)},i.default.createElement(a.JsonFormsDispatch,{schema:y,uischema:s(e,f,v,p),path:b,enabled:c,renderers:u,cells:d,readonly:l}))),T=i.default.createElement(i.default.Fragment,null,C,w);return v?i.default.createElement(`div`,{className:`jsonforms-mixed-renderer-detail-primitive`},T):_(T)}function l({path:e,enabled:t,readonly:n,renderers:s,cells:c,detailUiSchema:l,withoutControlLabel:u,selectedType:d,selectedSchema:f}){return d!==`null`&&f&&l?i.default.createElement(r.MixedScalarContext.Provider,{value:o(d,e)},i.default.createElement(a.JsonFormsDispatch,{schema:f,uischema:u(l),path:e,enabled:t,renderers:s,cells:c,readonly:n})):null}function u({schema:e,uischema:n,path:r,enabled:o,readonly:s,renderers:c,cells:l}){var u;let d=t.useI18n();return((u=n.options)==null?void 0:u.format)===`code`?i.default.createElement(`div`,{role:`alert`},d(`mixed.codeUnavailable`)):i.default.createElement(a.JsonFormsDispatch,{schema:e,uischema:{...n,scope:`#`,options:{...n.options,format:`code`,language:`json`,convertJson:!0,validateJsonSchema:!0,propagateErrors:!0}},path:r,enabled:o,readonly:s,renderers:c,cells:l})}exports.MixedCodeControl=u,exports.MixedDetailControl=l,exports.MixedNodeControl=c;
2
+ //# sourceMappingURL=MixedDetailControl.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MixedDetailControl.cjs.js","names":["resolveMixedNodeEditor","changeMixedNodeType","MixedScalarContext","JsonFormsDispatch","React","useI18n","require_rolldown_runtime","require_locale_translate","require_mixed_mixedNodeEditor","require_mixed_mixedScalar","react","_jsonforms_react","scalarContextPath","type","path","nodeControlUiSchema","uiSchema","node","detailUiSchema","isNestedPrimitive","withoutControlLabel","MixedNodeControl","rootSchema","nodeSelector","MixedTypeSelector","enabled","readonly","value","nodePath","handleChange","nodeTypes","nodeType","nodeControl","nodeSchema","content","wrapStructured","MixedDetailControl","selectedType","selectedSchema","MixedCodeControl","_uischema$options","t","uischema"],"sources":["../../src/mixed/MixedDetailControl.tsx"],"sourcesContent":["import { useI18n } from '../locale/translate';\nimport React from 'react';\nimport { type ControlProps } from '@jsonforms/core';\nimport { JsonFormsDispatch } from '@jsonforms/react';\nimport { type JsonDataType } from './mixedSchema';\nimport { resolveMixedNodeEditor, changeMixedNodeType } from './mixedNodeEditor';\nimport { MixedScalarContext } from './mixedScalar';\nimport { type MixedTreeNode } from './mixedTree';\nimport { type useMixedRenderer } from './useMixedRenderer';\n\ntype MixedRendererState = ReturnType<typeof useMixedRenderer>;\ntype MixedDetailProps = Pick<\n ControlProps,\n 'path' | 'enabled' | 'readonly' | 'renderers' | 'cells'\n> &\n Pick<MixedRendererState, 'detailUiSchema' | 'withoutControlLabel'>;\n\nfunction scalarContextPath(type: string | null | undefined, path: string) {\n return type === 'string' || type === 'number' || type === 'integer'\n ? path\n : undefined;\n}\n\nfunction nodeControlUiSchema(\n node: MixedTreeNode,\n detailUiSchema: MixedDetailProps['detailUiSchema'],\n isNestedPrimitive: boolean,\n withoutControlLabel: MixedDetailProps['withoutControlLabel'],\n) {\n const uiSchema =\n node.path.length === 0 && detailUiSchema\n ? detailUiSchema\n : { type: 'Control', scope: '#' };\n return isNestedPrimitive ? withoutControlLabel(uiSchema) : uiSchema;\n}\n\nexport function MixedNodeControl({\n node,\n path,\n enabled,\n readonly,\n renderers,\n cells,\n detailUiSchema,\n withoutControlLabel,\n rootSchema,\n handleChange,\n MixedTypeSelector,\n wrapStructured,\n}: MixedDetailProps &\n Pick<ControlProps, 'rootSchema' | 'handleChange'> & {\n node?: MixedTreeNode;\n MixedTypeSelector: React.ComponentType<{\n clearable: boolean;\n disabled: boolean;\n types: string[];\n value: string | null;\n onChange: (value: string | undefined) => void;\n }>;\n wrapStructured: (children: React.ReactNode) => React.ReactElement;\n }) {\n if (!node) return null;\n const { isNestedPrimitive, nodeSchema, nodePath, nodeTypes, nodeType } =\n resolveMixedNodeEditor(node, path, rootSchema);\n const nodeSelector =\n node.path.length > 0 ? (\n <div className='jsonforms-mixed-renderer-detail-type'>\n <MixedTypeSelector\n clearable={false}\n disabled={!enabled || Boolean(readonly)}\n onChange={(value) =>\n changeMixedNodeType(\n node,\n value as JsonDataType | undefined,\n nodePath,\n rootSchema,\n handleChange,\n )\n }\n types={nodeTypes}\n value={nodeType}\n />\n </div>\n ) : null;\n const nodeControl =\n node.type === 'null' ? null : (\n <div className='jsonforms-mixed-renderer-detail-control'>\n <MixedScalarContext.Provider\n value={scalarContextPath(node.type, nodePath)}\n >\n <JsonFormsDispatch\n schema={nodeSchema}\n uischema={nodeControlUiSchema(\n node,\n detailUiSchema,\n isNestedPrimitive,\n withoutControlLabel,\n )}\n path={nodePath}\n enabled={enabled}\n renderers={renderers}\n cells={cells}\n readonly={readonly}\n />\n </MixedScalarContext.Provider>\n </div>\n );\n\n const content = (\n <>\n {nodeSelector}\n {nodeControl}\n </>\n );\n if (isNestedPrimitive) {\n return (\n <div className='jsonforms-mixed-renderer-detail-primitive'>{content}</div>\n );\n }\n return wrapStructured(content);\n}\nexport function MixedDetailControl({\n path,\n enabled,\n readonly,\n renderers,\n cells,\n detailUiSchema,\n withoutControlLabel,\n selectedType,\n selectedSchema,\n}: MixedDetailProps &\n Pick<MixedRendererState, 'selectedType' | 'selectedSchema'>) {\n return selectedType !== 'null' && selectedSchema && detailUiSchema ? (\n <MixedScalarContext.Provider value={scalarContextPath(selectedType, path)}>\n <JsonFormsDispatch\n schema={selectedSchema}\n uischema={withoutControlLabel(detailUiSchema)}\n path={path}\n enabled={enabled}\n renderers={renderers}\n cells={cells}\n readonly={readonly}\n />\n </MixedScalarContext.Provider>\n ) : null;\n}\nexport function MixedCodeControl({\n schema,\n uischema,\n path,\n enabled,\n readonly,\n renderers,\n cells,\n}: ControlProps) {\n const t = useI18n();\n if (uischema.options?.format === 'code')\n return <div role='alert'>{t('mixed.codeUnavailable')}</div>;\n return (\n <JsonFormsDispatch\n schema={schema}\n uischema={{\n ...uischema,\n scope: '#',\n options: {\n ...uischema.options,\n format: 'code',\n language: 'json',\n convertJson: true,\n validateJsonSchema: true,\n propagateErrors: true,\n },\n }}\n path={path}\n enabled={enabled}\n readonly={readonly}\n renderers={renderers}\n cells={cells}\n />\n );\n}\n"],"mappings":"A,wSAiBA,SAASY,EAAkB,EAAiC,EAAc,CACxE,OAAOC,IAAS,UAAYA,IAAS,UAAYA,IAAS,UACtDC,EACA,IAAA,EACN,CAEA,SAASC,EACP,EACA,EACA,EACA,EACA,CACA,IAAMC,EACJC,EAAK,KAAK,SAAW,GAAKC,EACtBA,EACA,CAAE,KAAM,UAAW,MAAO,GAAI,EACpC,OAAOC,EAAoBC,EAAoBJ,CAAQ,EAAIA,CAC7D,CAEA,SAAgBK,EAAiB,CAC/B,OACA,OACA,UACA,WACA,YACA,QACA,iBACA,sBACA,aACA,eACA,oBACA,kBAYG,CACH,GAAI,CAACJ,EAAM,OAAO,KAClB,GAAM,CAAE,oBAAmB,aAAY,WAAU,YAAW,YAC1DjB,EAAAA,uBAAuBiB,EAAMH,EAAMQ,CAAU,EACzCC,EACJN,EAAK,KAAK,OAAS,EACjBP,EAAA,QAAA,cAAC,MAAD,CAAK,UAAU,sCAgBV,EAfHA,EAAA,QAAA,cAACc,EAAD,CACE,UAAW,GACX,SAAU,CAACC,GAAW,EAAQC,EAC9B,SAAW,GACTzB,EAAAA,oBACEgB,EACAU,EACAC,EACAN,EACAO,CACF,EAEF,MAAOC,EACP,MAAOC,CACR,CAAA,CACE,EACH,KACAC,EACJf,EAAK,OAAS,OAAS,KACrBP,EAAA,QAAA,cAAC,MAAD,CAAK,UAAU,yCAmBV,EAlBHA,EAAA,QAAA,cAACR,EAAAA,mBAAmB,SAApB,CACE,MAAOU,EAAkBK,EAAK,KAAMW,CAAQ,CAgBjB,EAd3BlB,EAAA,QAAA,cAACP,EAAAA,kBAAD,CACE,OAAQ8B,EACR,SAAUlB,EACRE,EACAC,EACAC,EACAC,CACF,EACA,KAAMQ,EACG,UACE,YACJ,QACG,UACX,CAAA,CAC0B,CAC1B,EAGHM,EACJxB,EAAA,QAAA,cAAAN,EAAAA,QAAA,SAAA,KACGmB,EACAS,CACD,EAOJ,OALIb,EAEAT,EAAA,QAAA,cAAC,MAAD,CAAK,UAAU,2CAA0D,EAAbwB,CAAa,EAGtEC,EAAeD,CAAO,CAC/B,CACA,SAAgBE,EAAmB,CACjC,OACA,UACA,WACA,YACA,QACA,iBACA,sBACA,eACA,kBAE6D,CAC7D,OAAOC,IAAiB,QAAUC,GAAkBpB,EAClDR,EAAA,QAAA,cAACR,EAAAA,mBAAmB,SAApB,CAA6B,MAAOU,EAAkByB,EAAcvB,CAAI,CAU3C,EAT3BJ,EAAA,QAAA,cAACP,EAAAA,kBAAD,CACE,OAAQmC,EACR,SAAUlB,EAAoBF,CAAc,EACtC,OACG,UACE,YACJ,QACG,UACX,CAAA,CAC0B,EAC3B,IACN,CACA,SAAgBqB,EAAiB,CAC/B,SACA,WACA,OACA,UACA,WACA,YACA,SACe,C,MACf,IAAME,EAAIpC,EAAAA,QAAQ,EAGlB,QAFA,EAAIqC,EAAS,UAAA,KAAA,IAAA,GAAAF,EAAS,UAAW,OACxB9B,EAAA,QAAA,cAAC,MAAD,CAAK,KAAK,OAAyC,EAAhC+B,EAAE,uBAAuB,CAAO,EAE1D/B,EAAA,QAAA,cAACP,EAAAA,kBAAD,CACU,SACR,SAAU,CACR,GAAGuC,EACH,MAAO,IACP,QAAS,CACP,GAAGA,EAAS,QACZ,OAAQ,OACR,SAAU,OACV,YAAa,GACb,mBAAoB,GACpB,gBAAiB,EACnB,CACF,EACM,OACG,UACC,WACC,YACJ,OACR,CAAA,CAEL,C"}