china-mobile-international-custom-components 0.0.39 → 0.0.41

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 (41) hide show
  1. package/es/ApplicationTypeTag.mjs +3 -3
  2. package/es/AvailableRangePreview.mjs +1 -1
  3. package/es/AvailableRangeSetting.mjs +2 -2
  4. package/es/BackBar.mjs +49 -0
  5. package/es/SourcePublish.mjs +762 -765
  6. package/es/Table.mjs +10 -0
  7. package/es/assets/AiboxTable.css +1 -0
  8. package/es/assets/ApplicationTypeTag.css +1 -1
  9. package/es/assets/BackBar.css +1 -0
  10. package/es/assets/SourcePublish.css +1 -1
  11. package/es/chunks/AiboxTable.feSxtxGI.js +563 -0
  12. package/es/chunks/BackBar.C3Tp-e_K.js +601 -0
  13. package/es/chunks/BackBar.DE2EjQfI.js +606 -0
  14. package/es/chunks/BackBar.zjPh_z_w.js +601 -0
  15. package/es/chunks/index.D1cu8OUn.js +260 -0
  16. package/es/chunks/index.DENagLDS.js +313 -0
  17. package/es/index.mjs +97 -89
  18. package/lib/ApplicationTypeTag.js +1 -1
  19. package/lib/AvailableRangePreview.js +1 -1
  20. package/lib/AvailableRangeSetting.js +1 -1
  21. package/lib/BackBar.js +1 -0
  22. package/lib/SourcePublish.js +1 -1
  23. package/lib/Table.js +1 -0
  24. package/lib/assets/AiboxTable.css +1 -0
  25. package/lib/assets/ApplicationTypeTag.css +1 -1
  26. package/lib/assets/BackBar.css +1 -0
  27. package/lib/assets/SourcePublish.css +1 -1
  28. package/lib/chunks/AiboxTable.DdCYg_mt.js +1 -0
  29. package/lib/chunks/BackBar.BL8repFN.js +1 -0
  30. package/lib/chunks/BackBar.CpYFuBeN.js +1 -0
  31. package/lib/chunks/BackBar.DcGRWfNN.js +1 -0
  32. package/lib/chunks/index.5Su4CrC-.js +1 -0
  33. package/lib/chunks/index.B_esKpWv.js +1 -0
  34. package/lib/index.js +1 -1
  35. package/package.json +4 -4
  36. package/es/chunks/index.BcLVH95_.js +0 -4058
  37. package/es/chunks/index.ClqvUq64.js +0 -302
  38. package/es/chunks/index.Dh5IGfxO.js +0 -290
  39. package/lib/chunks/index.Bk55us0s.js +0 -1
  40. package/lib/chunks/index.CSLWrMRE.js +0 -1
  41. package/lib/chunks/index.CV29Us4A.js +0 -6
package/es/Table.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { w as a } from "./chunks/index.bCzIhWFw.js";
2
+ import { _ as o } from "./chunks/BackBar.zjPh_z_w.js";
3
+ import { a as b, T as i } from "./chunks/BackBar.zjPh_z_w.js";
4
+ const s = a(o);
5
+ export {
6
+ s as AiboxTable,
7
+ b as BackBar,
8
+ i as TableBtns,
9
+ s as default
10
+ };
@@ -0,0 +1 @@
1
+ .table-btns[data-v-552341e3]{display:flex;align-items:center;cursor:pointer;color:var(--el-color-primary)}.table-btns[data-v-552341e3]>*:not(:first-child){margin-left:10px}.table-btns .btn-box[data-v-552341e3]{display:flex;justify-content:center;align-items:center;width:24px;height:24px;outline:none;border-radius:4px}.table-btns .btn-box[data-v-552341e3]:hover{background:#ecedee}.custom-dropdown{border-radius:8px;background:#fff;box-shadow:0 6px 40px 16px #00000005,0 4px 28px #00000005,0 3px 16px -8px #0000000a}.custom-dropdown .el-dropdown-menu{min-width:106px;padding:5px 4px!important;border-radius:8px}.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item{font-size:14px;color:var(--color-text-base);border-radius:4px}.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item:not(.is-disabled):hover,.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item:not(.is-disabled):focus{background-color:#f5f5f5}.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item.is-delete{color:#f5222d}.aibox-table{background:#fff;border-radius:4px;position:relative}.aibox-table__handle{height:54px;box-sizing:border-box;padding:0 20px 18px;display:flex;justify-content:space-between;align-items:center}.aibox-table__handle .handle-left,.aibox-table__handle .handle-right{display:flex;align-items:center}.aibox-table__pages{position:absolute;bottom:-45px;right:0}.aibox-table__page{margin-top:10px;display:flex;justify-content:end;margin-bottom:10px}.aibox-table__header{height:55px;line-height:55px;font-family:"Alibaba PuHuiTi 3-55";font-weight:700;font-size:14px;color:var(--color-text-base)}.aibox-table__header.secondary-header .el-table__cell{background-color:#fafafa!important}.aibox-table .el-table__cell{padding:0}.aibox-table__slot-wrapper{width:100%}.el-table{--el-table-row-hover-bg-color: #fafafa}.el-table .cell{padding:16px;line-height:1.5;min-height:48px}.row-click-style .el-table__row:hover{cursor:pointer}.aibox-table.no-pagination .el-table--border:after,.aibox-table.no-pagination .el-table--border:before,.aibox-table.no-pagination .el-table--border .el-table__inner-wrapper:after,.aibox-table.no-pagination .el-table__inner-wrapper:before{background-color:transparent!important}
@@ -1 +1 @@
1
- .dialogue[data-v-6ba8ff75],.autonomously[data-v-6ba8ff75]{height:22px;line-height:22px;border-radius:4px;text-align:center;font-weight:400;font-size:12px}.dialogue[data-v-6ba8ff75]{width:52px;background:#f4ffee;border:1px solid #aeed96;color:#389e0d}.autonomously[data-v-6ba8ff75]{background:#e5ebff;border:1px solid #99b0ff;width:64px;color:var(--el-color-primary)}
1
+ .dialogue[data-v-b4885355],.autonomously[data-v-b4885355]{height:22px;line-height:22px;border-radius:4px;text-align:center;font-weight:400;font-size:12px;white-space:nowrap}.dialogue[data-v-b4885355]{width:52px;background:#f4ffee;border:1px solid #aeed96;color:#389e0d}.autonomously[data-v-b4885355]{background:#e5ebff;border:1px solid #99b0ff;width:64px;color:var(--el-color-primary)}
@@ -0,0 +1 @@
1
+ .table-btns[data-v-552341e3]{display:flex;align-items:center;cursor:pointer;color:var(--el-color-primary)}.table-btns[data-v-552341e3]>*:not(:first-child){margin-left:10px}.table-btns .btn-box[data-v-552341e3]{display:flex;justify-content:center;align-items:center;width:24px;height:24px;outline:none;border-radius:4px}.table-btns .btn-box[data-v-552341e3]:hover{background:#ecedee}.custom-dropdown{border-radius:8px;background:#fff;box-shadow:0 6px 40px 16px #00000005,0 4px 28px #00000005,0 3px 16px -8px #0000000a}.custom-dropdown .el-dropdown-menu{min-width:106px;padding:5px 4px!important;border-radius:8px}.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item{font-size:14px;color:var(--color-text-base);border-radius:4px}.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item:not(.is-disabled):hover,.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item:not(.is-disabled):focus{background-color:#f5f5f5}.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item.is-delete{color:#f5222d}.aibox-table[data-v-c5ee5c6d]{background:#fff;border-radius:4px;position:relative}.aibox-table__handle[data-v-c5ee5c6d]{height:54px;box-sizing:border-box;padding:0 20px 18px;display:flex;justify-content:space-between;align-items:center}.aibox-table__handle .handle-left[data-v-c5ee5c6d],.aibox-table__handle .handle-right[data-v-c5ee5c6d]{display:flex;align-items:center}.aibox-table__pages[data-v-c5ee5c6d]{position:absolute;bottom:-45px;right:0}.aibox-table__page[data-v-c5ee5c6d]{margin-top:10px;display:flex;justify-content:end;margin-bottom:10px}.aibox-table__header[data-v-c5ee5c6d]{height:55px;line-height:55px;font-family:"Alibaba PuHuiTi 3-55";font-weight:700;font-size:14px;color:var(--color-text-base)}.aibox-table__header.secondary-header .el-table__cell[data-v-c5ee5c6d]{background-color:#fafafa!important}.aibox-table .el-table__cell[data-v-c5ee5c6d]{padding:0}.aibox-table__slot-wrapper[data-v-c5ee5c6d]{width:100%}.el-table[data-v-c5ee5c6d]{--el-table-row-hover-bg-color: #fafafa}.el-table .cell[data-v-c5ee5c6d]{padding:16px;line-height:1.5;min-height:48px}.row-click-style .el-table__row[data-v-c5ee5c6d]:hover{cursor:pointer}.aibox-table.no-pagination .el-table--border[data-v-c5ee5c6d]:after,.aibox-table.no-pagination .el-table--border[data-v-c5ee5c6d]:before,.aibox-table.no-pagination .el-table--border .el-table__inner-wrapper[data-v-c5ee5c6d]:after,.aibox-table.no-pagination .el-table__inner-wrapper[data-v-c5ee5c6d]:before{background-color:transparent!important}.back-bar{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:12px 20px;height:64px;background:#f7f8fa;border-bottom:1px solid #f0f0f0}.back-bar__icon{display:flex;align-items:center;justify-content:center;height:18px;width:18px;border-radius:4px;margin-right:10px;cursor:pointer}.back-bar__icon:hover{background:#f0f0f0}.back-bar .back-bar__title{font-weight:700;font-size:16px;color:#262626;line-height:22px}
@@ -1 +1 @@
1
- @charset "UTF-8";.style-title[data-v-58195e4c]{font-weight:500;font-size:18px;margin:24px 0 16px}.card-container[data-v-d8a76b28]{padding:16px;background:#fff;border-radius:10px;border:1px solid #f0f0f0}.channel-icon[data-v-28fe49ef]{width:34px;height:34px}.gap-6[data-v-2f926987]{gap:6px}.gap-12[data-v-2f926987]{gap:12px}.publish-settings[data-v-d36a9ab0]{width:100%}.publish-settings .channel-name[data-v-d36a9ab0]{display:flex;align-items:center}.publish-settings .channel-name .channel-title[data-v-d36a9ab0]{margin-left:10px;line-height:18px}.publish-settings .channel-name .channel-title__name[data-v-d36a9ab0]{font-size:14px}.publish-settings .channel-name .channel-title__desc[data-v-d36a9ab0]{font-size:13px;color:var(--color-text-light1)}.publish-settings .action-container[data-v-d36a9ab0]{text-align:right;width:100%;display:flex;justify-content:flex-end;align-items:center;gap:10px}.publish-settings .select-label[data-v-d36a9ab0]{color:#262626}.publish-settings .divider[data-v-d36a9ab0]{margin:0 2px;height:12px;border-right:1px solid #f0f0f0}.publish-settings .expand-content[data-v-d36a9ab0]{padding:20px 16px;display:flex;flex-direction:column;gap:20px;background:#fff}.publish-settings[data-v-d36a9ab0] .no-expand .el-table__expand-icon{display:none!important}.publish-container[data-v-b2ada39a]{background-color:#f7f8fa;height:100%}.publish-container__back[data-v-b2ada39a]{width:100%;display:flex;align-items:center;justify-content:space-between}.publish-container__form[data-v-b2ada39a]{width:800px;margin:0 auto;height:calc(100vh - 70px);overflow:auto}.publish-container__form .channel-name[data-v-b2ada39a]{display:flex;align-items:center}.publish-container__form .channel-name .channel-icon[data-v-b2ada39a]{display:flex;justify-content:center;align-items:center;border-radius:8px;width:34px;height:34px}.publish-container__form .channel-name .channel-title[data-v-b2ada39a]{margin-left:10px;line-height:18px}.publish-container__form .channel-name .channel-title__name[data-v-b2ada39a]{font-size:14px}.publish-container__form .channel-name .channel-title__desc[data-v-b2ada39a]{font-size:13px;color:var(--color-text-light1)}.publish-container__config[data-v-b2ada39a]{width:100%;padding:7px 20px;display:flex;align-items:center;justify-content:space-between;background:#fafafa;border-radius:4px}.publish-container__config p[data-v-b2ada39a]{display:flex;align-items:center}.publish-container__config p img[data-v-b2ada39a]{margin-right:10px}.publish-container__required[data-v-b2ada39a]{color:var(--el-color-danger);font-size:14px}.publish-container[data-v-b2ada39a] .el-form .el-form-item:last-child{margin-bottom:0}.publish-container[data-v-b2ada39a] .card-container:last-child{padding:0 16px 16px}
1
+ @charset "UTF-8";.style-title[data-v-58195e4c]{font-weight:500;font-size:18px;margin:24px 0 16px}.card-container[data-v-d8a76b28]{padding:16px;background:#fff;border-radius:10px;border:1px solid #f0f0f0}.channel-icon[data-v-197d4379]{width:34px;height:34px}.gap-6[data-v-b28f305d]{gap:6px}.gap-12[data-v-b28f305d]{gap:12px}.publish-settings[data-v-5ffe42e0]{width:100%}.publish-settings .channel-name[data-v-5ffe42e0]{display:flex;align-items:center}.publish-settings .channel-name .channel-title[data-v-5ffe42e0]{margin-left:10px;line-height:18px}.publish-settings .channel-name .channel-title__name[data-v-5ffe42e0]{font-size:14px}.publish-settings .channel-name .channel-title__desc[data-v-5ffe42e0]{font-size:13px;color:var(--color-text-light1)}.publish-settings .action-container[data-v-5ffe42e0]{text-align:right;width:100%;display:flex;justify-content:flex-end;align-items:center;gap:10px}.publish-settings .select-label[data-v-5ffe42e0]{color:#262626}.publish-settings .divider[data-v-5ffe42e0]{margin:0 2px;height:12px;border-right:1px solid #f0f0f0}.publish-settings .expand-content[data-v-5ffe42e0]{padding:20px 16px;display:flex;flex-direction:column;gap:20px;background:#fff}.publish-settings[data-v-5ffe42e0] .no-expand .el-table__expand-icon{display:none!important}.publish-container[data-v-5f779e86]{background-color:#f7f8fa;height:100%}.publish-container__back[data-v-5f779e86]{width:100%;display:flex;align-items:center;justify-content:space-between}.publish-container__form[data-v-5f779e86]{width:800px;margin:0 auto;height:calc(100vh - 70px);overflow:auto}.publish-container__form .channel-name[data-v-5f779e86]{display:flex;align-items:center}.publish-container__form .channel-name .channel-icon[data-v-5f779e86]{display:flex;justify-content:center;align-items:center;border-radius:8px;width:34px;height:34px}.publish-container__form .channel-name .channel-title[data-v-5f779e86]{margin-left:10px;line-height:18px}.publish-container__form .channel-name .channel-title__name[data-v-5f779e86]{font-size:14px}.publish-container__form .channel-name .channel-title__desc[data-v-5f779e86]{font-size:13px;color:var(--color-text-light1)}.publish-container__config[data-v-5f779e86]{width:100%;padding:7px 20px;display:flex;align-items:center;justify-content:space-between;background:#fafafa;border-radius:4px}.publish-container__config p[data-v-5f779e86]{display:flex;align-items:center}.publish-container__config p img[data-v-5f779e86]{margin-right:10px}.publish-container__required[data-v-5f779e86]{color:var(--el-color-danger);font-size:14px}.publish-container[data-v-5f779e86] .el-form .el-form-item:last-child{margin-bottom:0}.publish-container[data-v-5f779e86] .card-container:last-child{padding:0 16px 16px}
@@ -0,0 +1,563 @@
1
+ import { computed as M, createElementBlock as u, openBlock as o, Fragment as k, createVNode as $, renderList as N, createBlock as d, unref as n, withCtx as s, createTextVNode as D, toDisplayString as S, createElementVNode as c, normalizeClass as O, ref as R, resolveDirective as J, createCommentVNode as m, renderSlot as f, withDirectives as Q, createSlots as W } from "vue";
2
+ import { u as H } from "./i18n.BNeBD4gR.js";
3
+ import { IconMore as Z } from "color-message-aibox-vue";
4
+ import { ElButton as z, ElDropdown as ee, ElIcon as le, ElDropdownMenu as ae, ElDropdownItem as oe, ElTable as te, ElTableColumn as w, ElEmpty as ne, ElPagination as se } from "element-plus";
5
+ import { _ as re } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
+ import '../assets/AiboxTable.css';const de = { class: "table-btns" }, ie = { class: "btn-box" }, ce = {
7
+ __name: "TableBtns",
8
+ props: {
9
+ config: {
10
+ type: Array,
11
+ required: !0,
12
+ default() {
13
+ return [];
14
+ }
15
+ },
16
+ showNums: {
17
+ type: Number,
18
+ default: 0,
19
+ validator(t) {
20
+ return t % 1 === 0 && t >= 0;
21
+ }
22
+ },
23
+ row: {
24
+ type: Object,
25
+ default: () => ({})
26
+ }
27
+ },
28
+ setup(t) {
29
+ const T = t, { t: E } = H(), i = (h, g) => {
30
+ h && h(g);
31
+ }, y = M(() => T.config.filter((h) => {
32
+ const g = h.permission !== void 0 ? h.permission : !0;
33
+ let r = !0;
34
+ return h.dataPermission && (r = h.dataPermission), g && r;
35
+ })), C = M(() => ({
36
+ show: y.value.slice(0, T.showNums),
37
+ hide: y.value.slice(T.showNums)
38
+ }));
39
+ return (h, g) => (o(), u("div", de, [
40
+ y.value.length > t.showNums ? (o(), u(k, { key: 0 }, [
41
+ (o(!0), u(k, null, N(C.value.show, (r, x) => (o(), d(n(z), {
42
+ key: x,
43
+ type: "primary",
44
+ link: "",
45
+ onClick: (p) => i(r.fn, r.row)
46
+ }, {
47
+ default: s(() => [
48
+ D(S(r.label), 1)
49
+ ]),
50
+ _: 2
51
+ }, 1032, ["onClick"]))), 128)),
52
+ $(n(ee), {
53
+ "popper-class": "custom-dropdown",
54
+ trigger: "click"
55
+ }, {
56
+ dropdown: s(() => [
57
+ $(n(ae), { style: { padding: "14px 0" } }, {
58
+ default: s(() => [
59
+ (o(!0), u(k, null, N(C.value.hide, (r, x) => (o(), d(n(oe), {
60
+ key: x,
61
+ class: O({
62
+ "is-delete": r.label === n(E)("COMMON_BUTTON.DELETE_TEXT") || r.label === n(E)("COMMON_BUTTON.DISABLE_TEXT") || r.isDanger
63
+ }),
64
+ onClick: (p) => i(r.fn, r.row)
65
+ }, {
66
+ default: s(() => [
67
+ D(S(r.label), 1)
68
+ ]),
69
+ _: 2
70
+ }, 1032, ["class", "onClick"]))), 128))
71
+ ]),
72
+ _: 1
73
+ })
74
+ ]),
75
+ default: s(() => [
76
+ c("div", ie, [
77
+ $(n(le), { style: { "font-size": "20px", color: "#999" } }, {
78
+ default: s(() => [
79
+ $(n(Z))
80
+ ]),
81
+ _: 1
82
+ })
83
+ ])
84
+ ]),
85
+ _: 1
86
+ })
87
+ ], 64)) : (o(!0), u(k, { key: 1 }, N(y.value, (r, x) => (o(), d(n(z), {
88
+ type: "primary",
89
+ link: "",
90
+ key: x,
91
+ onClick: (p) => i(r.fn, r.row)
92
+ }, {
93
+ default: s(() => [
94
+ D(S(r.label), 1)
95
+ ]),
96
+ _: 2
97
+ }, 1032, ["onClick"]))), 128))
98
+ ]));
99
+ }
100
+ }, ue = /* @__PURE__ */ re(ce, [["__scopeId", "data-v-552341e3"]]), he = {
101
+ key: 0,
102
+ class: "aibox-table__handle"
103
+ }, pe = { class: "handle-left" }, we = { class: "handle-right" }, be = { class: "aibox-table__content" }, fe = { key: 0 }, ye = { class: "aibox-table__slot-wrapper" }, ge = { class: "aibox-table__slot-wrapper" }, ke = ["innerHTML"], Ce = ["innerHTML"], xe = { class: "aibox-table__slot-wrapper" }, ve = ["onClick"], _e = { class: "aibox-table__slot-wrapper" }, Se = ["onClick"], Te = { class: "aibox-table__slot-wrapper" }, $e = { class: "aibox-table__slot-wrapper" }, Me = {
104
+ key: 0,
105
+ class: "aibox-table__slot-wrapper"
106
+ }, Oe = {
107
+ __name: "AiboxTable",
108
+ props: {
109
+ columns: {
110
+ type: Array,
111
+ default: () => []
112
+ },
113
+ data: {
114
+ type: Array,
115
+ default: () => []
116
+ },
117
+ total: {
118
+ type: [String, Number],
119
+ default: 0
120
+ },
121
+ hasPage: {
122
+ type: Boolean,
123
+ default: !0
124
+ },
125
+ onRowKey: {
126
+ type: Function,
127
+ default: () => {
128
+ }
129
+ },
130
+ onRowClassName: {
131
+ type: Function,
132
+ default: () => {
133
+ }
134
+ },
135
+ maxHeight: {
136
+ type: [String, Number],
137
+ default: null
138
+ },
139
+ isLoading: {
140
+ type: Boolean,
141
+ default: !1
142
+ },
143
+ pages: {
144
+ type: Object,
145
+ default: () => ({
146
+ page: 1,
147
+ size: 10
148
+ })
149
+ },
150
+ showChangeSize: {
151
+ type: Boolean,
152
+ default: !0
153
+ },
154
+ isCustomEmpty: {
155
+ type: Boolean,
156
+ default: !1
157
+ },
158
+ hasBorder: {
159
+ type: Boolean,
160
+ default: !1
161
+ },
162
+ hasHeaderHandle: {
163
+ type: Boolean,
164
+ default: !1
165
+ },
166
+ isSecondaryHeader: {
167
+ type: Boolean,
168
+ default: !1
169
+ },
170
+ defaultSort: {
171
+ type: Object
172
+ },
173
+ spanMethod: {
174
+ type: Function,
175
+ default: () => {
176
+ }
177
+ },
178
+ showSummary: {
179
+ type: Boolean,
180
+ default: !1
181
+ },
182
+ summaryMethod: {
183
+ type: Function,
184
+ default: () => []
185
+ },
186
+ showHandleNums: {
187
+ type: Number,
188
+ default: 0
189
+ },
190
+ selectionType: {
191
+ type: String,
192
+ default: "checkbox"
193
+ },
194
+ expandRowKeys: {
195
+ type: Array,
196
+ default: () => []
197
+ },
198
+ isCanRowClick: {
199
+ type: Boolean,
200
+ default: !1
201
+ },
202
+ isPagePostion: {
203
+ type: Boolean,
204
+ default: !0
205
+ },
206
+ treeProps: {
207
+ type: Object,
208
+ default: () => ({ children: "children", hasChildren: "hasChildren" })
209
+ },
210
+ defaultExpandAll: {
211
+ type: Boolean,
212
+ default: !0
213
+ }
214
+ },
215
+ emits: [
216
+ "onPageChange",
217
+ "onMultiSelection",
218
+ "onSortChange",
219
+ "onCellDblclick",
220
+ "onRowClick"
221
+ ],
222
+ setup(t, { expose: T, emit: E }) {
223
+ const i = t, { t: y } = H(), C = R(null), h = R([]), g = M(() => typeof i.total == "string" ? Number(i.total) : i.total), r = M(() => i.showChangeSize ? "total, sizes, prev, pager, next, jumper" : "total, prev, pager, next, jumper"), x = M(() => g.value > 10 && i.hasPage), p = E, L = () => !0, I = (a) => i.onRowKey(a, (b) => b), F = (a) => i.onRowClassName(a), j = (a) => {
224
+ p("onPageChange", { ...i.pages, page: a });
225
+ }, K = (a) => {
226
+ p("onPageChange", { page: 1, size: a });
227
+ }, V = (a) => {
228
+ i.selectionType !== "radio" && p("onMultiSelection", a);
229
+ }, P = (a) => {
230
+ if (i.selectionType === "radio") {
231
+ const b = h.value;
232
+ if (A(), b.length == 1) {
233
+ const [v] = b, e = v.id !== a.id;
234
+ e ? (h.value = [a], p("onMultiSelection", [a])) : (h.value = [], p("onMultiSelection", [])), B(a, e);
235
+ } else
236
+ B(a, !0), h.value = [a], p("onMultiSelection", [a]);
237
+ }
238
+ }, A = () => {
239
+ C.value?.clearSelection(), p("onMultiSelection", []);
240
+ }, X = () => {
241
+ C.value?.clearSort();
242
+ }, U = (a) => {
243
+ p("onSortChange", a);
244
+ }, q = (a, b, v, e) => {
245
+ p("onCellDblclick", a, b, v, e);
246
+ }, G = (a) => {
247
+ i.selectionType === "radio" && P(a);
248
+ }, Y = (a, b, v) => {
249
+ b?.type === "action" || !i.isCanRowClick || p("onRowClick", a, b, v);
250
+ }, B = (a, b) => {
251
+ C.value?.toggleRowSelection(a, b);
252
+ };
253
+ return T({
254
+ handleClearSelection: A,
255
+ handleToggleRowSelection: B,
256
+ clearSort: X
257
+ }), (a, b) => {
258
+ const v = J("loading");
259
+ return o(), u("div", {
260
+ class: O([{
261
+ "row-click-style": t.isCanRowClick,
262
+ "no-pagination": !x.value
263
+ }, "aibox-table"])
264
+ }, [
265
+ t.hasHeaderHandle ? (o(), u("div", he, [
266
+ c("div", pe, [
267
+ f(a.$slots, "handleLeft")
268
+ ]),
269
+ c("div", we, [
270
+ f(a.$slots, "handleRight")
271
+ ])
272
+ ])) : m("", !0),
273
+ c("div", be, [
274
+ Q((o(), d(n(te), {
275
+ ref_key: "aiboxTable",
276
+ ref: C,
277
+ "element-loading-text": n(y)("COMMON_DATA.LOADING_SUFFIX"),
278
+ "tree-props": t.treeProps,
279
+ "header-row-class-name": t.isSecondaryHeader ? "aibox-table__header secondary-header" : "aibox-table__header",
280
+ "row-class-name": F,
281
+ data: t.data,
282
+ border: t.hasBorder,
283
+ style: { width: "100%" },
284
+ "row-key": I,
285
+ height: t.maxHeight,
286
+ "default-sort": t.defaultSort,
287
+ "span-method": t.spanMethod,
288
+ "expand-row-keys": t.expandRowKeys,
289
+ onSelectionChange: V,
290
+ onSortChange: U,
291
+ onCellDblclick: q,
292
+ onCurrentChange: P,
293
+ "show-summary": t.showSummary,
294
+ "summary-method": t.summaryMethod,
295
+ onSelect: G,
296
+ onRowClick: Y,
297
+ "default-expand-all": t.defaultExpandAll
298
+ }, {
299
+ empty: s(() => [
300
+ t.isCustomEmpty ? (o(), u("div", Me, [
301
+ f(a.$slots, "customEmpty")
302
+ ])) : (o(), d(n(ne), {
303
+ key: 1,
304
+ description: n(y)("COMMON_DATA.EMPTY"),
305
+ "image-size": 80
306
+ }, null, 8, ["description"]))
307
+ ]),
308
+ default: s(() => [
309
+ (o(!0), u(k, null, N(t.columns, (e) => (o(), u(k, null, [
310
+ e.type === "selection" ? (o(), d(n(w), {
311
+ key: e.type,
312
+ type: "selection",
313
+ fixed: "left",
314
+ width: e.width || "50px",
315
+ "reserve-selection": !0,
316
+ selectable: e.selectable || L
317
+ }, null, 8, ["width", "selectable"])) : e.type === "index" ? (o(), d(n(w), {
318
+ key: `${e.type - e.label}`,
319
+ type: "index",
320
+ label: n(y)("COMMON_DATA.SNO_INDEX"),
321
+ fixed: "left",
322
+ width: e.width || "100px"
323
+ }, {
324
+ default: s((l) => [
325
+ t.isLoading ? m("", !0) : (o(), u("span", fe, S((t.pages.page - 1) * t.pages.size + l.$index + 1), 1))
326
+ ]),
327
+ _: 1
328
+ }, 8, ["label", "width"])) : e.slot ? (o(), d(n(w), {
329
+ align: e.align || "left",
330
+ key: e.prop,
331
+ prop: e.prop,
332
+ label: e.label,
333
+ width: e.width,
334
+ "min-width": e.minWidth,
335
+ "label-class-name": "label-space-style",
336
+ "class-name": "multi-row",
337
+ fixed: e.fixed,
338
+ sortable: e.sortable,
339
+ "show-overflow-tooltip": e.showOverflowTooltip
340
+ }, W({
341
+ default: s((l) => [
342
+ c("div", ge, [
343
+ f(a.$slots, e.slot, {
344
+ row: l.row,
345
+ index: l.$index,
346
+ minWidth: e.minWidth
347
+ })
348
+ ])
349
+ ]),
350
+ _: 2
351
+ }, [
352
+ e.headerSlot ? {
353
+ name: "header",
354
+ fn: s(() => [
355
+ c("div", ye, [
356
+ f(a.$slots, e.headerSlot, {
357
+ item: e,
358
+ minWidth: e.minWidth
359
+ })
360
+ ])
361
+ ]),
362
+ key: "0"
363
+ } : void 0
364
+ ]), 1032, ["align", "prop", "label", "width", "min-width", "fixed", "sortable", "show-overflow-tooltip"])) : e.callback ? (o(), d(n(w), {
365
+ align: e.align || "left",
366
+ key: e.callback,
367
+ prop: e.prop,
368
+ label: e.label,
369
+ width: e.width,
370
+ "min-width": e.minWidth,
371
+ "show-overflow-tooltip": "",
372
+ fixed: e.fixed,
373
+ sortable: e.sortable
374
+ }, {
375
+ default: s((l) => [
376
+ c("span", {
377
+ innerHTML: e.callback && e.callback(l.row)
378
+ }, null, 8, ke)
379
+ ]),
380
+ _: 2
381
+ }, 1032, ["align", "prop", "label", "width", "min-width", "fixed", "sortable"])) : e.type === "multistage" ? (o(), d(n(w), {
382
+ key: `${e.prop}`,
383
+ label: e.label,
384
+ prop: e.prop,
385
+ width: e.width,
386
+ "min-width": e.minWidth,
387
+ "show-overflow-tooltip": "",
388
+ align: e.align || "left",
389
+ "header-align": e.headerAlign || "left"
390
+ }, {
391
+ default: s(() => [
392
+ (o(!0), u(k, null, N(e.children, (l) => (o(), u(k, null, [
393
+ l.callback ? (o(), d(n(w), {
394
+ key: l.callback,
395
+ prop: l.prop,
396
+ label: l.label,
397
+ "min-width": l.minWidth,
398
+ "show-overflow-tooltip": ""
399
+ }, {
400
+ default: s((_) => [
401
+ c("span", {
402
+ innerHTML: l.callback && l.callback(_.row)
403
+ }, null, 8, Ce)
404
+ ]),
405
+ _: 2
406
+ }, 1032, ["prop", "label", "min-width"])) : l.slot ? (o(), d(n(w), {
407
+ key: l.prop,
408
+ "min-width": l.minWidth,
409
+ prop: l.prop,
410
+ label: l.label
411
+ }, {
412
+ default: s((_) => [
413
+ c("div", xe, [
414
+ f(a.$slots, l.slot, {
415
+ row: _.row,
416
+ column: _.column,
417
+ index: _.$index
418
+ })
419
+ ])
420
+ ]),
421
+ _: 2
422
+ }, 1032, ["min-width", "prop", "label"])) : l.custom ? (o(), d(n(w), {
423
+ key: `${l.prop}`,
424
+ prop: l.prop,
425
+ label: l.label,
426
+ "min-width": l.minWidth,
427
+ "show-overflow-tooltip": ""
428
+ }, {
429
+ header: s(() => [
430
+ c("span", {
431
+ onClick: () => l.headerClick({ parent: e.label, ...l }),
432
+ style: { color: "#5b9bd1", cursor: "pointer" }
433
+ }, S(l.label), 9, ve)
434
+ ]),
435
+ default: s((_) => [
436
+ c("div", _e, [
437
+ f(a.$slots, "custom", {
438
+ data: {
439
+ col: { parent: e.label, ...l },
440
+ row: _.row
441
+ }
442
+ })
443
+ ])
444
+ ]),
445
+ _: 2
446
+ }, 1032, ["prop", "label", "min-width"])) : (o(), d(n(w), {
447
+ key: `${l.prop}-${l.label}`,
448
+ prop: l.prop,
449
+ label: l.label,
450
+ width: l.width,
451
+ "min-width": l.minWidth,
452
+ "show-overflow-tooltip": "",
453
+ "header-align": l.headerAlign ? l.headerAlign : "left",
454
+ align: l.align ? l.align : "left"
455
+ }, null, 8, ["prop", "label", "width", "min-width", "header-align", "align"]))
456
+ ], 64))), 256))
457
+ ]),
458
+ _: 2
459
+ }, 1032, ["label", "prop", "width", "min-width", "align", "header-align"])) : e.custom ? (o(), d(n(w), {
460
+ key: `${e.prop}-${e.custom}`,
461
+ prop: e.prop,
462
+ label: e.label,
463
+ "min-width": e.minWidth,
464
+ "show-overflow-tooltip": ""
465
+ }, {
466
+ header: s(() => [
467
+ c("span", {
468
+ onClick: () => e.headerClick({ parent: "", ...e }),
469
+ style: { color: "#5b9bd1", cursor: "pointer" }
470
+ }, S(e.label), 9, Se)
471
+ ]),
472
+ default: s((l) => [
473
+ c("div", Te, [
474
+ f(a.$slots, "custom", {
475
+ data: {
476
+ col: { parent: "", ...e },
477
+ row: l.row
478
+ }
479
+ })
480
+ ])
481
+ ]),
482
+ _: 2
483
+ }, 1032, ["prop", "label", "min-width"])) : e.type === "action" ? (o(), d(n(w), {
484
+ key: `${e.prop - Math.random()}`,
485
+ label: e.label,
486
+ width: e.width,
487
+ type: "action",
488
+ fixed: "right"
489
+ }, {
490
+ default: s((l) => [
491
+ e?.config?.(l.row)?.length ? (o(), d(ue, {
492
+ key: 0,
493
+ "show-nums": t.showHandleNums,
494
+ config: e.config(l.row, l.$index),
495
+ row: l.row
496
+ }, null, 8, ["show-nums", "config", "row"])) : m("", !0)
497
+ ]),
498
+ _: 2
499
+ }, 1032, ["label", "width"])) : e.type === "expand" ? (o(), d(n(w), {
500
+ type: "expand",
501
+ key: "expand" + e.prop,
502
+ width: e.width
503
+ }, {
504
+ default: s((l) => [
505
+ c("div", $e, [
506
+ f(a.$slots, "expand", {
507
+ row: l.row,
508
+ column: l.column
509
+ })
510
+ ])
511
+ ]),
512
+ _: 3
513
+ }, 8, ["width"])) : (o(), d(n(w), {
514
+ key: `${e.prop - e.label}`,
515
+ prop: e.prop,
516
+ label: e.label,
517
+ width: e.width,
518
+ "min-width": e.minWidth,
519
+ fixed: e.fixed,
520
+ sortable: e.sortable,
521
+ "show-overflow-tooltip": "",
522
+ align: e.align || "left"
523
+ }, W({ _: 2 }, [
524
+ e.headerSlot ? {
525
+ name: "header",
526
+ fn: s(() => [
527
+ f(a.$slots, e.headerSlot, {
528
+ item: e,
529
+ minWidth: e.minWidth
530
+ })
531
+ ]),
532
+ key: "0"
533
+ } : void 0
534
+ ]), 1032, ["prop", "label", "width", "min-width", "fixed", "sortable", "align"]))
535
+ ], 64))), 256))
536
+ ]),
537
+ _: 3
538
+ }, 8, ["element-loading-text", "tree-props", "header-row-class-name", "data", "border", "height", "default-sort", "span-method", "expand-row-keys", "show-summary", "summary-method", "default-expand-all"])), [
539
+ [v, t.isLoading]
540
+ ])
541
+ ]),
542
+ g.value > 10 && t.hasPage ? (o(), u("div", {
543
+ key: 1,
544
+ class: O([t.isPagePostion ? "aibox-table__pages" : "aibox-table__page"])
545
+ }, [
546
+ $(n(se), {
547
+ layout: r.value,
548
+ "current-page": t.pages.page,
549
+ "page-sizes": [10, 20, 50, 100],
550
+ "page-size": t.pages.size,
551
+ total: g.value,
552
+ onSizeChange: K,
553
+ onCurrentChange: j
554
+ }, null, 8, ["layout", "current-page", "page-size", "total"])
555
+ ], 2)) : m("", !0)
556
+ ], 2);
557
+ };
558
+ }
559
+ };
560
+ export {
561
+ ue as T,
562
+ Oe as _
563
+ };