@one-paragon/angular-utilities 0.0.1 → 0.0.6
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/esm2020/http-request-state/HttpRequestStateFactory.mjs +27 -0
- package/esm2020/http-request-state/HttpRequestStateStore.mjs +77 -0
- package/esm2020/http-request-state/directives/HttpStateDirectiveBase.mjs +34 -0
- package/esm2020/http-request-state/directives/http-error-state-directive.mjs +29 -0
- package/esm2020/http-request-state/directives/http-inProgress-state-directive.mjs +29 -0
- package/esm2020/http-request-state/directives/http-notStarted-state-directive.mjs +29 -0
- package/esm2020/http-request-state/directives/http-success-state-directive.mjs +29 -0
- package/esm2020/http-request-state/directives/index.mjs +6 -0
- package/esm2020/http-request-state/directives/request-state-directive.mjs +57 -0
- package/esm2020/http-request-state/helpers.mjs +19 -0
- package/esm2020/http-request-state/http-request-state.mjs +39 -0
- package/esm2020/http-request-state/http-state-module.mjs +41 -0
- package/esm2020/http-request-state/index.mjs +7 -0
- package/esm2020/http-request-state/rxjs/getRequestorBody.mjs +4 -0
- package/esm2020/http-request-state/rxjs/getRequestorState.mjs +3 -0
- package/esm2020/http-request-state/rxjs/index.mjs +5 -0
- package/esm2020/http-request-state/rxjs/tapError.mjs +12 -0
- package/esm2020/http-request-state/rxjs/tapSuccess.mjs +12 -0
- package/esm2020/http-request-state/types.mjs +15 -0
- package/esm2020/one-paragon-angular-utilities.mjs +5 -0
- package/esm2020/public-api.mjs +13 -4
- package/esm2020/rxjs/defaultShareReplay.mjs +7 -0
- package/esm2020/rxjs/index.mjs +4 -0
- package/esm2020/rxjs/mapError.mjs +8 -0
- package/esm2020/rxjs/rxjs-operators.mjs +77 -0
- package/esm2020/table-builder/classes/DefaultSettings.mjs +6 -0
- package/esm2020/table-builder/classes/GenericTableDataSource.mjs +13 -0
- package/esm2020/table-builder/classes/MatTableObservableDataSource.mjs +21 -0
- package/esm2020/table-builder/classes/TableBuilderConfig.mjs +3 -0
- package/esm2020/table-builder/classes/TableState.mjs +12 -0
- package/esm2020/table-builder/classes/data-filter.mjs +22 -0
- package/esm2020/table-builder/classes/display-col.mjs +2 -0
- package/esm2020/table-builder/classes/filter-info.mjs +60 -0
- package/esm2020/table-builder/classes/table-builder-general-settings.mjs +53 -0
- package/esm2020/table-builder/classes/table-builder.mjs +57 -0
- package/esm2020/table-builder/classes/table-store.mjs +230 -0
- package/esm2020/table-builder/components/array-column.component.mjs +57 -0
- package/esm2020/table-builder/components/column-builder/column-builder.component.mjs +92 -0
- package/esm2020/table-builder/components/date-filter/date-filter.component.mjs +25 -0
- package/esm2020/table-builder/components/filter/filter.component.mjs +53 -0
- package/esm2020/table-builder/components/filter/in-list/in-list-filter.component.mjs +91 -0
- package/esm2020/table-builder/components/gen-col-displayer/gen-col-displayer.component.mjs +45 -0
- package/esm2020/table-builder/components/generic-table/generic-table.component.mjs +153 -0
- package/esm2020/table-builder/components/generic-table/paginator.component.mjs +74 -0
- package/esm2020/table-builder/components/header-menu/header-menu.component.mjs +90 -0
- package/esm2020/table-builder/components/in-filter/in-filter.component.mjs +66 -0
- package/esm2020/table-builder/components/index.mjs +9 -0
- package/esm2020/table-builder/components/initialization-component/initialization-component.mjs +41 -0
- package/esm2020/table-builder/components/number-filter/number-filter.component.mjs +27 -0
- package/esm2020/table-builder/components/sort-menu/sort-menu.component-store.mjs +42 -0
- package/esm2020/table-builder/components/sort-menu/sort-menu.component.mjs +74 -0
- package/esm2020/table-builder/components/table-container/table-container.mjs +174 -0
- package/esm2020/table-builder/components/table-container-filter/filter-list/filter-list.component.mjs +39 -0
- package/esm2020/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.mjs +30 -0
- package/esm2020/table-builder/components/table-container-filter/table-wrapper-filter-store.mjs +25 -0
- package/esm2020/table-builder/directives/custom-cell-directive.mjs +59 -0
- package/esm2020/table-builder/directives/index.mjs +4 -0
- package/esm2020/table-builder/directives/multi-sort.directive.mjs +42 -0
- package/esm2020/table-builder/directives/resize-column.directive.mjs +85 -0
- package/esm2020/table-builder/enums/filterTypes.mjs +58 -0
- package/esm2020/table-builder/functions/boolean-filter-function.mjs +10 -0
- package/esm2020/table-builder/functions/date-filter-function.mjs +32 -0
- package/esm2020/table-builder/functions/download-data.mjs +12 -0
- package/esm2020/table-builder/functions/null-filter-function.mjs +8 -0
- package/esm2020/table-builder/functions/number-filter-function.mjs +32 -0
- package/esm2020/table-builder/functions/sort-data-function.mjs +5 -0
- package/esm2020/table-builder/functions/string-filter-function.mjs +41 -0
- package/esm2020/table-builder/interfaces/ColumnInfo.mjs +2 -0
- package/esm2020/table-builder/interfaces/dictionary.mjs +2 -0
- package/esm2020/table-builder/interfaces/report-def.mjs +34 -0
- package/esm2020/table-builder/material.module.mjs +223 -0
- package/esm2020/table-builder/ngrx/actions.mjs +5 -0
- package/esm2020/table-builder/ngrx/effects.mjs +48 -0
- package/esm2020/table-builder/ngrx/reducer.mjs +52 -0
- package/esm2020/table-builder/ngrx/selectors.mjs +24 -0
- package/esm2020/table-builder/pipes/column-total.pipe.mjs +21 -0
- package/esm2020/table-builder/pipes/format-filter-type.pipe.mjs +18 -0
- package/esm2020/table-builder/pipes/format-filter-value.pipe.mjs +46 -0
- package/esm2020/table-builder/pipes/key-display.mjs +20 -0
- package/esm2020/table-builder/services/export-to-csv.service.mjs +83 -0
- package/esm2020/table-builder/services/table-template-service.mjs +37 -0
- package/esm2020/table-builder/services/transform-creator.mjs +50 -0
- package/esm2020/table-builder/table-builder.module.mjs +167 -0
- package/esm2020/utilities/directives/auto-focus.directive.mjs +26 -0
- package/esm2020/utilities/directives/buttonSubject.mjs +18 -0
- package/esm2020/utilities/directives/dialog-service.mjs +25 -0
- package/esm2020/utilities/directives/dialog.mjs +120 -0
- package/esm2020/utilities/directives/prevent-enter.directive.mjs +19 -0
- package/esm2020/utilities/directives/stop-propagation.directive.mjs +25 -0
- package/esm2020/utilities/directives/styler.mjs +26 -0
- package/esm2020/utilities/index.mjs +11 -0
- package/esm2020/utilities/module.mjs +73 -0
- package/esm2020/utilities/pipes/function.pipe.mjs +14 -0
- package/esm2020/utilities/pipes/phone.pipe.mjs +20 -0
- package/esm2020/utilities/pipes/space-case.pipes.mjs +28 -0
- package/fesm2015/one-paragon-angular-utilities.mjs +3398 -0
- package/fesm2015/one-paragon-angular-utilities.mjs.map +1 -0
- package/fesm2020/one-paragon-angular-utilities.mjs +3377 -0
- package/fesm2020/one-paragon-angular-utilities.mjs.map +1 -0
- package/{lib → http-request-state}/HttpRequestStateFactory.d.ts +0 -0
- package/{lib → http-request-state}/HttpRequestStateStore.d.ts +1 -1
- package/{lib → http-request-state}/directives/HttpStateDirectiveBase.d.ts +0 -0
- package/{lib → http-request-state}/directives/http-error-state-directive.d.ts +0 -0
- package/{lib → http-request-state}/directives/http-inProgress-state-directive.d.ts +0 -0
- package/{lib → http-request-state}/directives/http-notStarted-state-directive.d.ts +0 -0
- package/{lib → http-request-state}/directives/http-success-state-directive.d.ts +0 -0
- package/{lib → http-request-state}/directives/index.d.ts +0 -0
- package/{lib → http-request-state}/directives/request-state-directive.d.ts +0 -0
- package/{lib → http-request-state}/helpers.d.ts +0 -0
- package/{lib → http-request-state}/http-request-state.d.ts +0 -0
- package/{lib → http-request-state}/http-state-module.d.ts +0 -0
- package/{lib → http-request-state}/index.d.ts +0 -0
- package/{lib → http-request-state}/rxjs/getRequestorBody.d.ts +0 -0
- package/{lib → http-request-state}/rxjs/getRequestorState.d.ts +1 -1
- package/{lib → http-request-state}/rxjs/index.d.ts +0 -2
- package/{lib → http-request-state}/rxjs/tapError.d.ts +0 -0
- package/{lib → http-request-state}/rxjs/tapSuccess.d.ts +0 -0
- package/{lib → http-request-state}/types.d.ts +2 -1
- package/{angular-utilities.d.ts → one-paragon-angular-utilities.d.ts} +1 -1
- package/package.json +21 -26
- package/public-api.d.ts +12 -3
- package/{lib/rxjs → rxjs}/defaultShareReplay.d.ts +0 -0
- package/rxjs/index.d.ts +3 -0
- package/{lib/rxjs → rxjs}/mapError.d.ts +0 -0
- package/rxjs/rxjs-operators.d.ts +9 -0
- package/table-builder/classes/DefaultSettings.d.ts +8 -0
- package/table-builder/classes/GenericTableDataSource.d.ts +8 -0
- package/table-builder/classes/MatTableObservableDataSource.d.ts +9 -0
- package/table-builder/classes/TableBuilderConfig.d.ts +18 -0
- package/table-builder/classes/TableState.d.ts +24 -0
- package/table-builder/classes/data-filter.d.ts +9 -0
- package/table-builder/classes/display-col.d.ts +5 -0
- package/table-builder/classes/filter-info.d.ts +29 -0
- package/table-builder/classes/table-builder-general-settings.d.ts +33 -0
- package/table-builder/classes/table-builder.d.ts +14 -0
- package/table-builder/classes/table-store.d.ts +81 -0
- package/table-builder/components/array-column.component.d.ts +14 -0
- package/table-builder/components/column-builder/column-builder.component.d.ts +46 -0
- package/table-builder/components/date-filter/date-filter.component.d.ts +10 -0
- package/table-builder/components/filter/filter.component.d.ts +281 -0
- package/table-builder/components/filter/in-list/in-list-filter.component.d.ts +27 -0
- package/table-builder/components/gen-col-displayer/gen-col-displayer.component.d.ts +16 -0
- package/table-builder/components/generic-table/generic-table.component.d.ts +57 -0
- package/table-builder/components/generic-table/paginator.component.d.ts +28 -0
- package/table-builder/components/header-menu/header-menu.component.d.ts +25 -0
- package/table-builder/components/in-filter/in-filter.component.d.ts +22 -0
- package/table-builder/components/index.d.ts +8 -0
- package/table-builder/components/initialization-component/initialization-component.d.ts +14 -0
- package/table-builder/components/number-filter/number-filter.component.d.ts +12 -0
- package/table-builder/components/sort-menu/sort-menu.component-store.d.ts +24 -0
- package/table-builder/components/sort-menu/sort-menu.component.d.ts +25 -0
- package/table-builder/components/table-container/table-container.d.ts +65 -0
- package/table-builder/components/table-container-filter/filter-list/filter-list.component.d.ts +17 -0
- package/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.d.ts +14 -0
- package/table-builder/components/table-container-filter/table-wrapper-filter-store.d.ts +14 -0
- package/table-builder/directives/custom-cell-directive.d.ts +19 -0
- package/table-builder/directives/index.d.ts +3 -0
- package/table-builder/directives/multi-sort.directive.d.ts +11 -0
- package/table-builder/directives/resize-column.directive.d.ts +43 -0
- package/table-builder/enums/filterTypes.d.ts +30 -0
- package/table-builder/functions/boolean-filter-function.d.ts +3 -0
- package/table-builder/functions/date-filter-function.d.ts +3 -0
- package/table-builder/functions/download-data.d.ts +1 -0
- package/table-builder/functions/null-filter-function.d.ts +2 -0
- package/table-builder/functions/number-filter-function.d.ts +4 -0
- package/table-builder/functions/sort-data-function.d.ts +3 -0
- package/table-builder/functions/string-filter-function.d.ts +7 -0
- package/table-builder/interfaces/ColumnInfo.d.ts +6 -0
- package/table-builder/interfaces/dictionary.d.ts +3 -0
- package/table-builder/interfaces/report-def.d.ts +86 -0
- package/table-builder/material.module.d.ts +34 -0
- package/table-builder/ngrx/actions.d.ts +23 -0
- package/table-builder/ngrx/effects.d.ts +19 -0
- package/table-builder/ngrx/reducer.d.ts +15 -0
- package/table-builder/ngrx/selectors.d.ts +22 -0
- package/table-builder/pipes/column-total.pipe.d.ts +9 -0
- package/table-builder/pipes/format-filter-type.pipe.d.ts +8 -0
- package/table-builder/pipes/format-filter-value.pipe.d.ts +14 -0
- package/table-builder/pipes/key-display.d.ts +11 -0
- package/table-builder/services/export-to-csv.service.d.ts +22 -0
- package/table-builder/services/table-template-service.d.ts +14 -0
- package/table-builder/services/transform-creator.d.ts +17 -0
- package/table-builder/table-builder.module.d.ts +41 -0
- package/utilities/directives/auto-focus.directive.d.ts +10 -0
- package/utilities/directives/buttonSubject.d.ts +6 -0
- package/utilities/directives/dialog-service.d.ts +10 -0
- package/utilities/directives/dialog.d.ts +42 -0
- package/utilities/directives/prevent-enter.directive.d.ts +6 -0
- package/utilities/directives/stop-propagation.directive.d.ts +7 -0
- package/utilities/directives/styler.d.ts +9 -0
- package/utilities/index.d.ts +10 -0
- package/utilities/module.d.ts +15 -0
- package/utilities/pipes/function.pipe.d.ts +7 -0
- package/utilities/pipes/phone.pipe.d.ts +7 -0
- package/utilities/pipes/space-case.pipes.d.ts +17 -0
- package/esm2020/angular-utilities.mjs +0 -5
- package/esm2020/lib/HttpRequestStateFactory.mjs +0 -27
- package/esm2020/lib/HttpRequestStateStore.mjs +0 -77
- package/esm2020/lib/directives/HttpStateDirectiveBase.mjs +0 -34
- package/esm2020/lib/directives/http-error-state-directive.mjs +0 -29
- package/esm2020/lib/directives/http-inProgress-state-directive.mjs +0 -29
- package/esm2020/lib/directives/http-notStarted-state-directive.mjs +0 -29
- package/esm2020/lib/directives/http-success-state-directive.mjs +0 -29
- package/esm2020/lib/directives/index.mjs +0 -6
- package/esm2020/lib/directives/request-state-directive.mjs +0 -57
- package/esm2020/lib/helpers.mjs +0 -19
- package/esm2020/lib/http-request-state.mjs +0 -39
- package/esm2020/lib/http-state-module.mjs +0 -41
- package/esm2020/lib/index.mjs +0 -7
- package/esm2020/lib/rxjs/defaultShareReplay.mjs +0 -7
- package/esm2020/lib/rxjs/getRequestorBody.mjs +0 -4
- package/esm2020/lib/rxjs/getRequestorState.mjs +0 -3
- package/esm2020/lib/rxjs/index.mjs +0 -7
- package/esm2020/lib/rxjs/mapError.mjs +0 -8
- package/esm2020/lib/rxjs/tapError.mjs +0 -12
- package/esm2020/lib/rxjs/tapSuccess.mjs +0 -12
- package/esm2020/lib/types.mjs +0 -14
- package/fesm2015/angular-utilities.mjs +0 -426
- package/fesm2015/angular-utilities.mjs.map +0 -1
- package/fesm2020/angular-utilities.mjs +0 -424
- package/fesm2020/angular-utilities.mjs.map +0 -1
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FilterInfo, UnmappedTypes, mappedFieldTypes, PartialFilter } from '../../classes/filter-info';
|
|
3
|
+
import { TableStore } from '../../classes/table-store';
|
|
4
|
+
import { FilterType } from '../../enums/filterTypes';
|
|
5
|
+
import { FieldType } from '../../interfaces/report-def';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class FilterComponent<T extends mappedFieldTypes = any> {
|
|
8
|
+
state: TableStore;
|
|
9
|
+
filterTypes: Omit<{
|
|
10
|
+
0: Partial<{
|
|
11
|
+
Equals: FilterType[];
|
|
12
|
+
"Does Not Equal": FilterType[];
|
|
13
|
+
"Greater Than": FilterType[];
|
|
14
|
+
"Less Than": FilterType[];
|
|
15
|
+
Between: FilterType[];
|
|
16
|
+
Contains: FilterType[];
|
|
17
|
+
"Does Not Contain": FilterType[];
|
|
18
|
+
"Start With": FilterType[];
|
|
19
|
+
"Ends With": FilterType[];
|
|
20
|
+
"Is on": FilterType[];
|
|
21
|
+
"Is Not On": FilterType[];
|
|
22
|
+
"On or After": FilterType[];
|
|
23
|
+
"On or Before": FilterType[];
|
|
24
|
+
Is: FilterType[];
|
|
25
|
+
"Is Blank": FilterType[];
|
|
26
|
+
Or: FilterType[];
|
|
27
|
+
And: FilterType[];
|
|
28
|
+
In: FilterType[];
|
|
29
|
+
}>;
|
|
30
|
+
1: Partial<{
|
|
31
|
+
Equals: FilterType[];
|
|
32
|
+
"Does Not Equal": FilterType[];
|
|
33
|
+
"Greater Than": FilterType[];
|
|
34
|
+
"Less Than": FilterType[];
|
|
35
|
+
Between: FilterType[];
|
|
36
|
+
Contains: FilterType[];
|
|
37
|
+
"Does Not Contain": FilterType[];
|
|
38
|
+
"Start With": FilterType[];
|
|
39
|
+
"Ends With": FilterType[];
|
|
40
|
+
"Is on": FilterType[];
|
|
41
|
+
"Is Not On": FilterType[];
|
|
42
|
+
"On or After": FilterType[];
|
|
43
|
+
"On or Before": FilterType[];
|
|
44
|
+
Is: FilterType[];
|
|
45
|
+
"Is Blank": FilterType[];
|
|
46
|
+
Or: FilterType[];
|
|
47
|
+
And: FilterType[];
|
|
48
|
+
In: FilterType[];
|
|
49
|
+
}>;
|
|
50
|
+
2: Partial<{
|
|
51
|
+
Equals: FilterType[];
|
|
52
|
+
"Does Not Equal": FilterType[];
|
|
53
|
+
"Greater Than": FilterType[];
|
|
54
|
+
"Less Than": FilterType[];
|
|
55
|
+
Between: FilterType[];
|
|
56
|
+
Contains: FilterType[];
|
|
57
|
+
"Does Not Contain": FilterType[];
|
|
58
|
+
"Start With": FilterType[];
|
|
59
|
+
"Ends With": FilterType[];
|
|
60
|
+
"Is on": FilterType[];
|
|
61
|
+
"Is Not On": FilterType[];
|
|
62
|
+
"On or After": FilterType[];
|
|
63
|
+
"On or Before": FilterType[];
|
|
64
|
+
Is: FilterType[];
|
|
65
|
+
"Is Blank": FilterType[];
|
|
66
|
+
Or: FilterType[];
|
|
67
|
+
And: FilterType[];
|
|
68
|
+
In: FilterType[];
|
|
69
|
+
}>;
|
|
70
|
+
3: Partial<{
|
|
71
|
+
Equals: FilterType[];
|
|
72
|
+
"Does Not Equal": FilterType[];
|
|
73
|
+
"Greater Than": FilterType[];
|
|
74
|
+
"Less Than": FilterType[];
|
|
75
|
+
Between: FilterType[];
|
|
76
|
+
Contains: FilterType[];
|
|
77
|
+
"Does Not Contain": FilterType[];
|
|
78
|
+
"Start With": FilterType[];
|
|
79
|
+
"Ends With": FilterType[];
|
|
80
|
+
"Is on": FilterType[];
|
|
81
|
+
"Is Not On": FilterType[];
|
|
82
|
+
"On or After": FilterType[];
|
|
83
|
+
"On or Before": FilterType[];
|
|
84
|
+
Is: FilterType[];
|
|
85
|
+
"Is Blank": FilterType[];
|
|
86
|
+
Or: FilterType[];
|
|
87
|
+
And: FilterType[];
|
|
88
|
+
In: FilterType[];
|
|
89
|
+
}>;
|
|
90
|
+
4: Partial<{
|
|
91
|
+
Equals: FilterType[];
|
|
92
|
+
"Does Not Equal": FilterType[];
|
|
93
|
+
"Greater Than": FilterType[];
|
|
94
|
+
"Less Than": FilterType[];
|
|
95
|
+
Between: FilterType[];
|
|
96
|
+
Contains: FilterType[];
|
|
97
|
+
"Does Not Contain": FilterType[];
|
|
98
|
+
"Start With": FilterType[];
|
|
99
|
+
"Ends With": FilterType[];
|
|
100
|
+
"Is on": FilterType[];
|
|
101
|
+
"Is Not On": FilterType[];
|
|
102
|
+
"On or After": FilterType[];
|
|
103
|
+
"On or Before": FilterType[];
|
|
104
|
+
Is: FilterType[];
|
|
105
|
+
"Is Blank": FilterType[];
|
|
106
|
+
Or: FilterType[];
|
|
107
|
+
And: FilterType[];
|
|
108
|
+
In: FilterType[];
|
|
109
|
+
}>;
|
|
110
|
+
5: Partial<{
|
|
111
|
+
Equals: FilterType[];
|
|
112
|
+
"Does Not Equal": FilterType[];
|
|
113
|
+
"Greater Than": FilterType[];
|
|
114
|
+
"Less Than": FilterType[];
|
|
115
|
+
Between: FilterType[];
|
|
116
|
+
Contains: FilterType[];
|
|
117
|
+
"Does Not Contain": FilterType[];
|
|
118
|
+
"Start With": FilterType[];
|
|
119
|
+
"Ends With": FilterType[];
|
|
120
|
+
"Is on": FilterType[];
|
|
121
|
+
"Is Not On": FilterType[];
|
|
122
|
+
"On or After": FilterType[];
|
|
123
|
+
"On or Before": FilterType[];
|
|
124
|
+
Is: FilterType[];
|
|
125
|
+
"Is Blank": FilterType[];
|
|
126
|
+
Or: FilterType[];
|
|
127
|
+
And: FilterType[];
|
|
128
|
+
In: FilterType[];
|
|
129
|
+
}>;
|
|
130
|
+
6: Partial<{
|
|
131
|
+
Equals: FilterType[];
|
|
132
|
+
"Does Not Equal": FilterType[];
|
|
133
|
+
"Greater Than": FilterType[];
|
|
134
|
+
"Less Than": FilterType[];
|
|
135
|
+
Between: FilterType[];
|
|
136
|
+
Contains: FilterType[];
|
|
137
|
+
"Does Not Contain": FilterType[];
|
|
138
|
+
"Start With": FilterType[];
|
|
139
|
+
"Ends With": FilterType[];
|
|
140
|
+
"Is on": FilterType[];
|
|
141
|
+
"Is Not On": FilterType[];
|
|
142
|
+
"On or After": FilterType[];
|
|
143
|
+
"On or Before": FilterType[];
|
|
144
|
+
Is: FilterType[];
|
|
145
|
+
"Is Blank": FilterType[];
|
|
146
|
+
Or: FilterType[];
|
|
147
|
+
And: FilterType[];
|
|
148
|
+
In: FilterType[];
|
|
149
|
+
}>;
|
|
150
|
+
7: Partial<{
|
|
151
|
+
Equals: FilterType[];
|
|
152
|
+
"Does Not Equal": FilterType[];
|
|
153
|
+
"Greater Than": FilterType[];
|
|
154
|
+
"Less Than": FilterType[];
|
|
155
|
+
Between: FilterType[];
|
|
156
|
+
Contains: FilterType[];
|
|
157
|
+
"Does Not Contain": FilterType[];
|
|
158
|
+
"Start With": FilterType[];
|
|
159
|
+
"Ends With": FilterType[];
|
|
160
|
+
"Is on": FilterType[];
|
|
161
|
+
"Is Not On": FilterType[];
|
|
162
|
+
"On or After": FilterType[];
|
|
163
|
+
"On or Before": FilterType[];
|
|
164
|
+
Is: FilterType[];
|
|
165
|
+
"Is Blank": FilterType[];
|
|
166
|
+
Or: FilterType[];
|
|
167
|
+
And: FilterType[];
|
|
168
|
+
In: FilterType[];
|
|
169
|
+
}>;
|
|
170
|
+
8: Partial<{
|
|
171
|
+
Equals: FilterType[];
|
|
172
|
+
"Does Not Equal": FilterType[];
|
|
173
|
+
"Greater Than": FilterType[];
|
|
174
|
+
"Less Than": FilterType[];
|
|
175
|
+
Between: FilterType[];
|
|
176
|
+
Contains: FilterType[];
|
|
177
|
+
"Does Not Contain": FilterType[];
|
|
178
|
+
"Start With": FilterType[];
|
|
179
|
+
"Ends With": FilterType[];
|
|
180
|
+
"Is on": FilterType[];
|
|
181
|
+
"Is Not On": FilterType[];
|
|
182
|
+
"On or After": FilterType[];
|
|
183
|
+
"On or Before": FilterType[];
|
|
184
|
+
Is: FilterType[];
|
|
185
|
+
"Is Blank": FilterType[];
|
|
186
|
+
Or: FilterType[];
|
|
187
|
+
And: FilterType[];
|
|
188
|
+
In: FilterType[];
|
|
189
|
+
}>;
|
|
190
|
+
9: Partial<{
|
|
191
|
+
Equals: FilterType[];
|
|
192
|
+
"Does Not Equal": FilterType[];
|
|
193
|
+
"Greater Than": FilterType[];
|
|
194
|
+
"Less Than": FilterType[];
|
|
195
|
+
Between: FilterType[];
|
|
196
|
+
Contains: FilterType[];
|
|
197
|
+
"Does Not Contain": FilterType[];
|
|
198
|
+
"Start With": FilterType[];
|
|
199
|
+
"Ends With": FilterType[];
|
|
200
|
+
"Is on": FilterType[];
|
|
201
|
+
"Is Not On": FilterType[];
|
|
202
|
+
"On or After": FilterType[];
|
|
203
|
+
"On or Before": FilterType[];
|
|
204
|
+
Is: FilterType[];
|
|
205
|
+
"Is Blank": FilterType[];
|
|
206
|
+
Or: FilterType[];
|
|
207
|
+
And: FilterType[];
|
|
208
|
+
In: FilterType[];
|
|
209
|
+
}>;
|
|
210
|
+
10: Partial<{
|
|
211
|
+
Equals: FilterType[];
|
|
212
|
+
"Does Not Equal": FilterType[];
|
|
213
|
+
"Greater Than": FilterType[];
|
|
214
|
+
"Less Than": FilterType[];
|
|
215
|
+
Between: FilterType[];
|
|
216
|
+
Contains: FilterType[];
|
|
217
|
+
"Does Not Contain": FilterType[];
|
|
218
|
+
"Start With": FilterType[];
|
|
219
|
+
"Ends With": FilterType[];
|
|
220
|
+
"Is on": FilterType[];
|
|
221
|
+
"Is Not On": FilterType[];
|
|
222
|
+
"On or After": FilterType[];
|
|
223
|
+
"On or Before": FilterType[];
|
|
224
|
+
Is: FilterType[];
|
|
225
|
+
"Is Blank": FilterType[];
|
|
226
|
+
Or: FilterType[];
|
|
227
|
+
And: FilterType[];
|
|
228
|
+
In: FilterType[];
|
|
229
|
+
}>;
|
|
230
|
+
11: Partial<{
|
|
231
|
+
Equals: FilterType[];
|
|
232
|
+
"Does Not Equal": FilterType[];
|
|
233
|
+
"Greater Than": FilterType[];
|
|
234
|
+
"Less Than": FilterType[];
|
|
235
|
+
Between: FilterType[];
|
|
236
|
+
Contains: FilterType[];
|
|
237
|
+
"Does Not Contain": FilterType[];
|
|
238
|
+
"Start With": FilterType[];
|
|
239
|
+
"Ends With": FilterType[];
|
|
240
|
+
"Is on": FilterType[];
|
|
241
|
+
"Is Not On": FilterType[];
|
|
242
|
+
"On or After": FilterType[];
|
|
243
|
+
"On or Before": FilterType[];
|
|
244
|
+
Is: FilterType[];
|
|
245
|
+
"Is Blank": FilterType[];
|
|
246
|
+
Or: FilterType[];
|
|
247
|
+
And: FilterType[];
|
|
248
|
+
In: FilterType[];
|
|
249
|
+
}>;
|
|
250
|
+
12: Partial<{
|
|
251
|
+
Equals: FilterType[];
|
|
252
|
+
"Does Not Equal": FilterType[];
|
|
253
|
+
"Greater Than": FilterType[];
|
|
254
|
+
"Less Than": FilterType[];
|
|
255
|
+
Between: FilterType[];
|
|
256
|
+
Contains: FilterType[];
|
|
257
|
+
"Does Not Contain": FilterType[];
|
|
258
|
+
"Start With": FilterType[];
|
|
259
|
+
"Ends With": FilterType[];
|
|
260
|
+
"Is on": FilterType[];
|
|
261
|
+
"Is Not On": FilterType[];
|
|
262
|
+
"On or After": FilterType[];
|
|
263
|
+
"On or Before": FilterType[];
|
|
264
|
+
Is: FilterType[];
|
|
265
|
+
"Is Blank": FilterType[];
|
|
266
|
+
Or: FilterType[];
|
|
267
|
+
And: FilterType[];
|
|
268
|
+
In: FilterType[];
|
|
269
|
+
}>;
|
|
270
|
+
}, UnmappedTypes>;
|
|
271
|
+
FilterType: typeof FilterType;
|
|
272
|
+
FieldType: typeof FieldType;
|
|
273
|
+
filter: PartialFilter;
|
|
274
|
+
close: EventEmitter<any>;
|
|
275
|
+
currentFilterType?: FilterType;
|
|
276
|
+
constructor(state: TableStore);
|
|
277
|
+
ngOnInit(): void;
|
|
278
|
+
onEnter(filter: FilterInfo, event: any): void;
|
|
279
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent<any>, never>;
|
|
280
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent<any>, "tb-filter", never, { "filter": "filter"; }, { "close": "close"; }, never, never>;
|
|
281
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { TableStore } from '../../../classes/table-store';
|
|
5
|
+
import { Dictionary } from '../../../interfaces/dictionary';
|
|
6
|
+
import { FieldType, MetaData } from '../../../interfaces/report-def';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class InListFilterComponent implements ControlValueAccessor {
|
|
9
|
+
private ref;
|
|
10
|
+
private tableState;
|
|
11
|
+
constructor(ref: ChangeDetectorRef, tableState: TableStore);
|
|
12
|
+
value: string[];
|
|
13
|
+
FieldType: typeof FieldType;
|
|
14
|
+
writeValue(obj: string[]): void;
|
|
15
|
+
onChange: (_: any) => void;
|
|
16
|
+
registerOnChange(fn: any): void;
|
|
17
|
+
onTouched: () => void;
|
|
18
|
+
registerOnTouched(fn: any): void;
|
|
19
|
+
key: string;
|
|
20
|
+
keyValues$: Observable<Dictionary<string>>;
|
|
21
|
+
selectedKeys: string[];
|
|
22
|
+
metaData: MetaData;
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
selectFilterChanged($event: any, val: any): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InListFilterComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InListFilterComponent, "tb-in-list-filter", never, { "key": "key"; }, {}, never, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DisplayCol } from '../../classes/display-col';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { TableStore } from '../../classes/table-store';
|
|
4
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class GenColDisplayerComponent {
|
|
7
|
+
private tableState;
|
|
8
|
+
columns$: Observable<DisplayCol[]>;
|
|
9
|
+
constructor(tableState: TableStore);
|
|
10
|
+
reset(displayCols: DisplayCol[]): void;
|
|
11
|
+
drop(event: CdkDragDrop<string[]>): void;
|
|
12
|
+
unset(displayCols: DisplayCol[]): void;
|
|
13
|
+
emit(displayCols: DisplayCol[]): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenColDisplayerComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenColDisplayerComponent, "tb-col-displayer", never, {}, {}, never, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { SimpleChanges, OnInit, QueryList, ComponentFactoryResolver, ViewContainerRef, ElementRef, ComponentFactory, Injector } from '@angular/core';
|
|
2
|
+
import { MatSort } from '@angular/material/sort';
|
|
3
|
+
import { MatRowDef, MatTable } from '@angular/material/table';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
6
|
+
import { TableStore } from '../../classes/table-store';
|
|
7
|
+
import { ColumnBuilderComponent } from '../column-builder/column-builder.component';
|
|
8
|
+
import { Dictionary } from '../../interfaces/dictionary';
|
|
9
|
+
import { GenericTableDataSource } from '../../classes/GenericTableDataSource';
|
|
10
|
+
import { ColumnInfo } from '../../interfaces/ColumnInfo';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class GenericTableComponent implements OnInit {
|
|
13
|
+
private sort;
|
|
14
|
+
state: TableStore;
|
|
15
|
+
private viewContainer;
|
|
16
|
+
data$: Observable<any[]>;
|
|
17
|
+
IndexColumn: boolean;
|
|
18
|
+
SelectionColumn: boolean;
|
|
19
|
+
trackBy: string;
|
|
20
|
+
rows: QueryList<MatRowDef<any>>;
|
|
21
|
+
isSticky: boolean;
|
|
22
|
+
columnBuilders: ColumnBuilderComponent[];
|
|
23
|
+
columnInfos: Observable<ColumnInfo[]>;
|
|
24
|
+
table: MatTable<any>;
|
|
25
|
+
tableElRef: ElementRef;
|
|
26
|
+
currentColumns: string[];
|
|
27
|
+
dataSource: GenericTableDataSource<any>;
|
|
28
|
+
keys: string[];
|
|
29
|
+
factory: ComponentFactory<ColumnBuilderComponent>;
|
|
30
|
+
injector: Injector;
|
|
31
|
+
constructor(sort: MatSort, state: TableStore, componentFactoryResolver: ComponentFactoryResolver, viewContainer: ViewContainerRef, injector: Injector);
|
|
32
|
+
trackByFunction: (index: number, item: any) => any;
|
|
33
|
+
rowDefArr: MatRowDef<any>[];
|
|
34
|
+
columns: string[];
|
|
35
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
createDataSource(): void;
|
|
38
|
+
myColumns: Dictionary<ColumnBuilderComponent>;
|
|
39
|
+
addMetaData(column: ColumnInfo): void;
|
|
40
|
+
initializeRowDefs: (defs: MatRowDef<any>[]) => void;
|
|
41
|
+
selection: SelectionModel<any>;
|
|
42
|
+
selection$: Observable<any>;
|
|
43
|
+
masterToggleChecked$: Observable<boolean>;
|
|
44
|
+
masterToggleIndeterminate$: Observable<boolean>;
|
|
45
|
+
isAllSelected(): boolean;
|
|
46
|
+
/** Selects all rows if they are not all selected; otherwise clear selection. */
|
|
47
|
+
masterToggle(): void;
|
|
48
|
+
defVal: number | undefined;
|
|
49
|
+
tableWidth: Observable<{
|
|
50
|
+
width: string;
|
|
51
|
+
} | {
|
|
52
|
+
width?: undefined;
|
|
53
|
+
}>;
|
|
54
|
+
collapseFooter$: Observable<boolean>;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericTableComponent, never>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericTableComponent, "tb-generic-table", never, { "data$": "data$"; "IndexColumn": "IndexColumn"; "SelectionColumn": "SelectionColumn"; "trackBy": "trackBy"; "rows": "rows"; "isSticky": "isSticky"; "columnBuilders": "columnBuilders"; "columnInfos": "columnInfos"; }, { "selection$": "selection$"; }, never, never>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, OnInit } from '@angular/core';
|
|
2
|
+
import { MatPaginator } from '@angular/material/paginator';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { GenericTableDataSource } from '../../classes/GenericTableDataSource';
|
|
5
|
+
import { TableStore } from '../../classes/table-store';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class PaginatorComponent implements OnInit, AfterViewInit {
|
|
8
|
+
private state;
|
|
9
|
+
dataSource: GenericTableDataSource<any>;
|
|
10
|
+
tableElRef: ElementRef;
|
|
11
|
+
paginator: MatPaginator;
|
|
12
|
+
currentPageData$: Observable<CurrentPageDetails>;
|
|
13
|
+
collapseFooter$: Observable<boolean>;
|
|
14
|
+
data$: Observable<any[]>;
|
|
15
|
+
constructor(state: TableStore);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
ngAfterViewInit(): void;
|
|
18
|
+
paginatorChange(): void;
|
|
19
|
+
ourPageEvent: boolean;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatorComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginatorComponent, "tb-paginator", never, { "dataSource": "dataSource"; "tableElRef": "tableElRef"; "data$": "data$"; }, {}, never, never>;
|
|
22
|
+
}
|
|
23
|
+
interface CurrentPageDetails {
|
|
24
|
+
currentStart: number;
|
|
25
|
+
currentEnd: number;
|
|
26
|
+
total: number;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FieldType, MetaData } from '../../interfaces/report-def';
|
|
2
|
+
import { FilterType } from '../../enums/filterTypes';
|
|
3
|
+
import { FilterInfo } from '../../classes/filter-info';
|
|
4
|
+
import { TableStore } from '../../classes/table-store';
|
|
5
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class HeaderMenuComponent {
|
|
8
|
+
tableState: TableStore;
|
|
9
|
+
FieldType: typeof FieldType;
|
|
10
|
+
FilterType: typeof FilterType;
|
|
11
|
+
myFilterType: FilterType;
|
|
12
|
+
myFilterValue: any;
|
|
13
|
+
filter: Partial<FilterInfo>;
|
|
14
|
+
metaData: MetaData;
|
|
15
|
+
trigger: MatMenuTrigger;
|
|
16
|
+
constructor(tableState: TableStore);
|
|
17
|
+
hideField(key: string): void;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
resetFilterType(): void;
|
|
20
|
+
setStringFilterType(): void;
|
|
21
|
+
setFilterType(filterType: FilterType): void;
|
|
22
|
+
onEnter(filter: FilterInfo): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderMenuComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderMenuComponent, "tb-header-menu", never, { "filter": "filter"; "metaData": "metaData"; }, {}, never, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { FieldType } from '../../interfaces/report-def';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InFilterComponent implements ControlValueAccessor {
|
|
6
|
+
private ref;
|
|
7
|
+
FieldType: typeof FieldType;
|
|
8
|
+
type: FieldType;
|
|
9
|
+
value: any[];
|
|
10
|
+
constructor(ref: ChangeDetectorRef);
|
|
11
|
+
writeValue(obj: any[]): void;
|
|
12
|
+
onChange: (_: any) => void;
|
|
13
|
+
registerOnChange(fn: any): void;
|
|
14
|
+
onTouched: () => void;
|
|
15
|
+
registerOnTouched(fn: any): void;
|
|
16
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
17
|
+
addInput(): void;
|
|
18
|
+
removeInput(index: number): void;
|
|
19
|
+
onValueChange(i: number, value: number | string): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InFilterComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InFilterComponent, "lib-in-filter", never, { "type": "type"; }, {}, never, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './date-filter/date-filter.component';
|
|
2
|
+
export * from './filter/filter.component';
|
|
3
|
+
export * from './gen-col-displayer/gen-col-displayer.component';
|
|
4
|
+
export * from './table-container-filter/gen-filter-displayer/gen-filter-displayer.component';
|
|
5
|
+
export * from './table-container-filter/filter-list/filter-list.component';
|
|
6
|
+
export * from './generic-table/generic-table.component';
|
|
7
|
+
export * from './table-container/table-container';
|
|
8
|
+
export * from './generic-table/paginator.component';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TemplateRef } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class InitializationComponent {
|
|
4
|
+
booleanTemplate: TemplateRef<any>;
|
|
5
|
+
linkTemplate: TemplateRef<any>;
|
|
6
|
+
imageUrlTemplate: TemplateRef<any>;
|
|
7
|
+
currencyTemplate: TemplateRef<any>;
|
|
8
|
+
arrayTemplate: TemplateRef<any>;
|
|
9
|
+
expressionTemplate: TemplateRef<any>;
|
|
10
|
+
defaultTemplate: TemplateRef<any>;
|
|
11
|
+
enumTemplate: TemplateRef<any>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InitializationComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InitializationComponent, "ng-component", never, {}, {}, never, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FilterType } from '../../enums/filterTypes';
|
|
2
|
+
import { PartialFilter } from '../../classes/filter-info';
|
|
3
|
+
import { FieldType } from '../../interfaces/report-def';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NumberFilterComponent {
|
|
6
|
+
FilterType: typeof FilterType;
|
|
7
|
+
FieldType: typeof FieldType;
|
|
8
|
+
CurrentFilterType: FilterType;
|
|
9
|
+
info: PartialFilter;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumberFilterComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberFilterComponent, "tb-number-filter", never, { "CurrentFilterType": "CurrentFilterType"; "info": "info"; }, {}, never, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Sort } from '@angular/material/sort';
|
|
2
|
+
import { ComponentStore } from '@ngrx/component-store';
|
|
3
|
+
import { TableStore } from '../../classes/table-store';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SortMenuComponentStore extends ComponentStore<ComponenStoreState> {
|
|
6
|
+
private tableState;
|
|
7
|
+
constructor(tableState: TableStore);
|
|
8
|
+
private set;
|
|
9
|
+
setSorted: (observableOrValue: SortWithName[] | import("rxjs").Observable<SortWithName[]>) => import("rxjs").Subscription;
|
|
10
|
+
setNotSorted: (observableOrValue: SortWithName[] | import("rxjs").Observable<SortWithName[]>) => import("rxjs").Subscription;
|
|
11
|
+
sorted$: import("rxjs").Observable<SortWithName[]>;
|
|
12
|
+
notSorted$: import("rxjs").Observable<SortWithName[]>;
|
|
13
|
+
setDirection: (observableOrValue: SortWithName | import("rxjs").Observable<SortWithName>) => import("rxjs").Subscription;
|
|
14
|
+
reset: () => void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortMenuComponentStore, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SortMenuComponentStore>;
|
|
17
|
+
}
|
|
18
|
+
export interface ComponenStoreState {
|
|
19
|
+
sorted: SortWithName[];
|
|
20
|
+
notSorted: SortWithName[];
|
|
21
|
+
}
|
|
22
|
+
export interface SortWithName extends Sort {
|
|
23
|
+
displayName: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { TableStore } from '../../classes/table-store';
|
|
6
|
+
import { SortDirection } from '../../interfaces/report-def';
|
|
7
|
+
import { SortMenuComponentStore, SortWithName } from './sort-menu.component-store';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class SortMenuComponent implements OnInit {
|
|
10
|
+
private tableState;
|
|
11
|
+
store: SortMenuComponentStore;
|
|
12
|
+
sorted$: Observable<SortWithName[]>;
|
|
13
|
+
notSorted$: Observable<SortWithName[]>;
|
|
14
|
+
SortDirection: typeof SortDirection;
|
|
15
|
+
dirty$: BehaviorSubject<boolean>;
|
|
16
|
+
constructor(tableState: TableStore, store: SortMenuComponentStore);
|
|
17
|
+
reset(): void;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
dropIntoSorted(event: CdkDragDrop<SortWithName[]>): void;
|
|
20
|
+
dropIntoNotSorted(event: CdkDragDrop<SortWithName[]>): void;
|
|
21
|
+
apply: (observableOrValue: Observable<null> | null) => import("rxjs").Subscription;
|
|
22
|
+
setDirection(sort: SortWithName): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortMenuComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SortMenuComponent, "tb-sort-menu", never, {}, {}, never, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { EventEmitter, QueryList } from '@angular/core';
|
|
2
|
+
import { Observable, ReplaySubject } from 'rxjs';
|
|
3
|
+
import { MetaData } from '../../interfaces/report-def';
|
|
4
|
+
import { TableBuilder } from '../../classes/table-builder';
|
|
5
|
+
import { MatRowDef } from '@angular/material/table';
|
|
6
|
+
import { CustomCellDirective } from '../../directives';
|
|
7
|
+
import { TableStore } from '../../classes/table-store';
|
|
8
|
+
import { ExportToCsvService } from '../../services/export-to-csv.service';
|
|
9
|
+
import { TableBuilderConfig } from '../../classes/TableBuilderConfig';
|
|
10
|
+
import { Store } from '@ngrx/store';
|
|
11
|
+
import { PersistedTableState } from '../../classes/TableState';
|
|
12
|
+
import { ColumnInfo } from '../../interfaces/ColumnInfo';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class TableContainerComponent<T = any> {
|
|
15
|
+
state: TableStore;
|
|
16
|
+
exportToCsvService: ExportToCsvService<T>;
|
|
17
|
+
private config;
|
|
18
|
+
private store;
|
|
19
|
+
tableId: string;
|
|
20
|
+
SaveState: boolean;
|
|
21
|
+
tableBuilder: TableBuilder;
|
|
22
|
+
IndexColumn: boolean;
|
|
23
|
+
SelectionColumn: boolean;
|
|
24
|
+
trackBy: string;
|
|
25
|
+
isSticky: boolean;
|
|
26
|
+
set pageSize(value: number);
|
|
27
|
+
inputFilters: Observable<Array<(val: T) => boolean>>;
|
|
28
|
+
selection$: EventEmitter<any>;
|
|
29
|
+
dataSubject: ReplaySubject<Observable<T[]>>;
|
|
30
|
+
data: Observable<T[]>;
|
|
31
|
+
customRows: QueryList<MatRowDef<any>>;
|
|
32
|
+
customCells: QueryList<CustomCellDirective>;
|
|
33
|
+
OnStateReset: EventEmitter<any>;
|
|
34
|
+
OnSaveState: EventEmitter<any>;
|
|
35
|
+
state$: Observable<PersistedTableState>;
|
|
36
|
+
myColumns$: Observable<ColumnInfo[]>;
|
|
37
|
+
stateKeys$?: Observable<string[] | null>;
|
|
38
|
+
currentStateKey$?: Observable<string>;
|
|
39
|
+
constructor(state: TableStore, exportToCsvService: ExportToCsvService<T>, config: TableBuilderConfig, store: Store<any>);
|
|
40
|
+
ngOnInit(): void;
|
|
41
|
+
exportToCsv(): void;
|
|
42
|
+
saveState(): void;
|
|
43
|
+
setProfileState(val: string): void;
|
|
44
|
+
deleteProfileState(stateKey: string): void;
|
|
45
|
+
ngAfterContentInit(): void;
|
|
46
|
+
InitializeColumns(): void;
|
|
47
|
+
mapMetaDatas: (meta: MetaData<T>) => MetaData<T>;
|
|
48
|
+
cleanStateOnInitialLoad: () => (obs: Observable<PersistedTableState>) => Observable<{
|
|
49
|
+
filters: any;
|
|
50
|
+
sorted: import("@angular/material/sort").Sort[];
|
|
51
|
+
hiddenKeys?: string[] | undefined;
|
|
52
|
+
pageSize?: number | undefined;
|
|
53
|
+
userDefined: {
|
|
54
|
+
order: import("../../interfaces/dictionary").Dictionary<number>;
|
|
55
|
+
widths: import("../../interfaces/dictionary").Dictionary<number>;
|
|
56
|
+
table: {
|
|
57
|
+
width?: number | undefined;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
persistedTableSettings: import("../../classes/table-builder-general-settings").PesrsistedTableSettings;
|
|
61
|
+
}>;
|
|
62
|
+
collapseHeader$: Observable<boolean>;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableContainerComponent<any>, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableContainerComponent<any>, "tb-table-container", never, { "tableId": "tableId"; "SaveState": "SaveState"; "tableBuilder": "tableBuilder"; "IndexColumn": "IndexColumn"; "SelectionColumn": "SelectionColumn"; "trackBy": "trackBy"; "isSticky": "isSticky"; "pageSize": "pageSize"; "inputFilters": "inputFilters"; }, { "selection$": "selection$"; "data": "data"; "OnStateReset": "OnStateReset"; "OnSaveState": "OnSaveState"; "state$": "state$"; }, ["customRows", "customCells"], [".tb-header-title"]>;
|
|
65
|
+
}
|
package/table-builder/components/table-container-filter/filter-list/filter-list.component.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TableStore } from '../../../classes/table-store';
|
|
2
|
+
import { FilterInfo } from '../../../classes/filter-info';
|
|
3
|
+
import { WrapperFilterStore } from '../table-wrapper-filter-store';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FilterChipsComponent {
|
|
7
|
+
tableState: TableStore;
|
|
8
|
+
private filterStore;
|
|
9
|
+
constructor(tableState: TableStore, filterStore: WrapperFilterStore);
|
|
10
|
+
filters$: Observable<FilterInfo<any>[]>;
|
|
11
|
+
deleteByIndex(index: number): void;
|
|
12
|
+
addFilter(filter: FilterInfo<any>): void;
|
|
13
|
+
clearAll(): void;
|
|
14
|
+
currentFilters$: Observable<import("../../../classes/filter-info").PartialFilter<any>[]>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterChipsComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterChipsComponent, "lib-filter-list", never, {}, {}, never, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MetaData } from '../../../interfaces/report-def';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { TableStore } from '../../../classes/table-store';
|
|
4
|
+
import { WrapperFilterStore } from '../table-wrapper-filter-store';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class GenFilterDisplayerComponent {
|
|
7
|
+
tableState: TableStore;
|
|
8
|
+
filterStore: WrapperFilterStore;
|
|
9
|
+
constructor(tableState: TableStore, filterStore: WrapperFilterStore);
|
|
10
|
+
filterCols$: Observable<MetaData[]>;
|
|
11
|
+
addFilter(metaData: MetaData): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenFilterDisplayerComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenFilterDisplayerComponent, "tb-filter-displayer", never, {}, {}, never, never>;
|
|
14
|
+
}
|