openstack-uicore-foundation 5.0.3 → 5.0.4

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.
Files changed (58) hide show
  1. package/lib/components/attendance-tracker.js.map +1 -1
  2. package/lib/components/clock.js.map +1 -1
  3. package/lib/components/extra-questions.js.map +1 -1
  4. package/lib/components/forms/simple-form.js.map +1 -1
  5. package/lib/components/free-text-search.js.map +1 -1
  6. package/lib/components/google-map.js.map +1 -1
  7. package/lib/components/index.js +1 -1
  8. package/lib/components/index.js.map +1 -1
  9. package/lib/components/inputs/access-levels-input.js.map +1 -1
  10. package/lib/components/inputs/attendee-input.js.map +1 -1
  11. package/lib/components/inputs/company-input-v2.js.map +1 -1
  12. package/lib/components/inputs/company-input.js.map +1 -1
  13. package/lib/components/inputs/country-dropdown.js.map +1 -1
  14. package/lib/components/inputs/country-input.js.map +1 -1
  15. package/lib/components/inputs/event-input.js.map +1 -1
  16. package/lib/components/inputs/group-input.js.map +1 -1
  17. package/lib/components/inputs/language-input.js.map +1 -1
  18. package/lib/components/inputs/member-input.js.map +1 -1
  19. package/lib/components/inputs/organization-input.js.map +1 -1
  20. package/lib/components/inputs/promocode-input.js.map +1 -1
  21. package/lib/components/inputs/registration-company-input.js.map +1 -1
  22. package/lib/components/inputs/speaker-input.js.map +1 -1
  23. package/lib/components/inputs/sponsor-input.js.map +1 -1
  24. package/lib/components/inputs/summit-input.js.map +1 -1
  25. package/lib/components/inputs/tag-input.js.map +1 -1
  26. package/lib/components/inputs/ticket-types-input.js.map +1 -1
  27. package/lib/components/inputs/upload-input-v2.js.map +1 -1
  28. package/lib/components/inputs/upload-input-v3.js.map +1 -1
  29. package/lib/components/mui/dropdown-checkbox.js +1 -1
  30. package/lib/components/mui/dropdown-checkbox.js.map +1 -1
  31. package/lib/components/mui/formik-inputs/company-input.js.map +1 -1
  32. package/lib/components/mui/formik-inputs/item-price-tiers.js.map +1 -1
  33. package/lib/components/mui/formik-inputs/sponsor-input.js.map +1 -1
  34. package/lib/components/mui/formik-inputs/sponsorship-input.js.map +1 -1
  35. package/lib/components/mui/formik-inputs/sponsorship-summit-select.js.map +1 -1
  36. package/lib/components/mui/formik-inputs/summit-addon-select.js.map +1 -1
  37. package/lib/components/mui/formik-inputs/upload.js.map +1 -1
  38. package/lib/components/mui/snackbar-notification.js +1 -1
  39. package/lib/components/mui/snackbar-notification.js.map +1 -1
  40. package/lib/components/mui/sponsor-addon-select.js.map +1 -1
  41. package/lib/components/mui/summit-addon-select.js.map +1 -1
  42. package/lib/components/mui/summits-dropdown.js.map +1 -1
  43. package/lib/components/schedule-builder-view.js.map +1 -1
  44. package/lib/components/sponsored-project-input.js.map +1 -1
  45. package/lib/components/table-editable.js.map +1 -1
  46. package/lib/i18n.js.map +1 -1
  47. package/lib/security/abstract-auth-callback-route-v2.js.map +1 -1
  48. package/lib/security/abstract-auth-callback-route.js.map +1 -1
  49. package/lib/security/actions.js.map +1 -1
  50. package/lib/security/methods.js.map +1 -1
  51. package/lib/security/reducers.js.map +1 -1
  52. package/lib/security/session-checker.js.map +1 -1
  53. package/lib/utils/actions.js.map +1 -1
  54. package/lib/utils/methods.js +1 -1
  55. package/lib/utils/methods.js.map +1 -1
  56. package/lib/utils/query-actions.js.map +1 -1
  57. package/lib/utils/questions-set.js.map +1 -1
  58. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/dropdown-checkbox.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,gB,WCAzBJ,EAAOD,QAAUK,QAAQ,Q,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,G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MD,MAAOe,EAASI,QAAQC,GAAY,QAANA,OAJhDf,EAAS,CAAEW,OAAQ,CAAEf,OAAMD,MAAO,CAAC,UASrCK,EAAS,CAAEW,OAAQ,CAAEf,OAAMD,MAAOe,IACnC,EAYGM,MAAO,kBAAC,EAAAC,cAAD,CAAepB,MAAOA,IAC7BqB,YAAcR,IACZ,GAAIA,EAASE,SAAS,OACpB,OAAOd,EAKT,OAHsBC,EACnBe,QAAO,EAAGT,QAASK,EAASE,SAASP,KACrCc,KAAI,EAAGvB,KAAMwB,KAAaA,IACRC,KAAK,KAA1B,GAGF,kBAAC,EAAAC,SAAD,CAAUzC,IAAI,MAAMc,MAAM,OACxB,kBAAC,EAAA4B,SAAD,CAAUC,QAAS7B,EAAMiB,SAAS,SAClC,kBAAC,EAAAa,aAAD,CAAcC,QAAS5B,KAEzB,kBAAC,EAAA6B,QAAD,MACC5B,EAAQoB,KAAI,EAAGvB,KAAMwB,EAAQf,QAC5B,kBAAC,EAAAiB,SAAD,CAAUzC,IAAKwB,EAAIV,MAAOU,GACxB,kBAAC,EAAAkB,SAAD,CAAUC,QAAS7B,EAAMiB,SAASP,KAClC,kBAAC,EAAAoB,aAAD,CAAcC,QAASN,S","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","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/dropdown-checkbox.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/material\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport {\n Checkbox,\n Divider,\n FormControl,\n InputLabel,\n ListItemText,\n MenuItem,\n OutlinedInput,\n Select\n} from \"@mui/material\";\n\nconst DropdownCheckbox = ({\n name,\n label,\n allLabel,\n value = [],\n options,\n onChange\n}) => {\n const handleChange = (ev) => {\n const selected = ev.target.value;\n\n if (selected.includes(\"all\")) {\n if (!value.includes(\"all\")) {\n // if all changed from unselected to selected we remove the rest of selections\n onChange({ target: { name, value: [\"all\"] } });\n } else if (selected.length > 1) {\n // if all was selected and now select an item, we remove \"all\" from selections\n onChange({\n target: { name, value: selected.filter((v) => v !== \"all\") }\n });\n }\n } else {\n // else if \"all\" is not selected we just send selection\n onChange({ target: { name, value: selected } });\n }\n };\n\n return (\n <FormControl fullWidth margin=\"normal\">\n <InputLabel id={`${name}_label`}>{label}</InputLabel>\n <Select\n labelId={`${name}_label`}\n name={name}\n multiple\n value={value}\n onChange={handleChange}\n input={<OutlinedInput label={label} />}\n renderValue={(selected) => {\n if (selected.includes(\"all\")) {\n return allLabel; // Display allLabel when all options are selected\n }\n const selectedNames = options\n .filter(({ id }) => selected.includes(id))\n .map(({ name: opName }) => opName);\n return selectedNames.join(\", \");\n }}\n >\n <MenuItem key=\"all\" value=\"all\">\n <Checkbox checked={value.includes(\"all\")} />\n <ListItemText primary={allLabel} />\n </MenuItem>\n <Divider />\n {options.map(({ name: opName, id }) => (\n <MenuItem key={id} value={id}>\n <Checkbox checked={value.includes(id)} />\n <ListItemText primary={opName} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n );\n};\n\nexport default DropdownCheckbox;\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","name","label","allLabel","options","onChange","FormControl","fullWidth","margin","InputLabel","id","Select","labelId","multiple","ev","selected","target","includes","length","filter","v","input","OutlinedInput","renderValue","map","opName","join","MenuItem","Checkbox","checked","ListItemText","primary","Divider"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/dropdown-checkbox.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,iC,WCAzBJ,EAAOD,QAAUK,QAAQ,iD,WCAzBJ,EAAOD,QAAUK,QAAQ,gB,WCAzBJ,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,OAA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AAiC,SAAD,CAAUC,QAASlC,EAAMsB,SAAS,SAClC,kBAAC,EAAAa,aAAD,CAAcC,QAASjC,KAEzB,kBAAC,EAAAkC,QAAD,MACCjC,EAAQyB,KAAI,EAAG5B,KAAM6B,EAAQnB,QAC5B,kBAAC,EAAAqB,SAAD,CAAU9C,IAAKyB,EAAIX,MAAOW,GACxB,kBAAC,EAAAsB,SAAD,CAAUC,QAASlC,EAAMsB,SAASX,KAClC,kBAAC,EAAAwB,aAAD,CAAcC,QAASN,QA7BjC,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","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/material\"","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/dropdown-checkbox.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(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"@mui/material\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport {\n Checkbox,\n Divider,\n FormControl,\n InputLabel,\n ListItemText,\n MenuItem,\n OutlinedInput,\n Select\n} from \"@mui/material\";\n\nconst DropdownCheckbox = ({\n name,\n label,\n allLabel,\n value = [],\n options,\n onChange,\n ...rest\n}) => {\n const handleChange = (ev) => {\n const rawValue = ev.target.value;\n const selected = Array.isArray(rawValue)\n ? rawValue\n : typeof rawValue === \"string\"\n ? rawValue.split(\",\")\n : [];\n\n if (selected.includes(\"all\")) {\n if (!value.includes(\"all\")) {\n // if all changed from unselected to selected we remove the rest of selections\n onChange({ target: { name, value: [\"all\"] } });\n } else if (selected.length > 1) {\n // if all was selected and now select an item, we remove \"all\" from selections\n onChange({\n target: { name, value: selected.filter((v) => v !== \"all\") }\n });\n } else {\n onChange({ target: { name, value: [\"all\"] } });\n }\n } else {\n // else if \"all\" is not selected we just send selection\n onChange({ target: { name, value: selected } });\n }\n };\n\n return (\n <FormControl fullWidth margin=\"normal\">\n <InputLabel id={`${name}_label`}>{label}</InputLabel>\n <Select\n labelId={`${name}_label`}\n name={name}\n multiple\n value={value}\n onChange={handleChange}\n {...rest}\n input={<OutlinedInput label={label} />}\n renderValue={(selected) => {\n if (selected.includes(\"all\")) {\n return allLabel; // Display allLabel when all options are selected\n }\n const selectedNames = options\n .filter(({ id }) => selected.includes(id))\n .map(({ name: opName }) => opName);\n return selectedNames.join(\", \");\n }}\n >\n <MenuItem key=\"all\" value=\"all\">\n <Checkbox checked={value.includes(\"all\")} />\n <ListItemText primary={allLabel} />\n </MenuItem>\n <Divider />\n {options.map(({ name: opName, id }) => (\n <MenuItem key={id} value={id}>\n <Checkbox checked={value.includes(id)} />\n <ListItemText primary={opName} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n );\n};\n\nexport default DropdownCheckbox;\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","name","label","allLabel","options","onChange","rest","FormControl","fullWidth","margin","InputLabel","id","Select","labelId","multiple","ev","rawValue","target","selected","Array","isArray","split","includes","length","filter","v","input","OutlinedInput","renderValue","map","opName","join","MenuItem","Checkbox","checked","ListItemText","primary","Divider"],"sourceRoot":""}