@quickflo/quickforms-quasar 1.19.21 → 1.19.22
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;AAoT5B,iBAAS,cAAc;;;sBAooBR,MAAM;;;;QAiee,GAAG;;;sBA3SxB,MAAM;;;;;QA4SgB,GAAG;EAGvC;AAsCD,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
|
@@ -29203,7 +29203,7 @@ function fi() {
|
|
|
29203
29203
|
return `cond-${++zT}-${Date.now()}`;
|
|
29204
29204
|
}
|
|
29205
29205
|
function hm(i, e = {}) {
|
|
29206
|
-
return i.conditions.length === 0 ?
|
|
29206
|
+
return i.conditions.length === 0 ? {} : i.conditions.length === 1 ? uc(i.conditions[0], e) : {
|
|
29207
29207
|
[i.logic]: i.conditions.map((t) => uc(t, e))
|
|
29208
29208
|
};
|
|
29209
29209
|
}
|
|
@@ -29256,9 +29256,9 @@ function jT(i, e) {
|
|
|
29256
29256
|
case "isFalse":
|
|
29257
29257
|
return { "==": [t, !1] };
|
|
29258
29258
|
case "isEmpty":
|
|
29259
|
-
return { or: [{ "==": [t, ""] }, { "==": [t, null] }
|
|
29259
|
+
return { or: [{ "==": [t, ""] }, { "==": [t, null] }] };
|
|
29260
29260
|
case "isNotEmpty":
|
|
29261
|
-
return { and: [{ "!=": [t, ""] }, { "!=": [t, null] }
|
|
29261
|
+
return { and: [{ "!=": [t, ""] }, { "!=": [t, null] }] };
|
|
29262
29262
|
default:
|
|
29263
29263
|
return { "==": [t, n] };
|
|
29264
29264
|
}
|
|
@@ -29291,6 +29291,8 @@ function dm(i, e = !1) {
|
|
|
29291
29291
|
function fm(i, e = {}) {
|
|
29292
29292
|
if (typeof i == "boolean" || i === null || i === void 0)
|
|
29293
29293
|
return { logic: "and", conditions: [] };
|
|
29294
|
+
if (typeof i == "object" && Object.keys(i).length === 0)
|
|
29295
|
+
return { logic: "and", conditions: [] };
|
|
29294
29296
|
if ("and" in i && Array.isArray(i.and))
|
|
29295
29297
|
return {
|
|
29296
29298
|
logic: "and",
|
|
@@ -29323,29 +29325,29 @@ function wo(i, e) {
|
|
|
29323
29325
|
function QT(i, e) {
|
|
29324
29326
|
if (typeof i != "object" || i === null)
|
|
29325
29327
|
return null;
|
|
29326
|
-
if ("and" in i && Array.isArray(i.and) && i.and.length ===
|
|
29327
|
-
const [t, n
|
|
29328
|
-
if (t && typeof t == "object" && "!=" in t && n && typeof n == "object" && "!=" in n
|
|
29329
|
-
const
|
|
29330
|
-
if (Array.isArray(
|
|
29328
|
+
if ("and" in i && Array.isArray(i.and) && i.and.length === 2) {
|
|
29329
|
+
const [t, n] = i.and;
|
|
29330
|
+
if (t && typeof t == "object" && "!=" in t && n && typeof n == "object" && "!=" in n) {
|
|
29331
|
+
const r = t["!="], o = n["!="];
|
|
29332
|
+
if (Array.isArray(r) && r[1] === "" && Array.isArray(o) && o[1] === null)
|
|
29331
29333
|
return {
|
|
29332
29334
|
id: fi(),
|
|
29333
29335
|
type: "condition",
|
|
29334
|
-
left: zt(
|
|
29336
|
+
left: zt(r[0], e.useTemplateSyntax),
|
|
29335
29337
|
operator: "isNotEmpty",
|
|
29336
29338
|
right: ""
|
|
29337
29339
|
};
|
|
29338
29340
|
}
|
|
29339
29341
|
}
|
|
29340
|
-
if ("or" in i && Array.isArray(i.or) && i.or.length ===
|
|
29341
|
-
const [t, n
|
|
29342
|
-
if (t && typeof t == "object" && "==" in t && n && typeof n == "object" && "==" in n
|
|
29343
|
-
const
|
|
29344
|
-
if (Array.isArray(
|
|
29342
|
+
if ("or" in i && Array.isArray(i.or) && i.or.length === 2) {
|
|
29343
|
+
const [t, n] = i.or;
|
|
29344
|
+
if (t && typeof t == "object" && "==" in t && n && typeof n == "object" && "==" in n) {
|
|
29345
|
+
const r = t["=="], o = n["=="];
|
|
29346
|
+
if (Array.isArray(r) && r[1] === "" && Array.isArray(o) && o[1] === null)
|
|
29345
29347
|
return {
|
|
29346
29348
|
id: fi(),
|
|
29347
29349
|
type: "condition",
|
|
29348
|
-
left: zt(
|
|
29350
|
+
left: zt(r[0], e.useTemplateSyntax),
|
|
29349
29351
|
operator: "isEmpty",
|
|
29350
29352
|
right: ""
|
|
29351
29353
|
};
|
|
@@ -29636,16 +29638,8 @@ const YT = /* @__PURE__ */ _t({
|
|
|
29636
29638
|
});
|
|
29637
29639
|
}
|
|
29638
29640
|
function ye(v, A) {
|
|
29639
|
-
if (A
|
|
29640
|
-
|
|
29641
|
-
)) {
|
|
29642
|
-
V(
|
|
29643
|
-
v,
|
|
29644
|
-
H.value[0].value
|
|
29645
|
-
);
|
|
29646
|
-
return;
|
|
29647
|
-
}
|
|
29648
|
-
A && V(v, A);
|
|
29641
|
+
if (!A) return;
|
|
29642
|
+
N.value.some((j) => j.value === A) && V(v, A);
|
|
29649
29643
|
}
|
|
29650
29644
|
const x = { props: t, value: n, setValue: r, label: o, hint: s, errorMessage: l, required: a, fieldId: u, fieldGap: c, formContext: h, quickformsDefaults: d, useTemplateSyntax: f, conditionRoot: m, isAdvancedMode: p, jsonText: g, jsonParseError: k, isInternalUpdate: S, syncToValue: y, addCondition: b, addGroup: C, removeCondition: D, updateConditionLeft: O, updateConditionOperator: V, updateConditionRight: z, updateGroupLogic: E, toggleAdvancedMode: B, handleJsonChange: R, operatorDisplayMode: q, leftPlaceholder: _, rightPlaceholder: I, allowedOperators: Y, operatorOptions: N, filteredOperatorOptions: H, filterOperators: J, handleOperatorInput: ye, get QBtn() {
|
|
29651
29645
|
return Vt;
|
|
@@ -29859,7 +29853,6 @@ function S2(i, e, t, n, r, o) {
|
|
|
29859
29853
|
"hide-selected": "",
|
|
29860
29854
|
clearable: "",
|
|
29861
29855
|
"hide-dropdown-icon": "",
|
|
29862
|
-
"new-value-mode": "add-unique",
|
|
29863
29856
|
class: "condition-operator",
|
|
29864
29857
|
disable: t.disabled,
|
|
29865
29858
|
readonly: t.readonly,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonlogic.d.ts","sourceRoot":"","sources":["../../src/utils/jsonlogic.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,IAAI,GACJ,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,UAAU,GACV,YAAY,GACZ,UAAU,GACV,SAAS,GACT,QAAQ,GACR,SAAS,GACT,SAAS,GACT,YAAY,CAAA;AAEhB;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,kBAAkB,CAAA;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAA;IACjD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,WAAW,CAAA;I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zD,eAAO,MAAM,SAAS,EAAE,YAAY,EAiBnC,CAAA;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,kBAAkB,GAAG,YAAY,GAAG,SAAS,CAEhF;AAQD,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAMD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,GAAE,kBAAuB,GAAG,SAAS,CAY5F;AAiMD;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,GAAE,oBAAyB,GAAG,aAAa,CA+BjG;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAsRD;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,eAAe,CAQtD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,GAAE,KAAK,GAAG,IAAY,GAAG,cAAc,CAO5E;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,aAAa,CAK/C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quickflo/quickforms-quasar",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.22",
|
|
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.19.
|
|
42
|
-
"@quickflo/quickforms-vue": "1.19.
|
|
41
|
+
"@quickflo/quickforms": "1.19.22",
|
|
42
|
+
"@quickflo/quickforms-vue": "1.19.22"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@quasar/extras": "^1.17.0",
|