@qrvey/utils 1.2.9-35 → 1.2.9-36
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 +111 -111
- package/bitbucket-pipelines.yml +1 -1
- package/dist/cjs/charts/constants/index.js +5 -1
- package/dist/cjs/charts/helpers/index.js +5 -1
- package/dist/cjs/charts/index.js +5 -1
- package/dist/cjs/charts/interfaces/index.js +5 -1
- package/dist/cjs/columns/constants/COLUMN_LABEL.d.ts +1 -0
- package/dist/cjs/columns/constants/COLUMN_LABEL.js +1 -1
- package/dist/cjs/columns/constants/COLUMN_PROPERTY_INFO.js +1 -1
- package/dist/cjs/columns/constants/index.js +5 -1
- package/dist/cjs/columns/helpers/index.js +5 -1
- package/dist/cjs/columns/index.js +5 -1
- package/dist/cjs/columns/interfaces/index.js +5 -1
- package/dist/cjs/constants/index.js +5 -1
- package/dist/cjs/dates/constants/index.js +5 -1
- package/dist/cjs/dates/helpers/index.js +5 -1
- package/dist/cjs/dates/index.js +5 -1
- package/dist/cjs/dates/interfaces/index.js +5 -1
- package/dist/cjs/dates/range/index.js +5 -1
- package/dist/cjs/dates/relative/constants/index.js +5 -1
- package/dist/cjs/dates/relative/constants/ui/index.js +5 -1
- package/dist/cjs/dates/relative/helpers/dayjs-module.js +5 -1
- package/dist/cjs/dates/relative/helpers/index.js +5 -1
- package/dist/cjs/dates/relative/index.js +5 -1
- package/dist/cjs/dates/relative/interfaces/index.js +5 -1
- package/dist/cjs/dates/relative/interfaces/ui/index.js +5 -1
- package/dist/cjs/filters/adapters/index.js +5 -1
- package/dist/cjs/filters/classes/index.js +5 -1
- package/dist/cjs/filters/constants/backend/index.js +5 -1
- package/dist/cjs/filters/constants/builder/index.js +5 -1
- package/dist/cjs/filters/constants/common/index.js +5 -1
- package/dist/cjs/filters/constants/index.js +5 -1
- package/dist/cjs/filters/constants/panel/index.js +5 -1
- package/dist/cjs/filters/helpers/backend/index.js +5 -1
- package/dist/cjs/filters/helpers/builder/index.js +5 -1
- package/dist/cjs/filters/helpers/common/index.js +5 -1
- package/dist/cjs/filters/helpers/index.js +5 -1
- package/dist/cjs/filters/helpers/ui/index.js +5 -1
- package/dist/cjs/filters/index.js +5 -1
- package/dist/cjs/filters/interfaces/backend/index.js +5 -1
- package/dist/cjs/filters/interfaces/builder/index.js +5 -1
- package/dist/cjs/filters/interfaces/common/index.js +5 -1
- package/dist/cjs/filters/interfaces/index.js +5 -1
- package/dist/cjs/filters/interfaces/panel/index.js +5 -1
- package/dist/cjs/filters/interfaces/ui/index.js +5 -1
- package/dist/cjs/format/format.d.ts +1 -1
- package/dist/cjs/format/format.js +3 -0
- package/dist/cjs/format/index.js +5 -1
- package/dist/cjs/format/localization.js +2 -2
- package/dist/cjs/formulas/constants/index.js +5 -1
- package/dist/cjs/formulas/index.js +5 -1
- package/dist/cjs/formulas/interfaces/index.js +5 -1
- package/dist/cjs/general/array/index.js +5 -1
- package/dist/cjs/general/function/index.js +5 -1
- package/dist/cjs/general/index.js +5 -1
- package/dist/cjs/general/mix/index.js +5 -1
- package/dist/cjs/general/object/index.js +5 -1
- package/dist/cjs/general/string/index.js +5 -1
- package/dist/cjs/globalization/helpers/index.js +5 -1
- package/dist/cjs/globalization/index.js +5 -1
- package/dist/cjs/globalization/interfaces/bucket_builder/index.js +5 -1
- package/dist/cjs/globalization/interfaces/calendar/index.js +5 -1
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTableStyleOptions.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/chart_builder/index.js +5 -1
- package/dist/cjs/globalization/interfaces/columns/index.js +5 -1
- package/dist/cjs/globalization/interfaces/common/II18nColumnTypes.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/common/index.js +5 -1
- package/dist/cjs/globalization/interfaces/cross_tabs/index.js +5 -1
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardToast.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/dashboard/index.js +5 -1
- package/dist/cjs/globalization/interfaces/filters/index.js +5 -1
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderDeleteDialog.d.ts +3 -3
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderListTable.d.ts +5 -5
- package/dist/cjs/globalization/interfaces/formula_builder/index.js +5 -1
- package/dist/cjs/globalization/interfaces/index.js +5 -1
- package/dist/cjs/globalization/interfaces/panel/index.js +5 -1
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/index.js +5 -1
- package/dist/cjs/globalization/interfaces/table_charts/index.js +5 -1
- package/dist/cjs/globalization/labels/bucket_builder/index.js +5 -1
- package/dist/cjs/globalization/labels/calendar/index.js +5 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +6 -0
- package/dist/cjs/globalization/labels/chart_builder/index.js +5 -1
- package/dist/cjs/globalization/labels/columns/index.js +5 -1
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_LABEL.d.ts +1 -0
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_LABEL.js +1 -0
- package/dist/cjs/globalization/labels/common/index.js +5 -1
- package/dist/cjs/globalization/labels/cross_tabs/index.js +5 -1
- package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.js +1 -0
- package/dist/cjs/globalization/labels/dashboard/index.js +5 -1
- package/dist/cjs/globalization/labels/filters/index.js +5 -1
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +9 -9
- package/dist/cjs/globalization/labels/formula_builder/index.js +5 -1
- package/dist/cjs/globalization/labels/index.js +5 -1
- package/dist/cjs/globalization/labels/panel/index.js +5 -1
- package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.js +2 -0
- package/dist/cjs/globalization/labels/style_themes/index.js +5 -1
- package/dist/cjs/globalization/labels/table_charts/index.js +5 -1
- package/dist/cjs/globalization/service/index.js +5 -1
- package/dist/cjs/index.js +5 -1
- package/dist/cjs/interfaces/format/index.js +5 -1
- package/dist/cjs/interfaces/general/index.js +5 -1
- package/dist/cjs/interfaces/index.js +5 -1
- package/dist/cjs/qrvey/constants/index.js +5 -1
- package/dist/cjs/qrvey/helpers/index.js +5 -1
- package/dist/cjs/qrvey/index.js +5 -1
- package/dist/cjs/qrvey/interfaces/index.js +5 -1
- package/dist/cjs/services/adapters/index.js +5 -1
- package/dist/cjs/services/api/index.js +5 -1
- package/dist/cjs/services/constants/index.js +5 -1
- package/dist/cjs/services/helpers/index.js +5 -1
- package/dist/cjs/services/index.js +5 -1
- package/dist/cjs/services/interfaces/index.js +5 -1
- package/dist/cjs/stencil/decorators/index.js +5 -1
- package/dist/cjs/stencil/index.js +5 -1
- package/dist/cjs/stencil/util/index.js +5 -1
- package/dist/cjs/tokens/index.js +5 -1
- package/dist/cjs/typescript/decorators/index.js +5 -1
- package/dist/cjs/typescript/index.js +5 -1
- package/dist/columns/constants/COLUMN_LABEL.d.ts +1 -0
- package/dist/columns/constants/COLUMN_LABEL.js +1 -1
- package/dist/columns/constants/COLUMN_PROPERTY_INFO.js +1 -1
- package/dist/format/format.d.ts +1 -1
- package/dist/format/format.js +3 -0
- package/dist/format/localization.js +2 -2
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTableStyleOptions.d.ts +6 -0
- package/dist/globalization/interfaces/common/II18nColumnTypes.d.ts +1 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardToast.d.ts +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderDeleteDialog.d.ts +3 -3
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListTable.d.ts +5 -5
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +2 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +6 -0
- package/dist/globalization/labels/common/I18N_COLUMN_LABEL.d.ts +1 -0
- package/dist/globalization/labels/common/I18N_COLUMN_LABEL.js +1 -0
- package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +1 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +9 -9
- package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.js +2 -0
- package/package.json +21 -16
- package/scripts/clean-build/index.js +62 -0
- package/{prepareToPublish.js → scripts/prepare-publish/index.js} +0 -0
- package/scripts/publishing/index.js +204 -0
- package/src/columns/constants/COLUMN_LABEL.ts +1 -0
- package/src/columns/constants/COLUMN_PROPERTY_INFO.ts +1 -1
- package/src/format/format.ts +3 -1
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderTableStyleOptions.ts +6 -0
- package/src/globalization/interfaces/common/II18nColumnTypes.ts +1 -0
- package/src/globalization/interfaces/dashboard/II18nDashboardToast.ts +1 -0
- package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderDeleteDialog.ts +3 -3
- package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderListTable.ts +5 -5
- package/src/globalization/interfaces/style_themes/II18nStyleThemesTheme.ts +2 -0
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.ts +6 -0
- package/src/globalization/labels/common/I18N_COLUMN_LABEL.ts +1 -0
- package/src/globalization/labels/dashboard/I18N_DASHBOARD.ts +1 -0
- package/src/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.ts +9 -9
- package/src/globalization/labels/style_themes/I18N_STYLE_THEMES.ts +2 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-
|
|
1
|
+
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-36*
|
|
2
2
|
|
|
3
3
|
> Helper, Utils for all Qrvey Projects
|
|
4
4
|
|
|
@@ -688,26 +688,6 @@ Output:
|
|
|
688
688
|
|
|
689
689
|
|
|
690
690
|
|
|
691
|
-
### dist/filters/classes/FilterInputErrorHandler.js
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
#### new FilterInputErrorHandler()
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
##### Returns
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
- `Void`
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
691
|
### dist/filters/adapters/FDToFlatUI.js
|
|
712
692
|
|
|
713
693
|
|
|
@@ -915,13 +895,12 @@ Builds the Fitler Data structure from UI filter data
|
|
|
915
895
|
|
|
916
896
|
|
|
917
897
|
|
|
918
|
-
### dist/filters/adapters/
|
|
898
|
+
### dist/filters/adapters/UIToFlatUI.js
|
|
919
899
|
|
|
920
900
|
|
|
921
|
-
####
|
|
901
|
+
#### UIToFlatUI(filterData, datasetsInfo)
|
|
922
902
|
|
|
923
|
-
|
|
924
|
-
Get the new property base on the old date grouping properties
|
|
903
|
+
Generates a Flattened UI filter structure from UI Filter Data structure.
|
|
925
904
|
|
|
926
905
|
|
|
927
906
|
|
|
@@ -930,7 +909,8 @@ Get the new property base on the old date grouping properties
|
|
|
930
909
|
|
|
931
910
|
| Name | Type | Description | |
|
|
932
911
|
| ---- | ---- | ----------- | -------- |
|
|
933
|
-
|
|
|
912
|
+
| filterData | | The UI filter data object. | |
|
|
913
|
+
| datasetsInfo | | Collection of datasets information. Optional for updating the datasets info | |
|
|
934
914
|
|
|
935
915
|
|
|
936
916
|
|
|
@@ -938,17 +918,13 @@ Get the new property base on the old date grouping properties
|
|
|
938
918
|
##### Returns
|
|
939
919
|
|
|
940
920
|
|
|
941
|
-
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
921
|
+
- a flattened UI filters array
|
|
945
922
|
|
|
946
|
-
### dist/filters/adapters/UIToFlatUI.js
|
|
947
923
|
|
|
948
924
|
|
|
949
|
-
####
|
|
925
|
+
#### UI21ToFlatUI(scopes)
|
|
950
926
|
|
|
951
|
-
Generates a Flattened UI
|
|
927
|
+
Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
|
|
952
928
|
|
|
953
929
|
|
|
954
930
|
|
|
@@ -957,8 +933,7 @@ Generates a Flattened UI filter structure from UI Filter Data structure.
|
|
|
957
933
|
|
|
958
934
|
| Name | Type | Description | |
|
|
959
935
|
| ---- | ---- | ----------- | -------- |
|
|
960
|
-
|
|
|
961
|
-
| datasetsInfo | | Collection of datasets information. Optional for updating the datasets info | |
|
|
936
|
+
| scopes | | The filter scope section | |
|
|
962
937
|
|
|
963
938
|
|
|
964
939
|
|
|
@@ -970,9 +945,14 @@ Generates a Flattened UI filter structure from UI Filter Data structure.
|
|
|
970
945
|
|
|
971
946
|
|
|
972
947
|
|
|
973
|
-
#### UI21ToFlatUI(scopes)
|
|
974
948
|
|
|
975
|
-
|
|
949
|
+
### dist/filters/adapters/adaptDateGroupingProperty.js
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
#### adaptDateGroupingProperty(property)
|
|
953
|
+
|
|
954
|
+
[TODO: For 2022, eliminate this adapter]
|
|
955
|
+
Get the new property base on the old date grouping properties
|
|
976
956
|
|
|
977
957
|
|
|
978
958
|
|
|
@@ -981,7 +961,7 @@ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
|
|
|
981
961
|
|
|
982
962
|
| Name | Type | Description | |
|
|
983
963
|
| ---- | ---- | ----------- | -------- |
|
|
984
|
-
|
|
|
964
|
+
| property | | | |
|
|
985
965
|
|
|
986
966
|
|
|
987
967
|
|
|
@@ -989,7 +969,7 @@ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
|
|
|
989
969
|
##### Returns
|
|
990
970
|
|
|
991
971
|
|
|
992
|
-
-
|
|
972
|
+
-
|
|
993
973
|
|
|
994
974
|
|
|
995
975
|
|
|
@@ -1558,6 +1538,26 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
|
1558
1538
|
|
|
1559
1539
|
|
|
1560
1540
|
|
|
1541
|
+
### dist/filters/classes/FilterInputErrorHandler.js
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
#### new FilterInputErrorHandler()
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
|
|
1552
|
+
|
|
1553
|
+
##### Returns
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
- `Void`
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
1561
|
### dist/filters/helpers/applyHierarchyForAggFilters.js
|
|
1562
1562
|
|
|
1563
1563
|
|
|
@@ -1669,12 +1669,12 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1669
1669
|
|
|
1670
1670
|
|
|
1671
1671
|
|
|
1672
|
-
### dist/general/
|
|
1672
|
+
### dist/general/array/delete.js
|
|
1673
1673
|
|
|
1674
1674
|
|
|
1675
|
-
####
|
|
1675
|
+
#### ArrayDelete(array, index)
|
|
1676
1676
|
|
|
1677
|
-
|
|
1677
|
+
Inmutable Array Item deletion
|
|
1678
1678
|
|
|
1679
1679
|
|
|
1680
1680
|
|
|
@@ -1683,8 +1683,8 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
|
|
|
1683
1683
|
|
|
1684
1684
|
| Name | Type | Description | |
|
|
1685
1685
|
| ---- | ---- | ----------- | -------- |
|
|
1686
|
-
|
|
|
1687
|
-
|
|
|
1686
|
+
| array | `Array` | a collection of items to delete | |
|
|
1687
|
+
| index | `Number` | the position of the item to delete | |
|
|
1688
1688
|
|
|
1689
1689
|
|
|
1690
1690
|
|
|
@@ -1692,17 +1692,20 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
|
|
|
1692
1692
|
##### Returns
|
|
1693
1693
|
|
|
1694
1694
|
|
|
1695
|
-
-
|
|
1695
|
+
- a new Array or the given parameter when is empty or not an array
|
|
1696
1696
|
|
|
1697
1697
|
|
|
1698
1698
|
|
|
1699
1699
|
|
|
1700
|
-
### dist/general/
|
|
1700
|
+
### dist/general/array/filterNestedTree.js
|
|
1701
1701
|
|
|
1702
1702
|
|
|
1703
|
-
####
|
|
1703
|
+
#### filterNestedTree(arr, childArrKey, condition)
|
|
1704
1704
|
|
|
1705
|
-
|
|
1705
|
+
Filters a nested tree array by a custom condition on the last child node
|
|
1706
|
+
- If the given arguments are not valid, the function returns the first argument.
|
|
1707
|
+
- If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
|
|
1708
|
+
- If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
|
|
1706
1709
|
|
|
1707
1710
|
|
|
1708
1711
|
|
|
@@ -1711,8 +1714,9 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
|
1711
1714
|
|
|
1712
1715
|
| Name | Type | Description | |
|
|
1713
1716
|
| ---- | ---- | ----------- | -------- |
|
|
1714
|
-
|
|
|
1715
|
-
|
|
|
1717
|
+
| arr | | nested tree array | |
|
|
1718
|
+
| childArrKey | | property representing the children array on the nested tree | |
|
|
1719
|
+
| condition | | function callback that determines if the filter is applied on the last child node of the nested tree | |
|
|
1716
1720
|
|
|
1717
1721
|
|
|
1718
1722
|
|
|
@@ -1720,17 +1724,17 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
|
1720
1724
|
##### Returns
|
|
1721
1725
|
|
|
1722
1726
|
|
|
1723
|
-
-
|
|
1727
|
+
- array filtered
|
|
1724
1728
|
|
|
1725
1729
|
|
|
1726
1730
|
|
|
1727
1731
|
|
|
1728
|
-
### dist/general/array/
|
|
1732
|
+
### dist/general/array/flattenDeep.js
|
|
1729
1733
|
|
|
1730
1734
|
|
|
1731
|
-
####
|
|
1735
|
+
#### flattenDeep(arr)
|
|
1732
1736
|
|
|
1733
|
-
|
|
1737
|
+
Flat deeply an array
|
|
1734
1738
|
|
|
1735
1739
|
|
|
1736
1740
|
|
|
@@ -1739,8 +1743,7 @@ Inmutable Array Item deletion
|
|
|
1739
1743
|
|
|
1740
1744
|
| Name | Type | Description | |
|
|
1741
1745
|
| ---- | ---- | ----------- | -------- |
|
|
1742
|
-
|
|
|
1743
|
-
| index | `Number` | the position of the item to delete | |
|
|
1746
|
+
| arr | | Array to flat deeply | |
|
|
1744
1747
|
|
|
1745
1748
|
|
|
1746
1749
|
|
|
@@ -1748,20 +1751,17 @@ Inmutable Array Item deletion
|
|
|
1748
1751
|
##### Returns
|
|
1749
1752
|
|
|
1750
1753
|
|
|
1751
|
-
-
|
|
1754
|
+
- flatten array
|
|
1752
1755
|
|
|
1753
1756
|
|
|
1754
1757
|
|
|
1755
1758
|
|
|
1756
|
-
### dist/general/array/
|
|
1759
|
+
### dist/general/array/getFirstIndexFromArray.js
|
|
1757
1760
|
|
|
1758
1761
|
|
|
1759
|
-
####
|
|
1762
|
+
#### getFirstIndexFromArray(array, callback)
|
|
1760
1763
|
|
|
1761
|
-
|
|
1762
|
-
- If the given arguments are not valid, the function returns the first argument.
|
|
1763
|
-
- If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
|
|
1764
|
-
- If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
|
|
1764
|
+
Gets the first index from the array by a callback condition
|
|
1765
1765
|
|
|
1766
1766
|
|
|
1767
1767
|
|
|
@@ -1770,9 +1770,8 @@ Filters a nested tree array by a custom condition on the last child node
|
|
|
1770
1770
|
|
|
1771
1771
|
| Name | Type | Description | |
|
|
1772
1772
|
| ---- | ---- | ----------- | -------- |
|
|
1773
|
-
|
|
|
1774
|
-
|
|
|
1775
|
-
| condition | | function callback that determines if the filter is applied on the last child node of the nested tree | |
|
|
1773
|
+
| array | | | |
|
|
1774
|
+
| callback | | function callback | |
|
|
1776
1775
|
|
|
1777
1776
|
|
|
1778
1777
|
|
|
@@ -1780,17 +1779,17 @@ Filters a nested tree array by a custom condition on the last child node
|
|
|
1780
1779
|
##### Returns
|
|
1781
1780
|
|
|
1782
1781
|
|
|
1783
|
-
- array
|
|
1782
|
+
- the first index of the array. -1 when the condition is not satisfied
|
|
1784
1783
|
|
|
1785
1784
|
|
|
1786
1785
|
|
|
1787
1786
|
|
|
1788
|
-
### dist/general/array/
|
|
1787
|
+
### dist/general/array/getLastIndexFromArray.js
|
|
1789
1788
|
|
|
1790
1789
|
|
|
1791
|
-
####
|
|
1790
|
+
#### getLastIndexFromArray(array, callback)
|
|
1792
1791
|
|
|
1793
|
-
|
|
1792
|
+
Gets the last index from the array by a callback condition
|
|
1794
1793
|
|
|
1795
1794
|
|
|
1796
1795
|
|
|
@@ -1799,7 +1798,8 @@ Flat deeply an array
|
|
|
1799
1798
|
|
|
1800
1799
|
| Name | Type | Description | |
|
|
1801
1800
|
| ---- | ---- | ----------- | -------- |
|
|
1802
|
-
|
|
|
1801
|
+
| array | | | |
|
|
1802
|
+
| callback | | function callback | |
|
|
1803
1803
|
|
|
1804
1804
|
|
|
1805
1805
|
|
|
@@ -1807,17 +1807,17 @@ Flat deeply an array
|
|
|
1807
1807
|
##### Returns
|
|
1808
1808
|
|
|
1809
1809
|
|
|
1810
|
-
-
|
|
1810
|
+
- the last index of the array. -1 when the condition is not satisfied
|
|
1811
1811
|
|
|
1812
1812
|
|
|
1813
1813
|
|
|
1814
1814
|
|
|
1815
|
-
### dist/general/
|
|
1815
|
+
### dist/general/function/debounce.js
|
|
1816
1816
|
|
|
1817
1817
|
|
|
1818
|
-
####
|
|
1818
|
+
#### debounce(fn, time)
|
|
1819
1819
|
|
|
1820
|
-
|
|
1820
|
+
Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
|
|
1821
1821
|
|
|
1822
1822
|
|
|
1823
1823
|
|
|
@@ -1826,8 +1826,8 @@ Gets the first index from the array by a callback condition
|
|
|
1826
1826
|
|
|
1827
1827
|
| Name | Type | Description | |
|
|
1828
1828
|
| ---- | ---- | ----------- | -------- |
|
|
1829
|
-
|
|
|
1830
|
-
|
|
|
1829
|
+
| fn | `Function` | original Function | |
|
|
1830
|
+
| time | `Number` | default 500ms | |
|
|
1831
1831
|
|
|
1832
1832
|
|
|
1833
1833
|
|
|
@@ -1835,17 +1835,17 @@ Gets the first index from the array by a callback condition
|
|
|
1835
1835
|
##### Returns
|
|
1836
1836
|
|
|
1837
1837
|
|
|
1838
|
-
-
|
|
1838
|
+
- `Function` debounced functions
|
|
1839
1839
|
|
|
1840
1840
|
|
|
1841
1841
|
|
|
1842
1842
|
|
|
1843
|
-
### dist/general/
|
|
1843
|
+
### dist/general/function/throttled.js
|
|
1844
1844
|
|
|
1845
1845
|
|
|
1846
|
-
####
|
|
1846
|
+
#### throttled(fn, time)
|
|
1847
1847
|
|
|
1848
|
-
|
|
1848
|
+
Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
1849
1849
|
|
|
1850
1850
|
|
|
1851
1851
|
|
|
@@ -1854,8 +1854,8 @@ Gets the last index from the array by a callback condition
|
|
|
1854
1854
|
|
|
1855
1855
|
| Name | Type | Description | |
|
|
1856
1856
|
| ---- | ---- | ----------- | -------- |
|
|
1857
|
-
|
|
|
1858
|
-
|
|
|
1857
|
+
| fn | `Function` | original Function | |
|
|
1858
|
+
| time | `Number` | default 500ms | |
|
|
1859
1859
|
|
|
1860
1860
|
|
|
1861
1861
|
|
|
@@ -1863,7 +1863,7 @@ Gets the last index from the array by a callback condition
|
|
|
1863
1863
|
##### Returns
|
|
1864
1864
|
|
|
1865
1865
|
|
|
1866
|
-
-
|
|
1866
|
+
- `Function` throttled function
|
|
1867
1867
|
|
|
1868
1868
|
|
|
1869
1869
|
|
|
@@ -3025,33 +3025,6 @@ Parses a string date and returns a dayjs date
|
|
|
3025
3025
|
|
|
3026
3026
|
|
|
3027
3027
|
|
|
3028
|
-
### dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
#### getFilterBuilderGeneralConfig(config)
|
|
3032
|
-
|
|
3033
|
-
Returns a filter builder config object by a any given config
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
##### Parameters
|
|
3039
|
-
|
|
3040
|
-
| Name | Type | Description | |
|
|
3041
|
-
| ---- | ---- | ----------- | -------- |
|
|
3042
|
-
| config | | any config object | |
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
##### Returns
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
- The filter builder config object
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
3028
|
### dist/filters/helpers/backend/buildExpression.js
|
|
3056
3029
|
|
|
3057
3030
|
|
|
@@ -3348,6 +3321,33 @@ Gets filters from the logic by the scopes hierarchy.
|
|
|
3348
3321
|
|
|
3349
3322
|
|
|
3350
3323
|
|
|
3324
|
+
### dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js
|
|
3325
|
+
|
|
3326
|
+
|
|
3327
|
+
#### getFilterBuilderGeneralConfig(config)
|
|
3328
|
+
|
|
3329
|
+
Returns a filter builder config object by a any given config
|
|
3330
|
+
|
|
3331
|
+
|
|
3332
|
+
|
|
3333
|
+
|
|
3334
|
+
##### Parameters
|
|
3335
|
+
|
|
3336
|
+
| Name | Type | Description | |
|
|
3337
|
+
| ---- | ---- | ----------- | -------- |
|
|
3338
|
+
| config | | any config object | |
|
|
3339
|
+
|
|
3340
|
+
|
|
3341
|
+
|
|
3342
|
+
|
|
3343
|
+
##### Returns
|
|
3344
|
+
|
|
3345
|
+
|
|
3346
|
+
- The filter builder config object
|
|
3347
|
+
|
|
3348
|
+
|
|
3349
|
+
|
|
3350
|
+
|
|
3351
3351
|
### dist/filters/helpers/common/areFiltersEquals.js
|
|
3352
3352
|
|
|
3353
3353
|
|
package/bitbucket-pipelines.yml
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/cjs/charts/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -4,4 +4,4 @@ exports.COLUMN_LABEL = void 0;
|
|
|
4
4
|
const COMPLEX_COLUMN_LABEL_1 = require("./COMPLEX_COLUMN_LABEL");
|
|
5
5
|
const COMPOUND_COLUMN_LABEL_1 = require("./COMPOUND_COLUMN_LABEL");
|
|
6
6
|
const NUMERICAL_COLUMN_LABEL_1 = require("./NUMERICAL_COLUMN_LABEL");
|
|
7
|
-
exports.COLUMN_LABEL = Object.assign(Object.assign(Object.assign({ SINGLE_CHOICE: 'Single Choice', MULTIPLE_CHOICE: 'Multiple Choice', YES_NO: 'Yes No', RANKING: 'Ranking', DATE: 'Date', SIGNATURE: 'Signature', DROPDOWN: 'Dropdown', IMAGE: 'Image', EMAIL_FORM: 'Email Form', PHONE: 'Phone', PASSWORD: 'Password', CHECKLIST: 'Check List', NPS_SCORE: 'NPS Score', NPS_FEEDBACK: 'NPS Feedback', TEXT_LABEL: 'Text Label', TEXT_CATEGORY: 'Text Category', LOOKUP: 'Lookup', HEADLINE: 'Headline', SECTION: 'Section', FORMULA: 'Formula', AGGREGATED_FORMULA: 'Aggregated Formula', BUCKET: 'Bucket', STRING: 'String' }, NUMERICAL_COLUMN_LABEL_1.NUMERICAL_COLUMN_LABEL), COMPOUND_COLUMN_LABEL_1.COMPOUND_COLUMN_LABEL), COMPLEX_COLUMN_LABEL_1.COMPLEX_COLUMN_LABEL);
|
|
7
|
+
exports.COLUMN_LABEL = Object.assign(Object.assign(Object.assign({ SINGLE_CHOICE: 'Single Choice', MULTIPLE_CHOICE: 'Multiple Choice', YES_NO: 'Yes No', RANKING: 'Ranking', DATE: 'Date', SIGNATURE: 'Signature', DROPDOWN: 'Dropdown', IMAGE: 'Image', EMAIL_FORM: 'Email Form', PHONE: 'Phone', PASSWORD: 'Password', CHECKLIST: 'Check List', NPS_SCORE: 'NPS Score', NPS_FEEDBACK: 'NPS Feedback', TEXT: 'Text', TEXT_LABEL: 'Text Label', TEXT_CATEGORY: 'Text Category', LOOKUP: 'Lookup', HEADLINE: 'Headline', SECTION: 'Section', FORMULA: 'Formula', AGGREGATED_FORMULA: 'Aggregated Formula', BUCKET: 'Bucket', STRING: 'String' }, NUMERICAL_COLUMN_LABEL_1.NUMERICAL_COLUMN_LABEL), COMPOUND_COLUMN_LABEL_1.COMPOUND_COLUMN_LABEL), COMPLEX_COLUMN_LABEL_1.COMPLEX_COLUMN_LABEL);
|
|
@@ -11,7 +11,7 @@ const DATE_GROUPING_TIME_PROPERTY_INFO_LIST_1 = require("../../dates/constants/D
|
|
|
11
11
|
const DATE_DISTINCT_TIME_PROPERTY_INFO_LIST_1 = require("../../dates/constants/DATE_DISTINCT_TIME_PROPERTY_INFO_LIST");
|
|
12
12
|
exports.COLUMN_PROPERTY_INFO = Object.assign(Object.assign({ [COLUMN_1.COLUMN.LOOKUP]: [
|
|
13
13
|
{ value: COLUMN_PROPERTY_1.COLUMN_PROPERTY.LOOKUP_DISPLAY, label: 'Display', shortLabel: 'Display', abbrLabel: 'DSY', displayed: true, i18nLabelPath: 'common.properties.lookup_display_label' },
|
|
14
|
-
{ value: COLUMN_PROPERTY_1.COLUMN_PROPERTY.LOOKUP_VALUE, label: 'Value', shortLabel: 'Value', abbrLabel: 'Val', displayed: true, i18nLabelPath: 'common.properties.
|
|
14
|
+
{ value: COLUMN_PROPERTY_1.COLUMN_PROPERTY.LOOKUP_VALUE, label: 'Value', shortLabel: 'Value', abbrLabel: 'Val', displayed: true, i18nLabelPath: 'common.properties.lookup_value_label' }
|
|
15
15
|
], [COLUMN_1.COLUMN.DATE]: [
|
|
16
16
|
...DATE_GROUPING_PROPERTY_INFO_LIST_1.DATE_GROUPING_PROPERTY_INFO_LIST,
|
|
17
17
|
...DATE_GROUPING_TIME_PROPERTY_INFO_LIST_1.DATE_GROUPING_TIME_PROPERTY_INFO_LIST,
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/cjs/dates/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|