@qrvey/utils 1.9.0 → 1.10.0-0
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/dist/charts/interfaces/IAggregateAbbreviation.d.ts +1 -1
- package/dist/charts/interfaces/IAggregateLabel.d.ts +1 -1
- package/dist/charts/interfaces/IAggregateType.d.ts +1 -1
- package/dist/charts/interfaces/IRequestAdapterMetric.d.ts +12 -12
- package/dist/cjs/charts/interfaces/IAggregateAbbreviation.d.ts +1 -1
- package/dist/cjs/charts/interfaces/IAggregateLabel.d.ts +1 -1
- package/dist/cjs/charts/interfaces/IAggregateType.d.ts +1 -1
- package/dist/cjs/charts/interfaces/IRequestAdapterMetric.d.ts +12 -12
- package/dist/cjs/column_format/interfaces/IChartGroupType.d.ts +1 -1
- package/dist/cjs/column_format/interfaces/IChartShelfType.d.ts +1 -1
- package/dist/cjs/column_format/interfaces/IChartTableType.d.ts +1 -1
- package/dist/cjs/column_format/interfaces/IColumnFormatReturnType.d.ts +1 -1
- package/dist/cjs/column_format/interfaces/IFormatStringType.d.ts +1 -1
- package/dist/cjs/columns/interfaces/IColumnImageUploadOption.d.ts +1 -1
- package/dist/cjs/columns/interfaces/IColumnPropertyType.d.ts +1 -1
- package/dist/cjs/columns/interfaces/IColumnType.d.ts +1 -1
- package/dist/cjs/columns/interfaces/IComplexColumnPropertyType.d.ts +1 -1
- package/dist/cjs/columns/interfaces/IComplexColumnType.d.ts +1 -1
- package/dist/cjs/columns/interfaces/ICompoundColumnPropertyType.d.ts +1 -1
- package/dist/cjs/columns/interfaces/ICompoundColumnType.d.ts +1 -1
- package/dist/cjs/columns/interfaces/IDateColumnPropertyType.d.ts +1 -1
- package/dist/cjs/columns/interfaces/INumericalColumnType.d.ts +1 -1
- package/dist/cjs/dates/interfaces/IDateFormat.d.ts +1 -1
- package/dist/cjs/dates/interfaces/IDateGroupingProperty.d.ts +1 -1
- package/dist/cjs/dates/relative/helpers/parseDate.d.ts +2 -2
- package/dist/cjs/dates/relative/interfaces/IRelativeUnit.d.ts +1 -1
- package/dist/cjs/dates/relative/interfaces/RelativeCursor.d.ts +1 -1
- package/dist/cjs/dates/relative/interfaces/RelativeInput.d.ts +1 -1
- package/dist/cjs/dates/relative/interfaces/ui/IRelativeSectionMode.d.ts +1 -1
- package/dist/cjs/filters/helpers/common/excludeFiltersByParams.js +5 -5
- package/dist/cjs/filters/interfaces/IFDateProperty.d.ts +1 -1
- package/dist/cjs/filters/interfaces/IFDateSection.d.ts +1 -1
- package/dist/cjs/filters/interfaces/IFOperator.d.ts +1 -1
- package/dist/cjs/filters/interfaces/IFProperty.d.ts +1 -1
- package/dist/cjs/filters/interfaces/IFScope.d.ts +1 -1
- package/dist/cjs/filters/interfaces/IFSection.d.ts +1 -1
- package/dist/cjs/filters/interfaces/IFStructureType.d.ts +1 -1
- package/dist/cjs/filters/interfaces/IFValidator.d.ts +1 -1
- package/dist/cjs/filters/interfaces/IFValue.d.ts +1 -1
- package/dist/cjs/filters/interfaces/OLD_IFilterExpression.d.ts +2 -2
- package/dist/cjs/filters/interfaces/backend/IFBExpressionRelativeDate.d.ts +1 -1
- package/dist/cjs/filters/interfaces/backend/IFBExpressionValue.d.ts +1 -1
- package/dist/cjs/filters/interfaces/backend/IFBackendExpressionValue.d.ts +1 -1
- package/dist/cjs/filters/interfaces/backend/IFBackendValidator.d.ts +1 -1
- package/dist/cjs/filters/interfaces/common/IFSColumn.d.ts +1 -1
- package/dist/cjs/filters/interfaces/common/IFSGetDataValues.d.ts +1 -1
- package/dist/cjs/filters/interfaces/common/IFSValueRelativeDate.d.ts +1 -1
- package/dist/cjs/filters/interfaces/common/IFilterConfig.d.ts +1 -1
- package/dist/cjs/filters/interfaces/panel/IFPAction.d.ts +1 -1
- package/dist/cjs/filters/interfaces/settings/IFSettingsPanelView.d.ts +1 -1
- package/dist/cjs/filters/interfaces/settings/IFSettingsScopes.d.ts +1 -1
- package/dist/cjs/format/duration/durationFormatter.js +2 -1
- package/dist/cjs/formulas/interfaces/IFormulaType.d.ts +1 -1
- package/dist/cjs/general/array/addPropertyToArrayOfObjects.d.ts +1 -1
- package/dist/cjs/general/mix/importScripts.d.ts +2 -2
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.d.ts +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_OPTIONS.d.ts +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.d.ts +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_OPERATORS.d.ts +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.d.ts +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_THRESHOLD.d.ts +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.d.ts +1 -1
- package/dist/cjs/interfaces/Chart.Interface.d.ts +1 -1
- package/dist/cjs/interfaces/IChartBuilder.Interface.d.ts +1 -1
- package/dist/cjs/interfaces/Qrvey.Interface.d.ts +2 -2
- package/dist/cjs/qrvey/interfaces/IAppStatus.d.ts +1 -1
- package/dist/cjs/qrvey/interfaces/IAppType.d.ts +1 -1
- package/dist/cjs/qrvey/interfaces/ICalculation.d.ts +1 -1
- package/dist/cjs/qrvey/interfaces/ICalculationType.d.ts +1 -1
- package/dist/cjs/typescript/DeepPartial.d.ts +1 -1
- package/dist/cjs/typescript/DeepRequired.d.ts +1 -1
- package/dist/cjs/typescript/ValueOf.d.ts +1 -1
- package/dist/column_format/interfaces/IChartGroupType.d.ts +1 -1
- package/dist/column_format/interfaces/IChartShelfType.d.ts +1 -1
- package/dist/column_format/interfaces/IChartTableType.d.ts +1 -1
- package/dist/column_format/interfaces/IColumnFormatReturnType.d.ts +1 -1
- package/dist/column_format/interfaces/IFormatStringType.d.ts +1 -1
- package/dist/columns/interfaces/IColumnImageUploadOption.d.ts +1 -1
- package/dist/columns/interfaces/IColumnPropertyType.d.ts +1 -1
- package/dist/columns/interfaces/IColumnType.d.ts +1 -1
- package/dist/columns/interfaces/IComplexColumnPropertyType.d.ts +1 -1
- package/dist/columns/interfaces/IComplexColumnType.d.ts +1 -1
- package/dist/columns/interfaces/ICompoundColumnPropertyType.d.ts +1 -1
- package/dist/columns/interfaces/ICompoundColumnType.d.ts +1 -1
- package/dist/columns/interfaces/IDateColumnPropertyType.d.ts +1 -1
- package/dist/columns/interfaces/INumericalColumnType.d.ts +1 -1
- package/dist/dates/interfaces/IDateFormat.d.ts +1 -1
- package/dist/dates/interfaces/IDateGroupingProperty.d.ts +1 -1
- package/dist/dates/relative/helpers/parseDate.d.ts +2 -2
- package/dist/dates/relative/interfaces/IRelativeUnit.d.ts +1 -1
- package/dist/dates/relative/interfaces/RelativeCursor.d.ts +1 -1
- package/dist/dates/relative/interfaces/RelativeInput.d.ts +1 -1
- package/dist/dates/relative/interfaces/ui/IRelativeSectionMode.d.ts +1 -1
- package/dist/filters/helpers/common/excludeFiltersByParams.js +5 -5
- package/dist/filters/interfaces/IFDateProperty.d.ts +1 -1
- package/dist/filters/interfaces/IFDateSection.d.ts +1 -1
- package/dist/filters/interfaces/IFOperator.d.ts +1 -1
- package/dist/filters/interfaces/IFProperty.d.ts +1 -1
- package/dist/filters/interfaces/IFScope.d.ts +1 -1
- package/dist/filters/interfaces/IFSection.d.ts +1 -1
- package/dist/filters/interfaces/IFStructureType.d.ts +1 -1
- package/dist/filters/interfaces/IFValidator.d.ts +1 -1
- package/dist/filters/interfaces/IFValue.d.ts +1 -1
- package/dist/filters/interfaces/OLD_IFilterExpression.d.ts +2 -2
- package/dist/filters/interfaces/backend/IFBExpressionRelativeDate.d.ts +1 -1
- package/dist/filters/interfaces/backend/IFBExpressionValue.d.ts +1 -1
- package/dist/filters/interfaces/backend/IFBackendExpressionValue.d.ts +1 -1
- package/dist/filters/interfaces/backend/IFBackendValidator.d.ts +1 -1
- package/dist/filters/interfaces/common/IFSColumn.d.ts +1 -1
- package/dist/filters/interfaces/common/IFSGetDataValues.d.ts +1 -1
- package/dist/filters/interfaces/common/IFSValueRelativeDate.d.ts +1 -1
- package/dist/filters/interfaces/common/IFilterConfig.d.ts +1 -1
- package/dist/filters/interfaces/panel/IFPAction.d.ts +1 -1
- package/dist/filters/interfaces/settings/IFSettingsPanelView.d.ts +1 -1
- package/dist/filters/interfaces/settings/IFSettingsScopes.d.ts +1 -1
- package/dist/format/duration/durationFormatter.js +2 -1
- package/dist/formulas/interfaces/IFormulaType.d.ts +1 -1
- package/dist/general/array/addPropertyToArrayOfObjects.d.ts +1 -1
- package/dist/general/mix/importScripts.d.ts +2 -2
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.d.ts +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_OPTIONS.d.ts +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.d.ts +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_OPERATORS.d.ts +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.d.ts +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_THRESHOLD.d.ts +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.d.ts +1 -1
- package/dist/interfaces/Chart.Interface.d.ts +1 -1
- package/dist/interfaces/IChartBuilder.Interface.d.ts +1 -1
- package/dist/interfaces/Qrvey.Interface.d.ts +2 -2
- package/dist/qrvey/interfaces/IAppStatus.d.ts +1 -1
- package/dist/qrvey/interfaces/IAppType.d.ts +1 -1
- package/dist/qrvey/interfaces/ICalculation.d.ts +1 -1
- package/dist/qrvey/interfaces/ICalculationType.d.ts +1 -1
- package/dist/typescript/DeepPartial.d.ts +1 -1
- package/dist/typescript/DeepRequired.d.ts +1 -1
- package/dist/typescript/ValueOf.d.ts +1 -1
- package/package.json +20 -19
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AGGREGATE_ABBREVIATION } from "../constants/AGGREGATE_ABBREVIATION";
|
|
2
|
-
export
|
|
2
|
+
export type IAggregateAbbreviation = AGGREGATE_ABBREVIATION;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AGGREGATE_LABEL } from "../constants/AGGREGATE_LABEL";
|
|
2
|
-
export
|
|
2
|
+
export type IAggregateLabel = AGGREGATE_LABEL;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AGGREGATE } from "../constants/AGGREGATE";
|
|
2
|
-
export
|
|
2
|
+
export type IAggregateType = AGGREGATE;
|
|
@@ -17,7 +17,7 @@ export interface MetricRequestPayload {
|
|
|
17
17
|
* example, if you want to aggregate the number of times a question was answered, you would use the
|
|
18
18
|
* property "answered".
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export type MetricValue = {
|
|
21
21
|
aggregate: AGGREGATE_LABEL;
|
|
22
22
|
questionid: string;
|
|
23
23
|
property?: string | null;
|
|
@@ -36,7 +36,7 @@ export declare type MetricValue = {
|
|
|
36
36
|
* @property {boolean} isCalendarDate - If true, the date is a calendar date, otherwise it's a relative
|
|
37
37
|
* date.
|
|
38
38
|
*/
|
|
39
|
-
export
|
|
39
|
+
export type RelativeDateConfig = {
|
|
40
40
|
questionid: string;
|
|
41
41
|
cursor: RelativeCursor;
|
|
42
42
|
number?: number;
|
|
@@ -50,7 +50,7 @@ export declare type RelativeDateConfig = {
|
|
|
50
50
|
* `CustomRange`.
|
|
51
51
|
* @property {CustomRange} customRange - The custom range to use for the metric.
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
53
|
+
export type MetricCustomRange = {
|
|
54
54
|
customRange: CustomRange;
|
|
55
55
|
type?: IColumnType;
|
|
56
56
|
};
|
|
@@ -60,7 +60,7 @@ export declare type MetricCustomRange = {
|
|
|
60
60
|
* @property {string} endDate - The end date of the custom range.
|
|
61
61
|
* @property {TP_CUSTOM_RANGE} label - The label for the custom range.
|
|
62
62
|
*/
|
|
63
|
-
export
|
|
63
|
+
export type CustomRangeConfig = {
|
|
64
64
|
startingDate?: string;
|
|
65
65
|
endDate?: string;
|
|
66
66
|
label?: TP_CUSTOM_RANGE;
|
|
@@ -70,7 +70,7 @@ export declare type CustomRangeConfig = {
|
|
|
70
70
|
* @property {string} gte - Greater than or equal to
|
|
71
71
|
* @property {string} lte - Less than or equal to
|
|
72
72
|
*/
|
|
73
|
-
export
|
|
73
|
+
export type CustomRange = {
|
|
74
74
|
gte?: string;
|
|
75
75
|
lte?: string;
|
|
76
76
|
};
|
|
@@ -84,19 +84,19 @@ export declare type CustomRange = {
|
|
|
84
84
|
* @property {number} max - The maximum value of the metric
|
|
85
85
|
* @property {number} comparison - The value of the metric for the previous period.
|
|
86
86
|
*/
|
|
87
|
-
export
|
|
87
|
+
export type MetricRequestResponse = {
|
|
88
88
|
value: number;
|
|
89
89
|
min: number;
|
|
90
90
|
max: number;
|
|
91
91
|
comparison: number;
|
|
92
92
|
};
|
|
93
|
-
export
|
|
94
|
-
export
|
|
95
|
-
export
|
|
93
|
+
export type MetricPeriod = RelativeDateConfig;
|
|
94
|
+
export type MetricComparison = RelativeDateConfig;
|
|
95
|
+
export type MetricConfig = {
|
|
96
96
|
logic: IFBLogic[];
|
|
97
97
|
data: MetricConfigData;
|
|
98
98
|
};
|
|
99
|
-
export
|
|
99
|
+
export type MetricConfigData = {
|
|
100
100
|
dateColumn: IBColumn;
|
|
101
101
|
timePeriod: MetricTimeInfo;
|
|
102
102
|
timePeriodCustomRange: MetricTimeCustomRange;
|
|
@@ -114,12 +114,12 @@ export declare type MetricConfigData = {
|
|
|
114
114
|
label: AGGREGATE_LABEL;
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
|
-
export
|
|
117
|
+
export type MetricTimeCustomRange = {
|
|
118
118
|
key: string;
|
|
119
119
|
label: TP_CUSTOM_RANGE;
|
|
120
120
|
text: string;
|
|
121
121
|
};
|
|
122
|
-
export
|
|
122
|
+
export type MetricTimeInfo = {
|
|
123
123
|
key: string;
|
|
124
124
|
label: TimePeriod;
|
|
125
125
|
text: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AGGREGATE_ABBREVIATION } from "../constants/AGGREGATE_ABBREVIATION";
|
|
2
|
-
export
|
|
2
|
+
export type IAggregateAbbreviation = AGGREGATE_ABBREVIATION;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AGGREGATE_LABEL } from "../constants/AGGREGATE_LABEL";
|
|
2
|
-
export
|
|
2
|
+
export type IAggregateLabel = AGGREGATE_LABEL;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AGGREGATE } from "../constants/AGGREGATE";
|
|
2
|
-
export
|
|
2
|
+
export type IAggregateType = AGGREGATE;
|
|
@@ -17,7 +17,7 @@ export interface MetricRequestPayload {
|
|
|
17
17
|
* example, if you want to aggregate the number of times a question was answered, you would use the
|
|
18
18
|
* property "answered".
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export type MetricValue = {
|
|
21
21
|
aggregate: AGGREGATE_LABEL;
|
|
22
22
|
questionid: string;
|
|
23
23
|
property?: string | null;
|
|
@@ -36,7 +36,7 @@ export declare type MetricValue = {
|
|
|
36
36
|
* @property {boolean} isCalendarDate - If true, the date is a calendar date, otherwise it's a relative
|
|
37
37
|
* date.
|
|
38
38
|
*/
|
|
39
|
-
export
|
|
39
|
+
export type RelativeDateConfig = {
|
|
40
40
|
questionid: string;
|
|
41
41
|
cursor: RelativeCursor;
|
|
42
42
|
number?: number;
|
|
@@ -50,7 +50,7 @@ export declare type RelativeDateConfig = {
|
|
|
50
50
|
* `CustomRange`.
|
|
51
51
|
* @property {CustomRange} customRange - The custom range to use for the metric.
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
53
|
+
export type MetricCustomRange = {
|
|
54
54
|
customRange: CustomRange;
|
|
55
55
|
type?: IColumnType;
|
|
56
56
|
};
|
|
@@ -60,7 +60,7 @@ export declare type MetricCustomRange = {
|
|
|
60
60
|
* @property {string} endDate - The end date of the custom range.
|
|
61
61
|
* @property {TP_CUSTOM_RANGE} label - The label for the custom range.
|
|
62
62
|
*/
|
|
63
|
-
export
|
|
63
|
+
export type CustomRangeConfig = {
|
|
64
64
|
startingDate?: string;
|
|
65
65
|
endDate?: string;
|
|
66
66
|
label?: TP_CUSTOM_RANGE;
|
|
@@ -70,7 +70,7 @@ export declare type CustomRangeConfig = {
|
|
|
70
70
|
* @property {string} gte - Greater than or equal to
|
|
71
71
|
* @property {string} lte - Less than or equal to
|
|
72
72
|
*/
|
|
73
|
-
export
|
|
73
|
+
export type CustomRange = {
|
|
74
74
|
gte?: string;
|
|
75
75
|
lte?: string;
|
|
76
76
|
};
|
|
@@ -84,19 +84,19 @@ export declare type CustomRange = {
|
|
|
84
84
|
* @property {number} max - The maximum value of the metric
|
|
85
85
|
* @property {number} comparison - The value of the metric for the previous period.
|
|
86
86
|
*/
|
|
87
|
-
export
|
|
87
|
+
export type MetricRequestResponse = {
|
|
88
88
|
value: number;
|
|
89
89
|
min: number;
|
|
90
90
|
max: number;
|
|
91
91
|
comparison: number;
|
|
92
92
|
};
|
|
93
|
-
export
|
|
94
|
-
export
|
|
95
|
-
export
|
|
93
|
+
export type MetricPeriod = RelativeDateConfig;
|
|
94
|
+
export type MetricComparison = RelativeDateConfig;
|
|
95
|
+
export type MetricConfig = {
|
|
96
96
|
logic: IFBLogic[];
|
|
97
97
|
data: MetricConfigData;
|
|
98
98
|
};
|
|
99
|
-
export
|
|
99
|
+
export type MetricConfigData = {
|
|
100
100
|
dateColumn: IBColumn;
|
|
101
101
|
timePeriod: MetricTimeInfo;
|
|
102
102
|
timePeriodCustomRange: MetricTimeCustomRange;
|
|
@@ -114,12 +114,12 @@ export declare type MetricConfigData = {
|
|
|
114
114
|
label: AGGREGATE_LABEL;
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
|
-
export
|
|
117
|
+
export type MetricTimeCustomRange = {
|
|
118
118
|
key: string;
|
|
119
119
|
label: TP_CUSTOM_RANGE;
|
|
120
120
|
text: string;
|
|
121
121
|
};
|
|
122
|
-
export
|
|
122
|
+
export type MetricTimeInfo = {
|
|
123
123
|
key: string;
|
|
124
124
|
label: TimePeriod;
|
|
125
125
|
text: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CHART_GROUPS } from "../constants/CHART_GROUP";
|
|
2
|
-
export
|
|
2
|
+
export type IChartGroupType = CHART_GROUPS;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SHELF_TYPE } from "../constants/SHELF_TYPE";
|
|
2
|
-
export
|
|
2
|
+
export type IChartShelfType = SHELF_TYPE;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TABLE_TYPE } from "../constants/TABLE_TYPE";
|
|
2
|
-
export
|
|
2
|
+
export type IChartTableType = TABLE_TYPE;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { STRING_FORMAT } from "../constants/STRING_FORMAT";
|
|
2
|
-
export
|
|
2
|
+
export type IFormatStringType = STRING_FORMAT;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { COLUMN_IMAGE_UPLOAD_OPTION } from "../constants/COLUMN_IMAGE_UPLOAD_OPTION";
|
|
2
|
-
export
|
|
2
|
+
export type IColumnImageUploadOption = COLUMN_IMAGE_UPLOAD_OPTION;
|
|
@@ -2,4 +2,4 @@ import { ICompoundColumnPropertyType } from "./ICompoundColumnPropertyType";
|
|
|
2
2
|
import { IDateColumnPropertyType } from "./IDateColumnPropertyType";
|
|
3
3
|
import { COLUMN_PROPERTY } from "../constants/COLUMN_PROPERTY";
|
|
4
4
|
import { IComplexColumnPropertyType } from "./IComplexColumnPropertyType";
|
|
5
|
-
export
|
|
5
|
+
export type IColumnPropertyType = COLUMN_PROPERTY | IComplexColumnPropertyType | ICompoundColumnPropertyType | IDateColumnPropertyType;
|
|
@@ -2,4 +2,4 @@ import { IComplexColumnType } from "./IComplexColumnType";
|
|
|
2
2
|
import { ICompoundColumnType } from "./ICompoundColumnType";
|
|
3
3
|
import { COLUMN } from "../constants/COLUMN";
|
|
4
4
|
import { INumericalColumnType } from "./INumericalColumnType";
|
|
5
|
-
export
|
|
5
|
+
export type IColumnType = COLUMN | ICompoundColumnType | IComplexColumnType | INumericalColumnType;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { COMPLEX_COLUMN_PROPERTY } from "../constants/COMPLEX_COLUMN_PROPERTY";
|
|
2
|
-
export
|
|
2
|
+
export type IComplexColumnPropertyType = COMPLEX_COLUMN_PROPERTY;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { COMPLEX_COLUMN } from "../constants/COMPLEX_COLUMN";
|
|
2
|
-
export
|
|
2
|
+
export type IComplexColumnType = COMPLEX_COLUMN;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { COMPOUND_COLUMN_PROPERTY } from "../constants/COMPOUND_COLUMN_PROPERTY";
|
|
2
|
-
export
|
|
2
|
+
export type ICompoundColumnPropertyType = COMPOUND_COLUMN_PROPERTY;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { COMPOUND_COLUMN } from "../constants/COMPOUND_COLUMN";
|
|
2
|
-
export
|
|
2
|
+
export type ICompoundColumnType = COMPOUND_COLUMN;
|
|
@@ -2,4 +2,4 @@ import { DATE_GROUPING_TIME_PROPERTY } from "../../dates/constants/DATE_GROUPING
|
|
|
2
2
|
import { DATE_GROUPING_PROPERTY } from "../../dates/constants/DATE_GROUPING_PROPERTY";
|
|
3
3
|
import { DATE_DISTINCT_PROPERTY } from "../../dates/constants/DATE_DISTINCT_PROPERTY";
|
|
4
4
|
import { DATE_DISTINCT_TIME_PROPERTY } from "../../dates/constants/DATE_DISTINCT_TIME_PROPERTY";
|
|
5
|
-
export
|
|
5
|
+
export type IDateColumnPropertyType = DATE_GROUPING_PROPERTY | DATE_GROUPING_TIME_PROPERTY | DATE_DISTINCT_PROPERTY | DATE_DISTINCT_TIME_PROPERTY;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { NUMERICAL_COLUMN } from "../constants/NUMERICAL_COLUMN";
|
|
2
|
-
export
|
|
2
|
+
export type INumericalColumnType = NUMERICAL_COLUMN;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DATE_FORMAT } from "../constants/DATE_FORMAT";
|
|
2
|
-
export
|
|
2
|
+
export type IDateFormat = (typeof DATE_FORMAT)[keyof typeof DATE_FORMAT];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DATE_GROUPING_PROPERTY } from "../constants/DATE_GROUPING_PROPERTY";
|
|
2
2
|
import { DATE_GROUPING_TIME_PROPERTY } from "../constants/DATE_GROUPING_TIME_PROPERTY";
|
|
3
|
-
export
|
|
3
|
+
export type IDateGroupingProperty = DATE_GROUPING_PROPERTY | DATE_GROUPING_TIME_PROPERTY;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dayjs } from "./dayjs-module";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type ParserDate = string | Dayjs | Date;
|
|
3
|
+
type ParserDateReturnType = Dayjs | null;
|
|
4
4
|
/**
|
|
5
5
|
* Parses a string date and returns a dayjs date
|
|
6
6
|
* @param {string|Dayjs|Date} date
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DATE_GROUPING_TIME_PROPERTY } from "../../constants/DATE_GROUPING_TIME_PROPERTY";
|
|
2
2
|
import { DATE_GROUPING_PROPERTY } from "../../constants/DATE_GROUPING_PROPERTY";
|
|
3
|
-
export
|
|
3
|
+
export type IRelativeUnit = keyof typeof DATE_GROUPING_PROPERTY | keyof typeof DATE_GROUPING_TIME_PROPERTY;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { RELATIVE_CURSOR } from "../constants/RELATIVE_CURSOR";
|
|
2
|
-
export
|
|
2
|
+
export type RelativeCursor = RELATIVE_CURSOR;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { RelativeStatement } from "./RelativeStatement";
|
|
2
|
-
export
|
|
2
|
+
export type RelativeInput = RelativeStatement | string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { RELATIVE_MODE } from "../../constants/ui/RELATIVE_MODE";
|
|
2
|
-
export
|
|
2
|
+
export type IRelativeSectionMode = RELATIVE_MODE;
|
|
@@ -39,13 +39,13 @@ function excludeFiltersByParams(filterData, params) {
|
|
|
39
39
|
return value
|
|
40
40
|
.map((rValue) => {
|
|
41
41
|
if (params.enableds == null ||
|
|
42
|
-
params.enableds === rValue.enabled)
|
|
42
|
+
params.enableds.values === rValue.enabled)
|
|
43
43
|
return rValue;
|
|
44
44
|
})
|
|
45
45
|
.filter(Boolean);
|
|
46
46
|
}
|
|
47
47
|
if (params.enableds == null ||
|
|
48
|
-
params.enableds ===
|
|
48
|
+
params.enableds.values ===
|
|
49
49
|
value.enabled)
|
|
50
50
|
return value;
|
|
51
51
|
})
|
|
@@ -67,19 +67,19 @@ function excludeFiltersByParams(filterData, params) {
|
|
|
67
67
|
}
|
|
68
68
|
exports.excludeFiltersByParams = excludeFiltersByParams;
|
|
69
69
|
function resolveScopeConditions(scope, params) {
|
|
70
|
-
return ((params.enableds == null || params.enableds !== scope.enabled) &&
|
|
70
|
+
return ((params.enableds == null || params.enableds.scopes !== scope.enabled) &&
|
|
71
71
|
((0, isEmpty_1.isEmpty)(params.scope) || scope.scope !== params.scope) &&
|
|
72
72
|
((0, isEmpty_1.isEmpty)(params.scopeid) || scope.scopeid !== params.scopeid) &&
|
|
73
73
|
scope.datasets.length > 0);
|
|
74
74
|
}
|
|
75
75
|
function resolveDatasetConditions(dataset, params) {
|
|
76
|
-
return ((params.enableds == null || params.enableds !== dataset.enabled) &&
|
|
76
|
+
return ((params.enableds == null || params.enableds.datasets !== dataset.enabled) &&
|
|
77
77
|
((0, isEmpty_1.isEmpty)(params.qrveyid) || params.qrveyid !== dataset.qrveyid) &&
|
|
78
78
|
dataset.filters.length > 0);
|
|
79
79
|
}
|
|
80
80
|
function resolveFilterConditions(filter, params) {
|
|
81
81
|
var _a, _b, _c, _d;
|
|
82
|
-
return ((params.enableds == null || params.enableds !== filter.enabled) &&
|
|
82
|
+
return ((params.enableds == null || params.enableds.filters !== filter.enabled) &&
|
|
83
83
|
((0, isEmpty_1.isEmpty)(params.dateSection) ||
|
|
84
84
|
params.dateSection !== filter.dateSection) &&
|
|
85
85
|
((0, isEmpty_1.isEmpty)(params.panelid) || params.panelid !== filter.extras.panelid) &&
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IDateGroupingProperty } from "../../dates/interfaces/IDateGroupingProperty";
|
|
2
|
-
export
|
|
2
|
+
export type IFDateProperty = IDateGroupingProperty;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FILTER_DATE_SECTION } from "../constants/common/FILTER_DATE_SECTION";
|
|
2
|
-
export
|
|
2
|
+
export type IFDateSection = FILTER_DATE_SECTION;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FILTER_OPERATOR } from "../constants/common/FILTER_OPERATOR";
|
|
2
|
-
export
|
|
2
|
+
export type IFOperator = FILTER_OPERATOR;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IColumnPropertyType } from "../../columns/interfaces/IColumnPropertyType";
|
|
2
|
-
export
|
|
2
|
+
export type IFProperty = IColumnPropertyType;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FILTER_SCOPE } from "../constants/common/FILTER_SCOPE";
|
|
2
|
-
export
|
|
2
|
+
export type IFScope = FILTER_SCOPE;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FILTER_SECTION } from "../constants/common/FILTER_SECTION";
|
|
2
|
-
export
|
|
2
|
+
export type IFSection = FILTER_SECTION;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FILTER_STRUCTURE_TYPE } from "../constants/common/FILTER_STRUCTURE_TYPE";
|
|
2
|
-
export
|
|
2
|
+
export type IFStructureType = FILTER_STRUCTURE_TYPE;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FILTER_VALIDATOR } from "../constants/common/FILTER_VALIDATOR";
|
|
2
|
-
export
|
|
2
|
+
export type IFValidator = FILTER_VALIDATOR;
|
|
@@ -2,4 +2,4 @@ import { IFSValue } from "./common/IFSValue";
|
|
|
2
2
|
import { IFSValueRange } from "./common/IFSValueRange";
|
|
3
3
|
import { IFSValueRanking } from "./common/IFSValueRanking";
|
|
4
4
|
import { IFSValueRelativeDate } from "./common/IFSValueRelativeDate";
|
|
5
|
-
export
|
|
5
|
+
export type IFValue = IFSValue | IFSValueRange | IFSValueRelativeDate | IFSValueRanking[];
|
|
@@ -19,14 +19,14 @@ export interface OLD_IFilterExpression {
|
|
|
19
19
|
value?: IFBackendExpressionValue[];
|
|
20
20
|
uiExtras?: OLD_IFilterDetail;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type IFilterExpressionValue = IFilterNumericExpressionValue | IFilterStringExpressionValue | IFilterRankingExpressionValue | IFBResultRelativeDate[];
|
|
23
23
|
interface IFilterNumericExpressionValue {
|
|
24
24
|
gt?: string;
|
|
25
25
|
gte?: string;
|
|
26
26
|
lt?: string;
|
|
27
27
|
lte?: string;
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
type IFilterStringExpressionValue = string;
|
|
30
30
|
interface IFilterRankingExpressionValue {
|
|
31
31
|
position: number;
|
|
32
32
|
value: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IFSValueRelativeDate } from "../common/IFSValueRelativeDate";
|
|
2
|
-
export
|
|
2
|
+
export type IFBExpressionRelativeDate = IFSValueRelativeDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type IFBExpressionValue = string;
|
|
@@ -2,4 +2,4 @@ import { IFBExpressionRelativeDate } from "./IFBExpressionRelativeDate";
|
|
|
2
2
|
import { IFBExpressionValue } from "./IFBExpressionValue";
|
|
3
3
|
import { IFBExpressionValueRange } from "./IFBExpressionValueRange";
|
|
4
4
|
import { IFBExpressionValueRanking } from "./IFBExpressionValueRanking";
|
|
5
|
-
export
|
|
5
|
+
export type IFBackendExpressionValue = IFBExpressionValue | IFBExpressionValueRange | IFBExpressionRelativeDate | IFBExpressionValueRanking;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FILTER_BACKEND_VALIDATOR } from "../../constants/backend/FILTER_BACKEND_VALIDATOR";
|
|
2
|
-
export
|
|
2
|
+
export type IFBackendValidator = FILTER_BACKEND_VALIDATOR;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IColumn } from "../../../columns/interfaces/IColumn";
|
|
2
|
-
export
|
|
2
|
+
export type IFSColumn = Omit<IColumn, "expressionCategory" | "expressionNegative" | "expressionPositive" | "expressionWords" | "label" | "lookupValue" | "slidebarValue">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IFFiltersGetData } from "../functions/IFFiltersGetData";
|
|
2
|
-
export
|
|
2
|
+
export type IFSGetDataValues = IFFiltersGetData;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IWidgetConfig } from "../../../interfaces/general/IWidgetConfig";
|
|
2
|
-
export
|
|
2
|
+
export type IFilterConfig = IWidgetConfig;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FILTER_PANEL_ACTION } from "../../constants/panel/FILTER_PANEL_ACTION";
|
|
2
|
-
export
|
|
2
|
+
export type IFPAction = FILTER_PANEL_ACTION;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FILTER_PANEL_VIEW } from "../../constants/panel/FILTER_PANEL_VIEW";
|
|
2
|
-
export
|
|
2
|
+
export type IFPSettingsPanelView = FILTER_PANEL_VIEW;
|
|
@@ -104,7 +104,8 @@ class DurationFormatter {
|
|
|
104
104
|
*/
|
|
105
105
|
parseFormatTemplate(template) {
|
|
106
106
|
this.template = (0, isEmpty_1.isEmpty)(template) ? "" : template;
|
|
107
|
-
|
|
107
|
+
const templateParts = this.template.match(definition_1.PARTS_REGEX) || [];
|
|
108
|
+
return templateParts
|
|
108
109
|
.reduce((store, part) => {
|
|
109
110
|
const config = definition_1.DURATION_PARTS[part[0]];
|
|
110
111
|
if (config)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FORMULA } from "../constants/FORMULA";
|
|
2
|
-
export
|
|
2
|
+
export type IFormulaType = FORMULA;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @returns the new array created.
|
|
15
15
|
*/
|
|
16
16
|
export declare function addPropertyToArrayOfObjects(obj: AddPropertyToArrayOfObjectsParams): any[];
|
|
17
|
-
|
|
17
|
+
type AddPropertyToArrayOfObjectsParams = {
|
|
18
18
|
array: any[];
|
|
19
19
|
property: string;
|
|
20
20
|
value: any;
|
|
@@ -49,5 +49,5 @@ export interface IScriptItem {
|
|
|
49
49
|
noModule?: boolean;
|
|
50
50
|
type?: string;
|
|
51
51
|
}
|
|
52
|
-
export
|
|
53
|
-
export
|
|
52
|
+
export type TScriptItem = string | IScriptItem;
|
|
53
|
+
export type TScriptType = "text/javascript" | "module" | string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { II18nChartBuilder } from "../../interfaces/chart_builder/II18nChartBuilder";
|
|
2
|
-
|
|
2
|
+
type FormatOptions = "small_multiples" | "conditional_formatting";
|
|
3
3
|
export declare const I18N_CHART_BUILDER_FORMAT_OPTIONS: Pick<II18nChartBuilder, FormatOptions>;
|
|
4
4
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { II18nChartBuilder } from "../../interfaces/chart_builder/II18nChartBuilder";
|
|
2
|
-
|
|
2
|
+
type General = "nav_panel" | "save_dialog" | "save_incomplete_dialog" | "leave_dialog" | "custom_format_dialog" | "data_panel" | "dimensions" | "shelf_menu" | "scale_types" | "trend_chart" | "chart_info" | "dnd_zone" | "chart_labels" | "action_panel" | "messages_general" | "messages_default" | "messages_crosstab" | "messages_table_chart" | "messages_missing_default" | "messages_ms" | "messages_pie" | "messages_min_max" | "messages_metric" | "messages_heatmap" | "messages_geo" | "messages_geo_bubble" | "messages_box_whiskers" | "messages_combined";
|
|
3
3
|
export declare const I18N_CHART_BUILDER_GENERAL: Pick<II18nChartBuilder, General>;
|
|
4
4
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { II18nChartBuilder } from "../../interfaces/chart_builder/II18nChartBuilder";
|
|
2
|
-
|
|
2
|
+
type GeneralOptions = "aggregated_formula" | "general_options" | "totals" | "legends" | "menu_actions" | "sorting" | "table_calculations" | "tooltip_settings";
|
|
3
3
|
export declare const I18N_CHART_BUILDER_GENERAL_OPTIONS: Pick<II18nChartBuilder, GeneralOptions>;
|
|
4
4
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { II18nChartBuilder } from "../../interfaces/chart_builder/II18nChartBuilder";
|
|
2
|
-
|
|
2
|
+
type LayerOptions = "trends_line" | "references_line";
|
|
3
3
|
export declare const I18N_CHART_BUILDER_LAYER_OPTIONS: Pick<II18nChartBuilder, LayerOptions>;
|
|
4
4
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { II18nChartBuilder } from "../../interfaces/chart_builder/II18nChartBuilder";
|
|
2
|
-
|
|
2
|
+
type StyleOptions = "style_options" | "color_settings" | "color_by_values" | "chart_orientation" | "axis_style" | "bar_types" | "line_style_options" | "symbol_style_options" | "chart_mode" | "category_labels" | "font_options" | "circle_size" | "gauge_style" | "target_config" | "table_header" | "table_body" | "resize_rows" | "custom_scale" | "gaps_options" | "base_map" | "map_region" | "table_style_options";
|
|
3
3
|
export declare const I18N_CHART_BUILDER_STYLE_OPTIONS: Pick<II18nChartBuilder, StyleOptions>;
|
|
4
4
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { II18nChartBuilder } from "../../interfaces/chart_builder/II18nChartBuilder";
|
|
2
|
-
|
|
2
|
+
type TimePeriod = "time_period" | "time_period_custom_range";
|
|
3
3
|
export declare const I18N_CHART_BUILDER_TIME_PERIOD: Pick<II18nChartBuilder, TimePeriod>;
|
|
4
4
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CHART_TYPE } from "../constants/Charts.Const";
|
|
2
|
-
export
|
|
2
|
+
export type ChartType = CHART_TYPE;
|