aibox-custom-component-packages 0.0.26 → 0.0.27

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.
Files changed (104) hide show
  1. package/es/SourcePublish.mjs +1 -1
  2. package/es/assets/SourcePublish.css +1 -1
  3. package/es/chunks/{AddOrEditSupplierDialog.DUqqhPyY.js → AddOrEditSupplierDialog.Dg8gkZJ_.js} +2 -2
  4. package/es/chunks/AiboxTable.C9hrozrD.js +635 -0
  5. package/es/chunks/{ApplicationTypeTag.CdOFw2tm.js → ApplicationTypeTag.C7wkmR5k.js} +1 -1
  6. package/es/chunks/AuthSection.B8fzLcqX.js +201 -0
  7. package/es/chunks/AvailableRangePreview.CEoRKsuA.js +194 -0
  8. package/es/chunks/AvailableRangeSetting.C9GkFsQd.js +229 -0
  9. package/es/chunks/CodeView.Bsu4N1bC.js +148 -0
  10. package/es/chunks/CommonTagsList.C5_QqxEd.js +156 -0
  11. package/es/chunks/CreateMcpForm.DF53TdcU.js +308 -0
  12. package/es/chunks/{DocSyncSelect.DP8U1-ZH.js → DocSyncSelect.BAHqN-9J.js} +3 -3
  13. package/es/chunks/FileUploader.DUj7bSMa.js +216 -0
  14. package/es/chunks/McpFormDialog.Bc7oBv3C.js +297 -0
  15. package/es/chunks/McpParamsSet.CZJmyAJo.js +501 -0
  16. package/es/chunks/MdEditor.BBlPGzuI.js +163 -0
  17. package/es/chunks/ParameterTable.CMHp6Ubd.js +2010 -0
  18. package/es/chunks/PublishRecord.Cg21VWQX.js +133 -0
  19. package/es/chunks/{SourcePublish.CjzqOFwj.js → SourcePublish.BjY8OTLS.js} +10 -23
  20. package/es/chunks/{SourcePublish.DBM7OeXm.js → SourcePublish.BqTfGtXE.js} +5 -2
  21. package/es/chunks/SourcePublish.lCN7YbeP.js +979 -0
  22. package/es/chunks/config.CK5iNO4T.js +270 -0
  23. package/es/chunks/config.D-qzWO8Q.js +35 -0
  24. package/es/chunks/i18n.C-J-jxme.js +426 -0
  25. package/es/index.mjs +1 -1
  26. package/lib/SourcePublish.js +1 -1
  27. package/lib/assets/SourcePublish.css +1 -1
  28. package/lib/chunks/SourcePublish.BqmktWp7.js +1 -0
  29. package/lib/chunks/SourcePublish.Bz8MaRPm.js +1 -0
  30. package/lib/index.js +1 -1
  31. package/package.json +3 -3
  32. package/es/AiboxTabs.mjs +0 -71
  33. package/es/ExampleComponent.mjs +0 -35
  34. package/es/assets/AiboxTabs.css +0 -1
  35. package/es/assets/BackBar.css +0 -1
  36. package/es/assets/ExampleComponent.css +0 -1
  37. package/es/assets/index.css +0 -1
  38. package/es/assets/index2.css +0 -1
  39. package/es/assets/index3.css +0 -1
  40. package/es/assets/index4.css +0 -1
  41. package/es/chunks/AiboxTable.CF4T_OCu.js +0 -645
  42. package/es/chunks/ApplicationTypeTag.CpzWFRmD.js +0 -52
  43. package/es/chunks/BackBar.Bc2NIuzk.js +0 -645
  44. package/es/chunks/DocSyncSelect.CY25GsAh.js +0 -2310
  45. package/es/chunks/DocSyncSelect.dhZh4w45.js +0 -2290
  46. package/es/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
  47. package/es/chunks/config.8htFF04x.js +0 -325
  48. package/es/chunks/config.BU21Gda2.js +0 -49
  49. package/es/chunks/config.DPkdwjwD.js +0 -49
  50. package/es/chunks/config.gNZ_rT87.js +0 -325
  51. package/es/chunks/enums.CfSBDD6u.js +0 -83
  52. package/es/chunks/enums.WrpwbF4w.js +0 -14
  53. package/es/chunks/field-types.CPnMOjle.js +0 -13
  54. package/es/chunks/files.cduUqjHX.js +0 -16
  55. package/es/chunks/i18n.DmqkiK-h.js +0 -444
  56. package/es/chunks/i18n.k9Q_HVMs.js +0 -443
  57. package/es/chunks/index.BDd6hHiU.js +0 -172
  58. package/es/chunks/index.CF_YHLP5.js +0 -257
  59. package/es/chunks/index.DM3o2YX3.js +0 -398
  60. package/es/chunks/index.Dx-mCS4E.js +0 -1298
  61. package/es/chunks/index.bCzIhWFw.js +0 -7
  62. package/es/chunks/index.ml5i7aB5.js +0 -257
  63. package/es/chunks/layout.CygCXa6s.js +0 -26
  64. package/es/chunks/publish.D6friivo.js +0 -50
  65. package/es/chunks/publish.DlD0o09n.js +0 -50
  66. package/es/chunks/request.24c3shPx.js +0 -5
  67. package/es/chunks/usePreview.BHvXwaNi.js +0 -157
  68. package/lib/AiboxTabs.js +0 -1
  69. package/lib/ExampleComponent.js +0 -1
  70. package/lib/assets/AiboxTabs.css +0 -1
  71. package/lib/assets/BackBar.css +0 -1
  72. package/lib/assets/ExampleComponent.css +0 -1
  73. package/lib/assets/index.css +0 -1
  74. package/lib/assets/index2.css +0 -1
  75. package/lib/assets/index3.css +0 -1
  76. package/lib/assets/index4.css +0 -1
  77. package/lib/chunks/AiboxTable.CJOPGJtU.js +0 -1
  78. package/lib/chunks/ApplicationTypeTag.BmU_cqaw.js +0 -1
  79. package/lib/chunks/BackBar.CZsNxoX1.js +0 -1
  80. package/lib/chunks/DocSyncSelect.DndqvEn2.js +0 -2
  81. package/lib/chunks/DocSyncSelect.kDNcepY-.js +0 -2
  82. package/lib/chunks/SourcePublish.eOSEULjP.js +0 -1
  83. package/lib/chunks/_plugin-vue_export-helper.BHFhmbuH.js +0 -1
  84. package/lib/chunks/config.1oaIKLGn.js +0 -1
  85. package/lib/chunks/config.B0XKkp1w.js +0 -1
  86. package/lib/chunks/config.BCAuBVxV.js +0 -1
  87. package/lib/chunks/config.BF7MO0O5.js +0 -1
  88. package/lib/chunks/enums.Dmq4PdUc.js +0 -1
  89. package/lib/chunks/enums.DpU2er5r.js +0 -1
  90. package/lib/chunks/field-types.Ch_2yDfg.js +0 -1
  91. package/lib/chunks/files.B3-8UC0v.js +0 -1
  92. package/lib/chunks/i18n.CL5L6nx6.js +0 -1
  93. package/lib/chunks/i18n.DgOp_D7R.js +0 -1
  94. package/lib/chunks/index.4hFddClT.js +0 -6
  95. package/lib/chunks/index.BNivYbtq.js +0 -1
  96. package/lib/chunks/index.B_keI1Aq.js +0 -1
  97. package/lib/chunks/index.Bk-RwmaH.js +0 -1
  98. package/lib/chunks/index.CJFk1R2u.js +0 -59
  99. package/lib/chunks/index.CkihWzK6.js +0 -1
  100. package/lib/chunks/layout.DbBSbLgm.js +0 -1
  101. package/lib/chunks/publish.3TrK3fZf.js +0 -1
  102. package/lib/chunks/publish.Bw1acrSu.js +0 -1
  103. package/lib/chunks/request.D8T4MgGX.js +0 -1
  104. package/lib/chunks/usePreview.BojIDW7Z.js +0 -1
@@ -1,4 +1,4 @@
1
1
  import { r as e } from "./chunks/config.Cneaz-Di.js";
2
2
  import { _ as t, a as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, y } from "./chunks/config.BVH1HTem.js";
3
- import { a as b, c as x, i as S, n as C, o as w, r as T, s as E, t as D } from "./chunks/SourcePublish.DBM7OeXm.js";
3
+ import { a as b, c as x, i as S, n as C, o as w, r as T, s as E, t as D } from "./chunks/SourcePublish.BqTfGtXE.js";
4
4
  export { g as API_CHANNEL_TYPES, d as AUTHORIZED_CHANNEL_TYPES, b as ApiTooltip, m as CHANNEL_ICON_CONFIG, w as FeishuTooltip, c as INACTIVE_ENUM, n as INACTIVE_LIST, f as LIBRARY_PAGE, h as OFFICIAL_LABEL, r as OPEN_STATUS_VALUE, e as PUBLISH_STATUS, l as PUBLISH_STATUS_COLORS, _ as PUBLISH_STATUS_ICONS, i as PUBLISH_STATUS_TEXT, a as PUBLISH_STATUS_TYPE, p as PUBLISH_TYPE_ICON_MAPPING, E as PermissionSetting, x as PublishIcon, S as PublishSettings, u as RELEASE_CHANNEL_CONFIG, s as RELEASE_CHANNEL_TYPE, o as STORE_CHANNEL_TYPES, t as STORE_DETAIL_TYPE, D as SourcePublish, D as default, v as getChannelsByType, y as serviceTypeMap, T as useServiceConfig, C as useStoreDetailType };
@@ -1 +1 @@
1
- .style-title[data-v-58195e4c]{margin:24px 0 16px;font-size:18px;font-weight:500}.card-container[data-v-d8a76b28]{background:#fff;border:1px solid #f0f0f0;border-radius:10px;padding:16px}.channel-icon[data-v-197d4379]{width:34px;height:34px}.gap-6[data-v-bb43b6f8]{gap:6px}.gap-12[data-v-bb43b6f8]{gap:12px}.publish-settings[data-v-26ab8d6f]{width:100%}.publish-settings .channel-name[data-v-26ab8d6f]{align-items:center;display:flex}.publish-settings .channel-name .channel-title[data-v-26ab8d6f]{margin-left:10px;line-height:18px}.publish-settings .channel-name .channel-title__name[data-v-26ab8d6f]{font-size:14px}.publish-settings .channel-name .channel-title__desc[data-v-26ab8d6f]{color:var(--color-text-light1);font-size:13px}.publish-settings .action-container[data-v-26ab8d6f]{text-align:right;justify-content:flex-end;align-items:center;gap:10px;width:100%;display:flex}.publish-settings .select-label[data-v-26ab8d6f]{color:#262626}.publish-settings .divider[data-v-26ab8d6f]{border-right:1px solid #f0f0f0;height:12px;margin:0 2px}.publish-settings .expand-content[data-v-26ab8d6f]{background:#fff;flex-direction:column;gap:20px;padding:20px 16px;display:flex}.publish-settings[data-v-26ab8d6f] .no-expand .el-table__expand-icon{display:none!important}.publish-container[data-v-09cd6741]{background-color:#f7f8fa;height:100%}.publish-container__back[data-v-09cd6741]{justify-content:space-between;align-items:center;width:100%;display:flex}.publish-container__form[data-v-09cd6741]{width:800px;height:calc(100% - 70px);margin:0 auto;overflow:auto}.publish-container__form .channel-name[data-v-09cd6741]{align-items:center;display:flex}.publish-container__form .channel-name .channel-icon[data-v-09cd6741]{border-radius:8px;justify-content:center;align-items:center;width:34px;height:34px;display:flex}.publish-container__form .channel-name .channel-title[data-v-09cd6741]{margin-left:10px;line-height:18px}.publish-container__form .channel-name .channel-title__name[data-v-09cd6741]{font-size:14px}.publish-container__form .channel-name .channel-title__desc[data-v-09cd6741]{color:var(--color-text-light1);font-size:13px}.publish-container__config[data-v-09cd6741]{background:#fafafa;border-radius:4px;justify-content:space-between;align-items:center;width:100%;padding:7px 20px;display:flex}.publish-container__config p[data-v-09cd6741]{align-items:center;display:flex}.publish-container__config p img[data-v-09cd6741]{margin-right:10px}.publish-container__required[data-v-09cd6741]{color:var(--el-color-danger);font-size:14px}.publish-container[data-v-09cd6741] .el-form .el-form-item:last-child{margin-bottom:0}.publish-container[data-v-09cd6741] .card-container:last-child{padding:0 16px 16px}.backend-system[data-v-09cd6741]{background-color:#0000}.backend-system .publish-container__form[data-v-09cd6741]{height:auto}
1
+ .style-title[data-v-58195e4c]{margin:24px 0 16px;font-size:18px;font-weight:500}.card-container[data-v-d8a76b28]{background:#fff;border:1px solid #f0f0f0;border-radius:10px;padding:16px}.channel-icon[data-v-197d4379]{width:34px;height:34px}.gap-6[data-v-bb43b6f8]{gap:6px}.gap-12[data-v-bb43b6f8]{gap:12px}.publish-settings[data-v-29ccd59d]{width:100%}.publish-settings .channel-name[data-v-29ccd59d]{align-items:center;display:flex}.publish-settings .channel-name .channel-title[data-v-29ccd59d]{margin-left:10px;line-height:18px}.publish-settings .channel-name .channel-title__name[data-v-29ccd59d]{font-size:14px}.publish-settings .channel-name .channel-title__desc[data-v-29ccd59d]{color:var(--color-text-light1);font-size:13px}.publish-settings .action-container[data-v-29ccd59d]{text-align:right;justify-content:flex-end;align-items:center;gap:10px;width:100%;display:flex}.publish-settings .select-label[data-v-29ccd59d]{color:#262626}.publish-settings .divider[data-v-29ccd59d]{border-right:1px solid #f0f0f0;height:12px;margin:0 2px}.publish-settings .expand-content[data-v-29ccd59d]{background:#fff;flex-direction:column;gap:20px;padding:20px 16px;display:flex}.publish-settings[data-v-29ccd59d] .no-expand .el-table__expand-icon{display:none!important}.publish-container[data-v-09cd6741]{background-color:#f7f8fa;height:100%}.publish-container__back[data-v-09cd6741]{justify-content:space-between;align-items:center;width:100%;display:flex}.publish-container__form[data-v-09cd6741]{width:800px;height:calc(100% - 70px);margin:0 auto;overflow:auto}.publish-container__form .channel-name[data-v-09cd6741]{align-items:center;display:flex}.publish-container__form .channel-name .channel-icon[data-v-09cd6741]{border-radius:8px;justify-content:center;align-items:center;width:34px;height:34px;display:flex}.publish-container__form .channel-name .channel-title[data-v-09cd6741]{margin-left:10px;line-height:18px}.publish-container__form .channel-name .channel-title__name[data-v-09cd6741]{font-size:14px}.publish-container__form .channel-name .channel-title__desc[data-v-09cd6741]{color:var(--color-text-light1);font-size:13px}.publish-container__config[data-v-09cd6741]{background:#fafafa;border-radius:4px;justify-content:space-between;align-items:center;width:100%;padding:7px 20px;display:flex}.publish-container__config p[data-v-09cd6741]{align-items:center;display:flex}.publish-container__config p img[data-v-09cd6741]{margin-right:10px}.publish-container__required[data-v-09cd6741]{color:var(--el-color-danger);font-size:14px}.publish-container[data-v-09cd6741] .el-form .el-form-item:last-child{margin-bottom:0}.publish-container[data-v-09cd6741] .card-container:last-child{padding:0 16px 16px}.backend-system[data-v-09cd6741]{background-color:#0000}.backend-system .publish-container__form[data-v-09cd6741]{height:auto}
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./withinstall.CMngc-br.js";
2
- import { m as t } from "./i18n.yuai-sb4.js";
2
+ import { m as t } from "./i18n.C-J-jxme.js";
3
3
  import { t as n } from "./request.CfSQnDD0.js";
4
4
  import { t as r } from "./FilePreview.8h1jwcK3.js";
5
5
  import { t as i } from "./_plugin-vue_export-helper.B3ysoDQm.js";
6
6
  import { n as a, t as ee } from "./DialogContainer.Bgf3f2T5.js";
7
- import { t as te } from "./FileUploader.D6yBWJC1.js";
7
+ import { t as te } from "./FileUploader.DUj7bSMa.js";
8
8
  import { Fragment as o, computed as ne, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, normalizeClass as p, normalizeStyle as m, onMounted as re, openBlock as h, reactive as ie, ref as g, renderList as _, resolveDynamicComponent as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
9
9
  import { ElButton as S, ElForm as C, ElFormItem as w, ElIcon as T, ElInput as E, ElMessage as D, ElOption as O, ElSelect as k } from "element-plus";
10
10
  import { IconGoto3 as A, IconWarn as j, Workflow as ae } from "color-message-aibox-vue";
@@ -0,0 +1,635 @@
1
+ import { m as e } from "./i18n.C-J-jxme.js";
2
+ import { t } from "./_plugin-vue_export-helper.B3ysoDQm.js";
3
+ import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, normalizeClass as d, normalizeStyle as f, openBlock as p, ref as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, withCtx as y, withModifiers as b } from "vue";
4
+ import { ElButton as x, ElDropdown as S, ElDropdownItem as C, ElDropdownMenu as w, ElEmpty as ee, ElIcon as T, ElPagination as te, ElTable as ne, ElTableColumn as E, ElTooltip as D } from "element-plus";
5
+ import { IconMore as O, IconTip as k, IconZuo as A } from "color-message-aibox-vue";
6
+ import { useRouter as j } from "vue-router";
7
+ import '../assets/AiboxTable.css';//#region components/Table/BackBar.vue
8
+ var M = { class: "back-bar__icon" }, N = {
9
+ key: 0,
10
+ class: "back-bar__title"
11
+ }, P = {
12
+ key: 1,
13
+ class: "back-bar__tip"
14
+ }, F = {
15
+ __name: "BackBar",
16
+ props: {
17
+ goBackFn: {
18
+ type: Function,
19
+ default: null
20
+ },
21
+ backBarStyle: {
22
+ type: String,
23
+ default: "#fff"
24
+ },
25
+ title: {
26
+ type: String,
27
+ default: ""
28
+ },
29
+ tipContent: {
30
+ type: String,
31
+ default: ""
32
+ }
33
+ },
34
+ setup(e) {
35
+ let t = e, n = j(), r = () => {
36
+ t.goBackFn ? t.goBackFn() : n.back();
37
+ };
38
+ return (t, n) => (p(), o("div", {
39
+ class: "back-bar",
40
+ style: f({ "background-color": e.backBarStyle })
41
+ }, [
42
+ s("div", M, [u(v(T), { onClick: b(r, ["stop"]) }, {
43
+ default: y(() => [u(v(A))]),
44
+ _: 1
45
+ })]),
46
+ g(t.$slots, "default"),
47
+ e.title ? (p(), o("div", N, _(e.title), 1)) : a("", !0),
48
+ e.tipContent ? (p(), o("div", P, [u(v(D), {
49
+ content: e.tipContent,
50
+ placement: "right"
51
+ }, {
52
+ default: y(() => [u(v(T), { size: "14" }, {
53
+ default: y(() => [u(v(k))]),
54
+ _: 1
55
+ })]),
56
+ _: 1
57
+ }, 8, ["content"])])) : a("", !0)
58
+ ], 4));
59
+ }
60
+ }, I = { class: "table-btns" }, L = { class: "btn-box" }, R = /*#__PURE__*/ t({
61
+ __name: "TableBtns",
62
+ props: {
63
+ config: {
64
+ type: Array,
65
+ required: !0,
66
+ default() {
67
+ return [];
68
+ }
69
+ },
70
+ showNums: {
71
+ type: Number,
72
+ default: 0,
73
+ validator(e) {
74
+ return e % 1 == 0 && e >= 0;
75
+ }
76
+ },
77
+ row: {
78
+ type: Object,
79
+ default: () => ({})
80
+ }
81
+ },
82
+ setup(t) {
83
+ let a = t, { t: c } = e(), f = (e, t) => {
84
+ e && e(t);
85
+ }, m = r(() => a.config.filter((e) => {
86
+ let t = e.permission === void 0 ? !0 : e.permission, n = !0;
87
+ return e.dataPermission && (n = e.dataPermission), t && n;
88
+ })), g = r(() => ({
89
+ show: m.value.slice(0, a.showNums),
90
+ hide: m.value.slice(a.showNums)
91
+ }));
92
+ return (e, r) => (p(), o("div", I, [m.value.length > t.showNums ? (p(), o(n, { key: 0 }, [(p(!0), o(n, null, h(g.value.show, (e, t) => (p(), i(v(x), {
93
+ key: t,
94
+ type: "primary",
95
+ link: "",
96
+ onClick: (t) => f(e.fn, e.row)
97
+ }, {
98
+ default: y(() => [l(_(e.label), 1)]),
99
+ _: 2
100
+ }, 1032, ["onClick"]))), 128)), u(v(S), {
101
+ "popper-class": "custom-dropdown",
102
+ trigger: "click"
103
+ }, {
104
+ dropdown: y(() => [u(v(w), { style: { padding: "14px 0" } }, {
105
+ default: y(() => [(p(!0), o(n, null, h(g.value.hide, (e, t) => (p(), i(v(C), {
106
+ key: t,
107
+ class: d({ "is-delete": e.label === v(c)("COMMON_BUTTON.DELETE_TEXT") || e.label === v(c)("COMMON_BUTTON.DISABLE_TEXT") || e.isDanger }),
108
+ onClick: (t) => f(e.fn, e.row)
109
+ }, {
110
+ default: y(() => [l(_(e.label), 1)]),
111
+ _: 2
112
+ }, 1032, ["class", "onClick"]))), 128))]),
113
+ _: 1
114
+ })]),
115
+ default: y(() => [s("div", L, [u(v(T), { style: {
116
+ "font-size": "20px",
117
+ color: "#999"
118
+ } }, {
119
+ default: y(() => [u(v(O))]),
120
+ _: 1
121
+ })])]),
122
+ _: 1
123
+ })], 64)) : (p(!0), o(n, { key: 1 }, h(m.value, (e, t) => (p(), i(v(x), {
124
+ type: "primary",
125
+ link: "",
126
+ key: t,
127
+ onClick: (t) => f(e.fn, e.row)
128
+ }, {
129
+ default: y(() => [l(_(e.label), 1)]),
130
+ _: 2
131
+ }, 1032, ["onClick"]))), 128))]));
132
+ }
133
+ }, [["__scopeId", "data-v-552341e3"]]), z = {
134
+ key: 0,
135
+ class: "aibox-table__handle"
136
+ }, B = { class: "handle-left" }, V = { class: "handle-right" }, H = { class: "aibox-table__content" }, U = { key: 0 }, W = {
137
+ key: 0,
138
+ class: "aibox-table__slot-wrapper"
139
+ }, G = { class: "aibox-table__slot-wrapper" }, K = ["innerHTML"], q = ["innerHTML"], J = { class: "aibox-table__slot-wrapper" }, Y = ["onClick"], X = { class: "aibox-table__slot-wrapper" }, re = ["onClick"], ie = { class: "aibox-table__slot-wrapper" }, ae = { class: "flex items-center" }, oe = { class: "aibox-table__slot-wrapper" }, se = {
140
+ key: 0,
141
+ class: "aibox-table__slot-wrapper"
142
+ }, Z = /*#__PURE__*/ t({
143
+ __name: "AiboxTable",
144
+ props: {
145
+ columns: {
146
+ type: Array,
147
+ default: () => []
148
+ },
149
+ data: {
150
+ type: Array,
151
+ default: () => []
152
+ },
153
+ total: {
154
+ type: [String, Number],
155
+ default: 0
156
+ },
157
+ hasPage: {
158
+ type: Boolean,
159
+ default: !0
160
+ },
161
+ onRowKey: {
162
+ type: Function,
163
+ default: () => {}
164
+ },
165
+ onRowClassName: {
166
+ type: Function,
167
+ default: () => {}
168
+ },
169
+ maxHeight: {
170
+ type: [String, Number],
171
+ default: null
172
+ },
173
+ isLoading: {
174
+ type: Boolean,
175
+ default: !1
176
+ },
177
+ pages: {
178
+ type: Object,
179
+ default: () => ({
180
+ page: 1,
181
+ size: 10
182
+ })
183
+ },
184
+ showChangeSize: {
185
+ type: Boolean,
186
+ default: !0
187
+ },
188
+ isCustomEmpty: {
189
+ type: Boolean,
190
+ default: !1
191
+ },
192
+ hasBorder: {
193
+ type: Boolean,
194
+ default: !1
195
+ },
196
+ hasHeaderHandle: {
197
+ type: Boolean,
198
+ default: !1
199
+ },
200
+ isSecondaryHeader: {
201
+ type: Boolean,
202
+ default: !1
203
+ },
204
+ defaultSort: { type: Object },
205
+ spanMethod: {
206
+ type: Function,
207
+ default: () => {}
208
+ },
209
+ showSummary: {
210
+ type: Boolean,
211
+ default: !1
212
+ },
213
+ summaryMethod: {
214
+ type: Function,
215
+ default: () => []
216
+ },
217
+ showHandleNums: {
218
+ type: Number,
219
+ default: 0
220
+ },
221
+ selectionType: {
222
+ type: String,
223
+ default: "checkbox"
224
+ },
225
+ expandRowKeys: {
226
+ type: Array,
227
+ default: () => []
228
+ },
229
+ isCanRowClick: {
230
+ type: Boolean,
231
+ default: !1
232
+ },
233
+ isPagePostion: {
234
+ type: Boolean,
235
+ default: !0
236
+ },
237
+ treeProps: {
238
+ type: Object,
239
+ default: () => ({
240
+ children: "children",
241
+ hasChildren: "hasChildren"
242
+ })
243
+ },
244
+ defaultExpandAll: {
245
+ type: Boolean,
246
+ default: !0
247
+ },
248
+ pagerCount: {
249
+ type: Number,
250
+ default: 7
251
+ },
252
+ size: {
253
+ type: String,
254
+ default: "default"
255
+ }
256
+ },
257
+ emits: [
258
+ "onPageChange",
259
+ "onMultiSelection",
260
+ "onSortChange",
261
+ "onCellDblclick",
262
+ "onRowClick"
263
+ ],
264
+ setup(t, { expose: l, emit: f }) {
265
+ let b = t, { t: x } = e(), S = m(null), C = m([]), w = r(() => typeof b.total == "string" ? Number(b.total) : b.total), T = r(() => b.showChangeSize ? "total, sizes, prev, pager, next, jumper" : "total, prev, pager, next, jumper"), D = r(() => w.value > 10 && b.hasPage), O = r(() => b.columns?.find?.((e) => e?.type === "selection")?.selectable || M), k = r(() => {
266
+ let e = b.data || [];
267
+ if (!e.length) return !1;
268
+ let t = O.value;
269
+ return !e.some((e, n) => t(e, n));
270
+ }), A = ({ column: e }) => e?.type === "selection" && k.value ? "aibox-table__select-all-disabled" : "", j = f, M = () => !0, N = (e) => b.onRowKey(e, (e) => e), P = (e) => b.onRowClassName(e), F = (e) => {
271
+ j("onPageChange", {
272
+ ...b.pages,
273
+ page: e
274
+ });
275
+ }, I = (e) => {
276
+ j("onPageChange", {
277
+ page: 1,
278
+ size: e
279
+ });
280
+ }, L = (e) => {
281
+ b.selectionType !== "radio" && j("onMultiSelection", e);
282
+ }, Z = (e) => {
283
+ if (b.selectionType === "radio") {
284
+ let t = C.value;
285
+ if (Q(), t.length == 1) {
286
+ let [n] = t, r = n.id !== e.id;
287
+ r ? (C.value = [e], j("onMultiSelection", [e])) : (C.value = [], j("onMultiSelection", [])), $(e, r);
288
+ } else $(e, !0), C.value = [e], j("onMultiSelection", [e]);
289
+ }
290
+ }, Q = () => {
291
+ S.value?.clearSelection(), j("onMultiSelection", []);
292
+ }, ce = () => {
293
+ S.value?.clearSort();
294
+ }, le = (e) => {
295
+ j("onSortChange", e);
296
+ }, ue = (e, t, n, r) => {
297
+ j("onCellDblclick", e, t, n, r);
298
+ }, de = (e) => {
299
+ b.selectionType === "radio" && Z(e);
300
+ }, fe = (e, t, n) => {
301
+ t?.type === "action" || !b.isCanRowClick || j("onRowClick", e, t, n);
302
+ }, $ = (e, t) => {
303
+ S.value?.toggleRowSelection(e, t);
304
+ };
305
+ return l({
306
+ handleClearSelection: Q,
307
+ handleToggleRowSelection: $,
308
+ clearSort: ce
309
+ }), (e, r) => (p(), o("div", { class: d([{
310
+ "row-click-style": t.isCanRowClick,
311
+ "no-pagination": !D.value
312
+ }, "aibox-table"]) }, [
313
+ t.hasHeaderHandle ? (p(), o("div", z, [s("div", B, [g(e.$slots, "handleLeft", {}, void 0, !0)]), s("div", V, [g(e.$slots, "handleRight", {}, void 0, !0)])])) : a("", !0),
314
+ s("div", H, [u(v(ne), {
315
+ ref_key: "aiboxTable",
316
+ ref: S,
317
+ "element-loading-text": v(x)("COMMON_DATA.LOADING_SUFFIX"),
318
+ "tree-props": t.treeProps,
319
+ "header-row-class-name": t.isSecondaryHeader ? "aibox-table__header secondary-header" : "aibox-table__header",
320
+ "header-cell-class-name": A,
321
+ "row-class-name": P,
322
+ data: t.data,
323
+ border: t.hasBorder,
324
+ style: { width: "100%" },
325
+ "row-key": N,
326
+ height: t.maxHeight,
327
+ "default-sort": t.defaultSort,
328
+ "span-method": t.spanMethod,
329
+ "expand-row-keys": t.expandRowKeys,
330
+ onSelectionChange: L,
331
+ onSortChange: le,
332
+ onCellDblclick: ue,
333
+ onCurrentChange: Z,
334
+ "show-summary": t.showSummary,
335
+ "summary-method": t.summaryMethod,
336
+ onSelect: de,
337
+ onRowClick: fe,
338
+ "default-expand-all": t.defaultExpandAll
339
+ }, {
340
+ empty: y(() => [t.isCustomEmpty ? (p(), o("div", se, [g(e.$slots, "customEmpty", {}, void 0, !0)])) : (p(), i(v(ee), {
341
+ key: 1,
342
+ description: v(x)("COMMON_DATA.EMPTY"),
343
+ "image-size": 80
344
+ }, null, 8, ["description"]))]),
345
+ default: y(() => [(p(!0), o(n, null, h(t.columns, (r) => (p(), o(n, null, [r.type === "selection" ? (p(), i(v(E), {
346
+ key: r.type,
347
+ type: "selection",
348
+ fixed: "left",
349
+ width: r.width || "50px",
350
+ "reserve-selection": !0,
351
+ selectable: r.selectable || M
352
+ }, null, 8, ["width", "selectable"])) : r.type === "index" ? (p(), i(v(E), {
353
+ key: `${r.type - r.label}`,
354
+ type: "index",
355
+ label: v(x)("COMMON_DATA.SNO_INDEX"),
356
+ fixed: "left",
357
+ width: r.width || "100px"
358
+ }, {
359
+ default: y((e) => [t.isLoading ? a("", !0) : (p(), o("span", U, _((t.pages.page - 1) * t.pages.size + e.$index + 1), 1))]),
360
+ _: 1
361
+ }, 8, ["label", "width"])) : r.slot ? (p(), i(v(E), {
362
+ align: r.align || "left",
363
+ key: r.prop,
364
+ prop: r.prop,
365
+ label: r.label,
366
+ width: r.width,
367
+ "min-width": r.minWidth,
368
+ "label-class-name": "label-space-style",
369
+ "class-name": "multi-row",
370
+ fixed: r.fixed,
371
+ sortable: r.sortable,
372
+ "show-overflow-tooltip": r.showOverflowTooltip
373
+ }, {
374
+ header: y(() => [r.headerSlot ? (p(), o("div", W, [g(e.$slots, r.headerSlot, {
375
+ item: r,
376
+ minWidth: r.minWidth
377
+ }, void 0, !0)])) : a("", !0)]),
378
+ default: y((t) => [s("div", G, [g(e.$slots, r.slot, {
379
+ row: t.row,
380
+ index: t.$index,
381
+ minWidth: r.minWidth
382
+ }, void 0, !0)])]),
383
+ _: 2
384
+ }, 1032, [
385
+ "align",
386
+ "prop",
387
+ "label",
388
+ "width",
389
+ "min-width",
390
+ "fixed",
391
+ "sortable",
392
+ "show-overflow-tooltip"
393
+ ])) : r.callback ? (p(), i(v(E), {
394
+ align: r.align || "left",
395
+ key: r.callback,
396
+ prop: r.prop,
397
+ label: r.label,
398
+ width: r.width,
399
+ "min-width": r.minWidth,
400
+ "show-overflow-tooltip": "",
401
+ fixed: r.fixed,
402
+ sortable: r.sortable
403
+ }, {
404
+ default: y((e) => [s("span", { innerHTML: r.callback && r.callback(e.row) }, null, 8, K)]),
405
+ _: 2
406
+ }, 1032, [
407
+ "align",
408
+ "prop",
409
+ "label",
410
+ "width",
411
+ "min-width",
412
+ "fixed",
413
+ "sortable"
414
+ ])) : r.type === "multistage" ? (p(), i(v(E), {
415
+ key: `${r.prop}`,
416
+ label: r.label,
417
+ prop: r.prop,
418
+ width: r.width,
419
+ "min-width": r.minWidth,
420
+ "show-overflow-tooltip": "",
421
+ align: r.align || "left",
422
+ "header-align": r.headerAlign || "left"
423
+ }, {
424
+ default: y(() => [(p(!0), o(n, null, h(r.children, (t) => (p(), o(n, null, [t.callback ? (p(), i(v(E), {
425
+ key: t.callback,
426
+ prop: t.prop,
427
+ label: t.label,
428
+ "min-width": t.minWidth,
429
+ "show-overflow-tooltip": ""
430
+ }, {
431
+ default: y((e) => [s("span", { innerHTML: t.callback && t.callback(e.row) }, null, 8, q)]),
432
+ _: 2
433
+ }, 1032, [
434
+ "prop",
435
+ "label",
436
+ "min-width"
437
+ ])) : t.slot ? (p(), i(v(E), {
438
+ key: t.prop,
439
+ "min-width": t.minWidth,
440
+ prop: t.prop,
441
+ label: t.label
442
+ }, {
443
+ default: y((n) => [s("div", J, [g(e.$slots, t.slot, {
444
+ row: n.row,
445
+ column: n.column,
446
+ index: n.$index
447
+ }, void 0, !0)])]),
448
+ _: 2
449
+ }, 1032, [
450
+ "min-width",
451
+ "prop",
452
+ "label"
453
+ ])) : t.custom ? (p(), i(v(E), {
454
+ key: `${t.prop}`,
455
+ prop: t.prop,
456
+ label: t.label,
457
+ "min-width": t.minWidth,
458
+ "show-overflow-tooltip": ""
459
+ }, {
460
+ header: y(() => [s("span", {
461
+ onClick: () => t.headerClick({
462
+ parent: r.label,
463
+ ...t
464
+ }),
465
+ style: {
466
+ color: "#5b9bd1",
467
+ cursor: "pointer"
468
+ }
469
+ }, _(t.label), 9, Y)]),
470
+ default: y((n) => [s("div", X, [g(e.$slots, "custom", { data: {
471
+ col: {
472
+ parent: r.label,
473
+ ...t
474
+ },
475
+ row: n.row
476
+ } }, void 0, !0)])]),
477
+ _: 2
478
+ }, 1032, [
479
+ "prop",
480
+ "label",
481
+ "min-width"
482
+ ])) : (p(), i(v(E), {
483
+ key: `${t.prop}-${t.label}`,
484
+ prop: t.prop,
485
+ label: t.label,
486
+ width: t.width,
487
+ "min-width": t.minWidth,
488
+ "show-overflow-tooltip": "",
489
+ "header-align": t.headerAlign ? t.headerAlign : "left",
490
+ align: t.align ? t.align : "left"
491
+ }, null, 8, [
492
+ "prop",
493
+ "label",
494
+ "width",
495
+ "min-width",
496
+ "header-align",
497
+ "align"
498
+ ]))], 64))), 256))]),
499
+ _: 2
500
+ }, 1032, [
501
+ "label",
502
+ "prop",
503
+ "width",
504
+ "min-width",
505
+ "align",
506
+ "header-align"
507
+ ])) : r.custom ? (p(), i(v(E), {
508
+ key: `${r.prop}-${r.custom}`,
509
+ prop: r.prop,
510
+ label: r.label,
511
+ "min-width": r.minWidth,
512
+ "show-overflow-tooltip": ""
513
+ }, {
514
+ header: y(() => [s("span", {
515
+ onClick: () => r.headerClick({
516
+ parent: "",
517
+ ...r
518
+ }),
519
+ style: {
520
+ color: "#5b9bd1",
521
+ cursor: "pointer"
522
+ }
523
+ }, _(r.label), 9, re)]),
524
+ default: y((t) => [s("div", ie, [g(e.$slots, "custom", { data: {
525
+ col: {
526
+ parent: "",
527
+ ...r
528
+ },
529
+ row: t.row
530
+ } }, void 0, !0)])]),
531
+ _: 2
532
+ }, 1032, [
533
+ "prop",
534
+ "label",
535
+ "min-width"
536
+ ])) : r.type === "action" ? (p(), i(v(E), {
537
+ key: `${r.prop - Math.random()}`,
538
+ label: r.label,
539
+ width: r.width,
540
+ type: "action",
541
+ fixed: "right"
542
+ }, {
543
+ default: y((n) => [s("div", ae, [g(e.$slots, "goto", { row: n.row }, void 0, !0), r?.config?.(n.row)?.length ? (p(), i(R, {
544
+ key: 0,
545
+ "show-nums": t.showHandleNums,
546
+ config: r.config(n.row, n.$index),
547
+ row: n.row
548
+ }, null, 8, [
549
+ "show-nums",
550
+ "config",
551
+ "row"
552
+ ])) : a("", !0)])]),
553
+ _: 2
554
+ }, 1032, ["label", "width"])) : r.type === "expand" ? (p(), i(v(E), {
555
+ type: "expand",
556
+ key: "expand" + r.prop,
557
+ width: r.width
558
+ }, {
559
+ default: y((t) => [s("div", oe, [g(e.$slots, "expand", {
560
+ row: t.row,
561
+ column: t.column
562
+ }, void 0, !0)])]),
563
+ _: 3
564
+ }, 8, ["width"])) : (p(), i(v(E), {
565
+ key: `${r.prop - r.label}`,
566
+ prop: r.prop,
567
+ label: r.label,
568
+ width: r.width,
569
+ "min-width": r.minWidth,
570
+ fixed: r.fixed,
571
+ sortable: r.sortable,
572
+ "show-overflow-tooltip": "",
573
+ align: r.align || "left"
574
+ }, c({ _: 2 }, [r.headerSlot ? {
575
+ name: "header",
576
+ fn: y(() => [g(e.$slots, r.headerSlot, {
577
+ item: r,
578
+ minWidth: r.minWidth
579
+ }, void 0, !0)]),
580
+ key: "0"
581
+ } : void 0]), 1032, [
582
+ "prop",
583
+ "label",
584
+ "width",
585
+ "min-width",
586
+ "fixed",
587
+ "sortable",
588
+ "align"
589
+ ]))], 64))), 256))]),
590
+ _: 3
591
+ }, 8, [
592
+ "element-loading-text",
593
+ "tree-props",
594
+ "header-row-class-name",
595
+ "data",
596
+ "border",
597
+ "height",
598
+ "default-sort",
599
+ "span-method",
600
+ "expand-row-keys",
601
+ "show-summary",
602
+ "summary-method",
603
+ "default-expand-all"
604
+ ])]),
605
+ w.value > 10 && t.hasPage ? (p(), o("div", {
606
+ key: 1,
607
+ class: d([t.isPagePostion ? "aibox-table__pages" : "aibox-table__page"])
608
+ }, [u(v(te), {
609
+ layout: T.value,
610
+ "current-page": t.pages.page,
611
+ "page-sizes": [
612
+ 10,
613
+ 20,
614
+ 50,
615
+ 100
616
+ ],
617
+ "page-size": t.pages.size,
618
+ total: w.value,
619
+ "pager-count": t.pagerCount,
620
+ size: t.size,
621
+ onSizeChange: I,
622
+ onCurrentChange: F
623
+ }, null, 8, [
624
+ "layout",
625
+ "current-page",
626
+ "page-size",
627
+ "total",
628
+ "pager-count",
629
+ "size"
630
+ ])], 2)) : a("", !0)
631
+ ], 2));
632
+ }
633
+ }, [["__scopeId", "data-v-7d82383b"]]);
634
+ //#endregion
635
+ export { R as n, F as r, Z as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./withinstall.CMngc-br.js";
2
- import { m as t } from "./i18n.yuai-sb4.js";
2
+ import { m as t } from "./i18n.C-J-jxme.js";
3
3
  import { t as n } from "./_plugin-vue_export-helper.B3ysoDQm.js";
4
4
  import { computed as r, createElementBlock as i, normalizeClass as a, openBlock as o, toDisplayString as s } from "vue";
5
5
  import { APPLICATION_TYPE as c } from "color-star-custom-components";