@qrvey/filters 0.0.44 → 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 +33 -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 +33 -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 -268
- 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 -821
- 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,21 +0,0 @@
|
|
|
1
|
-
import { IDataset } from "@qrvey/utils";
|
|
2
|
-
import { IFilterPanelInteractiveTable } from "../resources/filter-panel.interfaces";
|
|
3
|
-
import { IFilterVisual } from "../resources/filter-visual.resources";
|
|
4
|
-
import { IFilter } from "../resources/filters.resources";
|
|
5
|
-
/**
|
|
6
|
-
* Generates a visual filter structure from the filter collection.
|
|
7
|
-
* @param filters Array of filters
|
|
8
|
-
* @param datasets Array of the dataset info
|
|
9
|
-
* @param interactiveTable table of interaction properties for each section
|
|
10
|
-
* @returns a Filter Data structure
|
|
11
|
-
*/
|
|
12
|
-
export declare function filterToVisual(filters: IFilter[], datasets?: IDataset[], interactiveTable?: IFilterPanelInteractiveTable): IFilterVisual | undefined;
|
|
13
|
-
/**
|
|
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
|
|
19
|
-
*/
|
|
20
|
-
export declare function legacyVisualToInteractiveTable(visual: IFilterVisual, interactiveTable?: IFilterPanelInteractiveTable): IFilterPanelInteractiveTable | undefined;
|
|
21
|
-
//# sourceMappingURL=filter-adapt.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IDataset, IFUData } from "@qrvey/utils";
|
|
2
|
-
import { IFilterPanelInteractiveTable } from "../resources/filter-panel.interfaces";
|
|
3
|
-
import { IFilter } from "../resources/filters.resources";
|
|
4
|
-
/**
|
|
5
|
-
* Generates a legacy visual filter structure from the filter collection.
|
|
6
|
-
* @param filters Array of filters
|
|
7
|
-
* @param datasets Array of the dataset info
|
|
8
|
-
* @param interactiveTable table of interaction properties for each section
|
|
9
|
-
* @returns a Filter Data structure
|
|
10
|
-
*/
|
|
11
|
-
export declare function filterToLegacyVisual(filters: IFilter[], datasets?: IDataset[], interactiveTable?: IFilterPanelInteractiveTable): IFUData | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Generates a legacy visual filter structure from the filter collection.
|
|
14
|
-
* @param filterData the legacy filter
|
|
15
|
-
* @returns a Filter collection
|
|
16
|
-
*/
|
|
17
|
-
export declare function legacyVisualToFilter(filterData: IFUData): IFilter[];
|
|
18
|
-
/**
|
|
19
|
-
* Gets the Interactive Table object from the legacy visual filters
|
|
20
|
-
* If an interactive table object is given, it will be merged with the new one
|
|
21
|
-
* @param legacyVisual the legacy visual filters
|
|
22
|
-
* @param interactiveTable the interactive table object
|
|
23
|
-
* @returns the interactive table object
|
|
24
|
-
*/
|
|
25
|
-
export declare function legacyVisualToInteractiveTable(legacyVisual: IFUData, interactiveTable?: IFilterPanelInteractiveTable): IFilterPanelInteractiveTable | undefined;
|
|
26
|
-
//# sourceMappingURL=filter-adapt.legacy.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-adapt.legacy.helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/filter-adapt.legacy.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,QAAQ,EACR,OAAO,EAMR,MAAM,cAAc,CAAC;AAMtB,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAEpF,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEzD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAAE,EAClB,QAAQ,GAAE,QAAQ,EAAO,EACzB,gBAAgB,CAAC,EAAE,4BAA4B,GAC9C,OAAO,GAAG,SAAS,CASrB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,OAAO,GAAG,OAAO,EAAE,CAyCnE;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC5C,YAAY,EAAE,OAAO,EACrB,gBAAgB,CAAC,EAAE,4BAA4B,GAC9C,4BAA4B,GAAG,SAAS,CAgC1C"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { IFilterLogic, IFilterLogicExpression, IFilterLogicExpressionValue } from "../resources/filter-logic.resources";
|
|
2
|
-
import { IFilterUI, IFilterVisual } from "../resources/filter-visual.resources";
|
|
3
|
-
import { IFilter } from "../resources/filters.resources";
|
|
4
|
-
/**
|
|
5
|
-
* Generates a Logic structure from the filter collection
|
|
6
|
-
* @param filters the filter collection
|
|
7
|
-
* @returns the logic structure
|
|
8
|
-
*/
|
|
9
|
-
export declare function filterToLogic(filters: IFilter[]): IFilterLogic[];
|
|
10
|
-
/**
|
|
11
|
-
* Generates a Logic structure from the visual filter structure
|
|
12
|
-
* @param visual the visual filter structure
|
|
13
|
-
* @returns the logic structure
|
|
14
|
-
*/
|
|
15
|
-
export declare function visualToLogic(visual: IFilterVisual): IFilterLogic[];
|
|
16
|
-
/**
|
|
17
|
-
* Builds filter expression by the filter data.
|
|
18
|
-
* - If the resulting value array is empty the enabled property will be false.
|
|
19
|
-
* @param filter The filter to transform
|
|
20
|
-
* @returns a filter expression
|
|
21
|
-
*/
|
|
22
|
-
export declare function buildLogicExpression(filter: IFilterUI): IFilterLogicExpression;
|
|
23
|
-
/**
|
|
24
|
-
* Gets the expresion values in the logic format
|
|
25
|
-
* @param filter The filter structure
|
|
26
|
-
* @returns A collection of backend expression value
|
|
27
|
-
*/
|
|
28
|
-
export declare function getFilterLogicValues(filter: IFilterUI): IFilterLogicExpressionValue[];
|
|
29
|
-
//# sourceMappingURL=filter-adapt.logic.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-adapt.logic.helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/filter-adapt.logic.helpers.ts"],"names":[],"mappings":"AAiBA,OAAO,EAEL,YAAY,EACZ,sBAAsB,EACtB,2BAA2B,EAO5B,MAAM,qCAAqC,CAAC;AAe7C,OAAO,EACL,SAAS,EACT,aAAa,EAGd,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAe,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEtE;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,YAAY,EAAE,CAKhE;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,aAAa,GAAG,YAAY,EAAE,CAgBnE;AAkID;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,SAAS,GAChB,sBAAsB,CAaxB;AAsFD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,SAAS,GAChB,2BAA2B,EAAE,CA0C/B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IFilterFilterGroupingSettings } from "../resources/filter-functions.resources";
|
|
2
|
-
import { IFilterGrouping } from "../resources/filter-grouping.resources";
|
|
3
|
-
import { IFilter } from "../resources/filters.resources";
|
|
4
|
-
/**
|
|
5
|
-
* Gets the filter grouping for a given filter.
|
|
6
|
-
* @param filter The filter to get the grouping for.
|
|
7
|
-
* @param settings Settings for the filter grouping.
|
|
8
|
-
* @returns The filter grouping.
|
|
9
|
-
*/
|
|
10
|
-
export declare function getFilterGrouping(filter: Partial<IFilter>, settings?: IFilterFilterGroupingSettings): IFilterGrouping | undefined;
|
|
11
|
-
//# sourceMappingURL=filter-builder.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-builder.helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/filter-builder.helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAkB,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,EACxB,QAAQ,CAAC,EAAE,6BAA6B,GACvC,eAAe,GAAG,SAAS,CAa7B"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { IFilterAddSettings, IFilterBuilderEditSettings, IFilterCreateSettings, IFilterGroupingInfoListByColumnSettings, IFilterParamSettings, IFilterReplaceParamSettings } from "../resources/filter-functions.resources";
|
|
2
|
-
/**
|
|
3
|
-
* Gets a complete settings for the edit filters settings
|
|
4
|
-
* - Fills the missing properties with default ones
|
|
5
|
-
* @param settings the settings
|
|
6
|
-
* @returns the complete settings
|
|
7
|
-
*/
|
|
8
|
-
export declare function getEditFiltersSettings(settings?: IFilterBuilderEditSettings): IFilterBuilderEditSettings;
|
|
9
|
-
/**
|
|
10
|
-
* Gets a complete settings for the filter-create settings
|
|
11
|
-
* @param settings the filter-create settings
|
|
12
|
-
* @returns the complete filter-create settings
|
|
13
|
-
*/
|
|
14
|
-
export declare function getFilterAddSettings(settings?: IFilterAddSettings): IFilterAddSettings;
|
|
15
|
-
/**
|
|
16
|
-
* Gets a complete settings for the filter-create settings
|
|
17
|
-
* @param settings the filter-create settings
|
|
18
|
-
* @returns the complete filter-create settings
|
|
19
|
-
*/
|
|
20
|
-
export declare function getFilterCreateSettings(settings?: IFilterCreateSettings): IFilterCreateSettings;
|
|
21
|
-
/**
|
|
22
|
-
* Gets a complete settings for the info grouping by column settings
|
|
23
|
-
* - Fills the missing properties with default ones
|
|
24
|
-
* @param settings the settings
|
|
25
|
-
* @returns the complete settings
|
|
26
|
-
*/
|
|
27
|
-
export declare function getInfoGroupingsByColumnTypeSettings(settings?: IFilterGroupingInfoListByColumnSettings): IFilterGroupingInfoListByColumnSettings;
|
|
28
|
-
/**
|
|
29
|
-
* Gets a complete settings for the param settings
|
|
30
|
-
* - Fills the missing properties with default ones
|
|
31
|
-
* @param settings the settings
|
|
32
|
-
* @returns the complete settings
|
|
33
|
-
*/
|
|
34
|
-
export declare function getParamFiltersSettings(settings?: IFilterParamSettings): IFilterParamSettings;
|
|
35
|
-
/**
|
|
36
|
-
* Gets a complete settings for the replaceByParams settings
|
|
37
|
-
* - Fills the missing properties with default ones
|
|
38
|
-
* @param settings the settings
|
|
39
|
-
* @returns the complete settings
|
|
40
|
-
*/
|
|
41
|
-
export declare function getReplaceByParamsSettings(settings?: IFilterReplaceParamSettings): IFilterReplaceParamSettings;
|
|
42
|
-
//# sourceMappingURL=filter-settings.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-settings.helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/filter-settings.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,kBAAkB,EAClB,0BAA0B,EAC1B,qBAAqB,EACrB,uCAAuC,EACvC,oBAAoB,EACpB,2BAA2B,EAC5B,MAAM,yCAAyC,CAAC;AAEjD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,CAAC,EAAE,0BAA0B,GACpC,0BAA0B,CAQ5B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,CAAC,EAAE,kBAAkB,GAC5B,kBAAkB,CAQpB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,CAAC,EAAE,qBAAqB,GAC/B,qBAAqB,CAUvB;AAED;;;;;GAKG;AACH,wBAAgB,oCAAoC,CAClD,QAAQ,CAAC,EAAE,uCAAuC,GACjD,uCAAuC,CAkBzC;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,CAAC,EAAE,oBAAoB,GAC9B,oBAAoB,CAYtB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,CAAC,EAAE,2BAA2B,GACrC,2BAA2B,CAM7B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IFilterValidator } from "../resources/filter-validators.resources";
|
|
2
|
-
/**
|
|
3
|
-
* Checks if the given validator is a Null type.
|
|
4
|
-
* @param validator The Filter Validator
|
|
5
|
-
* @returns True: It is a Null Validator
|
|
6
|
-
*/
|
|
7
|
-
export declare function isNullValidator(validator: IFilterValidator): boolean;
|
|
8
|
-
//# sourceMappingURL=filter-validators.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-validators.helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/filter-validators.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EACjB,MAAM,0CAA0C,CAAC;AAElD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,gBAAgB,GAAG,OAAO,CAIpE"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IFilter } from "../resources/filters.resources";
|
|
2
|
-
/**
|
|
3
|
-
* Get the Filter ID by the filter structure
|
|
4
|
-
* The order of the epression ID is:
|
|
5
|
-
* - Scope Type
|
|
6
|
-
* - scope Id
|
|
7
|
-
* - dataset Id
|
|
8
|
-
* - column Id
|
|
9
|
-
* - validator
|
|
10
|
-
* - grouping
|
|
11
|
-
* - Column Aggregate
|
|
12
|
-
* - Optional Index
|
|
13
|
-
* @param filter the filter structure
|
|
14
|
-
* @param index an aditional number to add into the ID
|
|
15
|
-
* @returns a text to identify the filter
|
|
16
|
-
*/
|
|
17
|
-
export declare function getFilterId(filter: IFilter, index?: number): string;
|
|
18
|
-
//# sourceMappingURL=getFilterId.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getFilterId.d.ts","sourceRoot":"","sources":["../../../src/helpers/getFilterId.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEzD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAenE"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IColumnType } from "@qrvey/utils";
|
|
2
|
-
import { IFilterValidator } from "../resources/filter-validators.resources";
|
|
3
|
-
import { IFilterType } from "../resources/filters.resources";
|
|
4
|
-
/**
|
|
5
|
-
* Gets the filter type based on the column type and the validator
|
|
6
|
-
* @param columnType the column type
|
|
7
|
-
* @param validator the validator type
|
|
8
|
-
* @returns the filter type
|
|
9
|
-
*/
|
|
10
|
-
export declare function getFilterType(columnType: IColumnType, validator: IFilterValidator): IFilterType;
|
|
11
|
-
//# sourceMappingURL=getFilterType.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getFilterType.d.ts","sourceRoot":"","sources":["../../../src/helpers/getFilterType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,WAAW,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAGL,WAAW,EACZ,MAAM,gCAAgC,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,WAAW,EACvB,SAAS,EAAE,gBAAgB,GAC1B,WAAW,CAIb"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "./filter-adapt.helpers";
|
|
2
|
-
export * from "./filter-settings.helpers";
|
|
3
|
-
export * from "./getFilterId";
|
|
4
|
-
export * from "./getFilterType";
|
|
5
|
-
export * from "./resolveFilterConditions";
|
|
6
|
-
export * from "./utils.helpers";
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IFilterParamSettings } from "../resources/filter-functions.resources";
|
|
2
|
-
import { IFilter } from "../resources/filters.resources";
|
|
3
|
-
/**
|
|
4
|
-
* Resolves conditions to fullfill the match of the filter object
|
|
5
|
-
* @param filter the filter object
|
|
6
|
-
* @param params the params of the filter to resolve the condition
|
|
7
|
-
* @param settings the filter param settings
|
|
8
|
-
* @returns true: the conditions is fullfiled.
|
|
9
|
-
*/
|
|
10
|
-
export declare function resolveFilterConditions(filter: IFilter, params: Partial<IFilter>, settings: IFilterParamSettings): boolean;
|
|
11
|
-
//# sourceMappingURL=resolveFilterConditions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolveFilterConditions.d.ts","sourceRoot":"","sources":["../../../src/helpers/resolveFilterConditions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEzD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,EACxB,QAAQ,EAAE,oBAAoB,GAC7B,OAAO,CAcT"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IColumn, IDataset } from "@qrvey/utils";
|
|
2
|
-
/**
|
|
3
|
-
* Gets the column info by ID
|
|
4
|
-
* @param ids the ids to search the info
|
|
5
|
-
* @param ids.columnId the column ID
|
|
6
|
-
* @param ids.datasetId the dataset ID
|
|
7
|
-
* @param datasets the collection of datasets
|
|
8
|
-
* @returns the Column Info
|
|
9
|
-
*/
|
|
10
|
-
export declare function getColumnInfo(ids: {
|
|
11
|
-
columnId: string;
|
|
12
|
-
datasetId: string;
|
|
13
|
-
}, datasets?: IDataset[]): IColumn | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Gets the dataset info by ID
|
|
16
|
-
* @param ids the ids to search the info
|
|
17
|
-
* @param ids.columnId the column ID
|
|
18
|
-
* @param ids.datasetId the dataset ID
|
|
19
|
-
* @param datasets the collection of datasets
|
|
20
|
-
* @returns the Dataset Info
|
|
21
|
-
*/
|
|
22
|
-
export declare function getDatasetInfo(ids: {
|
|
23
|
-
columnId: string;
|
|
24
|
-
datasetId: string;
|
|
25
|
-
}, datasets?: IDataset[]): IDataset | undefined;
|
|
26
|
-
//# sourceMappingURL=utils.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/utils.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEjD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,EAC5C,QAAQ,GAAE,QAAQ,EAAO,GACxB,OAAO,GAAG,SAAS,CAMrB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,EAC5C,QAAQ,GAAE,QAAQ,EAAO,GACxB,QAAQ,GAAG,SAAS,CAItB"}
|
package/dist/cjs/index.d.ts
DELETED
package/dist/cjs/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import { IFilterAddSettings, IFilterBuilderEditSettings, IFilterMergeSettings, IFilterParamSettings } from "../resources/filter-functions.resources";
|
|
2
|
-
import { IFilterValue } from "../resources/filter-values.resources";
|
|
3
|
-
import { IFilter } from "../resources/filters.resources";
|
|
4
|
-
/**
|
|
5
|
-
* Structure model for the adding filters
|
|
6
|
-
*/
|
|
7
|
-
export interface IFilterBuilderAdd {
|
|
8
|
-
/**
|
|
9
|
-
* Adds one filter into the collection.
|
|
10
|
-
* Inserts it next to the last similar filter
|
|
11
|
-
* @param filter the filter to add
|
|
12
|
-
* @param inIndex the index to add the new filter
|
|
13
|
-
* @param settings the settings object to setup this function
|
|
14
|
-
* @returns the new collection of filters
|
|
15
|
-
*/
|
|
16
|
-
addSingle: (filter: IFilter, inIndex?: number, settings?: IFilterAddSettings) => IFilterBuilderSingleReturn;
|
|
17
|
-
/**
|
|
18
|
-
* Adds various filter into the collection.
|
|
19
|
-
* Inserts them next to the last similar filter
|
|
20
|
-
* @param filter the filter to add
|
|
21
|
-
* @param inIndexes collection of indexes to add the new filters
|
|
22
|
-
* @param settings the settings object to setup this function
|
|
23
|
-
* @returns the new collection of filters
|
|
24
|
-
*/
|
|
25
|
-
addMultiple: (filter: IFilter[], inIndexes?: number[], settings?: IFilterAddSettings) => IFilterBuilderMultipleReturn;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Structure module for the editing filter values
|
|
29
|
-
*/
|
|
30
|
-
export interface IFilterBuilderAddValue {
|
|
31
|
-
/**
|
|
32
|
-
* Adds one value from filter
|
|
33
|
-
* @param id the ID to search the filter to add value
|
|
34
|
-
* @param value the value to to add
|
|
35
|
-
* @returns the new filter collection
|
|
36
|
-
*/
|
|
37
|
-
addValue: (id: string, value: IFilterValue) => IFilterBuilderSingleReturn;
|
|
38
|
-
/**
|
|
39
|
-
* Adds various values from filter
|
|
40
|
-
* @param id the ID to search the filter to add value
|
|
41
|
-
* @param values the value collection to add
|
|
42
|
-
* @returns the new filter collection
|
|
43
|
-
*/
|
|
44
|
-
addValues: (id: string, values: IFilterValue[]) => IFilterBuilderSingleReturn;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Structure module for the deleting filters
|
|
48
|
-
*/
|
|
49
|
-
export interface IFilterBuilderDelete {
|
|
50
|
-
/**
|
|
51
|
-
* Removes one filter from the collection
|
|
52
|
-
* @param id the ID to search the filter to remove
|
|
53
|
-
* @returns the new filter collection
|
|
54
|
-
*/
|
|
55
|
-
deleteSingle: (id: string) => IFilterBuilderSingleReturn;
|
|
56
|
-
/**
|
|
57
|
-
* Removes various filters from the collection
|
|
58
|
-
* @param ids a collection of ID to search filters to remove
|
|
59
|
-
* @returns the new filter collection
|
|
60
|
-
*/
|
|
61
|
-
deleteMultiple: (ids: string[]) => IFilterBuilderMultipleReturn;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Structure module for the editing filter values
|
|
65
|
-
*/
|
|
66
|
-
export interface IFilterBuilderDeleteValue {
|
|
67
|
-
/**
|
|
68
|
-
* Removes one value from filter
|
|
69
|
-
* @param id the ID to search the filter to remove value
|
|
70
|
-
* @param index the index to search the value to remove
|
|
71
|
-
* @returns the new filter collection
|
|
72
|
-
*/
|
|
73
|
-
deleteValue: (id: string, index: number) => IFilterBuilderSingleReturn;
|
|
74
|
-
/**
|
|
75
|
-
* Removes various values from filter
|
|
76
|
-
* @param id the ID to search the filter to remove value
|
|
77
|
-
* @param indexes the index collection to search the value to remove
|
|
78
|
-
* @returns the new filter collection
|
|
79
|
-
*/
|
|
80
|
-
deleteValues: (id: string, indexes: number[]) => IFilterBuilderSingleReturn;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Structure module for the editing filters
|
|
84
|
-
*/
|
|
85
|
-
export interface IFilterBuilderEdit {
|
|
86
|
-
/**
|
|
87
|
-
* Edits one filter from the collection
|
|
88
|
-
* @param filter an object with properties to edit
|
|
89
|
-
* @param id the ID to search the filter to edit
|
|
90
|
-
* @param settings settings object for the function
|
|
91
|
-
* @returns the new filter collection
|
|
92
|
-
*/
|
|
93
|
-
editSingle: (id: string, filter: Partial<IFilter> | IFilter, settings?: IFilterBuilderEditSettings) => IFilterBuilderSingleReturn;
|
|
94
|
-
/**
|
|
95
|
-
* Edits various filters from the collection
|
|
96
|
-
* @param filters a collection of object with properties to edit
|
|
97
|
-
* @param ids the collection of IDs to search filters to edit
|
|
98
|
-
* @param settings settings object for the function
|
|
99
|
-
* @returns the new filter collection
|
|
100
|
-
*/
|
|
101
|
-
editMultiple: (ids: string[], filter: Partial<IFilter>[] | IFilter[], settings?: IFilterBuilderEditSettings) => IFilterBuilderMultipleReturn;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Structure module for the editing filter values
|
|
105
|
-
*/
|
|
106
|
-
export interface IFilterBuilderEditValue {
|
|
107
|
-
/**
|
|
108
|
-
* Edits one value from filter
|
|
109
|
-
* @param id the ID to search the filter to edit value
|
|
110
|
-
* @param value the value to edit
|
|
111
|
-
* @param index the value index to edit
|
|
112
|
-
* @returns the new filter collection
|
|
113
|
-
*/
|
|
114
|
-
editValue: (id: string, value: IFilterValue, index: number) => IFilterBuilderSingleReturn;
|
|
115
|
-
/**
|
|
116
|
-
* Edits various values from filter
|
|
117
|
-
* @param id the ID to search the filter to edit value
|
|
118
|
-
* @param values the value collection to edit
|
|
119
|
-
* @param indexes the index collection to edit
|
|
120
|
-
* @returns the new filter collection
|
|
121
|
-
*/
|
|
122
|
-
editValues: (id: string, values: IFilterValue[], indexes: number[]) => IFilterBuilderSingleReturn;
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Structure module for the editing filters
|
|
126
|
-
*/
|
|
127
|
-
export interface IFilterBuilderMerge {
|
|
128
|
-
/**
|
|
129
|
-
* Merge the filter into the collection by some filter parameters
|
|
130
|
-
* @param filter the filter to merge
|
|
131
|
-
* @param settings the settings object to setup this function
|
|
132
|
-
* @returns the new filter collection
|
|
133
|
-
*/
|
|
134
|
-
mergeSingle: (filter: IFilter, settings?: IFilterMergeSettings) => IFilterBuilderSingleReturn;
|
|
135
|
-
/**
|
|
136
|
-
* Merge the filters into the collection by some filter parameters
|
|
137
|
-
* @param filters the filter collection to merge
|
|
138
|
-
* @param settings the settings object to setup this function
|
|
139
|
-
* @returns the new filter collection
|
|
140
|
-
*/
|
|
141
|
-
mergeMultiple: (filters: IFilter[], settings?: IFilterMergeSettings) => IFilterBuilderMultipleReturn;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Structure module for the editing filter values
|
|
145
|
-
*/
|
|
146
|
-
export interface IFilterBuilderMergeValue {
|
|
147
|
-
/**
|
|
148
|
-
* Merge values from filter
|
|
149
|
-
* @param id the ID to search the filter to merge values
|
|
150
|
-
* @param values the value collection to merge
|
|
151
|
-
* @returns the new filter collection
|
|
152
|
-
*/
|
|
153
|
-
mergeValues: (id: string, values: IFilterValue[] | undefined, indexes: number[]) => IFilterBuilderSingleReturn;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Structure module for the setting filters
|
|
157
|
-
*/
|
|
158
|
-
export interface IFilterBuilderSet {
|
|
159
|
-
/**
|
|
160
|
-
* Sets the given filters by param
|
|
161
|
-
* - Remove the filters by the sucesfull conditions and replace the given ones
|
|
162
|
-
* @param filters the filters to set
|
|
163
|
-
* @param params params to search the filters
|
|
164
|
-
* @param settings settings for this function
|
|
165
|
-
* @returns the new collection of filters
|
|
166
|
-
*/
|
|
167
|
-
replaceByParams: (filters: IFilter[], params: Partial<IFilter>, settings?: IFilterParamSettings) => IFilterBuilderMultipleReturn;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Structure for the returning a single item
|
|
171
|
-
*/
|
|
172
|
-
export interface IFilterBuilderSingleReturn {
|
|
173
|
-
/**
|
|
174
|
-
* the new filter collection
|
|
175
|
-
*/
|
|
176
|
-
resulting: IFilter[];
|
|
177
|
-
/**
|
|
178
|
-
* the affected filter
|
|
179
|
-
*/
|
|
180
|
-
affected?: IFilter;
|
|
181
|
-
/**
|
|
182
|
-
* the original filter before affecting
|
|
183
|
-
*/
|
|
184
|
-
original?: IFilter;
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Structure for the returning a multiple items
|
|
188
|
-
*/
|
|
189
|
-
export interface IFilterBuilderMultipleReturn {
|
|
190
|
-
/**
|
|
191
|
-
* the new filter collection
|
|
192
|
-
*/
|
|
193
|
-
resulting: IFilter[];
|
|
194
|
-
/**
|
|
195
|
-
* the affected filters
|
|
196
|
-
*/
|
|
197
|
-
affected?: IFilter[];
|
|
198
|
-
/**
|
|
199
|
-
* the original filters before affecting
|
|
200
|
-
*/
|
|
201
|
-
original?: IFilter[];
|
|
202
|
-
}
|
|
203
|
-
//# sourceMappingURL=filter-builder.models.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-builder.models.d.ts","sourceRoot":"","sources":["../../../src/models/filter-builder.models.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { IColumnType } from "@qrvey/utils";
|
|
2
|
-
import { IFilterGroupingInfoListByColumnSettings } from "../resources/filter-functions.resources";
|
|
3
|
-
import { IColumnTypeWithGrouping, IFilterGrouping, IFilterGroupingInfo } from "../resources/filter-grouping.resources";
|
|
4
|
-
import { IFilterValidator, IFilterValidatorInfo } from "../resources/filter-validators.resources";
|
|
5
|
-
/**
|
|
6
|
-
* Structure model for the getting resources
|
|
7
|
-
*/
|
|
8
|
-
export interface IFilterResourcesValidator {
|
|
9
|
-
/**
|
|
10
|
-
* Gets the complete collection of validator types
|
|
11
|
-
* @returns the collection of validator types
|
|
12
|
-
*/
|
|
13
|
-
getValidators: () => IFilterValidator[];
|
|
14
|
-
/**
|
|
15
|
-
* Gets the complete collection of validator info
|
|
16
|
-
* @returns the collection of validator info
|
|
17
|
-
*/
|
|
18
|
-
getInfoValidators: () => IFilterValidatorInfo[];
|
|
19
|
-
/**
|
|
20
|
-
* Gets a validator info by a validator type
|
|
21
|
-
* @param validator the validator type
|
|
22
|
-
* @returns a single validator info
|
|
23
|
-
*/
|
|
24
|
-
getInfoByValidator: (validator: IFilterValidator) => IFilterValidatorInfo;
|
|
25
|
-
/**
|
|
26
|
-
* Gets a collection of validator info by a column type
|
|
27
|
-
* @param type the column type
|
|
28
|
-
* @returns a collection of validator info
|
|
29
|
-
*/
|
|
30
|
-
getInfoValidatorsByColumnType: (type: IColumnType) => IFilterValidatorInfo[];
|
|
31
|
-
/**
|
|
32
|
-
* Gets a collection of validator info by a mutiple column types
|
|
33
|
-
* - The resulting validator info collection is an intersection of mulitple validator info collections
|
|
34
|
-
* @param types a collection of column types
|
|
35
|
-
* @returns a collection of validator info
|
|
36
|
-
*/
|
|
37
|
-
getInfoValidatorsByColumnTypes: (types: IColumnType[]) => IFilterValidatorInfo[];
|
|
38
|
-
}
|
|
39
|
-
export interface IFilterResourcesGrouping {
|
|
40
|
-
/**
|
|
41
|
-
* Gets the complete collection of grouping types
|
|
42
|
-
* @returns the collection of grouping types
|
|
43
|
-
*/
|
|
44
|
-
getGroupings: () => IFilterGrouping[];
|
|
45
|
-
/**
|
|
46
|
-
* Gets the complete collection of validator info
|
|
47
|
-
* @returns the collection of validator info
|
|
48
|
-
*/
|
|
49
|
-
getInfoGroupings: () => IFilterGroupingInfo[];
|
|
50
|
-
/**
|
|
51
|
-
* Gets a grouping info by a grouping type
|
|
52
|
-
* @param grouping the grouping type
|
|
53
|
-
* @returns a single grouping info
|
|
54
|
-
*/
|
|
55
|
-
getInfoByGrouping: (validator: IFilterValidator) => IFilterGroupingInfo;
|
|
56
|
-
/**
|
|
57
|
-
* Gets a collection of validator info by a column type
|
|
58
|
-
* @param type the column type
|
|
59
|
-
* @returns a collection of validator info
|
|
60
|
-
*/
|
|
61
|
-
getInfoGroupingsByColumnType: (type: IColumnType, settings?: IFilterGroupingInfoListByColumnSettings) => IFilterGroupingInfo[];
|
|
62
|
-
/**
|
|
63
|
-
* Gets a collection of groupings info by a column type
|
|
64
|
-
* - The resulting grouping info collection is an intersection of mulitple grouping info collections
|
|
65
|
-
* @param types the collection of column type
|
|
66
|
-
* @param settings settings for the function
|
|
67
|
-
* @returns a collection of grouping info
|
|
68
|
-
*/
|
|
69
|
-
getInfoGroupingsByColumnTypes: (types: IColumnTypeWithGrouping[], settings?: IFilterGroupingInfoListByColumnSettings[]) => IFilterGroupingInfo[];
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=filter-resources.models.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-resources.models.d.ts","sourceRoot":"","sources":["../../../src/models/filter-resources.models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EACL,uBAAuB,EACvB,eAAe,EACf,mBAAmB,EACpB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,0CAA0C,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,aAAa,EAAE,MAAM,gBAAgB,EAAE,CAAC;IACxC;;;OAGG;IACH,iBAAiB,EAAE,MAAM,oBAAoB,EAAE,CAAC;IAChD;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,SAAS,EAAE,gBAAgB,KAAK,oBAAoB,CAAC;IAC1E;;;;OAIG;IACH,6BAA6B,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,oBAAoB,EAAE,CAAC;IAC7E;;;;;OAKG;IACH,8BAA8B,EAAE,CAC9B,KAAK,EAAE,WAAW,EAAE,KACjB,oBAAoB,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,YAAY,EAAE,MAAM,eAAe,EAAE,CAAC;IACtC;;;OAGG;IACH,gBAAgB,EAAE,MAAM,mBAAmB,EAAE,CAAC;IAC9C;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,SAAS,EAAE,gBAAgB,KAAK,mBAAmB,CAAC;IACxE;;;;OAIG;IACH,4BAA4B,EAAE,CAC5B,IAAI,EAAE,WAAW,EACjB,QAAQ,CAAC,EAAE,uCAAuC,KAC/C,mBAAmB,EAAE,CAAC;IAE3B;;;;;;OAMG;IACH,6BAA6B,EAAE,CAC7B,KAAK,EAAE,uBAAuB,EAAE,EAChC,QAAQ,CAAC,EAAE,uCAAuC,EAAE,KACjD,mBAAmB,EAAE,CAAC;CAC5B"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { IFilterParamSettings } from "../resources/filter-functions.resources";
|
|
2
|
-
import { IFilter } from "../resources/filters.resources";
|
|
3
|
-
export interface IFilterSearcherParams {
|
|
4
|
-
/**
|
|
5
|
-
* Searchs and excludes filters by the given params
|
|
6
|
-
* @param params params to exclude the filters
|
|
7
|
-
* @param settings settings for this function
|
|
8
|
-
* @returns the new collection of filters
|
|
9
|
-
*/
|
|
10
|
-
excludeByParams(params: Partial<IFilter>, settings?: IFilterParamSettings): IFilter[];
|
|
11
|
-
/**
|
|
12
|
-
* Searchs filters by the given params
|
|
13
|
-
* @param params params to search the filters
|
|
14
|
-
* @param settings settings for this function
|
|
15
|
-
* @returns the new collection of filters
|
|
16
|
-
*/
|
|
17
|
-
filterByParams(params: Partial<IFilter>, settings?: IFilterParamSettings): IFilter[];
|
|
18
|
-
/**
|
|
19
|
-
* Searchs filters by the given params and returns the inexes
|
|
20
|
-
* @param params params to search the filters
|
|
21
|
-
* @param settings settings for this function
|
|
22
|
-
* @returns the new collection of filters
|
|
23
|
-
*/
|
|
24
|
-
filterIndexesByParams(params: Partial<IFilter>, settings?: IFilterParamSettings): number[];
|
|
25
|
-
/**
|
|
26
|
-
* Searchs filters by the given params.
|
|
27
|
-
* Gets the first match of the searching
|
|
28
|
-
* @param params params to search the filters
|
|
29
|
-
* @param settings settings for this function
|
|
30
|
-
* @returns the new collection of filters
|
|
31
|
-
*/
|
|
32
|
-
findByParams(params: Partial<IFilter>, settings?: IFilterParamSettings): IFilter | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* Searchs filters by the given params.
|
|
35
|
-
* Gets the first match of the searching and returns the related index
|
|
36
|
-
* @param params params to search the filters
|
|
37
|
-
* @param settings settings for this function
|
|
38
|
-
* @returns the new collection of filters
|
|
39
|
-
*/
|
|
40
|
-
findIndexByParams(params: Partial<IFilter>, settings?: IFilterParamSettings): number;
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=filter-searcher.models.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-searcher.models.d.ts","sourceRoot":"","sources":["../../../src/models/filter-searcher.models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEzD,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,eAAe,CACb,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,EACxB,QAAQ,CAAC,EAAE,oBAAoB,GAC9B,OAAO,EAAE,CAAC;IAEb;;;;;OAKG;IACH,cAAc,CACZ,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,EACxB,QAAQ,CAAC,EAAE,oBAAoB,GAC9B,OAAO,EAAE,CAAC;IAEb;;;;;OAKG;IACH,qBAAqB,CACnB,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,EACxB,QAAQ,CAAC,EAAE,oBAAoB,GAC9B,MAAM,EAAE,CAAC;IAEZ;;;;;;OAMG;IACH,YAAY,CACV,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,EACxB,QAAQ,CAAC,EAAE,oBAAoB,GAC9B,OAAO,GAAG,SAAS,CAAC;IAEvB;;;;;;OAMG;IACH,iBAAiB,CACf,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,EACxB,QAAQ,CAAC,EAAE,oBAAoB,GAC9B,MAAM,CAAC;CACX"}
|