@qrvey/utils 1.2.9-2 → 1.2.9-6
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 +544 -544
- package/dist/cjs/columns/constants/COLUMN_PROPERTY_LABEL.d.ts +1 -0
- package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.d.ts +1 -0
- package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.js +1 -0
- package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO.d.ts +5 -0
- package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO.js +11 -0
- package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.d.ts +5 -0
- package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.js +14 -0
- package/dist/cjs/dates/relative/constants/index.d.ts +2 -0
- package/dist/cjs/dates/relative/constants/index.js +2 -0
- package/dist/cjs/dates/relative/interfaces/IRelativeUnit.d.ts +2 -0
- package/dist/cjs/{globalization/interfaces/chart_builder/II18nChartBuilderChartLabes.js → dates/relative/interfaces/IRelativeUnit.js} +0 -0
- package/dist/cjs/dates/relative/interfaces/IRelativeUnitInfo.d.ts +5 -0
- package/dist/cjs/{globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.js → dates/relative/interfaces/IRelativeUnitInfo.js} +0 -0
- package/dist/cjs/dates/relative/interfaces/index.d.ts +2 -0
- package/dist/cjs/dates/relative/interfaces/index.js +2 -0
- package/dist/cjs/filters/adapters/FDToFlatUI.js +0 -2
- package/dist/cjs/filters/adapters/FDToUI.js +1 -2
- package/dist/cjs/filters/adapters/UIToFD.js +0 -1
- package/dist/cjs/filters/adapters/UIToFlatUI.js +0 -2
- package/dist/cjs/filters/adapters/UIToOldLogic.js +1 -1
- package/dist/cjs/filters/adapters/flatUIToOldLogic.js +1 -1
- package/dist/cjs/filters/adapters/flatUIToUI.js +0 -2
- package/dist/cjs/filters/adapters/logicToFlatUI.js +0 -2
- package/dist/cjs/filters/helpers/ui/getUIValues.d.ts +2 -1
- package/dist/cjs/filters/helpers/ui/getUIValues.js +25 -12
- package/dist/cjs/filters/interfaces/ui/IFUFilter.d.ts +1 -1
- package/dist/cjs/filters/interfaces/ui/IFUUIValueSettings.d.ts +6 -0
- package/dist/cjs/{globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.js → filters/interfaces/ui/IFUUIValueSettings.js} +0 -0
- package/dist/cjs/filters/interfaces/ui/index.d.ts +1 -0
- package/dist/cjs/filters/interfaces/ui/index.js +1 -0
- package/dist/cjs/globalization/helpers/getI18nDateGroupLabel.js +2 -0
- package/dist/cjs/globalization/helpers/getReverseI18nGroupLabel.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.d.ts +2 -1
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilder.d.ts +2 -16
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +19 -18
- package/dist/cjs/globalization/interfaces/chart_builder/{II18nChartBuilderChartLabes.d.ts → II18nChartBuilderChartLabels.d.ts} +1 -1
- package/dist/cjs/globalization/interfaces/chart_builder/{II18nChartBuilderComplexImage.js → II18nChartBuilderChartLabels.js} +0 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderColorSettings.d.ts +5 -4
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComparisionOptions.d.ts +1 -1
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderDataPanel.d.ts +16 -15
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +12 -11
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderGeneralOptions.d.ts +16 -12
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderSorting.d.ts +3 -1
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +19 -16
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.d.ts +1 -1
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTooltipSettings.d.ts +1 -1
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTrendChart.d.ts +15 -3
- package/dist/cjs/globalization/interfaces/chart_builder/index.d.ts +1 -8
- package/dist/cjs/globalization/interfaces/chart_builder/index.js +1 -8
- package/dist/cjs/globalization/interfaces/common/II18nColumnProperties.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/common/II18nCommon.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nUnits.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/{chart_builder/II18nChartBuilderComplexImageAnalysis.js → common/II18nUnits.js} +0 -0
- package/dist/cjs/globalization/interfaces/common/index.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/common/index.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/filters/II18nValueContainer.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelErrors.d.ts +11 -9
- package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryViews.d.ts +17 -9
- package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +3 -2
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.js +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.d.ts +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +50 -72
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +21 -15
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +43 -38
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.js +1 -1
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +1 -0
- package/dist/cjs/globalization/labels/common/I18N_COMMON.js +8 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_BUILDER.js +3 -2
- package/dist/cjs/globalization/labels/filters/I18N_VALUE_CONTAINER.js +3 -2
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +1 -1
- package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +28 -18
- package/dist/columns/constants/COLUMN_PROPERTY_LABEL.d.ts +1 -0
- package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.d.ts +1 -0
- package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.js +1 -0
- package/dist/dates/relative/constants/RELATIVE_UNIT_INFO.d.ts +5 -0
- package/dist/dates/relative/constants/RELATIVE_UNIT_INFO.js +8 -0
- package/dist/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.d.ts +5 -0
- package/dist/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.js +11 -0
- package/dist/dates/relative/constants/index.d.ts +2 -0
- package/dist/dates/relative/constants/index.js +2 -0
- package/dist/dates/relative/interfaces/IRelativeUnit.d.ts +2 -0
- package/dist/{globalization/interfaces/chart_builder/II18nChartBuilderChartLabes.js → dates/relative/interfaces/IRelativeUnit.js} +0 -0
- package/dist/dates/relative/interfaces/IRelativeUnitInfo.d.ts +5 -0
- package/dist/{globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.js → dates/relative/interfaces/IRelativeUnitInfo.js} +0 -0
- package/dist/dates/relative/interfaces/index.d.ts +2 -0
- package/dist/dates/relative/interfaces/index.js +2 -0
- package/dist/filters/adapters/FDToFlatUI.js +0 -2
- package/dist/filters/adapters/FDToUI.js +1 -2
- package/dist/filters/adapters/UIToFD.js +0 -1
- package/dist/filters/adapters/UIToFlatUI.js +0 -2
- package/dist/filters/adapters/UIToOldLogic.js +1 -1
- package/dist/filters/adapters/flatUIToOldLogic.js +1 -1
- package/dist/filters/adapters/flatUIToUI.js +0 -2
- package/dist/filters/adapters/logicToFlatUI.js +0 -2
- package/dist/filters/helpers/ui/getUIValues.d.ts +2 -1
- package/dist/filters/helpers/ui/getUIValues.js +25 -12
- package/dist/filters/interfaces/ui/IFUFilter.d.ts +1 -1
- package/dist/filters/interfaces/ui/IFUUIValueSettings.d.ts +6 -0
- package/dist/{globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.js → filters/interfaces/ui/IFUUIValueSettings.js} +0 -0
- package/dist/filters/interfaces/ui/index.d.ts +1 -0
- package/dist/filters/interfaces/ui/index.js +1 -0
- package/dist/globalization/helpers/getI18nDateGroupLabel.js +2 -0
- package/dist/globalization/helpers/getReverseI18nGroupLabel.js +2 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.d.ts +2 -1
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilder.d.ts +2 -16
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +19 -18
- package/dist/globalization/interfaces/chart_builder/{II18nChartBuilderChartLabes.d.ts → II18nChartBuilderChartLabels.d.ts} +1 -1
- package/dist/globalization/interfaces/chart_builder/{II18nChartBuilderComplexImage.js → II18nChartBuilderChartLabels.js} +0 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderColorSettings.d.ts +5 -4
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComparisionOptions.d.ts +1 -1
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderDataPanel.d.ts +16 -15
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +12 -11
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderGeneralOptions.d.ts +16 -12
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderSorting.d.ts +3 -1
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +19 -16
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.d.ts +1 -1
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTooltipSettings.d.ts +1 -1
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTrendChart.d.ts +15 -3
- package/dist/globalization/interfaces/chart_builder/index.d.ts +1 -8
- package/dist/globalization/interfaces/chart_builder/index.js +1 -8
- package/dist/globalization/interfaces/common/II18nColumnProperties.d.ts +1 -0
- package/dist/globalization/interfaces/common/II18nCommon.d.ts +2 -0
- package/dist/globalization/interfaces/common/II18nUnits.d.ts +7 -0
- package/dist/globalization/interfaces/{chart_builder/II18nChartBuilderComplexImageAnalysis.js → common/II18nUnits.js} +0 -0
- package/dist/globalization/interfaces/common/index.d.ts +2 -0
- package/dist/globalization/interfaces/common/index.js +2 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.d.ts +1 -0
- package/dist/globalization/interfaces/filters/II18nValueContainer.d.ts +1 -0
- package/dist/globalization/interfaces/panel/II18nPanelErrors.d.ts +11 -9
- package/dist/globalization/interfaces/panel/II18nPanelSummaryViews.d.ts +17 -9
- package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +3 -2
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.js +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.d.ts +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +50 -72
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +21 -15
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +43 -38
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.js +1 -1
- package/dist/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +1 -0
- package/dist/globalization/labels/common/I18N_COMMON.js +8 -0
- package/dist/globalization/labels/filters/I18N_FILTER_BUILDER.js +3 -2
- package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.js +3 -2
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +1 -1
- package/dist/globalization/labels/panel/I18N_PANEL.js +28 -18
- package/package.json +1 -1
- package/src/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.ts +1 -0
- package/src/dates/relative/constants/RELATIVE_UNIT_INFO.ts +11 -0
- package/src/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.ts +13 -0
- package/src/dates/relative/constants/index.ts +2 -0
- package/src/dates/relative/interfaces/IRelativeUnit.ts +3 -0
- package/src/dates/relative/interfaces/IRelativeUnitInfo.ts +7 -0
- package/src/dates/relative/interfaces/index.ts +2 -0
- package/src/filters/adapters/FDToFlatUI.ts +0 -2
- package/src/filters/adapters/FDToUI.ts +0 -2
- package/src/filters/adapters/UIToFD.ts +0 -1
- package/src/filters/adapters/UIToFlatUI.ts +0 -2
- package/src/filters/adapters/UIToOldLogic.ts +1 -1
- package/src/filters/adapters/flatUIToOldLogic.ts +1 -1
- package/src/filters/adapters/flatUIToUI.ts +0 -2
- package/src/filters/adapters/logicToFlatUI.ts +1 -3
- package/src/filters/helpers/ui/getUIValues.ts +28 -12
- package/src/filters/interfaces/ui/IFUFilter.ts +1 -1
- package/src/filters/interfaces/ui/IFUUIValueSettings.ts +7 -0
- package/src/filters/interfaces/ui/index.ts +1 -0
- package/src/globalization/helpers/getI18nDateGroupLabel.ts +2 -0
- package/src/globalization/helpers/getReverseI18nGroupLabel.ts +2 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.ts +2 -1
- package/src/globalization/interfaces/chart_builder/II18nChartBuilder.ts +2 -16
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.ts +19 -18
- package/src/globalization/interfaces/chart_builder/{II18nChartBuilderChartLabes.ts → II18nChartBuilderChartLabels.ts} +1 -1
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderColorSettings.ts +5 -4
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComparisionOptions.ts +1 -1
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderDataPanel.ts +16 -15
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.ts +12 -11
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderGeneralOptions.ts +16 -12
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderSorting.ts +3 -1
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.ts +19 -16
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.ts +1 -1
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderTooltipSettings.ts +1 -1
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderTrendChart.ts +15 -3
- package/src/globalization/interfaces/chart_builder/index.ts +1 -8
- package/src/globalization/interfaces/common/II18nColumnProperties.ts +1 -0
- package/src/globalization/interfaces/common/II18nCommon.ts +2 -0
- package/src/globalization/interfaces/common/II18nUnits.ts +7 -0
- package/src/globalization/interfaces/common/index.ts +3 -0
- package/src/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.ts +1 -0
- package/src/globalization/interfaces/filters/II18nValueContainer.ts +1 -0
- package/src/globalization/interfaces/panel/II18nPanelErrors.ts +11 -9
- package/src/globalization/interfaces/panel/II18nPanelSummaryViews.ts +17 -9
- package/src/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.ts +3 -2
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.ts +1 -1
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.ts +52 -76
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.ts +21 -16
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.ts +43 -38
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.ts +1 -1
- package/src/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.ts +1 -0
- package/src/globalization/labels/common/I18N_COMMON.ts +8 -0
- package/src/globalization/labels/filters/I18N_FILTER_BUILDER.ts +3 -2
- package/src/globalization/labels/filters/I18N_VALUE_CONTAINER.ts +3 -2
- package/src/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.ts +1 -1
- package/src/globalization/labels/panel/I18N_PANEL.ts +28 -18
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.d.ts +0 -5
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.d.ts +0 -4
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexImage.d.ts +0 -4
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexImageAnalysis.d.ts +0 -4
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexName.d.ts +0 -4
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexName.js +0 -2
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexText.d.ts +0 -6
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexText.js +0 -2
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexUsaAddress.d.ts +0 -5
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexUsaAddress.js +0 -2
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.d.ts +0 -5
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.d.ts +0 -4
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexImage.d.ts +0 -4
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexImageAnalysis.d.ts +0 -4
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexName.d.ts +0 -4
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexName.js +0 -1
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexText.d.ts +0 -6
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexText.js +0 -1
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexUsaAddress.d.ts +0 -5
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexUsaAddress.js +0 -1
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.ts +0 -6
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.ts +0 -4
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexImage.ts +0 -4
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexImageAnalysis.ts +0 -4
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexName.ts +0 -4
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexText.ts +0 -6
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexUsaAddress.ts +0 -6
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-6*
|
|
2
2
|
|
|
3
3
|
> Helper, Utils for all Qrvey Projects
|
|
4
4
|
|
|
@@ -366,6 +366,35 @@ Get the new property base on the old date grouping properties
|
|
|
366
366
|
|
|
367
367
|
|
|
368
368
|
|
|
369
|
+
### dist/filters/adapters/adaptFilterData.js
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
#### adaptFilterData(filterData, getUIFilterData, datasetsInfo)
|
|
373
|
+
|
|
374
|
+
Checks and adapts the v2.0 Filter Data Structure to the v2.1
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
##### Parameters
|
|
380
|
+
|
|
381
|
+
| Name | Type | Description | |
|
|
382
|
+
| ---- | ---- | ----------- | -------- |
|
|
383
|
+
| filterData | | The filter data structure. Accepts both v2.1 or v2.0 | |
|
|
384
|
+
| getUIFilterData | | Flag to get a Filter Data (False) or the UI Filter Data (True) | |
|
|
385
|
+
| datasetsInfo | | Collection of datasets information. If getUIFilterData is true, the datasetsInfo should be mandatory | |
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
##### Returns
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
- A new filter data structure v2.1
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
369
398
|
### dist/filters/adapters/adaptFilterValues.js
|
|
370
399
|
|
|
371
400
|
|
|
@@ -515,35 +544,6 @@ Gets an filter structure for the filter data
|
|
|
515
544
|
|
|
516
545
|
|
|
517
546
|
|
|
518
|
-
### dist/filters/adapters/adaptFilterData.js
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
#### adaptFilterData(filterData, getUIFilterData, datasetsInfo)
|
|
522
|
-
|
|
523
|
-
Checks and adapts the v2.0 Filter Data Structure to the v2.1
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
##### Parameters
|
|
529
|
-
|
|
530
|
-
| Name | Type | Description | |
|
|
531
|
-
| ---- | ---- | ----------- | -------- |
|
|
532
|
-
| filterData | | The filter data structure. Accepts both v2.1 or v2.0 | |
|
|
533
|
-
| getUIFilterData | | Flag to get a Filter Data (False) or the UI Filter Data (True) | |
|
|
534
|
-
| datasetsInfo | | Collection of datasets information. If getUIFilterData is true, the datasetsInfo should be mandatory | |
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
##### Returns
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
- A new filter data structure v2.1
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
547
|
### dist/filters/adapters/flatUIToLogic.js
|
|
548
548
|
|
|
549
549
|
|
|
@@ -930,6 +930,26 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
|
930
930
|
|
|
931
931
|
|
|
932
932
|
|
|
933
|
+
### dist/filters/classes/FilterInputErrorHandler.js
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
#### new FilterInputErrorHandler()
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
##### Returns
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
- `Void`
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
|
|
933
953
|
### dist/filters/helpers/applyHierarchyForAggFilters.js
|
|
934
954
|
|
|
935
955
|
|
|
@@ -1041,14 +1061,22 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1041
1061
|
|
|
1042
1062
|
|
|
1043
1063
|
|
|
1044
|
-
### dist/
|
|
1064
|
+
### dist/general/array/delete.js
|
|
1045
1065
|
|
|
1046
1066
|
|
|
1047
|
-
####
|
|
1067
|
+
#### ArrayDelete(array, index)
|
|
1068
|
+
|
|
1069
|
+
Inmutable Array Item deletion
|
|
1048
1070
|
|
|
1049
1071
|
|
|
1050
1072
|
|
|
1051
1073
|
|
|
1074
|
+
##### Parameters
|
|
1075
|
+
|
|
1076
|
+
| Name | Type | Description | |
|
|
1077
|
+
| ---- | ---- | ----------- | -------- |
|
|
1078
|
+
| array | `Array` | a collection of items to delete | |
|
|
1079
|
+
| index | `Number` | the position of the item to delete | |
|
|
1052
1080
|
|
|
1053
1081
|
|
|
1054
1082
|
|
|
@@ -1056,17 +1084,20 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1056
1084
|
##### Returns
|
|
1057
1085
|
|
|
1058
1086
|
|
|
1059
|
-
-
|
|
1087
|
+
- a new Array or the given parameter when is empty or not an array
|
|
1060
1088
|
|
|
1061
1089
|
|
|
1062
1090
|
|
|
1063
1091
|
|
|
1064
|
-
### dist/
|
|
1092
|
+
### dist/general/array/filterNestedTree.js
|
|
1065
1093
|
|
|
1066
1094
|
|
|
1067
|
-
####
|
|
1095
|
+
#### filterNestedTree(arr, childArrKey, condition)
|
|
1068
1096
|
|
|
1069
|
-
|
|
1097
|
+
Filters a nested tree array by a custom condition on the last child node
|
|
1098
|
+
- If the given arguments are not valid, the function returns the first argument.
|
|
1099
|
+
- If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
|
|
1100
|
+
- If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
|
|
1070
1101
|
|
|
1071
1102
|
|
|
1072
1103
|
|
|
@@ -1075,8 +1106,9 @@ Transforms String Date from a [mm/dd/yyyy] format to Date object.
|
|
|
1075
1106
|
|
|
1076
1107
|
| Name | Type | Description | |
|
|
1077
1108
|
| ---- | ---- | ----------- | -------- |
|
|
1078
|
-
|
|
|
1079
|
-
|
|
|
1109
|
+
| arr | | nested tree array | |
|
|
1110
|
+
| childArrKey | | property representing the children array on the nested tree | |
|
|
1111
|
+
| condition | | function callback that determines if the filter is applied on the last child node of the nested tree | |
|
|
1080
1112
|
|
|
1081
1113
|
|
|
1082
1114
|
|
|
@@ -1084,17 +1116,17 @@ Transforms String Date from a [mm/dd/yyyy] format to Date object.
|
|
|
1084
1116
|
##### Returns
|
|
1085
1117
|
|
|
1086
1118
|
|
|
1087
|
-
-
|
|
1119
|
+
- array filtered
|
|
1088
1120
|
|
|
1089
1121
|
|
|
1090
1122
|
|
|
1091
1123
|
|
|
1092
|
-
### dist/
|
|
1124
|
+
### dist/general/array/flattenDeep.js
|
|
1093
1125
|
|
|
1094
1126
|
|
|
1095
|
-
####
|
|
1127
|
+
#### flattenDeep(arr)
|
|
1096
1128
|
|
|
1097
|
-
|
|
1129
|
+
Flat deeply an array
|
|
1098
1130
|
|
|
1099
1131
|
|
|
1100
1132
|
|
|
@@ -1103,8 +1135,7 @@ Transforms String Date from a [Month Year] format to Date object.
|
|
|
1103
1135
|
|
|
1104
1136
|
| Name | Type | Description | |
|
|
1105
1137
|
| ---- | ---- | ----------- | -------- |
|
|
1106
|
-
|
|
|
1107
|
-
| time | | Flag to parse the object date to milliseconds. | |
|
|
1138
|
+
| arr | | Array to flat deeply | |
|
|
1108
1139
|
|
|
1109
1140
|
|
|
1110
1141
|
|
|
@@ -1112,17 +1143,17 @@ Transforms String Date from a [Month Year] format to Date object.
|
|
|
1112
1143
|
##### Returns
|
|
1113
1144
|
|
|
1114
1145
|
|
|
1115
|
-
-
|
|
1146
|
+
- flatten array
|
|
1116
1147
|
|
|
1117
1148
|
|
|
1118
1149
|
|
|
1119
1150
|
|
|
1120
|
-
### dist/
|
|
1151
|
+
### dist/general/array/getFirstIndexFromArray.js
|
|
1121
1152
|
|
|
1122
1153
|
|
|
1123
|
-
####
|
|
1154
|
+
#### getFirstIndexFromArray(array, callback)
|
|
1124
1155
|
|
|
1125
|
-
|
|
1156
|
+
Gets the first index from the array by a callback condition
|
|
1126
1157
|
|
|
1127
1158
|
|
|
1128
1159
|
|
|
@@ -1131,8 +1162,8 @@ Transforms String Date from a [Quarter Year] format to Date object.
|
|
|
1131
1162
|
|
|
1132
1163
|
| Name | Type | Description | |
|
|
1133
1164
|
| ---- | ---- | ----------- | -------- |
|
|
1134
|
-
|
|
|
1135
|
-
|
|
|
1165
|
+
| array | | | |
|
|
1166
|
+
| callback | | function callback | |
|
|
1136
1167
|
|
|
1137
1168
|
|
|
1138
1169
|
|
|
@@ -1140,17 +1171,17 @@ Transforms String Date from a [Quarter Year] format to Date object.
|
|
|
1140
1171
|
##### Returns
|
|
1141
1172
|
|
|
1142
1173
|
|
|
1143
|
-
-
|
|
1174
|
+
- the first index of the array. -1 when the condition is not satisfied
|
|
1144
1175
|
|
|
1145
1176
|
|
|
1146
1177
|
|
|
1147
1178
|
|
|
1148
|
-
### dist/
|
|
1179
|
+
### dist/general/array/getLastIndexFromArray.js
|
|
1149
1180
|
|
|
1150
1181
|
|
|
1151
|
-
####
|
|
1182
|
+
#### getLastIndexFromArray(array, callback)
|
|
1152
1183
|
|
|
1153
|
-
|
|
1184
|
+
Gets the last index from the array by a callback condition
|
|
1154
1185
|
|
|
1155
1186
|
|
|
1156
1187
|
|
|
@@ -1159,8 +1190,8 @@ Transforms String Date from a [Week Year] format to Date object.
|
|
|
1159
1190
|
|
|
1160
1191
|
| Name | Type | Description | |
|
|
1161
1192
|
| ---- | ---- | ----------- | -------- |
|
|
1162
|
-
|
|
|
1163
|
-
|
|
|
1193
|
+
| array | | | |
|
|
1194
|
+
| callback | | function callback | |
|
|
1164
1195
|
|
|
1165
1196
|
|
|
1166
1197
|
|
|
@@ -1168,17 +1199,17 @@ Transforms String Date from a [Week Year] format to Date object.
|
|
|
1168
1199
|
##### Returns
|
|
1169
1200
|
|
|
1170
1201
|
|
|
1171
|
-
-
|
|
1202
|
+
- the last index of the array. -1 when the condition is not satisfied
|
|
1172
1203
|
|
|
1173
1204
|
|
|
1174
1205
|
|
|
1175
1206
|
|
|
1176
|
-
### dist/
|
|
1207
|
+
### dist/general/function/debounce.js
|
|
1177
1208
|
|
|
1178
1209
|
|
|
1179
|
-
####
|
|
1210
|
+
#### debounce(fn, time)
|
|
1180
1211
|
|
|
1181
|
-
|
|
1212
|
+
Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
|
|
1182
1213
|
|
|
1183
1214
|
|
|
1184
1215
|
|
|
@@ -1187,8 +1218,8 @@ Transforms String Date from a [Year] format to Date object.
|
|
|
1187
1218
|
|
|
1188
1219
|
| Name | Type | Description | |
|
|
1189
1220
|
| ---- | ---- | ----------- | -------- |
|
|
1190
|
-
|
|
|
1191
|
-
| time | |
|
|
1221
|
+
| fn | `Function` | original Function | |
|
|
1222
|
+
| time | `Number` | default 500ms | |
|
|
1192
1223
|
|
|
1193
1224
|
|
|
1194
1225
|
|
|
@@ -1196,17 +1227,17 @@ Transforms String Date from a [Year] format to Date object.
|
|
|
1196
1227
|
##### Returns
|
|
1197
1228
|
|
|
1198
1229
|
|
|
1199
|
-
-
|
|
1230
|
+
- `Function` debounced functions
|
|
1200
1231
|
|
|
1201
1232
|
|
|
1202
1233
|
|
|
1203
1234
|
|
|
1204
|
-
### dist/
|
|
1235
|
+
### dist/general/function/throttled.js
|
|
1205
1236
|
|
|
1206
1237
|
|
|
1207
|
-
####
|
|
1238
|
+
#### throttled(fn, time)
|
|
1208
1239
|
|
|
1209
|
-
|
|
1240
|
+
Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
1210
1241
|
|
|
1211
1242
|
|
|
1212
1243
|
|
|
@@ -1215,9 +1246,8 @@ Gets a Date Object instance by a Date format
|
|
|
1215
1246
|
|
|
1216
1247
|
| Name | Type | Description | |
|
|
1217
1248
|
| ---- | ---- | ----------- | -------- |
|
|
1218
|
-
|
|
|
1219
|
-
|
|
|
1220
|
-
| time | | flag to convert the formatted date to miliseconds | |
|
|
1249
|
+
| fn | `Function` | original Function | |
|
|
1250
|
+
| time | `Number` | default 500ms | |
|
|
1221
1251
|
|
|
1222
1252
|
|
|
1223
1253
|
|
|
@@ -1225,17 +1255,18 @@ Gets a Date Object instance by a Date format
|
|
|
1225
1255
|
##### Returns
|
|
1226
1256
|
|
|
1227
1257
|
|
|
1228
|
-
-
|
|
1258
|
+
- `Function` throttled function
|
|
1229
1259
|
|
|
1230
1260
|
|
|
1231
1261
|
|
|
1232
1262
|
|
|
1233
|
-
### dist/
|
|
1263
|
+
### dist/general/mix/compareDeep.js
|
|
1234
1264
|
|
|
1235
1265
|
|
|
1236
|
-
####
|
|
1266
|
+
#### compareDeep(object1, object2)
|
|
1237
1267
|
|
|
1238
|
-
|
|
1268
|
+
Compares two objects to know if they are equals. Go across nested objects.
|
|
1269
|
+
Includes arrays in the comparison.
|
|
1239
1270
|
|
|
1240
1271
|
|
|
1241
1272
|
|
|
@@ -1244,7 +1275,8 @@ Gets the date format by the given property
|
|
|
1244
1275
|
|
|
1245
1276
|
| Name | Type | Description | |
|
|
1246
1277
|
| ---- | ---- | ----------- | -------- |
|
|
1247
|
-
|
|
|
1278
|
+
| object1 | | First Object to compare | |
|
|
1279
|
+
| object2 | | Second Object to compare | |
|
|
1248
1280
|
|
|
1249
1281
|
|
|
1250
1282
|
|
|
@@ -1252,17 +1284,17 @@ Gets the date format by the given property
|
|
|
1252
1284
|
##### Returns
|
|
1253
1285
|
|
|
1254
1286
|
|
|
1255
|
-
-
|
|
1287
|
+
- True: objects are equal. False: Objects are not equal. Undefined: invalid
|
|
1256
1288
|
|
|
1257
1289
|
|
|
1258
1290
|
|
|
1259
1291
|
|
|
1260
|
-
### dist/
|
|
1292
|
+
### dist/general/mix/getTag.js
|
|
1261
1293
|
|
|
1262
1294
|
|
|
1263
|
-
####
|
|
1295
|
+
#### getTag(value)
|
|
1264
1296
|
|
|
1265
|
-
Gets
|
|
1297
|
+
Gets the `toStringTag` of `value`.
|
|
1266
1298
|
|
|
1267
1299
|
|
|
1268
1300
|
|
|
@@ -1271,7 +1303,7 @@ Gets an array of regular expressions by the given date format
|
|
|
1271
1303
|
|
|
1272
1304
|
| Name | Type | Description | |
|
|
1273
1305
|
| ---- | ---- | ----------- | -------- |
|
|
1274
|
-
|
|
|
1306
|
+
| value | | The value to query. | |
|
|
1275
1307
|
|
|
1276
1308
|
|
|
1277
1309
|
|
|
@@ -1279,17 +1311,17 @@ Gets an array of regular expressions by the given date format
|
|
|
1279
1311
|
##### Returns
|
|
1280
1312
|
|
|
1281
1313
|
|
|
1282
|
-
-
|
|
1314
|
+
- `string` Returns the `toStringTag`.
|
|
1283
1315
|
|
|
1284
1316
|
|
|
1285
1317
|
|
|
1286
1318
|
|
|
1287
|
-
### dist/
|
|
1319
|
+
### dist/general/mix/importScripts.js
|
|
1288
1320
|
|
|
1289
1321
|
|
|
1290
|
-
####
|
|
1322
|
+
#### importScripts(scripts)
|
|
1291
1323
|
|
|
1292
|
-
|
|
1324
|
+
Import a set of external Scripts given the URL in both serie and cascade way
|
|
1293
1325
|
|
|
1294
1326
|
|
|
1295
1327
|
|
|
@@ -1298,26 +1330,54 @@ Gets the separator of the date format
|
|
|
1298
1330
|
|
|
1299
1331
|
| Name | Type | Description | |
|
|
1300
1332
|
| ---- | ---- | ----------- | -------- |
|
|
1301
|
-
|
|
|
1333
|
+
| scripts | `Array.<String>` `Array.<Object>` | can be an array of string or an array of object with the follow structure: | |
|
|
1334
|
+
| scripts.url | `String` | CDN URL | |
|
|
1335
|
+
| scripts.namespace | `String` `Function` | (Optional) if is a String, that name is evaluated on Window[namespace] object otherwise the Function is invoked expecting a Thrutly value | |
|
|
1336
|
+
| scripts.type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | |
|
|
1337
|
+
| scripts.noModule | `Boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | |
|
|
1338
|
+
| scripts.dependencies | `Array.<Object>` | an array with the same structure to load in cascade mode | |
|
|
1302
1339
|
|
|
1303
1340
|
|
|
1304
1341
|
|
|
1305
1342
|
|
|
1306
|
-
#####
|
|
1343
|
+
##### Examples
|
|
1344
|
+
|
|
1345
|
+
```javascript
|
|
1346
|
+
// 1) Simple script (paralell loading)
|
|
1347
|
+
importScripts(['http://myscript.js', 'http://another.js']);
|
|
1307
1348
|
|
|
1349
|
+
// 2) Loading `.js` and `.esm.js` script (parallel loading)
|
|
1350
|
+
importScripts([
|
|
1351
|
+
{ url: 'http://myscript.esm.js', type: 'module' },
|
|
1352
|
+
{ url: 'http://myscript.js', noModule: true }
|
|
1353
|
+
]);
|
|
1308
1354
|
|
|
1309
|
-
|
|
1355
|
+
// 3) import dependent scripts (cascade)
|
|
1356
|
+
importScripts([
|
|
1357
|
+
{ url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] }
|
|
1358
|
+
]);
|
|
1359
|
+
|
|
1360
|
+
// 4) mix
|
|
1361
|
+
importScripts([
|
|
1362
|
+
{ url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] },
|
|
1363
|
+
{ url: 'http://another.esm.js', type: 'module' },
|
|
1364
|
+
{ url: 'http://another.js', noModule: true },
|
|
1365
|
+
'http://simplescript.js'
|
|
1366
|
+
]);
|
|
1367
|
+
```
|
|
1310
1368
|
|
|
1311
1369
|
|
|
1370
|
+
##### Returns
|
|
1312
1371
|
|
|
1313
1372
|
|
|
1314
|
-
|
|
1373
|
+
- `Promise` Promise when all script have been loaded
|
|
1315
1374
|
|
|
1316
1375
|
|
|
1317
|
-
#### getWeek(date)
|
|
1318
1376
|
|
|
1319
|
-
|
|
1320
|
-
|
|
1377
|
+
#### loadScript(url, type, noModule)
|
|
1378
|
+
|
|
1379
|
+
Creates the script element and appends to document.head
|
|
1380
|
+
return a Promise that is resolved when the script is loaded
|
|
1321
1381
|
|
|
1322
1382
|
|
|
1323
1383
|
|
|
@@ -1326,7 +1386,9 @@ Additionally, the month and the year
|
|
|
1326
1386
|
|
|
1327
1387
|
| Name | Type | Description | |
|
|
1328
1388
|
| ---- | ---- | ----------- | -------- |
|
|
1329
|
-
|
|
|
1389
|
+
| url | `String` | Cdn Url | |
|
|
1390
|
+
| type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | |
|
|
1391
|
+
| noModule | `boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | |
|
|
1330
1392
|
|
|
1331
1393
|
|
|
1332
1394
|
|
|
@@ -1334,20 +1396,17 @@ Additionally, the month and the year
|
|
|
1334
1396
|
##### Returns
|
|
1335
1397
|
|
|
1336
1398
|
|
|
1337
|
-
-
|
|
1399
|
+
- `Void`
|
|
1338
1400
|
|
|
1339
1401
|
|
|
1340
1402
|
|
|
1341
1403
|
|
|
1342
|
-
### dist/
|
|
1404
|
+
### dist/general/mix/isEmpty.js
|
|
1343
1405
|
|
|
1344
1406
|
|
|
1345
|
-
####
|
|
1407
|
+
#### isEmpty(variable, includeFalsy)
|
|
1346
1408
|
|
|
1347
|
-
|
|
1348
|
-
- If the string is a token label, the function lets it pass.
|
|
1349
|
-
- Otherwise depends of the format
|
|
1350
|
-
- Some escenarios the string is a mix of token labels and dates
|
|
1409
|
+
Validates if the given argument is empty
|
|
1351
1410
|
|
|
1352
1411
|
|
|
1353
1412
|
|
|
@@ -1356,26 +1415,28 @@ Validate a string date depending on giving format
|
|
|
1356
1415
|
|
|
1357
1416
|
| Name | Type | Description | |
|
|
1358
1417
|
| ---- | ---- | ----------- | -------- |
|
|
1359
|
-
|
|
|
1360
|
-
|
|
|
1361
|
-
|
|
1418
|
+
| variable | | the given variable | |
|
|
1419
|
+
| includeFalsy | | flag to determine include the falsy variables into the validation | |
|
|
1420
|
+
|
|
1362
1421
|
|
|
1363
1422
|
|
|
1364
1423
|
|
|
1365
1424
|
##### Returns
|
|
1366
1425
|
|
|
1367
1426
|
|
|
1368
|
-
-
|
|
1427
|
+
- true: the given argument is empty; false: is not.
|
|
1369
1428
|
|
|
1370
1429
|
|
|
1371
1430
|
|
|
1372
1431
|
|
|
1373
|
-
### dist/
|
|
1432
|
+
### dist/general/mix/isNaNV2.js
|
|
1374
1433
|
|
|
1375
1434
|
|
|
1376
|
-
####
|
|
1435
|
+
#### isNaNV2(variable)
|
|
1377
1436
|
|
|
1378
|
-
Validates the
|
|
1437
|
+
Validates if the recieved number is NaN type.
|
|
1438
|
+
This function recieves any variable but will return false.
|
|
1439
|
+
Validates if variable is null, undefined, or an empty string, also, the function uses isNaN native function.
|
|
1379
1440
|
|
|
1380
1441
|
|
|
1381
1442
|
|
|
@@ -1384,8 +1445,7 @@ Validates the given string as Date by its date format.
|
|
|
1384
1445
|
|
|
1385
1446
|
| Name | Type | Description | |
|
|
1386
1447
|
| ---- | ---- | ----------- | -------- |
|
|
1387
|
-
|
|
|
1388
|
-
| dateForma | | the format of the date to validate the string | |
|
|
1448
|
+
| variable | | the variable to validate | |
|
|
1389
1449
|
|
|
1390
1450
|
|
|
1391
1451
|
|
|
@@ -1393,17 +1453,18 @@ Validates the given string as Date by its date format.
|
|
|
1393
1453
|
##### Returns
|
|
1394
1454
|
|
|
1395
1455
|
|
|
1396
|
-
-
|
|
1456
|
+
- True if variable is a NaN or false otherwise
|
|
1397
1457
|
|
|
1398
1458
|
|
|
1399
1459
|
|
|
1400
1460
|
|
|
1401
|
-
### dist/
|
|
1461
|
+
### dist/general/mix/isNull.js
|
|
1402
1462
|
|
|
1403
1463
|
|
|
1404
|
-
####
|
|
1464
|
+
#### isNull(arg)
|
|
1405
1465
|
|
|
1406
|
-
|
|
1466
|
+
return if a given variable is either `null` or `undefined`
|
|
1467
|
+
useful to avoid falsify validating Number Zero (0)
|
|
1407
1468
|
|
|
1408
1469
|
|
|
1409
1470
|
|
|
@@ -1412,74 +1473,37 @@ Get date range object from a string date value
|
|
|
1412
1473
|
|
|
1413
1474
|
| Name | Type | Description | |
|
|
1414
1475
|
| ---- | ---- | ----------- | -------- |
|
|
1415
|
-
|
|
|
1416
|
-
| dateGroupLabel | `String` | could be 'YEAR', 'QUARTER', 'MONTH' or 'DAY'. Deafult is 'DAY' | |
|
|
1417
|
-
| withTime | `Boolean` | determines if the date range will include time. Default is true | |
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
##### Examples
|
|
1423
|
-
|
|
1424
|
-
```javascript
|
|
1425
|
-
// 1) Year:
|
|
1426
|
-
getDateRange('2020', 'YEAR');
|
|
1427
|
-
// Will return:
|
|
1428
|
-
{
|
|
1429
|
-
from: '01/01/2020 00:00:00',
|
|
1430
|
-
to: '12/31/2020 23:59:59'
|
|
1431
|
-
}
|
|
1476
|
+
| arg | `any` | | |
|
|
1432
1477
|
|
|
1433
|
-
// 2) Quarter:
|
|
1434
|
-
getDateRange('Q3 2020', 'QUARTER');
|
|
1435
|
-
// Will return:
|
|
1436
|
-
{
|
|
1437
|
-
from: '07/01/2020 00:00:00',
|
|
1438
|
-
to: '09/30/2020 23:59:59'
|
|
1439
|
-
}
|
|
1440
1478
|
|
|
1441
|
-
// 3) Month:
|
|
1442
|
-
getDateRange('Oct 2020', 'MONTH');
|
|
1443
|
-
// Will return:
|
|
1444
|
-
{
|
|
1445
|
-
from: '10/01/2020 00:00:00',
|
|
1446
|
-
to: '10/31/2020 23:59:59'
|
|
1447
|
-
}
|
|
1448
|
-
```
|
|
1449
1479
|
|
|
1450
1480
|
|
|
1451
1481
|
##### Returns
|
|
1452
1482
|
|
|
1453
1483
|
|
|
1454
|
-
- `
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
### dist/dates/relative/Adapter.js
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
#### value()
|
|
1463
|
-
|
|
1464
|
-
Resolves statement and returns statement value
|
|
1465
|
-
|
|
1484
|
+
- `Boolean`
|
|
1466
1485
|
|
|
1467
1486
|
|
|
1468
1487
|
|
|
1469
1488
|
|
|
1489
|
+
### dist/general/mix/randomId.js
|
|
1470
1490
|
|
|
1471
|
-
##### Returns
|
|
1472
1491
|
|
|
1492
|
+
#### randomId(length, exclude)
|
|
1473
1493
|
|
|
1474
|
-
|
|
1494
|
+
Creates a random string
|
|
1495
|
+
- If the first given argument is different than a length number, the variable is replaced by a default number
|
|
1496
|
+
- If the optional second given argument is passed the random string is permutated.
|
|
1475
1497
|
|
|
1476
1498
|
|
|
1477
1499
|
|
|
1478
|
-
#### valueAsAnchor()
|
|
1479
|
-
|
|
1480
|
-
Resolves statement as an anchor
|
|
1481
1500
|
|
|
1501
|
+
##### Parameters
|
|
1482
1502
|
|
|
1503
|
+
| Name | Type | Description | |
|
|
1504
|
+
| ---- | ---- | ----------- | -------- |
|
|
1505
|
+
| length | `Number` | size of the generated string. Default 8 | |
|
|
1506
|
+
| exclude | `Array` | collection of strings that is going to be excluded of the random string. | |
|
|
1483
1507
|
|
|
1484
1508
|
|
|
1485
1509
|
|
|
@@ -1487,31 +1511,28 @@ Resolves statement as an anchor
|
|
|
1487
1511
|
##### Returns
|
|
1488
1512
|
|
|
1489
1513
|
|
|
1490
|
-
- `
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
#### _statementToRange() *private method*
|
|
1495
|
-
|
|
1496
|
-
Convert verbal statement to range value
|
|
1497
|
-
|
|
1498
|
-
|
|
1514
|
+
- `String` Random string
|
|
1499
1515
|
|
|
1500
1516
|
|
|
1501
1517
|
|
|
1502
1518
|
|
|
1503
|
-
|
|
1519
|
+
### dist/general/mix/size.js
|
|
1504
1520
|
|
|
1505
1521
|
|
|
1506
|
-
|
|
1522
|
+
#### size(obj)
|
|
1507
1523
|
|
|
1524
|
+
Gets the length of the given array.
|
|
1525
|
+
- Useful for Object, Array and string type.
|
|
1526
|
+
- For `null` or `undefined` or else argument the returned value will be 0.
|
|
1508
1527
|
|
|
1509
1528
|
|
|
1510
|
-
#### _resolveAsThis() *private method*
|
|
1511
1529
|
|
|
1512
|
-
Apply 'this' cursor logic to statement
|
|
1513
1530
|
|
|
1531
|
+
##### Parameters
|
|
1514
1532
|
|
|
1533
|
+
| Name | Type | Description | |
|
|
1534
|
+
| ---- | ---- | ----------- | -------- |
|
|
1535
|
+
| obj | `Any` | Any object-type variable | |
|
|
1515
1536
|
|
|
1516
1537
|
|
|
1517
1538
|
|
|
@@ -1519,45 +1540,45 @@ Apply 'this' cursor logic to statement
|
|
|
1519
1540
|
##### Returns
|
|
1520
1541
|
|
|
1521
1542
|
|
|
1522
|
-
- `
|
|
1523
|
-
|
|
1543
|
+
- `Number` the size of the given variable
|
|
1524
1544
|
|
|
1525
1545
|
|
|
1526
|
-
#### _resolveAsTheLast() *private method*
|
|
1527
|
-
|
|
1528
|
-
Apply 'the last' cursor logic to statement
|
|
1529
1546
|
|
|
1530
1547
|
|
|
1548
|
+
### dist/general/string/capitalize.js
|
|
1531
1549
|
|
|
1532
1550
|
|
|
1551
|
+
#### capitalize(text)
|
|
1533
1552
|
|
|
1553
|
+
Upper case the first letter of a given text
|
|
1534
1554
|
|
|
1535
|
-
##### Returns
|
|
1536
1555
|
|
|
1537
1556
|
|
|
1538
|
-
- `AbsoluteStatement`
|
|
1539
|
-
|
|
1540
1557
|
|
|
1558
|
+
##### Parameters
|
|
1541
1559
|
|
|
1542
|
-
|
|
1560
|
+
| Name | Type | Description | |
|
|
1561
|
+
| ---- | ---- | ----------- | -------- |
|
|
1562
|
+
| text | `String` | | |
|
|
1543
1563
|
|
|
1544
|
-
Apply 'the next' cursor logic to statement
|
|
1545
1564
|
|
|
1546
1565
|
|
|
1547
1566
|
|
|
1567
|
+
##### Returns
|
|
1548
1568
|
|
|
1549
1569
|
|
|
1570
|
+
- `String` a capitalized text
|
|
1550
1571
|
|
|
1551
|
-
##### Returns
|
|
1552
1572
|
|
|
1553
1573
|
|
|
1554
|
-
- `AbsoluteStatement`
|
|
1555
1574
|
|
|
1575
|
+
### dist/general/object/cloneDeep.js
|
|
1556
1576
|
|
|
1557
1577
|
|
|
1558
|
-
####
|
|
1578
|
+
#### cloneDeep(obj)
|
|
1559
1579
|
|
|
1560
|
-
|
|
1580
|
+
A simple Deep Cloning function. Valid only for primivite values and object with primitive values.
|
|
1581
|
+
Not to use this function with inner objects and functions
|
|
1561
1582
|
|
|
1562
1583
|
|
|
1563
1584
|
|
|
@@ -1566,8 +1587,7 @@ Replace '@now' token inside a string
|
|
|
1566
1587
|
|
|
1567
1588
|
| Name | Type | Description | |
|
|
1568
1589
|
| ---- | ---- | ----------- | -------- |
|
|
1569
|
-
|
|
|
1570
|
-
| now | `Date` | | |
|
|
1590
|
+
| obj | | The object | |
|
|
1571
1591
|
|
|
1572
1592
|
|
|
1573
1593
|
|
|
@@ -1575,13 +1595,21 @@ Replace '@now' token inside a string
|
|
|
1575
1595
|
##### Returns
|
|
1576
1596
|
|
|
1577
1597
|
|
|
1578
|
-
-
|
|
1598
|
+
- The new reference object or the given object if the parsing is incorrect or empty
|
|
1579
1599
|
|
|
1580
1600
|
|
|
1581
1601
|
|
|
1582
|
-
#### convertRelativeToAbsolute(args)
|
|
1583
1602
|
|
|
1584
|
-
|
|
1603
|
+
### dist/general/object/get.js
|
|
1604
|
+
|
|
1605
|
+
|
|
1606
|
+
#### _get(baseObject, path, defaultValue)
|
|
1607
|
+
|
|
1608
|
+
Like lodash _.get.
|
|
1609
|
+
Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.
|
|
1610
|
+
|
|
1611
|
+
Empty arrays and empty objects are returned but the defaultValue is not
|
|
1612
|
+
Undefined and null values will return the defaultValue.
|
|
1585
1613
|
|
|
1586
1614
|
|
|
1587
1615
|
|
|
@@ -1590,7 +1618,9 @@ Returns a range object (date) from a group of statement params
|
|
|
1590
1618
|
|
|
1591
1619
|
| Name | Type | Description | |
|
|
1592
1620
|
| ---- | ---- | ----------- | -------- |
|
|
1593
|
-
|
|
|
1621
|
+
| baseObject | | The object to query | |
|
|
1622
|
+
| path | | The string path or collection of string paths of the property to get. | |
|
|
1623
|
+
| defaultValue | | The value returned for undefined resolved values. | |
|
|
1594
1624
|
|
|
1595
1625
|
|
|
1596
1626
|
|
|
@@ -1598,37 +1628,49 @@ Returns a range object (date) from a group of statement params
|
|
|
1598
1628
|
##### Examples
|
|
1599
1629
|
|
|
1600
1630
|
```javascript
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
steps = 2
|
|
1604
|
-
setTo = END
|
|
1605
|
-
resolverAsCalendar: true
|
|
1606
|
-
=> Returns '2021-05-31T23:59:59'
|
|
1631
|
+
// returns 'Hello'
|
|
1632
|
+
_get({ item1: 'Hello', item2: 'World' }, 'item1')
|
|
1607
1633
|
```
|
|
1608
1634
|
```javascript
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1635
|
+
// returns 'A simple Hello'
|
|
1636
|
+
_get({ item1: 'Hello', item2: 'World' }, 'item3', 'A simple Hello')
|
|
1637
|
+
```
|
|
1638
|
+
```javascript
|
|
1639
|
+
// returns 'Hello Again'
|
|
1640
|
+
_get({ item1: { item11: 'Hello Again' }, item2: {} }, 'item1.item11')
|
|
1641
|
+
```
|
|
1642
|
+
```javascript
|
|
1643
|
+
// returns 'Hello 2'
|
|
1644
|
+
_get({ item1: ['Hello 1', 'Hello 2' }, item2: [] }, 'item1[1]')
|
|
1645
|
+
```
|
|
1646
|
+
```javascript
|
|
1647
|
+
// returns 'Hello Again'
|
|
1648
|
+
_get({ item1: { item11: 'Hello Again' }, item2: {} }, ['item1', 'item11'])
|
|
1615
1649
|
```
|
|
1616
1650
|
|
|
1617
1651
|
|
|
1618
1652
|
##### Returns
|
|
1619
1653
|
|
|
1620
1654
|
|
|
1621
|
-
-
|
|
1655
|
+
- the resolved value.
|
|
1622
1656
|
|
|
1623
1657
|
|
|
1624
1658
|
|
|
1625
1659
|
|
|
1626
|
-
### dist/
|
|
1660
|
+
### dist/general/object/getAttribute.js
|
|
1627
1661
|
|
|
1628
1662
|
|
|
1629
|
-
####
|
|
1663
|
+
#### getAttribute(obj, key)
|
|
1630
1664
|
|
|
1631
|
-
|
|
1665
|
+
Searchs for properties in different case styles such as: lower, upper, camel and pascal
|
|
1666
|
+
- To optimize the searching, it is required a key in a snake_case style
|
|
1667
|
+
- List of cases that do not match
|
|
1668
|
+
-- From lower to snake case
|
|
1669
|
+
-- From upper to snake case
|
|
1670
|
+
-- From lower to camel case
|
|
1671
|
+
-- From upper to camel case
|
|
1672
|
+
-- From lower to pascal case
|
|
1673
|
+
-- From upper to pascal case
|
|
1632
1674
|
|
|
1633
1675
|
|
|
1634
1676
|
|
|
@@ -1637,8 +1679,8 @@ Resolve a list of relative statements according to operator
|
|
|
1637
1679
|
|
|
1638
1680
|
| Name | Type | Description | |
|
|
1639
1681
|
| ---- | ---- | ----------- | -------- |
|
|
1640
|
-
|
|
|
1641
|
-
|
|
|
1682
|
+
| obj | `object` | object to look for | |
|
|
1683
|
+
| key | `string` | String attribute in snake_case style | |
|
|
1642
1684
|
|
|
1643
1685
|
|
|
1644
1686
|
|
|
@@ -1646,35 +1688,24 @@ Resolve a list of relative statements according to operator
|
|
|
1646
1688
|
##### Examples
|
|
1647
1689
|
|
|
1648
1690
|
```javascript
|
|
1649
|
-
|
|
1650
|
-
{
|
|
1651
|
-
"cursor": "the_next",
|
|
1652
|
-
"unit": "year",
|
|
1653
|
-
"number": 1,
|
|
1654
|
-
"includeCurrent": false,
|
|
1655
|
-
"isCalendarDate": false,
|
|
1656
|
-
"anchor": "03/05/2021"
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
Output:
|
|
1660
|
-
{ gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
|
|
1691
|
+
getAttribute(obj, 'snake_case') //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
|
|
1661
1692
|
```
|
|
1662
1693
|
|
|
1663
1694
|
|
|
1664
1695
|
##### Returns
|
|
1665
1696
|
|
|
1666
1697
|
|
|
1667
|
-
- `
|
|
1698
|
+
- `Void`
|
|
1668
1699
|
|
|
1669
1700
|
|
|
1670
1701
|
|
|
1671
1702
|
|
|
1672
|
-
### dist/general/
|
|
1703
|
+
### dist/general/object/hasProperty.js
|
|
1673
1704
|
|
|
1674
1705
|
|
|
1675
|
-
####
|
|
1706
|
+
#### _hasProperty(obj, property)
|
|
1676
1707
|
|
|
1677
|
-
|
|
1708
|
+
Use the hasOwnProperty in order to verify if the given property exists in the object.
|
|
1678
1709
|
|
|
1679
1710
|
|
|
1680
1711
|
|
|
@@ -1683,29 +1714,38 @@ Inmutable Array Item deletion
|
|
|
1683
1714
|
|
|
1684
1715
|
| Name | Type | Description | |
|
|
1685
1716
|
| ---- | ---- | ----------- | -------- |
|
|
1686
|
-
|
|
|
1687
|
-
|
|
|
1717
|
+
| obj | `object` | an object | |
|
|
1718
|
+
| property | `string` | String to verify if exists in the object as property | |
|
|
1719
|
+
|
|
1688
1720
|
|
|
1689
1721
|
|
|
1690
1722
|
|
|
1723
|
+
##### Examples
|
|
1724
|
+
|
|
1725
|
+
```javascript
|
|
1726
|
+
const prop = 'prop2'
|
|
1727
|
+
const obj1 = { prop1: 'hello', prop2: 'world'}
|
|
1728
|
+
_hasProperty(ob1, prop1) // true
|
|
1729
|
+
|
|
1730
|
+
const obj2 = { prop1: 'hello world' }
|
|
1731
|
+
_hasProperty(ob1, prop2) // false
|
|
1732
|
+
```
|
|
1733
|
+
|
|
1691
1734
|
|
|
1692
1735
|
##### Returns
|
|
1693
1736
|
|
|
1694
1737
|
|
|
1695
|
-
-
|
|
1738
|
+
- True if the object has the given property; otherwise, false.
|
|
1696
1739
|
|
|
1697
1740
|
|
|
1698
1741
|
|
|
1699
1742
|
|
|
1700
|
-
### dist/general/
|
|
1743
|
+
### dist/general/object/isObject.js
|
|
1701
1744
|
|
|
1702
1745
|
|
|
1703
|
-
####
|
|
1746
|
+
#### isObject(obj)
|
|
1704
1747
|
|
|
1705
|
-
|
|
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
|
|
1748
|
+
Checks if the given argument is an object type
|
|
1709
1749
|
|
|
1710
1750
|
|
|
1711
1751
|
|
|
@@ -1714,9 +1754,7 @@ Filters a nested tree array by a custom condition on the last child node
|
|
|
1714
1754
|
|
|
1715
1755
|
| Name | Type | Description | |
|
|
1716
1756
|
| ---- | ---- | ----------- | -------- |
|
|
1717
|
-
|
|
|
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 | |
|
|
1757
|
+
| obj | | the variable to check | |
|
|
1720
1758
|
|
|
1721
1759
|
|
|
1722
1760
|
|
|
@@ -1724,17 +1762,18 @@ Filters a nested tree array by a custom condition on the last child node
|
|
|
1724
1762
|
##### Returns
|
|
1725
1763
|
|
|
1726
1764
|
|
|
1727
|
-
-
|
|
1765
|
+
- True: It is an object; False: It is not.
|
|
1728
1766
|
|
|
1729
1767
|
|
|
1730
1768
|
|
|
1731
1769
|
|
|
1732
|
-
### dist/general/
|
|
1770
|
+
### dist/general/object/mapValues.js
|
|
1733
1771
|
|
|
1734
1772
|
|
|
1735
|
-
####
|
|
1773
|
+
#### mapValues(baseObject, iteratee)
|
|
1736
1774
|
|
|
1737
|
-
|
|
1775
|
+
Invoke iteratee (function) for each object key-value pair
|
|
1776
|
+
and return a mapped object
|
|
1738
1777
|
|
|
1739
1778
|
|
|
1740
1779
|
|
|
@@ -1743,7 +1782,8 @@ Flat deeply an array
|
|
|
1743
1782
|
|
|
1744
1783
|
| Name | Type | Description | |
|
|
1745
1784
|
| ---- | ---- | ----------- | -------- |
|
|
1746
|
-
|
|
|
1785
|
+
| baseObject | `Object` | Base object. | |
|
|
1786
|
+
| iteratee | `Function` | The executed per iteration. | |
|
|
1747
1787
|
|
|
1748
1788
|
|
|
1749
1789
|
|
|
@@ -1751,17 +1791,18 @@ Flat deeply an array
|
|
|
1751
1791
|
##### Returns
|
|
1752
1792
|
|
|
1753
1793
|
|
|
1754
|
-
-
|
|
1794
|
+
- `Object` New mapped object.
|
|
1755
1795
|
|
|
1756
1796
|
|
|
1757
1797
|
|
|
1758
1798
|
|
|
1759
|
-
### dist/general/
|
|
1799
|
+
### dist/general/object/mergeDeep.js
|
|
1760
1800
|
|
|
1761
1801
|
|
|
1762
|
-
####
|
|
1802
|
+
#### mergeDeep(obj1, obj2, settings)
|
|
1763
1803
|
|
|
1764
|
-
|
|
1804
|
+
Merges two objects into a new one.
|
|
1805
|
+
The second given argument to the first given argument.
|
|
1765
1806
|
|
|
1766
1807
|
|
|
1767
1808
|
|
|
@@ -1770,8 +1811,9 @@ Gets the first index from the array by a callback condition
|
|
|
1770
1811
|
|
|
1771
1812
|
| Name | Type | Description | |
|
|
1772
1813
|
| ---- | ---- | ----------- | -------- |
|
|
1773
|
-
|
|
|
1774
|
-
|
|
|
1814
|
+
| obj1 | | The target object | |
|
|
1815
|
+
| obj2 | | The object to be merged | |
|
|
1816
|
+
| settings | | Object settings for this function | |
|
|
1775
1817
|
|
|
1776
1818
|
|
|
1777
1819
|
|
|
@@ -1779,17 +1821,13 @@ Gets the first index from the array by a callback condition
|
|
|
1779
1821
|
##### Returns
|
|
1780
1822
|
|
|
1781
1823
|
|
|
1782
|
-
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1824
|
+
- a new merged object
|
|
1786
1825
|
|
|
1787
|
-
### dist/general/array/getLastIndexFromArray.js
|
|
1788
1826
|
|
|
1789
1827
|
|
|
1790
|
-
####
|
|
1828
|
+
#### isValid(obj1, obj2)
|
|
1791
1829
|
|
|
1792
|
-
|
|
1830
|
+
Validates if the two arguments are objects
|
|
1793
1831
|
|
|
1794
1832
|
|
|
1795
1833
|
|
|
@@ -1798,8 +1836,8 @@ Gets the last index from the array by a callback condition
|
|
|
1798
1836
|
|
|
1799
1837
|
| Name | Type | Description | |
|
|
1800
1838
|
| ---- | ---- | ----------- | -------- |
|
|
1801
|
-
|
|
|
1802
|
-
|
|
|
1839
|
+
| obj1 | | The target object | |
|
|
1840
|
+
| obj2 | | The object to be merged | |
|
|
1803
1841
|
|
|
1804
1842
|
|
|
1805
1843
|
|
|
@@ -1807,17 +1845,13 @@ Gets the last index from the array by a callback condition
|
|
|
1807
1845
|
##### Returns
|
|
1808
1846
|
|
|
1809
1847
|
|
|
1810
|
-
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1848
|
+
- true: they are valid; false: they are not
|
|
1814
1849
|
|
|
1815
|
-
### dist/general/function/debounce.js
|
|
1816
1850
|
|
|
1817
1851
|
|
|
1818
|
-
####
|
|
1852
|
+
#### getParamsToMergeDeep(settings)
|
|
1819
1853
|
|
|
1820
|
-
|
|
1854
|
+
Validates and gets the settings with all set parameters.
|
|
1821
1855
|
|
|
1822
1856
|
|
|
1823
1857
|
|
|
@@ -1826,8 +1860,7 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
|
|
|
1826
1860
|
|
|
1827
1861
|
| Name | Type | Description | |
|
|
1828
1862
|
| ---- | ---- | ----------- | -------- |
|
|
1829
|
-
|
|
|
1830
|
-
| time | `Number` | default 500ms | |
|
|
1863
|
+
| settings | | the settings object | |
|
|
1831
1864
|
|
|
1832
1865
|
|
|
1833
1866
|
|
|
@@ -1835,17 +1868,17 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
|
|
|
1835
1868
|
##### Returns
|
|
1836
1869
|
|
|
1837
1870
|
|
|
1838
|
-
-
|
|
1871
|
+
- a new settings object with all set parameters.
|
|
1839
1872
|
|
|
1840
1873
|
|
|
1841
1874
|
|
|
1842
1875
|
|
|
1843
|
-
### dist/general/
|
|
1876
|
+
### dist/general/object/objectCopy.js
|
|
1844
1877
|
|
|
1845
1878
|
|
|
1846
|
-
####
|
|
1879
|
+
#### objectCopy(entity, cache)
|
|
1847
1880
|
|
|
1848
|
-
|
|
1881
|
+
Created a new reference of the given argument
|
|
1849
1882
|
|
|
1850
1883
|
|
|
1851
1884
|
|
|
@@ -1854,8 +1887,8 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
|
1854
1887
|
|
|
1855
1888
|
| Name | Type | Description | |
|
|
1856
1889
|
| ---- | ---- | ----------- | -------- |
|
|
1857
|
-
|
|
|
1858
|
-
|
|
|
1890
|
+
| entity | | The variable to be copied | |
|
|
1891
|
+
| cache | | | |
|
|
1859
1892
|
|
|
1860
1893
|
|
|
1861
1894
|
|
|
@@ -1863,18 +1896,17 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
|
1863
1896
|
##### Returns
|
|
1864
1897
|
|
|
1865
1898
|
|
|
1866
|
-
-
|
|
1899
|
+
- A new reference of the given argument
|
|
1867
1900
|
|
|
1868
1901
|
|
|
1869
1902
|
|
|
1870
1903
|
|
|
1871
|
-
### dist/general/
|
|
1904
|
+
### dist/general/object/omit.js
|
|
1872
1905
|
|
|
1873
1906
|
|
|
1874
|
-
####
|
|
1907
|
+
#### omit(obj, props)
|
|
1875
1908
|
|
|
1876
|
-
|
|
1877
|
-
Includes arrays in the comparison.
|
|
1909
|
+
return a new Object excluding attributes in _props_ list
|
|
1878
1910
|
|
|
1879
1911
|
|
|
1880
1912
|
|
|
@@ -1883,8 +1915,8 @@ Includes arrays in the comparison.
|
|
|
1883
1915
|
|
|
1884
1916
|
| Name | Type | Description | |
|
|
1885
1917
|
| ---- | ---- | ----------- | -------- |
|
|
1886
|
-
|
|
|
1887
|
-
|
|
|
1918
|
+
| obj | `Object` | base object | |
|
|
1919
|
+
| props | `Array.<String>` | list of attribute to exclude | |
|
|
1888
1920
|
|
|
1889
1921
|
|
|
1890
1922
|
|
|
@@ -1892,17 +1924,17 @@ Includes arrays in the comparison.
|
|
|
1892
1924
|
##### Returns
|
|
1893
1925
|
|
|
1894
1926
|
|
|
1895
|
-
-
|
|
1927
|
+
- `Object` clean object
|
|
1896
1928
|
|
|
1897
1929
|
|
|
1898
1930
|
|
|
1899
1931
|
|
|
1900
|
-
### dist/general/
|
|
1932
|
+
### dist/general/object/pick.js
|
|
1901
1933
|
|
|
1902
1934
|
|
|
1903
|
-
####
|
|
1935
|
+
#### pick(baseObject, keys)
|
|
1904
1936
|
|
|
1905
|
-
|
|
1937
|
+
return a new object just with attributes in _keys_ list
|
|
1906
1938
|
|
|
1907
1939
|
|
|
1908
1940
|
|
|
@@ -1911,7 +1943,8 @@ Gets the `toStringTag` of `value`.
|
|
|
1911
1943
|
|
|
1912
1944
|
| Name | Type | Description | |
|
|
1913
1945
|
| ---- | ---- | ----------- | -------- |
|
|
1914
|
-
|
|
|
1946
|
+
| baseObject | `Object` | base object | |
|
|
1947
|
+
| keys | `Array.<String>` | list of attributes to preserve | |
|
|
1915
1948
|
|
|
1916
1949
|
|
|
1917
1950
|
|
|
@@ -1919,17 +1952,17 @@ Gets the `toStringTag` of `value`.
|
|
|
1919
1952
|
##### Returns
|
|
1920
1953
|
|
|
1921
1954
|
|
|
1922
|
-
- `
|
|
1955
|
+
- `Object` new object just with desired attributes
|
|
1923
1956
|
|
|
1924
1957
|
|
|
1925
1958
|
|
|
1926
1959
|
|
|
1927
|
-
### dist/general/
|
|
1960
|
+
### dist/general/object/serialize.js
|
|
1928
1961
|
|
|
1929
1962
|
|
|
1930
|
-
####
|
|
1963
|
+
#### serialize(obj)
|
|
1931
1964
|
|
|
1932
|
-
|
|
1965
|
+
serialize object to url param
|
|
1933
1966
|
|
|
1934
1967
|
|
|
1935
1968
|
|
|
@@ -1938,54 +1971,25 @@ Import a set of external Scripts given the URL in both serie and cascade way
|
|
|
1938
1971
|
|
|
1939
1972
|
| Name | Type | Description | |
|
|
1940
1973
|
| ---- | ---- | ----------- | -------- |
|
|
1941
|
-
|
|
|
1942
|
-
| scripts.url | `String` | CDN URL | |
|
|
1943
|
-
| scripts.namespace | `String` `Function` | (Optional) if is a String, that name is evaluated on Window[namespace] object otherwise the Function is invoked expecting a Thrutly value | |
|
|
1944
|
-
| scripts.type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | |
|
|
1945
|
-
| scripts.noModule | `Boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | |
|
|
1946
|
-
| scripts.dependencies | `Array.<Object>` | an array with the same structure to load in cascade mode | |
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1974
|
+
| obj | | - Object to be serialized | |
|
|
1950
1975
|
|
|
1951
|
-
##### Examples
|
|
1952
1976
|
|
|
1953
|
-
```javascript
|
|
1954
|
-
// 1) Simple script (paralell loading)
|
|
1955
|
-
importScripts(['http://myscript.js', 'http://another.js']);
|
|
1956
1977
|
|
|
1957
|
-
// 2) Loading `.js` and `.esm.js` script (parallel loading)
|
|
1958
|
-
importScripts([
|
|
1959
|
-
{ url: 'http://myscript.esm.js', type: 'module' },
|
|
1960
|
-
{ url: 'http://myscript.js', noModule: true }
|
|
1961
|
-
]);
|
|
1962
1978
|
|
|
1963
|
-
|
|
1964
|
-
importScripts([
|
|
1965
|
-
{ url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] }
|
|
1966
|
-
]);
|
|
1979
|
+
##### Returns
|
|
1967
1980
|
|
|
1968
|
-
// 4) mix
|
|
1969
|
-
importScripts([
|
|
1970
|
-
{ url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] },
|
|
1971
|
-
{ url: 'http://another.esm.js', type: 'module' },
|
|
1972
|
-
{ url: 'http://another.js', noModule: true },
|
|
1973
|
-
'http://simplescript.js'
|
|
1974
|
-
]);
|
|
1975
|
-
```
|
|
1976
1981
|
|
|
1982
|
+
- `Void`
|
|
1977
1983
|
|
|
1978
|
-
##### Returns
|
|
1979
1984
|
|
|
1980
1985
|
|
|
1981
|
-
- `Promise` Promise when all script have been loaded
|
|
1982
1986
|
|
|
1987
|
+
### dist/dates/adapters/mdyDateToDate.js
|
|
1983
1988
|
|
|
1984
1989
|
|
|
1985
|
-
####
|
|
1990
|
+
#### mdyDateToDate(monthYearDate, time)
|
|
1986
1991
|
|
|
1987
|
-
|
|
1988
|
-
return a Promise that is resolved when the script is loaded
|
|
1992
|
+
Transforms String Date from a [mm/dd/yyyy] format to Date object.
|
|
1989
1993
|
|
|
1990
1994
|
|
|
1991
1995
|
|
|
@@ -1994,9 +1998,8 @@ return a Promise that is resolved when the script is loaded
|
|
|
1994
1998
|
|
|
1995
1999
|
| Name | Type | Description | |
|
|
1996
2000
|
| ---- | ---- | ----------- | -------- |
|
|
1997
|
-
|
|
|
1998
|
-
|
|
|
1999
|
-
| noModule | `boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | |
|
|
2001
|
+
| monthYearDate | | String of [mm/dd/yyyy] date | |
|
|
2002
|
+
| time | | Flag to parse the object date to milliseconds. | |
|
|
2000
2003
|
|
|
2001
2004
|
|
|
2002
2005
|
|
|
@@ -2004,17 +2007,17 @@ return a Promise that is resolved when the script is loaded
|
|
|
2004
2007
|
##### Returns
|
|
2005
2008
|
|
|
2006
2009
|
|
|
2007
|
-
-
|
|
2010
|
+
- The date object or the date in milliseconds
|
|
2008
2011
|
|
|
2009
2012
|
|
|
2010
2013
|
|
|
2011
2014
|
|
|
2012
|
-
### dist/
|
|
2015
|
+
### dist/dates/adapters/monthYearToDate.js
|
|
2013
2016
|
|
|
2014
2017
|
|
|
2015
|
-
####
|
|
2018
|
+
#### monthYearToDate(monthYearDate, time)
|
|
2016
2019
|
|
|
2017
|
-
|
|
2020
|
+
Transforms String Date from a [Month Year] format to Date object.
|
|
2018
2021
|
|
|
2019
2022
|
|
|
2020
2023
|
|
|
@@ -2023,8 +2026,8 @@ Validates if the given argument is empty
|
|
|
2023
2026
|
|
|
2024
2027
|
| Name | Type | Description | |
|
|
2025
2028
|
| ---- | ---- | ----------- | -------- |
|
|
2026
|
-
|
|
|
2027
|
-
|
|
|
2029
|
+
| monthYearDate | | String of [Month Year] date | |
|
|
2030
|
+
| time | | Flag to parse the object date to milliseconds. | |
|
|
2028
2031
|
|
|
2029
2032
|
|
|
2030
2033
|
|
|
@@ -2032,19 +2035,17 @@ Validates if the given argument is empty
|
|
|
2032
2035
|
##### Returns
|
|
2033
2036
|
|
|
2034
2037
|
|
|
2035
|
-
-
|
|
2038
|
+
- The date object or the date in milliseconds
|
|
2036
2039
|
|
|
2037
2040
|
|
|
2038
2041
|
|
|
2039
2042
|
|
|
2040
|
-
### dist/
|
|
2043
|
+
### dist/dates/adapters/quarterYearToDate.js
|
|
2041
2044
|
|
|
2042
2045
|
|
|
2043
|
-
####
|
|
2046
|
+
#### quarterYearToDate(quarterYearDate, time)
|
|
2044
2047
|
|
|
2045
|
-
|
|
2046
|
-
This function recieves any variable but will return false.
|
|
2047
|
-
Validates if variable is null, undefined, or an empty string, also, the function uses isNaN native function.
|
|
2048
|
+
Transforms String Date from a [Quarter Year] format to Date object.
|
|
2048
2049
|
|
|
2049
2050
|
|
|
2050
2051
|
|
|
@@ -2053,7 +2054,8 @@ Validates if variable is null, undefined, or an empty string, also, the function
|
|
|
2053
2054
|
|
|
2054
2055
|
| Name | Type | Description | |
|
|
2055
2056
|
| ---- | ---- | ----------- | -------- |
|
|
2056
|
-
|
|
|
2057
|
+
| quarterYearDate | | String of [Quarter Year] date | |
|
|
2058
|
+
| time | | Flag to parse the object date to milliseconds. | |
|
|
2057
2059
|
|
|
2058
2060
|
|
|
2059
2061
|
|
|
@@ -2061,18 +2063,17 @@ Validates if variable is null, undefined, or an empty string, also, the function
|
|
|
2061
2063
|
##### Returns
|
|
2062
2064
|
|
|
2063
2065
|
|
|
2064
|
-
-
|
|
2066
|
+
- The date object or the date in milliseconds
|
|
2065
2067
|
|
|
2066
2068
|
|
|
2067
2069
|
|
|
2068
2070
|
|
|
2069
|
-
### dist/
|
|
2071
|
+
### dist/dates/adapters/weekYearToDate.js
|
|
2070
2072
|
|
|
2071
2073
|
|
|
2072
|
-
####
|
|
2074
|
+
#### weekYearToDate(date, time)
|
|
2073
2075
|
|
|
2074
|
-
|
|
2075
|
-
useful to avoid falsify validating Number Zero (0)
|
|
2076
|
+
Transforms String Date from a [Week Year] format to Date object.
|
|
2076
2077
|
|
|
2077
2078
|
|
|
2078
2079
|
|
|
@@ -2081,7 +2082,8 @@ useful to avoid falsify validating Number Zero (0)
|
|
|
2081
2082
|
|
|
2082
2083
|
| Name | Type | Description | |
|
|
2083
2084
|
| ---- | ---- | ----------- | -------- |
|
|
2084
|
-
|
|
|
2085
|
+
| date | | String of [Week Year] date | |
|
|
2086
|
+
| time | | Flag to parse the object date to milliseconds. | |
|
|
2085
2087
|
|
|
2086
2088
|
|
|
2087
2089
|
|
|
@@ -2089,19 +2091,17 @@ useful to avoid falsify validating Number Zero (0)
|
|
|
2089
2091
|
##### Returns
|
|
2090
2092
|
|
|
2091
2093
|
|
|
2092
|
-
-
|
|
2094
|
+
- The date object or the date in milliseconds
|
|
2093
2095
|
|
|
2094
2096
|
|
|
2095
2097
|
|
|
2096
2098
|
|
|
2097
|
-
### dist/
|
|
2099
|
+
### dist/dates/adapters/yearToDate.js
|
|
2098
2100
|
|
|
2099
2101
|
|
|
2100
|
-
####
|
|
2102
|
+
#### yearToDate(yearDate, time)
|
|
2101
2103
|
|
|
2102
|
-
|
|
2103
|
-
- If the first given argument is different than a length number, the variable is replaced by a default number
|
|
2104
|
-
- If the optional second given argument is passed the random string is permutated.
|
|
2104
|
+
Transforms String Date from a [Year] format to Date object.
|
|
2105
2105
|
|
|
2106
2106
|
|
|
2107
2107
|
|
|
@@ -2110,8 +2110,8 @@ Creates a random string
|
|
|
2110
2110
|
|
|
2111
2111
|
| Name | Type | Description | |
|
|
2112
2112
|
| ---- | ---- | ----------- | -------- |
|
|
2113
|
-
|
|
|
2114
|
-
|
|
|
2113
|
+
| yearDate | | String of [Year] date | |
|
|
2114
|
+
| time | | Flag to parse the object date to milliseconds. | |
|
|
2115
2115
|
|
|
2116
2116
|
|
|
2117
2117
|
|
|
@@ -2119,19 +2119,17 @@ Creates a random string
|
|
|
2119
2119
|
##### Returns
|
|
2120
2120
|
|
|
2121
2121
|
|
|
2122
|
-
-
|
|
2122
|
+
- The date object or the date in milliseconds
|
|
2123
2123
|
|
|
2124
2124
|
|
|
2125
2125
|
|
|
2126
2126
|
|
|
2127
|
-
### dist/
|
|
2127
|
+
### dist/dates/helpers/getDateByDateFormat.js
|
|
2128
2128
|
|
|
2129
2129
|
|
|
2130
|
-
####
|
|
2130
|
+
#### getDateByDateFormat(date, format, time)
|
|
2131
2131
|
|
|
2132
|
-
Gets
|
|
2133
|
-
- Useful for Object, Array and string type.
|
|
2134
|
-
- For `null` or `undefined` or else argument the returned value will be 0.
|
|
2132
|
+
Gets a Date Object instance by a Date format
|
|
2135
2133
|
|
|
2136
2134
|
|
|
2137
2135
|
|
|
@@ -2140,7 +2138,9 @@ Gets the length of the given array.
|
|
|
2140
2138
|
|
|
2141
2139
|
| Name | Type | Description | |
|
|
2142
2140
|
| ---- | ---- | ----------- | -------- |
|
|
2143
|
-
|
|
|
2141
|
+
| date | | String with a formatted date | |
|
|
2142
|
+
| format | | The date format | |
|
|
2143
|
+
| time | | flag to convert the formatted date to miliseconds | |
|
|
2144
2144
|
|
|
2145
2145
|
|
|
2146
2146
|
|
|
@@ -2148,17 +2148,17 @@ Gets the length of the given array.
|
|
|
2148
2148
|
##### Returns
|
|
2149
2149
|
|
|
2150
2150
|
|
|
2151
|
-
-
|
|
2151
|
+
- a Date object, milisecond time or the same value if date format does not match.
|
|
2152
2152
|
|
|
2153
2153
|
|
|
2154
2154
|
|
|
2155
2155
|
|
|
2156
|
-
### dist/
|
|
2156
|
+
### dist/dates/helpers/getDateFormatByProperty.js
|
|
2157
2157
|
|
|
2158
2158
|
|
|
2159
|
-
####
|
|
2159
|
+
#### getDateFormatByProperty(property)
|
|
2160
2160
|
|
|
2161
|
-
|
|
2161
|
+
Gets the date format by the given property
|
|
2162
2162
|
|
|
2163
2163
|
|
|
2164
2164
|
|
|
@@ -2167,7 +2167,7 @@ Upper case the first letter of a given text
|
|
|
2167
2167
|
|
|
2168
2168
|
| Name | Type | Description | |
|
|
2169
2169
|
| ---- | ---- | ----------- | -------- |
|
|
2170
|
-
|
|
|
2170
|
+
| property | | The Column Property | |
|
|
2171
2171
|
|
|
2172
2172
|
|
|
2173
2173
|
|
|
@@ -2175,18 +2175,17 @@ Upper case the first letter of a given text
|
|
|
2175
2175
|
##### Returns
|
|
2176
2176
|
|
|
2177
2177
|
|
|
2178
|
-
-
|
|
2178
|
+
- The date format
|
|
2179
2179
|
|
|
2180
2180
|
|
|
2181
2181
|
|
|
2182
2182
|
|
|
2183
|
-
### dist/
|
|
2183
|
+
### dist/dates/helpers/getDateFormatRegularExpressionInArray.js
|
|
2184
2184
|
|
|
2185
2185
|
|
|
2186
|
-
####
|
|
2186
|
+
#### getDateFormatRegularExpressionInArray(dateFormat)
|
|
2187
2187
|
|
|
2188
|
-
|
|
2189
|
-
Not to use this function with inner objects and functions
|
|
2188
|
+
Gets an array of regular expressions by the given date format
|
|
2190
2189
|
|
|
2191
2190
|
|
|
2192
2191
|
|
|
@@ -2195,7 +2194,7 @@ Not to use this function with inner objects and functions
|
|
|
2195
2194
|
|
|
2196
2195
|
| Name | Type | Description | |
|
|
2197
2196
|
| ---- | ---- | ----------- | -------- |
|
|
2198
|
-
|
|
|
2197
|
+
| dateFormat | | the date format | |
|
|
2199
2198
|
|
|
2200
2199
|
|
|
2201
2200
|
|
|
@@ -2203,21 +2202,17 @@ Not to use this function with inner objects and functions
|
|
|
2203
2202
|
##### Returns
|
|
2204
2203
|
|
|
2205
2204
|
|
|
2206
|
-
-
|
|
2207
|
-
|
|
2205
|
+
- an array of regular expressions
|
|
2208
2206
|
|
|
2209
2207
|
|
|
2210
2208
|
|
|
2211
|
-
### dist/general/object/get.js
|
|
2212
2209
|
|
|
2210
|
+
### dist/dates/helpers/getSeparatorByDateFormat.js
|
|
2213
2211
|
|
|
2214
|
-
#### _get(baseObject, path, defaultValue)
|
|
2215
2212
|
|
|
2216
|
-
|
|
2217
|
-
Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.
|
|
2213
|
+
#### getSeparatorByDateFormat(format)
|
|
2218
2214
|
|
|
2219
|
-
|
|
2220
|
-
Undefined and null values will return the defaultValue.
|
|
2215
|
+
Gets the separator of the date format
|
|
2221
2216
|
|
|
2222
2217
|
|
|
2223
2218
|
|
|
@@ -2226,59 +2221,26 @@ Undefined and null values will return the defaultValue.
|
|
|
2226
2221
|
|
|
2227
2222
|
| Name | Type | Description | |
|
|
2228
2223
|
| ---- | ---- | ----------- | -------- |
|
|
2229
|
-
|
|
|
2230
|
-
| path | | The string path or collection of string paths of the property to get. | |
|
|
2231
|
-
| defaultValue | | The value returned for undefined resolved values. | |
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2224
|
+
| format | | the date format | |
|
|
2235
2225
|
|
|
2236
|
-
##### Examples
|
|
2237
2226
|
|
|
2238
|
-
```javascript
|
|
2239
|
-
// returns 'Hello'
|
|
2240
|
-
_get({ item1: 'Hello', item2: 'World' }, 'item1')
|
|
2241
|
-
```
|
|
2242
|
-
```javascript
|
|
2243
|
-
// returns 'A simple Hello'
|
|
2244
|
-
_get({ item1: 'Hello', item2: 'World' }, 'item3', 'A simple Hello')
|
|
2245
|
-
```
|
|
2246
|
-
```javascript
|
|
2247
|
-
// returns 'Hello Again'
|
|
2248
|
-
_get({ item1: { item11: 'Hello Again' }, item2: {} }, 'item1.item11')
|
|
2249
|
-
```
|
|
2250
|
-
```javascript
|
|
2251
|
-
// returns 'Hello 2'
|
|
2252
|
-
_get({ item1: ['Hello 1', 'Hello 2' }, item2: [] }, 'item1[1]')
|
|
2253
|
-
```
|
|
2254
|
-
```javascript
|
|
2255
|
-
// returns 'Hello Again'
|
|
2256
|
-
_get({ item1: { item11: 'Hello Again' }, item2: {} }, ['item1', 'item11'])
|
|
2257
|
-
```
|
|
2258
2227
|
|
|
2259
2228
|
|
|
2260
2229
|
##### Returns
|
|
2261
2230
|
|
|
2262
2231
|
|
|
2263
|
-
-
|
|
2232
|
+
- a separator string
|
|
2264
2233
|
|
|
2265
2234
|
|
|
2266
2235
|
|
|
2267
2236
|
|
|
2268
|
-
### dist/
|
|
2237
|
+
### dist/dates/helpers/getWeek.js
|
|
2269
2238
|
|
|
2270
2239
|
|
|
2271
|
-
####
|
|
2240
|
+
#### getWeek(date)
|
|
2272
2241
|
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
- List of cases that do not match
|
|
2276
|
-
-- From lower to snake case
|
|
2277
|
-
-- From upper to snake case
|
|
2278
|
-
-- From lower to camel case
|
|
2279
|
-
-- From upper to camel case
|
|
2280
|
-
-- From lower to pascal case
|
|
2281
|
-
-- From upper to pascal case
|
|
2242
|
+
Gets the week number of the year
|
|
2243
|
+
Additionally, the month and the year
|
|
2282
2244
|
|
|
2283
2245
|
|
|
2284
2246
|
|
|
@@ -2287,73 +2249,56 @@ Searchs for properties in different case styles such as: lower, upper, camel and
|
|
|
2287
2249
|
|
|
2288
2250
|
| Name | Type | Description | |
|
|
2289
2251
|
| ---- | ---- | ----------- | -------- |
|
|
2290
|
-
|
|
|
2291
|
-
| key | `string` | String attribute in snake_case style | |
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2252
|
+
| date | | the date object | |
|
|
2295
2253
|
|
|
2296
|
-
##### Examples
|
|
2297
2254
|
|
|
2298
|
-
```javascript
|
|
2299
|
-
getAttribute(obj, 'snake_case') //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
|
|
2300
|
-
```
|
|
2301
2255
|
|
|
2302
2256
|
|
|
2303
2257
|
##### Returns
|
|
2304
2258
|
|
|
2305
2259
|
|
|
2306
|
-
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
### dist/general/object/hasProperty.js
|
|
2260
|
+
- an object with the week, month and year.
|
|
2312
2261
|
|
|
2313
2262
|
|
|
2314
|
-
#### _hasProperty(obj, property)
|
|
2315
2263
|
|
|
2316
|
-
Use the hasOwnProperty in order to verify if the given property exists in the object.
|
|
2317
2264
|
|
|
2265
|
+
### dist/dates/helpers/validateDate.js
|
|
2318
2266
|
|
|
2319
2267
|
|
|
2268
|
+
#### validateDate(date, format)
|
|
2320
2269
|
|
|
2321
|
-
|
|
2270
|
+
Validate a string date depending on giving format
|
|
2271
|
+
- If the string is a token label, the function lets it pass.
|
|
2272
|
+
- Otherwise depends of the format
|
|
2273
|
+
- Some escenarios the string is a mix of token labels and dates
|
|
2322
2274
|
|
|
2323
|
-
| Name | Type | Description | |
|
|
2324
|
-
| ---- | ---- | ----------- | -------- |
|
|
2325
|
-
| obj | `object` | an object | |
|
|
2326
|
-
| property | `string` | String to verify if exists in the object as property | |
|
|
2327
2275
|
|
|
2328
2276
|
|
|
2329
2277
|
|
|
2278
|
+
##### Parameters
|
|
2330
2279
|
|
|
2331
|
-
|
|
2280
|
+
| Name | Type | Description | |
|
|
2281
|
+
| ---- | ---- | ----------- | -------- |
|
|
2282
|
+
| date | | String of date | |
|
|
2283
|
+
| format | | String of the format to validate | |
|
|
2332
2284
|
|
|
2333
|
-
```javascript
|
|
2334
|
-
const prop = 'prop2'
|
|
2335
|
-
const obj1 = { prop1: 'hello', prop2: 'world'}
|
|
2336
|
-
_hasProperty(ob1, prop1) // true
|
|
2337
2285
|
|
|
2338
|
-
const obj2 = { prop1: 'hello world' }
|
|
2339
|
-
_hasProperty(ob1, prop2) // false
|
|
2340
|
-
```
|
|
2341
2286
|
|
|
2342
2287
|
|
|
2343
2288
|
##### Returns
|
|
2344
2289
|
|
|
2345
2290
|
|
|
2346
|
-
- True if
|
|
2291
|
+
- True if it is valid or not. Undefined if date is undefined
|
|
2347
2292
|
|
|
2348
2293
|
|
|
2349
2294
|
|
|
2350
2295
|
|
|
2351
|
-
### dist/
|
|
2296
|
+
### dist/dates/helpers/validateDateByDateFormat.js
|
|
2352
2297
|
|
|
2353
2298
|
|
|
2354
|
-
####
|
|
2299
|
+
#### validateDateByDateFormat(date, dateForma)
|
|
2355
2300
|
|
|
2356
|
-
|
|
2301
|
+
Validates the given string as Date by its date format.
|
|
2357
2302
|
|
|
2358
2303
|
|
|
2359
2304
|
|
|
@@ -2362,7 +2307,8 @@ Checks if the given argument is an object type
|
|
|
2362
2307
|
|
|
2363
2308
|
| Name | Type | Description | |
|
|
2364
2309
|
| ---- | ---- | ----------- | -------- |
|
|
2365
|
-
|
|
|
2310
|
+
| date | | a string to validate as date form | |
|
|
2311
|
+
| dateForma | | the format of the date to validate the string | |
|
|
2366
2312
|
|
|
2367
2313
|
|
|
2368
2314
|
|
|
@@ -2370,18 +2316,17 @@ Checks if the given argument is an object type
|
|
|
2370
2316
|
##### Returns
|
|
2371
2317
|
|
|
2372
2318
|
|
|
2373
|
-
-
|
|
2319
|
+
- true: the string is a valida date
|
|
2374
2320
|
|
|
2375
2321
|
|
|
2376
2322
|
|
|
2377
2323
|
|
|
2378
|
-
### dist/
|
|
2324
|
+
### dist/dates/range/getDateRange.js
|
|
2379
2325
|
|
|
2380
2326
|
|
|
2381
|
-
####
|
|
2327
|
+
#### getDateRange(value, dateGroupLabel, withTime)
|
|
2382
2328
|
|
|
2383
|
-
|
|
2384
|
-
and return a mapped object
|
|
2329
|
+
Get date range object from a string date value
|
|
2385
2330
|
|
|
2386
2331
|
|
|
2387
2332
|
|
|
@@ -2390,38 +2335,58 @@ and return a mapped object
|
|
|
2390
2335
|
|
|
2391
2336
|
| Name | Type | Description | |
|
|
2392
2337
|
| ---- | ---- | ----------- | -------- |
|
|
2393
|
-
|
|
|
2394
|
-
|
|
|
2338
|
+
| value | `String` | string date value | |
|
|
2339
|
+
| dateGroupLabel | `String` | could be 'YEAR', 'QUARTER', 'MONTH' or 'DAY'. Deafult is 'DAY' | |
|
|
2340
|
+
| withTime | `Boolean` | determines if the date range will include time. Default is true | |
|
|
2395
2341
|
|
|
2396
2342
|
|
|
2397
2343
|
|
|
2398
2344
|
|
|
2399
|
-
#####
|
|
2345
|
+
##### Examples
|
|
2346
|
+
|
|
2347
|
+
```javascript
|
|
2348
|
+
// 1) Year:
|
|
2349
|
+
getDateRange('2020', 'YEAR');
|
|
2350
|
+
// Will return:
|
|
2351
|
+
{
|
|
2352
|
+
from: '01/01/2020 00:00:00',
|
|
2353
|
+
to: '12/31/2020 23:59:59'
|
|
2354
|
+
}
|
|
2400
2355
|
|
|
2356
|
+
// 2) Quarter:
|
|
2357
|
+
getDateRange('Q3 2020', 'QUARTER');
|
|
2358
|
+
// Will return:
|
|
2359
|
+
{
|
|
2360
|
+
from: '07/01/2020 00:00:00',
|
|
2361
|
+
to: '09/30/2020 23:59:59'
|
|
2362
|
+
}
|
|
2401
2363
|
|
|
2402
|
-
|
|
2364
|
+
// 3) Month:
|
|
2365
|
+
getDateRange('Oct 2020', 'MONTH');
|
|
2366
|
+
// Will return:
|
|
2367
|
+
{
|
|
2368
|
+
from: '10/01/2020 00:00:00',
|
|
2369
|
+
to: '10/31/2020 23:59:59'
|
|
2370
|
+
}
|
|
2371
|
+
```
|
|
2403
2372
|
|
|
2404
2373
|
|
|
2374
|
+
##### Returns
|
|
2405
2375
|
|
|
2406
2376
|
|
|
2407
|
-
|
|
2377
|
+
- `Object` an object with the date range with two string date properties: from and to
|
|
2408
2378
|
|
|
2409
2379
|
|
|
2410
|
-
#### mergeDeep(obj1, obj2, settings)
|
|
2411
2380
|
|
|
2412
|
-
Merges two objects into a new one.
|
|
2413
|
-
The second given argument to the first given argument.
|
|
2414
2381
|
|
|
2382
|
+
### dist/dates/relative/Adapter.js
|
|
2415
2383
|
|
|
2416
2384
|
|
|
2385
|
+
#### value()
|
|
2386
|
+
|
|
2387
|
+
Resolves statement and returns statement value
|
|
2417
2388
|
|
|
2418
|
-
##### Parameters
|
|
2419
2389
|
|
|
2420
|
-
| Name | Type | Description | |
|
|
2421
|
-
| ---- | ---- | ----------- | -------- |
|
|
2422
|
-
| obj1 | | The target object | |
|
|
2423
|
-
| obj2 | | The object to be merged | |
|
|
2424
|
-
| settings | | Object settings for this function | |
|
|
2425
2390
|
|
|
2426
2391
|
|
|
2427
2392
|
|
|
@@ -2429,74 +2394,63 @@ The second given argument to the first given argument.
|
|
|
2429
2394
|
##### Returns
|
|
2430
2395
|
|
|
2431
2396
|
|
|
2432
|
-
-
|
|
2397
|
+
- `AbsoluteRange` `string`
|
|
2433
2398
|
|
|
2434
2399
|
|
|
2435
2400
|
|
|
2436
|
-
####
|
|
2401
|
+
#### valueAsAnchor()
|
|
2437
2402
|
|
|
2438
|
-
|
|
2403
|
+
Resolves statement as an anchor
|
|
2439
2404
|
|
|
2440
2405
|
|
|
2441
2406
|
|
|
2442
2407
|
|
|
2443
|
-
##### Parameters
|
|
2444
2408
|
|
|
2445
|
-
| Name | Type | Description | |
|
|
2446
|
-
| ---- | ---- | ----------- | -------- |
|
|
2447
|
-
| obj1 | | The target object | |
|
|
2448
|
-
| obj2 | | The object to be merged | |
|
|
2449
2409
|
|
|
2410
|
+
##### Returns
|
|
2450
2411
|
|
|
2451
2412
|
|
|
2413
|
+
- `string`
|
|
2452
2414
|
|
|
2453
|
-
##### Returns
|
|
2454
2415
|
|
|
2455
2416
|
|
|
2456
|
-
|
|
2417
|
+
#### _statementToRange() *private method*
|
|
2457
2418
|
|
|
2419
|
+
Convert verbal statement to range value
|
|
2458
2420
|
|
|
2459
2421
|
|
|
2460
|
-
#### getParamsToMergeDeep(settings)
|
|
2461
2422
|
|
|
2462
|
-
Validates and gets the settings with all set parameters.
|
|
2463
2423
|
|
|
2464
2424
|
|
|
2465
2425
|
|
|
2426
|
+
##### Returns
|
|
2466
2427
|
|
|
2467
|
-
##### Parameters
|
|
2468
2428
|
|
|
2469
|
-
|
|
2470
|
-
| ---- | ---- | ----------- | -------- |
|
|
2471
|
-
| settings | | the settings object | |
|
|
2429
|
+
- `AbsoluteRange`
|
|
2472
2430
|
|
|
2473
2431
|
|
|
2474
2432
|
|
|
2433
|
+
#### _resolveAsThis() *private method*
|
|
2475
2434
|
|
|
2476
|
-
|
|
2435
|
+
Apply 'this' cursor logic to statement
|
|
2477
2436
|
|
|
2478
2437
|
|
|
2479
|
-
- a new settings object with all set parameters.
|
|
2480
2438
|
|
|
2481
2439
|
|
|
2482
2440
|
|
|
2483
2441
|
|
|
2484
|
-
|
|
2442
|
+
##### Returns
|
|
2485
2443
|
|
|
2486
2444
|
|
|
2487
|
-
|
|
2445
|
+
- `AbsoluteStatement`
|
|
2488
2446
|
|
|
2489
|
-
Created a new reference of the given argument
|
|
2490
2447
|
|
|
2491
2448
|
|
|
2449
|
+
#### _resolveAsTheLast() *private method*
|
|
2492
2450
|
|
|
2451
|
+
Apply 'the last' cursor logic to statement
|
|
2493
2452
|
|
|
2494
|
-
##### Parameters
|
|
2495
2453
|
|
|
2496
|
-
| Name | Type | Description | |
|
|
2497
|
-
| ---- | ---- | ----------- | -------- |
|
|
2498
|
-
| entity | | The variable to be copied | |
|
|
2499
|
-
| cache | | | |
|
|
2500
2454
|
|
|
2501
2455
|
|
|
2502
2456
|
|
|
@@ -2504,17 +2458,29 @@ Created a new reference of the given argument
|
|
|
2504
2458
|
##### Returns
|
|
2505
2459
|
|
|
2506
2460
|
|
|
2507
|
-
-
|
|
2461
|
+
- `AbsoluteStatement`
|
|
2508
2462
|
|
|
2509
2463
|
|
|
2510
2464
|
|
|
2465
|
+
#### _resolveAsTheNext() *private method*
|
|
2511
2466
|
|
|
2512
|
-
|
|
2467
|
+
Apply 'the next' cursor logic to statement
|
|
2513
2468
|
|
|
2514
2469
|
|
|
2515
|
-
#### omit(obj, props)
|
|
2516
2470
|
|
|
2517
|
-
|
|
2471
|
+
|
|
2472
|
+
|
|
2473
|
+
|
|
2474
|
+
##### Returns
|
|
2475
|
+
|
|
2476
|
+
|
|
2477
|
+
- `AbsoluteStatement`
|
|
2478
|
+
|
|
2479
|
+
|
|
2480
|
+
|
|
2481
|
+
#### replaceNowToken(value, now)
|
|
2482
|
+
|
|
2483
|
+
Replace '@now' token inside a string
|
|
2518
2484
|
|
|
2519
2485
|
|
|
2520
2486
|
|
|
@@ -2523,8 +2489,8 @@ return a new Object excluding attributes in _props_ list
|
|
|
2523
2489
|
|
|
2524
2490
|
| Name | Type | Description | |
|
|
2525
2491
|
| ---- | ---- | ----------- | -------- |
|
|
2526
|
-
|
|
|
2527
|
-
|
|
|
2492
|
+
| value | `string` | | |
|
|
2493
|
+
| now | `Date` | | |
|
|
2528
2494
|
|
|
2529
2495
|
|
|
2530
2496
|
|
|
@@ -2532,17 +2498,13 @@ return a new Object excluding attributes in _props_ list
|
|
|
2532
2498
|
##### Returns
|
|
2533
2499
|
|
|
2534
2500
|
|
|
2535
|
-
- `
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2501
|
+
- `string`
|
|
2539
2502
|
|
|
2540
|
-
### dist/general/object/pick.js
|
|
2541
2503
|
|
|
2542
2504
|
|
|
2543
|
-
####
|
|
2505
|
+
#### convertRelativeToAbsolute(args)
|
|
2544
2506
|
|
|
2545
|
-
|
|
2507
|
+
Returns a range object (date) from a group of statement params
|
|
2546
2508
|
|
|
2547
2509
|
|
|
2548
2510
|
|
|
@@ -2551,26 +2513,45 @@ return a new object just with attributes in _keys_ list
|
|
|
2551
2513
|
|
|
2552
2514
|
| Name | Type | Description | |
|
|
2553
2515
|
| ---- | ---- | ----------- | -------- |
|
|
2554
|
-
|
|
|
2555
|
-
|
|
2516
|
+
| args | `RelativeToAbsoluteStruct` | | |
|
|
2517
|
+
|
|
2556
2518
|
|
|
2557
2519
|
|
|
2558
2520
|
|
|
2521
|
+
##### Examples
|
|
2522
|
+
|
|
2523
|
+
```javascript
|
|
2524
|
+
pivot = '2021-03-03T12:30:40'
|
|
2525
|
+
unit = month
|
|
2526
|
+
steps = 2
|
|
2527
|
+
setTo = END
|
|
2528
|
+
resolverAsCalendar: true
|
|
2529
|
+
=> Returns '2021-05-31T23:59:59'
|
|
2530
|
+
```
|
|
2531
|
+
```javascript
|
|
2532
|
+
pivot = '2021-03-03T12:30:40'
|
|
2533
|
+
unit = month
|
|
2534
|
+
steps = -2
|
|
2535
|
+
setTo = START
|
|
2536
|
+
resolverAsCalendar: false
|
|
2537
|
+
=> Returns '2021-01-03T00:00:00'
|
|
2538
|
+
```
|
|
2539
|
+
|
|
2559
2540
|
|
|
2560
2541
|
##### Returns
|
|
2561
2542
|
|
|
2562
2543
|
|
|
2563
|
-
- `
|
|
2544
|
+
- `string`
|
|
2564
2545
|
|
|
2565
2546
|
|
|
2566
2547
|
|
|
2567
2548
|
|
|
2568
|
-
### dist/
|
|
2549
|
+
### dist/dates/relative/relative.js
|
|
2569
2550
|
|
|
2570
2551
|
|
|
2571
|
-
####
|
|
2552
|
+
#### resolveRelative(statements, clock)
|
|
2572
2553
|
|
|
2573
|
-
|
|
2554
|
+
Resolve a list of relative statements according to operator
|
|
2574
2555
|
|
|
2575
2556
|
|
|
2576
2557
|
|
|
@@ -2579,15 +2560,34 @@ serialize object to url param
|
|
|
2579
2560
|
|
|
2580
2561
|
| Name | Type | Description | |
|
|
2581
2562
|
| ---- | ---- | ----------- | -------- |
|
|
2582
|
-
|
|
|
2563
|
+
| statements | `Array.<RelativeStatement>` `Array.<string>` | - Raw statements/values | |
|
|
2564
|
+
| clock | `Date` | - Clock/time reference for relative date resolution | |
|
|
2565
|
+
|
|
2566
|
+
|
|
2583
2567
|
|
|
2584
2568
|
|
|
2569
|
+
##### Examples
|
|
2570
|
+
|
|
2571
|
+
```javascript
|
|
2572
|
+
Input:
|
|
2573
|
+
{
|
|
2574
|
+
"cursor": "the_next",
|
|
2575
|
+
"unit": "year",
|
|
2576
|
+
"number": 1,
|
|
2577
|
+
"includeCurrent": false,
|
|
2578
|
+
"isCalendarDate": false,
|
|
2579
|
+
"anchor": "03/05/2021"
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2582
|
+
Output:
|
|
2583
|
+
{ gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
|
|
2584
|
+
```
|
|
2585
2585
|
|
|
2586
2586
|
|
|
2587
2587
|
##### Returns
|
|
2588
2588
|
|
|
2589
2589
|
|
|
2590
|
-
- `
|
|
2590
|
+
- `Array.<AbsoluteRange>` `Array.<string>`
|
|
2591
2591
|
|
|
2592
2592
|
|
|
2593
2593
|
|
|
@@ -2703,12 +2703,12 @@ try to find this string as a variable on Windows object
|
|
|
2703
2703
|
|
|
2704
2704
|
|
|
2705
2705
|
|
|
2706
|
-
### dist/
|
|
2706
|
+
### dist/typescript/decorators/Debounce.js
|
|
2707
2707
|
|
|
2708
2708
|
|
|
2709
|
-
####
|
|
2709
|
+
#### Debounce(time)
|
|
2710
2710
|
|
|
2711
|
-
|
|
2711
|
+
(Method Decorator) Debounce Class Method
|
|
2712
2712
|
|
|
2713
2713
|
|
|
2714
2714
|
|
|
@@ -2717,7 +2717,7 @@ Get a dataset list from a collection of Qrvey IDs
|
|
|
2717
2717
|
|
|
2718
2718
|
| Name | Type | Description | |
|
|
2719
2719
|
| ---- | ---- | ----------- | -------- |
|
|
2720
|
-
|
|
|
2720
|
+
| time | | (optional) deafult 500 | |
|
|
2721
2721
|
|
|
2722
2722
|
|
|
2723
2723
|
|
|
@@ -2725,17 +2725,17 @@ Get a dataset list from a collection of Qrvey IDs
|
|
|
2725
2725
|
##### Returns
|
|
2726
2726
|
|
|
2727
2727
|
|
|
2728
|
-
-
|
|
2728
|
+
- `Void`
|
|
2729
2729
|
|
|
2730
2730
|
|
|
2731
2731
|
|
|
2732
2732
|
|
|
2733
|
-
### dist/
|
|
2733
|
+
### dist/typescript/decorators/Throttled.js
|
|
2734
2734
|
|
|
2735
2735
|
|
|
2736
|
-
####
|
|
2736
|
+
#### Throttled(time)
|
|
2737
2737
|
|
|
2738
|
-
|
|
2738
|
+
(Method Decorator) Throttled Class Method
|
|
2739
2739
|
|
|
2740
2740
|
|
|
2741
2741
|
|
|
@@ -2744,8 +2744,7 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
|
|
|
2744
2744
|
|
|
2745
2745
|
| Name | Type | Description | |
|
|
2746
2746
|
| ---- | ---- | ----------- | -------- |
|
|
2747
|
-
|
|
|
2748
|
-
| params | | Object for getting precise data | |
|
|
2747
|
+
| time | | (optional) deafult 500 | |
|
|
2749
2748
|
|
|
2750
2749
|
|
|
2751
2750
|
|
|
@@ -2758,12 +2757,12 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
|
|
|
2758
2757
|
|
|
2759
2758
|
|
|
2760
2759
|
|
|
2761
|
-
### dist/services/api/
|
|
2760
|
+
### dist/services/api/getAllDatasets.api.js
|
|
2762
2761
|
|
|
2763
2762
|
|
|
2764
|
-
####
|
|
2763
|
+
#### getAllDatasets(qrveyids)
|
|
2765
2764
|
|
|
2766
|
-
Get a dataset
|
|
2765
|
+
Get a dataset list from a collection of Qrvey IDs
|
|
2767
2766
|
|
|
2768
2767
|
|
|
2769
2768
|
|
|
@@ -2772,7 +2771,7 @@ Get a dataset by Qrvey ID
|
|
|
2772
2771
|
|
|
2773
2772
|
| Name | Type | Description | |
|
|
2774
2773
|
| ---- | ---- | ----------- | -------- |
|
|
2775
|
-
|
|
|
2774
|
+
| qrveyids | | Collection of Qrvey IDs | |
|
|
2776
2775
|
|
|
2777
2776
|
|
|
2778
2777
|
|
|
@@ -2785,12 +2784,12 @@ Get a dataset by Qrvey ID
|
|
|
2785
2784
|
|
|
2786
2785
|
|
|
2787
2786
|
|
|
2788
|
-
### dist/
|
|
2787
|
+
### dist/services/api/getAllQrveys.api.js
|
|
2789
2788
|
|
|
2790
2789
|
|
|
2791
|
-
####
|
|
2790
|
+
#### getAllQrveys(config, params)
|
|
2792
2791
|
|
|
2793
|
-
|
|
2792
|
+
POST Request for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
|
|
2794
2793
|
|
|
2795
2794
|
|
|
2796
2795
|
|
|
@@ -2799,7 +2798,8 @@ Get a dataset by Qrvey ID
|
|
|
2799
2798
|
|
|
2800
2799
|
| Name | Type | Description | |
|
|
2801
2800
|
| ---- | ---- | ----------- | -------- |
|
|
2802
|
-
|
|
|
2801
|
+
| config | | Configuration | |
|
|
2802
|
+
| params | | Object for getting precise data | |
|
|
2803
2803
|
|
|
2804
2804
|
|
|
2805
2805
|
|
|
@@ -2812,12 +2812,12 @@ Get a dataset by Qrvey ID
|
|
|
2812
2812
|
|
|
2813
2813
|
|
|
2814
2814
|
|
|
2815
|
-
### dist/
|
|
2815
|
+
### dist/services/api/getDatasetColumns.api.js
|
|
2816
2816
|
|
|
2817
2817
|
|
|
2818
|
-
####
|
|
2818
|
+
#### getDatasetColumns(qrveyid)
|
|
2819
2819
|
|
|
2820
|
-
|
|
2820
|
+
Get a dataset by Qrvey ID
|
|
2821
2821
|
|
|
2822
2822
|
|
|
2823
2823
|
|
|
@@ -2826,7 +2826,7 @@ Get a dataset by Qrvey ID
|
|
|
2826
2826
|
|
|
2827
2827
|
| Name | Type | Description | |
|
|
2828
2828
|
| ---- | ---- | ----------- | -------- |
|
|
2829
|
-
|
|
|
2829
|
+
| qrveyid | | The Qrvey ID | |
|
|
2830
2830
|
|
|
2831
2831
|
|
|
2832
2832
|
|
|
@@ -2834,7 +2834,7 @@ Get a dataset by Qrvey ID
|
|
|
2834
2834
|
##### Returns
|
|
2835
2835
|
|
|
2836
2836
|
|
|
2837
|
-
-
|
|
2837
|
+
- a promise
|
|
2838
2838
|
|
|
2839
2839
|
|
|
2840
2840
|
|