@visactor/vtable 0.15.0-alpha.1 → 0.15.0-alpha.3
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/ListTable.d.ts +0 -7
- package/cjs/ListTable.js +3 -78
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/body-helper/body-helper.js.map +1 -1
- package/cjs/body-helper/style/CheckboxStyle.js.map +1 -1
- package/cjs/body-helper/style/ImageStyle.js.map +1 -1
- package/cjs/body-helper/style/MultilineTextStyle.js.map +1 -1
- package/cjs/body-helper/style/NumberStyle.js.map +1 -1
- package/cjs/body-helper/style/ProgressBarStyle.js.map +1 -1
- package/cjs/body-helper/style/Style.js.map +1 -1
- package/cjs/body-helper/style.js.map +1 -1
- package/cjs/chartModule.js.map +1 -1
- package/cjs/components/axis/axis.js.map +1 -1
- package/cjs/components/axis/band-scale.js.map +1 -1
- package/cjs/components/axis/get-axis-attributes.js.map +1 -1
- package/cjs/components/axis/get-axis-component-size.js.map +1 -1
- package/cjs/components/axis/label-overlap.js.map +1 -1
- package/cjs/components/axis/linear-scale.js.map +1 -1
- package/cjs/components/legend/continue-legend/continue-legend.js.map +1 -1
- package/cjs/components/legend/continue-legend/get-continue-legend-attributes.js.map +1 -1
- package/cjs/components/legend/create-legend.js.map +1 -1
- package/cjs/components/legend/discrete-legend/discrete-legend.js.map +1 -1
- package/cjs/components/legend/discrete-legend/get-discrete-legend-attributes.js.map +1 -1
- package/cjs/components/menu/dom/BaseMenu.js.map +1 -1
- package/cjs/components/menu/dom/Menu.js.map +1 -1
- package/cjs/components/menu/dom/MenuHandler.js.map +1 -1
- package/cjs/components/menu/dom/logic/MenuContainer.js.map +1 -1
- package/cjs/components/menu/dom/logic/MenuElement.js.map +1 -1
- package/cjs/components/menu/dom/logic/MenuElementStyle.js.map +1 -1
- package/cjs/components/title/title.js.map +1 -1
- package/cjs/components/tooltip/BaseTooltip.js.map +1 -1
- package/cjs/components/tooltip/Tooltip.js.map +1 -1
- package/cjs/components/tooltip/TooltipHandler.js.map +1 -1
- package/cjs/components/tooltip/logic/BubbleTooltipElement.js.map +1 -1
- package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -1
- package/cjs/components/util/orient.js.map +1 -1
- package/cjs/components/util/register.js.map +1 -1
- package/cjs/components/util/transform.js.map +1 -1
- package/cjs/core/BaseTable.d.ts +1 -1
- package/cjs/core/BaseTable.js +8 -6
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/FouseInput.js.map +1 -1
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +0 -2
- package/cjs/core/TABLE_EVENT_TYPE.js +1 -3
- package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/cjs/core/style.js.map +1 -1
- package/cjs/core/tableHelper.js.map +1 -1
- package/cjs/core.js.map +1 -1
- package/cjs/data/CachedDataSource.js.map +1 -1
- package/cjs/data/DataSource.d.ts +1 -7
- package/cjs/data/DataSource.js +7 -42
- package/cjs/data/DataSource.js.map +1 -1
- package/cjs/data/FilterDataSource.js.map +1 -1
- package/cjs/data.js.map +1 -1
- package/cjs/dataset/DataStatistics.js.map +1 -1
- package/cjs/dataset/dataset-pivot-table.js.map +1 -1
- package/cjs/dataset/dataset.js.map +1 -1
- package/cjs/dataset/flatDataToObject.js.map +1 -1
- package/cjs/dataset/statistics-helper.js.map +1 -1
- package/cjs/event/EventHandler.js.map +1 -1
- package/cjs/event/EventTarget.js.map +1 -1
- package/cjs/event/VChartEventProxy.js.map +1 -1
- package/cjs/event/drill.js.map +1 -1
- package/cjs/event/event.js.map +1 -1
- package/cjs/event/listener/container-dom.js +1 -5
- package/cjs/event/listener/container-dom.js.map +1 -1
- package/cjs/event/listener/scroll-bar.js.map +1 -1
- package/cjs/event/listener/table-group.js +23 -29
- package/cjs/event/listener/table-group.js.map +1 -1
- package/cjs/event/listener/touch.js.map +1 -1
- package/cjs/event/media-click.js +2 -1
- package/cjs/event/media-click.js.map +1 -1
- package/cjs/event/pivot-chart/axis-click.js.map +1 -1
- package/cjs/event/pivot-chart/axis-hover.js.map +1 -1
- package/cjs/event/scroll.js.map +1 -1
- package/cjs/event/sparkline-event.js +1 -2
- package/cjs/event/sparkline-event.js.map +1 -1
- package/cjs/event/util.js.map +1 -1
- package/cjs/header-helper/header-helper.js.map +1 -1
- package/cjs/header-helper/style/CheckboxStyle.js.map +1 -1
- package/cjs/header-helper/style/ImageStyle.js.map +1 -1
- package/cjs/header-helper/style/MultilineTextHeaderStyle.js.map +1 -1
- package/cjs/header-helper/style/SortHeaderStyle.js.map +1 -1
- package/cjs/header-helper/style/Style.js.map +1 -1
- package/cjs/header-helper/style.js.map +1 -1
- package/cjs/icons.js.map +1 -1
- package/cjs/index.d.ts +3 -3
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/layout/chart-helper/get-axis-config.js.map +1 -1
- package/cjs/layout/chart-helper/get-axis-domain.js.map +1 -1
- package/cjs/layout/chart-helper/get-chart-spec.js.map +1 -1
- package/cjs/layout/chart-helper/zero-align.js.map +1 -1
- package/cjs/layout/index.js.map +1 -1
- package/cjs/layout/pivot-header-layout.d.ts +1 -0
- package/cjs/layout/pivot-header-layout.js +4 -1
- package/cjs/layout/pivot-header-layout.js.map +1 -1
- package/cjs/layout/pivot-layout-helper.js.map +1 -1
- package/cjs/layout/pivot-layout.js.map +1 -1
- package/cjs/layout/simple-header-layout.d.ts +1 -0
- package/cjs/layout/simple-header-layout.js +3 -0
- package/cjs/layout/simple-header-layout.js.map +1 -1
- package/cjs/plugins/chartModules.js.map +1 -1
- package/cjs/plugins/icons.js.map +1 -1
- package/cjs/plugins/themes.js.map +1 -1
- package/cjs/register.d.ts +0 -2
- package/cjs/register.js +3 -8
- package/cjs/register.js.map +1 -1
- package/cjs/render/jsx/index.js.map +1 -1
- package/cjs/render/layout/arc.js.map +1 -1
- package/cjs/render/layout/circle.js.map +1 -1
- package/cjs/render/layout/container.js.map +1 -1
- package/cjs/render/layout/direction.js.map +1 -1
- package/cjs/render/layout/element.js.map +1 -1
- package/cjs/render/layout/group-element.js.map +1 -1
- package/cjs/render/layout/group.js.map +1 -1
- package/cjs/render/layout/icon.js.map +1 -1
- package/cjs/render/layout/image.js.map +1 -1
- package/cjs/render/layout/index.js.map +1 -1
- package/cjs/render/layout/line.js.map +1 -1
- package/cjs/render/layout/percent-calc.js.map +1 -1
- package/cjs/render/layout/rect.js.map +1 -1
- package/cjs/render/layout/tag.js.map +1 -1
- package/cjs/render/layout/text.js.map +1 -1
- package/cjs/scenegraph/component/cell-content.js.map +1 -1
- package/cjs/scenegraph/component/cell-mover.js.map +1 -1
- package/cjs/scenegraph/component/custom.js.map +1 -1
- package/cjs/scenegraph/component/drill-icon.js.map +1 -1
- package/cjs/scenegraph/component/menu.js.map +1 -1
- package/cjs/scenegraph/component/table-component.js.map +1 -1
- package/cjs/scenegraph/component/util.js.map +1 -1
- package/cjs/scenegraph/debug-tool/debug-tool.js.map +1 -1
- package/cjs/scenegraph/debug-tool/index.js.map +1 -1
- package/cjs/scenegraph/graphic/chart.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/index.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
- package/cjs/scenegraph/graphic/group.js.map +1 -1
- package/cjs/scenegraph/graphic/icon.js.map +1 -1
- package/cjs/scenegraph/graphic/text.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js +10 -3
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/column.js.map +1 -1
- package/cjs/scenegraph/group-creater/init-scenegraph.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +3 -4
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/update-auto-column.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/update-auto-row.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/util.js.map +1 -1
- package/cjs/scenegraph/icon/icon-update.js.map +1 -1
- package/cjs/scenegraph/layout/auto-height.js.map +1 -1
- package/cjs/scenegraph/layout/compute-col-width.d.ts +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js +8 -10
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
- package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
- package/cjs/scenegraph/layout/frozen.js +18 -3
- package/cjs/scenegraph/layout/frozen.js.map +1 -1
- package/cjs/scenegraph/layout/move-cell.js.map +1 -1
- package/cjs/scenegraph/layout/update-height.js.map +1 -1
- package/cjs/scenegraph/layout/update-row.js +3 -4
- package/cjs/scenegraph/layout/update-row.js.map +1 -1
- package/cjs/scenegraph/layout/update-width.js.map +1 -1
- package/cjs/scenegraph/refresh-node/update-chart.js.map +1 -1
- package/cjs/scenegraph/scenegraph.d.ts +0 -1
- package/cjs/scenegraph/scenegraph.js +5 -12
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/scenegraph/select/create-select-border.js.map +1 -1
- package/cjs/scenegraph/select/delete-select-border.js.map +1 -1
- package/cjs/scenegraph/select/move-select-border.js.map +1 -1
- package/cjs/scenegraph/select/update-select-border.js.map +1 -1
- package/cjs/scenegraph/stick-text/index.js.map +1 -1
- package/cjs/scenegraph/style/corner-cell.js.map +1 -1
- package/cjs/scenegraph/style/frame-border.js.map +1 -1
- package/cjs/scenegraph/utils/border-line.js.map +1 -1
- package/cjs/scenegraph/utils/break-string.js.map +1 -1
- package/cjs/scenegraph/utils/cell-pos.js.map +1 -1
- package/cjs/scenegraph/utils/deal-promise-data.js.map +1 -1
- package/cjs/scenegraph/utils/empty-group.js.map +1 -1
- package/cjs/scenegraph/utils/font.js.map +1 -1
- package/cjs/scenegraph/utils/get-cell-merge.js.map +1 -1
- package/cjs/scenegraph/utils/get-hierarchy-offset.js.map +1 -1
- package/cjs/scenegraph/utils/get-prop.js.map +1 -1
- package/cjs/scenegraph/utils/icon.js.map +1 -1
- package/cjs/scenegraph/utils/is-merge-cell-group.js.map +1 -1
- package/cjs/scenegraph/utils/keep-aspect-ratio.js.map +1 -1
- package/cjs/scenegraph/utils/padding.js.map +1 -1
- package/cjs/scenegraph/utils/render-service.js.map +1 -1
- package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/cjs/scenegraph/utils/text-measure.js.map +1 -1
- package/cjs/scenegraph/utils/text-pos.js.map +1 -1
- package/cjs/scenegraph/utils/update-container.js.map +1 -1
- package/cjs/state/cell-move/adjust-header.js.map +1 -1
- package/cjs/state/cell-move/index.js.map +1 -1
- package/cjs/state/common/check-in-select.js.map +1 -1
- package/cjs/state/drill/index.js.map +1 -1
- package/cjs/state/frozen/index.js.map +1 -1
- package/cjs/state/hover/col.js.map +1 -1
- package/cjs/state/hover/is-cell-hover.js.map +1 -1
- package/cjs/state/hover/row.js.map +1 -1
- package/cjs/state/hover/single.js.map +1 -1
- package/cjs/state/hover/update-cell.js.map +1 -1
- package/cjs/state/hover/update-position.js.map +1 -1
- package/cjs/state/resize/update-resize-column.js +6 -15
- package/cjs/state/resize/update-resize-column.js.map +1 -1
- package/cjs/state/select/update-position.js.map +1 -1
- package/cjs/state/sort/index.js.map +1 -1
- package/cjs/state/spark-line/index.js.map +1 -1
- package/cjs/state/state.js.map +1 -1
- package/cjs/themes/ARCO.js +2 -1
- package/cjs/themes/ARCO.js.map +1 -1
- package/cjs/themes/BRIGHT.js +1 -1
- package/cjs/themes/BRIGHT.js.map +1 -1
- package/cjs/themes/DARK.js +1 -1
- package/cjs/themes/DARK.js.map +1 -1
- package/cjs/themes/DEFAULT.js +1 -1
- package/cjs/themes/DEFAULT.js.map +1 -1
- package/cjs/themes/SIMPLIFY.js +1 -1
- package/cjs/themes/SIMPLIFY.js.map +1 -1
- package/cjs/themes/theme.js +1 -1
- package/cjs/themes/theme.js.map +1 -1
- package/cjs/themes.js.map +1 -1
- package/cjs/tools/LimitPromiseQueue.js.map +1 -1
- package/cjs/tools/NumberMap.js.map +1 -1
- package/cjs/tools/Rect.js +1 -2
- package/cjs/tools/Rect.js.map +1 -1
- package/cjs/tools/calc.js +1 -1
- package/cjs/tools/calc.js.map +1 -1
- package/cjs/tools/debounce.js +1 -1
- package/cjs/tools/debounce.js.map +1 -1
- package/cjs/tools/diff-cell.js +2 -2
- package/cjs/tools/diff-cell.js.map +1 -1
- package/cjs/tools/dom.js +1 -1
- package/cjs/tools/dom.js.map +1 -1
- package/cjs/tools/env.js +1 -1
- package/cjs/tools/env.js.map +1 -1
- package/cjs/tools/get-data-path/create-dataset.js.map +1 -1
- package/cjs/tools/get-data-path/index.js.map +1 -1
- package/cjs/tools/global.js +1 -1
- package/cjs/tools/global.js.map +1 -1
- package/cjs/tools/helper.js +1 -1
- package/cjs/tools/helper.js.map +1 -1
- package/cjs/tools/icons.js.map +1 -1
- package/cjs/tools/isx.js.map +1 -1
- package/cjs/tools/pixel-ratio.js.map +1 -1
- package/cjs/tools/sort.js.map +1 -1
- package/cjs/tools/style.js.map +1 -1
- package/cjs/tools/util.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +0 -2
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/column/index.js.map +1 -1
- package/cjs/ts-types/column/style.js.map +1 -1
- package/cjs/ts-types/column/type.js.map +1 -1
- package/cjs/ts-types/common.d.ts +0 -6
- package/cjs/ts-types/common.js.map +1 -1
- package/cjs/ts-types/component/axis.js.map +1 -1
- package/cjs/ts-types/component/legend.js.map +1 -1
- package/cjs/ts-types/component/title.js.map +1 -1
- package/cjs/ts-types/component/util.js.map +1 -1
- package/cjs/ts-types/customElement.js.map +1 -1
- package/cjs/ts-types/customLayout.js.map +1 -1
- package/cjs/ts-types/events.d.ts +2 -12
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/ts-types/icon.js.map +1 -1
- package/cjs/ts-types/index.js.map +1 -1
- package/cjs/ts-types/list-table/define/Composite-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/basic-define.d.ts +1 -4
- package/cjs/ts-types/list-table/define/basic-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/chart-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/checkbox-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/image-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/index.js.map +1 -1
- package/cjs/ts-types/list-table/define/link-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/multilinetext-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/progressbar-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/sparkline-define.js.map +1 -1
- package/cjs/ts-types/list-table/index.js.map +1 -1
- package/cjs/ts-types/list-table/layout-map/api.js.map +1 -1
- package/cjs/ts-types/list-table/layout-map/index.js.map +1 -1
- package/cjs/ts-types/menu.js.map +1 -1
- package/cjs/ts-types/new-data-set.js.map +1 -1
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -1
- package/cjs/ts-types/pivot-table/corner.js.map +1 -1
- package/cjs/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -1
- package/cjs/ts-types/pivot-table/dimension/image-dimension.js.map +1 -1
- package/cjs/ts-types/pivot-table/dimension/index.js.map +1 -1
- package/cjs/ts-types/pivot-table/dimension/link-dimension.js.map +1 -1
- package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -1
- package/cjs/ts-types/pivot-table/index.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/image-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/link-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/title.js.map +1 -1
- package/cjs/ts-types/sparkline.js.map +1 -1
- package/cjs/ts-types/style-define.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +1 -8
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/cjs/ts-types/theme.js.map +1 -1
- package/cjs/ts-types/tooltip.js.map +1 -1
- package/dist/vtable.js +151 -358
- package/dist/vtable.min.js +2 -2
- package/es/ListTable.d.ts +0 -7
- package/es/ListTable.js +1 -59
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.js.map +1 -1
- package/es/PivotTable.js.map +1 -1
- package/es/body-helper/body-helper.js.map +1 -1
- package/es/body-helper/style/CheckboxStyle.js.map +1 -1
- package/es/body-helper/style/ImageStyle.js.map +1 -1
- package/es/body-helper/style/MultilineTextStyle.js.map +1 -1
- package/es/body-helper/style/NumberStyle.js.map +1 -1
- package/es/body-helper/style/ProgressBarStyle.js.map +1 -1
- package/es/body-helper/style/Style.js.map +1 -1
- package/es/body-helper/style.js.map +1 -1
- package/es/chartModule.js.map +1 -1
- package/es/components/axis/axis.js.map +1 -1
- package/es/components/axis/band-scale.js.map +1 -1
- package/es/components/axis/get-axis-attributes.js.map +1 -1
- package/es/components/axis/get-axis-component-size.js.map +1 -1
- package/es/components/axis/label-overlap.js.map +1 -1
- package/es/components/axis/linear-scale.js.map +1 -1
- package/es/components/legend/continue-legend/continue-legend.js.map +1 -1
- package/es/components/legend/continue-legend/get-continue-legend-attributes.js.map +1 -1
- package/es/components/legend/create-legend.js.map +1 -1
- package/es/components/legend/discrete-legend/discrete-legend.js.map +1 -1
- package/es/components/legend/discrete-legend/get-discrete-legend-attributes.js.map +1 -1
- package/es/components/menu/dom/BaseMenu.js.map +1 -1
- package/es/components/menu/dom/Menu.js.map +1 -1
- package/es/components/menu/dom/MenuHandler.js.map +1 -1
- package/es/components/menu/dom/logic/MenuContainer.js.map +1 -1
- package/es/components/menu/dom/logic/MenuElement.js.map +1 -1
- package/es/components/menu/dom/logic/MenuElementStyle.js.map +1 -1
- package/es/components/title/title.js.map +1 -1
- package/es/components/tooltip/BaseTooltip.js.map +1 -1
- package/es/components/tooltip/Tooltip.js.map +1 -1
- package/es/components/tooltip/TooltipHandler.js.map +1 -1
- package/es/components/tooltip/logic/BubbleTooltipElement.js.map +1 -1
- package/es/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -1
- package/es/components/util/orient.js.map +1 -1
- package/es/components/util/register.js.map +1 -1
- package/es/components/util/transform.js.map +1 -1
- package/es/core/BaseTable.d.ts +1 -1
- package/es/core/BaseTable.js +8 -6
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/FouseInput.js.map +1 -1
- package/es/core/TABLE_EVENT_TYPE.d.ts +0 -2
- package/es/core/TABLE_EVENT_TYPE.js +1 -3
- package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/es/core/style.js.map +1 -1
- package/es/core/tableHelper.js.map +1 -1
- package/es/core.js.map +1 -1
- package/es/data/CachedDataSource.js.map +1 -1
- package/es/data/DataSource.d.ts +1 -7
- package/es/data/DataSource.js +8 -43
- package/es/data/DataSource.js.map +1 -1
- package/es/data/FilterDataSource.js.map +1 -1
- package/es/data.js.map +1 -1
- package/es/dataset/DataStatistics.js.map +1 -1
- package/es/dataset/dataset-pivot-table.js.map +1 -1
- package/es/dataset/dataset.js.map +1 -1
- package/es/dataset/flatDataToObject.js.map +1 -1
- package/es/dataset/statistics-helper.js.map +1 -1
- package/es/event/EventHandler.js.map +1 -1
- package/es/event/EventTarget.js.map +1 -1
- package/es/event/VChartEventProxy.js.map +1 -1
- package/es/event/drill.js.map +1 -1
- package/es/event/event.js.map +1 -1
- package/es/event/listener/container-dom.js +1 -5
- package/es/event/listener/container-dom.js.map +1 -1
- package/es/event/listener/scroll-bar.js.map +1 -1
- package/es/event/listener/table-group.js +23 -29
- package/es/event/listener/table-group.js.map +1 -1
- package/es/event/listener/touch.js.map +1 -1
- package/es/event/media-click.js +2 -1
- package/es/event/media-click.js.map +1 -1
- package/es/event/pivot-chart/axis-click.js.map +1 -1
- package/es/event/pivot-chart/axis-hover.js.map +1 -1
- package/es/event/scroll.js.map +1 -1
- package/es/event/sparkline-event.js +1 -2
- package/es/event/sparkline-event.js.map +1 -1
- package/es/event/util.js.map +1 -1
- package/es/header-helper/header-helper.js.map +1 -1
- package/es/header-helper/style/CheckboxStyle.js.map +1 -1
- package/es/header-helper/style/ImageStyle.js.map +1 -1
- package/es/header-helper/style/MultilineTextHeaderStyle.js.map +1 -1
- package/es/header-helper/style/SortHeaderStyle.js.map +1 -1
- package/es/header-helper/style/Style.js.map +1 -1
- package/es/header-helper/style.js.map +1 -1
- package/es/icons.js.map +1 -1
- package/es/index.d.ts +3 -3
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/layout/chart-helper/get-axis-config.js.map +1 -1
- package/es/layout/chart-helper/get-axis-domain.js.map +1 -1
- package/es/layout/chart-helper/get-chart-spec.js.map +1 -1
- package/es/layout/chart-helper/zero-align.js.map +1 -1
- package/es/layout/index.js.map +1 -1
- package/es/layout/pivot-header-layout.d.ts +1 -0
- package/es/layout/pivot-header-layout.js +4 -1
- package/es/layout/pivot-header-layout.js.map +1 -1
- package/es/layout/pivot-layout-helper.js.map +1 -1
- package/es/layout/pivot-layout.js.map +1 -1
- package/es/layout/simple-header-layout.d.ts +1 -0
- package/es/layout/simple-header-layout.js +3 -0
- package/es/layout/simple-header-layout.js.map +1 -1
- package/es/plugins/chartModules.js.map +1 -1
- package/es/plugins/icons.js.map +1 -1
- package/es/plugins/themes.js.map +1 -1
- package/es/register.d.ts +0 -2
- package/es/register.js +0 -6
- package/es/register.js.map +1 -1
- package/es/render/jsx/index.js.map +1 -1
- package/es/render/layout/arc.js.map +1 -1
- package/es/render/layout/circle.js.map +1 -1
- package/es/render/layout/container.js.map +1 -1
- package/es/render/layout/direction.js.map +1 -1
- package/es/render/layout/element.js.map +1 -1
- package/es/render/layout/group-element.js.map +1 -1
- package/es/render/layout/group.js.map +1 -1
- package/es/render/layout/icon.js.map +1 -1
- package/es/render/layout/image.js.map +1 -1
- package/es/render/layout/index.js.map +1 -1
- package/es/render/layout/line.js.map +1 -1
- package/es/render/layout/percent-calc.js.map +1 -1
- package/es/render/layout/rect.js.map +1 -1
- package/es/render/layout/tag.js.map +1 -1
- package/es/render/layout/text.js.map +1 -1
- package/es/scenegraph/component/cell-content.js.map +1 -1
- package/es/scenegraph/component/cell-mover.js.map +1 -1
- package/es/scenegraph/component/custom.js.map +1 -1
- package/es/scenegraph/component/drill-icon.js.map +1 -1
- package/es/scenegraph/component/menu.js.map +1 -1
- package/es/scenegraph/component/table-component.js.map +1 -1
- package/es/scenegraph/component/util.js.map +1 -1
- package/es/scenegraph/debug-tool/debug-tool.js.map +1 -1
- package/es/scenegraph/debug-tool/index.js.map +1 -1
- package/es/scenegraph/graphic/chart.js.map +1 -1
- package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -1
- package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
- package/es/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -1
- package/es/scenegraph/graphic/contributions/index.js.map +1 -1
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
- package/es/scenegraph/graphic/group.js.map +1 -1
- package/es/scenegraph/graphic/icon.js.map +1 -1
- package/es/scenegraph/graphic/text.js.map +1 -1
- package/es/scenegraph/group-creater/cell-helper.js +10 -3
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
- package/es/scenegraph/group-creater/column-helper.js.map +1 -1
- package/es/scenegraph/group-creater/column.js.map +1 -1
- package/es/scenegraph/group-creater/init-scenegraph.js.map +1 -1
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +3 -3
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
- package/es/scenegraph/group-creater/progress/proxy.js +1 -1
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/sort-vertical.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/update-auto-column.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/update-auto-row.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/util.js.map +1 -1
- package/es/scenegraph/icon/icon-update.js.map +1 -1
- package/es/scenegraph/layout/auto-height.js.map +1 -1
- package/es/scenegraph/layout/compute-col-width.d.ts +1 -1
- package/es/scenegraph/layout/compute-col-width.js +8 -10
- package/es/scenegraph/layout/compute-col-width.js.map +1 -1
- package/es/scenegraph/layout/compute-row-height.js.map +1 -1
- package/es/scenegraph/layout/frozen.js +20 -2
- package/es/scenegraph/layout/frozen.js.map +1 -1
- package/es/scenegraph/layout/move-cell.js.map +1 -1
- package/es/scenegraph/layout/update-height.js.map +1 -1
- package/es/scenegraph/layout/update-row.js +3 -4
- package/es/scenegraph/layout/update-row.js.map +1 -1
- package/es/scenegraph/layout/update-width.js.map +1 -1
- package/es/scenegraph/refresh-node/update-chart.js.map +1 -1
- package/es/scenegraph/scenegraph.d.ts +0 -1
- package/es/scenegraph/scenegraph.js +3 -11
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/scenegraph/select/create-select-border.js.map +1 -1
- package/es/scenegraph/select/delete-select-border.js.map +1 -1
- package/es/scenegraph/select/move-select-border.js.map +1 -1
- package/es/scenegraph/select/update-select-border.js.map +1 -1
- package/es/scenegraph/stick-text/index.js.map +1 -1
- package/es/scenegraph/style/corner-cell.js.map +1 -1
- package/es/scenegraph/style/frame-border.js.map +1 -1
- package/es/scenegraph/utils/border-line.js.map +1 -1
- package/es/scenegraph/utils/break-string.js.map +1 -1
- package/es/scenegraph/utils/cell-pos.js.map +1 -1
- package/es/scenegraph/utils/deal-promise-data.js.map +1 -1
- package/es/scenegraph/utils/empty-group.js.map +1 -1
- package/es/scenegraph/utils/font.js.map +1 -1
- package/es/scenegraph/utils/get-cell-merge.js.map +1 -1
- package/es/scenegraph/utils/get-hierarchy-offset.js.map +1 -1
- package/es/scenegraph/utils/get-prop.js.map +1 -1
- package/es/scenegraph/utils/icon.js.map +1 -1
- package/es/scenegraph/utils/is-merge-cell-group.js.map +1 -1
- package/es/scenegraph/utils/keep-aspect-ratio.js.map +1 -1
- package/es/scenegraph/utils/padding.js.map +1 -1
- package/es/scenegraph/utils/render-service.js.map +1 -1
- package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/es/scenegraph/utils/text-measure.js.map +1 -1
- package/es/scenegraph/utils/text-pos.js.map +1 -1
- package/es/scenegraph/utils/update-container.js.map +1 -1
- package/es/state/cell-move/adjust-header.js.map +1 -1
- package/es/state/cell-move/index.js.map +1 -1
- package/es/state/common/check-in-select.js.map +1 -1
- package/es/state/drill/index.js.map +1 -1
- package/es/state/frozen/index.js.map +1 -1
- package/es/state/hover/col.js.map +1 -1
- package/es/state/hover/is-cell-hover.js.map +1 -1
- package/es/state/hover/row.js.map +1 -1
- package/es/state/hover/single.js.map +1 -1
- package/es/state/hover/update-cell.js.map +1 -1
- package/es/state/hover/update-position.js.map +1 -1
- package/es/state/resize/update-resize-column.js +6 -15
- package/es/state/resize/update-resize-column.js.map +1 -1
- package/es/state/select/update-position.js.map +1 -1
- package/es/state/sort/index.js.map +1 -1
- package/es/state/spark-line/index.js.map +1 -1
- package/es/state/state.js.map +1 -1
- package/es/themes/ARCO.js +2 -1
- package/es/themes/ARCO.js.map +1 -1
- package/es/themes/BRIGHT.js +1 -1
- package/es/themes/BRIGHT.js.map +1 -1
- package/es/themes/DARK.js +1 -1
- package/es/themes/DARK.js.map +1 -1
- package/es/themes/DEFAULT.js +1 -1
- package/es/themes/DEFAULT.js.map +1 -1
- package/es/themes/SIMPLIFY.js +1 -1
- package/es/themes/SIMPLIFY.js.map +1 -1
- package/es/themes/theme.js +1 -1
- package/es/themes/theme.js.map +1 -1
- package/es/themes.js.map +1 -1
- package/es/tools/LimitPromiseQueue.js.map +1 -1
- package/es/tools/NumberMap.js.map +1 -1
- package/es/tools/Rect.js +1 -2
- package/es/tools/Rect.js.map +1 -1
- package/es/tools/calc.js +1 -1
- package/es/tools/calc.js.map +1 -1
- package/es/tools/debounce.js +1 -1
- package/es/tools/debounce.js.map +1 -1
- package/es/tools/diff-cell.js +1 -1
- package/es/tools/diff-cell.js.map +1 -1
- package/es/tools/dom.js +1 -1
- package/es/tools/dom.js.map +1 -1
- package/es/tools/env.js +1 -1
- package/es/tools/env.js.map +1 -1
- package/es/tools/get-data-path/create-dataset.js.map +1 -1
- package/es/tools/get-data-path/index.js.map +1 -1
- package/es/tools/global.js +1 -1
- package/es/tools/global.js.map +1 -1
- package/es/tools/helper.js +1 -1
- package/es/tools/helper.js.map +1 -1
- package/es/tools/icons.js.map +1 -1
- package/es/tools/isx.js.map +1 -1
- package/es/tools/pixel-ratio.js.map +1 -1
- package/es/tools/sort.js.map +1 -1
- package/es/tools/style.js.map +1 -1
- package/es/tools/util.js.map +1 -1
- package/es/ts-types/base-table.d.ts +0 -2
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/column/index.js.map +1 -1
- package/es/ts-types/column/style.js.map +1 -1
- package/es/ts-types/column/type.js.map +1 -1
- package/es/ts-types/common.d.ts +0 -6
- package/es/ts-types/common.js.map +1 -1
- package/es/ts-types/component/axis.js.map +1 -1
- package/es/ts-types/component/legend.js.map +1 -1
- package/es/ts-types/component/title.js.map +1 -1
- package/es/ts-types/component/util.js.map +1 -1
- package/es/ts-types/customElement.js.map +1 -1
- package/es/ts-types/customLayout.js.map +1 -1
- package/es/ts-types/events.d.ts +2 -12
- package/es/ts-types/events.js.map +1 -1
- package/es/ts-types/icon.js.map +1 -1
- package/es/ts-types/index.js.map +1 -1
- package/es/ts-types/list-table/define/Composite-define.js.map +1 -1
- package/es/ts-types/list-table/define/basic-define.d.ts +1 -4
- package/es/ts-types/list-table/define/basic-define.js.map +1 -1
- package/es/ts-types/list-table/define/chart-define.js.map +1 -1
- package/es/ts-types/list-table/define/checkbox-define.js.map +1 -1
- package/es/ts-types/list-table/define/image-define.js.map +1 -1
- package/es/ts-types/list-table/define/index.js.map +1 -1
- package/es/ts-types/list-table/define/link-define.js.map +1 -1
- package/es/ts-types/list-table/define/multilinetext-define.js.map +1 -1
- package/es/ts-types/list-table/define/progressbar-define.js.map +1 -1
- package/es/ts-types/list-table/define/sparkline-define.js.map +1 -1
- package/es/ts-types/list-table/index.js.map +1 -1
- package/es/ts-types/list-table/layout-map/api.js.map +1 -1
- package/es/ts-types/list-table/layout-map/index.js.map +1 -1
- package/es/ts-types/menu.js.map +1 -1
- package/es/ts-types/new-data-set.js.map +1 -1
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -1
- package/es/ts-types/pivot-table/corner.js.map +1 -1
- package/es/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -1
- package/es/ts-types/pivot-table/dimension/image-dimension.js.map +1 -1
- package/es/ts-types/pivot-table/dimension/index.js.map +1 -1
- package/es/ts-types/pivot-table/dimension/link-dimension.js.map +1 -1
- package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -1
- package/es/ts-types/pivot-table/index.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/checkbox-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/image-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/index.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/link-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/title.js.map +1 -1
- package/es/ts-types/sparkline.js.map +1 -1
- package/es/ts-types/style-define.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +1 -8
- package/es/ts-types/table-engine.js.map +1 -1
- package/es/ts-types/theme.js.map +1 -1
- package/es/ts-types/tooltip.js.map +1 -1
- package/package.json +3 -8
- package/cjs/edit/edit-manager.d.ts +0 -13
- package/cjs/edit/edit-manager.js +0 -59
- package/cjs/edit/edit-manager.js.map +0 -1
- package/cjs/edit/editors.d.ts +0 -5
- package/cjs/edit/editors.js +0 -10
- package/cjs/edit/editors.js.map +0 -1
- package/es/edit/edit-manager.d.ts +0 -13
- package/es/edit/edit-manager.js +0 -53
- package/es/edit/edit-manager.js.map +0 -1
- package/es/edit/editors.d.ts +0 -5
- package/es/edit/editors.js +0 -6
- package/es/edit/editors.js.map +0 -1
package/dist/vtable.js
CHANGED
|
@@ -513,12 +513,12 @@
|
|
|
513
513
|
return !0;
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
-
const get$
|
|
516
|
+
const get$5 = (obj, path, defaultValue) => {
|
|
517
517
|
const paths = isString$6(path) ? path.split(".") : path;
|
|
518
518
|
for (let p = 0; p < paths.length; p++) obj = obj ? obj[paths[p]] : void 0;
|
|
519
519
|
return void 0 === obj ? defaultValue : obj;
|
|
520
520
|
};
|
|
521
|
-
var get$
|
|
521
|
+
var get$6 = get$5;
|
|
522
522
|
|
|
523
523
|
const hasOwnProperty$2 = Object.prototype.hasOwnProperty,
|
|
524
524
|
has$2 = (object, key) => null != object && hasOwnProperty$2.call(object, key);
|
|
@@ -664,12 +664,26 @@
|
|
|
664
664
|
return val[val.length - 1];
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
667
|
+
const maxInArray = (arr, compareFn) => {
|
|
668
|
+
var _a;
|
|
669
|
+
if (0 === arr.length) return;
|
|
670
|
+
let max = arr[0];
|
|
671
|
+
for (let i = 1; i < arr.length; i++) {
|
|
672
|
+
const value = arr[i];
|
|
673
|
+
(null !== (_a = null == compareFn ? void 0 : compareFn(value, max)) && void 0 !== _a ? _a : value - max > 0) && (max = value);
|
|
674
|
+
}
|
|
675
|
+
return max;
|
|
676
|
+
};
|
|
677
|
+
const minInArray = (arr, compareFn) => {
|
|
678
|
+
var _a;
|
|
679
|
+
if (0 === arr.length) return;
|
|
680
|
+
let min = arr[0];
|
|
681
|
+
for (let i = 1; i < arr.length; i++) {
|
|
682
|
+
const value = arr[i];
|
|
683
|
+
(null !== (_a = null == compareFn ? void 0 : compareFn(value, min)) && void 0 !== _a ? _a : value - min < 0) && (min = value);
|
|
684
|
+
}
|
|
685
|
+
return min;
|
|
686
|
+
};
|
|
673
687
|
function arrayEqual$1(a, b) {
|
|
674
688
|
if (!isArray$7(a) || !isArray$7(b)) return !1;
|
|
675
689
|
if (a.length !== b.length) return !1;
|
|
@@ -2950,7 +2964,6 @@
|
|
|
2950
2964
|
DROPDOWN_MENU_CLICK: 'dropdown_menu_click',
|
|
2951
2965
|
MOUSEOVER_CHART_SYMBOL: 'mouseover_chart_symbol',
|
|
2952
2966
|
DRAG_SELECT_END: 'drag_select_end',
|
|
2953
|
-
COPY_DATA: 'copy_data',
|
|
2954
2967
|
DROPDOWN_ICON_CLICK: 'dropdown_icon_click',
|
|
2955
2968
|
DROPDOWN_MENU_CLEAR: 'dropdown_menu_clear',
|
|
2956
2969
|
TREE_HIERARCHY_STATE_CHANGE: 'tree_hierarchy_state_change',
|
|
@@ -2965,8 +2978,7 @@
|
|
|
2965
2978
|
MOUSELEAVE_AXIS: 'mouseleave_axis',
|
|
2966
2979
|
CHECKBOX_STATE_CHANGE: 'checkbox_state_change',
|
|
2967
2980
|
AFTER_RENDER: 'after_render',
|
|
2968
|
-
INITIALIZED: 'initialized'
|
|
2969
|
-
CHANGE_CELL_VALUE: 'change_cell_value'
|
|
2981
|
+
INITIALIZED: 'initialized'
|
|
2970
2982
|
};
|
|
2971
2983
|
|
|
2972
2984
|
const judgeType = (value) => {
|
|
@@ -4455,7 +4467,7 @@
|
|
|
4455
4467
|
return null;
|
|
4456
4468
|
}
|
|
4457
4469
|
if (typeof value === 'string') {
|
|
4458
|
-
const t = getIgnoreCase(get$
|
|
4470
|
+
const t = getIgnoreCase(get$4(), value);
|
|
4459
4471
|
if (t) {
|
|
4460
4472
|
if (t instanceof TableTheme) {
|
|
4461
4473
|
return t;
|
|
@@ -4469,7 +4481,7 @@
|
|
|
4469
4481
|
}
|
|
4470
4482
|
return new TableTheme(value, value);
|
|
4471
4483
|
}
|
|
4472
|
-
function get$
|
|
4484
|
+
function get$4() {
|
|
4473
4485
|
return extend(builtin$1, themes$2);
|
|
4474
4486
|
}
|
|
4475
4487
|
var themes = {
|
|
@@ -4480,7 +4492,7 @@
|
|
|
4480
4492
|
SIMPLIFY,
|
|
4481
4493
|
theme: theme$2,
|
|
4482
4494
|
of,
|
|
4483
|
-
get: get$
|
|
4495
|
+
get: get$4
|
|
4484
4496
|
};
|
|
4485
4497
|
|
|
4486
4498
|
var themes$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -4491,7 +4503,7 @@
|
|
|
4491
4503
|
DEFAULT: DEFAULT,
|
|
4492
4504
|
SIMPLIFY: SIMPLIFY,
|
|
4493
4505
|
default: themes,
|
|
4494
|
-
get: get$
|
|
4506
|
+
get: get$4,
|
|
4495
4507
|
of: of,
|
|
4496
4508
|
theme: theme$2
|
|
4497
4509
|
});
|
|
@@ -6431,12 +6443,12 @@
|
|
|
6431
6443
|
return !0;
|
|
6432
6444
|
}
|
|
6433
6445
|
|
|
6434
|
-
const get$
|
|
6446
|
+
const get$2 = (obj, path, defaultValue) => {
|
|
6435
6447
|
const paths = isString$3(path) ? path.split(".") : path;
|
|
6436
6448
|
for (let p = 0; p < paths.length; p++) obj = obj ? obj[paths[p]] : void 0;
|
|
6437
6449
|
return void 0 === obj ? defaultValue : obj;
|
|
6438
6450
|
};
|
|
6439
|
-
var get$
|
|
6451
|
+
var get$3 = get$2;
|
|
6440
6452
|
|
|
6441
6453
|
const hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
6442
6454
|
has = (object, key) => null != object && hasOwnProperty.call(object, key);
|
|
@@ -10841,7 +10853,7 @@
|
|
|
10841
10853
|
pickTarget(x, y, e) {
|
|
10842
10854
|
let target;
|
|
10843
10855
|
const pickResult = this.rootTarget.pick(x, y);
|
|
10844
|
-
return target = pickResult && pickResult.graphic ? pickResult.graphic : pickResult && pickResult.group ? pickResult.group : x >= 0 && x <= get$
|
|
10856
|
+
return target = pickResult && pickResult.graphic ? pickResult.graphic : pickResult && pickResult.group ? pickResult.group : x >= 0 && x <= get$3(this.rootTarget, "width") && y >= 0 && y <= get$3(this.rootTarget, "height") ? this.rootTarget : null, e && (e.pickParams = pickResult.params), target;
|
|
10845
10857
|
}
|
|
10846
10858
|
}
|
|
10847
10859
|
|
|
@@ -28537,9 +28549,9 @@
|
|
|
28537
28549
|
return subTickLineItems;
|
|
28538
28550
|
}
|
|
28539
28551
|
_getTickLineAttribute(type, tickItem, index, tickItems) {
|
|
28540
|
-
let style = get$
|
|
28552
|
+
let style = get$3(this.attribute, `${type}.style`);
|
|
28541
28553
|
const data = this.data[index];
|
|
28542
|
-
style = isFunction$1(style) ? merge$1({}, get$
|
|
28554
|
+
style = isFunction$1(style) ? merge$1({}, get$3(DEFAULT_AXIS_THEME, `${type}.style`), "tick" === type ? style(data.rawValue, index, data, this.data) : style(tickItem.value, index, tickItem, tickItems)) : style;
|
|
28543
28555
|
const {
|
|
28544
28556
|
start: start,
|
|
28545
28557
|
end: end,
|
|
@@ -28567,7 +28579,7 @@
|
|
|
28567
28579
|
tickLength = 0;
|
|
28568
28580
|
(null === (_a = this.attribute.tick) || void 0 === _a ? void 0 : _a.visible) && (null === (_b = this.attribute.tick) || void 0 === _b ? void 0 : _b.inside) === inside && (tickLength = (null === (_c = this.attribute.tick) || void 0 === _c ? void 0 : _c.length) || 4), (null === (_d = this.attribute.subTick) || void 0 === _d ? void 0 : _d.visible) && (null === (_e = this.attribute.subTick) || void 0 === _e ? void 0 : _e.inside) === inside && (tickLength = Math.max(tickLength, (null === (_f = this.attribute.subTick) || void 0 === _f ? void 0 : _f.length) || 2)), offset += tickLength;
|
|
28569
28581
|
const axisVector = this.getRelativeVector(tickDatum.point);
|
|
28570
|
-
layer > 0 && (0 === axisVector[1] ? offset += (this.axisLabelLayerSize[layer - 1].height + get$
|
|
28582
|
+
layer > 0 && (0 === axisVector[1] ? offset += (this.axisLabelLayerSize[layer - 1].height + get$3(this.attribute, "label.space", 4)) * layer : offset += (this.axisLabelLayerSize[layer - 1].width + get$3(this.attribute, "label.space", 4)) * layer);
|
|
28571
28583
|
const point = this.getVerticalCoord(tickDatum.point, offset, inside),
|
|
28572
28584
|
vector = this.getVerticalVector(offset, inside, point),
|
|
28573
28585
|
text = formatMethod ? formatMethod(`${tickDatum.label}`, tickDatum, index, tickData, layer) : tickDatum.label;
|
|
@@ -28935,7 +28947,7 @@
|
|
|
28935
28947
|
axisVector = this.getRelativeVector();
|
|
28936
28948
|
let labelLength = 0;
|
|
28937
28949
|
if ((null === (_a = this.attribute.label) || void 0 === _a ? void 0 : _a.visible) && !1 === (null === (_b = this.attribute.label) || void 0 === _b ? void 0 : _b.inside)) {
|
|
28938
|
-
const space = +get$
|
|
28950
|
+
const space = +get$3(this.attribute, "label.space", 4);
|
|
28939
28951
|
labelLength += space;
|
|
28940
28952
|
const layerCount = Object.keys(this.axisLabelLayerSize).length;
|
|
28941
28953
|
if (0 === axisVector[1]) {
|
|
@@ -29512,7 +29524,7 @@
|
|
|
29512
29524
|
}), startY += spaceRow + itemHeight), itemsContainer.add(itemGroup);
|
|
29513
29525
|
});
|
|
29514
29526
|
let pagerRendered = !1;
|
|
29515
|
-
doWrap && autoPage && pages > maxPages && (pagerRendered = this._renderPager(isHorizontal)), pagerRendered || (itemsContainer.setAttribute("y", this._title ? this._title.AABBBounds.height() + get$
|
|
29527
|
+
doWrap && autoPage && pages > maxPages && (pagerRendered = this._renderPager(isHorizontal)), pagerRendered || (itemsContainer.setAttribute("y", this._title ? this._title.AABBBounds.height() + get$3(this.attribute, "title.space", 8) : 0), this._innerView.add(itemsContainer));
|
|
29516
29528
|
}
|
|
29517
29529
|
_bindEvents() {
|
|
29518
29530
|
if (this.attribute.disableTriggerEvent) return;
|
|
@@ -29559,8 +29571,8 @@
|
|
|
29559
29571
|
});
|
|
29560
29572
|
itemGroup.add(innerGroup);
|
|
29561
29573
|
let focusStartX = 0;
|
|
29562
|
-
const shapeSize = get$
|
|
29563
|
-
shapeSpace = get$
|
|
29574
|
+
const shapeSize = get$3(shapeAttr, "style.size", DEFAULT_SHAPE_SIZE),
|
|
29575
|
+
shapeSpace = get$3(shapeAttr, "space", DEFAULT_SHAPE_SPACE),
|
|
29564
29576
|
itemShape = createSymbol$1(Object.assign(Object.assign({
|
|
29565
29577
|
x: 0,
|
|
29566
29578
|
y: 0,
|
|
@@ -29574,7 +29586,7 @@
|
|
|
29574
29586
|
}), this._appendDataToShape(itemShape, LEGEND_ELEMENT_NAME.itemShape, item, itemGroup, null == shapeAttr ? void 0 : shapeAttr.state), itemShape.addState(isSelected ? LegendStateValue.selected : LegendStateValue.unSelected), innerGroup.add(itemShape);
|
|
29575
29587
|
let focusSpace = 0;
|
|
29576
29588
|
if (focus) {
|
|
29577
|
-
const focusSize = get$
|
|
29589
|
+
const focusSize = get$3(focusIconStyle, "size", DEFAULT_SHAPE_SIZE);
|
|
29578
29590
|
focusShape = createSymbol$1(Object.assign(Object.assign({
|
|
29579
29591
|
x: 0,
|
|
29580
29592
|
y: -focusSize / 2 - 1,
|
|
@@ -29595,9 +29607,9 @@
|
|
|
29595
29607
|
text: labelAttr.formatMethod ? labelAttr.formatMethod(label, item, index) : label
|
|
29596
29608
|
}));
|
|
29597
29609
|
this._appendDataToShape(labelShape, LEGEND_ELEMENT_NAME.itemLabel, item, itemGroup, null == labelAttr ? void 0 : labelAttr.state), labelShape.addState(isSelected ? LegendStateValue.selected : LegendStateValue.unSelected), innerGroup.add(labelShape);
|
|
29598
|
-
const labelSpace = get$
|
|
29610
|
+
const labelSpace = get$3(labelAttr, "space", DEFAULT_LABEL_SPACE);
|
|
29599
29611
|
if (isValid$5(value)) {
|
|
29600
|
-
const valueSpace = get$
|
|
29612
|
+
const valueSpace = get$3(valueAttr, "space", focus ? DEFAULT_VALUE_SPACE : 0),
|
|
29601
29613
|
valueShape = createText$1(Object.assign(Object.assign({
|
|
29602
29614
|
x: 0,
|
|
29603
29615
|
y: 0,
|
|
@@ -29629,7 +29641,7 @@
|
|
|
29629
29641
|
return itemGroup.attribute.width = itemGroupWidth, itemGroup.attribute.height = itemGroupHeight, innerGroup.translateTo(-innerGroupBounds.x1 + parsedPadding[3], -innerGroupBounds.y1 + parsedPadding[0]), itemGroup;
|
|
29630
29642
|
}
|
|
29631
29643
|
_renderPager(isHorizontal) {
|
|
29632
|
-
const renderStartY = this._title ? this._title.AABBBounds.height() + get$
|
|
29644
|
+
const renderStartY = this._title ? this._title.AABBBounds.height() + get$3(this.attribute, "title.space", 8) : 0,
|
|
29633
29645
|
{
|
|
29634
29646
|
maxWidth: maxWidth,
|
|
29635
29647
|
maxHeight: maxHeight,
|
|
@@ -30839,7 +30851,7 @@
|
|
|
30839
30851
|
tooltip: tooltip,
|
|
30840
30852
|
disableTriggerEvent: disableTriggerEvent
|
|
30841
30853
|
});
|
|
30842
|
-
this._innerView.add(slider), this._slider = slider, slider.translateTo(0 - slider.AABBBounds.x1, (this._title ? this._title.AABBBounds.height() + get$
|
|
30854
|
+
this._innerView.add(slider), this._slider = slider, slider.translateTo(0 - slider.AABBBounds.x1, (this._title ? this._title.AABBBounds.height() + get$3(this.attribute, "title.space", DEFAULT_TITLE_SPACE) : 0) - slider.AABBBounds.y1), this._updateColor();
|
|
30843
30855
|
}
|
|
30844
30856
|
_bindEvents() {
|
|
30845
30857
|
this.attribute.disableTriggerEvent || this._slider && this._slider.addEventListener("change", this._onSliderChange);
|
|
@@ -31028,7 +31040,7 @@
|
|
|
31028
31040
|
zIndex: 0
|
|
31029
31041
|
}));
|
|
31030
31042
|
mainContainer.add(background);
|
|
31031
|
-
const titleSpace = this._title ? this._title.AABBBounds.height() + get$
|
|
31043
|
+
const titleSpace = this._title ? this._title.AABBBounds.height() + get$3(this.attribute, "title.space", DEFAULT_TITLE_SPACE) : 0;
|
|
31032
31044
|
mainContainer.translate(0 - mainContainer.AABBBounds.x1, titleSpace - mainContainer.AABBBounds.y1), this._slider = slider;
|
|
31033
31045
|
}
|
|
31034
31046
|
_bindEvents() {
|
|
@@ -49936,7 +49948,6 @@
|
|
|
49936
49948
|
return EVENT_TYPE;
|
|
49937
49949
|
}
|
|
49938
49950
|
treeDataHierarchyState = new Map();
|
|
49939
|
-
changeValuesMap = [];
|
|
49940
49951
|
constructor(obj, pagination, hierarchyExpandLevel) {
|
|
49941
49952
|
super();
|
|
49942
49953
|
this._get = obj?.get.bind(obj) || undefined;
|
|
@@ -50036,9 +50047,6 @@
|
|
|
50036
50047
|
get(index) {
|
|
50037
50048
|
return this.getOriginalRecord(_getIndex(this.currentPagerIndexedData, index));
|
|
50038
50049
|
}
|
|
50039
|
-
getRaw(index) {
|
|
50040
|
-
return this.getRawRecord(_getIndex(this.currentPagerIndexedData, index));
|
|
50041
|
-
}
|
|
50042
50050
|
getIndexKey(index) {
|
|
50043
50051
|
return _getIndex(this.currentPagerIndexedData, index);
|
|
50044
50052
|
}
|
|
@@ -50048,9 +50056,6 @@
|
|
|
50048
50056
|
getField(index, field, col, row, table) {
|
|
50049
50057
|
return this.getOriginalField(_getIndex(this.currentPagerIndexedData, index), field, col, row, table);
|
|
50050
50058
|
}
|
|
50051
|
-
getRawField(index, field, col, row, table) {
|
|
50052
|
-
return this.getRawFieldData(_getIndex(this.currentPagerIndexedData, index), field, col, row, table);
|
|
50053
|
-
}
|
|
50054
50059
|
hasField(index, field) {
|
|
50055
50060
|
return this.hasOriginalField(_getIndex(this.currentPagerIndexedData, index), field);
|
|
50056
50061
|
}
|
|
@@ -50120,28 +50125,6 @@
|
|
|
50120
50125
|
}
|
|
50121
50126
|
return childrenLength;
|
|
50122
50127
|
}
|
|
50123
|
-
changeFieldValue(value, index, field, col, row, table) {
|
|
50124
|
-
if (field === null) {
|
|
50125
|
-
return undefined;
|
|
50126
|
-
}
|
|
50127
|
-
if (index >= 0) {
|
|
50128
|
-
const dataIndex = this.getIndexKey(index);
|
|
50129
|
-
if (!this.changeValuesMap[dataIndex]) {
|
|
50130
|
-
const originRecord = this.getOriginalRecord(dataIndex);
|
|
50131
|
-
this.changeValuesMap[dataIndex] = cloneDeep$2(originRecord);
|
|
50132
|
-
}
|
|
50133
|
-
if (typeof field === 'string' || typeof field === 'number') {
|
|
50134
|
-
const beforeChangedValue = this.changeValuesMap[dataIndex][field];
|
|
50135
|
-
const record = this.getOriginalRecord(dataIndex);
|
|
50136
|
-
if (typeof beforeChangedValue === 'number' && isAllDigits(value)) {
|
|
50137
|
-
record[field] = parseFloat(value);
|
|
50138
|
-
}
|
|
50139
|
-
else {
|
|
50140
|
-
record[field] = value;
|
|
50141
|
-
}
|
|
50142
|
-
}
|
|
50143
|
-
}
|
|
50144
|
-
}
|
|
50145
50128
|
setRecord(record, index) {
|
|
50146
50129
|
const indexed = this.getIndexKey(index);
|
|
50147
50130
|
if (!Array.isArray(indexed)) {
|
|
@@ -50258,17 +50241,9 @@
|
|
|
50258
50241
|
this.currentIndexedData = null;
|
|
50259
50242
|
this.currentPagerIndexedData.length = 0;
|
|
50260
50243
|
}
|
|
50261
|
-
getOriginalRecord(
|
|
50262
|
-
return getValue(this._get(
|
|
50263
|
-
this.recordPromiseCallBack(
|
|
50264
|
-
});
|
|
50265
|
-
}
|
|
50266
|
-
getRawRecord(dataIndex) {
|
|
50267
|
-
if (this.changeValuesMap?.[dataIndex]) {
|
|
50268
|
-
return this.changeValuesMap[dataIndex];
|
|
50269
|
-
}
|
|
50270
|
-
return getValue(this._get(dataIndex), (val) => {
|
|
50271
|
-
this.recordPromiseCallBack(dataIndex, val);
|
|
50244
|
+
getOriginalRecord(index) {
|
|
50245
|
+
return getValue(this._get(index), (val) => {
|
|
50246
|
+
this.recordPromiseCallBack(index, val);
|
|
50272
50247
|
});
|
|
50273
50248
|
}
|
|
50274
50249
|
getOriginalField(index, field, col, row, table) {
|
|
@@ -50280,15 +50255,6 @@
|
|
|
50280
50255
|
this.fieldPromiseCallBack(index, field, val);
|
|
50281
50256
|
});
|
|
50282
50257
|
}
|
|
50283
|
-
getRawFieldData(index, field, col, row, table) {
|
|
50284
|
-
if (field === null) {
|
|
50285
|
-
return undefined;
|
|
50286
|
-
}
|
|
50287
|
-
const record = this.getRawRecord(index);
|
|
50288
|
-
return getField(record, field, col, row, table, (val) => {
|
|
50289
|
-
this.fieldPromiseCallBack(index, field, val);
|
|
50290
|
-
});
|
|
50291
|
-
}
|
|
50292
50258
|
hasOriginalField(index, field) {
|
|
50293
50259
|
if (field === null) {
|
|
50294
50260
|
return false;
|
|
@@ -50309,10 +50275,6 @@
|
|
|
50309
50275
|
length: 0
|
|
50310
50276
|
});
|
|
50311
50277
|
}
|
|
50312
|
-
function isAllDigits(str) {
|
|
50313
|
-
const pattern = /^-?\d+(\.\d+)?$/;
|
|
50314
|
-
return pattern.test(str);
|
|
50315
|
-
}
|
|
50316
50278
|
|
|
50317
50279
|
function _setFieldCache(fCache, index, field, value) {
|
|
50318
50280
|
const recCache = fCache[index] || (fCache[index] = new Map());
|
|
@@ -51643,7 +51605,7 @@
|
|
|
51643
51605
|
};
|
|
51644
51606
|
}
|
|
51645
51607
|
};
|
|
51646
|
-
function get$
|
|
51608
|
+
function get$1() {
|
|
51647
51609
|
return extend(builtins, icons);
|
|
51648
51610
|
}
|
|
51649
51611
|
|
|
@@ -51911,7 +51873,7 @@
|
|
|
51911
51873
|
return undefined;
|
|
51912
51874
|
}
|
|
51913
51875
|
|
|
51914
|
-
get$
|
|
51876
|
+
get$1();
|
|
51915
51877
|
function createImageCellGroup(columnGroup, xOrigin, yOrigin, col, row, width, height, keepAspectRatio, imageAutoSizing, padding, textAlign, textBaseline, table, cellTheme) {
|
|
51916
51878
|
const headerStyle = table._getCellStyle(col, row);
|
|
51917
51879
|
const functionalPadding = getFunctionalProp('padding', headerStyle, col, row, table);
|
|
@@ -51978,7 +51940,7 @@
|
|
|
51978
51940
|
};
|
|
51979
51941
|
}
|
|
51980
51942
|
image.failCallback = () => {
|
|
51981
|
-
const regedIcons = get$
|
|
51943
|
+
const regedIcons = get$1();
|
|
51982
51944
|
image.image = regedIcons.damage_pic.svg;
|
|
51983
51945
|
};
|
|
51984
51946
|
cellGroup.appendChild(image);
|
|
@@ -52835,12 +52797,12 @@
|
|
|
52835
52797
|
const chartTypes = {};
|
|
52836
52798
|
|
|
52837
52799
|
const builtin = {};
|
|
52838
|
-
function get
|
|
52800
|
+
function get() {
|
|
52839
52801
|
return extend(builtin, chartTypes);
|
|
52840
52802
|
}
|
|
52841
52803
|
|
|
52842
52804
|
function createChartCellGroup(cellGroup, columnGroup, xOrigin, yOrigin, col, row, width, height, padding, dataValue, chartModule, chartSpec, chartInstance, dataId, table, cellTheme) {
|
|
52843
|
-
const registerCharts = get
|
|
52805
|
+
const registerCharts = get();
|
|
52844
52806
|
const ClassType = registerCharts[chartModule];
|
|
52845
52807
|
const headerStyle = table._getCellStyle(col, row);
|
|
52846
52808
|
const functionalPadding = getFunctionalProp('padding', headerStyle, col, row, table);
|
|
@@ -53617,7 +53579,7 @@
|
|
|
53617
53579
|
return cellGroup;
|
|
53618
53580
|
}
|
|
53619
53581
|
|
|
53620
|
-
const regedIcons$1 = get$
|
|
53582
|
+
const regedIcons$1 = get$1();
|
|
53621
53583
|
function createVideoCellGroup(columnGroup, xOrigin, yOrigin, col, row, width, height, keepAspectRatio, imageAutoSizing, padding, textAlign, textBaseline, table, cellTheme) {
|
|
53622
53584
|
const headerStyle = table._getCellStyle(col, row);
|
|
53623
53585
|
const functionalPadding = getFunctionalProp('padding', headerStyle, col, row, table);
|
|
@@ -53948,6 +53910,13 @@
|
|
|
53948
53910
|
axis.overlap();
|
|
53949
53911
|
}
|
|
53950
53912
|
else if (table.internalProps.layoutMap.isEmpty(col, row)) {
|
|
53913
|
+
cellGroup.setAttributes({
|
|
53914
|
+
fill: false,
|
|
53915
|
+
stroke: false
|
|
53916
|
+
});
|
|
53917
|
+
cellGroup.clear();
|
|
53918
|
+
}
|
|
53919
|
+
else if (table.internalProps.layoutMap.isAxisCell(col, row)) {
|
|
53951
53920
|
cellGroup.clear();
|
|
53952
53921
|
}
|
|
53953
53922
|
}
|
|
@@ -54016,6 +53985,17 @@
|
|
|
54016
53985
|
const hierarchyOffset = getHierarchyOffset(col, row, table);
|
|
54017
53986
|
const lineClamp = cellStyle.lineClamp;
|
|
54018
53987
|
const padding = getQuadProps(getProp('padding', cellStyle, col, row, table)) ?? [0, 0, 0, 0];
|
|
53988
|
+
const textAlign = cellTheme.text.textAlign;
|
|
53989
|
+
let x = 0;
|
|
53990
|
+
if (textAlign === 'center') {
|
|
53991
|
+
x = padding[3] + (cellWidth - (padding[1] + padding[3])) / 2;
|
|
53992
|
+
}
|
|
53993
|
+
else if (textAlign === 'right') {
|
|
53994
|
+
x = padding[3] + cellWidth - (padding[1] + padding[3]);
|
|
53995
|
+
}
|
|
53996
|
+
else {
|
|
53997
|
+
x = padding[3];
|
|
53998
|
+
}
|
|
54019
53999
|
const attribute = {
|
|
54020
54000
|
text: textArr.length === 1 && !autoWrapText ? textArr[0] : textArr,
|
|
54021
54001
|
maxLineWidth: cellWidth - (padding[1] + padding[3] + hierarchyOffset),
|
|
@@ -54025,7 +54005,8 @@
|
|
|
54025
54005
|
wordBreak: 'break-word',
|
|
54026
54006
|
heightLimit: cellHeight - (padding[0] + padding[2]),
|
|
54027
54007
|
pickable: false,
|
|
54028
|
-
dx: hierarchyOffset
|
|
54008
|
+
dx: hierarchyOffset,
|
|
54009
|
+
x
|
|
54029
54010
|
};
|
|
54030
54011
|
textMark.setAttributes(cellTheme.text ? Object.assign({}, cellTheme.text, attribute) : attribute);
|
|
54031
54012
|
}
|
|
@@ -56319,7 +56300,7 @@
|
|
|
56319
56300
|
}
|
|
56320
56301
|
};
|
|
56321
56302
|
|
|
56322
|
-
const regedIcons = get$
|
|
56303
|
+
const regedIcons = get$1();
|
|
56323
56304
|
class DrillIcon {
|
|
56324
56305
|
icon;
|
|
56325
56306
|
constructor() {
|
|
@@ -57839,15 +57820,15 @@
|
|
|
57839
57820
|
'showHeader' in table.internalProps.layoutMap) {
|
|
57840
57821
|
const temp = table.internalProps.layoutMap.showHeader;
|
|
57841
57822
|
table.internalProps.layoutMap.showHeader = true;
|
|
57842
|
-
maxWidth = computeColWidth(col, 0, table.internalProps.layoutMap.headerLevelCount, table);
|
|
57823
|
+
maxWidth = computeColWidth(col, 0, table.internalProps.layoutMap.headerLevelCount, table, update);
|
|
57843
57824
|
table.internalProps.layoutMap.showHeader = temp;
|
|
57844
57825
|
}
|
|
57845
57826
|
else if (!table.internalProps.transpose &&
|
|
57846
57827
|
table.internalProps.layoutMap.columnWidths?.[col]?.columnWidthComputeMode === 'only-body') {
|
|
57847
|
-
maxWidth = computeColWidth(col, table.internalProps.layoutMap.getBodyRange().start.row, table.internalProps.layoutMap.getBodyRange().end.row, table);
|
|
57828
|
+
maxWidth = computeColWidth(col, table.internalProps.layoutMap.getBodyRange().start.row, table.internalProps.layoutMap.getBodyRange().end.row, table, update);
|
|
57848
57829
|
}
|
|
57849
57830
|
else {
|
|
57850
|
-
maxWidth = computeColWidth(col, 0, table.rowCount - 1, table);
|
|
57831
|
+
maxWidth = computeColWidth(col, 0, table.rowCount - 1, table, update);
|
|
57851
57832
|
}
|
|
57852
57833
|
table._setColContentWidth(col, maxWidth);
|
|
57853
57834
|
const oldWidth = table.getColWidth(col);
|
|
@@ -57932,12 +57913,9 @@
|
|
|
57932
57913
|
table.scenegraph.updateContainer();
|
|
57933
57914
|
}
|
|
57934
57915
|
}
|
|
57935
|
-
function computeColWidth(col, startRow, endRow, table, forceCompute
|
|
57916
|
+
function computeColWidth(col, startRow, endRow, table, forceCompute) {
|
|
57936
57917
|
const width = getColWidthDefinedWidthResizedWidth(col, table);
|
|
57937
|
-
if (
|
|
57938
|
-
return computeAutoColWidth(width, col, startRow, endRow, forceCompute, table);
|
|
57939
|
-
}
|
|
57940
|
-
else if (typeof width === 'number') {
|
|
57918
|
+
if (typeof width === 'number') {
|
|
57941
57919
|
return width;
|
|
57942
57920
|
}
|
|
57943
57921
|
else if (width !== 'auto' && typeof width === 'string') {
|
|
@@ -57948,9 +57926,8 @@
|
|
|
57948
57926
|
function computeAutoColWidth(widthDeifne, col, startRow, endRow, forceCompute, table) {
|
|
57949
57927
|
let maxWidth = 0;
|
|
57950
57928
|
let deltaRow = 1;
|
|
57951
|
-
let prepareDeltaRow = 1;
|
|
57952
57929
|
if (endRow - startRow > 5000) {
|
|
57953
|
-
|
|
57930
|
+
deltaRow = Math.ceil((endRow - startRow) / 5000);
|
|
57954
57931
|
}
|
|
57955
57932
|
if (table.isPivotChart() && col >= table.rowHeaderLevelCount && col < table.colCount - table.rightFrozenColCount) {
|
|
57956
57933
|
if (!table.internalProps.layoutMap.indicatorsAsCol) {
|
|
@@ -57986,7 +57963,7 @@
|
|
|
57986
57963
|
continue;
|
|
57987
57964
|
}
|
|
57988
57965
|
const indicatorWidth = widthDeifne;
|
|
57989
|
-
if (typeof indicatorWidth === 'number' && table.widthMode === 'standard'
|
|
57966
|
+
if (typeof indicatorWidth === 'number' && table.widthMode === 'standard') {
|
|
57990
57967
|
maxWidth = Math.max(indicatorWidth, maxWidth);
|
|
57991
57968
|
continue;
|
|
57992
57969
|
}
|
|
@@ -58009,7 +57986,6 @@
|
|
|
58009
57986
|
}
|
|
58010
57987
|
}
|
|
58011
57988
|
else {
|
|
58012
|
-
deltaRow = prepareDeltaRow;
|
|
58013
57989
|
const define = table.getBodyColumnDefine(col, row);
|
|
58014
57990
|
if (define?.tree) {
|
|
58015
57991
|
const indexArr = table.dataSource.getIndexKey(table.getRecordIndexByCell(col, row));
|
|
@@ -58021,14 +57997,6 @@
|
|
|
58021
57997
|
}
|
|
58022
57998
|
const textWidth = computeTextWidth(col, row, cellType, table);
|
|
58023
57999
|
maxWidth = Math.max(textWidth + cellHierarchyIndent, maxWidth);
|
|
58024
|
-
if (deltaRow > 1 &&
|
|
58025
|
-
table.bottomFrozenRowCount > 0 &&
|
|
58026
|
-
row < table.rowCount - table.bottomFrozenRowCount &&
|
|
58027
|
-
row + deltaRow >= table.rowCount - table.bottomFrozenRowCount) {
|
|
58028
|
-
row = table.rowCount - table.bottomFrozenRowCount - deltaRow;
|
|
58029
|
-
deltaRow = 1;
|
|
58030
|
-
prepareDeltaRow = 1;
|
|
58031
|
-
}
|
|
58032
58000
|
}
|
|
58033
58001
|
const colMinWidth = table.getMinColWidth(col);
|
|
58034
58002
|
const colMaxWidth = table.getMaxColWidth(col);
|
|
@@ -58229,18 +58197,14 @@
|
|
|
58229
58197
|
createColGroup(colHeaderGroup, xOrigin, yOrigin, table.frozenColCount, distCol - table.rightFrozenColCount, 0, table.columnHeaderLevelCount - 1, 'columnHeader', table);
|
|
58230
58198
|
createColGroup(rowHeaderGroup, xOrigin, yOrigin, 0, table.frozenColCount - 1, table.columnHeaderLevelCount, distRow - table.bottomFrozenRowCount, table.isListTable() && !table.internalProps.transpose ? 'body' : 'rowHeader', table);
|
|
58231
58199
|
if (table.bottomFrozenRowCount > 0) {
|
|
58232
|
-
|
|
58233
|
-
createColGroup(leftBottomCornerGroup, xOrigin, yOrigin, 0, table.frozenColCount - 1, table.rowCount - 1 - table.bottomFrozenRowCount + 1, table.rowCount - 1, table.isListTable() ? 'body' : 'rowHeader', table);
|
|
58234
|
-
}
|
|
58200
|
+
createColGroup(leftBottomCornerGroup, xOrigin, yOrigin, 0, table.frozenColCount - 1, table.rowCount - 1 - table.bottomFrozenRowCount + 1, table.rowCount - 1, table.isListTable() ? 'body' : 'rowHeader', table);
|
|
58235
58201
|
createColGroup(bottomFrozenGroup, xOrigin, yOrigin, table.frozenColCount, distCol - table.rightFrozenColCount, table.rowCount - 1 - table.bottomFrozenRowCount + 1, table.rowCount - 1, table.isPivotChart() ? 'rowHeader' : 'body', table);
|
|
58236
58202
|
}
|
|
58237
58203
|
if (table.rightFrozenColCount > 0) {
|
|
58238
|
-
|
|
58239
|
-
createColGroup(rightTopCornerGroup, xOrigin, yOrigin, table.colCount - 1 - table.rightFrozenColCount + 1, table.colCount - 1, 0, table.columnHeaderLevelCount - 1, 'columnHeader', table);
|
|
58240
|
-
}
|
|
58204
|
+
createColGroup(rightTopCornerGroup, xOrigin, yOrigin, table.colCount - 1 - table.rightFrozenColCount + 1, table.colCount - 1, 0, table.columnHeaderLevelCount - 1, 'columnHeader', table);
|
|
58241
58205
|
createColGroup(rightFrozenGroup, xOrigin, yOrigin, table.colCount - 1 - table.rightFrozenColCount + 1, table.colCount - 1, table.columnHeaderLevelCount, distRow - table.bottomFrozenRowCount, table.isPivotChart() ? 'rowHeader' : 'body', table);
|
|
58242
58206
|
}
|
|
58243
|
-
if (table.bottomFrozenRowCount > 0 && table.rightFrozenColCount > 0
|
|
58207
|
+
if (table.bottomFrozenRowCount > 0 && table.rightFrozenColCount > 0) {
|
|
58244
58208
|
createColGroup(rightBottomCornerGroup, xOrigin, yOrigin, table.colCount - 1 - table.rightFrozenColCount + 1, table.colCount - 1, table.rowCount - 1 - table.bottomFrozenRowCount + 1, table.rowCount - 1, 'body', table);
|
|
58245
58209
|
}
|
|
58246
58210
|
createColGroup(bodyGroup, xOrigin, yOrigin, table.frozenColCount, distCol - table.rightFrozenColCount, table.columnHeaderLevelCount, distRow - table.bottomFrozenRowCount, 'body', table);
|
|
@@ -59124,7 +59088,7 @@
|
|
|
59124
59088
|
cellGroup.needUpdateForAutoRowHeight = true;
|
|
59125
59089
|
}
|
|
59126
59090
|
updateCellGroupContent(cellGroup) {
|
|
59127
|
-
if (!cellGroup.needUpdate) {
|
|
59091
|
+
if (!cellGroup.needUpdate || cellGroup.role !== 'cell') {
|
|
59128
59092
|
return cellGroup;
|
|
59129
59093
|
}
|
|
59130
59094
|
const newCellGroup = this.table.scenegraph.updateCellContent(cellGroup.col, cellGroup.row);
|
|
@@ -59710,7 +59674,7 @@
|
|
|
59710
59674
|
updateAfter = updateAfter || needUpdateAfter;
|
|
59711
59675
|
scene.table.rowHeightsMap.adjustOrder(row, row + 1, scene.table.rowHeightsMap.count() - row);
|
|
59712
59676
|
});
|
|
59713
|
-
|
|
59677
|
+
resetRowNumberAndY(scene);
|
|
59714
59678
|
updateCells.forEach(cell => {
|
|
59715
59679
|
if (!cell) {
|
|
59716
59680
|
return;
|
|
@@ -59749,6 +59713,7 @@
|
|
|
59749
59713
|
scene.proxy.updateCellGroups(scene.proxy.screenRowCount * 2);
|
|
59750
59714
|
scene.proxy.progress();
|
|
59751
59715
|
}
|
|
59716
|
+
const newTotalHeight = table.getRowsHeight(table.frozenRowCount, table.rowCount - 1);
|
|
59752
59717
|
scene.updateContainerHeight(scene.table.frozenRowCount, newTotalHeight - scene.bodyGroup.attribute.height);
|
|
59753
59718
|
}
|
|
59754
59719
|
function removeRow(row, scene) {
|
|
@@ -60214,6 +60179,12 @@
|
|
|
60214
60179
|
scene.leftBottomCornerGroup.appendChild(column);
|
|
60215
60180
|
scene.leftBottomCornerGroup.setAttribute('width', scene.leftBottomCornerGroup.attribute.width + column.attribute.width);
|
|
60216
60181
|
scene.bottomFrozenGroup.setAttribute('width', scene.bottomFrozenGroup.attribute.width - column.attribute.width);
|
|
60182
|
+
column.forEachChildren((child) => {
|
|
60183
|
+
child.setAttributes({
|
|
60184
|
+
stroke: false,
|
|
60185
|
+
fill: false
|
|
60186
|
+
});
|
|
60187
|
+
});
|
|
60217
60188
|
}
|
|
60218
60189
|
}
|
|
60219
60190
|
function moveColumnFromLeftBottomCornerToBottom(scene) {
|
|
@@ -60224,6 +60195,15 @@
|
|
|
60224
60195
|
insertBefore(scene.bottomFrozenGroup, column, scene.bottomFrozenGroup.firstChild);
|
|
60225
60196
|
scene.bottomFrozenGroup.setAttribute('width', scene.bottomFrozenGroup.attribute.width + column.attribute.width);
|
|
60226
60197
|
scene.leftBottomCornerGroup.setAttribute('width', scene.leftBottomCornerGroup.attribute.width - column.attribute.width);
|
|
60198
|
+
column.forEachChildren((child) => {
|
|
60199
|
+
const cellStyle = scene.table._getCellStyle(child.col, child.row);
|
|
60200
|
+
const range = scene.table.getCellRange(child.col, child.row);
|
|
60201
|
+
const cellTheme = getStyleTheme(cellStyle, scene.table, range ? range.start.col : child.col, range ? range.start.row : child.row, getProp).theme;
|
|
60202
|
+
child.setAttributes({
|
|
60203
|
+
fill: cellTheme?.group?.fill ?? undefined,
|
|
60204
|
+
stroke: cellTheme?.group?.stroke ?? undefined
|
|
60205
|
+
});
|
|
60206
|
+
});
|
|
60227
60207
|
}
|
|
60228
60208
|
}
|
|
60229
60209
|
function dealRightFrozen(distRightFrozenCol, scene) {
|
|
@@ -61811,18 +61791,19 @@
|
|
|
61811
61791
|
updateContainerAttrWidthAndX() {
|
|
61812
61792
|
const cornerX = updateContainerChildrenX(this.cornerHeaderGroup, 0);
|
|
61813
61793
|
const rowHeaderX = updateContainerChildrenX(this.rowHeaderGroup, 0);
|
|
61814
|
-
const colHeaderX = this.colHeaderGroup.hasChildNodes()
|
|
61794
|
+
const colHeaderX = this.colHeaderGroup.hasChildNodes() && this.colHeaderGroup.firstChild
|
|
61815
61795
|
? updateContainerChildrenX(this.colHeaderGroup, this.colHeaderGroup.firstChild.col > 0
|
|
61816
61796
|
? this.table.getColsWidth(this.table.frozenColCount ?? 0, this.colHeaderGroup.firstChild.col - 1)
|
|
61817
61797
|
: 0)
|
|
61818
61798
|
: 0;
|
|
61819
|
-
const bodyX = this.bodyGroup.hasChildNodes()
|
|
61799
|
+
const bodyX = this.bodyGroup.hasChildNodes() && this.bodyGroup.firstChild
|
|
61820
61800
|
? updateContainerChildrenX(this.bodyGroup, this.bodyGroup.firstChild.col > 0
|
|
61821
61801
|
? this.table.getColsWidth(this.table.frozenColCount ?? 0, this.bodyGroup.firstChild.col - 1)
|
|
61822
61802
|
: 0)
|
|
61823
61803
|
: 0;
|
|
61824
61804
|
const rightX = updateContainerChildrenX(this.rightFrozenGroup, 0);
|
|
61825
61805
|
this.bottomFrozenGroup.hasChildNodes() &&
|
|
61806
|
+
this.bottomFrozenGroup.firstChild &&
|
|
61826
61807
|
updateContainerChildrenX(this.bottomFrozenGroup, this.bottomFrozenGroup.firstChild.col > 0
|
|
61827
61808
|
? this.table.getColsWidth(this.table.frozenColCount ?? 0, this.bottomFrozenGroup.firstChild.col - 1)
|
|
61828
61809
|
: 0);
|
|
@@ -61968,7 +61949,7 @@
|
|
|
61968
61949
|
cacheStr = text.cache.clipedText;
|
|
61969
61950
|
}
|
|
61970
61951
|
else {
|
|
61971
|
-
text.cache.layoutData
|
|
61952
|
+
text.cache.layoutData.lines.forEach((line) => {
|
|
61972
61953
|
cacheStr += line.str;
|
|
61973
61954
|
});
|
|
61974
61955
|
}
|
|
@@ -62028,14 +62009,6 @@
|
|
|
62028
62009
|
}
|
|
62029
62010
|
return 0;
|
|
62030
62011
|
}
|
|
62031
|
-
updateCellValue(col, row, value) {
|
|
62032
|
-
const cellGroup = this.getCell(col, row);
|
|
62033
|
-
const text = cellGroup.getChildByName('text', true);
|
|
62034
|
-
if (text) {
|
|
62035
|
-
const textAttributeStr = isArray$7(text.attribute.text) ? [value] : value;
|
|
62036
|
-
text.setAttribute('text', textAttributeStr);
|
|
62037
|
-
}
|
|
62038
|
-
}
|
|
62039
62012
|
}
|
|
62040
62013
|
|
|
62041
62014
|
function checkCellInSelect(col, row, cellRanges) {
|
|
@@ -62762,32 +62735,6 @@
|
|
|
62762
62735
|
detaX = minWidth - widthCache;
|
|
62763
62736
|
}
|
|
62764
62737
|
}
|
|
62765
|
-
let afterSize = state.table.getColWidth(state.columnResize.col) + detaX;
|
|
62766
|
-
if (afterSize < state.table.internalProps.limitMinWidth) {
|
|
62767
|
-
afterSize = state.table.internalProps.limitMinWidth;
|
|
62768
|
-
detaX = afterSize - state.table.getColWidth(state.columnResize.col);
|
|
62769
|
-
}
|
|
62770
|
-
if (state.table.widthMode === 'adaptive' && state.columnResize.col < state.table.colCount - 1) {
|
|
62771
|
-
const rightColWidthCache = state.table.getColWidth(state.columnResize.col + 1);
|
|
62772
|
-
const rightColMinWidth = state.table.getMinColWidth(state.columnResize.col + 1);
|
|
62773
|
-
const rightColMaxWidth = state.table.getMaxColWidth(state.columnResize.col + 1);
|
|
62774
|
-
let rightColWidth = rightColWidthCache;
|
|
62775
|
-
rightColWidth -= detaX;
|
|
62776
|
-
if (rightColWidth < rightColMinWidth || rightColWidth > rightColMaxWidth) {
|
|
62777
|
-
if (rightColWidthCache === rightColMinWidth || rightColWidthCache === rightColMaxWidth) {
|
|
62778
|
-
return;
|
|
62779
|
-
}
|
|
62780
|
-
else if (rightColWidthCache - rightColMinWidth > rightColMaxWidth - rightColWidthCache) {
|
|
62781
|
-
detaX = rightColMaxWidth - rightColWidthCache;
|
|
62782
|
-
}
|
|
62783
|
-
else {
|
|
62784
|
-
detaX = rightColMinWidth - rightColWidthCache;
|
|
62785
|
-
}
|
|
62786
|
-
}
|
|
62787
|
-
if (rightColWidth - detaX < state.table.internalProps.limitMinWidth) {
|
|
62788
|
-
detaX = rightColWidth - state.table.internalProps.limitMinWidth;
|
|
62789
|
-
}
|
|
62790
|
-
}
|
|
62791
62738
|
detaX = Math.ceil(detaX);
|
|
62792
62739
|
if (state.columnResize.col < state.table.rowHeaderLevelCount ||
|
|
62793
62740
|
state.columnResize.col >= state.table.colCount - state.table.rightFrozenColCount) {
|
|
@@ -62816,6 +62763,10 @@
|
|
|
62816
62763
|
}
|
|
62817
62764
|
function updateResizeColForColumn(detaX, state) {
|
|
62818
62765
|
if (state.table.widthMode === 'adaptive' && state.columnResize.col < state.table.colCount - 1) {
|
|
62766
|
+
const rightColWidth = state.table.getColWidth(state.columnResize.col + 1);
|
|
62767
|
+
if (rightColWidth - detaX < 0) {
|
|
62768
|
+
detaX = rightColWidth;
|
|
62769
|
+
}
|
|
62819
62770
|
state.table.scenegraph.updateColWidth(state.columnResize.col, detaX);
|
|
62820
62771
|
state.table.scenegraph.updateColWidth(state.columnResize.col + 1, -detaX);
|
|
62821
62772
|
state.table.internalProps._widthResizedColMap.add(state.columnResize.col);
|
|
@@ -64295,7 +64246,6 @@
|
|
|
64295
64246
|
const cellsEvent = {
|
|
64296
64247
|
...cellInfo,
|
|
64297
64248
|
event: e.nativeEvent,
|
|
64298
|
-
federatedEvent: e,
|
|
64299
64249
|
cells: [],
|
|
64300
64250
|
targetIcon: icon
|
|
64301
64251
|
? {
|
|
@@ -64325,7 +64275,7 @@
|
|
|
64325
64275
|
stateManeger.endSelectCells();
|
|
64326
64276
|
}
|
|
64327
64277
|
});
|
|
64328
|
-
|
|
64278
|
+
table.scenegraph.tableGroup.addEventListener('dblclick', (e) => {
|
|
64329
64279
|
const eventArgsSet = getCellEventArgsSet(e);
|
|
64330
64280
|
const bounds = eventArgsSet.eventArgs.targetCell.globalAABBBounds;
|
|
64331
64281
|
const { col, row } = eventArgsSet.eventArgs;
|
|
@@ -64358,12 +64308,6 @@
|
|
|
64358
64308
|
};
|
|
64359
64309
|
table.fireListeners(TABLE_EVENT_TYPE.DBLCLICK_CELL, cellsEvent);
|
|
64360
64310
|
}
|
|
64361
|
-
}
|
|
64362
|
-
table.scenegraph.tableGroup.addEventListener('dbltap', (e) => {
|
|
64363
|
-
dblclickHandler(e);
|
|
64364
|
-
});
|
|
64365
|
-
table.scenegraph.tableGroup.addEventListener('dblclick', (e) => {
|
|
64366
|
-
dblclickHandler(e);
|
|
64367
64311
|
});
|
|
64368
64312
|
table.scenegraph.tableGroup.addEventListener('checkbox_state_change', (e) => {
|
|
64369
64313
|
const eventArgsSet = getCellEventArgsSet(e);
|
|
@@ -64591,10 +64535,6 @@
|
|
|
64591
64535
|
else {
|
|
64592
64536
|
e.clipboardData.setData('text/plain', data);
|
|
64593
64537
|
}
|
|
64594
|
-
table.fireListeners(TABLE_EVENT_TYPE.COPY_DATA, {
|
|
64595
|
-
cellRange: table.stateManeger.select.ranges,
|
|
64596
|
-
copyData: data
|
|
64597
|
-
});
|
|
64598
64538
|
}
|
|
64599
64539
|
}
|
|
64600
64540
|
});
|
|
@@ -65255,7 +65195,7 @@
|
|
|
65255
65195
|
_table;
|
|
65256
65196
|
constructor(_table) {
|
|
65257
65197
|
this._table = _table;
|
|
65258
|
-
const regedIcons = get$
|
|
65198
|
+
const regedIcons = get$1();
|
|
65259
65199
|
this.expandIcon = regedIcons[InternalIconName.expandIconName];
|
|
65260
65200
|
this.collapseIcon = regedIcons[InternalIconName.collapseIconName];
|
|
65261
65201
|
}
|
|
@@ -65277,7 +65217,7 @@
|
|
|
65277
65217
|
else {
|
|
65278
65218
|
iconResults = iconDefine;
|
|
65279
65219
|
}
|
|
65280
|
-
const regedIcons = get$
|
|
65220
|
+
const regedIcons = get$1();
|
|
65281
65221
|
const addIcon = (columnIcon) => {
|
|
65282
65222
|
let icon;
|
|
65283
65223
|
if (typeof columnIcon === 'string') {
|
|
@@ -66023,7 +65963,7 @@
|
|
|
66023
65963
|
_table;
|
|
66024
65964
|
constructor(_table) {
|
|
66025
65965
|
this._table = _table;
|
|
66026
|
-
const regedIcons = get$
|
|
65966
|
+
const regedIcons = get$1();
|
|
66027
65967
|
this.freezeIcon = regedIcons[InternalIconName.freezeIconName];
|
|
66028
65968
|
this.frozenIcon = regedIcons[InternalIconName.frozenIconName];
|
|
66029
65969
|
this.frozenCurrentIcon = regedIcons[InternalIconName.frozenCurrentIconName];
|
|
@@ -66108,7 +66048,7 @@
|
|
|
66108
66048
|
else {
|
|
66109
66049
|
headerIconStrs = headerIcon;
|
|
66110
66050
|
}
|
|
66111
|
-
const regedIcons = get$
|
|
66051
|
+
const regedIcons = get$1();
|
|
66112
66052
|
const addIcon = (headerIcon) => {
|
|
66113
66053
|
let icon;
|
|
66114
66054
|
if (typeof headerIcon === 'string') {
|
|
@@ -67542,15 +67482,15 @@
|
|
|
67542
67482
|
initEvent() {
|
|
67543
67483
|
if (this.legendComponent) {
|
|
67544
67484
|
this.legendComponent.addEventListener(LegendEvent.legendItemClick, (e) => {
|
|
67545
|
-
const selectedData = get$
|
|
67485
|
+
const selectedData = get$6(e, 'detail.currentSelected');
|
|
67546
67486
|
this.table.fireListeners(TABLE_EVENT_TYPE.LEGEND_ITEM_CLICK, { model: this, value: selectedData, event: e });
|
|
67547
67487
|
});
|
|
67548
67488
|
this.legendComponent.addEventListener(LegendEvent.legendItemHover, (e) => {
|
|
67549
|
-
const detail = get$
|
|
67489
|
+
const detail = get$6(e, 'detail');
|
|
67550
67490
|
this.table.fireListeners(TABLE_EVENT_TYPE.LEGEND_ITEM_HOVER, { model: this, value: detail, event: e });
|
|
67551
67491
|
});
|
|
67552
67492
|
this.legendComponent.addEventListener(LegendEvent.legendItemUnHover, (e) => {
|
|
67553
|
-
const detail = get$
|
|
67493
|
+
const detail = get$6(e, 'detail');
|
|
67554
67494
|
this.table.fireListeners(TABLE_EVENT_TYPE.LEGEND_ITEM_UNHOVER, { model: this, value: detail, event: e });
|
|
67555
67495
|
});
|
|
67556
67496
|
this.legendComponent.addEventListener('legendItemAttributeUpdate', (e) => {
|
|
@@ -67854,7 +67794,7 @@
|
|
|
67854
67794
|
initEvent() {
|
|
67855
67795
|
if (this.legendComponent) {
|
|
67856
67796
|
this.legendComponent.addEventListener('change', (e) => {
|
|
67857
|
-
const selectedData = get$
|
|
67797
|
+
const selectedData = get$6(e, 'detail.value');
|
|
67858
67798
|
this.table.fireListeners(TABLE_EVENT_TYPE.LEGEND_CHANGE, { model: this, value: selectedData, event: e });
|
|
67859
67799
|
this.table.scenegraph.updateNextFrame();
|
|
67860
67800
|
});
|
|
@@ -67912,7 +67852,7 @@
|
|
|
67912
67852
|
return TABLE_EVENT_TYPE;
|
|
67913
67853
|
}
|
|
67914
67854
|
options;
|
|
67915
|
-
version = "0.15.0-alpha.
|
|
67855
|
+
version = "0.15.0-alpha.3";
|
|
67916
67856
|
pagination;
|
|
67917
67857
|
id = `VTable${Date.now()}`;
|
|
67918
67858
|
headerStyleCache;
|
|
@@ -67924,7 +67864,7 @@
|
|
|
67924
67864
|
if (!container && options.mode !== 'node') {
|
|
67925
67865
|
throw new Error("vtable's container is undefined");
|
|
67926
67866
|
}
|
|
67927
|
-
const { frozenColCount = 0, defaultRowHeight = 40, defaultHeaderRowHeight, defaultColWidth = 80, defaultHeaderColWidth, widthMode = 'standard', heightMode = 'standard', autoFillWidth = false, autoFillHeight = false, keyboardOptions, columnResizeMode, dragHeaderMode, showFrozenIcon, allowFrozenColCount, padding, hover, menu, select: click, customRender, pixelRatio = defaultPixelRatio, renderChartAsync, renderChartAsyncBatchCount, mode, modeParams, canvasWidth, canvasHeight, overscrollBehavior
|
|
67867
|
+
const { frozenColCount = 0, defaultRowHeight = 40, defaultHeaderRowHeight, defaultColWidth = 80, defaultHeaderColWidth, widthMode = 'standard', heightMode = 'standard', autoFillWidth = false, autoFillHeight = false, keyboardOptions, columnResizeMode, dragHeaderMode, showFrozenIcon, allowFrozenColCount, padding, hover, menu, select: click, customRender, pixelRatio = defaultPixelRatio, renderChartAsync, renderChartAsyncBatchCount, mode, modeParams, canvasWidth, canvasHeight, overscrollBehavior } = options;
|
|
67928
67868
|
this.container = container;
|
|
67929
67869
|
this.options = options;
|
|
67930
67870
|
this.options.container = container;
|
|
@@ -68011,14 +67951,6 @@
|
|
|
68011
67951
|
internalProps.autoWrapText = options.autoWrapText;
|
|
68012
67952
|
internalProps.allowFrozenColCount = options.allowFrozenColCount ?? internalProps.colCount;
|
|
68013
67953
|
internalProps.limitMaxAutoWidth = options.limitMaxAutoWidth ?? 450;
|
|
68014
|
-
internalProps.limitMinWidth =
|
|
68015
|
-
limitMinWidth !== null && limitMinWidth !== undefined
|
|
68016
|
-
? typeof limitMinWidth === 'number'
|
|
68017
|
-
? limitMinWidth
|
|
68018
|
-
: limitMinWidth
|
|
68019
|
-
? 10
|
|
68020
|
-
: 0
|
|
68021
|
-
: 10;
|
|
68022
67954
|
this._vDataSet = new DataSet();
|
|
68023
67955
|
this.scenegraph = new Scenegraph(this);
|
|
68024
67956
|
this.stateManeger = new StateManeger(this);
|
|
@@ -68764,6 +68696,11 @@
|
|
|
68764
68696
|
}
|
|
68765
68697
|
renderAsync() {
|
|
68766
68698
|
this.scenegraph.updateNextFrame();
|
|
68699
|
+
return new Promise((resolve, reject) => {
|
|
68700
|
+
setTimeout(() => {
|
|
68701
|
+
resolve();
|
|
68702
|
+
}, 0);
|
|
68703
|
+
});
|
|
68767
68704
|
}
|
|
68768
68705
|
_toRelativeRect(absoluteRect) {
|
|
68769
68706
|
const rect = absoluteRect.copy();
|
|
@@ -68930,7 +68867,7 @@
|
|
|
68930
68867
|
}
|
|
68931
68868
|
updateOption(options) {
|
|
68932
68869
|
this.options = options;
|
|
68933
|
-
const { frozenColCount = 0, defaultRowHeight = 40, defaultHeaderRowHeight, defaultColWidth = 80, defaultHeaderColWidth = 80, keyboardOptions, columnResizeMode, dragHeaderMode, showFrozenIcon, allowFrozenColCount, padding, hover, menu, select: click, pixelRatio, widthMode, heightMode, autoFillWidth, autoFillHeight, customRender, renderChartAsync, renderChartAsyncBatchCount, overscrollBehavior
|
|
68870
|
+
const { frozenColCount = 0, defaultRowHeight = 40, defaultHeaderRowHeight, defaultColWidth = 80, defaultHeaderColWidth = 80, keyboardOptions, columnResizeMode, dragHeaderMode, showFrozenIcon, allowFrozenColCount, padding, hover, menu, select: click, pixelRatio, widthMode, heightMode, autoFillWidth, autoFillHeight, customRender, renderChartAsync, renderChartAsyncBatchCount, overscrollBehavior } = options;
|
|
68934
68871
|
if (pixelRatio && pixelRatio !== this.internalProps.pixelRatio) {
|
|
68935
68872
|
this.internalProps.pixelRatio = pixelRatio;
|
|
68936
68873
|
}
|
|
@@ -68984,14 +68921,6 @@
|
|
|
68984
68921
|
internalProps.autoWrapText = options.autoWrapText;
|
|
68985
68922
|
internalProps.allowFrozenColCount = options.allowFrozenColCount ?? internalProps.colCount;
|
|
68986
68923
|
internalProps.limitMaxAutoWidth = options.limitMaxAutoWidth ?? 450;
|
|
68987
|
-
internalProps.limitMinWidth =
|
|
68988
|
-
limitMinWidth !== null && limitMinWidth !== undefined
|
|
68989
|
-
? typeof limitMinWidth === 'number'
|
|
68990
|
-
? limitMinWidth
|
|
68991
|
-
: limitMinWidth
|
|
68992
|
-
? 10
|
|
68993
|
-
: 0
|
|
68994
|
-
: 10;
|
|
68995
68924
|
this._vDataSet = new DataSet();
|
|
68996
68925
|
internalProps.legends?.release();
|
|
68997
68926
|
internalProps.title?.release();
|
|
@@ -70116,15 +70045,6 @@
|
|
|
70116
70045
|
BaseTable: BaseTable
|
|
70117
70046
|
});
|
|
70118
70047
|
|
|
70119
|
-
const editors = {};
|
|
70120
|
-
function get(editorName) {
|
|
70121
|
-
const editor = editors[editorName];
|
|
70122
|
-
if (!editor) {
|
|
70123
|
-
return undefined;
|
|
70124
|
-
}
|
|
70125
|
-
return editors[editorName];
|
|
70126
|
-
}
|
|
70127
|
-
|
|
70128
70048
|
function register(obj, name, value) {
|
|
70129
70049
|
const old = obj[name];
|
|
70130
70050
|
obj[name] = value;
|
|
@@ -70148,12 +70068,6 @@
|
|
|
70148
70068
|
}
|
|
70149
70069
|
return chartTypes[name];
|
|
70150
70070
|
}
|
|
70151
|
-
function editor(name, editor) {
|
|
70152
|
-
if (editor !== null && editor !== undefined) {
|
|
70153
|
-
return register(editors, name, editor);
|
|
70154
|
-
}
|
|
70155
|
-
return editors[name];
|
|
70156
|
-
}
|
|
70157
70071
|
function clear(obj) {
|
|
70158
70072
|
for (const key in obj) {
|
|
70159
70073
|
delete obj[key];
|
|
@@ -70169,7 +70083,6 @@
|
|
|
70169
70083
|
__proto__: null,
|
|
70170
70084
|
chartModule: chartModule,
|
|
70171
70085
|
clearAll: clearAll,
|
|
70172
|
-
editor: editor,
|
|
70173
70086
|
icon: icon,
|
|
70174
70087
|
theme: theme
|
|
70175
70088
|
});
|
|
@@ -71163,6 +71076,9 @@
|
|
|
71163
71076
|
isEmpty(col, row) {
|
|
71164
71077
|
return false;
|
|
71165
71078
|
}
|
|
71079
|
+
isAxisCell(col, row) {
|
|
71080
|
+
return false;
|
|
71081
|
+
}
|
|
71166
71082
|
getChartAxes(col, row) {
|
|
71167
71083
|
return [];
|
|
71168
71084
|
}
|
|
@@ -71321,75 +71237,8 @@
|
|
|
71321
71237
|
}
|
|
71322
71238
|
}
|
|
71323
71239
|
|
|
71324
|
-
class EditManeger {
|
|
71325
|
-
table;
|
|
71326
|
-
editingEditor;
|
|
71327
|
-
editCell;
|
|
71328
|
-
constructor(table) {
|
|
71329
|
-
this.table = table;
|
|
71330
|
-
this.bindEvent();
|
|
71331
|
-
}
|
|
71332
|
-
bindEvent() {
|
|
71333
|
-
const handler = this.table.internalProps.handler;
|
|
71334
|
-
this.table.on(TABLE_EVENT_TYPE.DBLCLICK_CELL, e => {
|
|
71335
|
-
const { col, row } = e;
|
|
71336
|
-
const eventArgsSet = getCellEventArgsSet(e.federatedEvent);
|
|
71337
|
-
const resizeCol = this.table.scenegraph.getResizeColAt(eventArgsSet.abstractPos.x, eventArgsSet.abstractPos.y, eventArgsSet.eventArgs?.targetCell);
|
|
71338
|
-
if (this.table._canResizeColumn(resizeCol.col, resizeCol.row) && resizeCol.col >= 0) {
|
|
71339
|
-
return;
|
|
71340
|
-
}
|
|
71341
|
-
const range = this.table.getCellRange(col, row);
|
|
71342
|
-
const isMerge = range.start.col !== range.end.col || range.start.row !== range.end.row;
|
|
71343
|
-
if (isMerge) {
|
|
71344
|
-
return;
|
|
71345
|
-
}
|
|
71346
|
-
const rect = this.table.getCellRelativeRect(col, row);
|
|
71347
|
-
const editor = this.table.getEditor(col, row);
|
|
71348
|
-
if (editor) {
|
|
71349
|
-
editor.bindSuccessCallback?.(() => {
|
|
71350
|
-
this.completeEdit();
|
|
71351
|
-
});
|
|
71352
|
-
this.editingEditor = editor;
|
|
71353
|
-
this.editCell = { col, row };
|
|
71354
|
-
const dataValue = this.table.getCellOriginValue(col, row);
|
|
71355
|
-
editor.beginEditing(this.table.getElement(), { rect: { left: rect.left, top: rect.top, width: rect.width, height: rect.height } }, dataValue);
|
|
71356
|
-
}
|
|
71357
|
-
});
|
|
71358
|
-
document.body.addEventListener('pointerdown', (e) => {
|
|
71359
|
-
const target = e.target;
|
|
71360
|
-
if (this.editingEditor && !this.editingEditor.targetIsOnEditor(target)) {
|
|
71361
|
-
this.completeEdit();
|
|
71362
|
-
}
|
|
71363
|
-
});
|
|
71364
|
-
handler.on(this.table.getElement(), 'wheel', (e) => {
|
|
71365
|
-
this.completeEdit();
|
|
71366
|
-
});
|
|
71367
|
-
this.table.on(TABLE_EVENT_TYPE.KEYDOWN, e => {
|
|
71368
|
-
const { code } = e;
|
|
71369
|
-
if (this.editingEditor) {
|
|
71370
|
-
if (code === 'Escape') {
|
|
71371
|
-
this.editingEditor.exit();
|
|
71372
|
-
this.editingEditor = null;
|
|
71373
|
-
}
|
|
71374
|
-
else if (code === 'Enter') {
|
|
71375
|
-
this.completeEdit();
|
|
71376
|
-
}
|
|
71377
|
-
}
|
|
71378
|
-
});
|
|
71379
|
-
}
|
|
71380
|
-
completeEdit() {
|
|
71381
|
-
if (this.editingEditor) {
|
|
71382
|
-
const changedValue = this.editingEditor.getValue();
|
|
71383
|
-
this.table.changeCellValue(this.editCell.col, this.editCell.row, changedValue);
|
|
71384
|
-
this.editingEditor.exit();
|
|
71385
|
-
this.editingEditor = null;
|
|
71386
|
-
}
|
|
71387
|
-
}
|
|
71388
|
-
}
|
|
71389
|
-
|
|
71390
71240
|
class ListTable extends BaseTable {
|
|
71391
71241
|
showHeader = true;
|
|
71392
|
-
editorManager;
|
|
71393
71242
|
constructor(container, options) {
|
|
71394
71243
|
if (Env.mode === 'node') {
|
|
71395
71244
|
options = container;
|
|
@@ -71415,7 +71264,6 @@
|
|
|
71415
71264
|
: [];
|
|
71416
71265
|
this.showHeader = options.showHeader ?? true;
|
|
71417
71266
|
this.transpose = options.transpose ?? false;
|
|
71418
|
-
this.editorManager = new EditManeger(this);
|
|
71419
71267
|
this.refreshHeader();
|
|
71420
71268
|
if (options.dataSource) {
|
|
71421
71269
|
_setDataSource(this, options.dataSource);
|
|
@@ -71505,18 +71353,6 @@
|
|
|
71505
71353
|
const { field } = table.internalProps.layoutMap.getBody(col, row);
|
|
71506
71354
|
return table.getFieldData(field, col, row);
|
|
71507
71355
|
}
|
|
71508
|
-
getCellRawValue(col, row) {
|
|
71509
|
-
if (col === -1 || row === -1) {
|
|
71510
|
-
return null;
|
|
71511
|
-
}
|
|
71512
|
-
const table = this;
|
|
71513
|
-
if (table.internalProps.layoutMap.isHeader(col, row)) {
|
|
71514
|
-
const { title } = table.internalProps.layoutMap.getHeader(col, row);
|
|
71515
|
-
return typeof title === 'function' ? title() : title;
|
|
71516
|
-
}
|
|
71517
|
-
const { field } = table.internalProps.layoutMap.getBody(col, row);
|
|
71518
|
-
return table.getRawFieldData(field, col, row);
|
|
71519
|
-
}
|
|
71520
71356
|
getRecordIndexByCell(col, row) {
|
|
71521
71357
|
const { layoutMap } = this.internalProps;
|
|
71522
71358
|
return layoutMap.getRecordIndexByCell(col, row);
|
|
@@ -71549,14 +71385,6 @@
|
|
|
71549
71385
|
}
|
|
71550
71386
|
return undefined;
|
|
71551
71387
|
}
|
|
71552
|
-
getCellRawRecord(col, row) {
|
|
71553
|
-
const table = this;
|
|
71554
|
-
const index = table.getRecordIndexByCell(col, row);
|
|
71555
|
-
if (index > -1) {
|
|
71556
|
-
return table.dataSource.getRaw(index);
|
|
71557
|
-
}
|
|
71558
|
-
return undefined;
|
|
71559
|
-
}
|
|
71560
71388
|
_canResizeColumn(col, row) {
|
|
71561
71389
|
const ifCan = super._canResizeColumn(col, row);
|
|
71562
71390
|
if (ifCan) {
|
|
@@ -71680,17 +71508,6 @@
|
|
|
71680
71508
|
const index = table.getRecordIndexByCell(col, row);
|
|
71681
71509
|
return table.internalProps.dataSource.getField(index, field, col, row, this);
|
|
71682
71510
|
}
|
|
71683
|
-
getRawFieldData(field, col, row) {
|
|
71684
|
-
if (field === null) {
|
|
71685
|
-
return null;
|
|
71686
|
-
}
|
|
71687
|
-
const table = this;
|
|
71688
|
-
if (table.internalProps.layoutMap.isHeader(col, row)) {
|
|
71689
|
-
return null;
|
|
71690
|
-
}
|
|
71691
|
-
const index = table.getRecordIndexByCell(col, row);
|
|
71692
|
-
return table.internalProps.dataSource.getRawField(index, field, col, row, this);
|
|
71693
|
-
}
|
|
71694
71511
|
moveHeaderPosition(source, target) {
|
|
71695
71512
|
const moveContext = this.internalProps.layoutMap.moveHeaderPosition(source, target);
|
|
71696
71513
|
if (moveContext) {
|
|
@@ -71910,48 +71727,6 @@
|
|
|
71910
71727
|
}
|
|
71911
71728
|
return this.stateManeger.checkedState;
|
|
71912
71729
|
}
|
|
71913
|
-
getEditor(col, row) {
|
|
71914
|
-
const define = this.getBodyColumnDefine(col, row);
|
|
71915
|
-
const editorDefine = define?.editor ?? this.options.editor;
|
|
71916
|
-
if (typeof editorDefine === 'function') {
|
|
71917
|
-
const arg = {
|
|
71918
|
-
col,
|
|
71919
|
-
row,
|
|
71920
|
-
dataValue: this.getCellOriginValue(col, row),
|
|
71921
|
-
value: this.getCellValue(col, row) || '',
|
|
71922
|
-
table: this
|
|
71923
|
-
};
|
|
71924
|
-
return editorDefine(arg);
|
|
71925
|
-
}
|
|
71926
|
-
else if (typeof editorDefine === 'string') {
|
|
71927
|
-
return get(editorDefine);
|
|
71928
|
-
}
|
|
71929
|
-
return editorDefine;
|
|
71930
|
-
}
|
|
71931
|
-
changeCellValue(col, row, value) {
|
|
71932
|
-
const recordIndex = this.getRecordIndexByCell(col, row);
|
|
71933
|
-
const { field, fieldFormat } = this.internalProps.layoutMap.getBody(col, row);
|
|
71934
|
-
this.dataSource.changeFieldValue(value, recordIndex, field, col, row, this);
|
|
71935
|
-
const cell_value = this.getFieldData(fieldFormat || field, col, row);
|
|
71936
|
-
this.scenegraph.updateCellValue(col, row, cell_value);
|
|
71937
|
-
if (!this.internalProps._widthResizedColMap.has(col)) {
|
|
71938
|
-
const oldWidth = this.getColWidth(col);
|
|
71939
|
-
const newWidth = computeColWidth(col, 0, this.rowCount - 1, this, false);
|
|
71940
|
-
if (newWidth !== oldWidth) {
|
|
71941
|
-
this.scenegraph.updateColWidth(col, newWidth - oldWidth);
|
|
71942
|
-
}
|
|
71943
|
-
}
|
|
71944
|
-
const oldHeight = this.getRowHeight(row);
|
|
71945
|
-
const newHeight = computeRowHeight(row, 0, this.colCount - 1, this);
|
|
71946
|
-
this.scenegraph.updateRowHeight(row, newHeight - oldHeight);
|
|
71947
|
-
this.fireListeners(TABLE_EVENT_TYPE.CHANGE_CELL_VALUE, {
|
|
71948
|
-
col,
|
|
71949
|
-
row,
|
|
71950
|
-
rawValue: this.getCellRawValue(col, row),
|
|
71951
|
-
changedValue: this.getCellOriginValue(col, row)
|
|
71952
|
-
});
|
|
71953
|
-
this.scenegraph.updateNextFrame();
|
|
71954
|
-
}
|
|
71955
71730
|
}
|
|
71956
71731
|
|
|
71957
71732
|
class DimensionTree {
|
|
@@ -73843,7 +73618,25 @@
|
|
|
73843
73618
|
if (!this._table.isPivotChart()) {
|
|
73844
73619
|
return false;
|
|
73845
73620
|
}
|
|
73846
|
-
if (
|
|
73621
|
+
if (this.isLeftBottomCorner(col, row)) {
|
|
73622
|
+
return true;
|
|
73623
|
+
}
|
|
73624
|
+
if (this.isRightBottomCorner(col, row)) {
|
|
73625
|
+
return true;
|
|
73626
|
+
}
|
|
73627
|
+
if (this.isRightTopCorner(col, row)) {
|
|
73628
|
+
return true;
|
|
73629
|
+
}
|
|
73630
|
+
return false;
|
|
73631
|
+
}
|
|
73632
|
+
isAxisCell(col, row) {
|
|
73633
|
+
if (!this._table.isPivotChart()) {
|
|
73634
|
+
return false;
|
|
73635
|
+
}
|
|
73636
|
+
if (this.isBottomFrozenRow(col, row) || this.isRightFrozenColumn(col, row)) {
|
|
73637
|
+
return true;
|
|
73638
|
+
}
|
|
73639
|
+
if (this.isRowHeader(col, row) && col === this.rowHeaderLevelCount - 1) {
|
|
73847
73640
|
return true;
|
|
73848
73641
|
}
|
|
73849
73642
|
if (this.hasTwoIndicatorAxes && this.indicatorsAsCol && row === this.columnHeaderLevelCount - 1) {
|
|
@@ -77064,7 +76857,7 @@
|
|
|
77064
76857
|
constructor(options) {
|
|
77065
76858
|
let cache;
|
|
77066
76859
|
if (isString$6(options.iconName)) {
|
|
77067
|
-
const regedIcons = get$
|
|
76860
|
+
const regedIcons = get$1();
|
|
77068
76861
|
cache = regedIcons[options.iconName];
|
|
77069
76862
|
if (cache) {
|
|
77070
76863
|
options.width = options.width ?? cache.width;
|
|
@@ -77488,9 +77281,9 @@
|
|
|
77488
77281
|
return new Tag$1(params ? params.attribute : {});
|
|
77489
77282
|
}
|
|
77490
77283
|
|
|
77491
|
-
const version = "0.15.0-alpha.
|
|
77284
|
+
const version = "0.15.0-alpha.3";
|
|
77492
77285
|
function getIcons() {
|
|
77493
|
-
return get$
|
|
77286
|
+
return get$1();
|
|
77494
77287
|
}
|
|
77495
77288
|
function clearGlobal() {
|
|
77496
77289
|
clearAll();
|