react-luminus-components 1.3.35 → 1.3.38
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 +60 -60
- package/dist/{FromToDatePickerDropdownToggle-CGnDN_zs.js → FromToDatePickerDropdownToggle-DrEcMDSn.js} +2434 -2403
- package/dist/FromToDatePickerDropdownToggle-U9J8VvT9.cjs +253 -0
- package/dist/PrimaryButton-Da4GxIOm.cjs +1 -0
- package/dist/{PrimaryButton-B6qFyVVD.js → PrimaryButton-Dqcs3CVC.js} +36 -34
- package/dist/{SimpleTooltip-B0I1MS-L.js → SimpleTooltip-BAj8LkNU.js} +1 -1
- package/dist/{SimpleTooltip-CpLiAgNs.cjs → SimpleTooltip-Dzk5Xqz6.cjs} +1 -1
- package/dist/components/Buttons/ContextButton/ContextButton.d.ts +0 -1
- package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +0 -1
- package/dist/components/Buttons/IconButton/IconButton.d.ts +0 -1
- package/dist/components/Buttons/PrimaryButton/PrimaryButton.d.ts +0 -1
- package/dist/components/Dropdown/comps/DropdownItem/DropdownItem.d.ts +0 -1
- package/dist/components/Dropdown/comps/DropdownItem/FileUploadDropdownItem.d.ts +0 -1
- package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +3 -3
- package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +20 -21
- package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +20 -21
- package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +20 -21
- package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageFilters/MessageFilters.d.ts +0 -1
- package/dist/components/NewTabs/TabPanel/TabPanel.d.ts +0 -1
- package/dist/components/UserAvatar/AvatarIcon/AvatarIcon.d.ts +0 -1
- package/dist/components/common/AlertItem/AlertItem.d.ts +0 -1
- package/dist/components/common/Backdrop/Backdrop.d.ts +0 -1
- package/dist/components/common/Badge/Badge.d.ts +0 -1
- package/dist/components/common/Card/Card.d.ts +0 -1
- package/dist/components/common/Collapse/Collapse.d.ts +0 -1
- package/dist/components/common/ConfirmDialog/ConfirmDialog.d.ts +0 -1
- package/dist/components/common/FloatingActionContainer/FloatingActionContainer.d.ts +0 -1
- package/dist/components/common/InvalidFeedback/InvalidFeedback.d.ts +0 -1
- package/dist/components/common/Loading/Loading.d.ts +0 -1
- package/dist/components/common/PromptDialog/PromptDialog.d.ts +0 -1
- package/dist/components/common/Typography/Typography.d.ts +0 -1
- package/dist/components/common/VersionInfo/VersionInfo.d.ts +0 -1
- package/dist/components/common/YearPicker/YearPicker.d.ts +0 -1
- package/dist/contexts/confirm/ConfirmContext.d.ts +0 -1
- package/dist/contexts/confirm/ConfirmProvider.d.ts +0 -1
- package/dist/contexts/delegation/DelegationProvider.d.ts +0 -1
- package/dist/contexts/loading/LoadingContext.d.ts +0 -1
- package/dist/contexts/loading/LoadingProvider.d.ts +0 -1
- package/dist/contexts/user/UserProvider.d.ts +0 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +53 -54
- package/dist/{dateUtils-Y_XPaYyg.cjs → dateUtils--qPvcQrY.cjs} +1 -1
- package/dist/{dateUtils-Bc53BdYm.js → dateUtils-BBdAuKvy.js} +1 -1
- package/dist/hooks/useFormControlType/useFormControlType.d.ts +1 -1
- package/dist/hooks/useLocalStorageState/useLocalStorageState.d.ts +0 -1
- package/dist/hooks/useNotifications/useNotifications.d.ts +1 -1
- package/dist/hooks/useZodSchemaTypes/useZodSchemaTypes.d.ts +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +2937 -72
- package/dist/layout/TopBar/TopBar.d.ts +0 -1
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +11 -12
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +177 -170
- package/dist/models/prop-types/InputContainerProps.d.ts +0 -1
- package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +1 -1
- package/dist/models/types/MenuItemType.d.ts +0 -1
- package/dist/models/types/PhotoAction.d.ts +0 -1
- package/dist/{searchUtils-qxu0IgEU.cjs → searchUtils-BRuoWynE.cjs} +1 -1
- package/dist/{searchUtils-kismAHZM.js → searchUtils-D44ZkVNs.js} +1 -1
- package/dist/{useLocalStorageState-HYmARj_B.js → useLocalStorageState-BuXnU9lw.js} +18 -19
- package/dist/useLocalStorageState-CBt0FNic.cjs +1 -0
- package/dist/usePermissions-BrYbzBzf.cjs +1 -0
- package/dist/{usePermissions-Dl5tlwwt.js → usePermissions-DF_q-wC1.js} +3 -4
- package/dist/utils/bnfValueFormat/bnfValueFormat.d.ts +0 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +53 -54
- package/package.json +1 -1
- package/dist/FromToDatePickerDropdownToggle-BcOIaLyQ.cjs +0 -253
- package/dist/PrimaryButton-Dow_5lBe.cjs +0 -1
- package/dist/useLocalStorageState-BxKcArKF.cjs +0 -1
- package/dist/usePermissions-yx-0zHae.cjs +0 -1
|
@@ -6,7 +6,7 @@ import { default as InputBaseProps } from './InputBaseProps';
|
|
|
6
6
|
type DropdownPickerProps = InputBaseProps & {
|
|
7
7
|
items: DropdownPickerOption[];
|
|
8
8
|
defaultSelection: FormSelectOption | null;
|
|
9
|
-
selectedItemNavigateTo
|
|
9
|
+
selectedItemNavigateTo?: (item: FormSelectOption) => string;
|
|
10
10
|
onSearchQueryChange: (query: string) => void;
|
|
11
11
|
texts: DropdownPickerTexts;
|
|
12
12
|
dropdownItemsNameWidth?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./FromToDatePickerDropdownToggle-
|
|
1
|
+
"use strict";const e=require("./FromToDatePickerDropdownToggle-U9J8VvT9.cjs"),i=(r,t)=>t?r?e.latinize(r).toLowerCase().includes(e.latinize(t.toLowerCase())):!1:!0,n=(r,t)=>t?r?e.latinize(r).toLowerCase().startsWith(e.latinize(t.toLowerCase())):!1:!0,a=(r,t)=>t?t.startsWith("*")?i(r,t.substring(1)):n(r,t):!0;exports.stringContains=i;exports.stringSearchWithin=a;exports.stringStartsWith=n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aR as e } from "./FromToDatePickerDropdownToggle-
|
|
1
|
+
import { aR as e } from "./FromToDatePickerDropdownToggle-DrEcMDSn.js";
|
|
2
2
|
const n = (r, t) => t ? r ? e(r).toLowerCase().includes(e(t.toLowerCase())) : !1 : !0, i = (r, t) => t ? r ? e(r).toLowerCase().startsWith(e(t.toLowerCase())) : !1 : !0, o = (r, t) => t ? t.startsWith("*") ? n(r, t.substring(1)) : i(r, t) : !0;
|
|
3
3
|
export {
|
|
4
4
|
n as a,
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { useContext as h, useCallback as f, useRef as P, useState as x, useEffect as b } from "react";
|
|
2
|
-
import { am as I, al as L, a5 as $, ao as v } from "./FromToDatePickerDropdownToggle-
|
|
2
|
+
import { am as I, al as L, a5 as $, ao as v } from "./FromToDatePickerDropdownToggle-DrEcMDSn.js";
|
|
3
3
|
import "react-router-dom";
|
|
4
4
|
import "@azure/msal-browser";
|
|
5
5
|
import "@azure/msal-react";
|
|
6
|
-
import "zod";
|
|
7
6
|
import "react-hook-form";
|
|
8
|
-
const
|
|
7
|
+
const N = () => {
|
|
9
8
|
const { isShown: t, text: a, showPrompt: n, hidePrompt: o, resolveRef: e, setOptions: r } = h(I), l = f((s) => {
|
|
10
9
|
o(), e.current(s);
|
|
11
10
|
}, [o, e]), m = f(async (s, c) => (r((i) => ({ ...i, ...c })), n(s), new Promise((i) => {
|
|
@@ -14,7 +13,7 @@ const E = () => {
|
|
|
14
13
|
return { isShown: t, text: a, prompt: m, onFinish: l };
|
|
15
14
|
};
|
|
16
15
|
let g;
|
|
17
|
-
const
|
|
16
|
+
const E = () => {
|
|
18
17
|
const { show: t, text: a, showConfirm: n, hideConfirm: o } = h(L), e = () => {
|
|
19
18
|
o();
|
|
20
19
|
};
|
|
@@ -31,17 +30,17 @@ const G = () => {
|
|
|
31
30
|
enabled: !0,
|
|
32
31
|
nullStateBeforeLoad: !0,
|
|
33
32
|
nullStateOnFail: !1
|
|
34
|
-
},
|
|
35
|
-
const s = $({ silent: o, customToken: m, differentBaseUrl: l }), { startLoading: c, stopLoading: i } = h(v), D = P(0), [O,
|
|
33
|
+
}, G = (t, { loadOnInit: a = u.loadOnInit, enabled: n = u.enabled, silent: o = u.silent, nullStateBeforeLoad: e = u.nullStateBeforeLoad, nullStateOnFail: r = u.nullStateOnFail, customApiUrl: l, customBearerToken: m } = u) => {
|
|
34
|
+
const s = $({ silent: o, customToken: m, differentBaseUrl: l }), { startLoading: c, stopLoading: i } = h(v), D = P(0), [O, d] = x(null), C = f(async (p, w) => {
|
|
36
35
|
if (n !== !1) {
|
|
37
|
-
!o && c(`loadData-${t}-${w}`), e &&
|
|
36
|
+
!o && c(`loadData-${t}-${w}`), e && d(null);
|
|
38
37
|
try {
|
|
39
38
|
const S = await s.get(t, {
|
|
40
|
-
signal:
|
|
39
|
+
signal: p
|
|
41
40
|
});
|
|
42
|
-
|
|
41
|
+
d(S.data);
|
|
43
42
|
} catch (S) {
|
|
44
|
-
throw r &&
|
|
43
|
+
throw r && d(null), S;
|
|
45
44
|
} finally {
|
|
46
45
|
!o && i(`loadData-${t}-${w}`);
|
|
47
46
|
}
|
|
@@ -50,12 +49,12 @@ const G = () => {
|
|
|
50
49
|
return b(() => {
|
|
51
50
|
if (a === !1)
|
|
52
51
|
return;
|
|
53
|
-
const
|
|
54
|
-
return C(
|
|
55
|
-
|
|
52
|
+
const p = new AbortController();
|
|
53
|
+
return C(p.signal, ++D.current), () => {
|
|
54
|
+
p.abort();
|
|
56
55
|
};
|
|
57
|
-
}, [C, a]), { data: O, setData:
|
|
58
|
-
},
|
|
56
|
+
}, [C, a]), { data: O, setData: d, reloadData: C };
|
|
57
|
+
}, T = (t, a) => {
|
|
59
58
|
const n = f(() => {
|
|
60
59
|
const l = localStorage.getItem(t);
|
|
61
60
|
return l ? JSON.parse(l) : a;
|
|
@@ -69,8 +68,8 @@ const G = () => {
|
|
|
69
68
|
return [o, e, r];
|
|
70
69
|
};
|
|
71
70
|
export {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
T as a,
|
|
72
|
+
G as b,
|
|
73
|
+
E as c,
|
|
74
|
+
N as u
|
|
76
75
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("react"),S=require("./FromToDatePickerDropdownToggle-U9J8VvT9.cjs");require("react-router-dom");require("@azure/msal-browser");require("@azure/msal-react");require("react-hook-form");const D=()=>{const{isShown:t,text:s,showPrompt:r,hidePrompt:e,resolveRef:o,setOptions:a}=n.useContext(S.PromptContext),l=n.useCallback(c=>{e(),o.current(c)},[e,o]),C=n.useCallback(async(c,u)=>(a(i=>({...i,...u})),r(c),new Promise(i=>{o.current=i})),[o,a,r]);return{isShown:t,text:s,prompt:C,onFinish:l}};let b;const P=()=>{const{show:t,text:s,showConfirm:r,hideConfirm:e}=n.useContext(S.ConfirmContext),o=()=>{e()};return{confirm:async c=>(r(c),new Promise(u=>{b=u})),onConfirm:()=>{o(),b(!0)},onCancel:()=>{o(),b(!1)},show:t,text:s}},f={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},q=(t,{loadOnInit:s=f.loadOnInit,enabled:r=f.enabled,silent:e=f.silent,nullStateBeforeLoad:o=f.nullStateBeforeLoad,nullStateOnFail:a=f.nullStateOnFail,customApiUrl:l,customBearerToken:C}=f)=>{const c=S.useAxios({silent:e,customToken:C,differentBaseUrl:l}),{startLoading:u,stopLoading:i}=n.useContext(S.LoadingContext),x=n.useRef(0),[h,m]=n.useState(null),g=n.useCallback(async(d,w)=>{if(r!==!1){!e&&u(`loadData-${t}-${w}`),o&&m(null);try{const p=await c.get(t,{signal:d});m(p.data)}catch(p){throw a&&m(null),p}finally{!e&&i(`loadData-${t}-${w}`)}}},[r,e,u,t,o,c,a,i]);return n.useEffect(()=>{if(s===!1)return;const d=new AbortController;return g(d.signal,++x.current),()=>{d.abort()}},[g,s]),{data:h,setData:m,reloadData:g}},L=(t,s)=>{const r=n.useCallback(()=>{const l=localStorage.getItem(t);return l?JSON.parse(l):s},[s,t]),[e,o]=n.useState(r);n.useEffect(()=>{localStorage.setItem(t,JSON.stringify(e))},[t,e]);const a=n.useCallback(()=>{o(r)},[r]);return[e,o,a]};exports.useConfirm=P;exports.useGetApiData=q;exports.useLocalStorageState=L;exports.usePrompt=D;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("react"),n=require("./FromToDatePickerDropdownToggle-U9J8VvT9.cjs");require("react-router-dom");require("@azure/msal-browser");require("@azure/msal-react");require("react-hook-form");const t=()=>{const{user:e}=r.useContext(n.UserContext);return{checkUserHasPermissions:r.useCallback(i=>i.every(o=>{var s;return(s=e==null?void 0:e.permissions)==null?void 0:s.includes(o)}),[e])}};exports.usePermissions=t;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { useContext as t, useCallback as i } from "react";
|
|
2
|
-
import { ab as m } from "./FromToDatePickerDropdownToggle-
|
|
2
|
+
import { ab as m } from "./FromToDatePickerDropdownToggle-DrEcMDSn.js";
|
|
3
3
|
import "react-router-dom";
|
|
4
4
|
import "@azure/msal-browser";
|
|
5
5
|
import "@azure/msal-react";
|
|
6
|
-
import "zod";
|
|
7
6
|
import "react-hook-form";
|
|
8
|
-
const
|
|
7
|
+
const x = () => {
|
|
9
8
|
const { user: s } = t(m);
|
|
10
9
|
return { checkUserHasPermissions: i((e) => e.every((o) => {
|
|
11
10
|
var r;
|
|
@@ -13,5 +12,5 @@ const C = () => {
|
|
|
13
12
|
}), [s]) };
|
|
14
13
|
};
|
|
15
14
|
export {
|
|
16
|
-
|
|
15
|
+
x as u
|
|
17
16
|
};
|
package/dist/utils.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./FromToDatePickerDropdownToggle-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./FromToDatePickerDropdownToggle-U9J8VvT9.cjs"),r=require("./dateUtils--qPvcQrY.cjs"),c=require("./searchUtils-BRuoWynE.cjs");require("react");require("@azure/msal-browser");require("@azure/msal-react");require("react-router-dom");require("react-hook-form");const h=require("./SimpleTooltip-Dzk5Xqz6.cjs");function u(t,s){t.setValue(s,null)}function S(t,s){s.forEach(o=>{u(t,o)})}const d=(t,s)=>{let o=!1,n=t;t[0]==="#"&&(n=t.slice(1),o=!0);let e=parseInt(n.substring(0,2),16),a=parseInt(n.substring(2,4),16),l=parseInt(n.substring(4,6),16);e+=s,a+=s,l+=s,e>255?e=255:e<0&&(e=0),a>255?a=255:a<0&&(a=0),l>255?l=255:l<0&&(l=0);const m=e.toString(16).length===1?"0"+e.toString(16):e.toString(16),g=a.toString(16).length===1?"0"+a.toString(16):a.toString(16),f=l.toString(16).length===1?"0"+l.toString(16):l.toString(16);return(o?"#":"")+m+g+f},D=t=>{const s=t.slice(3),o=[];for(let e=0;e<s.length;e+=2)o.push(s.slice(e,e+2));return`#${o.reverse().join("")}`},p=({cell:{value:t}})=>i.jsxRuntimeExports.jsx(h.SimpleTooltip,{text:t,placement:"bottom",children:i.jsxRuntimeExports.jsx("div",{className:"w-100 text-truncate",children:t})}),y=({cell:{value:t}})=>i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:t==null?void 0:t.toLocaleString("cs-CZ")}),x=({cell:{value:t}})=>{const s=r.format(new Date(t),"dd.MM.yyyy");return i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:t?s:""})};function O(t,s,o){const n=URL.createObjectURL(t),e=document.createElement("a");e.href=n,e.setAttribute("download",s),e.setAttribute("style","display: none"),o&&e.setAttribute("target","_blank"),document.body.appendChild(e),e.click(),document.body.removeChild(e),URL.revokeObjectURL(n)}exports.extractErrorsFromResponse=i.extractErrorsFromResponse;exports.extractPermissionsFromResponse=i.extractPermissionsFromResponse;exports.fixNameIdNulls=i.fixNameIdNulls;exports.formatFileSize=i.formatFileSize;exports.hasOnlyNullValues=i.hasOnlyNullValues;exports.hookFormSetServerErrors=i.hookFormSetServerErrors;exports.isPrimitive=i.isPrimitive;exports.joinStrings=i.joinStrings;exports.replaceNullValuesOnlyObjectsWithNulls=i.replaceNullValuesOnlyObjectsWithNulls;exports.shortenText=i.shortenText;exports.truncateText=i.truncateText;exports.urlfyArray=i.urlfyArray;exports.buildEmployeeNameString=r.buildEmployeeNameString;exports.buildOrgUnitString=r.buildOrgUnitString;exports.buildVehicleNameString=r.buildVehicleNameString;exports.capitalizeFirstLetter=r.capitalizeFirstLetter;exports.compareDate=r.compareDate;exports.compareDateTime=r.compareDateTime;exports.formatDate=r.formatDate;exports.formatDateTime=r.formatDateTime;exports.getDateString=r.getDateString;exports.getDaysDifference=r.getDaysDifference;exports.getFirstDayOfMonth=r.getFirstDayOfMonth;exports.getFirstDayOfOffsetMonth=r.getFirstDayOfOffsetMonth;exports.getFirstDayOfYear=r.getFirstDayOfYear;exports.getLastDayOfMonth=r.getLastDayOfMonth;exports.getLastDayOfOffsetMonth=r.getLastDayOfOffsetMonth;exports.getLastDayOfYear=r.getLastDayOfYear;exports.isISODate=r.isISODate;exports.isValidDate=r.isValidDate;exports.msToStartOfNextDay=r.msToStartOfNextDay;exports.trimIsoDate=r.trimIsoDate;exports.stringContains=c.stringContains;exports.stringSearchWithin=c.stringSearchWithin;exports.stringStartsWith=c.stringStartsWith;exports.adjustBrightness=d;exports.dateValueFormat=x;exports.hookFormSetNull=u;exports.hookFormSetNulls=S;exports.numFormat=y;exports.saveFile=O;exports.valueTooltip=p;exports.vclToHex=D;
|
package/dist/utils.es.js
CHANGED
|
@@ -1,85 +1,84 @@
|
|
|
1
|
-
import { j as n } from "./FromToDatePickerDropdownToggle-
|
|
2
|
-
import { aG as
|
|
3
|
-
import { f } from "./dateUtils-
|
|
4
|
-
import { k as
|
|
5
|
-
import { a as
|
|
1
|
+
import { j as n } from "./FromToDatePickerDropdownToggle-DrEcMDSn.js";
|
|
2
|
+
import { aG as I, aI as M, aK as E, aD as V, aL as v, aH as w, aJ as P, aO as U, aM as A, aQ as B, aN as G, aP as W } from "./FromToDatePickerDropdownToggle-DrEcMDSn.js";
|
|
3
|
+
import { f } from "./dateUtils-BBdAuKvy.js";
|
|
4
|
+
import { k as H, l as Y, j as q, h as J, o as K, q as Q, c as Z, e as _, y as $, r as X, a as tt, v as et, b as st, u as rt, w as at, x as ot, i as it, n as nt, m as lt, t as ct } from "./dateUtils-BBdAuKvy.js";
|
|
5
|
+
import { a as ft, s as gt, b as ut } from "./searchUtils-D44ZkVNs.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "@azure/msal-browser";
|
|
8
8
|
import "@azure/msal-react";
|
|
9
|
-
import "zod";
|
|
10
9
|
import "react-router-dom";
|
|
11
10
|
import "react-hook-form";
|
|
12
|
-
import { S as g } from "./SimpleTooltip-
|
|
11
|
+
import { S as g } from "./SimpleTooltip-BAj8LkNU.js";
|
|
13
12
|
function u(t, s) {
|
|
14
13
|
t.setValue(s, null);
|
|
15
14
|
}
|
|
16
|
-
function
|
|
15
|
+
function O(t, s) {
|
|
17
16
|
s.forEach((r) => {
|
|
18
17
|
u(t, r);
|
|
19
18
|
});
|
|
20
19
|
}
|
|
21
|
-
const
|
|
20
|
+
const F = (t, s) => {
|
|
22
21
|
let r = !1, a = t;
|
|
23
22
|
t[0] === "#" && (a = t.slice(1), r = !0);
|
|
24
23
|
let e = parseInt(a.substring(0, 2), 16), o = parseInt(a.substring(2, 4), 16), i = parseInt(a.substring(4, 6), 16);
|
|
25
24
|
e += s, o += s, i += s, e > 255 ? e = 255 : e < 0 && (e = 0), o > 255 ? o = 255 : o < 0 && (o = 0), i > 255 ? i = 255 : i < 0 && (i = 0);
|
|
26
25
|
const l = e.toString(16).length === 1 ? "0" + e.toString(16) : e.toString(16), c = o.toString(16).length === 1 ? "0" + o.toString(16) : o.toString(16), m = i.toString(16).length === 1 ? "0" + i.toString(16) : i.toString(16);
|
|
27
26
|
return (r ? "#" : "") + l + c + m;
|
|
28
|
-
},
|
|
27
|
+
}, j = (t) => {
|
|
29
28
|
const s = t.slice(3), r = [];
|
|
30
29
|
for (let e = 0; e < s.length; e += 2)
|
|
31
30
|
r.push(s.slice(e, e + 2));
|
|
32
31
|
return `#${r.reverse().join("")}`;
|
|
33
|
-
},
|
|
32
|
+
}, N = ({ cell: { value: t } }) => /* @__PURE__ */ n.jsx(g, { text: t, placement: "bottom", children: /* @__PURE__ */ n.jsx("div", { className: "w-100 text-truncate", children: t }) }), L = ({ cell: { value: t } }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: t == null ? void 0 : t.toLocaleString("cs-CZ") }), R = ({ cell: { value: t } }) => {
|
|
34
33
|
const s = f(new Date(t), "dd.MM.yyyy");
|
|
35
34
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? s : "" });
|
|
36
35
|
};
|
|
37
|
-
function
|
|
36
|
+
function k(t, s, r) {
|
|
38
37
|
const a = URL.createObjectURL(t), e = document.createElement("a");
|
|
39
38
|
e.href = a, e.setAttribute("download", s), e.setAttribute("style", "display: none"), r && e.setAttribute("target", "_blank"), document.body.appendChild(e), e.click(), document.body.removeChild(e), URL.revokeObjectURL(a);
|
|
40
39
|
}
|
|
41
40
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
41
|
+
F as adjustBrightness,
|
|
42
|
+
H as buildEmployeeNameString,
|
|
43
|
+
Y as buildOrgUnitString,
|
|
44
|
+
q as buildVehicleNameString,
|
|
45
|
+
J as capitalizeFirstLetter,
|
|
46
|
+
K as compareDate,
|
|
47
|
+
Q as compareDateTime,
|
|
48
|
+
R as dateValueFormat,
|
|
49
|
+
I as extractErrorsFromResponse,
|
|
50
|
+
M as extractPermissionsFromResponse,
|
|
51
|
+
E as fixNameIdNulls,
|
|
52
|
+
Z as formatDate,
|
|
53
|
+
_ as formatDateTime,
|
|
54
|
+
V as formatFileSize,
|
|
55
|
+
$ as getDateString,
|
|
56
|
+
X as getDaysDifference,
|
|
57
|
+
tt as getFirstDayOfMonth,
|
|
58
|
+
et as getFirstDayOfOffsetMonth,
|
|
59
|
+
st as getFirstDayOfYear,
|
|
60
|
+
rt as getLastDayOfMonth,
|
|
61
|
+
at as getLastDayOfOffsetMonth,
|
|
62
|
+
ot as getLastDayOfYear,
|
|
63
|
+
v as hasOnlyNullValues,
|
|
65
64
|
u as hookFormSetNull,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
65
|
+
O as hookFormSetNulls,
|
|
66
|
+
w as hookFormSetServerErrors,
|
|
67
|
+
it as isISODate,
|
|
68
|
+
P as isPrimitive,
|
|
69
|
+
nt as isValidDate,
|
|
70
|
+
U as joinStrings,
|
|
71
|
+
lt as msToStartOfNextDay,
|
|
72
|
+
L as numFormat,
|
|
73
|
+
A as replaceNullValuesOnlyObjectsWithNulls,
|
|
74
|
+
k as saveFile,
|
|
75
|
+
B as shortenText,
|
|
76
|
+
ft as stringContains,
|
|
77
|
+
gt as stringSearchWithin,
|
|
78
|
+
ut as stringStartsWith,
|
|
79
|
+
ct as trimIsoDate,
|
|
80
|
+
G as truncateText,
|
|
81
|
+
W as urlfyArray,
|
|
82
|
+
N as valueTooltip,
|
|
83
|
+
j as vclToHex
|
|
85
84
|
};
|