openstack-uicore-foundation 5.0.1 → 5.0.2
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/lib/components/index.js +1 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/mui/form-item-table.js +1 -1
- package/lib/components/mui/form-item-table.js.map +1 -1
- package/lib/components/mui/formik-inputs/datepicker.js +1 -1
- package/lib/components/mui/formik-inputs/datepicker.js.map +1 -1
- package/lib/components/mui/item-settings-modal.js +1 -1
- package/lib/components/mui/item-settings-modal.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={6611:(e,t,r)=>{r.d(t,{A:()=>y});var l=r(1116),n=r.n(l),a=r(6031),o=r.n(a),i=r(2015),u=r.n(i),s=r(8619),m=r(7994),c=r(2522),d=r(8672),p=r(6915),b=r(3099),v=r(9314),f=r(2359);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const y=({rowId:e,field:t,timeZone:r,label:l="",disabled:n=!1})=>{const a={name:`i-${e}-c-${t.class_field}-f-${t.type_id}`,label:l,disabled:n};switch(t.type){case"CheckBox":return u().createElement(m.default,a);case"CheckBoxList":return u().createElement(c.default,o()({},a,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"RadioButtonList":return u().createElement(d.default,o()({},a,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"DateTime":return u().createElement(p.default,a);case"Time":return u().createElement(b.default,o()({},a,{timeZone:r}));case"Quantity":return u().createElement(v.default,o()({},a,{fullWidth:!0,size:"small",type:"number",slotProps:{htmlInput:x({min:t.minimum_quantity},t.maximum_quantity>0?{max:t.maximum_quantity}:{})}}));case"ComboBox":return u().createElement(f.default,o()({},a,{size:"small"}),t.values.map((e=>u().createElement(s.MenuItem,{key:`ddopt-${e.id}`,value:e.id},e.value))));case"Text":return u().createElement(v.default,o()({},a,{fullWidth:!0,size:"small"}));case"TextArea":return u().createElement(v.default,o()({},a,{fullWidth:!0,size:"small",multiline:!0,rows:3}))}}},7994:(e,t,r)=>{r.d(t,{default:()=>v});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(9825),m=r.n(s),c=r(8619),d=r(3294);const p=["name","label"],b=e=>{let{name:t,label:r}=e,l=o()(e,p);const[a,i]=(0,d.useField)({name:t,type:"checkbox"});return u().createElement(c.FormControl,{fullWidth:!0,margin:"normal",error:i.touched&&Boolean(i.error)},u().createElement(c.FormControlLabel,{control:u().createElement(c.Checkbox,n()({name:t},a,{checked:a.value},l)),label:r}),i.touched&&i.error&&u().createElement(c.FormHelperText,null,i.error))};b.propTypes={name:m().string.isRequired,label:m().string.isRequired};const v=b},6915:(e,t,r)=>{r.d(t,{default:()=>h});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(9825),m=r.n(s);const c=require("@mui/x-date-pickers/DatePicker");var d=r(4),p=r(5643),b=r(3294);const v=["name","label","required","disabled"],f=e=>{let{name:t,label:r,required:l,disabled:a=!1}=e,i=o()(e,v);const[s,m,f]=(0,b.useField)(t),h=`${r} *`,x=()=>{f.setTouched(!0,!0)};return u().createElement(d.LocalizationProvider,{dateAdapter:p.AdapterMoment},u().createElement(c.DatePicker,n()({value:s.value,onChange:f.setValue,onClose:x,slotProps:{textField:{name:t,label:l?h:r,onBlur:x,error:m.touched&&Boolean(m.error),helperText:m.touched&&m.error,fullWidth:!0,disabled:a},day:{sx:{fontSize:"1.2rem",fontWeight:600}},layout:{sx:{"& .MuiDayCalendar-weekDayLabel":{fontSize:"1rem"}}}},margin:"normal"},i)))};f.propTypes={name:m().string.isRequired,label:m().string,required:m().bool,disabled:m().bool};const h=f},2522:(e,t,r)=>{r.d(t,{default:()=>b});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(8619),m=r(3294),c=r(6842),d=r.n(c);const p=["name","options"],b=e=>{let{name:t,options:r}=e,l=o()(e,p);const[a,i,c]=(0,m.useField)(t),b=r.every((({value:e})=>{var t;return null===(t=a.value)||void 0===t?void 0:t.includes(e)}));return u().createElement(s.FormControl,{fullWidth:!0,error:i.touched&&Boolean(i.error)},u().createElement(s.Select,n()({variant:"outlined",name:t,multiple:!0,value:a.value||[],onChange:e=>{const{value:t}=e.target;t.includes("all")?b?c.setValue([]):c.setValue(r.map((e=>e.value))):c.setValue(t)},onBlur:a.onBlur,displayEmpty:!0},l,{renderValue:e=>{if(null==e||!e.length)return l.placeholder||"";if(b)return d().translate("general.all");return r.filter((({value:t})=>null==e?void 0:e.includes(t))).map((({label:e})=>e)).join(", ")}}),u().createElement(s.MenuItem,{key:"all",value:"all"},u().createElement(s.Checkbox,{checked:b}),u().createElement(s.ListItemText,{primary:d().translate("general.all")})),u().createElement(s.Divider,null),r.map((({label:e,value:t})=>{var r;return u().createElement(s.MenuItem,{key:`ckbx-ddl-${t}`,value:t},u().createElement(s.Checkbox,{checked:null===(r=a.value)||void 0===r?void 0:r.includes(t)}),u().createElement(s.ListItemText,{primary:e}))}))))}},8672:(e,t,r)=>{r.d(t,{default:()=>b});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(8619),m=r(3294),c=r(6842),d=r.n(c);const p=["name","options","placeholder"],b=e=>{let{name:t,options:r,placeholder:l}=e,a=o()(e,p);const i=l||d().translate("general.select_an_option"),[c,b,v]=(0,m.useField)(t);return u().createElement(s.FormControl,{fullWidth:!0,error:b.touched&&Boolean(b.error)},u().createElement(s.Select,n()({variant:"outlined",name:t,value:c.value||"",onChange:e=>{v.setValue(e.target.value)},displayEmpty:!0},a,{renderValue:e=>{if(!e)return u().createElement("em",null,i);const t=r.find((({value:t})=>t===e));return t?t.label:""}}),r.map((({label:e,value:t})=>u().createElement(s.MenuItem,{key:`radio-ddl-${t}`,value:t},u().createElement(s.Radio,{checked:c.value===t}),u().createElement(s.ListItemText,{primary:e}))))))}},2359:(e,t,r)=>{r.d(t,{default:()=>h});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(9825),m=r.n(s),c=r(8619),d=r(692),p=r.n(d),b=r(3294);const v=["name","label","placeholder","children","isClearable"],f=e=>{let{name:t,label:r,placeholder:l,children:a,isClearable:i}=e,s=o()(e,v);const[m,d,f]=(0,b.useField)(t),h=(null==m?void 0:m.value)&&""!==m.value||Boolean(l);return u().createElement(c.FormControl,{fullWidth:!0,error:d.touched&&Boolean(d.error)},r&&u().createElement(c.InputLabel,{htmlFor:t,id:`${t}-label`,shrink:h},r),u().createElement(c.Select,n()({name:t,id:t},m,{labelId:`${t}-label`,label:r,notched:h,displayEmpty:!0,renderValue:e=>e&&""!==e?e:u().createElement("span",{style:{color:"#aaa"}},l),endAdornment:i&&m.value?u().createElement(c.InputAdornment,{position:"end",sx:{mr:2}},u().createElement(c.IconButton,{size:"small",onClick:e=>{e.stopPropagation(),f.setValue("")}},u().createElement(p(),{fontSize:"small"}))):null},s),a),d.touched&&d.error&&u().createElement(c.FormHelperText,null,d.error))};f.propTypes={name:m().string.isRequired,children:m().node.isRequired,placeholder:m().string,isClearable:m().bool};const h=f},9314:(e,t,r)=>{r.d(t,{default:()=>v});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(9825),m=r.n(s),c=r(8619),d=r(3294);const p=["name","label","maxLength","required"],b=e=>{var t;let{name:r,label:l,maxLength:a,required:i=!1}=e,s=o()(e,p);const[m,b]=(0,d.useField)(r),v=(null===(t=m.value)||void 0===t?void 0:t.length)||0;let f="";return l&&(f=i?`${l} *`:l),u().createElement(c.Box,null,u().createElement(c.TextField,n()({name:r,label:f},m,{onBlur:m.onBlur,margin:"normal",error:b.touched&&Boolean(b.error),helperText:b.touched&&b.error,slotProps:{htmlInput:{maxLength:a}}},s)),a&&u().createElement(c.Typography,{sx:{fontSize:"1.2rem",color:"#00000099",pl:2}},a-v+" characters left"))};b.propTypes={name:m().string.isRequired,label:m().string,maxLength:m().number,required:m().bool};const v=b},3099:(e,t,r)=>{r.d(t,{default:()=>d});var l=r(2015),n=r.n(l),a=r(9825),o=r.n(a),i=r(4),u=r(5643);const s=require("@mui/x-date-pickers/TimePicker");var m=r(3294);const c=({name:e,minTime:t,maxTime:r,timeZone:l,disabled:a=!1})=>{const[o,c,d]=(0,m.useField)(e);return n().createElement(i.LocalizationProvider,{dateAdapter:u.AdapterMoment},n().createElement(s.TimePicker,{value:o.value,onChange:d.setValue,minTime:t,maxTime:r,timezone:l,label:l,views:["hours","minutes"],slotProps:{textField:{name:e,error:c.touched&&Boolean(c.error),helperText:c.touched&&c.error,size:"small",fullWidth:!0,disabled:a,sx:{"& .MuiPickersSectionList-root":{width:"100%"},"& .MuiFormHelperText-root":{marginLeft:"4px",marginRight:"4px"}}}}}))};c.propTypes={name:o().string.isRequired};const d=c},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},692:e=>{e.exports=require("@mui/icons-material/Clear")},4325:e=>{e.exports=require("@mui/icons-material/Close")},8619:e=>{e.exports=require("@mui/material")},6368:e=>{e.exports=require("@mui/material/Button")},1624:e=>{e.exports=require("@mui/material/Dialog")},8843:e=>{e.exports=require("@mui/material/DialogActions")},6809:e=>{e.exports=require("@mui/material/DialogContent")},8926:e=>{e.exports=require("@mui/material/DialogTitle")},5643:e=>{e.exports=require("@mui/x-date-pickers/AdapterMoment")},4:e=>{e.exports=require("@mui/x-date-pickers/LocalizationProvider")},3294:e=>{e.exports=require("formik")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")}},t={};function r(l){var n=t[l];if(void 0!==n)return n.exports;var a=t[l]={exports:{}};return e[l](a,a.exports,r),a.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var l in t)r.o(t,l)&&!r.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var l={};r.r(l),r.d(l,{default:()=>C});var n=r(2015),a=r.n(n),o=r(9825),i=r.n(o),u=r(6842),s=r.n(u),m=r(6368),c=r.n(m),d=r(1624),p=r.n(d),b=r(8843),v=r.n(b),f=r(6809),h=r.n(f),x=r(8926),y=r.n(x),g=r(8619),E=r(4325),q=r.n(E),k=r(6611);const T=({item:e,timeZone:t,open:r,onClose:l})=>{const n=(null==e?void 0:e.meta_fields.filter((e=>"Item"===e.class_field)))||[];return a().createElement(p(),{open:r,onClose:l,maxWidth:"sm",fullWidth:!0},a().createElement(y(),null,s().translate("general.settings")),a().createElement(g.IconButton,{"aria-label":"close",onClick:l,sx:e=>({position:"absolute",right:8,top:8,color:e.palette.grey[500]})},a().createElement(q(),null)),a().createElement(g.Divider,null),a().createElement(h(),null,a().createElement(g.Typography,{variant:"body2",component:"div",sx:{marginBottom:"20px"}},null==e?void 0:e.name),a().createElement(g.Divider,{sx:{marginBottom:"20px",marginLeft:"-24px",marginRight:"-24px"}}),n.map((r=>a().createElement(a().Fragment,{key:`item-field-${r.type_id}`},a().createElement(k.A,{field:r,rowId:e.form_item_id,timeZone:t,label:r.name}))))),a().createElement(v(),null,a().createElement(c(),{onClick:()=>{l()},variant:"contained",fullWidth:!0},s().translate("general.save"))))};T.propTypes={item:i().object.isRequired,open:i().bool.isRequired,onClose:i().func.isRequired};const C=T;return l})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={6611:(e,t,r)=>{r.d(t,{A:()=>y});var l=r(1116),n=r.n(l),a=r(6031),o=r.n(a),i=r(2015),u=r.n(i),s=r(8619),m=r(7994),c=r(2522),d=r(8672),p=r(6915),b=r(3099),v=r(9314),f=r(2359);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const y=({rowId:e,field:t,timeZone:r,label:l="",disabled:n=!1})=>{const a={name:`i-${e}-c-${t.class_field}-f-${t.type_id}`,label:l,disabled:n};switch(t.type){case"CheckBox":return u().createElement(m.default,a);case"CheckBoxList":return u().createElement(c.default,o()({},a,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"RadioButtonList":return u().createElement(d.default,o()({},a,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"DateTime":return u().createElement(p.default,a);case"Time":return u().createElement(b.default,o()({},a,{timeZone:r}));case"Quantity":return u().createElement(v.default,o()({},a,{fullWidth:!0,size:"small",type:"number",slotProps:{htmlInput:x({min:t.minimum_quantity},t.maximum_quantity>0?{max:t.maximum_quantity}:{})}}));case"ComboBox":return u().createElement(f.default,o()({},a,{size:"small"}),t.values.map((e=>u().createElement(s.MenuItem,{key:`ddopt-${e.id}`,value:e.id},e.value))));case"Text":return u().createElement(v.default,o()({},a,{fullWidth:!0,size:"small"}));case"TextArea":return u().createElement(v.default,o()({},a,{fullWidth:!0,size:"small",multiline:!0,rows:3}))}}},7994:(e,t,r)=>{r.d(t,{default:()=>v});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(9825),m=r.n(s),c=r(8619),d=r(3294);const p=["name","label"],b=e=>{let{name:t,label:r}=e,l=o()(e,p);const[a,i]=(0,d.useField)({name:t,type:"checkbox"});return u().createElement(c.FormControl,{fullWidth:!0,margin:"normal",error:i.touched&&Boolean(i.error)},u().createElement(c.FormControlLabel,{control:u().createElement(c.Checkbox,n()({name:t},a,{checked:a.value},l)),label:r}),i.touched&&i.error&&u().createElement(c.FormHelperText,null,i.error))};b.propTypes={name:m().string.isRequired,label:m().string.isRequired};const v=b},6915:(e,t,r)=>{r.d(t,{default:()=>h});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(9825),m=r.n(s);const c=require("@mui/x-date-pickers/DatePicker");var d=r(4),p=r(5643),b=r(3294);const v=["name","label","required","disabled"],f=e=>{let{name:t,label:r,required:l,disabled:a=!1}=e,i=o()(e,v);const[s,m,f]=(0,b.useField)(t),h=`${r} *`;return u().createElement(d.LocalizationProvider,{dateAdapter:p.AdapterMoment},u().createElement(c.DatePicker,n()({value:s.value,onChange:f.setValue,slotProps:{textField:{name:t,label:l?h:r,error:m.touched&&Boolean(m.error),helperText:m.touched&&m.error,fullWidth:!0,disabled:a},day:{sx:{fontSize:"1.2rem",fontWeight:600}},layout:{sx:{"& .MuiDayCalendar-weekDayLabel":{fontSize:"1rem"}}}},margin:"normal"},i)))};f.propTypes={name:m().string.isRequired,label:m().string,required:m().bool,disabled:m().bool};const h=f},2522:(e,t,r)=>{r.d(t,{default:()=>b});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(8619),m=r(3294),c=r(6842),d=r.n(c);const p=["name","options"],b=e=>{let{name:t,options:r}=e,l=o()(e,p);const[a,i,c]=(0,m.useField)(t),b=r.every((({value:e})=>{var t;return null===(t=a.value)||void 0===t?void 0:t.includes(e)}));return u().createElement(s.FormControl,{fullWidth:!0,error:i.touched&&Boolean(i.error)},u().createElement(s.Select,n()({variant:"outlined",name:t,multiple:!0,value:a.value||[],onChange:e=>{const{value:t}=e.target;t.includes("all")?b?c.setValue([]):c.setValue(r.map((e=>e.value))):c.setValue(t)},onBlur:a.onBlur,displayEmpty:!0},l,{renderValue:e=>{if(null==e||!e.length)return l.placeholder||"";if(b)return d().translate("general.all");return r.filter((({value:t})=>null==e?void 0:e.includes(t))).map((({label:e})=>e)).join(", ")}}),u().createElement(s.MenuItem,{key:"all",value:"all"},u().createElement(s.Checkbox,{checked:b}),u().createElement(s.ListItemText,{primary:d().translate("general.all")})),u().createElement(s.Divider,null),r.map((({label:e,value:t})=>{var r;return u().createElement(s.MenuItem,{key:`ckbx-ddl-${t}`,value:t},u().createElement(s.Checkbox,{checked:null===(r=a.value)||void 0===r?void 0:r.includes(t)}),u().createElement(s.ListItemText,{primary:e}))}))))}},8672:(e,t,r)=>{r.d(t,{default:()=>b});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(8619),m=r(3294),c=r(6842),d=r.n(c);const p=["name","options","placeholder"],b=e=>{let{name:t,options:r,placeholder:l}=e,a=o()(e,p);const i=l||d().translate("general.select_an_option"),[c,b,v]=(0,m.useField)(t);return u().createElement(s.FormControl,{fullWidth:!0,error:b.touched&&Boolean(b.error)},u().createElement(s.Select,n()({variant:"outlined",name:t,value:c.value||"",onChange:e=>{v.setValue(e.target.value)},displayEmpty:!0},a,{renderValue:e=>{if(!e)return u().createElement("em",null,i);const t=r.find((({value:t})=>t===e));return t?t.label:""}}),r.map((({label:e,value:t})=>u().createElement(s.MenuItem,{key:`radio-ddl-${t}`,value:t},u().createElement(s.Radio,{checked:c.value===t}),u().createElement(s.ListItemText,{primary:e}))))))}},2359:(e,t,r)=>{r.d(t,{default:()=>h});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(9825),m=r.n(s),c=r(8619),d=r(692),p=r.n(d),b=r(3294);const v=["name","label","placeholder","children","isClearable"],f=e=>{let{name:t,label:r,placeholder:l,children:a,isClearable:i}=e,s=o()(e,v);const[m,d,f]=(0,b.useField)(t),h=(null==m?void 0:m.value)&&""!==m.value||Boolean(l);return u().createElement(c.FormControl,{fullWidth:!0,error:d.touched&&Boolean(d.error)},r&&u().createElement(c.InputLabel,{htmlFor:t,id:`${t}-label`,shrink:h},r),u().createElement(c.Select,n()({name:t,id:t},m,{labelId:`${t}-label`,label:r,notched:h,displayEmpty:!0,renderValue:e=>e&&""!==e?e:u().createElement("span",{style:{color:"#aaa"}},l),endAdornment:i&&m.value?u().createElement(c.InputAdornment,{position:"end",sx:{mr:2}},u().createElement(c.IconButton,{size:"small",onClick:e=>{e.stopPropagation(),f.setValue("")}},u().createElement(p(),{fontSize:"small"}))):null},s),a),d.touched&&d.error&&u().createElement(c.FormHelperText,null,d.error))};f.propTypes={name:m().string.isRequired,children:m().node.isRequired,placeholder:m().string,isClearable:m().bool};const h=f},9314:(e,t,r)=>{r.d(t,{default:()=>v});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(9825),m=r.n(s),c=r(8619),d=r(3294);const p=["name","label","maxLength","required"],b=e=>{var t;let{name:r,label:l,maxLength:a,required:i=!1}=e,s=o()(e,p);const[m,b]=(0,d.useField)(r),v=(null===(t=m.value)||void 0===t?void 0:t.length)||0;let f="";return l&&(f=i?`${l} *`:l),u().createElement(c.Box,null,u().createElement(c.TextField,n()({name:r,label:f},m,{onBlur:m.onBlur,margin:"normal",error:b.touched&&Boolean(b.error),helperText:b.touched&&b.error,slotProps:{htmlInput:{maxLength:a}}},s)),a&&u().createElement(c.Typography,{sx:{fontSize:"1.2rem",color:"#00000099",pl:2}},a-v+" characters left"))};b.propTypes={name:m().string.isRequired,label:m().string,maxLength:m().number,required:m().bool};const v=b},3099:(e,t,r)=>{r.d(t,{default:()=>d});var l=r(2015),n=r.n(l),a=r(9825),o=r.n(a),i=r(4),u=r(5643);const s=require("@mui/x-date-pickers/TimePicker");var m=r(3294);const c=({name:e,minTime:t,maxTime:r,timeZone:l,disabled:a=!1})=>{const[o,c,d]=(0,m.useField)(e);return n().createElement(i.LocalizationProvider,{dateAdapter:u.AdapterMoment},n().createElement(s.TimePicker,{value:o.value,onChange:d.setValue,minTime:t,maxTime:r,timezone:l,label:l,views:["hours","minutes"],slotProps:{textField:{name:e,error:c.touched&&Boolean(c.error),helperText:c.touched&&c.error,size:"small",fullWidth:!0,disabled:a,sx:{"& .MuiPickersSectionList-root":{width:"100%"},"& .MuiFormHelperText-root":{marginLeft:"4px",marginRight:"4px"}}}}}))};c.propTypes={name:o().string.isRequired};const d=c},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},692:e=>{e.exports=require("@mui/icons-material/Clear")},4325:e=>{e.exports=require("@mui/icons-material/Close")},8619:e=>{e.exports=require("@mui/material")},6368:e=>{e.exports=require("@mui/material/Button")},1624:e=>{e.exports=require("@mui/material/Dialog")},8843:e=>{e.exports=require("@mui/material/DialogActions")},6809:e=>{e.exports=require("@mui/material/DialogContent")},8926:e=>{e.exports=require("@mui/material/DialogTitle")},5643:e=>{e.exports=require("@mui/x-date-pickers/AdapterMoment")},4:e=>{e.exports=require("@mui/x-date-pickers/LocalizationProvider")},3294:e=>{e.exports=require("formik")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")}},t={};function r(l){var n=t[l];if(void 0!==n)return n.exports;var a=t[l]={exports:{}};return e[l](a,a.exports,r),a.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var l in t)r.o(t,l)&&!r.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var l={};r.r(l),r.d(l,{default:()=>C});var n=r(2015),a=r.n(n),o=r(9825),i=r.n(o),u=r(6842),s=r.n(u),m=r(6368),c=r.n(m),d=r(1624),p=r.n(d),b=r(8843),v=r.n(b),f=r(6809),h=r.n(f),x=r(8926),y=r.n(x),g=r(8619),E=r(4325),q=r.n(E),k=r(6611);const T=({item:e,timeZone:t,open:r,onClose:l})=>{const n=(null==e?void 0:e.meta_fields.filter((e=>"Item"===e.class_field)))||[];return a().createElement(p(),{open:r,onClose:l,maxWidth:"sm",fullWidth:!0},a().createElement(y(),null,s().translate("general.settings")),a().createElement(g.IconButton,{"aria-label":"close",onClick:l,sx:e=>({position:"absolute",right:8,top:8,color:e.palette.grey[500]})},a().createElement(q(),null)),a().createElement(g.Divider,null),a().createElement(h(),null,a().createElement(g.Typography,{variant:"body2",component:"div",sx:{marginBottom:"20px"}},null==e?void 0:e.name),a().createElement(g.Divider,{sx:{marginBottom:"20px",marginLeft:"-24px",marginRight:"-24px"}}),n.map((r=>a().createElement(a().Fragment,{key:`item-field-${r.type_id}`},a().createElement(k.A,{field:r,rowId:e.form_item_id,timeZone:t,label:r.name}))))),a().createElement(v(),null,a().createElement(c(),{onClick:()=>{l()},variant:"contained",fullWidth:!0},s().translate("general.save"))))};T.propTypes={item:i().object.isRequired,open:i().bool.isRequired,onClose:i().func.isRequired};const C=T;return l})()));
|
|
2
2
|
//# sourceMappingURL=item-settings-modal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/mui/item-settings-modal.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,wwBCcT,MA2EA,EA3EuB,EACrBC,QACAC,QACAC,WACAC,QAAQ,GACRC,YAAW,MAEX,MACMC,EAAc,CAAEC,KADR,KAAIN,OAAWC,EAAMM,iBAAiBN,EAAMO,UAC9BL,QAAOC,YAEnC,OAAQH,EAAMQ,MACZ,IAAK,WACH,OAAO,kBAAC,UAAsBJ,GAChC,IAAK,eACH,OACE,kBAAC,UAAD,OACMA,EADN,CAEEK,KAAK,QACLC,QAASV,EAAMW,OAAOC,KAAKC,IAAD,CAAUC,MAAOD,EAAEE,GAAIb,MAAOW,EAAEC,aAGhE,IAAK,kBACH,OACE,kBAAC,UAAD,OACMV,EADN,CAEEK,KAAK,QACLC,QAASV,EAAMW,OAAOC,KAAKC,IAAD,CAAUC,MAAOD,EAAEE,GAAIb,MAAOW,EAAEC,aAGhE,IAAK,WACH,OAAO,kBAAC,UAAwBV,GAClC,IAAK,OACH,OAAO,kBAAC,UAAD,OAAyBA,EAAz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,IAAD,CACFvD,SAAU,WACVwD,MAAO,EACPC,IAAK,EACL5D,MAAO0D,EAAMG,QAAQC,KAAK,QAG5B,kBAAC,IAAD,OAEF,kBAAC,EAAA7E,QAAD,MACA,kBAAC,IAAD,KACE,kBAAC,EAAA8B,WAAD,CACE7C,QAAQ,QACR6F,UAAU,MACVtG,GAAI,CAAEuG,aAAc,SAEnBZ,aALH,EAKGA,EAAMpJ,MAET,kBAAC,EAAAiF,QAAD,CACExB,GAAI,CACFuG,aAAc,OACdxC,WAAY,QACZC,YAAa,WAGhB6B,EAAW/I,KAAK0J,GACf,kBAAC,aAAD,CAAgB9I,IAAM,cAAa8I,EAAI/J,WACrC,kBAAC,IAAD,CACEP,MAAOsK,EACPvK,MAAO0J,EAAKc,aACZtK,SAAUA,EACVC,MAAOoK,EAAIjK,WAKnB,kBAAC,IAAD,KACE,kBAAC,IAAD,CAAQsG,QA/CK,KACjBlD,GAAS,EA8CwBc,QAAQ,YAAYvD,WAAS,GACvDiE,IAAAA,UAAY,kBA5CrB,EAmDFuE,EAAkB/G,UAAY,CAC5BgH,KAAM/G,IAAAA,OAAiBC,WACvB+G,KAAMhH,IAAAA,KAAeC,WACrBc,QAASf,IAAAA,KAAeC,YAG1B,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/mui/FormItemTable/components/ItemTableField.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-checkbox.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/DatePicker\"","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-datepicker.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-dropdown-checkbox.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-dropdown-radio.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-select.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-textfield.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/TimePicker\"","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-timepicker.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Clear\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Close\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Button\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Dialog\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/DialogActions\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/DialogContent\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/DialogTitle\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/AdapterMoment\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/LocalizationProvider\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/ItemSettingsModal/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport { MenuItem } from \"@mui/material\";\nimport MuiFormikCheckbox from \"../../formik-inputs/mui-formik-checkbox\";\nimport MuiFormikDropdownCheckbox from \"../../formik-inputs/mui-formik-dropdown-checkbox\";\nimport MuiFormikDropdownRadio from \"../../formik-inputs/mui-formik-dropdown-radio\";\nimport MuiFormikDatepicker from \"../../formik-inputs/mui-formik-datepicker\";\nimport MuiFormikTimepicker from \"../../formik-inputs/mui-formik-timepicker\";\nimport MuiFormikTextField from \"../../formik-inputs/mui-formik-textfield\";\nimport MuiFormikSelect from \"../../formik-inputs/mui-formik-select\";\n\nconst ItemTableField = ({\n rowId,\n field,\n timeZone,\n label = \"\",\n disabled = false\n}) => {\n const name = `i-${rowId}-c-${field.class_field}-f-${field.type_id}`;\n const commonProps = { name, label, disabled };\n\n switch (field.type) {\n case \"CheckBox\":\n return <MuiFormikCheckbox {...commonProps} />;\n case \"CheckBoxList\":\n return (\n <MuiFormikDropdownCheckbox\n {...commonProps}\n size=\"small\"\n options={field.values.map((v) => ({ value: v.id, label: v.value }))}\n />\n );\n case \"RadioButtonList\":\n return (\n <MuiFormikDropdownRadio\n {...commonProps}\n size=\"small\"\n options={field.values.map((v) => ({ value: v.id, label: v.value }))}\n />\n );\n case \"DateTime\":\n return <MuiFormikDatepicker {...commonProps} />;\n case \"Time\":\n return <MuiFormikTimepicker {...commonProps} timeZone={timeZone} />;\n case \"Quantity\":\n return (\n <MuiFormikTextField\n {...commonProps}\n fullWidth\n size=\"small\"\n type=\"number\"\n slotProps={{\n htmlInput: {\n min: field.minimum_quantity,\n ...(field.maximum_quantity > 0\n ? { max: field.maximum_quantity }\n : {})\n }\n }}\n />\n );\n case \"ComboBox\":\n return (\n <MuiFormikSelect {...commonProps} size=\"small\">\n {field.values.map((v) => (\n <MenuItem key={`ddopt-${v.id}`} value={v.id}>\n {v.value}\n </MenuItem>\n ))}\n </MuiFormikSelect>\n );\n case \"Text\":\n return <MuiFormikTextField {...commonProps} fullWidth size=\"small\" />;\n case \"TextArea\":\n return (\n <MuiFormikTextField\n {...commonProps}\n fullWidth\n size=\"small\"\n multiline\n rows={3}\n />\n );\n }\n};\n\nexport default ItemTableField;\n","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Checkbox,\n FormControl,\n FormControlLabel,\n FormHelperText\n} from \"@mui/material\";\nimport { useField } from \"formik\";\n\nconst MuiFormikCheckbox = ({ name, label, ...props }) => {\n const [field, meta] = useField({ name, type: \"checkbox\" });\n\n return (\n <FormControl\n fullWidth\n margin=\"normal\"\n error={meta.touched && Boolean(meta.error)}\n >\n <FormControlLabel\n control={\n <Checkbox\n name={name}\n {...field}\n checked={field.value}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n }\n label={label}\n />\n {meta.touched && meta.error && (\n <FormHelperText>{meta.error}</FormHelperText>\n )}\n </FormControl>\n );\n};\n\nMuiFormikCheckbox.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired\n};\n\nexport default MuiFormikCheckbox;\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/x-date-pickers/DatePicker\");","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { DatePicker } from \"@mui/x-date-pickers/DatePicker\";\nimport { LocalizationProvider } from \"@mui/x-date-pickers/LocalizationProvider\";\nimport { AdapterMoment } from \"@mui/x-date-pickers/AdapterMoment\";\nimport { useField } from \"formik\";\n\nconst MuiFormikDatepicker = ({\n name,\n label,\n required,\n disabled = false,\n ...props\n}) => {\n const [field, meta, helpers] = useField(name);\n const requiredLabel = `${label} *`;\n const handleBlur = () => {\n helpers.setTouched(true, true);\n };\n\n return (\n <LocalizationProvider dateAdapter={AdapterMoment}>\n <DatePicker\n value={field.value}\n onChange={helpers.setValue}\n onClose={handleBlur}\n slotProps={{\n textField: {\n name,\n label: required ? requiredLabel : label,\n onBlur: handleBlur,\n error: meta.touched && Boolean(meta.error),\n helperText: meta.touched && meta.error,\n fullWidth: true,\n disabled\n },\n day: {\n sx: {\n fontSize: \"1.2rem\",\n fontWeight: 600\n }\n },\n layout: {\n sx: {\n \"& .MuiDayCalendar-weekDayLabel\": {\n fontSize: \"1rem\"\n }\n }\n }\n }}\n margin=\"normal\"\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n </LocalizationProvider>\n );\n};\n\nMuiFormikDatepicker.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string,\n required: PropTypes.bool,\n disabled: PropTypes.bool\n};\n\nexport default MuiFormikDatepicker;\n","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport {\n Checkbox,\n Divider,\n FormControl,\n ListItemText,\n MenuItem,\n Select\n} from \"@mui/material\";\nimport { useField } from \"formik\";\nimport T from \"i18n-react/dist/i18n-react\";\n\nconst MuiFormikDropdownCheckbox = ({ name, options, ...rest }) => {\n const [field, meta, helpers] = useField(name);\n const allSelected = options.every(({ value }) =>\n field.value?.includes(value)\n );\n\n const handleChange = (event) => {\n const { value } = event.target;\n\n // If \"all\" was clicked\n if (value.includes(\"all\")) {\n if (allSelected) {\n helpers.setValue([]);\n } else {\n helpers.setValue(options.map((opt) => opt.value));\n }\n } else {\n helpers.setValue(value);\n }\n };\n\n return (\n <FormControl fullWidth error={meta.touched && Boolean(meta.error)}>\n <Select\n variant=\"outlined\"\n name={name}\n multiple\n value={field.value || []}\n onChange={handleChange}\n onBlur={field.onBlur}\n displayEmpty\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...rest}\n renderValue={(selected) => {\n if (!selected?.length) {\n return rest.placeholder || \"\";\n }\n if (allSelected) {\n return T.translate(\"general.all\");\n }\n const selectedNames = options\n .filter(({ value }) => selected?.includes(value))\n .map(({ label }) => label);\n return selectedNames.join(\", \");\n }}\n >\n <MenuItem key=\"all\" value=\"all\">\n <Checkbox checked={allSelected} />\n <ListItemText primary={T.translate(\"general.all\")} />\n </MenuItem>\n <Divider />\n {options.map(({ label, value }) => (\n <MenuItem key={`ckbx-ddl-${value}`} value={value}>\n <Checkbox checked={field.value?.includes(value)} />\n <ListItemText primary={label} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n );\n};\n\nexport default MuiFormikDropdownCheckbox;\n","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport {\n FormControl,\n ListItemText,\n MenuItem,\n Radio,\n Select\n} from \"@mui/material\";\nimport { useField } from \"formik\";\nimport T from \"i18n-react/dist/i18n-react\";\n\nconst MuiFormikDropdownRadio = ({ name, options, placeholder, ...rest }) => {\n const finalPlaceholder =\n placeholder || T.translate(\"general.select_an_option\");\n const [field, meta, helpers] = useField(name);\n\n const handleChange = (event) => {\n helpers.setValue(event.target.value);\n };\n\n return (\n <FormControl fullWidth error={meta.touched && Boolean(meta.error)}>\n <Select\n variant=\"outlined\"\n name={name}\n value={field.value || \"\"}\n onChange={handleChange}\n displayEmpty\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...rest}\n renderValue={(selected) => {\n if (!selected) {\n return <em>{finalPlaceholder}</em>;\n }\n const selectedOption = options.find(\n ({ value }) => value === selected\n );\n return selectedOption ? selectedOption.label : \"\";\n }}\n >\n {options.map(({ label, value }) => (\n <MenuItem key={`radio-ddl-${value}`} value={value}>\n <Radio checked={field.value === value} />\n <ListItemText primary={label} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n );\n};\n\nexport default MuiFormikDropdownRadio;\n","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Select,\n FormHelperText,\n FormControl,\n InputAdornment,\n IconButton,\n InputLabel\n} from \"@mui/material\";\nimport ClearIcon from \"@mui/icons-material/Clear\";\nimport { useField } from \"formik\";\n\nconst MuiFormikSelect = ({\n name,\n label,\n placeholder,\n children,\n isClearable,\n ...rest\n}) => {\n const [field, meta, helpers] = useField(name);\n\n const handleClear = (ev) => {\n ev.stopPropagation();\n helpers.setValue(\"\");\n };\n\n const hasValue = field?.value && field.value !== \"\";\n const shouldShrink = hasValue || Boolean(placeholder);\n\n return (\n <FormControl fullWidth error={meta.touched && Boolean(meta.error)}>\n {label && (\n <InputLabel htmlFor={name} id={`${name}-label`} shrink={shouldShrink}>\n {label}\n </InputLabel>\n )}\n <Select\n name={name}\n id={name}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...field}\n labelId={`${name}-label`}\n label={label}\n notched={shouldShrink}\n displayEmpty\n renderValue={(selected) => {\n if (!selected || selected === \"\") {\n return <span style={{ color: \"#aaa\" }}>{placeholder}</span>;\n }\n return selected;\n }}\n endAdornment={\n isClearable && field.value ? (\n <InputAdornment position=\"end\" sx={{ mr: 2 }}>\n <IconButton size=\"small\" onClick={handleClear}>\n <ClearIcon fontSize=\"small\" />\n </IconButton>\n </InputAdornment>\n ) : null\n }\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...rest}\n >\n {children}\n </Select>\n {meta.touched && meta.error && (\n <FormHelperText>{meta.error}</FormHelperText>\n )}\n </FormControl>\n );\n};\n\nMuiFormikSelect.propTypes = {\n name: PropTypes.string.isRequired,\n children: PropTypes.node.isRequired,\n placeholder: PropTypes.string,\n isClearable: PropTypes.bool\n};\n\nexport default MuiFormikSelect;\n","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Box, TextField, Typography } from \"@mui/material\";\nimport { useField } from \"formik\";\n\nconst MuiFormikTextField = ({\n name,\n label,\n maxLength,\n required = false,\n ...props\n}) => {\n const [field, meta] = useField(name);\n const currentLength = field.value?.length || 0;\n\n let finalLabel = \"\";\n\n if (label) {\n finalLabel = required ? `${label} *` : label;\n }\n\n return (\n <Box>\n <TextField\n name={name}\n label={finalLabel}\n {...field}\n onBlur={field.onBlur}\n margin=\"normal\"\n error={meta.touched && Boolean(meta.error)}\n helperText={meta.touched && meta.error}\n slotProps={{\n htmlInput: {\n maxLength\n }\n }}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n {maxLength && (\n <Typography sx={{ fontSize: \"1.2rem\", color: \"#00000099\", pl: 2 }}>\n {`${maxLength - currentLength} characters left`}\n </Typography>\n )}\n </Box>\n );\n};\n\nMuiFormikTextField.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string,\n maxLength: PropTypes.number,\n required: PropTypes.bool\n};\n\nexport default MuiFormikTextField;\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/x-date-pickers/TimePicker\");","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { LocalizationProvider } from \"@mui/x-date-pickers/LocalizationProvider\";\nimport { AdapterMoment } from \"@mui/x-date-pickers/AdapterMoment\";\nimport { TimePicker } from \"@mui/x-date-pickers/TimePicker\";\n\nimport { useField } from \"formik\";\n\nconst MuiFormikTimepicker = ({\n name,\n minTime,\n maxTime,\n timeZone,\n disabled = false\n}) => {\n const [field, meta, helpers] = useField(name);\n\n return (\n <LocalizationProvider dateAdapter={AdapterMoment}>\n <TimePicker\n value={field.value}\n onChange={helpers.setValue}\n minTime={minTime}\n maxTime={maxTime}\n timezone={timeZone}\n label={timeZone}\n views={[\"hours\", \"minutes\"]}\n slotProps={{\n textField: {\n name,\n error: meta.touched && Boolean(meta.error),\n helperText: meta.touched && meta.error,\n size: \"small\",\n fullWidth: true,\n disabled,\n sx: {\n \"& .MuiPickersSectionList-root\": {\n width: \"100%\"\n },\n \"& .MuiFormHelperText-root\": {\n marginLeft: \"4px\",\n marginRight: \"4px\"\n }\n }\n }\n }}\n />\n </LocalizationProvider>\n );\n};\n\nMuiFormikTimepicker.propTypes = {\n name: PropTypes.string.isRequired\n};\n\nexport default MuiFormikTimepicker;\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"@mui/icons-material/Clear\");","module.exports = require(\"@mui/icons-material/Close\");","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/material/Button\");","module.exports = require(\"@mui/material/Dialog\");","module.exports = require(\"@mui/material/DialogActions\");","module.exports = require(\"@mui/material/DialogContent\");","module.exports = require(\"@mui/material/DialogTitle\");","module.exports = require(\"@mui/x-date-pickers/AdapterMoment\");","module.exports = require(\"@mui/x-date-pickers/LocalizationProvider\");","module.exports = require(\"formik\");","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport Button from \"@mui/material/Button\";\nimport Dialog from \"@mui/material/Dialog\";\nimport DialogActions from \"@mui/material/DialogActions\";\nimport DialogContent from \"@mui/material/DialogContent\";\nimport DialogTitle from \"@mui/material/DialogTitle\";\nimport { Divider, IconButton, Typography } from \"@mui/material\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport ItemTableField from \"../FormItemTable/components/ItemTableField\";\n\nconst ItemSettingsModal = ({ item, timeZone, open, onClose }) => {\n const itemFields =\n item?.meta_fields.filter((f) => f.class_field === \"Item\") || [];\n\n const handleSave = () => {\n onClose();\n };\n\n return (\n <Dialog open={open} onClose={onClose} maxWidth=\"sm\" fullWidth>\n <DialogTitle>{T.translate(\"general.settings\")}</DialogTitle>\n <IconButton\n aria-label=\"close\"\n onClick={onClose}\n sx={(theme) => ({\n position: \"absolute\",\n right: 8,\n top: 8,\n color: theme.palette.grey[500]\n })}\n >\n <CloseIcon />\n </IconButton>\n <Divider />\n <DialogContent>\n <Typography\n variant=\"body2\"\n component=\"div\"\n sx={{ marginBottom: \"20px\" }}\n >\n {item?.name}\n </Typography>\n <Divider\n sx={{\n marginBottom: \"20px\",\n marginLeft: \"-24px\",\n marginRight: \"-24px\"\n }}\n />\n {itemFields.map((exc) => (\n <React.Fragment key={`item-field-${exc.type_id}`}>\n <ItemTableField\n field={exc}\n rowId={item.form_item_id}\n timeZone={timeZone}\n label={exc.name}\n />\n </React.Fragment>\n ))}\n </DialogContent>\n <DialogActions>\n <Button onClick={handleSave} variant=\"contained\" fullWidth>\n {T.translate(\"general.save\")}\n </Button>\n </DialogActions>\n </Dialog>\n );\n};\n\nItemSettingsModal.propTypes = {\n item: PropTypes.object.isRequired,\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired\n};\n\nexport default ItemSettingsModal;\n"],"names":["root","factory","exports","module","define","amd","this","rowId","field","timeZone","label","disabled","commonProps","name","class_field","type_id","type","size","options","values","map","v","value","id","fullWidth","slotProps","htmlInput","min","minimum_quantity","maximum_quantity","max","MenuItem","key","multiline","rows","MuiFormikCheckbox","props","meta","useField","FormControl","margin","error","touched","Boolean","FormControlLabel","control","Checkbox","checked","FormHelperText","propTypes","PropTypes","isRequired","require","MuiFormikDatepicker","required","helpers","requiredLabel","handleBlur","setTouched","LocalizationProvider","dateAdapter","AdapterMoment","DatePicker","onChange","setValue","onClose","textField","onBlur","helperText","day","sx","fontSize","fontWeight","layout","rest","allSelected","every","includes","Select","variant","multiple","event","target","opt","displayEmpty","renderValue","selected","length","placeholder","T","filter","join","ListItemText","primary","Divider","finalPlaceholder","selectedOption","find","Radio","MuiFormikSelect","children","isClearable","shouldShrink","InputLabel","htmlFor","shrink","labelId","notched","style","color","endAdornment","InputAdornment","position","mr","IconButton","onClick","ev","stopPropagation","MuiFormikTextField","maxLength","currentLength","finalLabel","Box","TextField","Typography","pl","MuiFormikTimepicker","minTime","maxTime","TimePicker","timezone","views","width","marginLeft","marginRight","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","ItemSettingsModal","item","open","itemFields","meta_fields","f","maxWidth","theme","right","top","palette","grey","component","marginBottom","exc","form_item_id"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"components/mui/item-settings-modal.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,wwBCcT,MA2EA,EA3EuB,EACrBC,QACAC,QACAC,WACAC,QAAQ,GACRC,YAAW,MAEX,MACMC,EAAc,CAAEC,KADR,KAAIN,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foundation/./src/components/mui/FormItemTable/components/ItemTableField.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-checkbox.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/DatePicker\"","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-datepicker.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-dropdown-checkbox.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-dropdown-radio.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-select.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-textfield.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/TimePicker\"","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-timepicker.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Clear\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Close\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Button\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Dialog\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/DialogActions\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/DialogContent\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/DialogTitle\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/AdapterMoment\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/LocalizationProvider\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/ItemSettingsModal/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport { MenuItem } from \"@mui/material\";\nimport MuiFormikCheckbox from \"../../formik-inputs/mui-formik-checkbox\";\nimport MuiFormikDropdownCheckbox from \"../../formik-inputs/mui-formik-dropdown-checkbox\";\nimport MuiFormikDropdownRadio from \"../../formik-inputs/mui-formik-dropdown-radio\";\nimport MuiFormikDatepicker from \"../../formik-inputs/mui-formik-datepicker\";\nimport MuiFormikTimepicker from \"../../formik-inputs/mui-formik-timepicker\";\nimport MuiFormikTextField from \"../../formik-inputs/mui-formik-textfield\";\nimport MuiFormikSelect from \"../../formik-inputs/mui-formik-select\";\n\nconst ItemTableField = ({\n rowId,\n field,\n timeZone,\n label = \"\",\n disabled = false\n}) => {\n const name = `i-${rowId}-c-${field.class_field}-f-${field.type_id}`;\n const commonProps = { name, label, disabled };\n\n switch (field.type) {\n case \"CheckBox\":\n return <MuiFormikCheckbox {...commonProps} />;\n case \"CheckBoxList\":\n return (\n <MuiFormikDropdownCheckbox\n {...commonProps}\n size=\"small\"\n options={field.values.map((v) => ({ value: v.id, label: v.value }))}\n />\n );\n case \"RadioButtonList\":\n return (\n <MuiFormikDropdownRadio\n {...commonProps}\n size=\"small\"\n options={field.values.map((v) => ({ value: v.id, label: v.value }))}\n />\n );\n case \"DateTime\":\n return <MuiFormikDatepicker {...commonProps} />;\n case \"Time\":\n return <MuiFormikTimepicker {...commonProps} timeZone={timeZone} />;\n case \"Quantity\":\n return (\n <MuiFormikTextField\n {...commonProps}\n fullWidth\n size=\"small\"\n type=\"number\"\n slotProps={{\n htmlInput: {\n min: field.minimum_quantity,\n ...(field.maximum_quantity > 0\n ? { max: field.maximum_quantity }\n : {})\n }\n }}\n />\n );\n case \"ComboBox\":\n return (\n <MuiFormikSelect {...commonProps} size=\"small\">\n {field.values.map((v) => (\n <MenuItem key={`ddopt-${v.id}`} value={v.id}>\n {v.value}\n </MenuItem>\n ))}\n </MuiFormikSelect>\n );\n case \"Text\":\n return <MuiFormikTextField {...commonProps} fullWidth size=\"small\" />;\n case \"TextArea\":\n return (\n <MuiFormikTextField\n {...commonProps}\n fullWidth\n size=\"small\"\n multiline\n rows={3}\n />\n );\n }\n};\n\nexport default ItemTableField;\n","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Checkbox,\n FormControl,\n FormControlLabel,\n FormHelperText\n} from \"@mui/material\";\nimport { useField } from \"formik\";\n\nconst MuiFormikCheckbox = ({ name, label, ...props }) => {\n const [field, meta] = useField({ name, type: \"checkbox\" });\n\n return (\n <FormControl\n fullWidth\n margin=\"normal\"\n error={meta.touched && Boolean(meta.error)}\n >\n <FormControlLabel\n control={\n <Checkbox\n name={name}\n {...field}\n checked={field.value}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n }\n label={label}\n />\n {meta.touched && meta.error && (\n <FormHelperText>{meta.error}</FormHelperText>\n )}\n </FormControl>\n );\n};\n\nMuiFormikCheckbox.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired\n};\n\nexport default MuiFormikCheckbox;\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/x-date-pickers/DatePicker\");","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { DatePicker } from \"@mui/x-date-pickers/DatePicker\";\nimport { LocalizationProvider } from \"@mui/x-date-pickers/LocalizationProvider\";\nimport { AdapterMoment } from \"@mui/x-date-pickers/AdapterMoment\";\nimport { useField } from \"formik\";\n\nconst MuiFormikDatepicker = ({\n name,\n label,\n required,\n disabled = false,\n ...props\n}) => {\n const [field, meta, helpers] = useField(name);\n const requiredLabel = `${label} *`;\n\n return (\n <LocalizationProvider dateAdapter={AdapterMoment}>\n <DatePicker\n value={field.value}\n onChange={helpers.setValue}\n slotProps={{\n textField: {\n name,\n label: required ? requiredLabel : label,\n error: meta.touched && Boolean(meta.error),\n helperText: meta.touched && meta.error,\n fullWidth: true,\n disabled\n },\n day: {\n sx: {\n fontSize: \"1.2rem\",\n fontWeight: 600\n }\n },\n layout: {\n sx: {\n \"& .MuiDayCalendar-weekDayLabel\": {\n fontSize: \"1rem\"\n }\n }\n }\n }}\n margin=\"normal\"\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n </LocalizationProvider>\n );\n};\n\nMuiFormikDatepicker.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string,\n required: PropTypes.bool,\n disabled: PropTypes.bool\n};\n\nexport default MuiFormikDatepicker;","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport {\n Checkbox,\n Divider,\n FormControl,\n ListItemText,\n MenuItem,\n Select\n} from \"@mui/material\";\nimport { useField } from \"formik\";\nimport T from \"i18n-react/dist/i18n-react\";\n\nconst MuiFormikDropdownCheckbox = ({ name, options, ...rest }) => {\n const [field, meta, helpers] = useField(name);\n const allSelected = options.every(({ value }) =>\n field.value?.includes(value)\n );\n\n const handleChange = (event) => {\n const { value } = event.target;\n\n // If \"all\" was clicked\n if (value.includes(\"all\")) {\n if (allSelected) {\n helpers.setValue([]);\n } else {\n helpers.setValue(options.map((opt) => opt.value));\n }\n } else {\n helpers.setValue(value);\n }\n };\n\n return (\n <FormControl fullWidth error={meta.touched && Boolean(meta.error)}>\n <Select\n variant=\"outlined\"\n name={name}\n multiple\n value={field.value || []}\n onChange={handleChange}\n onBlur={field.onBlur}\n displayEmpty\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...rest}\n renderValue={(selected) => {\n if (!selected?.length) {\n return rest.placeholder || \"\";\n }\n if (allSelected) {\n return T.translate(\"general.all\");\n }\n const selectedNames = options\n .filter(({ value }) => selected?.includes(value))\n .map(({ label }) => label);\n return selectedNames.join(\", \");\n }}\n >\n <MenuItem key=\"all\" value=\"all\">\n <Checkbox checked={allSelected} />\n <ListItemText primary={T.translate(\"general.all\")} />\n </MenuItem>\n <Divider />\n {options.map(({ label, value }) => (\n <MenuItem key={`ckbx-ddl-${value}`} value={value}>\n <Checkbox checked={field.value?.includes(value)} />\n <ListItemText primary={label} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n );\n};\n\nexport default MuiFormikDropdownCheckbox;\n","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport {\n FormControl,\n ListItemText,\n MenuItem,\n Radio,\n Select\n} from \"@mui/material\";\nimport { useField } from \"formik\";\nimport T from \"i18n-react/dist/i18n-react\";\n\nconst MuiFormikDropdownRadio = ({ name, options, placeholder, ...rest }) => {\n const finalPlaceholder =\n placeholder || T.translate(\"general.select_an_option\");\n const [field, meta, helpers] = useField(name);\n\n const handleChange = (event) => {\n helpers.setValue(event.target.value);\n };\n\n return (\n <FormControl fullWidth error={meta.touched && Boolean(meta.error)}>\n <Select\n variant=\"outlined\"\n name={name}\n value={field.value || \"\"}\n onChange={handleChange}\n displayEmpty\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...rest}\n renderValue={(selected) => {\n if (!selected) {\n return <em>{finalPlaceholder}</em>;\n }\n const selectedOption = options.find(\n ({ value }) => value === selected\n );\n return selectedOption ? selectedOption.label : \"\";\n }}\n >\n {options.map(({ label, value }) => (\n <MenuItem key={`radio-ddl-${value}`} value={value}>\n <Radio checked={field.value === value} />\n <ListItemText primary={label} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n );\n};\n\nexport default MuiFormikDropdownRadio;\n","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Select,\n FormHelperText,\n FormControl,\n InputAdornment,\n IconButton,\n InputLabel\n} from \"@mui/material\";\nimport ClearIcon from \"@mui/icons-material/Clear\";\nimport { useField } from \"formik\";\n\nconst MuiFormikSelect = ({\n name,\n label,\n placeholder,\n children,\n isClearable,\n ...rest\n}) => {\n const [field, meta, helpers] = useField(name);\n\n const handleClear = (ev) => {\n ev.stopPropagation();\n helpers.setValue(\"\");\n };\n\n const hasValue = field?.value && field.value !== \"\";\n const shouldShrink = hasValue || Boolean(placeholder);\n\n return (\n <FormControl fullWidth error={meta.touched && Boolean(meta.error)}>\n {label && (\n <InputLabel htmlFor={name} id={`${name}-label`} shrink={shouldShrink}>\n {label}\n </InputLabel>\n )}\n <Select\n name={name}\n id={name}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...field}\n labelId={`${name}-label`}\n label={label}\n notched={shouldShrink}\n displayEmpty\n renderValue={(selected) => {\n if (!selected || selected === \"\") {\n return <span style={{ color: \"#aaa\" }}>{placeholder}</span>;\n }\n return selected;\n }}\n endAdornment={\n isClearable && field.value ? (\n <InputAdornment position=\"end\" sx={{ mr: 2 }}>\n <IconButton size=\"small\" onClick={handleClear}>\n <ClearIcon fontSize=\"small\" />\n </IconButton>\n </InputAdornment>\n ) : null\n }\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...rest}\n >\n {children}\n </Select>\n {meta.touched && meta.error && (\n <FormHelperText>{meta.error}</FormHelperText>\n )}\n </FormControl>\n );\n};\n\nMuiFormikSelect.propTypes = {\n name: PropTypes.string.isRequired,\n children: PropTypes.node.isRequired,\n placeholder: PropTypes.string,\n isClearable: PropTypes.bool\n};\n\nexport default MuiFormikSelect;\n","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Box, TextField, Typography } from \"@mui/material\";\nimport { useField } from \"formik\";\n\nconst MuiFormikTextField = ({\n name,\n label,\n maxLength,\n required = false,\n ...props\n}) => {\n const [field, meta] = useField(name);\n const currentLength = field.value?.length || 0;\n\n let finalLabel = \"\";\n\n if (label) {\n finalLabel = required ? `${label} *` : label;\n }\n\n return (\n <Box>\n <TextField\n name={name}\n label={finalLabel}\n {...field}\n onBlur={field.onBlur}\n margin=\"normal\"\n error={meta.touched && Boolean(meta.error)}\n helperText={meta.touched && meta.error}\n slotProps={{\n htmlInput: {\n maxLength\n }\n }}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n {maxLength && (\n <Typography sx={{ fontSize: \"1.2rem\", color: \"#00000099\", pl: 2 }}>\n {`${maxLength - currentLength} characters left`}\n </Typography>\n )}\n </Box>\n );\n};\n\nMuiFormikTextField.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string,\n maxLength: PropTypes.number,\n required: PropTypes.bool\n};\n\nexport default MuiFormikTextField;\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/x-date-pickers/TimePicker\");","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { LocalizationProvider } from \"@mui/x-date-pickers/LocalizationProvider\";\nimport { AdapterMoment } from \"@mui/x-date-pickers/AdapterMoment\";\nimport { TimePicker } from \"@mui/x-date-pickers/TimePicker\";\n\nimport { useField } from \"formik\";\n\nconst MuiFormikTimepicker = ({\n name,\n minTime,\n maxTime,\n timeZone,\n disabled = false\n}) => {\n const [field, meta, helpers] = useField(name);\n\n return (\n <LocalizationProvider dateAdapter={AdapterMoment}>\n <TimePicker\n value={field.value}\n onChange={helpers.setValue}\n minTime={minTime}\n maxTime={maxTime}\n timezone={timeZone}\n label={timeZone}\n views={[\"hours\", \"minutes\"]}\n slotProps={{\n textField: {\n name,\n error: meta.touched && Boolean(meta.error),\n helperText: meta.touched && meta.error,\n size: \"small\",\n fullWidth: true,\n disabled,\n sx: {\n \"& .MuiPickersSectionList-root\": {\n width: \"100%\"\n },\n \"& .MuiFormHelperText-root\": {\n marginLeft: \"4px\",\n marginRight: \"4px\"\n }\n }\n }\n }}\n />\n </LocalizationProvider>\n );\n};\n\nMuiFormikTimepicker.propTypes = {\n name: PropTypes.string.isRequired\n};\n\nexport default MuiFormikTimepicker;\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"@mui/icons-material/Clear\");","module.exports = require(\"@mui/icons-material/Close\");","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/material/Button\");","module.exports = require(\"@mui/material/Dialog\");","module.exports = require(\"@mui/material/DialogActions\");","module.exports = require(\"@mui/material/DialogContent\");","module.exports = require(\"@mui/material/DialogTitle\");","module.exports = require(\"@mui/x-date-pickers/AdapterMoment\");","module.exports = require(\"@mui/x-date-pickers/LocalizationProvider\");","module.exports = require(\"formik\");","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport Button from \"@mui/material/Button\";\nimport Dialog from \"@mui/material/Dialog\";\nimport DialogActions from \"@mui/material/DialogActions\";\nimport DialogContent from \"@mui/material/DialogContent\";\nimport DialogTitle from \"@mui/material/DialogTitle\";\nimport { Divider, IconButton, Typography } from \"@mui/material\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport ItemTableField from \"../FormItemTable/components/ItemTableField\";\n\nconst ItemSettingsModal = ({ item, timeZone, open, onClose }) => {\n const itemFields =\n item?.meta_fields.filter((f) => f.class_field === \"Item\") || [];\n\n const handleSave = () => {\n onClose();\n };\n\n return (\n <Dialog open={open} onClose={onClose} maxWidth=\"sm\" fullWidth>\n <DialogTitle>{T.translate(\"general.settings\")}</DialogTitle>\n <IconButton\n aria-label=\"close\"\n onClick={onClose}\n sx={(theme) => ({\n position: \"absolute\",\n right: 8,\n top: 8,\n color: theme.palette.grey[500]\n })}\n >\n <CloseIcon />\n </IconButton>\n <Divider />\n <DialogContent>\n <Typography\n variant=\"body2\"\n component=\"div\"\n sx={{ marginBottom: \"20px\" }}\n >\n {item?.name}\n </Typography>\n <Divider\n sx={{\n marginBottom: \"20px\",\n marginLeft: \"-24px\",\n marginRight: \"-24px\"\n }}\n />\n {itemFields.map((exc) => (\n <React.Fragment key={`item-field-${exc.type_id}`}>\n <ItemTableField\n field={exc}\n rowId={item.form_item_id}\n timeZone={timeZone}\n label={exc.name}\n />\n </React.Fragment>\n ))}\n </DialogContent>\n <DialogActions>\n <Button onClick={handleSave} variant=\"contained\" fullWidth>\n {T.translate(\"general.save\")}\n </Button>\n </DialogActions>\n </Dialog>\n );\n};\n\nItemSettingsModal.propTypes = {\n item: PropTypes.object.isRequired,\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired\n};\n\nexport default ItemSettingsModal;\n"],"names":["root","factory","exports","module","define","amd","this","rowId","field","timeZone","label","disabled","commonProps","name","class_field","type_id","type","size","options","values","map","v","value","id","fullWidth","slotProps","htmlInput","min","minimum_quantity","maximum_quantity","max","MenuItem","key","multiline","rows","MuiFormikCheckbox","props","meta","useField","FormControl","margin","error","touched","Boolean","FormControlLabel","control","Checkbox","checked","FormHelperText","propTypes","PropTypes","isRequired","require","MuiFormikDatepicker","required","helpers","requiredLabel","LocalizationProvider","dateAdapter","AdapterMoment","DatePicker","onChange","setValue","textField","helperText","day","sx","fontSize","fontWeight","layout","rest","allSelected","every","includes","Select","variant","multiple","event","target","opt","onBlur","displayEmpty","renderValue","selected","length","placeholder","T","filter","join","ListItemText","primary","Divider","finalPlaceholder","selectedOption","find","Radio","MuiFormikSelect","children","isClearable","shouldShrink","InputLabel","htmlFor","shrink","labelId","notched","style","color","endAdornment","InputAdornment","position","mr","IconButton","onClick","ev","stopPropagation","MuiFormikTextField","maxLength","currentLength","finalLabel","Box","TextField","Typography","pl","MuiFormikTimepicker","minTime","maxTime","TimePicker","timezone","views","width","marginLeft","marginRight","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","ItemSettingsModal","item","open","onClose","itemFields","meta_fields","f","maxWidth","theme","right","top","palette","grey","component","marginBottom","exc","form_item_id"],"sourceRoot":""}
|