@erpsquad/common 1.8.13 → 1.8.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/extends/index.esm.js +2 -4
- package/dist/_virtual/extends/index.esm.js.map +1 -1
- package/dist/_virtual/extends/index.js +1 -1
- package/dist/_virtual/index/index.esm.js +4 -2
- package/dist/_virtual/index/index.esm.js.map +1 -1
- package/dist/_virtual/index/index.esm2.js +2 -2
- package/dist/_virtual/index/index.esm3.js +2 -4
- package/dist/_virtual/index/index.esm3.js.map +1 -1
- package/dist/_virtual/index/index.js +1 -1
- package/dist/_virtual/index/index3.js +1 -1
- package/dist/components/icons/action-arrow/index.esm.js +59 -0
- package/dist/components/icons/action-arrow/index.esm.js.map +1 -0
- package/dist/components/icons/action-arrow/index.js +7 -0
- package/dist/components/icons/action-arrow/index.js.map +1 -0
- package/dist/components/icons/index.d.ts +19 -10
- package/dist/components/icons/process-calendar/index.esm.js +17 -0
- package/dist/components/icons/process-calendar/index.esm.js.map +1 -0
- package/dist/components/icons/process-calendar/index.js +5 -0
- package/dist/components/icons/process-calendar/index.js.map +1 -0
- package/dist/components/icons/refresh-icon/index.esm.js +17 -0
- package/dist/components/icons/refresh-icon/index.esm.js.map +1 -0
- package/dist/components/icons/refresh-icon/index.js +5 -0
- package/dist/components/icons/refresh-icon/index.js.map +1 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.esm.js +414 -403
- package/dist/components/index.esm.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +6 -6
- package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
- package/dist/components/reports-title-bar/reports-title-bar/index.js +8 -8
- package/dist/components/select/controller/chip-or-placeholder/index.esm.js +25 -0
- package/dist/components/select/controller/chip-or-placeholder/index.esm.js.map +1 -0
- package/dist/components/select/controller/chip-or-placeholder/index.js +2 -0
- package/dist/components/select/controller/chip-or-placeholder/index.js.map +1 -0
- package/dist/components/select/controller/controller-select/index.esm.js +165 -0
- package/dist/components/select/controller/controller-select/index.esm.js.map +1 -0
- package/dist/components/select/controller/controller-select/index.js +10 -0
- package/dist/components/select/controller/controller-select/index.js.map +1 -0
- package/dist/components/title-dropdown-button/title-dropdown-button/index.esm.js +1 -1
- package/dist/components/title-dropdown-button/title-dropdown-button/index.js +4 -4
- package/dist/icons/index.d.ts +19 -10
- package/dist/icons/index.esm.js +9 -3
- package/dist/icons/index.esm.js.map +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.esm.js +510 -499
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/extends/index.esm.js +23 -0
- package/dist/node_modules/@babel/runtime/helpers/extends/index.esm.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/extends/index.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/extends/index.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js.map +1 -1
- package/dist/node_modules/@mui/system/createStyled/index.esm.js +4 -4
- package/dist/node_modules/@mui/system/createStyled/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/createStyled/index.js +1 -1
- package/dist/node_modules/@mui/system/createStyled/index.js.map +1 -1
- package/dist/node_modules/prop-types/index/index.esm.js +1 -1
- package/dist/node_modules/prop-types/index/index.js +1 -1
- package/dist/node_modules/prop-types/index/index.js.map +1 -1
- package/dist/redux/actionCreator/index.esm.js +51 -4
- package/dist/redux/actionCreator/index.esm.js.map +1 -1
- package/dist/redux/actionCreator/index.js +1 -1
- package/dist/redux/actionCreator/index.js.map +1 -1
- package/dist/redux/actionCreator.d.ts +6 -4
- package/dist/redux/index.d.ts +1 -0
- package/dist/redux/index.esm.js +6 -0
- package/dist/redux/index.esm.js.map +1 -1
- package/dist/redux/index.js +1 -1
- package/dist/utils/api/index.esm.js +1 -1
- package/dist/views/form-builder/element-edit-forms/field-select/index.esm.js +1 -1
- package/dist/views/form-builder/element-edit-forms/field-select/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js"],"sourcesContent":["\"use strict\";\n'use client';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return _utils.createSvgIcon;\n }\n});\nvar _utils = require(\"@mui/material/utils\");"],"names":["Object","defineProperty","exports","value","enumerable","get","_utils","createSvgIcon","require$$0"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js"],"sourcesContent":["\"use strict\";\n'use client';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return _utils.createSvgIcon;\n }\n});\nvar _utils = require(\"@mui/material/utils\");"],"names":["Object","defineProperty","exports","value","enumerable","get","_utils","createSvgIcon","require$$0"],"mappings":"kPAGAA,OAAOC,eAAcC,EAAU,aAAc,CAC3CC,OAAO,IAETH,OAAOC,eAAeC,EAAS,UAAW,CACxCE,YAAY,EACZC,IAAK,WACH,OAAOC,EAAOC,aAClB,IAEA,IAAID,EAASE,EAAAA","x_google_ignoreList":[0]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exports as createStyled$1 } from "../../../../_virtual/createStyled/index.esm.js";
|
|
2
|
-
import
|
|
2
|
+
import { __require as require_extends } from "../../../@babel/runtime/helpers/extends/index.esm.js";
|
|
3
3
|
import { __require as requireObjectWithoutPropertiesLoose } from "../../../@babel/runtime/helpers/objectWithoutPropertiesLoose/index.esm.js";
|
|
4
|
-
import require$$1
|
|
4
|
+
import require$$1 from "../../../../_virtual/index/index.esm6.js";
|
|
5
5
|
import require$$4 from "../../../../_virtual/index/index.esm7.js";
|
|
6
6
|
import require$$5 from "../../../../_virtual/index/index.esm8.js";
|
|
7
7
|
import require$$6 from "../../../../_virtual/index/index.esm9.js";
|
|
@@ -16,9 +16,9 @@ Object.defineProperty(createStyled$1, "__esModule", {
|
|
|
16
16
|
var _default = createStyled$1.default = createStyled;
|
|
17
17
|
createStyled$1.shouldForwardProp = shouldForwardProp;
|
|
18
18
|
createStyled$1.systemDefaultTheme = void 0;
|
|
19
|
-
var _extends2 = _interopRequireDefault(
|
|
19
|
+
var _extends2 = _interopRequireDefault(require_extends());
|
|
20
20
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(requireObjectWithoutPropertiesLoose());
|
|
21
|
-
var _styledEngine = _interopRequireWildcard(require$$1
|
|
21
|
+
var _styledEngine = _interopRequireWildcard(require$$1);
|
|
22
22
|
var _deepmerge = require$$4;
|
|
23
23
|
var _capitalize = _interopRequireDefault(require$$5);
|
|
24
24
|
var _getDisplayName = _interopRequireDefault(require$$6);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../../../node_modules/@mui/system/createStyled.js"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createStyled;\nexports.shouldForwardProp = shouldForwardProp;\nexports.systemDefaultTheme = void 0;\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\nvar _styledEngine = _interopRequireWildcard(require(\"@mui/styled-engine\"));\nvar _deepmerge = require(\"@mui/utils/deepmerge\");\nvar _capitalize = _interopRequireDefault(require(\"@mui/utils/capitalize\"));\nvar _getDisplayName = _interopRequireDefault(require(\"@mui/utils/getDisplayName\"));\nvar _createTheme = _interopRequireDefault(require(\"./createTheme\"));\nvar _styleFunctionSx = _interopRequireDefault(require(\"./styleFunctionSx\"));\nconst _excluded = [\"ownerState\"],\n _excluded2 = [\"variants\"],\n _excluded3 = [\"name\", \"slot\", \"skipVariantsResolver\", \"skipSx\", \"overridesResolver\"];\n/* eslint-disable no-underscore-dangle */\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != typeof e && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction isEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\n\n// Update /system/styled/#api in case if this changes\nfunction shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nfunction shallowLayer(serialized, layerName) {\n if (layerName && serialized && typeof serialized === 'object' && serialized.styles && !serialized.styles.startsWith('@layer') // only add the layer if it is not already there.\n ) {\n serialized.styles = `@layer ${layerName}{${String(serialized.styles)}}`;\n }\n return serialized;\n}\nconst systemDefaultTheme = exports.systemDefaultTheme = (0, _createTheme.default)();\nconst lowercaseFirstLetter = string => {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n};\nfunction resolveTheme({\n defaultTheme,\n theme,\n themeId\n}) {\n return isEmpty(theme) ? defaultTheme : theme[themeId] || theme;\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (props, styles) => styles[slot];\n}\nfunction processStyleArg(callableStyle, _ref, layerName) {\n let {\n ownerState\n } = _ref,\n props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);\n const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle((0, _extends2.default)({\n ownerState\n }, props)) : callableStyle;\n if (Array.isArray(resolvedStylesArg)) {\n return resolvedStylesArg.flatMap(resolvedStyle => processStyleArg(resolvedStyle, (0, _extends2.default)({\n ownerState\n }, props), layerName));\n }\n if (!!resolvedStylesArg && typeof resolvedStylesArg === 'object' && Array.isArray(resolvedStylesArg.variants)) {\n const {\n variants = []\n } = resolvedStylesArg,\n otherStyles = (0, _objectWithoutPropertiesLoose2.default)(resolvedStylesArg, _excluded2);\n let result = otherStyles;\n variants.forEach(variant => {\n let isMatch = true;\n if (typeof variant.props === 'function') {\n isMatch = variant.props((0, _extends2.default)({\n ownerState\n }, props, ownerState));\n } else {\n Object.keys(variant.props).forEach(key => {\n if ((ownerState == null ? void 0 : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {\n isMatch = false;\n }\n });\n }\n if (isMatch) {\n if (!Array.isArray(result)) {\n result = [result];\n }\n const variantStyle = typeof variant.style === 'function' ? variant.style((0, _extends2.default)({\n ownerState\n }, props, ownerState)) : variant.style;\n result.push(layerName ? shallowLayer((0, _styledEngine.internal_serializeStyles)(variantStyle), layerName) : variantStyle);\n }\n });\n return result;\n }\n return layerName ? shallowLayer((0, _styledEngine.internal_serializeStyles)(resolvedStylesArg), layerName) : resolvedStylesArg;\n}\nfunction createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n const systemSx = props => {\n return (0, _styleFunctionSx.default)((0, _extends2.default)({}, props, {\n theme: resolveTheme((0, _extends2.default)({}, props, {\n defaultTheme,\n themeId\n }))\n }));\n };\n systemSx.__mui_systemSx = true;\n return (tag, inputOptions = {}) => {\n // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.\n (0, _styledEngine.internal_processStyles)(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))\n } = inputOptions,\n options = (0, _objectWithoutPropertiesLoose2.default)(inputOptions, _excluded3);\n const layerName = componentName && componentName.startsWith('Mui') || !!componentSlot ? 'components' : 'custom';\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = (0, _styledEngine.default)(tag, (0, _extends2.default)({\n shouldForwardProp: shouldForwardPropOption,\n label\n }, options));\n const transformStyleArg = stylesArg => {\n // On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n if (typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg || (0, _deepmerge.isPlainObject)(stylesArg)) {\n return props => {\n const theme = resolveTheme({\n theme: props.theme,\n defaultTheme,\n themeId\n });\n return processStyleArg(stylesArg, (0, _extends2.default)({}, props, {\n theme\n }), theme.modularCssLayers ? layerName : undefined);\n };\n }\n return stylesArg;\n };\n const muiStyledResolver = (styleArg, ...expressions) => {\n let transformedStyleArg = transformStyleArg(styleArg);\n const expressionsWithDefaultTheme = expressions ? expressions.map(transformStyleArg) : [];\n if (componentName && overridesResolver) {\n expressionsWithDefaultTheme.push(props => {\n const theme = resolveTheme((0, _extends2.default)({}, props, {\n defaultTheme,\n themeId\n }));\n if (!theme.components || !theme.components[componentName] || !theme.components[componentName].styleOverrides) {\n return null;\n }\n const styleOverrides = theme.components[componentName].styleOverrides;\n const resolvedStyleOverrides = {};\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {\n resolvedStyleOverrides[slotKey] = processStyleArg(slotStyle, (0, _extends2.default)({}, props, {\n theme\n }), theme.modularCssLayers ? 'theme' : undefined);\n });\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsWithDefaultTheme.push(props => {\n var _theme$components;\n const theme = resolveTheme((0, _extends2.default)({}, props, {\n defaultTheme,\n themeId\n }));\n const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? void 0 : _theme$components.variants;\n return processStyleArg({\n variants: themeVariants\n }, (0, _extends2.default)({}, props, {\n theme\n }), theme.modularCssLayers ? 'theme' : undefined);\n });\n }\n if (!skipSx) {\n expressionsWithDefaultTheme.push(systemSx);\n }\n const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;\n if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) {\n const placeholders = new Array(numOfCustomFnsApplied).fill('');\n // If the type is array, than we need to add placeholders in the template for the overrides, variants and the sx styles.\n transformedStyleArg = [...styleArg, ...placeholders];\n transformedStyleArg.raw = [...styleArg.raw, ...placeholders];\n }\n const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n let displayName;\n if (componentName) {\n displayName = `${componentName}${(0, _capitalize.default)(componentSlot || '')}`;\n }\n if (displayName === undefined) {\n displayName = `Styled(${(0, _getDisplayName.default)(tag)})`;\n }\n Component.displayName = displayName;\n }\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n}"],"names":["require$$0","createStyled_1","require$$2","require$$3","e"],"mappings":";;;;;;;;;;;AAEA,IAAI,yBAAyBA;AAC7B,OAAO,eAAeC,gBAAS,cAAc;AAAA,EAC3C,OAAO;AACT,CAAC;AACD,IAAA,WAAAA,eAAA,UAAkB;AAClBA,eAAA,oBAA4B;AAC5BA,eAAA,qBAA6B;AAC7B,IAAI,YAAY,uBAAuB,UAAyC;AAChF,IAAI,iCAAiC,uBAAuBC,qCAA8D;AAC1H,IAAI,gBAAgB,wBAAwBC,YAA6B;AACzE,IAAI,aAAa;AACjB,IAAI,cAAc,uBAAuB,UAAgC;AACzE,IAAI,k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":[0]}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../../node_modules/@mui/system/createStyled.js"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createStyled;\nexports.shouldForwardProp = shouldForwardProp;\nexports.systemDefaultTheme = void 0;\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\nvar _styledEngine = _interopRequireWildcard(require(\"@mui/styled-engine\"));\nvar _deepmerge = require(\"@mui/utils/deepmerge\");\nvar _capitalize = _interopRequireDefault(require(\"@mui/utils/capitalize\"));\nvar _getDisplayName = _interopRequireDefault(require(\"@mui/utils/getDisplayName\"));\nvar _createTheme = _interopRequireDefault(require(\"./createTheme\"));\nvar _styleFunctionSx = _interopRequireDefault(require(\"./styleFunctionSx\"));\nconst _excluded = [\"ownerState\"],\n _excluded2 = [\"variants\"],\n _excluded3 = [\"name\", \"slot\", \"skipVariantsResolver\", \"skipSx\", \"overridesResolver\"];\n/* eslint-disable no-underscore-dangle */\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != typeof e && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction isEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\n\n// Update /system/styled/#api in case if this changes\nfunction shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nfunction shallowLayer(serialized, layerName) {\n if (layerName && serialized && typeof serialized === 'object' && serialized.styles && !serialized.styles.startsWith('@layer') // only add the layer if it is not already there.\n ) {\n serialized.styles = `@layer ${layerName}{${String(serialized.styles)}}`;\n }\n return serialized;\n}\nconst systemDefaultTheme = exports.systemDefaultTheme = (0, _createTheme.default)();\nconst lowercaseFirstLetter = string => {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n};\nfunction resolveTheme({\n defaultTheme,\n theme,\n themeId\n}) {\n return isEmpty(theme) ? defaultTheme : theme[themeId] || theme;\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (props, styles) => styles[slot];\n}\nfunction processStyleArg(callableStyle, _ref, layerName) {\n let {\n ownerState\n } = _ref,\n props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);\n const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle((0, _extends2.default)({\n ownerState\n }, props)) : callableStyle;\n if (Array.isArray(resolvedStylesArg)) {\n return resolvedStylesArg.flatMap(resolvedStyle => processStyleArg(resolvedStyle, (0, _extends2.default)({\n ownerState\n }, props), layerName));\n }\n if (!!resolvedStylesArg && typeof resolvedStylesArg === 'object' && Array.isArray(resolvedStylesArg.variants)) {\n const {\n variants = []\n } = resolvedStylesArg,\n otherStyles = (0, _objectWithoutPropertiesLoose2.default)(resolvedStylesArg, _excluded2);\n let result = otherStyles;\n variants.forEach(variant => {\n let isMatch = true;\n if (typeof variant.props === 'function') {\n isMatch = variant.props((0, _extends2.default)({\n ownerState\n }, props, ownerState));\n } else {\n Object.keys(variant.props).forEach(key => {\n if ((ownerState == null ? void 0 : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {\n isMatch = false;\n }\n });\n }\n if (isMatch) {\n if (!Array.isArray(result)) {\n result = [result];\n }\n const variantStyle = typeof variant.style === 'function' ? variant.style((0, _extends2.default)({\n ownerState\n }, props, ownerState)) : variant.style;\n result.push(layerName ? shallowLayer((0, _styledEngine.internal_serializeStyles)(variantStyle), layerName) : variantStyle);\n }\n });\n return result;\n }\n return layerName ? shallowLayer((0, _styledEngine.internal_serializeStyles)(resolvedStylesArg), layerName) : resolvedStylesArg;\n}\nfunction createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n const systemSx = props => {\n return (0, _styleFunctionSx.default)((0, _extends2.default)({}, props, {\n theme: resolveTheme((0, _extends2.default)({}, props, {\n defaultTheme,\n themeId\n }))\n }));\n };\n systemSx.__mui_systemSx = true;\n return (tag, inputOptions = {}) => {\n // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.\n (0, _styledEngine.internal_processStyles)(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))\n } = inputOptions,\n options = (0, _objectWithoutPropertiesLoose2.default)(inputOptions, _excluded3);\n const layerName = componentName && componentName.startsWith('Mui') || !!componentSlot ? 'components' : 'custom';\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = (0, _styledEngine.default)(tag, (0, _extends2.default)({\n shouldForwardProp: shouldForwardPropOption,\n label\n }, options));\n const transformStyleArg = stylesArg => {\n // On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n if (typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg || (0, _deepmerge.isPlainObject)(stylesArg)) {\n return props => {\n const theme = resolveTheme({\n theme: props.theme,\n defaultTheme,\n themeId\n });\n return processStyleArg(stylesArg, (0, _extends2.default)({}, props, {\n theme\n }), theme.modularCssLayers ? layerName : undefined);\n };\n }\n return stylesArg;\n };\n const muiStyledResolver = (styleArg, ...expressions) => {\n let transformedStyleArg = transformStyleArg(styleArg);\n const expressionsWithDefaultTheme = expressions ? expressions.map(transformStyleArg) : [];\n if (componentName && overridesResolver) {\n expressionsWithDefaultTheme.push(props => {\n const theme = resolveTheme((0, _extends2.default)({}, props, {\n defaultTheme,\n themeId\n }));\n if (!theme.components || !theme.components[componentName] || !theme.components[componentName].styleOverrides) {\n return null;\n }\n const styleOverrides = theme.components[componentName].styleOverrides;\n const resolvedStyleOverrides = {};\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {\n resolvedStyleOverrides[slotKey] = processStyleArg(slotStyle, (0, _extends2.default)({}, props, {\n theme\n }), theme.modularCssLayers ? 'theme' : undefined);\n });\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsWithDefaultTheme.push(props => {\n var _theme$components;\n const theme = resolveTheme((0, _extends2.default)({}, props, {\n defaultTheme,\n themeId\n }));\n const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? void 0 : _theme$components.variants;\n return processStyleArg({\n variants: themeVariants\n }, (0, _extends2.default)({}, props, {\n theme\n }), theme.modularCssLayers ? 'theme' : undefined);\n });\n }\n if (!skipSx) {\n expressionsWithDefaultTheme.push(systemSx);\n }\n const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;\n if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) {\n const placeholders = new Array(numOfCustomFnsApplied).fill('');\n // If the type is array, than we need to add placeholders in the template for the overrides, variants and the sx styles.\n transformedStyleArg = [...styleArg, ...placeholders];\n transformedStyleArg.raw = [...styleArg.raw, ...placeholders];\n }\n const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n let displayName;\n if (componentName) {\n displayName = `${componentName}${(0, _capitalize.default)(componentSlot || '')}`;\n }\n if (displayName === undefined) {\n displayName = `Styled(${(0, _getDisplayName.default)(tag)})`;\n }\n Component.displayName = displayName;\n }\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n}"],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ACjB,wBAAc,GAAG,aAAa,IAAA,GAAO,YAAY,SAAS,iBAAiB,EAAE,CAAC;AAAA,QAAA;AAEhF,YAAI,gBAAgB,QAAW;AAC7B,wBAAc,WAAA,GAAc,gBAAgB,SAAS,GAAG,CAAC;AAAA,QAAA;AAE3D,kBAAU,cAAc;AAAA,MAAA;AAE1B,UAAI,IAAI,SAAS;AACf,kBAAU,UAAU,IAAI;AAAA,MAAA;AAE1B,aAAO;AAAA,IAAA;AAET,QAAI,sBAAsB,YAAY;AACpC,wBAAkB,aAAa,sBAAsB;AAAA,IAAA;AAEvD,WAAO;AAAA,EAAA;AAEX;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/createStyled/index.js"),t=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/createStyled/index.js"),t=require("../../../@babel/runtime/helpers/extends/index.js"),r=require("../../../@babel/runtime/helpers/objectWithoutPropertiesLoose/index.js"),o=require("../../../../_virtual/index/index6.js"),n=require("../../../../_virtual/index/index7.js"),s=require("../../../../_virtual/index/index8.js"),a=require("../../../../_virtual/index/index9.js"),i=require("../../../../_virtual/index/index10.js"),u=require("../../../../_virtual/index/index11.js"),l=require("../../../@babel/runtime/helpers/interopRequireDefault/index.js"),d={},f=l.interopRequireDefaultExports;Object.defineProperty(e.__exports,"__esModule",{value:!0});var p=e.__exports.default=function(e={}){const{themeId:t,defaultTheme:r=g,rootShouldForwardProp:o=q,slotShouldForwardProp:n=q}=e,s=e=>(0,j.default)((0,c.default)({},e,{theme:k((0,c.default)({},e,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(e,a={})=>{(0,y.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:i,slot:u,skipVariantsResolver:l,skipSx:f,overridesResolver:p=R(A(u))}=a,x=(0,m.default)(a,S),j=i&&i.startsWith("Mui")||u?"components":"custom",w=void 0!==l?l:u&&"Root"!==u&&"root"!==u||!1,b=f||!1;let O;"production"!==d.NODE_ENV&&i&&(O=`${i}-${A(u||"Root")}`);let P=q;"Root"===u||"root"===u?P=o:u?P=n:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(P=void 0);const g=(0,y.default)(e,(0,c.default)({shouldForwardProp:P,label:O},x)),D=e=>"function"==typeof e&&e.__emotion_real!==e||(0,h.isPlainObject)(e)?o=>{const n=k({theme:o.theme,defaultTheme:r,themeId:t});return C(e,(0,c.default)({},o,{theme:n}),n.modularCssLayers?j:void 0)}:e,E=(o,...n)=>{let a=D(o);const l=n?n.map(D):[];i&&p&&l.push(e=>{const o=k((0,c.default)({},e,{defaultTheme:r,themeId:t}));if(!o.components||!o.components[i]||!o.components[i].styleOverrides)return null;const n=o.components[i].styleOverrides,s={};return Object.entries(n).forEach(([t,r])=>{s[t]=C(r,(0,c.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),p(e,s)}),i&&!w&&l.push(e=>{var o;const n=k((0,c.default)({},e,{defaultTheme:r,themeId:t}));return C({variants:null==n||null==(o=n.components)||null==(o=o[i])?void 0:o.variants},(0,c.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),b||l.push(s);const f=l.length-n.length;if(Array.isArray(o)&&f>0){const e=new Array(f).fill("");a=[...o,...e],a.raw=[...o.raw,...e]}const m=g(a,...l);if("production"!==d.NODE_ENV){let t;i&&(t=`${i}${(0,_.default)(u||"")}`),void 0===t&&(t=`Styled(${(0,v.default)(e)})`),m.displayName=t}return e.muiName&&(m.muiName=e.muiName),m};return g.withConfig&&(E.withConfig=g.withConfig),E}};e.__exports.shouldForwardProp=q,e.__exports.systemDefaultTheme=void 0;var c=f(t.__require()),m=f(r.__require()),y=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=O(void 0);if(t&&t.has(e))return t.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var s=o?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}(o.default),h=n.default,_=f(s.default),v=f(a.default),x=f(i.default),j=f(u.default);const w=["ownerState"],b=["variants"],S=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function O(e){if("function"!=typeof WeakMap)return null;var t=/* @__PURE__ */new WeakMap,r=/* @__PURE__ */new WeakMap;return(O=function(e){return e?r:t})(e)}function q(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function P(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const g=e.__exports.systemDefaultTheme=(0,x.default)(),A=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function k({defaultTheme:e,theme:t,themeId:r}){return o=t,0===Object.keys(o).length?e:t[r]||t;var o}function R(e){return e?(t,r)=>r[e]:null}function C(e,t,r){let{ownerState:o}=t,n=(0,m.default)(t,w);const s="function"==typeof e?e((0,c.default)({ownerState:o},n)):e;if(Array.isArray(s))return s.flatMap(e=>C(e,(0,c.default)({ownerState:o},n),r));if(s&&"object"==typeof s&&Array.isArray(s.variants)){const{variants:e=[]}=s;let t=(0,m.default)(s,b);return e.forEach(e=>{let s=!0;if("function"==typeof e.props?s=e.props((0,c.default)({ownerState:o},n,o)):Object.keys(e.props).forEach(t=>{(null==o?void 0:o[t])!==e.props[t]&&n[t]!==e.props[t]&&(s=!1)}),s){Array.isArray(t)||(t=[t]);const s="function"==typeof e.style?e.style((0,c.default)({ownerState:o},n,o)):e.style;t.push(r?P((0,y.internal_serializeStyles)(s),r):s)}}),t}return r?P((0,y.internal_serializeStyles)(s),r):s}exports.default=p;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/@mui/system/createStyled.js"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createStyled;\nexports.shouldForwardProp = shouldForwardProp;\nexports.systemDefaultTheme = void 0;\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\nvar _styledEngine = _interopRequireWildcard(require(\"@mui/styled-engine\"));\nvar _deepmerge = require(\"@mui/utils/deepmerge\");\nvar _capitalize = _interopRequireDefault(require(\"@mui/utils/capitalize\"));\nvar _getDisplayName = _interopRequireDefault(require(\"@mui/utils/getDisplayName\"));\nvar _createTheme = _interopRequireDefault(require(\"./createTheme\"));\nvar _styleFunctionSx = _interopRequireDefault(require(\"./styleFunctionSx\"));\nconst _excluded = [\"ownerState\"],\n _excluded2 = [\"variants\"],\n _excluded3 = [\"name\", \"slot\", \"skipVariantsResolver\", \"skipSx\", \"overridesResolver\"];\n/* eslint-disable no-underscore-dangle */\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != typeof e && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction isEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\n\n// Update /system/styled/#api in case if this changes\nfunction shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nfunction shallowLayer(serialized, layerName) {\n if (layerName && serialized && typeof serialized === 'object' && serialized.styles && !serialized.styles.startsWith('@layer') // only add the layer if it is not already there.\n ) {\n serialized.styles = `@layer ${layerName}{${String(serialized.styles)}}`;\n }\n return serialized;\n}\nconst systemDefaultTheme = exports.systemDefaultTheme = (0, _createTheme.default)();\nconst lowercaseFirstLetter = string => {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n};\nfunction resolveTheme({\n defaultTheme,\n theme,\n themeId\n}) {\n return isEmpty(theme) ? defaultTheme : theme[themeId] || theme;\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (props, styles) => styles[slot];\n}\nfunction processStyleArg(callableStyle, _ref, layerName) {\n let {\n ownerState\n } = _ref,\n props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);\n const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle((0, _extends2.default)({\n ownerState\n }, props)) : callableStyle;\n if (Array.isArray(resolvedStylesArg)) {\n return resolvedStylesArg.flatMap(resolvedStyle => processStyleArg(resolvedStyle, (0, _extends2.default)({\n ownerState\n }, props), layerName));\n }\n if (!!resolvedStylesArg && typeof resolvedStylesArg === 'object' && Array.isArray(resolvedStylesArg.variants)) {\n const {\n variants = []\n } = resolvedStylesArg,\n otherStyles = (0, _objectWithoutPropertiesLoose2.default)(resolvedStylesArg, _excluded2);\n let result = otherStyles;\n variants.forEach(variant => {\n let isMatch = true;\n if (typeof variant.props === 'function') {\n isMatch = variant.props((0, _extends2.default)({\n ownerState\n }, props, ownerState));\n } else {\n Object.keys(variant.props).forEach(key => {\n if ((ownerState == null ? void 0 : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {\n isMatch = false;\n }\n });\n }\n if (isMatch) {\n if (!Array.isArray(result)) {\n result = [result];\n }\n const variantStyle = typeof variant.style === 'function' ? variant.style((0, _extends2.default)({\n ownerState\n }, props, ownerState)) : variant.style;\n result.push(layerName ? shallowLayer((0, _styledEngine.internal_serializeStyles)(variantStyle), layerName) : variantStyle);\n }\n });\n return result;\n }\n return layerName ? shallowLayer((0, _styledEngine.internal_serializeStyles)(resolvedStylesArg), layerName) : resolvedStylesArg;\n}\nfunction createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n const systemSx = props => {\n return (0, _styleFunctionSx.default)((0, _extends2.default)({}, props, {\n theme: resolveTheme((0, _extends2.default)({}, props, {\n defaultTheme,\n themeId\n }))\n }));\n };\n systemSx.__mui_systemSx = true;\n return (tag, inputOptions = {}) => {\n // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.\n (0, _styledEngine.internal_processStyles)(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))\n } = inputOptions,\n options = (0, _objectWithoutPropertiesLoose2.default)(inputOptions, _excluded3);\n const layerName = componentName && componentName.startsWith('Mui') || !!componentSlot ? 'components' : 'custom';\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = (0, _styledEngine.default)(tag, (0, _extends2.default)({\n shouldForwardProp: shouldForwardPropOption,\n label\n }, options));\n const transformStyleArg = stylesArg => {\n // On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n if (typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg || (0, _deepmerge.isPlainObject)(stylesArg)) {\n return props => {\n const theme = resolveTheme({\n theme: props.theme,\n defaultTheme,\n themeId\n });\n return processStyleArg(stylesArg, (0, _extends2.default)({}, props, {\n theme\n }), theme.modularCssLayers ? layerName : undefined);\n };\n }\n return stylesArg;\n };\n const muiStyledResolver = (styleArg, ...expressions) => {\n let transformedStyleArg = transformStyleArg(styleArg);\n const expressionsWithDefaultTheme = expressions ? expressions.map(transformStyleArg) : [];\n if (componentName && overridesResolver) {\n expressionsWithDefaultTheme.push(props => {\n const theme = resolveTheme((0, _extends2.default)({}, props, {\n defaultTheme,\n themeId\n }));\n if (!theme.components || !theme.components[componentName] || !theme.components[componentName].styleOverrides) {\n return null;\n }\n const styleOverrides = theme.components[componentName].styleOverrides;\n const resolvedStyleOverrides = {};\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {\n resolvedStyleOverrides[slotKey] = processStyleArg(slotStyle, (0, _extends2.default)({}, props, {\n theme\n }), theme.modularCssLayers ? 'theme' : undefined);\n });\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsWithDefaultTheme.push(props => {\n var _theme$components;\n const theme = resolveTheme((0, _extends2.default)({}, props, {\n defaultTheme,\n themeId\n }));\n const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? void 0 : _theme$components.variants;\n return processStyleArg({\n variants: themeVariants\n }, (0, _extends2.default)({}, props, {\n theme\n }), theme.modularCssLayers ? 'theme' : undefined);\n });\n }\n if (!skipSx) {\n expressionsWithDefaultTheme.push(systemSx);\n }\n const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;\n if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) {\n const placeholders = new Array(numOfCustomFnsApplied).fill('');\n // If the type is array, than we need to add placeholders in the template for the overrides, variants and the sx styles.\n transformedStyleArg = [...styleArg, ...placeholders];\n transformedStyleArg.raw = [...styleArg.raw, ...placeholders];\n }\n const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n let displayName;\n if (componentName) {\n displayName = `${componentName}${(0, _capitalize.default)(componentSlot || '')}`;\n }\n if (displayName === undefined) {\n displayName = `Styled(${(0, _getDisplayName.default)(tag)})`;\n }\n Component.displayName = displayName;\n }\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n}"],"names":["_interopRequireDefault","require$$0","Object","defineProperty","createStyled_1","value","_default","default","input","themeId","defaultTheme","systemDefaultTheme","rootShouldForwardProp","shouldForwardProp","slotShouldForwardProp","systemSx","props","_styleFunctionSx","_extends2","theme","resolveTheme","__mui_systemSx","tag","inputOptions","_styledEngine","internal_processStyles","styles","filter","style","name","componentName","slot","componentSlot","skipVariantsResolver","inputSkipVariantsResolver","skipSx","inputSkipSx","overridesResolver","defaultOverridesResolver","lowercaseFirstLetter","options","_objectWithoutPropertiesLoose2","_excluded3","layerName","startsWith","label","define_process_env_default","NODE_ENV","shouldForwardPropOption","charCodeAt","isStringTag","defaultStyledResolver","transformStyleArg","stylesArg","__emotion_real","_deepmerge","isPlainObject","processStyleArg","modularCssLayers","muiStyledResolver","styleArg","expressions","transformedStyleArg","expressionsWithDefaultTheme","map","push","components","styleOverrides","resolvedStyleOverrides","entries","forEach","slotKey","slotStyle","_theme$components","variants","numOfCustomFnsApplied","length","Array","isArray","placeholders","fill","raw","Component","displayName","_capitalize","_getDisplayName","muiName","withConfig","require$$1","require$$2","e","__esModule","t","_getRequireWildcardCache","_interopRequireWildcard","has","get","n","__proto__","a","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","require$$3","require$$4","require$$5","require$$6","_createTheme","require$$7","require$$8","_excluded","_excluded2","WeakMap","r","prop","shallowLayer","serialized","String","string","charAt","toLowerCase","slice","obj","keys","callableStyle","_ref","ownerState","resolvedStylesArg","flatMap","resolvedStyle","result","variant","isMatch","key","variantStyle","internal_serializeStyles"],"mappings":"qoBAEIA,EAAyBC,EAAAA,6BAC7BC,OAAOC,eAAeC,EAAAA,UAAS,aAAc,CAC3CC,OAAO,IAET,IAAAC,EAAAF,EAAAA,UAAAG,QA2GA,SAAsBC,EAAQ,IAC5B,MAAMC,QACJA,EAAAC,aACAA,EAAeC,EAAAC,sBACfA,EAAwBC,EAAAC,sBACxBA,EAAwBD,GACtBL,EACEO,EAAWC,IACf,EAAWC,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,EACb,GAAInD,MAAMC,QAAQqD,GAChB,OAAOA,EAAkBC,QAAQC,GAAiB5E,EAAgB4E,GAAA,EAAmBnH,EAAUX,SAAS,CACtG2H,cACClH,GAAQ2B,IAEb,GAAMwF,GAAkD,iBAAtBA,GAAkCtD,MAAMC,QAAQqD,EAAkBzD,UAAW,CAC7G,MAAMA,SACFA,EAAW,IACTyD,EAEN,IAAIG,GADF,EAAkB7F,EAA+BlC,SAAS4H,EAAmBhB,GAyB/E,OAvBAzC,EAASJ,QAAQiE,IACf,IAAIC,GAAU,EAYd,GAX6B,mBAAlBD,EAAQvH,MACjBwH,EAAUD,EAAQvH,OAAA,EAAUE,EAAUX,SAAS,CAC7C2H,cACClH,EAAOkH,IAEVhI,OAAO6H,KAAKQ,EAAQvH,OAAOsD,QAAQmE,KACd,MAAdP,OAAqB,EAASA,EAAWO,MAAUF,EAAQvH,MAAMyH,IAAQzH,EAAMyH,KAASF,EAAQvH,MAAMyH,KACzGD,GAAU,KAIZA,EAAS,CACN3D,MAAMC,QAAQwD,KACjBA,EAAS,CAACA,IAEZ,MAAMI,EAAwC,mBAAlBH,EAAQ3G,MAAuB2G,EAAQ3G,OAAA,EAAUV,EAAUX,SAAS,CAC9F2H,cACClH,EAAOkH,IAAeK,EAAQ3G,MACjC0G,EAAOrE,KAAKtB,EAAY4E,GAAA,EAAiB/F,EAAcmH,0BAA0BD,GAAe/F,GAAa+F,EAAY,IAGtHJ,CAAA,CAET,OAAO3F,EAAY4E,KAAiB/F,EAAcmH,0BAA0BR,GAAoBxF,GAAawF,CAC/G","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/@mui/system/createStyled.js"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createStyled;\nexports.shouldForwardProp = shouldForwardProp;\nexports.systemDefaultTheme = void 0;\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\nvar _styledEngine = _interopRequireWildcard(require(\"@mui/styled-engine\"));\nvar _deepmerge = require(\"@mui/utils/deepmerge\");\nvar _capitalize = _interopRequireDefault(require(\"@mui/utils/capitalize\"));\nvar _getDisplayName = _interopRequireDefault(require(\"@mui/utils/getDisplayName\"));\nvar _createTheme = _interopRequireDefault(require(\"./createTheme\"));\nvar _styleFunctionSx = _interopRequireDefault(require(\"./styleFunctionSx\"));\nconst _excluded = [\"ownerState\"],\n _excluded2 = [\"variants\"],\n _excluded3 = [\"name\", \"slot\", \"skipVariantsResolver\", \"skipSx\", \"overridesResolver\"];\n/* eslint-disable no-underscore-dangle */\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != typeof e && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction isEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\n\n// Update /system/styled/#api in case if this changes\nfunction shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nfunction shallowLayer(serialized, layerName) {\n if (layerName && serialized && typeof serialized === 'object' && serialized.styles && !serialized.styles.startsWith('@layer') // only add the layer if it is not already there.\n ) {\n serialized.styles = `@layer ${layerName}{${String(serialized.styles)}}`;\n }\n return serialized;\n}\nconst systemDefaultTheme = exports.systemDefaultTheme = (0, _createTheme.default)();\nconst lowercaseFirstLetter = string => {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n};\nfunction resolveTheme({\n defaultTheme,\n theme,\n themeId\n}) {\n return isEmpty(theme) ? defaultTheme : theme[themeId] || theme;\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (props, styles) => styles[slot];\n}\nfunction processStyleArg(callableStyle, _ref, layerName) {\n let {\n ownerState\n } = _ref,\n props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);\n const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle((0, _extends2.default)({\n ownerState\n }, props)) : callableStyle;\n if (Array.isArray(resolvedStylesArg)) {\n return resolvedStylesArg.flatMap(resolvedStyle => processStyleArg(resolvedStyle, (0, _extends2.default)({\n ownerState\n }, props), layerName));\n }\n if (!!resolvedStylesArg && typeof resolvedStylesArg === 'object' && Array.isArray(resolvedStylesArg.variants)) {\n const {\n variants = []\n } = resolvedStylesArg,\n otherStyles = (0, _objectWithoutPropertiesLoose2.default)(resolvedStylesArg, _excluded2);\n let result = otherStyles;\n variants.forEach(variant => {\n let isMatch = true;\n if (typeof variant.props === 'function') {\n isMatch = variant.props((0, _extends2.default)({\n ownerState\n }, props, ownerState));\n } else {\n Object.keys(variant.props).forEach(key => {\n if ((ownerState == null ? void 0 : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {\n isMatch = false;\n }\n });\n }\n if (isMatch) {\n if (!Array.isArray(result)) {\n result = [result];\n }\n const variantStyle = typeof variant.style === 'function' ? variant.style((0, _extends2.default)({\n ownerState\n }, props, ownerState)) : variant.style;\n result.push(layerName ? shallowLayer((0, _styledEngine.internal_serializeStyles)(variantStyle), layerName) : variantStyle);\n }\n });\n return result;\n }\n return layerName ? shallowLayer((0, _styledEngine.internal_serializeStyles)(resolvedStylesArg), layerName) : resolvedStylesArg;\n}\nfunction createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n const systemSx = props => {\n return (0, _styleFunctionSx.default)((0, _extends2.default)({}, props, {\n theme: resolveTheme((0, _extends2.default)({}, props, {\n defaultTheme,\n themeId\n }))\n }));\n };\n systemSx.__mui_systemSx = true;\n return (tag, inputOptions = {}) => {\n // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.\n (0, _styledEngine.internal_processStyles)(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))\n } = inputOptions,\n options = (0, _objectWithoutPropertiesLoose2.default)(inputOptions, _excluded3);\n const layerName = componentName && componentName.startsWith('Mui') || !!componentSlot ? 'components' : 'custom';\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = (0, _styledEngine.default)(tag, (0, _extends2.default)({\n shouldForwardProp: shouldForwardPropOption,\n label\n }, options));\n const transformStyleArg = stylesArg => {\n // On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n if (typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg || (0, _deepmerge.isPlainObject)(stylesArg)) {\n return props => {\n const theme = resolveTheme({\n theme: props.theme,\n defaultTheme,\n themeId\n });\n return processStyleArg(stylesArg, (0, _extends2.default)({}, props, {\n theme\n }), theme.modularCssLayers ? layerName : undefined);\n };\n }\n return stylesArg;\n };\n const muiStyledResolver = (styleArg, ...expressions) => {\n let transformedStyleArg = transformStyleArg(styleArg);\n const expressionsWithDefaultTheme = expressions ? expressions.map(transformStyleArg) : [];\n if (componentName && overridesResolver) {\n expressionsWithDefaultTheme.push(props => {\n const theme = resolveTheme((0, _extends2.default)({}, props, {\n defaultTheme,\n themeId\n }));\n if (!theme.components || !theme.components[componentName] || !theme.components[componentName].styleOverrides) {\n return null;\n }\n const styleOverrides = theme.components[componentName].styleOverrides;\n const resolvedStyleOverrides = {};\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {\n resolvedStyleOverrides[slotKey] = processStyleArg(slotStyle, (0, _extends2.default)({}, props, {\n theme\n }), theme.modularCssLayers ? 'theme' : undefined);\n });\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsWithDefaultTheme.push(props => {\n var _theme$components;\n const theme = resolveTheme((0, _extends2.default)({}, props, {\n defaultTheme,\n themeId\n }));\n const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? void 0 : _theme$components.variants;\n return processStyleArg({\n variants: themeVariants\n }, (0, _extends2.default)({}, props, {\n theme\n }), theme.modularCssLayers ? 'theme' : undefined);\n });\n }\n if (!skipSx) {\n expressionsWithDefaultTheme.push(systemSx);\n }\n const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;\n if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) {\n const placeholders = new Array(numOfCustomFnsApplied).fill('');\n // If the type is array, than we need to add placeholders in the template for the overrides, variants and the sx styles.\n transformedStyleArg = [...styleArg, ...placeholders];\n transformedStyleArg.raw = [...styleArg.raw, ...placeholders];\n }\n const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n let displayName;\n if (componentName) {\n displayName = `${componentName}${(0, _capitalize.default)(componentSlot || '')}`;\n }\n if (displayName === undefined) {\n displayName = `Styled(${(0, _getDisplayName.default)(tag)})`;\n }\n Component.displayName = displayName;\n }\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n}"],"names":["_interopRequireDefault","require$$0","Object","defineProperty","createStyled_1","value","_default","default","input","themeId","defaultTheme","systemDefaultTheme","rootShouldForwardProp","shouldForwardProp","slotShouldForwardProp","systemSx","props","_styleFunctionSx","_extends2","theme","resolveTheme","__mui_systemSx","tag","inputOptions","_styledEngine","internal_processStyles","styles","filter","style","name","componentName","slot","componentSlot","skipVariantsResolver","inputSkipVariantsResolver","skipSx","inputSkipSx","overridesResolver","defaultOverridesResolver","lowercaseFirstLetter","options","_objectWithoutPropertiesLoose2","_excluded3","layerName","startsWith","label","define_process_env_default","NODE_ENV","shouldForwardPropOption","charCodeAt","isStringTag","defaultStyledResolver","transformStyleArg","stylesArg","__emotion_real","_deepmerge","isPlainObject","processStyleArg","modularCssLayers","muiStyledResolver","styleArg","expressions","transformedStyleArg","expressionsWithDefaultTheme","map","push","components","styleOverrides","resolvedStyleOverrides","entries","forEach","slotKey","slotStyle","_theme$components","variants","numOfCustomFnsApplied","length","Array","isArray","placeholders","fill","raw","Component","displayName","_capitalize","_getDisplayName","muiName","withConfig","require$$1","require$$2","e","__esModule","t","_getRequireWildcardCache","_interopRequireWildcard","has","get","n","__proto__","a","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","require$$3","require$$4","require$$5","require$$6","_createTheme","require$$7","require$$8","_excluded","_excluded2","WeakMap","r","prop","shallowLayer","serialized","String","string","charAt","toLowerCase","slice","obj","keys","callableStyle","_ref","ownerState","resolvedStylesArg","flatMap","resolvedStyle","result","variant","isMatch","key","variantStyle","internal_serializeStyles"],"mappings":"gpBAEIA,EAAyBC,EAAAA,6BAC7BC,OAAOC,eAAeC,EAAAA,UAAS,aAAc,CAC3CC,OAAO,IAET,IAAAC,EAAAF,EAAAA,UAAAG,QA2GA,SAAsBC,EAAQ,IAC5B,MAAMC,QACJA,EAAAC,aACAA,EAAeC,EAAAC,sBACfA,EAAwBC,EAAAC,sBACxBA,EAAwBD,GACtBL,EACEO,EAAWC,IACf,EAAWC,EAAiBV,UAAA,EAAaW,EAAUX,SAAS,CAAA,EAAIS,EAAO,CACrEG,MAAOC,GAAA,EAAiBF,EAAUX,SAAS,CAAA,EAAIS,EAAO,CACpDN,eACAD,gBAKN,OADAM,EAASM,gBAAiB,EACnB,CAACC,EAAKC,EAAe,OAE1B,EAAIC,EAAcC,wBAAwBH,EAAKI,GAAUA,EAAOC,OAAOC,KAAoB,MAATA,GAAiBA,EA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B7F,EAA+BlC,SAAS4H,EAAmBhB,GAyB/E,OAvBAzC,EAASJ,QAAQiE,IACf,IAAIC,GAAU,EAYd,GAX6B,mBAAlBD,EAAQvH,MACjBwH,EAAUD,EAAQvH,OAAA,EAAUE,EAAUX,SAAS,CAC7C2H,cACClH,EAAOkH,IAEVhI,OAAO6H,KAAKQ,EAAQvH,OAAOsD,QAAQmE,KACd,MAAdP,OAAqB,EAASA,EAAWO,MAAUF,EAAQvH,MAAMyH,IAAQzH,EAAMyH,KAASF,EAAQvH,MAAMyH,KACzGD,GAAU,KAIZA,EAAS,CACN3D,MAAMC,QAAQwD,KACjBA,EAAS,CAACA,IAEZ,MAAMI,EAAwC,mBAAlBH,EAAQ3G,MAAuB2G,EAAQ3G,OAAA,EAAUV,EAAUX,SAAS,CAC9F2H,cACClH,EAAOkH,IAAeK,EAAQ3G,MACjC0G,EAAOrE,KAAKtB,EAAY4E,GAAA,EAAiB/F,EAAcmH,0BAA0BD,GAAe/F,GAAa+F,EAAY,IAGtHJ,CAAA,CAET,OAAO3F,EAAY4E,KAAiB/F,EAAcmH,0BAA0BR,GAAoBxF,GAAawF,CAC/G","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "../../../_virtual/_commonjsHelpers/index.esm.js";
|
|
2
|
-
import { __module as propTypes } from "../../../_virtual/index/index.
|
|
2
|
+
import { __module as propTypes } from "../../../_virtual/index/index.esm2.js";
|
|
3
3
|
import { __require as requireFactoryWithTypeCheckers } from "../factoryWithTypeCheckers/index.esm.js";
|
|
4
4
|
import { __require as requireFactoryWithThrowingShims } from "../factoryWithThrowingShims/index.esm.js";
|
|
5
5
|
import require$$0 from "react-is";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_commonjsHelpers/index.js"),r=require("../../../_virtual/index/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_commonjsHelpers/index.js"),r=require("../../../_virtual/index/index2.js"),t=require("../factoryWithTypeCheckers/index.js"),i=require("../factoryWithThrowingShims/index.js"),u=require("react-is");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}if("production"!=={}.NODE_ENV){var s=/* @__PURE__ */o(u).default;r.__module.exports=t.__require()(s.isElement,!0)}else r.__module.exports=i.__require()();var _=r.__module.exports,d=/* @__PURE__ */e.getDefaultExportFromCjs(_);exports.default=d;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["NODE_ENV","ReactIs","require$$0","propTypesModule","exports","require$$1","isElement","require$$2"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["NODE_ENV","ReactIs","require$$0","propTypesModule","exports","require$$1","isElement","require$$2"],"mappings":"iXAOA,GAA6B,kBAAbA,SAA2B,CACzC,IAAIC,sBAAUC,QAKdC,EAAAA,SAAAC,QAAiBC,EAAAA,WAAAA,CAAqCJ,EAAQK,WADpC,EAE5B,MAGEH,WAAAC,QAAiBG,EAAAA,WAAAA","x_google_ignoreList":[0]}
|
|
@@ -1,12 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getV1Currency } from "../../api-client/api.accounting/api/index.esm.js";
|
|
2
|
+
import { getV1InventoryItems, getV1WarehouseLocation } from "../../api-client/api.inventory/api/index.esm.js";
|
|
2
3
|
import { createAsyncThunk } from "@reduxjs/toolkit";
|
|
3
|
-
import {
|
|
4
|
+
import { getToken } from "../../utils/common/index.esm.js";
|
|
4
5
|
const createParties = (...args) => {
|
|
5
6
|
return async (dispatch, getState) => {
|
|
6
7
|
throw new Error("Redux action creator not configured. Please configure Redux action creators in your consuming application.");
|
|
7
8
|
};
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
+
const getOptions = async (apiFunc, filters, dataKey, labelKey, valueKey) => {
|
|
11
|
+
var _a, _b;
|
|
12
|
+
const response = await apiFunc({
|
|
13
|
+
...filters,
|
|
14
|
+
...getToken()
|
|
15
|
+
});
|
|
16
|
+
const options = ((_b = (_a = response == null ? void 0 : response.data) == null ? void 0 : _a[dataKey]) == null ? void 0 : _b.map((d) => ({
|
|
17
|
+
...d,
|
|
18
|
+
label: labelKey instanceof Function ? labelKey(d) : _.get(d, labelKey),
|
|
19
|
+
value: valueKey ? _.get(d, valueKey, d.id) : d.id
|
|
20
|
+
}))) || [];
|
|
21
|
+
return options;
|
|
22
|
+
};
|
|
23
|
+
const getLocation = createAsyncThunk(
|
|
10
24
|
"location/fetch",
|
|
11
25
|
async (filter) => {
|
|
12
26
|
const locationFilter = {
|
|
@@ -21,7 +35,40 @@ createAsyncThunk(
|
|
|
21
35
|
return response;
|
|
22
36
|
}
|
|
23
37
|
);
|
|
38
|
+
const getItems = createAsyncThunk("item/fetch", async (filter) => {
|
|
39
|
+
const itemFilter = {
|
|
40
|
+
...filter,
|
|
41
|
+
order: "name:1"
|
|
42
|
+
// select:"[id,name,type,unit_of_measurement,default_tax_id,vendor_informatio]"
|
|
43
|
+
};
|
|
44
|
+
const response = await getOptions(
|
|
45
|
+
getV1InventoryItems,
|
|
46
|
+
itemFilter,
|
|
47
|
+
"inventoryItemsList",
|
|
48
|
+
"name"
|
|
49
|
+
);
|
|
50
|
+
return response;
|
|
51
|
+
});
|
|
52
|
+
const getCurrency = createAsyncThunk(
|
|
53
|
+
"currency/fetch",
|
|
54
|
+
async (filter) => {
|
|
55
|
+
const currencyFiter = {
|
|
56
|
+
...filter
|
|
57
|
+
};
|
|
58
|
+
const response = await getOptions(
|
|
59
|
+
getV1Currency,
|
|
60
|
+
currencyFiter,
|
|
61
|
+
"currencies",
|
|
62
|
+
"currency_name"
|
|
63
|
+
);
|
|
64
|
+
return response;
|
|
65
|
+
}
|
|
66
|
+
);
|
|
24
67
|
export {
|
|
25
|
-
createParties
|
|
68
|
+
createParties,
|
|
69
|
+
getCurrency,
|
|
70
|
+
getItems,
|
|
71
|
+
getLocation,
|
|
72
|
+
getOptions
|
|
26
73
|
};
|
|
27
74
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../src/redux/actionCreator.ts"],"sourcesContent":["import { getV1WarehouseLocation } from \"@/api-client/api.inventory/api\";\nimport {
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../src/redux/actionCreator.ts"],"sourcesContent":["import { getV1Currency } from \"@/api-client/api.accounting/api\";\nimport { getV1InventoryItems, getV1WarehouseLocation } from \"@/api-client/api.inventory/api\";\nimport { LabelKeyFunction } from \"@/types\";\nimport { getToken } from \"@/utils\";\nimport { createAsyncThunk } from \"@reduxjs/toolkit\";\n\n// Stub implementation for Redux actions - consuming applications should provide their own implementation\nexport const createParties = (...args: any[]) => {\n return async (dispatch: any, getState: any) => {\n throw new Error('Redux action creator not configured. Please configure Redux action creators in your consuming application.');\n };\n};\nexport const getOptions = async (\n apiFunc: any,\n filters: any,\n dataKey: string,\n labelKey: string | LabelKeyFunction,\n valueKey?: any\n) => {\n const response = await apiFunc({\n ...filters,\n ...getToken(),\n });\n\n const options: any[] =\n response?.data?.[dataKey]?.map((d) => ({\n ...d,\n label: labelKey instanceof Function ? labelKey(d) : _.get(d, labelKey),\n value: valueKey ? _.get(d, valueKey, d.id) : d.id,\n })) || [];\n return options;\n};\n\nexport const getLocation = createAsyncThunk(\n \"location/fetch\",\n async (filter: any) => {\n const locationFilter = {\n ...filter,\n };\n const response = await getOptions(\n getV1WarehouseLocation,\n locationFilter,\n \"warehouseLocationList\",\n \"name\"\n );\n return response;\n }\n);\n\nexport const getItems = createAsyncThunk(\"item/fetch\", async (filter: any) => {\n const itemFilter = {\n ...filter,\n order: \"name:1\",\n // select:\"[id,name,type,unit_of_measurement,default_tax_id,vendor_informatio]\"\n };\n const response = await getOptions(\n getV1InventoryItems,\n itemFilter,\n \"inventoryItemsList\",\n \"name\"\n );\n return response;\n});\n\nexport const getCurrency = createAsyncThunk(\n \"currency/fetch\",\n async (filter: any) => {\n const currencyFiter = {\n ...filter,\n };\n const response = await getOptions(\n getV1Currency,\n currencyFiter,\n \"currencies\",\n \"currency_name\"\n );\n return response;\n }\n);"],"names":[],"mappings":";;;;AAOO,MAAM,gBAAgB,IAAI,SAAgB;AAC/C,SAAO,OAAO,UAAe,aAAkB;AAC7C,UAAM,IAAI,MAAM,4GAA4G;AAAA,EAC9H;AACF;AACO,MAAM,aAAa,OACxB,SACA,SACA,SACA,UACA,aACG;;AACH,QAAM,WAAW,MAAM,QAAQ;AAAA,IAC7B,GAAG;AAAA,IACH,GAAG,SAAA;AAAA,EAAS,CACb;AAED,QAAM,YACJ,gDAAU,SAAV,mBAAiB,aAAjB,mBAA2B,IAAI,CAAC,OAAO;AAAA,IACrC,GAAG;AAAA,IACH,OAAO,oBAAoB,WAAW,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,QAAQ;AAAA,IACrE,OAAO,WAAW,EAAE,IAAI,GAAG,UAAU,EAAE,EAAE,IAAI,EAAE;AAAA,EAAA,QAC1C,CAAA;AACT,SAAO;AACT;AAEO,MAAM,cAAc;AAAA,EACzB;AAAA,EACA,OAAO,WAAgB;AACrB,UAAM,iBAAiB;AAAA,MACrB,GAAG;AAAA,IAAA;AAEL,UAAM,WAAW,MAAM;AAAA,MACrB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAEF,WAAO;AAAA,EACT;AACF;AAEO,MAAM,WAAW,iBAAiB,cAAc,OAAO,WAAgB;AAC5E,QAAM,aAAa;AAAA,IACjB,GAAG;AAAA,IACH,OAAO;AAAA;AAAA,EAAA;AAGT,QAAM,WAAW,MAAM;AAAA,IACrB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEF,SAAO;AACT,CAAC;AAEM,MAAM,cAAc;AAAA,EACzB;AAAA,EACA,OAAO,WAAgB;AACrB,UAAM,gBAAgB;AAAA,MACpB,GAAG;AAAA,IAAA;AAEL,UAAM,WAAW,MAAM;AAAA,MACrB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAEF,WAAO;AAAA,EACT;AACF;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../api-client/api.inventory/api/index.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../api-client/api.accounting/api/index.js"),t=require("../../api-client/api.inventory/api/index.js"),n=require("@reduxjs/toolkit"),r=require("../../utils/common/index.js");const a=async(e,t,n,a,i)=>{var o,c;const s=await e({...t,...r.getToken()});return(null==(c=null==(o=null==s?void 0:s.data)?void 0:o[n])?void 0:c.map(e=>({...e,label:a instanceof Function?a(e):_.get(e,a),value:i?_.get(e,i,e.id):e.id})))||[]},i=n.createAsyncThunk("location/fetch",async e=>{const n={...e};return await a(t.getV1WarehouseLocation,n,"warehouseLocationList","name")}),o=n.createAsyncThunk("item/fetch",async e=>{const n={...e,order:"name:1"};return await a(t.getV1InventoryItems,n,"inventoryItemsList","name")}),c=n.createAsyncThunk("currency/fetch",async t=>{const n={...t};return await a(e.getV1Currency,n,"currencies","currency_name")});exports.createParties=(...e)=>async(e,t)=>{throw new Error("Redux action creator not configured. Please configure Redux action creators in your consuming application.")},exports.getCurrency=c,exports.getItems=o,exports.getLocation=i,exports.getOptions=a;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/redux/actionCreator.ts"],"sourcesContent":["import { getV1WarehouseLocation } from \"@/api-client/api.inventory/api\";\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/redux/actionCreator.ts"],"sourcesContent":["import { getV1Currency } from \"@/api-client/api.accounting/api\";\nimport { getV1InventoryItems, getV1WarehouseLocation } from \"@/api-client/api.inventory/api\";\nimport { LabelKeyFunction } from \"@/types\";\nimport { getToken } from \"@/utils\";\nimport { createAsyncThunk } from \"@reduxjs/toolkit\";\n\n// Stub implementation for Redux actions - consuming applications should provide their own implementation\nexport const createParties = (...args: any[]) => {\n return async (dispatch: any, getState: any) => {\n throw new Error('Redux action creator not configured. Please configure Redux action creators in your consuming application.');\n };\n};\nexport const getOptions = async (\n apiFunc: any,\n filters: any,\n dataKey: string,\n labelKey: string | LabelKeyFunction,\n valueKey?: any\n) => {\n const response = await apiFunc({\n ...filters,\n ...getToken(),\n });\n\n const options: any[] =\n response?.data?.[dataKey]?.map((d) => ({\n ...d,\n label: labelKey instanceof Function ? labelKey(d) : _.get(d, labelKey),\n value: valueKey ? _.get(d, valueKey, d.id) : d.id,\n })) || [];\n return options;\n};\n\nexport const getLocation = createAsyncThunk(\n \"location/fetch\",\n async (filter: any) => {\n const locationFilter = {\n ...filter,\n };\n const response = await getOptions(\n getV1WarehouseLocation,\n locationFilter,\n \"warehouseLocationList\",\n \"name\"\n );\n return response;\n }\n);\n\nexport const getItems = createAsyncThunk(\"item/fetch\", async (filter: any) => {\n const itemFilter = {\n ...filter,\n order: \"name:1\",\n // select:\"[id,name,type,unit_of_measurement,default_tax_id,vendor_informatio]\"\n };\n const response = await getOptions(\n getV1InventoryItems,\n itemFilter,\n \"inventoryItemsList\",\n \"name\"\n );\n return response;\n});\n\nexport const getCurrency = createAsyncThunk(\n \"currency/fetch\",\n async (filter: any) => {\n const currencyFiter = {\n ...filter,\n };\n const response = await getOptions(\n getV1Currency,\n currencyFiter,\n \"currencies\",\n \"currency_name\"\n );\n return response;\n }\n);"],"names":["getOptions","async","apiFunc","filters","dataKey","labelKey","valueKey","response","getToken","_b","data","_a","map","d","label","Function","_","get","value","id","getLocation","createAsyncThunk","filter","locationFilter","getV1WarehouseLocation","getItems","itemFilter","order","getV1InventoryItems","getCurrency","currencyFiter","getV1Currency","args","dispatch","getState","Error"],"mappings":"kQAOO,MAKMA,EAAaC,MACxBC,EACAC,EACAC,EACAC,EACAC,aAEA,MAAMC,QAAiBL,EAAQ,IAC1BC,KACAK,EAAAA,aASL,OALE,OAAAC,EAAA,0BAAUC,WAAV,EAAAC,EAAiBP,SAAjB,EAAAK,EAA2BG,IAAKC,IAAA,IAC3BA,EACHC,MAAOT,aAAoBU,SAAWV,EAASQ,GAAKG,EAAEC,IAAIJ,EAAGR,GAC7Da,MAAOZ,EAAWU,EAAEC,IAAIJ,EAAGP,EAAUO,EAAEM,IAAMN,EAAEM,QAC1C,IAIEC,EAAcC,EAAAA,iBACzB,iBACApB,MAAOqB,IACL,MAAMC,EAAiB,IAClBD,GAQL,aANuBtB,EACrBwB,EAAAA,uBACAD,EACA,wBACA,UAMOE,EAAWJ,EAAAA,iBAAiB,aAAcpB,MAAOqB,IAC5D,MAAMI,EAAa,IACdJ,EACHK,MAAO,UAST,aANuB3B,EACrB4B,EAAAA,oBACAF,EACA,qBACA,UAKSG,EAAcR,EAAAA,iBACzB,iBACApB,MAAOqB,IACL,MAAMQ,EAAgB,IACjBR,GAQL,aANuBtB,EACrB+B,EAAAA,cACAD,EACA,aACA,yCAnEuB,IAAIE,IACxB/B,MAAOgC,EAAeC,KAC3B,MAAM,IAAIC,MAAM"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { LabelKeyFunction } from '../types';
|
|
2
|
+
|
|
1
3
|
export declare const createParties: (...args: any[]) => (dispatch: any, getState: any) => Promise<never>;
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
export declare const getOptions: (apiFunc: any, filters: any, dataKey: string, labelKey: string | LabelKeyFunction, valueKey?: any) => Promise<any[]>;
|
|
5
|
+
export declare const getLocation: import('@reduxjs/toolkit').AsyncThunk<any[], any, import('@reduxjs/toolkit').AsyncThunkConfig>;
|
|
6
|
+
export declare const getItems: import('@reduxjs/toolkit').AsyncThunk<any[], any, import('@reduxjs/toolkit').AsyncThunkConfig>;
|
|
7
|
+
export declare const getCurrency: import('@reduxjs/toolkit').AsyncThunk<any[], any, import('@reduxjs/toolkit').AsyncThunkConfig>;
|
package/dist/redux/index.d.ts
CHANGED
package/dist/redux/index.esm.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createLibraryStore, getLibrarySlices, libraryReducers } from "./store/index.esm.js";
|
|
2
2
|
import { API_METHOD_GROUPS, createConfiguredApiClient, validateApiClient } from "./apiConfig/index.esm.js";
|
|
3
3
|
import { useAppDispatch, useAppSelector, useLibraryDispatch, useLibrarySelector } from "./hooks/index.esm.js";
|
|
4
|
+
import { createParties, getCurrency, getItems, getLocation, getOptions } from "./actionCreator/index.esm.js";
|
|
4
5
|
import { getAllUserAndDepartmentDropdown, resetState, setDepartments, setError, setLoading, setUsers, sharePage, default as default2 } from "./slices/shareSlice/index.esm.js";
|
|
5
6
|
import { fetchLanguages, default as default3, resetHeaderState, resetLanguagesState, setCurrentLanguage, setLanguages, setLanguagesData } from "./slices/headerSlice/index.esm.js";
|
|
6
7
|
import { fetchCompanies, default as default4, resetReportsTitleBarState, setCompanies, setError as setError2, setLoading as setLoading2 } from "./slices/reportsTitleBarSlice/index.esm.js";
|
|
@@ -14,6 +15,7 @@ export {
|
|
|
14
15
|
changeCurrentPage,
|
|
15
16
|
createConfiguredApiClient,
|
|
16
17
|
createLibraryStore,
|
|
18
|
+
createParties,
|
|
17
19
|
dashBoardDrive,
|
|
18
20
|
default6 as dashboardSlice,
|
|
19
21
|
fetchBom,
|
|
@@ -21,7 +23,11 @@ export {
|
|
|
21
23
|
fetchLanguages,
|
|
22
24
|
fetchOptions,
|
|
23
25
|
getAllUserAndDepartmentDropdown,
|
|
26
|
+
getCurrency,
|
|
27
|
+
getItems,
|
|
24
28
|
getLibrarySlices,
|
|
29
|
+
getLocation,
|
|
30
|
+
getOptions,
|
|
25
31
|
default3 as headerSlice,
|
|
26
32
|
default5 as inventoryReportsTitleBarSlice,
|
|
27
33
|
libraryReducers,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/redux/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./store/index.js"),t=require("./apiConfig/index.js"),r=require("./hooks/index.js"),s=require("./slices/shareSlice/index.js"),a=require("./slices/headerSlice/index.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./store/index.js"),t=require("./apiConfig/index.js"),r=require("./hooks/index.js"),s=require("./actionCreator/index.js"),o=require("./slices/shareSlice/index.js"),a=require("./slices/headerSlice/index.js"),i=require("./slices/reportsTitleBarSlice/index.js"),p=require("./slices/inventoryReportsTitleBarSlice/index.js"),n=require("../views/afterAuth/dashboard/redux/reducer/index.js"),x=require("../views/afterAuth/dashboard/redux/actionCreator/index.js"),c=require("@reduxjs/toolkit");exports.createLibraryStore=e.createLibraryStore,exports.getLibrarySlices=e.getLibrarySlices,exports.libraryReducers=e.libraryReducers,exports.API_METHOD_GROUPS=t.API_METHOD_GROUPS,exports.createConfiguredApiClient=t.createConfiguredApiClient,exports.validateApiClient=t.validateApiClient,exports.useAppDispatch=r.useAppDispatch,exports.useAppSelector=r.useAppSelector,exports.useLibraryDispatch=r.useLibraryDispatch,exports.useLibrarySelector=r.useLibrarySelector,exports.createParties=s.createParties,exports.getCurrency=s.getCurrency,exports.getItems=s.getItems,exports.getLocation=s.getLocation,exports.getOptions=s.getOptions,exports.getAllUserAndDepartmentDropdown=o.getAllUserAndDepartmentDropdown,exports.resetShareState=o.resetState,exports.setDepartments=o.setDepartments,exports.setShareError=o.setError,exports.setShareLoading=o.setLoading,exports.setUsers=o.setUsers,exports.sharePage=o.sharePage,exports.shareSlice=o.default,exports.fetchLanguages=a.fetchLanguages,exports.headerSlice=a.default,exports.resetHeaderState=a.resetHeaderState,exports.resetLanguagesState=a.resetLanguagesState,exports.setCurrentLanguage=a.setCurrentLanguage,exports.setLanguages=a.setLanguages,exports.setLanguagesData=a.setLanguagesData,exports.fetchCompanies=i.fetchCompanies,exports.reportsTitleBarSlice=i.default,exports.resetReportsTitleBarState=i.resetReportsTitleBarState,exports.setReportsCompanies=i.setCompanies,exports.setReportsError=i.setError,exports.setReportsLoading=i.setLoading,exports.fetchBom=p.fetchBom,exports.fetchOptions=p.fetchOptions,exports.inventoryReportsTitleBarSlice=p.default,exports.resetInventoryReportsTitleBarState=p.resetInventoryReportsTitleBarState,exports.setAssemblyItems=p.setAssemblyItems,exports.setBomData=p.setBomData,exports.setInventoryCompanies=p.setCompanies,exports.setInventoryError=p.setError,exports.setInventoryLoading=p.setLoading,exports.setItems=p.setItems,exports.setWarehouseLocations=p.setWarehouseLocations,exports.changeCurrentPage=n.changeCurrentPage,exports.dashBoardDrive=n.dashBoardDrive,exports.dashboardSlice=n.default,exports.pinToDashboardList=n.pinToDashboardList,exports.setGrid=n.setGrid,exports.setPages=n.setPages,exports.setPaginationModel=n.setPaginationModel,exports.setSharedPage=n.setSharedPage,exports.setUserName=n.setUserName,exports.UsersFetchAction=x.UsersFetchAction,Object.keys(c).forEach(function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return c[e]}})});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,7 +2,7 @@ import { getV1Role, getV1LocationsStates, getV1LocationsCountries, getV1UserDepa
|
|
|
2
2
|
import _ from "lodash";
|
|
3
3
|
import { getV1StockReason, getV1Brand, getV1AssemblyItems, getV1CategoryItems, getV1Bin, getV1DiscountItems, getV1Uom, getV1WarehouseLocation, getV1InventoryItems, setBaseUrl as setBaseUrl$1 } from "../../api-client/api.inventory/api/index.esm.js";
|
|
4
4
|
import { getV1PaymentTermsDueDateTypes, getV1Banks, getV1BankAccountsTypes, getV1TaxCode, getV1TaxCategory, getV1ChartOfAccountAccountType, getV1BudgetBudgetTypes, getV1BudgetBudgetMonths, getV1FiscalYear, getV1AssetsAssetTypes, getV1CommissionPlans, getV1CommissionTargets, getV1ExpenseReimbursementExpenseCategories, getV1DebitNotesReasons, getV1PurchaseInvoices, getV1SalesInvoices, getV1JournalEntriesReferenceType, getV1JournalEntries, getV1AssetsJournalTypes, getV1Assets, getV1PartiesIndustry, getV1ChartOfAccount, getV1ExpenseReimbursementEmployees, getV1PurchaseInvoicesIncoterms, getV1PaymentTerms, getV1TaxTemplates, getV1Parties, getV1Currency, setBaseUrl as setBaseUrl$2 } from "../../api-client/api.accounting/api/index.esm.js";
|
|
5
|
-
import { getPartyName,
|
|
5
|
+
import { getPartyName, showSnackBar, getToken } from "../common/index.esm.js";
|
|
6
6
|
import { getV1OpportunityContact, getV1CustomerSegment, getV1ShippingRules, setBaseUrl as setBaseUrl$3 } from "../../api-client/api.sales/api/index.esm.js";
|
|
7
7
|
import { getV1Rfq, getV1PurchaseOrdersReceipts, getV1PurchaseAgreements } from "../../api-client/api.purchase/api/index.esm.js";
|
|
8
8
|
import { getV1BillsOfMaterialsListMaterials, getV1WorkCentreCategories, getV1Equipments, getV1EquipmentsCategories, getV1Operations, getV1GateRegisterVehicleTypes, getV1GateRegisterVehicleNumbers, getV1WorkOrder, getV1WorkCentre, getV1Routing, getV1BillsOfMaterials } from "../../api-client/api.manufacturing/api/index.esm.js";
|
|
@@ -5,6 +5,7 @@ import { Typography } from "../../../../components/typography/typography/index.e
|
|
|
5
5
|
import { Paragraph } from "../../../../components/icons/paragraph/index.esm.js";
|
|
6
6
|
import { Hashtag } from "../../../../components/icons/hashtag/index.esm.js";
|
|
7
7
|
import { ArrowCircleDown } from "../../../../components/icons/arrow-circle-down/index.esm.js";
|
|
8
|
+
import { Calendar } from "../../../../components/icons/calendar/index.esm.js";
|
|
8
9
|
import { PaperClip } from "../../../../components/icons/paper-clip/index.esm.js";
|
|
9
10
|
import { Link } from "../../../../components/icons/link/index.esm.js";
|
|
10
11
|
import { Email } from "../../../../components/icons/email/index.esm.js";
|
|
@@ -21,7 +22,6 @@ import { ToggleSwitch } from "../../../../components/icons/toggle-switch/index.e
|
|
|
21
22
|
import { RadioButton } from "../../../../components/icons/radio-button/index.esm.js";
|
|
22
23
|
import MenuItem from "../../../../node_modules/@mui/material/MenuItem/MenuItem/index.esm.js";
|
|
23
24
|
import Stack from "../../../../node_modules/@mui/material/Stack/Stack/index.esm.js";
|
|
24
|
-
import { Calendar } from "../../../../components/icons/calendar/index.esm.js";
|
|
25
25
|
const fields = [
|
|
26
26
|
{ label: "Text", value: "text", icon: Paragraph },
|
|
27
27
|
{ label: "Number", value: "number", icon: Hashtag },
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),n=require("react"),o=require("../../../../components/select/select/index.js"),i=require("../../../../components/typography/typography/index.js"),l=require("../../../../components/icons/paragraph/index.js"),a=require("../../../../components/icons/hashtag/index.js"),r=require("../../../../components/icons/arrow-circle-down/index.js"),c=require("../../../../components/icons/paper-clip/index.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),n=require("react"),o=require("../../../../components/select/select/index.js"),i=require("../../../../components/typography/typography/index.js"),l=require("../../../../components/icons/paragraph/index.js"),a=require("../../../../components/icons/hashtag/index.js"),r=require("../../../../components/icons/arrow-circle-down/index.js"),c=require("../../../../components/icons/calendar/index.js"),t=require("../../../../components/icons/paper-clip/index.js"),s=require("../../../../components/icons/link/index.js"),u=require("../../../../components/icons/email/index.js"),d=require("../../../../components/icons/phone/index.js"),p=require("../../../../components/icons/dollar-circle/index.js"),m=require("../../../../components/icons/clock/index.js"),x=require("../../../../components/icons/grid/index.js"),h=require("../../../../components/icons/location/index.js"),b=require("../../../../components/icons/checkbox-square/index.js"),j=require("../../../../components/icons/image/index.js"),v=require("../../../../components/icons/link-horizontal/index.js"),g=require("../../../../components/icons/info-circle/index.js"),q=require("../../../../components/icons/toggle-switch/index.js"),f=require("../../../../components/icons/radio-button/index.js"),y=require("../../../../node_modules/@mui/material/MenuItem/MenuItem/index.js"),k=require("../../../../node_modules/@mui/material/Stack/Stack/index.js");const S=[{label:"Text",value:"text",icon:l.Paragraph},{label:"Number",value:"number",icon:a.Hashtag},{label:"Select",value:"select",icon:r.ArrowCircleDown},{label:"Date",value:"date",icon:c.Calendar},{label:"Files & Media",value:"file",icon:t.PaperClip},{label:"URL",value:"url",icon:s.Link},{label:"Email",value:"email",icon:u.Email},{label:"Phone",value:"phone",icon:d.Phone},{label:"Currency",value:"currency",icon:p.DollarCircle},{label:"Time",value:"time",icon:m.Clock},{label:"Table",value:"table",icon:x.Grid},{label:"Geolocation",value:"geoLocation",icon:h.Location},{label:"Check Box",value:"checkbox",icon:b.CheckboxSquare},{label:"Image Upload",value:"image",icon:j.Image},{label:"Relation Field",value:"relation",icon:v.LinkHorizontal},{label:"Info Card",value:"info",icon:g.InfoCircle},{label:"Toggle Button",value:"toggleButton",icon:q.ToggleSwitch},{label:"Radio Button",value:"radioButton",icon:f.RadioButton},{label:"tagsInput",value:"tagsInput",icon:l.Paragraph}];exports.default=l=>{const[a,r]=n.useState(S),[c,t]=n.useState(""),s=e=>{t(e.target.value)};return n.useEffect(()=>{var e;r((e=c)?[...S.filter(n=>n.value.includes(e))]:S)},[c]),/* @__PURE__ */e.jsx(o.default,{fullWidth:!0,placeholder:"Select Field",size:"small",labelName:"Field Type",renderValue:e=>{var n;return null==(n=S.find(n=>n.value===e))?void 0:n.label},handleSearch:()=>s,searchPlaceholder:"Search Attributes",searchValue:c,...l,children:a.map(n=>/* @__PURE__ */e.jsx(y.default,{value:n.value,onKeyDown:e=>e.stopPropagation(),children:/* @__PURE__ */e.jsxs(k.default,{direction:"row",spacing:1,alignItems:"center",children:[n.icon&&/* @__PURE__ */e.jsx(n.icon,{fontSize:"small"}),
|
|
2
2
|
/* @__PURE__ */e.jsx(i.Typography,{type:"s3",color:"theme.secondary.1000",children:n.label})]})}))})};
|
|
3
3
|
//# sourceMappingURL=index.js.map
|