@koumoul/vjsf 2.22.1 → 3.0.0-alpha.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 (138) hide show
  1. package/package.json +50 -86
  2. package/src/compat/v2.js +82 -0
  3. package/src/compile/index.js +32 -0
  4. package/src/compile/v-jsf-compiled.vue.ejs +83 -0
  5. package/src/components/fragments/node-slot.vue +49 -0
  6. package/src/components/fragments/section-header.vue +52 -0
  7. package/src/components/fragments/text-field-menu.vue +68 -0
  8. package/src/components/node.vue +60 -0
  9. package/src/components/nodes/checkbox.vue +27 -0
  10. package/src/components/nodes/color-picker.vue +43 -0
  11. package/src/components/nodes/date-picker.vue +45 -0
  12. package/src/components/nodes/date-time-picker.vue +20 -0
  13. package/src/components/nodes/expansion-panels.vue +52 -0
  14. package/src/components/nodes/list.vue +112 -0
  15. package/src/components/nodes/number-field.vue +35 -0
  16. package/src/components/nodes/one-of-select.vue +56 -0
  17. package/src/components/nodes/section.vue +30 -0
  18. package/src/components/nodes/select.vue +59 -0
  19. package/src/components/nodes/slider.vue +34 -0
  20. package/src/components/nodes/switch.vue +29 -0
  21. package/src/components/nodes/tabs.vue +63 -0
  22. package/src/components/nodes/text-field.vue +29 -0
  23. package/src/components/nodes/textarea.vue +29 -0
  24. package/src/components/nodes/time-picker.vue +7 -0
  25. package/src/components/nodes/vertical-tabs.vue +70 -0
  26. package/src/components/options.js +25 -0
  27. package/src/components/tree.vue +25 -0
  28. package/src/components/types.ts +59 -0
  29. package/src/components/vjsf.vue +168 -0
  30. package/src/index.js +2 -0
  31. package/src/utils/clone.js +3 -0
  32. package/src/utils/dates.js +52 -0
  33. package/src/utils/props.js +79 -0
  34. package/src/utils/slots.js +19 -0
  35. package/types/compat/v2.d.ts +10 -0
  36. package/types/compat/v2.d.ts.map +1 -0
  37. package/types/compile/index.d.ts +7 -0
  38. package/types/compile/index.d.ts.map +1 -0
  39. package/types/components/fragments/node-slot.vue.d.ts +47 -0
  40. package/types/components/fragments/node-slot.vue.d.ts.map +1 -0
  41. package/types/components/fragments/section-header.vue.d.ts +8 -0
  42. package/types/components/fragments/section-header.vue.d.ts.map +1 -0
  43. package/types/components/fragments/text-field-menu.vue.d.ts +20 -0
  44. package/types/components/fragments/text-field-menu.vue.d.ts.map +1 -0
  45. package/types/components/node.vue.d.ts +10 -0
  46. package/types/components/node.vue.d.ts.map +1 -0
  47. package/types/components/nodes/checkbox.vue.d.ts +10 -0
  48. package/types/components/nodes/checkbox.vue.d.ts.map +1 -0
  49. package/types/components/nodes/color-picker.vue.d.ts +10 -0
  50. package/types/components/nodes/color-picker.vue.d.ts.map +1 -0
  51. package/types/components/nodes/date-picker.vue.d.ts +10 -0
  52. package/types/components/nodes/date-picker.vue.d.ts.map +1 -0
  53. package/types/components/nodes/date-time-picker.vue.d.ts +10 -0
  54. package/types/components/nodes/date-time-picker.vue.d.ts.map +1 -0
  55. package/types/components/nodes/expansion-panels.vue.d.ts +10 -0
  56. package/types/components/nodes/expansion-panels.vue.d.ts.map +1 -0
  57. package/types/components/nodes/list.vue.d.ts +10 -0
  58. package/types/components/nodes/list.vue.d.ts.map +1 -0
  59. package/types/components/nodes/number-field.vue.d.ts +27 -0
  60. package/types/components/nodes/number-field.vue.d.ts.map +1 -0
  61. package/types/components/nodes/one-of-select.vue.d.ts +10 -0
  62. package/types/components/nodes/one-of-select.vue.d.ts.map +1 -0
  63. package/types/components/nodes/section.vue.d.ts +10 -0
  64. package/types/components/nodes/section.vue.d.ts.map +1 -0
  65. package/types/components/nodes/select.vue.d.ts +10 -0
  66. package/types/components/nodes/select.vue.d.ts.map +1 -0
  67. package/types/components/nodes/slider.vue.d.ts +10 -0
  68. package/types/components/nodes/slider.vue.d.ts.map +1 -0
  69. package/types/components/nodes/switch.vue.d.ts +10 -0
  70. package/types/components/nodes/switch.vue.d.ts.map +1 -0
  71. package/types/components/nodes/tabs.vue.d.ts +10 -0
  72. package/types/components/nodes/tabs.vue.d.ts.map +1 -0
  73. package/types/components/nodes/text-field copy.vue.d.ts +10 -0
  74. package/types/components/nodes/text-field copy.vue.d.ts.map +1 -0
  75. package/types/components/nodes/text-field.vue.d.ts +27 -0
  76. package/types/components/nodes/text-field.vue.d.ts.map +1 -0
  77. package/types/components/nodes/textarea.vue.d.ts +27 -0
  78. package/types/components/nodes/textarea.vue.d.ts.map +1 -0
  79. package/types/components/nodes/time-picker.vue.d.ts +3 -0
  80. package/types/components/nodes/time-picker.vue.d.ts.map +1 -0
  81. package/types/components/nodes/vertical-tabs.vue.d.ts +10 -0
  82. package/types/components/nodes/vertical-tabs.vue.d.ts.map +1 -0
  83. package/types/components/options.d.ts +3 -0
  84. package/types/components/options.d.ts.map +1 -0
  85. package/types/components/tree.vue.d.ts +10 -0
  86. package/types/components/tree.vue.d.ts.map +1 -0
  87. package/types/components/types.d.ts +71 -0
  88. package/types/components/types.d.ts.map +1 -0
  89. package/types/components/v-jsf.vue.d.ts +13 -0
  90. package/types/components/v-jsf.vue.d.ts.map +1 -0
  91. package/types/components/vjsf.vue.d.ts +13 -0
  92. package/types/components/vjsf.vue.d.ts.map +1 -0
  93. package/types/index.d.ts +3 -0
  94. package/types/index.d.ts.map +1 -0
  95. package/types/utils/clone.d.ts +3 -0
  96. package/types/utils/clone.d.ts.map +1 -0
  97. package/types/utils/dates.d.ts +7 -0
  98. package/types/utils/dates.d.ts.map +1 -0
  99. package/types/utils/props.d.ts +20 -0
  100. package/types/utils/props.d.ts.map +1 -0
  101. package/types/utils/slots.d.ts +7 -0
  102. package/types/utils/slots.d.ts.map +1 -0
  103. package/.eslintignore +0 -9
  104. package/.eslintrc.js +0 -38
  105. package/.github/workflows/scrape-doc.yml +0 -14
  106. package/.nvmrc +0 -1
  107. package/CONTRIBUTE.md +0 -61
  108. package/FUNDING.yml +0 -1
  109. package/README.md +0 -19
  110. package/babel.config.js +0 -4
  111. package/dist/main.css +0 -67
  112. package/dist/main.js +0 -2
  113. package/dist/main.js.LICENSE.txt +0 -10
  114. package/dist/third-party.js +0 -8
  115. package/dist/third-party.js.LICENSE.txt +0 -8
  116. package/lib/VJsf.css +0 -67
  117. package/lib/VJsf.js +0 -117
  118. package/lib/VJsfNoDeps.js +0 -517
  119. package/lib/deps/third-party.js +0 -16
  120. package/lib/mixins/ColorProperty.js +0 -45
  121. package/lib/mixins/DateProperty.js +0 -170
  122. package/lib/mixins/Dependent.js +0 -69
  123. package/lib/mixins/EditableArray.js +0 -418
  124. package/lib/mixins/FileProperty.js +0 -81
  125. package/lib/mixins/MarkdownEditor.js +0 -183
  126. package/lib/mixins/ObjectContainer.js +0 -351
  127. package/lib/mixins/SelectProperty.js +0 -400
  128. package/lib/mixins/SimpleProperty.js +0 -165
  129. package/lib/mixins/Tooltip.js +0 -42
  130. package/lib/mixins/Validatable.js +0 -119
  131. package/lib/utils/expr-eval-parser.js +0 -21
  132. package/lib/utils/is-cyclic.js +0 -34
  133. package/lib/utils/json-refs.js +0 -209
  134. package/lib/utils/options.js +0 -328
  135. package/lib/utils/rules.js +0 -81
  136. package/lib/utils/schema.js +0 -100
  137. package/lib/utils/select.js +0 -141
  138. package/webpack.config.js +0 -46
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expansion-panels.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/expansion-panels.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ modelValue: import("../types.js").VjsfListNode;
3
+ statefulLayout: import("@json-layout/core").StatefulLayout;
4
+ $props: {
5
+ readonly modelValue?: import("../types.js").VjsfListNode | undefined;
6
+ readonly statefulLayout?: import("@json-layout/core").StatefulLayout | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
+ export default _default;
10
+ //# sourceMappingURL=list.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/list.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ modelValue: {
3
+ /** @type import('vue').PropType<import('../types.js').VjsfNumberFieldNode> */
4
+ type: import('vue').PropType<import('../types.js').VjsfNumberFieldNode>;
5
+ required: true;
6
+ };
7
+ statefulLayout: {
8
+ /** @type import('vue').PropType<import('@json-layout/core').StatefulLayout> */
9
+ type: import('vue').PropType<import('@json-layout/core').StatefulLayout>;
10
+ required: true;
11
+ };
12
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
13
+ [key: string]: any;
14
+ }>, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ modelValue: {
16
+ /** @type import('vue').PropType<import('../types.js').VjsfNumberFieldNode> */
17
+ type: import('vue').PropType<import('../types.js').VjsfNumberFieldNode>;
18
+ required: true;
19
+ };
20
+ statefulLayout: {
21
+ /** @type import('vue').PropType<import('@json-layout/core').StatefulLayout> */
22
+ type: import('vue').PropType<import('@json-layout/core').StatefulLayout>;
23
+ required: true;
24
+ };
25
+ }>>, {}, {}>;
26
+ export default _default;
27
+ //# sourceMappingURL=number-field.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number-field.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/number-field.vue.js"],"names":[],"mappings":";;QAUM,8EAA8E;cAApE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,aAAa,EAAE,mBAAmB,CAAC;;;;QAK3E,+EAA+E;cAArE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,mBAAmB,EAAE,cAAc,CAAC;;;;;;;QAL5E,8EAA8E;cAApE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,aAAa,EAAE,mBAAmB,CAAC;;;;QAK3E,+EAA+E;cAArE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,mBAAmB,EAAE,cAAc,CAAC"}
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ modelValue: import("../types.js").VjsfOneOfSelectNode;
3
+ statefulLayout: import("@json-layout/core").StatefulLayout;
4
+ $props: {
5
+ readonly modelValue?: import("../types.js").VjsfOneOfSelectNode | undefined;
6
+ readonly statefulLayout?: import("@json-layout/core").StatefulLayout | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
+ export default _default;
10
+ //# sourceMappingURL=one-of-select.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"one-of-select.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/one-of-select.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ modelValue: import("../types.js").VjsfSectionNode;
3
+ statefulLayout: import("@json-layout/core").StatefulLayout;
4
+ $props: {
5
+ readonly modelValue?: import("../types.js").VjsfSectionNode | undefined;
6
+ readonly statefulLayout?: import("@json-layout/core").StatefulLayout | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
+ export default _default;
10
+ //# sourceMappingURL=section.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/section.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ modelValue: import("../types.js").VjsfSelectNode;
3
+ statefulLayout: import("@json-layout/core").StatefulLayout;
4
+ $props: {
5
+ readonly modelValue?: import("../types.js").VjsfSelectNode | undefined;
6
+ readonly statefulLayout?: import("@json-layout/core").StatefulLayout | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
+ export default _default;
10
+ //# sourceMappingURL=select.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/select.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ modelValue: import("../types.js").VjsfSliderNode;
3
+ statefulLayout: import("@json-layout/core").StatefulLayout;
4
+ $props: {
5
+ readonly modelValue?: import("../types.js").VjsfSliderNode | undefined;
6
+ readonly statefulLayout?: import("@json-layout/core").StatefulLayout | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
+ export default _default;
10
+ //# sourceMappingURL=slider.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/slider.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ modelValue: import("../types.js").VjsfSwitchNode;
3
+ statefulLayout: import("@json-layout/core").StatefulLayout;
4
+ $props: {
5
+ readonly modelValue?: import("../types.js").VjsfSwitchNode | undefined;
6
+ readonly statefulLayout?: import("@json-layout/core").StatefulLayout | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
+ export default _default;
10
+ //# sourceMappingURL=switch.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/switch.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ modelValue: import("../types.js").VjsfTabsNode;
3
+ statefulLayout: import("@json-layout/core").StatefulLayout;
4
+ $props: {
5
+ readonly modelValue?: import("../types.js").VjsfTabsNode | undefined;
6
+ readonly statefulLayout?: import("@json-layout/core").StatefulLayout | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
+ export default _default;
10
+ //# sourceMappingURL=tabs.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/tabs.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ modelValue: import("../../../../node_modules/@json-layout/core/types/state/types.js").TextFieldNode;
3
+ statefulLayout: import("@json-layout/core").StatefulLayout;
4
+ $props: {
5
+ readonly modelValue?: import("../../../../node_modules/@json-layout/core/types/state/types.js").TextFieldNode | undefined;
6
+ readonly statefulLayout?: import("@json-layout/core").StatefulLayout | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
+ export default _default;
10
+ //# sourceMappingURL=text-field%20copy.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-field copy.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/text-field copy.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ modelValue: {
3
+ /** @type import('vue').PropType<import('../types.js').VjsfTextFieldNode> */
4
+ type: import('vue').PropType<import('../types.js').VjsfTextFieldNode>;
5
+ required: true;
6
+ };
7
+ statefulLayout: {
8
+ /** @type import('vue').PropType<import('@json-layout/core').StatefulLayout> */
9
+ type: import('vue').PropType<import('@json-layout/core').StatefulLayout>;
10
+ required: true;
11
+ };
12
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
13
+ [key: string]: any;
14
+ }>, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ modelValue: {
16
+ /** @type import('vue').PropType<import('../types.js').VjsfTextFieldNode> */
17
+ type: import('vue').PropType<import('../types.js').VjsfTextFieldNode>;
18
+ required: true;
19
+ };
20
+ statefulLayout: {
21
+ /** @type import('vue').PropType<import('@json-layout/core').StatefulLayout> */
22
+ type: import('vue').PropType<import('@json-layout/core').StatefulLayout>;
23
+ required: true;
24
+ };
25
+ }>>, {}, {}>;
26
+ export default _default;
27
+ //# sourceMappingURL=text-field.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-field.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/text-field.vue.js"],"names":[],"mappings":";;QAUM,4EAA4E;cAAlE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,aAAa,EAAE,iBAAiB,CAAC;;;;QAKzE,+EAA+E;cAArE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,mBAAmB,EAAE,cAAc,CAAC;;;;;;;QAL5E,4EAA4E;cAAlE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,aAAa,EAAE,iBAAiB,CAAC;;;;QAKzE,+EAA+E;cAArE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,mBAAmB,EAAE,cAAc,CAAC"}
@@ -0,0 +1,27 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ modelValue: {
3
+ /** @type import('vue').PropType<import('../types.js').VjsfTextareaNode> */
4
+ type: import('vue').PropType<import('../types.js').VjsfTextareaNode>;
5
+ required: true;
6
+ };
7
+ statefulLayout: {
8
+ /** @type import('vue').PropType<import('@json-layout/core').StatefulLayout> */
9
+ type: import('vue').PropType<import('@json-layout/core').StatefulLayout>;
10
+ required: true;
11
+ };
12
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
13
+ [key: string]: any;
14
+ }>, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ modelValue: {
16
+ /** @type import('vue').PropType<import('../types.js').VjsfTextareaNode> */
17
+ type: import('vue').PropType<import('../types.js').VjsfTextareaNode>;
18
+ required: true;
19
+ };
20
+ statefulLayout: {
21
+ /** @type import('vue').PropType<import('@json-layout/core').StatefulLayout> */
22
+ type: import('vue').PropType<import('@json-layout/core').StatefulLayout>;
23
+ required: true;
24
+ };
25
+ }>>, {}, {}>;
26
+ export default _default;
27
+ //# sourceMappingURL=textarea.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/textarea.vue.js"],"names":[],"mappings":";;QAUM,2EAA2E;cAAjE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,aAAa,EAAE,gBAAgB,CAAC;;;;QAKxE,+EAA+E;cAArE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,mBAAmB,EAAE,cAAc,CAAC;;;;;;;QAL5E,2EAA2E;cAAjE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,aAAa,EAAE,gBAAgB,CAAC;;;;QAKxE,+EAA+E;cAArE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,mBAAmB,EAAE,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
3
+ //# sourceMappingURL=time-picker.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-picker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/time-picker.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ modelValue: import("../types.js").VjsfVerticalTabsNode;
3
+ statefulLayout: import("@json-layout/core").StatefulLayout;
4
+ $props: {
5
+ readonly modelValue?: import("../types.js").VjsfVerticalTabsNode | undefined;
6
+ readonly statefulLayout?: import("@json-layout/core").StatefulLayout | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
+ export default _default;
10
+ //# sourceMappingURL=vertical-tabs.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vertical-tabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/vertical-tabs.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ /** @type Partial<import("./types.js").VjsfOptions> */
2
+ export const defaultOptions: Partial<import("./types.js").VjsfOptions>;
3
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/components/options.js"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,6BADU,QAAQ,OAAO,YAAY,EAAE,WAAW,CAAC,CAwBlD"}
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ modelValue: import("../../../node_modules/@json-layout/core/types/state/types.js").StateTree;
3
+ statefulLayout: import("@json-layout/core").StatefulLayout;
4
+ $props: {
5
+ readonly modelValue?: import("../../../node_modules/@json-layout/core/types/state/types.js").StateTree | undefined;
6
+ readonly statefulLayout?: import("@json-layout/core").StatefulLayout | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
+ export default _default;
10
+ //# sourceMappingURL=tree.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tree.vue.d.ts","sourceRoot":"","sources":["../../src/components/tree.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,71 @@
1
+ import { StatefulLayoutOptions, StateNode, CheckboxNode, ColorPickerNode, DatePickerNode, DateTimePickerNode, TabsNode, ExpansionPanelsNode, ListNode, NumberFieldNode, OneOfSelectNode, SectionNode, SelectNode, SliderNode, SwitchNode, TextFieldNode, TextareaNode, VerticalTabsNode, CompileOptions } from '@json-layout/core';
2
+ export type Density = 'default' | 'comfortable' | 'compact';
3
+ export type VjsfOptions = StatefulLayoutOptions & CompileOptions & {
4
+ density: Density;
5
+ fieldProps: Record<string, unknown>;
6
+ fieldPropsCompact: Record<string, unknown>;
7
+ fieldPropsComfortable: Record<string, unknown>;
8
+ fieldPropsReadOnly: Record<string, unknown>;
9
+ textfieldProps: Record<string, unknown>;
10
+ textfieldPropsReadOnly: Record<string, unknown>;
11
+ textareaProps: Record<string, unknown>;
12
+ textareaPropsReadOnly: Record<string, unknown>;
13
+ checkboxProps: Record<string, unknown>;
14
+ checkboxPropsReadOnly: Record<string, unknown>;
15
+ switchProps: Record<string, unknown>;
16
+ switchPropsReadOnly: Record<string, unknown>;
17
+ errorAlertProps: Record<string, unknown>;
18
+ vjsfSlots: Record<string, () => unknown>;
19
+ };
20
+ export type VjsfNode = Omit<StateNode, 'options'> & {
21
+ options: VjsfOptions;
22
+ };
23
+ export type VjsfTabsNode = Omit<TabsNode, 'options'> & {
24
+ options: VjsfOptions;
25
+ };
26
+ export type VjsfCheckboxNode = Omit<CheckboxNode, 'options'> & {
27
+ options: VjsfOptions;
28
+ };
29
+ export type VjsfColorPickerNode = Omit<ColorPickerNode, 'options'> & {
30
+ options: VjsfOptions;
31
+ };
32
+ export type VjsfDatePickerNode = Omit<DatePickerNode, 'options'> & {
33
+ options: VjsfOptions;
34
+ };
35
+ export type VjsfDateTimePickerNode = Omit<DateTimePickerNode, 'options'> & {
36
+ options: VjsfOptions;
37
+ };
38
+ export type VjsfExpansionPanelsNode = Omit<ExpansionPanelsNode, 'options'> & {
39
+ options: VjsfOptions;
40
+ };
41
+ export type VjsfListNode = Omit<ListNode, 'options'> & {
42
+ options: VjsfOptions;
43
+ };
44
+ export type VjsfNumberFieldNode = Omit<NumberFieldNode, 'options'> & {
45
+ options: VjsfOptions;
46
+ };
47
+ export type VjsfOneOfSelectNode = Omit<OneOfSelectNode, 'options'> & {
48
+ options: VjsfOptions;
49
+ };
50
+ export type VjsfSectionNode = Omit<SectionNode, 'options'> & {
51
+ options: VjsfOptions;
52
+ };
53
+ export type VjsfSelectNode = Omit<SelectNode, 'options'> & {
54
+ options: VjsfOptions;
55
+ };
56
+ export type VjsfSliderNode = Omit<SliderNode, 'options'> & {
57
+ options: VjsfOptions;
58
+ };
59
+ export type VjsfSwitchNode = Omit<SwitchNode, 'options'> & {
60
+ options: VjsfOptions;
61
+ };
62
+ export type VjsfTextFieldNode = Omit<TextFieldNode, 'options'> & {
63
+ options: VjsfOptions;
64
+ };
65
+ export type VjsfTextareaNode = Omit<TextareaNode, 'options'> & {
66
+ options: VjsfOptions;
67
+ };
68
+ export type VjsfVerticalTabsNode = Omit<VerticalTabsNode, 'options'> & {
69
+ options: VjsfOptions;
70
+ };
71
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/components/types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,13 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ $emit: (event: "update:modelValue" | "update:state", ...args: any[]) => void;
3
+ options: Partial<Omit<import("./types.js").VjsfOptions, "width">>;
4
+ modelValue: string | number | boolean | Record<string, any>;
5
+ schema: Record<string, any>;
6
+ $props: {
7
+ readonly options?: Partial<Omit<import("./types.js").VjsfOptions, "width">> | undefined;
8
+ readonly modelValue?: string | number | boolean | Record<string, any> | undefined;
9
+ readonly schema?: Record<string, any> | undefined;
10
+ };
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
12
+ export default _default;
13
+ //# sourceMappingURL=v-jsf.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v-jsf.vue.d.ts","sourceRoot":"","sources":["../../src/components/v-jsf.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ $emit: (event: "update:modelValue" | "update:state", ...args: any[]) => void;
3
+ options: Partial<Omit<import("./types.js").VjsfOptions, "width">>;
4
+ modelValue: string | number | boolean | Record<string, any>;
5
+ schema: Record<string, any>;
6
+ $props: {
7
+ readonly options?: Partial<Omit<import("./types.js").VjsfOptions, "width">> | undefined;
8
+ readonly modelValue?: string | number | boolean | Record<string, any> | undefined;
9
+ readonly schema?: Record<string, any> | undefined;
10
+ };
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
12
+ export default _default;
13
+ //# sourceMappingURL=vjsf.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vjsf.vue.d.ts","sourceRoot":"","sources":["../../src/components/vjsf.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export { Vjsf };
2
+ import Vjsf from './components/vjsf.vue';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";iBAAiB,uBAAuB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: <T>(input: T) => T;
2
+ export default _default;
3
+ //# sourceMappingURL=clone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clone.d.ts","sourceRoot":"","sources":["../../src/utils/clone.js"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export function padTimeComponent(val: number): string;
2
+ export function getDateTimeWithOffset(date: Date): string;
3
+ export function getDateTimeParts(date: Date): string[];
4
+ export function getDateTime(parts: [string, string]): string;
5
+ export function getShortTime(time: string | undefined): string;
6
+ export function getLongTime(time: string): string;
7
+ //# sourceMappingURL=dates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dates.d.ts","sourceRoot":"","sources":["../../src/utils/dates.js"],"names":[],"mappings":"AAGO,sCAAoC,MAAM,UAGhD;AAMM,4CAAyC,IAAI,UAQnD;AAIM,uCAAoC,IAAI,YAE9C;AAIM,mCAA+B,CAAC,MAAM,EAAE,MAAM,CAAC,UAWrD;AAGM,mCAAgC,MAAM,GAAG,SAAS,UAGxD;AAEM,kCAA+B,MAAM,UAE3C"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @param {(Record<string, any> | undefined)[]} propsLevels
3
+ * @returns Record<string, any>
4
+ */
5
+ export function mergePropsLevels(propsLevels: (Record<string, any> | undefined)[]): Record<string, any>;
6
+ /**
7
+ * @param {import('@json-layout/core').StateNode} node
8
+ * @param {import('@json-layout/core').StatefulLayout} statefulLayout
9
+ * @param {boolean} isMainComp
10
+ * @returns {Record<string, any>}
11
+ */
12
+ export function getInputProps(node: import('@json-layout/core').StateNode, statefulLayout: import('@json-layout/core').StatefulLayout, isMainComp?: boolean): Record<string, any>;
13
+ /**
14
+ * @param {import('@json-layout/core').StateNode} node
15
+ * @param {string} comp
16
+ * @param {boolean} isMainComp
17
+ * @returns {Record<string, any>}
18
+ */
19
+ export function getCompProps(node: import('@json-layout/core').StateNode, comp: string, isMainComp?: boolean): Record<string, any>;
20
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/utils/props.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,8CAHW,CAAC,OAAO,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC,EAAE,uBAc7C;AAID;;;;;GAKG;AACH,oCALW,OAAO,mBAAmB,EAAE,SAAS,kBACrC,OAAO,mBAAmB,EAAE,cAAc,eAC1C,OAAO,GACL,OAAO,MAAM,EAAE,GAAG,CAAC,CAiC/B;AAGD;;;;;GAKG;AACH,mCALW,OAAO,mBAAmB,EAAE,SAAS,QACrC,MAAM,eACN,OAAO,GACL,OAAO,MAAM,EAAE,GAAG,CAAC,CAY/B"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @param {import('@json-layout/core').StateNode} node
3
+ * @param {import('@json-layout/core').StatefulLayout} statefulLayout
4
+ * @returns {Record<string, any>}
5
+ */
6
+ export function getCompSlots(node: import('@json-layout/core').StateNode, statefulLayout: import('@json-layout/core').StatefulLayout): Record<string, any>;
7
+ //# sourceMappingURL=slots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../src/utils/slots.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,mCAJW,OAAO,mBAAmB,EAAE,SAAS,kBACrC,OAAO,mBAAmB,EAAE,cAAc,GACxC,OAAO,MAAM,EAAE,GAAG,CAAC,CAW/B"}
package/.eslintignore DELETED
@@ -1,9 +0,0 @@
1
- /node_modules/
2
- /lib/utils/json-refs.js
3
- /dist
4
- /test-apps
5
- /coverage
6
- /stats.json
7
- /doc/.nuxt
8
- /doc/dist
9
- /doc/node_modules
package/.eslintrc.js DELETED
@@ -1,38 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- browser: true
5
- },
6
- "globals": {
7
- "expect": true
8
- },
9
- extends: [
10
- // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
11
- 'standard',
12
- "plugin:vue/essential",
13
- "eslint:recommended",
14
- "standard",
15
- "plugin:vue/recommended",
16
- 'plugin:jest/recommended',
17
- 'plugin:jest/style'
18
- ],
19
- plugins: ['jest'],
20
- // add your custom rules here
21
- rules: {
22
- // allow paren-less arrow functions
23
- 'arrow-parens': 0,
24
- // allow async-await
25
- 'generator-star-spacing': 0,
26
- // allow debugger during development
27
- 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
28
- // This rule is required because atom vue-format package remove the space
29
- 'space-before-function-paren': 0,
30
- "vue/no-v-html": "off",
31
- "vue/multi-word-component-names": "off",
32
- "node/no-deprecated-api": "off",
33
- "vue/no-mutating-props": "off",
34
- "vue/require-prop-types": "off",
35
- "vue/no-useless-template-attributes": "off",
36
- "vue/singleline-html-element-content-newline": "off"
37
- }
38
- }
@@ -1,14 +0,0 @@
1
- name: Scrape documentation for search engine
2
-
3
- on:
4
- push:
5
- # branches: [ 'master' ]
6
- tags: [ 'v*.*.*' ]
7
-
8
- jobs:
9
- publish-doc:
10
- runs-on: ubuntu-latest
11
- steps:
12
- - run: |
13
- curl -XPOST "${{ secrets.TRIGGER_DOC_SCRAPING }}&delay=300"
14
-
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- v16.13.0
package/CONTRIBUTE.md DELETED
@@ -1,61 +0,0 @@
1
- # Contribute
2
-
3
- Pull requests are welcome, just make sure that you discuss important changes in an issue beforehand, then follow the coding style and run the tests before submitting.
4
-
5
- Run all prepublishing checks at once:
6
-
7
- npm run prepublish
8
-
9
- ## Coding style
10
-
11
- It is enforced by [eslint](https://eslint.org/) and configured in [.eslintrc.js](./.eslintrc.js), you should probably use a plugin to integrate it in your editor.
12
-
13
- Check all rules:
14
-
15
- npm run lint
16
-
17
- ## Development server
18
-
19
- Run a local development server:
20
-
21
- cd doc
22
- npm install
23
- npm run dev
24
-
25
- This simply opens the documentation site in a local web server that will watch your edits to the source code both of the library and of the documentation and its examples.
26
-
27
- Please note that you can open a single example in a lighter page by replacing the # by a slash in the URL (for example http://localhost:3133/examples#basic => http://localhost:3133/examples/basic).
28
-
29
- An additionnal "Development" group of examples is visible, please add in this group examples that do not need to be presented to the users but has some value for maintainers.
30
-
31
- ## Tests
32
-
33
- the test suite is written with [Jest](https://jestjs.io/).
34
-
35
- Run the test suite:
36
-
37
- npm run test
38
-
39
- To increase efficiency test cases and documented examples are the same thing in this project. You can complete the existing examples to cover new functionalities, or you can create new hidden examples (prefixed with "\_") to cover edge cases without increasing the verbosity of the documentation.
40
-
41
- When running tests each example is rendered and a HTML snapshot is extracted and compared to a previous one. When the tests fail because of a snapshot diff, you should check that it is a valid change, then run `npm run test-update`.
42
-
43
- You can also write additionnal test assertions in the examples themselves, see [_resolved-schema.js](./doc/examples/_resolved-schema.js) for example.
44
-
45
- ## Publishing
46
-
47
- Release and publish usin npm:
48
-
49
- ```
50
- npm version minor
51
- npm publish
52
- git push && git push --tags
53
- ```
54
-
55
- To publish a beta version, use prerelease versioning with a npm tag:
56
-
57
- ```
58
- npm version preminor --preid=beta # use prerelease instead of preminor to increment
59
- npm publish --tag=beta
60
- git push && git push --tags
61
- ```
package/FUNDING.yml DELETED
@@ -1 +0,0 @@
1
- github: [koumoul-dev]
package/README.md DELETED
@@ -1,19 +0,0 @@
1
- # vjsf
2
-
3
- *vuetify-jsonschema-form* - *@koumoul/vjsf on npm*
4
-
5
- Create beautiful and low-effort forms that output valid data.
6
-
7
- Based on [Vue.js](https://vuejs.org/) / [Vuetify](https://vuetifyjs.com/) / [JSON Schema](https://json-schema.org/).
8
-
9
- See [the documentation](https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/) and join us [on gitter](https://gitter.im/koumoul-dev/vjsf).
10
-
11
- ![](doc/static/vjsf.gif)
12
-
13
- ## Bug reports
14
-
15
- Bug reports are created using github issues. The examples in the documentation include codepen links, as much as possible please save a duplicate codepen with the minimal schema/config to reproduce your problem.
16
-
17
- ## Contribute
18
-
19
- See [CONTRIBUTE.md](./CONTRIBUTE.md).