@visactor/vtable 1.17.3-alpha.3 → 1.17.3-alpha.5
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/cjs/PivotTable.d.ts +5 -0
- package/cjs/PivotTable.js +13 -0
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.js +16 -22
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +0 -1
- package/cjs/core/TABLE_EVENT_TYPE.js +0 -1
- package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/cjs/dataset/dataset-pivot-table.js +1 -2
- package/cjs/dataset/dataset.js +6 -4
- package/cjs/dataset/dataset.js.map +1 -1
- package/cjs/edit/editors.js +2 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/layout/pivot-header-layout.js +10 -11
- package/cjs/layout/pivot-header-layout.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +4 -4
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
- package/cjs/scenegraph/layout/frozen.js +5 -5
- package/cjs/scenegraph/layout/frozen.js.map +1 -1
- package/cjs/scenegraph/select/create-select-border.js +13 -2
- package/cjs/scenegraph/select/create-select-border.js.map +1 -1
- package/cjs/scenegraph/select/update-select-border.js +1 -5
- package/cjs/scenegraph/select/update-select-border.js.map +1 -1
- package/cjs/state/select/update-position.js +2 -2
- package/cjs/state/select/update-position.js.map +1 -1
- package/cjs/state/state.js +79 -47
- package/cjs/state/state.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +1 -0
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/common.d.ts +3 -1
- package/cjs/ts-types/common.js.map +1 -1
- package/cjs/ts-types/events.d.ts +3 -8
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +1 -0
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/cjs/ts-types/theme.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +205 -121
- package/dist/vtable.min.js +2 -2
- package/es/PivotTable.d.ts +5 -0
- package/es/PivotTable.js +13 -0
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.js +16 -22
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/TABLE_EVENT_TYPE.d.ts +0 -1
- package/es/core/TABLE_EVENT_TYPE.js +0 -1
- package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/es/dataset/dataset-pivot-table.js +1 -2
- package/es/dataset/dataset.js +6 -4
- package/es/dataset/dataset.js.map +1 -1
- package/es/edit/editors.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/layout/pivot-header-layout.js +10 -10
- package/es/layout/pivot-header-layout.js.map +1 -1
- package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js +4 -4
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
- package/es/scenegraph/layout/frozen.js +5 -5
- package/es/scenegraph/layout/frozen.js.map +1 -1
- package/es/scenegraph/select/create-select-border.js +13 -2
- package/es/scenegraph/select/create-select-border.js.map +1 -1
- package/es/scenegraph/select/update-select-border.js +1 -5
- package/es/scenegraph/select/update-select-border.js.map +1 -1
- package/es/state/select/update-position.js +2 -2
- package/es/state/select/update-position.js.map +1 -1
- package/es/state/state.js +79 -47
- package/es/state/state.js.map +1 -1
- package/es/ts-types/base-table.d.ts +1 -0
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/common.d.ts +3 -1
- package/es/ts-types/common.js.map +1 -1
- package/es/ts-types/events.d.ts +3 -8
- package/es/ts-types/events.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +1 -0
- package/es/ts-types/table-engine.js.map +1 -1
- package/es/ts-types/theme.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +4 -4
package/cjs/edit/editors.js
CHANGED
|
@@ -6,4 +6,5 @@ function get(editorName) {
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: !0
|
|
9
|
-
}), exports.get = exports.editors = void 0, exports.editors = {}, exports.get = get;
|
|
9
|
+
}), exports.get = exports.editors = void 0, exports.editors = {}, exports.get = get;
|
|
10
|
+
//# sourceMappingURL=editors.js.map
|
package/cjs/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { getDataCellPath } from './tools/get-data-path';
|
|
|
20
20
|
export * from './render/jsx';
|
|
21
21
|
export { getTargetCell } from './event/util';
|
|
22
22
|
export { Icon } from './scenegraph/graphic/icon';
|
|
23
|
-
export declare const version = "1.17.3-alpha.
|
|
23
|
+
export declare const version = "1.17.3-alpha.5";
|
|
24
24
|
export { TYPES, core, ListTable, ListTableSimple, ListTableConstructorOptions, PivotTable, PivotTableSimple, PivotTableConstructorOptions, PivotChartConstructorOptions, PivotChart, IHeaderTreeDefine, IDimension, IIndicator, ITitleDefine, ICornerDefine, ColumnsDefine, ColumnDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, TextAlignType, TextBaselineType, themes, data, MousePointerCellEvent, getIcons, clearGlobal, register, DataStatistics, CustomLayout, updateCell, renderChart, graphicUtil, setCustomAlphabetCharSet, restoreMeasureText };
|
|
25
25
|
declare function getIcons(): {
|
|
26
26
|
[key: string]: TYPES.ColumnIconOption;
|
package/cjs/index.js
CHANGED
|
@@ -178,7 +178,7 @@ Object.defineProperty(exports, "Icon", {
|
|
|
178
178
|
get: function() {
|
|
179
179
|
return icon_1.Icon;
|
|
180
180
|
}
|
|
181
|
-
}), exports.version = "1.17.3-alpha.
|
|
181
|
+
}), exports.version = "1.17.3-alpha.5", exports.getIcons = getIcons, exports.clearGlobal = clearGlobal,
|
|
182
182
|
TYPES.AggregationType, __exportStar(require("./components"), exports), __exportStar(require("./scenegraph/group-creater/cell-type"), exports);
|
|
183
183
|
|
|
184
184
|
var TABLE_EVENT_TYPE_1 = require("./core/TABLE_EVENT_TYPE");
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uCAA4D;AAyG1D,4FAzGO,qBAAW,OAyGP;AAxGb,IAAA,4BAAkB,GAAE,CAAC;AAErB,kDAAoC;AA8DlC,sBAAK;AA7DP,6CAA+B;AA8D7B,oBAAI;AA7DN,6CAA+B;AAuF7B,oBAAI;AAtFN,+CAAiC;AACjC,qDAAuC;AA0FrC,4BAAQ;AAzFV,iDAAmC;AAmFjC,wBAAM;AAlFR,yEAA2D;AA4FzD,wCAAc;AAtEhB,mDAA4D;AAoC1D,0FApCuB,4BAAS,OAoCvB;AAnCX,yDAAqD;AAoCnD,gGApCO,kCAAe,OAoCP;AAlCjB,qDAA+D;AAoC7D,2FApCwB,8BAAU,OAoCxB;AAnCZ,2DAAuD;AAoCrD,iGApCO,oCAAgB,OAoCP;AAnClB,6CAA0C;AAsCxC,2FAtCO,uBAAU,OAsCP;AApCZ,8DAAgD;AAgE9C,oCAAY;AA9Dd,wEAAoE;AA+DlE,2FA/DO,wBAAU,OA+DP;AA9DZ,gGAAqF;AA+DnF,4FA/DO,iCAAW,OA+DP;AA9Db,kEAA+F;AAiE7F,mGAjEO,iCAAkB,OAiEP;AADlB,yGAhE2B,uCAAwB,OAgE3B;AA3D1B,uDAAwD;AAA/C,gHAAA,eAAe,OAAA;AACxB,+CAA6B;AAC7B,qCAA6C;AAApC,qGAAA,aAAa,OAAA;AAEtB,kDAAiD;AAAxC,4FAAA,IAAI,OAAA;AAKA,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAyDxC,SAAS,QAAQ;IAGf,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC;AACrB,CAAC;AAvBC,4BAAQ;AAyBV,SAAS,WAAW;IAClB,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAGtB,CAAC;AA5BC,kCAAW;AA6Bb,KAAK,CAAC,eAAe,CAAC;AAEtB,+CAA6B;AAC7B,uEAAqD;AAErD,4DAA2D;AAAlD,oHAAA,gBAAgB,OAAA;AACzB,wFAA+G;AAAtG,gIAAA,sBAAsB,OAAA;AAAE,gIAAA,sBAAsB,OAAA;AAEvD,mDAAkD;AAAzC,0GAAA,WAAW,OAAA","file":"index.js","sourcesContent":["/* eslint-disable sort-imports */\nimport { graphicUtil, registerForVrender } from './vrender';\nregisterForVrender();\n\nimport * as TYPES from './ts-types';\nimport * as core from './core';\nimport * as data from './data';\nimport * as icons from './icons';\nimport * as register from './register';\nimport * as themes from './themes';\nimport * as DataStatistics from './dataset/DataStatistics';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n ListTableConstructorOptions,\n PivotTableConstructorOptions,\n PivotChartConstructorOptions,\n IHeaderTreeDefine,\n IDimension,\n IIndicator,\n ITitleDefine,\n ICornerDefine,\n TextAlignType,\n TextBaselineType\n} from './ts-types';\nimport { ListTableAll as ListTable } from './ListTable-all';\nimport { ListTableSimple } from './ListTable-simple';\n// import { PivotTable } from './PivotTable';\nimport { PivotTableAll as PivotTable } from './PivotTable-all';\nimport { PivotTableSimple } from './PivotTable-simple';\nimport { PivotChart } from './PivotChart';\nimport type { MousePointerCellEvent } from './ts-types/events';\nimport * as CustomLayout from './render/layout';\n\nimport { updateCell } from './scenegraph/group-creater/cell-helper';\nimport { renderChart } from './scenegraph/graphic/contributions/chart-render-helper';\nimport { restoreMeasureText, setCustomAlphabetCharSet } from './scenegraph/utils/text-measure';\n\n// import { container, loadCanvasPicker } from '@src/vrender';\n// loadCanvasPicker(container);\n\nexport { getDataCellPath } from './tools/get-data-path';\nexport * from './render/jsx';\nexport { getTargetCell } from './event/util';\n\nexport { Icon } from './scenegraph/graphic/icon';\n\n// export * as VRender from './vrender';\n// import * as VRender from './vrender';\n\nexport const version = \"1.17.3-alpha.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uCAA4D;AAyG1D,4FAzGO,qBAAW,OAyGP;AAxGb,IAAA,4BAAkB,GAAE,CAAC;AAErB,kDAAoC;AA8DlC,sBAAK;AA7DP,6CAA+B;AA8D7B,oBAAI;AA7DN,6CAA+B;AAuF7B,oBAAI;AAtFN,+CAAiC;AACjC,qDAAuC;AA0FrC,4BAAQ;AAzFV,iDAAmC;AAmFjC,wBAAM;AAlFR,yEAA2D;AA4FzD,wCAAc;AAtEhB,mDAA4D;AAoC1D,0FApCuB,4BAAS,OAoCvB;AAnCX,yDAAqD;AAoCnD,gGApCO,kCAAe,OAoCP;AAlCjB,qDAA+D;AAoC7D,2FApCwB,8BAAU,OAoCxB;AAnCZ,2DAAuD;AAoCrD,iGApCO,oCAAgB,OAoCP;AAnClB,6CAA0C;AAsCxC,2FAtCO,uBAAU,OAsCP;AApCZ,8DAAgD;AAgE9C,oCAAY;AA9Dd,wEAAoE;AA+DlE,2FA/DO,wBAAU,OA+DP;AA9DZ,gGAAqF;AA+DnF,4FA/DO,iCAAW,OA+DP;AA9Db,kEAA+F;AAiE7F,mGAjEO,iCAAkB,OAiEP;AADlB,yGAhE2B,uCAAwB,OAgE3B;AA3D1B,uDAAwD;AAA/C,gHAAA,eAAe,OAAA;AACxB,+CAA6B;AAC7B,qCAA6C;AAApC,qGAAA,aAAa,OAAA;AAEtB,kDAAiD;AAAxC,4FAAA,IAAI,OAAA;AAKA,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAyDxC,SAAS,QAAQ;IAGf,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC;AACrB,CAAC;AAvBC,4BAAQ;AAyBV,SAAS,WAAW;IAClB,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAGtB,CAAC;AA5BC,kCAAW;AA6Bb,KAAK,CAAC,eAAe,CAAC;AAEtB,+CAA6B;AAC7B,uEAAqD;AAErD,4DAA2D;AAAlD,oHAAA,gBAAgB,OAAA;AACzB,wFAA+G;AAAtG,gIAAA,sBAAsB,OAAA;AAAE,gIAAA,sBAAsB,OAAA;AAEvD,mDAAkD;AAAzC,0GAAA,WAAW,OAAA","file":"index.js","sourcesContent":["/* eslint-disable sort-imports */\nimport { graphicUtil, registerForVrender } from './vrender';\nregisterForVrender();\n\nimport * as TYPES from './ts-types';\nimport * as core from './core';\nimport * as data from './data';\nimport * as icons from './icons';\nimport * as register from './register';\nimport * as themes from './themes';\nimport * as DataStatistics from './dataset/DataStatistics';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n ListTableConstructorOptions,\n PivotTableConstructorOptions,\n PivotChartConstructorOptions,\n IHeaderTreeDefine,\n IDimension,\n IIndicator,\n ITitleDefine,\n ICornerDefine,\n TextAlignType,\n TextBaselineType\n} from './ts-types';\nimport { ListTableAll as ListTable } from './ListTable-all';\nimport { ListTableSimple } from './ListTable-simple';\n// import { PivotTable } from './PivotTable';\nimport { PivotTableAll as PivotTable } from './PivotTable-all';\nimport { PivotTableSimple } from './PivotTable-simple';\nimport { PivotChart } from './PivotChart';\nimport type { MousePointerCellEvent } from './ts-types/events';\nimport * as CustomLayout from './render/layout';\n\nimport { updateCell } from './scenegraph/group-creater/cell-helper';\nimport { renderChart } from './scenegraph/graphic/contributions/chart-render-helper';\nimport { restoreMeasureText, setCustomAlphabetCharSet } from './scenegraph/utils/text-measure';\n\n// import { container, loadCanvasPicker } from '@src/vrender';\n// loadCanvasPicker(container);\n\nexport { getDataCellPath } from './tools/get-data-path';\nexport * from './render/jsx';\nexport { getTargetCell } from './event/util';\n\nexport { Icon } from './scenegraph/graphic/icon';\n\n// export * as VRender from './vrender';\n// import * as VRender from './vrender';\n\nexport const version = \"1.17.3-alpha.5\";\n/**\n * @namespace VTable\n */\nexport {\n /**\n * Types\n * @namespace VTable.TYPES\n */\n TYPES,\n core,\n ListTable,\n ListTableSimple,\n ListTableConstructorOptions,\n PivotTable,\n PivotTableSimple,\n PivotTableConstructorOptions,\n PivotChartConstructorOptions,\n PivotChart,\n IHeaderTreeDefine,\n IDimension,\n IIndicator,\n ITitleDefine,\n ICornerDefine,\n ColumnsDefine,\n ColumnDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType,\n themes,\n data,\n MousePointerCellEvent,\n getIcons,\n clearGlobal,\n //plugin registers\n register,\n /**\n * 暂不推荐使用\n */\n DataStatistics,\n CustomLayout,\n updateCell,\n renderChart,\n graphicUtil,\n setCustomAlphabetCharSet,\n restoreMeasureText\n\n // VRender // should use import {xxx} from '@visactor/vtable/es/vrender'\n};\n\n/** @private */\nfunction getIcons(): {\n [key: string]: TYPES.ColumnIconOption;\n} {\n return icons.get();\n}\n/** 清理内部的全局变量 如注册的icon theme等 以及共享的header column类实例 */\nfunction clearGlobal() {\n register.clearAll();\n // headers.type.clearGlobal();\n // columns.type.clearGlobal();\n}\nTYPES.AggregationType;\n\nexport * from './components';\nexport * from './scenegraph/group-creater/cell-type';\n\nexport { TABLE_EVENT_TYPE } from './core/TABLE_EVENT_TYPE';\nexport { PIVOT_CHART_EVENT_TYPE, PIVOT_TABLE_EVENT_TYPE } from './ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE';\n\nexport { EventTarget } from './event/EventTarget';\n"]}
|
|
@@ -974,14 +974,16 @@ class PivotHeaderLayoutMap {
|
|
|
974
974
|
const colHeaderPath = {};
|
|
975
975
|
colHeaderPath.dimensionKey = colHeader.dimensionKey, colHeaderPath.indicatorKey = colHeader.indicatorKey,
|
|
976
976
|
colHeaderPath.value = null !== (_c = null !== (_a = colHeader.value) && void 0 !== _a ? _a : null === (_b = this.getIndicatorInfoByIndicatorKey(colHeader.indicatorKey)) || void 0 === _b ? void 0 : _b.title) && void 0 !== _c ? _c : "",
|
|
977
|
-
colHeaderPath.virtual = colHeader.virtual,
|
|
977
|
+
colHeaderPath.virtual = colHeader.virtual, colHeaderPath.role = colHeader.role,
|
|
978
|
+
headerPaths.colHeaderPaths.push(colHeaderPath);
|
|
978
979
|
})), null === (_b = headerPathsWidthNode.rowHeaderPaths) || void 0 === _b || _b.forEach((rowHeader => {
|
|
979
980
|
var _a, _b, _c;
|
|
980
981
|
if ("axis" !== rowHeader.dimensionKey) {
|
|
981
982
|
const rowHeaderPath = {};
|
|
982
983
|
rowHeaderPath.dimensionKey = rowHeader.dimensionKey, rowHeaderPath.indicatorKey = rowHeader.indicatorKey,
|
|
983
984
|
rowHeaderPath.value = null !== (_c = null !== (_a = rowHeader.value) && void 0 !== _a ? _a : null === (_b = this.getIndicatorInfoByIndicatorKey(rowHeader.indicatorKey)) || void 0 === _b ? void 0 : _b.title) && void 0 !== _c ? _c : "",
|
|
984
|
-
rowHeaderPath.virtual = rowHeader.virtual,
|
|
985
|
+
rowHeaderPath.virtual = rowHeader.virtual, rowHeaderPath.role = rowHeader.role,
|
|
986
|
+
headerPaths.rowHeaderPaths.push(rowHeaderPath);
|
|
985
987
|
}
|
|
986
988
|
})), headerPaths;
|
|
987
989
|
}
|
|
@@ -1326,10 +1328,8 @@ class PivotHeaderLayoutMap {
|
|
|
1326
1328
|
col: this.rowHeaderLevelCount - 1,
|
|
1327
1329
|
row: i
|
|
1328
1330
|
};
|
|
1329
|
-
let col, row, defaultCol, defaultRow,
|
|
1330
|
-
(null == colHeaderPaths ? void 0 : colHeaderPaths.length) >= 1 && (null == rowHeaderPaths ? void 0 : rowHeaderPaths.length) >= 1 && (
|
|
1331
|
-
needLowestLevel_rowPaths = !0), colHeaderPaths.length >= this.columnHeaderLevelCount && (needLowestLevel_colPaths = !0),
|
|
1332
|
-
rowHeaderPaths.length >= this.rowHeaderLevelCount && (needLowestLevel_rowPaths = !0);
|
|
1331
|
+
let col, row, defaultCol, defaultRow, needLowestLevel = !1;
|
|
1332
|
+
(null == colHeaderPaths ? void 0 : colHeaderPaths.length) >= 1 && (null == rowHeaderPaths ? void 0 : rowHeaderPaths.length) >= 1 && (needLowestLevel = !0);
|
|
1333
1333
|
let rowDimensionFinded, colDimensionFinded, rowArr = this.rowTree, colArr = this.columnTree;
|
|
1334
1334
|
if (colHeaderPaths) for (let i = 0; i < colHeaderPaths.length; i++) {
|
|
1335
1335
|
const colDimension = colHeaderPaths[i];
|
|
@@ -1339,7 +1339,7 @@ class PivotHeaderLayoutMap {
|
|
|
1339
1339
|
vutils_1.isValid)(colDimension.indicatorKey) && dimension.indicatorKey === colDimension.indicatorKey && ((0,
|
|
1340
1340
|
vutils_1.isValid)(dimension.value) && (0, vutils_1.isValid)(colDimension.value) && colDimension.value === dimension.value || !(0,
|
|
1341
1341
|
vutils_1.isValid)(dimension.value) || !(0, vutils_1.isValid)(colDimension.value))) {
|
|
1342
|
-
colArr = dimension.children,
|
|
1342
|
+
colArr = dimension.children, needLowestLevel && !colArr ? colDimensionFinded = dimension : needLowestLevel || (colDimensionFinded = dimension);
|
|
1343
1343
|
break;
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
@@ -1360,13 +1360,12 @@ class PivotHeaderLayoutMap {
|
|
|
1360
1360
|
if (!(0, vutils_1.isValid)(rowDimension.indicatorKey) && dimension.dimensionKey === rowDimension.dimensionKey && dimension.value === rowDimension.value || (0,
|
|
1361
1361
|
vutils_1.isValid)(rowDimension.indicatorKey) && dimension.indicatorKey === rowDimension.indicatorKey && (!(0,
|
|
1362
1362
|
vutils_1.isValid)(rowDimension.value) || dimension.value === rowDimension.value)) {
|
|
1363
|
-
rowArr = dimension.children, (!
|
|
1363
|
+
rowArr = dimension.children, (!needLowestLevel || rowArr && !rowArr.some((row => "axis" === row.dimensionKey))) && needLowestLevel || (rowDimensionFinded = dimension);
|
|
1364
1364
|
break;
|
|
1365
1365
|
}
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
|
-
if (forceBody || !
|
|
1369
|
-
vutils_1.isValid)(row)) && colDimensionFinded) {
|
|
1368
|
+
if (forceBody || !needLowestLevel || (rowDimensionFinded || (0, vutils_1.isValid)(row)) && colDimensionFinded) {
|
|
1370
1369
|
if (rowDimensionFinded || forceBody) {
|
|
1371
1370
|
row = this.columnHeaderLevelCount;
|
|
1372
1371
|
const {startInTotal: startInTotal, afterSpanLevel: afterSpanLevel} = null !== (_e = rowDimensionFinded) && void 0 !== _e ? _e : defaultDimension;
|
|
@@ -1509,7 +1508,7 @@ class PivotHeaderLayoutMap {
|
|
|
1509
1508
|
break;
|
|
1510
1509
|
}
|
|
1511
1510
|
}
|
|
1512
|
-
if (!isCol) for (let k = 0; null !== (_a =
|
|
1511
|
+
if (!isCol) for (let k = 0; k < (null !== (_a = null == rowArr ? void 0 : rowArr.length) && void 0 !== _a ? _a : 0); k++) {
|
|
1513
1512
|
const dimension = rowArr[k];
|
|
1514
1513
|
if ((0, vutils_1.isValid)(highlightDimension.dimensionKey) && dimension.dimensionKey === highlightDimension.dimensionKey && dimension.value === highlightDimension.value || (0,
|
|
1515
1514
|
vutils_1.isValid)(highlightDimension.indicatorKey) && dimension.indicatorKey === highlightDimension.indicatorKey && (dimension.value === highlightDimension.value || !(0,
|