@quickflo/quickforms-quasar 1.14.0 → 1.14.1
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":"QuasarJsonLogicBuilderField.vue.d.ts","sourceRoot":"","sources":["../../src/components/QuasarJsonLogicBuilderField.vue"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAG3D,OAAO,EAEL,KAAK,kBAAkB,EAWxB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"QuasarJsonLogicBuilderField.vue.d.ts","sourceRoot":"","sources":["../../src/components/QuasarJsonLogicBuilderField.vue"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAG3D,OAAO,EAEL,KAAK,kBAAkB,EAWxB,MAAM,oBAAoB,CAAC;AAuT5B,iBAAS,cAAc;;;sBA+nBR,MAAM;;;;QAiee,GAAG;;;sBA3SxB,MAAM;;;;;QA4SgB,GAAG;EAGvC;AAoCD,QAAA,MAAM,eAAe;;;;;;;;;4EAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,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;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -28881,93 +28881,93 @@ const DT = /* @__PURE__ */ Ft({
|
|
|
28881
28881
|
fieldGap: c
|
|
28882
28882
|
} = ti(t.path, t.schema, {
|
|
28883
28883
|
label: t.label
|
|
28884
|
-
}), h = qm(), f = x(() => h == null ? void 0 : h.quickformsDefaults), d =
|
|
28884
|
+
}), h = qm(), f = x(() => h == null ? void 0 : h.quickformsDefaults), d = x(() => {
|
|
28885
|
+
var O, z;
|
|
28886
|
+
const U = t.schema["x-use-template-syntax"], M = (z = (O = f.value) == null ? void 0 : O.jsonlogicbuilder) == null ? void 0 : z.useTemplateSyntax;
|
|
28887
|
+
return U ?? M ?? !1;
|
|
28888
|
+
}), m = Y(cm()), p = Y(!1), g = Y(""), b = Y(null), k = Y(!1);
|
|
28885
28889
|
ve(
|
|
28886
28890
|
() => n.value,
|
|
28887
28891
|
(U) => {
|
|
28888
|
-
if (
|
|
28889
|
-
|
|
28892
|
+
if (k.value) {
|
|
28893
|
+
k.value = !1;
|
|
28890
28894
|
return;
|
|
28891
28895
|
}
|
|
28892
|
-
U && typeof U == "object" ? (
|
|
28893
|
-
useTemplateSyntax:
|
|
28894
|
-
}),
|
|
28896
|
+
U && typeof U == "object" ? (m.value = am(U, {
|
|
28897
|
+
useTemplateSyntax: d.value
|
|
28898
|
+
}), g.value = JSON.stringify(U, null, 2)) : (m.value = cm(), g.value = "{}");
|
|
28895
28899
|
},
|
|
28896
28900
|
{ immediate: !0 }
|
|
28897
28901
|
);
|
|
28898
|
-
function
|
|
28899
|
-
|
|
28900
|
-
const U = lm(
|
|
28901
|
-
useTemplateSyntax:
|
|
28902
|
+
function v() {
|
|
28903
|
+
k.value = !0;
|
|
28904
|
+
const U = lm(m.value, {
|
|
28905
|
+
useTemplateSyntax: d.value
|
|
28902
28906
|
});
|
|
28903
|
-
r(U),
|
|
28904
|
-
}
|
|
28905
|
-
function v(U) {
|
|
28906
|
-
U.push(An()), k();
|
|
28907
|
+
r(U), g.value = JSON.stringify(U, null, 2);
|
|
28907
28908
|
}
|
|
28908
28909
|
function y(U) {
|
|
28909
|
-
U.push(
|
|
28910
|
+
U.push(An()), v();
|
|
28910
28911
|
}
|
|
28911
|
-
function S(U
|
|
28912
|
-
|
|
28913
|
-
O !== -1 && (U.splice(O, 1), k());
|
|
28912
|
+
function S(U) {
|
|
28913
|
+
U.push(TT()), v();
|
|
28914
28914
|
}
|
|
28915
28915
|
function q(U, M) {
|
|
28916
|
-
U.
|
|
28916
|
+
const O = U.findIndex((z) => z.id === M);
|
|
28917
|
+
O !== -1 && (U.splice(O, 1), v());
|
|
28917
28918
|
}
|
|
28918
28919
|
function C(U, M) {
|
|
28919
|
-
U.
|
|
28920
|
+
U.left = M, v();
|
|
28920
28921
|
}
|
|
28921
28922
|
function L(U, M) {
|
|
28922
|
-
U.
|
|
28923
|
+
U.operator = M, v();
|
|
28923
28924
|
}
|
|
28924
28925
|
function N(U, M) {
|
|
28925
|
-
U.
|
|
28926
|
+
U.right = M, v();
|
|
28926
28927
|
}
|
|
28927
|
-
function E() {
|
|
28928
|
-
|
|
28928
|
+
function E(U, M) {
|
|
28929
|
+
U.logic = M, v();
|
|
28930
|
+
}
|
|
28931
|
+
function D() {
|
|
28932
|
+
if (p.value)
|
|
28929
28933
|
try {
|
|
28930
|
-
const U = JSON.parse(
|
|
28931
|
-
|
|
28932
|
-
useTemplateSyntax:
|
|
28933
|
-
}),
|
|
28934
|
+
const U = JSON.parse(g.value);
|
|
28935
|
+
m.value = am(U, {
|
|
28936
|
+
useTemplateSyntax: d.value
|
|
28937
|
+
}), b.value = null, p.value = !1;
|
|
28934
28938
|
} catch {
|
|
28935
|
-
|
|
28939
|
+
b.value = "Invalid JSON. Fix errors before switching to visual mode.";
|
|
28936
28940
|
}
|
|
28937
28941
|
else
|
|
28938
|
-
|
|
28939
|
-
lm(
|
|
28942
|
+
g.value = JSON.stringify(
|
|
28943
|
+
lm(m.value, { useTemplateSyntax: d.value }),
|
|
28940
28944
|
null,
|
|
28941
28945
|
2
|
|
28942
|
-
),
|
|
28946
|
+
), p.value = !0;
|
|
28943
28947
|
}
|
|
28944
|
-
function
|
|
28945
|
-
|
|
28948
|
+
function _(U) {
|
|
28949
|
+
g.value = U;
|
|
28946
28950
|
try {
|
|
28947
28951
|
const M = JSON.parse(U);
|
|
28948
|
-
|
|
28952
|
+
b.value = null, k.value = !0, r(M);
|
|
28949
28953
|
} catch (M) {
|
|
28950
|
-
|
|
28954
|
+
b.value = M.message;
|
|
28951
28955
|
}
|
|
28952
28956
|
}
|
|
28953
|
-
const
|
|
28957
|
+
const P = x(() => {
|
|
28954
28958
|
var O, z;
|
|
28955
28959
|
const U = t.schema["x-operator-display"], M = (z = (O = f.value) == null ? void 0 : O.jsonlogicbuilder) == null ? void 0 : z.operatorDisplayMode;
|
|
28956
28960
|
return U || M || "short";
|
|
28957
|
-
}),
|
|
28961
|
+
}), B = x(() => {
|
|
28958
28962
|
var O, z;
|
|
28959
28963
|
const U = t.schema["x-allowed-operators"], M = (z = (O = f.value) == null ? void 0 : O.jsonlogicbuilder) == null ? void 0 : z.allowedOperators;
|
|
28960
28964
|
return U || M || null;
|
|
28961
|
-
}), B = x(() => {
|
|
28962
|
-
var O, z;
|
|
28963
|
-
const U = t.schema["x-use-template-syntax"], M = (z = (O = f.value) == null ? void 0 : O.jsonlogicbuilder) == null ? void 0 : z.useTemplateSyntax;
|
|
28964
|
-
return U ?? M ?? !1;
|
|
28965
28965
|
}), I = x(() => {
|
|
28966
28966
|
let U = S0;
|
|
28967
|
-
return
|
|
28968
|
-
(M) =>
|
|
28967
|
+
return B.value && (U = U.filter(
|
|
28968
|
+
(M) => B.value.includes(M.value)
|
|
28969
28969
|
)), U.map((M) => {
|
|
28970
|
-
const O =
|
|
28970
|
+
const O = P.value;
|
|
28971
28971
|
let z = "";
|
|
28972
28972
|
switch (O) {
|
|
28973
28973
|
case "icon":
|
|
@@ -29016,15 +29016,15 @@ const DT = /* @__PURE__ */ Ft({
|
|
|
29016
29016
|
if (M && typeof M == "string" && K.value.length > 0 && !I.value.some(
|
|
29017
29017
|
(z) => z.value === M
|
|
29018
29018
|
)) {
|
|
29019
|
-
|
|
29019
|
+
L(
|
|
29020
29020
|
U,
|
|
29021
29021
|
K.value[0].value
|
|
29022
29022
|
);
|
|
29023
29023
|
return;
|
|
29024
29024
|
}
|
|
29025
|
-
M &&
|
|
29025
|
+
M && L(U, M);
|
|
29026
29026
|
}
|
|
29027
|
-
const $ = { props: t, value: n, setValue: r, label: o, hint: s, errorMessage: l, required: a, fieldId: u, fieldGap: c, formContext: h, quickformsDefaults: f,
|
|
29027
|
+
const $ = { props: t, value: n, setValue: r, label: o, hint: s, errorMessage: l, required: a, fieldId: u, fieldGap: c, formContext: h, quickformsDefaults: f, useTemplateSyntax: d, conditionRoot: m, isAdvancedMode: p, jsonText: g, jsonParseError: b, isInternalUpdate: k, syncToValue: v, addCondition: y, addGroup: S, removeCondition: q, updateConditionLeft: C, updateConditionOperator: L, updateConditionRight: N, updateGroupLogic: E, toggleAdvancedMode: D, handleJsonChange: _, operatorDisplayMode: P, allowedOperators: B, operatorOptions: I, filteredOperatorOptions: K, filterOperators: V, handleOperatorInput: F, get QBtn() {
|
|
29028
29028
|
return Lt;
|
|
29029
29029
|
}, get QSelect() {
|
|
29030
29030
|
return Nl;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quickflo/quickforms-quasar",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"description": "Quasar UI components for QuickForms - JSON Schema form generator",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@codemirror/view": "^6.38.8",
|
|
39
39
|
"vee-validate": "^4.12.0",
|
|
40
40
|
"vue-codemirror": "^6.1.1",
|
|
41
|
-
"@quickflo/quickforms": "1.14.
|
|
42
|
-
"@quickflo/quickforms-vue": "1.14.
|
|
41
|
+
"@quickflo/quickforms": "1.14.1",
|
|
42
|
+
"@quickflo/quickforms-vue": "1.14.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@quasar/extras": "^1.17.0",
|