@qrvey/utils 1.2.9-21 → 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 (53) hide show
  1. package/README.md +295 -295
  2. package/dist/cjs/columns/interfaces/IColumn.d.ts +0 -2
  3. package/dist/cjs/dates/constants/DATETIME_COLUMN_FORMAT.d.ts +1 -0
  4. package/dist/cjs/dates/constants/DATETIME_COLUMN_FORMAT.js +11 -0
  5. package/dist/cjs/dates/constants/index.d.ts +1 -0
  6. package/dist/cjs/dates/constants/index.js +1 -0
  7. package/dist/cjs/filters/adapters/FDToFlatUI.js +1 -1
  8. package/dist/cjs/filters/adapters/FDToUI.js +1 -2
  9. package/dist/cjs/filters/adapters/logicToFlatUI.js +3 -3
  10. package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.js +1 -1
  11. package/dist/cjs/filters/interfaces/OLD_IFilterDetail.d.ts +4 -1
  12. package/dist/cjs/format/definition.d.ts +16 -2
  13. package/dist/cjs/format/definition.js +3 -1
  14. package/dist/cjs/format/format.js +1 -1
  15. package/dist/cjs/format/localization.js +24 -9
  16. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +1 -0
  17. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +1 -0
  18. package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.d.ts +1 -0
  19. package/dist/cjs/qrvey/helpers/transformValue.js +1 -1
  20. package/dist/columns/interfaces/IColumn.d.ts +0 -2
  21. package/dist/dates/constants/DATETIME_COLUMN_FORMAT.d.ts +1 -0
  22. package/dist/dates/constants/DATETIME_COLUMN_FORMAT.js +8 -0
  23. package/dist/dates/constants/index.d.ts +1 -0
  24. package/dist/dates/constants/index.js +1 -0
  25. package/dist/filters/adapters/FDToFlatUI.js +1 -1
  26. package/dist/filters/adapters/FDToUI.js +1 -2
  27. package/dist/filters/adapters/logicToFlatUI.js +3 -3
  28. package/dist/filters/helpers/ui/getUpdatedUIFilters.js +1 -1
  29. package/dist/filters/interfaces/OLD_IFilterDetail.d.ts +4 -1
  30. package/dist/format/definition.d.ts +16 -2
  31. package/dist/format/definition.js +2 -0
  32. package/dist/format/format.js +1 -1
  33. package/dist/format/localization.js +25 -10
  34. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +1 -0
  35. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +1 -0
  36. package/dist/interfaces/format/IFormatOutputFormat.Interface.d.ts +1 -0
  37. package/dist/qrvey/helpers/transformValue.js +1 -1
  38. package/package.json +1 -1
  39. package/src/columns/interfaces/IColumn.ts +0 -2
  40. package/src/dates/constants/DATETIME_COLUMN_FORMAT.ts +8 -0
  41. package/src/dates/constants/index.ts +1 -0
  42. package/src/filters/adapters/FDToFlatUI.ts +1 -1
  43. package/src/filters/adapters/FDToUI.ts +1 -1
  44. package/src/filters/adapters/logicToFlatUI.ts +1 -1
  45. package/src/filters/helpers/ui/getUpdatedUIFilters.ts +1 -1
  46. package/src/filters/interfaces/OLD_IFilterDetail.ts +2 -1
  47. package/src/format/definition.ts +6 -1
  48. package/src/format/format.ts +1 -1
  49. package/src/format/localization.ts +24 -10
  50. package/src/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.ts +1 -0
  51. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.ts +1 -0
  52. package/src/interfaces/format/IFormatOutputFormat.Interface.ts +2 -1
  53. package/src/qrvey/helpers/transformValue.ts +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-21*
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
 
@@ -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/getFilterColumnLabel.js
3461
+ ### dist/filters/helpers/ui/getQrveyIdsByUIFilters.js
3472
3462
 
3473
3463
 
3474
- #### getFilterColumnLabel(column)
3464
+ #### getQrveyIdsByUIFilters(uiFilter)
3475
3465
 
3476
- Get an string of the properties of the given filter column.
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 @@ Get an string of the properties of the given filter column.
3482
3473
 
3483
3474
  | Name | Type | Description | |
3484
3475
  | ---- | ---- | ----------- | -------- |
3485
- | column | | The filter column |   |
3476
+ | uiFilter | | |   |
3486
3477
 
3487
3478
 
3488
3479
 
@@ -3490,26 +3481,27 @@ Get an string of the properties of the given filter column.
3490
3481
  ##### Returns
3491
3482
 
3492
3483
 
3493
- - an string with the property, aggregate or calculation label.
3494
-
3495
-
3496
-
3484
+ - `Void`
3497
3485
 
3498
- ### dist/filters/helpers/common/getFilterLabel.js
3499
3486
 
3500
3487
 
3501
- #### getFilterLabel(filter)
3502
3488
 
3503
- Gets the Filter Label + Column label
3489
+ ### dist/filters/helpers/ui/getUIFlatFilterByParams.js
3504
3490
 
3505
3491
 
3492
+ #### getUIFlatFilterByParams()
3506
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
3507
3503
 
3508
- ##### Parameters
3509
3504
 
3510
- | Name | Type | Description | |
3511
- | ---- | ---- | ----------- | -------- |
3512
- | filter | | the UI filter |   |
3513
3505
 
3514
3506
 
3515
3507
 
@@ -3517,37 +3509,28 @@ Gets the Filter Label + Column label
3517
3509
  ##### Returns
3518
3510
 
3519
3511
 
3520
- - a sring label
3521
-
3522
-
3512
+ - The index of the uFilter array or the Filter object s
3523
3513
 
3524
3514
 
3525
- ### dist/filters/helpers/common/getFilterid.js
3526
3515
 
3527
3516
 
3528
- #### getFilterid(filter)
3529
-
3530
- Get the Filter ID by the filter structure
3531
- The order of the epression ID is:
3532
- - Scope Type
3533
- - scopeid
3534
- - qrveyid
3535
- - panelid
3536
- - columnid
3537
- - validator
3538
- - property
3539
- - Column Aggregate
3540
- - Column Calculation
3541
- - Optional Index
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
- | filter | | the filter structure |   |
3551
3534
 
3552
3535
 
3553
3536
 
@@ -3555,17 +3538,17 @@ The order of the epression ID is:
3555
3538
  ##### Returns
3556
3539
 
3557
3540
 
3558
- - a text to identify the filter
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/getFiltersByAggregateColumn.js
3546
+ ### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
3564
3547
 
3565
3548
 
3566
- #### getFiltersByAggregateColumn(filterData)
3549
+ #### getUIFlatFiltersByScopes(uFilters, scopes)
3567
3550
 
3568
- Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
3551
+ Filters and gets a UI Flatten Filters by the given scopes
3569
3552
 
3570
3553
 
3571
3554
 
@@ -3574,7 +3557,8 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
3574
3557
 
3575
3558
  | Name | Type | Description | |
3576
3559
  | ---- | ---- | ----------- | -------- |
3577
- | filterData | | The filter data object |   |
3560
+ | uFilters | | The Flatten UI Filters |   |
3561
+ | scopes | | collection of scopes types |   |
3578
3562
 
3579
3563
 
3580
3564
 
@@ -3582,26 +3566,17 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
3582
3566
  ##### Returns
3583
3567
 
3584
3568
 
3585
- - The new filter data object that were get the aggregate filters
3569
+ - The new array of UI Flattened filters
3586
3570
 
3587
3571
 
3588
3572
 
3589
3573
 
3590
- ### dist/filters/helpers/common/getFiltersByParams.js
3574
+ ### dist/filters/helpers/ui/getUIValues.js
3591
3575
 
3592
3576
 
3593
- #### getFiltersByParams(filterData, params)
3577
+ #### getUIValues(filter, addEnableds, rankingGroupIndex)
3578
+
3594
3579
 
3595
- Gets filters from the given params.
3596
- The validation to filter the stored filter is depending on:
3597
- - Column
3598
- - Qrvey ID
3599
- - Scope type
3600
- - Scope ID
3601
- - Panel ID
3602
- - Validator type
3603
- - Property type
3604
- - Enabled flags
3605
3580
 
3606
3581
 
3607
3582
 
@@ -3610,8 +3585,9 @@ The validation to filter the stored filter is depending on:
3610
3585
 
3611
3586
  | Name | Type | Description | |
3612
3587
  | ---- | ---- | ----------- | -------- |
3613
- | filterData | | The Filter Data or the UI Filter Data |   |
3614
- | params | | given parameters to validate the dataset |   |
3588
+ | filter | | |   |
3589
+ | addEnableds | | |   |
3590
+ | rankingGroupIndex | | |   |
3615
3591
 
3616
3592
 
3617
3593
 
@@ -3619,17 +3595,17 @@ The validation to filter the stored filter is depending on:
3619
3595
  ##### Returns
3620
3596
 
3621
3597
 
3622
- - a new Filter object structure
3598
+ -
3623
3599
 
3624
3600
 
3625
3601
 
3626
3602
 
3627
- ### dist/filters/helpers/common/getFiltersByScopes.js
3603
+ ### dist/filters/helpers/ui/getUpdatedUIFilters.js
3628
3604
 
3629
3605
 
3630
- #### getFiltersByScopes(filterData, scopes)
3606
+ #### getUpdatedUIFilters(data, datasets)
3631
3607
 
3632
- Filters and gets a Filter Data by the given scopes
3608
+ Gets a new UI Filter structure with a datasets/columns info updates
3633
3609
 
3634
3610
 
3635
3611
 
@@ -3638,8 +3614,8 @@ Filters and gets a Filter Data by the given scopes
3638
3614
 
3639
3615
  | Name | Type | Description | |
3640
3616
  | ---- | ---- | ----------- | -------- |
3641
- | filterData | | The Filter Data |   |
3642
- | scopes | | collection of scopes types |   |
3617
+ | data | | The UI Filter structure |   |
3618
+ | datasets | | An array of datasets/column info used for updating the data |   |
3643
3619
 
3644
3620
 
3645
3621
 
@@ -3647,17 +3623,17 @@ Filters and gets a Filter Data by the given scopes
3647
3623
  ##### Returns
3648
3624
 
3649
3625
 
3650
- - The new Filter Data
3626
+ - A new UI FIlter structure
3651
3627
 
3652
3628
 
3653
3629
 
3654
3630
 
3655
- ### dist/filters/helpers/common/getFiltersByScopesIds.js
3631
+ ### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
3656
3632
 
3657
3633
 
3658
- #### getFiltersByScopesIds(filterData, scopes)
3634
+ #### resolveUIFlatFilterByParams(filter, params)
3659
3635
 
3660
- Gets filters from Filter Data by Scopes/Scope IDs.
3636
+ Resolves conditions between UI flattened filter and given parameters
3661
3637
 
3662
3638
 
3663
3639
 
@@ -3666,8 +3642,8 @@ Gets filters from Filter Data by Scopes/Scope IDs.
3666
3642
 
3667
3643
  | Name | Type | Description | |
3668
3644
  | ---- | ---- | ----------- | -------- |
3669
- | filterData | | The filter data |   |
3670
- | scopes | | The collection of Scopes/Scope IDs |   |
3645
+ | filter | | UI Flatten Filter |   |
3646
+ | params | | Parameters to validate |   |
3671
3647
 
3672
3648
 
3673
3649
 
@@ -3675,17 +3651,17 @@ Gets filters from Filter Data by Scopes/Scope IDs.
3675
3651
  ##### Returns
3676
3652
 
3677
3653
 
3678
- - a new Filter Data
3654
+ - true: the conditions are satisfied.
3679
3655
 
3680
3656
 
3681
3657
 
3682
3658
 
3683
- ### dist/filters/helpers/common/getFiltersByVisibility.js
3659
+ ### dist/filters/helpers/common/areFiltersEquals.js
3684
3660
 
3685
3661
 
3686
- #### getFiltersByVisibility(filterData, scopes)
3662
+ #### areFiltersEquals(filter1, filter2)
3687
3663
 
3688
- Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3664
+ Validates if both filters are the same
3689
3665
 
3690
3666
 
3691
3667
 
@@ -3694,8 +3670,8 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3694
3670
 
3695
3671
  | Name | Type | Description | |
3696
3672
  | ---- | ---- | ----------- | -------- |
3697
- | filterData | | a Filter Data or UI Filter Data |   |
3698
- | scopes | | a Scopes/Scope IDs array |   |
3673
+ | filter1 | | filter 1 |   |
3674
+ | filter2 | | filter 2 |   |
3699
3675
 
3700
3676
 
3701
3677
 
@@ -3703,17 +3679,17 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3703
3679
  ##### Returns
3704
3680
 
3705
3681
 
3706
- - a new Filter Data
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/getMergeFiltersSettings.js
3687
+ ### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
3712
3688
 
3713
3689
 
3714
- #### getMergeFiltersSettings(settings)
3690
+ #### excludeFiltersByAggregateColumn(filterData)
3715
3691
 
3716
- Transforms the given MergeFilters 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 MergeFilters settings object. Adds the missing properties i
3722
3698
 
3723
3699
  | Name | Type | Description | |
3724
3700
  | ---- | ---- | ----------- | -------- |
3725
- | settings | | an object to the MergeFilters settings |   |
3701
+ | filterData | | The filter data object |   |
3726
3702
 
3727
3703
 
3728
3704
 
@@ -3730,17 +3706,26 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
3730
3706
  ##### Returns
3731
3707
 
3732
3708
 
3733
- - a new MergeFilters 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/getParamsToGetFilterSettings.js
3714
+ ### dist/filters/helpers/common/excludeFiltersByParams.js
3739
3715
 
3740
3716
 
3741
- #### getParamsToGetFilterSettings(settings)
3717
+ #### excludeFiltersByParams(filterData, params)
3742
3718
 
3743
- Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
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,7 +3734,8 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
3749
3734
 
3750
3735
  | Name | Type | Description | |
3751
3736
  | ---- | ---- | ----------- | -------- |
3752
- | settings | | an object to the ParamsToGetFilter settings |   |
3737
+ | filterData | | The Filter Data or the UI Filter Data |   |
3738
+ | params | | given parameters to validate the filter data |   |
3753
3739
 
3754
3740
 
3755
3741
 
@@ -3757,17 +3743,17 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
3757
3743
  ##### Returns
3758
3744
 
3759
3745
 
3760
- - a new ParamsToGetFilter settings object.
3746
+ - a new Filter object structure
3761
3747
 
3762
3748
 
3763
3749
 
3764
3750
 
3765
- ### dist/filters/helpers/common/haveFiltersByDataset.js
3751
+ ### dist/filters/helpers/common/excludeFiltersByScopes.js
3766
3752
 
3767
3753
 
3768
- #### haveFiltersByDataset(filterData, qrveyid)
3754
+ #### excludeFiltersByScopes(filterData, scopes)
3769
3755
 
3770
- Validates if the filter data has filters by a dataset ID (Qrvey ID).
3756
+ Excludes and returns a filter data without filters by the given scopes
3771
3757
 
3772
3758
 
3773
3759
 
@@ -3776,8 +3762,8 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
3776
3762
 
3777
3763
  | Name | Type | Description | |
3778
3764
  | ---- | ---- | ----------- | -------- |
3779
- | filterData | | the filter data or the UI filter data. |   |
3780
- | qrveyid | | The Qrvey ID |   |
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 filter data has filters by a dataset ID (Qrvey ID).
3785
3771
  ##### Returns
3786
3772
 
3787
3773
 
3788
- - true: the filter data has filters by the Qrvey ID
3774
+ - The new Filter Data without filters by the given scopes.
3789
3775
 
3790
3776
 
3791
3777
 
3792
3778
 
3793
- ### dist/filters/helpers/common/isBetweenValidator.js
3779
+ ### dist/filters/helpers/common/getFilterColumnLabel.js
3794
3780
 
3795
3781
 
3796
- #### isBetweenValidator(validator)
3782
+ #### getFilterColumnLabel(column)
3797
3783
 
3798
- Validates if the given validator is a Between type
3784
+ Get an string of the properties of the given filter column.
3799
3785
 
3800
3786
 
3801
3787
 
@@ -3804,7 +3790,7 @@ Validates if the given validator is a Between type
3804
3790
 
3805
3791
  | Name | Type | Description | |
3806
3792
  | ---- | ---- | ----------- | -------- |
3807
- | validator | | The validator |   |
3793
+ | column | | The filter column |   |
3808
3794
 
3809
3795
 
3810
3796
 
@@ -3812,17 +3798,17 @@ Validates if the given validator is a Between type
3812
3798
  ##### Returns
3813
3799
 
3814
3800
 
3815
- - true: it is a between validator; false: it is not a between validator
3801
+ - an string with the property, aggregate or calculation label.
3816
3802
 
3817
3803
 
3818
3804
 
3819
3805
 
3820
- ### dist/filters/helpers/common/isDateDistinctProperty.js
3806
+ ### dist/filters/helpers/common/getFilterLabel.js
3821
3807
 
3822
3808
 
3823
- #### isDateDistinctProperty(column, property)
3809
+ #### getFilterLabel(filter)
3824
3810
 
3825
- Determines if the filter column and property is a distinct group dates type
3811
+ Gets the Filter Label + Column label
3826
3812
 
3827
3813
 
3828
3814
 
@@ -3831,8 +3817,7 @@ Determines if the filter column and property is a distinct group dates type
3831
3817
 
3832
3818
  | Name | Type | Description | |
3833
3819
  | ---- | ---- | ----------- | -------- |
3834
- | column | | The filter column |   |
3835
- | property | | The filter property |   |
3820
+ | filter | | the UI filter |   |
3836
3821
 
3837
3822
 
3838
3823
 
@@ -3840,17 +3825,17 @@ Determines if the filter column and property is a distinct group dates type
3840
3825
  ##### Returns
3841
3826
 
3842
3827
 
3843
- - True if the given property is included from distinct group dates type
3828
+ - a sring label
3844
3829
 
3845
3830
 
3846
3831
 
3847
3832
 
3848
- ### dist/filters/helpers/common/isInValidator.js
3833
+ ### dist/filters/helpers/common/getFiltersByAggregateColumn.js
3849
3834
 
3850
3835
 
3851
- #### isInValidator(validator)
3836
+ #### getFiltersByAggregateColumn(filterData)
3852
3837
 
3853
- Validates if the given validator is a In 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 @@ Validates if the given validator is a In type
3859
3844
 
3860
3845
  | Name | Type | Description | |
3861
3846
  | ---- | ---- | ----------- | -------- |
3862
- | validator | | The validator |   |
3847
+ | filterData | | The filter data object |   |
3863
3848
 
3864
3849
 
3865
3850
 
@@ -3867,17 +3852,28 @@ Validates if the given validator is a In type
3867
3852
  ##### Returns
3868
3853
 
3869
3854
 
3870
- - true: it is a In validator; false: it is not a In 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/isNullValidator.js
3860
+ ### dist/filters/helpers/common/getFilterid.js
3876
3861
 
3877
3862
 
3878
- #### isNullValidator(validator)
3863
+ #### getFilterid(filter)
3879
3864
 
3880
- Checks if the given validator is a Null type.
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 @@ Checks if the given validator is a Null type.
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 @@ Checks if the given validator is a Null type.
3894
3890
  ##### Returns
3895
3891
 
3896
3892
 
3897
- - True: It is a Null Validator; False: It is not a Null Validator.
3893
+ - a text to identify the filter
3898
3894
 
3899
3895
 
3900
3896
 
3901
3897
 
3902
- ### dist/filters/helpers/common/isRangeValidator.js
3898
+ ### dist/filters/helpers/common/getFiltersByParams.js
3903
3899
 
3904
3900
 
3905
- #### isRangeValidator(validator)
3901
+ #### getFiltersByParams(filterData, params)
3906
3902
 
3907
- Validates if the given validator is a Range type. Range type means the value has min and max values 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 Range type. Range type means the value has
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 Range type. Range type means the value has
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/isRegularValidator.js
3935
+ ### dist/filters/helpers/common/getFiltersByScopes.js
3930
3936
 
3931
3937
 
3932
- #### isRegularValidator(validator)
3938
+ #### getFiltersByScopes(filterData, scopes)
3933
3939
 
3934
- Validates if the given validator is a regular type. Regular type means the filter object has a value as string to filter
3940
+ Filters and gets a Filter Data by the given scopes
3935
3941
 
3936
3942
 
3937
3943
 
@@ -3940,7 +3946,8 @@ Validates if the given validator is a regular type. Regular type means the filte
3940
3946
 
3941
3947
  | Name | Type | Description | |
3942
3948
  | ---- | ---- | ----------- | -------- |
3943
- | validator | | The filter validator |   |
3949
+ | filterData | | The Filter Data |   |
3950
+ | scopes | | collection of scopes types |   |
3944
3951
 
3945
3952
 
3946
3953
 
@@ -3948,17 +3955,17 @@ Validates if the given validator is a regular type. Regular type means the filte
3948
3955
  ##### Returns
3949
3956
 
3950
3957
 
3951
- - true: it is a range validator
3958
+ - The new Filter Data
3952
3959
 
3953
3960
 
3954
3961
 
3955
3962
 
3956
- ### dist/filters/helpers/common/mergeFilters.js
3963
+ ### dist/filters/helpers/common/getFiltersByScopesIds.js
3957
3964
 
3958
3965
 
3959
- #### mergeFilters(filterData1, filterData2, overwriteValues)
3966
+ #### getFiltersByScopesIds(filterData, scopes)
3960
3967
 
3961
- Merge filter data structures in a new one. The first Filter Data passed in the argument has the priority
3968
+ Gets filters from Filter Data by Scopes/Scope IDs.
3962
3969
 
3963
3970
 
3964
3971
 
@@ -3967,9 +3974,8 @@ Merge filter data structures in a new one. The first Filter Data passed in the a
3967
3974
 
3968
3975
  | Name | Type | Description | |
3969
3976
  | ---- | ---- | ----------- | -------- |
3970
- | filterData1 | | The target filter data |   |
3971
- | filterData2 | | the filter data to be merged |   |
3972
- | overwriteValues | | Flag to overwrite or not the filter values |   |
3977
+ | filterData | | The filter data |   |
3978
+ | scopes | | The collection of Scopes/Scope IDs |   |
3973
3979
 
3974
3980
 
3975
3981
 
@@ -3977,13 +3983,17 @@ Merge filter data structures in a new one. The first Filter Data passed in the a
3977
3983
  ##### Returns
3978
3984
 
3979
3985
 
3980
- - a new filter data structure
3986
+ - a new Filter Data
3987
+
3988
+
3989
+
3981
3990
 
3991
+ ### dist/filters/helpers/common/getFiltersByVisibility.js
3982
3992
 
3983
3993
 
3984
- #### mergeScopes(scopes1, scopes2, overwriteValues)
3994
+ #### getFiltersByVisibility(filterData, scopes)
3985
3995
 
3986
- Gets a new scope structure array by merging two scope structures
3996
+ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3987
3997
 
3988
3998
 
3989
3999
 
@@ -3992,9 +4002,8 @@ Gets a new scope structure array by merging two scope structures
3992
4002
 
3993
4003
  | Name | Type | Description | |
3994
4004
  | ---- | ---- | ----------- | -------- |
3995
- | scopes1 | | the target scope structure |   |
3996
- | scopes2 | | the scope to be merged |   |
3997
- | 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 |   |
3998
4007
 
3999
4008
 
4000
4009
 
@@ -4002,13 +4011,17 @@ Gets a new scope structure array by merging two scope structures
4002
4011
  ##### Returns
4003
4012
 
4004
4013
 
4005
- - a new scope structure array
4014
+ - a new Filter Data
4006
4015
 
4007
4016
 
4008
4017
 
4009
- #### mergeDatasets(datasets1, datasets2, overwriteValues)
4010
4018
 
4011
- Gets a new dataset structure array by merging two dataset 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.
4012
4025
 
4013
4026
 
4014
4027
 
@@ -4017,9 +4030,7 @@ Gets a new dataset structure array by merging two dataset structures
4017
4030
 
4018
4031
  | Name | Type | Description | |
4019
4032
  | ---- | ---- | ----------- | -------- |
4020
- | datasets1 | | the target dataset structure |   |
4021
- | datasets2 | | the dataset to be merged |   |
4022
- | overwriteValues | | Flag to overwrite or not the filter values |   |
4033
+ | settings | | an object to the ParamsToGetFilter settings |   |
4023
4034
 
4024
4035
 
4025
4036
 
@@ -4027,13 +4038,17 @@ Gets a new dataset structure array by merging two dataset structures
4027
4038
  ##### Returns
4028
4039
 
4029
4040
 
4030
- - a new dataset structure array
4041
+ - a new ParamsToGetFilter settings object.
4031
4042
 
4032
4043
 
4033
4044
 
4034
- #### mergeFilterss(filters1, filters2, overwriteValues)
4035
4045
 
4036
- Gets a new filter structure array by merging two filter 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).
4037
4052
 
4038
4053
 
4039
4054
 
@@ -4042,9 +4057,8 @@ Gets a new filter structure array by merging two filter structures
4042
4057
 
4043
4058
  | Name | Type | Description | |
4044
4059
  | ---- | ---- | ----------- | -------- |
4045
- | filters1 | | the target filter structure |   |
4046
- | filters2 | | the filter to be merged |   |
4047
- | overwriteValues | | Flag to overwrite or not the filter values |   |
4060
+ | filterData | | the filter data or the UI filter data. |   |
4061
+ | qrveyid | | The Qrvey ID |   |
4048
4062
 
4049
4063
 
4050
4064
 
@@ -4052,13 +4066,17 @@ Gets a new filter structure array by merging two filter structures
4052
4066
  ##### Returns
4053
4067
 
4054
4068
 
4055
- - a new filter structure array
4069
+ - true: the filter data has filters by the Qrvey ID
4056
4070
 
4057
4071
 
4058
4072
 
4059
- #### mergeValues(filter1, filter2, overwrite)
4060
4073
 
4061
- Gets a new value structure array by merging two value structures
4074
+ ### dist/filters/helpers/common/isBetweenValidator.js
4075
+
4076
+
4077
+ #### isBetweenValidator(validator)
4078
+
4079
+ Validates if the given validator is a Between type
4062
4080
 
4063
4081
 
4064
4082
 
@@ -4067,9 +4085,7 @@ Gets a new value structure array by merging two value structures
4067
4085
 
4068
4086
  | Name | Type | Description | |
4069
4087
  | ---- | ---- | ----------- | -------- |
4070
- | filter1 | | the target filter structure |   |
4071
- | filter2 | | the filter to be used to merge the values |   |
4072
- | overwrite | | Flag to overwrite or not the filter values |   |
4088
+ | validator | | The validator |   |
4073
4089
 
4074
4090
 
4075
4091
 
@@ -4077,17 +4093,17 @@ Gets a new value structure array by merging two value structures
4077
4093
  ##### Returns
4078
4094
 
4079
4095
 
4080
- - a new value structure array
4096
+ - true: it is a between validator; false: it is not a between validator
4081
4097
 
4082
4098
 
4083
4099
 
4084
4100
 
4085
- ### dist/filters/helpers/common/resolveDatasetConditions.js
4101
+ ### dist/filters/helpers/common/isDateDistinctProperty.js
4086
4102
 
4087
4103
 
4088
- #### resolveDatasetConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4104
+ #### isDateDistinctProperty(column, property)
4089
4105
 
4090
- Resolves the conditions by given params
4106
+ Determines if the filter column and property is a distinct group dates type
4091
4107
 
4092
4108
 
4093
4109
 
@@ -4096,10 +4112,8 @@ Resolves the conditions by given params
4096
4112
 
4097
4113
  | Name | Type | Description | |
4098
4114
  | ---- | ---- | ----------- | -------- |
4099
- | filter | | The dataset structure |   |
4100
- | params | | given parameters to validate the dataset |   |
4101
- | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined |   |
4102
- | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. |   |
4115
+ | column | | The filter column |   |
4116
+ | property | | The filter property |   |
4103
4117
 
4104
4118
 
4105
4119
 
@@ -4107,17 +4121,17 @@ Resolves the conditions by given params
4107
4121
  ##### Returns
4108
4122
 
4109
4123
 
4110
- - true: the condition is satisfied
4124
+ - True if the given property is included from distinct group dates type
4111
4125
 
4112
4126
 
4113
4127
 
4114
4128
 
4115
- ### dist/filters/helpers/common/resolveFilterConditions.js
4129
+ ### dist/filters/helpers/common/getMergeFiltersSettings.js
4116
4130
 
4117
4131
 
4118
- #### resolveFilterConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4132
+ #### getMergeFiltersSettings(settings)
4119
4133
 
4120
- Resolves the conditions by given params
4134
+ Transforms the given MergeFilters settings object. Adds the missing properties if they do not exist.
4121
4135
 
4122
4136
 
4123
4137
 
@@ -4126,10 +4140,7 @@ Resolves the conditions by given params
4126
4140
 
4127
4141
  | Name | Type | Description | |
4128
4142
  | ---- | ---- | ----------- | -------- |
4129
- | filter | | The filter |   |
4130
- | params | | given parameters to validate the filter |   |
4131
- | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined |   |
4132
- | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. |   |
4143
+ | settings | | an object to the MergeFilters settings |   |
4133
4144
 
4134
4145
 
4135
4146
 
@@ -4137,17 +4148,17 @@ Resolves the conditions by given params
4137
4148
  ##### Returns
4138
4149
 
4139
4150
 
4140
- - true: the condition is satisfied
4151
+ - a new MergeFilters settings object.
4141
4152
 
4142
4153
 
4143
4154
 
4144
4155
 
4145
- ### dist/filters/helpers/common/resolveScopeConditions.js
4156
+ ### dist/filters/helpers/common/isInValidator.js
4146
4157
 
4147
4158
 
4148
- #### resolveScopeConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4159
+ #### isInValidator(validator)
4149
4160
 
4150
- Resolves the conditions by given params
4161
+ Validates if the given validator is a In type
4151
4162
 
4152
4163
 
4153
4164
 
@@ -4156,10 +4167,7 @@ Resolves the conditions by given params
4156
4167
 
4157
4168
  | Name | Type | Description | |
4158
4169
  | ---- | ---- | ----------- | -------- |
4159
- | filter | | The filter scope structure |   |
4160
- | params | | given parameters to validate the filter |   |
4161
- | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined |   |
4162
- | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. |   |
4170
+ | validator | | The validator |   |
4163
4171
 
4164
4172
 
4165
4173
 
@@ -4167,17 +4175,17 @@ Resolves the conditions by given params
4167
4175
  ##### Returns
4168
4176
 
4169
4177
 
4170
- - true: the condition is satisfied
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/excludeUIFiltersByAggregate.js
4183
+ ### dist/filters/helpers/common/isNullValidator.js
4176
4184
 
4177
4185
 
4178
- #### excludeUIFiltersByAggregate(uFilters)
4186
+ #### isNullValidator(validator)
4179
4187
 
4180
- Excludes Aggregate Filters in the Flattened UI Filters array
4188
+ Checks if the given validator is a Null type.
4181
4189
 
4182
4190
 
4183
4191
 
@@ -4186,7 +4194,7 @@ Excludes Aggregate Filters in the Flattened UI Filters array
4186
4194
 
4187
4195
  | Name | Type | Description | |
4188
4196
  | ---- | ---- | ----------- | -------- |
4189
- | uFilters | | Collection of Flat UI Filters |   |
4197
+ | validator | | The Filter Validator |   |
4190
4198
 
4191
4199
 
4192
4200
 
@@ -4194,17 +4202,17 @@ Excludes Aggregate Filters in the Flattened UI Filters array
4194
4202
  ##### Returns
4195
4203
 
4196
4204
 
4197
- - a new Flat UI Filters that were excluded the aggregate filters
4205
+ - True: It is a Null Validator; False: It is not a Null Validator.
4198
4206
 
4199
4207
 
4200
4208
 
4201
4209
 
4202
- ### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
4210
+ ### dist/filters/helpers/common/isRangeValidator.js
4203
4211
 
4204
4212
 
4205
- #### excludeUIFlatFiltersByScopes(uFilters, scopes)
4213
+ #### isRangeValidator(validator)
4206
4214
 
4207
- Excludes and returns a UI Flat Filters without filters by the given scopes
4215
+ Validates if the given validator is a Range type. Range type means the value has min and max values to filter
4208
4216
 
4209
4217
 
4210
4218
 
@@ -4213,8 +4221,7 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
4213
4221
 
4214
4222
  | Name | Type | Description | |
4215
4223
  | ---- | ---- | ----------- | -------- |
4216
- | uFilters | | The Flatten UI Filters |   |
4217
- | scopes | | collection of scopes types |   |
4224
+ | validator | | The filter validator |   |
4218
4225
 
4219
4226
 
4220
4227
 
@@ -4222,17 +4229,17 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
4222
4229
  ##### Returns
4223
4230
 
4224
4231
 
4225
- - The new array of UI Flattened filters
4232
+ - true: it is a range validator
4226
4233
 
4227
4234
 
4228
4235
 
4229
4236
 
4230
- ### dist/filters/helpers/ui/getFilterPropertyLabel.js
4237
+ ### dist/filters/helpers/common/isRegularValidator.js
4231
4238
 
4232
4239
 
4233
- #### getFilterPropertyLabel(filter)
4240
+ #### isRegularValidator(validator)
4234
4241
 
4235
- Gets the label of the filter property
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,7 +4248,7 @@ Gets the label of the filter property
4241
4248
 
4242
4249
  | Name | Type | Description | |
4243
4250
  | ---- | ---- | ----------- | -------- |
4244
- | filter | | The UI Filter |   |
4251
+ | validator | | The filter validator |   |
4245
4252
 
4246
4253
 
4247
4254
 
@@ -4249,17 +4256,17 @@ Gets the label of the filter property
4249
4256
  ##### Returns
4250
4257
 
4251
4258
 
4252
- - a string of the filter property label
4259
+ - true: it is a range validator
4253
4260
 
4254
4261
 
4255
4262
 
4256
4263
 
4257
- ### dist/filters/helpers/ui/getOutputFormatByColumn.js
4264
+ ### dist/filters/helpers/common/mergeFilters.js
4258
4265
 
4259
4266
 
4260
- #### getOutputFormatByColumn(column, datasets)
4267
+ #### mergeFilters(filterData1, filterData2, overwriteValues)
4261
4268
 
4262
- Gets output format object from Datasets by the given column. Item of the datasets array must have outputformat item in order to be returned
4269
+ Merge filter data structures in a new one. The first Filter Data passed in the argument has the priority
4263
4270
 
4264
4271
 
4265
4272
 
@@ -4268,8 +4275,9 @@ Gets output format object from Datasets by the given column. Item of the dataset
4268
4275
 
4269
4276
  | Name | Type | Description | |
4270
4277
  | ---- | ---- | ----------- | -------- |
4271
- | column | | The column |   |
4272
- | datasets | | array of datasets |   |
4278
+ | filterData1 | | The target filter data |   |
4279
+ | filterData2 | | the filter data to be merged |   |
4280
+ | overwriteValues | | Flag to overwrite or not the filter values |   |
4273
4281
 
4274
4282
 
4275
4283
 
@@ -4277,18 +4285,13 @@ Gets output format object from Datasets by the given column. Item of the dataset
4277
4285
  ##### Returns
4278
4286
 
4279
4287
 
4280
- - The output format object
4281
-
4282
-
4283
-
4288
+ - a new filter data structure
4284
4289
 
4285
- ### dist/filters/helpers/ui/getQrveyIdsByUIFilters.js
4286
4290
 
4287
4291
 
4288
- #### getQrveyIdsByUIFilters(uiFilter)
4292
+ #### mergeScopes(scopes1, scopes2, overwriteValues)
4289
4293
 
4290
- Gets a collection of Qrvey IDs in the UI Filter structure.
4291
- Looks around all filter structure finding the qrveyid propertty in each dataset
4294
+ Gets a new scope structure array by merging two scope structures
4292
4295
 
4293
4296
 
4294
4297
 
@@ -4297,7 +4300,9 @@ Looks around all filter structure finding the qrveyid propertty in each dataset
4297
4300
 
4298
4301
  | Name | Type | Description | |
4299
4302
  | ---- | ---- | ----------- | -------- |
4300
- | uiFilter | | |   |
4303
+ | scopes1 | | the target scope structure |   |
4304
+ | scopes2 | | the scope to be merged |   |
4305
+ | overwriteValues | | Flag to overwrite or not the filter values |   |
4301
4306
 
4302
4307
 
4303
4308
 
@@ -4305,27 +4310,24 @@ Looks around all filter structure finding the qrveyid propertty in each dataset
4305
4310
  ##### Returns
4306
4311
 
4307
4312
 
4308
- - `Void`
4313
+ - a new scope structure array
4309
4314
 
4310
4315
 
4311
4316
 
4317
+ #### mergeDatasets(datasets1, datasets2, overwriteValues)
4312
4318
 
4313
- ### dist/filters/helpers/ui/getUIFlatFilterByParams.js
4319
+ Gets a new dataset structure array by merging two dataset structures
4314
4320
 
4315
4321
 
4316
- #### getUIFlatFilterByParams()
4317
4322
 
4318
- Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
4319
- The validation to filter the stored filter is depending on:
4320
- - Column
4321
- - Qrvey ID,
4322
- - Scope type
4323
- - Scope ID
4324
- - Panel ID
4325
- - Validator type
4326
- - Property type
4327
4323
 
4324
+ ##### Parameters
4328
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 |   |
4329
4331
 
4330
4332
 
4331
4333
 
@@ -4333,28 +4335,24 @@ The validation to filter the stored filter is depending on:
4333
4335
  ##### Returns
4334
4336
 
4335
4337
 
4336
- - The index of the uFilter array or the Filter object s
4338
+ - a new dataset structure array
4337
4339
 
4338
4340
 
4339
4341
 
4342
+ #### mergeFilterss(filters1, filters2, overwriteValues)
4340
4343
 
4341
- ### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
4344
+ Gets a new filter structure array by merging two filter structures
4342
4345
 
4343
4346
 
4344
- #### getUIFlatFiltersByParams()
4345
4347
 
4346
- Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
4347
- The validation to filter the stored filter is depending on:
4348
- - Column
4349
- - Qrvey ID,
4350
- - Scope type
4351
- - Scope ID
4352
- - Panel ID
4353
- - Validator type
4354
- - Property type
4355
- - Enabled flags
4356
4348
 
4349
+ ##### Parameters
4357
4350
 
4351
+ | Name | Type | Description | |
4352
+ | ---- | ---- | ----------- | -------- |
4353
+ | filters1 | | the target filter structure |   |
4354
+ | filters2 | | the filter to be merged |   |
4355
+ | overwriteValues | | Flag to overwrite or not the filter values |   |
4358
4356
 
4359
4357
 
4360
4358
 
@@ -4362,17 +4360,13 @@ The validation to filter the stored filter is depending on:
4362
4360
  ##### Returns
4363
4361
 
4364
4362
 
4365
- - The index of the uFilter array or the Filter object s
4366
-
4367
-
4368
-
4363
+ - a new filter structure array
4369
4364
 
4370
- ### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
4371
4365
 
4372
4366
 
4373
- #### getUIFlatFiltersByScopes(uFilters, scopes)
4367
+ #### mergeValues(filter1, filter2, overwrite)
4374
4368
 
4375
- Filters and gets a UI Flatten Filters by the given scopes
4369
+ Gets a new value structure array by merging two value structures
4376
4370
 
4377
4371
 
4378
4372
 
@@ -4381,8 +4375,9 @@ Filters and gets a UI Flatten Filters by the given scopes
4381
4375
 
4382
4376
  | Name | Type | Description | |
4383
4377
  | ---- | ---- | ----------- | -------- |
4384
- | uFilters | | The Flatten UI Filters |   |
4385
- | scopes | | collection of scopes types |   |
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 |   |
4386
4381
 
4387
4382
 
4388
4383
 
@@ -4390,17 +4385,17 @@ Filters and gets a UI Flatten Filters by the given scopes
4390
4385
  ##### Returns
4391
4386
 
4392
4387
 
4393
- - The new array of UI Flattened filters
4394
-
4388
+ - a new value structure array
4395
4389
 
4396
4390
 
4397
4391
 
4398
- ### dist/filters/helpers/ui/getUIValues.js
4399
4392
 
4393
+ ### dist/filters/helpers/common/resolveDatasetConditions.js
4400
4394
 
4401
- #### getUIValues(filter, addEnableds, rankingGroupIndex)
4402
4395
 
4396
+ #### resolveDatasetConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4403
4397
 
4398
+ Resolves the conditions by given params
4404
4399
 
4405
4400
 
4406
4401
 
@@ -4409,9 +4404,10 @@ Filters and gets a UI Flatten Filters by the given scopes
4409
4404
 
4410
4405
  | Name | Type | Description | |
4411
4406
  | ---- | ---- | ----------- | -------- |
4412
- | filter | | |   |
4413
- | addEnableds | | |   |
4414
- | rankingGroupIndex | | |   |
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. |   |
4415
4411
 
4416
4412
 
4417
4413
 
@@ -4419,17 +4415,17 @@ Filters and gets a UI Flatten Filters by the given scopes
4419
4415
  ##### Returns
4420
4416
 
4421
4417
 
4422
- -
4418
+ - true: the condition is satisfied
4423
4419
 
4424
4420
 
4425
4421
 
4426
4422
 
4427
- ### dist/filters/helpers/ui/getUpdatedUIFilters.js
4423
+ ### dist/filters/helpers/common/resolveFilterConditions.js
4428
4424
 
4429
4425
 
4430
- #### getUpdatedUIFilters(data, datasets)
4426
+ #### resolveFilterConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4431
4427
 
4432
- Gets a new UI Filter structure with a datasets/columns info updates
4428
+ Resolves the conditions by given params
4433
4429
 
4434
4430
 
4435
4431
 
@@ -4438,8 +4434,10 @@ Gets a new UI Filter structure with a datasets/columns info updates
4438
4434
 
4439
4435
  | Name | Type | Description | |
4440
4436
  | ---- | ---- | ----------- | -------- |
4441
- | data | | The UI Filter structure |   |
4442
- | datasets | | An array of datasets/column info used for updating the data |   |
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. |   |
4443
4441
 
4444
4442
 
4445
4443
 
@@ -4447,17 +4445,17 @@ Gets a new UI Filter structure with a datasets/columns info updates
4447
4445
  ##### Returns
4448
4446
 
4449
4447
 
4450
- - A new UI FIlter structure
4448
+ - true: the condition is satisfied
4451
4449
 
4452
4450
 
4453
4451
 
4454
4452
 
4455
- ### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
4453
+ ### dist/filters/helpers/common/resolveScopeConditions.js
4456
4454
 
4457
4455
 
4458
- #### resolveUIFlatFilterByParams(filter, params)
4456
+ #### resolveScopeConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4459
4457
 
4460
- Resolves conditions between UI flattened filter and given parameters
4458
+ Resolves the conditions by given params
4461
4459
 
4462
4460
 
4463
4461
 
@@ -4466,8 +4464,10 @@ Resolves conditions between UI flattened filter and given parameters
4466
4464
 
4467
4465
  | Name | Type | Description | |
4468
4466
  | ---- | ---- | ----------- | -------- |
4469
- | filter | | UI Flatten Filter |   |
4470
- | params | | Parameters to validate |   |
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 @@ Resolves conditions between UI flattened filter and given parameters
4475
4475
  ##### Returns
4476
4476
 
4477
4477
 
4478
- - true: the conditions are satisfied.
4478
+ - true: the condition is satisfied
4479
4479
 
4480
4480
 
4481
4481