openstack-uicore-foundation 4.2.13-beta.1 → 4.2.14

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.
@@ -0,0 +1,2 @@
1
+ !function(e,l){"object"==typeof exports&&"object"==typeof module?module.exports=l():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],l):"object"==typeof exports?exports["openstack-uicore-foundation"]=l():e["openstack-uicore-foundation"]=l()}(this,(()=>(()=>{"use strict";var e={5028:(e,l,r)=>{r.d(l,{default:()=>d});var t=r(6031),a=r.n(t),n=r(2462),o=r.n(n),i=r(2015),s=r.n(i);const u=["children","replaceNewLine","className"],d=e=>{let{children:l,replaceNewLine:r=!1,className:t=""}=e,n=o()(e,u);return s().createElement("span",a()({className:t,dangerouslySetInnerHTML:{__html:r?null==l?void 0:l.replace(/\n/g,"<br />"):l}},n))}},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},2015:e=>{e.exports=require("react")}},l={};function r(t){var a=l[t];if(void 0!==a)return a.exports;var n=l[t]={exports:{}};return e[t](n,n.exports,r),n.exports}(()=>{r.n=e=>{var l=e&&e.__esModule?()=>e.default:()=>e;return r.d(l,{a:l}),l}})(),(()=>{r.d=(e,l)=>{for(var t in l)r.o(l,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:l[t]})}})(),(()=>{r.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var t={};r.r(t),r.d(t,{default:()=>L});var a=r(6031),n=r.n(a),o=r(2015),i=r.n(o);const s=require("prop-types");var u=r.n(s),d=r(2462),c=r.n(d);const m=(e,l)=>`${e.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"_")}_${l}`,b=e=>{var l;return null==e||null===(l=e.label)||void 0===l?void 0:l.replace(/\n/g," ").replace(/<p>(.*)<\/p>/gi,"$1")},p=require("@mui/material"),v=["question","questionClassName","isDisabled","children","setFieldValue"],h=e=>{let{question:l,questionClassName:r="",isDisabled:t=!1,children:a,setFieldValue:o}=e,s=c()(e,v);const u=m(l.name,l.id),d=b(l),h=l.mandatory;return i().createElement("div",{key:u,id:`${u}_container`,className:r},i().createElement(p.FormGroup,null,i().createElement(p.TextField,n()({name:u,label:d,disabled:t,required:h,fullWidth:!0,margin:"normal"},s)),a))};h.propTypes={question:u().object.isRequired,questionClassName:u().string,isDisabled:u().bool,children:u().node,setFieldValue:u().func};const q=h;var y=r(5028);const f=["question","questionClassName","isDisabled","children","value","error","helperText","setFieldValue"],x=e=>{let{question:l,questionClassName:r="",isDisabled:t=!1,children:a,value:o,error:s,helperText:u,setFieldValue:d}=e,v=c()(e,f);const h=m(l.name,l.id),q=b(l),x=l.mandatory;return i().createElement("div",{key:h,id:`${h}_container`,className:r},i().createElement(p.FormControl,{fullWidth:!0,margin:"normal",error:s},i().createElement(p.FormControlLabel,{sx:{alignItems:"flex-start"},control:i().createElement(p.Checkbox,n()({name:h,checked:!!o,label:i().createElement(y.default,null,q),sx:{marginTop:-1}},v)),label:i().createElement(y.default,null,q),disabled:t,required:x}),a,s&&i().createElement(p.FormHelperText,null,u??" ")))};x.propTypes={question:u().object.isRequired,value:u().bool,questionClassName:u().string,isDisabled:u().bool,children:u().node,setFieldValue:u().func,error:u().bool,helperText:u().string};const g=x,C=["question","questionClassName","isDisabled","children","error","helperText","setFieldValue"],E=e=>{var l;let{question:r,questionClassName:t="",isDisabled:a=!1,children:o,error:s,helperText:u,setFieldValue:d}=e,v=c()(e,C);const h=m(r.name,r.id),q=b(r),y=r.mandatory,f=(null===(l=r.values)||void 0===l?void 0:l.map((e=>({label:e.label,value:e.id.toString()}))))||[];return i().createElement("div",{key:h,id:`${h}_container`,className:t},i().createElement(p.FormControl,{disabled:a,required:y,fullWidth:!0,margin:"normal",error:s},i().createElement(p.FormLabel,{id:`${h}_label`},q),s&&i().createElement(p.FormHelperText,null,u??" "),i().createElement(p.RadioGroup,n()({"aria-labelledby":`${h}_label`,name:h},v),f.map((e=>i().createElement(p.FormControlLabel,{key:e.label,value:e.value,control:i().createElement(p.Radio,null),label:e.label})))),o))};E.propTypes={question:u().object.isRequired,questionClassName:u().string,isDisabled:u().bool,children:u().node,error:u().bool,helperText:u().string,setFieldValue:u().func};const F=E,N=["question","questionClassName","isDisabled","children","value","onChange","setFieldValue","error","helperText"],T=e=>{var l;let{question:r,questionClassName:t="",isDisabled:a=!1,children:o,value:s,onChange:u,setFieldValue:d,error:v,helperText:h}=e,q=c()(e,N);const y=m(r.name,r.id),f=b(r),x=r.mandatory,g=r.max_selected_values,C=(null===(l=r.values)||void 0===l?void 0:l.map((e=>({label:e.label,value:e.id.toString()}))))||[];return i().createElement("div",{key:y,id:`${y}_container`,className:t},i().createElement(p.FormControl,{disabled:a,required:x,fullWidth:!0,margin:"normal",error:v},i().createElement(p.FormLabel,null,f),v&&i().createElement(p.FormHelperText,null,h??" "),i().createElement(p.FormGroup,null,C.map((e=>i().createElement(p.FormControlLabel,{key:e.label,name:y,control:i().createElement(p.Checkbox,n()({checked:null==s?void 0:s.includes(e.value),onChange:l=>((e,l)=>{const r=s||[],t=0!==g&&r.length===g;let a;a=e?t?r:[...r,l]:r.filter((e=>e!==l)),d(y,a)})(l.target.checked,e.value)},q)),label:e.label})))),o))};T.propTypes={question:u().object.isRequired,value:u().array,questionClassName:u().string,isDisabled:u().bool,onChange:u().func.isRequired,children:u().node,setFieldValue:u().func,error:u().bool,helperText:u().string};const _=T,k=["question","questionClassName","isDisabled","setFieldValue","children","error","helperText"],V=e=>{var l;let{question:r,questionClassName:t="",isDisabled:a=!1,setFieldValue:o,children:s,error:u,helperText:d}=e,v=c()(e,k);const h=m(r.name,r.id),q=b(r),y=r.mandatory,f=(null===(l=r.values)||void 0===l?void 0:l.map((e=>({label:e.label,value:e.id}))))||[];return i().createElement("div",{key:h,id:`${h}_container`,className:t},i().createElement(p.FormControl,{disabled:a,required:y,fullWidth:!0,margin:"normal",error:u},i().createElement(p.InputLabel,{id:`${h}_label`},q),i().createElement(p.Select,n()({labelId:`${h}_label`,name:h,id:h,label:q},v,{style:{marginBottom:20}}),f.map((e=>i().createElement(p.MenuItem,{key:e.label,value:e.value},e.label)))),s))};V.propTypes={question:u().object.isRequired,questionClassName:u().string,isDisabled:u().bool,children:u().node,error:u().bool,helperText:u().string,setFieldValue:u().func};const D=V,j=({extraQuestions:e,className:l="extraQuestions",questionClassName:r="extraQuestion",readOnly:t=!1,allowEdit:a=!0,formik:o})=>{const s=(e,l)=>{const r=((e,l)=>{const r=l.answer_values;if(!e)return!1;if(Array.isArray(e)){if(!e.length)return!1;let t="And"===l.answer_values_operator;return r.forEach((r=>{t="And"===l.answer_values_operator?t&&e.includes(r):t||e.includes(r)})),t}return r.includes(null==e?void 0:e.toString())})(o.values[l],e),t=((e,l)=>"Visible"===e.visibility?"Equal"===e.visibility_condition?!!l:!l:"Equal"===e.visibility_condition?!l:!!l)(e,r);return t?u(e.sub_question):null},u=e=>{var l;const u=m(e.name,e.id),d=!a&&(e=>!!e&&(Array.isArray(e)||"string"==typeof e?e.length>0:"number"==typeof e?e>0:"boolean"==typeof e&&e))(o.values[u])||t,c=(e=>{switch(e){case"TextArea":case"Text":return q;case"CheckBox":return g;case"RadioButtonList":return F;case"CheckBoxList":return _;case"CountryComboBox":case"ComboBox":return D;default:return i().Fragment}})(e.type),b={value:o.values[u],onChange:o.handleChange,onBlur:o.handleBlur,error:o.touched[u]&&Boolean(o.errors[u]),helperText:o.touched[u]&&o.errors[u],setFieldValue:o.setFieldValue};return i().createElement(c,n()({key:u,question:e,questionClassName:r,isDisabled:d},b),null===(l=e.sub_question_rules)||void 0===l?void 0:l.map((e=>s(e,u))))};return i().createElement("div",{className:l},e.map(u))};j.propTypes={extraQuestions:u().array.isRequired,className:u().string,questionClassName:u().string,allowEdit:u().bool,readOnly:u().bool};const L=j;return t})()));
2
+ //# sourceMappingURL=extra-questions-mui.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components/extra-questions-mui.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,+KCHT,EAJgB,QAAC,SAACC,EAAD,eAAWC,GAAiB,EAA5B,UAAmCC,EAAY,IAAhD,EAAuDC,EAAvD,gBACZ,8BAAMD,UAAWA,EACXE,wBAAyB,CAAEC,OAAQJ,EAAiBD,aAAH,EAAGA,EAAUM,QAAQ,MAAO,UAAYN,IAAeG,GAFlG,C,WCFhBP,EAAOD,QAAUY,QAAQ,iC,WCAzBX,EAAOD,QAAUY,QAAQ,iD,WCAzBX,EAAOD,QAAUY,QAAQ,Q,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAahB,QAGrB,IAAIC,EAASY,EAAyBE,GAAY,CAGjDf,QAAS,CAAC,GAOX,OAHAkB,EAAoBH,GAAUd,EAAQA,EAAOD,QAASc,GAG/Cb,EAAOD,OACf,C,MCrBAc,EAAoBK,EAAKlB,IACxB,IAAImB,EAASnB,GAAUA,EAAOoB,WAC7B,IAAOpB,EAAiB,QACxB,IAAM,EAEP,OADAa,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,C,WCLdN,EAAoBQ,EAAI,CAACtB,EAASwB,KACjC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAE1B,EAASyB,IAC5EE,OAAOC,eAAe5B,EAAS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mG,0BARL,aAQG,EAAsB/D,KAAKkC,GAASD,EAAWC,EAAM/D,KAT1D,EAcF,OAAO,yBAAK7C,UAAWA,GAAYuG,EAAe7B,IAAI+C,GAAtD,EAGFnB,EAAkB7C,UAAY,CAC5B8C,eAAgB7C,IAAAA,MAAgBT,WAChCjD,UAAW0D,IAAAA,OACXhB,kBAAmBgB,IAAAA,OACnB+C,UAAW/C,IAAAA,KACX8C,SAAU9C,IAAAA,MAGZ,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/raw-html/index.js","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 \"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 \"prop-types\"","webpack://openstack-uicore-foundation/./src/components/extra-questions-mui/components/utils.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/./src/components/extra-questions-mui/components/TextQuestionField.js","webpack://openstack-uicore-foundation/./src/components/extra-questions-mui/components/CheckboxQuestionField.js","webpack://openstack-uicore-foundation/./src/components/extra-questions-mui/components/RadioListQuestionField.js","webpack://openstack-uicore-foundation/./src/components/extra-questions-mui/components/CheckboxListQuestionField.js","webpack://openstack-uicore-foundation/./src/components/extra-questions-mui/components/DropdownQuestionField.js","webpack://openstack-uicore-foundation/./src/components/extra-questions-mui/index.js","webpack://openstack-uicore-foundation/./src/components/extra-questions-mui/constants.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';\n\nconst RawHTML = ({children, replaceNewLine = false, className = \"\", ...rest}) =>\n <span className={className}\n dangerouslySetInnerHTML={{ __html: replaceNewLine ? children?.replace(/\\n/g, '<br />') : children}} {...rest}/>\n\nexport default RawHTML;","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","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(\"prop-types\");","import {\n QuestionType_Checkbox,\n QuestionType_CheckBoxList,\n QuestionType_ComboBox,\n QuestionType_CountryComboBox,\n QuestionType_RadioButtonList\n} from \"../constants\";\n\nexport const checkRule = (value, rule) => {\n const values = rule.answer_values;\n\n if (!value) return false;\n\n if (Array.isArray(value)) {\n if (!value.length) return false;\n let res = rule.answer_values_operator === \"And\";\n values.forEach((v) => {\n if (rule.answer_values_operator === \"And\") {\n res = res && value.includes(v);\n } else {\n // Or\n res = res || value.includes(v);\n }\n });\n return res;\n }\n return values.includes(value?.toString());\n};\n\nexport const checkVisibility = (rule, ruleResult) => {\n if (rule.visibility === \"Visible\") {\n if (rule.visibility_condition === \"Equal\") {\n return !!ruleResult;\n }\n // Non Equal\n return !ruleResult;\n }\n // not visible\n if (rule.visibility_condition === \"Equal\") {\n return !ruleResult;\n }\n return !!ruleResult;\n};\n\nexport const toSlug = (text, questionId) => {\n const textLC = text.toLowerCase();\n return `${textLC.replace(/[^a-zA-Z0-9]+/g, \"_\")}_${questionId}`;\n};\n\nexport const getLabel = (q) =>\n // replace line breaks and remove outer <p>\n q?.label?.replace(/\\n/g, \" \").replace(/<p>(.*)<\\/p>/gi, \"$1\");\n\nexport const isAnswered = (answer) => {\n if (!answer) return false;\n // check type\n if (Array.isArray(answer)) return answer.length > 0;\n if (typeof answer === \"string\") return answer.length > 0;\n if (typeof answer === \"number\") return answer > 0;\n if (typeof answer === \"boolean\") return answer;\n return false;\n};\n\nexport const checkIfValueMatch = (answer, compareVal) => {\n const answerArray = Array.isArray(answer) ? answer : [answer];\n\n return answerArray.some((v) => {\n if (Array.isArray(compareVal)) {\n return compareVal.includes(`${v}`);\n }\n return `${v}` === `${compareVal}`;\n });\n};\n\nexport const getTypeInitialValue = (q) => {\n switch (q.type) {\n case QuestionType_Checkbox:\n return false;\n case QuestionType_RadioButtonList:\n return null;\n case QuestionType_CheckBoxList:\n return [];\n case QuestionType_CountryComboBox:\n case QuestionType_ComboBox:\n return \"\";\n default:\n return \"\";\n }\n};\n\nexport const getTypeValue = (ans, type) => {\n switch (type) {\n case QuestionType_Checkbox:\n return ans === \"true\";\n case QuestionType_CheckBoxList:\n return ans?.split(\",\") || [];\n case QuestionType_CountryComboBox:\n case QuestionType_ComboBox:\n return ans || \"\";\n case QuestionType_RadioButtonList:\n return ans || null;\n default:\n return ans;\n }\n};\n\nexport const transformAnwersFormat = (answers) => {\n const {\n attendee_email,\n attendee_first_name,\n attendee_last_name,\n attendee_company,\n disclaimer_accepted,\n ...extra_questions\n } = answers;\n\n const formattedEQ = Object.entries(extra_questions).map(([key, value]) => ({\n question_id: parseInt(key.split(\"_\").pop(), 10),\n answer: value?.toString() || null\n }));\n\n return {\n attendee_email,\n attendee_first_name,\n attendee_last_name,\n attendee_company,\n disclaimer_accepted,\n extra_questions: formattedEQ\n };\n};\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material\");","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { FormGroup, TextField } from \"@mui/material\";\nimport { getLabel, toSlug } from \"./utils\";\n\nconst TextQuestionField = ({\n question,\n questionClassName = \"\",\n isDisabled = false,\n children,\n setFieldValue,\n ...rest\n}) => {\n const questionSlug = toSlug(question.name, question.id);\n const questionLabel = getLabel(question);\n const isRequired = question.mandatory;\n\n return (\n <div\n key={questionSlug}\n id={`${questionSlug}_container`}\n className={questionClassName}\n >\n <FormGroup>\n <TextField\n name={questionSlug}\n label={questionLabel}\n disabled={isDisabled}\n required={isRequired}\n fullWidth\n margin=\"normal\"\n /* eslint-disable-next-line react/jsx-props-no-spreading */\n {...rest}\n />\n {children}\n </FormGroup>\n </div>\n );\n};\n\nTextQuestionField.propTypes = {\n question: PropTypes.object.isRequired,\n questionClassName: PropTypes.string,\n isDisabled: PropTypes.bool,\n children: PropTypes.node,\n setFieldValue: PropTypes.func\n};\n\nexport default TextQuestionField;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Checkbox,\n FormControl,\n FormControlLabel,\n FormHelperText\n} from \"@mui/material\";\nimport RawHTML from \"../../raw-html\";\nimport { getLabel, toSlug } from \"./utils\";\n\nconst CheckboxQuestionField = ({\n question,\n questionClassName = \"\",\n isDisabled = false,\n children,\n value,\n error,\n helperText,\n setFieldValue,\n ...rest\n}) => {\n const questionSlug = toSlug(question.name, question.id);\n const questionLabel = getLabel(question);\n const isRequired = question.mandatory;\n\n return (\n <div\n key={questionSlug}\n id={`${questionSlug}_container`}\n className={questionClassName}\n >\n <FormControl fullWidth margin=\"normal\" error={error}>\n <FormControlLabel\n sx={{ alignItems: \"flex-start\" }}\n control={\n <Checkbox\n name={questionSlug}\n checked={!!value}\n label={<RawHTML>{questionLabel}</RawHTML>}\n sx={{ marginTop: -1 }}\n /* eslint-disable-next-line react/jsx-props-no-spreading */\n {...rest}\n />\n }\n label={<RawHTML>{questionLabel}</RawHTML>}\n disabled={isDisabled}\n required={isRequired}\n />\n {children}\n {error && <FormHelperText>{helperText ?? \" \"}</FormHelperText>}\n </FormControl>\n </div>\n );\n};\n\nCheckboxQuestionField.propTypes = {\n question: PropTypes.object.isRequired,\n value: PropTypes.bool,\n questionClassName: PropTypes.string,\n isDisabled: PropTypes.bool,\n children: PropTypes.node,\n setFieldValue: PropTypes.func,\n error: PropTypes.bool,\n helperText: PropTypes.string\n};\n\nexport default CheckboxQuestionField;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n FormControl,\n FormControlLabel,\n FormHelperText,\n FormLabel,\n Radio,\n RadioGroup\n} from \"@mui/material\";\nimport { getLabel, toSlug } from \"./utils\";\n\nconst RadioListQuestionField = ({\n question,\n questionClassName = \"\",\n isDisabled = false,\n children,\n error,\n helperText,\n setFieldValue,\n ...rest\n}) => {\n const questionSlug = toSlug(question.name, question.id);\n const questionLabel = getLabel(question);\n const isRequired = question.mandatory;\n\n const questionOptions =\n question.values?.map((val) => ({\n label: val.label,\n value: val.id.toString()\n })) || [];\n\n return (\n <div\n key={questionSlug}\n id={`${questionSlug}_container`}\n className={questionClassName}\n >\n <FormControl\n disabled={isDisabled}\n required={isRequired}\n fullWidth\n margin=\"normal\"\n error={error}\n >\n <FormLabel id={`${questionSlug}_label`}>{questionLabel}</FormLabel>\n {error && <FormHelperText>{helperText ?? \" \"}</FormHelperText>}\n <RadioGroup\n aria-labelledby={`${questionSlug}_label`}\n name={questionSlug}\n /* eslint-disable-next-line react/jsx-props-no-spreading */\n {...rest}\n >\n {questionOptions.map((op) => (\n <FormControlLabel\n key={op.label}\n value={op.value}\n control={<Radio />}\n label={op.label}\n />\n ))}\n </RadioGroup>\n {children}\n </FormControl>\n </div>\n );\n};\n\nRadioListQuestionField.propTypes = {\n question: PropTypes.object.isRequired,\n questionClassName: PropTypes.string,\n isDisabled: PropTypes.bool,\n children: PropTypes.node,\n error: PropTypes.bool,\n helperText: PropTypes.string,\n setFieldValue: PropTypes.func\n};\n\nexport default RadioListQuestionField;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Checkbox,\n FormControl,\n FormControlLabel,\n FormGroup,\n FormHelperText,\n FormLabel\n} from \"@mui/material\";\nimport { getLabel, toSlug } from \"./utils\";\n\nconst CheckboxListQuestionField = ({\n question,\n questionClassName = \"\",\n isDisabled = false,\n children,\n value,\n onChange,\n setFieldValue,\n error,\n helperText,\n ...rest\n}) => {\n const questionSlug = toSlug(question.name, question.id);\n const questionLabel = getLabel(question);\n const isRequired = question.mandatory;\n const questionMaxValues = question.max_selected_values;\n\n const questionOptions =\n question.values?.map((val) => ({\n label: val.label,\n value: val.id.toString()\n })) || [];\n\n const handleCheckboxListChange = (checked, val) => {\n const currentAns = value || [];\n const maxSelectionReached =\n questionMaxValues !== 0 && currentAns.length === questionMaxValues;\n let newValue;\n\n if (checked) {\n newValue = maxSelectionReached ? currentAns : [...currentAns, val];\n } else {\n newValue = currentAns.filter((v) => v !== val);\n }\n\n setFieldValue(questionSlug, newValue);\n };\n\n return (\n <div\n key={questionSlug}\n id={`${questionSlug}_container`}\n className={questionClassName}\n >\n <FormControl\n disabled={isDisabled}\n required={isRequired}\n fullWidth\n margin=\"normal\"\n error={error}\n >\n <FormLabel>{questionLabel}</FormLabel>\n {error && <FormHelperText>{helperText ?? \" \"}</FormHelperText>}\n <FormGroup>\n {questionOptions.map((op) => (\n <FormControlLabel\n key={op.label}\n name={questionSlug}\n control={\n <Checkbox\n checked={value?.includes(op.value)}\n onChange={(ev) =>\n handleCheckboxListChange(ev.target.checked, op.value)\n }\n /* eslint-disable-next-line react/jsx-props-no-spreading */\n {...rest}\n />\n }\n label={op.label}\n />\n ))}\n </FormGroup>\n {children}\n </FormControl>\n </div>\n );\n};\n\nCheckboxListQuestionField.propTypes = {\n question: PropTypes.object.isRequired,\n value: PropTypes.array,\n questionClassName: PropTypes.string,\n isDisabled: PropTypes.bool,\n onChange: PropTypes.func.isRequired,\n children: PropTypes.node,\n setFieldValue: PropTypes.func,\n error: PropTypes.bool,\n helperText: PropTypes.string\n};\n\nexport default CheckboxListQuestionField;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { FormControl, InputLabel, MenuItem, Select } from \"@mui/material\";\nimport { getLabel, toSlug } from \"./utils\";\n\nconst DropdownQuestionField = ({\n question,\n questionClassName = \"\",\n isDisabled = false,\n setFieldValue,\n children,\n error,\n helperText,\n ...rest\n}) => {\n const questionSlug = toSlug(question.name, question.id);\n const questionLabel = getLabel(question);\n const isRequired = question.mandatory;\n\n const questionOptions =\n question.values?.map((val) => ({\n label: val.label,\n value: val.id\n })) || [];\n\n return (\n <div\n key={questionSlug}\n id={`${questionSlug}_container`}\n className={questionClassName}\n >\n <FormControl\n disabled={isDisabled}\n required={isRequired}\n fullWidth\n margin=\"normal\"\n error={error}\n >\n <InputLabel id={`${questionSlug}_label`}>{questionLabel}</InputLabel>\n <Select\n labelId={`${questionSlug}_label`}\n name={questionSlug}\n id={questionSlug}\n label={questionLabel}\n /* eslint-disable-next-line react/jsx-props-no-spreading */\n {...rest}\n style={{ marginBottom: 20 }}\n >\n {questionOptions.map((op) => (\n <MenuItem key={op.label} value={op.value}>\n {op.label}\n </MenuItem>\n ))}\n </Select>\n {children}\n </FormControl>\n </div>\n );\n};\n\nDropdownQuestionField.propTypes = {\n question: PropTypes.object.isRequired,\n questionClassName: PropTypes.string,\n isDisabled: PropTypes.bool,\n children: PropTypes.node,\n error: PropTypes.bool,\n helperText: PropTypes.string,\n setFieldValue: PropTypes.func\n};\n\nexport default DropdownQuestionField;\n","/**\n * Copyright 2025 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\";\n\nimport {\n toSlug,\n isAnswered,\n checkVisibility,\n checkRule\n} from \"./components/utils\";\nimport {\n QuestionType_Checkbox,\n QuestionType_CheckBoxList,\n QuestionType_ComboBox,\n QuestionType_CountryComboBox,\n QuestionType_RadioButtonList,\n QuestionType_Text,\n QuestionType_TextArea\n} from \"./constants\";\nimport TextQuestionField from \"./components/TextQuestionField\";\nimport CheckboxQuestionField from \"./components/CheckboxQuestionField\";\nimport RadioListQuestionField from \"./components/RadioListQuestionField\";\nimport CheckboxListQuestionField from \"./components/CheckboxListQuestionField\";\nimport DropdownQuestionField from \"./components/DropdownQuestionField\";\n\nconst getQuestionFieldComponent = (questionType) => {\n switch (questionType) {\n case QuestionType_TextArea:\n case QuestionType_Text: {\n return TextQuestionField;\n }\n case QuestionType_Checkbox: {\n return CheckboxQuestionField;\n }\n case QuestionType_RadioButtonList: {\n return RadioListQuestionField;\n }\n case QuestionType_CheckBoxList: {\n return CheckboxListQuestionField;\n }\n case QuestionType_CountryComboBox:\n case QuestionType_ComboBox: {\n return DropdownQuestionField;\n }\n default: {\n return React.Fragment;\n }\n }\n};\n\nconst ExtraQuestionsMUI = ({\n extraQuestions,\n className = \"extraQuestions\",\n questionClassName = \"extraQuestion\",\n readOnly = false,\n allowEdit = true,\n formik\n}) => {\n const renderRule = (rule, questionSlug) => {\n const ruleResult = checkRule(formik.values[questionSlug], rule);\n const isVisible = checkVisibility(rule, ruleResult);\n\n if (isVisible) {\n // eslint-disable-next-line no-use-before-define\n return renderQuestion(rule.sub_question);\n }\n\n return null;\n };\n\n const renderQuestion = (q) => {\n const questionSlug = toSlug(q.name, q.id);\n // disable field if edit isn't allowed and the questions is answered\n const isDisabled =\n (!allowEdit && isAnswered(formik.values[questionSlug])) || readOnly;\n const QuestionFieldComponent = getQuestionFieldComponent(q.type);\n\n const formikProps = {\n value: formik.values[questionSlug],\n onChange: formik.handleChange,\n onBlur: formik.handleBlur,\n error:\n formik.touched[questionSlug] && Boolean(formik.errors[questionSlug]),\n helperText: formik.touched[questionSlug] && formik.errors[questionSlug],\n setFieldValue: formik.setFieldValue\n };\n\n return (\n <QuestionFieldComponent\n key={questionSlug}\n question={q}\n questionClassName={questionClassName}\n isDisabled={isDisabled}\n /* eslint-disable-next-line react/jsx-props-no-spreading */\n {...formikProps}\n >\n {q.sub_question_rules?.map((rule) => renderRule(rule, questionSlug))}\n </QuestionFieldComponent>\n );\n };\n\n return <div className={className}>{extraQuestions.map(renderQuestion)}</div>;\n};\n\nExtraQuestionsMUI.propTypes = {\n extraQuestions: PropTypes.array.isRequired,\n className: PropTypes.string,\n questionClassName: PropTypes.string,\n allowEdit: PropTypes.bool,\n readOnly: PropTypes.bool\n};\n\nexport default ExtraQuestionsMUI;\n","export const QuestionType_Text = \"Text\";\nexport const QuestionType_TextArea = \"TextArea\";\nexport const QuestionType_Checkbox = \"CheckBox\";\nexport const QuestionType_RadioButtonList = \"RadioButtonList\";\nexport const QuestionType_ComboBox = \"ComboBox\";\nexport const QuestionType_CheckBoxList = \"CheckBoxList\";\nexport const QuestionType_CountryComboBox = \"CountryComboBox\";\nexport const QuestionType_RadioButton = \"RadioButton\";\n"],"names":["root","factory","exports","module","define","amd","this","children","replaceNewLine","className","rest","dangerouslySetInnerHTML","__html","replace","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","toSlug","text","questionId","toLowerCase","getLabel","q","label","TextQuestionField","question","questionClassName","isDisabled","setFieldValue","questionSlug","name","id","questionLabel","isRequired","mandatory","FormGroup","TextField","disabled","required","fullWidth","margin","propTypes","PropTypes","CheckboxQuestionField","error","helperText","FormControl","FormControlLabel","sx","alignItems","control","Checkbox","checked","marginTop","FormHelperText","RadioListQuestionField","questionOptions","values","map","val","toString","FormLabel","RadioGroup","op","Radio","CheckboxListQuestionField","onChange","questionMaxValues","max_selected_values","includes","ev","currentAns","maxSelectionReached","length","newValue","filter","v","handleCheckboxListChange","target","DropdownQuestionField","InputLabel","Select","labelId","style","marginBottom","MenuItem","ExtraQuestionsMUI","extraQuestions","readOnly","allowEdit","formik","renderRule","rule","ruleResult","answer_values","Array","isArray","res","answer_values_operator","forEach","checkRule","isVisible","visibility","visibility_condition","checkVisibility","renderQuestion","sub_question","answer","isAnswered","QuestionFieldComponent","questionType","React","getQuestionFieldComponent","type","formikProps","handleChange","onBlur","handleBlur","touched","Boolean","errors","sub_question_rules"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openstack-uicore-foundation",
3
- "version": "4.2.13-beta.1",
3
+ "version": "4.2.14",
4
4
  "description": "ui reactjs components for openstack marketing site",
5
5
  "main": "lib/openstack-uicore-foundation.js",
6
6
  "scripts": {