openstack-uicore-foundation 5.0.11-beta.1 → 5.0.13-beta.1
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/.claude/settings.local.json +12 -0
- package/lib/components/index.js +1 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/inputs/access-levels-input.js +1 -1
- package/lib/components/inputs/access-levels-input.js.map +1 -1
- package/lib/components/inputs/attendee-input.js +1 -1
- package/lib/components/inputs/attendee-input.js.map +1 -1
- package/lib/components/inputs/company-input-v2.js +1 -1
- package/lib/components/inputs/company-input-v2.js.map +1 -1
- package/lib/components/inputs/company-input.js +1 -1
- package/lib/components/inputs/company-input.js.map +1 -1
- package/lib/components/inputs/country-dropdown.js +1 -1
- package/lib/components/inputs/country-dropdown.js.map +1 -1
- package/lib/components/inputs/country-input.js +1 -1
- package/lib/components/inputs/country-input.js.map +1 -1
- package/lib/components/inputs/event-input.js +1 -1
- package/lib/components/inputs/event-input.js.map +1 -1
- package/lib/components/inputs/group-input.js +1 -1
- package/lib/components/inputs/group-input.js.map +1 -1
- package/lib/components/inputs/language-input.js +1 -1
- package/lib/components/inputs/language-input.js.map +1 -1
- package/lib/components/inputs/member-input.js +1 -1
- package/lib/components/inputs/member-input.js.map +1 -1
- package/lib/components/inputs/organization-input.js +1 -1
- package/lib/components/inputs/organization-input.js.map +1 -1
- package/lib/components/inputs/promocode-input.js +1 -1
- package/lib/components/inputs/promocode-input.js.map +1 -1
- package/lib/components/inputs/registration-company-input.js +1 -1
- package/lib/components/inputs/registration-company-input.js.map +1 -1
- package/lib/components/inputs/speaker-input.js +1 -1
- package/lib/components/inputs/speaker-input.js.map +1 -1
- package/lib/components/inputs/sponsor-input.js +1 -1
- package/lib/components/inputs/sponsor-input.js.map +1 -1
- package/lib/components/inputs/summit-input.js +1 -1
- package/lib/components/inputs/summit-input.js.map +1 -1
- package/lib/components/inputs/tag-input.js +1 -1
- package/lib/components/inputs/tag-input.js.map +1 -1
- package/lib/components/inputs/ticket-types-input.js +1 -1
- package/lib/components/inputs/ticket-types-input.js.map +1 -1
- package/lib/components/inputs/upload-input-v3.js +1 -1
- package/lib/components/inputs/upload-input-v3.js.map +1 -1
- package/lib/components/mui/confirm-dialog.js +1 -1
- package/lib/components/mui/confirm-dialog.js.map +1 -1
- package/lib/components/mui/editable-table.js +1 -1
- package/lib/components/mui/editable-table.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/additional-input-list.js +1 -1
- package/lib/components/mui/formik-inputs/additional-input-list.js.map +1 -1
- package/lib/components/mui/formik-inputs/additional-input.js +1 -1
- package/lib/components/mui/formik-inputs/additional-input.js.map +1 -1
- package/lib/components/mui/formik-inputs/company-input.js +1 -1
- package/lib/components/mui/formik-inputs/company-input.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/formik-inputs/dropdown-checkbox.js +1 -1
- package/lib/components/mui/formik-inputs/dropdown-checkbox.js.map +1 -1
- package/lib/components/mui/formik-inputs/dropdown-radio.js +1 -1
- package/lib/components/mui/formik-inputs/dropdown-radio.js.map +1 -1
- package/lib/components/mui/formik-inputs/sponsor-input.js +1 -1
- package/lib/components/mui/formik-inputs/sponsor-input.js.map +1 -1
- package/lib/components/mui/formik-inputs/sponsorship-input.js +1 -1
- package/lib/components/mui/formik-inputs/sponsorship-input.js.map +1 -1
- package/lib/components/mui/formik-inputs/sponsorship-summit-select.js +1 -1
- package/lib/components/mui/formik-inputs/sponsorship-summit-select.js.map +1 -1
- package/lib/components/mui/formik-inputs/summit-addon-select.js +1 -1
- package/lib/components/mui/formik-inputs/summit-addon-select.js.map +1 -1
- package/lib/components/mui/formik-inputs/timepicker.js +1 -1
- package/lib/components/mui/formik-inputs/timepicker.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/lib/components/mui/search-input.js +1 -1
- package/lib/components/mui/search-input.js.map +1 -1
- package/lib/components/mui/show-confirm-dialog.js +1 -1
- package/lib/components/mui/show-confirm-dialog.js.map +1 -1
- package/lib/components/mui/snackbar-notification-context.js +2 -0
- package/lib/components/mui/snackbar-notification-context.js.map +1 -0
- package/lib/components/mui/snackbar-notification.js +1 -1
- package/lib/components/mui/snackbar-notification.js.map +1 -1
- package/lib/components/mui/sortable-table.js +1 -1
- package/lib/components/mui/sortable-table.js.map +1 -1
- package/lib/components/mui/sponsor-addon-select.js +1 -1
- package/lib/components/mui/sponsor-addon-select.js.map +1 -1
- package/lib/components/mui/summit-addon-select.js +1 -1
- package/lib/components/mui/summit-addon-select.js.map +1 -1
- package/lib/components/mui/summits-dropdown.js +1 -1
- package/lib/components/mui/summits-dropdown.js.map +1 -1
- package/lib/components/mui/table.js +1 -1
- package/lib/components/mui/table.js.map +1 -1
- package/lib/components/mui/upload-dialog.js +1 -1
- package/lib/components/mui/upload-dialog.js.map +1 -1
- package/lib/components/sponsored-project-input.js +1 -1
- package/lib/components/sponsored-project-input.js.map +1 -1
- package/lib/components/table-sortable.js +1 -1
- package/lib/components/table-sortable.js.map +1 -1
- package/lib/security/actions.js +1 -1
- package/lib/security/actions.js.map +1 -1
- package/lib/security/methods.js.map +1 -1
- package/lib/security/reducers.js.map +1 -1
- package/lib/security/session-checker.js.map +1 -1
- package/lib/utils/actions.js.map +1 -1
- package/lib/utils/query-actions.js +1 -1
- package/lib/utils/query-actions.js.map +1 -1
- package/package.json +1 -1
- package/.codegraph/config.json +0 -140
- package/docs/plans/2026-04-09-showconfirmdialog-react16-compat.md +0 -83
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/mui/formik-inputs/timepicker.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,I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AAX8B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAerB,EAAS8B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAerB,EAAS,aAAc,CAAEgC,OAAO,GAAO,C,uGCL9D,MAAM,EAA+B3B,QAAQ,kC,cCqB7C,MAAM4B,EAAsBA,EAC1BC,OACAC,QACAC,UACAC,UACAC,WACAC,YAAW,MAEX,MAAOC,EAAOC,EAAMC,IAAWC,EAAAA,EAAAA,UAAST,GAExC,OACEU,IAAAA,cAACC,EAAAA,qBAAoB,CAACC,YAAaC,EAAAA,eACjCH,IAAAA,cAACI,EAAAA,WAAU,CACThB,MAAOQ,EAAMR,MACbiB,SAAUP,EAAQQ,SAClBd,QAASA,EACTC,QAASA,EACTc,SAAUb,EACVH,MAAOG,EACPc,MAAO,CAAC,QAAS,WACjBC,UAAW,CACTC,UAAW,CACTpB,OACAC,QACAoB,MAAOd,EAAKe,SAAWC,QAAQhB,EAAKc,OACpCG,WAAYjB,EAAKe,SAAWf,EAAKc,MACjCI,KAAM,QACNC,WAAW,EACXrB,WACAsB,GAAI,CACF,gCAAiC,CAC/BC,MAAO,QAET,4BAA6B,CAC3BC,WAAY,MACZC,YAAa,YAMF,EAI3B/B,EAAoBgC,UAAY,CAC9B/B,KAAMgC,IAAAA,OAAiBC,YAGzB,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","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 \"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/external commonjs \"@mui/x-date-pickers/TimePicker\"","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-timepicker.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 ","module.exports = require(\"@mui/x-date-pickers/AdapterMoment\");","module.exports = require(\"@mui/x-date-pickers/LocalizationProvider\");","module.exports = require(\"formik\");","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};","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 label,\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 label,\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"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","MuiFormikTimepicker","name","label","minTime","maxTime","timeZone","disabled","field","meta","helpers","useField","React","LocalizationProvider","dateAdapter","AdapterMoment","TimePicker","onChange","setValue","timezone","views","slotProps","textField","error","touched","Boolean","helperText","size","fullWidth","sx","width","marginLeft","marginRight","propTypes","PropTypes","isRequired"],"sourceRoot":""}
|
|
@@ -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(5480),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},5480:(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")},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);const d=require("@mui/material/Dialog");var p=r.n(d);const b=require("@mui/material/DialogActions");var v=r.n(b);const f=require("@mui/material/DialogContent");var h=r.n(f);const x=require("@mui/material/DialogTitle");var 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={8360:(e,t,r)=>{r.d(t,{A:()=>j});var l=r(1116),a=r.n(l),n=r(6031),o=r.n(n),i=r(2015),u=r.n(i),s=r(7994),m=r(2522),c=r(8672),d=r(6915),p=r(5480),b=r(9314),v=r(2462),f=r.n(v),h=r(9825),x=r.n(h),y=r(6842),E=r.n(y),g=r(8619),q=r(3294);const k=["name","label","placeholder","options"],T=e=>{let{name:t,label:r,placeholder:l,options:a}=e,n=f()(e,k);const[i,s]=(0,q.useField)(t),m=l||E().translate("general.select_an_option");return u().createElement(g.FormControl,{fullWidth:!0,error:s.touched&&Boolean(s.error)},r&&u().createElement(g.InputLabel,{id:`${t}-label`},r),u().createElement(g.Select,o()({name:t,label:r,labelId:`${t}-label`,displayEmpty:!0},i,n,{renderValue:e=>{if(!e)return u().createElement("em",null,m);const t=a.find((({value:t})=>t===e));return t?t.label:""}}),a.map((e=>u().createElement(g.MenuItem,{key:`selectop-${e.value}`,value:e.value},e.label)))),s.touched&&s.error&&u().createElement(g.FormHelperText,null,s.error))};T.propTypes={name:x().string.isRequired,options:x().array.isRequired};const P=T;function C(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 O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const j=({rowId:e,field:t,timeZone:r,label:l="",disabled:a=!1})=>{const n={name:`i-${e}-c-${t.class_field}-f-${t.type_id}`,label:l,disabled:a};switch(t.type){case"CheckBox":return u().createElement(s.default,o()({},n,{size:"small"}));case"CheckBoxList":return u().createElement(m.default,o()({},n,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"RadioButtonList":return u().createElement(c.default,o()({},n,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"DateTime":return u().createElement(d.default,n);case"Time":return u().createElement(p.default,o()({},n,{timeZone:r}));case"Quantity":return u().createElement(b.default,o()({},n,{fullWidth:!0,size:"small",type:"number",slotProps:{htmlInput:O({min:t.minimum_quantity},t.maximum_quantity>0?{max:t.maximum_quantity}:{})}}));case"ComboBox":return u().createElement(P,o()({},n,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"Text":return u().createElement(b.default,o()({},n,{fullWidth:!0,size:"small"}));case"TextArea":return u().createElement(b.default,o()({},n,{fullWidth:!0,size:"small",multiline:!0,rows:3}))}}},7994:(e,t,r)=>{r.d(t,{default:()=>v});var l=r(6031),a=r.n(l),n=r(2462),o=r.n(n),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[n,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,a()({name:t},n,{checked:n.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),a=r.n(l),n=r(2462),o=r.n(n),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:n=!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,a()({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:n,size:"small"},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),a=r.n(l),n=r(2462),o=r.n(n),i=r(2015),u=r.n(i),s=r(8619),m=r(3294),c=r(6842),d=r.n(c);const p=["name","label","placeholder","options"],b=e=>{let{name:t,label:r,placeholder:l,options:n}=e,i=o()(e,p);const[c,b,v]=(0,m.useField)(t),f=l||d().translate("general.select_an_option"),h=n.every((({value:e})=>{var t;return null===(t=c.value)||void 0===t?void 0:t.includes(e)}));return u().createElement(s.FormControl,{fullWidth:!0,error:b.touched&&Boolean(b.error)},r&&u().createElement(s.InputLabel,{shrink:!0,id:`${t}-label`},r),u().createElement(s.Select,a()({variant:"outlined",name:t,label:r,labelId:`${t}-label`,multiple:!0,value:c.value||[],onChange:e=>{const{value:t}=e.target;t.includes("all")?h?v.setValue([]):v.setValue(n.map((e=>e.value))):v.setValue(t)},onBlur:c.onBlur,displayEmpty:!0},i,{renderValue:e=>{if(null==e||!e.length)return u().createElement("em",null,f);if(h)return d().translate("general.all");const t=n.filter((({value:t})=>null==e?void 0:e.includes(t))).map((({label:e})=>e));return t.join(", ")}}),u().createElement(s.MenuItem,{key:"all",value:"all"},u().createElement(s.Checkbox,{checked:h}),u().createElement(s.ListItemText,{primary:d().translate("general.all")})),u().createElement(s.Divider,null),n.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=c.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),a=r.n(l),n=r(2462),o=r.n(n),i=r(2015),u=r.n(i),s=r(8619),m=r(3294),c=r(6842),d=r.n(c);const p=["name","label","options","placeholder"],b=e=>{let{name:t,label:r,options:l,placeholder:n}=e,i=o()(e,p);const c=n||d().translate("general.select_an_option"),[b,v,f]=(0,m.useField)(t);return u().createElement(s.FormControl,{fullWidth:!0,error:v.touched&&Boolean(v.error)},r&&u().createElement(s.InputLabel,{shrink:!0,id:`${t}-label`},r),u().createElement(s.Select,a()({variant:"outlined",name:t,label:r,labelId:`${t}-label`,value:b.value||"",onChange:e=>{f.setValue(e.target.value)},displayEmpty:!0},i,{renderValue:e=>{if(!e)return u().createElement("em",null,c);const t=l.find((({value:t})=>t===e));return t?t.label:""}}),l.map((({label:e,value:t})=>u().createElement(s.MenuItem,{key:`radio-ddl-${t}`,value:t},u().createElement(s.Radio,{checked:b.value===t}),u().createElement(s.ListItemText,{primary:e}))))))}},9314:(e,t,r)=>{r.d(t,{default:()=>v});var l=r(6031),a=r.n(l),n=r(2462),o=r.n(n),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:n,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,a()({name:r,label:f},m,{onBlur:m.onBlur,margin:"normal",error:b.touched&&Boolean(b.error),helperText:b.touched&&b.error,slotProps:{htmlInput:{maxLength:n}}},s)),n&&u().createElement(c.Typography,{sx:{fontSize:"1.2rem",color:"#00000099",pl:2}},n-v+" characters left"))};b.propTypes={name:m().string.isRequired,label:m().string,maxLength:m().number,required:m().bool};const v=b},5480:(e,t,r)=>{r.d(t,{default:()=>d});var l=r(2015),a=r.n(l),n=r(9825),o=r.n(n),i=r(4),u=r(5643);const s=require("@mui/x-date-pickers/TimePicker");var m=r(3294);const c=({name:e,label:t,minTime:r,maxTime:l,timeZone:n,disabled:o=!1})=>{const[c,d,p]=(0,m.useField)(e);return a().createElement(i.LocalizationProvider,{dateAdapter:u.AdapterMoment},a().createElement(s.TimePicker,{value:c.value,onChange:p.setValue,minTime:r,maxTime:l,timezone:n,label:n,views:["hours","minutes"],slotProps:{textField:{name:e,label:t,error:d.touched&&Boolean(d.error),helperText:d.touched&&d.error,size:"small",fullWidth:!0,disabled:o,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")},4325:e=>{e.exports=require("@mui/icons-material/Close")},8619:e=>{e.exports=require("@mui/material")},6989:e=>{e.exports=require("@mui/material/Box")},6368:e=>{e.exports=require("@mui/material/Button")},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 a=t[l];if(void 0!==a)return a.exports;var n=t[l]={exports:{}};return e[l](n,n.exports,r),n.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:()=>I});var a=r(2015),n=r.n(a),o=r(9825),i=r.n(o),u=r(6842),s=r.n(u),m=r(6989),c=r.n(m),d=r(6368),p=r.n(d);const b=require("@mui/material/Dialog");var v=r.n(b);const f=require("@mui/material/DialogActions");var h=r.n(f);const x=require("@mui/material/DialogContent");var y=r.n(x);const E=require("@mui/material/DialogTitle");var g=r.n(E);const q=require("@mui/material/Divider");var k=r.n(q);const T=require("@mui/material/IconButton");var P=r.n(T);const C=require("@mui/material/Typography");var O=r.n(C),j=r(4325),B=r.n(j),L=r(8360);const _=({item:e,timeZone:t,open:r,onClose:l})=>{const a=(null==e?void 0:e.meta_fields.filter((e=>"Item"===e.class_field)))||[];return n().createElement(v(),{open:r,onClose:l,maxWidth:"sm",fullWidth:!0},n().createElement(g(),null,s().translate("general.settings")),n().createElement(P(),{"aria-label":"close",onClick:l,sx:e=>({position:"absolute",right:8,top:8,color:e.palette.grey[500]})},n().createElement(B(),null)),n().createElement(k(),null),n().createElement(y(),null,n().createElement(O(),{variant:"body2",component:"div",sx:{marginBottom:"20px"}},null==e?void 0:e.name),n().createElement(k(),{sx:{marginBottom:"20px",marginLeft:"-24px",marginRight:"-24px"}}),a.map((r=>n().createElement(c(),{key:`item-field-${r.type_id}`,sx:{mb:2}},n().createElement(L.A,{field:r,rowId:e.form_item_id,timeZone:t,label:r.name}))))),n().createElement(h(),null,n().createElement(p(),{onClick:()=>{l()},variant:"contained",fullWidth:!0},s().translate("general.save"))))};_.propTypes={item:i().object.isRequired,open:i().bool.isRequired,onClose:i().func.isRequired};const I=_;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,EA3EuBC,EACrBC,QACAC,QACAC,WACAC,QAAQ,GACRC,YAAW,MAEX,MACMC,EAAc,CAAEC,KADT,KAAKN,OAAWC,EAAMM,iBAAiBN,EAAMO,UAC9BL,QAAOC,YAEnC,OAAQH,EAAMQ,MACZ,IAAK,WACH,OAAOC,IAAAA,cAACC,EAAAA,QAAsBN,GAChC,IAAK,eACH,OACEK,IAAAA,cAACE,EAAAA,QAAyBC,IAAA,GACpBR,EAAW,CACfS,KAAK,QACLC,QAASd,EAAMe,OAAOC,KAAKC,IAAC,CAAQC,MAAOD,EAAEE,GAAIjB,MAAOe,EAAEC,aAGhE,IAAK,kBACH,OACET,IAAAA,cAACW,EAAAA,QAAsBR,IAAA,GACjBR,EAAW,CACfS,KAAK,QACLC,QAASd,EAAMe,OAAOC,KAAKC,IAAC,CAAQC,MAAOD,EAAEE,GAAIjB,MAAOe,EAAEC,aAGhE,IAAK,WACH,OAAOT,IAAAA,cAACY,EAAAA,QAAwBjB,GAClC,IAAK,OACH,OAAOK,IAAAA,cAACa,EAAAA,QAAmBV,IAAA,GAAKR,EAAW,CAAEH,SAA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,IAAM,CAAClE,QA/CKmE,KACjBpB,GAAS,EA8CwBpF,QAAQ,YAAYvD,WAAS,GACvDkE,IAAAA,UAAY,kBAGV,EAIbsE,EAAkB3G,UAAY,CAC5B4G,KAAM3G,IAAAA,OAAiBC,WACvB2G,KAAM5G,IAAAA,KAAeC,WACrB4G,QAAS7G,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/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/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/./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/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};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/Dialog\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/DialogActions\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/DialogContent\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/DialogTitle\");","/**\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","ItemTableField","rowId","field","timeZone","label","disabled","commonProps","name","class_field","type_id","type","React","MuiFormikCheckbox","MuiFormikDropdownCheckbox","_extends","size","options","values","map","v","value","id","MuiFormikDropdownRadio","MuiFormikDatepicker","MuiFormikTimepicker","MuiFormikTextField","fullWidth","slotProps","htmlInput","_objectSpread","min","minimum_quantity","maximum_quantity","max","MuiFormikSelect","MenuItem","key","multiline","rows","_ref","props","_objectWithoutProperties","_excluded","meta","useField","FormControl","margin","error","touched","Boolean","FormControlLabel","control","Checkbox","checked","FormHelperText","propTypes","PropTypes","isRequired","require","required","helpers","requiredLabel","LocalizationProvider","dateAdapter","AdapterMoment","DatePicker","onChange","setValue","textField","helperText","day","sx","fontSize","fontWeight","layout","rest","allSelected","every","_field$value","includes","Select","variant","multiple","event","target","opt","onBlur","displayEmpty","renderValue","selected","length","placeholder","T","filter","join","ListItemText","primary","Divider","_field$value2","finalPlaceholder","selectedOption","find","Radio","children","isClearable","shouldShrink","InputLabel","htmlFor","shrink","labelId","notched","style","color","endAdornment","InputAdornment","position","mr","IconButton","onClick","ev","stopPropagation","ClearIcon","maxLength","currentLength","finalLabel","Box","TextField","Typography","pl","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","Dialog","maxWidth","DialogTitle","theme","right","top","palette","grey","CloseIcon","DialogContent","component","marginBottom","exc","form_item_id","DialogActions","Button","handleSave"],"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,iTCGHC,EAAoBC,IAAoD,IAAnD,KAAEC,EAAI,MAAEC,EAAK,YAAEC,EAAW,QAAEC,GAAkBJ,EAANK,EAAIC,IAAAN,EAAAO,GACrE,MAAOC,EAAOC,IAAQC,EAAAA,EAAAA,UAAST,GACzBU,EACJR,GAAeS,IAAAA,UAAY,4BAE7B,OACEC,IAAAA,cAACC,EAAAA,YAAW,CAACC,WAAS,EAACC,MAAOP,EAAKQ,SAAWC,QAAQT,EAAKO,QACxDd,GAASW,IAAAA,cAACM,EAAAA,WAAU,CAACC,GAAI,GAAGnB,WAAeC,GAC5CW,IAAAA,cAACQ,EAAAA,OAAMC,IAAA,CACLrB,KAAMA,EACNC,MAAOA,EACPqB,QAAS,GAAGtB,UACZuB,cAAY,GAERhB,EA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,IAAa,KACZ1J,IAAAA,cAACmG,IAAU,CACTpB,QAAQ,QACR4E,UAAU,MACVrF,GAAI,CAAEsF,aAAc,SAEnBpB,aAAI,EAAJA,EAAMpJ,MAETY,IAAAA,cAAC2F,IAAO,CACNrB,GAAI,CACFsF,aAAc,OACdhD,WAAY,QACZC,YAAa,WAGhB8B,EAAW1H,KAAK4I,GACf7J,IAAAA,cAACiG,IAAG,CAAC7E,IAAK,cAAcyI,EAAI9H,UAAWuC,GAAI,CAAEwF,GAAI,IAC/C9J,IAAAA,cAACyB,EAAAA,EAAc,CACb9B,MAAOkK,EACPnI,MAAO8G,EAAKuB,aACZpI,SAAUA,EACVtC,MAAOwK,EAAIzK,WAKnBY,IAAAA,cAACgK,IAAa,KACZhK,IAAAA,cAACiK,IAAM,CAACf,QA/CKgB,KACjBxB,GAAS,EA8CwB3D,QAAQ,YAAY7E,WAAS,GACvDH,IAAAA,UAAY,kBAGV,EAIbwI,EAAkBjH,UAAY,CAC5BkH,KAAMjH,IAAAA,OAAiBC,WACvBiH,KAAMlH,IAAAA,KAAeC,WACrBkH,QAASnH,IAAAA,KAAeC,YAG1B,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-select-v2.js","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-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/Close\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Box\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Button\"","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/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/material/Divider\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/IconButton\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Typography\"","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 ","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport {\n Select,\n FormHelperText,\n FormControl,\n MenuItem,\n InputLabel\n} from \"@mui/material\";\nimport { useField } from \"formik\";\n\nconst MuiFormikSelectV2 = ({ name, label, placeholder, options, ...rest }) => {\n const [field, meta] = useField(name);\n const finalPlaceholder =\n placeholder || T.translate(\"general.select_an_option\");\n\n return (\n <FormControl fullWidth error={meta.touched && Boolean(meta.error)}>\n {label && <InputLabel id={`${name}-label`}>{label}</InputLabel>}\n <Select\n name={name}\n label={label}\n labelId={`${name}-label`}\n displayEmpty\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...field}\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((op) => (\n <MenuItem key={`selectop-${op.value}`} value={op.value}>\n {op.label}\n </MenuItem>\n ))}\n </Select>\n {meta.touched && meta.error && (\n <FormHelperText>{meta.error}</FormHelperText>\n )}\n </FormControl>\n );\n};\n\nMuiFormikSelectV2.propTypes = {\n name: PropTypes.string.isRequired,\n options: PropTypes.array.isRequired\n};\n\nexport default MuiFormikSelectV2;\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 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 MuiFormikSelectV2 from \"../../formik-inputs/mui-formik-select-v2\";\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} size=\"small\" />;\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 <MuiFormikSelectV2\n {...commonProps}\n size=\"small\"\n options={field.values.map((v) => ({ value: v.id, label: v.value }))}\n />\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 size: \"small\"\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 InputLabel,\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, label, placeholder, options, ...rest }) => {\n const [field, meta, helpers] = useField(name);\n const finalPlaceholder = placeholder || T.translate(\"general.select_an_option\");\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 {label && (\n <InputLabel shrink id={`${name}-label`}>\n {label}\n </InputLabel>\n )}\n <Select\n variant=\"outlined\"\n name={name}\n label={label}\n labelId={`${name}-label`}\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 <em>{finalPlaceholder}</em>;\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 InputLabel,\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, label, 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 {label && (\n <InputLabel shrink id={`${name}-label`}>\n {label}\n </InputLabel>\n )}\n <Select\n variant=\"outlined\"\n name={name}\n label={label}\n labelId={`${name}-label`}\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 { 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 label,\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 label,\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/Close\");","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/material/Box\");","module.exports = require(\"@mui/material/Button\");","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};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/Dialog\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/DialogActions\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/DialogContent\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/DialogTitle\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/Divider\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/IconButton\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/Typography\");","/**\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 Box from \"@mui/material/Box\";\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 from \"@mui/material/Divider\";\nimport IconButton from \"@mui/material/IconButton\";\nimport Typography from \"@mui/material/Typography\";\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 <Box key={`item-field-${exc.type_id}`} sx={{ mb: 2 }}>\n <ItemTableField\n field={exc}\n rowId={item.form_item_id}\n timeZone={timeZone}\n label={exc.name}\n />\n </Box>\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","MuiFormikSelectV2","_ref","name","label","placeholder","options","rest","_objectWithoutProperties","_excluded","field","meta","useField","finalPlaceholder","T","React","FormControl","fullWidth","error","touched","Boolean","InputLabel","id","Select","_extends","labelId","displayEmpty","renderValue","selected","selectedOption","find","value","map","op","MenuItem","key","FormHelperText","propTypes","PropTypes","isRequired","ItemTableField","rowId","timeZone","disabled","commonProps","class_field","type_id","type","MuiFormikCheckbox","size","MuiFormikDropdownCheckbox","values","v","MuiFormikDropdownRadio","MuiFormikDatepicker","MuiFormikTimepicker","MuiFormikTextField","slotProps","htmlInput","_objectSpread","min","minimum_quantity","maximum_quantity","max","multiline","rows","props","margin","FormControlLabel","control","Checkbox","checked","require","required","helpers","requiredLabel","LocalizationProvider","dateAdapter","AdapterMoment","DatePicker","onChange","setValue","textField","helperText","day","sx","fontSize","fontWeight","layout","allSelected","every","_field$value","includes","shrink","variant","multiple","event","target","opt","onBlur","length","selectedNames","filter","join","ListItemText","primary","Divider","_field$value2","Radio","maxLength","currentLength","finalLabel","Box","TextField","Typography","color","pl","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","Dialog","maxWidth","DialogTitle","IconButton","onClick","theme","position","right","top","palette","grey","CloseIcon","DialogContent","component","marginBottom","exc","mb","form_item_id","DialogActions","Button","handleSave"],"sourceRoot":""}
|
|
@@ -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={3209:(e,t,r)=>{r.d(t,{wU:()=>o});const o=500},692:e=>{e.exports=require("@mui/icons-material/Clear")},8619:e=>{e.exports=require("@mui/material")},
|
|
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={3209:(e,t,r)=>{r.d(t,{wU:()=>o});const o=500},692:e=>{e.exports=require("@mui/icons-material/Clear")},8619:e=>{e.exports=require("@mui/material")},1429:e=>{e.exports=require("lodash/debounce")},2015:e=>{e.exports=require("react")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](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 o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}})(),(()=>{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 o={};r.r(o),r.d(o,{default:()=>m});var n=r(2015),a=r.n(n),u=r(8619);const c=require("@mui/icons-material/Search");var i=r.n(c),l=r(692),s=r.n(l),d=r(1429),p=r.n(d),f=r(3209);const m=({term:e,onSearch:t,placeholder:r="Search...",debounced:o})=>{const[c,l]=(0,n.useState)(e),d=(0,n.useRef)(t);(0,n.useEffect)((()=>{d.current=t}),[t]);const m=(0,n.useRef)(p()((e=>d.current(e)),f.wU));(0,n.useEffect)((()=>{l(e||"")}),[e]),(0,n.useEffect)((()=>()=>{var e;return null===(e=m.current)||void 0===e?void 0:e.cancel()}),[]);return a().createElement(u.TextField,{variant:"outlined",value:c,placeholder:r,slotProps:{input:{startAdornment:o&&a().createElement(u.InputAdornment,{position:"start"},a().createElement(i(),{sx:{color:"#0000008F"}})),endAdornment:a().createElement(u.InputAdornment,{position:"end"},c?a().createElement(u.IconButton,{size:"small",onClick:()=>{var e;null===(e=m.current)||void 0===e||e.cancel(),l(""),t("")}},a().createElement(s(),{fontSize:"small",sx:{color:"#0000008F"}})):!o&&a().createElement(i(),{sx:{mr:1,color:"#0000008F",position:"absolute",right:0}}))}},onChange:e=>(e=>{var t;l(e),o&&(null===(t=m.current)||void 0===t||t.call(m,e))})(e.target.value),onKeyDown:e=>{o||"Enter"!==e.key||t(c)},fullWidth:!0,sx:{"& .MuiOutlinedInput-root":{height:"36px"}}})};return o})()));
|
|
2
2
|
//# sourceMappingURL=search-input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/mui/search-input.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,2DCTF,MASMC,EAAgB,G,UCT7BJ,EAAOD,QAAUM,QAAQ,4B,WCAzBL,EAAOD,QAAUM,QAAQ,gB,WCAzBL,EAAOD,QAAUM,QAAQ,S,WCAzBL,EAAOD,QAAUM,QAAQ,Q,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaV,QAGrB,IAAIC,EAASM,EAAyBE,GAAY,CAGjDT,QAAS,CAAC,GAOX,OAHAY,EAAoBH,GAAUR,EAAQA,EAAOD,QAASQ,GAG/CP,EAAOD,OACf,C,MCrBAQ,EAAoBK,EAAKZ,IACxB,IAAIa,EAASb,GAAUA,EAAOc,WAC7B,IAAOd,EAAiB,QACxB,IAAM,EAEP,OADAO,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAA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AAEC,MAAO,gBAG7BC,aACEX,IAAAA,cAACM,EAAAA,eAAc,CAACC,SAAS,OACtBlB,EACCW,IAAAA,cAACY,EAAAA,WAAU,CAACC,KAAK,QAAQC,QAhCnBC,KAAM,IAAAC,EACI,QAA5BA,EAAApB,EAAqBD,eAAO,IAAAqB,GAA5BA,EAA8BjB,SAC9BT,EAAc,IACdJ,EAAS,GAAG,GA8BEc,IAAAA,cAACiB,IAAS,CAACC,SAAS,QAAQT,GAAI,CAAEC,MAAO,iBAI1CtB,GAAaY,IAAAA,cAACQ,IAAU,CACvBC,GAAI,CAAEU,GAAI,EAAGT,MAAO,YAAaH,SAAU,WAAYa,MAAO,QAO1EC,SAAWC,GAvCOvC,KAAU,IAAAwC,EAC9BjC,EAAcP,GACVK,IAAuC,QAA5BmC,EAAA3B,EAAqBD,eAAO,IAAA4B,GAA5BA,EAAA5C,KAAAiB,EAA+Bb,GAAM,EAqChCyC,CAAaF,EAAGG,OAAO1C,OACzC2C,UAnCmBJ,IAChBlC,GAAwB,UAAXkC,EAAGrD,KACnBiB,EAASG,EACX,EAiCEsC,WAAS,EACTlB,GAAI,CACF,2BAA4B,CAC1BmB,OAAQ,UAGZ,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Clear\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"lodash\"","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/external commonjs \"@mui/icons-material/Search\"","webpack://openstack-uicore-foundation/./src/components/mui/search-input.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 ","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n\nexport const FILE_UPLOAD_STATUS = {\n PENDING: \"PENDING\",\n DEADLINE_ALERT: \"DEADLINE ALERT\",\n DEADLINE_MISSED: \"DEADLINE MISSED\",\n COMPLETE: \"COMPLETE\"\n};\n\nexport const FILE_UPLOAD_STATUS_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"success.light\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"error\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"warning.light\",\n [FILE_UPLOAD_STATUS.PENDING]: \"default\"\n};\n\nexport const FILE_UPLOAD_STATUS_BKGR_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"white\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"#D32F2F0A\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"#EF6C000A\",\n [FILE_UPLOAD_STATUS.PENDING]: \"white\"\n};","module.exports = require(\"@mui/icons-material/Clear\");","module.exports = require(\"@mui/material\");","module.exports = require(\"lodash\");","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};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Search\");","/**\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, { useEffect, useState, useRef } from \"react\";\nimport { TextField, IconButton, InputAdornment } from \"@mui/material\";\nimport SearchIcon from \"@mui/icons-material/Search\";\nimport ClearIcon from \"@mui/icons-material/Clear\";\nimport { debounce } from \"lodash\";\nimport { DEBOUNCE_WAIT } from \"../../utils/constants\";\n\nconst SearchInput = ({ term, onSearch, placeholder = \"Search...\", debounced }) => {\n const [searchTerm, setSearchTerm] = useState(term);\n\n const onSearchRef = useRef(onSearch);\n useEffect(() => {\n onSearchRef.current = onSearch;\n }, [onSearch]);\n\n const onSearchDebouncedRef = useRef(\n debounce((value) => onSearchRef.current(value), DEBOUNCE_WAIT)\n );\n\n useEffect(() => {\n setSearchTerm(term || \"\");\n }, [term]);\n\n useEffect(() => () => onSearchDebouncedRef.current?.cancel(), []);\n\n const handleClear = () => {\n onSearchDebouncedRef.current?.cancel();\n setSearchTerm(\"\");\n onSearch(\"\");\n };\n\n const handleChange = (value) => {\n setSearchTerm(value);\n if (debounced) onSearchDebouncedRef.current?.(value);\n };\n\n const handleKeyDown = (ev) => {\n if (!debounced && ev.key === \"Enter\") {\n onSearch(searchTerm);\n }\n };\n\n return (\n <TextField\n variant=\"outlined\"\n value={searchTerm}\n placeholder={placeholder}\n slotProps={{\n input: { \n startAdornment: debounced && (\n <InputAdornment position=\"start\">\n <SearchIcon sx={{ color: \"#0000008F\" }} />\n </InputAdornment>\n ),\n endAdornment: (\n <InputAdornment position=\"end\">\n {searchTerm ? (\n <IconButton size=\"small\" onClick={handleClear}>\n <ClearIcon fontSize=\"small\" sx={{ color: \"#0000008F\" }} />\n </IconButton>\n ) : \n (\n !debounced && <SearchIcon\n sx={{ mr: 1, color: \"#0000008F\", position: \"absolute\", right: 0 }}\n />\n )}\n </InputAdornment>\n )\n }\n }}\n onChange={(ev) => handleChange(ev.target.value)}\n onKeyDown={handleKeyDown}\n fullWidth\n sx={{\n \"& .MuiOutlinedInput-root\": {\n height: \"36px\"\n }\n }}\n />\n );\n};\n\nexport default SearchInput;\n"],"names":["root","factory","exports","module","define","amd","this","DEBOUNCE_WAIT","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","SearchInput","term","onSearch","placeholder","debounced","searchTerm","setSearchTerm","useState","onSearchRef","useRef","useEffect","current","onSearchDebouncedRef","debounce","_onSearchDebouncedRef","cancel","React","TextField","variant","slotProps","input","startAdornment","InputAdornment","position","SearchIcon","sx","color","endAdornment","IconButton","size","onClick","handleClear","_onSearchDebouncedRef2","ClearIcon","fontSize","mr","right","onChange","ev","_onSearchDebouncedRef3","handleChange","target","onKeyDown","fullWidth","height"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"components/mui/search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wC,EAC9BjC,EAAcP,GACVK,IAAuC,QAA5BmC,EAAA3B,EAAqBD,eAAO,IAAA4B,GAA5BA,EAAA5C,KAAAiB,EAA+Bb,GAAM,EAqChCyC,CAAaF,EAAGG,OAAO1C,OACzC2C,UAnCmBJ,IAChBlC,GAAwB,UAAXkC,EAAGrD,KACnBiB,EAASG,EACX,EAiCEsC,WAAS,EACTlB,GAAI,CACF,2BAA4B,CAC1BmB,OAAQ,UAGZ,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Clear\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"lodash/debounce\"","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/external commonjs \"@mui/icons-material/Search\"","webpack://openstack-uicore-foundation/./src/components/mui/search-input.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 ","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n\nexport const FILE_UPLOAD_STATUS = {\n PENDING: \"PENDING\",\n DEADLINE_ALERT: \"DEADLINE ALERT\",\n DEADLINE_MISSED: \"DEADLINE MISSED\",\n COMPLETE: \"COMPLETE\"\n};\n\nexport const FILE_UPLOAD_STATUS_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"success.light\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"error\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"warning.light\",\n [FILE_UPLOAD_STATUS.PENDING]: \"default\"\n};\n\nexport const FILE_UPLOAD_STATUS_BKGR_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"white\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"#D32F2F0A\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"#EF6C000A\",\n [FILE_UPLOAD_STATUS.PENDING]: \"white\"\n};","module.exports = require(\"@mui/icons-material/Clear\");","module.exports = require(\"@mui/material\");","module.exports = require(\"lodash/debounce\");","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};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Search\");","/**\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, { useEffect, useState, useRef } from \"react\";\nimport { TextField, IconButton, InputAdornment } from \"@mui/material\";\nimport SearchIcon from \"@mui/icons-material/Search\";\nimport ClearIcon from \"@mui/icons-material/Clear\";\nimport debounce from \"lodash/debounce\";\nimport { DEBOUNCE_WAIT } from \"../../utils/constants\";\n\nconst SearchInput = ({ term, onSearch, placeholder = \"Search...\", debounced }) => {\n const [searchTerm, setSearchTerm] = useState(term);\n\n const onSearchRef = useRef(onSearch);\n useEffect(() => {\n onSearchRef.current = onSearch;\n }, [onSearch]);\n\n const onSearchDebouncedRef = useRef(\n debounce((value) => onSearchRef.current(value), DEBOUNCE_WAIT)\n );\n\n useEffect(() => {\n setSearchTerm(term || \"\");\n }, [term]);\n\n useEffect(() => () => onSearchDebouncedRef.current?.cancel(), []);\n\n const handleClear = () => {\n onSearchDebouncedRef.current?.cancel();\n setSearchTerm(\"\");\n onSearch(\"\");\n };\n\n const handleChange = (value) => {\n setSearchTerm(value);\n if (debounced) onSearchDebouncedRef.current?.(value);\n };\n\n const handleKeyDown = (ev) => {\n if (!debounced && ev.key === \"Enter\") {\n onSearch(searchTerm);\n }\n };\n\n return (\n <TextField\n variant=\"outlined\"\n value={searchTerm}\n placeholder={placeholder}\n slotProps={{\n input: { \n startAdornment: debounced && (\n <InputAdornment position=\"start\">\n <SearchIcon sx={{ color: \"#0000008F\" }} />\n </InputAdornment>\n ),\n endAdornment: (\n <InputAdornment position=\"end\">\n {searchTerm ? (\n <IconButton size=\"small\" onClick={handleClear}>\n <ClearIcon fontSize=\"small\" sx={{ color: \"#0000008F\" }} />\n </IconButton>\n ) : \n (\n !debounced && <SearchIcon\n sx={{ mr: 1, color: \"#0000008F\", position: \"absolute\", right: 0 }}\n />\n )}\n </InputAdornment>\n )\n }\n }}\n onChange={(ev) => handleChange(ev.target.value)}\n onKeyDown={handleKeyDown}\n fullWidth\n sx={{\n \"& .MuiOutlinedInput-root\": {\n height: \"36px\"\n }\n }}\n />\n );\n};\n\nexport default SearchInput;\n"],"names":["root","factory","exports","module","define","amd","this","DEBOUNCE_WAIT","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","SearchInput","term","onSearch","placeholder","debounced","searchTerm","setSearchTerm","useState","onSearchRef","useRef","useEffect","current","onSearchDebouncedRef","debounce","_onSearchDebouncedRef","cancel","React","TextField","variant","slotProps","input","startAdornment","InputAdornment","position","SearchIcon","sx","color","endAdornment","IconButton","size","onClick","handleClear","_onSearchDebouncedRef2","ClearIcon","fontSize","mr","right","onChange","ev","_onSearchDebouncedRef3","handleChange","target","onKeyDown","fullWidth","height"],"sourceRoot":""}
|
|
@@ -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={
|
|
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={9299:(e,t,o)=>{o.d(t,{default:()=>C});var n=o(2015),r=o.n(n),i=o(9825),l=o.n(i),c=o(8619),a=o(8177),u=o.n(a),p=o(1519),s=o.n(p);const f=require("@mui/icons-material/Info");var m=o.n(f);const d=require("@mui/icons-material/Warning");var y=o.n(d);const x={warning:r().createElement(y(),{color:"warning"}),success:r().createElement(u(),{color:"success"}),error:r().createElement(s(),{color:"error"}),info:r().createElement(m(),{color:"info"})},g=({open:e,title:t,text:o,iconType:n="",onConfirm:i,onCancel:l,confirmButtonText:a="Confirm",confirmButtonColor:u="primary",cancelButtonText:p="Cancel",cancelButtonColor:s="primary"})=>r().createElement(c.Dialog,{open:e,onClose:l},r().createElement(c.DialogTitle,{sx:{p:2},component:"div"},r().createElement(c.Typography,{variant:"h5"},t)),r().createElement(c.Divider,null),r().createElement(c.DialogContent,{sx:{p:2}},r().createElement("div",{style:{display:"flex",alignItems:"center"}},x[n]&&r().createElement("div",{style:{marginRight:10}},x[n]),r().createElement(c.Typography,{variant:"body1"},o))),r().createElement(c.Divider,{sx:{margin:"10px 0px 10px 0px"}}),r().createElement(c.DialogActions,null,r().createElement(c.Button,{fullWidth:!0,onClick:l,color:s,variant:"outlined",sx:{whiteSpace:"nowrap",minWidth:100}},p),r().createElement(c.Button,{fullWidth:!0,onClick:i,color:u,variant:"contained",sx:{whiteSpace:"nowrap",minWidth:100}},a)));g.propTypes={open:l().bool,title:l().string.isRequired,text:l().string.isRequired,iconType:l().string,onConfirm:l().func.isRequired,onCancel:l().func.isRequired,confirmButtonText:l().string,confirmButtonColor:l().string,cancelButtonText:l().string,cancelButtonColor:l().string},g.defaultProps={open:!1,iconType:"warning",confirmButtonText:"Confirm",confirmButtonColor:"primary",cancelButtonText:"Cancel",cancelButtonColor:"default"};const C=g},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},8177:e=>{e.exports=require("@mui/icons-material/CheckCircle")},1519:e=>{e.exports=require("@mui/icons-material/Error")},8619:e=>{e.exports=require("@mui/material")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}(()=>{o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t}})(),(()=>{o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var n={};o.r(n),o.d(n,{GlobalConfirmDialog:()=>m,default:()=>d});var r=o(1116),i=o.n(r),l=o(2015),c=o.n(l),a=o(9299);function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function p(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?u(Object(o),!0).forEach((function(t){i()(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const s="__oif_confirm_dialog_bridge__",f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{},m=()=>{const[e,t]=(0,l.useState)(null);(0,l.useEffect)((()=>(f[s]=e=>new Promise((o=>{t(p(p({},e),{},{open:!0,onResolve:o}))})),()=>{f[s]=null})),[]);return e?c().createElement(a.default,{open:e.open,title:e.title,text:e.text,iconType:e.iconType,confirmButtonText:e.confirmButtonText,cancelButtonText:e.cancelButtonText,confirmButtonColor:e.confirmButtonColor,cancelButtonColor:e.cancelButtonColor,onConfirm:()=>{null!=e&&e.onResolve&&e.onResolve(!0),t(null)},onCancel:()=>{null!=e&&e.onResolve&&e.onResolve(!1),t(null)}}):null},d=({title:e,text:t,iconType:o="",confirmButtonText:n="Confirm",cancelButtonText:r="Cancel",confirmButtonColor:i="primary",cancelButtonColor:l="primary"})=>{if(!f[s])throw new Error("[openstack-uicore-foundation] showConfirmDialog: <GlobalConfirmDialog /> is not mounted. Add <GlobalConfirmDialog /> to the root of your app.");return f[s]({title:e,text:t,iconType:o,confirmButtonText:n,cancelButtonText:r,confirmButtonColor:i,cancelButtonColor:l})};return n})()));
|
|
2
2
|
//# sourceMappingURL=show-confirm-dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/mui/show-confirm-dialog.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,8HCiBT,MAAMC,EAAU,CACdC,QAASC,IAAAA,cAACC,EAAAA,QAAO,CAACC,MAAM,YACxBC,QAASH,IAAAA,cAACI,EAAAA,YAAW,CAACF,MAAM,YAC5BG,MAAOL,IAAAA,cAACM,EAAAA,MAAK,CAACJ,MAAM,UACpBK,KAAMP,IAAAA,cAACQ,EAAAA,KAAI,CAACN,MAAM,UAGdO,EAAgBA,EACpBC,OACAC,QACAC,OACAC,WAAW,GACXC,YACAC,WACAC,oBAAoB,UACpBC,qBAAqB,UACrBC,mBAAmB,SACnBC,oBAAoB,aAEpBnB,IAAAA,cAACoB,EAAAA,OAAM,CAACV,KAAMA,EAAMW,QAASN,GAC3Bf,IAAAA,cAACsB,EAAAA,YAAW,CAACC,GAAI,CAAEC,EAAG,GAAKC,UAAU,OACnCzB,IAAAA,cAAC0B,EAAAA,WAAU,CAACC,QAAQ,MAAMhB,IAE5BX,IAAAA,cAAC4B,EAAAA,QAAO,MACR5B,IAAAA,cAAC6B,EAAAA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AA,cAACS,EAAAA,QAAa,CACZC,KAAMoE,EAAYpE,KAClBC,MAAOmE,EAAYnE,MACnBC,KAAMkE,EAAYlE,KAClBC,SAAUiE,EAAYjE,SACtBG,kBAAmB8D,EAAY9D,kBAC/BE,iBAAkB4D,EAAY5D,iBAC9BD,mBAAoB6D,EAAY7D,mBAChCE,kBAAmB2D,EAAY3D,kBAC/BL,UAtBkByE,KAChBT,SAAAA,EAAaQ,WAAWR,EAAYQ,WAAU,GAClDP,EAAe,KAAK,EAqBlBhE,SAlBiByE,KACfV,SAAAA,EAAaQ,WAAWR,EAAYQ,WAAU,GAClDP,EAAe,KAAK,IAGG,IAcrB,EAIN,EA7E0BU,EACxB9E,QACAC,OACAC,WAAW,GACXG,oBAAoB,UACpBE,mBAAmB,SACnBD,qBAAqB,UACrBE,oBAAoB,cAEpB,IAAKuD,EAAQD,GACX,MAAM,IAAInE,MACR,iJAKJ,OAAOoE,EAAQD,GAAY,CACzB9D,QACAC,OACAC,WACAG,oBACAE,mBACAD,qBACAE,qBACA,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/mui/confirm-dialog.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","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/showConfirmDialog.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 PropTypes from \"prop-types\";\nimport {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Divider,\n Typography\n} from \"@mui/material\";\nimport { CheckCircle, Error, Info, Warning } from \"@mui/icons-material\";\n\nconst iconMap = {\n warning: <Warning color=\"warning\" />,\n success: <CheckCircle color=\"success\" />,\n error: <Error color=\"error\" />,\n info: <Info color=\"info\" />\n};\n\nconst ConfirmDialog = ({\n open,\n title,\n text,\n iconType = \"\",\n onConfirm,\n onCancel,\n confirmButtonText = \"Confirm\",\n confirmButtonColor = \"primary\",\n cancelButtonText = \"Cancel\",\n cancelButtonColor = \"primary\"\n}) => (\n <Dialog open={open} onClose={onCancel}>\n <DialogTitle sx={{ p: 2 }} component=\"div\">\n <Typography variant=\"h5\">{title}</Typography>\n </DialogTitle>\n <Divider />\n <DialogContent sx={{ p: 2 }}>\n <div style={{ display: \"flex\", alignItems: \"center\" }}>\n {iconMap[iconType] && (\n <div style={{ marginRight: 10 }}>{iconMap[iconType]}</div>\n )}\n <Typography variant=\"body1\">{text}</Typography>\n </div>\n </DialogContent>\n <Divider sx={{ margin: \"10px 0px 10px 0px\" }} />\n <DialogActions>\n <Button\n fullWidth\n onClick={onCancel}\n color={cancelButtonColor}\n variant=\"outlined\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {cancelButtonText}\n </Button>\n <Button\n fullWidth\n onClick={onConfirm}\n color={confirmButtonColor}\n variant=\"contained\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {confirmButtonText}\n </Button>\n </DialogActions>\n </Dialog>\n);\n\nConfirmDialog.propTypes = {\n open: PropTypes.bool,\n title: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n iconType: PropTypes.string,\n onConfirm: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n confirmButtonText: PropTypes.string,\n confirmButtonColor: PropTypes.string,\n cancelButtonText: PropTypes.string,\n cancelButtonColor: PropTypes.string\n};\n\nConfirmDialog.defaultProps = {\n open: false,\n iconType: \"warning\",\n confirmButtonText: \"Confirm\",\n confirmButtonColor: \"primary\",\n cancelButtonText: \"Cancel\",\n cancelButtonColor: \"default\"\n};\n\nexport default ConfirmDialog;\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@mui/icons-material\");","module.exports = require(\"@mui/material\");","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, { useState, useEffect } from \"react\";\nimport ConfirmDialog from \"./confirm-dialog\";\n\n/**\n * Imperative confirm dialog API.\n *\n * SETUP (required):\n * Place <GlobalConfirmDialog /> at the root of your app:\n *\n * import { GlobalConfirmDialog } from\n * 'openstack-uicore-foundation/lib/components/mui/show-confirm-dialog';\n *\n * function App() {\n * return (\n * <>\n * <YourApp />\n * <GlobalConfirmDialog />\n * </>\n * );\n * }\n *\n * USAGE (works from any file — the bridge is shared via globalThis):\n * import showConfirmDialog from\n * 'openstack-uicore-foundation/lib/components/mui/show-confirm-dialog';\n *\n * const confirmed = await showConfirmDialog({\n * title: 'Delete Item?',\n * text: 'This cannot be undone'\n * });\n */\n\n// Shared bridge reference stored on globalThis so that all webpack bundles\n// (table, sortable-table, show-confirm-dialog, index, etc.) read/write the\n// same callback. A module-level variable would be duplicated per bundle.\nconst BRIDGE_KEY = \"__oif_confirm_dialog_bridge__\";\nconst _global = typeof globalThis !== \"undefined\" ? globalThis : typeof window !== \"undefined\" ? window : {};\n\n/**\n * @param param0\n * @param param0.title\n * @param param0.text\n * @param param0.iconType\n * @param param0.confirmButtonText\n * @param param0.cancelButtonText\n * @param param0.confirmButtonColor\n * @param param0.cancelButtonColor\n * @returns {Promise<boolean>}\n */\nconst showConfirmDialog = ({\n title,\n text,\n iconType = \"\",\n confirmButtonText = \"Confirm\",\n cancelButtonText = \"Cancel\",\n confirmButtonColor = \"primary\",\n cancelButtonColor = \"primary\"\n}) => {\n if (!_global[BRIDGE_KEY]) {\n throw new Error(\n \"[openstack-uicore-foundation] showConfirmDialog: <GlobalConfirmDialog /> is not mounted. \" +\n \"Add <GlobalConfirmDialog /> to the root of your app.\"\n );\n }\n\n return _global[BRIDGE_KEY]({\n title,\n text,\n iconType,\n confirmButtonText,\n cancelButtonText,\n confirmButtonColor,\n cancelButtonColor\n });\n};\n\n/**\n * Global confirm dialog component. Place at the root of your app:\n *\n * <App>\n * ...\n * <GlobalConfirmDialog />\n * </App>\n *\n * Then call showConfirmDialog() anywhere.\n */\nexport const GlobalConfirmDialog = () => {\n const [dialogState, setDialogState] = useState(null);\n\n useEffect(() => {\n _global[BRIDGE_KEY] = (options) => {\n return new Promise((resolve) => {\n setDialogState({ ...options, open: true, onResolve: resolve });\n });\n };\n return () => { _global[BRIDGE_KEY] = null; };\n }, []);\n\n const handleConfirm = () => {\n if (dialogState?.onResolve) dialogState.onResolve(true);\n setDialogState(null);\n };\n\n const handleCancel = () => {\n if (dialogState?.onResolve) dialogState.onResolve(false);\n setDialogState(null);\n };\n\n if (!dialogState) return null;\n\n return (\n <ConfirmDialog\n open={dialogState.open}\n title={dialogState.title}\n text={dialogState.text}\n iconType={dialogState.iconType}\n confirmButtonText={dialogState.confirmButtonText}\n cancelButtonText={dialogState.cancelButtonText}\n confirmButtonColor={dialogState.confirmButtonColor}\n cancelButtonColor={dialogState.cancelButtonColor}\n onConfirm={handleConfirm}\n onCancel={handleCancel}\n />\n );\n};\n\nexport default showConfirmDialog;\n"],"names":["root","factory","exports","module","define","amd","this","iconMap","warning","React","Warning","color","success","CheckCircle","error","Error","info","Info","ConfirmDialog","open","title","text","iconType","onConfirm","onCancel","confirmButtonText","confirmButtonColor","cancelButtonText","cancelButtonColor","Dialog","onClose","DialogTitle","sx","p","component","Typography","variant","Divider","DialogContent","style","display","alignItems","marginRight","margin","DialogActions","Button","fullWidth","onClick","whiteSpace","minWidth","propTypes","PropTypes","isRequired","defaultProps","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","BRIDGE_KEY","_global","globalThis","window","GlobalConfirmDialog","dialogState","setDialogState","useState","useEffect","options","Promise","resolve","_objectSpread","onResolve","handleConfirm","handleCancel","showConfirmDialog"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"components/mui/show-confirm-dialog.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,0JCTT,MAAM,EAA+BC,QAAQ,4B,aCA7C,MAAM,EAA+BA,QAAQ,+B,aC6B7C,MAAMC,EAAU,CACdC,QAASC,IAAAA,cAACC,IAAO,CAACC,MAAM,YACxBC,QAASH,IAAAA,cAACI,IAAW,CAACF,MAAM,YAC5BG,MAAOL,IAAAA,cAACM,IAAK,CAACJ,MAAM,UACpBK,KAAMP,IAAAA,cAACQ,IAAI,CAACN,MAAM,UAGdO,EAAgBA,EACpBC,OACAC,QACAC,OACAC,WAAW,GACXC,YACAC,WACAC,oBAAoB,UACpBC,qBAAqB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,WAA6BA,WAA+B,oBAAXC,OAAyBA,OAAS,CAAC,EAkD9FC,EAAsBA,KACjC,MAAOC,EAAaC,IAAkBC,EAAAA,EAAAA,UAAS,OAE/CC,EAAAA,EAAAA,YAAU,KACRP,EAAQD,GAAeS,GACd,IAAIC,SAASC,IAClBL,EAAcM,EAAAA,EAAC,CAAC,EAAIH,GAAO,IAAEvE,MAAM,EAAM2E,UAAWF,IAAU,IAG3D,KAAQV,EAAQD,GAAc,IAAI,IACxC,IAYH,OAAKK,EAGH7E,IAAAA,cAACS,EAAAA,QAAa,CACZC,KAAMmE,EAAYnE,KAClBC,MAAOkE,EAAYlE,MACnBC,KAAMiE,EAAYjE,KAClBC,SAAUgE,EAAYhE,SACtBG,kBAAmB6D,EAAY7D,kBAC/BE,iBAAkB2D,EAAY3D,iBAC9BD,mBAAoB4D,EAAY5D,mBAChCE,kBAAmB0D,EAAY1D,kBAC/BL,UAtBkBwE,KAChBT,SAAAA,EAAaQ,WAAWR,EAAYQ,WAAU,GAClDP,EAAe,KAAK,EAqBlB/D,SAlBiBwE,KACfV,SAAAA,EAAaQ,WAAWR,EAAYQ,WAAU,GAClDP,EAAe,KAAK,IAGG,IAcrB,EAIN,EA7E0BU,EACxB7E,QACAC,OACAC,WAAW,GACXG,oBAAoB,UACpBE,mBAAmB,SACnBD,qBAAqB,UACrBE,oBAAoB,cAEpB,IAAKsD,EAAQD,GACX,MAAM,IAAIlE,MACR,iJAKJ,OAAOmE,EAAQD,GAAY,CACzB7D,QACAC,OACAC,WACAG,oBACAE,mBACAD,qBACAE,qBACA,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Info\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Warning\"","webpack://openstack-uicore-foundation/./src/components/mui/confirm-dialog.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/CheckCircle\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Error\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","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/showConfirmDialog.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 ","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Info\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Warning\");","/**\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 Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Divider,\n Typography\n} from \"@mui/material\";\nimport CheckCircle from \"@mui/icons-material/CheckCircle\";\nimport Error from \"@mui/icons-material/Error\";\nimport Info from \"@mui/icons-material/Info\";\nimport Warning from \"@mui/icons-material/Warning\";\n\nconst iconMap = {\n warning: <Warning color=\"warning\" />,\n success: <CheckCircle color=\"success\" />,\n error: <Error color=\"error\" />,\n info: <Info color=\"info\" />\n};\n\nconst ConfirmDialog = ({\n open,\n title,\n text,\n iconType = \"\",\n onConfirm,\n onCancel,\n confirmButtonText = \"Confirm\",\n confirmButtonColor = \"primary\",\n cancelButtonText = \"Cancel\",\n cancelButtonColor = \"primary\"\n}) => (\n <Dialog open={open} onClose={onCancel}>\n <DialogTitle sx={{ p: 2 }} component=\"div\">\n <Typography variant=\"h5\">{title}</Typography>\n </DialogTitle>\n <Divider />\n <DialogContent sx={{ p: 2 }}>\n <div style={{ display: \"flex\", alignItems: \"center\" }}>\n {iconMap[iconType] && (\n <div style={{ marginRight: 10 }}>{iconMap[iconType]}</div>\n )}\n <Typography variant=\"body1\">{text}</Typography>\n </div>\n </DialogContent>\n <Divider sx={{ margin: \"10px 0px 10px 0px\" }} />\n <DialogActions>\n <Button\n fullWidth\n onClick={onCancel}\n color={cancelButtonColor}\n variant=\"outlined\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {cancelButtonText}\n </Button>\n <Button\n fullWidth\n onClick={onConfirm}\n color={confirmButtonColor}\n variant=\"contained\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {confirmButtonText}\n </Button>\n </DialogActions>\n </Dialog>\n);\n\nConfirmDialog.propTypes = {\n open: PropTypes.bool,\n title: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n iconType: PropTypes.string,\n onConfirm: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n confirmButtonText: PropTypes.string,\n confirmButtonColor: PropTypes.string,\n cancelButtonText: PropTypes.string,\n cancelButtonColor: PropTypes.string\n};\n\nConfirmDialog.defaultProps = {\n open: false,\n iconType: \"warning\",\n confirmButtonText: \"Confirm\",\n confirmButtonColor: \"primary\",\n cancelButtonText: \"Cancel\",\n cancelButtonColor: \"default\"\n};\n\nexport default ConfirmDialog;\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@mui/icons-material/CheckCircle\");","module.exports = require(\"@mui/icons-material/Error\");","module.exports = require(\"@mui/material\");","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, { useState, useEffect } from \"react\";\nimport ConfirmDialog from \"./confirm-dialog\";\n\n/**\n * Imperative confirm dialog API.\n *\n * SETUP (required):\n * Place <GlobalConfirmDialog /> at the root of your app:\n *\n * import { GlobalConfirmDialog } from\n * 'openstack-uicore-foundation/lib/components/mui/show-confirm-dialog';\n *\n * function App() {\n * return (\n * <>\n * <YourApp />\n * <GlobalConfirmDialog />\n * </>\n * );\n * }\n *\n * USAGE (works from any file — the bridge is shared via globalThis):\n * import showConfirmDialog from\n * 'openstack-uicore-foundation/lib/components/mui/show-confirm-dialog';\n *\n * const confirmed = await showConfirmDialog({\n * title: 'Delete Item?',\n * text: 'This cannot be undone'\n * });\n */\n\n// Shared bridge reference stored on globalThis so that all webpack bundles\n// (table, sortable-table, show-confirm-dialog, index, etc.) read/write the\n// same callback. A module-level variable would be duplicated per bundle.\nconst BRIDGE_KEY = \"__oif_confirm_dialog_bridge__\";\nconst _global = typeof globalThis !== \"undefined\" ? globalThis : typeof window !== \"undefined\" ? window : {};\n\n/**\n * @param param0\n * @param param0.title\n * @param param0.text\n * @param param0.iconType\n * @param param0.confirmButtonText\n * @param param0.cancelButtonText\n * @param param0.confirmButtonColor\n * @param param0.cancelButtonColor\n * @returns {Promise<boolean>}\n */\nconst showConfirmDialog = ({\n title,\n text,\n iconType = \"\",\n confirmButtonText = \"Confirm\",\n cancelButtonText = \"Cancel\",\n confirmButtonColor = \"primary\",\n cancelButtonColor = \"primary\"\n}) => {\n if (!_global[BRIDGE_KEY]) {\n throw new Error(\n \"[openstack-uicore-foundation] showConfirmDialog: <GlobalConfirmDialog /> is not mounted. \" +\n \"Add <GlobalConfirmDialog /> to the root of your app.\"\n );\n }\n\n return _global[BRIDGE_KEY]({\n title,\n text,\n iconType,\n confirmButtonText,\n cancelButtonText,\n confirmButtonColor,\n cancelButtonColor\n });\n};\n\n/**\n * Global confirm dialog component. Place at the root of your app:\n *\n * <App>\n * ...\n * <GlobalConfirmDialog />\n * </App>\n *\n * Then call showConfirmDialog() anywhere.\n */\nexport const GlobalConfirmDialog = () => {\n const [dialogState, setDialogState] = useState(null);\n\n useEffect(() => {\n _global[BRIDGE_KEY] = (options) => {\n return new Promise((resolve) => {\n setDialogState({ ...options, open: true, onResolve: resolve });\n });\n };\n return () => { _global[BRIDGE_KEY] = null; };\n }, []);\n\n const handleConfirm = () => {\n if (dialogState?.onResolve) dialogState.onResolve(true);\n setDialogState(null);\n };\n\n const handleCancel = () => {\n if (dialogState?.onResolve) dialogState.onResolve(false);\n setDialogState(null);\n };\n\n if (!dialogState) return null;\n\n return (\n <ConfirmDialog\n open={dialogState.open}\n title={dialogState.title}\n text={dialogState.text}\n iconType={dialogState.iconType}\n confirmButtonText={dialogState.confirmButtonText}\n cancelButtonText={dialogState.cancelButtonText}\n confirmButtonColor={dialogState.confirmButtonColor}\n cancelButtonColor={dialogState.cancelButtonColor}\n onConfirm={handleConfirm}\n onCancel={handleCancel}\n />\n );\n};\n\nexport default showConfirmDialog;\n"],"names":["root","factory","exports","module","define","amd","this","require","iconMap","warning","React","Warning","color","success","CheckCircle","error","Error","info","Info","ConfirmDialog","open","title","text","iconType","onConfirm","onCancel","confirmButtonText","confirmButtonColor","cancelButtonText","cancelButtonColor","Dialog","onClose","DialogTitle","sx","p","component","Typography","variant","Divider","DialogContent","style","display","alignItems","marginRight","margin","DialogActions","Button","fullWidth","onClick","whiteSpace","minWidth","propTypes","PropTypes","isRequired","defaultProps","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","BRIDGE_KEY","_global","globalThis","window","GlobalConfirmDialog","dialogState","setDialogState","useState","useEffect","options","Promise","resolve","_objectSpread","onResolve","handleConfirm","handleCancel","showConfirmDialog"],"sourceRoot":""}
|
|
@@ -0,0 +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={2015:e=>{e.exports=require("react")}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,o),a.exports}(()=>{o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t}})(),(()=>{o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var r={};o.r(r),o.d(r,{default:()=>i,useSnackbarMessage:()=>u});var n=o(2015);const a=(0,n.createContext)(null),u=()=>(0,n.useContext)(a),i=a;return r})()));
|
|
2
|
+
//# sourceMappingURL=snackbar-notification-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components/mui/snackbar-notification-context.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,mCCTTH,EAAOD,QAAUK,QAAQ,Q,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaT,QAGrB,IAAIC,EAASK,EAAyBE,GAAY,CAGjDR,QAAS,CAAC,GAOX,OAHAW,EAAoBH,GAAUP,EAAQA,EAAOD,QAASO,GAG/CN,EAAOD,OACf,C,MCrBAO,EAAoBK,EAAKX,IACxB,IAAIY,EAASZ,GAAUA,EAAOa,WAC7B,IAAOb,EAAiB,QACxB,IAAM,EAEP,OADAM,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,C,WCLdN,EAAoBQ,EAAI,CAACf,EAASiB,KACjC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAEnB,EAASkB,IAC5EE,OAAOC,eAAerB,EAASkB,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,C,WCNDX,EAAoBY,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,E,WCClFlB,EAAoBsB,EAAK7B,IACH,oBAAX8B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAerB,EAAS8B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAerB,EAAS,aAAc,CAAEgC,OAAO,GAAO,C,mFCU9D,MAAMC,GAA8BC,EAAAA,EAAAA,eAAc,MAErCC,EAAqBA,KAAMC,EAAAA,EAAAA,YAAWH,GAEnD,I","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","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/SnackbarNotification/Context.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 ","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 { createContext, useContext } from \"react\";\n\nconst SnackbarNotificationContext = createContext(null);\n\nexport const useSnackbarMessage = () => useContext(SnackbarNotificationContext);\n\nexport default SnackbarNotificationContext;\n"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","SnackbarNotificationContext","createContext","useSnackbarMessage","useContext"],"sourceRoot":""}
|