@qrvey/filters 0.0.45 → 0.1.0
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/README.md +63 -1
- package/dist/cjs/classes/FilterAdapter.js +1 -80
- package/dist/cjs/classes/FilterBuilder.js +32 -251
- package/dist/cjs/classes/FilterManager.js +7 -64
- package/dist/cjs/classes/FilterResources.js +3 -116
- package/dist/cjs/classes/FilterSearcher.js +0 -77
- package/dist/cjs/classes/FilterValidation.js +0 -93
- package/dist/cjs/classes/FilterValues.js +0 -24
- package/dist/cjs/classes/index.js +8 -21
- package/dist/cjs/helpers/filter-adapt.helpers.js +3 -46
- package/dist/cjs/helpers/filter-adapt.legacy.helpers.js +6 -53
- package/dist/cjs/helpers/filter-adapt.logic.helpers.js +7 -128
- package/dist/cjs/helpers/filter-builder.helpers.js +1 -8
- package/dist/cjs/helpers/filter-settings.helpers.js +6 -41
- package/dist/cjs/helpers/filter-validators.helpers.js +15 -9
- package/dist/cjs/helpers/filter-verbose.helpers.js +211 -0
- package/dist/cjs/helpers/getAggregateFilters.js +11 -0
- package/dist/cjs/helpers/getFilterId.js +1 -17
- package/dist/cjs/helpers/getFilterType.js +1 -8
- package/dist/cjs/helpers/index.js +12 -20
- package/dist/cjs/helpers/isDateDistinctGrouping.js +15 -0
- package/dist/cjs/helpers/isRankingFilter.js +10 -0
- package/dist/cjs/helpers/resolveFilterConditions.js +2 -10
- package/dist/cjs/helpers/utils.helpers.js +2 -19
- package/dist/cjs/index.js +5 -18
- package/dist/cjs/models/index.js +4 -17
- package/dist/cjs/resources/filter-grouping.resources.js +0 -18
- package/dist/cjs/resources/filter-logic.resources.js +0 -3
- package/dist/cjs/resources/filter-scopes.resources.js +10 -27
- package/dist/cjs/resources/filter-validators.resources.js +0 -3
- package/dist/cjs/resources/filter-verbose.resources.js +13 -0
- package/dist/cjs/resources/filters.resources.js +0 -12
- package/dist/cjs/resources/index.js +12 -24
- package/dist/classes/FilterAdapter.d.ts +0 -80
- package/dist/classes/FilterAdapter.js +1 -80
- package/dist/classes/FilterBuilder.d.ts +2 -177
- package/dist/classes/FilterBuilder.js +32 -251
- package/dist/classes/FilterManager.d.ts +7 -62
- package/dist/classes/FilterManager.js +7 -64
- package/dist/classes/FilterResources.d.ts +1 -115
- package/dist/classes/FilterResources.js +3 -116
- package/dist/classes/FilterSearcher.d.ts +2 -77
- package/dist/classes/FilterSearcher.js +0 -77
- package/dist/classes/FilterValidation.d.ts +1 -47
- package/dist/classes/FilterValidation.js +0 -93
- package/dist/classes/FilterValues.d.ts +0 -25
- package/dist/classes/FilterValues.js +0 -24
- package/dist/classes/index.d.ts +0 -1
- package/dist/helpers/filter-adapt.helpers.d.ts +0 -15
- package/dist/helpers/filter-adapt.helpers.js +1 -43
- package/dist/helpers/filter-adapt.legacy.helpers.d.ts +0 -20
- package/dist/helpers/filter-adapt.legacy.helpers.js +3 -49
- package/dist/helpers/filter-adapt.logic.helpers.d.ts +0 -22
- package/dist/helpers/filter-adapt.logic.helpers.js +3 -123
- package/dist/helpers/filter-builder.helpers.d.ts +0 -7
- package/dist/helpers/filter-builder.helpers.js +0 -6
- package/dist/helpers/filter-settings.helpers.d.ts +0 -35
- package/dist/helpers/filter-settings.helpers.js +0 -34
- package/dist/helpers/filter-validators.helpers.d.ts +3 -6
- package/dist/helpers/filter-validators.helpers.js +11 -7
- package/dist/helpers/filter-verbose.helpers.d.ts +6 -0
- package/dist/helpers/filter-verbose.helpers.js +206 -0
- package/dist/helpers/getAggregateFilters.d.ts +3 -0
- package/dist/helpers/getAggregateFilters.js +7 -0
- package/dist/helpers/getFilterId.d.ts +0 -16
- package/dist/helpers/getFilterId.js +0 -15
- package/dist/helpers/getFilterType.d.ts +0 -7
- package/dist/helpers/getFilterType.js +0 -6
- package/dist/helpers/index.d.ts +5 -1
- package/dist/helpers/index.js +5 -0
- package/dist/helpers/isDateDistinctGrouping.d.ts +2 -0
- package/dist/helpers/isDateDistinctGrouping.js +12 -0
- package/dist/helpers/isRankingFilter.d.ts +2 -0
- package/dist/helpers/isRankingFilter.js +7 -0
- package/dist/helpers/resolveFilterConditions.d.ts +0 -8
- package/dist/helpers/resolveFilterConditions.js +1 -8
- package/dist/helpers/utils.helpers.d.ts +0 -17
- package/dist/helpers/utils.helpers.js +0 -16
- package/dist/index.d.ts +0 -1
- package/dist/models/filter-builder.models.d.ts +0 -156
- package/dist/models/filter-resources.models.d.ts +0 -53
- package/dist/models/filter-searcher.models.d.ts +5 -34
- package/dist/models/filter-validation.models.d.ts +0 -40
- package/dist/models/index.d.ts +0 -1
- package/dist/resources/filter-functions.resources.d.ts +0 -49
- package/dist/resources/filter-grouping.resources.d.ts +0 -7
- package/dist/resources/filter-grouping.resources.js +0 -18
- package/dist/resources/filter-logic.resources.d.ts +0 -79
- package/dist/resources/filter-logic.resources.js +0 -3
- package/dist/resources/filter-operators.resources.d.ts +0 -1
- package/dist/resources/filter-panel.interfaces.d.ts +0 -49
- package/dist/resources/filter-scopes.resources.d.ts +2 -25
- package/dist/resources/filter-scopes.resources.js +10 -27
- package/dist/resources/filter-validation.resources.d.ts +0 -1
- package/dist/resources/filter-validators.resources.d.ts +0 -1
- package/dist/resources/filter-validators.resources.js +0 -3
- package/dist/resources/filter-values.resources.d.ts +0 -13
- package/dist/resources/filter-verbose.resources.d.ts +23 -0
- package/dist/resources/filter-verbose.resources.js +10 -0
- package/dist/resources/filter-visual.resources.d.ts +0 -50
- package/dist/resources/filters.resources.d.ts +1 -102
- package/dist/resources/filters.resources.js +0 -12
- package/dist/resources/index.d.ts +1 -1
- package/dist/resources/index.js +1 -0
- package/package.json +59 -44
- package/.eslintignore +0 -6
- package/.eslintrc.json +0 -122
- package/.husky/pre-commit +0 -4
- package/.lintstagedrc +0 -7
- package/.prettierignore +0 -6
- package/.prettierrc.json +0 -1
- package/CHANGELOG.md +0 -274
- package/CODE_OF_CONDUCT.md +0 -132
- package/bitbucket-pipelines.yml +0 -92
- package/dist/cjs/classes/FilterAdapter.d.ts +0 -107
- package/dist/cjs/classes/FilterAdapter.d.ts.map +0 -1
- package/dist/cjs/classes/FilterBuilder.d.ts +0 -206
- package/dist/cjs/classes/FilterBuilder.d.ts.map +0 -1
- package/dist/cjs/classes/FilterManager.d.ts +0 -84
- package/dist/cjs/classes/FilterManager.d.ts.map +0 -1
- package/dist/cjs/classes/FilterResources.d.ts +0 -139
- package/dist/cjs/classes/FilterResources.d.ts.map +0 -1
- package/dist/cjs/classes/FilterSearcher.d.ts +0 -90
- package/dist/cjs/classes/FilterSearcher.d.ts.map +0 -1
- package/dist/cjs/classes/FilterValidation.d.ts +0 -58
- package/dist/cjs/classes/FilterValidation.d.ts.map +0 -1
- package/dist/cjs/classes/FilterValues.d.ts +0 -33
- package/dist/cjs/classes/FilterValues.d.ts.map +0 -1
- package/dist/cjs/classes/index.d.ts +0 -8
- package/dist/cjs/classes/index.d.ts.map +0 -1
- package/dist/cjs/helpers/filter-adapt.helpers.d.ts +0 -21
- package/dist/cjs/helpers/filter-adapt.helpers.d.ts.map +0 -1
- package/dist/cjs/helpers/filter-adapt.legacy.helpers.d.ts +0 -26
- package/dist/cjs/helpers/filter-adapt.legacy.helpers.d.ts.map +0 -1
- package/dist/cjs/helpers/filter-adapt.logic.helpers.d.ts +0 -29
- package/dist/cjs/helpers/filter-adapt.logic.helpers.d.ts.map +0 -1
- package/dist/cjs/helpers/filter-builder.helpers.d.ts +0 -11
- package/dist/cjs/helpers/filter-builder.helpers.d.ts.map +0 -1
- package/dist/cjs/helpers/filter-settings.helpers.d.ts +0 -42
- package/dist/cjs/helpers/filter-settings.helpers.d.ts.map +0 -1
- package/dist/cjs/helpers/filter-validators.helpers.d.ts +0 -8
- package/dist/cjs/helpers/filter-validators.helpers.d.ts.map +0 -1
- package/dist/cjs/helpers/getFilterId.d.ts +0 -18
- package/dist/cjs/helpers/getFilterId.d.ts.map +0 -1
- package/dist/cjs/helpers/getFilterType.d.ts +0 -11
- package/dist/cjs/helpers/getFilterType.d.ts.map +0 -1
- package/dist/cjs/helpers/index.d.ts +0 -7
- package/dist/cjs/helpers/index.d.ts.map +0 -1
- package/dist/cjs/helpers/resolveFilterConditions.d.ts +0 -11
- package/dist/cjs/helpers/resolveFilterConditions.d.ts.map +0 -1
- package/dist/cjs/helpers/utils.helpers.d.ts +0 -26
- package/dist/cjs/helpers/utils.helpers.d.ts.map +0 -1
- package/dist/cjs/index.d.ts +0 -5
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/models/filter-builder.models.d.ts +0 -203
- package/dist/cjs/models/filter-builder.models.d.ts.map +0 -1
- package/dist/cjs/models/filter-resources.models.d.ts +0 -71
- package/dist/cjs/models/filter-resources.models.d.ts.map +0 -1
- package/dist/cjs/models/filter-searcher.models.d.ts +0 -42
- package/dist/cjs/models/filter-searcher.models.d.ts.map +0 -1
- package/dist/cjs/models/filter-validation.models.d.ts +0 -59
- package/dist/cjs/models/filter-validation.models.d.ts.map +0 -1
- package/dist/cjs/models/index.d.ts +0 -4
- package/dist/cjs/models/index.d.ts.map +0 -1
- package/dist/cjs/resources/filter-functions.resources.d.ts +0 -94
- package/dist/cjs/resources/filter-functions.resources.d.ts.map +0 -1
- package/dist/cjs/resources/filter-grouping.resources.d.ts +0 -103
- package/dist/cjs/resources/filter-grouping.resources.d.ts.map +0 -1
- package/dist/cjs/resources/filter-logic.resources.d.ts +0 -135
- package/dist/cjs/resources/filter-logic.resources.d.ts.map +0 -1
- package/dist/cjs/resources/filter-operators.resources.d.ts +0 -16
- package/dist/cjs/resources/filter-operators.resources.d.ts.map +0 -1
- package/dist/cjs/resources/filter-panel.interfaces.d.ts +0 -80
- package/dist/cjs/resources/filter-panel.interfaces.d.ts.map +0 -1
- package/dist/cjs/resources/filter-scopes.resources.d.ts +0 -62
- package/dist/cjs/resources/filter-scopes.resources.d.ts.map +0 -1
- package/dist/cjs/resources/filter-validation.resources.d.ts +0 -20
- package/dist/cjs/resources/filter-validation.resources.d.ts.map +0 -1
- package/dist/cjs/resources/filter-validators.resources.d.ts +0 -80
- package/dist/cjs/resources/filter-validators.resources.d.ts.map +0 -1
- package/dist/cjs/resources/filter-values.resources.d.ts +0 -40
- package/dist/cjs/resources/filter-values.resources.d.ts.map +0 -1
- package/dist/cjs/resources/filter-visual.resources.d.ts +0 -77
- package/dist/cjs/resources/filter-visual.resources.d.ts.map +0 -1
- package/dist/cjs/resources/filters.resources.d.ts +0 -168
- package/dist/cjs/resources/filters.resources.d.ts.map +0 -1
- package/dist/cjs/resources/index.d.ts +0 -11
- package/dist/cjs/resources/index.d.ts.map +0 -1
- package/dist/classes/FilterAdapter.d.ts.map +0 -1
- package/dist/classes/FilterBuilder.d.ts.map +0 -1
- package/dist/classes/FilterManager.d.ts.map +0 -1
- package/dist/classes/FilterResources.d.ts.map +0 -1
- package/dist/classes/FilterSearcher.d.ts.map +0 -1
- package/dist/classes/FilterValidation.d.ts.map +0 -1
- package/dist/classes/FilterValues.d.ts.map +0 -1
- package/dist/classes/index.d.ts.map +0 -1
- package/dist/helpers/filter-adapt.helpers.d.ts.map +0 -1
- package/dist/helpers/filter-adapt.legacy.helpers.d.ts.map +0 -1
- package/dist/helpers/filter-adapt.logic.helpers.d.ts.map +0 -1
- package/dist/helpers/filter-builder.helpers.d.ts.map +0 -1
- package/dist/helpers/filter-settings.helpers.d.ts.map +0 -1
- package/dist/helpers/filter-validators.helpers.d.ts.map +0 -1
- package/dist/helpers/getFilterId.d.ts.map +0 -1
- package/dist/helpers/getFilterType.d.ts.map +0 -1
- package/dist/helpers/index.d.ts.map +0 -1
- package/dist/helpers/resolveFilterConditions.d.ts.map +0 -1
- package/dist/helpers/utils.helpers.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/models/filter-builder.models.d.ts.map +0 -1
- package/dist/models/filter-resources.models.d.ts.map +0 -1
- package/dist/models/filter-searcher.models.d.ts.map +0 -1
- package/dist/models/filter-validation.models.d.ts.map +0 -1
- package/dist/models/index.d.ts.map +0 -1
- package/dist/resources/filter-functions.resources.d.ts.map +0 -1
- package/dist/resources/filter-grouping.resources.d.ts.map +0 -1
- package/dist/resources/filter-logic.resources.d.ts.map +0 -1
- package/dist/resources/filter-operators.resources.d.ts.map +0 -1
- package/dist/resources/filter-panel.interfaces.d.ts.map +0 -1
- package/dist/resources/filter-scopes.resources.d.ts.map +0 -1
- package/dist/resources/filter-validation.resources.d.ts.map +0 -1
- package/dist/resources/filter-validators.resources.d.ts.map +0 -1
- package/dist/resources/filter-values.resources.d.ts.map +0 -1
- package/dist/resources/filter-visual.resources.d.ts.map +0 -1
- package/dist/resources/filters.resources.d.ts.map +0 -1
- package/dist/resources/index.d.ts.map +0 -1
- package/jest.config.js +0 -10
- package/jsdoc.config.json +0 -14
- package/scripts/clean-build/index.js +0 -62
- package/sonar-project.properties +0 -2
- package/src/classes/FilterAdapter.ts +0 -208
- package/src/classes/FilterBuilder.ts +0 -822
- package/src/classes/FilterManager.ts +0 -126
- package/src/classes/FilterResources.ts +0 -411
- package/src/classes/FilterSearcher.ts +0 -243
- package/src/classes/FilterValidation.ts +0 -221
- package/src/classes/FilterValues.ts +0 -89
- package/src/classes/index.ts +0 -7
- package/src/helpers/filter-adapt.helpers.ts +0 -204
- package/src/helpers/filter-adapt.legacy.helpers.ts +0 -298
- package/src/helpers/filter-adapt.logic.helpers.ts +0 -631
- package/src/helpers/filter-builder.helpers.ts +0 -28
- package/src/helpers/filter-settings.helpers.ts +0 -133
- package/src/helpers/filter-validators.helpers.ts +0 -15
- package/src/helpers/getFilterId.ts +0 -35
- package/src/helpers/getFilterType.ts +0 -23
- package/src/helpers/index.ts +0 -6
- package/src/helpers/resolveFilterConditions.ts +0 -29
- package/src/helpers/utils.helpers.ts +0 -37
- package/src/index.ts +0 -4
- package/src/models/filter-builder.models.ts +0 -256
- package/src/models/filter-resources.models.ts +0 -89
- package/src/models/filter-searcher.models.ts +0 -61
- package/src/models/filter-validation.models.ts +0 -71
- package/src/models/index.ts +0 -3
- package/src/resources/filter-functions.resources.ts +0 -132
- package/src/resources/filter-grouping.resources.ts +0 -531
- package/src/resources/filter-logic.resources.ts +0 -148
- package/src/resources/filter-operators.resources.ts +0 -40
- package/src/resources/filter-panel.interfaces.ts +0 -86
- package/src/resources/filter-scopes.resources.ts +0 -152
- package/src/resources/filter-validation.resources.ts +0 -90
- package/src/resources/filter-validators.resources.ts +0 -411
- package/src/resources/filter-values.resources.ts +0 -57
- package/src/resources/filter-visual.resources.ts +0 -86
- package/src/resources/filters.resources.ts +0 -232
- package/src/resources/index.ts +0 -10
- package/tests/classes/FilterAdapter.test.ts +0 -124
- package/tests/classes/FilterBuilder.test.ts +0 -903
- package/tests/classes/FilterResources.test.ts +0 -267
- package/tests/classes/FilterSearcher.test.ts +0 -188
- package/tests/classes/FilterValidation.test.ts +0 -54
- package/tests/helpers/getFilterId.test.ts +0 -121
- package/tests/mock/datasets.mock.ts +0 -61
- package/tests/mock/filters-adapter.mock.ts +0 -646
- package/tests/mock/filters-interactive-table.mock.ts +0 -59
- package/tests/mock/filters.mock.ts +0 -277
- package/tsconfig.doc.json +0 -4
- package/tsconfig.eslint.json +0 -4
- package/tsconfig.json +0 -113
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { IFilterValidation, IFilterValidationInfo } from "../resources/filter-validation.resources";
|
|
2
|
-
import { IFilterInputValue } from "../resources/filter-values.resources";
|
|
3
|
-
import { IFilter } from "../resources/filters.resources";
|
|
4
|
-
/**
|
|
5
|
-
* Structure module for the editing filter values
|
|
6
|
-
*/
|
|
7
|
-
export interface IFilterValidationValue {
|
|
8
|
-
/**
|
|
9
|
-
* Validates the value based on the given filter
|
|
10
|
-
* @param filter the filter to validate the value
|
|
11
|
-
* @param value the value to validate
|
|
12
|
-
* @returns the resulting validation
|
|
13
|
-
*/
|
|
14
|
-
value: (filter: IFilter, value: IFilterInputValue) => IFilterValidationSingleError;
|
|
15
|
-
/**
|
|
16
|
-
* Validates the values based on the given filter
|
|
17
|
-
* @param filter the filter to validate the value
|
|
18
|
-
* @param values the collection of values to validate
|
|
19
|
-
* @returns the resulting validation
|
|
20
|
-
*/
|
|
21
|
-
values: (filter: IFilter, values: IFilterInputValue[]) => IFilterValidationMultipleError;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Structure for the returning validation status
|
|
25
|
-
*/
|
|
26
|
-
export interface IFilterValidationSingleError {
|
|
27
|
-
/**
|
|
28
|
-
* the errors
|
|
29
|
-
*/
|
|
30
|
-
errors: IFilterValidationError[];
|
|
31
|
-
/**
|
|
32
|
-
* The info of the errors
|
|
33
|
-
*/
|
|
34
|
-
infoErrors: IFilterValidationInfo[];
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Structure for the returning validation status on mulitple values
|
|
38
|
-
*/
|
|
39
|
-
export interface IFilterValidationMultipleError {
|
|
40
|
-
/**
|
|
41
|
-
* the errors collection
|
|
42
|
-
*/
|
|
43
|
-
errors: IFilterValidationError[][];
|
|
44
|
-
/**
|
|
45
|
-
* The info of the errors collection
|
|
46
|
-
*/
|
|
47
|
-
infoErrors: IFilterValidationInfo[][];
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Structure for the error
|
|
51
|
-
*/
|
|
52
|
-
export interface IFilterValidationError {
|
|
53
|
-
type: IFilterValidation;
|
|
54
|
-
/**
|
|
55
|
-
* the affected values
|
|
56
|
-
*/
|
|
57
|
-
value?: IFilterInputValue;
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=filter-validation.models.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-validation.models.d.ts","sourceRoot":"","sources":["../../../src/models/filter-validation.models.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;OAKG;IACH,KAAK,EAAE,CACL,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,iBAAiB,KACrB,4BAA4B,CAAC;IAClC;;;;;OAKG;IACH,MAAM,EAAE,CACN,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,iBAAiB,EAAE,KACxB,8BAA8B,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,EAAE,sBAAsB,EAAE,CAAC;IACjC;;OAEG;IACH,UAAU,EAAE,qBAAqB,EAAE,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,MAAM,EAAE,sBAAsB,EAAE,EAAE,CAAC;IACnC;;OAEG;IACH,UAAU,EAAE,qBAAqB,EAAE,EAAE,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,iBAAiB,CAAC;IACxB;;OAEG;IACH,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { IFilterInputValue } from "./filter-values.resources";
|
|
2
|
-
/**
|
|
3
|
-
* Settings object for the FilterBuilder add filter functions
|
|
4
|
-
*/
|
|
5
|
-
export interface IFilterAddSettings {
|
|
6
|
-
/**
|
|
7
|
-
* flag to generate a new filter ID based on the filter info
|
|
8
|
-
*/
|
|
9
|
-
automaticId?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* flag to change automatically the operator of the last filter when criteria matching
|
|
12
|
-
*/
|
|
13
|
-
automaticOperator?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const DEFAULT_FILTER_ADD_SETTINGS: IFilterAddSettings;
|
|
16
|
-
/**
|
|
17
|
-
* Settings object for the FilterBuilder filterCreate function
|
|
18
|
-
*/
|
|
19
|
-
export interface IFilterCreateSettings extends IFilterFilterGroupingSettings {
|
|
20
|
-
/**
|
|
21
|
-
* flag to generate a new filter ID based on the filter info
|
|
22
|
-
*/
|
|
23
|
-
automaticId?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Values for creating filters
|
|
26
|
-
*/
|
|
27
|
-
rawValues?: IFilterInputValue[];
|
|
28
|
-
}
|
|
29
|
-
export declare const DEFAULT_FILTER_CREATE_SETTINGS: IFilterCreateSettings;
|
|
30
|
-
/**
|
|
31
|
-
* Settings object for functions that use params settings
|
|
32
|
-
*/
|
|
33
|
-
export interface IFilterParamSettings {
|
|
34
|
-
letPassUndefinedProperties?: boolean;
|
|
35
|
-
letPassUndefinedParams?: boolean;
|
|
36
|
-
removeEmptyArrays?: boolean;
|
|
37
|
-
}
|
|
38
|
-
export declare const DEFAULT_FILTERS_PARAM_SETTINGS: IFilterParamSettings;
|
|
39
|
-
/**
|
|
40
|
-
* Settings object for the FilterBuilder edit filter functions
|
|
41
|
-
*/
|
|
42
|
-
export interface IFilterBuilderEditSettings {
|
|
43
|
-
automaticId?: boolean;
|
|
44
|
-
strictValidation?: boolean;
|
|
45
|
-
}
|
|
46
|
-
export declare const DEFAULT_FILTERS_EDIT_SETTINGS: IFilterBuilderEditSettings;
|
|
47
|
-
/**
|
|
48
|
-
* Settings object for the FilterResources Grouping list functions
|
|
49
|
-
*/
|
|
50
|
-
export interface IFilterGroupingInfoListByColumnSettings {
|
|
51
|
-
hasDateTime?: boolean;
|
|
52
|
-
hasDistinctDate?: boolean;
|
|
53
|
-
hasDistinctDateTime?: boolean;
|
|
54
|
-
isExpressionCategorizable?: boolean;
|
|
55
|
-
hasImageUploadAnalysis?: boolean;
|
|
56
|
-
}
|
|
57
|
-
export declare const DEFAULT_FILTERS_GROUPING_INFO_BY_COLUMN_SETTINGS: IFilterGroupingInfoListByColumnSettings;
|
|
58
|
-
/**
|
|
59
|
-
* Settings object for the FilterResources Grouping info by column type function
|
|
60
|
-
*/
|
|
61
|
-
export type IFilterGroupingInfoByColumnTypeSettings = IFilterGroupingInfoListByColumnSettings;
|
|
62
|
-
/**
|
|
63
|
-
* Settings object for the FilterResources Grouping info by filter function
|
|
64
|
-
*/
|
|
65
|
-
export type IFilterGroupingInfoByFilterSettings = IFilterGroupingInfoListByColumnSettings;
|
|
66
|
-
/**
|
|
67
|
-
* Settings object for the FilterBuilder getGrouping function
|
|
68
|
-
*/
|
|
69
|
-
export interface IFilterFilterGroupingSettings extends IFilterGroupingInfoListByColumnSettings {
|
|
70
|
-
/**
|
|
71
|
-
* flag to enable strict validation for filter creation
|
|
72
|
-
*/
|
|
73
|
-
strictValidation?: boolean;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Settings object for the Merge Filter functions
|
|
77
|
-
*/
|
|
78
|
-
export type IFilterMergeSettings = IFilterAddSettings;
|
|
79
|
-
/**
|
|
80
|
-
* Settings object for the Replace Param function
|
|
81
|
-
*/
|
|
82
|
-
export type IFilterReplaceParamSettings = IFilterParamSettings & IFilterAddSettings & {
|
|
83
|
-
addingInSameIndex?: boolean;
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* The object to return for the findLastIndex function
|
|
87
|
-
*/
|
|
88
|
-
export interface IFilterFindLastIndexReturn {
|
|
89
|
-
index: number;
|
|
90
|
-
nextToColumnFilter: boolean;
|
|
91
|
-
nextToDatasetFilter: boolean;
|
|
92
|
-
nextToScopeFilter: boolean;
|
|
93
|
-
}
|
|
94
|
-
//# sourceMappingURL=filter-functions.resources.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-functions.resources.d.ts","sourceRoot":"","sources":["../../../src/resources/filter-functions.resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,M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f,SAAQ,uCAAuC;IAC/C;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,oBAAoB,GAC5D,kBAAkB,GAAG;IAAE,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,OAAO,CAAC;IAC5B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,iBAAiB,EAAE,OAAO,CAAC;CAC5B"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { COLUMN, IGeneralInfo } from "@qrvey/utils";
|
|
2
|
-
import { IFilterValidator } from "./filter-validators.resources";
|
|
3
|
-
export type IFilterGrouping = FILTER_GROUPING;
|
|
4
|
-
export type IFilterGroupingInfo = IGeneralInfo<IFilterGrouping>;
|
|
5
|
-
export type IColumnTypeWithGrouping = COLUMN.DATE | COLUMN.DATE_FORMULA | COLUMN.TEXTFIELD | COLUMN.LONGTEXT | COLUMN.IMAGEUPLOAD | COLUMN.FILEUPLOAD | COLUMN.EXPRESSION | COLUMN.NAME | COLUMN.USADDRESS | COLUMN.ADDRESS | COLUMN.LOOKUP;
|
|
6
|
-
export type IFilterGroupingInfoByColumnType = {
|
|
7
|
-
[key in IColumnTypeWithGrouping]: IFilterGroupingInfo[];
|
|
8
|
-
};
|
|
9
|
-
export declare enum FILTER_GROUPING {
|
|
10
|
-
LOOKUP_DISPLAY = "display",
|
|
11
|
-
LOOKUP_VALUE = "value",
|
|
12
|
-
DAY = "day",
|
|
13
|
-
MONTH = "month",
|
|
14
|
-
QUARTER = "quarter",
|
|
15
|
-
WEEK = "week",
|
|
16
|
-
YEAR = "year",
|
|
17
|
-
HOUR = "hour",
|
|
18
|
-
MINUTE = "minute",
|
|
19
|
-
SECOND = "second",
|
|
20
|
-
YEAR_QUARTER = "quarter_only",
|
|
21
|
-
YEAR_MONTH = "month_only",
|
|
22
|
-
MONTH_DAY = "day_only",
|
|
23
|
-
DAY_HOUR = "hour_only",
|
|
24
|
-
HOUR_MINUTE = "minute_only",
|
|
25
|
-
MINUTE_SECOND = "second_only",
|
|
26
|
-
TEXTFIELD_WORDS = "words",
|
|
27
|
-
TEXTFIELD_KEYPHRASES = "keywords",
|
|
28
|
-
TEXTFIELD_SENTIMENTS = "sentiment",
|
|
29
|
-
TEXTFIELD_ENTITIES = "entitiestype",
|
|
30
|
-
FILEUPLOAD_FILESIZE = "fileSize",
|
|
31
|
-
FILEUPLOAD_FILETYPE = "fileType",
|
|
32
|
-
IMAGEUPLOAD_IMAGEWORDS = "analysis",
|
|
33
|
-
EXPRESSION_POSITIVE = "positive",
|
|
34
|
-
EXPRESSION_NEGATIVE = "negative",
|
|
35
|
-
NAME_FIRST = "first_name",
|
|
36
|
-
NAME_LAST = "last_name",
|
|
37
|
-
ADDRESS_STREET = "street_address",
|
|
38
|
-
ADDRESS_CITY = "city",
|
|
39
|
-
ADDRESS_STATE = "state",
|
|
40
|
-
ADDRESS_POSTAL = "postal_code",
|
|
41
|
-
ADDRESS_COUNTRY = "country",
|
|
42
|
-
USADDRESS_LINE_1 = "address_line_1",
|
|
43
|
-
USADDRESS_LINE_2 = "address_line_2"
|
|
44
|
-
}
|
|
45
|
-
export declare enum FILTER_GROUPING_LABEL {
|
|
46
|
-
LOOKUP_DISPLAY = "display",
|
|
47
|
-
LOOKUP_VALUE = "value",
|
|
48
|
-
DAY = "Full Date",
|
|
49
|
-
MONTH = "Month, Year",
|
|
50
|
-
QUARTER = "Quarter, Year",
|
|
51
|
-
WEEK = "Week, Year",
|
|
52
|
-
YEAR = "Year",
|
|
53
|
-
HOUR = "Date, Hour",
|
|
54
|
-
MINUTE = "Date, Minute",
|
|
55
|
-
SECOND = "Date, Second",
|
|
56
|
-
YEAR_QUARTER = "Quarter",
|
|
57
|
-
YEAR_MONTH = "Month",
|
|
58
|
-
MONTH_DAY = "Day (Month)",
|
|
59
|
-
DAY_HOUR = "Hour",
|
|
60
|
-
HOUR_MINUTE = "Minute",
|
|
61
|
-
MINUTE_SECOND = "Second",
|
|
62
|
-
TEXTFIELD_WORDS = "Words",
|
|
63
|
-
TEXTFIELD_KEYPHRASES = "Keyphrases",
|
|
64
|
-
TEXTFIELD_SENTIMENTS = "Sentiments",
|
|
65
|
-
TEXTFIELD_ENTITIES = "Entities",
|
|
66
|
-
FILEUPLOAD_FILESIZE = "File Size",
|
|
67
|
-
FILEUPLOAD_FILETYPE = "File Type",
|
|
68
|
-
IMAGEUPLOAD_IMAGESIZE = "Image Size",
|
|
69
|
-
IMAGEUPLOAD_IMAGETYPE = "Image Type",
|
|
70
|
-
IMAGEUPLOAD_IMAGEWORDS = "Image Words",
|
|
71
|
-
IMAGEUPLOAD_IMAGECATEGORY = "Categories",
|
|
72
|
-
EXPRESSION_POSITIVE = "Positive",
|
|
73
|
-
EXPRESSION_NEGATIVE = "Negative",
|
|
74
|
-
NAME_FIRST = "First Name",
|
|
75
|
-
NAME_LAST = "Last Name",
|
|
76
|
-
ADDRESS_STREET = "Street",
|
|
77
|
-
ADDRESS_CITY = "City",
|
|
78
|
-
ADDRESS_STATE = "State/Region/Province",
|
|
79
|
-
ADDRESS_POSTAL = "Postal/Zip Code",
|
|
80
|
-
ADDRESS_COUNTRY = "Country",
|
|
81
|
-
USADDRESS_LINE_1 = "Address 1",
|
|
82
|
-
USADDRESS_LINE_2 = "Address 2",
|
|
83
|
-
USADDRESS_STATE = "State",
|
|
84
|
-
USADDRESS_POSTAL = "Zip Code"
|
|
85
|
-
}
|
|
86
|
-
export declare const FILTER_GROUPINGS: IFilterGrouping[];
|
|
87
|
-
export declare const FILTER_GROUPING_INFO: {
|
|
88
|
-
[key in IFilterGrouping]: IFilterGroupingInfo;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* List of columns allowed to set grouping filters
|
|
92
|
-
*/
|
|
93
|
-
export declare const FILTER_GROUPING_COLUMNS: IColumnTypeWithGrouping[];
|
|
94
|
-
/**
|
|
95
|
-
* List of validator allowed to set grouping filters
|
|
96
|
-
*/
|
|
97
|
-
export declare const FILTER_GROUPING_VALIDATORS: IFilterValidator[];
|
|
98
|
-
export declare const FILTER_GROUPING_INFO_LIST: IFilterGroupingInfo[];
|
|
99
|
-
export declare const FILTER_GROUPING_INFO_BY_COLUMN_TYPE: IFilterGroupingInfoByColumnType;
|
|
100
|
-
export declare const FILTER_GROUPING_INFO_BY_DATE_TIME: IFilterGroupingInfo[];
|
|
101
|
-
export declare const FILTER_GROUPING_INFO_BY_DISTINCT_DATE: IFilterGroupingInfo[];
|
|
102
|
-
export declare const FILTER_GROUPING_INFO_BY_DISTINCT_DATE_TIME: IFilterGroupingInfo[];
|
|
103
|
-
//# sourceMappingURL=filter-grouping.resources.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-grouping.resources.d.ts","sourceRoot":"","sources":["../../../src/resources/filter-grouping.resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAEL,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC;AAEhE,MAAM,MAAM,uBAAuB,GAC/B,MAAM,CAAC,IAAI,GACX,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,SAAS,GAChB,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,WAAW,GAClB,MAAM,CAAC,UAAU,GACjB,MAAM,CAAC,UAAU,GACjB,MAAM,CAAC,IAAI,GACX,MAAM,CAAC,SAAS,GAChB,MAAM,CAAC,OAAO,GACd,MAAM,CAAC,MAAM,CAAC;AAElB,MA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,qBAAqB,eAAe;IACpC,qBAAqB,eAAe;IACpC,sBAAsB,gBAAgB;IACtC,yBAAyB,eAAe;IACxC,mBAAmB,aAAa;IAChC,mBAAmB,aAAa;IAGhC,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,cAAc,WAAW;IACzB,YAAY,SAAS;IACrB,aAAa,0BAA0B;IACvC,cAAc,oBAAoB;IAClC,eAAe,YAAY;IAC3B,gBAAgB,cAAc;IAC9B,gBAAgB,cAAc;IAC9B,eAAe,UAAU;IACzB,gBAAgB,aAAa;CAC9B;AAED,eAAO,MAAM,gBAAgB,EAAE,eAAe,EAmC7C,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE;KAChC,GAAG,IAAI,eAAe,GAAG,mBAAmB;CA8M9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,uBAAuB,EAY5D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,gBAAgB,EAaxD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,mBAAmB,EAmC1D,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,+BA+D/C,CAAC;AAEJ,eAAO,MAAM,iCAAiC,EAAE,mBAAmB,EAIlE,CAAC;AAEF,eAAO,MAAM,qCAAqC,EAAE,mBAAmB,EAItE,CAAC;AAEF,eAAO,MAAM,0CAA0C,EAAE,mBAAmB,EAKzE,CAAC"}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { IFilterGrouping } from "./filter-grouping.resources";
|
|
2
|
-
import { IFilterOperator } from "./filter-operators.resources";
|
|
3
|
-
import { IFilterScope } from "./filter-scopes.resources";
|
|
4
|
-
import { IFilterValueRelativeDate } from "./filter-values.resources";
|
|
5
|
-
export type IFilterLogicValidator = FILTER_LOGIC_VALIDATOR;
|
|
6
|
-
/**
|
|
7
|
-
* The structure of the logic
|
|
8
|
-
*/
|
|
9
|
-
export interface IFilterLogic {
|
|
10
|
-
/**
|
|
11
|
-
* The filter structure
|
|
12
|
-
*/
|
|
13
|
-
filters: IFilterLogicFilter[];
|
|
14
|
-
/**
|
|
15
|
-
* The Scope type
|
|
16
|
-
*/
|
|
17
|
-
scope: IFilterScope;
|
|
18
|
-
/**
|
|
19
|
-
* The scope ID
|
|
20
|
-
*/
|
|
21
|
-
scopeid?: string;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Structure of nested filters
|
|
25
|
-
*/
|
|
26
|
-
export interface IFilterLogicFilter {
|
|
27
|
-
/**
|
|
28
|
-
* The operator of the expressions
|
|
29
|
-
*/
|
|
30
|
-
operator: IFilterOperator;
|
|
31
|
-
/**
|
|
32
|
-
* Nested of filters or an filter expression
|
|
33
|
-
*/
|
|
34
|
-
expressions: IFilterLogicFilter[] | IFilterLogicExpression[];
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Structure of the filter expression
|
|
38
|
-
*/
|
|
39
|
-
export interface IFilterLogicExpression {
|
|
40
|
-
/**
|
|
41
|
-
* Flag to apply the expression.
|
|
42
|
-
*/
|
|
43
|
-
enabled: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* The grouping type. Special property for Date Groupings.
|
|
46
|
-
*/
|
|
47
|
-
groupValue?: IFilterGrouping;
|
|
48
|
-
/**
|
|
49
|
-
* The Column ID
|
|
50
|
-
*/
|
|
51
|
-
questionid: string;
|
|
52
|
-
/**
|
|
53
|
-
* Grouping types. Special for Complex/Compound type groupings.
|
|
54
|
-
*/
|
|
55
|
-
property?: IFilterGrouping | string;
|
|
56
|
-
/**
|
|
57
|
-
* Validation Type to operate the expression values
|
|
58
|
-
*/
|
|
59
|
-
validationType?: IFilterLogicValidator;
|
|
60
|
-
/**
|
|
61
|
-
* List of values/statements to apply (the conditions).
|
|
62
|
-
*/
|
|
63
|
-
value?: IFilterLogicExpressionValue[];
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Types of expression values
|
|
67
|
-
*/
|
|
68
|
-
export type IFilterLogicExpressionValue = IFilterLogicExpressionValueRegular | IFilterLogicExpressionValueRange | IFilterLogicExpressionValueRelative | IFilterLogicExpressionValueRanking;
|
|
69
|
-
/**
|
|
70
|
-
* Type for the expression regular value
|
|
71
|
-
*/
|
|
72
|
-
export type IFilterLogicExpressionValueRegular = string;
|
|
73
|
-
/**
|
|
74
|
-
* Type for the expression regular value
|
|
75
|
-
*/
|
|
76
|
-
export type IFilterLogicExpressionValueRelative = IFilterValueRelativeDate;
|
|
77
|
-
/**
|
|
78
|
-
* Structure for the expression range values
|
|
79
|
-
*/
|
|
80
|
-
export interface IFilterLogicExpressionValueRange {
|
|
81
|
-
/**
|
|
82
|
-
* Greater than number
|
|
83
|
-
*/
|
|
84
|
-
gt?: string;
|
|
85
|
-
/**
|
|
86
|
-
* Greater than or equal number
|
|
87
|
-
*/
|
|
88
|
-
gte?: string;
|
|
89
|
-
/**
|
|
90
|
-
* Lower than number
|
|
91
|
-
*/
|
|
92
|
-
lt?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Lower than or equal number
|
|
95
|
-
*/
|
|
96
|
-
lte?: string;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Structure for the expression ranking values
|
|
100
|
-
*/
|
|
101
|
-
export interface IFilterLogicExpressionValueRanking {
|
|
102
|
-
/**
|
|
103
|
-
* The position in the rank, starting at 0.
|
|
104
|
-
*/
|
|
105
|
-
position: number;
|
|
106
|
-
/**
|
|
107
|
-
* The value to filter
|
|
108
|
-
*/
|
|
109
|
-
value: string;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Enumartion of filter Logic validators
|
|
113
|
-
*/
|
|
114
|
-
export declare enum FILTER_LOGIC_VALIDATOR {
|
|
115
|
-
EQUALS = "EQUAL",
|
|
116
|
-
NOT_EQUAL = "NOT_EQUAL",
|
|
117
|
-
CONTAINS = "CONTAIN",
|
|
118
|
-
NOT_CONTAIN = "NOT_CONTAIN",
|
|
119
|
-
ENDS_WITH = "END_WITH",
|
|
120
|
-
NOT_END_WITH = "NOT_END_WITH",
|
|
121
|
-
STARTS_WITH = "START_WITH",
|
|
122
|
-
NOT_START_WITH = "NOT_START_WITH",
|
|
123
|
-
BETWEEN = "BETWEEN",
|
|
124
|
-
LESS_THAN = "LESS_THAN",
|
|
125
|
-
LESS_THAN_EQUAL = "LESS_THAN_OR_EQUAL",
|
|
126
|
-
GREATER_THAN = "GREATER_THAN",
|
|
127
|
-
GREATER_THAN_EQUAL = "GREATER_THAN_OR_EQUAL",
|
|
128
|
-
IS_NULL = "IS_EMPTY",
|
|
129
|
-
IS_NOT_NULL = "IS_NOT_EMPTY",
|
|
130
|
-
RANGE = "RANGE",
|
|
131
|
-
NOT_RANGE = "NOT_RANGE",
|
|
132
|
-
IN = "IN",
|
|
133
|
-
RELATIVE = "RELATIVE"
|
|
134
|
-
}
|
|
135
|
-
//# sourceMappingURL=filter-logic.resources.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-logic.resources.d.ts","sourceRoot":"","sources":["../../../src/resources/filter-logic.resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;IAC1B;;OAEG;IACH,WAAW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C,YAAY,iBAAiB;IAC7B,kBAAkB,0BAA0B;IAC5C,OAAO,aAAa;IACpB,WAAW,iBAAiB;IAC5B,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,EAAE,OAAO;IACT,QAAQ,aAAa;CACtB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IGeneralInfo } from "@qrvey/utils";
|
|
2
|
-
export type IFilterOperator = FILTER_OPERATOR;
|
|
3
|
-
export declare enum FILTER_OPERATOR {
|
|
4
|
-
AND = "AND",
|
|
5
|
-
OR = "OR"
|
|
6
|
-
}
|
|
7
|
-
export declare enum FILTER_OPERATOR_LABEL {
|
|
8
|
-
AND = "And",
|
|
9
|
-
OR = "Or"
|
|
10
|
-
}
|
|
11
|
-
export declare const FILTER_OPERATORS: IFilterOperator[];
|
|
12
|
-
export declare const FILTER_OPERATOR_INFO: {
|
|
13
|
-
[key in IFilterOperator]: IGeneralInfo<IFilterOperator>;
|
|
14
|
-
};
|
|
15
|
-
export declare const FILTER_OPERATOR_INFO_LIST: IGeneralInfo<IFilterOperator>[];
|
|
16
|
-
//# sourceMappingURL=filter-operators.resources.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-operators.resources.d.ts","sourceRoot":"","sources":["../../../src/resources/filter-operators.resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC;AAE9C,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,EAAE,OAAO;CACV;AAED,oBAAY,qBAAqB;IAC/B,GAAG,QAAQ;IACX,EAAE,OAAO;CACV;AAED,eAAO,MAAM,gBAAgB,EAAE,eAAe,EAG7C,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE;KAChC,GAAG,IAAI,eAAe,GAAG,YAAY,CAAC,eAAe,CAAC;CAcxD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,YAAY,CAAC,eAAe,CAAC,EAGpE,CAAC"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { IFilterScope } from "./filter-scopes.resources";
|
|
2
|
-
import { IFilter } from "./filters.resources";
|
|
3
|
-
export interface IFilterPanelInteractiveTable {
|
|
4
|
-
/**
|
|
5
|
-
* Collection of the interactivity Datasets settings
|
|
6
|
-
*/
|
|
7
|
-
interactDatasets?: IFilterPanelInteractiveDatasetTable[];
|
|
8
|
-
/**
|
|
9
|
-
* Collection of the interactivity Scope settings
|
|
10
|
-
*/
|
|
11
|
-
interactScopes?: IFilterPanelInteractiveScopeTable[];
|
|
12
|
-
/**
|
|
13
|
-
* Scopes Settings
|
|
14
|
-
*/
|
|
15
|
-
scopesSettings?: IFilterPanelInteractiveScopeSetting[];
|
|
16
|
-
/**
|
|
17
|
-
* Displays/Hides the panel (Interact)
|
|
18
|
-
*/
|
|
19
|
-
displayed?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Collapses/Expands the Panel
|
|
22
|
-
*/
|
|
23
|
-
collapsed?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Allows to display the related color for each scope
|
|
26
|
-
*/
|
|
27
|
-
colorized?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* The Panel Default View (Interact)
|
|
30
|
-
*/
|
|
31
|
-
defaultCollapsed?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Displays/Hides the icons linked with each scope
|
|
34
|
-
*/
|
|
35
|
-
iconsDisplayed?: boolean;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Structure for the resulting conversion of the UI filter
|
|
39
|
-
*/
|
|
40
|
-
export interface IFilterUIToFilter {
|
|
41
|
-
filters: IFilter[];
|
|
42
|
-
interactiveTable?: IFilterPanelInteractiveTable;
|
|
43
|
-
}
|
|
44
|
-
interface IFilterPanelInteractiveGeneral {
|
|
45
|
-
/**
|
|
46
|
-
* Flag to collapse or expand the related section
|
|
47
|
-
*/
|
|
48
|
-
collapsed: boolean;
|
|
49
|
-
}
|
|
50
|
-
interface IFilterPanelInteractiveScopeTable extends IFilterPanelInteractiveGeneral {
|
|
51
|
-
/**
|
|
52
|
-
* The Scope ID
|
|
53
|
-
*/
|
|
54
|
-
scopeId?: string;
|
|
55
|
-
/**
|
|
56
|
-
* The Scope Type
|
|
57
|
-
*/
|
|
58
|
-
scope: IFilterScope;
|
|
59
|
-
}
|
|
60
|
-
interface IFilterPanelInteractiveDatasetTable extends IFilterPanelInteractiveScopeTable {
|
|
61
|
-
/**
|
|
62
|
-
* The Dataset ID
|
|
63
|
-
*/
|
|
64
|
-
datasetId: string;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Structure for a single scope settings
|
|
68
|
-
*/
|
|
69
|
-
interface IFilterPanelInteractiveScopeSetting {
|
|
70
|
-
/**
|
|
71
|
-
* Hexadecimal/Rgba/Name color to be applied in the scope
|
|
72
|
-
*/
|
|
73
|
-
color?: string;
|
|
74
|
-
/**
|
|
75
|
-
* The Scope Type
|
|
76
|
-
*/
|
|
77
|
-
scope: IFilterScope;
|
|
78
|
-
}
|
|
79
|
-
export {};
|
|
80
|
-
//# sourceMappingURL=filter-panel.interfaces.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-panel.interfaces.d.ts","sourceRoot":"","sources":["../../../src/resources/filter-panel.interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,gBAAgB,CAAC,EAAE,mCAAmC,EAAE,CAAC;IACzD;;OAEG;IACH,cAAc,CAAC,EAAE,iCAAiC,EAAE,CAAC;IACrD;;OAEG;IACH,cAAc,CAAC,EAAE,mCAAmC,EAAE,CAAC;IACvD;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,gBAAgB,CAAC,EAAE,4BAA4B,CAAC;CACjD;AAED,UAAU,8BAA8B;IACtC;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,iCACR,SAAQ,8BAA8B;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;CACrB;AAED,UAAU,mCACR,SAAQ,iCAAiC;IACzC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,UAAU,mCAAmC;IAC3C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;CACrB"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { IGeneralInfo } from "@qrvey/utils";
|
|
2
|
-
/**
|
|
3
|
-
* The type for the Filter Scope types
|
|
4
|
-
*/
|
|
5
|
-
export type IFilterScope = FILTER_SCOPE;
|
|
6
|
-
/**
|
|
7
|
-
* The type for the information of the filter scope
|
|
8
|
-
*/
|
|
9
|
-
export type IFilterSCopeInfo = IGeneralInfo<IFilterScope>;
|
|
10
|
-
/**
|
|
11
|
-
* Structure for the couple Scope Type and its ID
|
|
12
|
-
*/
|
|
13
|
-
export interface IFilterScopeIdentifier {
|
|
14
|
-
scope: IFilterScope;
|
|
15
|
-
scopeId?: string;
|
|
16
|
-
datasetId?: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Enumeration of filter scope types
|
|
20
|
-
*/
|
|
21
|
-
export declare enum FILTER_SCOPE {
|
|
22
|
-
ADMIN = "ADMIN",
|
|
23
|
-
FLOW = "FLOW",
|
|
24
|
-
DATA = "DATA",
|
|
25
|
-
GLOBAL = "GLOBAL",
|
|
26
|
-
PAGE = "PAGE",
|
|
27
|
-
TAB = "TAB",
|
|
28
|
-
CONTAINER = "CONTAINER",
|
|
29
|
-
DEFAULT = "DEFAULT",
|
|
30
|
-
CHART = "CHART",
|
|
31
|
-
ACTION = "ACTION"
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Enumeration of filter scope labels
|
|
35
|
-
*/
|
|
36
|
-
export declare enum FILTER_SCOPE_LABEL {
|
|
37
|
-
ADMIN = "Admin",
|
|
38
|
-
FLOW = "Automation",
|
|
39
|
-
DATA = "Data",
|
|
40
|
-
GLOBAL = "Global",
|
|
41
|
-
PAGE = "Dashboard",
|
|
42
|
-
TAB = "Tab",
|
|
43
|
-
CONTAINER = "Container",
|
|
44
|
-
DEFAULT = "Default",
|
|
45
|
-
CHART = "Panel",
|
|
46
|
-
ACTION = "Action"
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* List of filter scope types
|
|
50
|
-
*/
|
|
51
|
-
export declare const FILTER_SCOPES: IFilterScope[];
|
|
52
|
-
/**
|
|
53
|
-
* Filter scope information by Scope types
|
|
54
|
-
*/
|
|
55
|
-
export declare const FILTER_SCOPE_INFO: {
|
|
56
|
-
[key in IFilterScope]: IFilterSCopeInfo;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* List of filter scope information
|
|
60
|
-
*/
|
|
61
|
-
export declare const FILTER_SCOPE_INFO_LIST: IFilterSCopeInfo[];
|
|
62
|
-
//# sourceMappingURL=filter-scopes.resources.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-scopes.resources.d.ts","sourceRoot":"","sources":["../../../src/resources/filter-scopes.resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,IAAI,eAAe;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,cAAc;IAClB,GAAG,QAAQ;IACX,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,YAAY,EAWvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE;KAC7B,GAAG,IAAI,YAAY,GAAG,gBAAgB;CA8DxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,gBAAgB,EAWpD,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IGeneralInfo } from "@qrvey/utils";
|
|
2
|
-
export type IFilterValidation = FILTER_VALIDATION;
|
|
3
|
-
export type IFilterValidationInfo = IGeneralInfo<IFilterValidation>;
|
|
4
|
-
export declare enum FILTER_VALIDATION {
|
|
5
|
-
EMPTY_FILTER = "EMPTY_FILTER",
|
|
6
|
-
EMPTY_VALUES = "EMPTY_VALUES",
|
|
7
|
-
NOT_EMPTY_VALUES = "NOT_EMPTY_VALUES",
|
|
8
|
-
REPEATED_VALUE = "REPEATED_VALUE",
|
|
9
|
-
INVALID_INPUT = "INVALID_INPUT",
|
|
10
|
-
INVALID_INPUT_DATE = "INVALID_INPUT_DATE",
|
|
11
|
-
INVALID_INPUT_NUMERIC = "INVALID_INPUT_NUMERIC",
|
|
12
|
-
MIN_LIMIT = "MIN_LIMIT",
|
|
13
|
-
MIN_LIMIT_DATE = "MIN_LIMIT_DATE",
|
|
14
|
-
MAX_LIMIT = "MAX_LIMIT",
|
|
15
|
-
MAX_LIMIT_DATE = "MAX_LIMIT_DATE"
|
|
16
|
-
}
|
|
17
|
-
export declare const FILTER_VALIDATION_INFO: {
|
|
18
|
-
[key in IFilterValidation]: IFilterValidationInfo;
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=filter-validation.resources.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-validation.resources.d.ts","sourceRoot":"","sources":["../../../src/resources/filter-validation.resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AAElD,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,iBAAiB,CAAC,CAAC;AAEpE,oBAAY,iBAAiB;IAC3B,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,kBAAkB,uBAAuB;IACzC,qBAAqB,0BAA0B;IAC/C,SAAS,cAAc;IACvB,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,cAAc,mBAAmB;CAClC;AAED,eAAO,MAAM,sBAAsB,EAAE;KAClC,GAAG,IAAI,iBAAiB,GAAG,qBAAqB;CAoElD,CAAC"}
|