@jsonforms/core 2.5.2 → 3.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/README.md +1 -1
  2. package/docs/assets/js/search.json +1 -1
  3. package/docs/enums/ruleeffect.html +4 -4
  4. package/docs/globals.html +1124 -1081
  5. package/docs/index.html +70 -88
  6. package/docs/interfaces/addcellrendereraction.html +3 -3
  7. package/docs/interfaces/addrendereraction.html +3 -3
  8. package/docs/interfaces/adduischemaaction.html +3 -3
  9. package/docs/interfaces/andcondition.html +2 -2
  10. package/docs/interfaces/arraycontrolprops.html +22 -22
  11. package/docs/interfaces/arraylayoutprops.html +22 -22
  12. package/docs/interfaces/categorization.html +5 -5
  13. package/docs/interfaces/category.html +5 -5
  14. package/docs/interfaces/cellprops.html +14 -14
  15. package/docs/interfaces/combinatorrendererprops.html +13 -13
  16. package/docs/interfaces/combinatorsubschemarenderinfo.html +3 -3
  17. package/docs/interfaces/composablecondition.html +2 -2
  18. package/docs/interfaces/condition.html +1 -1
  19. package/docs/interfaces/controlelement.html +5 -5
  20. package/docs/interfaces/controlprops.html +17 -17
  21. package/docs/interfaces/controlstate.html +2 -2
  22. package/docs/interfaces/controlwithdetailprops.html +18 -18
  23. package/docs/interfaces/dispatchcellprops.html +13 -13
  24. package/docs/interfaces/dispatchcellstateprops.html +13 -13
  25. package/docs/interfaces/dispatchpropsofarraycontrol.html +4 -4
  26. package/docs/interfaces/dispatchpropsofcontrol.html +1 -1
  27. package/docs/interfaces/dispatchpropsofmultienumcontrol.html +2 -2
  28. package/docs/interfaces/enumcellprops.html +15 -15
  29. package/docs/interfaces/enumoption.html +2 -2
  30. package/docs/interfaces/formatted.html +2 -2
  31. package/docs/interfaces/grouplayout.html +5 -5
  32. package/docs/interfaces/horizontallayout.html +4 -4
  33. package/docs/interfaces/initaction.html +6 -6
  34. package/docs/interfaces/initactionoptions.html +3 -17
  35. package/docs/interfaces/jsonformscellrendererregistryentry.html +2 -2
  36. package/docs/interfaces/jsonformscore.html +7 -21
  37. package/docs/interfaces/jsonformsdefaultdataregistryentry.html +2 -2
  38. package/docs/interfaces/jsonformsextendedstate.html +1 -1
  39. package/docs/interfaces/{jsonformslocalestate.html → jsonformsi18nstate.html} +20 -20
  40. package/docs/interfaces/jsonformsprops.html +9 -24
  41. package/docs/interfaces/jsonformsrendererregistryentry.html +2 -2
  42. package/docs/interfaces/jsonformsstate.html +1 -1
  43. package/docs/interfaces/jsonformsstore.html +5 -5
  44. package/docs/interfaces/jsonformssubstates.html +18 -8
  45. package/docs/interfaces/jsonformsuischemaregistryentry.html +2 -2
  46. package/docs/interfaces/labeldescription.html +2 -2
  47. package/docs/interfaces/labelelement.html +4 -4
  48. package/docs/interfaces/layout.html +4 -4
  49. package/docs/interfaces/layoutprops.html +10 -10
  50. package/docs/interfaces/leafcondition.html +3 -3
  51. package/docs/interfaces/orcondition.html +2 -2
  52. package/docs/interfaces/ownpropsofcell.html +10 -10
  53. package/docs/interfaces/ownpropsofcontrol.html +9 -9
  54. package/docs/interfaces/ownpropsofenum.html +1 -1
  55. package/docs/interfaces/ownpropsofenumcell.html +11 -11
  56. package/docs/interfaces/ownpropsofjsonformsrenderer.html +8 -8
  57. package/docs/interfaces/ownpropsoflayout.html +9 -9
  58. package/docs/interfaces/ownpropsofmasterlistitem.html +6 -6
  59. package/docs/interfaces/ownpropsofrenderer.html +8 -8
  60. package/docs/interfaces/registerdefaultdataaction.html +3 -3
  61. package/docs/interfaces/removecellrendereraction.html +3 -3
  62. package/docs/interfaces/removerendereraction.html +3 -3
  63. package/docs/interfaces/removeuischemaaction.html +2 -2
  64. package/docs/interfaces/rendererprops.html +9 -9
  65. package/docs/interfaces/rule.html +2 -2
  66. package/docs/interfaces/schemabasedcondition.html +3 -3
  67. package/docs/interfaces/scopable.html +1 -1
  68. package/docs/interfaces/setajvaction.html +3 -3
  69. package/docs/interfaces/setconfigaction.html +2 -2
  70. package/docs/interfaces/setlocaleaction.html +3 -3
  71. package/docs/interfaces/setschemaaction.html +2 -2
  72. package/docs/interfaces/{setlocalizeduischemasaction.html → settranslatoraction.html} +29 -15
  73. package/docs/interfaces/setuischemaaction.html +2 -2
  74. package/docs/interfaces/setvalidationmodeaction.html +2 -2
  75. package/docs/interfaces/statepropsofarraycontrol.html +18 -18
  76. package/docs/interfaces/statepropsofarraylayout.html +18 -18
  77. package/docs/interfaces/statepropsofcell.html +13 -13
  78. package/docs/interfaces/statepropsofcombinator.html +12 -12
  79. package/docs/interfaces/statepropsofcontrol.html +16 -16
  80. package/docs/interfaces/statepropsofcontrolwithdetail.html +17 -17
  81. package/docs/interfaces/statepropsofenumcell.html +14 -14
  82. package/docs/interfaces/statepropsofjsonformsrenderer.html +9 -23
  83. package/docs/interfaces/statepropsoflayout.html +10 -10
  84. package/docs/interfaces/statepropsofmasteritem.html +7 -7
  85. package/docs/interfaces/statepropsofrenderer.html +9 -9
  86. package/docs/interfaces/statepropsofscopedrenderer.html +12 -12
  87. package/docs/interfaces/uischemaelement.html +3 -3
  88. package/docs/interfaces/unregisterdefaultdataaction.html +2 -2
  89. package/docs/interfaces/updateaction.html +3 -3
  90. package/docs/interfaces/updatecoreaction.html +6 -6
  91. package/docs/interfaces/updateerrorsaction.html +2 -2
  92. package/docs/interfaces/{setlocalizedschemasaction.html → updatei18naction.html} +43 -15
  93. package/docs/interfaces/verticallayout.html +4 -4
  94. package/docs/interfaces/withclassname.html +1 -1
  95. package/lib/Helpers.d.ts +5 -0
  96. package/lib/Helpers.js +33 -0
  97. package/lib/Helpers.js.map +1 -0
  98. package/lib/actions/actions.d.ts +181 -0
  99. package/lib/actions/actions.js +173 -0
  100. package/lib/actions/actions.js.map +1 -0
  101. package/lib/actions/index.d.ts +1 -180
  102. package/lib/actions/index.js +26 -122
  103. package/lib/actions/index.js.map +1 -1
  104. package/lib/configDefault.js +2 -1
  105. package/lib/configDefault.js.map +1 -1
  106. package/lib/generators/Generate.d.ts +6 -0
  107. package/lib/generators/Generate.js +35 -0
  108. package/lib/generators/Generate.js.map +1 -0
  109. package/lib/generators/index.d.ts +3 -10
  110. package/lib/generators/index.js +28 -9
  111. package/lib/generators/index.js.map +1 -1
  112. package/lib/generators/schema.d.ts +1 -1
  113. package/lib/generators/schema.js +3 -1
  114. package/lib/generators/schema.js.map +1 -1
  115. package/lib/generators/uischema.d.ts +1 -2
  116. package/lib/generators/uischema.js +12 -10
  117. package/lib/generators/uischema.js.map +1 -1
  118. package/lib/i18n/i18nTypes.d.ts +15 -0
  119. package/lib/i18n/i18nTypes.js +3 -0
  120. package/lib/i18n/i18nTypes.js.map +1 -0
  121. package/lib/i18n/i18nUtil.d.ts +18 -0
  122. package/lib/i18n/i18nUtil.js +71 -0
  123. package/lib/i18n/i18nUtil.js.map +1 -0
  124. package/lib/i18n/index.d.ts +2 -0
  125. package/lib/i18n/index.js +6 -0
  126. package/lib/i18n/index.js.map +1 -0
  127. package/lib/index.d.ts +6 -18
  128. package/lib/index.js +10 -15
  129. package/lib/index.js.map +1 -1
  130. package/lib/jsonforms-core.js +9 -12
  131. package/lib/jsonforms-core.js.map +1 -1
  132. package/lib/models/draft4.js +2 -1
  133. package/lib/models/draft4.js.map +1 -1
  134. package/lib/models/index.d.ts +5 -0
  135. package/lib/models/index.js +33 -0
  136. package/lib/models/index.js.map +1 -0
  137. package/lib/models/jsonSchema.js +24 -0
  138. package/lib/models/jsonSchema.js.map +1 -1
  139. package/lib/models/uischema.js +29 -2
  140. package/lib/models/uischema.js.map +1 -1
  141. package/lib/reducers/cells.d.ts +1 -1
  142. package/lib/reducers/cells.js +27 -1
  143. package/lib/reducers/cells.js.map +1 -1
  144. package/lib/reducers/config.d.ts +1 -1
  145. package/lib/reducers/config.js +5 -3
  146. package/lib/reducers/config.js.map +1 -1
  147. package/lib/reducers/core.d.ts +5 -7
  148. package/lib/reducers/core.js +78 -63
  149. package/lib/reducers/core.js.map +1 -1
  150. package/lib/reducers/default-data.d.ts +1 -1
  151. package/lib/reducers/default-data.js +6 -3
  152. package/lib/reducers/default-data.js.map +1 -1
  153. package/lib/reducers/i18n.d.ts +8 -11
  154. package/lib/reducers/i18n.js +40 -23
  155. package/lib/reducers/i18n.js.map +1 -1
  156. package/lib/reducers/index.d.ts +9 -49
  157. package/lib/reducers/index.js +33 -91
  158. package/lib/reducers/index.js.map +1 -1
  159. package/lib/reducers/reducers.d.ts +29 -0
  160. package/lib/reducers/reducers.js +98 -0
  161. package/lib/reducers/reducers.js.map +1 -0
  162. package/lib/reducers/renderers.d.ts +1 -1
  163. package/lib/reducers/renderers.js +27 -1
  164. package/lib/reducers/renderers.js.map +1 -1
  165. package/lib/reducers/selectors.d.ts +15 -0
  166. package/lib/reducers/selectors.js +56 -0
  167. package/lib/reducers/selectors.js.map +1 -0
  168. package/lib/reducers/uischemas.d.ts +2 -2
  169. package/lib/reducers/uischemas.js +9 -6
  170. package/lib/reducers/uischemas.js.map +1 -1
  171. package/lib/store.d.ts +5 -8
  172. package/lib/store.js +24 -0
  173. package/lib/store.js.map +1 -1
  174. package/lib/testers/index.d.ts +1 -204
  175. package/lib/testers/index.js +3 -376
  176. package/lib/testers/index.js.map +1 -1
  177. package/lib/testers/testers.d.ts +203 -0
  178. package/lib/testers/testers.js +421 -0
  179. package/lib/testers/testers.js.map +1 -0
  180. package/lib/util/Formatted.js +24 -0
  181. package/lib/util/Formatted.js.map +1 -1
  182. package/lib/util/array.js +25 -0
  183. package/lib/util/array.js.map +1 -1
  184. package/lib/util/cell.d.ts +11 -4
  185. package/lib/util/cell.js +60 -17
  186. package/lib/util/cell.js.map +1 -1
  187. package/lib/util/combinators.d.ts +2 -3
  188. package/lib/util/combinators.js +5 -2
  189. package/lib/util/combinators.js.map +1 -1
  190. package/lib/util/ids.js +8 -4
  191. package/lib/util/ids.js.map +1 -1
  192. package/lib/util/index.d.ts +11 -45
  193. package/lib/util/index.js +14 -104
  194. package/lib/util/index.js.map +1 -1
  195. package/lib/util/label.d.ts +1 -2
  196. package/lib/util/label.js +7 -4
  197. package/lib/util/label.js.map +1 -1
  198. package/lib/util/path.d.ts +2 -1
  199. package/lib/util/path.js +12 -6
  200. package/lib/util/path.js.map +1 -1
  201. package/lib/util/renderer.d.ts +19 -18
  202. package/lib/util/renderer.js +163 -78
  203. package/lib/util/renderer.js.map +1 -1
  204. package/lib/util/resolvers.d.ts +1 -14
  205. package/lib/util/resolvers.js +9 -215
  206. package/lib/util/resolvers.js.map +1 -1
  207. package/lib/util/runtime.d.ts +12 -2
  208. package/lib/util/runtime.js +59 -17
  209. package/lib/util/runtime.js.map +1 -1
  210. package/lib/util/schema.js +27 -1
  211. package/lib/util/schema.js.map +1 -1
  212. package/lib/util/uischema.d.ts +1 -1
  213. package/lib/util/uischema.js +11 -7
  214. package/lib/util/uischema.js.map +1 -1
  215. package/lib/util/util.d.ts +31 -0
  216. package/lib/util/util.js +112 -0
  217. package/lib/util/util.js.map +1 -0
  218. package/lib/util/validator.d.ts +3 -2
  219. package/lib/util/validator.js +6 -5
  220. package/lib/util/validator.js.map +1 -1
  221. package/package.json +6 -8
  222. package/src/Helpers.ts +38 -0
  223. package/src/actions/actions.ts +345 -0
  224. package/src/actions/index.ts +1 -312
  225. package/src/configDefault.ts +1 -0
  226. package/src/generators/Generate.ts +43 -0
  227. package/src/generators/index.ts +3 -21
  228. package/src/generators/schema.ts +1 -1
  229. package/src/generators/uischema.ts +4 -4
  230. package/src/i18n/i18nTypes.ts +17 -0
  231. package/src/i18n/i18nUtil.ts +105 -0
  232. package/src/i18n/index.ts +2 -0
  233. package/src/index.ts +7 -31
  234. package/src/models/draft4.ts +1 -0
  235. package/src/models/index.ts +30 -0
  236. package/src/models/jsonSchema.ts +1 -0
  237. package/src/models/uischema.ts +1 -0
  238. package/src/reducers/cells.ts +2 -1
  239. package/src/reducers/config.ts +2 -1
  240. package/src/reducers/core.ts +74 -81
  241. package/src/reducers/default-data.ts +2 -1
  242. package/src/reducers/i18n.ts +42 -35
  243. package/src/reducers/index.ts +9 -158
  244. package/src/reducers/reducers.ts +128 -0
  245. package/src/reducers/renderers.ts +2 -1
  246. package/src/reducers/selectors.ts +65 -0
  247. package/src/reducers/uischemas.ts +4 -2
  248. package/src/store.ts +11 -8
  249. package/src/testers/index.ts +1 -516
  250. package/src/testers/testers.ts +547 -0
  251. package/src/util/Formatted.ts +1 -0
  252. package/src/util/array.ts +25 -0
  253. package/src/util/cell.ts +91 -19
  254. package/src/util/combinators.ts +2 -4
  255. package/src/util/ids.ts +1 -0
  256. package/src/util/index.ts +11 -126
  257. package/src/util/label.ts +2 -2
  258. package/src/util/path.ts +4 -1
  259. package/src/util/renderer.ts +170 -88
  260. package/src/util/resolvers.ts +2 -261
  261. package/src/util/runtime.ts +46 -2
  262. package/src/util/schema.ts +26 -1
  263. package/src/util/uischema.ts +2 -1
  264. package/src/util/util.ts +127 -0
  265. package/src/util/validator.ts +5 -8
  266. package/test/i18n/i18nUtil.test.ts +48 -0
  267. package/test/reducers/core.test.ts +33 -226
  268. package/test/util/cell.test.ts +33 -2
  269. package/test/util/renderer.test.ts +543 -31
  270. package/test/util/resolvers.test.ts +1 -59
  271. package/test/util/runtime.test.ts +264 -4
  272. package/docs/interfaces/labels.html +0 -157
  273. package/docs/interfaces/schemaref.html +0 -160
  274. package/docs/interfaces/schemarefs.html +0 -138
@@ -27,6 +27,8 @@ import {
27
27
  AndCondition,
28
28
  ControlElement,
29
29
  createAjv,
30
+ isInherentlyEnabled,
31
+ JsonFormsCore,
30
32
  LeafCondition,
31
33
  OrCondition,
32
34
  RuleEffect,
@@ -221,8 +223,24 @@ test('evalVisibility show valid case based on schema condition and enum', t => {
221
223
  ruleValue: 'bar'
222
224
  };
223
225
  t.is(evalVisibility(uischema, data, undefined, createAjv()), true);
224
- t.is(evalVisibility(uischema, { ...data, ruleValue: 'baz' }, undefined, createAjv()), true);
225
- t.is(evalVisibility(uischema, { ...data, ruleValue: 'foo' }, undefined, createAjv()), false);
226
+ t.is(
227
+ evalVisibility(
228
+ uischema,
229
+ { ...data, ruleValue: 'baz' },
230
+ undefined,
231
+ createAjv()
232
+ ),
233
+ true
234
+ );
235
+ t.is(
236
+ evalVisibility(
237
+ uischema,
238
+ { ...data, ruleValue: 'foo' },
239
+ undefined,
240
+ createAjv()
241
+ ),
242
+ false
243
+ );
226
244
  });
227
245
 
228
246
  test('evalVisibility show invalid case', t => {
@@ -514,6 +532,248 @@ test('evalEnablement disable invalid case based on schema condition', t => {
514
532
  ruleValue: 'bar'
515
533
  };
516
534
  t.is(evalEnablement(uischema, data, undefined, createAjv()), false);
517
- t.is(evalEnablement(uischema, { ...data, ruleValue: 'baz' }, undefined, createAjv()), false);
518
- t.is(evalEnablement(uischema, { ...data, ruleValue: 'foo' }, undefined, createAjv()), true);
535
+ t.is(
536
+ evalEnablement(
537
+ uischema,
538
+ { ...data, ruleValue: 'baz' },
539
+ undefined,
540
+ createAjv()
541
+ ),
542
+ false
543
+ );
544
+ t.is(
545
+ evalEnablement(
546
+ uischema,
547
+ { ...data, ruleValue: 'foo' },
548
+ undefined,
549
+ createAjv()
550
+ ),
551
+ true
552
+ );
553
+ });
554
+
555
+ test('isInherentlyEnabled disabled globally', t => {
556
+ t.false(
557
+ isInherentlyEnabled(
558
+ { jsonforms: { readonly: true } },
559
+ null,
560
+ null,
561
+ null,
562
+ null,
563
+ null
564
+ )
565
+ );
566
+ });
567
+
568
+ test('isInherentlyEnabled disabled by ownProps', t => {
569
+ t.false(
570
+ isInherentlyEnabled(null, { enabled: false }, null, null, null, null)
571
+ );
572
+ });
573
+
574
+ test('isInherentlyEnabled enabled by ownProps', t => {
575
+ t.true(isInherentlyEnabled(null, { enabled: true }, null, null, null, null));
576
+ });
577
+
578
+ test('isInherentlyEnabled disabled by uischema', t => {
579
+ t.false(
580
+ isInherentlyEnabled(
581
+ null,
582
+ null,
583
+ ({ options: { readonly: true } } as unknown) as ControlElement,
584
+ null,
585
+ null,
586
+ null
587
+ )
588
+ );
589
+ });
590
+
591
+ test('isInherentlyEnabled disabled by uischema over ownProps', t => {
592
+ t.false(
593
+ isInherentlyEnabled(
594
+ null,
595
+ { enabled: true },
596
+ ({ options: { readonly: true } } as unknown) as ControlElement,
597
+ null,
598
+ null,
599
+ null
600
+ )
601
+ );
602
+ });
603
+
604
+ test('isInherentlyEnabled enabled by uischema over schema', t => {
605
+ t.true(
606
+ isInherentlyEnabled(
607
+ null,
608
+ null,
609
+ ({ options: { readonly: false } } as unknown) as ControlElement,
610
+ { readOnly: true },
611
+ null,
612
+ null
613
+ )
614
+ );
615
+ });
616
+
617
+ test('isInherentlyEnabled disabled by ownProps over schema enablement', t => {
618
+ t.false(
619
+ isInherentlyEnabled(
620
+ null,
621
+ { enabled: false},
622
+ null,
623
+ { readOnly: false },
624
+ null,
625
+ null
626
+ )
627
+ );
628
+ });
629
+
630
+ test('isInherentlyEnabled disabled by uischema over schema', t => {
631
+ t.false(
632
+ isInherentlyEnabled(
633
+ null,
634
+ null,
635
+ ({ options: { readonly: true } } as unknown) as ControlElement,
636
+ { readOnly: false },
637
+ null,
638
+ null
639
+ )
640
+ );
641
+ });
642
+
643
+ test('isInherentlyEnabled disabled by schema', t => {
644
+ t.false(
645
+ isInherentlyEnabled(null, null, null, { readOnly: true }, null, null)
646
+ );
647
+ });
648
+
649
+ test('isInherentlyEnabled disabled by schema over ownProps', t => {
650
+ t.false(
651
+ isInherentlyEnabled(
652
+ null,
653
+ { enabled: true },
654
+ null,
655
+ { readOnly: true },
656
+ null,
657
+ null
658
+ )
659
+ );
660
+ });
661
+
662
+ test('isInherentlyEnabled disabled by rule', t => {
663
+ const leafCondition: SchemaBasedCondition = {
664
+ scope: '#/properties/ruleValue',
665
+ schema: { type: 'string', pattern: 'bar' }
666
+ };
667
+ const uischema: ControlElement = {
668
+ type: 'Control',
669
+ scope: '#/properties/value',
670
+ rule: {
671
+ effect: RuleEffect.DISABLE,
672
+ condition: leafCondition
673
+ }
674
+ };
675
+ const data = {
676
+ value: 'foo',
677
+ ruleValue: 'bar'
678
+ };
679
+
680
+ t.false(
681
+ isInherentlyEnabled(
682
+ { jsonforms: { core: { ajv: createAjv() } as JsonFormsCore } },
683
+ null,
684
+ uischema,
685
+ null,
686
+ data,
687
+ null
688
+ )
689
+ );
690
+ });
691
+
692
+ test('isInherentlyEnabled disabled by global over rule ', t => {
693
+ const leafCondition: SchemaBasedCondition = {
694
+ scope: '#/properties/ruleValue',
695
+ schema: { type: 'string', pattern: 'bar' }
696
+ };
697
+ const uischema: ControlElement = {
698
+ type: 'Control',
699
+ scope: '#/properties/value',
700
+ rule: {
701
+ effect: RuleEffect.ENABLE,
702
+ condition: leafCondition
703
+ }
704
+ };
705
+ const data = {
706
+ value: 'foo',
707
+ ruleValue: 'bar'
708
+ };
709
+
710
+ t.false(
711
+ isInherentlyEnabled(
712
+ {
713
+ jsonforms: {
714
+ readonly: true,
715
+ core: { ajv: createAjv() } as JsonFormsCore
716
+ }
717
+ },
718
+ null,
719
+ uischema,
720
+ null,
721
+ data,
722
+ null
723
+ )
724
+ );
725
+ });
726
+
727
+ test('isInherentlyEnabled disabled by config', t => {
728
+ t.false(
729
+ isInherentlyEnabled(null, null, null, null, null, { readonly: true })
730
+ );
731
+ });
732
+
733
+ test('isInherentlyEnabled enabled by config over ownProps', t => {
734
+ t.true(
735
+ isInherentlyEnabled(null, { enabled: false }, null, null, null, {
736
+ readonly: false
737
+ })
738
+ );
739
+ });
740
+
741
+ test('isInherentlyEnabled enabled by uischema over config', t => {
742
+ t.true(
743
+ isInherentlyEnabled(
744
+ null,
745
+ null,
746
+ ({ options: { readonly: false } } as unknown) as ControlElement,
747
+ null,
748
+ null,
749
+ { readonly: true }
750
+ )
751
+ );
752
+ });
753
+
754
+ test('isInherentlyEnabled prefer readonly over readOnly', t => {
755
+ t.true(
756
+ isInherentlyEnabled(
757
+ null,
758
+ null,
759
+ ({ options: { readonly: false, readOnly: true } } as unknown) as ControlElement,
760
+ null,
761
+ null,
762
+ null
763
+ )
764
+ );
765
+ t.false(
766
+ isInherentlyEnabled(
767
+ null,
768
+ null,
769
+ ({ options: { readonly: true, readOnly: false } } as unknown) as ControlElement,
770
+ null,
771
+ null,
772
+ null
773
+ )
774
+ );
775
+ });
776
+
777
+ test('isInherentlyEnabled enabled', t => {
778
+ t.true(isInherentlyEnabled(null, null, null, null, null, null));
519
779
  });
@@ -1,157 +0,0 @@
1
- <!doctype html>
2
- <html class="default no-js">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <title>Labels | JSON Forms Core</title>
7
- <meta name="description" content="Documentation for JSON Forms Core">
8
- <meta name="viewport" content="width=device-width, initial-scale=1">
9
- <link rel="stylesheet" href="../assets/css/main.css">
10
- </head>
11
- <body>
12
- <header>
13
- <div class="tsd-page-toolbar">
14
- <div class="container">
15
- <div class="table-wrap">
16
- <div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
17
- <div class="field">
18
- <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
19
- <input id="tsd-search-field" type="text" />
20
- </div>
21
- <ul class="results">
22
- <li class="state loading">Preparing search index...</li>
23
- <li class="state failure">The search index is not available</li>
24
- </ul>
25
- <a href="../index.html" class="title">JSON Forms Core</a>
26
- </div>
27
- <div class="table-cell" id="tsd-widgets">
28
- <div id="tsd-filter">
29
- <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
30
- <div class="tsd-filter-group">
31
- <div class="tsd-select" id="tsd-filter-visibility">
32
- <span class="tsd-select-label">All</span>
33
- <ul class="tsd-select-list">
34
- <li data-value="public">Public</li>
35
- <li data-value="protected">Public/Protected</li>
36
- <li data-value="private" class="selected">All</li>
37
- </ul>
38
- </div>
39
- <input type="checkbox" id="tsd-filter-inherited" checked />
40
- <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
41
- <input type="checkbox" id="tsd-filter-only-exported" />
42
- <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
43
- </div>
44
- </div>
45
- <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
46
- </div>
47
- </div>
48
- </div>
49
- </div>
50
- <div class="tsd-page-title">
51
- <div class="container">
52
- <ul class="tsd-breadcrumb">
53
- <li>
54
- <a href="../globals.html">Globals</a>
55
- </li>
56
- <li>
57
- <a href="labels.html">Labels</a>
58
- </li>
59
- </ul>
60
- <h1>Interface Labels</h1>
61
- </div>
62
- </div>
63
- </header>
64
- <div class="container container-main">
65
- <div class="row">
66
- <div class="col-8 col-content">
67
- <section class="tsd-panel tsd-hierarchy">
68
- <h3>Hierarchy</h3>
69
- <ul class="tsd-hierarchy">
70
- <li>
71
- <span class="target">Labels</span>
72
- </li>
73
- </ul>
74
- </section>
75
- <section class="tsd-panel tsd-kind-interface">
76
- <h3 class="tsd-before-signature">Indexable</h3>
77
- <div class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">[</span>additionalLabels: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">string</span></div>
78
- </section>
79
- <section class="tsd-panel-group tsd-index-group">
80
- <h2>Index</h2>
81
- <section class="tsd-panel tsd-index-panel">
82
- <div class="tsd-index-content">
83
- <section class="tsd-index-section ">
84
- <h3>Properties</h3>
85
- <ul class="tsd-index-list">
86
- <li class="tsd-kind-property tsd-parent-kind-interface"><a href="labels.html#default" class="tsd-kind-icon">default</a></li>
87
- </ul>
88
- </section>
89
- </div>
90
- </section>
91
- </section>
92
- <section class="tsd-panel-group tsd-member-group ">
93
- <h2>Properties</h2>
94
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
95
- <a name="default" class="tsd-anchor"></a>
96
- <h3>default</h3>
97
- <div class="tsd-signature tsd-kind-icon">default<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
98
- <aside class="tsd-sources">
99
- <ul>
100
- <li>Defined in packages/core/src/util/renderer.ts:72</li>
101
- </ul>
102
- </aside>
103
- </section>
104
- </section>
105
- </div>
106
- <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
107
- <nav class="tsd-navigation primary">
108
- <ul>
109
- <li class="globals ">
110
- <a href="../globals.html"><em>Globals</em></a>
111
- </li>
112
- </ul>
113
- </nav>
114
- <nav class="tsd-navigation secondary menu-sticky">
115
- <ul class="before-current">
116
- </ul>
117
- <ul class="current">
118
- <li class="current tsd-kind-interface">
119
- <a href="labels.html" class="tsd-kind-icon">Labels</a>
120
- <ul>
121
- <li class=" tsd-kind-property tsd-parent-kind-interface">
122
- <a href="labels.html#default" class="tsd-kind-icon">default</a>
123
- </li>
124
- </ul>
125
- </li>
126
- </ul>
127
- <ul class="after-current">
128
- </ul>
129
- </nav>
130
- </div>
131
- </div>
132
- </div>
133
- <footer class="with-border-bottom">
134
- <div class="container">
135
- <h2>Legend</h2>
136
- <div class="tsd-legend-group">
137
- <ul class="tsd-legend">
138
- <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
139
- <li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
140
- </ul>
141
- <ul class="tsd-legend">
142
- <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
143
- <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
144
- </ul>
145
- <ul class="tsd-legend">
146
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
147
- </ul>
148
- </div>
149
- </div>
150
- </footer>
151
- <div class="container tsd-generator">
152
- <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
153
- </div>
154
- <div class="overlay"></div>
155
- <script src="../assets/js/main.js"></script>
156
- </body>
157
- </html>
@@ -1,160 +0,0 @@
1
- <!doctype html>
2
- <html class="default no-js">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <title>SchemaRef | JSON Forms Core</title>
7
- <meta name="description" content="Documentation for JSON Forms Core">
8
- <meta name="viewport" content="width=device-width, initial-scale=1">
9
- <link rel="stylesheet" href="../assets/css/main.css">
10
- </head>
11
- <body>
12
- <header>
13
- <div class="tsd-page-toolbar">
14
- <div class="container">
15
- <div class="table-wrap">
16
- <div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
17
- <div class="field">
18
- <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
19
- <input id="tsd-search-field" type="text" />
20
- </div>
21
- <ul class="results">
22
- <li class="state loading">Preparing search index...</li>
23
- <li class="state failure">The search index is not available</li>
24
- </ul>
25
- <a href="../index.html" class="title">JSON Forms Core</a>
26
- </div>
27
- <div class="table-cell" id="tsd-widgets">
28
- <div id="tsd-filter">
29
- <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
30
- <div class="tsd-filter-group">
31
- <div class="tsd-select" id="tsd-filter-visibility">
32
- <span class="tsd-select-label">All</span>
33
- <ul class="tsd-select-list">
34
- <li data-value="public">Public</li>
35
- <li data-value="protected">Public/Protected</li>
36
- <li data-value="private" class="selected">All</li>
37
- </ul>
38
- </div>
39
- <input type="checkbox" id="tsd-filter-inherited" checked />
40
- <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
41
- <input type="checkbox" id="tsd-filter-only-exported" />
42
- <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
43
- </div>
44
- </div>
45
- <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
46
- </div>
47
- </div>
48
- </div>
49
- </div>
50
- <div class="tsd-page-title">
51
- <div class="container">
52
- <ul class="tsd-breadcrumb">
53
- <li>
54
- <a href="../globals.html">Globals</a>
55
- </li>
56
- <li>
57
- <a href="schemaref.html">SchemaRef</a>
58
- </li>
59
- </ul>
60
- <h1>Interface SchemaRef</h1>
61
- </div>
62
- </div>
63
- </header>
64
- <div class="container container-main">
65
- <div class="row">
66
- <div class="col-8 col-content">
67
- <section class="tsd-panel tsd-comment">
68
- <div class="tsd-comment tsd-typography">
69
- <div class="lead">
70
- <p>Interface for describing result of an extracted schema ref</p>
71
- </div>
72
- </div>
73
- </section>
74
- <section class="tsd-panel tsd-hierarchy">
75
- <h3>Hierarchy</h3>
76
- <ul class="tsd-hierarchy">
77
- <li>
78
- <span class="target">SchemaRef</span>
79
- </li>
80
- </ul>
81
- </section>
82
- <section class="tsd-panel-group tsd-index-group">
83
- <h2>Index</h2>
84
- <section class="tsd-panel tsd-index-panel">
85
- <div class="tsd-index-content">
86
- <section class="tsd-index-section ">
87
- <h3>Properties</h3>
88
- <ul class="tsd-index-list">
89
- <li class="tsd-kind-property tsd-parent-kind-interface"><a href="schemaref.html#uri" class="tsd-kind-icon">uri</a></li>
90
- </ul>
91
- </section>
92
- </div>
93
- </section>
94
- </section>
95
- <section class="tsd-panel-group tsd-member-group ">
96
- <h2>Properties</h2>
97
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
98
- <a name="uri" class="tsd-anchor"></a>
99
- <h3>uri</h3>
100
- <div class="tsd-signature tsd-kind-icon">uri<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
101
- <aside class="tsd-sources">
102
- <ul>
103
- <li>Defined in packages/core/src/util/resolvers.ts:204</li>
104
- </ul>
105
- </aside>
106
- </section>
107
- </section>
108
- </div>
109
- <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
110
- <nav class="tsd-navigation primary">
111
- <ul>
112
- <li class="globals ">
113
- <a href="../globals.html"><em>Globals</em></a>
114
- </li>
115
- </ul>
116
- </nav>
117
- <nav class="tsd-navigation secondary menu-sticky">
118
- <ul class="before-current">
119
- </ul>
120
- <ul class="current">
121
- <li class="current tsd-kind-interface">
122
- <a href="schemaref.html" class="tsd-kind-icon">Schema<wbr>Ref</a>
123
- <ul>
124
- <li class=" tsd-kind-property tsd-parent-kind-interface">
125
- <a href="schemaref.html#uri" class="tsd-kind-icon">uri</a>
126
- </li>
127
- </ul>
128
- </li>
129
- </ul>
130
- <ul class="after-current">
131
- </ul>
132
- </nav>
133
- </div>
134
- </div>
135
- </div>
136
- <footer class="with-border-bottom">
137
- <div class="container">
138
- <h2>Legend</h2>
139
- <div class="tsd-legend-group">
140
- <ul class="tsd-legend">
141
- <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
142
- <li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
143
- </ul>
144
- <ul class="tsd-legend">
145
- <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
146
- <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
147
- </ul>
148
- <ul class="tsd-legend">
149
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
150
- </ul>
151
- </div>
152
- </div>
153
- </footer>
154
- <div class="container tsd-generator">
155
- <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
156
- </div>
157
- <div class="overlay"></div>
158
- <script src="../assets/js/main.js"></script>
159
- </body>
160
- </html>