@kong-ui-public/table-data-grid 0.3.12-pr.3713.c0f383522.0 → 0.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/table-data-grid.es.js +159 -170
- package/dist/table-data-grid.umd.js +1 -1
- package/dist/types/components/TableDataGrid.vue.d.ts +1 -3
- package/dist/types/components/TableDataGrid.vue.d.ts.map +1 -1
- package/dist/types/composables/useFetchInfinite.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +1 -14
- package/dist/types/types/index.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.table-data-grid-cell-renderer,.table-data-grid-cell-tooltip,.table-data-grid-cell-content{display:block;min-width:0;width:100%}.table-data-grid-cell-content{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-table-data-grid[data-v-
|
|
1
|
+
.table-data-grid-cell-renderer,.table-data-grid-cell-tooltip,.table-data-grid-cell-content{display:block;min-width:0;width:100%}.table-data-grid-cell-content{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-table-data-grid[data-v-b8bd22c9]{border:none;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-sizing:border-box;display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden;width:100%}.table-data-grid-grid[data-v-b8bd22c9]{--ag-background-color: var(--kui-color-background, #ffffff);--ag-border-color: var(--kui-color-border, #e0e4ea);--ag-foreground-color: var(--kui-color-text, #000933);--ag-header-background-color: var(--kui-color-background, #ffffff);--ag-header-column-border: 1px solid var(--kui-color-border, #e0e4ea);--ag-header-column-border-height: 30%;--ag-header-column-resize-handle-color: transparent;--ag-header-font-weight: var(--kui-font-weight-semibold, 600);--ag-header-text-color: var(--kui-color-text-neutral, #6c7489);--ag-wrapper-border: none;--ag-wrapper-border-radius: 0;flex:1 1 auto;min-height:0;width:100%}.ag-cell{align-items:center;display:flex;min-width:0}.ag-cell-wrapper,.ag-cell-value{min-width:0;width:100%}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { AgGridVue as
|
|
3
|
-
import { ModuleRegistry as
|
|
4
|
-
import { createI18n as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as A, shallowRef as N, ref as R, computed as k, onMounted as W, watch as O, onUnmounted as V, nextTick as $, resolveComponent as T, openBlock as w, createElementBlock as G, createVNode as I, withCtx as j, createElementVNode as q, toDisplayString as H, readonly as _, renderSlot as x, unref as S, createBlock as P } from "vue";
|
|
2
|
+
import { AgGridVue as Q } from "ag-grid-vue3";
|
|
3
|
+
import { ModuleRegistry as J, AllCommunityModule as X, InfiniteRowModelModule as Y, themeQuartz as Z } from "ag-grid-community";
|
|
4
|
+
import { createI18n as ee, i18nTComponent as te } from "@kong-ui-public/i18n";
|
|
5
|
+
const ae = { class: "table-data-grid-cell-renderer" }, oe = /* @__PURE__ */ A({
|
|
6
6
|
name: "TableDataGridCellRenderer",
|
|
7
7
|
__name: "TableDataGridCellRenderer",
|
|
8
8
|
props: {
|
|
9
9
|
params: {}
|
|
10
10
|
},
|
|
11
|
-
setup(e, { expose:
|
|
12
|
-
const
|
|
11
|
+
setup(e, { expose: i }) {
|
|
12
|
+
const a = N(e.params), t = R(null), r = R(!1), h = k(() => a.value.valueFormatted ?? String(a.value.value ?? ""));
|
|
13
13
|
let f, u, m = !1;
|
|
14
14
|
const C = () => {
|
|
15
15
|
const d = t.value;
|
|
16
|
-
|
|
16
|
+
r.value = !!d && d.scrollWidth > d.clientWidth;
|
|
17
17
|
}, p = () => {
|
|
18
18
|
m || (u !== void 0 && cancelAnimationFrame(u), u = requestAnimationFrame(() => {
|
|
19
19
|
u = void 0, C();
|
|
20
20
|
}));
|
|
21
|
-
},
|
|
21
|
+
}, g = (d) => {
|
|
22
22
|
if (f?.disconnect(), d) {
|
|
23
23
|
f?.observe(d);
|
|
24
|
-
const
|
|
25
|
-
|
|
24
|
+
const y = d.closest(".ag-cell");
|
|
25
|
+
y && f?.observe(y);
|
|
26
26
|
}
|
|
27
27
|
p();
|
|
28
28
|
};
|
|
29
|
-
return
|
|
30
|
-
f = new ResizeObserver(p),
|
|
31
|
-
}),
|
|
29
|
+
return W(() => {
|
|
30
|
+
f = new ResizeObserver(p), g(t.value);
|
|
31
|
+
}), O(t, g, { flush: "post" }), V(() => {
|
|
32
32
|
m = !0, f?.disconnect(), u !== void 0 && cancelAnimationFrame(u);
|
|
33
|
-
}),
|
|
33
|
+
}), i({
|
|
34
34
|
refresh(d) {
|
|
35
|
-
return
|
|
35
|
+
return a.value = d, $(p), !0;
|
|
36
36
|
}
|
|
37
|
-
}), (d,
|
|
38
|
-
const
|
|
39
|
-
return w(), G("span",
|
|
40
|
-
|
|
37
|
+
}), (d, y) => {
|
|
38
|
+
const E = T("KTooltip");
|
|
39
|
+
return w(), G("span", ae, [
|
|
40
|
+
I(E, {
|
|
41
41
|
class: "table-data-grid-cell-tooltip",
|
|
42
|
-
disabled: !
|
|
42
|
+
disabled: !r.value,
|
|
43
43
|
"kpop-attributes": { popoverDelay: 400 },
|
|
44
44
|
"max-width": "300",
|
|
45
45
|
placement: "bottom-start",
|
|
@@ -61,37 +61,37 @@ const oe = { class: "table-data-grid-cell-renderer" }, T = /* @__PURE__ */ K({
|
|
|
61
61
|
});
|
|
62
62
|
var F = /* @__PURE__ */ ((e) => (e.PENDING = "PENDING", e.LOADING = "LOADING", e.SUCCESS = "SUCCESS", e.ERROR = "ERROR", e))(F || {});
|
|
63
63
|
const re = (e) => !!e?.length;
|
|
64
|
-
function ne(e,
|
|
65
|
-
const
|
|
66
|
-
const u = e.value !== void 0, m =
|
|
67
|
-
return
|
|
64
|
+
function ne(e, i, a, t = re) {
|
|
65
|
+
const r = k(() => t(e.value)), h = k(() => {
|
|
66
|
+
const u = e.value !== void 0, m = i.value !== void 0 && i.value !== null;
|
|
67
|
+
return a.value ? "LOADING" : r.value ? "SUCCESS" : m ? "ERROR" : u ? "SUCCESS" : "PENDING";
|
|
68
68
|
});
|
|
69
69
|
return {
|
|
70
70
|
fetchState: F,
|
|
71
|
-
hasData:
|
|
71
|
+
hasData: r,
|
|
72
72
|
state: h
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
const se = ({
|
|
76
76
|
emitState: e,
|
|
77
|
-
fetchLifecycleState:
|
|
78
|
-
hasData:
|
|
77
|
+
fetchLifecycleState: i,
|
|
78
|
+
hasData: a
|
|
79
79
|
}) => {
|
|
80
|
-
|
|
80
|
+
O(
|
|
81
81
|
() => ({
|
|
82
|
-
hasData:
|
|
83
|
-
state:
|
|
82
|
+
hasData: a.value,
|
|
83
|
+
state: i.value
|
|
84
84
|
}),
|
|
85
|
-
({ hasData: t, state:
|
|
86
|
-
if (
|
|
87
|
-
if (
|
|
85
|
+
({ hasData: t, state: r }) => {
|
|
86
|
+
if (r !== F.PENDING) {
|
|
87
|
+
if (r === F.LOADING) {
|
|
88
88
|
e({
|
|
89
89
|
hasData: t,
|
|
90
90
|
state: "loading"
|
|
91
91
|
});
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
|
-
if (
|
|
94
|
+
if (r === F.ERROR) {
|
|
95
95
|
e({
|
|
96
96
|
hasData: t,
|
|
97
97
|
state: "error"
|
|
@@ -105,141 +105,140 @@ const se = ({
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
|
-
}, le = ({ startRow: e, endRow:
|
|
109
|
-
const
|
|
108
|
+
}, le = ({ startRow: e, endRow: i }) => {
|
|
109
|
+
const a = i - e;
|
|
110
110
|
return {
|
|
111
|
-
blockIndex:
|
|
112
|
-
pageSize:
|
|
111
|
+
blockIndex: a > 0 ? Math.floor(e / a) : 0,
|
|
112
|
+
pageSize: a
|
|
113
113
|
};
|
|
114
114
|
}, ie = ({
|
|
115
115
|
startRow: e,
|
|
116
|
-
rowsLength:
|
|
117
|
-
pageSize:
|
|
116
|
+
rowsLength: i,
|
|
117
|
+
pageSize: a,
|
|
118
118
|
total: t,
|
|
119
|
-
hasMore:
|
|
119
|
+
hasMore: r
|
|
120
120
|
}) => {
|
|
121
121
|
if (typeof t == "number")
|
|
122
122
|
return t;
|
|
123
|
-
if (
|
|
124
|
-
return e +
|
|
123
|
+
if (r !== !0 && (r === !1 || i < a))
|
|
124
|
+
return e + i;
|
|
125
125
|
}, ce = ({
|
|
126
126
|
fetcher: e,
|
|
127
|
-
resetKey:
|
|
127
|
+
resetKey: i
|
|
128
128
|
}) => {
|
|
129
|
-
const
|
|
129
|
+
const a = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), r = R(0), h = N(), f = N(), u = N(), m = R(0), C = R(!1), p = (o) => o === r.value, g = () => {
|
|
130
130
|
C.value = m.value > 0;
|
|
131
131
|
}, d = () => {
|
|
132
|
-
u.value = void 0, m.value += 1,
|
|
133
|
-
},
|
|
134
|
-
m.value = Math.max(0, m.value - 1),
|
|
135
|
-
},
|
|
136
|
-
const
|
|
137
|
-
if (
|
|
138
|
-
return
|
|
139
|
-
let
|
|
132
|
+
u.value = void 0, m.value += 1, g();
|
|
133
|
+
}, y = () => {
|
|
134
|
+
m.value = Math.max(0, m.value - 1), g();
|
|
135
|
+
}, E = (o) => {
|
|
136
|
+
const n = t.get(o);
|
|
137
|
+
if (n)
|
|
138
|
+
return n;
|
|
139
|
+
let s;
|
|
140
140
|
const v = {
|
|
141
|
-
promise: new Promise((
|
|
142
|
-
|
|
141
|
+
promise: new Promise((l) => {
|
|
142
|
+
s = l;
|
|
143
143
|
}),
|
|
144
|
-
resolve: (
|
|
144
|
+
resolve: (l) => s(l)
|
|
145
145
|
};
|
|
146
|
-
return t.set(
|
|
147
|
-
}, b = (
|
|
148
|
-
|
|
149
|
-
},
|
|
150
|
-
blockIndex:
|
|
151
|
-
currentBlockCompletion:
|
|
152
|
-
datasourceId:
|
|
146
|
+
return t.set(o, v), v;
|
|
147
|
+
}, b = (o, n) => {
|
|
148
|
+
n.resolve(!1), t.get(o) === n && t.delete(o);
|
|
149
|
+
}, c = async ({
|
|
150
|
+
blockIndex: o,
|
|
151
|
+
currentBlockCompletion: n,
|
|
152
|
+
datasourceId: s
|
|
153
153
|
}) => {
|
|
154
|
-
if (
|
|
154
|
+
if (o === 0)
|
|
155
155
|
return "ready";
|
|
156
|
-
const v = t.get(
|
|
156
|
+
const v = t.get(o - 1);
|
|
157
157
|
if (!v)
|
|
158
|
-
return b(
|
|
159
|
-
const
|
|
160
|
-
return p(
|
|
161
|
-
},
|
|
162
|
-
blockIndex:
|
|
163
|
-
currentBlockCompletion:
|
|
164
|
-
getRowsParams:
|
|
158
|
+
return b(o, n), "failed";
|
|
159
|
+
const l = await v.promise;
|
|
160
|
+
return p(s) ? l ? "ready" : (b(o, n), "failed") : (b(o, n), "stale");
|
|
161
|
+
}, M = ({
|
|
162
|
+
blockIndex: o,
|
|
163
|
+
currentBlockCompletion: n,
|
|
164
|
+
getRowsParams: s,
|
|
165
165
|
pageSize: v,
|
|
166
|
-
result:
|
|
166
|
+
result: l
|
|
167
167
|
}) => {
|
|
168
|
-
|
|
169
|
-
startRow:
|
|
170
|
-
rowsLength:
|
|
168
|
+
l.cursor !== void 0 && a.set(o, l.cursor), s.successCallback(l.data, ie({
|
|
169
|
+
startRow: s.startRow,
|
|
170
|
+
rowsLength: l.data.length,
|
|
171
171
|
pageSize: v,
|
|
172
|
-
total:
|
|
173
|
-
hasMore:
|
|
174
|
-
})),
|
|
175
|
-
},
|
|
176
|
-
blockIndex:
|
|
177
|
-
currentBlockCompletion:
|
|
178
|
-
fetchError:
|
|
172
|
+
total: l.total,
|
|
173
|
+
hasMore: l.hasMore
|
|
174
|
+
})), s.startRow === 0 && (f.value = l.data), n.resolve(!0);
|
|
175
|
+
}, D = ({
|
|
176
|
+
blockIndex: o,
|
|
177
|
+
currentBlockCompletion: n,
|
|
178
|
+
fetchError: s,
|
|
179
179
|
getRowsParams: v
|
|
180
180
|
}) => {
|
|
181
|
-
u.value =
|
|
182
|
-
},
|
|
183
|
-
const
|
|
184
|
-
return
|
|
185
|
-
async getRows(
|
|
181
|
+
u.value = s, v.failCallback(), b(o, n);
|
|
182
|
+
}, K = () => {
|
|
183
|
+
const o = r.value + 1;
|
|
184
|
+
return r.value = o, a.clear(), t.clear(), f.value = void 0, u.value = void 0, m.value = 0, g(), {
|
|
185
|
+
async getRows(n) {
|
|
186
186
|
const {
|
|
187
|
-
blockIndex:
|
|
187
|
+
blockIndex: s,
|
|
188
188
|
pageSize: v
|
|
189
189
|
} = le({
|
|
190
|
-
startRow:
|
|
191
|
-
endRow:
|
|
192
|
-
}),
|
|
193
|
-
blockIndex:
|
|
194
|
-
currentBlockCompletion:
|
|
195
|
-
datasourceId:
|
|
190
|
+
startRow: n.startRow,
|
|
191
|
+
endRow: n.endRow
|
|
192
|
+
}), l = E(s), z = await c({
|
|
193
|
+
blockIndex: s,
|
|
194
|
+
currentBlockCompletion: l,
|
|
195
|
+
datasourceId: o
|
|
196
196
|
});
|
|
197
|
-
if (
|
|
198
|
-
|
|
197
|
+
if (z !== "ready") {
|
|
198
|
+
z === "failed" && n.failCallback();
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
201
|
d();
|
|
202
202
|
try {
|
|
203
|
-
const B =
|
|
203
|
+
const B = s > 0 ? a.get(s - 1) : void 0, U = await e({
|
|
204
204
|
mode: "infinite",
|
|
205
205
|
pageSize: v,
|
|
206
|
-
cursor: B
|
|
207
|
-
sort: s.sortModel
|
|
206
|
+
cursor: B
|
|
208
207
|
});
|
|
209
|
-
if (!p(
|
|
210
|
-
b(
|
|
208
|
+
if (!p(o)) {
|
|
209
|
+
b(s, l);
|
|
211
210
|
return;
|
|
212
211
|
}
|
|
213
|
-
|
|
214
|
-
blockIndex:
|
|
215
|
-
currentBlockCompletion:
|
|
216
|
-
getRowsParams:
|
|
212
|
+
M({
|
|
213
|
+
blockIndex: s,
|
|
214
|
+
currentBlockCompletion: l,
|
|
215
|
+
getRowsParams: n,
|
|
217
216
|
pageSize: v,
|
|
218
|
-
result:
|
|
217
|
+
result: U
|
|
219
218
|
});
|
|
220
219
|
} catch (B) {
|
|
221
|
-
if (!p(
|
|
222
|
-
b(
|
|
220
|
+
if (!p(o)) {
|
|
221
|
+
b(s, l);
|
|
223
222
|
return;
|
|
224
223
|
}
|
|
225
|
-
|
|
226
|
-
blockIndex:
|
|
227
|
-
currentBlockCompletion:
|
|
224
|
+
D({
|
|
225
|
+
blockIndex: s,
|
|
226
|
+
currentBlockCompletion: l,
|
|
228
227
|
fetchError: B,
|
|
229
|
-
getRowsParams:
|
|
228
|
+
getRowsParams: n
|
|
230
229
|
});
|
|
231
230
|
} finally {
|
|
232
|
-
p(
|
|
231
|
+
p(o) && y();
|
|
233
232
|
}
|
|
234
233
|
}
|
|
235
234
|
};
|
|
236
|
-
},
|
|
237
|
-
h.value =
|
|
235
|
+
}, L = () => {
|
|
236
|
+
h.value = K();
|
|
238
237
|
};
|
|
239
|
-
return
|
|
240
|
-
() =>
|
|
238
|
+
return O(
|
|
239
|
+
() => i?.value,
|
|
241
240
|
() => {
|
|
242
|
-
|
|
241
|
+
L();
|
|
243
242
|
},
|
|
244
243
|
{ immediate: !0 }
|
|
245
244
|
), {
|
|
@@ -253,10 +252,10 @@ const se = ({
|
|
|
253
252
|
errorState: de
|
|
254
253
|
};
|
|
255
254
|
function me() {
|
|
256
|
-
const e =
|
|
255
|
+
const e = ee("en-us", fe);
|
|
257
256
|
return {
|
|
258
257
|
i18n: e,
|
|
259
|
-
i18nT:
|
|
258
|
+
i18nT: te(e)
|
|
260
259
|
// Translation component <i18n-t>
|
|
261
260
|
};
|
|
262
261
|
}
|
|
@@ -271,7 +270,7 @@ const ve = {
|
|
|
271
270
|
key: 1,
|
|
272
271
|
class: "table-empty-state",
|
|
273
272
|
"data-testid": "table-empty-state"
|
|
274
|
-
},
|
|
273
|
+
}, ge = /* @__PURE__ */ A({
|
|
275
274
|
__name: "TableDataGrid",
|
|
276
275
|
props: {
|
|
277
276
|
headers: {},
|
|
@@ -280,30 +279,23 @@ const ve = {
|
|
|
280
279
|
pageSize: { default: 25 },
|
|
281
280
|
refreshKey: { type: [String, Number, Boolean] }
|
|
282
281
|
},
|
|
283
|
-
emits: ["grid:ready", "state"
|
|
284
|
-
setup(e, { emit:
|
|
285
|
-
|
|
286
|
-
const
|
|
287
|
-
cellRenderer:
|
|
282
|
+
emits: ["grid:ready", "state"],
|
|
283
|
+
setup(e, { emit: i }) {
|
|
284
|
+
J.registerModules([X, Y]);
|
|
285
|
+
const a = i, { i18n: { t } } = me(), r = {
|
|
286
|
+
cellRenderer: oe,
|
|
288
287
|
resizable: !1,
|
|
289
288
|
sortable: !1,
|
|
290
289
|
suppressMovable: !0
|
|
291
|
-
}, h = k(() => e.headers.map((
|
|
292
|
-
colId:
|
|
290
|
+
}, h = k(() => e.headers.map((c) => ({
|
|
291
|
+
colId: c.key,
|
|
293
292
|
// Headers without explicit width constraints should fill available space.
|
|
294
|
-
flex: !
|
|
295
|
-
headerName:
|
|
296
|
-
maxWidth:
|
|
297
|
-
minWidth:
|
|
298
|
-
valueGetter: (D) => D.data?.[
|
|
299
|
-
width:
|
|
300
|
-
pinned: a.pinned,
|
|
301
|
-
cellRenderer: a.cellRenderer ?? T,
|
|
302
|
-
cellRendererParams: a.cellRendererParams,
|
|
303
|
-
valueFormatter: a.valueFormatter,
|
|
304
|
-
sortable: a.sortable ?? !1,
|
|
305
|
-
// Always show the sort icon on sortable columns.
|
|
306
|
-
unSortIcon: a.sortable ?? !1
|
|
293
|
+
flex: !c.width && !c.maxWidth ? 1 : void 0,
|
|
294
|
+
headerName: c.label,
|
|
295
|
+
maxWidth: c.maxWidth,
|
|
296
|
+
minWidth: c.minWidth,
|
|
297
|
+
valueGetter: (D) => D.data?.[c.key],
|
|
298
|
+
width: c.width
|
|
307
299
|
}))), f = k(() => [e.fetcher, e.pageSize, e.refreshKey]), {
|
|
308
300
|
data: u,
|
|
309
301
|
datasource: m,
|
|
@@ -313,62 +305,59 @@ const ve = {
|
|
|
313
305
|
fetcher: e.fetcher,
|
|
314
306
|
resetKey: f
|
|
315
307
|
}), {
|
|
316
|
-
fetchState:
|
|
308
|
+
fetchState: g,
|
|
317
309
|
hasData: d,
|
|
318
|
-
state:
|
|
319
|
-
} = ne(u, C, p),
|
|
310
|
+
state: y
|
|
311
|
+
} = ne(u, C, p), E = k(() => y.value === g.SUCCESS && !d.value);
|
|
320
312
|
se({
|
|
321
|
-
emitState: (
|
|
322
|
-
fetchLifecycleState:
|
|
313
|
+
emitState: (c) => a("state", c),
|
|
314
|
+
fetchLifecycleState: y,
|
|
323
315
|
hasData: d
|
|
324
316
|
});
|
|
325
|
-
const b = (
|
|
326
|
-
|
|
327
|
-
}, M = (a) => {
|
|
328
|
-
a.data && o("row:click", a.data);
|
|
317
|
+
const b = (c) => {
|
|
318
|
+
a("grid:ready", c.api);
|
|
329
319
|
};
|
|
330
|
-
return (
|
|
331
|
-
const D =
|
|
320
|
+
return (c, M) => {
|
|
321
|
+
const D = T("KEmptyState");
|
|
332
322
|
return w(), G("div", ve, [
|
|
333
323
|
e.error ? (w(), G("div", pe, [
|
|
334
|
-
|
|
335
|
-
|
|
324
|
+
x(c.$slots, "error-state", {}, () => [
|
|
325
|
+
I(D, {
|
|
336
326
|
"icon-variant": "error",
|
|
337
327
|
message: S(t)("errorState.message"),
|
|
338
328
|
title: S(t)("errorState.title")
|
|
339
329
|
}, null, 8, ["message", "title"])
|
|
340
330
|
], !0)
|
|
341
|
-
])) :
|
|
342
|
-
|
|
343
|
-
|
|
331
|
+
])) : E.value ? (w(), G("div", he, [
|
|
332
|
+
x(c.$slots, "empty-state", {}, () => [
|
|
333
|
+
I(D, {
|
|
344
334
|
message: S(t)("emptyState.message"),
|
|
345
335
|
title: S(t)("emptyState.title")
|
|
346
336
|
}, null, 8, ["message", "title"])
|
|
347
337
|
], !0)
|
|
348
|
-
])) : (w(),
|
|
338
|
+
])) : (w(), P(S(Q), {
|
|
349
339
|
key: 2,
|
|
350
340
|
"cache-block-size": e.pageSize,
|
|
351
341
|
class: "table-data-grid-grid",
|
|
352
342
|
"column-defs": h.value,
|
|
353
343
|
datasource: S(m),
|
|
354
|
-
"default-col-def":
|
|
344
|
+
"default-col-def": r,
|
|
355
345
|
"infinite-initial-row-count": 1,
|
|
356
346
|
loading: S(p),
|
|
357
347
|
"row-model-type": "infinite",
|
|
358
348
|
"suppress-cell-focus": !0,
|
|
359
|
-
theme: S(
|
|
360
|
-
onGridReady: b
|
|
361
|
-
onRowClicked: M
|
|
349
|
+
theme: S(Z),
|
|
350
|
+
onGridReady: b
|
|
362
351
|
}, null, 8, ["cache-block-size", "column-defs", "datasource", "loading", "theme"]))
|
|
363
352
|
]);
|
|
364
353
|
};
|
|
365
354
|
}
|
|
366
|
-
}),
|
|
367
|
-
const
|
|
368
|
-
for (const [t,
|
|
369
|
-
|
|
370
|
-
return
|
|
371
|
-
}, ke = /* @__PURE__ */ ge
|
|
355
|
+
}), ye = (e, i) => {
|
|
356
|
+
const a = e.__vccOpts || e;
|
|
357
|
+
for (const [t, r] of i)
|
|
358
|
+
a[t] = r;
|
|
359
|
+
return a;
|
|
360
|
+
}, ke = /* @__PURE__ */ ye(ge, [["__scopeId", "data-v-b8bd22c9"]]);
|
|
372
361
|
export {
|
|
373
362
|
ke as TableDataGrid
|
|
374
363
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("ag-grid-vue3"),require("ag-grid-community"),require("@kong-ui-public/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","ag-grid-vue3","ag-grid-community","@kong-ui-public/i18n"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y["kong-ui-public-table-data-grid"]={},y.Vue,y.AgGridVue,y.agGridCommunity,y["kong-ui-public-i18n"]))})(this,(function(y,e,
|
|
1
|
+
(function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("ag-grid-vue3"),require("ag-grid-community"),require("@kong-ui-public/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","ag-grid-vue3","ag-grid-community","@kong-ui-public/i18n"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y["kong-ui-public-table-data-grid"]={},y.Vue,y.AgGridVue,y.agGridCommunity,y["kong-ui-public-i18n"]))})(this,(function(y,e,G,R,N){"use strict";const M={class:"table-data-grid-cell-renderer"},O=e.defineComponent({name:"TableDataGridCellRenderer",__name:"TableDataGridCellRenderer",props:{params:{}},setup(t,{expose:c}){const o=e.shallowRef(t.params),a=e.ref(null),n=e.ref(!1),b=e.computed(()=>o.value.valueFormatted??String(o.value.value??""));let m,u,p=!1;const D=()=>{const f=a.value;n.value=!!f&&f.scrollWidth>f.clientWidth},g=()=>{p||(u!==void 0&&cancelAnimationFrame(u),u=requestAnimationFrame(()=>{u=void 0,D()}))},S=f=>{if(m?.disconnect(),f){m?.observe(f);const k=f.closest(".ag-cell");k&&m?.observe(k)}g()};return e.onMounted(()=>{m=new ResizeObserver(g),S(a.value)}),e.watch(a,S,{flush:"post"}),e.onUnmounted(()=>{p=!0,m?.disconnect(),u!==void 0&&cancelAnimationFrame(u)}),c({refresh(f){return o.value=f,e.nextTick(g),!0}}),(f,k)=>{const E=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock("span",M,[e.createVNode(E,{class:"table-data-grid-cell-tooltip",disabled:!n.value,"kpop-attributes":{popoverDelay:400},"max-width":"300",placement:"bottom-start",target:"body",text:b.value},{default:e.withCtx(()=>[e.createElementVNode("span",{ref_key:"contentElement",ref:a,class:"table-data-grid-cell-content"},e.toDisplayString(b.value),513)]),_:1},8,["disabled","text"])])}}});var w=(t=>(t.PENDING="PENDING",t.LOADING="LOADING",t.SUCCESS="SUCCESS",t.ERROR="ERROR",t))(w||{});const I=t=>!!t?.length;function T(t,c,o,a=I){const n=e.computed(()=>a(t.value)),b=e.computed(()=>{const u=t.value!==void 0,p=c.value!==void 0&&c.value!==null;return o.value?"LOADING":n.value?"SUCCESS":p?"ERROR":u?"SUCCESS":"PENDING"});return{fetchState:w,hasData:n,state:b}}const x=({emitState:t,fetchLifecycleState:c,hasData:o})=>{e.watch(()=>({hasData:o.value,state:c.value}),({hasData:a,state:n})=>{if(n!==w.PENDING){if(n===w.LOADING){t({hasData:a,state:"loading"});return}if(n===w.ERROR){t({hasData:a,state:"error"});return}t({hasData:a,state:"success"})}})},z=({startRow:t,endRow:c})=>{const o=c-t;return{blockIndex:o>0?Math.floor(t/o):0,pageSize:o}},A=({startRow:t,rowsLength:c,pageSize:o,total:a,hasMore:n})=>{if(typeof a=="number")return a;if(n!==!0&&(n===!1||c<o))return t+c},V=({fetcher:t,resetKey:c})=>{const o=new Map,a=new Map,n=e.ref(0),b=e.shallowRef(),m=e.shallowRef(),u=e.shallowRef(),p=e.ref(0),D=e.ref(!1),g=r=>r===n.value,S=()=>{D.value=p.value>0},f=()=>{u.value=void 0,p.value+=1,S()},k=()=>{p.value=Math.max(0,p.value-1),S()},E=r=>{const s=a.get(r);if(s)return s;let l;const h={promise:new Promise(i=>{l=i}),resolve:i=>l(i)};return a.set(r,h),h},v=(r,s)=>{s.resolve(!1),a.get(r)===s&&a.delete(r)},d=async({blockIndex:r,currentBlockCompletion:s,datasourceId:l})=>{if(r===0)return"ready";const h=a.get(r-1);if(!h)return v(r,s),"failed";const i=await h.promise;return g(l)?i?"ready":(v(r,s),"failed"):(v(r,s),"stale")},_=({blockIndex:r,currentBlockCompletion:s,getRowsParams:l,pageSize:h,result:i})=>{i.cursor!==void 0&&o.set(r,i.cursor),l.successCallback(i.data,A({startRow:l.startRow,rowsLength:i.data.length,pageSize:h,total:i.total,hasMore:i.hasMore})),l.startRow===0&&(m.value=i.data),s.resolve(!0)},C=({blockIndex:r,currentBlockCompletion:s,fetchError:l,getRowsParams:h})=>{u.value=l,h.failCallback(),v(r,s)},j=()=>{const r=n.value+1;return n.value=r,o.clear(),a.clear(),m.value=void 0,u.value=void 0,p.value=0,S(),{async getRows(s){const{blockIndex:l,pageSize:h}=z({startRow:s.startRow,endRow:s.endRow}),i=E(l),F=await d({blockIndex:l,currentBlockCompletion:i,datasourceId:r});if(F!=="ready"){F==="failed"&&s.failCallback();return}f();try{const B=l>0?o.get(l-1):void 0,H=await t({mode:"infinite",pageSize:h,cursor:B});if(!g(r)){v(l,i);return}_({blockIndex:l,currentBlockCompletion:i,getRowsParams:s,pageSize:h,result:H})}catch(B){if(!g(r)){v(l,i);return}C({blockIndex:l,currentBlockCompletion:i,fetchError:B,getRowsParams:s})}finally{g(r)&&k()}}}},P=()=>{b.value=j()};return e.watch(()=>c?.value,()=>{P()},{immediate:!0}),{datasource:e.readonly(b),data:e.readonly(m),error:e.readonly(u),isFetching:e.readonly(D)}},K={emptyState:{title:"No Data",message:"There is no data to display."},errorState:{title:"An error occurred",message:"Data cannot be displayed due to an error."}};function L(){const t=N.createI18n("en-us",K);return{i18n:t,i18nT:N.i18nTComponent(t)}}const U={class:"kong-ui-public-table-data-grid","data-testid":"table-data-grid"},W={key:0,class:"table-error-state","data-testid":"table-error-state"},q={key:1,class:"table-empty-state","data-testid":"table-empty-state"},$=((t,c)=>{const o=t.__vccOpts||t;for(const[a,n]of c)o[a]=n;return o})(e.defineComponent({__name:"TableDataGrid",props:{headers:{},fetcher:{type:Function},error:{type:Boolean,default:!1},pageSize:{default:25},refreshKey:{type:[String,Number,Boolean]}},emits:["grid:ready","state"],setup(t,{emit:c}){R.ModuleRegistry.registerModules([R.AllCommunityModule,R.InfiniteRowModelModule]);const o=c,{i18n:{t:a}}=L(),n={cellRenderer:O,resizable:!1,sortable:!1,suppressMovable:!0},b=e.computed(()=>t.headers.map(d=>({colId:d.key,flex:!d.width&&!d.maxWidth?1:void 0,headerName:d.label,maxWidth:d.maxWidth,minWidth:d.minWidth,valueGetter:C=>C.data?.[d.key],width:d.width}))),m=e.computed(()=>[t.fetcher,t.pageSize,t.refreshKey]),{data:u,datasource:p,error:D,isFetching:g}=V({fetcher:t.fetcher,resetKey:m}),{fetchState:S,hasData:f,state:k}=T(u,D,g),E=e.computed(()=>k.value===S.SUCCESS&&!f.value);x({emitState:d=>o("state",d),fetchLifecycleState:k,hasData:f});const v=d=>{o("grid:ready",d.api)};return(d,_)=>{const C=e.resolveComponent("KEmptyState");return e.openBlock(),e.createElementBlock("div",U,[t.error?(e.openBlock(),e.createElementBlock("div",W,[e.renderSlot(d.$slots,"error-state",{},()=>[e.createVNode(C,{"icon-variant":"error",message:e.unref(a)("errorState.message"),title:e.unref(a)("errorState.title")},null,8,["message","title"])],!0)])):E.value?(e.openBlock(),e.createElementBlock("div",q,[e.renderSlot(d.$slots,"empty-state",{},()=>[e.createVNode(C,{message:e.unref(a)("emptyState.message"),title:e.unref(a)("emptyState.title")},null,8,["message","title"])],!0)])):(e.openBlock(),e.createBlock(e.unref(G.AgGridVue),{key:2,"cache-block-size":t.pageSize,class:"table-data-grid-grid","column-defs":b.value,datasource:e.unref(p),"default-col-def":n,"infinite-initial-row-count":1,loading:e.unref(g),"row-model-type":"infinite","suppress-cell-focus":!0,theme:e.unref(R.themeQuartz),onGridReady:v},null,8,["cache-block-size","column-defs","datasource","loading","theme"]))])}}}),[["__scopeId","data-v-b8bd22c9"]]);y.TableDataGrid=$,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TableDataGridFetcher, TableDataGridHeader,
|
|
1
|
+
import type { TableDataGridFetcher, TableDataGridHeader, TableDataGridStatePayload } from '../types';
|
|
2
2
|
import type { GridReadyEvent } from 'ag-grid-community';
|
|
3
3
|
declare const __VLS_export: <Row extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
@@ -10,7 +10,6 @@ declare const __VLS_export: <Row extends object>(__VLS_props: NonNullable<Awaite
|
|
|
10
10
|
} & {
|
|
11
11
|
onState?: ((payload: TableDataGridStatePayload) => any) | undefined;
|
|
12
12
|
"onGrid:ready"?: ((api: import("ag-grid-community").GridApi<Row>) => any) | undefined;
|
|
13
|
-
"onRow:click"?: ((payload: Row) => any) | undefined;
|
|
14
13
|
}> & (typeof globalThis extends {
|
|
15
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
16
15
|
} ? P : {});
|
|
@@ -23,7 +22,6 @@ declare const __VLS_export: <Row extends object>(__VLS_props: NonNullable<Awaite
|
|
|
23
22
|
emit: {
|
|
24
23
|
(e: "grid:ready", api: GridReadyEvent<Row>["api"]): void;
|
|
25
24
|
(e: "state", payload: TableDataGridStatePayload): void;
|
|
26
|
-
(e: "row:click", payload: TableDataGridRowClickPayload<Row>): void;
|
|
27
25
|
};
|
|
28
26
|
}>) => import("vue").VNode & {
|
|
29
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableDataGrid.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TableDataGrid.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableDataGrid.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TableDataGrid.vue"],"names":[],"mappings":"AAyMA,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAU,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAe/D,QAAA,MAAM,YAAY,GAAK,GAAG,SAAS,MAAM,EACxC,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAA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import type { GridApi
|
|
2
|
-
import type { Component } from 'vue';
|
|
1
|
+
import type { GridApi } from 'ag-grid-community';
|
|
3
2
|
export type TableDataGridMode = 'infinite';
|
|
4
3
|
export type TableDataGridRow = Record<string, unknown>;
|
|
5
4
|
export type TableDataGridState = 'loading' | 'success' | 'error';
|
|
@@ -7,29 +6,17 @@ export type TableDataGridStatePayload = {
|
|
|
7
6
|
state: TableDataGridState;
|
|
8
7
|
hasData: boolean;
|
|
9
8
|
};
|
|
10
|
-
export type TableDataGridRowClickPayload<Row extends object = TableDataGridRow> = Row;
|
|
11
9
|
export type TableDataGridHeader<Row extends object = TableDataGridRow> = {
|
|
12
10
|
key: Extract<keyof Row, string>;
|
|
13
11
|
label: string;
|
|
14
12
|
width?: number;
|
|
15
13
|
minWidth?: number;
|
|
16
14
|
maxWidth?: number;
|
|
17
|
-
/** Pins the column to the left or right edge of the grid. */
|
|
18
|
-
pinned?: 'left' | 'right';
|
|
19
|
-
/** Vue component used to render this column's cells. */
|
|
20
|
-
cellRenderer?: Component;
|
|
21
|
-
/** Extra props passed to `cellRenderer`. */
|
|
22
|
-
cellRendererParams?: Record<string, unknown>;
|
|
23
|
-
/** Formats the raw cell value for display. */
|
|
24
|
-
valueFormatter?: ValueFormatterFunc<Row>;
|
|
25
|
-
/** Enables sorting UI for this column. The `fetcher` must apply `params.sort` server-side. */
|
|
26
|
-
sortable?: boolean;
|
|
27
15
|
};
|
|
28
16
|
export interface TableDataGridInfiniteFetcherParams {
|
|
29
17
|
mode: 'infinite';
|
|
30
18
|
pageSize: number;
|
|
31
19
|
cursor?: unknown;
|
|
32
|
-
sort?: SortModelItem[];
|
|
33
20
|
}
|
|
34
21
|
export type TableDataGridFetcherResult<Row extends object = TableDataGridRow> = {
|
|
35
22
|
data: Row[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,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;AAE7C,MAAM,MAAM,yBAAyB,CAAC,GAAG,SAAS,MAAM,GAAG,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/table-data-grid",
|
|
3
|
-
"version": "0.3.12
|
|
3
|
+
"version": "0.3.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/table-data-grid.umd.js",
|
|
6
6
|
"module": "./dist/table-data-grid.es.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@kong/kongponents": "9.64.
|
|
24
|
+
"@kong/kongponents": "9.64.10",
|
|
25
25
|
"vue": "^3.5.35",
|
|
26
26
|
"@kong-ui-public/i18n": "^2.5.1"
|
|
27
27
|
},
|