@qrvey/utils 1.14.0-1 → 1.14.0-2

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 (163) hide show
  1. package/dist/cjs/column_format/helpers/columnTypeByChart.d.ts +1 -1
  2. package/dist/cjs/columns/constants/COLUMN.d.ts +3 -8
  3. package/dist/cjs/columns/constants/COLUMN.js +3 -8
  4. package/dist/cjs/columns/constants/COLUMNS.js +1 -9
  5. package/dist/cjs/columns/constants/COLUMN_ICON.d.ts +4 -0
  6. package/dist/cjs/columns/constants/COLUMN_ICON.js +41 -0
  7. package/dist/cjs/columns/constants/COLUMN_INFO.d.ts +1 -1
  8. package/dist/cjs/columns/constants/COLUMN_INFO.js +17 -37
  9. package/dist/cjs/columns/constants/COLUMN_INFO_LIST.js +0 -5
  10. package/dist/cjs/columns/constants/COLUMN_LABEL.d.ts +3 -0
  11. package/dist/cjs/columns/constants/COLUMN_LABEL.js +1 -1
  12. package/dist/cjs/columns/constants/NUMERICAL_COLUMN.d.ts +0 -3
  13. package/dist/cjs/columns/constants/NUMERICAL_COLUMN.js +0 -3
  14. package/dist/cjs/columns/constants/NUMERICAL_COLUMNS.js +0 -3
  15. package/dist/cjs/columns/constants/NUMERICAL_COLUMN_INFO.js +0 -24
  16. package/dist/cjs/columns/constants/NUMERICAL_COLUMN_INFO_LIST.js +0 -3
  17. package/dist/cjs/columns/constants/index.d.ts +1 -0
  18. package/dist/cjs/columns/constants/index.js +1 -0
  19. package/dist/cjs/dates/helpers/getTimezoneObject.d.ts +4 -4
  20. package/dist/cjs/dates/helpers/getTimezoneObject.js +17 -17
  21. package/dist/cjs/filters/adapters/FDToFlatUI.js +5 -1
  22. package/dist/cjs/filters/adapters/UIToFlatUI.js +4 -0
  23. package/dist/cjs/filters/adapters/UIToOldLogic.js +1 -0
  24. package/dist/cjs/filters/adapters/flatUIToFD.js +4 -0
  25. package/dist/cjs/filters/adapters/flatUIToUI.js +4 -0
  26. package/dist/cjs/filters/adapters/logicToFlatUI.js +7 -4
  27. package/dist/cjs/filters/constants/common/FILTER_SECTION.d.ts +2 -1
  28. package/dist/cjs/filters/constants/common/FILTER_SECTION.js +1 -0
  29. package/dist/cjs/filters/constants/settings/FILTER_SETTINGS_DEFAULT.js +2 -0
  30. package/dist/cjs/filters/helpers/common/getDateProperties.d.ts +10 -0
  31. package/dist/cjs/filters/helpers/common/getDateProperties.js +46 -0
  32. package/dist/cjs/filters/helpers/common/getDefaultValidatorByColumn.d.ts +11 -0
  33. package/dist/cjs/filters/helpers/common/getDefaultValidatorByColumn.js +27 -0
  34. package/dist/cjs/filters/helpers/common/getPropertiesByColumn.d.ts +20 -0
  35. package/dist/cjs/filters/helpers/common/getPropertiesByColumn.js +35 -0
  36. package/dist/cjs/filters/helpers/common/getTimeProperties.d.ts +8 -0
  37. package/dist/cjs/filters/helpers/common/getTimeProperties.js +22 -0
  38. package/dist/cjs/filters/helpers/common/getValidatorsByColumn.d.ts +10 -0
  39. package/dist/cjs/filters/helpers/common/getValidatorsByColumn.js +39 -0
  40. package/dist/cjs/filters/helpers/common/index.d.ts +10 -0
  41. package/dist/cjs/filters/helpers/common/index.js +10 -0
  42. package/dist/cjs/filters/helpers/common/isColumnForEqualLayout.d.ts +7 -0
  43. package/dist/cjs/filters/helpers/common/isColumnForEqualLayout.js +13 -0
  44. package/dist/cjs/filters/helpers/common/isColumnForEqualNullLayout.d.ts +9 -0
  45. package/dist/cjs/filters/helpers/common/isColumnForEqualNullLayout.js +20 -0
  46. package/dist/cjs/filters/helpers/common/isColumnForNullLayout.d.ts +7 -0
  47. package/dist/cjs/filters/helpers/common/isColumnForNullLayout.js +13 -0
  48. package/dist/cjs/filters/helpers/common/isColumnForNumericLayout.d.ts +9 -0
  49. package/dist/cjs/filters/helpers/common/isColumnForNumericLayout.js +22 -0
  50. package/dist/cjs/filters/helpers/common/isColumnForTextLayout.d.ts +9 -0
  51. package/dist/cjs/filters/helpers/common/isColumnForTextLayout.js +20 -0
  52. package/dist/cjs/filters/helpers/common/isValidatorMatchedToWindow.d.ts +7 -0
  53. package/dist/cjs/filters/helpers/common/isValidatorMatchedToWindow.js +13 -0
  54. package/dist/cjs/filters/helpers/common/resolveDatasetConditions.js +5 -0
  55. package/dist/cjs/filters/helpers/common/resolveFilterConditions.js +5 -0
  56. package/dist/cjs/filters/helpers/common/resolveScopeConditions.js +5 -0
  57. package/dist/cjs/filters/helpers/getAvailableScopes.d.ts +2 -1
  58. package/dist/cjs/filters/helpers/getAvailableScopes.js +5 -2
  59. package/dist/cjs/filters/interfaces/IFValidatorInfo.d.ts +1 -1
  60. package/dist/cjs/filters/interfaces/OLD_IFilterDetail.d.ts +4 -0
  61. package/dist/cjs/filters/interfaces/builder/IFilterBuilderConfig.d.ts +5 -1
  62. package/dist/cjs/filters/interfaces/builder/IFilterBuilderSettings.d.ts +5 -0
  63. package/dist/cjs/filters/interfaces/common/IFSFilter.d.ts +3 -0
  64. package/dist/cjs/filters/interfaces/common/IFSParamsToGetFilter.d.ts +2 -0
  65. package/dist/cjs/filters/interfaces/common/IFSParamsToGetFilterDisplayeds.d.ts +9 -0
  66. package/dist/cjs/filters/interfaces/common/IFSParamsToGetFilterDisplayeds.js +2 -0
  67. package/dist/cjs/filters/interfaces/common/index.d.ts +1 -0
  68. package/dist/cjs/filters/interfaces/common/index.js +1 -0
  69. package/dist/cjs/filters/interfaces/settings/IFSettingsFilterBuilder.d.ts +1 -0
  70. package/dist/cjs/filters/interfaces/settings/IFSettingsFilterPanel.d.ts +1 -0
  71. package/dist/cjs/general/array/getArrayByProperty.d.ts +1 -1
  72. package/dist/cjs/general/array/index.d.ts +1 -0
  73. package/dist/cjs/general/array/index.js +1 -0
  74. package/dist/cjs/general/array/intersectObjectArrays.d.ts +8 -0
  75. package/dist/cjs/general/array/intersectObjectArrays.js +37 -0
  76. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +1 -0
  77. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +1 -0
  78. package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.js +2 -0
  79. package/dist/cjs/interfaces/general/IGeneralInfo.d.ts +4 -4
  80. package/dist/cjs/qrvey/interfaces/IDataset.d.ts +0 -2
  81. package/dist/cjs/services/api/getAllDatasets.api.js +2 -2
  82. package/dist/column_format/helpers/columnTypeByChart.d.ts +1 -1
  83. package/dist/columns/constants/COLUMN.d.ts +3 -8
  84. package/dist/columns/constants/COLUMN.js +3 -8
  85. package/dist/columns/constants/COLUMNS.js +1 -9
  86. package/dist/columns/constants/COLUMN_ICON.d.ts +4 -0
  87. package/dist/columns/constants/COLUMN_ICON.js +38 -0
  88. package/dist/columns/constants/COLUMN_INFO.d.ts +1 -1
  89. package/dist/columns/constants/COLUMN_INFO.js +17 -37
  90. package/dist/columns/constants/COLUMN_INFO_LIST.js +0 -5
  91. package/dist/columns/constants/COLUMN_LABEL.d.ts +3 -0
  92. package/dist/columns/constants/COLUMN_LABEL.js +1 -1
  93. package/dist/columns/constants/NUMERICAL_COLUMN.d.ts +0 -3
  94. package/dist/columns/constants/NUMERICAL_COLUMN.js +0 -3
  95. package/dist/columns/constants/NUMERICAL_COLUMNS.js +0 -3
  96. package/dist/columns/constants/NUMERICAL_COLUMN_INFO.js +0 -24
  97. package/dist/columns/constants/NUMERICAL_COLUMN_INFO_LIST.js +0 -3
  98. package/dist/columns/constants/index.d.ts +1 -0
  99. package/dist/columns/constants/index.js +1 -0
  100. package/dist/dates/helpers/getTimezoneObject.d.ts +4 -4
  101. package/dist/dates/helpers/getTimezoneObject.js +17 -17
  102. package/dist/filters/adapters/FDToFlatUI.js +5 -1
  103. package/dist/filters/adapters/UIToFlatUI.js +4 -0
  104. package/dist/filters/adapters/UIToOldLogic.js +1 -0
  105. package/dist/filters/adapters/flatUIToFD.js +4 -0
  106. package/dist/filters/adapters/flatUIToUI.js +4 -0
  107. package/dist/filters/adapters/logicToFlatUI.js +7 -4
  108. package/dist/filters/constants/common/FILTER_SECTION.d.ts +2 -1
  109. package/dist/filters/constants/common/FILTER_SECTION.js +1 -0
  110. package/dist/filters/constants/settings/FILTER_SETTINGS_DEFAULT.js +2 -0
  111. package/dist/filters/helpers/common/getDateProperties.d.ts +10 -0
  112. package/dist/filters/helpers/common/getDateProperties.js +42 -0
  113. package/dist/filters/helpers/common/getDefaultValidatorByColumn.d.ts +11 -0
  114. package/dist/filters/helpers/common/getDefaultValidatorByColumn.js +23 -0
  115. package/dist/filters/helpers/common/getPropertiesByColumn.d.ts +20 -0
  116. package/dist/filters/helpers/common/getPropertiesByColumn.js +31 -0
  117. package/dist/filters/helpers/common/getTimeProperties.d.ts +8 -0
  118. package/dist/filters/helpers/common/getTimeProperties.js +18 -0
  119. package/dist/filters/helpers/common/getValidatorsByColumn.d.ts +10 -0
  120. package/dist/filters/helpers/common/getValidatorsByColumn.js +35 -0
  121. package/dist/filters/helpers/common/index.d.ts +10 -0
  122. package/dist/filters/helpers/common/index.js +10 -0
  123. package/dist/filters/helpers/common/isColumnForEqualLayout.d.ts +7 -0
  124. package/dist/filters/helpers/common/isColumnForEqualLayout.js +9 -0
  125. package/dist/filters/helpers/common/isColumnForEqualNullLayout.d.ts +9 -0
  126. package/dist/filters/helpers/common/isColumnForEqualNullLayout.js +16 -0
  127. package/dist/filters/helpers/common/isColumnForNullLayout.d.ts +7 -0
  128. package/dist/filters/helpers/common/isColumnForNullLayout.js +9 -0
  129. package/dist/filters/helpers/common/isColumnForNumericLayout.d.ts +9 -0
  130. package/dist/filters/helpers/common/isColumnForNumericLayout.js +18 -0
  131. package/dist/filters/helpers/common/isColumnForTextLayout.d.ts +9 -0
  132. package/dist/filters/helpers/common/isColumnForTextLayout.js +16 -0
  133. package/dist/filters/helpers/common/isValidatorMatchedToWindow.d.ts +7 -0
  134. package/dist/filters/helpers/common/isValidatorMatchedToWindow.js +9 -0
  135. package/dist/filters/helpers/common/resolveDatasetConditions.js +5 -0
  136. package/dist/filters/helpers/common/resolveFilterConditions.js +5 -0
  137. package/dist/filters/helpers/common/resolveScopeConditions.js +5 -0
  138. package/dist/filters/helpers/getAvailableScopes.d.ts +2 -1
  139. package/dist/filters/helpers/getAvailableScopes.js +5 -2
  140. package/dist/filters/interfaces/IFValidatorInfo.d.ts +1 -1
  141. package/dist/filters/interfaces/OLD_IFilterDetail.d.ts +4 -0
  142. package/dist/filters/interfaces/builder/IFilterBuilderConfig.d.ts +5 -1
  143. package/dist/filters/interfaces/builder/IFilterBuilderSettings.d.ts +5 -0
  144. package/dist/filters/interfaces/common/IFSFilter.d.ts +3 -0
  145. package/dist/filters/interfaces/common/IFSParamsToGetFilter.d.ts +2 -0
  146. package/dist/filters/interfaces/common/IFSParamsToGetFilterDisplayeds.d.ts +9 -0
  147. package/dist/filters/interfaces/common/IFSParamsToGetFilterDisplayeds.js +1 -0
  148. package/dist/filters/interfaces/common/index.d.ts +1 -0
  149. package/dist/filters/interfaces/common/index.js +1 -0
  150. package/dist/filters/interfaces/settings/IFSettingsFilterBuilder.d.ts +1 -0
  151. package/dist/filters/interfaces/settings/IFSettingsFilterPanel.d.ts +1 -0
  152. package/dist/general/array/getArrayByProperty.d.ts +1 -1
  153. package/dist/general/array/index.d.ts +1 -0
  154. package/dist/general/array/index.js +1 -0
  155. package/dist/general/array/intersectObjectArrays.d.ts +8 -0
  156. package/dist/general/array/intersectObjectArrays.js +33 -0
  157. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +1 -0
  158. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +1 -0
  159. package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.js +2 -0
  160. package/dist/interfaces/general/IGeneralInfo.d.ts +4 -4
  161. package/dist/qrvey/interfaces/IDataset.d.ts +0 -2
  162. package/dist/services/api/getAllDatasets.api.js +2 -2
  163. package/package.json +1 -1
@@ -36,6 +36,7 @@ function FD21ToFlatUI(scopes = [], datasetsInfo = []) {
36
36
  scope.datasets.forEach((dataset) => {
37
37
  if (dataset.filters.length > 0) {
38
38
  dataset.filters.forEach((filter) => {
39
+ var _a, _b, _c, _d;
39
40
  const datasetInfo = datasetsInfo.find((dInfo) => dInfo.qrveyid === dataset.qrveyid);
40
41
  let columnInfo;
41
42
  if (!isEmpty(datasetInfo))
@@ -61,8 +62,11 @@ function FD21ToFlatUI(scopes = [], datasetsInfo = []) {
61
62
  type: (columnInfo === null || columnInfo === void 0 ? void 0 : columnInfo.type) || filter.column.type,
62
63
  },
63
64
  dateSection: filter.dateSection,
64
- displayed: filter.displayed,
65
+ deletable: (_a = filter.deletable) !== null && _a !== void 0 ? _a : true,
66
+ displayed: (_b = filter.displayed) !== null && _b !== void 0 ? _b : true,
67
+ editable: (_c = filter.editable) !== null && _c !== void 0 ? _c : true,
65
68
  enabled: filter.enabled,
69
+ enableable: (_d = filter.enableable) !== null && _d !== void 0 ? _d : true,
66
70
  extras: Object.assign(Object.assign({}, filter.extras), { panelid: filter.extras.panelid, filterLabel: filter.extras.filterLabel, info, scope: filter.extras.scope, scopeid: filter.extras.scopeid, section: filter.extras.section, scopeInfo: {
67
71
  collapsed: scope.collapsed,
68
72
  enabled: scope.enabled,
@@ -34,6 +34,7 @@ function UI21ToFlatUI(scopes = [], datasetsInfo = []) {
34
34
  scope.datasets.forEach((dataset) => {
35
35
  if (dataset.filters.length > 0) {
36
36
  dataset.filters.forEach((filter) => {
37
+ var _a, _b, _c;
37
38
  const datasetInfo = datasetsInfo.find((dInfo) => dInfo.qrveyid === dataset.qrveyid);
38
39
  let columnInfo;
39
40
  if (!isEmpty(datasetInfo))
@@ -59,7 +60,10 @@ function UI21ToFlatUI(scopes = [], datasetsInfo = []) {
59
60
  type: filter.column.type,
60
61
  },
61
62
  dateSection: filter.dateSection,
63
+ deletable: (_a = filter.deletable) !== null && _a !== void 0 ? _a : true,
62
64
  displayed: filter.displayed,
65
+ editable: (_b = filter.editable) !== null && _b !== void 0 ? _b : true,
66
+ enableable: (_c = filter.enableable) !== null && _c !== void 0 ? _c : true,
63
67
  enabled: filter.enabled,
64
68
  extras: Object.assign(Object.assign({}, filter.extras), { panelid: filter.extras.panelid, filterLabel: filter.extras.filterLabel, info, scope: filter.extras.scope, scopeid: filter.extras.scopeid, section: filter.extras.section, scopeInfo: {
65
69
  collapsed: scope.collapsed,
@@ -132,5 +132,6 @@ const getFilterDetail = (filter, scope, dataset) => {
132
132
  uiValue: getUIValues(filter, { addEnableds: true }),
133
133
  validator: filter.validator,
134
134
  values: adaptFilterValues(filter),
135
+ _newFilters: Object.assign({}, filter),
135
136
  };
136
137
  };
@@ -81,6 +81,7 @@ function buildDataset(uFilter) {
81
81
  * @returns an filter structure
82
82
  */
83
83
  function buildFilter(uFilter) {
84
+ var _a, _b, _c;
84
85
  const _uFilter = objectCopy(uFilter);
85
86
  const info = !isEmpty(_uFilter.extras.info)
86
87
  ? { icon: _uFilter.extras.info.icon, label: _uFilter.extras.info.label }
@@ -99,7 +100,10 @@ function buildFilter(uFilter) {
99
100
  type: _uFilter.column.type,
100
101
  },
101
102
  dateSection: _uFilter.dateSection,
103
+ deletable: (_a = _uFilter.deletable) !== null && _a !== void 0 ? _a : true,
102
104
  displayed: _uFilter.displayed,
105
+ editable: (_b = _uFilter.editable) !== null && _b !== void 0 ? _b : true,
106
+ enableable: (_c = _uFilter.enableable) !== null && _c !== void 0 ? _c : true,
103
107
  filterid: _uFilter.filterid,
104
108
  enabled: _uFilter.enabled,
105
109
  extras: Object.assign(Object.assign({}, _uFilter.extras), { panelid: _uFilter.extras.panelid, filterLabel: _uFilter.extras.filterLabel, info, scope: _uFilter.extras.scope, scopeid: _uFilter.extras.scopeid, section: _uFilter.extras.section }),
@@ -91,6 +91,7 @@ function buildDataset(uFilter) {
91
91
  * @returns an filter structure
92
92
  */
93
93
  function buildFilter(uFilter) {
94
+ var _a, _b, _c;
94
95
  const _uFilter = objectCopy(uFilter);
95
96
  const info = !isEmpty(_uFilter.extras.info)
96
97
  ? { icon: _uFilter.extras.info.icon, label: _uFilter.extras.info.label }
@@ -114,7 +115,10 @@ function buildFilter(uFilter) {
114
115
  type: _uFilter.column.type,
115
116
  },
116
117
  dateSection: _uFilter.dateSection,
118
+ deletable: (_a = _uFilter.deletable) !== null && _a !== void 0 ? _a : true,
117
119
  displayed: _uFilter.displayed,
120
+ editable: (_b = _uFilter.editable) !== null && _b !== void 0 ? _b : true,
121
+ enableable: (_c = _uFilter.enableable) !== null && _c !== void 0 ? _c : true,
118
122
  filterid: _uFilter.filterid,
119
123
  enabled: _uFilter.enabled,
120
124
  extras: Object.assign(Object.assign({}, _uFilter.extras), { panelid: _uFilter.extras.panelid, filterLabel: _uFilter.extras.filterLabel, info, scope: _uFilter.extras.scope, scopeid: _uFilter.extras.scopeid, section: _uFilter.extras.section }),
@@ -61,7 +61,7 @@ function buildFilterByExpression(expression, scopeItem, uFilters) {
61
61
  }
62
62
  }
63
63
  function getFilterByExpression(expression, scopeItem) {
64
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
64
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
65
65
  const uiExtras = expression.uiExtras;
66
66
  const scopeid = scopeItem.scope !== FILTER_SCOPE.GLOBAL
67
67
  ? _get(scopeItem, "uiExtras.scopeid")
@@ -87,11 +87,14 @@ function getFilterByExpression(expression, scopeItem) {
87
87
  type: (_l = uiExtras.column) === null || _l === void 0 ? void 0 : _l.type,
88
88
  },
89
89
  dateSection: uiExtras.dateSection,
90
- displayed: true,
90
+ deletable: (_o = (_m = uiExtras._newFilters) === null || _m === void 0 ? void 0 : _m.deletable) !== null && _o !== void 0 ? _o : true,
91
+ displayed: (_q = (_p = uiExtras._newFilters) === null || _p === void 0 ? void 0 : _p.displayed) !== null && _q !== void 0 ? _q : true,
92
+ editable: (_s = (_r = uiExtras._newFilters) === null || _r === void 0 ? void 0 : _r.editable) !== null && _s !== void 0 ? _s : true,
93
+ enableable: (_u = (_t = uiExtras._newFilters) === null || _t === void 0 ? void 0 : _t.enableable) !== null && _u !== void 0 ? _u : true,
91
94
  enabled: uiExtras.enabled,
92
95
  extras: Object.assign(Object.assign({}, uiExtras.extras), { panelid: uiExtras.panelid, filterLabel: uiExtras.panelName, info,
93
96
  scopeid, scope: scopeItem.scope, section: uiExtras.section, scopeInfo: {
94
- collapsed: (_m = scopeItem.uiExtras) === null || _m === void 0 ? void 0 : _m.collapsed,
97
+ collapsed: (_v = scopeItem.uiExtras) === null || _v === void 0 ? void 0 : _v.collapsed,
95
98
  enabled: scopeItem.enabled,
96
99
  displayed: true,
97
100
  scope: scopeItem.scope,
@@ -100,7 +103,7 @@ function getFilterByExpression(expression, scopeItem) {
100
103
  collapsed: false,
101
104
  enabled: true,
102
105
  displayed: true,
103
- qrveyid: (_o = uiExtras.column) === null || _o === void 0 ? void 0 : _o.qrveyid,
106
+ qrveyid: (_w = uiExtras.column) === null || _w === void 0 ? void 0 : _w.qrveyid,
104
107
  label: _get(uiExtras.column, "dataset.name") ||
105
108
  _get(uiExtras.column, "label"),
106
109
  } }),
@@ -6,5 +6,6 @@ export declare enum FILTER_SECTION {
6
6
  PB = "PB",
7
7
  RB = "RB",
8
8
  EU = "EU",
9
- UM = "UM"
9
+ UM = "UM",
10
+ DX = "DX"
10
11
  }
@@ -8,4 +8,5 @@ export var FILTER_SECTION;
8
8
  FILTER_SECTION["RB"] = "RB";
9
9
  FILTER_SECTION["EU"] = "EU";
10
10
  FILTER_SECTION["UM"] = "UM";
11
+ FILTER_SECTION["DX"] = "DX";
11
12
  })(FILTER_SECTION || (FILTER_SECTION = {}));
@@ -9,6 +9,7 @@ export const FILTER_SETTINGS_DEFAULT = {
9
9
  filterBuilder: {
10
10
  scopeSelectorDisplayed: true,
11
11
  scopeSelectorEnabled: true,
12
+ strictlyInteractivity: false,
12
13
  },
13
14
  filterDisplayer: {
14
15
  addFilterDisplayed: true,
@@ -71,6 +72,7 @@ export const FILTER_SETTINGS_DEFAULT = {
71
72
  },
72
73
  iconsDisplayed: true,
73
74
  readonly: false,
75
+ strictlyInteractivity: false,
74
76
  updateFilterInfo: true,
75
77
  },
76
78
  filterPanelSettings: {
@@ -0,0 +1,10 @@
1
+ import { IColumn } from "../../../columns/interfaces/IColumn";
2
+ import { IColumnPropertyInfo } from "../../../columns/interfaces/IColumnPropertyInfo";
3
+ import { IFValidator } from "../../interfaces/IFValidator";
4
+ /**
5
+ * Gets the tab options from the Date collection properties
6
+ * @param column The Date column
7
+ * @param validator The filter validator
8
+ * @returns properties of the Date column
9
+ */
10
+ export declare function getDateProperties(column: IColumn, validator: IFValidator): IColumnPropertyInfo[];
@@ -0,0 +1,42 @@
1
+ import { isValidatorMatchedToWindow } from "./isValidatorMatchedToWindow";
2
+ import { DATE_DISTINCT_PROPERTY_INFO_LIST } from "../../../dates/constants/DATE_DISTINCT_PROPERTY_INFO_LIST";
3
+ import { DATE_DISTINCT_TIME_PROPERTY_INFO_LIST } from "../../../dates/constants/DATE_DISTINCT_TIME_PROPERTY_INFO_LIST";
4
+ import { DATE_GROUPING_PROPERTY_INFO_LIST } from "../../../dates/constants/DATE_GROUPING_PROPERTY_INFO_LIST";
5
+ import { DATE_GROUPING_TIME_PROPERTY_INFO_LIST } from "../../../dates/constants/DATE_GROUPING_TIME_PROPERTY_INFO_LIST";
6
+ import { isEmpty } from "../../../general/mix/isEmpty";
7
+ import { _get } from "../../../general/object/get";
8
+ /**
9
+ * Gets the tab options from the Date collection properties
10
+ * @param column The Date column
11
+ * @param validator The filter validator
12
+ * @returns properties of the Date column
13
+ */
14
+ export function getDateProperties(column, validator) {
15
+ let dateProperties = DATE_GROUPING_PROPERTY_INFO_LIST;
16
+ // 1st Step: Add Date Time Values for grouping dates.
17
+ if (isDateColumnTimeFormat(column))
18
+ dateProperties = [
19
+ ...dateProperties,
20
+ ...DATE_GROUPING_TIME_PROPERTY_INFO_LIST,
21
+ ];
22
+ // 2nd Step: Add Property date values for distinct dates.
23
+ if (isValidatorMatchedToWindow(validator)) {
24
+ dateProperties = [...dateProperties, ...DATE_DISTINCT_PROPERTY_INFO_LIST];
25
+ // 3rd Step: Add Property date time values for distinct dates
26
+ if (isDateColumnTimeFormat(column))
27
+ dateProperties = [
28
+ ...dateProperties,
29
+ ...DATE_DISTINCT_TIME_PROPERTY_INFO_LIST,
30
+ ];
31
+ }
32
+ return dateProperties;
33
+ }
34
+ /**
35
+ * Returns True or false when the output format in the date column exists and is a time type
36
+ * @param column Column prop
37
+ * @returns True if The Date Column has a time format, otherwise is false.
38
+ */
39
+ function isDateColumnTimeFormat(column) {
40
+ const formatDate = _get(column.outputFormat, "format");
41
+ return !isEmpty(formatDate) && formatDate.split(" ").length > 1;
42
+ }
@@ -0,0 +1,11 @@
1
+ import { IFProperty } from "../../interfaces/IFProperty";
2
+ import { IFValidatorInfo } from "../../interfaces/IFValidatorInfo";
3
+ import { IFUColumn } from "../../interfaces/ui/IFUColumn";
4
+ /**
5
+ * Get default validator structure by the given column.
6
+ * @param column The column
7
+ * @param validators Validators array. If validator is not fulfilled the conditions, return the first validator given.
8
+ * @param property The property used in Filters. Useful for some questions
9
+ * @returns a default validator structure
10
+ */
11
+ export declare function getDefaultValidatorByColumn(column: IFUColumn, validators: IFValidatorInfo[], property?: IFProperty): IFValidatorInfo;
@@ -0,0 +1,23 @@
1
+ import { isColumnForNumericLayout } from "./isColumnForNumericLayout";
2
+ import { COLUMN } from "../../../columns/constants/COLUMN";
3
+ import { isDateColumn } from "../../../columns/helpers/isDateColumn";
4
+ import { COLUMNS_FOR_CONTAINS_VALIDATOR } from "../../constants/builder/COLUMNS_FOR_CONTAINS_VALIDATOR";
5
+ import { FILTER_VALIDATOR_INFO } from "../../constants/common/FILTER_VALIDATOR_INFO";
6
+ /**
7
+ * Get default validator structure by the given column.
8
+ * @param column The column
9
+ * @param validators Validators array. If validator is not fulfilled the conditions, return the first validator given.
10
+ * @param property The property used in Filters. Useful for some questions
11
+ * @returns a default validator structure
12
+ */
13
+ export function getDefaultValidatorByColumn(column, validators, property) {
14
+ if (column == null)
15
+ return;
16
+ if (isColumnForNumericLayout(column, property) ||
17
+ isDateColumn(column) ||
18
+ column.type === COLUMN.TIME)
19
+ return FILTER_VALIDATOR_INFO.BETWEEN_INCLUSIVE;
20
+ if (COLUMNS_FOR_CONTAINS_VALIDATOR.includes(column.type))
21
+ return FILTER_VALIDATOR_INFO.CONTAINS;
22
+ return validators[0];
23
+ }
@@ -0,0 +1,20 @@
1
+ import { IColumn } from "../../../columns/interfaces/IColumn";
2
+ import { IColumnPropertyInfo } from "../../../columns/interfaces/IColumnPropertyInfo";
3
+ import { IFValidator } from "../../interfaces/IFValidator";
4
+ /**
5
+ * Gets the tab options from the property collection by the question column.
6
+ * - Special case for Expression questions: If isExpressionCategorizable is false, a tab options are not needed.
7
+ * - Special case for Image Upload question: If hasImageUplaodAnalysis is true, image words from image upload property will be hidden
8
+ * @param column The question column
9
+ * @param validator the filter validator
10
+ * @param options Options for differents behaviors across question types.
11
+ * - isExpressionCategorizable: boolean. Send it if Expression question is categorizable or not. It is special for expression question when Category option is activated in the maker.
12
+ * - hasImageUploadAnalysis: boolean. Send it if Image upload question has analysis or not.
13
+ * @param options.isExpressionCategorizable
14
+ * @param options.hasImageUploadAnalysis
15
+ * @returns properties of the question column
16
+ */
17
+ export declare function getPropertiesByColumn(column: IColumn, validator: IFValidator, options?: {
18
+ isExpressionCategorizable: boolean;
19
+ hasImageUploadAnalysis: boolean;
20
+ }): IColumnPropertyInfo[];
@@ -0,0 +1,31 @@
1
+ import { getDateProperties } from "./getDateProperties";
2
+ import { getTimeProperties } from "./getTimeProperties";
3
+ import { COLUMN } from "../../../columns/constants/COLUMN";
4
+ import { COLUMN_PROPERTY } from "../../../columns/constants/COLUMN_PROPERTY";
5
+ import { COLUMN_PROPERTY_INFO } from "../../../columns/constants/COLUMN_PROPERTY_INFO";
6
+ import { isDateColumn } from "../../../columns/helpers/isDateColumn";
7
+ import { isEmpty } from "../../../general/mix/isEmpty";
8
+ /**
9
+ * Gets the tab options from the property collection by the question column.
10
+ * - Special case for Expression questions: If isExpressionCategorizable is false, a tab options are not needed.
11
+ * - Special case for Image Upload question: If hasImageUplaodAnalysis is true, image words from image upload property will be hidden
12
+ * @param column The question column
13
+ * @param validator the filter validator
14
+ * @param options Options for differents behaviors across question types.
15
+ * - isExpressionCategorizable: boolean. Send it if Expression question is categorizable or not. It is special for expression question when Category option is activated in the maker.
16
+ * - hasImageUploadAnalysis: boolean. Send it if Image upload question has analysis or not.
17
+ * @param options.isExpressionCategorizable
18
+ * @param options.hasImageUploadAnalysis
19
+ * @returns properties of the question column
20
+ */
21
+ export function getPropertiesByColumn(column, validator, options) {
22
+ if (column.type === COLUMN.EXPRESSION && !(options === null || options === void 0 ? void 0 : options.isExpressionCategorizable))
23
+ return;
24
+ if (isDateColumn(column) && isEmpty(column.aggregate))
25
+ return getDateProperties(column, validator);
26
+ if (column.type === COLUMN.TIME && isEmpty(column.aggregate))
27
+ return getTimeProperties(validator);
28
+ if (column.type === COLUMN.IMAGEUPLOAD && !(options === null || options === void 0 ? void 0 : options.hasImageUploadAnalysis))
29
+ return COLUMN_PROPERTY_INFO[column.type].filter((propertyValue) => propertyValue.value !== COLUMN_PROPERTY.IMAGEUPLOAD_IMAGEWORDS);
30
+ return COLUMN_PROPERTY_INFO[column.type];
31
+ }
@@ -0,0 +1,8 @@
1
+ import { IColumnPropertyInfo } from "../../../columns/interfaces/IColumnPropertyInfo";
2
+ import { IFValidator } from "../../interfaces/IFValidator";
3
+ /**
4
+ * Gets the tab options from the Time collection properties
5
+ * @param validator The filter validator
6
+ * @returns properties of the Time column
7
+ */
8
+ export declare function getTimeProperties(validator: IFValidator): IColumnPropertyInfo[];
@@ -0,0 +1,18 @@
1
+ import { isValidatorMatchedToWindow } from "./isValidatorMatchedToWindow";
2
+ import { DATE_DISTINCT_TIME_PROPERTY_INFO_LIST } from "../../../dates/constants/DATE_DISTINCT_TIME_PROPERTY_INFO_LIST";
3
+ import { TIME_GROUPING_PROPERTY_INFO_LIST } from "../../../dates/constants/TIME_GROUPING_PROPERTY_INFO_LIST";
4
+ /**
5
+ * Gets the tab options from the Time collection properties
6
+ * @param validator The filter validator
7
+ * @returns properties of the Time column
8
+ */
9
+ export function getTimeProperties(validator) {
10
+ let timeProperties = TIME_GROUPING_PROPERTY_INFO_LIST;
11
+ if (isValidatorMatchedToWindow(validator)) {
12
+ timeProperties = [
13
+ ...timeProperties,
14
+ ...DATE_DISTINCT_TIME_PROPERTY_INFO_LIST,
15
+ ];
16
+ }
17
+ return timeProperties;
18
+ }
@@ -0,0 +1,10 @@
1
+ import { IColumn } from "../../../columns/interfaces/IColumn";
2
+ import { IFProperty } from "../../interfaces/IFProperty";
3
+ import { IFValidatorInfo } from "../../interfaces/IFValidatorInfo";
4
+ /**
5
+ * Gets validators depending on the given column and the filter property (For some cases)
6
+ * @param column The qrvey column
7
+ * @param property The filter property. Some question columns need it to fulfill the conditions
8
+ * @returns Array of validators
9
+ */
10
+ export declare function getValidatorsByColumn(column: IColumn, property?: IFProperty): IFValidatorInfo[];
@@ -0,0 +1,35 @@
1
+ import { isColumnForEqualLayout } from "./isColumnForEqualLayout";
2
+ import { isColumnForEqualNullLayout } from "./isColumnForEqualNullLayout";
3
+ import { isColumnForNullLayout } from "./isColumnForNullLayout";
4
+ import { isColumnForNumericLayout } from "./isColumnForNumericLayout";
5
+ import { isColumnForTextLayout } from "./isColumnForTextLayout";
6
+ import { COLUMN } from "../../../columns/constants/COLUMN";
7
+ import { isDateColumn } from "../../../columns/helpers/isDateColumn";
8
+ import { FILTER_VALIDATOR_BY_TYPE } from "../../constants/common/FILTER_VALIDATOR_BY_TYPE";
9
+ /**
10
+ * Gets validators depending on the given column and the filter property (For some cases)
11
+ * @param column The qrvey column
12
+ * @param property The filter property. Some question columns need it to fulfill the conditions
13
+ * @returns Array of validators
14
+ */
15
+ export function getValidatorsByColumn(column, property) {
16
+ if (column == null)
17
+ return;
18
+ if (isColumnForNumericLayout(column, property))
19
+ return FILTER_VALIDATOR_BY_TYPE.NUMERIC;
20
+ if (isColumnForEqualLayout(column))
21
+ return FILTER_VALIDATOR_BY_TYPE.EQUAL;
22
+ if (isColumnForEqualNullLayout(column, property))
23
+ return FILTER_VALIDATOR_BY_TYPE.EQUAL_NULL;
24
+ if (isColumnForNullLayout(column))
25
+ return FILTER_VALIDATOR_BY_TYPE.NULL;
26
+ if (isDateColumn(column))
27
+ return FILTER_VALIDATOR_BY_TYPE.DATE;
28
+ if (isColumnForTextLayout(column, property))
29
+ return FILTER_VALIDATOR_BY_TYPE.TEXT;
30
+ if (column.type === COLUMN.TIME) {
31
+ const validators = [...FILTER_VALIDATOR_BY_TYPE.DATE];
32
+ validators.shift();
33
+ return validators;
34
+ }
35
+ }
@@ -2,6 +2,8 @@ export * from "./areFiltersEquals";
2
2
  export * from "./excludeFiltersByAggregateColumn";
3
3
  export * from "./excludeFiltersByParams";
4
4
  export * from "./excludeFiltersByScopes";
5
+ export * from "./getDefaultValidatorByColumn";
6
+ export * from "./getDateProperties";
5
7
  export * from "./getFilterColumnLabel";
6
8
  export * from "./getFilterid";
7
9
  export * from "./getFilterLabel";
@@ -14,6 +16,9 @@ export * from "./getFiltersByTimezone";
14
16
  export * from "./getFiltersByVisibility";
15
17
  export * from "./getMergeFiltersSettings";
16
18
  export * from "./getParamsToGetFilterSettings";
19
+ export * from "./getPropertiesByColumn";
20
+ export * from "./getTimeProperties";
21
+ export * from "./getValidatorsByColumn";
17
22
  export * from "./getValuesFromModel";
18
23
  export * from "./getValuesFromDataset";
19
24
  export * from "./getVerboseFilterDatasets";
@@ -23,9 +28,14 @@ export * from "./getVerboseFilterScopes";
23
28
  export * from "./getVerboseFilterValues";
24
29
  export * from "./haveFiltersByDataset";
25
30
  export * from "./isBetweenValidator";
31
+ export * from "./isColumnForEqualLayout";
32
+ export * from "./isColumnForNumericLayout";
33
+ export * from "./isColumnForNullLayout";
34
+ export * from "./isColumnForTextLayout";
26
35
  export * from "./isDateDistinctProperty";
27
36
  export * from "./isInValidator";
28
37
  export * from "./isNullValidator";
38
+ export * from "./isValidatorMatchedToWindow";
29
39
  export * from "./isRangeValidator";
30
40
  export * from "./isRankingFilter";
31
41
  export * from "./isRegularValidator";
@@ -2,6 +2,8 @@ export * from "./areFiltersEquals";
2
2
  export * from "./excludeFiltersByAggregateColumn";
3
3
  export * from "./excludeFiltersByParams";
4
4
  export * from "./excludeFiltersByScopes";
5
+ export * from "./getDefaultValidatorByColumn";
6
+ export * from "./getDateProperties";
5
7
  export * from "./getFilterColumnLabel";
6
8
  export * from "./getFilterid";
7
9
  export * from "./getFilterLabel";
@@ -14,6 +16,9 @@ export * from "./getFiltersByTimezone";
14
16
  export * from "./getFiltersByVisibility";
15
17
  export * from "./getMergeFiltersSettings";
16
18
  export * from "./getParamsToGetFilterSettings";
19
+ export * from "./getPropertiesByColumn";
20
+ export * from "./getTimeProperties";
21
+ export * from "./getValidatorsByColumn";
17
22
  export * from "./getValuesFromModel";
18
23
  export * from "./getValuesFromDataset";
19
24
  export * from "./getVerboseFilterDatasets";
@@ -23,9 +28,14 @@ export * from "./getVerboseFilterScopes";
23
28
  export * from "./getVerboseFilterValues";
24
29
  export * from "./haveFiltersByDataset";
25
30
  export * from "./isBetweenValidator";
31
+ export * from "./isColumnForEqualLayout";
32
+ export * from "./isColumnForNumericLayout";
33
+ export * from "./isColumnForNullLayout";
34
+ export * from "./isColumnForTextLayout";
26
35
  export * from "./isDateDistinctProperty";
27
36
  export * from "./isInValidator";
28
37
  export * from "./isNullValidator";
38
+ export * from "./isValidatorMatchedToWindow";
29
39
  export * from "./isRangeValidator";
30
40
  export * from "./isRankingFilter";
31
41
  export * from "./isRegularValidator";
@@ -0,0 +1,7 @@
1
+ import { IColumn } from "../../../columns/interfaces/IColumn";
2
+ /**
3
+ * Validates if the given column is compatible with the Equal Layout.
4
+ * @param column The Qrvey column
5
+ * @returns true if the conditions fulfill; otherwise, false
6
+ */
7
+ export declare function isColumnForEqualLayout(column: IColumn): boolean;
@@ -0,0 +1,9 @@
1
+ import { COLUMNS_FOR_EQUALS_LAYOUT } from "../../constants/builder/COLUMNS_FOR_EQUALS_LAYOUT";
2
+ /**
3
+ * Validates if the given column is compatible with the Equal Layout.
4
+ * @param column The Qrvey column
5
+ * @returns true if the conditions fulfill; otherwise, false
6
+ */
7
+ export function isColumnForEqualLayout(column) {
8
+ return COLUMNS_FOR_EQUALS_LAYOUT.includes(column.type);
9
+ }
@@ -0,0 +1,9 @@
1
+ import { IColumn } from "../../../columns/interfaces/IColumn";
2
+ import { IFProperty } from "../../interfaces/IFProperty";
3
+ /**
4
+ * Validates if the given column is compatible with the Equal or Null Layout.
5
+ * @param column The Qrvey column
6
+ * @param property The filter property
7
+ * @returns true if the conditions fulfill; otherwise, false
8
+ */
9
+ export declare function isColumnForEqualNullLayout(column: IColumn, property?: IFProperty): boolean;
@@ -0,0 +1,16 @@
1
+ import { COLUMN } from "../../../columns/constants/COLUMN";
2
+ import { COLUMN_PROPERTY } from "../../../columns/constants/COLUMN_PROPERTY";
3
+ import { COLUMNS_FOR_EQUALS_NULL_LAYOUT } from "../../constants/builder/COLUMNS_FOR_EQUALS_NULL_LAYOUT";
4
+ /**
5
+ * Validates if the given column is compatible with the Equal or Null Layout.
6
+ * @param column The Qrvey column
7
+ * @param property The filter property
8
+ * @returns true if the conditions fulfill; otherwise, false
9
+ */
10
+ export function isColumnForEqualNullLayout(column, property) {
11
+ return (COLUMNS_FOR_EQUALS_NULL_LAYOUT.includes(column.type) ||
12
+ (COLUMN.FILEUPLOAD === column.type &&
13
+ COLUMN_PROPERTY.FILEUPLOAD_FILETYPE === property) ||
14
+ (COLUMN.IMAGEUPLOAD === column.type &&
15
+ COLUMN_PROPERTY.FILEUPLOAD_FILETYPE === property));
16
+ }
@@ -0,0 +1,7 @@
1
+ import { IColumn } from "../../../columns/interfaces/IColumn";
2
+ /**
3
+ * Validates if the given column is compatible with the Null Layout.
4
+ * @param column The Qrvey column
5
+ * @returns true if the conditions fulfill; otherwise, false
6
+ */
7
+ export declare function isColumnForNullLayout(column: IColumn): boolean;
@@ -0,0 +1,9 @@
1
+ import { COLUMNS_FOR_NULL_LAYOUT } from "../../constants/builder/COLUMNS_FOR_NULL_LAYOUT";
2
+ /**
3
+ * Validates if the given column is compatible with the Null Layout.
4
+ * @param column The Qrvey column
5
+ * @returns true if the conditions fulfill; otherwise, false
6
+ */
7
+ export function isColumnForNullLayout(column) {
8
+ return COLUMNS_FOR_NULL_LAYOUT.includes(column.type);
9
+ }
@@ -0,0 +1,9 @@
1
+ import { IColumn } from "../../../columns/interfaces/IColumn";
2
+ import { IFProperty } from "../../interfaces/IFProperty";
3
+ /**
4
+ * Validates if the given column is compatible with Numeric Layout.
5
+ * @param column The Qrvey column
6
+ * @param property The filter property
7
+ * @returns true if the conditions fulfill; otherwise, false
8
+ */
9
+ export declare function isColumnForNumericLayout(column: IColumn, property?: IFProperty): boolean;
@@ -0,0 +1,18 @@
1
+ import { COLUMN } from "../../../columns/constants/COLUMN";
2
+ import { COLUMN_PROPERTY } from "../../../columns/constants/COLUMN_PROPERTY";
3
+ import { isNumericalColumn } from "../../../columns/helpers/isNumericalColumn";
4
+ import { isEmpty } from "../../../general/mix/isEmpty";
5
+ /**
6
+ * Validates if the given column is compatible with Numeric Layout.
7
+ * @param column The Qrvey column
8
+ * @param property The filter property
9
+ * @returns true if the conditions fulfill; otherwise, false
10
+ */
11
+ export function isColumnForNumericLayout(column, property) {
12
+ return (isNumericalColumn(column) ||
13
+ !isEmpty(column.aggregate) ||
14
+ (COLUMN.FILEUPLOAD === column.type &&
15
+ COLUMN_PROPERTY.FILEUPLOAD_FILESIZE === property) ||
16
+ (COLUMN.IMAGEUPLOAD === column.type &&
17
+ COLUMN_PROPERTY.FILEUPLOAD_FILESIZE === property));
18
+ }
@@ -0,0 +1,9 @@
1
+ import { IColumn } from "../../../columns/interfaces/IColumn";
2
+ import { IFProperty } from "../../interfaces/IFProperty";
3
+ /**
4
+ * Validates if the given column is compatible with the Text Layout.
5
+ * @param column The Qrvey column
6
+ * @param property The filter property
7
+ * @returns true if the conditions fulfill; otherwise, false
8
+ */
9
+ export declare function isColumnForTextLayout(column: IColumn, property?: IFProperty): boolean;
@@ -0,0 +1,16 @@
1
+ import { COLUMN } from "../../../columns/constants/COLUMN";
2
+ import { COLUMN_PROPERTY } from "../../../columns/constants/COLUMN_PROPERTY";
3
+ import { isTextColumn } from "../../../format/definition";
4
+ import { COLUMNS_FOR_TEXT_LAYOUT } from "../../constants/builder/COLUMNS_FOR_TEXT_LAYOUT";
5
+ /**
6
+ * Validates if the given column is compatible with the Text Layout.
7
+ * @param column The Qrvey column
8
+ * @param property The filter property
9
+ * @returns true if the conditions fulfill; otherwise, false
10
+ */
11
+ export function isColumnForTextLayout(column, property) {
12
+ return (isTextColumn(column) ||
13
+ COLUMNS_FOR_TEXT_LAYOUT.includes(column.type) ||
14
+ (COLUMN.IMAGEUPLOAD === column.type &&
15
+ COLUMN_PROPERTY.IMAGEUPLOAD_IMAGEWORDS === property));
16
+ }
@@ -0,0 +1,7 @@
1
+ import { IFValidator } from "../../interfaces/IFValidator";
2
+ /**
3
+ * Validates if the given validator is compatible with Value Window layout.
4
+ * @param validator the filter validator
5
+ * @returns true if the conditions fulfill; otherwise, false
6
+ */
7
+ export declare function isValidatorMatchedToWindow(validator: IFValidator): boolean;
@@ -0,0 +1,9 @@
1
+ import { FILTER_VALIDATORS_FOR_WINDOW } from "../../constants/builder/FILTER_VALIDATORS_FOR_WINDOW";
2
+ /**
3
+ * Validates if the given validator is compatible with Value Window layout.
4
+ * @param validator the filter validator
5
+ * @returns true if the conditions fulfill; otherwise, false
6
+ */
7
+ export function isValidatorMatchedToWindow(validator) {
8
+ return FILTER_VALIDATORS_FOR_WINDOW.includes(validator);
9
+ }
@@ -14,6 +14,11 @@ export function resolveDatasetConditions(dataset, params, letPassUndefinedProper
14
14
  (letPassUndefinedProperties && dataset.enabled == null) ||
15
15
  (letPassUndefinedParams && params.enableds.datasets == null) ||
16
16
  params.enableds.datasets === dataset.enabled) &&
17
+ (!_hasProperty(params, "displayeds") ||
18
+ !_hasProperty(params.displayeds, "datasets") ||
19
+ (letPassUndefinedProperties && dataset.displayed == null) ||
20
+ (letPassUndefinedParams && params.displayeds.datasets == null) ||
21
+ params.displayeds.datasets === dataset.displayed) &&
17
22
  (!_hasProperty(params, "qrveyid") ||
18
23
  (letPassUndefinedProperties && dataset.qrveyid == null) ||
19
24
  (letPassUndefinedParams && isEmpty(params.qrveyid)) ||
@@ -15,6 +15,11 @@ export function resolveFilterConditions(filter, params, letPassUndefinedProperti
15
15
  (letPassUndefinedProperties && filter.enabled == null) ||
16
16
  (letPassUndefinedParams && params.enableds.filters == null) ||
17
17
  params.enableds.filters === filter.enabled) &&
18
+ (!_hasProperty(params, "displayeds") ||
19
+ !_hasProperty(params.displayeds, "filters") ||
20
+ (letPassUndefinedProperties && filter.displayed == null) ||
21
+ (letPassUndefinedParams && params.displayeds.filters == null) ||
22
+ params.displayeds.filters === filter.displayed) &&
18
23
  (!_hasProperty(params, "dateSection") ||
19
24
  (letPassUndefinedProperties && filter.dateSection == null) ||
20
25
  (letPassUndefinedParams && isEmpty(params.dateSection)) ||