@wssto2/vue-core 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/{Activity-BH0jQxZs.js → Activity-DukTfcmn.js} +2 -2
  2. package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-DxD6JvyK.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-B7qSUiee.js} +1 -1
  3. package/dist/{Changes-DS81sZj9.js → Changes-Dhi7EBe9.js} +2 -2
  4. package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-BuAdhiy_.js +1514 -0
  5. package/dist/{DataTable.vue_vue_type_script_setup_true_lang-DBtMgcW6.js → DataTable.vue_vue_type_script_setup_true_lang-KPm5NrDE.js} +1 -1
  6. package/dist/{DeadLetters-BqKtaowL.js → DeadLetters-CfKE1axC.js} +2 -2
  7. package/dist/{General-CK-9LrQ2.js → General-BwT5Y_TN.js} +2 -2
  8. package/dist/IconTile.vue_vue_type_script_setup_true_lang-_FXvaj93.js +50 -0
  9. package/dist/{Menu.vue_vue_type_script_setup_true_lang-ClsOlOSr.js → Menu.vue_vue_type_script_setup_true_lang-uPmxWvds.js} +56 -50
  10. package/dist/{NewRolePage-CziDdoeG.js → NewRolePage-B8OGQE-A.js} +3 -3
  11. package/dist/{ProfilePage-x063Zij2.js → ProfilePage-DIJEhiW-.js} +4 -4
  12. package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-Bua3wbN6.js → RecordHeader.vue_vue_type_script_setup_true_lang-D87Hs75d.js} +1 -1
  13. package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-CzP4BNh7.js → ResourcePage.vue_vue_type_script_setup_true_lang-gJGEfLzX.js} +1 -1
  14. package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-BjhaIqqG.js → RoleEditor.vue_vue_type_script_setup_true_lang-4YJhNgbn.js} +1 -1
  15. package/dist/{RolePage-Cecu3BKn.js → RolePage-Bn0re7VE.js} +6 -6
  16. package/dist/{RolesPage-DIL35QcF.js → RolesPage-CjEAQvTq.js} +3 -3
  17. package/dist/{SectionList.vue_vue_type_script_setup_true_lang-CaF3LPbQ.js → SectionList.vue_vue_type_script_setup_true_lang-B0p_8xQG.js} +2 -2
  18. package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-BJfEOvEf.js → SectionNavigator.vue_vue_type_script_setup_true_lang-ROl9_pdO.js} +3 -3
  19. package/dist/SelectField.vue_vue_type_script_setup_true_lang-BJoAkBo2.js +437 -0
  20. package/dist/{SessionList.vue_vue_type_script_setup_true_lang-D5KRitar.js → SessionList.vue_vue_type_script_setup_true_lang-D4k5QeWS.js} +1 -1
  21. package/dist/{Sessions-DhHIVk7e.js → Sessions-BZnBtu7h.js} +2 -2
  22. package/dist/{SettingsPage-BuGtZcae.js → SettingsPage-BmRCB75J.js} +2 -2
  23. package/dist/{SignIn-DRls5eYK.js → SignIn-D-n9cfMH.js} +2 -2
  24. package/dist/{SignInPage-D9wR46KD.js → SignInPage-BzIP6sPa.js} +1 -1
  25. package/dist/{SignInTable.vue_vue_type_script_setup_true_lang-CifEaH7c.js → SignInTable.vue_vue_type_script_setup_true_lang-ALAuc0sI.js} +1 -1
  26. package/dist/{SignIns-BMBFeBrK.js → SignIns-dFIzemgy.js} +2 -2
  27. package/dist/ToneDot.vue_vue_type_script_setup_true_lang-99rNn-L5.js +24 -0
  28. package/dist/{UserRecord-BOCP5XC6.js → UserRecord-DoOu1hWB.js} +5 -5
  29. package/dist/{UsersList-Df6HeAAO.js → UsersList-CYBGEOqE.js} +4 -4
  30. package/dist/access/index.js +1 -1
  31. package/dist/collection/CollectionCell.vue.d.ts +2 -0
  32. package/dist/collection/RecordIdentity.vue.d.ts +6 -0
  33. package/dist/collection/filters.d.ts +4 -0
  34. package/dist/collection/index.js +3 -3
  35. package/dist/collection/rowInteractions.d.ts +2 -0
  36. package/dist/controls/IconTile.vue.d.ts +10 -3
  37. package/dist/controls/index.js +1 -1
  38. package/dist/form/I18nField.vue.d.ts +1 -1
  39. package/dist/form/TextareaField.vue.d.ts +1 -1
  40. package/dist/form/index.js +4 -4
  41. package/dist/form/options.d.ts +3 -0
  42. package/dist/identity/index.js +1 -1
  43. package/dist/{index-EkQmsbBQ.js → index-BHt1dLX2.js} +2 -2
  44. package/dist/{index-BykMr7eH.js → index-BVX0nmMv.js} +10 -10
  45. package/dist/{index-BwMaMqSc.js → index-CixCeO47.js} +5 -5
  46. package/dist/index.d.ts +1 -1
  47. package/dist/index.js +1 -1
  48. package/dist/notifications/index.js +1 -1
  49. package/dist/overlay/AlertDialog.vue.d.ts +2 -2
  50. package/dist/overlay/Menu.vue.d.ts +3 -0
  51. package/dist/overlay/index.js +1 -1
  52. package/dist/page/AdaptivePageShell.vue.d.ts +2 -2
  53. package/dist/page/ResourceHeader.vue.d.ts +2 -2
  54. package/dist/page/index.js +5 -5
  55. package/dist/resource/index.js +1 -1
  56. package/dist/{rowLayout-CZ7uZFnE.js → rowLayout-BkQWulan.js} +239 -221
  57. package/dist/shell/NavigationList.vue.d.ts +1 -1
  58. package/dist/shell/index.js +1 -1
  59. package/dist/state/ToneDot.vue.d.ts +12 -0
  60. package/dist/{status-DyvlO552.js → status-D3cLPSCh.js} +1 -1
  61. package/dist/styles.css +1 -1
  62. package/package.json +1 -1
  63. package/src/styles/collection.css +1 -1
  64. package/src/styles/theme.css +7 -0
  65. package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-BZRdVhZo.js +0 -1485
  66. package/dist/IconTile.vue_vue_type_script_setup_true_lang-BpIjgu5E.js +0 -40
  67. package/dist/SelectField.vue_vue_type_script_setup_true_lang-7O1BAx04.js +0 -423
@@ -1,150 +1,155 @@
1
- import { defineComponent as W, computed as g, openBlock as o, createElementBlock as n, createBlock as D, unref as i, withCtx as H, Fragment as p, renderList as $, normalizeClass as S, toDisplayString as w, createTextVNode as G, createCommentVNode as m, renderSlot as x, createVNode as C, ref as ne, getCurrentScope as me, onScopeDispose as ye, nextTick as be, useSlots as se, useTemplateRef as ke, normalizeStyle as L, createElementVNode as d, withModifiers as le, createSlots as ge } from "vue";
2
- import { useI18n as ve } from "vue-i18n";
3
- import { RouterLink as ce, useRouter as _e } from "vue-router";
4
- import { _ as we } from "./SwipeActions.vue_vue_type_script_setup_true_lang-BJIA2JfI.js";
5
- import { _ as K } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
6
- import { _ as xe } from "./Menu.vue_vue_type_script_setup_true_lang-ClsOlOSr.js";
7
- import { _ as Ce } from "./Tooltip.vue_vue_type_script_setup_true_lang-OOD_XNWx.js";
8
- import { _ as re } from "./EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp8I.js";
9
- import { u as $e } from "./format-B8mJm946.js";
10
- import { _ as Se } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
11
- import { _ as Le } from "./Timestamp.vue_vue_type_script_setup_true_lang-FVRUr-9y.js";
12
- import { a as Me } from "./mediaQuery-CygcXmFW.js";
13
- function Re(y, s) {
1
+ import { defineComponent as W, computed as v, openBlock as o, createElementBlock as n, normalizeClass as g, createBlock as M, unref as i, withCtx as N, Fragment as p, renderList as S, toDisplayString as x, createTextVNode as G, createCommentVNode as y, renderSlot as C, createVNode as $, ref as ne, getCurrentScope as ke, onScopeDispose as ve, nextTick as ge, useSlots as le, useTemplateRef as we, normalizeStyle as L, createElementVNode as d, withModifiers as re, createSlots as _e } from "vue";
2
+ import { useI18n as xe } from "vue-i18n";
3
+ import { RouterLink as de, useRouter as Ce } from "vue-router";
4
+ import { _ as $e } from "./SwipeActions.vue_vue_type_script_setup_true_lang-BJIA2JfI.js";
5
+ import { _ as Y } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
6
+ import { _ as Se } from "./Menu.vue_vue_type_script_setup_true_lang-uPmxWvds.js";
7
+ import { _ as Le } from "./Tooltip.vue_vue_type_script_setup_true_lang-OOD_XNWx.js";
8
+ import { _ as ie } from "./EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp8I.js";
9
+ import { u as Re } from "./format-B8mJm946.js";
10
+ import { _ as Pe } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
11
+ import { _ as Me } from "./Timestamp.vue_vue_type_script_setup_true_lang-FVRUr-9y.js";
12
+ import { a as Ee } from "./mediaQuery-CygcXmFW.js";
13
+ function Te(b, s) {
14
14
  const e = (s ?? "").split(/\s+/).filter((u) => u !== "");
15
- if (e.length === 0 || y === "") return [{ text: y, match: !1 }];
15
+ if (e.length === 0 || b === "") return [{ text: b, match: !1 }];
16
16
  const f = new RegExp(`(${e.sort((u, a) => a.length - u.length).map((u) => u.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")})`, "giu");
17
- return y.split(f).flatMap((u, a) => u === "" ? [] : [{ text: u, match: a % 2 === 1 }]);
17
+ return b.split(f).flatMap((u, a) => u === "" ? [] : [{ text: u, match: a % 2 === 1 }]);
18
18
  }
19
- const Pe = { class: "flex min-w-0 flex-col" }, Ae = {
20
- key: 1,
21
- class: "truncate text-row-title"
22
- }, Ee = ["data-row-click-ignore"], ie = "rounded-sm bg-status-warning-surface text-status-warning-content", ae = /* @__PURE__ */ W({
19
+ const Ae = ["data-row-click-ignore"], ae = "rounded-sm bg-status-warning-surface text-status-warning-content", ce = "col-start-1 row-start-1", De = "col-span-full row-start-2 max-w-full", ue = /* @__PURE__ */ W({
23
20
  __name: "RecordIdentity",
24
21
  props: {
25
22
  title: {},
26
23
  subtitle: { default: null },
27
24
  to: { default: null },
28
25
  subtitleSelectable: { type: Boolean, default: !1 },
29
- highlight: { default: null }
26
+ highlight: { default: null },
27
+ spread: { type: Boolean, default: !1 }
30
28
  },
31
- setup(y) {
32
- const s = y, e = g(() => Re(s.title, s.highlight));
33
- return (f, u) => (o(), n("div", Pe, [
34
- s.to ? (o(), D(i(ce), {
29
+ setup(b) {
30
+ const s = b, e = v(() => Te(s.title, s.highlight));
31
+ return (f, u) => (o(), n("div", {
32
+ class: g(s.spread ? "contents" : "flex min-w-0 flex-col")
33
+ }, [
34
+ s.to ? (o(), M(i(de), {
35
35
  key: 0,
36
36
  to: s.to,
37
- class: "block truncate rounded-sm text-row-title focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus"
37
+ class: g(["block truncate rounded-sm text-row-title focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus", s.spread ? ce : void 0])
38
38
  }, {
39
- default: H(() => [
40
- (o(!0), n(p, null, $(e.value, (a, v) => (o(), n(p, { key: v }, [
39
+ default: N(() => [
40
+ (o(!0), n(p, null, S(e.value, (a, w) => (o(), n(p, { key: w }, [
41
41
  a.match ? (o(), n("mark", {
42
42
  key: 0,
43
- class: S(ie)
44
- }, w(a.text), 1)) : (o(), n(p, { key: 1 }, [
45
- G(w(a.text), 1)
43
+ class: g(ae)
44
+ }, x(a.text), 1)) : (o(), n(p, { key: 1 }, [
45
+ G(x(a.text), 1)
46
46
  ], 64))
47
47
  ], 64))), 128))
48
48
  ]),
49
49
  _: 1
50
- }, 8, ["to"])) : (o(), n("span", Ae, [
51
- (o(!0), n(p, null, $(e.value, (a, v) => (o(), n(p, { key: v }, [
50
+ }, 8, ["to", "class"])) : (o(), n("span", {
51
+ key: 1,
52
+ class: g(["truncate text-row-title", s.spread ? ce : void 0])
53
+ }, [
54
+ (o(!0), n(p, null, S(e.value, (a, w) => (o(), n(p, { key: w }, [
52
55
  a.match ? (o(), n("mark", {
53
56
  key: 0,
54
- class: S(ie)
55
- }, w(a.text), 1)) : (o(), n(p, { key: 1 }, [
56
- G(w(a.text), 1)
57
+ class: g(ae)
58
+ }, x(a.text), 1)) : (o(), n(p, { key: 1 }, [
59
+ G(x(a.text), 1)
57
60
  ], 64))
58
61
  ], 64))), 128))
59
- ])),
62
+ ], 2)),
60
63
  s.subtitle ? (o(), n("span", {
61
64
  key: 2,
62
65
  "data-row-click-ignore": s.subtitleSelectable ? "" : void 0,
63
- class: S(["truncate text-row-subtitle", { "w-fit cursor-text select-text": s.subtitleSelectable }])
64
- }, w(s.subtitle), 11, Ee)) : m("", !0)
65
- ]));
66
+ class: g(["truncate text-row-subtitle", [s.subtitleSelectable ? "w-fit cursor-text select-text" : void 0, s.spread ? De : void 0]])
67
+ }, x(s.subtitle), 11, Ae)) : y("", !0)
68
+ ], 2));
66
69
  }
67
70
  });
68
- function ue(y, s) {
69
- let e = y;
71
+ function fe(b, s) {
72
+ let e = b;
70
73
  for (const f of String(s).split(".")) {
71
74
  if (typeof e != "object" || e === null) return;
72
75
  e = e[f];
73
76
  }
74
77
  return e;
75
78
  }
76
- const Te = {
79
+ const Be = {
77
80
  key: 0,
78
81
  class: "flex items-center gap-3"
79
- }, De = ["datetime"], Be = {
82
+ }, Ie = ["datetime"], He = {
80
83
  key: 2,
81
84
  class: "tabular-nums"
82
- }, He = {
85
+ }, Ne = {
83
86
  key: 3,
84
87
  class: "tabular-nums"
85
- }, Y = /* @__PURE__ */ W({
88
+ }, z = /* @__PURE__ */ W({
86
89
  __name: "CollectionCell",
87
90
  props: {
88
91
  column: {},
89
92
  item: {},
90
93
  compact: { type: Boolean },
91
94
  to: {},
92
- search: {}
95
+ search: {},
96
+ spread: { type: Boolean }
93
97
  },
94
- setup(y) {
95
- const s = y, e = $e(), f = g(() => ue(s.item, s.column.key)), u = g(() => f.value), a = g(() => f.value === null || f.value === void 0 ? "" : String(f.value)), v = g(() => typeof f.value == "number" ? f.value : typeof f.value == "string" && f.value.trim() !== "" ? Number(f.value) : null);
96
- return (M, N) => s.column.kind === "identity" ? (o(), n(p, { key: 0 }, [
97
- !s.compact && M.$slots.leading ? (o(), n("div", Te, [
98
- x(M.$slots, "leading"),
99
- C(ae, {
98
+ setup(b) {
99
+ const s = b, e = Re(), f = v(() => fe(s.item, s.column.key)), u = v(() => f.value), a = v(() => f.value === null || f.value === void 0 ? "" : String(f.value)), w = v(() => typeof f.value == "number" ? f.value : typeof f.value == "string" && f.value.trim() !== "" ? Number(f.value) : null);
100
+ return (R, E) => s.column.kind === "identity" ? (o(), n(p, { key: 0 }, [
101
+ !s.compact && R.$slots.leading ? (o(), n("div", Be, [
102
+ C(R.$slots, "leading"),
103
+ $(ue, {
100
104
  to: s.to,
101
105
  title: s.column.title?.(s.item) ?? a.value,
102
106
  subtitle: s.column.subtitle?.(s.item),
103
107
  highlight: s.search,
104
108
  "subtitle-selectable": ""
105
109
  }, null, 8, ["to", "title", "subtitle", "highlight"])
106
- ])) : (o(), D(ae, {
110
+ ])) : (o(), M(ue, {
107
111
  key: 1,
112
+ spread: s.spread,
108
113
  to: s.to,
109
114
  title: s.column.title?.(s.item) ?? a.value,
110
115
  subtitle: s.column.subtitle?.(s.item),
111
116
  highlight: s.search,
112
117
  "subtitle-selectable": ""
113
- }, null, 8, ["to", "title", "subtitle", "highlight"]))
118
+ }, null, 8, ["spread", "to", "title", "subtitle", "highlight"]))
114
119
  ], 64)) : s.column.kind === "timestamp" ? (o(), n(p, { key: 1 }, [
115
120
  s.compact && u.value ? (o(), n("time", {
116
121
  key: 0,
117
122
  class: "tabular-nums",
118
123
  datetime: String(f.value)
119
- }, w(s.column.precision === "date" ? i(e).date(u.value) : i(e).dateTime(u.value)), 9, De)) : s.compact ? m("", !0) : (o(), D(i(Le), {
124
+ }, x(s.column.precision === "date" ? i(e).date(u.value) : i(e).dateTime(u.value)), 9, Ie)) : s.compact ? y("", !0) : (o(), M(i(Me), {
120
125
  key: 1,
121
126
  value: u.value,
122
127
  precision: s.column.precision ?? "dateTime"
123
128
  }, null, 8, ["value", "precision"]))
124
- ], 64)) : s.column.kind === "number" ? (o(), n("span", Be, w(i(e).number(v.value, s.column.format)), 1)) : s.column.kind === "money" ? (o(), n("span", He, w(i(e).money(v.value, typeof s.column.currency == "function" ? s.column.currency(s.item) : s.column.currency)), 1)) : s.column.kind === "badge" ? (o(), D(i(Se), {
129
+ ], 64)) : s.column.kind === "number" ? (o(), n("span", He, x(i(e).number(w.value, s.column.format)), 1)) : s.column.kind === "money" ? (o(), n("span", Ne, x(i(e).money(w.value, typeof s.column.currency == "function" ? s.column.currency(s.item) : s.column.currency)), 1)) : s.column.kind === "badge" ? (o(), M(i(Pe), {
125
130
  key: 4,
126
131
  tone: s.column.tone(s.item),
127
132
  dot: ""
128
133
  }, {
129
- default: H(() => [
130
- G(w(s.column.text?.(s.item) ?? a.value), 1)
134
+ default: N(() => [
135
+ G(x(s.column.text?.(s.item) ?? a.value), 1)
131
136
  ]),
132
137
  _: 1
133
138
  }, 8, ["tone"])) : (o(), n(p, { key: 5 }, [
134
- G(w(a.value), 1)
139
+ G(x(a.value), 1)
135
140
  ], 64));
136
141
  }
137
- }), Ie = 'a, button, input, select, textarea, label, [role="button"], [data-row-click-ignore]', Ne = 500, ze = 8;
138
- function Fe(y) {
139
- const s = _e(), e = ne([]), f = ne("");
140
- let u = !1, a = null, v = { x: 0, y: 0 };
141
- const M = (c) => y.actions()?.(c) ?? [];
142
- function N(c) {
143
- return M(c).filter((b) => b.href).map((b) => ({ key: b.key, label: b.label, icon: b.icon, href: b.href, tone: b.tone ?? "neutral", external: b.external }));
142
+ }), ze = 'a, button, input, select, textarea, label, [role="button"], [data-row-click-ignore]', Fe = 500, Ve = 8;
143
+ function je(b) {
144
+ const s = Ce(), e = ne([]), f = ne("");
145
+ let u = !1, a = null, w = { x: 0, y: 0 };
146
+ const R = (c) => b.actions()?.(c) ?? [];
147
+ function E(c) {
148
+ return R(c).filter((m) => m.href).map((m) => ({ key: m.key, label: m.label, icon: m.icon, href: m.href, tone: m.tone ?? "neutral", external: m.external }));
144
149
  }
145
- function B(c, b, R) {
146
- const F = M(c);
147
- return F.length === 0 ? !1 : (f.value = y.label()?.(c) ?? y.moreLabel(), e.value = F.map((_) => ({
150
+ function I(c, m, P) {
151
+ const j = R(c);
152
+ return j.length === 0 ? !1 : (f.value = b.label()?.(c) ?? b.moreLabel(), e.value = j.map((_) => ({
148
153
  id: _.key,
149
154
  label: _.label,
150
155
  icon: _.icon,
@@ -153,54 +158,54 @@ function Fe(y) {
153
158
  onSelect: () => {
154
159
  _.onSelect ? _.onSelect() : _.href && (_.external ? window.open(_.href, "_blank", "noopener") : window.location.assign(_.href));
155
160
  }
156
- })), be(() => y.presentMenu(b, R)), !0);
161
+ })), ge(() => b.presentMenu(m, P)), !0);
157
162
  }
158
- function z(c, b) {
159
- const R = c.currentTarget.getBoundingClientRect();
160
- B(b, R.left, R.bottom);
163
+ function F(c, m) {
164
+ const P = c.currentTarget.getBoundingClientRect();
165
+ I(m, P.left, P.bottom);
161
166
  }
162
- function A(c, b) {
163
- !y.actions() || c.target.closest("a") || B(b, c.clientX, c.clientY) && (c.preventDefault(), u = !0);
167
+ function V(c, m) {
168
+ !b.actions() || c.target.closest("a") || I(m, c.clientX, c.clientY) && (c.preventDefault(), u = !0);
164
169
  }
165
- function P() {
170
+ function T() {
166
171
  a && clearTimeout(a), a = null;
167
172
  }
168
- function E(c, b) {
169
- u = !1, !(c.pointerType !== "touch" || !y.actions()) && (v = { x: c.clientX, y: c.clientY }, P(), a = setTimeout(() => {
170
- a = null, B(b, v.x, v.y) && (u = !0, navigator.vibrate?.(10));
171
- }, Ne));
173
+ function A(c, m) {
174
+ u = !1, !(c.pointerType !== "touch" || !b.actions()) && (w = { x: c.clientX, y: c.clientY }, T(), a = setTimeout(() => {
175
+ a = null, I(m, w.x, w.y) && (u = !0, navigator.vibrate?.(10));
176
+ }, Fe));
172
177
  }
173
- function U(c) {
174
- a && Math.hypot(c.clientX - v.x, c.clientY - v.y) > ze && P();
178
+ function H(c) {
179
+ a && Math.hypot(c.clientX - w.x, c.clientY - w.y) > Ve && T();
175
180
  }
176
- function X(c) {
181
+ function D(c) {
177
182
  u && (u = !1, c.preventDefault(), c.stopPropagation());
178
183
  }
179
- function I(c, b) {
180
- const R = y.target(b);
181
- if (!(!R || c.target.closest(Ie)) && !window.getSelection()?.toString()) {
184
+ function X(c, m) {
185
+ const P = b.target(m);
186
+ if (!(!P || c.target.closest(ze)) && !window.getSelection()?.toString()) {
182
187
  if (c.metaKey || c.ctrlKey) {
183
- window.open(s.resolve(R).href, "_blank");
188
+ window.open(s.resolve(P).href, "_blank");
184
189
  return;
185
190
  }
186
- s.push(R);
191
+ s.push(P);
187
192
  }
188
193
  }
189
- return me() && ye(P), { menuItems: e, menuLabel: f, swipeActions: N, openMenuFrom: z, onContextMenu: A, onPointerDown: E, onPointerMove: U, cancelPress: P, onClickCapture: X, onClick: I, actionsOf: M };
194
+ return ke() && ve(T), { menuItems: e, menuLabel: f, swipeActions: E, openMenuFrom: F, onContextMenu: V, onPointerDown: A, onPointerMove: H, cancelPress: T, onClickCapture: D, onClick: X, actionsOf: R };
190
195
  }
191
- const Ve = {
196
+ const Oe = {
192
197
  key: 0,
193
198
  class: "overflow-hidden rounded-group bg-surface-cell shadow-group",
194
199
  "data-test": "collection-mobile-rows"
195
- }, je = { class: "flex flex-1 flex-col gap-2 pt-1" }, Oe = ["onClick", "onContextmenu", "onPointerdown"], Ke = { class: "flex items-start gap-3" }, Ye = {
200
+ }, Ke = { class: "flex flex-1 flex-col gap-2 pt-1" }, Ue = ["onClick", "onContextmenu", "onPointerdown"], Ye = { class: "flex items-start gap-3" }, Ge = {
196
201
  key: 0,
197
202
  class: "shrink-0 pt-0.5"
198
- }, Ge = { class: "flex min-w-0 flex-1 flex-col gap-1" }, Ue = { class: "flex min-w-0 items-start gap-3" }, Xe = { class: "min-w-0 flex-1" }, Je = {
199
- key: 1,
203
+ }, Xe = { class: "flex min-w-0 flex-1 flex-col gap-1" }, Je = {
204
+ key: 2,
200
205
  class: "block truncate text-row-title"
201
206
  }, Qe = {
202
207
  key: 0,
203
- class: "flex shrink-0 items-center gap-2 pt-0.5"
208
+ class: "col-start-2 row-start-1 flex shrink-0 items-center gap-2 pt-0.5"
204
209
  }, We = ["aria-label", "onClick"], qe = {
205
210
  key: 0,
206
211
  class: "flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1 text-row-meta"
@@ -218,20 +223,20 @@ const Ve = {
218
223
  }, ot = {
219
224
  key: 1,
220
225
  class: "inline-block w-full align-middle"
221
- }, nt = { class: "border-b border-border-separator" }, st = ["aria-sort"], lt = ["onClick"], rt = { key: 1 }, it = {
226
+ }, st = { class: "border-b border-border-separator" }, nt = ["aria-sort"], lt = ["onClick"], rt = { key: 1 }, it = {
222
227
  key: 0,
223
228
  class: "px-4 pt-2.5 pb-2",
224
229
  style: { width: "20px" }
225
230
  }, at = { class: "sr-only" }, ct = {
226
231
  key: 0,
227
232
  class: "size-8 shrink-0 rounded-full bg-fill"
228
- }, ut = { class: "flex flex-1 flex-col gap-1.5" }, dt = { key: 0 }, ft = ["onClick", "onContextmenu", "onPointerdown"], pt = { key: 0 }, ht = { class: "flex items-center justify-center gap-1" }, mt = ["aria-label", "onClick"], yt = {
233
+ }, ut = { class: "flex flex-1 flex-col gap-1.5" }, dt = { key: 0 }, ft = ["onClick", "onContextmenu", "onPointerdown"], pt = { key: 0 }, mt = { class: "flex items-center justify-center gap-1" }, ht = ["aria-label", "onClick"], yt = {
229
234
  key: 2,
230
235
  "data-test": "collection-failed"
231
236
  }, bt = ["colspan"], kt = {
232
237
  key: 3,
233
238
  "data-test": "collection-empty"
234
- }, gt = ["colspan"], vt = 37, Tt = /* @__PURE__ */ W({
239
+ }, vt = ["colspan"], gt = 37, At = /* @__PURE__ */ W({
235
240
  __name: "CollectionRows",
236
241
  props: {
237
242
  columns: {},
@@ -252,24 +257,24 @@ const Ve = {
252
257
  rowClass: { type: Function, default: void 0 }
253
258
  },
254
259
  emits: ["sort"],
255
- setup(y, { emit: s }) {
256
- const e = y, f = s, u = se(), { t: a } = ve(), v = se(), M = (r) => e.columns.filter((k) => k.mobile === r), N = g(() => M("primary")), B = g(() => M("accessory")), z = g(() => M("meta")), A = (r) => `cell-${String(r.key).replace(/\./g, "_")}`, P = (r) => !!v[A(r)], E = (r, k) => ue(r, k.key), U = (r) => r == null || r === "", X = { md: "hidden md:table-cell", xl: "hidden xl:table-cell", "2xl": "hidden 2xl:table-cell" }, I = (r) => r.hideBelow ? [X[r.hideBelow]] : [], c = (r) => ["text-nowrap px-4 pt-2.5 pb-2 text-footnote font-normal text-content-muted", ...I(r)], b = { start: "text-left", center: "text-center", end: "text-right" }, R = (r) => [...I(r), b[r.align ?? "start"]], F = { start: "justify-start", center: "justify-center", end: "justify-end" }, _ = g(() => e.rows.length > 0 && e.link(e.rows[0]) !== null), q = ke("rowMenu"), h = Fe({
260
+ setup(b, { emit: s }) {
261
+ const e = b, f = s, u = le(), { t: a } = xe(), w = le(), R = (r) => e.columns.filter((k) => k.mobile === r), E = v(() => R("primary")), I = v(() => R("accessory")), F = v(() => R("meta")), V = v(() => E.value.length === 1 && E.value[0].kind === "identity" && !H(E.value[0])), T = (r) => I.value.length > 0 || O.value && J(r), A = (r) => `cell-${String(r.key).replace(/\./g, "_")}`, H = (r) => !!w[A(r)], D = (r, k) => fe(r, k.key), X = (r) => r == null || r === "", c = { md: "hidden md:table-cell", xl: "hidden xl:table-cell", "2xl": "hidden 2xl:table-cell" }, m = (r) => r.hideBelow ? [c[r.hideBelow]] : [], P = (r) => ["text-nowrap px-4 pt-2.5 pb-2 text-footnote font-normal text-content-muted", ...m(r)], j = { start: "text-left", center: "text-center", end: "text-right" }, _ = (r) => [...m(r), j[r.align ?? "start"]], pe = { start: "justify-start", center: "justify-center", end: "justify-end" }, q = v(() => e.rows.length > 0 && e.link(e.rows[0]) !== null), Z = we("rowMenu"), h = je({
257
262
  actions: () => e.rowActions,
258
263
  label: () => e.rowLabel,
259
264
  target: (r) => e.link(r),
260
- presentMenu: (r, k) => q.value?.presentAt(r, k),
265
+ presentMenu: (r, k) => Z.value?.presentAt(r, k),
261
266
  moreLabel: () => a("core.page.more_actions")
262
- }), V = g(() => !!e.rowActions && (e.actionsVisible || !u.actions && !_.value)), j = g(() => !!u.actions || _.value || V.value), Z = (r) => e.rowLabel ? `${a("core.page.more_actions")}: ${e.rowLabel(r)}` : a("core.page.more_actions"), J = (r) => h.actionsOf(r).length > 0, ee = g(() => e.columns.length + (j.value ? 1 : 0)), O = (r) => r.sort !== void 0 && e.sorted?.key === r.sort, de = (r) => r.sort === void 0 ? void 0 : O(r) ? e.sorted?.direction === "asc" ? "ascending" : "descending" : "none", fe = (r) => O(r) ? e.sorted?.direction === "asc" ? "arrowUpSLine" : "arrowDownSLine" : "expandUpDownLine", te = (r) => ({ animationDelay: `${Math.min(r, 8) * 30}ms` }), Q = g(() => e.display === "loading"), pe = g(() => Q.value && e.reserveRows !== void 0 ? `${e.reserveRows * (e.rowHeight ?? 40) + vt}px` : void 0), oe = g(() => e.display === "empty" || e.display === "no-matches");
267
+ }), O = v(() => !!e.rowActions && (e.actionsVisible || !u.actions && !q.value)), K = v(() => !!u.actions || q.value || O.value), ee = (r) => e.rowLabel ? `${a("core.page.more_actions")}: ${e.rowLabel(r)}` : a("core.page.more_actions"), J = (r) => h.actionsOf(r).length > 0, te = v(() => e.columns.length + (K.value ? 1 : 0)), U = (r) => r.sort !== void 0 && e.sorted?.key === r.sort, me = (r) => r.sort === void 0 ? void 0 : U(r) ? e.sorted?.direction === "asc" ? "ascending" : "descending" : "none", he = (r) => U(r) ? e.sorted?.direction === "asc" ? "arrowUpSLine" : "arrowDownSLine" : "expandUpDownLine", oe = (r) => ({ animationDelay: `${Math.min(r, 8) * 30}ms` }), Q = v(() => e.display === "loading"), ye = v(() => Q.value && e.reserveRows !== void 0 ? `${e.reserveRows * (e.rowHeight ?? 40) + gt}px` : void 0), se = v(() => e.display === "empty" || e.display === "no-matches");
263
268
  return (r, k) => (o(), n(p, null, [
264
- e.phone ? (o(), n("ul", Ve, [
265
- Q.value ? (o(!0), n(p, { key: 0 }, $(e.skeletonRows, (t) => (o(), n("li", {
269
+ e.phone ? (o(), n("ul", Oe, [
270
+ Q.value ? (o(!0), n(p, { key: 0 }, S(e.skeletonRows, (t) => (o(), n("li", {
266
271
  key: `skeleton-${t}`,
267
272
  "aria-hidden": "true",
268
273
  class: "relative flex animate-pulse items-start gap-3 px-row-inset py-3 motion-reduce:animate-none not-first:before:absolute not-first:before:top-0 not-first:before:right-0 not-first:before:left-row-inset not-first:before:h-px not-first:before:bg-border-separator",
269
274
  style: L({ animationDelay: `${t * 60}ms` })
270
275
  }, [
271
276
  k[5] || (k[5] = d("span", { class: "size-9 shrink-0 rounded-full bg-fill" }, null, -1)),
272
- d("span", je, [
277
+ d("span", Ke, [
273
278
  d("span", {
274
279
  class: "h-2.5 rounded-full bg-fill-strong",
275
280
  style: L({ width: `${45 + t * 13 % 30}%` })
@@ -279,12 +284,12 @@ const Ve = {
279
284
  style: L({ width: `${60 + t * 7 % 25}%` })
280
285
  }, null, 4)
281
286
  ])
282
- ], 4))), 128)) : m("", !0),
283
- e.display === "rows" ? (o(!0), n(p, { key: 1 }, $(e.rows, (t, T) => (o(), n("li", {
287
+ ], 4))), 128)) : y("", !0),
288
+ e.display === "rows" ? (o(!0), n(p, { key: 1 }, S(e.rows, (t, B) => (o(), n("li", {
284
289
  key: e.rowKey(t),
285
- style: L(te(T)),
290
+ style: L(oe(B)),
286
291
  "data-test": "collection-row",
287
- class: S(["relative animate-row-in transition-colors duration-motion-fast active:bg-fill not-first:before:absolute not-first:before:top-0 not-first:before:right-0 not-first:before:left-row-inset not-first:before:z-10 not-first:before:h-px not-first:before:bg-border-separator", [e.link(t) ? "cursor-pointer" : void 0, e.rowClass?.(t)]]),
292
+ class: g(["relative animate-row-in transition-colors duration-motion-fast active:bg-fill not-first:before:absolute not-first:before:top-0 not-first:before:right-0 not-first:before:left-row-inset not-first:before:z-10 not-first:before:h-px not-first:before:bg-border-separator", [e.link(t) ? "cursor-pointer" : void 0, e.rowClass?.(t)]]),
288
293
  onClickCapture: k[0] || (k[0] = //@ts-ignore
289
294
  (...l) => i(h).onClickCapture && i(h).onClickCapture(...l)),
290
295
  onClick: (l) => i(h).onClick(l, t),
@@ -297,32 +302,45 @@ const Ve = {
297
302
  onPointercancel: k[3] || (k[3] = //@ts-ignore
298
303
  (...l) => i(h).cancelPress && i(h).cancelPress(...l))
299
304
  }, [
300
- C(i(we), {
305
+ $(i($e), {
301
306
  actions: i(h).swipeActions(t),
302
307
  "content-class": "px-row-inset py-2.5"
303
308
  }, {
304
- default: H(() => [
305
- d("div", Ke, [
306
- u.leading ? (o(), n("div", Ye, [
307
- x(r.$slots, "leading", {
309
+ default: N(() => [
310
+ d("div", Ye, [
311
+ u.leading ? (o(), n("div", Ge, [
312
+ C(r.$slots, "leading", {
308
313
  item: t,
309
314
  compact: !0
310
315
  })
311
- ])) : m("", !0),
312
- d("div", Ge, [
313
- d("div", Ue, [
314
- d("div", Xe, [
315
- (o(!0), n(p, null, $(N.value, (l) => (o(), n(p, {
316
+ ])) : y("", !0),
317
+ d("div", Xe, [
318
+ d("div", {
319
+ class: g(["grid min-w-0 items-start gap-x-3", T(t) ? "grid-cols-[minmax(0,1fr)_auto]" : "grid-cols-[minmax(0,1fr)]"]),
320
+ "data-test": "collection-row-head"
321
+ }, [
322
+ d("div", {
323
+ class: g(V.value ? "contents" : "col-start-1 row-start-1 min-w-0")
324
+ }, [
325
+ (o(!0), n(p, null, S(E.value, (l) => (o(), n(p, {
316
326
  key: String(l.key)
317
327
  }, [
318
- P(l) ? x(r.$slots, A(l), {
328
+ H(l) ? C(r.$slots, A(l), {
319
329
  item: t,
320
- value: E(t, l),
330
+ value: D(t, l),
321
331
  compact: !0,
322
332
  to: e.link(t),
323
333
  search: e.search
324
- }, void 0, void 0, 0) : (o(), n("span", Je, [
325
- C(Y, {
334
+ }, void 0, void 0, 0) : V.value ? (o(), M(z, {
335
+ key: 1,
336
+ column: l,
337
+ item: t,
338
+ compact: !0,
339
+ to: e.link(t),
340
+ search: e.search,
341
+ spread: ""
342
+ }, null, 8, ["column", "item", "to", "search"])) : (o(), n("span", Je, [
343
+ $(z, {
326
344
  column: l,
327
345
  item: t,
328
346
  compact: !0,
@@ -331,18 +349,18 @@ const Ve = {
331
349
  }, null, 8, ["column", "item", "to", "search"])
332
350
  ]))
333
351
  ], 64))), 128))
334
- ]),
335
- B.value.length || V.value && J(t) ? (o(), n("div", Qe, [
336
- (o(!0), n(p, null, $(B.value, (l) => (o(), n(p, {
352
+ ], 2),
353
+ T(t) ? (o(), n("div", Qe, [
354
+ (o(!0), n(p, null, S(I.value, (l) => (o(), n(p, {
337
355
  key: String(l.key)
338
356
  }, [
339
- P(l) ? x(r.$slots, A(l), {
357
+ H(l) ? C(r.$slots, A(l), {
340
358
  item: t,
341
- value: E(t, l),
359
+ value: D(t, l),
342
360
  compact: !0,
343
361
  to: e.link(t),
344
362
  search: e.search
345
- }, void 0, void 0, 0) : (o(), D(Y, {
363
+ }, void 0, void 0, 0) : (o(), M(z, {
346
364
  key: 1,
347
365
  column: l,
348
366
  item: t,
@@ -351,33 +369,33 @@ const Ve = {
351
369
  search: e.search
352
370
  }, null, 8, ["column", "item", "to", "search"]))
353
371
  ], 64))), 128)),
354
- V.value && J(t) ? (o(), n("button", {
372
+ O.value && J(t) ? (o(), n("button", {
355
373
  key: 0,
356
374
  type: "button",
357
375
  "data-test": "collection-row-more",
358
- "aria-label": Z(t),
376
+ "aria-label": ee(t),
359
377
  class: "hit-target -my-1 -mr-1 flex size-8 cursor-pointer items-center justify-center rounded-full text-content-muted active:bg-fill",
360
- onClick: le((l) => i(h).openMenuFrom(l, t), ["stop"])
378
+ onClick: re((l) => i(h).openMenuFrom(l, t), ["stop"])
361
379
  }, [
362
- C(i(K), {
380
+ $(i(Y), {
363
381
  name: "moreLine",
364
382
  size: 20
365
383
  })
366
- ], 8, We)) : m("", !0)
367
- ])) : m("", !0)
368
- ]),
369
- z.value.length ? (o(), n("div", qe, [
370
- (o(!0), n(p, null, $(z.value, (l) => (o(), n(p, {
384
+ ], 8, We)) : y("", !0)
385
+ ])) : y("", !0)
386
+ ], 2),
387
+ F.value.length ? (o(), n("div", qe, [
388
+ (o(!0), n(p, null, S(F.value, (l) => (o(), n(p, {
371
389
  key: String(l.key)
372
390
  }, [
373
- P(l) ? x(r.$slots, A(l), {
391
+ H(l) ? C(r.$slots, A(l), {
374
392
  item: t,
375
- value: E(t, l),
393
+ value: D(t, l),
376
394
  compact: !0,
377
395
  to: e.link(t),
378
396
  search: e.search
379
- }, void 0, void 0, 0) : U(E(t, l)) ? m("", !0) : (o(), n("span", Ze, [
380
- C(Y, {
397
+ }, void 0, void 0, 0) : X(D(t, l)) ? y("", !0) : (o(), n("span", Ze, [
398
+ $(z, {
381
399
  column: l,
382
400
  item: t,
383
401
  compact: !0,
@@ -386,78 +404,78 @@ const Ve = {
386
404
  }, null, 8, ["column", "item", "to", "search"])
387
405
  ]))
388
406
  ], 64))), 128))
389
- ])) : m("", !0)
407
+ ])) : y("", !0)
390
408
  ])
391
409
  ])
392
410
  ]),
393
411
  _: 2
394
412
  }, 1032, ["actions"])
395
- ], 46, Oe))), 128)) : m("", !0),
413
+ ], 46, Ue))), 128)) : y("", !0),
396
414
  e.display === "failed" ? (o(), n("li", et, [
397
- x(r.$slots, "failed")
398
- ])) : m("", !0),
399
- oe.value ? (o(), n("li", tt, [
400
- x(r.$slots, "empty", {}, () => [
401
- C(i(re), {
415
+ C(r.$slots, "failed")
416
+ ])) : y("", !0),
417
+ se.value ? (o(), n("li", tt, [
418
+ C(r.$slots, "empty", {}, () => [
419
+ $(i(ie), {
402
420
  title: i(a)("core.collection.no_data")
403
421
  }, null, 8, ["title"])
404
422
  ])
405
- ])) : m("", !0)
423
+ ])) : y("", !0)
406
424
  ])) : (o(), n("div", ot, [
407
425
  d("div", {
408
426
  class: "overflow-x-auto",
409
- style: L({ minHeight: pe.value })
427
+ style: L({ minHeight: ye.value })
410
428
  }, [
411
429
  d("table", {
412
- class: S(["collection-grid w-full", { condensed: e.density === "condensed" }])
430
+ class: g(["collection-grid w-full", { condensed: e.density === "condensed" }])
413
431
  }, [
414
- d("thead", nt, [
432
+ d("thead", st, [
415
433
  d("tr", null, [
416
- (o(!0), n(p, null, $(e.columns, (t) => (o(), n("th", {
434
+ (o(!0), n(p, null, S(e.columns, (t) => (o(), n("th", {
417
435
  key: String(t.key),
418
436
  scope: "col",
419
- class: S(c(t)),
437
+ class: g(P(t)),
420
438
  style: L({ width: t.width ? `${t.width}px` : void 0, textAlign: t.align ?? "start" }),
421
- "aria-sort": de(t)
439
+ "aria-sort": me(t)
422
440
  }, [
423
441
  d("div", {
424
- class: S(["flex", F[t.align ?? "start"]])
442
+ class: g(["flex", pe[t.align ?? "start"]])
425
443
  }, [
426
444
  t.sort !== void 0 ? (o(), n("button", {
427
445
  key: 0,
428
446
  type: "button",
429
- class: S(["group inline-flex cursor-pointer items-center gap-1 rounded-sm transition-colors hover:text-content-strong focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus", [O(t) ? "font-semibold text-content-strong" : "", t.align === "end" ? "flex-row-reverse" : ""]]),
430
- onClick: (T) => f("sort", t.sort)
447
+ class: g(["group inline-flex cursor-pointer items-center gap-1 rounded-sm transition-colors hover:text-content-strong focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus", [U(t) ? "font-semibold text-content-strong" : "", t.align === "end" ? "flex-row-reverse" : ""]]),
448
+ onClick: (B) => f("sort", t.sort)
431
449
  }, [
432
- d("span", null, w(t.label), 1),
433
- C(i(K), {
434
- name: fe(t),
450
+ d("span", null, x(t.label), 1),
451
+ $(i(Y), {
452
+ name: he(t),
435
453
  size: 14,
436
- class: S(O(t) ? "text-content-muted" : "text-content-disabled opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100")
454
+ class: g(U(t) ? "text-content-muted" : "text-content-disabled opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100")
437
455
  }, null, 8, ["name", "class"])
438
- ], 10, lt)) : (o(), n("span", rt, w(t.label), 1))
456
+ ], 10, lt)) : (o(), n("span", rt, x(t.label), 1))
439
457
  ], 2)
440
- ], 14, st))), 128)),
441
- j.value ? (o(), n("th", it, [
442
- d("span", at, w(i(a)("core.actions.more")), 1)
443
- ])) : m("", !0)
458
+ ], 14, nt))), 128)),
459
+ K.value ? (o(), n("th", it, [
460
+ d("span", at, x(i(a)("core.actions.more")), 1)
461
+ ])) : y("", !0)
444
462
  ])
445
463
  ]),
446
464
  d("tbody", null, [
447
- Q.value ? (o(!0), n(p, { key: 0 }, $(e.skeletonRows, (t) => (o(), n("tr", {
465
+ Q.value ? (o(!0), n(p, { key: 0 }, S(e.skeletonRows, (t) => (o(), n("tr", {
448
466
  key: `skeleton-${t}`,
449
467
  "aria-hidden": "true",
450
468
  style: L(e.rowHeight ? { height: `${e.rowHeight}px` } : void 0)
451
469
  }, [
452
- (o(!0), n(p, null, $(e.columns, (T, l) => (o(), n("td", {
453
- key: String(T.key),
454
- class: S(I(T))
470
+ (o(!0), n(p, null, S(e.columns, (B, l) => (o(), n("td", {
471
+ key: String(B.key),
472
+ class: g(m(B))
455
473
  }, [
456
474
  d("div", {
457
475
  class: "flex animate-pulse items-center gap-3 motion-reduce:animate-none",
458
476
  style: L({ animationDelay: `${t * 60}ms` })
459
477
  }, [
460
- l === 0 ? (o(), n("span", ct)) : m("", !0),
478
+ l === 0 ? (o(), n("span", ct)) : y("", !0),
461
479
  d("span", ut, [
462
480
  d("span", {
463
481
  class: "h-2.5 rounded-full bg-fill-strong",
@@ -470,42 +488,42 @@ const Ve = {
470
488
  ])
471
489
  ], 4)
472
490
  ], 2))), 128)),
473
- j.value ? (o(), n("td", dt, [...k[6] || (k[6] = [
491
+ K.value ? (o(), n("td", dt, [...k[6] || (k[6] = [
474
492
  d("div", { class: "mx-auto h-6 w-6 animate-pulse rounded-full bg-fill motion-reduce:animate-none" }, null, -1)
475
- ])])) : m("", !0)
476
- ], 4))), 128)) : m("", !0),
477
- e.display === "rows" ? (o(!0), n(p, { key: 1 }, $(e.rows, (t, T) => (o(), n("tr", {
493
+ ])])) : y("", !0)
494
+ ], 4))), 128)) : y("", !0),
495
+ e.display === "rows" ? (o(!0), n(p, { key: 1 }, S(e.rows, (t, B) => (o(), n("tr", {
478
496
  key: e.rowKey(t),
479
- class: S(["animate-row-in", [e.link(t) ? "cursor-pointer" : void 0, e.rowClass?.(t)]]),
497
+ class: g(["animate-row-in", [e.link(t) ? "cursor-pointer" : void 0, e.rowClass?.(t)]]),
480
498
  "data-test": "collection-row",
481
- style: L([e.rowHeight ? { height: `${e.rowHeight}px` } : {}, te(T)]),
499
+ style: L([e.rowHeight ? { height: `${e.rowHeight}px` } : {}, oe(B)]),
482
500
  onClickCapture: k[4] || (k[4] = //@ts-ignore
483
501
  (...l) => i(h).onClickCapture && i(h).onClickCapture(...l)),
484
502
  onClick: (l) => i(h).onClick(l, t),
485
503
  onContextmenu: (l) => i(h).onContextMenu(l, t),
486
504
  onPointerdown: (l) => i(h).onPointerDown(l, t)
487
505
  }, [
488
- (o(!0), n(p, null, $(e.columns, (l, he) => (o(), n("td", {
506
+ (o(!0), n(p, null, S(e.columns, (l, be) => (o(), n("td", {
489
507
  key: String(l.key),
490
- class: S(R(l))
508
+ class: g(_(l))
491
509
  }, [
492
- x(r.$slots, A(l), {
510
+ C(r.$slots, A(l), {
493
511
  item: t,
494
- value: E(t, l),
512
+ value: D(t, l),
495
513
  compact: !1,
496
514
  to: e.link(t)
497
515
  }, () => [
498
- C(Y, {
516
+ $(z, {
499
517
  column: l,
500
518
  item: t,
501
519
  compact: !1,
502
520
  to: e.link(t),
503
521
  search: e.search
504
- }, ge({ _: 2 }, [
505
- u.leading && he === 0 ? {
522
+ }, _e({ _: 2 }, [
523
+ u.leading && be === 0 ? {
506
524
  name: "leading",
507
- fn: H(() => [
508
- x(r.$slots, "leading", {
525
+ fn: N(() => [
526
+ C(r.$slots, "leading", {
509
527
  item: t,
510
528
  compact: !1
511
529
  })
@@ -515,22 +533,22 @@ const Ve = {
515
533
  ]), 1032, ["column", "item", "to", "search"])
516
534
  ])
517
535
  ], 2))), 128)),
518
- j.value ? (o(), n("td", pt, [
519
- x(r.$slots, "actions", { item: t }, () => [
520
- d("div", ht, [
521
- e.link(t) ? (o(), D(i(Ce), {
536
+ K.value ? (o(), n("td", pt, [
537
+ C(r.$slots, "actions", { item: t }, () => [
538
+ d("div", mt, [
539
+ e.link(t) ? (o(), M(i(Le), {
522
540
  key: 0,
523
541
  text: i(a)("core.collection.open_record"),
524
542
  side: "left"
525
543
  }, {
526
- default: H(() => [
527
- C(i(ce), {
544
+ default: N(() => [
545
+ $(i(de), {
528
546
  to: e.link(t),
529
547
  "aria-label": `${i(a)("core.collection.open_record")}${e.rowLabel ? `: ${e.rowLabel(t)}` : ""}`,
530
548
  class: "inline-flex rounded-md p-1.5 text-content-link transition-colors hover:bg-tint-soft focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus"
531
549
  }, {
532
- default: H(() => [
533
- C(i(K), {
550
+ default: N(() => [
551
+ $(i(Y), {
534
552
  name: "eye",
535
553
  size: 18
536
554
  })
@@ -539,65 +557,65 @@ const Ve = {
539
557
  }, 8, ["to", "aria-label"])
540
558
  ]),
541
559
  _: 2
542
- }, 1032, ["text"])) : m("", !0),
543
- V.value && J(t) ? (o(), n("button", {
560
+ }, 1032, ["text"])) : y("", !0),
561
+ O.value && J(t) ? (o(), n("button", {
544
562
  key: 1,
545
563
  type: "button",
546
564
  "data-test": "collection-row-more",
547
- "aria-label": Z(t),
565
+ "aria-label": ee(t),
548
566
  class: "hit-target flex size-8 cursor-pointer items-center justify-center rounded-full bg-fill text-content-strong transition-colors duration-motion-fast hover:bg-fill-strong focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus",
549
- onClick: le((l) => i(h).openMenuFrom(l, t), ["stop"])
567
+ onClick: re((l) => i(h).openMenuFrom(l, t), ["stop"])
550
568
  }, [
551
- C(i(K), {
569
+ $(i(Y), {
552
570
  name: "moreLine",
553
571
  size: 18
554
572
  })
555
- ], 8, mt)) : m("", !0)
573
+ ], 8, ht)) : y("", !0)
556
574
  ])
557
575
  ])
558
- ])) : m("", !0)
559
- ], 46, ft))), 128)) : m("", !0),
576
+ ])) : y("", !0)
577
+ ], 46, ft))), 128)) : y("", !0),
560
578
  e.display === "failed" ? (o(), n("tr", yt, [
561
579
  d("td", {
562
- colspan: ee.value,
580
+ colspan: te.value,
563
581
  class: "!whitespace-normal py-6"
564
582
  }, [
565
- x(r.$slots, "failed")
583
+ C(r.$slots, "failed")
566
584
  ], 8, bt)
567
- ])) : m("", !0),
568
- oe.value ? (o(), n("tr", kt, [
585
+ ])) : y("", !0),
586
+ se.value ? (o(), n("tr", kt, [
569
587
  d("td", {
570
- colspan: ee.value,
588
+ colspan: te.value,
571
589
  class: "!whitespace-normal py-6 text-center"
572
590
  }, [
573
- x(r.$slots, "empty", {}, () => [
574
- C(i(re), {
591
+ C(r.$slots, "empty", {}, () => [
592
+ $(i(ie), {
575
593
  title: i(a)("core.collection.no_data")
576
594
  }, null, 8, ["title"])
577
595
  ])
578
- ], 8, gt)
579
- ])) : m("", !0)
596
+ ], 8, vt)
597
+ ])) : y("", !0)
580
598
  ])
581
599
  ], 2)
582
600
  ], 4)
583
601
  ])),
584
- e.rowActions ? (o(), D(i(xe), {
602
+ e.rowActions ? (o(), M(i(Se), {
585
603
  key: 2,
586
604
  ref_key: "rowMenu",
587
- ref: q,
605
+ ref: Z,
588
606
  items: i(h).menuItems.value,
589
607
  label: i(h).menuLabel.value
590
- }, null, 8, ["items", "label"])) : m("", !0)
608
+ }, null, 8, ["items", "label"])) : y("", !0)
591
609
  ], 64));
592
610
  }
593
611
  });
594
- function Dt(y) {
595
- const s = Me("(max-width: 1023px)"), e = g(() => y().some((f) => f.mobile && f.mobile !== "hidden"));
596
- return { narrow: g(() => s.value), phone: g(() => s.value && e.value) };
612
+ function Dt(b) {
613
+ const s = Ee("(max-width: 1023px)"), e = v(() => b().some((f) => f.mobile && f.mobile !== "hidden"));
614
+ return { narrow: v(() => s.value), phone: v(() => s.value && e.value) };
597
615
  }
598
616
  export {
599
- Tt as _,
600
- Y as a,
601
- ae as b,
617
+ At as _,
618
+ z as a,
619
+ ue as b,
602
620
  Dt as u
603
621
  };