react-luminus-components 1.4.48 → 1.4.50

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.
Files changed (39) hide show
  1. package/dist/.vite/manifest.json +26 -26
  2. package/dist/{FormDisabledProvider-DFgDxFs5.js → FormDisabledProvider-CWPtd32k.js} +1 -1
  3. package/dist/{FormDisabledProvider-DIzFh_cu.cjs → FormDisabledProvider-DrZHlSO4.cjs} +1 -1
  4. package/dist/components/{common → Search}/AppSearch/AppSearch.d.ts +3 -1
  5. package/dist/components/Search/AppSearch/comps/AutocompleteWindow/comps/AutocompleteWindowItem/AutocompleteWindowItem.d.ts +9 -0
  6. package/dist/components/Search/AppSearch/comps/AutocompleteWindow/comps/index.d.ts +1 -0
  7. package/dist/components/Search/SearchPage/SearchPage.d.ts +11 -0
  8. package/dist/components/Search/SearchPage/comps/SearchPageItem/SearchPageItem.d.ts +8 -0
  9. package/dist/components/Search/SearchPage/comps/index.d.ts +1 -0
  10. package/dist/components/Search/common/hooks/useSearchItems.d.ts +7 -0
  11. package/dist/components/Search/common/utils/appSearchUtils.d.ts +5 -0
  12. package/dist/components/Search/index.d.ts +2 -0
  13. package/dist/components/common/ImgBlob/ImgBlob.d.ts +4 -0
  14. package/dist/components/common/index.d.ts +1 -1
  15. package/dist/contexts.cjs.js +1 -1
  16. package/dist/contexts.es.js +5 -5
  17. package/dist/hooks.cjs.js +1 -1
  18. package/dist/hooks.es.js +14 -14
  19. package/dist/layout.cjs.js +1 -1
  20. package/dist/layout.es.js +8 -8
  21. package/dist/main.cjs.js +42 -42
  22. package/dist/main.d.ts +2 -2
  23. package/dist/main.es.js +3000 -2903
  24. package/dist/models/texts/AppSearchTexts.d.ts +1 -0
  25. package/dist/models/types/SearchResultModel.d.ts +4 -0
  26. package/dist/models/types/SearchType.d.ts +10 -0
  27. package/dist/models/ui/routes/RouteInfo.d.ts +4 -0
  28. package/dist/{nivo-bar.es-DRPYhamY.js → nivo-bar.es-DS751pis.js} +9 -9
  29. package/dist/{nivo-bar.es-xNXQl_N3.cjs → nivo-bar.es-Do8vRure.cjs} +1 -1
  30. package/dist/style.css +1 -1
  31. package/dist/{useLocalStorageState-D5gRtVLq.cjs → useLocalStorageState-BjI7PIpr.cjs} +1 -1
  32. package/dist/{useLocalStorageState-C3TjznAr.js → useLocalStorageState-DJzWOFhI.js} +1 -1
  33. package/dist/utils.cjs.js +1 -1
  34. package/dist/utils.es.js +2 -2
  35. package/package.json +1 -1
  36. /package/dist/components/{common → Search}/AppSearch/comps/AutocompleteWindow/AutocompleteWindow.d.ts +0 -0
  37. /package/dist/components/{common → Search}/AppSearch/comps/TypeSelector/TypeSelector.d.ts +0 -0
  38. /package/dist/components/{common → Search}/AppSearch/comps/index.d.ts +0 -0
  39. /package/dist/components/{common → Search}/AppSearch/hooks/useSearchItems.d.ts +0 -0
package/dist/utils.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./nivo-bar.es-xNXQl_N3.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 r=e.format(new Date(t),"dd.MM.yyyy");return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:t?r:""})},d=(t,r)=>{let i=!1,a=t;t[0]==="#"&&(a=t.slice(1),i=!0);let s=parseInt(a.substring(0,2),16),o=parseInt(a.substring(2,4),16),n=parseInt(a.substring(4,6),16);s+=r,o+=r,n+=r,s>255?s=255:s<0&&(s=0),o>255?o=255:o<0&&(o=0),n>255?n=255:n<0&&(n=0);const u=s.toString(16).length===1?"0"+s.toString(16):s.toString(16),m=o.toString(16).length===1?"0"+o.toString(16):o.toString(16),g=n.toString(16).length===1?"0"+n.toString(16):n.toString(16);return(i?"#":"")+u+m+g},y=t=>{const r=t.slice(3),i=[];for(let s=0;s<r.length;s+=2)i.push(r.slice(s,s+2));return`#${i.reverse().join("")}`};function c(t,r){t.setValue(r,null)}function S(t,r){r.forEach(i=>{c(t,i)})}const F=t=>typeof t.directoryName=="string"&&typeof t.directoryPath=="string"&&typeof t.directoryTranslationKey=="string"&&Array.isArray(t.files),D=async t=>{let r={status:"pending"};try{r={status:"success",data:(await t).data}}catch(i){r={status:"error",error:i}}return r},x=["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","mail-envelope","dashboard","user","role","close","search","plus","minus"];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=x;exports.adjustBrightness=d;exports.dateValueFormat=p;exports.hookFormSetNull=c;exports.hookFormSetNulls=S;exports.isFileStructureDirectory=F;exports.numFormat=h;exports.responsePromiseWrapper=D;exports.valueTooltip=f;exports.vclToHex=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./nivo-bar.es-Do8vRure.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 r=e.format(new Date(t),"dd.MM.yyyy");return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:t?r:""})},d=(t,r)=>{let i=!1,a=t;t[0]==="#"&&(a=t.slice(1),i=!0);let s=parseInt(a.substring(0,2),16),o=parseInt(a.substring(2,4),16),n=parseInt(a.substring(4,6),16);s+=r,o+=r,n+=r,s>255?s=255:s<0&&(s=0),o>255?o=255:o<0&&(o=0),n>255?n=255:n<0&&(n=0);const u=s.toString(16).length===1?"0"+s.toString(16):s.toString(16),m=o.toString(16).length===1?"0"+o.toString(16):o.toString(16),g=n.toString(16).length===1?"0"+n.toString(16):n.toString(16);return(i?"#":"")+u+m+g},y=t=>{const r=t.slice(3),i=[];for(let s=0;s<r.length;s+=2)i.push(r.slice(s,s+2));return`#${i.reverse().join("")}`};function c(t,r){t.setValue(r,null)}function S(t,r){r.forEach(i=>{c(t,i)})}const F=t=>typeof t.directoryName=="string"&&typeof t.directoryPath=="string"&&typeof t.directoryTranslationKey=="string"&&Array.isArray(t.files),D=async t=>{let r={status:"pending"};try{r={status:"success",data:(await t).data}}catch(i){r={status:"error",error:i}}return r},x=["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","mail-envelope","dashboard","user","role","close","search","plus","minus"];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=x;exports.adjustBrightness=d;exports.dateValueFormat=p;exports.hookFormSetNull=c;exports.hookFormSetNulls=S;exports.isFileStructureDirectory=F;exports.numFormat=h;exports.responsePromiseWrapper=D;exports.valueTooltip=f;exports.vclToHex=y;
package/dist/utils.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { j as i, aA as f, U as u } from "./nivo-bar.es-DRPYhamY.js";
2
- import { ca as V, c8 as k, c9 as A, c7 as L, c6 as M, bQ as E, bR as W, bg as z, bY as B, bN as G, c0 as U, bl as Y, c5 as Z, cc as $, bX as q, bS as H, b9 as K, bU as Q, ba as X, bT as _, bV as J, bW as ee, c1 as te, bu as se, bO as re, b$ as ae, bP as oe, cd as ie, bG as ne, b_ as le, c2 as ce, bZ as me, bf as fe, cf as ue, c3 as ge, af as pe, c4 as de, b8 as he, cb as be, ce as ye } from "./nivo-bar.es-DRPYhamY.js";
1
+ import { j as i, aA as f, U as u } from "./nivo-bar.es-DS751pis.js";
2
+ import { ca as V, c8 as k, c9 as A, c7 as L, c6 as M, bQ as E, bR as W, bg as z, bY as B, bN as G, c0 as U, bl as Y, c5 as Z, cc as $, bX as q, bS as H, b9 as K, bU as Q, ba as X, bT as _, bV as J, bW as ee, c1 as te, bu as se, bO as re, b$ as ae, bP as oe, cd as ie, bG as ne, b_ as le, c2 as ce, bZ as me, bf as fe, cf as ue, c3 as ge, af as pe, c4 as de, b8 as he, cb as be, ce as ye } from "./nivo-bar.es-DS751pis.js";
3
3
  import "react";
4
4
  import "@azure/msal-browser";
5
5
  import "@azure/msal-react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-luminus-components",
3
- "version": "1.4.48",
3
+ "version": "1.4.50",
4
4
  "description": "Library of React Components reusable in Luminus projects (Fleetman, CAFM)",
5
5
  "type": "module",
6
6
  "repository": {