@visactor/vtable 0.9.0-alpha.0-alpha.0
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/README.md +152 -0
- package/cjs/ListTable.d.ts +38 -0
- package/cjs/ListTable.js +258 -0
- package/cjs/ListTable.js.map +1 -0
- package/cjs/PivotTable.d.ts +50 -0
- package/cjs/PivotTable.js +275 -0
- package/cjs/PivotTable.js.map +1 -0
- package/cjs/body-helper/body-helper.d.ts +14 -0
- package/cjs/body-helper/body-helper.js +99 -0
- package/cjs/body-helper/body-helper.js.map +1 -0
- package/cjs/body-helper/style/ImageStyle.d.ts +7 -0
- package/cjs/body-helper/style/ImageStyle.js +24 -0
- package/cjs/body-helper/style/ImageStyle.js.map +1 -0
- package/cjs/body-helper/style/MultilineTextStyle.d.ts +13 -0
- package/cjs/body-helper/style/MultilineTextStyle.js +38 -0
- package/cjs/body-helper/style/MultilineTextStyle.js.map +1 -0
- package/cjs/body-helper/style/NumberStyle.d.ts +7 -0
- package/cjs/body-helper/style/NumberStyle.js +24 -0
- package/cjs/body-helper/style/NumberStyle.js.map +1 -0
- package/cjs/body-helper/style/ProgressBarStyle.d.ts +52 -0
- package/cjs/body-helper/style/ProgressBarStyle.js +126 -0
- package/cjs/body-helper/style/ProgressBarStyle.js.map +1 -0
- package/cjs/body-helper/style/Style.d.ts +85 -0
- package/cjs/body-helper/style/Style.js +200 -0
- package/cjs/body-helper/style/Style.js.map +1 -0
- package/cjs/body-helper/style.d.ts +10 -0
- package/cjs/body-helper/style.js +52 -0
- package/cjs/body-helper/style.js.map +1 -0
- package/cjs/chartType.d.ts +3 -0
- package/cjs/chartType.js +14 -0
- package/cjs/chartType.js.map +1 -0
- package/cjs/core/BaseTable.d.ts +287 -0
- package/cjs/core/BaseTable.js +1272 -0
- package/cjs/core/BaseTable.js.map +1 -0
- package/cjs/core/FouseInput.d.ts +11 -0
- package/cjs/core/FouseInput.js +38 -0
- package/cjs/core/FouseInput.js.map +1 -0
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +30 -0
- package/cjs/core/TABLE_EVENT_TYPE.js +34 -0
- package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -0
- package/cjs/core/tableHelper.d.ts +28 -0
- package/cjs/core/tableHelper.js +141 -0
- package/cjs/core/tableHelper.js.map +1 -0
- package/cjs/core.d.ts +3 -0
- package/cjs/core.js +24 -0
- package/cjs/core.js.map +1 -0
- package/cjs/data/CachedDataSource.d.ts +16 -0
- package/cjs/data/CachedDataSource.js +54 -0
- package/cjs/data/CachedDataSource.js.map +1 -0
- package/cjs/data/DataSource.d.ts +64 -0
- package/cjs/data/DataSource.js +294 -0
- package/cjs/data/DataSource.js.map +1 -0
- package/cjs/data/FilterDataSource.d.ts +1 -0
- package/cjs/data/FilterDataSource.js +1 -0
- package/cjs/data/FilterDataSource.js.map +1 -0
- package/cjs/data.d.ts +4 -0
- package/cjs/data.js +24 -0
- package/cjs/data.js.map +1 -0
- package/cjs/dataset/DataStatistics.d.ts +10 -0
- package/cjs/dataset/DataStatistics.js +81 -0
- package/cjs/dataset/DataStatistics.js.map +1 -0
- package/cjs/dataset/dataset.d.ts +72 -0
- package/cjs/dataset/dataset.js +490 -0
- package/cjs/dataset/dataset.js.map +1 -0
- package/cjs/dataset/flatDataToObject.d.ts +31 -0
- package/cjs/dataset/flatDataToObject.js +71 -0
- package/cjs/dataset/flatDataToObject.js.map +1 -0
- package/cjs/event/EventHandler.d.ts +45 -0
- package/cjs/event/EventHandler.js +120 -0
- package/cjs/event/EventHandler.js.map +1 -0
- package/cjs/event/EventTarget.d.ts +11 -0
- package/cjs/event/EventTarget.js +59 -0
- package/cjs/event/EventTarget.js.map +1 -0
- package/cjs/event/chart.d.ts +2 -0
- package/cjs/event/chart.js +24 -0
- package/cjs/event/chart.js.map +1 -0
- package/cjs/event/drill.d.ts +3 -0
- package/cjs/event/drill.js +23 -0
- package/cjs/event/drill.js.map +1 -0
- package/cjs/event/event.d.ts +35 -0
- package/cjs/event/event.js +426 -0
- package/cjs/event/event.js.map +1 -0
- package/cjs/event/media-click.d.ts +2 -0
- package/cjs/event/media-click.js +58 -0
- package/cjs/event/media-click.js.map +1 -0
- package/cjs/event/scroll.d.ts +2 -0
- package/cjs/event/scroll.js +23 -0
- package/cjs/event/scroll.js.map +1 -0
- package/cjs/header-helper/header-helper.d.ts +26 -0
- package/cjs/header-helper/header-helper.js +214 -0
- package/cjs/header-helper/header-helper.js.map +1 -0
- package/cjs/header-helper/style/ImageStyle.d.ts +7 -0
- package/cjs/header-helper/style/ImageStyle.js +25 -0
- package/cjs/header-helper/style/ImageStyle.js.map +1 -0
- package/cjs/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
- package/cjs/header-helper/style/MultilineTextHeaderStyle.js +38 -0
- package/cjs/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
- package/cjs/header-helper/style/SortHeaderStyle.d.ts +1 -0
- package/cjs/header-helper/style/SortHeaderStyle.js +3 -0
- package/cjs/header-helper/style/SortHeaderStyle.js.map +1 -0
- package/cjs/header-helper/style/Style.d.ts +88 -0
- package/cjs/header-helper/style/Style.js +208 -0
- package/cjs/header-helper/style/Style.js.map +1 -0
- package/cjs/header-helper/style.d.ts +5 -0
- package/cjs/header-helper/style.js +30 -0
- package/cjs/header-helper/style.js.map +1 -0
- package/cjs/icons.d.ts +4 -0
- package/cjs/icons.js +241 -0
- package/cjs/icons.js.map +1 -0
- package/cjs/index.d.ts +17 -0
- package/cjs/index.js +95 -0
- package/cjs/index.js.map +1 -0
- package/cjs/layout/index.d.ts +1 -0
- package/cjs/layout/index.js +15 -0
- package/cjs/layout/index.js.map +1 -0
- package/cjs/layout/pivot-header-layout.d.ts +155 -0
- package/cjs/layout/pivot-header-layout.js +897 -0
- package/cjs/layout/pivot-header-layout.js.map +1 -0
- package/cjs/layout/pivot-layout.d.ts +86 -0
- package/cjs/layout/pivot-layout.js +422 -0
- package/cjs/layout/pivot-layout.js.map +1 -0
- package/cjs/layout/simple-header-layout.d.ts +67 -0
- package/cjs/layout/simple-header-layout.js +413 -0
- package/cjs/layout/simple-header-layout.js.map +1 -0
- package/cjs/menu/dom/BaseMenu.d.ts +15 -0
- package/cjs/menu/dom/BaseMenu.js +30 -0
- package/cjs/menu/dom/BaseMenu.js.map +1 -0
- package/cjs/menu/dom/Menu.d.ts +9 -0
- package/cjs/menu/dom/Menu.js +24 -0
- package/cjs/menu/dom/Menu.js.map +1 -0
- package/cjs/menu/dom/MenuHandler.d.ts +20 -0
- package/cjs/menu/dom/MenuHandler.js +134 -0
- package/cjs/menu/dom/MenuHandler.js.map +1 -0
- package/cjs/menu/dom/logic/MenuContainer.d.ts +22 -0
- package/cjs/menu/dom/logic/MenuContainer.js +110 -0
- package/cjs/menu/dom/logic/MenuContainer.js.map +1 -0
- package/cjs/menu/dom/logic/MenuElement.css +86 -0
- package/cjs/menu/dom/logic/MenuElement.d.ts +27 -0
- package/cjs/menu/dom/logic/MenuElement.js +278 -0
- package/cjs/menu/dom/logic/MenuElement.js.map +1 -0
- package/cjs/plugins/chartTypes.d.ts +3 -0
- package/cjs/plugins/chartTypes.js +6 -0
- package/cjs/plugins/chartTypes.js.map +1 -0
- package/cjs/plugins/icons.d.ts +12 -0
- package/cjs/plugins/icons.js +26 -0
- package/cjs/plugins/icons.js.map +1 -0
- package/cjs/plugins/themes.d.ts +4 -0
- package/cjs/plugins/themes.js +6 -0
- package/cjs/plugins/themes.js.map +1 -0
- package/cjs/register.d.ts +5 -0
- package/cjs/register.js +35 -0
- package/cjs/register.js.map +1 -0
- package/cjs/render/layout/arc.d.ts +23 -0
- package/cjs/render/layout/arc.js +20 -0
- package/cjs/render/layout/arc.js.map +1 -0
- package/cjs/render/layout/circle.d.ts +19 -0
- package/cjs/render/layout/circle.js +19 -0
- package/cjs/render/layout/circle.js.map +1 -0
- package/cjs/render/layout/container.d.ts +52 -0
- package/cjs/render/layout/container.js +99 -0
- package/cjs/render/layout/container.js.map +1 -0
- package/cjs/render/layout/direction.d.ts +22 -0
- package/cjs/render/layout/direction.js +35 -0
- package/cjs/render/layout/direction.js.map +1 -0
- package/cjs/render/layout/element.d.ts +47 -0
- package/cjs/render/layout/element.js +27 -0
- package/cjs/render/layout/element.js.map +1 -0
- package/cjs/render/layout/group-element.d.ts +25 -0
- package/cjs/render/layout/group-element.js +52 -0
- package/cjs/render/layout/group-element.js.map +1 -0
- package/cjs/render/layout/icon.d.ts +21 -0
- package/cjs/render/layout/icon.js +48 -0
- package/cjs/render/layout/icon.js.map +1 -0
- package/cjs/render/layout/image.d.ts +21 -0
- package/cjs/render/layout/image.js +20 -0
- package/cjs/render/layout/image.js.map +1 -0
- package/cjs/render/layout/index.d.ts +9 -0
- package/cjs/render/layout/index.js +25 -0
- package/cjs/render/layout/index.js.map +1 -0
- package/cjs/render/layout/line.d.ts +32 -0
- package/cjs/render/layout/line.js +88 -0
- package/cjs/render/layout/line.js.map +1 -0
- package/cjs/render/layout/percent-calc.d.ts +8 -0
- package/cjs/render/layout/percent-calc.js +13 -0
- package/cjs/render/layout/percent-calc.js.map +1 -0
- package/cjs/render/layout/rect.d.ts +22 -0
- package/cjs/render/layout/rect.js +19 -0
- package/cjs/render/layout/rect.js.map +1 -0
- package/cjs/render/layout/text.d.ts +22 -0
- package/cjs/render/layout/text.js +26 -0
- package/cjs/render/layout/text.js.map +1 -0
- package/cjs/scenegraph/component/cell-content.d.ts +36 -0
- package/cjs/scenegraph/component/cell-content.js +100 -0
- package/cjs/scenegraph/component/cell-content.js.map +1 -0
- package/cjs/scenegraph/component/cell-mover.d.ts +15 -0
- package/cjs/scenegraph/component/cell-mover.js +107 -0
- package/cjs/scenegraph/component/cell-mover.js.map +1 -0
- package/cjs/scenegraph/component/custom.d.ts +7 -0
- package/cjs/scenegraph/component/custom.js +212 -0
- package/cjs/scenegraph/component/custom.js.map +1 -0
- package/cjs/scenegraph/component/drill-icon.d.ts +9 -0
- package/cjs/scenegraph/component/drill-icon.js +70 -0
- package/cjs/scenegraph/component/drill-icon.js.map +1 -0
- package/cjs/scenegraph/component/menu.d.ts +41 -0
- package/cjs/scenegraph/component/menu.js +214 -0
- package/cjs/scenegraph/component/menu.js.map +1 -0
- package/cjs/scenegraph/component/table-component.d.ts +37 -0
- package/cjs/scenegraph/component/table-component.js +302 -0
- package/cjs/scenegraph/component/table-component.js.map +1 -0
- package/cjs/scenegraph/component/util.d.ts +2 -0
- package/cjs/scenegraph/component/util.js +11 -0
- package/cjs/scenegraph/component/util.js.map +1 -0
- package/cjs/scenegraph/debug-tool/debug-tool.d.ts +36 -0
- package/cjs/scenegraph/debug-tool/debug-tool.js +138 -0
- package/cjs/scenegraph/debug-tool/debug-tool.js.map +1 -0
- package/cjs/scenegraph/debug-tool/index.d.ts +4 -0
- package/cjs/scenegraph/debug-tool/index.js +14 -0
- package/cjs/scenegraph/debug-tool/index.js.map +1 -0
- package/cjs/scenegraph/graphic/chart.d.ts +30 -0
- package/cjs/scenegraph/graphic/chart.js +66 -0
- package/cjs/scenegraph/graphic/chart.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/chart-render.d.ts +10 -0
- package/cjs/scenegraph/graphic/contributions/chart-render.js +46 -0
- package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.d.ts +70 -0
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +195 -0
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.d.ts +20 -0
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.js +46 -0
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/index.d.ts +3 -0
- package/cjs/scenegraph/graphic/contributions/index.js +36 -0
- package/cjs/scenegraph/graphic/contributions/index.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.d.ts +17 -0
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +47 -0
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/group.d.ts +23 -0
- package/cjs/scenegraph/graphic/group.js +94 -0
- package/cjs/scenegraph/graphic/group.js.map +1 -0
- package/cjs/scenegraph/graphic/icon.d.ts +24 -0
- package/cjs/scenegraph/graphic/icon.js +25 -0
- package/cjs/scenegraph/graphic/icon.js.map +1 -0
- package/cjs/scenegraph/graphic/text.d.ts +16 -0
- package/cjs/scenegraph/graphic/text.js +146 -0
- package/cjs/scenegraph/graphic/text.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-helper.d.ts +7 -0
- package/cjs/scenegraph/group-creater/cell-helper.js +84 -0
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.d.ts +3 -0
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +78 -0
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.d.ts +7 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js +123 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +9 -0
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js +342 -0
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +3 -0
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +163 -0
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/text-cell.d.ts +5 -0
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js +64 -0
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/video-cell.d.ts +4 -0
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js +100 -0
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/column-helper.d.ts +24 -0
- package/cjs/scenegraph/group-creater/column-helper.js +136 -0
- package/cjs/scenegraph/group-creater/column-helper.js.map +1 -0
- package/cjs/scenegraph/group-creater/column.d.ts +14 -0
- package/cjs/scenegraph/group-creater/column.js +57 -0
- package/cjs/scenegraph/group-creater/column.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/proxy.d.ts +45 -0
- package/cjs/scenegraph/group-creater/progress/proxy.js +267 -0
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -0
- package/cjs/scenegraph/header-icon/layout.d.ts +3 -0
- package/cjs/scenegraph/header-icon/layout.js +75 -0
- package/cjs/scenegraph/header-icon/layout.js.map +1 -0
- package/cjs/scenegraph/hover-state.d.ts +14 -0
- package/cjs/scenegraph/hover-state.js +27 -0
- package/cjs/scenegraph/hover-state.js.map +1 -0
- package/cjs/scenegraph/layout/auto-height.d.ts +2 -0
- package/cjs/scenegraph/layout/auto-height.js +50 -0
- package/cjs/scenegraph/layout/auto-height.js.map +1 -0
- package/cjs/scenegraph/layout/auto-width.d.ts +2 -0
- package/cjs/scenegraph/layout/auto-width.js +85 -0
- package/cjs/scenegraph/layout/auto-width.js.map +1 -0
- package/cjs/scenegraph/layout/compute-col-width.d.ts +3 -0
- package/cjs/scenegraph/layout/compute-col-width.js +194 -0
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -0
- package/cjs/scenegraph/layout/move-cell.d.ts +2 -0
- package/cjs/scenegraph/layout/move-cell.js +61 -0
- package/cjs/scenegraph/layout/move-cell.js.map +1 -0
- package/cjs/scenegraph/layout/update-cell.d.ts +3 -0
- package/cjs/scenegraph/layout/update-cell.js +55 -0
- package/cjs/scenegraph/layout/update-cell.js.map +1 -0
- package/cjs/scenegraph/layout/update-height.d.ts +6 -0
- package/cjs/scenegraph/layout/update-height.js +90 -0
- package/cjs/scenegraph/layout/update-height.js.map +1 -0
- package/cjs/scenegraph/layout/update-width.d.ts +2 -0
- package/cjs/scenegraph/layout/update-width.js +103 -0
- package/cjs/scenegraph/layout/update-width.js.map +1 -0
- package/cjs/scenegraph/scenegraph.d.ts +109 -0
- package/cjs/scenegraph/scenegraph.js +798 -0
- package/cjs/scenegraph/scenegraph.js.map +1 -0
- package/cjs/scenegraph/style/frame-border.d.ts +3 -0
- package/cjs/scenegraph/style/frame-border.js +43 -0
- package/cjs/scenegraph/style/frame-border.js.map +1 -0
- package/cjs/scenegraph/utils/border-line.d.ts +8 -0
- package/cjs/scenegraph/utils/border-line.js +51 -0
- package/cjs/scenegraph/utils/border-line.js.map +1 -0
- package/cjs/scenegraph/utils/break-string.d.ts +1 -0
- package/cjs/scenegraph/utils/break-string.js +37 -0
- package/cjs/scenegraph/utils/break-string.js.map +1 -0
- package/cjs/scenegraph/utils/cell-pos.d.ts +4 -0
- package/cjs/scenegraph/utils/cell-pos.js +18 -0
- package/cjs/scenegraph/utils/cell-pos.js.map +1 -0
- package/cjs/scenegraph/utils/font.d.ts +1 -0
- package/cjs/scenegraph/utils/font.js +20 -0
- package/cjs/scenegraph/utils/font.js.map +1 -0
- package/cjs/scenegraph/utils/get-cell-merge.d.ts +3 -0
- package/cjs/scenegraph/utils/get-cell-merge.js +11 -0
- package/cjs/scenegraph/utils/get-cell-merge.js.map +1 -0
- package/cjs/scenegraph/utils/get-prop.d.ts +4 -0
- package/cjs/scenegraph/utils/get-prop.js +44 -0
- package/cjs/scenegraph/utils/get-prop.js.map +1 -0
- package/cjs/scenegraph/utils/icon.d.ts +12 -0
- package/cjs/scenegraph/utils/icon.js +35 -0
- package/cjs/scenegraph/utils/icon.js.map +1 -0
- package/cjs/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
- package/cjs/scenegraph/utils/keep-aspect-ratio.js +16 -0
- package/cjs/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
- package/cjs/scenegraph/utils/measure-text.d.ts +20 -0
- package/cjs/scenegraph/utils/measure-text.js +111 -0
- package/cjs/scenegraph/utils/measure-text.js.map +1 -0
- package/cjs/scenegraph/utils/padding.d.ts +1 -0
- package/cjs/scenegraph/utils/padding.js +16 -0
- package/cjs/scenegraph/utils/padding.js.map +1 -0
- package/cjs/scenegraph/utils/text-icon-layout.d.ts +9 -0
- package/cjs/scenegraph/utils/text-icon-layout.js +237 -0
- package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -0
- package/cjs/scenegraph/utils/text-pos.d.ts +8 -0
- package/cjs/scenegraph/utils/text-pos.js +27 -0
- package/cjs/scenegraph/utils/text-pos.js.map +1 -0
- package/cjs/state/cell-move/adjust-header.d.ts +3 -0
- package/cjs/state/cell-move/adjust-header.js +20 -0
- package/cjs/state/cell-move/adjust-header.js.map +1 -0
- package/cjs/state/cell-move/index.d.ts +4 -0
- package/cjs/state/cell-move/index.js +60 -0
- package/cjs/state/cell-move/index.js.map +1 -0
- package/cjs/state/common/check-in-select.d.ts +8 -0
- package/cjs/state/common/check-in-select.js +63 -0
- package/cjs/state/common/check-in-select.js.map +1 -0
- package/cjs/state/drill/index.d.ts +2 -0
- package/cjs/state/drill/index.js +15 -0
- package/cjs/state/drill/index.js.map +1 -0
- package/cjs/state/hover/col.d.ts +5 -0
- package/cjs/state/hover/col.js +24 -0
- package/cjs/state/hover/col.js.map +1 -0
- package/cjs/state/hover/is-cell-hover.d.ts +5 -0
- package/cjs/state/hover/is-cell-hover.js +36 -0
- package/cjs/state/hover/is-cell-hover.js.map +1 -0
- package/cjs/state/hover/row.d.ts +5 -0
- package/cjs/state/hover/row.js +22 -0
- package/cjs/state/hover/row.js.map +1 -0
- package/cjs/state/hover/single.d.ts +5 -0
- package/cjs/state/hover/single.js +18 -0
- package/cjs/state/hover/single.js.map +1 -0
- package/cjs/state/hover/update-cell.d.ts +2 -0
- package/cjs/state/hover/update-cell.js +13 -0
- package/cjs/state/hover/update-cell.js.map +1 -0
- package/cjs/state/hover/update-position.d.ts +2 -0
- package/cjs/state/hover/update-position.js +44 -0
- package/cjs/state/hover/update-position.js.map +1 -0
- package/cjs/state/pin/index.d.ts +2 -0
- package/cjs/state/pin/index.js +10 -0
- package/cjs/state/pin/index.js.map +1 -0
- package/cjs/state/select/update-position.d.ts +4 -0
- package/cjs/state/select/update-position.js +111 -0
- package/cjs/state/select/update-position.js.map +1 -0
- package/cjs/state/sort/index.d.ts +2 -0
- package/cjs/state/sort/index.js +41 -0
- package/cjs/state/sort/index.js.map +1 -0
- package/cjs/state/spark-line/index.d.ts +3 -0
- package/cjs/state/spark-line/index.js +98 -0
- package/cjs/state/spark-line/index.js.map +1 -0
- package/cjs/state/state.d.ts +155 -0
- package/cjs/state/state.js +431 -0
- package/cjs/state/state.js.map +1 -0
- package/cjs/themes/ARCO.d.ts +3 -0
- package/cjs/themes/ARCO.js +114 -0
- package/cjs/themes/ARCO.js.map +1 -0
- package/cjs/themes/BRIGHT.d.ts +3 -0
- package/cjs/themes/BRIGHT.js +71 -0
- package/cjs/themes/BRIGHT.js.map +1 -0
- package/cjs/themes/DARK.d.ts +3 -0
- package/cjs/themes/DARK.js +90 -0
- package/cjs/themes/DARK.js.map +1 -0
- package/cjs/themes/DEFAULT.d.ts +3 -0
- package/cjs/themes/DEFAULT.js +89 -0
- package/cjs/themes/DEFAULT.js.map +1 -0
- package/cjs/themes/SIMPLIFY.d.ts +3 -0
- package/cjs/themes/SIMPLIFY.js +46 -0
- package/cjs/themes/SIMPLIFY.js.map +1 -0
- package/cjs/themes/theme.d.ts +34 -0
- package/cjs/themes/theme.js +520 -0
- package/cjs/themes/theme.js.map +1 -0
- package/cjs/themes.d.ts +28 -0
- package/cjs/themes.js +52 -0
- package/cjs/themes.js.map +1 -0
- package/cjs/tools/LimitPromiseQueue.d.ts +8 -0
- package/cjs/tools/LimitPromiseQueue.js +29 -0
- package/cjs/tools/LimitPromiseQueue.js.map +1 -0
- package/cjs/tools/NumberMap.d.ts +16 -0
- package/cjs/tools/NumberMap.js +76 -0
- package/cjs/tools/NumberMap.js.map +1 -0
- package/cjs/tools/Rect.d.ts +24 -0
- package/cjs/tools/Rect.js +69 -0
- package/cjs/tools/Rect.js.map +1 -0
- package/cjs/tools/calc.d.ts +5 -0
- package/cjs/tools/calc.js +197 -0
- package/cjs/tools/calc.js.map +1 -0
- package/cjs/tools/debounce.d.ts +1 -0
- package/cjs/tools/debounce.js +51 -0
- package/cjs/tools/debounce.js.map +1 -0
- package/cjs/tools/dom.d.ts +1 -0
- package/cjs/tools/dom.js +11 -0
- package/cjs/tools/dom.js.map +1 -0
- package/cjs/tools/env.d.ts +19 -0
- package/cjs/tools/env.js +48 -0
- package/cjs/tools/env.js.map +1 -0
- package/cjs/tools/global.d.ts +13 -0
- package/cjs/tools/global.js +12 -0
- package/cjs/tools/global.js.map +1 -0
- package/cjs/tools/helper.d.ts +60 -0
- package/cjs/tools/helper.js +216 -0
- package/cjs/tools/helper.js.map +1 -0
- package/cjs/tools/icons.d.ts +4 -0
- package/cjs/tools/icons.js +10 -0
- package/cjs/tools/icons.js.map +1 -0
- package/cjs/tools/isx.d.ts +16 -0
- package/cjs/tools/isx.js +117 -0
- package/cjs/tools/isx.js.map +1 -0
- package/cjs/tools/sort.d.ts +1 -0
- package/cjs/tools/sort.js +18 -0
- package/cjs/tools/sort.js.map +1 -0
- package/cjs/tools/style.css +60 -0
- package/cjs/tools/style.d.ts +2 -0
- package/cjs/tools/style.js +11 -0
- package/cjs/tools/style.js.map +1 -0
- package/cjs/tools/text-width.d.ts +1 -0
- package/cjs/tools/text-width.js +17 -0
- package/cjs/tools/text-width.js.map +1 -0
- package/cjs/tools/util.d.ts +45 -0
- package/cjs/tools/util.js +299 -0
- package/cjs/tools/util.js.map +1 -0
- package/cjs/tooltip/BaseTooltip.d.ts +22 -0
- package/cjs/tooltip/BaseTooltip.js +35 -0
- package/cjs/tooltip/BaseTooltip.js.map +1 -0
- package/cjs/tooltip/Tooltip.d.ts +5 -0
- package/cjs/tooltip/Tooltip.js +16 -0
- package/cjs/tooltip/Tooltip.js.map +1 -0
- package/cjs/tooltip/TooltipHandler.d.ts +27 -0
- package/cjs/tooltip/TooltipHandler.js +129 -0
- package/cjs/tooltip/TooltipHandler.js.map +1 -0
- package/cjs/tooltip/logic/BubbleTooltipElement.css +63 -0
- package/cjs/tooltip/logic/BubbleTooltipElement.d.ts +33 -0
- package/cjs/tooltip/logic/BubbleTooltipElement.js +152 -0
- package/cjs/tooltip/logic/BubbleTooltipElement.js.map +1 -0
- package/cjs/ts-types/base-table.d.ts +313 -0
- package/cjs/ts-types/base-table.js +6 -0
- package/cjs/ts-types/base-table.js.map +1 -0
- package/cjs/ts-types/chartType.d.ts +53 -0
- package/cjs/ts-types/chartType.js +6 -0
- package/cjs/ts-types/chartType.js.map +1 -0
- package/cjs/ts-types/column/index.d.ts +2 -0
- package/cjs/ts-types/column/index.js +21 -0
- package/cjs/ts-types/column/index.js.map +1 -0
- package/cjs/ts-types/column/style.d.ts +78 -0
- package/cjs/ts-types/column/style.js +6 -0
- package/cjs/ts-types/column/style.js.map +1 -0
- package/cjs/ts-types/column/type.d.ts +2 -0
- package/cjs/ts-types/column/type.js +6 -0
- package/cjs/ts-types/column/type.js.map +1 -0
- package/cjs/ts-types/common.d.ts +72 -0
- package/cjs/ts-types/common.js +6 -0
- package/cjs/ts-types/common.js.map +1 -0
- package/cjs/ts-types/customElement.d.ts +111 -0
- package/cjs/ts-types/customElement.js +6 -0
- package/cjs/ts-types/customElement.js.map +1 -0
- package/cjs/ts-types/customLayout.d.ts +8 -0
- package/cjs/ts-types/customLayout.js +6 -0
- package/cjs/ts-types/customLayout.js.map +1 -0
- package/cjs/ts-types/events.d.ts +182 -0
- package/cjs/ts-types/events.js +6 -0
- package/cjs/ts-types/events.js.map +1 -0
- package/cjs/ts-types/icon.d.ts +86 -0
- package/cjs/ts-types/icon.js +26 -0
- package/cjs/ts-types/icon.js.map +1 -0
- package/cjs/ts-types/index.d.ts +15 -0
- package/cjs/ts-types/index.js +28 -0
- package/cjs/ts-types/index.js.map +1 -0
- package/cjs/ts-types/list-table/define/basic-define.d.ts +36 -0
- package/cjs/ts-types/list-table/define/basic-define.js +6 -0
- package/cjs/ts-types/list-table/define/basic-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/chart-define.d.ts +10 -0
- package/cjs/ts-types/list-table/define/chart-define.js +6 -0
- package/cjs/ts-types/list-table/define/chart-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/image-define.d.ts +15 -0
- package/cjs/ts-types/list-table/define/image-define.js +6 -0
- package/cjs/ts-types/list-table/define/image-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/index.d.ts +21 -0
- package/cjs/ts-types/list-table/define/index.js +6 -0
- package/cjs/ts-types/list-table/define/index.js.map +1 -0
- package/cjs/ts-types/list-table/define/link-define.d.ts +17 -0
- package/cjs/ts-types/list-table/define/link-define.js +6 -0
- package/cjs/ts-types/list-table/define/link-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/multilinetext-define.d.ts +12 -0
- package/cjs/ts-types/list-table/define/multilinetext-define.js +6 -0
- package/cjs/ts-types/list-table/define/multilinetext-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/progressbar-define.d.ts +11 -0
- package/cjs/ts-types/list-table/define/progressbar-define.js +6 -0
- package/cjs/ts-types/list-table/define/progressbar-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/sparkline-define.d.ts +10 -0
- package/cjs/ts-types/list-table/define/sparkline-define.js +6 -0
- package/cjs/ts-types/list-table/define/sparkline-define.js.map +1 -0
- package/cjs/ts-types/list-table/index.d.ts +2 -0
- package/cjs/ts-types/list-table/index.js +21 -0
- package/cjs/ts-types/list-table/index.js.map +1 -0
- package/cjs/ts-types/list-table/layout-map/api.d.ts +92 -0
- package/cjs/ts-types/list-table/layout-map/api.js +6 -0
- package/cjs/ts-types/list-table/layout-map/api.js.map +1 -0
- package/cjs/ts-types/list-table/layout-map/index.d.ts +1 -0
- package/cjs/ts-types/list-table/layout-map/index.js +6 -0
- package/cjs/ts-types/list-table/layout-map/index.js.map +1 -0
- package/cjs/ts-types/menu.d.ts +73 -0
- package/cjs/ts-types/menu.js +6 -0
- package/cjs/ts-types/menu.js.map +1 -0
- package/cjs/ts-types/new-data-set.d.ts +95 -0
- package/cjs/ts-types/new-data-set.js +14 -0
- package/cjs/ts-types/new-data-set.js.map +1 -0
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +6 -0
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +13 -0
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
- package/cjs/ts-types/pivot-table/corner.d.ts +19 -0
- package/cjs/ts-types/pivot-table/corner.js +6 -0
- package/cjs/ts-types/pivot-table/corner.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/basic-dimension.d.ts +25 -0
- package/cjs/ts-types/pivot-table/dimension/basic-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/image-dimension.d.ts +9 -0
- package/cjs/ts-types/pivot-table/dimension/image-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/index.d.ts +4 -0
- package/cjs/ts-types/pivot-table/dimension/index.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/index.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/link-dimension.d.ts +10 -0
- package/cjs/ts-types/pivot-table/dimension/link-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
- package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/index.d.ts +4 -0
- package/cjs/ts-types/pivot-table/index.js +22 -0
- package/cjs/ts-types/pivot-table/index.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.d.ts +26 -0
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.d.ts +10 -0
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/image-indicator.d.ts +15 -0
- package/cjs/ts-types/pivot-table/indicator/image-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/index.d.ts +10 -0
- package/cjs/ts-types/pivot-table/indicator/index.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/link-indicator.d.ts +17 -0
- package/cjs/ts-types/pivot-table/indicator/link-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/title.d.ts +18 -0
- package/cjs/ts-types/pivot-table/title.js +6 -0
- package/cjs/ts-types/pivot-table/title.js.map +1 -0
- package/cjs/ts-types/style-define.d.ts +60 -0
- package/cjs/ts-types/style-define.js +6 -0
- package/cjs/ts-types/style-define.js.map +1 -0
- package/cjs/ts-types/table-engine.d.ts +169 -0
- package/cjs/ts-types/table-engine.js +12 -0
- package/cjs/ts-types/table-engine.js.map +1 -0
- package/cjs/ts-types/theme.d.ts +88 -0
- package/cjs/ts-types/theme.js +6 -0
- package/cjs/ts-types/theme.js.map +1 -0
- package/cjs/ts-types/tooltip.d.ts +22 -0
- package/cjs/ts-types/tooltip.js +6 -0
- package/cjs/ts-types/tooltip.js.map +1 -0
- package/dist/vtable.js +72964 -0
- package/dist/vtable.min.js +17 -0
- package/es/ListTable.d.ts +38 -0
- package/es/ListTable.js +256 -0
- package/es/ListTable.js.map +1 -0
- package/es/PivotTable.d.ts +50 -0
- package/es/PivotTable.js +282 -0
- package/es/PivotTable.js.map +1 -0
- package/es/body-helper/body-helper.d.ts +14 -0
- package/es/body-helper/body-helper.js +80 -0
- package/es/body-helper/body-helper.js.map +1 -0
- package/es/body-helper/style/ImageStyle.d.ts +7 -0
- package/es/body-helper/style/ImageStyle.js +16 -0
- package/es/body-helper/style/ImageStyle.js.map +1 -0
- package/es/body-helper/style/MultilineTextStyle.d.ts +13 -0
- package/es/body-helper/style/MultilineTextStyle.js +30 -0
- package/es/body-helper/style/MultilineTextStyle.js.map +1 -0
- package/es/body-helper/style/NumberStyle.d.ts +7 -0
- package/es/body-helper/style/NumberStyle.js +16 -0
- package/es/body-helper/style/NumberStyle.js.map +1 -0
- package/es/body-helper/style/ProgressBarStyle.d.ts +52 -0
- package/es/body-helper/style/ProgressBarStyle.js +118 -0
- package/es/body-helper/style/ProgressBarStyle.js.map +1 -0
- package/es/body-helper/style/Style.d.ts +85 -0
- package/es/body-helper/style/Style.js +194 -0
- package/es/body-helper/style/Style.js.map +1 -0
- package/es/body-helper/style.d.ts +10 -0
- package/es/body-helper/style.js +20 -0
- package/es/body-helper/style.js.map +1 -0
- package/es/chartType.d.ts +3 -0
- package/es/chartType.js +10 -0
- package/es/chartType.js.map +1 -0
- package/es/core/BaseTable.d.ts +287 -0
- package/es/core/BaseTable.js +1281 -0
- package/es/core/BaseTable.js.map +1 -0
- package/es/core/FouseInput.d.ts +11 -0
- package/es/core/FouseInput.js +30 -0
- package/es/core/FouseInput.js.map +1 -0
- package/es/core/TABLE_EVENT_TYPE.d.ts +30 -0
- package/es/core/TABLE_EVENT_TYPE.js +30 -0
- package/es/core/TABLE_EVENT_TYPE.js.map +1 -0
- package/es/core/tableHelper.d.ts +28 -0
- package/es/core/tableHelper.js +107 -0
- package/es/core/tableHelper.js.map +1 -0
- package/es/core.d.ts +3 -0
- package/es/core.js +6 -0
- package/es/core.js.map +1 -0
- package/es/data/CachedDataSource.d.ts +16 -0
- package/es/data/CachedDataSource.js +48 -0
- package/es/data/CachedDataSource.js.map +1 -0
- package/es/data/DataSource.d.ts +64 -0
- package/es/data/DataSource.js +267 -0
- package/es/data/DataSource.js.map +1 -0
- package/es/data/FilterDataSource.d.ts +1 -0
- package/es/data/FilterDataSource.js +1 -0
- package/es/data/FilterDataSource.js.map +1 -0
- package/es/data.d.ts +4 -0
- package/es/data.js +6 -0
- package/es/data.js.map +1 -0
- package/es/dataset/DataStatistics.d.ts +10 -0
- package/es/dataset/DataStatistics.js +74 -0
- package/es/dataset/DataStatistics.js.map +1 -0
- package/es/dataset/dataset.d.ts +72 -0
- package/es/dataset/dataset.js +482 -0
- package/es/dataset/dataset.js.map +1 -0
- package/es/dataset/flatDataToObject.d.ts +31 -0
- package/es/dataset/flatDataToObject.js +63 -0
- package/es/dataset/flatDataToObject.js.map +1 -0
- package/es/event/EventHandler.d.ts +45 -0
- package/es/event/EventHandler.js +111 -0
- package/es/event/EventHandler.js.map +1 -0
- package/es/event/EventTarget.d.ts +11 -0
- package/es/event/EventTarget.js +50 -0
- package/es/event/EventTarget.js.map +1 -0
- package/es/event/chart.d.ts +2 -0
- package/es/event/chart.js +16 -0
- package/es/event/chart.js.map +1 -0
- package/es/event/drill.d.ts +3 -0
- package/es/event/drill.js +17 -0
- package/es/event/drill.js.map +1 -0
- package/es/event/event.d.ts +35 -0
- package/es/event/event.js +438 -0
- package/es/event/event.js.map +1 -0
- package/es/event/media-click.d.ts +2 -0
- package/es/event/media-click.js +54 -0
- package/es/event/media-click.js.map +1 -0
- package/es/event/scroll.d.ts +2 -0
- package/es/event/scroll.js +17 -0
- package/es/event/scroll.js.map +1 -0
- package/es/header-helper/header-helper.d.ts +26 -0
- package/es/header-helper/header-helper.js +189 -0
- package/es/header-helper/header-helper.js.map +1 -0
- package/es/header-helper/style/ImageStyle.d.ts +7 -0
- package/es/header-helper/style/ImageStyle.js +17 -0
- package/es/header-helper/style/ImageStyle.js.map +1 -0
- package/es/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
- package/es/header-helper/style/MultilineTextHeaderStyle.js +30 -0
- package/es/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
- package/es/header-helper/style/SortHeaderStyle.d.ts +1 -0
- package/es/header-helper/style/SortHeaderStyle.js +3 -0
- package/es/header-helper/style/SortHeaderStyle.js.map +1 -0
- package/es/header-helper/style/Style.d.ts +88 -0
- package/es/header-helper/style/Style.js +202 -0
- package/es/header-helper/style/Style.js.map +1 -0
- package/es/header-helper/style.d.ts +5 -0
- package/es/header-helper/style.js +14 -0
- package/es/header-helper/style.js.map +1 -0
- package/es/icons.d.ts +4 -0
- package/es/icons.js +241 -0
- package/es/icons.js.map +1 -0
- package/es/index.d.ts +17 -0
- package/es/index.js +34 -0
- package/es/index.js.map +1 -0
- package/es/layout/index.d.ts +1 -0
- package/es/layout/index.js +2 -0
- package/es/layout/index.js.map +1 -0
- package/es/layout/pivot-header-layout.d.ts +155 -0
- package/es/layout/pivot-header-layout.js +888 -0
- package/es/layout/pivot-header-layout.js.map +1 -0
- package/es/layout/pivot-layout.d.ts +86 -0
- package/es/layout/pivot-layout.js +416 -0
- package/es/layout/pivot-layout.js.map +1 -0
- package/es/layout/simple-header-layout.d.ts +67 -0
- package/es/layout/simple-header-layout.js +405 -0
- package/es/layout/simple-header-layout.js.map +1 -0
- package/es/menu/dom/BaseMenu.d.ts +15 -0
- package/es/menu/dom/BaseMenu.js +22 -0
- package/es/menu/dom/BaseMenu.js.map +1 -0
- package/es/menu/dom/Menu.d.ts +9 -0
- package/es/menu/dom/Menu.js +18 -0
- package/es/menu/dom/Menu.js.map +1 -0
- package/es/menu/dom/MenuHandler.d.ts +20 -0
- package/es/menu/dom/MenuHandler.js +132 -0
- package/es/menu/dom/MenuHandler.js.map +1 -0
- package/es/menu/dom/logic/MenuContainer.d.ts +22 -0
- package/es/menu/dom/logic/MenuContainer.js +105 -0
- package/es/menu/dom/logic/MenuContainer.js.map +1 -0
- package/es/menu/dom/logic/MenuElement.css +86 -0
- package/es/menu/dom/logic/MenuElement.d.ts +27 -0
- package/es/menu/dom/logic/MenuElement.js +277 -0
- package/es/menu/dom/logic/MenuElement.js.map +1 -0
- package/es/plugins/chartTypes.d.ts +3 -0
- package/es/plugins/chartTypes.js +2 -0
- package/es/plugins/chartTypes.js.map +1 -0
- package/es/plugins/icons.d.ts +12 -0
- package/es/plugins/icons.js +22 -0
- package/es/plugins/icons.js.map +1 -0
- package/es/plugins/themes.d.ts +4 -0
- package/es/plugins/themes.js +2 -0
- package/es/plugins/themes.js.map +1 -0
- package/es/register.d.ts +5 -0
- package/es/register.js +31 -0
- package/es/register.js.map +1 -0
- package/es/render/layout/arc.d.ts +23 -0
- package/es/render/layout/arc.js +12 -0
- package/es/render/layout/arc.js.map +1 -0
- package/es/render/layout/circle.d.ts +19 -0
- package/es/render/layout/circle.js +11 -0
- package/es/render/layout/circle.js.map +1 -0
- package/es/render/layout/container.d.ts +52 -0
- package/es/render/layout/container.js +99 -0
- package/es/render/layout/container.js.map +1 -0
- package/es/render/layout/direction.d.ts +22 -0
- package/es/render/layout/direction.js +31 -0
- package/es/render/layout/direction.js.map +1 -0
- package/es/render/layout/element.d.ts +47 -0
- package/es/render/layout/element.js +19 -0
- package/es/render/layout/element.js.map +1 -0
- package/es/render/layout/group-element.d.ts +25 -0
- package/es/render/layout/group-element.js +46 -0
- package/es/render/layout/group-element.js.map +1 -0
- package/es/render/layout/icon.d.ts +21 -0
- package/es/render/layout/icon.js +19 -0
- package/es/render/layout/icon.js.map +1 -0
- package/es/render/layout/image.d.ts +21 -0
- package/es/render/layout/image.js +12 -0
- package/es/render/layout/image.js.map +1 -0
- package/es/render/layout/index.d.ts +9 -0
- package/es/render/layout/index.js +18 -0
- package/es/render/layout/index.js.map +1 -0
- package/es/render/layout/line.d.ts +32 -0
- package/es/render/layout/line.js +80 -0
- package/es/render/layout/line.js.map +1 -0
- package/es/render/layout/percent-calc.d.ts +8 -0
- package/es/render/layout/percent-calc.js +7 -0
- package/es/render/layout/percent-calc.js.map +1 -0
- package/es/render/layout/rect.d.ts +22 -0
- package/es/render/layout/rect.js +11 -0
- package/es/render/layout/rect.js.map +1 -0
- package/es/render/layout/text.d.ts +22 -0
- package/es/render/layout/text.js +18 -0
- package/es/render/layout/text.js.map +1 -0
- package/es/scenegraph/component/cell-content.d.ts +36 -0
- package/es/scenegraph/component/cell-content.js +98 -0
- package/es/scenegraph/component/cell-content.js.map +1 -0
- package/es/scenegraph/component/cell-mover.d.ts +15 -0
- package/es/scenegraph/component/cell-mover.js +101 -0
- package/es/scenegraph/component/cell-mover.js.map +1 -0
- package/es/scenegraph/component/custom.d.ts +7 -0
- package/es/scenegraph/component/custom.js +211 -0
- package/es/scenegraph/component/custom.js.map +1 -0
- package/es/scenegraph/component/drill-icon.d.ts +9 -0
- package/es/scenegraph/component/drill-icon.js +41 -0
- package/es/scenegraph/component/drill-icon.js.map +1 -0
- package/es/scenegraph/component/menu.d.ts +41 -0
- package/es/scenegraph/component/menu.js +212 -0
- package/es/scenegraph/component/menu.js.map +1 -0
- package/es/scenegraph/component/table-component.d.ts +37 -0
- package/es/scenegraph/component/table-component.js +304 -0
- package/es/scenegraph/component/table-component.js.map +1 -0
- package/es/scenegraph/component/util.d.ts +2 -0
- package/es/scenegraph/component/util.js +5 -0
- package/es/scenegraph/component/util.js.map +1 -0
- package/es/scenegraph/debug-tool/debug-tool.d.ts +36 -0
- package/es/scenegraph/debug-tool/debug-tool.js +126 -0
- package/es/scenegraph/debug-tool/debug-tool.js.map +1 -0
- package/es/scenegraph/debug-tool/index.d.ts +4 -0
- package/es/scenegraph/debug-tool/index.js +6 -0
- package/es/scenegraph/debug-tool/index.js.map +1 -0
- package/es/scenegraph/graphic/chart.d.ts +30 -0
- package/es/scenegraph/graphic/chart.js +59 -0
- package/es/scenegraph/graphic/chart.js.map +1 -0
- package/es/scenegraph/graphic/contributions/chart-render.d.ts +10 -0
- package/es/scenegraph/graphic/contributions/chart-render.js +47 -0
- package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/group-contribution-render.d.ts +70 -0
- package/es/scenegraph/graphic/contributions/group-contribution-render.js +192 -0
- package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/image-contribution-render.d.ts +20 -0
- package/es/scenegraph/graphic/contributions/image-contribution-render.js +42 -0
- package/es/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/index.d.ts +3 -0
- package/es/scenegraph/graphic/contributions/index.js +29 -0
- package/es/scenegraph/graphic/contributions/index.js.map +1 -0
- package/es/scenegraph/graphic/contributions/rect-contribution-render.d.ts +17 -0
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js +45 -0
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/group.d.ts +23 -0
- package/es/scenegraph/graphic/group.js +86 -0
- package/es/scenegraph/graphic/group.js.map +1 -0
- package/es/scenegraph/graphic/icon.d.ts +24 -0
- package/es/scenegraph/graphic/icon.js +17 -0
- package/es/scenegraph/graphic/icon.js.map +1 -0
- package/es/scenegraph/graphic/text.d.ts +16 -0
- package/es/scenegraph/graphic/text.js +142 -0
- package/es/scenegraph/graphic/text.js.map +1 -0
- package/es/scenegraph/group-creater/cell-helper.d.ts +7 -0
- package/es/scenegraph/group-creater/cell-helper.js +93 -0
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/chart-cell.d.ts +3 -0
- package/es/scenegraph/group-creater/cell-type/chart-cell.js +54 -0
- package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.d.ts +7 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.js +102 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +9 -0
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js +337 -0
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +3 -0
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +165 -0
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/text-cell.d.ts +5 -0
- package/es/scenegraph/group-creater/cell-type/text-cell.js +66 -0
- package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/video-cell.d.ts +4 -0
- package/es/scenegraph/group-creater/cell-type/video-cell.js +86 -0
- package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
- package/es/scenegraph/group-creater/column-helper.d.ts +24 -0
- package/es/scenegraph/group-creater/column-helper.js +135 -0
- package/es/scenegraph/group-creater/column-helper.js.map +1 -0
- package/es/scenegraph/group-creater/column.d.ts +14 -0
- package/es/scenegraph/group-creater/column.js +49 -0
- package/es/scenegraph/group-creater/column.js.map +1 -0
- package/es/scenegraph/group-creater/progress/proxy.d.ts +45 -0
- package/es/scenegraph/group-creater/progress/proxy.js +268 -0
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -0
- package/es/scenegraph/header-icon/layout.d.ts +3 -0
- package/es/scenegraph/header-icon/layout.js +69 -0
- package/es/scenegraph/header-icon/layout.js.map +1 -0
- package/es/scenegraph/hover-state.d.ts +14 -0
- package/es/scenegraph/hover-state.js +19 -0
- package/es/scenegraph/hover-state.js.map +1 -0
- package/es/scenegraph/layout/auto-height.d.ts +2 -0
- package/es/scenegraph/layout/auto-height.js +44 -0
- package/es/scenegraph/layout/auto-height.js.map +1 -0
- package/es/scenegraph/layout/auto-width.d.ts +2 -0
- package/es/scenegraph/layout/auto-width.js +82 -0
- package/es/scenegraph/layout/auto-width.js.map +1 -0
- package/es/scenegraph/layout/compute-col-width.d.ts +3 -0
- package/es/scenegraph/layout/compute-col-width.js +167 -0
- package/es/scenegraph/layout/compute-col-width.js.map +1 -0
- package/es/scenegraph/layout/move-cell.d.ts +2 -0
- package/es/scenegraph/layout/move-cell.js +55 -0
- package/es/scenegraph/layout/move-cell.js.map +1 -0
- package/es/scenegraph/layout/update-cell.d.ts +3 -0
- package/es/scenegraph/layout/update-cell.js +55 -0
- package/es/scenegraph/layout/update-cell.js.map +1 -0
- package/es/scenegraph/layout/update-height.d.ts +6 -0
- package/es/scenegraph/layout/update-height.js +91 -0
- package/es/scenegraph/layout/update-height.js.map +1 -0
- package/es/scenegraph/layout/update-width.d.ts +2 -0
- package/es/scenegraph/layout/update-width.js +105 -0
- package/es/scenegraph/layout/update-width.js.map +1 -0
- package/es/scenegraph/scenegraph.d.ts +109 -0
- package/es/scenegraph/scenegraph.js +818 -0
- package/es/scenegraph/scenegraph.js.map +1 -0
- package/es/scenegraph/style/frame-border.d.ts +3 -0
- package/es/scenegraph/style/frame-border.js +35 -0
- package/es/scenegraph/style/frame-border.js.map +1 -0
- package/es/scenegraph/utils/border-line.d.ts +8 -0
- package/es/scenegraph/utils/border-line.js +45 -0
- package/es/scenegraph/utils/border-line.js.map +1 -0
- package/es/scenegraph/utils/break-string.d.ts +1 -0
- package/es/scenegraph/utils/break-string.js +31 -0
- package/es/scenegraph/utils/break-string.js.map +1 -0
- package/es/scenegraph/utils/cell-pos.d.ts +4 -0
- package/es/scenegraph/utils/cell-pos.js +12 -0
- package/es/scenegraph/utils/cell-pos.js.map +1 -0
- package/es/scenegraph/utils/font.d.ts +1 -0
- package/es/scenegraph/utils/font.js +6 -0
- package/es/scenegraph/utils/font.js.map +1 -0
- package/es/scenegraph/utils/get-cell-merge.d.ts +3 -0
- package/es/scenegraph/utils/get-cell-merge.js +5 -0
- package/es/scenegraph/utils/get-cell-merge.js.map +1 -0
- package/es/scenegraph/utils/get-prop.d.ts +4 -0
- package/es/scenegraph/utils/get-prop.js +36 -0
- package/es/scenegraph/utils/get-prop.js.map +1 -0
- package/es/scenegraph/utils/icon.d.ts +12 -0
- package/es/scenegraph/utils/icon.js +29 -0
- package/es/scenegraph/utils/icon.js.map +1 -0
- package/es/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
- package/es/scenegraph/utils/keep-aspect-ratio.js +10 -0
- package/es/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
- package/es/scenegraph/utils/measure-text.d.ts +20 -0
- package/es/scenegraph/utils/measure-text.js +114 -0
- package/es/scenegraph/utils/measure-text.js.map +1 -0
- package/es/scenegraph/utils/padding.d.ts +1 -0
- package/es/scenegraph/utils/padding.js +8 -0
- package/es/scenegraph/utils/padding.js.map +1 -0
- package/es/scenegraph/utils/text-icon-layout.d.ts +9 -0
- package/es/scenegraph/utils/text-icon-layout.js +239 -0
- package/es/scenegraph/utils/text-icon-layout.js.map +1 -0
- package/es/scenegraph/utils/text-pos.d.ts +8 -0
- package/es/scenegraph/utils/text-pos.js +20 -0
- package/es/scenegraph/utils/text-pos.js.map +1 -0
- package/es/state/cell-move/adjust-header.d.ts +3 -0
- package/es/state/cell-move/adjust-header.js +14 -0
- package/es/state/cell-move/adjust-header.js.map +1 -0
- package/es/state/cell-move/index.d.ts +4 -0
- package/es/state/cell-move/index.js +52 -0
- package/es/state/cell-move/index.js.map +1 -0
- package/es/state/common/check-in-select.d.ts +8 -0
- package/es/state/common/check-in-select.js +53 -0
- package/es/state/common/check-in-select.js.map +1 -0
- package/es/state/drill/index.d.ts +2 -0
- package/es/state/drill/index.js +9 -0
- package/es/state/drill/index.js.map +1 -0
- package/es/state/hover/col.d.ts +5 -0
- package/es/state/hover/col.js +16 -0
- package/es/state/hover/col.js.map +1 -0
- package/es/state/hover/is-cell-hover.d.ts +5 -0
- package/es/state/hover/is-cell-hover.js +30 -0
- package/es/state/hover/is-cell-hover.js.map +1 -0
- package/es/state/hover/row.d.ts +5 -0
- package/es/state/hover/row.js +14 -0
- package/es/state/hover/row.js.map +1 -0
- package/es/state/hover/single.d.ts +5 -0
- package/es/state/hover/single.js +10 -0
- package/es/state/hover/single.js.map +1 -0
- package/es/state/hover/update-cell.d.ts +2 -0
- package/es/state/hover/update-cell.js +7 -0
- package/es/state/hover/update-cell.js.map +1 -0
- package/es/state/hover/update-position.d.ts +2 -0
- package/es/state/hover/update-position.js +36 -0
- package/es/state/hover/update-position.js.map +1 -0
- package/es/state/pin/index.d.ts +2 -0
- package/es/state/pin/index.js +4 -0
- package/es/state/pin/index.js.map +1 -0
- package/es/state/select/update-position.d.ts +4 -0
- package/es/state/select/update-position.js +103 -0
- package/es/state/select/update-position.js.map +1 -0
- package/es/state/sort/index.d.ts +2 -0
- package/es/state/sort/index.js +35 -0
- package/es/state/sort/index.js.map +1 -0
- package/es/state/spark-line/index.d.ts +3 -0
- package/es/state/spark-line/index.js +92 -0
- package/es/state/spark-line/index.js.map +1 -0
- package/es/state/state.d.ts +155 -0
- package/es/state/state.js +458 -0
- package/es/state/state.js.map +1 -0
- package/es/themes/ARCO.d.ts +3 -0
- package/es/themes/ARCO.js +110 -0
- package/es/themes/ARCO.js.map +1 -0
- package/es/themes/BRIGHT.d.ts +3 -0
- package/es/themes/BRIGHT.js +67 -0
- package/es/themes/BRIGHT.js.map +1 -0
- package/es/themes/DARK.d.ts +3 -0
- package/es/themes/DARK.js +86 -0
- package/es/themes/DARK.js.map +1 -0
- package/es/themes/DEFAULT.d.ts +3 -0
- package/es/themes/DEFAULT.js +85 -0
- package/es/themes/DEFAULT.js.map +1 -0
- package/es/themes/SIMPLIFY.d.ts +3 -0
- package/es/themes/SIMPLIFY.js +42 -0
- package/es/themes/SIMPLIFY.js.map +1 -0
- package/es/themes/theme.d.ts +34 -0
- package/es/themes/theme.js +505 -0
- package/es/themes/theme.js.map +1 -0
- package/es/themes.d.ts +28 -0
- package/es/themes.js +62 -0
- package/es/themes.js.map +1 -0
- package/es/tools/LimitPromiseQueue.d.ts +8 -0
- package/es/tools/LimitPromiseQueue.js +21 -0
- package/es/tools/LimitPromiseQueue.js.map +1 -0
- package/es/tools/NumberMap.d.ts +16 -0
- package/es/tools/NumberMap.js +70 -0
- package/es/tools/NumberMap.js.map +1 -0
- package/es/tools/Rect.d.ts +24 -0
- package/es/tools/Rect.js +61 -0
- package/es/tools/Rect.js.map +1 -0
- package/es/tools/calc.d.ts +5 -0
- package/es/tools/calc.js +191 -0
- package/es/tools/calc.js.map +1 -0
- package/es/tools/debounce.d.ts +1 -0
- package/es/tools/debounce.js +43 -0
- package/es/tools/debounce.js.map +1 -0
- package/es/tools/dom.d.ts +1 -0
- package/es/tools/dom.js +5 -0
- package/es/tools/dom.js.map +1 -0
- package/es/tools/env.d.ts +19 -0
- package/es/tools/env.js +42 -0
- package/es/tools/env.js.map +1 -0
- package/es/tools/global.d.ts +13 -0
- package/es/tools/global.js +26 -0
- package/es/tools/global.js.map +1 -0
- package/es/tools/helper.d.ts +60 -0
- package/es/tools/helper.js +216 -0
- package/es/tools/helper.js.map +1 -0
- package/es/tools/icons.d.ts +4 -0
- package/es/tools/icons.js +4 -0
- package/es/tools/icons.js.map +1 -0
- package/es/tools/isx.d.ts +16 -0
- package/es/tools/isx.js +79 -0
- package/es/tools/isx.js.map +1 -0
- package/es/tools/sort.d.ts +1 -0
- package/es/tools/sort.js +12 -0
- package/es/tools/sort.js.map +1 -0
- package/es/tools/style.css +60 -0
- package/es/tools/style.d.ts +2 -0
- package/es/tools/style.js +5 -0
- package/es/tools/style.js.map +1 -0
- package/es/tools/text-width.d.ts +1 -0
- package/es/tools/text-width.js +9 -0
- package/es/tools/text-width.js.map +1 -0
- package/es/tools/util.d.ts +45 -0
- package/es/tools/util.js +250 -0
- package/es/tools/util.js.map +1 -0
- package/es/tooltip/BaseTooltip.d.ts +22 -0
- package/es/tooltip/BaseTooltip.js +27 -0
- package/es/tooltip/BaseTooltip.js.map +1 -0
- package/es/tooltip/Tooltip.d.ts +5 -0
- package/es/tooltip/Tooltip.js +10 -0
- package/es/tooltip/Tooltip.js.map +1 -0
- package/es/tooltip/TooltipHandler.d.ts +27 -0
- package/es/tooltip/TooltipHandler.js +131 -0
- package/es/tooltip/TooltipHandler.js.map +1 -0
- package/es/tooltip/logic/BubbleTooltipElement.css +63 -0
- package/es/tooltip/logic/BubbleTooltipElement.d.ts +33 -0
- package/es/tooltip/logic/BubbleTooltipElement.js +149 -0
- package/es/tooltip/logic/BubbleTooltipElement.js.map +1 -0
- package/es/ts-types/base-table.d.ts +313 -0
- package/es/ts-types/base-table.js +2 -0
- package/es/ts-types/base-table.js.map +1 -0
- package/es/ts-types/chartType.d.ts +53 -0
- package/es/ts-types/chartType.js +2 -0
- package/es/ts-types/chartType.js.map +1 -0
- package/es/ts-types/column/index.d.ts +2 -0
- package/es/ts-types/column/index.js +4 -0
- package/es/ts-types/column/index.js.map +1 -0
- package/es/ts-types/column/style.d.ts +78 -0
- package/es/ts-types/column/style.js +2 -0
- package/es/ts-types/column/style.js.map +1 -0
- package/es/ts-types/column/type.d.ts +2 -0
- package/es/ts-types/column/type.js +2 -0
- package/es/ts-types/column/type.js.map +1 -0
- package/es/ts-types/common.d.ts +72 -0
- package/es/ts-types/common.js +2 -0
- package/es/ts-types/common.js.map +1 -0
- package/es/ts-types/customElement.d.ts +111 -0
- package/es/ts-types/customElement.js +2 -0
- package/es/ts-types/customElement.js.map +1 -0
- package/es/ts-types/customLayout.d.ts +8 -0
- package/es/ts-types/customLayout.js +2 -0
- package/es/ts-types/customLayout.js.map +1 -0
- package/es/ts-types/events.d.ts +182 -0
- package/es/ts-types/events.js +2 -0
- package/es/ts-types/events.js.map +1 -0
- package/es/ts-types/icon.d.ts +86 -0
- package/es/ts-types/icon.js +28 -0
- package/es/ts-types/icon.js.map +1 -0
- package/es/ts-types/index.d.ts +15 -0
- package/es/ts-types/index.js +30 -0
- package/es/ts-types/index.js.map +1 -0
- package/es/ts-types/list-table/define/basic-define.d.ts +36 -0
- package/es/ts-types/list-table/define/basic-define.js +2 -0
- package/es/ts-types/list-table/define/basic-define.js.map +1 -0
- package/es/ts-types/list-table/define/chart-define.d.ts +10 -0
- package/es/ts-types/list-table/define/chart-define.js +2 -0
- package/es/ts-types/list-table/define/chart-define.js.map +1 -0
- package/es/ts-types/list-table/define/image-define.d.ts +15 -0
- package/es/ts-types/list-table/define/image-define.js +2 -0
- package/es/ts-types/list-table/define/image-define.js.map +1 -0
- package/es/ts-types/list-table/define/index.d.ts +21 -0
- package/es/ts-types/list-table/define/index.js +2 -0
- package/es/ts-types/list-table/define/index.js.map +1 -0
- package/es/ts-types/list-table/define/link-define.d.ts +17 -0
- package/es/ts-types/list-table/define/link-define.js +2 -0
- package/es/ts-types/list-table/define/link-define.js.map +1 -0
- package/es/ts-types/list-table/define/multilinetext-define.d.ts +12 -0
- package/es/ts-types/list-table/define/multilinetext-define.js +2 -0
- package/es/ts-types/list-table/define/multilinetext-define.js.map +1 -0
- package/es/ts-types/list-table/define/progressbar-define.d.ts +11 -0
- package/es/ts-types/list-table/define/progressbar-define.js +2 -0
- package/es/ts-types/list-table/define/progressbar-define.js.map +1 -0
- package/es/ts-types/list-table/define/sparkline-define.d.ts +10 -0
- package/es/ts-types/list-table/define/sparkline-define.js +2 -0
- package/es/ts-types/list-table/define/sparkline-define.js.map +1 -0
- package/es/ts-types/list-table/index.d.ts +2 -0
- package/es/ts-types/list-table/index.js +4 -0
- package/es/ts-types/list-table/index.js.map +1 -0
- package/es/ts-types/list-table/layout-map/api.d.ts +92 -0
- package/es/ts-types/list-table/layout-map/api.js +2 -0
- package/es/ts-types/list-table/layout-map/api.js.map +1 -0
- package/es/ts-types/list-table/layout-map/index.d.ts +1 -0
- package/es/ts-types/list-table/layout-map/index.js +2 -0
- package/es/ts-types/list-table/layout-map/index.js.map +1 -0
- package/es/ts-types/menu.d.ts +73 -0
- package/es/ts-types/menu.js +2 -0
- package/es/ts-types/menu.js.map +1 -0
- package/es/ts-types/new-data-set.d.ts +95 -0
- package/es/ts-types/new-data-set.js +13 -0
- package/es/ts-types/new-data-set.js.map +1 -0
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +6 -0
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +9 -0
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
- package/es/ts-types/pivot-table/corner.d.ts +19 -0
- package/es/ts-types/pivot-table/corner.js +2 -0
- package/es/ts-types/pivot-table/corner.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/basic-dimension.d.ts +25 -0
- package/es/ts-types/pivot-table/dimension/basic-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/image-dimension.d.ts +9 -0
- package/es/ts-types/pivot-table/dimension/image-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/index.d.ts +4 -0
- package/es/ts-types/pivot-table/dimension/index.js +2 -0
- package/es/ts-types/pivot-table/dimension/index.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/link-dimension.d.ts +10 -0
- package/es/ts-types/pivot-table/dimension/link-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
- package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/index.d.ts +4 -0
- package/es/ts-types/pivot-table/index.js +8 -0
- package/es/ts-types/pivot-table/index.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/basic-indicator.d.ts +26 -0
- package/es/ts-types/pivot-table/indicator/basic-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/chart-indicator.d.ts +10 -0
- package/es/ts-types/pivot-table/indicator/chart-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/image-indicator.d.ts +15 -0
- package/es/ts-types/pivot-table/indicator/image-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/index.d.ts +10 -0
- package/es/ts-types/pivot-table/indicator/index.js +2 -0
- package/es/ts-types/pivot-table/indicator/index.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/link-indicator.d.ts +17 -0
- package/es/ts-types/pivot-table/indicator/link-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
- package/es/ts-types/pivot-table/indicator/progress-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/title.d.ts +18 -0
- package/es/ts-types/pivot-table/title.js +2 -0
- package/es/ts-types/pivot-table/title.js.map +1 -0
- package/es/ts-types/style-define.d.ts +60 -0
- package/es/ts-types/style-define.js +2 -0
- package/es/ts-types/style-define.js.map +1 -0
- package/es/ts-types/table-engine.d.ts +169 -0
- package/es/ts-types/table-engine.js +12 -0
- package/es/ts-types/table-engine.js.map +1 -0
- package/es/ts-types/theme.d.ts +88 -0
- package/es/ts-types/theme.js +2 -0
- package/es/ts-types/theme.js.map +1 -0
- package/es/ts-types/tooltip.d.ts +22 -0
- package/es/ts-types/tooltip.js +2 -0
- package/es/ts-types/tooltip.js.map +1 -0
- package/package.json +95 -0
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
let seqId = 0;
|
|
2
|
+
|
|
3
|
+
export class SimpleHeaderLayoutMap {
|
|
4
|
+
constructor(table, columns, showHeader, hierarchyIndent) {
|
|
5
|
+
this.bodyRowCount = 1, this._transpose = !1, this._showHeader = !0, this._recordsCount = 0,
|
|
6
|
+
this._cellRangeMap = new Map, this._showHeader = showHeader, this._table = table,
|
|
7
|
+
this._columns = [], this._headerCellIds = [], this.hierarchyIndent = null != hierarchyIndent ? hierarchyIndent : 20,
|
|
8
|
+
this._headerObjects = this._addHeaders(0, columns, []), this._headerObjectMap = this._headerObjects.reduce(((o, e) => (o[e.id] = e,
|
|
9
|
+
o)), {});
|
|
10
|
+
}
|
|
11
|
+
get transpose() {
|
|
12
|
+
return this._transpose;
|
|
13
|
+
}
|
|
14
|
+
set transpose(_transpose) {
|
|
15
|
+
this._transpose = _transpose;
|
|
16
|
+
}
|
|
17
|
+
get showHeader() {
|
|
18
|
+
return this._showHeader;
|
|
19
|
+
}
|
|
20
|
+
set showHeader(_showHeader) {
|
|
21
|
+
this._showHeader = _showHeader;
|
|
22
|
+
}
|
|
23
|
+
isHeader(col, row) {
|
|
24
|
+
return !!(this.transpose && col < this.headerLevelCount) || !this.transpose && row < this.headerLevelCount;
|
|
25
|
+
}
|
|
26
|
+
getCellType(col, row) {
|
|
27
|
+
return this.isHeader(col, row) ? this.transpose ? "rowHeader" : "columnHeader" : "body";
|
|
28
|
+
}
|
|
29
|
+
isColumnHeader(col, row) {
|
|
30
|
+
return !this.transpose && row < this.headerLevelCount;
|
|
31
|
+
}
|
|
32
|
+
isCornerHeader(col, row) {
|
|
33
|
+
return !1;
|
|
34
|
+
}
|
|
35
|
+
isRowHeader(col, row) {
|
|
36
|
+
return !!(this.transpose && col < this.headerLevelCount);
|
|
37
|
+
}
|
|
38
|
+
getColumnHeaderRange() {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
return this.transpose ? {
|
|
41
|
+
start: {
|
|
42
|
+
col: 0,
|
|
43
|
+
row: 0
|
|
44
|
+
},
|
|
45
|
+
end: {
|
|
46
|
+
col: this._headerCellIds.length - 1,
|
|
47
|
+
row: (null !== (_a = this.rowCount) && void 0 !== _a ? _a : 0) - 1
|
|
48
|
+
}
|
|
49
|
+
} : {
|
|
50
|
+
start: {
|
|
51
|
+
col: 0,
|
|
52
|
+
row: 0
|
|
53
|
+
},
|
|
54
|
+
end: {
|
|
55
|
+
col: (null !== (_b = this.colCount) && void 0 !== _b ? _b : 0) - 1,
|
|
56
|
+
row: this._headerCellIds.length - 1
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
getRowHeaderRange() {
|
|
61
|
+
var _a, _b;
|
|
62
|
+
return this.transpose ? {
|
|
63
|
+
start: {
|
|
64
|
+
col: 0,
|
|
65
|
+
row: 0
|
|
66
|
+
},
|
|
67
|
+
end: {
|
|
68
|
+
col: this._headerCellIds.length - 1,
|
|
69
|
+
row: (null !== (_a = this.rowCount) && void 0 !== _a ? _a : 0) - 1
|
|
70
|
+
}
|
|
71
|
+
} : {
|
|
72
|
+
start: {
|
|
73
|
+
col: 0,
|
|
74
|
+
row: 0
|
|
75
|
+
},
|
|
76
|
+
end: {
|
|
77
|
+
col: (null !== (_b = this.colCount) && void 0 !== _b ? _b : 0) - 1,
|
|
78
|
+
row: this._headerCellIds.length - 1
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
getCornerHeaderRange() {}
|
|
83
|
+
getBodyRange() {
|
|
84
|
+
var _a, _b, _c, _d;
|
|
85
|
+
return this.transpose ? {
|
|
86
|
+
start: {
|
|
87
|
+
col: this.headerLevelCount,
|
|
88
|
+
row: 0
|
|
89
|
+
},
|
|
90
|
+
end: {
|
|
91
|
+
col: (null !== (_a = this.colCount) && void 0 !== _a ? _a : 0) - 1,
|
|
92
|
+
row: (null !== (_b = this.rowCount) && void 0 !== _b ? _b : 0) - 1
|
|
93
|
+
}
|
|
94
|
+
} : {
|
|
95
|
+
start: {
|
|
96
|
+
col: 0,
|
|
97
|
+
row: this.headerLevelCount
|
|
98
|
+
},
|
|
99
|
+
end: {
|
|
100
|
+
col: (null !== (_c = this.colCount) && void 0 !== _c ? _c : 0) - 1,
|
|
101
|
+
row: (null !== (_d = this.rowCount) && void 0 !== _d ? _d : 0) - 1
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
get headerLevelCount() {
|
|
106
|
+
return this.showHeader ? this._headerCellIds.length : 0;
|
|
107
|
+
}
|
|
108
|
+
get columnHeaderLevelCount() {
|
|
109
|
+
return this.transpose ? 0 : this.headerLevelCount;
|
|
110
|
+
}
|
|
111
|
+
get rowHeaderLevelCount() {
|
|
112
|
+
return this.transpose ? this.headerLevelCount : 0;
|
|
113
|
+
}
|
|
114
|
+
get colCount() {
|
|
115
|
+
return this.transpose ? this.headerLevelCount + this.recordsCount : this._columns.length;
|
|
116
|
+
}
|
|
117
|
+
get rowCount() {
|
|
118
|
+
return this.transpose ? this._columns.length : this.headerLevelCount + this.recordsCount;
|
|
119
|
+
}
|
|
120
|
+
get recordsCount() {
|
|
121
|
+
return this._recordsCount;
|
|
122
|
+
}
|
|
123
|
+
set recordsCount(recordsCount) {
|
|
124
|
+
this._recordsCount = recordsCount;
|
|
125
|
+
}
|
|
126
|
+
get headerObjects() {
|
|
127
|
+
return this._headerObjects;
|
|
128
|
+
}
|
|
129
|
+
get columnObjects() {
|
|
130
|
+
return this._columns;
|
|
131
|
+
}
|
|
132
|
+
get columnWidths() {
|
|
133
|
+
return this._columns;
|
|
134
|
+
}
|
|
135
|
+
getCellId(col, row) {
|
|
136
|
+
var _a, _b, _c, _d;
|
|
137
|
+
return this.transpose ? this.headerLevelCount <= col ? null === (_a = this._columns[row]) || void 0 === _a ? void 0 : _a.id : null === (_b = this._headerCellIds[col]) || void 0 === _b ? void 0 : _b[row] : this.headerLevelCount <= row ? null === (_c = this._columns[col]) || void 0 === _c ? void 0 : _c.id : null === (_d = this._headerCellIds[row]) || void 0 === _d ? void 0 : _d[col];
|
|
138
|
+
}
|
|
139
|
+
getHeader(col, row) {
|
|
140
|
+
const id = this.getCellId(col, row);
|
|
141
|
+
return this._headerObjectMap[id];
|
|
142
|
+
}
|
|
143
|
+
getHeaderFieldKey(col, row) {
|
|
144
|
+
var _a, _b, _c;
|
|
145
|
+
const id = this.getCellId(col, row);
|
|
146
|
+
return (null === (_a = this._headerObjectMap[id]) || void 0 === _a ? void 0 : _a.fieldKey) || (this.transpose ? null === (_b = this._columns[row]) || void 0 === _b ? void 0 : _b.fieldKey : null === (_c = this._columns[col]) || void 0 === _c ? void 0 : _c.fieldKey);
|
|
147
|
+
}
|
|
148
|
+
getHeaderField(col, row) {
|
|
149
|
+
var _a;
|
|
150
|
+
const id = this.getCellId(col, row);
|
|
151
|
+
return (null === (_a = this._headerObjectMap[id]) || void 0 === _a ? void 0 : _a.field) || (this.transpose ? this._columns[row] && this._columns[row].field : this._columns[col] && this._columns[col].field);
|
|
152
|
+
}
|
|
153
|
+
getHeaderCellAdress(id) {
|
|
154
|
+
for (let i = 0; i < this._headerCellIds.length; i++) {
|
|
155
|
+
const row = this._headerCellIds[i];
|
|
156
|
+
for (let j = 0; j < row.length; j++) if (row[j] === id) return this.transpose ? {
|
|
157
|
+
col: i,
|
|
158
|
+
row: j
|
|
159
|
+
} : {
|
|
160
|
+
col: j,
|
|
161
|
+
row: i
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
getHeaderCellAddressByField(field) {
|
|
166
|
+
const hd = this.headerObjects.find((col => col && col.field === field));
|
|
167
|
+
return this.getHeaderCellAdress(hd.id);
|
|
168
|
+
}
|
|
169
|
+
getBody(col, _row) {
|
|
170
|
+
return this.transpose ? this._columns[_row] : this._columns[col];
|
|
171
|
+
}
|
|
172
|
+
getBodyLayoutRangeById(id) {
|
|
173
|
+
var _a, _b;
|
|
174
|
+
if (this.transpose) {
|
|
175
|
+
for (let row = 0; row < (null !== (_a = this.rowCount) && void 0 !== _a ? _a : 0); row++) if (id === this._columns[row].id) return {
|
|
176
|
+
start: {
|
|
177
|
+
col: 0,
|
|
178
|
+
row: row
|
|
179
|
+
},
|
|
180
|
+
end: {
|
|
181
|
+
col: 0,
|
|
182
|
+
row: row
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
} else for (let col = 0; col < (null !== (_b = this.colCount) && void 0 !== _b ? _b : 0); col++) if (id === this._columns[col].id) return {
|
|
186
|
+
start: {
|
|
187
|
+
col: col,
|
|
188
|
+
row: 0
|
|
189
|
+
},
|
|
190
|
+
end: {
|
|
191
|
+
col: col,
|
|
192
|
+
row: 0
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
throw new Error(`can not found body layout @id=${id}`);
|
|
196
|
+
}
|
|
197
|
+
getBodyCellValue(col, row) {
|
|
198
|
+
if (this.isHeader(col, row)) return null;
|
|
199
|
+
const {field: field, fieldFormat: fieldFormat} = this.getBody(col, row);
|
|
200
|
+
return this._table.getFieldData(fieldFormat || field, col, row);
|
|
201
|
+
}
|
|
202
|
+
getCellRange(col, row) {
|
|
203
|
+
var _a, _b, _c;
|
|
204
|
+
if (-1 === col || -1 === row) return {
|
|
205
|
+
start: {
|
|
206
|
+
col: col,
|
|
207
|
+
row: row
|
|
208
|
+
},
|
|
209
|
+
end: {
|
|
210
|
+
col: col,
|
|
211
|
+
row: row
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
if (this._cellRangeMap.has(`$${col}$${row}`)) return this._cellRangeMap.get(`$${col}$${row}`);
|
|
215
|
+
let cellRange = {
|
|
216
|
+
start: {
|
|
217
|
+
col: col,
|
|
218
|
+
row: row
|
|
219
|
+
},
|
|
220
|
+
end: {
|
|
221
|
+
col: col,
|
|
222
|
+
row: row
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
if (this.transpose) cellRange = this.getCellRangeTranspose(col, row); else if (this.headerLevelCount <= row) {
|
|
226
|
+
if (this.headerLevelCount <= row && (null === (_b = null === (_a = this.columnObjects[col]) || void 0 === _a ? void 0 : _a.define) || void 0 === _b ? void 0 : _b.mergeCell)) {
|
|
227
|
+
const value = this.getBodyCellValue(col, row);
|
|
228
|
+
for (let r = row - 1; r >= this.headerLevelCount && value === this.getBodyCellValue(col, r); r--) cellRange.start.row = r;
|
|
229
|
+
for (let r = row + 1; r < this.rowCount && value === this.getBodyCellValue(col, r); r++) cellRange.end.row = r;
|
|
230
|
+
}
|
|
231
|
+
} else {
|
|
232
|
+
const id = this.getCellId(col, row);
|
|
233
|
+
for (let c = col - 1; c >= 0 && id === this.getCellId(c, row); c--) cellRange.start.col = c;
|
|
234
|
+
for (let c = col + 1; c < (null !== (_c = this.colCount) && void 0 !== _c ? _c : 0) && id === this.getCellId(c, row); c++) cellRange.end.col = c;
|
|
235
|
+
for (let r = row - 1; r >= 0 && id === this.getCellId(col, r); r--) cellRange.start.row = r;
|
|
236
|
+
for (let r = row + 1; r < this.headerLevelCount && id === this.getCellId(col, r); r++) cellRange.end.row = r;
|
|
237
|
+
}
|
|
238
|
+
return this._cellRangeMap.set(`$${col}$${row}`, cellRange), cellRange;
|
|
239
|
+
}
|
|
240
|
+
getCellRangeTranspose(col, row) {
|
|
241
|
+
var _a, _b, _c, _d;
|
|
242
|
+
const result = {
|
|
243
|
+
start: {
|
|
244
|
+
col: col,
|
|
245
|
+
row: row
|
|
246
|
+
},
|
|
247
|
+
end: {
|
|
248
|
+
col: col,
|
|
249
|
+
row: row
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
if (this.headerLevelCount <= col || -1 === col && -1 === row) {
|
|
253
|
+
if (this.headerLevelCount <= col && (null === (_b = null === (_a = this.columnObjects[row]) || void 0 === _a ? void 0 : _a.define) || void 0 === _b ? void 0 : _b.mergeCell)) {
|
|
254
|
+
const value = this.getBodyCellValue(col, row);
|
|
255
|
+
for (let c = col - 1; c >= this.headerLevelCount && value === this.getBodyCellValue(c, row); c--) result.start.col = c;
|
|
256
|
+
for (let c = col + 1; c < (null !== (_c = this.colCount) && void 0 !== _c ? _c : 0) && value === this.getBodyCellValue(c, row); c++) result.end.col = c;
|
|
257
|
+
}
|
|
258
|
+
return result;
|
|
259
|
+
}
|
|
260
|
+
const id = this.getCellId(col, row);
|
|
261
|
+
for (let r = row - 1; r >= 0 && id === this.getCellId(col, r); r--) result.start.row = r;
|
|
262
|
+
for (let r = row + 1; r < (null !== (_d = this.rowCount) && void 0 !== _d ? _d : 0) && id === this.getCellId(col, r); r++) result.end.row = r;
|
|
263
|
+
for (let c = col - 1; c >= 0 && id === this.getCellId(c, row); c--) result.start.col = c;
|
|
264
|
+
for (let c = col + 1; c < this.headerLevelCount && id === this.getCellId(c, row); c++) result.end.col = c;
|
|
265
|
+
return result;
|
|
266
|
+
}
|
|
267
|
+
isCellRangeEqual(col, row, targetCol, targetRow) {
|
|
268
|
+
const range1 = this.getCellRange(col, row), range2 = this.getCellRange(targetCol, targetRow);
|
|
269
|
+
return range1.start.col === range2.start.col && range1.end.col === range2.end.col && range1.start.row === range2.start.row && range1.end.row === range2.end.row;
|
|
270
|
+
}
|
|
271
|
+
getRecordIndexByRow(col, row) {
|
|
272
|
+
return this.transpose ? col < this.headerLevelCount ? -1 : col - this.headerLevelCount : row < this.headerLevelCount ? -1 : row - this.headerLevelCount;
|
|
273
|
+
}
|
|
274
|
+
getRecordStartRowByRecordIndex(index) {
|
|
275
|
+
return this.headerLevelCount + index;
|
|
276
|
+
}
|
|
277
|
+
_addHeaders(row, column, roots, hideColumnsSubHeader) {
|
|
278
|
+
const results = [], rowCells = this._newRow(row, hideColumnsSubHeader);
|
|
279
|
+
return column.forEach((hd => {
|
|
280
|
+
var _a, _b;
|
|
281
|
+
const col = this._columns.length, id = seqId++, {captionIcon: captionIcon} = hd, cell = {
|
|
282
|
+
id: id,
|
|
283
|
+
caption: hd.caption,
|
|
284
|
+
captionIcon: captionIcon,
|
|
285
|
+
headerIcon: hd.headerIcon,
|
|
286
|
+
field: hd.field,
|
|
287
|
+
fieldKey: null == hd ? void 0 : hd.fieldKey,
|
|
288
|
+
fieldFormat: hd.fieldFormat,
|
|
289
|
+
style: hd.headerStyle,
|
|
290
|
+
headerType: null !== (_a = hd.headerType) && void 0 !== _a ? _a : "text",
|
|
291
|
+
dropDownMenu: hd.dropDownMenu,
|
|
292
|
+
define: hd,
|
|
293
|
+
columnWidthComputeMode: hd.columnWidthComputeMode
|
|
294
|
+
};
|
|
295
|
+
results[id] = cell;
|
|
296
|
+
for (let r = row - 1; r >= 0; r--) this._headerCellIds[r][col] = roots[r];
|
|
297
|
+
if (rowCells[col] = hideColumnsSubHeader ? this._headerCellIds[row - 1][col] : id,
|
|
298
|
+
hd.columns) this._addHeaders(row + 1, hd.columns, [ ...roots, id ], hd.hideColumnsSubHeader).forEach((c => results.push(c))); else {
|
|
299
|
+
const colDef = hd;
|
|
300
|
+
this._columns.push({
|
|
301
|
+
id: seqId++,
|
|
302
|
+
field: colDef.field,
|
|
303
|
+
fieldKey: colDef.fieldKey,
|
|
304
|
+
fieldFormat: colDef.fieldFormat,
|
|
305
|
+
width: colDef.width,
|
|
306
|
+
minWidth: colDef.minWidth,
|
|
307
|
+
maxWidth: colDef.maxWidth,
|
|
308
|
+
icon: colDef.icon,
|
|
309
|
+
columnType: null !== (_b = colDef.columnType) && void 0 !== _b ? _b : "text",
|
|
310
|
+
chartType: "chartType" in colDef ? colDef.chartType : null,
|
|
311
|
+
chartSpec: "chartSpec" in colDef ? colDef.chartSpec : null,
|
|
312
|
+
sparklineSpec: "sparklineSpec" in colDef ? colDef.sparklineSpec : null,
|
|
313
|
+
style: colDef.style,
|
|
314
|
+
define: colDef,
|
|
315
|
+
columnWidthComputeMode: colDef.columnWidthComputeMode,
|
|
316
|
+
disableColumnResize: null == colDef ? void 0 : colDef.disableColumnResize
|
|
317
|
+
});
|
|
318
|
+
for (let r = row + 1; r < this._headerCellIds.length; r++) this._headerCellIds[r][col] = id;
|
|
319
|
+
}
|
|
320
|
+
})), results;
|
|
321
|
+
}
|
|
322
|
+
_newRow(row, hideColumnsSubHeader = !1) {
|
|
323
|
+
if (this._headerCellIds[row]) {
|
|
324
|
+
const prev = this._headerCellIds[row - 1];
|
|
325
|
+
if (prev.length > this._headerCellIds[row].length) for (let col = this._headerCellIds[row].length; col < prev.length; col++) this._headerCellIds[row][col] = prev[col];
|
|
326
|
+
return this._headerCellIds[row];
|
|
327
|
+
}
|
|
328
|
+
if (hideColumnsSubHeader) return [];
|
|
329
|
+
const newRow = this._headerCellIds[row] = [];
|
|
330
|
+
if (!this._columns.length) return newRow;
|
|
331
|
+
const prev = this._headerCellIds[row - 1];
|
|
332
|
+
for (let col = 0; col < prev.length; col++) newRow[col] = prev[col];
|
|
333
|
+
return newRow;
|
|
334
|
+
}
|
|
335
|
+
getCellHeaderPaths(col, row) {
|
|
336
|
+
let colPath = [], rowPath = [];
|
|
337
|
+
return this.transpose ? rowPath = [ {
|
|
338
|
+
field: this._columns[row].field
|
|
339
|
+
} ] : colPath = [ {
|
|
340
|
+
field: this._columns[col].field
|
|
341
|
+
} ], {
|
|
342
|
+
colHeaderPaths: colPath,
|
|
343
|
+
rowHeaderPaths: rowPath
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
getParentCellId(col, row) {
|
|
347
|
+
if (0 !== row) return this.isColumnHeader(col, row) ? this.getCellId(col, row - 1) : this.isRowHeader(col, row) ? this.getCellId(col - 1, row) : void 0;
|
|
348
|
+
}
|
|
349
|
+
canMoveHeaderPosition(source, target) {
|
|
350
|
+
const sourceCellRange = this.getCellRange(source.col, source.row);
|
|
351
|
+
if (this.isColumnHeader(source.col, source.row)) {
|
|
352
|
+
return this.getParentCellId(source.col, sourceCellRange.start.row) === this.getParentCellId(target.col, sourceCellRange.start.row);
|
|
353
|
+
}
|
|
354
|
+
if (this.isRowHeader(source.col, source.row)) {
|
|
355
|
+
return this.getParentCellId(sourceCellRange.start.col, source.row) === this.getParentCellId(sourceCellRange.start.col, target.row);
|
|
356
|
+
}
|
|
357
|
+
return !1;
|
|
358
|
+
}
|
|
359
|
+
moveHeaderPosition(source, target) {
|
|
360
|
+
if (this.canMoveHeaderPosition(source, target)) {
|
|
361
|
+
const sourceCellRange = this.getCellRange(source.col, source.row);
|
|
362
|
+
if (this.isColumnHeader(source.col, source.row)) {
|
|
363
|
+
const moveSize = sourceCellRange.end.col - sourceCellRange.start.col + 1;
|
|
364
|
+
let targetIndex;
|
|
365
|
+
const targetCellRange = this.getCellRange(target.col, sourceCellRange.start.row);
|
|
366
|
+
if (targetIndex = target.col >= source.col ? targetCellRange.end.col - moveSize + 1 : targetCellRange.start.col,
|
|
367
|
+
targetIndex === sourceCellRange.start.col) return null;
|
|
368
|
+
for (let row = 0; row < this._headerCellIds.length; row++) {
|
|
369
|
+
const sourceIds = this._headerCellIds[row].splice(sourceCellRange.start.col, moveSize);
|
|
370
|
+
sourceIds.unshift(targetIndex, 0), Array.prototype.splice.apply(this._headerCellIds[row], sourceIds);
|
|
371
|
+
}
|
|
372
|
+
const sourceColumns = this._columns.splice(sourceCellRange.start.col, moveSize);
|
|
373
|
+
return sourceColumns.unshift(targetIndex, 0), Array.prototype.splice.apply(this._columns, sourceColumns),
|
|
374
|
+
this._cellRangeMap = new Map, {
|
|
375
|
+
sourceIndex: sourceCellRange.start.col,
|
|
376
|
+
targetIndex: targetIndex,
|
|
377
|
+
moveSize: moveSize,
|
|
378
|
+
moveType: "column"
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
if (this.isRowHeader(source.col, source.row)) {
|
|
382
|
+
const moveSize = sourceCellRange.end.row - sourceCellRange.start.row + 1;
|
|
383
|
+
let targetIndex;
|
|
384
|
+
const targetCellRange = this.getCellRange(sourceCellRange.start.col, target.row);
|
|
385
|
+
if (targetIndex = target.row >= source.row ? targetCellRange.end.row - moveSize + 1 : targetCellRange.start.row,
|
|
386
|
+
targetIndex === sourceCellRange.start.row) return null;
|
|
387
|
+
for (let row = 0; row < this._headerCellIds.length; row++) {
|
|
388
|
+
const sourceIds = this._headerCellIds[row].splice(sourceCellRange.start.row, moveSize);
|
|
389
|
+
sourceIds.unshift(targetIndex, 0), Array.prototype.splice.apply(this._headerCellIds[row], sourceIds);
|
|
390
|
+
}
|
|
391
|
+
const sourceColumns = this._columns.splice(sourceCellRange.start.row, moveSize);
|
|
392
|
+
return sourceColumns.unshift(targetIndex, 0), Array.prototype.splice.apply(this._columns, sourceColumns),
|
|
393
|
+
this._cellRangeMap = new Map, {
|
|
394
|
+
sourceIndex: sourceCellRange.start.row,
|
|
395
|
+
targetIndex: targetIndex,
|
|
396
|
+
moveSize: moveSize,
|
|
397
|
+
moveType: "row"
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
return null;
|
|
402
|
+
}
|
|
403
|
+
toggleHierarchyState(col, row) {}
|
|
404
|
+
}
|
|
405
|
+
//# sourceMappingURL=simple-header-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["layout/simple-header-layout.ts"],"names":[],"mappings":"AAaA,IAAI,KAAK,GAAG,CAAC,CAAC;AACd,MAAM,OAAO,qBAAqB;IAiBhC,YAAY,KAAgB,EAAE,OAAsB,EAAE,UAAmB,EAAE,eAAuB;QAXzF,iB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,CAAC,CAAC,CAAC;oBAClC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,CAAC;iBACnE;gBAED,MAAM,aAAa,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;gBAChF,aAAa,CAAC,OAAO,CAAC,WAAkB,EAAE,CAAQ,CAAC,CAAC;gBACpD,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;gBAE3D,IAAI,CAAC,aAAa,GAAG,IAAI,GAAG,EAAE,CAAC;gBAC/B,OAAO;oBACL,WAAW,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG;oBACtC,WAAW;oBACX,QAAQ;oBACR,QAAQ,EAAE,KAAK;iBAChB,CAAC;aACH;SACF;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAMD,oBAAoB,CAAC,GAAW,EAAE,GAAW;IAE7C,CAAC;CACF","file":"simple-header-layout.js","sourcesContent":["/* eslint-disable sort-imports */\nimport type { ListTable } from '../ListTable';\nimport type { CellAddress, CellRange, CellType, IListTableCellHeaderPaths, LayoutObjectId } from '../ts-types';\nimport type { ColumnsDefine, TextColumnDefine } from '../ts-types/list-table/define';\nimport type {\n ColumnData,\n ColumnDefine,\n HeaderData,\n LayoutMapAPI,\n WidthData\n} from '../ts-types/list-table/layout-map/api';\n// import { EmptyDataCache } from './utils';\n\nlet seqId = 0;\nexport class SimpleHeaderLayoutMap implements LayoutMapAPI {\n private _headerObjects: HeaderData[];\n private _headerObjectMap: { [key in LayoutObjectId]: HeaderData };\n // private _headerObjectFieldKey: { [key in string]: HeaderData };\n private _headerCellIds: number[][];\n private _columns: ColumnData[];\n readonly bodyRowCount: number = 1;\n //透视表中树形结构使用 这里为了table逻辑不报错\n // rowHierarchyIndent?: number = 0;\n hierarchyIndent?: number; // 树形展示缩进值\n // private _emptyDataCache = new EmptyDataCache();\n _transpose = false;\n _showHeader = true;\n _recordsCount = 0;\n _table: ListTable;\n // 缓存行号列号对应的cellRange 需要注意当表头位置拖拽后 这个缓存的行列号已不准确 进行重置\n private _cellRangeMap: Map<string, CellRange>; //存储单元格的行列号范围 针对解决是否为合并单元格情况\n constructor(table: ListTable, columns: ColumnsDefine, showHeader: boolean, hierarchyIndent: number) {\n this._cellRangeMap = new Map();\n this._showHeader = showHeader;\n this._table = table;\n this._columns = [];\n this._headerCellIds = [];\n this.hierarchyIndent = hierarchyIndent ?? 20;\n this._headerObjects = this._addHeaders(0, columns, []);\n this._headerObjectMap = this._headerObjects.reduce((o, e) => {\n o[e.id as number] = e;\n return o;\n }, {} as { [key in LayoutObjectId]: HeaderData });\n // this._headerObjectFieldKey = this._headerObjects.reduce((o, e) => {\n // o[e.fieldKey] = e;\n // return o;\n // }, {} as { [key in string]: HeaderData });\n }\n // get columnWidths(): ColumnData[] {\n // return this._columns;\n // }\n get transpose(): boolean {\n return this._transpose;\n }\n set transpose(_transpose: boolean) {\n this._transpose = _transpose;\n }\n get showHeader(): boolean {\n return this._showHeader;\n }\n set showHeader(_showHeader: boolean) {\n this._showHeader = _showHeader;\n }\n isHeader(col: number, row: number): boolean {\n if (this.transpose && col < this.headerLevelCount) {\n return true;\n }\n if (!this.transpose && row < this.headerLevelCount) {\n return true;\n }\n return false;\n }\n getCellType(col: number, row: number): CellType {\n if (this.isHeader(col, row)) {\n if (this.transpose) {\n return 'rowHeader';\n }\n return 'columnHeader';\n }\n return 'body';\n }\n isColumnHeader(col: number, row: number): boolean {\n if (!this.transpose && row < this.headerLevelCount) {\n return true;\n }\n return false;\n }\n\n isCornerHeader(col: number, row: number): boolean {\n return false;\n }\n isRowHeader(col: number, row: number): boolean {\n if (this.transpose && col < this.headerLevelCount) {\n return true;\n }\n return false;\n }\n getColumnHeaderRange(): CellRange {\n if (this.transpose) {\n return {\n start: { col: 0, row: 0 },\n end: { col: this._headerCellIds.length - 1, row: (this.rowCount ?? 0) - 1 }\n };\n }\n return {\n start: { col: 0, row: 0 },\n end: { col: (this.colCount ?? 0) - 1, row: this._headerCellIds.length - 1 }\n };\n }\n //目前和getColumnHeaderRange 逻辑一致 因为基本表格只有一侧有表头\n getRowHeaderRange(): CellRange | undefined {\n if (this.transpose) {\n return {\n start: { col: 0, row: 0 },\n end: { col: this._headerCellIds.length - 1, row: (this.rowCount ?? 0) - 1 }\n };\n }\n return {\n start: { col: 0, row: 0 },\n end: { col: (this.colCount ?? 0) - 1, row: this._headerCellIds.length - 1 }\n };\n }\n getCornerHeaderRange(): CellRange | undefined {\n return undefined;\n }\n getBodyRange(): CellRange {\n if (this.transpose) {\n return {\n start: { col: this.headerLevelCount, row: 0 },\n end: { col: (this.colCount ?? 0) - 1, row: (this.rowCount ?? 0) - 1 }\n };\n }\n return {\n start: { col: 0, row: this.headerLevelCount },\n end: { col: (this.colCount ?? 0) - 1, row: (this.rowCount ?? 0) - 1 }\n };\n }\n /**\n * 是否为最底层表头\n * @param col\n * @param row\n * @returns\n */\n // isHeaderNode(col: number, row: number): boolean {\n // const header = this.getHeader(col, row);\n // if (\n // header &&\n // header.define &&\n // (!(<any>header.define).columns || (<any>header.define).hideColumnsSubHeader)\n // )\n // return true;\n // return false;\n // }\n get headerLevelCount(): number {\n return this.showHeader ? this._headerCellIds.length : 0;\n }\n get columnHeaderLevelCount(): number {\n return this.transpose ? 0 : this.headerLevelCount;\n }\n get rowHeaderLevelCount(): number {\n return this.transpose ? this.headerLevelCount : 0;\n }\n get colCount(): number | undefined {\n //标准表格 列数是由表头定义的field决定的;如果是转置表格,这个值么有地方用到,而且是由数据量决定的,在listTable中有定义这个值\n return this.transpose ? this.headerLevelCount + this.recordsCount : this._columns.length;\n }\n get rowCount(): number | undefined {\n //转置表格 行数是由表头定义的field决定的;如果是标准表格,这个值么有地方用到,而且是由数据量决定的,在listTable中有定义这个值\n return this.transpose ? this._columns.length : this.headerLevelCount + this.recordsCount;\n }\n get recordsCount() {\n //标准表格 列数是由表头定义的field决定的;如果是转置表格,这个值么有地方用到,而且是由数据量决定的,在listTable中有定义这个值\n return this._recordsCount;\n }\n set recordsCount(recordsCount: number) {\n //标准表格 列数是由表头定义的field决定的;如果是转置表格,这个值么有地方用到,而且是由数据量决定的,在listTable中有定义这个值\n this._recordsCount = recordsCount;\n }\n get headerObjects(): HeaderData[] {\n return this._headerObjects;\n }\n get columnObjects(): ColumnData[] {\n return this._columns;\n }\n //对比multi-layout 那个里面有columWidths对象,保持结构一致\n get columnWidths(): WidthData[] {\n return this._columns;\n }\n getCellId(col: number, row: number): LayoutObjectId {\n if (this.transpose) {\n if (this.headerLevelCount <= col) {\n return this._columns[row]?.id;\n }\n //in header\n return this._headerCellIds[col]?.[row];\n }\n if (this.headerLevelCount <= row) {\n return this._columns[col]?.id;\n }\n //in header\n return this._headerCellIds[row]?.[col];\n }\n getHeader(col: number, row: number): HeaderData {\n const id = this.getCellId(col, row);\n return this._headerObjectMap[id as number]!;\n }\n getHeaderFieldKey(col: number, row: number) {\n const id = this.getCellId(col, row);\n return (\n this._headerObjectMap[id as number]?.fieldKey ||\n (this.transpose ? this._columns[row]?.fieldKey : this._columns[col]?.fieldKey)\n );\n }\n getHeaderField(col: number, row: number) {\n const id = this.getCellId(col, row);\n return (\n this._headerObjectMap[id as number]?.field ||\n (this.transpose ? this._columns[row] && this._columns[row].field : this._columns[col] && this._columns[col].field)\n );\n }\n getHeaderCellAdress(id: number): CellAddress | undefined {\n for (let i = 0; i < this._headerCellIds.length; i++) {\n const row = this._headerCellIds[i];\n for (let j = 0; j < row.length; j++) {\n if (row[j] === id) {\n if (this.transpose) {\n return { col: i, row: j };\n }\n return { col: j, row: i };\n }\n }\n }\n return undefined;\n }\n /** 根据field获取表头cell位置 */\n getHeaderCellAddressByField(field: string): CellAddress | undefined {\n const hd = this.headerObjects.find((col: any) => col && col.field === field);\n return this.getHeaderCellAdress(hd.id as number);\n }\n getBody(col: number, _row: number): ColumnData {\n return this.transpose ? this._columns[_row] : this._columns[col];\n }\n getBodyLayoutRangeById(id: LayoutObjectId): CellRange {\n if (this.transpose) {\n for (let row = 0; row < (this.rowCount ?? 0); row++) {\n if (id === this._columns[row].id) {\n return {\n start: { col: 0, row },\n end: { col: 0, row }\n };\n }\n }\n } else {\n for (let col = 0; col < (this.colCount ?? 0); col++) {\n if (id === this._columns[col].id) {\n return {\n start: { col, row: 0 },\n end: { col, row: 0 }\n };\n }\n }\n }\n throw new Error(`can not found body layout @id=${id as number}`);\n }\n /**\n * 获取body部分cell的内容\n * @param col\n * @param row\n * @returns\n */\n getBodyCellValue(col: number, row: number) {\n if (this.isHeader(col, row)) {\n return null;\n }\n const { field, fieldFormat } = this.getBody(col, row);\n return this._table.getFieldData(fieldFormat || field, col, row);\n }\n getCellRange(col: number, row: number): CellRange {\n if (col === -1 || row === -1) {\n return {\n start: { col, row },\n end: { col, row }\n };\n }\n if (this._cellRangeMap.has(`$${col}$${row}`)) {\n return this._cellRangeMap.get(`$${col}$${row}`);\n }\n let cellRange: CellRange = { start: { col, row }, end: { col, row } };\n if (this.transpose) {\n cellRange = this.getCellRangeTranspose(col, row);\n } else {\n // hover相关的单元格位置是-1,-1,getCellRange计算有误,先进行判断\n if (this.headerLevelCount <= row) {\n //如果是body部分 设置了需要合并单元格 这里判断上下是否内容相同 相同的话 将cellRange范围扩大\n if (this.headerLevelCount <= row && (this.columnObjects[col]?.define as TextColumnDefine)?.mergeCell) {\n const value = this.getBodyCellValue(col, row);\n for (let r = row - 1; r >= this.headerLevelCount; r--) {\n if (value !== this.getBodyCellValue(col, r)) {\n break;\n }\n cellRange.start.row = r;\n }\n for (let r = row + 1; r < this.rowCount; r++) {\n if (value !== this.getBodyCellValue(col, r)) {\n break;\n }\n cellRange.end.row = r;\n }\n }\n // return cellRange;\n } else {\n //in header\n const id = this.getCellId(col, row);\n for (let c = col - 1; c >= 0; c--) {\n if (id !== this.getCellId(c, row)) {\n break;\n }\n cellRange.start.col = c;\n }\n for (let c = col + 1; c < (this.colCount ?? 0); c++) {\n if (id !== this.getCellId(c, row)) {\n break;\n }\n cellRange.end.col = c;\n }\n for (let r = row - 1; r >= 0; r--) {\n if (id !== this.getCellId(col, r)) {\n break;\n }\n cellRange.start.row = r;\n }\n for (let r = row + 1; r < this.headerLevelCount; r++) {\n if (id !== this.getCellId(col, r)) {\n break;\n }\n cellRange.end.row = r;\n }\n // return cellRange;\n }\n }\n this._cellRangeMap.set(`$${col}$${row}`, cellRange);\n return cellRange;\n }\n private getCellRangeTranspose(col: number, row: number): CellRange {\n const result: CellRange = { start: { col, row }, end: { col, row } };\n // hover相关的单元格位置是-1,-1,getCellRange计算有误,先进行判断\n if (this.headerLevelCount <= col || (col === -1 && row === -1)) {\n //如果是body部分 设置了需要合并单元格 这里判断左右是否内容相同 相同的话 将cellRange范围扩大\n if (this.headerLevelCount <= col && (this.columnObjects[row]?.define as TextColumnDefine)?.mergeCell) {\n const value = this.getBodyCellValue(col, row);\n for (let c = col - 1; c >= this.headerLevelCount; c--) {\n if (value !== this.getBodyCellValue(c, row)) {\n break;\n }\n result.start.col = c;\n }\n for (let c = col + 1; c < (this.colCount ?? 0); c++) {\n if (value !== this.getBodyCellValue(c, row)) {\n break;\n }\n result.end.col = c;\n }\n }\n return result;\n }\n //in header\n const id = this.getCellId(col, row);\n for (let r = row - 1; r >= 0; r--) {\n if (id !== this.getCellId(col, r)) {\n break;\n }\n result.start.row = r;\n }\n for (let r = row + 1; r < (this.rowCount ?? 0); r++) {\n if (id !== this.getCellId(col, r)) {\n break;\n }\n result.end.row = r;\n }\n for (let c = col - 1; c >= 0; c--) {\n if (id !== this.getCellId(c, row)) {\n break;\n }\n result.start.col = c;\n }\n for (let c = col + 1; c < this.headerLevelCount; c++) {\n if (id !== this.getCellId(c, row)) {\n break;\n }\n result.end.col = c;\n }\n return result;\n }\n isCellRangeEqual(col: number, row: number, targetCol: number, targetRow: number): boolean {\n const range1 = this.getCellRange(col, row);\n const range2 = this.getCellRange(targetCol, targetRow);\n return (\n range1.start.col === range2.start.col &&\n range1.end.col === range2.end.col &&\n range1.start.row === range2.start.row &&\n range1.end.row === range2.end.row\n );\n }\n getRecordIndexByRow(col: number, row: number): number {\n if (this.transpose) {\n if (col < this.headerLevelCount) {\n return -1;\n }\n return col - this.headerLevelCount;\n }\n if (row < this.headerLevelCount) {\n return -1;\n }\n return row - this.headerLevelCount;\n }\n getRecordStartRowByRecordIndex(index: number): number {\n return this.headerLevelCount + index;\n }\n private _addHeaders(\n row: number,\n column: ColumnsDefine,\n roots: number[],\n hideColumnsSubHeader?: boolean\n ): HeaderData[] {\n const results: HeaderData[] = [];\n const rowCells = this._newRow(row, hideColumnsSubHeader); // !hideColumnsSubHeader ? this._headerCellIds[row] || this._newRow(row) : [];\n column.forEach((hd: ColumnDefine) => {\n const col = this._columns.length;\n const id = seqId++;\n const { captionIcon } = hd;\n const cell: HeaderData = {\n id,\n caption: hd.caption,\n captionIcon,\n headerIcon: hd.headerIcon,\n field: (hd as ColumnDefine).field,\n fieldKey: (hd as ColumnDefine)?.fieldKey,\n fieldFormat: (hd as ColumnDefine).fieldFormat,\n style: hd.headerStyle,\n headerType: hd.headerType ?? 'text',\n dropDownMenu: hd.dropDownMenu,\n define: hd,\n columnWidthComputeMode: hd.columnWidthComputeMode\n // iconPositionList:[]\n };\n results[id] = cell;\n for (let r = row - 1; r >= 0; r--) {\n this._headerCellIds[r][col] = roots[r];\n }\n if (!hideColumnsSubHeader) {\n rowCells[col] = id;\n } else {\n rowCells[col] = this._headerCellIds[row - 1][col];\n }\n if (hd.columns) {\n this._addHeaders(row + 1, hd.columns, [...roots, id], hd.hideColumnsSubHeader).forEach(c => results.push(c));\n } else {\n const colDef = hd;\n this._columns.push({\n id: seqId++,\n field: colDef.field,\n fieldKey: colDef.fieldKey,\n fieldFormat: colDef.fieldFormat,\n width: colDef.width,\n minWidth: colDef.minWidth,\n maxWidth: colDef.maxWidth,\n icon: colDef.icon,\n columnType: colDef.columnType ?? 'text',\n chartType: 'chartType' in colDef ? colDef.chartType : null, // todo: 放到对应的column对象中\n chartSpec: 'chartSpec' in colDef ? colDef.chartSpec : null, // todo: 放到对应的column对象中\n sparklineSpec: 'sparklineSpec' in colDef ? colDef.sparklineSpec : null, // todo: 放到对应的column对象中\n style: colDef.style,\n define: colDef,\n columnWidthComputeMode: colDef.columnWidthComputeMode,\n disableColumnResize: colDef?.disableColumnResize\n });\n for (let r = row + 1; r < this._headerCellIds.length; r++) {\n this._headerCellIds[r][col] = id;\n }\n }\n });\n return results;\n }\n private _newRow(row: number, hideColumnsSubHeader = false): number[] {\n //如果当前行已经有数组对象 将上一行的id内容补全到当前行上\n if (this._headerCellIds[row]) {\n const prev = this._headerCellIds[row - 1];\n if (prev.length > this._headerCellIds[row].length) {\n for (let col = this._headerCellIds[row].length; col < prev.length; col++) {\n this._headerCellIds[row][col] = prev[col];\n }\n }\n return this._headerCellIds[row];\n }\n // 隐藏子标题的情况 吐出一个新的数组\n if (hideColumnsSubHeader) {\n return [];\n }\n // 其他情况 不隐藏子标题 同步上一行的id\n const newRow: number[] = (this._headerCellIds[row] = []);\n if (!this._columns.length) {\n return newRow;\n }\n const prev = this._headerCellIds[row - 1];\n for (let col = 0; col < prev.length; col++) {\n newRow[col] = prev[col];\n }\n return newRow;\n }\n getCellHeaderPaths(col: number, row: number): IListTableCellHeaderPaths {\n let colPath: IListTableCellHeaderPaths['colHeaderPaths'] = [];\n let rowPath: IListTableCellHeaderPaths['rowHeaderPaths'] = [];\n if (!this.transpose) {\n colPath = [\n {\n field: this._columns[col].field\n }\n ];\n } else {\n rowPath = [\n {\n field: this._columns[row].field\n }\n ];\n }\n return {\n colHeaderPaths: colPath,\n rowHeaderPaths: rowPath\n };\n }\n private getParentCellId(col: number, row: number) {\n if (row === 0) {\n return undefined;\n }\n if (this.isColumnHeader(col, row)) {\n return this.getCellId(col, row - 1);\n } else if (this.isRowHeader(col, row)) {\n return this.getCellId(col - 1, row);\n }\n return undefined;\n }\n /**\n * 判断从source地址是否可以移动到target地址\n * @param source\n * @param target\n * @returns boolean 是否可以移动\n */\n canMoveHeaderPosition(source: CellAddress, target: CellAddress): boolean {\n // 获取操作单元格的range范围\n const sourceCellRange = this.getCellRange(source.col, source.row);\n // 获取source和target对应sourceCellRange.start.row的headerId\n if (this.isColumnHeader(source.col, source.row)) {\n const sourceTopId = this.getParentCellId(source.col, sourceCellRange.start.row);\n const targetTopId = this.getParentCellId(target.col, sourceCellRange.start.row);\n return sourceTopId === targetTopId;\n } else if (this.isRowHeader(source.col, source.row)) {\n const sourceTopId = this.getParentCellId(sourceCellRange.start.col, source.row);\n const targetTopId = this.getParentCellId(sourceCellRange.start.col, target.row);\n return sourceTopId === targetTopId;\n }\n return false;\n }\n /**\n * 拖拽换位置 从source地址换到target地址\n * @param source\n * @param target\n * @returns\n */\n moveHeaderPosition(source: CellAddress, target: CellAddress) {\n // 判断从source地址是否可以移动到target地址\n if (this.canMoveHeaderPosition(source, target)) {\n const sourceCellRange = this.getCellRange(source.col, source.row);\n // 对移动列表头 行表头 分别处理\n if (this.isColumnHeader(source.col, source.row)) {\n // source单元格包含的列数\n const moveSize = sourceCellRange.end.col - sourceCellRange.start.col + 1;\n // 插入目标地址的列index\n let targetIndex;\n const targetCellRange = this.getCellRange(target.col, sourceCellRange.start.row);\n if (target.col >= source.col) {\n targetIndex = targetCellRange.end.col - moveSize + 1;\n } else {\n targetIndex = targetCellRange.start.col;\n }\n //如果操作列和目标地址col一样 则不执行其他逻辑\n if (targetIndex === sourceCellRange.start.col) {\n return null;\n }\n // 逐行将每一行的source id 移动到目标地址targetCol处\n for (let row = 0; row < this._headerCellIds.length; row++) {\n // 从header id的二维数组中取出需要操作的source ids\n const sourceIds = this._headerCellIds[row].splice(sourceCellRange.start.col, moveSize);\n // 将source ids插入到目标地址targetCol处\n // 把sourceIds变成一个适合splice的数组(包含splice前2个参数的数组) 以通过splice来插入sourceIds数组\n sourceIds.unshift(targetIndex, 0);\n Array.prototype.splice.apply(this._headerCellIds[row], sourceIds);\n }\n //将_columns的列定义调整位置 同调整_headerCellIds逻辑\n const sourceColumns = this._columns.splice(sourceCellRange.start.col, moveSize);\n sourceColumns.unshift(targetIndex as any, 0 as any);\n Array.prototype.splice.apply(this._columns, sourceColumns);\n\n this._cellRangeMap = new Map();\n return {\n sourceIndex: sourceCellRange.start.col,\n targetIndex,\n moveSize,\n moveType: 'column'\n };\n } else if (this.isRowHeader(source.col, source.row)) {\n // source单元格包含的列数\n const moveSize = sourceCellRange.end.row - sourceCellRange.start.row + 1;\n // 插入目标地址的列index\n let targetIndex;\n const targetCellRange = this.getCellRange(sourceCellRange.start.col, target.row);\n if (target.row >= source.row) {\n targetIndex = targetCellRange.end.row - moveSize + 1;\n } else {\n targetIndex = targetCellRange.start.row;\n }\n //如果操作列和目标地址col一样 则不执行其他逻辑\n if (targetIndex === sourceCellRange.start.row) {\n return null;\n }\n // 逐行将每一行的source id 移动到目标地址targetCol处\n for (let row = 0; row < this._headerCellIds.length; row++) {\n // 从header id的二维数组中取出需要操作的source ids\n const sourceIds = this._headerCellIds[row].splice(sourceCellRange.start.row, moveSize);\n // 将source ids插入到目标地址targetCol处\n // 把sourceIds变成一个适合splice的数组(包含splice前2个参数的数组) 以通过splice来插入sourceIds数组\n sourceIds.unshift(targetIndex, 0);\n Array.prototype.splice.apply(this._headerCellIds[row], sourceIds);\n }\n //将_columns的列定义调整位置 同调整_headerCellIds逻辑\n const sourceColumns = this._columns.splice(sourceCellRange.start.row, moveSize);\n sourceColumns.unshift(targetIndex as any, 0 as any);\n Array.prototype.splice.apply(this._columns, sourceColumns);\n\n this._cellRangeMap = new Map();\n return {\n sourceIndex: sourceCellRange.start.row,\n targetIndex,\n moveSize,\n moveType: 'row'\n };\n }\n }\n return null;\n }\n /**\n * 点击某个单元格的展开折叠按钮 改变该节点的状态 维度树重置\n * @param col\n * @param row\n */\n toggleHierarchyState(col: number, row: number) {\n // do nothing\n }\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MenuInstanceInfo } from '../../ts-types';
|
|
2
|
+
import type { BaseTableAPI } from '../../ts-types/base-table';
|
|
3
|
+
import type { MenuContainer } from './logic/MenuContainer';
|
|
4
|
+
import type { MenuElement } from './logic/MenuElement';
|
|
5
|
+
export declare abstract class BaseMenu {
|
|
6
|
+
protected _table: BaseTableAPI;
|
|
7
|
+
private _menuElement?;
|
|
8
|
+
constructor(table: BaseTableAPI);
|
|
9
|
+
dispose(): void;
|
|
10
|
+
private _getMenuElement;
|
|
11
|
+
abstract createMenuElementInternal(): MenuElement | MenuContainer;
|
|
12
|
+
bindMenuElement(col: number, row: number, menuInstanceInfo: MenuInstanceInfo): boolean;
|
|
13
|
+
unbindMenuElement(): void;
|
|
14
|
+
pointInMenuElement(x: number, y: number): boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export class BaseMenu {
|
|
2
|
+
constructor(table) {
|
|
3
|
+
this._table = table;
|
|
4
|
+
}
|
|
5
|
+
dispose() {
|
|
6
|
+
this.unbindMenuElement(), this._menuElement && this._menuElement.dispose(), this._menuElement = void 0;
|
|
7
|
+
}
|
|
8
|
+
_getMenuElement() {
|
|
9
|
+
return this._menuElement || (this._menuElement = this.createMenuElementInternal()),
|
|
10
|
+
this._menuElement;
|
|
11
|
+
}
|
|
12
|
+
bindMenuElement(col, row, menuInstanceInfo) {
|
|
13
|
+
return this._getMenuElement().bindToCell(this._table, col, row, menuInstanceInfo);
|
|
14
|
+
}
|
|
15
|
+
unbindMenuElement() {
|
|
16
|
+
this._getMenuElement().unbindFromCell();
|
|
17
|
+
}
|
|
18
|
+
pointInMenuElement(x, y) {
|
|
19
|
+
return this._getMenuElement().pointInMenuElement(x, y);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=BaseMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["menu/dom/BaseMenu.ts"],"names":[],"mappings":"AAKA,MAAM,OAAgB,QAAQ;IAI5B,YAAY,KAAmB;QAC7B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IACD,OAAO;QACL,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;SAC7B;QACD,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;IAChC,CAAC;IACO,eAAe;QACrB,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,OAAO,IAAI,CAAC,YAAY,CAAC;SAC1B;QACD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,yBAAyB,EAAE,CAAC;QAErD,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAGD,eAAe,CAAC,GAAW,EAAE,GAAW,EAAE,gBAAkC;QAC1E,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QAC3C,OAAO,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,gBAAgB,CAAC,CAAC;IACzE,CAAC;IACD,iBAAiB;QACf,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QAC3C,WAAW,CAAC,cAAc,EAAE,CAAC;IAC/B,CAAC;IAED,kBAAkB,CAAC,CAAS,EAAE,CAAS;QACrC,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QAC3C,OAAO,WAAW,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9C,CAAC;CACF","file":"BaseMenu.js","sourcesContent":["import type { MenuInstanceInfo } from '../../ts-types';\nimport type { BaseTableAPI } from '../../ts-types/base-table';\nimport type { MenuContainer } from './logic/MenuContainer';\nimport type { MenuElement } from './logic/MenuElement';\n\nexport abstract class BaseMenu {\n protected _table: BaseTableAPI;\n /** 弹出的菜单显示内容 */\n private _menuElement?: MenuElement | MenuContainer;\n constructor(table: BaseTableAPI) {\n this._table = table;\n }\n dispose(): void {\n this.unbindMenuElement();\n if (this._menuElement) {\n this._menuElement.dispose();\n }\n this._menuElement = undefined;\n }\n private _getMenuElement(): MenuElement | MenuContainer {\n if (this._menuElement) {\n return this._menuElement;\n }\n this._menuElement = this.createMenuElementInternal();\n\n return this._menuElement;\n }\n /** 继承的具体类来实现 可以返回 MenuElement 或者 MenuContainer */\n abstract createMenuElementInternal(): MenuElement | MenuContainer;\n bindMenuElement(col: number, row: number, menuInstanceInfo: MenuInstanceInfo): boolean {\n const menuElement = this._getMenuElement();\n return menuElement.bindToCell(this._table, col, row, menuInstanceInfo);\n }\n unbindMenuElement(): void {\n const menuElement = this._getMenuElement();\n menuElement.unbindFromCell();\n }\n /** 鼠标坐标位置 是否位于下拉菜单内 */\n pointInMenuElement(x: number, y: number): boolean {\n const menuElement = this._getMenuElement();\n return menuElement.pointInMenuElement(x, y);\n }\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseMenu } from './BaseMenu';
|
|
2
|
+
import { MenuContainer } from './logic/MenuContainer';
|
|
3
|
+
import { MenuElement } from './logic/MenuElement';
|
|
4
|
+
export declare class Menu extends BaseMenu {
|
|
5
|
+
createMenuElementInternal(): MenuElement;
|
|
6
|
+
}
|
|
7
|
+
export declare class Container extends BaseMenu {
|
|
8
|
+
createMenuElementInternal(): MenuContainer;
|
|
9
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseMenu } from "./BaseMenu";
|
|
2
|
+
|
|
3
|
+
import { MenuContainer } from "./logic/MenuContainer";
|
|
4
|
+
|
|
5
|
+
import { MenuElement } from "./logic/MenuElement";
|
|
6
|
+
|
|
7
|
+
export class Menu extends BaseMenu {
|
|
8
|
+
createMenuElementInternal() {
|
|
9
|
+
return new MenuElement(this._table);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class Container extends BaseMenu {
|
|
14
|
+
createMenuElementInternal() {
|
|
15
|
+
return new MenuContainer(this._table);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=Menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["menu/dom/Menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,MAAM,OAAO,IAAK,SAAQ,QAAQ;IAChC,yBAAyB;QACvB,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;CACF;AACD,MAAM,OAAO,SAAU,SAAQ,QAAQ;IACrC,yBAAyB;QACvB,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;CACF","file":"Menu.js","sourcesContent":["import { BaseMenu } from './BaseMenu';\nimport { MenuContainer } from './logic/MenuContainer';\nimport { MenuElement } from './logic/MenuElement';\n\nexport class Menu extends BaseMenu {\n createMenuElementInternal(): MenuElement {\n return new MenuElement(this._table);\n }\n}\nexport class Container extends BaseMenu {\n createMenuElementInternal(): MenuContainer {\n return new MenuContainer(this._table);\n }\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DropDownMenuOptions, MenuInstanceInfo, MenuInstanceType } from '../../ts-types';
|
|
2
|
+
import type { BaseMenu } from './BaseMenu';
|
|
3
|
+
import type { BaseTableAPI } from '../../ts-types/base-table';
|
|
4
|
+
export declare class MenuHandler {
|
|
5
|
+
private _table;
|
|
6
|
+
private _menuInstances?;
|
|
7
|
+
private _attachInfo?;
|
|
8
|
+
constructor(table: BaseTableAPI);
|
|
9
|
+
dispose(): void;
|
|
10
|
+
_bindToCell(col: number, row: number, type: MenuInstanceType, dropDownMenuOptions?: DropDownMenuOptions): void;
|
|
11
|
+
_unbindFromCell(): void;
|
|
12
|
+
_isBindToCell(col: number, row: number): boolean;
|
|
13
|
+
pointInMenuElement(x: number, y: number): boolean;
|
|
14
|
+
_bindTableEvent(table: BaseTableAPI): void;
|
|
15
|
+
_getMenuInstanceInfo(col: number, row: number, type: MenuInstanceType, dropDownMenuOptions?: DropDownMenuOptions): {
|
|
16
|
+
instance?: BaseMenu;
|
|
17
|
+
type: MenuInstanceType;
|
|
18
|
+
info: MenuInstanceInfo;
|
|
19
|
+
} | null;
|
|
20
|
+
}
|