liyu-pc-base 1.0.983 → 1.0.987
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/dist/{FieldRender-D3i6PJTs.js → FieldRender-0Qq9zXcd.js} +2 -2
- package/dist/{FieldRender2-DVdznD-F.js → FieldRender2-DsW_O7-a.js} +5 -5
- package/dist/{FormRender3-DEKzMot4.js → FormRender3-sJ27j-CK.js} +3 -3
- package/dist/{RemoteModal-Ca1pTaYZ.js → RemoteModal-DZkqi64T.js} +1 -1
- package/dist/{RemoteSelectPro-BB45o7ie.js → RemoteSelectPro-BH20NlAS.js} +3 -3
- package/dist/{SearchRender-ChqsjuUY.js → SearchRender-Dh8G6EPt.js} +1 -1
- package/dist/{TinymceEditor-RuTN5CLa.js → TinymceEditor-B6KX-4ep.js} +2 -2
- package/dist/components/index.js +10 -10
- package/dist/{components-CO8mky8R.js → components-BIWVmal0.js} +97 -97
- package/dist/{dbViewConfig-CcHJENa7.js → dbViewConfig-P5HeZ2Mc.js} +1047 -947
- package/dist/{detailTablePro-CPs1Mxjk.js → detailTablePro-9PjEyBBa.js} +1 -1
- package/dist/{function-DnoIHo24.js → function-CstOzCwb.js} +69 -66
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/dist/{tableModal-B_2QSE8m.js → tableModal-DBfAmrxI.js} +1 -1
- package/dist/{tablePageHost-9q2NumMy.js → tablePageHost-CXw4Whb1.js} +127 -127
- package/dist/{tablePro-BxL8FgEp.js → tablePro-DSaUt_pj.js} +4 -4
- package/dist/utils/function.js +1 -1
- package/dist/utils/hooks/useFetchData.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { t } from "./tablePageHost-
|
|
2
|
+
import { t } from "./tablePageHost-CXw4Whb1.js";
|
|
3
3
|
import { computed as n, createBlock as r, createElementBlock as i, defineComponent as a, openBlock as o, resolveComponent as s } from "vue";
|
|
4
4
|
//#region src/components/detailTablePro/detailTablePro.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var c = { class: "detail-table-pro" }, l = /*#__PURE__*/ e(/* @__PURE__ */ a({
|
|
@@ -4477,42 +4477,45 @@ function Xt(e) {
|
|
|
4477
4477
|
//#endregion
|
|
4478
4478
|
//#region node_modules/typebox/build/type/types/number.mjs
|
|
4479
4479
|
var Zt = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?";
|
|
4480
|
+
function Qt(e) {
|
|
4481
|
+
return Y({ "~kind": "Number" }, { type: "number" }, e);
|
|
4482
|
+
}
|
|
4480
4483
|
//#endregion
|
|
4481
4484
|
//#region node_modules/typebox/build/type/types/string.mjs
|
|
4482
|
-
function
|
|
4485
|
+
function $t(e) {
|
|
4483
4486
|
return Y({ "~kind": "String" }, { type: "string" }, e);
|
|
4484
4487
|
}
|
|
4485
4488
|
//#endregion
|
|
4486
4489
|
//#region node_modules/typebox/build/type/types/union.mjs
|
|
4487
|
-
function
|
|
4490
|
+
function en(e, t = {}) {
|
|
4488
4491
|
return Y({ "~kind": "Union" }, { anyOf: e }, t);
|
|
4489
4492
|
}
|
|
4490
4493
|
//#endregion
|
|
4491
4494
|
//#region node_modules/typebox/build/type/types/record.mjs
|
|
4492
|
-
var
|
|
4495
|
+
var tn = `^${Kt}$`;
|
|
4493
4496
|
`${Zt}`;
|
|
4494
4497
|
//#endregion
|
|
4495
4498
|
//#region node_modules/typebox/build/type/script/token/internal/char.mjs
|
|
4496
|
-
function
|
|
4499
|
+
function nn(e, t) {
|
|
4497
4500
|
return Array.from({ length: t - e + 1 }, (t, n) => String.fromCharCode(e + n));
|
|
4498
4501
|
}
|
|
4499
|
-
var
|
|
4500
|
-
[...
|
|
4502
|
+
var rn = [...nn(97, 122), ...nn(65, 90)], an = ["0", ...nn(49, 57)];
|
|
4503
|
+
[...an], [...rn, ...an], [...an], new RegExp(tn);
|
|
4501
4504
|
//#endregion
|
|
4502
4505
|
//#region src/components/page-ability/registry.ts
|
|
4503
|
-
var
|
|
4506
|
+
var on = "__LY_AI_PAGE_ABILITY__", sn = new Mt.default({
|
|
4504
4507
|
allErrors: !0,
|
|
4505
4508
|
allowUnionTypes: !0,
|
|
4506
4509
|
strict: !1
|
|
4507
4510
|
});
|
|
4508
|
-
function
|
|
4511
|
+
function cn(e) {
|
|
4509
4512
|
return !e || e.length === 0 ? "参数格式不符合要求" : e.map((e) => e.keyword === "required" && typeof e.params?.missingProperty == "string" ? `缺少必填字段 ${e.params.missingProperty}` : e.keyword === "additionalProperties" && typeof e.params?.additionalProperty == "string" ? `存在未定义字段 ${e.params.additionalProperty}` : `${(e.instancePath ? e.instancePath.replace(/\//g, ".").replace(/^\./, "") : "") || "root"}: ${e.message || "参数不合法"}`).join("; ");
|
|
4510
4513
|
}
|
|
4511
|
-
function
|
|
4514
|
+
function ln(e) {
|
|
4512
4515
|
return e === void 0 ? {} : e;
|
|
4513
4516
|
}
|
|
4514
|
-
function
|
|
4515
|
-
let n = t.parameters || Ht({}), r = t.parameters ?
|
|
4517
|
+
function un(e, t) {
|
|
4518
|
+
let n = t.parameters || Ht({}), r = t.parameters ? sn.compile(t.parameters) : null;
|
|
4516
4519
|
return {
|
|
4517
4520
|
...t,
|
|
4518
4521
|
name: e,
|
|
@@ -4521,21 +4524,21 @@ function ln(e, t) {
|
|
|
4521
4524
|
description: t.description || `${e} 页面能力`,
|
|
4522
4525
|
parameters: n,
|
|
4523
4526
|
execute: (n) => {
|
|
4524
|
-
let i =
|
|
4527
|
+
let i = ln(n);
|
|
4525
4528
|
return r && !r(i) ? {
|
|
4526
4529
|
ok: !1,
|
|
4527
|
-
error: `页面能力「${t.toolName || e}」参数校验失败: ${
|
|
4530
|
+
error: `页面能力「${t.toolName || e}」参数校验失败: ${cn(r.errors)}`
|
|
4528
4531
|
} : t.execute(i);
|
|
4529
4532
|
}
|
|
4530
4533
|
};
|
|
4531
4534
|
}
|
|
4532
|
-
function
|
|
4533
|
-
let e = globalThis, t = e[
|
|
4535
|
+
function dn() {
|
|
4536
|
+
let e = globalThis, t = e[on];
|
|
4534
4537
|
if (t && typeof t.get == "function" && typeof t.find == "function" && typeof t.list == "function") return t;
|
|
4535
4538
|
let n = {
|
|
4536
4539
|
stack: /* @__PURE__ */ new Map(),
|
|
4537
4540
|
register(e, t) {
|
|
4538
|
-
let r =
|
|
4541
|
+
let r = un(e, t), i = n.stack.get(e) || [];
|
|
4539
4542
|
i.push(r), n.stack.set(e, i);
|
|
4540
4543
|
let a = !0;
|
|
4541
4544
|
return () => {
|
|
@@ -4562,19 +4565,19 @@ function un() {
|
|
|
4562
4565
|
return [...n.stack.values()].map((e) => e[e.length - 1]).filter((e) => !!e).map(({ execute: e, ...t }) => t).sort((e, t) => (e.toolName || e.name).localeCompare(t.toolName || t.name));
|
|
4563
4566
|
}
|
|
4564
4567
|
};
|
|
4565
|
-
return e[
|
|
4568
|
+
return e[on] = n, n;
|
|
4566
4569
|
}
|
|
4567
|
-
function
|
|
4568
|
-
return
|
|
4570
|
+
function fn(e, t) {
|
|
4571
|
+
return dn().register(e, t);
|
|
4569
4572
|
}
|
|
4570
4573
|
//#endregion
|
|
4571
4574
|
//#region src/components/quick-action/registry.ts
|
|
4572
|
-
var
|
|
4573
|
-
function mn() {
|
|
4574
|
-
window.dispatchEvent(new CustomEvent(pn));
|
|
4575
|
-
}
|
|
4575
|
+
var pn = "__LY_AI_QUICK_ACTION__", mn = "ly-ai-quick-actions-changed";
|
|
4576
4576
|
function hn() {
|
|
4577
|
-
|
|
4577
|
+
window.dispatchEvent(new CustomEvent(mn));
|
|
4578
|
+
}
|
|
4579
|
+
function gn() {
|
|
4580
|
+
let e = globalThis, t = e[pn];
|
|
4578
4581
|
if (t && typeof t.register == "function" && typeof t.list == "function") return t;
|
|
4579
4582
|
let n = {
|
|
4580
4583
|
stack: /* @__PURE__ */ new Map(),
|
|
@@ -4586,7 +4589,7 @@ function hn() {
|
|
|
4586
4589
|
};
|
|
4587
4590
|
if (!t.label) return () => {};
|
|
4588
4591
|
let r = n.stack.get(t.label) || [];
|
|
4589
|
-
r.push(t), n.stack.set(t.label, r),
|
|
4592
|
+
r.push(t), n.stack.set(t.label, r), hn();
|
|
4590
4593
|
let i = !0;
|
|
4591
4594
|
return () => {
|
|
4592
4595
|
if (!i) return;
|
|
@@ -4594,7 +4597,7 @@ function hn() {
|
|
|
4594
4597
|
let e = n.stack.get(t.label);
|
|
4595
4598
|
if (!e) return;
|
|
4596
4599
|
let r = e.indexOf(t);
|
|
4597
|
-
r > -1 && (e.splice(r, 1), e.length === 0 ? n.stack.delete(t.label) : n.stack.set(t.label, e),
|
|
4600
|
+
r > -1 && (e.splice(r, 1), e.length === 0 ? n.stack.delete(t.label) : n.stack.set(t.label, e), hn());
|
|
4598
4601
|
};
|
|
4599
4602
|
},
|
|
4600
4603
|
list() {
|
|
@@ -4606,15 +4609,15 @@ function hn() {
|
|
|
4606
4609
|
return e;
|
|
4607
4610
|
}
|
|
4608
4611
|
};
|
|
4609
|
-
return e[
|
|
4612
|
+
return e[pn] = n, n;
|
|
4610
4613
|
}
|
|
4611
|
-
function
|
|
4612
|
-
return
|
|
4614
|
+
function _n(e) {
|
|
4615
|
+
return gn().register(e);
|
|
4613
4616
|
}
|
|
4614
|
-
function
|
|
4615
|
-
return
|
|
4617
|
+
function vn() {
|
|
4618
|
+
return gn().list();
|
|
4616
4619
|
}
|
|
4617
|
-
function
|
|
4620
|
+
function yn(e) {
|
|
4618
4621
|
if (!e || typeof e != "object") return [];
|
|
4619
4622
|
let t = e.ai_quick_actions;
|
|
4620
4623
|
if (typeof t == "string") try {
|
|
@@ -4637,14 +4640,14 @@ function vn(e) {
|
|
|
4637
4640
|
}
|
|
4638
4641
|
//#endregion
|
|
4639
4642
|
//#region src/utils/function.ts
|
|
4640
|
-
var
|
|
4643
|
+
var bn = (e) => fn(e.name, { ...e }), xn = (e) => (e &&= e.substring(0, 5), e), Sn = (e) => (e &&= e.substring(11, 16), e), Cn = (e) => (e &&= e.substring(11, 19), e), wn = (e) => (e &&= e.substring(0, 7), e), Tn = (e) => e == "1900-01-01" ? "期初" : (e &&= e.substring(0, 4) + "年" + e.substring(5, 7) + "月", e), En = (e) => {
|
|
4641
4644
|
if (e == "1900-01-01") return "期初";
|
|
4642
4645
|
if (e) {
|
|
4643
4646
|
let t = p(e);
|
|
4644
4647
|
return t.isValid() ? `${t.format("YYYY")}年` : "";
|
|
4645
4648
|
}
|
|
4646
4649
|
return e;
|
|
4647
|
-
},
|
|
4650
|
+
}, Dn = (e) => (e && (/* @__PURE__ */ new Date()).getFullYear().toString() == e.substring(0, 4) ? e = e.substring(5, 10) : e &&= e.substring(0, 10), e), On = (e) => (e &&= e.substring(0, 10), e), kn = (e) => e && e.substring(0, 4) <= 1970 ? "" : (e && (/* @__PURE__ */ new Date()).getFullYear().toString() == e.substring(0, 4) ? e = e.substring(5, 16) : e &&= e.substring(0, 16), e), An = (e) => (e && (/* @__PURE__ */ new Date()).getFullYear().toString() == e.substring(0, 4) ? e = e.substring(5, 19) : e &&= e.substring(0, 19), e), jn = (e) => (e &&= e.substring(0, 19), e), Mn = (e) => (0, m.isNumber)(e) ? Number(e.toFixed(2)) == 0 ? 0 : e.toFixed(2) : "", Nn = (e) => (0, m.isNumber)(e) ? Number(e.toFixed(0)) == 0 ? 0 : e.toFixed(0) : "", Pn = (e) => (0, m.isNumber)(e) ? Number(e.toFixed(3)) == 0 ? 0 : e.toFixed(3) : "", Fn = (e) => e.replace(/(^\s*)|(\s*$)/g, ""), In = (e) => (0, m.isNumber)(e) ? Number(e.toFixed(6)) == 0 ? 0 : e.toFixed(6) : "", Ln = (e) => {
|
|
4648
4651
|
let t = e;
|
|
4649
4652
|
if (e > 60) {
|
|
4650
4653
|
let n = e / 60;
|
|
@@ -4659,14 +4662,14 @@ var yn = (e) => dn(e.name, { ...e }), bn = (e) => (e &&= e.substring(0, 5), e),
|
|
|
4659
4662
|
}
|
|
4660
4663
|
} else t = e + "秒";
|
|
4661
4664
|
return t;
|
|
4662
|
-
},
|
|
4665
|
+
}, Rn = (e) => {
|
|
4663
4666
|
let t = Math.floor(e / 1e3), n = Math.floor(t / 60), r = Math.floor(n / 60), i = t % 60, a = n % 60, o = "";
|
|
4664
4667
|
return r > 0 && (o += `${r.toString().padStart(2, "0")}:`), o += `${a.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}`, e % 1e3 != 0 && (o += `.${e.toString().slice(-2)}`), o;
|
|
4665
|
-
},
|
|
4668
|
+
}, zn = (e, t) => {
|
|
4666
4669
|
let n = {};
|
|
4667
4670
|
for (let r in e) t[e[r]] && (n[r] = t[e[r]]);
|
|
4668
4671
|
return n;
|
|
4669
|
-
},
|
|
4672
|
+
}, Bn = (e, t, n) => {
|
|
4670
4673
|
let r = (e) => {
|
|
4671
4674
|
let t = [];
|
|
4672
4675
|
for (let n of e) t.push(n), n.children && n.children.length > 0 && t.push(...r(n.children));
|
|
@@ -4674,11 +4677,11 @@ var yn = (e) => dn(e.name, { ...e }), bn = (e) => (e &&= e.substring(0, 5), e),
|
|
|
4674
4677
|
}, i = r(t || []), a = {};
|
|
4675
4678
|
for (let t in e) a[t] = i.filter((e) => n.includes(e.id)).map((n) => n[e[t]]);
|
|
4676
4679
|
return a;
|
|
4677
|
-
},
|
|
4680
|
+
}, Vn = (e, t) => {
|
|
4678
4681
|
let n = {};
|
|
4679
4682
|
for (let r in e) t[e[r]] && (n[r] = t[e[r]].join(","));
|
|
4680
4683
|
return n;
|
|
4681
|
-
},
|
|
4684
|
+
}, Hn = (e) => Math.floor(e), Un = ({ column: e, text: t }) => [
|
|
4682
4685
|
"green",
|
|
4683
4686
|
"orange",
|
|
4684
4687
|
"red",
|
|
@@ -4690,7 +4693,7 @@ var yn = (e) => dn(e.name, { ...e }), bn = (e) => (e &&= e.substring(0, 5), e),
|
|
|
4690
4693
|
"#2db7f5",
|
|
4691
4694
|
"#87d068",
|
|
4692
4695
|
"#108ee9"
|
|
4693
|
-
][Object.keys(e).filter((e) => e.indexOf("field_") == 0).map((e) => e.replace("field_", "")).sort().indexOf(t.toString())],
|
|
4696
|
+
][Object.keys(e).filter((e) => e.indexOf("field_") == 0).map((e) => e.replace("field_", "")).sort().indexOf(t.toString())], Wn = (e) => {
|
|
4694
4697
|
let t = [], n = (e, t) => {
|
|
4695
4698
|
t.map((t) => {
|
|
4696
4699
|
e.parent_id == t.id ? (t.children ??= [], t.children.push({
|
|
@@ -4711,7 +4714,7 @@ var yn = (e) => dn(e.name, { ...e }), bn = (e) => (e &&= e.substring(0, 5), e),
|
|
|
4711
4714
|
children: []
|
|
4712
4715
|
});
|
|
4713
4716
|
}), t;
|
|
4714
|
-
},
|
|
4717
|
+
}, Gn = (e) => {
|
|
4715
4718
|
let t = [], n = (e, t) => {
|
|
4716
4719
|
t.map((t) => {
|
|
4717
4720
|
e.parent_id == t.id ? ("children" in t || (t.children = []), t.children.push({
|
|
@@ -4735,20 +4738,20 @@ var yn = (e) => dn(e.name, { ...e }), bn = (e) => (e &&= e.substring(0, 5), e),
|
|
|
4735
4738
|
}), t.map((e) => {
|
|
4736
4739
|
e.children.length == 0 && delete e.children;
|
|
4737
4740
|
}), t;
|
|
4738
|
-
},
|
|
4741
|
+
}, Kn = (e) => e.length ? (e = e.map((e) => e && !Number.isNaN(Number(e)) ? Math.round(e * 1e4) : 0), e.reduce((e, t) => e + t, 0) / 1e4) : 0, qn = (e) => {
|
|
4739
4742
|
let t = "", n = "复制成功";
|
|
4740
4743
|
e?.message ? (t = e.val, n = e.message) : t = e;
|
|
4741
4744
|
let r = document.createElement("textarea");
|
|
4742
4745
|
r.setAttribute("readonly", "readonly"), r.value = t, document.body.appendChild(r), r.select(), document.execCommand("copy") && d.info(n), document.body.removeChild(r);
|
|
4743
|
-
},
|
|
4746
|
+
}, Jn = (e) => {
|
|
4744
4747
|
let t = {};
|
|
4745
4748
|
return Object.keys(e).forEach((n) => {
|
|
4746
4749
|
e[n] !== null && e[n] !== "" && JSON.stringify(e[n]) !== "[]" && (t[n] = e[n]);
|
|
4747
4750
|
}), t;
|
|
4748
|
-
}, X = (e) => e != null && e !== "",
|
|
4751
|
+
}, X = (e) => e != null && e !== "", Yn = (e, t) => (t == "getPeriod" && (e.group_info.display_name = Tn(e.group_info.display_name)), e), Xn = ({ record: e }) => {
|
|
4749
4752
|
let t = { props: {} };
|
|
4750
4753
|
return e?.meta_data?.rowSpan != null && (t.props.rowSpan = e.meta_data.rowSpan), t;
|
|
4751
|
-
}, Z = (e) => e === null || e == null || e === "",
|
|
4754
|
+
}, Z = (e) => e === null || e == null || e === "", Zn = (e, t) => {
|
|
4752
4755
|
let n;
|
|
4753
4756
|
if (t == "int") X(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
4754
4757
|
X(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
@@ -4775,11 +4778,11 @@ var yn = (e) => dn(e.name, { ...e }), bn = (e) => (e &&= e.substring(0, 5), e),
|
|
|
4775
4778
|
});
|
|
4776
4779
|
} else n = e;
|
|
4777
4780
|
return n;
|
|
4778
|
-
},
|
|
4781
|
+
}, Qn = (e, t) => e == "input" && t == "in" ? "等于" : c[t], $n = (e) => {
|
|
4779
4782
|
e.sort((e, t) => (e.order || 0) - (t.order || 0)), e.forEach((e) => {
|
|
4780
|
-
e.children &&
|
|
4783
|
+
e.children && $n(e.children);
|
|
4781
4784
|
});
|
|
4782
|
-
}, Q = (e, t = "YYYY-MM-DD") => f(e, t, !0).isValid(),
|
|
4785
|
+
}, Q = (e, t = "YYYY-MM-DD") => f(e, t, !0).isValid(), er = ({ record: e, conditions: t, dataSource: n, selectedRowKeys: r }) => {
|
|
4783
4786
|
if (!t || t.length === 0) return !0;
|
|
4784
4787
|
let i = (e) => {
|
|
4785
4788
|
let t = [];
|
|
@@ -4790,7 +4793,7 @@ var yn = (e) => dn(e.name, { ...e }), bn = (e) => (e &&= e.substring(0, 5), e),
|
|
|
4790
4793
|
if (!t) return !1;
|
|
4791
4794
|
let n = null;
|
|
4792
4795
|
n = r instanceof Array ? a.filter((e) => r.includes(e.id)).map((e) => e[t.flag]) : e[t.flag];
|
|
4793
|
-
let i =
|
|
4796
|
+
let i = Zn(t.value, t.type);
|
|
4794
4797
|
switch (i instanceof Array || (i = [i]), t.operator) {
|
|
4795
4798
|
case "lt": return typeof i[0] == "number" ? !Z(n) && n < i[0] : Q(i[0]) ? !Z(n) && f(n).isBefore(f(i[0])) : !1;
|
|
4796
4799
|
case "lte": return typeof i[0] == "number" ? !Z(n) && n <= i[0] : Q(i[0]) ? !Z(n) && (f(n).isBefore(f(i[0])) || f(n).isSame(f(i[0]))) : !1;
|
|
@@ -4817,7 +4820,7 @@ var yn = (e) => dn(e.name, { ...e }), bn = (e) => (e &&= e.substring(0, 5), e),
|
|
|
4817
4820
|
default: return !1;
|
|
4818
4821
|
}
|
|
4819
4822
|
}).every((e) => e)).some((e) => e);
|
|
4820
|
-
},
|
|
4823
|
+
}, tr = {
|
|
4821
4824
|
getApiData: s,
|
|
4822
4825
|
confirm: ({ title: e, content: t }) => new Promise((n, r) => {
|
|
4823
4826
|
u.confirm({
|
|
@@ -4870,9 +4873,9 @@ var yn = (e) => dn(e.name, { ...e }), bn = (e) => (e &&= e.substring(0, 5), e),
|
|
|
4870
4873
|
dates: o(new Date(Math.min(n.getTime(), r.getTime())), new Date(Math.max(n.getTime(), r.getTime())))
|
|
4871
4874
|
} : { sameWeek: !1 };
|
|
4872
4875
|
}
|
|
4873
|
-
},
|
|
4876
|
+
}, nr = (e, t, n = {}) => {
|
|
4874
4877
|
let r = {
|
|
4875
|
-
...
|
|
4878
|
+
...tr,
|
|
4876
4879
|
...n,
|
|
4877
4880
|
...a()
|
|
4878
4881
|
};
|
|
@@ -4909,27 +4912,27 @@ var yn = (e) => dn(e.name, { ...e }), bn = (e) => (e &&= e.substring(0, 5), e),
|
|
|
4909
4912
|
s.terminate(), i(e);
|
|
4910
4913
|
}, s.postMessage(JSON.parse(JSON.stringify(t)));
|
|
4911
4914
|
});
|
|
4912
|
-
},
|
|
4915
|
+
}, rr = (e) => {
|
|
4913
4916
|
if (!e) return [];
|
|
4914
4917
|
let t = [];
|
|
4915
4918
|
for (let n of e) if (Array.isArray(n)) {
|
|
4916
|
-
let e =
|
|
4919
|
+
let e = rr(n);
|
|
4917
4920
|
e.length > 0 && t.push(e);
|
|
4918
4921
|
} else n.value instanceof Array && n.value.length > 0 && !n.value.some((e) => Z(e)) && t.push(n);
|
|
4919
4922
|
return t;
|
|
4920
|
-
},
|
|
4923
|
+
}, ir = /* @__PURE__ */ new Map(), ar = ({ url: e, libName: t, componentName: n, cssUrl: r }) => l({
|
|
4921
4924
|
loader: async () => {
|
|
4922
4925
|
if (r && !document.querySelector(`link[href="${r}"]`)) {
|
|
4923
4926
|
let e = document.createElement("link");
|
|
4924
4927
|
e.rel = "stylesheet", e.href = r, document.head.appendChild(e), await new Promise((t) => e.onload = t);
|
|
4925
4928
|
}
|
|
4926
|
-
if (!
|
|
4929
|
+
if (!ir.has(t)) {
|
|
4927
4930
|
let n = document.createElement("script");
|
|
4928
4931
|
n.src = e, document.head.appendChild(n), await new Promise((e, t) => {
|
|
4929
4932
|
n.onload = e, n.onerror = t;
|
|
4930
|
-
}),
|
|
4933
|
+
}), ir.set(t, window[t]);
|
|
4931
4934
|
}
|
|
4932
|
-
let i =
|
|
4935
|
+
let i = ir.get(t);
|
|
4933
4936
|
if (!i) throw Error(`Failed to load module ${t} from ${e}`);
|
|
4934
4937
|
let a = i[n];
|
|
4935
4938
|
if (!a) throw Error(`Component "${n}" not found in global DynamicComponent`);
|
|
@@ -4946,25 +4949,25 @@ var yn = (e) => dn(e.name, { ...e }), bn = (e) => (e &&= e.substring(0, 5), e),
|
|
|
4946
4949
|
},
|
|
4947
4950
|
delay: 200,
|
|
4948
4951
|
timeout: 1e4
|
|
4949
|
-
}),
|
|
4952
|
+
}), or = (e) => {
|
|
4950
4953
|
let t = new TextEncoder().encode(e);
|
|
4951
4954
|
return btoa(String.fromCharCode(...t));
|
|
4952
|
-
},
|
|
4955
|
+
}, sr = () => {
|
|
4953
4956
|
let e = /.*_(\d+)$/, t = new URL(window.location.href).pathname.split("/");
|
|
4954
4957
|
return t.length > 1 && t[1].match(e)?.[1] || null;
|
|
4955
|
-
}, $ = null,
|
|
4956
|
-
|
|
4957
|
-
},
|
|
4958
|
-
let e =
|
|
4958
|
+
}, $ = null, cr = (e) => {
|
|
4959
|
+
sr() ? (sessionStorage.removeItem("org_id"), localStorage.removeItem("org_id")) : ($ = e, e ? (sessionStorage.setItem("org_id", e.toString()), localStorage.setItem("org_id", e.toString())) : (sessionStorage.removeItem("org_id"), localStorage.removeItem("org_id")));
|
|
4960
|
+
}, lr = () => {
|
|
4961
|
+
let e = sr();
|
|
4959
4962
|
if (e) return Number(e);
|
|
4960
4963
|
if (!$) {
|
|
4961
4964
|
let e = sessionStorage.getItem("org_id") || localStorage.getItem("org_id");
|
|
4962
4965
|
e && ($ = Number(e));
|
|
4963
4966
|
}
|
|
4964
4967
|
return $;
|
|
4965
|
-
},
|
|
4968
|
+
}, ur = () => {
|
|
4966
4969
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
4967
4970
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
4968
4971
|
};
|
|
4969
4972
|
//#endregion
|
|
4970
|
-
export {
|
|
4973
|
+
export { Qt as $, Gn as A, or as B, Vn as C, Hn as D, Cn as E, Q as F, Fn as G, Mn as H, $n as I, yn as J, mn as K, bn as L, Un as M, Z as N, Qn as O, X as P, $t as Q, cr as R, Bn as S, Sn as T, Pn as U, Nn as V, In as W, _n as X, vn as Y, en as Z, On as _, Xn as a, Lt as at, wn as b, rr as c, Rn as d, Xt as et, ur as f, En as g, kn as h, Kn as i, zt as it, Wn as j, lr as k, Jn as l, Tn as m, Zn as n, Gt as nt, ar as o, It as ot, Dn as p, pn as q, qn as r, Ht as rt, nr as s, er as t, Yt as tt, Ln as u, An as v, xn as w, zn as x, jn as y, Yn as z };
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { B as e, C as t, F as n, H as r, R as i, _ as a, a as o, d as s, f as c,
|
|
|
3
3
|
import { defineAsyncComponent as S } from "vue";
|
|
4
4
|
//#region src/index.ts
|
|
5
5
|
var C = { install(C, w) {
|
|
6
|
-
w?.env && C.use(_(w.env)), w?.globMap && C.use(s(w.globMap)), w?.bus && C.use(v(w.bus)), w?.useAppStore && C.use(t(w.useAppStore)), w?.useUserStore && C.use(e(w.useUserStore)), w?.request && C.use(a(w.request)), w?.useRequiredConditionStore && C.use(i(w.useRequiredConditionStore)), w?.required_condition_event_obj && C.use(x(w.required_condition_event_obj)), w?.event_obj && C.use(d(w.event_obj)), w?.ls && C.use(h(w.ls)), w?.sourceStore && C.use(b(w.sourceStore)), w?.usePageConfigStore && C.use(n(w.usePageConfigStore)), w?.remoteSelectStore && C.use(l(w.remoteSelectStore)), w?.cellComponentMap && C.use(g(w.cellComponentMap)), w?.cellFormatExcelValueMap && C.use(u(w.cellFormatExcelValueMap)), w?.cellComponentList && C.use(p(w.cellComponentList)), w?.cellSummaryComponentList && C.use(o(w.cellSummaryComponentList)), w?.menuComponents && C.use(f(w.menuComponents)), w?.debugCodeComponent && C.use(m(w.debugCodeComponent)), w?.extraMenuIcons && C.use(y(w.extraMenuIcons)), w?.workerHostFunctions && C.use(r(w.workerHostFunctions)), w?.injectMenuState && C.use(c(w.injectMenuState)), C.component("FieldRender", S(() => import("./FieldRender-
|
|
6
|
+
w?.env && C.use(_(w.env)), w?.globMap && C.use(s(w.globMap)), w?.bus && C.use(v(w.bus)), w?.useAppStore && C.use(t(w.useAppStore)), w?.useUserStore && C.use(e(w.useUserStore)), w?.request && C.use(a(w.request)), w?.useRequiredConditionStore && C.use(i(w.useRequiredConditionStore)), w?.required_condition_event_obj && C.use(x(w.required_condition_event_obj)), w?.event_obj && C.use(d(w.event_obj)), w?.ls && C.use(h(w.ls)), w?.sourceStore && C.use(b(w.sourceStore)), w?.usePageConfigStore && C.use(n(w.usePageConfigStore)), w?.remoteSelectStore && C.use(l(w.remoteSelectStore)), w?.cellComponentMap && C.use(g(w.cellComponentMap)), w?.cellFormatExcelValueMap && C.use(u(w.cellFormatExcelValueMap)), w?.cellComponentList && C.use(p(w.cellComponentList)), w?.cellSummaryComponentList && C.use(o(w.cellSummaryComponentList)), w?.menuComponents && C.use(f(w.menuComponents)), w?.debugCodeComponent && C.use(m(w.debugCodeComponent)), w?.extraMenuIcons && C.use(y(w.extraMenuIcons)), w?.workerHostFunctions && C.use(r(w.workerHostFunctions)), w?.injectMenuState && C.use(c(w.injectMenuState)), C.component("FieldRender", S(() => import("./FieldRender-0Qq9zXcd.js").then((e) => e.n))).component("AttributeTable", S(() => import("./AttributeTable-muxdKpWW.js").then((e) => e.n))).component("AttributeNomTable", S(() => import("./AttributeNomTable-DHED22ju.js").then((e) => e.n))).component("SearchRender", S(() => import("./SearchRender-Dh8G6EPt.js").then((e) => e.n))).component("RemoteSelect", S(() => import("./RemoteSelect-bjsCKGfS.js").then((e) => e.n))).component("RemoteCascader", S(() => import("./RemoteCascader-BsOeNVvB.js").then((e) => e.n))).component("RemoteFilterSelect", S(() => import("./RemoteFilterSelect-DF906O8X.js").then((e) => e.n))).component("RemoteModal", S(() => import("./RemoteModal-DZkqi64T.js").then((e) => e.n))).component("JsonStr", S(() => import("./JsonStr-JwOPdAYW.js").then((e) => e.n))).component("JsonObj", S(() => import("./JsonObj-CmylW4Or.js").then((e) => e.n))).component("RemoteText", S(() => import("./RemoteText-C_zxmxfK.js").then((e) => e.n))).component("RemoteTable2", S(() => import("./RemoteTable2-DYHG0cqX.js").then((e) => e.n))).component("syncDataSourceConfig", S(() => import("./syncDataSourceConfig-C7D3yjhl.js"))).component("dbDataSourceConfig", S(() => import("./dbDataSourceConfig-CnGgOJJB.js"))).component("dbViewConfig", S(() => import("./dbViewConfig-P5HeZ2Mc.js"))).component("syncModelTypeConfig", S(() => import("./syncModelTypeConfig-D8-hcItK.js"))).component("syncExportRawData", S(() => import("./syncExportRawData-Dpi-VJuu.js"))).component("aiGenModel", S(() => import("./aiGenModel-C9E1ahu8.js"))).component("batchCreateUser", S(() => import("./batchCreateUser-Bldo1FdN.js"))).component("detailTablePro", S(() => import("./detailTablePro-9PjEyBBa.js"))).component("FormRender3", S(() => import("./FormRender3-sJ27j-CK.js").then((e) => e.n))).component("NormalViewIcon", S(() => import("./normalViewIcon-CglvKVbZ.js"))).component("PivotTableIcon", S(() => import("./pivotTableIcon-DbvqffwC.js"))).component("PivotChartIcon", S(() => import("./pivotChartIcon-gDZG-d23.js")));
|
|
7
7
|
} };
|
|
8
8
|
//#endregion
|
|
9
9
|
export { C as default };
|