umwd-components 0.1.559 → 0.1.561
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/_virtual/index6.js +1 -1
- package/dist/node_modules/buffer/index.js +1 -1
- package/dist/node_modules/ieee754/index.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/safe-buffer/index.js +1 -1
- package/dist/src/components/common/cookie-consent/CookieConsentButtonSmall.js +1 -1
- package/dist/src/components/logistics/ipo/IPOItemFields.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/common/cookie-consent/CookieConsentButtonSmall.tsx +5 -21
- package/src/components/logistics/ipo/IPOItemFields.tsx +4 -8
- package/dist/_virtual/index9.js +0 -6
- package/dist/_virtual/react-is.development2.js +0 -6
- package/dist/_virtual/react-is.production.min2.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -6
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -6
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -6
- package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +0 -6
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -6
- package/dist/node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js +0 -6
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js +0 -6
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js +0 -6
- package/dist/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js +0 -6
- package/dist/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js +0 -6
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -6
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +0 -6
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -6
- package/dist/node_modules/@mui/styled-engine/index.js +0 -14
- package/dist/node_modules/@mui/system/esm/borders.js +0 -6
- package/dist/node_modules/@mui/system/esm/breakpoints.js +0 -6
- package/dist/node_modules/@mui/system/esm/compose.js +0 -6
- package/dist/node_modules/@mui/system/esm/createStyled.js +0 -6
- package/dist/node_modules/@mui/system/esm/createTheme/applyStyles.js +0 -6
- package/dist/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +0 -6
- package/dist/node_modules/@mui/system/esm/createTheme/createSpacing.js +0 -6
- package/dist/node_modules/@mui/system/esm/createTheme/createTheme.js +0 -6
- package/dist/node_modules/@mui/system/esm/createTheme/shape.js +0 -6
- package/dist/node_modules/@mui/system/esm/cssGrid.js +0 -6
- package/dist/node_modules/@mui/system/esm/memoize.js +0 -6
- package/dist/node_modules/@mui/system/esm/merge.js +0 -6
- package/dist/node_modules/@mui/system/esm/palette.js +0 -6
- package/dist/node_modules/@mui/system/esm/responsivePropType.js +0 -6
- package/dist/node_modules/@mui/system/esm/sizing.js +0 -6
- package/dist/node_modules/@mui/system/esm/spacing.js +0 -6
- package/dist/node_modules/@mui/system/esm/style.js +0 -6
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +0 -6
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +0 -6
- package/dist/node_modules/@mui/system/esm/styled.js +0 -6
- package/dist/node_modules/@mui/utils/esm/capitalize/capitalize.js +0 -6
- package/dist/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +0 -6
- package/dist/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -6
- package/dist/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +0 -6
- package/dist/node_modules/react-is/cjs/react-is.development.js +0 -15
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -15
- package/dist/node_modules/react-is/index.js +0 -6
- package/dist/node_modules/stylis/src/Enum.js +0 -6
- package/dist/node_modules/stylis/src/Middleware.js +0 -6
- package/dist/node_modules/stylis/src/Parser.js +0 -6
- package/dist/node_modules/stylis/src/Serializer.js +0 -6
- package/dist/node_modules/stylis/src/Tokenizer.js +0 -6
- package/dist/node_modules/stylis/src/Utility.js +0 -6
package/dist/_virtual/index6.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
import{__exports as t}from"../../_virtual/
|
|
6
|
+
import{__exports as t}from"../../_virtual/index6.js";import{__require as r}from"../base64-js/index.js";import{__require as e}from"../ieee754/index.js";
|
|
7
7
|
/*!
|
|
8
8
|
* The buffer module from node.js, for the browser.
|
|
9
9
|
*
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
import{__exports as a}from"../../_virtual/
|
|
6
|
+
import{__exports as a}from"../../_virtual/index7.js";
|
|
7
7
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var t;function o(){return t||(t=1,a.read=function(a,t,o,r,h){var M,e,i=8*h-r-1,p=(1<<i)-1,f=p>>1,n=-7,w=o?h-1:0,s=o?-1:1,u=a[t+w];for(w+=s,M=u&(1<<-n)-1,u>>=-n,n+=i;n>0;M=256*M+a[t+w],w+=s,n-=8);for(e=M&(1<<-n)-1,M>>=-n,n+=r;n>0;e=256*e+a[t+w],w+=s,n-=8);if(0===M)M=1-f;else{if(M===p)return e?NaN:1/0*(u?-1:1);e+=Math.pow(2,r),M-=f}return(u?-1:1)*e*Math.pow(2,M-r)},a.write=function(a,t,o,r,h,M){var e,i,p,f=8*M-h-1,n=(1<<f)-1,w=n>>1,s=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,u=r?0:M-1,N=r?1:-1,_=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,e=n):(e=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-e))<1&&(e--,p*=2),(t+=e+w>=1?s/p:s*Math.pow(2,1-w))*p>=2&&(e++,p/=2),e+w>=n?(i=0,e=n):e+w>=1?(i=(t*p-1)*Math.pow(2,h),e+=w):(i=t*Math.pow(2,w-1)*Math.pow(2,h),e=0));h>=8;a[o+u]=255&i,u+=N,i/=256,h-=8);for(e=e<<h|i,f+=h;f>0;a[o+u]=255&e,u+=N,e/=256,f-=8);a[o+u-N]|=128*_}),a}export{o as __require};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
import{
|
|
6
|
+
import{__module as r}from"../../_virtual/index3.js";import{__require as e}from"./node_modules/react-is/index.js";import{__require as o}from"./factoryWithTypeCheckers.js";import{__require as s}from"./factoryWithThrowingShims.js";if("production"!==process.env.NODE_ENV){var i=e();r.exports=o()(i.isElement,!0)}else r.exports=s()();var t=r.exports;export{t as p};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
import{__module as r}from"../../../../_virtual/
|
|
6
|
+
import{__module as r}from"../../../../_virtual/index5.js";import{__require as e}from"./cjs/react-is.production.min.js";import{__require as o}from"./cjs/react-is.development.js";var s;function t(){return s||(s=1,"production"===process.env.NODE_ENV?r.exports=e():r.exports=o()),r.exports}export{t as __require};
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
import{__module as r}from"../../_virtual/
|
|
6
|
+
import{__module as r}from"../../_virtual/index4.js";import{__require as e}from"../buffer/index.js";
|
|
7
7
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var o;function n(){return o||(o=1,function(r,o){var n=e(),t=n.Buffer;function u(r,e){for(var o in r)e[o]=r[o]}function f(r,e,o){return t(r,e,o)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?r.exports=n:(u(n,o),o.Buffer=f),f.prototype=Object.create(t.prototype),u(t,f),f.from=function(r,e,o){if("number"==typeof r)throw new TypeError("Argument must not be a number");return t(r,e,o)},f.alloc=function(r,e,o){if("number"!=typeof r)throw new TypeError("Argument must be a number");var n=t(r);return void 0!==e?"string"==typeof o?n.fill(e,o):n.fill(e):n.fill(0),n},f.allocUnsafe=function(r){if("number"!=typeof r)throw new TypeError("Argument must be a number");return t(r)},f.allocUnsafeSlow=function(r){if("number"!=typeof r)throw new TypeError("Argument must be a number");return n.SlowBuffer(r)}}(r,r.exports)),r.exports}export{n as __require};
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* @copyright Jelle Paulus
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
|
-
import
|
|
7
|
+
import e from"react";import t from"@mui/material/Button";import{useCookieConsent as o}from"./CookieConsentContext.js";import r from"@mui/icons-material/Cookie";var n=function(){var n=o().resetConsent;return e.createElement(t,{variant:"outlined",onClick:function(){n()},startIcon:e.createElement(r,null)},"Reset Cookie Preferences")};export{n as default};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
import{__read as e,__spreadArray as t}from"../../../../node_modules/tslib/tslib.es6.js";import
|
|
6
|
+
import{__read as e,__spreadArray as t}from"../../../../node_modules/tslib/tslib.es6.js";import r,{useState as l,useEffect as n}from"react";import a from"@mui/material/Table";import i from"@mui/material/TableHead";import o from"@mui/material/TableBody";import m from"@mui/material/TableCell";import u from"@mui/material/TableRow";import c from"@mui/material/IconButton";import d from"@mui/icons-material/Add";import s from"@mui/material/Typography";import p from"@mui/material/Stack";import f from"@mui/material/TextField";import b from"../../e-commerce/products/ProductSelector.js";import E from"../../common/WeekPicker.js";import h from"../../../../node_modules/dayjs/dayjs.min.js";import x from"@mui/icons-material/Delete";import{useTheme as w}from"@mui/material/styles";function v(v){var y=v.productsArr,g=v.vendorID,k=void 0===g?null:g,_=e(l([]),2),C=_[0],P=_[1],T=e(l(null),2),j=T[0],A=T[1],I=e(l(0),2),N=I[0],D=I[1],S=e(l(new Date),2),B=S[0],O=S[1],W=e(l([]),2),q=W[0],F=W[1],H=w();n((function(){P([])}),[k]);var J=e(l([]),2),L=J[0],R=J[1];return n((function(){R(function(e){return e.map((function(e,t){return{line_item_number:"".concat(t+1,".0.0"),product:e.product.id,ordered_quantity:e.amount,expected_delivery_date:e.pdw}}))}(C))}),[C]),r.createElement(p,{spacing:2},r.createElement(s,{variant:"h5"},"Adding the products"),r.createElement(s,{variant:"body1"},"Please select the products that are in the purchase order"),r.createElement(s,{variant:"body2"},"Only products by the selected supplier can be added"),r.createElement(a,null,r.createElement(i,null,r.createElement(u,null,r.createElement(m,{id:"line_item_number",sx:[{width:"15%"},null===k&&{color:H.palette.text.disabled}]},"Line Item Number"),r.createElement(m,{sx:[{width:"55%"},null===k&&{color:H.palette.text.disabled}]},"Product Number"),r.createElement(m,{sx:[{width:"15%"},null===k&&{color:H.palette.text.disabled}]},"Amount"),r.createElement(m,{sx:[{width:"15%"},null===k&&{color:H.palette.text.disabled}]},"Preferred delivery week"),r.createElement(m,{sx:[null===k&&{color:H.palette.text.disabled}]}))),r.createElement(o,null,C.map((function(e,t){return r.createElement(u,{key:t},r.createElement(m,{sx:[{width:"15%"},null===k&&{color:H.palette.text.disabled}]},t+1,".0.0"),r.createElement(m,{sx:[{width:"55%"},null===k&&{color:H.palette.text.disabled}]},e.product.product_number),r.createElement(m,{sx:{width:"15%"}},e.amount),r.createElement(m,{sx:{width:"10%"}},(l=e.pdw,h(l).isoWeek())),r.createElement(m,{align:"right",sx:{width:"5%"}},r.createElement(c,{onClick:function(){return function(e){var t=C.filter((function(t,r){return r!==e}));P(t)}(t)}},r.createElement(x,null))));var l})))),r.createElement("input",{type:"hidden",name:"ipo_items",value:JSON.stringify(L)}),r.createElement(p,{direction:"row",spacing:1,alignItems:"center",sx:{p:2,width:"100%"}},r.createElement(s,{variant:"body1",sx:{width:"15%"}},C.length+1,".0.0"),y&&r.createElement(b,{productNames:y,currentValue:q,sx:{width:"55%"},multiple:!1,onChangeCallback:function(e){var t=y.find((function(t){return t.id===e[0]}));A(t||null),F(e)}}),r.createElement(f,{id:"amount",name:"amount",type:"number",label:"Amount",value:N,onChange:function(e){""!==e.target.value?parseInt(e.target.value)<0?D(0):D(parseInt(e.target.value)):D(0)},disabled:null===k,sx:{width:"15%"}}),r.createElement(E,{value:B,onChangeCallback:function(e){O(e)},label:"Preferred delivery week",disabled:!1}),r.createElement(c,{disabled:null===k,onClick:function(){if(null!==j&&null!==N){var r={product:j,amount:N,pdw:B};P(t(t([],e(C),!1),[r],!1)),A(null),D(0),O(new Date),F([])}else console.log("nextProductName or nextAmount is null")}},r.createElement(d,null))))}export{v as IPOItemFields};
|