@quickflo/quickforms-quasar 1.19.20 → 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
|
@@ -29024,7 +29024,6 @@ function IT(i, e, t, n, r, o) {
|
|
|
29024
29024
|
"input-debounce": 0,
|
|
29025
29025
|
"fill-input": n.useFilter,
|
|
29026
29026
|
"hide-selected": n.useFilter,
|
|
29027
|
-
clearable: "",
|
|
29028
29027
|
"emit-value": "",
|
|
29029
29028
|
"map-options": "",
|
|
29030
29029
|
onFilter: n.filterFn
|
|
@@ -29204,7 +29203,7 @@ function fi() {
|
|
|
29204
29203
|
return `cond-${++zT}-${Date.now()}`;
|
|
29205
29204
|
}
|
|
29206
29205
|
function hm(i, e = {}) {
|
|
29207
|
-
return i.conditions.length === 0 ?
|
|
29206
|
+
return i.conditions.length === 0 ? {} : i.conditions.length === 1 ? uc(i.conditions[0], e) : {
|
|
29208
29207
|
[i.logic]: i.conditions.map((t) => uc(t, e))
|
|
29209
29208
|
};
|
|
29210
29209
|
}
|
|
@@ -29257,9 +29256,9 @@ function jT(i, e) {
|
|
|
29257
29256
|
case "isFalse":
|
|
29258
29257
|
return { "==": [t, !1] };
|
|
29259
29258
|
case "isEmpty":
|
|
29260
|
-
return { or: [{ "==": [t, ""] }, { "==": [t, null] }
|
|
29259
|
+
return { or: [{ "==": [t, ""] }, { "==": [t, null] }] };
|
|
29261
29260
|
case "isNotEmpty":
|
|
29262
|
-
return { and: [{ "!=": [t, ""] }, { "!=": [t, null] }
|
|
29261
|
+
return { and: [{ "!=": [t, ""] }, { "!=": [t, null] }] };
|
|
29263
29262
|
default:
|
|
29264
29263
|
return { "==": [t, n] };
|
|
29265
29264
|
}
|
|
@@ -29292,6 +29291,8 @@ function dm(i, e = !1) {
|
|
|
29292
29291
|
function fm(i, e = {}) {
|
|
29293
29292
|
if (typeof i == "boolean" || i === null || i === void 0)
|
|
29294
29293
|
return { logic: "and", conditions: [] };
|
|
29294
|
+
if (typeof i == "object" && Object.keys(i).length === 0)
|
|
29295
|
+
return { logic: "and", conditions: [] };
|
|
29295
29296
|
if ("and" in i && Array.isArray(i.and))
|
|
29296
29297
|
return {
|
|
29297
29298
|
logic: "and",
|
|
@@ -29324,29 +29325,29 @@ function wo(i, e) {
|
|
|
29324
29325
|
function QT(i, e) {
|
|
29325
29326
|
if (typeof i != "object" || i === null)
|
|
29326
29327
|
return null;
|
|
29327
|
-
if ("and" in i && Array.isArray(i.and) && i.and.length ===
|
|
29328
|
-
const [t, n
|
|
29329
|
-
if (t && typeof t == "object" && "!=" in t && n && typeof n == "object" && "!=" in n
|
|
29330
|
-
const
|
|
29331
|
-
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)
|
|
29332
29333
|
return {
|
|
29333
29334
|
id: fi(),
|
|
29334
29335
|
type: "condition",
|
|
29335
|
-
left: zt(
|
|
29336
|
+
left: zt(r[0], e.useTemplateSyntax),
|
|
29336
29337
|
operator: "isNotEmpty",
|
|
29337
29338
|
right: ""
|
|
29338
29339
|
};
|
|
29339
29340
|
}
|
|
29340
29341
|
}
|
|
29341
|
-
if ("or" in i && Array.isArray(i.or) && i.or.length ===
|
|
29342
|
-
const [t, n
|
|
29343
|
-
if (t && typeof t == "object" && "==" in t && n && typeof n == "object" && "==" in n
|
|
29344
|
-
const
|
|
29345
|
-
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)
|
|
29346
29347
|
return {
|
|
29347
29348
|
id: fi(),
|
|
29348
29349
|
type: "condition",
|
|
29349
|
-
left: zt(
|
|
29350
|
+
left: zt(r[0], e.useTemplateSyntax),
|
|
29350
29351
|
operator: "isEmpty",
|
|
29351
29352
|
right: ""
|
|
29352
29353
|
};
|
|
@@ -29637,16 +29638,8 @@ const YT = /* @__PURE__ */ _t({
|
|
|
29637
29638
|
});
|
|
29638
29639
|
}
|
|
29639
29640
|
function ye(v, A) {
|
|
29640
|
-
if (A
|
|
29641
|
-
|
|
29642
|
-
)) {
|
|
29643
|
-
V(
|
|
29644
|
-
v,
|
|
29645
|
-
H.value[0].value
|
|
29646
|
-
);
|
|
29647
|
-
return;
|
|
29648
|
-
}
|
|
29649
|
-
A && V(v, A);
|
|
29641
|
+
if (!A) return;
|
|
29642
|
+
N.value.some((j) => j.value === A) && V(v, A);
|
|
29650
29643
|
}
|
|
29651
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() {
|
|
29652
29645
|
return Vt;
|
|
@@ -29860,7 +29853,6 @@ function S2(i, e, t, n, r, o) {
|
|
|
29860
29853
|
"hide-selected": "",
|
|
29861
29854
|
clearable: "",
|
|
29862
29855
|
"hide-dropdown-icon": "",
|
|
29863
|
-
"new-value-mode": "add-unique",
|
|
29864
29856
|
class: "condition-operator",
|
|
29865
29857
|
disable: t.disabled,
|
|
29866
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;IAC1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,GAAG,cAAc,CAAA;AAE5D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;IACnB,UAAU,EAAE,aAAa,EAAE,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAA;AAMzD,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",
|