@quickflo/quickforms-vue 1.16.15 → 1.16.18
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldRenderer.vue.d.ts","sourceRoot":"","sources":["../../src/components/FieldRenderer.vue"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAKxE,UAAU,KAAK;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;;;;;;;;cAFY,OAAO;cADP,OAAO;;
|
|
1
|
+
{"version":3,"file":"FieldRenderer.vue.d.ts","sourceRoot":"","sources":["../../src/components/FieldRenderer.vue"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAKxE,UAAU,KAAK;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;;;;;;;;cAFY,OAAO;cADP,OAAO;;AAsLpB,wBAMG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HiddenField.vue.d.ts","sourceRoot":"","sources":["../../src/components/HiddenField.vue"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"HiddenField.vue.d.ts","sourceRoot":"","sources":["../../src/components/HiddenField.vue"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;;;AAsEpD,wBAMG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5675,33 +5675,34 @@ const Vh = /* @__PURE__ */ ht(kk, [["render", Pk], ["__scopeId", "data-v-e0ddab6
|
|
|
5675
5675
|
const t = n, i = Ti();
|
|
5676
5676
|
if (!i)
|
|
5677
5677
|
throw new Error("FieldRenderer must be used within a DynamicForm");
|
|
5678
|
-
const r = ee(() => {
|
|
5679
|
-
const
|
|
5680
|
-
if (
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5678
|
+
const r = ee(() => t.schema.const !== void 0 || t.schema.default !== void 0), s = ee(() => {
|
|
5679
|
+
const c = t.schema;
|
|
5680
|
+
if (c["x-hidden"] === !0)
|
|
5681
|
+
return r.value;
|
|
5682
|
+
if (c["x-roles"]) {
|
|
5683
|
+
const h = i.context.roles || [], f = c["x-roles"];
|
|
5684
|
+
if (!Array.isArray(h) || h.length === 0 || !h.some(
|
|
5685
|
+
(d) => f[d] && f[d].includes("view")
|
|
5685
5686
|
)) return !1;
|
|
5686
5687
|
}
|
|
5687
5688
|
return !0;
|
|
5688
|
-
}),
|
|
5689
|
+
}), o = ee(() => {
|
|
5689
5690
|
if (t.readonly || i.readonly) return !0;
|
|
5690
|
-
const
|
|
5691
|
-
if (
|
|
5692
|
-
if (
|
|
5693
|
-
const
|
|
5694
|
-
if (!
|
|
5695
|
-
(
|
|
5691
|
+
const c = t.schema;
|
|
5692
|
+
if (c["x-readonly"] === !0) return !0;
|
|
5693
|
+
if (c["x-roles"]) {
|
|
5694
|
+
const h = i.context.roles || [], f = c["x-roles"];
|
|
5695
|
+
if (!h.some(
|
|
5696
|
+
(d) => f[d] && f[d].includes("edit")
|
|
5696
5697
|
)) return !0;
|
|
5697
5698
|
}
|
|
5698
5699
|
return !1;
|
|
5699
|
-
}),
|
|
5700
|
-
if (!
|
|
5701
|
-
const
|
|
5702
|
-
return
|
|
5703
|
-
}),
|
|
5704
|
-
return Object.defineProperty(
|
|
5700
|
+
}), l = ee(() => {
|
|
5701
|
+
if (!s.value) return null;
|
|
5702
|
+
const c = i.registry.getComponent(t.schema, t.uischema);
|
|
5703
|
+
return c || (console.warn("No renderer found for schema:", t.schema), null);
|
|
5704
|
+
}), a = { props: t, context: i, hasConstOrDefault: r, isVisible: s, isFieldReadonly: o, component: l };
|
|
5705
|
+
return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
|
|
5705
5706
|
}
|
|
5706
5707
|
}), Ek = {
|
|
5707
5708
|
key: 1,
|
|
@@ -24791,7 +24792,7 @@ const A2 = /* @__PURE__ */ ht(_2, [["render", O2], ["__scopeId", "data-v-094fd67
|
|
|
24791
24792
|
e();
|
|
24792
24793
|
const t = n, { value: i } = xt(t.path, t.schema, { label: t.label });
|
|
24793
24794
|
bo(() => {
|
|
24794
|
-
t.schema.const !== void 0
|
|
24795
|
+
i.value === void 0 && (t.schema.const !== void 0 ? i.value = t.schema.const : t.schema.default !== void 0 && (i.value = t.schema.default));
|
|
24795
24796
|
});
|
|
24796
24797
|
const r = { props: t, value: i };
|
|
24797
24798
|
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quickflo/quickforms-vue",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.18",
|
|
4
4
|
"description": "Vue 3 bindings for QuickForms - JSON Schema form generator",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@codemirror/view": "^6.38.8",
|
|
38
38
|
"vee-validate": "^4.12.0",
|
|
39
39
|
"vue-codemirror": "^6.1.1",
|
|
40
|
-
"@quickflo/quickforms": "1.16.
|
|
40
|
+
"@quickflo/quickforms": "1.16.18"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^20.0.0",
|