openstack-uicore-foundation 5.0.7-beta.1 → 5.0.8-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/.codegraph/config.json +140 -0
- package/docs/plans/2026-04-09-showconfirmdialog-react16-compat.md +83 -0
- package/lib/components/ajaxloader.js.map +1 -1
- package/lib/components/attendance-tracker.js +1 -1
- package/lib/components/attendance-tracker.js.map +1 -1
- package/lib/components/bulk-actions-selector.js.map +1 -1
- package/lib/components/circle-button.js.map +1 -1
- package/lib/components/clock.js +1 -1
- package/lib/components/clock.js.map +1 -1
- package/lib/components/exclusive-wrapper.js.map +1 -1
- package/lib/components/extra-questions-mui.js.map +1 -1
- package/lib/components/extra-questions.js +1 -1
- package/lib/components/extra-questions.js.map +1 -1
- package/lib/components/form-validation.js.map +1 -1
- package/lib/components/forms/rsvp-form.js.map +1 -1
- package/lib/components/forms/simple-form.js +1 -1
- package/lib/components/forms/simple-form.js.map +1 -1
- package/lib/components/free-text-search.js +1 -1
- package/lib/components/free-text-search.js.map +1 -1
- package/lib/components/google-map.js +1 -1
- package/lib/components/google-map.js.map +1 -1
- 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/action-dropdown.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/checkbox-list.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/datetimepicker.js.map +1 -1
- package/lib/components/inputs/dropdown.js.map +1 -1
- package/lib/components/inputs/editor-input-v2.js.map +1 -1
- package/lib/components/inputs/editor-input-v3.js.map +1 -1
- package/lib/components/inputs/editor-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/free-multi-text-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/grouped-dropdown.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/operator-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/radio-list.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/stepped-select.js.map +1 -1
- package/lib/components/inputs/summit-days-select.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/summit-venues-select.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/text-input.js.map +1 -1
- package/lib/components/inputs/textarea-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-v2.js +1 -1
- package/lib/components/inputs/upload-input-v2.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/inputs/upload-input.js.map +1 -1
- package/lib/components/mui/checkbox-list.js.map +1 -1
- package/lib/components/mui/chip-list.js.map +1 -1
- package/lib/components/mui/chip-notify.js +1 -1
- package/lib/components/mui/chip-notify.js.map +1 -1
- package/lib/components/mui/chip-select-input.js.map +1 -1
- package/lib/components/mui/confirm-dialog-provider.js +2 -0
- package/lib/components/mui/confirm-dialog-provider.js.map +1 -0
- package/lib/components/mui/confirm-dialog.js.map +1 -1
- package/lib/components/mui/custom-alert.js.map +1 -1
- package/lib/components/mui/dnd-list.js.map +1 -1
- package/lib/components/mui/dropdown-checkbox.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/async-select.js.map +1 -1
- package/lib/components/mui/formik-inputs/checkbox-group.js.map +1 -1
- package/lib/components/mui/formik-inputs/checkbox.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.map +1 -1
- package/lib/components/mui/formik-inputs/discount-field.js.map +1 -1
- package/lib/components/mui/formik-inputs/dropdown-checkbox.js.map +1 -1
- package/lib/components/mui/formik-inputs/dropdown-radio.js.map +1 -1
- package/lib/components/mui/formik-inputs/file-size-field.js.map +1 -1
- package/lib/components/mui/formik-inputs/item-price-tiers.js +1 -1
- package/lib/components/mui/formik-inputs/item-price-tiers.js.map +1 -1
- package/lib/components/mui/formik-inputs/price-field.js.map +1 -1
- package/lib/components/mui/formik-inputs/quantity-field.js.map +1 -1
- package/lib/components/mui/formik-inputs/radio-group.js.map +1 -1
- package/lib/components/mui/formik-inputs/select-group.js.map +1 -1
- package/lib/components/mui/formik-inputs/select.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/switch.js.map +1 -1
- package/lib/components/mui/formik-inputs/textfield.js.map +1 -1
- package/lib/components/mui/formik-inputs/timepicker.js.map +1 -1
- package/lib/components/mui/formik-inputs/upload.js +1 -1
- package/lib/components/mui/formik-inputs/upload.js.map +1 -1
- package/lib/components/mui/infinite-table.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/menu-button.js.map +1 -1
- package/lib/components/mui/notes-modal.js +1 -1
- package/lib/components/mui/notes-modal.js.map +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.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/progressive-img.js.map +1 -1
- package/lib/components/raw-html.js.map +1 -1
- package/lib/components/schedule-builder-view.js +1 -1
- package/lib/components/schedule-builder-view.js.map +1 -1
- package/lib/components/sections/panel.js.map +1 -1
- package/lib/components/simple-link-list.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/summit-dropdown.js.map +1 -1
- package/lib/components/table-editable.js +1 -1
- package/lib/components/table-editable.js.map +1 -1
- package/lib/components/table-selectable.js.map +1 -1
- package/lib/components/table-sortable.js.map +1 -1
- package/lib/components/table.js.map +1 -1
- package/lib/components/video-stream.js.map +1 -1
- package/lib/css/components/index.css +1 -1
- package/lib/css/components/index.css.map +1 -1
- package/lib/i18n.js +1 -1
- package/lib/i18n.js.map +1 -1
- package/lib/models/index.js.map +1 -1
- package/lib/models/summit-event.js.map +1 -1
- package/lib/security/abstract-auth-callback-route-v2.js +1 -1
- package/lib/security/abstract-auth-callback-route-v2.js.map +1 -1
- package/lib/security/abstract-auth-callback-route.js +1 -1
- package/lib/security/abstract-auth-callback-route.js.map +1 -1
- package/lib/security/actions.js +1 -1
- package/lib/security/actions.js.map +1 -1
- package/lib/security/methods.js +1 -1
- package/lib/security/methods.js.map +1 -1
- package/lib/security/reducers.js +1 -1
- package/lib/security/reducers.js.map +1 -1
- package/lib/security/session-checker.js +1 -1
- package/lib/security/session-checker.js.map +1 -1
- package/lib/utils/actions.js +1 -1
- package/lib/utils/actions.js.map +1 -1
- package/lib/utils/fragment-parser.js.map +1 -1
- package/lib/utils/methods.js +1 -1
- package/lib/utils/methods.js.map +1 -1
- package/lib/utils/money.js.map +1 -1
- package/lib/utils/query-actions.js +1 -1
- package/lib/utils/query-actions.js.map +1 -1
- package/lib/utils/questions-set.js +1 -1
- package/lib/utils/questions-set.js.map +1 -1
- package/lib/utils/reducers.js +1 -1
- package/lib/utils/reducers.js.map +1 -1
- package/lib/utils/use-fit-text.js.map +1 -1
- package/package.json +1 -9
- package/.claude/settings.local.json +0 -12
- package/lib/components/mui/alert-button.js +0 -2
- package/lib/components/mui/alert-button.js.map +0 -1
- package/lib/components/mui/alert-modal.js +0 -2
- package/lib/components/mui/alert-modal.js.map +0 -1
- package/lib/components/mui/auth-button.js +0 -2
- package/lib/components/mui/auth-button.js.map +0 -1
- package/lib/components/mui/cart-button.js +0 -2
- package/lib/components/mui/cart-button.js.map +0 -1
- package/lib/components/mui/confirm-delete-dialog.js +0 -2
- package/lib/components/mui/confirm-delete-dialog.js.map +0 -1
- package/lib/components/mui/dashboard-card.js +0 -2
- package/lib/components/mui/dashboard-card.js.map +0 -1
- package/lib/components/mui/download-btn.js +0 -2
- package/lib/components/mui/download-btn.js.map +0 -1
- package/lib/components/mui/loading-overlay.js +0 -2
- package/lib/components/mui/loading-overlay.js.map +0 -1
- package/lib/components/mui/nav-bar.js +0 -2
- package/lib/components/mui/nav-bar.js.map +0 -1
- package/lib/components/mui/order-summary.js +0 -2
- package/lib/components/mui/order-summary.js.map +0 -1
- package/lib/components/mui/status-chip.js +0 -2
- package/lib/components/mui/status-chip.js.map +0 -1
- package/lib/components/mui/stripe-payment.js +0 -2
- package/lib/components/mui/stripe-payment.js.map +0 -1
- package/lib/components/mui/upload-btn.js +0 -2
- package/lib/components/mui/upload-btn.js.map +0 -1
- package/lib/components/mui/upload-dialog.js +0 -2
- package/lib/components/mui/upload-dialog.js.map +0 -1
- package/lib/css/components/mui/auth-button.css +0 -1
- package/lib/css/components/mui/nav-bar.css +0 -1
- package/lib/css/components/mui/upload-dialog.css +0 -2
- package/lib/css/components/mui/upload-dialog.css.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/inputs/upload-input.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAX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A,cAAA,OAAKC,UAAU,WAAWU,aAtB7BC,KACbhC,GAAc,EAAK,EAqB+CiC,aAlBrDC,KACblC,GAAc,EAAM,GAkBAoB,IAAAA,cAAA,OAAKe,IAAKjC,EAAYE,UACtBgB,IAAAA,cAAA,KAAGgB,KAAM9C,EAAO+C,OAAO,UAAUnC,aAAW,EAAXA,EAAaG,MAC7CN,GACGqB,IAAAA,cAAA,OAAKC,UAAU,SAASiB,QA/BlCC,IACdA,EAAGC,iBACH/C,EAAa8C,EAAEV,EAAA,GAAMjC,GAAM,GA8BCwB,IAAAA,cAAA,KAAGC,UAAU,kBAK5BF,GACGC,IAAAA,cAAA,KAAGC,UAAU,eAAe7B,KAItC,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","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 \"i18n-react/dist/i18n-react\"","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 \"react-dropzone\"","webpack://openstack-uicore-foundation/./src/components/inputs/upload-input/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 ","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"i18n-react/dist/i18n-react\");","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(\"react-dropzone\");","/**\n * Copyright 2017 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} from 'react';\nimport Dropzone from 'react-dropzone';\nimport T from 'i18n-react/dist/i18n-react';\nimport './upload.less';\n\nimport file_icon from './file.png';\nimport pdf_icon from './pdf.png';\nimport mov_icon from './mov.png';\nimport mp4_icon from './mp4.png';\nimport csv_icon from './csv.png';\n\nconst fileHasPreview = (fileName) => {\n if (!fileName) return false;\n const pattern = /(.*)\\.(gif|bmp|svg|jpe?g|png)/g\n return pattern.test(fileName);\n}\n\nconst getPreviewIcon = (value, fileName) => {\n if (value && fileHasPreview(fileName)) {\n return value;\n }\n\n const ext = fileName.split('.').pop();\n\n switch (ext) {\n case 'pdf':\n return pdf_icon;\n case 'mov':\n return mov_icon;\n case 'mp4':\n return mp4_icon;\n case 'csv':\n return csv_icon;\n default:\n return file_icon;\n }\n}\n\nconst UploadInput = ({value, error, handleRemove, handleUpload, handleError, ...rest}) => {\n const [showRemove, setShowRemove] = useState(false);\n const [logoPreview, setLogoPreview] = useState({preview: null, name: ''});\n\n useEffect(() => {\n const logoPreviewTmp = {preview: null, name: ''};\n\n if (value) {\n const fileName = value.split(\"/\").pop();\n logoPreviewTmp.preview = getPreviewIcon(value, fileName);\n logoPreviewTmp.name = fileName;\n setLogoPreview(logoPreviewTmp);\n }\n }, [value]);\n\n const onDrop = (acceptedFiles, fileRejections) => {\n if (acceptedFiles.length > 0) {\n const file = acceptedFiles[0];\n handleUpload(file, {...rest});\n }\n\n if (fileRejections.length > 0 && handleError)\n handleError(fileRejections, {...rest});\n }\n\n const onRemove = (ev) => {\n ev.preventDefault();\n handleRemove(ev, {...rest});\n }\n\n const showVeil = () => {\n setShowRemove(true)\n }\n\n const hideVeil = () => {\n setShowRemove(false);\n }\n\n const has_error = error !== '';\n\n return (\n <div className=\"file-upload\">\n <Dropzone\n onDrop={onDrop}\n {...rest}\n >\n <div>{T.translate(\"general.drop_files\")}</div>\n </Dropzone>\n <div className=\"selected-files-box col-md-6\">\n <p>Selected Files</p>\n <div className=\"selected-files\">\n {value &&\n <div className=\"file-box\" onMouseEnter={showVeil} onMouseLeave={hideVeil}>\n <img src={logoPreview.preview} />\n <a href={value} target=\"_blank\">{logoPreview?.name}</a>\n {showRemove &&\n <div className=\"remove\" onClick={onRemove}>\n <i className=\"fa fa-times\"></i>\n </div>\n }\n </div>\n }\n {has_error &&\n <p className=\"error-label\">{error}</p>\n }\n </div>\n </div>\n </div>\n )\n}\n\nexport default UploadInput;\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","_ref","error","handleRemove","handleUpload","handleError","rest","_objectWithoutProperties","_excluded","showRemove","setShowRemove","useState","logoPreview","setLogoPreview","preview","name","useEffect","logoPreviewTmp","fileName","split","pop","getPreviewIcon","test","fileHasPreview","pdf_icon","mov_icon","mp4_icon","csv_icon","file_icon","has_error","React","className","Dropzone","_extends","onDrop","acceptedFiles","fileRejections","length","file","_objectSpread","T","onMouseEnter","showVeil","onMouseLeave","hideVeil","src","href","target","onClick","ev","preventDefault"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"components/inputs/upload-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,gjsDCTTH,EAAOD,QAAUK,QAAQ,wC,WCAzBJ,EAAOD,QAAUK,QAAQ,iC,WCAz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-foundation/webpack/universalModuleDefinition","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 \"i18n-react/dist/i18n-react\"","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 \"react-dropzone\"","webpack://openstack-uicore-foundation/./src/components/inputs/upload-input/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 ","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"i18n-react/dist/i18n-react\");","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(\"react-dropzone\");","/**\n * Copyright 2017 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} from 'react';\nimport Dropzone from 'react-dropzone';\nimport T from 'i18n-react/dist/i18n-react';\nimport './upload.less';\n\nimport file_icon from './file.png';\nimport pdf_icon from './pdf.png';\nimport mov_icon from './mov.png';\nimport mp4_icon from './mp4.png';\nimport csv_icon from './csv.png';\n\nconst fileHasPreview = (fileName) => {\n if (!fileName) return false;\n const pattern = /(.*)\\.(gif|bmp|svg|jpe?g|png)/g\n return pattern.test(fileName);\n}\n\nconst getPreviewIcon = (value, fileName) => {\n if (value && fileHasPreview(fileName)) {\n return value;\n }\n\n const ext = fileName.split('.').pop();\n\n switch (ext) {\n case 'pdf':\n return pdf_icon;\n case 'mov':\n return mov_icon;\n case 'mp4':\n return mp4_icon;\n case 'csv':\n return csv_icon;\n default:\n return file_icon;\n }\n}\n\nconst UploadInput = ({value, error, handleRemove, handleUpload, handleError, ...rest}) => {\n const [showRemove, setShowRemove] = useState(false);\n const [logoPreview, setLogoPreview] = useState({preview: null, name: ''});\n\n useEffect(() => {\n const logoPreviewTmp = {preview: null, name: ''};\n\n if (value) {\n const fileName = value.split(\"/\").pop();\n logoPreviewTmp.preview = getPreviewIcon(value, fileName);\n logoPreviewTmp.name = fileName;\n setLogoPreview(logoPreviewTmp);\n }\n }, [value]);\n\n const onDrop = (acceptedFiles, fileRejections) => {\n if (acceptedFiles.length > 0) {\n const file = acceptedFiles[0];\n handleUpload(file, {...rest});\n }\n\n if (fileRejections.length > 0 && handleError)\n handleError(fileRejections, {...rest});\n }\n\n const onRemove = (ev) => {\n ev.preventDefault();\n handleRemove(ev, {...rest});\n }\n\n const showVeil = () => {\n setShowRemove(true)\n }\n\n const hideVeil = () => {\n setShowRemove(false);\n }\n\n const has_error = error !== '';\n\n return (\n <div className=\"file-upload\">\n <Dropzone\n onDrop={onDrop}\n {...rest}\n >\n <div>{T.translate(\"general.drop_files\")}</div>\n </Dropzone>\n <div className=\"selected-files-box col-md-6\">\n <p>Selected Files</p>\n <div className=\"selected-files\">\n {value &&\n <div className=\"file-box\" onMouseEnter={showVeil} onMouseLeave={hideVeil}>\n <img src={logoPreview.preview} />\n <a href={value} target=\"_blank\">{logoPreview?.name}</a>\n {showRemove &&\n <div className=\"remove\" onClick={onRemove}>\n <i className=\"fa fa-times\"></i>\n </div>\n }\n </div>\n }\n {has_error &&\n <p className=\"error-label\">{error}</p>\n }\n </div>\n </div>\n </div>\n )\n}\n\nexport default UploadInput;\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","error","handleRemove","handleUpload","handleError","rest","showRemove","setShowRemove","useState","logoPreview","setLogoPreview","preview","name","useEffect","logoPreviewTmp","fileName","split","pop","test","fileHasPreview","pdf_icon","mov_icon","mp4_icon","csv_icon","file_icon","getPreviewIcon","has_error","className","onDrop","acceptedFiles","fileRejections","length","file","T","onMouseEnter","onMouseLeave","src","href","target","onClick","ev","preventDefault"],"sourceRoot":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/mui/checkbox-list.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,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,KA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,SAASxB,EAAKC,KAAOL,EAC5CR,SAAU,IAnDAqC,KACxB,IAAIC,EAAW,GAEbA,EADE9B,EACSE,EAAW6B,QAAQ1B,GAAOA,IAAOwB,IACnChC,EAAc+B,SAASC,GACrBhC,EAAckC,QAAQ1B,GAAOA,IAAOwB,IAEpC,IAAIhC,EAAegC,GAGhC/B,EAAiBgC,GAEjB7B,GAAiB,GACjBT,EAASsC,EAAT,EAsC8BE,CAAiB5B,EAAKC,MAG1CoB,MAAOrB,EAAK6B,UA/BxB,E","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/checkbox-list.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, { useState } from \"react\";\nimport {\n Checkbox,\n FormControlLabel,\n FormGroup,\n Box,\n Divider\n} from \"@mui/material\";\n\nconst CheckBoxList = ({\n items = [],\n onChange,\n loadMoreData,\n boxHeight = \"400px\",\n allItemsLabel = \"Select All\",\n noItemsLabel = \"No items found\"\n}) => {\n const [selectedItems, setSelectedItems] = useState([]);\n const [isAllSelected, setIsAllSelected] = useState(false);\n const allItemIds = items.map((item) => item.id);\n\n const handleScroll = (event) => {\n const { scrollTop, scrollHeight, clientHeight } = event.target;\n // eslint-disable-next-line no-magic-numbers\n if (scrollTop + clientHeight >= scrollHeight - 20 && loadMoreData) {\n loadMoreData();\n }\n };\n\n const handleItemChange = (itemId) => {\n let selected = [];\n if (isAllSelected) {\n selected = allItemIds.filter((id) => id !== itemId);\n } else if (selectedItems.includes(itemId)) {\n selected = selectedItems.filter((id) => id !== itemId);\n } else {\n selected = [...selectedItems, itemId];\n }\n\n setSelectedItems(selected);\n // if user selects an item, then allSelected should be unchecked\n setIsAllSelected(false);\n onChange(selected);\n };\n\n const handleAllChange = () => {\n // if user selects all, we should remove all other selections\n setSelectedItems([]);\n setIsAllSelected(!isAllSelected);\n onChange([], !isAllSelected);\n };\n\n return (\n <Box\n sx={{\n width: \"100%\",\n height: boxHeight,\n overflow: \"auto\",\n border: \"1px solid #ccc\",\n padding: 2\n }}\n onScroll={handleScroll}\n >\n {items.length === 0 ? (\n <p>{noItemsLabel}</p>\n ) : (\n <FormGroup>\n <FormControlLabel\n control={\n <Checkbox checked={isAllSelected} onChange={handleAllChange} />\n }\n label={allItemsLabel}\n />\n <Divider sx={{ mb: 2 }} />\n {items.map((item) => (\n <FormControlLabel\n key={item.id}\n control={\n <Checkbox\n checked={selectedItems.includes(item.id) || isAllSelected}\n onChange={() => handleItemChange(item.id)}\n />\n }\n label={item.name}\n />\n ))}\n </FormGroup>\n )}\n </Box>\n );\n};\n\nexport default CheckBoxList;\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","items","onChange","loadMoreData","boxHeight","allItemsLabel","noItemsLabel","selectedItems","setSelectedItems","useState","isAllSelected","setIsAllSelected","allItemIds","map","item","id","Box","sx","width","height","overflow","border","padding","onScroll","event","scrollTop","scrollHeight","clientHeight","target","length","FormGroup","FormControlLabel","control","Checkbox","checked","label","Divider","mb","includes","item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,6ECW9D,MAyBA,EAzBiB,EAAGC,QAAOC,gBACzB,MAAMC,EAAaF,EAAMG,MAAM,EAAGF,GAC5BG,EAAOJ,EAAMG,MAAMF,GAEzB,OACE,kBAAC,EAAAI,IAAD,KACGH,EAAWI,KAAKC,GACf,kBAAC,EAAAC,KAAD,CAAMvB,IAAM,QAAOsB,IAAQE,MAAOF,EAAMG,KAAK,QAAQC,GAAI,CAAEC,GAAI,OAEhER,EAAKS,OAAS,GACb,kBAAC,EAAAC,QAAD,CACEC,MAAOX,EAAKE,KAAKV,GACf,kBAAC,EAAAoB,WAAD,CAAY/B,IAAM,SAAQW,IAAKqB,QAAQ,QAAQC,UAAU,OACtDtB,KAGLuB,OAAK,GAEL,kBAAC,EAAAX,KAAD,CAAMC,MAAM,MAAMC,KAAK,QAAQC,GAAI,CAAES,OAAQ,cAdrD,E","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/chip-list.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 { Box, Chip, Tooltip, Typography } from \"@mui/material\";\n\nconst ChipList = ({ chips, maxLength }) => {\n const shownItems = chips.slice(0, maxLength);\n const rest = chips.slice(maxLength);\n\n return (\n <Box>\n {shownItems.map((chip) => (\n <Chip key={`chip-${chip}`} label={chip} size=\"small\" sx={{ mr: 1 }} />\n ))}\n {rest.length > 0 && (\n <Tooltip\n title={rest.map((r) => (\n <Typography key={`cl-tt-${r}`} variant=\"body1\" component=\"div\">\n {r}\n </Typography>\n ))}\n arrow\n >\n <Chip label=\"...\" size=\"small\" sx={{ cursor: \"pointer\" }} />\n </Tooltip>\n )}\n </Box>\n );\n};\n\nexport default ChipList;\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","chips","maxLength","shownItems","slice","rest","Box","map","chip","Chip","label","size","sx","mr","length","Tooltip","title","Typography","variant","component","arrow","cursor"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],r):"object"==typeof exports?exports["openstack-uicore-foundation"]=r():e["openstack-uicore-foundation"]=r()}(this,(()=>(()=>{"use strict";var e={6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],r):"object"==typeof exports?exports["openstack-uicore-foundation"]=r():e["openstack-uicore-foundation"]=r()}(this,(()=>(()=>{"use strict";var e={6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},8619:e=>{e.exports=require("@mui/material")},2015:e=>{e.exports=require("react")}},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var i=r[o]={exports:{}};return e[o](i,i.exports,t),i.exports}(()=>{t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r}})(),(()=>{t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})}})(),(()=>{t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)})(),(()=>{t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var o={};t.r(o),t.d(o,{default:()=>b});var n=t(6031),i=t.n(n),a=t(2462),u=t.n(a),l=t(2015),c=t.n(l),p=t(8619);const s=require("@mui/icons-material/Notifications");var d=t.n(s);const f=["label","color","Icon"],b=e=>{let{label:r,color:t="warning",Icon:o=d()}=e,n=u()(e,f);return c().createElement(p.Chip,i()({icon:c().createElement(o,null),color:t,label:r.toUpperCase(),variant:"outlined"},n))};return o})()));
|
|
2
2
|
//# sourceMappingURL=chip-notify.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/mui/chip-notify.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,
|
|
1
|
+
{"version":3,"file":"components/mui/chip-notify.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,IA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ACND,MAAOA,EACPD,MAAOA,EAAMO,cACbC,QAAQ,YACJJ,GANW,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/external commonjs \"@mui/icons-material/Notifications\"","webpack://openstack-uicore-foundation/./src/components/mui/chip-notify.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};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Notifications\");","/**\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 { Chip } from \"@mui/material\";\nimport NotificationsIcon from \"@mui/icons-material/Notifications\";\n\nconst ChipNotify = ({ label, color = \"warning\", Icon = NotificationsIcon, ...props }) => (\n <Chip\n icon={<Icon />}\n color={color}\n label={label.toUpperCase()}\n variant=\"outlined\"\n {...props}\n />\n);\n\nexport default ChipNotify;\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","label","color","Icon","NotificationsIcon","props","Chip","icon","toUpperCase","variant"],"sourceRoot":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/mui/chip-select-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,mCCTTH,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,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,E,WCClFlB,EAAoBsB,EAAK7B,IACH,oBAAX8B,QAA0BA,OAAOC,aAC1C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,CAAEC,QAAS,OAAQC,SAAU,OAAQC,IAAK,KAChDJ,EAASvB,KAAKpB,IACb,MAAMgD,EAAK9C,EAAiB+C,MAAMC,GAAQA,EAAIlD,QAAUA,IACxD,OAAKgD,EAEHvB,IAAAA,cAAC0B,EAAAA,KAAI,CACHjE,IAAK8D,EAAGhD,MACRyC,MAAOO,EAAGP,MACVW,SAAUA,KAhCFpD,KACxB,MAAMqD,EAAYzC,EAAgB0C,QAAQjC,GAAMA,IAAMrB,IACtDa,EAAmBwC,GACnB5C,EAAiB4C,EAAU,EA8BTE,CAAiBP,EAAGhD,MAAM,EAE5BwD,WACE/B,IAAAA,cAACgC,EAAAA,UAAS,CACRC,YAAcC,IACZA,EAAEC,iBAAiB,MAXb,IAeZ,KAKVC,aACEjD,EAAgBY,OAAS,GACvBC,IAAAA,cAACqC,EAAAA,eAAc,CAAClB,GAAI,CAAEmB,YAAa,QAAUC,SAAS,OACpDvC,IAAAA,cAACwC,EAAAA,WAAU,CACTC,QAASA,KACP5C,EAAiB,GAAG,GAGtBG,IAAAA,cAACgC,EAAAA,UAAS,SAMjBvD,EAAiBkB,KAAI,EAAGpB,QAAOyC,WAC9BhB,IAAAA,cAAC0C,EAAAA,SAAQ,CAACjF,IAAKc,EAAOA,MAAOA,GAC1ByC,QAxDJ,IA6DD,E","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/external commonjs \"@mui/x-date-pickers\"","webpack://openstack-uicore-foundation/./src/components/mui/chip-select-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 ","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};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/x-date-pickers\");","/**\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 } from \"react\";\nimport {\n Box,\n Chip,\n FormControl,\n IconButton,\n InputAdornment,\n InputLabel,\n MenuItem,\n OutlinedInput,\n Select\n} from \"@mui/material\";\nimport { ClearIcon } from \"@mui/x-date-pickers\";\n\nconst ChipSelectInput = ({\n availableOptions = [],\n canAdd = false,\n canEdit = false,\n inputLabel = \"\",\n currentSettings = null,\n onGetSettingsMeta,\n onGetSettings,\n onUpsertSettings,\n renderSelectedOptions,\n denormalizeSettings\n}) => {\n const [selectedColumns, setSelectedColumns] = useState([]);\n const [isDirty, setIsDirty] = useState(false);\n\n // get current selected options\n useEffect(() => {\n if (onGetSettings) {\n onGetSettings();\n }\n }, [onGetSettings]);\n\n useEffect(() => {\n if (currentSettings) {\n if (onGetSettingsMeta) {\n onGetSettingsMeta();\n }\n\n if (currentSettings && renderSelectedOptions && denormalizeSettings) {\n const selectedColumnsTmp = renderSelectedOptions(\n denormalizeSettings(currentSettings.columns)\n ).map((c) => c.value);\n setSelectedColumns(selectedColumnsTmp);\n }\n }\n }, [currentSettings]);\n\n const submitNewColumns = (newValue) => {\n setSelectedColumns(newValue);\n onUpsertSettings(newValue);\n setIsDirty(false);\n };\n\n const handleColumnChange = (value) => {\n setSelectedColumns(value);\n setIsDirty(true);\n };\n\n const handleRemoveItem = (value) => {\n const newValues = selectedColumns.filter((c) => c !== value);\n setSelectedColumns(newValues);\n onUpsertSettings(newValues);\n };\n\n if (!canAdd || !canEdit || availableOptions.length === 0) {\n return null;\n }\n\n return (\n <Box>\n <FormControl fullWidth>\n <InputLabel id=\"multi-select-label\">{inputLabel}</InputLabel>\n <Select\n labelId=\"multi-select-label\"\n id=\"multi-select\"\n multiple\n fullWidth\n value={selectedColumns}\n onChange={(ev) => handleColumnChange(ev.target.value)}\n onClose={() => (isDirty ? submitNewColumns(selectedColumns) : null)}\n input={<OutlinedInput label={inputLabel} />}\n renderValue={(selected) => (\n <Box sx={{ display: \"flex\", flexWrap: \"wrap\", gap: 0.5 }}>\n {selected.map((value) => {\n const op = availableOptions.find((opt) => opt.value === value);\n if (!op) return null;\n return (\n <Chip\n key={op.value}\n label={op.label}\n onDelete={() => {\n handleRemoveItem(op.value);\n }}\n deleteIcon={\n <ClearIcon\n onMouseDown={(e) => {\n e.stopPropagation();\n }}\n />\n }\n />\n );\n })}\n </Box>\n )}\n endAdornment={\n selectedColumns.length > 0 && (\n <InputAdornment sx={{ marginRight: \"10px\" }} position=\"end\">\n <IconButton\n onClick={() => {\n submitNewColumns([]);\n }}\n >\n <ClearIcon />\n </IconButton>\n </InputAdornment>\n )\n }\n >\n {availableOptions.map(({ value, label }) => (\n <MenuItem key={value} value={value}>\n {label}\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n </Box>\n );\n};\n\nexport default ChipSelectInput;\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","ChipSelectInput","availableOptions","canAdd","canEdit","inputLabel","currentSettings","onGetSettingsMeta","onGetSettings","onUpsertSettings","renderSelectedOptions","denormalizeSettings","selectedColumns","setSelectedColumns","useState","isDirty","setIsDirty","useEffect","selectedColumnsTmp","columns","map","c","submitNewColumns","newValue","length","React","Box","FormControl","fullWidth","InputLabel","id","Select","labelId","multiple","onChange","ev","handleColumnChange","target","onClose","input","OutlinedInput","label","renderValue","selected","sx","display","flexWrap","gap","op","find","opt","Chip","onDelete","newValues","filter","handleRemoveItem","deleteIcon","ClearIcon","onMouseDown","e","stopPropagation","endAdornment","InputAdornment","marginRight","position","IconButton","onClick","MenuItem"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"components/mui/chip-select-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,mCCTTH,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,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,E,WCClFlB,EAAoBsB,EAAK7B,IACH,oBAAX8B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAerB,EAAS8B,OAAOC,YAAa,CAAEC,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C,EAAiB8C,MAAMC,GAAQA,EAAIhD,QAAUA,IACxD,OAAK8C,EAEH,kBAAC,EAAAG,KAAD,CACE/D,IAAK4D,EAAG9C,MACRuC,MAAOO,EAAGP,MACVW,SAAU,KAhCFlD,KACxB,MAAMmD,EAAYxC,EAAgByC,QAAQhC,GAAMA,IAAMpB,IACtDY,EAAmBuC,GACnB3C,EAAiB2C,EAAjB,EA8BkBE,CAAiBP,EAAG9C,MAApB,EAEFsD,WACE,kBAAC,EAAAC,UAAD,CACEC,YAAcC,IACZA,EAAEC,iBAAF,MAXM,IAChB,KAmBNC,aACEhD,EAAgBY,OAAS,GACvB,kBAAC,EAAAqC,eAAD,CAAgBlB,GAAI,CAAEmB,YAAa,QAAUC,SAAS,OACpD,kBAAC,EAAAC,WAAD,CACEC,QAAS,KACP3C,EAAiB,GAAjB,GAGF,kBAAC,EAAAkC,UAAD,SAMPtD,EAAiBkB,KAAI,EAAGnB,QAAOuC,WAC9B,kBAAC,EAAA0B,SAAD,CAAU/E,IAAKc,EAAOA,MAAOA,GAC1BuC,QAxDJ,IAGT,E","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/external commonjs \"@mui/x-date-pickers\"","webpack://openstack-uicore-foundation/./src/components/mui/chip-select-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 ","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};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/x-date-pickers\");","/**\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 } from \"react\";\nimport {\n Box,\n Chip,\n FormControl,\n IconButton,\n InputAdornment,\n InputLabel,\n MenuItem,\n OutlinedInput,\n Select\n} from \"@mui/material\";\nimport { ClearIcon } from \"@mui/x-date-pickers\";\n\nconst ChipSelectInput = ({\n availableOptions = [],\n canAdd = false,\n canEdit = false,\n inputLabel = \"\",\n currentSettings = null,\n onGetSettingsMeta,\n onGetSettings,\n onUpsertSettings,\n renderSelectedOptions,\n denormalizeSettings\n}) => {\n const [selectedColumns, setSelectedColumns] = useState([]);\n const [isDirty, setIsDirty] = useState(false);\n\n // get current selected options\n useEffect(() => {\n if (onGetSettings) {\n onGetSettings();\n }\n }, [onGetSettings]);\n\n useEffect(() => {\n if (currentSettings) {\n if (onGetSettingsMeta) {\n onGetSettingsMeta();\n }\n\n if (currentSettings && renderSelectedOptions && denormalizeSettings) {\n const selectedColumnsTmp = renderSelectedOptions(\n denormalizeSettings(currentSettings.columns)\n ).map((c) => c.value);\n setSelectedColumns(selectedColumnsTmp);\n }\n }\n }, [currentSettings]);\n\n const submitNewColumns = (newValue) => {\n setSelectedColumns(newValue);\n onUpsertSettings(newValue);\n setIsDirty(false);\n };\n\n const handleColumnChange = (value) => {\n setSelectedColumns(value);\n setIsDirty(true);\n };\n\n const handleRemoveItem = (value) => {\n const newValues = selectedColumns.filter((c) => c !== value);\n setSelectedColumns(newValues);\n onUpsertSettings(newValues);\n };\n\n if (!canAdd || !canEdit || availableOptions.length === 0) {\n return null;\n }\n\n return (\n <Box>\n <FormControl fullWidth>\n <InputLabel id=\"multi-select-label\">{inputLabel}</InputLabel>\n <Select\n labelId=\"multi-select-label\"\n id=\"multi-select\"\n multiple\n fullWidth\n value={selectedColumns}\n onChange={(ev) => handleColumnChange(ev.target.value)}\n onClose={() => (isDirty ? submitNewColumns(selectedColumns) : null)}\n input={<OutlinedInput label={inputLabel} />}\n renderValue={(selected) => (\n <Box sx={{ display: \"flex\", flexWrap: \"wrap\", gap: 0.5 }}>\n {selected.map((value) => {\n const op = availableOptions.find((opt) => opt.value === value);\n if (!op) return null;\n return (\n <Chip\n key={op.value}\n label={op.label}\n onDelete={() => {\n handleRemoveItem(op.value);\n }}\n deleteIcon={\n <ClearIcon\n onMouseDown={(e) => {\n e.stopPropagation();\n }}\n />\n }\n />\n );\n })}\n </Box>\n )}\n endAdornment={\n selectedColumns.length > 0 && (\n <InputAdornment sx={{ marginRight: \"10px\" }} position=\"end\">\n <IconButton\n onClick={() => {\n submitNewColumns([]);\n }}\n >\n <ClearIcon />\n </IconButton>\n </InputAdornment>\n )\n }\n >\n {availableOptions.map(({ value, label }) => (\n <MenuItem key={value} value={value}>\n {label}\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n </Box>\n );\n};\n\nexport default ChipSelectInput;\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","availableOptions","canAdd","canEdit","inputLabel","currentSettings","onGetSettingsMeta","onGetSettings","onUpsertSettings","renderSelectedOptions","denormalizeSettings","selectedColumns","setSelectedColumns","useState","isDirty","setIsDirty","useEffect","selectedColumnsTmp","columns","map","c","submitNewColumns","newValue","length","Box","FormControl","fullWidth","InputLabel","id","Select","labelId","multiple","onChange","ev","handleColumnChange","target","onClose","input","OutlinedInput","label","renderValue","selected","sx","display","flexWrap","gap","op","find","opt","Chip","onDelete","newValues","filter","handleRemoveItem","deleteIcon","ClearIcon","onMouseDown","e","stopPropagation","endAdornment","InputAdornment","marginRight","position","IconButton","onClick","MenuItem"],"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={4574:(e,t,n)=>{n.d(t,{default:()=>s});var r=n(2015),o=n.n(r),i=n(9825),c=n.n(i),l=n(8619),a=n(5814);const u={warning:o().createElement(a.Warning,{color:"warning"}),success:o().createElement(a.CheckCircle,{color:"success"}),error:o().createElement(a.Error,{color:"error"}),info:o().createElement(a.Info,{color:"info"})},p=({open:e,title:t,text:n,iconType:r="",onConfirm:i,onCancel:c,confirmButtonText:a="Confirm",confirmButtonColor:p="primary",cancelButtonText:s="Cancel",cancelButtonColor:f="primary"})=>o().createElement(l.Dialog,{open:e,onClose:c},o().createElement(l.DialogTitle,{sx:{p:2},component:"div"},o().createElement(l.Typography,{variant:"h5"},t)),o().createElement(l.Divider,null),o().createElement(l.DialogContent,{sx:{p:2}},o().createElement("div",{style:{display:"flex",alignItems:"center"}},u[r]&&o().createElement("div",{style:{marginRight:10}},u[r]),o().createElement(l.Typography,{variant:"body1"},n))),o().createElement(l.Divider,{sx:{margin:"10px 0px 10px 0px"}}),o().createElement(l.DialogActions,null,o().createElement(l.Button,{fullWidth:!0,onClick:c,color:f,variant:"outlined",sx:{whiteSpace:"nowrap",minWidth:100}},s),o().createElement(l.Button,{fullWidth:!0,onClick:i,color:p,variant:"contained",sx:{whiteSpace:"nowrap",minWidth:100}},a)));p.propTypes={open:c().bool,title:c().string.isRequired,text:c().string.isRequired,iconType:c().string,onConfirm:c().func.isRequired,onCancel:c().func.isRequired,confirmButtonText:c().string,confirmButtonColor:c().string,cancelButtonText:c().string,cancelButtonColor:c().string},p.defaultProps={open:!1,iconType:"warning",confirmButtonText:"Confirm",confirmButtonColor:"primary",cancelButtonText:"Cancel",cancelButtonColor:"default"};const s=p},2024:(e,t,n)=>{n.d(t,{_registerBridge:()=>o,_unregisterBridge:()=>i});require("react-dom");n(2015),n(4574);let r=null;function o(e){r=e}function i(){r=null}},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},5814:e=>{e.exports=require("@mui/icons-material")},8619:e=>{e.exports=require("@mui/material")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(()=>{n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t}})(),(()=>{n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var r={};n.r(r),n.d(r,{default:()=>y});var o=n(1116),i=n.n(o),c=n(2015),l=n.n(c),a=n(9825),u=n.n(a),p=n(4574),s=n(2024);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const d=({children:e})=>{const[t,n]=(0,c.useState)(null);(0,c.useEffect)((()=>((0,s._registerBridge)((e=>new Promise((t=>{n(m(m({},e),{},{open:!0,onResolve:t}))})))),()=>{(0,s._unregisterBridge)()})),[]);return l().createElement(l().Fragment,null,e,t&&l().createElement(p.default,{open:t.open,title:t.title,text:t.text,iconType:t.iconType,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,confirmButtonColor:t.confirmButtonColor,cancelButtonColor:t.cancelButtonColor,onConfirm:()=>{null!=t&&t.onResolve&&t.onResolve(!0),n(null)},onCancel:()=>{null!=t&&t.onResolve&&t.onResolve(!1),n(null)}}))};d.propTypes={children:u().node.isRequired};const y=d;return r})()));
|
|
2
|
+
//# sourceMappingURL=confirm-dialog-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components/mui/confirm-dialog-provider.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,QAAS,kBAAC,EAAAC,QAAD,CAASC,MAAM,YACxBC,QAAS,kBAAC,EAAAC,YAAD,CAAaF,MAAM,YAC5BG,MAAO,kBAAC,EAAAC,MAAD,CAAOJ,MAAM,UACpBK,KAAM,kBAAC,EAAAC,KAAD,CAAMN,MAAM,UAGdO,EAAgB,EACpBC,OACAC,QACAC,OACAC,WAAW,GACXC,YACAC,WACAC,oBAAoB,UACpBC,qBAAqB,UACrBC,mBAAmB,SACnBC,oBAAoB,aAEpB,kBAAC,EAAAC,OAAD,CAAQV,KAAMA,EAAMW,QAASN,GAC3B,kBAAC,EAAAO,YAAD,CAAaC,GAAI,CAAEC,EAAG,GAAKC,UAAU,OACnC,kBAAC,EAAAC,WAAD,CAAYC,QAAQ,MAAMhB,IAE5B,kBAAC,EAAAiB,QAAD,MACA,kBAAC,EAAAC,cAAD,CAAeN,GAAI,CAAEC,EAAG,IACtB,yBAAKM,MAAO,CAAEC,QAAS,OAAQC,WAAY,WACxCjC,EAAQc,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D,EAAY/D,kBAC/BE,iBAAkB6D,EAAY7D,iBAC9BD,mBAAoB8D,EAAY9D,mBAChCE,kBAAmB4D,EAAY5D,kBAC/BL,UA3Bc,KAChBiE,SAAAA,EAAaO,WACfP,EAAYO,WAAU,GAExBN,EAAe,KAAf,EAwBMjE,SArBa,KACfgE,SAAAA,EAAaO,WACfP,EAAYO,WAAU,GAExBN,EAAe,KAAf,IAGF,EAqBFH,EAAsBpC,UAAY,CAChCqC,SAAUpC,IAAAA,KAAeC,YAG3B,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/mui/confirm-dialog.js","webpack://openstack-uicore-foundation/external commonjs \"react-dom\"","webpack://openstack-uicore-foundation/./src/components/mui/showConfirmDialog.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/ConfirmDialogProvider.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","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"react-dom\");","/**\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\n/**\n * REACT 19 USAGE:\n *\n * For React 19 projects (where ReactDOM.render() was removed), wrap your app with the provider:\n *\n * import { ConfirmDialogProvider } from 'openstack-uicore-foundation';\n *\n * function App() {\n * return (\n * <ConfirmDialogProvider>\n * <YourApp />\n * </ConfirmDialogProvider>\n * );\n * }\n *\n * Then use showConfirmDialog() anywhere in your app:\n *\n * import { MuiShowConfirmDialog } from 'openstack-uicore-foundation';\n *\n * const confirmed = await MuiShowConfirmDialog({\n * title: 'Delete Item?',\n * text: 'This cannot be undone'\n * });\n *\n * The provider renders dialogs inside the React tree using hooks (no createRoot or ReactDOM.render needed).\n *\n * WITHOUT PROVIDER (React 16/17/18 fallback):\n * Falls back to ReactDOM.render() - works on React 16/17/18, logs warning suggesting provider migration.\n * Not compatible with React 19 - provider is required.\n */\n\nimport ReactDOM from \"react-dom\";\nimport React from \"react\";\nimport ConfirmDialog from \"./confirm-dialog\";\n\n// Bridge pattern: module-level variable to hold the provider's callback\nlet bridgeFn = null;\n\n/**\n * Register the bridge callback (called by ConfirmDialogProvider on mount)\n * @private - exported for testing only\n */\nexport function _registerBridge(callback) {\n bridgeFn = callback;\n}\n\n/**\n * Unregister the bridge callback (called by ConfirmDialogProvider on unmount)\n * @private - exported for testing only\n */\nexport function _unregisterBridge() {\n bridgeFn = null;\n}\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<unknown>}\n */\nconst showConfirmDialog = ({\n title,\n text,\n iconType = \"\",\n confirmButtonText = \"Confirm\",\n cancelButtonText = \"Cancel\",\n confirmButtonColor = \"primary\",\n cancelButtonColor = \"primary\"\n}) => {\n const options = {\n title,\n text,\n iconType,\n confirmButtonText,\n cancelButtonText,\n confirmButtonColor,\n cancelButtonColor\n };\n\n // If bridge is registered (provider is mounted), use it\n if (bridgeFn) {\n return bridgeFn(options);\n }\n\n // Fallback to ReactDOM.render for backward compatibility\n // This path is used when consuming apps haven't migrated to ConfirmDialogProvider yet\n console.warn(\n \"[openstack-uicore-foundation] showConfirmDialog: ConfirmDialogProvider is not mounted. \" +\n \"For better React 16/17/18/19 compatibility, wrap your app with <ConfirmDialogProvider>. \" +\n \"Falling back to ReactDOM.render.\"\n );\n\n return new Promise((resolve) => {\n const container = document.createElement(\"div\");\n document.body.appendChild(container);\n\n const close = (answer) => {\n ReactDOM.unmountComponentAtNode(container);\n container.remove();\n resolve(answer);\n };\n\n const handleConfirm = () => close(true);\n const handleCancel = () => close(false);\n\n const element = (\n <ConfirmDialog\n open\n title={title}\n text={text}\n iconType={iconType}\n confirmButtonText={confirmButtonText}\n cancelButtonText={cancelButtonText}\n confirmButtonColor={confirmButtonColor}\n cancelButtonColor={cancelButtonColor}\n onConfirm={handleConfirm}\n onCancel={handleCancel}\n />\n );\n\n ReactDOM.render(element, container);\n });\n};\n\nexport default showConfirmDialog;\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 PropTypes from \"prop-types\";\nimport ConfirmDialog from \"./confirm-dialog\";\nimport { _registerBridge, _unregisterBridge } from \"./showConfirmDialog\";\n\n/**\n * Provider component that manages ConfirmDialog state within the React tree.\n * This eliminates the need for react-dom/client and works with React 16/17/18/19.\n *\n * Usage:\n * <ConfirmDialogProvider>\n * <App />\n * </ConfirmDialogProvider>\n *\n * Then call showConfirmDialog() anywhere in the app.\n */\nconst ConfirmDialogProvider = ({ children }) => {\n const [dialogState, setDialogState] = useState(null);\n\n useEffect(() => {\n // Register the bridge callback when the provider mounts\n const bridgeCallback = (options) => {\n return new Promise((resolve) => {\n setDialogState({\n ...options,\n open: true,\n onResolve: resolve\n });\n });\n };\n\n _registerBridge(bridgeCallback);\n\n // Unregister when the provider unmounts\n return () => {\n _unregisterBridge();\n };\n }, []);\n\n const handleConfirm = () => {\n if (dialogState?.onResolve) {\n dialogState.onResolve(true);\n }\n setDialogState(null);\n };\n\n const handleCancel = () => {\n if (dialogState?.onResolve) {\n dialogState.onResolve(false);\n }\n setDialogState(null);\n };\n\n return (\n <>\n {children}\n {dialogState && (\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 );\n};\n\nConfirmDialogProvider.propTypes = {\n children: PropTypes.node.isRequired\n};\n\nexport default ConfirmDialogProvider;\n"],"names":["root","factory","exports","module","define","amd","this","iconMap","warning","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","bridgeFn","_registerBridge","callback","_unregisterBridge","__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","ConfirmDialogProvider","children","dialogState","setDialogState","useState","useEffect","options","Promise","resolve","onResolve"],"sourceRoot":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/mui/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,mCCTTH,EAAOD,QAAUK,QAAQ,sB,WCAzBJ,EAAOD,QAAUK,QAAQ,gB,WCAzBJ,EAAOD,QAAUK,QAAQ,a,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,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G,YAAa,KAAOlC,EAAQc,IAE5C,kBAAC,EAAAa,WAAD,CAAYC,QAAQ,SAASf,KAGjC,kBAAC,EAAAgB,QAAD,CAASL,GAAI,CAAEW,OAAQ,uBACvB,kBAAC,EAAAC,cAAD,KACE,kBAAC,EAAAC,OAAD,CACEC,WAAS,EACTC,QAASvB,EACTb,MAAOiB,EACPQ,QAAQ,WACRJ,GAAI,CAAEgB,WAAY,SAAUC,SAAU,MAErCtB,GAEH,kBAAC,EAAAkB,OAAD,CACEC,WAAS,EACTC,QAASxB,EACTZ,MAAOe,EACPU,QAAQ,YACRJ,GAAI,CAAEgB,WAAY,SAAUC,SAAU,MAErCxB,KAMTP,EAAcgC,UAAY,CACxB/B,KAAMgC,IAAAA,KACN/B,MAAO+B,IAAAA,OAAiBC,WACxB/B,KAAM8B,IAAAA,OAAiBC,WACvB9B,SAAU6B,IAAAA,OACV5B,UAAW4B,IAAAA,KAAeC,WAC1B5B,SAAU2B,IAAAA,KAAeC,WACzB3B,kBAAmB0B,IAAAA,OACnBzB,mBAAoByB,IAAAA,OACpBxB,iBAAkBwB,IAAAA,OAClBvB,kBAAmBuB,IAAAA,QAGrBjC,EAAcmC,aAAe,CAC3BlC,MAAM,EACNG,SAAU,UACVG,kBAAmB,UACnBC,mBAAoB,UACpBC,iBAAkB,SAClBC,kBAAmB,WAGrB,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","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/confirm-dialog.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/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 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"],"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","iconMap","warning","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"],"sourceRoot":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/mui/custom-alert.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,Q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CrBC,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,6ECW9D,MAcA,EAdoB,EAAGC,WAAW,OAAQC,UAAU,GAAIC,YAAW,KACjE,kBAAC,EAAAC,MAAD,CACEH,SAAUA,EACVI,MAAOF,EACPG,GAAI,CACFC,eAAgB,QAChBC,WAAY,SACZC,GAAI,IAGLP,G","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/custom-alert.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 { Alert } from \"@mui/material\";\n\nconst CustomAlert = ({ severity = \"info\", message = \"\", hideIcon = false }) => (\n <Alert\n severity={severity}\n icon={!hideIcon}\n sx={{\n justifyContent: \"start\",\n alignItems: \"center\",\n mb: 2\n }}\n >\n {message}\n </Alert>\n);\n\nexport default CustomAlert;\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","severity","message","hideIcon","Alert","icon","sx","justifyContent","alignItems","mb"],"sourceRoot":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/mui/dnd-list.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,wC,WCAzBJ,EAAOD,QAAUK,QAAQ,iC,WCAzBJ,EAAOD,QAAUK,QAAQ,gB,WCAzBJ,EAAOD,QAAUK,QAAQ,a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,KAC3C,MAAMI,EAASM,MAAMC,KAAKJ,IACnBK,GAAWR,EAAOS,OAAOL,EAAY,GAE5C,OADAJ,EAAOS,OAAOJ,EAAU,EAAGG,GACpBR,EAAOU,KAAI,CAACC,EAAMC,IAAP,OACbD,GADa,IAEhB,CAACf,GAAiBgB,EAAQ,KAF5B,EAiBmBC,CACfrB,EACAQ,EAAOc,OAAOF,MACdZ,EAAOC,YAAYW,MACnBhB,GAEFH,EAAUS,EAAUF,EAApB,GAKE,kBAAC,EAAAe,UAAD,CAAWlB,YAAaA,IACpBmB,GACA,kBAAC,EAAAC,IAAD,KACEC,IAAKF,EAASG,UACVH,EAASI,eAFf,CAGEC,GAAI,CAAEC,MAAO,UAEZ9B,EAAMkB,KAAI,CAACC,EAAMC,IAChB,kBAAC,EAAAW,UAAD,CACE/C,IAAKgD,OAAOb,EAAKhB,IAAW,OAAMiB,KAClCa,YAAaD,OAAOb,EAAKhB,IAAW,OAAMiB,KAC1CA,MAAOA,IAEN,CAACI,EAAUU,IACV,kBAAC,EAAAT,IAAD,KACEC,IAAKF,EAASG,UACVH,EAASW,eACTX,EAASY,gBAHf,CAIEP,GAAI,CACFQ,WAAYH,EAASI,WAAa,UAAY,UAC9CC,WAAY,0BAGbrC,EAAWiB,EAAMC,EAAOI,EAAUU,QAK1CV,EAASgB,gBAQtBzC,EAAgB0C,UAAY,CAC1BzC,MAAO0C,IAAAA,MAAgBC,WACvB1C,UAAWyC,IAAAA,KAAeC,WAC1BzC,WAAYwC,IAAAA,KAAeC,WAC3BxC,MAAOuC,IAAAA,OACPtC,eAAgBsC,IAAAA,OAChBrC,YAAaqC,IAAAA,QAGf3C,EAAgB6C,aAAe,CAC7BzC,MAAO,KACPC,eAAgB,QAChBC,YAAa,aAGf,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","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 \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/external commonjs \"react-beautiful-dnd\"","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/dnd-list.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/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@mui/material\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"react-beautiful-dnd\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { DragDropContext, Droppable, Draggable } from \"react-beautiful-dnd\";\nimport { Box } from \"@mui/material\";\n\nconst reorder = (list, startIndex, endIndex, updateOrderKey) => {\n const result = Array.from(list);\n const [removed] = result.splice(startIndex, 1);\n result.splice(endIndex, 0, removed);\n return result.map((item, index) => ({\n ...item,\n [updateOrderKey]: index + 1\n }));\n};\n\nconst DragAndDropList = ({\n items,\n onReorder,\n renderItem,\n idKey,\n updateOrderKey,\n droppableId\n}) => {\n const handleDragEnd = (result) => {\n if (!result.destination) return;\n\n const newItems = reorder(\n items,\n result.source.index,\n result.destination.index,\n updateOrderKey\n );\n onReorder(newItems, result);\n };\n\n return (\n <DragDropContext onDragEnd={handleDragEnd}>\n <Droppable droppableId={droppableId}>\n {(provided) => (\n <Box\n ref={provided.innerRef}\n {...provided.droppableProps}\n sx={{ width: \"100%\" }}\n >\n {items.map((item, index) => (\n <Draggable\n key={String(item[idKey] || `new-${index}`)}\n draggableId={String(item[idKey] || `new-${index}`)}\n index={index}\n >\n {(provided, snapshot) => (\n <Box\n ref={provided.innerRef}\n {...provided.draggableProps}\n {...provided.dragHandleProps}\n sx={{\n background: snapshot.isDragging ? \"#f0f0f0\" : \"inherit\",\n transition: \"background 0.2s ease\"\n }}\n >\n {renderItem(item, index, provided, snapshot)}\n </Box>\n )}\n </Draggable>\n ))}\n {provided.placeholder}\n </Box>\n )}\n </Droppable>\n </DragDropContext>\n );\n};\n\nDragAndDropList.propTypes = {\n items: PropTypes.array.isRequired,\n onReorder: PropTypes.func.isRequired,\n renderItem: PropTypes.func.isRequired,\n idKey: PropTypes.string,\n updateOrderKey: PropTypes.string,\n droppableId: PropTypes.string\n};\n\nDragAndDropList.defaultProps = {\n idKey: \"id\",\n updateOrderKey: \"order\",\n droppableId: \"droppable\"\n};\n\nexport default DragAndDropList;\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","DragAndDropList","items","onReorder","renderItem","idKey","updateOrderKey","droppableId","DragDropContext","onDragEnd","result","destination","newItems","list","startIndex","endIndex","Array","from","removed","splice","map","item","index","reorder","source","Droppable","provided","Box","ref","innerRef","droppableProps","sx","width","Draggable","String","draggableId","snapshot","draggableProps","dragHandleProps","background","isDragging","transition","placeholder","propTypes","PropTypes","isRequired","defaultProps"],"sourceRoot":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/mui/dropdown-checkbox.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAy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MsB,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":""}
|