@qrvey/filters 0.0.13 → 0.0.15
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 +12 -0
- package/dist/cjs/classes/FilterAdapter.d.ts +2 -1
- package/dist/cjs/classes/FilterAdapter.d.ts.map +1 -1
- package/dist/cjs/classes/FilterAdapter.js +8 -6
- package/dist/cjs/classes/FilterManager.d.ts +8 -3
- package/dist/cjs/classes/FilterManager.d.ts.map +1 -1
- package/dist/cjs/classes/FilterManager.js +14 -6
- package/dist/cjs/classes/FilterSettings.d.ts +1 -0
- package/dist/cjs/classes/FilterSettings.d.ts.map +1 -0
- package/dist/cjs/classes/FilterSettings.js +1 -0
- package/dist/cjs/helpers/filter-adapt.helpers.d.ts +7 -13
- package/dist/cjs/helpers/filter-adapt.helpers.d.ts.map +1 -1
- package/dist/cjs/helpers/filter-adapt.helpers.js +31 -183
- package/dist/cjs/helpers/filter-adapt.legacy.helpers.d.ts +26 -0
- package/dist/cjs/helpers/filter-adapt.legacy.helpers.d.ts.map +1 -0
- package/dist/cjs/helpers/filter-adapt.legacy.helpers.js +229 -0
- package/dist/cjs/helpers/filter-adapt.logic.helpers.js +1 -1
- package/dist/cjs/resources/filter-logic.resources.d.ts +0 -4
- package/dist/cjs/resources/filter-logic.resources.d.ts.map +1 -1
- package/dist/cjs/resources/filter-panel.interfaces.d.ts +57 -4
- package/dist/cjs/resources/filter-panel.interfaces.d.ts.map +1 -1
- package/dist/cjs/resources/filter-settings.resources.d.ts +357 -0
- package/dist/cjs/resources/filter-settings.resources.d.ts.map +1 -0
- package/dist/cjs/resources/filter-settings.resources.js +2 -0
- package/dist/cjs/resources/filter-visual.resources.d.ts +0 -8
- package/dist/cjs/resources/filter-visual.resources.d.ts.map +1 -1
- package/dist/cjs/resources/filters.resources.d.ts +2 -0
- package/dist/cjs/resources/filters.resources.d.ts.map +1 -1
- package/dist/classes/FilterAdapter.d.ts +2 -1
- package/dist/classes/FilterAdapter.d.ts.map +1 -1
- package/dist/classes/FilterAdapter.js +7 -5
- package/dist/classes/FilterManager.d.ts +8 -3
- package/dist/classes/FilterManager.d.ts.map +1 -1
- package/dist/classes/FilterManager.js +14 -6
- package/dist/classes/FilterSettings.d.ts +1 -0
- package/dist/classes/FilterSettings.d.ts.map +1 -0
- package/dist/classes/FilterSettings.js +1 -0
- package/dist/helpers/filter-adapt.helpers.d.ts +7 -13
- package/dist/helpers/filter-adapt.helpers.d.ts.map +1 -1
- package/dist/helpers/filter-adapt.helpers.js +30 -181
- package/dist/helpers/filter-adapt.legacy.helpers.d.ts +26 -0
- package/dist/helpers/filter-adapt.legacy.helpers.d.ts.map +1 -0
- package/dist/helpers/filter-adapt.legacy.helpers.js +223 -0
- package/dist/helpers/filter-adapt.logic.helpers.js +1 -1
- package/dist/resources/filter-logic.resources.d.ts +0 -4
- package/dist/resources/filter-logic.resources.d.ts.map +1 -1
- package/dist/resources/filter-panel.interfaces.d.ts +57 -4
- package/dist/resources/filter-panel.interfaces.d.ts.map +1 -1
- package/dist/resources/filter-settings.resources.d.ts +357 -0
- package/dist/resources/filter-settings.resources.d.ts.map +1 -0
- package/dist/resources/filter-settings.resources.js +1 -0
- package/dist/resources/filter-visual.resources.d.ts +0 -8
- package/dist/resources/filter-visual.resources.d.ts.map +1 -1
- package/dist/resources/filters.resources.d.ts +2 -0
- package/dist/resources/filters.resources.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/classes/FilterAdapter.ts +13 -7
- package/src/classes/FilterManager.ts +13 -4
- package/src/helpers/filter-adapt.helpers.ts +36 -242
- package/src/helpers/filter-adapt.legacy.helpers.ts +296 -0
- package/src/helpers/filter-adapt.logic.helpers.ts +1 -1
- package/src/resources/filter-logic.resources.ts +0 -4
- package/src/resources/filter-panel.interfaces.ts +58 -4
- package/src/resources/filter-visual.resources.ts +0 -8
- package/src/resources/filters.resources.ts +2 -0
- package/tests/mock/filters-adapter.mock.ts +0 -7
- package/tests/mock/filters-interactive-table.mock.ts +14 -18
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { IFilterScope } from "./filter-scopes.resources";
|
|
2
|
+
/**
|
|
3
|
+
* The structure for the filter settings
|
|
4
|
+
*/
|
|
5
|
+
export interface IFilterSettings {
|
|
6
|
+
/**
|
|
7
|
+
* Settings related to the AN Panel
|
|
8
|
+
*/
|
|
9
|
+
chart?: IFilterSettingsChart;
|
|
10
|
+
/**
|
|
11
|
+
* Settings related to the builder
|
|
12
|
+
*/
|
|
13
|
+
builder?: IFilterSettingsBuilder;
|
|
14
|
+
/**
|
|
15
|
+
* Settings related to the panel
|
|
16
|
+
*/
|
|
17
|
+
panel?: IFilterSettingsPanel;
|
|
18
|
+
/**
|
|
19
|
+
* Each Scope Settings
|
|
20
|
+
*/
|
|
21
|
+
scopes?: IFilterSettingsScope[];
|
|
22
|
+
/**
|
|
23
|
+
* Settings related to the Settings Section
|
|
24
|
+
*/
|
|
25
|
+
settings?: IFilterSettingsSettings;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Structure for the Charts settings
|
|
29
|
+
*/
|
|
30
|
+
interface IFilterSettingsChart {
|
|
31
|
+
/**
|
|
32
|
+
* Add Filter access is displayed/hidden
|
|
33
|
+
*/
|
|
34
|
+
addFilterDisplayed?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The Add Filter access is enabled/disabled to execute
|
|
37
|
+
*/
|
|
38
|
+
addFilterEnabled?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Displays/Hides the Filter Section
|
|
41
|
+
*/
|
|
42
|
+
filterSectionDisplayed?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Displays/Hides the Filter By action
|
|
45
|
+
*/
|
|
46
|
+
filterByDisplayed?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Enables/Disables the Filter By action
|
|
49
|
+
*/
|
|
50
|
+
filterByEnabled?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Displays/Hides the See Data action
|
|
53
|
+
*/
|
|
54
|
+
seeDataDisplayed?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Displays/Hides the See Data action
|
|
57
|
+
*/
|
|
58
|
+
seeDataEnabled?: boolean;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Structure for the Filter Builder settings
|
|
62
|
+
*/
|
|
63
|
+
interface IFilterSettingsBuilder {
|
|
64
|
+
/**
|
|
65
|
+
* Displays/Hides the scope selector
|
|
66
|
+
*/
|
|
67
|
+
scopeSelectorDisplayed?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Enables/Disables the scope selector to execute
|
|
70
|
+
*/
|
|
71
|
+
scopeSelectorEnabled?: boolean;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Structure for a single scope settings
|
|
75
|
+
*/
|
|
76
|
+
interface IFilterSettingsScope {
|
|
77
|
+
/**
|
|
78
|
+
* Flag for validating a scope can collapse/expand.
|
|
79
|
+
*/
|
|
80
|
+
canCollapse?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* The scope section should be collapsed/expanded.
|
|
83
|
+
*/
|
|
84
|
+
collapsed?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Hexadecimal/Rgba/Name color to be applied in the scope
|
|
87
|
+
*/
|
|
88
|
+
color?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Allows to display the related color in the scope
|
|
91
|
+
*/
|
|
92
|
+
colorized?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Displays/Hides the creating option
|
|
95
|
+
*/
|
|
96
|
+
createDisplayed?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Enables/Disables the creating option
|
|
99
|
+
*/
|
|
100
|
+
createEnabled?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Displays the color picker settings
|
|
103
|
+
*/
|
|
104
|
+
colorPickerDisplayed?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Displays/Hides the Deleting option
|
|
107
|
+
*/
|
|
108
|
+
deleteDisplayed?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Enables/Disables the Deleting option
|
|
111
|
+
*/
|
|
112
|
+
deleteEnabled?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Displays/Hides the scope. The filters are still applied.
|
|
115
|
+
*/
|
|
116
|
+
displayed?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Displays/Hides the Edit option
|
|
119
|
+
*/
|
|
120
|
+
editDisplayed?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Enables/Disables the Editing option
|
|
123
|
+
*/
|
|
124
|
+
editEnabled?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Displays/Hides the Enabling option
|
|
127
|
+
*/
|
|
128
|
+
enableDisplayed?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Enables/Disables the Enabling option
|
|
131
|
+
*/
|
|
132
|
+
enableEnabled?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Icon code string
|
|
135
|
+
*/
|
|
136
|
+
icon?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Displays/Hides the icons linked with each scope
|
|
139
|
+
*/
|
|
140
|
+
iconsDisplayed?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* An Alias for this scope
|
|
143
|
+
*/
|
|
144
|
+
label?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Any event could (not) be executed in the scope.
|
|
147
|
+
*/
|
|
148
|
+
readonly?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* The Scope Type
|
|
151
|
+
*/
|
|
152
|
+
scope: IFilterScope;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* The structure for the Panel
|
|
156
|
+
*/
|
|
157
|
+
interface IFilterSettingsPanel {
|
|
158
|
+
/**
|
|
159
|
+
* Displays/Hides the Add Filter button.
|
|
160
|
+
*/
|
|
161
|
+
addFilterDisplayed?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Enables/Disables the Add Filter button
|
|
164
|
+
*/
|
|
165
|
+
addFilterEnabled?: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* Displays/Hides the Delete All Filters option.
|
|
168
|
+
*/
|
|
169
|
+
allDeleteDisplayed?: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Enables/Disables the Delete All Filters option.
|
|
172
|
+
*/
|
|
173
|
+
allDeleteEnabled?: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Displays/Hides the Enable All Filters option.
|
|
176
|
+
*/
|
|
177
|
+
allEnableDisplayed?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Enables/Disables the Enable All Filters option.
|
|
180
|
+
*/
|
|
181
|
+
allEnableEnabled?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Displays/Hides the color of each sections
|
|
184
|
+
*/
|
|
185
|
+
colorized?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* the Dataset section settings
|
|
188
|
+
*/
|
|
189
|
+
dataset?: IFilterSettingsPanelDataset;
|
|
190
|
+
/**
|
|
191
|
+
* The Filter Panel is rendered/hidden
|
|
192
|
+
*/
|
|
193
|
+
displayed?: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* the Filter section settings
|
|
196
|
+
*/
|
|
197
|
+
filter?: IFilterSettingsPanelFilter;
|
|
198
|
+
/**
|
|
199
|
+
* Displays/Hides the Panel header.
|
|
200
|
+
*/
|
|
201
|
+
headerDisplayed?: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* the Operator section settings
|
|
204
|
+
*/
|
|
205
|
+
operator?: IFilterSettingsPanelOperator;
|
|
206
|
+
/**
|
|
207
|
+
* Any event could (not) be executed.
|
|
208
|
+
*/
|
|
209
|
+
readonly?: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* Displays/Hides the Settings button
|
|
212
|
+
*/
|
|
213
|
+
settingsDisplayed?: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Enables/Disables the Settings button
|
|
216
|
+
*/
|
|
217
|
+
settingsEnabled?: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Displayes/Hides the subtitle of the Filter Panel
|
|
220
|
+
*/
|
|
221
|
+
subTitleDisplayed?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Displayes/Hides the title of the Filter Panel
|
|
224
|
+
*/
|
|
225
|
+
titleDisplayed?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* the Scope section settings
|
|
228
|
+
*/
|
|
229
|
+
scope?: IFilterSettingsPanelScope;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Structure for the Panel Dataset sections settings
|
|
233
|
+
*/
|
|
234
|
+
interface IFilterSettingsPanelDataset {
|
|
235
|
+
/**
|
|
236
|
+
* Validates if the dataset sections can be collapsed/expanded
|
|
237
|
+
*/
|
|
238
|
+
canCollapse?: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* Displays/Hides the Dataset headers
|
|
241
|
+
*/
|
|
242
|
+
headerDisplayed?: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* The icon is displayed/hidden
|
|
245
|
+
*/
|
|
246
|
+
iconDisplayed?: boolean;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Structure for the Panel Filter sections settings
|
|
250
|
+
*/
|
|
251
|
+
interface IFilterSettingsPanelFilter {
|
|
252
|
+
/**
|
|
253
|
+
* Validates if the filters can be collapsed/expanded
|
|
254
|
+
*/
|
|
255
|
+
canCollapse?: boolean;
|
|
256
|
+
/**
|
|
257
|
+
* Displays/Hides the Delete option.
|
|
258
|
+
*/
|
|
259
|
+
deleteDisplayed?: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* Enables/Disables the Delete option.
|
|
262
|
+
*/
|
|
263
|
+
deleteEnabled?: boolean;
|
|
264
|
+
/**
|
|
265
|
+
* Displays/Hides the Edit option.
|
|
266
|
+
*/
|
|
267
|
+
editDisplayed?: boolean;
|
|
268
|
+
/**
|
|
269
|
+
* Enables/Disables the Edit option.
|
|
270
|
+
*/
|
|
271
|
+
editEnabled?: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* Displays/Hides the Enable option.
|
|
274
|
+
*/
|
|
275
|
+
enableDisplayed?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Enables/Disables the Enable option.
|
|
278
|
+
*/
|
|
279
|
+
enableEnabled?: boolean;
|
|
280
|
+
/**
|
|
281
|
+
* The icon is displayed/hidden
|
|
282
|
+
*/
|
|
283
|
+
iconDisplayed?: boolean;
|
|
284
|
+
/**
|
|
285
|
+
* Any event could (not) be executed in the filter sections.
|
|
286
|
+
*/
|
|
287
|
+
readonly?: boolean;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Structure for the Panel Scope sections settings
|
|
291
|
+
*/
|
|
292
|
+
interface IFilterSettingsPanelScope {
|
|
293
|
+
/**
|
|
294
|
+
* Validates if the dataset sections can be collapsed/expanded
|
|
295
|
+
*/
|
|
296
|
+
canCollapse?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* Displays/Hides the Scope Headers.
|
|
299
|
+
*/
|
|
300
|
+
headerDisplayed?: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* The icon is displayed/hidden
|
|
303
|
+
*/
|
|
304
|
+
iconDisplayed?: boolean;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Structure for the Filter Panel operator sections
|
|
308
|
+
*/
|
|
309
|
+
interface IFilterSettingsPanelOperator {
|
|
310
|
+
/**
|
|
311
|
+
* Displays/Hides the operator section.
|
|
312
|
+
*/
|
|
313
|
+
displayed?: boolean;
|
|
314
|
+
/**
|
|
315
|
+
* Any event could (not) be executed in the operator sections.
|
|
316
|
+
*/
|
|
317
|
+
readonly?: boolean;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Structure for the Settings of the filter panel settings section
|
|
321
|
+
*/
|
|
322
|
+
interface IFilterSettingsSettings {
|
|
323
|
+
/**
|
|
324
|
+
* Displays/Hides the Display Color Code setting
|
|
325
|
+
*/
|
|
326
|
+
displayColorModeDisplayed?: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* Enables/Disables the Display Color Code setting
|
|
329
|
+
*/
|
|
330
|
+
displayColorModeEnabled?: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* Displays/Hides the Display Icons setting
|
|
333
|
+
*/
|
|
334
|
+
displayIconsDisplayed?: boolean;
|
|
335
|
+
/**
|
|
336
|
+
* Enables/Disables the Display Icons setting
|
|
337
|
+
*/
|
|
338
|
+
displayIconsEnabled?: boolean;
|
|
339
|
+
/**
|
|
340
|
+
* Displays/Hides the Panel Default view setting
|
|
341
|
+
*/
|
|
342
|
+
panelDefaultViewDisplayed?: boolean;
|
|
343
|
+
/**
|
|
344
|
+
* Enables/Disables the Panel Default view setting
|
|
345
|
+
*/
|
|
346
|
+
panelDefaultViewEnabled?: boolean;
|
|
347
|
+
/**
|
|
348
|
+
* Displays/Hides the Show Panel in Page View setting
|
|
349
|
+
*/
|
|
350
|
+
showPanelInPageViewDisplayed?: boolean;
|
|
351
|
+
/**
|
|
352
|
+
* Enables/Disables the Show Panel in Page View setting
|
|
353
|
+
*/
|
|
354
|
+
showPanelInPageViewEnabled?: boolean;
|
|
355
|
+
}
|
|
356
|
+
export {};
|
|
357
|
+
//# sourceMappingURL=filter-settings.resources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-settings.resources.d.ts","sourceRoot":"","sources":["../../../src/resources/filter-settings.resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,uBAAuB,CAAC;C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AC;IACpC;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;OAEG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC;;OAEG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC"}
|
|
@@ -15,14 +15,6 @@ interface IFilterVisualGeneral {
|
|
|
15
15
|
* Flag to collapse
|
|
16
16
|
*/
|
|
17
17
|
collapsed: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Flag to apply
|
|
20
|
-
*/
|
|
21
|
-
enabled: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Flag to display
|
|
24
|
-
*/
|
|
25
|
-
displayed: boolean;
|
|
26
18
|
}
|
|
27
19
|
/**
|
|
28
20
|
* Structure for the visual filter scopes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-visual.resources.d.ts","sourceRoot":"","sources":["../../../src/resources/filter-visual.resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAkB,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,kBAAkB,EAAE,CAAC;CAC9B;AAED,UAAU,oBAAoB;IAC5B;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"filter-visual.resources.d.ts","sourceRoot":"","sources":["../../../src/resources/filter-visual.resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAkB,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,kBAAkB,EAAE,CAAC;CAC9B;AAED,UAAU,oBAAoB;IAC5B;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,oBAAoB;IAC9D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,oBAAoB,EAAE,CAAC;IACjC;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;IACpB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE;;OAEG;IACH,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,SAAU,SAAQ,OAAO;IACxC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,iBAAiB,EAAE,SAK/B,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { IAggregateType, IColumnType, IFUData } from "@qrvey/utils";
|
|
|
2
2
|
import { IFilterGrouping } from "./filter-grouping.resources";
|
|
3
3
|
import { IFilterLogic } from "./filter-logic.resources";
|
|
4
4
|
import { IFilterOperator } from "./filter-operators.resources";
|
|
5
|
+
import { IFilterPanelInteractiveTable } from "./filter-panel.interfaces";
|
|
5
6
|
import { IFilterScope } from "./filter-scopes.resources";
|
|
6
7
|
import { IFilterSection } from "./filter-sections.resources";
|
|
7
8
|
import { IFilterValidator } from "./filter-validators.resources";
|
|
@@ -122,6 +123,7 @@ export interface IFilter {
|
|
|
122
123
|
export interface IFilterVersion<TVersionNumber extends IFilterVersionNumber = IFilterVersionNumber> {
|
|
123
124
|
version: TVersionNumber;
|
|
124
125
|
filters?: IFilterVersionMap[TVersionNumber];
|
|
126
|
+
settings?: IFilterPanelInteractiveTable;
|
|
125
127
|
}
|
|
126
128
|
/**
|
|
127
129
|
* Type for the Filter version
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.resources.d.ts","sourceRoot":"","sources":["../../../src/resources/filters.resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,cAAc,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAmB,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAgB,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAkB,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAEL,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC;AAEtC,MAAM,MAAM,sBAAsB,GAAG;KAAG,GAAG,IAAI,gBAAgB,GAAG,WAAW;CAAE,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,EAAE,WAAW,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;IAC1B;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,gBAAgB,CAAC;IAC5B;;;;OAIG;IACH,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc,CAC7B,cAAc,SAAS,oBAAoB,GAAG,oBAAoB;IAElE,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"filters.resources.d.ts","sourceRoot":"","sources":["../../../src/resources/filters.resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,cAAc,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD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AAY;IACnB,IAAI,SAAS;CACd;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,sBAsBtC,CAAC"}
|
|
@@ -49,9 +49,10 @@ export declare class FilterAdapter {
|
|
|
49
49
|
/**
|
|
50
50
|
* Generates the filter collection from the legacy filter
|
|
51
51
|
* @param legacyVisual the legacy filter
|
|
52
|
+
* @param interactiveTable the interactive table object
|
|
52
53
|
* @returns the filter collection
|
|
53
54
|
*/
|
|
54
|
-
static legacyVisualToFilter(legacyVisual: IFUData): IFilterUIToFilter;
|
|
55
|
+
static legacyVisualToFilter(legacyVisual: IFUData, interactiveTable?: IFilterPanelInteractiveTable): IFilterUIToFilter;
|
|
55
56
|
/**
|
|
56
57
|
* Gets the legacy filter version attribute
|
|
57
58
|
* @returns the legacy filter version
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterAdapter.d.ts","sourceRoot":"","sources":["../../src/classes/FilterAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"FilterAdapter.d.ts","sourceRoot":"","sources":["../../src/classes/FilterAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAUjD,OAAO,EACL,4BAA4B,EAC5B,iBAAiB,EAClB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EACL,mBAAmB,EACnB,OAAO,EACP,cAAc,EACf,MAAM,gCAAgC,CAAC;AAExC;;GAEG;AACH,qBAAa,aAAa;IAuBtB,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE;IAC7B,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE;IAC9B,SAAS,CAAC,gBAAgB,CAAC;IAxB7B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,CAAiB;IAEhC;;OAEG;IACH,OAAO,CAAC,OAAO,CAAC,CAAgB;IAEhC;;O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acyVisualToInteractiveTable, } from "../helpers/filter-adapt.legacy.helpers";
|
|
3
3
|
import { filterToLogic } from "../helpers/filter-adapt.logic.helpers";
|
|
4
|
+
import { FILTER_VERSION_TYPE, } from "../resources/filters.resources";
|
|
4
5
|
/**
|
|
5
6
|
* Class to adapt the filters
|
|
6
7
|
*/
|
|
@@ -64,14 +65,15 @@ export class FilterAdapter {
|
|
|
64
65
|
/**
|
|
65
66
|
* Generates the filter collection from the legacy filter
|
|
66
67
|
* @param legacyVisual the legacy filter
|
|
68
|
+
* @param interactiveTable the interactive table object
|
|
67
69
|
* @returns the filter collection
|
|
68
70
|
*/
|
|
69
|
-
static legacyVisualToFilter(legacyVisual) {
|
|
71
|
+
static legacyVisualToFilter(legacyVisual, interactiveTable) {
|
|
70
72
|
const filters = legacyVisualToFilter(legacyVisual);
|
|
71
|
-
|
|
73
|
+
const newInteractiveTable = legacyVisualToInteractiveTable(legacyVisual, interactiveTable);
|
|
72
74
|
return {
|
|
73
75
|
filters,
|
|
74
|
-
interactiveTable:
|
|
76
|
+
interactiveTable: newInteractiveTable,
|
|
75
77
|
};
|
|
76
78
|
}
|
|
77
79
|
/**
|
|
@@ -10,7 +10,7 @@ import { IFilter } from "../resources/filters.resources";
|
|
|
10
10
|
export declare class FilterManager {
|
|
11
11
|
protected filters: IFilter[];
|
|
12
12
|
protected datasets: IDataset[];
|
|
13
|
-
|
|
13
|
+
private _interactiveTable?;
|
|
14
14
|
/**
|
|
15
15
|
* Instance to adapt filters
|
|
16
16
|
*/
|
|
@@ -27,9 +27,9 @@ export declare class FilterManager {
|
|
|
27
27
|
* Constructor
|
|
28
28
|
* @param filters the collection of filters
|
|
29
29
|
* @param datasets the collection of datasets info
|
|
30
|
-
* @param
|
|
30
|
+
* @param _interactiveTable table of interaction properties for each section
|
|
31
31
|
*/
|
|
32
|
-
constructor(filters?: IFilter[], datasets?: IDataset[],
|
|
32
|
+
constructor(filters?: IFilter[], datasets?: IDataset[], _interactiveTable?: IFilterPanelInteractiveTable | undefined);
|
|
33
33
|
/**
|
|
34
34
|
* **************************************************************************************************
|
|
35
35
|
****************************************** Getters *************************************************
|
|
@@ -50,6 +50,11 @@ export declare class FilterManager {
|
|
|
50
50
|
* @returns the search methods
|
|
51
51
|
*/
|
|
52
52
|
get search(): FilterSearcher;
|
|
53
|
+
/**
|
|
54
|
+
* Gets the interactive table
|
|
55
|
+
* @returns the interactive table
|
|
56
|
+
*/
|
|
57
|
+
get interactiveTable(): IFilterPanelInteractiveTable | undefined;
|
|
53
58
|
/**
|
|
54
59
|
* **************************************************************************************************
|
|
55
60
|
****************************************** Setters *************************************************
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterManager.d.ts","sourceRoot":"","sources":["../../src/classes/FilterManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEzD;;GAEG;AACH,qBAAa,aAAa;IAuBtB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE;IAC5B,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE;IAC9B,
|
|
1
|
+
{"version":3,"file":"FilterManager.d.ts","sourceRoot":"","sources":["../../src/classes/FilterManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEzD;;GAEG;AACH,qBAAa,aAAa;IAuBtB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE;IAC5B,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE;IAC9B,OAAO,CAAC,iBAAiB,CAAC;IAxB5B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAgB;IAE9B;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAgB;IAEhC;;OAEG;IACH,OAAO,CAAC,aAAa,CAAiB;IAEtC;;;;;OAKG;gBAES,OAAO,GAAE,OAAO,EAAO,EACvB,QAAQ,GAAE,QAAQ,EAAO,EAC3B,iBAAiB,CAAC,0CAA8B;IAO1D;;;;OAIG;IAEH;;;OAGG;IACH,IAAW,OAAO,IAAI,aAAa,CAElC;IAED;;;OAGG;IACH,IAAW,KAAK,IAAI,aAAa,CAEhC;IAED;;;OAGG;IACH,IAAW,MAAM,IAAI,cAAc,CAElC;IAED;;;OAGG;IACH,IAAW,gBAAgB,IAAI,4BAA4B,GAAG,SAAS,CAEtE;IAED;;;;OAIG;IAEH;;;OAGG;IACI,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI;IAI9C;;;OAGG;IACI,UAAU,CAAC,OAAO,GAAE,OAAO,EAAO,GAAG,IAAI;IAMhD;;;OAGG;IACI,mBAAmB,CACxB,gBAAgB,EAAE,4BAA4B,GAC7C,IAAI;CAIR"}
|
|
@@ -7,7 +7,7 @@ import { FilterSearcher } from "./FilterSearcher";
|
|
|
7
7
|
export class FilterManager {
|
|
8
8
|
filters;
|
|
9
9
|
datasets;
|
|
10
|
-
|
|
10
|
+
_interactiveTable;
|
|
11
11
|
/**
|
|
12
12
|
* Instance to adapt filters
|
|
13
13
|
*/
|
|
@@ -24,15 +24,15 @@ export class FilterManager {
|
|
|
24
24
|
* Constructor
|
|
25
25
|
* @param filters the collection of filters
|
|
26
26
|
* @param datasets the collection of datasets info
|
|
27
|
-
* @param
|
|
27
|
+
* @param _interactiveTable table of interaction properties for each section
|
|
28
28
|
*/
|
|
29
|
-
constructor(filters = [], datasets = [],
|
|
29
|
+
constructor(filters = [], datasets = [], _interactiveTable) {
|
|
30
30
|
this.filters = filters;
|
|
31
31
|
this.datasets = datasets;
|
|
32
|
-
this.
|
|
32
|
+
this._interactiveTable = _interactiveTable;
|
|
33
33
|
this._searchEngine = new FilterSearcher(filters);
|
|
34
34
|
this._builder = new FilterBuilder(filters);
|
|
35
|
-
this._adapt = new FilterAdapter(filters, datasets,
|
|
35
|
+
this._adapt = new FilterAdapter(filters, datasets, _interactiveTable);
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* **************************************************************************************************
|
|
@@ -60,6 +60,13 @@ export class FilterManager {
|
|
|
60
60
|
get search() {
|
|
61
61
|
return this._searchEngine;
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Gets the interactive table
|
|
65
|
+
* @returns the interactive table
|
|
66
|
+
*/
|
|
67
|
+
get interactiveTable() {
|
|
68
|
+
return this._interactiveTable;
|
|
69
|
+
}
|
|
63
70
|
/**
|
|
64
71
|
* **************************************************************************************************
|
|
65
72
|
****************************************** Setters *************************************************
|
|
@@ -86,6 +93,7 @@ export class FilterManager {
|
|
|
86
93
|
* @param interactiveTable table of interaction properties for each section
|
|
87
94
|
*/
|
|
88
95
|
setInteractiveTable(interactiveTable) {
|
|
89
|
-
this.
|
|
96
|
+
this._interactiveTable = interactiveTable;
|
|
97
|
+
this._adapt.setInteractiveTable(this._interactiveTable);
|
|
90
98
|
}
|
|
91
99
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=FilterSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterSettings.d.ts","sourceRoot":"","sources":["../../src/classes/FilterSettings.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDataset
|
|
1
|
+
import { IDataset } from "@qrvey/utils";
|
|
2
2
|
import { IFilterPanelInteractiveTable } from "../resources/filter-panel.interfaces";
|
|
3
3
|
import { IFilterVisual } from "../resources/filter-visual.resources";
|
|
4
4
|
import { IFilter } from "../resources/filters.resources";
|
|
@@ -11,17 +11,11 @@ import { IFilter } from "../resources/filters.resources";
|
|
|
11
11
|
*/
|
|
12
12
|
export declare function filterToVisual(filters: IFilter[], datasets?: IDataset[], interactiveTable?: IFilterPanelInteractiveTable): IFilterVisual | undefined;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* @param
|
|
17
|
-
* @param interactiveTable
|
|
18
|
-
* @returns
|
|
19
|
-
*/
|
|
20
|
-
export declare function filterToLegacyVisual(filters: IFilter[], datasets?: IDataset[], interactiveTable?: IFilterPanelInteractiveTable): IFUData | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Generates a legacy visual filter structure from the filter collection.
|
|
23
|
-
* @param filterData the legacy filter
|
|
24
|
-
* @returns a Filter collection
|
|
14
|
+
* Gets the Interactive Table object from the visual filters
|
|
15
|
+
* If an interactive table object is given, it will be merged with the new one
|
|
16
|
+
* @param visual the visual filters
|
|
17
|
+
* @param interactiveTable the interactive table object
|
|
18
|
+
* @returns the interactive table object
|
|
25
19
|
*/
|
|
26
|
-
export declare function
|
|
20
|
+
export declare function legacyVisualToInteractiveTable(visual: IFilterVisual, interactiveTable?: IFilterPanelInteractiveTable): IFilterPanelInteractiveTable | undefined;
|
|
27
21
|
//# sourceMappingURL=filter-adapt.helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-adapt.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/filter-adapt.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"filter-adapt.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/filter-adapt.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,QAAQ,EAAW,MAAM,cAAc,CAAC;AAI1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAGL,aAAa,EAGd,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAkB,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,EAAE,EAClB,QAAQ,GAAE,QAAQ,EAAO,EACzB,gBAAgB,CAAC,EAAE,4BAA4B,GAC9C,aAAa,GAAG,SAAS,CAM3B;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,aAAa,EACrB,gBAAgB,CAAC,EAAE,4BAA4B,GAC9C,4BAA4B,GAAG,SAAS,CAgC1C"}
|