@declarion/react 0.255.0 → 0.302.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,17 +2,17 @@ import { BrandLogo as e } from "../../primitives/BrandLogo.js";
2
2
  import { IconBtn as t } from "../../primitives/IconBtn.js";
3
3
  import { Icon as n } from "../../primitives/Icons.js";
4
4
  import { UI_PREFERENCES_PARAM_CODE as r, usePreferencesStore as i } from "../../../stores/preferences.js";
5
- import { useResponsiveMode as ee } from "../../../hooks/useResponsiveMode.js";
6
- import { useBranding as te } from "../../../hooks/useBranding.js";
7
- import { useEffectiveParam as a, usePublicParams as o } from "../../../hooks/useParams.js";
8
- import { useText as s } from "../../../hooks/useText.js";
9
- import { pageInsetX as c } from "../../../lib/page-inset.js";
10
- import { isValidLogoUrl as ne } from "../../../lib/branding.js";
11
- import { useEffect as l, useMemo as u } from "react";
12
- import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
5
+ import { useResponsiveMode as a } from "../../../hooks/useResponsiveMode.js";
6
+ import { useBranding as ee } from "../../../hooks/useBranding.js";
7
+ import { useEffectiveParam as o, usePublicParams as s } from "../../../hooks/useParams.js";
8
+ import { useText as c } from "../../../hooks/useText.js";
9
+ import { pageInsetX as l } from "../../../lib/page-inset.js";
10
+ import { isValidLogoUrl as te } from "../../../lib/branding.js";
11
+ import { useEffect as u, useMemo as d } from "react";
12
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
13
13
  // src/components/pages/auth/AuthShell.tsx
14
- var m = 560;
15
- function h(e) {
14
+ var h = 560;
15
+ function ne(e) {
16
16
  try {
17
17
  return new URL(e).host;
18
18
  } catch {
@@ -27,15 +27,15 @@ function g(e, t) {
27
27
  return e.slice(0, r) === t.slice(0, r) ? e : `${e}+${n}`;
28
28
  }
29
29
  function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x, badges: S, brandName: re }) {
30
- let C = s(), w = i((e) => e.colorScheme), T = ee(), E = i((e) => e.set), D = i((e) => e.hydrateFromParameter), O = a(r).value, k = () => E("colorScheme", w === "dark" ? "light" : "dark"), { branding: A } = te(), j = A?.chrome?.auth?.brand_panel;
31
- l(() => {
30
+ let C = c(), w = i((e) => e.colorScheme), T = a(), E = i((e) => e.set), D = i((e) => e.hydrateFromParameter), O = o(r).value, k = () => E("colorScheme", w === "dark" ? "light" : "dark"), { branding: A } = ee(), j = A?.chrome?.auth?.brand_panel;
31
+ u(() => {
32
32
  D(O);
33
33
  }, [O, D]);
34
- let M = A?.identity, N = re ?? M?.wordmark ?? M?.app_name ?? "", P = y ?? C(M?.auth_tagline), F = b ?? C(M?.auth_subtagline), I = x ?? M?.version_label ?? "", L = u(() => S && S.length ? S : (M?.auth_badges ?? []).map((e) => C(e)).filter(Boolean).slice(0, 8).map((e) => [e, "shield"]), [
34
+ let M = A?.identity, N = re ?? M?.wordmark ?? M?.app_name ?? "", P = y ?? C(M?.auth_tagline), F = b ?? C(M?.auth_subtagline), I = x ?? M?.version_label ?? "", L = d(() => S && S.length ? S : (M?.auth_badges ?? []).map((e) => C(e)).filter(Boolean).slice(0, 8).map((e) => [e, "shield"]), [
35
35
  S,
36
36
  M?.auth_badges,
37
37
  C
38
- ]), R = M?.workspace_domain ?? "", z = !!(v && R), B = M?.status_url ?? "", V = !!B, H = M?.legal_links, U = u(() => [
38
+ ]), R = M?.workspace_domain ?? "", z = !!(v && R), B = M?.status_url ?? "", V = !!B, H = M?.legal_links, U = d(() => [
39
39
  [C("auth.footer.security", "Security"), H?.security_url ?? ""],
40
40
  [C("auth.footer.privacy", "Privacy"), H?.privacy_url ?? ""],
41
41
  [C("auth.footer.terms", "Terms"), H?.terms_url ?? ""],
@@ -46,7 +46,7 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
46
46
  H?.terms_url,
47
47
  H?.docs_url,
48
48
  C
49
- ]), W = M?.legal_entity ?? "", G = `© ${(/* @__PURE__ */ new Date()).getFullYear()}${W ? ` ${W}` : ""}`, { data: K } = o(), q = K?.meta, J = g(q?.version, q?.revision), Y = [q?.region ? C("auth.meta.region", "Region: {value}", { value: q.region }) : "", J ? C("auth.meta.build", "Build {value}", { value: J }) : ""].filter(Boolean).join(" · "), X = T.isPhone || T.height < m, Z = j !== "end", Q = ne(M?.app_logo_on_accent) ? M?.app_logo_on_accent : M?.app_logo, $ = !X && /* @__PURE__ */ p("div", {
49
+ ]), W = M?.legal_entity ?? "", G = `© ${(/* @__PURE__ */ new Date()).getFullYear()}${W ? ` ${W}` : ""}`, { data: K } = s(), q = K?.meta, J = g(q?.version, q?.revision), Y = [q?.region ? C("auth.meta.region", "Region: {value}", { value: q.region }) : "", J ? C("auth.meta.build", "Build {value}", { value: J }) : ""].filter(Boolean).join(" · "), X = T.isPhone || T.height < h, Z = j !== "end", Q = te(M?.app_logo_on_accent) ? M?.app_logo_on_accent : M?.app_logo, $ = !X && /* @__PURE__ */ m("div", {
50
50
  "data-testid": "auth-brand-panel",
51
51
  style: {
52
52
  padding: "36px 36px 28px",
@@ -58,7 +58,7 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
58
58
  overflow: "hidden"
59
59
  },
60
60
  children: [
61
- /* @__PURE__ */ f("div", { style: {
61
+ /* @__PURE__ */ p("div", { style: {
62
62
  position: "absolute",
63
63
  top: -80,
64
64
  right: -80,
@@ -67,7 +67,7 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
67
67
  borderRadius: "50%",
68
68
  background: "radial-gradient(circle, var(--auth-panel-glow-1) 0%, transparent 70%)"
69
69
  } }),
70
- /* @__PURE__ */ f("div", { style: {
70
+ /* @__PURE__ */ p("div", { style: {
71
71
  position: "absolute",
72
72
  bottom: -60,
73
73
  left: -40,
@@ -76,27 +76,31 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
76
76
  borderRadius: "50%",
77
77
  background: "radial-gradient(circle, var(--auth-panel-glow-2) 0%, transparent 70%)"
78
78
  } }),
79
- /* @__PURE__ */ p("div", {
79
+ (Q || N || I) && /* @__PURE__ */ m("div", {
80
80
  style: {
81
+ marginTop: 20,
82
+ position: "relative",
81
83
  display: "flex",
84
+ flexDirection: "column",
82
85
  alignItems: "center",
83
- gap: 8,
84
- position: "relative"
86
+ gap: 16
85
87
  },
86
88
  children: [
87
- /* @__PURE__ */ f(e, {
89
+ Q && /* @__PURE__ */ p(e, {
88
90
  appLogo: Q,
89
- size: 34
91
+ size: 96,
92
+ radius: 0
90
93
  }),
91
- N && /* @__PURE__ */ f("span", {
94
+ N && /* @__PURE__ */ p("span", {
92
95
  style: {
93
- fontSize: 18,
96
+ fontSize: 28,
94
97
  fontWeight: 600,
95
- letterSpacing: "-0.012em"
98
+ letterSpacing: "-0.018em",
99
+ color: "var(--auth-panel-fg)"
96
100
  },
97
101
  children: N
98
102
  }),
99
- I && /* @__PURE__ */ f("span", {
103
+ I && /* @__PURE__ */ p("span", {
100
104
  className: "mono",
101
105
  style: {
102
106
  fontSize: 10,
@@ -109,36 +113,13 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
109
113
  })
110
114
  ]
111
115
  }),
112
- (Q || N) && /* @__PURE__ */ p("div", {
113
- style: {
114
- marginTop: 48,
115
- position: "relative",
116
- display: "flex",
117
- flexDirection: "column",
118
- alignItems: "center",
119
- gap: 16
120
- },
121
- children: [Q && /* @__PURE__ */ f(e, {
122
- appLogo: Q,
123
- size: 96,
124
- radius: 0
125
- }), N && /* @__PURE__ */ f("span", {
126
- style: {
127
- fontSize: 28,
128
- fontWeight: 600,
129
- letterSpacing: "-0.018em",
130
- color: "var(--auth-panel-fg)"
131
- },
132
- children: N
133
- })]
134
- }),
135
- /* @__PURE__ */ p("div", {
116
+ /* @__PURE__ */ m("div", {
136
117
  style: {
137
118
  marginTop: "auto",
138
119
  position: "relative"
139
120
  },
140
121
  children: [
141
- P && /* @__PURE__ */ f("h1", {
122
+ P && /* @__PURE__ */ p("h1", {
142
123
  style: {
143
124
  margin: 0,
144
125
  fontSize: 26,
@@ -148,7 +129,7 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
148
129
  },
149
130
  children: P
150
131
  }),
151
- F && /* @__PURE__ */ f("p", {
132
+ F && /* @__PURE__ */ p("p", {
152
133
  style: {
153
134
  margin: "10px 0 0",
154
135
  fontSize: 13,
@@ -157,7 +138,7 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
157
138
  },
158
139
  children: F
159
140
  }),
160
- L.length > 0 && /* @__PURE__ */ f("div", {
141
+ L.length > 0 && /* @__PURE__ */ p("div", {
161
142
  style: {
162
143
  marginTop: 22,
163
144
  display: "grid",
@@ -168,20 +149,20 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
168
149
  },
169
150
  children: L.map(([e, t]) => {
170
151
  let r = n[t];
171
- return /* @__PURE__ */ p("div", {
152
+ return /* @__PURE__ */ m("div", {
172
153
  style: {
173
154
  display: "flex",
174
155
  alignItems: "center",
175
156
  gap: 6
176
157
  },
177
- children: [r && /* @__PURE__ */ f(r, {
158
+ children: [r && /* @__PURE__ */ p(r, {
178
159
  size: 12,
179
160
  style: { color: "var(--auth-panel-fg)" }
180
- }), /* @__PURE__ */ f("span", { children: e })]
161
+ }), /* @__PURE__ */ p("span", { children: e })]
181
162
  }, e);
182
163
  })
183
164
  }),
184
- V && /* @__PURE__ */ f("a", {
165
+ V && /* @__PURE__ */ p("a", {
185
166
  href: B,
186
167
  target: "_blank",
187
168
  rel: "noopener noreferrer",
@@ -199,13 +180,13 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
199
180
  color: "var(--auth-panel-fg-muted)",
200
181
  textDecoration: "none"
201
182
  },
202
- children: h(B)
183
+ children: ne(B)
203
184
  })
204
185
  ]
205
186
  })
206
187
  ]
207
188
  });
208
- return /* @__PURE__ */ p("div", {
189
+ return /* @__PURE__ */ m("div", {
209
190
  style: {
210
191
  minHeight: "var(--app-height)",
211
192
  background: "var(--background)",
@@ -215,11 +196,11 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
215
196
  overflowX: "hidden"
216
197
  },
217
198
  children: [
218
- /* @__PURE__ */ p("div", {
199
+ /* @__PURE__ */ m("div", {
219
200
  style: {
220
201
  paddingTop: X ? 12 : 16,
221
202
  paddingBottom: X ? 12 : 16,
222
- ...X ? c(14) : {
203
+ ...X ? l(14) : {
223
204
  paddingLeft: 20,
224
205
  paddingRight: 20
225
206
  },
@@ -228,11 +209,11 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
228
209
  gap: 10
229
210
  },
230
211
  children: [
231
- /* @__PURE__ */ f(e, {
212
+ /* @__PURE__ */ p(e, {
232
213
  appLogo: M?.app_logo,
233
214
  size: 26
234
215
  }),
235
- N && /* @__PURE__ */ f("span", {
216
+ N && !$ && /* @__PURE__ */ p("span", {
236
217
  style: {
237
218
  fontSize: 14,
238
219
  fontWeight: 600,
@@ -244,7 +225,7 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
244
225
  },
245
226
  children: N
246
227
  }),
247
- z && /* @__PURE__ */ p("span", {
228
+ z && /* @__PURE__ */ m("span", {
248
229
  className: "mono",
249
230
  style: {
250
231
  marginLeft: 6,
@@ -261,15 +242,15 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
261
242
  R
262
243
  ]
263
244
  }),
264
- /* @__PURE__ */ f("div", { style: { flex: 1 } }),
265
- /* @__PURE__ */ f(t, {
266
- icon: f(w === "dark" ? n.sun : n.moon, { size: 14 }),
245
+ /* @__PURE__ */ p("div", { style: { flex: 1 } }),
246
+ /* @__PURE__ */ p(t, {
247
+ icon: p(w === "dark" ? n.sun : n.moon, { size: 14 }),
267
248
  onClick: k,
268
249
  title: C("auth.toggle_theme", "Toggle theme")
269
250
  })
270
251
  ]
271
252
  }),
272
- /* @__PURE__ */ f("div", {
253
+ /* @__PURE__ */ p("div", {
273
254
  style: {
274
255
  flex: 1,
275
256
  display: "flex",
@@ -277,20 +258,20 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
277
258
  justifyContent: "center",
278
259
  paddingTop: X ? 16 : 20,
279
260
  paddingBottom: X ? 12 : 20,
280
- ...X ? c(12) : {
261
+ ...X ? l(12) : {
281
262
  paddingLeft: 20,
282
263
  paddingRight: 20
283
264
  },
284
265
  minWidth: 0
285
266
  },
286
- children: /* @__PURE__ */ p("div", {
267
+ children: /* @__PURE__ */ m("div", {
287
268
  style: {
288
269
  display: "grid",
289
270
  gridTemplateColumns: X ? "minmax(0, 1fr)" : "1fr 1fr",
290
271
  gap: 0,
291
272
  width: X ? "100%" : 980,
292
273
  maxWidth: "100%",
293
- minHeight: X ? "auto" : m,
274
+ minHeight: X ? "auto" : h,
294
275
  background: "var(--surface)",
295
276
  border: "1px solid var(--border)",
296
277
  borderRadius: X ? "var(--radius-lg)" : "var(--radius-xl)",
@@ -299,7 +280,7 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
299
280
  },
300
281
  children: [
301
282
  Z && $,
302
- /* @__PURE__ */ f("div", {
283
+ /* @__PURE__ */ p("div", {
303
284
  "data-testid": "auth-form-panel",
304
285
  style: {
305
286
  padding: X ? "28px 20px 24px" : "36px 40px",
@@ -314,7 +295,7 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
314
295
  ]
315
296
  })
316
297
  }),
317
- /* @__PURE__ */ p("div", {
298
+ /* @__PURE__ */ m("div", {
318
299
  style: {
319
300
  padding: X ? "12px 14px calc(12px + var(--safe-area-bottom))" : "14px 20px",
320
301
  display: "flex",
@@ -326,15 +307,15 @@ function _({ children: _, tenantSlug: v, tagline: y, subTagline: b, version: x,
326
307
  minWidth: 0
327
308
  },
328
309
  children: [
329
- /* @__PURE__ */ f("span", { children: G }),
330
- U.map(([e, t]) => /* @__PURE__ */ f("a", {
310
+ /* @__PURE__ */ p("span", { children: G }),
311
+ U.map(([e, t]) => /* @__PURE__ */ p("a", {
331
312
  href: t,
332
313
  target: "_blank",
333
314
  rel: "noopener noreferrer",
334
315
  style: { color: "inherit" },
335
316
  children: e
336
317
  }, e)),
337
- Y && /* @__PURE__ */ p(d, { children: [!X && /* @__PURE__ */ f("div", { style: { flex: 1 } }), /* @__PURE__ */ f("span", {
318
+ Y && /* @__PURE__ */ m(f, { children: [!X && /* @__PURE__ */ p("div", { style: { flex: 1 } }), /* @__PURE__ */ p("span", {
338
319
  className: "mono",
339
320
  style: {
340
321
  maxWidth: "100%",
@@ -1,15 +1,15 @@
1
1
  import { Check as e } from "../../primitives/Check.js";
2
- import { Pill as t } from "../../primitives/Pill.js";
3
- import { getSchemaFieldValue as n, renderSchemaField as r, resolveSchemaFieldLabel as i } from "../../file-widgets/host.js";
4
- import { coerceDisplayString as a } from "../../../lib/display-value.js";
5
- import { effectiveScreenForRecord as o } from "../../../lib/variants.js";
6
- import { getDisplayValue as s } from "../../../types/schema.js";
7
- import { RowActionsCell as c } from "./RowActionsCell.js";
8
- import { resolveCard as l } from "./cardProjection.js";
9
- import { useText as u } from "../../../hooks/useText.js";
10
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
2
+ import { Pill as t, pillColor as n } from "../../primitives/Pill.js";
3
+ import { getSchemaFieldValue as r, renderSchemaField as i, resolveSchemaFieldLabel as a } from "../../file-widgets/host.js";
4
+ import { coerceDisplayString as o } from "../../../lib/display-value.js";
5
+ import { effectiveScreenForRecord as s } from "../../../lib/variants.js";
6
+ import { getDisplayValue as c } from "../../../types/schema.js";
7
+ import { RowActionsCell as l } from "./RowActionsCell.js";
8
+ import { resolveCard as u } from "./cardProjection.js";
9
+ import { useText as d } from "../../../hooks/useText.js";
10
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
11
11
  // src/components/pages/list/ListCardRow.tsx
12
- function p(e, t, n, r) {
12
+ function m(e, t, n, r) {
13
13
  if (t.startsWith("$status.")) {
14
14
  let r = t.slice(8), i = n.status_groups?.[r];
15
15
  return i ? e(i.name) || r : t;
@@ -18,75 +18,75 @@ function p(e, t, n, r) {
18
18
  let r = t.slice(10), i = n.properties?.[r];
19
19
  return i ? e(i.name) || r : t;
20
20
  }
21
- return i(e, n, t, r);
21
+ return a(e, n, t, r);
22
22
  }
23
- function m(e, t, r) {
23
+ function h(e, t, n) {
24
24
  if (e.startsWith("$status.")) {
25
25
  let n = e.slice(8), r = t.$statuses;
26
26
  return Array.isArray(r) && r.some((e) => e.group_code === n);
27
27
  }
28
28
  if (e.startsWith("$property.")) {
29
29
  let n = e.slice(10), r = t.$properties, i = Array.isArray(r) ? r.find((e) => e.property_code === n) : void 0;
30
- return i?.value != null && a(i.value) !== "";
30
+ return i?.value != null && o(i.value) !== "";
31
31
  }
32
- let i = n(r, t, e);
33
- return i != null && a(i) !== "";
32
+ let i = r(n, t, e);
33
+ return i != null && o(i) !== "";
34
34
  }
35
- function h(e, n, i) {
36
- let { entity: o, entityCode: s, refs: c, t: l, renderers: u } = i;
35
+ function g(e, r, a) {
36
+ let { entity: s, entityCode: c, refs: l, t: u, renderers: d } = a;
37
37
  if (e.startsWith("$status.")) {
38
- let r = e.slice(8), i = o.status_groups?.[r], a = n.$statuses, s = Array.isArray(a) ? a.find((e) => e.group_code === r) : void 0;
39
- if (!i || !s) return /* @__PURE__ */ d("span", {
38
+ let i = e.slice(8), a = s.status_groups?.[i], o = r.$statuses, c = Array.isArray(o) ? o.find((e) => e.group_code === i) : void 0;
39
+ if (!a || !c) return /* @__PURE__ */ f("span", {
40
40
  style: { color: "var(--text-3)" },
41
41
  children: "-"
42
42
  });
43
- let c = i.statuses.find((e) => e.code === s.status_code);
44
- return /* @__PURE__ */ d(t, {
45
- tone: c?.color ?? "slate",
43
+ let l = a.statuses.find((e) => e.code === c.status_code);
44
+ return /* @__PURE__ */ f(t, {
45
+ tone: n(l?.color),
46
46
  size: "xs",
47
- children: l(c?.name) || s.status_code
47
+ children: u(l?.name) || c.status_code
48
48
  });
49
49
  }
50
50
  if (e.startsWith("$property.")) {
51
- let t = e.slice(10), r = n.$properties, i = Array.isArray(r) ? r.find((e) => e.property_code === t) : void 0;
52
- return !i || i.value == null ? /* @__PURE__ */ d("span", {
51
+ let t = e.slice(10), n = r.$properties, i = Array.isArray(n) ? n.find((e) => e.property_code === t) : void 0;
52
+ return !i || i.value == null ? /* @__PURE__ */ f("span", {
53
53
  style: { color: "var(--text-3)" },
54
54
  children: "-"
55
- }) : /* @__PURE__ */ d("span", { children: a(i.value) });
55
+ }) : /* @__PURE__ */ f("span", { children: o(i.value) });
56
56
  }
57
- if (o.files?.get(e)) return r({
58
- entity: o,
59
- entityCode: s,
57
+ if (s.files?.get(e)) return i({
58
+ entity: s,
59
+ entityCode: c,
60
60
  fieldName: e,
61
- record: n,
61
+ record: r,
62
62
  mode: "display",
63
63
  surface: "list",
64
- refs: c,
65
- t: l
64
+ refs: l,
65
+ t: u
66
66
  });
67
- let f = u.get(e);
68
- if (!f) {
69
- let t = n[e];
70
- return a(t) || /* @__PURE__ */ d("span", {
67
+ let p = d.get(e);
68
+ if (!p) {
69
+ let t = r[e];
70
+ return o(t) || /* @__PURE__ */ f("span", {
71
71
  style: { color: "var(--text-3)" },
72
72
  children: "-"
73
73
  });
74
74
  }
75
- return f(n[e], n);
75
+ return p(r[e], r);
76
76
  }
77
- function g({ row: t, rowIndex: n, entity: r, screen: i, entityCode: a, entities: g, savedViewColumns: _, refs: v, renderers: y, rowActions: b, tabNavigate: x, interaction: S, hasSoftDelete: C, zebra: w, hasBatchActions: T, hasDetailTarget: E, rowKey: D, measureElement: O }) {
78
- let k = u(), A = {
77
+ function _({ row: t, rowIndex: n, entity: r, screen: i, entityCode: a, entities: o, savedViewColumns: _, refs: v, renderers: y, rowActions: b, tabNavigate: x, interaction: S, hasSoftDelete: C, zebra: w, hasBatchActions: T, hasDetailTarget: E, rowKey: D, measureElement: O }) {
78
+ let k = d(), A = {
79
79
  entity: r,
80
80
  entityCode: a,
81
81
  refs: v,
82
82
  t: k,
83
83
  renderers: y
84
- }, j = t.original, M = o(r, i, j), N = l({
84
+ }, j = t.original, M = s(r, i, j), N = u({
85
85
  entity: r,
86
86
  screen: M,
87
87
  savedViewColumns: _
88
- }), P = C && j[r.soft_delete] != null, F = t.getIsSelected(), I = w && n % 2 == 1, L = E || S.peekAllowed, R = (N.titleUsesDisplay ? s(k, j, r) ?? (N.titleField ? null : D(j)) : null) || (N.titleField ? h(N.titleField, j, A) : D(j)), z = N.subtitleField && (N.explicit || m(N.subtitleField, j, r)) ? N.subtitleField : void 0, B = N.badgeFields.filter((e) => !N.hideEmptyFields || m(e, j, r)), V = N.bodyFields.filter((e) => !N.hideEmptyFields || m(e, j, r)), H = N.metaFields.filter((e) => !N.hideEmptyFields || m(e, j, r));
89
- return /* @__PURE__ */ d("div", {
88
+ }), P = C && j[r.soft_delete] != null, F = t.getIsSelected(), I = w && n % 2 == 1, L = E || S.peekAllowed, R = (N.titleUsesDisplay ? c(k, j, r) ?? (N.titleField ? null : D(j)) : null) || (N.titleField ? g(N.titleField, j, A) : D(j)), z = N.subtitleField && (N.explicit || h(N.subtitleField, j, r)) ? N.subtitleField : void 0, B = N.badgeFields.filter((e) => !N.hideEmptyFields || h(e, j, r)), V = N.bodyFields.filter((e) => !N.hideEmptyFields || h(e, j, r)), H = N.metaFields.filter((e) => !N.hideEmptyFields || h(e, j, r));
89
+ return /* @__PURE__ */ f("div", {
90
90
  "data-index": n,
91
91
  "data-testid": "list-card",
92
92
  ref: (e) => O(e),
@@ -94,7 +94,7 @@ function g({ row: t, rowIndex: n, entity: r, screen: i, entityCode: a, entities:
94
94
  padding: "6px 10px",
95
95
  boxSizing: "border-box"
96
96
  },
97
- children: /* @__PURE__ */ f("div", {
97
+ children: /* @__PURE__ */ p("div", {
98
98
  className: "sl-list-card-surface",
99
99
  "data-row-stripe": I ? "" : void 0,
100
100
  "aria-selected": F,
@@ -128,30 +128,30 @@ function g({ row: t, rowIndex: n, entity: r, screen: i, entityCode: a, entities:
128
128
  S.pressedRow.current = j, S.longPress.handlers.onPointerDown(e);
129
129
  },
130
130
  children: [
131
- T && /* @__PURE__ */ d("span", {
131
+ T && /* @__PURE__ */ f("span", {
132
132
  "data-testid": "row-select-checkbox",
133
133
  style: { paddingTop: 2 },
134
- children: /* @__PURE__ */ d(e, {
134
+ children: /* @__PURE__ */ f(e, {
135
135
  checked: F,
136
136
  onChange: () => t.toggleSelected()
137
137
  })
138
138
  }),
139
- /* @__PURE__ */ f("div", {
139
+ /* @__PURE__ */ p("div", {
140
140
  style: { minWidth: 0 },
141
141
  children: [
142
- /* @__PURE__ */ d("div", {
142
+ /* @__PURE__ */ f("div", {
143
143
  style: {
144
144
  display: "flex",
145
145
  alignItems: "flex-start",
146
146
  gap: 8,
147
147
  minWidth: 0
148
148
  },
149
- children: /* @__PURE__ */ f("div", {
149
+ children: /* @__PURE__ */ p("div", {
150
150
  style: {
151
151
  minWidth: 0,
152
152
  flex: 1
153
153
  },
154
- children: [/* @__PURE__ */ d("div", {
154
+ children: [/* @__PURE__ */ f("div", {
155
155
  style: {
156
156
  fontSize: 14,
157
157
  lineHeight: 1.25,
@@ -160,7 +160,7 @@ function g({ row: t, rowIndex: n, entity: r, screen: i, entityCode: a, entities:
160
160
  overflowWrap: "anywhere"
161
161
  },
162
162
  children: R
163
- }), z && /* @__PURE__ */ d("div", {
163
+ }), z && /* @__PURE__ */ f("div", {
164
164
  style: {
165
165
  marginTop: 3,
166
166
  fontSize: 12.5,
@@ -168,26 +168,26 @@ function g({ row: t, rowIndex: n, entity: r, screen: i, entityCode: a, entities:
168
168
  color: "var(--text-3)",
169
169
  overflowWrap: "anywhere"
170
170
  },
171
- children: h(z, j, A)
171
+ children: g(z, j, A)
172
172
  })]
173
173
  })
174
174
  }),
175
- B.length > 0 && /* @__PURE__ */ d("div", {
175
+ B.length > 0 && /* @__PURE__ */ f("div", {
176
176
  style: {
177
177
  display: "flex",
178
178
  flexWrap: "wrap",
179
179
  gap: 6,
180
180
  marginTop: 10
181
181
  },
182
- children: B.map((e) => /* @__PURE__ */ d("span", {
182
+ children: B.map((e) => /* @__PURE__ */ f("span", {
183
183
  style: {
184
184
  display: "inline-flex",
185
185
  minWidth: 0
186
186
  },
187
- children: h(e, j, A)
187
+ children: g(e, j, A)
188
188
  }, e))
189
189
  }),
190
- V.length > 0 && /* @__PURE__ */ d("dl", {
190
+ V.length > 0 && /* @__PURE__ */ f("dl", {
191
191
  style: {
192
192
  display: "grid",
193
193
  gridTemplateColumns: "minmax(84px, max-content) minmax(0, 1fr)",
@@ -196,23 +196,23 @@ function g({ row: t, rowIndex: n, entity: r, screen: i, entityCode: a, entities:
196
196
  fontSize: 12.5,
197
197
  lineHeight: 1.35
198
198
  },
199
- children: V.map((e) => /* @__PURE__ */ f("div", {
199
+ children: V.map((e) => /* @__PURE__ */ p("div", {
200
200
  style: { display: "contents" },
201
- children: [/* @__PURE__ */ d("dt", {
201
+ children: [/* @__PURE__ */ f("dt", {
202
202
  style: { color: "var(--text-3)" },
203
- children: p(k, e, r, g)
204
- }), /* @__PURE__ */ d("dd", {
203
+ children: m(k, e, r, o)
204
+ }), /* @__PURE__ */ f("dd", {
205
205
  style: {
206
206
  margin: 0,
207
207
  color: "var(--text-2)",
208
208
  minWidth: 0,
209
209
  overflowWrap: "anywhere"
210
210
  },
211
- children: h(e, j, A)
211
+ children: g(e, j, A)
212
212
  })]
213
213
  }, e))
214
214
  }),
215
- H.length > 0 && /* @__PURE__ */ d("div", {
215
+ H.length > 0 && /* @__PURE__ */ f("div", {
216
216
  style: {
217
217
  display: "flex",
218
218
  flexWrap: "wrap",
@@ -221,21 +221,21 @@ function g({ row: t, rowIndex: n, entity: r, screen: i, entityCode: a, entities:
221
221
  color: "var(--text-3)",
222
222
  fontSize: 11.5
223
223
  },
224
- children: H.map((e) => /* @__PURE__ */ f("span", {
224
+ children: H.map((e) => /* @__PURE__ */ p("span", {
225
225
  style: {
226
226
  minWidth: 0,
227
227
  overflowWrap: "anywhere"
228
228
  },
229
229
  children: [
230
- p(k, e, r, g),
230
+ m(k, e, r, o),
231
231
  ": ",
232
- h(e, j, A)
232
+ g(e, j, A)
233
233
  ]
234
234
  }, e))
235
235
  })
236
236
  ]
237
237
  }),
238
- /* @__PURE__ */ d(c, {
238
+ /* @__PURE__ */ f(l, {
239
239
  row: j,
240
240
  rowId: D(j),
241
241
  screen: i,
@@ -252,4 +252,4 @@ function g({ row: t, rowIndex: n, entity: r, screen: i, entityCode: a, entities:
252
252
  })
253
253
  }, t.id);
254
254
  }
255
- export { g as ListCardRow };
255
+ export { _ as ListCardRow };