@artibet/react-mui-components 2.6.3 → 2.6.4
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/utils/index.js +1 -1
package/package.json
CHANGED
package/utils/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import{parseISO as n,format as
|
1
|
+
import{parseISO as n,format as t,getMonth as r,formatISO as e}from"date-fns";import{el as o}from"date-fns/locale";var u=function(n){return n?parseInt(n).toLocaleString():0},i=function(n){return new Intl.NumberFormat("el-GR",{style:"currency",currency:"EUR"}).format(n)},c=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return new Intl.NumberFormat("el-GR",{minimumFractionDigits:t,maximumFractionDigits:t}).format(n)},a=/^$|^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,l=function(n){return 0===n?"ΟΧΙ":1===n?"ΝΑΙ":null},y=function(t){if(!t)return null;var r=n(t);return"Invalid Date"==r?null:r},f=function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/";return r?t(n(r),"dd".concat(e,"MM").concat(e,"yyyy")):""},m=function(r){return t(n(r,{locale:o}),"HH:mm")},d=function(r){return r?t(n(r,{locale:o}),"dd/MM/yyyy, HH:mm"):""},v=function(n){return t(n,"dd/MM/yyyy")},M=function(n){return t(n,"yyyy-MM-dd",{locale:o})},s=function(n){return n?t(n,"yyyy-MM-dd HH:mm",{locale:o}):null},g=function(n){var e=r(n);return t(n,"eeee, d ".concat(genikiOfMonth[e]," yyyy"),{locale:o})},p=function(n){return n?e(n):""},H=function(n,t){var r;return function(){for(var e=arguments.length,o=new Array(e),u=0;u<e;u++)o[u]=arguments[u];r&&clearTimeout(r),r=setTimeout((function(){n.apply(void 0,o)}),t)}};export{a as emailRegEx,i as formatCurrency,f as formatDate,d as formatDateTime,c as formatFloat,v as formatFnsDate,M as formatFnsDbDate,s as formatFnsDbDatetime,g as formatFnsFullDate,u as formatInteger,m as formatTime,H as myDebounce,y as parseDate,p as toISOString,l as yesno};
|