openstack-uicore-foundation 5.0.5 → 5.0.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/sortable-table.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,IACP,yBAAKiB,MAAO,CAAEG,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,O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,SAAkB,CAC1CvK,MAAOiG,GAAqB2B,IAAAA,UAAY,wBACxC3H,KAC8B,mBAArBiG,EACHA,EAAiBN,EAAQC,IACzBK,GACC,GAAE0B,IAAAA,UAAY,iCAAiChC,EAAQC,KAC9D2E,KAAM,UACNC,kBAAkB,EAClBnK,mBAAoB,UACpBD,kBAAmBuH,IAAAA,UAAY,yBAI/B5B,EAASH,EAAK4C,GACf,EA+H4CiC,CAAaxB,IAE5B,gBAAC,IAAD,CAAYmB,SAAS,YAK1BlE,GACC,gBAAC,IAAD,KACEmB,MAAM,SACN1G,GAAI,CAAE+F,MAAO,IACbqD,UAAWE,GACPX,EAASoB,iBAEb,gBAAC,EAAAR,WAAD,CAAYC,KAAK,SACf,gBAAC,IAAD,CAAgBC,SAAS,iBAQtCvB,EAAkB8B,YACF,IAAhB1F,EAAK2F,QACJ,gBAAC,IAAD,KACE,gBAAC,IAAD,CAAWC,QAAS7F,EAAQ4F,OAAQvD,MAAM,UACvCM,IAAAA,UAAY,8BAY9BrC,GAAmBD,GAClB,gBAAC,IAAD,CACExE,UAAU,MACViK,MAAO5F,EACP6F,mBAAoBzE,EACpB0E,YAAa7F,EACb8F,KAAM7F,EAAc,EACpBC,aAxOe,CAAClD,EAAG+I,KAC3B7F,EAAa6F,EAAU,EAAvB,EAwOQC,oBArOuBC,IAC/B9F,EAAgB8F,EAAGC,OAAOtG,MAA1B,EAqOQuG,iBAAkB3D,IAAAA,UAAY,2BAC9BhH,GAAI,CACF,8BAA+B,CAC7BS,WAAY,WACZmK,UAAW,UAEb,6BAA8B,CAC5BpK,QAAS,QAEX,oCAAqC,CACnCqK,WAAY,YAtL1B,E","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/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Delete\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Edit\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Box\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Paper\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Table\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableBody\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableCell\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableContainer\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableHead\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TablePagination\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableRow\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableSortLabel\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/utils\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/external commonjs \"react-beautiful-dnd\"","webpack://openstack-uicore-foundation/external commonjs \"react-dom/client\"","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/UnfoldMore\"","webpack://openstack-uicore-foundation/./src/components/mui/sortable-table/styles.module.less?adcf","webpack://openstack-uicore-foundation/./src/components/mui/sortable-table/mui-table-sortable.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\nimport ReactDOM from \"react-dom\";\nimport React from \"react\";\nimport ConfirmDialog from \"./confirm-dialog\";\n\n// React 18+ uses createRoot from react-dom/client; React 17 does not have this module\nlet createRoot;\ntry {\n ({ createRoot } = require(\"react-dom/client\"));\n} catch (_) {\n // React 17 — createRoot not available, will fall back to ReactDOM.render\n}\n\nconst showConfirmDialog = ({\n title,\n text,\n iconType = \"\",\n confirmButtonText = \"Confirm\",\n cancelButtonText = \"Cancel\",\n confirmButtonColor = \"primary\",\n cancelButtonColor = \"primary\"\n}) =>\n new Promise((resolve) => {\n const container = document.createElement(\"div\");\n document.body.appendChild(container);\n\n let root = null;\n\n const close = (answer) => {\n if (root) {\n root.unmount();\n } else {\n ReactDOM.unmountComponentAtNode(container);\n }\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 if (createRoot) {\n root = createRoot(container);\n root.render(element);\n } else {\n ReactDOM.render(element, container);\n }\n });\n\nexport default showConfirmDialog;\n","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@mui/icons-material\");","module.exports = require(\"@mui/icons-material/Delete\");","module.exports = require(\"@mui/icons-material/Edit\");","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/material/Box\");","module.exports = require(\"@mui/material/Paper\");","module.exports = require(\"@mui/material/Table\");","module.exports = require(\"@mui/material/TableBody\");","module.exports = require(\"@mui/material/TableCell\");","module.exports = require(\"@mui/material/TableContainer\");","module.exports = require(\"@mui/material/TableHead\");","module.exports = require(\"@mui/material/TablePagination\");","module.exports = require(\"@mui/material/TableRow\");","module.exports = require(\"@mui/material/TableSortLabel\");","module.exports = require(\"@mui/utils\");","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"react-beautiful-dnd\");","module.exports = require(\"react-dom/client\");","// 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/UnfoldMore\");","// extracted by mini-css-extract-plugin\nexport default {\"dottedBorderLeft\":\"pAjoKOwibtPxYWEmjS7g\"};","/**\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 * as React from \"react\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport Box from \"@mui/material/Box\";\nimport Table from \"@mui/material/Table\";\nimport TableBody from \"@mui/material/TableBody\";\nimport TableCell from \"@mui/material/TableCell\";\nimport TableContainer from \"@mui/material/TableContainer\";\nimport TableHead from \"@mui/material/TableHead\";\nimport TablePagination from \"@mui/material/TablePagination\";\nimport TableSortLabel from \"@mui/material/TableSortLabel\";\nimport TableRow from \"@mui/material/TableRow\";\nimport Paper from \"@mui/material/Paper\";\nimport UnfoldMoreIcon from \"@mui/icons-material/UnfoldMore\";\nimport { IconButton } from \"@mui/material\";\nimport EditIcon from \"@mui/icons-material/Edit\";\nimport DeleteIcon from \"@mui/icons-material/Delete\";\nimport { DragDropContext, Draggable, Droppable } from \"react-beautiful-dnd\";\nimport { visuallyHidden } from \"@mui/utils\";\n\nimport styles from \"./styles.module.less\";\n\nimport {\n DEFAULT_PER_PAGE,\n FIFTY_PER_PAGE,\n TWENTY_PER_PAGE\n} from \"../../../utils/constants\";\nimport showConfirmDialog from \"../showConfirmDialog\";\n\nconst MuiTableSortable = ({\n columns = [],\n data = [],\n totalRows,\n perPage,\n currentPage,\n onPageChange,\n onPerPageChange,\n onSort,\n options = { sortCol: \"\", sortDir: 1 },\n getName = (item) => item.name,\n onEdit,\n onDelete,\n deleteDialogTitle = null,\n deleteDialogBody = null,\n onReorder,\n idKey = \"id\",\n updateOrderKey = \"order\"\n}) => {\n const handleChangePage = (_, newPage) => {\n onPageChange(newPage + 1);\n };\n\n const handleChangeRowsPerPage = (ev) => {\n onPerPageChange(ev.target.value);\n };\n\n const basePerPageOptions = [\n DEFAULT_PER_PAGE,\n TWENTY_PER_PAGE,\n FIFTY_PER_PAGE\n ];\n\n const customPerPageOptions = basePerPageOptions.includes(perPage)\n ? basePerPageOptions\n : [...basePerPageOptions, perPage].sort((a, b) => a - b);\n\n const { sortCol, sortDir } = options;\n\n const handleDragEnd = (result) => {\n if (!result.destination || result.source.index === result.destination.index)\n return;\n\n const reordered = [...data];\n const [movedItem] = reordered.splice(result.source.index, 1);\n reordered.splice(result.destination.index, 0, movedItem);\n\n // change value based on updateOrderKey\n if (updateOrderKey) {\n reordered.forEach((item, idx) => {\n item[updateOrderKey] = idx + 1;\n });\n }\n\n const movedItemId = movedItem.id;\n const newOrder = reordered.find(\n (item) => item[idKey || \"id\"] === movedItemId\n )?.[updateOrderKey];\n\n onReorder?.(reordered, movedItemId, newOrder);\n };\n\n const handleDelete = async (item) => {\n const isConfirmed = await showConfirmDialog({\n title: deleteDialogTitle || T.translate(\"general.are_you_sure\"),\n text:\n typeof deleteDialogBody === \"function\"\n ? deleteDialogBody(getName(item))\n : deleteDialogBody ||\n `${T.translate(\"general.row_remove_warning\")} ${getName(item)}`,\n type: \"warning\",\n showCancelButton: true,\n confirmButtonColor: \"#DD6B55\",\n confirmButtonText: T.translate(\"general.yes_delete\")\n });\n\n if (isConfirmed) {\n onDelete(item.id);\n }\n };\n\n return (\n <Box sx={{ width: \"100%\" }}>\n <Paper elevation={0} sx={{ width: \"100%\", mb: 2 }}>\n <TableContainer\n component={Paper}\n sx={{ borderRadius: 0, boxShadow: \"none\" }}\n >\n <Table>\n {/* TABLE HEADER */}\n <TableHead sx={{ backgroundColor: \"#EAEAEA\" }}>\n <TableRow>\n {columns.map((col) => (\n <TableCell\n key={col.columnKey}\n sx={{\n width: col.width,\n minWidth: col.width,\n maxWidth: col.width\n }}\n align={col.align ?? \"left\"}\n >\n {col.sortable ? (\n <TableSortLabel\n active={sortCol === col.columnKey}\n direction={\n sortCol === col.columnKey && sortDir === -1\n ? \"desc\"\n : \"asc\"\n }\n onClick={() => onSort(col.columnKey, sortDir * -1)}\n >\n {col.header}\n {sortCol === col.columnKey ? (\n <Box component=\"span\" sx={visuallyHidden}>\n {sortDir === -1\n ? T.translate(\"mui_table.sorted_desc\")\n : T.translate(\"mui_table.sorted_asc\")}\n </Box>\n ) : null}\n </TableSortLabel>\n ) : (\n col.header\n )}\n </TableCell>\n ))}\n {onEdit && <TableCell sx={{ width: 40 }} />}\n {onDelete && <TableCell sx={{ width: 40 }} />}\n {onReorder && <TableCell sx={{ width: 40 }} />}\n </TableRow>\n </TableHead>\n\n {/* TABLE BODY */}\n <DragDropContext onDragEnd={handleDragEnd}>\n <Droppable droppableId=\"mui-table-droppable\">\n {(droppableProvided) => (\n <TableBody\n ref={droppableProvided.innerRef}\n {...droppableProvided.droppableProps}\n >\n {data.map((row, rowIndex) => (\n <Draggable\n key={row[idKey] || rowIndex}\n draggableId={String(row[idKey] || rowIndex)}\n index={rowIndex}\n >\n {(provided, snapshot) => (\n <TableRow\n ref={provided.innerRef}\n {...provided.draggableProps}\n sx={{\n ...(snapshot.isDragging\n ? {\n display: \"table\",\n width: \"100%\",\n tableLayout: \"fixed\",\n backgroundColor: \"#f0f0f0\",\n transform: \"scale(1.01)\",\n boxShadow: \"0 4px 12px rgba(0, 0, 0, 0.1)\",\n zIndex: 1,\n position: \"relative\",\n transition:\n \"transform 0.2s ease, background-color 0.2s ease\"\n }\n : {\n transition: \"background-color 0.2s ease\"\n })\n }}\n >\n {/* Main content columns */}\n {columns.map((col) => (\n <TableCell\n key={col.columnKey}\n align={col.align ?? \"left\"}\n className={`${\n col.dottedBorder && styles.dottedBorderLeft\n } ${col.className}`}\n >\n {col.render?.(row) || row[col.columnKey]}\n </TableCell>\n ))}\n {/* Edit column */}\n {onEdit && (\n <TableCell\n align=\"center\"\n sx={{ width: 40 }}\n className={styles.dottedBorderLeft}\n >\n <IconButton\n size=\"large\"\n onClick={() => onEdit(row)}\n >\n <EditIcon fontSize=\"large\" />\n </IconButton>\n </TableCell>\n )}\n {/* Delete column */}\n {onDelete && (\n <TableCell\n align=\"center\"\n sx={{ width: 40 }}\n className={styles.dottedBorderLeft}\n >\n <IconButton\n size=\"large\"\n onClick={() => handleDelete(row)}\n >\n <DeleteIcon fontSize=\"large\" />\n </IconButton>\n </TableCell>\n )}\n {/* Re order column */}\n {onReorder && (\n <TableCell\n align=\"center\"\n sx={{ width: 40 }}\n className={styles.dottedBorderLeft}\n {...provided.dragHandleProps}\n >\n <IconButton size=\"large\">\n <UnfoldMoreIcon fontSize=\"large\" />\n </IconButton>\n </TableCell>\n )}\n </TableRow>\n )}\n </Draggable>\n ))}\n {droppableProvided.placeholder}\n {data.length === 0 && (\n <TableRow>\n <TableCell colSpan={columns.length} align=\"center\">\n {T.translate(\"mui_table.no_items\")}\n </TableCell>\n </TableRow>\n )}\n </TableBody>\n )}\n </Droppable>\n </DragDropContext>\n </Table>\n </TableContainer>\n\n {/* PAGINATION */}\n {onPerPageChange && onPageChange && (\n <TablePagination\n component=\"div\"\n count={totalRows}\n rowsPerPageOptions={customPerPageOptions}\n rowsPerPage={perPage}\n page={currentPage - 1}\n onPageChange={handleChangePage}\n onRowsPerPageChange={handleChangeRowsPerPage}\n labelRowsPerPage={T.translate(\"mui_table.rows_per_page\")}\n sx={{\n \".MuiTablePagination-toolbar\": {\n alignItems: \"baseline\",\n marginTop: \"1.6rem\"\n },\n \".MuiTablePagination-spacer\": {\n display: \"none\"\n },\n \".MuiTablePagination-displayedRows\": {\n marginLeft: \"auto\"\n }\n }}\n />\n )}\n </Paper>\n </Box>\n );\n};\n\nexport default MuiTableSortable;\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","createRoot","_","Promise","resolve","container","document","createElement","body","appendChild","close","answer","unmount","ReactDOM","remove","element","render","DEFAULT_PER_PAGE","TWENTY_PER_PAGE","FIFTY_PER_PAGE","__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","columns","data","totalRows","perPage","currentPage","onPageChange","onPerPageChange","onSort","options","sortCol","sortDir","getName","item","name","onEdit","onDelete","deleteDialogTitle","deleteDialogBody","onReorder","idKey","updateOrderKey","basePerPageOptions","customPerPageOptions","includes","sort","b","width","elevation","mb","Paper","borderRadius","boxShadow","backgroundColor","map","col","columnKey","maxWidth","align","sortable","active","direction","header","visuallyHidden","T","DragDropContext","onDragEnd","result","destination","source","index","reordered","movedItem","splice","forEach","idx","movedItemId","id","newOrder","find","Droppable","droppableId","droppableProvided","ref","innerRef","droppableProps","row","rowIndex","Draggable","draggableId","String","provided","snapshot","draggableProps","isDragging","tableLayout","transform","zIndex","position","transition","className","dottedBorder","styles","IconButton","size","fontSize","async","showConfirmDialog","type","showCancelButton","handleDelete","dragHandleProps","placeholder","length","colSpan","count","rowsPerPageOptions","rowsPerPage","page","newPage","onRowsPerPageChange","ev","target","labelRowsPerPage","marginTop","marginLeft"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/sortable-table.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,EA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,EACpBC,aAxOe,CAACtC,EAAGkI,KAC3B5F,EAAa4F,EAAU,EAAvB,EAwOQC,oBArOuBC,IAC/B7F,EAAgB6F,EAAGC,OAAOrG,MAA1B,EAqOQsG,iBAAkB1D,IAAAA,UAAY,2BAC9BtH,GAAI,CACF,8BAA+B,CAC7BS,WAAY,WACZwK,UAAW,UAEb,6BAA8B,CAC5BzK,QAAS,QAEX,oCAAqC,CACnC0K,WAAY,YAtL1B,E","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/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Delete\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Edit\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Box\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Paper\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Table\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableBody\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableCell\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableContainer\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableHead\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TablePagination\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableRow\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableSortLabel\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/utils\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/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/external commonjs \"@mui/icons-material/UnfoldMore\"","webpack://openstack-uicore-foundation/./src/components/mui/sortable-table/styles.module.less?adcf","webpack://openstack-uicore-foundation/./src/components/mui/sortable-table/mui-table-sortable.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\nimport ReactDOM from \"react-dom\";\nimport React from \"react\";\nimport ConfirmDialog from \"./confirm-dialog\";\n\n// Lazy-loaded createRoot for React 18+.\n// Cached after first call so the dynamic import only runs once.\nlet createRootFn = undefined; // undefined = not yet checked\n\nasync function getCreateRoot() {\n if (createRootFn !== undefined) return createRootFn;\n try {\n // webpackIgnore prevents webpack from resolving this at build time,\n // so consuming projects on React 16/17 won't get a \"Module not found\" error.\n const mod = await import(/* webpackIgnore: true */ \"react-dom/client\");\n createRootFn = mod.createRoot || null;\n } catch (_) {\n createRootFn = null;\n }\n return createRootFn;\n}\n\nconst showConfirmDialog = ({\n title,\n text,\n iconType = \"\",\n confirmButtonText = \"Confirm\",\n cancelButtonText = \"Cancel\",\n confirmButtonColor = \"primary\",\n cancelButtonColor = \"primary\"\n}) =>\n new Promise((resolve) => {\n const container = document.createElement(\"div\");\n document.body.appendChild(container);\n\n let root = null;\n\n const close = (answer) => {\n if (root) {\n root.unmount();\n } else {\n ReactDOM.unmountComponentAtNode(container);\n }\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 getCreateRoot().then((createRoot) => {\n if (createRoot) {\n root = createRoot(container);\n root.render(element);\n } else {\n ReactDOM.render(element, container);\n }\n });\n });\n\nexport default showConfirmDialog;\n","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@mui/icons-material\");","module.exports = require(\"@mui/icons-material/Delete\");","module.exports = require(\"@mui/icons-material/Edit\");","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/material/Box\");","module.exports = require(\"@mui/material/Paper\");","module.exports = require(\"@mui/material/Table\");","module.exports = require(\"@mui/material/TableBody\");","module.exports = require(\"@mui/material/TableCell\");","module.exports = require(\"@mui/material/TableContainer\");","module.exports = require(\"@mui/material/TableHead\");","module.exports = require(\"@mui/material/TablePagination\");","module.exports = require(\"@mui/material/TableRow\");","module.exports = require(\"@mui/material/TableSortLabel\");","module.exports = require(\"@mui/utils\");","module.exports = require(\"i18n-react/dist/i18n-react\");","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};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/UnfoldMore\");","// extracted by mini-css-extract-plugin\nexport default {\"dottedBorderLeft\":\"pAjoKOwibtPxYWEmjS7g\"};","/**\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 * as React from \"react\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport Box from \"@mui/material/Box\";\nimport Table from \"@mui/material/Table\";\nimport TableBody from \"@mui/material/TableBody\";\nimport TableCell from \"@mui/material/TableCell\";\nimport TableContainer from \"@mui/material/TableContainer\";\nimport TableHead from \"@mui/material/TableHead\";\nimport TablePagination from \"@mui/material/TablePagination\";\nimport TableSortLabel from \"@mui/material/TableSortLabel\";\nimport TableRow from \"@mui/material/TableRow\";\nimport Paper from \"@mui/material/Paper\";\nimport UnfoldMoreIcon from \"@mui/icons-material/UnfoldMore\";\nimport { IconButton } from \"@mui/material\";\nimport EditIcon from \"@mui/icons-material/Edit\";\nimport DeleteIcon from \"@mui/icons-material/Delete\";\nimport { DragDropContext, Draggable, Droppable } from \"react-beautiful-dnd\";\nimport { visuallyHidden } from \"@mui/utils\";\n\nimport styles from \"./styles.module.less\";\n\nimport {\n DEFAULT_PER_PAGE,\n FIFTY_PER_PAGE,\n TWENTY_PER_PAGE\n} from \"../../../utils/constants\";\nimport showConfirmDialog from \"../showConfirmDialog\";\n\nconst MuiTableSortable = ({\n columns = [],\n data = [],\n totalRows,\n perPage,\n currentPage,\n onPageChange,\n onPerPageChange,\n onSort,\n options = { sortCol: \"\", sortDir: 1 },\n getName = (item) => item.name,\n onEdit,\n onDelete,\n deleteDialogTitle = null,\n deleteDialogBody = null,\n onReorder,\n idKey = \"id\",\n updateOrderKey = \"order\"\n}) => {\n const handleChangePage = (_, newPage) => {\n onPageChange(newPage + 1);\n };\n\n const handleChangeRowsPerPage = (ev) => {\n onPerPageChange(ev.target.value);\n };\n\n const basePerPageOptions = [\n DEFAULT_PER_PAGE,\n TWENTY_PER_PAGE,\n FIFTY_PER_PAGE\n ];\n\n const customPerPageOptions = basePerPageOptions.includes(perPage)\n ? basePerPageOptions\n : [...basePerPageOptions, perPage].sort((a, b) => a - b);\n\n const { sortCol, sortDir } = options;\n\n const handleDragEnd = (result) => {\n if (!result.destination || result.source.index === result.destination.index)\n return;\n\n const reordered = [...data];\n const [movedItem] = reordered.splice(result.source.index, 1);\n reordered.splice(result.destination.index, 0, movedItem);\n\n // change value based on updateOrderKey\n if (updateOrderKey) {\n reordered.forEach((item, idx) => {\n item[updateOrderKey] = idx + 1;\n });\n }\n\n const movedItemId = movedItem.id;\n const newOrder = reordered.find(\n (item) => item[idKey || \"id\"] === movedItemId\n )?.[updateOrderKey];\n\n onReorder?.(reordered, movedItemId, newOrder);\n };\n\n const handleDelete = async (item) => {\n const isConfirmed = await showConfirmDialog({\n title: deleteDialogTitle || T.translate(\"general.are_you_sure\"),\n text:\n typeof deleteDialogBody === \"function\"\n ? deleteDialogBody(getName(item))\n : deleteDialogBody ||\n `${T.translate(\"general.row_remove_warning\")} ${getName(item)}`,\n type: \"warning\",\n showCancelButton: true,\n confirmButtonColor: \"#DD6B55\",\n confirmButtonText: T.translate(\"general.yes_delete\")\n });\n\n if (isConfirmed) {\n onDelete(item.id);\n }\n };\n\n return (\n <Box sx={{ width: \"100%\" }}>\n <Paper elevation={0} sx={{ width: \"100%\", mb: 2 }}>\n <TableContainer\n component={Paper}\n sx={{ borderRadius: 0, boxShadow: \"none\" }}\n >\n <Table>\n {/* TABLE HEADER */}\n <TableHead sx={{ backgroundColor: \"#EAEAEA\" }}>\n <TableRow>\n {columns.map((col) => (\n <TableCell\n key={col.columnKey}\n sx={{\n width: col.width,\n minWidth: col.width,\n maxWidth: col.width\n }}\n align={col.align ?? \"left\"}\n >\n {col.sortable ? (\n <TableSortLabel\n active={sortCol === col.columnKey}\n direction={\n sortCol === col.columnKey && sortDir === -1\n ? \"desc\"\n : \"asc\"\n }\n onClick={() => onSort(col.columnKey, sortDir * -1)}\n >\n {col.header}\n {sortCol === col.columnKey ? (\n <Box component=\"span\" sx={visuallyHidden}>\n {sortDir === -1\n ? T.translate(\"mui_table.sorted_desc\")\n : T.translate(\"mui_table.sorted_asc\")}\n </Box>\n ) : null}\n </TableSortLabel>\n ) : (\n col.header\n )}\n </TableCell>\n ))}\n {onEdit && <TableCell sx={{ width: 40 }} />}\n {onDelete && <TableCell sx={{ width: 40 }} />}\n {onReorder && <TableCell sx={{ width: 40 }} />}\n </TableRow>\n </TableHead>\n\n {/* TABLE BODY */}\n <DragDropContext onDragEnd={handleDragEnd}>\n <Droppable droppableId=\"mui-table-droppable\">\n {(droppableProvided) => (\n <TableBody\n ref={droppableProvided.innerRef}\n {...droppableProvided.droppableProps}\n >\n {data.map((row, rowIndex) => (\n <Draggable\n key={row[idKey] || rowIndex}\n draggableId={String(row[idKey] || rowIndex)}\n index={rowIndex}\n >\n {(provided, snapshot) => (\n <TableRow\n ref={provided.innerRef}\n {...provided.draggableProps}\n sx={{\n ...(snapshot.isDragging\n ? {\n display: \"table\",\n width: \"100%\",\n tableLayout: \"fixed\",\n backgroundColor: \"#f0f0f0\",\n transform: \"scale(1.01)\",\n boxShadow: \"0 4px 12px rgba(0, 0, 0, 0.1)\",\n zIndex: 1,\n position: \"relative\",\n transition:\n \"transform 0.2s ease, background-color 0.2s ease\"\n }\n : {\n transition: \"background-color 0.2s ease\"\n })\n }}\n >\n {/* Main content columns */}\n {columns.map((col) => (\n <TableCell\n key={col.columnKey}\n align={col.align ?? \"left\"}\n className={`${\n col.dottedBorder && styles.dottedBorderLeft\n } ${col.className}`}\n >\n {col.render?.(row) || row[col.columnKey]}\n </TableCell>\n ))}\n {/* Edit column */}\n {onEdit && (\n <TableCell\n align=\"center\"\n sx={{ width: 40 }}\n className={styles.dottedBorderLeft}\n >\n <IconButton\n size=\"large\"\n onClick={() => onEdit(row)}\n >\n <EditIcon fontSize=\"large\" />\n </IconButton>\n </TableCell>\n )}\n {/* Delete column */}\n {onDelete && (\n <TableCell\n align=\"center\"\n sx={{ width: 40 }}\n className={styles.dottedBorderLeft}\n >\n <IconButton\n size=\"large\"\n onClick={() => handleDelete(row)}\n >\n <DeleteIcon fontSize=\"large\" />\n </IconButton>\n </TableCell>\n )}\n {/* Re order column */}\n {onReorder && (\n <TableCell\n align=\"center\"\n sx={{ width: 40 }}\n className={styles.dottedBorderLeft}\n {...provided.dragHandleProps}\n >\n <IconButton size=\"large\">\n <UnfoldMoreIcon fontSize=\"large\" />\n </IconButton>\n </TableCell>\n )}\n </TableRow>\n )}\n </Draggable>\n ))}\n {droppableProvided.placeholder}\n {data.length === 0 && (\n <TableRow>\n <TableCell colSpan={columns.length} align=\"center\">\n {T.translate(\"mui_table.no_items\")}\n </TableCell>\n </TableRow>\n )}\n </TableBody>\n )}\n </Droppable>\n </DragDropContext>\n </Table>\n </TableContainer>\n\n {/* PAGINATION */}\n {onPerPageChange && onPageChange && (\n <TablePagination\n component=\"div\"\n count={totalRows}\n rowsPerPageOptions={customPerPageOptions}\n rowsPerPage={perPage}\n page={currentPage - 1}\n onPageChange={handleChangePage}\n onRowsPerPageChange={handleChangeRowsPerPage}\n labelRowsPerPage={T.translate(\"mui_table.rows_per_page\")}\n sx={{\n \".MuiTablePagination-toolbar\": {\n alignItems: \"baseline\",\n marginTop: \"1.6rem\"\n },\n \".MuiTablePagination-spacer\": {\n display: \"none\"\n },\n \".MuiTablePagination-displayedRows\": {\n marginLeft: \"auto\"\n }\n }}\n />\n )}\n </Paper>\n </Box>\n );\n};\n\nexport default MuiTableSortable;\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","createRootFn","Promise","resolve","container","document","createElement","body","appendChild","close","answer","unmount","ReactDOM","remove","element","async","undefined","mod","import","createRoot","_","getCreateRoot","then","render","DEFAULT_PER_PAGE","TWENTY_PER_PAGE","FIFTY_PER_PAGE","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","columns","data","totalRows","perPage","currentPage","onPageChange","onPerPageChange","onSort","options","sortCol","sortDir","getName","item","name","onEdit","onDelete","deleteDialogTitle","deleteDialogBody","onReorder","idKey","updateOrderKey","basePerPageOptions","customPerPageOptions","includes","sort","b","width","elevation","mb","Paper","borderRadius","boxShadow","backgroundColor","map","col","columnKey","maxWidth","align","sortable","active","direction","header","visuallyHidden","T","DragDropContext","onDragEnd","result","destination","source","index","reordered","movedItem","splice","forEach","idx","movedItemId","id","newOrder","find","Droppable","droppableId","droppableProvided","ref","innerRef","droppableProps","row","rowIndex","Draggable","draggableId","String","provided","snapshot","draggableProps","isDragging","tableLayout","transform","zIndex","position","transition","className","dottedBorder","styles","IconButton","size","fontSize","showConfirmDialog","type","showCancelButton","handleDelete","dragHandleProps","placeholder","length","colSpan","count","rowsPerPageOptions","rowsPerPage","page","newPage","onRowsPerPageChange","ev","target","labelRowsPerPage","marginTop","marginLeft"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={4574:(e,t,n)=>{n.d(t,{default:()=>m});var r=n(2015),o=n.n(r),a=n(9825),l=n.n(a),i=n(8619),c=n(5814);const s={warning:o().createElement(c.Warning,{color:"warning"}),success:o().createElement(c.CheckCircle,{color:"success"}),error:o().createElement(c.Error,{color:"error"}),info:o().createElement(c.Info,{color:"info"})},u=({open:e,title:t,text:n,iconType:r="",onConfirm:a,onCancel:l,confirmButtonText:c="Confirm",confirmButtonColor:u="primary",cancelButtonText:m="Cancel",cancelButtonColor:d="primary"})=>o().createElement(i.Dialog,{open:e,onClose:l},o().createElement(i.DialogTitle,{sx:{p:2},component:"div"},o().createElement(i.Typography,{variant:"h5"},t)),o().createElement(i.Divider,null),o().createElement(i.DialogContent,{sx:{p:2}},o().createElement("div",{style:{display:"flex",alignItems:"center"}},s[r]&&o().createElement("div",{style:{marginRight:10}},s[r]),o().createElement(i.Typography,{variant:"body1"},n))),o().createElement(i.Divider,{sx:{margin:"10px 0px 10px 0px"}}),o().createElement(i.DialogActions,null,o().createElement(i.Button,{fullWidth:!0,onClick:l,color:d,variant:"outlined",sx:{whiteSpace:"nowrap",minWidth:100}},m),o().createElement(i.Button,{fullWidth:!0,onClick:a,color:u,variant:"contained",sx:{whiteSpace:"nowrap",minWidth:100}},c)));u.propTypes={open:l().bool,title:l().string.isRequired,text:l().string.isRequired,iconType:l().string,onConfirm:l().func.isRequired,onCancel:l().func.isRequired,confirmButtonText:l().string,confirmButtonColor:l().string,cancelButtonText:l().string,cancelButtonColor:l().string},u.defaultProps={open:!1,iconType:"warning",confirmButtonText:"Confirm",confirmButtonColor:"primary",cancelButtonText:"Cancel",cancelButtonColor:"default"};const m=u},2024:(e,t,n)=>{n.d(t,{default:()=>s});const r=require("react-dom");var o=n.n(r),a=n(2015),l=n.n(a),i=n(4574);let c;try{({createRoot:c}=n(1976))}catch(e){}const s=({title:e,text:t,iconType:n="",confirmButtonText:r="Confirm",cancelButtonText:a="Cancel",confirmButtonColor:s="primary",cancelButtonColor:u="primary"})=>new Promise((m=>{const d=document.createElement("div");document.body.appendChild(d);let p=null;const g=e=>{p?p.unmount():o().unmountComponentAtNode(d),d.remove(),m(e)},f=l().createElement(i.default,{open:!0,title:e,text:t,iconType:n,confirmButtonText:r,cancelButtonText:a,confirmButtonColor:s,cancelButtonColor:u,onConfirm:()=>g(!0),onCancel:()=>g(!1)});c?(p=c(d),p.render(f)):o().render(f,d)}))},3209:(e,t,n)=>{n.d(t,{Lr:()=>a,WU:()=>r,k6:()=>o});const r=10,o=20,a=50},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},5814:e=>{e.exports=require("@mui/icons-material")},4325:e=>{e.exports=require("@mui/icons-material/Close")},6084:e=>{e.exports=require("@mui/icons-material/Delete")},9247:e=>{e.exports=require("@mui/icons-material/Edit")},8619:e=>{e.exports=require("@mui/material")},6831:e=>{e.exports=require("@mui/utils")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},7825:e=>{e.exports=require("lodash")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},1976:e=>{e.exports=require("react-dom/client")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.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:()=>B});var o=n(1116),a=n.n(o),l=n(2015),i=n(6842),c=n.n(i),s=n(7825),u=n(8619),m=n(9247),d=n.n(m),p=n(6084),g=n.n(p);const f=require("@mui/icons-material/Check");var x=n.n(f),b=n(4325),y=n.n(b),C=n(6831),h=n(3209),E=n(2024);const T="mx3fuojj3xuUbN9ch3eB";function w(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const P={backgroundColor:"background.light",color:"text.disabled"},B=({columns:e=[],data:t=[],children:n,totalRows:r,perPage:o,currentPage:a,onPageChange:i,onPerPageChange:m,onSort:p,options:f={sortCol:"",sortDir:1,disableProp:null},getName:b=e=>e.name,onEdit:w,onArchive:B,onDelete:O,canDelete:j=()=>!0,deleteDialogTitle:k=null,deleteDialogBody:D=null,deleteDialogConfirmText:_=null,confirmButtonColor:q=null})=>{const S=[h.WU,h.k6,h.Lr],R=l.useRef(o);let W=S.includes(R.current)?S:[...S,R.current].sort(((e,t)=>e-t));m||(W=[R.current]);const{sortCol:K,sortDir:z}=f,N=(e,t={})=>v(v({},t),(e=>f.disableProp&&e[f.disableProp]?P:null)(e)||{});return l.createElement(u.Box,{sx:{width:"100%"}},l.createElement(u.Paper,{elevation:0,sx:{width:"100%",mb:2}},l.createElement(u.TableContainer,{component:u.Paper,sx:{borderRadius:0,boxShadow:"none"}},l.createElement(u.Table,null,l.createElement(u.TableHead,{sx:{backgroundColor:"#EAEAEA"}},l.createElement(u.TableRow,null,e.map((e=>l.createElement(u.TableCell,{key:e.columnKey,sx:{width:e.width,minWidth:e.width,maxWidth:e.width},align:e.align??"left"},e.sortable?l.createElement(u.TableSortLabel,{active:K===e.columnKey,direction:K===e.columnKey&&-1===z?"desc":"asc",onClick:()=>p(e.columnKey,-1*z)},e.header,K===e.columnKey?l.createElement(u.Box,{component:"span",sx:C.visuallyHidden},-1===z?c().translate("mui_table.sorted_desc"):c().translate("mui_table.sorted_asc")):null):e.header))),w&&l.createElement(u.TableCell,{sx:{width:40}}),B&&l.createElement(u.TableCell,{sx:{width:80}}),O&&l.createElement(u.TableCell,{sx:{width:40}}))),l.createElement(u.TableBody,null,t.map((t=>l.createElement(u.TableRow,{key:t.id},e.map((e=>l.createElement(u.TableCell,{key:e.columnKey,align:e.align??"left",className:`${e.dottedBorder&&T} ${e.className}`,sx:N(t)},((e,t)=>t.render?t.render(e):(0,s.isBoolean)(e[t.columnKey])?e[t.columnKey]?l.createElement(x(),{fontSize:"large"}):l.createElement(y(),{fontSize:"large"}):e[t.columnKey])(t,e)))),w&&l.createElement(u.TableCell,{align:"center",className:T,sx:N(t,{width:40})},l.createElement(u.IconButton,{size:"large",onClick:()=>w(t)},l.createElement(d(),{fontSize:"large"}))),B&&l.createElement(u.TableCell,{align:"center",sx:{width:80},className:T},l.createElement(u.Button,{variant:"text",color:"inherit",size:"small",onClick:()=>B(t),sx:{fontSize:"1.3rem",fontWeight:500,lineHeight:"2.2rem",padding:"4px 5px"}},t.is_archived?c().translate("general.unarchive"):c().translate("general.archive"))),O&&l.createElement(u.TableCell,{align:"center",className:T,sx:N(t,{width:40})},j(t)&&l.createElement(u.IconButton,{size:"large",onClick:()=>(async e=>{await(0,E.default)({title:k||c().translate("general.are_you_sure"),text:"function"==typeof D?D(b(e)):D||`${c().translate("general.row_remove_warning")} ${b(e)}`,type:"warning",showCancelButton:!0,confirmButtonColor:q||"#DD6B55",confirmButtonText:_||c().translate("general.yes_delete")})&&O(e.id)})(t)},l.createElement(g(),{fontSize:"large"})))))),n,0===t.length&&l.createElement(u.TableRow,null,l.createElement(u.TableCell,{colSpan:e.length,align:"center"},c().translate("mui_table.no_items")))))),o&&a&&l.createElement(u.TablePagination,{component:"div",count:r,rowsPerPageOptions:W,rowsPerPage:o,page:a-1,onPageChange:(e,t)=>{i(t+1)},onRowsPerPageChange:e=>{m(e.target.value)},labelRowsPerPage:c().translate("mui_table.rows_per_page"),sx:{".MuiTablePagination-toolbar":{alignItems:"baseline",marginTop:"1.6rem"},".MuiTablePagination-spacer":{display:"none"},".MuiTablePagination-displayedRows":{marginLeft:"auto"}}})))};return r})()));
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:()=>m});var r=n(2015),o=n.n(r),l=n(9825),a=n.n(l),i=n(8619),c=n(5814);const s={warning:o().createElement(c.Warning,{color:"warning"}),success:o().createElement(c.CheckCircle,{color:"success"}),error:o().createElement(c.Error,{color:"error"}),info:o().createElement(c.Info,{color:"info"})},u=({open:e,title:t,text:n,iconType:r="",onConfirm:l,onCancel:a,confirmButtonText:c="Confirm",confirmButtonColor:u="primary",cancelButtonText:m="Cancel",cancelButtonColor:d="primary"})=>o().createElement(i.Dialog,{open:e,onClose:a},o().createElement(i.DialogTitle,{sx:{p:2},component:"div"},o().createElement(i.Typography,{variant:"h5"},t)),o().createElement(i.Divider,null),o().createElement(i.DialogContent,{sx:{p:2}},o().createElement("div",{style:{display:"flex",alignItems:"center"}},s[r]&&o().createElement("div",{style:{marginRight:10}},s[r]),o().createElement(i.Typography,{variant:"body1"},n))),o().createElement(i.Divider,{sx:{margin:"10px 0px 10px 0px"}}),o().createElement(i.DialogActions,null,o().createElement(i.Button,{fullWidth:!0,onClick:a,color:d,variant:"outlined",sx:{whiteSpace:"nowrap",minWidth:100}},m),o().createElement(i.Button,{fullWidth:!0,onClick:l,color:u,variant:"contained",sx:{whiteSpace:"nowrap",minWidth:100}},c)));u.propTypes={open:a().bool,title:a().string.isRequired,text:a().string.isRequired,iconType:a().string,onConfirm:a().func.isRequired,onCancel:a().func.isRequired,confirmButtonText:a().string,confirmButtonColor:a().string,cancelButtonText:a().string,cancelButtonColor:a().string},u.defaultProps={open:!1,iconType:"warning",confirmButtonText:"Confirm",confirmButtonColor:"primary",cancelButtonText:"Cancel",cancelButtonColor:"default"};const m=u},2024:(e,t,n)=>{n.d(t,{default:()=>s});const r=require("react-dom");var o=n.n(r),l=n(2015),a=n.n(l),i=n(4574);let c;const s=({title:e,text:t,iconType:n="",confirmButtonText:r="Confirm",cancelButtonText:l="Cancel",confirmButtonColor:s="primary",cancelButtonColor:u="primary"})=>new Promise((m=>{const d=document.createElement("div");document.body.appendChild(d);let p=null;const g=e=>{p?p.unmount():o().unmountComponentAtNode(d),d.remove(),m(e)},f=a().createElement(i.default,{open:!0,title:e,text:t,iconType:n,confirmButtonText:r,cancelButtonText:l,confirmButtonColor:s,cancelButtonColor:u,onConfirm:()=>g(!0),onCancel:()=>g(!1)});(async function(){if(void 0!==c)return c;try{const e=await import("react-dom/client");c=e.createRoot||null}catch(e){c=null}return c})().then((e=>{e?(p=e(d),p.render(f)):o().render(f,d)}))}))},3209:(e,t,n)=>{n.d(t,{Lr:()=>l,WU:()=>r,k6:()=>o});const r=10,o=20,l=50},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},5814:e=>{e.exports=require("@mui/icons-material")},4325:e=>{e.exports=require("@mui/icons-material/Close")},6084:e=>{e.exports=require("@mui/icons-material/Delete")},9247:e=>{e.exports=require("@mui/icons-material/Edit")},8619:e=>{e.exports=require("@mui/material")},6831:e=>{e.exports=require("@mui/utils")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},7825:e=>{e.exports=require("lodash")},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 l=t[r]={exports:{}};return e[r](l,l.exports,n),l.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:()=>B});var o=n(1116),l=n.n(o),a=n(2015),i=n(6842),c=n.n(i),s=n(7825),u=n(8619),m=n(9247),d=n.n(m),p=n(6084),g=n.n(p);const f=require("@mui/icons-material/Check");var b=n.n(f),x=n(4325),y=n.n(x),C=n(6831),h=n(3209),E=n(2024);const T="mx3fuojj3xuUbN9ch3eB";function w(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const P={backgroundColor:"background.light",color:"text.disabled"},B=({columns:e=[],data:t=[],children:n,totalRows:r,perPage:o,currentPage:l,onPageChange:i,onPerPageChange:m,onSort:p,options:f={sortCol:"",sortDir:1,disableProp:null},getName:x=e=>e.name,onEdit:w,onArchive:B,onDelete:O,canDelete:j=()=>!0,deleteDialogTitle:k=null,deleteDialogBody:D=null,deleteDialogConfirmText:_=null,confirmButtonColor:S=null})=>{const q=[h.WU,h.k6,h.Lr],R=a.useRef(o);let W=q.includes(R.current)?q:[...q,R.current].sort(((e,t)=>e-t));m||(W=[R.current]);const{sortCol:K,sortDir:z}=f,N=(e,t={})=>v(v({},t),(e=>f.disableProp&&e[f.disableProp]?P:null)(e)||{});return a.createElement(u.Box,{sx:{width:"100%"}},a.createElement(u.Paper,{elevation:0,sx:{width:"100%",mb:2}},a.createElement(u.TableContainer,{component:u.Paper,sx:{borderRadius:0,boxShadow:"none"}},a.createElement(u.Table,null,a.createElement(u.TableHead,{sx:{backgroundColor:"#EAEAEA"}},a.createElement(u.TableRow,null,e.map((e=>a.createElement(u.TableCell,{key:e.columnKey,sx:{width:e.width,minWidth:e.width,maxWidth:e.width},align:e.align??"left"},e.sortable?a.createElement(u.TableSortLabel,{active:K===e.columnKey,direction:K===e.columnKey&&-1===z?"desc":"asc",onClick:()=>p(e.columnKey,-1*z)},e.header,K===e.columnKey?a.createElement(u.Box,{component:"span",sx:C.visuallyHidden},-1===z?c().translate("mui_table.sorted_desc"):c().translate("mui_table.sorted_asc")):null):e.header))),w&&a.createElement(u.TableCell,{sx:{width:40}}),B&&a.createElement(u.TableCell,{sx:{width:80}}),O&&a.createElement(u.TableCell,{sx:{width:40}}))),a.createElement(u.TableBody,null,t.map((t=>a.createElement(u.TableRow,{key:t.id},e.map((e=>a.createElement(u.TableCell,{key:e.columnKey,align:e.align??"left",className:`${e.dottedBorder&&T} ${e.className}`,sx:N(t)},((e,t)=>t.render?t.render(e):(0,s.isBoolean)(e[t.columnKey])?e[t.columnKey]?a.createElement(b(),{fontSize:"large"}):a.createElement(y(),{fontSize:"large"}):e[t.columnKey])(t,e)))),w&&a.createElement(u.TableCell,{align:"center",className:T,sx:N(t,{width:40})},a.createElement(u.IconButton,{size:"large",onClick:()=>w(t)},a.createElement(d(),{fontSize:"large"}))),B&&a.createElement(u.TableCell,{align:"center",sx:{width:80},className:T},a.createElement(u.Button,{variant:"text",color:"inherit",size:"small",onClick:()=>B(t),sx:{fontSize:"1.3rem",fontWeight:500,lineHeight:"2.2rem",padding:"4px 5px"}},t.is_archived?c().translate("general.unarchive"):c().translate("general.archive"))),O&&a.createElement(u.TableCell,{align:"center",className:T,sx:N(t,{width:40})},j(t)&&a.createElement(u.IconButton,{size:"large",onClick:()=>(async e=>{await(0,E.default)({title:k||c().translate("general.are_you_sure"),text:"function"==typeof D?D(x(e)):D||`${c().translate("general.row_remove_warning")} ${x(e)}`,type:"warning",showCancelButton:!0,confirmButtonColor:S||"#DD6B55",confirmButtonText:_||c().translate("general.yes_delete")})&&O(e.id)})(t)},a.createElement(g(),{fontSize:"large"})))))),n,0===t.length&&a.createElement(u.TableRow,null,a.createElement(u.TableCell,{colSpan:e.length,align:"center"},c().translate("mui_table.no_items")))))),o&&l&&a.createElement(u.TablePagination,{component:"div",count:r,rowsPerPageOptions:W,rowsPerPage:o,page:l-1,onPageChange:(e,t)=>{i(t+1)},onRowsPerPageChange:e=>{m(e.target.value)},labelRowsPerPage:c().translate("mui_table.rows_per_page"),sx:{".MuiTablePagination-toolbar":{alignItems:"baseline",marginTop:"1.6rem"},".MuiTablePagination-spacer":{display:"none"},".MuiTablePagination-displayedRows":{marginLeft:"auto"}}})))};return r})()));
2
2
  //# sourceMappingURL=table.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/table.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,CAA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AEX,oCAAqC,CACnC0J,WAAY,YA7J1B,E","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/./src/utils/constants.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/icons-material/Close\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Delete\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Edit\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/utils\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"lodash\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/external commonjs \"react-dom/client\"","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/Check\"","webpack://openstack-uicore-foundation/./src/components/mui/table/mui-table.module.less?e9a1","webpack://openstack-uicore-foundation/./src/components/mui/table/mui-table.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\nimport ReactDOM from \"react-dom\";\nimport React from \"react\";\nimport ConfirmDialog from \"./confirm-dialog\";\n\n// React 18+ uses createRoot from react-dom/client; React 17 does not have this module\nlet createRoot;\ntry {\n ({ createRoot } = require(\"react-dom/client\"));\n} catch (_) {\n // React 17 — createRoot not available, will fall back to ReactDOM.render\n}\n\nconst showConfirmDialog = ({\n title,\n text,\n iconType = \"\",\n confirmButtonText = \"Confirm\",\n cancelButtonText = \"Cancel\",\n confirmButtonColor = \"primary\",\n cancelButtonColor = \"primary\"\n}) =>\n new Promise((resolve) => {\n const container = document.createElement(\"div\");\n document.body.appendChild(container);\n\n let root = null;\n\n const close = (answer) => {\n if (root) {\n root.unmount();\n } else {\n ReactDOM.unmountComponentAtNode(container);\n }\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 if (createRoot) {\n root = createRoot(container);\n root.render(element);\n } else {\n ReactDOM.render(element, container);\n }\n });\n\nexport default showConfirmDialog;\n","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@mui/icons-material\");","module.exports = require(\"@mui/icons-material/Close\");","module.exports = require(\"@mui/icons-material/Delete\");","module.exports = require(\"@mui/icons-material/Edit\");","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/utils\");","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"lodash\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"react-dom/client\");","// 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/Check\");","// extracted by mini-css-extract-plugin\nexport default {\"dottedBorderLeft\":\"mx3fuojj3xuUbN9ch3eB\"};","/**\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 * as React from \"react\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport { isBoolean } from \"lodash\";\nimport {\n Box,\n Button,\n IconButton,\n Paper,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TablePagination,\n TableRow,\n TableSortLabel\n} from \"@mui/material\";\nimport EditIcon from \"@mui/icons-material/Edit\";\nimport DeleteIcon from \"@mui/icons-material/Delete\";\nimport CheckIcon from \"@mui/icons-material/Check\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport { visuallyHidden } from \"@mui/utils\";\nimport {\n DEFAULT_PER_PAGE,\n FIFTY_PER_PAGE,\n TWENTY_PER_PAGE\n} from \"../../../utils/constants\";\nimport showConfirmDialog from \"../showConfirmDialog\";\nimport styles from \"./mui-table.module.less\";\n\nconst ARCHIVED_CELL_SX = {\n backgroundColor: \"background.light\",\n color: \"text.disabled\"\n};\n\nconst MuiTable = ({\n columns = [],\n data = [],\n children,\n totalRows,\n perPage,\n currentPage,\n onPageChange,\n onPerPageChange,\n onSort,\n options = { sortCol: \"\", sortDir: 1, disableProp: null }, // disableProp is the prop that will disable the row\n getName = (item) => item.name,\n onEdit,\n onArchive,\n onDelete,\n canDelete = () => true,\n deleteDialogTitle = null,\n deleteDialogBody = null,\n deleteDialogConfirmText = null,\n confirmButtonColor = null\n}) => {\n const handleChangePage = (_, newPage) => {\n onPageChange(newPage + 1);\n };\n\n const handleChangeRowsPerPage = (ev) => {\n onPerPageChange(ev.target.value);\n };\n\n const basePerPageOptions = [\n DEFAULT_PER_PAGE,\n TWENTY_PER_PAGE,\n FIFTY_PER_PAGE\n ];\n\n const initialPerPage = React.useRef(perPage);\n\n let customPerPageOptions = basePerPageOptions.includes(initialPerPage.current)\n ? basePerPageOptions\n : [...basePerPageOptions, initialPerPage.current].sort((a, b) => a - b);\n\n // remove per page selection if no action passed\n if (!onPerPageChange) {\n customPerPageOptions = [initialPerPage.current];\n }\n\n const { sortCol, sortDir } = options;\n\n const getArchivedCellSx = (row) =>\n options.disableProp && row[options.disableProp] ? ARCHIVED_CELL_SX : null;\n\n const getCellSx = (row, baseSx = {}) => ({\n ...baseSx,\n ...(getArchivedCellSx(row) || {})\n });\n\n const handleDelete = async (item) => {\n const isConfirmed = await showConfirmDialog({\n title: deleteDialogTitle || T.translate(\"general.are_you_sure\"),\n text:\n typeof deleteDialogBody === \"function\"\n ? deleteDialogBody(getName(item))\n : deleteDialogBody ||\n `${T.translate(\"general.row_remove_warning\")} ${getName(item)}`,\n type: \"warning\",\n showCancelButton: true,\n confirmButtonColor: confirmButtonColor || \"#DD6B55\",\n confirmButtonText:\n deleteDialogConfirmText || T.translate(\"general.yes_delete\")\n });\n\n if (isConfirmed) {\n onDelete(item.id);\n }\n };\n\n const renderCell = (row, col) => {\n if (col.render) {\n return col.render(row);\n }\n\n if (isBoolean(row[col.columnKey])) {\n return row[col.columnKey] ? (\n <CheckIcon fontSize=\"large\" />\n ) : (\n <CloseIcon fontSize=\"large\" />\n );\n }\n\n return row[col.columnKey];\n };\n\n return (\n <Box sx={{ width: \"100%\" }}>\n <Paper elevation={0} sx={{ width: \"100%\", mb: 2 }}>\n <TableContainer\n component={Paper}\n sx={{ borderRadius: 0, boxShadow: \"none\" }}\n >\n <Table>\n {/* TABLE HEADER */}\n <TableHead sx={{ backgroundColor: \"#EAEAEA\" }}>\n <TableRow>\n {columns.map((col) => (\n <TableCell\n key={col.columnKey}\n sx={{\n width: col.width,\n minWidth: col.width,\n maxWidth: col.width\n }}\n align={col.align ?? \"left\"}\n >\n {col.sortable ? (\n <TableSortLabel\n active={sortCol === col.columnKey}\n direction={\n sortCol === col.columnKey && sortDir === -1\n ? \"desc\"\n : \"asc\"\n }\n onClick={() => onSort(col.columnKey, sortDir * -1)}\n >\n {col.header}\n {sortCol === col.columnKey ? (\n <Box component=\"span\" sx={visuallyHidden}>\n {sortDir === -1\n ? T.translate(\"mui_table.sorted_desc\")\n : T.translate(\"mui_table.sorted_asc\")}\n </Box>\n ) : null}\n </TableSortLabel>\n ) : (\n col.header\n )}\n </TableCell>\n ))}\n {onEdit && <TableCell sx={{ width: 40 }} />}\n {onArchive && <TableCell sx={{ width: 80 }} />}\n {onDelete && <TableCell sx={{ width: 40 }} />}\n </TableRow>\n </TableHead>\n\n {/* TABLE BODY */}\n <TableBody>\n {data.map((row) => (\n <TableRow key={row.id}>\n {/* Main content columns */}\n {columns.map((col) => (\n <TableCell\n key={col.columnKey}\n align={col.align ?? \"left\"}\n className={`${\n col.dottedBorder && styles.dottedBorderLeft\n } ${col.className}`}\n sx={getCellSx(row)}\n >\n {renderCell(row, col)}\n </TableCell>\n ))}\n {/* Edit column */}\n {onEdit && (\n <TableCell\n align=\"center\"\n className={styles.dottedBorderLeft}\n sx={getCellSx(row, { width: 40 })}\n >\n <IconButton size=\"large\" onClick={() => onEdit(row)}>\n <EditIcon fontSize=\"large\" />\n </IconButton>\n </TableCell>\n )}\n {/* Archive column */}\n {onArchive && (\n <TableCell\n align=\"center\"\n sx={{ width: 80 }}\n className={styles.dottedBorderLeft}\n >\n <Button\n variant=\"text\"\n color=\"inherit\"\n size=\"small\"\n onClick={() => onArchive(row)}\n sx={{\n fontSize: \"1.3rem\",\n fontWeight: 500,\n lineHeight: \"2.2rem\",\n padding: \"4px 5px\"\n }}\n >\n {row.is_archived\n ? T.translate(\"general.unarchive\")\n : T.translate(\"general.archive\")}\n </Button>\n </TableCell>\n )}\n {/* Delete column */}\n {onDelete && (\n <TableCell\n align=\"center\"\n className={styles.dottedBorderLeft}\n sx={getCellSx(row, { width: 40 })}\n >\n {canDelete(row) && (\n <IconButton\n size=\"large\"\n onClick={() => handleDelete(row)}\n >\n <DeleteIcon fontSize=\"large\" />\n </IconButton>\n )}\n </TableCell>\n )}\n </TableRow>\n ))}\n {/* Here we inject extra rows passed as children */}\n {children}\n {data.length === 0 && (\n <TableRow>\n <TableCell colSpan={columns.length} align=\"center\">\n {T.translate(\"mui_table.no_items\")}\n </TableCell>\n </TableRow>\n )}\n </TableBody>\n </Table>\n </TableContainer>\n\n {/* PAGINATION */}\n {perPage && currentPage && (\n <TablePagination\n component=\"div\"\n count={totalRows}\n rowsPerPageOptions={customPerPageOptions}\n rowsPerPage={perPage}\n page={currentPage - 1}\n onPageChange={handleChangePage}\n onRowsPerPageChange={handleChangeRowsPerPage}\n labelRowsPerPage={T.translate(\"mui_table.rows_per_page\")}\n sx={{\n \".MuiTablePagination-toolbar\": {\n alignItems: \"baseline\",\n marginTop: \"1.6rem\"\n },\n \".MuiTablePagination-spacer\": {\n display: \"none\"\n },\n \".MuiTablePagination-displayedRows\": {\n marginLeft: \"auto\"\n }\n }}\n />\n )}\n </Paper>\n </Box>\n );\n};\n\nexport default MuiTable;\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","createRoot","_","Promise","resolve","container","document","createElement","body","appendChild","close","answer","unmount","ReactDOM","remove","element","render","DEFAULT_PER_PAGE","TWENTY_PER_PAGE","FIFTY_PER_PAGE","__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","ARCHIVED_CELL_SX","backgroundColor","columns","data","children","totalRows","perPage","currentPage","onPageChange","onPerPageChange","onSort","options","sortCol","sortDir","disableProp","getName","item","name","onEdit","onArchive","onDelete","canDelete","deleteDialogTitle","deleteDialogBody","deleteDialogConfirmText","basePerPageOptions","initialPerPage","React","customPerPageOptions","includes","current","sort","b","getCellSx","row","baseSx","getArchivedCellSx","Box","width","Paper","elevation","mb","TableContainer","borderRadius","boxShadow","Table","TableHead","TableRow","map","col","TableCell","columnKey","maxWidth","align","sortable","TableSortLabel","active","direction","header","visuallyHidden","T","TableBody","id","className","dottedBorder","styles","isBoolean","fontSize","renderCell","IconButton","size","fontWeight","lineHeight","padding","is_archived","async","showConfirmDialog","type","showCancelButton","handleDelete","length","colSpan","TablePagination","count","rowsPerPageOptions","rowsPerPage","page","newPage","onRowsPerPageChange","ev","target","labelRowsPerPage","marginTop","marginLeft"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/table.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,C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EAAa8E,EAAU,EAAvB,EAwNQC,oBArNuBC,IAC/B/E,EAAgB+E,EAAGC,OAAO1F,MAA1B,EAqNQ2F,iBAAkB9B,IAAAA,UAAY,2BAC9BvI,GAAI,CACF,8BAA+B,CAC7BS,WAAY,WACZ6J,UAAW,UAEb,6BAA8B,CAC5B9J,QAAS,QAEX,oCAAqC,CACnC+J,WAAY,YA7J1B,E","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/./src/utils/constants.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/icons-material/Close\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Delete\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Edit\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/utils\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"lodash\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Check\"","webpack://openstack-uicore-foundation/./src/components/mui/table/mui-table.module.less?e9a1","webpack://openstack-uicore-foundation/./src/components/mui/table/mui-table.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\nimport ReactDOM from \"react-dom\";\nimport React from \"react\";\nimport ConfirmDialog from \"./confirm-dialog\";\n\n// Lazy-loaded createRoot for React 18+.\n// Cached after first call so the dynamic import only runs once.\nlet createRootFn = undefined; // undefined = not yet checked\n\nasync function getCreateRoot() {\n if (createRootFn !== undefined) return createRootFn;\n try {\n // webpackIgnore prevents webpack from resolving this at build time,\n // so consuming projects on React 16/17 won't get a \"Module not found\" error.\n const mod = await import(/* webpackIgnore: true */ \"react-dom/client\");\n createRootFn = mod.createRoot || null;\n } catch (_) {\n createRootFn = null;\n }\n return createRootFn;\n}\n\nconst showConfirmDialog = ({\n title,\n text,\n iconType = \"\",\n confirmButtonText = \"Confirm\",\n cancelButtonText = \"Cancel\",\n confirmButtonColor = \"primary\",\n cancelButtonColor = \"primary\"\n}) =>\n new Promise((resolve) => {\n const container = document.createElement(\"div\");\n document.body.appendChild(container);\n\n let root = null;\n\n const close = (answer) => {\n if (root) {\n root.unmount();\n } else {\n ReactDOM.unmountComponentAtNode(container);\n }\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 getCreateRoot().then((createRoot) => {\n if (createRoot) {\n root = createRoot(container);\n root.render(element);\n } else {\n ReactDOM.render(element, container);\n }\n });\n });\n\nexport default showConfirmDialog;\n","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@mui/icons-material\");","module.exports = require(\"@mui/icons-material/Close\");","module.exports = require(\"@mui/icons-material/Delete\");","module.exports = require(\"@mui/icons-material/Edit\");","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/utils\");","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"lodash\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Check\");","// extracted by mini-css-extract-plugin\nexport default {\"dottedBorderLeft\":\"mx3fuojj3xuUbN9ch3eB\"};","/**\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 * as React from \"react\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport { isBoolean } from \"lodash\";\nimport {\n Box,\n Button,\n IconButton,\n Paper,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TablePagination,\n TableRow,\n TableSortLabel\n} from \"@mui/material\";\nimport EditIcon from \"@mui/icons-material/Edit\";\nimport DeleteIcon from \"@mui/icons-material/Delete\";\nimport CheckIcon from \"@mui/icons-material/Check\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport { visuallyHidden } from \"@mui/utils\";\nimport {\n DEFAULT_PER_PAGE,\n FIFTY_PER_PAGE,\n TWENTY_PER_PAGE\n} from \"../../../utils/constants\";\nimport showConfirmDialog from \"../showConfirmDialog\";\nimport styles from \"./mui-table.module.less\";\n\nconst ARCHIVED_CELL_SX = {\n backgroundColor: \"background.light\",\n color: \"text.disabled\"\n};\n\nconst MuiTable = ({\n columns = [],\n data = [],\n children,\n totalRows,\n perPage,\n currentPage,\n onPageChange,\n onPerPageChange,\n onSort,\n options = { sortCol: \"\", sortDir: 1, disableProp: null }, // disableProp is the prop that will disable the row\n getName = (item) => item.name,\n onEdit,\n onArchive,\n onDelete,\n canDelete = () => true,\n deleteDialogTitle = null,\n deleteDialogBody = null,\n deleteDialogConfirmText = null,\n confirmButtonColor = null\n}) => {\n const handleChangePage = (_, newPage) => {\n onPageChange(newPage + 1);\n };\n\n const handleChangeRowsPerPage = (ev) => {\n onPerPageChange(ev.target.value);\n };\n\n const basePerPageOptions = [\n DEFAULT_PER_PAGE,\n TWENTY_PER_PAGE,\n FIFTY_PER_PAGE\n ];\n\n const initialPerPage = React.useRef(perPage);\n\n let customPerPageOptions = basePerPageOptions.includes(initialPerPage.current)\n ? basePerPageOptions\n : [...basePerPageOptions, initialPerPage.current].sort((a, b) => a - b);\n\n // remove per page selection if no action passed\n if (!onPerPageChange) {\n customPerPageOptions = [initialPerPage.current];\n }\n\n const { sortCol, sortDir } = options;\n\n const getArchivedCellSx = (row) =>\n options.disableProp && row[options.disableProp] ? ARCHIVED_CELL_SX : null;\n\n const getCellSx = (row, baseSx = {}) => ({\n ...baseSx,\n ...(getArchivedCellSx(row) || {})\n });\n\n const handleDelete = async (item) => {\n const isConfirmed = await showConfirmDialog({\n title: deleteDialogTitle || T.translate(\"general.are_you_sure\"),\n text:\n typeof deleteDialogBody === \"function\"\n ? deleteDialogBody(getName(item))\n : deleteDialogBody ||\n `${T.translate(\"general.row_remove_warning\")} ${getName(item)}`,\n type: \"warning\",\n showCancelButton: true,\n confirmButtonColor: confirmButtonColor || \"#DD6B55\",\n confirmButtonText:\n deleteDialogConfirmText || T.translate(\"general.yes_delete\")\n });\n\n if (isConfirmed) {\n onDelete(item.id);\n }\n };\n\n const renderCell = (row, col) => {\n if (col.render) {\n return col.render(row);\n }\n\n if (isBoolean(row[col.columnKey])) {\n return row[col.columnKey] ? (\n <CheckIcon fontSize=\"large\" />\n ) : (\n <CloseIcon fontSize=\"large\" />\n );\n }\n\n return row[col.columnKey];\n };\n\n return (\n <Box sx={{ width: \"100%\" }}>\n <Paper elevation={0} sx={{ width: \"100%\", mb: 2 }}>\n <TableContainer\n component={Paper}\n sx={{ borderRadius: 0, boxShadow: \"none\" }}\n >\n <Table>\n {/* TABLE HEADER */}\n <TableHead sx={{ backgroundColor: \"#EAEAEA\" }}>\n <TableRow>\n {columns.map((col) => (\n <TableCell\n key={col.columnKey}\n sx={{\n width: col.width,\n minWidth: col.width,\n maxWidth: col.width\n }}\n align={col.align ?? \"left\"}\n >\n {col.sortable ? (\n <TableSortLabel\n active={sortCol === col.columnKey}\n direction={\n sortCol === col.columnKey && sortDir === -1\n ? \"desc\"\n : \"asc\"\n }\n onClick={() => onSort(col.columnKey, sortDir * -1)}\n >\n {col.header}\n {sortCol === col.columnKey ? (\n <Box component=\"span\" sx={visuallyHidden}>\n {sortDir === -1\n ? T.translate(\"mui_table.sorted_desc\")\n : T.translate(\"mui_table.sorted_asc\")}\n </Box>\n ) : null}\n </TableSortLabel>\n ) : (\n col.header\n )}\n </TableCell>\n ))}\n {onEdit && <TableCell sx={{ width: 40 }} />}\n {onArchive && <TableCell sx={{ width: 80 }} />}\n {onDelete && <TableCell sx={{ width: 40 }} />}\n </TableRow>\n </TableHead>\n\n {/* TABLE BODY */}\n <TableBody>\n {data.map((row) => (\n <TableRow key={row.id}>\n {/* Main content columns */}\n {columns.map((col) => (\n <TableCell\n key={col.columnKey}\n align={col.align ?? \"left\"}\n className={`${\n col.dottedBorder && styles.dottedBorderLeft\n } ${col.className}`}\n sx={getCellSx(row)}\n >\n {renderCell(row, col)}\n </TableCell>\n ))}\n {/* Edit column */}\n {onEdit && (\n <TableCell\n align=\"center\"\n className={styles.dottedBorderLeft}\n sx={getCellSx(row, { width: 40 })}\n >\n <IconButton size=\"large\" onClick={() => onEdit(row)}>\n <EditIcon fontSize=\"large\" />\n </IconButton>\n </TableCell>\n )}\n {/* Archive column */}\n {onArchive && (\n <TableCell\n align=\"center\"\n sx={{ width: 80 }}\n className={styles.dottedBorderLeft}\n >\n <Button\n variant=\"text\"\n color=\"inherit\"\n size=\"small\"\n onClick={() => onArchive(row)}\n sx={{\n fontSize: \"1.3rem\",\n fontWeight: 500,\n lineHeight: \"2.2rem\",\n padding: \"4px 5px\"\n }}\n >\n {row.is_archived\n ? T.translate(\"general.unarchive\")\n : T.translate(\"general.archive\")}\n </Button>\n </TableCell>\n )}\n {/* Delete column */}\n {onDelete && (\n <TableCell\n align=\"center\"\n className={styles.dottedBorderLeft}\n sx={getCellSx(row, { width: 40 })}\n >\n {canDelete(row) && (\n <IconButton\n size=\"large\"\n onClick={() => handleDelete(row)}\n >\n <DeleteIcon fontSize=\"large\" />\n </IconButton>\n )}\n </TableCell>\n )}\n </TableRow>\n ))}\n {/* Here we inject extra rows passed as children */}\n {children}\n {data.length === 0 && (\n <TableRow>\n <TableCell colSpan={columns.length} align=\"center\">\n {T.translate(\"mui_table.no_items\")}\n </TableCell>\n </TableRow>\n )}\n </TableBody>\n </Table>\n </TableContainer>\n\n {/* PAGINATION */}\n {perPage && currentPage && (\n <TablePagination\n component=\"div\"\n count={totalRows}\n rowsPerPageOptions={customPerPageOptions}\n rowsPerPage={perPage}\n page={currentPage - 1}\n onPageChange={handleChangePage}\n onRowsPerPageChange={handleChangeRowsPerPage}\n labelRowsPerPage={T.translate(\"mui_table.rows_per_page\")}\n sx={{\n \".MuiTablePagination-toolbar\": {\n alignItems: \"baseline\",\n marginTop: \"1.6rem\"\n },\n \".MuiTablePagination-spacer\": {\n display: \"none\"\n },\n \".MuiTablePagination-displayedRows\": {\n marginLeft: \"auto\"\n }\n }}\n />\n )}\n </Paper>\n </Box>\n );\n};\n\nexport default MuiTable;\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","createRootFn","Promise","resolve","container","document","createElement","body","appendChild","close","answer","unmount","ReactDOM","remove","element","async","undefined","mod","import","createRoot","_","getCreateRoot","then","render","DEFAULT_PER_PAGE","TWENTY_PER_PAGE","FIFTY_PER_PAGE","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","ARCHIVED_CELL_SX","backgroundColor","columns","data","children","totalRows","perPage","currentPage","onPageChange","onPerPageChange","onSort","options","sortCol","sortDir","disableProp","getName","item","name","onEdit","onArchive","onDelete","canDelete","deleteDialogTitle","deleteDialogBody","deleteDialogConfirmText","basePerPageOptions","initialPerPage","React","customPerPageOptions","includes","current","sort","b","getCellSx","row","baseSx","getArchivedCellSx","Box","width","Paper","elevation","mb","TableContainer","borderRadius","boxShadow","Table","TableHead","TableRow","map","col","TableCell","columnKey","maxWidth","align","sortable","TableSortLabel","active","direction","header","visuallyHidden","T","TableBody","id","className","dottedBorder","styles","isBoolean","fontSize","renderCell","IconButton","size","fontWeight","lineHeight","padding","is_archived","showConfirmDialog","type","showCancelButton","handleDelete","length","colSpan","TablePagination","count","rowsPerPageOptions","rowsPerPage","page","newPage","onRowsPerPageChange","ev","target","labelRowsPerPage","marginTop","marginLeft"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openstack-uicore-foundation",
3
- "version": "5.0.5",
3
+ "version": "5.0.6",
4
4
  "description": "ui reactjs components for openstack marketing site",
5
5
  "main": "lib/openstack-uicore-foundation.js",
6
6
  "scripts": {