@illinois-grad/grad-vue 7.1.2 → 7.1.3

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.
@@ -3144,7 +3144,12 @@ var br = ["id", "for"], xr = {
3144
3144
  }), qr = {
3145
3145
  class: "g-pagination",
3146
3146
  "aria-label": "Pagination"
3147
- }, Jr = ["disabled"], Yr = ["disabled"], Xr = { class: "page-range" }, Zr = ["disabled"], Qr = ["disabled"], $r = { class: "g-pagination-page-size" }, ei = { class: "page-size-select-wrap" }, ti = ["id", "value"], ni = ["value"], ri = ["for"], ii = { class: "g-pagination-overflow" }, ai = ["onClick"], oi = { class: "g-pagination-overflow-popover" }, si = { class: "g-pagination-overflow-page-size" }, ci = ["for"], li = { class: "page-size-select-wrap" }, ui = ["id", "value"], di = ["value"], fi = { class: "g-pagination-overflow-actions" }, pi = ["disabled"], mi = ["disabled"], hi = /* @__PURE__ */ u({
3147
+ }, Jr = ["disabled"], Yr = ["disabled"], Xr = { class: "page-range" }, Zr = ["disabled"], Qr = ["disabled"], $r = { class: "g-pagination-page-size" }, ei = { class: "page-size-select-wrap" }, ti = ["id", "value"], ni = ["value"], ri = ["for"], ii = { class: "g-pagination-overflow" }, ai = ["onClick"], oi = { class: "g-pagination-overflow-popover" }, si = { class: "g-pagination-overflow-page-size" }, ci = ["for"], li = { class: "page-size-select-wrap" }, ui = ["id", "value"], di = ["value"], fi = { class: "g-pagination-overflow-actions" }, pi = ["disabled"], mi = ["disabled"], hi = {
3148
+ class: "ilw-sr-only",
3149
+ role: "status",
3150
+ "aria-live": "polite",
3151
+ "aria-atomic": "true"
3152
+ }, gi = /* @__PURE__ */ u({
3148
3153
  __name: "GTablePagination",
3149
3154
  props: /*@__PURE__*/ p({
3150
3155
  start: {},
@@ -3164,22 +3169,27 @@ var br = ["id", "for"], xr = {
3164
3169
  25,
3165
3170
  50,
3166
3171
  100
3167
- ]), g = r(() => b.value === 1), _ = r(() => b.value === i.value), v = r(() => n.total === 0 ? 0 : p.value + 1), y = r(() => n.total === 0 ? 0 : Math.min(p.value + m.value, n.total)), b = r(() => Math.floor(p.value / m.value) + 1);
3168
- function x(e) {
3172
+ ]), g = r(() => b.value === 1), _ = r(() => b.value === i.value), v = r(() => n.total === 0 ? 0 : p.value + 1), y = r(() => n.total === 0 ? 0 : Math.min(p.value + m.value, n.total)), b = r(() => Math.floor(p.value / m.value) + 1), x = r(() => {
3173
+ if (n.total === 0) return "No rows to display.";
3174
+ let e = "";
3175
+ return i.value === 1 ? e = " Only page." : g.value ? e = " First page." : _.value && (e = " Last page."), `Page ${b.value} of ${i.value}. Showing rows ${v.value} to ${y.value} of ${n.total}.${e}`;
3176
+ });
3177
+ function C(e) {
3169
3178
  e < 1 || e > i.value || (a.value = (e - 1) * m.value);
3170
3179
  }
3171
- function C(e) {
3180
+ function w(e) {
3172
3181
  u.value = parseInt(e.target.value, 10), a.value = 0;
3173
3182
  }
3174
3183
  return (t, n) => (S(), o("nav", qr, [
3175
3184
  s("button", {
3176
3185
  class: "first-page g-pagination-button",
3177
3186
  type: "button",
3187
+ "aria-label": "First Page",
3178
3188
  disabled: g.value,
3179
- onClick: n[0] ||= (e) => x(1)
3189
+ onClick: n[0] ||= (e) => C(1)
3180
3190
  }, [...n[6] ||= [s("svg", {
3181
- role: "img",
3182
- "aria-label": "First Page",
3191
+ "aria-hidden": "true",
3192
+ focusable: "false",
3183
3193
  height: "2em",
3184
3194
  xmlns: "http://www.w3.org/2000/svg",
3185
3195
  width: "2em",
@@ -3201,11 +3211,12 @@ var br = ["id", "for"], xr = {
3201
3211
  s("button", {
3202
3212
  class: "prev-page g-pagination-button",
3203
3213
  type: "button",
3214
+ "aria-label": "Previous Page",
3204
3215
  disabled: g.value,
3205
- onClick: n[1] ||= (e) => x(b.value - 1)
3216
+ onClick: n[1] ||= (e) => C(b.value - 1)
3206
3217
  }, [...n[7] ||= [s("svg", {
3207
- role: "img",
3208
- "aria-label": "Previous Page",
3218
+ "aria-hidden": "true",
3219
+ focusable: "false",
3209
3220
  xmlns: "http://www.w3.org/2000/svg",
3210
3221
  width: "2em",
3211
3222
  height: "2em",
@@ -3224,11 +3235,12 @@ var br = ["id", "for"], xr = {
3224
3235
  s("button", {
3225
3236
  class: "next-page g-pagination-button",
3226
3237
  type: "button",
3238
+ "aria-label": "Next Page",
3227
3239
  disabled: _.value,
3228
- onClick: n[2] ||= (e) => x(b.value + 1)
3240
+ onClick: n[2] ||= (e) => C(b.value + 1)
3229
3241
  }, [...n[8] ||= [s("svg", {
3230
- role: "img",
3231
- "aria-label": "Next Page",
3242
+ "aria-hidden": "true",
3243
+ focusable: "false",
3232
3244
  xmlns: "http://www.w3.org/2000/svg",
3233
3245
  width: "2em",
3234
3246
  height: "2em",
@@ -3246,11 +3258,12 @@ var br = ["id", "for"], xr = {
3246
3258
  s("button", {
3247
3259
  class: "last-page g-pagination-button",
3248
3260
  type: "button",
3261
+ "aria-label": "Last Page",
3249
3262
  disabled: _.value,
3250
- onClick: n[3] ||= (e) => x(i.value)
3263
+ onClick: n[3] ||= (e) => C(i.value)
3251
3264
  }, [...n[9] ||= [s("svg", {
3252
- role: "img",
3253
- "aria-label": "Last Page",
3265
+ "aria-hidden": "true",
3266
+ focusable: "false",
3254
3267
  xmlns: "http://www.w3.org/2000/svg",
3255
3268
  width: "2em",
3256
3269
  height: "2em",
@@ -3273,7 +3286,7 @@ var br = ["id", "for"], xr = {
3273
3286
  id: F(d),
3274
3287
  class: "page-size-select",
3275
3288
  value: m.value,
3276
- onChange: C
3289
+ onChange: w
3277
3290
  }, [(S(!0), o(e, null, E(h.value, (e) => (S(), o("option", {
3278
3291
  key: e,
3279
3292
  value: e
@@ -3321,7 +3334,7 @@ var br = ["id", "for"], xr = {
3321
3334
  id: F(f),
3322
3335
  class: "page-size-select",
3323
3336
  value: m.value,
3324
- onChange: C
3337
+ onChange: w
3325
3338
  }, [(S(!0), o(e, null, E(h.value, (e) => (S(), o("option", {
3326
3339
  key: `overflow-${e}`,
3327
3340
  value: e
@@ -3341,7 +3354,7 @@ var br = ["id", "for"], xr = {
3341
3354
  type: "button",
3342
3355
  class: "g-pagination-overflow-action",
3343
3356
  disabled: g.value,
3344
- onClick: n[4] ||= (e) => x(1)
3357
+ onClick: n[4] ||= (e) => C(1)
3345
3358
  }, [...n[13] ||= [s("span", {
3346
3359
  class: "g-pagination-overflow-action-icon",
3347
3360
  "aria-hidden": "true"
@@ -3367,7 +3380,7 @@ var br = ["id", "for"], xr = {
3367
3380
  type: "button",
3368
3381
  class: "g-pagination-overflow-action",
3369
3382
  disabled: _.value,
3370
- onClick: n[5] ||= (e) => x(i.value)
3383
+ onClick: n[5] ||= (e) => C(i.value)
3371
3384
  }, [...n[14] ||= [s("span", {
3372
3385
  class: "g-pagination-overflow-action-icon",
3373
3386
  "aria-hidden": "true"
@@ -3392,40 +3405,41 @@ var br = ["id", "for"], xr = {
3392
3405
  ])], -1), c(" Last Page ", -1)]], 8, mi)])
3393
3406
  ])]),
3394
3407
  _: 1
3395
- })])
3408
+ })]),
3409
+ s("span", hi, j(x.value), 1)
3396
3410
  ]));
3397
3411
  }
3398
3412
  });
3399
3413
  //#endregion
3400
3414
  //#region src/compose/useFiltering.ts
3401
- function gi(e) {
3415
+ function _i(e) {
3402
3416
  if (!(Array.isArray(e) && e.length === 0) && e !== null && e !== !1 && e !== "") return e;
3403
3417
  }
3404
- function _i(e) {
3418
+ function vi(e) {
3405
3419
  return Object.fromEntries(Object.entries(e).filter(([, e]) => e && (!Array.isArray(e) || e.length > 0)));
3406
3420
  }
3407
- function vi(e) {
3421
+ function yi(e) {
3408
3422
  if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
3409
3423
  }
3410
- function yi(e) {
3424
+ function bi(e) {
3411
3425
  if (e == null) return;
3412
3426
  if (typeof e == "string") return e.includes(",") ? e.split(",") : [e];
3413
3427
  let t = [];
3414
3428
  for (let n of e) n !== null && t.push(n);
3415
3429
  return t.length > 0 ? t : void 0;
3416
3430
  }
3417
- function bi(e) {
3431
+ function xi(e) {
3418
3432
  return Array.isArray(e) ? [...e] : e;
3419
3433
  }
3420
- function xi(e, t) {
3434
+ function Si(e, t) {
3421
3435
  return Array.isArray(e) || Array.isArray(t) ? !Array.isArray(e) || !Array.isArray(t) ? !1 : e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
3422
3436
  }
3423
- function Si(e, t) {
3437
+ function Ci(e, t) {
3424
3438
  let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
3425
- for (let r of n) if (!xi(e[r], t[r])) return !1;
3439
+ for (let r of n) if (!Si(e[r], t[r])) return !1;
3426
3440
  return !0;
3427
3441
  }
3428
- function Ci(e) {
3442
+ function wi(e) {
3429
3443
  if (e != null && e !== "") {
3430
3444
  if (Array.isArray(e)) {
3431
3445
  let t = e.filter((e) => e != null && e !== "").map((e) => String(e));
@@ -3434,18 +3448,18 @@ function Ci(e) {
3434
3448
  return String(e);
3435
3449
  }
3436
3450
  }
3437
- function wi(e) {
3438
- return Ci(e) !== void 0;
3439
- }
3440
3451
  function Ti(e) {
3452
+ return wi(e) !== void 0;
3453
+ }
3454
+ function Ei(e) {
3441
3455
  let t = {};
3442
3456
  for (let [n, r] of Object.entries(M(e))) {
3443
- let e = Ci(r);
3457
+ let e = wi(r);
3444
3458
  e !== void 0 && (t[n] = e);
3445
3459
  }
3446
3460
  return t;
3447
3461
  }
3448
- function Ei(e, t) {
3462
+ function Di(e, t) {
3449
3463
  let n = {}, r = t, i = n;
3450
3464
  for (let t of e) {
3451
3465
  if (!t.filter) continue;
@@ -3454,56 +3468,56 @@ function Ei(e, t) {
3454
3468
  }
3455
3469
  return n;
3456
3470
  }
3457
- function Di(e) {
3471
+ function Oi(e) {
3458
3472
  let t = {};
3459
3473
  for (let n of e) n.filter && (t[ur(n)] = n.filter.type === "multi-select" ? [] : void 0);
3460
3474
  return t;
3461
3475
  }
3462
- function Oi(e, t, n = {}) {
3476
+ function ki(e, t, n = {}) {
3463
3477
  let r = e, i = new Set(n.booleanArrayKeys ?? []), a = {};
3464
3478
  for (let e of Object.keys(r)) {
3465
- let n = ki(t[e], Array.isArray(r[e]));
3466
- a[e] = i.has(e) && n !== void 0 ? Ai(n) : n;
3479
+ let n = Ai(t[e], Array.isArray(r[e]));
3480
+ a[e] = i.has(e) && n !== void 0 ? ji(n) : n;
3467
3481
  }
3468
3482
  return a;
3469
3483
  }
3470
- function ki(e, t) {
3471
- if (e != null) return !t && typeof e == "string" ? e.includes(",") ? e.split(",") : e : yi(e);
3484
+ function Ai(e, t) {
3485
+ if (e != null) return !t && typeof e == "string" ? e.includes(",") ? e.split(",") : e : bi(e);
3472
3486
  }
3473
- function Ai(e) {
3487
+ function ji(e) {
3474
3488
  return (Array.isArray(e) ? e : [e]).flatMap((e) => e === "true" ? [!0] : e === "false" ? [!1] : []);
3475
3489
  }
3476
- function ji(e) {
3490
+ function Mi(e) {
3477
3491
  let t = {};
3478
3492
  for (let [n, r] of Object.entries(M(e))) Array.isArray(r) ? r.length > 0 && (t[n] = r) : t[n] = r === !0 ? "true" : r || void 0;
3479
3493
  return t;
3480
3494
  }
3481
- function Mi(e) {
3495
+ function Ni(e) {
3482
3496
  let t = {};
3483
3497
  return Object.keys(e).forEach((n) => {
3484
3498
  let r = e[n];
3485
3499
  r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
3486
3500
  }), t;
3487
3501
  }
3488
- function Ni(e, t) {
3502
+ function Pi(e, t) {
3489
3503
  let n = e, r = Object.keys(e), i = T(((e) => {
3490
3504
  let t = {};
3491
3505
  for (let i of r) {
3492
3506
  let r = e[i];
3493
- r !== void 0 && (t[i] = ki(r, Array.isArray(n[i])));
3507
+ r !== void 0 && (t[i] = Ai(r, Array.isArray(n[i])));
3494
3508
  }
3495
3509
  return t;
3496
- })(t.route.query)), a = Pi(e, { syncWith: i }), o = a.filters;
3497
- return V(() => Oi(e, t.route.query, t), (e) => {
3510
+ })(t.route.query)), a = Fi(e, { syncWith: i }), o = a.filters;
3511
+ return V(() => ki(e, t.route.query, t), (e) => {
3498
3512
  let t = e;
3499
- for (let e of r) xi(o[e], t[e]) || (o[e] = t[e]);
3513
+ for (let e of r) Si(o[e], t[e]) || (o[e] = t[e]);
3500
3514
  }, { immediate: !0 }), V(i, (e) => {
3501
3515
  let n = { ...t.route.query };
3502
- for (let t of r) e[t] === void 0 ? delete n[t] : n[t] = bi(e[t]);
3503
- Si(t.route.query, n) || t.router.replace({ query: n });
3516
+ for (let t of r) e[t] === void 0 ? delete n[t] : n[t] = xi(e[t]);
3517
+ Ci(t.route.query, n) || t.router.replace({ query: n });
3504
3518
  }), a;
3505
3519
  }
3506
- function Pi(e, t = {}) {
3520
+ function Fi(e, t = {}) {
3507
3521
  let n = Object.keys(e), i = w({ ...e }), a = t.syncWith;
3508
3522
  if (a) {
3509
3523
  if (a.value) {
@@ -3514,12 +3528,12 @@ function Pi(e, t = {}) {
3514
3528
  });
3515
3529
  }
3516
3530
  V(i, (e) => {
3517
- a.value = Ti(e);
3531
+ a.value = Ei(e);
3518
3532
  }, { deep: !0 });
3519
3533
  }
3520
3534
  return {
3521
3535
  filters: i,
3522
- isFiltered: r(() => n.some((e) => wi(i[e]))),
3536
+ isFiltered: r(() => n.some((e) => Ti(i[e]))),
3523
3537
  clearFilters: () => {
3524
3538
  Object.keys(i).forEach((e) => {
3525
3539
  i[e] = void 0;
@@ -3527,96 +3541,96 @@ function Pi(e, t = {}) {
3527
3541
  },
3528
3542
  filteredColumns: r(() => {
3529
3543
  let e = {};
3530
- for (let t of n) e[t] = wi(i[t]);
3544
+ for (let t of n) e[t] = Ti(i[t]);
3531
3545
  return e;
3532
3546
  })
3533
3547
  };
3534
3548
  }
3535
3549
  //#endregion
3536
3550
  //#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
3537
- var Fi = { class: "g-table-outer-wrap" }, Ii = {
3551
+ var Ii = { class: "g-table-outer-wrap" }, Li = {
3538
3552
  key: 0,
3539
3553
  class: "g-table-controls"
3540
- }, Li = { class: "g-table-control-actions" }, Ri = {
3554
+ }, Ri = { class: "g-table-control-actions" }, zi = {
3541
3555
  key: 0,
3542
3556
  class: "g-sort-builder-wrap"
3543
- }, zi = {
3557
+ }, Bi = {
3544
3558
  key: 0,
3545
3559
  class: "g-sort-builder-count"
3546
- }, Bi = {
3560
+ }, Vi = {
3547
3561
  key: 0,
3548
3562
  class: "g-sort-builder-list"
3549
- }, Vi = ["data-sort-row-key", "aria-label"], Hi = {
3563
+ }, Hi = ["data-sort-row-key", "aria-label"], Ui = {
3550
3564
  class: "g-sort-builder-rule-priority",
3551
3565
  "aria-hidden": "true"
3552
- }, Ui = { class: "g-sort-builder-rule-label" }, Wi = ["aria-label", "onClick"], Gi = { class: "g-visually-hidden" }, Ki = {
3566
+ }, Wi = { class: "g-sort-builder-rule-label" }, Gi = ["aria-label", "onClick"], Ki = { class: "g-visually-hidden" }, qi = {
3553
3567
  class: "sort-indicator",
3554
3568
  "aria-hidden": "true"
3555
- }, qi = ["aria-label", "onClick"], Ji = {
3569
+ }, Ji = ["aria-label", "onClick"], Yi = {
3556
3570
  key: 1,
3557
3571
  class: "g-sort-builder-empty"
3558
- }, Yi = {
3572
+ }, Xi = {
3559
3573
  key: 2,
3560
3574
  class: "g-sort-builder-add"
3561
- }, Xi = { class: "g-sort-builder-add-list" }, Zi = { class: "g-sort-builder-add-name" }, Qi = { class: "g-sort-builder-add-actions" }, $i = ["aria-label", "onClick"], ea = ["aria-label", "onClick"], ta = {
3575
+ }, Zi = { class: "g-sort-builder-add-list" }, Qi = { class: "g-sort-builder-add-name" }, $i = { class: "g-sort-builder-add-actions" }, ea = ["aria-label", "onClick"], ta = ["aria-label", "onClick"], na = {
3562
3576
  class: "sort-indicator",
3563
3577
  "aria-hidden": "true"
3564
- }, na = {
3578
+ }, ra = {
3565
3579
  xmlns: "http://www.w3.org/2000/svg",
3566
3580
  viewBox: "0 0 640 640",
3567
3581
  height: "1.25em",
3568
3582
  style: { transform: "rotate(180deg)" }
3569
- }, ra = {
3583
+ }, ia = {
3570
3584
  key: 1,
3571
3585
  class: "g-column-visibility-wrap"
3572
- }, ia = {
3586
+ }, aa = {
3573
3587
  xmlns: "http://www.w3.org/2000/svg",
3574
3588
  viewBox: "0 0 640 640",
3575
3589
  height: "1.5em",
3576
3590
  style: { transform: "rotate(90deg)" },
3577
3591
  "aria-hidden": "true"
3578
- }, aa = ["aria-labelledby"], oa = { class: "g-column-visibility-header" }, sa = ["id"], ca = { class: "g-column-visibility-legend-action" }, la = { class: "g-column-visibility-list" }, ua = ["checked", "onChange"], da = {
3592
+ }, oa = ["aria-labelledby"], sa = { class: "g-column-visibility-header" }, ca = ["id"], la = { class: "g-column-visibility-legend-action" }, ua = { class: "g-column-visibility-list" }, da = ["checked", "onChange"], fa = {
3579
3593
  key: 2,
3580
3594
  class: "g-table-custom-controls"
3581
- }, fa = { class: "g-clear-filters-wrap" }, pa = {
3595
+ }, pa = { class: "g-clear-filters-wrap" }, ma = {
3582
3596
  key: 0,
3583
3597
  class: "pagination"
3584
- }, ma = { class: "g-table-controls-right" }, ha = { class: "g-result-count" }, ga = ["aria-label", "aria-rowcount"], _a = { key: 0 }, va = ["data-column-key"], ya = { class: "g-table-head" }, ba = { "aria-rowindex": "1" }, xa = {
3598
+ }, ha = { class: "g-table-controls-right" }, ga = { class: "g-result-count" }, _a = ["aria-label", "aria-rowcount"], va = { key: 0 }, ya = ["data-column-key"], ba = { class: "g-table-head" }, xa = { "aria-rowindex": "1" }, Sa = {
3585
3599
  key: 0,
3586
3600
  scope: "col",
3587
3601
  class: "g-th g-th-checkbox"
3588
- }, Sa = [
3602
+ }, Ca = [
3589
3603
  "checked",
3590
3604
  "indeterminate",
3591
3605
  "aria-label"
3592
- ], Ca = ["id", "aria-sort"], wa = { class: "th-inner" }, Ta = ["onClick"], Ea = {
3606
+ ], wa = ["id", "aria-sort"], Ta = { class: "th-inner" }, Ea = ["onClick"], Da = {
3593
3607
  key: 0,
3594
3608
  class: "sort-indicator",
3595
3609
  "aria-hidden": "true"
3596
- }, Da = {
3610
+ }, Oa = {
3597
3611
  key: 1,
3598
3612
  class: "g-visually-hidden"
3599
- }, Oa = {
3613
+ }, ka = {
3600
3614
  key: 1,
3601
3615
  class: "g-column-head"
3602
- }, ka = ["onClick", "aria-label"], Aa = {
3616
+ }, Aa = ["onClick", "aria-label"], ja = {
3603
3617
  key: 1,
3604
3618
  class: "g-filter-search",
3605
3619
  role: "search"
3606
- }, ja = [
3620
+ }, Ma = [
3607
3621
  "value",
3608
3622
  "onInput",
3609
3623
  "placeholder",
3610
3624
  "aria-label"
3611
- ], Ma = { key: 2 }, Na = { class: "g-filter-toggle" }, Pa = [
3625
+ ], Na = { key: 2 }, Pa = { class: "g-filter-toggle" }, Fa = [
3612
3626
  "checked",
3613
3627
  "onChange",
3614
3628
  "id",
3615
3629
  "aria-describedby"
3616
- ], Fa = ["for"], Ia = ["id"], La = {
3630
+ ], Ia = ["for"], La = ["id"], Ra = {
3617
3631
  key: 4,
3618
3632
  class: "g-multi-select"
3619
- }, Ra = [
3633
+ }, za = [
3620
3634
  "data-column-key",
3621
3635
  "aria-label",
3622
3636
  "aria-valuemax",
@@ -3624,10 +3638,10 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
3624
3638
  "aria-valuetext",
3625
3639
  "onKeydown",
3626
3640
  "onPointerdown"
3627
- ], za = { key: 0 }, Ba = { "aria-rowindex": "2" }, Va = ["colspan"], Ha = {
3641
+ ], Ba = { key: 0 }, Va = { "aria-rowindex": "2" }, Ha = ["colspan"], Ua = {
3628
3642
  key: 1,
3629
3643
  class: "g-bulk-actions-toolbar"
3630
- }, Ua = { class: "g-selected-count" }, Wa = { class: "g-bulk-actions" }, Ga = /* @__PURE__ */ u({
3644
+ }, Wa = { class: "g-selected-count" }, Ga = { class: "g-bulk-actions" }, Ka = /* @__PURE__ */ u({
3631
3645
  __name: "GTable",
3632
3646
  props: /*@__PURE__*/ p({
3633
3647
  label: {},
@@ -3684,7 +3698,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
3684
3698
  "update:selectedRows"
3685
3699
  ]),
3686
3700
  setup(t, { emit: n }) {
3687
- let u = R(t, "sort"), f = R(t, "filter"), p = R(t, "columnState"), m = R(t, "selectedRows"), v = t, x = n, { isFiltered: C, clearFilters: w } = v.filtering ?? Pi({}), O = r(() => v.data.map((e) => e.key)), k = r(() => m.value.filter((e) => O.value.includes(e))), A = r(() => !v.bulkSelectionEnabled || v.data.length === 0 ? !1 : k.value.length === O.value.length), N = r(() => !v.bulkSelectionEnabled || v.data.length === 0 ? !1 : k.value.length > 0 && k.value.length < O.value.length), P = T(null);
3701
+ let u = R(t, "sort"), f = R(t, "filter"), p = R(t, "columnState"), m = R(t, "selectedRows"), v = t, x = n, { isFiltered: C, clearFilters: w } = v.filtering ?? Fi({}), O = r(() => v.data.map((e) => e.key)), k = r(() => m.value.filter((e) => O.value.includes(e))), A = r(() => !v.bulkSelectionEnabled || v.data.length === 0 ? !1 : k.value.length === O.value.length), N = r(() => !v.bulkSelectionEnabled || v.data.length === 0 ? !1 : k.value.length > 0 && k.value.length < O.value.length), P = T(null);
3688
3702
  function I() {
3689
3703
  if (A.value) m.value = m.value.filter((e) => !O.value.includes(e));
3690
3704
  else {
@@ -3959,10 +3973,10 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
3959
3973
  }), b(() => {
3960
3974
  v.rowClickable && v.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
3961
3975
  for (let e of v.columns) e.editable && e.display && console.warn(`GTable: Column "${String(e.key)}" has both 'editable' and 'display' configured. 'display' will be ignored.`);
3962
- }), (n, r) => (S(), o("div", Fi, [
3963
- Xe.value ? (S(), o("div", Ii, [
3964
- s("div", Li, [
3965
- ce.value ? (S(), o("div", Ri, [l(at, null, {
3976
+ }), (n, r) => (S(), o("div", Ii, [
3977
+ Xe.value ? (S(), o("div", Li, [
3978
+ s("div", Ri, [
3979
+ ce.value ? (S(), o("div", zi, [l(at, null, {
3966
3980
  trigger: U(({ toggle: e }) => [l($, {
3967
3981
  size: "small",
3968
3982
  class: g(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": Z.value.length > 0 }]),
@@ -3978,7 +3992,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
3978
3992
  }, [s("path", {
3979
3993
  fill: "currentColor",
3980
3994
  d: "M130.4 268.2C135.4 280.2 147 288 160 288L480 288C492.9 288 504.6 280.2 509.6 268.2C514.6 256.2 511.8 242.5 502.7 233.3L342.7 73.3C330.2 60.8 309.9 60.8 297.4 73.3L137.4 233.3C128.2 242.5 125.5 256.2 130.5 268.2zM130.4 371.7C125.4 383.7 128.2 397.4 137.3 406.6L297.3 566.6C309.8 579.1 330.1 579.1 342.6 566.6L502.6 406.6C511.8 397.4 514.5 383.7 509.5 371.7C504.5 359.7 492.9 352 480 352L160 352C147.1 352 135.4 359.8 130.4 371.8z"
3981
- })], -1), Z.value.length ? (S(), o("span", zi, j(Z.value.length), 1)) : a("", !0)]),
3995
+ })], -1), Z.value.length ? (S(), o("span", Bi, j(Z.value.length), 1)) : a("", !0)]),
3982
3996
  _: 1
3983
3997
  }, 8, ["class", "onClick"])]),
3984
3998
  default: U(() => [s("fieldset", {
@@ -3990,21 +4004,21 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
3990
4004
  }, [
3991
4005
  r[8] ||= s("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
3992
4006
  r[9] ||= s("p", { class: "g-sort-builder-help" }, " Click a column header to change the primary sort. Use Shift-click as a shortcut to add or update secondary sorts. ", -1),
3993
- Z.value.length ? (S(), o("ol", Bi, [(S(!0), o(e, null, E(Z.value, (e, t) => (S(), o("li", {
4007
+ Z.value.length ? (S(), o("ol", Vi, [(S(!0), o(e, null, E(Z.value, (e, t) => (S(), o("li", {
3994
4008
  key: e.key,
3995
4009
  class: "g-sort-builder-rule",
3996
4010
  tabindex: "-1",
3997
4011
  "data-sort-row-key": String(e.key),
3998
4012
  "aria-label": `${de(e.key)} ${me(e.order)} sort, priority ${t + 1}`
3999
4013
  }, [
4000
- s("span", Hi, j(t + 1), 1),
4001
- s("span", Ui, j(de(e.key)), 1),
4014
+ s("span", Ui, j(t + 1), 1),
4015
+ s("span", Wi, j(de(e.key)), 1),
4002
4016
  s("button", {
4003
4017
  type: "button",
4004
4018
  class: "g-sort-builder-direction",
4005
4019
  "aria-label": `Toggle ${de(e.key)} sort direction`,
4006
4020
  onClick: (t) => ye(e.key)
4007
- }, [s("span", Gi, j(me(e.order)), 1), s("span", Ki, [(S(), o("svg", {
4021
+ }, [s("span", Ki, j(me(e.order)), 1), s("span", qi, [(S(), o("svg", {
4008
4022
  xmlns: "http://www.w3.org/2000/svg",
4009
4023
  viewBox: "0 0 640 640",
4010
4024
  height: "1.25em",
@@ -4012,18 +4026,18 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4012
4026
  }, [...r[2] ||= [s("path", {
4013
4027
  fill: "currentColor",
4014
4028
  d: "M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"
4015
- }, null, -1)]], 4))])], 8, Wi),
4029
+ }, null, -1)]], 4))])], 8, Gi),
4016
4030
  s("button", {
4017
4031
  type: "button",
4018
4032
  class: "g-sort-builder-remove",
4019
4033
  "aria-label": `Remove ${de(e.key)} sort`,
4020
4034
  onClick: (t) => be(e.key)
4021
- }, " Remove ", 8, qi)
4022
- ], 8, Vi))), 128))])) : (S(), o("p", Ji, " No active sort rules. ")),
4023
- Q.value.length ? (S(), o("div", Yi, [r[6] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", Xi, [(S(!0), o(e, null, E(Q.value, (e) => (S(), o("li", {
4035
+ }, " Remove ", 8, Ji)
4036
+ ], 8, Hi))), 128))])) : (S(), o("p", Yi, " No active sort rules. ")),
4037
+ Q.value.length ? (S(), o("div", Xi, [r[6] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", Zi, [(S(!0), o(e, null, E(Q.value, (e) => (S(), o("li", {
4024
4038
  key: e.key,
4025
4039
  class: "g-sort-builder-add-item"
4026
- }, [s("span", Zi, j(e.label), 1), s("div", Qi, [s("button", {
4040
+ }, [s("span", Qi, j(e.label), 1), s("div", $i, [s("button", {
4027
4041
  type: "button",
4028
4042
  class: "g-sort-builder-direction",
4029
4043
  "aria-label": `Add ${e.label} ascending sort`,
@@ -4038,15 +4052,15 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4038
4052
  }, [s("path", {
4039
4053
  fill: "currentColor",
4040
4054
  d: "M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"
4041
- })])], -1)]], 8, $i), s("button", {
4055
+ })])], -1)]], 8, ea), s("button", {
4042
4056
  type: "button",
4043
4057
  class: "g-sort-builder-direction",
4044
4058
  "aria-label": `Add ${e.label} descending sort`,
4045
4059
  onClick: (t) => ve(e.key, -1)
4046
- }, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", ta, [(S(), o("svg", na, [...r[4] ||= [s("path", {
4060
+ }, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", na, [(S(), o("svg", ra, [...r[4] ||= [s("path", {
4047
4061
  fill: "currentColor",
4048
4062
  d: "M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"
4049
- }, null, -1)]]))])], 8, ea)])]))), 128))])])) : a("", !0),
4063
+ }, null, -1)]]))])], 8, ta)])]))), 128))])])) : a("", !0),
4050
4064
  Z.value.length ? (S(), i($, {
4051
4065
  key: 3,
4052
4066
  outlined: "",
@@ -4060,14 +4074,14 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4060
4074
  ], 512)]),
4061
4075
  _: 1
4062
4076
  })])) : a("", !0),
4063
- Ue.value ? (S(), o("div", ra, [l(at, null, {
4077
+ Ue.value ? (S(), o("div", ia, [l(at, null, {
4064
4078
  trigger: U(({ toggle: e }) => [l($, {
4065
4079
  size: "small",
4066
4080
  class: g(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": He.value }]),
4067
4081
  "aria-label": "Choose visible columns",
4068
4082
  onClick: e
4069
4083
  }, {
4070
- default: U(() => [(S(), o("svg", ia, [...r[10] ||= [s("path", {
4084
+ default: U(() => [(S(), o("svg", aa, [...r[10] ||= [s("path", {
4071
4085
  fill: "currentColor",
4072
4086
  d: "M64 160C64 142.3 78.3 128 96 128L480 128C497.7 128 512 142.3 512 160C512 177.7 497.7 192 480 192L96 192C78.3 192 64 177.7 64 160zM128 320C128 302.3 142.3 288 160 288L544 288C561.7 288 576 302.3 576 320C576 337.7 561.7 352 544 352L160 352C142.3 352 128 337.7 128 320zM512 480C512 497.7 497.7 512 480 512L96 512C78.3 512 64 497.7 64 480C64 462.3 78.3 448 96 448L480 448C497.7 448 512 462.3 512 480z"
4073
4087
  }, null, -1)]]))]),
@@ -4076,10 +4090,10 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4076
4090
  default: U(() => [s("fieldset", {
4077
4091
  class: "g-column-visibility-popover",
4078
4092
  "aria-labelledby": `${F(G)}-column-visibility-heading`
4079
- }, [s("div", oa, [s("span", {
4093
+ }, [s("div", sa, [s("span", {
4080
4094
  id: `${F(G)}-column-visibility-heading`,
4081
4095
  class: "g-column-visibility-heading"
4082
- }, " Shown columns ", 8, sa), s("span", ca, [l($, {
4096
+ }, " Shown columns ", 8, ca), s("span", la, [l($, {
4083
4097
  text: "",
4084
4098
  size: "small",
4085
4099
  class: g(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !He.value }]),
@@ -4087,18 +4101,18 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4087
4101
  }, {
4088
4102
  default: U(() => [...r[11] ||= [c(" Show All ", -1)]]),
4089
4103
  _: 1
4090
- }, 8, ["class"])])]), s("div", la, [(S(!0), o(e, null, E(t.columns, (e) => (S(), o("label", {
4104
+ }, 8, ["class"])])]), s("div", ua, [(S(!0), o(e, null, E(t.columns, (e) => (S(), o("label", {
4091
4105
  key: e.key,
4092
4106
  class: "g-column-visibility-option"
4093
4107
  }, [s("input", {
4094
4108
  checked: Ke(e),
4095
4109
  type: "checkbox",
4096
4110
  onChange: (t) => qe(e, t.target.checked)
4097
- }, null, 40, ua), s("span", null, j(e.label), 1)]))), 128))])], 8, aa)]),
4111
+ }, null, 40, da), s("span", null, j(e.label), 1)]))), 128))])], 8, oa)]),
4098
4112
  _: 1
4099
4113
  })])) : a("", !0),
4100
- We.value ? (S(), o("div", da, [D(n.$slots, "controls")])) : a("", !0),
4101
- s("div", fa, [F(C) ? (S(), i($, {
4114
+ We.value ? (S(), o("div", fa, [D(n.$slots, "controls")])) : a("", !0),
4115
+ s("div", pa, [F(C) ? (S(), i($, {
4102
4116
  key: 0,
4103
4117
  outlined: "",
4104
4118
  size: "small",
@@ -4118,7 +4132,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4118
4132
  _: 1
4119
4133
  }, 8, ["onClick"])) : a("", !0)])
4120
4134
  ]),
4121
- Ye.value ? (S(), o("div", pa, [l(hi, {
4135
+ Ye.value ? (S(), o("div", ma, [l(gi, {
4122
4136
  start: t.startIndex,
4123
4137
  "page-size": t.pageSize,
4124
4138
  "page-sizes": t.pageSizes,
@@ -4131,7 +4145,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4131
4145
  "page-sizes",
4132
4146
  "total"
4133
4147
  ])])) : a("", !0),
4134
- s("div", ma, [s("span", ha, j(Ge.value) + " results", 1), D(n.$slots, "right-controls")])
4148
+ s("div", ha, [s("span", ga, j(Ge.value) + " results", 1), D(n.$slots, "right-controls")])
4135
4149
  ])) : a("", !0),
4136
4150
  s("div", {
4137
4151
  ref_key: "tableWrapRef",
@@ -4145,19 +4159,19 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4145
4159
  "aria-label": t.label,
4146
4160
  "aria-rowcount": Ge.value
4147
4161
  }, [
4148
- s("colgroup", null, [t.bulkSelectionEnabled ? (S(), o("col", _a)) : a("", !0), (S(!0), o(e, null, E(Be.value, (e) => (S(), o("col", {
4162
+ s("colgroup", null, [t.bulkSelectionEnabled ? (S(), o("col", va)) : a("", !0), (S(!0), o(e, null, E(Be.value, (e) => (S(), o("col", {
4149
4163
  key: e.key,
4150
4164
  "data-column-key": String(e.key),
4151
4165
  style: _(Ie(e))
4152
- }, null, 12, va))), 128))]),
4153
- s("thead", ya, [s("tr", ba, [t.bulkSelectionEnabled ? (S(), o("th", xa, [s("input", {
4166
+ }, null, 12, ya))), 128))]),
4167
+ s("thead", ba, [s("tr", xa, [t.bulkSelectionEnabled ? (S(), o("th", Sa, [s("input", {
4154
4168
  type: "checkbox",
4155
4169
  checked: A.value,
4156
4170
  indeterminate: N.value,
4157
4171
  onChange: I,
4158
4172
  "aria-label": A.value ? "Deselect all rows" : "Select all rows",
4159
4173
  class: "g-bulk-select-checkbox"
4160
- }, null, 40, Sa)])) : a("", !0), (S(!0), o(e, null, E(Be.value, (e) => (S(), o("th", {
4174
+ }, null, 40, Ca)])) : a("", !0), (S(!0), o(e, null, E(Be.value, (e) => (S(), o("th", {
4161
4175
  key: e.key,
4162
4176
  id: `${F(G)}-th-${String(e.key)}`,
4163
4177
  "aria-sort": fe(e.key),
@@ -4168,7 +4182,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4168
4182
  { filtered: et(e) }
4169
4183
  ]),
4170
4184
  scope: "col"
4171
- }, [s("div", wa, [e.sortable ? (S(), o("button", {
4185
+ }, [s("div", Ta, [e.sortable ? (S(), o("button", {
4172
4186
  key: 0,
4173
4187
  type: "button",
4174
4188
  class: "g-column-head",
@@ -4176,7 +4190,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4176
4190
  }, [
4177
4191
  r[14] ||= s("span", { class: "g-visually-hidden" }, "Sort by ", -1),
4178
4192
  c(" " + j(e.label) + " ", 1),
4179
- le(e.key) === -1 ? a("", !0) : (S(), o("span", Ea, [(S(), o("svg", {
4193
+ le(e.key) === -1 ? a("", !0) : (S(), o("span", Da, [(S(), o("svg", {
4180
4194
  xmlns: "http://www.w3.org/2000/svg",
4181
4195
  viewBox: "0 0 640 640",
4182
4196
  height: "1.5em",
@@ -4185,8 +4199,8 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4185
4199
  fill: "currentColor",
4186
4200
  d: "M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"
4187
4201
  }, null, -1)]], 4))])),
4188
- le(e.key) === -1 ? a("", !0) : (S(), o("span", Da, j(pe(e.key)), 1))
4189
- ], 8, Ta)) : (S(), o("span", Oa, j(e.label), 1)), e.filter ? (S(), i(at, { key: 2 }, {
4202
+ le(e.key) === -1 ? a("", !0) : (S(), o("span", Oa, j(pe(e.key)), 1))
4203
+ ], 8, Ea)) : (S(), o("span", ka, j(e.label), 1)), e.filter ? (S(), i(at, { key: 2 }, {
4190
4204
  trigger: U(({ toggle: t }) => [s("button", {
4191
4205
  onClick: ne(t, ["stop"]),
4192
4206
  "aria-label": et(e) ? `Filter ${e.label} column (filtered)` : `Filter ${e.label} column`,
@@ -4200,7 +4214,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4200
4214
  }, [s("path", {
4201
4215
  fill: "currentColor",
4202
4216
  d: "M96 128C83.1 128 71.4 135.8 66.4 147.8C61.4 159.8 64.2 173.5 73.4 182.6L256 365.3L256 480C256 488.5 259.4 496.6 265.4 502.6L329.4 566.6C338.6 575.8 352.3 578.5 364.3 573.5C376.3 568.5 384 556.9 384 544L384 365.3L566.6 182.7C575.8 173.5 578.5 159.8 573.5 147.8C568.5 135.8 556.9 128 544 128L96 128z"
4203
- })], -1)]], 10, ka)]),
4217
+ })], -1)]], 10, Aa)]),
4204
4218
  default: U(() => [e.filter.type === "select" ? (S(), i(Gt, {
4205
4219
  key: 0,
4206
4220
  "model-value": st(e),
@@ -4216,7 +4230,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4216
4230
  "onUpdate:modelValue",
4217
4231
  "options",
4218
4232
  "search-description"
4219
- ])) : e.filter.type === "search" ? (S(), o("div", Aa, [r[16] ||= s("span", {
4233
+ ])) : e.filter.type === "search" ? (S(), o("div", ja, [r[16] ||= s("span", {
4220
4234
  class: "g-filter-search-icon",
4221
4235
  "aria-hidden": "true"
4222
4236
  }, [s("svg", {
@@ -4233,20 +4247,20 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4233
4247
  onInput: (t) => $e(e, t.target.value),
4234
4248
  placeholder: e.filter.placeholder,
4235
4249
  "aria-label": `Search ${e.label}`
4236
- }, null, 40, ja)])) : e.filter.type === "toggle" ? (S(), o("div", Ma, [s("div", Na, [
4250
+ }, null, 40, Ma)])) : e.filter.type === "toggle" ? (S(), o("div", Na, [s("div", Pa, [
4237
4251
  s("input", {
4238
4252
  type: "checkbox",
4239
4253
  checked: Qe(e) === !0,
4240
4254
  onChange: (t) => $e(e, t.target.checked),
4241
4255
  id: `${F(G)}-filter-${String(e.key)}`,
4242
4256
  "aria-describedby": e.filter.description ? `${F(G)}-filter-description-${String(e.key)}` : void 0
4243
- }, null, 40, Pa),
4244
- s("label", { for: `${F(G)}-filter-${String(e.key)}` }, j(e.filter.label), 9, Fa),
4257
+ }, null, 40, Fa),
4258
+ s("label", { for: `${F(G)}-filter-${String(e.key)}` }, j(e.filter.label), 9, Ia),
4245
4259
  e.filter.description ? (S(), o("span", {
4246
4260
  key: 0,
4247
4261
  class: "g-filter-description",
4248
4262
  id: `${F(G)}-filter-description-${String(e.key)}`
4249
- }, j(e.filter.description), 9, Ia)) : a("", !0)
4263
+ }, j(e.filter.description), 9, La)) : a("", !0)
4250
4264
  ])])) : e.filter.type === "multi-select" && e.filter.searchable ? (S(), i(Fr, {
4251
4265
  key: 3,
4252
4266
  "model-value": lt(e),
@@ -4262,7 +4276,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4262
4276
  "options",
4263
4277
  "placeholder",
4264
4278
  "search-description"
4265
- ])) : e.filter.type === "multi-select" ? (S(), o("div", La, [l(Kr, {
4279
+ ])) : e.filter.type === "multi-select" ? (S(), o("div", Ra, [l(Kr, {
4266
4280
  "model-value": lt(e),
4267
4281
  "onUpdate:modelValue": (t) => ut(e, t),
4268
4282
  options: ot(e),
@@ -4298,11 +4312,11 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4298
4312
  onClick: r[0] ||= ne(() => {}, ["stop", "prevent"]),
4299
4313
  onKeydown: (t) => Fe(t, e.key),
4300
4314
  onPointerdown: (t) => Pe(t, e.key)
4301
- }, null, 42, Ra)) : a("", !0)], 10, Ca))), 128))])]),
4302
- t.data.length === 0 ? (S(), o("tbody", za, [s("tr", Ba, [s("td", {
4315
+ }, null, 42, za)) : a("", !0)], 10, wa))), 128))])]),
4316
+ t.data.length === 0 ? (S(), o("tbody", Ba, [s("tr", Va, [s("td", {
4303
4317
  class: "g-table-empty",
4304
4318
  colspan: Be.value.length + +!!t.bulkSelectionEnabled
4305
- }, [D(n.$slots, "empty")], 8, Va)])])) : (S(), i(lr, {
4319
+ }, [D(n.$slots, "empty")], 8, Ha)])])) : (S(), i(lr, {
4306
4320
  key: 1,
4307
4321
  data: t.data,
4308
4322
  columns: Be.value,
@@ -4331,8 +4345,8 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4331
4345
  "table-id",
4332
4346
  "change-tracker"
4333
4347
  ]))
4334
- ], 10, ga)], 512),
4335
- t.bulkSelectionEnabled && m.value.length > 0 ? (S(), o("div", Ha, [s("span", Ua, j(m.value.length) + " row" + j(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Wa, [(S(!0), o(e, null, E(t.bulkActions, (e) => (S(), o("li", { key: e.id }, [l($, {
4348
+ ], 10, _a)], 512),
4349
+ t.bulkSelectionEnabled && m.value.length > 0 ? (S(), o("div", Ua, [s("span", Wa, j(m.value.length) + " row" + j(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Ga, [(S(!0), o(e, null, E(t.bulkActions, (e) => (S(), o("li", { key: e.id }, [l($, {
4336
4350
  theme: e.theme || "accent",
4337
4351
  onClick: (t) => V(e.id),
4338
4352
  size: "small"
@@ -4342,7 +4356,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4342
4356
  }, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
4343
4357
  ]));
4344
4358
  }
4345
- }), Ka = ["id"], qa = { class: "g-modal-inner" }, Ja = { class: "g-modal-header" }, Ya = ["id"], Xa = ["id"], Za = /* @__PURE__ */ u({
4359
+ }), qa = ["id"], Ja = { class: "g-modal-inner" }, Ya = { class: "g-modal-header" }, Xa = ["id"], Za = ["id"], Qa = /* @__PURE__ */ u({
4346
4360
  __name: "GModal",
4347
4361
  props: {
4348
4362
  label: {},
@@ -4386,12 +4400,12 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4386
4400
  ref_key: "dialog",
4387
4401
  ref: f,
4388
4402
  style: { zIndex: F(x) }
4389
- }), [s("div", qa, [s("div", Ja, [e.hiddenLabel ? a("", !0) : (S(), o("h2", {
4403
+ }), [s("div", Ja, [s("div", Ya, [e.hiddenLabel ? a("", !0) : (S(), o("h2", {
4390
4404
  key: 0,
4391
4405
  id: "modal-label-" + F(h),
4392
4406
  class: "g-modal-label",
4393
4407
  tabindex: "-1"
4394
- }, j(e.label), 9, Ya)), s("button", {
4408
+ }, j(e.label), 9, Xa)), s("button", {
4395
4409
  class: "g-modal-close",
4396
4410
  onClick: E,
4397
4411
  "aria-label": "Close"
@@ -4406,36 +4420,36 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4406
4420
  })], -1)]])]), s("div", {
4407
4421
  id: "modal-description-" + F(h),
4408
4422
  class: "g-modal-content"
4409
- }, [D(r.$slots, "default")], 8, Xa)])], 16, Ka)]),
4423
+ }, [D(r.$slots, "default")], 8, Za)])], 16, qa)]),
4410
4424
  _: 3
4411
4425
  })]));
4412
4426
  }
4413
- }), Qa = /* @__PURE__ */ u({
4427
+ }), $a = /* @__PURE__ */ u({
4414
4428
  __name: "GDetailList",
4415
4429
  props: { variant: { default: "grid" } },
4416
4430
  setup(e) {
4417
4431
  let t = e;
4418
4432
  return (e, n) => (S(), o("dl", { class: g(["g-detail-list", `g-detail-list--${t.variant}`]) }, [D(e.$slots, "default")], 2));
4419
4433
  }
4420
- }), $a = { class: "g-detail-list-item" }, eo = { class: "g-detail-list-item__label" }, to = { class: "g-detail-list-item__value" }, no = /* @__PURE__ */ u({
4434
+ }), eo = { class: "g-detail-list-item" }, to = { class: "g-detail-list-item__label" }, no = { class: "g-detail-list-item__value" }, ro = /* @__PURE__ */ u({
4421
4435
  __name: "GDetailListItem",
4422
4436
  props: { label: {} },
4423
4437
  setup(e) {
4424
- return (t, n) => (S(), o("div", $a, [s("dt", eo, [D(t.$slots, "label", {}, () => [c(j(e.label), 1)])]), s("dd", to, [D(t.$slots, "default")])]));
4438
+ return (t, n) => (S(), o("div", eo, [s("dt", to, [D(t.$slots, "label", {}, () => [c(j(e.label), 1)])]), s("dd", no, [D(t.$slots, "default")])]));
4425
4439
  }
4426
- }), ro = {
4440
+ }), io = {
4427
4441
  key: 0,
4428
4442
  class: "g-scroll-lock-overlay"
4429
- }, io = /* @__PURE__ */ u({
4443
+ }, ao = /* @__PURE__ */ u({
4430
4444
  __name: "GOverlay",
4431
4445
  setup(e) {
4432
4446
  let { hasScrollLock: t } = Ge();
4433
4447
  return (e, r) => (S(), i(n, { name: "g-fade" }, {
4434
- default: U(() => [F(t) ? (S(), o("div", ro)) : a("", !0)]),
4448
+ default: U(() => [F(t) ? (S(), o("div", io)) : a("", !0)]),
4435
4449
  _: 1
4436
4450
  }));
4437
4451
  }
4438
- }), ao = { class: "popover-content" }, oo = { class: "year-dropdown" }, so = { class: "month-selector" }, co = /* @__PURE__ */ u({
4452
+ }), oo = { class: "popover-content" }, so = { class: "year-dropdown" }, co = { class: "month-selector" }, lo = /* @__PURE__ */ u({
4439
4453
  __name: "GTermSelectorControl",
4440
4454
  props: /*@__PURE__*/ p({
4441
4455
  termYears: { default: () => ["2026"] },
@@ -4456,7 +4470,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4456
4470
  emits: ["update:modelValue"],
4457
4471
  setup(e) {
4458
4472
  let t = R(e, "modelValue");
4459
- return (n, r) => (S(), o("div", ao, [s("div", oo, [l(Gt, {
4473
+ return (n, r) => (S(), o("div", oo, [s("div", so, [l(Gt, {
4460
4474
  modelValue: t.value.year,
4461
4475
  "onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
4462
4476
  options: e.termYears,
@@ -4465,7 +4479,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4465
4479
  "modelValue",
4466
4480
  "options",
4467
4481
  "label"
4468
- ])]), s("div", so, [l(bt, {
4482
+ ])]), s("div", co, [l(bt, {
4469
4483
  modelValue: t.value.name,
4470
4484
  "onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
4471
4485
  options: e.termNames,
@@ -4477,7 +4491,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4477
4491
  "label"
4478
4492
  ])])]));
4479
4493
  }
4480
- }), lo = { class: "g-term-selector" }, uo = { class: "g-term-label" }, fo = /* @__PURE__ */ u({
4494
+ }), uo = { class: "g-term-selector" }, fo = { class: "g-term-label" }, po = /* @__PURE__ */ u({
4481
4495
  __name: "GTermSelector",
4482
4496
  props: /*@__PURE__*/ p({
4483
4497
  heading: { default: "Period Selection" },
@@ -4499,7 +4513,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4499
4513
  emits: ["update:modelValue"],
4500
4514
  setup(e) {
4501
4515
  let t = R(e, "modelValue"), n = `${L()}-heading`;
4502
- return (r, i) => (S(), o("div", lo, [l(at, { "aria-labelledby": n }, {
4516
+ return (r, i) => (S(), o("div", uo, [l(at, { "aria-labelledby": n }, {
4503
4517
  trigger: U(({ toggle: e, open: n, popoverId: r }) => [l($, {
4504
4518
  class: "g-term-selector-button",
4505
4519
  theme: "none",
@@ -4515,7 +4529,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4515
4529
  xmlns: "http://www.w3.org/2000/svg",
4516
4530
  viewBox: "0 0 640 640"
4517
4531
  }, [s("path", { d: "M224 64C206.3 64 192 78.3 192 96L192 128L160 128C124.7 128 96 156.7 96 192L96 240L544 240L544 192C544 156.7 515.3 128 480 128L448 128L448 96C448 78.3 433.7 64 416 64C398.3 64 384 78.3 384 96L384 128L256 128L256 96C256 78.3 241.7 64 224 64zM96 288L96 480C96 515.3 124.7 544 160 544L480 544C515.3 544 544 515.3 544 480L544 288L96 288z" })])], -1),
4518
- s("span", uo, j(t.value?.name) + " " + j(t.value?.year), 1),
4532
+ s("span", fo, j(t.value?.name) + " " + j(t.value?.year), 1),
4519
4533
  i[2] ||= s("span", { class: "g-caret" }, [s("svg", {
4520
4534
  role: "none",
4521
4535
  xmlns: "http://www.w3.org/2000/svg",
@@ -4532,18 +4546,18 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4532
4546
  id: n,
4533
4547
  class: "g-popover-title",
4534
4548
  tabindex: "-1"
4535
- }, j(e.heading), 1), l(co, m(r.$props, {
4549
+ }, j(e.heading), 1), l(lo, m(r.$props, {
4536
4550
  modelValue: t.value,
4537
4551
  "onUpdate:modelValue": i[0] ||= (e) => t.value = e
4538
4552
  }), null, 16, ["modelValue"])]),
4539
4553
  _: 1
4540
4554
  })]));
4541
4555
  }
4542
- }), po = { class: "g-user-menu" }, mo = [
4556
+ }), mo = { class: "g-user-menu" }, ho = [
4543
4557
  "aria-label",
4544
4558
  "aria-expanded",
4545
4559
  "onClick"
4546
- ], ho = { class: "g-user-menu__popover" }, go = { class: "g-user-menu__list" }, _o = /* @__PURE__ */ u({
4560
+ ], go = { class: "g-user-menu__popover" }, _o = { class: "g-user-menu__list" }, vo = /* @__PURE__ */ u({
4547
4561
  __name: "GUserMenu",
4548
4562
  props: {
4549
4563
  initials: {},
@@ -4555,7 +4569,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4555
4569
  let n = `${L()}-email`, r = T(!1), a = B("emailHeading");
4556
4570
  d()?.appContext?.components?.RouterLink;
4557
4571
  let c = z();
4558
- return (u, d) => (S(), o("div", po, [l(at, {
4572
+ return (u, d) => (S(), o("div", mo, [l(at, {
4559
4573
  modelValue: r.value,
4560
4574
  "onUpdate:modelValue": d[0] ||= (e) => r.value = e,
4561
4575
  minimal: ""
@@ -4567,8 +4581,8 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4567
4581
  "aria-expanded": r.value,
4568
4582
  "aria-haspopup": "menu",
4569
4583
  onClick: e
4570
- }, j(t.initials), 13, mo)]),
4571
- default: U(() => [s("div", ho, [s("h2", {
4584
+ }, j(t.initials), 13, ho)]),
4585
+ default: U(() => [s("div", go, [s("h2", {
4572
4586
  id: n,
4573
4587
  ref_key: "emailHeading",
4574
4588
  ref: a,
@@ -4577,11 +4591,11 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4577
4591
  }, j(t.email), 513), s("nav", {
4578
4592
  class: "g-user-menu__nav",
4579
4593
  "aria-labelledby": n
4580
- }, [s("ul", go, [(S(!0), o(e, null, E(c.default(), (e, t) => (S(), o("li", { key: t }, [(S(), i(O(e)))]))), 128))])])])]),
4594
+ }, [s("ul", _o, [(S(!0), o(e, null, E(c.default(), (e, t) => (S(), o("li", { key: t }, [(S(), i(O(e)))]))), 128))])])])]),
4581
4595
  _: 1
4582
4596
  }, 8, ["modelValue"])]));
4583
4597
  }
4584
- }), vo = /* @__PURE__ */ u({
4598
+ }), yo = /* @__PURE__ */ u({
4585
4599
  __name: "GCurrencyInput",
4586
4600
  props: /*@__PURE__*/ p({
4587
4601
  label: { default: void 0 },
@@ -4632,7 +4646,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4632
4646
  "form-key"
4633
4647
  ]));
4634
4648
  }
4635
- }), yo = /* @__PURE__ */ u({
4649
+ }), bo = /* @__PURE__ */ u({
4636
4650
  __name: "GEmailInput",
4637
4651
  props: /*@__PURE__*/ p({
4638
4652
  label: { default: void 0 },
@@ -4677,13 +4691,13 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4677
4691
  "instructions"
4678
4692
  ]));
4679
4693
  }
4680
- }), bo = ["for"], xo = {
4694
+ }), xo = ["for"], So = {
4681
4695
  key: 0,
4682
4696
  class: "g-file-input-required"
4683
- }, So = {
4697
+ }, Co = {
4684
4698
  key: 0,
4685
4699
  class: "g-file-input-box-header"
4686
- }, Co = ["id"], wo = [
4700
+ }, wo = ["id"], To = [
4687
4701
  "id",
4688
4702
  "disabled",
4689
4703
  "required",
@@ -4692,11 +4706,11 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4692
4706
  "aria-invalid",
4693
4707
  "aria-describedby",
4694
4708
  "aria-errormessage"
4695
- ], To = {
4709
+ ], Eo = {
4696
4710
  key: 1,
4697
4711
  class: "g-file-input-pills",
4698
4712
  "aria-label": "Selected files"
4699
- }, Eo = /* @__PURE__ */ u({
4713
+ }, Do = /* @__PURE__ */ u({
4700
4714
  inheritAttrs: !1,
4701
4715
  __name: "GFileInput",
4702
4716
  props: /*@__PURE__*/ p({
@@ -4753,12 +4767,12 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4753
4767
  key: 0,
4754
4768
  for: F(d),
4755
4769
  class: "g-file-input-label"
4756
- }, [c(j(t.label) + " ", 1), t.required ? (S(), o("span", xo, "*")) : a("", !0)], 8, bo)) : a("", !0),
4770
+ }, [c(j(t.label) + " ", 1), t.required ? (S(), o("span", So, "*")) : a("", !0)], 8, xo)) : a("", !0),
4757
4771
  s("div", { class: g(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
4758
- t.instructions ? (S(), o("div", So, [s("span", {
4772
+ t.instructions ? (S(), o("div", Co, [s("span", {
4759
4773
  id: "instructions-" + F(d),
4760
4774
  class: "g-file-input-instructions"
4761
- }, j(t.instructions), 9, Co)])) : a("", !0),
4775
+ }, j(t.instructions), 9, wo)])) : a("", !0),
4762
4776
  s("input", {
4763
4777
  id: F(d),
4764
4778
  type: "file",
@@ -4771,8 +4785,8 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4771
4785
  "aria-describedby": t.instructions ? "instructions-" + F(d) : void 0,
4772
4786
  "aria-errormessage": y.value ? "error-message-" + F(d) : void 0,
4773
4787
  onChange: _
4774
- }, null, 40, wo),
4775
- t.multiple && b.value.length > 0 ? (S(), o("ul", To, [(S(!0), o(e, null, E(b.value, (e) => (S(), o("li", {
4788
+ }, null, 40, To),
4789
+ t.multiple && b.value.length > 0 ? (S(), o("ul", Eo, [(S(!0), o(e, null, E(b.value, (e) => (S(), o("li", {
4776
4790
  key: e,
4777
4791
  class: "g-file-input-pill"
4778
4792
  }, [r[0] ||= s("svg", {
@@ -4788,7 +4802,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4788
4802
  }, null, 8, ["errors", "id"])
4789
4803
  ], 2));
4790
4804
  }
4791
- }), Do = /* @__PURE__ */ u({
4805
+ }), Oo = /* @__PURE__ */ u({
4792
4806
  __name: "GDateInput",
4793
4807
  props: /*@__PURE__*/ p({
4794
4808
  label: { default: void 0 },
@@ -4836,21 +4850,21 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4836
4850
  "form-key"
4837
4851
  ]));
4838
4852
  }
4839
- }), Oo = { class: "g-date-range-input" }, ko = {
4853
+ }), ko = { class: "g-date-range-input" }, Ao = {
4840
4854
  key: 0,
4841
4855
  class: "g-date-range-input__label"
4842
- }, Ao = {
4856
+ }, jo = {
4843
4857
  key: 0,
4844
4858
  class: "g-date-range-input__required",
4845
4859
  "aria-hidden": "true"
4846
- }, jo = {
4860
+ }, Mo = {
4847
4861
  key: 1,
4848
4862
  class: "g-date-range-input__instructions"
4849
- }, Mo = { class: "g-date-range-input__fields" }, No = {
4863
+ }, No = { class: "g-date-range-input__fields" }, Po = {
4850
4864
  key: 2,
4851
4865
  class: "g-date-range-input__errors",
4852
4866
  role: "alert"
4853
- }, Po = /* @__PURE__ */ u({
4867
+ }, Fo = /* @__PURE__ */ u({
4854
4868
  __name: "GDateRangeInput",
4855
4869
  props: /*@__PURE__*/ p({
4856
4870
  label: { default: void 0 },
@@ -4890,10 +4904,10 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4890
4904
  };
4891
4905
  }), V(r, (e) => {
4892
4906
  e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
4893
- }, { deep: !0 }), (t, r) => (S(), o("div", Oo, [
4894
- n.label ? (S(), o("div", ko, [c(j(n.label), 1), n.required ? (S(), o("span", Ao, " *")) : a("", !0)])) : a("", !0),
4895
- n.instructions ? (S(), o("div", jo, j(n.instructions), 1)) : a("", !0),
4896
- s("div", Mo, [l(Do, {
4907
+ }, { deep: !0 }), (t, r) => (S(), o("div", ko, [
4908
+ n.label ? (S(), o("div", Ao, [c(j(n.label), 1), n.required ? (S(), o("span", jo, " *")) : a("", !0)])) : a("", !0),
4909
+ n.instructions ? (S(), o("div", Mo, j(n.instructions), 1)) : a("", !0),
4910
+ s("div", No, [l(Oo, {
4897
4911
  modelValue: i.value,
4898
4912
  "onUpdate:modelValue": r[0] ||= (e) => i.value = e,
4899
4913
  label: n.startLabel,
@@ -4905,7 +4919,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4905
4919
  "label",
4906
4920
  "disabled",
4907
4921
  "required"
4908
- ]), l(Do, {
4922
+ ]), l(Oo, {
4909
4923
  modelValue: u.value,
4910
4924
  "onUpdate:modelValue": r[1] ||= (e) => u.value = e,
4911
4925
  label: n.endLabel,
@@ -4918,13 +4932,13 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4918
4932
  "disabled",
4919
4933
  "required"
4920
4934
  ])]),
4921
- F(d).length > 0 ? (S(), o("div", No, [(S(!0), o(e, null, E(F(d), (e, t) => (S(), o("div", {
4935
+ F(d).length > 0 ? (S(), o("div", Po, [(S(!0), o(e, null, E(F(d), (e, t) => (S(), o("div", {
4922
4936
  key: t,
4923
4937
  class: "g-date-range-input__error"
4924
4938
  }, j(e), 1))), 128))])) : a("", !0)
4925
4939
  ]));
4926
4940
  }
4927
- }), Fo = ["action", "method"], Io = /* @__PURE__ */ u({
4941
+ }), Io = ["action", "method"], Lo = /* @__PURE__ */ u({
4928
4942
  __name: "GForm",
4929
4943
  props: /*@__PURE__*/ p({
4930
4944
  action: { default: void 0 },
@@ -4964,9 +4978,9 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4964
4978
  hasErrors: F(s).hasErrors.value,
4965
4979
  values: F(s).values.value,
4966
4980
  errors: F(s).errors.value
4967
- })], 40, Fo));
4981
+ })], 40, Io));
4968
4982
  }
4969
- }), Lo = /* @__PURE__ */ u({
4983
+ }), Ro = /* @__PURE__ */ u({
4970
4984
  __name: "GSubmitButton",
4971
4985
  props: {
4972
4986
  disabled: {
@@ -4989,11 +5003,11 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
4989
5003
  _: 3
4990
5004
  }, 8, ["disabled", "variant"]));
4991
5005
  }
4992
- }), Ro = ["for"], zo = {
5006
+ }), zo = ["for"], Bo = {
4993
5007
  key: 0,
4994
5008
  class: "g-textarea-required",
4995
5009
  "aria-hidden": "true"
4996
- }, Bo = ["id"], Vo = [
5010
+ }, Vo = ["id"], Ho = [
4997
5011
  "value",
4998
5012
  "placeholder",
4999
5013
  "disabled",
@@ -5002,11 +5016,11 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
5002
5016
  "rows",
5003
5017
  "maxlength",
5004
5018
  "aria-invalid"
5005
- ], Ho = {
5019
+ ], Uo = {
5006
5020
  key: 2,
5007
5021
  class: "g-textarea-char-count",
5008
5022
  "aria-live": "polite"
5009
- }, Uo = /* @__PURE__ */ u({
5023
+ }, Wo = /* @__PURE__ */ u({
5010
5024
  inheritAttrs: !1,
5011
5025
  __name: "GTextarea",
5012
5026
  props: /*@__PURE__*/ p({
@@ -5080,12 +5094,12 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
5080
5094
  key: 0,
5081
5095
  for: _.value,
5082
5096
  class: "g-textarea-label"
5083
- }, [c(j(n.label), 1), n.required ? (S(), o("span", zo, " *")) : a("", !0)], 8, Ro)) : a("", !0),
5097
+ }, [c(j(n.label), 1), n.required ? (S(), o("span", Bo, " *")) : a("", !0)], 8, zo)) : a("", !0),
5084
5098
  t.$slots.instructions || e.instructions ? (S(), o("div", {
5085
5099
  key: 1,
5086
5100
  id: "instructions-" + F(u),
5087
5101
  class: "g-textarea-instructions"
5088
- }, [D(t.$slots, "instructions", {}, () => [c(j(e.instructions), 1)])], 8, Bo)) : a("", !0),
5102
+ }, [D(t.$slots, "instructions", {}, () => [c(j(e.instructions), 1)])], 8, Vo)) : a("", !0),
5089
5103
  s("textarea", m({
5090
5104
  ref: "textareaEl",
5091
5105
  value: i.value ?? "",
@@ -5106,15 +5120,15 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
5106
5120
  onInput: T,
5107
5121
  onBlur: E,
5108
5122
  onPaste: O
5109
- }), null, 16, Vo),
5110
- n.maxlength === void 0 ? a("", !0) : (S(), o("div", Ho, j((i.value ?? "").length) + " / " + j(n.maxlength), 1)),
5123
+ }), null, 16, Ho),
5124
+ n.maxlength === void 0 ? a("", !0) : (S(), o("div", Uo, j((i.value ?? "").length) + " / " + j(n.maxlength), 1)),
5111
5125
  l(ke, {
5112
5126
  errors: F(v),
5113
5127
  id: "error-message-" + F(u)
5114
5128
  }, null, 8, ["errors", "id"])
5115
5129
  ], 2));
5116
5130
  }
5117
- }), Wo = { class: "g-toggle-wrapper" }, Go = ["for"], Ko = [
5131
+ }), Go = { class: "g-toggle-wrapper" }, Ko = ["for"], qo = [
5118
5132
  "id",
5119
5133
  "checked",
5120
5134
  "disabled",
@@ -5122,7 +5136,7 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
5122
5136
  "aria-describedby",
5123
5137
  "aria-invalid",
5124
5138
  "aria-errormessage"
5125
- ], qo = ["id"], Jo = /* @__PURE__ */ u({
5139
+ ], Jo = ["id"], Yo = /* @__PURE__ */ u({
5126
5140
  __name: "GToggle",
5127
5141
  props: /*@__PURE__*/ p({
5128
5142
  label: {},
@@ -5157,11 +5171,11 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
5157
5171
  n.disabled || (e.key === "n" || e.key === "N" || e.key === "ArrowLeft" ? (l(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y" || e.key === "ArrowRight") && (l(!0), e.preventDefault()));
5158
5172
  }
5159
5173
  let p = L(), m = L();
5160
- return (t, n) => (S(), o("div", Wo, [s("div", { class: g(["g-toggle-control", { "g-external-label": e.externalLabel }]) }, [e.externalLabel ? a("", !0) : (S(), o("label", {
5174
+ return (t, n) => (S(), o("div", Go, [s("div", { class: g(["g-toggle-control", { "g-external-label": e.externalLabel }]) }, [e.externalLabel ? a("", !0) : (S(), o("label", {
5161
5175
  key: 0,
5162
5176
  class: "g-label",
5163
5177
  for: F(m)
5164
- }, [D(t.$slots, "label", {}, () => [c(j(e.label), 1)])], 8, Go)), s("div", { class: g(["g-toggle", { "g-has-error": e.error }]) }, [s("div", { class: g(["g-toggle-track", [r.value ? "g-right" : "g-left", { "g-disabled": e.disabled }]]) }, [s("span", {
5178
+ }, [D(t.$slots, "label", {}, () => [c(j(e.label), 1)])], 8, Ko)), s("div", { class: g(["g-toggle", { "g-has-error": e.error }]) }, [s("div", { class: g(["g-toggle-track", [r.value ? "g-right" : "g-left", { "g-disabled": e.disabled }]]) }, [s("span", {
5165
5179
  class: g(["g-toggle-thumb", r.value ? "g-right" : "g-left"]),
5166
5180
  "aria-hidden": "true"
5167
5181
  }, null, 2), s("input", {
@@ -5175,18 +5189,18 @@ var Fi = { class: "g-table-outer-wrap" }, Ii = {
5175
5189
  "aria-errormessage": e.error ? F(p) + "-error" : void 0,
5176
5190
  onChange: d,
5177
5191
  onKeydown: f
5178
- }, null, 40, Ko)], 2)], 2)], 2), e.error ? (S(), o("div", {
5192
+ }, null, 40, qo)], 2)], 2)], 2), e.error ? (S(), o("div", {
5179
5193
  key: 0,
5180
5194
  id: `${F(p)}-error`,
5181
5195
  class: "g-form-error",
5182
5196
  role: "alert",
5183
5197
  "aria-atomic": "true"
5184
- }, j(e.error), 9, qo)) : a("", !0)]));
5198
+ }, j(e.error), 9, Jo)) : a("", !0)]));
5185
5199
  }
5186
5200
  });
5187
5201
  //#endregion
5188
5202
  //#region src/compose/useActiveLink.ts
5189
- function Yo(e, t, n) {
5203
+ function Xo(e, t, n) {
5190
5204
  let r = [
5191
5205
  0,
5192
5206
  .25,
@@ -5223,7 +5237,7 @@ function Yo(e, t, n) {
5223
5237
  }
5224
5238
  //#endregion
5225
5239
  //#region src/compose/useSidebar.ts
5226
- function Xo(e = "(max-width: 800px)") {
5240
+ function Zo(e = "(max-width: 800px)") {
5227
5241
  let t = L(), n = T(!1), r = X(e, { ssrWidth: 1e3 });
5228
5242
  function i(e) {
5229
5243
  if (!r.value || !n.value) return;
@@ -5254,41 +5268,41 @@ function Xo(e = "(max-width: 800px)") {
5254
5268
  }
5255
5269
  //#endregion
5256
5270
  //#region src/compose/usePaging.ts
5257
- function Zo(e) {
5271
+ function Qo(e) {
5258
5272
  let t = /* @__PURE__ */ new Set();
5259
5273
  return (e ?? []).filter((e) => !e?.key || t.has(e.key) || e.order !== 1 && e.order !== -1 ? !1 : (t.add(e.key), !0));
5260
5274
  }
5261
- function Qo(e) {
5262
- return e == null ? [] : Zo((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
5275
+ function $o(e) {
5276
+ return e == null ? [] : Qo((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
5263
5277
  key: e.replace(/^-/, ""),
5264
5278
  order: e.startsWith("-") ? -1 : 1
5265
5279
  })));
5266
5280
  }
5267
- function $o(e) {
5268
- let t = Zo(e);
5281
+ function es(e) {
5282
+ let t = Qo(e);
5269
5283
  if (t.length !== 0) return t.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`);
5270
5284
  }
5271
- function es(e, t = []) {
5272
- let n = Zo(e);
5285
+ function ts(e, t = []) {
5286
+ let n = Qo(e);
5273
5287
  if (n.length === 0) return;
5274
5288
  let r = n.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`), i = new Set(n.map(({ key: e }) => String(e))), a = n.length === 1 && n[0].order === -1 ? "-" : "";
5275
5289
  return t.forEach((e) => {
5276
5290
  i.has(e) || r.push(`${a}${e}`);
5277
5291
  }), r.join(",");
5278
5292
  }
5279
- function ts(e) {
5293
+ function ns(e) {
5280
5294
  return Array.isArray(e) ? [...e] : e;
5281
5295
  }
5282
- function ns(e, t) {
5296
+ function rs(e, t) {
5283
5297
  return Array.isArray(e) || Array.isArray(t) ? !Array.isArray(e) || !Array.isArray(t) ? !1 : e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
5284
5298
  }
5285
- function rs(e, t) {
5299
+ function is(e, t) {
5286
5300
  return e.length === t.length && e.every((e, n) => {
5287
5301
  let r = t[n];
5288
5302
  return e.key === r?.key && e.order === r?.order;
5289
5303
  });
5290
5304
  }
5291
- function is(e, t) {
5305
+ function as(e, t) {
5292
5306
  if (typeof e == "string") return Number(e);
5293
5307
  if (Array.isArray(e)) {
5294
5308
  let n = e.find((e) => e !== null);
@@ -5296,35 +5310,35 @@ function is(e, t) {
5296
5310
  }
5297
5311
  return t;
5298
5312
  }
5299
- function as(e = {}) {
5313
+ function os(e = {}) {
5300
5314
  let t = e.defaultPageSize ?? 50, n = e.defaultPageOffset ?? 0, i = e.sortKey ?? "sort", a = e.pageSizeKey ?? "pageSize", o = e.pageOffsetKey ?? "pageOffset", s = A([]), c = T(t), l = T(n);
5301
5315
  return e.route && e.router && (V(() => e.route?.query[i], (e) => {
5302
- let t = Qo(e);
5303
- rs(s.value, t) || (s.value = t);
5316
+ let t = $o(e);
5317
+ is(s.value, t) || (s.value = t);
5304
5318
  }, { immediate: !0 }), V(() => e.route?.query[a], (e) => {
5305
- let n = is(e, t);
5319
+ let n = as(e, t);
5306
5320
  c.value !== n && (c.value = n);
5307
5321
  }, { immediate: !0 }), V(() => e.route?.query[o], (e) => {
5308
- let t = is(e, n);
5322
+ let t = as(e, n);
5309
5323
  l.value !== t && (l.value = t);
5310
5324
  }, { immediate: !0 }), V([
5311
5325
  s,
5312
5326
  c,
5313
5327
  l
5314
5328
  ], ([r, s, c]) => {
5315
- let l = { ...e.route.query }, u = $o(r);
5316
- u === void 0 ? delete l[i] : l[i] = ts(u), s === t || s === void 0 ? delete l[a] : l[a] = String(s), c === n || c === void 0 ? delete l[o] : l[o] = String(c);
5329
+ let l = { ...e.route.query }, u = es(r);
5330
+ u === void 0 ? delete l[i] : l[i] = ns(u), s === t || s === void 0 ? delete l[a] : l[a] = String(s), c === n || c === void 0 ? delete l[o] : l[o] = String(c);
5317
5331
  let d = /* @__PURE__ */ new Set([...Object.keys(e.route.query), ...Object.keys(l)]), f = !1;
5318
- for (let t of d) if (!ns(e.route.query[t], l[t])) {
5332
+ for (let t of d) if (!rs(e.route.query[t], l[t])) {
5319
5333
  f = !0;
5320
5334
  break;
5321
5335
  }
5322
5336
  f && e.router.replace({ query: l });
5323
5337
  })), {
5324
5338
  sort: r({
5325
- get: () => Zo(s.value),
5339
+ get: () => Qo(s.value),
5326
5340
  set: (e) => {
5327
- s.value = Zo(e);
5341
+ s.value = Qo(e);
5328
5342
  }
5329
5343
  }),
5330
5344
  pageSize: c,
@@ -5333,7 +5347,7 @@ function as(e = {}) {
5333
5347
  }
5334
5348
  //#endregion
5335
5349
  //#region src/compose/useTableChanges.ts
5336
- function os() {
5350
+ function ss() {
5337
5351
  let e = k(/* @__PURE__ */ new Map()), t = W(), n = (n) => {
5338
5352
  let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
5339
5353
  e.has(i) || e.set(i, k(/* @__PURE__ */ new Map()));
@@ -5437,7 +5451,7 @@ function os() {
5437
5451
  }
5438
5452
  //#endregion
5439
5453
  //#region src/compose/usePersistentTableColumnState.ts
5440
- function ss(e, t) {
5454
+ function cs(e, t) {
5441
5455
  if (!e || typeof e != "object" || Array.isArray(e)) return {};
5442
5456
  let n = new Set(t.map(({ key: e }) => String(e))), r = {};
5443
5457
  for (let [t, i] of Object.entries(e)) {
@@ -5447,13 +5461,13 @@ function ss(e, t) {
5447
5461
  }
5448
5462
  return r;
5449
5463
  }
5450
- function cs(e, t) {
5464
+ function ls(e, t) {
5451
5465
  let n = Y(e, {});
5452
5466
  return V(() => P(t).map(({ key: e }) => String(e)), () => {
5453
- n.value = ss(n.value, P(t));
5467
+ n.value = cs(n.value, P(t));
5454
5468
  }, { immediate: !0 }), { columnState: n };
5455
5469
  }
5456
5470
  //#endregion
5457
- export { jt as $, ji as A, lr as B, no as C, vi as D, Ga as E, yi as F, Tn as G, Nn as H, Pi as I, vn as J, xn as K, Ni as L, _i as M, Oi as N, Ei as O, Mi as P, Gt as Q, Kr as R, io as S, Za as T, On as U, Jn as V, En as W, an as X, un as Y, tn as Z, yo as _, Qo as a, $e as at, fo as b, Xo as c, Ge as ct, Uo as d, Ee as dt, Tt as et, Lo as f, we as ft, Eo as g, $ as gt, Do as h, ge as ht, Zo as i, et as it, Di as j, gi as k, Yo as l, Ie as lt, Po as m, _e as mt, os as n, pt as nt, $o as o, Qe as ot, Io as p, Ce as pt, yn as q, es as r, at as rt, as as s, We as st, cs as t, bt as tt, Jo as u, De as ut, vo as v, Qa as w, co as x, _o as y, Fr as z };
5471
+ export { jt as $, Mi as A, lr as B, ro as C, yi as D, Ka as E, bi as F, Tn as G, Nn as H, Fi as I, vn as J, xn as K, Pi as L, vi as M, ki as N, Di as O, Ni as P, Gt as Q, Kr as R, ao as S, Qa as T, On as U, Jn as V, En as W, an as X, un as Y, tn as Z, bo as _, $o as a, $e as at, po as b, Zo as c, Ge as ct, Wo as d, Ee as dt, Tt as et, Ro as f, we as ft, Do as g, $ as gt, Oo as h, ge as ht, Qo as i, et as it, Oi as j, _i as k, Xo as l, Ie as lt, Fo as m, _e as mt, ss as n, pt as nt, es as o, Qe as ot, Lo as p, Ce as pt, yn as q, ts as r, at as rt, os as s, We as st, ls as t, bt as tt, Yo as u, De as ut, yo as v, $a as w, lo as x, vo as y, Fr as z };
5458
5472
 
5459
- //# sourceMappingURL=grad-vue-D3cnBp2w.js.map
5473
+ //# sourceMappingURL=grad-vue-BDbaNp12.js.map