@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.
Files changed (139) hide show
  1. package/dist/charts/interfaces/IAggregateAbbreviation.d.ts +1 -1
  2. package/dist/charts/interfaces/IAggregateLabel.d.ts +1 -1
  3. package/dist/charts/interfaces/IAggregateType.d.ts +1 -1
  4. package/dist/charts/interfaces/IRequestAdapterMetric.d.ts +12 -12
  5. package/dist/cjs/charts/interfaces/IAggregateAbbreviation.d.ts +1 -1
  6. package/dist/cjs/charts/interfaces/IAggregateLabel.d.ts +1 -1
  7. package/dist/cjs/charts/interfaces/IAggregateType.d.ts +1 -1
  8. package/dist/cjs/charts/interfaces/IRequestAdapterMetric.d.ts +12 -12
  9. package/dist/cjs/column_format/interfaces/IChartGroupType.d.ts +1 -1
  10. package/dist/cjs/column_format/interfaces/IChartShelfType.d.ts +1 -1
  11. package/dist/cjs/column_format/interfaces/IChartTableType.d.ts +1 -1
  12. package/dist/cjs/column_format/interfaces/IColumnFormatReturnType.d.ts +1 -1
  13. package/dist/cjs/column_format/interfaces/IFormatStringType.d.ts +1 -1
  14. package/dist/cjs/columns/interfaces/IColumnImageUploadOption.d.ts +1 -1
  15. package/dist/cjs/columns/interfaces/IColumnPropertyType.d.ts +1 -1
  16. package/dist/cjs/columns/interfaces/IColumnType.d.ts +1 -1
  17. package/dist/cjs/columns/interfaces/IComplexColumnPropertyType.d.ts +1 -1
  18. package/dist/cjs/columns/interfaces/IComplexColumnType.d.ts +1 -1
  19. package/dist/cjs/columns/interfaces/ICompoundColumnPropertyType.d.ts +1 -1
  20. package/dist/cjs/columns/interfaces/ICompoundColumnType.d.ts +1 -1
  21. package/dist/cjs/columns/interfaces/IDateColumnPropertyType.d.ts +1 -1
  22. package/dist/cjs/columns/interfaces/INumericalColumnType.d.ts +1 -1
  23. package/dist/cjs/dates/interfaces/IDateFormat.d.ts +1 -1
  24. package/dist/cjs/dates/interfaces/IDateGroupingProperty.d.ts +1 -1
  25. package/dist/cjs/dates/relative/helpers/parseDate.d.ts +2 -2
  26. package/dist/cjs/dates/relative/interfaces/IRelativeUnit.d.ts +1 -1
  27. package/dist/cjs/dates/relative/interfaces/RelativeCursor.d.ts +1 -1
  28. package/dist/cjs/dates/relative/interfaces/RelativeInput.d.ts +1 -1
  29. package/dist/cjs/dates/relative/interfaces/ui/IRelativeSectionMode.d.ts +1 -1
  30. package/dist/cjs/filters/helpers/common/excludeFiltersByParams.js +5 -5
  31. package/dist/cjs/filters/interfaces/IFDateProperty.d.ts +1 -1
  32. package/dist/cjs/filters/interfaces/IFDateSection.d.ts +1 -1
  33. package/dist/cjs/filters/interfaces/IFOperator.d.ts +1 -1
  34. package/dist/cjs/filters/interfaces/IFProperty.d.ts +1 -1
  35. package/dist/cjs/filters/interfaces/IFScope.d.ts +1 -1
  36. package/dist/cjs/filters/interfaces/IFSection.d.ts +1 -1
  37. package/dist/cjs/filters/interfaces/IFStructureType.d.ts +1 -1
  38. package/dist/cjs/filters/interfaces/IFValidator.d.ts +1 -1
  39. package/dist/cjs/filters/interfaces/IFValue.d.ts +1 -1
  40. package/dist/cjs/filters/interfaces/OLD_IFilterExpression.d.ts +2 -2
  41. package/dist/cjs/filters/interfaces/backend/IFBExpressionRelativeDate.d.ts +1 -1
  42. package/dist/cjs/filters/interfaces/backend/IFBExpressionValue.d.ts +1 -1
  43. package/dist/cjs/filters/interfaces/backend/IFBackendExpressionValue.d.ts +1 -1
  44. package/dist/cjs/filters/interfaces/backend/IFBackendValidator.d.ts +1 -1
  45. package/dist/cjs/filters/interfaces/common/IFSColumn.d.ts +1 -1
  46. package/dist/cjs/filters/interfaces/common/IFSGetDataValues.d.ts +1 -1
  47. package/dist/cjs/filters/interfaces/common/IFSValueRelativeDate.d.ts +1 -1
  48. package/dist/cjs/filters/interfaces/common/IFilterConfig.d.ts +1 -1
  49. package/dist/cjs/filters/interfaces/panel/IFPAction.d.ts +1 -1
  50. package/dist/cjs/filters/interfaces/settings/IFSettingsPanelView.d.ts +1 -1
  51. package/dist/cjs/filters/interfaces/settings/IFSettingsScopes.d.ts +1 -1
  52. package/dist/cjs/format/duration/durationFormatter.js +2 -1
  53. package/dist/cjs/formulas/interfaces/IFormulaType.d.ts +1 -1
  54. package/dist/cjs/general/array/addPropertyToArrayOfObjects.d.ts +1 -1
  55. package/dist/cjs/general/mix/importScripts.d.ts +2 -2
  56. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.d.ts +1 -1
  57. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.d.ts +1 -1
  58. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.d.ts +1 -1
  59. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.d.ts +1 -1
  60. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_OPERATORS.d.ts +1 -1
  61. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.d.ts +1 -1
  62. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_THRESHOLD.d.ts +1 -1
  63. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.d.ts +1 -1
  64. package/dist/cjs/interfaces/Chart.Interface.d.ts +1 -1
  65. package/dist/cjs/interfaces/IChartBuilder.Interface.d.ts +1 -1
  66. package/dist/cjs/interfaces/Qrvey.Interface.d.ts +2 -2
  67. package/dist/cjs/qrvey/interfaces/IAppStatus.d.ts +1 -1
  68. package/dist/cjs/qrvey/interfaces/IAppType.d.ts +1 -1
  69. package/dist/cjs/qrvey/interfaces/ICalculation.d.ts +1 -1
  70. package/dist/cjs/qrvey/interfaces/ICalculationType.d.ts +1 -1
  71. package/dist/cjs/typescript/DeepPartial.d.ts +1 -1
  72. package/dist/cjs/typescript/DeepRequired.d.ts +1 -1
  73. package/dist/cjs/typescript/ValueOf.d.ts +1 -1
  74. package/dist/column_format/interfaces/IChartGroupType.d.ts +1 -1
  75. package/dist/column_format/interfaces/IChartShelfType.d.ts +1 -1
  76. package/dist/column_format/interfaces/IChartTableType.d.ts +1 -1
  77. package/dist/column_format/interfaces/IColumnFormatReturnType.d.ts +1 -1
  78. package/dist/column_format/interfaces/IFormatStringType.d.ts +1 -1
  79. package/dist/columns/interfaces/IColumnImageUploadOption.d.ts +1 -1
  80. package/dist/columns/interfaces/IColumnPropertyType.d.ts +1 -1
  81. package/dist/columns/interfaces/IColumnType.d.ts +1 -1
  82. package/dist/columns/interfaces/IComplexColumnPropertyType.d.ts +1 -1
  83. package/dist/columns/interfaces/IComplexColumnType.d.ts +1 -1
  84. package/dist/columns/interfaces/ICompoundColumnPropertyType.d.ts +1 -1
  85. package/dist/columns/interfaces/ICompoundColumnType.d.ts +1 -1
  86. package/dist/columns/interfaces/IDateColumnPropertyType.d.ts +1 -1
  87. package/dist/columns/interfaces/INumericalColumnType.d.ts +1 -1
  88. package/dist/dates/interfaces/IDateFormat.d.ts +1 -1
  89. package/dist/dates/interfaces/IDateGroupingProperty.d.ts +1 -1
  90. package/dist/dates/relative/helpers/parseDate.d.ts +2 -2
  91. package/dist/dates/relative/interfaces/IRelativeUnit.d.ts +1 -1
  92. package/dist/dates/relative/interfaces/RelativeCursor.d.ts +1 -1
  93. package/dist/dates/relative/interfaces/RelativeInput.d.ts +1 -1
  94. package/dist/dates/relative/interfaces/ui/IRelativeSectionMode.d.ts +1 -1
  95. package/dist/filters/helpers/common/excludeFiltersByParams.js +5 -5
  96. package/dist/filters/interfaces/IFDateProperty.d.ts +1 -1
  97. package/dist/filters/interfaces/IFDateSection.d.ts +1 -1
  98. package/dist/filters/interfaces/IFOperator.d.ts +1 -1
  99. package/dist/filters/interfaces/IFProperty.d.ts +1 -1
  100. package/dist/filters/interfaces/IFScope.d.ts +1 -1
  101. package/dist/filters/interfaces/IFSection.d.ts +1 -1
  102. package/dist/filters/interfaces/IFStructureType.d.ts +1 -1
  103. package/dist/filters/interfaces/IFValidator.d.ts +1 -1
  104. package/dist/filters/interfaces/IFValue.d.ts +1 -1
  105. package/dist/filters/interfaces/OLD_IFilterExpression.d.ts +2 -2
  106. package/dist/filters/interfaces/backend/IFBExpressionRelativeDate.d.ts +1 -1
  107. package/dist/filters/interfaces/backend/IFBExpressionValue.d.ts +1 -1
  108. package/dist/filters/interfaces/backend/IFBackendExpressionValue.d.ts +1 -1
  109. package/dist/filters/interfaces/backend/IFBackendValidator.d.ts +1 -1
  110. package/dist/filters/interfaces/common/IFSColumn.d.ts +1 -1
  111. package/dist/filters/interfaces/common/IFSGetDataValues.d.ts +1 -1
  112. package/dist/filters/interfaces/common/IFSValueRelativeDate.d.ts +1 -1
  113. package/dist/filters/interfaces/common/IFilterConfig.d.ts +1 -1
  114. package/dist/filters/interfaces/panel/IFPAction.d.ts +1 -1
  115. package/dist/filters/interfaces/settings/IFSettingsPanelView.d.ts +1 -1
  116. package/dist/filters/interfaces/settings/IFSettingsScopes.d.ts +1 -1
  117. package/dist/format/duration/durationFormatter.js +2 -1
  118. package/dist/formulas/interfaces/IFormulaType.d.ts +1 -1
  119. package/dist/general/array/addPropertyToArrayOfObjects.d.ts +1 -1
  120. package/dist/general/mix/importScripts.d.ts +2 -2
  121. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.d.ts +1 -1
  122. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.d.ts +1 -1
  123. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.d.ts +1 -1
  124. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.d.ts +1 -1
  125. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_OPERATORS.d.ts +1 -1
  126. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.d.ts +1 -1
  127. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_THRESHOLD.d.ts +1 -1
  128. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.d.ts +1 -1
  129. package/dist/interfaces/Chart.Interface.d.ts +1 -1
  130. package/dist/interfaces/IChartBuilder.Interface.d.ts +1 -1
  131. package/dist/interfaces/Qrvey.Interface.d.ts +2 -2
  132. package/dist/qrvey/interfaces/IAppStatus.d.ts +1 -1
  133. package/dist/qrvey/interfaces/IAppType.d.ts +1 -1
  134. package/dist/qrvey/interfaces/ICalculation.d.ts +1 -1
  135. package/dist/qrvey/interfaces/ICalculationType.d.ts +1 -1
  136. package/dist/typescript/DeepPartial.d.ts +1 -1
  137. package/dist/typescript/DeepRequired.d.ts +1 -1
  138. package/dist/typescript/ValueOf.d.ts +1 -1
  139. package/package.json +20 -19
@@ -1,2 +1,2 @@
1
1
  import { AGGREGATE_ABBREVIATION } from "../constants/AGGREGATE_ABBREVIATION";
2
- export declare type IAggregateAbbreviation = AGGREGATE_ABBREVIATION;
2
+ export type IAggregateAbbreviation = AGGREGATE_ABBREVIATION;
@@ -1,2 +1,2 @@
1
1
  import { AGGREGATE_LABEL } from "../constants/AGGREGATE_LABEL";
2
- export declare type IAggregateLabel = AGGREGATE_LABEL;
2
+ export type IAggregateLabel = AGGREGATE_LABEL;
@@ -1,2 +1,2 @@
1
1
  import { AGGREGATE } from "../constants/AGGREGATE";
2
- export declare type IAggregateType = AGGREGATE;
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 declare type MetricValue = {
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 declare type RelativeDateConfig = {
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 declare type MetricCustomRange = {
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 declare type CustomRangeConfig = {
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 declare type CustomRange = {
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 declare type MetricRequestResponse = {
87
+ export type MetricRequestResponse = {
88
88
  value: number;
89
89
  min: number;
90
90
  max: number;
91
91
  comparison: number;
92
92
  };
93
- export declare type MetricPeriod = RelativeDateConfig;
94
- export declare type MetricComparison = RelativeDateConfig;
95
- export declare type MetricConfig = {
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 declare type MetricConfigData = {
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 declare type MetricTimeCustomRange = {
117
+ export type MetricTimeCustomRange = {
118
118
  key: string;
119
119
  label: TP_CUSTOM_RANGE;
120
120
  text: string;
121
121
  };
122
- export declare type MetricTimeInfo = {
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 declare type IAggregateAbbreviation = AGGREGATE_ABBREVIATION;
2
+ export type IAggregateAbbreviation = AGGREGATE_ABBREVIATION;
@@ -1,2 +1,2 @@
1
1
  import { AGGREGATE_LABEL } from "../constants/AGGREGATE_LABEL";
2
- export declare type IAggregateLabel = AGGREGATE_LABEL;
2
+ export type IAggregateLabel = AGGREGATE_LABEL;
@@ -1,2 +1,2 @@
1
1
  import { AGGREGATE } from "../constants/AGGREGATE";
2
- export declare type IAggregateType = AGGREGATE;
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 declare type MetricValue = {
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 declare type RelativeDateConfig = {
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 declare type MetricCustomRange = {
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 declare type CustomRangeConfig = {
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 declare type CustomRange = {
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 declare type MetricRequestResponse = {
87
+ export type MetricRequestResponse = {
88
88
  value: number;
89
89
  min: number;
90
90
  max: number;
91
91
  comparison: number;
92
92
  };
93
- export declare type MetricPeriod = RelativeDateConfig;
94
- export declare type MetricComparison = RelativeDateConfig;
95
- export declare type MetricConfig = {
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 declare type MetricConfigData = {
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 declare type MetricTimeCustomRange = {
117
+ export type MetricTimeCustomRange = {
118
118
  key: string;
119
119
  label: TP_CUSTOM_RANGE;
120
120
  text: string;
121
121
  };
122
- export declare type MetricTimeInfo = {
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 declare type IChartGroupType = CHART_GROUPS;
2
+ export type IChartGroupType = CHART_GROUPS;
@@ -1,2 +1,2 @@
1
1
  import { SHELF_TYPE } from "../constants/SHELF_TYPE";
2
- export declare type IChartShelfType = SHELF_TYPE;
2
+ export type IChartShelfType = SHELF_TYPE;
@@ -1,2 +1,2 @@
1
1
  import { TABLE_TYPE } from "../constants/TABLE_TYPE";
2
- export declare type IChartTableType = TABLE_TYPE;
2
+ export type IChartTableType = TABLE_TYPE;
@@ -1,3 +1,3 @@
1
1
  import { IFormatOutputFormat } from "../..";
2
2
  import { IFormatStringType } from "./IFormatStringType";
3
- export declare type IColumnFormatReturnType = IFormatStringType | IFormatOutputFormat;
3
+ export type IColumnFormatReturnType = IFormatStringType | IFormatOutputFormat;
@@ -1,2 +1,2 @@
1
1
  import { STRING_FORMAT } from "../constants/STRING_FORMAT";
2
- export declare type IFormatStringType = STRING_FORMAT;
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 declare type IColumnImageUploadOption = COLUMN_IMAGE_UPLOAD_OPTION;
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 declare type IColumnPropertyType = COLUMN_PROPERTY | IComplexColumnPropertyType | ICompoundColumnPropertyType | IDateColumnPropertyType;
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 declare type IColumnType = COLUMN | ICompoundColumnType | IComplexColumnType | INumericalColumnType;
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 declare type IComplexColumnPropertyType = COMPLEX_COLUMN_PROPERTY;
2
+ export type IComplexColumnPropertyType = COMPLEX_COLUMN_PROPERTY;
@@ -1,2 +1,2 @@
1
1
  import { COMPLEX_COLUMN } from "../constants/COMPLEX_COLUMN";
2
- export declare type IComplexColumnType = COMPLEX_COLUMN;
2
+ export type IComplexColumnType = COMPLEX_COLUMN;
@@ -1,2 +1,2 @@
1
1
  import { COMPOUND_COLUMN_PROPERTY } from "../constants/COMPOUND_COLUMN_PROPERTY";
2
- export declare type ICompoundColumnPropertyType = COMPOUND_COLUMN_PROPERTY;
2
+ export type ICompoundColumnPropertyType = COMPOUND_COLUMN_PROPERTY;
@@ -1,2 +1,2 @@
1
1
  import { COMPOUND_COLUMN } from "../constants/COMPOUND_COLUMN";
2
- export declare type ICompoundColumnType = COMPOUND_COLUMN;
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 declare type IDateColumnPropertyType = DATE_GROUPING_PROPERTY | DATE_GROUPING_TIME_PROPERTY | DATE_DISTINCT_PROPERTY | DATE_DISTINCT_TIME_PROPERTY;
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 declare type INumericalColumnType = NUMERICAL_COLUMN;
2
+ export type INumericalColumnType = NUMERICAL_COLUMN;
@@ -1,2 +1,2 @@
1
1
  import { DATE_FORMAT } from "../constants/DATE_FORMAT";
2
- export declare type IDateFormat = typeof DATE_FORMAT[keyof typeof DATE_FORMAT];
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 declare type IDateGroupingProperty = DATE_GROUPING_PROPERTY | DATE_GROUPING_TIME_PROPERTY;
3
+ export type IDateGroupingProperty = DATE_GROUPING_PROPERTY | DATE_GROUPING_TIME_PROPERTY;
@@ -1,6 +1,6 @@
1
1
  import { Dayjs } from "./dayjs-module";
2
- declare type ParserDate = string | Dayjs | Date;
3
- declare type ParserDateReturnType = Dayjs | null;
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 declare type IRelativeUnit = keyof typeof DATE_GROUPING_PROPERTY | keyof typeof DATE_GROUPING_TIME_PROPERTY;
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 declare type RelativeCursor = RELATIVE_CURSOR;
2
+ export type RelativeCursor = RELATIVE_CURSOR;
@@ -1,2 +1,2 @@
1
1
  import { RelativeStatement } from "./RelativeStatement";
2
- export declare type RelativeInput = RelativeStatement | string;
2
+ export type RelativeInput = RelativeStatement | string;
@@ -1,2 +1,2 @@
1
1
  import { RELATIVE_MODE } from "../../constants/ui/RELATIVE_MODE";
2
- export declare type IRelativeSectionMode = RELATIVE_MODE;
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 declare type IFDateProperty = IDateGroupingProperty;
2
+ export type IFDateProperty = IDateGroupingProperty;
@@ -1,2 +1,2 @@
1
1
  import { FILTER_DATE_SECTION } from "../constants/common/FILTER_DATE_SECTION";
2
- export declare type IFDateSection = FILTER_DATE_SECTION;
2
+ export type IFDateSection = FILTER_DATE_SECTION;
@@ -1,2 +1,2 @@
1
1
  import { FILTER_OPERATOR } from "../constants/common/FILTER_OPERATOR";
2
- export declare type IFOperator = FILTER_OPERATOR;
2
+ export type IFOperator = FILTER_OPERATOR;
@@ -1,2 +1,2 @@
1
1
  import { IColumnPropertyType } from "../../columns/interfaces/IColumnPropertyType";
2
- export declare type IFProperty = IColumnPropertyType;
2
+ export type IFProperty = IColumnPropertyType;
@@ -1,2 +1,2 @@
1
1
  import { FILTER_SCOPE } from "../constants/common/FILTER_SCOPE";
2
- export declare type IFScope = FILTER_SCOPE;
2
+ export type IFScope = FILTER_SCOPE;
@@ -1,2 +1,2 @@
1
1
  import { FILTER_SECTION } from "../constants/common/FILTER_SECTION";
2
- export declare type IFSection = FILTER_SECTION;
2
+ export type IFSection = FILTER_SECTION;
@@ -1,2 +1,2 @@
1
1
  import { FILTER_STRUCTURE_TYPE } from "../constants/common/FILTER_STRUCTURE_TYPE";
2
- export declare type IFStructureType = FILTER_STRUCTURE_TYPE;
2
+ export type IFStructureType = FILTER_STRUCTURE_TYPE;
@@ -1,2 +1,2 @@
1
1
  import { FILTER_VALIDATOR } from "../constants/common/FILTER_VALIDATOR";
2
- export declare type IFValidator = FILTER_VALIDATOR;
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 declare type IFValue = IFSValue | IFSValueRange | IFSValueRelativeDate | IFSValueRanking[];
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 declare type IFilterExpressionValue = IFilterNumericExpressionValue | IFilterStringExpressionValue | IFilterRankingExpressionValue | IFBResultRelativeDate[];
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
- declare type IFilterStringExpressionValue = string;
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 declare type IFBExpressionRelativeDate = IFSValueRelativeDate;
2
+ export type IFBExpressionRelativeDate = IFSValueRelativeDate;
@@ -1 +1 @@
1
- export declare type IFBExpressionValue = string;
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 declare type IFBackendExpressionValue = IFBExpressionValue | IFBExpressionValueRange | IFBExpressionRelativeDate | IFBExpressionValueRanking;
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 declare type IFBackendValidator = FILTER_BACKEND_VALIDATOR;
2
+ export type IFBackendValidator = FILTER_BACKEND_VALIDATOR;
@@ -1,2 +1,2 @@
1
1
  import { IColumn } from "../../../columns/interfaces/IColumn";
2
- export declare type IFSColumn = Omit<IColumn, "expressionCategory" | "expressionNegative" | "expressionPositive" | "expressionWords" | "label" | "lookupValue" | "slidebarValue">;
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 declare type IFSGetDataValues = IFFiltersGetData;
2
+ export type IFSGetDataValues = IFFiltersGetData;
@@ -1,5 +1,5 @@
1
1
  import { RelativeStatement } from "../../../dates/relative/interfaces/RelativeStatement";
2
- export declare type IFSValueRelativeDate = {
2
+ export type IFSValueRelativeDate = {
3
3
  displayed?: boolean;
4
4
  enabled?: boolean;
5
5
  } & RelativeStatement;
@@ -1,2 +1,2 @@
1
1
  import { IWidgetConfig } from "../../../interfaces/general/IWidgetConfig";
2
- export declare type IFilterConfig = IWidgetConfig;
2
+ export type IFilterConfig = IWidgetConfig;
@@ -1,2 +1,2 @@
1
1
  import { FILTER_PANEL_ACTION } from "../../constants/panel/FILTER_PANEL_ACTION";
2
- export declare type IFPAction = FILTER_PANEL_ACTION;
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 declare type IFPSettingsPanelView = FILTER_PANEL_VIEW;
2
+ export type IFPSettingsPanelView = FILTER_PANEL_VIEW;
@@ -3,6 +3,6 @@ import { IFSettingsScope } from "./IFSettingsScope";
3
3
  /**
4
4
  * Structure for a single scope settings
5
5
  */
6
- export declare type IFSettingsScopes = {
6
+ export type IFSettingsScopes = {
7
7
  [key in IFScope]?: IFSettingsScope;
8
8
  };
@@ -104,7 +104,8 @@ class DurationFormatter {
104
104
  */
105
105
  parseFormatTemplate(template) {
106
106
  this.template = (0, isEmpty_1.isEmpty)(template) ? "" : template;
107
- return (this.template.match(definition_1.PARTS_REGEX) || [])
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 declare type IFormulaType = FORMULA;
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
- declare type AddPropertyToArrayOfObjectsParams = {
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 declare type TScriptItem = string | IScriptItem;
53
- export declare type TScriptType = "text/javascript" | "module" | string;
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
- declare type FormatOptions = "small_multiples" | "conditional_formatting";
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
- declare 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";
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
- declare type GeneralOptions = "aggregated_formula" | "general_options" | "totals" | "legends" | "menu_actions" | "sorting" | "table_calculations" | "tooltip_settings";
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
- declare type LayerOptions = "trends_line" | "references_line";
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
- declare type Operators = "operators";
2
+ type Operators = "operators";
3
3
  export declare const I18N_CHART_BUILDER_OPERATORS: Pick<II18nChartBuilder, Operators>;
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  import { II18nChartBuilder } from "../../interfaces/chart_builder/II18nChartBuilder";
2
- declare 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";
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
- declare type Threshold = "threshold";
2
+ type Threshold = "threshold";
3
3
  export declare const I18N_CHART_BUILDER_THRESHOLD: Pick<II18nChartBuilder, Threshold>;
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  import { II18nChartBuilder } from "../../interfaces/chart_builder/II18nChartBuilder";
2
- declare type TimePeriod = "time_period" | "time_period_custom_range";
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 declare type ChartType = CHART_TYPE;
2
+ export type ChartType = CHART_TYPE;