@declarion/react 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist-lib/{ActionRunner-UGGvGypS.js → ActionRunner-BrXXs8ga.js} +1179 -1287
- package/dist-lib/{DraggableChildrenTable-CljdYXd_.js → DraggableChildrenTable-ChUh120M.js} +39 -39
- package/dist-lib/{Grid-5Y_iPqNW.js → Grid-DT9wV-D7.js} +2 -2
- package/dist-lib/{JsonEditor-KelPV-OQ.js → JsonEditor-DoNmyrYd.js} +2 -2
- package/dist-lib/{LayoutRenderer-CoTMmvNW.js → LayoutRenderer-CUiUEyCz.js} +407 -405
- package/dist-lib/{MarkdownRenderer-unbncYEV.js → MarkdownRenderer-CvURrJCu.js} +1 -1
- package/dist-lib/{MonacoJson-DVjwsaBK.js → MonacoJson-BfpzZ1iT.js} +1 -1
- package/dist-lib/{RefreshControl-oeKhCjEC.js → RefreshControl-CX_D6PcA.js} +92 -94
- package/dist-lib/{SmartDetailPage.impl-Caxd97q6.js → SmartDetailPage.impl-Cd0eqv1J.js} +321 -318
- package/dist-lib/{SmartRecordListPage.impl-BF_ieDc2.js → SmartRecordListPage.impl-DqB_MARs.js} +248 -248
- package/dist-lib/assets/OFL-Inter.txt +93 -0
- package/dist-lib/assets/OFL-JetBrainsMono.txt +93 -0
- package/dist-lib/assets/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist-lib/assets/inter-latin-wght-normal.woff2 +0 -0
- package/dist-lib/assets/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist-lib/assets/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/dist-lib/components/fields/cells/factories/host-icons.d.ts +9 -1
- package/dist-lib/components/layout/TopBar.d.ts +2 -1
- package/dist-lib/components/pages/list/DataCell.d.ts +1 -2
- package/dist-lib/components/primitives/Btn.d.ts +1 -1
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/embed/theme.d.ts +8 -8
- package/dist-lib/hooks/useBrandingChrome.d.ts +28 -2
- package/dist-lib/hooks/useResponsiveMode.d.ts +17 -1
- package/dist-lib/index.js +1971 -1936
- package/dist-lib/lib/brand-tokens.d.ts +43 -0
- package/dist-lib/lib/html-state.d.ts +11 -0
- package/dist-lib/lib/versionTracker.d.ts +6 -0
- package/dist-lib/{registry-DnPK3Msj.js → registry-4fuZuCKy.js} +1425 -1299
- package/dist-lib/stores/page-state.d.ts +1 -1
- package/dist-lib/stores/preferences.d.ts +37 -0
- package/dist-lib/testing.js +25 -25
- package/dist-lib/types/api.d.ts +96 -16
- package/dist-lib/types/schema.d.ts +15 -0
- package/dist-lib/{useProperties-CgRhBh0k.js → useProperties-CT45yZHW.js} +41 -41
- package/dist-lib/{value-GmL5BVFm.js → value-BBnVc95O.js} +97 -97
- package/dist-lib/vite/fingerprint-plugin.d.ts +1 -1
- package/package.json +17 -16
- package/dist-lib/stores/appearance.d.ts +0 -37
|
@@ -17,7 +17,7 @@ function s() {
|
|
|
17
17
|
//#region src/components/detail-layout/widgets/MonacoJson.tsx
|
|
18
18
|
s();
|
|
19
19
|
function c() {
|
|
20
|
-
return (typeof document < "u" && document.documentElement.dataset.
|
|
20
|
+
return (typeof document < "u" && document.documentElement.dataset.colorScheme || "light") === "dark" ? "vs-dark" : "vs";
|
|
21
21
|
}
|
|
22
22
|
var l = {
|
|
23
23
|
readOnly: !0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as e } from "./DynamicIcon-BWO6QtNF.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Bn as t, Hn as n, Mn as r, Q as i, Un as a, Wn as o, Z as s, cn as c, ht as l, it as u, jn as d, kt as f, n as p, yn as m } from "./ActionRunner-BrXXs8ga.js";
|
|
3
3
|
import { useCallback as h, useEffect as g, useId as _, useMemo as v, useRef as y, useState as b } from "react";
|
|
4
4
|
import { useLocation as x } from "react-router-dom";
|
|
5
5
|
import { useQuery as S, useQueryClient as C } from "@tanstack/react-query";
|
|
@@ -157,38 +157,32 @@ function re({ value: t }) {
|
|
|
157
157
|
}
|
|
158
158
|
//#endregion
|
|
159
159
|
//#region src/lib/branding.ts
|
|
160
|
-
var
|
|
161
|
-
function
|
|
162
|
-
let t = {};
|
|
163
|
-
if (!e) return t;
|
|
164
|
-
for (let n of e) t[n.code] = n.value;
|
|
165
|
-
return t;
|
|
166
|
-
}
|
|
167
|
-
function oe(e, t) {
|
|
160
|
+
var L = "branding";
|
|
161
|
+
function ie(e, t) {
|
|
168
162
|
return e?.parameters.find((e) => e.code === t)?.value;
|
|
169
163
|
}
|
|
170
|
-
function
|
|
171
|
-
return
|
|
164
|
+
function ae(e) {
|
|
165
|
+
return oe(ie(e, L));
|
|
172
166
|
}
|
|
173
|
-
function
|
|
167
|
+
function oe(e) {
|
|
174
168
|
if (R(e)) return e;
|
|
175
169
|
}
|
|
176
|
-
function
|
|
177
|
-
let t =
|
|
170
|
+
function se(e) {
|
|
171
|
+
let t = ae(e)?.identity;
|
|
178
172
|
return R(t) ? t : void 0;
|
|
179
173
|
}
|
|
180
174
|
function R(e) {
|
|
181
175
|
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
182
176
|
}
|
|
183
|
-
function
|
|
177
|
+
function ce(e) {
|
|
184
178
|
if (!e) return !1;
|
|
185
179
|
let t = e.trim();
|
|
186
180
|
return t ? t.startsWith("/") || t.startsWith("http://") || t.startsWith("https://") || t.startsWith("data:image/") : !1;
|
|
187
181
|
}
|
|
188
182
|
//#endregion
|
|
189
183
|
//#region src/api/params.ts
|
|
190
|
-
async function
|
|
191
|
-
let e = (await
|
|
184
|
+
async function le() {
|
|
185
|
+
let e = (await f("/api/params/public")).data;
|
|
192
186
|
if (Array.isArray(e)) return { parameters: e };
|
|
193
187
|
let t = e ?? {};
|
|
194
188
|
return {
|
|
@@ -199,24 +193,14 @@ async function ue() {
|
|
|
199
193
|
};
|
|
200
194
|
}
|
|
201
195
|
async function z(e) {
|
|
202
|
-
return (await
|
|
203
|
-
}
|
|
204
|
-
async function de(e, t, n) {
|
|
205
|
-
await m("user.__update", {
|
|
206
|
-
object_ids: [e],
|
|
207
|
-
entity: "user",
|
|
208
|
-
fields: { $params: [{
|
|
209
|
-
param_code: t,
|
|
210
|
-
value: n
|
|
211
|
-
}] }
|
|
212
|
-
});
|
|
196
|
+
return (await f(`/api/params/${encodeURIComponent(e)}`)).data;
|
|
213
197
|
}
|
|
214
198
|
//#endregion
|
|
215
199
|
//#region src/hooks/useParams.ts
|
|
216
200
|
function B() {
|
|
217
201
|
return S({
|
|
218
202
|
queryKey: ["params-public"],
|
|
219
|
-
queryFn:
|
|
203
|
+
queryFn: le,
|
|
220
204
|
staleTime: 300 * 1e3
|
|
221
205
|
});
|
|
222
206
|
}
|
|
@@ -230,7 +214,7 @@ function V(e, t = {}) {
|
|
|
230
214
|
});
|
|
231
215
|
}
|
|
232
216
|
function H(e) {
|
|
233
|
-
let t = l((e) => e.isAuthenticated), n = B(), r = V(e, { enabled: t }), i =
|
|
217
|
+
let t = l((e) => e.isAuthenticated), n = B(), r = V(e, { enabled: t }), i = ue(n.data?.parameters, e);
|
|
234
218
|
if (t && r.data?.found) return {
|
|
235
219
|
value: r.data.value,
|
|
236
220
|
found: !0,
|
|
@@ -247,7 +231,7 @@ function H(e) {
|
|
|
247
231
|
error: r.error ?? n.error ?? null
|
|
248
232
|
};
|
|
249
233
|
}
|
|
250
|
-
function
|
|
234
|
+
function ue(e, t) {
|
|
251
235
|
return e?.find((e) => e.code === t);
|
|
252
236
|
}
|
|
253
237
|
function U(e, t) {
|
|
@@ -268,54 +252,54 @@ function U(e, t) {
|
|
|
268
252
|
//#endregion
|
|
269
253
|
//#region src/hooks/useBranding.ts
|
|
270
254
|
function W() {
|
|
271
|
-
let e = H(
|
|
255
|
+
let e = H(L);
|
|
272
256
|
return {
|
|
273
|
-
branding:
|
|
257
|
+
branding: oe(e.value),
|
|
274
258
|
isLoading: e.loading
|
|
275
259
|
};
|
|
276
260
|
}
|
|
277
|
-
function
|
|
261
|
+
function de() {
|
|
278
262
|
return W().branding?.identity;
|
|
279
263
|
}
|
|
280
|
-
function
|
|
264
|
+
function G() {
|
|
281
265
|
return W().branding?.chrome;
|
|
282
266
|
}
|
|
283
267
|
//#endregion
|
|
284
268
|
//#region src/stores/page-state.ts
|
|
285
|
-
var
|
|
286
|
-
function q(e) {
|
|
287
|
-
K = e;
|
|
288
|
-
}
|
|
269
|
+
var K = 1800 * 1e3, q = null;
|
|
289
270
|
function J(e) {
|
|
290
|
-
|
|
271
|
+
q = e;
|
|
272
|
+
}
|
|
273
|
+
function Y(e) {
|
|
274
|
+
if (!(!e || !q)) for (let t of e.queryKeys) q.removeQueries({
|
|
291
275
|
queryKey: t,
|
|
292
276
|
exact: !0
|
|
293
277
|
});
|
|
294
278
|
}
|
|
295
|
-
function
|
|
279
|
+
function X(e, t) {
|
|
296
280
|
let n = e[t];
|
|
297
281
|
if (!n) return e;
|
|
298
|
-
|
|
282
|
+
Y(n);
|
|
299
283
|
let r = { ...e };
|
|
300
284
|
return delete r[t], r;
|
|
301
285
|
}
|
|
302
|
-
function
|
|
286
|
+
function fe(e, t) {
|
|
303
287
|
let n = e;
|
|
304
288
|
for (; Object.keys(n).length > 64;) {
|
|
305
289
|
let e = null, r = Infinity;
|
|
306
290
|
for (let [i, a] of Object.entries(n)) i !== t && a.lastActiveAt < r && (r = a.lastActiveAt, e = i);
|
|
307
291
|
if (e === null) break;
|
|
308
|
-
n =
|
|
292
|
+
n = X(n, e);
|
|
309
293
|
}
|
|
310
294
|
return n;
|
|
311
295
|
}
|
|
312
296
|
var Z = O((e, t) => ({
|
|
313
297
|
entries: {},
|
|
314
|
-
ttlMs:
|
|
298
|
+
ttlMs: K,
|
|
315
299
|
setTtl: (n) => {
|
|
316
300
|
if (n <= 0) {
|
|
317
301
|
let { entries: r } = t();
|
|
318
|
-
for (let e of Object.keys(r))
|
|
302
|
+
for (let e of Object.keys(r)) Y(r[e]);
|
|
319
303
|
e({
|
|
320
304
|
ttlMs: n,
|
|
321
305
|
entries: {}
|
|
@@ -339,7 +323,7 @@ var Z = O((e, t) => ({
|
|
|
339
323
|
lastActiveAt: o,
|
|
340
324
|
queryKeys: []
|
|
341
325
|
};
|
|
342
|
-
e({ entries:
|
|
326
|
+
e({ entries: fe({
|
|
343
327
|
...a.entries,
|
|
344
328
|
[n]: c
|
|
345
329
|
}, n) });
|
|
@@ -363,7 +347,7 @@ var Z = O((e, t) => ({
|
|
|
363
347
|
registerQueryKey: (n, r) => {
|
|
364
348
|
let i = t();
|
|
365
349
|
if (i.ttlMs <= 0) return;
|
|
366
|
-
let a = Date.now(), o = i.entries[n], s = o?.queryKeys.some((e) =>
|
|
350
|
+
let a = Date.now(), o = i.entries[n], s = o?.queryKeys.some((e) => pe(e, r));
|
|
367
351
|
if (o && s) return;
|
|
368
352
|
let c = o ? {
|
|
369
353
|
...o,
|
|
@@ -374,29 +358,29 @@ var Z = O((e, t) => ({
|
|
|
374
358
|
lastActiveAt: a,
|
|
375
359
|
queryKeys: [r]
|
|
376
360
|
};
|
|
377
|
-
e({ entries:
|
|
361
|
+
e({ entries: fe({
|
|
378
362
|
...i.entries,
|
|
379
363
|
[n]: c
|
|
380
364
|
}, n) });
|
|
381
365
|
},
|
|
382
366
|
kill: (n) => {
|
|
383
|
-
let r = t(), i =
|
|
367
|
+
let r = t(), i = X(r.entries, n);
|
|
384
368
|
i !== r.entries && e({ entries: i });
|
|
385
369
|
},
|
|
386
370
|
sweep: (n) => {
|
|
387
371
|
let { ttlMs: r, entries: i } = t(), a = i;
|
|
388
|
-
for (let [e, t] of Object.entries(i)) (r <= 0 || n - t.lastActiveAt > r) && (a =
|
|
372
|
+
for (let [e, t] of Object.entries(i)) (r <= 0 || n - t.lastActiveAt > r) && (a = X(a, e));
|
|
389
373
|
a !== i && e({ entries: a });
|
|
390
374
|
},
|
|
391
375
|
clear: () => {
|
|
392
376
|
let { entries: n } = t();
|
|
393
377
|
if (Object.keys(n).length !== 0) {
|
|
394
|
-
for (let e of Object.keys(n))
|
|
378
|
+
for (let e of Object.keys(n)) Y(n[e]);
|
|
395
379
|
e({ entries: {} });
|
|
396
380
|
}
|
|
397
381
|
}
|
|
398
382
|
}));
|
|
399
|
-
function
|
|
383
|
+
function pe(e, t) {
|
|
400
384
|
if (e === t) return !0;
|
|
401
385
|
try {
|
|
402
386
|
return JSON.stringify(e) === JSON.stringify(t);
|
|
@@ -406,29 +390,29 @@ function he(e, t) {
|
|
|
406
390
|
}
|
|
407
391
|
//#endregion
|
|
408
392
|
//#region src/lib/canonical-url.ts
|
|
409
|
-
function
|
|
393
|
+
function me(e) {
|
|
410
394
|
return e.length > 1 && e.endsWith("/") ? e.replace(/\/+$/, "") || "/" : e;
|
|
411
395
|
}
|
|
412
396
|
function Q(e) {
|
|
413
|
-
let t =
|
|
397
|
+
let t = me(e.pathname), n = e.search ?? "", r = n.startsWith("?") ? n.slice(1) : n, a = new URLSearchParams(r);
|
|
414
398
|
for (let e of i) a.delete(e);
|
|
415
399
|
a.sort();
|
|
416
400
|
let o = a.toString();
|
|
417
401
|
return o ? `${t}?${o}` : t;
|
|
418
402
|
}
|
|
419
|
-
function
|
|
420
|
-
return
|
|
403
|
+
function he(e) {
|
|
404
|
+
return me(e.pathname);
|
|
421
405
|
}
|
|
422
406
|
//#endregion
|
|
423
407
|
//#region src/hooks/usePageStateTtl.ts
|
|
424
|
-
var
|
|
425
|
-
function
|
|
426
|
-
let { value: e } = U(
|
|
427
|
-
return typeof e != "number" || !Number.isFinite(e) || e < 0 ?
|
|
408
|
+
var ge = "ui_page_state_ttl_ms";
|
|
409
|
+
function _e() {
|
|
410
|
+
let { value: e } = U(ge, K);
|
|
411
|
+
return typeof e != "number" || !Number.isFinite(e) || e < 0 ? K : e;
|
|
428
412
|
}
|
|
429
413
|
//#endregion
|
|
430
414
|
//#region src/hooks/usePageStateRuntime.ts
|
|
431
|
-
var
|
|
415
|
+
var ve = [
|
|
432
416
|
["entity-data"],
|
|
433
417
|
["entity-count"],
|
|
434
418
|
["entity-item"],
|
|
@@ -436,24 +420,24 @@ var be = [
|
|
|
436
420
|
["entity-data-all"],
|
|
437
421
|
["action-data"],
|
|
438
422
|
["action-data-cursor"]
|
|
439
|
-
],
|
|
440
|
-
function
|
|
441
|
-
for (let n of
|
|
442
|
-
}
|
|
443
|
-
function
|
|
444
|
-
let e = C(), t =
|
|
445
|
-
r.current = n, g(() => (
|
|
446
|
-
if (Z.getState().setTtl(t),
|
|
423
|
+
], ye = 6e4;
|
|
424
|
+
function be(e, t) {
|
|
425
|
+
for (let n of ve) e.setQueryDefaults(n, { gcTime: t });
|
|
426
|
+
}
|
|
427
|
+
function xe() {
|
|
428
|
+
let e = C(), t = _e(), n = x(), r = y(n);
|
|
429
|
+
r.current = n, g(() => (J(e), () => J(null)), [e]), g(() => {
|
|
430
|
+
if (Z.getState().setTtl(t), be(e, t), t <= 0) for (let t of ve) e.removeQueries({ queryKey: t });
|
|
447
431
|
}, [e, t]), g(() => {
|
|
448
432
|
if (t <= 0) return;
|
|
449
433
|
let e = setInterval(() => {
|
|
450
434
|
let e = Z.getState(), t = r.current;
|
|
451
|
-
e.touch(Q(t)), e.touch(
|
|
452
|
-
},
|
|
435
|
+
e.touch(Q(t)), e.touch(he(t)), e.sweep(Date.now());
|
|
436
|
+
}, ye);
|
|
453
437
|
return () => clearInterval(e);
|
|
454
438
|
}, [t]);
|
|
455
439
|
}
|
|
456
|
-
function
|
|
440
|
+
function Se(e, t = !0) {
|
|
457
441
|
let n = Q(x());
|
|
458
442
|
g(() => {
|
|
459
443
|
!t || !e || Z.getState().registerQueryKey(n, e);
|
|
@@ -465,13 +449,17 @@ function we(e, t = !0) {
|
|
|
465
449
|
}
|
|
466
450
|
//#endregion
|
|
467
451
|
//#region src/lib/record-documents-key.ts
|
|
468
|
-
var
|
|
452
|
+
var Ce = "record-documents";
|
|
469
453
|
//#endregion
|
|
470
454
|
//#region src/hooks/useBrandingChrome.ts
|
|
471
|
-
function
|
|
472
|
-
let
|
|
455
|
+
function we() {
|
|
456
|
+
let e = s(), t = G();
|
|
457
|
+
return (e.enabled ? t?.embed?.viewport : t?.full?.viewport) ?? "auto";
|
|
458
|
+
}
|
|
459
|
+
function Te(e) {
|
|
460
|
+
let t = s(), n = G();
|
|
473
461
|
return v(() => {
|
|
474
|
-
let r =
|
|
462
|
+
let r = { ...t.enabled ? n?.embed?.surfaces?.[e] : n?.full?.surfaces?.[e] };
|
|
475
463
|
return {
|
|
476
464
|
...r,
|
|
477
465
|
isVisible: (e) => r[e] !== !1
|
|
@@ -482,6 +470,16 @@ function Ee(e) {
|
|
|
482
470
|
e
|
|
483
471
|
]);
|
|
484
472
|
}
|
|
473
|
+
function Ee() {
|
|
474
|
+
let e = G();
|
|
475
|
+
return v(() => {
|
|
476
|
+
let t = { ...e?.full?.shell };
|
|
477
|
+
return {
|
|
478
|
+
...t,
|
|
479
|
+
isVisible: (e) => t[e] !== !1
|
|
480
|
+
};
|
|
481
|
+
}, [e]);
|
|
482
|
+
}
|
|
485
483
|
//#endregion
|
|
486
484
|
//#region src/components/pages/exportRequest.ts
|
|
487
485
|
var De = /* @__PURE__ */ new Set(["_select", "_actions"]);
|
|
@@ -501,10 +499,10 @@ function ke(e, t) {
|
|
|
501
499
|
//#endregion
|
|
502
500
|
//#region src/components/pages/DocumentsMenu.tsx
|
|
503
501
|
var Ae = "document-templates-available";
|
|
504
|
-
function je({ entityCode: n, scope: i, objectIds: a = [], viewState: s, selectedIds:
|
|
505
|
-
let { run:
|
|
502
|
+
function je({ entityCode: n, scope: i, objectIds: a = [], viewState: s, selectedIds: l = [], capability: d, canManageTemplates: f = !1 }) {
|
|
503
|
+
let { run: m } = p(), h = y(null), [g, _] = b(!1), x = i === "detail" ? !!d?.generate_one : !!d?.generate_many, C = f && !x, { data: D, isLoading: O, error: k } = S({
|
|
506
504
|
queryKey: [Ae, n],
|
|
507
|
-
queryFn: async () => (await
|
|
505
|
+
queryFn: async () => (await u("document.templates.available", { entity: n })).result?.templates ?? [],
|
|
508
506
|
enabled: g || C,
|
|
509
507
|
staleTime: 6e4
|
|
510
508
|
}), A = O, j = v(() => (D ?? []).filter((e) => i === "detail" ? e.input_mode === "one" || e.input_mode === "global" : e.input_mode === "many" || e.input_mode === "global"), [i, D]), M = C && j.length > 0, N = x || M;
|
|
@@ -522,16 +520,16 @@ function je({ entityCode: n, scope: i, objectIds: a = [], viewState: s, selected
|
|
|
522
520
|
return s && e.push({
|
|
523
521
|
kind: "current_view",
|
|
524
522
|
query: Oe(s)
|
|
525
|
-
}),
|
|
523
|
+
}), l.length > 0 && e.push({
|
|
526
524
|
kind: "selected",
|
|
527
|
-
objectIds:
|
|
525
|
+
objectIds: l
|
|
528
526
|
}), e;
|
|
529
527
|
}
|
|
530
528
|
return [];
|
|
531
529
|
}
|
|
532
530
|
function I(e, t, n) {
|
|
533
|
-
let r = Me(e), i =
|
|
534
|
-
_(!1),
|
|
531
|
+
let r = Me(e), i = c(e.name) || e.code;
|
|
532
|
+
_(!1), m({
|
|
535
533
|
action: r,
|
|
536
534
|
title: i,
|
|
537
535
|
execute: (r) => {
|
|
@@ -543,11 +541,11 @@ function je({ entityCode: n, scope: i, objectIds: a = [], viewState: s, selected
|
|
|
543
541
|
return Object.keys(r).length > 0 && (i.params = r), "objectIds" in t && (i.object_ids = t.objectIds), "query" in t && (i.query = {
|
|
544
542
|
scope: "current_view",
|
|
545
543
|
query: t.query
|
|
546
|
-
}),
|
|
544
|
+
}), u("document.generate", i);
|
|
547
545
|
}
|
|
548
546
|
});
|
|
549
547
|
}
|
|
550
|
-
return N ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(
|
|
548
|
+
return N ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(o, {
|
|
551
549
|
ref: h,
|
|
552
550
|
kind: "ghost",
|
|
553
551
|
size: "sm",
|
|
@@ -555,7 +553,7 @@ function je({ entityCode: n, scope: i, objectIds: a = [], viewState: s, selected
|
|
|
555
553
|
onClick: P,
|
|
556
554
|
disabled: A,
|
|
557
555
|
children: "Generate"
|
|
558
|
-
}), /* @__PURE__ */ E(
|
|
556
|
+
}), /* @__PURE__ */ E(t, {
|
|
559
557
|
open: g,
|
|
560
558
|
anchor: h.current,
|
|
561
559
|
onClose: () => _(!1),
|
|
@@ -582,7 +580,7 @@ function je({ entityCode: n, scope: i, objectIds: a = [], viewState: s, selected
|
|
|
582
580
|
return n.length === 0 ? null : Ne(t).flatMap((i) => n.map((n) => i.available ? /* @__PURE__ */ T(r, {
|
|
583
581
|
icon: /* @__PURE__ */ T(e.file, { size: 12 }),
|
|
584
582
|
onClick: () => I(t, n, i.format),
|
|
585
|
-
title:
|
|
583
|
+
title: c(t.description),
|
|
586
584
|
children: Pe(t, n, i.format)
|
|
587
585
|
}, `${t.source}:${t.code}:${n.kind}:${i.format}`) : /* @__PURE__ */ E(r, {
|
|
588
586
|
disabled: !0,
|
|
@@ -599,7 +597,7 @@ function je({ entityCode: n, scope: i, objectIds: a = [], viewState: s, selected
|
|
|
599
597
|
})] }) : null;
|
|
600
598
|
}
|
|
601
599
|
function Me(e) {
|
|
602
|
-
let t = new
|
|
600
|
+
let t = new m((e.params ?? []).map((e) => ({
|
|
603
601
|
...e,
|
|
604
602
|
name: e.name ?? ""
|
|
605
603
|
})));
|
|
@@ -620,7 +618,7 @@ function Ne(e) {
|
|
|
620
618
|
}));
|
|
621
619
|
}
|
|
622
620
|
function Pe(e, t, n) {
|
|
623
|
-
let r =
|
|
621
|
+
let r = c(e.name) || e.code, i = n ? ` (${n.toUpperCase()})` : "";
|
|
624
622
|
switch (t.kind) {
|
|
625
623
|
case "one": return `${r}${i}`;
|
|
626
624
|
case "selected": return `${r}${i} - selected rows`;
|
|
@@ -810,11 +808,11 @@ function Ze({ liveObject: t, realtime: r = !0 }) {
|
|
|
810
808
|
alignItems: "center",
|
|
811
809
|
gap: 8
|
|
812
810
|
},
|
|
813
|
-
children: [/* @__PURE__ */ T(
|
|
811
|
+
children: [/* @__PURE__ */ T(a, {
|
|
814
812
|
icon: t.isFetching ? /* @__PURE__ */ T("span", {
|
|
815
813
|
"data-testid": "refresh-spinner",
|
|
816
814
|
style: { display: "inline-flex" },
|
|
817
|
-
children: /* @__PURE__ */ T(
|
|
815
|
+
children: /* @__PURE__ */ T(d, { size: 14 })
|
|
818
816
|
}) : /* @__PURE__ */ T(e.refresh, { size: 14 }),
|
|
819
817
|
title: "Refresh",
|
|
820
818
|
disabled: t.isLoading || t.isFetching,
|
|
@@ -824,7 +822,7 @@ function Ze({ liveObject: t, realtime: r = !0 }) {
|
|
|
824
822
|
}), r && /* @__PURE__ */ T("span", {
|
|
825
823
|
"data-testid": "live-indicator",
|
|
826
824
|
title: t.isLive ? "This view updates automatically in realtime." : "Realtime updates are paused. Refresh manually to load the latest data.",
|
|
827
|
-
children: /* @__PURE__ */ T(
|
|
825
|
+
children: /* @__PURE__ */ T(n, {
|
|
828
826
|
tone: t.isLive ? "emerald" : "amber",
|
|
829
827
|
size: "xs",
|
|
830
828
|
dot: !0,
|
|
@@ -834,4 +832,4 @@ function Ze({ liveObject: t, realtime: r = !0 }) {
|
|
|
834
832
|
});
|
|
835
833
|
}
|
|
836
834
|
//#endregion
|
|
837
|
-
export {
|
|
835
|
+
export { V as A, K as C, H as D, de as E, I as F, k as I, ce as M, re as N, U as O, ee as P, Q as S, W as T, xe as _, Ie as a, _e as b, Ge as c, ke as d, Te as f, be as g, Ce as h, Ye as i, se as j, B as k, Fe as l, we as m, Xe as n, qe as o, Ee as p, Je as r, Ue as s, Ze as t, je as u, Se as v, Z as w, he as x, ge as y };
|