@plumile/backoffice-react 0.1.125 → 0.1.131

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 (68) hide show
  1. package/lib/esm/auth/login/loginPage.css.js +1 -0
  2. package/lib/esm/auth/login/loginPage.css.js.map +1 -1
  3. package/lib/esm/components/backoffice/billing/BackofficeBillingUsageChart.js +37 -26
  4. package/lib/esm/components/backoffice/billing/BackofficeBillingUsageChart.js.map +1 -1
  5. package/lib/esm/components/backoffice/detail/BackofficeDetailBadgeRow.js +2 -1
  6. package/lib/esm/components/backoffice/detail/BackofficeDetailBadgeRow.js.map +1 -1
  7. package/lib/esm/components/backoffice/detail/BackofficeKpiStrip.js +23 -23
  8. package/lib/esm/components/backoffice/detail/BackofficeKpiStrip.js.map +1 -1
  9. package/lib/esm/components/backoffice/detail/backofficeDetailRelationLink.css.js +1 -0
  10. package/lib/esm/components/backoffice/detail/backofficeKpiStrip.css.js +14 -2
  11. package/lib/esm/components/backoffice/detail/backofficeKpiStrip.css.js.map +1 -1
  12. package/lib/esm/components/backoffice/filters/DeferredFilterSearchInput.js +64 -50
  13. package/lib/esm/components/backoffice/filters/DeferredFilterSearchInput.js.map +1 -1
  14. package/lib/esm/components/backoffice/filters/EntityIdFilterField.js +45 -50
  15. package/lib/esm/components/backoffice/filters/EntityIdFilterField.js.map +1 -1
  16. package/lib/esm/components/backoffice/filters/deferredFilterSearchInput.css.js +2 -2
  17. package/lib/esm/components/backoffice/filters/deferredFilterSearchInput.css.js.map +1 -1
  18. package/lib/esm/components/backoffice/filters/entityIdFilterField.css.js +1 -1
  19. package/lib/esm/components/backoffice/filters/entityIdFilterField.css.js.map +1 -1
  20. package/lib/esm/components/backoffice/hub/backofficeHubTemplate.css.js.map +1 -1
  21. package/lib/esm/components/backoffice/layout/backofficeSidebarActions.css.js +0 -1
  22. package/lib/esm/components/backoffice/pickers/entityIdPickerDialog.css.js.map +1 -1
  23. package/lib/esm/components/backoffice/refs/backofficeRelatedCountLink.css.js.map +1 -1
  24. package/lib/esm/components/backoffice/routing/backofficeRoutePendingBar.css.js.map +1 -1
  25. package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js +1 -1
  26. package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js.map +1 -1
  27. package/lib/esm/components/backoffice/shared/BackofficeFormattedCurrency.js +2 -1
  28. package/lib/esm/components/backoffice/shared/BackofficeFormattedCurrency.js.map +1 -1
  29. package/lib/esm/components/backoffice/tools/backofficeToolsDocPanel.css.js.map +1 -1
  30. package/lib/esm/i18n/locales/en/backofficeReact.js +3 -3
  31. package/lib/esm/i18n/locales/en/backofficeReact.js.map +1 -1
  32. package/lib/esm/i18n/locales/fr/backofficeReact.js +3 -3
  33. package/lib/esm/i18n/locales/fr/backofficeReact.js.map +1 -1
  34. package/lib/esm/i18n/useBackofficeFormats.js +28 -12
  35. package/lib/esm/i18n/useBackofficeFormats.js.map +1 -1
  36. package/lib/esm/pages/BackofficeEntityDetailPage.js +197 -196
  37. package/lib/esm/pages/BackofficeEntityDetailPage.js.map +1 -1
  38. package/lib/esm/pages/BackofficeEntityDetailPage.view-helpers.js +74 -70
  39. package/lib/esm/pages/BackofficeEntityDetailPage.view-helpers.js.map +1 -1
  40. package/lib/esm/pages/BackofficeEntityListPage.js +46 -53
  41. package/lib/esm/pages/BackofficeEntityListPage.js.map +1 -1
  42. package/lib/esm/pages/backofficeEntityListPage.css.js +1 -1
  43. package/lib/esm/pages/backofficeEntityListPage.css.js.map +1 -1
  44. package/lib/esm/pages/dashboard/dashboardPanel.css.js.map +1 -1
  45. package/lib/esm/provider/BackofficeProvider.js +1 -1
  46. package/lib/esm/provider/BackofficeProvider.js.map +1 -1
  47. package/lib/esm/style.css +1 -1
  48. package/lib/types/components/backoffice/billing/BackofficeBillingUsageChart.d.ts.map +1 -1
  49. package/lib/types/components/backoffice/detail/BackofficeDetailBadgeRow.d.ts.map +1 -1
  50. package/lib/types/components/backoffice/detail/BackofficeKpiStrip.d.ts.map +1 -1
  51. package/lib/types/components/backoffice/detail/backofficeKpiStrip.css.d.ts +24 -0
  52. package/lib/types/components/backoffice/detail/backofficeKpiStrip.css.d.ts.map +1 -1
  53. package/lib/types/components/backoffice/filters/DeferredFilterSearchInput.d.ts +1 -1
  54. package/lib/types/components/backoffice/filters/DeferredFilterSearchInput.d.ts.map +1 -1
  55. package/lib/types/components/backoffice/filters/EntityIdFilterField.d.ts.map +1 -1
  56. package/lib/types/components/backoffice/filters/deferredFilterSearchInput.css.d.ts +2 -0
  57. package/lib/types/components/backoffice/filters/deferredFilterSearchInput.css.d.ts.map +1 -1
  58. package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts.map +1 -1
  59. package/lib/types/components/backoffice/shared/BackofficeFormattedCurrency.d.ts.map +1 -1
  60. package/lib/types/i18n/resources.d.ts +6 -6
  61. package/lib/types/i18n/useBackofficeFormats.d.ts +1 -0
  62. package/lib/types/i18n/useBackofficeFormats.d.ts.map +1 -1
  63. package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
  64. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts +1 -0
  65. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts.map +1 -1
  66. package/lib/types/pages/BackofficeEntityListPage.d.ts.map +1 -1
  67. package/lib/types/pages/backofficeEntityListPage.css.d.ts.map +1 -1
  68. package/package.json +11 -11
@@ -20,114 +20,114 @@ import { BackofficeRightPageLayout as se } from "../components/backoffice/layout
20
20
  import { buildEntityDetailBreadcrumb as ce } from "../components/backoffice/layout/breadcrumb/buildBreadcrumbs.js";
21
21
  import { BackofficeEntityDetailScaffold as f } from "../components/backoffice/scaffolds/BackofficeEntityDetailScaffold.js";
22
22
  import { useBackofficeFormats as p } from "../i18n/useBackofficeFormats.js";
23
- import { useRelayEnvironment as le } from "../relay/useRelayEnvironment.js";
24
- import { resolveVisibleDetailPages as m } from "./detail/pageResolution.js";
25
- import { useBackofficeEntityDetailLayoutContext as h } from "./detail/BackofficeEntityDetailLayoutContext.js";
26
- import { extractMutationPayload as ue, isFormMutationAction as g, isMutationAction as de, isRouteAction as fe, resolveLabel as _ } from "./BackofficeEntityDetailPage.helpers.js";
27
- import { headerActions as pe, headerBlock as me, headerMeta as he, headerMetaList as ge } from "./backofficeEntityDetailPage.css.js";
28
- import { buildTabsItems as _e } from "./detail/buildTabsItems.js";
29
- import { buildFieldItems as ve, renderBlocks as ye, resolveHeaderItems as be } from "./BackofficeEntityDetailPage.view-helpers.js";
30
- import { useContext as v, useMemo as y, useState as b } from "react";
31
- import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
32
- import { useTranslation as xe } from "react-i18next";
33
- import { Button as w } from "@plumile/ui/atomic/atoms/button/Button.js";
34
- import { commitMutation as Se, useFragment as T, usePreloadedQuery as E } from "react-relay";
35
- import { useToast as D } from "@plumile/ui/atomic/molecules/toast/ToastProvider.js";
36
- import O from "@plumile/router/routing/RoutingContext.js";
37
- import { FormattedDate as k } from "@plumile/ui/atomic/atoms/formatted-date/FormattedDate.js";
38
- import { BACKOFFICE_DATE_TIME_OPTIONS as A } from "@plumile/backoffice-core/constants.js";
39
- import j from "@plumile/router/routing/Link.js";
40
- import { Tag as M } from "@plumile/ui/backoffice/atoms/tag/Tag.js";
41
- import { buildBackofficeFallbackListHref as Ce, buildBackofficeListHref as we, buildBackofficeListLink as Te } from "@plumile/backoffice-core/state/buildListHref.js";
42
- import { setWhereValue as Ee } from "@plumile/backoffice-core/filters/where.js";
43
- import { BackofficeTabs as De } from "@plumile/ui/backoffice/molecules/backoffice_tabs/BackofficeTabs.js";
44
- import N from "@plumile/router/errors/HttpRedirect.js";
45
- import { LinkButton as Oe } from "@plumile/ui/atomic/atoms/button/LinkButton.js";
46
- import { BackofficeKeyValueList as P } from "@plumile/ui/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js";
47
- import { BackofficeRelationsMenu as ke } from "@plumile/ui/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.js";
48
- import { ChatCheckSvg as F } from "@plumile/ui/icons/ChatCheckSvg.js";
49
- import { KeyOffSvg as I } from "@plumile/ui/icons/KeyOffSvg.js";
50
- import { KeySvg as L } from "@plumile/ui/icons/KeySvg.js";
51
- import { LockOpenSvg as R } from "@plumile/ui/icons/LockOpenSvg.js";
52
- import { LockSvg as z } from "@plumile/ui/icons/LockSvg.js";
53
- import { RobotCheckSvg as B } from "@plumile/ui/icons/RobotCheckSvg.js";
54
- import { RobotXSvg as V } from "@plumile/ui/icons/RobotXSvg.js";
55
- import { RocketOffSvg as H } from "@plumile/ui/icons/RocketOffSvg.js";
56
- import { RocketSvg as U } from "@plumile/ui/icons/RocketSvg.js";
57
- import { SettingsCheckSvg as W } from "@plumile/ui/icons/SettingsCheckSvg.js";
58
- import { SettingsXSvg as G } from "@plumile/ui/icons/SettingsXSvg.js";
59
- import { ShieldLockSvg as Ae } from "@plumile/ui/icons/ShieldLockSvg.js";
60
- import { ShieldOffSvg as K } from "@plumile/ui/icons/ShieldOffSvg.js";
61
- import { XBadgeSvg as je } from "@plumile/ui/icons/XBadgeSvg.js";
23
+ import { useRelayEnvironment as m } from "../relay/useRelayEnvironment.js";
24
+ import { resolveVisibleDetailPages as h } from "./detail/pageResolution.js";
25
+ import { useBackofficeEntityDetailLayoutContext as g } from "./detail/BackofficeEntityDetailLayoutContext.js";
26
+ import { extractMutationPayload as le, isFormMutationAction as _, isMutationAction as ue, isRouteAction as de, resolveLabel as v } from "./BackofficeEntityDetailPage.helpers.js";
27
+ import { headerActions as fe, headerBlock as pe, headerMeta as me, headerMetaList as he } from "./backofficeEntityDetailPage.css.js";
28
+ import { buildTabsItems as ge } from "./detail/buildTabsItems.js";
29
+ import { buildFieldItems as _e, renderBlocks as ve, resolveHeaderItems as ye } from "./BackofficeEntityDetailPage.view-helpers.js";
30
+ import { useContext as y, useMemo as b, useState as x } from "react";
31
+ import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
32
+ import { useTranslation as T } from "react-i18next";
33
+ import { Button as E } from "@plumile/ui/atomic/atoms/button/Button.js";
34
+ import { commitMutation as be, useFragment as D, usePreloadedQuery as O } from "react-relay";
35
+ import { useToast as k } from "@plumile/ui/atomic/molecules/toast/ToastProvider.js";
36
+ import A from "@plumile/router/routing/RoutingContext.js";
37
+ import { FormattedDate as j } from "@plumile/ui/atomic/atoms/formatted-date/FormattedDate.js";
38
+ import { BACKOFFICE_DATE_TIME_OPTIONS as M } from "@plumile/backoffice-core/constants.js";
39
+ import N from "@plumile/router/routing/Link.js";
40
+ import { Tag as P } from "@plumile/ui/backoffice/atoms/tag/Tag.js";
41
+ import { buildBackofficeFallbackListHref as xe, buildBackofficeListHref as Se, buildBackofficeListLink as Ce } from "@plumile/backoffice-core/state/buildListHref.js";
42
+ import { setWhereValue as we } from "@plumile/backoffice-core/filters/where.js";
43
+ import { BackofficeTabs as Te } from "@plumile/ui/backoffice/molecules/backoffice_tabs/BackofficeTabs.js";
44
+ import F from "@plumile/router/errors/HttpRedirect.js";
45
+ import { LinkButton as Ee } from "@plumile/ui/atomic/atoms/button/LinkButton.js";
46
+ import { BackofficeKeyValueList as I } from "@plumile/ui/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js";
47
+ import { BackofficeRelationsMenu as De } from "@plumile/ui/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.js";
48
+ import { ChatCheckSvg as L } from "@plumile/ui/icons/ChatCheckSvg.js";
49
+ import { KeyOffSvg as R } from "@plumile/ui/icons/KeyOffSvg.js";
50
+ import { KeySvg as z } from "@plumile/ui/icons/KeySvg.js";
51
+ import { LockOpenSvg as B } from "@plumile/ui/icons/LockOpenSvg.js";
52
+ import { LockSvg as Oe } from "@plumile/ui/icons/LockSvg.js";
53
+ import { RobotCheckSvg as ke } from "@plumile/ui/icons/RobotCheckSvg.js";
54
+ import { RobotXSvg as Ae } from "@plumile/ui/icons/RobotXSvg.js";
55
+ import { RocketOffSvg as je } from "@plumile/ui/icons/RocketOffSvg.js";
56
+ import { RocketSvg as V } from "@plumile/ui/icons/RocketSvg.js";
57
+ import { SettingsCheckSvg as H } from "@plumile/ui/icons/SettingsCheckSvg.js";
58
+ import { SettingsXSvg as U } from "@plumile/ui/icons/SettingsXSvg.js";
59
+ import { ShieldLockSvg as W } from "@plumile/ui/icons/ShieldLockSvg.js";
60
+ import { ShieldOffSvg as G } from "@plumile/ui/icons/ShieldOffSvg.js";
61
+ import { XBadgeSvg as K } from "@plumile/ui/icons/XBadgeSvg.js";
62
62
  //#region src/pages/BackofficeEntityDetailPage.tsx
63
63
  var Me = (e) => {
64
64
  switch (e) {
65
- case "shield-lock": return /* @__PURE__ */ S(Ae, {
65
+ case "shield-lock": return /* @__PURE__ */ C(W, {
66
66
  width: 14,
67
67
  height: 14,
68
68
  "aria-hidden": "true"
69
69
  });
70
- case "shield-off": return /* @__PURE__ */ S(K, {
70
+ case "shield-off": return /* @__PURE__ */ C(G, {
71
71
  width: 14,
72
72
  height: 14,
73
73
  "aria-hidden": "true"
74
74
  });
75
- case "settings-check": return /* @__PURE__ */ S(W, {
75
+ case "settings-check": return /* @__PURE__ */ C(H, {
76
76
  width: 14,
77
77
  height: 14,
78
78
  "aria-hidden": "true"
79
79
  });
80
- case "settings-x": return /* @__PURE__ */ S(G, {
80
+ case "settings-x": return /* @__PURE__ */ C(U, {
81
81
  width: 14,
82
82
  height: 14,
83
83
  "aria-hidden": "true"
84
84
  });
85
- case "x-badge": return /* @__PURE__ */ S(je, {
85
+ case "x-badge": return /* @__PURE__ */ C(K, {
86
86
  width: 14,
87
87
  height: 14,
88
88
  "aria-hidden": "true"
89
89
  });
90
- case "chat-check": return /* @__PURE__ */ S(F, {
90
+ case "chat-check": return /* @__PURE__ */ C(L, {
91
91
  width: 14,
92
92
  height: 14,
93
93
  "aria-hidden": "true"
94
94
  });
95
- case "key": return /* @__PURE__ */ S(L, {
95
+ case "key": return /* @__PURE__ */ C(z, {
96
96
  width: 14,
97
97
  height: 14,
98
98
  "aria-hidden": "true"
99
99
  });
100
- case "key-off": return /* @__PURE__ */ S(I, {
100
+ case "key-off": return /* @__PURE__ */ C(R, {
101
101
  width: 14,
102
102
  height: 14,
103
103
  "aria-hidden": "true"
104
104
  });
105
- case "lock": return /* @__PURE__ */ S(z, {
105
+ case "lock": return /* @__PURE__ */ C(Oe, {
106
106
  width: 14,
107
107
  height: 14,
108
108
  "aria-hidden": "true"
109
109
  });
110
- case "lock-open": return /* @__PURE__ */ S(R, {
110
+ case "lock-open": return /* @__PURE__ */ C(B, {
111
111
  width: 14,
112
112
  height: 14,
113
113
  "aria-hidden": "true"
114
114
  });
115
- case "robot-check": return /* @__PURE__ */ S(B, {
115
+ case "robot-check": return /* @__PURE__ */ C(ke, {
116
116
  width: 14,
117
117
  height: 14,
118
118
  "aria-hidden": "true"
119
119
  });
120
- case "robot-x": return /* @__PURE__ */ S(V, {
120
+ case "robot-x": return /* @__PURE__ */ C(Ae, {
121
121
  width: 14,
122
122
  height: 14,
123
123
  "aria-hidden": "true"
124
124
  });
125
- case "rocket": return /* @__PURE__ */ S(U, {
125
+ case "rocket": return /* @__PURE__ */ C(V, {
126
126
  width: 14,
127
127
  height: 14,
128
128
  "aria-hidden": "true"
129
129
  });
130
- case "rocket-off": return /* @__PURE__ */ S(H, {
130
+ case "rocket-off": return /* @__PURE__ */ C(je, {
131
131
  width: 14,
132
132
  height: 14,
133
133
  "aria-hidden": "true"
@@ -138,106 +138,106 @@ var Me = (e) => {
138
138
  if (e.presentation?.desktop === "secondary" || e.presentation?.group === "scope" || e.presentation?.group === "status") return "secondary";
139
139
  let t = e.fields?.map((e) => e.presentation?.group) ?? [];
140
140
  return t.length > 0 && t.every((e) => e === "scope" || e === "status") || e.placement === "side" || e.placement === "secondary" ? "secondary" : "primary";
141
- }, q = ({ config: F, prepared: I }) => {
142
- let { t: L } = xe(), { t: R } = e(), { formatNumber: z, formatCurrency: B, formatPercent: V } = p(), { entities: H, entityRegistry: U } = n(), { layoutView: W } = h(), G = v(O), Ae = le(), K = D(), [je, q] = b({}), [J, Pe] = b(null), Y = m({
143
- mainPage: F.pages.mainPage,
144
- subPages: F.pages.subPages,
145
- activePagePath: I.pagePath,
146
- node: W
147
- }), X = Y.activePage ?? F.pages.mainPage, Fe = Y.pages.length > 0 ? Y.pages : [F.pages.mainPage], Z = (e, t) => {
148
- q((n) => n[e] === t ? n : {
141
+ }, q = ({ config: L, prepared: R }) => {
142
+ let { t: z } = T(), { t: B } = e(), { formatNumber: Oe, formatCurrency: ke, formatCurrencyTitle: Ae, formatPercent: je } = p(), { entities: V, entityRegistry: H } = n(), { layoutView: U } = g(), W = y(A), G = m(), K = k(), [q, J] = x({}), [Pe, Fe] = x(null), Y = h({
143
+ mainPage: L.pages.mainPage,
144
+ subPages: L.pages.subPages,
145
+ activePagePath: R.pagePath,
146
+ node: U
147
+ }), X = Y.activePage ?? L.pages.mainPage, Ie = Y.pages.length > 0 ? Y.pages : [L.pages.mainPage], Z = (e, t) => {
148
+ J((n) => n[e] === t ? n : {
149
149
  ...n,
150
150
  [e]: t
151
151
  });
152
- }, { page: Q } = F, Ie = E(Q.query, I.pageQuery), $ = Q.resolveNode(Ie, {
153
- id: I.id,
154
- detailId: I.detailId
155
- }), Le = $ != null, Re = T(Q.fragment, $), ze = y(() => Object.fromEntries(Q.content.flatMap((e) => e.kind === "fieldSet" ? e.fields.flatMap((e) => e.type === "relation" ? [e.relation.target] : []) : []).flatMap((e) => {
156
- let t = H[e];
152
+ }, { page: Q } = L, Le = O(Q.query, R.pageQuery), $ = Q.resolveNode(Le, {
153
+ id: R.id,
154
+ detailId: R.detailId
155
+ }), Re = $ != null, ze = D(Q.fragment, $), Be = b(() => Object.fromEntries(Q.content.flatMap((e) => e.kind === "fieldSet" ? e.fields.flatMap((e) => e.type === "relation" ? [e.relation.target] : []) : []).flatMap((e) => {
156
+ let t = V[e];
157
157
  return t?.hasList === !0 ? [[e, t.routes.list]] : [];
158
- })), [H, Q.content]);
159
- if (!Le) throw new N(F.routes.list);
160
- return /* @__PURE__ */ S(f, {
161
- node: Re,
158
+ })), [V, Q.content]);
159
+ if (!Re) throw new F(L.routes.list);
160
+ return /* @__PURE__ */ C(f, {
161
+ node: ze,
162
162
  render: (e) => {
163
- let n = Q.toView(e), f = _e({
164
- pages: Fe,
165
- id: I.id,
166
- tApp: L,
167
- detailPageHref: F.routes.detailPage
163
+ let n = Q.toView(e), f = ge({
164
+ pages: Ie,
165
+ id: R.id,
166
+ tApp: z,
167
+ detailPageHref: L.routes.detailPage
168
168
  }), p = (e, t) => {
169
- let n = H[e];
169
+ let n = V[e];
170
170
  return n == null ? null : n.routes.detail(t);
171
- }, le = ({ id: e, label: t, count: n, relation: r, listRoute: i, value: a, where: o }) => {
172
- let { target: s, filterId: c, whereKey: l, path: u } = r, d = U.getLoadedListEntity(s);
171
+ }, m = ({ id: e, label: t, count: n, relation: r, listRoute: i, value: a, where: o }) => {
172
+ let { target: s, filterId: c, whereKey: l, path: u } = r, d = H.getLoadedListEntity(s);
173
173
  return {
174
174
  id: e,
175
175
  label: t,
176
176
  count: n,
177
- href: d == null ? Ce(i, o, [{
177
+ href: d == null ? xe(i, o, [{
178
178
  id: c ?? (u == null ? l : `${l}.${u.join(".")}`),
179
179
  value: a
180
- }]) : we(d.config, { where: o }),
180
+ }]) : Se(d.config, { where: o }),
181
181
  onClick: async (e) => {
182
- if (G == null || e.defaultPrevented || e.button !== 0 || e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) return;
182
+ if (W == null || e.defaultPrevented || e.button !== 0 || e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) return;
183
183
  e.preventDefault();
184
- let t = Te((await U.loadListEntity(s)).config, { where: o });
185
- G.history.push({
184
+ let t = Ce((await H.loadListEntity(s)).config, { where: o });
185
+ W.history.push({
186
186
  pathname: t.pathname,
187
187
  search: t.search === "" ? "" : `?${t.search}`,
188
188
  hash: ""
189
189
  });
190
190
  }
191
191
  };
192
- }, m = be(F.header, W, {
193
- tApp: L,
194
- t: R,
192
+ }, h = ye(L.header, U, {
193
+ tApp: z,
194
+ t: B,
195
195
  resolveEntityHref: p,
196
- renderLink: (e, t) => /* @__PURE__ */ S(j, {
196
+ renderLink: (e, t) => /* @__PURE__ */ C(N, {
197
197
  to: e,
198
198
  children: t
199
199
  }),
200
- renderDate: (e, t) => /* @__PURE__ */ S(k, {
200
+ renderDate: (e, t) => /* @__PURE__ */ C(j, {
201
201
  value: e,
202
- options: A,
202
+ options: M,
203
203
  fallback: t
204
204
  }),
205
- renderTag: (e, t) => /* @__PURE__ */ S(M, {
205
+ renderTag: (e, t) => /* @__PURE__ */ C(P, {
206
206
  tone: e,
207
207
  children: t
208
208
  }),
209
- renderBadgeRow: (e) => /* @__PURE__ */ S(c, { items: e })
210
- }), h = ce({
211
- config: F,
212
- tApp: L,
213
- entityId: I.id,
214
- layoutView: W,
215
- pageLabel: X.label(L),
209
+ renderBadgeRow: (e) => /* @__PURE__ */ C(c, { items: e })
210
+ }), g = ce({
211
+ config: L,
212
+ tApp: z,
213
+ entityId: R.id,
214
+ layoutView: U,
215
+ pageLabel: X.label(z),
216
216
  pageId: X.id
217
- }), v = Q.actions ?? [], y = [];
218
- if (v.length > 0) {
219
- let e = v.filter((e) => e.isVisible == null ? !0 : e.isVisible(n));
220
- e.length > 0 && (y = e.map((e) => {
221
- let a = _(e.label, L), o = e.ariaLabel == null ? a : _(e.ariaLabel, L), s = e.variant ?? "secondary", c = e.size ?? "small", l = je[e.id] ?? !1, u = l || e.isDisabled?.(n) === !0;
222
- return fe(e) ? /* @__PURE__ */ S(Oe, {
217
+ }), y = Q.actions ?? [], b = [];
218
+ if (y.length > 0) {
219
+ let e = y.filter((e) => e.isVisible == null ? !0 : e.isVisible(n));
220
+ e.length > 0 && (b = e.map((e) => {
221
+ let a = v(e.label, z), o = e.ariaLabel == null ? a : v(e.ariaLabel, z), s = e.variant ?? "secondary", c = e.size ?? "small", l = q[e.id] ?? !1, u = l || e.isDisabled?.(n) === !0;
222
+ return de(e) ? /* @__PURE__ */ C(Ee, {
223
223
  to: e.to(n),
224
224
  variant: s,
225
225
  size: c,
226
226
  isDisabled: u,
227
227
  "aria-label": o,
228
228
  children: a
229
- }, e.id) : g(e) ? /* @__PURE__ */ S(w, {
229
+ }, e.id) : _(e) ? /* @__PURE__ */ C(E, {
230
230
  type: "button",
231
231
  variant: s,
232
232
  size: c,
233
233
  isLoading: !1,
234
234
  disabled: u,
235
235
  onClick: () => {
236
- Pe(e.id);
236
+ Fe(e.id);
237
237
  },
238
238
  "aria-label": o,
239
239
  children: a
240
- }, e.id) : de(e) ? /* @__PURE__ */ S(w, {
240
+ }, e.id) : ue(e) ? /* @__PURE__ */ C(E, {
241
241
  type: "button",
242
242
  variant: s,
243
243
  size: c,
@@ -246,7 +246,7 @@ var Me = (e) => {
246
246
  onClick: () => {
247
247
  if (l) return;
248
248
  let a = e.getVariables(n);
249
- Z(e.id, !0), Se(Ae, {
249
+ Z(e.id, !0), be(G, {
250
250
  mutation: e.mutation,
251
251
  variables: a,
252
252
  updater: (t) => {
@@ -254,36 +254,36 @@ var Me = (e) => {
254
254
  },
255
255
  onCompleted: (a) => {
256
256
  Z(e.id, !1);
257
- let o = ue(a);
257
+ let o = le(a);
258
258
  if (o != null) {
259
- let i = R("actions.form.errors.invalidPayload");
260
- e.toasts?.error?.message == null ? e.toasts?.error?.title != null && (i = _(e.toasts.error.title, L)) : i = _(e.toasts.error.message, L);
259
+ let i = B("actions.form.errors.invalidPayload");
260
+ e.toasts?.error?.message == null ? e.toasts?.error?.title != null && (i = v(e.toasts.error.title, z)) : i = v(e.toasts.error.message, z);
261
261
  let a = t(o, {
262
262
  defaultErrorMessage: i,
263
263
  mapReason: (t) => {
264
264
  let r = e.mapErrorReason?.(t, n);
265
- return r == null ? null : typeof r == "function" ? _(r, L) : String(r);
265
+ return r == null ? null : typeof r == "function" ? v(r, z) : String(r);
266
266
  }
267
267
  });
268
268
  if (!a.ok) {
269
269
  let t = Error(a.message);
270
270
  if (e.onError?.(t, n), e.toasts?.error != null) {
271
- let t = r(e.toasts.error, L);
271
+ let t = r(e.toasts.error, z);
272
272
  K.error(t.title, t.message);
273
273
  }
274
274
  return;
275
275
  }
276
276
  }
277
277
  if (e.onCompleted?.(a, n), e.toasts?.success != null) {
278
- let t = r(e.toasts.success, L), o = i({
278
+ let t = r(e.toasts.success, z), o = i({
279
279
  toast: e.toasts.success,
280
280
  response: a,
281
281
  node: n,
282
- tApp: L,
283
- entities: H,
284
- defaultLabel: R("actions.view"),
282
+ tApp: z,
283
+ entities: V,
284
+ defaultLabel: B("actions.view"),
285
285
  navigateTo: (e) => {
286
- G?.history.push({ pathname: e });
286
+ W?.history.push({ pathname: e });
287
287
  }
288
288
  });
289
289
  K.push({
@@ -296,7 +296,7 @@ var Me = (e) => {
296
296
  },
297
297
  onError: (t) => {
298
298
  if (Z(e.id, !1), e.onError?.(t, n), e.toasts?.error != null) {
299
- let t = r(e.toasts.error, L);
299
+ let t = r(e.toasts.error, z);
300
300
  K.error(t.title, t.message);
301
301
  }
302
302
  }
@@ -307,49 +307,50 @@ var Me = (e) => {
307
307
  }, e.id) : null;
308
308
  }));
309
309
  }
310
- let b = v.find((e) => e.id === J), { content: xe } = Q, T = [], E = [], D = [];
311
- xe.forEach((e, t) => {
312
- let r = Ne(e) === "secondary" ? E : T;
310
+ let x = y.find((e) => e.id === Pe), { content: T } = Q, D = [], O = [], k = [];
311
+ T.forEach((e, t) => {
312
+ let r = Ne(e) === "secondary" ? O : D;
313
313
  if (e.kind === "fieldSet") {
314
- let i = _(e.title, L), a = e.description == null ? void 0 : _(e.description, L), { items: o, relationItems: u, customNodes: d } = ve(e.fields, n, {
315
- tApp: L,
316
- t: R,
314
+ let i = v(e.title, z), a = e.description == null ? void 0 : v(e.description, z), { items: o, relationItems: u, customNodes: d } = _e(e.fields, n, {
315
+ tApp: z,
316
+ t: B,
317
317
  resolveEntityHref: p,
318
- formatNumber: z,
319
- formatCurrency: B,
320
- formatPercent: V,
321
- relationEntityListRoutes: ze,
322
- resolveRelationItem: le,
323
- setWhereValue: Ee,
324
- renderTag: (e, t) => /* @__PURE__ */ S(M, {
318
+ formatNumber: Oe,
319
+ formatCurrency: ke,
320
+ formatCurrencyTitle: Ae,
321
+ formatPercent: je,
322
+ relationEntityListRoutes: Be,
323
+ resolveRelationItem: m,
324
+ setWhereValue: we,
325
+ renderTag: (e, t) => /* @__PURE__ */ C(P, {
325
326
  tone: e,
326
327
  children: t
327
328
  }),
328
- renderBadgeRow: (e) => /* @__PURE__ */ S(c, { items: e }),
329
- renderDate: (e, t) => /* @__PURE__ */ S(k, {
329
+ renderBadgeRow: (e) => /* @__PURE__ */ C(c, { items: e }),
330
+ renderDate: (e, t) => /* @__PURE__ */ C(j, {
330
331
  value: e,
331
- options: A,
332
+ options: M,
332
333
  fallback: t
333
334
  }),
334
- renderFlagTag: (e) => /* @__PURE__ */ S(l, {
335
+ renderFlagTag: (e) => /* @__PURE__ */ C(l, {
335
336
  tone: e.tone,
336
337
  icon: e.iconName == null ? void 0 : Me(e.iconName),
337
338
  label: e.label
338
339
  }),
339
- renderLink: (e, t) => /* @__PURE__ */ S(j, {
340
+ renderLink: (e, t) => /* @__PURE__ */ C(N, {
340
341
  to: e,
341
342
  children: t
342
343
  }),
343
- renderTaggedValue: (e, t) => /* @__PURE__ */ S(ne, {
344
+ renderTaggedValue: (e, t) => /* @__PURE__ */ C(ne, {
344
345
  tag: e,
345
346
  value: t
346
347
  }),
347
- wrapCustomNode: (e, t) => /* @__PURE__ */ S("div", { children: t }, e)
348
+ wrapCustomNode: (e, t) => /* @__PURE__ */ C("div", { children: t }, e)
348
349
  });
349
350
  if (u.forEach((e) => {
350
- D.some((t) => t.id === e.id) || D.push(e);
351
+ k.some((t) => t.id === e.id) || k.push(e);
351
352
  }), !(o.length > 0 || d.length > 0)) return;
352
- r.push(/* @__PURE__ */ S(s, {
353
+ r.push(/* @__PURE__ */ C(s, {
353
354
  title: i,
354
355
  description: a,
355
356
  items: o.length > 0 ? o : void 0,
@@ -357,58 +358,58 @@ var Me = (e) => {
357
358
  }, `${i}-${t}`));
358
359
  return;
359
360
  }
360
- let i = ye([e], n, {
361
- tApp: L,
362
- t: R,
361
+ let i = ve([e], n, {
362
+ tApp: z,
363
+ t: B,
363
364
  resolveEntityHref: p,
364
365
  keyPrefix: String(t),
365
- renderLink: (e, t) => /* @__PURE__ */ S(j, {
366
+ renderLink: (e, t) => /* @__PURE__ */ C(N, {
366
367
  to: e,
367
368
  children: t
368
369
  }),
369
- renderDate: (e, t) => /* @__PURE__ */ S(k, {
370
+ renderDate: (e, t) => /* @__PURE__ */ C(j, {
370
371
  value: e,
371
- options: A,
372
+ options: M,
372
373
  fallback: t
373
374
  }),
374
- renderTag: (e, t) => /* @__PURE__ */ S(M, {
375
+ renderTag: (e, t) => /* @__PURE__ */ C(P, {
375
376
  tone: e,
376
377
  children: t
377
378
  }),
378
- renderMetricGroup: ({ key: e, title: t, description: n, density: r, items: i }) => /* @__PURE__ */ S(s, {
379
+ renderMetricGroup: ({ key: e, title: t, description: n, density: r, items: i }) => /* @__PURE__ */ C(s, {
379
380
  title: t,
380
381
  description: n,
381
- children: /* @__PURE__ */ S(re, {
382
+ children: /* @__PURE__ */ C(re, {
382
383
  items: i,
383
384
  density: r ?? "comfortable"
384
385
  })
385
386
  }, e),
386
- renderTimeline: ({ key: e, title: t, description: n, events: r }) => /* @__PURE__ */ S(ie, {
387
+ renderTimeline: ({ key: e, title: t, description: n, events: r }) => /* @__PURE__ */ C(ie, {
387
388
  title: t,
388
389
  description: n,
389
390
  events: r
390
391
  }, e),
391
- renderRelations: ({ key: e, title: t, items: n }) => /* @__PURE__ */ S(ae, {
392
+ renderRelations: ({ key: e, title: t, items: n }) => /* @__PURE__ */ C(ae, {
392
393
  title: t,
393
394
  items: n
394
395
  }, e),
395
- renderContextStack: ({ key: e, title: t, items: n }) => /* @__PURE__ */ S(oe, {
396
+ renderContextStack: ({ key: e, title: t, items: n }) => /* @__PURE__ */ C(oe, {
396
397
  title: t,
397
398
  items: n
398
399
  }, e),
399
- renderCustomSection: (e, t, n) => /* @__PURE__ */ S(s, {
400
+ renderCustomSection: (e, t, n) => /* @__PURE__ */ C(s, {
400
401
  title: t,
401
402
  children: n
402
403
  }, e),
403
- wrapCustomNode: (e, t) => /* @__PURE__ */ S("div", { children: t }, e),
404
+ wrapCustomNode: (e, t) => /* @__PURE__ */ C("div", { children: t }, e),
404
405
  resolveTableColumns: (e) => o(e, {
405
- tApp: L,
406
- t: R
406
+ tApp: z,
407
+ t: B
407
408
  }),
408
- renderTable: ({ key: e, title: t, description: n, columns: r, rows: i }) => /* @__PURE__ */ S(s, {
409
+ renderTable: ({ key: e, title: t, description: n, columns: r, rows: i }) => /* @__PURE__ */ C(s, {
409
410
  title: t,
410
411
  description: n,
411
- children: /* @__PURE__ */ S(te, {
412
+ children: /* @__PURE__ */ C(te, {
412
413
  columns: r,
413
414
  rows: i,
414
415
  getRowId: (e, t) => {
@@ -420,82 +421,82 @@ var Me = (e) => {
420
421
  }
421
422
  })
422
423
  }, e),
423
- renderPayload: ({ key: e, title: t, description: n, content: r, format: i }) => /* @__PURE__ */ S(ee, {
424
+ renderPayload: ({ key: e, title: t, description: n, content: r, format: i }) => /* @__PURE__ */ C(ee, {
424
425
  title: t,
425
426
  description: n,
426
427
  content: r,
427
428
  format: i
428
429
  }, e),
429
- renderKeyValueListSection: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ S(s, {
430
+ renderKeyValueListSection: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ C(s, {
430
431
  title: t,
431
432
  description: n,
432
- children: /* @__PURE__ */ S(P, { items: r })
433
+ children: /* @__PURE__ */ C(I, { items: r })
433
434
  }, e)
434
435
  })[0];
435
436
  i != null && r.push(i);
436
437
  });
437
- let O = D.length > 0 ? /* @__PURE__ */ S(ke, {
438
- label: R("relations.menu.label"),
439
- items: D
440
- }) : null, N = y.length > 0 || O != null ? /* @__PURE__ */ C("div", {
441
- className: pe,
442
- children: [y.length > 0 && /* @__PURE__ */ S("div", {
438
+ let A = k.length > 0 ? /* @__PURE__ */ C(De, {
439
+ label: B("relations.menu.label"),
440
+ items: k
441
+ }) : null, F = b.length > 0 || A != null ? /* @__PURE__ */ w("div", {
442
+ className: fe,
443
+ children: [b.length > 0 && /* @__PURE__ */ C("div", {
443
444
  className: "txvbqbdr8 txvbqbey txvbqbju2 txvbqbff6 txvbqbf91",
444
- children: y
445
- }), O != null && /* @__PURE__ */ S("div", {
445
+ children: b
446
+ }), A != null && /* @__PURE__ */ C("div", {
446
447
  className: "txvbqbdr8 txvbqbey txvbqbyoc txvbqb97n txvbqb9nq txvbqb2et txvbqb65i",
447
- children: O
448
+ children: A
448
449
  })]
449
- }) : void 0, q = m.status != null || m.badges != null ? /* @__PURE__ */ C("div", {
450
+ }) : void 0, J = h.status != null || h.badges != null ? /* @__PURE__ */ w("div", {
451
+ className: me,
452
+ children: [h.status, h.badges]
453
+ }) : void 0, Y = h.items != null && h.items.length > 0 ? /* @__PURE__ */ C("div", {
450
454
  className: he,
451
- children: [m.status, m.badges]
452
- }) : void 0, Y = m.items != null && m.items.length > 0 ? /* @__PURE__ */ S("div", {
453
- className: ge,
454
- children: /* @__PURE__ */ S(P, { items: m.items })
455
- }) : null, Ie = E.length > 0, $ = null;
456
- return Fe.length > 1 && ($ = /* @__PURE__ */ S(De, {
455
+ children: /* @__PURE__ */ C(I, { items: h.items })
456
+ }) : null, Le = O.length > 0, $ = null;
457
+ return Ie.length > 1 && ($ = /* @__PURE__ */ C(Te, {
457
458
  items: f,
458
459
  activeId: X.id,
459
460
  onChange: () => {},
460
461
  variant: "underline"
461
- })), /* @__PURE__ */ C(se, {
462
- breadcrumb: h,
463
- children: [/* @__PURE__ */ S(d, {
464
- headerNode: /* @__PURE__ */ C("div", {
465
- className: me,
466
- children: [/* @__PURE__ */ S(u, {
467
- title: m.title,
468
- subtitle: m.subtitle,
469
- actions: N,
470
- meta: q
462
+ })), /* @__PURE__ */ w(se, {
463
+ breadcrumb: g,
464
+ children: [/* @__PURE__ */ C(d, {
465
+ headerNode: /* @__PURE__ */ w("div", {
466
+ className: pe,
467
+ children: [/* @__PURE__ */ C(u, {
468
+ title: h.title,
469
+ subtitle: h.subtitle,
470
+ actions: F,
471
+ meta: J
471
472
  }), Y]
472
473
  }),
473
474
  tabsNode: $,
474
- sidePanel: Ie ? /* @__PURE__ */ S(x, { children: E }) : void 0,
475
+ sidePanel: Le ? /* @__PURE__ */ C(S, { children: O }) : void 0,
475
476
  sidePanelVariant: "plain",
476
477
  headerDensity: "compact",
477
- children: /* @__PURE__ */ S(x, { children: T })
478
- }), b != null && g(b) && /* @__PURE__ */ S(a, {
478
+ children: /* @__PURE__ */ C(S, { children: D })
479
+ }), x != null && _(x) && /* @__PURE__ */ C(a, {
479
480
  isOpen: !0,
480
- action: b,
481
+ action: x,
481
482
  node: n,
482
483
  onClose: () => {
483
- Pe(null);
484
+ Fe(null);
484
485
  }
485
486
  })]
486
487
  });
487
488
  }
488
489
  });
489
490
  }, J = ({ config: e, prepared: t }) => {
490
- let { layoutView: n } = h(), r = m({
491
+ let { layoutView: n } = g(), r = h({
491
492
  mainPage: e.pages.mainPage,
492
493
  subPages: e.pages.subPages,
493
494
  activePagePath: t.pagePath,
494
495
  node: n
495
496
  });
496
- if (!r.hasVisiblePages || r.activePage == null) throw new N(e.routes.list);
497
- if (r.activePage.id !== t.pageId) throw new N(e.routes.detailPage(t.id, r.activePage.id));
498
- return /* @__PURE__ */ S(q, {
497
+ if (!r.hasVisiblePages || r.activePage == null) throw new F(e.routes.list);
498
+ if (r.activePage.id !== t.pageId) throw new F(e.routes.detailPage(t.id, r.activePage.id));
499
+ return /* @__PURE__ */ C(q, {
499
500
  config: t.pageConfig,
500
501
  prepared: t
501
502
  });