@guiexpert/table 1.1.24 → 1.1.26
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 +1 -1
- package/package.json +4 -1
- package/.eslintrc.json +0 -16
- package/dist/README.md +0 -101
- package/dist/css/main.css +0 -350
- package/dist/css/table-classes.css +0 -42
- package/dist/css/table-color-classes.css +0 -98
- package/dist/css/table-color-vars.css +0 -158
- package/dist/css/table-tree.css +0 -53
- package/dist/package.json +0 -47
- package/doc.css +0 -1565
- package/patch.js +0 -16
- package/src/index.ts +0 -176
- package/src/lib/common/decorator/avoid-double-execution.decorator.ts +0 -21
- package/src/lib/table/action/action-id.type.ts +0 -36
- package/src/lib/table/action/on-action-triggered.if.ts +0 -14
- package/src/lib/table/action/osx-shortcut-actionId-mapping.ts +0 -39
- package/src/lib/table/action/shortcut-actionid-mapping.type.ts +0 -7
- package/src/lib/table/action/shortcut.service.ts +0 -162
- package/src/lib/table/action/windows-shortcut-actionId-mapping.ts +0 -35
- package/src/lib/table/checkbox/checkbox-model.if.ts +0 -16
- package/src/lib/table/checkbox/checkbox-model.ts +0 -62
- package/src/lib/table/checkbox/tree-checkbox-model.ts +0 -123
- package/src/lib/table/color/color-rgb.if.ts +0 -12
- package/src/lib/table/color/color-rgb.ts +0 -10
- package/src/lib/table/color/ge-css-color-util.ts +0 -43
- package/src/lib/table/color/three-color-gradient-arg.if.ts +0 -15
- package/src/lib/table/color/three-color-gradient-arg.ts +0 -14
- package/src/lib/table/color/two-color-gradient-arg.if.ts +0 -12
- package/src/lib/table/color/two-color-gradient-arg.ts +0 -12
- package/src/lib/table/css-vars.ts +0 -243
- package/src/lib/table/data/chunk/chunk.data-event.if.ts +0 -8
- package/src/lib/table/data/chunk/chunk.data-event.ts +0 -27
- package/src/lib/table/data/chunk/request-chunk.if.ts +0 -9
- package/src/lib/table/data/chunk/request-chunk.ts +0 -15
- package/src/lib/table/data/common/aligns.ts +0 -42
- package/src/lib/table/data/common/area-map-factory.ts +0 -20
- package/src/lib/table/data/common/area-map.ts +0 -18
- package/src/lib/table/data/common/area-map.type.ts +0 -5
- package/src/lib/table/data/common/args-adjust-columns-to-row-parent-params.ts +0 -21
- package/src/lib/table/data/common/args-render-cell-div.ts +0 -34
- package/src/lib/table/data/common/boolean-function.ts +0 -16
- package/src/lib/table/data/common/cell-range.ts +0 -66
- package/src/lib/table/data/common/checkbox-column-def.ts +0 -31
- package/src/lib/table/data/common/checked-type.ts +0 -6
- package/src/lib/table/data/common/event/ge-cell-indices.ts +0 -12
- package/src/lib/table/data/common/event/ge-key-event.ts +0 -15
- package/src/lib/table/data/common/event/ge-model-change-event.ts +0 -16
- package/src/lib/table/data/common/event/ge-mouse-event.ts +0 -41
- package/src/lib/table/data/common/event/input/table-cell-update-event.if.ts +0 -58
- package/src/lib/table/data/common/event/input/table-cell-update-event.ts +0 -27
- package/src/lib/table/data/common/filter-function.ts +0 -9
- package/src/lib/table/data/common/get-t.ts +0 -7
- package/src/lib/table/data/common/index-and-px.ts +0 -12
- package/src/lib/table/data/common/size.if.ts +0 -8
- package/src/lib/table/data/common/size.ts +0 -9
- package/src/lib/table/data/common/sizes.ts +0 -35
- package/src/lib/table/data/common/sort-item.ts +0 -14
- package/src/lib/table/data/common/sort-state.type.ts +0 -7
- package/src/lib/table/data/common/tree-arrow.type.ts +0 -8
- package/src/lib/table/data/common/tree-row-if.ts +0 -15
- package/src/lib/table/data/common/tree-row.ts +0 -22
- package/src/lib/table/data/common/value-label.if.ts +0 -6
- package/src/lib/table/data/common/value-label.ts +0 -13
- package/src/lib/table/data/div-scope.type.ts +0 -14
- package/src/lib/table/data/event/mouse-target-data.ts +0 -48
- package/src/lib/table/data/geo-data.ts +0 -16
- package/src/lib/table/data/options/auto-restore-options.if.ts +0 -21
- package/src/lib/table/data/options/auto-restore-options.ts +0 -50
- package/src/lib/table/data/options/default-row-heights.if.ts +0 -5
- package/src/lib/table/data/options/default-row-heights.ts +0 -10
- package/src/lib/table/data/options/header-group-options.if.ts +0 -9
- package/src/lib/table/data/options/header-group-options.ts +0 -23
- package/src/lib/table/data/options/icon.if.ts +0 -20
- package/src/lib/table/data/options/icon.ts +0 -10
- package/src/lib/table/data/options/sorted-options.if.ts +0 -13
- package/src/lib/table/data/options/sorted-options.ts +0 -15
- package/src/lib/table/data/options/table-options.if.ts +0 -240
- package/src/lib/table/data/options/table-options.ts +0 -68
- package/src/lib/table/data/options/tree-options.if.ts +0 -10
- package/src/lib/table/data/options/tree-options.ts +0 -32
- package/src/lib/table/data/side-ident.type.ts +0 -4
- package/src/lib/table/data/table-model-and-options.if.ts +0 -11
- package/src/lib/table/data/table-model-and-options.ts +0 -16
- package/src/lib/table/data/tablemodel/area-ident.type.ts +0 -18
- package/src/lib/table/data/tablemodel/areamodel/abstract-area-model.ts +0 -184
- package/src/lib/table/data/tablemodel/areamodel/area-model-array-of-arrays.ts +0 -63
- package/src/lib/table/data/tablemodel/areamodel/area-model-cell-groups.ts +0 -236
- package/src/lib/table/data/tablemodel/areamodel/area-model-hidden.ts +0 -126
- package/src/lib/table/data/tablemodel/areamodel/area-model-object-array-with-columndefs.ts +0 -28
- package/src/lib/table/data/tablemodel/areamodel/area-model-object-array.ts +0 -120
- package/src/lib/table/data/tablemodel/areamodel/area-model-tree.ts +0 -224
- package/src/lib/table/data/tablemodel/areamodel/area-model.if.ts +0 -192
- package/src/lib/table/data/tablemodel/areamodel/area-model.ts +0 -117
- package/src/lib/table/data/tablemodel/areamodel/async-area-model-object-array.ts +0 -110
- package/src/lib/table/data/tablemodel/areamodel/col-and-rowspan-model.ts +0 -64
- package/src/lib/table/data/tablemodel/areamodel/has-default-row-height-if.ts +0 -3
- package/src/lib/table/data/tablemodel/areamodel/object-array-holder.if.ts +0 -8
- package/src/lib/table/data/tablemodel/cellgroup/cell-group-ext.ts +0 -172
- package/src/lib/table/data/tablemodel/cellgroup/cell-group.if.ts +0 -12
- package/src/lib/table/data/tablemodel/cellgroup/cell-group.ts +0 -18
- package/src/lib/table/data/tablemodel/cellgroup/cellgroup-factory.ts +0 -148
- package/src/lib/table/data/tablemodel/column/column-def.if.ts +0 -141
- package/src/lib/table/data/tablemodel/column/column-def.ts +0 -108
- package/src/lib/table/data/tablemodel/padding.ts +0 -12
- package/src/lib/table/data/tablemodel/table-model.if.ts +0 -256
- package/src/lib/table/data/tablemodel/table-model.ts +0 -542
- package/src/lib/table/ele-scope.ts +0 -309
- package/src/lib/table/event-adapter.ts +0 -43
- package/src/lib/table/event-listener.if.ts +0 -32
- package/src/lib/table/factory/table-factory.ts +0 -379
- package/src/lib/table/factory/tree-factory.ts +0 -52
- package/src/lib/table/focus/event-focus-changed-listener.if.ts +0 -8
- package/src/lib/table/focus/focus-model.if.ts +0 -20
- package/src/lib/table/focus/focus-model.ts +0 -76
- package/src/lib/table/focus/focus.type.ts +0 -4
- package/src/lib/table/input-handler.ts +0 -48
- package/src/lib/table/instanceof-workaround.ts +0 -41
- package/src/lib/table/license-manager.ts +0 -47
- package/src/lib/table/mouse-handler.ts +0 -307
- package/src/lib/table/render-scope.ts +0 -1440
- package/src/lib/table/renderer/cell-group-ext-cell-renderer.ts +0 -123
- package/src/lib/table/renderer/cell-render.if.ts +0 -16
- package/src/lib/table/renderer/checkbox-boolean-property-cell-renderer.ts +0 -63
- package/src/lib/table/renderer/checkbox-cell-renderer.ts +0 -39
- package/src/lib/table/renderer/date-to-int-date-cell-renderer.ts +0 -39
- package/src/lib/table/renderer/date-to-iso-cell-renderer.ts +0 -25
- package/src/lib/table/renderer/date-to-locale-date-cell-renderer.ts +0 -24
- package/src/lib/table/renderer/date-to-tec-cell-renderer.ts +0 -28
- package/src/lib/table/renderer/edit/edit-cell-renderer.type.ts +0 -3
- package/src/lib/table/renderer/edit/edit-input-pipe-for-number.ts +0 -6
- package/src/lib/table/renderer/edit/edit-input-pipe.if.ts +0 -15
- package/src/lib/table/renderer/edit/input-cell-renderer.ts +0 -41
- package/src/lib/table/renderer/edit/select-cell-renderer.ts +0 -60
- package/src/lib/table/renderer/male-female-to-icon-cell-renderer.ts +0 -26
- package/src/lib/table/renderer/number-cell-progress-bar-cell-renderer.ts +0 -57
- package/src/lib/table/renderer/number-cell-renderer.ts +0 -38
- package/src/lib/table/renderer/positive-and-negative-number-renderer.ts +0 -45
- package/src/lib/table/renderer/progress-bar-cell-renderer.ts +0 -60
- package/src/lib/table/renderer/renderer-cleanup-fn.type.ts +0 -1
- package/src/lib/table/renderer/renderer.ts +0 -11
- package/src/lib/table/renderer/star-rating-cell-renderer.ts +0 -45
- package/src/lib/table/renderer/true-false-cell-renderer.ts +0 -28
- package/src/lib/table/selection/event-selection-changed-listener.if.ts +0 -8
- package/src/lib/table/selection/multi-rows-selection-model.ts +0 -118
- package/src/lib/table/selection/selection-model.if.ts +0 -56
- package/src/lib/table/selection/selection-model.ts +0 -182
- package/src/lib/table/selection/selection-service.ts +0 -129
- package/src/lib/table/selection/selection.type.ts +0 -6
- package/src/lib/table/service/abstract-store-state.service.ts +0 -105
- package/src/lib/table/service/convenience-dom.service.ts +0 -574
- package/src/lib/table/service/copy-service.if.ts +0 -45
- package/src/lib/table/service/copy-service.ts +0 -130
- package/src/lib/table/service/data/collapsed-expanded.data.ts +0 -11
- package/src/lib/table/service/data/html-style.type.ts +0 -1
- package/src/lib/table/service/dom-service.if.ts +0 -18
- package/src/lib/table/service/ge-filter.service.ts +0 -123
- package/src/lib/table/service/simple-dom-service.ts +0 -55
- package/src/lib/table/service/sorter.service.ts +0 -30
- package/src/lib/table/service/store-state-collapsed-expand.service.ts +0 -76
- package/src/lib/table/service/store-state-scroll-pos.service.ts +0 -40
- package/src/lib/table/service/store-state-sorting.service.ts +0 -41
- package/src/lib/table/service/tree-row.service.ts +0 -32
- package/src/lib/table/table-api.ts +0 -234
- package/src/lib/table/table-scope.ts +0 -770
- package/tsconfig.json +0 -21
- package/tsconfig.lib.json +0 -10
- package/tsconfig.spec.json +0 -25
- package/vite.config.ts +0 -56
- /package/{dist/index.cjs → index.cjs} +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{dist/lib → lib}/common/decorator/avoid-double-execution.decorator.d.ts +0 -0
- /package/{dist/lib → lib}/table/action/action-id.type.d.ts +0 -0
- /package/{dist/lib → lib}/table/action/on-action-triggered.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/action/osx-shortcut-actionId-mapping.d.ts +0 -0
- /package/{dist/lib → lib}/table/action/shortcut-actionid-mapping.type.d.ts +0 -0
- /package/{dist/lib → lib}/table/action/shortcut.service.d.ts +0 -0
- /package/{dist/lib → lib}/table/action/windows-shortcut-actionId-mapping.d.ts +0 -0
- /package/{dist/lib → lib}/table/checkbox/checkbox-model.d.ts +0 -0
- /package/{dist/lib → lib}/table/checkbox/checkbox-model.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/checkbox/tree-checkbox-model.d.ts +0 -0
- /package/{dist/lib → lib}/table/color/color-rgb.d.ts +0 -0
- /package/{dist/lib → lib}/table/color/color-rgb.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/color/ge-css-color-util.d.ts +0 -0
- /package/{dist/lib → lib}/table/color/three-color-gradient-arg.d.ts +0 -0
- /package/{dist/lib → lib}/table/color/three-color-gradient-arg.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/color/two-color-gradient-arg.d.ts +0 -0
- /package/{dist/lib → lib}/table/color/two-color-gradient-arg.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/css-vars.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/chunk/chunk.data-event.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/chunk/chunk.data-event.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/chunk/request-chunk.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/chunk/request-chunk.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/aligns.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/area-map-factory.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/area-map.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/area-map.type.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/args-adjust-columns-to-row-parent-params.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/args-render-cell-div.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/boolean-function.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/cell-range.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/checkbox-column-def.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/checked-type.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/event/ge-cell-indices.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/event/ge-key-event.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/event/ge-model-change-event.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/event/ge-mouse-event.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/event/input/table-cell-update-event.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/event/input/table-cell-update-event.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/filter-function.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/get-t.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/index-and-px.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/size.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/size.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/sizes.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/sort-item.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/sort-state.type.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/tree-arrow.type.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/tree-row-if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/tree-row.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/value-label.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/common/value-label.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/div-scope.type.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/event/mouse-target-data.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/geo-data.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/options/auto-restore-options.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/options/auto-restore-options.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/options/default-row-heights.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/options/default-row-heights.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/options/header-group-options.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/options/header-group-options.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/options/icon.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/options/icon.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/options/sorted-options.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/options/sorted-options.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/options/table-options.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/options/table-options.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/options/tree-options.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/options/tree-options.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/side-ident.type.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/table-model-and-options.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/table-model-and-options.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/area-ident.type.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/areamodel/abstract-area-model.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/areamodel/area-model-array-of-arrays.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/areamodel/area-model-cell-groups.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/areamodel/area-model-hidden.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/areamodel/area-model-object-array-with-columndefs.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/areamodel/area-model-object-array.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/areamodel/area-model-tree.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/areamodel/area-model.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/areamodel/area-model.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/areamodel/async-area-model-object-array.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/areamodel/col-and-rowspan-model.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/areamodel/has-default-row-height-if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/areamodel/object-array-holder.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/cellgroup/cell-group-ext.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/cellgroup/cell-group.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/cellgroup/cell-group.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/cellgroup/cellgroup-factory.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/column/column-def.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/column/column-def.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/padding.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/table-model.d.ts +0 -0
- /package/{dist/lib → lib}/table/data/tablemodel/table-model.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/ele-scope.d.ts +0 -0
- /package/{dist/lib → lib}/table/event-adapter.d.ts +0 -0
- /package/{dist/lib → lib}/table/event-listener.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/factory/table-factory.d.ts +0 -0
- /package/{dist/lib → lib}/table/factory/tree-factory.d.ts +0 -0
- /package/{dist/lib → lib}/table/focus/event-focus-changed-listener.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/focus/focus-model.d.ts +0 -0
- /package/{dist/lib → lib}/table/focus/focus-model.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/focus/focus.type.d.ts +0 -0
- /package/{dist/lib → lib}/table/input-handler.d.ts +0 -0
- /package/{dist/lib → lib}/table/instanceof-workaround.d.ts +0 -0
- /package/{dist/lib → lib}/table/license-manager.d.ts +0 -0
- /package/{dist/lib → lib}/table/mouse-handler.d.ts +0 -0
- /package/{dist/lib → lib}/table/render-scope.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/cell-group-ext-cell-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/cell-render.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/checkbox-boolean-property-cell-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/checkbox-cell-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/date-to-int-date-cell-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/date-to-iso-cell-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/date-to-locale-date-cell-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/date-to-tec-cell-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/edit/edit-cell-renderer.type.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/edit/edit-input-pipe-for-number.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/edit/edit-input-pipe.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/edit/input-cell-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/edit/select-cell-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/male-female-to-icon-cell-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/number-cell-progress-bar-cell-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/number-cell-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/positive-and-negative-number-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/progress-bar-cell-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/renderer-cleanup-fn.type.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/star-rating-cell-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/renderer/true-false-cell-renderer.d.ts +0 -0
- /package/{dist/lib → lib}/table/selection/event-selection-changed-listener.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/selection/multi-rows-selection-model.d.ts +0 -0
- /package/{dist/lib → lib}/table/selection/selection-model.d.ts +0 -0
- /package/{dist/lib → lib}/table/selection/selection-model.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/selection/selection-service.d.ts +0 -0
- /package/{dist/lib → lib}/table/selection/selection.type.d.ts +0 -0
- /package/{dist/lib → lib}/table/service/abstract-store-state.service.d.ts +0 -0
- /package/{dist/lib → lib}/table/service/convenience-dom.service.d.ts +0 -0
- /package/{dist/lib → lib}/table/service/copy-service.d.ts +0 -0
- /package/{dist/lib → lib}/table/service/copy-service.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/service/data/collapsed-expanded.data.d.ts +0 -0
- /package/{dist/lib → lib}/table/service/data/html-style.type.d.ts +0 -0
- /package/{dist/lib → lib}/table/service/dom-service.if.d.ts +0 -0
- /package/{dist/lib → lib}/table/service/ge-filter.service.d.ts +0 -0
- /package/{dist/lib → lib}/table/service/simple-dom-service.d.ts +0 -0
- /package/{dist/lib → lib}/table/service/sorter.service.d.ts +0 -0
- /package/{dist/lib → lib}/table/service/store-state-collapsed-expand.service.d.ts +0 -0
- /package/{dist/lib → lib}/table/service/store-state-scroll-pos.service.d.ts +0 -0
- /package/{dist/lib → lib}/table/service/store-state-sorting.service.d.ts +0 -0
- /package/{dist/lib → lib}/table/service/tree-row.service.d.ts +0 -0
- /package/{dist/lib → lib}/table/table-api.d.ts +0 -0
- /package/{dist/lib → lib}/table/table-scope.d.ts +0 -0
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import {AbstractAreaModel} from "./abstract-area-model";
|
|
2
|
-
import {ColumnDefIf} from "../column/column-def.if";
|
|
3
|
-
import {FilterFunction} from "../../common/filter-function";
|
|
4
|
-
import {SorterService} from "../../../service/sorter.service";
|
|
5
|
-
import {SortItem} from "../../common/sort-item";
|
|
6
|
-
import {isTreeRow} from "../../../instanceof-workaround";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export class AsyncBodyAreaModelObjectArray<T> extends AbstractAreaModel<T> {
|
|
10
|
-
|
|
11
|
-
protected readonly properties: string[];
|
|
12
|
-
protected sorterService: SorterService = new SorterService();
|
|
13
|
-
|
|
14
|
-
protected cachedStartIndex: number = 0;
|
|
15
|
-
protected cachedRows: T[] = [];
|
|
16
|
-
|
|
17
|
-
constructor(
|
|
18
|
-
protected readonly maxRowCount: number,
|
|
19
|
-
public override defaultRowHeight: number,
|
|
20
|
-
protected override columnDefs: ColumnDefIf[] = []
|
|
21
|
-
) {
|
|
22
|
-
super('body', columnDefs, defaultRowHeight);
|
|
23
|
-
this.cachedRows = [];
|
|
24
|
-
this.properties = columnDefs.map(def => def.property);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
setChunk(startIndex: number, chunk: T[]) {
|
|
28
|
-
this.cachedStartIndex = startIndex;
|
|
29
|
-
this.cachedRows = chunk;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
getRowCount(): number {
|
|
33
|
-
return this.maxRowCount ?? 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
getValueAt(rowIndex: number, columnIndex: number): any {
|
|
37
|
-
if (rowIndex < this.cachedStartIndex || rowIndex > (this.cachedStartIndex + this.maxRowCount - 1)) {
|
|
38
|
-
// TODO send -> server
|
|
39
|
-
return '';
|
|
40
|
-
}
|
|
41
|
-
const property = this.properties[columnIndex];
|
|
42
|
-
let t = this.cachedRows[rowIndex];
|
|
43
|
-
if (isTreeRow(t)) {
|
|
44
|
-
// @ts-ignore
|
|
45
|
-
t = t.data;
|
|
46
|
-
}
|
|
47
|
-
if (t) {
|
|
48
|
-
return this.getValueByT(t, property);
|
|
49
|
-
}
|
|
50
|
-
return "";
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
getFilteredRows(): T[] {
|
|
54
|
-
return this.cachedRows;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
getAllRows(): T[] {
|
|
58
|
-
return this.cachedRows;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
getRowHeight(_rowIndex: number): number {
|
|
62
|
-
return this.defaultRowHeight;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
override getRowByIndex(rowIndex: number): any {
|
|
66
|
-
return this.cachedRows[rowIndex];
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
externalFilterChanged(predictFn: FilterFunction<any>): void {
|
|
70
|
-
// TODO send -> server
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
override doSort(sortItems: SortItem[]): boolean {
|
|
74
|
-
// TODO send -> server
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
getValueByT(t: T, property: string) {
|
|
79
|
-
if (property.includes(".")) {
|
|
80
|
-
return this.getPropertyValue(t, property.split("."));
|
|
81
|
-
}
|
|
82
|
-
// @ts-ignore
|
|
83
|
-
return t[property];
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
override changeColumnOrder(sourceColumnIndex: number, targetColumnIndex: number): void {
|
|
87
|
-
this.arrayMove(this.properties, sourceColumnIndex, targetColumnIndex);
|
|
88
|
-
super.changeColumnOrder(sourceColumnIndex, targetColumnIndex);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
protected genericFlatTableSortComparator(property: string, f: number) {
|
|
92
|
-
return (a: T, b: T) => {
|
|
93
|
-
const va = this.getValueByT(a, property);
|
|
94
|
-
const vb = this.getValueByT(b, property);
|
|
95
|
-
return this.sorterService.genericSortComparator(va, vb, f);
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
private getPropertyValue(o: any, props: string[]): any {
|
|
101
|
-
const prop = props.shift();
|
|
102
|
-
// @ts-ignore
|
|
103
|
-
let o2 = o[prop];
|
|
104
|
-
if (o2 && props.length) {
|
|
105
|
-
return this.getPropertyValue(o2, props);
|
|
106
|
-
}
|
|
107
|
-
return o2;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { CellRange } from "../../common/cell-range";
|
|
2
|
-
import { AreaModelIf } from "./area-model.if";
|
|
3
|
-
import { TableModelIf } from "../table-model.if";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Represents a model for handling colspan and rowspan in a table.
|
|
7
|
-
*/
|
|
8
|
-
export class ColAndRowspanModel {
|
|
9
|
-
|
|
10
|
-
protected colAndRowspanRanges: CellRange[] | undefined = undefined;
|
|
11
|
-
|
|
12
|
-
constructor(
|
|
13
|
-
protected tableModel: TableModelIf,
|
|
14
|
-
protected areaModel: AreaModelIf
|
|
15
|
-
) {
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
init() {
|
|
19
|
-
if (this.areaModel.getMaxColspan() < 2 && this.areaModel.getMaxRowspan() < 2) {
|
|
20
|
-
return; // sip
|
|
21
|
-
}
|
|
22
|
-
this.colAndRowspanRanges = [];
|
|
23
|
-
const rowCount = this.areaModel.getRowCount();
|
|
24
|
-
const colCount = this.tableModel.getColumnCount();
|
|
25
|
-
for (let r = 0; r < rowCount; r++) {
|
|
26
|
-
for (let c = 0; c < colCount; c++) {
|
|
27
|
-
let cs = this.areaModel.getColspanAt(r, c);
|
|
28
|
-
let rs = this.areaModel.getRowspanAt(r, c);
|
|
29
|
-
if (cs > 1 || rs > 1) {
|
|
30
|
-
if (cs === 0) {
|
|
31
|
-
cs = 1;
|
|
32
|
-
}
|
|
33
|
-
if (rs === 0) {
|
|
34
|
-
rs = 1;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
const gammaRange = 'gammaCells' in this.areaModel;
|
|
38
|
-
this.colAndRowspanRanges.push(
|
|
39
|
-
new CellRange(r, c, r + rs - 1, c + cs - 1, gammaRange)
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
getRanges(): CellRange[] {
|
|
47
|
-
if (this.colAndRowspanRanges) {
|
|
48
|
-
return this.colAndRowspanRanges;
|
|
49
|
-
}
|
|
50
|
-
return [];
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
isInRange(rowIndex: number, columnIndex: number): boolean {
|
|
54
|
-
if (this.colAndRowspanRanges) {
|
|
55
|
-
for (const range of this.colAndRowspanRanges) {
|
|
56
|
-
if (range.isInRange(rowIndex, columnIndex)) {
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
}
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { CellGroupIf } from "./cell-group.if";
|
|
2
|
-
import { CellGroup } from "./cell-group";
|
|
3
|
-
|
|
4
|
-
export class CellGroupExt extends CellGroup {
|
|
5
|
-
|
|
6
|
-
public override impl = 'CellGroupExt';
|
|
7
|
-
|
|
8
|
-
public override children: CellGroupExt[] | undefined = undefined;
|
|
9
|
-
public leftNeighbour: CellGroupExt | undefined = undefined;
|
|
10
|
-
public rightNeighbour: CellGroupExt | undefined = undefined;
|
|
11
|
-
|
|
12
|
-
constructor(
|
|
13
|
-
cellGroup: CellGroupIf,
|
|
14
|
-
public rowIndex: number = 0,
|
|
15
|
-
public childIndex: number = 0,
|
|
16
|
-
public parent?: CellGroupExt
|
|
17
|
-
) {
|
|
18
|
-
super(
|
|
19
|
-
cellGroup.data,
|
|
20
|
-
cellGroup.property,
|
|
21
|
-
cellGroup.toggle,
|
|
22
|
-
cellGroup.closed,
|
|
23
|
-
cellGroup.visibility,
|
|
24
|
-
cellGroup.children
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
ownColumn(): boolean {
|
|
29
|
-
return !!this.property;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
override toString(): string {
|
|
33
|
-
return this.data + "";
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// TODO hier gehts weiter!!!!!!!!!!!
|
|
37
|
-
getColumnIndex(): number {
|
|
38
|
-
if (!this.parent) {
|
|
39
|
-
// root level (rowIndex=0)
|
|
40
|
-
if (this.leftNeighbour) {
|
|
41
|
-
// return this.leftNeighbour.getBiggestChildColumnIndex() + 1;
|
|
42
|
-
}
|
|
43
|
-
return 0;
|
|
44
|
-
}
|
|
45
|
-
return this.parent.getColumnIndex() + this.childIndex;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
//
|
|
49
|
-
// getLeftClaimedSpaces(): number{
|
|
50
|
-
// if (this.leftNeighbour) {
|
|
51
|
-
//
|
|
52
|
-
// }
|
|
53
|
-
// return 0;
|
|
54
|
-
// }
|
|
55
|
-
|
|
56
|
-
// getSumOfLeafs(cg: CellGroupExt, sum: number = 0): number {
|
|
57
|
-
// if (cg.children?.length) {
|
|
58
|
-
// for (let i = 0; i < cg.children.length; i++) {
|
|
59
|
-
// const child = cg.children[i];
|
|
60
|
-
// if (child.children?.length) {
|
|
61
|
-
// sum = this.getSumOfLeafs(child, sum);
|
|
62
|
-
// } else {
|
|
63
|
-
// sum++;
|
|
64
|
-
// }
|
|
65
|
-
// }
|
|
66
|
-
// }
|
|
67
|
-
// if (this.ownColumn()) {
|
|
68
|
-
// sum++;
|
|
69
|
-
// }
|
|
70
|
-
// //console.info(cg.data, sum)
|
|
71
|
-
// return sum;
|
|
72
|
-
// }
|
|
73
|
-
//
|
|
74
|
-
// getBiggestChildColumnIndex(): number {
|
|
75
|
-
// if (this.children?.length) {
|
|
76
|
-
// return Math.max(...this.children.map(c => c.getBiggestChildColumnIndex()));
|
|
77
|
-
// }
|
|
78
|
-
// return this.childIndex;
|
|
79
|
-
// }
|
|
80
|
-
|
|
81
|
-
isVisible(): boolean {
|
|
82
|
-
if (!this.parent) {
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
if (this.visibility === "always") {
|
|
86
|
-
return this.parent.isVisible();
|
|
87
|
-
}
|
|
88
|
-
if (this.visibility === "normal" || !this.visibility) {
|
|
89
|
-
return this.parent.isVisible() && !this.parent.closed;
|
|
90
|
-
}
|
|
91
|
-
if (this.visibility === "inverted") {
|
|
92
|
-
return this.parent.isVisible() && this.parent.closed;
|
|
93
|
-
}
|
|
94
|
-
return true;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// should be rendered
|
|
98
|
-
claimsSpace(): boolean {
|
|
99
|
-
return this.isVisible() && (this.ownColumn() || this.closed);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
getColumnCount(
|
|
104
|
-
cg: CellGroupExt = this,
|
|
105
|
-
ret: number = 0
|
|
106
|
-
): number {
|
|
107
|
-
if (cg?.claimsSpace()) {
|
|
108
|
-
ret++;
|
|
109
|
-
}
|
|
110
|
-
if (cg?.children?.length) {
|
|
111
|
-
for (const child of cg.children) {
|
|
112
|
-
ret = this.getColumnCount(child, ret);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
return ret;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
getRowSpan(
|
|
119
|
-
cg: CellGroupExt = this,
|
|
120
|
-
maxRowCount: number
|
|
121
|
-
): number {
|
|
122
|
-
if (cg?.claimsSpace()) {
|
|
123
|
-
return maxRowCount - this.getParentCount(cg, 0);
|
|
124
|
-
}
|
|
125
|
-
return 1;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
getParentCount(
|
|
130
|
-
cg: CellGroupExt = this,
|
|
131
|
-
ret: number = 0
|
|
132
|
-
): number {
|
|
133
|
-
if (cg.parent) {
|
|
134
|
-
ret = ret + 1 + this.getParentCount(cg.parent, ret);
|
|
135
|
-
}
|
|
136
|
-
return ret;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
log(maxRowCount: number = 10): string {
|
|
141
|
-
const tabs = "\t\t\t\t\t\t\t\t\t\t\t\t\t".substring(0, 2 * this.rowIndex);
|
|
142
|
-
const col = `${this.getColumnIndex()}`;
|
|
143
|
-
// const bcol = `${this.getBiggestChildColumnIndex()}`;
|
|
144
|
-
const columnCount = `${this.getColumnCount(this)}`;
|
|
145
|
-
const rowSpan = `${this.getRowSpan(this, maxRowCount)}`;
|
|
146
|
-
const pc = `${this.getParentCount(this)}`;
|
|
147
|
-
|
|
148
|
-
const out = `${tabs + this.data}
|
|
149
|
-
childIndex:${this.childIndex}
|
|
150
|
-
row:${this.rowIndex}
|
|
151
|
-
col:${col}
|
|
152
|
-
vis:${this.visibility}
|
|
153
|
-
toggle:${this.toggle}
|
|
154
|
-
closed:${this.closed}
|
|
155
|
-
isVisible:${this.isVisible()}
|
|
156
|
-
ownColumn:${this.ownColumn()}
|
|
157
|
-
claimsSpace:${this.claimsSpace()}
|
|
158
|
-
colCount:${columnCount}
|
|
159
|
-
rowSpan:${rowSpan}
|
|
160
|
-
pc:${pc}`.replace(/[ \n]+/g, " ");
|
|
161
|
-
|
|
162
|
-
//console.info(out);
|
|
163
|
-
// console.info(`${tabs + this.data}`);
|
|
164
|
-
if (this.children) {
|
|
165
|
-
for (const child of this.children) {
|
|
166
|
-
child.log(maxRowCount);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
return out;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface CellGroupIf {
|
|
2
|
-
|
|
3
|
-
data: any;
|
|
4
|
-
property?: string; // if a property is set, then this element has its own column
|
|
5
|
-
toggle?: boolean; // toggle control will be displayed
|
|
6
|
-
closed?: boolean; // current state
|
|
7
|
-
visibility?: "always" | "inverted" | "normal" | undefined;
|
|
8
|
-
children?: CellGroupIf[] | undefined;
|
|
9
|
-
|
|
10
|
-
impl?:string;
|
|
11
|
-
|
|
12
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CellGroupIf } from "./cell-group.if";
|
|
2
|
-
|
|
3
|
-
export class CellGroup implements CellGroupIf {
|
|
4
|
-
|
|
5
|
-
public impl = 'CellGroup';
|
|
6
|
-
|
|
7
|
-
constructor(
|
|
8
|
-
public data: any,
|
|
9
|
-
public property?: string,
|
|
10
|
-
public toggle?: boolean,
|
|
11
|
-
public closed: boolean = false,
|
|
12
|
-
public visibility: "always" | "inverted" | "normal" | undefined = "normal",
|
|
13
|
-
public children: CellGroupIf[] | undefined = undefined
|
|
14
|
-
) {
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { CellGroupIf } from "./cell-group.if";
|
|
2
|
-
import { ColumnDefIf } from "../column/column-def.if";
|
|
3
|
-
import { ColumnDef } from "../column/column-def";
|
|
4
|
-
import { CellGroupExt } from "./cell-group-ext";
|
|
5
|
-
|
|
6
|
-
export class CellgroupFactory {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
static buildColumnDefs(
|
|
10
|
-
cellGroups: CellGroupIf[],
|
|
11
|
-
ret: ColumnDefIf[] = []
|
|
12
|
-
): ColumnDefIf[] {
|
|
13
|
-
|
|
14
|
-
for (const cellGroup of cellGroups) {
|
|
15
|
-
if (cellGroup.property) {
|
|
16
|
-
ret.push(ColumnDef.create({
|
|
17
|
-
property: cellGroup.property,
|
|
18
|
-
headerLabel: cellGroup.data ? cellGroup.data : cellGroup.property,
|
|
19
|
-
isVisible: () => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
if (typeof cellGroup["isVisible"] === "function") {
|
|
22
|
-
const cge = cellGroup as CellGroupExt;
|
|
23
|
-
return cge.isVisible();
|
|
24
|
-
}
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
})
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
if (cellGroup.children) {
|
|
31
|
-
CellgroupFactory.buildColumnDefs(cellGroup.children, ret);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return ret;
|
|
35
|
-
}
|
|
36
|
-
/*
|
|
37
|
-
static buildDeepMap(
|
|
38
|
-
cellGroups: CellGroupIf[],
|
|
39
|
-
ret: { [key: string]: number } = {},
|
|
40
|
-
deep = 0
|
|
41
|
-
): { [key: string]: number } {
|
|
42
|
-
|
|
43
|
-
for (const cellGroup of cellGroups) {
|
|
44
|
-
//if (cellGroup.property) {
|
|
45
|
-
ret[cellGroup.data] = deep;
|
|
46
|
-
//}
|
|
47
|
-
if (cellGroup.children) {
|
|
48
|
-
CellgroupFactory.buildDeepMap(cellGroup.children, ret, deep + 1);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return ret;
|
|
52
|
-
}
|
|
53
|
-
*/
|
|
54
|
-
static buildGroupExts(
|
|
55
|
-
cellGroups: CellGroupIf[],
|
|
56
|
-
ret: CellGroupExt[] = [],
|
|
57
|
-
deep = 0,
|
|
58
|
-
parent?: CellGroupExt
|
|
59
|
-
): CellGroupExt[] {
|
|
60
|
-
|
|
61
|
-
let last: CellGroupExt | undefined = undefined;
|
|
62
|
-
for (let i = 0; i < cellGroups.length; i++) {
|
|
63
|
-
const cellGroup = cellGroups[i];
|
|
64
|
-
const cge = new CellGroupExt(cellGroup, deep, i, parent);
|
|
65
|
-
|
|
66
|
-
if (last) {
|
|
67
|
-
cge.leftNeighbour = last;
|
|
68
|
-
last.rightNeighbour = cge;
|
|
69
|
-
}
|
|
70
|
-
ret.push(cge);
|
|
71
|
-
if (cellGroup.children) {
|
|
72
|
-
cge.children = CellgroupFactory.buildGroupExts(cellGroup.children, [], deep + 1, cge);
|
|
73
|
-
}
|
|
74
|
-
last = cge;
|
|
75
|
-
}
|
|
76
|
-
return ret;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
static flattenGroupExts(
|
|
81
|
-
cellGroups: CellGroupExt[],
|
|
82
|
-
ret: CellGroupExt[] = []
|
|
83
|
-
): CellGroupExt[] {
|
|
84
|
-
|
|
85
|
-
for (const cellGroup of cellGroups) {
|
|
86
|
-
ret.push(cellGroup);
|
|
87
|
-
if (cellGroup.children) {
|
|
88
|
-
CellgroupFactory.flattenGroupExts(cellGroup.children, ret);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return ret;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/*
|
|
95
|
-
|
|
96
|
-
Gold Hohenwarte
|
|
97
|
-
Gold AB Gold CD HOH AB HOH CD
|
|
98
|
-
. Gold A Gold B Gold C Gold D Gold Sum . HOH Loc HOH A HOH B HOH C HOH D
|
|
99
|
-
|
|
100
|
-
*/
|
|
101
|
-
|
|
102
|
-
static buildArrayOfArrays(
|
|
103
|
-
flatten: CellGroupExt[],
|
|
104
|
-
arrs: (CellGroupExt | null | undefined)[][]
|
|
105
|
-
): (CellGroupExt | null | undefined)[][] {
|
|
106
|
-
|
|
107
|
-
let col = -1;
|
|
108
|
-
let lastRowIdx = 99999;
|
|
109
|
-
for (const cellGroup of flatten) {
|
|
110
|
-
if (cellGroup.rowIndex <= lastRowIdx) {
|
|
111
|
-
col++;
|
|
112
|
-
for (let r = 0; r < arrs.length; r++) {
|
|
113
|
-
arrs[r][col] = null;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
arrs[cellGroup.rowIndex][col] = cellGroup;
|
|
118
|
-
lastRowIdx = cellGroup.rowIndex;
|
|
119
|
-
|
|
120
|
-
if (cellGroup.ownColumn() && cellGroup.children?.length) {
|
|
121
|
-
for (let r = cellGroup.rowIndex + 1; r < arrs.length; r++) {
|
|
122
|
-
arrs[r][col] = undefined;
|
|
123
|
-
}
|
|
124
|
-
col++;
|
|
125
|
-
for (let r = 0; r < arrs.length; r++) {
|
|
126
|
-
arrs[r][col] = null;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
return arrs;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
static iterateThrowColumns(
|
|
135
|
-
sb: string[] = [],
|
|
136
|
-
cellGroups: CellGroupExt[]
|
|
137
|
-
) {
|
|
138
|
-
|
|
139
|
-
for (const cellGroup of cellGroups) {
|
|
140
|
-
sb.push(cellGroup.data + " rowIndex:" + cellGroup.rowIndex);
|
|
141
|
-
if (cellGroup.children?.length) {
|
|
142
|
-
CellgroupFactory.iterateThrowColumns(sb, cellGroup.children);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { SizeIf } from "../../common/size.if";
|
|
2
|
-
import { CellRendererIf } from "../../../renderer/cell-render.if";
|
|
3
|
-
import { AreaObjectMapType } from "../../common/area-map.type";
|
|
4
|
-
import { BooleanFunction } from "../../common/boolean-function";
|
|
5
|
-
import { SortState } from "../../common/sort-state.type";
|
|
6
|
-
import { GetEditRenderer } from "../../../renderer/edit/edit-cell-renderer.type";
|
|
7
|
-
import { editInputPipe } from "../../../renderer/edit/edit-input-pipe.if";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Represents a column definition of one table column.
|
|
12
|
-
*/
|
|
13
|
-
export interface ColumnDefIf {
|
|
14
|
-
/**
|
|
15
|
-
* Represents a property name of the table row element.
|
|
16
|
-
* @typedef {String} VariableProperty
|
|
17
|
-
*/
|
|
18
|
-
property: string;
|
|
19
|
-
/**
|
|
20
|
-
* Represents the label for a header.
|
|
21
|
-
*
|
|
22
|
-
* @typedef {string} headerLabel
|
|
23
|
-
*/
|
|
24
|
-
headerLabel: string;
|
|
25
|
-
/**
|
|
26
|
-
* Represents the size of a column along the width dimension.
|
|
27
|
-
*
|
|
28
|
-
* @typedef {number} Width
|
|
29
|
-
*/
|
|
30
|
-
width: SizeIf;
|
|
31
|
-
/**
|
|
32
|
-
* Represents the minimum width of a column.
|
|
33
|
-
*
|
|
34
|
-
* @typedef {SizeIf} minWidth
|
|
35
|
-
* @property {number} width - The minimum width value.
|
|
36
|
-
* @property {string} unit - The unit of measurement for the minimum width value.
|
|
37
|
-
* Default value is 'px' if not specified.
|
|
38
|
-
*/
|
|
39
|
-
minWidth: SizeIf;
|
|
40
|
-
/**
|
|
41
|
-
* Represents the maximum width of a column.
|
|
42
|
-
*
|
|
43
|
-
* @typedef {number} SizeIf
|
|
44
|
-
*/
|
|
45
|
-
maxWidth: SizeIf;
|
|
46
|
-
/**
|
|
47
|
-
* @typedef {Object} AreaObjectMapType
|
|
48
|
-
* @template T
|
|
49
|
-
* @property {Object.<string, T>} map - A mapping of strings to values of type T
|
|
50
|
-
*/
|
|
51
|
-
rendererMap: AreaObjectMapType<CellRendererIf>;
|
|
52
|
-
/**
|
|
53
|
-
* Represents an object that maps an area to a collection of objects.
|
|
54
|
-
*
|
|
55
|
-
* @typedef {Object.<string, string[]>} AreaObjectMapType
|
|
56
|
-
*/
|
|
57
|
-
classes: AreaObjectMapType<string[]>;
|
|
58
|
-
/**
|
|
59
|
-
* Determines whether or not a column can be sorted.
|
|
60
|
-
*
|
|
61
|
-
* @param {boolean} sortable - Specifies if an item is sortable.
|
|
62
|
-
* @returns {boolean} - Indicating whether the item is sortable or not.
|
|
63
|
-
*/
|
|
64
|
-
sortable?: BooleanFunction,
|
|
65
|
-
/**
|
|
66
|
-
* Determines if the sort icon is visible.
|
|
67
|
-
*
|
|
68
|
-
* @typedef {BooleanFunction} sortIconVisible
|
|
69
|
-
* @returns {boolean} Indicates whether the sort icon is visible.
|
|
70
|
-
*/
|
|
71
|
-
sortIconVisible?: BooleanFunction,
|
|
72
|
-
/**
|
|
73
|
-
* Represents a function that compares two values for sorting purposes.
|
|
74
|
-
* The function takes two arguments of type T, compares them, and returns a number.
|
|
75
|
-
* If the result is negative, it means 'a' comes before 'b' in the sorted order.
|
|
76
|
-
* If the result is positive, it means 'b' comes before 'a' in the sorted order.
|
|
77
|
-
* If the result is zero, it means the two values are considered equal for sorting purposes.
|
|
78
|
-
*
|
|
79
|
-
* @typeparam T The type of values being compared.
|
|
80
|
-
*
|
|
81
|
-
* @param a The first value to be compared.
|
|
82
|
-
* @param b The second value to be compared.
|
|
83
|
-
*
|
|
84
|
-
* @returns A number indicating the relative order of 'a' and 'b'.
|
|
85
|
-
*/
|
|
86
|
-
sortComparator?: <T>(a: T, b: T) => number,
|
|
87
|
-
/**
|
|
88
|
-
* Represents the state of sorting for a list.
|
|
89
|
-
*
|
|
90
|
-
* @typedef {Object} SortState
|
|
91
|
-
*
|
|
92
|
-
* @property {string} [sortKey] - The key to sort the list by. If not provided, no sorting will be applied.
|
|
93
|
-
* @property {boolean} [reverse] - Indicates whether the list should be sorted in reverse order. Defaults to false.
|
|
94
|
-
*/
|
|
95
|
-
sortState?: SortState,
|
|
96
|
-
/**
|
|
97
|
-
* Represents the order of multiple sort states.
|
|
98
|
-
*
|
|
99
|
-
* @typedef {SortState[]} SortStatesOrder
|
|
100
|
-
*/
|
|
101
|
-
sortStatesOrder?: SortState[],
|
|
102
|
-
/**
|
|
103
|
-
* Determines if a column is editable or not.
|
|
104
|
-
*
|
|
105
|
-
* @param {any} variable - The variable to check.
|
|
106
|
-
* @returns {boolean} - Returns true if the variable is editable, false otherwise.
|
|
107
|
-
*/
|
|
108
|
-
editable?: BooleanFunction,
|
|
109
|
-
/**
|
|
110
|
-
* Determines if the column is visible or not.
|
|
111
|
-
*
|
|
112
|
-
* @typedef {Function} isVisible
|
|
113
|
-
* @returns {boolean} - If the element is visible, returns true. Otherwise, returns false.
|
|
114
|
-
*/
|
|
115
|
-
isVisible?: BooleanFunction,
|
|
116
|
-
/**
|
|
117
|
-
* Retrieves the edit renderer for the column.
|
|
118
|
-
*
|
|
119
|
-
* @name getEditRenderer
|
|
120
|
-
* @function
|
|
121
|
-
* @param {HTMLElement} element - The element for which to retrieve the edit renderer.
|
|
122
|
-
* @returns {EditRenderer | null} - The edit renderer for the specified element, or null if not found.
|
|
123
|
-
*/
|
|
124
|
-
getEditRenderer?: GetEditRenderer,
|
|
125
|
-
/**
|
|
126
|
-
* Represents an edit input pipe.
|
|
127
|
-
*
|
|
128
|
-
* @typedef {object} editInputPipe
|
|
129
|
-
* @property {string} name - The name of the edit input pipe.
|
|
130
|
-
* @property {number} id - The unique identifier of the edit input pipe.
|
|
131
|
-
* @property {boolean} isActive - Indicates whether the edit input pipe is active.
|
|
132
|
-
* @property {function} execute - Executes the edit input pipe operation.
|
|
133
|
-
* @property {function} addFilter - Adds a filter to the edit input pipe.
|
|
134
|
-
* @property {function} removeFilter - Removes a filter from the edit input pipe.
|
|
135
|
-
* @property {function} clearFilters - Clears all filters from the edit input pipe.
|
|
136
|
-
* @property {function} setPriority - Sets the priority of the edit input pipe.
|
|
137
|
-
* @property {function} getStatus - Retrieves the current status of the edit input pipe.
|
|
138
|
-
*/
|
|
139
|
-
editInputPipe?: editInputPipe
|
|
140
|
-
}
|
|
141
|
-
|