@lowentry/mui 1.2.8 → 1.2.10
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/DatePicker/index.js +157 -1
- package/DatePicker/index.js.map +1 -1
- package/Dialog/index.js +27 -1
- package/Dialog/index.js.map +1 -1
- package/InitiallyInvisible/index.js +39 -1
- package/InitiallyInvisible/index.js.map +1 -1
- package/LeMuiUtils-c46ed1cc.js +34 -0
- package/LeMuiUtils-c46ed1cc.js.map +1 -0
- package/LoadingSpinner/index.js +8 -1
- package/LoadingSpinner/index.js.map +1 -1
- package/LoadingSpinner-49031768.js +66 -0
- package/LoadingSpinner-49031768.js.map +1 -0
- package/LoadingSpinnerWidget/index.js +8 -1
- package/LoadingSpinnerWidget/index.js.map +1 -1
- package/MenuButton/index.js +61 -1
- package/MenuButton/index.js.map +1 -1
- package/MuiRoot/index.js +28 -1
- package/MuiRoot/index.js.map +1 -1
- package/NumericTextField/index.js +109 -1
- package/NumericTextField/index.js.map +1 -1
- package/RemovableNumericTextField/index.js +47 -1
- package/RemovableNumericTextField/index.js.map +1 -1
- package/RemovableTextField/index.js +53 -1
- package/RemovableTextField/index.js.map +1 -1
- package/Submittable/index.js +32 -1
- package/Submittable/index.js.map +1 -1
- package/TextField/index.js +32 -1
- package/TextField/index.js.map +1 -1
- package/index.js +26 -1
- package/index.js.map +1 -1
- package/package.json +1 -2
- package/src/components/DatePicker.jsx +1 -1
- package/src/components/DatePicker.less +1 -4
- package/style-inject.es-1f59c1d0.js +29 -0
- package/style-inject.es-1f59c1d0.js.map +1 -0
- package/LeMuiUtils-9aff3a32.js +0 -2
- package/LeMuiUtils-9aff3a32.js.map +0 -1
- package/LoadingSpinner-9881bf40.js +0 -2
- package/LoadingSpinner-9881bf40.js.map +0 -1
- package/style-inject.es-dcee06b6.js +0 -2
- package/style-inject.es-dcee06b6.js.map +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/extends"),r=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),n=require("react"),i=require("@lowentry/react-redux"),o=require("@mui/material"),l=require("./style-inject.es-dcee06b6.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=u(e),c=u(r),s=u(t),p=u(n);l.styleInject(".lowentry-mui--loading-spinner{color:hsla(0,0%,100%,.04)}.lowentry-mui--loading-spinner.lowentry-mui--loading-spinner--transparent{background:transparent}");var d=["type","className","sx","children"];function f(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function y(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?f(Object(t),!0).forEach((function(r){c.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var m={},g=i.LeRed.memo((function(e){var r=e.type;return i.LeRed.useEffect((function(){return function(e){var r=e.type;m[r]=(m[r]||0)+1,1===m[r]&&i.LeRed.trigger("lowentry-mui--loading-spinner--"+r)}({type:r}),function(){return function(e){var r=e.type;m[r]=(m[r]||1)-1,0===m[r]&&i.LeRed.trigger("lowentry-mui--loading-spinner--"+r)}({type:r})}}),[]),null})),b=i.LeRed.memo((function(e){var r=e.type,t=e.className,n=e.sx;e.children;var l=s.default(e,d);return i.LeRed.useTriggerable("lowentry-mui--loading-spinner--"+r),p.default.createElement(p.default.Fragment,null,p.default.createElement(o.Backdrop,a.default({className:"lowentry-mui--loading-spinner lowentry-mui--loading-spinner--"+r+" "+(null!=t?t:""),sx:y({zIndex:function(e){return e.zIndex.drawer+1}},null!=n?n:{}),open:(m[r]||0)>0},l),p.default.createElement(o.CircularProgress,{color:"inherit",size:"min(120px,30vw)"})))}));exports.LoadingSpinner=g,exports.LoadingSpinnerWidget=b;
|
|
2
|
-
//# sourceMappingURL=LoadingSpinner-9881bf40.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingSpinner-9881bf40.js","sources":["src/components/LoadingSpinner/LoadingSpinner.jsx"],"sourcesContent":["import React from 'react';\nimport {LeRed} from '@lowentry/react-redux';\nimport {Backdrop, CircularProgress} from '@mui/material';\nimport './LoadingSpinner.less';\n\n\nlet loadingSpinnerCount = {};\nlet loadingSpinnerCountNonTransparent = 0;\n\nconst LoadingSpinnerGrab = ({type}) =>\n{\n\tloadingSpinnerCount[type] = (loadingSpinnerCount[type] || 0) + 1;\n\tif(loadingSpinnerCount[type] === 1)\n\t{\n\t\tLeRed.trigger('lowentry-mui--loading-spinner--' + type);\n\t}\n};\n\nconst LoadingSpinnerRelease = ({type}) =>\n{\n\tloadingSpinnerCount[type] = (loadingSpinnerCount[type] || 1) - 1;\n\tif(loadingSpinnerCount[type] === 0)\n\t{\n\t\tLeRed.trigger('lowentry-mui--loading-spinner--' + type);\n\t}\n};\n\n\nexport const LoadingSpinner = LeRed.memo(({type}) =>\n{\n\tLeRed.useEffect(() =>\n\t{\n\t\tLoadingSpinnerGrab({type});\n\t\treturn () => LoadingSpinnerRelease({type});\n\t}, []);\n\t\n\treturn null;\n});\n\n\nexport const LoadingSpinnerWidget = LeRed.memo(({type, className, sx, children, ...props}) =>\n{\n\tLeRed.useTriggerable('lowentry-mui--loading-spinner--' + type);\n\t\n\treturn (<>\n\t\t<Backdrop className={'lowentry-mui--loading-spinner lowentry-mui--loading-spinner--' + type + ' ' + (className ?? '')} sx={{zIndex:(theme) => theme.zIndex.drawer + 1, ...(sx ?? {})}} open={(loadingSpinnerCount[type] || 0) > 0} {...props}>\n\t\t\t<CircularProgress color=\"inherit\" size=\"min(120px,30vw)\"/>\n\t\t</Backdrop>\n\t</>);\n});\n"],"names":["loadingSpinnerCount","LoadingSpinner","LeRed","memo","_ref3","type","useEffect","_ref","trigger","LoadingSpinnerGrab","_ref2","LoadingSpinnerRelease","LoadingSpinnerWidget","_ref4","className","sx","children","props","_objectWithoutProperties","_excluded","useTriggerable","React","createElement","Fragment","Backdrop","_extends","_objectSpread","zIndex","theme","drawer","open","CircularProgress","color","size"],"mappings":"8qCAMA,IAAIA,EAAsB,CAAA,EAsBbC,EAAiBC,EAAKA,MAACC,MAAK,SAAAC,GACzC,IAD2CC,EAAID,EAAJC,KAQ1C,OANAH,EAAKA,MAACI,WAAU,WAGf,OAxByB,SAAHC,GACxB,IAD6BF,EAAIE,EAAJF,KAE5BL,EAAoBK,IAASL,EAAoBK,IAAS,GAAK,EAC9B,IAA9BL,EAAoBK,IAEtBH,EAAAA,MAAMM,QAAQ,kCAAoCH,EAEpD,CAgBEI,CAAmB,CAACJ,KAAAA,IACb,WAAA,OAfqB,SAAHK,GAC3B,IADgCL,EAAIK,EAAJL,KAE/BL,EAAoBK,IAASL,EAAoBK,IAAS,GAAK,EAC9B,IAA9BL,EAAoBK,IAEtBH,EAAAA,MAAMM,QAAQ,kCAAoCH,EAEpD,CAQeM,CAAsB,CAACN,KAAAA,GAAM,CAC1C,GAAE,IAEI,IACR,IAGaO,EAAuBV,EAAKA,MAACC,MAAK,SAAAU,GAC/C,IADiDR,EAAIQ,EAAJR,KAAMS,EAASD,EAATC,UAAWC,EAAEF,EAAFE,GAAYF,EAARG,SAAaC,IAAAA,EAAKC,EAAAA,QAAAL,EAAAM,GAIvF,OAFAjB,EAAAA,MAAMkB,eAAe,kCAAoCf,GAEjDgB,EAAA,QAAAC,cAAAD,EAAAA,QAAAE,SACPF,KAAAA,UAAAC,cAACE,EAAQA,SAAAC,UAAA,CAACX,UAAW,gEAAkET,EAAO,KAAOS,QAAAA,EAAa,IAAKC,GAAEW,EAAA,CAAGC,OAAO,SAACC,GAAK,OAAKA,EAAMD,OAAOE,OAAS,CAAC,GAAMd,QAAAA,EAAM,IAAMe,MAAO9B,EAAoBK,IAAS,GAAK,GAAOY,GACtOI,UAAAC,cAACS,EAAAA,iBAAgB,CAACC,MAAM,UAAUC,KAAK,qBAG1C"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";exports.styleInject=function(e,t){void 0===t&&(t={});var d=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===d&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}};
|
|
2
|
-
//# sourceMappingURL=style-inject.es-dcee06b6.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style-inject.es-dcee06b6.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode"],"mappings":"iCAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D"}
|