@qrvey/utils 1.2.9-23 → 1.2.9-24

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.
Files changed (29) hide show
  1. package/README.md +347 -347
  2. package/dist/cjs/dates/constants/DATETIME_COLUMN_FORMAT.d.ts +1 -0
  3. package/dist/cjs/dates/constants/DATETIME_COLUMN_FORMAT.js +11 -0
  4. package/dist/cjs/dates/constants/index.d.ts +1 -0
  5. package/dist/cjs/dates/constants/index.js +1 -0
  6. package/dist/cjs/format/definition.d.ts +8 -0
  7. package/dist/cjs/format/definition.js +2 -1
  8. package/dist/cjs/format/localization.js +11 -4
  9. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +1 -0
  10. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +1 -0
  11. package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.d.ts +1 -0
  12. package/dist/dates/constants/DATETIME_COLUMN_FORMAT.d.ts +1 -0
  13. package/dist/dates/constants/DATETIME_COLUMN_FORMAT.js +8 -0
  14. package/dist/dates/constants/index.d.ts +1 -0
  15. package/dist/dates/constants/index.js +1 -0
  16. package/dist/format/definition.d.ts +8 -0
  17. package/dist/format/definition.js +1 -0
  18. package/dist/format/localization.js +12 -5
  19. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +1 -0
  20. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +1 -0
  21. package/dist/interfaces/format/IFormatOutputFormat.Interface.d.ts +1 -0
  22. package/package.json +1 -1
  23. package/src/dates/constants/DATETIME_COLUMN_FORMAT.ts +8 -0
  24. package/src/dates/constants/index.ts +1 -0
  25. package/src/format/definition.ts +2 -0
  26. package/src/format/localization.ts +11 -5
  27. package/src/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.ts +1 -0
  28. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.ts +1 -0
  29. package/src/interfaces/format/IFormatOutputFormat.Interface.ts +2 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-23*
1
+ # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-24*
2
2
 
3
3
  > Helper, Utils for all Qrvey Projects
4
4
 
@@ -2722,47 +2722,50 @@ Gets the format config
2722
2722
 
2723
2723
 
2724
2724
 
2725
- ### dist/stencil/decorators/Config.js
2726
-
2725
+ ### dist/services/api/getAllDatasets.api.js
2727
2726
 
2728
- #### Config()
2729
2727
 
2730
- Stencil.js - Prop Decorator
2731
- Get and Parse the Widget Configuration Object and also provide the ability to get properties in different case styles such as: lower, upper, camel and pascal
2732
- But for this, is required ask for a property in `snake_case` style
2728
+ #### getAllDatasets(config, pickDatasets)
2733
2729
 
2730
+ Get a dataset list from a collection of Qrvey IDs
2734
2731
 
2735
2732
 
2736
2733
 
2737
2734
 
2735
+ ##### Parameters
2738
2736
 
2739
- ##### Examples
2737
+ | Name | Type | Description | |
2738
+ | ---- | ---- | ----------- | -------- |
2739
+ | config | | the widget config. Includes the appid and others configuration properties |   |
2740
+ | pickDatasets | | Collection of Qrvey IDs for filtering the request |   |
2740
2741
 
2741
- ```javascript
2742
- \ @Config() @Prop() settings;
2743
2742
 
2744
- someMethod() {
2745
- this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
2746
- }
2747
- ```
2748
2743
 
2749
2744
 
2750
2745
  ##### Returns
2751
2746
 
2752
2747
 
2753
- - `Void`
2748
+ - a promise
2754
2749
 
2755
2750
 
2756
2751
 
2757
2752
 
2758
- ### dist/stencil/util/createRef.js
2753
+ ### dist/services/api/getAllQrveys.api.js
2754
+
2755
+
2756
+ #### getAllQrveys(config, params)
2757
+
2758
+ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
2759
2759
 
2760
2760
 
2761
- #### createRef()
2762
2761
 
2763
- lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom.html)
2764
2762
 
2763
+ ##### Parameters
2765
2764
 
2765
+ | Name | Type | Description | |
2766
+ | ---- | ---- | ----------- | -------- |
2767
+ | config | | Configuration |   |
2768
+ | params | | Object for getting precise data |   |
2766
2769
 
2767
2770
 
2768
2771
 
@@ -2770,21 +2773,17 @@ lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom
2770
2773
  ##### Returns
2771
2774
 
2772
2775
 
2773
- - function - Function to use in ref prop in html elements
2776
+ - `Void`
2774
2777
 
2775
2778
 
2776
2779
 
2777
2780
 
2778
- ### dist/stencil/util/getConfig.js
2781
+ ### dist/services/api/getDatasetColumns.api.js
2779
2782
 
2780
2783
 
2781
- #### getConfig(cfg)
2784
+ #### getDatasetColumns(qrveyid)
2782
2785
 
2783
- verify the Config object type and try to return a parsed Object
2784
- - In case _cfg_ is a string, first try to make a JSON parse in other case
2785
- try to find this string as a variable on Windows object
2786
- - If _cfg_ is a fuction, tis is invoked and parsed
2787
- - Finally, if is an object, _cfg_ is inmediatly returned
2786
+ Get a dataset by Qrvey ID
2788
2787
 
2789
2788
 
2790
2789
 
@@ -2793,7 +2792,7 @@ try to find this string as a variable on Windows object
2793
2792
 
2794
2793
  | Name | Type | Description | |
2795
2794
  | ---- | ---- | ----------- | -------- |
2796
- | cfg | | |   |
2795
+ | qrveyid | | The Qrvey ID |   |
2797
2796
 
2798
2797
 
2799
2798
 
@@ -2801,55 +2800,52 @@ try to find this string as a variable on Windows object
2801
2800
  ##### Returns
2802
2801
 
2803
2802
 
2804
- - `Void`
2805
-
2806
-
2803
+ - a promise
2807
2804
 
2808
2805
 
2809
- ### dist/services/api/getAllDatasets.api.js
2810
2806
 
2811
2807
 
2812
- #### getAllDatasets(config, pickDatasets)
2808
+ ### dist/stencil/decorators/Config.js
2813
2809
 
2814
- Get a dataset list from a collection of Qrvey IDs
2815
2810
 
2811
+ #### Config()
2816
2812
 
2813
+ Stencil.js - Prop Decorator
2814
+ Get and Parse the Widget Configuration Object and also provide the ability to get properties in different case styles such as: lower, upper, camel and pascal
2815
+ But for this, is required ask for a property in `snake_case` style
2817
2816
 
2818
2817
 
2819
- ##### Parameters
2820
2818
 
2821
- | Name | Type | Description | |
2822
- | ---- | ---- | ----------- | -------- |
2823
- | config | | the widget config. Includes the appid and others configuration properties |   |
2824
- | pickDatasets | | Collection of Qrvey IDs for filtering the request |   |
2825
2819
 
2826
2820
 
2827
2821
 
2822
+ ##### Examples
2828
2823
 
2829
- ##### Returns
2824
+ ```javascript
2825
+ \ @Config() @Prop() settings;
2830
2826
 
2827
+ someMethod() {
2828
+ this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
2829
+ }
2830
+ ```
2831
2831
 
2832
- - a promise
2833
2832
 
2833
+ ##### Returns
2834
2834
 
2835
2835
 
2836
+ - `Void`
2836
2837
 
2837
- ### dist/services/api/getAllQrveys.api.js
2838
2838
 
2839
2839
 
2840
- #### getAllQrveys(config, params)
2841
2840
 
2842
- POST Request for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
2841
+ ### dist/stencil/util/createRef.js
2843
2842
 
2844
2843
 
2844
+ #### createRef()
2845
2845
 
2846
+ lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom.html)
2846
2847
 
2847
- ##### Parameters
2848
2848
 
2849
- | Name | Type | Description | |
2850
- | ---- | ---- | ----------- | -------- |
2851
- | config | | Configuration |   |
2852
- | params | | Object for getting precise data |   |
2853
2849
 
2854
2850
 
2855
2851
 
@@ -2857,17 +2853,21 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
2857
2853
  ##### Returns
2858
2854
 
2859
2855
 
2860
- - `Void`
2856
+ - function - Function to use in ref prop in html elements
2861
2857
 
2862
2858
 
2863
2859
 
2864
2860
 
2865
- ### dist/services/api/getDatasetColumns.api.js
2861
+ ### dist/stencil/util/getConfig.js
2866
2862
 
2867
2863
 
2868
- #### getDatasetColumns(qrveyid)
2864
+ #### getConfig(cfg)
2869
2865
 
2870
- Get a dataset by Qrvey ID
2866
+ verify the Config object type and try to return a parsed Object
2867
+ - In case _cfg_ is a string, first try to make a JSON parse in other case
2868
+ try to find this string as a variable on Windows object
2869
+ - If _cfg_ is a fuction, tis is invoked and parsed
2870
+ - Finally, if is an object, _cfg_ is inmediatly returned
2871
2871
 
2872
2872
 
2873
2873
 
@@ -2876,7 +2876,7 @@ Get a dataset by Qrvey ID
2876
2876
 
2877
2877
  | Name | Type | Description | |
2878
2878
  | ---- | ---- | ----------- | -------- |
2879
- | qrveyid | | The Qrvey ID |   |
2879
+ | cfg | | |   |
2880
2880
 
2881
2881
 
2882
2882
 
@@ -2884,7 +2884,7 @@ Get a dataset by Qrvey ID
2884
2884
  ##### Returns
2885
2885
 
2886
2886
 
2887
- - a promise
2887
+ - `Void`
2888
2888
 
2889
2889
 
2890
2890
 
@@ -3348,12 +3348,12 @@ Returns a filter builder config object by a any given config
3348
3348
 
3349
3349
 
3350
3350
 
3351
- ### dist/filters/helpers/common/areFiltersEquals.js
3351
+ ### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
3352
3352
 
3353
3353
 
3354
- #### areFiltersEquals(filter1, filter2)
3354
+ #### excludeUIFiltersByAggregate(uFilters)
3355
3355
 
3356
- Validates if both filters are the same
3356
+ Excludes Aggregate Filters in the Flattened UI Filters array
3357
3357
 
3358
3358
 
3359
3359
 
@@ -3362,8 +3362,7 @@ Validates if both filters are the same
3362
3362
 
3363
3363
  | Name | Type | Description | |
3364
3364
  | ---- | ---- | ----------- | -------- |
3365
- | filter1 | | filter 1 |   |
3366
- | filter2 | | filter 2 |   |
3365
+ | uFilters | | Collection of Flat UI Filters |   |
3367
3366
 
3368
3367
 
3369
3368
 
@@ -3371,17 +3370,17 @@ Validates if both filters are the same
3371
3370
  ##### Returns
3372
3371
 
3373
3372
 
3374
- - true: the filters are equal; false: the filters are NOT equal
3373
+ - a new Flat UI Filters that were excluded the aggregate filters
3375
3374
 
3376
3375
 
3377
3376
 
3378
3377
 
3379
- ### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
3378
+ ### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
3380
3379
 
3381
3380
 
3382
- #### excludeFiltersByAggregateColumn(filterData)
3381
+ #### excludeUIFlatFiltersByScopes(uFilters, scopes)
3383
3382
 
3384
- Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
3383
+ Excludes and returns a UI Flat Filters without filters by the given scopes
3385
3384
 
3386
3385
 
3387
3386
 
@@ -3390,7 +3389,8 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
3390
3389
 
3391
3390
  | Name | Type | Description | |
3392
3391
  | ---- | ---- | ----------- | -------- |
3393
- | filterData | | The filter data object |   |
3392
+ | uFilters | | The Flatten UI Filters |   |
3393
+ | scopes | | collection of scopes types |   |
3394
3394
 
3395
3395
 
3396
3396
 
@@ -3398,26 +3398,17 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
3398
3398
  ##### Returns
3399
3399
 
3400
3400
 
3401
- - The new filter data object that were excluded the aggregate filters
3401
+ - The new array of UI Flattened filters
3402
3402
 
3403
3403
 
3404
3404
 
3405
3405
 
3406
- ### dist/filters/helpers/common/excludeFiltersByParams.js
3406
+ ### dist/filters/helpers/ui/getFilterPropertyLabel.js
3407
3407
 
3408
3408
 
3409
- #### excludeFiltersByParams(filterData, params)
3409
+ #### getFilterPropertyLabel(filter)
3410
3410
 
3411
- Excludes filters from the given Filters.
3412
- The validation to filter the stored filter is depending on:
3413
- - Column
3414
- - Qrvey ID
3415
- - Scope type
3416
- - Scope ID
3417
- - Panel ID
3418
- - Validator type
3419
- - Property type
3420
- - Enabled flags
3411
+ Gets the label of the filter property
3421
3412
 
3422
3413
 
3423
3414
 
@@ -3426,8 +3417,7 @@ The validation to filter the stored filter is depending on:
3426
3417
 
3427
3418
  | Name | Type | Description | |
3428
3419
  | ---- | ---- | ----------- | -------- |
3429
- | filterData | | The Filter Data or the UI Filter Data |   |
3430
- | params | | given parameters to validate the filter data |   |
3420
+ | filter | | The UI Filter |   |
3431
3421
 
3432
3422
 
3433
3423
 
@@ -3435,17 +3425,17 @@ The validation to filter the stored filter is depending on:
3435
3425
  ##### Returns
3436
3426
 
3437
3427
 
3438
- - a new Filter object structure
3428
+ - a string of the filter property label
3439
3429
 
3440
3430
 
3441
3431
 
3442
3432
 
3443
- ### dist/filters/helpers/common/excludeFiltersByScopes.js
3433
+ ### dist/filters/helpers/ui/getOutputFormatByColumn.js
3444
3434
 
3445
3435
 
3446
- #### excludeFiltersByScopes(filterData, scopes)
3436
+ #### getOutputFormatByColumn(column, datasets)
3447
3437
 
3448
- Excludes and returns a filter data without filters by the given scopes
3438
+ Gets output format object from Datasets by the given column. Item of the datasets array must have outputformat item in order to be returned
3449
3439
 
3450
3440
 
3451
3441
 
@@ -3454,8 +3444,8 @@ Excludes and returns a filter data without filters by the given scopes
3454
3444
 
3455
3445
  | Name | Type | Description | |
3456
3446
  | ---- | ---- | ----------- | -------- |
3457
- | filterData | | The Filter Data |   |
3458
- | scopes | | collection of scopes to be as filtering parameters |   |
3447
+ | column | | The column |   |
3448
+ | datasets | | array of datasets |   |
3459
3449
 
3460
3450
 
3461
3451
 
@@ -3463,17 +3453,18 @@ Excludes and returns a filter data without filters by the given scopes
3463
3453
  ##### Returns
3464
3454
 
3465
3455
 
3466
- - The new Filter Data without filters by the given scopes.
3456
+ - The output format object
3467
3457
 
3468
3458
 
3469
3459
 
3470
3460
 
3471
- ### dist/filters/helpers/common/getFilterLabel.js
3461
+ ### dist/filters/helpers/ui/getQrveyIdsByUIFilters.js
3472
3462
 
3473
3463
 
3474
- #### getFilterLabel(filter)
3464
+ #### getQrveyIdsByUIFilters(uiFilter)
3475
3465
 
3476
- Gets the Filter Label + Column label
3466
+ Gets a collection of Qrvey IDs in the UI Filter structure.
3467
+ Looks around all filter structure finding the qrveyid propertty in each dataset
3477
3468
 
3478
3469
 
3479
3470
 
@@ -3482,7 +3473,7 @@ Gets the Filter Label + Column label
3482
3473
 
3483
3474
  | Name | Type | Description | |
3484
3475
  | ---- | ---- | ----------- | -------- |
3485
- | filter | | the UI filter |   |
3476
+ | uiFilter | | |   |
3486
3477
 
3487
3478
 
3488
3479
 
@@ -3490,37 +3481,27 @@ Gets the Filter Label + Column label
3490
3481
  ##### Returns
3491
3482
 
3492
3483
 
3493
- - a sring label
3494
-
3495
-
3496
-
3484
+ - `Void`
3497
3485
 
3498
- ### dist/filters/helpers/common/getFilterid.js
3499
3486
 
3500
3487
 
3501
- #### getFilterid(filter)
3502
3488
 
3503
- Get the Filter ID by the filter structure
3504
- The order of the epression ID is:
3505
- - Scope Type
3506
- - scopeid
3507
- - qrveyid
3508
- - panelid
3509
- - columnid
3510
- - validator
3511
- - property
3512
- - Column Aggregate
3513
- - Column Calculation
3514
- - Optional Index
3489
+ ### dist/filters/helpers/ui/getUIFlatFilterByParams.js
3515
3490
 
3516
3491
 
3492
+ #### getUIFlatFilterByParams()
3517
3493
 
3494
+ Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
3495
+ The validation to filter the stored filter is depending on:
3496
+ - Column
3497
+ - Qrvey ID,
3498
+ - Scope type
3499
+ - Scope ID
3500
+ - Panel ID
3501
+ - Validator type
3502
+ - Property type
3518
3503
 
3519
- ##### Parameters
3520
3504
 
3521
- | Name | Type | Description | |
3522
- | ---- | ---- | ----------- | -------- |
3523
- | filter | | the filter structure |   |
3524
3505
 
3525
3506
 
3526
3507
 
@@ -3528,26 +3509,28 @@ The order of the epression ID is:
3528
3509
  ##### Returns
3529
3510
 
3530
3511
 
3531
- - a text to identify the filter
3532
-
3533
-
3534
-
3512
+ - The index of the uFilter array or the Filter object s
3535
3513
 
3536
- ### dist/filters/helpers/common/getFiltersByAggregateColumn.js
3537
3514
 
3538
3515
 
3539
- #### getFiltersByAggregateColumn(filterData)
3540
3516
 
3541
- Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
3517
+ ### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
3542
3518
 
3543
3519
 
3520
+ #### getUIFlatFiltersByParams()
3544
3521
 
3522
+ Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
3523
+ The validation to filter the stored filter is depending on:
3524
+ - Column
3525
+ - Qrvey ID,
3526
+ - Scope type
3527
+ - Scope ID
3528
+ - Panel ID
3529
+ - Validator type
3530
+ - Property type
3531
+ - Enabled flags
3545
3532
 
3546
- ##### Parameters
3547
3533
 
3548
- | Name | Type | Description | |
3549
- | ---- | ---- | ----------- | -------- |
3550
- | filterData | | The filter data object |   |
3551
3534
 
3552
3535
 
3553
3536
 
@@ -3555,26 +3538,17 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
3555
3538
  ##### Returns
3556
3539
 
3557
3540
 
3558
- - The new filter data object that were get the aggregate filters
3541
+ - The index of the uFilter array or the Filter object s
3559
3542
 
3560
3543
 
3561
3544
 
3562
3545
 
3563
- ### dist/filters/helpers/common/getFiltersByParams.js
3546
+ ### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
3564
3547
 
3565
3548
 
3566
- #### getFiltersByParams(filterData, params)
3549
+ #### getUIFlatFiltersByScopes(uFilters, scopes)
3567
3550
 
3568
- Gets filters from the given params.
3569
- The validation to filter the stored filter is depending on:
3570
- - Column
3571
- - Qrvey ID
3572
- - Scope type
3573
- - Scope ID
3574
- - Panel ID
3575
- - Validator type
3576
- - Property type
3577
- - Enabled flags
3551
+ Filters and gets a UI Flatten Filters by the given scopes
3578
3552
 
3579
3553
 
3580
3554
 
@@ -3583,8 +3557,8 @@ The validation to filter the stored filter is depending on:
3583
3557
 
3584
3558
  | Name | Type | Description | |
3585
3559
  | ---- | ---- | ----------- | -------- |
3586
- | filterData | | The Filter Data or the UI Filter Data |   |
3587
- | params | | given parameters to validate the dataset |   |
3560
+ | uFilters | | The Flatten UI Filters |   |
3561
+ | scopes | | collection of scopes types |   |
3588
3562
 
3589
3563
 
3590
3564
 
@@ -3592,17 +3566,17 @@ The validation to filter the stored filter is depending on:
3592
3566
  ##### Returns
3593
3567
 
3594
3568
 
3595
- - a new Filter object structure
3569
+ - The new array of UI Flattened filters
3596
3570
 
3597
3571
 
3598
3572
 
3599
3573
 
3600
- ### dist/filters/helpers/common/getFiltersByScopes.js
3574
+ ### dist/filters/helpers/ui/getUIValues.js
3601
3575
 
3602
3576
 
3603
- #### getFiltersByScopes(filterData, scopes)
3577
+ #### getUIValues(filter, addEnableds, rankingGroupIndex)
3578
+
3604
3579
 
3605
- Filters and gets a Filter Data by the given scopes
3606
3580
 
3607
3581
 
3608
3582
 
@@ -3611,8 +3585,9 @@ Filters and gets a Filter Data by the given scopes
3611
3585
 
3612
3586
  | Name | Type | Description | |
3613
3587
  | ---- | ---- | ----------- | -------- |
3614
- | filterData | | The Filter Data |   |
3615
- | scopes | | collection of scopes types |   |
3588
+ | filter | | |   |
3589
+ | addEnableds | | |   |
3590
+ | rankingGroupIndex | | |   |
3616
3591
 
3617
3592
 
3618
3593
 
@@ -3620,17 +3595,17 @@ Filters and gets a Filter Data by the given scopes
3620
3595
  ##### Returns
3621
3596
 
3622
3597
 
3623
- - The new Filter Data
3598
+ -
3624
3599
 
3625
3600
 
3626
3601
 
3627
3602
 
3628
- ### dist/filters/helpers/common/getFiltersByScopesIds.js
3603
+ ### dist/filters/helpers/ui/getUpdatedUIFilters.js
3629
3604
 
3630
3605
 
3631
- #### getFiltersByScopesIds(filterData, scopes)
3606
+ #### getUpdatedUIFilters(data, datasets)
3632
3607
 
3633
- Gets filters from Filter Data by Scopes/Scope IDs.
3608
+ Gets a new UI Filter structure with a datasets/columns info updates
3634
3609
 
3635
3610
 
3636
3611
 
@@ -3639,8 +3614,8 @@ Gets filters from Filter Data by Scopes/Scope IDs.
3639
3614
 
3640
3615
  | Name | Type | Description | |
3641
3616
  | ---- | ---- | ----------- | -------- |
3642
- | filterData | | The filter data |   |
3643
- | scopes | | The collection of Scopes/Scope IDs |   |
3617
+ | data | | The UI Filter structure |   |
3618
+ | datasets | | An array of datasets/column info used for updating the data |   |
3644
3619
 
3645
3620
 
3646
3621
 
@@ -3648,17 +3623,17 @@ Gets filters from Filter Data by Scopes/Scope IDs.
3648
3623
  ##### Returns
3649
3624
 
3650
3625
 
3651
- - a new Filter Data
3626
+ - A new UI FIlter structure
3652
3627
 
3653
3628
 
3654
3629
 
3655
3630
 
3656
- ### dist/filters/helpers/common/getFiltersByVisibility.js
3631
+ ### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
3657
3632
 
3658
3633
 
3659
- #### getFiltersByVisibility(filterData, scopes)
3634
+ #### resolveUIFlatFilterByParams(filter, params)
3660
3635
 
3661
- Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3636
+ Resolves conditions between UI flattened filter and given parameters
3662
3637
 
3663
3638
 
3664
3639
 
@@ -3667,8 +3642,8 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3667
3642
 
3668
3643
  | Name | Type | Description | |
3669
3644
  | ---- | ---- | ----------- | -------- |
3670
- | filterData | | a Filter Data or UI Filter Data |   |
3671
- | scopes | | a Scopes/Scope IDs array |   |
3645
+ | filter | | UI Flatten Filter |   |
3646
+ | params | | Parameters to validate |   |
3672
3647
 
3673
3648
 
3674
3649
 
@@ -3676,17 +3651,17 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3676
3651
  ##### Returns
3677
3652
 
3678
3653
 
3679
- - a new Filter Data
3654
+ - true: the conditions are satisfied.
3680
3655
 
3681
3656
 
3682
3657
 
3683
3658
 
3684
- ### dist/filters/helpers/common/getMergeFiltersSettings.js
3659
+ ### dist/filters/helpers/common/areFiltersEquals.js
3685
3660
 
3686
3661
 
3687
- #### getMergeFiltersSettings(settings)
3662
+ #### areFiltersEquals(filter1, filter2)
3688
3663
 
3689
- Transforms the given MergeFilters settings object. Adds the missing properties if they do not exist.
3664
+ Validates if both filters are the same
3690
3665
 
3691
3666
 
3692
3667
 
@@ -3695,7 +3670,8 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
3695
3670
 
3696
3671
  | Name | Type | Description | |
3697
3672
  | ---- | ---- | ----------- | -------- |
3698
- | settings | | an object to the MergeFilters settings |   |
3673
+ | filter1 | | filter 1 |   |
3674
+ | filter2 | | filter 2 |   |
3699
3675
 
3700
3676
 
3701
3677
 
@@ -3703,17 +3679,17 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
3703
3679
  ##### Returns
3704
3680
 
3705
3681
 
3706
- - a new MergeFilters settings object.
3682
+ - true: the filters are equal; false: the filters are NOT equal
3707
3683
 
3708
3684
 
3709
3685
 
3710
3686
 
3711
- ### dist/filters/helpers/common/getParamsToGetFilterSettings.js
3687
+ ### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
3712
3688
 
3713
3689
 
3714
- #### getParamsToGetFilterSettings(settings)
3690
+ #### excludeFiltersByAggregateColumn(filterData)
3715
3691
 
3716
- Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
3692
+ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
3717
3693
 
3718
3694
 
3719
3695
 
@@ -3722,7 +3698,7 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
3722
3698
 
3723
3699
  | Name | Type | Description | |
3724
3700
  | ---- | ---- | ----------- | -------- |
3725
- | settings | | an object to the ParamsToGetFilter settings |   |
3701
+ | filterData | | The filter data object |   |
3726
3702
 
3727
3703
 
3728
3704
 
@@ -3730,17 +3706,26 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
3730
3706
  ##### Returns
3731
3707
 
3732
3708
 
3733
- - a new ParamsToGetFilter settings object.
3709
+ - The new filter data object that were excluded the aggregate filters
3734
3710
 
3735
3711
 
3736
3712
 
3737
3713
 
3738
- ### dist/filters/helpers/common/haveFiltersByDataset.js
3714
+ ### dist/filters/helpers/common/excludeFiltersByParams.js
3739
3715
 
3740
3716
 
3741
- #### haveFiltersByDataset(filterData, qrveyid)
3717
+ #### excludeFiltersByParams(filterData, params)
3742
3718
 
3743
- Validates if the filter data has filters by a dataset ID (Qrvey ID).
3719
+ Excludes filters from the given Filters.
3720
+ The validation to filter the stored filter is depending on:
3721
+ - Column
3722
+ - Qrvey ID
3723
+ - Scope type
3724
+ - Scope ID
3725
+ - Panel ID
3726
+ - Validator type
3727
+ - Property type
3728
+ - Enabled flags
3744
3729
 
3745
3730
 
3746
3731
 
@@ -3749,8 +3734,8 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
3749
3734
 
3750
3735
  | Name | Type | Description | |
3751
3736
  | ---- | ---- | ----------- | -------- |
3752
- | filterData | | the filter data or the UI filter data. |   |
3753
- | qrveyid | | The Qrvey ID |   |
3737
+ | filterData | | The Filter Data or the UI Filter Data |   |
3738
+ | params | | given parameters to validate the filter data |   |
3754
3739
 
3755
3740
 
3756
3741
 
@@ -3758,17 +3743,17 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
3758
3743
  ##### Returns
3759
3744
 
3760
3745
 
3761
- - true: the filter data has filters by the Qrvey ID
3746
+ - a new Filter object structure
3762
3747
 
3763
3748
 
3764
3749
 
3765
3750
 
3766
- ### dist/filters/helpers/common/isBetweenValidator.js
3751
+ ### dist/filters/helpers/common/excludeFiltersByScopes.js
3767
3752
 
3768
3753
 
3769
- #### isBetweenValidator(validator)
3754
+ #### excludeFiltersByScopes(filterData, scopes)
3770
3755
 
3771
- Validates if the given validator is a Between type
3756
+ Excludes and returns a filter data without filters by the given scopes
3772
3757
 
3773
3758
 
3774
3759
 
@@ -3777,7 +3762,8 @@ Validates if the given validator is a Between type
3777
3762
 
3778
3763
  | Name | Type | Description | |
3779
3764
  | ---- | ---- | ----------- | -------- |
3780
- | validator | | The validator |   |
3765
+ | filterData | | The Filter Data |   |
3766
+ | scopes | | collection of scopes to be as filtering parameters |   |
3781
3767
 
3782
3768
 
3783
3769
 
@@ -3785,17 +3771,17 @@ Validates if the given validator is a Between type
3785
3771
  ##### Returns
3786
3772
 
3787
3773
 
3788
- - true: it is a between validator; false: it is not a between validator
3774
+ - The new Filter Data without filters by the given scopes.
3789
3775
 
3790
3776
 
3791
3777
 
3792
3778
 
3793
- ### dist/filters/helpers/common/isDateDistinctProperty.js
3779
+ ### dist/filters/helpers/common/getFilterColumnLabel.js
3794
3780
 
3795
3781
 
3796
- #### isDateDistinctProperty(column, property)
3782
+ #### getFilterColumnLabel(column)
3797
3783
 
3798
- Determines if the filter column and property is a distinct group dates type
3784
+ Get an string of the properties of the given filter column.
3799
3785
 
3800
3786
 
3801
3787
 
@@ -3805,7 +3791,6 @@ Determines if the filter column and property is a distinct group dates type
3805
3791
  | Name | Type | Description | |
3806
3792
  | ---- | ---- | ----------- | -------- |
3807
3793
  | column | | The filter column |   |
3808
- | property | | The filter property |   |
3809
3794
 
3810
3795
 
3811
3796
 
@@ -3813,17 +3798,17 @@ Determines if the filter column and property is a distinct group dates type
3813
3798
  ##### Returns
3814
3799
 
3815
3800
 
3816
- - True if the given property is included from distinct group dates type
3801
+ - an string with the property, aggregate or calculation label.
3817
3802
 
3818
3803
 
3819
3804
 
3820
3805
 
3821
- ### dist/filters/helpers/common/isInValidator.js
3806
+ ### dist/filters/helpers/common/getFilterLabel.js
3822
3807
 
3823
3808
 
3824
- #### isInValidator(validator)
3809
+ #### getFilterLabel(filter)
3825
3810
 
3826
- Validates if the given validator is a In type
3811
+ Gets the Filter Label + Column label
3827
3812
 
3828
3813
 
3829
3814
 
@@ -3832,7 +3817,7 @@ Validates if the given validator is a In type
3832
3817
 
3833
3818
  | Name | Type | Description | |
3834
3819
  | ---- | ---- | ----------- | -------- |
3835
- | validator | | The validator |   |
3820
+ | filter | | the UI filter |   |
3836
3821
 
3837
3822
 
3838
3823
 
@@ -3840,17 +3825,17 @@ Validates if the given validator is a In type
3840
3825
  ##### Returns
3841
3826
 
3842
3827
 
3843
- - true: it is a In validator; false: it is not a In validator
3828
+ - a sring label
3844
3829
 
3845
3830
 
3846
3831
 
3847
3832
 
3848
- ### dist/filters/helpers/common/isNullValidator.js
3833
+ ### dist/filters/helpers/common/getFiltersByAggregateColumn.js
3849
3834
 
3850
3835
 
3851
- #### isNullValidator(validator)
3836
+ #### getFiltersByAggregateColumn(filterData)
3852
3837
 
3853
- Checks if the given validator is a Null type.
3838
+ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
3854
3839
 
3855
3840
 
3856
3841
 
@@ -3859,7 +3844,7 @@ Checks if the given validator is a Null type.
3859
3844
 
3860
3845
  | Name | Type | Description | |
3861
3846
  | ---- | ---- | ----------- | -------- |
3862
- | validator | | The Filter Validator |   |
3847
+ | filterData | | The filter data object |   |
3863
3848
 
3864
3849
 
3865
3850
 
@@ -3867,17 +3852,28 @@ Checks if the given validator is a Null type.
3867
3852
  ##### Returns
3868
3853
 
3869
3854
 
3870
- - True: It is a Null Validator; False: It is not a Null Validator.
3855
+ - The new filter data object that were get the aggregate filters
3871
3856
 
3872
3857
 
3873
3858
 
3874
3859
 
3875
- ### dist/filters/helpers/common/isRangeValidator.js
3860
+ ### dist/filters/helpers/common/getFilterid.js
3876
3861
 
3877
3862
 
3878
- #### isRangeValidator(validator)
3863
+ #### getFilterid(filter)
3879
3864
 
3880
- Validates if the given validator is a Range type. Range type means the value has min and max values to filter
3865
+ Get the Filter ID by the filter structure
3866
+ The order of the epression ID is:
3867
+ - Scope Type
3868
+ - scopeid
3869
+ - qrveyid
3870
+ - panelid
3871
+ - columnid
3872
+ - validator
3873
+ - property
3874
+ - Column Aggregate
3875
+ - Column Calculation
3876
+ - Optional Index
3881
3877
 
3882
3878
 
3883
3879
 
@@ -3886,7 +3882,7 @@ Validates if the given validator is a Range type. Range type means the value has
3886
3882
 
3887
3883
  | Name | Type | Description | |
3888
3884
  | ---- | ---- | ----------- | -------- |
3889
- | validator | | The filter validator |   |
3885
+ | filter | | the filter structure |   |
3890
3886
 
3891
3887
 
3892
3888
 
@@ -3894,17 +3890,26 @@ Validates if the given validator is a Range type. Range type means the value has
3894
3890
  ##### Returns
3895
3891
 
3896
3892
 
3897
- - true: it is a range validator
3893
+ - a text to identify the filter
3898
3894
 
3899
3895
 
3900
3896
 
3901
3897
 
3902
- ### dist/filters/helpers/common/isRegularValidator.js
3898
+ ### dist/filters/helpers/common/getFiltersByParams.js
3903
3899
 
3904
3900
 
3905
- #### isRegularValidator(validator)
3901
+ #### getFiltersByParams(filterData, params)
3906
3902
 
3907
- Validates if the given validator is a regular type. Regular type means the filter object has a value as string to filter
3903
+ Gets filters from the given params.
3904
+ The validation to filter the stored filter is depending on:
3905
+ - Column
3906
+ - Qrvey ID
3907
+ - Scope type
3908
+ - Scope ID
3909
+ - Panel ID
3910
+ - Validator type
3911
+ - Property type
3912
+ - Enabled flags
3908
3913
 
3909
3914
 
3910
3915
 
@@ -3913,7 +3918,8 @@ Validates if the given validator is a regular type. Regular type means the filte
3913
3918
 
3914
3919
  | Name | Type | Description | |
3915
3920
  | ---- | ---- | ----------- | -------- |
3916
- | validator | | The filter validator |   |
3921
+ | filterData | | The Filter Data or the UI Filter Data |   |
3922
+ | params | | given parameters to validate the dataset |   |
3917
3923
 
3918
3924
 
3919
3925
 
@@ -3921,17 +3927,17 @@ Validates if the given validator is a regular type. Regular type means the filte
3921
3927
  ##### Returns
3922
3928
 
3923
3929
 
3924
- - true: it is a range validator
3930
+ - a new Filter object structure
3925
3931
 
3926
3932
 
3927
3933
 
3928
3934
 
3929
- ### dist/filters/helpers/common/mergeFilters.js
3935
+ ### dist/filters/helpers/common/getFiltersByScopes.js
3930
3936
 
3931
3937
 
3932
- #### mergeFilters(filterData1, filterData2, overwriteValues)
3938
+ #### getFiltersByScopes(filterData, scopes)
3933
3939
 
3934
- Merge filter data structures in a new one. The first Filter Data passed in the argument has the priority
3940
+ Filters and gets a Filter Data by the given scopes
3935
3941
 
3936
3942
 
3937
3943
 
@@ -3940,9 +3946,8 @@ Merge filter data structures in a new one. The first Filter Data passed in the a
3940
3946
 
3941
3947
  | Name | Type | Description | |
3942
3948
  | ---- | ---- | ----------- | -------- |
3943
- | filterData1 | | The target filter data |   |
3944
- | filterData2 | | the filter data to be merged |   |
3945
- | overwriteValues | | Flag to overwrite or not the filter values |   |
3949
+ | filterData | | The Filter Data |   |
3950
+ | scopes | | collection of scopes types |   |
3946
3951
 
3947
3952
 
3948
3953
 
@@ -3950,13 +3955,17 @@ Merge filter data structures in a new one. The first Filter Data passed in the a
3950
3955
  ##### Returns
3951
3956
 
3952
3957
 
3953
- - a new filter data structure
3958
+ - The new Filter Data
3954
3959
 
3955
3960
 
3956
3961
 
3957
- #### mergeScopes(scopes1, scopes2, overwriteValues)
3958
3962
 
3959
- Gets a new scope structure array by merging two scope structures
3963
+ ### dist/filters/helpers/common/getFiltersByScopesIds.js
3964
+
3965
+
3966
+ #### getFiltersByScopesIds(filterData, scopes)
3967
+
3968
+ Gets filters from Filter Data by Scopes/Scope IDs.
3960
3969
 
3961
3970
 
3962
3971
 
@@ -3965,9 +3974,8 @@ Gets a new scope structure array by merging two scope structures
3965
3974
 
3966
3975
  | Name | Type | Description | |
3967
3976
  | ---- | ---- | ----------- | -------- |
3968
- | scopes1 | | the target scope structure |   |
3969
- | scopes2 | | the scope to be merged |   |
3970
- | overwriteValues | | Flag to overwrite or not the filter values |   |
3977
+ | filterData | | The filter data |   |
3978
+ | scopes | | The collection of Scopes/Scope IDs |   |
3971
3979
 
3972
3980
 
3973
3981
 
@@ -3975,13 +3983,17 @@ Gets a new scope structure array by merging two scope structures
3975
3983
  ##### Returns
3976
3984
 
3977
3985
 
3978
- - a new scope structure array
3986
+ - a new Filter Data
3979
3987
 
3980
3988
 
3981
3989
 
3982
- #### mergeDatasets(datasets1, datasets2, overwriteValues)
3983
3990
 
3984
- Gets a new dataset structure array by merging two dataset structures
3991
+ ### dist/filters/helpers/common/getFiltersByVisibility.js
3992
+
3993
+
3994
+ #### getFiltersByVisibility(filterData, scopes)
3995
+
3996
+ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3985
3997
 
3986
3998
 
3987
3999
 
@@ -3990,9 +4002,8 @@ Gets a new dataset structure array by merging two dataset structures
3990
4002
 
3991
4003
  | Name | Type | Description | |
3992
4004
  | ---- | ---- | ----------- | -------- |
3993
- | datasets1 | | the target dataset structure |   |
3994
- | datasets2 | | the dataset to be merged |   |
3995
- | overwriteValues | | Flag to overwrite or not the filter values |   |
4005
+ | filterData | | a Filter Data or UI Filter Data |   |
4006
+ | scopes | | a Scopes/Scope IDs array |   |
3996
4007
 
3997
4008
 
3998
4009
 
@@ -4000,13 +4011,17 @@ Gets a new dataset structure array by merging two dataset structures
4000
4011
  ##### Returns
4001
4012
 
4002
4013
 
4003
- - a new dataset structure array
4014
+ - a new Filter Data
4004
4015
 
4005
4016
 
4006
4017
 
4007
- #### mergeFilterss(filters1, filters2, overwriteValues)
4008
4018
 
4009
- Gets a new filter structure array by merging two filter structures
4019
+ ### dist/filters/helpers/common/getParamsToGetFilterSettings.js
4020
+
4021
+
4022
+ #### getParamsToGetFilterSettings(settings)
4023
+
4024
+ Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
4010
4025
 
4011
4026
 
4012
4027
 
@@ -4015,9 +4030,7 @@ Gets a new filter structure array by merging two filter structures
4015
4030
 
4016
4031
  | Name | Type | Description | |
4017
4032
  | ---- | ---- | ----------- | -------- |
4018
- | filters1 | | the target filter structure |   |
4019
- | filters2 | | the filter to be merged |   |
4020
- | overwriteValues | | Flag to overwrite or not the filter values |   |
4033
+ | settings | | an object to the ParamsToGetFilter settings |   |
4021
4034
 
4022
4035
 
4023
4036
 
@@ -4025,13 +4038,17 @@ Gets a new filter structure array by merging two filter structures
4025
4038
  ##### Returns
4026
4039
 
4027
4040
 
4028
- - a new filter structure array
4041
+ - a new ParamsToGetFilter settings object.
4029
4042
 
4030
4043
 
4031
4044
 
4032
- #### mergeValues(filter1, filter2, overwrite)
4033
4045
 
4034
- Gets a new value structure array by merging two value structures
4046
+ ### dist/filters/helpers/common/haveFiltersByDataset.js
4047
+
4048
+
4049
+ #### haveFiltersByDataset(filterData, qrveyid)
4050
+
4051
+ Validates if the filter data has filters by a dataset ID (Qrvey ID).
4035
4052
 
4036
4053
 
4037
4054
 
@@ -4040,9 +4057,8 @@ Gets a new value structure array by merging two value structures
4040
4057
 
4041
4058
  | Name | Type | Description | |
4042
4059
  | ---- | ---- | ----------- | -------- |
4043
- | filter1 | | the target filter structure |   |
4044
- | filter2 | | the filter to be used to merge the values |   |
4045
- | overwrite | | Flag to overwrite or not the filter values |   |
4060
+ | filterData | | the filter data or the UI filter data. |   |
4061
+ | qrveyid | | The Qrvey ID |   |
4046
4062
 
4047
4063
 
4048
4064
 
@@ -4050,17 +4066,17 @@ Gets a new value structure array by merging two value structures
4050
4066
  ##### Returns
4051
4067
 
4052
4068
 
4053
- - a new value structure array
4069
+ - true: the filter data has filters by the Qrvey ID
4054
4070
 
4055
4071
 
4056
4072
 
4057
4073
 
4058
- ### dist/filters/helpers/common/resolveDatasetConditions.js
4074
+ ### dist/filters/helpers/common/isBetweenValidator.js
4059
4075
 
4060
4076
 
4061
- #### resolveDatasetConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4077
+ #### isBetweenValidator(validator)
4062
4078
 
4063
- Resolves the conditions by given params
4079
+ Validates if the given validator is a Between type
4064
4080
 
4065
4081
 
4066
4082
 
@@ -4069,10 +4085,7 @@ Resolves the conditions by given params
4069
4085
 
4070
4086
  | Name | Type | Description | |
4071
4087
  | ---- | ---- | ----------- | -------- |
4072
- | filter | | The dataset structure |   |
4073
- | params | | given parameters to validate the dataset |   |
4074
- | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined |   |
4075
- | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. |   |
4088
+ | validator | | The validator |   |
4076
4089
 
4077
4090
 
4078
4091
 
@@ -4080,17 +4093,17 @@ Resolves the conditions by given params
4080
4093
  ##### Returns
4081
4094
 
4082
4095
 
4083
- - true: the condition is satisfied
4096
+ - true: it is a between validator; false: it is not a between validator
4084
4097
 
4085
4098
 
4086
4099
 
4087
4100
 
4088
- ### dist/filters/helpers/common/resolveFilterConditions.js
4101
+ ### dist/filters/helpers/common/isDateDistinctProperty.js
4089
4102
 
4090
4103
 
4091
- #### resolveFilterConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4104
+ #### isDateDistinctProperty(column, property)
4092
4105
 
4093
- Resolves the conditions by given params
4106
+ Determines if the filter column and property is a distinct group dates type
4094
4107
 
4095
4108
 
4096
4109
 
@@ -4099,10 +4112,8 @@ Resolves the conditions by given params
4099
4112
 
4100
4113
  | Name | Type | Description | |
4101
4114
  | ---- | ---- | ----------- | -------- |
4102
- | filter | | The filter |   |
4103
- | params | | given parameters to validate the filter |   |
4104
- | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined |   |
4105
- | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. |   |
4115
+ | column | | The filter column |   |
4116
+ | property | | The filter property |   |
4106
4117
 
4107
4118
 
4108
4119
 
@@ -4110,17 +4121,17 @@ Resolves the conditions by given params
4110
4121
  ##### Returns
4111
4122
 
4112
4123
 
4113
- - true: the condition is satisfied
4124
+ - True if the given property is included from distinct group dates type
4114
4125
 
4115
4126
 
4116
4127
 
4117
4128
 
4118
- ### dist/filters/helpers/common/resolveScopeConditions.js
4129
+ ### dist/filters/helpers/common/getMergeFiltersSettings.js
4119
4130
 
4120
4131
 
4121
- #### resolveScopeConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4132
+ #### getMergeFiltersSettings(settings)
4122
4133
 
4123
- Resolves the conditions by given params
4134
+ Transforms the given MergeFilters settings object. Adds the missing properties if they do not exist.
4124
4135
 
4125
4136
 
4126
4137
 
@@ -4129,10 +4140,7 @@ Resolves the conditions by given params
4129
4140
 
4130
4141
  | Name | Type | Description | |
4131
4142
  | ---- | ---- | ----------- | -------- |
4132
- | filter | | The filter scope structure |   |
4133
- | params | | given parameters to validate the filter |   |
4134
- | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined |   |
4135
- | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. |   |
4143
+ | settings | | an object to the MergeFilters settings |   |
4136
4144
 
4137
4145
 
4138
4146
 
@@ -4140,17 +4148,17 @@ Resolves the conditions by given params
4140
4148
  ##### Returns
4141
4149
 
4142
4150
 
4143
- - true: the condition is satisfied
4151
+ - a new MergeFilters settings object.
4144
4152
 
4145
4153
 
4146
4154
 
4147
4155
 
4148
- ### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
4156
+ ### dist/filters/helpers/common/isInValidator.js
4149
4157
 
4150
4158
 
4151
- #### excludeUIFiltersByAggregate(uFilters)
4159
+ #### isInValidator(validator)
4152
4160
 
4153
- Excludes Aggregate Filters in the Flattened UI Filters array
4161
+ Validates if the given validator is a In type
4154
4162
 
4155
4163
 
4156
4164
 
@@ -4159,7 +4167,7 @@ Excludes Aggregate Filters in the Flattened UI Filters array
4159
4167
 
4160
4168
  | Name | Type | Description | |
4161
4169
  | ---- | ---- | ----------- | -------- |
4162
- | uFilters | | Collection of Flat UI Filters |   |
4170
+ | validator | | The validator |   |
4163
4171
 
4164
4172
 
4165
4173
 
@@ -4167,17 +4175,17 @@ Excludes Aggregate Filters in the Flattened UI Filters array
4167
4175
  ##### Returns
4168
4176
 
4169
4177
 
4170
- - a new Flat UI Filters that were excluded the aggregate filters
4178
+ - true: it is a In validator; false: it is not a In validator
4171
4179
 
4172
4180
 
4173
4181
 
4174
4182
 
4175
- ### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
4183
+ ### dist/filters/helpers/common/isNullValidator.js
4176
4184
 
4177
4185
 
4178
- #### excludeUIFlatFiltersByScopes(uFilters, scopes)
4186
+ #### isNullValidator(validator)
4179
4187
 
4180
- Excludes and returns a UI Flat Filters without filters by the given scopes
4188
+ Checks if the given validator is a Null type.
4181
4189
 
4182
4190
 
4183
4191
 
@@ -4186,8 +4194,7 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
4186
4194
 
4187
4195
  | Name | Type | Description | |
4188
4196
  | ---- | ---- | ----------- | -------- |
4189
- | uFilters | | The Flatten UI Filters |   |
4190
- | scopes | | collection of scopes types |   |
4197
+ | validator | | The Filter Validator |   |
4191
4198
 
4192
4199
 
4193
4200
 
@@ -4195,17 +4202,17 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
4195
4202
  ##### Returns
4196
4203
 
4197
4204
 
4198
- - The new array of UI Flattened filters
4205
+ - True: It is a Null Validator; False: It is not a Null Validator.
4199
4206
 
4200
4207
 
4201
4208
 
4202
4209
 
4203
- ### dist/filters/helpers/ui/getFilterPropertyLabel.js
4210
+ ### dist/filters/helpers/common/isRangeValidator.js
4204
4211
 
4205
4212
 
4206
- #### getFilterPropertyLabel(filter)
4213
+ #### isRangeValidator(validator)
4207
4214
 
4208
- Gets the label of the filter property
4215
+ Validates if the given validator is a Range type. Range type means the value has min and max values to filter
4209
4216
 
4210
4217
 
4211
4218
 
@@ -4214,7 +4221,7 @@ Gets the label of the filter property
4214
4221
 
4215
4222
  | Name | Type | Description | |
4216
4223
  | ---- | ---- | ----------- | -------- |
4217
- | filter | | The UI Filter |   |
4224
+ | validator | | The filter validator |   |
4218
4225
 
4219
4226
 
4220
4227
 
@@ -4222,17 +4229,17 @@ Gets the label of the filter property
4222
4229
  ##### Returns
4223
4230
 
4224
4231
 
4225
- - a string of the filter property label
4232
+ - true: it is a range validator
4226
4233
 
4227
4234
 
4228
4235
 
4229
4236
 
4230
- ### dist/filters/helpers/ui/getOutputFormatByColumn.js
4237
+ ### dist/filters/helpers/common/isRegularValidator.js
4231
4238
 
4232
4239
 
4233
- #### getOutputFormatByColumn(column, datasets)
4240
+ #### isRegularValidator(validator)
4234
4241
 
4235
- Gets output format object from Datasets by the given column. Item of the datasets array must have outputformat item in order to be returned
4242
+ Validates if the given validator is a regular type. Regular type means the filter object has a value as string to filter
4236
4243
 
4237
4244
 
4238
4245
 
@@ -4241,8 +4248,7 @@ Gets output format object from Datasets by the given column. Item of the dataset
4241
4248
 
4242
4249
  | Name | Type | Description | |
4243
4250
  | ---- | ---- | ----------- | -------- |
4244
- | column | | The column |   |
4245
- | datasets | | array of datasets |   |
4251
+ | validator | | The filter validator |   |
4246
4252
 
4247
4253
 
4248
4254
 
@@ -4250,18 +4256,17 @@ Gets output format object from Datasets by the given column. Item of the dataset
4250
4256
  ##### Returns
4251
4257
 
4252
4258
 
4253
- - The output format object
4259
+ - true: it is a range validator
4254
4260
 
4255
4261
 
4256
4262
 
4257
4263
 
4258
- ### dist/filters/helpers/ui/getQrveyIdsByUIFilters.js
4264
+ ### dist/filters/helpers/common/mergeFilters.js
4259
4265
 
4260
4266
 
4261
- #### getQrveyIdsByUIFilters(uiFilter)
4267
+ #### mergeFilters(filterData1, filterData2, overwriteValues)
4262
4268
 
4263
- Gets a collection of Qrvey IDs in the UI Filter structure.
4264
- Looks around all filter structure finding the qrveyid propertty in each dataset
4269
+ Merge filter data structures in a new one. The first Filter Data passed in the argument has the priority
4265
4270
 
4266
4271
 
4267
4272
 
@@ -4270,7 +4275,9 @@ Looks around all filter structure finding the qrveyid propertty in each dataset
4270
4275
 
4271
4276
  | Name | Type | Description | |
4272
4277
  | ---- | ---- | ----------- | -------- |
4273
- | uiFilter | | |   |
4278
+ | filterData1 | | The target filter data |   |
4279
+ | filterData2 | | the filter data to be merged |   |
4280
+ | overwriteValues | | Flag to overwrite or not the filter values |   |
4274
4281
 
4275
4282
 
4276
4283
 
@@ -4278,27 +4285,24 @@ Looks around all filter structure finding the qrveyid propertty in each dataset
4278
4285
  ##### Returns
4279
4286
 
4280
4287
 
4281
- - `Void`
4288
+ - a new filter data structure
4282
4289
 
4283
4290
 
4284
4291
 
4292
+ #### mergeScopes(scopes1, scopes2, overwriteValues)
4285
4293
 
4286
- ### dist/filters/helpers/ui/getUIFlatFilterByParams.js
4294
+ Gets a new scope structure array by merging two scope structures
4287
4295
 
4288
4296
 
4289
- #### getUIFlatFilterByParams()
4290
4297
 
4291
- Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
4292
- The validation to filter the stored filter is depending on:
4293
- - Column
4294
- - Qrvey ID,
4295
- - Scope type
4296
- - Scope ID
4297
- - Panel ID
4298
- - Validator type
4299
- - Property type
4300
4298
 
4299
+ ##### Parameters
4301
4300
 
4301
+ | Name | Type | Description | |
4302
+ | ---- | ---- | ----------- | -------- |
4303
+ | scopes1 | | the target scope structure |   |
4304
+ | scopes2 | | the scope to be merged |   |
4305
+ | overwriteValues | | Flag to overwrite or not the filter values |   |
4302
4306
 
4303
4307
 
4304
4308
 
@@ -4306,28 +4310,24 @@ The validation to filter the stored filter is depending on:
4306
4310
  ##### Returns
4307
4311
 
4308
4312
 
4309
- - The index of the uFilter array or the Filter object s
4313
+ - a new scope structure array
4310
4314
 
4311
4315
 
4312
4316
 
4317
+ #### mergeDatasets(datasets1, datasets2, overwriteValues)
4313
4318
 
4314
- ### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
4319
+ Gets a new dataset structure array by merging two dataset structures
4315
4320
 
4316
4321
 
4317
- #### getUIFlatFiltersByParams()
4318
4322
 
4319
- Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
4320
- The validation to filter the stored filter is depending on:
4321
- - Column
4322
- - Qrvey ID,
4323
- - Scope type
4324
- - Scope ID
4325
- - Panel ID
4326
- - Validator type
4327
- - Property type
4328
- - Enabled flags
4329
4323
 
4324
+ ##### Parameters
4330
4325
 
4326
+ | Name | Type | Description | |
4327
+ | ---- | ---- | ----------- | -------- |
4328
+ | datasets1 | | the target dataset structure |   |
4329
+ | datasets2 | | the dataset to be merged |   |
4330
+ | overwriteValues | | Flag to overwrite or not the filter values |   |
4331
4331
 
4332
4332
 
4333
4333
 
@@ -4335,17 +4335,13 @@ The validation to filter the stored filter is depending on:
4335
4335
  ##### Returns
4336
4336
 
4337
4337
 
4338
- - The index of the uFilter array or the Filter object s
4339
-
4340
-
4341
-
4338
+ - a new dataset structure array
4342
4339
 
4343
- ### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
4344
4340
 
4345
4341
 
4346
- #### getUIFlatFiltersByScopes(uFilters, scopes)
4342
+ #### mergeFilterss(filters1, filters2, overwriteValues)
4347
4343
 
4348
- Filters and gets a UI Flatten Filters by the given scopes
4344
+ Gets a new filter structure array by merging two filter structures
4349
4345
 
4350
4346
 
4351
4347
 
@@ -4354,8 +4350,9 @@ Filters and gets a UI Flatten Filters by the given scopes
4354
4350
 
4355
4351
  | Name | Type | Description | |
4356
4352
  | ---- | ---- | ----------- | -------- |
4357
- | uFilters | | The Flatten UI Filters |   |
4358
- | scopes | | collection of scopes types |   |
4353
+ | filters1 | | the target filter structure |   |
4354
+ | filters2 | | the filter to be merged |   |
4355
+ | overwriteValues | | Flag to overwrite or not the filter values |   |
4359
4356
 
4360
4357
 
4361
4358
 
@@ -4363,17 +4360,13 @@ Filters and gets a UI Flatten Filters by the given scopes
4363
4360
  ##### Returns
4364
4361
 
4365
4362
 
4366
- - The new array of UI Flattened filters
4367
-
4368
-
4369
-
4370
-
4371
- ### dist/filters/helpers/ui/getUIValues.js
4363
+ - a new filter structure array
4372
4364
 
4373
4365
 
4374
- #### getUIValues(filter, addEnableds, rankingGroupIndex)
4375
4366
 
4367
+ #### mergeValues(filter1, filter2, overwrite)
4376
4368
 
4369
+ Gets a new value structure array by merging two value structures
4377
4370
 
4378
4371
 
4379
4372
 
@@ -4382,9 +4375,9 @@ Filters and gets a UI Flatten Filters by the given scopes
4382
4375
 
4383
4376
  | Name | Type | Description | |
4384
4377
  | ---- | ---- | ----------- | -------- |
4385
- | filter | | |   |
4386
- | addEnableds | | |   |
4387
- | rankingGroupIndex | | |   |
4378
+ | filter1 | | the target filter structure |   |
4379
+ | filter2 | | the filter to be used to merge the values |   |
4380
+ | overwrite | | Flag to overwrite or not the filter values |   |
4388
4381
 
4389
4382
 
4390
4383
 
@@ -4392,17 +4385,17 @@ Filters and gets a UI Flatten Filters by the given scopes
4392
4385
  ##### Returns
4393
4386
 
4394
4387
 
4395
- -
4388
+ - a new value structure array
4396
4389
 
4397
4390
 
4398
4391
 
4399
4392
 
4400
- ### dist/filters/helpers/ui/getUpdatedUIFilters.js
4393
+ ### dist/filters/helpers/common/resolveDatasetConditions.js
4401
4394
 
4402
4395
 
4403
- #### getUpdatedUIFilters(data, datasets)
4396
+ #### resolveDatasetConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4404
4397
 
4405
- Gets a new UI Filter structure with a datasets/columns info updates
4398
+ Resolves the conditions by given params
4406
4399
 
4407
4400
 
4408
4401
 
@@ -4411,8 +4404,10 @@ Gets a new UI Filter structure with a datasets/columns info updates
4411
4404
 
4412
4405
  | Name | Type | Description | |
4413
4406
  | ---- | ---- | ----------- | -------- |
4414
- | data | | The UI Filter structure |   |
4415
- | datasets | | An array of datasets/column info used for updating the data |   |
4407
+ | filter | | The dataset structure |   |
4408
+ | params | | given parameters to validate the dataset |   |
4409
+ | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined |   |
4410
+ | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. |   |
4416
4411
 
4417
4412
 
4418
4413
 
@@ -4420,17 +4415,17 @@ Gets a new UI Filter structure with a datasets/columns info updates
4420
4415
  ##### Returns
4421
4416
 
4422
4417
 
4423
- - A new UI FIlter structure
4418
+ - true: the condition is satisfied
4424
4419
 
4425
4420
 
4426
4421
 
4427
4422
 
4428
- ### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
4423
+ ### dist/filters/helpers/common/resolveFilterConditions.js
4429
4424
 
4430
4425
 
4431
- #### resolveUIFlatFilterByParams(filter, params)
4426
+ #### resolveFilterConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4432
4427
 
4433
- Resolves conditions between UI flattened filter and given parameters
4428
+ Resolves the conditions by given params
4434
4429
 
4435
4430
 
4436
4431
 
@@ -4439,8 +4434,10 @@ Resolves conditions between UI flattened filter and given parameters
4439
4434
 
4440
4435
  | Name | Type | Description | |
4441
4436
  | ---- | ---- | ----------- | -------- |
4442
- | filter | | UI Flatten Filter |   |
4443
- | params | | Parameters to validate |   |
4437
+ | filter | | The filter |   |
4438
+ | params | | given parameters to validate the filter |   |
4439
+ | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined |   |
4440
+ | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. |   |
4444
4441
 
4445
4442
 
4446
4443
 
@@ -4448,17 +4445,17 @@ Resolves conditions between UI flattened filter and given parameters
4448
4445
  ##### Returns
4449
4446
 
4450
4447
 
4451
- - true: the conditions are satisfied.
4448
+ - true: the condition is satisfied
4452
4449
 
4453
4450
 
4454
4451
 
4455
4452
 
4456
- ### dist/filters/helpers/common/getFilterColumnLabel.js
4453
+ ### dist/filters/helpers/common/resolveScopeConditions.js
4457
4454
 
4458
4455
 
4459
- #### getFilterColumnLabel(column)
4456
+ #### resolveScopeConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4460
4457
 
4461
- Get an string of the properties of the given filter column.
4458
+ Resolves the conditions by given params
4462
4459
 
4463
4460
 
4464
4461
 
@@ -4467,7 +4464,10 @@ Get an string of the properties of the given filter column.
4467
4464
 
4468
4465
  | Name | Type | Description | |
4469
4466
  | ---- | ---- | ----------- | -------- |
4470
- | column | | The filter column |   |
4467
+ | filter | | The filter scope structure |   |
4468
+ | params | | given parameters to validate the filter |   |
4469
+ | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined |   |
4470
+ | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. |   |
4471
4471
 
4472
4472
 
4473
4473
 
@@ -4475,7 +4475,7 @@ Get an string of the properties of the given filter column.
4475
4475
  ##### Returns
4476
4476
 
4477
4477
 
4478
- - an string with the property, aggregate or calculation label.
4478
+ - true: the condition is satisfied
4479
4479
 
4480
4480
 
4481
4481