aibox-custom-component-packages 0.0.7 → 0.0.9
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/es/AddOrEditSupplierDialog.mjs +6 -786
- package/es/ApplicationTypeTag.mjs +2 -58
- package/es/AuthSection.mjs +3 -199
- package/es/AutoShowTooltip.mjs +2 -90
- package/es/AvailableRangePreview.mjs +2 -7
- package/es/AvailableRangeSetting.mjs +5 -272
- package/es/CodeView.mjs +6 -7
- package/es/CommonTagsList.mjs +3 -209
- package/es/CreateMcpForm.mjs +10 -384
- package/es/CustomSidebar.mjs +2 -712
- package/es/CustomTitle.mjs +6 -7
- package/es/CustomToggle.mjs +2 -170
- package/es/DialogContainer.mjs +2 -136
- package/es/DocSyncSelect.mjs +2 -0
- package/es/FileDisplay.mjs +4 -6
- package/es/FilePreview.mjs +3 -179
- package/es/FileUploader.mjs +2 -268
- package/es/Logo.mjs +2 -0
- package/es/McpFormDialog.mjs +11 -8
- package/es/McpParamsSet.mjs +8 -630
- package/es/MdEditor.mjs +2 -201
- package/es/PageContainer.mjs +4 -362
- package/es/ParameterTable.mjs +6 -2288
- package/es/PublishRecord.mjs +2 -179
- package/es/RadioGroup.mjs +2 -119
- package/es/SourcePublish.mjs +7 -1154
- package/es/Table.mjs +6 -10
- package/es/assets/AddOrEditSupplierDialog.css +1 -1
- package/es/assets/AiboxTable.css +1 -1
- package/es/assets/ApplicationTypeTag.css +1 -1
- package/es/assets/AuthSection.css +1 -1
- package/es/assets/AutoShowTooltip.css +1 -1
- package/es/assets/AvailableRangePreview.css +1 -0
- package/es/assets/CodeView.css +1 -0
- package/es/assets/CommonTagsList.css +1 -1
- package/es/assets/CreateMcpForm.css +1 -1
- package/es/assets/CustomSidebar.css +1 -1
- package/es/assets/CustomToggle.css +1 -1
- package/es/assets/DialogContainer.css +1 -1
- package/es/assets/DocSyncSelect.css +1 -0
- package/es/assets/FileDisplay.css +1 -0
- package/es/assets/FilePreview.css +1 -1
- package/es/assets/FileUploader.css +1 -1
- package/es/assets/Logo.css +1 -0
- package/es/assets/{index2.css → McpFormDialog.css} +1 -1
- package/es/assets/McpParamsSet.css +1 -1
- package/es/assets/MdEditor.css +1 -1
- package/es/assets/PageContainer.css +1 -1
- package/es/assets/ParameterTable.css +1 -1
- package/es/assets/PublishRecord.css +1 -1
- package/es/assets/RadioGroup.css +1 -1
- package/es/assets/SourcePublish.css +1 -1
- package/es/assets/layout.css +1 -1
- package/es/assets/legacy.css +1 -0
- package/es/assets/usePreview.css +10 -1
- package/es/chunks/AddOrEditSupplierDialog.BKR0RsiJ.js +721 -0
- package/es/chunks/AddOrEditSupplierDialog.CjNRipPe.js +721 -0
- package/es/chunks/AiboxTable.CrWMAX84.js +635 -0
- package/es/chunks/ApplicationTypeTag.Cbdi0D65.js +47 -0
- package/es/chunks/AuthSection.DWD_FxtJ.js +201 -0
- package/es/chunks/AutoShowTooltip.C_DI9t2Z.js +82 -0
- package/es/chunks/AvailableRangePreview.Bz9QkkAM.js +194 -0
- package/es/chunks/AvailableRangeSetting.Bq_K1zar.js +229 -0
- package/es/chunks/CodeView.CWuSIL_F.js +148 -0
- package/es/chunks/CommonTagsList.DSPdgjc3.js +156 -0
- package/es/chunks/CreateMcpForm.BBVVd2RN.js +308 -0
- package/es/chunks/CreateMcpForm.C8YfDSEM.js +308 -0
- package/es/chunks/CustomSidebar.BSGAhmVY.js +585 -0
- package/es/chunks/CustomToggle.BxxsaD-W.js +181 -0
- package/es/chunks/DialogContainer.DL7aTMDS.js +129 -0
- package/es/chunks/DocSyncSelect.Kk88o9gO.js +2290 -0
- package/es/chunks/FileDisplay.B5laA4uX.js +1649 -0
- package/es/chunks/FileDisplay.BCTNdpl9.js +1649 -0
- package/es/chunks/FileDisplay.CBNYrdsK.js +1560 -0
- package/es/chunks/FileDisplay.CJ7KCID6.js +1650 -0
- package/es/chunks/FilePreview.B9u8ODHp.js +123 -0
- package/es/chunks/FilePreview.De4zHsfc.js +123 -0
- package/es/chunks/FileUploader.DD-lopf-.js +216 -0
- package/es/chunks/Logo.0myMjGux.js +62 -0
- package/es/chunks/McpFormDialog.4HDExbTn.js +297 -0
- package/es/chunks/McpFormDialog.DNzqqhaX.js +297 -0
- package/es/chunks/McpParamsSet.Tlo_lPn-.js +501 -0
- package/es/chunks/MdEditor.DtL0Se7T.js +163 -0
- package/es/chunks/PageContainer.DXddaRs1.js +462 -0
- package/es/chunks/ParameterTable.BCdnj1gW.js +2010 -0
- package/es/chunks/PublishRecord.DEzC7hmP.js +133 -0
- package/es/chunks/RadioGroup.Czc1JtkN.js +107 -0
- package/es/chunks/SourcePublish.Dx-ltk9U.js +956 -0
- package/es/chunks/_plugin-vue_export-helper.Ct3qlEzt.js +8 -0
- package/es/chunks/chunk.EU29TkMc.js +20 -0
- package/es/chunks/config.MfNKPMiA.js +35 -0
- package/es/chunks/config.l1J_qxeB.js +270 -0
- package/es/chunks/enums.DDPWAqdV.js +13 -0
- package/es/chunks/field-types.zf28gvKR.js +7 -0
- package/es/chunks/files.DvOT1nf3.js +14 -0
- package/es/chunks/i18n.CxsxtRq_.js +418 -0
- package/es/chunks/layout.C9wKDpv-.js +19 -0
- package/es/chunks/publish.Z0XAASut.js +50 -0
- package/es/chunks/request.CfOHcfgX.js +5 -0
- package/es/chunks/usePreview.CMMjOD_o.js +148 -0
- package/es/chunks/usePreview.agdxmOk8.js +126 -0
- package/es/chunks/withinstall.dLh4K-0g.js +7 -0
- package/es/index.mjs +258 -328
- package/index.css +1 -1
- package/lib/AddOrEditSupplierDialog.js +1 -1
- package/lib/ApplicationTypeTag.js +1 -1
- package/lib/AuthSection.js +1 -1
- package/lib/AutoShowTooltip.js +1 -1
- package/lib/AvailableRangePreview.js +1 -1
- package/lib/AvailableRangeSetting.js +1 -1
- package/lib/CodeView.js +1 -1
- package/lib/CommonTagsList.js +1 -1
- package/lib/CreateMcpForm.js +1 -1
- package/lib/CustomSidebar.js +1 -1
- package/lib/CustomTitle.js +1 -1
- package/lib/CustomToggle.js +1 -1
- package/lib/DialogContainer.js +1 -1
- package/lib/DocSyncSelect.js +1 -0
- package/lib/FileDisplay.js +1 -1
- package/lib/FilePreview.js +1 -1
- package/lib/FileUploader.js +1 -1
- package/lib/Logo.js +1 -0
- package/lib/McpFormDialog.js +1 -1
- package/lib/McpParamsSet.js +1 -1
- package/lib/MdEditor.js +1 -1
- package/lib/PageContainer.js +1 -1
- package/lib/ParameterTable.js +1 -1
- package/lib/PublishRecord.js +1 -5
- package/lib/RadioGroup.js +1 -1
- package/lib/SourcePublish.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/assets/AddOrEditSupplierDialog.css +1 -1
- package/lib/assets/AiboxTable.css +1 -1
- package/lib/assets/ApplicationTypeTag.css +1 -1
- package/lib/assets/AuthSection.css +1 -1
- package/lib/assets/AutoShowTooltip.css +1 -1
- package/lib/assets/AvailableRangePreview.css +1 -0
- package/lib/assets/CodeView.css +1 -0
- package/lib/assets/CommonTagsList.css +1 -1
- package/lib/assets/CreateMcpForm.css +1 -1
- package/lib/assets/CustomSidebar.css +1 -1
- package/lib/assets/CustomToggle.css +1 -1
- package/lib/assets/DialogContainer.css +1 -1
- package/lib/assets/DocSyncSelect.css +1 -0
- package/lib/assets/FileDisplay.css +1 -0
- package/lib/assets/FilePreview.css +1 -1
- package/lib/assets/FileUploader.css +1 -1
- package/lib/assets/Logo.css +1 -0
- package/lib/assets/{index2.css → McpFormDialog.css} +1 -1
- package/lib/assets/McpParamsSet.css +1 -1
- package/lib/assets/MdEditor.css +1 -1
- package/lib/assets/PageContainer.css +1 -1
- package/lib/assets/ParameterTable.css +1 -1
- package/lib/assets/PublishRecord.css +1 -1
- package/lib/assets/RadioGroup.css +1 -1
- package/lib/assets/SourcePublish.css +1 -1
- package/lib/assets/layout.css +1 -1
- package/lib/assets/legacy.css +1 -0
- package/lib/assets/usePreview.css +10 -1
- package/lib/chunks/AddOrEditSupplierDialog.D0DSQZiS.js +1 -0
- package/lib/chunks/AddOrEditSupplierDialog.XtPxc5yr.js +1 -0
- package/lib/chunks/AiboxTable.DFyqwoGc.js +1 -0
- package/lib/chunks/ApplicationTypeTag.CZReMt-9.js +1 -0
- package/lib/chunks/AuthSection.CP9c-YTW.js +1 -0
- package/lib/chunks/AutoShowTooltip.D3QQ36Bm.js +1 -0
- package/lib/chunks/AvailableRangePreview.DvREyHNH.js +1 -0
- package/lib/chunks/AvailableRangeSetting.DDHTOLJA.js +1 -0
- package/lib/chunks/CodeView.DeBxLqyC.js +1 -0
- package/lib/chunks/CommonTagsList.DbNcVId5.js +1 -0
- package/lib/chunks/CreateMcpForm.Cm9eHXWg.js +1 -0
- package/lib/chunks/CreateMcpForm.DNijYbgd.js +1 -0
- package/lib/chunks/CustomSidebar.Dojb1xoS.js +1 -0
- package/lib/chunks/CustomToggle.Dz7MRyOY.js +1 -0
- package/lib/chunks/DialogContainer.C0Hsohgn.js +1 -0
- package/lib/chunks/DocSyncSelect.1gaXRzps.js +2 -0
- package/lib/chunks/FileDisplay.B4gn0Jhp.js +59 -0
- package/lib/chunks/FileDisplay.B7JWIcFg.js +59 -0
- package/lib/chunks/FileDisplay.BSNmvK44.js +59 -0
- package/lib/chunks/FileDisplay.DjtHza32.js +59 -0
- package/lib/chunks/FilePreview.DX9e8_nx.js +1 -0
- package/lib/chunks/FilePreview.b1Gine59.js +1 -0
- package/lib/chunks/FileUploader.6IW_QL-h.js +1 -0
- package/lib/chunks/Logo.Jr7hhaH0.js +1 -0
- package/lib/chunks/McpFormDialog.CL2bInts.js +6 -0
- package/lib/chunks/McpFormDialog.DbhQIwYW.js +6 -0
- package/lib/chunks/McpParamsSet.BYrxVvDL.js +1 -0
- package/lib/chunks/MdEditor.rVQbuxCg.js +1 -0
- package/lib/chunks/PageContainer.elwvD8VL.js +1 -0
- package/lib/chunks/ParameterTable.CeufAEXh.js +1 -0
- package/lib/chunks/PublishRecord.B7xYlRKJ.js +5 -0
- package/lib/chunks/RadioGroup.cl57IvY3.js +1 -0
- package/lib/chunks/SourcePublish.K4tntn9l.js +1 -0
- package/lib/chunks/_plugin-vue_export-helper.Bgn9wawX.js +1 -0
- package/lib/chunks/chunk.BbA6Ugdl.js +1 -0
- package/lib/chunks/config.CDNV0bUm.js +1 -0
- package/lib/chunks/config.CZl1kYtI.js +1 -0
- package/lib/chunks/enums.DbdzzIzx.js +1 -0
- package/lib/chunks/field-types.C6f_z2S_.js +1 -0
- package/lib/chunks/files.BEXWmB32.js +1 -0
- package/lib/chunks/i18n.BGe5gOau.js +1 -0
- package/lib/chunks/layout.CK394aWE.js +1 -0
- package/lib/chunks/publish.DsepP8ll.js +1 -0
- package/lib/chunks/request.BuoFTs7h.js +1 -0
- package/lib/chunks/usePreview.7CCbmgQM.js +1 -0
- package/lib/chunks/usePreview.Dmhz8azZ.js +1 -0
- package/lib/chunks/withinstall.65aRnaVc.js +1 -0
- package/lib/index.js +2 -1
- package/package.json +6 -6
- package/es/AiboxTabs.mjs +0 -71
- package/es/ExampleComponent.mjs +0 -35
- package/es/assets/AiboxTabs.css +0 -1
- package/es/assets/BackBar.css +0 -1
- package/es/assets/ExampleComponent.css +0 -1
- package/es/assets/index.css +0 -1
- package/es/assets/index3.css +0 -1
- package/es/assets/index4.css +0 -1
- package/es/assets/index5.css +0 -1
- package/es/assets/index6.css +0 -1
- package/es/chunks/AiboxTable.DUGBBVXh.js +0 -645
- package/es/chunks/BackBar.B5Er8ZdJ.js +0 -645
- package/es/chunks/BackBar.Bc2NIuzk.js +0 -645
- package/es/chunks/BackBar.Cv1wxUcM.js +0 -645
- package/es/chunks/BackBar.DJV4JaUM.js +0 -645
- package/es/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
- package/es/chunks/config.8htFF04x.js +0 -325
- package/es/chunks/config.BPp4hMBq.js +0 -325
- package/es/chunks/config.BU21Gda2.js +0 -49
- package/es/chunks/config.BzCGum_W.js +0 -49
- package/es/chunks/config.CFWGjEdA.js +0 -49
- package/es/chunks/config.CfWAdyUH.js +0 -325
- package/es/chunks/config.DPkdwjwD.js +0 -49
- package/es/chunks/config.DTMcCH58.js +0 -325
- package/es/chunks/config.Dklrsn-B.js +0 -49
- package/es/chunks/config.DqhQdkz7.js +0 -325
- package/es/chunks/config.RrNwuFkQ.js +0 -325
- package/es/chunks/config.gNZ_rT87.js +0 -325
- package/es/chunks/enums.CfSBDD6u.js +0 -83
- package/es/chunks/enums.DuBbLcd-.js +0 -83
- package/es/chunks/enums.Dvec-maC.js +0 -62
- package/es/chunks/field-types.CPnMOjle.js +0 -13
- package/es/chunks/files.cduUqjHX.js +0 -16
- package/es/chunks/i18n.DDMVloiU.js +0 -443
- package/es/chunks/i18n.DmqkiK-h.js +0 -444
- package/es/chunks/i18n.Vhq-tZPw.js +0 -94
- package/es/chunks/i18n.k9Q_HVMs.js +0 -443
- package/es/chunks/i18n.ro9yz7rE.js +0 -94
- package/es/chunks/index.BSA3IKSF.js +0 -111
- package/es/chunks/index.BT1khSY9.js +0 -111
- package/es/chunks/index.CDvh263l.js +0 -257
- package/es/chunks/index.CLyfh6p1.js +0 -257
- package/es/chunks/index.CSjjAi3w.js +0 -396
- package/es/chunks/index.CdEBk4F_.js +0 -134
- package/es/chunks/index.CgbxJCEU.js +0 -265
- package/es/chunks/index.CuDwuRO7.js +0 -265
- package/es/chunks/index.DB0ayMv8.js +0 -257
- package/es/chunks/index.DWR4lc30.js +0 -203
- package/es/chunks/index.GuEzdh6b.js +0 -257
- package/es/chunks/index.aMb6IVQD.js +0 -257
- package/es/chunks/index.bCzIhWFw.js +0 -7
- package/es/chunks/index.ml5i7aB5.js +0 -257
- package/es/chunks/index.s-YxIOfq.js +0 -301
- package/es/chunks/index.uOZzvHrF.js +0 -135
- package/es/chunks/layout.BREUWPEJ.js +0 -26
- package/es/chunks/publish.BCb7nCo9.js +0 -50
- package/es/chunks/publish.D6friivo.js +0 -50
- package/es/chunks/publish.DlD0o09n.js +0 -50
- package/es/chunks/publish.Dqzn7qEl.js +0 -50
- package/es/chunks/request.24c3shPx.js +0 -5
- package/es/chunks/usePreview.B5lboHeg.js +0 -153
- package/es/chunks/usePreview.C36fNlVd.js +0 -153
- package/es/i18n.mjs +0 -17
- package/lib/AiboxTabs.js +0 -1
- package/lib/ExampleComponent.js +0 -1
- package/lib/assets/AiboxTabs.css +0 -1
- package/lib/assets/BackBar.css +0 -1
- package/lib/assets/ExampleComponent.css +0 -1
- package/lib/assets/index.css +0 -1
- package/lib/assets/index3.css +0 -1
- package/lib/assets/index4.css +0 -1
- package/lib/assets/index5.css +0 -1
- package/lib/assets/index6.css +0 -1
- package/lib/chunks/AiboxTable.BnoHJ7xL.js +0 -1
- package/lib/chunks/BackBar.C8Xrc6qW.js +0 -1
- package/lib/chunks/BackBar.CZsNxoX1.js +0 -1
- package/lib/chunks/BackBar.s5_vN6jt.js +0 -1
- package/lib/chunks/_plugin-vue_export-helper.BHFhmbuH.js +0 -1
- package/lib/chunks/config.1oaIKLGn.js +0 -1
- package/lib/chunks/config.B0XKkp1w.js +0 -1
- package/lib/chunks/config.BCAuBVxV.js +0 -1
- package/lib/chunks/config.BF7MO0O5.js +0 -1
- package/lib/chunks/config.Bs7sh3aP.js +0 -1
- package/lib/chunks/config.C1w4hgfw.js +0 -1
- package/lib/chunks/config.ClERt2RF.js +0 -1
- package/lib/chunks/enums.Dmq4PdUc.js +0 -1
- package/lib/chunks/enums.DnuzPZCR.js +0 -1
- package/lib/chunks/field-types.Ch_2yDfg.js +0 -1
- package/lib/chunks/files.B3-8UC0v.js +0 -1
- package/lib/chunks/i18n.CL5L6nx6.js +0 -1
- package/lib/chunks/i18n.DgOp_D7R.js +0 -1
- package/lib/chunks/i18n.aAXi5igh.js +0 -1
- package/lib/chunks/index.BNqTEn3K.js +0 -1
- package/lib/chunks/index.BZcSlgOO.js +0 -1
- package/lib/chunks/index.Bc71XWQn.js +0 -1
- package/lib/chunks/index.Bk-RwmaH.js +0 -1
- package/lib/chunks/index.BsN4urmi.js +0 -1
- package/lib/chunks/index.CH7XdMru.js +0 -1
- package/lib/chunks/index.CaidDlAx.js +0 -1
- package/lib/chunks/index.CkihWzK6.js +0 -1
- package/lib/chunks/index.D7wBInWr.js +0 -1
- package/lib/chunks/index.DGWHQFdx.js +0 -6
- package/lib/chunks/index.DME62Yfo.js +0 -1
- package/lib/chunks/index.DWohILMv.js +0 -1
- package/lib/chunks/index.LK2ulXTE.js +0 -1
- package/lib/chunks/index.qDAoOzk9.js +0 -1
- package/lib/chunks/index.s8vGOJKG.js +0 -1
- package/lib/chunks/layout.sgE9JoNq.js +0 -1
- package/lib/chunks/publish.3TrK3fZf.js +0 -1
- package/lib/chunks/publish.Bw1acrSu.js +0 -1
- package/lib/chunks/publish.CA1uSVnm.js +0 -1
- package/lib/chunks/request.D8T4MgGX.js +0 -1
- package/lib/chunks/usePreview.2PZJSy5w.js +0 -1
- package/lib/chunks/usePreview.E5SeS2uw.js +0 -1
- package/lib/i18n.js +0 -1
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
import { w as _ } from "./index.bCzIhWFw.js";
|
|
2
|
-
import { computed as p, createElementBlock as b, createCommentVNode as h, openBlock as m, Fragment as N, createElementVNode as M, toDisplayString as E, normalizeClass as w, createBlock as D, renderList as k, unref as i, withCtx as A, ref as P, watch as O, onMounted as L, createVNode as z, createTextVNode as U, nextTick as F } from "vue";
|
|
3
|
-
import { ElPopover as $, ElButton as G } from "element-plus";
|
|
4
|
-
import { D as g, M as c, R as B, r as Y } from "./config.Dklrsn-B.js";
|
|
5
|
-
import { _ as q } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import { u as H } from "./i18n.DDMVloiU.js";
|
|
7
|
-
import '../assets/index5.css';const W = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "pd-l-16 text-dee0e3 pd-r-16"
|
|
10
|
-
}, X = { class: "fz-14 text-646a73 nowrap" }, j = { class: "tag-item nowrap fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe pointer" }, J = { class: "tag-list-popover overflow-y-auto flex gap-4 flex-wrap" }, K = {
|
|
11
|
-
__name: "TagList",
|
|
12
|
-
props: {
|
|
13
|
-
// 显示的标签
|
|
14
|
-
label: {
|
|
15
|
-
type: String,
|
|
16
|
-
required: !0
|
|
17
|
-
},
|
|
18
|
-
// 数据项列表
|
|
19
|
-
items: {
|
|
20
|
-
type: Array,
|
|
21
|
-
default: () => []
|
|
22
|
-
},
|
|
23
|
-
// 是否为只读模式
|
|
24
|
-
readonly: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: !1
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
setup(e) {
|
|
30
|
-
const t = e, l = p(() => t.readonly ? t.items : t.items.slice(0, g.one)), d = p(() => t.items.length > g.one), T = p(() => t.items.length - g.one), u = p(() => t.items.slice(g.one));
|
|
31
|
-
return (n, s) => e.items.length > 0 ? (m(), b(N, { key: 0 }, [
|
|
32
|
-
e.readonly ? h("", !0) : (m(), b("span", W, "|")),
|
|
33
|
-
M("span", X, E(e.label), 1),
|
|
34
|
-
M("div", {
|
|
35
|
-
class: w(["tag-list", { "flex items-center gap-4": !e.readonly }])
|
|
36
|
-
}, [
|
|
37
|
-
(m(!0), b(N, null, k(l.value, (a) => (m(), b("div", {
|
|
38
|
-
key: a.memberId,
|
|
39
|
-
class: w(["tag-item fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe nowrap", { "mg-r-4 mg-b-4": e.readonly }])
|
|
40
|
-
}, E(a.memberName), 3))), 128)),
|
|
41
|
-
!e.readonly && d.value ? (m(), D(i($), {
|
|
42
|
-
key: 0,
|
|
43
|
-
placement: "top",
|
|
44
|
-
trigger: "click",
|
|
45
|
-
width: "300",
|
|
46
|
-
"popper-class": "tag-list-popover-wrapper"
|
|
47
|
-
}, {
|
|
48
|
-
reference: A(() => [
|
|
49
|
-
M("span", j, " +" + E(T.value), 1)
|
|
50
|
-
]),
|
|
51
|
-
default: A(() => [
|
|
52
|
-
M("div", J, [
|
|
53
|
-
(m(!0), b(N, null, k(u.value, (a) => (m(), b("span", {
|
|
54
|
-
key: a.memberId,
|
|
55
|
-
class: "tag-item nowrap fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe"
|
|
56
|
-
}, E(a.memberName), 1))), 128))
|
|
57
|
-
])
|
|
58
|
-
]),
|
|
59
|
-
_: 1
|
|
60
|
-
})) : h("", !0)
|
|
61
|
-
], 2)
|
|
62
|
-
], 64)) : h("", !0);
|
|
63
|
-
}
|
|
64
|
-
}, R = /* @__PURE__ */ q(K, [["__scopeId", "data-v-eecd9e0b"]]), V = (e, t) => e?.filter(t) || [], I = (e, t) => V(e, (l) => l.memberType === t), x = (e, t) => {
|
|
65
|
-
if (e.children)
|
|
66
|
-
for (const l of e.children)
|
|
67
|
-
l.memberType === c.MEMBER ? t(l) : l.memberType === c.DEPARTMENT && x(l, t);
|
|
68
|
-
}, S = (e) => {
|
|
69
|
-
const t = [];
|
|
70
|
-
return x(e, (l) => t.push(l.memberId)), t;
|
|
71
|
-
};
|
|
72
|
-
function Q(e, t, l = !1) {
|
|
73
|
-
const d = p(() => {
|
|
74
|
-
if (!e.value) return [];
|
|
75
|
-
const n = [...e.value], s = I(
|
|
76
|
-
n,
|
|
77
|
-
c.DEPARTMENT
|
|
78
|
-
);
|
|
79
|
-
if (s.length > 0 && t.value && t.value.length > 0) {
|
|
80
|
-
const a = /* @__PURE__ */ new Set();
|
|
81
|
-
s.forEach((o) => {
|
|
82
|
-
const f = (y) => {
|
|
83
|
-
for (const v of y) {
|
|
84
|
-
if (v.memberType === c.DEPARTMENT && v.memberId === o.memberId)
|
|
85
|
-
return x(
|
|
86
|
-
v,
|
|
87
|
-
(C) => a.add(C)
|
|
88
|
-
), !0;
|
|
89
|
-
if (v.children && f(v.children))
|
|
90
|
-
return !0;
|
|
91
|
-
}
|
|
92
|
-
return !1;
|
|
93
|
-
};
|
|
94
|
-
f(t.value);
|
|
95
|
-
});
|
|
96
|
-
const r = new Set(
|
|
97
|
-
I(n, c.MEMBER).map(
|
|
98
|
-
(o) => o.memberId
|
|
99
|
-
)
|
|
100
|
-
);
|
|
101
|
-
a.forEach((o) => {
|
|
102
|
-
r.has(o.memberId) || n.push(o);
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
return n;
|
|
106
|
-
}), T = p(() => {
|
|
107
|
-
if (l)
|
|
108
|
-
return I(
|
|
109
|
-
d.value,
|
|
110
|
-
c.MEMBER
|
|
111
|
-
);
|
|
112
|
-
{
|
|
113
|
-
const n = /* @__PURE__ */ new Set();
|
|
114
|
-
return u.value.forEach((s) => {
|
|
115
|
-
S(s).forEach((r) => n.add(r));
|
|
116
|
-
}), V(
|
|
117
|
-
d.value,
|
|
118
|
-
(s) => s.memberType === c.MEMBER && !n.has(s.memberId)
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
}), u = p(() => {
|
|
122
|
-
if (l)
|
|
123
|
-
return I(
|
|
124
|
-
d.value,
|
|
125
|
-
c.DEPARTMENT
|
|
126
|
-
);
|
|
127
|
-
{
|
|
128
|
-
const n = [], s = (r) => {
|
|
129
|
-
if (!r.children || r.children.length === 0) return !1;
|
|
130
|
-
const o = S(r);
|
|
131
|
-
return o.length === 0 ? !1 : o.every(
|
|
132
|
-
(f) => d.value.some(
|
|
133
|
-
(y) => y.memberType === c.MEMBER && y.memberId === f
|
|
134
|
-
)
|
|
135
|
-
);
|
|
136
|
-
}, a = (r, o = !1) => {
|
|
137
|
-
if (r.memberType === c.DEPARTMENT) {
|
|
138
|
-
const f = s(r);
|
|
139
|
-
if (f && !o) {
|
|
140
|
-
if (n.push({
|
|
141
|
-
memberId: r.memberId,
|
|
142
|
-
memberName: r.memberName,
|
|
143
|
-
memberType: c.DEPARTMENT,
|
|
144
|
-
bnid: r.bnid,
|
|
145
|
-
children: r.children
|
|
146
|
-
}), r.children)
|
|
147
|
-
for (const y of r.children)
|
|
148
|
-
a(y, !0);
|
|
149
|
-
} else if (!f && r.children)
|
|
150
|
-
for (const y of r.children)
|
|
151
|
-
a(y, !1);
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
for (const r of t.value)
|
|
155
|
-
a(r, !1);
|
|
156
|
-
return n;
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
return {
|
|
160
|
-
selectedMembers: T,
|
|
161
|
-
selectedDepartments: u
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
const Z = { class: "text-1f2329" }, ee = { class: "fz-14 text-1f2329" }, te = {
|
|
165
|
-
__name: "layout",
|
|
166
|
-
props: {
|
|
167
|
-
// 当前选择的范围类型(是否全部可见)
|
|
168
|
-
allVisible: {
|
|
169
|
-
type: Boolean,
|
|
170
|
-
default: B.ALL
|
|
171
|
-
},
|
|
172
|
-
// 选中的项目列表(完整对象数组,由父组件根据ID从树中查找得到)
|
|
173
|
-
modelValue: {
|
|
174
|
-
type: Array,
|
|
175
|
-
default: () => []
|
|
176
|
-
},
|
|
177
|
-
// 完整的树形数据(用于判断部门成员是否全部选中)
|
|
178
|
-
treeList: {
|
|
179
|
-
type: Array,
|
|
180
|
-
default: () => []
|
|
181
|
-
},
|
|
182
|
-
// 是否为只读模式
|
|
183
|
-
readonly: {
|
|
184
|
-
type: Boolean,
|
|
185
|
-
default: !1
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
setup(e, { expose: t }) {
|
|
189
|
-
const { t: l } = H(), d = P(null), T = () => {
|
|
190
|
-
d.value && F(() => {
|
|
191
|
-
d.value.scrollIntoView({
|
|
192
|
-
behavior: "smooth",
|
|
193
|
-
block: "center"
|
|
194
|
-
});
|
|
195
|
-
});
|
|
196
|
-
}, u = e, { selectedMembers: n, selectedDepartments: s } = Q(
|
|
197
|
-
p(() => u.modelValue),
|
|
198
|
-
p(() => u.treeList),
|
|
199
|
-
u.readonly
|
|
200
|
-
), a = p(() => [...n.value, ...s.value]);
|
|
201
|
-
return O(
|
|
202
|
-
() => [u.allVisible, u.modelValue],
|
|
203
|
-
() => {
|
|
204
|
-
T();
|
|
205
|
-
},
|
|
206
|
-
{ immediate: !1, deep: !0 }
|
|
207
|
-
), L(() => {
|
|
208
|
-
T();
|
|
209
|
-
}), t({
|
|
210
|
-
allSelectedItems: a
|
|
211
|
-
}), (r, o) => (m(), b("div", {
|
|
212
|
-
ref_key: "previewRef",
|
|
213
|
-
ref: d,
|
|
214
|
-
class: w(["available-range-preview w-full overflow-hidden", {
|
|
215
|
-
"flex items-center": !e.readonly
|
|
216
|
-
}])
|
|
217
|
-
}, [
|
|
218
|
-
e.readonly ? h("", !0) : (m(), b(N, { key: 0 }, [
|
|
219
|
-
M("div", Z, E(i(l)("COMMON_DICT.ENUMS.AVAILABLE_RANGE")) + ": ", 1),
|
|
220
|
-
M("span", ee, E(i(Y).find((f) => f.value === e.allVisible)?.label), 1),
|
|
221
|
-
z(i(G), {
|
|
222
|
-
class: "mg-l-16",
|
|
223
|
-
type: "primary",
|
|
224
|
-
link: "",
|
|
225
|
-
onClick: o[0] || (o[0] = (f) => r.$emit("edit"))
|
|
226
|
-
}, {
|
|
227
|
-
default: A(() => [
|
|
228
|
-
U(E(i(l)("COMMON_BUTTON.EDIT_TEXT")), 1)
|
|
229
|
-
]),
|
|
230
|
-
_: 1
|
|
231
|
-
})
|
|
232
|
-
], 64)),
|
|
233
|
-
e.allVisible === i(B).PARTIAL ? (m(), b("div", {
|
|
234
|
-
key: 1,
|
|
235
|
-
class: w(["flex-1 overflow-hidden", { "flex items-center": !e.readonly }])
|
|
236
|
-
}, [
|
|
237
|
-
i(n)?.length ? (m(), D(R, {
|
|
238
|
-
key: 0,
|
|
239
|
-
label: i(l)("COMMON_DICT.ENUMS.MEMBER") + ":",
|
|
240
|
-
items: i(n),
|
|
241
|
-
readonly: e.readonly
|
|
242
|
-
}, null, 8, ["label", "items", "readonly"])) : h("", !0),
|
|
243
|
-
i(s)?.length ? (m(), D(R, {
|
|
244
|
-
key: 1,
|
|
245
|
-
label: i(l)("COMMON_DICT.ENUMS.DEPARTMENT") + ":",
|
|
246
|
-
items: i(s),
|
|
247
|
-
readonly: e.readonly
|
|
248
|
-
}, null, 8, ["label", "items", "readonly"])) : h("", !0)
|
|
249
|
-
], 2)) : h("", !0)
|
|
250
|
-
], 2));
|
|
251
|
-
}
|
|
252
|
-
}, ie = _(te), me = _(R);
|
|
253
|
-
export {
|
|
254
|
-
ie as A,
|
|
255
|
-
me as T,
|
|
256
|
-
Q as u
|
|
257
|
-
};
|
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
import { w as _ } from "./index.bCzIhWFw.js";
|
|
2
|
-
import { computed as p, createElementBlock as b, createCommentVNode as h, openBlock as m, Fragment as N, createElementVNode as M, toDisplayString as E, normalizeClass as w, createBlock as D, renderList as k, unref as i, withCtx as A, ref as P, watch as O, onMounted as L, createVNode as z, createTextVNode as U, nextTick as F } from "vue";
|
|
3
|
-
import { ElPopover as $, ElButton as G } from "element-plus";
|
|
4
|
-
import { D as g, M as c, R as B, r as Y } from "./config.CFWGjEdA.js";
|
|
5
|
-
import { _ as q } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import { u as H } from "./i18n.ro9yz7rE.js";
|
|
7
|
-
import '../assets/index2.css';const W = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "pd-l-16 text-dee0e3 pd-r-16"
|
|
10
|
-
}, X = { class: "fz-14 text-646a73 nowrap" }, j = { class: "tag-item nowrap fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe pointer" }, J = { class: "tag-list-popover overflow-y-auto flex gap-4 flex-wrap" }, K = {
|
|
11
|
-
__name: "TagList",
|
|
12
|
-
props: {
|
|
13
|
-
// 显示的标签
|
|
14
|
-
label: {
|
|
15
|
-
type: String,
|
|
16
|
-
required: !0
|
|
17
|
-
},
|
|
18
|
-
// 数据项列表
|
|
19
|
-
items: {
|
|
20
|
-
type: Array,
|
|
21
|
-
default: () => []
|
|
22
|
-
},
|
|
23
|
-
// 是否为只读模式
|
|
24
|
-
readonly: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: !1
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
setup(e) {
|
|
30
|
-
const t = e, l = p(() => t.readonly ? t.items : t.items.slice(0, g.one)), d = p(() => t.items.length > g.one), T = p(() => t.items.length - g.one), u = p(() => t.items.slice(g.one));
|
|
31
|
-
return (n, s) => e.items.length > 0 ? (m(), b(N, { key: 0 }, [
|
|
32
|
-
e.readonly ? h("", !0) : (m(), b("span", W, "|")),
|
|
33
|
-
M("span", X, E(e.label), 1),
|
|
34
|
-
M("div", {
|
|
35
|
-
class: w(["tag-list", { "flex items-center gap-4": !e.readonly }])
|
|
36
|
-
}, [
|
|
37
|
-
(m(!0), b(N, null, k(l.value, (a) => (m(), b("div", {
|
|
38
|
-
key: a.memberId,
|
|
39
|
-
class: w(["tag-item fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe nowrap", { "mg-r-4 mg-b-4": e.readonly }])
|
|
40
|
-
}, E(a.memberName), 3))), 128)),
|
|
41
|
-
!e.readonly && d.value ? (m(), D(i($), {
|
|
42
|
-
key: 0,
|
|
43
|
-
placement: "top",
|
|
44
|
-
trigger: "click",
|
|
45
|
-
width: "300",
|
|
46
|
-
"popper-class": "tag-list-popover-wrapper"
|
|
47
|
-
}, {
|
|
48
|
-
reference: A(() => [
|
|
49
|
-
M("span", j, " +" + E(T.value), 1)
|
|
50
|
-
]),
|
|
51
|
-
default: A(() => [
|
|
52
|
-
M("div", J, [
|
|
53
|
-
(m(!0), b(N, null, k(u.value, (a) => (m(), b("span", {
|
|
54
|
-
key: a.memberId,
|
|
55
|
-
class: "tag-item nowrap fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe"
|
|
56
|
-
}, E(a.memberName), 1))), 128))
|
|
57
|
-
])
|
|
58
|
-
]),
|
|
59
|
-
_: 1
|
|
60
|
-
})) : h("", !0)
|
|
61
|
-
], 2)
|
|
62
|
-
], 64)) : h("", !0);
|
|
63
|
-
}
|
|
64
|
-
}, R = /* @__PURE__ */ q(K, [["__scopeId", "data-v-eecd9e0b"]]), V = (e, t) => e?.filter(t) || [], I = (e, t) => V(e, (l) => l.memberType === t), x = (e, t) => {
|
|
65
|
-
if (e.children)
|
|
66
|
-
for (const l of e.children)
|
|
67
|
-
l.memberType === c.MEMBER ? t(l) : l.memberType === c.DEPARTMENT && x(l, t);
|
|
68
|
-
}, S = (e) => {
|
|
69
|
-
const t = [];
|
|
70
|
-
return x(e, (l) => t.push(l.memberId)), t;
|
|
71
|
-
};
|
|
72
|
-
function Q(e, t, l = !1) {
|
|
73
|
-
const d = p(() => {
|
|
74
|
-
if (!e.value) return [];
|
|
75
|
-
const n = [...e.value], s = I(
|
|
76
|
-
n,
|
|
77
|
-
c.DEPARTMENT
|
|
78
|
-
);
|
|
79
|
-
if (s.length > 0 && t.value && t.value.length > 0) {
|
|
80
|
-
const a = /* @__PURE__ */ new Set();
|
|
81
|
-
s.forEach((o) => {
|
|
82
|
-
const f = (y) => {
|
|
83
|
-
for (const v of y) {
|
|
84
|
-
if (v.memberType === c.DEPARTMENT && v.memberId === o.memberId)
|
|
85
|
-
return x(
|
|
86
|
-
v,
|
|
87
|
-
(C) => a.add(C)
|
|
88
|
-
), !0;
|
|
89
|
-
if (v.children && f(v.children))
|
|
90
|
-
return !0;
|
|
91
|
-
}
|
|
92
|
-
return !1;
|
|
93
|
-
};
|
|
94
|
-
f(t.value);
|
|
95
|
-
});
|
|
96
|
-
const r = new Set(
|
|
97
|
-
I(n, c.MEMBER).map(
|
|
98
|
-
(o) => o.memberId
|
|
99
|
-
)
|
|
100
|
-
);
|
|
101
|
-
a.forEach((o) => {
|
|
102
|
-
r.has(o.memberId) || n.push(o);
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
return n;
|
|
106
|
-
}), T = p(() => {
|
|
107
|
-
if (l)
|
|
108
|
-
return I(
|
|
109
|
-
d.value,
|
|
110
|
-
c.MEMBER
|
|
111
|
-
);
|
|
112
|
-
{
|
|
113
|
-
const n = /* @__PURE__ */ new Set();
|
|
114
|
-
return u.value.forEach((s) => {
|
|
115
|
-
S(s).forEach((r) => n.add(r));
|
|
116
|
-
}), V(
|
|
117
|
-
d.value,
|
|
118
|
-
(s) => s.memberType === c.MEMBER && !n.has(s.memberId)
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
}), u = p(() => {
|
|
122
|
-
if (l)
|
|
123
|
-
return I(
|
|
124
|
-
d.value,
|
|
125
|
-
c.DEPARTMENT
|
|
126
|
-
);
|
|
127
|
-
{
|
|
128
|
-
const n = [], s = (r) => {
|
|
129
|
-
if (!r.children || r.children.length === 0) return !1;
|
|
130
|
-
const o = S(r);
|
|
131
|
-
return o.length === 0 ? !1 : o.every(
|
|
132
|
-
(f) => d.value.some(
|
|
133
|
-
(y) => y.memberType === c.MEMBER && y.memberId === f
|
|
134
|
-
)
|
|
135
|
-
);
|
|
136
|
-
}, a = (r, o = !1) => {
|
|
137
|
-
if (r.memberType === c.DEPARTMENT) {
|
|
138
|
-
const f = s(r);
|
|
139
|
-
if (f && !o) {
|
|
140
|
-
if (n.push({
|
|
141
|
-
memberId: r.memberId,
|
|
142
|
-
memberName: r.memberName,
|
|
143
|
-
memberType: c.DEPARTMENT,
|
|
144
|
-
bnid: r.bnid,
|
|
145
|
-
children: r.children
|
|
146
|
-
}), r.children)
|
|
147
|
-
for (const y of r.children)
|
|
148
|
-
a(y, !0);
|
|
149
|
-
} else if (!f && r.children)
|
|
150
|
-
for (const y of r.children)
|
|
151
|
-
a(y, !1);
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
for (const r of t.value)
|
|
155
|
-
a(r, !1);
|
|
156
|
-
return n;
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
return {
|
|
160
|
-
selectedMembers: T,
|
|
161
|
-
selectedDepartments: u
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
const Z = { class: "text-1f2329" }, ee = { class: "fz-14 text-1f2329" }, te = {
|
|
165
|
-
__name: "layout",
|
|
166
|
-
props: {
|
|
167
|
-
// 当前选择的范围类型(是否全部可见)
|
|
168
|
-
allVisible: {
|
|
169
|
-
type: Boolean,
|
|
170
|
-
default: B.ALL
|
|
171
|
-
},
|
|
172
|
-
// 选中的项目列表(完整对象数组,由父组件根据ID从树中查找得到)
|
|
173
|
-
modelValue: {
|
|
174
|
-
type: Array,
|
|
175
|
-
default: () => []
|
|
176
|
-
},
|
|
177
|
-
// 完整的树形数据(用于判断部门成员是否全部选中)
|
|
178
|
-
treeList: {
|
|
179
|
-
type: Array,
|
|
180
|
-
default: () => []
|
|
181
|
-
},
|
|
182
|
-
// 是否为只读模式
|
|
183
|
-
readonly: {
|
|
184
|
-
type: Boolean,
|
|
185
|
-
default: !1
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
setup(e, { expose: t }) {
|
|
189
|
-
const { t: l } = H(), d = P(null), T = () => {
|
|
190
|
-
d.value && F(() => {
|
|
191
|
-
d.value.scrollIntoView({
|
|
192
|
-
behavior: "smooth",
|
|
193
|
-
block: "center"
|
|
194
|
-
});
|
|
195
|
-
});
|
|
196
|
-
}, u = e, { selectedMembers: n, selectedDepartments: s } = Q(
|
|
197
|
-
p(() => u.modelValue),
|
|
198
|
-
p(() => u.treeList),
|
|
199
|
-
u.readonly
|
|
200
|
-
), a = p(() => [...n.value, ...s.value]);
|
|
201
|
-
return O(
|
|
202
|
-
() => [u.allVisible, u.modelValue],
|
|
203
|
-
() => {
|
|
204
|
-
T();
|
|
205
|
-
},
|
|
206
|
-
{ immediate: !1, deep: !0 }
|
|
207
|
-
), L(() => {
|
|
208
|
-
T();
|
|
209
|
-
}), t({
|
|
210
|
-
allSelectedItems: a
|
|
211
|
-
}), (r, o) => (m(), b("div", {
|
|
212
|
-
ref_key: "previewRef",
|
|
213
|
-
ref: d,
|
|
214
|
-
class: w(["available-range-preview w-full overflow-hidden", {
|
|
215
|
-
"flex items-center": !e.readonly
|
|
216
|
-
}])
|
|
217
|
-
}, [
|
|
218
|
-
e.readonly ? h("", !0) : (m(), b(N, { key: 0 }, [
|
|
219
|
-
M("div", Z, E(i(l)("COMMON_DICT.ENUMS.AVAILABLE_RANGE")) + ": ", 1),
|
|
220
|
-
M("span", ee, E(i(Y).find((f) => f.value === e.allVisible)?.label), 1),
|
|
221
|
-
z(i(G), {
|
|
222
|
-
class: "mg-l-16",
|
|
223
|
-
type: "primary",
|
|
224
|
-
link: "",
|
|
225
|
-
onClick: o[0] || (o[0] = (f) => r.$emit("edit"))
|
|
226
|
-
}, {
|
|
227
|
-
default: A(() => [
|
|
228
|
-
U(E(i(l)("COMMON_BUTTON.EDIT_TEXT")), 1)
|
|
229
|
-
]),
|
|
230
|
-
_: 1
|
|
231
|
-
})
|
|
232
|
-
], 64)),
|
|
233
|
-
e.allVisible === i(B).PARTIAL ? (m(), b("div", {
|
|
234
|
-
key: 1,
|
|
235
|
-
class: w(["flex-1 overflow-hidden", { "flex items-center": !e.readonly }])
|
|
236
|
-
}, [
|
|
237
|
-
i(n)?.length ? (m(), D(R, {
|
|
238
|
-
key: 0,
|
|
239
|
-
label: i(l)("COMMON_DICT.ENUMS.MEMBER") + ":",
|
|
240
|
-
items: i(n),
|
|
241
|
-
readonly: e.readonly
|
|
242
|
-
}, null, 8, ["label", "items", "readonly"])) : h("", !0),
|
|
243
|
-
i(s)?.length ? (m(), D(R, {
|
|
244
|
-
key: 1,
|
|
245
|
-
label: i(l)("COMMON_DICT.ENUMS.DEPARTMENT") + ":",
|
|
246
|
-
items: i(s),
|
|
247
|
-
readonly: e.readonly
|
|
248
|
-
}, null, 8, ["label", "items", "readonly"])) : h("", !0)
|
|
249
|
-
], 2)) : h("", !0)
|
|
250
|
-
], 2));
|
|
251
|
-
}
|
|
252
|
-
}, ie = _(te), me = _(R);
|
|
253
|
-
export {
|
|
254
|
-
ie as A,
|
|
255
|
-
me as T,
|
|
256
|
-
Q as u
|
|
257
|
-
};
|