agilebuilder-ui 1.0.95 → 1.0.96
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/lib/super-ui.js
CHANGED
|
@@ -18397,27 +18397,31 @@ function setRules(e, t, n, o) {
|
|
|
18397
18397
|
}
|
|
18398
18398
|
}
|
|
18399
18399
|
function getColumnCustomRules(e, t) {
|
|
18400
|
-
const n = e.prop;
|
|
18401
|
-
let
|
|
18402
|
-
const
|
|
18403
|
-
let
|
|
18404
|
-
if (t && (
|
|
18405
|
-
const
|
|
18400
|
+
const n = e.prop, o = e.dataType;
|
|
18401
|
+
let l = [], s;
|
|
18402
|
+
const d = "_all_fields";
|
|
18403
|
+
let m;
|
|
18404
|
+
if (t && (m = t[n] ? t[n] : t[d]), m && (m.required || m.rules)) {
|
|
18405
|
+
const _ = getI18n().t("imatrixUIMessage.mustFill", {
|
|
18406
18406
|
label: e.label
|
|
18407
18407
|
});
|
|
18408
|
-
if (
|
|
18409
|
-
const
|
|
18410
|
-
|
|
18408
|
+
if (l = m.rules ? JSON.parse(JSON.stringify(m.rules)) : null, l && l.length > 0) {
|
|
18409
|
+
const E = l.filter((S) => S.required);
|
|
18410
|
+
E && E.length > 0 && (s = E[0]);
|
|
18411
18411
|
}
|
|
18412
|
-
|
|
18413
|
-
|
|
18414
|
-
}), !
|
|
18412
|
+
m.name === d && l && l.forEach((E) => {
|
|
18413
|
+
E.message = e.label + E.message;
|
|
18414
|
+
}), !s && m.required && (l || (l = []), s = {
|
|
18415
18415
|
required: !0,
|
|
18416
|
-
message:
|
|
18416
|
+
message: _,
|
|
18417
18417
|
trigger: "blur"
|
|
18418
|
-
}, o.push(
|
|
18418
|
+
}, setRuleDataType(o, s), l.push(s)), s && !s.message && (s.message = _);
|
|
18419
18419
|
}
|
|
18420
|
-
return
|
|
18420
|
+
return l;
|
|
18421
|
+
}
|
|
18422
|
+
function setRuleDataType(e, t) {
|
|
18423
|
+
if (!t.type)
|
|
18424
|
+
return e === "BOOLEAN" && (t.type = "boolean"), t;
|
|
18421
18425
|
}
|
|
18422
18426
|
function validator(e, t, n, o, l, s, d) {
|
|
18423
18427
|
return validatorEntity(e, t, n, o, !0, l, s, d);
|
|
@@ -23607,6 +23611,7 @@ const NormalColumnContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$1h, [["rende
|
|
|
23607
23611
|
function _sfc_render$U(e, t, n, o, l, s) {
|
|
23608
23612
|
const d = resolveComponent("CirclePlus"), m = resolveComponent("el-icon"), _ = resolveComponent("NormalColumnContent"), E = resolveComponent("el-table-column");
|
|
23609
23613
|
return openBlock(), createBlock(E, {
|
|
23614
|
+
key: n.column.prop,
|
|
23610
23615
|
align: l.align,
|
|
23611
23616
|
"class-name": n.column.prop,
|
|
23612
23617
|
"filter-method": s.filterMethod,
|