@shifl-inc/ui 0.8.0 → 0.9.0

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/shifl-ui.js CHANGED
@@ -1,10 +1,10 @@
1
- import { ref as _, computed as k, onMounted as ye, onUnmounted as be, watch as F, nextTick as Ie, defineComponent as Ze, createElementBlock as l, openBlock as a, withModifiers as K, createElementVNode as d, createCommentVNode as R, createTextVNode as ie, toDisplayString as L, Fragment as H, renderList as B, normalizeClass as Z, createBlock as I, Teleport as _e, normalizeStyle as j, createVNode as me, unref as V, resolveDynamicComponent as ve, createStaticVNode as en, provide as tn, inject as nn } from "vue";
2
- function rn(o) {
3
- const s = (o.columns || []).map((b) => ({
4
- ...b,
5
- freeze: b.freeze ?? !1,
6
- visible: b.visible ?? !0,
7
- protected: b.protected ?? !1
1
+ import { ref as _, computed as k, onMounted as ye, onUnmounted as be, watch as F, nextTick as Ie, defineComponent as Ze, createElementBlock as l, openBlock as a, withModifiers as K, createElementVNode as d, createCommentVNode as R, createTextVNode as ie, toDisplayString as L, Fragment as H, renderList as B, normalizeClass as Z, createBlock as I, Teleport as _e, normalizeStyle as j, createVNode as me, unref as V, resolveDynamicComponent as ve, createStaticVNode as tn, provide as nn, inject as rn } from "vue";
2
+ function sn(o) {
3
+ const s = (o.columns || []).map((y) => ({
4
+ ...y,
5
+ freeze: y.freeze ?? !1,
6
+ visible: y.visible ?? !0,
7
+ protected: y.protected ?? !1
8
8
  })), g = o.apiConfig ? "server" : o.searchMode || "client";
9
9
  return {
10
10
  ...o,
@@ -24,28 +24,28 @@ function rn(o) {
24
24
  } : void 0
25
25
  };
26
26
  }
27
- function sn(o) {
27
+ function on(o) {
28
28
  const s = [...o], g = _([...o]);
29
- function b(p) {
29
+ function y(p) {
30
30
  g.value = g.value.map(
31
- (c) => c.key === p ? { ...c, visible: !c.visible } : c
31
+ (f) => f.key === p ? { ...f, visible: !f.visible } : f
32
32
  );
33
33
  }
34
- function f(p) {
35
- g.value = g.value.map((c) => ({ ...c, visible: p }));
34
+ function c(p) {
35
+ g.value = g.value.map((f) => ({ ...f, visible: p }));
36
36
  }
37
- function y(p) {
38
- const c = g.value.map(
37
+ function b(p) {
38
+ const f = g.value.map(
39
39
  (M) => M.key === p ? { ...M, freeze: !M.freeze } : M
40
- ), m = c.filter((M) => M.freeze), T = c.filter((M) => !M.freeze);
40
+ ), m = f.filter((M) => M.freeze), T = f.filter((M) => !M.freeze);
41
41
  g.value = [...m, ...T];
42
42
  }
43
- function P(p, c) {
44
- if (p === c || c < 0 || c >= g.value.length) return;
43
+ function P(p, f) {
44
+ if (p === f || f < 0 || f >= g.value.length) return;
45
45
  const m = g.value.findIndex((h) => !h.freeze), T = m === -1 ? g.value.length : m;
46
- if (p < T || c < T) return;
46
+ if (p < T || f < T) return;
47
47
  const M = [...g.value], [u] = M.splice(p, 1);
48
- M.splice(c, 0, u), g.value = M;
48
+ M.splice(f, 0, u), g.value = M;
49
49
  }
50
50
  function S() {
51
51
  g.value = [...s];
@@ -54,28 +54,28 @@ function sn(o) {
54
54
  return {
55
55
  columns: g,
56
56
  visibleColumns: w,
57
- toggleColumnVisibility: b,
58
- setAllVisible: f,
59
- toggleFreeze: y,
57
+ toggleColumnVisibility: y,
58
+ setAllVisible: c,
59
+ toggleFreeze: b,
60
60
  moveColumn: P,
61
61
  resetColumns: S
62
62
  };
63
63
  }
64
- function on(o) {
64
+ function an(o) {
65
65
  const s = _(o);
66
- function g(f) {
67
- var y;
68
- s.value = ((y = s.value) == null ? void 0 : y.key) === f && s.value.order === "asc" ? { key: f, order: "desc" } : { key: f, order: "asc" };
66
+ function g(c) {
67
+ var b;
68
+ s.value = ((b = s.value) == null ? void 0 : b.key) === c && s.value.order === "asc" ? { key: c, order: "desc" } : { key: c, order: "asc" };
69
69
  }
70
- function b(f) {
71
- if (!s.value) return f;
72
- const { key: y, order: P } = s.value;
73
- return [...f].sort((S, w) => {
74
- const p = S[y], c = w[y];
75
- if (p === c) return 0;
70
+ function y(c) {
71
+ if (!s.value) return c;
72
+ const { key: b, order: P } = s.value;
73
+ return [...c].sort((S, w) => {
74
+ const p = S[b], f = w[b];
75
+ if (p === f) return 0;
76
76
  if (p == null) return 1;
77
- if (c == null) return -1;
78
- const m = String(p).localeCompare(String(c), void 0, {
77
+ if (f == null) return -1;
78
+ const m = String(p).localeCompare(String(f), void 0, {
79
79
  numeric: !0
80
80
  });
81
81
  return P === "asc" ? m : -m;
@@ -84,30 +84,30 @@ function on(o) {
84
84
  return {
85
85
  sort: s,
86
86
  setSort: g,
87
- applySort: b
87
+ applySort: y
88
88
  };
89
89
  }
90
- function an() {
91
- function o(s, g, b) {
92
- const f = (b || "").trim().toLowerCase();
93
- return f ? s.filter((y) => (g && g.length ? g.map((S) => y[S]) : Object.values(y)).some(
94
- (S) => String(S ?? "").toLowerCase().includes(f)
90
+ function ln() {
91
+ function o(s, g, y) {
92
+ const c = (y || "").trim().toLowerCase();
93
+ return c ? s.filter((b) => (g && g.length ? g.map((S) => b[S]) : Object.values(b)).some(
94
+ (S) => String(S ?? "").toLowerCase().includes(c)
95
95
  )) : s;
96
96
  }
97
97
  return {
98
98
  applyGlobalFilter: o
99
99
  };
100
100
  }
101
- function ln() {
101
+ function un() {
102
102
  const o = _({
103
103
  rowIndex: null,
104
104
  position: null
105
105
  });
106
- function s(y, P, S = 200) {
106
+ function s(b, P, S = 200) {
107
107
  const w = P.getBoundingClientRect();
108
108
  let p = w.left;
109
109
  p + S > window.innerWidth - 8 && (p = window.innerWidth - S + 8), o.value = {
110
- rowIndex: y,
110
+ rowIndex: b,
111
111
  position: {
112
112
  top: w.bottom,
113
113
  // 4px below trigger
@@ -121,25 +121,25 @@ function ln() {
121
121
  position: null
122
122
  };
123
123
  }
124
- function b(y) {
125
- return o.value.rowIndex === y;
124
+ function y(b) {
125
+ return o.value.rowIndex === b;
126
126
  }
127
- function f(y) {
128
- y.key === "Escape" && o.value.rowIndex !== null && g();
127
+ function c(b) {
128
+ b.key === "Escape" && o.value.rowIndex !== null && g();
129
129
  }
130
130
  return ye(() => {
131
- document.addEventListener("keydown", f);
131
+ document.addEventListener("keydown", c);
132
132
  }), be(() => {
133
- document.removeEventListener("keydown", f);
133
+ document.removeEventListener("keydown", c);
134
134
  }), {
135
135
  menuState: o,
136
136
  openMenu: s,
137
137
  closeMenu: g,
138
- isMenuOpen: b
138
+ isMenuOpen: y
139
139
  };
140
140
  }
141
- function un(o, s) {
142
- const g = _(!1), b = _(null), f = _([]), y = _(void 0);
141
+ function cn(o, s) {
142
+ const g = _(!1), y = _(null), c = _([]), b = _(void 0);
143
143
  let P = null;
144
144
  function S(u) {
145
145
  const h = new URLSearchParams();
@@ -189,7 +189,7 @@ function un(o, s) {
189
189
  }
190
190
  return u;
191
191
  }
192
- function c(u) {
192
+ function f(u) {
193
193
  if (s != null && s.responseTransformer)
194
194
  return s.responseTransformer(u);
195
195
  const h = u;
@@ -200,10 +200,10 @@ function un(o, s) {
200
200
  }
201
201
  async function m(u) {
202
202
  if (!o) {
203
- b.value = new Error("API URL is required");
203
+ y.value = new Error("API URL is required");
204
204
  return;
205
205
  }
206
- g.value = !0, b.value = null;
206
+ g.value = !0, y.value = null;
207
207
  try {
208
208
  const h = (s == null ? void 0 : s.method) || "GET", C = p();
209
209
  let A = o, N;
@@ -214,8 +214,8 @@ function un(o, s) {
214
214
  A = z ? `${o}?${z}` : o;
215
215
  } else {
216
216
  const z = new URLSearchParams();
217
- Object.entries(te).forEach(([Q, O]) => {
218
- O != null && O !== "" && (Array.isArray(O) ? O.forEach((le) => z.append(`${Q}[]`, String(le))) : z.append(Q, String(O)));
217
+ Object.entries(te).forEach(([Q, G]) => {
218
+ G != null && G !== "" && (Array.isArray(G) ? G.forEach((le) => z.append(`${Q}[]`, String(le))) : z.append(Q, String(G)));
219
219
  });
220
220
  const ae = z.toString();
221
221
  A = ae ? `${o}?${ae}` : o;
@@ -229,10 +229,10 @@ function un(o, s) {
229
229
  });
230
230
  if (!x.ok)
231
231
  throw new Error(`API request failed: ${x.status} ${x.statusText}`);
232
- const ke = await x.json(), oe = c(ke);
233
- f.value = oe.data, y.value = oe.meta;
232
+ const ke = await x.json(), oe = f(ke);
233
+ c.value = oe.data, b.value = oe.meta;
234
234
  } catch (h) {
235
- b.value = h instanceof Error ? h : new Error("Unknown error occurred"), f.value = [], y.value = void 0;
235
+ y.value = h instanceof Error ? h : new Error("Unknown error occurred"), c.value = [], b.value = void 0;
236
236
  } finally {
237
237
  g.value = !1;
238
238
  }
@@ -249,29 +249,29 @@ function un(o, s) {
249
249
  }
250
250
  return {
251
251
  loading: k(() => g.value),
252
- error: k(() => b.value),
253
- data: k(() => f.value),
254
- paginationMeta: k(() => y.value),
252
+ error: k(() => y.value),
253
+ data: k(() => c.value),
254
+ paginationMeta: k(() => b.value),
255
255
  fetchData: m,
256
256
  fetchDataDebounced: T,
257
257
  refresh: M
258
258
  };
259
259
  }
260
- function cn(o, s) {
260
+ function fn(o, s) {
261
261
  var w, p;
262
- const g = (s == null ? void 0 : s.search) || _(void 0), b = (s == null ? void 0 : s.filters) || _(o.filters), f = (s == null ? void 0 : s.sort) || _(o.sort), y = (s == null ? void 0 : s.pagination) || _({
262
+ const g = (s == null ? void 0 : s.search) || _(void 0), y = (s == null ? void 0 : s.filters) || _(o.filters), c = (s == null ? void 0 : s.sort) || _(o.sort), b = (s == null ? void 0 : s.pagination) || _({
263
263
  page: ((w = o.paginationMeta) == null ? void 0 : w.currentPage) || 1,
264
264
  perPage: ((p = o.paginationMeta) == null ? void 0 : p.perPage) || 20
265
265
  }), P = (s == null ? void 0 : s.extraState) || _(void 0), S = (s == null ? void 0 : s.tabName) || _(void 0);
266
266
  if (o.apiConfig && o.searchMode === "server") {
267
- let c = function() {
267
+ let f = function() {
268
268
  var h, C;
269
269
  return {
270
270
  search: g.value,
271
- filters: b.value,
272
- sort: f.value,
273
- page: (h = y.value) == null ? void 0 : h.page,
274
- perPage: (C = y.value) == null ? void 0 : C.perPage,
271
+ filters: y.value,
272
+ sort: c.value,
273
+ page: (h = b.value) == null ? void 0 : h.page,
274
+ perPage: (C = b.value) == null ? void 0 : C.perPage,
275
275
  extraState: P.value,
276
276
  tabName: S.value
277
277
  };
@@ -279,14 +279,14 @@ function cn(o, s) {
279
279
  var C, A, N, x;
280
280
  return u ? h.search !== u.search || h.page !== u.page || h.perPage !== u.perPage || h.tabName !== u.tabName || ((C = h.sort) == null ? void 0 : C.key) !== ((A = u.sort) == null ? void 0 : A.key) || ((N = h.sort) == null ? void 0 : N.order) !== ((x = u.sort) == null ? void 0 : x.order) || JSON.stringify(h.filters) !== JSON.stringify(u.filters) || JSON.stringify(h.extraState) !== JSON.stringify(u.extraState) : !0;
281
281
  };
282
- const T = un(o.apiConfig.apiUrl, o.apiConfig);
282
+ const T = cn(o.apiConfig.apiUrl, o.apiConfig);
283
283
  let M = !1, u = null;
284
284
  return F(
285
- [g, b, f, y, P, S],
285
+ [g, y, c, b, P, S],
286
286
  () => {
287
287
  if (M)
288
288
  return;
289
- const h = c();
289
+ const h = f();
290
290
  if (!m(h))
291
291
  return;
292
292
  u = h;
@@ -295,9 +295,9 @@ function cn(o, s) {
295
295
  },
296
296
  { immediate: !0, deep: !0 }
297
297
  ), F(T.paginationMeta, (h) => {
298
- if (h && y.value) {
299
- const C = h.perPage || y.value.perPage;
300
- C !== y.value.perPage && (M = !0, y.value.perPage = C, Ie(() => {
298
+ if (h && b.value) {
299
+ const C = h.perPage || b.value.perPage;
300
+ C !== b.value.perPage && (M = !0, b.value.perPage = C, Ie(() => {
301
301
  M = !1;
302
302
  }));
303
303
  }
@@ -310,10 +310,10 @@ function cn(o, s) {
310
310
  var C, A;
311
311
  const h = {
312
312
  search: g.value,
313
- filters: b.value,
314
- sort: f.value,
315
- page: (C = y.value) == null ? void 0 : C.page,
316
- perPage: (A = y.value) == null ? void 0 : A.perPage,
313
+ filters: y.value,
314
+ sort: c.value,
315
+ page: (C = b.value) == null ? void 0 : C.page,
316
+ perPage: (A = b.value) == null ? void 0 : A.perPage,
317
317
  extraState: P.value,
318
318
  tabName: S.value
319
319
  };
@@ -330,7 +330,7 @@ function cn(o, s) {
330
330
  }
331
331
  };
332
332
  }
333
- const fn = { class: "shifl-column-manager__header" }, dn = { class: "shifl-column-manager__title-wrapper" }, gn = { class: "shifl-column-manager__title" }, hn = { key: 0 }, pn = { key: 1 }, mn = { class: "shifl-column-manager__controls" }, vn = { class: "shifl-column-manager__controls-left" }, _n = { class: "shifl-column-manager__content" }, yn = { class: "shifl-column-manager__list" }, bn = ["draggable", "onDragstart", "onDragover", "onDrop"], kn = ["aria-label", "disabled"], Cn = ["checked", "disabled", "onChange"], wn = { class: "shifl-column-manager__label-text" }, Mn = { class: "shifl-column-manager__footer" }, Tn = /* @__PURE__ */ Ze({
333
+ const dn = { class: "shifl-column-manager__header" }, gn = { class: "shifl-column-manager__title-wrapper" }, hn = { class: "shifl-column-manager__title" }, pn = { key: 0 }, mn = { key: 1 }, vn = { class: "shifl-column-manager__controls" }, _n = { class: "shifl-column-manager__controls-left" }, yn = { class: "shifl-column-manager__content" }, bn = { class: "shifl-column-manager__list" }, kn = ["draggable", "onDragstart", "onDragover", "onDrop"], Cn = ["aria-label", "disabled"], wn = ["checked", "disabled", "onChange"], Mn = { class: "shifl-column-manager__label-text" }, Tn = { class: "shifl-column-manager__footer" }, Sn = /* @__PURE__ */ Ze({
334
334
  __name: "GridColumnManager",
335
335
  props: {
336
336
  titlePrefix: {},
@@ -338,65 +338,65 @@ const fn = { class: "shifl-column-manager__header" }, dn = { class: "shifl-colum
338
338
  },
339
339
  emits: ["close", "toggle", "move", "toggleFreeze", "selectAll", "deselectAll", "restoreDefault"],
340
340
  setup(o, { emit: s }) {
341
- const g = o, b = k(() => g.columns), f = s, y = _(null);
341
+ const g = o, y = k(() => g.columns), c = s, b = _(null);
342
342
  function P(p) {
343
- var c, m;
344
- (c = g.columns[p]) != null && c.freeze || (m = g.columns[p]) != null && m.protected || (y.value = p);
343
+ var f, m;
344
+ (f = g.columns[p]) != null && f.freeze || (m = g.columns[p]) != null && m.protected || (b.value = p);
345
345
  }
346
346
  function S(p) {
347
347
  }
348
348
  function w(p) {
349
- y.value === null || y.value === p || (f("move", y.value, p), y.value = null);
349
+ b.value === null || b.value === p || (c("move", b.value, p), b.value = null);
350
350
  }
351
- return (p, c) => (a(), l("div", {
351
+ return (p, f) => (a(), l("div", {
352
352
  class: "shifl-column-manager__backdrop",
353
- onClick: c[7] || (c[7] = K((m) => p.$emit("close"), ["self"]))
353
+ onClick: f[7] || (f[7] = K((m) => p.$emit("close"), ["self"]))
354
354
  }, [
355
355
  d("div", {
356
356
  class: "shifl-column-manager__dialog",
357
357
  role: "dialog",
358
358
  "aria-modal": "true",
359
- onClick: c[6] || (c[6] = K(() => {
359
+ onClick: f[6] || (f[6] = K(() => {
360
360
  }, ["stop"]))
361
361
  }, [
362
- d("header", fn, [
363
- d("div", dn, [
364
- d("h2", gn, [
365
- o.titlePrefix ? (a(), l("span", hn, L(o.titlePrefix), 1)) : R("", !0),
366
- o.titlePrefix ? (a(), l("span", pn, ">")) : R("", !0),
367
- c[8] || (c[8] = ie("Edit Columns ", -1))
362
+ d("header", dn, [
363
+ d("div", gn, [
364
+ d("h2", hn, [
365
+ o.titlePrefix ? (a(), l("span", pn, L(o.titlePrefix), 1)) : R("", !0),
366
+ o.titlePrefix ? (a(), l("span", mn, ">")) : R("", !0),
367
+ f[8] || (f[8] = ie("Edit Columns ", -1))
368
368
  ])
369
369
  ]),
370
370
  d("button", {
371
371
  type: "button",
372
372
  class: "shifl-column-manager__close",
373
- onClick: c[0] || (c[0] = (m) => p.$emit("close"))
374
- }, [...c[9] || (c[9] = [
373
+ onClick: f[0] || (f[0] = (m) => p.$emit("close"))
374
+ }, [...f[9] || (f[9] = [
375
375
  d("span", null, "✕", -1)
376
376
  ])])
377
377
  ]),
378
- d("div", mn, [
379
- d("div", vn, [
378
+ d("div", vn, [
379
+ d("div", _n, [
380
380
  d("button", {
381
381
  type: "button",
382
382
  class: "shifl-column-manager__link-button",
383
- onClick: c[1] || (c[1] = (m) => p.$emit("selectAll"))
383
+ onClick: f[1] || (f[1] = (m) => p.$emit("selectAll"))
384
384
  }, " Select All "),
385
385
  d("button", {
386
386
  type: "button",
387
387
  class: "shifl-column-manager__link-button",
388
- onClick: c[2] || (c[2] = (m) => p.$emit("deselectAll"))
388
+ onClick: f[2] || (f[2] = (m) => p.$emit("deselectAll"))
389
389
  }, " Deselect All ")
390
390
  ]),
391
391
  d("button", {
392
392
  type: "button",
393
393
  class: "shifl-column-manager__link-button shifl-column-manager__link-button--primary",
394
- onClick: c[3] || (c[3] = (m) => p.$emit("restoreDefault"))
394
+ onClick: f[3] || (f[3] = (m) => p.$emit("restoreDefault"))
395
395
  }, " Restore Default ")
396
396
  ]),
397
- d("div", _n, [
398
- d("ul", yn, [
399
- (a(!0), l(H, null, B(b.value, (m, T) => (a(), l("li", {
397
+ d("div", yn, [
398
+ d("ul", bn, [
399
+ (a(!0), l(H, null, B(y.value, (m, T) => (a(), l("li", {
400
400
  key: m.key,
401
401
  class: Z(["shifl-column-manager__item", {
402
402
  "shifl-column-manager__item--disabled": m.freeze || m.protected
@@ -413,9 +413,9 @@ const fn = { class: "shifl-column-manager__header" }, dn = { class: "shifl-colum
413
413
  }]),
414
414
  "aria-label": `Move ${m.label}`,
415
415
  disabled: m.freeze || m.protected
416
- }, [...c[10] || (c[10] = [
416
+ }, [...f[10] || (f[10] = [
417
417
  d("span", null, "⋮⋮", -1)
418
- ])], 10, kn),
418
+ ])], 10, Cn),
419
419
  d("label", {
420
420
  class: Z(["shifl-column-manager__checkbox-label", {
421
421
  "shifl-column-manager__checkbox-label--disabled": m.freeze || m.protected
@@ -427,23 +427,23 @@ const fn = { class: "shifl-column-manager__header" }, dn = { class: "shifl-colum
427
427
  checked: m.visible,
428
428
  disabled: m.freeze || m.protected,
429
429
  onChange: (M) => p.$emit("toggle", m.key)
430
- }, null, 40, Cn),
431
- c[11] || (c[11] = d("span", { class: "shifl-column-manager__checkbox-custom" }, null, -1)),
432
- d("span", wn, L(m.label), 1)
430
+ }, null, 40, wn),
431
+ f[11] || (f[11] = d("span", { class: "shifl-column-manager__checkbox-custom" }, null, -1)),
432
+ d("span", Mn, L(m.label), 1)
433
433
  ], 2)
434
- ], 42, bn))), 128))
434
+ ], 42, kn))), 128))
435
435
  ])
436
436
  ]),
437
- d("footer", Mn, [
437
+ d("footer", Tn, [
438
438
  d("button", {
439
439
  type: "button",
440
440
  class: "shifl-column-manager__button shifl-column-manager__button--primary",
441
- onClick: c[4] || (c[4] = (m) => p.$emit("close"))
441
+ onClick: f[4] || (f[4] = (m) => p.$emit("close"))
442
442
  }, " Update "),
443
443
  d("button", {
444
444
  type: "button",
445
445
  class: "shifl-column-manager__button shifl-column-manager__button--secondary",
446
- onClick: c[5] || (c[5] = (m) => p.$emit("close"))
446
+ onClick: f[5] || (f[5] = (m) => p.$emit("close"))
447
447
  }, " Cancel ")
448
448
  ])
449
449
  ])
@@ -451,10 +451,10 @@ const fn = { class: "shifl-column-manager__header" }, dn = { class: "shifl-colum
451
451
  }
452
452
  }), J = (o, s) => {
453
453
  const g = o.__vccOpts || o;
454
- for (const [b, f] of s)
455
- g[b] = f;
454
+ for (const [y, c] of s)
455
+ g[y] = c;
456
456
  return g;
457
- }, Sn = /* @__PURE__ */ J(Tn, [["__scopeId", "data-v-40ca0ed0"]]), Pn = { class: "shifl-grid__tooltip-content" }, $n = ["innerHTML"], Ln = /* @__PURE__ */ Ze({
457
+ }, Pn = /* @__PURE__ */ J(Sn, [["__scopeId", "data-v-40ca0ed0"]]), $n = { class: "shifl-grid__tooltip-content" }, Ln = ["innerHTML"], Nn = /* @__PURE__ */ Ze({
458
458
  __name: "GridTooltip",
459
459
  props: {
460
460
  content: {},
@@ -463,14 +463,14 @@ const fn = { class: "shifl-column-manager__header" }, dn = { class: "shifl-colum
463
463
  isHtml: { type: Boolean }
464
464
  },
465
465
  setup(o) {
466
- const s = o, g = _(null), b = _({}), f = k(() => s.content.includes(`
467
- `)), y = k(() => f.value ? s.content.split(`
466
+ const s = o, g = _(null), y = _({}), c = k(() => s.content.includes(`
467
+ `)), b = k(() => c.value ? s.content.split(`
468
468
  `).filter((p) => p.trim().length > 0) : []), P = _("top"), S = _({});
469
469
  function w() {
470
470
  if (!s.triggerElement || !g.value) return;
471
- const p = s.triggerElement.getBoundingClientRect(), c = g.value.getBoundingClientRect(), m = window.innerWidth, T = window.innerHeight;
471
+ const p = s.triggerElement.getBoundingClientRect(), f = g.value.getBoundingClientRect(), m = window.innerWidth, T = window.innerHeight;
472
472
  let M = p.bottom + 8, u = p.left + window.scrollX;
473
- u + c.width > m - 16 && (u = m - c.width - 16), u < 16 && (u = 16), M + c.height > T - 16 ? (M = p.top - c.height - 8, P.value = "bottom") : P.value = "top", b.value = {
473
+ u + f.width > m - 16 && (u = m - f.width - 16), u < 16 && (u = 16), M + f.height > T - 16 ? (M = p.top - f.height - 8, P.value = "bottom") : P.value = "top", y.value = {
474
474
  position: "fixed",
475
475
  top: `${M}px`,
476
476
  left: `${u}px`,
@@ -489,23 +489,23 @@ const fn = { class: "shifl-column-manager__header" }, dn = { class: "shifl-colum
489
489
  ), ye(() => {
490
490
  s.visible && Ie(() => w());
491
491
  }), be(() => {
492
- }), (p, c) => (a(), I(_e, { to: "body" }, [
492
+ }), (p, f) => (a(), I(_e, { to: "body" }, [
493
493
  o.visible ? (a(), l("div", {
494
494
  key: 0,
495
495
  ref_key: "tooltipRef",
496
496
  ref: g,
497
497
  class: "shifl-grid__tooltip",
498
- style: j(b.value)
498
+ style: j(y.value)
499
499
  }, [
500
500
  d("div", {
501
501
  class: Z(["shifl-grid__tooltip-arrow", P.value]),
502
502
  style: j(S.value)
503
503
  }, null, 6),
504
- d("div", Pn, [
504
+ d("div", $n, [
505
505
  o.isHtml ? (a(), l("div", {
506
506
  key: 0,
507
507
  innerHTML: o.content
508
- }, null, 8, $n)) : f.value ? (a(!0), l(H, { key: 1 }, B(y.value, (m, T) => (a(), l("div", {
508
+ }, null, 8, Ln)) : c.value ? (a(!0), l(H, { key: 1 }, B(b.value, (m, T) => (a(), l("div", {
509
509
  key: T,
510
510
  class: "shifl-grid__tooltip-line"
511
511
  }, L(m), 1))), 128)) : (a(), l(H, { key: 2 }, [
@@ -515,7 +515,7 @@ const fn = { class: "shifl-column-manager__header" }, dn = { class: "shifl-colum
515
515
  ], 4)) : R("", !0)
516
516
  ]));
517
517
  }
518
- }), Nn = /* @__PURE__ */ J(Ln, [["__scopeId", "data-v-239005f1"]]), An = {}, xn = {
518
+ }), An = /* @__PURE__ */ J(Nn, [["__scopeId", "data-v-239005f1"]]), xn = {}, Hn = {
519
519
  width: "14",
520
520
  height: "15",
521
521
  viewBox: "0 0 14 15",
@@ -523,23 +523,23 @@ const fn = { class: "shifl-column-manager__header" }, dn = { class: "shifl-colum
523
523
  xmlns: "http://www.w3.org/2000/svg",
524
524
  class: "shifl-smart-tracking-icon"
525
525
  };
526
- function Hn(o, s) {
527
- return a(), l("svg", xn, [...s[0] || (s[0] = [
526
+ function En(o, s) {
527
+ return a(), l("svg", Hn, [...s[0] || (s[0] = [
528
528
  d("path", {
529
529
  d: "M1.03223 9.27441C1.22778 9.27445 1.40954 9.32951 1.57812 9.43066L3.86523 10.8594C4.1957 11.0618 4.3916 11.4202 4.3916 11.8047C4.39151 12.189 4.19562 12.5467 3.86523 12.749L1.57812 14.1797C1.41642 14.2806 1.22754 14.334 1.03223 14.334V14.3408C0.465713 14.3408 0.000165713 13.8751 0 13.3086V10.3066C0.000236867 9.74022 0.465756 9.27443 1.03223 9.27441ZM1.01172 13.3018L3.3252 11.8916C3.32796 11.8884 3.3728 11.8374 3.37305 11.8047C3.37305 11.771 3.35218 11.737 3.3252 11.7168L1.03906 10.2871L1.01172 13.3018ZM6.07129 3.37305C6.35041 3.37318 6.5771 3.59977 6.57715 3.87891C6.57715 4.15809 6.35044 4.38463 6.07129 4.38477H5.05957C4.03708 4.38477 3.20433 5.06537 3.2041 5.90234C3.2041 6.73947 4.03694 7.4209 5.05957 7.4209H7.08301C8.66344 7.42096 9.95019 8.55525 9.9502 9.9502C9.95009 11.3451 8.66338 12.4794 7.08301 12.4795H6.07129C5.79202 12.4795 5.56543 12.2529 5.56543 11.9736C5.56548 11.6944 5.79205 11.4678 6.07129 11.4678H7.08301C8.10552 11.4677 8.93739 10.7872 8.9375 9.9502C8.93749 9.11311 8.10558 8.43267 7.08301 8.43262H5.05957C3.47908 8.43262 2.19238 7.29733 2.19238 5.90234C2.19259 4.50751 3.4792 3.37305 5.05957 3.37305H6.07129ZM10.7939 0C12.0694 0.000131868 13.2591 0.779675 13.7549 1.94043C14.6093 3.9666 13.0453 5.42741 11.9033 6.49316L11.8818 6.51367C11.7964 6.59308 11.711 6.67193 11.6289 6.75C11.4057 6.96444 11.1095 7.08195 10.7939 7.08203C10.4783 7.08203 10.1803 6.9642 9.95703 6.74902C9.86266 6.65937 9.76511 6.56666 9.66602 6.47363L9.66016 6.46875C8.53029 5.40836 6.98418 3.95585 7.83203 1.94238C8.32854 0.77953 9.51841 6.29203e-06 10.7939 0ZM10.7939 1.01172C9.91775 1.01173 9.10234 1.54537 8.76367 2.33789C8.22961 3.60525 9.04604 4.50453 10.3525 5.73145L10.4229 5.79688C10.5024 5.87104 10.5804 5.94604 10.6572 6.01953C10.7267 6.08617 10.861 6.08446 10.9277 6.02051L10.9307 6.01758C11.0223 5.93066 11.1172 5.84284 11.2129 5.75391C12.5356 4.51951 13.3612 3.61352 12.8223 2.33594C12.4849 1.54493 11.6691 1.0127 10.793 1.0127L10.7939 1.01172ZM10.7998 2.53027C11.1719 2.53041 11.4734 2.83199 11.4736 3.2041C11.4736 3.57637 11.172 3.87877 10.7998 3.87891C10.4275 3.87882 10.1221 3.57641 10.1221 3.2041C10.1223 2.8319 10.4207 2.53027 10.793 2.53027H10.7998Z",
530
530
  fill: "#05963F"
531
531
  }, null, -1)
532
532
  ])]);
533
533
  }
534
- const En = /* @__PURE__ */ J(An, [["render", Hn]]), Rn = {}, zn = {
534
+ const Rn = /* @__PURE__ */ J(xn, [["render", En]]), zn = {}, Dn = {
535
535
  width: "14",
536
536
  height: "10",
537
537
  viewBox: "0 0 14 10",
538
538
  fill: "none",
539
539
  xmlns: "http://www.w3.org/2000/svg"
540
540
  };
541
- function Dn(o, s) {
542
- return a(), l("svg", zn, [...s[0] || (s[0] = [
541
+ function Vn(o, s) {
542
+ return a(), l("svg", Dn, [...s[0] || (s[0] = [
543
543
  d("path", {
544
544
  "fill-rule": "evenodd",
545
545
  "clip-rule": "evenodd",
@@ -548,106 +548,106 @@ function Dn(o, s) {
548
548
  }, null, -1)
549
549
  ])]);
550
550
  }
551
- const Vn = /* @__PURE__ */ J(Rn, [["render", Dn]]), Bn = {}, In = {
551
+ const Bn = /* @__PURE__ */ J(zn, [["render", Vn]]), In = {}, Zn = {
552
552
  width: "14",
553
553
  height: "10",
554
554
  viewBox: "0 0 14 10",
555
555
  fill: "none",
556
556
  xmlns: "http://www.w3.org/2000/svg"
557
557
  };
558
- function Zn(o, s) {
559
- return a(), l("svg", In, [...s[0] || (s[0] = [
558
+ function Gn(o, s) {
559
+ return a(), l("svg", Zn, [...s[0] || (s[0] = [
560
560
  d("path", {
561
561
  d: "M4.28125 8C4.66872 8.00011 4.98242 8.29887 4.98242 8.66699C4.98242 9.03511 4.66872 9.33387 4.28125 9.33398H0.702148C0.314581 9.33398 8.1338e-07 9.03518 0 8.66699C0 8.2988 0.31458 8 0.702148 8H4.28125ZM10.5264 0C10.9139 0 11.2285 0.298802 11.2285 0.666992V7.05762L12.1357 6.19531C12.4097 5.93519 12.8539 5.93524 13.1279 6.19531C13.402 6.45566 13.402 6.87832 13.1279 7.13867L11.0225 9.13867C10.7484 9.39867 10.3042 9.39886 10.0303 9.13867L7.9248 7.13867C7.65082 6.87834 7.65082 6.45565 7.9248 6.19531C8.19886 5.93496 8.64392 5.93496 8.91797 6.19531L9.8252 7.05762V0.666992C9.8252 0.298891 10.1389 0.000143144 10.5264 0ZM5.61426 4C6.00183 4 6.31641 4.2988 6.31641 4.66699C6.31641 5.03518 6.00183 5.33398 5.61426 5.33398H0.702148C0.314581 5.33398 6.77817e-07 5.03518 0 4.66699C0 4.2988 0.31458 4 0.702148 4H5.61426ZM7.01758 0C7.40515 0 7.71973 0.298802 7.71973 0.666992C7.71973 1.03518 7.40515 1.33398 7.01758 1.33398H0.702148C0.31458 1.33398 5.42254e-07 1.03518 0 0.666992C0 0.298802 0.31458 0 0.702148 0H7.01758Z",
562
562
  fill: "#1A6D9E"
563
563
  }, null, -1)
564
564
  ])]);
565
565
  }
566
- const On = /* @__PURE__ */ J(Bn, [["render", Zn]]), Gn = {}, jn = {
566
+ const On = /* @__PURE__ */ J(In, [["render", Gn]]), jn = {}, Fn = {
567
567
  width: "21",
568
568
  height: "13",
569
569
  viewBox: "0 0 21 13",
570
570
  fill: "none",
571
571
  xmlns: "http://www.w3.org/2000/svg"
572
572
  };
573
- function Fn(o, s) {
574
- return a(), l("svg", jn, [...s[0] || (s[0] = [
573
+ function Wn(o, s) {
574
+ return a(), l("svg", Fn, [...s[0] || (s[0] = [
575
575
  d("path", {
576
576
  d: "M19.6426 4.61523C19.9311 4.61524 20.1317 4.90139 20.0342 5.17285L17.499 12.2246C17.4395 12.3899 17.2821 12.5 17.1064 12.5H1.5459C1.35628 12.5 1.19044 12.3719 1.14258 12.1885L0.0136719 7.83887C-0.0548101 7.575 0.14438 7.31738 0.416992 7.31738H12.6016L14.71 4.61523H19.6426ZM3.51465 8.82324C3.11322 8.82324 2.78728 9.15265 2.78711 9.55859C2.78711 9.96468 3.11312 10.2939 3.51465 10.2939C3.9161 10.2938 4.24121 9.96462 4.24121 9.55859C4.24104 9.15271 3.91599 8.82334 3.51465 8.82324ZM7.87695 8.82324C7.47553 8.82324 7.14958 9.15265 7.14941 9.55859C7.14941 9.96468 7.47542 10.2939 7.87695 10.2939C8.27846 10.2939 8.60352 9.96466 8.60352 9.55859C8.60335 9.15267 8.27835 8.82327 7.87695 8.82324ZM12.2393 8.82324C11.8378 8.82324 11.5119 9.15265 11.5117 9.55859C11.5117 9.96468 11.8377 10.2939 12.2393 10.2939C12.6407 10.2938 12.9658 9.96458 12.9658 9.55859C12.9657 9.15275 12.6405 8.82341 12.2393 8.82324ZM10.3291 3.67676C10.5591 3.67679 10.7459 3.86283 10.7461 4.09277V5.46582C10.746 5.69585 10.5591 5.88278 10.3291 5.88281H1.75C1.51993 5.88281 1.33309 5.69587 1.33301 5.46582V4.09277C1.3332 3.86282 1.52 3.67676 1.75 3.67676H10.3291ZM8.91406 0C9.14418 0 9.33105 0.186874 9.33105 0.416992V1.78906C9.33105 2.01918 9.14418 2.20605 8.91406 2.20605H3.2041C2.97398 2.20605 2.78711 2.01918 2.78711 1.78906V0.416992C2.78711 0.186874 2.97398 1.52829e-06 3.2041 0H8.91406Z",
577
577
  fill: "#9CA5B4"
578
578
  }, null, -1)
579
579
  ])]);
580
580
  }
581
- const ht = /* @__PURE__ */ J(Gn, [["render", Fn]]), Wn = {}, Kn = {
581
+ const ht = /* @__PURE__ */ J(jn, [["render", Wn]]), Kn = {}, Jn = {
582
582
  width: "16",
583
583
  height: "16",
584
584
  viewBox: "0 0 16 16",
585
585
  fill: "none",
586
586
  xmlns: "http://www.w3.org/2000/svg"
587
587
  };
588
- function Jn(o, s) {
589
- return a(), l("svg", Kn, [...s[0] || (s[0] = [
588
+ function qn(o, s) {
589
+ return a(), l("svg", Jn, [...s[0] || (s[0] = [
590
590
  d("path", {
591
591
  d: "M7.99976 0.799561C11.9761 0.799561 15.1998 4.0234 15.2 7.99976C15.2 11.9762 11.9762 15.2 7.99976 15.2C4.0234 15.1998 0.799561 11.9761 0.799561 7.99976C0.799666 4.02346 4.02346 0.799666 7.99976 0.799561ZM7.99976 1.87964C4.61984 1.87974 1.87974 4.61984 1.87964 7.99976C1.87964 11.3798 4.61977 14.1198 7.99976 14.1199C11.3798 14.1199 14.1199 11.3798 14.1199 7.99976C14.1198 4.61977 11.3798 1.87964 7.99976 1.87964ZM7.9978 6.91968C8.27087 6.91973 8.49698 7.12223 8.53296 7.3855L8.53784 7.45874L8.53979 11.4197C8.5399 11.7178 8.29882 11.9595 8.00073 11.9597C7.72754 11.9599 7.50169 11.7572 7.46558 11.4939L7.46069 11.4207L7.45776 7.45972C7.45757 7.16153 7.69962 6.91987 7.9978 6.91968ZM8.00073 4.40112C8.39742 4.40137 8.71923 4.72319 8.71948 5.11987C8.71948 5.51677 8.39757 5.83935 8.00073 5.8396C7.60368 5.8396 7.28101 5.51692 7.28101 5.11987C7.28126 4.72304 7.60384 4.40112 8.00073 4.40112Z",
592
592
  fill: "#69758C"
593
593
  }, null, -1)
594
594
  ])]);
595
595
  }
596
- const qn = /* @__PURE__ */ J(Wn, [["render", Jn]]), Un = {}, Yn = {
596
+ const Un = /* @__PURE__ */ J(Kn, [["render", qn]]), Yn = {}, Qn = {
597
597
  width: "16",
598
598
  height: "16",
599
599
  viewBox: "0 0 24 24",
600
600
  fill: "none",
601
601
  xmlns: "http://www.w3.org/2000/svg"
602
602
  };
603
- function Qn(o, s) {
604
- return a(), l("svg", Yn, [...s[0] || (s[0] = [
603
+ function Xn(o, s) {
604
+ return a(), l("svg", Qn, [...s[0] || (s[0] = [
605
605
  d("path", {
606
606
  d: "M6.00044 6.12787L6 15.75C6 17.7382 7.5473 19.3651 9.50344 19.492L9.75 19.5L16.3716 19.5011C16.0624 20.3744 15.2293 21 14.25 21H9C6.51472 21 4.5 18.9853 4.5 16.5V8.25C4.5 7.27017 5.12631 6.43663 6.00044 6.12787ZM17.25 3C18.4926 3 19.5 4.00736 19.5 5.25V15.75C19.5 16.9926 18.4926 18 17.25 18H9.75C8.50736 18 7.5 16.9926 7.5 15.75V5.25C7.5 4.00736 8.50736 3 9.75 3H17.25ZM17.25 4.5H9.75C9.33579 4.5 9 4.83579 9 5.25V15.75C9 16.1642 9.33579 16.5 9.75 16.5H17.25C17.6642 16.5 18 16.1642 18 15.75V5.25C18 4.83579 17.6642 4.5 17.25 4.5Z",
607
607
  fill: "#1A6D9E"
608
608
  }, null, -1)
609
609
  ])]);
610
610
  }
611
- const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid relative" }, tr = { class: "shifl-grid__controls" }, nr = { class: "shifl-grid__table" }, rr = ["onClick"], sr = { class: "shifl-grid__header-content" }, ir = {
611
+ const er = /* @__PURE__ */ J(Yn, [["render", Xn]]), tr = { class: "shifl-grid relative" }, nr = { class: "shifl-grid__controls" }, rr = { class: "shifl-grid__table" }, sr = ["onClick"], ir = { class: "shifl-grid__header-content" }, or = {
612
612
  key: 0,
613
613
  class: "shifl-grid__header-label"
614
- }, or = {
614
+ }, ar = {
615
615
  key: 1,
616
616
  class: "shifl-grid__sort-icon"
617
- }, ar = { key: 0 }, lr = ["colspan"], ur = {
617
+ }, lr = { key: 0 }, ur = ["colspan"], cr = {
618
618
  key: 0,
619
619
  class: "shifl-grid__smart-tracking-icon"
620
- }, cr = ["onClick"], fr = { key: 0 }, dr = ["innerHTML"], gr = {
620
+ }, fr = ["onClick"], dr = { key: 0 }, gr = ["innerHTML"], hr = {
621
621
  key: 2,
622
622
  class: "shifl-grid__composite-cell"
623
- }, hr = {
623
+ }, pr = {
624
624
  key: 3,
625
625
  class: "shifl-grid__type-cell"
626
- }, pr = {
626
+ }, mr = {
627
627
  key: 0,
628
628
  class: "shifl-grid__container-badge"
629
- }, mr = {
629
+ }, vr = {
630
630
  key: 0,
631
631
  class: "shifl-grid__cell-blank"
632
- }, vr = {
632
+ }, _r = {
633
633
  key: 1,
634
634
  class: "shifl-grid__tags-cell"
635
- }, _r = { class: "shifl-grid__tags-wrapper" }, yr = ["onMouseenter"], br = {
635
+ }, yr = { class: "shifl-grid__tags-wrapper" }, br = ["onMouseenter"], kr = {
636
636
  key: 5,
637
637
  class: "shifl-grid__chips-container"
638
- }, kr = {
638
+ }, Cr = {
639
639
  key: 6,
640
640
  class: "shifl-grid__truncated-cell"
641
- }, Cr = ["onMouseenter"], wr = ["onMouseenter"], Mr = ["href"], Tr = {
641
+ }, wr = ["onMouseenter"], Mr = ["onMouseenter"], Tr = ["href"], Sr = {
642
642
  key: 8,
643
643
  class: "shifl-grid__progress-cell"
644
- }, Sr = { class: "shifl-grid__progress-bar" }, Pr = { class: "shifl-grid__progress-text" }, $r = ["onMouseenter"], Lr = { class: "shifl-grid__reference-value" }, Nr = ["onClick"], Ar = {
644
+ }, Pr = { class: "shifl-grid__progress-bar" }, $r = { class: "shifl-grid__progress-text" }, Lr = ["onMouseenter"], Nr = { class: "shifl-grid__reference-value" }, Ar = ["onClick"], xr = {
645
645
  key: 0,
646
646
  class: "shifl-grid__pagination"
647
- }, xr = { class: "shifl-grid__pagination-left" }, Hr = { class: "shifl-grid__pagination-range" }, Er = { class: "shifl-grid__pagination-range-numbers" }, Rr = { class: "shifl-grid__pagination-right" }, zr = { class: "shifl-grid__pagination-rows" }, Dr = ["value", "disabled"], Vr = { class: "shifl-grid__pagination-nav" }, Br = ["disabled"], Ir = { class: "shifl-grid__pagination-pages" }, Zr = ["disabled", "onClick"], Or = {
647
+ }, Hr = { class: "shifl-grid__pagination-left" }, Er = { class: "shifl-grid__pagination-range" }, Rr = { class: "shifl-grid__pagination-range-numbers" }, zr = { class: "shifl-grid__pagination-right" }, Dr = { class: "shifl-grid__pagination-rows" }, Vr = ["value", "disabled"], Br = { class: "shifl-grid__pagination-nav" }, Ir = ["disabled"], Zr = { class: "shifl-grid__pagination-pages" }, Gr = ["disabled", "onClick"], Or = {
648
648
  key: 1,
649
649
  class: "shifl-grid__pagination-ellipsis"
650
- }, Gr = ["disabled"], jr = ["onClick"], Fr = ["innerHTML"], Wr = { class: "shifl-grid__copy-tooltip-content" }, Kr = /* @__PURE__ */ Ze({
650
+ }, jr = ["disabled"], Fr = ["onClick"], Wr = ["innerHTML"], Kr = { class: "shifl-grid__copy-tooltip-content" }, Jr = /* @__PURE__ */ Ze({
651
651
  __name: "ShiflGrid",
652
652
  props: {
653
653
  config: {},
@@ -657,18 +657,18 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
657
657
  emits: ["action-click", "search-change", "pagination-change"],
658
658
  setup(o, { emit: s }) {
659
659
  var ut, ct, ft, dt, gt;
660
- const g = o, b = s, f = k(() => rn(g.config)), y = _(g.search), P = _(f.value.filters), S = _(f.value.sort), w = _({
661
- page: ((ut = f.value.paginationMeta) == null ? void 0 : ut.currentPage) || 1,
662
- perPage: ((ct = f.value.paginationMeta) == null ? void 0 : ct.perPage) || 20
660
+ const g = o, y = s, c = k(() => sn(g.config)), b = _(g.search), P = _(c.value.filters), S = _(c.value.sort), w = _({
661
+ page: ((ut = c.value.paginationMeta) == null ? void 0 : ut.currentPage) || 1,
662
+ perPage: ((ct = c.value.paginationMeta) == null ? void 0 : ct.perPage) || 20
663
663
  }), p = _(
664
- typeof ((ft = f.value.apiConfig) == null ? void 0 : ft.additionalParams) == "function" || (gt = (dt = f.value.apiConfig) == null ? void 0 : dt.additionalParams) == null ? void 0 : gt.tabName
665
- ), c = cn(f.value, {
666
- search: y,
664
+ typeof ((ft = c.value.apiConfig) == null ? void 0 : ft.additionalParams) == "function" || (gt = (dt = c.value.apiConfig) == null ? void 0 : dt.additionalParams) == null ? void 0 : gt.tabName
665
+ ), f = fn(c.value, {
666
+ search: b,
667
667
  filters: P,
668
668
  sort: S,
669
669
  pagination: w,
670
670
  tabName: p
671
- }), m = k(() => f.value.columns.filter((e) => !e.smartTrackingColumn)), {
671
+ }), m = k(() => c.value.columns.filter((e) => !e.smartTrackingColumn)), {
672
672
  columns: T,
673
673
  visibleColumns: M,
674
674
  toggleColumnVisibility: u,
@@ -676,7 +676,7 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
676
676
  toggleFreeze: C,
677
677
  moveColumn: A,
678
678
  resetColumns: N
679
- } = sn(m.value), { sort: x, setSort: ke, applySort: oe } = on(f.value.sort), { applyGlobalFilter: te } = an(), { menuState: z, openMenu: ae, closeMenu: Q } = ln(), O = _(!1), le = _({}), Oe = _(null), Ge = _(null), Ce = _(null), we = _(!1), je = _(""), Me = _(null), Te = _(!1), vt = _({});
679
+ } = on(m.value), { sort: x, setSort: ke, applySort: oe } = an(c.value.sort), { applyGlobalFilter: te } = ln(), { menuState: z, openMenu: ae, closeMenu: Q } = un(), G = _(!1), le = _({}), Ge = _(null), Oe = _(null), Ce = _(null), we = _(!1), je = _(""), Me = _(null), Te = _(!1), vt = _({});
680
680
  _({});
681
681
  const X = _(
682
682
  {}
@@ -688,20 +688,20 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
688
688
  $ + t > i && ($ = e.left - t - v), $ < 0 && ($ = 10), E + n > r && (E = r - n - 10), E < 0 && (E = 10), Se.value = { top: E, left: $ };
689
689
  }
690
690
  F(
691
- () => f.value.paginationMeta,
691
+ () => c.value.paginationMeta,
692
692
  (e) => {
693
- f.value.searchMode !== "server" && e && w.value && (w.value.page = e.currentPage || w.value.page, w.value.perPage = e.perPage || w.value.perPage);
693
+ c.value.searchMode !== "server" && e && w.value && (w.value.page = e.currentPage || w.value.page, w.value.perPage = e.perPage || w.value.perPage);
694
694
  },
695
695
  { deep: !0 }
696
696
  ), F(
697
- () => f.value.columns,
697
+ () => c.value.columns,
698
698
  (e) => {
699
699
  const t = e.filter((n) => !n.smartTrackingColumn);
700
700
  T.value = [...t];
701
701
  },
702
702
  { deep: !0 }
703
703
  ), F(
704
- () => f.value.sort,
704
+ () => c.value.sort,
705
705
  (e) => {
706
706
  e && (x.value = e, S.value = e);
707
707
  },
@@ -709,24 +709,30 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
709
709
  ), F(
710
710
  () => {
711
711
  var e;
712
- return (e = f.value.apiConfig) == null ? void 0 : e.additionalParams;
712
+ return (e = c.value.apiConfig) == null ? void 0 : e.additionalParams;
713
713
  },
714
714
  (e) => {
715
715
  if (e && typeof e != "function") {
716
716
  const t = e;
717
- t.tabName !== void 0 && p.value !== t.tabName && (p.value = t.tabName);
717
+ t.tabName !== void 0 && p.value !== t.tabName && (_t(), p.value = t.tabName);
718
718
  }
719
719
  },
720
720
  { deep: !0 }
721
- ), F(
721
+ );
722
+ function _t() {
723
+ var t;
724
+ const e = ((t = c.value.paginationMeta) == null ? void 0 : t.perPage) || 20;
725
+ w.value = { page: 1, perPage: e }, b.value = void 0, S.value = c.value.sort, P.value = c.value.filters, y("search-change", ""), y("pagination-change", 1, e);
726
+ }
727
+ F(
722
728
  () => g.search,
723
729
  (e, t) => {
724
730
  var n;
725
- if (y.value = e, f.value.searchMode === "server")
726
- b("search-change", e || "");
727
- else if (f.value.searchMode === "client" && e !== t) {
731
+ if (b.value = e, c.value.searchMode === "server")
732
+ y("search-change", e || "");
733
+ else if (c.value.searchMode === "client" && e !== t) {
728
734
  const i = ((n = D.value) == null ? void 0 : n.perPage) || 20;
729
- w.value = { page: 1, perPage: i }, b("pagination-change", 1, i);
735
+ w.value = { page: 1, perPage: i }, y("pagination-change", 1, i);
730
736
  }
731
737
  },
732
738
  { immediate: !0 }
@@ -736,16 +742,16 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
736
742
  S.value = e;
737
743
  }
738
744
  );
739
- const Pe = k(() => c.rows.value || []), $e = k(() => {
740
- if ((f.value.searchMode || "client") === "server")
745
+ const Pe = k(() => f.rows.value || []), $e = k(() => {
746
+ if ((c.value.searchMode || "client") === "server")
741
747
  return Pe.value;
742
748
  const t = g.search || "";
743
- return te(Pe.value, f.value.search, t);
749
+ return te(Pe.value, c.value.search, t);
744
750
  }), Le = k(() => {
745
751
  var t;
746
- return (f.value.searchMode || "client") === "client" ? $e.value.length : ((t = c.paginationMeta.value) == null ? void 0 : t.total) || 0;
747
- }), Ne = k(() => (f.value.searchMode || "client") === "server" ? $e.value : oe($e.value)), Fe = k(() => {
748
- if ((f.value.searchMode || "client") === "server")
752
+ return (c.value.searchMode || "client") === "client" ? $e.value.length : ((t = f.paginationMeta.value) == null ? void 0 : t.total) || 0;
753
+ }), Ne = k(() => (c.value.searchMode || "client") === "server" ? $e.value : oe($e.value)), Fe = k(() => {
754
+ if ((c.value.searchMode || "client") === "server")
749
755
  return Ne.value;
750
756
  const t = D.value;
751
757
  if (!t || !t.show)
@@ -754,16 +760,16 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
754
760
  return Ne.value.slice(r, v);
755
761
  }), D = k(() => {
756
762
  var e;
757
- return f.value.searchMode === "server" && c.paginationMeta.value ? {
763
+ return c.value.searchMode === "server" && f.paginationMeta.value ? {
758
764
  show: !0,
759
765
  // Default to showing pagination
760
- ...c.paginationMeta.value,
761
- currentPage: ((e = w.value) == null ? void 0 : e.page) || c.paginationMeta.value.currentPage || 1
762
- } : f.value.paginationMeta;
763
- }), U = k(() => g.loading !== void 0 ? g.loading : c.loading.value), _t = k(() => {
766
+ ...f.paginationMeta.value,
767
+ currentPage: ((e = w.value) == null ? void 0 : e.page) || f.paginationMeta.value.currentPage || 1
768
+ } : c.value.paginationMeta;
769
+ }), U = k(() => g.loading !== void 0 ? g.loading : f.loading.value), yt = k(() => {
764
770
  var e;
765
771
  return ((e = D.value) == null ? void 0 : e.perPage) === 100;
766
- }), yt = k(() => {
772
+ }), bt = k(() => {
767
773
  var e;
768
774
  return ((e = D.value) == null ? void 0 : e.perPage) || 10;
769
775
  }), We = k(() => {
@@ -771,7 +777,7 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
771
777
  if (!e || e.show === !1)
772
778
  return { from: 0, to: 0 };
773
779
  const t = Le.value, n = e.perPage || 20, i = e.currentPage || 1;
774
- if ((f.value.searchMode || "client") === "server" && e.from !== void 0 && e.to !== void 0)
780
+ if ((c.value.searchMode || "client") === "server" && e.from !== void 0 && e.to !== void 0)
775
781
  return { from: e.from, to: e.to };
776
782
  const v = (i - 1) * n + 1, $ = Math.min(i * n, t);
777
783
  return t === 0 ? { from: 0, to: 0 } : { from: v, to: $ };
@@ -785,7 +791,7 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
785
791
  if (t === 0) return 1;
786
792
  const n = e.perPage || 20, i = Math.ceil(t / n);
787
793
  return Math.max(1, i);
788
- }), Ke = k(() => Y.value <= 1), Je = k(() => Y.value >= Ae.value), bt = k(() => {
794
+ }), Ke = k(() => Y.value <= 1), Je = k(() => Y.value >= Ae.value), kt = k(() => {
789
795
  const e = Ae.value, t = Y.value, n = [];
790
796
  if (e <= 7)
791
797
  for (let i = 1; i <= e; i++)
@@ -806,42 +812,42 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
806
812
  }
807
813
  return n;
808
814
  });
809
- function kt(e) {
815
+ function Ct(e) {
810
816
  var n;
811
817
  if (e < 1 || e > Ae.value || e === Y.value || U.value) return;
812
818
  const t = ((n = D.value) == null ? void 0 : n.perPage) || 20;
813
- w.value = { page: e, perPage: t }, b("pagination-change", e, t);
819
+ w.value = { page: e, perPage: t }, y("pagination-change", e, t);
814
820
  }
815
- function Ct() {
821
+ function wt() {
816
822
  var n;
817
823
  if (Ke.value || U.value) return;
818
824
  const e = ((n = D.value) == null ? void 0 : n.perPage) || 20, t = Y.value - 1;
819
- w.value = { page: t, perPage: e }, b("pagination-change", t, e);
825
+ w.value = { page: t, perPage: e }, y("pagination-change", t, e);
820
826
  }
821
- function wt() {
827
+ function Mt() {
822
828
  var n;
823
829
  if (Je.value || U.value) return;
824
830
  const e = ((n = D.value) == null ? void 0 : n.perPage) || 20, t = Y.value + 1;
825
- w.value = { page: t, perPage: e }, b("pagination-change", t, e);
831
+ w.value = { page: t, perPage: e }, y("pagination-change", t, e);
826
832
  }
827
- function Mt(e) {
833
+ function Tt(e) {
828
834
  var i;
829
835
  if (U.value) return;
830
836
  const t = e.target, n = parseInt(t.value, 10);
831
- n && n !== (((i = D.value) == null ? void 0 : i.perPage) || 20) && (w.value = { page: 1, perPage: n }, b("pagination-change", 1, n));
837
+ n && n !== (((i = D.value) == null ? void 0 : i.perPage) || 20) && (w.value = { page: 1, perPage: n }, y("pagination-change", 1, n));
832
838
  }
833
- const Tt = k(() => {
834
- const e = f.value.columns.find((n) => n.smartTrackingColumn);
839
+ const St = k(() => {
840
+ const e = c.value.columns.find((n) => n.smartTrackingColumn);
835
841
  if (!(e != null && e.smartTrackingColumn)) return !1;
836
842
  const t = e.smartTrackingColumn.dataKey;
837
843
  return Pe.value.some((n) => {
838
844
  const i = n[t];
839
845
  return i === !0 || i === 1 || i === "true" || i === "1";
840
846
  });
841
- }), xe = k(() => f.value.columns.find((e) => e.smartTrackingColumn)), ee = k(() => {
847
+ }), xe = k(() => c.value.columns.find((e) => e.smartTrackingColumn)), ee = k(() => {
842
848
  var n;
843
849
  const e = M.value.filter((i) => !i.smartTrackingColumn);
844
- if (Tt.value && xe.value) {
850
+ if (St.value && xe.value) {
845
851
  const i = {
846
852
  key: "_smart_tracking",
847
853
  label: "",
@@ -860,7 +866,7 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
860
866
  }
861
867
  const t = e.find((i) => i.key === "ref");
862
868
  return t && (t.freeze = !0, t.protected = !0), e;
863
- }), St = k(() => {
869
+ }), Pt = k(() => {
864
870
  let e = 0;
865
871
  const t = {};
866
872
  for (const n of ee.value) {
@@ -870,11 +876,11 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
870
876
  }
871
877
  return t;
872
878
  }), qe = _(0);
873
- function Pt(e) {
879
+ function $t(e) {
874
880
  const t = e.target;
875
881
  qe.value = t.scrollLeft;
876
882
  }
877
- function $t(e) {
883
+ function Lt(e) {
878
884
  const t = T.value.find((n) => n.key === e);
879
885
  !(t != null && t.sortable) || he(t) || Ve(t) || ke(e);
880
886
  }
@@ -946,7 +952,7 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
946
952
  function Xe(e) {
947
953
  return typeof e == "boolean" ? e ? "Yes" : "No" : e === 1 || e === "1" || e === "true" || e === "True" ? "Yes" : e === 0 || e === "0" || e === "false" || e === "False" ? "No" : String(e);
948
954
  }
949
- function Lt(e) {
955
+ function Nt(e) {
950
956
  if (typeof e == "number")
951
957
  return Math.min(100, Math.max(0, e));
952
958
  const t = Number(e);
@@ -955,7 +961,7 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
955
961
  function et(e) {
956
962
  return typeof e == "string" && e.toLowerCase() === "ocean", ht;
957
963
  }
958
- function Nt(e) {
964
+ function At(e) {
959
965
  const t = e.toLowerCase();
960
966
  return ["supplier", "suppliers", "po", "pos", "product_description"].includes(t);
961
967
  }
@@ -964,16 +970,16 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
964
970
  const t = e.key.toLowerCase();
965
971
  return t === "tag" || t === "tags";
966
972
  }
967
- function At(e) {
973
+ function xt(e) {
968
974
  return e.cellType === "status" ? !0 : e.key.toLowerCase() === "status";
969
975
  }
970
- function xt(e) {
976
+ function Ht(e) {
971
977
  return e.cellType === "icon" ? !0 : e.key.toLowerCase() === "type";
972
978
  }
973
- function Ht(e) {
979
+ function Et(e) {
974
980
  return Array.isArray(e.cellType) && e.cellType.length > 0;
975
981
  }
976
- function Et(e) {
982
+ function Rt(e) {
977
983
  return Array.isArray(e.cellType) ? e.cellType.filter((t) => typeof t == "string") : e.cellType && typeof e.cellType == "string" ? [e.cellType] : [];
978
984
  }
979
985
  function nt(e, t, n) {
@@ -993,7 +999,7 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
993
999
  return typeof e == "object" ? JSON.stringify(e) : String(e);
994
1000
  }
995
1001
  }
996
- function Rt(e) {
1002
+ function zt(e) {
997
1003
  return {
998
1004
  number: "shifl-grid__composite-number",
999
1005
  currency: "shifl-grid__composite-currency",
@@ -1002,7 +1008,7 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1002
1008
  text: "shifl-grid__composite-text"
1003
1009
  }[e] || "shifl-grid__composite-text";
1004
1010
  }
1005
- function zt(e, t) {
1011
+ function Dt(e, t) {
1006
1012
  if (e == null || e === "")
1007
1013
  return ne(t.blankStyle);
1008
1014
  if (Array.isArray(e)) {
@@ -1020,13 +1026,13 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1020
1026
  const t = e.toLowerCase();
1021
1027
  return ["po", "pos", "supplier", "suppliers", "tag", "tags"].includes(t);
1022
1028
  }
1023
- function Dt(e, t) {
1029
+ function Vt(e, t) {
1024
1030
  return e == null || He(t) ? !1 : Array.isArray(e) ? e.length === 0 ? !1 : e.join(", ").length > 30 : typeof e == "string" ? e.length > 30 : !1;
1025
1031
  }
1026
- function Vt(e) {
1032
+ function Bt(e) {
1027
1033
  return e == null ? !1 : Array.isArray(e) ? e.length === 0 ? !1 : e.join(", ").length > 45 : typeof e == "string" ? e.length > 45 : !1;
1028
1034
  }
1029
- function Bt(e) {
1035
+ function It(e) {
1030
1036
  if (e == null) return 0;
1031
1037
  if (Array.isArray(e)) {
1032
1038
  if (e.length === 0 || e.join(", ").length <= 45) return 0;
@@ -1055,13 +1061,13 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1055
1061
  function Re() {
1056
1062
  we.value = !1, Me.value = null, Te.value = !1;
1057
1063
  }
1058
- function It(e, t) {
1064
+ function Zt(e, t) {
1059
1065
  ce.value = "Copy To Clipboard", fe.value = t, ue.value = !0, q();
1060
1066
  }
1061
1067
  function ze() {
1062
1068
  ue.value = !1, fe.value = null;
1063
1069
  }
1064
- async function Zt(e) {
1070
+ async function Gt(e) {
1065
1071
  try {
1066
1072
  await navigator.clipboard.writeText(e), ce.value = "Copied!", setTimeout(() => {
1067
1073
  ze();
@@ -1097,14 +1103,14 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1097
1103
  return X.value[r];
1098
1104
  const v = 130, $ = 8, E = 4;
1099
1105
  let W = 0;
1100
- const G = [];
1106
+ const O = [];
1101
1107
  for (const re of i) {
1102
1108
  const se = re.length * 8 + $ + E;
1103
- if (W + se > v && G.length > 0)
1109
+ if (W + se > v && O.length > 0)
1104
1110
  break;
1105
- G.push(re), W += se;
1111
+ O.push(re), W += se;
1106
1112
  }
1107
- return X.value[r] = G, G;
1113
+ return X.value[r] = O, O;
1108
1114
  }
1109
1115
  function ot(e, t, n) {
1110
1116
  const i = st(e);
@@ -1114,24 +1120,24 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1114
1120
  return X.value[r];
1115
1121
  const v = 130, $ = 8, E = 4;
1116
1122
  let W = 0;
1117
- const G = [];
1123
+ const O = [];
1118
1124
  for (const re of i) {
1119
1125
  const se = re.name.length * 8 + $ + E;
1120
- if (W + se > v && G.length > 0)
1126
+ if (W + se > v && O.length > 0)
1121
1127
  break;
1122
- G.push(re), W += se;
1128
+ O.push(re), W += se;
1123
1129
  }
1124
- return X.value[r] = G, G;
1130
+ return X.value[r] = O, O;
1125
1131
  }
1126
- function Gt(e, t, n) {
1132
+ function jt(e, t, n) {
1127
1133
  const i = ge(e), r = it(e, t, n);
1128
1134
  return i.length > r.length;
1129
1135
  }
1130
- function jt(e, t, n) {
1136
+ function Ft(e, t, n) {
1131
1137
  const i = ge(e), r = it(e, t, n);
1132
1138
  return i.length - r.length;
1133
1139
  }
1134
- function Ft(e) {
1140
+ function Wt(e) {
1135
1141
  const t = e.toLowerCase(), n = {
1136
1142
  "high priority": "var(--shifl-color-error-r70)",
1137
1143
  express: "var(--shifl-color-primary-b80)",
@@ -1149,12 +1155,12 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1149
1155
  for (const [i, r] of Object.entries(n))
1150
1156
  if (t.includes(i) || i.includes(t))
1151
1157
  return r;
1152
- return Wt(e);
1158
+ return Kt(e);
1153
1159
  }
1154
1160
  function at(e) {
1155
- return e.color && e.color !== "" ? e.color : Ft(e.name);
1161
+ return e.color && e.color !== "" ? e.color : Wt(e.name);
1156
1162
  }
1157
- function Wt(e) {
1163
+ function Kt(e) {
1158
1164
  let t = 0;
1159
1165
  for (let i = 0; i < e.length; i++)
1160
1166
  t = e.charCodeAt(i) + ((t << 5) - t);
@@ -1176,22 +1182,22 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1176
1182
  minWidth: e.width ?? "160px"
1177
1183
  } }, r = qe.value > 0;
1178
1184
  if (e.freeze) {
1179
- const v = St.value[e.key] ?? 0;
1185
+ const v = Pt.value[e.key] ?? 0;
1180
1186
  i.position = "sticky", i.left = `${v}px`, i.background = "#ffffff", i.boxShadow = r ? "2px 0 6px rgba(0, 0, 0, 0.12)" : "none", i.zIndex = t ? 40 : 10;
1181
1187
  }
1182
1188
  return t && (i.position = "sticky", i.top = "0px"), i;
1183
1189
  }
1184
- const Kt = k(() => T.value.filter((e) => !e.smartTrackingColumn));
1190
+ const Jt = k(() => T.value.filter((e) => !e.smartTrackingColumn));
1185
1191
  function he(e) {
1186
1192
  return !!e.actionColumn;
1187
1193
  }
1188
1194
  function Ve(e) {
1189
1195
  return !!e.smartTrackingColumn;
1190
1196
  }
1191
- function Jt(e) {
1197
+ function qt(e) {
1192
1198
  return e.key === "ref";
1193
1199
  }
1194
- function qt(e, t) {
1200
+ function Ut(e, t) {
1195
1201
  if (!e.smartTrackingColumn) return !1;
1196
1202
  const n = e.smartTrackingColumn.dataKey, i = t[n];
1197
1203
  if (i === !0 || i === 1) return !0;
@@ -1206,46 +1212,46 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1206
1212
  const n = e.actionColumn.icon;
1207
1213
  return n ? typeof n == "function" ? n(t) : n : null;
1208
1214
  }
1209
- function Ut(e, t, n, i) {
1215
+ function Yt(e, t, n, i) {
1210
1216
  if (!n.actionColumn) return;
1211
1217
  const r = i.currentTarget;
1212
1218
  if (z.value.rowIndex === e) {
1213
1219
  Q();
1214
1220
  return;
1215
1221
  }
1216
- Ge.value = n, Ce.value = t, ae(e, r);
1222
+ Oe.value = n, Ce.value = t, ae(e, r);
1217
1223
  }
1218
- function Yt(e, t) {
1224
+ function Qt(e, t) {
1219
1225
  return !(e != null && e.actionColumn) || !t ? [] : (typeof e.actionColumn.actions == "function" ? e.actionColumn.actions(t) : e.actionColumn.actions).filter((i) => i.show ? i.show(t) : !0);
1220
1226
  }
1221
- function Qt(e, t, n) {
1222
- b("action-click", e.key, t, n), Q();
1227
+ function Xt(e, t, n) {
1228
+ y("action-click", e.key, t, n), Q();
1223
1229
  }
1224
- function Xt(e, t) {
1230
+ function en(e, t) {
1225
1231
  t && (le.value[e] = t);
1226
1232
  }
1227
1233
  function lt(e) {
1228
1234
  if (z.value.rowIndex === null) return;
1229
- const t = e.target, n = Oe.value, i = Object.values(le.value), r = n == null ? void 0 : n.contains(t), v = i.some(($) => $.contains(t));
1235
+ const t = e.target, n = Ge.value, i = Object.values(le.value), r = n == null ? void 0 : n.contains(t), v = i.some(($) => $.contains(t));
1230
1236
  !r && !v && Q();
1231
1237
  }
1232
1238
  return ye(() => {
1233
1239
  document.addEventListener("click", lt), document.addEventListener("scroll", q), window.addEventListener("scroll", q), window.addEventListener("resize", q);
1234
1240
  }), be(() => {
1235
1241
  document.removeEventListener("click", lt), document.removeEventListener("scroll", q), window.removeEventListener("scroll", q), window.removeEventListener("resize", q);
1236
- }), (e, t) => (a(), l("div", er, [
1237
- d("div", tr, [
1242
+ }), (e, t) => (a(), l("div", tr, [
1243
+ d("div", nr, [
1238
1244
  d("button", {
1239
1245
  type: "button",
1240
1246
  class: "shifl-grid__pill-button whitespace-nowrap",
1241
- onClick: t[0] || (t[0] = (n) => O.value = !0)
1247
+ onClick: t[0] || (t[0] = (n) => G.value = !0)
1242
1248
  }, " Edit Column ")
1243
1249
  ]),
1244
1250
  d("div", {
1245
- class: Z(["shifl-grid__viewport", { "shifl-grid__viewport--scroll": _t.value }]),
1246
- onScroll: Pt
1251
+ class: Z(["shifl-grid__viewport", { "shifl-grid__viewport--scroll": yt.value }]),
1252
+ onScroll: $t
1247
1253
  }, [
1248
- d("table", nr, [
1254
+ d("table", rr, [
1249
1255
  d("thead", null, [
1250
1256
  d("tr", null, [
1251
1257
  (a(!0), l(H, null, B(ee.value, (n) => {
@@ -1253,7 +1259,7 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1253
1259
  return a(), l("th", {
1254
1260
  key: n.key,
1255
1261
  style: j(De(n, !0)),
1256
- onClick: () => $t(n.key),
1262
+ onClick: () => Lt(n.key),
1257
1263
  class: Z([
1258
1264
  "shifl-grid__header-cell",
1259
1265
  `shifl-grid__header-align-${n != null && n.align ? n.align : "left"}`,
@@ -1264,18 +1270,18 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1264
1270
  }
1265
1271
  ])
1266
1272
  }, [
1267
- d("div", sr, [
1268
- n.label ? (a(), l("span", ir, L(n.label), 1)) : R("", !0),
1269
- ((i = V(x)) == null ? void 0 : i.key) === n.key && !he(n) && !Ve(n) ? (a(), l("span", or, [
1270
- V(x).order === "asc" ? (a(), I(Vn, { key: 0 })) : (a(), I(On, { key: 1 }))
1273
+ d("div", ir, [
1274
+ n.label ? (a(), l("span", or, L(n.label), 1)) : R("", !0),
1275
+ ((i = V(x)) == null ? void 0 : i.key) === n.key && !he(n) && !Ve(n) ? (a(), l("span", ar, [
1276
+ V(x).order === "asc" ? (a(), I(Bn, { key: 0 })) : (a(), I(On, { key: 1 }))
1271
1277
  ])) : R("", !0)
1272
1278
  ])
1273
- ], 14, rr);
1279
+ ], 14, sr);
1274
1280
  }), 128))
1275
1281
  ])
1276
1282
  ]),
1277
1283
  d("tbody", null, [
1278
- U.value ? (a(!0), l(H, { key: 0 }, B(yt.value, (n) => (a(), l("tr", {
1284
+ U.value ? (a(!0), l(H, { key: 0 }, B(bt.value, (n) => (a(), l("tr", {
1279
1285
  key: `skeleton-${n}`,
1280
1286
  class: "shifl-grid__skeleton-row"
1281
1287
  }, [
@@ -1287,11 +1293,11 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1287
1293
  d("div", { class: "shifl-grid__skeleton-cell" }, null, -1)
1288
1294
  ])], 6))), 128))
1289
1295
  ]))), 128)) : (a(), l(H, { key: 1 }, [
1290
- Fe.value.length ? R("", !0) : (a(), l("tr", ar, [
1296
+ Fe.value.length ? R("", !0) : (a(), l("tr", lr, [
1291
1297
  d("td", {
1292
1298
  colspan: ee.value.length,
1293
1299
  class: "text-center text-gray-500 py-6"
1294
- }, " No data ", 8, lr)
1300
+ }, " No data ", 8, ur)
1295
1301
  ])),
1296
1302
  (a(!0), l(H, null, B(Fe.value, (n, i) => (a(), l("tr", { key: i }, [
1297
1303
  (a(!0), l(H, null, B(ee.value, (r) => (a(), l("td", {
@@ -1305,41 +1311,41 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1305
1311
  ])
1306
1312
  }, [
1307
1313
  Ve(r) ? (a(), l(H, { key: 0 }, [
1308
- qt(r, n) ? (a(), l("div", ur, [
1309
- me(En)
1314
+ Ut(r, n) ? (a(), l("div", cr, [
1315
+ me(Rn)
1310
1316
  ])) : R("", !0)
1311
1317
  ], 64)) : he(r) ? (a(), l("button", {
1312
1318
  key: 1,
1313
1319
  type: "button",
1314
1320
  class: "shifl-grid__action-icon",
1315
1321
  ref_for: !0,
1316
- ref: (v) => Xt(i, v),
1317
- onClick: K((v) => Ut(i, n, r, v), ["stop"])
1322
+ ref: (v) => en(i, v),
1323
+ onClick: K((v) => Yt(i, n, r, v), ["stop"])
1318
1324
  }, [
1319
1325
  pe(r, n) ? typeof pe(r, n) == "string" ? (a(), l("span", {
1320
1326
  key: 1,
1321
1327
  innerHTML: pe(r, n),
1322
1328
  class: "w-4 h-4 inline-block"
1323
- }, null, 8, dr)) : (a(), I(ve(pe(r, n)), {
1329
+ }, null, 8, gr)) : (a(), I(ve(pe(r, n)), {
1324
1330
  key: 2,
1325
1331
  class: "w-4 h-4"
1326
- })) : (a(), l("span", fr, "⋯"))
1327
- ], 8, cr)) : Ht(r) ? (a(), l("div", gr, [
1328
- (a(!0), l(H, null, B(Et(r), (v, $) => (a(), l(H, { key: $ }, [
1332
+ })) : (a(), l("span", dr, "⋯"))
1333
+ ], 8, fr)) : Et(r) ? (a(), l("div", hr, [
1334
+ (a(!0), l(H, null, B(Rt(r), (v, $) => (a(), l(H, { key: $ }, [
1329
1335
  v === "icon" ? (a(), I(ve(et(n[r.key])), {
1330
1336
  key: 0,
1331
1337
  class: "shifl-grid__type-icon"
1332
1338
  })) : (a(), l("span", {
1333
1339
  key: 1,
1334
- class: Z(Rt(v))
1340
+ class: Z(zt(v))
1335
1341
  }, L(nt(n[r.key], v, r)), 3))
1336
1342
  ], 64))), 128))
1337
- ])) : xt(r) ? (a(), l("div", hr, [
1343
+ ])) : Ht(r) ? (a(), l("div", pr, [
1338
1344
  (a(), I(ve(et(n[r.key])), { class: "shifl-grid__type-icon" })),
1339
- n.container_count != null ? (a(), l("span", pr, " (" + L(n.container_count) + ") ", 1)) : R("", !0)
1345
+ n.container_count != null ? (a(), l("span", mr, " (" + L(n.container_count) + ") ", 1)) : R("", !0)
1340
1346
  ])) : tt(r) ? (a(), l(H, { key: 4 }, [
1341
- n[r.key] == null || ot(n[r.key], r.key, i).length === 0 ? (a(), l("div", mr, L(ne(r.blankStyle)), 1)) : (a(), l("div", vr, [
1342
- d("div", _r, [
1347
+ n[r.key] == null || ot(n[r.key], r.key, i).length === 0 ? (a(), l("div", vr, L(ne(r.blankStyle)), 1)) : (a(), l("div", _r, [
1348
+ d("div", yr, [
1343
1349
  d("div", {
1344
1350
  ref_for: !0,
1345
1351
  ref: "(el) => setTagsRef(col.key, rowIndex, el as HTMLElement)",
@@ -1356,7 +1362,7 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1356
1362
  }, L(v.name), 5))), 128))
1357
1363
  ], 512)
1358
1364
  ]),
1359
- Gt(n[r.key], r.key, i) ? (a(), l("button", {
1365
+ jt(n[r.key], r.key, i) ? (a(), l("button", {
1360
1366
  key: 0,
1361
1367
  type: "button",
1362
1368
  class: "shifl-grid__counter-button",
@@ -1367,20 +1373,20 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1367
1373
  v.currentTarget
1368
1374
  ),
1369
1375
  onMouseleave: Re
1370
- }, " +" + L(jt(n[r.key], r.key, i)), 41, yr)) : R("", !0)
1376
+ }, " +" + L(Ft(n[r.key], r.key, i)), 41, br)) : R("", !0)
1371
1377
  ]))
1372
- ], 64)) : At(r) ? (a(), l("div", br, [
1378
+ ], 64)) : xt(r) ? (a(), l("div", kr, [
1373
1379
  (a(!0), l(H, null, B(ge(n[r.key]), (v, $) => (a(), l("span", {
1374
1380
  key: $,
1375
1381
  class: "shifl-grid__chip shifl-grid__chip--status"
1376
1382
  }, L(v), 1))), 128))
1377
- ])) : r.truncate !== !1 && (r.truncate === !0 || Nt(r.key)) ? (a(), l("div", kr, [
1383
+ ])) : r.truncate !== !1 && (r.truncate === !0 || At(r.key)) ? (a(), l("div", Cr, [
1378
1384
  d("span", {
1379
1385
  class: "shifl-grid__truncated-text",
1380
1386
  ref_for: !0,
1381
1387
  ref: (v) => Ot(r.key, i, v)
1382
- }, L(zt(n[r.key], r)), 513),
1383
- He(r.key) && Vt(n[r.key]) ? (a(), l("button", {
1388
+ }, L(Dt(n[r.key], r)), 513),
1389
+ He(r.key) && Bt(n[r.key]) ? (a(), l("button", {
1384
1390
  key: 0,
1385
1391
  type: "button",
1386
1392
  class: "shifl-grid__counter-button",
@@ -1391,7 +1397,7 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1391
1397
  v.currentTarget
1392
1398
  ),
1393
1399
  onMouseleave: Re
1394
- }, " +" + L(Bt(n[r.key])), 41, Cr)) : !He(r.key) && Dt(n[r.key], r.key) ? (a(), l("button", {
1400
+ }, " +" + L(It(n[r.key])), 41, wr)) : !He(r.key) && Vt(n[r.key], r.key) ? (a(), l("button", {
1395
1401
  key: 1,
1396
1402
  type: "button",
1397
1403
  class: "shifl-grid__info-icon-button",
@@ -1403,38 +1409,38 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1403
1409
  ),
1404
1410
  onMouseleave: Re
1405
1411
  }, [
1406
- me(qn)
1407
- ], 40, wr)) : R("", !0)
1412
+ me(Un)
1413
+ ], 40, Mr)) : R("", !0)
1408
1414
  ])) : r.cellType === "link" ? (a(), l("a", {
1409
1415
  key: 7,
1410
1416
  href: String(n[r.key] || ""),
1411
1417
  class: "shifl-grid__link-cell",
1412
1418
  onClick: t[1] || (t[1] = K(() => {
1413
1419
  }, ["stop"]))
1414
- }, L(de(n[r.key], r)), 9, Mr)) : r.cellType === "progress" ? (a(), l("div", Tr, [
1415
- d("div", Sr, [
1420
+ }, L(de(n[r.key], r)), 9, Tr)) : r.cellType === "progress" ? (a(), l("div", Sr, [
1421
+ d("div", Pr, [
1416
1422
  d("div", {
1417
1423
  class: "shifl-grid__progress-fill",
1418
- style: j({ width: `${Lt(n[r.key])}%` })
1424
+ style: j({ width: `${Nt(n[r.key])}%` })
1419
1425
  }, null, 4)
1420
1426
  ]),
1421
- d("span", Pr, L(de(n[r.key], r)), 1)
1422
- ])) : Jt(r) ? (a(), l("div", {
1427
+ d("span", $r, L(de(n[r.key], r)), 1)
1428
+ ])) : qt(r) ? (a(), l("div", {
1423
1429
  key: 9,
1424
1430
  class: "shifl-grid__reference-cell",
1425
- onMouseenter: (v) => It(String(n[r.key] || ""), v.currentTarget),
1431
+ onMouseenter: (v) => Zt(String(n[r.key] || ""), v.currentTarget),
1426
1432
  onMouseleave: ze
1427
1433
  }, [
1428
- d("span", Lr, L(de(n[r.key], r)), 1),
1434
+ d("span", Nr, L(de(n[r.key], r)), 1),
1429
1435
  n[r.key] ? (a(), l("button", {
1430
1436
  key: 0,
1431
1437
  class: "shifl-grid__copy-icon",
1432
- onClick: K(() => Zt(String(n[r.key] || "")), ["stop"]),
1438
+ onClick: K(() => Gt(String(n[r.key] || "")), ["stop"]),
1433
1439
  type: "button"
1434
1440
  }, [
1435
- me(Xn)
1436
- ], 8, Nr)) : R("", !0)
1437
- ], 40, $r)) : (a(), l(H, { key: 10 }, [
1441
+ me(er)
1442
+ ], 8, Ar)) : R("", !0)
1443
+ ], 40, Lr)) : (a(), l(H, { key: 10 }, [
1438
1444
  ie(L(de(n[r.key], r)), 1)
1439
1445
  ], 64))
1440
1446
  ], 6))), 128))
@@ -1443,52 +1449,52 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1443
1449
  ])
1444
1450
  ])
1445
1451
  ], 34),
1446
- D.value && D.value.show !== !1 ? (a(), l("div", Ar, [
1447
- d("div", xr, [
1448
- d("span", Hr, [
1452
+ D.value && D.value.show !== !1 ? (a(), l("div", xr, [
1453
+ d("div", Hr, [
1454
+ d("span", Er, [
1449
1455
  t[7] || (t[7] = ie(" Showing ", -1)),
1450
- d("span", Er, L(We.value.from) + "–" + L(We.value.to), 1),
1456
+ d("span", Rr, L(We.value.from) + "–" + L(We.value.to), 1),
1451
1457
  ie(" of " + L(Le.value), 1)
1452
1458
  ])
1453
1459
  ]),
1454
- d("div", Rr, [
1455
- d("div", zr, [
1460
+ d("div", zr, [
1461
+ d("div", Dr, [
1456
1462
  t[9] || (t[9] = d("label", { class: "shifl-grid__pagination-label" }, "Row per page", -1)),
1457
1463
  d("select", {
1458
1464
  value: D.value.perPage || 20,
1459
1465
  disabled: U.value,
1460
- onChange: Mt,
1466
+ onChange: Tt,
1461
1467
  class: "shifl-grid__pagination-select"
1462
1468
  }, [...t[8] || (t[8] = [
1463
- en('<option value="20">20</option><option value="30">30</option><option value="50">50</option><option value="75">75</option><option value="100">100</option>', 5)
1464
- ])], 40, Dr)
1469
+ tn('<option value="20">20</option><option value="30">30</option><option value="50">50</option><option value="75">75</option><option value="100">100</option>', 5)
1470
+ ])], 40, Vr)
1465
1471
  ]),
1466
- d("div", Vr, [
1472
+ d("div", Br, [
1467
1473
  d("button", {
1468
1474
  type: "button",
1469
1475
  class: "shifl-grid__pagination-button",
1470
1476
  disabled: Ke.value || g.loading,
1471
- onClick: Ct,
1477
+ onClick: wt,
1472
1478
  "aria-label": "Previous page"
1473
- }, " ‹ ", 8, Br),
1474
- d("div", Ir, [
1475
- (a(!0), l(H, null, B(bt.value, (n) => (a(), l(H, { key: n }, [
1479
+ }, " ‹ ", 8, Ir),
1480
+ d("div", Zr, [
1481
+ (a(!0), l(H, null, B(kt.value, (n) => (a(), l(H, { key: n }, [
1476
1482
  n !== -1 ? (a(), l("button", {
1477
1483
  key: 0,
1478
1484
  type: "button",
1479
1485
  class: Z(["shifl-grid__pagination-page", { "shifl-grid__pagination-page--active": n === Y.value }]),
1480
1486
  disabled: U.value,
1481
- onClick: (i) => kt(n)
1482
- }, L(n), 11, Zr)) : (a(), l("span", Or, "…"))
1487
+ onClick: (i) => Ct(n)
1488
+ }, L(n), 11, Gr)) : (a(), l("span", Or, "…"))
1483
1489
  ], 64))), 128))
1484
1490
  ]),
1485
1491
  d("button", {
1486
1492
  type: "button",
1487
1493
  class: "shifl-grid__pagination-button",
1488
1494
  disabled: Je.value || g.loading,
1489
- onClick: wt,
1495
+ onClick: Mt,
1490
1496
  "aria-label": "Next page"
1491
- }, " › ", 8, Gr)
1497
+ }, " › ", 8, jr)
1492
1498
  ])
1493
1499
  ])
1494
1500
  ])) : R("", !0),
@@ -1496,7 +1502,7 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1496
1502
  V(z).rowIndex !== null && V(z).position ? (a(), l("div", {
1497
1503
  key: 0,
1498
1504
  ref_key: "actionMenuRef",
1499
- ref: Oe,
1505
+ ref: Ge,
1500
1506
  class: "shifl-grid__action-menu",
1501
1507
  style: j(`
1502
1508
  position: fixed !important;
@@ -1506,24 +1512,24 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1506
1512
  onClick: t[2] || (t[2] = K(() => {
1507
1513
  }, ["stop"]))
1508
1514
  }, [
1509
- (a(!0), l(H, null, B(Yt(Ge.value, Ce.value), (n) => (a(), l("div", {
1515
+ (a(!0), l(H, null, B(Qt(Oe.value, Ce.value), (n) => (a(), l("div", {
1510
1516
  key: n.key,
1511
1517
  class: Z(["shifl-grid__action-menu-item", { "shifl-grid__action-menu-item--danger": n.danger }]),
1512
- onClick: () => Qt(n, Ce.value, V(z).rowIndex)
1518
+ onClick: () => Xt(n, Ce.value, V(z).rowIndex)
1513
1519
  }, [
1514
1520
  n.icon && typeof n.icon == "string" ? (a(), l("span", {
1515
1521
  key: 0,
1516
1522
  innerHTML: n.icon,
1517
1523
  class: "w-4 h-4 inline-block"
1518
- }, null, 8, Fr)) : n.icon ? (a(), I(ve(typeof n.icon == "function" ? n.icon() : n.icon), {
1524
+ }, null, 8, Wr)) : n.icon ? (a(), I(ve(typeof n.icon == "function" ? n.icon() : n.icon), {
1519
1525
  key: 1,
1520
1526
  class: "w-4 h-4"
1521
1527
  })) : R("", !0),
1522
1528
  d("span", null, L(n.label), 1)
1523
- ], 10, jr))), 128))
1529
+ ], 10, Fr))), 128))
1524
1530
  ], 4)) : R("", !0)
1525
1531
  ])),
1526
- me(Nn, {
1532
+ me(An, {
1527
1533
  content: je.value,
1528
1534
  visible: we.value,
1529
1535
  "trigger-element": Me.value,
@@ -1541,15 +1547,15 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1541
1547
  })
1542
1548
  }, [
1543
1549
  t[10] || (t[10] = d("div", { class: "shifl-grid__copy-tooltip-arrow" }, null, -1)),
1544
- d("div", Wr, L(ce.value), 1)
1550
+ d("div", Kr, L(ce.value), 1)
1545
1551
  ], 4)) : R("", !0)
1546
1552
  ])),
1547
1553
  (a(), I(_e, { to: "body" }, [
1548
- O.value ? (a(), I(Sn, {
1554
+ G.value ? (a(), I(Pn, {
1549
1555
  key: 0,
1550
1556
  "title-prefix": o.config.name,
1551
- columns: Kt.value,
1552
- onClose: t[3] || (t[3] = (n) => O.value = !1),
1557
+ columns: Jt.value,
1558
+ onClose: t[3] || (t[3] = (n) => G.value = !1),
1553
1559
  onToggle: V(u),
1554
1560
  onToggleFreeze: V(C),
1555
1561
  onMove: V(A),
@@ -1560,23 +1566,23 @@ const Xn = /* @__PURE__ */ J(Un, [["render", Qn]]), er = { class: "shifl-grid re
1560
1566
  ]))
1561
1567
  ]));
1562
1568
  }
1563
- }), qr = {
1569
+ }), Ur = {
1564
1570
  install(o) {
1565
- o.component("ShiflGrid", Kr);
1571
+ o.component("ShiflGrid", Jr);
1566
1572
  }
1567
1573
  };
1568
- function Ur() {
1574
+ function Yr() {
1569
1575
  const o = _(/* @__PURE__ */ new Set());
1570
1576
  function s(g) {
1571
- const b = g.id ?? JSON.stringify(g), f = new Set(o.value);
1572
- f.has(b) ? f.delete(b) : f.add(b), o.value = f;
1577
+ const y = g.id ?? JSON.stringify(g), c = new Set(o.value);
1578
+ c.has(y) ? c.delete(y) : c.add(y), o.value = c;
1573
1579
  }
1574
1580
  return {
1575
1581
  selectedKeys: o,
1576
1582
  toggleRow: s
1577
1583
  };
1578
1584
  }
1579
- function Yr() {
1585
+ function Qr() {
1580
1586
  return {
1581
1587
  // placeholder
1582
1588
  };
@@ -1591,19 +1597,19 @@ const pt = Symbol("shifl-grid-theme"), mt = {
1591
1597
  accentStrong: "var(--shifl-accent-strong)",
1592
1598
  focus: "var(--shifl-focus)"
1593
1599
  };
1594
- function Qr(o) {
1600
+ function Xr(o) {
1595
1601
  const s = _({ ...mt, ...o });
1596
- return tn(pt, s), s;
1602
+ return nn(pt, s), s;
1597
1603
  }
1598
- function Xr() {
1599
- const o = nn(pt);
1604
+ function es() {
1605
+ const o = rn(pt);
1600
1606
  return k(() => (o == null ? void 0 : o.value) ?? mt);
1601
1607
  }
1602
1608
  const Be = {
1603
1609
  sm: 640,
1604
1610
  lg: 1024
1605
1611
  };
1606
- function es() {
1612
+ function ts() {
1607
1613
  const o = _(typeof window < "u" ? window.innerWidth : 0);
1608
1614
  function s() {
1609
1615
  o.value = window.innerWidth;
@@ -1618,34 +1624,34 @@ function es() {
1618
1624
  isTablet: k(() => o.value >= Be.sm && o.value < Be.lg)
1619
1625
  };
1620
1626
  }
1621
- function ts() {
1627
+ function ns() {
1622
1628
  return {
1623
1629
  // placeholder
1624
1630
  };
1625
1631
  }
1626
- function ns() {
1632
+ function rs() {
1627
1633
  return {
1628
1634
  // placeholder
1629
1635
  };
1630
1636
  }
1631
- function rs() {
1637
+ function ss() {
1632
1638
  return {
1633
1639
  // placeholder
1634
1640
  };
1635
1641
  }
1636
1642
  export {
1637
- Kr as ShiflGrid,
1638
- qr as ShiflGridPlugin,
1639
- Qr as provideGridTheme,
1640
- es as useBreakpoints,
1641
- sn as useGridColumns,
1642
- cn as useGridData,
1643
- Yr as useGridEditing,
1644
- an as useGridFilter,
1645
- ts as useGridInfiniteScroll,
1646
- Ur as useGridSelection,
1647
- on as useGridSort,
1648
- Xr as useGridTheme,
1649
- rs as useGridTour,
1650
- ns as useVirtualScroll
1643
+ Jr as ShiflGrid,
1644
+ Ur as ShiflGridPlugin,
1645
+ Xr as provideGridTheme,
1646
+ ts as useBreakpoints,
1647
+ on as useGridColumns,
1648
+ fn as useGridData,
1649
+ Qr as useGridEditing,
1650
+ ln as useGridFilter,
1651
+ ns as useGridInfiniteScroll,
1652
+ Yr as useGridSelection,
1653
+ an as useGridSort,
1654
+ es as useGridTheme,
1655
+ ss as useGridTour,
1656
+ rs as useVirtualScroll
1651
1657
  };