1 line
18 KiB
JSON
1 line
18 KiB
JSON
{"ast":null,"code":"import \"core-js/modules/es.array.join.js\";\nimport \"core-js/modules/es.array.sort.js\";\n\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\n\n/**\r\n * AUTO-GENERATED FILE. DO NOT MODIFY.\r\n */\n\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\nimport { SOURCE_FORMAT_ARRAY_ROWS, SOURCE_FORMAT_OBJECT_ROWS } from '../../util/types.js';\nimport { makePrintable, throwError } from '../../util/log.js';\nimport { each } from 'zrender/lib/core/util.js';\nimport { normalizeToArray } from '../../util/model.js';\nimport { getRawValueParser, SortOrderComparator } from '../../data/helper/dataValueHelper.js';\nvar sampleLog = '';\n\nif (process.env.NODE_ENV !== 'production') {\n sampleLog = ['Valid config is like:', '{ dimension: \"age\", order: \"asc\" }', 'or [{ dimension: \"age\", order: \"asc\"], { dimension: \"date\", order: \"desc\" }]'].join(' ');\n}\n\nexport var sortTransform = {\n type: 'echarts:sort',\n transform: function transform(params) {\n var upstream = params.upstream;\n var config = params.config;\n var errMsg = ''; // Normalize\n // const orderExprList: OrderExpression[] = isArray(config[0])\n // ? config as OrderExpression[]\n // : [config as OrderExpression];\n\n var orderExprList = normalizeToArray(config);\n\n if (!orderExprList.length) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Empty `config` in sort transform.';\n }\n\n throwError(errMsg);\n }\n\n var orderDefList = [];\n each(orderExprList, function (orderExpr) {\n var dimLoose = orderExpr.dimension;\n var order = orderExpr.order;\n var parserName = orderExpr.parser;\n var incomparable = orderExpr.incomparable;\n\n if (dimLoose == null) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Sort transform config must has \"dimension\" specified.' + sampleLog;\n }\n\n throwError(errMsg);\n }\n\n if (order !== 'asc' && order !== 'desc') {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Sort transform config must has \"order\" specified.' + sampleLog;\n }\n\n throwError(errMsg);\n }\n\n if (incomparable && incomparable !== 'min' && incomparable !== 'max') {\n var errMsg_1 = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg_1 = 'incomparable must be \"min\" or \"max\" rather than \"' + incomparable + '\".';\n }\n\n throwError(errMsg_1);\n }\n\n if (order !== 'asc' && order !== 'desc') {\n var errMsg_2 = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg_2 = 'order must be \"asc\" or \"desc\" rather than \"' + order + '\".';\n }\n\n throwError(errMsg_2);\n }\n\n var dimInfo = upstream.getDimensionInfo(dimLoose);\n\n if (!dimInfo) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Can not find dimension info via: ' + dimLoose + '.\\n', 'Existing dimensions: ', upstream.cloneAllDimensionInfo(), '.\\n', 'Illegal config:', orderExpr, '.\\n');\n }\n\n throwError(errMsg);\n }\n\n var parser = parserName ? getRawValueParser(parserName) : null;\n\n if (parserName && !parser) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Invalid parser name ' + parserName + '.\\n', 'Illegal config:', orderExpr, '.\\n');\n }\n\n throwError(errMsg);\n }\n\n orderDefList.push({\n dimIdx: dimInfo.index,\n parser: parser,\n comparator: new SortOrderComparator(order, incomparable)\n });\n }); // TODO: support it?\n\n var sourceFormat = upstream.sourceFormat;\n\n if (sourceFormat !== SOURCE_FORMAT_ARRAY_ROWS && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'sourceFormat \"' + sourceFormat + '\" is not supported yet';\n }\n\n throwError(errMsg);\n } // Other upstream format are all array.\n\n\n var resultData = [];\n\n for (var i = 0, len = upstream.count(); i < len; i++) {\n resultData.push(upstream.getRawDataItem(i));\n }\n\n resultData.sort(function (item0, item1) {\n for (var i = 0; i < orderDefList.length; i++) {\n var orderDef = orderDefList[i];\n var val0 = upstream.retrieveValueFromItem(item0, orderDef.dimIdx);\n var val1 = upstream.retrieveValueFromItem(item1, orderDef.dimIdx);\n\n if (orderDef.parser) {\n val0 = orderDef.parser(val0);\n val1 = orderDef.parser(val1);\n }\n\n var result = orderDef.comparator.evaluate(val0, val1);\n\n if (result !== 0) {\n return result;\n }\n }\n\n return 0;\n });\n return {\n data: resultData\n };\n }\n};","map":{"version":3,"sources":["D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src/qingge-Market/qingge-vue/node_modules/echarts/lib/component/transform/sortTransform.js"],"names":["SOURCE_FORMAT_ARRAY_ROWS","SOURCE_FORMAT_OBJECT_ROWS","makePrintable","throwError","each","normalizeToArray","getRawValueParser","SortOrderComparator","sampleLog","process","env","NODE_ENV","join","sortTransform","type","transform","params","upstream","config","errMsg","orderExprList","length","orderDefList","orderExpr","dimLoose","dimension","order","parserName","parser","incomparable","errMsg_1","errMsg_2","dimInfo","getDimensionInfo","cloneAllDimensionInfo","push","dimIdx","index","comparator","sourceFormat","resultData","i","len","count","getRawDataItem","sort","item0","item1","orderDef","val0","retrieveValueFromItem","val1","result","evaluate","data"],"mappings":";;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,wBAAT,EAAmCC,yBAAnC,QAAoE,qBAApE;AACA,SAASC,aAAT,EAAwBC,UAAxB,QAA0C,mBAA1C;AACA,SAASC,IAAT,QAAqB,0BAArB;AACA,SAASC,gBAAT,QAAiC,qBAAjC;AACA,SAASC,iBAAT,EAA4BC,mBAA5B,QAAuD,sCAAvD;AACA,IAAIC,SAAS,GAAG,EAAhB;;AAEA,IAAIC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAA7B,EAA2C;AACzCH,EAAAA,SAAS,GAAG,CAAC,uBAAD,EAA0B,oCAA1B,EAAgE,8EAAhE,EAAgJI,IAAhJ,CAAqJ,GAArJ,CAAZ;AACD;;AAED,OAAO,IAAIC,aAAa,GAAG;AACzBC,EAAAA,IAAI,EAAE,cADmB;AAEzBC,EAAAA,SAAS,EAAE,mBAAUC,MAAV,EAAkB;AAC3B,QAAIC,QAAQ,GAAGD,MAAM,CAACC,QAAtB;AACA,QAAIC,MAAM,GAAGF,MAAM,CAACE,MAApB;AACA,QAAIC,MAAM,GAAG,EAAb,CAH2B,CAGV;AACjB;AACA;AACA;;AAEA,QAAIC,aAAa,GAAGf,gBAAgB,CAACa,MAAD,CAApC;;AAEA,QAAI,CAACE,aAAa,CAACC,MAAnB,EAA2B;AACzB,UAAIZ,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAA7B,EAA2C;AACzCQ,QAAAA,MAAM,GAAG,mCAAT;AACD;;AAEDhB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AnC,CAAb;;AAEA,YAAIC,MAAM,KAAK,CAAf,EAAkB;AAChB,iBAAOA,MAAP;AACD;AACF;;AAED,aAAO,CAAP;AACD,KAnBD;AAoBA,WAAO;AACLE,MAAAA,IAAI,EAAEd;AADD,KAAP;AAGD;AAlIwB,CAApB","sourcesContent":["\r\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\r\n\r\n\r\n/**\r\n * AUTO-GENERATED FILE. DO NOT MODIFY.\r\n */\r\n\r\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\r\nimport { SOURCE_FORMAT_ARRAY_ROWS, SOURCE_FORMAT_OBJECT_ROWS } from '../../util/types.js';\r\nimport { makePrintable, throwError } from '../../util/log.js';\r\nimport { each } from 'zrender/lib/core/util.js';\r\nimport { normalizeToArray } from '../../util/model.js';\r\nimport { getRawValueParser, SortOrderComparator } from '../../data/helper/dataValueHelper.js';\r\nvar sampleLog = '';\r\n\r\nif (process.env.NODE_ENV !== 'production') {\r\n sampleLog = ['Valid config is like:', '{ dimension: \"age\", order: \"asc\" }', 'or [{ dimension: \"age\", order: \"asc\"], { dimension: \"date\", order: \"desc\" }]'].join(' ');\r\n}\r\n\r\nexport var sortTransform = {\r\n type: 'echarts:sort',\r\n transform: function (params) {\r\n var upstream = params.upstream;\r\n var config = params.config;\r\n var errMsg = ''; // Normalize\r\n // const orderExprList: OrderExpression[] = isArray(config[0])\r\n // ? config as OrderExpression[]\r\n // : [config as OrderExpression];\r\n\r\n var orderExprList = normalizeToArray(config);\r\n\r\n if (!orderExprList.length) {\r\n if (process.env.NODE_ENV !== 'production') {\r\n errMsg = 'Empty `config` in sort transform.';\r\n }\r\n\r\n throwError(errMsg);\r\n }\r\n\r\n var orderDefList = [];\r\n each(orderExprList, function (orderExpr) {\r\n var dimLoose = orderExpr.dimension;\r\n var order = orderExpr.order;\r\n var parserName = orderExpr.parser;\r\n var incomparable = orderExpr.incomparable;\r\n\r\n if (dimLoose == null) {\r\n if (process.env.NODE_ENV !== 'production') {\r\n errMsg = 'Sort transform config must has \"dimension\" specified.' + sampleLog;\r\n }\r\n\r\n throwError(errMsg);\r\n }\r\n\r\n if (order !== 'asc' && order !== 'desc') {\r\n if (process.env.NODE_ENV !== 'production') {\r\n errMsg = 'Sort transform config must has \"order\" specified.' + sampleLog;\r\n }\r\n\r\n throwError(errMsg);\r\n }\r\n\r\n if (incomparable && incomparable !== 'min' && incomparable !== 'max') {\r\n var errMsg_1 = '';\r\n\r\n if (process.env.NODE_ENV !== 'production') {\r\n errMsg_1 = 'incomparable must be \"min\" or \"max\" rather than \"' + incomparable + '\".';\r\n }\r\n\r\n throwError(errMsg_1);\r\n }\r\n\r\n if (order !== 'asc' && order !== 'desc') {\r\n var errMsg_2 = '';\r\n\r\n if (process.env.NODE_ENV !== 'production') {\r\n errMsg_2 = 'order must be \"asc\" or \"desc\" rather than \"' + order + '\".';\r\n }\r\n\r\n throwError(errMsg_2);\r\n }\r\n\r\n var dimInfo = upstream.getDimensionInfo(dimLoose);\r\n\r\n if (!dimInfo) {\r\n if (process.env.NODE_ENV !== 'production') {\r\n errMsg = makePrintable('Can not find dimension info via: ' + dimLoose + '.\\n', 'Existing dimensions: ', upstream.cloneAllDimensionInfo(), '.\\n', 'Illegal config:', orderExpr, '.\\n');\r\n }\r\n\r\n throwError(errMsg);\r\n }\r\n\r\n var parser = parserName ? getRawValueParser(parserName) : null;\r\n\r\n if (parserName && !parser) {\r\n if (process.env.NODE_ENV !== 'production') {\r\n errMsg = makePrintable('Invalid parser name ' + parserName + '.\\n', 'Illegal config:', orderExpr, '.\\n');\r\n }\r\n\r\n throwError(errMsg);\r\n }\r\n\r\n orderDefList.push({\r\n dimIdx: dimInfo.index,\r\n parser: parser,\r\n comparator: new SortOrderComparator(order, incomparable)\r\n });\r\n }); // TODO: support it?\r\n\r\n var sourceFormat = upstream.sourceFormat;\r\n\r\n if (sourceFormat !== SOURCE_FORMAT_ARRAY_ROWS && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS) {\r\n if (process.env.NODE_ENV !== 'production') {\r\n errMsg = 'sourceFormat \"' + sourceFormat + '\" is not supported yet';\r\n }\r\n\r\n throwError(errMsg);\r\n } // Other upstream format are all array.\r\n\r\n\r\n var resultData = [];\r\n\r\n for (var i = 0, len = upstream.count(); i < len; i++) {\r\n resultData.push(upstream.getRawDataItem(i));\r\n }\r\n\r\n resultData.sort(function (item0, item1) {\r\n for (var i = 0; i < orderDefList.length; i++) {\r\n var orderDef = orderDefList[i];\r\n var val0 = upstream.retrieveValueFromItem(item0, orderDef.dimIdx);\r\n var val1 = upstream.retrieveValueFromItem(item1, orderDef.dimIdx);\r\n\r\n if (orderDef.parser) {\r\n val0 = orderDef.parser(val0);\r\n val1 = orderDef.parser(val1);\r\n }\r\n\r\n var result = orderDef.comparator.evaluate(val0, val1);\r\n\r\n if (result !== 0) {\r\n return result;\r\n }\r\n }\r\n\r\n return 0;\r\n });\r\n return {\r\n data: resultData\r\n };\r\n }\r\n};"]},"metadata":{},"sourceType":"module"} |