1 line
4.0 KiB
JSON
1 line
4.0 KiB
JSON
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"error\", \"hasError\", \"errorInfo\"];\nimport * as React from 'react';\nimport { useGridApiContext } from '../hooks/utils/useGridApiContext';\nimport { GridOverlay } from './containers/GridOverlay';\nimport { useGridSelector } from '../hooks/utils/useGridSelector';\nimport { gridDensityRowHeightSelector } from '../hooks/features/density/densitySelector';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n// TODO v6: rename to GridErrorOverlay\nexport const ErrorOverlay = /*#__PURE__*/React.forwardRef(function ErrorOverlay(props, ref) {\n const {\n error\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const defaultLabel = apiRef.current.getLocaleText('errorOverlayDefaultLabel');\n const rowHeight = useGridSelector(apiRef, gridDensityRowHeightSelector);\n return /*#__PURE__*/_jsx(GridOverlay, _extends({\n ref: ref,\n sx: {\n width: '100%',\n minHeight: 2 * rowHeight\n }\n }, other, {\n children: (error == null ? void 0 : error.message) || defaultLabel\n }));\n});","map":{"version":3,"names":["_extends","_objectWithoutPropertiesLoose","_excluded","React","useGridApiContext","GridOverlay","useGridSelector","gridDensityRowHeightSelector","jsx","_jsx","ErrorOverlay","forwardRef","props","ref","error","other","apiRef","defaultLabel","current","getLocaleText","rowHeight","sx","width","minHeight","children","message"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/@mui/x-data-grid/components/ErrorOverlay.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"error\", \"hasError\", \"errorInfo\"];\nimport * as React from 'react';\nimport { useGridApiContext } from '../hooks/utils/useGridApiContext';\nimport { GridOverlay } from './containers/GridOverlay';\nimport { useGridSelector } from '../hooks/utils/useGridSelector';\nimport { gridDensityRowHeightSelector } from '../hooks/features/density/densitySelector';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n// TODO v6: rename to GridErrorOverlay\nexport const ErrorOverlay = /*#__PURE__*/React.forwardRef(function ErrorOverlay(props, ref) {\n const {\n error\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n const apiRef = useGridApiContext();\n const defaultLabel = apiRef.current.getLocaleText('errorOverlayDefaultLabel');\n const rowHeight = useGridSelector(apiRef, gridDensityRowHeightSelector);\n return /*#__PURE__*/_jsx(GridOverlay, _extends({\n ref: ref,\n sx: {\n width: '100%',\n minHeight: 2 * rowHeight\n }\n }, other, {\n children: (error == null ? void 0 : error.message) || defaultLabel\n }));\n});"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,6BAA6B,MAAM,yDAAyD;AACnG,MAAMC,SAAS,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC;AACpD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,iBAAiB,QAAQ,kCAAkC;AACpE,SAASC,WAAW,QAAQ,0BAA0B;AACtD,SAASC,eAAe,QAAQ,gCAAgC;AAChE,SAASC,4BAA4B,QAAQ,2CAA2C;AACxF,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C;AACA,OAAO,MAAMC,YAAY,GAAG,aAAaP,KAAK,CAACQ,UAAU,CAAC,SAASD,YAAYA,CAACE,KAAK,EAAEC,GAAG,EAAE;EAC1F,MAAM;MACJC;IACF,CAAC,GAAGF,KAAK;IACHG,KAAK,GAAGd,6BAA6B,CAACW,KAAK,EAAEV,SAAS,CAAC;EAE7D,MAAMc,MAAM,GAAGZ,iBAAiB,CAAC,CAAC;EAClC,MAAMa,YAAY,GAAGD,MAAM,CAACE,OAAO,CAACC,aAAa,CAAC,0BAA0B,CAAC;EAC7E,MAAMC,SAAS,GAAGd,eAAe,CAACU,MAAM,EAAET,4BAA4B,CAAC;EACvE,OAAO,aAAaE,IAAI,CAACJ,WAAW,EAAEL,QAAQ,CAAC;IAC7Ca,GAAG,EAAEA,GAAG;IACRQ,EAAE,EAAE;MACFC,KAAK,EAAE,MAAM;MACbC,SAAS,EAAE,CAAC,GAAGH;IACjB;EACF,CAAC,EAAEL,KAAK,EAAE;IACRS,QAAQ,EAAE,CAACV,KAAK,IAAI,IAAI,GAAG,KAAK,CAAC,GAAGA,KAAK,CAACW,OAAO,KAAKR;EACxD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |