@wssto2/vue-core 0.4.3 → 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.
- package/dist/{Activity-DnW1LTO2.js → Activity-DukTfcmn.js} +2 -2
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-bxYKlHB7.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-B7qSUiee.js} +137 -129
- package/dist/{Changes-DJDSlnp1.js → Changes-Dhi7EBe9.js} +2 -2
- package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-BuAdhiy_.js +1514 -0
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-DBtMgcW6.js → DataTable.vue_vue_type_script_setup_true_lang-KPm5NrDE.js} +1 -1
- package/dist/{DeadLetters-C8ICE47Y.js → DeadLetters-CfKE1axC.js} +2 -2
- package/dist/{General-BbEDM3y_.js → General-BwT5Y_TN.js} +2 -2
- package/dist/IconTile.vue_vue_type_script_setup_true_lang-_FXvaj93.js +50 -0
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-ClsOlOSr.js → Menu.vue_vue_type_script_setup_true_lang-uPmxWvds.js} +56 -50
- package/dist/{NewRolePage-CYfEuRIV.js → NewRolePage-B8OGQE-A.js} +3 -3
- package/dist/{ProfilePage-V2ywWbL3.js → ProfilePage-DIJEhiW-.js} +4 -4
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-BCTNrzBb.js → RecordHeader.vue_vue_type_script_setup_true_lang-D87Hs75d.js} +1 -1
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-C_tQTUyN.js → ResourcePage.vue_vue_type_script_setup_true_lang-gJGEfLzX.js} +1 -1
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-et4dyitf.js → RoleEditor.vue_vue_type_script_setup_true_lang-4YJhNgbn.js} +1 -1
- package/dist/{RolePage-CjCBcRau.js → RolePage-Bn0re7VE.js} +6 -6
- package/dist/{RolesPage-Cr3Hlr4Q.js → RolesPage-CjEAQvTq.js} +3 -3
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-BtQjHjd4.js → SectionList.vue_vue_type_script_setup_true_lang-B0p_8xQG.js} +2 -2
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-BGc8A9AQ.js → SectionNavigator.vue_vue_type_script_setup_true_lang-ROl9_pdO.js} +3 -3
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-BJoAkBo2.js +437 -0
- package/dist/{SessionList.vue_vue_type_script_setup_true_lang-D5KRitar.js → SessionList.vue_vue_type_script_setup_true_lang-D4k5QeWS.js} +1 -1
- package/dist/{Sessions-_35nYhoR.js → Sessions-BZnBtu7h.js} +2 -2
- package/dist/{SettingsPage-CDESMl3M.js → SettingsPage-BmRCB75J.js} +2 -2
- package/dist/{SignIn-CkXwxorT.js → SignIn-D-n9cfMH.js} +2 -2
- package/dist/{SignInPage-BdwfKB31.js → SignInPage-BzIP6sPa.js} +1 -1
- package/dist/{SignInTable.vue_vue_type_script_setup_true_lang-CifEaH7c.js → SignInTable.vue_vue_type_script_setup_true_lang-ALAuc0sI.js} +1 -1
- package/dist/{SignIns-Dvdid5QB.js → SignIns-dFIzemgy.js} +2 -2
- package/dist/ToneDot.vue_vue_type_script_setup_true_lang-99rNn-L5.js +24 -0
- package/dist/{UserRecord-CM0JQQGT.js → UserRecord-DoOu1hWB.js} +5 -5
- package/dist/{UsersList-CR3RpQ4-.js → UsersList-CYBGEOqE.js} +4 -4
- package/dist/access/index.js +1 -1
- package/dist/collection/CollectionCell.vue.d.ts +2 -0
- package/dist/collection/RecordIdentity.vue.d.ts +6 -0
- package/dist/collection/filters.d.ts +4 -0
- package/dist/collection/index.js +3 -3
- package/dist/collection/rowInteractions.d.ts +2 -0
- package/dist/controls/IconTile.vue.d.ts +10 -3
- package/dist/controls/index.js +1 -1
- package/dist/form/I18nField.vue.d.ts +1 -1
- package/dist/form/TextareaField.vue.d.ts +1 -1
- package/dist/form/index.js +4 -4
- package/dist/form/options.d.ts +3 -0
- package/dist/identity/index.js +1 -1
- package/dist/{index-ClU_gPzK.js → index-BHt1dLX2.js} +2 -2
- package/dist/{index-B1jflSA6.js → index-BVX0nmMv.js} +10 -10
- package/dist/{index-DVp6cwfN.js → index-CixCeO47.js} +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/overlay/AlertDialog.vue.d.ts +2 -2
- package/dist/overlay/Menu.vue.d.ts +3 -0
- package/dist/overlay/index.js +1 -1
- package/dist/page/AdaptivePageShell.vue.d.ts +2 -2
- package/dist/page/ResourceHeader.vue.d.ts +2 -2
- package/dist/page/index.js +5 -5
- package/dist/resource/index.js +1 -1
- package/dist/{rowLayout-CZ7uZFnE.js → rowLayout-BkQWulan.js} +239 -221
- package/dist/shell/NavigationList.vue.d.ts +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/state/ToneDot.vue.d.ts +12 -0
- package/dist/{status-D2Fmu3YH.js → status-D3cLPSCh.js} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/styles/collection.css +1 -1
- package/src/styles/theme.css +7 -0
- package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-B-TJDr4d.js +0 -1485
- package/dist/IconTile.vue_vue_type_script_setup_true_lang-BpIjgu5E.js +0 -40
- 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
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { RouterLink as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { u as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { a as
|
|
13
|
-
function
|
|
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 ||
|
|
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
|
|
17
|
+
return b.split(f).flatMap((u, a) => u === "" ? [] : [{ text: u, match: a % 2 === 1 }]);
|
|
18
18
|
}
|
|
19
|
-
const
|
|
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(
|
|
32
|
-
const s =
|
|
33
|
-
return (f, u) => (o(), n("div",
|
|
34
|
-
s.
|
|
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:
|
|
40
|
-
(o(!0), n(p, null,
|
|
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:
|
|
44
|
-
},
|
|
45
|
-
G(
|
|
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",
|
|
51
|
-
|
|
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:
|
|
55
|
-
},
|
|
56
|
-
G(
|
|
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:
|
|
64
|
-
},
|
|
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
|
|
69
|
-
let e =
|
|
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
|
|
79
|
+
const Be = {
|
|
77
80
|
key: 0,
|
|
78
81
|
class: "flex items-center gap-3"
|
|
79
|
-
},
|
|
82
|
+
}, Ie = ["datetime"], He = {
|
|
80
83
|
key: 2,
|
|
81
84
|
class: "tabular-nums"
|
|
82
|
-
},
|
|
85
|
+
}, Ne = {
|
|
83
86
|
key: 3,
|
|
84
87
|
class: "tabular-nums"
|
|
85
|
-
},
|
|
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(
|
|
95
|
-
const s =
|
|
96
|
-
return (
|
|
97
|
-
!s.compact &&
|
|
98
|
-
|
|
99
|
-
|
|
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(),
|
|
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
|
-
},
|
|
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",
|
|
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:
|
|
130
|
-
G(
|
|
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(
|
|
139
|
+
G(x(a.value), 1)
|
|
135
140
|
], 64));
|
|
136
141
|
}
|
|
137
|
-
}),
|
|
138
|
-
function
|
|
139
|
-
const s =
|
|
140
|
-
let u = !1, a = null,
|
|
141
|
-
const
|
|
142
|
-
function
|
|
143
|
-
return
|
|
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
|
|
146
|
-
const
|
|
147
|
-
return
|
|
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
|
-
})),
|
|
161
|
+
})), ge(() => b.presentMenu(m, P)), !0);
|
|
157
162
|
}
|
|
158
|
-
function
|
|
159
|
-
const
|
|
160
|
-
|
|
163
|
+
function F(c, m) {
|
|
164
|
+
const P = c.currentTarget.getBoundingClientRect();
|
|
165
|
+
I(m, P.left, P.bottom);
|
|
161
166
|
}
|
|
162
|
-
function
|
|
163
|
-
!
|
|
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
|
|
170
|
+
function T() {
|
|
166
171
|
a && clearTimeout(a), a = null;
|
|
167
172
|
}
|
|
168
|
-
function
|
|
169
|
-
u = !1, !(c.pointerType !== "touch" || !
|
|
170
|
-
a = null,
|
|
171
|
-
},
|
|
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
|
|
174
|
-
a && Math.hypot(c.clientX -
|
|
178
|
+
function H(c) {
|
|
179
|
+
a && Math.hypot(c.clientX - w.x, c.clientY - w.y) > Ve && T();
|
|
175
180
|
}
|
|
176
|
-
function
|
|
181
|
+
function D(c) {
|
|
177
182
|
u && (u = !1, c.preventDefault(), c.stopPropagation());
|
|
178
183
|
}
|
|
179
|
-
function
|
|
180
|
-
const
|
|
181
|
-
if (!(!
|
|
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(
|
|
188
|
+
window.open(s.resolve(P).href, "_blank");
|
|
184
189
|
return;
|
|
185
190
|
}
|
|
186
|
-
s.push(
|
|
191
|
+
s.push(P);
|
|
187
192
|
}
|
|
188
193
|
}
|
|
189
|
-
return
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
199
|
-
key:
|
|
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
|
-
},
|
|
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 },
|
|
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
|
-
},
|
|
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(
|
|
256
|
-
const e =
|
|
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) =>
|
|
265
|
+
presentMenu: (r, k) => Z.value?.presentAt(r, k),
|
|
261
266
|
moreLabel: () => a("core.page.more_actions")
|
|
262
|
-
}),
|
|
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",
|
|
265
|
-
Q.value ? (o(!0), n(p, { key: 0 },
|
|
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",
|
|
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)) :
|
|
283
|
-
e.display === "rows" ? (o(!0), n(p, { key: 1 },
|
|
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(
|
|
290
|
+
style: L(oe(B)),
|
|
286
291
|
"data-test": "collection-row",
|
|
287
|
-
class:
|
|
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
|
-
|
|
305
|
+
$(i($e), {
|
|
301
306
|
actions: i(h).swipeActions(t),
|
|
302
307
|
"content-class": "px-row-inset py-2.5"
|
|
303
308
|
}, {
|
|
304
|
-
default:
|
|
305
|
-
d("div",
|
|
306
|
-
u.leading ? (o(), n("div",
|
|
307
|
-
|
|
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
|
-
])) :
|
|
312
|
-
d("div",
|
|
313
|
-
d("div",
|
|
314
|
-
|
|
315
|
-
|
|
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
|
-
|
|
328
|
+
H(l) ? C(r.$slots, A(l), {
|
|
319
329
|
item: t,
|
|
320
|
-
value:
|
|
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(),
|
|
325
|
-
|
|
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
|
-
|
|
336
|
-
(o(!0), n(p, null,
|
|
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
|
-
|
|
357
|
+
H(l) ? C(r.$slots, A(l), {
|
|
340
358
|
item: t,
|
|
341
|
-
value:
|
|
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(),
|
|
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
|
-
|
|
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":
|
|
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:
|
|
378
|
+
onClick: re((l) => i(h).openMenuFrom(l, t), ["stop"])
|
|
361
379
|
}, [
|
|
362
|
-
|
|
380
|
+
$(i(Y), {
|
|
363
381
|
name: "moreLine",
|
|
364
382
|
size: 20
|
|
365
383
|
})
|
|
366
|
-
], 8, We)) :
|
|
367
|
-
])) :
|
|
368
|
-
]),
|
|
369
|
-
|
|
370
|
-
(o(!0), n(p, null,
|
|
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
|
-
|
|
391
|
+
H(l) ? C(r.$slots, A(l), {
|
|
374
392
|
item: t,
|
|
375
|
-
value:
|
|
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) :
|
|
380
|
-
|
|
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
|
-
])) :
|
|
407
|
+
])) : y("", !0)
|
|
390
408
|
])
|
|
391
409
|
])
|
|
392
410
|
]),
|
|
393
411
|
_: 2
|
|
394
412
|
}, 1032, ["actions"])
|
|
395
|
-
], 46,
|
|
413
|
+
], 46, Ue))), 128)) : y("", !0),
|
|
396
414
|
e.display === "failed" ? (o(), n("li", et, [
|
|
397
|
-
|
|
398
|
-
])) :
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
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
|
-
])) :
|
|
423
|
+
])) : y("", !0)
|
|
406
424
|
])) : (o(), n("div", ot, [
|
|
407
425
|
d("div", {
|
|
408
426
|
class: "overflow-x-auto",
|
|
409
|
-
style: L({ minHeight:
|
|
427
|
+
style: L({ minHeight: ye.value })
|
|
410
428
|
}, [
|
|
411
429
|
d("table", {
|
|
412
|
-
class:
|
|
430
|
+
class: g(["collection-grid w-full", { condensed: e.density === "condensed" }])
|
|
413
431
|
}, [
|
|
414
|
-
d("thead",
|
|
432
|
+
d("thead", st, [
|
|
415
433
|
d("tr", null, [
|
|
416
|
-
(o(!0), n(p, null,
|
|
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:
|
|
437
|
+
class: g(P(t)),
|
|
420
438
|
style: L({ width: t.width ? `${t.width}px` : void 0, textAlign: t.align ?? "start" }),
|
|
421
|
-
"aria-sort":
|
|
439
|
+
"aria-sort": me(t)
|
|
422
440
|
}, [
|
|
423
441
|
d("div", {
|
|
424
|
-
class:
|
|
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:
|
|
430
|
-
onClick: (
|
|
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,
|
|
433
|
-
|
|
434
|
-
name:
|
|
450
|
+
d("span", null, x(t.label), 1),
|
|
451
|
+
$(i(Y), {
|
|
452
|
+
name: he(t),
|
|
435
453
|
size: 14,
|
|
436
|
-
class:
|
|
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,
|
|
456
|
+
], 10, lt)) : (o(), n("span", rt, x(t.label), 1))
|
|
439
457
|
], 2)
|
|
440
|
-
], 14,
|
|
441
|
-
|
|
442
|
-
d("span", at,
|
|
443
|
-
])) :
|
|
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 },
|
|
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,
|
|
453
|
-
key: String(
|
|
454
|
-
class:
|
|
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)) :
|
|
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
|
-
|
|
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
|
-
])])) :
|
|
476
|
-
], 4))), 128)) :
|
|
477
|
-
e.display === "rows" ? (o(!0), n(p, { key: 1 },
|
|
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:
|
|
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` } : {},
|
|
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,
|
|
506
|
+
(o(!0), n(p, null, S(e.columns, (l, be) => (o(), n("td", {
|
|
489
507
|
key: String(l.key),
|
|
490
|
-
class:
|
|
508
|
+
class: g(_(l))
|
|
491
509
|
}, [
|
|
492
|
-
|
|
510
|
+
C(r.$slots, A(l), {
|
|
493
511
|
item: t,
|
|
494
|
-
value:
|
|
512
|
+
value: D(t, l),
|
|
495
513
|
compact: !1,
|
|
496
514
|
to: e.link(t)
|
|
497
515
|
}, () => [
|
|
498
|
-
|
|
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
|
-
},
|
|
505
|
-
u.leading &&
|
|
522
|
+
}, _e({ _: 2 }, [
|
|
523
|
+
u.leading && be === 0 ? {
|
|
506
524
|
name: "leading",
|
|
507
|
-
fn:
|
|
508
|
-
|
|
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
|
-
|
|
519
|
-
|
|
520
|
-
d("div",
|
|
521
|
-
e.link(t) ? (o(),
|
|
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:
|
|
527
|
-
|
|
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:
|
|
533
|
-
|
|
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"])) :
|
|
543
|
-
|
|
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":
|
|
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:
|
|
567
|
+
onClick: re((l) => i(h).openMenuFrom(l, t), ["stop"])
|
|
550
568
|
}, [
|
|
551
|
-
|
|
569
|
+
$(i(Y), {
|
|
552
570
|
name: "moreLine",
|
|
553
571
|
size: 18
|
|
554
572
|
})
|
|
555
|
-
], 8,
|
|
573
|
+
], 8, ht)) : y("", !0)
|
|
556
574
|
])
|
|
557
575
|
])
|
|
558
|
-
])) :
|
|
559
|
-
], 46, ft))), 128)) :
|
|
576
|
+
])) : y("", !0)
|
|
577
|
+
], 46, ft))), 128)) : y("", !0),
|
|
560
578
|
e.display === "failed" ? (o(), n("tr", yt, [
|
|
561
579
|
d("td", {
|
|
562
|
-
colspan:
|
|
580
|
+
colspan: te.value,
|
|
563
581
|
class: "!whitespace-normal py-6"
|
|
564
582
|
}, [
|
|
565
|
-
|
|
583
|
+
C(r.$slots, "failed")
|
|
566
584
|
], 8, bt)
|
|
567
|
-
])) :
|
|
568
|
-
|
|
585
|
+
])) : y("", !0),
|
|
586
|
+
se.value ? (o(), n("tr", kt, [
|
|
569
587
|
d("td", {
|
|
570
|
-
colspan:
|
|
588
|
+
colspan: te.value,
|
|
571
589
|
class: "!whitespace-normal py-6 text-center"
|
|
572
590
|
}, [
|
|
573
|
-
|
|
574
|
-
|
|
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,
|
|
579
|
-
])) :
|
|
596
|
+
], 8, vt)
|
|
597
|
+
])) : y("", !0)
|
|
580
598
|
])
|
|
581
599
|
], 2)
|
|
582
600
|
], 4)
|
|
583
601
|
])),
|
|
584
|
-
e.rowActions ? (o(),
|
|
602
|
+
e.rowActions ? (o(), M(i(Se), {
|
|
585
603
|
key: 2,
|
|
586
604
|
ref_key: "rowMenu",
|
|
587
|
-
ref:
|
|
605
|
+
ref: Z,
|
|
588
606
|
items: i(h).menuItems.value,
|
|
589
607
|
label: i(h).menuLabel.value
|
|
590
|
-
}, null, 8, ["items", "label"])) :
|
|
608
|
+
}, null, 8, ["items", "label"])) : y("", !0)
|
|
591
609
|
], 64));
|
|
592
610
|
}
|
|
593
611
|
});
|
|
594
|
-
function Dt(
|
|
595
|
-
const s =
|
|
596
|
-
return { narrow:
|
|
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
|
-
|
|
600
|
-
|
|
601
|
-
|
|
617
|
+
At as _,
|
|
618
|
+
z as a,
|
|
619
|
+
ue as b,
|
|
602
620
|
Dt as u
|
|
603
621
|
};
|