@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.
- package/package.json +50 -86
- package/src/compat/v2.js +82 -0
- package/src/compile/index.js +32 -0
- package/src/compile/v-jsf-compiled.vue.ejs +83 -0
- package/src/components/fragments/node-slot.vue +49 -0
- package/src/components/fragments/section-header.vue +52 -0
- package/src/components/fragments/text-field-menu.vue +68 -0
- package/src/components/node.vue +60 -0
- package/src/components/nodes/checkbox.vue +27 -0
- package/src/components/nodes/color-picker.vue +43 -0
- package/src/components/nodes/date-picker.vue +45 -0
- package/src/components/nodes/date-time-picker.vue +20 -0
- package/src/components/nodes/expansion-panels.vue +52 -0
- package/src/components/nodes/list.vue +112 -0
- package/src/components/nodes/number-field.vue +35 -0
- package/src/components/nodes/one-of-select.vue +56 -0
- package/src/components/nodes/section.vue +30 -0
- package/src/components/nodes/select.vue +59 -0
- package/src/components/nodes/slider.vue +34 -0
- package/src/components/nodes/switch.vue +29 -0
- package/src/components/nodes/tabs.vue +63 -0
- package/src/components/nodes/text-field.vue +29 -0
- package/src/components/nodes/textarea.vue +29 -0
- package/src/components/nodes/time-picker.vue +7 -0
- package/src/components/nodes/vertical-tabs.vue +70 -0
- package/src/components/options.js +25 -0
- package/src/components/tree.vue +25 -0
- package/src/components/types.ts +59 -0
- package/src/components/vjsf.vue +168 -0
- package/src/index.js +2 -0
- package/src/utils/clone.js +3 -0
- package/src/utils/dates.js +52 -0
- package/src/utils/props.js +79 -0
- package/src/utils/slots.js +19 -0
- package/types/compat/v2.d.ts +10 -0
- package/types/compat/v2.d.ts.map +1 -0
- package/types/compile/index.d.ts +7 -0
- package/types/compile/index.d.ts.map +1 -0
- package/types/components/fragments/node-slot.vue.d.ts +47 -0
- package/types/components/fragments/node-slot.vue.d.ts.map +1 -0
- package/types/components/fragments/section-header.vue.d.ts +8 -0
- package/types/components/fragments/section-header.vue.d.ts.map +1 -0
- package/types/components/fragments/text-field-menu.vue.d.ts +20 -0
- package/types/components/fragments/text-field-menu.vue.d.ts.map +1 -0
- package/types/components/node.vue.d.ts +10 -0
- package/types/components/node.vue.d.ts.map +1 -0
- package/types/components/nodes/checkbox.vue.d.ts +10 -0
- package/types/components/nodes/checkbox.vue.d.ts.map +1 -0
- package/types/components/nodes/color-picker.vue.d.ts +10 -0
- package/types/components/nodes/color-picker.vue.d.ts.map +1 -0
- package/types/components/nodes/date-picker.vue.d.ts +10 -0
- package/types/components/nodes/date-picker.vue.d.ts.map +1 -0
- package/types/components/nodes/date-time-picker.vue.d.ts +10 -0
- package/types/components/nodes/date-time-picker.vue.d.ts.map +1 -0
- package/types/components/nodes/expansion-panels.vue.d.ts +10 -0
- package/types/components/nodes/expansion-panels.vue.d.ts.map +1 -0
- package/types/components/nodes/list.vue.d.ts +10 -0
- package/types/components/nodes/list.vue.d.ts.map +1 -0
- package/types/components/nodes/number-field.vue.d.ts +27 -0
- package/types/components/nodes/number-field.vue.d.ts.map +1 -0
- package/types/components/nodes/one-of-select.vue.d.ts +10 -0
- package/types/components/nodes/one-of-select.vue.d.ts.map +1 -0
- package/types/components/nodes/section.vue.d.ts +10 -0
- package/types/components/nodes/section.vue.d.ts.map +1 -0
- package/types/components/nodes/select.vue.d.ts +10 -0
- package/types/components/nodes/select.vue.d.ts.map +1 -0
- package/types/components/nodes/slider.vue.d.ts +10 -0
- package/types/components/nodes/slider.vue.d.ts.map +1 -0
- package/types/components/nodes/switch.vue.d.ts +10 -0
- package/types/components/nodes/switch.vue.d.ts.map +1 -0
- package/types/components/nodes/tabs.vue.d.ts +10 -0
- package/types/components/nodes/tabs.vue.d.ts.map +1 -0
- package/types/components/nodes/text-field copy.vue.d.ts +10 -0
- package/types/components/nodes/text-field copy.vue.d.ts.map +1 -0
- package/types/components/nodes/text-field.vue.d.ts +27 -0
- package/types/components/nodes/text-field.vue.d.ts.map +1 -0
- package/types/components/nodes/textarea.vue.d.ts +27 -0
- package/types/components/nodes/textarea.vue.d.ts.map +1 -0
- package/types/components/nodes/time-picker.vue.d.ts +3 -0
- package/types/components/nodes/time-picker.vue.d.ts.map +1 -0
- package/types/components/nodes/vertical-tabs.vue.d.ts +10 -0
- package/types/components/nodes/vertical-tabs.vue.d.ts.map +1 -0
- package/types/components/options.d.ts +3 -0
- package/types/components/options.d.ts.map +1 -0
- package/types/components/tree.vue.d.ts +10 -0
- package/types/components/tree.vue.d.ts.map +1 -0
- package/types/components/types.d.ts +71 -0
- package/types/components/types.d.ts.map +1 -0
- package/types/components/v-jsf.vue.d.ts +13 -0
- package/types/components/v-jsf.vue.d.ts.map +1 -0
- package/types/components/vjsf.vue.d.ts +13 -0
- package/types/components/vjsf.vue.d.ts.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.d.ts.map +1 -0
- package/types/utils/clone.d.ts +3 -0
- package/types/utils/clone.d.ts.map +1 -0
- package/types/utils/dates.d.ts +7 -0
- package/types/utils/dates.d.ts.map +1 -0
- package/types/utils/props.d.ts +20 -0
- package/types/utils/props.d.ts.map +1 -0
- package/types/utils/slots.d.ts +7 -0
- package/types/utils/slots.d.ts.map +1 -0
- package/.eslintignore +0 -9
- package/.eslintrc.js +0 -38
- package/.github/workflows/scrape-doc.yml +0 -14
- package/.nvmrc +0 -1
- package/CONTRIBUTE.md +0 -61
- package/FUNDING.yml +0 -1
- package/README.md +0 -19
- package/babel.config.js +0 -4
- package/dist/main.css +0 -67
- package/dist/main.js +0 -2
- package/dist/main.js.LICENSE.txt +0 -10
- package/dist/third-party.js +0 -8
- package/dist/third-party.js.LICENSE.txt +0 -8
- package/lib/VJsf.css +0 -67
- package/lib/VJsf.js +0 -117
- package/lib/VJsfNoDeps.js +0 -517
- package/lib/deps/third-party.js +0 -16
- package/lib/mixins/ColorProperty.js +0 -45
- package/lib/mixins/DateProperty.js +0 -170
- package/lib/mixins/Dependent.js +0 -69
- package/lib/mixins/EditableArray.js +0 -418
- package/lib/mixins/FileProperty.js +0 -81
- package/lib/mixins/MarkdownEditor.js +0 -183
- package/lib/mixins/ObjectContainer.js +0 -351
- package/lib/mixins/SelectProperty.js +0 -400
- package/lib/mixins/SimpleProperty.js +0 -165
- package/lib/mixins/Tooltip.js +0 -42
- package/lib/mixins/Validatable.js +0 -119
- package/lib/utils/expr-eval-parser.js +0 -21
- package/lib/utils/is-cyclic.js +0 -34
- package/lib/utils/json-refs.js +0 -209
- package/lib/utils/options.js +0 -328
- package/lib/utils/rules.js +0 -81
- package/lib/utils/schema.js +0 -100
- package/lib/utils/select.js +0 -141
- 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 @@
|
|
|
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":""}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";iBAAiB,uBAAuB"}
|
|
@@ -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
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
|
-
}
|
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
|
-

|
|
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).
|