Files
ETB/ETB-FrontEnd/node_modules/.cache/babel-loader/7c148426ca6f0b2fc3be450eef10ac7d66b47c6fdf5c04962551a174e03ffb97.json
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

1 line
25 KiB
JSON

{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"id\", \"value\", \"formattedValue\", \"api\", \"field\", \"row\", \"rowNode\", \"colDef\", \"cellMode\", \"isEditable\", \"tabIndex\", \"className\", \"getValue\", \"hasFocus\", \"isValidating\", \"isProcessingProps\", \"error\", \"onValueChange\", \"initialOpen\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/material/utils';\nimport MenuItem from '@mui/material/MenuItem';\nimport { isEscapeKey } from '../../utils/keyboardUtils';\nimport { useGridRootProps } from '../../hooks/utils/useGridRootProps';\nimport { GridEditModes } from '../../models/gridEditRowModel';\nimport { getValueFromValueOptions } from '../panel/filterPanel/filterPanelUtils';\nimport { useGridApiContext } from '../../hooks/utils/useGridApiContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst renderSingleSelectOptions = (option, OptionComponent) => {\n const isOptionTypeObject = typeof option === 'object';\n const key = isOptionTypeObject ? option.value : option;\n const value = isOptionTypeObject ? option.value : option;\n const content = isOptionTypeObject ? option.label : option;\n return /*#__PURE__*/_jsx(OptionComponent, {\n value: value,\n children: content\n }, key);\n};\nfunction isKeyboardEvent(event) {\n return !!event.key;\n}\nfunction GridEditSingleSelectCell(props) {\n var _rootProps$components, _baseSelectProps$nati, _rootProps$components2;\n const rootProps = useGridRootProps();\n const {\n id,\n value,\n api,\n field,\n row,\n colDef,\n hasFocus,\n error,\n onValueChange,\n initialOpen = rootProps.editMode === GridEditModes.Cell\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const ref = React.useRef();\n const inputRef = React.useRef();\n const [open, setOpen] = React.useState(initialOpen);\n const baseSelectProps = ((_rootProps$components = rootProps.componentsProps) == null ? void 0 : _rootProps$components.baseSelect) || {};\n const isSelectNative = (_baseSelectProps$nati = baseSelectProps.native) != null ? _baseSelectProps$nati : false;\n let valueOptionsFormatted;\n if (typeof colDef.valueOptions === 'function') {\n valueOptionsFormatted = colDef.valueOptions({\n id,\n row,\n field\n });\n } else {\n valueOptionsFormatted = colDef.valueOptions;\n }\n if (colDef.valueFormatter) {\n valueOptionsFormatted = valueOptionsFormatted.map(option => {\n if (typeof option === 'object') {\n return option;\n }\n const params = {\n field,\n api,\n value: option\n };\n return {\n value: option,\n label: String(colDef.valueFormatter(params))\n };\n });\n }\n const handleChange = async event => {\n var _rootProps$experiment;\n setOpen(false);\n const target = event.target; // NativeSelect casts the value to a string.\n\n const formattedTargetValue = getValueFromValueOptions(target.value, valueOptionsFormatted);\n if (onValueChange) {\n await onValueChange(event, formattedTargetValue);\n }\n const isValid = await apiRef.current.setEditCellValue({\n id,\n field,\n value: formattedTargetValue\n }, event);\n if ((_rootProps$experiment = rootProps.experimentalFeatures) != null && _rootProps$experiment.newEditingApi) {\n return;\n } // We use isValid === false because the default return is undefined which evaluates to true with !isValid\n\n if (rootProps.editMode === GridEditModes.Row || isValid === false) {\n return;\n }\n const canCommit = await Promise.resolve(apiRef.current.commitCellChange({\n id,\n field\n }, event));\n if (canCommit) {\n apiRef.current.setCellMode(id, field, 'view');\n if (event.key) {\n // TODO v6: remove once we stop ignoring events fired from portals\n const params = apiRef.current.getCellParams(id, field);\n apiRef.current.publishEvent('cellNavigationKeyDown', params, event);\n }\n }\n };\n const handleClose = (event, reason) => {\n if (rootProps.editMode === GridEditModes.Row) {\n setOpen(false);\n return;\n }\n if (reason === 'backdropClick' || isEscapeKey(event.key)) {\n var _rootProps$experiment2;\n if ((_rootProps$experiment2 = rootProps.experimentalFeatures) != null && _rootProps$experiment2.newEditingApi) {\n apiRef.current.stopCellEditMode({\n id,\n field,\n ignoreModifications: true\n });\n } else {\n apiRef.current.setCellMode(id, field, 'view');\n }\n }\n };\n const handleOpen = event => {\n if (isKeyboardEvent(event) && event.key === 'Enter') {\n return;\n }\n setOpen(true);\n };\n useEnhancedEffect(() => {\n if (hasFocus) {\n inputRef.current.focus();\n }\n }, [hasFocus]);\n return /*#__PURE__*/_jsx(rootProps.components.BaseSelect, _extends({\n ref: ref,\n inputRef: inputRef,\n value: value,\n onChange: handleChange,\n open: open,\n onOpen: handleOpen,\n MenuProps: {\n onClose: handleClose\n },\n error: error,\n native: isSelectNative,\n fullWidth: true\n }, other, (_rootProps$components2 = rootProps.componentsProps) == null ? void 0 : _rootProps$components2.baseSelect, {\n children: valueOptionsFormatted.map(valueOptions => renderSingleSelectOptions(valueOptions, isSelectNative ? 'option' : MenuItem))\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridEditSingleSelectCell.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * GridApi that let you manipulate the grid.\n * @deprecated Use the `apiRef` returned by `useGridApiContext` or `useGridApiRef` (only available in `@mui/x-data-grid-pro`)\n */\n api: PropTypes.any.isRequired,\n /**\n * The mode of the cell.\n */\n cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,\n changeReason: PropTypes.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),\n /**\n * The column of the row that the current cell belongs to.\n */\n colDef: PropTypes.object.isRequired,\n /**\n * The column field of the cell that triggered the event.\n */\n field: PropTypes.string.isRequired,\n /**\n * The cell value formatted with the column valueFormatter.\n */\n formattedValue: PropTypes.any,\n /**\n * Get the cell value of a row and field.\n * @param {GridRowId} id The row id.\n * @param {string} field The field.\n * @returns {any} The cell value.\n * @deprecated Use `params.row` to directly access the fields you want instead.\n */\n getValue: PropTypes.func.isRequired,\n /**\n * If true, the cell is the active element.\n */\n hasFocus: PropTypes.bool.isRequired,\n /**\n * The grid row id.\n */\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,\n /**\n * If true, the select opens by default.\n */\n initialOpen: PropTypes.bool,\n /**\n * If true, the cell is editable.\n */\n isEditable: PropTypes.bool,\n isProcessingProps: PropTypes.bool,\n isValidating: PropTypes.bool,\n /**\n * Callback called when the value is changed by the user.\n * @param {SelectChangeEvent<any>} event The event source of the callback.\n * @param {any} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.\n * @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`\n */\n onValueChange: PropTypes.func,\n /**\n * The row model of the row that the current cell belongs to.\n */\n row: PropTypes.any.isRequired,\n /**\n * The node of the row that the current cell belongs to.\n */\n rowNode: PropTypes.object.isRequired,\n /**\n * the tabIndex value.\n */\n tabIndex: PropTypes.oneOf([-1, 0]).isRequired,\n /**\n * The cell value.\n * If the column has `valueGetter`, use `params.row` to directly access the fields.\n */\n value: PropTypes.any\n} : void 0;\nexport { GridEditSingleSelectCell };\nexport const renderEditSingleSelectCell = params => /*#__PURE__*/_jsx(GridEditSingleSelectCell, _extends({}, params));","map":{"version":3,"names":["_extends","_objectWithoutPropertiesLoose","_excluded","React","PropTypes","unstable_useEnhancedEffect","useEnhancedEffect","MenuItem","isEscapeKey","useGridRootProps","GridEditModes","getValueFromValueOptions","useGridApiContext","jsx","_jsx","renderSingleSelectOptions","option","OptionComponent","isOptionTypeObject","key","value","content","label","children","isKeyboardEvent","event","GridEditSingleSelectCell","props","_rootProps$components","_baseSelectProps$nati","_rootProps$components2","rootProps","id","api","field","row","colDef","hasFocus","error","onValueChange","initialOpen","editMode","Cell","other","apiRef","ref","useRef","inputRef","open","setOpen","useState","baseSelectProps","componentsProps","baseSelect","isSelectNative","native","valueOptionsFormatted","valueOptions","valueFormatter","map","params","String","handleChange","_rootProps$experiment","target","formattedTargetValue","isValid","current","setEditCellValue","experimentalFeatures","newEditingApi","Row","canCommit","Promise","resolve","commitCellChange","setCellMode","getCellParams","publishEvent","handleClose","reason","_rootProps$experiment2","stopCellEditMode","ignoreModifications","handleOpen","focus","components","BaseSelect","onChange","onOpen","MenuProps","onClose","fullWidth","process","env","NODE_ENV","propTypes","any","isRequired","cellMode","oneOf","changeReason","object","string","formattedValue","getValue","func","bool","oneOfType","number","isEditable","isProcessingProps","isValidating","rowNode","tabIndex","renderEditSingleSelectCell"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/@mui/x-data-grid/components/cell/GridEditSingleSelectCell.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"id\", \"value\", \"formattedValue\", \"api\", \"field\", \"row\", \"rowNode\", \"colDef\", \"cellMode\", \"isEditable\", \"tabIndex\", \"className\", \"getValue\", \"hasFocus\", \"isValidating\", \"isProcessingProps\", \"error\", \"onValueChange\", \"initialOpen\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/material/utils';\nimport MenuItem from '@mui/material/MenuItem';\nimport { isEscapeKey } from '../../utils/keyboardUtils';\nimport { useGridRootProps } from '../../hooks/utils/useGridRootProps';\nimport { GridEditModes } from '../../models/gridEditRowModel';\nimport { getValueFromValueOptions } from '../panel/filterPanel/filterPanelUtils';\nimport { useGridApiContext } from '../../hooks/utils/useGridApiContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n\nconst renderSingleSelectOptions = (option, OptionComponent) => {\n const isOptionTypeObject = typeof option === 'object';\n const key = isOptionTypeObject ? option.value : option;\n const value = isOptionTypeObject ? option.value : option;\n const content = isOptionTypeObject ? option.label : option;\n return /*#__PURE__*/_jsx(OptionComponent, {\n value: value,\n children: content\n }, key);\n};\n\nfunction isKeyboardEvent(event) {\n return !!event.key;\n}\n\nfunction GridEditSingleSelectCell(props) {\n var _rootProps$components, _baseSelectProps$nati, _rootProps$components2;\n\n const rootProps = useGridRootProps();\n\n const {\n id,\n value,\n api,\n field,\n row,\n colDef,\n hasFocus,\n error,\n onValueChange,\n initialOpen = rootProps.editMode === GridEditModes.Cell\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n const apiRef = useGridApiContext();\n const ref = React.useRef();\n const inputRef = React.useRef();\n const [open, setOpen] = React.useState(initialOpen);\n const baseSelectProps = ((_rootProps$components = rootProps.componentsProps) == null ? void 0 : _rootProps$components.baseSelect) || {};\n const isSelectNative = (_baseSelectProps$nati = baseSelectProps.native) != null ? _baseSelectProps$nati : false;\n let valueOptionsFormatted;\n\n if (typeof colDef.valueOptions === 'function') {\n valueOptionsFormatted = colDef.valueOptions({\n id,\n row,\n field\n });\n } else {\n valueOptionsFormatted = colDef.valueOptions;\n }\n\n if (colDef.valueFormatter) {\n valueOptionsFormatted = valueOptionsFormatted.map(option => {\n if (typeof option === 'object') {\n return option;\n }\n\n const params = {\n field,\n api,\n value: option\n };\n return {\n value: option,\n label: String(colDef.valueFormatter(params))\n };\n });\n }\n\n const handleChange = async event => {\n var _rootProps$experiment;\n\n setOpen(false);\n const target = event.target; // NativeSelect casts the value to a string.\n\n const formattedTargetValue = getValueFromValueOptions(target.value, valueOptionsFormatted);\n\n if (onValueChange) {\n await onValueChange(event, formattedTargetValue);\n }\n\n const isValid = await apiRef.current.setEditCellValue({\n id,\n field,\n value: formattedTargetValue\n }, event);\n\n if ((_rootProps$experiment = rootProps.experimentalFeatures) != null && _rootProps$experiment.newEditingApi) {\n return;\n } // We use isValid === false because the default return is undefined which evaluates to true with !isValid\n\n\n if (rootProps.editMode === GridEditModes.Row || isValid === false) {\n return;\n }\n\n const canCommit = await Promise.resolve(apiRef.current.commitCellChange({\n id,\n field\n }, event));\n\n if (canCommit) {\n apiRef.current.setCellMode(id, field, 'view');\n\n if (event.key) {\n // TODO v6: remove once we stop ignoring events fired from portals\n const params = apiRef.current.getCellParams(id, field);\n apiRef.current.publishEvent('cellNavigationKeyDown', params, event);\n }\n }\n };\n\n const handleClose = (event, reason) => {\n if (rootProps.editMode === GridEditModes.Row) {\n setOpen(false);\n return;\n }\n\n if (reason === 'backdropClick' || isEscapeKey(event.key)) {\n var _rootProps$experiment2;\n\n if ((_rootProps$experiment2 = rootProps.experimentalFeatures) != null && _rootProps$experiment2.newEditingApi) {\n apiRef.current.stopCellEditMode({\n id,\n field,\n ignoreModifications: true\n });\n } else {\n apiRef.current.setCellMode(id, field, 'view');\n }\n }\n };\n\n const handleOpen = event => {\n if (isKeyboardEvent(event) && event.key === 'Enter') {\n return;\n }\n\n setOpen(true);\n };\n\n useEnhancedEffect(() => {\n if (hasFocus) {\n inputRef.current.focus();\n }\n }, [hasFocus]);\n return /*#__PURE__*/_jsx(rootProps.components.BaseSelect, _extends({\n ref: ref,\n inputRef: inputRef,\n value: value,\n onChange: handleChange,\n open: open,\n onOpen: handleOpen,\n MenuProps: {\n onClose: handleClose\n },\n error: error,\n native: isSelectNative,\n fullWidth: true\n }, other, (_rootProps$components2 = rootProps.componentsProps) == null ? void 0 : _rootProps$components2.baseSelect, {\n children: valueOptionsFormatted.map(valueOptions => renderSingleSelectOptions(valueOptions, isSelectNative ? 'option' : MenuItem))\n }));\n}\n\nprocess.env.NODE_ENV !== \"production\" ? GridEditSingleSelectCell.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * GridApi that let you manipulate the grid.\n * @deprecated Use the `apiRef` returned by `useGridApiContext` or `useGridApiRef` (only available in `@mui/x-data-grid-pro`)\n */\n api: PropTypes.any.isRequired,\n\n /**\n * The mode of the cell.\n */\n cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,\n changeReason: PropTypes.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),\n\n /**\n * The column of the row that the current cell belongs to.\n */\n colDef: PropTypes.object.isRequired,\n\n /**\n * The column field of the cell that triggered the event.\n */\n field: PropTypes.string.isRequired,\n\n /**\n * The cell value formatted with the column valueFormatter.\n */\n formattedValue: PropTypes.any,\n\n /**\n * Get the cell value of a row and field.\n * @param {GridRowId} id The row id.\n * @param {string} field The field.\n * @returns {any} The cell value.\n * @deprecated Use `params.row` to directly access the fields you want instead.\n */\n getValue: PropTypes.func.isRequired,\n\n /**\n * If true, the cell is the active element.\n */\n hasFocus: PropTypes.bool.isRequired,\n\n /**\n * The grid row id.\n */\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,\n\n /**\n * If true, the select opens by default.\n */\n initialOpen: PropTypes.bool,\n\n /**\n * If true, the cell is editable.\n */\n isEditable: PropTypes.bool,\n isProcessingProps: PropTypes.bool,\n isValidating: PropTypes.bool,\n\n /**\n * Callback called when the value is changed by the user.\n * @param {SelectChangeEvent<any>} event The event source of the callback.\n * @param {any} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.\n * @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`\n */\n onValueChange: PropTypes.func,\n\n /**\n * The row model of the row that the current cell belongs to.\n */\n row: PropTypes.any.isRequired,\n\n /**\n * The node of the row that the current cell belongs to.\n */\n rowNode: PropTypes.object.isRequired,\n\n /**\n * the tabIndex value.\n */\n tabIndex: PropTypes.oneOf([-1, 0]).isRequired,\n\n /**\n * The cell value.\n * If the column has `valueGetter`, use `params.row` to directly access the fields.\n */\n value: PropTypes.any\n} : void 0;\nexport { GridEditSingleSelectCell };\nexport const renderEditSingleSelectCell = params => /*#__PURE__*/_jsx(GridEditSingleSelectCell, _extends({}, params));"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,6BAA6B,MAAM,yDAAyD;AACnG,MAAMC,SAAS,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO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EAE7B;AACF;AACA;AACA;AACA;AACA;AACA;EACEQ,QAAQ,EAAErG,SAAS,CAACsG,IAAI,CAACR,UAAU;EAEnC;AACF;AACA;EACE7D,QAAQ,EAAEjC,SAAS,CAACuG,IAAI,CAACT,UAAU;EAEnC;AACF;AACA;EACElE,EAAE,EAAE5B,SAAS,CAACwG,SAAS,CAAC,CAACxG,SAAS,CAACyG,MAAM,EAAEzG,SAAS,CAACmG,MAAM,CAAC,CAAC,CAACL,UAAU;EAExE;AACF;AACA;EACE1D,WAAW,EAAEpC,SAAS,CAACuG,IAAI;EAE3B;AACF;AACA;EACEG,UAAU,EAAE1G,SAAS,CAACuG,IAAI;EAC1BI,iBAAiB,EAAE3G,SAAS,CAACuG,IAAI;EACjCK,YAAY,EAAE5G,SAAS,CAACuG,IAAI;EAE5B;AACF;AACA;AACA;AACA;AACA;EACEpE,aAAa,EAAEnC,SAAS,CAACsG,IAAI;EAE7B;AACF;AACA;EACEvE,GAAG,EAAE/B,SAAS,CAAC6F,GAAG,CAACC,UAAU;EAE7B;AACF;AACA;EACEe,OAAO,EAAE7G,SAAS,CAACkG,MAAM,CAACJ,UAAU;EAEpC;AACF;AACA;EACEgB,QAAQ,EAAE9G,SAAS,CAACgG,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAACF,UAAU;EAE7C;AACF;AACA;AACA;EACE9E,KAAK,EAAEhB,SAAS,CAAC6F;AACnB,CAAC,GAAG,KAAK,CAAC;AACV,SAASvE,wBAAwB;AACjC,OAAO,MAAMyF,0BAA0B,GAAGvD,MAAM,IAAI,aAAa9C,IAAI,CAACY,wBAAwB,EAAE1B,QAAQ,CAAC,CAAC,CAAC,EAAE4D,MAAM,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}