@limetech/lime-elements 37.53.1 → 37.53.2
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/CHANGELOG.md +10 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +32 -10
- package/dist/cjs/limel-table.cjs.entry.js.map +1 -1
- package/dist/collection/components/table/table-selection.js +16 -8
- package/dist/collection/components/table/table-selection.js.map +1 -1
- package/dist/collection/components/table/table.js +24 -6
- package/dist/collection/components/table/table.js.map +1 -1
- package/dist/collection/components/table/table.types.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/limel-table.entry.js +32 -10
- package/dist/esm/limel-table.entry.js.map +1 -1
- package/dist/lime-elements/index.esm.js.map +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-cc5d8b3f.entry.js → p-852e7a2b.entry.js} +2 -2
- package/dist/lime-elements/p-852e7a2b.entry.js.map +1 -0
- package/dist/types/components/table/table-selection.d.ts +4 -2
- package/dist/types/components/table/table.d.ts +4 -3
- package/dist/types/components/table/table.types.d.ts +7 -0
- package/dist/types/components.d.ts +4 -4
- package/package.json +1 -1
- package/dist/lime-elements/p-cc5d8b3f.entry.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import Tabulator from 'tabulator-tables';
|
|
3
3
|
import { ElementPool } from './element-pool';
|
|
4
|
+
import { RowData } from './table.types';
|
|
4
5
|
/**
|
|
5
6
|
* Provides row selection to Tabulator with shift-click support for range selections
|
|
6
7
|
*/
|
|
@@ -16,7 +17,7 @@ export declare class TableSelection {
|
|
|
16
17
|
* @param pool - The element pool used to cache the checkbox components
|
|
17
18
|
* @param selectEvent - The event emitter to use when checkboxes are toggled
|
|
18
19
|
*/
|
|
19
|
-
constructor(getTable: () => Tabulator, pool: ElementPool, selectEvent: EventEmitter<
|
|
20
|
+
constructor(getTable: () => Tabulator, pool: ElementPool, selectEvent: EventEmitter<RowData[]>);
|
|
20
21
|
/**
|
|
21
22
|
* @returns Returns `true` when the selection is non-empty, otherwise `false`
|
|
22
23
|
*/
|
|
@@ -30,7 +31,7 @@ export declare class TableSelection {
|
|
|
30
31
|
*
|
|
31
32
|
* @param data - The selected items
|
|
32
33
|
*/
|
|
33
|
-
setSelection(data
|
|
34
|
+
setSelection(data?: RowData[]): void;
|
|
34
35
|
/**
|
|
35
36
|
* Prepends a checkbox column used for row selection to the given column definitions
|
|
36
37
|
*
|
|
@@ -50,6 +51,7 @@ export declare class TableSelection {
|
|
|
50
51
|
* @param cell - The clicked cell component
|
|
51
52
|
*/
|
|
52
53
|
protected rowSelectorCellClick: (ev: PointerEvent, cell: Tabulator.CellComponent) => void;
|
|
54
|
+
private getRowData;
|
|
53
55
|
private updateRowSelectors;
|
|
54
56
|
private updateRowSelector;
|
|
55
57
|
private getActiveRows;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { Column, TableParams, ColumnSorter, ColumnAggregate } from './table.types';
|
|
2
|
+
import { Column, TableParams, ColumnSorter, ColumnAggregate, RowData } from './table.types';
|
|
3
3
|
import { Layout } from './layout';
|
|
4
4
|
/**
|
|
5
5
|
* @exampleComponent limel-example-table
|
|
@@ -58,7 +58,7 @@ export declare class Table {
|
|
|
58
58
|
/**
|
|
59
59
|
* Active row in the table
|
|
60
60
|
*/
|
|
61
|
-
activeRow:
|
|
61
|
+
activeRow: RowData;
|
|
62
62
|
/**
|
|
63
63
|
* Set to `true` to enable reordering of the columns by dragging them
|
|
64
64
|
*/
|
|
@@ -132,7 +132,7 @@ export declare class Table {
|
|
|
132
132
|
protected pageSizeChanged(): void;
|
|
133
133
|
protected pageChanged(): void;
|
|
134
134
|
protected activeRowChanged(): void;
|
|
135
|
-
protected updateData(newData?:
|
|
135
|
+
protected updateData(newData?: RowData[], oldData?: RowData[]): void;
|
|
136
136
|
protected updateColumns(newColumns: Column[], oldColumns: Column[]): void;
|
|
137
137
|
protected updateAggregates(newAggregates: ColumnAggregate[], oldAggregates: ColumnAggregate[]): void;
|
|
138
138
|
protected updateSelection(newSelection: any[]): void;
|
|
@@ -163,6 +163,7 @@ export declare class Table {
|
|
|
163
163
|
private selectAllOnChange;
|
|
164
164
|
private formatRows;
|
|
165
165
|
private formatRow;
|
|
166
|
+
private isActiveRow;
|
|
166
167
|
private calculatePageCount;
|
|
167
168
|
private hasAggregation;
|
|
168
169
|
private getColumnOptions;
|
|
@@ -40,7 +40,7 @@ import { FlowItem } from "./components/progress-flow/progress-flow.types";
|
|
|
40
40
|
import { Option } from "./components/select/option.types";
|
|
41
41
|
import { SpinnerSize } from "./components/spinner/spinner.types";
|
|
42
42
|
import { Tab } from "./components/tab-bar/tab.types";
|
|
43
|
-
import { Column, ColumnAggregate, ColumnSorter, TableParams } from "./components/table/table.types";
|
|
43
|
+
import { Column, ColumnAggregate, ColumnSorter, RowData, TableParams } from "./components/table/table.types";
|
|
44
44
|
import { Layout } from "./components/table/layout";
|
|
45
45
|
import { EditorTextLink } from "./components/text-editor/prosemirror-adapter/menu/types";
|
|
46
46
|
export { ActionBarItem } from "./components/action-bar/action-bar.types";
|
|
@@ -78,7 +78,7 @@ export { FlowItem } from "./components/progress-flow/progress-flow.types";
|
|
|
78
78
|
export { Option } from "./components/select/option.types";
|
|
79
79
|
export { SpinnerSize } from "./components/spinner/spinner.types";
|
|
80
80
|
export { Tab } from "./components/tab-bar/tab.types";
|
|
81
|
-
export { Column, ColumnAggregate, ColumnSorter, TableParams } from "./components/table/table.types";
|
|
81
|
+
export { Column, ColumnAggregate, ColumnSorter, RowData, TableParams } from "./components/table/table.types";
|
|
82
82
|
export { Layout } from "./components/table/layout";
|
|
83
83
|
export { EditorTextLink } from "./components/text-editor/prosemirror-adapter/menu/types";
|
|
84
84
|
export namespace Components {
|
|
@@ -2458,7 +2458,7 @@ export namespace Components {
|
|
|
2458
2458
|
/**
|
|
2459
2459
|
* Active row in the table
|
|
2460
2460
|
*/
|
|
2461
|
-
"activeRow":
|
|
2461
|
+
"activeRow": RowData;
|
|
2462
2462
|
/**
|
|
2463
2463
|
* Column aggregates to be displayed in the table
|
|
2464
2464
|
*/
|
|
@@ -6872,7 +6872,7 @@ declare namespace LocalJSX {
|
|
|
6872
6872
|
/**
|
|
6873
6873
|
* Active row in the table
|
|
6874
6874
|
*/
|
|
6875
|
-
"activeRow"?:
|
|
6875
|
+
"activeRow"?: RowData;
|
|
6876
6876
|
/**
|
|
6877
6877
|
* Column aggregates to be displayed in the table
|
|
6878
6878
|
*/
|