react-luminus-components 1.4.23 → 1.4.26
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-qIjGohfH.js → FormDisabledProvider-BqRrJ0Kq.js} +1 -1
- package/dist/{FormDisabledProvider-B_Lj30OC.cjs → FormDisabledProvider-jEUon85O.cjs} +1 -1
- package/dist/components/Buttons/PrimaryButton/PrimaryButton.d.ts +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 +9 -9
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +10 -10
- package/dist/main.cjs.js +34 -34
- package/dist/main.es.js +1793 -1780
- package/dist/{nivo-bar.es-CponRqtW.js → nivo-bar.es-BdEuFoWH.js} +198 -194
- package/dist/{nivo-bar.es-DKoejdlT.cjs → nivo-bar.es-DCweuhLT.cjs} +46 -46
- package/dist/{useGetApiData-CsUns8DH.cjs → useGetApiData-8CkqvCJ7.cjs} +1 -1
- package/dist/{useGetApiData-CRNZNZnt.js → useGetApiData-EWN8nbww.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +13 -13
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./nivo-bar.es-
|
|
1
|
+
"use strict";const i=require("./nivo-bar.es-DCweuhLT.cjs"),t=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 n={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},v=(s,{loadOnInit:c=n.loadOnInit,enabled:d=n.enabled,silent:o=n.silent,nullStateBeforeLoad:f=n.nullStateBeforeLoad,nullStateOnFail:g=n.nullStateOnFail,customApiUrl:y,customBearerToken:R,dataTransformer:u}=n)=>{const C=i.useAxios({silent:o,customToken:R,differentBaseUrl:y}),[S,D]=t.useState(!1),{startLoading:L,stopLoading:b}=t.useContext(i.LoadingContext),$=t.useRef(0),{isAuthenticated:q}=i.useAuth(),k=t.useCallback(e=>{L(e),D(()=>!0)},[L]),p=t.useCallback(e=>{b(e),D(()=>!1)},[b]),[w,l]=t.useState(null),a=t.useCallback(async(e,x)=>{if(!q()||d===!1)return null;!o&&k(`loadData-${s}-${x}`),f&&l(null);let A;try{const r=await C.get(s,{signal:e}),h=u?u(r.data):r.data;l(h),A=h}catch(r){throw g&&l(null),r}finally{!o&&p(`loadData-${s}-${x}`)}return A},[q,d,o,k,s,f,C,u,g,p]),B=t.useCallback(async()=>{a()},[a]),O=t.useCallback(async()=>a(),[a]);return t.useEffect(()=>{if(c===!1)return;const e=new AbortController;return a(e.signal,++$.current),()=>{e.abort()}},[a,c]),{data:w,setData:l,reloadData:B,isLoading:S,reloadDataWithReturn:O}};exports.useGetApiData=v;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { am as I, ao as v, b4 as E } from "./nivo-bar.es-
|
|
1
|
+
import { am as I, ao as v, b4 as E } from "./nivo-bar.es-BdEuFoWH.js";
|
|
2
2
|
import { useState as A, useContext as F, useRef as G, useCallback as e, useEffect as U } 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-DCweuhLT.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 l=require("./apiPathUtils-CkTRKCPh.cjs"),f=({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")}),p=({cell:{value:t}})=>{const i=e.format(new Date(t),"dd.MM.yyyy");return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:t?i:""})},d=(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 c=r.toString(16).length===1?"0"+r.toString(16):r.toString(16),u=o.toString(16).length===1?"0"+o.toString(16):o.toString(16),g=s.toString(16).length===1?"0"+s.toString(16):s.toString(16);return(n?"#":"")+c+u+g},S=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 m(t,i){t.setValue(i,null)}function F(t,i){i.forEach(n=>{m(t,n)})}const D=["edit","delete","info","warning","check","check-simple","add","cancel","cancel-simple","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","pending","resizer-horizontal","qr-code","phone","mail"];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.openFileFromResponse=e.openFileFromResponse;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.generateApiPath=l.generateApiPath;exports.limitNumber=l.limitNumber;exports.CommonLuminusIconsArray=D;exports.adjustBrightness=d;exports.dateValueFormat=p;exports.hookFormSetNull=m;exports.hookFormSetNulls=F;exports.numFormat=h;exports.valueTooltip=f;exports.vclToHex=S;
|
package/dist/utils.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as i, aC as f, V as g } from "./nivo-bar.es-
|
|
2
|
-
import {
|
|
1
|
+
import { j as i, aC as f, V as g } from "./nivo-bar.es-BdEuFoWH.js";
|
|
2
|
+
import { cb as I, c9 as k, ca as w, c8 as L, c7 as M, bR as P, bS as E, bg as z, bZ as B, bO as W, c1 as A, bl as G, c6 as U, cd as Y, bY as H, bT as Z, b8 as $, bV as q, b9 as Q, bU as X, bW as _, bX as J, c2 as K, bu as tt, bP as et, c0 as st, bQ as rt, ce as at, bH as ot, b$ as it, c3 as nt, b_ as lt, bf as ct, cg as mt, c4 as ft, ah as gt, c5 as ht, b7 as ut, cc as pt, cf as bt } from "./nivo-bar.es-BdEuFoWH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@azure/msal-browser";
|
|
5
5
|
import "@azure/msal-react";
|
|
@@ -65,8 +65,8 @@ const T = [
|
|
|
65
65
|
export {
|
|
66
66
|
T as CommonLuminusIconsArray,
|
|
67
67
|
j as adjustBrightness,
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
I as atobUtf8,
|
|
69
|
+
k as buildEmployeeNameString,
|
|
70
70
|
w as buildOrgUnitString,
|
|
71
71
|
L as buildVehicleNameString,
|
|
72
72
|
M as capitalizeFirstLetter,
|
|
@@ -75,16 +75,16 @@ export {
|
|
|
75
75
|
N as dateValueFormat,
|
|
76
76
|
z as extractErrorsFromResponse,
|
|
77
77
|
B as extractFilename,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
W as extractPermissionsFromResponse,
|
|
79
|
+
A as fixNameIdNulls,
|
|
80
|
+
G as formatDate,
|
|
81
81
|
U as formatDateTime,
|
|
82
82
|
Y as formatFileSize,
|
|
83
83
|
St as generateApiPath,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
H as getDateString,
|
|
85
|
+
Z as getDaysDifference,
|
|
86
|
+
$ as getFirstDayOfMonth,
|
|
87
|
+
q as getFirstDayOfOffsetMonth,
|
|
88
88
|
Q as getFirstDayOfYear,
|
|
89
89
|
X as getLastDayOfMonth,
|
|
90
90
|
_ as getLastDayOfOffsetMonth,
|
|
@@ -108,8 +108,8 @@ export {
|
|
|
108
108
|
ft as stringContains,
|
|
109
109
|
gt as stringSearchWithin,
|
|
110
110
|
ht as stringStartsWith,
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
ut as trimIsoDate,
|
|
112
|
+
pt as truncateText,
|
|
113
113
|
bt as urlfyArray,
|
|
114
114
|
D as valueTooltip,
|
|
115
115
|
v as vclToHex
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-luminus-components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.26",
|
|
4
4
|
"description": "Library of React Components reusable in Luminus projects (Fleetman, CAFM)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"@hookform/resolvers": "^3.3.4",
|
|
58
58
|
"axios": "^1.6.8",
|
|
59
59
|
"bootstrap": "^5.3.5",
|
|
60
|
-
"flexmonster": "
|
|
60
|
+
"flexmonster": "2.9.95",
|
|
61
61
|
"react": ">=18",
|
|
62
62
|
"react-bnf-table": "^1.3.66",
|
|
63
63
|
"react-bootstrap": ">=2",
|
|
64
64
|
"react-dom": ">=18",
|
|
65
|
-
"react-flexmonster": "
|
|
65
|
+
"react-flexmonster": "2.9.95",
|
|
66
66
|
"react-hook-form": ">=7",
|
|
67
67
|
"react-icons": "^5.0.1",
|
|
68
68
|
"react-qrcode-logo": "^3.0.0",
|