react-luminus-components 1.3.238 → 1.3.239
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 +34 -34
- package/dist/{Loading-Cc0-NwgK.cjs → Loading-D4SCMh6h.cjs} +1 -1
- package/dist/{Loading-CptpWbFC.js → Loading-_7loOvtU.js} +1 -1
- package/dist/components/common/LineChart/LineChart.d.ts +23 -0
- package/dist/components/common/LineChart/comps/LineChartTooltip/LineChartTooltip.d.ts +12 -0
- package/dist/components/common/LineChart/comps/index.d.ts +1 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +17 -17
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +6 -6
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +26 -26
- package/dist/main.d.ts +1 -0
- package/dist/main.es.js +2211 -2107
- package/dist/models/types/common/KeysExtendingType.d.ts +4 -0
- package/dist/models/types/common/OnlyAttrExtending.d.ts +6 -0
- package/dist/models/types/lineChartTypes/LineChartValidKey.d.ts +2 -0
- package/dist/models/types/lineChartTypes/LineChartValidValue.d.ts +2 -0
- package/dist/{nivo-bar.es-CwPk6jCC.js → nivo-bar.es-BeALe7Gh.js} +10399 -9202
- package/dist/nivo-bar.es-BebGU-zz.cjs +279 -0
- package/dist/{useGetApiData-DURYIaAm.cjs → useGetApiData-COPBCf8x.cjs} +1 -1
- package/dist/{useGetApiData-BIcmQjVP.js → useGetApiData-DrkjC5UR.js} +1 -1
- package/dist/{usePermissions-CgIi1N68.js → usePermissions-Blbd53ol.js} +1 -1
- package/dist/{usePermissions-BQ-3epgD.cjs → usePermissions-Daf3EkaR.cjs} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +8 -8
- package/package.json +2 -1
- package/dist/nivo-bar.es-CE89xOvu.cjs +0 -279
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./nivo-bar.es-
|
|
1
|
+
"use strict";const i=require("./nivo-bar.es-BebGU-zz.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 t={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},w=(a,{loadOnInit:c=t.loadOnInit,enabled:f=t.enabled,silent:n=t.silent,nullStateBeforeLoad:d=t.nullStateBeforeLoad,nullStateOnFail:q=t.nullStateOnFail,customApiUrl:h,customBearerToken:p,dataTransformer:u}=t)=>{const D=i.useAxios({silent:n,customToken:p,differentBaseUrl:h}),{startLoading:A,stopLoading:b}=e.useContext(i.LoadingContext),x=e.useRef(0),{isAuthenticated:g}=i.useAuth(),[L,r]=e.useState(null),l=e.useCallback(async(o,C)=>{if(g()&&f!==!1){!n&&A(`loadData-${a}-${C}`),d&&r(null);try{const s=await D.get(a,{signal:o}),$=u?u(s.data):s.data;r($)}catch(s){throw q&&r(null),s}finally{!n&&b(`loadData-${a}-${C}`)}}},[g,f,n,A,a,d,D,u,q,b]);return e.useEffect(()=>{if(c===!1)return;const o=new AbortController;return l(o.signal,++x.current),()=>{o.abort()}},[l,c]),{data:L,setData:r,reloadData:l}};exports.useGetApiData=w;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ai as L, ak as $, a_ as k } from "./nivo-bar.es-
|
|
1
|
+
import { ai as L, ak as $, a_ as k } from "./nivo-bar.es-BeALe7Gh.js";
|
|
2
2
|
import { useContext as w, useRef as y, useState as O, useCallback as S, useEffect as B } from "react";
|
|
3
3
|
import "react-router-dom";
|
|
4
4
|
import "react-dom";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("./nivo-bar.es-
|
|
1
|
+
"use strict";const u=require("./nivo-bar.es-BebGU-zz.cjs"),n=require("react");require("react-router-dom");require("@azure/msal-browser");require("@azure/msal-react");require("react-dom");require("react-hook-form");require("react-flexmonster");const c=()=>{const{user:e}=n.useContext(u.UserContext);return{checkUserHasPermissions:n.useCallback((s,t="all")=>s.length===0?!0:t==="any"?s.some(i=>{var r;return(r=e==null?void 0:e.permissions)==null?void 0:r.includes(i)}):s.every(i=>{var r;return(r=e==null?void 0:e.permissions)==null?void 0:r.includes(i)}),[e])}};exports.usePermissions=c;
|
package/dist/utils.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./nivo-bar.es-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./nivo-bar.es-BebGU-zz.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),o=parseInt(a.substring(2,4),16),s=parseInt(a.substring(4,6),16);r+=i,o+=i,s+=i,r>255?r=255:r<0&&(r=0),o>255?o=255:o<0&&(o=0),s>255?s=255:s<0&&(s=0);const u=r.toString(16).length===1?"0"+r.toString(16):r.toString(16),m=o.toString(16).length===1?"0"+o.toString(16):o.toString(16),c=s.toString(16).length===1?"0"+s.toString(16):s.toString(16);return(n?"#":"")+u+m+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"];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, az as f, X as b } from "./nivo-bar.es-
|
|
2
|
-
import {
|
|
1
|
+
import { j as i, az as f, X as b } from "./nivo-bar.es-BeALe7Gh.js";
|
|
2
|
+
import { c1 as L, b$ as M, c0 as V, b_ as w, bZ as E, bI as P, bJ as k, b9 as B, bQ as G, bF as W, bT as z, be as U, bY as Y, c3 as A, bP as H, bK as X, b2 as Z, bM as $, b3 as J, bL as K, bN as Q, bO as _, bU as q, bE as tt, bG as et, bS as st, bH as rt, c4 as at, bx as ot, bV as it, bR as nt, b8 as lt, c6 as ct, bW as mt, ae as ft, bX as bt, b1 as gt, c2 as ut, c5 as ht } from "./nivo-bar.es-BeALe7Gh.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
|
|
11
|
+
const D = ({ cell: { value: t } }) => /* @__PURE__ */ i.jsx(f, { 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 = b(new Date(t), "dd.MM.yyyy");
|
|
13
13
|
return /* @__PURE__ */ i.jsx(i.Fragment, { children: t ? s : "" });
|
|
14
14
|
}, j = (t, s) => {
|
|
@@ -57,10 +57,10 @@ const I = [
|
|
|
57
57
|
export {
|
|
58
58
|
I as CommonLuminusIconsArray,
|
|
59
59
|
j as adjustBrightness,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
L as atobUtf8,
|
|
61
|
+
M as buildEmployeeNameString,
|
|
62
|
+
V as buildOrgUnitString,
|
|
63
|
+
w as buildVehicleNameString,
|
|
64
64
|
E as capitalizeFirstLetter,
|
|
65
65
|
P as compareDate,
|
|
66
66
|
k as compareDateTime,
|
|
@@ -101,6 +101,6 @@ export {
|
|
|
101
101
|
gt as trimIsoDate,
|
|
102
102
|
ut as truncateText,
|
|
103
103
|
ht as urlfyArray,
|
|
104
|
-
|
|
104
|
+
D as valueTooltip,
|
|
105
105
|
v as vclToHex
|
|
106
106
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-luminus-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.239",
|
|
4
4
|
"description": "Library of React Components reusable in Luminus projects (Fleetman, CAFM)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@nivo/bar": "^0.87.0",
|
|
74
74
|
"@nivo/core": "^0.87.0",
|
|
75
|
+
"@nivo/line": "^0.87.0",
|
|
75
76
|
"@nivo/pie": "^0.87.0",
|
|
76
77
|
"classnames": "^2.5.1",
|
|
77
78
|
"date-fns": "^3.6.0",
|