@shifl-inc/ui 0.6.0 → 0.7.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,4 +1,4 @@
1
- import { ref as b, computed as k, onMounted as de, onUnmounted as ge, watch as j, nextTick as He, defineComponent as De, createElementBlock as l, openBlock as o, withModifiers as q, createElementVNode as h, createCommentVNode as D, createTextVNode as re, toDisplayString as $, Fragment as R, renderList as V, normalizeClass as G, createBlock as Z, Teleport as ze, normalizeStyle as K, createVNode as Re, unref as E, resolveDynamicComponent as fe, createStaticVNode as Ft, provide as Kt, inject as Wt } from "vue";
1
+ import { ref as b, computed as k, onMounted as de, onUnmounted as ge, watch as j, nextTick as Re, defineComponent as ze, createElementBlock as l, openBlock as o, withModifiers as q, createElementVNode as g, createCommentVNode as D, createTextVNode as se, toDisplayString as $, Fragment as x, renderList as V, normalizeClass as G, createBlock as Z, Teleport as He, normalizeStyle as K, createVNode as Ne, unref as E, resolveDynamicComponent as fe, createStaticVNode as Ft, provide as Kt, inject as Wt } from "vue";
2
2
  function Jt(a) {
3
3
  const r = (a.columns || []).map((_) => ({
4
4
  ..._,
@@ -26,36 +26,36 @@ function Jt(a) {
26
26
  }
27
27
  function qt(a) {
28
28
  const r = [...a], d = b([...a]);
29
- function _(p) {
29
+ function _(h) {
30
30
  d.value = d.value.map(
31
- (u) => u.key === p ? { ...u, visible: !u.visible } : u
31
+ (u) => u.key === h ? { ...u, visible: !u.visible } : u
32
32
  );
33
33
  }
34
- function f(p) {
35
- d.value = d.value.map((u) => ({ ...u, visible: p }));
34
+ function c(h) {
35
+ d.value = d.value.map((u) => ({ ...u, visible: h }));
36
36
  }
37
- function v(p) {
37
+ function v(h) {
38
38
  const u = d.value.map(
39
- (w) => w.key === p ? { ...w, freeze: !w.freeze } : w
39
+ (w) => w.key === h ? { ...w, freeze: !w.freeze } : w
40
40
  ), m = u.filter((w) => w.freeze), S = u.filter((w) => !w.freeze);
41
41
  d.value = [...m, ...S];
42
42
  }
43
- function T(p, u) {
44
- if (p === u || u < 0 || u >= d.value.length) return;
45
- const m = d.value.findIndex((g) => !g.freeze), S = m === -1 ? d.value.length : m;
46
- if (p < S || u < S) return;
47
- const w = [...d.value], [c] = w.splice(p, 1);
48
- w.splice(u, 0, c), d.value = w;
43
+ function T(h, u) {
44
+ if (h === u || u < 0 || u >= d.value.length) return;
45
+ const m = d.value.findIndex((p) => !p.freeze), S = m === -1 ? d.value.length : m;
46
+ if (h < S || u < S) return;
47
+ const w = [...d.value], [f] = w.splice(h, 1);
48
+ w.splice(u, 0, f), d.value = w;
49
49
  }
50
50
  function P() {
51
51
  d.value = [...r];
52
52
  }
53
- const M = k(() => d.value.filter((p) => p.visible));
53
+ const M = k(() => d.value.filter((h) => h.visible));
54
54
  return {
55
55
  columns: d,
56
56
  visibleColumns: M,
57
57
  toggleColumnVisibility: _,
58
- setAllVisible: f,
58
+ setAllVisible: c,
59
59
  toggleFreeze: v,
60
60
  moveColumn: T,
61
61
  resetColumns: P
@@ -63,19 +63,19 @@ function qt(a) {
63
63
  }
64
64
  function Ut(a) {
65
65
  const r = b(a);
66
- function d(f) {
66
+ function d(c) {
67
67
  var v;
68
- r.value = ((v = r.value) == null ? void 0 : v.key) === f && r.value.order === "asc" ? { key: f, order: "desc" } : { key: f, order: "asc" };
68
+ r.value = ((v = r.value) == null ? void 0 : v.key) === c && r.value.order === "asc" ? { key: c, order: "desc" } : { key: c, order: "asc" };
69
69
  }
70
- function _(f) {
71
- if (!r.value) return f;
70
+ function _(c) {
71
+ if (!r.value) return c;
72
72
  const { key: v, order: T } = r.value;
73
- return [...f].sort((P, M) => {
74
- const p = P[v], u = M[v];
75
- if (p === u) return 0;
76
- if (p == null) return 1;
73
+ return [...c].sort((P, M) => {
74
+ const h = P[v], u = M[v];
75
+ if (h === u) return 0;
76
+ if (h == null) return 1;
77
77
  if (u == null) return -1;
78
- const m = String(p).localeCompare(String(u), void 0, {
78
+ const m = String(h).localeCompare(String(u), void 0, {
79
79
  numeric: !0
80
80
  });
81
81
  return T === "asc" ? m : -m;
@@ -89,9 +89,9 @@ function Ut(a) {
89
89
  }
90
90
  function Yt() {
91
91
  function a(r, d, _) {
92
- const f = (_ || "").trim().toLowerCase();
93
- return f ? r.filter((v) => (d && d.length ? d.map((P) => v[P]) : Object.values(v)).some(
94
- (P) => String(P ?? "").toLowerCase().includes(f)
92
+ const c = (_ || "").trim().toLowerCase();
93
+ return c ? r.filter((v) => (d && d.length ? d.map((P) => v[P]) : Object.values(v)).some(
94
+ (P) => String(P ?? "").toLowerCase().includes(c)
95
95
  )) : r;
96
96
  }
97
97
  return {
@@ -105,13 +105,13 @@ function Qt() {
105
105
  });
106
106
  function r(v, T, P = 200) {
107
107
  const M = T.getBoundingClientRect();
108
- let p = M.left;
109
- p + P > window.innerWidth - 8 && (p = window.innerWidth - P + 8), a.value = {
108
+ let h = M.left;
109
+ h + P > window.innerWidth - 8 && (h = window.innerWidth - P + 8), a.value = {
110
110
  rowIndex: v,
111
111
  position: {
112
112
  top: M.bottom,
113
113
  // 4px below trigger
114
- left: p
114
+ left: h
115
115
  }
116
116
  };
117
117
  }
@@ -124,13 +124,13 @@ function Qt() {
124
124
  function _(v) {
125
125
  return a.value.rowIndex === v;
126
126
  }
127
- function f(v) {
127
+ function c(v) {
128
128
  v.key === "Escape" && a.value.rowIndex !== null && d();
129
129
  }
130
130
  return de(() => {
131
- document.addEventListener("keydown", f);
131
+ document.addEventListener("keydown", c);
132
132
  }), ge(() => {
133
- document.removeEventListener("keydown", f);
133
+ document.removeEventListener("keydown", c);
134
134
  }), {
135
135
  menuState: a,
136
136
  openMenu: r,
@@ -139,112 +139,112 @@ function Qt() {
139
139
  };
140
140
  }
141
141
  function Xt(a, r) {
142
- const d = b(!1), _ = b(null), f = b([]), v = b(void 0);
142
+ const d = b(!1), _ = b(null), c = b([]), v = b(void 0);
143
143
  let T = null;
144
- function P(c) {
145
- const g = new URLSearchParams();
146
- if (c.search && g.append("search", c.search), c.page !== void 0 && g.append("page", String(c.page)), c.perPage !== void 0 && g.append("per_page", String(c.perPage)), c.sort && (g.append("sort", c.sort.key), g.append("order", c.sort.order)), c.filters && c.filters.length > 0 && c.filters.forEach((C) => {
144
+ function P(f) {
145
+ const p = new URLSearchParams();
146
+ if (f.search && p.append("search", f.search), f.page !== void 0 && p.append("page", String(f.page)), f.perPage !== void 0 && p.append("per_page", String(f.perPage)), f.sort && (p.append("sort", f.sort.key), p.append("order", f.sort.order)), f.filters && f.filters.length > 0 && f.filters.forEach((C) => {
147
147
  if (C.value !== void 0 && C.value !== null && C.value !== "") {
148
148
  const L = `filters[${C.key}]`;
149
- Array.isArray(C.value) ? C.value.forEach((A) => g.append(`${L}[]`, String(A))) : g.append(L, String(C.value));
149
+ Array.isArray(C.value) ? C.value.forEach((A) => p.append(`${L}[]`, String(A))) : p.append(L, String(C.value));
150
150
  }
151
- }), c.tabName && g.append("tabName", c.tabName), r != null && r.additionalParams) {
152
- const C = typeof r.additionalParams == "function" ? r.additionalParams(c) : r.additionalParams;
151
+ }), r != null && r.additionalParams) {
152
+ const C = typeof r.additionalParams == "function" ? r.additionalParams(f) : r.additionalParams;
153
153
  Object.entries(C).forEach(([L, A]) => {
154
- A != null && A !== "" && (Array.isArray(A) ? A.forEach((N) => g.append(`${L}[]`, String(N))) : g.append(L, String(A)));
154
+ A != null && A !== "" && (Array.isArray(A) ? A.forEach((N) => p.append(`${L}[]`, String(N))) : p.append(L, String(A)));
155
155
  });
156
156
  }
157
- return g;
157
+ return p;
158
158
  }
159
- function M(c) {
160
- var g, C, L;
161
- return r != null && r.bodyBuilder ? r.bodyBuilder(c) : {
162
- search: c.search,
163
- page: c.page,
164
- per_page: c.perPage,
165
- sort: (g = c.sort) == null ? void 0 : g.key,
166
- order: (C = c.sort) == null ? void 0 : C.order,
167
- tabName: c.tabName,
168
- filters: (L = c.filters) == null ? void 0 : L.reduce(
159
+ function M(f) {
160
+ var p, C, L;
161
+ return r != null && r.bodyBuilder ? r.bodyBuilder(f) : {
162
+ search: f.search,
163
+ page: f.page,
164
+ per_page: f.perPage,
165
+ sort: (p = f.sort) == null ? void 0 : p.key,
166
+ order: (C = f.sort) == null ? void 0 : C.order,
167
+ // tabName: context.tabName,
168
+ filters: (L = f.filters) == null ? void 0 : L.reduce(
169
169
  (A, N) => (N.value !== void 0 && N.value !== null && N.value !== "" && (A[N.key] = N.value), A),
170
170
  {}
171
171
  ),
172
- ...typeof (r == null ? void 0 : r.additionalParams) == "function" ? r.additionalParams(c) : (r == null ? void 0 : r.additionalParams) || {}
172
+ ...typeof (r == null ? void 0 : r.additionalParams) == "function" ? r.additionalParams(f) : (r == null ? void 0 : r.additionalParams) || {}
173
173
  };
174
174
  }
175
- function p() {
176
- const c = {
175
+ function h() {
176
+ const f = {
177
177
  "Content-Type": "application/json",
178
178
  ...(r == null ? void 0 : r.headers) || {}
179
179
  };
180
180
  if (r != null && r.getAuthToken) {
181
- const g = r.getAuthToken();
182
- g && (c.Authorization = `Bearer ${g}`);
181
+ const p = r.getAuthToken();
182
+ p && (f.Authorization = `Bearer ${p}`);
183
183
  }
184
- return c;
184
+ return f;
185
185
  }
186
- function u(c) {
186
+ function u(f) {
187
187
  if (r != null && r.responseTransformer)
188
- return r.responseTransformer(c);
189
- const g = c;
188
+ return r.responseTransformer(f);
189
+ const p = f;
190
190
  return {
191
- data: g.data || g.rows || [],
192
- meta: g.meta
191
+ data: p.data || p.rows || [],
192
+ meta: p.meta
193
193
  };
194
194
  }
195
- async function m(c) {
195
+ async function m(f) {
196
196
  if (!a) {
197
197
  _.value = new Error("API URL is required");
198
198
  return;
199
199
  }
200
200
  d.value = !0, _.value = null;
201
201
  try {
202
- const g = (r == null ? void 0 : r.method) || "GET", C = p();
202
+ const p = (r == null ? void 0 : r.method) || "GET", C = h();
203
203
  let L = a, A;
204
- if (g === "GET") {
205
- const ee = r != null && r.paramsBuilder ? r.paramsBuilder(c) : P(c);
204
+ if (p === "GET") {
205
+ const ee = r != null && r.paramsBuilder ? r.paramsBuilder(f) : P(f);
206
206
  if (ee instanceof URLSearchParams) {
207
207
  const H = ee.toString();
208
208
  L = H ? `${a}?${H}` : a;
209
209
  } else {
210
210
  const H = new URLSearchParams();
211
211
  Object.entries(ee).forEach(([Y, I]) => {
212
- I != null && I !== "" && (Array.isArray(I) ? I.forEach((ae) => H.append(`${Y}[]`, String(ae))) : H.append(Y, String(I)));
212
+ I != null && I !== "" && (Array.isArray(I) ? I.forEach((oe) => H.append(`${Y}[]`, String(oe))) : H.append(Y, String(I)));
213
213
  });
214
- const ie = H.toString();
215
- L = ie ? `${a}?${ie}` : a;
214
+ const ae = H.toString();
215
+ L = ae ? `${a}?${ae}` : a;
216
216
  }
217
217
  } else
218
- A = M(c);
218
+ A = M(f);
219
219
  const N = await fetch(L, {
220
- method: g,
220
+ method: p,
221
221
  headers: C,
222
222
  body: A ? JSON.stringify(A) : void 0
223
223
  });
224
224
  if (!N.ok)
225
225
  throw new Error(`API request failed: ${N.status} ${N.statusText}`);
226
- const he = await N.json(), se = u(he);
227
- f.value = se.data, v.value = se.meta;
228
- } catch (g) {
229
- _.value = g instanceof Error ? g : new Error("Unknown error occurred"), f.value = [], v.value = void 0;
226
+ const he = await N.json(), ie = u(he);
227
+ c.value = ie.data, v.value = ie.meta;
228
+ } catch (p) {
229
+ _.value = p instanceof Error ? p : new Error("Unknown error occurred"), c.value = [], v.value = void 0;
230
230
  } finally {
231
231
  d.value = !1;
232
232
  }
233
233
  }
234
- function S(c, g = !1) {
234
+ function S(f, p = !1) {
235
235
  T && (clearTimeout(T), T = null);
236
236
  const C = (r == null ? void 0 : r.debounceMs) ?? 300;
237
- g || !c.search ? m(c) : T = setTimeout(() => {
238
- m(c);
237
+ p || !f.search ? m(f) : T = setTimeout(() => {
238
+ m(f);
239
239
  }, C);
240
240
  }
241
- function w(c) {
242
- S(c, !0);
241
+ function w(f) {
242
+ S(f, !0);
243
243
  }
244
244
  return {
245
245
  loading: k(() => d.value),
246
246
  error: k(() => _.value),
247
- data: k(() => f.value),
247
+ data: k(() => c.value),
248
248
  paginationMeta: k(() => v.value),
249
249
  fetchData: m,
250
250
  fetchDataDebounced: S,
@@ -252,46 +252,46 @@ function Xt(a, r) {
252
252
  };
253
253
  }
254
254
  function en(a, r) {
255
- var M, p;
256
- const d = (r == null ? void 0 : r.search) || b(void 0), _ = (r == null ? void 0 : r.filters) || b(a.filters), f = (r == null ? void 0 : r.sort) || b(a.sort), v = (r == null ? void 0 : r.pagination) || b({
255
+ var M, h;
256
+ const d = (r == null ? void 0 : r.search) || b(void 0), _ = (r == null ? void 0 : r.filters) || b(a.filters), c = (r == null ? void 0 : r.sort) || b(a.sort), v = (r == null ? void 0 : r.pagination) || b({
257
257
  page: ((M = a.paginationMeta) == null ? void 0 : M.currentPage) || 1,
258
- perPage: ((p = a.paginationMeta) == null ? void 0 : p.perPage) || 20
258
+ perPage: ((h = a.paginationMeta) == null ? void 0 : h.perPage) || 20
259
259
  }), T = (r == null ? void 0 : r.extraState) || b(void 0), P = (r == null ? void 0 : r.tabName) || b(void 0);
260
260
  if (a.apiConfig && a.searchMode === "server") {
261
261
  let u = function() {
262
- var g, C;
262
+ var p, C;
263
263
  return {
264
264
  search: d.value,
265
265
  filters: _.value,
266
- sort: f.value,
267
- page: (g = v.value) == null ? void 0 : g.page,
266
+ sort: c.value,
267
+ page: (p = v.value) == null ? void 0 : p.page,
268
268
  perPage: (C = v.value) == null ? void 0 : C.perPage,
269
269
  extraState: T.value,
270
270
  tabName: P.value
271
271
  };
272
- }, m = function(g) {
272
+ }, m = function(p) {
273
273
  var C, L, A, N;
274
- return c ? g.search !== c.search || g.page !== c.page || g.perPage !== c.perPage || g.tabName !== c.tabName || ((C = g.sort) == null ? void 0 : C.key) !== ((L = c.sort) == null ? void 0 : L.key) || ((A = g.sort) == null ? void 0 : A.order) !== ((N = c.sort) == null ? void 0 : N.order) || JSON.stringify(g.filters) !== JSON.stringify(c.filters) || JSON.stringify(g.extraState) !== JSON.stringify(c.extraState) : !0;
274
+ return f ? p.search !== f.search || p.page !== f.page || p.perPage !== f.perPage || p.tabName !== f.tabName || ((C = p.sort) == null ? void 0 : C.key) !== ((L = f.sort) == null ? void 0 : L.key) || ((A = p.sort) == null ? void 0 : A.order) !== ((N = f.sort) == null ? void 0 : N.order) || JSON.stringify(p.filters) !== JSON.stringify(f.filters) || JSON.stringify(p.extraState) !== JSON.stringify(f.extraState) : !0;
275
275
  };
276
276
  const S = Xt(a.apiConfig.apiUrl, a.apiConfig);
277
- let w = !1, c = null;
277
+ let w = !1, f = null;
278
278
  return j(
279
- [d, _, f, v, T, P],
279
+ [d, _, c, v, T, P],
280
280
  () => {
281
281
  if (w)
282
282
  return;
283
- const g = u();
284
- if (!m(g))
283
+ const p = u();
284
+ if (!m(p))
285
285
  return;
286
- c = g;
286
+ f = p;
287
287
  const C = d.value !== void 0;
288
- S.fetchDataDebounced(g, !C);
288
+ S.fetchDataDebounced(p, !C);
289
289
  },
290
290
  { immediate: !0, deep: !0 }
291
- ), j(S.paginationMeta, (g) => {
292
- if (g && v.value) {
293
- const C = g.perPage || v.value.perPage;
294
- C !== v.value.perPage && (w = !0, v.value.perPage = C, He(() => {
291
+ ), j(S.paginationMeta, (p) => {
292
+ if (p && v.value) {
293
+ const C = p.perPage || v.value.perPage;
294
+ C !== v.value.perPage && (w = !0, v.value.perPage = C, Re(() => {
295
295
  w = !1;
296
296
  }));
297
297
  }
@@ -302,16 +302,16 @@ function en(a, r) {
302
302
  paginationMeta: S.paginationMeta,
303
303
  refresh: () => {
304
304
  var C, L;
305
- const g = {
305
+ const p = {
306
306
  search: d.value,
307
307
  filters: _.value,
308
- sort: f.value,
308
+ sort: c.value,
309
309
  page: (C = v.value) == null ? void 0 : C.page,
310
310
  perPage: (L = v.value) == null ? void 0 : L.perPage,
311
311
  extraState: T.value,
312
312
  tabName: P.value
313
313
  };
314
- S.refresh(g);
314
+ S.refresh(p);
315
315
  }
316
316
  };
317
317
  }
@@ -324,7 +324,7 @@ function en(a, r) {
324
324
  }
325
325
  };
326
326
  }
327
- const tn = { class: "shifl-column-manager__header" }, nn = { class: "shifl-column-manager__title-wrapper" }, rn = { class: "shifl-column-manager__title" }, sn = { key: 0 }, an = { key: 1 }, on = { class: "shifl-column-manager__controls" }, ln = { class: "shifl-column-manager__controls-left" }, un = { class: "shifl-column-manager__content" }, cn = { class: "shifl-column-manager__list" }, fn = ["draggable", "onDragstart", "onDragover", "onDrop"], dn = ["aria-label", "disabled"], gn = ["checked", "disabled", "onChange"], hn = { class: "shifl-column-manager__label-text" }, pn = { class: "shifl-column-manager__footer" }, mn = /* @__PURE__ */ De({
327
+ const tn = { class: "shifl-column-manager__header" }, nn = { class: "shifl-column-manager__title-wrapper" }, rn = { class: "shifl-column-manager__title" }, sn = { key: 0 }, an = { key: 1 }, on = { class: "shifl-column-manager__controls" }, ln = { class: "shifl-column-manager__controls-left" }, un = { class: "shifl-column-manager__content" }, cn = { class: "shifl-column-manager__list" }, fn = ["draggable", "onDragstart", "onDragover", "onDrop"], dn = ["aria-label", "disabled"], gn = ["checked", "disabled", "onChange"], hn = { class: "shifl-column-manager__label-text" }, pn = { class: "shifl-column-manager__footer" }, mn = /* @__PURE__ */ ze({
328
328
  __name: "GridColumnManager",
329
329
  props: {
330
330
  titlePrefix: {},
@@ -332,65 +332,65 @@ const tn = { class: "shifl-column-manager__header" }, nn = { class: "shifl-colum
332
332
  },
333
333
  emits: ["close", "toggle", "move", "toggleFreeze", "selectAll", "deselectAll", "restoreDefault"],
334
334
  setup(a, { emit: r }) {
335
- const d = a, _ = k(() => d.columns), f = r, v = b(null);
336
- function T(p) {
335
+ const d = a, _ = k(() => d.columns), c = r, v = b(null);
336
+ function T(h) {
337
337
  var u, m;
338
- (u = d.columns[p]) != null && u.freeze || (m = d.columns[p]) != null && m.protected || (v.value = p);
338
+ (u = d.columns[h]) != null && u.freeze || (m = d.columns[h]) != null && m.protected || (v.value = h);
339
339
  }
340
- function P(p) {
340
+ function P(h) {
341
341
  }
342
- function M(p) {
343
- v.value === null || v.value === p || (f("move", v.value, p), v.value = null);
342
+ function M(h) {
343
+ v.value === null || v.value === h || (c("move", v.value, h), v.value = null);
344
344
  }
345
- return (p, u) => (o(), l("div", {
345
+ return (h, u) => (o(), l("div", {
346
346
  class: "shifl-column-manager__backdrop",
347
- onClick: u[7] || (u[7] = q((m) => p.$emit("close"), ["self"]))
347
+ onClick: u[7] || (u[7] = q((m) => h.$emit("close"), ["self"]))
348
348
  }, [
349
- h("div", {
349
+ g("div", {
350
350
  class: "shifl-column-manager__dialog",
351
351
  role: "dialog",
352
352
  "aria-modal": "true",
353
353
  onClick: u[6] || (u[6] = q(() => {
354
354
  }, ["stop"]))
355
355
  }, [
356
- h("header", tn, [
357
- h("div", nn, [
358
- h("h2", rn, [
356
+ g("header", tn, [
357
+ g("div", nn, [
358
+ g("h2", rn, [
359
359
  a.titlePrefix ? (o(), l("span", sn, $(a.titlePrefix), 1)) : D("", !0),
360
360
  a.titlePrefix ? (o(), l("span", an, ">")) : D("", !0),
361
- u[8] || (u[8] = re("Edit Columns ", -1))
361
+ u[8] || (u[8] = se("Edit Columns ", -1))
362
362
  ])
363
363
  ]),
364
- h("button", {
364
+ g("button", {
365
365
  type: "button",
366
366
  class: "shifl-column-manager__close",
367
- onClick: u[0] || (u[0] = (m) => p.$emit("close"))
367
+ onClick: u[0] || (u[0] = (m) => h.$emit("close"))
368
368
  }, [...u[9] || (u[9] = [
369
- h("span", null, "✕", -1)
369
+ g("span", null, "✕", -1)
370
370
  ])])
371
371
  ]),
372
- h("div", on, [
373
- h("div", ln, [
374
- h("button", {
372
+ g("div", on, [
373
+ g("div", ln, [
374
+ g("button", {
375
375
  type: "button",
376
376
  class: "shifl-column-manager__link-button",
377
- onClick: u[1] || (u[1] = (m) => p.$emit("selectAll"))
377
+ onClick: u[1] || (u[1] = (m) => h.$emit("selectAll"))
378
378
  }, " Select All "),
379
- h("button", {
379
+ g("button", {
380
380
  type: "button",
381
381
  class: "shifl-column-manager__link-button",
382
- onClick: u[2] || (u[2] = (m) => p.$emit("deselectAll"))
382
+ onClick: u[2] || (u[2] = (m) => h.$emit("deselectAll"))
383
383
  }, " Deselect All ")
384
384
  ]),
385
- h("button", {
385
+ g("button", {
386
386
  type: "button",
387
387
  class: "shifl-column-manager__link-button shifl-column-manager__link-button--primary",
388
- onClick: u[3] || (u[3] = (m) => p.$emit("restoreDefault"))
388
+ onClick: u[3] || (u[3] = (m) => h.$emit("restoreDefault"))
389
389
  }, " Restore Default ")
390
390
  ]),
391
- h("div", un, [
392
- h("ul", cn, [
393
- (o(!0), l(R, null, V(_.value, (m, S) => (o(), l("li", {
391
+ g("div", un, [
392
+ g("ul", cn, [
393
+ (o(!0), l(x, null, V(_.value, (m, S) => (o(), l("li", {
394
394
  key: m.key,
395
395
  class: G(["shifl-column-manager__item", {
396
396
  "shifl-column-manager__item--disabled": m.freeze || m.protected
@@ -400,7 +400,7 @@ const tn = { class: "shifl-column-manager__header" }, nn = { class: "shifl-colum
400
400
  onDragover: q((w) => void 0, ["prevent"]),
401
401
  onDrop: q((w) => M(S), ["prevent"])
402
402
  }, [
403
- h("button", {
403
+ g("button", {
404
404
  type: "button",
405
405
  class: G(["shifl-column-manager__drag-handle", {
406
406
  "shifl-column-manager__drag-handle--disabled": m.freeze || m.protected
@@ -408,36 +408,36 @@ const tn = { class: "shifl-column-manager__header" }, nn = { class: "shifl-colum
408
408
  "aria-label": `Move ${m.label}`,
409
409
  disabled: m.freeze || m.protected
410
410
  }, [...u[10] || (u[10] = [
411
- h("span", null, "⋮⋮", -1)
411
+ g("span", null, "⋮⋮", -1)
412
412
  ])], 10, dn),
413
- h("label", {
413
+ g("label", {
414
414
  class: G(["shifl-column-manager__checkbox-label", {
415
415
  "shifl-column-manager__checkbox-label--disabled": m.freeze || m.protected
416
416
  }])
417
417
  }, [
418
- h("input", {
418
+ g("input", {
419
419
  type: "checkbox",
420
420
  class: "shifl-column-manager__checkbox",
421
421
  checked: m.visible,
422
422
  disabled: m.freeze || m.protected,
423
- onChange: (w) => p.$emit("toggle", m.key)
423
+ onChange: (w) => h.$emit("toggle", m.key)
424
424
  }, null, 40, gn),
425
- u[11] || (u[11] = h("span", { class: "shifl-column-manager__checkbox-custom" }, null, -1)),
426
- h("span", hn, $(m.label), 1)
425
+ u[11] || (u[11] = g("span", { class: "shifl-column-manager__checkbox-custom" }, null, -1)),
426
+ g("span", hn, $(m.label), 1)
427
427
  ], 2)
428
428
  ], 42, fn))), 128))
429
429
  ])
430
430
  ]),
431
- h("footer", pn, [
432
- h("button", {
431
+ g("footer", pn, [
432
+ g("button", {
433
433
  type: "button",
434
434
  class: "shifl-column-manager__button shifl-column-manager__button--primary",
435
- onClick: u[4] || (u[4] = (m) => p.$emit("close"))
435
+ onClick: u[4] || (u[4] = (m) => h.$emit("close"))
436
436
  }, " Update "),
437
- h("button", {
437
+ g("button", {
438
438
  type: "button",
439
439
  class: "shifl-column-manager__button shifl-column-manager__button--secondary",
440
- onClick: u[5] || (u[5] = (m) => p.$emit("close"))
440
+ onClick: u[5] || (u[5] = (m) => h.$emit("close"))
441
441
  }, " Cancel ")
442
442
  ])
443
443
  ])
@@ -445,10 +445,10 @@ const tn = { class: "shifl-column-manager__header" }, nn = { class: "shifl-colum
445
445
  }
446
446
  }), U = (a, r) => {
447
447
  const d = a.__vccOpts || a;
448
- for (const [_, f] of r)
449
- d[_] = f;
448
+ for (const [_, c] of r)
449
+ d[_] = c;
450
450
  return d;
451
- }, vn = /* @__PURE__ */ U(mn, [["__scopeId", "data-v-40ca0ed0"]]), _n = { class: "shifl-grid__tooltip-content" }, yn = ["innerHTML"], bn = /* @__PURE__ */ De({
451
+ }, vn = /* @__PURE__ */ U(mn, [["__scopeId", "data-v-40ca0ed0"]]), _n = { class: "shifl-grid__tooltip-content" }, yn = ["innerHTML"], bn = /* @__PURE__ */ ze({
452
452
  __name: "GridTooltip",
453
453
  props: {
454
454
  content: {},
@@ -457,33 +457,33 @@ const tn = { class: "shifl-column-manager__header" }, nn = { class: "shifl-colum
457
457
  isHtml: { type: Boolean }
458
458
  },
459
459
  setup(a) {
460
- const r = a, d = b(null), _ = b({}), f = k(() => r.content.includes(`
461
- `)), v = k(() => f.value ? r.content.split(`
462
- `).filter((p) => p.trim().length > 0) : []), T = b("top"), P = b({});
460
+ const r = a, d = b(null), _ = b({}), c = k(() => r.content.includes(`
461
+ `)), v = k(() => c.value ? r.content.split(`
462
+ `).filter((h) => h.trim().length > 0) : []), T = b("top"), P = b({});
463
463
  function M() {
464
464
  if (!r.triggerElement || !d.value) return;
465
- const p = r.triggerElement.getBoundingClientRect(), u = d.value.getBoundingClientRect(), m = window.innerWidth, S = window.innerHeight;
466
- let w = p.bottom + 8, c = p.left + window.scrollX;
467
- c + u.width > m - 16 && (c = m - u.width - 16), c < 16 && (c = 16), w + u.height > S - 16 ? (w = p.top - u.height - 8, T.value = "bottom") : T.value = "top", _.value = {
465
+ const h = r.triggerElement.getBoundingClientRect(), u = d.value.getBoundingClientRect(), m = window.innerWidth, S = window.innerHeight;
466
+ let w = h.bottom + 8, f = h.left + window.scrollX;
467
+ f + u.width > m - 16 && (f = m - u.width - 16), f < 16 && (f = 16), w + u.height > S - 16 ? (w = h.top - u.height - 8, T.value = "bottom") : T.value = "top", _.value = {
468
468
  position: "fixed",
469
469
  top: `${w}px`,
470
- left: `${c}px`,
470
+ left: `${f}px`,
471
471
  zIndex: "10000"
472
472
  };
473
- const g = p.left + p.width / 2 - c;
473
+ const p = h.left + h.width / 2 - f;
474
474
  P.value = {
475
- left: `${g}px`
475
+ left: `${p}px`
476
476
  };
477
477
  }
478
478
  return j(
479
479
  () => r.visible,
480
- async (p) => {
481
- p && (await He(), M());
480
+ async (h) => {
481
+ h && (await Re(), M());
482
482
  }
483
483
  ), de(() => {
484
- r.visible && He(() => M());
484
+ r.visible && Re(() => M());
485
485
  }), ge(() => {
486
- }), (p, u) => (o(), Z(ze, { to: "body" }, [
486
+ }), (h, u) => (o(), Z(He, { to: "body" }, [
487
487
  a.visible ? (o(), l("div", {
488
488
  key: 0,
489
489
  ref_key: "tooltipRef",
@@ -491,19 +491,19 @@ const tn = { class: "shifl-column-manager__header" }, nn = { class: "shifl-colum
491
491
  class: "shifl-grid__tooltip",
492
492
  style: K(_.value)
493
493
  }, [
494
- h("div", {
494
+ g("div", {
495
495
  class: G(["shifl-grid__tooltip-arrow", T.value]),
496
496
  style: K(P.value)
497
497
  }, null, 6),
498
- h("div", _n, [
498
+ g("div", _n, [
499
499
  a.isHtml ? (o(), l("div", {
500
500
  key: 0,
501
501
  innerHTML: a.content
502
- }, null, 8, yn)) : f.value ? (o(!0), l(R, { key: 1 }, V(v.value, (m, S) => (o(), l("div", {
502
+ }, null, 8, yn)) : c.value ? (o(!0), l(x, { key: 1 }, V(v.value, (m, S) => (o(), l("div", {
503
503
  key: S,
504
504
  class: "shifl-grid__tooltip-line"
505
- }, $(m), 1))), 128)) : (o(), l(R, { key: 2 }, [
506
- re($(a.content), 1)
505
+ }, $(m), 1))), 128)) : (o(), l(x, { key: 2 }, [
506
+ se($(a.content), 1)
507
507
  ], 64))
508
508
  ])
509
509
  ], 4)) : D("", !0)
@@ -519,7 +519,7 @@ const tn = { class: "shifl-column-manager__header" }, nn = { class: "shifl-colum
519
519
  };
520
520
  function wn(a, r) {
521
521
  return o(), l("svg", Mn, [...r[0] || (r[0] = [
522
- h("path", {
522
+ g("path", {
523
523
  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",
524
524
  fill: "#05963F"
525
525
  }, null, -1)
@@ -534,7 +534,7 @@ const Sn = /* @__PURE__ */ U(Cn, [["render", wn]]), Tn = {}, Pn = {
534
534
  };
535
535
  function $n(a, r) {
536
536
  return o(), l("svg", Pn, [...r[0] || (r[0] = [
537
- h("path", {
537
+ g("path", {
538
538
  "fill-rule": "evenodd",
539
539
  "clip-rule": "evenodd",
540
540
  d: "M0 0.666667C0 0.298477 0.314186 2.98023e-08 0.701754 2.98023e-08H4.2807C4.66827 2.98023e-08 4.98246 0.298477 4.98246 0.666667C4.98246 1.03486 4.66827 1.33333 4.2807 1.33333H0.701754C0.314186 1.33333 0 1.03486 0 0.666667ZM10.0301 0.195262C10.3042 -0.0650874 10.7485 -0.0650874 11.0225 0.195262L13.1278 2.19526C13.4018 2.45561 13.4018 2.87772 13.1278 3.13807C12.8537 3.39842 12.4094 3.39842 12.1354 3.13807L11.2281 2.27614V8.66667C11.2281 9.03486 10.9139 9.33333 10.5263 9.33333C10.1387 9.33333 9.82456 9.03486 9.82456 8.66667V2.27614L8.91727 3.13807C8.64322 3.39842 8.19889 3.39842 7.92484 3.13807C7.65079 2.87772 7.65079 2.45561 7.92484 2.19526L10.0301 0.195262ZM0 4.66667C0 4.29848 0.314186 4 0.701754 4H5.61404C6.0016 4 6.31579 4.29848 6.31579 4.66667C6.31579 5.03486 6.0016 5.33333 5.61404 5.33333H0.701754C0.314186 5.33333 0 5.03486 0 4.66667ZM0 8.66667C0 8.29848 0.314186 8 0.701754 8H7.01754C7.40511 8 7.7193 8.29848 7.7193 8.66667C7.7193 9.03486 7.40511 9.33333 7.01754 9.33333H0.701754C0.314186 9.33333 0 9.03486 0 8.66667Z",
@@ -549,15 +549,15 @@ const Ln = /* @__PURE__ */ U(Tn, [["render", $n]]), An = {}, Nn = {
549
549
  fill: "none",
550
550
  xmlns: "http://www.w3.org/2000/svg"
551
551
  };
552
- function Rn(a, r) {
552
+ function xn(a, r) {
553
553
  return o(), l("svg", Nn, [...r[0] || (r[0] = [
554
- h("path", {
554
+ g("path", {
555
555
  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",
556
556
  fill: "#1A6D9E"
557
557
  }, null, -1)
558
558
  ])]);
559
559
  }
560
- const xn = /* @__PURE__ */ U(An, [["render", Rn]]), Hn = {}, zn = {
560
+ const Rn = /* @__PURE__ */ U(An, [["render", xn]]), Hn = {}, zn = {
561
561
  width: "21",
562
562
  height: "13",
563
563
  viewBox: "0 0 21 13",
@@ -566,13 +566,13 @@ const xn = /* @__PURE__ */ U(An, [["render", Rn]]), Hn = {}, zn = {
566
566
  };
567
567
  function Dn(a, r) {
568
568
  return o(), l("svg", zn, [...r[0] || (r[0] = [
569
- h("path", {
569
+ g("path", {
570
570
  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",
571
571
  fill: "#9CA5B4"
572
572
  }, null, -1)
573
573
  ])]);
574
574
  }
575
- const ot = /* @__PURE__ */ U(Hn, [["render", Dn]]), En = {}, Vn = {
575
+ const lt = /* @__PURE__ */ U(Hn, [["render", Dn]]), En = {}, Vn = {
576
576
  width: "16",
577
577
  height: "16",
578
578
  viewBox: "0 0 16 16",
@@ -581,7 +581,7 @@ const ot = /* @__PURE__ */ U(Hn, [["render", Dn]]), En = {}, Vn = {
581
581
  };
582
582
  function Bn(a, r) {
583
583
  return o(), l("svg", Vn, [...r[0] || (r[0] = [
584
- h("path", {
584
+ g("path", {
585
585
  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",
586
586
  fill: "#69758C"
587
587
  }, null, -1)
@@ -626,7 +626,7 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
626
626
  }, mr = { class: "shifl-grid__pagination-left" }, vr = { class: "shifl-grid__pagination-range" }, _r = { class: "shifl-grid__pagination-range-numbers" }, yr = { class: "shifl-grid__pagination-right" }, br = { class: "shifl-grid__pagination-rows" }, kr = ["value", "disabled"], Cr = { class: "shifl-grid__pagination-nav" }, Mr = ["disabled"], wr = { class: "shifl-grid__pagination-pages" }, Sr = ["disabled", "onClick"], Tr = {
627
627
  key: 1,
628
628
  class: "shifl-grid__pagination-ellipsis"
629
- }, Pr = ["disabled"], $r = ["onClick"], Lr = ["innerHTML"], Ar = /* @__PURE__ */ De({
629
+ }, Pr = ["disabled"], $r = ["onClick"], Lr = ["innerHTML"], Ar = /* @__PURE__ */ ze({
630
630
  __name: "ShiflGrid",
631
631
  props: {
632
632
  config: {},
@@ -635,52 +635,52 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
635
635
  },
636
636
  emits: ["action-click", "search-change", "pagination-change"],
637
637
  setup(a, { emit: r }) {
638
- var nt, rt, st, it, at;
639
- const d = a, _ = r, f = k(() => Jt(d.config)), v = b(d.search), T = b(f.value.filters), P = b(f.value.sort), M = b({
640
- page: ((nt = f.value.paginationMeta) == null ? void 0 : nt.currentPage) || 1,
641
- perPage: ((rt = f.value.paginationMeta) == null ? void 0 : rt.perPage) || 20
642
- }), p = b(
643
- typeof ((st = f.value.apiConfig) == null ? void 0 : st.additionalParams) == "function" || (at = (it = f.value.apiConfig) == null ? void 0 : it.additionalParams) == null ? void 0 : at.tabName
644
- ), u = en(f.value, {
638
+ var rt, st, it, at, ot;
639
+ const d = a, _ = r, c = k(() => Jt(d.config)), v = b(d.search), T = b(c.value.filters), P = b(c.value.sort), M = b({
640
+ page: ((rt = c.value.paginationMeta) == null ? void 0 : rt.currentPage) || 1,
641
+ perPage: ((st = c.value.paginationMeta) == null ? void 0 : st.perPage) || 20
642
+ }), h = b(
643
+ typeof ((it = c.value.apiConfig) == null ? void 0 : it.additionalParams) == "function" || (ot = (at = c.value.apiConfig) == null ? void 0 : at.additionalParams) == null ? void 0 : ot.tabName
644
+ ), u = en(c.value, {
645
645
  search: v,
646
646
  filters: T,
647
647
  sort: P,
648
648
  pagination: M,
649
- tabName: p
650
- }), m = k(() => f.value.columns.filter((e) => !e.smartTrackingColumn)), {
649
+ tabName: h
650
+ }), m = k(() => c.value.columns.filter((e) => !e.smartTrackingColumn)), {
651
651
  columns: S,
652
652
  visibleColumns: w,
653
- toggleColumnVisibility: c,
654
- setAllVisible: g,
653
+ toggleColumnVisibility: f,
654
+ setAllVisible: p,
655
655
  toggleFreeze: C,
656
656
  moveColumn: L,
657
657
  resetColumns: A
658
- } = qt(m.value), { sort: N, setSort: he, applySort: se } = Ut(f.value.sort), { applyGlobalFilter: ee } = Yt(), { menuState: H, openMenu: ie, closeMenu: Y } = Qt(), I = b(!1), ae = b({}), Ee = b(null), Ve = b(null), pe = b(null), me = b(!1), Be = b(""), ve = b(null), _e = b(!1), ct = b({});
658
+ } = qt(m.value), { sort: N, setSort: he, applySort: ie } = Ut(c.value.sort), { applyGlobalFilter: ee } = Yt(), { menuState: H, openMenu: ae, closeMenu: Y } = Qt(), I = b(!1), oe = b({}), De = b(null), Ee = b(null), pe = b(null), me = b(!1), Ve = b(""), ve = b(null), _e = b(!1), ft = b({});
659
659
  b({});
660
660
  const Q = b(
661
661
  {}
662
662
  );
663
663
  j(
664
- () => f.value.filters,
664
+ () => c.value.filters,
665
665
  (e) => {
666
666
  T.value = e;
667
667
  },
668
668
  { deep: !0 }
669
669
  ), j(
670
- () => f.value.paginationMeta,
670
+ () => c.value.paginationMeta,
671
671
  (e) => {
672
- f.value.searchMode !== "server" && e && M.value && (M.value.page = e.currentPage || M.value.page, M.value.perPage = e.perPage || M.value.perPage);
672
+ c.value.searchMode !== "server" && e && M.value && (M.value.page = e.currentPage || M.value.page, M.value.perPage = e.perPage || M.value.perPage);
673
673
  },
674
674
  { deep: !0 }
675
675
  ), j(
676
- () => f.value.columns,
676
+ () => c.value.columns,
677
677
  (e) => {
678
678
  const t = e.filter((n) => !n.smartTrackingColumn);
679
679
  S.value = [...t];
680
680
  },
681
681
  { deep: !0 }
682
682
  ), j(
683
- () => f.value.sort,
683
+ () => c.value.sort,
684
684
  (e) => {
685
685
  e && (N.value = e, P.value = e);
686
686
  },
@@ -688,12 +688,12 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
688
688
  ), j(
689
689
  () => {
690
690
  var e;
691
- return (e = f.value.apiConfig) == null ? void 0 : e.additionalParams;
691
+ return (e = c.value.apiConfig) == null ? void 0 : e.additionalParams;
692
692
  },
693
693
  (e) => {
694
694
  if (e && typeof e != "function") {
695
695
  const t = e;
696
- t.tabName !== void 0 && p.value !== t.tabName && (p.value = t.tabName);
696
+ t.tabName !== void 0 && h.value !== t.tabName && (h.value = t.tabName);
697
697
  }
698
698
  },
699
699
  { deep: !0 }
@@ -701,9 +701,9 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
701
701
  () => d.search,
702
702
  (e, t) => {
703
703
  var n;
704
- if (v.value = e, f.value.searchMode === "server")
704
+ if (v.value = e, c.value.searchMode === "server")
705
705
  _("search-change", e || "");
706
- else if (f.value.searchMode === "client" && e !== t) {
706
+ else if (c.value.searchMode === "client" && e !== t) {
707
707
  const s = ((n = z.value) == null ? void 0 : n.perPage) || 20;
708
708
  M.value = { page: 1, perPage: s }, _("pagination-change", 1, s);
709
709
  }
@@ -716,15 +716,15 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
716
716
  }
717
717
  );
718
718
  const ye = k(() => u.rows.value || []), be = k(() => {
719
- if ((f.value.searchMode || "client") === "server")
719
+ if ((c.value.searchMode || "client") === "server")
720
720
  return ye.value;
721
721
  const t = d.search || "";
722
- return ee(ye.value, f.value.search, t);
722
+ return ee(ye.value, c.value.search, t);
723
723
  }), ke = k(() => {
724
724
  var t;
725
- return (f.value.searchMode || "client") === "client" ? be.value.length : ((t = u.paginationMeta.value) == null ? void 0 : t.total) || 0;
726
- }), Ce = k(() => (f.value.searchMode || "client") === "server" ? be.value : se(be.value)), Ge = k(() => {
727
- if ((f.value.searchMode || "client") === "server")
725
+ return (c.value.searchMode || "client") === "client" ? be.value.length : ((t = u.paginationMeta.value) == null ? void 0 : t.total) || 0;
726
+ }), Ce = k(() => (c.value.searchMode || "client") === "server" ? be.value : ie(be.value)), Be = k(() => {
727
+ if ((c.value.searchMode || "client") === "server")
728
728
  return Ce.value;
729
729
  const t = z.value;
730
730
  if (!t || !t.show)
@@ -733,27 +733,27 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
733
733
  return Ce.value.slice(i, y);
734
734
  }), z = k(() => {
735
735
  var e;
736
- return f.value.searchMode === "server" && u.paginationMeta.value ? {
736
+ return c.value.searchMode === "server" && u.paginationMeta.value ? {
737
737
  show: !0,
738
738
  // Default to showing pagination
739
739
  ...u.paginationMeta.value,
740
740
  currentPage: ((e = M.value) == null ? void 0 : e.page) || u.paginationMeta.value.currentPage || 1
741
- } : f.value.paginationMeta;
742
- }), W = k(() => d.loading !== void 0 ? d.loading : u.loading.value), ft = k(() => {
741
+ } : c.value.paginationMeta;
742
+ }), W = k(() => d.loading !== void 0 ? d.loading : u.loading.value), dt = k(() => {
743
743
  var e;
744
744
  return ((e = z.value) == null ? void 0 : e.perPage) === 100;
745
- }), dt = k(() => {
745
+ }), gt = k(() => {
746
746
  var e;
747
747
  return ((e = z.value) == null ? void 0 : e.perPage) || 10;
748
- }), Ie = k(() => {
748
+ }), Ge = k(() => {
749
749
  const e = z.value;
750
750
  if (!e || e.show === !1)
751
751
  return { from: 0, to: 0 };
752
752
  const t = ke.value, n = e.perPage || 20, s = e.currentPage || 1;
753
- if ((f.value.searchMode || "client") === "server" && e.from !== void 0 && e.to !== void 0)
753
+ if ((c.value.searchMode || "client") === "server" && e.from !== void 0 && e.to !== void 0)
754
754
  return { from: e.from, to: e.to };
755
- const y = (s - 1) * n + 1, x = Math.min(s * n, t);
756
- return t === 0 ? { from: 0, to: 0 } : { from: y, to: x };
755
+ const y = (s - 1) * n + 1, R = Math.min(s * n, t);
756
+ return t === 0 ? { from: 0, to: 0 } : { from: y, to: R };
757
757
  }), J = k(() => {
758
758
  var e;
759
759
  return ((e = z.value) == null ? void 0 : e.currentPage) || 1;
@@ -764,7 +764,7 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
764
764
  if (t === 0) return 1;
765
765
  const n = e.perPage || 20, s = Math.ceil(t / n);
766
766
  return Math.max(1, s);
767
- }), Oe = k(() => J.value <= 1), Ze = k(() => J.value >= Me.value), gt = k(() => {
767
+ }), Ie = k(() => J.value <= 1), Oe = k(() => J.value >= Me.value), ht = k(() => {
768
768
  const e = Me.value, t = J.value, n = [];
769
769
  if (e <= 7)
770
770
  for (let s = 1; s <= e; s++)
@@ -785,42 +785,42 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
785
785
  }
786
786
  return n;
787
787
  });
788
- function ht(e) {
788
+ function pt(e) {
789
789
  var n;
790
790
  if (e < 1 || e > Me.value || e === J.value || W.value) return;
791
791
  const t = ((n = z.value) == null ? void 0 : n.perPage) || 20;
792
792
  M.value = { page: e, perPage: t }, _("pagination-change", e, t);
793
793
  }
794
- function pt() {
794
+ function mt() {
795
795
  var n;
796
- if (Oe.value || W.value) return;
796
+ if (Ie.value || W.value) return;
797
797
  const e = ((n = z.value) == null ? void 0 : n.perPage) || 20, t = J.value - 1;
798
798
  M.value = { page: t, perPage: e }, _("pagination-change", t, e);
799
799
  }
800
- function mt() {
800
+ function vt() {
801
801
  var n;
802
- if (Ze.value || W.value) return;
802
+ if (Oe.value || W.value) return;
803
803
  const e = ((n = z.value) == null ? void 0 : n.perPage) || 20, t = J.value + 1;
804
804
  M.value = { page: t, perPage: e }, _("pagination-change", t, e);
805
805
  }
806
- function vt(e) {
806
+ function _t(e) {
807
807
  var s;
808
808
  if (W.value) return;
809
809
  const t = e.target, n = parseInt(t.value, 10);
810
810
  n && n !== (((s = z.value) == null ? void 0 : s.perPage) || 20) && (M.value = { page: 1, perPage: n }, _("pagination-change", 1, n));
811
811
  }
812
- const _t = k(() => {
813
- const e = f.value.columns.find((n) => n.smartTrackingColumn);
812
+ const yt = k(() => {
813
+ const e = c.value.columns.find((n) => n.smartTrackingColumn);
814
814
  if (!(e != null && e.smartTrackingColumn)) return !1;
815
815
  const t = e.smartTrackingColumn.dataKey;
816
816
  return ye.value.some((n) => {
817
817
  const s = n[t];
818
818
  return s === !0 || s === 1 || s === "true" || s === "1";
819
819
  });
820
- }), we = k(() => f.value.columns.find((e) => e.smartTrackingColumn)), X = k(() => {
820
+ }), we = k(() => c.value.columns.find((e) => e.smartTrackingColumn)), X = k(() => {
821
821
  var n;
822
822
  const e = w.value.filter((s) => !s.smartTrackingColumn);
823
- if (_t.value && we.value) {
823
+ if (yt.value && we.value) {
824
824
  const s = {
825
825
  key: "_smart_tracking",
826
826
  label: "",
@@ -839,7 +839,7 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
839
839
  }
840
840
  const t = e.find((s) => s.key === "ref");
841
841
  return t && (t.freeze = !0, t.protected = !0), e;
842
- }), yt = k(() => {
842
+ }), bt = k(() => {
843
843
  let e = 0;
844
844
  const t = {};
845
845
  for (const n of X.value) {
@@ -848,40 +848,40 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
848
848
  Number.isNaN(s) || (e += s);
849
849
  }
850
850
  return t;
851
- }), je = b(0);
852
- function bt(e) {
851
+ }), Ze = b(0);
852
+ function kt(e) {
853
853
  const t = e.target;
854
- je.value = t.scrollLeft;
854
+ Ze.value = t.scrollLeft;
855
855
  }
856
- function kt(e) {
856
+ function Ct(e) {
857
857
  const t = S.value.find((n) => n.key === e);
858
- !(t != null && t.sortable) || ue(t) || Ne(t) || he(e);
858
+ !(t != null && t.sortable) || ue(t) || Ae(t) || he(e);
859
859
  }
860
860
  function Se(e, t) {
861
861
  if (e == null || e === "" || e === void 0)
862
- return oe(t.blankStyle);
862
+ return te(t.blankStyle);
863
863
  const n = t.cellType;
864
864
  if (Array.isArray(n)) {
865
865
  const s = n.find((i) => typeof i == "string" && i !== "icon");
866
- return s && typeof s == "string" ? Ye(e, s, t) : "";
866
+ return s && typeof s == "string" ? Ue(e, s, t) : "";
867
867
  }
868
868
  if (!n)
869
869
  return typeof e == "object" ? JSON.stringify(e) : String(e);
870
870
  switch (n) {
871
871
  case "number":
872
- return Fe(e);
872
+ return je(e);
873
873
  case "currency":
874
- return Ke(e);
874
+ return Fe(e);
875
875
  case "date":
876
- return We(e);
876
+ return Ke(e);
877
877
  case "boolean":
878
- return Je(e);
878
+ return We(e);
879
879
  case "text":
880
880
  default:
881
881
  return typeof e == "object" ? JSON.stringify(e) : String(e);
882
882
  }
883
883
  }
884
- function oe(e) {
884
+ function te(e) {
885
885
  switch (e) {
886
886
  case "dash":
887
887
  return "--";
@@ -894,13 +894,13 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
894
894
  return "";
895
895
  }
896
896
  }
897
- function Fe(e) {
897
+ function je(e) {
898
898
  if (typeof e == "number")
899
899
  return e.toLocaleString();
900
900
  const t = Number(e);
901
901
  return Number.isNaN(t) ? String(e) : t.toLocaleString();
902
902
  }
903
- function Ke(e) {
903
+ function Fe(e) {
904
904
  if (typeof e == "number")
905
905
  return new Intl.NumberFormat("en-US", {
906
906
  style: "currency",
@@ -912,7 +912,7 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
912
912
  currency: "USD"
913
913
  }).format(t);
914
914
  }
915
- function We(e) {
915
+ function Ke(e) {
916
916
  if (e instanceof Date)
917
917
  return e.toLocaleDateString();
918
918
  if (typeof e == "string") {
@@ -922,57 +922,57 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
922
922
  }
923
923
  return String(e);
924
924
  }
925
- function Je(e) {
925
+ function We(e) {
926
926
  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);
927
927
  }
928
- function Ct(e) {
928
+ function Mt(e) {
929
929
  if (typeof e == "number")
930
930
  return Math.min(100, Math.max(0, e));
931
931
  const t = Number(e);
932
932
  return Number.isNaN(t) ? 0 : Math.min(100, Math.max(0, t));
933
933
  }
934
- function qe(e) {
935
- return typeof e == "string" && e.toLowerCase() === "ocean", ot;
934
+ function Je(e) {
935
+ return typeof e == "string" && e.toLowerCase() === "ocean", lt;
936
936
  }
937
- function Mt(e) {
937
+ function wt(e) {
938
938
  const t = e.toLowerCase();
939
939
  return ["supplier", "suppliers", "po", "pos", "product_description"].includes(t);
940
940
  }
941
- function Ue(e) {
941
+ function qe(e) {
942
942
  if (e.cellType === "badge") return !0;
943
943
  const t = e.key.toLowerCase();
944
944
  return t === "tag" || t === "tags";
945
945
  }
946
- function wt(e) {
946
+ function St(e) {
947
947
  return e.cellType === "status" ? !0 : e.key.toLowerCase() === "status";
948
948
  }
949
- function St(e) {
949
+ function Tt(e) {
950
950
  return e.cellType === "icon" ? !0 : e.key.toLowerCase() === "type";
951
951
  }
952
- function Tt(e) {
952
+ function Pt(e) {
953
953
  return Array.isArray(e.cellType) && e.cellType.length > 0;
954
954
  }
955
- function Pt(e) {
955
+ function $t(e) {
956
956
  return Array.isArray(e.cellType) ? e.cellType.filter((t) => typeof t == "string") : e.cellType && typeof e.cellType == "string" ? [e.cellType] : [];
957
957
  }
958
- function Ye(e, t, n) {
958
+ function Ue(e, t, n) {
959
959
  if (e == null || e === "" || e === void 0)
960
- return oe(n.blankStyle);
960
+ return te(n.blankStyle);
961
961
  switch (t) {
962
962
  case "number":
963
- return Fe(e);
963
+ return je(e);
964
964
  case "currency":
965
- return Ke(e);
965
+ return Fe(e);
966
966
  case "date":
967
- return We(e);
967
+ return Ke(e);
968
968
  case "boolean":
969
- return Je(e);
969
+ return We(e);
970
970
  case "text":
971
971
  default:
972
972
  return typeof e == "object" ? JSON.stringify(e) : String(e);
973
973
  }
974
974
  }
975
- function $t(e) {
975
+ function Lt(e) {
976
976
  return {
977
977
  number: "shifl-grid__composite-number",
978
978
  currency: "shifl-grid__composite-currency",
@@ -981,27 +981,28 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
981
981
  text: "shifl-grid__composite-text"
982
982
  }[e] || "shifl-grid__composite-text";
983
983
  }
984
- function Lt(e, t) {
984
+ function At(e, t) {
985
985
  if (e == null || e === "")
986
- return oe(t.blankStyle);
986
+ return te(t.blankStyle);
987
987
  if (Array.isArray(e)) {
988
- if (e.length === 0) return "";
988
+ if (e.length === 0)
989
+ return te(t.blankStyle);
989
990
  const n = e.join(", ");
990
- return Qe(n, 45);
991
+ return Ye(n, 45);
991
992
  }
992
- return typeof e == "string" ? Qe(e, 45) : String(e);
993
+ return typeof e == "string" ? Ye(e, 45) : String(e);
993
994
  }
994
- function Qe(e, t) {
995
+ function Ye(e, t) {
995
996
  return e.length <= t ? e : e.substring(0, t) + "...";
996
997
  }
997
998
  function Te(e) {
998
999
  const t = e.toLowerCase();
999
1000
  return ["po", "pos", "supplier", "suppliers", "tag", "tags"].includes(t);
1000
1001
  }
1001
- function At(e, t) {
1002
+ function Nt(e, t) {
1002
1003
  return e == null || Te(t) ? !1 : Array.isArray(e) ? e.length === 0 ? !1 : e.join(", ").length > 30 : typeof e == "string" ? e.length > 30 : !1;
1003
1004
  }
1004
- function Nt(e) {
1005
+ function xt(e) {
1005
1006
  return e == null ? !1 : Array.isArray(e) ? e.length === 0 ? !1 : e.join(", ").length > 45 : typeof e == "string" ? e.length > 45 : !1;
1006
1007
  }
1007
1008
  function Rt(e) {
@@ -1022,24 +1023,24 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1022
1023
  }
1023
1024
  function Pe(e, t, n, s) {
1024
1025
  let i = "", y = !1;
1025
- const x = X.value.find((B) => B.key === e);
1026
- if (x && Ue(x)) {
1027
- const B = Xe(n);
1028
- B.length > 0 && (y = !0, i = B.map((F) => `<span class="shifl-grid__tooltip-badge" style="border-left-color: ${et(F)} !important">${F.name}</span>`).join(""));
1026
+ const R = X.value.find((B) => B.key === e);
1027
+ if (R && qe(R)) {
1028
+ const B = Qe(n);
1029
+ B.length > 0 && (y = !0, i = B.map((F) => `<span class="shifl-grid__tooltip-badge" style="border-left-color: ${tt(F)} !important">${F.name}</span>`).join(""));
1029
1030
  } else Array.isArray(n) ? n.length > 0 && (i = n.join(`
1030
1031
  `)) : n != null && (i = String(n));
1031
- Be.value = i, _e.value = y, ve.value = s, me.value = !0;
1032
+ Ve.value = i, _e.value = y, ve.value = s, me.value = !0;
1032
1033
  }
1033
1034
  function $e() {
1034
1035
  me.value = !1, ve.value = null, _e.value = !1;
1035
1036
  }
1036
- function xt(e, t, n) {
1037
- n && (ct.value[`${e}-${t}`] = n);
1037
+ function Ht(e, t, n) {
1038
+ n && (ft.value[`${e}-${t}`] = n);
1038
1039
  }
1039
1040
  function le(e) {
1040
1041
  return e == null ? [] : Array.isArray(e) ? e.map((t) => typeof t == "object" && t !== null && "name" in t ? String(t.name) : String(t)).filter((t) => t.length > 0) : typeof e == "string" ? e.split(",").map((t) => t.trim()).filter((t) => t.length > 0) : [String(e)];
1041
1042
  }
1042
- function Xe(e) {
1043
+ function Qe(e) {
1043
1044
  return e == null ? [] : Array.isArray(e) ? e.map((t) => typeof t == "object" && t !== null && "name" in t ? {
1044
1045
  name: String(t.name),
1045
1046
  color: "color" in t ? String(t.color) : void 0
@@ -1048,46 +1049,46 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1048
1049
  color: void 0
1049
1050
  }).filter((t) => t.name.length > 0) : typeof e == "string" ? e.split(",").map((t) => t.trim()).filter((t) => t.length > 0).map((t) => ({ name: t, color: void 0 })) : [{ name: String(e), color: void 0 }];
1050
1051
  }
1051
- function Le(e, t, n) {
1052
+ function Xe(e, t, n) {
1052
1053
  const s = le(e);
1053
1054
  if (s.length === 0) return [];
1054
1055
  const i = `${t}-${n}`;
1055
1056
  if (Q.value[i])
1056
1057
  return Q.value[i];
1057
- const y = 130, x = 8, B = 4;
1058
+ const y = 130, R = 8, B = 4;
1058
1059
  let F = 0;
1059
1060
  const O = [];
1060
- for (const te of s) {
1061
- const ne = te.length * 8 + x + B;
1062
- if (F + ne > y && O.length > 0)
1061
+ for (const ne of s) {
1062
+ const re = ne.length * 8 + R + B;
1063
+ if (F + re > y && O.length > 0)
1063
1064
  break;
1064
- O.push(te), F += ne;
1065
+ O.push(ne), F += re;
1065
1066
  }
1066
1067
  return Q.value[i] = O, O;
1067
1068
  }
1068
- function Ht(e, t, n) {
1069
- const s = Xe(e);
1069
+ function et(e, t, n) {
1070
+ const s = Qe(e);
1070
1071
  if (s.length === 0) return [];
1071
1072
  const i = `${t}-${n}-objects`;
1072
1073
  if (Q.value[i])
1073
1074
  return Q.value[i];
1074
- const y = 130, x = 8, B = 4;
1075
+ const y = 130, R = 8, B = 4;
1075
1076
  let F = 0;
1076
1077
  const O = [];
1077
- for (const te of s) {
1078
- const ne = te.name.length * 8 + x + B;
1079
- if (F + ne > y && O.length > 0)
1078
+ for (const ne of s) {
1079
+ const re = ne.name.length * 8 + R + B;
1080
+ if (F + re > y && O.length > 0)
1080
1081
  break;
1081
- O.push(te), F += ne;
1082
+ O.push(ne), F += re;
1082
1083
  }
1083
1084
  return Q.value[i] = O, O;
1084
1085
  }
1085
1086
  function zt(e, t, n) {
1086
- const s = le(e), i = Le(e, t, n);
1087
+ const s = le(e), i = Xe(e, t, n);
1087
1088
  return s.length > i.length;
1088
1089
  }
1089
1090
  function Dt(e, t, n) {
1090
- const s = le(e), i = Le(e, t, n);
1091
+ const s = le(e), i = Xe(e, t, n);
1091
1092
  return s.length - i.length;
1092
1093
  }
1093
1094
  function Et(e) {
@@ -1110,7 +1111,7 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1110
1111
  return i;
1111
1112
  return Vt(e);
1112
1113
  }
1113
- function et(e) {
1114
+ function tt(e) {
1114
1115
  return e.color && e.color !== "" ? e.color : Et(e.name);
1115
1116
  }
1116
1117
  function Vt(e) {
@@ -1129,13 +1130,13 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1129
1130
  ];
1130
1131
  return n[Math.abs(t) % n.length];
1131
1132
  }
1132
- function Ae(e, t = !0) {
1133
+ function Le(e, t = !0) {
1133
1134
  const s = { ...{
1134
1135
  width: e.width ?? "160px",
1135
1136
  minWidth: e.width ?? "160px"
1136
- } }, i = je.value > 0;
1137
+ } }, i = Ze.value > 0;
1137
1138
  if (e.freeze) {
1138
- const y = yt.value[e.key] ?? 0;
1139
+ const y = bt.value[e.key] ?? 0;
1139
1140
  s.position = "sticky", s.left = `${y}px`, s.background = "#ffffff", s.boxShadow = i ? "2px 0 6px rgba(0, 0, 0, 0.12)" : "none", s.zIndex = t ? 40 : 10;
1140
1141
  }
1141
1142
  return t && (s.position = "sticky", s.top = "0px"), s;
@@ -1144,7 +1145,7 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1144
1145
  function ue(e) {
1145
1146
  return !!e.actionColumn;
1146
1147
  }
1147
- function Ne(e) {
1148
+ function Ae(e) {
1148
1149
  return !!e.smartTrackingColumn;
1149
1150
  }
1150
1151
  function Gt(e, t) {
@@ -1169,7 +1170,7 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1169
1170
  Y();
1170
1171
  return;
1171
1172
  }
1172
- Ve.value = n, pe.value = t, ie(e, i);
1173
+ Ee.value = n, pe.value = t, ae(e, i);
1173
1174
  }
1174
1175
  function Ot(e, t) {
1175
1176
  return !(e != null && e.actionColumn) || !t ? [] : (typeof e.actionColumn.actions == "function" ? e.actionColumn.actions(t) : e.actionColumn.actions).filter((s) => s.show ? s.show(t) : !0);
@@ -1178,38 +1179,38 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1178
1179
  _("action-click", e.key, t, n), Y();
1179
1180
  }
1180
1181
  function jt(e, t) {
1181
- t && (ae.value[e] = t);
1182
+ t && (oe.value[e] = t);
1182
1183
  }
1183
- function tt(e) {
1184
+ function nt(e) {
1184
1185
  if (H.value.rowIndex === null) return;
1185
- const t = e.target, n = Ee.value, s = Object.values(ae.value), i = n == null ? void 0 : n.contains(t), y = s.some((x) => x.contains(t));
1186
+ const t = e.target, n = De.value, s = Object.values(oe.value), i = n == null ? void 0 : n.contains(t), y = s.some((R) => R.contains(t));
1186
1187
  !i && !y && Y();
1187
1188
  }
1188
1189
  return de(() => {
1189
- document.addEventListener("click", tt);
1190
+ document.addEventListener("click", nt);
1190
1191
  }), ge(() => {
1191
- document.removeEventListener("click", tt);
1192
+ document.removeEventListener("click", nt);
1192
1193
  }), (e, t) => (o(), l("div", In, [
1193
- h("div", On, [
1194
- h("button", {
1194
+ g("div", On, [
1195
+ g("button", {
1195
1196
  type: "button",
1196
1197
  class: "shifl-grid__pill-button whitespace-nowrap",
1197
1198
  onClick: t[0] || (t[0] = (n) => I.value = !0)
1198
1199
  }, " Edit Column ")
1199
1200
  ]),
1200
- h("div", {
1201
- class: G(["shifl-grid__viewport", { "shifl-grid__viewport--scroll": ft.value }]),
1202
- onScroll: bt
1201
+ g("div", {
1202
+ class: G(["shifl-grid__viewport", { "shifl-grid__viewport--scroll": dt.value }]),
1203
+ onScroll: kt
1203
1204
  }, [
1204
- h("table", Zn, [
1205
- h("thead", null, [
1206
- h("tr", null, [
1207
- (o(!0), l(R, null, V(X.value, (n) => {
1205
+ g("table", Zn, [
1206
+ g("thead", null, [
1207
+ g("tr", null, [
1208
+ (o(!0), l(x, null, V(X.value, (n) => {
1208
1209
  var s;
1209
1210
  return o(), l("th", {
1210
1211
  key: n.key,
1211
- style: K(Ae(n, !0)),
1212
- onClick: () => kt(n.key),
1212
+ style: K(Le(n, !0)),
1213
+ onClick: () => Ct(n.key),
1213
1214
  class: G([
1214
1215
  "shifl-grid__header-cell",
1215
1216
  `shifl-grid__header-align-${n != null && n.align ? n.align : "left"}`,
@@ -1220,39 +1221,39 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1220
1221
  }
1221
1222
  ])
1222
1223
  }, [
1223
- h("div", Fn, [
1224
+ g("div", Fn, [
1224
1225
  n.label ? (o(), l("span", Kn, $(n.label), 1)) : D("", !0),
1225
- ((s = E(N)) == null ? void 0 : s.key) === n.key && !ue(n) && !Ne(n) ? (o(), l("span", Wn, [
1226
- E(N).order === "asc" ? (o(), Z(Ln, { key: 0 })) : (o(), Z(xn, { key: 1 }))
1226
+ ((s = E(N)) == null ? void 0 : s.key) === n.key && !ue(n) && !Ae(n) ? (o(), l("span", Wn, [
1227
+ E(N).order === "asc" ? (o(), Z(Ln, { key: 0 })) : (o(), Z(Rn, { key: 1 }))
1227
1228
  ])) : D("", !0)
1228
1229
  ])
1229
1230
  ], 14, jn);
1230
1231
  }), 128))
1231
1232
  ])
1232
1233
  ]),
1233
- h("tbody", null, [
1234
- W.value ? (o(!0), l(R, { key: 0 }, V(dt.value, (n) => (o(), l("tr", {
1234
+ g("tbody", null, [
1235
+ W.value ? (o(!0), l(x, { key: 0 }, V(gt.value, (n) => (o(), l("tr", {
1235
1236
  key: `skeleton-${n}`,
1236
1237
  class: "shifl-grid__skeleton-row"
1237
1238
  }, [
1238
- (o(!0), l(R, null, V(X.value, (s) => (o(), l("td", {
1239
+ (o(!0), l(x, null, V(X.value, (s) => (o(), l("td", {
1239
1240
  key: s.key,
1240
- style: K(Ae(s, !1)),
1241
+ style: K(Le(s, !1)),
1241
1242
  class: G({ "shifl-grid__cell--sticky": s.freeze })
1242
1243
  }, [...t[6] || (t[6] = [
1243
- h("div", { class: "shifl-grid__skeleton-cell" }, null, -1)
1244
+ g("div", { class: "shifl-grid__skeleton-cell" }, null, -1)
1244
1245
  ])], 6))), 128))
1245
- ]))), 128)) : (o(), l(R, { key: 1 }, [
1246
- Ge.value.length ? D("", !0) : (o(), l("tr", Jn, [
1247
- h("td", {
1246
+ ]))), 128)) : (o(), l(x, { key: 1 }, [
1247
+ Be.value.length ? D("", !0) : (o(), l("tr", Jn, [
1248
+ g("td", {
1248
1249
  colspan: X.value.length,
1249
1250
  class: "text-center text-gray-500 py-6"
1250
1251
  }, " No data ", 8, qn)
1251
1252
  ])),
1252
- (o(!0), l(R, null, V(Ge.value, (n, s) => (o(), l("tr", { key: s }, [
1253
- (o(!0), l(R, null, V(X.value, (i) => (o(), l("td", {
1253
+ (o(!0), l(x, null, V(Be.value, (n, s) => (o(), l("tr", { key: s }, [
1254
+ (o(!0), l(x, null, V(X.value, (i) => (o(), l("td", {
1254
1255
  key: i.key,
1255
- style: K(Ae(i, !1)),
1256
+ style: K(Le(i, !1)),
1256
1257
  class: G([
1257
1258
  { "shifl-grid__cell--sticky": i.freeze },
1258
1259
  { "shifl-grid__cell--action": ue(i) },
@@ -1260,9 +1261,9 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1260
1261
  { "shifl-grid__icon": i.cellType === "icon" }
1261
1262
  ])
1262
1263
  }, [
1263
- Ne(i) ? (o(), l(R, { key: 0 }, [
1264
+ Ae(i) ? (o(), l(x, { key: 0 }, [
1264
1265
  Gt(i, n) ? (o(), l("div", Un, [
1265
- Re(Sn)
1266
+ Ne(Sn)
1266
1267
  ])) : D("", !0)
1267
1268
  ], 64)) : ue(i) ? (o(), l("button", {
1268
1269
  key: 1,
@@ -1280,35 +1281,35 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1280
1281
  key: 2,
1281
1282
  class: "w-4 h-4"
1282
1283
  })) : (o(), l("span", Qn, "⋯"))
1283
- ], 8, Yn)) : Tt(i) ? (o(), l("div", er, [
1284
- (o(!0), l(R, null, V(Pt(i), (y, x) => (o(), l(R, { key: x }, [
1285
- y === "icon" ? (o(), Z(fe(qe(n[i.key])), {
1284
+ ], 8, Yn)) : Pt(i) ? (o(), l("div", er, [
1285
+ (o(!0), l(x, null, V($t(i), (y, R) => (o(), l(x, { key: R }, [
1286
+ y === "icon" ? (o(), Z(fe(Je(n[i.key])), {
1286
1287
  key: 0,
1287
1288
  class: "shifl-grid__type-icon"
1288
1289
  })) : (o(), l("span", {
1289
1290
  key: 1,
1290
- class: G($t(y))
1291
- }, $(Ye(n[i.key], y, i)), 3))
1291
+ class: G(Lt(y))
1292
+ }, $(Ue(n[i.key], y, i)), 3))
1292
1293
  ], 64))), 128))
1293
- ])) : St(i) ? (o(), l("div", tr, [
1294
- (o(), Z(fe(qe(n[i.key])), { class: "shifl-grid__type-icon" })),
1294
+ ])) : Tt(i) ? (o(), l("div", tr, [
1295
+ (o(), Z(fe(Je(n[i.key])), { class: "shifl-grid__type-icon" })),
1295
1296
  n.container_count != null ? (o(), l("span", nr, " (" + $(n.container_count) + ") ", 1)) : D("", !0)
1296
- ])) : Ue(i) ? (o(), l(R, { key: 4 }, [
1297
- n[i.key] == null || Le(n[i.key], i.key, s).length === 0 ? (o(), l("div", rr, $(oe(i.blankStyle)), 1)) : (o(), l("div", sr, [
1298
- h("div", ir, [
1299
- h("div", {
1297
+ ])) : qe(i) ? (o(), l(x, { key: 4 }, [
1298
+ n[i.key] == null || et(n[i.key], i.key, s).length === 0 ? (o(), l("div", rr, $(te(i.blankStyle)), 1)) : (o(), l("div", sr, [
1299
+ g("div", ir, [
1300
+ g("div", {
1300
1301
  ref_for: !0,
1301
1302
  ref: "(el) => setTagsRef(col.key, rowIndex, el as HTMLElement)",
1302
1303
  class: "shifl-grid__chips-container shifl-grid__chips-container--single-line"
1303
1304
  }, [
1304
- (o(!0), l(R, null, V(Ht(
1305
+ (o(!0), l(x, null, V(et(
1305
1306
  n[i.key],
1306
1307
  i.key,
1307
1308
  s
1308
- ), (y, x) => (o(), l("span", {
1309
- key: x,
1309
+ ), (y, R) => (o(), l("span", {
1310
+ key: R,
1310
1311
  class: "shifl-grid__chip shifl-grid__chip--tag",
1311
- style: K({ borderLeftColor: et(y) })
1312
+ style: K({ borderLeftColor: tt(y) })
1312
1313
  }, $(y.name), 5))), 128))
1313
1314
  ], 512)
1314
1315
  ]),
@@ -1325,18 +1326,18 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1325
1326
  onMouseleave: $e
1326
1327
  }, " +" + $(Dt(n[i.key], i.key, s)), 41, ar)) : D("", !0)
1327
1328
  ]))
1328
- ], 64)) : wt(i) ? (o(), l("div", or, [
1329
- (o(!0), l(R, null, V(le(n[i.key]), (y, x) => (o(), l("span", {
1330
- key: x,
1329
+ ], 64)) : St(i) ? (o(), l("div", or, [
1330
+ (o(!0), l(x, null, V(le(n[i.key]), (y, R) => (o(), l("span", {
1331
+ key: R,
1331
1332
  class: "shifl-grid__chip shifl-grid__chip--status"
1332
1333
  }, $(y), 1))), 128))
1333
- ])) : i.truncate !== !1 && (i.truncate === !0 || Mt(i.key)) ? (o(), l("div", lr, [
1334
- h("span", {
1334
+ ])) : i.truncate !== !1 && (i.truncate === !0 || wt(i.key)) ? (o(), l("div", lr, [
1335
+ g("span", {
1335
1336
  class: "shifl-grid__truncated-text",
1336
1337
  ref_for: !0,
1337
- ref: (y) => xt(i.key, s, y)
1338
- }, $(Lt(n[i.key], i)), 513),
1339
- Te(i.key) && Nt(n[i.key]) ? (o(), l("button", {
1338
+ ref: (y) => Ht(i.key, s, y)
1339
+ }, $(At(n[i.key], i)), 513),
1340
+ Te(i.key) && xt(n[i.key]) ? (o(), l("button", {
1340
1341
  key: 0,
1341
1342
  type: "button",
1342
1343
  class: "shifl-grid__counter-button",
@@ -1347,7 +1348,7 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1347
1348
  y.currentTarget
1348
1349
  ),
1349
1350
  onMouseleave: $e
1350
- }, " +" + $(Rt(n[i.key])), 41, ur)) : !Te(i.key) && At(n[i.key], i.key) ? (o(), l("button", {
1351
+ }, " +" + $(Rt(n[i.key])), 41, ur)) : !Te(i.key) && Nt(n[i.key], i.key) ? (o(), l("button", {
1351
1352
  key: 1,
1352
1353
  type: "button",
1353
1354
  class: "shifl-grid__info-icon-button",
@@ -1359,7 +1360,7 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1359
1360
  ),
1360
1361
  onMouseleave: $e
1361
1362
  }, [
1362
- Re(Gn)
1363
+ Ne(Gn)
1363
1364
  ], 40, cr)) : D("", !0)
1364
1365
  ])) : i.cellType === "link" ? (o(), l("a", {
1365
1366
  key: 7,
@@ -1368,15 +1369,15 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1368
1369
  onClick: t[1] || (t[1] = q(() => {
1369
1370
  }, ["stop"]))
1370
1371
  }, $(Se(n[i.key], i)), 9, fr)) : i.cellType === "progress" ? (o(), l("div", dr, [
1371
- h("div", gr, [
1372
- h("div", {
1372
+ g("div", gr, [
1373
+ g("div", {
1373
1374
  class: "shifl-grid__progress-fill",
1374
- style: K({ width: `${Ct(n[i.key])}%` })
1375
+ style: K({ width: `${Mt(n[i.key])}%` })
1375
1376
  }, null, 4)
1376
1377
  ]),
1377
- h("span", hr, $(Se(n[i.key], i)), 1)
1378
- ])) : (o(), l(R, { key: 9 }, [
1379
- re($(Se(n[i.key], i)), 1)
1378
+ g("span", hr, $(Se(n[i.key], i)), 1)
1379
+ ])) : (o(), l(x, { key: 9 }, [
1380
+ se($(Se(n[i.key], i)), 1)
1380
1381
  ], 64))
1381
1382
  ], 6))), 128))
1382
1383
  ]))), 128))
@@ -1385,59 +1386,59 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1385
1386
  ])
1386
1387
  ], 34),
1387
1388
  z.value && z.value.show !== !1 ? (o(), l("div", pr, [
1388
- h("div", mr, [
1389
- h("span", vr, [
1390
- t[7] || (t[7] = re(" Showing ", -1)),
1391
- h("span", _r, $(Ie.value.from) + "–" + $(Ie.value.to), 1),
1392
- re(" of " + $(ke.value), 1)
1389
+ g("div", mr, [
1390
+ g("span", vr, [
1391
+ t[7] || (t[7] = se(" Showing ", -1)),
1392
+ g("span", _r, $(Ge.value.from) + "–" + $(Ge.value.to), 1),
1393
+ se(" of " + $(ke.value), 1)
1393
1394
  ])
1394
1395
  ]),
1395
- h("div", yr, [
1396
- h("div", br, [
1397
- t[9] || (t[9] = h("label", { class: "shifl-grid__pagination-label" }, "Row per page", -1)),
1398
- h("select", {
1396
+ g("div", yr, [
1397
+ g("div", br, [
1398
+ t[9] || (t[9] = g("label", { class: "shifl-grid__pagination-label" }, "Row per page", -1)),
1399
+ g("select", {
1399
1400
  value: z.value.perPage || 20,
1400
1401
  disabled: W.value,
1401
- onChange: vt,
1402
+ onChange: _t,
1402
1403
  class: "shifl-grid__pagination-select"
1403
1404
  }, [...t[8] || (t[8] = [
1404
1405
  Ft('<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)
1405
1406
  ])], 40, kr)
1406
1407
  ]),
1407
- h("div", Cr, [
1408
- h("button", {
1408
+ g("div", Cr, [
1409
+ g("button", {
1409
1410
  type: "button",
1410
1411
  class: "shifl-grid__pagination-button",
1411
- disabled: Oe.value || d.loading,
1412
- onClick: pt,
1412
+ disabled: Ie.value || d.loading,
1413
+ onClick: mt,
1413
1414
  "aria-label": "Previous page"
1414
1415
  }, " ‹ ", 8, Mr),
1415
- h("div", wr, [
1416
- (o(!0), l(R, null, V(gt.value, (n) => (o(), l(R, { key: n }, [
1416
+ g("div", wr, [
1417
+ (o(!0), l(x, null, V(ht.value, (n) => (o(), l(x, { key: n }, [
1417
1418
  n !== -1 ? (o(), l("button", {
1418
1419
  key: 0,
1419
1420
  type: "button",
1420
1421
  class: G(["shifl-grid__pagination-page", { "shifl-grid__pagination-page--active": n === J.value }]),
1421
1422
  disabled: W.value,
1422
- onClick: (s) => ht(n)
1423
+ onClick: (s) => pt(n)
1423
1424
  }, $(n), 11, Sr)) : (o(), l("span", Tr, "…"))
1424
1425
  ], 64))), 128))
1425
1426
  ]),
1426
- h("button", {
1427
+ g("button", {
1427
1428
  type: "button",
1428
1429
  class: "shifl-grid__pagination-button",
1429
- disabled: Ze.value || d.loading,
1430
- onClick: mt,
1430
+ disabled: Oe.value || d.loading,
1431
+ onClick: vt,
1431
1432
  "aria-label": "Next page"
1432
1433
  }, " › ", 8, Pr)
1433
1434
  ])
1434
1435
  ])
1435
1436
  ])) : D("", !0),
1436
- (o(), Z(ze, { to: "body" }, [
1437
+ (o(), Z(He, { to: "body" }, [
1437
1438
  E(H).rowIndex !== null && E(H).position ? (o(), l("div", {
1438
1439
  key: 0,
1439
1440
  ref_key: "actionMenuRef",
1440
- ref: Ee,
1441
+ ref: De,
1441
1442
  class: "shifl-grid__action-menu",
1442
1443
  style: K(`
1443
1444
  position: fixed !important;
@@ -1447,7 +1448,7 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1447
1448
  onClick: t[2] || (t[2] = q(() => {
1448
1449
  }, ["stop"]))
1449
1450
  }, [
1450
- (o(!0), l(R, null, V(Ot(Ve.value, pe.value), (n) => (o(), l("div", {
1451
+ (o(!0), l(x, null, V(Ot(Ee.value, pe.value), (n) => (o(), l("div", {
1451
1452
  key: n.key,
1452
1453
  class: G(["shifl-grid__action-menu-item", { "shifl-grid__action-menu-item--danger": n.danger }]),
1453
1454
  onClick: () => Zt(n, pe.value, E(H).rowIndex)
@@ -1460,42 +1461,42 @@ const Gn = /* @__PURE__ */ U(En, [["render", Bn]]), In = { class: "shifl-grid re
1460
1461
  key: 1,
1461
1462
  class: "w-4 h-4"
1462
1463
  })) : D("", !0),
1463
- h("span", null, $(n.label), 1)
1464
+ g("span", null, $(n.label), 1)
1464
1465
  ], 10, $r))), 128))
1465
1466
  ], 4)) : D("", !0)
1466
1467
  ])),
1467
- Re(kn, {
1468
- content: Be.value,
1468
+ Ne(kn, {
1469
+ content: Ve.value,
1469
1470
  visible: me.value,
1470
1471
  "trigger-element": ve.value,
1471
1472
  "is-html": _e.value
1472
1473
  }, null, 8, ["content", "visible", "trigger-element", "is-html"]),
1473
- (o(), Z(ze, { to: "body" }, [
1474
+ (o(), Z(He, { to: "body" }, [
1474
1475
  I.value ? (o(), Z(vn, {
1475
1476
  key: 0,
1476
1477
  "title-prefix": a.config.name,
1477
1478
  columns: Bt.value,
1478
1479
  onClose: t[3] || (t[3] = (n) => I.value = !1),
1479
- onToggle: E(c),
1480
+ onToggle: E(f),
1480
1481
  onToggleFreeze: E(C),
1481
1482
  onMove: E(L),
1482
- onSelectAll: t[4] || (t[4] = (n) => E(g)(!0)),
1483
- onDeselectAll: t[5] || (t[5] = (n) => E(g)(!1)),
1483
+ onSelectAll: t[4] || (t[4] = (n) => E(p)(!0)),
1484
+ onDeselectAll: t[5] || (t[5] = (n) => E(p)(!1)),
1484
1485
  onRestoreDefault: E(A)
1485
1486
  }, null, 8, ["title-prefix", "columns", "onToggle", "onToggleFreeze", "onMove", "onRestoreDefault"])) : D("", !0)
1486
1487
  ]))
1487
1488
  ]));
1488
1489
  }
1489
- }), Rr = {
1490
+ }), xr = {
1490
1491
  install(a) {
1491
1492
  a.component("ShiflGrid", Ar);
1492
1493
  }
1493
1494
  };
1494
- function xr() {
1495
+ function Rr() {
1495
1496
  const a = b(/* @__PURE__ */ new Set());
1496
1497
  function r(d) {
1497
- const _ = d.id ?? JSON.stringify(d), f = new Set(a.value);
1498
- f.has(_) ? f.delete(_) : f.add(_), a.value = f;
1498
+ const _ = d.id ?? JSON.stringify(d), c = new Set(a.value);
1499
+ c.has(_) ? c.delete(_) : c.add(_), a.value = c;
1499
1500
  }
1500
1501
  return {
1501
1502
  selectedKeys: a,
@@ -1507,7 +1508,7 @@ function Hr() {
1507
1508
  // placeholder
1508
1509
  };
1509
1510
  }
1510
- const lt = Symbol("shifl-grid-theme"), ut = {
1511
+ const ut = Symbol("shifl-grid-theme"), ct = {
1511
1512
  surface: "var(--shifl-surface)",
1512
1513
  surfaceAlt: "var(--shifl-surface-alt)",
1513
1514
  border: "var(--shifl-border)",
@@ -1518,12 +1519,12 @@ const lt = Symbol("shifl-grid-theme"), ut = {
1518
1519
  focus: "var(--shifl-focus)"
1519
1520
  };
1520
1521
  function zr(a) {
1521
- const r = b({ ...ut, ...a });
1522
- return Kt(lt, r), r;
1522
+ const r = b({ ...ct, ...a });
1523
+ return Kt(ut, r), r;
1523
1524
  }
1524
1525
  function Dr() {
1525
- const a = Wt(lt);
1526
- return k(() => (a == null ? void 0 : a.value) ?? ut);
1526
+ const a = Wt(ut);
1527
+ return k(() => (a == null ? void 0 : a.value) ?? ct);
1527
1528
  }
1528
1529
  const xe = {
1529
1530
  sm: 640,
@@ -1561,7 +1562,7 @@ function Gr() {
1561
1562
  }
1562
1563
  export {
1563
1564
  Ar as ShiflGrid,
1564
- Rr as ShiflGridPlugin,
1565
+ xr as ShiflGridPlugin,
1565
1566
  zr as provideGridTheme,
1566
1567
  Er as useBreakpoints,
1567
1568
  qt as useGridColumns,
@@ -1569,7 +1570,7 @@ export {
1569
1570
  Hr as useGridEditing,
1570
1571
  Yt as useGridFilter,
1571
1572
  Vr as useGridInfiniteScroll,
1572
- xr as useGridSelection,
1573
+ Rr as useGridSelection,
1573
1574
  Ut as useGridSort,
1574
1575
  Dr as useGridTheme,
1575
1576
  Gr as useGridTour,