react-luminus-components 1.3.176 → 1.3.178
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const CommonLuminusIconsArray: readonly ["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"];
|
|
1
|
+
declare const CommonLuminusIconsArray: readonly ["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"];
|
|
2
2
|
export default CommonLuminusIconsArray;
|
package/dist/utils.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./nivo-bar.es-BJen_dSO.cjs");require("react");require("@azure/msal-browser");require("@azure/msal-react");require("react-router-dom");require("react-hook-form");require("react-flexmonster");const l=require("./searchUtils-DhTauQFe.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),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./nivo-bar.es-BJen_dSO.cjs");require("react");require("@azure/msal-browser");require("@azure/msal-react");require("react-router-dom");require("react-hook-form");require("react-flexmonster");const l=require("./searchUtils-DhTauQFe.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),f=o.toString(16).length===1?"0"+o.toString(16):o.toString(16);return(n?"#":"")+m+u+f},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 c(t,i){t.setValue(i,null)}function p(t,i){i.forEach(n=>{c(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.trimIsoDate=e.trimIsoDate;exports.truncateText=e.truncateText;exports.urlfyArray=e.urlfyArray;exports.limitNumber=l.limitNumber;exports.stringContains=l.stringContains;exports.stringSearchWithin=l.stringSearchWithin;exports.stringStartsWith=l.stringStartsWith;exports.CommonLuminusIconsArray=x;exports.adjustBrightness=S;exports.dateValueFormat=d;exports.hookFormSetNull=c;exports.hookFormSetNulls=p;exports.numFormat=h;exports.valueTooltip=g;exports.vclToHex=D;
|
package/dist/utils.es.js
CHANGED
|
@@ -17,7 +17,7 @@ const D = ({ cell: { value: t } }) => /* @__PURE__ */ i.jsx(b, { text: t, placem
|
|
|
17
17
|
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);
|
|
18
18
|
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), m = a.toString(16).length === 1 ? "0" + a.toString(16) : a.toString(16);
|
|
19
19
|
return (o ? "#" : "") + l + c + m;
|
|
20
|
-
},
|
|
20
|
+
}, v = (t) => {
|
|
21
21
|
const s = t.slice(3), o = [];
|
|
22
22
|
for (let e = 0; e < s.length; e += 2)
|
|
23
23
|
o.push(s.slice(e, e + 2));
|
|
@@ -26,7 +26,7 @@ const D = ({ cell: { value: t } }) => /* @__PURE__ */ i.jsx(b, { text: t, placem
|
|
|
26
26
|
function g(t, s) {
|
|
27
27
|
t.setValue(s, null);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function j(t, s) {
|
|
30
30
|
s.forEach((o) => {
|
|
31
31
|
g(t, o);
|
|
32
32
|
});
|
|
@@ -49,7 +49,9 @@ const T = [
|
|
|
49
49
|
"folder",
|
|
50
50
|
"folder-filled",
|
|
51
51
|
"file-download",
|
|
52
|
-
"file-upload"
|
|
52
|
+
"file-upload",
|
|
53
|
+
"star-outline",
|
|
54
|
+
"save"
|
|
53
55
|
];
|
|
54
56
|
export {
|
|
55
57
|
T as CommonLuminusIconsArray,
|
|
@@ -79,7 +81,7 @@ export {
|
|
|
79
81
|
X as getLastDayOfYear,
|
|
80
82
|
_ as hasOnlyNullValues,
|
|
81
83
|
g as hookFormSetNull,
|
|
82
|
-
|
|
84
|
+
j as hookFormSetNulls,
|
|
83
85
|
q as hookFormSetServerErrors,
|
|
84
86
|
tt as isISODate,
|
|
85
87
|
et as isPrimitive,
|
|
@@ -99,5 +101,5 @@ export {
|
|
|
99
101
|
mt as truncateText,
|
|
100
102
|
bt as urlfyArray,
|
|
101
103
|
D as valueTooltip,
|
|
102
|
-
|
|
104
|
+
v as vclToHex
|
|
103
105
|
};
|