react-luminus-components 1.3.258 → 1.3.259
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 +28 -28
- package/dist/{FormDisabledProvider-DRIpHsZS.js → FormDisabledProvider-BM4azY5O.js} +1 -1
- package/dist/FormDisabledProvider-BjvBDX-9.cjs +1 -0
- package/dist/components/ResponsiveContextDropdown/ResponsiveContextDropdown.d.ts +1 -1
- package/dist/components/common/RouteLink/RouteLink.d.ts +11 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +18 -18
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +15 -15
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +21 -21
- package/dist/main.cjs.js +3 -3
- package/dist/main.d.ts +1 -0
- package/dist/main.es-CKsoV3CN.cjs +611 -0
- package/dist/main.es-DMxbIKdM.js +53071 -0
- package/dist/main.es.js +1064 -1049
- package/dist/models/index.d.ts +1 -0
- package/dist/useGetApiData-BhHfQMNh.cjs +1 -0
- package/dist/{useGetApiData-Daz8LBY3.js → useGetApiData-Cz5Tvtso.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +21 -21
- package/package.json +1 -1
- package/dist/FormDisabledProvider-BUvXaSMr.cjs +0 -1
- package/dist/nivo-bar.es-CLgftYVK.cjs +0 -279
- package/dist/nivo-bar.es-DkKlmZbu.js +0 -26483
- package/dist/useGetApiData-DCASxaHO.cjs +0 -1
package/dist/models/index.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ export type { default as ReportDto } from './api/reports/ReportDto';
|
|
|
93
93
|
export type { default as ReportVersionDto } from './api/reports/ReportVersionDto';
|
|
94
94
|
export type { default as HyperlinkColumn } from './ui/reports/HyperlinkColumn';
|
|
95
95
|
export type { default as ReportSettings } from './ui/reports/ReportSettings';
|
|
96
|
+
export type { default as RouteInfo } from './ui/routes/RouteInfo';
|
|
96
97
|
export type { default as ShortcutLinkCreateModel } from './api/shortcutLinks/ShortcutLinkCreateModel';
|
|
97
98
|
export type { default as ShortcutLinkModel } from './api/shortcutLinks/ShortcutLinkModel';
|
|
98
99
|
export type { default as ShortcutLinkCreateUiModel } from './ui/shortcutLinks/ShortcutLinkCreateUiModel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./main.es-CKsoV3CN.cjs"),e=require("react");require("react-router-dom");require("react-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");const a={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},O=(n,{loadOnInit:c=a.loadOnInit,enabled:d=a.enabled,silent:s=a.silent,nullStateBeforeLoad:f=a.nullStateBeforeLoad,nullStateOnFail:g=a.nullStateOnFail,customApiUrl:h,customBearerToken:k,dataTransformer:l}=a)=>{const L=i.useAxios({silent:s,customToken:k,differentBaseUrl:h}),[S,C]=e.useState(!1),{startLoading:q,stopLoading:D}=e.useContext(i.LoadingContext),$=e.useRef(0),{isAuthenticated:b}=i.useAuth(),p=e.useCallback(t=>{q(t),C(()=>!0)},[q]),x=e.useCallback(t=>{D(t),C(()=>!1)},[D]),[w,o]=e.useState(null),u=e.useCallback(async(t,A)=>{if(b()&&d!==!1){!s&&p(`loadData-${n}-${A}`),f&&o(null);try{const r=await L.get(n,{signal:t}),y=l?l(r.data):r.data;o(y)}catch(r){throw g&&o(null),r}finally{!s&&x(`loadData-${n}-${A}`)}}},[b,d,s,p,n,f,L,l,g,x]);return e.useEffect(()=>{if(c===!1)return;const t=new AbortController;return u(t.signal,++$.current),()=>{t.abort()}},[u,c]),{data:w,setData:o,reloadData:u,isLoading:S}};exports.useGetApiData=O;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aj as k, al as B, b2 as I } from "./
|
|
1
|
+
import { aj as k, al as B, b2 as I } from "./main.es-DMxbIKdM.js";
|
|
2
2
|
import { useState as A, useContext as R, useRef as j, useCallback as i, useEffect as v } from "react";
|
|
3
3
|
import "react-router-dom";
|
|
4
4
|
import "react-dom";
|
package/dist/utils.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./main.es-CKsoV3CN.cjs");require("react");require("@azure/msal-browser");require("@azure/msal-react");require("react-router-dom");require("react-dom");require("react-hook-form");require("react-flexmonster");const f=require("./numberUtils-BY7ziQF8.cjs"),g=({cell:{value:t}})=>e.jsxRuntimeExports.jsx(e.SimpleTooltip,{text:t,placement:"bottom",children:e.jsxRuntimeExports.jsx("div",{className:"w-100 text-truncate",children:t})}),h=({cell:{value:t}})=>e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:t==null?void 0:t.toLocaleString("cs-CZ")}),d=({cell:{value:t}})=>{const i=e.format(new Date(t),"dd.MM.yyyy");return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:t?i:""})},S=(t,i)=>{let n=!1,a=t;t[0]==="#"&&(a=t.slice(1),n=!0);let r=parseInt(a.substring(0,2),16),s=parseInt(a.substring(2,4),16),o=parseInt(a.substring(4,6),16);r+=i,s+=i,o+=i,r>255?r=255:r<0&&(r=0),s>255?s=255:s<0&&(s=0),o>255?o=255:o<0&&(o=0);const m=r.toString(16).length===1?"0"+r.toString(16):r.toString(16),u=s.toString(16).length===1?"0"+s.toString(16):s.toString(16),c=o.toString(16).length===1?"0"+o.toString(16):o.toString(16);return(n?"#":"")+m+u+c},D=t=>{const i=t.slice(3),n=[];for(let r=0;r<i.length;r+=2)n.push(i.slice(r,r+2));return`#${n.reverse().join("")}`};function l(t,i){t.setValue(i,null)}function p(t,i){i.forEach(n=>{l(t,n)})}const x=["edit","delete","info","warning","check","add","cancel","danger","chevron-left","chevron-right","chevron-up","chevron-down","chevron-double-left","chevron-double-right","folder","folder-filled","file-download","file-upload","star-outline","save","link"];exports.atobUtf8=e.atobUtf8;exports.buildEmployeeNameString=e.buildEmployeeNameString;exports.buildOrgUnitString=e.buildOrgUnitString;exports.buildVehicleNameString=e.buildVehicleNameString;exports.capitalizeFirstLetter=e.capitalizeFirstLetter;exports.compareDate=e.compareDate;exports.compareDateTime=e.compareDateTime;exports.extractErrorsFromResponse=e.extractErrorsFromResponse;exports.extractFilename=e.extractFilename;exports.extractPermissionsFromResponse=e.extractPermissionsFromResponse;exports.fixNameIdNulls=e.fixNameIdNulls;exports.formatDate=e.formatDate;exports.formatDateTime=e.formatDateTime;exports.formatFileSize=e.formatFileSize;exports.getDateString=e.getDateString;exports.getDaysDifference=e.getDaysDifference;exports.getFirstDayOfMonth=e.getFirstDayOfMonth;exports.getFirstDayOfOffsetMonth=e.getFirstDayOfOffsetMonth;exports.getFirstDayOfYear=e.getFirstDayOfYear;exports.getLastDayOfMonth=e.getLastDayOfMonth;exports.getLastDayOfOffsetMonth=e.getLastDayOfOffsetMonth;exports.getLastDayOfYear=e.getLastDayOfYear;exports.hasOnlyNullValues=e.hasOnlyNullValues;exports.hookFormSetServerErrors=e.hookFormSetServerErrors;exports.isISODate=e.isISODate;exports.isPrimitive=e.isPrimitive;exports.isValidDate=e.isValidDate;exports.joinStrings=e.joinStrings;exports.msToStartOfNextDay=e.msToStartOfNextDay;exports.replaceNullValuesOnlyObjectsWithNulls=e.replaceNullValuesOnlyObjectsWithNulls;exports.saveFile=e.saveFile;exports.saveFileFromResponse=e.saveFileFromResponse;exports.shortenText=e.shortenText;exports.stringContains=e.stringContains;exports.stringSearchWithin=e.stringSearchWithin;exports.stringStartsWith=e.stringStartsWith;exports.trimIsoDate=e.trimIsoDate;exports.truncateText=e.truncateText;exports.urlfyArray=e.urlfyArray;exports.limitNumber=f.limitNumber;exports.CommonLuminusIconsArray=x;exports.adjustBrightness=S;exports.dateValueFormat=d;exports.hookFormSetNull=l;exports.hookFormSetNulls=p;exports.numFormat=h;exports.valueTooltip=g;exports.vclToHex=D;
|
package/dist/utils.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as i, aA as
|
|
2
|
-
import {
|
|
1
|
+
import { j as i, aA as m, X as g } from "./main.es-DMxbIKdM.js";
|
|
2
|
+
import { cb as V, c9 as w, ca as L, c8 as M, c7 as k, bS as E, bT as P, bd as B, b_ as W, bP as A, c1 as G, bi as U, c6 as Y, cd as z, bZ as X, bU as Z, b6 as $, bW as H, b7 as Q, bV as _, bX as q, bY as J, c2 as K, bt as tt, bQ as et, c0 as st, bR as rt, ce as at, bI as ot, c3 as it, b$ as nt, bc as lt, cg as ct, c4 as ft, af as mt, c5 as gt, b5 as ut, cc as bt, cf as dt } from "./main.es-DMxbIKdM.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@azure/msal-browser";
|
|
5
5
|
import "@azure/msal-react";
|
|
@@ -8,7 +8,7 @@ import "react-dom";
|
|
|
8
8
|
import "react-hook-form";
|
|
9
9
|
import "react-flexmonster";
|
|
10
10
|
import { l as pt } from "./numberUtils-Bwf8nio8.js";
|
|
11
|
-
const F = ({ cell: { value: t } }) => /* @__PURE__ */ i.jsx(
|
|
11
|
+
const F = ({ cell: { value: t } }) => /* @__PURE__ */ i.jsx(m, { text: t, placement: "bottom", children: /* @__PURE__ */ i.jsx("div", { className: "w-100 text-truncate", children: t }) }), O = ({ cell: { value: t } }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: t == null ? void 0 : t.toLocaleString("cs-CZ") }), N = ({ cell: { value: t } }) => {
|
|
12
12
|
const s = g(new Date(t), "dd.MM.yyyy");
|
|
13
13
|
return /* @__PURE__ */ i.jsx(i.Fragment, { children: t ? s : "" });
|
|
14
14
|
}, j = (t, s) => {
|
|
@@ -16,23 +16,23 @@ const F = ({ cell: { value: t } }) => /* @__PURE__ */ i.jsx(f, { text: t, placem
|
|
|
16
16
|
t[0] === "#" && (n = t.slice(1), o = !0);
|
|
17
17
|
let e = parseInt(n.substring(0, 2), 16), r = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16);
|
|
18
18
|
e += s, r += s, a += s, e > 255 ? e = 255 : e < 0 && (e = 0), r > 255 ? r = 255 : r < 0 && (r = 0), a > 255 ? a = 255 : a < 0 && (a = 0);
|
|
19
|
-
const l = e.toString(16).length === 1 ? "0" + e.toString(16) : e.toString(16), c = r.toString(16).length === 1 ? "0" + r.toString(16) : r.toString(16),
|
|
20
|
-
return (o ? "#" : "") + l + c +
|
|
19
|
+
const l = e.toString(16).length === 1 ? "0" + e.toString(16) : e.toString(16), c = r.toString(16).length === 1 ? "0" + r.toString(16) : r.toString(16), f = a.toString(16).length === 1 ? "0" + a.toString(16) : a.toString(16);
|
|
20
|
+
return (o ? "#" : "") + l + c + f;
|
|
21
21
|
}, v = (t) => {
|
|
22
22
|
const s = t.slice(3), o = [];
|
|
23
23
|
for (let e = 0; e < s.length; e += 2)
|
|
24
24
|
o.push(s.slice(e, e + 2));
|
|
25
25
|
return `#${o.reverse().join("")}`;
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function u(t, s) {
|
|
28
28
|
t.setValue(s, null);
|
|
29
29
|
}
|
|
30
30
|
function T(t, s) {
|
|
31
31
|
s.forEach((o) => {
|
|
32
|
-
|
|
32
|
+
u(t, o);
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const I = [
|
|
36
36
|
"edit",
|
|
37
37
|
"delete",
|
|
38
38
|
"info",
|
|
@@ -56,14 +56,14 @@ const R = [
|
|
|
56
56
|
"link"
|
|
57
57
|
];
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
I as CommonLuminusIconsArray,
|
|
60
60
|
j as adjustBrightness,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
V as atobUtf8,
|
|
62
|
+
w as buildEmployeeNameString,
|
|
63
|
+
L as buildOrgUnitString,
|
|
64
|
+
M as buildVehicleNameString,
|
|
65
|
+
k as capitalizeFirstLetter,
|
|
66
|
+
E as compareDate,
|
|
67
67
|
P as compareDateTime,
|
|
68
68
|
N as dateValueFormat,
|
|
69
69
|
B as extractErrorsFromResponse,
|
|
@@ -82,7 +82,7 @@ export {
|
|
|
82
82
|
q as getLastDayOfOffsetMonth,
|
|
83
83
|
J as getLastDayOfYear,
|
|
84
84
|
K as hasOnlyNullValues,
|
|
85
|
-
|
|
85
|
+
u as hookFormSetNull,
|
|
86
86
|
T as hookFormSetNulls,
|
|
87
87
|
tt as hookFormSetServerErrors,
|
|
88
88
|
et as isISODate,
|
|
@@ -96,12 +96,12 @@ export {
|
|
|
96
96
|
nt as saveFile,
|
|
97
97
|
lt as saveFileFromResponse,
|
|
98
98
|
ct as shortenText,
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
ft as stringContains,
|
|
100
|
+
mt as stringSearchWithin,
|
|
101
101
|
gt as stringStartsWith,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
ut as trimIsoDate,
|
|
103
|
+
bt as truncateText,
|
|
104
|
+
dt as urlfyArray,
|
|
105
105
|
F as valueTooltip,
|
|
106
106
|
v as vclToHex
|
|
107
107
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./nivo-bar.es-CLgftYVK.cjs"),i="_loading_obchl_1",r="_spinner-grow_obchl_10",l="_second_obchl_14",t="_third_obchl_17",a="_loadingBlock_obchl_21",c="_sizeLine_obchl_29",d="_sizeFill_obchl_36",o={loading:i,"spinner-grow":"_spinner-grow_obchl_10",spinnerGrow:r,second:l,third:t,loadingBlock:a,sizeLine:c,sizeFill:d},_=()=>s.jsxRuntimeExports.jsxs("div",{className:s.classNames("luminus-loading",o.loading),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",o.spinnerGrow,"text-primary"),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",o.spinnerGrow,"text-primary",o.second),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",o.spinnerGrow,"text-primary",o.third),role:"status"})]}),m=({children:n,disabled:e})=>s.jsxRuntimeExports.jsx(s.FormDisabledContext.Provider,{value:e,children:n});exports.FormDisabledProvider=m;exports.Loading=_;exports.classes=o;
|