@ghentcdh/json-forms-vue 0.8.2 → 0.8.5
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/form.component.properties.d.ts +4 -0
- package/form.component.vue.d.ts +9 -0
- package/index.js +8 -1
- package/index.mjs +8 -1
- package/package.json +1 -1
|
@@ -17,6 +17,10 @@ export declare const FormComponentProperties: {
|
|
|
17
17
|
type: StringConstructor;
|
|
18
18
|
required: boolean;
|
|
19
19
|
};
|
|
20
|
+
name: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
20
24
|
/** JSON schema describing the shape of the form data. */
|
|
21
25
|
schema: {
|
|
22
26
|
type: PropType<any>;
|
package/form.component.vue.d.ts
CHANGED
|
@@ -4,6 +4,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4
4
|
type: StringConstructor;
|
|
5
5
|
required: boolean;
|
|
6
6
|
};
|
|
7
|
+
name: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
7
11
|
schema: {
|
|
8
12
|
type: import('vue').PropType<any>;
|
|
9
13
|
required: boolean;
|
|
@@ -29,6 +33,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
29
33
|
type: StringConstructor;
|
|
30
34
|
required: boolean;
|
|
31
35
|
};
|
|
36
|
+
name: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
32
40
|
schema: {
|
|
33
41
|
type: import('vue').PropType<any>;
|
|
34
42
|
required: boolean;
|
|
@@ -51,6 +59,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
51
59
|
};
|
|
52
60
|
}>> & Readonly<{}>, {
|
|
53
61
|
disabled: boolean;
|
|
62
|
+
name: string;
|
|
54
63
|
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
55
64
|
formData: Data;
|
|
56
65
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLFormElement>;
|
package/index.js
CHANGED
|
@@ -38,6 +38,7 @@ class FormStore {
|
|
|
38
38
|
const FormComponentProperties = {
|
|
39
39
|
/** Unique id applied to the `<form>` element and used as `<json-forms>` key. */
|
|
40
40
|
id: { type: String, required: true },
|
|
41
|
+
name: { type: String, default: "form" },
|
|
41
42
|
/** JSON schema describing the shape of the form data. */
|
|
42
43
|
schema: { type: Object, required: true },
|
|
43
44
|
/** UI schema describing the layout and controls. */
|
|
@@ -8088,7 +8089,7 @@ const tailwindRenderers = [
|
|
|
8088
8089
|
...vueVanilla.vanillaRenderers,
|
|
8089
8090
|
...customRenderers
|
|
8090
8091
|
];
|
|
8091
|
-
const _hoisted_1$1 = ["id"];
|
|
8092
|
+
const _hoisted_1$1 = ["id", "aria-label"];
|
|
8092
8093
|
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
8093
8094
|
__name: "form.component",
|
|
8094
8095
|
props: FormComponentProperties,
|
|
@@ -8138,6 +8139,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8138
8139
|
return (_ctx, _cache) => {
|
|
8139
8140
|
return vue.openBlock(), vue.createElementBlock("form", {
|
|
8140
8141
|
id: _ctx.id,
|
|
8142
|
+
"aria-label": _ctx.name,
|
|
8141
8143
|
onSubmit: vue.withModifiers(onSubmit, ["prevent"])
|
|
8142
8144
|
}, [
|
|
8143
8145
|
(vue.openBlock(), vue.createBlock(vue.unref(vue$1.JsonForms), {
|
|
@@ -8256,6 +8258,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8256
8258
|
vue.renderSlot(_ctx.$slots, "actions"),
|
|
8257
8259
|
recordId.value ? (vue.openBlock(), vue.createBlock(vue.unref(ui.Btn), {
|
|
8258
8260
|
key: 0,
|
|
8261
|
+
"aria-label": "Cancel",
|
|
8259
8262
|
outline: true,
|
|
8260
8263
|
onClick: cancel
|
|
8261
8264
|
}, {
|
|
@@ -8265,6 +8268,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8265
8268
|
_: 1
|
|
8266
8269
|
})) : (vue.openBlock(), vue.createBlock(vue.unref(ui.Btn), {
|
|
8267
8270
|
key: 1,
|
|
8271
|
+
"aria-label": "Clear",
|
|
8268
8272
|
outline: true,
|
|
8269
8273
|
onClick: clear
|
|
8270
8274
|
}, {
|
|
@@ -8274,6 +8278,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8274
8278
|
_: 1
|
|
8275
8279
|
})),
|
|
8276
8280
|
vue.createVNode(vue.unref(ui.Btn), {
|
|
8281
|
+
"aria-label": "Save",
|
|
8277
8282
|
color: vue.unref(ui.Color).primary,
|
|
8278
8283
|
disabled: submitted.value,
|
|
8279
8284
|
onClick: save
|
|
@@ -8359,6 +8364,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
8359
8364
|
vue.createVNode(vue.unref(ui.Btn), {
|
|
8360
8365
|
color: vue.unref(ui.Color).secondary,
|
|
8361
8366
|
outline: true,
|
|
8367
|
+
"aria-label": "Cancel",
|
|
8362
8368
|
onClick: onCancel
|
|
8363
8369
|
}, {
|
|
8364
8370
|
default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
@@ -8368,6 +8374,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
8368
8374
|
}, 8, ["color"]),
|
|
8369
8375
|
vue.createVNode(vue.unref(ui.Btn), {
|
|
8370
8376
|
disabled: !hasBeenValid.value,
|
|
8377
|
+
"aria-label": "Save",
|
|
8371
8378
|
onClick: onSubmit
|
|
8372
8379
|
}, {
|
|
8373
8380
|
default: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
|
package/index.mjs
CHANGED
|
@@ -36,6 +36,7 @@ class FormStore {
|
|
|
36
36
|
const FormComponentProperties = {
|
|
37
37
|
/** Unique id applied to the `<form>` element and used as `<json-forms>` key. */
|
|
38
38
|
id: { type: String, required: true },
|
|
39
|
+
name: { type: String, default: "form" },
|
|
39
40
|
/** JSON schema describing the shape of the form data. */
|
|
40
41
|
schema: { type: Object, required: true },
|
|
41
42
|
/** UI schema describing the layout and controls. */
|
|
@@ -8086,7 +8087,7 @@ const tailwindRenderers = [
|
|
|
8086
8087
|
...vanillaRenderers,
|
|
8087
8088
|
...customRenderers
|
|
8088
8089
|
];
|
|
8089
|
-
const _hoisted_1$1 = ["id"];
|
|
8090
|
+
const _hoisted_1$1 = ["id", "aria-label"];
|
|
8090
8091
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
8091
8092
|
__name: "form.component",
|
|
8092
8093
|
props: FormComponentProperties,
|
|
@@ -8136,6 +8137,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
8136
8137
|
return (_ctx, _cache) => {
|
|
8137
8138
|
return openBlock(), createElementBlock("form", {
|
|
8138
8139
|
id: _ctx.id,
|
|
8140
|
+
"aria-label": _ctx.name,
|
|
8139
8141
|
onSubmit: withModifiers(onSubmit, ["prevent"])
|
|
8140
8142
|
}, [
|
|
8141
8143
|
(openBlock(), createBlock(unref(JsonForms), {
|
|
@@ -8254,6 +8256,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8254
8256
|
renderSlot(_ctx.$slots, "actions"),
|
|
8255
8257
|
recordId.value ? (openBlock(), createBlock(unref(Btn), {
|
|
8256
8258
|
key: 0,
|
|
8259
|
+
"aria-label": "Cancel",
|
|
8257
8260
|
outline: true,
|
|
8258
8261
|
onClick: cancel
|
|
8259
8262
|
}, {
|
|
@@ -8263,6 +8266,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8263
8266
|
_: 1
|
|
8264
8267
|
})) : (openBlock(), createBlock(unref(Btn), {
|
|
8265
8268
|
key: 1,
|
|
8269
|
+
"aria-label": "Clear",
|
|
8266
8270
|
outline: true,
|
|
8267
8271
|
onClick: clear
|
|
8268
8272
|
}, {
|
|
@@ -8272,6 +8276,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8272
8276
|
_: 1
|
|
8273
8277
|
})),
|
|
8274
8278
|
createVNode(unref(Btn), {
|
|
8279
|
+
"aria-label": "Save",
|
|
8275
8280
|
color: unref(Color).primary,
|
|
8276
8281
|
disabled: submitted.value,
|
|
8277
8282
|
onClick: save
|
|
@@ -8357,6 +8362,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8357
8362
|
createVNode(unref(Btn), {
|
|
8358
8363
|
color: unref(Color).secondary,
|
|
8359
8364
|
outline: true,
|
|
8365
|
+
"aria-label": "Cancel",
|
|
8360
8366
|
onClick: onCancel
|
|
8361
8367
|
}, {
|
|
8362
8368
|
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
@@ -8366,6 +8372,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8366
8372
|
}, 8, ["color"]),
|
|
8367
8373
|
createVNode(unref(Btn), {
|
|
8368
8374
|
disabled: !hasBeenValid.value,
|
|
8375
|
+
"aria-label": "Save",
|
|
8369
8376
|
onClick: onSubmit
|
|
8370
8377
|
}, {
|
|
8371
8378
|
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|