@qrvey/filters 0.0.14 → 0.0.16

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 CHANGED
@@ -4,8 +4,22 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [v0.0.16](https://bitbucket.org/qrvey/qrvey_filters/compare/v0.0.16..v0.0.15)
8
+
9
+ - Other/packagejson update [`#1`](https://bitbucket.org/qrvey/qrvey_filters/pull-requests/1)
10
+ - chore: added the export configuration for module/commonjs [`54b075c`](https://bitbucket.org/qrvey/qrvey_filters/commits/54b075c6d750d5ce91ab9081974d8e2babbafaa6)
11
+ - build: upgraded qrvey utils to 1.14.0-6 [`16fddfc`](https://bitbucket.org/qrvey/qrvey_filters/commits/16fddfc66173016eb0ed58311bf34111d9441521)
12
+
13
+ #### [v0.0.15](https://bitbucket.org/qrvey/qrvey_filters/compare/v0.0.15..v0.0.14)
14
+
15
+ > 4 June 2024
16
+
17
+ - fix: :bug: adjusted the adapter of interactive table to avoid pushing the old info [`f940b45`](https://bitbucket.org/qrvey/qrvey_filters/commits/f940b456cd6db9e3994e03b1a577ad42e570263c)
18
+
7
19
  #### [v0.0.14](https://bitbucket.org/qrvey/qrvey_filters/compare/v0.0.14..v0.0.13)
8
20
 
21
+ > 27 May 2024
22
+
9
23
  - feat: :zap: added the filter interactive table into the adapters [`f47df0c`](https://bitbucket.org/qrvey/qrvey_filters/commits/f47df0cd50adc02a56363b30c424507c9900bdff)
10
24
 
11
25
  #### [v0.0.13](https://bitbucket.org/qrvey/qrvey_filters/compare/v0.0.13..v0.0.12)
@@ -80,9 +80,9 @@ function legacyVisualToInteractiveTable(legacyVisual, interactiveTable) {
80
80
  if ((0, utils_1.isEmpty)(legacyVisual) || (0, utils_1.isEmpty)(legacyVisual?.scopes))
81
81
  return;
82
82
  const newInteractiveTable = {
83
+ ...interactiveTable,
83
84
  interactScopes: [],
84
85
  interactDatasets: [],
85
- ...interactiveTable,
86
86
  };
87
87
  legacyVisual.scopes.forEach((scope) => {
88
88
  newInteractiveTable.interactScopes.push({
@@ -94,7 +94,7 @@ function legacyVisualToInteractiveTable(legacyVisual, interactiveTable) {
94
94
  return;
95
95
  scope.datasets.forEach((dataset) => {
96
96
  newInteractiveTable.interactDatasets.push({
97
- collapsed: scope.collapsed,
97
+ collapsed: dataset.collapsed,
98
98
  scope: scope.scope,
99
99
  scopeId: scope.scopeid,
100
100
  datasetId: dataset.qrveyid,
@@ -75,9 +75,9 @@ export function legacyVisualToInteractiveTable(legacyVisual, interactiveTable) {
75
75
  if (isEmpty(legacyVisual) || isEmpty(legacyVisual?.scopes))
76
76
  return;
77
77
  const newInteractiveTable = {
78
+ ...interactiveTable,
78
79
  interactScopes: [],
79
80
  interactDatasets: [],
80
- ...interactiveTable,
81
81
  };
82
82
  legacyVisual.scopes.forEach((scope) => {
83
83
  newInteractiveTable.interactScopes.push({
@@ -89,7 +89,7 @@ export function legacyVisualToInteractiveTable(legacyVisual, interactiveTable) {
89
89
  return;
90
90
  scope.datasets.forEach((dataset) => {
91
91
  newInteractiveTable.interactDatasets.push({
92
- collapsed: scope.collapsed,
92
+ collapsed: dataset.collapsed,
93
93
  scope: scope.scope,
94
94
  scopeId: scope.scopeid,
95
95
  datasetId: dataset.qrveyid,
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "@qrvey/filters",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "Helpers and logic for Filtering Data in Qrvey app",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
7
7
  "node": ">=20"
8
8
  },
9
+ "exports": {
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/cjs/index.js"
12
+ },
9
13
  "devDependencies": {
10
14
  "@commitlint/cli": "19.3.0",
11
15
  "@commitlint/config-conventional": "19.2.2",
@@ -31,7 +35,7 @@
31
35
  "typescript": "5.4.5"
32
36
  },
33
37
  "dependencies": {
34
- "@qrvey/utils": "1.14.0-3",
38
+ "@qrvey/utils": "1.14.0-6",
35
39
  "dayjs": "1.11.10"
36
40
  },
37
41
  "scripts": {
@@ -104,9 +104,9 @@ export function legacyVisualToInteractiveTable(
104
104
  if (isEmpty(legacyVisual) || isEmpty(legacyVisual?.scopes)) return;
105
105
 
106
106
  const newInteractiveTable: IFilterPanelInteractiveTable = {
107
+ ...interactiveTable,
107
108
  interactScopes: [],
108
109
  interactDatasets: [],
109
- ...interactiveTable,
110
110
  };
111
111
 
112
112
  legacyVisual.scopes.forEach((scope: IFUScope) => {
@@ -118,7 +118,7 @@ export function legacyVisualToInteractiveTable(
118
118
  if (scope.datasets.length === 0) return;
119
119
  scope.datasets.forEach((dataset: IFUDataset) => {
120
120
  newInteractiveTable.interactDatasets!.push({
121
- collapsed: scope.collapsed,
121
+ collapsed: dataset.collapsed,
122
122
  scope: scope.scope,
123
123
  scopeId: scope.scopeid,
124
124
  datasetId: dataset.qrveyid,
@@ -1 +0,0 @@
1
- //# sourceMappingURL=FilterSettings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FilterSettings.d.ts","sourceRoot":"","sources":["../../../src/classes/FilterSettings.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,357 +0,0 @@
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
@@ -1 +0,0 @@
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,CA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ACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;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"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- //# sourceMappingURL=FilterSettings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FilterSettings.d.ts","sourceRoot":"","sources":["../../src/classes/FilterSettings.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,357 +0,0 @@
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
@@ -1 +0,0 @@
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;CACpC;AAED;;GAEG;AACH,UAAU,oBAAoB;IAC5B;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;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