@base-framework/ui 1.0.75 → 1.0.79
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/dist/index.es.js +1 -1
- package/dist/organisms.es.js +1 -1
- package/dist/{signature-panel-CWUdyYU9.js → signature-panel-DjT5AthY.js} +430 -399
- package/dist/types/components/molecules/delay-component.d.ts +6 -0
- package/dist/types/components/organisms/lists/data-table.d.ts +89 -1
- package/dist/types/components/organisms/lists/scrollable-data-table.d.ts +5 -1
- package/dist/types/components/organisms/lists/scrollable-table.d.ts +26 -0
- package/package.json +1 -1
|
@@ -14,5 +14,11 @@ export class DelayComponent extends Component {
|
|
|
14
14
|
* @default ''
|
|
15
15
|
*/
|
|
16
16
|
removingClass: string;
|
|
17
|
+
/**
|
|
18
|
+
* This will remove the component from the DOM after a delay.
|
|
19
|
+
*
|
|
20
|
+
* @returns {void}
|
|
21
|
+
*/
|
|
22
|
+
remove(): void;
|
|
17
23
|
}
|
|
18
24
|
import { Component } from "@base-framework/base";
|
|
@@ -6,8 +6,96 @@
|
|
|
6
6
|
* @param {object} props
|
|
7
7
|
* @returns {object}
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export class DataTable extends Component {
|
|
10
|
+
/**
|
|
11
|
+
* Initializes component data.
|
|
12
|
+
*
|
|
13
|
+
* @returns {Data}
|
|
14
|
+
*/
|
|
15
|
+
setData(): Data;
|
|
16
|
+
/**
|
|
17
|
+
* This will toggle all selected rows.
|
|
18
|
+
*
|
|
19
|
+
* @returns {boolean}
|
|
20
|
+
*/
|
|
21
|
+
toggleAllSelectedRows(): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* This will update the selected state.
|
|
24
|
+
*
|
|
25
|
+
* @returns {void}
|
|
26
|
+
*/
|
|
27
|
+
updateSelected(): void;
|
|
28
|
+
/**
|
|
29
|
+
* This will get the selected rows.
|
|
30
|
+
*
|
|
31
|
+
* @returns {Array<object>}
|
|
32
|
+
*/
|
|
33
|
+
getSelectedRows(): Array<object>;
|
|
34
|
+
/**
|
|
35
|
+
* This will update the table rows.
|
|
36
|
+
*
|
|
37
|
+
* @protected
|
|
38
|
+
* @param {boolean} selected
|
|
39
|
+
* @returns {void}
|
|
40
|
+
*/
|
|
41
|
+
protected updateTable(selected: boolean): void;
|
|
42
|
+
/**
|
|
43
|
+
* Handles row selection.
|
|
44
|
+
*
|
|
45
|
+
* @param {object} row
|
|
46
|
+
*/
|
|
47
|
+
selectRow(row: object): void;
|
|
48
|
+
/**
|
|
49
|
+
* Renders the DataTable component.
|
|
50
|
+
*
|
|
51
|
+
* @returns {object}
|
|
52
|
+
*/
|
|
53
|
+
render(): object;
|
|
54
|
+
/**
|
|
55
|
+
* This will remove items from the list.
|
|
56
|
+
*
|
|
57
|
+
* @public
|
|
58
|
+
* @param {array} items
|
|
59
|
+
* @returns {void}
|
|
60
|
+
*/
|
|
61
|
+
public remove(items: any[]): void;
|
|
62
|
+
/**
|
|
63
|
+
* This will set the items in the list.
|
|
64
|
+
*
|
|
65
|
+
* @public
|
|
66
|
+
* @param {array} rows
|
|
67
|
+
* @returns {void}
|
|
68
|
+
*/
|
|
69
|
+
public setRows(rows: any[]): void;
|
|
70
|
+
/**
|
|
71
|
+
* This will append items to the list.
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
* @param {array|object} items
|
|
75
|
+
* @returns {void}
|
|
76
|
+
*/
|
|
77
|
+
public append(items: any[] | object): void;
|
|
78
|
+
/**
|
|
79
|
+
* This will mingle the new items with the old items.
|
|
80
|
+
*
|
|
81
|
+
* @public
|
|
82
|
+
* @param {Array<Object>} newItems
|
|
83
|
+
* @param {boolean} withDelete
|
|
84
|
+
* @returns {void}
|
|
85
|
+
*/
|
|
86
|
+
public mingle(newItems: Array<any>, withDelete?: boolean): void;
|
|
87
|
+
/**
|
|
88
|
+
* This will prepend items to the list.
|
|
89
|
+
*
|
|
90
|
+
* @public
|
|
91
|
+
* @param {array|object} items
|
|
92
|
+
* @returns {void}
|
|
93
|
+
*/
|
|
94
|
+
public prepend(items: any[] | object): void;
|
|
95
|
+
}
|
|
10
96
|
import { CheckboxCol } from './table-header.js';
|
|
11
97
|
import { HeaderCol } from './table-header.js';
|
|
12
98
|
import { TableHeader } from './table-header.js';
|
|
99
|
+
import { Component } from '@base-framework/base';
|
|
100
|
+
import { Data } from '@base-framework/base';
|
|
13
101
|
export { CheckboxCol, HeaderCol, TableHeader };
|
|
@@ -12,7 +12,11 @@
|
|
|
12
12
|
* @property {string} [props.key] - The key to use to identify the items.
|
|
13
13
|
* @property {array} [props.rows] - The initial rows.
|
|
14
14
|
* @property {function} [props.rowItem] - The row item.
|
|
15
|
-
* @property {
|
|
15
|
+
* @property {array} [props.headers] - The table headers.
|
|
16
|
+
* @property {object} [props.customHeader] - The custom header.
|
|
17
|
+
* @property {function} [props.selectRow] - The function to select a row.
|
|
18
|
+
* @property {string} [props.border] - The border to add to the table.
|
|
19
|
+
* @property {object} [props.data] - The table data.
|
|
16
20
|
* @returns {object}
|
|
17
21
|
*/
|
|
18
22
|
export const ScrollableDataTable: Function;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export function ScrollableDataTableBody(props: object): object;
|
|
2
|
+
/**
|
|
3
|
+
* ScrollableDataTable Component
|
|
4
|
+
*
|
|
5
|
+
* This will create a scrollable data table.
|
|
6
|
+
*
|
|
7
|
+
* @param {object} props
|
|
8
|
+
* @property {HTMLElement} [props.scrollContainer] - The container element for scroll events. Defaults to window.
|
|
9
|
+
* @property {function} [props.loadMoreItems] - A function to fetch/generate additional items.
|
|
10
|
+
* @property {number} [props.offset] - The initial offset. Defaults to 0.
|
|
11
|
+
* @property {number} [props.limit] - Number of items to load per batch. Defaults to 20.
|
|
12
|
+
* @property {string} [props.class] - The class to add to the list.
|
|
13
|
+
* @property {string} [props.key] - The key to use to identify the items.
|
|
14
|
+
* @property {array} [props.rows] - The initial rows.
|
|
15
|
+
* @property {function} [props.rowItem] - The row item.
|
|
16
|
+
* @property {string} [props.containerClass] - The class to add to the scroll container.
|
|
17
|
+
* @returns {object}
|
|
18
|
+
*/
|
|
19
|
+
export class ScrollableTable extends DataTable {
|
|
20
|
+
}
|
|
21
|
+
export default ScrollableTable;
|
|
22
|
+
import { CheckboxCol } from './table-header.js';
|
|
23
|
+
import { HeaderCol } from './table-header.js';
|
|
24
|
+
import { TableHeader } from './table-header.js';
|
|
25
|
+
import { DataTable } from './data-table.js';
|
|
26
|
+
export { CheckboxCol, HeaderCol, TableHeader };
|
package/package.json
CHANGED