@universis/ngx-tables 0.7.15 → 0.7.20
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/bundles/universis-ngx-tables.umd.js +14 -2
- package/bundles/universis-ngx-tables.umd.js.map +1 -1
- package/bundles/universis-ngx-tables.umd.min.js +1 -1
- package/bundles/universis-ngx-tables.umd.min.js.map +1 -1
- package/esm2015/lib/advanced-aggregator.js +2 -0
- package/esm2015/lib/components/add-items/add-items.component.js +3 -3
- package/esm2015/lib/components/advanced-table/advanced-table-search-base.js +7 -2
- package/esm2015/lib/components/advanced-table/advanced-table-settings.component.js +1 -1
- package/esm2015/lib/components/advanced-table/advanced-table.formatters.js +2 -2
- package/esm2015/lib/i18n/tables.el.js +4 -1
- package/esm2015/lib/i18n/tables.en.js +4 -1
- package/esm2015/lib/tables.module.js +3 -1
- package/esm5/lib/advanced-aggregator.js +2 -0
- package/esm5/lib/components/add-items/add-items.component.js +3 -3
- package/esm5/lib/components/advanced-table/advanced-table-search-base.js +7 -2
- package/esm5/lib/components/advanced-table/advanced-table-settings.component.js +1 -1
- package/esm5/lib/components/advanced-table/advanced-table.formatters.js +1 -1
- package/esm5/lib/i18n/tables.el.js +4 -1
- package/esm5/lib/i18n/tables.en.js +4 -1
- package/esm5/lib/tables.module.js +3 -1
- package/fesm2015/universis-ngx-tables.js +15 -3
- package/fesm2015/universis-ngx-tables.js.map +1 -1
- package/fesm5/universis-ngx-tables.js +14 -2
- package/fesm5/universis-ngx-tables.js.map +1 -1
- package/lib/advanced-aggregator.d.ts +55 -61
- package/lib/i18n/tables.el.d.ts +3 -0
- package/lib/i18n/tables.en.d.ts +3 -0
- package/package.json +1 -1
- package/universis-ngx-tables.metadata.json +1 -1
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
*
|
|
3
3
|
* @interface AdvancedAggregatorFilters An object that contains data used for filtering
|
|
4
|
-
*
|
|
4
|
+
*
|
|
5
5
|
* @property {Array<string>} filters A list of expressions to use for filtering
|
|
6
6
|
* @property {string} text The search text used by the user to run against the declared search expression
|
|
7
|
-
*
|
|
7
|
+
*
|
|
8
8
|
*/
|
|
9
9
|
export declare interface AdvancedAggregatorFilters {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
filters: string[];
|
|
11
|
+
text: string;
|
|
12
12
|
}
|
|
13
|
-
|
|
14
13
|
/**
|
|
15
|
-
*
|
|
14
|
+
*
|
|
16
15
|
* @interface AdvancedAggregatorColumn A column in the advanced aggregator list
|
|
17
|
-
*
|
|
16
|
+
*
|
|
18
17
|
* @property {string} name The name of the column. It's used as it's key
|
|
19
18
|
* @property {string} title The title that will be shown as column label
|
|
20
19
|
* @property {string='text', 'boolean'} type The data type of the column value
|
|
@@ -22,85 +21,80 @@ export declare interface AdvancedAggregatorFilters {
|
|
|
22
21
|
* @property {string} length The length of the list cell
|
|
23
22
|
* @property {string} trueValue For booleans, the value that represent the true state
|
|
24
23
|
* @property {boolean} hidden Whether the column should be shown on the UI
|
|
25
|
-
*
|
|
24
|
+
*
|
|
26
25
|
*/
|
|
27
26
|
export declare interface AdvancedAggregatorColumn {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
name: string;
|
|
28
|
+
property: string;
|
|
29
|
+
title: string;
|
|
30
|
+
type?: string;
|
|
31
|
+
variant?: string;
|
|
32
|
+
length?: string;
|
|
33
|
+
trueValue?: string;
|
|
34
|
+
hidden?: boolean;
|
|
36
35
|
}
|
|
37
|
-
|
|
38
36
|
/**
|
|
39
|
-
*
|
|
37
|
+
*
|
|
40
38
|
* @interface AdvancedAggregatorAction An action that can be used in a column
|
|
41
|
-
*
|
|
39
|
+
*
|
|
42
40
|
* @property {string} name The name of the action
|
|
43
41
|
* @property {string='edit'} type The type of the action
|
|
44
42
|
* @property {string} title The title that is shown on mouse hover
|
|
45
43
|
* @property {string} identifier An identifier that will be emitted along with the row data
|
|
46
44
|
* @property {string} icon The icon to show as identifier
|
|
47
|
-
*
|
|
45
|
+
*
|
|
48
46
|
*/
|
|
49
47
|
export declare interface AdvancedAggregatorAction {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
name: string;
|
|
49
|
+
type: string;
|
|
50
|
+
title: string;
|
|
51
|
+
identifier: string;
|
|
52
|
+
icon: string;
|
|
55
53
|
}
|
|
56
|
-
|
|
57
54
|
/**
|
|
58
|
-
*
|
|
55
|
+
*
|
|
59
56
|
* @interface AdvancedAggregatorFunction An aggregator function that should return a value for each subgroup
|
|
60
|
-
*
|
|
57
|
+
*
|
|
61
58
|
* @property {string} name The name of the aggregator function
|
|
62
59
|
* @property {string} label The label of the aggregator
|
|
63
|
-
*
|
|
60
|
+
*
|
|
64
61
|
*/
|
|
65
62
|
export declare interface AdvancedAggregatorFunction {
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
name: string;
|
|
64
|
+
label: string;
|
|
68
65
|
}
|
|
69
|
-
|
|
70
66
|
/**
|
|
71
|
-
*
|
|
67
|
+
*
|
|
72
68
|
* @interface AdvancedAggregatorGroup The declaration of a property that can be used to group the data
|
|
73
|
-
*
|
|
69
|
+
*
|
|
74
70
|
* @property {string} name The name of the group. Should match the name of the column property
|
|
75
|
-
* @property {string} property The property name
|
|
71
|
+
* @property {string} property The property name
|
|
76
72
|
* @property {string} label The label to be shown as the select option at the advanced search component
|
|
77
|
-
* @property {string} title The title to show on top of the grouped list
|
|
73
|
+
* @property {string} title The title to show on top of the grouped list
|
|
78
74
|
* @property {string} default Whether the column is used by default. If none, the first found is used
|
|
79
|
-
*
|
|
75
|
+
*
|
|
80
76
|
*/
|
|
81
77
|
export declare interface AdvancedAggregatorGroup {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
78
|
+
name: string;
|
|
79
|
+
property: string;
|
|
80
|
+
label: string;
|
|
81
|
+
title: string;
|
|
82
|
+
default?: boolean;
|
|
87
83
|
}
|
|
88
|
-
|
|
89
84
|
/**
|
|
90
|
-
*
|
|
85
|
+
*
|
|
91
86
|
* @interface AdvancedAggregatorPostProcessor A declaration for a post processor function
|
|
92
|
-
*
|
|
87
|
+
*
|
|
93
88
|
* @property {string} name The name of the post processor. It will be used as identifier
|
|
94
|
-
*
|
|
89
|
+
*
|
|
95
90
|
*/
|
|
96
91
|
export declare interface AdvancedAggregatorPostProcessor {
|
|
97
|
-
|
|
92
|
+
name: string;
|
|
98
93
|
}
|
|
99
|
-
|
|
100
94
|
/**
|
|
101
|
-
*
|
|
95
|
+
*
|
|
102
96
|
* @interface AdvancedAggregatorConfig The configuration of the advanced aggregator list component
|
|
103
|
-
*
|
|
97
|
+
*
|
|
104
98
|
* @property {string} model The model which is going to be displayed
|
|
105
99
|
* @property {string} query The query to use in order to fetch data
|
|
106
100
|
* @property {string} title The Title of the list
|
|
@@ -109,16 +103,16 @@ export declare interface AdvancedAggregatorPostProcessor {
|
|
|
109
103
|
* @property {Array<AdvancedAggregatorFunction>} aggregator The list of functions that can summarize the data
|
|
110
104
|
* @property {Array<AdvancedAggregatorAction>} actions The list of actions that are available for the list items
|
|
111
105
|
* @property {Array<AdvancedAggregatorColumn>} columns The list of fields to be used from the target models
|
|
112
|
-
*
|
|
106
|
+
*
|
|
113
107
|
*/
|
|
114
108
|
export declare interface AdvancedAggregatorConfig {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
109
|
+
model: string;
|
|
110
|
+
query: string;
|
|
111
|
+
title: string;
|
|
112
|
+
orderBy: string;
|
|
113
|
+
groupProperties: Array<AdvancedAggregatorGroup>;
|
|
114
|
+
aggregators?: Array<AdvancedAggregatorFunction>;
|
|
115
|
+
postProcessors?: Array<AdvancedAggregatorPostProcessor>;
|
|
116
|
+
actions?: Array<AdvancedAggregatorAction>;
|
|
117
|
+
columns: Array<AdvancedAggregatorColumn>;
|
|
124
118
|
}
|
package/lib/i18n/tables.el.d.ts
CHANGED
package/lib/i18n/tables.en.d.ts
CHANGED