react-luminus-components 1.2.74 → 1.2.75
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/.vite/manifest.json +42 -42
- package/dist/{EventType-BDQWFjx9.js → EventType-CYj5c_TM.js} +1 -1
- package/dist/{EventType-EOumBIph.cjs → EventType-LFHQrrOn.cjs} +1 -1
- package/dist/{NoInputContainer-l6WM75EF.cjs → NoInputContainer-Ceb-y7u0.cjs} +1 -1
- package/dist/{NoInputContainer-BlKRvyRb.js → NoInputContainer-CzSDOA31.js} +2 -0
- package/dist/{SimpleTooltip-C4fAW5cL.cjs → SimpleTooltip-BAljsAeT.cjs} +1 -1
- package/dist/{SimpleTooltip-Box6rmkj.js → SimpleTooltip-CUAvaEIL.js} +1 -1
- package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +2 -2
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +3 -3
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +4 -4
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +53 -53
- package/dist/{useConfirm-C5x0ji94.js → useConfirm-C1e4wjoh.js} +1 -1
- package/dist/{useConfirm-D_VbuDDH.cjs → useConfirm-CgzfU9AB.cjs} +1 -1
- package/dist/{usePermissions-CiuZ4xbQ.cjs → usePermissions--HXCgQlu.cjs} +1 -1
- package/dist/{usePermissions-Cw2C4-cd.js → usePermissions-Crr2ZkmJ.js} +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { j as s, t as re, c as ae, g as sr, T as ar, a as ir, b as x, s as vt, E as cr, d as lr, e as ur, f as dr, h as hr, u as V, i as ue, k as Ut, F as bt, l as mr, m as fr, n as pr, o as gr, p as wr, q as xr, r as yr, v as vr, w as at, x as it, y as br, z as _r, P as be, A as de, B as jr, C as kr, D as ct, S as _t, G as De, H as Pe, I as lt, J as Cr, K as zt, L as $e, M as Re, O as jt, N as Nr, Q as ie, R as $r, U as Ir, V as Kt, W as ut, X as dt, Y as
|
|
2
|
-
import { ai as il, ah as cl } from "./NoInputContainer-
|
|
1
|
+
import { j as s, t as re, c as ae, g as sr, T as ar, a as ir, b as x, s as vt, E as cr, d as lr, e as ur, f as dr, h as hr, u as V, i as ue, k as Ut, F as bt, l as mr, m as fr, n as pr, o as gr, p as wr, q as xr, r as yr, v as vr, w as at, x as it, y as br, z as _r, P as be, A as de, B as jr, C as kr, D as ct, S as _t, G as De, H as Pe, I as lt, J as Cr, K as zt, L as $e, M as Re, O as jt, N as Nr, Q as ie, R as $r, U as Ir, V as Kt, W as ut, X as dt, Y as z, Z as Sr, _ as Qt, $ as Tr, a0 as Xt, a1 as Er, a2 as Or, a3 as Mr, a4 as Dr, a5 as Jt, a6 as je, a7 as Pr, a8 as Ar, a9 as Fr, aa as Wr, ab as Rr, ac as Xe, ad as Be, ae as Zt, af as we, ag as Lr } from "./NoInputContainer-CzSDOA31.js";
|
|
2
|
+
import { ai as il, ah as cl } from "./NoInputContainer-CzSDOA31.js";
|
|
3
3
|
import * as A from "react";
|
|
4
|
-
import Z, { useCallback as O, useMemo as
|
|
5
|
-
import { d as Yr, C as Hr, a as tn, u as Br, q as kt, E as Ae, M as Fe, L as Gr } from "./EventType-
|
|
4
|
+
import Z, { useCallback as O, useMemo as Q, useEffect as D, useRef as Y, useState as P, useReducer as en, useContext as L, createElement as qr } from "react";
|
|
5
|
+
import { d as Yr, C as Hr, a as tn, u as Br, q as kt, E as Ae, M as Fe, L as Gr } from "./EventType-CYj5c_TM.js";
|
|
6
6
|
import { useFormContext as he, Controller as nn } from "react-hook-form";
|
|
7
7
|
import { m as Vr, a as rn } from "./textUtils-BbxuIsKq.js";
|
|
8
8
|
import { u as on, a as sn, b as an } from "./useFormControlType-BAFqxupC.js";
|
|
9
|
-
import { S as ul } from "./SimpleTooltip-
|
|
9
|
+
import { S as ul } from "./SimpleTooltip-CUAvaEIL.js";
|
|
10
10
|
const Ic = ({ fileLoader: t, fileName: e, children: n }) => {
|
|
11
11
|
const r = O(async () => {
|
|
12
12
|
var l;
|
|
@@ -1292,16 +1292,16 @@ const rs = {
|
|
|
1292
1292
|
getDimensionValue: p = ns,
|
|
1293
1293
|
...b
|
|
1294
1294
|
}, w) => {
|
|
1295
|
-
const f = typeof l == "function" ? l() : l, j =
|
|
1295
|
+
const f = typeof l == "function" ? l() : l, j = Q(() => Ne((y) => {
|
|
1296
1296
|
y.style[f] = "0";
|
|
1297
|
-
}, t), [f, t]), v =
|
|
1297
|
+
}, t), [f, t]), v = Q(() => Ne((y) => {
|
|
1298
1298
|
const $ = `scroll${f[0].toUpperCase()}${f.slice(1)}`;
|
|
1299
1299
|
y.style[f] = `${y[$]}px`;
|
|
1300
|
-
}, e), [f, e]), g =
|
|
1300
|
+
}, e), [f, e]), g = Q(() => Ne((y) => {
|
|
1301
1301
|
y.style[f] = null;
|
|
1302
|
-
}, n), [f, n]), C =
|
|
1302
|
+
}, n), [f, n]), C = Q(() => Ne((y) => {
|
|
1303
1303
|
y.style[f] = `${p(f, y)}px`, hr(y);
|
|
1304
|
-
}, r), [r, p, f]), k =
|
|
1304
|
+
}, r), [r, p, f]), k = Q(() => Ne((y) => {
|
|
1305
1305
|
y.style[f] = null;
|
|
1306
1306
|
}, o), [f, o]);
|
|
1307
1307
|
return /* @__PURE__ */ s.jsx(ar, {
|
|
@@ -1814,7 +1814,7 @@ function Ee({
|
|
|
1814
1814
|
});
|
|
1815
1815
|
}, [d]), y = ue((_, T) => {
|
|
1816
1816
|
n == null || n(_, T), k(!1, T, "select"), T.isPropagationStopped() || C == null || C(_, T);
|
|
1817
|
-
}), $ =
|
|
1817
|
+
}), $ = Q(() => ({
|
|
1818
1818
|
toggle: k,
|
|
1819
1819
|
placement: i,
|
|
1820
1820
|
show: u,
|
|
@@ -2081,7 +2081,7 @@ const Rn = /* @__PURE__ */ A.forwardRef((t, e) => {
|
|
|
2081
2081
|
}), b = L(Ue), w = V(n, "dropdown"), f = _r(), j = ($) => m === !1 ? $ === "click" : m === "inside" ? $ !== "rootClose" : m === "outside" ? $ !== "select" : !0, v = ue(($, M) => {
|
|
2082
2082
|
var S, N;
|
|
2083
2083
|
!((S = M.originalEvent) == null || (N = S.target) == null) && N.classList.contains("dropdown-toggle") && M.source === "mousedown" || (M.originalEvent.currentTarget === document && (M.source !== "keydown" || M.originalEvent.key === "Escape") && (M.source = "rootClose"), j(M.source) && (c == null || c($, M)));
|
|
2084
|
-
}), C = An(i === "end", r, f), k =
|
|
2084
|
+
}), C = An(i === "end", r, f), k = Q(() => ({
|
|
2085
2085
|
align: i,
|
|
2086
2086
|
drop: r,
|
|
2087
2087
|
isRTL: f
|
|
@@ -2209,7 +2209,7 @@ const Ln = /* @__PURE__ */ A.forwardRef(({
|
|
|
2209
2209
|
e = V(e, "form-check"), n = V(n, "form-switch");
|
|
2210
2210
|
const {
|
|
2211
2211
|
controlId: C
|
|
2212
|
-
} = L(de), k =
|
|
2212
|
+
} = L(de), k = Q(() => ({
|
|
2213
2213
|
controlId: t || C
|
|
2214
2214
|
}), [C, t]), y = !f && w != null && w !== !1 || hs(f, Ye), $ = /* @__PURE__ */ s.jsx(Oe, {
|
|
2215
2215
|
...v,
|
|
@@ -2453,7 +2453,7 @@ const Ds = (t) => /* @__PURE__ */ s.jsx(Ke, {
|
|
|
2453
2453
|
...a
|
|
2454
2454
|
}, i) => {
|
|
2455
2455
|
t = V(t, "input-group");
|
|
2456
|
-
const l =
|
|
2456
|
+
const l = Q(() => ({}), []);
|
|
2457
2457
|
return /* @__PURE__ */ s.jsx(Ue.Provider, {
|
|
2458
2458
|
value: l,
|
|
2459
2459
|
children: /* @__PURE__ */ s.jsx(o, {
|
|
@@ -2853,7 +2853,7 @@ function Ia(t, e, n) {
|
|
|
2853
2853
|
}
|
|
2854
2854
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2855
2855
|
function Sa({ interactionType: t, username: e, homeAccountId: n, localAccountId: r, authenticationRequest: o, loadingComponent: a, errorComponent: i, children: l }) {
|
|
2856
|
-
const c =
|
|
2856
|
+
const c = Q(() => ({
|
|
2857
2857
|
username: e,
|
|
2858
2858
|
homeAccountId: n,
|
|
2859
2859
|
localAccountId: r
|
|
@@ -2958,7 +2958,7 @@ const Ta = "_button_1wjon_1", Ea = "_filled_1wjon_7", Oa = "_sm_1wjon_13", Ma =
|
|
|
2958
2958
|
widget: Ba
|
|
2959
2959
|
}, Va = ({ show: t, widgets: e, handleClose: n, onWidgetPicked: r, texts: o }) => /* @__PURE__ */ s.jsxs(Fe, { show: t, onHide: () => n(), children: [
|
|
2960
2960
|
/* @__PURE__ */ s.jsx(Fe.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Fe.Title, { children: o.pickWidgetToAdd }) }),
|
|
2961
|
-
/* @__PURE__ */ s.jsx(Fe.Body, { children: /* @__PURE__ */ s.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ s.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => r(a.id), children: /* @__PURE__ */ s.jsx(
|
|
2961
|
+
/* @__PURE__ */ s.jsx(Fe.Body, { children: /* @__PURE__ */ s.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ s.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => r(a.id), children: /* @__PURE__ */ s.jsx(z, { variant: "body", children: a.name }) })) }) })
|
|
2962
2962
|
] }), qt = ({ availableWidgets: t, onAdd: e, texts: n }) => {
|
|
2963
2963
|
const [r, o] = P(!1);
|
|
2964
2964
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
@@ -3055,7 +3055,7 @@ const Ta = "_button_1wjon_1", Ea = "_filled_1wjon_7", Oa = "_sm_1wjon_13", Ma =
|
|
|
3055
3055
|
i(o);
|
|
3056
3056
|
}, [o]), /* @__PURE__ */ s.jsxs("div", { className: n ?? "", children: [
|
|
3057
3057
|
/* @__PURE__ */ s.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => r.controlled ? r.onToggle(!r.isOpen) : i(!a), children: [
|
|
3058
|
-
/* @__PURE__ */ s.jsx(
|
|
3058
|
+
/* @__PURE__ */ s.jsx(z, { variant: "h6", children: t }),
|
|
3059
3059
|
/* @__PURE__ */ s.jsx(Xt, { className: x(Ht.collapseIcon, {
|
|
3060
3060
|
[Ht.collapsed]: l
|
|
3061
3061
|
}) })
|
|
@@ -3084,7 +3084,7 @@ function ui(t, e, n) {
|
|
|
3084
3084
|
h.current = !1;
|
|
3085
3085
|
};
|
|
3086
3086
|
}, []);
|
|
3087
|
-
var g =
|
|
3087
|
+
var g = Q(function() {
|
|
3088
3088
|
var C = function(N) {
|
|
3089
3089
|
var _ = l.current, T = c.current;
|
|
3090
3090
|
return l.current = c.current = null, a.current = N, u.current = d.current.apply(T, _);
|
|
@@ -3162,7 +3162,7 @@ const mi = "_wrapper_uccrb_1", fi = "_open_uccrb_9", pi = "_dropdown_uccrb_13",
|
|
|
3162
3162
|
clearButton: Ci
|
|
3163
3163
|
}, yt = ({ show: t, onCancel: e, items: n, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: h, disabled: m, isLoading: p = !1, inputRef: b }) => {
|
|
3164
3164
|
var I;
|
|
3165
|
-
const w = Y(null), f = Y(null), j = Y(null), [v, g] = P(""), [C] = er(v, 500), [, k] = P(!1), y = (I = b.current) == null ? void 0 : I.getBoundingClientRect(), $ = (y == null ? void 0 : y.x) ?? 0, M = ((y == null ? void 0 : y.x) ?? 0) + ((y == null ? void 0 : y.width) ?? 0), S = (y == null ? void 0 : y.y) ?? 0, N = ((y == null ? void 0 : y.y) ?? 0) + ((y == null ? void 0 : y.height) ?? 0), _ = (y == null ? void 0 : y.width) ?? 0, T = (y == null ? void 0 : y.height) ?? 0, F = 5, W =
|
|
3165
|
+
const w = Y(null), f = Y(null), j = Y(null), [v, g] = P(""), [C] = er(v, 500), [, k] = P(!1), y = (I = b.current) == null ? void 0 : I.getBoundingClientRect(), $ = (y == null ? void 0 : y.x) ?? 0, M = ((y == null ? void 0 : y.x) ?? 0) + ((y == null ? void 0 : y.width) ?? 0), S = (y == null ? void 0 : y.y) ?? 0, N = ((y == null ? void 0 : y.y) ?? 0) + ((y == null ? void 0 : y.height) ?? 0), _ = (y == null ? void 0 : y.width) ?? 0, T = (y == null ? void 0 : y.height) ?? 0, F = 5, W = Q(() => $ ? $ > window.innerWidth / 2 : !1, [$]), H = Q(() => S ? S > window.innerHeight / 2 : !1, [S]);
|
|
3166
3166
|
D(() => {
|
|
3167
3167
|
var E;
|
|
3168
3168
|
t && ((E = j.current) == null || E.focus());
|
|
@@ -3185,13 +3185,13 @@ const mi = "_wrapper_uccrb_1", fi = "_open_uccrb_9", pi = "_dropdown_uccrb_13",
|
|
|
3185
3185
|
}), [G]), D(() => (window.addEventListener("resize", G), () => {
|
|
3186
3186
|
window.removeEventListener("resize", G);
|
|
3187
3187
|
}), [G]), on(R), sn([w, f], e);
|
|
3188
|
-
const oe = l ?? (c && c.length > 0 ? 250 : 0), te = (c == null ? void 0 : c.reduce((E,
|
|
3188
|
+
const oe = l ?? (c && c.length > 0 ? 250 : 0), te = (c == null ? void 0 : c.reduce((E, K) => E + (K.width ?? 100), 0)) ?? 0, U = `calc(max(${_}px, ${oe}px + ${te}px))`;
|
|
3189
3189
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3190
3190
|
/* @__PURE__ */ s.jsx(nr, { show: t, onClick: e }),
|
|
3191
3191
|
r && t && !m && /* @__PURE__ */ s.jsx("button", { ref: f, type: "button", className: x("luminus-dropdown-picker-clear-button", X.clearButton), onClick: () => !m && o(null), style: {
|
|
3192
3192
|
top: `calc(${S}px + ${T / 2}px - 12px)`,
|
|
3193
3193
|
left: `calc(${$}px - 24px - 8px)`
|
|
3194
|
-
}, children: /* @__PURE__ */ s.jsx(
|
|
3194
|
+
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(Qt, { size: 16 }) }) }),
|
|
3195
3195
|
/* @__PURE__ */ s.jsx("div", { className: x("luminus-dropdown-picker", X.wrapper, {
|
|
3196
3196
|
[X.open]: t
|
|
3197
3197
|
}), style: {
|
|
@@ -3202,8 +3202,8 @@ const mi = "_wrapper_uccrb_1", fi = "_open_uccrb_9", pi = "_dropdown_uccrb_13",
|
|
|
3202
3202
|
justifyContent: H ? "flex-end" : "flex-start"
|
|
3203
3203
|
}, children: /* @__PURE__ */ s.jsx("div", { ref: w, className: x("shadow rounded", X.dropdown), children: !m && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3204
3204
|
d && (h ?? n.length) <= F ? null : /* @__PURE__ */ s.jsx("div", { className: x("search-input-container border-bottom", X.searchInputContainer), children: /* @__PURE__ */ s.jsx(ee.Control, { ref: j, type: "search", size: "sm", className: X.searchInput, placeholder: i.searchPlaceholder, value: v, onChange: (E) => {
|
|
3205
|
-
var
|
|
3206
|
-
return g(((
|
|
3205
|
+
var K;
|
|
3206
|
+
return g(((K = E.target) == null ? void 0 : K.value) ?? "");
|
|
3207
3207
|
} }) }),
|
|
3208
3208
|
p ? /* @__PURE__ */ s.jsx("div", { className: X.loadingContainer, children: /* @__PURE__ */ s.jsx(gt, { animation: "border", variant: "primary" }) }) : n.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("items", X.itemsContainer), children: [
|
|
3209
3209
|
c && c.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("header-row border-bottom", X.headerRow), children: [
|
|
@@ -3212,15 +3212,15 @@ const mi = "_wrapper_uccrb_1", fi = "_open_uccrb_9", pi = "_dropdown_uccrb_13",
|
|
|
3212
3212
|
width: `${E.width ?? 100}px`,
|
|
3213
3213
|
minWidth: `${E.width ?? 100}px`,
|
|
3214
3214
|
maxWidth: `${E.width ?? 100}px`
|
|
3215
|
-
}, children: /* @__PURE__ */ s.jsx(
|
|
3215
|
+
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", children: E.name }) }, E.key))
|
|
3216
3216
|
] }),
|
|
3217
3217
|
n == null ? void 0 : n.map((E) => /* @__PURE__ */ s.jsxs("button", { type: "button", className: x("item cursor-pointer", X.item), onClick: () => !m && o(E), children: [
|
|
3218
|
-
/* @__PURE__ */ s.jsx("div", { className: X.name, children: /* @__PURE__ */ s.jsx(
|
|
3219
|
-
c == null ? void 0 : c.map((
|
|
3220
|
-
width: `${
|
|
3221
|
-
minWidth: `${
|
|
3222
|
-
maxWidth: `${
|
|
3223
|
-
}, children: /* @__PURE__ */ s.jsx(
|
|
3218
|
+
/* @__PURE__ */ s.jsx("div", { className: X.name, children: /* @__PURE__ */ s.jsx(z, { variant: "body2", children: u ? E.id : E.name }) }),
|
|
3219
|
+
c == null ? void 0 : c.map((K) => /* @__PURE__ */ s.jsx("div", { className: X.columnItem, style: {
|
|
3220
|
+
width: `${K.width ?? 100}px`,
|
|
3221
|
+
minWidth: `${K.width ?? 100}px`,
|
|
3222
|
+
maxWidth: `${K.width ?? 100}px`
|
|
3223
|
+
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", className: x("text-muted"), children: E.additionalColumns && E.additionalColumns[K.key] }) }, K.key))
|
|
3224
3224
|
] }, E.id))
|
|
3225
3225
|
] })
|
|
3226
3226
|
] }) }) })
|
|
@@ -3281,8 +3281,8 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3281
3281
|
var h;
|
|
3282
3282
|
return /* @__PURE__ */ s.jsxs("div", { className: x(me.group), children: [
|
|
3283
3283
|
/* @__PURE__ */ s.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className: x("group-header", me.header), onClick: n, children: [
|
|
3284
|
-
/* @__PURE__ */ s.jsx(
|
|
3285
|
-
/* @__PURE__ */ s.jsxs(
|
|
3284
|
+
/* @__PURE__ */ s.jsx(z, { variant: "body", className: "text-primary", children: d.key.categoryName }),
|
|
3285
|
+
/* @__PURE__ */ s.jsxs(z, { variant: "caption", children: [
|
|
3286
3286
|
d.items.length,
|
|
3287
3287
|
" ",
|
|
3288
3288
|
l.amountFrom,
|
|
@@ -3297,8 +3297,8 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3297
3297
|
className: x("search-item d-flex gap-3 align-items-center justify-content-between", me.item),
|
|
3298
3298
|
onClick: n,
|
|
3299
3299
|
children: [
|
|
3300
|
-
/* @__PURE__ */ s.jsx(
|
|
3301
|
-
/* @__PURE__ */ s.jsx(
|
|
3300
|
+
/* @__PURE__ */ s.jsx(z, { variant: "body2", className: "text-nowrap text-truncate", children: m.name }),
|
|
3301
|
+
/* @__PURE__ */ s.jsx(z, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(Mr, {}) })
|
|
3302
3302
|
]
|
|
3303
3303
|
},
|
|
3304
3304
|
p
|
|
@@ -3368,7 +3368,7 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3368
3368
|
i.collapsible && (i.controlled ? i.onToggle(!i.isOpen) : u(!c));
|
|
3369
3369
|
}, children: [
|
|
3370
3370
|
/* @__PURE__ */ s.jsxs("div", { className: x("header-content", pe.headerContent), children: [
|
|
3371
|
-
/* @__PURE__ */ s.jsx(
|
|
3371
|
+
/* @__PURE__ */ s.jsx(z, { variant: "h6", className: x("text-primary", pe.title), children: t }),
|
|
3372
3372
|
e ?? null
|
|
3373
3373
|
] }),
|
|
3374
3374
|
i.collapsible && /* @__PURE__ */ s.jsx(Xt, { className: x(pe.collapseIcon, {
|
|
@@ -3442,7 +3442,7 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3442
3442
|
] }),
|
|
3443
3443
|
/* @__PURE__ */ s.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ s.jsx(je, { style: { fontSize: "32px" } }) })
|
|
3444
3444
|
] }),
|
|
3445
|
-
n.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(
|
|
3445
|
+
n.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(z, { variant: "body", children: a ?? "No photos available" }) }),
|
|
3446
3446
|
h && /* @__PURE__ */ s.jsxs("div", { className: ne.photoContainer, children: [
|
|
3447
3447
|
/* @__PURE__ */ s.jsx("div", { role: m ? "button" : void 0, className: x("align-items-start", ne.navButton), onClick: () => m && d((w) => w - 1), children: m && /* @__PURE__ */ s.jsx(ut, { style: { fontSize: "40px" } }) }),
|
|
3448
3448
|
/* @__PURE__ */ s.jsx("img", { src: h.lgSrc, alt: h.alt, className: x("rounded", ne.photo) }),
|
|
@@ -3488,7 +3488,7 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3488
3488
|
return r ? /* @__PURE__ */ s.jsx(Sa, { interactionType: Re.Redirect, authenticationRequest: { scopes: o }, children: l || !a() ? /* @__PURE__ */ s.jsx(Gr, {}) : i ? c ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(n, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ s.jsx(n, { to: "/no-user-login", replace: !0 }) }) : !a() || !i ? /* @__PURE__ */ s.jsx(n, { to: "/login", replace: !0 }) : c ? e : /* @__PURE__ */ s.jsx(n, { to: "/user-not-permitted", replace: !0 });
|
|
3489
3489
|
}, Lc = (t) => {
|
|
3490
3490
|
const { variant: e, children: n, className: r, size: o = "md", typographyVariant: a = o === "sm" ? "body2" : "body", ...i } = { ...t };
|
|
3491
|
-
return /* @__PURE__ */ s.jsx(ds, { variant: e, className: `text-center ${o === "sm" ? "p-1" : o === "md" ? "p-3" : "p-4"} bg-${e} bg-opacity-10 border-none ${r ?? ""}`, ...i, children: /* @__PURE__ */ s.jsx(
|
|
3491
|
+
return /* @__PURE__ */ s.jsx(ds, { variant: e, className: `text-center ${o === "sm" ? "p-1" : o === "md" ? "p-3" : "p-4"} bg-${e} bg-opacity-10 border-none ${r ?? ""}`, ...i, children: /* @__PURE__ */ s.jsx(z, { variant: a, children: n }) });
|
|
3492
3492
|
}, qc = ({ version: t }) => /* @__PURE__ */ s.jsx("div", { className: "rounded", style: {
|
|
3493
3493
|
position: "fixed",
|
|
3494
3494
|
right: "0px",
|
|
@@ -3497,11 +3497,11 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3497
3497
|
backgroundColor: "rgba(255, 255, 255, 0.5)",
|
|
3498
3498
|
padding: "4px",
|
|
3499
3499
|
pointerEvents: "all"
|
|
3500
|
-
}, children: /* @__PURE__ */ s.jsxs(
|
|
3500
|
+
}, children: /* @__PURE__ */ s.jsxs(z, { variant: "caption", className: "w-100 text-end", children: [
|
|
3501
3501
|
"verze ",
|
|
3502
3502
|
t
|
|
3503
3503
|
] }) }), Yc = ({ heading: t, content: e, placement: n, children: r, trigger: o }) => /* @__PURE__ */ s.jsx(Rr, { placement: n, overlay: /* @__PURE__ */ s.jsxs(Xe, { className: "luminus-tooltip", children: [
|
|
3504
|
-
/* @__PURE__ */ s.jsx(Xe.Header, {
|
|
3504
|
+
/* @__PURE__ */ s.jsx(Xe.Header, { children: typeof t == "string" ? /* @__PURE__ */ s.jsx(z, { variant: "h6", className: "text-primary", children: t }) : t }),
|
|
3505
3505
|
/* @__PURE__ */ s.jsx(Xe.Body, { children: e })
|
|
3506
3506
|
] }), trigger: o ?? "hover", rootClose: !0, children: r }), rr = ({ currentSelection: t, selectedItemNavigateTo: e, children: n }) => {
|
|
3507
3507
|
const { LinkComponent: r } = L(ie);
|
|
@@ -3594,7 +3594,7 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3594
3594
|
const S = Y(null), N = r !== void 0, _ = N && g !== null;
|
|
3595
3595
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { withoutLabel: d, label: u ?? "", hidden: b, inputContainerClassName: x({ "luminus-dropdown-select-open": k }), className: v, children: [
|
|
3596
3596
|
/* @__PURE__ */ s.jsxs(rr, { currentSelection: g, selectedItemNavigateTo: r, children: [
|
|
3597
|
-
f && (g == null ? void 0 : g.name) && /* @__PURE__ */ s.jsx(
|
|
3597
|
+
f && (g == null ? void 0 : g.name) && /* @__PURE__ */ s.jsx(z, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: g.name }),
|
|
3598
3598
|
/* @__PURE__ */ s.jsxs(ee.Select, { ref: S, size: h, value: (g == null ? void 0 : g.id) ?? "", onChange: (W) => C({
|
|
3599
3599
|
id: l ? Number(W.target.value) ?? null : W.target.value,
|
|
3600
3600
|
name: ""
|
|
@@ -3640,7 +3640,7 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3640
3640
|
p && /* @__PURE__ */ s.jsx(xe, { message: p.message })
|
|
3641
3641
|
] });
|
|
3642
3642
|
}, zc = ({ InputContainer: t = we, label: e, formField: n, options: r, resetsFields: o, required: a, disabled: i, hidden: l, className: c }) => {
|
|
3643
|
-
const { register: u, formState: d, setValue: h, watch: m } = he(), [p, b] = P(void 0), [w, f] = P(!1), j =
|
|
3643
|
+
const { register: u, formState: d, setValue: h, watch: m } = he(), [p, b] = P(void 0), [w, f] = P(!1), j = Q(() => r, [r]);
|
|
3644
3644
|
D(() => {
|
|
3645
3645
|
const g = n.split(".");
|
|
3646
3646
|
let C = d.errors;
|
|
@@ -3722,7 +3722,7 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3722
3722
|
k && /* @__PURE__ */ s.jsx(xe, { message: k.message })
|
|
3723
3723
|
] });
|
|
3724
3724
|
}, Xc = ({ InputContainer: t = we, formField: e, label: n, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, selectedItemNavigateTo: m, texts: p, dropdownItemsNameWidth: b, isLoading: w, withoutLabel: f, additionalColumns: j, CustomOnChangeComponent: v, displayIdAsName: g, className: C }) => {
|
|
3725
|
-
const { formState: k, setValue: y, watch: $, control: M } = he(), [S, N] = P(void 0), [_, T] = P(!1), [F, W] = P(!1), H = $(e) ?? null, R = H === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : $(`${e}-DropdownName`), G =
|
|
3725
|
+
const { formState: k, setValue: y, watch: $, control: M } = he(), [S, N] = P(void 0), [_, T] = P(!1), [F, W] = P(!1), H = $(e) ?? null, R = H === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : $(`${e}-DropdownName`), G = Q(() => H == null ? null : { id: H ?? null, name: R ?? "" }, [H, R]), oe = O(() => {
|
|
3726
3726
|
const B = e.split(".");
|
|
3727
3727
|
let ce = k.errors;
|
|
3728
3728
|
B.forEach((Qe) => {
|
|
@@ -3753,16 +3753,16 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3753
3753
|
}, [oe]), D(() => {
|
|
3754
3754
|
k.isSubmitted && W(!0);
|
|
3755
3755
|
}, [k]);
|
|
3756
|
-
const E = Y(null),
|
|
3757
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: f, isInvalid:
|
|
3756
|
+
const E = Y(null), K = S !== void 0, Me = m !== void 0, or = Me && G !== null;
|
|
3757
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: f, isInvalid: K, inputContainerClassName: x({ "luminus-dropdown-select-open": _ }), className: C, children: [
|
|
3758
3758
|
/* @__PURE__ */ s.jsxs(rr, { currentSelection: G, selectedItemNavigateTo: m, children: [
|
|
3759
|
-
g && (G == null ? void 0 : G.name) && /* @__PURE__ */ s.jsx(
|
|
3759
|
+
g && (G == null ? void 0 : G.name) && /* @__PURE__ */ s.jsx(z, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: G.name }),
|
|
3760
3760
|
/* @__PURE__ */ s.jsx(nn, { control: M, name: e, render: () => /* @__PURE__ */ s.jsx(ee.Select, { size: r, onMouseDown: (B) => {
|
|
3761
3761
|
B.currentTarget.focus(), B.preventDefault();
|
|
3762
3762
|
}, onClick: () => {
|
|
3763
3763
|
!Me && !u && T(!0);
|
|
3764
3764
|
}, ref: E, value: H ?? "", onChange: () => {
|
|
3765
|
-
}, isInvalid:
|
|
3765
|
+
}, isInvalid: K, hidden: c, className: x("w-100", {
|
|
3766
3766
|
"luminus-dropdown-picker-disabled": u,
|
|
3767
3767
|
"luminus-dropdown-picker-link": or
|
|
3768
3768
|
}), children: /* @__PURE__ */ s.jsx("option", { value: H, children: g ? H : (R == null ? void 0 : R.length) > 0 ? R : H }) }) }),
|
|
@@ -3805,16 +3805,16 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3805
3805
|
o(Object.keys(n.dirtyFields).length > 0);
|
|
3806
3806
|
}, [n]), r ? /* @__PURE__ */ s.jsx(Fa, { onStorno: e, children: t }) : null;
|
|
3807
3807
|
}, el = ({ InputContainer: t = we, options: e, formField: n, label: r, size: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: m, className: p }) => {
|
|
3808
|
-
const { customSelectTexts: b } = L(ie), { formState: w, setValue: f, watch: j, control: v } = he(), [g, C] = P(void 0), [k, y] = P(!1), [$, M] = P(!1), [S, N] = P(""), _ = j(n), T =
|
|
3808
|
+
const { customSelectTexts: b } = L(ie), { formState: w, setValue: f, watch: j, control: v } = he(), [g, C] = P(void 0), [k, y] = P(!1), [$, M] = P(!1), [S, N] = P(""), _ = j(n), T = Q(() => e.find((I) => I.id === _) ?? null, [e, _]), F = O(() => {
|
|
3809
3809
|
const I = n.split(".");
|
|
3810
3810
|
let E = w.errors;
|
|
3811
|
-
I.forEach((
|
|
3812
|
-
E !== void 0 && (E = E[
|
|
3811
|
+
I.forEach((K) => {
|
|
3812
|
+
E !== void 0 && (E = E[K]);
|
|
3813
3813
|
}), C(E);
|
|
3814
3814
|
}, [w, n]), W = O((I) => {
|
|
3815
3815
|
if ((I == null ? void 0 : I.id) === _)
|
|
3816
3816
|
return;
|
|
3817
|
-
if (a && a.forEach((
|
|
3817
|
+
if (a && a.forEach((K) => f(K, null, { shouldDirty: !0, shouldValidate: $ })), I === null) {
|
|
3818
3818
|
f(n, null, {
|
|
3819
3819
|
shouldDirty: !0,
|
|
3820
3820
|
shouldValidate: $
|
|
@@ -3839,7 +3839,7 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3839
3839
|
const G = O((I) => {
|
|
3840
3840
|
var E;
|
|
3841
3841
|
return I === null ? "" : !I.name || I.name.length === 0 ? ((E = I.id) == null ? void 0 : E.toString()) ?? "" : m ? `${I.name} (${I.id})` : I.name;
|
|
3842
|
-
}, [m]), oe =
|
|
3842
|
+
}, [m]), oe = Q(() => e.map((I) => ({
|
|
3843
3843
|
id: I.id,
|
|
3844
3844
|
name: G(I)
|
|
3845
3845
|
})).filter((I) => {
|
|
@@ -3875,7 +3875,7 @@ const $i = "_item_1dy8x_1", tr = {
|
|
|
3875
3875
|
disabled: bc
|
|
3876
3876
|
}, ol = ({ eventKey: t, className: e, onClick: n, disabled: r, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: x("luminus-tab text-primary rounded", Vt.tab, e, {
|
|
3877
3877
|
disabled: r
|
|
3878
|
-
}, { [Vt.disabled]: r }), onClick: () => n && !r && n(t), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(
|
|
3878
|
+
}, { [Vt.disabled]: r }), onClick: () => n && !r && n(t), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(z, { variant: "h6", className: "text-primary", children: o }) : o });
|
|
3879
3879
|
export {
|
|
3880
3880
|
Lc as Alert,
|
|
3881
3881
|
Ic as ApiFileDownloadButton,
|
|
@@ -3924,7 +3924,7 @@ export {
|
|
|
3924
3924
|
nl as TabPanel,
|
|
3925
3925
|
rl as Tabs,
|
|
3926
3926
|
Bc as TextInput,
|
|
3927
|
-
|
|
3927
|
+
z as Typography,
|
|
3928
3928
|
cl as UserAvatarToggle,
|
|
3929
3929
|
tl as UserAvatarValueFormat,
|
|
3930
3930
|
qc as VersionInfo,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext as u, useCallback as l } from "react";
|
|
2
|
-
import { ak as p, al as h } from "./NoInputContainer-
|
|
2
|
+
import { ak as p, al as h } from "./NoInputContainer-CzSDOA31.js";
|
|
3
3
|
const P = () => {
|
|
4
4
|
const { isShown: e, text: s, showPrompt: t, hidePrompt: r, resolveRef: o, setOptions: c } = u(p), C = l((n) => {
|
|
5
5
|
r(), o.current(n);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react"),f=require("./NoInputContainer-
|
|
1
|
+
"use strict";const r=require("react"),f=require("./NoInputContainer-Ceb-y7u0.cjs"),p=()=>{const{isShown:s,text:c,showPrompt:e,hidePrompt:t,resolveRef:n,setOptions:i}=r.useContext(f.PromptContext),a=r.useCallback(o=>{t(),n.current(o)},[t,n]),l=r.useCallback(async(o,u)=>(i(m=>({...m,...u})),e(o),new Promise(m=>{n.current=m})),[n,i,e]);return{isShown:s,text:c,prompt:l,onFinish:a}};let C;const h=()=>{const{show:s,text:c,showConfirm:e,hideConfirm:t}=r.useContext(f.ConfirmContext),n=()=>{t()};return{confirm:async o=>(e(o),new Promise(u=>{C=u})),onConfirm:()=>{n(),C(!0)},onCancel:()=>{n(),C(!1)},show:s,text:c}};exports.useConfirm=h;exports.usePrompt=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react"),t=require("./NoInputContainer-
|
|
1
|
+
"use strict";const r=require("react"),t=require("./NoInputContainer-Ceb-y7u0.cjs");require("react-hook-form");const o=()=>{const{user:s}=r.useContext(t.UserContext);return{checkUserHasPermissions:r.useCallback(n=>n.every(i=>{var e;return(e=s==null?void 0:s.permissions)==null?void 0:e.includes(i)}),[s])}};exports.usePermissions=o;
|