@qrvey/utils 1.2.4-18 → 1.2.4-19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +186 -186
- package/dist/cjs/globalization/interfaces/filters/II18nFilter.d.ts +1 -1
- package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +1 -1
- package/dist/globalization/interfaces/filters/II18nFilter.d.ts +1 -1
- package/dist/globalization/labels/filters/I18N_FILTER.js +1 -1
- package/package.json +1 -1
- package/src/globalization/interfaces/filters/II18nFilter.ts +1 -1
- package/src/globalization/labels/filters/I18N_FILTER.ts +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.4-
|
|
1
|
+
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.4-19*
|
|
2
2
|
|
|
3
3
|
> Helper, Utils for all Qrvey Projects
|
|
4
4
|
|
|
@@ -108,12 +108,12 @@ Transforms String Date from a [mm/dd/yyyy] format to Date object.
|
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
|
|
111
|
-
### dist/dates/adapters/
|
|
111
|
+
### dist/dates/adapters/quarterYearToDate.js
|
|
112
112
|
|
|
113
113
|
|
|
114
|
-
####
|
|
114
|
+
#### quarterYearToDate(quarterYearDate, time)
|
|
115
115
|
|
|
116
|
-
Transforms String Date from a [
|
|
116
|
+
Transforms String Date from a [Quarter Year] format to Date object.
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
@@ -122,7 +122,7 @@ Transforms String Date from a [Month Year] format to Date object.
|
|
|
122
122
|
|
|
123
123
|
| Name | Type | Description | |
|
|
124
124
|
| ---- | ---- | ----------- | -------- |
|
|
125
|
-
|
|
|
125
|
+
| quarterYearDate | | String of [Quarter Year] date | |
|
|
126
126
|
| time | | Flag to parse the object date to milliseconds. | |
|
|
127
127
|
|
|
128
128
|
|
|
@@ -136,12 +136,12 @@ Transforms String Date from a [Month Year] format to Date object.
|
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
|
|
139
|
-
### dist/dates/adapters/
|
|
139
|
+
### dist/dates/adapters/monthYearToDate.js
|
|
140
140
|
|
|
141
141
|
|
|
142
|
-
####
|
|
142
|
+
#### monthYearToDate(monthYearDate, time)
|
|
143
143
|
|
|
144
|
-
Transforms String Date from a [
|
|
144
|
+
Transforms String Date from a [Month Year] format to Date object.
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
@@ -150,7 +150,7 @@ Transforms String Date from a [Quarter Year] format to Date object.
|
|
|
150
150
|
|
|
151
151
|
| Name | Type | Description | |
|
|
152
152
|
| ---- | ---- | ----------- | -------- |
|
|
153
|
-
|
|
|
153
|
+
| monthYearDate | | String of [Month Year] date | |
|
|
154
154
|
| time | | Flag to parse the object date to milliseconds. | |
|
|
155
155
|
|
|
156
156
|
|
|
@@ -1327,12 +1327,12 @@ Gets an filter structure for the UI filter data
|
|
|
1327
1327
|
|
|
1328
1328
|
|
|
1329
1329
|
|
|
1330
|
-
### dist/filters/adapters/
|
|
1330
|
+
### dist/filters/adapters/logicToFlatUI.js
|
|
1331
1331
|
|
|
1332
1332
|
|
|
1333
|
-
####
|
|
1333
|
+
#### logicToFlatUI(logics)
|
|
1334
1334
|
|
|
1335
|
-
|
|
1335
|
+
Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
1336
1336
|
|
|
1337
1337
|
|
|
1338
1338
|
|
|
@@ -1341,8 +1341,7 @@ Generates a filter data structure from the old logic structure (v2.0).
|
|
|
1341
1341
|
|
|
1342
1342
|
| Name | Type | Description | |
|
|
1343
1343
|
| ---- | ---- | ----------- | -------- |
|
|
1344
|
-
|
|
|
1345
|
-
| version | | Tag for the version of the filter data structure | |
|
|
1344
|
+
| logics | | The old logic structure (v2.0) | |
|
|
1346
1345
|
|
|
1347
1346
|
|
|
1348
1347
|
|
|
@@ -1350,17 +1349,13 @@ Generates a filter data structure from the old logic structure (v2.0).
|
|
|
1350
1349
|
##### Returns
|
|
1351
1350
|
|
|
1352
1351
|
|
|
1353
|
-
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1352
|
+
- The Flattened UI Filters array
|
|
1357
1353
|
|
|
1358
|
-
### dist/filters/adapters/logicToFlatUI.js
|
|
1359
1354
|
|
|
1360
1355
|
|
|
1361
|
-
####
|
|
1356
|
+
#### getFilter(filters, filter, getIndex)
|
|
1362
1357
|
|
|
1363
|
-
|
|
1358
|
+
Get the filter or the index of the given array, validating an old filter structure.
|
|
1364
1359
|
|
|
1365
1360
|
|
|
1366
1361
|
|
|
@@ -1369,7 +1364,9 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
|
1369
1364
|
|
|
1370
1365
|
| Name | Type | Description | |
|
|
1371
1366
|
| ---- | ---- | ----------- | -------- |
|
|
1372
|
-
|
|
|
1367
|
+
| filters | | The array of UI filters | |
|
|
1368
|
+
| filter | | The old logic structure filter | |
|
|
1369
|
+
| getIndex | | Determines if the index or returns the UI filter object | |
|
|
1373
1370
|
|
|
1374
1371
|
|
|
1375
1372
|
|
|
@@ -1377,13 +1374,13 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
|
1377
1374
|
##### Returns
|
|
1378
1375
|
|
|
1379
1376
|
|
|
1380
|
-
-
|
|
1377
|
+
- the index or the UI filter object
|
|
1381
1378
|
|
|
1382
1379
|
|
|
1383
1380
|
|
|
1384
|
-
####
|
|
1381
|
+
#### refineRankingValues(values, uiValues)
|
|
1385
1382
|
|
|
1386
|
-
|
|
1383
|
+
Refines the values of the Ranking column type.
|
|
1387
1384
|
|
|
1388
1385
|
|
|
1389
1386
|
|
|
@@ -1392,9 +1389,8 @@ Get the filter or the index of the given array, validating an old filter structu
|
|
|
1392
1389
|
|
|
1393
1390
|
| Name | Type | Description | |
|
|
1394
1391
|
| ---- | ---- | ----------- | -------- |
|
|
1395
|
-
|
|
|
1396
|
-
|
|
|
1397
|
-
| getIndex | | Determines if the index or returns the UI filter object | |
|
|
1392
|
+
| values | | the Array of Ranking values | |
|
|
1393
|
+
| uiValues | | Object with additional info about the values of the filter. | |
|
|
1398
1394
|
|
|
1399
1395
|
|
|
1400
1396
|
|
|
@@ -1402,13 +1398,17 @@ Get the filter or the index of the given array, validating an old filter structu
|
|
|
1402
1398
|
##### Returns
|
|
1403
1399
|
|
|
1404
1400
|
|
|
1405
|
-
- the
|
|
1401
|
+
- the array of Ranking values
|
|
1406
1402
|
|
|
1407
1403
|
|
|
1408
1404
|
|
|
1409
|
-
#### refineRankingValues(values, uiValues)
|
|
1410
1405
|
|
|
1411
|
-
|
|
1406
|
+
### dist/filters/adapters/logicToFD.js
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
#### logicToFD(filterData, version)
|
|
1410
|
+
|
|
1411
|
+
Generates a filter data structure from the old logic structure (v2.0).
|
|
1412
1412
|
|
|
1413
1413
|
|
|
1414
1414
|
|
|
@@ -1417,8 +1417,8 @@ Refines the values of the Ranking column type.
|
|
|
1417
1417
|
|
|
1418
1418
|
| Name | Type | Description | |
|
|
1419
1419
|
| ---- | ---- | ----------- | -------- |
|
|
1420
|
-
|
|
|
1421
|
-
|
|
|
1420
|
+
| filterData | | The old filter data structure with logic (v2.0) | |
|
|
1421
|
+
| version | | Tag for the version of the filter data structure | |
|
|
1422
1422
|
|
|
1423
1423
|
|
|
1424
1424
|
|
|
@@ -1426,7 +1426,7 @@ Refines the values of the Ranking column type.
|
|
|
1426
1426
|
##### Returns
|
|
1427
1427
|
|
|
1428
1428
|
|
|
1429
|
-
-
|
|
1429
|
+
- a Filter Data.
|
|
1430
1430
|
|
|
1431
1431
|
|
|
1432
1432
|
|
|
@@ -1729,12 +1729,12 @@ Filters a nested tree array by a custom condition on the last child node
|
|
|
1729
1729
|
|
|
1730
1730
|
|
|
1731
1731
|
|
|
1732
|
-
### dist/general/array/
|
|
1732
|
+
### dist/general/array/flattenDeep.js
|
|
1733
1733
|
|
|
1734
1734
|
|
|
1735
|
-
####
|
|
1735
|
+
#### flattenDeep(arr)
|
|
1736
1736
|
|
|
1737
|
-
|
|
1737
|
+
Flat deeply an array
|
|
1738
1738
|
|
|
1739
1739
|
|
|
1740
1740
|
|
|
@@ -1743,8 +1743,7 @@ Gets the first index from the array by a callback condition
|
|
|
1743
1743
|
|
|
1744
1744
|
| Name | Type | Description | |
|
|
1745
1745
|
| ---- | ---- | ----------- | -------- |
|
|
1746
|
-
|
|
|
1747
|
-
| callback | | function callback | |
|
|
1746
|
+
| arr | | Array to flat deeply | |
|
|
1748
1747
|
|
|
1749
1748
|
|
|
1750
1749
|
|
|
@@ -1752,17 +1751,17 @@ Gets the first index from the array by a callback condition
|
|
|
1752
1751
|
##### Returns
|
|
1753
1752
|
|
|
1754
1753
|
|
|
1755
|
-
-
|
|
1754
|
+
- flatten array
|
|
1756
1755
|
|
|
1757
1756
|
|
|
1758
1757
|
|
|
1759
1758
|
|
|
1760
|
-
### dist/general/array/
|
|
1759
|
+
### dist/general/array/getFirstIndexFromArray.js
|
|
1761
1760
|
|
|
1762
1761
|
|
|
1763
|
-
####
|
|
1762
|
+
#### getFirstIndexFromArray(array, callback)
|
|
1764
1763
|
|
|
1765
|
-
|
|
1764
|
+
Gets the first index from the array by a callback condition
|
|
1766
1765
|
|
|
1767
1766
|
|
|
1768
1767
|
|
|
@@ -1771,7 +1770,8 @@ Flat deeply an array
|
|
|
1771
1770
|
|
|
1772
1771
|
| Name | Type | Description | |
|
|
1773
1772
|
| ---- | ---- | ----------- | -------- |
|
|
1774
|
-
|
|
|
1773
|
+
| array | | | |
|
|
1774
|
+
| callback | | function callback | |
|
|
1775
1775
|
|
|
1776
1776
|
|
|
1777
1777
|
|
|
@@ -1779,7 +1779,7 @@ Flat deeply an array
|
|
|
1779
1779
|
##### Returns
|
|
1780
1780
|
|
|
1781
1781
|
|
|
1782
|
-
-
|
|
1782
|
+
- the first index of the array. -1 when the condition is not satisfied
|
|
1783
1783
|
|
|
1784
1784
|
|
|
1785
1785
|
|
|
@@ -2592,69 +2592,66 @@ Upper case the first letter of a given text
|
|
|
2592
2592
|
|
|
2593
2593
|
|
|
2594
2594
|
|
|
2595
|
-
### dist/
|
|
2595
|
+
### dist/qrvey/helpers/getColumnsLabel.js
|
|
2596
2596
|
|
|
2597
2597
|
|
|
2598
|
-
####
|
|
2599
|
-
|
|
2600
|
-
Stencil.js - Prop Decorator
|
|
2601
|
-
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
|
|
2602
|
-
But for this, is required ask for a property in `snake_case` style
|
|
2598
|
+
#### getColumnLabels(column)
|
|
2603
2599
|
|
|
2600
|
+
Get an string of the properties of the given column.
|
|
2604
2601
|
|
|
2605
2602
|
|
|
2606
2603
|
|
|
2607
2604
|
|
|
2605
|
+
##### Parameters
|
|
2608
2606
|
|
|
2609
|
-
|
|
2607
|
+
| Name | Type | Description | |
|
|
2608
|
+
| ---- | ---- | ----------- | -------- |
|
|
2609
|
+
| column | | The column | |
|
|
2610
2610
|
|
|
2611
|
-
```javascript
|
|
2612
|
-
\ @Config() @Prop() settings;
|
|
2613
2611
|
|
|
2614
|
-
someMethod() {
|
|
2615
|
-
this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
|
|
2616
|
-
}
|
|
2617
|
-
```
|
|
2618
2612
|
|
|
2619
2613
|
|
|
2620
2614
|
##### Returns
|
|
2621
2615
|
|
|
2622
2616
|
|
|
2623
|
-
-
|
|
2617
|
+
- an string with the property, aggregate or calculation label.
|
|
2624
2618
|
|
|
2625
2619
|
|
|
2626
2620
|
|
|
2627
2621
|
|
|
2628
|
-
### dist/
|
|
2622
|
+
### dist/services/api/getAllDatasets.api.js
|
|
2629
2623
|
|
|
2630
2624
|
|
|
2631
|
-
####
|
|
2625
|
+
#### getAllDatasets(qrveyids)
|
|
2632
2626
|
|
|
2633
|
-
|
|
2627
|
+
Get a dataset list from a collection of Qrvey IDs
|
|
2634
2628
|
|
|
2635
2629
|
|
|
2636
2630
|
|
|
2637
2631
|
|
|
2632
|
+
##### Parameters
|
|
2633
|
+
|
|
2634
|
+
| Name | Type | Description | |
|
|
2635
|
+
| ---- | ---- | ----------- | -------- |
|
|
2636
|
+
| qrveyids | | Collection of Qrvey IDs | |
|
|
2637
|
+
|
|
2638
|
+
|
|
2638
2639
|
|
|
2639
2640
|
|
|
2640
2641
|
##### Returns
|
|
2641
2642
|
|
|
2642
2643
|
|
|
2643
|
-
-
|
|
2644
|
+
- a promise
|
|
2644
2645
|
|
|
2645
2646
|
|
|
2646
2647
|
|
|
2647
2648
|
|
|
2648
|
-
### dist/
|
|
2649
|
+
### dist/services/api/getAllQrveys.api.js
|
|
2649
2650
|
|
|
2650
2651
|
|
|
2651
|
-
####
|
|
2652
|
+
#### getAllQrveys(config, params)
|
|
2652
2653
|
|
|
2653
|
-
|
|
2654
|
-
- In case _cfg_ is a string, first try to make a JSON parse in other case
|
|
2655
|
-
try to find this string as a variable on Windows object
|
|
2656
|
-
- If _cfg_ is a fuction, tis is invoked and parsed
|
|
2657
|
-
- Finally, if is an object, _cfg_ is inmediatly returned
|
|
2654
|
+
POST Request for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
|
|
2658
2655
|
|
|
2659
2656
|
|
|
2660
2657
|
|
|
@@ -2663,7 +2660,8 @@ try to find this string as a variable on Windows object
|
|
|
2663
2660
|
|
|
2664
2661
|
| Name | Type | Description | |
|
|
2665
2662
|
| ---- | ---- | ----------- | -------- |
|
|
2666
|
-
|
|
|
2663
|
+
| config | | Configuration | |
|
|
2664
|
+
| params | | Object for getting precise data | |
|
|
2667
2665
|
|
|
2668
2666
|
|
|
2669
2667
|
|
|
@@ -2676,12 +2674,12 @@ try to find this string as a variable on Windows object
|
|
|
2676
2674
|
|
|
2677
2675
|
|
|
2678
2676
|
|
|
2679
|
-
### dist/services/api/
|
|
2677
|
+
### dist/services/api/getDatasetColumns.api.js
|
|
2680
2678
|
|
|
2681
2679
|
|
|
2682
|
-
####
|
|
2680
|
+
#### getDatasetColumns(qrveyid)
|
|
2683
2681
|
|
|
2684
|
-
Get a dataset
|
|
2682
|
+
Get a dataset by Qrvey ID
|
|
2685
2683
|
|
|
2686
2684
|
|
|
2687
2685
|
|
|
@@ -2690,7 +2688,7 @@ Get a dataset list from a collection of Qrvey IDs
|
|
|
2690
2688
|
|
|
2691
2689
|
| Name | Type | Description | |
|
|
2692
2690
|
| ---- | ---- | ----------- | -------- |
|
|
2693
|
-
|
|
|
2691
|
+
| qrveyid | | The Qrvey ID | |
|
|
2694
2692
|
|
|
2695
2693
|
|
|
2696
2694
|
|
|
@@ -2703,24 +2701,29 @@ Get a dataset list from a collection of Qrvey IDs
|
|
|
2703
2701
|
|
|
2704
2702
|
|
|
2705
2703
|
|
|
2706
|
-
### dist/
|
|
2704
|
+
### dist/stencil/decorators/Config.js
|
|
2707
2705
|
|
|
2708
2706
|
|
|
2709
|
-
####
|
|
2707
|
+
#### Config()
|
|
2710
2708
|
|
|
2711
|
-
|
|
2709
|
+
Stencil.js - Prop Decorator
|
|
2710
|
+
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
|
|
2711
|
+
But for this, is required ask for a property in `snake_case` style
|
|
2712
2712
|
|
|
2713
2713
|
|
|
2714
2714
|
|
|
2715
2715
|
|
|
2716
|
-
##### Parameters
|
|
2717
2716
|
|
|
2718
|
-
| Name | Type | Description | |
|
|
2719
|
-
| ---- | ---- | ----------- | -------- |
|
|
2720
|
-
| config | | Configuration | |
|
|
2721
|
-
| params | | Object for getting precise data | |
|
|
2722
2717
|
|
|
2718
|
+
##### Examples
|
|
2719
|
+
|
|
2720
|
+
```javascript
|
|
2721
|
+
\ @Config() @Prop() settings;
|
|
2723
2722
|
|
|
2723
|
+
someMethod() {
|
|
2724
|
+
this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
|
|
2725
|
+
}
|
|
2726
|
+
```
|
|
2724
2727
|
|
|
2725
2728
|
|
|
2726
2729
|
##### Returns
|
|
@@ -2731,21 +2734,14 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
|
|
|
2731
2734
|
|
|
2732
2735
|
|
|
2733
2736
|
|
|
2734
|
-
### dist/
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
#### getDatasetColumns(qrveyid)
|
|
2738
|
-
|
|
2739
|
-
Get a dataset by Qrvey ID
|
|
2737
|
+
### dist/stencil/util/createRef.js
|
|
2740
2738
|
|
|
2741
2739
|
|
|
2740
|
+
#### createRef()
|
|
2742
2741
|
|
|
2742
|
+
lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom.html)
|
|
2743
2743
|
|
|
2744
|
-
##### Parameters
|
|
2745
2744
|
|
|
2746
|
-
| Name | Type | Description | |
|
|
2747
|
-
| ---- | ---- | ----------- | -------- |
|
|
2748
|
-
| qrveyid | | The Qrvey ID | |
|
|
2749
2745
|
|
|
2750
2746
|
|
|
2751
2747
|
|
|
@@ -2753,17 +2749,21 @@ Get a dataset by Qrvey ID
|
|
|
2753
2749
|
##### Returns
|
|
2754
2750
|
|
|
2755
2751
|
|
|
2756
|
-
-
|
|
2752
|
+
- function - Function to use in ref prop in html elements
|
|
2757
2753
|
|
|
2758
2754
|
|
|
2759
2755
|
|
|
2760
2756
|
|
|
2761
|
-
### dist/
|
|
2757
|
+
### dist/stencil/util/getConfig.js
|
|
2762
2758
|
|
|
2763
2759
|
|
|
2764
|
-
####
|
|
2760
|
+
#### getConfig(cfg)
|
|
2765
2761
|
|
|
2766
|
-
|
|
2762
|
+
verify the Config object type and try to return a parsed Object
|
|
2763
|
+
- In case _cfg_ is a string, first try to make a JSON parse in other case
|
|
2764
|
+
try to find this string as a variable on Windows object
|
|
2765
|
+
- If _cfg_ is a fuction, tis is invoked and parsed
|
|
2766
|
+
- Finally, if is an object, _cfg_ is inmediatly returned
|
|
2767
2767
|
|
|
2768
2768
|
|
|
2769
2769
|
|
|
@@ -2772,7 +2772,7 @@ Get an string of the properties of the given column.
|
|
|
2772
2772
|
|
|
2773
2773
|
| Name | Type | Description | |
|
|
2774
2774
|
| ---- | ---- | ----------- | -------- |
|
|
2775
|
-
|
|
|
2775
|
+
| cfg | | | |
|
|
2776
2776
|
|
|
2777
2777
|
|
|
2778
2778
|
|
|
@@ -2780,7 +2780,7 @@ Get an string of the properties of the given column.
|
|
|
2780
2780
|
##### Returns
|
|
2781
2781
|
|
|
2782
2782
|
|
|
2783
|
-
-
|
|
2783
|
+
- `Void`
|
|
2784
2784
|
|
|
2785
2785
|
|
|
2786
2786
|
|
|
@@ -2921,33 +2921,6 @@ Parses a string date and returns a dayjs date
|
|
|
2921
2921
|
|
|
2922
2922
|
|
|
2923
2923
|
|
|
2924
|
-
### dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
#### getFilterBuilderGeneralConfig(config)
|
|
2928
|
-
|
|
2929
|
-
Returns a filter builder config object by a any given config
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
##### Parameters
|
|
2935
|
-
|
|
2936
|
-
| Name | Type | Description | |
|
|
2937
|
-
| ---- | ---- | ----------- | -------- |
|
|
2938
|
-
| config | | any config object | |
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
##### Returns
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
- The filter builder config object
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
2924
|
### dist/filters/helpers/backend/buildExpression.js
|
|
2952
2925
|
|
|
2953
2926
|
|
|
@@ -3031,12 +3004,12 @@ Transform user Filters array into Filter Logic structure
|
|
|
3031
3004
|
|
|
3032
3005
|
|
|
3033
3006
|
|
|
3034
|
-
### dist/filters/helpers/backend/
|
|
3007
|
+
### dist/filters/helpers/backend/getBackendGroupValue.js
|
|
3035
3008
|
|
|
3036
3009
|
|
|
3037
|
-
####
|
|
3010
|
+
#### getBackendGroupValue(filter)
|
|
3038
3011
|
|
|
3039
|
-
Gets a
|
|
3012
|
+
Gets a group value for the backend logic structure
|
|
3040
3013
|
|
|
3041
3014
|
|
|
3042
3015
|
|
|
@@ -3058,12 +3031,12 @@ Gets a property for the logic structure
|
|
|
3058
3031
|
|
|
3059
3032
|
|
|
3060
3033
|
|
|
3061
|
-
### dist/filters/helpers/backend/
|
|
3034
|
+
### dist/filters/helpers/backend/getBackendProperty.js
|
|
3062
3035
|
|
|
3063
3036
|
|
|
3064
|
-
####
|
|
3037
|
+
#### getBackendProperty(filter)
|
|
3065
3038
|
|
|
3066
|
-
Gets a
|
|
3039
|
+
Gets a property for the logic structure
|
|
3067
3040
|
|
|
3068
3041
|
|
|
3069
3042
|
|
|
@@ -3187,6 +3160,34 @@ Gets the Ranking values.
|
|
|
3187
3160
|
|
|
3188
3161
|
|
|
3189
3162
|
|
|
3163
|
+
### dist/filters/helpers/backend/getLogicByScopes.js
|
|
3164
|
+
|
|
3165
|
+
|
|
3166
|
+
#### getLogicByScopes(logics, scopes)
|
|
3167
|
+
|
|
3168
|
+
Gets the filters from logic data by Scopes/Scope IDs.
|
|
3169
|
+
|
|
3170
|
+
|
|
3171
|
+
|
|
3172
|
+
|
|
3173
|
+
##### Parameters
|
|
3174
|
+
|
|
3175
|
+
| Name | Type | Description | |
|
|
3176
|
+
| ---- | ---- | ----------- | -------- |
|
|
3177
|
+
| logics | | The logic array | |
|
|
3178
|
+
| scopes | | The collection of Scopes/Scope IDs | |
|
|
3179
|
+
|
|
3180
|
+
|
|
3181
|
+
|
|
3182
|
+
|
|
3183
|
+
##### Returns
|
|
3184
|
+
|
|
3185
|
+
|
|
3186
|
+
- a new Logic array
|
|
3187
|
+
|
|
3188
|
+
|
|
3189
|
+
|
|
3190
|
+
|
|
3190
3191
|
### dist/filters/helpers/backend/getLogicByScopesHierarchy.js
|
|
3191
3192
|
|
|
3192
3193
|
|
|
@@ -3216,12 +3217,12 @@ Gets filters from the logic by the scopes hierarchy.
|
|
|
3216
3217
|
|
|
3217
3218
|
|
|
3218
3219
|
|
|
3219
|
-
### dist/filters/helpers/
|
|
3220
|
+
### dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js
|
|
3220
3221
|
|
|
3221
3222
|
|
|
3222
|
-
####
|
|
3223
|
+
#### getFilterBuilderGeneralConfig(config)
|
|
3223
3224
|
|
|
3224
|
-
|
|
3225
|
+
Returns a filter builder config object by a any given config
|
|
3225
3226
|
|
|
3226
3227
|
|
|
3227
3228
|
|
|
@@ -3230,8 +3231,7 @@ Gets the filters from logic data by Scopes/Scope IDs.
|
|
|
3230
3231
|
|
|
3231
3232
|
| Name | Type | Description | |
|
|
3232
3233
|
| ---- | ---- | ----------- | -------- |
|
|
3233
|
-
|
|
|
3234
|
-
| scopes | | The collection of Scopes/Scope IDs | |
|
|
3234
|
+
| config | | any config object | |
|
|
3235
3235
|
|
|
3236
3236
|
|
|
3237
3237
|
|
|
@@ -3239,7 +3239,7 @@ Gets the filters from logic data by Scopes/Scope IDs.
|
|
|
3239
3239
|
##### Returns
|
|
3240
3240
|
|
|
3241
3241
|
|
|
3242
|
-
-
|
|
3242
|
+
- The filter builder config object
|
|
3243
3243
|
|
|
3244
3244
|
|
|
3245
3245
|
|
|
@@ -3418,12 +3418,23 @@ Gets the Filter Label + Column label
|
|
|
3418
3418
|
|
|
3419
3419
|
|
|
3420
3420
|
|
|
3421
|
-
### dist/filters/helpers/common/
|
|
3421
|
+
### dist/filters/helpers/common/getFilterid.js
|
|
3422
3422
|
|
|
3423
3423
|
|
|
3424
|
-
####
|
|
3424
|
+
#### getFilterid(filter)
|
|
3425
3425
|
|
|
3426
|
-
|
|
3426
|
+
Get the Filter ID by the filter structure
|
|
3427
|
+
The order of the epression ID is:
|
|
3428
|
+
- Scope Type
|
|
3429
|
+
- scopeid
|
|
3430
|
+
- qrveyid
|
|
3431
|
+
- panelid
|
|
3432
|
+
- columnid
|
|
3433
|
+
- validator
|
|
3434
|
+
- property
|
|
3435
|
+
- Column Aggregate
|
|
3436
|
+
- Column Calculation
|
|
3437
|
+
- Optional Index
|
|
3427
3438
|
|
|
3428
3439
|
|
|
3429
3440
|
|
|
@@ -3432,7 +3443,7 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
|
|
|
3432
3443
|
|
|
3433
3444
|
| Name | Type | Description | |
|
|
3434
3445
|
| ---- | ---- | ----------- | -------- |
|
|
3435
|
-
|
|
|
3446
|
+
| filter | | the filter structure | |
|
|
3436
3447
|
|
|
3437
3448
|
|
|
3438
3449
|
|
|
@@ -3440,28 +3451,17 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
|
|
|
3440
3451
|
##### Returns
|
|
3441
3452
|
|
|
3442
3453
|
|
|
3443
|
-
-
|
|
3454
|
+
- a text to identify the filter
|
|
3444
3455
|
|
|
3445
3456
|
|
|
3446
3457
|
|
|
3447
3458
|
|
|
3448
|
-
### dist/filters/helpers/common/
|
|
3459
|
+
### dist/filters/helpers/common/getFiltersByAggregateColumn.js
|
|
3449
3460
|
|
|
3450
3461
|
|
|
3451
|
-
####
|
|
3462
|
+
#### getFiltersByAggregateColumn(filterData)
|
|
3452
3463
|
|
|
3453
|
-
|
|
3454
|
-
The order of the epression ID is:
|
|
3455
|
-
- Scope Type
|
|
3456
|
-
- scopeid
|
|
3457
|
-
- qrveyid
|
|
3458
|
-
- panelid
|
|
3459
|
-
- columnid
|
|
3460
|
-
- validator
|
|
3461
|
-
- property
|
|
3462
|
-
- Column Aggregate
|
|
3463
|
-
- Column Calculation
|
|
3464
|
-
- Optional Index
|
|
3464
|
+
Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
|
|
3465
3465
|
|
|
3466
3466
|
|
|
3467
3467
|
|
|
@@ -3470,7 +3470,7 @@ The order of the epression ID is:
|
|
|
3470
3470
|
|
|
3471
3471
|
| Name | Type | Description | |
|
|
3472
3472
|
| ---- | ---- | ----------- | -------- |
|
|
3473
|
-
|
|
|
3473
|
+
| filterData | | The filter data object | |
|
|
3474
3474
|
|
|
3475
3475
|
|
|
3476
3476
|
|
|
@@ -3478,7 +3478,7 @@ The order of the epression ID is:
|
|
|
3478
3478
|
##### Returns
|
|
3479
3479
|
|
|
3480
3480
|
|
|
3481
|
-
-
|
|
3481
|
+
- The new filter data object that were get the aggregate filters
|
|
3482
3482
|
|
|
3483
3483
|
|
|
3484
3484
|
|
|
@@ -3822,6 +3822,33 @@ Validates if the given validator is a Range type. Range type means the value has
|
|
|
3822
3822
|
|
|
3823
3823
|
|
|
3824
3824
|
|
|
3825
|
+
### dist/filters/helpers/common/isRegularValidator.js
|
|
3826
|
+
|
|
3827
|
+
|
|
3828
|
+
#### isRegularValidator(validator)
|
|
3829
|
+
|
|
3830
|
+
Validates if the given validator is a regular type. Regular type means the filter object has a value as string to filter
|
|
3831
|
+
|
|
3832
|
+
|
|
3833
|
+
|
|
3834
|
+
|
|
3835
|
+
##### Parameters
|
|
3836
|
+
|
|
3837
|
+
| Name | Type | Description | |
|
|
3838
|
+
| ---- | ---- | ----------- | -------- |
|
|
3839
|
+
| validator | | The filter validator | |
|
|
3840
|
+
|
|
3841
|
+
|
|
3842
|
+
|
|
3843
|
+
|
|
3844
|
+
##### Returns
|
|
3845
|
+
|
|
3846
|
+
|
|
3847
|
+
- true: it is a range validator
|
|
3848
|
+
|
|
3849
|
+
|
|
3850
|
+
|
|
3851
|
+
|
|
3825
3852
|
### dist/filters/helpers/common/mergeFilters.js
|
|
3826
3853
|
|
|
3827
3854
|
|
|
@@ -3951,33 +3978,6 @@ Gets a new value structure array by merging two value structures
|
|
|
3951
3978
|
|
|
3952
3979
|
|
|
3953
3980
|
|
|
3954
|
-
### dist/filters/helpers/common/isRegularValidator.js
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
#### isRegularValidator(validator)
|
|
3958
|
-
|
|
3959
|
-
Validates if the given validator is a regular type. Regular type means the filter object has a value as string to filter
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
##### Parameters
|
|
3965
|
-
|
|
3966
|
-
| Name | Type | Description | |
|
|
3967
|
-
| ---- | ---- | ----------- | -------- |
|
|
3968
|
-
| validator | | The filter validator | |
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
##### Returns
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
- true: it is a range validator
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
3981
|
### dist/filters/helpers/common/resolveDatasetConditions.js
|
|
3982
3982
|
|
|
3983
3983
|
|
|
@@ -6,7 +6,7 @@ import { II18nRankingContainer } from "./II18nRankingContainer";
|
|
|
6
6
|
import { II18nFilterOperator } from "./II18nFilterOperator";
|
|
7
7
|
import { II18nFilterScopes } from "./II18nFilterScopes";
|
|
8
8
|
export interface II18nFilter {
|
|
9
|
-
|
|
9
|
+
scope_label: string;
|
|
10
10
|
operators: II18nFilterOperator;
|
|
11
11
|
ranking_container: II18nRankingContainer;
|
|
12
12
|
relative_container: II18nRelativeContainer;
|
|
@@ -9,7 +9,7 @@ const I18N_RELATIVE_CONTAINER_1 = require("./I18N_RELATIVE_CONTAINER");
|
|
|
9
9
|
const I18N_SLIDEBAR_1 = require("./I18N_SLIDEBAR");
|
|
10
10
|
const I18N_VALUE_CONTAINER_1 = require("./I18N_VALUE_CONTAINER");
|
|
11
11
|
exports.I18N_FILTER = {
|
|
12
|
-
|
|
12
|
+
scope_label: '{{scope}} Filters',
|
|
13
13
|
operators: I18N_FILTER_OPERATOR_1.I18N_FILTER_OPERATOR,
|
|
14
14
|
relative_container: I18N_RELATIVE_CONTAINER_1.I18N_RELATIVE_CONTAINER,
|
|
15
15
|
scope: I18N_FILTER_SCOPE_1.I18N_FILTER_SCOPE,
|
|
@@ -6,7 +6,7 @@ import { II18nRankingContainer } from "./II18nRankingContainer";
|
|
|
6
6
|
import { II18nFilterOperator } from "./II18nFilterOperator";
|
|
7
7
|
import { II18nFilterScopes } from "./II18nFilterScopes";
|
|
8
8
|
export interface II18nFilter {
|
|
9
|
-
|
|
9
|
+
scope_label: string;
|
|
10
10
|
operators: II18nFilterOperator;
|
|
11
11
|
ranking_container: II18nRankingContainer;
|
|
12
12
|
relative_container: II18nRelativeContainer;
|
|
@@ -6,7 +6,7 @@ import { I18N_RELATIVE_CONTAINER } from "./I18N_RELATIVE_CONTAINER";
|
|
|
6
6
|
import { I18N_SLIDEBAR } from "./I18N_SLIDEBAR";
|
|
7
7
|
import { I18N_VALUE_CONTAINER } from "./I18N_VALUE_CONTAINER";
|
|
8
8
|
export const I18N_FILTER = {
|
|
9
|
-
|
|
9
|
+
scope_label: '{{scope}} Filters',
|
|
10
10
|
operators: I18N_FILTER_OPERATOR,
|
|
11
11
|
relative_container: I18N_RELATIVE_CONTAINER,
|
|
12
12
|
scope: I18N_FILTER_SCOPE,
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ import { II18nFilterOperator } from "./II18nFilterOperator";
|
|
|
7
7
|
import { II18nFilterScopes } from "./II18nFilterScopes";
|
|
8
8
|
|
|
9
9
|
export interface II18nFilter {
|
|
10
|
-
|
|
10
|
+
scope_label: string; // The sustantive of the scopes. i.e: scope_label='Filters'; Result: Global *Filters*
|
|
11
11
|
operators: II18nFilterOperator;
|
|
12
12
|
ranking_container: II18nRankingContainer;
|
|
13
13
|
relative_container: II18nRelativeContainer;
|
|
@@ -8,7 +8,7 @@ import { I18N_SLIDEBAR } from "./I18N_SLIDEBAR";
|
|
|
8
8
|
import { I18N_VALUE_CONTAINER } from "./I18N_VALUE_CONTAINER";
|
|
9
9
|
|
|
10
10
|
export const I18N_FILTER: II18nFilter = {
|
|
11
|
-
|
|
11
|
+
scope_label: '{{scope}} Filters',
|
|
12
12
|
operators: I18N_FILTER_OPERATOR,
|
|
13
13
|
relative_container: I18N_RELATIVE_CONTAINER,
|
|
14
14
|
scope: I18N_FILTER_SCOPE,
|