react-luminus-components 1.3.256 → 1.3.258
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 +26 -26
- package/dist/{FormDisabledProvider-IZj7rG71.cjs → FormDisabledProvider-BUvXaSMr.cjs} +1 -1
- package/dist/{FormDisabledProvider-bsJ46hjN.js → FormDisabledProvider-DRIpHsZS.js} +1 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +5 -5
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +3 -3
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +2 -2
- package/dist/main.cjs.js +2 -2
- package/dist/main.es.js +8 -5
- package/dist/{nivo-bar.es-B14IMLis.cjs → nivo-bar.es-CLgftYVK.cjs} +1 -1
- package/dist/{nivo-bar.es-DUNbYR2n.js → nivo-bar.es-DkKlmZbu.js} +1 -1
- package/dist/{useGetApiData-CDH4JXLT.cjs → useGetApiData-DCASxaHO.cjs} +1 -1
- package/dist/{useGetApiData-9CmdrsjA.js → useGetApiData-Daz8LBY3.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +2 -2
- package/package.json +1 -1
|
@@ -15972,7 +15972,7 @@ const n2 = (e) => {
|
|
|
15972
15972
|
const a = [], o = [];
|
|
15973
15973
|
let s = null;
|
|
15974
15974
|
const c = (u) => {
|
|
15975
|
-
const { hideOn: d, children: f, cKey: h, to: m, toRoute: p, disabled: g, icon: y, pathParams: x, ...b } = u.props, w = (p == null ? void 0 : p.permissions) != null, _ = (p == null ? void 0 : p.permissions) != null && t(p == null ? void 0 : p.permissions), T = (g ?? !1) || w && !_, C = m ?? p == null ? void 0 : x7(p == null ? void 0 : p.route, x), M = f ?? (p == null ? void 0 : p.name), k = y ?? /* @__PURE__ */ v.jsx(e, { icon: "link" });
|
|
15975
|
+
const { hideOn: d, children: f, cKey: h, to: m, toRoute: p, disabled: g, icon: y, pathParams: x, ...b } = u.props, w = (p == null ? void 0 : p.permissions) != null, _ = (p == null ? void 0 : p.permissions) != null && t(p == null ? void 0 : p.permissions), T = (g ?? !1) || w && !_, C = m ?? p == null ? void 0 : x7(p == null ? void 0 : p.route, x), M = f ?? (p == null ? void 0 : p.name), k = y ?? (p != null ? /* @__PURE__ */ v.jsx(e, { icon: "link" }) : void 0);
|
|
15976
15976
|
if (d === "always" || v7.indexOf(d) >= i)
|
|
15977
15977
|
s && o.length > 0 && o.push(s), s = null, C != null ? o.push(/* @__PURE__ */ v.jsx(Ro, { ...b, as: "link", to: C, disabled: T, icon: k, className: te(T ? "disabled" : void 0, b.className), children: M }, h)) : o.push(/* @__PURE__ */ v.jsx(Ro, { ...b, icon: k, as: void 0, children: M }, h));
|
|
15978
15978
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./nivo-bar.es-
|
|
1
|
+
"use strict";const i=require("./nivo-bar.es-CLgftYVK.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},B=(n,{loadOnInit:c=a.loadOnInit,enabled:d=a.enabled,silent:o=a.silent,nullStateBeforeLoad:f=a.nullStateBeforeLoad,nullStateOnFail:g=a.nullStateOnFail,customApiUrl:h,customBearerToken:k,dataTransformer:l}=a)=>{const L=i.useAxios({silent:o,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,s]=e.useState(null),u=e.useCallback(async(t,A)=>{if(b()&&d!==!1){!o&&p(`loadData-${n}-${A}`),f&&s(null);try{const r=await L.get(n,{signal:t}),y=l?l(r.data):r.data;s(y)}catch(r){throw g&&s(null),r}finally{!o&&x(`loadData-${n}-${A}`)}}},[b,d,o,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:s,reloadData:u,isLoading:S}};exports.useGetApiData=B;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aj as k, al as B, b2 as I } from "./nivo-bar.es-
|
|
1
|
+
import { aj as k, al as B, b2 as I } from "./nivo-bar.es-DkKlmZbu.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("./nivo-bar.es-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./nivo-bar.es-CLgftYVK.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","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 f, X as g } from "./nivo-bar.es-
|
|
2
|
-
import { c7 as L, c5 as M, c6 as V, c4 as w, c3 as E, bO as k, bP as P, bd as B, bW as W, bL as A, bZ as G, bi as U, c2 as Y, c9 as z, bV as X, bQ as Z, b6 as $, bS as H, b7 as Q, bR as _, bT as q, bU as J, b_ as K, bp as tt, bM as et, bY as st, bN as rt, ca as at, bE as ot, b$ as it, bX as nt, bc as lt, cc as ct, c0 as mt, af as ft, c1 as gt, b5 as bt, c8 as ut, cb as ht } from "./nivo-bar.es-
|
|
1
|
+
import { j as i, aA as f, X as g } from "./nivo-bar.es-DkKlmZbu.js";
|
|
2
|
+
import { c7 as L, c5 as M, c6 as V, c4 as w, c3 as E, bO as k, bP as P, bd as B, bW as W, bL as A, bZ as G, bi as U, c2 as Y, c9 as z, bV as X, bQ as Z, b6 as $, bS as H, b7 as Q, bR as _, bT as q, bU as J, b_ as K, bp as tt, bM as et, bY as st, bN as rt, ca as at, bE as ot, b$ as it, bX as nt, bc as lt, cc as ct, c0 as mt, af as ft, c1 as gt, b5 as bt, c8 as ut, cb as ht } from "./nivo-bar.es-DkKlmZbu.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@azure/msal-browser";
|
|
5
5
|
import "@azure/msal-react";
|